Documentation ¶
Index ¶
- type Client
- func (a *Client) PostDeviceCallback(params *PostDeviceCallbackParams, opts ...ClientOption) (*PostDeviceCallbackOK, error)
- func (a *Client) PostDeviceFlow(params *PostDeviceFlowParams, opts ...ClientOption) (*PostDeviceFlowOK, error)
- func (a *Client) PostDevicePoll(params *PostDevicePollParams, opts ...ClientOption) (*PostDevicePollOK, error)
- func (a *Client) PostMagicFlow(params *PostMagicFlowParams, opts ...ClientOption) (*PostMagicFlowOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientOption
- type ClientService
- type PostDeviceCallbackBadRequest
- func (o *PostDeviceCallbackBadRequest) Code() int
- func (o *PostDeviceCallbackBadRequest) Error() string
- func (o *PostDeviceCallbackBadRequest) GetPayload() string
- func (o *PostDeviceCallbackBadRequest) IsClientError() bool
- func (o *PostDeviceCallbackBadRequest) IsCode(code int) bool
- func (o *PostDeviceCallbackBadRequest) IsRedirect() bool
- func (o *PostDeviceCallbackBadRequest) IsServerError() bool
- func (o *PostDeviceCallbackBadRequest) IsSuccess() bool
- func (o *PostDeviceCallbackBadRequest) String() string
- type PostDeviceCallbackInternalServerError
- func (o *PostDeviceCallbackInternalServerError) Code() int
- func (o *PostDeviceCallbackInternalServerError) Error() string
- func (o *PostDeviceCallbackInternalServerError) GetPayload() string
- func (o *PostDeviceCallbackInternalServerError) IsClientError() bool
- func (o *PostDeviceCallbackInternalServerError) IsCode(code int) bool
- func (o *PostDeviceCallbackInternalServerError) IsRedirect() bool
- func (o *PostDeviceCallbackInternalServerError) IsServerError() bool
- func (o *PostDeviceCallbackInternalServerError) IsSuccess() bool
- func (o *PostDeviceCallbackInternalServerError) String() string
- type PostDeviceCallbackOK
- func (o *PostDeviceCallbackOK) Code() int
- func (o *PostDeviceCallbackOK) Error() string
- func (o *PostDeviceCallbackOK) GetPayload() *models.ModelsDeviceCallbackResponse
- func (o *PostDeviceCallbackOK) IsClientError() bool
- func (o *PostDeviceCallbackOK) IsCode(code int) bool
- func (o *PostDeviceCallbackOK) IsRedirect() bool
- func (o *PostDeviceCallbackOK) IsServerError() bool
- func (o *PostDeviceCallbackOK) IsSuccess() bool
- func (o *PostDeviceCallbackOK) String() string
- type PostDeviceCallbackParams
- func NewPostDeviceCallbackParams() *PostDeviceCallbackParams
- func NewPostDeviceCallbackParamsWithContext(ctx context.Context) *PostDeviceCallbackParams
- func NewPostDeviceCallbackParamsWithHTTPClient(client *http.Client) *PostDeviceCallbackParams
- func NewPostDeviceCallbackParamsWithTimeout(timeout time.Duration) *PostDeviceCallbackParams
- func (o *PostDeviceCallbackParams) SetCode(code string)
- func (o *PostDeviceCallbackParams) SetContext(ctx context.Context)
- func (o *PostDeviceCallbackParams) SetDefaults()
- func (o *PostDeviceCallbackParams) SetHTTPClient(client *http.Client)
- func (o *PostDeviceCallbackParams) SetTimeout(timeout time.Duration)
- func (o *PostDeviceCallbackParams) WithCode(code string) *PostDeviceCallbackParams
- func (o *PostDeviceCallbackParams) WithContext(ctx context.Context) *PostDeviceCallbackParams
- func (o *PostDeviceCallbackParams) WithDefaults() *PostDeviceCallbackParams
- func (o *PostDeviceCallbackParams) WithHTTPClient(client *http.Client) *PostDeviceCallbackParams
- func (o *PostDeviceCallbackParams) WithTimeout(timeout time.Duration) *PostDeviceCallbackParams
- func (o *PostDeviceCallbackParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type PostDeviceCallbackReader
- type PostDeviceCallbackUnauthorized
- func (o *PostDeviceCallbackUnauthorized) Code() int
- func (o *PostDeviceCallbackUnauthorized) Error() string
- func (o *PostDeviceCallbackUnauthorized) GetPayload() string
- func (o *PostDeviceCallbackUnauthorized) IsClientError() bool
- func (o *PostDeviceCallbackUnauthorized) IsCode(code int) bool
- func (o *PostDeviceCallbackUnauthorized) IsRedirect() bool
- func (o *PostDeviceCallbackUnauthorized) IsServerError() bool
- func (o *PostDeviceCallbackUnauthorized) IsSuccess() bool
- func (o *PostDeviceCallbackUnauthorized) String() string
- type PostDeviceFlowInternalServerError
- func (o *PostDeviceFlowInternalServerError) Code() int
- func (o *PostDeviceFlowInternalServerError) Error() string
- func (o *PostDeviceFlowInternalServerError) GetPayload() string
- func (o *PostDeviceFlowInternalServerError) IsClientError() bool
- func (o *PostDeviceFlowInternalServerError) IsCode(code int) bool
- func (o *PostDeviceFlowInternalServerError) IsRedirect() bool
- func (o *PostDeviceFlowInternalServerError) IsServerError() bool
- func (o *PostDeviceFlowInternalServerError) IsSuccess() bool
- func (o *PostDeviceFlowInternalServerError) String() string
- type PostDeviceFlowOK
- func (o *PostDeviceFlowOK) Code() int
- func (o *PostDeviceFlowOK) Error() string
- func (o *PostDeviceFlowOK) GetPayload() *models.ModelsDeviceFlowResponse
- func (o *PostDeviceFlowOK) IsClientError() bool
- func (o *PostDeviceFlowOK) IsCode(code int) bool
- func (o *PostDeviceFlowOK) IsRedirect() bool
- func (o *PostDeviceFlowOK) IsServerError() bool
- func (o *PostDeviceFlowOK) IsSuccess() bool
- func (o *PostDeviceFlowOK) String() string
- type PostDeviceFlowParams
- func NewPostDeviceFlowParams() *PostDeviceFlowParams
- func NewPostDeviceFlowParamsWithContext(ctx context.Context) *PostDeviceFlowParams
- func NewPostDeviceFlowParamsWithHTTPClient(client *http.Client) *PostDeviceFlowParams
- func NewPostDeviceFlowParamsWithTimeout(timeout time.Duration) *PostDeviceFlowParams
- func (o *PostDeviceFlowParams) SetContext(ctx context.Context)
- func (o *PostDeviceFlowParams) SetDefaults()
- func (o *PostDeviceFlowParams) SetHTTPClient(client *http.Client)
- func (o *PostDeviceFlowParams) SetTimeout(timeout time.Duration)
- func (o *PostDeviceFlowParams) WithContext(ctx context.Context) *PostDeviceFlowParams
- func (o *PostDeviceFlowParams) WithDefaults() *PostDeviceFlowParams
- func (o *PostDeviceFlowParams) WithHTTPClient(client *http.Client) *PostDeviceFlowParams
- func (o *PostDeviceFlowParams) WithTimeout(timeout time.Duration) *PostDeviceFlowParams
- func (o *PostDeviceFlowParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type PostDeviceFlowReader
- type PostDeviceFlowUnauthorized
- func (o *PostDeviceFlowUnauthorized) Code() int
- func (o *PostDeviceFlowUnauthorized) Error() string
- func (o *PostDeviceFlowUnauthorized) GetPayload() string
- func (o *PostDeviceFlowUnauthorized) IsClientError() bool
- func (o *PostDeviceFlowUnauthorized) IsCode(code int) bool
- func (o *PostDeviceFlowUnauthorized) IsRedirect() bool
- func (o *PostDeviceFlowUnauthorized) IsServerError() bool
- func (o *PostDeviceFlowUnauthorized) IsSuccess() bool
- func (o *PostDeviceFlowUnauthorized) String() string
- type PostDevicePollBadRequest
- func (o *PostDevicePollBadRequest) Code() int
- func (o *PostDevicePollBadRequest) Error() string
- func (o *PostDevicePollBadRequest) GetPayload() string
- func (o *PostDevicePollBadRequest) IsClientError() bool
- func (o *PostDevicePollBadRequest) IsCode(code int) bool
- func (o *PostDevicePollBadRequest) IsRedirect() bool
- func (o *PostDevicePollBadRequest) IsServerError() bool
- func (o *PostDevicePollBadRequest) IsSuccess() bool
- func (o *PostDevicePollBadRequest) String() string
- type PostDevicePollForbidden
- func (o *PostDevicePollForbidden) Code() int
- func (o *PostDevicePollForbidden) Error() string
- func (o *PostDevicePollForbidden) GetPayload() string
- func (o *PostDevicePollForbidden) IsClientError() bool
- func (o *PostDevicePollForbidden) IsCode(code int) bool
- func (o *PostDevicePollForbidden) IsRedirect() bool
- func (o *PostDevicePollForbidden) IsServerError() bool
- func (o *PostDevicePollForbidden) IsSuccess() bool
- func (o *PostDevicePollForbidden) String() string
- type PostDevicePollInternalServerError
- func (o *PostDevicePollInternalServerError) Code() int
- func (o *PostDevicePollInternalServerError) Error() string
- func (o *PostDevicePollInternalServerError) GetPayload() string
- func (o *PostDevicePollInternalServerError) IsClientError() bool
- func (o *PostDevicePollInternalServerError) IsCode(code int) bool
- func (o *PostDevicePollInternalServerError) IsRedirect() bool
- func (o *PostDevicePollInternalServerError) IsServerError() bool
- func (o *PostDevicePollInternalServerError) IsSuccess() bool
- func (o *PostDevicePollInternalServerError) String() string
- type PostDevicePollOK
- func (o *PostDevicePollOK) Code() int
- func (o *PostDevicePollOK) Error() string
- func (o *PostDevicePollOK) GetPayload() string
- func (o *PostDevicePollOK) IsClientError() bool
- func (o *PostDevicePollOK) IsCode(code int) bool
- func (o *PostDevicePollOK) IsRedirect() bool
- func (o *PostDevicePollOK) IsServerError() bool
- func (o *PostDevicePollOK) IsSuccess() bool
- func (o *PostDevicePollOK) String() string
- type PostDevicePollParams
- func NewPostDevicePollParams() *PostDevicePollParams
- func NewPostDevicePollParamsWithContext(ctx context.Context) *PostDevicePollParams
- func NewPostDevicePollParamsWithHTTPClient(client *http.Client) *PostDevicePollParams
- func NewPostDevicePollParamsWithTimeout(timeout time.Duration) *PostDevicePollParams
- func (o *PostDevicePollParams) SetCode(code string)
- func (o *PostDevicePollParams) SetContext(ctx context.Context)
- func (o *PostDevicePollParams) SetDefaults()
- func (o *PostDevicePollParams) SetHTTPClient(client *http.Client)
- func (o *PostDevicePollParams) SetTimeout(timeout time.Duration)
- func (o *PostDevicePollParams) WithCode(code string) *PostDevicePollParams
- func (o *PostDevicePollParams) WithContext(ctx context.Context) *PostDevicePollParams
- func (o *PostDevicePollParams) WithDefaults() *PostDevicePollParams
- func (o *PostDevicePollParams) WithHTTPClient(client *http.Client) *PostDevicePollParams
- func (o *PostDevicePollParams) WithTimeout(timeout time.Duration) *PostDevicePollParams
- func (o *PostDevicePollParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type PostDevicePollReader
- type PostDevicePollTooManyRequests
- func (o *PostDevicePollTooManyRequests) Code() int
- func (o *PostDevicePollTooManyRequests) Error() string
- func (o *PostDevicePollTooManyRequests) GetPayload() string
- func (o *PostDevicePollTooManyRequests) IsClientError() bool
- func (o *PostDevicePollTooManyRequests) IsCode(code int) bool
- func (o *PostDevicePollTooManyRequests) IsRedirect() bool
- func (o *PostDevicePollTooManyRequests) IsServerError() bool
- func (o *PostDevicePollTooManyRequests) IsSuccess() bool
- func (o *PostDevicePollTooManyRequests) String() string
- type PostDevicePollUnauthorized
- func (o *PostDevicePollUnauthorized) Code() int
- func (o *PostDevicePollUnauthorized) Error() string
- func (o *PostDevicePollUnauthorized) GetPayload() string
- func (o *PostDevicePollUnauthorized) IsClientError() bool
- func (o *PostDevicePollUnauthorized) IsCode(code int) bool
- func (o *PostDevicePollUnauthorized) IsRedirect() bool
- func (o *PostDevicePollUnauthorized) IsServerError() bool
- func (o *PostDevicePollUnauthorized) IsSuccess() bool
- func (o *PostDevicePollUnauthorized) String() string
- type PostMagicFlowBadRequest
- func (o *PostMagicFlowBadRequest) Code() int
- func (o *PostMagicFlowBadRequest) Error() string
- func (o *PostMagicFlowBadRequest) GetPayload() string
- func (o *PostMagicFlowBadRequest) IsClientError() bool
- func (o *PostMagicFlowBadRequest) IsCode(code int) bool
- func (o *PostMagicFlowBadRequest) IsRedirect() bool
- func (o *PostMagicFlowBadRequest) IsServerError() bool
- func (o *PostMagicFlowBadRequest) IsSuccess() bool
- func (o *PostMagicFlowBadRequest) String() string
- type PostMagicFlowInternalServerError
- func (o *PostMagicFlowInternalServerError) Code() int
- func (o *PostMagicFlowInternalServerError) Error() string
- func (o *PostMagicFlowInternalServerError) GetPayload() string
- func (o *PostMagicFlowInternalServerError) IsClientError() bool
- func (o *PostMagicFlowInternalServerError) IsCode(code int) bool
- func (o *PostMagicFlowInternalServerError) IsRedirect() bool
- func (o *PostMagicFlowInternalServerError) IsServerError() bool
- func (o *PostMagicFlowInternalServerError) IsSuccess() bool
- func (o *PostMagicFlowInternalServerError) String() string
- type PostMagicFlowOK
- func (o *PostMagicFlowOK) Code() int
- func (o *PostMagicFlowOK) Error() string
- func (o *PostMagicFlowOK) GetPayload() string
- func (o *PostMagicFlowOK) IsClientError() bool
- func (o *PostMagicFlowOK) IsCode(code int) bool
- func (o *PostMagicFlowOK) IsRedirect() bool
- func (o *PostMagicFlowOK) IsServerError() bool
- func (o *PostMagicFlowOK) IsSuccess() bool
- func (o *PostMagicFlowOK) String() string
- type PostMagicFlowParams
- func (o *PostMagicFlowParams) SetContext(ctx context.Context)
- func (o *PostMagicFlowParams) SetDefaults()
- func (o *PostMagicFlowParams) SetEmail(email string)
- func (o *PostMagicFlowParams) SetHTTPClient(client *http.Client)
- func (o *PostMagicFlowParams) SetIdentifier(identifier *string)
- func (o *PostMagicFlowParams) SetNext(next *string)
- func (o *PostMagicFlowParams) SetOrganization(organization *string)
- func (o *PostMagicFlowParams) SetTimeout(timeout time.Duration)
- func (o *PostMagicFlowParams) WithContext(ctx context.Context) *PostMagicFlowParams
- func (o *PostMagicFlowParams) WithDefaults() *PostMagicFlowParams
- func (o *PostMagicFlowParams) WithEmail(email string) *PostMagicFlowParams
- func (o *PostMagicFlowParams) WithHTTPClient(client *http.Client) *PostMagicFlowParams
- func (o *PostMagicFlowParams) WithIdentifier(identifier *string) *PostMagicFlowParams
- func (o *PostMagicFlowParams) WithNext(next *string) *PostMagicFlowParams
- func (o *PostMagicFlowParams) WithOrganization(organization *string) *PostMagicFlowParams
- func (o *PostMagicFlowParams) WithTimeout(timeout time.Duration) *PostMagicFlowParams
- func (o *PostMagicFlowParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type PostMagicFlowReader
- type PostMagicFlowUnauthorized
- func (o *PostMagicFlowUnauthorized) Code() int
- func (o *PostMagicFlowUnauthorized) Error() string
- func (o *PostMagicFlowUnauthorized) GetPayload() string
- func (o *PostMagicFlowUnauthorized) IsClientError() bool
- func (o *PostMagicFlowUnauthorized) IsCode(code int) bool
- func (o *PostMagicFlowUnauthorized) IsRedirect() bool
- func (o *PostMagicFlowUnauthorized) IsServerError() bool
- func (o *PostMagicFlowUnauthorized) IsSuccess() bool
- func (o *PostMagicFlowUnauthorized) String() string
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 ¶
func (o *PostDeviceCallbackBadRequest) Code() int
Code gets the status code for the post device callback bad request response
func (*PostDeviceCallbackBadRequest) Error ¶
func (o *PostDeviceCallbackBadRequest) Error() string
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 ¶
func (o *PostDeviceCallbackBadRequest) String() 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 ¶
func (o *PostDeviceCallbackInternalServerError) Code() int
Code gets the status code for the post device callback internal server error response
func (*PostDeviceCallbackInternalServerError) Error ¶
func (o *PostDeviceCallbackInternalServerError) Error() string
func (*PostDeviceCallbackInternalServerError) GetPayload ¶
func (o *PostDeviceCallbackInternalServerError) GetPayload() string
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 ¶
func (o *PostDeviceCallbackInternalServerError) IsCode(code int) bool
IsCode returns true when this post device callback internal server error response a status code equal to that given
func (*PostDeviceCallbackInternalServerError) IsRedirect ¶
func (o *PostDeviceCallbackInternalServerError) IsRedirect() bool
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 ¶
func (o *PostDeviceCallbackInternalServerError) IsSuccess() bool
IsSuccess returns true when this post device callback internal server error response has a 2xx status code
func (*PostDeviceCallbackInternalServerError) String ¶
func (o *PostDeviceCallbackInternalServerError) String() 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 (o *PostDeviceCallbackOK) GetPayload() *models.ModelsDeviceCallbackResponse
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 ¶
func (o *PostDeviceCallbackParams) WithCode(code string) *PostDeviceCallbackParams
WithCode adds the code to the post device callback params
func (*PostDeviceCallbackParams) WithContext ¶
func (o *PostDeviceCallbackParams) WithContext(ctx context.Context) *PostDeviceCallbackParams
WithContext adds the context to the post device callback params
func (*PostDeviceCallbackParams) WithDefaults ¶
func (o *PostDeviceCallbackParams) WithDefaults() *PostDeviceCallbackParams
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 ¶
func (o *PostDeviceCallbackParams) WithTimeout(timeout time.Duration) *PostDeviceCallbackParams
WithTimeout adds the timeout to the post device callback params
func (*PostDeviceCallbackParams) WriteToRequest ¶
func (o *PostDeviceCallbackParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 {
}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 ¶
func (o *PostDeviceCallbackUnauthorized) Code() int
Code gets the status code for the post device callback unauthorized response
func (*PostDeviceCallbackUnauthorized) Error ¶
func (o *PostDeviceCallbackUnauthorized) Error() string
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 ¶
func (o *PostDeviceCallbackUnauthorized) String() 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 ¶
func (o *PostDeviceFlowInternalServerError) Code() int
Code gets the status code for the post device flow internal server error response
func (*PostDeviceFlowInternalServerError) Error ¶
func (o *PostDeviceFlowInternalServerError) Error() string
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 ¶
func (o *PostDeviceFlowInternalServerError) String() 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 (o *PostDeviceFlowOK) GetPayload() *models.ModelsDeviceFlowResponse
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 ¶
func (o *PostDeviceFlowParams) WithContext(ctx context.Context) *PostDeviceFlowParams
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 {
}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 (o *PostDeviceFlowUnauthorized) Error() string
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 ¶
func (o *PostDevicePollInternalServerError) Code() int
Code gets the status code for the post device poll internal server error response
func (*PostDevicePollInternalServerError) Error ¶
func (o *PostDevicePollInternalServerError) Error() string
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 ¶
func (o *PostDevicePollInternalServerError) String() 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 ¶
func (o *PostDevicePollParams) WithCode(code string) *PostDevicePollParams
WithCode adds the code to the post device poll params
func (*PostDevicePollParams) WithContext ¶
func (o *PostDevicePollParams) WithContext(ctx context.Context) *PostDevicePollParams
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 ¶
func (o *PostDevicePollTooManyRequests) Code() int
Code gets the status code for the post device poll too many requests response
func (*PostDevicePollTooManyRequests) Error ¶
func (o *PostDevicePollTooManyRequests) Error() string
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 ¶
func (o *PostDevicePollTooManyRequests) String() string
type PostDevicePollUnauthorized ¶
type PostDevicePollUnauthorized struct {
}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 (o *PostDevicePollUnauthorized) Error() string
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 ¶
func (o *PostMagicFlowInternalServerError) Code() int
Code gets the status code for the post magic flow internal server error response
func (*PostMagicFlowInternalServerError) Error ¶
func (o *PostMagicFlowInternalServerError) Error() string
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 ¶
func (o *PostMagicFlowInternalServerError) String() 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 ¶
func (o *PostMagicFlowParams) WithContext(ctx context.Context) *PostMagicFlowParams
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 {
}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