api_key_training_task

package
v1.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 28, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithContentTypeApplicationJSON

func WithContentTypeApplicationJSON(r *runtime.ClientOperation)

WithContentTypeApplicationJSON sets the Content-Type header to "application/json".

func WithContentTypeApplicationxWwwFormUrlencoded

func WithContentTypeApplicationxWwwFormUrlencoded(r *runtime.ClientOperation)

WithContentTypeApplicationxWwwFormUrlencoded sets the Content-Type header to "application/x-www-form-urlencoded".

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client for api key training task API

func (*Client) GetAPIKeyTrainingTaskID

func (a *Client) GetAPIKeyTrainingTaskID(params *GetAPIKeyTrainingTaskIDParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetAPIKeyTrainingTaskIDOK, error)

GetAPIKeyTrainingTaskID gets training task by Api key

func (*Client) GetAPIKeyTrainingTaskList

func (a *Client) GetAPIKeyTrainingTaskList(params *GetAPIKeyTrainingTaskListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetAPIKeyTrainingTaskListOK, error)

GetAPIKeyTrainingTaskList gets training task list by Api key

func (*Client) SetTransport

func (a *Client) SetTransport(transport runtime.ClientTransport)

SetTransport changes the transport on the client

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption may be used to customize the behavior of Client methods.

func WithContentType

func WithContentType(mime string) ClientOption

WithContentType allows the client to force the Content-Type header to negotiate a specific Consumer from the server.

You may use this option to set arbitrary extensions to your MIME media type.

type ClientService

type ClientService interface {
	GetAPIKeyTrainingTaskID(params *GetAPIKeyTrainingTaskIDParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetAPIKeyTrainingTaskIDOK, error)

	GetAPIKeyTrainingTaskList(params *GetAPIKeyTrainingTaskListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetAPIKeyTrainingTaskListOK, error)

	SetTransport(transport runtime.ClientTransport)
}

ClientService is the interface for Client methods

func New

func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService

New creates a new api key training task API client.

func NewClientWithBasicAuth

func NewClientWithBasicAuth(host, basePath, scheme, user, password string) ClientService

New creates a new api key training task API client with basic auth credentials. It takes the following parameters: - host: http host (github.com). - basePath: any base path for the API client ("/v1", "/v3"). - scheme: http scheme ("http", "https"). - user: user for basic authentication header. - password: password for basic authentication header.

func NewClientWithBearerToken

func NewClientWithBearerToken(host, basePath, scheme, bearerToken string) ClientService

New creates a new api key training task API client with a bearer token for authentication. It takes the following parameters: - host: http host (github.com). - basePath: any base path for the API client ("/v1", "/v3"). - scheme: http scheme ("http", "https"). - bearerToken: bearer token for Bearer authentication header.

type GetAPIKeyTrainingTaskIDBadRequest

type GetAPIKeyTrainingTaskIDBadRequest struct {
	Payload *models.ResponseFailResponse
}

GetAPIKeyTrainingTaskIDBadRequest describes a response with status code 400, with default header values.

Bad Request

func NewGetAPIKeyTrainingTaskIDBadRequest

func NewGetAPIKeyTrainingTaskIDBadRequest() *GetAPIKeyTrainingTaskIDBadRequest

NewGetAPIKeyTrainingTaskIDBadRequest creates a GetAPIKeyTrainingTaskIDBadRequest with default headers values

func (*GetAPIKeyTrainingTaskIDBadRequest) Code

Code gets the status code for the get Api key training task Id bad request response

func (*GetAPIKeyTrainingTaskIDBadRequest) Error

func (*GetAPIKeyTrainingTaskIDBadRequest) GetPayload

func (*GetAPIKeyTrainingTaskIDBadRequest) IsClientError

func (o *GetAPIKeyTrainingTaskIDBadRequest) IsClientError() bool

IsClientError returns true when this get Api key training task Id bad request response has a 4xx status code

func (*GetAPIKeyTrainingTaskIDBadRequest) IsCode

func (o *GetAPIKeyTrainingTaskIDBadRequest) IsCode(code int) bool

IsCode returns true when this get Api key training task Id bad request response a status code equal to that given

func (*GetAPIKeyTrainingTaskIDBadRequest) IsRedirect

func (o *GetAPIKeyTrainingTaskIDBadRequest) IsRedirect() bool

IsRedirect returns true when this get Api key training task Id bad request response has a 3xx status code

func (*GetAPIKeyTrainingTaskIDBadRequest) IsServerError

func (o *GetAPIKeyTrainingTaskIDBadRequest) IsServerError() bool

