subscriptions

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2017 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 AddSubscriptionBadRequest

type AddSubscriptionBadRequest struct {
	Payload *models.Error
}

AddSubscriptionBadRequest handles this case with default header values.

Invalid input

func NewAddSubscriptionBadRequest

func NewAddSubscriptionBadRequest() *AddSubscriptionBadRequest

NewAddSubscriptionBadRequest creates a AddSubscriptionBadRequest with default headers values

func (*AddSubscriptionBadRequest) Error

func (o *AddSubscriptionBadRequest) Error() string

type AddSubscriptionCreated

type AddSubscriptionCreated struct {
	Payload *models.Subscription
}

AddSubscriptionCreated handles this case with default header values.

Subscription created

func NewAddSubscriptionCreated

func NewAddSubscriptionCreated() *AddSubscriptionCreated

NewAddSubscriptionCreated creates a AddSubscriptionCreated with default headers values

func (*AddSubscriptionCreated) Error

func (o *AddSubscriptionCreated) Error() string

type AddSubscriptionDefault

type AddSubscriptionDefault struct {
	Payload *models.Error
	// contains filtered or unexported fields
}

AddSubscriptionDefault handles this case with default header values.

Unknown error

func NewAddSubscriptionDefault

func NewAddSubscriptionDefault(code int) *AddSubscriptionDefault

NewAddSubscriptionDefault creates a AddSubscriptionDefault with default headers values

func (*AddSubscriptionDefault) Code

func (o *AddSubscriptionDefault) Code() int

Code gets the status code for the add subscription default response

func (*AddSubscriptionDefault) Error

func (o *AddSubscriptionDefault) Error() string

type AddSubscriptionInternalServerError

type AddSubscriptionInternalServerError struct {
	Payload *models.Error
}

AddSubscriptionInternalServerError handles this case with default header values.

Internal server error

func NewAddSubscriptionInternalServerError

func NewAddSubscriptionInternalServerError() *AddSubscriptionInternalServerError

NewAddSubscriptionInternalServerError creates a AddSubscriptionInternalServerError with default headers values

func (*AddSubscriptionInternalServerError) Error

type AddSubscriptionParams

