Documentation ¶
Index ¶
- type Client
- func (a *Client) GetLicenseStatus(params *GetLicenseStatusParams, opts ...ClientOption) (*GetLicenseStatusOK, error)
- func (a *Client) RemoveLicense(params *RemoveLicenseParams, opts ...ClientOption) error
- func (a *Client) SetLicense(params *SetLicenseParams, opts ...ClientOption) (*SetLicenseOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientOption
- type ClientService
- type GetLicenseStatusOK
- func (o *GetLicenseStatusOK) Code() int
- func (o *GetLicenseStatusOK) Error() string
- func (o *GetLicenseStatusOK) GetPayload() *models.APILicenseDetailsXO
- func (o *GetLicenseStatusOK) IsClientError() bool
- func (o *GetLicenseStatusOK) IsCode(code int) bool
- func (o *GetLicenseStatusOK) IsRedirect() bool
- func (o *GetLicenseStatusOK) IsServerError() bool
- func (o *GetLicenseStatusOK) IsSuccess() bool
- func (o *GetLicenseStatusOK) String() string
- type GetLicenseStatusParams
- func NewGetLicenseStatusParams() *GetLicenseStatusParams
- func NewGetLicenseStatusParamsWithContext(ctx context.Context) *GetLicenseStatusParams
- func NewGetLicenseStatusParamsWithHTTPClient(client *http.Client) *GetLicenseStatusParams
- func NewGetLicenseStatusParamsWithTimeout(timeout time.Duration) *GetLicenseStatusParams
- func (o *GetLicenseStatusParams) SetContext(ctx context.Context)
- func (o *GetLicenseStatusParams) SetDefaults()
- func (o *GetLicenseStatusParams) SetHTTPClient(client *http.Client)
- func (o *GetLicenseStatusParams) SetTimeout(timeout time.Duration)
- func (o *GetLicenseStatusParams) WithContext(ctx context.Context) *GetLicenseStatusParams
- func (o *GetLicenseStatusParams) WithDefaults() *GetLicenseStatusParams
- func (o *GetLicenseStatusParams) WithHTTPClient(client *http.Client) *GetLicenseStatusParams
- func (o *GetLicenseStatusParams) WithTimeout(timeout time.Duration) *GetLicenseStatusParams
- func (o *GetLicenseStatusParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetLicenseStatusReader
- type RemoveLicenseDefault
- func (o *RemoveLicenseDefault) Code() int
- func (o *RemoveLicenseDefault) Error() string
- func (o *RemoveLicenseDefault) IsClientError() bool
- func (o *RemoveLicenseDefault) IsCode(code int) bool
- func (o *RemoveLicenseDefault) IsRedirect() bool
- func (o *RemoveLicenseDefault) IsServerError() bool
- func (o *RemoveLicenseDefault) IsSuccess() bool
- func (o *RemoveLicenseDefault) String() string
- type RemoveLicenseParams
- func (o *RemoveLicenseParams) SetContext(ctx context.Context)
- func (o *RemoveLicenseParams) SetDefaults()
- func (o *RemoveLicenseParams) SetHTTPClient(client *http.Client)
- func (o *RemoveLicenseParams) SetTimeout(timeout time.Duration)
- func (o *RemoveLicenseParams) WithContext(ctx context.Context) *RemoveLicenseParams
- func (o *RemoveLicenseParams) WithDefaults() *RemoveLicenseParams
- func (o *RemoveLicenseParams) WithHTTPClient(client *http.Client) *RemoveLicenseParams
- func (o *RemoveLicenseParams) WithTimeout(timeout time.Duration) *RemoveLicenseParams
- func (o *RemoveLicenseParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type RemoveLicenseReader
- type SetLicenseOK
- func (o *SetLicenseOK) Code() int
- func (o *SetLicenseOK) Error() string
- func (o *SetLicenseOK) GetPayload() *models.APILicenseDetailsXO
- func (o *SetLicenseOK) IsClientError() bool
- func (o *SetLicenseOK) IsCode(code int) bool
- func (o *SetLicenseOK) IsRedirect() bool
- func (o *SetLicenseOK) IsServerError() bool
- func (o *SetLicenseOK) IsSuccess() bool
- func (o *SetLicenseOK) String() string
- type SetLicenseParams
- func (o *SetLicenseParams) SetBody(body models.InputStream)
- func (o *SetLicenseParams) SetContext(ctx context.Context)
- func (o *SetLicenseParams) SetDefaults()
- func (o *SetLicenseParams) SetHTTPClient(client *http.Client)
- func (o *SetLicenseParams) SetTimeout(timeout time.Duration)
- func (o *SetLicenseParams) WithBody(body models.InputStream) *SetLicenseParams
- func (o *SetLicenseParams) WithContext(ctx context.Context) *SetLicenseParams
- func (o *SetLicenseParams) WithDefaults() *SetLicenseParams
- func (o *SetLicenseParams) WithHTTPClient(client *http.Client) *SetLicenseParams
- func (o *SetLicenseParams) WithTimeout(timeout time.Duration) *SetLicenseParams
- func (o *SetLicenseParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type SetLicenseReader
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 product licensing API
func (*Client) GetLicenseStatus ¶
func (a *Client) GetLicenseStatus(params *GetLicenseStatusParams, opts ...ClientOption) (*GetLicenseStatusOK, error)
GetLicenseStatus gets the current license status
func (*Client) RemoveLicense ¶
func (a *Client) RemoveLicense(params *RemoveLicenseParams, opts ...ClientOption) error
RemoveLicense uninstalls license if present
func (*Client) SetLicense ¶
func (a *Client) SetLicense(params *SetLicenseParams, opts ...ClientOption) (*SetLicenseOK, error)
SetLicense uploads a new license file
Server must be restarted to take effect
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 is the option for Client methods
type ClientService ¶
type ClientService interface { GetLicenseStatus(params *GetLicenseStatusParams, opts ...ClientOption) (*GetLicenseStatusOK, error) RemoveLicense(params *RemoveLicenseParams, opts ...ClientOption) error SetLicense(params *SetLicenseParams, opts ...ClientOption) (*SetLicenseOK, 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 product licensing API client.
type GetLicenseStatusOK ¶
type GetLicenseStatusOK struct {
Payload *models.APILicenseDetailsXO
}
GetLicenseStatusOK describes a response with status code 200, with default header values.
successful operation
func NewGetLicenseStatusOK ¶
func NewGetLicenseStatusOK() *GetLicenseStatusOK
NewGetLicenseStatusOK creates a GetLicenseStatusOK with default headers values
func (*GetLicenseStatusOK) Code ¶
func (o *GetLicenseStatusOK) Code() int
Code gets the status code for the get license status o k response
func (*GetLicenseStatusOK) Error ¶
func (o *GetLicenseStatusOK) Error() string
func (*GetLicenseStatusOK) GetPayload ¶
func (o *GetLicenseStatusOK) GetPayload() *models.APILicenseDetailsXO
func (*GetLicenseStatusOK) IsClientError ¶
func (o *GetLicenseStatusOK) IsClientError() bool
IsClientError returns true when this get license status o k response has a 4xx status code
func (*GetLicenseStatusOK) IsCode ¶
func (o *GetLicenseStatusOK) IsCode(code int) bool
IsCode returns true when this get license status o k response a status code equal to that given
func (*GetLicenseStatusOK) IsRedirect ¶
func (o *GetLicenseStatusOK) IsRedirect() bool
IsRedirect returns true when this get license status o k response has a 3xx status code
func (*GetLicenseStatusOK) IsServerError ¶
func (o *GetLicenseStatusOK) IsServerError() bool
IsServerError returns true when this get license status o k response has a 5xx status code
func (*GetLicenseStatusOK) IsSuccess ¶
func (o *GetLicenseStatusOK) IsSuccess() bool
IsSuccess returns true when this get license status o k response has a 2xx status code
func (*GetLicenseStatusOK) String ¶
func (o *GetLicenseStatusOK) String() string
type GetLicenseStatusParams ¶
type GetLicenseStatusParams struct { Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetLicenseStatusParams contains all the parameters to send to the API endpoint
for the get license status operation. Typically these are written to a http.Request.
func NewGetLicenseStatusParams ¶
func NewGetLicenseStatusParams() *GetLicenseStatusParams
NewGetLicenseStatusParams creates a new GetLicenseStatusParams 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 NewGetLicenseStatusParamsWithContext ¶
func NewGetLicenseStatusParamsWithContext(ctx context.Context) *GetLicenseStatusParams
NewGetLicenseStatusParamsWithContext creates a new GetLicenseStatusParams object with the ability to set a context for a request.
func NewGetLicenseStatusParamsWithHTTPClient ¶
func NewGetLicenseStatusParamsWithHTTPClient(client *http.Client) *GetLicenseStatusParams
NewGetLicenseStatusParamsWithHTTPClient creates a new GetLicenseStatusParams object with the ability to set a custom HTTPClient for a request.
func NewGetLicenseStatusParamsWithTimeout ¶
func NewGetLicenseStatusParamsWithTimeout(timeout time.Duration) *GetLicenseStatusParams
NewGetLicenseStatusParamsWithTimeout creates a new GetLicenseStatusParams object with the ability to set a timeout on a request.
func (*GetLicenseStatusParams) SetContext ¶
func (o *GetLicenseStatusParams) SetContext(ctx context.Context)
SetContext adds the context to the get license status params
func (*GetLicenseStatusParams) SetDefaults ¶
func (o *GetLicenseStatusParams) SetDefaults()
SetDefaults hydrates default values in the get license status params (not the query body).
All values with no default are reset to their zero value.
func (*GetLicenseStatusParams) SetHTTPClient ¶
func (o *GetLicenseStatusParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get license status params
func (*GetLicenseStatusParams) SetTimeout ¶
func (o *GetLicenseStatusParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get license status params
func (*GetLicenseStatusParams) WithContext ¶
func (o *GetLicenseStatusParams) WithContext(ctx context.Context) *GetLicenseStatusParams
WithContext adds the context to the get license status params
func (*GetLicenseStatusParams) WithDefaults ¶
func (o *GetLicenseStatusParams) WithDefaults() *GetLicenseStatusParams
WithDefaults hydrates default values in the get license status params (not the query body).
All values with no default are reset to their zero value.
func (*GetLicenseStatusParams) WithHTTPClient ¶
func (o *GetLicenseStatusParams) WithHTTPClient(client *http.Client) *GetLicenseStatusParams
WithHTTPClient adds the HTTPClient to the get license status params
func (*GetLicenseStatusParams) WithTimeout ¶
func (o *GetLicenseStatusParams) WithTimeout(timeout time.Duration) *GetLicenseStatusParams
WithTimeout adds the timeout to the get license status params
func (*GetLicenseStatusParams) WriteToRequest ¶
func (o *GetLicenseStatusParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetLicenseStatusReader ¶
type GetLicenseStatusReader struct {
// contains filtered or unexported fields
}
GetLicenseStatusReader is a Reader for the GetLicenseStatus structure.
func (*GetLicenseStatusReader) ReadResponse ¶
func (o *GetLicenseStatusReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type RemoveLicenseDefault ¶
type RemoveLicenseDefault struct {
// contains filtered or unexported fields
}
RemoveLicenseDefault describes a response with status code -1, with default header values.
successful operation
func NewRemoveLicenseDefault ¶
func NewRemoveLicenseDefault(code int) *RemoveLicenseDefault
NewRemoveLicenseDefault creates a RemoveLicenseDefault with default headers values
func (*RemoveLicenseDefault) Code ¶
func (o *RemoveLicenseDefault) Code() int
Code gets the status code for the remove license default response
func (*RemoveLicenseDefault) Error ¶
func (o *RemoveLicenseDefault) Error() string
func (*RemoveLicenseDefault) IsClientError ¶
func (o *RemoveLicenseDefault) IsClientError() bool
IsClientError returns true when this remove license default response has a 4xx status code
func (*RemoveLicenseDefault) IsCode ¶
func (o *RemoveLicenseDefault) IsCode(code int) bool
IsCode returns true when this remove license default response a status code equal to that given
func (*RemoveLicenseDefault) IsRedirect ¶
func (o *RemoveLicenseDefault) IsRedirect() bool
IsRedirect returns true when this remove license default response has a 3xx status code
func (*RemoveLicenseDefault) IsServerError ¶
func (o *RemoveLicenseDefault) IsServerError() bool
IsServerError returns true when this remove license default response has a 5xx status code
func (*RemoveLicenseDefault) IsSuccess ¶
func (o *RemoveLicenseDefault) IsSuccess() bool
IsSuccess returns true when this remove license default response has a 2xx status code
func (*RemoveLicenseDefault) String ¶
func (o *RemoveLicenseDefault) String() string
type RemoveLicenseParams ¶
type RemoveLicenseParams struct { Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
RemoveLicenseParams contains all the parameters to send to the API endpoint
for the remove license operation. Typically these are written to a http.Request.
func NewRemoveLicenseParams ¶
func NewRemoveLicenseParams() *RemoveLicenseParams
NewRemoveLicenseParams creates a new RemoveLicenseParams 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 NewRemoveLicenseParamsWithContext ¶
func NewRemoveLicenseParamsWithContext(ctx context.Context) *RemoveLicenseParams
NewRemoveLicenseParamsWithContext creates a new RemoveLicenseParams object with the ability to set a context for a request.
func NewRemoveLicenseParamsWithHTTPClient ¶
func NewRemoveLicenseParamsWithHTTPClient(client *http.Client) *RemoveLicenseParams
NewRemoveLicenseParamsWithHTTPClient creates a new RemoveLicenseParams object with the ability to set a custom HTTPClient for a request.
func NewRemoveLicenseParamsWithTimeout ¶
func NewRemoveLicenseParamsWithTimeout(timeout time.Duration) *RemoveLicenseParams
NewRemoveLicenseParamsWithTimeout creates a new RemoveLicenseParams object with the ability to set a timeout on a request.
func (*RemoveLicenseParams) SetContext ¶
func (o *RemoveLicenseParams) SetContext(ctx context.Context)
SetContext adds the context to the remove license params
func (*RemoveLicenseParams) SetDefaults ¶
func (o *RemoveLicenseParams) SetDefaults()
SetDefaults hydrates default values in the remove license params (not the query body).
All values with no default are reset to their zero value.
func (*RemoveLicenseParams) SetHTTPClient ¶
func (o *RemoveLicenseParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the remove license params
func (*RemoveLicenseParams) SetTimeout ¶
func (o *RemoveLicenseParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the remove license params
func (*RemoveLicenseParams) WithContext ¶
func (o *RemoveLicenseParams) WithContext(ctx context.Context) *RemoveLicenseParams
WithContext adds the context to the remove license params
func (*RemoveLicenseParams) WithDefaults ¶
func (o *RemoveLicenseParams) WithDefaults() *RemoveLicenseParams
WithDefaults hydrates default values in the remove license params (not the query body).
All values with no default are reset to their zero value.
func (*RemoveLicenseParams) WithHTTPClient ¶
func (o *RemoveLicenseParams) WithHTTPClient(client *http.Client) *RemoveLicenseParams
WithHTTPClient adds the HTTPClient to the remove license params
func (*RemoveLicenseParams) WithTimeout ¶
func (o *RemoveLicenseParams) WithTimeout(timeout time.Duration) *RemoveLicenseParams
WithTimeout adds the timeout to the remove license params
func (*RemoveLicenseParams) WriteToRequest ¶
func (o *RemoveLicenseParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type RemoveLicenseReader ¶
type RemoveLicenseReader struct {
// contains filtered or unexported fields
}
RemoveLicenseReader is a Reader for the RemoveLicense structure.
func (*RemoveLicenseReader) ReadResponse ¶
func (o *RemoveLicenseReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type SetLicenseOK ¶
type SetLicenseOK struct {
Payload *models.APILicenseDetailsXO
}
SetLicenseOK describes a response with status code 200, with default header values.
successful operation
func NewSetLicenseOK ¶
func NewSetLicenseOK() *SetLicenseOK
NewSetLicenseOK creates a SetLicenseOK with default headers values
func (*SetLicenseOK) Code ¶
func (o *SetLicenseOK) Code() int
Code gets the status code for the set license o k response
func (*SetLicenseOK) Error ¶
func (o *SetLicenseOK) Error() string
func (*SetLicenseOK) GetPayload ¶
func (o *SetLicenseOK) GetPayload() *models.APILicenseDetailsXO
func (*SetLicenseOK) IsClientError ¶
func (o *SetLicenseOK) IsClientError() bool
IsClientError returns true when this set license o k response has a 4xx status code
func (*SetLicenseOK) IsCode ¶
func (o *SetLicenseOK) IsCode(code int) bool
IsCode returns true when this set license o k response a status code equal to that given
func (*SetLicenseOK) IsRedirect ¶
func (o *SetLicenseOK) IsRedirect() bool
IsRedirect returns true when this set license o k response has a 3xx status code
func (*SetLicenseOK) IsServerError ¶
func (o *SetLicenseOK) IsServerError() bool
IsServerError returns true when this set license o k response has a 5xx status code
func (*SetLicenseOK) IsSuccess ¶
func (o *SetLicenseOK) IsSuccess() bool
IsSuccess returns true when this set license o k response has a 2xx status code
func (*SetLicenseOK) String ¶
func (o *SetLicenseOK) String() string
type SetLicenseParams ¶
type SetLicenseParams struct { // Body. Body models.InputStream Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
SetLicenseParams contains all the parameters to send to the API endpoint
for the set license operation. Typically these are written to a http.Request.
func NewSetLicenseParams ¶
func NewSetLicenseParams() *SetLicenseParams
NewSetLicenseParams creates a new SetLicenseParams 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 NewSetLicenseParamsWithContext ¶
func NewSetLicenseParamsWithContext(ctx context.Context) *SetLicenseParams
NewSetLicenseParamsWithContext creates a new SetLicenseParams object with the ability to set a context for a request.
func NewSetLicenseParamsWithHTTPClient ¶
func NewSetLicenseParamsWithHTTPClient(client *http.Client) *SetLicenseParams
NewSetLicenseParamsWithHTTPClient creates a new SetLicenseParams object with the ability to set a custom HTTPClient for a request.
func NewSetLicenseParamsWithTimeout ¶
func NewSetLicenseParamsWithTimeout(timeout time.Duration) *SetLicenseParams
NewSetLicenseParamsWithTimeout creates a new SetLicenseParams object with the ability to set a timeout on a request.
func (*SetLicenseParams) SetBody ¶
func (o *SetLicenseParams) SetBody(body models.InputStream)
SetBody adds the body to the set license params
func (*SetLicenseParams) SetContext ¶
func (o *SetLicenseParams) SetContext(ctx context.Context)
SetContext adds the context to the set license params
func (*SetLicenseParams) SetDefaults ¶
func (o *SetLicenseParams) SetDefaults()
SetDefaults hydrates default values in the set license params (not the query body).
All values with no default are reset to their zero value.
func (*SetLicenseParams) SetHTTPClient ¶
func (o *SetLicenseParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the set license params
func (*SetLicenseParams) SetTimeout ¶
func (o *SetLicenseParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the set license params
func (*SetLicenseParams) WithBody ¶
func (o *SetLicenseParams) WithBody(body models.InputStream) *SetLicenseParams
WithBody adds the body to the set license params
func (*SetLicenseParams) WithContext ¶
func (o *SetLicenseParams) WithContext(ctx context.Context) *SetLicenseParams
WithContext adds the context to the set license params
func (*SetLicenseParams) WithDefaults ¶
func (o *SetLicenseParams) WithDefaults() *SetLicenseParams
WithDefaults hydrates default values in the set license params (not the query body).
All values with no default are reset to their zero value.
func (*SetLicenseParams) WithHTTPClient ¶
func (o *SetLicenseParams) WithHTTPClient(client *http.Client) *SetLicenseParams
WithHTTPClient adds the HTTPClient to the set license params
func (*SetLicenseParams) WithTimeout ¶
func (o *SetLicenseParams) WithTimeout(timeout time.Duration) *SetLicenseParams
WithTimeout adds the timeout to the set license params
func (*SetLicenseParams) WriteToRequest ¶
func (o *SetLicenseParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type SetLicenseReader ¶
type SetLicenseReader struct {
// contains filtered or unexported fields
}
SetLicenseReader is a Reader for the SetLicense structure.
func (*SetLicenseReader) ReadResponse ¶
func (o *SetLicenseReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.