IsServerError returns true when this get Api key training task Id bad request response has a 5xx status code

func (*GetAPIKeyTrainingTaskIDBadRequest) IsSuccess

func (o *GetAPIKeyTrainingTaskIDBadRequest) IsSuccess() bool

IsSuccess returns true when this get Api key training task Id bad request response has a 2xx status code

func (*GetAPIKeyTrainingTaskIDBadRequest) String

type GetAPIKeyTrainingTaskIDInternalServerError

type GetAPIKeyTrainingTaskIDInternalServerError struct {
	Payload *models.ResponseErrorResponse
}

GetAPIKeyTrainingTaskIDInternalServerError describes a response with status code 500, with default header values.

Internal Server Error

func NewGetAPIKeyTrainingTaskIDInternalServerError

func NewGetAPIKeyTrainingTaskIDInternalServerError() *GetAPIKeyTrainingTaskIDInternalServerError

NewGetAPIKeyTrainingTaskIDInternalServerError creates a GetAPIKeyTrainingTaskIDInternalServerError with default headers values

func (*GetAPIKeyTrainingTaskIDInternalServerError) Code

Code gets the status code for the get Api key training task Id internal server error response

func (*GetAPIKeyTrainingTaskIDInternalServerError) Error

func (*GetAPIKeyTrainingTaskIDInternalServerError) GetPayload

func (*GetAPIKeyTrainingTaskIDInternalServerError) IsClientError

IsClientError returns true when this get Api key training task Id internal server error response has a 4xx status code

func (*GetAPIKeyTrainingTaskIDInternalServerError) IsCode

IsCode returns true when this get Api key training task Id internal server error response a status code equal to that given

func (*GetAPIKeyTrainingTaskIDInternalServerError) IsRedirect

IsRedirect returns true when this get Api key training task Id internal server error response has a 3xx status code

func (*GetAPIKeyTrainingTaskIDInternalServerError) IsServerError

IsServerError returns true when this get Api key training task Id internal server error response has a 5xx status code

func (*GetAPIKeyTrainingTaskIDInternalServerError) IsSuccess

IsSuccess returns true when this get Api key training task Id internal server error response has a 2xx status code

func (*GetAPIKeyTrainingTaskIDInternalServerError) String

type GetAPIKeyTrainingTaskIDOK

type GetAPIKeyTrainingTaskIDOK struct {
	Payload *models.ResponseTrainingTaskResponse
}

GetAPIKeyTrainingTaskIDOK describes a response with status code 200, with default header values.

OK

func NewGetAPIKeyTrainingTaskIDOK

func NewGetAPIKeyTrainingTaskIDOK() *GetAPIKeyTrainingTaskIDOK

NewGetAPIKeyTrainingTaskIDOK creates a GetAPIKeyTrainingTaskIDOK with default headers values

func (*GetAPIKeyTrainingTaskIDOK) Code

func (o *GetAPIKeyTrainingTaskIDOK) Code() int

Code gets the status code for the get Api key training task Id o k response

func (*GetAPIKeyTrainingTaskIDOK) Error

func (o *GetAPIKeyTrainingTaskIDOK) Error() string

func (*GetAPIKeyTrainingTaskIDOK) GetPayload

func (*GetAPIKeyTrainingTaskIDOK) IsClientError

func (o *GetAPIKeyTrainingTaskIDOK) IsClientError() bool

IsClientError returns true when this get Api key training task Id o k response has a 4xx status code

func (*GetAPIKeyTrainingTaskIDOK) IsCode

func (o *GetAPIKeyTrainingTaskIDOK) IsCode(code int) bool

IsCode returns true when this get Api key training task Id o k response a status code equal to that given

func (*GetAPIKeyTrainingTaskIDOK) IsRedirect

func (o *GetAPIKeyTrainingTaskIDOK) IsRedirect() bool

IsRedirect returns true when this get Api key training task Id o k response has a 3xx status code

func (*GetAPIKeyTrainingTaskIDOK) IsServerError

func (o *GetAPIKeyTrainingTaskIDOK) IsServerError() bool

IsServerError returns true when this get Api key training task Id o k response has a 5xx status code

func (*GetAPIKeyTrainingTaskIDOK) IsSuccess

func (o *GetAPIKeyTrainingTaskIDOK) IsSuccess() bool

IsSuccess returns true when this get Api key training task Id o k response has a 2xx status code

func (*GetAPIKeyTrainingTaskIDOK) String

func (o *GetAPIKeyTrainingTaskIDOK) String() string

type GetAPIKeyTrainingTaskIDParams

