nunc

package
v0.0.0-...-62cac48 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2024 License: MIT 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 nunc API

func (*Client) DeleteV1NuncSubscriptionsUnsubscribeToken

DeleteV1NuncSubscriptionsUnsubscribeToken unsubscribes from status page updates

Unsubscribe from status page updates

func (*Client) PostV1NuncSubscriptions

func (a *Client) PostV1NuncSubscriptions(params *PostV1NuncSubscriptionsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostV1NuncSubscriptionsCreated, error)

PostV1NuncSubscriptions subscribes to status page updates

Subscribe to status page updates

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 {
	DeleteV1NuncSubscriptionsUnsubscribeToken(params *DeleteV1NuncSubscriptionsUnsubscribeTokenParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteV1NuncSubscriptionsUnsubscribeTokenOK, error)

	PostV1NuncSubscriptions(params *PostV1NuncSubscriptionsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostV1NuncSubscriptionsCreated, 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 nunc API client.

type DeleteV1NuncSubscriptionsUnsubscribeTokenOK

type DeleteV1NuncSubscriptionsUnsubscribeTokenOK struct {
	Payload *models.NuncNuncSubscription
}

DeleteV1NuncSubscriptionsUnsubscribeTokenOK describes a response with status code 200, with default header values.

Unsubscribe from status page updates

func NewDeleteV1NuncSubscriptionsUnsubscribeTokenOK

func NewDeleteV1NuncSubscriptionsUnsubscribeTokenOK() *DeleteV1NuncSubscriptionsUnsubscribeTokenOK

NewDeleteV1NuncSubscriptionsUnsubscribeTokenOK creates a DeleteV1NuncSubscriptionsUnsubscribeTokenOK with default headers values

func (*DeleteV1NuncSubscriptionsUnsubscribeTokenOK) Error

func (*DeleteV1NuncSubscriptionsUnsubscribeTokenOK) GetPayload

func (*DeleteV1NuncSubscriptionsUnsubscribeTokenOK) IsClientError

IsClientError returns true when this delete v1 nunc subscriptions unsubscribe token o k response has a 4xx status code

func (*DeleteV1NuncSubscriptionsUnsubscribeTokenOK) IsCode

IsCode returns true when this delete v1 nunc subscriptions unsubscribe token o k response a status code equal to that given

func (*DeleteV1NuncSubscriptionsUnsubscribeTokenOK) IsRedirect

IsRedirect returns true when this delete v1 nunc subscriptions unsubscribe token o k response has a 3xx status code

func (*DeleteV1NuncSubscriptionsUnsubscribeTokenOK) IsServerError

IsServerError returns true when this delete v1 nunc subscriptions unsubscribe token o k response has a 5xx status code

func (*DeleteV1NuncSubscriptionsUnsubscribeTokenOK) IsSuccess

IsSuccess returns true when this delete v1 nunc subscriptions unsubscribe token o k response has a 2xx status code

func (*DeleteV1NuncSubscriptionsUnsubscribeTokenOK) String

type DeleteV1NuncSubscriptionsUnsubscribeTokenParams

type DeleteV1NuncSubscriptionsUnsubscribeTokenParams struct {

	// UnsubscribeToken.
	UnsubscribeToken string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

DeleteV1NuncSubscriptionsUnsubscribeTokenParams contains all the parameters to send to the API endpoint

for the delete v1 nunc subscriptions unsubscribe token operation.

Typically these are written to a http.Request.

func NewDeleteV1NuncSubscriptionsUnsubscribeTokenParams

func NewDeleteV1NuncSubscriptionsUnsubscribeTokenParams() *DeleteV1NuncSubscriptionsUnsubscribeTokenParams

NewDeleteV1NuncSubscriptionsUnsubscribeTokenParams creates a new DeleteV1NuncSubscriptionsUnsubscribeTokenParams 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 NewDeleteV1NuncSubscriptionsUnsubscribeTokenParamsWithContext

func NewDeleteV1NuncSubscriptionsUnsubscribeTokenParamsWithContext(ctx context.Context) *DeleteV1NuncSubscriptionsUnsubscribeTokenParams

NewDeleteV1NuncSubscriptionsUnsubscribeTokenParamsWithContext creates a new DeleteV1NuncSubscriptionsUnsubscribeTokenParams object with the ability to set a context for a request.

func NewDeleteV1NuncSubscriptionsUnsubscribeTokenParamsWithHTTPClient

func NewDeleteV1NuncSubscriptionsUnsubscribeTokenParamsWithHTTPClient(client *http.Client) *DeleteV1NuncSubscriptionsUnsubscribeTokenParams

NewDeleteV1NuncSubscriptionsUnsubscribeTokenParamsWithHTTPClient creates a new DeleteV1NuncSubscriptionsUnsubscribeTokenParams object with the ability to set a custom HTTPClient for a request.

func NewDeleteV1NuncSubscriptionsUnsubscribeTokenParamsWithTimeout

func NewDeleteV1NuncSubscriptionsUnsubscribeTokenParamsWithTimeout(timeout time.Duration) *DeleteV1NuncSubscriptionsUnsubscribeTokenParams

NewDeleteV1NuncSubscriptionsUnsubscribeTokenParamsWithTimeout creates a new DeleteV1NuncSubscriptionsUnsubscribeTokenParams object with the ability to set a timeout on a request.

func (*DeleteV1NuncSubscriptionsUnsubscribeTokenParams) SetContext

SetContext adds the context to the delete v1 nunc subscriptions unsubscribe token params

func (*DeleteV1NuncSubscriptionsUnsubscribeTokenParams) SetDefaults

SetDefaults hydrates default values in the delete v1 nunc subscriptions unsubscribe token params (not the query body).

All values with no default are reset to their zero value.

func (*DeleteV1NuncSubscriptionsUnsubscribeTokenParams) SetHTTPClient

SetHTTPClient adds the HTTPClient to the delete v1 nunc subscriptions unsubscribe token params

func (*DeleteV1NuncSubscriptionsUnsubscribeTokenParams) SetTimeout

SetTimeout adds the timeout to the delete v1 nunc subscriptions unsubscribe token params

func (*DeleteV1NuncSubscriptionsUnsubscribeTokenParams) SetUnsubscribeToken

func (o *DeleteV1NuncSubscriptionsUnsubscribeTokenParams) SetUnsubscribeToken(unsubscribeToken string)

SetUnsubscribeToken adds the unsubscribeToken to the delete v1 nunc subscriptions unsubscribe token params

func (*DeleteV1NuncSubscriptionsUnsubscribeTokenParams) WithContext

WithContext adds the context to the delete v1 nunc subscriptions unsubscribe token params

func (*DeleteV1NuncSubscriptionsUnsubscribeTokenParams) WithDefaults

WithDefaults hydrates default values in the delete v1 nunc subscriptions unsubscribe token params (not the query body).

All values with no default are reset to their zero value.

func (*DeleteV1NuncSubscriptionsUnsubscribeTokenParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the delete v1 nunc subscriptions unsubscribe token params

func (*DeleteV1NuncSubscriptionsUnsubscribeTokenParams) WithTimeout

WithTimeout adds the timeout to the delete v1 nunc subscriptions unsubscribe token params

func (*DeleteV1NuncSubscriptionsUnsubscribeTokenParams) WithUnsubscribeToken

WithUnsubscribeToken adds the unsubscribeToken to the delete v1 nunc subscriptions unsubscribe token params

func (*DeleteV1NuncSubscriptionsUnsubscribeTokenParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type DeleteV1NuncSubscriptionsUnsubscribeTokenReader

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

DeleteV1NuncSubscriptionsUnsubscribeTokenReader is a Reader for the DeleteV1NuncSubscriptionsUnsubscribeToken structure.

func (*DeleteV1NuncSubscriptionsUnsubscribeTokenReader) ReadResponse

func (o *DeleteV1NuncSubscriptionsUnsubscribeTokenReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type PostV1NuncSubscriptionsCreated

type PostV1NuncSubscriptionsCreated struct {
	Payload *models.NuncNuncSubscription
}

PostV1NuncSubscriptionsCreated describes a response with status code 201, with default header values.

Subscribe to status page updates

func NewPostV1NuncSubscriptionsCreated

func NewPostV1NuncSubscriptionsCreated() *PostV1NuncSubscriptionsCreated

NewPostV1NuncSubscriptionsCreated creates a PostV1NuncSubscriptionsCreated with default headers values

func (*PostV1NuncSubscriptionsCreated) Error

func (*PostV1NuncSubscriptionsCreated) GetPayload

func (*PostV1NuncSubscriptionsCreated) IsClientError

func (o *PostV1NuncSubscriptionsCreated) IsClientError() bool

IsClientError returns true when this post v1 nunc subscriptions created response has a 4xx status code

func (*PostV1NuncSubscriptionsCreated) IsCode

func (o *PostV1NuncSubscriptionsCreated) IsCode(code int) bool

IsCode returns true when this post v1 nunc subscriptions created response a status code equal to that given

func (*PostV1NuncSubscriptionsCreated) IsRedirect

func (o *PostV1NuncSubscriptionsCreated) IsRedirect() bool

IsRedirect returns true when this post v1 nunc subscriptions created response has a 3xx status code

func (*PostV1NuncSubscriptionsCreated) IsServerError

func (o *PostV1NuncSubscriptionsCreated) IsServerError() bool

IsServerError returns true when this post v1 nunc subscriptions created response has a 5xx status code

func (*PostV1NuncSubscriptionsCreated) IsSuccess

func (o *PostV1NuncSubscriptionsCreated) IsSuccess() bool

IsSuccess returns true when this post v1 nunc subscriptions created response has a 2xx status code

func (*PostV1NuncSubscriptionsCreated) String

type PostV1NuncSubscriptionsParams

type PostV1NuncSubscriptionsParams struct {

	// PostV1NuncSubscriptions.
	PostV1NuncSubscriptions *models.PostV1NuncSubscriptions

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

PostV1NuncSubscriptionsParams contains all the parameters to send to the API endpoint

for the post v1 nunc subscriptions operation.

Typically these are written to a http.Request.

func NewPostV1NuncSubscriptionsParams

func NewPostV1NuncSubscriptionsParams() *PostV1NuncSubscriptionsParams

NewPostV1NuncSubscriptionsParams creates a new PostV1NuncSubscriptionsParams 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 NewPostV1NuncSubscriptionsParamsWithContext

func NewPostV1NuncSubscriptionsParamsWithContext(ctx context.Context) *PostV1NuncSubscriptionsParams

NewPostV1NuncSubscriptionsParamsWithContext creates a new PostV1NuncSubscriptionsParams object with the ability to set a context for a request.

func NewPostV1NuncSubscriptionsParamsWithHTTPClient

func NewPostV1NuncSubscriptionsParamsWithHTTPClient(client *http.Client) *PostV1NuncSubscriptionsParams

NewPostV1NuncSubscriptionsParamsWithHTTPClient creates a new PostV1NuncSubscriptionsParams object with the ability to set a custom HTTPClient for a request.

func NewPostV1NuncSubscriptionsParamsWithTimeout

func NewPostV1NuncSubscriptionsParamsWithTimeout(timeout time.Duration) *PostV1NuncSubscriptionsParams

NewPostV1NuncSubscriptionsParamsWithTimeout creates a new PostV1NuncSubscriptionsParams object with the ability to set a timeout on a request.

func (*PostV1NuncSubscriptionsParams) SetContext

func (o *PostV1NuncSubscriptionsParams) SetContext(ctx context.Context)

SetContext adds the context to the post v1 nunc subscriptions params

func (*PostV1NuncSubscriptionsParams) SetDefaults

func (o *PostV1NuncSubscriptionsParams) SetDefaults()

SetDefaults hydrates default values in the post v1 nunc subscriptions params (not the query body).

All values with no default are reset to their zero value.

func (*PostV1NuncSubscriptionsParams) SetHTTPClient

func (o *PostV1NuncSubscriptionsParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the post v1 nunc subscriptions params

func (*PostV1NuncSubscriptionsParams) SetPostV1NuncSubscriptions

func (o *PostV1NuncSubscriptionsParams) SetPostV1NuncSubscriptions(postV1NuncSubscriptions *models.PostV1NuncSubscriptions)

SetPostV1NuncSubscriptions adds the postV1NuncSubscriptions to the post v1 nunc subscriptions params

func (*PostV1NuncSubscriptionsParams) SetTimeout

func (o *PostV1NuncSubscriptionsParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the post v1 nunc subscriptions params

func (*PostV1NuncSubscriptionsParams) WithContext

WithContext adds the context to the post v1 nunc subscriptions params

func (*PostV1NuncSubscriptionsParams) WithDefaults

WithDefaults hydrates default values in the post v1 nunc subscriptions params (not the query body).

All values with no default are reset to their zero value.

func (*PostV1NuncSubscriptionsParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the post v1 nunc subscriptions params

func (*PostV1NuncSubscriptionsParams) WithPostV1NuncSubscriptions

func (o *PostV1NuncSubscriptionsParams) WithPostV1NuncSubscriptions(postV1NuncSubscriptions *models.PostV1NuncSubscriptions) *PostV1NuncSubscriptionsParams

WithPostV1NuncSubscriptions adds the postV1NuncSubscriptions to the post v1 nunc subscriptions params

func (*PostV1NuncSubscriptionsParams) WithTimeout

WithTimeout adds the timeout to the post v1 nunc subscriptions params

func (*PostV1NuncSubscriptionsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type PostV1NuncSubscriptionsReader

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

PostV1NuncSubscriptionsReader is a Reader for the PostV1NuncSubscriptions structure.

func (*PostV1NuncSubscriptionsReader) ReadResponse

func (o *PostV1NuncSubscriptionsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

Jump to

Keyboard shortcuts

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