Documentation ¶
Index ¶
- type Client
- type ClientOption
- type ClientService
- type PostNotificationsV1SubscribersSubscriberIDPreferencesCreated
- type PostNotificationsV1SubscribersSubscriberIDPreferencesParams
- func NewPostNotificationsV1SubscribersSubscriberIDPreferencesParams() *PostNotificationsV1SubscribersSubscriberIDPreferencesParams
- func NewPostNotificationsV1SubscribersSubscriberIDPreferencesParamsWithContext(ctx context.Context) *PostNotificationsV1SubscribersSubscriberIDPreferencesParams
- func NewPostNotificationsV1SubscribersSubscriberIDPreferencesParamsWithHTTPClient(client *http.Client) *PostNotificationsV1SubscribersSubscriberIDPreferencesParams
- func NewPostNotificationsV1SubscribersSubscriberIDPreferencesParamsWithTimeout(timeout time.Duration) *PostNotificationsV1SubscribersSubscriberIDPreferencesParams
- func (o *PostNotificationsV1SubscribersSubscriberIDPreferencesParams) SetContext(ctx context.Context)
- func (o *PostNotificationsV1SubscribersSubscriberIDPreferencesParams) SetDefaults()
- func (o *PostNotificationsV1SubscribersSubscriberIDPreferencesParams) SetHTTPClient(client *http.Client)
- func (o *PostNotificationsV1SubscribersSubscriberIDPreferencesParams) SetRequest(request *models.DtoCreatePreference)
- func (o *PostNotificationsV1SubscribersSubscriberIDPreferencesParams) SetSubscriberID(subscriberID string)
- func (o *PostNotificationsV1SubscribersSubscriberIDPreferencesParams) SetTimeout(timeout time.Duration)
- func (o *PostNotificationsV1SubscribersSubscriberIDPreferencesParams) WithContext(ctx context.Context) *PostNotificationsV1SubscribersSubscriberIDPreferencesParams
- func (o *PostNotificationsV1SubscribersSubscriberIDPreferencesParams) WithDefaults() *PostNotificationsV1SubscribersSubscriberIDPreferencesParams
- func (o *PostNotificationsV1SubscribersSubscriberIDPreferencesParams) WithHTTPClient(client *http.Client) *PostNotificationsV1SubscribersSubscriberIDPreferencesParams
- func (o *PostNotificationsV1SubscribersSubscriberIDPreferencesParams) WithRequest(request *models.DtoCreatePreference) *PostNotificationsV1SubscribersSubscriberIDPreferencesParams
- func (o *PostNotificationsV1SubscribersSubscriberIDPreferencesParams) WithSubscriberID(subscriberID string) *PostNotificationsV1SubscribersSubscriberIDPreferencesParams
- func (o *PostNotificationsV1SubscribersSubscriberIDPreferencesParams) WithTimeout(timeout time.Duration) *PostNotificationsV1SubscribersSubscriberIDPreferencesParams
- func (o *PostNotificationsV1SubscribersSubscriberIDPreferencesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type PostNotificationsV1SubscribersSubscriberIDPreferencesReader
- type PostNotificationsV1SubscribersSubscriberIDPreferencesUnauthorized
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 create preferences API
func (*Client) PostNotificationsV1SubscribersSubscriberIDPreferences ¶
func (a *Client) PostNotificationsV1SubscribersSubscriberIDPreferences(params *PostNotificationsV1SubscribersSubscriberIDPreferencesParams, opts ...ClientOption) (*PostNotificationsV1SubscribersSubscriberIDPreferencesCreated, error)
PostNotificationsV1SubscribersSubscriberIDPreferences creates notification preference of a subscriber
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
type ClientOption ¶
type ClientOption func(*runtime.ClientOperation)
ClientOption is the option for Client methods
type ClientService ¶
type ClientService interface { PostNotificationsV1SubscribersSubscriberIDPreferences(params *PostNotificationsV1SubscribersSubscriberIDPreferencesParams, opts ...ClientOption) (*PostNotificationsV1SubscribersSubscriberIDPreferencesCreated, error) SetTransport(transport runtime.ClientTransport) }
ClientService is the interface for Client methods
func New ¶
func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService
New creates a new create preferences API client.
type PostNotificationsV1SubscribersSubscriberIDPreferencesCreated ¶
type PostNotificationsV1SubscribersSubscriberIDPreferencesCreated struct {
Payload []*models.DtoPreference
}
PostNotificationsV1SubscribersSubscriberIDPreferencesCreated describes a response with status code 201, with default header values.
Created
func NewPostNotificationsV1SubscribersSubscriberIDPreferencesCreated ¶
func NewPostNotificationsV1SubscribersSubscriberIDPreferencesCreated() *PostNotificationsV1SubscribersSubscriberIDPreferencesCreated
NewPostNotificationsV1SubscribersSubscriberIDPreferencesCreated creates a PostNotificationsV1SubscribersSubscriberIDPreferencesCreated with default headers values
func (*PostNotificationsV1SubscribersSubscriberIDPreferencesCreated) Error ¶
func (o *PostNotificationsV1SubscribersSubscriberIDPreferencesCreated) Error() string
func (*PostNotificationsV1SubscribersSubscriberIDPreferencesCreated) GetPayload ¶
func (o *PostNotificationsV1SubscribersSubscriberIDPreferencesCreated) GetPayload() []*models.DtoPreference
type PostNotificationsV1SubscribersSubscriberIDPreferencesParams ¶
type PostNotificationsV1SubscribersSubscriberIDPreferencesParams struct { /* Request. Request Body */ Request *models.DtoCreatePreference /* SubscriberID. subscriber id i.e. user id */ SubscriberID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
PostNotificationsV1SubscribersSubscriberIDPreferencesParams contains all the parameters to send to the API endpoint
for the post notifications v1 subscribers subscriber ID preferences operation. Typically these are written to a http.Request.
func NewPostNotificationsV1SubscribersSubscriberIDPreferencesParams ¶
func NewPostNotificationsV1SubscribersSubscriberIDPreferencesParams() *PostNotificationsV1SubscribersSubscriberIDPreferencesParams
NewPostNotificationsV1SubscribersSubscriberIDPreferencesParams creates a new PostNotificationsV1SubscribersSubscriberIDPreferencesParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewPostNotificationsV1SubscribersSubscriberIDPreferencesParamsWithContext ¶
func NewPostNotificationsV1SubscribersSubscriberIDPreferencesParamsWithContext(ctx context.Context) *PostNotificationsV1SubscribersSubscriberIDPreferencesParams
NewPostNotificationsV1SubscribersSubscriberIDPreferencesParamsWithContext creates a new PostNotificationsV1SubscribersSubscriberIDPreferencesParams object with the ability to set a context for a request.
func NewPostNotificationsV1SubscribersSubscriberIDPreferencesParamsWithHTTPClient ¶
func NewPostNotificationsV1SubscribersSubscriberIDPreferencesParamsWithHTTPClient(client *http.Client) *PostNotificationsV1SubscribersSubscriberIDPreferencesParams
NewPostNotificationsV1SubscribersSubscriberIDPreferencesParamsWithHTTPClient creates a new PostNotificationsV1SubscribersSubscriberIDPreferencesParams object with the ability to set a custom HTTPClient for a request.
func NewPostNotificationsV1SubscribersSubscriberIDPreferencesParamsWithTimeout ¶
func NewPostNotificationsV1SubscribersSubscriberIDPreferencesParamsWithTimeout(timeout time.Duration) *PostNotificationsV1SubscribersSubscriberIDPreferencesParams
NewPostNotificationsV1SubscribersSubscriberIDPreferencesParamsWithTimeout creates a new PostNotificationsV1SubscribersSubscriberIDPreferencesParams object with the ability to set a timeout on a request.
func (*PostNotificationsV1SubscribersSubscriberIDPreferencesParams) SetContext ¶
func (o *PostNotificationsV1SubscribersSubscriberIDPreferencesParams) SetContext(ctx context.Context)
SetContext adds the context to the post notifications v1 subscribers subscriber ID preferences params
func (*PostNotificationsV1SubscribersSubscriberIDPreferencesParams) SetDefaults ¶
func (o *PostNotificationsV1SubscribersSubscriberIDPreferencesParams) SetDefaults()
SetDefaults hydrates default values in the post notifications v1 subscribers subscriber ID preferences params (not the query body).
All values with no default are reset to their zero value.
func (*PostNotificationsV1SubscribersSubscriberIDPreferencesParams) SetHTTPClient ¶
func (o *PostNotificationsV1SubscribersSubscriberIDPreferencesParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the post notifications v1 subscribers subscriber ID preferences params
func (*PostNotificationsV1SubscribersSubscriberIDPreferencesParams) SetRequest ¶
func (o *PostNotificationsV1SubscribersSubscriberIDPreferencesParams) SetRequest(request *models.DtoCreatePreference)
SetRequest adds the request to the post notifications v1 subscribers subscriber ID preferences params
func (*PostNotificationsV1SubscribersSubscriberIDPreferencesParams) SetSubscriberID ¶
func (o *PostNotificationsV1SubscribersSubscriberIDPreferencesParams) SetSubscriberID(subscriberID string)
SetSubscriberID adds the subscriberId to the post notifications v1 subscribers subscriber ID preferences params
func (*PostNotificationsV1SubscribersSubscriberIDPreferencesParams) SetTimeout ¶
func (o *PostNotificationsV1SubscribersSubscriberIDPreferencesParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the post notifications v1 subscribers subscriber ID preferences params
func (*PostNotificationsV1SubscribersSubscriberIDPreferencesParams) WithContext ¶
func (o *PostNotificationsV1SubscribersSubscriberIDPreferencesParams) WithContext(ctx context.Context) *PostNotificationsV1SubscribersSubscriberIDPreferencesParams
WithContext adds the context to the post notifications v1 subscribers subscriber ID preferences params
func (*PostNotificationsV1SubscribersSubscriberIDPreferencesParams) WithDefaults ¶
func (o *PostNotificationsV1SubscribersSubscriberIDPreferencesParams) WithDefaults() *PostNotificationsV1SubscribersSubscriberIDPreferencesParams
WithDefaults hydrates default values in the post notifications v1 subscribers subscriber ID preferences params (not the query body).
All values with no default are reset to their zero value.
func (*PostNotificationsV1SubscribersSubscriberIDPreferencesParams) WithHTTPClient ¶
func (o *PostNotificationsV1SubscribersSubscriberIDPreferencesParams) WithHTTPClient(client *http.Client) *PostNotificationsV1SubscribersSubscriberIDPreferencesParams
WithHTTPClient adds the HTTPClient to the post notifications v1 subscribers subscriber ID preferences params
func (*PostNotificationsV1SubscribersSubscriberIDPreferencesParams) WithRequest ¶
func (o *PostNotificationsV1SubscribersSubscriberIDPreferencesParams) WithRequest(request *models.DtoCreatePreference) *PostNotificationsV1SubscribersSubscriberIDPreferencesParams
WithRequest adds the request to the post notifications v1 subscribers subscriber ID preferences params
func (*PostNotificationsV1SubscribersSubscriberIDPreferencesParams) WithSubscriberID ¶
func (o *PostNotificationsV1SubscribersSubscriberIDPreferencesParams) WithSubscriberID(subscriberID string) *PostNotificationsV1SubscribersSubscriberIDPreferencesParams
WithSubscriberID adds the subscriberID to the post notifications v1 subscribers subscriber ID preferences params
func (*PostNotificationsV1SubscribersSubscriberIDPreferencesParams) WithTimeout ¶
func (o *PostNotificationsV1SubscribersSubscriberIDPreferencesParams) WithTimeout(timeout time.Duration) *PostNotificationsV1SubscribersSubscriberIDPreferencesParams
WithTimeout adds the timeout to the post notifications v1 subscribers subscriber ID preferences params
func (*PostNotificationsV1SubscribersSubscriberIDPreferencesParams) WriteToRequest ¶
func (o *PostNotificationsV1SubscribersSubscriberIDPreferencesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type PostNotificationsV1SubscribersSubscriberIDPreferencesReader ¶
type PostNotificationsV1SubscribersSubscriberIDPreferencesReader struct {
// contains filtered or unexported fields
}
PostNotificationsV1SubscribersSubscriberIDPreferencesReader is a Reader for the PostNotificationsV1SubscribersSubscriberIDPreferences structure.
func (*PostNotificationsV1SubscribersSubscriberIDPreferencesReader) ReadResponse ¶
func (o *PostNotificationsV1SubscribersSubscriberIDPreferencesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type PostNotificationsV1SubscribersSubscriberIDPreferencesUnauthorized ¶
type PostNotificationsV1SubscribersSubscriberIDPreferencesUnauthorized struct {
}PostNotificationsV1SubscribersSubscriberIDPreferencesUnauthorized describes a response with status code 401, with default header values.
Unauthorized
func NewPostNotificationsV1SubscribersSubscriberIDPreferencesUnauthorized ¶
func NewPostNotificationsV1SubscribersSubscriberIDPreferencesUnauthorized() *PostNotificationsV1SubscribersSubscriberIDPreferencesUnauthorized
NewPostNotificationsV1SubscribersSubscriberIDPreferencesUnauthorized creates a PostNotificationsV1SubscribersSubscriberIDPreferencesUnauthorized with default headers values
func (*PostNotificationsV1SubscribersSubscriberIDPreferencesUnauthorized) Error ¶
func (o *PostNotificationsV1SubscribersSubscriberIDPreferencesUnauthorized) Error() string
func (*PostNotificationsV1SubscribersSubscriberIDPreferencesUnauthorized) GetPayload ¶
func (o *PostNotificationsV1SubscribersSubscriberIDPreferencesUnauthorized) GetPayload() *models.ErrrErrorResponse