subscriptions

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2018 License: Apache-2.0 Imports: 10 Imported by: 4

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

func (a *Client) DeleteAllSubscriptions(params *DeleteAllSubscriptionsParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteAllSubscriptionsOK, error)

DeleteAllSubscriptions deletes all of an installed app s subscriptions

Delete all subscriptions for the installed app.

func (*Client) DeleteSubscription

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

DeleteSubscription deletes an installed app s subscription

Delete a specific subscription for the installed app.

func (*Client) GetSubscription

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

GetSubscription gets an installed app s subscription

Get a specific subscription for the installed app.

func (*Client) ListSubscriptions

func (a *Client) ListSubscriptions(params *ListSubscriptionsParams, authInfo runtime.ClientAuthInfoWriter) (*ListSubscriptionsOK, error)

ListSubscriptions lists an installed app s subscriptions

List the subscriptions for the installed app.

func (*Client) SaveSubscription

func (a *Client) SaveSubscription(params *SaveSubscriptionParams, authInfo runtime.ClientAuthInfoWriter) (*SaveSubscriptionOK, error)

SaveSubscription creates a subscription for an installed app

Create a subscription to a type of event from the specified source. Both the source and the installed app must be in the location specified and the installed app must have read access to the event being subscribed to.

### Authorization scopes For installed app principal: * installed app id matches the incoming request installed app id * if the subscription is a device subscription then there must be a `r:devices:$deviceId` scope * if it is a capability subscription then the location must match the installed app location, and there must be a `r:devices:*:$capability` or `r:devices:*` scope

For user token: * user must have ability to read the installed app * if the subscription is a device subscription then the user must be able to access the device * if it is a capability subscription then the location must match the installed apps location

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type DeleteAllSubscriptionsBadRequest

type DeleteAllSubscriptionsBadRequest struct {
	Payload *models.ErrorResponse
}

DeleteAllSubscriptionsBadRequest handles this case with default header values.

Bad request

func NewDeleteAllSubscriptionsBadRequest

func NewDeleteAllSubscriptionsBadRequest() *DeleteAllSubscriptionsBadRequest

NewDeleteAllSubscriptionsBadRequest creates a DeleteAllSubscriptionsBadRequest with default headers values

func (*DeleteAllSubscriptionsBadRequest) Error

type DeleteAllSubscriptionsDefault

type DeleteAllSubscriptionsDefault struct {
	Payload *models.ErrorResponse
	// contains filtered or unexported fields
}

DeleteAllSubscriptionsDefault handles this case with default header values.

Unexpected error

func NewDeleteAllSubscriptionsDefault

func NewDeleteAllSubscriptionsDefault(code int) *DeleteAllSubscriptionsDefault

NewDeleteAllSubscriptionsDefault creates a DeleteAllSubscriptionsDefault with default headers values

func (*DeleteAllSubscriptionsDefault) Code

Code gets the status code for the delete all subscriptions default response

func (*DeleteAllSubscriptionsDefault) Error

type DeleteAllSubscriptionsForbidden

type DeleteAllSubscriptionsForbidden struct {
}

DeleteAllSubscriptionsForbidden handles this case with default header values.

Not authorized

func NewDeleteAllSubscriptionsForbidden

func NewDeleteAllSubscriptionsForbidden() *DeleteAllSubscriptionsForbidden

NewDeleteAllSubscriptionsForbidden creates a DeleteAllSubscriptionsForbidden with default headers values

func (*DeleteAllSubscriptionsForbidden) Error

type DeleteAllSubscriptionsOK

type DeleteAllSubscriptionsOK struct {
	Payload *models.SubscriptionDelete
}

DeleteAllSubscriptionsOK handles this case with default header values.

Successfully deleted

func NewDeleteAllSubscriptionsOK

func NewDeleteAllSubscriptionsOK() *DeleteAllSubscriptionsOK

NewDeleteAllSubscriptionsOK creates a DeleteAllSubscriptionsOK with default headers values

func (*DeleteAllSubscriptionsOK) Error

func (o *DeleteAllSubscriptionsOK) Error() string

