subscriptions

package
v0.41.0 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2020 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 subscriptions API

func New

func New(transport runtime.ClientTransport, formats strfmt.Registry) *Client

New creates a new subscriptions API client.

func (*Client) DeleteSubscriptionsID

func (a *Client) DeleteSubscriptionsID(params *DeleteSubscriptionsIDParams) (*DeleteSubscriptionsIDNoContent, error)

DeleteSubscriptionsID deletes a subscription

func (*Client) GetSubscriptions

func (a *Client) GetSubscriptions(params *GetSubscriptionsParams) (*GetSubscriptionsOK, error)

GetSubscriptions lists all subscriptions

func (*Client) GetSubscriptionsID

func (a *Client) GetSubscriptionsID(params *GetSubscriptionsIDParams) (*GetSubscriptionsIDOK, error)

GetSubscriptionsID fetches subscription

func (*Client) PatchSubscriptionsID

func (a *Client) PatchSubscriptionsID(params *PatchSubscriptionsIDParams) (*PatchSubscriptionsIDOK, error)

PatchSubscriptionsID edits subscription details

func (*Client) PostSubscriptions

func (a *Client) PostSubscriptions(params *PostSubscriptionsParams) (*PostSubscriptionsCreated, error)

PostSubscriptions creates subscription

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type DeleteSubscriptionsIDNoContent

type DeleteSubscriptionsIDNoContent struct {
}

DeleteSubscriptionsIDNoContent handles this case with default header values.

Subscription deleted OK. No body content will be returned

func NewDeleteSubscriptionsIDNoContent

func NewDeleteSubscriptionsIDNoContent() *DeleteSubscriptionsIDNoContent

NewDeleteSubscriptionsIDNoContent creates a DeleteSubscriptionsIDNoContent with default headers values

func (*DeleteSubscriptionsIDNoContent) Error

type DeleteSubscriptionsIDParams

