Documentation
¶
Index ¶
- type Client
- type ClientOption
- type ClientService
- type GetAdminLicenseForbidden
- func (o *GetAdminLicenseForbidden) Code() int
- func (o *GetAdminLicenseForbidden) Error() string
- func (o *GetAdminLicenseForbidden) GetPayload() *models.Error
- func (o *GetAdminLicenseForbidden) IsClientError() bool
- func (o *GetAdminLicenseForbidden) IsCode(code int) bool
- func (o *GetAdminLicenseForbidden) IsRedirect() bool
- func (o *GetAdminLicenseForbidden) IsServerError() bool
- func (o *GetAdminLicenseForbidden) IsSuccess() bool
- func (o *GetAdminLicenseForbidden) String() string
- type GetAdminLicenseNotFound
- func (o *GetAdminLicenseNotFound) Code() int
- func (o *GetAdminLicenseNotFound) Error() string
- func (o *GetAdminLicenseNotFound) GetPayload() *models.Error
- func (o *GetAdminLicenseNotFound) IsClientError() bool
- func (o *GetAdminLicenseNotFound) IsCode(code int) bool
- func (o *GetAdminLicenseNotFound) IsRedirect() bool
- func (o *GetAdminLicenseNotFound) IsServerError() bool
- func (o *GetAdminLicenseNotFound) IsSuccess() bool
- func (o *GetAdminLicenseNotFound) String() string
- type GetAdminLicenseOK
- func (o *GetAdminLicenseOK) Code() int
- func (o *GetAdminLicenseOK) Error() string
- func (o *GetAdminLicenseOK) GetPayload() *models.License
- func (o *GetAdminLicenseOK) IsClientError() bool
- func (o *GetAdminLicenseOK) IsCode(code int) bool
- func (o *GetAdminLicenseOK) IsRedirect() bool
- func (o *GetAdminLicenseOK) IsServerError() bool
- func (o *GetAdminLicenseOK) IsSuccess() bool
- func (o *GetAdminLicenseOK) String() string
- type GetAdminLicenseParams
- func NewGetAdminLicenseParams() *GetAdminLicenseParams
- func NewGetAdminLicenseParamsWithContext(ctx context.Context) *GetAdminLicenseParams
- func NewGetAdminLicenseParamsWithHTTPClient(client *http.Client) *GetAdminLicenseParams
- func NewGetAdminLicenseParamsWithTimeout(timeout time.Duration) *GetAdminLicenseParams
- func (o *GetAdminLicenseParams) SetContext(ctx context.Context)
- func (o *GetAdminLicenseParams) SetDefaults()
- func (o *GetAdminLicenseParams) SetHTTPClient(client *http.Client)
- func (o *GetAdminLicenseParams) SetTimeout(timeout time.Duration)
- func (o *GetAdminLicenseParams) WithContext(ctx context.Context) *GetAdminLicenseParams
- func (o *GetAdminLicenseParams) WithDefaults() *GetAdminLicenseParams
- func (o *GetAdminLicenseParams) WithHTTPClient(client *http.Client) *GetAdminLicenseParams
- func (o *GetAdminLicenseParams) WithTimeout(timeout time.Duration) *GetAdminLicenseParams
- func (o *GetAdminLicenseParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetAdminLicenseReader
- type GetAdminLicenseTooManyRequests
- func (o *GetAdminLicenseTooManyRequests) Code() int
- func (o *GetAdminLicenseTooManyRequests) Error() string
- func (o *GetAdminLicenseTooManyRequests) GetPayload() *models.Error
- func (o *GetAdminLicenseTooManyRequests) IsClientError() bool
- func (o *GetAdminLicenseTooManyRequests) IsCode(code int) bool
- func (o *GetAdminLicenseTooManyRequests) IsRedirect() bool
- func (o *GetAdminLicenseTooManyRequests) IsServerError() bool
- func (o *GetAdminLicenseTooManyRequests) IsSuccess() bool
- func (o *GetAdminLicenseTooManyRequests) String() string
- type GetAdminLicenseUnauthorized
- func (o *GetAdminLicenseUnauthorized) Code() int
- func (o *GetAdminLicenseUnauthorized) Error() string
- func (o *GetAdminLicenseUnauthorized) GetPayload() *models.Error
- func (o *GetAdminLicenseUnauthorized) IsClientError() bool
- func (o *GetAdminLicenseUnauthorized) IsCode(code int) bool
- func (o *GetAdminLicenseUnauthorized) IsRedirect() bool
- func (o *GetAdminLicenseUnauthorized) IsServerError() bool
- func (o *GetAdminLicenseUnauthorized) IsSuccess() bool
- func (o *GetAdminLicenseUnauthorized) String() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client for license API
func (*Client) GetAdminLicense ¶
func (a *Client) GetAdminLicense(params *GetAdminLicenseParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetAdminLicenseOK, error)
GetAdminLicense gets license
Get license.
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.
type ClientService ¶
type ClientService interface { GetAdminLicense(params *GetAdminLicenseParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetAdminLicenseOK, 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 license API client.
func NewClientWithBasicAuth ¶
func NewClientWithBasicAuth(host, basePath, scheme, user, password string) ClientService
New creates a new license 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 license 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 GetAdminLicenseForbidden ¶
GetAdminLicenseForbidden describes a response with status code 403, with default header values.
Forbidden
func NewGetAdminLicenseForbidden ¶
func NewGetAdminLicenseForbidden() *GetAdminLicenseForbidden
NewGetAdminLicenseForbidden creates a GetAdminLicenseForbidden with default headers values
func (*GetAdminLicenseForbidden) Code ¶
func (o *GetAdminLicenseForbidden) Code() int
Code gets the status code for the get admin license forbidden response
func (*GetAdminLicenseForbidden) Error ¶
func (o *GetAdminLicenseForbidden) Error() string
func (*GetAdminLicenseForbidden) GetPayload ¶
func (o *GetAdminLicenseForbidden) GetPayload() *models.Error
func (*GetAdminLicenseForbidden) IsClientError ¶
func (o *GetAdminLicenseForbidden) IsClientError() bool
IsClientError returns true when this get admin license forbidden response has a 4xx status code
func (*GetAdminLicenseForbidden) IsCode ¶
func (o *GetAdminLicenseForbidden) IsCode(code int) bool
IsCode returns true when this get admin license forbidden response a status code equal to that given
func (*GetAdminLicenseForbidden) IsRedirect ¶
func (o *GetAdminLicenseForbidden) IsRedirect() bool
IsRedirect returns true when this get admin license forbidden response has a 3xx status code
func (*GetAdminLicenseForbidden) IsServerError ¶
func (o *GetAdminLicenseForbidden) IsServerError() bool
IsServerError returns true when this get admin license forbidden response has a 5xx status code
func (*GetAdminLicenseForbidden) IsSuccess ¶
func (o *GetAdminLicenseForbidden) IsSuccess() bool
IsSuccess returns true when this get admin license forbidden response has a 2xx status code
func (*GetAdminLicenseForbidden) String ¶
func (o *GetAdminLicenseForbidden) String() string
type GetAdminLicenseNotFound ¶
GetAdminLicenseNotFound describes a response with status code 404, with default header values.
Not found
func NewGetAdminLicenseNotFound ¶
func NewGetAdminLicenseNotFound() *GetAdminLicenseNotFound
NewGetAdminLicenseNotFound creates a GetAdminLicenseNotFound with default headers values
func (*GetAdminLicenseNotFound) Code ¶
func (o *GetAdminLicenseNotFound) Code() int
Code gets the status code for the get admin license not found response
func (*GetAdminLicenseNotFound) Error ¶
func (o *GetAdminLicenseNotFound) Error() string
func (*GetAdminLicenseNotFound) GetPayload ¶
func (o *GetAdminLicenseNotFound) GetPayload() *models.Error
func (*GetAdminLicenseNotFound) IsClientError ¶
func (o *GetAdminLicenseNotFound) IsClientError() bool
IsClientError returns true when this get admin license not found response has a 4xx status code
func (*GetAdminLicenseNotFound) IsCode ¶
func (o *GetAdminLicenseNotFound) IsCode(code int) bool
IsCode returns true when this get admin license not found response a status code equal to that given
func (*GetAdminLicenseNotFound) IsRedirect ¶
func (o *GetAdminLicenseNotFound) IsRedirect() bool
IsRedirect returns true when this get admin license not found response has a 3xx status code
func (*GetAdminLicenseNotFound) IsServerError ¶
func (o *GetAdminLicenseNotFound) IsServerError() bool
IsServerError returns true when this get admin license not found response has a 5xx status code
func (*GetAdminLicenseNotFound) IsSuccess ¶
func (o *GetAdminLicenseNotFound) IsSuccess() bool
IsSuccess returns true when this get admin license not found response has a 2xx status code
func (*GetAdminLicenseNotFound) String ¶
func (o *GetAdminLicenseNotFound) String() string
type GetAdminLicenseOK ¶
GetAdminLicenseOK describes a response with status code 200, with default header values.
License
func NewGetAdminLicenseOK ¶
func NewGetAdminLicenseOK() *GetAdminLicenseOK
NewGetAdminLicenseOK creates a GetAdminLicenseOK with default headers values
func (*GetAdminLicenseOK) Code ¶
func (o *GetAdminLicenseOK) Code() int
Code gets the status code for the get admin license o k response
func (*GetAdminLicenseOK) Error ¶
func (o *GetAdminLicenseOK) Error() string
func (*GetAdminLicenseOK) GetPayload ¶
func (o *GetAdminLicenseOK) GetPayload() *models.License
func (*GetAdminLicenseOK) IsClientError ¶
func (o *GetAdminLicenseOK) IsClientError() bool
IsClientError returns true when this get admin license o k response has a 4xx status code
func (*GetAdminLicenseOK) IsCode ¶
func (o *GetAdminLicenseOK) IsCode(code int) bool
IsCode returns true when this get admin license o k response a status code equal to that given
func (*GetAdminLicenseOK) IsRedirect ¶
func (o *GetAdminLicenseOK) IsRedirect() bool
IsRedirect returns true when this get admin license o k response has a 3xx status code
func (*GetAdminLicenseOK) IsServerError ¶
func (o *GetAdminLicenseOK) IsServerError() bool
IsServerError returns true when this get admin license o k response has a 5xx status code
func (*GetAdminLicenseOK) IsSuccess ¶
func (o *GetAdminLicenseOK) IsSuccess() bool
IsSuccess returns true when this get admin license o k response has a 2xx status code
func (*GetAdminLicenseOK) String ¶
func (o *GetAdminLicenseOK) String() string
type GetAdminLicenseParams ¶
type GetAdminLicenseParams struct { Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetAdminLicenseParams contains all the parameters to send to the API endpoint
for the get admin license operation. Typically these are written to a http.Request.
func NewGetAdminLicenseParams ¶
func NewGetAdminLicenseParams() *GetAdminLicenseParams
NewGetAdminLicenseParams creates a new GetAdminLicenseParams 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 NewGetAdminLicenseParamsWithContext ¶
func NewGetAdminLicenseParamsWithContext(ctx context.Context) *GetAdminLicenseParams
NewGetAdminLicenseParamsWithContext creates a new GetAdminLicenseParams object with the ability to set a context for a request.
func NewGetAdminLicenseParamsWithHTTPClient ¶
func NewGetAdminLicenseParamsWithHTTPClient(client *http.Client) *GetAdminLicenseParams
NewGetAdminLicenseParamsWithHTTPClient creates a new GetAdminLicenseParams object with the ability to set a custom HTTPClient for a request.
func NewGetAdminLicenseParamsWithTimeout ¶
func NewGetAdminLicenseParamsWithTimeout(timeout time.Duration) *GetAdminLicenseParams
NewGetAdminLicenseParamsWithTimeout creates a new GetAdminLicenseParams object with the ability to set a timeout on a request.
func (*GetAdminLicenseParams) SetContext ¶
func (o *GetAdminLicenseParams) SetContext(ctx context.Context)
SetContext adds the context to the get admin license params
func (*GetAdminLicenseParams) SetDefaults ¶
func (o *GetAdminLicenseParams) SetDefaults()
SetDefaults hydrates default values in the get admin license params (not the query body).
All values with no default are reset to their zero value.
func (*GetAdminLicenseParams) SetHTTPClient ¶
func (o *GetAdminLicenseParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get admin license params
func (*GetAdminLicenseParams) SetTimeout ¶
func (o *GetAdminLicenseParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get admin license params
func (*GetAdminLicenseParams) WithContext ¶
func (o *GetAdminLicenseParams) WithContext(ctx context.Context) *GetAdminLicenseParams
WithContext adds the context to the get admin license params
func (*GetAdminLicenseParams) WithDefaults ¶
func (o *GetAdminLicenseParams) WithDefaults() *GetAdminLicenseParams
WithDefaults hydrates default values in the get admin license params (not the query body).
All values with no default are reset to their zero value.
func (*GetAdminLicenseParams) WithHTTPClient ¶
func (o *GetAdminLicenseParams) WithHTTPClient(client *http.Client) *GetAdminLicenseParams
WithHTTPClient adds the HTTPClient to the get admin license params
func (*GetAdminLicenseParams) WithTimeout ¶
func (o *GetAdminLicenseParams) WithTimeout(timeout time.Duration) *GetAdminLicenseParams
WithTimeout adds the timeout to the get admin license params
func (*GetAdminLicenseParams) WriteToRequest ¶
func (o *GetAdminLicenseParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetAdminLicenseReader ¶
type GetAdminLicenseReader struct {
// contains filtered or unexported fields
}
GetAdminLicenseReader is a Reader for the GetAdminLicense structure.
func (*GetAdminLicenseReader) ReadResponse ¶
func (o *GetAdminLicenseReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetAdminLicenseTooManyRequests ¶
GetAdminLicenseTooManyRequests describes a response with status code 429, with default header values.
Too many requests
func NewGetAdminLicenseTooManyRequests ¶
func NewGetAdminLicenseTooManyRequests() *GetAdminLicenseTooManyRequests
NewGetAdminLicenseTooManyRequests creates a GetAdminLicenseTooManyRequests with default headers values
func (*GetAdminLicenseTooManyRequests) Code ¶
func (o *GetAdminLicenseTooManyRequests) Code() int
Code gets the status code for the get admin license too many requests response
func (*GetAdminLicenseTooManyRequests) Error ¶
func (o *GetAdminLicenseTooManyRequests) Error() string
func (*GetAdminLicenseTooManyRequests) GetPayload ¶
func (o *GetAdminLicenseTooManyRequests) GetPayload() *models.Error
func (*GetAdminLicenseTooManyRequests) IsClientError ¶
func (o *GetAdminLicenseTooManyRequests) IsClientError() bool
IsClientError returns true when this get admin license too many requests response has a 4xx status code
func (*GetAdminLicenseTooManyRequests) IsCode ¶
func (o *GetAdminLicenseTooManyRequests) IsCode(code int) bool
IsCode returns true when this get admin license too many requests response a status code equal to that given
func (*GetAdminLicenseTooManyRequests) IsRedirect ¶
func (o *GetAdminLicenseTooManyRequests) IsRedirect() bool
IsRedirect returns true when this get admin license too many requests response has a 3xx status code
func (*GetAdminLicenseTooManyRequests) IsServerError ¶
func (o *GetAdminLicenseTooManyRequests) IsServerError() bool
IsServerError returns true when this get admin license too many requests response has a 5xx status code
func (*GetAdminLicenseTooManyRequests) IsSuccess ¶
func (o *GetAdminLicenseTooManyRequests) IsSuccess() bool
IsSuccess returns true when this get admin license too many requests response has a 2xx status code
func (*GetAdminLicenseTooManyRequests) String ¶
func (o *GetAdminLicenseTooManyRequests) String() string
type GetAdminLicenseUnauthorized ¶
type GetAdminLicenseUnauthorized struct {
}GetAdminLicenseUnauthorized describes a response with status code 401, with default header values.
Unauthorized
func NewGetAdminLicenseUnauthorized ¶
func NewGetAdminLicenseUnauthorized() *GetAdminLicenseUnauthorized
NewGetAdminLicenseUnauthorized creates a GetAdminLicenseUnauthorized with default headers values
func (*GetAdminLicenseUnauthorized) Code ¶
func (o *GetAdminLicenseUnauthorized) Code() int
Code gets the status code for the get admin license unauthorized response
func (*GetAdminLicenseUnauthorized) Error ¶
func (o *GetAdminLicenseUnauthorized) Error() string
func (*GetAdminLicenseUnauthorized) GetPayload ¶
func (o *GetAdminLicenseUnauthorized) GetPayload() *models.Error
func (*GetAdminLicenseUnauthorized) IsClientError ¶
func (o *GetAdminLicenseUnauthorized) IsClientError() bool
IsClientError returns true when this get admin license unauthorized response has a 4xx status code
func (*GetAdminLicenseUnauthorized) IsCode ¶
func (o *GetAdminLicenseUnauthorized) IsCode(code int) bool
IsCode returns true when this get admin license unauthorized response a status code equal to that given
func (*GetAdminLicenseUnauthorized) IsRedirect ¶
func (o *GetAdminLicenseUnauthorized) IsRedirect() bool
IsRedirect returns true when this get admin license unauthorized response has a 3xx status code
func (*GetAdminLicenseUnauthorized) IsServerError ¶
func (o *GetAdminLicenseUnauthorized) IsServerError() bool
IsServerError returns true when this get admin license unauthorized response has a 5xx status code
func (*GetAdminLicenseUnauthorized) IsSuccess ¶
func (o *GetAdminLicenseUnauthorized) IsSuccess() bool
IsSuccess returns true when this get admin license unauthorized response has a 2xx status code
func (*GetAdminLicenseUnauthorized) String ¶
func (o *GetAdminLicenseUnauthorized) String() string