create_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 create preferences API

func (*Client) PostNotificationsV1SubscribersSubscriberIDPreferences

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 (*PostNotificationsV1SubscribersSubscriberIDPreferencesCreated) GetPayload

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

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

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

SetHTTPClient adds the HTTPClient to the post notifications v1 subscribers subscriber ID preferences params

func (*PostNotificationsV1SubscribersSubscriberIDPreferencesParams) SetRequest

SetRequest adds the request to the post notifications v1 subscribers subscriber ID preferences params

func (*PostNotificationsV1SubscribersSubscriberIDPreferencesParams) SetSubscriberID

SetSubscriberID adds the subscriberId to the post notifications v1 subscribers subscriber ID preferences params

func (*PostNotificationsV1SubscribersSubscriberIDPreferencesParams) SetTimeout

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

func (*PostNotificationsV1SubscribersSubscriberIDPreferencesParams) WithContext

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

func (*PostNotificationsV1SubscribersSubscriberIDPreferencesParams) WithDefaults

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

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

func (*PostNotificationsV1SubscribersSubscriberIDPreferencesParams) WithRequest

WithRequest adds the request to the post notifications v1 subscribers subscriber ID preferences params

func (*PostNotificationsV1SubscribersSubscriberIDPreferencesParams) WithSubscriberID

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

func (*PostNotificationsV1SubscribersSubscriberIDPreferencesParams) WithTimeout

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

func (*PostNotificationsV1SubscribersSubscriberIDPreferencesParams) WriteToRequest

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

ReadResponse reads a server response into the received o.

type PostNotificationsV1SubscribersSubscriberIDPreferencesUnauthorized

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

Jump to

Keyboard shortcuts

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