activation_service

package
v0.110.0 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2024 License: MPL-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ActivationServiceActivateDefault

type ActivationServiceActivateDefault struct {
	Payload *models.GooglerpcStatus
	// contains filtered or unexported fields
}

ActivationServiceActivateDefault describes a response with status code -1, with default header values.

An unexpected error response.

func NewActivationServiceActivateDefault

func NewActivationServiceActivateDefault(code int) *ActivationServiceActivateDefault

NewActivationServiceActivateDefault creates a ActivationServiceActivateDefault with default headers values

func (*ActivationServiceActivateDefault) Code

Code gets the status code for the activation service activate default response

func (*ActivationServiceActivateDefault) Error

func (*ActivationServiceActivateDefault) GetPayload

func (*ActivationServiceActivateDefault) IsClientError

func (o *ActivationServiceActivateDefault) IsClientError() bool

IsClientError returns true when this activation service activate default response has a 4xx status code

func (*ActivationServiceActivateDefault) IsCode

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

IsCode returns true when this activation service activate default response a status code equal to that given

func (*ActivationServiceActivateDefault) IsRedirect

func (o *ActivationServiceActivateDefault) IsRedirect() bool

IsRedirect returns true when this activation service activate default response has a 3xx status code

func (*ActivationServiceActivateDefault) IsServerError

func (o *ActivationServiceActivateDefault) IsServerError() bool

IsServerError returns true when this activation service activate default response has a 5xx status code

func (*ActivationServiceActivateDefault) IsSuccess

func (o *ActivationServiceActivateDefault) IsSuccess() bool

IsSuccess returns true when this activation service activate default response has a 2xx status code

func (*ActivationServiceActivateDefault) String

type ActivationServiceActivateOK

type ActivationServiceActivateOK struct {
	Payload models.Billing20201105ActivateResponse
}

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

A successful response.

func NewActivationServiceActivateOK

func NewActivationServiceActivateOK() *ActivationServiceActivateOK

NewActivationServiceActivateOK creates a ActivationServiceActivateOK with default headers values

func (*ActivationServiceActivateOK) Code

func (o *ActivationServiceActivateOK) Code() int

Code gets the status code for the activation service activate o k response

func (*ActivationServiceActivateOK) Error

func (*ActivationServiceActivateOK) GetPayload

func (*ActivationServiceActivateOK) IsClientError

func (o *ActivationServiceActivateOK) IsClientError() bool

IsClientError returns true when this activation service activate o k response has a 4xx status code

func (*ActivationServiceActivateOK) IsCode

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

IsCode returns true when this activation service activate o k response a status code equal to that given

func (*ActivationServiceActivateOK) IsRedirect

func (o *ActivationServiceActivateOK) IsRedirect() bool

IsRedirect returns true when this activation service activate o k response has a 3xx status code

func (*ActivationServiceActivateOK) IsServerError

func (o *ActivationServiceActivateOK) IsServerError() bool

IsServerError returns true when this activation service activate o k response has a 5xx status code

func (*ActivationServiceActivateOK) IsSuccess

func (o *ActivationServiceActivateOK) IsSuccess() bool

IsSuccess returns true when this activation service activate o k response has a 2xx status code

func (*ActivationServiceActivateOK) String

func (o *ActivationServiceActivateOK) String() string

type ActivationServiceActivateParams