type DeleteSubscriptionsIDParams struct {

	/*ID
	  Subscription Id

	*/
	ID strfmt.UUID
	/*Version
	  Version

	*/
	Version int64

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

DeleteSubscriptionsIDParams contains all the parameters to send to the API endpoint for the delete subscriptions ID operation typically these are written to a http.Request

func NewDeleteSubscriptionsIDParams

func NewDeleteSubscriptionsIDParams() *DeleteSubscriptionsIDParams

NewDeleteSubscriptionsIDParams creates a new DeleteSubscriptionsIDParams object with the default values initialized.

func NewDeleteSubscriptionsIDParamsWithContext

func NewDeleteSubscriptionsIDParamsWithContext(ctx context.Context) *DeleteSubscriptionsIDParams

NewDeleteSubscriptionsIDParamsWithContext creates a new DeleteSubscriptionsIDParams object with the default values initialized, and the ability to set a context for a request

func NewDeleteSubscriptionsIDParamsWithHTTPClient

func NewDeleteSubscriptionsIDParamsWithHTTPClient(client *http.Client) *DeleteSubscriptionsIDParams

NewDeleteSubscriptionsIDParamsWithHTTPClient creates a new DeleteSubscriptionsIDParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewDeleteSubscriptionsIDParamsWithTimeout

func NewDeleteSubscriptionsIDParamsWithTimeout(timeout time.Duration) *DeleteSubscriptionsIDParams

NewDeleteSubscriptionsIDParamsWithTimeout creates a new DeleteSubscriptionsIDParams object with the default values initialized, and the ability to set a timeout on a request

func (*DeleteSubscriptionsIDParams) SetContext

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

SetContext adds the context to the delete subscriptions ID params

func (*DeleteSubscriptionsIDParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete subscriptions ID params

func (*DeleteSubscriptionsIDParams) SetID

SetID adds the id to the delete subscriptions ID params

func (*DeleteSubscriptionsIDParams) SetTimeout

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

SetTimeout adds the timeout to the delete subscriptions ID params

func (*DeleteSubscriptionsIDParams) SetVersion

func (o *DeleteSubscriptionsIDParams) SetVersion(version int64)

SetVersion adds the version to the delete subscriptions ID params

func (*DeleteSubscriptionsIDParams) WithContext

WithContext adds the context to the delete subscriptions ID params

func (*DeleteSubscriptionsIDParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the delete subscriptions ID params

func (*DeleteSubscriptionsIDParams) WithID

WithID adds the id to the delete subscriptions ID params

func (*DeleteSubscriptionsIDParams) WithTimeout

WithTimeout adds the timeout to the delete subscriptions ID params

func (*DeleteSubscriptionsIDParams) WithVersion

WithVersion adds the version to the delete subscriptions ID params

func (*DeleteSubscriptionsIDParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type DeleteSubscriptionsIDReader

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

DeleteSubscriptionsIDReader is a Reader for the DeleteSubscriptionsID structure.

func (*DeleteSubscriptionsIDReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetSubscriptionsIDOK

type GetSubscriptionsIDOK struct {
	Payload *models.SubscriptionDetailsResponse
}

GetSubscriptionsIDOK handles this case with default header values.

Subscription details

func NewGetSubscriptionsIDOK

func NewGetSubscriptionsIDOK() *GetSubscriptionsIDOK

NewGetSubscriptionsIDOK creates a GetSubscriptionsIDOK with default headers values

func (*GetSubscriptionsIDOK) Error

func (o *GetSubscriptionsIDOK) Error() string

type GetSubscriptionsIDParams

type GetSubscriptionsIDParams struct {

	/*ID
	  Subscription Id

	*/
	ID strfmt.UUID

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

GetSubscriptionsIDParams contains all the parameters to send to the API endpoint for the get subscriptions ID operation typically these are written to a http.Request

func NewGetSubscriptionsIDParams

func NewGetSubscriptionsIDParams() *GetSubscriptionsIDParams

NewGetSubscriptionsIDParams creates a new GetSubscriptionsIDParams object with the default values initialized.

func NewGetSubscriptionsIDParamsWithContext

func NewGetSubscriptionsIDParamsWithContext(ctx context.Context) *GetSubscriptionsIDParams

NewGetSubscriptionsIDParamsWithContext creates a new GetSubscriptionsIDParams object with the default values initialized, and the ability to set a context for a request

func NewGetSubscriptionsIDParamsWithHTTPClient

func NewGetSubscriptionsIDParamsWithHTTPClient(client *http.Client) *GetSubscriptionsIDParams

NewGetSubscriptionsIDParamsWithHTTPClient creates a new GetSubscriptionsIDParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewGetSubscriptionsIDParamsWithTimeout

func NewGetSubscriptionsIDParamsWithTimeout(timeout time.Duration) *GetSubscriptionsIDParams

NewGetSubscriptionsIDParamsWithTimeout creates a new GetSubscriptionsIDParams object with the default values initialized, and the ability to set a timeout on a request

func (*GetSubscriptionsIDParams) SetContext

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

SetContext adds the context to the get subscriptions ID params

func (*GetSubscriptionsIDParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get subscriptions ID params

func (*GetSubscriptionsIDParams) SetID

func (o *GetSubscriptionsIDParams) SetID(id strfmt.UUID)

SetID adds the id to the get subscriptions ID params

func (*GetSubscriptionsIDParams) SetTimeout

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

SetTimeout adds the timeout to the get subscriptions ID params

func (*GetSubscriptionsIDParams) WithContext

WithContext adds the context to the get subscriptions ID params

func (*GetSubscriptionsIDParams) WithHTTPClient

func (o *GetSubscriptionsIDParams) WithHTTPClient(client *http.Client) *GetSubscriptionsIDParams

WithHTTPClient adds the HTTPClient to the get subscriptions ID params

func (*GetSubscriptionsIDParams) WithID

WithID adds the id to the get subscriptions ID params

func (*GetSubscriptionsIDParams) WithTimeout

WithTimeout adds the timeout to the get subscriptions ID params

func (*GetSubscriptionsIDParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetSubscriptionsIDReader

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

GetSubscriptionsIDReader is a Reader for the GetSubscriptionsID structure.

func (*GetSubscriptionsIDReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetSubscriptionsOK

type GetSubscriptionsOK struct {
	Payload *models.SubscriptionDetailsListResponse
}

GetSubscriptionsOK handles this case with default header values.

List of subscription details

func NewGetSubscriptionsOK

func NewGetSubscriptionsOK() *GetSubscriptionsOK

NewGetSubscriptionsOK creates a GetSubscriptionsOK with default headers values

func (*GetSubscriptionsOK) Error

func (o *GetSubscriptionsOK) Error() string

type GetSubscriptionsParams

type GetSubscriptionsParams struct {

	/*FilterEventType
	  Filter by event type

	*/
	FilterEventType []string
	/*PageNumber
	  Which page to select

	*/
	PageNumber *int64
	/*PageSize
	  Number of items to select

	*/
	PageSize *int64

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

GetSubscriptionsParams contains all the parameters to send to the API endpoint for the get subscriptions operation typically these are written to a http.Request

func NewGetSubscriptionsParams

func NewGetSubscriptionsParams() *GetSubscriptionsParams

NewGetSubscriptionsParams creates a new GetSubscriptionsParams object with the default values initialized.

func NewGetSubscriptionsParamsWithContext

func NewGetSubscriptionsParamsWithContext(ctx context.Context) *GetSubscriptionsParams

NewGetSubscriptionsParamsWithContext creates a new GetSubscriptionsParams object with the default values initialized, and the ability to set a context for a request

func NewGetSubscriptionsParamsWithHTTPClient

func NewGetSubscriptionsParamsWithHTTPClient(client *http.Client) *GetSubscriptionsParams

NewGetSubscriptionsParamsWithHTTPClient creates a new GetSubscriptionsParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewGetSubscriptionsParamsWithTimeout

func NewGetSubscriptionsParamsWithTimeout(timeout time.Duration) *GetSubscriptionsParams

NewGetSubscriptionsParamsWithTimeout creates a new GetSubscriptionsParams object with the default values initialized, and the ability to set a timeout on a request

func (*GetSubscriptionsParams) SetContext

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

SetContext adds the context to the get subscriptions params

func (*GetSubscriptionsParams) SetFilterEventType

func (o *GetSubscriptionsParams) SetFilterEventType(filterEventType []string)

SetFilterEventType adds the filterEventType to the get subscriptions params

func (*GetSubscriptionsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get subscriptions params

func (*GetSubscriptionsParams) SetPageNumber

func (o *GetSubscriptionsParams) SetPageNumber(pageNumber *int64)

SetPageNumber adds the pageNumber to the get subscriptions params

func (*GetSubscriptionsParams) SetPageSize

func (o *GetSubscriptionsParams) SetPageSize(pageSize *int64)

SetPageSize adds the pageSize to the get subscriptions params

func (*GetSubscriptionsParams) SetTimeout

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

SetTimeout adds the timeout to the get subscriptions params

func (*GetSubscriptionsParams) WithContext

WithContext adds the context to the get subscriptions params

func (*GetSubscriptionsParams) WithFilterEventType

func (o *GetSubscriptionsParams) WithFilterEventType(filterEventType []string) *GetSubscriptionsParams

WithFilterEventType adds the filterEventType to the get subscriptions params

func (*GetSubscriptionsParams) WithHTTPClient

func (o *GetSubscriptionsParams) WithHTTPClient(client *http.Client) *GetSubscriptionsParams

WithHTTPClient adds the HTTPClient to the get subscriptions params

func (*GetSubscriptionsParams) WithPageNumber

func (o *GetSubscriptionsParams) WithPageNumber(pageNumber *int64) *GetSubscriptionsParams

WithPageNumber adds the pageNumber to the get subscriptions params

func (*GetSubscriptionsParams) WithPageSize

func (o *GetSubscriptionsParams) WithPageSize(pageSize *int64) *GetSubscriptionsParams

WithPageSize adds the pageSize to the get subscriptions params

func (*GetSubscriptionsParams) WithTimeout

WithTimeout adds the timeout to the get subscriptions params

func (*GetSubscriptionsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetSubscriptionsReader

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

GetSubscriptionsReader is a Reader for the GetSubscriptions structure.

func (*GetSubscriptionsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type PatchSubscriptionsIDOK

type PatchSubscriptionsIDOK struct {
	Payload *models.SubscriptionDetailsResponse
}

PatchSubscriptionsIDOK handles this case with default header values.

Subscription details

func NewPatchSubscriptionsIDOK

func NewPatchSubscriptionsIDOK() *PatchSubscriptionsIDOK

NewPatchSubscriptionsIDOK creates a PatchSubscriptionsIDOK with default headers values

func (*PatchSubscriptionsIDOK) Error

func (o *PatchSubscriptionsIDOK) Error() string

type PatchSubscriptionsIDParams

type PatchSubscriptionsIDParams struct {

	/*SubscriptionUpdateRequest*/
	SubscriptionUpdateRequest *models.SubscriptionCreation
	/*ID
	  Subscription Id

	*/
	ID strfmt.UUID

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

PatchSubscriptionsIDParams contains all the parameters to send to the API endpoint for the patch subscriptions ID operation typically these are written to a http.Request

func NewPatchSubscriptionsIDParams

func NewPatchSubscriptionsIDParams() *PatchSubscriptionsIDParams

NewPatchSubscriptionsIDParams creates a new PatchSubscriptionsIDParams object with the default values initialized.

func NewPatchSubscriptionsIDParamsWithContext

func NewPatchSubscriptionsIDParamsWithContext(ctx context.Context) *PatchSubscriptionsIDParams

NewPatchSubscriptionsIDParamsWithContext creates a new PatchSubscriptionsIDParams object with the default values initialized, and the ability to set a context for a request

func NewPatchSubscriptionsIDParamsWithHTTPClient

func NewPatchSubscriptionsIDParamsWithHTTPClient(client *http.Client) *PatchSubscriptionsIDParams

NewPatchSubscriptionsIDParamsWithHTTPClient creates a new PatchSubscriptionsIDParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewPatchSubscriptionsIDParamsWithTimeout

func NewPatchSubscriptionsIDParamsWithTimeout(timeout time.Duration) *PatchSubscriptionsIDParams

NewPatchSubscriptionsIDParamsWithTimeout creates a new PatchSubscriptionsIDParams object with the default values initialized, and the ability to set a timeout on a request

func (*PatchSubscriptionsIDParams) SetContext

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

SetContext adds the context to the patch subscriptions ID params

func (*PatchSubscriptionsIDParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the patch subscriptions ID params

func (*PatchSubscriptionsIDParams) SetID

func (o *PatchSubscriptionsIDParams) SetID(id strfmt.UUID)

SetID adds the id to the patch subscriptions ID params

func (*PatchSubscriptionsIDParams) SetSubscriptionUpdateRequest

func (o *PatchSubscriptionsIDParams) SetSubscriptionUpdateRequest(subscriptionUpdateRequest *models.SubscriptionCreation)

SetSubscriptionUpdateRequest adds the subscriptionUpdateRequest to the patch subscriptions ID params

func (*PatchSubscriptionsIDParams) SetTimeout

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

SetTimeout adds the timeout to the patch subscriptions ID params

func (*PatchSubscriptionsIDParams) WithContext

WithContext adds the context to the patch subscriptions ID params

func (*PatchSubscriptionsIDParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the patch subscriptions ID params

func (*PatchSubscriptionsIDParams) WithID

WithID adds the id to the patch subscriptions ID params

func (*PatchSubscriptionsIDParams) WithSubscriptionUpdateRequest

func (o *PatchSubscriptionsIDParams) WithSubscriptionUpdateRequest(subscriptionUpdateRequest *models.SubscriptionCreation) *PatchSubscriptionsIDParams

WithSubscriptionUpdateRequest adds the subscriptionUpdateRequest to the patch subscriptions ID params

func (*PatchSubscriptionsIDParams) WithTimeout

WithTimeout adds the timeout to the patch subscriptions ID params

func (*PatchSubscriptionsIDParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type PatchSubscriptionsIDReader

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

PatchSubscriptionsIDReader is a Reader for the PatchSubscriptionsID structure.

func (*PatchSubscriptionsIDReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type PostSubscriptionsCreated

type PostSubscriptionsCreated struct {
	Payload *models.SubscriptionCreationResponse
}

PostSubscriptionsCreated handles this case with default header values.

Subscription creation response

func NewPostSubscriptionsCreated

func NewPostSubscriptionsCreated() *PostSubscriptionsCreated

NewPostSubscriptionsCreated creates a PostSubscriptionsCreated with default headers values

func (*PostSubscriptionsCreated) Error

func (o *PostSubscriptionsCreated) Error() string

type PostSubscriptionsParams

type PostSubscriptionsParams struct {

	/*SubscriptionCreationRequest*/
	SubscriptionCreationRequest *models.SubscriptionCreation

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

PostSubscriptionsParams contains all the parameters to send to the API endpoint for the post subscriptions operation typically these are written to a http.Request

func NewPostSubscriptionsParams

func NewPostSubscriptionsParams() *PostSubscriptionsParams

NewPostSubscriptionsParams creates a new PostSubscriptionsParams object with the default values initialized.

func NewPostSubscriptionsParamsWithContext

func NewPostSubscriptionsParamsWithContext(ctx context.Context) *PostSubscriptionsParams

NewPostSubscriptionsParamsWithContext creates a new PostSubscriptionsParams object with the default values initialized, and the ability to set a context for a request

func NewPostSubscriptionsParamsWithHTTPClient

func NewPostSubscriptionsParamsWithHTTPClient(client *http.Client) *PostSubscriptionsParams

NewPostSubscriptionsParamsWithHTTPClient creates a new PostSubscriptionsParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewPostSubscriptionsParamsWithTimeout

func NewPostSubscriptionsParamsWithTimeout(timeout time.Duration) *PostSubscriptionsParams

NewPostSubscriptionsParamsWithTimeout creates a new PostSubscriptionsParams object with the default values initialized, and the ability to set a timeout on a request

func (*PostSubscriptionsParams) SetContext

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

SetContext adds the context to the post subscriptions params

func (*PostSubscriptionsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the post subscriptions params

func (*PostSubscriptionsParams) SetSubscriptionCreationRequest

func (o *PostSubscriptionsParams) SetSubscriptionCreationRequest(subscriptionCreationRequest *models.SubscriptionCreation)

SetSubscriptionCreationRequest adds the subscriptionCreationRequest to the post subscriptions params

func (*PostSubscriptionsParams) SetTimeout

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

SetTimeout adds the timeout to the post subscriptions params

func (*PostSubscriptionsParams) WithContext

WithContext adds the context to the post subscriptions params

func (*PostSubscriptionsParams) WithHTTPClient

func (o *PostSubscriptionsParams) WithHTTPClient(client *http.Client) *PostSubscriptionsParams

WithHTTPClient adds the HTTPClient to the post subscriptions params

func (*PostSubscriptionsParams) WithSubscriptionCreationRequest

func (o *PostSubscriptionsParams) WithSubscriptionCreationRequest(subscriptionCreationRequest *models.SubscriptionCreation) *PostSubscriptionsParams

WithSubscriptionCreationRequest adds the subscriptionCreationRequest to the post subscriptions params

func (*PostSubscriptionsParams) WithTimeout

WithTimeout adds the timeout to the post subscriptions params

func (*PostSubscriptionsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type PostSubscriptionsReader

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

PostSubscriptionsReader is a Reader for the PostSubscriptions structure.

func (*PostSubscriptionsReader) ReadResponse

func (o *PostSubscriptionsReader) 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