Documentation
¶
Index ¶
- func WithContentTypeApplicationJSON(r *runtime.ClientOperation)
- func WithContentTypeApplicationxWwwFormUrlencoded(r *runtime.ClientOperation)
- type Client
- type ClientOption
- type ClientService
- type PostAPIKeyPackageListBadRequest
- func (o *PostAPIKeyPackageListBadRequest) Code() int
- func (o *PostAPIKeyPackageListBadRequest) Error() string
- func (o *PostAPIKeyPackageListBadRequest) GetPayload() *models.ResponseFailResponse
- func (o *PostAPIKeyPackageListBadRequest) IsClientError() bool
- func (o *PostAPIKeyPackageListBadRequest) IsCode(code int) bool
- func (o *PostAPIKeyPackageListBadRequest) IsRedirect() bool
- func (o *PostAPIKeyPackageListBadRequest) IsServerError() bool
- func (o *PostAPIKeyPackageListBadRequest) IsSuccess() bool
- func (o *PostAPIKeyPackageListBadRequest) String() string
- type PostAPIKeyPackageListInternalServerError
- func (o *PostAPIKeyPackageListInternalServerError) Code() int
- func (o *PostAPIKeyPackageListInternalServerError) Error() string
- func (o *PostAPIKeyPackageListInternalServerError) GetPayload() *models.ResponseErrorResponse
- func (o *PostAPIKeyPackageListInternalServerError) IsClientError() bool
- func (o *PostAPIKeyPackageListInternalServerError) IsCode(code int) bool
- func (o *PostAPIKeyPackageListInternalServerError) IsRedirect() bool
- func (o *PostAPIKeyPackageListInternalServerError) IsServerError() bool
- func (o *PostAPIKeyPackageListInternalServerError) IsSuccess() bool
- func (o *PostAPIKeyPackageListInternalServerError) String() string
- type PostAPIKeyPackageListOK
- func (o *PostAPIKeyPackageListOK) Code() int
- func (o *PostAPIKeyPackageListOK) Error() string
- func (o *PostAPIKeyPackageListOK) GetPayload() *models.ResponseAPIPackageListResponse
- func (o *PostAPIKeyPackageListOK) IsClientError() bool
- func (o *PostAPIKeyPackageListOK) IsCode(code int) bool
- func (o *PostAPIKeyPackageListOK) IsRedirect() bool
- func (o *PostAPIKeyPackageListOK) IsServerError() bool
- func (o *PostAPIKeyPackageListOK) IsSuccess() bool
- func (o *PostAPIKeyPackageListOK) String() string
- type PostAPIKeyPackageListParams
- func NewPostAPIKeyPackageListParams() *PostAPIKeyPackageListParams
- func NewPostAPIKeyPackageListParamsWithContext(ctx context.Context) *PostAPIKeyPackageListParams
- func NewPostAPIKeyPackageListParamsWithHTTPClient(client *http.Client) *PostAPIKeyPackageListParams
- func NewPostAPIKeyPackageListParamsWithTimeout(timeout time.Duration) *PostAPIKeyPackageListParams
- func (o *PostAPIKeyPackageListParams) SetContext(ctx context.Context)
- func (o *PostAPIKeyPackageListParams) SetDefaults()
- func (o *PostAPIKeyPackageListParams) SetHTTPClient(client *http.Client)
- func (o *PostAPIKeyPackageListParams) SetInput(input *models.RequestGetAPIPackageListRequest)
- func (o *PostAPIKeyPackageListParams) SetTimeout(timeout time.Duration)
- func (o *PostAPIKeyPackageListParams) WithContext(ctx context.Context) *PostAPIKeyPackageListParams
- func (o *PostAPIKeyPackageListParams) WithDefaults() *PostAPIKeyPackageListParams
- func (o *PostAPIKeyPackageListParams) WithHTTPClient(client *http.Client) *PostAPIKeyPackageListParams
- func (o *PostAPIKeyPackageListParams) WithInput(input *models.RequestGetAPIPackageListRequest) *PostAPIKeyPackageListParams
- func (o *PostAPIKeyPackageListParams) WithTimeout(timeout time.Duration) *PostAPIKeyPackageListParams
- func (o *PostAPIKeyPackageListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type PostAPIKeyPackageListReader
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 ¶
func (o *PostAPIKeyPackageListBadRequest) Code() int
Code gets the status code for the post Api key package list bad request response
func (*PostAPIKeyPackageListBadRequest) Error ¶
func (o *PostAPIKeyPackageListBadRequest) Error() string
func (*PostAPIKeyPackageListBadRequest) GetPayload ¶
func (o *PostAPIKeyPackageListBadRequest) GetPayload() *models.ResponseFailResponse
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 ¶
func (o *PostAPIKeyPackageListBadRequest) String() 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 ¶
func (o *PostAPIKeyPackageListInternalServerError) Code() int
Code gets the status code for the post Api key package list internal server error response
func (*PostAPIKeyPackageListInternalServerError) Error ¶
func (o *PostAPIKeyPackageListInternalServerError) Error() string
func (*PostAPIKeyPackageListInternalServerError) GetPayload ¶
func (o *PostAPIKeyPackageListInternalServerError) GetPayload() *models.ResponseErrorResponse
func (*PostAPIKeyPackageListInternalServerError) IsClientError ¶
func (o *PostAPIKeyPackageListInternalServerError) IsClientError() bool
IsClientError returns true when this post Api key package list internal server error response has a 4xx status code
func (*PostAPIKeyPackageListInternalServerError) IsCode ¶
func (o *PostAPIKeyPackageListInternalServerError) IsCode(code int) bool
IsCode returns true when this post Api key package list internal server error response a status code equal to that given
func (*PostAPIKeyPackageListInternalServerError) IsRedirect ¶
func (o *PostAPIKeyPackageListInternalServerError) IsRedirect() bool
IsRedirect returns true when this post Api key package list internal server error response has a 3xx status code
func (*PostAPIKeyPackageListInternalServerError) IsServerError ¶
func (o *PostAPIKeyPackageListInternalServerError) IsServerError() bool
IsServerError returns true when this post Api key package list internal server error response has a 5xx status code
func (*PostAPIKeyPackageListInternalServerError) IsSuccess ¶
func (o *PostAPIKeyPackageListInternalServerError) IsSuccess() bool
IsSuccess returns true when this post Api key package list internal server error response has a 2xx status code
func (*PostAPIKeyPackageListInternalServerError) String ¶
func (o *PostAPIKeyPackageListInternalServerError) String() 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 (o *PostAPIKeyPackageListOK) GetPayload() *models.ResponseAPIPackageListResponse
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 ¶
func (o *PostAPIKeyPackageListParams) SetInput(input *models.RequestGetAPIPackageListRequest)
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 ¶
func (o *PostAPIKeyPackageListParams) WithContext(ctx context.Context) *PostAPIKeyPackageListParams
WithContext adds the context to the post API key package list params
func (*PostAPIKeyPackageListParams) WithDefaults ¶
func (o *PostAPIKeyPackageListParams) WithDefaults() *PostAPIKeyPackageListParams
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 ¶
func (o *PostAPIKeyPackageListParams) WithHTTPClient(client *http.Client) *PostAPIKeyPackageListParams
WithHTTPClient adds the HTTPClient to the post API key package list params
func (*PostAPIKeyPackageListParams) WithInput ¶
func (o *PostAPIKeyPackageListParams) WithInput(input *models.RequestGetAPIPackageListRequest) *PostAPIKeyPackageListParams
WithInput adds the input to the post API key package list params
func (*PostAPIKeyPackageListParams) WithTimeout ¶
func (o *PostAPIKeyPackageListParams) WithTimeout(timeout time.Duration) *PostAPIKeyPackageListParams
WithTimeout adds the timeout to the post API key package list params
func (*PostAPIKeyPackageListParams) WriteToRequest ¶
func (o *PostAPIKeyPackageListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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.