type DeleteAllSubscriptionsParams

type DeleteAllSubscriptionsParams struct {

	/*Authorization
	  OAuth token

	*/
	Authorization string
	/*DeviceID
	  Limit deletion to subscriptions for a particular device.

	*/
	DeviceID *string
	/*InstalledAppID
	  The ID of the installed application.

	*/
	InstalledAppID string

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

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

func NewDeleteAllSubscriptionsParams

func NewDeleteAllSubscriptionsParams() *DeleteAllSubscriptionsParams

NewDeleteAllSubscriptionsParams creates a new DeleteAllSubscriptionsParams object with the default values initialized.

func NewDeleteAllSubscriptionsParamsWithContext

func NewDeleteAllSubscriptionsParamsWithContext(ctx context.Context) *DeleteAllSubscriptionsParams

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

func NewDeleteAllSubscriptionsParamsWithHTTPClient

func NewDeleteAllSubscriptionsParamsWithHTTPClient(client *http.Client) *DeleteAllSubscriptionsParams

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

func NewDeleteAllSubscriptionsParamsWithTimeout

func NewDeleteAllSubscriptionsParamsWithTimeout(timeout time.Duration) *DeleteAllSubscriptionsParams

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

func (*DeleteAllSubscriptionsParams) SetAuthorization

func (o *DeleteAllSubscriptionsParams) SetAuthorization(authorization string)

SetAuthorization adds the authorization to the delete all subscriptions params

func (*DeleteAllSubscriptionsParams) SetContext

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

SetContext adds the context to the delete all subscriptions params

func (*DeleteAllSubscriptionsParams) SetDeviceID

func (o *DeleteAllSubscriptionsParams) SetDeviceID(deviceID *string)

SetDeviceID adds the deviceId to the delete all subscriptions params

func (*DeleteAllSubscriptionsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete all subscriptions params

func (*DeleteAllSubscriptionsParams) SetInstalledAppID

func (o *DeleteAllSubscriptionsParams) SetInstalledAppID(installedAppID string)

SetInstalledAppID adds the installedAppId to the delete all subscriptions params

func (*DeleteAllSubscriptionsParams) SetTimeout

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

SetTimeout adds the timeout to the delete all subscriptions params

func (*DeleteAllSubscriptionsParams) WithAuthorization

func (o *DeleteAllSubscriptionsParams) WithAuthorization(authorization string) *DeleteAllSubscriptionsParams

WithAuthorization adds the authorization to the delete all subscriptions params

func (*DeleteAllSubscriptionsParams) WithContext

WithContext adds the context to the delete all subscriptions params

func (*DeleteAllSubscriptionsParams) WithDeviceID

WithDeviceID adds the deviceID to the delete all subscriptions params

func (*DeleteAllSubscriptionsParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the delete all subscriptions params

func (*DeleteAllSubscriptionsParams) WithInstalledAppID

func (o *DeleteAllSubscriptionsParams) WithInstalledAppID(installedAppID string) *DeleteAllSubscriptionsParams

WithInstalledAppID adds the installedAppID to the delete all subscriptions params

func (*DeleteAllSubscriptionsParams) WithTimeout

WithTimeout adds the timeout to the delete all subscriptions params

func (*DeleteAllSubscriptionsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type DeleteAllSubscriptionsReader

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

DeleteAllSubscriptionsReader is a Reader for the DeleteAllSubscriptions structure.

func (*DeleteAllSubscriptionsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DeleteAllSubscriptionsTooManyRequests

type DeleteAllSubscriptionsTooManyRequests struct {
	Payload *models.ErrorResponse
}

DeleteAllSubscriptionsTooManyRequests handles this case with default header values.

Too many requests

func NewDeleteAllSubscriptionsTooManyRequests

func NewDeleteAllSubscriptionsTooManyRequests() *DeleteAllSubscriptionsTooManyRequests

NewDeleteAllSubscriptionsTooManyRequests creates a DeleteAllSubscriptionsTooManyRequests with default headers values

func (*DeleteAllSubscriptionsTooManyRequests) Error

type DeleteAllSubscriptionsUnauthorized

type DeleteAllSubscriptionsUnauthorized struct {
}

DeleteAllSubscriptionsUnauthorized handles this case with default header values.

Not authenticated

func NewDeleteAllSubscriptionsUnauthorized

func NewDeleteAllSubscriptionsUnauthorized() *DeleteAllSubscriptionsUnauthorized

NewDeleteAllSubscriptionsUnauthorized creates a DeleteAllSubscriptionsUnauthorized with default headers values

func (*DeleteAllSubscriptionsUnauthorized) Error

type DeleteSubscriptionBadRequest

type DeleteSubscriptionBadRequest struct {
	Payload *models.ErrorResponse
}

DeleteSubscriptionBadRequest handles this case with default header values.

Bad request

func NewDeleteSubscriptionBadRequest

func NewDeleteSubscriptionBadRequest() *DeleteSubscriptionBadRequest

NewDeleteSubscriptionBadRequest creates a DeleteSubscriptionBadRequest with default headers values

func (*DeleteSubscriptionBadRequest) Error

type DeleteSubscriptionDefault

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

DeleteSubscriptionDefault handles this case with default header values.

Unexpected error

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

type DeleteSubscriptionForbidden struct {
}

DeleteSubscriptionForbidden handles this case with default header values.

Not authorized

func NewDeleteSubscriptionForbidden

func NewDeleteSubscriptionForbidden() *DeleteSubscriptionForbidden

NewDeleteSubscriptionForbidden creates a DeleteSubscriptionForbidden with default headers values

func (*DeleteSubscriptionForbidden) Error

type DeleteSubscriptionOK

type DeleteSubscriptionOK struct {
	Payload *models.SubscriptionDelete
}

DeleteSubscriptionOK handles this case with default header values.

Successfully deleted

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 {

	/*Authorization
	  OAuth token

	*/
	Authorization string
	/*InstalledAppID
	  The ID of the installed application.

	*/
	InstalledAppID string
	/*SubscriptionID
	  The ID of the subscription

	*/
	SubscriptionID 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) SetAuthorization

func (o *DeleteSubscriptionParams) SetAuthorization(authorization string)

SetAuthorization adds the authorization to the delete subscription params

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

func (o *DeleteSubscriptionParams) SetInstalledAppID(installedAppID string)

SetInstalledAppID adds the installedAppId to the delete subscription params

func (*DeleteSubscriptionParams) SetSubscriptionID

func (o *DeleteSubscriptionParams) SetSubscriptionID(subscriptionID string)

SetSubscriptionID adds the subscriptionId 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) WithAuthorization

func (o *DeleteSubscriptionParams) WithAuthorization(authorization string) *DeleteSubscriptionParams

WithAuthorization adds the authorization 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) WithInstalledAppID

func (o *DeleteSubscriptionParams) WithInstalledAppID(installedAppID string) *DeleteSubscriptionParams

WithInstalledAppID adds the installedAppID to the delete subscription params

func (*DeleteSubscriptionParams) WithSubscriptionID

func (o *DeleteSubscriptionParams) WithSubscriptionID(subscriptionID string) *DeleteSubscriptionParams

WithSubscriptionID adds the subscriptionID 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 DeleteSubscriptionTooManyRequests

type DeleteSubscriptionTooManyRequests struct {
	Payload *models.ErrorResponse
}

DeleteSubscriptionTooManyRequests handles this case with default header values.

Too many requests

func NewDeleteSubscriptionTooManyRequests

func NewDeleteSubscriptionTooManyRequests() *DeleteSubscriptionTooManyRequests

NewDeleteSubscriptionTooManyRequests creates a DeleteSubscriptionTooManyRequests with default headers values

func (*DeleteSubscriptionTooManyRequests) Error

type DeleteSubscriptionUnauthorized

type DeleteSubscriptionUnauthorized struct {
}

DeleteSubscriptionUnauthorized handles this case with default header values.

Not authenticated

func NewDeleteSubscriptionUnauthorized

func NewDeleteSubscriptionUnauthorized() *DeleteSubscriptionUnauthorized

NewDeleteSubscriptionUnauthorized creates a DeleteSubscriptionUnauthorized with default headers values

func (*DeleteSubscriptionUnauthorized) Error

type GetSubscriptionBadRequest

type GetSubscriptionBadRequest struct {
	Payload *models.ErrorResponse
}

GetSubscriptionBadRequest handles this case with default header values.

Bad request

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.ErrorResponse
	// contains filtered or unexported fields
}

GetSubscriptionDefault handles this case with default header values.

Unexpected 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

type GetSubscriptionForbidden struct {
}

GetSubscriptionForbidden handles this case with default header values.

Not authorized

func NewGetSubscriptionForbidden

func NewGetSubscriptionForbidden() *GetSubscriptionForbidden

NewGetSubscriptionForbidden creates a GetSubscriptionForbidden with default headers values

func (*GetSubscriptionForbidden) Error

func (o *GetSubscriptionForbidden) Error() string

type GetSubscriptionOK

type GetSubscriptionOK struct {
	Payload *models.Subscription
}

GetSubscriptionOK handles this case with default header values.

The subscription

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 {

	/*Authorization
	  OAuth token

	*/
	Authorization string
	/*InstalledAppID
	  The ID of the installed application.

	*/
	InstalledAppID string
	/*SubscriptionID
	  The ID of the subscription

	*/
	SubscriptionID 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) SetAuthorization

func (o *GetSubscriptionParams) SetAuthorization(authorization string)

SetAuthorization adds the authorization to the get subscription params

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

func (o *GetSubscriptionParams) SetInstalledAppID(installedAppID string)

SetInstalledAppID adds the installedAppId to the get subscription params

func (*GetSubscriptionParams) SetSubscriptionID

func (o *GetSubscriptionParams) SetSubscriptionID(subscriptionID string)

SetSubscriptionID adds the subscriptionId 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) WithAuthorization

func (o *GetSubscriptionParams) WithAuthorization(authorization string) *GetSubscriptionParams

WithAuthorization adds the authorization 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) WithInstalledAppID

