Documentation
¶
Index ¶
- func WithContentTypeApplicationJSON(r *runtime.ClientOperation)
- func WithContentTypeApplicationxWwwFormUrlencoded(r *runtime.ClientOperation)
- type Client
- func (a *Client) GetAPIKeyTrainingTaskID(params *GetAPIKeyTrainingTaskIDParams, authInfo runtime.ClientAuthInfoWriter, ...) (*GetAPIKeyTrainingTaskIDOK, error)
- func (a *Client) GetAPIKeyTrainingTaskList(params *GetAPIKeyTrainingTaskListParams, authInfo runtime.ClientAuthInfoWriter, ...) (*GetAPIKeyTrainingTaskListOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientOption
- type ClientService
- type GetAPIKeyTrainingTaskIDBadRequest
- func (o *GetAPIKeyTrainingTaskIDBadRequest) Code() int
- func (o *GetAPIKeyTrainingTaskIDBadRequest) Error() string
- func (o *GetAPIKeyTrainingTaskIDBadRequest) GetPayload() *models.ResponseFailResponse
- func (o *GetAPIKeyTrainingTaskIDBadRequest) IsClientError() bool
- func (o *GetAPIKeyTrainingTaskIDBadRequest) IsCode(code int) bool
- func (o *GetAPIKeyTrainingTaskIDBadRequest) IsRedirect() bool
- func (o *GetAPIKeyTrainingTaskIDBadRequest) IsServerError() bool
- func (o *GetAPIKeyTrainingTaskIDBadRequest) IsSuccess() bool
- func (o *GetAPIKeyTrainingTaskIDBadRequest) String() string
- type GetAPIKeyTrainingTaskIDInternalServerError
- func (o *GetAPIKeyTrainingTaskIDInternalServerError) Code() int
- func (o *GetAPIKeyTrainingTaskIDInternalServerError) Error() string
- func (o *GetAPIKeyTrainingTaskIDInternalServerError) GetPayload() *models.ResponseErrorResponse
- func (o *GetAPIKeyTrainingTaskIDInternalServerError) IsClientError() bool
- func (o *GetAPIKeyTrainingTaskIDInternalServerError) IsCode(code int) bool
- func (o *GetAPIKeyTrainingTaskIDInternalServerError) IsRedirect() bool
- func (o *GetAPIKeyTrainingTaskIDInternalServerError) IsServerError() bool
- func (o *GetAPIKeyTrainingTaskIDInternalServerError) IsSuccess() bool
- func (o *GetAPIKeyTrainingTaskIDInternalServerError) String() string
- type GetAPIKeyTrainingTaskIDOK
- func (o *GetAPIKeyTrainingTaskIDOK) Code() int
- func (o *GetAPIKeyTrainingTaskIDOK) Error() string
- func (o *GetAPIKeyTrainingTaskIDOK) GetPayload() *models.ResponseTrainingTaskResponse
- func (o *GetAPIKeyTrainingTaskIDOK) IsClientError() bool
- func (o *GetAPIKeyTrainingTaskIDOK) IsCode(code int) bool
- func (o *GetAPIKeyTrainingTaskIDOK) IsRedirect() bool
- func (o *GetAPIKeyTrainingTaskIDOK) IsServerError() bool
- func (o *GetAPIKeyTrainingTaskIDOK) IsSuccess() bool
- func (o *GetAPIKeyTrainingTaskIDOK) String() string
- type GetAPIKeyTrainingTaskIDParams
- func NewGetAPIKeyTrainingTaskIDParams() *GetAPIKeyTrainingTaskIDParams
- func NewGetAPIKeyTrainingTaskIDParamsWithContext(ctx context.Context) *GetAPIKeyTrainingTaskIDParams
- func NewGetAPIKeyTrainingTaskIDParamsWithHTTPClient(client *http.Client) *GetAPIKeyTrainingTaskIDParams
- func NewGetAPIKeyTrainingTaskIDParamsWithTimeout(timeout time.Duration) *GetAPIKeyTrainingTaskIDParams
- func (o *GetAPIKeyTrainingTaskIDParams) SetContext(ctx context.Context)
- func (o *GetAPIKeyTrainingTaskIDParams) SetDefaults()
- func (o *GetAPIKeyTrainingTaskIDParams) SetHTTPClient(client *http.Client)
- func (o *GetAPIKeyTrainingTaskIDParams) SetID(id string)
- func (o *GetAPIKeyTrainingTaskIDParams) SetTimeout(timeout time.Duration)
- func (o *GetAPIKeyTrainingTaskIDParams) WithContext(ctx context.Context) *GetAPIKeyTrainingTaskIDParams
- func (o *GetAPIKeyTrainingTaskIDParams) WithDefaults() *GetAPIKeyTrainingTaskIDParams
- func (o *GetAPIKeyTrainingTaskIDParams) WithHTTPClient(client *http.Client) *GetAPIKeyTrainingTaskIDParams
- func (o *GetAPIKeyTrainingTaskIDParams) WithID(id string) *GetAPIKeyTrainingTaskIDParams
- func (o *GetAPIKeyTrainingTaskIDParams) WithTimeout(timeout time.Duration) *GetAPIKeyTrainingTaskIDParams
- func (o *GetAPIKeyTrainingTaskIDParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetAPIKeyTrainingTaskIDReader
- type GetAPIKeyTrainingTaskListBadRequest
- func (o *GetAPIKeyTrainingTaskListBadRequest) Code() int
- func (o *GetAPIKeyTrainingTaskListBadRequest) Error() string
- func (o *GetAPIKeyTrainingTaskListBadRequest) GetPayload() *models.ResponseFailResponse
- func (o *GetAPIKeyTrainingTaskListBadRequest) IsClientError() bool
- func (o *GetAPIKeyTrainingTaskListBadRequest) IsCode(code int) bool
- func (o *GetAPIKeyTrainingTaskListBadRequest) IsRedirect() bool
- func (o *GetAPIKeyTrainingTaskListBadRequest) IsServerError() bool
- func (o *GetAPIKeyTrainingTaskListBadRequest) IsSuccess() bool
- func (o *GetAPIKeyTrainingTaskListBadRequest) String() string
- type GetAPIKeyTrainingTaskListInternalServerError
- func (o *GetAPIKeyTrainingTaskListInternalServerError) Code() int
- func (o *GetAPIKeyTrainingTaskListInternalServerError) Error() string
- func (o *GetAPIKeyTrainingTaskListInternalServerError) GetPayload() *models.ResponseErrorResponse
- func (o *GetAPIKeyTrainingTaskListInternalServerError) IsClientError() bool
- func (o *GetAPIKeyTrainingTaskListInternalServerError) IsCode(code int) bool
- func (o *GetAPIKeyTrainingTaskListInternalServerError) IsRedirect() bool
- func (o *GetAPIKeyTrainingTaskListInternalServerError) IsServerError() bool
- func (o *GetAPIKeyTrainingTaskListInternalServerError) IsSuccess() bool
- func (o *GetAPIKeyTrainingTaskListInternalServerError) String() string
- type GetAPIKeyTrainingTaskListOK
- func (o *GetAPIKeyTrainingTaskListOK) Code() int
- func (o *GetAPIKeyTrainingTaskListOK) Error() string
- func (o *GetAPIKeyTrainingTaskListOK) GetPayload() *models.ResponseTrainingTaskListResponse
- func (o *GetAPIKeyTrainingTaskListOK) IsClientError() bool
- func (o *GetAPIKeyTrainingTaskListOK) IsCode(code int) bool
- func (o *GetAPIKeyTrainingTaskListOK) IsRedirect() bool
- func (o *GetAPIKeyTrainingTaskListOK) IsServerError() bool
- func (o *GetAPIKeyTrainingTaskListOK) IsSuccess() bool
- func (o *GetAPIKeyTrainingTaskListOK) String() string
- type GetAPIKeyTrainingTaskListParams
- func NewGetAPIKeyTrainingTaskListParams() *GetAPIKeyTrainingTaskListParams
- func NewGetAPIKeyTrainingTaskListParamsWithContext(ctx context.Context) *GetAPIKeyTrainingTaskListParams
- func NewGetAPIKeyTrainingTaskListParamsWithHTTPClient(client *http.Client) *GetAPIKeyTrainingTaskListParams
- func NewGetAPIKeyTrainingTaskListParamsWithTimeout(timeout time.Duration) *GetAPIKeyTrainingTaskListParams
- func (o *GetAPIKeyTrainingTaskListParams) SetContext(ctx context.Context)
- func (o *GetAPIKeyTrainingTaskListParams) SetDefaults()
- func (o *GetAPIKeyTrainingTaskListParams) SetHTTPClient(client *http.Client)
- func (o *GetAPIKeyTrainingTaskListParams) SetLimit(limit *int64)
- func (o *GetAPIKeyTrainingTaskListParams) SetOffset(offset *int64)
- func (o *GetAPIKeyTrainingTaskListParams) SetTimeout(timeout time.Duration)
- func (o *GetAPIKeyTrainingTaskListParams) WithContext(ctx context.Context) *GetAPIKeyTrainingTaskListParams
- func (o *GetAPIKeyTrainingTaskListParams) WithDefaults() *GetAPIKeyTrainingTaskListParams
- func (o *GetAPIKeyTrainingTaskListParams) WithHTTPClient(client *http.Client) *GetAPIKeyTrainingTaskListParams
- func (o *GetAPIKeyTrainingTaskListParams) WithLimit(limit *int64) *GetAPIKeyTrainingTaskListParams
- func (o *GetAPIKeyTrainingTaskListParams) WithOffset(offset *int64) *GetAPIKeyTrainingTaskListParams
- func (o *GetAPIKeyTrainingTaskListParams) WithTimeout(timeout time.Duration) *GetAPIKeyTrainingTaskListParams
- func (o *GetAPIKeyTrainingTaskListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetAPIKeyTrainingTaskListReader
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 ¶
func (o *GetAPIKeyTrainingTaskIDBadRequest) Code() int
Code gets the status code for the get Api key training task Id bad request response
func (*GetAPIKeyTrainingTaskIDBadRequest) Error ¶
func (o *GetAPIKeyTrainingTaskIDBadRequest) Error() string
func (*GetAPIKeyTrainingTaskIDBadRequest) GetPayload ¶
func (o *GetAPIKeyTrainingTaskIDBadRequest) GetPayload() *models.ResponseFailResponse
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 ¶
func (o *GetAPIKeyTrainingTaskIDBadRequest) String() 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 ¶
func (o *GetAPIKeyTrainingTaskIDInternalServerError) Code() int
Code gets the status code for the get Api key training task Id internal server error response
func (*GetAPIKeyTrainingTaskIDInternalServerError) Error ¶
func (o *GetAPIKeyTrainingTaskIDInternalServerError) Error() string
func (*GetAPIKeyTrainingTaskIDInternalServerError) GetPayload ¶
func (o *GetAPIKeyTrainingTaskIDInternalServerError) GetPayload() *models.ResponseErrorResponse
func (*GetAPIKeyTrainingTaskIDInternalServerError) IsClientError ¶
func (o *GetAPIKeyTrainingTaskIDInternalServerError) IsClientError() bool
IsClientError returns true when this get Api key training task Id internal server error response has a 4xx status code
func (*GetAPIKeyTrainingTaskIDInternalServerError) IsCode ¶
func (o *GetAPIKeyTrainingTaskIDInternalServerError) IsCode(code int) bool
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 ¶
func (o *GetAPIKeyTrainingTaskIDInternalServerError) IsRedirect() bool
IsRedirect returns true when this get Api key training task Id internal server error response has a 3xx status code
func (*GetAPIKeyTrainingTaskIDInternalServerError) IsServerError ¶
func (o *GetAPIKeyTrainingTaskIDInternalServerError) IsServerError() bool
IsServerError returns true when this get Api key training task Id internal server error response has a 5xx status code
func (*GetAPIKeyTrainingTaskIDInternalServerError) IsSuccess ¶
func (o *GetAPIKeyTrainingTaskIDInternalServerError) IsSuccess() bool
IsSuccess returns true when this get Api key training task Id internal server error response has a 2xx status code
func (*GetAPIKeyTrainingTaskIDInternalServerError) String ¶
func (o *GetAPIKeyTrainingTaskIDInternalServerError) String() 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 (o *GetAPIKeyTrainingTaskIDOK) GetPayload() *models.ResponseTrainingTaskResponse
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 ¶
func (o *GetAPIKeyTrainingTaskIDParams) SetID(id string)
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 ¶
func (o *GetAPIKeyTrainingTaskIDParams) WithContext(ctx context.Context) *GetAPIKeyTrainingTaskIDParams
WithContext adds the context to the get API key training task ID params
func (*GetAPIKeyTrainingTaskIDParams) WithDefaults ¶
func (o *GetAPIKeyTrainingTaskIDParams) WithDefaults() *GetAPIKeyTrainingTaskIDParams
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 ¶
func (o *GetAPIKeyTrainingTaskIDParams) WithHTTPClient(client *http.Client) *GetAPIKeyTrainingTaskIDParams
WithHTTPClient adds the HTTPClient to the get API key training task ID params
func (*GetAPIKeyTrainingTaskIDParams) WithID ¶
func (o *GetAPIKeyTrainingTaskIDParams) WithID(id string) *GetAPIKeyTrainingTaskIDParams
WithID adds the id to the get API key training task ID params
func (*GetAPIKeyTrainingTaskIDParams) WithTimeout ¶
func (o *GetAPIKeyTrainingTaskIDParams) WithTimeout(timeout time.Duration) *GetAPIKeyTrainingTaskIDParams
WithTimeout adds the timeout to the get API key training task ID params
func (*GetAPIKeyTrainingTaskIDParams) WriteToRequest ¶
func (o *GetAPIKeyTrainingTaskIDParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 ¶
func (o *GetAPIKeyTrainingTaskListBadRequest) Code() int
Code gets the status code for the get Api key training task list bad request response
func (*GetAPIKeyTrainingTaskListBadRequest) Error ¶
func (o *GetAPIKeyTrainingTaskListBadRequest) Error() string
func (*GetAPIKeyTrainingTaskListBadRequest) GetPayload ¶
func (o *GetAPIKeyTrainingTaskListBadRequest) GetPayload() *models.ResponseFailResponse
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 ¶
func (o *GetAPIKeyTrainingTaskListBadRequest) IsCode(code int) bool
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 ¶
func (o *GetAPIKeyTrainingTaskListBadRequest) IsSuccess() bool
IsSuccess returns true when this get Api key training task list bad request response has a 2xx status code
func (*GetAPIKeyTrainingTaskListBadRequest) String ¶
func (o *GetAPIKeyTrainingTaskListBadRequest) String() 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 ¶
func (o *GetAPIKeyTrainingTaskListInternalServerError) Code() int
Code gets the status code for the get Api key training task list internal server error response
func (*GetAPIKeyTrainingTaskListInternalServerError) Error ¶
func (o *GetAPIKeyTrainingTaskListInternalServerError) Error() string
func (*GetAPIKeyTrainingTaskListInternalServerError) GetPayload ¶
func (o *GetAPIKeyTrainingTaskListInternalServerError) GetPayload() *models.ResponseErrorResponse
func (*GetAPIKeyTrainingTaskListInternalServerError) IsClientError ¶
func (o *GetAPIKeyTrainingTaskListInternalServerError) IsClientError() bool
IsClientError returns true when this get Api key training task list internal server error response has a 4xx status code
func (*GetAPIKeyTrainingTaskListInternalServerError) IsCode ¶
func (o *GetAPIKeyTrainingTaskListInternalServerError) IsCode(code int) bool
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 ¶
func (o *GetAPIKeyTrainingTaskListInternalServerError) IsRedirect() bool
IsRedirect returns true when this get Api key training task list internal server error response has a 3xx status code
func (*GetAPIKeyTrainingTaskListInternalServerError) IsServerError ¶
func (o *GetAPIKeyTrainingTaskListInternalServerError) IsServerError() bool
IsServerError returns true when this get Api key training task list internal server error response has a 5xx status code
func (*GetAPIKeyTrainingTaskListInternalServerError) IsSuccess ¶
func (o *GetAPIKeyTrainingTaskListInternalServerError) IsSuccess() bool
IsSuccess returns true when this get Api key training task list internal server error response has a 2xx status code
func (*GetAPIKeyTrainingTaskListInternalServerError) String ¶
func (o *GetAPIKeyTrainingTaskListInternalServerError) String() 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 (o *GetAPIKeyTrainingTaskListOK) Error() string
func (*GetAPIKeyTrainingTaskListOK) GetPayload ¶
func (o *GetAPIKeyTrainingTaskListOK) GetPayload() *models.ResponseTrainingTaskListResponse
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 ¶
func (o *GetAPIKeyTrainingTaskListParams) WithContext(ctx context.Context) *GetAPIKeyTrainingTaskListParams
WithContext adds the context to the get API key training task list params
func (*GetAPIKeyTrainingTaskListParams) WithDefaults ¶
func (o *GetAPIKeyTrainingTaskListParams) WithDefaults() *GetAPIKeyTrainingTaskListParams
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 ¶
func (o *GetAPIKeyTrainingTaskListParams) WithHTTPClient(client *http.Client) *GetAPIKeyTrainingTaskListParams
WithHTTPClient adds the HTTPClient to the get API key training task list params
func (*GetAPIKeyTrainingTaskListParams) WithLimit ¶
func (o *GetAPIKeyTrainingTaskListParams) WithLimit(limit *int64) *GetAPIKeyTrainingTaskListParams
WithLimit adds the limit to the get API key training task list params
func (*GetAPIKeyTrainingTaskListParams) WithOffset ¶
func (o *GetAPIKeyTrainingTaskListParams) WithOffset(offset *int64) *GetAPIKeyTrainingTaskListParams
WithOffset adds the offset to the get API key training task list params
func (*GetAPIKeyTrainingTaskListParams) WithTimeout ¶
func (o *GetAPIKeyTrainingTaskListParams) WithTimeout(timeout time.Duration) *GetAPIKeyTrainingTaskListParams
WithTimeout adds the timeout to the get API key training task list params
func (*GetAPIKeyTrainingTaskListParams) WriteToRequest ¶
func (o *GetAPIKeyTrainingTaskListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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.