Documentation ¶
Index ¶
- type Client
- func (a *Client) RevokeTokens(params *RevokeTokensParams, authInfo runtime.ClientAuthInfoWriter, ...) (*RevokeTokensNoContent, error)
- func (a *Client) RevokeTokensByPool(params *RevokeTokensByPoolParams, authInfo runtime.ClientAuthInfoWriter, ...) (*RevokeTokensByPoolNoContent, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientOption
- type ClientService
- type RevokeTokensByPoolForbidden
- func (o *RevokeTokensByPoolForbidden) Code() int
- func (o *RevokeTokensByPoolForbidden) Error() string
- func (o *RevokeTokensByPoolForbidden) GetPayload() *models.Error
- func (o *RevokeTokensByPoolForbidden) IsClientError() bool
- func (o *RevokeTokensByPoolForbidden) IsCode(code int) bool
- func (o *RevokeTokensByPoolForbidden) IsRedirect() bool
- func (o *RevokeTokensByPoolForbidden) IsServerError() bool
- func (o *RevokeTokensByPoolForbidden) IsSuccess() bool
- func (o *RevokeTokensByPoolForbidden) String() string
- type RevokeTokensByPoolNoContent
- func (o *RevokeTokensByPoolNoContent) Code() int
- func (o *RevokeTokensByPoolNoContent) Error() string
- func (o *RevokeTokensByPoolNoContent) IsClientError() bool
- func (o *RevokeTokensByPoolNoContent) IsCode(code int) bool
- func (o *RevokeTokensByPoolNoContent) IsRedirect() bool
- func (o *RevokeTokensByPoolNoContent) IsServerError() bool
- func (o *RevokeTokensByPoolNoContent) IsSuccess() bool
- func (o *RevokeTokensByPoolNoContent) String() string
- type RevokeTokensByPoolNotFound
- func (o *RevokeTokensByPoolNotFound) Code() int
- func (o *RevokeTokensByPoolNotFound) Error() string
- func (o *RevokeTokensByPoolNotFound) GetPayload() *models.Error
- func (o *RevokeTokensByPoolNotFound) IsClientError() bool
- func (o *RevokeTokensByPoolNotFound) IsCode(code int) bool
- func (o *RevokeTokensByPoolNotFound) IsRedirect() bool
- func (o *RevokeTokensByPoolNotFound) IsServerError() bool
- func (o *RevokeTokensByPoolNotFound) IsSuccess() bool
- func (o *RevokeTokensByPoolNotFound) String() string
- type RevokeTokensByPoolParams
- func NewRevokeTokensByPoolParams() *RevokeTokensByPoolParams
- func NewRevokeTokensByPoolParamsWithContext(ctx context.Context) *RevokeTokensByPoolParams
- func NewRevokeTokensByPoolParamsWithHTTPClient(client *http.Client) *RevokeTokensByPoolParams
- func NewRevokeTokensByPoolParamsWithTimeout(timeout time.Duration) *RevokeTokensByPoolParams
- func (o *RevokeTokensByPoolParams) SetContext(ctx context.Context)
- func (o *RevokeTokensByPoolParams) SetDefaults()
- func (o *RevokeTokensByPoolParams) SetHTTPClient(client *http.Client)
- func (o *RevokeTokensByPoolParams) SetIPID(iPID string)
- func (o *RevokeTokensByPoolParams) SetIfMatch(ifMatch *string)
- func (o *RevokeTokensByPoolParams) SetRequest(request *models.RevokeTokensByPoolRequest)
- func (o *RevokeTokensByPoolParams) SetTimeout(timeout time.Duration)
- func (o *RevokeTokensByPoolParams) WithContext(ctx context.Context) *RevokeTokensByPoolParams
- func (o *RevokeTokensByPoolParams) WithDefaults() *RevokeTokensByPoolParams
- func (o *RevokeTokensByPoolParams) WithHTTPClient(client *http.Client) *RevokeTokensByPoolParams
- func (o *RevokeTokensByPoolParams) WithIPID(iPID string) *RevokeTokensByPoolParams
- func (o *RevokeTokensByPoolParams) WithIfMatch(ifMatch *string) *RevokeTokensByPoolParams
- func (o *RevokeTokensByPoolParams) WithRequest(request *models.RevokeTokensByPoolRequest) *RevokeTokensByPoolParams
- func (o *RevokeTokensByPoolParams) WithTimeout(timeout time.Duration) *RevokeTokensByPoolParams
- func (o *RevokeTokensByPoolParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type RevokeTokensByPoolReader
- type RevokeTokensByPoolUnauthorized
- func (o *RevokeTokensByPoolUnauthorized) Code() int
- func (o *RevokeTokensByPoolUnauthorized) Error() string
- func (o *RevokeTokensByPoolUnauthorized) GetPayload() *models.Error
- func (o *RevokeTokensByPoolUnauthorized) IsClientError() bool
- func (o *RevokeTokensByPoolUnauthorized) IsCode(code int) bool
- func (o *RevokeTokensByPoolUnauthorized) IsRedirect() bool
- func (o *RevokeTokensByPoolUnauthorized) IsServerError() bool
- func (o *RevokeTokensByPoolUnauthorized) IsSuccess() bool
- func (o *RevokeTokensByPoolUnauthorized) String() string
- type RevokeTokensByPoolUnprocessableEntity
- func (o *RevokeTokensByPoolUnprocessableEntity) Code() int
- func (o *RevokeTokensByPoolUnprocessableEntity) Error() string
- func (o *RevokeTokensByPoolUnprocessableEntity) GetPayload() *models.Error
- func (o *RevokeTokensByPoolUnprocessableEntity) IsClientError() bool
- func (o *RevokeTokensByPoolUnprocessableEntity) IsCode(code int) bool
- func (o *RevokeTokensByPoolUnprocessableEntity) IsRedirect() bool
- func (o *RevokeTokensByPoolUnprocessableEntity) IsServerError() bool
- func (o *RevokeTokensByPoolUnprocessableEntity) IsSuccess() bool
- func (o *RevokeTokensByPoolUnprocessableEntity) String() string
- type RevokeTokensForbidden
- func (o *RevokeTokensForbidden) Code() int
- func (o *RevokeTokensForbidden) Error() string
- func (o *RevokeTokensForbidden) GetPayload() *models.Error
- func (o *RevokeTokensForbidden) IsClientError() bool
- func (o *RevokeTokensForbidden) IsCode(code int) bool
- func (o *RevokeTokensForbidden) IsRedirect() bool
- func (o *RevokeTokensForbidden) IsServerError() bool
- func (o *RevokeTokensForbidden) IsSuccess() bool
- func (o *RevokeTokensForbidden) String() string
- type RevokeTokensNoContent
- func (o *RevokeTokensNoContent) Code() int
- func (o *RevokeTokensNoContent) Error() string
- func (o *RevokeTokensNoContent) IsClientError() bool
- func (o *RevokeTokensNoContent) IsCode(code int) bool
- func (o *RevokeTokensNoContent) IsRedirect() bool
- func (o *RevokeTokensNoContent) IsServerError() bool
- func (o *RevokeTokensNoContent) IsSuccess() bool
- func (o *RevokeTokensNoContent) String() string
- type RevokeTokensNotFound
- func (o *RevokeTokensNotFound) Code() int
- func (o *RevokeTokensNotFound) Error() string
- func (o *RevokeTokensNotFound) GetPayload() *models.Error
- func (o *RevokeTokensNotFound) IsClientError() bool
- func (o *RevokeTokensNotFound) IsCode(code int) bool
- func (o *RevokeTokensNotFound) IsRedirect() bool
- func (o *RevokeTokensNotFound) IsServerError() bool
- func (o *RevokeTokensNotFound) IsSuccess() bool
- func (o *RevokeTokensNotFound) String() string
- type RevokeTokensParams
- func (o *RevokeTokensParams) SetContext(ctx context.Context)
- func (o *RevokeTokensParams) SetDefaults()
- func (o *RevokeTokensParams) SetHTTPClient(client *http.Client)
- func (o *RevokeTokensParams) SetIfMatch(ifMatch *string)
- func (o *RevokeTokensParams) SetRequest(request *models.RevokeTokenRequest)
- func (o *RevokeTokensParams) SetTimeout(timeout time.Duration)
- func (o *RevokeTokensParams) SetWid(wid string)
- func (o *RevokeTokensParams) WithContext(ctx context.Context) *RevokeTokensParams
- func (o *RevokeTokensParams) WithDefaults() *RevokeTokensParams
- func (o *RevokeTokensParams) WithHTTPClient(client *http.Client) *RevokeTokensParams
- func (o *RevokeTokensParams) WithIfMatch(ifMatch *string) *RevokeTokensParams
- func (o *RevokeTokensParams) WithRequest(request *models.RevokeTokenRequest) *RevokeTokensParams
- func (o *RevokeTokensParams) WithTimeout(timeout time.Duration) *RevokeTokensParams
- func (o *RevokeTokensParams) WithWid(wid string) *RevokeTokensParams
- func (o *RevokeTokensParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type RevokeTokensReader
- type RevokeTokensUnauthorized
- func (o *RevokeTokensUnauthorized) Code() int
- func (o *RevokeTokensUnauthorized) Error() string
- func (o *RevokeTokensUnauthorized) GetPayload() *models.Error
- func (o *RevokeTokensUnauthorized) IsClientError() bool
- func (o *RevokeTokensUnauthorized) IsCode(code int) bool
- func (o *RevokeTokensUnauthorized) IsRedirect() bool
- func (o *RevokeTokensUnauthorized) IsServerError() bool
- func (o *RevokeTokensUnauthorized) IsSuccess() bool
- func (o *RevokeTokensUnauthorized) String() string
- type RevokeTokensUnprocessableEntity
- func (o *RevokeTokensUnprocessableEntity) Code() int
- func (o *RevokeTokensUnprocessableEntity) Error() string
- func (o *RevokeTokensUnprocessableEntity) GetPayload() *models.Error
- func (o *RevokeTokensUnprocessableEntity) IsClientError() bool
- func (o *RevokeTokensUnprocessableEntity) IsCode(code int) bool
- func (o *RevokeTokensUnprocessableEntity) IsRedirect() bool
- func (o *RevokeTokensUnprocessableEntity) IsServerError() bool
- func (o *RevokeTokensUnprocessableEntity) IsSuccess() bool
- func (o *RevokeTokensUnprocessableEntity) String() string
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 ¶
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 (o *RevokeTokensByPoolForbidden) Error() string
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 (o *RevokeTokensByPoolNoContent) Error() string
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 ¶
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 (o *RevokeTokensByPoolNotFound) Error() string
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 ¶
func (o *RevokeTokensByPoolParams) SetRequest(request *models.RevokeTokensByPoolRequest)
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 ¶
func (o *RevokeTokensByPoolParams) WithContext(ctx context.Context) *RevokeTokensByPoolParams
WithContext adds the context to the revoke tokens by pool params
func (*RevokeTokensByPoolParams) WithDefaults ¶
func (o *RevokeTokensByPoolParams) WithDefaults() *RevokeTokensByPoolParams
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 ¶
func (o *RevokeTokensByPoolParams) WithIPID(iPID string) *RevokeTokensByPoolParams
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 ¶
func (o *RevokeTokensByPoolParams) WithRequest(request *models.RevokeTokensByPoolRequest) *RevokeTokensByPoolParams
WithRequest adds the request to the revoke tokens by pool params
func (*RevokeTokensByPoolParams) WithTimeout ¶
func (o *RevokeTokensByPoolParams) WithTimeout(timeout time.Duration) *RevokeTokensByPoolParams
WithTimeout adds the timeout to the revoke tokens by pool params
func (*RevokeTokensByPoolParams) WriteToRequest ¶
func (o *RevokeTokensByPoolParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 {
}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 ¶
func (o *RevokeTokensByPoolUnauthorized) Code() int
Code gets the status code for the revoke tokens by pool unauthorized response
func (*RevokeTokensByPoolUnauthorized) Error ¶
func (o *RevokeTokensByPoolUnauthorized) Error() string
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 ¶
func (o *RevokeTokensByPoolUnauthorized) String() string
type RevokeTokensByPoolUnprocessableEntity ¶
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 ¶
func (o *RevokeTokensByPoolUnprocessableEntity) Code() int
Code gets the status code for the revoke tokens by pool unprocessable entity response
func (*RevokeTokensByPoolUnprocessableEntity) Error ¶
func (o *RevokeTokensByPoolUnprocessableEntity) Error() string
func (*RevokeTokensByPoolUnprocessableEntity) GetPayload ¶
func (o *RevokeTokensByPoolUnprocessableEntity) GetPayload() *models.Error
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 ¶
func (o *RevokeTokensByPoolUnprocessableEntity) IsCode(code int) bool
IsCode returns true when this revoke tokens by pool unprocessable entity response a status code equal to that given
func (*RevokeTokensByPoolUnprocessableEntity) IsRedirect ¶
func (o *RevokeTokensByPoolUnprocessableEntity) IsRedirect() bool
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 ¶
func (o *RevokeTokensByPoolUnprocessableEntity) IsSuccess() bool
IsSuccess returns true when this revoke tokens by pool unprocessable entity response has a 2xx status code
func (*RevokeTokensByPoolUnprocessableEntity) String ¶
func (o *RevokeTokensByPoolUnprocessableEntity) String() string
type RevokeTokensForbidden ¶
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 ¶
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 ¶
func (o *RevokeTokensParams) WithContext(ctx context.Context) *RevokeTokensParams
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 ¶
func (o *RevokeTokensParams) WithRequest(request *models.RevokeTokenRequest) *RevokeTokensParams
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 {
}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 ¶
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 ¶
func (o *RevokeTokensUnprocessableEntity) Code() int
Code gets the status code for the revoke tokens unprocessable entity response
func (*RevokeTokensUnprocessableEntity) Error ¶
func (o *RevokeTokensUnprocessableEntity) Error() string
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 ¶
func (o *RevokeTokensUnprocessableEntity) String() string