Help us shape the future of Go! Take the 2026 Go Developer Survey

subscriptions

package
v0.1.24 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2018 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 *v1.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 AddSubscriptionConflict added in v0.1.13

type AddSubscriptionConflict struct {
	Payload *v1.Error
}

AddSubscriptionConflict handles this case with default header values.

Already Exists

func NewAddSubscriptionConflict added in v0.1.13

func NewAddSubscriptionConflict() *AddSubscriptionConflict

NewAddSubscriptionConflict creates a AddSubscriptionConflict with default headers values

func (*AddSubscriptionConflict) Error added in v0.1.13

func (o *AddSubscriptionConflict) Error() string

type AddSubscriptionCreated

type AddSubscriptionCreated struct {
	Payload *v1.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 *v1.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 AddSubscriptionForbidden added in v0.1.18

type AddSubscriptionForbidden struct {
	Payload *v1.Error
}

AddSubscriptionForbidden handles this case with default header values.

access to this resource is forbidden

func NewAddSubscriptionForbidden added in v0.1.18

func NewAddSubscriptionForbidden() *AddSubscriptionForbidden

NewAddSubscriptionForbidden creates a AddSubscriptionForbidden with default headers values

func (*AddSubscriptionForbidden) Error added in v0.1.18

func (o *AddSubscriptionForbidden) Error() string

type AddSubscriptionParams

type AddSubscriptionParams struct {

	/*XDispatchOrg*/
	XDispatchOrg string
	/*Body
	  subscription object

	*/
	Body *v1.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 *v1.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) SetXDispatchOrg added in v0.1.16

func (o *AddSubscriptionParams) SetXDispatchOrg(xDispatchOrg string)

SetXDispatchOrg adds the xDispatchOrg to the add subscription params

func (*AddSubscriptionParams) WithBody

func (o *AddSubscriptionParams) WithBody(body *v1.Subscription) *AddSubscriptionParams

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) WithXDispatchOrg added in v0.1.16

func (o *AddSubscriptionParams) WithXDispatchOrg(xDispatchOrg string) *AddSubscriptionParams

WithXDispatchOrg adds the xDispatchOrg 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 *v1.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

func (*Client) UpdateSubscription added in v0.1.13

func (a *Client) UpdateSubscription(params *UpdateSubscriptionParams, authInfo runtime.ClientAuthInfoWriter) (*UpdateSubscriptionOK, error)

UpdateSubscription updates subscription by name

Updates a single subscription

type DeleteSubscriptionBadRequest

type DeleteSubscriptionBadRequest struct {
	Payload *v1.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 *v1.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 DeleteSubscriptionForbidden added in v0.1.18

type DeleteSubscriptionForbidden struct {
	Payload *v1.Error
}

DeleteSubscriptionForbidden handles this case with default header values.

access to this resource is forbidden

func NewDeleteSubscriptionForbidden added in v0.1.18

func NewDeleteSubscriptionForbidden() *DeleteSubscriptionForbidden

NewDeleteSubscriptionForbidden creates a DeleteSubscriptionForbidden with default headers values

func (*DeleteSubscriptionForbidden) Error added in v0.1.18

type DeleteSubscriptionNotFound

type DeleteSubscriptionNotFound struct {
	Payload *v1.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 *v1.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 {

	/*XDispatchOrg*/
	XDispatchOrg string
	/*SubscriptionName
	  Name of the subscription to work on

	*/
	SubscriptionName string
	/*Tags
	  Filter based on tags

	*/
	Tags []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) SetTags added in v0.1.13

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

SetTags adds the tags 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) SetXDispatchOrg added in v0.1.16

func (o *DeleteSubscriptionParams) SetXDispatchOrg(xDispatchOrg string)

SetXDispatchOrg adds the xDispatchOrg 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) WithTags added in v0.1.13

WithTags adds the tags to the delete subscription params

func (*DeleteSubscriptionParams) WithTimeout

WithTimeout adds the timeout to the delete subscription params

func (*DeleteSubscriptionParams) WithXDispatchOrg added in v0.1.16

func (o *DeleteSubscriptionParams) WithXDispatchOrg(xDispatchOrg string) *DeleteSubscriptionParams

WithXDispatchOrg adds the xDispatchOrg 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 DeleteSubscriptionUnauthorized added in v0.1.18

