Documentation ¶
Index ¶
- type Client
- func (a *Client) DeleteAllSubscriptions(params *DeleteAllSubscriptionsParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteAllSubscriptionsOK, error)
- func (a *Client) DeleteSubscription(params *DeleteSubscriptionParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteSubscriptionOK, error)
- func (a *Client) GetSubscription(params *GetSubscriptionParams, authInfo runtime.ClientAuthInfoWriter) (*GetSubscriptionOK, error)
- func (a *Client) ListSubscriptions(params *ListSubscriptionsParams, authInfo runtime.ClientAuthInfoWriter) (*ListSubscriptionsOK, error)
- func (a *Client) SaveSubscription(params *SaveSubscriptionParams, authInfo runtime.ClientAuthInfoWriter) (*SaveSubscriptionOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type DeleteAllSubscriptionsBadRequest
- type DeleteAllSubscriptionsDefault
- type DeleteAllSubscriptionsForbidden
- type DeleteAllSubscriptionsOK
- type DeleteAllSubscriptionsParams
- func NewDeleteAllSubscriptionsParams() *DeleteAllSubscriptionsParams
- func NewDeleteAllSubscriptionsParamsWithContext(ctx context.Context) *DeleteAllSubscriptionsParams
- func NewDeleteAllSubscriptionsParamsWithHTTPClient(client *http.Client) *DeleteAllSubscriptionsParams
- func NewDeleteAllSubscriptionsParamsWithTimeout(timeout time.Duration) *DeleteAllSubscriptionsParams
- func (o *DeleteAllSubscriptionsParams) SetAuthorization(authorization string)
- func (o *DeleteAllSubscriptionsParams) SetContext(ctx context.Context)
- func (o *DeleteAllSubscriptionsParams) SetDeviceID(deviceID *string)
- func (o *DeleteAllSubscriptionsParams) SetHTTPClient(client *http.Client)
- func (o *DeleteAllSubscriptionsParams) SetInstalledAppID(installedAppID string)
- func (o *DeleteAllSubscriptionsParams) SetTimeout(timeout time.Duration)
- func (o *DeleteAllSubscriptionsParams) WithAuthorization(authorization string) *DeleteAllSubscriptionsParams
- func (o *DeleteAllSubscriptionsParams) WithContext(ctx context.Context) *DeleteAllSubscriptionsParams
- func (o *DeleteAllSubscriptionsParams) WithDeviceID(deviceID *string) *DeleteAllSubscriptionsParams
- func (o *DeleteAllSubscriptionsParams) WithHTTPClient(client *http.Client) *DeleteAllSubscriptionsParams
- func (o *DeleteAllSubscriptionsParams) WithInstalledAppID(installedAppID string) *DeleteAllSubscriptionsParams
- func (o *DeleteAllSubscriptionsParams) WithTimeout(timeout time.Duration) *DeleteAllSubscriptionsParams
- func (o *DeleteAllSubscriptionsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DeleteAllSubscriptionsReader
- type DeleteAllSubscriptionsTooManyRequests
- type DeleteAllSubscriptionsUnauthorized
- type DeleteSubscriptionBadRequest
- type DeleteSubscriptionDefault
- type DeleteSubscriptionForbidden
- type DeleteSubscriptionOK
- type DeleteSubscriptionParams
- func NewDeleteSubscriptionParams() *DeleteSubscriptionParams
- func NewDeleteSubscriptionParamsWithContext(ctx context.Context) *DeleteSubscriptionParams
- func NewDeleteSubscriptionParamsWithHTTPClient(client *http.Client) *DeleteSubscriptionParams
- func NewDeleteSubscriptionParamsWithTimeout(timeout time.Duration) *DeleteSubscriptionParams
- func (o *DeleteSubscriptionParams) SetAuthorization(authorization string)
- func (o *DeleteSubscriptionParams) SetContext(ctx context.Context)
- func (o *DeleteSubscriptionParams) SetHTTPClient(client *http.Client)
- func (o *DeleteSubscriptionParams) SetInstalledAppID(installedAppID string)
- func (o *DeleteSubscriptionParams) SetSubscriptionID(subscriptionID string)
- func (o *DeleteSubscriptionParams) SetTimeout(timeout time.Duration)
- func (o *DeleteSubscriptionParams) WithAuthorization(authorization string) *DeleteSubscriptionParams
- func (o *DeleteSubscriptionParams) WithContext(ctx context.Context) *DeleteSubscriptionParams
- func (o *DeleteSubscriptionParams) WithHTTPClient(client *http.Client) *DeleteSubscriptionParams
- func (o *DeleteSubscriptionParams) WithInstalledAppID(installedAppID string) *DeleteSubscriptionParams
- func (o *DeleteSubscriptionParams) WithSubscriptionID(subscriptionID string) *DeleteSubscriptionParams
- func (o *DeleteSubscriptionParams) WithTimeout(timeout time.Duration) *DeleteSubscriptionParams
- func (o *DeleteSubscriptionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DeleteSubscriptionReader
- type DeleteSubscriptionTooManyRequests
- type DeleteSubscriptionUnauthorized
- type GetSubscriptionBadRequest
- type GetSubscriptionDefault
- type GetSubscriptionForbidden
- type GetSubscriptionOK
- type GetSubscriptionParams
- func NewGetSubscriptionParams() *GetSubscriptionParams
- func NewGetSubscriptionParamsWithContext(ctx context.Context) *GetSubscriptionParams
- func NewGetSubscriptionParamsWithHTTPClient(client *http.Client) *GetSubscriptionParams
- func NewGetSubscriptionParamsWithTimeout(timeout time.Duration) *GetSubscriptionParams
- func (o *GetSubscriptionParams) SetAuthorization(authorization string)
- func (o *GetSubscriptionParams) SetContext(ctx context.Context)
- func (o *GetSubscriptionParams) SetHTTPClient(client *http.Client)
- func (o *GetSubscriptionParams) SetInstalledAppID(installedAppID string)
- func (o *GetSubscriptionParams) SetSubscriptionID(subscriptionID string)
- func (o *GetSubscriptionParams) SetTimeout(timeout time.Duration)
- func (o *GetSubscriptionParams) WithAuthorization(authorization string) *GetSubscriptionParams
- func (o *GetSubscriptionParams) WithContext(ctx context.Context) *GetSubscriptionParams
- func (o *GetSubscriptionParams) WithHTTPClient(client *http.Client) *GetSubscriptionParams
- func (o *GetSubscriptionParams) WithInstalledAppID(installedAppID string) *GetSubscriptionParams
- func (o *GetSubscriptionParams) WithSubscriptionID(subscriptionID string) *GetSubscriptionParams
- func (o *GetSubscriptionParams) WithTimeout(timeout time.Duration) *GetSubscriptionParams
- func (o *GetSubscriptionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetSubscriptionReader
- type GetSubscriptionTooManyRequests
- type GetSubscriptionUnauthorized
- type ListSubscriptionsBadRequest
- type ListSubscriptionsDefault
- type ListSubscriptionsForbidden
- type ListSubscriptionsOK
- type ListSubscriptionsParams
- func NewListSubscriptionsParams() *ListSubscriptionsParams
- func NewListSubscriptionsParamsWithContext(ctx context.Context) *ListSubscriptionsParams
- func NewListSubscriptionsParamsWithHTTPClient(client *http.Client) *ListSubscriptionsParams
- func NewListSubscriptionsParamsWithTimeout(timeout time.Duration) *ListSubscriptionsParams
- func (o *ListSubscriptionsParams) SetAuthorization(authorization string)
- func (o *ListSubscriptionsParams) SetContext(ctx context.Context)
- func (o *ListSubscriptionsParams) SetHTTPClient(client *http.Client)
- func (o *ListSubscriptionsParams) SetInstalledAppID(installedAppID string)
- func (o *ListSubscriptionsParams) SetTimeout(timeout time.Duration)
- func (o *ListSubscriptionsParams) WithAuthorization(authorization string) *ListSubscriptionsParams
- func (o *ListSubscriptionsParams) WithContext(ctx context.Context) *ListSubscriptionsParams
- func (o *ListSubscriptionsParams) WithHTTPClient(client *http.Client) *ListSubscriptionsParams
- func (o *ListSubscriptionsParams) WithInstalledAppID(installedAppID string) *ListSubscriptionsParams
- func (o *ListSubscriptionsParams) WithTimeout(timeout time.Duration) *ListSubscriptionsParams
- func (o *ListSubscriptionsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ListSubscriptionsReader
- type ListSubscriptionsTooManyRequests
- type ListSubscriptionsUnauthorized
- type SaveSubscriptionBadRequest
- type SaveSubscriptionConflict
- type SaveSubscriptionDefault
- type SaveSubscriptionForbidden
- type SaveSubscriptionOK
- type SaveSubscriptionParams
- func NewSaveSubscriptionParams() *SaveSubscriptionParams
- func NewSaveSubscriptionParamsWithContext(ctx context.Context) *SaveSubscriptionParams
- func NewSaveSubscriptionParamsWithHTTPClient(client *http.Client) *SaveSubscriptionParams
- func NewSaveSubscriptionParamsWithTimeout(timeout time.Duration) *SaveSubscriptionParams
- func (o *SaveSubscriptionParams) SetAuthorization(authorization string)
- func (o *SaveSubscriptionParams) SetContext(ctx context.Context)
- func (o *SaveSubscriptionParams) SetHTTPClient(client *http.Client)
- func (o *SaveSubscriptionParams) SetInstalledAppID(installedAppID string)
- func (o *SaveSubscriptionParams) SetRequest(request *models.SubscriptionRequest)
- func (o *SaveSubscriptionParams) SetTimeout(timeout time.Duration)
- func (o *SaveSubscriptionParams) WithAuthorization(authorization string) *SaveSubscriptionParams
- func (o *SaveSubscriptionParams) WithContext(ctx context.Context) *SaveSubscriptionParams
- func (o *SaveSubscriptionParams) WithHTTPClient(client *http.Client) *SaveSubscriptionParams
- func (o *SaveSubscriptionParams) WithInstalledAppID(installedAppID string) *SaveSubscriptionParams
- func (o *SaveSubscriptionParams) WithRequest(request *models.SubscriptionRequest) *SaveSubscriptionParams
- func (o *SaveSubscriptionParams) WithTimeout(timeout time.Duration) *SaveSubscriptionParams
- func (o *SaveSubscriptionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type SaveSubscriptionReader
- type SaveSubscriptionTooManyRequests
- type SaveSubscriptionUnauthorized
- type SaveSubscriptionUnprocessableEntity
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 ¶
func (o *DeleteAllSubscriptionsBadRequest) Error() string
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 ¶
func (o *DeleteAllSubscriptionsDefault) Code() int
Code gets the status code for the delete all subscriptions default response
func (*DeleteAllSubscriptionsDefault) Error ¶
func (o *DeleteAllSubscriptionsDefault) Error() string
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 ¶
func (o *DeleteAllSubscriptionsForbidden) Error() string
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 ¶
func (o *DeleteAllSubscriptionsParams) WithContext(ctx context.Context) *DeleteAllSubscriptionsParams
WithContext adds the context to the delete all subscriptions params
func (*DeleteAllSubscriptionsParams) WithDeviceID ¶
func (o *DeleteAllSubscriptionsParams) WithDeviceID(deviceID *string) *DeleteAllSubscriptionsParams
WithDeviceID adds the deviceID to the delete all subscriptions params
func (*DeleteAllSubscriptionsParams) WithHTTPClient ¶
func (o *DeleteAllSubscriptionsParams) WithHTTPClient(client *http.Client) *DeleteAllSubscriptionsParams
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 ¶
func (o *DeleteAllSubscriptionsParams) WithTimeout(timeout time.Duration) *DeleteAllSubscriptionsParams
WithTimeout adds the timeout to the delete all subscriptions params
func (*DeleteAllSubscriptionsParams) WriteToRequest ¶
func (o *DeleteAllSubscriptionsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 ¶
func (o *DeleteAllSubscriptionsTooManyRequests) Error() string
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 ¶
func (o *DeleteAllSubscriptionsUnauthorized) Error() string
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 ¶
func (o *DeleteSubscriptionBadRequest) Error() string
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 ¶
func (o *DeleteSubscriptionForbidden) Error() string
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 ¶
func (o *DeleteSubscriptionParams) WithContext(ctx context.Context) *DeleteSubscriptionParams
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 ¶
func (o *DeleteSubscriptionParams) WithTimeout(timeout time.Duration) *DeleteSubscriptionParams
WithTimeout adds the timeout to the delete subscription params
func (*DeleteSubscriptionParams) WriteToRequest ¶
func (o *DeleteSubscriptionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 ¶
func (o *DeleteSubscriptionTooManyRequests) Error() string
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 ¶
func (o *DeleteSubscriptionUnauthorized) Error() string
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 ¶
func (o *GetSubscriptionParams) WithContext(ctx context.Context) *GetSubscriptionParams
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 ¶
func (o *GetSubscriptionTooManyRequests) Error() string
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 ¶
func (o *GetSubscriptionUnauthorized) Error() string
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 ¶
func (o *ListSubscriptionsBadRequest) Error() string
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 ¶
func (o *ListSubscriptionsForbidden) Error() string
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 ¶
func (o *ListSubscriptionsParams) WithContext(ctx context.Context) *ListSubscriptionsParams
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 ¶
func (o *ListSubscriptionsParams) WithTimeout(timeout time.Duration) *ListSubscriptionsParams
WithTimeout adds the timeout to the list subscriptions params
func (*ListSubscriptionsParams) WriteToRequest ¶
func (o *ListSubscriptionsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 ¶
func (o *ListSubscriptionsTooManyRequests) Error() string
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 ¶
func (o *ListSubscriptionsUnauthorized) Error() string
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 ¶
func (o *SaveSubscriptionBadRequest) Error() string
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 ¶
func (o *SaveSubscriptionParams) WithContext(ctx context.Context) *SaveSubscriptionParams
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 ¶
func (o *SaveSubscriptionParams) WithRequest(request *models.SubscriptionRequest) *SaveSubscriptionParams
WithRequest adds the request to the save subscription params
func (*SaveSubscriptionParams) WithTimeout ¶
func (o *SaveSubscriptionParams) WithTimeout(timeout time.Duration) *SaveSubscriptionParams
WithTimeout adds the timeout to the save subscription params
func (*SaveSubscriptionParams) WriteToRequest ¶
func (o *SaveSubscriptionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 ¶
func (o *SaveSubscriptionTooManyRequests) Error() string
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 ¶
func (o *SaveSubscriptionUnauthorized) Error() string
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 ¶
func (o *SaveSubscriptionUnprocessableEntity) Error() string
Source Files ¶
- delete_all_subscriptions_parameters.go
- delete_all_subscriptions_responses.go
- delete_subscription_parameters.go
- delete_subscription_responses.go
- get_subscription_parameters.go
- get_subscription_responses.go
- list_subscriptions_parameters.go
- list_subscriptions_responses.go
- save_subscription_parameters.go
- save_subscription_responses.go
- subscriptions_client.go