tokens

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2024 License: BSD-2-Clause Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client for tokens API

func (*Client) CreateToken

func (a *Client) CreateToken(params *CreateTokenParams, opts ...ClientOption) (*CreateTokenOK, *CreateTokenCreated, error)

CreateToken creates token pair

Creates access token and refresh token for user access

func (*Client) InvalidateRefreshToken

func (a *Client) InvalidateRefreshToken(params *InvalidateRefreshTokenParams, opts ...ClientOption) (*InvalidateRefreshTokenNoContent, error)

InvalidateRefreshToken invalidates refresh token

Invalidate the provided refresh token

func (*Client) RefreshAccessToken

func (a *Client) RefreshAccessToken(params *RefreshAccessTokenParams, opts ...ClientOption) (*RefreshAccessTokenOK, error)

RefreshAccessToken refreshes access token

Refresh the access token associated with the given 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 is the option for Client methods

type ClientService

type ClientService interface {
	CreateToken(params *CreateTokenParams, opts ...ClientOption) (*CreateTokenOK, *CreateTokenCreated, error)

	InvalidateRefreshToken(params *InvalidateRefreshTokenParams, opts ...ClientOption) (*InvalidateRefreshTokenNoContent, error)

	RefreshAccessToken(params *RefreshAccessTokenParams, opts ...ClientOption) (*RefreshAccessTokenOK, 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 tokens API client.

type CreateTokenBadRequest

type CreateTokenBadRequest struct {
	Payload *models.Error
}

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

Bad Request

func NewCreateTokenBadRequest

func NewCreateTokenBadRequest() *CreateTokenBadRequest

NewCreateTokenBadRequest creates a CreateTokenBadRequest with default headers values

func (*CreateTokenBadRequest) Error

func (o *CreateTokenBadRequest) Error() string

func (*CreateTokenBadRequest) GetPayload

func (o *CreateTokenBadRequest) GetPayload() *models.Error

func (*CreateTokenBadRequest) IsClientError

func (o *CreateTokenBadRequest) IsClientError() bool

IsClientError returns true when this create token bad request response has a 4xx status code

func (*CreateTokenBadRequest) IsCode

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

IsCode returns true when this create token bad request response a status code equal to that given

func (*CreateTokenBadRequest) IsRedirect

func (o *CreateTokenBadRequest) IsRedirect() bool

IsRedirect returns true when this create token bad request response has a 3xx status code

func (*CreateTokenBadRequest) IsServerError

func (o *CreateTokenBadRequest) IsServerError() bool

IsServerError returns true when this create token bad request response has a 5xx status code

func (*CreateTokenBadRequest) IsSuccess

func (o *CreateTokenBadRequest) IsSuccess() bool

IsSuccess returns true when this create token bad request response has a 2xx status code

func (*CreateTokenBadRequest) String

func (o *CreateTokenBadRequest) String() string

type CreateTokenCreated

type CreateTokenCreated struct {
	Payload *models.TokenPair
}

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

Created

func NewCreateTokenCreated

func NewCreateTokenCreated() *CreateTokenCreated

NewCreateTokenCreated creates a CreateTokenCreated with default headers values

func (*CreateTokenCreated) Error

func (o *CreateTokenCreated) Error() string

func (*CreateTokenCreated) GetPayload

func (o *CreateTokenCreated) GetPayload() *models.TokenPair

func (*CreateTokenCreated) IsClientError

func (o *CreateTokenCreated) IsClientError() bool

IsClientError returns true when this create token created response has a 4xx status code

func (*CreateTokenCreated) IsCode

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

IsCode returns true when this create token created response a status code equal to that given

func (*CreateTokenCreated) IsRedirect

func (o *CreateTokenCreated) IsRedirect() bool

IsRedirect returns true when this create token created response has a 3xx status code

func (*CreateTokenCreated) IsServerError

func (o *CreateTokenCreated) IsServerError() bool

IsServerError returns true when this create token created response has a 5xx status code

func (*CreateTokenCreated) IsSuccess

func (o *CreateTokenCreated) IsSuccess() bool

IsSuccess returns true when this create token created response has a 2xx status code

func (*CreateTokenCreated) String

func (o *CreateTokenCreated) String() string

type CreateTokenInternalServerError

type CreateTokenInternalServerError struct {
	Payload *models.Error
}

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

Internal Server Error

func NewCreateTokenInternalServerError

func NewCreateTokenInternalServerError() *CreateTokenInternalServerError

NewCreateTokenInternalServerError creates a CreateTokenInternalServerError with default headers values

func (*CreateTokenInternalServerError) Error

func (*CreateTokenInternalServerError) GetPayload

func (o *CreateTokenInternalServerError) GetPayload() *models.Error

func (*CreateTokenInternalServerError) IsClientError

func (o *CreateTokenInternalServerError) IsClientError() bool

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

func (*CreateTokenInternalServerError) IsCode

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

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

func (*CreateTokenInternalServerError) IsRedirect

func (o *CreateTokenInternalServerError) IsRedirect() bool

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

func (*CreateTokenInternalServerError) IsServerError

func (o *CreateTokenInternalServerError) IsServerError() bool

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

func (*CreateTokenInternalServerError) IsSuccess

func (o *CreateTokenInternalServerError) IsSuccess() bool

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

func (*CreateTokenInternalServerError) String

type CreateTokenOK

type CreateTokenOK struct {
	Payload *models.TokenPair
}

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

OK

func NewCreateTokenOK

func NewCreateTokenOK() *CreateTokenOK

NewCreateTokenOK creates a CreateTokenOK with default headers values

func (*CreateTokenOK) Error

func (o *CreateTokenOK) Error() string

func (*CreateTokenOK) GetPayload

func (o *CreateTokenOK) GetPayload() *models.TokenPair

func (*CreateTokenOK) IsClientError

func (o *CreateTokenOK) IsClientError() bool

IsClientError returns true when this create token o k response has a 4xx status code

func (*CreateTokenOK) IsCode

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

IsCode returns true when this create token o k response a status code equal to that given

func (*CreateTokenOK) IsRedirect

func (o *CreateTokenOK) IsRedirect() bool

IsRedirect returns true when this create token o k response has a 3xx status code

func (*CreateTokenOK) IsServerError

func (o *CreateTokenOK) IsServerError() bool

IsServerError returns true when this create token o k response has a 5xx status code

func (*CreateTokenOK) IsSuccess

func (o *CreateTokenOK) IsSuccess() bool

IsSuccess returns true when this create token o k response has a 2xx status code

func (*CreateTokenOK) String

func (o *CreateTokenOK) String() string

type CreateTokenParams

type CreateTokenParams struct {

	/* TokenCreationSpec.

	   The spec used to sign the token
	*/
	TokenCreationSpec *models.TokenCreationSpec

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

CreateTokenParams contains all the parameters to send to the API endpoint

for the create token operation.

Typically these are written to a http.Request.

func NewCreateTokenParams

func NewCreateTokenParams() *CreateTokenParams

NewCreateTokenParams creates a new CreateTokenParams 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 NewCreateTokenParamsWithContext

func NewCreateTokenParamsWithContext(ctx context.Context) *CreateTokenParams

NewCreateTokenParamsWithContext creates a new CreateTokenParams object with the ability to set a context for a request.

func NewCreateTokenParamsWithHTTPClient

func NewCreateTokenParamsWithHTTPClient(client *http.Client) *CreateTokenParams

NewCreateTokenParamsWithHTTPClient creates a new CreateTokenParams object with the ability to set a custom HTTPClient for a request.

func NewCreateTokenParamsWithTimeout

func NewCreateTokenParamsWithTimeout(timeout time.Duration) *CreateTokenParams

NewCreateTokenParamsWithTimeout creates a new CreateTokenParams object with the ability to set a timeout on a request.

func (*CreateTokenParams) SetContext

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

SetContext adds the context to the create token params

func (*CreateTokenParams) SetDefaults

func (o *CreateTokenParams) SetDefaults()

SetDefaults hydrates default values in the create token params (not the query body).

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

func (*CreateTokenParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the create token params

func (*CreateTokenParams) SetTimeout

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

SetTimeout adds the timeout to the create token params

func (*CreateTokenParams) SetTokenCreationSpec

func (o *CreateTokenParams) SetTokenCreationSpec(tokenCreationSpec *models.TokenCreationSpec)

SetTokenCreationSpec adds the tokenCreationSpec to the create token params

func (*CreateTokenParams) WithContext

func (o *CreateTokenParams) WithContext(ctx context.Context) *CreateTokenParams

WithContext adds the context to the create token params

func (*CreateTokenParams) WithDefaults

func (o *CreateTokenParams) WithDefaults() *CreateTokenParams

WithDefaults hydrates default values in the create token params (not the query body).

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

func (*CreateTokenParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the create token params

func (*CreateTokenParams) WithTimeout

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

WithTimeout adds the timeout to the create token params

func (*CreateTokenParams) WithTokenCreationSpec

func (o *CreateTokenParams) WithTokenCreationSpec(tokenCreationSpec *models.TokenCreationSpec) *CreateTokenParams

WithTokenCreationSpec adds the tokenCreationSpec to the create token params

func (*CreateTokenParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type CreateTokenReader

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

CreateTokenReader is a Reader for the CreateToken structure.

func (*CreateTokenReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type InvalidateRefreshTokenNoContent

type InvalidateRefreshTokenNoContent struct {
}

InvalidateRefreshTokenNoContent describes a response with status code 204, with default header values.

No content

func NewInvalidateRefreshTokenNoContent

func NewInvalidateRefreshTokenNoContent() *InvalidateRefreshTokenNoContent

NewInvalidateRefreshTokenNoContent creates a InvalidateRefreshTokenNoContent with default headers values

func (*InvalidateRefreshTokenNoContent) Error

func (*InvalidateRefreshTokenNoContent) IsClientError

func (o *InvalidateRefreshTokenNoContent) IsClientError() bool

IsClientError returns true when this invalidate refresh token no content response has a 4xx status code

func (*InvalidateRefreshTokenNoContent) IsCode

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

IsCode returns true when this invalidate refresh token no content response a status code equal to that given

func (*InvalidateRefreshTokenNoContent) IsRedirect

func (o *InvalidateRefreshTokenNoContent) IsRedirect() bool

IsRedirect returns true when this invalidate refresh token no content response has a 3xx status code

func (*InvalidateRefreshTokenNoContent) IsServerError

func (o *InvalidateRefreshTokenNoContent) IsServerError() bool

IsServerError returns true when this invalidate refresh token no content response has a 5xx status code

func (*InvalidateRefreshTokenNoContent) IsSuccess

func (o *InvalidateRefreshTokenNoContent) IsSuccess() bool

IsSuccess returns true when this invalidate refresh token no content response has a 2xx status code

func (*InvalidateRefreshTokenNoContent) String

type InvalidateRefreshTokenParams

type InvalidateRefreshTokenParams struct {

	/* RefreshToken.

	   ID of the refresh token
	*/
	RefreshToken string

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

InvalidateRefreshTokenParams contains all the parameters to send to the API endpoint

for the invalidate refresh token operation.

Typically these are written to a http.Request.

func NewInvalidateRefreshTokenParams

func NewInvalidateRefreshTokenParams() *InvalidateRefreshTokenParams

NewInvalidateRefreshTokenParams creates a new InvalidateRefreshTokenParams 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 NewInvalidateRefreshTokenParamsWithContext

func NewInvalidateRefreshTokenParamsWithContext(ctx context.Context) *InvalidateRefreshTokenParams

NewInvalidateRefreshTokenParamsWithContext creates a new InvalidateRefreshTokenParams object with the ability to set a context for a request.

func NewInvalidateRefreshTokenParamsWithHTTPClient

func NewInvalidateRefreshTokenParamsWithHTTPClient(client *http.Client) *InvalidateRefreshTokenParams

NewInvalidateRefreshTokenParamsWithHTTPClient creates a new InvalidateRefreshTokenParams object with the ability to set a custom HTTPClient for a request.

func NewInvalidateRefreshTokenParamsWithTimeout

func NewInvalidateRefreshTokenParamsWithTimeout(timeout time.Duration) *InvalidateRefreshTokenParams

NewInvalidateRefreshTokenParamsWithTimeout creates a new InvalidateRefreshTokenParams object with the ability to set a timeout on a request.

func (*InvalidateRefreshTokenParams) SetContext

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

SetContext adds the context to the invalidate refresh token params

func (*InvalidateRefreshTokenParams) SetDefaults

func (o *InvalidateRefreshTokenParams) SetDefaults()

SetDefaults hydrates default values in the invalidate refresh token params (not the query body).

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

func (*InvalidateRefreshTokenParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the invalidate refresh token params

func (*InvalidateRefreshTokenParams) SetRefreshToken

func (o *InvalidateRefreshTokenParams) SetRefreshToken(refreshToken string)

SetRefreshToken adds the refreshToken to the invalidate refresh token params

func (*InvalidateRefreshTokenParams) SetTimeout

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

SetTimeout adds the timeout to the invalidate refresh token params

func (*InvalidateRefreshTokenParams) WithContext

WithContext adds the context to the invalidate refresh token params

func (*InvalidateRefreshTokenParams) WithDefaults

WithDefaults hydrates default values in the invalidate refresh token params (not the query body).

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

func (*InvalidateRefreshTokenParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the invalidate refresh token params

func (*InvalidateRefreshTokenParams) WithRefreshToken

func (o *InvalidateRefreshTokenParams) WithRefreshToken(refreshToken string) *InvalidateRefreshTokenParams

WithRefreshToken adds the refreshToken to the invalidate refresh token params

func (*InvalidateRefreshTokenParams) WithTimeout

WithTimeout adds the timeout to the invalidate refresh token params

func (*InvalidateRefreshTokenParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type InvalidateRefreshTokenReader

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

InvalidateRefreshTokenReader is a Reader for the InvalidateRefreshToken structure.

func (*InvalidateRefreshTokenReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type RefreshAccessTokenBadRequest

type RefreshAccessTokenBadRequest struct {
	Payload *models.Error
}

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

Bad Request

func NewRefreshAccessTokenBadRequest

func NewRefreshAccessTokenBadRequest() *RefreshAccessTokenBadRequest

NewRefreshAccessTokenBadRequest creates a RefreshAccessTokenBadRequest with default headers values

func (*RefreshAccessTokenBadRequest) Error

func (*RefreshAccessTokenBadRequest) GetPayload

func (o *RefreshAccessTokenBadRequest) GetPayload() *models.Error

func (*RefreshAccessTokenBadRequest) IsClientError

func (o *RefreshAccessTokenBadRequest) IsClientError() bool

IsClientError returns true when this refresh access token bad request response has a 4xx status code

func (*RefreshAccessTokenBadRequest) IsCode

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

IsCode returns true when this refresh access token bad request response a status code equal to that given

func (*RefreshAccessTokenBadRequest) IsRedirect

func (o *RefreshAccessTokenBadRequest) IsRedirect() bool

IsRedirect returns true when this refresh access token bad request response has a 3xx status code

func (*RefreshAccessTokenBadRequest) IsServerError

func (o *RefreshAccessTokenBadRequest) IsServerError() bool

IsServerError returns true when this refresh access token bad request response has a 5xx status code

func (*RefreshAccessTokenBadRequest) IsSuccess

func (o *RefreshAccessTokenBadRequest) IsSuccess() bool

IsSuccess returns true when this refresh access token bad request response has a 2xx status code

func (*RefreshAccessTokenBadRequest) String

type RefreshAccessTokenInternalServerError

type RefreshAccessTokenInternalServerError struct {
	Payload *models.Error
}

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

Internal Server Error

func NewRefreshAccessTokenInternalServerError

func NewRefreshAccessTokenInternalServerError() *RefreshAccessTokenInternalServerError

NewRefreshAccessTokenInternalServerError creates a RefreshAccessTokenInternalServerError with default headers values

func (*RefreshAccessTokenInternalServerError) Error

func (*RefreshAccessTokenInternalServerError) GetPayload

func (*RefreshAccessTokenInternalServerError) IsClientError

func (o *RefreshAccessTokenInternalServerError) IsClientError() bool

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

func (*RefreshAccessTokenInternalServerError) IsCode

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

func (*RefreshAccessTokenInternalServerError) IsRedirect

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

func (*RefreshAccessTokenInternalServerError) IsServerError

func (o *RefreshAccessTokenInternalServerError) IsServerError() bool

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

func (*RefreshAccessTokenInternalServerError) IsSuccess

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

func (*RefreshAccessTokenInternalServerError) String

type RefreshAccessTokenNotFound

type RefreshAccessTokenNotFound struct {
	Payload *models.Error
}

RefreshAccessTokenNotFound describes a response with status code 404, with default header values.

Not Found

func NewRefreshAccessTokenNotFound

func NewRefreshAccessTokenNotFound() *RefreshAccessTokenNotFound

NewRefreshAccessTokenNotFound creates a RefreshAccessTokenNotFound with default headers values

func (*RefreshAccessTokenNotFound) Error

func (*RefreshAccessTokenNotFound) GetPayload

func (o *RefreshAccessTokenNotFound) GetPayload() *models.Error

func (*RefreshAccessTokenNotFound) IsClientError

func (o *RefreshAccessTokenNotFound) IsClientError() bool

IsClientError returns true when this refresh access token not found response has a 4xx status code

func (*RefreshAccessTokenNotFound) IsCode

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

IsCode returns true when this refresh access token not found response a status code equal to that given

func (*RefreshAccessTokenNotFound) IsRedirect

func (o *RefreshAccessTokenNotFound) IsRedirect() bool

IsRedirect returns true when this refresh access token not found response has a 3xx status code

func (*RefreshAccessTokenNotFound) IsServerError

func (o *RefreshAccessTokenNotFound) IsServerError() bool

IsServerError returns true when this refresh access token not found response has a 5xx status code

func (*RefreshAccessTokenNotFound) IsSuccess

func (o *RefreshAccessTokenNotFound) IsSuccess() bool

IsSuccess returns true when this refresh access token not found response has a 2xx status code

func (*RefreshAccessTokenNotFound) String

func (o *RefreshAccessTokenNotFound) String() string

type RefreshAccessTokenOK

type RefreshAccessTokenOK struct {
	Payload string
}

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

OK

func NewRefreshAccessTokenOK

func NewRefreshAccessTokenOK() *RefreshAccessTokenOK

NewRefreshAccessTokenOK creates a RefreshAccessTokenOK with default headers values

func (*RefreshAccessTokenOK) Error

func (o *RefreshAccessTokenOK) Error() string

func (*RefreshAccessTokenOK) GetPayload

func (o *RefreshAccessTokenOK) GetPayload() string

func (*RefreshAccessTokenOK) IsClientError

func (o *RefreshAccessTokenOK) IsClientError() bool

IsClientError returns true when this refresh access token o k response has a 4xx status code

func (*RefreshAccessTokenOK) IsCode

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

IsCode returns true when this refresh access token o k response a status code equal to that given

func (*RefreshAccessTokenOK) IsRedirect

func (o *RefreshAccessTokenOK) IsRedirect() bool

IsRedirect returns true when this refresh access token o k response has a 3xx status code

func (*RefreshAccessTokenOK) IsServerError

func (o *RefreshAccessTokenOK) IsServerError() bool

IsServerError returns true when this refresh access token o k response has a 5xx status code

func (*RefreshAccessTokenOK) IsSuccess

func (o *RefreshAccessTokenOK) IsSuccess() bool

IsSuccess returns true when this refresh access token o k response has a 2xx status code

func (*RefreshAccessTokenOK) String

func (o *RefreshAccessTokenOK) String() string

type RefreshAccessTokenParams

type RefreshAccessTokenParams struct {

	/* RefreshToken.

	   ID of the refresh token
	*/
	RefreshToken string

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

RefreshAccessTokenParams contains all the parameters to send to the API endpoint

for the refresh access token operation.

Typically these are written to a http.Request.

func NewRefreshAccessTokenParams

func NewRefreshAccessTokenParams() *RefreshAccessTokenParams

NewRefreshAccessTokenParams creates a new RefreshAccessTokenParams 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 NewRefreshAccessTokenParamsWithContext

func NewRefreshAccessTokenParamsWithContext(ctx context.Context) *RefreshAccessTokenParams

NewRefreshAccessTokenParamsWithContext creates a new RefreshAccessTokenParams object with the ability to set a context for a request.

func NewRefreshAccessTokenParamsWithHTTPClient

func NewRefreshAccessTokenParamsWithHTTPClient(client *http.Client) *RefreshAccessTokenParams

NewRefreshAccessTokenParamsWithHTTPClient creates a new RefreshAccessTokenParams object with the ability to set a custom HTTPClient for a request.

func NewRefreshAccessTokenParamsWithTimeout

func NewRefreshAccessTokenParamsWithTimeout(timeout time.Duration) *RefreshAccessTokenParams

NewRefreshAccessTokenParamsWithTimeout creates a new RefreshAccessTokenParams object with the ability to set a timeout on a request.

func (*RefreshAccessTokenParams) SetContext

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

SetContext adds the context to the refresh access token params

func (*RefreshAccessTokenParams) SetDefaults

func (o *RefreshAccessTokenParams) SetDefaults()

SetDefaults hydrates default values in the refresh access token params (not the query body).

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

func (*RefreshAccessTokenParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the refresh access token params

func (*RefreshAccessTokenParams) SetRefreshToken

func (o *RefreshAccessTokenParams) SetRefreshToken(refreshToken string)

SetRefreshToken adds the refreshToken to the refresh access token params

func (*RefreshAccessTokenParams) SetTimeout

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

SetTimeout adds the timeout to the refresh access token params

func (*RefreshAccessTokenParams) WithContext

WithContext adds the context to the refresh access token params

func (*RefreshAccessTokenParams) WithDefaults

WithDefaults hydrates default values in the refresh access token params (not the query body).

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

func (*RefreshAccessTokenParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the refresh access token params

func (*RefreshAccessTokenParams) WithRefreshToken

func (o *RefreshAccessTokenParams) WithRefreshToken(refreshToken string) *RefreshAccessTokenParams

WithRefreshToken adds the refreshToken to the refresh access token params

func (*RefreshAccessTokenParams) WithTimeout

WithTimeout adds the timeout to the refresh access token params

func (*RefreshAccessTokenParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type RefreshAccessTokenReader

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

RefreshAccessTokenReader is a Reader for the RefreshAccessToken structure.

func (*RefreshAccessTokenReader) ReadResponse

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

ReadResponse reads a server response into the received o.

Jump to

Keyboard shortcuts

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