type DeleteSubscriptionUnauthorized struct {
	Payload *v1.Error
}

DeleteSubscriptionUnauthorized handles this case with default header values.

Unauthorized Request

func NewDeleteSubscriptionUnauthorized added in v0.1.18

func NewDeleteSubscriptionUnauthorized() *DeleteSubscriptionUnauthorized

NewDeleteSubscriptionUnauthorized creates a DeleteSubscriptionUnauthorized with default headers values

func (*DeleteSubscriptionUnauthorized) Error added in v0.1.18

type GetSubscriptionBadRequest

type GetSubscriptionBadRequest struct {
	Payload *v1.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 *v1.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 GetSubscriptionForbidden added in v0.1.18

type GetSubscriptionForbidden struct {
	Payload *v1.Error
}

GetSubscriptionForbidden handles this case with default header values.

access to this resource is forbidden

func NewGetSubscriptionForbidden added in v0.1.18

func NewGetSubscriptionForbidden() *GetSubscriptionForbidden

NewGetSubscriptionForbidden creates a GetSubscriptionForbidden with default headers values

func (*GetSubscriptionForbidden) Error added in v0.1.18

func (o *GetSubscriptionForbidden) Error() string

type GetSubscriptionNotFound

type GetSubscriptionNotFound struct {
	Payload *v1.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 *v1.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 {

	/*XDispatchOrg*/
	XDispatchOrg string
	/*SubscriptionName
	  Name of the subscription to work on

	*/
	SubscriptionName string
	/*Tags
	  Filter based on tags

	*/
	Tags []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) SetTags added in v0.1.13

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

SetTags adds the tags 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) SetXDispatchOrg added in v0.1.16

func (o *GetSubscriptionParams) SetXDispatchOrg(xDispatchOrg string)

SetXDispatchOrg adds the xDispatchOrg 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) WithTags added in v0.1.13

func (o *GetSubscriptionParams) WithTags(tags []string) *GetSubscriptionParams

WithTags adds the tags 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) WithXDispatchOrg added in v0.1.16

func (o *GetSubscriptionParams) WithXDispatchOrg(xDispatchOrg string) *GetSubscriptionParams

WithXDispatchOrg adds the xDispatchOrg 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 GetSubscriptionUnauthorized added in v0.1.18

type GetSubscriptionUnauthorized struct {
	Payload *v1.Error
}

GetSubscriptionUnauthorized handles this case with default header values.

Unauthorized Request

func NewGetSubscriptionUnauthorized added in v0.1.18

func NewGetSubscriptionUnauthorized() *GetSubscriptionUnauthorized

NewGetSubscriptionUnauthorized creates a GetSubscriptionUnauthorized with default headers values

func (*GetSubscriptionUnauthorized) Error added in v0.1.18

type GetSubscriptionsBadRequest added in v0.1.13

type GetSubscriptionsBadRequest struct {
	Payload *v1.Error
}

GetSubscriptionsBadRequest handles this case with default header values.

Bad Request

func NewGetSubscriptionsBadRequest added in v0.1.13

func NewGetSubscriptionsBadRequest() *GetSubscriptionsBadRequest

NewGetSubscriptionsBadRequest creates a GetSubscriptionsBadRequest with default headers values

func (*GetSubscriptionsBadRequest) Error added in v0.1.13

type GetSubscriptionsDefault

