o_auth2_0

package
v0.0.0-...-f573b6e Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2021 License: MIT Imports: 12 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthorizeV3Found

type AuthorizeV3Found struct {
	Location string
}

AuthorizeV3Found handles this case with default header values.

Found. Redirected to login page with either request_id or error.

func NewAuthorizeV3Found

func NewAuthorizeV3Found() *AuthorizeV3Found

NewAuthorizeV3Found creates a AuthorizeV3Found with default headers values

func (*AuthorizeV3Found) Error

func (o *AuthorizeV3Found) Error() string

type AuthorizeV3Params

type AuthorizeV3Params struct {

	/*ClientID
	  Registered client ID

	*/
	ClientID string
	/*CodeChallenge
	  Value generated by transforming code verifier using code challenge method. Mandatory for public client.

	*/
	CodeChallenge *string
	/*CodeChallengeMethod
	  Method that is used to transform code verifier to code challenge

	*/
	CodeChallengeMethod *string
	/*RedirectURI
	  Redirect URI registered for requesting client. Required if client registered with multiple redirect URI. Registered redirect uri will be assigned if left empty.

	*/
	RedirectURI *string
	/*ResponseType
	  Supported response type : 'code'

	*/
	ResponseType string
	/*Scope
	  Defines the requested access request scope. Can be multiple values delimited by whitespace.

	*/
	Scope *string
	/*State
	  Random value for preventing cross-site request forgery used by client.

	*/
	State *string
	/*TargetAuthPage
	  Custom query to tell authorization web which page to present to user

	*/
	TargetAuthPage *string

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

AuthorizeV3Params contains all the parameters to send to the API endpoint for the authorize v3 operation typically these are written to a http.Request

func NewAuthorizeV3Params

func NewAuthorizeV3Params() *AuthorizeV3Params

NewAuthorizeV3Params creates a new AuthorizeV3Params object with the default values initialized.

func NewAuthorizeV3ParamsWithContext

func NewAuthorizeV3ParamsWithContext(ctx context.Context) *AuthorizeV3Params

NewAuthorizeV3ParamsWithContext creates a new AuthorizeV3Params object with the default values initialized, and the ability to set a context for a request

func NewAuthorizeV3ParamsWithHTTPClient

func NewAuthorizeV3ParamsWithHTTPClient(client *http.Client) *AuthorizeV3Params

NewAuthorizeV3ParamsWithHTTPClient creates a new AuthorizeV3Params object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewAuthorizeV3ParamsWithTimeout

func NewAuthorizeV3ParamsWithTimeout(timeout time.Duration) *AuthorizeV3Params

NewAuthorizeV3ParamsWithTimeout creates a new AuthorizeV3Params object with the default values initialized, and the ability to set a timeout on a request

func (*AuthorizeV3Params) SetClientID

func (o *AuthorizeV3Params) SetClientID(clientID string)

SetClientID adds the clientId to the authorize v3 params

func (*AuthorizeV3Params) SetCodeChallenge

func (o *AuthorizeV3Params) SetCodeChallenge(codeChallenge *string)

SetCodeChallenge adds the codeChallenge to the authorize v3 params

func (*AuthorizeV3Params) SetCodeChallengeMethod

func (o *AuthorizeV3Params) SetCodeChallengeMethod(codeChallengeMethod *string)

SetCodeChallengeMethod adds the codeChallengeMethod to the authorize v3 params

func (*AuthorizeV3Params) SetContext

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

SetContext adds the context to the authorize v3 params

func (*AuthorizeV3Params) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the authorize v3 params

func (*AuthorizeV3Params) SetRedirectURI

func (o *AuthorizeV3Params) SetRedirectURI(redirectURI *string)

SetRedirectURI adds the redirectUri to the authorize v3 params

func (*AuthorizeV3Params) SetResponseType

func (o *AuthorizeV3Params) SetResponseType(responseType string)

SetResponseType adds the responseType to the authorize v3 params

func (*AuthorizeV3Params) SetScope

func (o *AuthorizeV3Params) SetScope(scope *string)

SetScope adds the scope to the authorize v3 params

func (*AuthorizeV3Params) SetState

func (o *AuthorizeV3Params) SetState(state *string)

SetState adds the state to the authorize v3 params

func (*AuthorizeV3Params) SetTargetAuthPage

func (o *AuthorizeV3Params) SetTargetAuthPage(targetAuthPage *string)

SetTargetAuthPage adds the targetAuthPage to the authorize v3 params

func (*AuthorizeV3Params) SetTimeout

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

SetTimeout adds the timeout to the authorize v3 params

func (*AuthorizeV3Params) WithClientID

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

WithClientID adds the clientID to the authorize v3 params

func (*AuthorizeV3Params) WithCodeChallenge

func (o *AuthorizeV3Params) WithCodeChallenge(codeChallenge *string) *AuthorizeV3Params

WithCodeChallenge adds the codeChallenge to the authorize v3 params

func (*AuthorizeV3Params) WithCodeChallengeMethod

func (o *AuthorizeV3Params) WithCodeChallengeMethod(codeChallengeMethod *string) *AuthorizeV3Params

WithCodeChallengeMethod adds the codeChallengeMethod to the authorize v3 params

func (*AuthorizeV3Params) WithContext

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

WithContext adds the context to the authorize v3 params

func (*AuthorizeV3Params) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the authorize v3 params

func (*AuthorizeV3Params) WithRedirectURI

func (o *AuthorizeV3Params) WithRedirectURI(redirectURI *string) *AuthorizeV3Params

WithRedirectURI adds the redirectURI to the authorize v3 params

func (*AuthorizeV3Params) WithResponseType

func (o *AuthorizeV3Params) WithResponseType(responseType string) *AuthorizeV3Params

WithResponseType adds the responseType to the authorize v3 params

func (*AuthorizeV3Params) WithScope

func (o *AuthorizeV3Params) WithScope(scope *string) *AuthorizeV3Params

WithScope adds the scope to the authorize v3 params

func (*AuthorizeV3Params) WithState

func (o *AuthorizeV3Params) WithState(state *string) *AuthorizeV3Params

WithState adds the state to the authorize v3 params

func (*AuthorizeV3Params) WithTargetAuthPage

func (o *AuthorizeV3Params) WithTargetAuthPage(targetAuthPage *string) *AuthorizeV3Params

WithTargetAuthPage adds the targetAuthPage to the authorize v3 params

func (*AuthorizeV3Params) WithTimeout

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

WithTimeout adds the timeout to the authorize v3 params

func (*AuthorizeV3Params) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type AuthorizeV3Reader

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

AuthorizeV3Reader is a Reader for the AuthorizeV3 structure.

func (*AuthorizeV3Reader) ReadResponse

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

ReadResponse reads a server response into the received o.

type Client

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

Client for o auth2 0 API

func (*Client) AuthorizeV3

func (a *Client) AuthorizeV3(params *AuthorizeV3Params, authInfo runtime.ClientAuthInfoWriter) (*AuthorizeV3Found, error)
AuthorizeV3 os auth2 authorize API

Initializes OAuth2.0 authorization code flow<br/>

<p>The endpoint stores authorization request and redirects to login page with the authorization request id.

The user can then do the authentication on the login page.
The user will be redirected back to the requesting client with authorization code if successfully authenticated.

</p> <p>Only authorization code flow supported by this endpoint, implicit flow is not supported.</p> <ul>

<li><p><strong>Authorize success</strong>:
	redirects to login page with the following information: ?request_id={authorization_request_id}</p>
</li>
<li><p><strong>Authorize failure</strong>:
	redirects to the given redirect uri with the following information:
	?error={error_code}&error_description={error description}</p>
</li>

</ul>

<p>Following are the error code based on the specification:</p>

<ul>

<li><p>invalid_request: The request is missing a required parameter,
	includes an invalid parameter value, includes a parameter more than once, or is otherwise malformed.</p>
</li>
<li><p>server_error:
	The authorization server encountered an unexpected condition that prevented it from fulfilling the request.</p>
</li>
<li><p>unauthorized_client: The client is not authorized to request a token using this method.</p></li>
<li><p>access_denied: The resource owner or authorization server denied the request.</p></li>
<li><p>invalid_scope: The requested scope is invalid, unknown, or malformed.</p></li>
<li><p>unsupported_response_type: The authorization server does not support obtaining a token using this method.</p></li>
<li><p>temporarily_unavailable: The authorization server is currently unable to handle the request
	due to a temporary overloading or maintenance of the server.</p>
</li>

</ul>

<p>Please refer to the RFC for more information about authorization code flow: https://tools.ietf.org/html/rfc6749#section-4.1</p><br>
action code: 10701

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) TokenGrantV3

  TokenGrantV3 os auth2 access token generation endpoint

  <p>This endpoint supports grant type:</p><ol>
	 		<li>Grant Type == <code>authorization_code</code>:<br />
				&nbsp;&nbsp;&nbsp; It generates the user token by given the authorization
				code which generated in "/v3/oauth/auth" API response. It should also pass
				in the redirect_uri, which should be the same as generating the
				authorization code request.
			</li>
			<li>Grant Type == <code>refresh_token</code>:<br />
	 			&nbsp;&nbsp;&nbsp; Used to get a new access token for a valid refresh token.
			</li>
			<li>Grant Type == <code>client_credentials</code>:<br />
	 			&nbsp;&nbsp;&nbsp; It generates a token by checking the client credentials provided through Authorization header.
			</li></ol>
			<h2>Access Token Content</h2>
			<p>Following is the access token’s content:</p>
			<ul>
			<li>
				<p><strong>namespace</strong>. It is the namespace the token was generated from.</p>
			</li>
			<li>
				<p><strong>display_name</strong>. The display name of the sub. It is empty if the token is generated from the client credential</p>
			</li>
			<li>
				<p><strong>roles</strong>. The sub’s roles. It is empty if the token is generated from the client credential</p>
			</li>
			<li>
				<p><strong>namespace_roles</strong>. The sub’s roles scoped to namespace. Improvement from roles, which make the role scoped to specific namespace instead of global to publisher namespace</p>
			</li>
			<li>
				<p><strong>permissions</strong>. The sub or aud’ permissions</p>
			</li>
			<li>
				<p><strong>bans</strong>. The sub’s list of bans. It is used by the IAM client for validating the token.</p>
			</li>
			<li>
				<p><strong>jflgs</strong>. It stands for Justice Flags. It is a special flag used for storing additional status information regarding the sub. It is implemented as a bit mask. Following explains what each bit represents:</p>
			<ul>
				<li><p>1: Email Address Verified</p></li>
				<li><p>2: Phone Number Verified</p></li>
				<li><p>4: Anonymous</p></li>
				<li><p>8: Suspicious Login</p></li>
			</ul>
			</li>
			<li>
				<p><strong>aud</strong>. The aud is the targeted resource server.</p>
			</li>
			<li>
				<p><strong>iat</strong>. The time the token issues at. It is in Epoch time format</p>
			</li>
			<li>
				<p><strong>exp</strong>. The time the token expires. It is in Epoch time format</p>
			</li>
			<li>
				<p><strong>client_id</strong>. The UserID. The sub is omitted if the token is generated from client credential</p>
			</li>
			<li>
				<p><strong>scope</strong>. The scope of the access request, expressed as a list of space-delimited, case-sensitive strings</p>
			</li>
			</ul>
			<h2>Bans</h2>
			<p>The JWT contains user's active bans with its expiry date. List of ban types can be obtained from /bans.</p>
			<h2>Track Login History</h2>
			<p>This endpoint will track login history to detect suspicious login activity, please provide "device_id" (alphanumeric) in request header parameter otherwise we will set to "unknown".</p>
			<p>Align with General Data Protection Regulation in Europe, user login history will be kept within 28 days by default"</p>
			<p>action code: 10703

