Documentation
¶
Index ¶
- type Client
- type ClientOption
- type ClientService
- type PostNotificationsV1SubscribersSubscriberIDChannelsEmailsCreated
- type PostNotificationsV1SubscribersSubscriberIDChannelsEmailsParams
- func NewPostNotificationsV1SubscribersSubscriberIDChannelsEmailsParams() *PostNotificationsV1SubscribersSubscriberIDChannelsEmailsParams
- func NewPostNotificationsV1SubscribersSubscriberIDChannelsEmailsParamsWithContext(ctx context.Context) *PostNotificationsV1SubscribersSubscriberIDChannelsEmailsParams
- func NewPostNotificationsV1SubscribersSubscriberIDChannelsEmailsParamsWithHTTPClient(client *http.Client) *PostNotificationsV1SubscribersSubscriberIDChannelsEmailsParams
- func NewPostNotificationsV1SubscribersSubscriberIDChannelsEmailsParamsWithTimeout(timeout time.Duration) *PostNotificationsV1SubscribersSubscriberIDChannelsEmailsParams
- func (o *PostNotificationsV1SubscribersSubscriberIDChannelsEmailsParams) SetContext(ctx context.Context)
- func (o *PostNotificationsV1SubscribersSubscriberIDChannelsEmailsParams) SetDefaults()
- func (o *PostNotificationsV1SubscribersSubscriberIDChannelsEmailsParams) SetHTTPClient(client *http.Client)
- func (o *PostNotificationsV1SubscribersSubscriberIDChannelsEmailsParams) SetRequest(request *models.DtoCreateChannelEmail)
- func (o *PostNotificationsV1SubscribersSubscriberIDChannelsEmailsParams) SetSubscriberID(subscriberID string)
- func (o *PostNotificationsV1SubscribersSubscriberIDChannelsEmailsParams) SetTimeout(timeout time.Duration)
- func (o *PostNotificationsV1SubscribersSubscriberIDChannelsEmailsParams) WithContext(ctx context.Context) *PostNotificationsV1SubscribersSubscriberIDChannelsEmailsParams
- func (o *PostNotificationsV1SubscribersSubscriberIDChannelsEmailsParams) WithDefaults() *PostNotificationsV1SubscribersSubscriberIDChannelsEmailsParams
- func (o *PostNotificationsV1SubscribersSubscriberIDChannelsEmailsParams) WithHTTPClient(client *http.Client) *PostNotificationsV1SubscribersSubscriberIDChannelsEmailsParams
- func (o *PostNotificationsV1SubscribersSubscriberIDChannelsEmailsParams) WithRequest(request *models.DtoCreateChannelEmail) *PostNotificationsV1SubscribersSubscriberIDChannelsEmailsParams
- func (o *PostNotificationsV1SubscribersSubscriberIDChannelsEmailsParams) WithSubscriberID(subscriberID string) *PostNotificationsV1SubscribersSubscriberIDChannelsEmailsParams
- func (o *PostNotificationsV1SubscribersSubscriberIDChannelsEmailsParams) WithTimeout(timeout time.Duration) *PostNotificationsV1SubscribersSubscriberIDChannelsEmailsParams
- func (o *PostNotificationsV1SubscribersSubscriberIDChannelsEmailsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type PostNotificationsV1SubscribersSubscriberIDChannelsEmailsReader
- type PostNotificationsV1SubscribersSubscriberIDChannelsEmailsUnauthorized
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 channel email API
func (*Client) PostNotificationsV1SubscribersSubscriberIDChannelsEmails ¶
func (a *Client) PostNotificationsV1SubscribersSubscriberIDChannelsEmails(params *PostNotificationsV1SubscribersSubscriberIDChannelsEmailsParams, opts ...ClientOption) (*PostNotificationsV1SubscribersSubscriberIDChannelsEmailsCreated, error)
PostNotificationsV1SubscribersSubscriberIDChannelsEmails creates email notification channel for 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 { PostNotificationsV1SubscribersSubscriberIDChannelsEmails(params *PostNotificationsV1SubscribersSubscriberIDChannelsEmailsParams, opts ...ClientOption) (*PostNotificationsV1SubscribersSubscriberIDChannelsEmailsCreated, 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 channel email API client.
type PostNotificationsV1SubscribersSubscriberIDChannelsEmailsCreated ¶
type PostNotificationsV1SubscribersSubscriberIDChannelsEmailsCreated struct {
Payload *models.DtoChannelEmail
}
PostNotificationsV1SubscribersSubscriberIDChannelsEmailsCreated describes a response with status code 201, with default header values.
Created
func NewPostNotificationsV1SubscribersSubscriberIDChannelsEmailsCreated ¶
func NewPostNotificationsV1SubscribersSubscriberIDChannelsEmailsCreated() *PostNotificationsV1SubscribersSubscriberIDChannelsEmailsCreated
NewPostNotificationsV1SubscribersSubscriberIDChannelsEmailsCreated creates a PostNotificationsV1SubscribersSubscriberIDChannelsEmailsCreated with default headers values
func (*PostNotificationsV1SubscribersSubscriberIDChannelsEmailsCreated) Error ¶
func (o *PostNotificationsV1SubscribersSubscriberIDChannelsEmailsCreated) Error() string
func (*PostNotificationsV1SubscribersSubscriberIDChannelsEmailsCreated) GetPayload ¶
func (o *PostNotificationsV1SubscribersSubscriberIDChannelsEmailsCreated) GetPayload() *models.DtoChannelEmail
type PostNotificationsV1SubscribersSubscriberIDChannelsEmailsParams ¶
type PostNotificationsV1SubscribersSubscriberIDChannelsEmailsParams struct { /* Request. Request Body */ Request *models.DtoCreateChannelEmail /* SubscriberID. subscriber id i.e. user id */ SubscriberID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
PostNotificationsV1SubscribersSubscriberIDChannelsEmailsParams contains all the parameters to send to the API endpoint
for the post notifications v1 subscribers subscriber ID channels emails operation. Typically these are written to a http.Request.
func NewPostNotificationsV1SubscribersSubscriberIDChannelsEmailsParams ¶
func NewPostNotificationsV1SubscribersSubscriberIDChannelsEmailsParams() *PostNotificationsV1SubscribersSubscriberIDChannelsEmailsParams
NewPostNotificationsV1SubscribersSubscriberIDChannelsEmailsParams creates a new PostNotificationsV1SubscribersSubscriberIDChannelsEmailsParams 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 NewPostNotificationsV1SubscribersSubscriberIDChannelsEmailsParamsWithContext ¶
func NewPostNotificationsV1SubscribersSubscriberIDChannelsEmailsParamsWithContext(ctx context.Context) *PostNotificationsV1SubscribersSubscriberIDChannelsEmailsParams
NewPostNotificationsV1SubscribersSubscriberIDChannelsEmailsParamsWithContext creates a new PostNotificationsV1SubscribersSubscriberIDChannelsEmailsParams object with the ability to set a context for a request.
func NewPostNotificationsV1SubscribersSubscriberIDChannelsEmailsParamsWithHTTPClient ¶
func NewPostNotificationsV1SubscribersSubscriberIDChannelsEmailsParamsWithHTTPClient(client *http.Client) *PostNotificationsV1SubscribersSubscriberIDChannelsEmailsParams
NewPostNotificationsV1SubscribersSubscriberIDChannelsEmailsParamsWithHTTPClient creates a new PostNotificationsV1SubscribersSubscriberIDChannelsEmailsParams object with the ability to set a custom HTTPClient for a request.
func NewPostNotificationsV1SubscribersSubscriberIDChannelsEmailsParamsWithTimeout ¶
func NewPostNotificationsV1SubscribersSubscriberIDChannelsEmailsParamsWithTimeout(timeout time.Duration) *PostNotificationsV1SubscribersSubscriberIDChannelsEmailsParams
NewPostNotificationsV1SubscribersSubscriberIDChannelsEmailsParamsWithTimeout creates a new PostNotificationsV1SubscribersSubscriberIDChannelsEmailsParams object with the ability to set a timeout on a request.
func (*PostNotificationsV1SubscribersSubscriberIDChannelsEmailsParams) SetContext ¶
func (o *PostNotificationsV1SubscribersSubscriberIDChannelsEmailsParams) SetContext(ctx context.Context)
SetContext adds the context to the post notifications v1 subscribers subscriber ID channels emails params
func (*PostNotificationsV1SubscribersSubscriberIDChannelsEmailsParams) SetDefaults ¶
func (o *PostNotificationsV1SubscribersSubscriberIDChannelsEmailsParams) SetDefaults()
SetDefaults hydrates default values in the post notifications v1 subscribers subscriber ID channels emails params (not the query body).
All values with no default are reset to their zero value.
func (*PostNotificationsV1SubscribersSubscriberIDChannelsEmailsParams) SetHTTPClient ¶
func (o *PostNotificationsV1SubscribersSubscriberIDChannelsEmailsParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the post notifications v1 subscribers subscriber ID channels emails params
func (*PostNotificationsV1SubscribersSubscriberIDChannelsEmailsParams) SetRequest ¶
func (o *PostNotificationsV1SubscribersSubscriberIDChannelsEmailsParams) SetRequest(request *models.DtoCreateChannelEmail)
SetRequest adds the request to the post notifications v1 subscribers subscriber ID channels emails params
func (*PostNotificationsV1SubscribersSubscriberIDChannelsEmailsParams) SetSubscriberID ¶
func (o *PostNotificationsV1SubscribersSubscriberIDChannelsEmailsParams) SetSubscriberID(subscriberID string)
SetSubscriberID adds the subscriberId to the post notifications v1 subscribers subscriber ID channels emails params
func (*PostNotificationsV1SubscribersSubscriberIDChannelsEmailsParams) SetTimeout ¶
func (o *PostNotificationsV1SubscribersSubscriberIDChannelsEmailsParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the post notifications v1 subscribers subscriber ID channels emails params
func (*PostNotificationsV1SubscribersSubscriberIDChannelsEmailsParams) WithContext ¶
func (o *PostNotificationsV1SubscribersSubscriberIDChannelsEmailsParams) WithContext(ctx context.Context) *PostNotificationsV1SubscribersSubscriberIDChannelsEmailsParams
WithContext adds the context to the post notifications v1 subscribers subscriber ID channels emails params
func (*PostNotificationsV1SubscribersSubscriberIDChannelsEmailsParams) WithDefaults ¶
func (o *PostNotificationsV1SubscribersSubscriberIDChannelsEmailsParams) WithDefaults() *PostNotificationsV1SubscribersSubscriberIDChannelsEmailsParams
WithDefaults hydrates default values in the post notifications v1 subscribers subscriber ID channels emails params (not the query body).
All values with no default are reset to their zero value.
func (*PostNotificationsV1SubscribersSubscriberIDChannelsEmailsParams) WithHTTPClient ¶
func (o *PostNotificationsV1SubscribersSubscriberIDChannelsEmailsParams) WithHTTPClient(client *http.Client) *PostNotificationsV1SubscribersSubscriberIDChannelsEmailsParams
WithHTTPClient adds the HTTPClient to the post notifications v1 subscribers subscriber ID channels emails params
func (*PostNotificationsV1SubscribersSubscriberIDChannelsEmailsParams) WithRequest ¶
func (o *PostNotificationsV1SubscribersSubscriberIDChannelsEmailsParams) WithRequest(request *models.DtoCreateChannelEmail) *PostNotificationsV1SubscribersSubscriberIDChannelsEmailsParams
WithRequest adds the request to the post notifications v1 subscribers subscriber ID channels emails params
func (*PostNotificationsV1SubscribersSubscriberIDChannelsEmailsParams) WithSubscriberID ¶
func (o *PostNotificationsV1SubscribersSubscriberIDChannelsEmailsParams) WithSubscriberID(subscriberID string) *PostNotificationsV1SubscribersSubscriberIDChannelsEmailsParams
WithSubscriberID adds the subscriberID to the post notifications v1 subscribers subscriber ID channels emails params
func (*PostNotificationsV1SubscribersSubscriberIDChannelsEmailsParams) WithTimeout ¶
func (o *PostNotificationsV1SubscribersSubscriberIDChannelsEmailsParams) WithTimeout(timeout time.Duration) *PostNotificationsV1SubscribersSubscriberIDChannelsEmailsParams
WithTimeout adds the timeout to the post notifications v1 subscribers subscriber ID channels emails params
func (*PostNotificationsV1SubscribersSubscriberIDChannelsEmailsParams) WriteToRequest ¶
func (o *PostNotificationsV1SubscribersSubscriberIDChannelsEmailsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type PostNotificationsV1SubscribersSubscriberIDChannelsEmailsReader ¶
type PostNotificationsV1SubscribersSubscriberIDChannelsEmailsReader struct {
// contains filtered or unexported fields
}
PostNotificationsV1SubscribersSubscriberIDChannelsEmailsReader is a Reader for the PostNotificationsV1SubscribersSubscriberIDChannelsEmails structure.
func (*PostNotificationsV1SubscribersSubscriberIDChannelsEmailsReader) ReadResponse ¶
func (o *PostNotificationsV1SubscribersSubscriberIDChannelsEmailsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type PostNotificationsV1SubscribersSubscriberIDChannelsEmailsUnauthorized ¶
type PostNotificationsV1SubscribersSubscriberIDChannelsEmailsUnauthorized struct {
}PostNotificationsV1SubscribersSubscriberIDChannelsEmailsUnauthorized describes a response with status code 401, with default header values.
Unauthorized
func NewPostNotificationsV1SubscribersSubscriberIDChannelsEmailsUnauthorized ¶
func NewPostNotificationsV1SubscribersSubscriberIDChannelsEmailsUnauthorized() *PostNotificationsV1SubscribersSubscriberIDChannelsEmailsUnauthorized
NewPostNotificationsV1SubscribersSubscriberIDChannelsEmailsUnauthorized creates a PostNotificationsV1SubscribersSubscriberIDChannelsEmailsUnauthorized with default headers values
func (*PostNotificationsV1SubscribersSubscriberIDChannelsEmailsUnauthorized) Error ¶
func (o *PostNotificationsV1SubscribersSubscriberIDChannelsEmailsUnauthorized) Error() string
func (*PostNotificationsV1SubscribersSubscriberIDChannelsEmailsUnauthorized) GetPayload ¶
func (o *PostNotificationsV1SubscribersSubscriberIDChannelsEmailsUnauthorized) GetPayload() *models.ErrrErrorResponse