type GetSubscriptionsDefault struct {
	Payload *v1.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 GetSubscriptionsForbidden added in v0.1.18

type GetSubscriptionsForbidden struct {
	Payload *v1.Error
}

GetSubscriptionsForbidden handles this case with default header values.

access to this resource is forbidden

func NewGetSubscriptionsForbidden added in v0.1.18

func NewGetSubscriptionsForbidden() *GetSubscriptionsForbidden

NewGetSubscriptionsForbidden creates a GetSubscriptionsForbidden with default headers values

func (*GetSubscriptionsForbidden) Error added in v0.1.18

func (o *GetSubscriptionsForbidden) Error() string

type GetSubscriptionsOK

type GetSubscriptionsOK struct {
	Payload []*v1.Subscription
}

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 {

	/*XDispatchOrg*/
	XDispatchOrg string
	/*Tags
	  Filter based on 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) SetXDispatchOrg added in v0.1.16

func (o *GetSubscriptionsParams) SetXDispatchOrg(xDispatchOrg string)

SetXDispatchOrg adds the xDispatchOrg 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) WithXDispatchOrg added in v0.1.16

func (o *GetSubscriptionsParams) WithXDispatchOrg(xDispatchOrg string) *GetSubscriptionsParams

WithXDispatchOrg adds the xDispatchOrg 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 GetSubscriptionsUnauthorized added in v0.1.18

type GetSubscriptionsUnauthorized struct {
	Payload *v1.Error
}

GetSubscriptionsUnauthorized handles this case with default header values.

Unauthorized Request

func NewGetSubscriptionsUnauthorized added in v0.1.18

func NewGetSubscriptionsUnauthorized() *GetSubscriptionsUnauthorized

NewGetSubscriptionsUnauthorized creates a GetSubscriptionsUnauthorized with default headers values

func (*GetSubscriptionsUnauthorized) Error added in v0.1.18

type UpdateSubscriptionBadRequest added in v0.1.13

type UpdateSubscriptionBadRequest struct {
	Payload *v1.Error
}

UpdateSubscriptionBadRequest handles this case with default header values.

Invalid Name supplied

func NewUpdateSubscriptionBadRequest added in v0.1.13

func NewUpdateSubscriptionBadRequest() *UpdateSubscriptionBadRequest

NewUpdateSubscriptionBadRequest creates a UpdateSubscriptionBadRequest with default headers values

func (*UpdateSubscriptionBadRequest) Error added in v0.1.13

type UpdateSubscriptionDefault added in v0.1.13

type UpdateSubscriptionDefault struct {
	Payload *v1.Error
	// contains filtered or unexported fields
}

UpdateSubscriptionDefault handles this case with default header values.

Unknown error

func NewUpdateSubscriptionDefault added in v0.1.13

func NewUpdateSubscriptionDefault(code int) *UpdateSubscriptionDefault

NewUpdateSubscriptionDefault creates a UpdateSubscriptionDefault with default headers values

func (*UpdateSubscriptionDefault) Code added in v0.1.13

func (o *UpdateSubscriptionDefault) Code() int

Code gets the status code for the update subscription default response

func (*UpdateSubscriptionDefault) Error added in v0.1.13

func (o *UpdateSubscriptionDefault) Error() string

type UpdateSubscriptionForbidden added in v0.1.18

type UpdateSubscriptionForbidden struct {
	Payload *v1.Error
}

UpdateSubscriptionForbidden handles this case with default header values.

access to this resource is forbidden

func NewUpdateSubscriptionForbidden added in v0.1.18

func NewUpdateSubscriptionForbidden() *UpdateSubscriptionForbidden

NewUpdateSubscriptionForbidden creates a UpdateSubscriptionForbidden with default headers values

func (*UpdateSubscriptionForbidden) Error added in v0.1.18

type UpdateSubscriptionNotFound added in v0.1.13

type UpdateSubscriptionNotFound struct {
	Payload *v1.Error
}

UpdateSubscriptionNotFound handles this case with default header values.

Subscription not found

func NewUpdateSubscriptionNotFound added in v0.1.13

func NewUpdateSubscriptionNotFound() *UpdateSubscriptionNotFound

NewUpdateSubscriptionNotFound creates a UpdateSubscriptionNotFound with default headers values

func (*UpdateSubscriptionNotFound) Error added in v0.1.13

type UpdateSubscriptionOK added in v0.1.13

type UpdateSubscriptionOK struct {
	Payload *v1.Subscription
}

UpdateSubscriptionOK handles this case with default header values.

Successful operation

func NewUpdateSubscriptionOK added in v0.1.13

func NewUpdateSubscriptionOK() *UpdateSubscriptionOK

NewUpdateSubscriptionOK creates a UpdateSubscriptionOK with default headers values

func (*UpdateSubscriptionOK) Error added in v0.1.13

func (o *UpdateSubscriptionOK) Error() string

type UpdateSubscriptionParams added in v0.1.13

type UpdateSubscriptionParams struct {

	/*XDispatchOrg*/
	XDispatchOrg string
	/*Body
	  subscription object

	*/
	Body *v1.Subscription
	/*SubscriptionName
	  Name of the subscription to work on

	*/
	SubscriptionName string
	/*Tags
	  Filter based on tags

	*/
	Tags []string

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

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

func NewUpdateSubscriptionParams added in v0.1.13

func NewUpdateSubscriptionParams() *UpdateSubscriptionParams

NewUpdateSubscriptionParams creates a new UpdateSubscriptionParams object with the default values initialized.

func NewUpdateSubscriptionParamsWithContext added in v0.1.13

func NewUpdateSubscriptionParamsWithContext(ctx context.Context) *UpdateSubscriptionParams

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

func NewUpdateSubscriptionParamsWithHTTPClient added in v0.1.13

func NewUpdateSubscriptionParamsWithHTTPClient(client *http.Client) *UpdateSubscriptionParams

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

func NewUpdateSubscriptionParamsWithTimeout added in v0.1.13

func NewUpdateSubscriptionParamsWithTimeout(timeout time.Duration) *UpdateSubscriptionParams

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

func (*UpdateSubscriptionParams) SetBody added in v0.1.13

func (o *UpdateSubscriptionParams) SetBody(body *v1.Subscription)

SetBody adds the body to the update subscription params

func (*UpdateSubscriptionParams) SetContext added in v0.1.13

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

SetContext adds the context to the update subscription params

func (*UpdateSubscriptionParams) SetHTTPClient added in v0.1.13

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

SetHTTPClient adds the HTTPClient to the update subscription params

func (*UpdateSubscriptionParams) SetSubscriptionName added in v0.1.13

func (o *UpdateSubscriptionParams) SetSubscriptionName(subscriptionName string)

SetSubscriptionName adds the subscriptionName to the update subscription params

func (*UpdateSubscriptionParams) SetTags added in v0.1.13

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

SetTags adds the tags to the update subscription params

func (*UpdateSubscriptionParams) SetTimeout added in v0.1.13

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

SetTimeout adds the timeout to the update subscription params

func (*UpdateSubscriptionParams) SetXDispatchOrg added in v0.1.16

func (o *UpdateSubscriptionParams) SetXDispatchOrg(xDispatchOrg string)

SetXDispatchOrg adds the xDispatchOrg to the update subscription params

func (*UpdateSubscriptionParams) WithBody added in v0.1.13

func (o *UpdateSubscriptionParams) WithBody(body *v1.Subscription) *UpdateSubscriptionParams

WithBody adds the body to the update subscription params

func (*UpdateSubscriptionParams) WithContext added in v0.1.13

WithContext adds the context to the update subscription params

func (*UpdateSubscriptionParams) WithHTTPClient added in v0.1.13

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

WithHTTPClient adds the HTTPClient to the update subscription params

func (*UpdateSubscriptionParams) WithSubscriptionName added in v0.1.13

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

WithSubscriptionName adds the subscriptionName to the update subscription params

func (*UpdateSubscriptionParams) WithTags added in v0.1.13

WithTags adds the tags to the update subscription params

func (*UpdateSubscriptionParams) WithTimeout added in v0.1.13

WithTimeout adds the timeout to the update subscription params

func (*UpdateSubscriptionParams) WithXDispatchOrg added in v0.1.16

func (o *UpdateSubscriptionParams) WithXDispatchOrg(xDispatchOrg string) *UpdateSubscriptionParams

WithXDispatchOrg adds the xDispatchOrg to the update subscription params

func (*UpdateSubscriptionParams) WriteToRequest added in v0.1.13

WriteToRequest writes these params to a swagger request

type UpdateSubscriptionReader added in v0.1.13

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

UpdateSubscriptionReader is a Reader for the UpdateSubscription structure.

func (*UpdateSubscriptionReader) ReadResponse added in v0.1.13

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

ReadResponse reads a server response into the received o.

type UpdateSubscriptionUnauthorized added in v0.1.18

type UpdateSubscriptionUnauthorized struct {
	Payload *v1.Error
}

UpdateSubscriptionUnauthorized handles this case with default header values.

Unauthorized Request

func NewUpdateSubscriptionUnauthorized added in v0.1.18

func NewUpdateSubscriptionUnauthorized() *UpdateSubscriptionUnauthorized

NewUpdateSubscriptionUnauthorized creates a UpdateSubscriptionUnauthorized with default headers values

func (*UpdateSubscriptionUnauthorized) Error added in v0.1.18

Jump to

Keyboard shortcuts

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