type ActivationServiceActivateParams struct {

	/* ActivationCode.

	   activation_code is the activation code being redeemed.
	*/
	ActivationCode string

	// Body.
	Body *models.ActivationServiceActivateBody

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

ActivationServiceActivateParams contains all the parameters to send to the API endpoint

for the activation service activate operation.

Typically these are written to a http.Request.

func NewActivationServiceActivateParams

func NewActivationServiceActivateParams() *ActivationServiceActivateParams

NewActivationServiceActivateParams creates a new ActivationServiceActivateParams 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 NewActivationServiceActivateParamsWithContext

func NewActivationServiceActivateParamsWithContext(ctx context.Context) *ActivationServiceActivateParams

NewActivationServiceActivateParamsWithContext creates a new ActivationServiceActivateParams object with the ability to set a context for a request.

func NewActivationServiceActivateParamsWithHTTPClient

func NewActivationServiceActivateParamsWithHTTPClient(client *http.Client) *ActivationServiceActivateParams

NewActivationServiceActivateParamsWithHTTPClient creates a new ActivationServiceActivateParams object with the ability to set a custom HTTPClient for a request.

func NewActivationServiceActivateParamsWithTimeout

func NewActivationServiceActivateParamsWithTimeout(timeout time.Duration) *ActivationServiceActivateParams

NewActivationServiceActivateParamsWithTimeout creates a new ActivationServiceActivateParams object with the ability to set a timeout on a request.

func (*ActivationServiceActivateParams) SetActivationCode

func (o *ActivationServiceActivateParams) SetActivationCode(activationCode string)

SetActivationCode adds the activationCode to the activation service activate params

func (*ActivationServiceActivateParams) SetBody

SetBody adds the body to the activation service activate params

func (*ActivationServiceActivateParams) SetContext

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

SetContext adds the context to the activation service activate params

func (*ActivationServiceActivateParams) SetDefaults

func (o *ActivationServiceActivateParams) SetDefaults()

SetDefaults hydrates default values in the activation service activate params (not the query body).

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

func (*ActivationServiceActivateParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the activation service activate params

func (*ActivationServiceActivateParams) SetTimeout

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

SetTimeout adds the timeout to the activation service activate params

func (*ActivationServiceActivateParams) WithActivationCode

func (o *ActivationServiceActivateParams) WithActivationCode(activationCode string) *ActivationServiceActivateParams

WithActivationCode adds the activationCode to the activation service activate params

func (*ActivationServiceActivateParams) WithBody

WithBody adds the body to the activation service activate params

func (*ActivationServiceActivateParams) WithContext

WithContext adds the context to the activation service activate params

func (*ActivationServiceActivateParams) WithDefaults

WithDefaults hydrates default values in the activation service activate params (not the query body).

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

func (*ActivationServiceActivateParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the activation service activate params

func (*ActivationServiceActivateParams) WithTimeout

WithTimeout adds the timeout to the activation service activate params

func (*ActivationServiceActivateParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type ActivationServiceActivateReader

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

ActivationServiceActivateReader is a Reader for the ActivationServiceActivate structure.

func (*ActivationServiceActivateReader) ReadResponse

func (o *ActivationServiceActivateReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type ActivationServiceGetActivationDetailsDefault

type ActivationServiceGetActivationDetailsDefault struct {
	Payload *models.GooglerpcStatus
	// contains filtered or unexported fields
}

ActivationServiceGetActivationDetailsDefault describes a response with status code -1, with default header values.

An unexpected error response.

func NewActivationServiceGetActivationDetailsDefault

func NewActivationServiceGetActivationDetailsDefault(code int) *ActivationServiceGetActivationDetailsDefault

NewActivationServiceGetActivationDetailsDefault creates a ActivationServiceGetActivationDetailsDefault with default headers values

func (*ActivationServiceGetActivationDetailsDefault) Code

Code gets the status code for the activation service get activation details default response

func (*ActivationServiceGetActivationDetailsDefault) Error

func (*ActivationServiceGetActivationDetailsDefault) GetPayload

func (*ActivationServiceGetActivationDetailsDefault) IsClientError

IsClientError returns true when this activation service get activation details default response has a 4xx status code

func (*ActivationServiceGetActivationDetailsDefault) IsCode

IsCode returns true when this activation service get activation details default response a status code equal to that given

func (*ActivationServiceGetActivationDetailsDefault) IsRedirect

IsRedirect returns true when this activation service get activation details default response has a 3xx status code

func (*ActivationServiceGetActivationDetailsDefault) IsServerError

IsServerError returns true when this activation service get activation details default response has a 5xx status code

func (*ActivationServiceGetActivationDetailsDefault) IsSuccess

IsSuccess returns true when this activation service get activation details default response has a 2xx status code

func (*ActivationServiceGetActivationDetailsDefault) String

type ActivationServiceGetActivationDetailsOK

type ActivationServiceGetActivationDetailsOK struct {
	Payload *models.Billing20201105GetActivationDetailsResponse
}

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

A successful response.

func NewActivationServiceGetActivationDetailsOK

func NewActivationServiceGetActivationDetailsOK() *ActivationServiceGetActivationDetailsOK

NewActivationServiceGetActivationDetailsOK creates a ActivationServiceGetActivationDetailsOK with default headers values

func (*ActivationServiceGetActivationDetailsOK) Code

Code gets the status code for the activation service get activation details o k response

func (*ActivationServiceGetActivationDetailsOK) Error

func (*ActivationServiceGetActivationDetailsOK) GetPayload

func (*ActivationServiceGetActivationDetailsOK) IsClientError

func (o *ActivationServiceGetActivationDetailsOK) IsClientError() bool

IsClientError returns true when this activation service get activation details o k response has a 4xx status code

func (*ActivationServiceGetActivationDetailsOK) IsCode

IsCode returns true when this activation service get activation details o k response a status code equal to that given

func (*ActivationServiceGetActivationDetailsOK) IsRedirect

IsRedirect returns true when this activation service get activation details o k response has a 3xx status code

func (*ActivationServiceGetActivationDetailsOK) IsServerError

func (o *ActivationServiceGetActivationDetailsOK) IsServerError() bool

IsServerError returns true when this activation service get activation details o k response has a 5xx status code

func (*ActivationServiceGetActivationDetailsOK) IsSuccess

IsSuccess returns true when this activation service get activation details o k response has a 2xx status code

func (*ActivationServiceGetActivationDetailsOK) String

type ActivationServiceGetActivationDetailsParams

type ActivationServiceGetActivationDetailsParams struct {

	// ActivationCode.
	ActivationCode string

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

ActivationServiceGetActivationDetailsParams contains all the parameters to send to the API endpoint

for the activation service get activation details operation.

Typically these are written to a http.Request.

func NewActivationServiceGetActivationDetailsParams

func NewActivationServiceGetActivationDetailsParams() *ActivationServiceGetActivationDetailsParams

NewActivationServiceGetActivationDetailsParams creates a new ActivationServiceGetActivationDetailsParams 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 NewActivationServiceGetActivationDetailsParamsWithContext

func NewActivationServiceGetActivationDetailsParamsWithContext(ctx context.Context) *ActivationServiceGetActivationDetailsParams

NewActivationServiceGetActivationDetailsParamsWithContext creates a new ActivationServiceGetActivationDetailsParams object with the ability to set a context for a request.

func NewActivationServiceGetActivationDetailsParamsWithHTTPClient

func NewActivationServiceGetActivationDetailsParamsWithHTTPClient(client *http.Client) *ActivationServiceGetActivationDetailsParams

NewActivationServiceGetActivationDetailsParamsWithHTTPClient creates a new ActivationServiceGetActivationDetailsParams object with the ability to set a custom HTTPClient for a request.

func NewActivationServiceGetActivationDetailsParamsWithTimeout

func NewActivationServiceGetActivationDetailsParamsWithTimeout(timeout time.Duration) *ActivationServiceGetActivationDetailsParams

NewActivationServiceGetActivationDetailsParamsWithTimeout creates a new ActivationServiceGetActivationDetailsParams object with the ability to set a timeout on a request.

func (*ActivationServiceGetActivationDetailsParams) SetActivationCode

func (o *ActivationServiceGetActivationDetailsParams) SetActivationCode(activationCode string)

SetActivationCode adds the activationCode to the activation service get activation details params

func (*ActivationServiceGetActivationDetailsParams) SetContext

SetContext adds the context to the activation service get activation details params

func (*ActivationServiceGetActivationDetailsParams) SetDefaults

SetDefaults hydrates default values in the activation service get activation details params (not the query body).

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

func (*ActivationServiceGetActivationDetailsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the activation service get activation details params

func (*ActivationServiceGetActivationDetailsParams) SetTimeout

SetTimeout adds the timeout to the activation service get activation details params

func (*ActivationServiceGetActivationDetailsParams) WithActivationCode

WithActivationCode adds the activationCode to the activation service get activation details params

func (*ActivationServiceGetActivationDetailsParams) WithContext

WithContext adds the context to the activation service get activation details params

func (*ActivationServiceGetActivationDetailsParams) WithDefaults

WithDefaults hydrates default values in the activation service get activation details params (not the query body).

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

func (*ActivationServiceGetActivationDetailsParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the activation service get activation details params

func (*ActivationServiceGetActivationDetailsParams) WithTimeout

WithTimeout adds the timeout to the activation service get activation details params

func (*ActivationServiceGetActivationDetailsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type ActivationServiceGetActivationDetailsReader

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

ActivationServiceGetActivationDetailsReader is a Reader for the ActivationServiceGetActivationDetails structure.

func (*ActivationServiceGetActivationDetailsReader) ReadResponse

func (o *ActivationServiceGetActivationDetailsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type Client

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

Client for activation service API

func (*Client) ActivationServiceActivate

func (a *Client) ActivationServiceActivate(params *ActivationServiceActivateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ActivationServiceActivateOK, error)

ActivationServiceActivate activates is called by the front end to redeem the given activation code

func (*Client) ActivationServiceGetActivationDetails

func (a *Client) ActivationServiceGetActivationDetails(params *ActivationServiceGetActivationDetailsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ActivationServiceGetActivationDetailsOK, error)

ActivationServiceGetActivationDetails gets activation details returns contract activation details associated with an activation code

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 {
	ActivationServiceActivate(params *ActivationServiceActivateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ActivationServiceActivateOK, error)

	ActivationServiceGetActivationDetails(params *ActivationServiceGetActivationDetailsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ActivationServiceGetActivationDetailsOK, 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 activation service API client.

Jump to

Keyboard shortcuts

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