api_key_model_training

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: 12 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 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

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

func (*DeleteAPIKeyModelTrainingTaskIDBadRequest) Error

func (*DeleteAPIKeyModelTrainingTaskIDBadRequest) GetPayload

func (*DeleteAPIKeyModelTrainingTaskIDBadRequest) IsClientError

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

func (*DeleteAPIKeyModelTrainingTaskIDBadRequest) IsCode

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

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

func (*DeleteAPIKeyModelTrainingTaskIDBadRequest) IsServerError

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

func (*DeleteAPIKeyModelTrainingTaskIDBadRequest) IsSuccess

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

func (*DeleteAPIKeyModelTrainingTaskIDBadRequest) 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

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

func (*DeleteAPIKeyModelTrainingTaskIDInternalServerError) Error

func (*DeleteAPIKeyModelTrainingTaskIDInternalServerError) GetPayload

func (*DeleteAPIKeyModelTrainingTaskIDInternalServerError) IsClientError

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

func (*DeleteAPIKeyModelTrainingTaskIDInternalServerError) IsCode

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

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

func (*DeleteAPIKeyModelTrainingTaskIDInternalServerError) IsServerError

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

func (*DeleteAPIKeyModelTrainingTaskIDInternalServerError) IsSuccess

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

func (*DeleteAPIKeyModelTrainingTaskIDInternalServerError) 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

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

func (*DeleteAPIKeyModelTrainingTaskIDOK) Error

func (*DeleteAPIKeyModelTrainingTaskIDOK) GetPayload

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

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

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

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

WithContext adds the context to the delete API key model training task ID params

func (*DeleteAPIKeyModelTrainingTaskIDParams) WithDefaults

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

WithHTTPClient adds the HTTPClient to the delete API key model training task ID params

func (*DeleteAPIKeyModelTrainingTaskIDParams) WithID

WithID adds the id to the delete API key model training task ID params

func (*DeleteAPIKeyModelTrainingTaskIDParams) WithTimeout

WithTimeout adds the timeout to the delete API key model training task ID params

func (*DeleteAPIKeyModelTrainingTaskIDParams) WriteToRequest

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

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

func (*GetAPIKeyModelTrainingTaskBadRequest) Error

func (*GetAPIKeyModelTrainingTaskBadRequest) GetPayload

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

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

func (*GetAPIKeyModelTrainingTaskBadRequest) IsRedirect

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

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

func (*GetAPIKeyModelTrainingTaskBadRequest) 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

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

func (*GetAPIKeyModelTrainingTaskInternalServerError) Error

func (*GetAPIKeyModelTrainingTaskInternalServerError) GetPayload

func (*GetAPIKeyModelTrainingTaskInternalServerError) IsClientError

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

func (*GetAPIKeyModelTrainingTaskInternalServerError) IsCode

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

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

func (*GetAPIKeyModelTrainingTaskInternalServerError) IsServerError

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

func (*GetAPIKeyModelTrainingTaskInternalServerError) IsSuccess

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

func (*GetAPIKeyModelTrainingTaskInternalServerError) 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

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

func (*GetAPIKeyModelTrainingTaskOK) Error

func (*GetAPIKeyModelTrainingTaskOK) GetPayload

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

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

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

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

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

func (*GetAPIKeyModelTrainingTaskParams) WithDefaults

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

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

func (*GetAPIKeyModelTrainingTaskParams) WithInput

WithInput adds the input to the get API key model training task params

func (*GetAPIKeyModelTrainingTaskParams) WithTimeout

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

func (*GetAPIKeyModelTrainingTaskParams) WriteToRequest

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

Code gets the status code for the post Api key model training cost bad request response

func (*PostAPIKeyModelTrainingCostBadRequest) Error

func (*PostAPIKeyModelTrainingCostBadRequest) GetPayload

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

IsCode returns true when this post Api key model training cost bad request response a status code equal to that given

func (*PostAPIKeyModelTrainingCostBadRequest) IsRedirect

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

IsSuccess returns true when this post Api key model training cost bad request response has a 2xx status code

func (*PostAPIKeyModelTrainingCostBadRequest) 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

Code gets the status code for the post Api key model training cost internal server error response

func (*PostAPIKeyModelTrainingCostInternalServerError) Error

func (*PostAPIKeyModelTrainingCostInternalServerError) GetPayload

func (*PostAPIKeyModelTrainingCostInternalServerError) IsClientError

IsClientError returns true when this post Api key model training cost internal server error response has a 4xx status code

func (*PostAPIKeyModelTrainingCostInternalServerError) IsCode

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

IsRedirect returns true when this post Api key model training cost internal server error response has a 3xx status code

func (*PostAPIKeyModelTrainingCostInternalServerError) IsServerError

IsServerError returns true when this post Api key model training cost internal server error response has a 5xx status code

func (*PostAPIKeyModelTrainingCostInternalServerError) IsSuccess

IsSuccess returns true when this post Api key model training cost internal server error response has a 2xx status code

func (*PostAPIKeyModelTrainingCostInternalServerError) 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

Code gets the status code for the post Api key model training cost o k response

func (*PostAPIKeyModelTrainingCostOK) Error

func (*PostAPIKeyModelTrainingCostOK) GetPayload

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

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

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

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

WithContext adds the context to the post API key model training cost params

func (*PostAPIKeyModelTrainingCostParams) WithDefaults

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

WithHTTPClient adds the HTTPClient to the post API key model training cost params

func (*PostAPIKeyModelTrainingCostParams) WithInput

WithInput adds the input to the post API key model training cost params

func (*PostAPIKeyModelTrainingCostParams) WithTimeout

WithTimeout adds the timeout to the post API key model training cost params

func (*PostAPIKeyModelTrainingCostParams) WriteToRequest

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.

Jump to

Keyboard shortcuts

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