tokens

package
v0.0.0-...-6316459 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2024 License: Apache-2.0 Imports: 11 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) RevokeTokens

func (a *Client) RevokeTokens(params *RevokeTokensParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*RevokeTokensNoContent, error)
RevokeTokens revokes tokens

Revoke tokens for given set of subjects (min 1, max 100 subjects can be specified).

Tokens includes access and refresh tokens but also authorization codes, authorization requests, sso sessions and scopes grants.

Optional IDP id if provided will recalculate subjects values if server is using hashed subject type.

func (*Client) RevokeTokensByPool

func (a *Client) RevokeTokensByPool(params *RevokeTokensByPoolParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*RevokeTokensByPoolNoContent, error)
RevokeTokensByPool revokes tokens for users in pool

Revoke tokens for given set of userIds (min 1, max 100 userIds can be specified).

Tokens includes access and refresh tokens but also authorization codes, authorization requests, sso sessions and scopes grants.

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 {
	RevokeTokens(params *RevokeTokensParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*RevokeTokensNoContent, error)

	RevokeTokensByPool(params *RevokeTokensByPoolParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*RevokeTokensByPoolNoContent, 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.

func NewClientWithBasicAuth

func NewClientWithBasicAuth(host, basePath, scheme, user, password string) ClientService

New creates a new tokens 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 tokens 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.

type RevokeTokensByPoolForbidden

type RevokeTokensByPoolForbidden struct {
	Payload *models.Error
}

RevokeTokensByPoolForbidden describes a response with status code 403, with default header values.

Forbidden

func NewRevokeTokensByPoolForbidden

func NewRevokeTokensByPoolForbidden() *RevokeTokensByPoolForbidden

NewRevokeTokensByPoolForbidden creates a RevokeTokensByPoolForbidden with default headers values

func (*RevokeTokensByPoolForbidden) Code

func (o *RevokeTokensByPoolForbidden) Code() int

Code gets the status code for the revoke tokens by pool forbidden response

func (*RevokeTokensByPoolForbidden) Error

func (*RevokeTokensByPoolForbidden) GetPayload

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

func (*RevokeTokensByPoolForbidden) IsClientError

func (o *RevokeTokensByPoolForbidden) IsClientError() bool

IsClientError returns true when this revoke tokens by pool forbidden response has a 4xx status code

func (*RevokeTokensByPoolForbidden) IsCode

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

IsCode returns true when this revoke tokens by pool forbidden response a status code equal to that given

func (*RevokeTokensByPoolForbidden) IsRedirect

func (o *RevokeTokensByPoolForbidden) IsRedirect() bool

IsRedirect returns true when this revoke tokens by pool forbidden response has a 3xx status code

func (*RevokeTokensByPoolForbidden) IsServerError

func (o *RevokeTokensByPoolForbidden) IsServerError() bool

IsServerError returns true when this revoke tokens by pool forbidden response has a 5xx status code

func (*RevokeTokensByPoolForbidden) IsSuccess

func (o *RevokeTokensByPoolForbidden) IsSuccess() bool

IsSuccess returns true when this revoke tokens by pool forbidden response has a 2xx status code

func (*RevokeTokensByPoolForbidden) String

func (o *RevokeTokensByPoolForbidden) String() string

type RevokeTokensByPoolNoContent

type RevokeTokensByPoolNoContent struct {
}

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

tokens revoked

func NewRevokeTokensByPoolNoContent

func NewRevokeTokensByPoolNoContent() *RevokeTokensByPoolNoContent

NewRevokeTokensByPoolNoContent creates a RevokeTokensByPoolNoContent with default headers values

func (*RevokeTokensByPoolNoContent) Code

func (o *RevokeTokensByPoolNoContent) Code() int

Code gets the status code for the revoke tokens by pool no content response

func (*RevokeTokensByPoolNoContent) Error

func (*RevokeTokensByPoolNoContent) IsClientError

func (o *RevokeTokensByPoolNoContent) IsClientError() bool

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

func (*RevokeTokensByPoolNoContent) IsCode

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

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

func (*RevokeTokensByPoolNoContent) IsRedirect

func (o *RevokeTokensByPoolNoContent) IsRedirect() bool

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

func (*RevokeTokensByPoolNoContent) IsServerError

func (o *RevokeTokensByPoolNoContent) IsServerError() bool

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

func (*RevokeTokensByPoolNoContent) IsSuccess

func (o *RevokeTokensByPoolNoContent) IsSuccess() bool

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

func (*RevokeTokensByPoolNoContent) String

func (o *RevokeTokensByPoolNoContent) String() string

type RevokeTokensByPoolNotFound

type RevokeTokensByPoolNotFound struct {
	Payload *models.Error
}

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

Not found

func NewRevokeTokensByPoolNotFound

func NewRevokeTokensByPoolNotFound() *RevokeTokensByPoolNotFound

NewRevokeTokensByPoolNotFound creates a RevokeTokensByPoolNotFound with default headers values

func (*RevokeTokensByPoolNotFound) Code

func (o *RevokeTokensByPoolNotFound) Code() int

Code gets the status code for the revoke tokens by pool not found response

func (*RevokeTokensByPoolNotFound) Error

func (*RevokeTokensByPoolNotFound) GetPayload

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

func (*RevokeTokensByPoolNotFound) IsClientError

func (o *RevokeTokensByPoolNotFound) IsClientError() bool

IsClientError returns true when this revoke tokens by pool not found response has a 4xx status code

func (*RevokeTokensByPoolNotFound) IsCode

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

IsCode returns true when this revoke tokens by pool not found response a status code equal to that given

func (*RevokeTokensByPoolNotFound) IsRedirect

func (o *RevokeTokensByPoolNotFound) IsRedirect() bool

IsRedirect returns true when this revoke tokens by pool not found response has a 3xx status code

func (*RevokeTokensByPoolNotFound) IsServerError

func (o *RevokeTokensByPoolNotFound) IsServerError() bool

IsServerError returns true when this revoke tokens by pool not found response has a 5xx status code

func (*RevokeTokensByPoolNotFound) IsSuccess

func (o *RevokeTokensByPoolNotFound) IsSuccess() bool

IsSuccess returns true when this revoke tokens by pool not found response has a 2xx status code

func (*RevokeTokensByPoolNotFound) String

func (o *RevokeTokensByPoolNotFound) String() string

type RevokeTokensByPoolParams

type RevokeTokensByPoolParams struct {

	// Request.
	Request *models.RevokeTokensByPoolRequest

	/* IfMatch.

	   A server will only return requested resources if the resource matches one of the listed ETag value

	   Format: etag
	*/
	IfMatch *string

	/* IPID.

	   Identity pool id

	   Default: "default"
	*/
	IPID string

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

RevokeTokensByPoolParams contains all the parameters to send to the API endpoint

for the revoke tokens by pool operation.

Typically these are written to a http.Request.

func NewRevokeTokensByPoolParams

func NewRevokeTokensByPoolParams() *RevokeTokensByPoolParams

NewRevokeTokensByPoolParams creates a new RevokeTokensByPoolParams 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 NewRevokeTokensByPoolParamsWithContext

func NewRevokeTokensByPoolParamsWithContext(ctx context.Context) *RevokeTokensByPoolParams

NewRevokeTokensByPoolParamsWithContext creates a new RevokeTokensByPoolParams object with the ability to set a context for a request.

func NewRevokeTokensByPoolParamsWithHTTPClient

func NewRevokeTokensByPoolParamsWithHTTPClient(client *http.Client) *RevokeTokensByPoolParams

NewRevokeTokensByPoolParamsWithHTTPClient creates a new RevokeTokensByPoolParams object with the ability to set a custom HTTPClient for a request.

func NewRevokeTokensByPoolParamsWithTimeout

func NewRevokeTokensByPoolParamsWithTimeout(timeout time.Duration) *RevokeTokensByPoolParams

NewRevokeTokensByPoolParamsWithTimeout creates a new RevokeTokensByPoolParams object with the ability to set a timeout on a request.

func (*RevokeTokensByPoolParams) SetContext

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

SetContext adds the context to the revoke tokens by pool params

func (*RevokeTokensByPoolParams) SetDefaults

func (o *RevokeTokensByPoolParams) SetDefaults()

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

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

func (*RevokeTokensByPoolParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the revoke tokens by pool params

func (*RevokeTokensByPoolParams) SetIPID

func (o *RevokeTokensByPoolParams) SetIPID(iPID string)

SetIPID adds the ipId to the revoke tokens by pool params

func (*RevokeTokensByPoolParams) SetIfMatch

func (o *RevokeTokensByPoolParams) SetIfMatch(ifMatch *string)

SetIfMatch adds the ifMatch to the revoke tokens by pool params

func (*RevokeTokensByPoolParams) SetRequest

SetRequest adds the request to the revoke tokens by pool params

func (*RevokeTokensByPoolParams) SetTimeout

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

SetTimeout adds the timeout to the revoke tokens by pool params

func (*RevokeTokensByPoolParams) WithContext

WithContext adds the context to the revoke tokens by pool params

func (*RevokeTokensByPoolParams) WithDefaults

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

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

func (*RevokeTokensByPoolParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the revoke tokens by pool params

func (*RevokeTokensByPoolParams) WithIPID

WithIPID adds the iPID to the revoke tokens by pool params

func (*RevokeTokensByPoolParams) WithIfMatch

func (o *RevokeTokensByPoolParams) WithIfMatch(ifMatch *string) *RevokeTokensByPoolParams

WithIfMatch adds the ifMatch to the revoke tokens by pool params

func (*RevokeTokensByPoolParams) WithRequest

WithRequest adds the request to the revoke tokens by pool params

func (*RevokeTokensByPoolParams) WithTimeout

WithTimeout adds the timeout to the revoke tokens by pool params

func (*RevokeTokensByPoolParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type RevokeTokensByPoolReader

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

RevokeTokensByPoolReader is a Reader for the RevokeTokensByPool structure.

func (*RevokeTokensByPoolReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type RevokeTokensByPoolUnauthorized

type RevokeTokensByPoolUnauthorized struct {
	Payload *models.Error
}

RevokeTokensByPoolUnauthorized describes a response with status code 401, with default header values.

Unauthorized

func NewRevokeTokensByPoolUnauthorized

func NewRevokeTokensByPoolUnauthorized() *RevokeTokensByPoolUnauthorized

NewRevokeTokensByPoolUnauthorized creates a RevokeTokensByPoolUnauthorized with default headers values

func (*RevokeTokensByPoolUnauthorized) Code

Code gets the status code for the revoke tokens by pool unauthorized response

func (*RevokeTokensByPoolUnauthorized) Error

func (*RevokeTokensByPoolUnauthorized) GetPayload

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

func (*RevokeTokensByPoolUnauthorized) IsClientError

func (o *RevokeTokensByPoolUnauthorized) IsClientError() bool

IsClientError returns true when this revoke tokens by pool unauthorized response has a 4xx status code

func (*RevokeTokensByPoolUnauthorized) IsCode

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

IsCode returns true when this revoke tokens by pool unauthorized response a status code equal to that given

func (*RevokeTokensByPoolUnauthorized) IsRedirect

func (o *RevokeTokensByPoolUnauthorized) IsRedirect() bool

IsRedirect returns true when this revoke tokens by pool unauthorized response has a 3xx status code

func (*RevokeTokensByPoolUnauthorized) IsServerError

func (o *RevokeTokensByPoolUnauthorized) IsServerError() bool

IsServerError returns true when this revoke tokens by pool unauthorized response has a 5xx status code

func (*RevokeTokensByPoolUnauthorized) IsSuccess

func (o *RevokeTokensByPoolUnauthorized) IsSuccess() bool

IsSuccess returns true when this revoke tokens by pool unauthorized response has a 2xx status code

func (*RevokeTokensByPoolUnauthorized) String

type RevokeTokensByPoolUnprocessableEntity

type RevokeTokensByPoolUnprocessableEntity struct {
	Payload *models.Error
}

RevokeTokensByPoolUnprocessableEntity describes a response with status code 422, with default header values.

Unprocessable entity

func NewRevokeTokensByPoolUnprocessableEntity

func NewRevokeTokensByPoolUnprocessableEntity() *RevokeTokensByPoolUnprocessableEntity

NewRevokeTokensByPoolUnprocessableEntity creates a RevokeTokensByPoolUnprocessableEntity with default headers values

func (*RevokeTokensByPoolUnprocessableEntity) Code

Code gets the status code for the revoke tokens by pool unprocessable entity response

func (*RevokeTokensByPoolUnprocessableEntity) Error

func (*RevokeTokensByPoolUnprocessableEntity) GetPayload

func (*RevokeTokensByPoolUnprocessableEntity) IsClientError

func (o *RevokeTokensByPoolUnprocessableEntity) IsClientError() bool

IsClientError returns true when this revoke tokens by pool unprocessable entity response has a 4xx status code

func (*RevokeTokensByPoolUnprocessableEntity) IsCode

IsCode returns true when this revoke tokens by pool unprocessable entity response a status code equal to that given

func (*RevokeTokensByPoolUnprocessableEntity) IsRedirect

IsRedirect returns true when this revoke tokens by pool unprocessable entity response has a 3xx status code

func (*RevokeTokensByPoolUnprocessableEntity) IsServerError

func (o *RevokeTokensByPoolUnprocessableEntity) IsServerError() bool

IsServerError returns true when this revoke tokens by pool unprocessable entity response has a 5xx status code

func (*RevokeTokensByPoolUnprocessableEntity) IsSuccess

IsSuccess returns true when this revoke tokens by pool unprocessable entity response has a 2xx status code

func (*RevokeTokensByPoolUnprocessableEntity) String

type RevokeTokensForbidden

type RevokeTokensForbidden struct {
	Payload *models.Error
}

RevokeTokensForbidden describes a response with status code 403, with default header values.

Forbidden

func NewRevokeTokensForbidden

func NewRevokeTokensForbidden() *RevokeTokensForbidden

NewRevokeTokensForbidden creates a RevokeTokensForbidden with default headers values

func (*RevokeTokensForbidden) Code

func (o *RevokeTokensForbidden) Code() int

Code gets the status code for the revoke tokens forbidden response

func (*RevokeTokensForbidden) Error

func (o *RevokeTokensForbidden) Error() string

func (*RevokeTokensForbidden) GetPayload

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

func (*RevokeTokensForbidden) IsClientError

func (o *RevokeTokensForbidden) IsClientError() bool

IsClientError returns true when this revoke tokens forbidden response has a 4xx status code

func (*RevokeTokensForbidden) IsCode

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

IsCode returns true when this revoke tokens forbidden response a status code equal to that given

func (*RevokeTokensForbidden) IsRedirect

func (o *RevokeTokensForbidden) IsRedirect() bool

IsRedirect returns true when this revoke tokens forbidden response has a 3xx status code

func (*RevokeTokensForbidden) IsServerError

func (o *RevokeTokensForbidden) IsServerError() bool

IsServerError returns true when this revoke tokens forbidden response has a 5xx status code

func (*RevokeTokensForbidden) IsSuccess

func (o *RevokeTokensForbidden) IsSuccess() bool

IsSuccess returns true when this revoke tokens forbidden response has a 2xx status code

func (*RevokeTokensForbidden) String

func (o *RevokeTokensForbidden) String() string

type RevokeTokensNoContent

type RevokeTokensNoContent struct {
}

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

tokens revoked

func NewRevokeTokensNoContent

func NewRevokeTokensNoContent() *RevokeTokensNoContent

NewRevokeTokensNoContent creates a RevokeTokensNoContent with default headers values

func (*RevokeTokensNoContent) Code

func (o *RevokeTokensNoContent) Code() int

Code gets the status code for the revoke tokens no content response

func (*RevokeTokensNoContent) Error

func (o *RevokeTokensNoContent) Error() string

func (*RevokeTokensNoContent) IsClientError

func (o *RevokeTokensNoContent) IsClientError() bool

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

func (*RevokeTokensNoContent) IsCode

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

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

func (*RevokeTokensNoContent) IsRedirect

func (o *RevokeTokensNoContent) IsRedirect() bool

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

func (*RevokeTokensNoContent) IsServerError

func (o *RevokeTokensNoContent) IsServerError() bool

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

func (*RevokeTokensNoContent) IsSuccess

func (o *RevokeTokensNoContent) IsSuccess() bool

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

func (*RevokeTokensNoContent) String

func (o *RevokeTokensNoContent) String() string

type RevokeTokensNotFound

type RevokeTokensNotFound struct {
	Payload *models.Error
}

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

Not found

func NewRevokeTokensNotFound

func NewRevokeTokensNotFound() *RevokeTokensNotFound

NewRevokeTokensNotFound creates a RevokeTokensNotFound with default headers values

func (*RevokeTokensNotFound) Code

func (o *RevokeTokensNotFound) Code() int

Code gets the status code for the revoke tokens not found response

func (*RevokeTokensNotFound) Error

func (o *RevokeTokensNotFound) Error() string

func (*RevokeTokensNotFound) GetPayload

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

func (*RevokeTokensNotFound) IsClientError

func (o *RevokeTokensNotFound) IsClientError() bool

IsClientError returns true when this revoke tokens not found response has a 4xx status code

func (*RevokeTokensNotFound) IsCode

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

IsCode returns true when this revoke tokens not found response a status code equal to that given

func (*RevokeTokensNotFound) IsRedirect

func (o *RevokeTokensNotFound) IsRedirect() bool

IsRedirect returns true when this revoke tokens not found response has a 3xx status code

func (*RevokeTokensNotFound) IsServerError

func (o *RevokeTokensNotFound) IsServerError() bool

IsServerError returns true when this revoke tokens not found response has a 5xx status code

func (*RevokeTokensNotFound) IsSuccess

func (o *RevokeTokensNotFound) IsSuccess() bool

IsSuccess returns true when this revoke tokens not found response has a 2xx status code

func (*RevokeTokensNotFound) String

func (o *RevokeTokensNotFound) String() string

type RevokeTokensParams

type RevokeTokensParams struct {

	// Request.
	Request *models.RevokeTokenRequest

	/* IfMatch.

	   A server will only return requested resources if the resource matches one of the listed ETag value

	   Format: etag
	*/
	IfMatch *string

	/* Wid.

	   Authorization server id

	   Default: "default"
	*/
	Wid string

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

RevokeTokensParams contains all the parameters to send to the API endpoint

for the revoke tokens operation.

Typically these are written to a http.Request.

func NewRevokeTokensParams

func NewRevokeTokensParams() *RevokeTokensParams

NewRevokeTokensParams creates a new RevokeTokensParams 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 NewRevokeTokensParamsWithContext

func NewRevokeTokensParamsWithContext(ctx context.Context) *RevokeTokensParams

NewRevokeTokensParamsWithContext creates a new RevokeTokensParams object with the ability to set a context for a request.

func NewRevokeTokensParamsWithHTTPClient

func NewRevokeTokensParamsWithHTTPClient(client *http.Client) *RevokeTokensParams

NewRevokeTokensParamsWithHTTPClient creates a new RevokeTokensParams object with the ability to set a custom HTTPClient for a request.

func NewRevokeTokensParamsWithTimeout

func NewRevokeTokensParamsWithTimeout(timeout time.Duration) *RevokeTokensParams

NewRevokeTokensParamsWithTimeout creates a new RevokeTokensParams object with the ability to set a timeout on a request.

func (*RevokeTokensParams) SetContext

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

SetContext adds the context to the revoke tokens params

func (*RevokeTokensParams) SetDefaults

func (o *RevokeTokensParams) SetDefaults()

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

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

func (*RevokeTokensParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the revoke tokens params

func (*RevokeTokensParams) SetIfMatch

func (o *RevokeTokensParams) SetIfMatch(ifMatch *string)

SetIfMatch adds the ifMatch to the revoke tokens params

func (*RevokeTokensParams) SetRequest

func (o *RevokeTokensParams) SetRequest(request *models.RevokeTokenRequest)

SetRequest adds the request to the revoke tokens params

func (*RevokeTokensParams) SetTimeout

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

SetTimeout adds the timeout to the revoke tokens params

func (*RevokeTokensParams) SetWid

func (o *RevokeTokensParams) SetWid(wid string)

SetWid adds the wid to the revoke tokens params

func (*RevokeTokensParams) WithContext

WithContext adds the context to the revoke tokens params

func (*RevokeTokensParams) WithDefaults

func (o *RevokeTokensParams) WithDefaults() *RevokeTokensParams

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

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

func (*RevokeTokensParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the revoke tokens params

func (*RevokeTokensParams) WithIfMatch

func (o *RevokeTokensParams) WithIfMatch(ifMatch *string) *RevokeTokensParams

WithIfMatch adds the ifMatch to the revoke tokens params

func (*RevokeTokensParams) WithRequest

WithRequest adds the request to the revoke tokens params

func (*RevokeTokensParams) WithTimeout

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

WithTimeout adds the timeout to the revoke tokens params

func (*RevokeTokensParams) WithWid

func (o *RevokeTokensParams) WithWid(wid string) *RevokeTokensParams

WithWid adds the wid to the revoke tokens params

func (*RevokeTokensParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type RevokeTokensReader

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

RevokeTokensReader is a Reader for the RevokeTokens structure.

func (*RevokeTokensReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type RevokeTokensUnauthorized

type RevokeTokensUnauthorized struct {
	Payload *models.Error
}

RevokeTokensUnauthorized describes a response with status code 401, with default header values.

Unauthorized

func NewRevokeTokensUnauthorized

func NewRevokeTokensUnauthorized() *RevokeTokensUnauthorized

NewRevokeTokensUnauthorized creates a RevokeTokensUnauthorized with default headers values

func (*RevokeTokensUnauthorized) Code

func (o *RevokeTokensUnauthorized) Code() int

Code gets the status code for the revoke tokens unauthorized response

func (*RevokeTokensUnauthorized) Error

func (o *RevokeTokensUnauthorized) Error() string

func (*RevokeTokensUnauthorized) GetPayload

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

func (*RevokeTokensUnauthorized) IsClientError

func (o *RevokeTokensUnauthorized) IsClientError() bool

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

func (*RevokeTokensUnauthorized) IsCode

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

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

func (*RevokeTokensUnauthorized) IsRedirect

func (o *RevokeTokensUnauthorized) IsRedirect() bool

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

func (*RevokeTokensUnauthorized) IsServerError

func (o *RevokeTokensUnauthorized) IsServerError() bool

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

func (*RevokeTokensUnauthorized) IsSuccess

func (o *RevokeTokensUnauthorized) IsSuccess() bool

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

func (*RevokeTokensUnauthorized) String

func (o *RevokeTokensUnauthorized) String() string

type RevokeTokensUnprocessableEntity

type RevokeTokensUnprocessableEntity struct {
	Payload *models.Error
}

RevokeTokensUnprocessableEntity describes a response with status code 422, with default header values.

Unprocessable entity

func NewRevokeTokensUnprocessableEntity

func NewRevokeTokensUnprocessableEntity() *RevokeTokensUnprocessableEntity

NewRevokeTokensUnprocessableEntity creates a RevokeTokensUnprocessableEntity with default headers values

func (*RevokeTokensUnprocessableEntity) Code

Code gets the status code for the revoke tokens unprocessable entity response

func (*RevokeTokensUnprocessableEntity) Error

func (*RevokeTokensUnprocessableEntity) GetPayload

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

func (*RevokeTokensUnprocessableEntity) IsClientError

func (o *RevokeTokensUnprocessableEntity) IsClientError() bool

IsClientError returns true when this revoke tokens unprocessable entity response has a 4xx status code

func (*RevokeTokensUnprocessableEntity) IsCode

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

IsCode returns true when this revoke tokens unprocessable entity response a status code equal to that given

func (*RevokeTokensUnprocessableEntity) IsRedirect

func (o *RevokeTokensUnprocessableEntity) IsRedirect() bool

IsRedirect returns true when this revoke tokens unprocessable entity response has a 3xx status code

func (*RevokeTokensUnprocessableEntity) IsServerError

func (o *RevokeTokensUnprocessableEntity) IsServerError() bool

IsServerError returns true when this revoke tokens unprocessable entity response has a 5xx status code

func (*RevokeTokensUnprocessableEntity) IsSuccess

func (o *RevokeTokensUnprocessableEntity) IsSuccess() bool

IsSuccess returns true when this revoke tokens unprocessable entity response has a 2xx status code

func (*RevokeTokensUnprocessableEntity) String

Jump to

Keyboard shortcuts

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