device

package
v0.2.92 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2024 License: Apache-2.0 Imports: 10 Imported by: 1

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 device API

func (*Client) PostDeviceCallback

func (a *Client) PostDeviceCallback(params *PostDeviceCallbackParams, opts ...ClientOption) (*PostDeviceCallbackOK, error)

PostDeviceCallback devices callback validates the device code and returns the flow identifier

DeviceCallback validates the device code and returns the flow identifier

func (*Client) PostDeviceFlow

func (a *Client) PostDeviceFlow(params *PostDeviceFlowParams, opts ...ClientOption) (*PostDeviceFlowOK, error)

PostDeviceFlow devices flow starts the device code flow

DeviceFlow starts the device code flow

func (*Client) PostDevicePoll

func (a *Client) PostDevicePoll(params *PostDevicePollParams, opts ...ClientOption) (*PostDevicePollOK, error)

PostDevicePoll devices poll polls the device code flow using the user code

DevicePoll polls the device code flow using the user code

func (*Client) PostMagicFlow

func (a *Client) PostMagicFlow(params *PostMagicFlowParams, opts ...ClientOption) (*PostMagicFlowOK, error)

PostMagicFlow magics flow starts the magic link flow

MagicFlow starts the magic link flow

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 {
	PostDeviceCallback(params *PostDeviceCallbackParams, opts ...ClientOption) (*PostDeviceCallbackOK, error)

	PostDeviceFlow(params *PostDeviceFlowParams, opts ...ClientOption) (*PostDeviceFlowOK, error)

	PostDevicePoll(params *PostDevicePollParams, opts ...ClientOption) (*PostDevicePollOK, error)

	PostMagicFlow(params *PostMagicFlowParams, opts ...ClientOption) (*PostMagicFlowOK, 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 device API client.

type PostDeviceCallbackBadRequest

type PostDeviceCallbackBadRequest struct {
	Payload string
}

PostDeviceCallbackBadRequest describes a response with status code 400, with default header values.

Bad Request

func NewPostDeviceCallbackBadRequest

func NewPostDeviceCallbackBadRequest() *PostDeviceCallbackBadRequest

NewPostDeviceCallbackBadRequest creates a PostDeviceCallbackBadRequest with default headers values

func (*PostDeviceCallbackBadRequest) Code

Code gets the status code for the post device callback bad request response

func (*PostDeviceCallbackBadRequest) Error

func (*PostDeviceCallbackBadRequest) GetPayload

func (o *PostDeviceCallbackBadRequest) GetPayload() string

func (*PostDeviceCallbackBadRequest) IsClientError

func (o *PostDeviceCallbackBadRequest) IsClientError() bool

IsClientError returns true when this post device callback bad request response has a 4xx status code

func (*PostDeviceCallbackBadRequest) IsCode

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

IsCode returns true when this post device callback bad request response a status code equal to that given

func (*PostDeviceCallbackBadRequest) IsRedirect

func (o *PostDeviceCallbackBadRequest) IsRedirect() bool

IsRedirect returns true when this post device callback bad request response has a 3xx status code

func (*PostDeviceCallbackBadRequest) IsServerError

func (o *PostDeviceCallbackBadRequest) IsServerError() bool

IsServerError returns true when this post device callback bad request response has a 5xx status code

func (*PostDeviceCallbackBadRequest) IsSuccess

func (o *PostDeviceCallbackBadRequest) IsSuccess() bool

IsSuccess returns true when this post device callback bad request response has a 2xx status code

func (*PostDeviceCallbackBadRequest) String

type PostDeviceCallbackInternalServerError

type PostDeviceCallbackInternalServerError struct {
	Payload string
}

PostDeviceCallbackInternalServerError describes a response with status code 500, with default header values.

Internal Server Error

func NewPostDeviceCallbackInternalServerError

func NewPostDeviceCallbackInternalServerError() *PostDeviceCallbackInternalServerError

NewPostDeviceCallbackInternalServerError creates a PostDeviceCallbackInternalServerError with default headers values

func (*PostDeviceCallbackInternalServerError) Code

Code gets the status code for the post device callback internal server error response

func (*PostDeviceCallbackInternalServerError) Error

func (*PostDeviceCallbackInternalServerError) GetPayload

func (*PostDeviceCallbackInternalServerError) IsClientError

func (o *PostDeviceCallbackInternalServerError) IsClientError() bool

IsClientError returns true when this post device callback internal server error response has a 4xx status code

func (*PostDeviceCallbackInternalServerError) IsCode

IsCode returns true when this post device callback internal server error response a status code equal to that given

func (*PostDeviceCallbackInternalServerError) IsRedirect

IsRedirect returns true when this post device callback internal server error response has a 3xx status code

func (*PostDeviceCallbackInternalServerError) IsServerError

func (o *PostDeviceCallbackInternalServerError) IsServerError() bool

IsServerError returns true when this post device callback internal server error response has a 5xx status code

func (*PostDeviceCallbackInternalServerError) IsSuccess

IsSuccess returns true when this post device callback internal server error response has a 2xx status code

func (*PostDeviceCallbackInternalServerError) String

type PostDeviceCallbackOK

type PostDeviceCallbackOK struct {
	Payload *models.ModelsDeviceCallbackResponse
}

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

OK

func NewPostDeviceCallbackOK

func NewPostDeviceCallbackOK() *PostDeviceCallbackOK

NewPostDeviceCallbackOK creates a PostDeviceCallbackOK with default headers values

func (*PostDeviceCallbackOK) Code

func (o *PostDeviceCallbackOK) Code() int

Code gets the status code for the post device callback o k response

func (*PostDeviceCallbackOK) Error

func (o *PostDeviceCallbackOK) Error() string

func (*PostDeviceCallbackOK) GetPayload

func (*PostDeviceCallbackOK) IsClientError

func (o *PostDeviceCallbackOK) IsClientError() bool

IsClientError returns true when this post device callback o k response has a 4xx status code

func (*PostDeviceCallbackOK) IsCode

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

IsCode returns true when this post device callback o k response a status code equal to that given

func (*PostDeviceCallbackOK) IsRedirect

func (o *PostDeviceCallbackOK) IsRedirect() bool

IsRedirect returns true when this post device callback o k response has a 3xx status code

func (*PostDeviceCallbackOK) IsServerError

func (o *PostDeviceCallbackOK) IsServerError() bool

IsServerError returns true when this post device callback o k response has a 5xx status code

func (*PostDeviceCallbackOK) IsSuccess

func (o *PostDeviceCallbackOK) IsSuccess() bool

IsSuccess returns true when this post device callback o k response has a 2xx status code

func (*PostDeviceCallbackOK) String

func (o *PostDeviceCallbackOK) String() string

type PostDeviceCallbackParams

type PostDeviceCallbackParams struct {

	/* Code.

	   device code
	*/
	Code string

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

PostDeviceCallbackParams contains all the parameters to send to the API endpoint

for the post device callback operation.

Typically these are written to a http.Request.

func NewPostDeviceCallbackParams

func NewPostDeviceCallbackParams() *PostDeviceCallbackParams

NewPostDeviceCallbackParams creates a new PostDeviceCallbackParams 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 NewPostDeviceCallbackParamsWithContext

func NewPostDeviceCallbackParamsWithContext(ctx context.Context) *PostDeviceCallbackParams

NewPostDeviceCallbackParamsWithContext creates a new PostDeviceCallbackParams object with the ability to set a context for a request.

func NewPostDeviceCallbackParamsWithHTTPClient

func NewPostDeviceCallbackParamsWithHTTPClient(client *http.Client) *PostDeviceCallbackParams

NewPostDeviceCallbackParamsWithHTTPClient creates a new PostDeviceCallbackParams object with the ability to set a custom HTTPClient for a request.

func NewPostDeviceCallbackParamsWithTimeout

func NewPostDeviceCallbackParamsWithTimeout(timeout time.Duration) *PostDeviceCallbackParams

NewPostDeviceCallbackParamsWithTimeout creates a new PostDeviceCallbackParams object with the ability to set a timeout on a request.

func (*PostDeviceCallbackParams) SetCode

func (o *PostDeviceCallbackParams) SetCode(code string)

SetCode adds the code to the post device callback params

func (*PostDeviceCallbackParams) SetContext

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

SetContext adds the context to the post device callback params

func (*PostDeviceCallbackParams) SetDefaults

func (o *PostDeviceCallbackParams) SetDefaults()

SetDefaults hydrates default values in the post device callback params (not the query body).

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

func (*PostDeviceCallbackParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the post device callback params

func (*PostDeviceCallbackParams) SetTimeout

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

SetTimeout adds the timeout to the post device callback params

func (*PostDeviceCallbackParams) WithCode

WithCode adds the code to the post device callback params

func (*PostDeviceCallbackParams) WithContext

WithContext adds the context to the post device callback params

func (*PostDeviceCallbackParams) WithDefaults

WithDefaults hydrates default values in the post device callback params (not the query body).

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

func (*PostDeviceCallbackParams) WithHTTPClient

func (o *PostDeviceCallbackParams) WithHTTPClient(client *http.Client) *PostDeviceCallbackParams

WithHTTPClient adds the HTTPClient to the post device callback params

func (*PostDeviceCallbackParams) WithTimeout

WithTimeout adds the timeout to the post device callback params

func (*PostDeviceCallbackParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type PostDeviceCallbackReader

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

PostDeviceCallbackReader is a Reader for the PostDeviceCallback structure.

func (*PostDeviceCallbackReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type PostDeviceCallbackUnauthorized

type PostDeviceCallbackUnauthorized struct {
	Payload string
}

PostDeviceCallbackUnauthorized describes a response with status code 401, with default header values.

Unauthorized

func NewPostDeviceCallbackUnauthorized

func NewPostDeviceCallbackUnauthorized() *PostDeviceCallbackUnauthorized

NewPostDeviceCallbackUnauthorized creates a PostDeviceCallbackUnauthorized with default headers values

func (*PostDeviceCallbackUnauthorized) Code

Code gets the status code for the post device callback unauthorized response

func (*PostDeviceCallbackUnauthorized) Error

func (*PostDeviceCallbackUnauthorized) GetPayload

func (o *PostDeviceCallbackUnauthorized) GetPayload() string

func (*PostDeviceCallbackUnauthorized) IsClientError

func (o *PostDeviceCallbackUnauthorized) IsClientError() bool

IsClientError returns true when this post device callback unauthorized response has a 4xx status code

func (*PostDeviceCallbackUnauthorized) IsCode

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

IsCode returns true when this post device callback unauthorized response a status code equal to that given

func (*PostDeviceCallbackUnauthorized) IsRedirect

func (o *PostDeviceCallbackUnauthorized) IsRedirect() bool

IsRedirect returns true when this post device callback unauthorized response has a 3xx status code

func (*PostDeviceCallbackUnauthorized) IsServerError

func (o *PostDeviceCallbackUnauthorized) IsServerError() bool

IsServerError returns true when this post device callback unauthorized response has a 5xx status code

func (*PostDeviceCallbackUnauthorized) IsSuccess

func (o *PostDeviceCallbackUnauthorized) IsSuccess() bool

IsSuccess returns true when this post device callback unauthorized response has a 2xx status code

func (*PostDeviceCallbackUnauthorized) String

type PostDeviceFlowInternalServerError

type PostDeviceFlowInternalServerError struct {
	Payload string
}

PostDeviceFlowInternalServerError describes a response with status code 500, with default header values.

Internal Server Error

func NewPostDeviceFlowInternalServerError

func NewPostDeviceFlowInternalServerError() *PostDeviceFlowInternalServerError

NewPostDeviceFlowInternalServerError creates a PostDeviceFlowInternalServerError with default headers values

func (*PostDeviceFlowInternalServerError) Code

Code gets the status code for the post device flow internal server error response

func (*PostDeviceFlowInternalServerError) Error

func (*PostDeviceFlowInternalServerError) GetPayload

func (o *PostDeviceFlowInternalServerError) GetPayload() string

func (*PostDeviceFlowInternalServerError) IsClientError

func (o *PostDeviceFlowInternalServerError) IsClientError() bool

IsClientError returns true when this post device flow internal server error response has a 4xx status code

func (*PostDeviceFlowInternalServerError) IsCode

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

IsCode returns true when this post device flow internal server error response a status code equal to that given

func (*PostDeviceFlowInternalServerError) IsRedirect

func (o *PostDeviceFlowInternalServerError) IsRedirect() bool

IsRedirect returns true when this post device flow internal server error response has a 3xx status code

func (*PostDeviceFlowInternalServerError) IsServerError

func (o *PostDeviceFlowInternalServerError) IsServerError() bool

IsServerError returns true when this post device flow internal server error response has a 5xx status code

func (*PostDeviceFlowInternalServerError) IsSuccess

func (o *PostDeviceFlowInternalServerError) IsSuccess() bool

IsSuccess returns true when this post device flow internal server error response has a 2xx status code

func (*PostDeviceFlowInternalServerError) String

type PostDeviceFlowOK

type PostDeviceFlowOK struct {
	Payload *models.ModelsDeviceFlowResponse
}

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

OK

func NewPostDeviceFlowOK

func NewPostDeviceFlowOK() *PostDeviceFlowOK

NewPostDeviceFlowOK creates a PostDeviceFlowOK with default headers values

func (*PostDeviceFlowOK) Code

func (o *PostDeviceFlowOK) Code() int

Code gets the status code for the post device flow o k response

func (*PostDeviceFlowOK) Error

func (o *PostDeviceFlowOK) Error() string

func (*PostDeviceFlowOK) GetPayload

func (*PostDeviceFlowOK) IsClientError

func (o *PostDeviceFlowOK) IsClientError() bool

IsClientError returns true when this post device flow o k response has a 4xx status code

func (*PostDeviceFlowOK) IsCode

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

IsCode returns true when this post device flow o k response a status code equal to that given

func (*PostDeviceFlowOK) IsRedirect

func (o *PostDeviceFlowOK) IsRedirect() bool

IsRedirect returns true when this post device flow o k response has a 3xx status code

func (*PostDeviceFlowOK) IsServerError

func (o *PostDeviceFlowOK) IsServerError() bool

IsServerError returns true when this post device flow o k response has a 5xx status code

func (*PostDeviceFlowOK) IsSuccess

func (o *PostDeviceFlowOK) IsSuccess() bool

IsSuccess returns true when this post device flow o k response has a 2xx status code

func (*PostDeviceFlowOK) String

func (o *PostDeviceFlowOK) String() string

type PostDeviceFlowParams

type PostDeviceFlowParams struct {
	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

PostDeviceFlowParams contains all the parameters to send to the API endpoint

for the post device flow operation.

Typically these are written to a http.Request.

func NewPostDeviceFlowParams

func NewPostDeviceFlowParams() *PostDeviceFlowParams

NewPostDeviceFlowParams creates a new PostDeviceFlowParams 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 NewPostDeviceFlowParamsWithContext

func NewPostDeviceFlowParamsWithContext(ctx context.Context) *PostDeviceFlowParams

NewPostDeviceFlowParamsWithContext creates a new PostDeviceFlowParams object with the ability to set a context for a request.

func NewPostDeviceFlowParamsWithHTTPClient

func NewPostDeviceFlowParamsWithHTTPClient(client *http.Client) *PostDeviceFlowParams

NewPostDeviceFlowParamsWithHTTPClient creates a new PostDeviceFlowParams object with the ability to set a custom HTTPClient for a request.

func NewPostDeviceFlowParamsWithTimeout

func NewPostDeviceFlowParamsWithTimeout(timeout time.Duration) *PostDeviceFlowParams

NewPostDeviceFlowParamsWithTimeout creates a new PostDeviceFlowParams object with the ability to set a timeout on a request.

func (*PostDeviceFlowParams) SetContext

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

SetContext adds the context to the post device flow params

func (*PostDeviceFlowParams) SetDefaults

func (o *PostDeviceFlowParams) SetDefaults()

SetDefaults hydrates default values in the post device flow params (not the query body).

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

func (*PostDeviceFlowParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the post device flow params

func (*PostDeviceFlowParams) SetTimeout

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

SetTimeout adds the timeout to the post device flow params

func (*PostDeviceFlowParams) WithContext

WithContext adds the context to the post device flow params

func (*PostDeviceFlowParams) WithDefaults

func (o *PostDeviceFlowParams) WithDefaults() *PostDeviceFlowParams

WithDefaults hydrates default values in the post device flow params (not the query body).

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

func (*PostDeviceFlowParams) WithHTTPClient

func (o *PostDeviceFlowParams) WithHTTPClient(client *http.Client) *PostDeviceFlowParams

WithHTTPClient adds the HTTPClient to the post device flow params

func (*PostDeviceFlowParams) WithTimeout

func (o *PostDeviceFlowParams) WithTimeout(timeout time.Duration) *PostDeviceFlowParams

WithTimeout adds the timeout to the post device flow params

func (*PostDeviceFlowParams) WriteToRequest

func (o *PostDeviceFlowParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type PostDeviceFlowReader

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

PostDeviceFlowReader is a Reader for the PostDeviceFlow structure.

func (*PostDeviceFlowReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type PostDeviceFlowUnauthorized

type PostDeviceFlowUnauthorized struct {
	Payload string
}

PostDeviceFlowUnauthorized describes a response with status code 401, with default header values.

Unauthorized

func NewPostDeviceFlowUnauthorized

func NewPostDeviceFlowUnauthorized() *PostDeviceFlowUnauthorized

NewPostDeviceFlowUnauthorized creates a PostDeviceFlowUnauthorized with default headers values

func (*PostDeviceFlowUnauthorized) Code

func (o *PostDeviceFlowUnauthorized) Code() int

Code gets the status code for the post device flow unauthorized response

func (*PostDeviceFlowUnauthorized) Error

func (*PostDeviceFlowUnauthorized) GetPayload

func (o *PostDeviceFlowUnauthorized) GetPayload() string

func (*PostDeviceFlowUnauthorized) IsClientError

func (o *PostDeviceFlowUnauthorized) IsClientError() bool

IsClientError returns true when this post device flow unauthorized response has a 4xx status code

func (*PostDeviceFlowUnauthorized) IsCode

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

IsCode returns true when this post device flow unauthorized response a status code equal to that given

func (*PostDeviceFlowUnauthorized) IsRedirect

func (o *PostDeviceFlowUnauthorized) IsRedirect() bool

IsRedirect returns true when this post device flow unauthorized response has a 3xx status code

func (*PostDeviceFlowUnauthorized) IsServerError

func (o *PostDeviceFlowUnauthorized) IsServerError() bool

IsServerError returns true when this post device flow unauthorized response has a 5xx status code

func (*PostDeviceFlowUnauthorized) IsSuccess

func (o *PostDeviceFlowUnauthorized) IsSuccess() bool

IsSuccess returns true when this post device flow unauthorized response has a 2xx status code

func (*PostDeviceFlowUnauthorized) String

func (o *PostDeviceFlowUnauthorized) String() string

type PostDevicePollBadRequest

type PostDevicePollBadRequest struct {
	Payload string
}

PostDevicePollBadRequest describes a response with status code 400, with default header values.

Bad Request

func NewPostDevicePollBadRequest

func NewPostDevicePollBadRequest() *PostDevicePollBadRequest

NewPostDevicePollBadRequest creates a PostDevicePollBadRequest with default headers values

func (*PostDevicePollBadRequest) Code

func (o *PostDevicePollBadRequest) Code() int

Code gets the status code for the post device poll bad request response

func (*PostDevicePollBadRequest) Error

func (o *PostDevicePollBadRequest) Error() string

func (*PostDevicePollBadRequest) GetPayload

func (o *PostDevicePollBadRequest) GetPayload() string

func (*PostDevicePollBadRequest) IsClientError

func (o *PostDevicePollBadRequest) IsClientError() bool

IsClientError returns true when this post device poll bad request response has a 4xx status code

func (*PostDevicePollBadRequest) IsCode

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

IsCode returns true when this post device poll bad request response a status code equal to that given

func (*PostDevicePollBadRequest) IsRedirect

func (o *PostDevicePollBadRequest) IsRedirect() bool

IsRedirect returns true when this post device poll bad request response has a 3xx status code

func (*PostDevicePollBadRequest) IsServerError

func (o *PostDevicePollBadRequest) IsServerError() bool

IsServerError returns true when this post device poll bad request response has a 5xx status code

func (*PostDevicePollBadRequest) IsSuccess

func (o *PostDevicePollBadRequest) IsSuccess() bool

IsSuccess returns true when this post device poll bad request response has a 2xx status code

func (*PostDevicePollBadRequest) String

func (o *PostDevicePollBadRequest) String() string

type PostDevicePollForbidden

type PostDevicePollForbidden struct {
	Payload string
}

PostDevicePollForbidden describes a response with status code 403, with default header values.

Forbidden

func NewPostDevicePollForbidden

func NewPostDevicePollForbidden() *PostDevicePollForbidden

NewPostDevicePollForbidden creates a PostDevicePollForbidden with default headers values

func (*PostDevicePollForbidden) Code

func (o *PostDevicePollForbidden) Code() int

Code gets the status code for the post device poll forbidden response

func (*PostDevicePollForbidden) Error

func (o *PostDevicePollForbidden) Error() string

func (*PostDevicePollForbidden) GetPayload

func (o *PostDevicePollForbidden) GetPayload() string

func (*PostDevicePollForbidden) IsClientError

func (o *PostDevicePollForbidden) IsClientError() bool

IsClientError returns true when this post device poll forbidden response has a 4xx status code

func (*PostDevicePollForbidden) IsCode

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

IsCode returns true when this post device poll forbidden response a status code equal to that given

func (*PostDevicePollForbidden) IsRedirect

func (o *PostDevicePollForbidden) IsRedirect() bool

IsRedirect returns true when this post device poll forbidden response has a 3xx status code

func (*PostDevicePollForbidden) IsServerError

func (o *PostDevicePollForbidden) IsServerError() bool

IsServerError returns true when this post device poll forbidden response has a 5xx status code

func (*PostDevicePollForbidden) IsSuccess

func (o *PostDevicePollForbidden) IsSuccess() bool

IsSuccess returns true when this post device poll forbidden response has a 2xx status code

func (*PostDevicePollForbidden) String

func (o *PostDevicePollForbidden) String() string

type PostDevicePollInternalServerError

type PostDevicePollInternalServerError struct {
	Payload string
}

PostDevicePollInternalServerError describes a response with status code 500, with default header values.

Internal Server Error

func NewPostDevicePollInternalServerError

func NewPostDevicePollInternalServerError() *PostDevicePollInternalServerError

NewPostDevicePollInternalServerError creates a PostDevicePollInternalServerError with default headers values

func (*PostDevicePollInternalServerError) Code

Code gets the status code for the post device poll internal server error response

func (*PostDevicePollInternalServerError) Error

func (*PostDevicePollInternalServerError) GetPayload

func (o *PostDevicePollInternalServerError) GetPayload() string

func (*PostDevicePollInternalServerError) IsClientError

func (o *PostDevicePollInternalServerError) IsClientError() bool

IsClientError returns true when this post device poll internal server error response has a 4xx status code

func (*PostDevicePollInternalServerError) IsCode

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

IsCode returns true when this post device poll internal server error response a status code equal to that given

func (*PostDevicePollInternalServerError) IsRedirect

func (o *PostDevicePollInternalServerError) IsRedirect() bool

IsRedirect returns true when this post device poll internal server error response has a 3xx status code

func (*PostDevicePollInternalServerError) IsServerError

func (o *PostDevicePollInternalServerError) IsServerError() bool

IsServerError returns true when this post device poll internal server error response has a 5xx status code

func (*PostDevicePollInternalServerError) IsSuccess

func (o *PostDevicePollInternalServerError) IsSuccess() bool

IsSuccess returns true when this post device poll internal server error response has a 2xx status code

func (*PostDevicePollInternalServerError) String

type PostDevicePollOK

type PostDevicePollOK struct {
	Payload string
}

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

OK

func NewPostDevicePollOK

func NewPostDevicePollOK() *PostDevicePollOK

NewPostDevicePollOK creates a PostDevicePollOK with default headers values

func (*PostDevicePollOK) Code

func (o *PostDevicePollOK) Code() int

Code gets the status code for the post device poll o k response

func (*PostDevicePollOK) Error

func (o *PostDevicePollOK) Error() string

func (*PostDevicePollOK) GetPayload

func (o *PostDevicePollOK) GetPayload() string

func (*PostDevicePollOK) IsClientError

func (o *PostDevicePollOK) IsClientError() bool

IsClientError returns true when this post device poll o k response has a 4xx status code

func (*PostDevicePollOK) IsCode

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

IsCode returns true when this post device poll o k response a status code equal to that given

func (*PostDevicePollOK) IsRedirect

func (o *PostDevicePollOK) IsRedirect() bool

IsRedirect returns true when this post device poll o k response has a 3xx status code

func (*PostDevicePollOK) IsServerError

func (o *PostDevicePollOK) IsServerError() bool

IsServerError returns true when this post device poll o k response has a 5xx status code

func (*PostDevicePollOK) IsSuccess

func (o *PostDevicePollOK) IsSuccess() bool

IsSuccess returns true when this post device poll o k response has a 2xx status code

func (*PostDevicePollOK) String

func (o *PostDevicePollOK) String() string

type PostDevicePollParams

type PostDevicePollParams struct {

	/* Code.

	   user code
	*/
	Code string

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

PostDevicePollParams contains all the parameters to send to the API endpoint

for the post device poll operation.

Typically these are written to a http.Request.

func NewPostDevicePollParams

func NewPostDevicePollParams() *PostDevicePollParams

NewPostDevicePollParams creates a new PostDevicePollParams 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 NewPostDevicePollParamsWithContext

func NewPostDevicePollParamsWithContext(ctx context.Context) *PostDevicePollParams

NewPostDevicePollParamsWithContext creates a new PostDevicePollParams object with the ability to set a context for a request.

func NewPostDevicePollParamsWithHTTPClient

func NewPostDevicePollParamsWithHTTPClient(client *http.Client) *PostDevicePollParams

NewPostDevicePollParamsWithHTTPClient creates a new PostDevicePollParams object with the ability to set a custom HTTPClient for a request.

func NewPostDevicePollParamsWithTimeout

func NewPostDevicePollParamsWithTimeout(timeout time.Duration) *PostDevicePollParams

NewPostDevicePollParamsWithTimeout creates a new PostDevicePollParams object with the ability to set a timeout on a request.

func (*PostDevicePollParams) SetCode

func (o *PostDevicePollParams) SetCode(code string)

SetCode adds the code to the post device poll params

func (*PostDevicePollParams) SetContext

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

SetContext adds the context to the post device poll params

func (*PostDevicePollParams) SetDefaults

func (o *PostDevicePollParams) SetDefaults()

SetDefaults hydrates default values in the post device poll params (not the query body).

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

func (*PostDevicePollParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the post device poll params

func (*PostDevicePollParams) SetTimeout

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

SetTimeout adds the timeout to the post device poll params

func (*PostDevicePollParams) WithCode

WithCode adds the code to the post device poll params

func (*PostDevicePollParams) WithContext

WithContext adds the context to the post device poll params

func (*PostDevicePollParams) WithDefaults

func (o *PostDevicePollParams) WithDefaults() *PostDevicePollParams

WithDefaults hydrates default values in the post device poll params (not the query body).

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

func (*PostDevicePollParams) WithHTTPClient

func (o *PostDevicePollParams) WithHTTPClient(client *http.Client) *PostDevicePollParams

WithHTTPClient adds the HTTPClient to the post device poll params

func (*PostDevicePollParams) WithTimeout

func (o *PostDevicePollParams) WithTimeout(timeout time.Duration) *PostDevicePollParams

WithTimeout adds the timeout to the post device poll params

func (*PostDevicePollParams) WriteToRequest

func (o *PostDevicePollParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type PostDevicePollReader

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

PostDevicePollReader is a Reader for the PostDevicePoll structure.

func (*PostDevicePollReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type PostDevicePollTooManyRequests

type PostDevicePollTooManyRequests struct {
	Payload string
}

PostDevicePollTooManyRequests describes a response with status code 429, with default header values.

Too Many Requests

func NewPostDevicePollTooManyRequests

func NewPostDevicePollTooManyRequests() *PostDevicePollTooManyRequests

NewPostDevicePollTooManyRequests creates a PostDevicePollTooManyRequests with default headers values

func (*PostDevicePollTooManyRequests) Code

Code gets the status code for the post device poll too many requests response

func (*PostDevicePollTooManyRequests) Error

func (*PostDevicePollTooManyRequests) GetPayload

func (o *PostDevicePollTooManyRequests) GetPayload() string

func (*PostDevicePollTooManyRequests) IsClientError

func (o *PostDevicePollTooManyRequests) IsClientError() bool

IsClientError returns true when this post device poll too many requests response has a 4xx status code

func (*PostDevicePollTooManyRequests) IsCode

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

IsCode returns true when this post device poll too many requests response a status code equal to that given

func (*PostDevicePollTooManyRequests) IsRedirect

func (o *PostDevicePollTooManyRequests) IsRedirect() bool

IsRedirect returns true when this post device poll too many requests response has a 3xx status code

func (*PostDevicePollTooManyRequests) IsServerError

func (o *PostDevicePollTooManyRequests) IsServerError() bool

IsServerError returns true when this post device poll too many requests response has a 5xx status code

func (*PostDevicePollTooManyRequests) IsSuccess

func (o *PostDevicePollTooManyRequests) IsSuccess() bool

IsSuccess returns true when this post device poll too many requests response has a 2xx status code

func (*PostDevicePollTooManyRequests) String

type PostDevicePollUnauthorized

type PostDevicePollUnauthorized struct {
	Payload string
}

PostDevicePollUnauthorized describes a response with status code 401, with default header values.

Unauthorized

func NewPostDevicePollUnauthorized

func NewPostDevicePollUnauthorized() *PostDevicePollUnauthorized

NewPostDevicePollUnauthorized creates a PostDevicePollUnauthorized with default headers values

func (*PostDevicePollUnauthorized) Code

func (o *PostDevicePollUnauthorized) Code() int

Code gets the status code for the post device poll unauthorized response

func (*PostDevicePollUnauthorized) Error

func (*PostDevicePollUnauthorized) GetPayload

func (o *PostDevicePollUnauthorized) GetPayload() string

func (*PostDevicePollUnauthorized) IsClientError

func (o *PostDevicePollUnauthorized) IsClientError() bool

IsClientError returns true when this post device poll unauthorized response has a 4xx status code

func (*PostDevicePollUnauthorized) IsCode

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

IsCode returns true when this post device poll unauthorized response a status code equal to that given

func (*PostDevicePollUnauthorized) IsRedirect

func (o *PostDevicePollUnauthorized) IsRedirect() bool

IsRedirect returns true when this post device poll unauthorized response has a 3xx status code

func (*PostDevicePollUnauthorized) IsServerError

func (o *PostDevicePollUnauthorized) IsServerError() bool

IsServerError returns true when this post device poll unauthorized response has a 5xx status code

func (*PostDevicePollUnauthorized) IsSuccess

func (o *PostDevicePollUnauthorized) IsSuccess() bool

IsSuccess returns true when this post device poll unauthorized response has a 2xx status code

func (*PostDevicePollUnauthorized) String

func (o *PostDevicePollUnauthorized) String() string

type PostMagicFlowBadRequest

type PostMagicFlowBadRequest struct {
	Payload string
}

PostMagicFlowBadRequest describes a response with status code 400, with default header values.

Bad Request

func NewPostMagicFlowBadRequest

func NewPostMagicFlowBadRequest() *PostMagicFlowBadRequest

NewPostMagicFlowBadRequest creates a PostMagicFlowBadRequest with default headers values

func (*PostMagicFlowBadRequest) Code

func (o *PostMagicFlowBadRequest) Code() int

Code gets the status code for the post magic flow bad request response

func (*PostMagicFlowBadRequest) Error

func (o *PostMagicFlowBadRequest) Error() string

func (*PostMagicFlowBadRequest) GetPayload

func (o *PostMagicFlowBadRequest) GetPayload() string

func (*PostMagicFlowBadRequest) IsClientError

func (o *PostMagicFlowBadRequest) IsClientError() bool

IsClientError returns true when this post magic flow bad request response has a 4xx status code

func (*PostMagicFlowBadRequest) IsCode

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

IsCode returns true when this post magic flow bad request response a status code equal to that given

func (*PostMagicFlowBadRequest) IsRedirect

func (o *PostMagicFlowBadRequest) IsRedirect() bool

IsRedirect returns true when this post magic flow bad request response has a 3xx status code

func (*PostMagicFlowBadRequest) IsServerError

func (o *PostMagicFlowBadRequest) IsServerError() bool

IsServerError returns true when this post magic flow bad request response has a 5xx status code

func (*PostMagicFlowBadRequest) IsSuccess

func (o *PostMagicFlowBadRequest) IsSuccess() bool

IsSuccess returns true when this post magic flow bad request response has a 2xx status code

func (*PostMagicFlowBadRequest) String

func (o *PostMagicFlowBadRequest) String() string

type PostMagicFlowInternalServerError

type PostMagicFlowInternalServerError struct {
	Payload string
}

PostMagicFlowInternalServerError describes a response with status code 500, with default header values.

Internal Server Error

func NewPostMagicFlowInternalServerError

func NewPostMagicFlowInternalServerError() *PostMagicFlowInternalServerError

NewPostMagicFlowInternalServerError creates a PostMagicFlowInternalServerError with default headers values

func (*PostMagicFlowInternalServerError) Code

Code gets the status code for the post magic flow internal server error response

func (*PostMagicFlowInternalServerError) Error

func (*PostMagicFlowInternalServerError) GetPayload

func (o *PostMagicFlowInternalServerError) GetPayload() string

func (*PostMagicFlowInternalServerError) IsClientError

func (o *PostMagicFlowInternalServerError) IsClientError() bool

IsClientError returns true when this post magic flow internal server error response has a 4xx status code

func (*PostMagicFlowInternalServerError) IsCode

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

IsCode returns true when this post magic flow internal server error response a status code equal to that given

func (*PostMagicFlowInternalServerError) IsRedirect

func (o *PostMagicFlowInternalServerError) IsRedirect() bool

IsRedirect returns true when this post magic flow internal server error response has a 3xx status code

func (*PostMagicFlowInternalServerError) IsServerError

func (o *PostMagicFlowInternalServerError) IsServerError() bool

IsServerError returns true when this post magic flow internal server error response has a 5xx status code

func (*PostMagicFlowInternalServerError) IsSuccess

func (o *PostMagicFlowInternalServerError) IsSuccess() bool

IsSuccess returns true when this post magic flow internal server error response has a 2xx status code

func (*PostMagicFlowInternalServerError) String

type PostMagicFlowOK

type PostMagicFlowOK struct {
	Payload string
}

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

OK

func NewPostMagicFlowOK

func NewPostMagicFlowOK() *PostMagicFlowOK

NewPostMagicFlowOK creates a PostMagicFlowOK with default headers values

func (*PostMagicFlowOK) Code

func (o *PostMagicFlowOK) Code() int

Code gets the status code for the post magic flow o k response

func (*PostMagicFlowOK) Error

func (o *PostMagicFlowOK) Error() string

func (*PostMagicFlowOK) GetPayload

func (o *PostMagicFlowOK) GetPayload() string

func (*PostMagicFlowOK) IsClientError

func (o *PostMagicFlowOK) IsClientError() bool

IsClientError returns true when this post magic flow o k response has a 4xx status code

func (*PostMagicFlowOK) IsCode

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

IsCode returns true when this post magic flow o k response a status code equal to that given

func (*PostMagicFlowOK) IsRedirect

func (o *PostMagicFlowOK) IsRedirect() bool

IsRedirect returns true when this post magic flow o k response has a 3xx status code

func (*PostMagicFlowOK) IsServerError

func (o *PostMagicFlowOK) IsServerError() bool

IsServerError returns true when this post magic flow o k response has a 5xx status code

func (*PostMagicFlowOK) IsSuccess

func (o *PostMagicFlowOK) IsSuccess() bool

IsSuccess returns true when this post magic flow o k response has a 2xx status code

func (*PostMagicFlowOK) String

func (o *PostMagicFlowOK) String() string

type PostMagicFlowParams

type PostMagicFlowParams struct {

	/* Email.

	   email address
	*/
	Email string

	/* Identifier.

	   Device Flow Identifier
	*/
	Identifier *string

	/* Next.

	   Next Redirect URL
	*/
	Next *string

	/* Organization.

	   Organization
	*/
	Organization *string

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

PostMagicFlowParams contains all the parameters to send to the API endpoint

for the post magic flow operation.

Typically these are written to a http.Request.

func NewPostMagicFlowParams

func NewPostMagicFlowParams() *PostMagicFlowParams

NewPostMagicFlowParams creates a new PostMagicFlowParams 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 NewPostMagicFlowParamsWithContext

func NewPostMagicFlowParamsWithContext(ctx context.Context) *PostMagicFlowParams

NewPostMagicFlowParamsWithContext creates a new PostMagicFlowParams object with the ability to set a context for a request.

func NewPostMagicFlowParamsWithHTTPClient

func NewPostMagicFlowParamsWithHTTPClient(client *http.Client) *PostMagicFlowParams

NewPostMagicFlowParamsWithHTTPClient creates a new PostMagicFlowParams object with the ability to set a custom HTTPClient for a request.

func NewPostMagicFlowParamsWithTimeout

func NewPostMagicFlowParamsWithTimeout(timeout time.Duration) *PostMagicFlowParams

NewPostMagicFlowParamsWithTimeout creates a new PostMagicFlowParams object with the ability to set a timeout on a request.

func (*PostMagicFlowParams) SetContext

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

SetContext adds the context to the post magic flow params

func (*PostMagicFlowParams) SetDefaults

func (o *PostMagicFlowParams) SetDefaults()

SetDefaults hydrates default values in the post magic flow params (not the query body).

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

func (*PostMagicFlowParams) SetEmail

func (o *PostMagicFlowParams) SetEmail(email string)

SetEmail adds the email to the post magic flow params

func (*PostMagicFlowParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the post magic flow params

func (*PostMagicFlowParams) SetIdentifier

func (o *PostMagicFlowParams) SetIdentifier(identifier *string)

SetIdentifier adds the identifier to the post magic flow params

func (*PostMagicFlowParams) SetNext

func (o *PostMagicFlowParams) SetNext(next *string)

SetNext adds the next to the post magic flow params

func (*PostMagicFlowParams) SetOrganization

func (o *PostMagicFlowParams) SetOrganization(organization *string)

SetOrganization adds the organization to the post magic flow params

func (*PostMagicFlowParams) SetTimeout

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

SetTimeout adds the timeout to the post magic flow params

func (*PostMagicFlowParams) WithContext

WithContext adds the context to the post magic flow params

func (*PostMagicFlowParams) WithDefaults

func (o *PostMagicFlowParams) WithDefaults() *PostMagicFlowParams

WithDefaults hydrates default values in the post magic flow params (not the query body).

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

func (*PostMagicFlowParams) WithEmail

func (o *PostMagicFlowParams) WithEmail(email string) *PostMagicFlowParams

WithEmail adds the email to the post magic flow params

func (*PostMagicFlowParams) WithHTTPClient

func (o *PostMagicFlowParams) WithHTTPClient(client *http.Client) *PostMagicFlowParams

WithHTTPClient adds the HTTPClient to the post magic flow params

func (*PostMagicFlowParams) WithIdentifier

func (o *PostMagicFlowParams) WithIdentifier(identifier *string) *PostMagicFlowParams

WithIdentifier adds the identifier to the post magic flow params

func (*PostMagicFlowParams) WithNext

func (o *PostMagicFlowParams) WithNext(next *string) *PostMagicFlowParams

WithNext adds the next to the post magic flow params

func (*PostMagicFlowParams) WithOrganization

func (o *PostMagicFlowParams) WithOrganization(organization *string) *PostMagicFlowParams

WithOrganization adds the organization to the post magic flow params

func (*PostMagicFlowParams) WithTimeout

func (o *PostMagicFlowParams) WithTimeout(timeout time.Duration) *PostMagicFlowParams

WithTimeout adds the timeout to the post magic flow params

func (*PostMagicFlowParams) WriteToRequest

func (o *PostMagicFlowParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type PostMagicFlowReader

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

PostMagicFlowReader is a Reader for the PostMagicFlow structure.

func (*PostMagicFlowReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type PostMagicFlowUnauthorized

type PostMagicFlowUnauthorized struct {
	Payload string
}

PostMagicFlowUnauthorized describes a response with status code 401, with default header values.

Unauthorized

func NewPostMagicFlowUnauthorized

func NewPostMagicFlowUnauthorized() *PostMagicFlowUnauthorized

NewPostMagicFlowUnauthorized creates a PostMagicFlowUnauthorized with default headers values

func (*PostMagicFlowUnauthorized) Code

func (o *PostMagicFlowUnauthorized) Code() int

Code gets the status code for the post magic flow unauthorized response

func (*PostMagicFlowUnauthorized) Error

func (o *PostMagicFlowUnauthorized) Error() string

func (*PostMagicFlowUnauthorized) GetPayload

func (o *PostMagicFlowUnauthorized) GetPayload() string

func (*PostMagicFlowUnauthorized) IsClientError

func (o *PostMagicFlowUnauthorized) IsClientError() bool

IsClientError returns true when this post magic flow unauthorized response has a 4xx status code

func (*PostMagicFlowUnauthorized) IsCode

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

IsCode returns true when this post magic flow unauthorized response a status code equal to that given

func (*PostMagicFlowUnauthorized) IsRedirect

func (o *PostMagicFlowUnauthorized) IsRedirect() bool

IsRedirect returns true when this post magic flow unauthorized response has a 3xx status code

func (*PostMagicFlowUnauthorized) IsServerError

func (o *PostMagicFlowUnauthorized) IsServerError() bool

IsServerError returns true when this post magic flow unauthorized response has a 5xx status code

func (*PostMagicFlowUnauthorized) IsSuccess

func (o *PostMagicFlowUnauthorized) IsSuccess() bool

IsSuccess returns true when this post magic flow unauthorized response has a 2xx status code

func (*PostMagicFlowUnauthorized) String

func (o *PostMagicFlowUnauthorized) String() string

Jump to

Keyboard shortcuts

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