Documentation
¶
Index ¶
- type Client
- type ClientOption
- type ClientService
- type GetNotificationsV1SubscribersSubscriberIDPreferencesOK
- type GetNotificationsV1SubscribersSubscriberIDPreferencesParams
- func NewGetNotificationsV1SubscribersSubscriberIDPreferencesParams() *GetNotificationsV1SubscribersSubscriberIDPreferencesParams
- func NewGetNotificationsV1SubscribersSubscriberIDPreferencesParamsWithContext(ctx context.Context) *GetNotificationsV1SubscribersSubscriberIDPreferencesParams
- func NewGetNotificationsV1SubscribersSubscriberIDPreferencesParamsWithHTTPClient(client *http.Client) *GetNotificationsV1SubscribersSubscriberIDPreferencesParams
- func NewGetNotificationsV1SubscribersSubscriberIDPreferencesParamsWithTimeout(timeout time.Duration) *GetNotificationsV1SubscribersSubscriberIDPreferencesParams
- func (o *GetNotificationsV1SubscribersSubscriberIDPreferencesParams) SetContext(ctx context.Context)
- func (o *GetNotificationsV1SubscribersSubscriberIDPreferencesParams) SetDefaults()
- func (o *GetNotificationsV1SubscribersSubscriberIDPreferencesParams) SetHTTPClient(client *http.Client)
- func (o *GetNotificationsV1SubscribersSubscriberIDPreferencesParams) SetSubscriberID(subscriberID string)
- func (o *GetNotificationsV1SubscribersSubscriberIDPreferencesParams) SetTimeout(timeout time.Duration)
- func (o *GetNotificationsV1SubscribersSubscriberIDPreferencesParams) WithContext(ctx context.Context) *GetNotificationsV1SubscribersSubscriberIDPreferencesParams
- func (o *GetNotificationsV1SubscribersSubscriberIDPreferencesParams) WithDefaults() *GetNotificationsV1SubscribersSubscriberIDPreferencesParams
- func (o *GetNotificationsV1SubscribersSubscriberIDPreferencesParams) WithHTTPClient(client *http.Client) *GetNotificationsV1SubscribersSubscriberIDPreferencesParams
- func (o *GetNotificationsV1SubscribersSubscriberIDPreferencesParams) WithSubscriberID(subscriberID string) *GetNotificationsV1SubscribersSubscriberIDPreferencesParams
- func (o *GetNotificationsV1SubscribersSubscriberIDPreferencesParams) WithTimeout(timeout time.Duration) *GetNotificationsV1SubscribersSubscriberIDPreferencesParams
- func (o *GetNotificationsV1SubscribersSubscriberIDPreferencesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetNotificationsV1SubscribersSubscriberIDPreferencesReader
- type GetNotificationsV1SubscribersSubscriberIDPreferencesUnauthorized
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 get preferences API
func (*Client) GetNotificationsV1SubscribersSubscriberIDPreferences ¶
func (a *Client) GetNotificationsV1SubscribersSubscriberIDPreferences(params *GetNotificationsV1SubscribersSubscriberIDPreferencesParams, opts ...ClientOption) (*GetNotificationsV1SubscribersSubscriberIDPreferencesOK, error)
GetNotificationsV1SubscribersSubscriberIDPreferences gets 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 { GetNotificationsV1SubscribersSubscriberIDPreferences(params *GetNotificationsV1SubscribersSubscriberIDPreferencesParams, opts ...ClientOption) (*GetNotificationsV1SubscribersSubscriberIDPreferencesOK, 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 get preferences API client.
type GetNotificationsV1SubscribersSubscriberIDPreferencesOK ¶
type GetNotificationsV1SubscribersSubscriberIDPreferencesOK struct {
Payload []*models.DtoPreference
}
GetNotificationsV1SubscribersSubscriberIDPreferencesOK describes a response with status code 200, with default header values.
OK
func NewGetNotificationsV1SubscribersSubscriberIDPreferencesOK ¶
func NewGetNotificationsV1SubscribersSubscriberIDPreferencesOK() *GetNotificationsV1SubscribersSubscriberIDPreferencesOK
NewGetNotificationsV1SubscribersSubscriberIDPreferencesOK creates a GetNotificationsV1SubscribersSubscriberIDPreferencesOK with default headers values
func (*GetNotificationsV1SubscribersSubscriberIDPreferencesOK) Error ¶
func (o *GetNotificationsV1SubscribersSubscriberIDPreferencesOK) Error() string
func (*GetNotificationsV1SubscribersSubscriberIDPreferencesOK) GetPayload ¶
func (o *GetNotificationsV1SubscribersSubscriberIDPreferencesOK) GetPayload() []*models.DtoPreference
type GetNotificationsV1SubscribersSubscriberIDPreferencesParams ¶
type GetNotificationsV1SubscribersSubscriberIDPreferencesParams struct { /* SubscriberID. subscriber id i.e. user id */ SubscriberID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetNotificationsV1SubscribersSubscriberIDPreferencesParams contains all the parameters to send to the API endpoint
for the get notifications v1 subscribers subscriber ID preferences operation. Typically these are written to a http.Request.
func NewGetNotificationsV1SubscribersSubscriberIDPreferencesParams ¶
func NewGetNotificationsV1SubscribersSubscriberIDPreferencesParams() *GetNotificationsV1SubscribersSubscriberIDPreferencesParams
NewGetNotificationsV1SubscribersSubscriberIDPreferencesParams creates a new GetNotificationsV1SubscribersSubscriberIDPreferencesParams 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 NewGetNotificationsV1SubscribersSubscriberIDPreferencesParamsWithContext ¶
func NewGetNotificationsV1SubscribersSubscriberIDPreferencesParamsWithContext(ctx context.Context) *GetNotificationsV1SubscribersSubscriberIDPreferencesParams
NewGetNotificationsV1SubscribersSubscriberIDPreferencesParamsWithContext creates a new GetNotificationsV1SubscribersSubscriberIDPreferencesParams object with the ability to set a context for a request.
func NewGetNotificationsV1SubscribersSubscriberIDPreferencesParamsWithHTTPClient ¶
func NewGetNotificationsV1SubscribersSubscriberIDPreferencesParamsWithHTTPClient(client *http.Client) *GetNotificationsV1SubscribersSubscriberIDPreferencesParams
NewGetNotificationsV1SubscribersSubscriberIDPreferencesParamsWithHTTPClient creates a new GetNotificationsV1SubscribersSubscriberIDPreferencesParams object with the ability to set a custom HTTPClient for a request.
func NewGetNotificationsV1SubscribersSubscriberIDPreferencesParamsWithTimeout ¶
func NewGetNotificationsV1SubscribersSubscriberIDPreferencesParamsWithTimeout(timeout time.Duration) *GetNotificationsV1SubscribersSubscriberIDPreferencesParams
NewGetNotificationsV1SubscribersSubscriberIDPreferencesParamsWithTimeout creates a new GetNotificationsV1SubscribersSubscriberIDPreferencesParams object with the ability to set a timeout on a request.
func (*GetNotificationsV1SubscribersSubscriberIDPreferencesParams) SetContext ¶
func (o *GetNotificationsV1SubscribersSubscriberIDPreferencesParams) SetContext(ctx context.Context)
SetContext adds the context to the get notifications v1 subscribers subscriber ID preferences params
func (*GetNotificationsV1SubscribersSubscriberIDPreferencesParams) SetDefaults ¶
func (o *GetNotificationsV1SubscribersSubscriberIDPreferencesParams) SetDefaults()
SetDefaults hydrates default values in the get notifications v1 subscribers subscriber ID preferences params (not the query body).
All values with no default are reset to their zero value.
func (*GetNotificationsV1SubscribersSubscriberIDPreferencesParams) SetHTTPClient ¶
func (o *GetNotificationsV1SubscribersSubscriberIDPreferencesParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get notifications v1 subscribers subscriber ID preferences params
func (*GetNotificationsV1SubscribersSubscriberIDPreferencesParams) SetSubscriberID ¶
func (o *GetNotificationsV1SubscribersSubscriberIDPreferencesParams) SetSubscriberID(subscriberID string)
SetSubscriberID adds the subscriberId to the get notifications v1 subscribers subscriber ID preferences params
func (*GetNotificationsV1SubscribersSubscriberIDPreferencesParams) SetTimeout ¶
func (o *GetNotificationsV1SubscribersSubscriberIDPreferencesParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get notifications v1 subscribers subscriber ID preferences params
func (*GetNotificationsV1SubscribersSubscriberIDPreferencesParams) WithContext ¶
func (o *GetNotificationsV1SubscribersSubscriberIDPreferencesParams) WithContext(ctx context.Context) *GetNotificationsV1SubscribersSubscriberIDPreferencesParams
WithContext adds the context to the get notifications v1 subscribers subscriber ID preferences params
func (*GetNotificationsV1SubscribersSubscriberIDPreferencesParams) WithDefaults ¶
func (o *GetNotificationsV1SubscribersSubscriberIDPreferencesParams) WithDefaults() *GetNotificationsV1SubscribersSubscriberIDPreferencesParams
WithDefaults hydrates default values in the get notifications v1 subscribers subscriber ID preferences params (not the query body).
All values with no default are reset to their zero value.
func (*GetNotificationsV1SubscribersSubscriberIDPreferencesParams) WithHTTPClient ¶
func (o *GetNotificationsV1SubscribersSubscriberIDPreferencesParams) WithHTTPClient(client *http.Client) *GetNotificationsV1SubscribersSubscriberIDPreferencesParams
WithHTTPClient adds the HTTPClient to the get notifications v1 subscribers subscriber ID preferences params
func (*GetNotificationsV1SubscribersSubscriberIDPreferencesParams) WithSubscriberID ¶
func (o *GetNotificationsV1SubscribersSubscriberIDPreferencesParams) WithSubscriberID(subscriberID string) *GetNotificationsV1SubscribersSubscriberIDPreferencesParams
WithSubscriberID adds the subscriberID to the get notifications v1 subscribers subscriber ID preferences params
func (*GetNotificationsV1SubscribersSubscriberIDPreferencesParams) WithTimeout ¶
func (o *GetNotificationsV1SubscribersSubscriberIDPreferencesParams) WithTimeout(timeout time.Duration) *GetNotificationsV1SubscribersSubscriberIDPreferencesParams
WithTimeout adds the timeout to the get notifications v1 subscribers subscriber ID preferences params
func (*GetNotificationsV1SubscribersSubscriberIDPreferencesParams) WriteToRequest ¶
func (o *GetNotificationsV1SubscribersSubscriberIDPreferencesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetNotificationsV1SubscribersSubscriberIDPreferencesReader ¶
type GetNotificationsV1SubscribersSubscriberIDPreferencesReader struct {
// contains filtered or unexported fields
}
GetNotificationsV1SubscribersSubscriberIDPreferencesReader is a Reader for the GetNotificationsV1SubscribersSubscriberIDPreferences structure.
func (*GetNotificationsV1SubscribersSubscriberIDPreferencesReader) ReadResponse ¶
func (o *GetNotificationsV1SubscribersSubscriberIDPreferencesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetNotificationsV1SubscribersSubscriberIDPreferencesUnauthorized ¶
type GetNotificationsV1SubscribersSubscriberIDPreferencesUnauthorized struct {
}GetNotificationsV1SubscribersSubscriberIDPreferencesUnauthorized describes a response with status code 401, with default header values.
Unauthorized
func NewGetNotificationsV1SubscribersSubscriberIDPreferencesUnauthorized ¶
func NewGetNotificationsV1SubscribersSubscriberIDPreferencesUnauthorized() *GetNotificationsV1SubscribersSubscriberIDPreferencesUnauthorized
NewGetNotificationsV1SubscribersSubscriberIDPreferencesUnauthorized creates a GetNotificationsV1SubscribersSubscriberIDPreferencesUnauthorized with default headers values
func (*GetNotificationsV1SubscribersSubscriberIDPreferencesUnauthorized) Error ¶
func (o *GetNotificationsV1SubscribersSubscriberIDPreferencesUnauthorized) Error() string
func (*GetNotificationsV1SubscribersSubscriberIDPreferencesUnauthorized) GetPayload ¶
func (o *GetNotificationsV1SubscribersSubscriberIDPreferencesUnauthorized) GetPayload() *models.ErrrErrorResponse