type GetAPIKeyTrainingTaskIDParams struct {

	/* ID.

	   Training Task's id
	*/
	ID string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetAPIKeyTrainingTaskIDParams contains all the parameters to send to the API endpoint

for the get API key training task ID operation.

Typically these are written to a http.Request.

func NewGetAPIKeyTrainingTaskIDParams

func NewGetAPIKeyTrainingTaskIDParams() *GetAPIKeyTrainingTaskIDParams

NewGetAPIKeyTrainingTaskIDParams creates a new GetAPIKeyTrainingTaskIDParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewGetAPIKeyTrainingTaskIDParamsWithContext

func NewGetAPIKeyTrainingTaskIDParamsWithContext(ctx context.Context) *GetAPIKeyTrainingTaskIDParams

NewGetAPIKeyTrainingTaskIDParamsWithContext creates a new GetAPIKeyTrainingTaskIDParams object with the ability to set a context for a request.

func NewGetAPIKeyTrainingTaskIDParamsWithHTTPClient

func NewGetAPIKeyTrainingTaskIDParamsWithHTTPClient(client *http.Client) *GetAPIKeyTrainingTaskIDParams

NewGetAPIKeyTrainingTaskIDParamsWithHTTPClient creates a new GetAPIKeyTrainingTaskIDParams object with the ability to set a custom HTTPClient for a request.

func NewGetAPIKeyTrainingTaskIDParamsWithTimeout

func NewGetAPIKeyTrainingTaskIDParamsWithTimeout(timeout time.Duration) *GetAPIKeyTrainingTaskIDParams

NewGetAPIKeyTrainingTaskIDParamsWithTimeout creates a new GetAPIKeyTrainingTaskIDParams object with the ability to set a timeout on a request.

func (*GetAPIKeyTrainingTaskIDParams) SetContext

func (o *GetAPIKeyTrainingTaskIDParams) SetContext(ctx context.Context)

SetContext adds the context to the get API key training task ID params

func (*GetAPIKeyTrainingTaskIDParams) SetDefaults

func (o *GetAPIKeyTrainingTaskIDParams) SetDefaults()

SetDefaults hydrates default values in the get API key training task ID params (not the query body).

All values with no default are reset to their zero value.

func (*GetAPIKeyTrainingTaskIDParams) SetHTTPClient

func (o *GetAPIKeyTrainingTaskIDParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the get API key training task ID params

func (*GetAPIKeyTrainingTaskIDParams) SetID

SetID adds the id to the get API key training task ID params

func (*GetAPIKeyTrainingTaskIDParams) SetTimeout

func (o *GetAPIKeyTrainingTaskIDParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the get API key training task ID params

func (*GetAPIKeyTrainingTaskIDParams) WithContext

WithContext adds the context to the get API key training task ID params

func (*GetAPIKeyTrainingTaskIDParams) WithDefaults

WithDefaults hydrates default values in the get API key training task ID params (not the query body).

All values with no default are reset to their zero value.

func (*GetAPIKeyTrainingTaskIDParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get API key training task ID params

func (*GetAPIKeyTrainingTaskIDParams) WithID

WithID adds the id to the get API key training task ID params

func (*GetAPIKeyTrainingTaskIDParams) WithTimeout

WithTimeout adds the timeout to the get API key training task ID params

func (*GetAPIKeyTrainingTaskIDParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetAPIKeyTrainingTaskIDReader

type GetAPIKeyTrainingTaskIDReader struct {
	// contains filtered or unexported fields
}

GetAPIKeyTrainingTaskIDReader is a Reader for the GetAPIKeyTrainingTaskID structure.

func (*GetAPIKeyTrainingTaskIDReader) ReadResponse

func (o *GetAPIKeyTrainingTaskIDReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (any, error)

ReadResponse reads a server response into the received o.

type GetAPIKeyTrainingTaskListBadRequest

type GetAPIKeyTrainingTaskListBadRequest struct {
	Payload *models.ResponseFailResponse
}

GetAPIKeyTrainingTaskListBadRequest describes a response with status code 400, with default header values.

Bad Request

func NewGetAPIKeyTrainingTaskListBadRequest

func NewGetAPIKeyTrainingTaskListBadRequest() *GetAPIKeyTrainingTaskListBadRequest

NewGetAPIKeyTrainingTaskListBadRequest creates a GetAPIKeyTrainingTaskListBadRequest with default headers values

func (*GetAPIKeyTrainingTaskListBadRequest) Code

Code gets the status code for the get Api key training task list bad request response

func (*GetAPIKeyTrainingTaskListBadRequest) Error

func (*GetAPIKeyTrainingTaskListBadRequest) GetPayload

func (*GetAPIKeyTrainingTaskListBadRequest) IsClientError

func (o *GetAPIKeyTrainingTaskListBadRequest) IsClientError() bool

IsClientError returns true when this get Api key training task list bad request response has a 4xx status code

func (*GetAPIKeyTrainingTaskListBadRequest) IsCode

IsCode returns true when this get Api key training task list bad request response a status code equal to that given

func (*GetAPIKeyTrainingTaskListBadRequest) IsRedirect

func (o *GetAPIKeyTrainingTaskListBadRequest) IsRedirect() bool

IsRedirect returns true when this get Api key training task list bad request response has a 3xx status code

func (*GetAPIKeyTrainingTaskListBadRequest) IsServerError

func (o *GetAPIKeyTrainingTaskListBadRequest) IsServerError() bool

IsServerError returns true when this get Api key training task list bad request response has a 5xx status code

func (*GetAPIKeyTrainingTaskListBadRequest) IsSuccess

IsSuccess returns true when this get Api key training task list bad request response has a 2xx status code

func (*GetAPIKeyTrainingTaskListBadRequest) String

type GetAPIKeyTrainingTaskListInternalServerError

type GetAPIKeyTrainingTaskListInternalServerError struct {
	Payload *models.ResponseErrorResponse
}

GetAPIKeyTrainingTaskListInternalServerError describes a response with status code 500, with default header values.

Internal Server Error

func NewGetAPIKeyTrainingTaskListInternalServerError

func NewGetAPIKeyTrainingTaskListInternalServerError() *GetAPIKeyTrainingTaskListInternalServerError

NewGetAPIKeyTrainingTaskListInternalServerError creates a GetAPIKeyTrainingTaskListInternalServerError with default headers values

func (*GetAPIKeyTrainingTaskListInternalServerError) Code

Code gets the status code for the get Api key training task list internal server error response

func (*GetAPIKeyTrainingTaskListInternalServerError) Error

func (*GetAPIKeyTrainingTaskListInternalServerError) GetPayload

func (*GetAPIKeyTrainingTaskListInternalServerError) IsClientError

IsClientError returns true when this get Api key training task list internal server error response has a 4xx status code

func (*GetAPIKeyTrainingTaskListInternalServerError) IsCode

IsCode returns true when this get Api key training task list internal server error response a status code equal to that given

func (*GetAPIKeyTrainingTaskListInternalServerError) IsRedirect

IsRedirect returns true when this get Api key training task list internal server error response has a 3xx status code

func (*GetAPIKeyTrainingTaskListInternalServerError) IsServerError

IsServerError returns true when this get Api key training task list internal server error response has a 5xx status code

func (*GetAPIKeyTrainingTaskListInternalServerError) IsSuccess

IsSuccess returns true when this get Api key training task list internal server error response has a 2xx status code

func (*GetAPIKeyTrainingTaskListInternalServerError) String

type GetAPIKeyTrainingTaskListOK

type GetAPIKeyTrainingTaskListOK struct {
	Payload *models.ResponseTrainingTaskListResponse
}

GetAPIKeyTrainingTaskListOK describes a response with status code 200, with default header values.

OK

func NewGetAPIKeyTrainingTaskListOK

func NewGetAPIKeyTrainingTaskListOK() *GetAPIKeyTrainingTaskListOK

NewGetAPIKeyTrainingTaskListOK creates a GetAPIKeyTrainingTaskListOK with default headers values

func (*GetAPIKeyTrainingTaskListOK) Code

func (o *GetAPIKeyTrainingTaskListOK) Code() int

Code gets the status code for the get Api key training task list o k response

func (*GetAPIKeyTrainingTaskListOK) Error

func (*GetAPIKeyTrainingTaskListOK) GetPayload

func (*GetAPIKeyTrainingTaskListOK) IsClientError

func (o *GetAPIKeyTrainingTaskListOK) IsClientError() bool

IsClientError returns true when this get Api key training task list o k response has a 4xx status code

func (*GetAPIKeyTrainingTaskListOK) IsCode

func (o *GetAPIKeyTrainingTaskListOK) IsCode(code int) bool

IsCode returns true when this get Api key training task list o k response a status code equal to that given

func (*GetAPIKeyTrainingTaskListOK) IsRedirect

func (o *GetAPIKeyTrainingTaskListOK) IsRedirect() bool

IsRedirect returns true when this get Api key training task list o k response has a 3xx status code

func (*GetAPIKeyTrainingTaskListOK) IsServerError

func (o *GetAPIKeyTrainingTaskListOK) IsServerError() bool

IsServerError returns true when this get Api key training task list o k response has a 5xx status code

func (*GetAPIKeyTrainingTaskListOK) IsSuccess

func (o *GetAPIKeyTrainingTaskListOK) IsSuccess() bool

IsSuccess returns true when this get Api key training task list o k response has a 2xx status code

func (*GetAPIKeyTrainingTaskListOK) String

func (o *GetAPIKeyTrainingTaskListOK) String() string

type GetAPIKeyTrainingTaskListParams

type GetAPIKeyTrainingTaskListParams struct {

	// Limit.
	Limit *int64

	// Offset.
	Offset *int64

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetAPIKeyTrainingTaskListParams contains all the parameters to send to the API endpoint

for the get API key training task list operation.

Typically these are written to a http.Request.

func NewGetAPIKeyTrainingTaskListParams

func NewGetAPIKeyTrainingTaskListParams() *GetAPIKeyTrainingTaskListParams

NewGetAPIKeyTrainingTaskListParams creates a new GetAPIKeyTrainingTaskListParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewGetAPIKeyTrainingTaskListParamsWithContext

func NewGetAPIKeyTrainingTaskListParamsWithContext(ctx context.Context) *GetAPIKeyTrainingTaskListParams

NewGetAPIKeyTrainingTaskListParamsWithContext creates a new GetAPIKeyTrainingTaskListParams object with the ability to set a context for a request.

func NewGetAPIKeyTrainingTaskListParamsWithHTTPClient

func NewGetAPIKeyTrainingTaskListParamsWithHTTPClient(client *http.Client) *GetAPIKeyTrainingTaskListParams

NewGetAPIKeyTrainingTaskListParamsWithHTTPClient creates a new GetAPIKeyTrainingTaskListParams object with the ability to set a custom HTTPClient for a request.

func NewGetAPIKeyTrainingTaskListParamsWithTimeout

func NewGetAPIKeyTrainingTaskListParamsWithTimeout(timeout time.Duration) *GetAPIKeyTrainingTaskListParams

NewGetAPIKeyTrainingTaskListParamsWithTimeout creates a new GetAPIKeyTrainingTaskListParams object with the ability to set a timeout on a request.

func (*GetAPIKeyTrainingTaskListParams) SetContext

func (o *GetAPIKeyTrainingTaskListParams) SetContext(ctx context.Context)

SetContext adds the context to the get API key training task list params

func (*GetAPIKeyTrainingTaskListParams) SetDefaults

func (o *GetAPIKeyTrainingTaskListParams) SetDefaults()

SetDefaults hydrates default values in the get API key training task list params (not the query body).

All values with no default are reset to their zero value.

func (*GetAPIKeyTrainingTaskListParams) SetHTTPClient

func (o *GetAPIKeyTrainingTaskListParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the get API key training task list params

func (*GetAPIKeyTrainingTaskListParams) SetLimit

func (o *GetAPIKeyTrainingTaskListParams) SetLimit(limit *int64)

SetLimit adds the limit to the get API key training task list params

func (*GetAPIKeyTrainingTaskListParams) SetOffset

func (o *GetAPIKeyTrainingTaskListParams) SetOffset(offset *int64)

SetOffset adds the offset to the get API key training task list params

func (*GetAPIKeyTrainingTaskListParams) SetTimeout

func (o *GetAPIKeyTrainingTaskListParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the get API key training task list params

func (*GetAPIKeyTrainingTaskListParams) WithContext

WithContext adds the context to the get API key training task list params

func (*GetAPIKeyTrainingTaskListParams) WithDefaults

WithDefaults hydrates default values in the get API key training task list params (not the query body).

All values with no default are reset to their zero value.

func (*GetAPIKeyTrainingTaskListParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get API key training task list params

func (*GetAPIKeyTrainingTaskListParams) WithLimit

WithLimit adds the limit to the get API key training task list params

func (*GetAPIKeyTrainingTaskListParams) WithOffset

WithOffset adds the offset to the get API key training task list params

func (*GetAPIKeyTrainingTaskListParams) WithTimeout

WithTimeout adds the timeout to the get API key training task list params

func (*GetAPIKeyTrainingTaskListParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetAPIKeyTrainingTaskListReader

type GetAPIKeyTrainingTaskListReader struct {
	// contains filtered or unexported fields
}

GetAPIKeyTrainingTaskListReader is a Reader for the GetAPIKeyTrainingTaskList structure.

func (*GetAPIKeyTrainingTaskListReader) ReadResponse

func (o *GetAPIKeyTrainingTaskListReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (any, error)

ReadResponse reads a server response into the received o.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL