Documentation
¶
Index ¶
- type AuthDeviceGetCodeInternalServerError
- func (o *AuthDeviceGetCodeInternalServerError) Code() int
- func (o *AuthDeviceGetCodeInternalServerError) Error() string
- func (o *AuthDeviceGetCodeInternalServerError) GetPayload() *models.ErrorResponse
- func (o *AuthDeviceGetCodeInternalServerError) IsClientError() bool
- func (o *AuthDeviceGetCodeInternalServerError) IsCode(code int) bool
- func (o *AuthDeviceGetCodeInternalServerError) IsRedirect() bool
- func (o *AuthDeviceGetCodeInternalServerError) IsServerError() bool
- func (o *AuthDeviceGetCodeInternalServerError) IsSuccess() bool
- func (o *AuthDeviceGetCodeInternalServerError) String() string
- type AuthDeviceGetCodeOK
- func (o *AuthDeviceGetCodeOK) Code() int
- func (o *AuthDeviceGetCodeOK) Error() string
- func (o *AuthDeviceGetCodeOK) GetPayload() *models.AuthdevicesCode
- func (o *AuthDeviceGetCodeOK) IsClientError() bool
- func (o *AuthDeviceGetCodeOK) IsCode(code int) bool
- func (o *AuthDeviceGetCodeOK) IsRedirect() bool
- func (o *AuthDeviceGetCodeOK) IsServerError() bool
- func (o *AuthDeviceGetCodeOK) IsSuccess() bool
- func (o *AuthDeviceGetCodeOK) String() string
- type AuthDeviceGetCodeParams
- func NewAuthDeviceGetCodeParams() *AuthDeviceGetCodeParams
- func NewAuthDeviceGetCodeParamsWithContext(ctx context.Context) *AuthDeviceGetCodeParams
- func NewAuthDeviceGetCodeParamsWithHTTPClient(client *http.Client) *AuthDeviceGetCodeParams
- func NewAuthDeviceGetCodeParamsWithTimeout(timeout time.Duration) *AuthDeviceGetCodeParams
- func (o *AuthDeviceGetCodeParams) SetContext(ctx context.Context)
- func (o *AuthDeviceGetCodeParams) SetDefaults()
- func (o *AuthDeviceGetCodeParams) SetHTTPClient(client *http.Client)
- func (o *AuthDeviceGetCodeParams) SetTimeout(timeout time.Duration)
- func (o *AuthDeviceGetCodeParams) WithContext(ctx context.Context) *AuthDeviceGetCodeParams
- func (o *AuthDeviceGetCodeParams) WithDefaults() *AuthDeviceGetCodeParams
- func (o *AuthDeviceGetCodeParams) WithHTTPClient(client *http.Client) *AuthDeviceGetCodeParams
- func (o *AuthDeviceGetCodeParams) WithTimeout(timeout time.Duration) *AuthDeviceGetCodeParams
- func (o *AuthDeviceGetCodeParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type AuthDeviceGetCodeReader
- type AuthDeviceGetTokenForbidden
- func (o *AuthDeviceGetTokenForbidden) Code() int
- func (o *AuthDeviceGetTokenForbidden) Error() string
- func (o *AuthDeviceGetTokenForbidden) GetPayload() *models.ErrorResponse
- func (o *AuthDeviceGetTokenForbidden) IsClientError() bool
- func (o *AuthDeviceGetTokenForbidden) IsCode(code int) bool
- func (o *AuthDeviceGetTokenForbidden) IsRedirect() bool
- func (o *AuthDeviceGetTokenForbidden) IsServerError() bool
- func (o *AuthDeviceGetTokenForbidden) IsSuccess() bool
- func (o *AuthDeviceGetTokenForbidden) String() string
- type AuthDeviceGetTokenInternalServerError
- func (o *AuthDeviceGetTokenInternalServerError) Code() int
- func (o *AuthDeviceGetTokenInternalServerError) Error() string
- func (o *AuthDeviceGetTokenInternalServerError) GetPayload() *models.ErrorResponse
- func (o *AuthDeviceGetTokenInternalServerError) IsClientError() bool
- func (o *AuthDeviceGetTokenInternalServerError) IsCode(code int) bool
- func (o *AuthDeviceGetTokenInternalServerError) IsRedirect() bool
- func (o *AuthDeviceGetTokenInternalServerError) IsServerError() bool
- func (o *AuthDeviceGetTokenInternalServerError) IsSuccess() bool
- func (o *AuthDeviceGetTokenInternalServerError) String() string
- type AuthDeviceGetTokenOK
- func (o *AuthDeviceGetTokenOK) Code() int
- func (o *AuthDeviceGetTokenOK) Error() string
- func (o *AuthDeviceGetTokenOK) GetPayload() *models.AuthdevicesToken
- func (o *AuthDeviceGetTokenOK) IsClientError() bool
- func (o *AuthDeviceGetTokenOK) IsCode(code int) bool
- func (o *AuthDeviceGetTokenOK) IsRedirect() bool
- func (o *AuthDeviceGetTokenOK) IsServerError() bool
- func (o *AuthDeviceGetTokenOK) IsSuccess() bool
- func (o *AuthDeviceGetTokenOK) String() string
- type AuthDeviceGetTokenParams
- func NewAuthDeviceGetTokenParams() *AuthDeviceGetTokenParams
- func NewAuthDeviceGetTokenParamsWithContext(ctx context.Context) *AuthDeviceGetTokenParams
- func NewAuthDeviceGetTokenParamsWithHTTPClient(client *http.Client) *AuthDeviceGetTokenParams
- func NewAuthDeviceGetTokenParamsWithTimeout(timeout time.Duration) *AuthDeviceGetTokenParams
- func (o *AuthDeviceGetTokenParams) SetContext(ctx context.Context)
- func (o *AuthDeviceGetTokenParams) SetData(data *models.AuthdevicesTokenInput)
- func (o *AuthDeviceGetTokenParams) SetDefaults()
- func (o *AuthDeviceGetTokenParams) SetHTTPClient(client *http.Client)
- func (o *AuthDeviceGetTokenParams) SetTimeout(timeout time.Duration)
- func (o *AuthDeviceGetTokenParams) WithContext(ctx context.Context) *AuthDeviceGetTokenParams
- func (o *AuthDeviceGetTokenParams) WithData(data *models.AuthdevicesTokenInput) *AuthDeviceGetTokenParams
- func (o *AuthDeviceGetTokenParams) WithDefaults() *AuthDeviceGetTokenParams
- func (o *AuthDeviceGetTokenParams) WithHTTPClient(client *http.Client) *AuthDeviceGetTokenParams
- func (o *AuthDeviceGetTokenParams) WithTimeout(timeout time.Duration) *AuthDeviceGetTokenParams
- func (o *AuthDeviceGetTokenParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type AuthDeviceGetTokenReader
- type AuthDeviceGetTokenTooManyRequests
- func (o *AuthDeviceGetTokenTooManyRequests) Code() int
- func (o *AuthDeviceGetTokenTooManyRequests) Error() string
- func (o *AuthDeviceGetTokenTooManyRequests) GetPayload() *models.ErrorResponse
- func (o *AuthDeviceGetTokenTooManyRequests) IsClientError() bool
- func (o *AuthDeviceGetTokenTooManyRequests) IsCode(code int) bool
- func (o *AuthDeviceGetTokenTooManyRequests) IsRedirect() bool
- func (o *AuthDeviceGetTokenTooManyRequests) IsServerError() bool
- func (o *AuthDeviceGetTokenTooManyRequests) IsSuccess() bool
- func (o *AuthDeviceGetTokenTooManyRequests) String() string
- type AuthDeviceRefreshTokenForbidden
- func (o *AuthDeviceRefreshTokenForbidden) Code() int
- func (o *AuthDeviceRefreshTokenForbidden) Error() string
- func (o *AuthDeviceRefreshTokenForbidden) GetPayload() *models.ErrorResponse
- func (o *AuthDeviceRefreshTokenForbidden) IsClientError() bool
- func (o *AuthDeviceRefreshTokenForbidden) IsCode(code int) bool
- func (o *AuthDeviceRefreshTokenForbidden) IsRedirect() bool
- func (o *AuthDeviceRefreshTokenForbidden) IsServerError() bool
- func (o *AuthDeviceRefreshTokenForbidden) IsSuccess() bool
- func (o *AuthDeviceRefreshTokenForbidden) String() string
- type AuthDeviceRefreshTokenInternalServerError
- func (o *AuthDeviceRefreshTokenInternalServerError) Code() int
- func (o *AuthDeviceRefreshTokenInternalServerError) Error() string
- func (o *AuthDeviceRefreshTokenInternalServerError) GetPayload() *models.ErrorResponse
- func (o *AuthDeviceRefreshTokenInternalServerError) IsClientError() bool
- func (o *AuthDeviceRefreshTokenInternalServerError) IsCode(code int) bool
- func (o *AuthDeviceRefreshTokenInternalServerError) IsRedirect() bool
- func (o *AuthDeviceRefreshTokenInternalServerError) IsServerError() bool
- func (o *AuthDeviceRefreshTokenInternalServerError) IsSuccess() bool
- func (o *AuthDeviceRefreshTokenInternalServerError) String() string
- type AuthDeviceRefreshTokenOK
- func (o *AuthDeviceRefreshTokenOK) Code() int
- func (o *AuthDeviceRefreshTokenOK) Error() string
- func (o *AuthDeviceRefreshTokenOK) GetPayload() *models.AuthdevicesToken
- func (o *AuthDeviceRefreshTokenOK) IsClientError() bool
- func (o *AuthDeviceRefreshTokenOK) IsCode(code int) bool
- func (o *AuthDeviceRefreshTokenOK) IsRedirect() bool
- func (o *AuthDeviceRefreshTokenOK) IsServerError() bool
- func (o *AuthDeviceRefreshTokenOK) IsSuccess() bool
- func (o *AuthDeviceRefreshTokenOK) String() string
- type AuthDeviceRefreshTokenParams
- func NewAuthDeviceRefreshTokenParams() *AuthDeviceRefreshTokenParams
- func NewAuthDeviceRefreshTokenParamsWithContext(ctx context.Context) *AuthDeviceRefreshTokenParams
- func NewAuthDeviceRefreshTokenParamsWithHTTPClient(client *http.Client) *AuthDeviceRefreshTokenParams
- func NewAuthDeviceRefreshTokenParamsWithTimeout(timeout time.Duration) *AuthDeviceRefreshTokenParams
- func (o *AuthDeviceRefreshTokenParams) SetContext(ctx context.Context)
- func (o *AuthDeviceRefreshTokenParams) SetData(data string)
- func (o *AuthDeviceRefreshTokenParams) SetDefaults()
- func (o *AuthDeviceRefreshTokenParams) SetHTTPClient(client *http.Client)
- func (o *AuthDeviceRefreshTokenParams) SetTimeout(timeout time.Duration)
- func (o *AuthDeviceRefreshTokenParams) WithContext(ctx context.Context) *AuthDeviceRefreshTokenParams
- func (o *AuthDeviceRefreshTokenParams) WithData(data string) *AuthDeviceRefreshTokenParams
- func (o *AuthDeviceRefreshTokenParams) WithDefaults() *AuthDeviceRefreshTokenParams
- func (o *AuthDeviceRefreshTokenParams) WithHTTPClient(client *http.Client) *AuthDeviceRefreshTokenParams
- func (o *AuthDeviceRefreshTokenParams) WithTimeout(timeout time.Duration) *AuthDeviceRefreshTokenParams
- func (o *AuthDeviceRefreshTokenParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type AuthDeviceRefreshTokenReader
- type AuthDeviceRefreshTokenTooManyRequests
- func (o *AuthDeviceRefreshTokenTooManyRequests) Code() int
- func (o *AuthDeviceRefreshTokenTooManyRequests) Error() string
- func (o *AuthDeviceRefreshTokenTooManyRequests) GetPayload() *models.ErrorResponse
- func (o *AuthDeviceRefreshTokenTooManyRequests) IsClientError() bool
- func (o *AuthDeviceRefreshTokenTooManyRequests) IsCode(code int) bool
- func (o *AuthDeviceRefreshTokenTooManyRequests) IsRedirect() bool
- func (o *AuthDeviceRefreshTokenTooManyRequests) IsServerError() bool
- func (o *AuthDeviceRefreshTokenTooManyRequests) IsSuccess() bool
- func (o *AuthDeviceRefreshTokenTooManyRequests) String() string
- type Client
- func (a *Client) AuthDeviceGetCode(params *AuthDeviceGetCodeParams, opts ...ClientOption) (*AuthDeviceGetCodeOK, error)
- func (a *Client) AuthDeviceGetToken(params *AuthDeviceGetTokenParams, opts ...ClientOption) (*AuthDeviceGetTokenOK, error)
- func (a *Client) AuthDeviceRefreshToken(params *AuthDeviceRefreshTokenParams, opts ...ClientOption) (*AuthDeviceRefreshTokenOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientOption
- type ClientService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthDeviceGetCodeInternalServerError ¶
type AuthDeviceGetCodeInternalServerError struct {
Payload *models.ErrorResponse
}
AuthDeviceGetCodeInternalServerError describes a response with status code 500, with default header values.
Internal Server Error
func NewAuthDeviceGetCodeInternalServerError ¶
func NewAuthDeviceGetCodeInternalServerError() *AuthDeviceGetCodeInternalServerError
NewAuthDeviceGetCodeInternalServerError creates a AuthDeviceGetCodeInternalServerError with default headers values
func (*AuthDeviceGetCodeInternalServerError) Code ¶
func (o *AuthDeviceGetCodeInternalServerError) Code() int
Code gets the status code for the auth device get code internal server error response
func (*AuthDeviceGetCodeInternalServerError) Error ¶
func (o *AuthDeviceGetCodeInternalServerError) Error() string
func (*AuthDeviceGetCodeInternalServerError) GetPayload ¶
func (o *AuthDeviceGetCodeInternalServerError) GetPayload() *models.ErrorResponse
func (*AuthDeviceGetCodeInternalServerError) IsClientError ¶
func (o *AuthDeviceGetCodeInternalServerError) IsClientError() bool
IsClientError returns true when this auth device get code internal server error response has a 4xx status code
func (*AuthDeviceGetCodeInternalServerError) IsCode ¶
func (o *AuthDeviceGetCodeInternalServerError) IsCode(code int) bool
IsCode returns true when this auth device get code internal server error response a status code equal to that given
func (*AuthDeviceGetCodeInternalServerError) IsRedirect ¶
func (o *AuthDeviceGetCodeInternalServerError) IsRedirect() bool
IsRedirect returns true when this auth device get code internal server error response has a 3xx status code
func (*AuthDeviceGetCodeInternalServerError) IsServerError ¶
func (o *AuthDeviceGetCodeInternalServerError) IsServerError() bool
IsServerError returns true when this auth device get code internal server error response has a 5xx status code
func (*AuthDeviceGetCodeInternalServerError) IsSuccess ¶
func (o *AuthDeviceGetCodeInternalServerError) IsSuccess() bool
IsSuccess returns true when this auth device get code internal server error response has a 2xx status code
func (*AuthDeviceGetCodeInternalServerError) String ¶
func (o *AuthDeviceGetCodeInternalServerError) String() string
type AuthDeviceGetCodeOK ¶
type AuthDeviceGetCodeOK struct {
Payload *models.AuthdevicesCode
}
AuthDeviceGetCodeOK describes a response with status code 200, with default header values.
OK
func NewAuthDeviceGetCodeOK ¶
func NewAuthDeviceGetCodeOK() *AuthDeviceGetCodeOK
NewAuthDeviceGetCodeOK creates a AuthDeviceGetCodeOK with default headers values
func (*AuthDeviceGetCodeOK) Code ¶
func (o *AuthDeviceGetCodeOK) Code() int
Code gets the status code for the auth device get code o k response
func (*AuthDeviceGetCodeOK) Error ¶
func (o *AuthDeviceGetCodeOK) Error() string
func (*AuthDeviceGetCodeOK) GetPayload ¶
func (o *AuthDeviceGetCodeOK) GetPayload() *models.AuthdevicesCode
func (*AuthDeviceGetCodeOK) IsClientError ¶
func (o *AuthDeviceGetCodeOK) IsClientError() bool
IsClientError returns true when this auth device get code o k response has a 4xx status code
func (*AuthDeviceGetCodeOK) IsCode ¶
func (o *AuthDeviceGetCodeOK) IsCode(code int) bool
IsCode returns true when this auth device get code o k response a status code equal to that given
func (*AuthDeviceGetCodeOK) IsRedirect ¶
func (o *AuthDeviceGetCodeOK) IsRedirect() bool
IsRedirect returns true when this auth device get code o k response has a 3xx status code
func (*AuthDeviceGetCodeOK) IsServerError ¶
func (o *AuthDeviceGetCodeOK) IsServerError() bool
IsServerError returns true when this auth device get code o k response has a 5xx status code
func (*AuthDeviceGetCodeOK) IsSuccess ¶
func (o *AuthDeviceGetCodeOK) IsSuccess() bool
IsSuccess returns true when this auth device get code o k response has a 2xx status code
func (*AuthDeviceGetCodeOK) String ¶
func (o *AuthDeviceGetCodeOK) String() string
type AuthDeviceGetCodeParams ¶
type AuthDeviceGetCodeParams struct {
Context context.Context
HTTPClient *http.Client
// contains filtered or unexported fields
}
AuthDeviceGetCodeParams contains all the parameters to send to the API endpoint
for the auth device get code operation. Typically these are written to a http.Request.
func NewAuthDeviceGetCodeParams ¶
func NewAuthDeviceGetCodeParams() *AuthDeviceGetCodeParams
NewAuthDeviceGetCodeParams creates a new AuthDeviceGetCodeParams 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 NewAuthDeviceGetCodeParamsWithContext ¶
func NewAuthDeviceGetCodeParamsWithContext(ctx context.Context) *AuthDeviceGetCodeParams
NewAuthDeviceGetCodeParamsWithContext creates a new AuthDeviceGetCodeParams object with the ability to set a context for a request.
func NewAuthDeviceGetCodeParamsWithHTTPClient ¶
func NewAuthDeviceGetCodeParamsWithHTTPClient(client *http.Client) *AuthDeviceGetCodeParams
NewAuthDeviceGetCodeParamsWithHTTPClient creates a new AuthDeviceGetCodeParams object with the ability to set a custom HTTPClient for a request.
func NewAuthDeviceGetCodeParamsWithTimeout ¶
func NewAuthDeviceGetCodeParamsWithTimeout(timeout time.Duration) *AuthDeviceGetCodeParams
NewAuthDeviceGetCodeParamsWithTimeout creates a new AuthDeviceGetCodeParams object with the ability to set a timeout on a request.
func (*AuthDeviceGetCodeParams) SetContext ¶
func (o *AuthDeviceGetCodeParams) SetContext(ctx context.Context)
SetContext adds the context to the auth device get code params
func (*AuthDeviceGetCodeParams) SetDefaults ¶
func (o *AuthDeviceGetCodeParams) SetDefaults()
SetDefaults hydrates default values in the auth device get code params (not the query body).
All values with no default are reset to their zero value.
func (*AuthDeviceGetCodeParams) SetHTTPClient ¶
func (o *AuthDeviceGetCodeParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the auth device get code params
func (*AuthDeviceGetCodeParams) SetTimeout ¶
func (o *AuthDeviceGetCodeParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the auth device get code params
func (*AuthDeviceGetCodeParams) WithContext ¶
func (o *AuthDeviceGetCodeParams) WithContext(ctx context.Context) *AuthDeviceGetCodeParams
WithContext adds the context to the auth device get code params
func (*AuthDeviceGetCodeParams) WithDefaults ¶
func (o *AuthDeviceGetCodeParams) WithDefaults() *AuthDeviceGetCodeParams
WithDefaults hydrates default values in the auth device get code params (not the query body).
All values with no default are reset to their zero value.
func (*AuthDeviceGetCodeParams) WithHTTPClient ¶
func (o *AuthDeviceGetCodeParams) WithHTTPClient(client *http.Client) *AuthDeviceGetCodeParams
WithHTTPClient adds the HTTPClient to the auth device get code params
func (*AuthDeviceGetCodeParams) WithTimeout ¶
func (o *AuthDeviceGetCodeParams) WithTimeout(timeout time.Duration) *AuthDeviceGetCodeParams
WithTimeout adds the timeout to the auth device get code params
func (*AuthDeviceGetCodeParams) WriteToRequest ¶
func (o *AuthDeviceGetCodeParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type AuthDeviceGetCodeReader ¶
type AuthDeviceGetCodeReader struct {
// contains filtered or unexported fields
}
AuthDeviceGetCodeReader is a Reader for the AuthDeviceGetCode structure.
func (*AuthDeviceGetCodeReader) ReadResponse ¶
func (o *AuthDeviceGetCodeReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (any, error)
ReadResponse reads a server response into the received o.
type AuthDeviceGetTokenForbidden ¶
type AuthDeviceGetTokenForbidden struct {
Payload *models.ErrorResponse
}
AuthDeviceGetTokenForbidden describes a response with status code 403, with default header values.
Forbidden
func NewAuthDeviceGetTokenForbidden ¶
func NewAuthDeviceGetTokenForbidden() *AuthDeviceGetTokenForbidden
NewAuthDeviceGetTokenForbidden creates a AuthDeviceGetTokenForbidden with default headers values
func (*AuthDeviceGetTokenForbidden) Code ¶
func (o *AuthDeviceGetTokenForbidden) Code() int
Code gets the status code for the auth device get token forbidden response
func (*AuthDeviceGetTokenForbidden) Error ¶
func (o *AuthDeviceGetTokenForbidden) Error() string
func (*AuthDeviceGetTokenForbidden) GetPayload ¶
func (o *AuthDeviceGetTokenForbidden) GetPayload() *models.ErrorResponse
func (*AuthDeviceGetTokenForbidden) IsClientError ¶
func (o *AuthDeviceGetTokenForbidden) IsClientError() bool
IsClientError returns true when this auth device get token forbidden response has a 4xx status code
func (*AuthDeviceGetTokenForbidden) IsCode ¶
func (o *AuthDeviceGetTokenForbidden) IsCode(code int) bool
IsCode returns true when this auth device get token forbidden response a status code equal to that given
func (*AuthDeviceGetTokenForbidden) IsRedirect ¶
func (o *AuthDeviceGetTokenForbidden) IsRedirect() bool
IsRedirect returns true when this auth device get token forbidden response has a 3xx status code
func (*AuthDeviceGetTokenForbidden) IsServerError ¶
func (o *AuthDeviceGetTokenForbidden) IsServerError() bool
IsServerError returns true when this auth device get token forbidden response has a 5xx status code
func (*AuthDeviceGetTokenForbidden) IsSuccess ¶
func (o *AuthDeviceGetTokenForbidden) IsSuccess() bool
IsSuccess returns true when this auth device get token forbidden response has a 2xx status code
func (*AuthDeviceGetTokenForbidden) String ¶
func (o *AuthDeviceGetTokenForbidden) String() string
type AuthDeviceGetTokenInternalServerError ¶
type AuthDeviceGetTokenInternalServerError struct {
Payload *models.ErrorResponse
}
AuthDeviceGetTokenInternalServerError describes a response with status code 500, with default header values.
Internal Server Error
func NewAuthDeviceGetTokenInternalServerError ¶
func NewAuthDeviceGetTokenInternalServerError() *AuthDeviceGetTokenInternalServerError
NewAuthDeviceGetTokenInternalServerError creates a AuthDeviceGetTokenInternalServerError with default headers values
func (*AuthDeviceGetTokenInternalServerError) Code ¶
func (o *AuthDeviceGetTokenInternalServerError) Code() int
Code gets the status code for the auth device get token internal server error response
func (*AuthDeviceGetTokenInternalServerError) Error ¶
func (o *AuthDeviceGetTokenInternalServerError) Error() string
func (*AuthDeviceGetTokenInternalServerError) GetPayload ¶
func (o *AuthDeviceGetTokenInternalServerError) GetPayload() *models.ErrorResponse
func (*AuthDeviceGetTokenInternalServerError) IsClientError ¶
func (o *AuthDeviceGetTokenInternalServerError) IsClientError() bool
IsClientError returns true when this auth device get token internal server error response has a 4xx status code
func (*AuthDeviceGetTokenInternalServerError) IsCode ¶
func (o *AuthDeviceGetTokenInternalServerError) IsCode(code int) bool
IsCode returns true when this auth device get token internal server error response a status code equal to that given
func (*AuthDeviceGetTokenInternalServerError) IsRedirect ¶
func (o *AuthDeviceGetTokenInternalServerError) IsRedirect() bool
IsRedirect returns true when this auth device get token internal server error response has a 3xx status code
func (*AuthDeviceGetTokenInternalServerError) IsServerError ¶
func (o *AuthDeviceGetTokenInternalServerError) IsServerError() bool
IsServerError returns true when this auth device get token internal server error response has a 5xx status code
func (*AuthDeviceGetTokenInternalServerError) IsSuccess ¶
func (o *AuthDeviceGetTokenInternalServerError) IsSuccess() bool
IsSuccess returns true when this auth device get token internal server error response has a 2xx status code
func (*AuthDeviceGetTokenInternalServerError) String ¶
func (o *AuthDeviceGetTokenInternalServerError) String() string
type AuthDeviceGetTokenOK ¶
type AuthDeviceGetTokenOK struct {
Payload *models.AuthdevicesToken
}
AuthDeviceGetTokenOK describes a response with status code 200, with default header values.
OK
func NewAuthDeviceGetTokenOK ¶
func NewAuthDeviceGetTokenOK() *AuthDeviceGetTokenOK
NewAuthDeviceGetTokenOK creates a AuthDeviceGetTokenOK with default headers values
func (*AuthDeviceGetTokenOK) Code ¶
func (o *AuthDeviceGetTokenOK) Code() int
Code gets the status code for the auth device get token o k response
func (*AuthDeviceGetTokenOK) Error ¶
func (o *AuthDeviceGetTokenOK) Error() string
func (*AuthDeviceGetTokenOK) GetPayload ¶
func (o *AuthDeviceGetTokenOK) GetPayload() *models.AuthdevicesToken
func (*AuthDeviceGetTokenOK) IsClientError ¶
func (o *AuthDeviceGetTokenOK) IsClientError() bool
IsClientError returns true when this auth device get token o k response has a 4xx status code
func (*AuthDeviceGetTokenOK) IsCode ¶
func (o *AuthDeviceGetTokenOK) IsCode(code int) bool
IsCode returns true when this auth device get token o k response a status code equal to that given
func (*AuthDeviceGetTokenOK) IsRedirect ¶
func (o *AuthDeviceGetTokenOK) IsRedirect() bool
IsRedirect returns true when this auth device get token o k response has a 3xx status code
func (*AuthDeviceGetTokenOK) IsServerError ¶
func (o *AuthDeviceGetTokenOK) IsServerError() bool
IsServerError returns true when this auth device get token o k response has a 5xx status code
func (*AuthDeviceGetTokenOK) IsSuccess ¶
func (o *AuthDeviceGetTokenOK) IsSuccess() bool
IsSuccess returns true when this auth device get token o k response has a 2xx status code
func (*AuthDeviceGetTokenOK) String ¶
func (o *AuthDeviceGetTokenOK) String() string
type AuthDeviceGetTokenParams ¶
type AuthDeviceGetTokenParams struct {
/* Data.
Information to get the token
*/
Data *models.AuthdevicesTokenInput
Context context.Context
HTTPClient *http.Client
// contains filtered or unexported fields
}
AuthDeviceGetTokenParams contains all the parameters to send to the API endpoint
for the auth device get token operation. Typically these are written to a http.Request.
func NewAuthDeviceGetTokenParams ¶
func NewAuthDeviceGetTokenParams() *AuthDeviceGetTokenParams
NewAuthDeviceGetTokenParams creates a new AuthDeviceGetTokenParams 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 NewAuthDeviceGetTokenParamsWithContext ¶
func NewAuthDeviceGetTokenParamsWithContext(ctx context.Context) *AuthDeviceGetTokenParams
NewAuthDeviceGetTokenParamsWithContext creates a new AuthDeviceGetTokenParams object with the ability to set a context for a request.
func NewAuthDeviceGetTokenParamsWithHTTPClient ¶
func NewAuthDeviceGetTokenParamsWithHTTPClient(client *http.Client) *AuthDeviceGetTokenParams
NewAuthDeviceGetTokenParamsWithHTTPClient creates a new AuthDeviceGetTokenParams object with the ability to set a custom HTTPClient for a request.
func NewAuthDeviceGetTokenParamsWithTimeout ¶
func NewAuthDeviceGetTokenParamsWithTimeout(timeout time.Duration) *AuthDeviceGetTokenParams
NewAuthDeviceGetTokenParamsWithTimeout creates a new AuthDeviceGetTokenParams object with the ability to set a timeout on a request.
func (*AuthDeviceGetTokenParams) SetContext ¶
func (o *AuthDeviceGetTokenParams) SetContext(ctx context.Context)
SetContext adds the context to the auth device get token params
func (*AuthDeviceGetTokenParams) SetData ¶
func (o *AuthDeviceGetTokenParams) SetData(data *models.AuthdevicesTokenInput)
SetData adds the data to the auth device get token params
func (*AuthDeviceGetTokenParams) SetDefaults ¶
func (o *AuthDeviceGetTokenParams) SetDefaults()
SetDefaults hydrates default values in the auth device get token params (not the query body).
All values with no default are reset to their zero value.
func (*AuthDeviceGetTokenParams) SetHTTPClient ¶
func (o *AuthDeviceGetTokenParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the auth device get token params
func (*AuthDeviceGetTokenParams) SetTimeout ¶
func (o *AuthDeviceGetTokenParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the auth device get token params
func (*AuthDeviceGetTokenParams) WithContext ¶
func (o *AuthDeviceGetTokenParams) WithContext(ctx context.Context) *AuthDeviceGetTokenParams
WithContext adds the context to the auth device get token params
func (*AuthDeviceGetTokenParams) WithData ¶
func (o *AuthDeviceGetTokenParams) WithData(data *models.AuthdevicesTokenInput) *AuthDeviceGetTokenParams
WithData adds the data to the auth device get token params
func (*AuthDeviceGetTokenParams) WithDefaults ¶
func (o *AuthDeviceGetTokenParams) WithDefaults() *AuthDeviceGetTokenParams
WithDefaults hydrates default values in the auth device get token params (not the query body).
All values with no default are reset to their zero value.
func (*AuthDeviceGetTokenParams) WithHTTPClient ¶
func (o *AuthDeviceGetTokenParams) WithHTTPClient(client *http.Client) *AuthDeviceGetTokenParams
WithHTTPClient adds the HTTPClient to the auth device get token params
func (*AuthDeviceGetTokenParams) WithTimeout ¶
func (o *AuthDeviceGetTokenParams) WithTimeout(timeout time.Duration) *AuthDeviceGetTokenParams
WithTimeout adds the timeout to the auth device get token params
func (*AuthDeviceGetTokenParams) WriteToRequest ¶
func (o *AuthDeviceGetTokenParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type AuthDeviceGetTokenReader ¶
type AuthDeviceGetTokenReader struct {
// contains filtered or unexported fields
}
AuthDeviceGetTokenReader is a Reader for the AuthDeviceGetToken structure.
func (*AuthDeviceGetTokenReader) ReadResponse ¶
func (o *AuthDeviceGetTokenReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (any, error)
ReadResponse reads a server response into the received o.
type AuthDeviceGetTokenTooManyRequests ¶
type AuthDeviceGetTokenTooManyRequests struct {
Payload *models.ErrorResponse
}
AuthDeviceGetTokenTooManyRequests describes a response with status code 429, with default header values.
Too Many Requests
func NewAuthDeviceGetTokenTooManyRequests ¶
func NewAuthDeviceGetTokenTooManyRequests() *AuthDeviceGetTokenTooManyRequests
NewAuthDeviceGetTokenTooManyRequests creates a AuthDeviceGetTokenTooManyRequests with default headers values
func (*AuthDeviceGetTokenTooManyRequests) Code ¶
func (o *AuthDeviceGetTokenTooManyRequests) Code() int
Code gets the status code for the auth device get token too many requests response
func (*AuthDeviceGetTokenTooManyRequests) Error ¶
func (o *AuthDeviceGetTokenTooManyRequests) Error() string
func (*AuthDeviceGetTokenTooManyRequests) GetPayload ¶
func (o *AuthDeviceGetTokenTooManyRequests) GetPayload() *models.ErrorResponse
func (*AuthDeviceGetTokenTooManyRequests) IsClientError ¶
func (o *AuthDeviceGetTokenTooManyRequests) IsClientError() bool
IsClientError returns true when this auth device get token too many requests response has a 4xx status code
func (*AuthDeviceGetTokenTooManyRequests) IsCode ¶
func (o *AuthDeviceGetTokenTooManyRequests) IsCode(code int) bool
IsCode returns true when this auth device get token too many requests response a status code equal to that given
func (*AuthDeviceGetTokenTooManyRequests) IsRedirect ¶
func (o *AuthDeviceGetTokenTooManyRequests) IsRedirect() bool
IsRedirect returns true when this auth device get token too many requests response has a 3xx status code
func (*AuthDeviceGetTokenTooManyRequests) IsServerError ¶
func (o *AuthDeviceGetTokenTooManyRequests) IsServerError() bool
IsServerError returns true when this auth device get token too many requests response has a 5xx status code
func (*AuthDeviceGetTokenTooManyRequests) IsSuccess ¶
func (o *AuthDeviceGetTokenTooManyRequests) IsSuccess() bool
IsSuccess returns true when this auth device get token too many requests response has a 2xx status code
func (*AuthDeviceGetTokenTooManyRequests) String ¶
func (o *AuthDeviceGetTokenTooManyRequests) String() string
type AuthDeviceRefreshTokenForbidden ¶
type AuthDeviceRefreshTokenForbidden struct {
Payload *models.ErrorResponse
}
AuthDeviceRefreshTokenForbidden describes a response with status code 403, with default header values.
Forbidden
func NewAuthDeviceRefreshTokenForbidden ¶
func NewAuthDeviceRefreshTokenForbidden() *AuthDeviceRefreshTokenForbidden
NewAuthDeviceRefreshTokenForbidden creates a AuthDeviceRefreshTokenForbidden with default headers values
func (*AuthDeviceRefreshTokenForbidden) Code ¶
func (o *AuthDeviceRefreshTokenForbidden) Code() int
Code gets the status code for the auth device refresh token forbidden response
func (*AuthDeviceRefreshTokenForbidden) Error ¶
func (o *AuthDeviceRefreshTokenForbidden) Error() string
func (*AuthDeviceRefreshTokenForbidden) GetPayload ¶
func (o *AuthDeviceRefreshTokenForbidden) GetPayload() *models.ErrorResponse
func (*AuthDeviceRefreshTokenForbidden) IsClientError ¶
func (o *AuthDeviceRefreshTokenForbidden) IsClientError() bool
IsClientError returns true when this auth device refresh token forbidden response has a 4xx status code
func (*AuthDeviceRefreshTokenForbidden) IsCode ¶
func (o *AuthDeviceRefreshTokenForbidden) IsCode(code int) bool
IsCode returns true when this auth device refresh token forbidden response a status code equal to that given
func (*AuthDeviceRefreshTokenForbidden) IsRedirect ¶
func (o *AuthDeviceRefreshTokenForbidden) IsRedirect() bool
IsRedirect returns true when this auth device refresh token forbidden response has a 3xx status code
func (*AuthDeviceRefreshTokenForbidden) IsServerError ¶
func (o *AuthDeviceRefreshTokenForbidden) IsServerError() bool
IsServerError returns true when this auth device refresh token forbidden response has a 5xx status code
func (*AuthDeviceRefreshTokenForbidden) IsSuccess ¶
func (o *AuthDeviceRefreshTokenForbidden) IsSuccess() bool
IsSuccess returns true when this auth device refresh token forbidden response has a 2xx status code
func (*AuthDeviceRefreshTokenForbidden) String ¶
func (o *AuthDeviceRefreshTokenForbidden) String() string
type AuthDeviceRefreshTokenInternalServerError ¶
type AuthDeviceRefreshTokenInternalServerError struct {
Payload *models.ErrorResponse
}
AuthDeviceRefreshTokenInternalServerError describes a response with status code 500, with default header values.
Internal Server Error
func NewAuthDeviceRefreshTokenInternalServerError ¶
func NewAuthDeviceRefreshTokenInternalServerError() *AuthDeviceRefreshTokenInternalServerError
NewAuthDeviceRefreshTokenInternalServerError creates a AuthDeviceRefreshTokenInternalServerError with default headers values
func (*AuthDeviceRefreshTokenInternalServerError) Code ¶
func (o *AuthDeviceRefreshTokenInternalServerError) Code() int
Code gets the status code for the auth device refresh token internal server error response
func (*AuthDeviceRefreshTokenInternalServerError) Error ¶
func (o *AuthDeviceRefreshTokenInternalServerError) Error() string
func (*AuthDeviceRefreshTokenInternalServerError) GetPayload ¶
func (o *AuthDeviceRefreshTokenInternalServerError) GetPayload() *models.ErrorResponse
func (*AuthDeviceRefreshTokenInternalServerError) IsClientError ¶
func (o *AuthDeviceRefreshTokenInternalServerError) IsClientError() bool
IsClientError returns true when this auth device refresh token internal server error response has a 4xx status code
func (*AuthDeviceRefreshTokenInternalServerError) IsCode ¶
func (o *AuthDeviceRefreshTokenInternalServerError) IsCode(code int) bool
IsCode returns true when this auth device refresh token internal server error response a status code equal to that given
func (*AuthDeviceRefreshTokenInternalServerError) IsRedirect ¶
func (o *AuthDeviceRefreshTokenInternalServerError) IsRedirect() bool
IsRedirect returns true when this auth device refresh token internal server error response has a 3xx status code
func (*AuthDeviceRefreshTokenInternalServerError) IsServerError ¶
func (o *AuthDeviceRefreshTokenInternalServerError) IsServerError() bool
IsServerError returns true when this auth device refresh token internal server error response has a 5xx status code
func (*AuthDeviceRefreshTokenInternalServerError) IsSuccess ¶
func (o *AuthDeviceRefreshTokenInternalServerError) IsSuccess() bool
IsSuccess returns true when this auth device refresh token internal server error response has a 2xx status code
func (*AuthDeviceRefreshTokenInternalServerError) String ¶
func (o *AuthDeviceRefreshTokenInternalServerError) String() string
type AuthDeviceRefreshTokenOK ¶
type AuthDeviceRefreshTokenOK struct {
Payload *models.AuthdevicesToken
}
AuthDeviceRefreshTokenOK describes a response with status code 200, with default header values.
OK
func NewAuthDeviceRefreshTokenOK ¶
func NewAuthDeviceRefreshTokenOK() *AuthDeviceRefreshTokenOK
NewAuthDeviceRefreshTokenOK creates a AuthDeviceRefreshTokenOK with default headers values
func (*AuthDeviceRefreshTokenOK) Code ¶
func (o *AuthDeviceRefreshTokenOK) Code() int
Code gets the status code for the auth device refresh token o k response
func (*AuthDeviceRefreshTokenOK) Error ¶
func (o *AuthDeviceRefreshTokenOK) Error() string
func (*AuthDeviceRefreshTokenOK) GetPayload ¶
func (o *AuthDeviceRefreshTokenOK) GetPayload() *models.AuthdevicesToken
func (*AuthDeviceRefreshTokenOK) IsClientError ¶
func (o *AuthDeviceRefreshTokenOK) IsClientError() bool
IsClientError returns true when this auth device refresh token o k response has a 4xx status code
func (*AuthDeviceRefreshTokenOK) IsCode ¶
func (o *AuthDeviceRefreshTokenOK) IsCode(code int) bool
IsCode returns true when this auth device refresh token o k response a status code equal to that given
func (*AuthDeviceRefreshTokenOK) IsRedirect ¶
func (o *AuthDeviceRefreshTokenOK) IsRedirect() bool
IsRedirect returns true when this auth device refresh token o k response has a 3xx status code
func (*AuthDeviceRefreshTokenOK) IsServerError ¶
func (o *AuthDeviceRefreshTokenOK) IsServerError() bool
IsServerError returns true when this auth device refresh token o k response has a 5xx status code
func (*AuthDeviceRefreshTokenOK) IsSuccess ¶
func (o *AuthDeviceRefreshTokenOK) IsSuccess() bool
IsSuccess returns true when this auth device refresh token o k response has a 2xx status code
func (*AuthDeviceRefreshTokenOK) String ¶
func (o *AuthDeviceRefreshTokenOK) String() string
type AuthDeviceRefreshTokenParams ¶
type AuthDeviceRefreshTokenParams struct {
/* Data.
Refresh token string
*/
Data string
Context context.Context
HTTPClient *http.Client
// contains filtered or unexported fields
}
AuthDeviceRefreshTokenParams contains all the parameters to send to the API endpoint
for the auth device refresh token operation. Typically these are written to a http.Request.
func NewAuthDeviceRefreshTokenParams ¶
func NewAuthDeviceRefreshTokenParams() *AuthDeviceRefreshTokenParams
NewAuthDeviceRefreshTokenParams creates a new AuthDeviceRefreshTokenParams 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 NewAuthDeviceRefreshTokenParamsWithContext ¶
func NewAuthDeviceRefreshTokenParamsWithContext(ctx context.Context) *AuthDeviceRefreshTokenParams
NewAuthDeviceRefreshTokenParamsWithContext creates a new AuthDeviceRefreshTokenParams object with the ability to set a context for a request.
func NewAuthDeviceRefreshTokenParamsWithHTTPClient ¶
func NewAuthDeviceRefreshTokenParamsWithHTTPClient(client *http.Client) *AuthDeviceRefreshTokenParams
NewAuthDeviceRefreshTokenParamsWithHTTPClient creates a new AuthDeviceRefreshTokenParams object with the ability to set a custom HTTPClient for a request.
func NewAuthDeviceRefreshTokenParamsWithTimeout ¶
func NewAuthDeviceRefreshTokenParamsWithTimeout(timeout time.Duration) *AuthDeviceRefreshTokenParams
NewAuthDeviceRefreshTokenParamsWithTimeout creates a new AuthDeviceRefreshTokenParams object with the ability to set a timeout on a request.
func (*AuthDeviceRefreshTokenParams) SetContext ¶
func (o *AuthDeviceRefreshTokenParams) SetContext(ctx context.Context)
SetContext adds the context to the auth device refresh token params
func (*AuthDeviceRefreshTokenParams) SetData ¶
func (o *AuthDeviceRefreshTokenParams) SetData(data string)
SetData adds the data to the auth device refresh token params
func (*AuthDeviceRefreshTokenParams) SetDefaults ¶
func (o *AuthDeviceRefreshTokenParams) SetDefaults()
SetDefaults hydrates default values in the auth device refresh token params (not the query body).
All values with no default are reset to their zero value.
func (*AuthDeviceRefreshTokenParams) SetHTTPClient ¶
func (o *AuthDeviceRefreshTokenParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the auth device refresh token params
func (*AuthDeviceRefreshTokenParams) SetTimeout ¶
func (o *AuthDeviceRefreshTokenParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the auth device refresh token params
func (*AuthDeviceRefreshTokenParams) WithContext ¶
func (o *AuthDeviceRefreshTokenParams) WithContext(ctx context.Context) *AuthDeviceRefreshTokenParams
WithContext adds the context to the auth device refresh token params
func (*AuthDeviceRefreshTokenParams) WithData ¶
func (o *AuthDeviceRefreshTokenParams) WithData(data string) *AuthDeviceRefreshTokenParams
WithData adds the data to the auth device refresh token params
func (*AuthDeviceRefreshTokenParams) WithDefaults ¶
func (o *AuthDeviceRefreshTokenParams) WithDefaults() *AuthDeviceRefreshTokenParams
WithDefaults hydrates default values in the auth device refresh token params (not the query body).
All values with no default are reset to their zero value.
func (*AuthDeviceRefreshTokenParams) WithHTTPClient ¶
func (o *AuthDeviceRefreshTokenParams) WithHTTPClient(client *http.Client) *AuthDeviceRefreshTokenParams
WithHTTPClient adds the HTTPClient to the auth device refresh token params
func (*AuthDeviceRefreshTokenParams) WithTimeout ¶
func (o *AuthDeviceRefreshTokenParams) WithTimeout(timeout time.Duration) *AuthDeviceRefreshTokenParams
WithTimeout adds the timeout to the auth device refresh token params
func (*AuthDeviceRefreshTokenParams) WriteToRequest ¶
func (o *AuthDeviceRefreshTokenParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type AuthDeviceRefreshTokenReader ¶
type AuthDeviceRefreshTokenReader struct {
// contains filtered or unexported fields
}
AuthDeviceRefreshTokenReader is a Reader for the AuthDeviceRefreshToken structure.
func (*AuthDeviceRefreshTokenReader) ReadResponse ¶
func (o *AuthDeviceRefreshTokenReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (any, error)
ReadResponse reads a server response into the received o.
type AuthDeviceRefreshTokenTooManyRequests ¶
type AuthDeviceRefreshTokenTooManyRequests struct {
Payload *models.ErrorResponse
}
AuthDeviceRefreshTokenTooManyRequests describes a response with status code 429, with default header values.
Too Many Requests
func NewAuthDeviceRefreshTokenTooManyRequests ¶
func NewAuthDeviceRefreshTokenTooManyRequests() *AuthDeviceRefreshTokenTooManyRequests
NewAuthDeviceRefreshTokenTooManyRequests creates a AuthDeviceRefreshTokenTooManyRequests with default headers values
func (*AuthDeviceRefreshTokenTooManyRequests) Code ¶
func (o *AuthDeviceRefreshTokenTooManyRequests) Code() int
Code gets the status code for the auth device refresh token too many requests response
func (*AuthDeviceRefreshTokenTooManyRequests) Error ¶
func (o *AuthDeviceRefreshTokenTooManyRequests) Error() string
func (*AuthDeviceRefreshTokenTooManyRequests) GetPayload ¶
func (o *AuthDeviceRefreshTokenTooManyRequests) GetPayload() *models.ErrorResponse
func (*AuthDeviceRefreshTokenTooManyRequests) IsClientError ¶
func (o *AuthDeviceRefreshTokenTooManyRequests) IsClientError() bool
IsClientError returns true when this auth device refresh token too many requests response has a 4xx status code
func (*AuthDeviceRefreshTokenTooManyRequests) IsCode ¶
func (o *AuthDeviceRefreshTokenTooManyRequests) IsCode(code int) bool
IsCode returns true when this auth device refresh token too many requests response a status code equal to that given
func (*AuthDeviceRefreshTokenTooManyRequests) IsRedirect ¶
func (o *AuthDeviceRefreshTokenTooManyRequests) IsRedirect() bool
IsRedirect returns true when this auth device refresh token too many requests response has a 3xx status code
func (*AuthDeviceRefreshTokenTooManyRequests) IsServerError ¶
func (o *AuthDeviceRefreshTokenTooManyRequests) IsServerError() bool
IsServerError returns true when this auth device refresh token too many requests response has a 5xx status code
func (*AuthDeviceRefreshTokenTooManyRequests) IsSuccess ¶
func (o *AuthDeviceRefreshTokenTooManyRequests) IsSuccess() bool
IsSuccess returns true when this auth device refresh token too many requests response has a 2xx status code
func (*AuthDeviceRefreshTokenTooManyRequests) String ¶
func (o *AuthDeviceRefreshTokenTooManyRequests) String() string
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client for auth API
func (*Client) AuthDeviceGetCode ¶
func (a *Client) AuthDeviceGetCode(params *AuthDeviceGetCodeParams, opts ...ClientOption) (*AuthDeviceGetCodeOK, error)
AuthDeviceGetCode gets device authentication code
Get an authentication code for a device login flow
func (*Client) AuthDeviceGetToken ¶
func (a *Client) AuthDeviceGetToken(params *AuthDeviceGetTokenParams, opts ...ClientOption) (*AuthDeviceGetTokenOK, error)
AuthDeviceGetToken gets device authentication token
Get an authentication token for a device login flow
func (*Client) AuthDeviceRefreshToken ¶
func (a *Client) AuthDeviceRefreshToken(params *AuthDeviceRefreshTokenParams, opts ...ClientOption) (*AuthDeviceRefreshTokenOK, error)
AuthDeviceRefreshToken refreshes device authentication token
Refresh an authentication token using a refresh token
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 may be used to customize the behavior of Client methods.
type ClientService ¶
type ClientService interface {
AuthDeviceGetCode(params *AuthDeviceGetCodeParams, opts ...ClientOption) (*AuthDeviceGetCodeOK, error)
AuthDeviceGetToken(params *AuthDeviceGetTokenParams, opts ...ClientOption) (*AuthDeviceGetTokenOK, error)
AuthDeviceRefreshToken(params *AuthDeviceRefreshTokenParams, opts ...ClientOption) (*AuthDeviceRefreshTokenOK, 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 auth API client.
func NewClientWithBasicAuth ¶
func NewClientWithBasicAuth(host, basePath, scheme, user, password string) ClientService
New creates a new auth API client with basic auth credentials. It takes the following parameters: - host: http host (github.com). - basePath: any base path for the API client ("/v1", "/v3"). - scheme: http scheme ("http", "https"). - user: user for basic authentication header. - password: password for basic authentication header.
func NewClientWithBearerToken ¶
func NewClientWithBearerToken(host, basePath, scheme, bearerToken string) ClientService
New creates a new auth API client with a bearer token for authentication. It takes the following parameters: - host: http host (github.com). - basePath: any base path for the API client ("/v1", "/v3"). - scheme: http scheme ("http", "https"). - bearerToken: bearer token for Bearer authentication header.