Documentation
¶
Index ¶
- func WithContentTypeApplicationJSON(r *runtime.ClientOperation)
- func WithContentTypeApplicationxWwwFormUrlencoded(r *runtime.ClientOperation)
- type Client
- func (a *Client) GetOauthTokenKey(params *GetOauthTokenKeyParams, opts ...ClientOption) (*GetOauthTokenKeyOK, error)
- func (a *Client) GetOauthTokenKeys(params *GetOauthTokenKeysParams, opts ...ClientOption) (*GetOauthTokenKeysOK, error)
- func (a *Client) PostOauthToken(params *PostOauthTokenParams, opts ...ClientOption) (*PostOauthTokenOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientOption
- type ClientService
- type GetOauthTokenKeyDefault
- func (o *GetOauthTokenKeyDefault) Code() int
- func (o *GetOauthTokenKeyDefault) Error() string
- func (o *GetOauthTokenKeyDefault) IsClientError() bool
- func (o *GetOauthTokenKeyDefault) IsCode(code int) bool
- func (o *GetOauthTokenKeyDefault) IsRedirect() bool
- func (o *GetOauthTokenKeyDefault) IsServerError() bool
- func (o *GetOauthTokenKeyDefault) IsSuccess() bool
- func (o *GetOauthTokenKeyDefault) String() string
- type GetOauthTokenKeyInternalServerError
- func (o *GetOauthTokenKeyInternalServerError) Code() int
- func (o *GetOauthTokenKeyInternalServerError) Error() string
- func (o *GetOauthTokenKeyInternalServerError) GetPayload() *models.Error
- func (o *GetOauthTokenKeyInternalServerError) IsClientError() bool
- func (o *GetOauthTokenKeyInternalServerError) IsCode(code int) bool
- func (o *GetOauthTokenKeyInternalServerError) IsRedirect() bool
- func (o *GetOauthTokenKeyInternalServerError) IsServerError() bool
- func (o *GetOauthTokenKeyInternalServerError) IsSuccess() bool
- func (o *GetOauthTokenKeyInternalServerError) String() string
- type GetOauthTokenKeyNotModified
- func (o *GetOauthTokenKeyNotModified) Code() int
- func (o *GetOauthTokenKeyNotModified) Error() string
- func (o *GetOauthTokenKeyNotModified) IsClientError() bool
- func (o *GetOauthTokenKeyNotModified) IsCode(code int) bool
- func (o *GetOauthTokenKeyNotModified) IsRedirect() bool
- func (o *GetOauthTokenKeyNotModified) IsServerError() bool
- func (o *GetOauthTokenKeyNotModified) IsSuccess() bool
- func (o *GetOauthTokenKeyNotModified) String() string
- type GetOauthTokenKeyOK
- func (o *GetOauthTokenKeyOK) Code() int
- func (o *GetOauthTokenKeyOK) Error() string
- func (o *GetOauthTokenKeyOK) GetPayload() *models.TokenKey
- func (o *GetOauthTokenKeyOK) IsClientError() bool
- func (o *GetOauthTokenKeyOK) IsCode(code int) bool
- func (o *GetOauthTokenKeyOK) IsRedirect() bool
- func (o *GetOauthTokenKeyOK) IsServerError() bool
- func (o *GetOauthTokenKeyOK) IsSuccess() bool
- func (o *GetOauthTokenKeyOK) String() string
- type GetOauthTokenKeyParams
- func NewGetOauthTokenKeyParams() *GetOauthTokenKeyParams
- func NewGetOauthTokenKeyParamsWithContext(ctx context.Context) *GetOauthTokenKeyParams
- func NewGetOauthTokenKeyParamsWithHTTPClient(client *http.Client) *GetOauthTokenKeyParams
- func NewGetOauthTokenKeyParamsWithTimeout(timeout time.Duration) *GetOauthTokenKeyParams
- func (o *GetOauthTokenKeyParams) SetContext(ctx context.Context)
- func (o *GetOauthTokenKeyParams) SetDefaults()
- func (o *GetOauthTokenKeyParams) SetHTTPClient(client *http.Client)
- func (o *GetOauthTokenKeyParams) SetIfNoneMatch(ifNoneMatch *string)
- func (o *GetOauthTokenKeyParams) SetTimeout(timeout time.Duration)
- func (o *GetOauthTokenKeyParams) WithContext(ctx context.Context) *GetOauthTokenKeyParams
- func (o *GetOauthTokenKeyParams) WithDefaults() *GetOauthTokenKeyParams
- func (o *GetOauthTokenKeyParams) WithHTTPClient(client *http.Client) *GetOauthTokenKeyParams
- func (o *GetOauthTokenKeyParams) WithIfNoneMatch(ifNoneMatch *string) *GetOauthTokenKeyParams
- func (o *GetOauthTokenKeyParams) WithTimeout(timeout time.Duration) *GetOauthTokenKeyParams
- func (o *GetOauthTokenKeyParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetOauthTokenKeyReader
- type GetOauthTokenKeyTooManyRequests
- func (o *GetOauthTokenKeyTooManyRequests) Code() int
- func (o *GetOauthTokenKeyTooManyRequests) Error() string
- func (o *GetOauthTokenKeyTooManyRequests) GetPayload() *models.APIRateLimitExceeded
- func (o *GetOauthTokenKeyTooManyRequests) IsClientError() bool
- func (o *GetOauthTokenKeyTooManyRequests) IsCode(code int) bool
- func (o *GetOauthTokenKeyTooManyRequests) IsRedirect() bool
- func (o *GetOauthTokenKeyTooManyRequests) IsServerError() bool
- func (o *GetOauthTokenKeyTooManyRequests) IsSuccess() bool
- func (o *GetOauthTokenKeyTooManyRequests) String() string
- type GetOauthTokenKeysDefault
- func (o *GetOauthTokenKeysDefault) Code() int
- func (o *GetOauthTokenKeysDefault) Error() string
- func (o *GetOauthTokenKeysDefault) IsClientError() bool
- func (o *GetOauthTokenKeysDefault) IsCode(code int) bool
- func (o *GetOauthTokenKeysDefault) IsRedirect() bool
- func (o *GetOauthTokenKeysDefault) IsServerError() bool
- func (o *GetOauthTokenKeysDefault) IsSuccess() bool
- func (o *GetOauthTokenKeysDefault) String() string
- type GetOauthTokenKeysInternalServerError
- func (o *GetOauthTokenKeysInternalServerError) Code() int
- func (o *GetOauthTokenKeysInternalServerError) Error() string
- func (o *GetOauthTokenKeysInternalServerError) GetPayload() *models.Error
- func (o *GetOauthTokenKeysInternalServerError) IsClientError() bool
- func (o *GetOauthTokenKeysInternalServerError) IsCode(code int) bool
- func (o *GetOauthTokenKeysInternalServerError) IsRedirect() bool
- func (o *GetOauthTokenKeysInternalServerError) IsServerError() bool
- func (o *GetOauthTokenKeysInternalServerError) IsSuccess() bool
- func (o *GetOauthTokenKeysInternalServerError) String() string
- type GetOauthTokenKeysOK
- func (o *GetOauthTokenKeysOK) Code() int
- func (o *GetOauthTokenKeysOK) Error() string
- func (o *GetOauthTokenKeysOK) GetPayload() *models.TokenKeys
- func (o *GetOauthTokenKeysOK) IsClientError() bool
- func (o *GetOauthTokenKeysOK) IsCode(code int) bool
- func (o *GetOauthTokenKeysOK) IsRedirect() bool
- func (o *GetOauthTokenKeysOK) IsServerError() bool
- func (o *GetOauthTokenKeysOK) IsSuccess() bool
- func (o *GetOauthTokenKeysOK) String() string
- type GetOauthTokenKeysParams
- func NewGetOauthTokenKeysParams() *GetOauthTokenKeysParams
- func NewGetOauthTokenKeysParamsWithContext(ctx context.Context) *GetOauthTokenKeysParams
- func NewGetOauthTokenKeysParamsWithHTTPClient(client *http.Client) *GetOauthTokenKeysParams
- func NewGetOauthTokenKeysParamsWithTimeout(timeout time.Duration) *GetOauthTokenKeysParams
- func (o *GetOauthTokenKeysParams) SetContext(ctx context.Context)
- func (o *GetOauthTokenKeysParams) SetDefaults()
- func (o *GetOauthTokenKeysParams) SetHTTPClient(client *http.Client)
- func (o *GetOauthTokenKeysParams) SetTimeout(timeout time.Duration)
- func (o *GetOauthTokenKeysParams) WithContext(ctx context.Context) *GetOauthTokenKeysParams
- func (o *GetOauthTokenKeysParams) WithDefaults() *GetOauthTokenKeysParams
- func (o *GetOauthTokenKeysParams) WithHTTPClient(client *http.Client) *GetOauthTokenKeysParams
- func (o *GetOauthTokenKeysParams) WithTimeout(timeout time.Duration) *GetOauthTokenKeysParams
- func (o *GetOauthTokenKeysParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetOauthTokenKeysReader
- type GetOauthTokenKeysTooManyRequests
- func (o *GetOauthTokenKeysTooManyRequests) Code() int
- func (o *GetOauthTokenKeysTooManyRequests) Error() string
- func (o *GetOauthTokenKeysTooManyRequests) GetPayload() *models.APIRateLimitExceeded
- func (o *GetOauthTokenKeysTooManyRequests) IsClientError() bool
- func (o *GetOauthTokenKeysTooManyRequests) IsCode(code int) bool
- func (o *GetOauthTokenKeysTooManyRequests) IsRedirect() bool
- func (o *GetOauthTokenKeysTooManyRequests) IsServerError() bool
- func (o *GetOauthTokenKeysTooManyRequests) IsSuccess() bool
- func (o *GetOauthTokenKeysTooManyRequests) String() string
- type PostOauthTokenBadRequest
- func (o *PostOauthTokenBadRequest) Code() int
- func (o *PostOauthTokenBadRequest) Error() string
- func (o *PostOauthTokenBadRequest) GetPayload() *models.BadrequestIAM
- func (o *PostOauthTokenBadRequest) IsClientError() bool
- func (o *PostOauthTokenBadRequest) IsCode(code int) bool
- func (o *PostOauthTokenBadRequest) IsRedirect() bool
- func (o *PostOauthTokenBadRequest) IsServerError() bool
- func (o *PostOauthTokenBadRequest) IsSuccess() bool
- func (o *PostOauthTokenBadRequest) String() string
- type PostOauthTokenDefault
- func (o *PostOauthTokenDefault) Code() int
- func (o *PostOauthTokenDefault) Error() string
- func (o *PostOauthTokenDefault) IsClientError() bool
- func (o *PostOauthTokenDefault) IsCode(code int) bool
- func (o *PostOauthTokenDefault) IsRedirect() bool
- func (o *PostOauthTokenDefault) IsServerError() bool
- func (o *PostOauthTokenDefault) IsSuccess() bool
- func (o *PostOauthTokenDefault) String() string
- type PostOauthTokenInternalServerError
- func (o *PostOauthTokenInternalServerError) Code() int
- func (o *PostOauthTokenInternalServerError) Error() string
- func (o *PostOauthTokenInternalServerError) GetPayload() *models.Error
- func (o *PostOauthTokenInternalServerError) IsClientError() bool
- func (o *PostOauthTokenInternalServerError) IsCode(code int) bool
- func (o *PostOauthTokenInternalServerError) IsRedirect() bool
- func (o *PostOauthTokenInternalServerError) IsServerError() bool
- func (o *PostOauthTokenInternalServerError) IsSuccess() bool
- func (o *PostOauthTokenInternalServerError) String() string
- type PostOauthTokenOK
- func (o *PostOauthTokenOK) Code() int
- func (o *PostOauthTokenOK) Error() string
- func (o *PostOauthTokenOK) GetPayload() *models.AccessToken
- func (o *PostOauthTokenOK) IsClientError() bool
- func (o *PostOauthTokenOK) IsCode(code int) bool
- func (o *PostOauthTokenOK) IsRedirect() bool
- func (o *PostOauthTokenOK) IsServerError() bool
- func (o *PostOauthTokenOK) IsSuccess() bool
- func (o *PostOauthTokenOK) String() string
- type PostOauthTokenParams
- func NewPostOauthTokenParams() *PostOauthTokenParams
- func NewPostOauthTokenParamsWithContext(ctx context.Context) *PostOauthTokenParams
- func NewPostOauthTokenParamsWithHTTPClient(client *http.Client) *PostOauthTokenParams
- func NewPostOauthTokenParamsWithTimeout(timeout time.Duration) *PostOauthTokenParams
- func (o *PostOauthTokenParams) SetClientAssertion(clientAssertion string)
- func (o *PostOauthTokenParams) SetClientAssertionType(clientAssertionType string)
- func (o *PostOauthTokenParams) SetContext(ctx context.Context)
- func (o *PostOauthTokenParams) SetDefaults()
- func (o *PostOauthTokenParams) SetGrantType(grantType string)
- func (o *PostOauthTokenParams) SetHTTPClient(client *http.Client)
- func (o *PostOauthTokenParams) SetTimeout(timeout time.Duration)
- func (o *PostOauthTokenParams) WithClientAssertion(clientAssertion string) *PostOauthTokenParams
- func (o *PostOauthTokenParams) WithClientAssertionType(clientAssertionType string) *PostOauthTokenParams
- func (o *PostOauthTokenParams) WithContext(ctx context.Context) *PostOauthTokenParams
- func (o *PostOauthTokenParams) WithDefaults() *PostOauthTokenParams
- func (o *PostOauthTokenParams) WithGrantType(grantType string) *PostOauthTokenParams
- func (o *PostOauthTokenParams) WithHTTPClient(client *http.Client) *PostOauthTokenParams
- func (o *PostOauthTokenParams) WithTimeout(timeout time.Duration) *PostOauthTokenParams
- func (o *PostOauthTokenParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type PostOauthTokenReader
- type PostOauthTokenTooManyRequests
- func (o *PostOauthTokenTooManyRequests) Code() int
- func (o *PostOauthTokenTooManyRequests) Error() string
- func (o *PostOauthTokenTooManyRequests) GetPayload() *models.APIRateLimitExceeded
- func (o *PostOauthTokenTooManyRequests) IsClientError() bool
- func (o *PostOauthTokenTooManyRequests) IsCode(code int) bool
- func (o *PostOauthTokenTooManyRequests) IsRedirect() bool
- func (o *PostOauthTokenTooManyRequests) IsServerError() bool
- func (o *PostOauthTokenTooManyRequests) IsSuccess() bool
- func (o *PostOauthTokenTooManyRequests) String() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithContentTypeApplicationJSON ¶
func WithContentTypeApplicationJSON(r *runtime.ClientOperation)
WithContentTypeApplicationJSON sets the Content-Type header to "application/json".
func WithContentTypeApplicationxWwwFormUrlencoded ¶
func WithContentTypeApplicationxWwwFormUrlencoded(r *runtime.ClientOperation)
WithContentTypeApplicationxWwwFormUrlencoded sets the Content-Type header to "application/x-www-form-urlencoded".
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client for token operations API
func (*Client) GetOauthTokenKey ¶
func (a *Client) GetOauthTokenKey(params *GetOauthTokenKeyParams, opts ...ClientOption) (*GetOauthTokenKeyOK, error)
GetOauthTokenKey returns the j w t signing key currently employed by agent i a m
Provides current RSA public key of AgentIAM. AgentIAM uses corresponding RSA private key to sign access tokens, RATs and IATs.
func (*Client) GetOauthTokenKeys ¶
func (a *Client) GetOauthTokenKeys(params *GetOauthTokenKeysParams, opts ...ClientOption) (*GetOauthTokenKeysOK, error)
GetOauthTokenKeys returns the j w t signing keys currently and previously employed by agent i a m Returns all valid JWT signing keys which can be used to verify JWTs (Bearer, RAT, IAT) issued by AgentIAM.
The first key corresponds to the currently employed one, all others have been used in the past. The "kid" JWT claim allows to identify the signing key to be used. This endpoint conforms with RFC 7517 and RFC 7518 and endpoints output can be parsed as stated in the above mentioned RFCs.
func (*Client) PostOauthToken ¶
func (a *Client) PostOauthToken(params *PostOauthTokenParams, opts ...ClientOption) (*PostOauthTokenOK, error)
PostOauthToken grants an access token
Grants an Access Token.
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
type ClientOption ¶
type ClientOption func(*runtime.ClientOperation)
ClientOption may be used to customize the behavior of Client methods.
func WithContentType ¶
func WithContentType(mime string) ClientOption
WithContentType allows the client to force the Content-Type header to negotiate a specific Consumer from the server.
You may use this option to set arbitrary extensions to your MIME media type.
type ClientService ¶
type ClientService interface { GetOauthTokenKey(params *GetOauthTokenKeyParams, opts ...ClientOption) (*GetOauthTokenKeyOK, error) GetOauthTokenKeys(params *GetOauthTokenKeysParams, opts ...ClientOption) (*GetOauthTokenKeysOK, error) PostOauthToken(params *PostOauthTokenParams, opts ...ClientOption) (*PostOauthTokenOK, 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 token operations API client.
func NewClientWithBasicAuth ¶
func NewClientWithBasicAuth(host, basePath, scheme, user, password string) ClientService
New creates a new token operations 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 token operations 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 GetOauthTokenKeyDefault ¶
type GetOauthTokenKeyDefault struct {
// contains filtered or unexported fields
}
GetOauthTokenKeyDefault describes a response with status code -1, with default header values.
Other error with any status code and response body format.
func NewGetOauthTokenKeyDefault ¶
func NewGetOauthTokenKeyDefault(code int) *GetOauthTokenKeyDefault
NewGetOauthTokenKeyDefault creates a GetOauthTokenKeyDefault with default headers values
func (*GetOauthTokenKeyDefault) Code ¶
func (o *GetOauthTokenKeyDefault) Code() int
Code gets the status code for the get oauth token key default response
func (*GetOauthTokenKeyDefault) Error ¶
func (o *GetOauthTokenKeyDefault) Error() string
func (*GetOauthTokenKeyDefault) IsClientError ¶
func (o *GetOauthTokenKeyDefault) IsClientError() bool
IsClientError returns true when this get oauth token key default response has a 4xx status code
func (*GetOauthTokenKeyDefault) IsCode ¶
func (o *GetOauthTokenKeyDefault) IsCode(code int) bool
IsCode returns true when this get oauth token key default response a status code equal to that given
func (*GetOauthTokenKeyDefault) IsRedirect ¶
func (o *GetOauthTokenKeyDefault) IsRedirect() bool
IsRedirect returns true when this get oauth token key default response has a 3xx status code
func (*GetOauthTokenKeyDefault) IsServerError ¶
func (o *GetOauthTokenKeyDefault) IsServerError() bool
IsServerError returns true when this get oauth token key default response has a 5xx status code
func (*GetOauthTokenKeyDefault) IsSuccess ¶
func (o *GetOauthTokenKeyDefault) IsSuccess() bool
IsSuccess returns true when this get oauth token key default response has a 2xx status code
func (*GetOauthTokenKeyDefault) String ¶
func (o *GetOauthTokenKeyDefault) String() string
type GetOauthTokenKeyInternalServerError ¶
GetOauthTokenKeyInternalServerError describes a response with status code 500, with default header values.
unexpected error
func NewGetOauthTokenKeyInternalServerError ¶
func NewGetOauthTokenKeyInternalServerError() *GetOauthTokenKeyInternalServerError
NewGetOauthTokenKeyInternalServerError creates a GetOauthTokenKeyInternalServerError with default headers values
func (*GetOauthTokenKeyInternalServerError) Code ¶
func (o *GetOauthTokenKeyInternalServerError) Code() int
Code gets the status code for the get oauth token key internal server error response
func (*GetOauthTokenKeyInternalServerError) Error ¶
func (o *GetOauthTokenKeyInternalServerError) Error() string
func (*GetOauthTokenKeyInternalServerError) GetPayload ¶
func (o *GetOauthTokenKeyInternalServerError) GetPayload() *models.Error
func (*GetOauthTokenKeyInternalServerError) IsClientError ¶
func (o *GetOauthTokenKeyInternalServerError) IsClientError() bool
IsClientError returns true when this get oauth token key internal server error response has a 4xx status code
func (*GetOauthTokenKeyInternalServerError) IsCode ¶
func (o *GetOauthTokenKeyInternalServerError) IsCode(code int) bool
IsCode returns true when this get oauth token key internal server error response a status code equal to that given
func (*GetOauthTokenKeyInternalServerError) IsRedirect ¶
func (o *GetOauthTokenKeyInternalServerError) IsRedirect() bool
IsRedirect returns true when this get oauth token key internal server error response has a 3xx status code
func (*GetOauthTokenKeyInternalServerError) IsServerError ¶
func (o *GetOauthTokenKeyInternalServerError) IsServerError() bool
IsServerError returns true when this get oauth token key internal server error response has a 5xx status code
func (*GetOauthTokenKeyInternalServerError) IsSuccess ¶
func (o *GetOauthTokenKeyInternalServerError) IsSuccess() bool
IsSuccess returns true when this get oauth token key internal server error response has a 2xx status code
func (*GetOauthTokenKeyInternalServerError) String ¶
func (o *GetOauthTokenKeyInternalServerError) String() string
type GetOauthTokenKeyNotModified ¶
type GetOauthTokenKeyNotModified struct { }
GetOauthTokenKeyNotModified describes a response with status code 304, with default header values.
Not Modified
func NewGetOauthTokenKeyNotModified ¶
func NewGetOauthTokenKeyNotModified() *GetOauthTokenKeyNotModified
NewGetOauthTokenKeyNotModified creates a GetOauthTokenKeyNotModified with default headers values
func (*GetOauthTokenKeyNotModified) Code ¶
func (o *GetOauthTokenKeyNotModified) Code() int
Code gets the status code for the get oauth token key not modified response
func (*GetOauthTokenKeyNotModified) Error ¶
func (o *GetOauthTokenKeyNotModified) Error() string
func (*GetOauthTokenKeyNotModified) IsClientError ¶
func (o *GetOauthTokenKeyNotModified) IsClientError() bool
IsClientError returns true when this get oauth token key not modified response has a 4xx status code
func (*GetOauthTokenKeyNotModified) IsCode ¶
func (o *GetOauthTokenKeyNotModified) IsCode(code int) bool
IsCode returns true when this get oauth token key not modified response a status code equal to that given
func (*GetOauthTokenKeyNotModified) IsRedirect ¶
func (o *GetOauthTokenKeyNotModified) IsRedirect() bool
IsRedirect returns true when this get oauth token key not modified response has a 3xx status code
func (*GetOauthTokenKeyNotModified) IsServerError ¶
func (o *GetOauthTokenKeyNotModified) IsServerError() bool
IsServerError returns true when this get oauth token key not modified response has a 5xx status code
func (*GetOauthTokenKeyNotModified) IsSuccess ¶
func (o *GetOauthTokenKeyNotModified) IsSuccess() bool
IsSuccess returns true when this get oauth token key not modified response has a 2xx status code
func (*GetOauthTokenKeyNotModified) String ¶
func (o *GetOauthTokenKeyNotModified) String() string
type GetOauthTokenKeyOK ¶
GetOauthTokenKeyOK describes a response with status code 200, with default header values.
OK
func NewGetOauthTokenKeyOK ¶
func NewGetOauthTokenKeyOK() *GetOauthTokenKeyOK
NewGetOauthTokenKeyOK creates a GetOauthTokenKeyOK with default headers values
func (*GetOauthTokenKeyOK) Code ¶
func (o *GetOauthTokenKeyOK) Code() int
Code gets the status code for the get oauth token key o k response
func (*GetOauthTokenKeyOK) Error ¶
func (o *GetOauthTokenKeyOK) Error() string
func (*GetOauthTokenKeyOK) GetPayload ¶
func (o *GetOauthTokenKeyOK) GetPayload() *models.TokenKey
func (*GetOauthTokenKeyOK) IsClientError ¶
func (o *GetOauthTokenKeyOK) IsClientError() bool
IsClientError returns true when this get oauth token key o k response has a 4xx status code
func (*GetOauthTokenKeyOK) IsCode ¶
func (o *GetOauthTokenKeyOK) IsCode(code int) bool
IsCode returns true when this get oauth token key o k response a status code equal to that given
func (*GetOauthTokenKeyOK) IsRedirect ¶
func (o *GetOauthTokenKeyOK) IsRedirect() bool
IsRedirect returns true when this get oauth token key o k response has a 3xx status code
func (*GetOauthTokenKeyOK) IsServerError ¶
func (o *GetOauthTokenKeyOK) IsServerError() bool
IsServerError returns true when this get oauth token key o k response has a 5xx status code
func (*GetOauthTokenKeyOK) IsSuccess ¶
func (o *GetOauthTokenKeyOK) IsSuccess() bool
IsSuccess returns true when this get oauth token key o k response has a 2xx status code
func (*GetOauthTokenKeyOK) String ¶
func (o *GetOauthTokenKeyOK) String() string
type GetOauthTokenKeyParams ¶
type GetOauthTokenKeyParams struct { /* IfNoneMatch. If-None-Match Parameter. */ IfNoneMatch *string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetOauthTokenKeyParams contains all the parameters to send to the API endpoint
for the get oauth token key operation. Typically these are written to a http.Request.
func NewGetOauthTokenKeyParams ¶
func NewGetOauthTokenKeyParams() *GetOauthTokenKeyParams
NewGetOauthTokenKeyParams creates a new GetOauthTokenKeyParams 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 NewGetOauthTokenKeyParamsWithContext ¶
func NewGetOauthTokenKeyParamsWithContext(ctx context.Context) *GetOauthTokenKeyParams
NewGetOauthTokenKeyParamsWithContext creates a new GetOauthTokenKeyParams object with the ability to set a context for a request.
func NewGetOauthTokenKeyParamsWithHTTPClient ¶
func NewGetOauthTokenKeyParamsWithHTTPClient(client *http.Client) *GetOauthTokenKeyParams
NewGetOauthTokenKeyParamsWithHTTPClient creates a new GetOauthTokenKeyParams object with the ability to set a custom HTTPClient for a request.
func NewGetOauthTokenKeyParamsWithTimeout ¶
func NewGetOauthTokenKeyParamsWithTimeout(timeout time.Duration) *GetOauthTokenKeyParams
NewGetOauthTokenKeyParamsWithTimeout creates a new GetOauthTokenKeyParams object with the ability to set a timeout on a request.
func (*GetOauthTokenKeyParams) SetContext ¶
func (o *GetOauthTokenKeyParams) SetContext(ctx context.Context)
SetContext adds the context to the get oauth token key params
func (*GetOauthTokenKeyParams) SetDefaults ¶
func (o *GetOauthTokenKeyParams) SetDefaults()
SetDefaults hydrates default values in the get oauth token key params (not the query body).
All values with no default are reset to their zero value.
func (*GetOauthTokenKeyParams) SetHTTPClient ¶
func (o *GetOauthTokenKeyParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get oauth token key params
func (*GetOauthTokenKeyParams) SetIfNoneMatch ¶
func (o *GetOauthTokenKeyParams) SetIfNoneMatch(ifNoneMatch *string)
SetIfNoneMatch adds the ifNoneMatch to the get oauth token key params
func (*GetOauthTokenKeyParams) SetTimeout ¶
func (o *GetOauthTokenKeyParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get oauth token key params
func (*GetOauthTokenKeyParams) WithContext ¶
func (o *GetOauthTokenKeyParams) WithContext(ctx context.Context) *GetOauthTokenKeyParams
WithContext adds the context to the get oauth token key params
func (*GetOauthTokenKeyParams) WithDefaults ¶
func (o *GetOauthTokenKeyParams) WithDefaults() *GetOauthTokenKeyParams
WithDefaults hydrates default values in the get oauth token key params (not the query body).
All values with no default are reset to their zero value.
func (*GetOauthTokenKeyParams) WithHTTPClient ¶
func (o *GetOauthTokenKeyParams) WithHTTPClient(client *http.Client) *GetOauthTokenKeyParams
WithHTTPClient adds the HTTPClient to the get oauth token key params
func (*GetOauthTokenKeyParams) WithIfNoneMatch ¶
func (o *GetOauthTokenKeyParams) WithIfNoneMatch(ifNoneMatch *string) *GetOauthTokenKeyParams
WithIfNoneMatch adds the ifNoneMatch to the get oauth token key params
func (*GetOauthTokenKeyParams) WithTimeout ¶
func (o *GetOauthTokenKeyParams) WithTimeout(timeout time.Duration) *GetOauthTokenKeyParams
WithTimeout adds the timeout to the get oauth token key params
func (*GetOauthTokenKeyParams) WriteToRequest ¶
func (o *GetOauthTokenKeyParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetOauthTokenKeyReader ¶
type GetOauthTokenKeyReader struct {
// contains filtered or unexported fields
}
GetOauthTokenKeyReader is a Reader for the GetOauthTokenKey structure.
func (*GetOauthTokenKeyReader) ReadResponse ¶
func (o *GetOauthTokenKeyReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetOauthTokenKeyTooManyRequests ¶
type GetOauthTokenKeyTooManyRequests struct {
Payload *models.APIRateLimitExceeded
}
GetOauthTokenKeyTooManyRequests describes a response with status code 429, with default header values.
API rate limit exceeded.
func NewGetOauthTokenKeyTooManyRequests ¶
func NewGetOauthTokenKeyTooManyRequests() *GetOauthTokenKeyTooManyRequests
NewGetOauthTokenKeyTooManyRequests creates a GetOauthTokenKeyTooManyRequests with default headers values
func (*GetOauthTokenKeyTooManyRequests) Code ¶
func (o *GetOauthTokenKeyTooManyRequests) Code() int
Code gets the status code for the get oauth token key too many requests response
func (*GetOauthTokenKeyTooManyRequests) Error ¶
func (o *GetOauthTokenKeyTooManyRequests) Error() string
func (*GetOauthTokenKeyTooManyRequests) GetPayload ¶
func (o *GetOauthTokenKeyTooManyRequests) GetPayload() *models.APIRateLimitExceeded
func (*GetOauthTokenKeyTooManyRequests) IsClientError ¶
func (o *GetOauthTokenKeyTooManyRequests) IsClientError() bool
IsClientError returns true when this get oauth token key too many requests response has a 4xx status code
func (*GetOauthTokenKeyTooManyRequests) IsCode ¶
func (o *GetOauthTokenKeyTooManyRequests) IsCode(code int) bool
IsCode returns true when this get oauth token key too many requests response a status code equal to that given
func (*GetOauthTokenKeyTooManyRequests) IsRedirect ¶
func (o *GetOauthTokenKeyTooManyRequests) IsRedirect() bool
IsRedirect returns true when this get oauth token key too many requests response has a 3xx status code
func (*GetOauthTokenKeyTooManyRequests) IsServerError ¶
func (o *GetOauthTokenKeyTooManyRequests) IsServerError() bool
IsServerError returns true when this get oauth token key too many requests response has a 5xx status code
func (*GetOauthTokenKeyTooManyRequests) IsSuccess ¶
func (o *GetOauthTokenKeyTooManyRequests) IsSuccess() bool
IsSuccess returns true when this get oauth token key too many requests response has a 2xx status code
func (*GetOauthTokenKeyTooManyRequests) String ¶
func (o *GetOauthTokenKeyTooManyRequests) String() string
type GetOauthTokenKeysDefault ¶
type GetOauthTokenKeysDefault struct {
// contains filtered or unexported fields
}
GetOauthTokenKeysDefault describes a response with status code -1, with default header values.
Other error with any status code and response body format.
func NewGetOauthTokenKeysDefault ¶
func NewGetOauthTokenKeysDefault(code int) *GetOauthTokenKeysDefault
NewGetOauthTokenKeysDefault creates a GetOauthTokenKeysDefault with default headers values
func (*GetOauthTokenKeysDefault) Code ¶
func (o *GetOauthTokenKeysDefault) Code() int
Code gets the status code for the get oauth token keys default response
func (*GetOauthTokenKeysDefault) Error ¶
func (o *GetOauthTokenKeysDefault) Error() string
func (*GetOauthTokenKeysDefault) IsClientError ¶
func (o *GetOauthTokenKeysDefault) IsClientError() bool
IsClientError returns true when this get oauth token keys default response has a 4xx status code
func (*GetOauthTokenKeysDefault) IsCode ¶
func (o *GetOauthTokenKeysDefault) IsCode(code int) bool
IsCode returns true when this get oauth token keys default response a status code equal to that given
func (*GetOauthTokenKeysDefault) IsRedirect ¶
func (o *GetOauthTokenKeysDefault) IsRedirect() bool
IsRedirect returns true when this get oauth token keys default response has a 3xx status code
func (*GetOauthTokenKeysDefault) IsServerError ¶
func (o *GetOauthTokenKeysDefault) IsServerError() bool
IsServerError returns true when this get oauth token keys default response has a 5xx status code
func (*GetOauthTokenKeysDefault) IsSuccess ¶
func (o *GetOauthTokenKeysDefault) IsSuccess() bool
IsSuccess returns true when this get oauth token keys default response has a 2xx status code
func (*GetOauthTokenKeysDefault) String ¶
func (o *GetOauthTokenKeysDefault) String() string
type GetOauthTokenKeysInternalServerError ¶
GetOauthTokenKeysInternalServerError describes a response with status code 500, with default header values.
unexpected error
func NewGetOauthTokenKeysInternalServerError ¶
func NewGetOauthTokenKeysInternalServerError() *GetOauthTokenKeysInternalServerError
NewGetOauthTokenKeysInternalServerError creates a GetOauthTokenKeysInternalServerError with default headers values
func (*GetOauthTokenKeysInternalServerError) Code ¶
func (o *GetOauthTokenKeysInternalServerError) Code() int
Code gets the status code for the get oauth token keys internal server error response
func (*GetOauthTokenKeysInternalServerError) Error ¶
func (o *GetOauthTokenKeysInternalServerError) Error() string
func (*GetOauthTokenKeysInternalServerError) GetPayload ¶
func (o *GetOauthTokenKeysInternalServerError) GetPayload() *models.Error
func (*GetOauthTokenKeysInternalServerError) IsClientError ¶
func (o *GetOauthTokenKeysInternalServerError) IsClientError() bool
IsClientError returns true when this get oauth token keys internal server error response has a 4xx status code
func (*GetOauthTokenKeysInternalServerError) IsCode ¶
func (o *GetOauthTokenKeysInternalServerError) IsCode(code int) bool
IsCode returns true when this get oauth token keys internal server error response a status code equal to that given
func (*GetOauthTokenKeysInternalServerError) IsRedirect ¶
func (o *GetOauthTokenKeysInternalServerError) IsRedirect() bool
IsRedirect returns true when this get oauth token keys internal server error response has a 3xx status code
func (*GetOauthTokenKeysInternalServerError) IsServerError ¶
func (o *GetOauthTokenKeysInternalServerError) IsServerError() bool
IsServerError returns true when this get oauth token keys internal server error response has a 5xx status code
func (*GetOauthTokenKeysInternalServerError) IsSuccess ¶
func (o *GetOauthTokenKeysInternalServerError) IsSuccess() bool
IsSuccess returns true when this get oauth token keys internal server error response has a 2xx status code
func (*GetOauthTokenKeysInternalServerError) String ¶
func (o *GetOauthTokenKeysInternalServerError) String() string
type GetOauthTokenKeysOK ¶
GetOauthTokenKeysOK describes a response with status code 200, with default header values.
OK
func NewGetOauthTokenKeysOK ¶
func NewGetOauthTokenKeysOK() *GetOauthTokenKeysOK
NewGetOauthTokenKeysOK creates a GetOauthTokenKeysOK with default headers values
func (*GetOauthTokenKeysOK) Code ¶
func (o *GetOauthTokenKeysOK) Code() int
Code gets the status code for the get oauth token keys o k response
func (*GetOauthTokenKeysOK) Error ¶
func (o *GetOauthTokenKeysOK) Error() string
func (*GetOauthTokenKeysOK) GetPayload ¶
func (o *GetOauthTokenKeysOK) GetPayload() *models.TokenKeys
func (*GetOauthTokenKeysOK) IsClientError ¶
func (o *GetOauthTokenKeysOK) IsClientError() bool
IsClientError returns true when this get oauth token keys o k response has a 4xx status code
func (*GetOauthTokenKeysOK) IsCode ¶
func (o *GetOauthTokenKeysOK) IsCode(code int) bool
IsCode returns true when this get oauth token keys o k response a status code equal to that given
func (*GetOauthTokenKeysOK) IsRedirect ¶
func (o *GetOauthTokenKeysOK) IsRedirect() bool
IsRedirect returns true when this get oauth token keys o k response has a 3xx status code
func (*GetOauthTokenKeysOK) IsServerError ¶
func (o *GetOauthTokenKeysOK) IsServerError() bool
IsServerError returns true when this get oauth token keys o k response has a 5xx status code
func (*GetOauthTokenKeysOK) IsSuccess ¶
func (o *GetOauthTokenKeysOK) IsSuccess() bool
IsSuccess returns true when this get oauth token keys o k response has a 2xx status code
func (*GetOauthTokenKeysOK) String ¶
func (o *GetOauthTokenKeysOK) String() string
type GetOauthTokenKeysParams ¶
type GetOauthTokenKeysParams struct { Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetOauthTokenKeysParams contains all the parameters to send to the API endpoint
for the get oauth token keys operation. Typically these are written to a http.Request.
func NewGetOauthTokenKeysParams ¶
func NewGetOauthTokenKeysParams() *GetOauthTokenKeysParams
NewGetOauthTokenKeysParams creates a new GetOauthTokenKeysParams 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 NewGetOauthTokenKeysParamsWithContext ¶
func NewGetOauthTokenKeysParamsWithContext(ctx context.Context) *GetOauthTokenKeysParams
NewGetOauthTokenKeysParamsWithContext creates a new GetOauthTokenKeysParams object with the ability to set a context for a request.
func NewGetOauthTokenKeysParamsWithHTTPClient ¶
func NewGetOauthTokenKeysParamsWithHTTPClient(client *http.Client) *GetOauthTokenKeysParams
NewGetOauthTokenKeysParamsWithHTTPClient creates a new GetOauthTokenKeysParams object with the ability to set a custom HTTPClient for a request.
func NewGetOauthTokenKeysParamsWithTimeout ¶
func NewGetOauthTokenKeysParamsWithTimeout(timeout time.Duration) *GetOauthTokenKeysParams
NewGetOauthTokenKeysParamsWithTimeout creates a new GetOauthTokenKeysParams object with the ability to set a timeout on a request.
func (*GetOauthTokenKeysParams) SetContext ¶
func (o *GetOauthTokenKeysParams) SetContext(ctx context.Context)
SetContext adds the context to the get oauth token keys params
func (*GetOauthTokenKeysParams) SetDefaults ¶
func (o *GetOauthTokenKeysParams) SetDefaults()
SetDefaults hydrates default values in the get oauth token keys params (not the query body).
All values with no default are reset to their zero value.
func (*GetOauthTokenKeysParams) SetHTTPClient ¶
func (o *GetOauthTokenKeysParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get oauth token keys params
func (*GetOauthTokenKeysParams) SetTimeout ¶
func (o *GetOauthTokenKeysParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get oauth token keys params
func (*GetOauthTokenKeysParams) WithContext ¶
func (o *GetOauthTokenKeysParams) WithContext(ctx context.Context) *GetOauthTokenKeysParams
WithContext adds the context to the get oauth token keys params
func (*GetOauthTokenKeysParams) WithDefaults ¶
func (o *GetOauthTokenKeysParams) WithDefaults() *GetOauthTokenKeysParams
WithDefaults hydrates default values in the get oauth token keys params (not the query body).
All values with no default are reset to their zero value.
func (*GetOauthTokenKeysParams) WithHTTPClient ¶
func (o *GetOauthTokenKeysParams) WithHTTPClient(client *http.Client) *GetOauthTokenKeysParams
WithHTTPClient adds the HTTPClient to the get oauth token keys params
func (*GetOauthTokenKeysParams) WithTimeout ¶
func (o *GetOauthTokenKeysParams) WithTimeout(timeout time.Duration) *GetOauthTokenKeysParams
WithTimeout adds the timeout to the get oauth token keys params
func (*GetOauthTokenKeysParams) WriteToRequest ¶
func (o *GetOauthTokenKeysParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetOauthTokenKeysReader ¶
type GetOauthTokenKeysReader struct {
// contains filtered or unexported fields
}
GetOauthTokenKeysReader is a Reader for the GetOauthTokenKeys structure.
func (*GetOauthTokenKeysReader) ReadResponse ¶
func (o *GetOauthTokenKeysReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetOauthTokenKeysTooManyRequests ¶
type GetOauthTokenKeysTooManyRequests struct {
Payload *models.APIRateLimitExceeded
}
GetOauthTokenKeysTooManyRequests describes a response with status code 429, with default header values.
API rate limit exceeded.
func NewGetOauthTokenKeysTooManyRequests ¶
func NewGetOauthTokenKeysTooManyRequests() *GetOauthTokenKeysTooManyRequests
NewGetOauthTokenKeysTooManyRequests creates a GetOauthTokenKeysTooManyRequests with default headers values
func (*GetOauthTokenKeysTooManyRequests) Code ¶
func (o *GetOauthTokenKeysTooManyRequests) Code() int
Code gets the status code for the get oauth token keys too many requests response
func (*GetOauthTokenKeysTooManyRequests) Error ¶
func (o *GetOauthTokenKeysTooManyRequests) Error() string
func (*GetOauthTokenKeysTooManyRequests) GetPayload ¶
func (o *GetOauthTokenKeysTooManyRequests) GetPayload() *models.APIRateLimitExceeded
func (*GetOauthTokenKeysTooManyRequests) IsClientError ¶
func (o *GetOauthTokenKeysTooManyRequests) IsClientError() bool
IsClientError returns true when this get oauth token keys too many requests response has a 4xx status code
func (*GetOauthTokenKeysTooManyRequests) IsCode ¶
func (o *GetOauthTokenKeysTooManyRequests) IsCode(code int) bool
IsCode returns true when this get oauth token keys too many requests response a status code equal to that given
func (*GetOauthTokenKeysTooManyRequests) IsRedirect ¶
func (o *GetOauthTokenKeysTooManyRequests) IsRedirect() bool
IsRedirect returns true when this get oauth token keys too many requests response has a 3xx status code
func (*GetOauthTokenKeysTooManyRequests) IsServerError ¶
func (o *GetOauthTokenKeysTooManyRequests) IsServerError() bool
IsServerError returns true when this get oauth token keys too many requests response has a 5xx status code
func (*GetOauthTokenKeysTooManyRequests) IsSuccess ¶
func (o *GetOauthTokenKeysTooManyRequests) IsSuccess() bool
IsSuccess returns true when this get oauth token keys too many requests response has a 2xx status code
func (*GetOauthTokenKeysTooManyRequests) String ¶
func (o *GetOauthTokenKeysTooManyRequests) String() string
type PostOauthTokenBadRequest ¶
type PostOauthTokenBadRequest struct { /* Server time represented as epoch(unix) time in seconds. Format: int64 */ ServerTime int64 Payload *models.BadrequestIAM }
PostOauthTokenBadRequest describes a response with status code 400, with default header values.
Bad Request
func NewPostOauthTokenBadRequest ¶
func NewPostOauthTokenBadRequest() *PostOauthTokenBadRequest
NewPostOauthTokenBadRequest creates a PostOauthTokenBadRequest with default headers values
func (*PostOauthTokenBadRequest) Code ¶
func (o *PostOauthTokenBadRequest) Code() int
Code gets the status code for the post oauth token bad request response
func (*PostOauthTokenBadRequest) Error ¶
func (o *PostOauthTokenBadRequest) Error() string
func (*PostOauthTokenBadRequest) GetPayload ¶
func (o *PostOauthTokenBadRequest) GetPayload() *models.BadrequestIAM
func (*PostOauthTokenBadRequest) IsClientError ¶
func (o *PostOauthTokenBadRequest) IsClientError() bool
IsClientError returns true when this post oauth token bad request response has a 4xx status code
func (*PostOauthTokenBadRequest) IsCode ¶
func (o *PostOauthTokenBadRequest) IsCode(code int) bool
IsCode returns true when this post oauth token bad request response a status code equal to that given
func (*PostOauthTokenBadRequest) IsRedirect ¶
func (o *PostOauthTokenBadRequest) IsRedirect() bool
IsRedirect returns true when this post oauth token bad request response has a 3xx status code
func (*PostOauthTokenBadRequest) IsServerError ¶
func (o *PostOauthTokenBadRequest) IsServerError() bool
IsServerError returns true when this post oauth token bad request response has a 5xx status code
func (*PostOauthTokenBadRequest) IsSuccess ¶
func (o *PostOauthTokenBadRequest) IsSuccess() bool
IsSuccess returns true when this post oauth token bad request response has a 2xx status code
func (*PostOauthTokenBadRequest) String ¶
func (o *PostOauthTokenBadRequest) String() string
type PostOauthTokenDefault ¶
type PostOauthTokenDefault struct {
// contains filtered or unexported fields
}
PostOauthTokenDefault describes a response with status code -1, with default header values.
Other error with any status code and response body format.
func NewPostOauthTokenDefault ¶
func NewPostOauthTokenDefault(code int) *PostOauthTokenDefault
NewPostOauthTokenDefault creates a PostOauthTokenDefault with default headers values
func (*PostOauthTokenDefault) Code ¶
func (o *PostOauthTokenDefault) Code() int
Code gets the status code for the post oauth token default response
func (*PostOauthTokenDefault) Error ¶
func (o *PostOauthTokenDefault) Error() string
func (*PostOauthTokenDefault) IsClientError ¶
func (o *PostOauthTokenDefault) IsClientError() bool
IsClientError returns true when this post oauth token default response has a 4xx status code
func (*PostOauthTokenDefault) IsCode ¶
func (o *PostOauthTokenDefault) IsCode(code int) bool
IsCode returns true when this post oauth token default response a status code equal to that given
func (*PostOauthTokenDefault) IsRedirect ¶
func (o *PostOauthTokenDefault) IsRedirect() bool
IsRedirect returns true when this post oauth token default response has a 3xx status code
func (*PostOauthTokenDefault) IsServerError ¶
func (o *PostOauthTokenDefault) IsServerError() bool
IsServerError returns true when this post oauth token default response has a 5xx status code
func (*PostOauthTokenDefault) IsSuccess ¶
func (o *PostOauthTokenDefault) IsSuccess() bool
IsSuccess returns true when this post oauth token default response has a 2xx status code
func (*PostOauthTokenDefault) String ¶
func (o *PostOauthTokenDefault) String() string
type PostOauthTokenInternalServerError ¶
PostOauthTokenInternalServerError describes a response with status code 500, with default header values.
unexpected error
func NewPostOauthTokenInternalServerError ¶
func NewPostOauthTokenInternalServerError() *PostOauthTokenInternalServerError
NewPostOauthTokenInternalServerError creates a PostOauthTokenInternalServerError with default headers values
func (*PostOauthTokenInternalServerError) Code ¶
func (o *PostOauthTokenInternalServerError) Code() int
Code gets the status code for the post oauth token internal server error response
func (*PostOauthTokenInternalServerError) Error ¶
func (o *PostOauthTokenInternalServerError) Error() string
func (*PostOauthTokenInternalServerError) GetPayload ¶
func (o *PostOauthTokenInternalServerError) GetPayload() *models.Error
func (*PostOauthTokenInternalServerError) IsClientError ¶
func (o *PostOauthTokenInternalServerError) IsClientError() bool
IsClientError returns true when this post oauth token internal server error response has a 4xx status code
func (*PostOauthTokenInternalServerError) IsCode ¶
func (o *PostOauthTokenInternalServerError) IsCode(code int) bool
IsCode returns true when this post oauth token internal server error response a status code equal to that given
func (*PostOauthTokenInternalServerError) IsRedirect ¶
func (o *PostOauthTokenInternalServerError) IsRedirect() bool
IsRedirect returns true when this post oauth token internal server error response has a 3xx status code
func (*PostOauthTokenInternalServerError) IsServerError ¶
func (o *PostOauthTokenInternalServerError) IsServerError() bool
IsServerError returns true when this post oauth token internal server error response has a 5xx status code
func (*PostOauthTokenInternalServerError) IsSuccess ¶
func (o *PostOauthTokenInternalServerError) IsSuccess() bool
IsSuccess returns true when this post oauth token internal server error response has a 2xx status code
func (*PostOauthTokenInternalServerError) String ¶
func (o *PostOauthTokenInternalServerError) String() string
type PostOauthTokenOK ¶
type PostOauthTokenOK struct { /* Server time represented as epoch(unix) time in seconds. Format: int64 */ ServerTime int64 Payload *models.AccessToken }
PostOauthTokenOK describes a response with status code 200, with default header values.
OK
func NewPostOauthTokenOK ¶
func NewPostOauthTokenOK() *PostOauthTokenOK
NewPostOauthTokenOK creates a PostOauthTokenOK with default headers values
func (*PostOauthTokenOK) Code ¶
func (o *PostOauthTokenOK) Code() int
Code gets the status code for the post oauth token o k response
func (*PostOauthTokenOK) Error ¶
func (o *PostOauthTokenOK) Error() string
func (*PostOauthTokenOK) GetPayload ¶
func (o *PostOauthTokenOK) GetPayload() *models.AccessToken
func (*PostOauthTokenOK) IsClientError ¶
func (o *PostOauthTokenOK) IsClientError() bool
IsClientError returns true when this post oauth token o k response has a 4xx status code
func (*PostOauthTokenOK) IsCode ¶
func (o *PostOauthTokenOK) IsCode(code int) bool
IsCode returns true when this post oauth token o k response a status code equal to that given
func (*PostOauthTokenOK) IsRedirect ¶
func (o *PostOauthTokenOK) IsRedirect() bool
IsRedirect returns true when this post oauth token o k response has a 3xx status code
func (*PostOauthTokenOK) IsServerError ¶
func (o *PostOauthTokenOK) IsServerError() bool
IsServerError returns true when this post oauth token o k response has a 5xx status code
func (*PostOauthTokenOK) IsSuccess ¶
func (o *PostOauthTokenOK) IsSuccess() bool
IsSuccess returns true when this post oauth token o k response has a 2xx status code
func (*PostOauthTokenOK) String ¶
func (o *PostOauthTokenOK) String() string
type PostOauthTokenParams ¶
type PostOauthTokenParams struct { /* ClientAssertion. A jwt which is signed with client secret Signing keys (client secret) can vary depending on agent security profile:<br> - __SHARED_SECRET__: Client secret is provided by '/register' | ‘/register/<client_id>’ endpoint - __RSA_3072__: Private part of the client's RSA key which the public part was provided at '/register' | '/register/<client_id>’ - __CACertifiedX509__: Private counterpart of device certificate’s public key. */ ClientAssertion string /* ClientAssertionType. Defines the assertion type, only urn:ietf:params:oauth:client-assertion-type:jwt-bearer is supported. */ ClientAssertionType string /* GrantType. The type of authentication being used to obtain the token, only client_credentials is supported. */ GrantType string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
PostOauthTokenParams contains all the parameters to send to the API endpoint
for the post oauth token operation. Typically these are written to a http.Request.
func NewPostOauthTokenParams ¶
func NewPostOauthTokenParams() *PostOauthTokenParams
NewPostOauthTokenParams creates a new PostOauthTokenParams 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 NewPostOauthTokenParamsWithContext ¶
func NewPostOauthTokenParamsWithContext(ctx context.Context) *PostOauthTokenParams
NewPostOauthTokenParamsWithContext creates a new PostOauthTokenParams object with the ability to set a context for a request.
func NewPostOauthTokenParamsWithHTTPClient ¶
func NewPostOauthTokenParamsWithHTTPClient(client *http.Client) *PostOauthTokenParams
NewPostOauthTokenParamsWithHTTPClient creates a new PostOauthTokenParams object with the ability to set a custom HTTPClient for a request.
func NewPostOauthTokenParamsWithTimeout ¶
func NewPostOauthTokenParamsWithTimeout(timeout time.Duration) *PostOauthTokenParams
NewPostOauthTokenParamsWithTimeout creates a new PostOauthTokenParams object with the ability to set a timeout on a request.
func (*PostOauthTokenParams) SetClientAssertion ¶
func (o *PostOauthTokenParams) SetClientAssertion(clientAssertion string)
SetClientAssertion adds the clientAssertion to the post oauth token params
func (*PostOauthTokenParams) SetClientAssertionType ¶
func (o *PostOauthTokenParams) SetClientAssertionType(clientAssertionType string)
SetClientAssertionType adds the clientAssertionType to the post oauth token params
func (*PostOauthTokenParams) SetContext ¶
func (o *PostOauthTokenParams) SetContext(ctx context.Context)
SetContext adds the context to the post oauth token params
func (*PostOauthTokenParams) SetDefaults ¶
func (o *PostOauthTokenParams) SetDefaults()
SetDefaults hydrates default values in the post oauth token params (not the query body).
All values with no default are reset to their zero value.
func (*PostOauthTokenParams) SetGrantType ¶
func (o *PostOauthTokenParams) SetGrantType(grantType string)
SetGrantType adds the grantType to the post oauth token params
func (*PostOauthTokenParams) SetHTTPClient ¶
func (o *PostOauthTokenParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the post oauth token params
func (*PostOauthTokenParams) SetTimeout ¶
func (o *PostOauthTokenParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the post oauth token params
func (*PostOauthTokenParams) WithClientAssertion ¶
func (o *PostOauthTokenParams) WithClientAssertion(clientAssertion string) *PostOauthTokenParams
WithClientAssertion adds the clientAssertion to the post oauth token params
func (*PostOauthTokenParams) WithClientAssertionType ¶
func (o *PostOauthTokenParams) WithClientAssertionType(clientAssertionType string) *PostOauthTokenParams
WithClientAssertionType adds the clientAssertionType to the post oauth token params
func (*PostOauthTokenParams) WithContext ¶
func (o *PostOauthTokenParams) WithContext(ctx context.Context) *PostOauthTokenParams
WithContext adds the context to the post oauth token params
func (*PostOauthTokenParams) WithDefaults ¶
func (o *PostOauthTokenParams) WithDefaults() *PostOauthTokenParams
WithDefaults hydrates default values in the post oauth token params (not the query body).
All values with no default are reset to their zero value.
func (*PostOauthTokenParams) WithGrantType ¶
func (o *PostOauthTokenParams) WithGrantType(grantType string) *PostOauthTokenParams
WithGrantType adds the grantType to the post oauth token params
func (*PostOauthTokenParams) WithHTTPClient ¶
func (o *PostOauthTokenParams) WithHTTPClient(client *http.Client) *PostOauthTokenParams
WithHTTPClient adds the HTTPClient to the post oauth token params
func (*PostOauthTokenParams) WithTimeout ¶
func (o *PostOauthTokenParams) WithTimeout(timeout time.Duration) *PostOauthTokenParams
WithTimeout adds the timeout to the post oauth token params
func (*PostOauthTokenParams) WriteToRequest ¶
func (o *PostOauthTokenParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type PostOauthTokenReader ¶
type PostOauthTokenReader struct {
// contains filtered or unexported fields
}
PostOauthTokenReader is a Reader for the PostOauthToken structure.
func (*PostOauthTokenReader) ReadResponse ¶
func (o *PostOauthTokenReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type PostOauthTokenTooManyRequests ¶
type PostOauthTokenTooManyRequests struct {
Payload *models.APIRateLimitExceeded
}
PostOauthTokenTooManyRequests describes a response with status code 429, with default header values.
API rate limit exceeded.
func NewPostOauthTokenTooManyRequests ¶
func NewPostOauthTokenTooManyRequests() *PostOauthTokenTooManyRequests
NewPostOauthTokenTooManyRequests creates a PostOauthTokenTooManyRequests with default headers values
func (*PostOauthTokenTooManyRequests) Code ¶
func (o *PostOauthTokenTooManyRequests) Code() int
Code gets the status code for the post oauth token too many requests response
func (*PostOauthTokenTooManyRequests) Error ¶
func (o *PostOauthTokenTooManyRequests) Error() string
func (*PostOauthTokenTooManyRequests) GetPayload ¶
func (o *PostOauthTokenTooManyRequests) GetPayload() *models.APIRateLimitExceeded
func (*PostOauthTokenTooManyRequests) IsClientError ¶
func (o *PostOauthTokenTooManyRequests) IsClientError() bool
IsClientError returns true when this post oauth token too many requests response has a 4xx status code
func (*PostOauthTokenTooManyRequests) IsCode ¶
func (o *PostOauthTokenTooManyRequests) IsCode(code int) bool
IsCode returns true when this post oauth token too many requests response a status code equal to that given
func (*PostOauthTokenTooManyRequests) IsRedirect ¶
func (o *PostOauthTokenTooManyRequests) IsRedirect() bool
IsRedirect returns true when this post oauth token too many requests response has a 3xx status code
func (*PostOauthTokenTooManyRequests) IsServerError ¶
func (o *PostOauthTokenTooManyRequests) IsServerError() bool
IsServerError returns true when this post oauth token too many requests response has a 5xx status code
func (*PostOauthTokenTooManyRequests) IsSuccess ¶
func (o *PostOauthTokenTooManyRequests) IsSuccess() bool
IsSuccess returns true when this post oauth token too many requests response has a 2xx status code
func (*PostOauthTokenTooManyRequests) String ¶
func (o *PostOauthTokenTooManyRequests) String() string