type AddSubscriptionParams struct {

	/*Body
	  subscription object

	*/
	Body *models.Subscription

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

AddSubscriptionParams contains all the parameters to send to the API endpoint for the add subscription operation typically these are written to a http.Request

func NewAddSubscriptionParams

func NewAddSubscriptionParams() *AddSubscriptionParams

NewAddSubscriptionParams creates a new AddSubscriptionParams object with the default values initialized.

func NewAddSubscriptionParamsWithContext

func NewAddSubscriptionParamsWithContext(ctx context.Context) *AddSubscriptionParams

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

func NewAddSubscriptionParamsWithHTTPClient

func NewAddSubscriptionParamsWithHTTPClient(client *http.Client) *AddSubscriptionParams

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

func NewAddSubscriptionParamsWithTimeout

func NewAddSubscriptionParamsWithTimeout(timeout time.Duration) *AddSubscriptionParams

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

func (*AddSubscriptionParams) SetBody

func (o *AddSubscriptionParams) SetBody(body *models.Subscription)

SetBody adds the body to the add subscription params

func (*AddSubscriptionParams) SetContext

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

SetContext adds the context to the add subscription params

func (*AddSubscriptionParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the add subscription params

func (*AddSubscriptionParams) SetTimeout

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

SetTimeout adds the timeout to the add subscription params

func (*AddSubscriptionParams) WithBody

WithBody adds the body to the add subscription params

func (*AddSubscriptionParams) WithContext

WithContext adds the context to the add subscription params

func (*AddSubscriptionParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the add subscription params

func (*AddSubscriptionParams) WithTimeout

func (o *AddSubscriptionParams) WithTimeout(timeout time.Duration) *AddSubscriptionParams

WithTimeout adds the timeout to the add subscription params

func (*AddSubscriptionParams) WriteToRequest

func (o *AddSubscriptionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type AddSubscriptionReader

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

AddSubscriptionReader is a Reader for the AddSubscription structure.

func (*AddSubscriptionReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type AddSubscriptionUnauthorized

type AddSubscriptionUnauthorized struct {
	Payload *models.Error
}

AddSubscriptionUnauthorized handles this case with default header values.

Unauthorized Request

func NewAddSubscriptionUnauthorized

func NewAddSubscriptionUnauthorized() *AddSubscriptionUnauthorized

NewAddSubscriptionUnauthorized creates a AddSubscriptionUnauthorized with default headers values

func (*AddSubscriptionUnauthorized) Error

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) AddSubscription

func (a *Client) AddSubscription(params *AddSubscriptionParams, authInfo runtime.ClientAuthInfoWriter) (*AddSubscriptionCreated, error)

AddSubscription adds a new subscription

func (*Client) DeleteSubscription

func (a *Client) DeleteSubscription(params *DeleteSubscriptionParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteSubscriptionOK, error)

DeleteSubscription deletes a subscription

func (*Client) GetSubscription

func (a *Client) GetSubscription(params *GetSubscriptionParams, authInfo runtime.ClientAuthInfoWriter) (*GetSubscriptionOK, error)

GetSubscription finds subscription by name

Returns a single subscription

func (*Client) GetSubscriptions

func (a *Client) GetSubscriptions(params *GetSubscriptionsParams, authInfo runtime.ClientAuthInfoWriter) (*GetSubscriptionsOK, error)

GetSubscriptions lists all existing subscriptions

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type DeleteSubscriptionBadRequest

type DeleteSubscriptionBadRequest struct {
	Payload *models.Error
}

DeleteSubscriptionBadRequest handles this case with default header values.

Invalid ID supplied

func NewDeleteSubscriptionBadRequest

func NewDeleteSubscriptionBadRequest() *DeleteSubscriptionBadRequest

NewDeleteSubscriptionBadRequest creates a DeleteSubscriptionBadRequest with default headers values

func (*DeleteSubscriptionBadRequest) Error

type DeleteSubscriptionDefault

type DeleteSubscriptionDefault struct {
	Payload *models.Error
	// contains filtered or unexported fields
}

DeleteSubscriptionDefault handles this case with default header values.

Generic error response

func NewDeleteSubscriptionDefault

func NewDeleteSubscriptionDefault(code int) *DeleteSubscriptionDefault

NewDeleteSubscriptionDefault creates a DeleteSubscriptionDefault with default headers values

func (*DeleteSubscriptionDefault) Code

func (o *DeleteSubscriptionDefault) Code() int

Code gets the status code for the delete subscription default response

func (*DeleteSubscriptionDefault) Error

func (o *DeleteSubscriptionDefault) Error() string

type DeleteSubscriptionInternalServerError

type DeleteSubscriptionInternalServerError struct {
	Payload *models.Error
}

DeleteSubscriptionInternalServerError handles this case with default header values.

Internal server error

func NewDeleteSubscriptionInternalServerError

func NewDeleteSubscriptionInternalServerError() *DeleteSubscriptionInternalServerError

NewDeleteSubscriptionInternalServerError creates a DeleteSubscriptionInternalServerError with default headers values

func (*DeleteSubscriptionInternalServerError) Error

type DeleteSubscriptionNotFound

type DeleteSubscriptionNotFound struct {
	Payload *models.Error
}

DeleteSubscriptionNotFound handles this case with default header values.

Subscription not found

func NewDeleteSubscriptionNotFound

func NewDeleteSubscriptionNotFound() *DeleteSubscriptionNotFound

NewDeleteSubscriptionNotFound creates a DeleteSubscriptionNotFound with default headers values

func (*DeleteSubscriptionNotFound) Error

type DeleteSubscriptionOK

type DeleteSubscriptionOK struct {
	Payload *models.Subscription
}

DeleteSubscriptionOK handles this case with default header values.

successful operation

func NewDeleteSubscriptionOK

func NewDeleteSubscriptionOK() *DeleteSubscriptionOK

NewDeleteSubscriptionOK creates a DeleteSubscriptionOK with default headers values

func (*DeleteSubscriptionOK) Error

func (o *DeleteSubscriptionOK) Error() string

type DeleteSubscriptionParams

type DeleteSubscriptionParams struct {

	/*SubscriptionName
	  Name of the subscription to work on

	*/
	SubscriptionName string

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

DeleteSubscriptionParams contains all the parameters to send to the API endpoint for the delete subscription operation typically these are written to a http.Request

func NewDeleteSubscriptionParams

func NewDeleteSubscriptionParams() *DeleteSubscriptionParams

NewDeleteSubscriptionParams creates a new DeleteSubscriptionParams object with the default values initialized.

func NewDeleteSubscriptionParamsWithContext

func NewDeleteSubscriptionParamsWithContext(ctx context.Context) *DeleteSubscriptionParams

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

func NewDeleteSubscriptionParamsWithHTTPClient

func NewDeleteSubscriptionParamsWithHTTPClient(client *http.Client) *DeleteSubscriptionParams

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

func NewDeleteSubscriptionParamsWithTimeout

func NewDeleteSubscriptionParamsWithTimeout(timeout time.Duration) *DeleteSubscriptionParams

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

func (*DeleteSubscriptionParams) SetContext

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

SetContext adds the context to the delete subscription params

func (*DeleteSubscriptionParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete subscription params

func (*DeleteSubscriptionParams) SetSubscriptionName

func (o *DeleteSubscriptionParams) SetSubscriptionName(subscriptionName string)

SetSubscriptionName adds the subscriptionName to the delete subscription params

func (*DeleteSubscriptionParams) SetTimeout

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

SetTimeout adds the timeout to the delete subscription params

func (*DeleteSubscriptionParams) WithContext

WithContext adds the context to the delete subscription params

func (*DeleteSubscriptionParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the delete subscription params

func (*DeleteSubscriptionParams) WithSubscriptionName

func (o *DeleteSubscriptionParams) WithSubscriptionName(subscriptionName string) *DeleteSubscriptionParams

WithSubscriptionName adds the subscriptionName to the delete subscription params

func (*DeleteSubscriptionParams) WithTimeout

WithTimeout adds the timeout to the delete subscription params

func (*DeleteSubscriptionParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type DeleteSubscriptionReader

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

DeleteSubscriptionReader is a Reader for the DeleteSubscription structure.

func (*DeleteSubscriptionReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetSubscriptionBadRequest

type GetSubscriptionBadRequest struct {
	Payload *models.Error
}

GetSubscriptionBadRequest handles this case with default header values.

Invalid Name supplied

func NewGetSubscriptionBadRequest

func NewGetSubscriptionBadRequest() *GetSubscriptionBadRequest

NewGetSubscriptionBadRequest creates a GetSubscriptionBadRequest with default headers values

func (*GetSubscriptionBadRequest) Error

func (o *GetSubscriptionBadRequest) Error() string

type GetSubscriptionDefault

type GetSubscriptionDefault struct {
	Payload *models.Error
	// contains filtered or unexported fields
}

GetSubscriptionDefault handles this case with default header values.

Unknown error

func NewGetSubscriptionDefault

func NewGetSubscriptionDefault(code int) *GetSubscriptionDefault

NewGetSubscriptionDefault creates a GetSubscriptionDefault with default headers values

func (*GetSubscriptionDefault) Code

func (o *GetSubscriptionDefault) Code() int

Code gets the status code for the get subscription default response

func (*GetSubscriptionDefault) Error

func (o *GetSubscriptionDefault) Error() string

type GetSubscriptionInternalServerError

type GetSubscriptionInternalServerError struct {
	Payload *models.Error
}

GetSubscriptionInternalServerError handles this case with default header values.

Internal server error

func NewGetSubscriptionInternalServerError

func NewGetSubscriptionInternalServerError() *GetSubscriptionInternalServerError

NewGetSubscriptionInternalServerError creates a GetSubscriptionInternalServerError with default headers values

func (*GetSubscriptionInternalServerError) Error

type GetSubscriptionNotFound

type GetSubscriptionNotFound struct {
	Payload *models.Error
}

GetSubscriptionNotFound handles this case with default header values.

Subscription not found

func NewGetSubscriptionNotFound

func NewGetSubscriptionNotFound() *GetSubscriptionNotFound

NewGetSubscriptionNotFound creates a GetSubscriptionNotFound with default headers values

func (*GetSubscriptionNotFound) Error

func (o *GetSubscriptionNotFound) Error() string

type GetSubscriptionOK

type GetSubscriptionOK struct {
	Payload *models.Subscription
}

GetSubscriptionOK handles this case with default header values.

Successful operation

func NewGetSubscriptionOK

func NewGetSubscriptionOK() *GetSubscriptionOK

NewGetSubscriptionOK creates a GetSubscriptionOK with default headers values

func (*GetSubscriptionOK) Error

func (o *GetSubscriptionOK) Error() string

type GetSubscriptionParams

type GetSubscriptionParams struct {

	/*SubscriptionName
	  Name of the subscription to work on

	*/
	SubscriptionName string

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

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

func NewGetSubscriptionParams

func NewGetSubscriptionParams() *GetSubscriptionParams

NewGetSubscriptionParams creates a new GetSubscriptionParams object with the default values initialized.

func NewGetSubscriptionParamsWithContext

func NewGetSubscriptionParamsWithContext(ctx context.Context) *GetSubscriptionParams

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

func NewGetSubscriptionParamsWithHTTPClient

func NewGetSubscriptionParamsWithHTTPClient(client *http.Client) *GetSubscriptionParams

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

func NewGetSubscriptionParamsWithTimeout

func NewGetSubscriptionParamsWithTimeout(timeout time.Duration) *GetSubscriptionParams

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

func (*GetSubscriptionParams) SetContext

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

SetContext adds the context to the get subscription params

func (*GetSubscriptionParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get subscription params

func (*GetSubscriptionParams) SetSubscriptionName

func (o *GetSubscriptionParams) SetSubscriptionName(subscriptionName string)

SetSubscriptionName adds the subscriptionName to the get subscription params

func (*GetSubscriptionParams) SetTimeout

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

SetTimeout adds the timeout to the get subscription params

func (*GetSubscriptionParams) WithContext

WithContext adds the context to the get subscription params

func (*GetSubscriptionParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get subscription params

func (*GetSubscriptionParams) WithSubscriptionName

func (o *GetSubscriptionParams) WithSubscriptionName(subscriptionName string) *GetSubscriptionParams

WithSubscriptionName adds the subscriptionName to the get subscription params

func (*GetSubscriptionParams) WithTimeout

func (o *GetSubscriptionParams) WithTimeout(timeout time.Duration) *GetSubscriptionParams

WithTimeout adds the timeout to the get subscription params

func (*GetSubscriptionParams) WriteToRequest

func (o *GetSubscriptionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type GetSubscriptionReader

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

GetSubscriptionReader is a Reader for the GetSubscription structure.

func (*GetSubscriptionReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetSubscriptionsDefault

type GetSubscriptionsDefault struct {
	Payload *models.Error
	// contains filtered or unexported fields
}

GetSubscriptionsDefault handles this case with default header values.

Unknown error

func NewGetSubscriptionsDefault

func NewGetSubscriptionsDefault(code int) *GetSubscriptionsDefault

NewGetSubscriptionsDefault creates a GetSubscriptionsDefault with default headers values

func (*GetSubscriptionsDefault) Code

func (o *GetSubscriptionsDefault) Code() int

Code gets the status code for the get subscriptions default response

func (*GetSubscriptionsDefault) Error

func (o *GetSubscriptionsDefault) Error() string

type GetSubscriptionsInternalServerError

type GetSubscriptionsInternalServerError struct {
	Payload *models.Error
}

GetSubscriptionsInternalServerError handles this case with default header values.

Internal server error

func NewGetSubscriptionsInternalServerError

func NewGetSubscriptionsInternalServerError() *GetSubscriptionsInternalServerError

NewGetSubscriptionsInternalServerError creates a GetSubscriptionsInternalServerError with default headers values

func (*GetSubscriptionsInternalServerError) Error

type GetSubscriptionsOK

type GetSubscriptionsOK struct {
	Payload models.GetSubscriptionsOKBody
}

GetSubscriptionsOK handles this case with default header values.

Successful operation

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 {

	/*Tags
	  Filter on subscription tags

	*/
	Tags []string

	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) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get subscriptions params

func (*GetSubscriptionsParams) SetTags

func (o *GetSubscriptionsParams) SetTags(tags []string)

SetTags adds the tags 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) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get subscriptions params

func (*GetSubscriptionsParams) WithTags

WithTags adds the tags 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.

Jump to

Keyboard shortcuts

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