func (*Client) TokenRevocationV3

  TokenRevocationV3 os auth2 token revocation API

  <p>This endpoint revokes a token.</p>
					 <p>This endpoint requires authorized requests header with valid access token.</p><br>action code: 10706

type ClientService

ClientService is the interface for Client methods

func New

func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService

New creates a new o auth2 0 API client.

type TokenGrantV3BadRequest

type TokenGrantV3BadRequest struct {
	Payload *iamclientmodels.OauthmodelErrorResponse
}

TokenGrantV3BadRequest handles this case with default header values.

InvalidRequest

func NewTokenGrantV3BadRequest

func NewTokenGrantV3BadRequest() *TokenGrantV3BadRequest

NewTokenGrantV3BadRequest creates a TokenGrantV3BadRequest with default headers values

func (*TokenGrantV3BadRequest) Error

func (o *TokenGrantV3BadRequest) Error() string

func (*TokenGrantV3BadRequest) GetPayload

type TokenGrantV3Forbidden

type TokenGrantV3Forbidden struct {
	Payload *iamclientmodels.OauthmodelErrorResponse
}

TokenGrantV3Forbidden handles this case with default header values.

Unauthorized access

func NewTokenGrantV3Forbidden

func NewTokenGrantV3Forbidden() *TokenGrantV3Forbidden

