api_key_model_package

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

func (*Client) PostAPIKeyPackageList

func (a *Client) PostAPIKeyPackageList(params *PostAPIKeyPackageListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostAPIKeyPackageListOK, error)

PostAPIKeyPackageList gets Api package list by Api key

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientOption

type ClientOption func(*runtime.ClientOperation)

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

func WithContentType

func WithContentType(mime string) ClientOption

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

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

type ClientService

type ClientService interface {
	PostAPIKeyPackageList(params *PostAPIKeyPackageListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostAPIKeyPackageListOK, 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 package API client.

func NewClientWithBasicAuth

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

New creates a new api key model package 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 package 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 PostAPIKeyPackageListBadRequest

type PostAPIKeyPackageListBadRequest struct {
	Payload *models.ResponseFailResponse
}

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

Bad Request

func NewPostAPIKeyPackageListBadRequest

func NewPostAPIKeyPackageListBadRequest() *PostAPIKeyPackageListBadRequest

NewPostAPIKeyPackageListBadRequest creates a PostAPIKeyPackageListBadRequest with default headers values

func (*PostAPIKeyPackageListBadRequest) Code

Code gets the status code for the post Api key package list bad request response

func (*PostAPIKeyPackageListBadRequest) Error

func (*PostAPIKeyPackageListBadRequest) GetPayload

func (*PostAPIKeyPackageListBadRequest) IsClientError

func (o *PostAPIKeyPackageListBadRequest) IsClientError() bool

IsClientError returns true when this post Api key package list bad request response has a 4xx status code

func (*PostAPIKeyPackageListBadRequest) IsCode

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

IsCode returns true when this post Api key package list bad request response a status code equal to that given

func (*PostAPIKeyPackageListBadRequest) IsRedirect

func (o *PostAPIKeyPackageListBadRequest) IsRedirect() bool

IsRedirect returns true when this post Api key package list bad request response has a 3xx status code

func (*PostAPIKeyPackageListBadRequest) IsServerError

func (o *PostAPIKeyPackageListBadRequest) IsServerError() bool

IsServerError returns true when this post Api key package list bad request response has a 5xx status code

func (*PostAPIKeyPackageListBadRequest) IsSuccess

func (o *PostAPIKeyPackageListBadRequest) IsSuccess() bool

IsSuccess returns true when this post Api key package list bad request response has a 2xx status code

func (*PostAPIKeyPackageListBadRequest) String

type PostAPIKeyPackageListInternalServerError

type PostAPIKeyPackageListInternalServerError struct {
	Payload *models.ResponseErrorResponse
}

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

Internal Server Error

func NewPostAPIKeyPackageListInternalServerError

func NewPostAPIKeyPackageListInternalServerError() *PostAPIKeyPackageListInternalServerError

NewPostAPIKeyPackageListInternalServerError creates a PostAPIKeyPackageListInternalServerError with default headers values

func (*PostAPIKeyPackageListInternalServerError) Code

Code gets the status code for the post Api key package list internal server error response

func (*PostAPIKeyPackageListInternalServerError) Error

func (*PostAPIKeyPackageListInternalServerError) GetPayload

func (*PostAPIKeyPackageListInternalServerError) IsClientError

IsClientError returns true when this post Api key package list internal server error response has a 4xx status code

func (*PostAPIKeyPackageListInternalServerError) IsCode

IsCode returns true when this post Api key package list internal server error response a status code equal to that given

func (*PostAPIKeyPackageListInternalServerError) IsRedirect

IsRedirect returns true when this post Api key package list internal server error response has a 3xx status code

func (*PostAPIKeyPackageListInternalServerError) IsServerError

IsServerError returns true when this post Api key package list internal server error response has a 5xx status code

func (*PostAPIKeyPackageListInternalServerError) IsSuccess

IsSuccess returns true when this post Api key package list internal server error response has a 2xx status code

func (*PostAPIKeyPackageListInternalServerError) String

type PostAPIKeyPackageListOK

type PostAPIKeyPackageListOK struct {
	Payload *models.ResponseAPIPackageListResponse
}

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

OK

func NewPostAPIKeyPackageListOK

func NewPostAPIKeyPackageListOK() *PostAPIKeyPackageListOK

NewPostAPIKeyPackageListOK creates a PostAPIKeyPackageListOK with default headers values

func (*PostAPIKeyPackageListOK) Code

func (o *PostAPIKeyPackageListOK) Code() int

Code gets the status code for the post Api key package list o k response

func (*PostAPIKeyPackageListOK) Error

func (o *PostAPIKeyPackageListOK) Error() string

func (*PostAPIKeyPackageListOK) GetPayload

func (*PostAPIKeyPackageListOK) IsClientError

func (o *PostAPIKeyPackageListOK) IsClientError() bool

IsClientError returns true when this post Api key package list o k response has a 4xx status code

func (*PostAPIKeyPackageListOK) IsCode

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

IsCode returns true when this post Api key package list o k response a status code equal to that given

func (*PostAPIKeyPackageListOK) IsRedirect

func (o *PostAPIKeyPackageListOK) IsRedirect() bool

IsRedirect returns true when this post Api key package list o k response has a 3xx status code

func (*PostAPIKeyPackageListOK) IsServerError

func (o *PostAPIKeyPackageListOK) IsServerError() bool

IsServerError returns true when this post Api key package list o k response has a 5xx status code

func (*PostAPIKeyPackageListOK) IsSuccess

func (o *PostAPIKeyPackageListOK) IsSuccess() bool

IsSuccess returns true when this post Api key package list o k response has a 2xx status code

func (*PostAPIKeyPackageListOK) String

func (o *PostAPIKeyPackageListOK) String() string

type PostAPIKeyPackageListParams

type PostAPIKeyPackageListParams struct {

	/* Input.

	   Get Api Package List Request
	*/
	Input *models.RequestGetAPIPackageListRequest

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

PostAPIKeyPackageListParams contains all the parameters to send to the API endpoint

for the post API key package list operation.

Typically these are written to a http.Request.

func NewPostAPIKeyPackageListParams

func NewPostAPIKeyPackageListParams() *PostAPIKeyPackageListParams

NewPostAPIKeyPackageListParams creates a new PostAPIKeyPackageListParams 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 NewPostAPIKeyPackageListParamsWithContext

func NewPostAPIKeyPackageListParamsWithContext(ctx context.Context) *PostAPIKeyPackageListParams

NewPostAPIKeyPackageListParamsWithContext creates a new PostAPIKeyPackageListParams object with the ability to set a context for a request.

func NewPostAPIKeyPackageListParamsWithHTTPClient

func NewPostAPIKeyPackageListParamsWithHTTPClient(client *http.Client) *PostAPIKeyPackageListParams

NewPostAPIKeyPackageListParamsWithHTTPClient creates a new PostAPIKeyPackageListParams object with the ability to set a custom HTTPClient for a request.

func NewPostAPIKeyPackageListParamsWithTimeout

func NewPostAPIKeyPackageListParamsWithTimeout(timeout time.Duration) *PostAPIKeyPackageListParams

NewPostAPIKeyPackageListParamsWithTimeout creates a new PostAPIKeyPackageListParams object with the ability to set a timeout on a request.

func (*PostAPIKeyPackageListParams) SetContext

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

SetContext adds the context to the post API key package list params

func (*PostAPIKeyPackageListParams) SetDefaults

func (o *PostAPIKeyPackageListParams) SetDefaults()

SetDefaults hydrates default values in the post API key package list params (not the query body).

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

func (*PostAPIKeyPackageListParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the post API key package list params

func (*PostAPIKeyPackageListParams) SetInput

SetInput adds the input to the post API key package list params

func (*PostAPIKeyPackageListParams) SetTimeout

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

SetTimeout adds the timeout to the post API key package list params

func (*PostAPIKeyPackageListParams) WithContext

WithContext adds the context to the post API key package list params

func (*PostAPIKeyPackageListParams) WithDefaults

WithDefaults hydrates default values in the post API key package list params (not the query body).

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

func (*PostAPIKeyPackageListParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the post API key package list params

func (*PostAPIKeyPackageListParams) WithInput

WithInput adds the input to the post API key package list params

func (*PostAPIKeyPackageListParams) WithTimeout

WithTimeout adds the timeout to the post API key package list params

func (*PostAPIKeyPackageListParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type PostAPIKeyPackageListReader

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

PostAPIKeyPackageListReader is a Reader for the PostAPIKeyPackageList structure.

func (*PostAPIKeyPackageListReader) ReadResponse

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