Documentation
¶
Index ¶
- func WithContentTypeApplicationJSON(r *runtime.ClientOperation)
- func WithContentTypeApplicationxWwwFormUrlencoded(r *runtime.ClientOperation)
- type Client
- func (a *Client) DeleteAPIKeyModelTrainingTaskID(params *DeleteAPIKeyModelTrainingTaskIDParams, ...) (*DeleteAPIKeyModelTrainingTaskIDOK, error)
- func (a *Client) GetAPIKeyModelTrainingTask(params *GetAPIKeyModelTrainingTaskParams, ...) (*GetAPIKeyModelTrainingTaskOK, error)
- func (a *Client) PostAPIKeyModelTrainingCost(params *PostAPIKeyModelTrainingCostParams, ...) (*PostAPIKeyModelTrainingCostOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientOption
- type ClientService
- type DeleteAPIKeyModelTrainingTaskIDBadRequest
- func (o *DeleteAPIKeyModelTrainingTaskIDBadRequest) Code() int
- func (o *DeleteAPIKeyModelTrainingTaskIDBadRequest) Error() string
- func (o *DeleteAPIKeyModelTrainingTaskIDBadRequest) GetPayload() *models.ResponseFailResponse
- func (o *DeleteAPIKeyModelTrainingTaskIDBadRequest) IsClientError() bool
- func (o *DeleteAPIKeyModelTrainingTaskIDBadRequest) IsCode(code int) bool
- func (o *DeleteAPIKeyModelTrainingTaskIDBadRequest) IsRedirect() bool
- func (o *DeleteAPIKeyModelTrainingTaskIDBadRequest) IsServerError() bool
- func (o *DeleteAPIKeyModelTrainingTaskIDBadRequest) IsSuccess() bool
- func (o *DeleteAPIKeyModelTrainingTaskIDBadRequest) String() string
- type DeleteAPIKeyModelTrainingTaskIDInternalServerError
- func (o *DeleteAPIKeyModelTrainingTaskIDInternalServerError) Code() int
- func (o *DeleteAPIKeyModelTrainingTaskIDInternalServerError) Error() string
- func (o *DeleteAPIKeyModelTrainingTaskIDInternalServerError) GetPayload() *models.ResponseErrorResponse
- func (o *DeleteAPIKeyModelTrainingTaskIDInternalServerError) IsClientError() bool
- func (o *DeleteAPIKeyModelTrainingTaskIDInternalServerError) IsCode(code int) bool
- func (o *DeleteAPIKeyModelTrainingTaskIDInternalServerError) IsRedirect() bool
- func (o *DeleteAPIKeyModelTrainingTaskIDInternalServerError) IsServerError() bool
- func (o *DeleteAPIKeyModelTrainingTaskIDInternalServerError) IsSuccess() bool
- func (o *DeleteAPIKeyModelTrainingTaskIDInternalServerError) String() string
- type DeleteAPIKeyModelTrainingTaskIDOK
- func (o *DeleteAPIKeyModelTrainingTaskIDOK) Code() int
- func (o *DeleteAPIKeyModelTrainingTaskIDOK) Error() string
- func (o *DeleteAPIKeyModelTrainingTaskIDOK) GetPayload() *models.ResponseSuccessResponse
- func (o *DeleteAPIKeyModelTrainingTaskIDOK) IsClientError() bool
- func (o *DeleteAPIKeyModelTrainingTaskIDOK) IsCode(code int) bool
- func (o *DeleteAPIKeyModelTrainingTaskIDOK) IsRedirect() bool
- func (o *DeleteAPIKeyModelTrainingTaskIDOK) IsServerError() bool
- func (o *DeleteAPIKeyModelTrainingTaskIDOK) IsSuccess() bool
- func (o *DeleteAPIKeyModelTrainingTaskIDOK) String() string
- type DeleteAPIKeyModelTrainingTaskIDParams
- func NewDeleteAPIKeyModelTrainingTaskIDParams() *DeleteAPIKeyModelTrainingTaskIDParams
- func NewDeleteAPIKeyModelTrainingTaskIDParamsWithContext(ctx context.Context) *DeleteAPIKeyModelTrainingTaskIDParams
- func NewDeleteAPIKeyModelTrainingTaskIDParamsWithHTTPClient(client *http.Client) *DeleteAPIKeyModelTrainingTaskIDParams
- func NewDeleteAPIKeyModelTrainingTaskIDParamsWithTimeout(timeout time.Duration) *DeleteAPIKeyModelTrainingTaskIDParams
- func (o *DeleteAPIKeyModelTrainingTaskIDParams) SetContext(ctx context.Context)
- func (o *DeleteAPIKeyModelTrainingTaskIDParams) SetDefaults()
- func (o *DeleteAPIKeyModelTrainingTaskIDParams) SetHTTPClient(client *http.Client)
- func (o *DeleteAPIKeyModelTrainingTaskIDParams) SetID(id string)
- func (o *DeleteAPIKeyModelTrainingTaskIDParams) SetTimeout(timeout time.Duration)
- func (o *DeleteAPIKeyModelTrainingTaskIDParams) WithContext(ctx context.Context) *DeleteAPIKeyModelTrainingTaskIDParams
- func (o *DeleteAPIKeyModelTrainingTaskIDParams) WithDefaults() *DeleteAPIKeyModelTrainingTaskIDParams
- func (o *DeleteAPIKeyModelTrainingTaskIDParams) WithHTTPClient(client *http.Client) *DeleteAPIKeyModelTrainingTaskIDParams
- func (o *DeleteAPIKeyModelTrainingTaskIDParams) WithID(id string) *DeleteAPIKeyModelTrainingTaskIDParams
- func (o *DeleteAPIKeyModelTrainingTaskIDParams) WithTimeout(timeout time.Duration) *DeleteAPIKeyModelTrainingTaskIDParams
- func (o *DeleteAPIKeyModelTrainingTaskIDParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DeleteAPIKeyModelTrainingTaskIDReader
- type GetAPIKeyModelTrainingTaskBadRequest
- func (o *GetAPIKeyModelTrainingTaskBadRequest) Code() int
- func (o *GetAPIKeyModelTrainingTaskBadRequest) Error() string
- func (o *GetAPIKeyModelTrainingTaskBadRequest) GetPayload() *models.ResponseFailResponse
- func (o *GetAPIKeyModelTrainingTaskBadRequest) IsClientError() bool
- func (o *GetAPIKeyModelTrainingTaskBadRequest) IsCode(code int) bool
- func (o *GetAPIKeyModelTrainingTaskBadRequest) IsRedirect() bool
- func (o *GetAPIKeyModelTrainingTaskBadRequest) IsServerError() bool
- func (o *GetAPIKeyModelTrainingTaskBadRequest) IsSuccess() bool
- func (o *GetAPIKeyModelTrainingTaskBadRequest) String() string
- type GetAPIKeyModelTrainingTaskInternalServerError
- func (o *GetAPIKeyModelTrainingTaskInternalServerError) Code() int
- func (o *GetAPIKeyModelTrainingTaskInternalServerError) Error() string
- func (o *GetAPIKeyModelTrainingTaskInternalServerError) GetPayload() *models.ResponseErrorResponse
- func (o *GetAPIKeyModelTrainingTaskInternalServerError) IsClientError() bool
- func (o *GetAPIKeyModelTrainingTaskInternalServerError) IsCode(code int) bool
- func (o *GetAPIKeyModelTrainingTaskInternalServerError) IsRedirect() bool
- func (o *GetAPIKeyModelTrainingTaskInternalServerError) IsServerError() bool
- func (o *GetAPIKeyModelTrainingTaskInternalServerError) IsSuccess() bool
- func (o *GetAPIKeyModelTrainingTaskInternalServerError) String() string
- type GetAPIKeyModelTrainingTaskOK
- func (o *GetAPIKeyModelTrainingTaskOK) Code() int
- func (o *GetAPIKeyModelTrainingTaskOK) Error() string
- func (o *GetAPIKeyModelTrainingTaskOK) GetPayload() *models.ResponseUserTrainingTaskListResponse
- func (o *GetAPIKeyModelTrainingTaskOK) IsClientError() bool
- func (o *GetAPIKeyModelTrainingTaskOK) IsCode(code int) bool
- func (o *GetAPIKeyModelTrainingTaskOK) IsRedirect() bool
- func (o *GetAPIKeyModelTrainingTaskOK) IsServerError() bool
- func (o *GetAPIKeyModelTrainingTaskOK) IsSuccess() bool
- func (o *GetAPIKeyModelTrainingTaskOK) String() string
- type GetAPIKeyModelTrainingTaskParams
- func NewGetAPIKeyModelTrainingTaskParams() *GetAPIKeyModelTrainingTaskParams
- func NewGetAPIKeyModelTrainingTaskParamsWithContext(ctx context.Context) *GetAPIKeyModelTrainingTaskParams
- func NewGetAPIKeyModelTrainingTaskParamsWithHTTPClient(client *http.Client) *GetAPIKeyModelTrainingTaskParams
- func NewGetAPIKeyModelTrainingTaskParamsWithTimeout(timeout time.Duration) *GetAPIKeyModelTrainingTaskParams
- func (o *GetAPIKeyModelTrainingTaskParams) SetContext(ctx context.Context)
- func (o *GetAPIKeyModelTrainingTaskParams) SetDefaults()
- func (o *GetAPIKeyModelTrainingTaskParams) SetHTTPClient(client *http.Client)
- func (o *GetAPIKeyModelTrainingTaskParams) SetInput(input *models.RequestGetListUserTrainingTaskRequest)
- func (o *GetAPIKeyModelTrainingTaskParams) SetTimeout(timeout time.Duration)
- func (o *GetAPIKeyModelTrainingTaskParams) WithContext(ctx context.Context) *GetAPIKeyModelTrainingTaskParams
- func (o *GetAPIKeyModelTrainingTaskParams) WithDefaults() *GetAPIKeyModelTrainingTaskParams
- func (o *GetAPIKeyModelTrainingTaskParams) WithHTTPClient(client *http.Client) *GetAPIKeyModelTrainingTaskParams
- func (o *GetAPIKeyModelTrainingTaskParams) WithInput(input *models.RequestGetListUserTrainingTaskRequest) *GetAPIKeyModelTrainingTaskParams
- func (o *GetAPIKeyModelTrainingTaskParams) WithTimeout(timeout time.Duration) *GetAPIKeyModelTrainingTaskParams
- func (o *GetAPIKeyModelTrainingTaskParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetAPIKeyModelTrainingTaskReader
- type PostAPIKeyModelTrainingCostBadRequest
- func (o *PostAPIKeyModelTrainingCostBadRequest) Code() int
- func (o *PostAPIKeyModelTrainingCostBadRequest) Error() string
- func (o *PostAPIKeyModelTrainingCostBadRequest) GetPayload() *models.ResponseFailResponse
- func (o *PostAPIKeyModelTrainingCostBadRequest) IsClientError() bool
- func (o *PostAPIKeyModelTrainingCostBadRequest) IsCode(code int) bool
- func (o *PostAPIKeyModelTrainingCostBadRequest) IsRedirect() bool
- func (o *PostAPIKeyModelTrainingCostBadRequest) IsServerError() bool
- func (o *PostAPIKeyModelTrainingCostBadRequest) IsSuccess() bool
- func (o *PostAPIKeyModelTrainingCostBadRequest) String() string
- type PostAPIKeyModelTrainingCostInternalServerError
- func (o *PostAPIKeyModelTrainingCostInternalServerError) Code() int
- func (o *PostAPIKeyModelTrainingCostInternalServerError) Error() string
- func (o *PostAPIKeyModelTrainingCostInternalServerError) GetPayload() *models.ResponseErrorResponse
- func (o *PostAPIKeyModelTrainingCostInternalServerError) IsClientError() bool
- func (o *PostAPIKeyModelTrainingCostInternalServerError) IsCode(code int) bool
- func (o *PostAPIKeyModelTrainingCostInternalServerError) IsRedirect() bool
- func (o *PostAPIKeyModelTrainingCostInternalServerError) IsServerError() bool
- func (o *PostAPIKeyModelTrainingCostInternalServerError) IsSuccess() bool
- func (o *PostAPIKeyModelTrainingCostInternalServerError) String() string
- type PostAPIKeyModelTrainingCostOK
- func (o *PostAPIKeyModelTrainingCostOK) Code() int
- func (o *PostAPIKeyModelTrainingCostOK) Error() string
- func (o *PostAPIKeyModelTrainingCostOK) GetPayload() *models.ResponseEstimateCostResponse
- func (o *PostAPIKeyModelTrainingCostOK) IsClientError() bool
- func (o *PostAPIKeyModelTrainingCostOK) IsCode(code int) bool
- func (o *PostAPIKeyModelTrainingCostOK) IsRedirect() bool
- func (o *PostAPIKeyModelTrainingCostOK) IsServerError() bool
- func (o *PostAPIKeyModelTrainingCostOK) IsSuccess() bool
- func (o *PostAPIKeyModelTrainingCostOK) String() string
- type PostAPIKeyModelTrainingCostParams
- func NewPostAPIKeyModelTrainingCostParams() *PostAPIKeyModelTrainingCostParams
- func NewPostAPIKeyModelTrainingCostParamsWithContext(ctx context.Context) *PostAPIKeyModelTrainingCostParams
- func NewPostAPIKeyModelTrainingCostParamsWithHTTPClient(client *http.Client) *PostAPIKeyModelTrainingCostParams
- func NewPostAPIKeyModelTrainingCostParamsWithTimeout(timeout time.Duration) *PostAPIKeyModelTrainingCostParams
- func (o *PostAPIKeyModelTrainingCostParams) SetContext(ctx context.Context)
- func (o *PostAPIKeyModelTrainingCostParams) SetDefaults()
- func (o *PostAPIKeyModelTrainingCostParams) SetHTTPClient(client *http.Client)
- func (o *PostAPIKeyModelTrainingCostParams) SetInput(input *models.RequestCalculateCostToTrainingAiModelRequest)
- func (o *PostAPIKeyModelTrainingCostParams) SetTimeout(timeout time.Duration)
- func (o *PostAPIKeyModelTrainingCostParams) WithContext(ctx context.Context) *PostAPIKeyModelTrainingCostParams
- func (o *PostAPIKeyModelTrainingCostParams) WithDefaults() *PostAPIKeyModelTrainingCostParams
- func (o *PostAPIKeyModelTrainingCostParams) WithHTTPClient(client *http.Client) *PostAPIKeyModelTrainingCostParams
- func (o *PostAPIKeyModelTrainingCostParams) WithInput(input *models.RequestCalculateCostToTrainingAiModelRequest) *PostAPIKeyModelTrainingCostParams
- func (o *PostAPIKeyModelTrainingCostParams) WithTimeout(timeout time.Duration) *PostAPIKeyModelTrainingCostParams
- func (o *PostAPIKeyModelTrainingCostParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type PostAPIKeyModelTrainingCostReader
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 model training API
func (*Client) DeleteAPIKeyModelTrainingTaskID ¶
func (a *Client) DeleteAPIKeyModelTrainingTaskID(params *DeleteAPIKeyModelTrainingTaskIDParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteAPIKeyModelTrainingTaskIDOK, error)
DeleteAPIKeyModelTrainingTaskID deletes user training task by task Id by Api key
func (*Client) GetAPIKeyModelTrainingTask ¶
func (a *Client) GetAPIKeyModelTrainingTask(params *GetAPIKeyModelTrainingTaskParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetAPIKeyModelTrainingTaskOK, error)
GetAPIKeyModelTrainingTask gets list user training task by Api key
func (*Client) PostAPIKeyModelTrainingCost ¶
func (a *Client) PostAPIKeyModelTrainingCost(params *PostAPIKeyModelTrainingCostParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostAPIKeyModelTrainingCostOK, error)
PostAPIKeyModelTrainingCost calculates cost to training ai model 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 {
DeleteAPIKeyModelTrainingTaskID(params *DeleteAPIKeyModelTrainingTaskIDParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteAPIKeyModelTrainingTaskIDOK, error)
GetAPIKeyModelTrainingTask(params *GetAPIKeyModelTrainingTaskParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetAPIKeyModelTrainingTaskOK, error)
PostAPIKeyModelTrainingCost(params *PostAPIKeyModelTrainingCostParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostAPIKeyModelTrainingCostOK, 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 model training API client.
func NewClientWithBasicAuth ¶
func NewClientWithBasicAuth(host, basePath, scheme, user, password string) ClientService
New creates a new api key model training 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 model training 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 DeleteAPIKeyModelTrainingTaskIDBadRequest ¶
type DeleteAPIKeyModelTrainingTaskIDBadRequest struct {
Payload *models.ResponseFailResponse
}
DeleteAPIKeyModelTrainingTaskIDBadRequest describes a response with status code 400, with default header values.
Bad Request
func NewDeleteAPIKeyModelTrainingTaskIDBadRequest ¶
func NewDeleteAPIKeyModelTrainingTaskIDBadRequest() *DeleteAPIKeyModelTrainingTaskIDBadRequest
NewDeleteAPIKeyModelTrainingTaskIDBadRequest creates a DeleteAPIKeyModelTrainingTaskIDBadRequest with default headers values
func (*DeleteAPIKeyModelTrainingTaskIDBadRequest) Code ¶
func (o *DeleteAPIKeyModelTrainingTaskIDBadRequest) Code() int
Code gets the status code for the delete Api key model training task Id bad request response
func (*DeleteAPIKeyModelTrainingTaskIDBadRequest) Error ¶
func (o *DeleteAPIKeyModelTrainingTaskIDBadRequest) Error() string
func (*DeleteAPIKeyModelTrainingTaskIDBadRequest) GetPayload ¶
func (o *DeleteAPIKeyModelTrainingTaskIDBadRequest) GetPayload() *models.ResponseFailResponse
func (*DeleteAPIKeyModelTrainingTaskIDBadRequest) IsClientError ¶
func (o *DeleteAPIKeyModelTrainingTaskIDBadRequest) IsClientError() bool
IsClientError returns true when this delete Api key model training task Id bad request response has a 4xx status code
func (*DeleteAPIKeyModelTrainingTaskIDBadRequest) IsCode ¶
func (o *DeleteAPIKeyModelTrainingTaskIDBadRequest) IsCode(code int) bool
IsCode returns true when this delete Api key model training task Id bad request response a status code equal to that given
func (*DeleteAPIKeyModelTrainingTaskIDBadRequest) IsRedirect ¶
func (o *DeleteAPIKeyModelTrainingTaskIDBadRequest) IsRedirect() bool
IsRedirect returns true when this delete Api key model training task Id bad request response has a 3xx status code
func (*DeleteAPIKeyModelTrainingTaskIDBadRequest) IsServerError ¶
func (o *DeleteAPIKeyModelTrainingTaskIDBadRequest) IsServerError() bool
IsServerError returns true when this delete Api key model training task Id bad request response has a 5xx status code
func (*DeleteAPIKeyModelTrainingTaskIDBadRequest) IsSuccess ¶
func (o *DeleteAPIKeyModelTrainingTaskIDBadRequest) IsSuccess() bool
IsSuccess returns true when this delete Api key model training task Id bad request response has a 2xx status code
func (*DeleteAPIKeyModelTrainingTaskIDBadRequest) String ¶
func (o *DeleteAPIKeyModelTrainingTaskIDBadRequest) String() string
type DeleteAPIKeyModelTrainingTaskIDInternalServerError ¶
type DeleteAPIKeyModelTrainingTaskIDInternalServerError struct {
Payload *models.ResponseErrorResponse
}
DeleteAPIKeyModelTrainingTaskIDInternalServerError describes a response with status code 500, with default header values.
Internal Server Error
func NewDeleteAPIKeyModelTrainingTaskIDInternalServerError ¶
func NewDeleteAPIKeyModelTrainingTaskIDInternalServerError() *DeleteAPIKeyModelTrainingTaskIDInternalServerError
NewDeleteAPIKeyModelTrainingTaskIDInternalServerError creates a DeleteAPIKeyModelTrainingTaskIDInternalServerError with default headers values
func (*DeleteAPIKeyModelTrainingTaskIDInternalServerError) Code ¶
func (o *DeleteAPIKeyModelTrainingTaskIDInternalServerError) Code() int
Code gets the status code for the delete Api key model training task Id internal server error response
func (*DeleteAPIKeyModelTrainingTaskIDInternalServerError) Error ¶
func (o *DeleteAPIKeyModelTrainingTaskIDInternalServerError) Error() string
func (*DeleteAPIKeyModelTrainingTaskIDInternalServerError) GetPayload ¶
func (o *DeleteAPIKeyModelTrainingTaskIDInternalServerError) GetPayload() *models.ResponseErrorResponse
func (*DeleteAPIKeyModelTrainingTaskIDInternalServerError) IsClientError ¶
func (o *DeleteAPIKeyModelTrainingTaskIDInternalServerError) IsClientError() bool
IsClientError returns true when this delete Api key model training task Id internal server error response has a 4xx status code
func (*DeleteAPIKeyModelTrainingTaskIDInternalServerError) IsCode ¶
func (o *DeleteAPIKeyModelTrainingTaskIDInternalServerError) IsCode(code int) bool
IsCode returns true when this delete Api key model training task Id internal server error response a status code equal to that given
func (*DeleteAPIKeyModelTrainingTaskIDInternalServerError) IsRedirect ¶
func (o *DeleteAPIKeyModelTrainingTaskIDInternalServerError) IsRedirect() bool
IsRedirect returns true when this delete Api key model training task Id internal server error response has a 3xx status code
func (*DeleteAPIKeyModelTrainingTaskIDInternalServerError) IsServerError ¶
func (o *DeleteAPIKeyModelTrainingTaskIDInternalServerError) IsServerError() bool
IsServerError returns true when this delete Api key model training task Id internal server error response has a 5xx status code
func (*DeleteAPIKeyModelTrainingTaskIDInternalServerError) IsSuccess ¶
func (o *DeleteAPIKeyModelTrainingTaskIDInternalServerError) IsSuccess() bool
IsSuccess returns true when this delete Api key model training task Id internal server error response has a 2xx status code
func (*DeleteAPIKeyModelTrainingTaskIDInternalServerError) String ¶
func (o *DeleteAPIKeyModelTrainingTaskIDInternalServerError) String() string
type DeleteAPIKeyModelTrainingTaskIDOK ¶
type DeleteAPIKeyModelTrainingTaskIDOK struct {
Payload *models.ResponseSuccessResponse
}
DeleteAPIKeyModelTrainingTaskIDOK describes a response with status code 200, with default header values.
OK
func NewDeleteAPIKeyModelTrainingTaskIDOK ¶
func NewDeleteAPIKeyModelTrainingTaskIDOK() *DeleteAPIKeyModelTrainingTaskIDOK
NewDeleteAPIKeyModelTrainingTaskIDOK creates a DeleteAPIKeyModelTrainingTaskIDOK with default headers values
func (*DeleteAPIKeyModelTrainingTaskIDOK) Code ¶
func (o *DeleteAPIKeyModelTrainingTaskIDOK) Code() int
Code gets the status code for the delete Api key model training task Id o k response
func (*DeleteAPIKeyModelTrainingTaskIDOK) Error ¶
func (o *DeleteAPIKeyModelTrainingTaskIDOK) Error() string
func (*DeleteAPIKeyModelTrainingTaskIDOK) GetPayload ¶
func (o *DeleteAPIKeyModelTrainingTaskIDOK) GetPayload() *models.ResponseSuccessResponse
func (*DeleteAPIKeyModelTrainingTaskIDOK) IsClientError ¶
func (o *DeleteAPIKeyModelTrainingTaskIDOK) IsClientError() bool
IsClientError returns true when this delete Api key model training task Id o k response has a 4xx status code
func (*DeleteAPIKeyModelTrainingTaskIDOK) IsCode ¶
func (o *DeleteAPIKeyModelTrainingTaskIDOK) IsCode(code int) bool
IsCode returns true when this delete Api key model training task Id o k response a status code equal to that given
func (*DeleteAPIKeyModelTrainingTaskIDOK) IsRedirect ¶
func (o *DeleteAPIKeyModelTrainingTaskIDOK) IsRedirect() bool
IsRedirect returns true when this delete Api key model training task Id o k response has a 3xx status code
func (*DeleteAPIKeyModelTrainingTaskIDOK) IsServerError ¶
func (o *DeleteAPIKeyModelTrainingTaskIDOK) IsServerError() bool
IsServerError returns true when this delete Api key model training task Id o k response has a 5xx status code
func (*DeleteAPIKeyModelTrainingTaskIDOK) IsSuccess ¶
func (o *DeleteAPIKeyModelTrainingTaskIDOK) IsSuccess() bool
IsSuccess returns true when this delete Api key model training task Id o k response has a 2xx status code
func (*DeleteAPIKeyModelTrainingTaskIDOK) String ¶
func (o *DeleteAPIKeyModelTrainingTaskIDOK) String() string
type DeleteAPIKeyModelTrainingTaskIDParams ¶
type DeleteAPIKeyModelTrainingTaskIDParams struct {
/* ID.
Training Task's id
*/
ID string
Context context.Context
HTTPClient *http.Client
// contains filtered or unexported fields
}
DeleteAPIKeyModelTrainingTaskIDParams contains all the parameters to send to the API endpoint
for the delete API key model training task ID operation. Typically these are written to a http.Request.
func NewDeleteAPIKeyModelTrainingTaskIDParams ¶
func NewDeleteAPIKeyModelTrainingTaskIDParams() *DeleteAPIKeyModelTrainingTaskIDParams
NewDeleteAPIKeyModelTrainingTaskIDParams creates a new DeleteAPIKeyModelTrainingTaskIDParams 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 NewDeleteAPIKeyModelTrainingTaskIDParamsWithContext ¶
func NewDeleteAPIKeyModelTrainingTaskIDParamsWithContext(ctx context.Context) *DeleteAPIKeyModelTrainingTaskIDParams
NewDeleteAPIKeyModelTrainingTaskIDParamsWithContext creates a new DeleteAPIKeyModelTrainingTaskIDParams object with the ability to set a context for a request.
func NewDeleteAPIKeyModelTrainingTaskIDParamsWithHTTPClient ¶
func NewDeleteAPIKeyModelTrainingTaskIDParamsWithHTTPClient(client *http.Client) *DeleteAPIKeyModelTrainingTaskIDParams
NewDeleteAPIKeyModelTrainingTaskIDParamsWithHTTPClient creates a new DeleteAPIKeyModelTrainingTaskIDParams object with the ability to set a custom HTTPClient for a request.
func NewDeleteAPIKeyModelTrainingTaskIDParamsWithTimeout ¶
func NewDeleteAPIKeyModelTrainingTaskIDParamsWithTimeout(timeout time.Duration) *DeleteAPIKeyModelTrainingTaskIDParams
NewDeleteAPIKeyModelTrainingTaskIDParamsWithTimeout creates a new DeleteAPIKeyModelTrainingTaskIDParams object with the ability to set a timeout on a request.
func (*DeleteAPIKeyModelTrainingTaskIDParams) SetContext ¶
func (o *DeleteAPIKeyModelTrainingTaskIDParams) SetContext(ctx context.Context)
SetContext adds the context to the delete API key model training task ID params
func (*DeleteAPIKeyModelTrainingTaskIDParams) SetDefaults ¶
func (o *DeleteAPIKeyModelTrainingTaskIDParams) SetDefaults()
SetDefaults hydrates default values in the delete API key model training task ID params (not the query body).
All values with no default are reset to their zero value.
func (*DeleteAPIKeyModelTrainingTaskIDParams) SetHTTPClient ¶
func (o *DeleteAPIKeyModelTrainingTaskIDParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the delete API key model training task ID params
func (*DeleteAPIKeyModelTrainingTaskIDParams) SetID ¶
func (o *DeleteAPIKeyModelTrainingTaskIDParams) SetID(id string)
SetID adds the id to the delete API key model training task ID params
func (*DeleteAPIKeyModelTrainingTaskIDParams) SetTimeout ¶
func (o *DeleteAPIKeyModelTrainingTaskIDParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the delete API key model training task ID params
func (*DeleteAPIKeyModelTrainingTaskIDParams) WithContext ¶
func (o *DeleteAPIKeyModelTrainingTaskIDParams) WithContext(ctx context.Context) *DeleteAPIKeyModelTrainingTaskIDParams
WithContext adds the context to the delete API key model training task ID params
func (*DeleteAPIKeyModelTrainingTaskIDParams) WithDefaults ¶
func (o *DeleteAPIKeyModelTrainingTaskIDParams) WithDefaults() *DeleteAPIKeyModelTrainingTaskIDParams
WithDefaults hydrates default values in the delete API key model training task ID params (not the query body).
All values with no default are reset to their zero value.
func (*DeleteAPIKeyModelTrainingTaskIDParams) WithHTTPClient ¶
func (o *DeleteAPIKeyModelTrainingTaskIDParams) WithHTTPClient(client *http.Client) *DeleteAPIKeyModelTrainingTaskIDParams
WithHTTPClient adds the HTTPClient to the delete API key model training task ID params
func (*DeleteAPIKeyModelTrainingTaskIDParams) WithID ¶
func (o *DeleteAPIKeyModelTrainingTaskIDParams) WithID(id string) *DeleteAPIKeyModelTrainingTaskIDParams
WithID adds the id to the delete API key model training task ID params
func (*DeleteAPIKeyModelTrainingTaskIDParams) WithTimeout ¶
func (o *DeleteAPIKeyModelTrainingTaskIDParams) WithTimeout(timeout time.Duration) *DeleteAPIKeyModelTrainingTaskIDParams
WithTimeout adds the timeout to the delete API key model training task ID params
func (*DeleteAPIKeyModelTrainingTaskIDParams) WriteToRequest ¶
func (o *DeleteAPIKeyModelTrainingTaskIDParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type DeleteAPIKeyModelTrainingTaskIDReader ¶
type DeleteAPIKeyModelTrainingTaskIDReader struct {
// contains filtered or unexported fields
}
DeleteAPIKeyModelTrainingTaskIDReader is a Reader for the DeleteAPIKeyModelTrainingTaskID structure.
func (*DeleteAPIKeyModelTrainingTaskIDReader) ReadResponse ¶
func (o *DeleteAPIKeyModelTrainingTaskIDReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (any, error)
ReadResponse reads a server response into the received o.
type GetAPIKeyModelTrainingTaskBadRequest ¶
type GetAPIKeyModelTrainingTaskBadRequest struct {
Payload *models.ResponseFailResponse
}
GetAPIKeyModelTrainingTaskBadRequest describes a response with status code 400, with default header values.
Bad Request
func NewGetAPIKeyModelTrainingTaskBadRequest ¶
func NewGetAPIKeyModelTrainingTaskBadRequest() *GetAPIKeyModelTrainingTaskBadRequest
NewGetAPIKeyModelTrainingTaskBadRequest creates a GetAPIKeyModelTrainingTaskBadRequest with default headers values
func (*GetAPIKeyModelTrainingTaskBadRequest) Code ¶
func (o *GetAPIKeyModelTrainingTaskBadRequest) Code() int
Code gets the status code for the get Api key model training task bad request response
func (*GetAPIKeyModelTrainingTaskBadRequest) Error ¶
func (o *GetAPIKeyModelTrainingTaskBadRequest) Error() string
func (*GetAPIKeyModelTrainingTaskBadRequest) GetPayload ¶
func (o *GetAPIKeyModelTrainingTaskBadRequest) GetPayload() *models.ResponseFailResponse
func (*GetAPIKeyModelTrainingTaskBadRequest) IsClientError ¶
func (o *GetAPIKeyModelTrainingTaskBadRequest) IsClientError() bool
IsClientError returns true when this get Api key model training task bad request response has a 4xx status code
func (*GetAPIKeyModelTrainingTaskBadRequest) IsCode ¶
func (o *GetAPIKeyModelTrainingTaskBadRequest) IsCode(code int) bool
IsCode returns true when this get Api key model training task bad request response a status code equal to that given
func (*GetAPIKeyModelTrainingTaskBadRequest) IsRedirect ¶
func (o *GetAPIKeyModelTrainingTaskBadRequest) IsRedirect() bool
IsRedirect returns true when this get Api key model training task bad request response has a 3xx status code
func (*GetAPIKeyModelTrainingTaskBadRequest) IsServerError ¶
func (o *GetAPIKeyModelTrainingTaskBadRequest) IsServerError() bool
IsServerError returns true when this get Api key model training task bad request response has a 5xx status code
func (*GetAPIKeyModelTrainingTaskBadRequest) IsSuccess ¶
func (o *GetAPIKeyModelTrainingTaskBadRequest) IsSuccess() bool
IsSuccess returns true when this get Api key model training task bad request response has a 2xx status code
func (*GetAPIKeyModelTrainingTaskBadRequest) String ¶
func (o *GetAPIKeyModelTrainingTaskBadRequest) String() string
type GetAPIKeyModelTrainingTaskInternalServerError ¶
type GetAPIKeyModelTrainingTaskInternalServerError struct {
Payload *models.ResponseErrorResponse
}
GetAPIKeyModelTrainingTaskInternalServerError describes a response with status code 500, with default header values.
Internal Server Error
func NewGetAPIKeyModelTrainingTaskInternalServerError ¶
func NewGetAPIKeyModelTrainingTaskInternalServerError() *GetAPIKeyModelTrainingTaskInternalServerError
NewGetAPIKeyModelTrainingTaskInternalServerError creates a GetAPIKeyModelTrainingTaskInternalServerError with default headers values
func (*GetAPIKeyModelTrainingTaskInternalServerError) Code ¶
func (o *GetAPIKeyModelTrainingTaskInternalServerError) Code() int
Code gets the status code for the get Api key model training task internal server error response
func (*GetAPIKeyModelTrainingTaskInternalServerError) Error ¶
func (o *GetAPIKeyModelTrainingTaskInternalServerError) Error() string
func (*GetAPIKeyModelTrainingTaskInternalServerError) GetPayload ¶
func (o *GetAPIKeyModelTrainingTaskInternalServerError) GetPayload() *models.ResponseErrorResponse
func (*GetAPIKeyModelTrainingTaskInternalServerError) IsClientError ¶
func (o *GetAPIKeyModelTrainingTaskInternalServerError) IsClientError() bool
IsClientError returns true when this get Api key model training task internal server error response has a 4xx status code
func (*GetAPIKeyModelTrainingTaskInternalServerError) IsCode ¶
func (o *GetAPIKeyModelTrainingTaskInternalServerError) IsCode(code int) bool
IsCode returns true when this get Api key model training task internal server error response a status code equal to that given
func (*GetAPIKeyModelTrainingTaskInternalServerError) IsRedirect ¶
func (o *GetAPIKeyModelTrainingTaskInternalServerError) IsRedirect() bool
IsRedirect returns true when this get Api key model training task internal server error response has a 3xx status code
func (*GetAPIKeyModelTrainingTaskInternalServerError) IsServerError ¶
func (o *GetAPIKeyModelTrainingTaskInternalServerError) IsServerError() bool
IsServerError returns true when this get Api key model training task internal server error response has a 5xx status code
func (*GetAPIKeyModelTrainingTaskInternalServerError) IsSuccess ¶
func (o *GetAPIKeyModelTrainingTaskInternalServerError) IsSuccess() bool
IsSuccess returns true when this get Api key model training task internal server error response has a 2xx status code
func (*GetAPIKeyModelTrainingTaskInternalServerError) String ¶
func (o *GetAPIKeyModelTrainingTaskInternalServerError) String() string
type GetAPIKeyModelTrainingTaskOK ¶
type GetAPIKeyModelTrainingTaskOK struct {
Payload *models.ResponseUserTrainingTaskListResponse
}
GetAPIKeyModelTrainingTaskOK describes a response with status code 200, with default header values.
OK
func NewGetAPIKeyModelTrainingTaskOK ¶
func NewGetAPIKeyModelTrainingTaskOK() *GetAPIKeyModelTrainingTaskOK
NewGetAPIKeyModelTrainingTaskOK creates a GetAPIKeyModelTrainingTaskOK with default headers values
func (*GetAPIKeyModelTrainingTaskOK) Code ¶
func (o *GetAPIKeyModelTrainingTaskOK) Code() int
Code gets the status code for the get Api key model training task o k response
func (*GetAPIKeyModelTrainingTaskOK) Error ¶
func (o *GetAPIKeyModelTrainingTaskOK) Error() string
func (*GetAPIKeyModelTrainingTaskOK) GetPayload ¶
func (o *GetAPIKeyModelTrainingTaskOK) GetPayload() *models.ResponseUserTrainingTaskListResponse
func (*GetAPIKeyModelTrainingTaskOK) IsClientError ¶
func (o *GetAPIKeyModelTrainingTaskOK) IsClientError() bool
IsClientError returns true when this get Api key model training task o k response has a 4xx status code
func (*GetAPIKeyModelTrainingTaskOK) IsCode ¶
func (o *GetAPIKeyModelTrainingTaskOK) IsCode(code int) bool
IsCode returns true when this get Api key model training task o k response a status code equal to that given
func (*GetAPIKeyModelTrainingTaskOK) IsRedirect ¶
func (o *GetAPIKeyModelTrainingTaskOK) IsRedirect() bool
IsRedirect returns true when this get Api key model training task o k response has a 3xx status code
func (*GetAPIKeyModelTrainingTaskOK) IsServerError ¶
func (o *GetAPIKeyModelTrainingTaskOK) IsServerError() bool
IsServerError returns true when this get Api key model training task o k response has a 5xx status code
func (*GetAPIKeyModelTrainingTaskOK) IsSuccess ¶
func (o *GetAPIKeyModelTrainingTaskOK) IsSuccess() bool
IsSuccess returns true when this get Api key model training task o k response has a 2xx status code
func (*GetAPIKeyModelTrainingTaskOK) String ¶
func (o *GetAPIKeyModelTrainingTaskOK) String() string
type GetAPIKeyModelTrainingTaskParams ¶
type GetAPIKeyModelTrainingTaskParams struct {
/* Input.
Get List User Training Task Request
*/
Input *models.RequestGetListUserTrainingTaskRequest
Context context.Context
HTTPClient *http.Client
// contains filtered or unexported fields
}
GetAPIKeyModelTrainingTaskParams contains all the parameters to send to the API endpoint
for the get API key model training task operation. Typically these are written to a http.Request.
func NewGetAPIKeyModelTrainingTaskParams ¶
func NewGetAPIKeyModelTrainingTaskParams() *GetAPIKeyModelTrainingTaskParams
NewGetAPIKeyModelTrainingTaskParams creates a new GetAPIKeyModelTrainingTaskParams 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 NewGetAPIKeyModelTrainingTaskParamsWithContext ¶
func NewGetAPIKeyModelTrainingTaskParamsWithContext(ctx context.Context) *GetAPIKeyModelTrainingTaskParams
NewGetAPIKeyModelTrainingTaskParamsWithContext creates a new GetAPIKeyModelTrainingTaskParams object with the ability to set a context for a request.
func NewGetAPIKeyModelTrainingTaskParamsWithHTTPClient ¶
func NewGetAPIKeyModelTrainingTaskParamsWithHTTPClient(client *http.Client) *GetAPIKeyModelTrainingTaskParams
NewGetAPIKeyModelTrainingTaskParamsWithHTTPClient creates a new GetAPIKeyModelTrainingTaskParams object with the ability to set a custom HTTPClient for a request.
func NewGetAPIKeyModelTrainingTaskParamsWithTimeout ¶
func NewGetAPIKeyModelTrainingTaskParamsWithTimeout(timeout time.Duration) *GetAPIKeyModelTrainingTaskParams
NewGetAPIKeyModelTrainingTaskParamsWithTimeout creates a new GetAPIKeyModelTrainingTaskParams object with the ability to set a timeout on a request.
func (*GetAPIKeyModelTrainingTaskParams) SetContext ¶
func (o *GetAPIKeyModelTrainingTaskParams) SetContext(ctx context.Context)
SetContext adds the context to the get API key model training task params
func (*GetAPIKeyModelTrainingTaskParams) SetDefaults ¶
func (o *GetAPIKeyModelTrainingTaskParams) SetDefaults()
SetDefaults hydrates default values in the get API key model training task params (not the query body).
All values with no default are reset to their zero value.
func (*GetAPIKeyModelTrainingTaskParams) SetHTTPClient ¶
func (o *GetAPIKeyModelTrainingTaskParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get API key model training task params
func (*GetAPIKeyModelTrainingTaskParams) SetInput ¶
func (o *GetAPIKeyModelTrainingTaskParams) SetInput(input *models.RequestGetListUserTrainingTaskRequest)
SetInput adds the input to the get API key model training task params
func (*GetAPIKeyModelTrainingTaskParams) SetTimeout ¶
func (o *GetAPIKeyModelTrainingTaskParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get API key model training task params
func (*GetAPIKeyModelTrainingTaskParams) WithContext ¶
func (o *GetAPIKeyModelTrainingTaskParams) WithContext(ctx context.Context) *GetAPIKeyModelTrainingTaskParams
WithContext adds the context to the get API key model training task params
func (*GetAPIKeyModelTrainingTaskParams) WithDefaults ¶
func (o *GetAPIKeyModelTrainingTaskParams) WithDefaults() *GetAPIKeyModelTrainingTaskParams
WithDefaults hydrates default values in the get API key model training task params (not the query body).
All values with no default are reset to their zero value.
func (*GetAPIKeyModelTrainingTaskParams) WithHTTPClient ¶
func (o *GetAPIKeyModelTrainingTaskParams) WithHTTPClient(client *http.Client) *GetAPIKeyModelTrainingTaskParams
WithHTTPClient adds the HTTPClient to the get API key model training task params
func (*GetAPIKeyModelTrainingTaskParams) WithInput ¶
func (o *GetAPIKeyModelTrainingTaskParams) WithInput(input *models.RequestGetListUserTrainingTaskRequest) *GetAPIKeyModelTrainingTaskParams
WithInput adds the input to the get API key model training task params
func (*GetAPIKeyModelTrainingTaskParams) WithTimeout ¶
func (o *GetAPIKeyModelTrainingTaskParams) WithTimeout(timeout time.Duration) *GetAPIKeyModelTrainingTaskParams
WithTimeout adds the timeout to the get API key model training task params
func (*GetAPIKeyModelTrainingTaskParams) WriteToRequest ¶
func (o *GetAPIKeyModelTrainingTaskParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetAPIKeyModelTrainingTaskReader ¶
type GetAPIKeyModelTrainingTaskReader struct {
// contains filtered or unexported fields
}
GetAPIKeyModelTrainingTaskReader is a Reader for the GetAPIKeyModelTrainingTask structure.
func (*GetAPIKeyModelTrainingTaskReader) ReadResponse ¶
func (o *GetAPIKeyModelTrainingTaskReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (any, error)
ReadResponse reads a server response into the received o.
type PostAPIKeyModelTrainingCostBadRequest ¶
type PostAPIKeyModelTrainingCostBadRequest struct {
Payload *models.ResponseFailResponse
}
PostAPIKeyModelTrainingCostBadRequest describes a response with status code 400, with default header values.
Bad Request
func NewPostAPIKeyModelTrainingCostBadRequest ¶
func NewPostAPIKeyModelTrainingCostBadRequest() *PostAPIKeyModelTrainingCostBadRequest
NewPostAPIKeyModelTrainingCostBadRequest creates a PostAPIKeyModelTrainingCostBadRequest with default headers values
func (*PostAPIKeyModelTrainingCostBadRequest) Code ¶
func (o *PostAPIKeyModelTrainingCostBadRequest) Code() int
Code gets the status code for the post Api key model training cost bad request response
func (*PostAPIKeyModelTrainingCostBadRequest) Error ¶
func (o *PostAPIKeyModelTrainingCostBadRequest) Error() string
func (*PostAPIKeyModelTrainingCostBadRequest) GetPayload ¶
func (o *PostAPIKeyModelTrainingCostBadRequest) GetPayload() *models.ResponseFailResponse
func (*PostAPIKeyModelTrainingCostBadRequest) IsClientError ¶
func (o *PostAPIKeyModelTrainingCostBadRequest) IsClientError() bool
IsClientError returns true when this post Api key model training cost bad request response has a 4xx status code
func (*PostAPIKeyModelTrainingCostBadRequest) IsCode ¶
func (o *PostAPIKeyModelTrainingCostBadRequest) IsCode(code int) bool
IsCode returns true when this post Api key model training cost bad request response a status code equal to that given
func (*PostAPIKeyModelTrainingCostBadRequest) IsRedirect ¶
func (o *PostAPIKeyModelTrainingCostBadRequest) IsRedirect() bool
IsRedirect returns true when this post Api key model training cost bad request response has a 3xx status code
func (*PostAPIKeyModelTrainingCostBadRequest) IsServerError ¶
func (o *PostAPIKeyModelTrainingCostBadRequest) IsServerError() bool
IsServerError returns true when this post Api key model training cost bad request response has a 5xx status code
func (*PostAPIKeyModelTrainingCostBadRequest) IsSuccess ¶
func (o *PostAPIKeyModelTrainingCostBadRequest) IsSuccess() bool
IsSuccess returns true when this post Api key model training cost bad request response has a 2xx status code
func (*PostAPIKeyModelTrainingCostBadRequest) String ¶
func (o *PostAPIKeyModelTrainingCostBadRequest) String() string
type PostAPIKeyModelTrainingCostInternalServerError ¶
type PostAPIKeyModelTrainingCostInternalServerError struct {
Payload *models.ResponseErrorResponse
}
PostAPIKeyModelTrainingCostInternalServerError describes a response with status code 500, with default header values.
Internal Server Error
func NewPostAPIKeyModelTrainingCostInternalServerError ¶
func NewPostAPIKeyModelTrainingCostInternalServerError() *PostAPIKeyModelTrainingCostInternalServerError
NewPostAPIKeyModelTrainingCostInternalServerError creates a PostAPIKeyModelTrainingCostInternalServerError with default headers values
func (*PostAPIKeyModelTrainingCostInternalServerError) Code ¶
func (o *PostAPIKeyModelTrainingCostInternalServerError) Code() int
Code gets the status code for the post Api key model training cost internal server error response
func (*PostAPIKeyModelTrainingCostInternalServerError) Error ¶
func (o *PostAPIKeyModelTrainingCostInternalServerError) Error() string
func (*PostAPIKeyModelTrainingCostInternalServerError) GetPayload ¶
func (o *PostAPIKeyModelTrainingCostInternalServerError) GetPayload() *models.ResponseErrorResponse
func (*PostAPIKeyModelTrainingCostInternalServerError) IsClientError ¶
func (o *PostAPIKeyModelTrainingCostInternalServerError) IsClientError() bool
IsClientError returns true when this post Api key model training cost internal server error response has a 4xx status code
func (*PostAPIKeyModelTrainingCostInternalServerError) IsCode ¶
func (o *PostAPIKeyModelTrainingCostInternalServerError) IsCode(code int) bool
IsCode returns true when this post Api key model training cost internal server error response a status code equal to that given
func (*PostAPIKeyModelTrainingCostInternalServerError) IsRedirect ¶
func (o *PostAPIKeyModelTrainingCostInternalServerError) IsRedirect() bool
IsRedirect returns true when this post Api key model training cost internal server error response has a 3xx status code
func (*PostAPIKeyModelTrainingCostInternalServerError) IsServerError ¶
func (o *PostAPIKeyModelTrainingCostInternalServerError) IsServerError() bool
IsServerError returns true when this post Api key model training cost internal server error response has a 5xx status code
func (*PostAPIKeyModelTrainingCostInternalServerError) IsSuccess ¶
func (o *PostAPIKeyModelTrainingCostInternalServerError) IsSuccess() bool
IsSuccess returns true when this post Api key model training cost internal server error response has a 2xx status code
func (*PostAPIKeyModelTrainingCostInternalServerError) String ¶
func (o *PostAPIKeyModelTrainingCostInternalServerError) String() string
type PostAPIKeyModelTrainingCostOK ¶
type PostAPIKeyModelTrainingCostOK struct {
Payload *models.ResponseEstimateCostResponse
}
PostAPIKeyModelTrainingCostOK describes a response with status code 200, with default header values.
OK
func NewPostAPIKeyModelTrainingCostOK ¶
func NewPostAPIKeyModelTrainingCostOK() *PostAPIKeyModelTrainingCostOK
NewPostAPIKeyModelTrainingCostOK creates a PostAPIKeyModelTrainingCostOK with default headers values
func (*PostAPIKeyModelTrainingCostOK) Code ¶
func (o *PostAPIKeyModelTrainingCostOK) Code() int
Code gets the status code for the post Api key model training cost o k response
func (*PostAPIKeyModelTrainingCostOK) Error ¶
func (o *PostAPIKeyModelTrainingCostOK) Error() string
func (*PostAPIKeyModelTrainingCostOK) GetPayload ¶
func (o *PostAPIKeyModelTrainingCostOK) GetPayload() *models.ResponseEstimateCostResponse
func (*PostAPIKeyModelTrainingCostOK) IsClientError ¶
func (o *PostAPIKeyModelTrainingCostOK) IsClientError() bool
IsClientError returns true when this post Api key model training cost o k response has a 4xx status code
func (*PostAPIKeyModelTrainingCostOK) IsCode ¶
func (o *PostAPIKeyModelTrainingCostOK) IsCode(code int) bool
IsCode returns true when this post Api key model training cost o k response a status code equal to that given
func (*PostAPIKeyModelTrainingCostOK) IsRedirect ¶
func (o *PostAPIKeyModelTrainingCostOK) IsRedirect() bool
IsRedirect returns true when this post Api key model training cost o k response has a 3xx status code
func (*PostAPIKeyModelTrainingCostOK) IsServerError ¶
func (o *PostAPIKeyModelTrainingCostOK) IsServerError() bool
IsServerError returns true when this post Api key model training cost o k response has a 5xx status code
func (*PostAPIKeyModelTrainingCostOK) IsSuccess ¶
func (o *PostAPIKeyModelTrainingCostOK) IsSuccess() bool
IsSuccess returns true when this post Api key model training cost o k response has a 2xx status code
func (*PostAPIKeyModelTrainingCostOK) String ¶
func (o *PostAPIKeyModelTrainingCostOK) String() string
type PostAPIKeyModelTrainingCostParams ¶
type PostAPIKeyModelTrainingCostParams struct {
/* Input.
Calculate Cost To Training Ai Model Request
*/
Input *models.RequestCalculateCostToTrainingAiModelRequest
Context context.Context
HTTPClient *http.Client
// contains filtered or unexported fields
}
PostAPIKeyModelTrainingCostParams contains all the parameters to send to the API endpoint
for the post API key model training cost operation. Typically these are written to a http.Request.
func NewPostAPIKeyModelTrainingCostParams ¶
func NewPostAPIKeyModelTrainingCostParams() *PostAPIKeyModelTrainingCostParams
NewPostAPIKeyModelTrainingCostParams creates a new PostAPIKeyModelTrainingCostParams 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 NewPostAPIKeyModelTrainingCostParamsWithContext ¶
func NewPostAPIKeyModelTrainingCostParamsWithContext(ctx context.Context) *PostAPIKeyModelTrainingCostParams
NewPostAPIKeyModelTrainingCostParamsWithContext creates a new PostAPIKeyModelTrainingCostParams object with the ability to set a context for a request.
func NewPostAPIKeyModelTrainingCostParamsWithHTTPClient ¶
func NewPostAPIKeyModelTrainingCostParamsWithHTTPClient(client *http.Client) *PostAPIKeyModelTrainingCostParams
NewPostAPIKeyModelTrainingCostParamsWithHTTPClient creates a new PostAPIKeyModelTrainingCostParams object with the ability to set a custom HTTPClient for a request.
func NewPostAPIKeyModelTrainingCostParamsWithTimeout ¶
func NewPostAPIKeyModelTrainingCostParamsWithTimeout(timeout time.Duration) *PostAPIKeyModelTrainingCostParams
NewPostAPIKeyModelTrainingCostParamsWithTimeout creates a new PostAPIKeyModelTrainingCostParams object with the ability to set a timeout on a request.
func (*PostAPIKeyModelTrainingCostParams) SetContext ¶
func (o *PostAPIKeyModelTrainingCostParams) SetContext(ctx context.Context)
SetContext adds the context to the post API key model training cost params
func (*PostAPIKeyModelTrainingCostParams) SetDefaults ¶
func (o *PostAPIKeyModelTrainingCostParams) SetDefaults()
SetDefaults hydrates default values in the post API key model training cost params (not the query body).
All values with no default are reset to their zero value.
func (*PostAPIKeyModelTrainingCostParams) SetHTTPClient ¶
func (o *PostAPIKeyModelTrainingCostParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the post API key model training cost params
func (*PostAPIKeyModelTrainingCostParams) SetInput ¶
func (o *PostAPIKeyModelTrainingCostParams) SetInput(input *models.RequestCalculateCostToTrainingAiModelRequest)
SetInput adds the input to the post API key model training cost params
func (*PostAPIKeyModelTrainingCostParams) SetTimeout ¶
func (o *PostAPIKeyModelTrainingCostParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the post API key model training cost params
func (*PostAPIKeyModelTrainingCostParams) WithContext ¶
func (o *PostAPIKeyModelTrainingCostParams) WithContext(ctx context.Context) *PostAPIKeyModelTrainingCostParams
WithContext adds the context to the post API key model training cost params
func (*PostAPIKeyModelTrainingCostParams) WithDefaults ¶
func (o *PostAPIKeyModelTrainingCostParams) WithDefaults() *PostAPIKeyModelTrainingCostParams
WithDefaults hydrates default values in the post API key model training cost params (not the query body).
All values with no default are reset to their zero value.
func (*PostAPIKeyModelTrainingCostParams) WithHTTPClient ¶
func (o *PostAPIKeyModelTrainingCostParams) WithHTTPClient(client *http.Client) *PostAPIKeyModelTrainingCostParams
WithHTTPClient adds the HTTPClient to the post API key model training cost params
func (*PostAPIKeyModelTrainingCostParams) WithInput ¶
func (o *PostAPIKeyModelTrainingCostParams) WithInput(input *models.RequestCalculateCostToTrainingAiModelRequest) *PostAPIKeyModelTrainingCostParams
WithInput adds the input to the post API key model training cost params
func (*PostAPIKeyModelTrainingCostParams) WithTimeout ¶
func (o *PostAPIKeyModelTrainingCostParams) WithTimeout(timeout time.Duration) *PostAPIKeyModelTrainingCostParams
WithTimeout adds the timeout to the post API key model training cost params
func (*PostAPIKeyModelTrainingCostParams) WriteToRequest ¶
func (o *PostAPIKeyModelTrainingCostParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type PostAPIKeyModelTrainingCostReader ¶
type PostAPIKeyModelTrainingCostReader struct {
// contains filtered or unexported fields
}
PostAPIKeyModelTrainingCostReader is a Reader for the PostAPIKeyModelTrainingCost structure.
func (*PostAPIKeyModelTrainingCostReader) ReadResponse ¶
func (o *PostAPIKeyModelTrainingCostReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (any, error)
ReadResponse reads a server response into the received o.
Source Files
¶
- api_key_model_training_client.go
- delete_api_key_model_training_task_id_parameters.go
- delete_api_key_model_training_task_id_responses.go
- get_api_key_model_training_task_parameters.go
- get_api_key_model_training_task_responses.go
- post_api_key_model_training_cost_parameters.go
- post_api_key_model_training_cost_responses.go