NewTokenGrantV3Forbidden creates a TokenGrantV3Forbidden with default headers values

func (*TokenGrantV3Forbidden) Error

func (o *TokenGrantV3Forbidden) Error() string

func (*TokenGrantV3Forbidden) GetPayload

type TokenGrantV3OK

type TokenGrantV3OK struct {
	Payload *iamclientmodels.OauthmodelTokenResponseV3
}

TokenGrantV3OK handles this case with default header values.

Token returned

func NewTokenGrantV3OK

func NewTokenGrantV3OK() *TokenGrantV3OK

NewTokenGrantV3OK creates a TokenGrantV3OK with default headers values

func (*TokenGrantV3OK) Error

func (o *TokenGrantV3OK) Error() string

func (*TokenGrantV3OK) GetPayload

type TokenGrantV3Params

type TokenGrantV3Params struct {

	/*ClientID
	  client_id (used with grant type 'authorization_code')

	*/
	ClientID *string
	/*Code
	  The authorization code received from the authorization server (used with grant type 'authorization_code')

	*/
	Code *string
	/*CodeVerifier
	  Code verifier received from the authorization server

	*/
	CodeVerifier *string
	/*DeviceID
	  DeviceID (Used on grant type 'password' to track login history) ex. 90252d14544846d79f367148e3f9a3d9

	*/
	DeviceID *string
	/*GrantType
	  Grant Type

	*/
	GrantType string
	/*RedirectURI
	  Redirect URI (used with grant type 'authorization_code')

	*/
	RedirectURI *string
	/*RefreshToken
	  Refresh Token (used with grant type 'refresh_token')

	*/
	RefreshToken *string

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

TokenGrantV3Params contains all the parameters to send to the API endpoint for the token grant v3 operation typically these are written to a http.Request

func NewTokenGrantV3Params

func NewTokenGrantV3Params() *TokenGrantV3Params

NewTokenGrantV3Params creates a new TokenGrantV3Params object with the default values initialized.

func NewTokenGrantV3ParamsWithContext

func NewTokenGrantV3ParamsWithContext(ctx context.Context) *TokenGrantV3Params

NewTokenGrantV3ParamsWithContext creates a new TokenGrantV3Params object with the default values initialized, and the ability to set a context for a request

func NewTokenGrantV3ParamsWithHTTPClient

func NewTokenGrantV3ParamsWithHTTPClient(client *http.Client) *TokenGrantV3Params

NewTokenGrantV3ParamsWithHTTPClient creates a new TokenGrantV3Params object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewTokenGrantV3ParamsWithTimeout

func NewTokenGrantV3ParamsWithTimeout(timeout time.Duration) *TokenGrantV3Params

NewTokenGrantV3ParamsWithTimeout creates a new TokenGrantV3Params object with the default values initialized, and the ability to set a timeout on a request

func (*TokenGrantV3Params) SetClientID

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

SetClientID adds the clientId to the token grant v3 params

func (*TokenGrantV3Params) SetCode

func (o *TokenGrantV3Params) SetCode(code *string)

SetCode adds the code to the token grant v3 params

func (*TokenGrantV3Params) SetCodeVerifier

func (o *TokenGrantV3Params) SetCodeVerifier(codeVerifier *string)

SetCodeVerifier adds the codeVerifier to the token grant v3 params

func (*TokenGrantV3Params) SetContext

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

SetContext adds the context to the token grant v3 params

func (*TokenGrantV3Params) SetDeviceID

func (o *TokenGrantV3Params) SetDeviceID(deviceID *string)

SetDeviceID adds the deviceId to the token grant v3 params

func (*TokenGrantV3Params) SetGrantType

func (o *TokenGrantV3Params) SetGrantType(grantType string)

SetGrantType adds the grantType to the token grant v3 params

func (*TokenGrantV3Params) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the token grant v3 params

func (*TokenGrantV3Params) SetRedirectURI

func (o *TokenGrantV3Params) SetRedirectURI(redirectURI *string)

SetRedirectURI adds the redirectUri to the token grant v3 params

func (*TokenGrantV3Params) SetRefreshToken

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

SetRefreshToken adds the refreshToken to the token grant v3 params

func (*TokenGrantV3Params) SetTimeout

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

SetTimeout adds the timeout to the token grant v3 params

func (*TokenGrantV3Params) WithClientID

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

WithClientID adds the clientID to the token grant v3 params

func (*TokenGrantV3Params) WithCode

func (o *TokenGrantV3Params) WithCode(code *string) *TokenGrantV3Params

WithCode adds the code to the token grant v3 params

func (*TokenGrantV3Params) WithCodeVerifier

func (o *TokenGrantV3Params) WithCodeVerifier(codeVerifier *string) *TokenGrantV3Params

WithCodeVerifier adds the codeVerifier to the token grant v3 params

func (*TokenGrantV3Params) WithContext

WithContext adds the context to the token grant v3 params

func (*TokenGrantV3Params) WithDeviceID

func (o *TokenGrantV3Params) WithDeviceID(deviceID *string) *TokenGrantV3Params

WithDeviceID adds the deviceID to the token grant v3 params

func (*TokenGrantV3Params) WithGrantType

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

WithGrantType adds the grantType to the token grant v3 params

func (*TokenGrantV3Params) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the token grant v3 params

func (*TokenGrantV3Params) WithRedirectURI

func (o *TokenGrantV3Params) WithRedirectURI(redirectURI *string) *TokenGrantV3Params

WithRedirectURI adds the redirectURI to the token grant v3 params

func (*TokenGrantV3Params) WithRefreshToken

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

WithRefreshToken adds the refreshToken to the token grant v3 params

func (*TokenGrantV3Params) WithTimeout

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

WithTimeout adds the timeout to the token grant v3 params

func (*TokenGrantV3Params) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type TokenGrantV3Reader

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

TokenGrantV3Reader is a Reader for the TokenGrantV3 structure.

func (*TokenGrantV3Reader) ReadResponse

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

ReadResponse reads a server response into the received o.

type TokenGrantV3Unauthorized

type TokenGrantV3Unauthorized struct {
	Payload *iamclientmodels.OauthmodelErrorResponse
}

TokenGrantV3Unauthorized handles this case with default header values.

Client authentication failed

func NewTokenGrantV3Unauthorized

func NewTokenGrantV3Unauthorized() *TokenGrantV3Unauthorized

NewTokenGrantV3Unauthorized creates a TokenGrantV3Unauthorized with default headers values

func (*TokenGrantV3Unauthorized) Error

func (o *TokenGrantV3Unauthorized) Error() string

func (*TokenGrantV3Unauthorized) GetPayload

type TokenRevocationV3BadRequest

type TokenRevocationV3BadRequest struct {
	Payload *iamclientmodels.OauthmodelErrorResponse
}

TokenRevocationV3BadRequest handles this case with default header values.

Invalid input

func NewTokenRevocationV3BadRequest

func NewTokenRevocationV3BadRequest() *TokenRevocationV3BadRequest

NewTokenRevocationV3BadRequest creates a TokenRevocationV3BadRequest with default headers values

func (*TokenRevocationV3BadRequest) Error

func (*TokenRevocationV3BadRequest) GetPayload

type TokenRevocationV3OK

type TokenRevocationV3OK struct {
}

TokenRevocationV3OK handles this case with default header values.

Token revoked or does not exist

func NewTokenRevocationV3OK

func NewTokenRevocationV3OK() *TokenRevocationV3OK

NewTokenRevocationV3OK creates a TokenRevocationV3OK with default headers values

func (*TokenRevocationV3OK) Error

func (o *TokenRevocationV3OK) Error() string

type TokenRevocationV3Params

type TokenRevocationV3Params struct {

	/*Token
	  Access token / Refresh token

	*/
	Token string

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

TokenRevocationV3Params contains all the parameters to send to the API endpoint for the token revocation v3 operation typically these are written to a http.Request

func NewTokenRevocationV3Params

func NewTokenRevocationV3Params() *TokenRevocationV3Params

NewTokenRevocationV3Params creates a new TokenRevocationV3Params object with the default values initialized.

func NewTokenRevocationV3ParamsWithContext

func NewTokenRevocationV3ParamsWithContext(ctx context.Context) *TokenRevocationV3Params

NewTokenRevocationV3ParamsWithContext creates a new TokenRevocationV3Params object with the default values initialized, and the ability to set a context for a request

func NewTokenRevocationV3ParamsWithHTTPClient

func NewTokenRevocationV3ParamsWithHTTPClient(client *http.Client) *TokenRevocationV3Params

NewTokenRevocationV3ParamsWithHTTPClient creates a new TokenRevocationV3Params object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewTokenRevocationV3ParamsWithTimeout

func NewTokenRevocationV3ParamsWithTimeout(timeout time.Duration) *TokenRevocationV3Params

NewTokenRevocationV3ParamsWithTimeout creates a new TokenRevocationV3Params object with the default values initialized, and the ability to set a timeout on a request

func (*TokenRevocationV3Params) SetContext

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

SetContext adds the context to the token revocation v3 params

func (*TokenRevocationV3Params) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the token revocation v3 params

func (*TokenRevocationV3Params) SetTimeout

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

SetTimeout adds the timeout to the token revocation v3 params

func (*TokenRevocationV3Params) SetToken

func (o *TokenRevocationV3Params) SetToken(token string)

SetToken adds the token to the token revocation v3 params

func (*TokenRevocationV3Params) WithContext

WithContext adds the context to the token revocation v3 params

func (*TokenRevocationV3Params) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the token revocation v3 params

func (*TokenRevocationV3Params) WithTimeout

WithTimeout adds the timeout to the token revocation v3 params

func (*TokenRevocationV3Params) WithToken

WithToken adds the token to the token revocation v3 params

func (*TokenRevocationV3Params) WriteToRequest

WriteToRequest writes these params to a swagger request

type TokenRevocationV3Reader

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

TokenRevocationV3Reader is a Reader for the TokenRevocationV3 structure.

func (*TokenRevocationV3Reader) ReadResponse

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

ReadResponse reads a server response into the received o.

type TokenRevocationV3Unauthorized

type TokenRevocationV3Unauthorized struct {
	Payload *iamclientmodels.OauthmodelErrorResponse
}

TokenRevocationV3Unauthorized handles this case with default header values.

Invalid basic auth header

func NewTokenRevocationV3Unauthorized

func NewTokenRevocationV3Unauthorized() *TokenRevocationV3Unauthorized

NewTokenRevocationV3Unauthorized creates a TokenRevocationV3Unauthorized with default headers values

func (*TokenRevocationV3Unauthorized) Error

func (*TokenRevocationV3Unauthorized) GetPayload

Jump to

Keyboard shortcuts

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