func (o *GetSubscriptionParams) WithInstalledAppID(installedAppID string) *GetSubscriptionParams

WithInstalledAppID adds the installedAppID to the get subscription params

func (*GetSubscriptionParams) WithSubscriptionID

func (o *GetSubscriptionParams) WithSubscriptionID(subscriptionID string) *GetSubscriptionParams

WithSubscriptionID adds the subscriptionID 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 GetSubscriptionTooManyRequests

type GetSubscriptionTooManyRequests struct {
	Payload *models.ErrorResponse
}

GetSubscriptionTooManyRequests handles this case with default header values.

Too many requests

func NewGetSubscriptionTooManyRequests

func NewGetSubscriptionTooManyRequests() *GetSubscriptionTooManyRequests

NewGetSubscriptionTooManyRequests creates a GetSubscriptionTooManyRequests with default headers values

func (*GetSubscriptionTooManyRequests) Error

type GetSubscriptionUnauthorized

type GetSubscriptionUnauthorized struct {
}

GetSubscriptionUnauthorized handles this case with default header values.

Not authenticated

func NewGetSubscriptionUnauthorized

func NewGetSubscriptionUnauthorized() *GetSubscriptionUnauthorized

NewGetSubscriptionUnauthorized creates a GetSubscriptionUnauthorized with default headers values

