tokens

package
v0.0.0-...-cfedc03 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2022 License: Apache-2.0 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) InitCertAuth

func (a *Client) InitCertAuth(params *InitCertAuthParams, opts ...ClientOption) (*InitCertAuthOK, error)
InitCertAuth initiates authentication by certificate

Request a challenge to decrypt to prove ownership of the private key for

authentication by certificate flow. Challenge id returned in response is only valid for 5 minutes.

func (*Client) Revoke

func (a *Client) Revoke(params *RevokeParams, opts ...ClientOption) (*RevokeNoContent, error)

Revoke revokes refresh token

Revoke an existing refresh token to prevent it from being used for authentication.

func (*Client) SetTransport

func (a *Client) SetTransport(transport runtime.ClientTransport)

SetTransport changes the transport on the client

func (*Client) Token

func (a *Client) Token(params *TokenParams, opts ...ClientOption) (*TokenOK, error)

Token authenticates

Submit parameters to get a new access token for use on protected endpoints

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	InitCertAuth(params *InitCertAuthParams, opts ...ClientOption) (*InitCertAuthOK, error)

	Revoke(params *RevokeParams, opts ...ClientOption) (*RevokeNoContent, error)

	Token(params *TokenParams, opts ...ClientOption) (*TokenOK, 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 InitCertAuthBadRequest

type InitCertAuthBadRequest struct {
	Payload *models.HTTPError
}
InitCertAuthBadRequest describes a response with status code 400, with default header values.

bad request

func NewInitCertAuthBadRequest

func NewInitCertAuthBadRequest() *InitCertAuthBadRequest

NewInitCertAuthBadRequest creates a InitCertAuthBadRequest with default headers values

func (*InitCertAuthBadRequest) Error

func (o *InitCertAuthBadRequest) Error() string

func (*InitCertAuthBadRequest) GetPayload

func (o *InitCertAuthBadRequest) GetPayload() *models.HTTPError

func (*InitCertAuthBadRequest) IsClientError

func (o *InitCertAuthBadRequest) IsClientError() bool

IsClientError returns true when this init cert auth bad request response has a 4xx status code

func (*InitCertAuthBadRequest) IsCode

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

IsCode returns true when this init cert auth bad request response a status code equal to that given

func (*InitCertAuthBadRequest) IsRedirect

func (o *InitCertAuthBadRequest) IsRedirect() bool

IsRedirect returns true when this init cert auth bad request response has a 3xx status code

func (*InitCertAuthBadRequest) IsServerError

func (o *InitCertAuthBadRequest) IsServerError() bool

IsServerError returns true when this init cert auth bad request response has a 5xx status code

func (*InitCertAuthBadRequest) IsSuccess

func (o *InitCertAuthBadRequest) IsSuccess() bool

IsSuccess returns true when this init cert auth bad request response has a 2xx status code

func (*InitCertAuthBadRequest) String

func (o *InitCertAuthBadRequest) String() string

type InitCertAuthInternalServerError

type InitCertAuthInternalServerError struct {
	Payload *models.HTTPError
}
InitCertAuthInternalServerError describes a response with status code 500, with default header values.

server error

func NewInitCertAuthInternalServerError

func NewInitCertAuthInternalServerError() *InitCertAuthInternalServerError

NewInitCertAuthInternalServerError creates a InitCertAuthInternalServerError with default headers values

func (*InitCertAuthInternalServerError) Error

func (*InitCertAuthInternalServerError) GetPayload

func (*InitCertAuthInternalServerError) IsClientError

func (o *InitCertAuthInternalServerError) IsClientError() bool

IsClientError returns true when this init cert auth internal server error response has a 4xx status code

func (*InitCertAuthInternalServerError) IsCode

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

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

func (*InitCertAuthInternalServerError) IsRedirect

func (o *InitCertAuthInternalServerError) IsRedirect() bool

IsRedirect returns true when this init cert auth internal server error response has a 3xx status code

func (*InitCertAuthInternalServerError) IsServerError

func (o *InitCertAuthInternalServerError) IsServerError() bool

IsServerError returns true when this init cert auth internal server error response has a 5xx status code

func (*InitCertAuthInternalServerError) IsSuccess

func (o *InitCertAuthInternalServerError) IsSuccess() bool

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

func (*InitCertAuthInternalServerError) String

type InitCertAuthOK

type InitCertAuthOK struct {
	Payload *models.InitiateCertAuthResponse
}
InitCertAuthOK describes a response with status code 200, with default header values.

Successful response with an encrypted challenge

func NewInitCertAuthOK

func NewInitCertAuthOK() *InitCertAuthOK

NewInitCertAuthOK creates a InitCertAuthOK with default headers values

func (*InitCertAuthOK) Error

func (o *InitCertAuthOK) Error() string

func (*InitCertAuthOK) GetPayload

func (*InitCertAuthOK) IsClientError

func (o *InitCertAuthOK) IsClientError() bool

IsClientError returns true when this init cert auth o k response has a 4xx status code

func (*InitCertAuthOK) IsCode

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

IsCode returns true when this init cert auth o k response a status code equal to that given

func (*InitCertAuthOK) IsRedirect

func (o *InitCertAuthOK) IsRedirect() bool

IsRedirect returns true when this init cert auth o k response has a 3xx status code

func (*InitCertAuthOK) IsServerError

func (o *InitCertAuthOK) IsServerError() bool

IsServerError returns true when this init cert auth o k response has a 5xx status code

func (*InitCertAuthOK) IsSuccess

func (o *InitCertAuthOK) IsSuccess() bool

IsSuccess returns true when this init cert auth o k response has a 2xx status code

func (*InitCertAuthOK) String

func (o *InitCertAuthOK) String() string

type InitCertAuthParams

type InitCertAuthParams struct {

	/* ClientCertificate.

	   Base64 encoded client certificate in PEM format
	*/
	ClientCertificate string

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

InitCertAuthParams contains all the parameters to send to the API endpoint

for the init cert auth operation.

Typically these are written to a http.Request.

func NewInitCertAuthParams

func NewInitCertAuthParams() *InitCertAuthParams

NewInitCertAuthParams creates a new InitCertAuthParams 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 NewInitCertAuthParamsWithContext

func NewInitCertAuthParamsWithContext(ctx context.Context) *InitCertAuthParams

NewInitCertAuthParamsWithContext creates a new InitCertAuthParams object with the ability to set a context for a request.

func NewInitCertAuthParamsWithHTTPClient

func NewInitCertAuthParamsWithHTTPClient(client *http.Client) *InitCertAuthParams

NewInitCertAuthParamsWithHTTPClient creates a new InitCertAuthParams object with the ability to set a custom HTTPClient for a request.

func NewInitCertAuthParamsWithTimeout

func NewInitCertAuthParamsWithTimeout(timeout time.Duration) *InitCertAuthParams

NewInitCertAuthParamsWithTimeout creates a new InitCertAuthParams object with the ability to set a timeout on a request.

func (*InitCertAuthParams) SetClientCertificate

func (o *InitCertAuthParams) SetClientCertificate(clientCertificate string)

SetClientCertificate adds the clientCertificate to the init cert auth params

func (*InitCertAuthParams) SetContext

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

SetContext adds the context to the init cert auth params

func (*InitCertAuthParams) SetDefaults

func (o *InitCertAuthParams) SetDefaults()

SetDefaults hydrates default values in the init cert auth params (not the query body).

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

func (*InitCertAuthParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the init cert auth params

func (*InitCertAuthParams) SetTimeout

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

SetTimeout adds the timeout to the init cert auth params

func (*InitCertAuthParams) WithClientCertificate

func (o *InitCertAuthParams) WithClientCertificate(clientCertificate string) *InitCertAuthParams

WithClientCertificate adds the clientCertificate to the init cert auth params

func (*InitCertAuthParams) WithContext

WithContext adds the context to the init cert auth params

func (*InitCertAuthParams) WithDefaults

func (o *InitCertAuthParams) WithDefaults() *InitCertAuthParams

WithDefaults hydrates default values in the init cert auth params (not the query body).

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

func (*InitCertAuthParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the init cert auth params

func (*InitCertAuthParams) WithTimeout

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

WithTimeout adds the timeout to the init cert auth params

func (*InitCertAuthParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type InitCertAuthReader

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

InitCertAuthReader is a Reader for the InitCertAuth structure.

func (*InitCertAuthReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type RevokeBadRequest

type RevokeBadRequest struct {
	Payload *models.HTTPError
}
RevokeBadRequest describes a response with status code 400, with default header values.

bad request

func NewRevokeBadRequest

func NewRevokeBadRequest() *RevokeBadRequest

NewRevokeBadRequest creates a RevokeBadRequest with default headers values

func (*RevokeBadRequest) Error

func (o *RevokeBadRequest) Error() string

func (*RevokeBadRequest) GetPayload

func (o *RevokeBadRequest) GetPayload() *models.HTTPError

func (*RevokeBadRequest) IsClientError

func (o *RevokeBadRequest) IsClientError() bool

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

func (*RevokeBadRequest) IsCode

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

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

func (*RevokeBadRequest) IsRedirect

func (o *RevokeBadRequest) IsRedirect() bool

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

func (*RevokeBadRequest) IsServerError

func (o *RevokeBadRequest) IsServerError() bool

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

func (*RevokeBadRequest) IsSuccess

func (o *RevokeBadRequest) IsSuccess() bool

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

func (*RevokeBadRequest) String

func (o *RevokeBadRequest) String() string

type RevokeInternalServerError

type RevokeInternalServerError struct {
	Payload *models.HTTPError
}
RevokeInternalServerError describes a response with status code 500, with default header values.

server error

func NewRevokeInternalServerError

func NewRevokeInternalServerError() *RevokeInternalServerError

NewRevokeInternalServerError creates a RevokeInternalServerError with default headers values

func (*RevokeInternalServerError) Error

func (o *RevokeInternalServerError) Error() string

func (*RevokeInternalServerError) GetPayload

func (o *RevokeInternalServerError) GetPayload() *models.HTTPError

func (*RevokeInternalServerError) IsClientError

func (o *RevokeInternalServerError) IsClientError() bool

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

func (*RevokeInternalServerError) IsCode

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

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

func (*RevokeInternalServerError) IsRedirect

func (o *RevokeInternalServerError) IsRedirect() bool

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

func (*RevokeInternalServerError) IsServerError

func (o *RevokeInternalServerError) IsServerError() bool

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

func (*RevokeInternalServerError) IsSuccess

func (o *RevokeInternalServerError) IsSuccess() bool

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

func (*RevokeInternalServerError) String

func (o *RevokeInternalServerError) String() string

type RevokeNoContent

type RevokeNoContent struct {
}
RevokeNoContent describes a response with status code 204, with default header values.

no error

func NewRevokeNoContent

func NewRevokeNoContent() *RevokeNoContent

NewRevokeNoContent creates a RevokeNoContent with default headers values

func (*RevokeNoContent) Error

func (o *RevokeNoContent) Error() string

func (*RevokeNoContent) IsClientError

func (o *RevokeNoContent) IsClientError() bool

IsClientError returns true when this revoke no content response has a 4xx status code

func (*RevokeNoContent) IsCode

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

IsCode returns true when this revoke no content response a status code equal to that given

func (*RevokeNoContent) IsRedirect

func (o *RevokeNoContent) IsRedirect() bool

IsRedirect returns true when this revoke no content response has a 3xx status code

func (*RevokeNoContent) IsServerError

func (o *RevokeNoContent) IsServerError() bool

IsServerError returns true when this revoke no content response has a 5xx status code

func (*RevokeNoContent) IsSuccess

func (o *RevokeNoContent) IsSuccess() bool

IsSuccess returns true when this revoke no content response has a 2xx status code

func (*RevokeNoContent) String

func (o *RevokeNoContent) String() string

type RevokeParams

type RevokeParams struct {

	/* Refreshtoken.

	   Refresh token to revoke
	*/
	RefreshToken string

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

RevokeParams contains all the parameters to send to the API endpoint

for the revoke operation.

Typically these are written to a http.Request.

func NewRevokeParams

func NewRevokeParams() *RevokeParams

NewRevokeParams creates a new RevokeParams 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 NewRevokeParamsWithContext

func NewRevokeParamsWithContext(ctx context.Context) *RevokeParams

NewRevokeParamsWithContext creates a new RevokeParams object with the ability to set a context for a request.

func NewRevokeParamsWithHTTPClient

func NewRevokeParamsWithHTTPClient(client *http.Client) *RevokeParams

NewRevokeParamsWithHTTPClient creates a new RevokeParams object with the ability to set a custom HTTPClient for a request.

func NewRevokeParamsWithTimeout

func NewRevokeParamsWithTimeout(timeout time.Duration) *RevokeParams

NewRevokeParamsWithTimeout creates a new RevokeParams object with the ability to set a timeout on a request.

func (*RevokeParams) SetContext

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

SetContext adds the context to the revoke params

func (*RevokeParams) SetDefaults

func (o *RevokeParams) SetDefaults()

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

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

func (*RevokeParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the revoke params

func (*RevokeParams) SetRefreshToken

func (o *RevokeParams) SetRefreshToken(refreshtoken string)

SetRefreshToken adds the refreshtoken to the revoke params

func (*RevokeParams) SetTimeout

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

SetTimeout adds the timeout to the revoke params

func (*RevokeParams) WithContext

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

WithContext adds the context to the revoke params

func (*RevokeParams) WithDefaults

func (o *RevokeParams) WithDefaults() *RevokeParams

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

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

func (*RevokeParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the revoke params

func (*RevokeParams) WithRefreshToken

func (o *RevokeParams) WithRefreshToken(refreshtoken string) *RevokeParams

WithRefreshToken adds the refreshtoken to the revoke params

func (*RevokeParams) WithTimeout

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

WithTimeout adds the timeout to the revoke params

func (*RevokeParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type RevokeReader

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

RevokeReader is a Reader for the Revoke structure.

func (*RevokeReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type TokenBadRequest

type TokenBadRequest struct {
	Payload *models.HTTPError
}
TokenBadRequest describes a response with status code 400, with default header values.

bad request

func NewTokenBadRequest

func NewTokenBadRequest() *TokenBadRequest

NewTokenBadRequest creates a TokenBadRequest with default headers values

func (*TokenBadRequest) Error

func (o *TokenBadRequest) Error() string

func (*TokenBadRequest) GetPayload

func (o *TokenBadRequest) GetPayload() *models.HTTPError

func (*TokenBadRequest) IsClientError

func (o *TokenBadRequest) IsClientError() bool

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

func (*TokenBadRequest) IsCode

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

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

func (*TokenBadRequest) IsRedirect

func (o *TokenBadRequest) IsRedirect() bool

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

func (*TokenBadRequest) IsServerError

func (o *TokenBadRequest) IsServerError() bool

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

func (*TokenBadRequest) IsSuccess

func (o *TokenBadRequest) IsSuccess() bool

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

func (*TokenBadRequest) String

func (o *TokenBadRequest) String() string

type TokenInternalServerError

type TokenInternalServerError struct {
	Payload *models.HTTPError
}
TokenInternalServerError describes a response with status code 500, with default header values.

server error

func NewTokenInternalServerError

func NewTokenInternalServerError() *TokenInternalServerError

NewTokenInternalServerError creates a TokenInternalServerError with default headers values

func (*TokenInternalServerError) Error

func (o *TokenInternalServerError) Error() string

func (*TokenInternalServerError) GetPayload

func (o *TokenInternalServerError) GetPayload() *models.HTTPError

func (*TokenInternalServerError) IsClientError

func (o *TokenInternalServerError) IsClientError() bool

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

func (*TokenInternalServerError) IsCode

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

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

func (*TokenInternalServerError) IsRedirect

func (o *TokenInternalServerError) IsRedirect() bool

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

func (*TokenInternalServerError) IsServerError

func (o *TokenInternalServerError) IsServerError() bool

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

func (*TokenInternalServerError) IsSuccess

func (o *TokenInternalServerError) IsSuccess() bool

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

func (*TokenInternalServerError) String

func (o *TokenInternalServerError) String() string

type TokenOK

type TokenOK struct {
	Payload *models.AccessTokenResponse
}
TokenOK describes a response with status code 200, with default header values.

Successful authentication response

func NewTokenOK

func NewTokenOK() *TokenOK

NewTokenOK creates a TokenOK with default headers values

func (*TokenOK) Error

func (o *TokenOK) Error() string

func (*TokenOK) GetPayload

func (o *TokenOK) GetPayload() *models.AccessTokenResponse

func (*TokenOK) IsClientError

func (o *TokenOK) IsClientError() bool

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

func (*TokenOK) IsCode

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

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

func (*TokenOK) IsRedirect

func (o *TokenOK) IsRedirect() bool

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

func (*TokenOK) IsServerError

func (o *TokenOK) IsServerError() bool

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

func (*TokenOK) IsSuccess

func (o *TokenOK) IsSuccess() bool

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

func (*TokenOK) String

func (o *TokenOK) String() string

type TokenParams

type TokenParams struct {

	/* AwsBody.

	   Base64 encoded signed aws request body for aws_iam grant type
	*/
	AwsBody *string

	/* AwsHeaders.

	   Base64 encoded signed aws request headers for aws_iam grant type
	*/
	AwsHeaders *string

	/* CertChallengeID.

	   Challenge id for the certificate grant type
	*/
	CertChallengeID *string

	/* ClientID.

	   Client id for client_credentials grant type
	*/
	ClientID *string

	/* ClientSecret.

	   Client secret for client_credentials grant type
	*/
	ClientSecret *string

	/* DecryptedChallenge.

	   Decrypted and base64 encoded challenge for the certificate grant type
	*/
	DecryptedChallenge *string

	// GrantType.
	GrantType string

	/* Jwt.

	   JWT token for azure and gcp grant types
	*/
	Jwt *string

	/* Password.

	   Password for password grant type
	*/
	Password *string

	/* Provider.

	   Provider name for password grant flow for Thycotic One authentication
	*/
	Provider *string

	/* RefreshToken.

	   Previously issued refresh token for the refresh_token grant type
	*/
	RefreshToken *string

	/* Username.

	   Username for password grant type
	*/
	Username *string

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

TokenParams contains all the parameters to send to the API endpoint

for the token operation.

Typically these are written to a http.Request.

func NewTokenParams

func NewTokenParams() *TokenParams

NewTokenParams creates a new TokenParams 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 NewTokenParamsWithContext

func NewTokenParamsWithContext(ctx context.Context) *TokenParams

NewTokenParamsWithContext creates a new TokenParams object with the ability to set a context for a request.

func NewTokenParamsWithHTTPClient

func NewTokenParamsWithHTTPClient(client *http.Client) *TokenParams

NewTokenParamsWithHTTPClient creates a new TokenParams object with the ability to set a custom HTTPClient for a request.

func NewTokenParamsWithTimeout

func NewTokenParamsWithTimeout(timeout time.Duration) *TokenParams

NewTokenParamsWithTimeout creates a new TokenParams object with the ability to set a timeout on a request.

func (*TokenParams) SetAwsBody

func (o *TokenParams) SetAwsBody(awsBody *string)

SetAwsBody adds the awsBody to the token params

func (*TokenParams) SetAwsHeaders

func (o *TokenParams) SetAwsHeaders(awsHeaders *string)

SetAwsHeaders adds the awsHeaders to the token params

func (*TokenParams) SetCertChallengeID

func (o *TokenParams) SetCertChallengeID(certChallengeID *string)

SetCertChallengeID adds the certChallengeId to the token params

func (*TokenParams) SetClientID

func (o *TokenParams) SetClientID(clientID *string)

SetClientID adds the clientId to the token params

func (*TokenParams) SetClientSecret

func (o *TokenParams) SetClientSecret(clientSecret *string)

SetClientSecret adds the clientSecret to the token params

func (*TokenParams) SetContext

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

SetContext adds the context to the token params

func (*TokenParams) SetDecryptedChallenge

func (o *TokenParams) SetDecryptedChallenge(decryptedChallenge *string)

SetDecryptedChallenge adds the decryptedChallenge to the token params

func (*TokenParams) SetDefaults

func (o *TokenParams) SetDefaults()

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

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

func (*TokenParams) SetGrantType

func (o *TokenParams) SetGrantType(grantType string)

SetGrantType adds the grantType to the token params

func (*TokenParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the token params

func (*TokenParams) SetJwt

func (o *TokenParams) SetJwt(jwt *string)

SetJwt adds the jwt to the token params

func (*TokenParams) SetPassword

func (o *TokenParams) SetPassword(password *string)

SetPassword adds the password to the token params

func (*TokenParams) SetProvider

func (o *TokenParams) SetProvider(provider *string)

SetProvider adds the provider to the token params

func (*TokenParams) SetRefreshToken

func (o *TokenParams) SetRefreshToken(refreshToken *string)

SetRefreshToken adds the refreshToken to the token params

func (*TokenParams) SetTimeout

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

SetTimeout adds the timeout to the token params

func (*TokenParams) SetUsername

func (o *TokenParams) SetUsername(username *string)

SetUsername adds the username to the token params

func (*TokenParams) WithAwsBody

func (o *TokenParams) WithAwsBody(awsBody *string) *TokenParams

WithAwsBody adds the awsBody to the token params

func (*TokenParams) WithAwsHeaders

func (o *TokenParams) WithAwsHeaders(awsHeaders *string) *TokenParams

WithAwsHeaders adds the awsHeaders to the token params

func (*TokenParams) WithCertChallengeID

func (o *TokenParams) WithCertChallengeID(certChallengeID *string) *TokenParams

WithCertChallengeID adds the certChallengeID to the token params

func (*TokenParams) WithClientID

func (o *TokenParams) WithClientID(clientID *string) *TokenParams

WithClientID adds the clientID to the token params

func (*TokenParams) WithClientSecret

func (o *TokenParams) WithClientSecret(clientSecret *string) *TokenParams

WithClientSecret adds the clientSecret to the token params

func (*TokenParams) WithContext

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

WithContext adds the context to the token params

func (*TokenParams) WithDecryptedChallenge

func (o *TokenParams) WithDecryptedChallenge(decryptedChallenge *string) *TokenParams

WithDecryptedChallenge adds the decryptedChallenge to the token params

func (*TokenParams) WithDefaults

func (o *TokenParams) WithDefaults() *TokenParams

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

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

func (*TokenParams) WithGrantType

func (o *TokenParams) WithGrantType(grantType string) *TokenParams

WithGrantType adds the grantType to the token params

func (*TokenParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the token params

func (*TokenParams) WithJwt

func (o *TokenParams) WithJwt(jwt *string) *TokenParams

WithJwt adds the jwt to the token params

func (*TokenParams) WithPassword

func (o *TokenParams) WithPassword(password *string) *TokenParams

WithPassword adds the password to the token params

func (*TokenParams) WithProvider

func (o *TokenParams) WithProvider(provider *string) *TokenParams

WithProvider adds the provider to the token params

func (*TokenParams) WithRefreshToken

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

WithRefreshToken adds the refreshToken to the token params

func (*TokenParams) WithTimeout

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

WithTimeout adds the timeout to the token params

func (*TokenParams) WithUsername

func (o *TokenParams) WithUsername(username *string) *TokenParams

WithUsername adds the username to the token params

func (*TokenParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type TokenReader

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

TokenReader is a Reader for the Token structure.

func (*TokenReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type TokenUnauthorized

type TokenUnauthorized struct {
	Payload *models.HTTPError
}
TokenUnauthorized describes a response with status code 401, with default header values.

unauthorized

func NewTokenUnauthorized

func NewTokenUnauthorized() *TokenUnauthorized

NewTokenUnauthorized creates a TokenUnauthorized with default headers values

func (*TokenUnauthorized) Error

func (o *TokenUnauthorized) Error() string

func (*TokenUnauthorized) GetPayload

func (o *TokenUnauthorized) GetPayload() *models.HTTPError

func (*TokenUnauthorized) IsClientError

func (o *TokenUnauthorized) IsClientError() bool

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

func (*TokenUnauthorized) IsCode

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

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

func (*TokenUnauthorized) IsRedirect

func (o *TokenUnauthorized) IsRedirect() bool

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

func (*TokenUnauthorized) IsServerError

func (o *TokenUnauthorized) IsServerError() bool

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

func (*TokenUnauthorized) IsSuccess

func (o *TokenUnauthorized) IsSuccess() bool

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

func (*TokenUnauthorized) String

func (o *TokenUnauthorized) String() string

Jump to

Keyboard shortcuts

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