api_key_model_setting

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 setting API

func (*Client) GetAPIKeyModelIDSetting

func (a *Client) GetAPIKeyModelIDSetting(params *GetAPIKeyModelIDSettingParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetAPIKeyModelIDSettingOK, error)

GetAPIKeyModelIDSetting gets model setting by model Id by Api key

func (*Client) PutAPIKeyModelIDSetting

func (a *Client) PutAPIKeyModelIDSetting(params *PutAPIKeyModelIDSettingParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PutAPIKeyModelIDSettingOK, error)

PutAPIKeyModelIDSetting updates model setting 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 {
	GetAPIKeyModelIDSetting(params *GetAPIKeyModelIDSettingParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetAPIKeyModelIDSettingOK, error)

	PutAPIKeyModelIDSetting(params *PutAPIKeyModelIDSettingParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PutAPIKeyModelIDSettingOK, 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 setting API client.

func NewClientWithBasicAuth

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

New creates a new api key model setting 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 setting 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 GetAPIKeyModelIDSettingBadRequest

type GetAPIKeyModelIDSettingBadRequest struct {
	Payload *models.ResponseFailResponse
}

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

Bad Request

func NewGetAPIKeyModelIDSettingBadRequest

func NewGetAPIKeyModelIDSettingBadRequest() *GetAPIKeyModelIDSettingBadRequest

NewGetAPIKeyModelIDSettingBadRequest creates a GetAPIKeyModelIDSettingBadRequest with default headers values

func (*GetAPIKeyModelIDSettingBadRequest) Code

Code gets the status code for the get Api key model Id setting bad request response

func (*GetAPIKeyModelIDSettingBadRequest) Error

func (*GetAPIKeyModelIDSettingBadRequest) GetPayload

func (*GetAPIKeyModelIDSettingBadRequest) IsClientError

func (o *GetAPIKeyModelIDSettingBadRequest) IsClientError() bool

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

func (*GetAPIKeyModelIDSettingBadRequest) IsCode

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

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

func (*GetAPIKeyModelIDSettingBadRequest) IsRedirect

func (o *GetAPIKeyModelIDSettingBadRequest) IsRedirect() bool

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

func (*GetAPIKeyModelIDSettingBadRequest) IsServerError

func (o *GetAPIKeyModelIDSettingBadRequest) IsServerError() bool

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

func (*GetAPIKeyModelIDSettingBadRequest) IsSuccess

func (o *GetAPIKeyModelIDSettingBadRequest) IsSuccess() bool

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

func (*GetAPIKeyModelIDSettingBadRequest) String

type GetAPIKeyModelIDSettingInternalServerError

type GetAPIKeyModelIDSettingInternalServerError struct {
	Payload *models.ResponseErrorResponse
}

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

Internal Server Error

func NewGetAPIKeyModelIDSettingInternalServerError

func NewGetAPIKeyModelIDSettingInternalServerError() *GetAPIKeyModelIDSettingInternalServerError

NewGetAPIKeyModelIDSettingInternalServerError creates a GetAPIKeyModelIDSettingInternalServerError with default headers values

func (*GetAPIKeyModelIDSettingInternalServerError) Code

Code gets the status code for the get Api key model Id setting internal server error response

func (*GetAPIKeyModelIDSettingInternalServerError) Error

func (*GetAPIKeyModelIDSettingInternalServerError) GetPayload

func (*GetAPIKeyModelIDSettingInternalServerError) IsClientError

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

func (*GetAPIKeyModelIDSettingInternalServerError) IsCode

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

func (*GetAPIKeyModelIDSettingInternalServerError) IsRedirect

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

func (*GetAPIKeyModelIDSettingInternalServerError) IsServerError

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

func (*GetAPIKeyModelIDSettingInternalServerError) IsSuccess

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

func (*GetAPIKeyModelIDSettingInternalServerError) String

type GetAPIKeyModelIDSettingOK

type GetAPIKeyModelIDSettingOK struct {
	Payload *models.ResponseModelSettingResponse
}

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

OK

func NewGetAPIKeyModelIDSettingOK

func NewGetAPIKeyModelIDSettingOK() *GetAPIKeyModelIDSettingOK

NewGetAPIKeyModelIDSettingOK creates a GetAPIKeyModelIDSettingOK with default headers values

func (*GetAPIKeyModelIDSettingOK) Code

func (o *GetAPIKeyModelIDSettingOK) Code() int

Code gets the status code for the get Api key model Id setting o k response

func (*GetAPIKeyModelIDSettingOK) Error

func (o *GetAPIKeyModelIDSettingOK) Error() string

func (*GetAPIKeyModelIDSettingOK) GetPayload

func (*GetAPIKeyModelIDSettingOK) IsClientError

func (o *GetAPIKeyModelIDSettingOK) IsClientError() bool

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

func (*GetAPIKeyModelIDSettingOK) IsCode

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

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

func (*GetAPIKeyModelIDSettingOK) IsRedirect

func (o *GetAPIKeyModelIDSettingOK) IsRedirect() bool

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

func (*GetAPIKeyModelIDSettingOK) IsServerError

func (o *GetAPIKeyModelIDSettingOK) IsServerError() bool

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

func (*GetAPIKeyModelIDSettingOK) IsSuccess

func (o *GetAPIKeyModelIDSettingOK) IsSuccess() bool

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

func (*GetAPIKeyModelIDSettingOK) String

func (o *GetAPIKeyModelIDSettingOK) String() string

type GetAPIKeyModelIDSettingParams

type GetAPIKeyModelIDSettingParams struct {

	/* ID.

	   Model's id
	*/
	ID string

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

GetAPIKeyModelIDSettingParams contains all the parameters to send to the API endpoint

for the get API key model ID setting operation.

Typically these are written to a http.Request.

func NewGetAPIKeyModelIDSettingParams

func NewGetAPIKeyModelIDSettingParams() *GetAPIKeyModelIDSettingParams

NewGetAPIKeyModelIDSettingParams creates a new GetAPIKeyModelIDSettingParams 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 NewGetAPIKeyModelIDSettingParamsWithContext

func NewGetAPIKeyModelIDSettingParamsWithContext(ctx context.Context) *GetAPIKeyModelIDSettingParams

NewGetAPIKeyModelIDSettingParamsWithContext creates a new GetAPIKeyModelIDSettingParams object with the ability to set a context for a request.

func NewGetAPIKeyModelIDSettingParamsWithHTTPClient

func NewGetAPIKeyModelIDSettingParamsWithHTTPClient(client *http.Client) *GetAPIKeyModelIDSettingParams

NewGetAPIKeyModelIDSettingParamsWithHTTPClient creates a new GetAPIKeyModelIDSettingParams object with the ability to set a custom HTTPClient for a request.

func NewGetAPIKeyModelIDSettingParamsWithTimeout

func NewGetAPIKeyModelIDSettingParamsWithTimeout(timeout time.Duration) *GetAPIKeyModelIDSettingParams

NewGetAPIKeyModelIDSettingParamsWithTimeout creates a new GetAPIKeyModelIDSettingParams object with the ability to set a timeout on a request.

func (*GetAPIKeyModelIDSettingParams) SetContext

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

SetContext adds the context to the get API key model ID setting params

func (*GetAPIKeyModelIDSettingParams) SetDefaults

func (o *GetAPIKeyModelIDSettingParams) SetDefaults()

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

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

func (*GetAPIKeyModelIDSettingParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get API key model ID setting params

func (*GetAPIKeyModelIDSettingParams) SetID

SetID adds the id to the get API key model ID setting params

func (*GetAPIKeyModelIDSettingParams) SetTimeout

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

SetTimeout adds the timeout to the get API key model ID setting params

func (*GetAPIKeyModelIDSettingParams) WithContext

WithContext adds the context to the get API key model ID setting params

func (*GetAPIKeyModelIDSettingParams) WithDefaults

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

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

func (*GetAPIKeyModelIDSettingParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get API key model ID setting params

func (*GetAPIKeyModelIDSettingParams) WithID

WithID adds the id to the get API key model ID setting params

func (*GetAPIKeyModelIDSettingParams) WithTimeout

WithTimeout adds the timeout to the get API key model ID setting params

func (*GetAPIKeyModelIDSettingParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetAPIKeyModelIDSettingReader

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

GetAPIKeyModelIDSettingReader is a Reader for the GetAPIKeyModelIDSetting structure.

func (*GetAPIKeyModelIDSettingReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type PutAPIKeyModelIDSettingBadRequest

type PutAPIKeyModelIDSettingBadRequest struct {
	Payload *models.ResponseFailResponse
}

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

Bad Request

func NewPutAPIKeyModelIDSettingBadRequest

func NewPutAPIKeyModelIDSettingBadRequest() *PutAPIKeyModelIDSettingBadRequest

NewPutAPIKeyModelIDSettingBadRequest creates a PutAPIKeyModelIDSettingBadRequest with default headers values

func (*PutAPIKeyModelIDSettingBadRequest) Code

Code gets the status code for the put Api key model Id setting bad request response

func (*PutAPIKeyModelIDSettingBadRequest) Error

func (*PutAPIKeyModelIDSettingBadRequest) GetPayload

func (*PutAPIKeyModelIDSettingBadRequest) IsClientError

func (o *PutAPIKeyModelIDSettingBadRequest) IsClientError() bool

IsClientError returns true when this put Api key model Id setting bad request response has a 4xx status code

func (*PutAPIKeyModelIDSettingBadRequest) IsCode

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

IsCode returns true when this put Api key model Id setting bad request response a status code equal to that given

func (*PutAPIKeyModelIDSettingBadRequest) IsRedirect

func (o *PutAPIKeyModelIDSettingBadRequest) IsRedirect() bool

IsRedirect returns true when this put Api key model Id setting bad request response has a 3xx status code

func (*PutAPIKeyModelIDSettingBadRequest) IsServerError

func (o *PutAPIKeyModelIDSettingBadRequest) IsServerError() bool

IsServerError returns true when this put Api key model Id setting bad request response has a 5xx status code

func (*PutAPIKeyModelIDSettingBadRequest) IsSuccess

func (o *PutAPIKeyModelIDSettingBadRequest) IsSuccess() bool

IsSuccess returns true when this put Api key model Id setting bad request response has a 2xx status code

func (*PutAPIKeyModelIDSettingBadRequest) String

type PutAPIKeyModelIDSettingInternalServerError

type PutAPIKeyModelIDSettingInternalServerError struct {
	Payload *models.ResponseErrorResponse
}

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

Internal Server Error

func NewPutAPIKeyModelIDSettingInternalServerError

func NewPutAPIKeyModelIDSettingInternalServerError() *PutAPIKeyModelIDSettingInternalServerError

NewPutAPIKeyModelIDSettingInternalServerError creates a PutAPIKeyModelIDSettingInternalServerError with default headers values

func (*PutAPIKeyModelIDSettingInternalServerError) Code

Code gets the status code for the put Api key model Id setting internal server error response

func (*PutAPIKeyModelIDSettingInternalServerError) Error

func (*PutAPIKeyModelIDSettingInternalServerError) GetPayload

func (*PutAPIKeyModelIDSettingInternalServerError) IsClientError

IsClientError returns true when this put Api key model Id setting internal server error response has a 4xx status code

func (*PutAPIKeyModelIDSettingInternalServerError) IsCode

IsCode returns true when this put Api key model Id setting internal server error response a status code equal to that given

func (*PutAPIKeyModelIDSettingInternalServerError) IsRedirect

IsRedirect returns true when this put Api key model Id setting internal server error response has a 3xx status code

func (*PutAPIKeyModelIDSettingInternalServerError) IsServerError

IsServerError returns true when this put Api key model Id setting internal server error response has a 5xx status code

func (*PutAPIKeyModelIDSettingInternalServerError) IsSuccess

IsSuccess returns true when this put Api key model Id setting internal server error response has a 2xx status code

func (*PutAPIKeyModelIDSettingInternalServerError) String

type PutAPIKeyModelIDSettingOK

type PutAPIKeyModelIDSettingOK struct {
	Payload *models.ResponseModelSettingResponse
}

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

OK

func NewPutAPIKeyModelIDSettingOK

func NewPutAPIKeyModelIDSettingOK() *PutAPIKeyModelIDSettingOK

NewPutAPIKeyModelIDSettingOK creates a PutAPIKeyModelIDSettingOK with default headers values

func (*PutAPIKeyModelIDSettingOK) Code

func (o *PutAPIKeyModelIDSettingOK) Code() int

Code gets the status code for the put Api key model Id setting o k response

func (*PutAPIKeyModelIDSettingOK) Error

func (o *PutAPIKeyModelIDSettingOK) Error() string

func (*PutAPIKeyModelIDSettingOK) GetPayload

func (*PutAPIKeyModelIDSettingOK) IsClientError

func (o *PutAPIKeyModelIDSettingOK) IsClientError() bool

IsClientError returns true when this put Api key model Id setting o k response has a 4xx status code

func (*PutAPIKeyModelIDSettingOK) IsCode

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

IsCode returns true when this put Api key model Id setting o k response a status code equal to that given

func (*PutAPIKeyModelIDSettingOK) IsRedirect

func (o *PutAPIKeyModelIDSettingOK) IsRedirect() bool

IsRedirect returns true when this put Api key model Id setting o k response has a 3xx status code

func (*PutAPIKeyModelIDSettingOK) IsServerError

func (o *PutAPIKeyModelIDSettingOK) IsServerError() bool

IsServerError returns true when this put Api key model Id setting o k response has a 5xx status code

func (*PutAPIKeyModelIDSettingOK) IsSuccess

func (o *PutAPIKeyModelIDSettingOK) IsSuccess() bool

IsSuccess returns true when this put Api key model Id setting o k response has a 2xx status code

func (*PutAPIKeyModelIDSettingOK) String

func (o *PutAPIKeyModelIDSettingOK) String() string

type PutAPIKeyModelIDSettingParams

type PutAPIKeyModelIDSettingParams struct {

	/* ID.

	   Model's id
	*/
	ID string

	/* Input.

	   Update Model Setting Request
	*/
	Input *models.RequestUpdateModelSettingRequest

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

PutAPIKeyModelIDSettingParams contains all the parameters to send to the API endpoint

for the put API key model ID setting operation.

Typically these are written to a http.Request.

func NewPutAPIKeyModelIDSettingParams

func NewPutAPIKeyModelIDSettingParams() *PutAPIKeyModelIDSettingParams

NewPutAPIKeyModelIDSettingParams creates a new PutAPIKeyModelIDSettingParams 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 NewPutAPIKeyModelIDSettingParamsWithContext

func NewPutAPIKeyModelIDSettingParamsWithContext(ctx context.Context) *PutAPIKeyModelIDSettingParams

NewPutAPIKeyModelIDSettingParamsWithContext creates a new PutAPIKeyModelIDSettingParams object with the ability to set a context for a request.

func NewPutAPIKeyModelIDSettingParamsWithHTTPClient

func NewPutAPIKeyModelIDSettingParamsWithHTTPClient(client *http.Client) *PutAPIKeyModelIDSettingParams

NewPutAPIKeyModelIDSettingParamsWithHTTPClient creates a new PutAPIKeyModelIDSettingParams object with the ability to set a custom HTTPClient for a request.

func NewPutAPIKeyModelIDSettingParamsWithTimeout

func NewPutAPIKeyModelIDSettingParamsWithTimeout(timeout time.Duration) *PutAPIKeyModelIDSettingParams

NewPutAPIKeyModelIDSettingParamsWithTimeout creates a new PutAPIKeyModelIDSettingParams object with the ability to set a timeout on a request.

func (*PutAPIKeyModelIDSettingParams) SetContext

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

SetContext adds the context to the put API key model ID setting params

func (*PutAPIKeyModelIDSettingParams) SetDefaults

func (o *PutAPIKeyModelIDSettingParams) SetDefaults()

SetDefaults hydrates default values in the put API key model ID setting params (not the query body).

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

func (*PutAPIKeyModelIDSettingParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the put API key model ID setting params

func (*PutAPIKeyModelIDSettingParams) SetID

SetID adds the id to the put API key model ID setting params

func (*PutAPIKeyModelIDSettingParams) SetInput

SetInput adds the input to the put API key model ID setting params

func (*PutAPIKeyModelIDSettingParams) SetTimeout

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

SetTimeout adds the timeout to the put API key model ID setting params

func (*PutAPIKeyModelIDSettingParams) WithContext

WithContext adds the context to the put API key model ID setting params

func (*PutAPIKeyModelIDSettingParams) WithDefaults

WithDefaults hydrates default values in the put API key model ID setting params (not the query body).

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

func (*PutAPIKeyModelIDSettingParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the put API key model ID setting params

func (*PutAPIKeyModelIDSettingParams) WithID

WithID adds the id to the put API key model ID setting params

func (*PutAPIKeyModelIDSettingParams) WithInput

WithInput adds the input to the put API key model ID setting params

func (*PutAPIKeyModelIDSettingParams) WithTimeout

WithTimeout adds the timeout to the put API key model ID setting params

func (*PutAPIKeyModelIDSettingParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type PutAPIKeyModelIDSettingReader

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

PutAPIKeyModelIDSettingReader is a Reader for the PutAPIKeyModelIDSetting structure.

func (*PutAPIKeyModelIDSettingReader) ReadResponse

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