product_licensing

package
v0.0.0-...-f4869d1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 26, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

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 (*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

WithContext adds the context to the get license status params

func (*GetLicenseStatusParams) WithDefaults

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

WithTimeout adds the timeout to the get license status params

func (*GetLicenseStatusParams) WriteToRequest

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

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

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL