subscription

package
v0.0.0-...-f9fec28 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2024 License: Apache-2.0 Imports: 11 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 subscription API

func (*Client) SetTransport

func (a *Client) SetTransport(transport runtime.ClientTransport)

SetTransport changes the transport on the client

func (*Client) SubscriptionResourceGetGet

func (a *Client) SubscriptionResourceGetGet(params *SubscriptionResourceGetGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SubscriptionResourceGetGetOK, error)

SubscriptionResourceGetGet gets a subscription

func (*Client) SubscriptionsResourceGetGet

func (a *Client) SubscriptionsResourceGetGet(params *SubscriptionsResourceGetGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SubscriptionsResourceGetGetOK, error)

SubscriptionsResourceGetGet gets a list of subscriptions

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	SubscriptionResourceGetGet(params *SubscriptionResourceGetGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SubscriptionResourceGetGetOK, error)

	SubscriptionsResourceGetGet(params *SubscriptionsResourceGetGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SubscriptionsResourceGetGetOK, 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 subscription API client.

type SubscriptionResourceGetGetOK

type SubscriptionResourceGetGetOK struct {
	Payload *models.Subscription
}

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

successful operation

func NewSubscriptionResourceGetGetOK

func NewSubscriptionResourceGetGetOK() *SubscriptionResourceGetGetOK

NewSubscriptionResourceGetGetOK creates a SubscriptionResourceGetGetOK with default headers values

func (*SubscriptionResourceGetGetOK) Code

Code gets the status code for the subscription resource get get o k response

func (*SubscriptionResourceGetGetOK) Error

func (*SubscriptionResourceGetGetOK) GetPayload

func (*SubscriptionResourceGetGetOK) IsClientError

func (o *SubscriptionResourceGetGetOK) IsClientError() bool

IsClientError returns true when this subscription resource get get o k response has a 4xx status code

func (*SubscriptionResourceGetGetOK) IsCode

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

IsCode returns true when this subscription resource get get o k response a status code equal to that given

func (*SubscriptionResourceGetGetOK) IsRedirect

func (o *SubscriptionResourceGetGetOK) IsRedirect() bool

IsRedirect returns true when this subscription resource get get o k response has a 3xx status code

func (*SubscriptionResourceGetGetOK) IsServerError

func (o *SubscriptionResourceGetGetOK) IsServerError() bool

IsServerError returns true when this subscription resource get get o k response has a 5xx status code

func (*SubscriptionResourceGetGetOK) IsSuccess

func (o *SubscriptionResourceGetGetOK) IsSuccess() bool

IsSuccess returns true when this subscription resource get get o k response has a 2xx status code

func (*SubscriptionResourceGetGetOK) String

type SubscriptionResourceGetGetParams

type SubscriptionResourceGetGetParams struct {

	/* SubscriptionID.

	   The subscription id
	*/
	SubscriptionID int64

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

SubscriptionResourceGetGetParams contains all the parameters to send to the API endpoint

for the subscription resource get get operation.

Typically these are written to a http.Request.

func NewSubscriptionResourceGetGetParams

func NewSubscriptionResourceGetGetParams() *SubscriptionResourceGetGetParams

NewSubscriptionResourceGetGetParams creates a new SubscriptionResourceGetGetParams 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 NewSubscriptionResourceGetGetParamsWithContext

func NewSubscriptionResourceGetGetParamsWithContext(ctx context.Context) *SubscriptionResourceGetGetParams

NewSubscriptionResourceGetGetParamsWithContext creates a new SubscriptionResourceGetGetParams object with the ability to set a context for a request.

func NewSubscriptionResourceGetGetParamsWithHTTPClient

func NewSubscriptionResourceGetGetParamsWithHTTPClient(client *http.Client) *SubscriptionResourceGetGetParams

NewSubscriptionResourceGetGetParamsWithHTTPClient creates a new SubscriptionResourceGetGetParams object with the ability to set a custom HTTPClient for a request.

func NewSubscriptionResourceGetGetParamsWithTimeout

func NewSubscriptionResourceGetGetParamsWithTimeout(timeout time.Duration) *SubscriptionResourceGetGetParams

NewSubscriptionResourceGetGetParamsWithTimeout creates a new SubscriptionResourceGetGetParams object with the ability to set a timeout on a request.

func (*SubscriptionResourceGetGetParams) SetContext

SetContext adds the context to the subscription resource get get params

func (*SubscriptionResourceGetGetParams) SetDefaults

func (o *SubscriptionResourceGetGetParams) SetDefaults()

SetDefaults hydrates default values in the subscription resource get get params (not the query body).

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

func (*SubscriptionResourceGetGetParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the subscription resource get get params

func (*SubscriptionResourceGetGetParams) SetSubscriptionID

func (o *SubscriptionResourceGetGetParams) SetSubscriptionID(subscriptionID int64)

SetSubscriptionID adds the subscriptionId to the subscription resource get get params

func (*SubscriptionResourceGetGetParams) SetTimeout

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

SetTimeout adds the timeout to the subscription resource get get params

func (*SubscriptionResourceGetGetParams) WithContext

WithContext adds the context to the subscription resource get get params

func (*SubscriptionResourceGetGetParams) WithDefaults

WithDefaults hydrates default values in the subscription resource get get params (not the query body).

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

func (*SubscriptionResourceGetGetParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the subscription resource get get params

func (*SubscriptionResourceGetGetParams) WithSubscriptionID

func (o *SubscriptionResourceGetGetParams) WithSubscriptionID(subscriptionID int64) *SubscriptionResourceGetGetParams

WithSubscriptionID adds the subscriptionID to the subscription resource get get params

func (*SubscriptionResourceGetGetParams) WithTimeout

WithTimeout adds the timeout to the subscription resource get get params

func (*SubscriptionResourceGetGetParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type SubscriptionResourceGetGetReader

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

SubscriptionResourceGetGetReader is a Reader for the SubscriptionResourceGetGet structure.

func (*SubscriptionResourceGetGetReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type SubscriptionResourceGetGetUnauthorized

type SubscriptionResourceGetGetUnauthorized struct {
}

SubscriptionResourceGetGetUnauthorized describes a response with status code 401, with default header values.

Not authorized

func NewSubscriptionResourceGetGetUnauthorized

func NewSubscriptionResourceGetGetUnauthorized() *SubscriptionResourceGetGetUnauthorized

NewSubscriptionResourceGetGetUnauthorized creates a SubscriptionResourceGetGetUnauthorized with default headers values

func (*SubscriptionResourceGetGetUnauthorized) Code

Code gets the status code for the subscription resource get get unauthorized response

func (*SubscriptionResourceGetGetUnauthorized) Error

func (*SubscriptionResourceGetGetUnauthorized) IsClientError

func (o *SubscriptionResourceGetGetUnauthorized) IsClientError() bool

IsClientError returns true when this subscription resource get get unauthorized response has a 4xx status code

func (*SubscriptionResourceGetGetUnauthorized) IsCode

IsCode returns true when this subscription resource get get unauthorized response a status code equal to that given

func (*SubscriptionResourceGetGetUnauthorized) IsRedirect

IsRedirect returns true when this subscription resource get get unauthorized response has a 3xx status code

func (*SubscriptionResourceGetGetUnauthorized) IsServerError

func (o *SubscriptionResourceGetGetUnauthorized) IsServerError() bool

IsServerError returns true when this subscription resource get get unauthorized response has a 5xx status code

func (*SubscriptionResourceGetGetUnauthorized) IsSuccess

IsSuccess returns true when this subscription resource get get unauthorized response has a 2xx status code

func (*SubscriptionResourceGetGetUnauthorized) String

type SubscriptionsResourceGetGetOK

type SubscriptionsResourceGetGetOK struct {
	Payload []*models.Subscription
}

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

successful operation

func NewSubscriptionsResourceGetGetOK

func NewSubscriptionsResourceGetGetOK() *SubscriptionsResourceGetGetOK

NewSubscriptionsResourceGetGetOK creates a SubscriptionsResourceGetGetOK with default headers values

func (*SubscriptionsResourceGetGetOK) Code

Code gets the status code for the subscriptions resource get get o k response

func (*SubscriptionsResourceGetGetOK) Error

func (*SubscriptionsResourceGetGetOK) GetPayload

func (*SubscriptionsResourceGetGetOK) IsClientError

func (o *SubscriptionsResourceGetGetOK) IsClientError() bool

IsClientError returns true when this subscriptions resource get get o k response has a 4xx status code

func (*SubscriptionsResourceGetGetOK) IsCode

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

IsCode returns true when this subscriptions resource get get o k response a status code equal to that given

func (*SubscriptionsResourceGetGetOK) IsRedirect

func (o *SubscriptionsResourceGetGetOK) IsRedirect() bool

IsRedirect returns true when this subscriptions resource get get o k response has a 3xx status code

func (*SubscriptionsResourceGetGetOK) IsServerError

func (o *SubscriptionsResourceGetGetOK) IsServerError() bool

IsServerError returns true when this subscriptions resource get get o k response has a 5xx status code

func (*SubscriptionsResourceGetGetOK) IsSuccess

func (o *SubscriptionsResourceGetGetOK) IsSuccess() bool

IsSuccess returns true when this subscriptions resource get get o k response has a 2xx status code

func (*SubscriptionsResourceGetGetOK) String

type SubscriptionsResourceGetGetParams

type SubscriptionsResourceGetGetParams struct {
	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

SubscriptionsResourceGetGetParams contains all the parameters to send to the API endpoint

for the subscriptions resource get get operation.

Typically these are written to a http.Request.

func NewSubscriptionsResourceGetGetParams

func NewSubscriptionsResourceGetGetParams() *SubscriptionsResourceGetGetParams

NewSubscriptionsResourceGetGetParams creates a new SubscriptionsResourceGetGetParams 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 NewSubscriptionsResourceGetGetParamsWithContext

func NewSubscriptionsResourceGetGetParamsWithContext(ctx context.Context) *SubscriptionsResourceGetGetParams

NewSubscriptionsResourceGetGetParamsWithContext creates a new SubscriptionsResourceGetGetParams object with the ability to set a context for a request.

func NewSubscriptionsResourceGetGetParamsWithHTTPClient

func NewSubscriptionsResourceGetGetParamsWithHTTPClient(client *http.Client) *SubscriptionsResourceGetGetParams

NewSubscriptionsResourceGetGetParamsWithHTTPClient creates a new SubscriptionsResourceGetGetParams object with the ability to set a custom HTTPClient for a request.

func NewSubscriptionsResourceGetGetParamsWithTimeout

func NewSubscriptionsResourceGetGetParamsWithTimeout(timeout time.Duration) *SubscriptionsResourceGetGetParams

NewSubscriptionsResourceGetGetParamsWithTimeout creates a new SubscriptionsResourceGetGetParams object with the ability to set a timeout on a request.

func (*SubscriptionsResourceGetGetParams) SetContext

SetContext adds the context to the subscriptions resource get get params

func (*SubscriptionsResourceGetGetParams) SetDefaults

func (o *SubscriptionsResourceGetGetParams) SetDefaults()

SetDefaults hydrates default values in the subscriptions resource get get params (not the query body).

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

func (*SubscriptionsResourceGetGetParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the subscriptions resource get get params

func (*SubscriptionsResourceGetGetParams) SetTimeout

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

SetTimeout adds the timeout to the subscriptions resource get get params

func (*SubscriptionsResourceGetGetParams) WithContext

WithContext adds the context to the subscriptions resource get get params

func (*SubscriptionsResourceGetGetParams) WithDefaults

WithDefaults hydrates default values in the subscriptions resource get get params (not the query body).

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

func (*SubscriptionsResourceGetGetParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the subscriptions resource get get params

func (*SubscriptionsResourceGetGetParams) WithTimeout

WithTimeout adds the timeout to the subscriptions resource get get params

func (*SubscriptionsResourceGetGetParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type SubscriptionsResourceGetGetReader

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

SubscriptionsResourceGetGetReader is a Reader for the SubscriptionsResourceGetGet structure.

func (*SubscriptionsResourceGetGetReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type SubscriptionsResourceGetGetUnauthorized

type SubscriptionsResourceGetGetUnauthorized struct {
}

SubscriptionsResourceGetGetUnauthorized describes a response with status code 401, with default header values.

Not authorized

func NewSubscriptionsResourceGetGetUnauthorized

func NewSubscriptionsResourceGetGetUnauthorized() *SubscriptionsResourceGetGetUnauthorized

NewSubscriptionsResourceGetGetUnauthorized creates a SubscriptionsResourceGetGetUnauthorized with default headers values

func (*SubscriptionsResourceGetGetUnauthorized) Code

Code gets the status code for the subscriptions resource get get unauthorized response

func (*SubscriptionsResourceGetGetUnauthorized) Error

func (*SubscriptionsResourceGetGetUnauthorized) IsClientError

func (o *SubscriptionsResourceGetGetUnauthorized) IsClientError() bool

IsClientError returns true when this subscriptions resource get get unauthorized response has a 4xx status code

func (*SubscriptionsResourceGetGetUnauthorized) IsCode

IsCode returns true when this subscriptions resource get get unauthorized response a status code equal to that given

func (*SubscriptionsResourceGetGetUnauthorized) IsRedirect

IsRedirect returns true when this subscriptions resource get get unauthorized response has a 3xx status code

func (*SubscriptionsResourceGetGetUnauthorized) IsServerError

func (o *SubscriptionsResourceGetGetUnauthorized) IsServerError() bool

IsServerError returns true when this subscriptions resource get get unauthorized response has a 5xx status code

func (*SubscriptionsResourceGetGetUnauthorized) IsSuccess

IsSuccess returns true when this subscriptions resource get get unauthorized response has a 2xx status code

func (*SubscriptionsResourceGetGetUnauthorized) String

Jump to

Keyboard shortcuts

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