func (*GetSubscriptionUnauthorized) Error

type ListSubscriptionsBadRequest

type ListSubscriptionsBadRequest struct {
	Payload *models.ErrorResponse
}

ListSubscriptionsBadRequest handles this case with default header values.

Bad request

func NewListSubscriptionsBadRequest

func NewListSubscriptionsBadRequest() *ListSubscriptionsBadRequest

NewListSubscriptionsBadRequest creates a ListSubscriptionsBadRequest with default headers values

func (*ListSubscriptionsBadRequest) Error

type ListSubscriptionsDefault

type ListSubscriptionsDefault struct {
	Payload *models.ErrorResponse
	// contains filtered or unexported fields
}

ListSubscriptionsDefault handles this case with default header values.

Unexpected error

func NewListSubscriptionsDefault

func NewListSubscriptionsDefault(code int) *ListSubscriptionsDefault

NewListSubscriptionsDefault creates a ListSubscriptionsDefault with default headers values

func (*ListSubscriptionsDefault) Code

func (o *ListSubscriptionsDefault) Code() int

Code gets the status code for the list subscriptions default response

func (*ListSubscriptionsDefault) Error

func (o *ListSubscriptionsDefault) Error() string

type ListSubscriptionsForbidden

type ListSubscriptionsForbidden struct {
}

