get_preferences

package
v0.0.26 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client for 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 (*GetNotificationsV1SubscribersSubscriberIDPreferencesOK) GetPayload

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

SetContext adds the context to the get notifications v1 subscribers subscriber ID preferences params

func (*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

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

SetTimeout adds the timeout to the get notifications v1 subscribers subscriber ID preferences params

func (*GetNotificationsV1SubscribersSubscriberIDPreferencesParams) WithContext

WithContext adds the context to the get notifications v1 subscribers subscriber ID preferences params

func (*GetNotificationsV1SubscribersSubscriberIDPreferencesParams) WithDefaults

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

WithHTTPClient adds the HTTPClient to the get notifications v1 subscribers subscriber ID preferences params

func (*GetNotificationsV1SubscribersSubscriberIDPreferencesParams) WithSubscriberID

WithSubscriberID adds the subscriberID to the get notifications v1 subscribers subscriber ID preferences params

func (*GetNotificationsV1SubscribersSubscriberIDPreferencesParams) WithTimeout

WithTimeout adds the timeout to the get notifications v1 subscribers subscriber ID preferences params

func (*GetNotificationsV1SubscribersSubscriberIDPreferencesParams) WriteToRequest

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

ReadResponse reads a server response into the received o.

type GetNotificationsV1SubscribersSubscriberIDPreferencesUnauthorized

type GetNotificationsV1SubscribersSubscriberIDPreferencesUnauthorized struct {
	Payload *models.ErrrErrorResponse
}
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 (*GetNotificationsV1SubscribersSubscriberIDPreferencesUnauthorized) GetPayload

Jump to

Keyboard shortcuts

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