auth

package
v0.3.8 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2026 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

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

Code gets the status code for the auth device get code internal server error response

func (*AuthDeviceGetCodeInternalServerError) Error

func (*AuthDeviceGetCodeInternalServerError) GetPayload

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

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

func (*AuthDeviceGetCodeInternalServerError) IsRedirect

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

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

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

WithContext adds the context to the auth device get code params

func (*AuthDeviceGetCodeParams) WithDefaults

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

WithTimeout adds the timeout to the auth device get code params

func (*AuthDeviceGetCodeParams) WriteToRequest

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

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

Code gets the status code for the auth device get token internal server error response

func (*AuthDeviceGetTokenInternalServerError) Error

func (*AuthDeviceGetTokenInternalServerError) GetPayload

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

IsCode returns true when this auth device get token internal server error response a status code equal to that given

func (*AuthDeviceGetTokenInternalServerError) IsRedirect

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

IsSuccess returns true when this auth device get token internal server error response has a 2xx status code

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

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

WithContext adds the context to the auth device get token params

func (*AuthDeviceGetTokenParams) WithData

WithData adds the data to the auth device get token params

func (*AuthDeviceGetTokenParams) WithDefaults

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

WithTimeout adds the timeout to the auth device get token params

func (*AuthDeviceGetTokenParams) WriteToRequest

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

Code gets the status code for the auth device get token too many requests response

func (*AuthDeviceGetTokenTooManyRequests) Error

func (*AuthDeviceGetTokenTooManyRequests) GetPayload

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

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

Code gets the status code for the auth device refresh token forbidden response

func (*AuthDeviceRefreshTokenForbidden) Error

func (*AuthDeviceRefreshTokenForbidden) GetPayload

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

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

Code gets the status code for the auth device refresh token internal server error response

func (*AuthDeviceRefreshTokenInternalServerError) Error

func (*AuthDeviceRefreshTokenInternalServerError) GetPayload

func (*AuthDeviceRefreshTokenInternalServerError) IsClientError

IsClientError returns true when this auth device refresh token internal server error response has a 4xx status code

func (*AuthDeviceRefreshTokenInternalServerError) IsCode

IsCode returns true when this auth device refresh token internal server error response a status code equal to that given

func (*AuthDeviceRefreshTokenInternalServerError) IsRedirect

IsRedirect returns true when this auth device refresh token internal server error response has a 3xx status code

func (*AuthDeviceRefreshTokenInternalServerError) IsServerError

IsServerError returns true when this auth device refresh token internal server error response has a 5xx status code

func (*AuthDeviceRefreshTokenInternalServerError) IsSuccess

IsSuccess returns true when this auth device refresh token internal server error response has a 2xx status code

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

WithContext adds the context to the auth device refresh token params

func (*AuthDeviceRefreshTokenParams) WithData

WithData adds the data to the auth device refresh token params

func (*AuthDeviceRefreshTokenParams) WithDefaults

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

WithHTTPClient adds the HTTPClient to the auth device refresh token params

func (*AuthDeviceRefreshTokenParams) WithTimeout

WithTimeout adds the timeout to the auth device refresh token params

func (*AuthDeviceRefreshTokenParams) WriteToRequest

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

Code gets the status code for the auth device refresh token too many requests response

func (*AuthDeviceRefreshTokenTooManyRequests) Error

func (*AuthDeviceRefreshTokenTooManyRequests) GetPayload

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

IsCode returns true when this auth device refresh token too many requests response a status code equal to that given

func (*AuthDeviceRefreshTokenTooManyRequests) IsRedirect

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

IsSuccess returns true when this auth device refresh token too many requests response has a 2xx status code

func (*AuthDeviceRefreshTokenTooManyRequests) 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.

Jump to

Keyboard shortcuts

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