ListSubscriptionsForbidden handles this case with default header values.

Not authorized

func NewListSubscriptionsForbidden

func NewListSubscriptionsForbidden() *ListSubscriptionsForbidden

NewListSubscriptionsForbidden creates a ListSubscriptionsForbidden with default headers values

func (*ListSubscriptionsForbidden) Error

type ListSubscriptionsOK

type ListSubscriptionsOK struct {
	Payload *models.PagedSubscriptions
}

ListSubscriptionsOK handles this case with default header values.

An array of subscriptions

func NewListSubscriptionsOK

func NewListSubscriptionsOK() *ListSubscriptionsOK

NewListSubscriptionsOK creates a ListSubscriptionsOK with default headers values

func (*ListSubscriptionsOK) Error

func (o *ListSubscriptionsOK) Error() string

type ListSubscriptionsParams

type ListSubscriptionsParams struct {

	/*Authorization
	  OAuth token

	*/
	Authorization string
	/*InstalledAppID
	  The ID of the installed application.

	*/
	InstalledAppID string

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

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

func NewListSubscriptionsParams

func NewListSubscriptionsParams() *ListSubscriptionsParams

NewListSubscriptionsParams creates a new ListSubscriptionsParams object with the default values initialized.

func NewListSubscriptionsParamsWithContext

func NewListSubscriptionsParamsWithContext(ctx context.Context) *ListSubscriptionsParams

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

func NewListSubscriptionsParamsWithHTTPClient

func NewListSubscriptionsParamsWithHTTPClient(client *http.Client) *ListSubscriptionsParams

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

func NewListSubscriptionsParamsWithTimeout

func NewListSubscriptionsParamsWithTimeout(timeout time.Duration) *ListSubscriptionsParams

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

func (*ListSubscriptionsParams) SetAuthorization

func (o *ListSubscriptionsParams) SetAuthorization(authorization string)

SetAuthorization adds the authorization to the list subscriptions params

func (*ListSubscriptionsParams) SetContext

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

SetContext adds the context to the list subscriptions params

func (*ListSubscriptionsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the list subscriptions params

func (*ListSubscriptionsParams) SetInstalledAppID

func (o *ListSubscriptionsParams) SetInstalledAppID(installedAppID string)

SetInstalledAppID adds the installedAppId to the list subscriptions params

func (*ListSubscriptionsParams) SetTimeout

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

SetTimeout adds the timeout to the list subscriptions params

func (*ListSubscriptionsParams) WithAuthorization

func (o *ListSubscriptionsParams) WithAuthorization(authorization string) *ListSubscriptionsParams

WithAuthorization adds the authorization to the list subscriptions params

func (*ListSubscriptionsParams) WithContext

WithContext adds the context to the list subscriptions params

func (*ListSubscriptionsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the list subscriptions params

func (*ListSubscriptionsParams) WithInstalledAppID

func (o *ListSubscriptionsParams) WithInstalledAppID(installedAppID string) *ListSubscriptionsParams

WithInstalledAppID adds the installedAppID to the list subscriptions params

func (*ListSubscriptionsParams) WithTimeout

WithTimeout adds the timeout to the list subscriptions params

func (*ListSubscriptionsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type ListSubscriptionsReader

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

ListSubscriptionsReader is a Reader for the ListSubscriptions structure.

func (*ListSubscriptionsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ListSubscriptionsTooManyRequests

type ListSubscriptionsTooManyRequests struct {
	Payload *models.ErrorResponse
}

ListSubscriptionsTooManyRequests handles this case with default header values.

Too many requests

func NewListSubscriptionsTooManyRequests

func NewListSubscriptionsTooManyRequests() *ListSubscriptionsTooManyRequests

NewListSubscriptionsTooManyRequests creates a ListSubscriptionsTooManyRequests with default headers values

func (*ListSubscriptionsTooManyRequests) Error

type ListSubscriptionsUnauthorized

type ListSubscriptionsUnauthorized struct {
}

ListSubscriptionsUnauthorized handles this case with default header values.

Not authenticated

func NewListSubscriptionsUnauthorized

func NewListSubscriptionsUnauthorized() *ListSubscriptionsUnauthorized

NewListSubscriptionsUnauthorized creates a ListSubscriptionsUnauthorized with default headers values

func (*ListSubscriptionsUnauthorized) Error

type SaveSubscriptionBadRequest

type SaveSubscriptionBadRequest struct {
	Payload *models.ErrorResponse
}

SaveSubscriptionBadRequest handles this case with default header values.

Bad request

func NewSaveSubscriptionBadRequest

func NewSaveSubscriptionBadRequest() *SaveSubscriptionBadRequest

NewSaveSubscriptionBadRequest creates a SaveSubscriptionBadRequest with default headers values

func (*SaveSubscriptionBadRequest) Error

type SaveSubscriptionConflict

type SaveSubscriptionConflict struct {
	Payload *models.ErrorResponse
}

SaveSubscriptionConflict handles this case with default header values.

Conflict

func NewSaveSubscriptionConflict

func NewSaveSubscriptionConflict() *SaveSubscriptionConflict

NewSaveSubscriptionConflict creates a SaveSubscriptionConflict with default headers values

func (*SaveSubscriptionConflict) Error

func (o *SaveSubscriptionConflict) Error() string

type SaveSubscriptionDefault

type SaveSubscriptionDefault struct {
	Payload *models.ErrorResponse
	// contains filtered or unexported fields
}

SaveSubscriptionDefault handles this case with default header values.

Unexpected error

func NewSaveSubscriptionDefault

func NewSaveSubscriptionDefault(code int) *SaveSubscriptionDefault

NewSaveSubscriptionDefault creates a SaveSubscriptionDefault with default headers values

func (*SaveSubscriptionDefault) Code

func (o *SaveSubscriptionDefault) Code() int

Code gets the status code for the save subscription default response

func (*SaveSubscriptionDefault) Error

func (o *SaveSubscriptionDefault) Error() string

type SaveSubscriptionForbidden

type SaveSubscriptionForbidden struct {
}

SaveSubscriptionForbidden handles this case with default header values.

Not authorized

func NewSaveSubscriptionForbidden

func NewSaveSubscriptionForbidden() *SaveSubscriptionForbidden

NewSaveSubscriptionForbidden creates a SaveSubscriptionForbidden with default headers values

func (*SaveSubscriptionForbidden) Error

func (o *SaveSubscriptionForbidden) Error() string

type SaveSubscriptionOK

type SaveSubscriptionOK struct {
	Payload *models.Subscription
}

SaveSubscriptionOK handles this case with default header values.

The subscription

func NewSaveSubscriptionOK

func NewSaveSubscriptionOK() *SaveSubscriptionOK

NewSaveSubscriptionOK creates a SaveSubscriptionOK with default headers values

func (*SaveSubscriptionOK) Error

func (o *SaveSubscriptionOK) Error() string

type SaveSubscriptionParams

type SaveSubscriptionParams struct {

	/*Authorization
	  OAuth token

	*/
	Authorization string
	/*InstalledAppID
	  The ID of the installed application.

	*/
	InstalledAppID string
	/*Request
	  The Subscription to be created.

	*/
	Request *models.SubscriptionRequest

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

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

func NewSaveSubscriptionParams

func NewSaveSubscriptionParams() *SaveSubscriptionParams

NewSaveSubscriptionParams creates a new SaveSubscriptionParams object with the default values initialized.

func NewSaveSubscriptionParamsWithContext

func NewSaveSubscriptionParamsWithContext(ctx context.Context) *SaveSubscriptionParams

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

func NewSaveSubscriptionParamsWithHTTPClient

func NewSaveSubscriptionParamsWithHTTPClient(client *http.Client) *SaveSubscriptionParams

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

func NewSaveSubscriptionParamsWithTimeout

func NewSaveSubscriptionParamsWithTimeout(timeout time.Duration) *SaveSubscriptionParams

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

func (*SaveSubscriptionParams) SetAuthorization

func (o *SaveSubscriptionParams) SetAuthorization(authorization string)

SetAuthorization adds the authorization to the save subscription params

func (*SaveSubscriptionParams) SetContext

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

SetContext adds the context to the save subscription params

func (*SaveSubscriptionParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the save subscription params

func (*SaveSubscriptionParams) SetInstalledAppID

func (o *SaveSubscriptionParams) SetInstalledAppID(installedAppID string)

SetInstalledAppID adds the installedAppId to the save subscription params

func (*SaveSubscriptionParams) SetRequest

func (o *SaveSubscriptionParams) SetRequest(request *models.SubscriptionRequest)

SetRequest adds the request to the save subscription params

func (*SaveSubscriptionParams) SetTimeout

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

SetTimeout adds the timeout to the save subscription params

func (*SaveSubscriptionParams) WithAuthorization

func (o *SaveSubscriptionParams) WithAuthorization(authorization string) *SaveSubscriptionParams

WithAuthorization adds the authorization to the save subscription params

func (*SaveSubscriptionParams) WithContext

WithContext adds the context to the save subscription params

func (*SaveSubscriptionParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the save subscription params

func (*SaveSubscriptionParams) WithInstalledAppID

func (o *SaveSubscriptionParams) WithInstalledAppID(installedAppID string) *SaveSubscriptionParams

WithInstalledAppID adds the installedAppID to the save subscription params

func (*SaveSubscriptionParams) WithRequest

WithRequest adds the request to the save subscription params

func (*SaveSubscriptionParams) WithTimeout

WithTimeout adds the timeout to the save subscription params

func (*SaveSubscriptionParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type SaveSubscriptionReader

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

SaveSubscriptionReader is a Reader for the SaveSubscription structure.

func (*SaveSubscriptionReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type SaveSubscriptionTooManyRequests

type SaveSubscriptionTooManyRequests struct {
	Payload *models.ErrorResponse
}

SaveSubscriptionTooManyRequests handles this case with default header values.

Too many requests

func NewSaveSubscriptionTooManyRequests

func NewSaveSubscriptionTooManyRequests() *SaveSubscriptionTooManyRequests

NewSaveSubscriptionTooManyRequests creates a SaveSubscriptionTooManyRequests with default headers values

func (*SaveSubscriptionTooManyRequests) Error

type SaveSubscriptionUnauthorized

type SaveSubscriptionUnauthorized struct {
}

SaveSubscriptionUnauthorized handles this case with default header values.

Not authenticated

func NewSaveSubscriptionUnauthorized

func NewSaveSubscriptionUnauthorized() *SaveSubscriptionUnauthorized

NewSaveSubscriptionUnauthorized creates a SaveSubscriptionUnauthorized with default headers values

func (*SaveSubscriptionUnauthorized) Error

type SaveSubscriptionUnprocessableEntity

type SaveSubscriptionUnprocessableEntity struct {
	Payload *models.ErrorResponse
}

SaveSubscriptionUnprocessableEntity handles this case with default header values.

Unprocessable Entity

func NewSaveSubscriptionUnprocessableEntity

func NewSaveSubscriptionUnprocessableEntity() *SaveSubscriptionUnprocessableEntity

NewSaveSubscriptionUnprocessableEntity creates a SaveSubscriptionUnprocessableEntity with default headers values

func (*SaveSubscriptionUnprocessableEntity) Error

Jump to

Keyboard shortcuts

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