Documentation ¶
Index ¶
- Constants
- type Client
- func (a *Client) DeleteCredentialsID(params *DeleteCredentialsIDParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteCredentialsIDNoContent, error)
- func (a *Client) GetCredentials(params *GetCredentialsParams, authInfo runtime.ClientAuthInfoWriter) (*GetCredentialsOK, error)
- func (a *Client) GetSelf(params *GetSelfParams, authInfo runtime.ClientAuthInfoWriter) (*GetSelfOK, error)
- func (a *Client) PostCredentials(params *PostCredentialsParams, authInfo runtime.ClientAuthInfoWriter) (*PostCredentialsOK, error)
- func (a *Client) PostOauthTokens(params *PostOauthTokensParams) (*PostOauthTokensCreated, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type DeleteCredentialsIDBadRequest
- type DeleteCredentialsIDBadRequestBody
- type DeleteCredentialsIDInternalServerError
- type DeleteCredentialsIDInternalServerErrorBody
- type DeleteCredentialsIDNoContent
- type DeleteCredentialsIDNotFound
- type DeleteCredentialsIDNotFoundBody
- type DeleteCredentialsIDParams
- func NewDeleteCredentialsIDParams() *DeleteCredentialsIDParams
- func NewDeleteCredentialsIDParamsWithContext(ctx context.Context) *DeleteCredentialsIDParams
- func NewDeleteCredentialsIDParamsWithHTTPClient(client *http.Client) *DeleteCredentialsIDParams
- func NewDeleteCredentialsIDParamsWithTimeout(timeout time.Duration) *DeleteCredentialsIDParams
- func (o *DeleteCredentialsIDParams) SetContext(ctx context.Context)
- func (o *DeleteCredentialsIDParams) SetHTTPClient(client *http.Client)
- func (o *DeleteCredentialsIDParams) SetID(id string)
- func (o *DeleteCredentialsIDParams) SetTimeout(timeout time.Duration)
- func (o *DeleteCredentialsIDParams) WithContext(ctx context.Context) *DeleteCredentialsIDParams
- func (o *DeleteCredentialsIDParams) WithHTTPClient(client *http.Client) *DeleteCredentialsIDParams
- func (o *DeleteCredentialsIDParams) WithID(id string) *DeleteCredentialsIDParams
- func (o *DeleteCredentialsIDParams) WithTimeout(timeout time.Duration) *DeleteCredentialsIDParams
- func (o *DeleteCredentialsIDParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DeleteCredentialsIDReader
- type DeleteCredentialsIDUnauthorized
- type DeleteCredentialsIDUnauthorizedBody
- type GetCredentialsBadRequest
- type GetCredentialsBadRequestBody
- type GetCredentialsInternalServerError
- type GetCredentialsInternalServerErrorBody
- type GetCredentialsNotFound
- type GetCredentialsNotFoundBody
- type GetCredentialsOK
- type GetCredentialsParams
- func NewGetCredentialsParams() *GetCredentialsParams
- func NewGetCredentialsParamsWithContext(ctx context.Context) *GetCredentialsParams
- func NewGetCredentialsParamsWithHTTPClient(client *http.Client) *GetCredentialsParams
- func NewGetCredentialsParamsWithTimeout(timeout time.Duration) *GetCredentialsParams
- func (o *GetCredentialsParams) SetContext(ctx context.Context)
- func (o *GetCredentialsParams) SetHTTPClient(client *http.Client)
- func (o *GetCredentialsParams) SetProductID(productID *string)
- func (o *GetCredentialsParams) SetProviderID(providerID *string)
- func (o *GetCredentialsParams) SetTimeout(timeout time.Duration)
- func (o *GetCredentialsParams) WithContext(ctx context.Context) *GetCredentialsParams
- func (o *GetCredentialsParams) WithHTTPClient(client *http.Client) *GetCredentialsParams
- func (o *GetCredentialsParams) WithProductID(productID *string) *GetCredentialsParams
- func (o *GetCredentialsParams) WithProviderID(providerID *string) *GetCredentialsParams
- func (o *GetCredentialsParams) WithTimeout(timeout time.Duration) *GetCredentialsParams
- func (o *GetCredentialsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetCredentialsReader
- type GetCredentialsUnauthorized
- type GetCredentialsUnauthorizedBody
- type GetSelfBadRequest
- type GetSelfBadRequestBody
- type GetSelfInternalServerError
- type GetSelfInternalServerErrorBody
- type GetSelfOK
- type GetSelfParams
- func (o *GetSelfParams) SetContext(ctx context.Context)
- func (o *GetSelfParams) SetHTTPClient(client *http.Client)
- func (o *GetSelfParams) SetTimeout(timeout time.Duration)
- func (o *GetSelfParams) WithContext(ctx context.Context) *GetSelfParams
- func (o *GetSelfParams) WithHTTPClient(client *http.Client) *GetSelfParams
- func (o *GetSelfParams) WithTimeout(timeout time.Duration) *GetSelfParams
- func (o *GetSelfParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetSelfReader
- type GetSelfUnauthorized
- type GetSelfUnauthorizedBody
- type PostCredentialsBadRequest
- type PostCredentialsBadRequestBody
- type PostCredentialsInternalServerError
- type PostCredentialsInternalServerErrorBody
- type PostCredentialsNotFound
- type PostCredentialsNotFoundBody
- type PostCredentialsOK
- type PostCredentialsParams
- func NewPostCredentialsParams() *PostCredentialsParams
- func NewPostCredentialsParamsWithContext(ctx context.Context) *PostCredentialsParams
- func NewPostCredentialsParamsWithHTTPClient(client *http.Client) *PostCredentialsParams
- func NewPostCredentialsParamsWithTimeout(timeout time.Duration) *PostCredentialsParams
- func (o *PostCredentialsParams) SetBody(body *models.OAuthCredentialCreateRequest)
- func (o *PostCredentialsParams) SetContext(ctx context.Context)
- func (o *PostCredentialsParams) SetHTTPClient(client *http.Client)
- func (o *PostCredentialsParams) SetTimeout(timeout time.Duration)
- func (o *PostCredentialsParams) WithBody(body *models.OAuthCredentialCreateRequest) *PostCredentialsParams
- func (o *PostCredentialsParams) WithContext(ctx context.Context) *PostCredentialsParams
- func (o *PostCredentialsParams) WithHTTPClient(client *http.Client) *PostCredentialsParams
- func (o *PostCredentialsParams) WithTimeout(timeout time.Duration) *PostCredentialsParams
- func (o *PostCredentialsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type PostCredentialsReader
- type PostCredentialsUnauthorized
- type PostCredentialsUnauthorizedBody
- type PostOauthTokensBadRequest
- type PostOauthTokensBadRequestBody
- type PostOauthTokensCreated
- type PostOauthTokensInternalServerError
- type PostOauthTokensInternalServerErrorBody
- type PostOauthTokensParams
- func NewPostOauthTokensParams() *PostOauthTokensParams
- func NewPostOauthTokensParamsWithContext(ctx context.Context) *PostOauthTokensParams
- func NewPostOauthTokensParamsWithHTTPClient(client *http.Client) *PostOauthTokensParams
- func NewPostOauthTokensParamsWithTimeout(timeout time.Duration) *PostOauthTokensParams
- func (o *PostOauthTokensParams) SetAuthorization(authorization *string)
- func (o *PostOauthTokensParams) SetBody(body models.AccessTokenRequest)
- func (o *PostOauthTokensParams) SetContext(ctx context.Context)
- func (o *PostOauthTokensParams) SetHTTPClient(client *http.Client)
- func (o *PostOauthTokensParams) SetTimeout(timeout time.Duration)
- func (o *PostOauthTokensParams) WithAuthorization(authorization *string) *PostOauthTokensParams
- func (o *PostOauthTokensParams) WithBody(body models.AccessTokenRequest) *PostOauthTokensParams
- func (o *PostOauthTokensParams) WithContext(ctx context.Context) *PostOauthTokensParams
- func (o *PostOauthTokensParams) WithHTTPClient(client *http.Client) *PostOauthTokensParams
- func (o *PostOauthTokensParams) WithTimeout(timeout time.Duration) *PostOauthTokensParams
- func (o *PostOauthTokensParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type PostOauthTokensReader
- type PostOauthTokensUnauthorized
- type PostOauthTokensUnauthorizedBody
Constants ¶
const ( // DeleteCredentialsIDBadRequestBodyTypeBadRequest captures enum value "bad_request" DeleteCredentialsIDBadRequestBodyTypeBadRequest string = "bad_request" DeleteCredentialsIDBadRequestBodyTypeUnauthorized string = "unauthorized" // DeleteCredentialsIDBadRequestBodyTypeNotFound captures enum value "not_found" DeleteCredentialsIDBadRequestBodyTypeNotFound string = "not_found" // DeleteCredentialsIDBadRequestBodyTypeMethodNotAllowed captures enum value "method_not_allowed" DeleteCredentialsIDBadRequestBodyTypeMethodNotAllowed string = "method_not_allowed" // DeleteCredentialsIDBadRequestBodyTypeInternal captures enum value "internal" DeleteCredentialsIDBadRequestBodyTypeInternal string = "internal" // DeleteCredentialsIDBadRequestBodyTypeInvalidGrant captures enum value "invalid_grant" DeleteCredentialsIDBadRequestBodyTypeInvalidGrant string = "invalid_grant" // DeleteCredentialsIDBadRequestBodyTypeUnsupportedGrantType captures enum value "unsupported_grant_type" DeleteCredentialsIDBadRequestBodyTypeUnsupportedGrantType string = "unsupported_grant_type" )
const ( // DeleteCredentialsIDInternalServerErrorBodyTypeBadRequest captures enum value "bad_request" DeleteCredentialsIDInternalServerErrorBodyTypeBadRequest string = "bad_request" DeleteCredentialsIDInternalServerErrorBodyTypeUnauthorized string = "unauthorized" // DeleteCredentialsIDInternalServerErrorBodyTypeNotFound captures enum value "not_found" DeleteCredentialsIDInternalServerErrorBodyTypeNotFound string = "not_found" // DeleteCredentialsIDInternalServerErrorBodyTypeMethodNotAllowed captures enum value "method_not_allowed" DeleteCredentialsIDInternalServerErrorBodyTypeMethodNotAllowed string = "method_not_allowed" // DeleteCredentialsIDInternalServerErrorBodyTypeInternal captures enum value "internal" DeleteCredentialsIDInternalServerErrorBodyTypeInternal string = "internal" // DeleteCredentialsIDInternalServerErrorBodyTypeInvalidGrant captures enum value "invalid_grant" DeleteCredentialsIDInternalServerErrorBodyTypeInvalidGrant string = "invalid_grant" // DeleteCredentialsIDInternalServerErrorBodyTypeUnsupportedGrantType captures enum value "unsupported_grant_type" DeleteCredentialsIDInternalServerErrorBodyTypeUnsupportedGrantType string = "unsupported_grant_type" )
const ( // DeleteCredentialsIDNotFoundBodyTypeBadRequest captures enum value "bad_request" DeleteCredentialsIDNotFoundBodyTypeBadRequest string = "bad_request" DeleteCredentialsIDNotFoundBodyTypeUnauthorized string = "unauthorized" // DeleteCredentialsIDNotFoundBodyTypeNotFound captures enum value "not_found" DeleteCredentialsIDNotFoundBodyTypeNotFound string = "not_found" // DeleteCredentialsIDNotFoundBodyTypeMethodNotAllowed captures enum value "method_not_allowed" DeleteCredentialsIDNotFoundBodyTypeMethodNotAllowed string = "method_not_allowed" // DeleteCredentialsIDNotFoundBodyTypeInternal captures enum value "internal" DeleteCredentialsIDNotFoundBodyTypeInternal string = "internal" // DeleteCredentialsIDNotFoundBodyTypeInvalidGrant captures enum value "invalid_grant" DeleteCredentialsIDNotFoundBodyTypeInvalidGrant string = "invalid_grant" // DeleteCredentialsIDNotFoundBodyTypeUnsupportedGrantType captures enum value "unsupported_grant_type" DeleteCredentialsIDNotFoundBodyTypeUnsupportedGrantType string = "unsupported_grant_type" )
const ( string = "bad_request" DeleteCredentialsIDUnauthorizedBodyTypeUnauthorized string = "unauthorized" DeleteCredentialsIDUnauthorizedBodyTypeNotFound string = "not_found" DeleteCredentialsIDUnauthorizedBodyTypeMethodNotAllowed string = "method_not_allowed" DeleteCredentialsIDUnauthorizedBodyTypeInternal string = "internal" DeleteCredentialsIDUnauthorizedBodyTypeInvalidGrant string = "invalid_grant" DeleteCredentialsIDUnauthorizedBodyTypeUnsupportedGrantType string = "unsupported_grant_type" )DeleteCredentialsIDUnauthorizedBodyTypeBadRequest
const ( // GetCredentialsBadRequestBodyTypeBadRequest captures enum value "bad_request" GetCredentialsBadRequestBodyTypeBadRequest string = "bad_request" GetCredentialsBadRequestBodyTypeUnauthorized string = "unauthorized" // GetCredentialsBadRequestBodyTypeNotFound captures enum value "not_found" GetCredentialsBadRequestBodyTypeNotFound string = "not_found" // GetCredentialsBadRequestBodyTypeMethodNotAllowed captures enum value "method_not_allowed" GetCredentialsBadRequestBodyTypeMethodNotAllowed string = "method_not_allowed" // GetCredentialsBadRequestBodyTypeInternal captures enum value "internal" GetCredentialsBadRequestBodyTypeInternal string = "internal" // GetCredentialsBadRequestBodyTypeInvalidGrant captures enum value "invalid_grant" GetCredentialsBadRequestBodyTypeInvalidGrant string = "invalid_grant" // GetCredentialsBadRequestBodyTypeUnsupportedGrantType captures enum value "unsupported_grant_type" GetCredentialsBadRequestBodyTypeUnsupportedGrantType string = "unsupported_grant_type" )
const ( // GetCredentialsInternalServerErrorBodyTypeBadRequest captures enum value "bad_request" GetCredentialsInternalServerErrorBodyTypeBadRequest string = "bad_request" GetCredentialsInternalServerErrorBodyTypeUnauthorized string = "unauthorized" // GetCredentialsInternalServerErrorBodyTypeNotFound captures enum value "not_found" GetCredentialsInternalServerErrorBodyTypeNotFound string = "not_found" // GetCredentialsInternalServerErrorBodyTypeMethodNotAllowed captures enum value "method_not_allowed" GetCredentialsInternalServerErrorBodyTypeMethodNotAllowed string = "method_not_allowed" // GetCredentialsInternalServerErrorBodyTypeInternal captures enum value "internal" GetCredentialsInternalServerErrorBodyTypeInternal string = "internal" // GetCredentialsInternalServerErrorBodyTypeInvalidGrant captures enum value "invalid_grant" GetCredentialsInternalServerErrorBodyTypeInvalidGrant string = "invalid_grant" // GetCredentialsInternalServerErrorBodyTypeUnsupportedGrantType captures enum value "unsupported_grant_type" GetCredentialsInternalServerErrorBodyTypeUnsupportedGrantType string = "unsupported_grant_type" )
const ( // GetCredentialsNotFoundBodyTypeBadRequest captures enum value "bad_request" GetCredentialsNotFoundBodyTypeBadRequest string = "bad_request" GetCredentialsNotFoundBodyTypeUnauthorized string = "unauthorized" // GetCredentialsNotFoundBodyTypeNotFound captures enum value "not_found" GetCredentialsNotFoundBodyTypeNotFound string = "not_found" // GetCredentialsNotFoundBodyTypeMethodNotAllowed captures enum value "method_not_allowed" GetCredentialsNotFoundBodyTypeMethodNotAllowed string = "method_not_allowed" // GetCredentialsNotFoundBodyTypeInternal captures enum value "internal" GetCredentialsNotFoundBodyTypeInternal string = "internal" // GetCredentialsNotFoundBodyTypeInvalidGrant captures enum value "invalid_grant" GetCredentialsNotFoundBodyTypeInvalidGrant string = "invalid_grant" // GetCredentialsNotFoundBodyTypeUnsupportedGrantType captures enum value "unsupported_grant_type" GetCredentialsNotFoundBodyTypeUnsupportedGrantType string = "unsupported_grant_type" )
const ( string = "bad_request" GetCredentialsUnauthorizedBodyTypeUnauthorized string = "unauthorized" GetCredentialsUnauthorizedBodyTypeNotFound string = "not_found" GetCredentialsUnauthorizedBodyTypeMethodNotAllowed string = "method_not_allowed" GetCredentialsUnauthorizedBodyTypeInternal string = "internal" GetCredentialsUnauthorizedBodyTypeInvalidGrant string = "invalid_grant" GetCredentialsUnauthorizedBodyTypeUnsupportedGrantType string = "unsupported_grant_type" )GetCredentialsUnauthorizedBodyTypeBadRequest
const ( // GetSelfBadRequestBodyTypeBadRequest captures enum value "bad_request" GetSelfBadRequestBodyTypeBadRequest string = "bad_request" GetSelfBadRequestBodyTypeUnauthorized string = "unauthorized" // GetSelfBadRequestBodyTypeNotFound captures enum value "not_found" GetSelfBadRequestBodyTypeNotFound string = "not_found" // GetSelfBadRequestBodyTypeMethodNotAllowed captures enum value "method_not_allowed" GetSelfBadRequestBodyTypeMethodNotAllowed string = "method_not_allowed" // GetSelfBadRequestBodyTypeInternal captures enum value "internal" GetSelfBadRequestBodyTypeInternal string = "internal" // GetSelfBadRequestBodyTypeInvalidGrant captures enum value "invalid_grant" GetSelfBadRequestBodyTypeInvalidGrant string = "invalid_grant" // GetSelfBadRequestBodyTypeUnsupportedGrantType captures enum value "unsupported_grant_type" GetSelfBadRequestBodyTypeUnsupportedGrantType string = "unsupported_grant_type" )
const ( // GetSelfInternalServerErrorBodyTypeBadRequest captures enum value "bad_request" GetSelfInternalServerErrorBodyTypeBadRequest string = "bad_request" GetSelfInternalServerErrorBodyTypeUnauthorized string = "unauthorized" // GetSelfInternalServerErrorBodyTypeNotFound captures enum value "not_found" GetSelfInternalServerErrorBodyTypeNotFound string = "not_found" // GetSelfInternalServerErrorBodyTypeMethodNotAllowed captures enum value "method_not_allowed" GetSelfInternalServerErrorBodyTypeMethodNotAllowed string = "method_not_allowed" // GetSelfInternalServerErrorBodyTypeInternal captures enum value "internal" GetSelfInternalServerErrorBodyTypeInternal string = "internal" // GetSelfInternalServerErrorBodyTypeInvalidGrant captures enum value "invalid_grant" GetSelfInternalServerErrorBodyTypeInvalidGrant string = "invalid_grant" // GetSelfInternalServerErrorBodyTypeUnsupportedGrantType captures enum value "unsupported_grant_type" GetSelfInternalServerErrorBodyTypeUnsupportedGrantType string = "unsupported_grant_type" )
const ( string = "bad_request" GetSelfUnauthorizedBodyTypeUnauthorized string = "unauthorized" GetSelfUnauthorizedBodyTypeNotFound string = "not_found" GetSelfUnauthorizedBodyTypeMethodNotAllowed string = "method_not_allowed" GetSelfUnauthorizedBodyTypeInternal string = "internal" GetSelfUnauthorizedBodyTypeInvalidGrant string = "invalid_grant" GetSelfUnauthorizedBodyTypeUnsupportedGrantType string = "unsupported_grant_type" )GetSelfUnauthorizedBodyTypeBadRequest
const ( // PostCredentialsBadRequestBodyTypeBadRequest captures enum value "bad_request" PostCredentialsBadRequestBodyTypeBadRequest string = "bad_request" PostCredentialsBadRequestBodyTypeUnauthorized string = "unauthorized" // PostCredentialsBadRequestBodyTypeNotFound captures enum value "not_found" PostCredentialsBadRequestBodyTypeNotFound string = "not_found" // PostCredentialsBadRequestBodyTypeMethodNotAllowed captures enum value "method_not_allowed" PostCredentialsBadRequestBodyTypeMethodNotAllowed string = "method_not_allowed" // PostCredentialsBadRequestBodyTypeInternal captures enum value "internal" PostCredentialsBadRequestBodyTypeInternal string = "internal" // PostCredentialsBadRequestBodyTypeInvalidGrant captures enum value "invalid_grant" PostCredentialsBadRequestBodyTypeInvalidGrant string = "invalid_grant" // PostCredentialsBadRequestBodyTypeUnsupportedGrantType captures enum value "unsupported_grant_type" PostCredentialsBadRequestBodyTypeUnsupportedGrantType string = "unsupported_grant_type" )
const ( // PostCredentialsInternalServerErrorBodyTypeBadRequest captures enum value "bad_request" PostCredentialsInternalServerErrorBodyTypeBadRequest string = "bad_request" PostCredentialsInternalServerErrorBodyTypeUnauthorized string = "unauthorized" // PostCredentialsInternalServerErrorBodyTypeNotFound captures enum value "not_found" PostCredentialsInternalServerErrorBodyTypeNotFound string = "not_found" // PostCredentialsInternalServerErrorBodyTypeMethodNotAllowed captures enum value "method_not_allowed" PostCredentialsInternalServerErrorBodyTypeMethodNotAllowed string = "method_not_allowed" // PostCredentialsInternalServerErrorBodyTypeInternal captures enum value "internal" PostCredentialsInternalServerErrorBodyTypeInternal string = "internal" // PostCredentialsInternalServerErrorBodyTypeInvalidGrant captures enum value "invalid_grant" PostCredentialsInternalServerErrorBodyTypeInvalidGrant string = "invalid_grant" // PostCredentialsInternalServerErrorBodyTypeUnsupportedGrantType captures enum value "unsupported_grant_type" PostCredentialsInternalServerErrorBodyTypeUnsupportedGrantType string = "unsupported_grant_type" )
const ( // PostCredentialsNotFoundBodyTypeBadRequest captures enum value "bad_request" PostCredentialsNotFoundBodyTypeBadRequest string = "bad_request" PostCredentialsNotFoundBodyTypeUnauthorized string = "unauthorized" // PostCredentialsNotFoundBodyTypeNotFound captures enum value "not_found" PostCredentialsNotFoundBodyTypeNotFound string = "not_found" // PostCredentialsNotFoundBodyTypeMethodNotAllowed captures enum value "method_not_allowed" PostCredentialsNotFoundBodyTypeMethodNotAllowed string = "method_not_allowed" // PostCredentialsNotFoundBodyTypeInternal captures enum value "internal" PostCredentialsNotFoundBodyTypeInternal string = "internal" // PostCredentialsNotFoundBodyTypeInvalidGrant captures enum value "invalid_grant" PostCredentialsNotFoundBodyTypeInvalidGrant string = "invalid_grant" // PostCredentialsNotFoundBodyTypeUnsupportedGrantType captures enum value "unsupported_grant_type" PostCredentialsNotFoundBodyTypeUnsupportedGrantType string = "unsupported_grant_type" )
const ( string = "bad_request" PostCredentialsUnauthorizedBodyTypeUnauthorized string = "unauthorized" PostCredentialsUnauthorizedBodyTypeNotFound string = "not_found" PostCredentialsUnauthorizedBodyTypeMethodNotAllowed string = "method_not_allowed" PostCredentialsUnauthorizedBodyTypeInternal string = "internal" PostCredentialsUnauthorizedBodyTypeInvalidGrant string = "invalid_grant" PostCredentialsUnauthorizedBodyTypeUnsupportedGrantType string = "unsupported_grant_type" )PostCredentialsUnauthorizedBodyTypeBadRequest
const ( // PostOauthTokensBadRequestBodyErrorInvalidRequest captures enum value "invalid_request" PostOauthTokensBadRequestBodyErrorInvalidRequest string = "invalid_request" // PostOauthTokensBadRequestBodyErrorInvalidClient captures enum value "invalid_client" PostOauthTokensBadRequestBodyErrorInvalidClient string = "invalid_client" // PostOauthTokensBadRequestBodyErrorInvalidGrant captures enum value "invalid_grant" PostOauthTokensBadRequestBodyErrorInvalidGrant string = "invalid_grant" PostOauthTokensBadRequestBodyErrorUnauthorizedClient string = "unauthorized_client" // PostOauthTokensBadRequestBodyErrorUnsupportedGrantType captures enum value "unsupported_grant_type" PostOauthTokensBadRequestBodyErrorUnsupportedGrantType string = "unsupported_grant_type" // PostOauthTokensBadRequestBodyErrorInvalidScope captures enum value "invalid_scope" PostOauthTokensBadRequestBodyErrorInvalidScope string = "invalid_scope" // PostOauthTokensBadRequestBodyErrorAccessDenied captures enum value "access_denied" PostOauthTokensBadRequestBodyErrorAccessDenied string = "access_denied" )
const ( // PostOauthTokensInternalServerErrorBodyTypeBadRequest captures enum value "bad_request" PostOauthTokensInternalServerErrorBodyTypeBadRequest string = "bad_request" PostOauthTokensInternalServerErrorBodyTypeUnauthorized string = "unauthorized" // PostOauthTokensInternalServerErrorBodyTypeNotFound captures enum value "not_found" PostOauthTokensInternalServerErrorBodyTypeNotFound string = "not_found" // PostOauthTokensInternalServerErrorBodyTypeMethodNotAllowed captures enum value "method_not_allowed" PostOauthTokensInternalServerErrorBodyTypeMethodNotAllowed string = "method_not_allowed" // PostOauthTokensInternalServerErrorBodyTypeInternal captures enum value "internal" PostOauthTokensInternalServerErrorBodyTypeInternal string = "internal" // PostOauthTokensInternalServerErrorBodyTypeInvalidGrant captures enum value "invalid_grant" PostOauthTokensInternalServerErrorBodyTypeInvalidGrant string = "invalid_grant" // PostOauthTokensInternalServerErrorBodyTypeUnsupportedGrantType captures enum value "unsupported_grant_type" PostOauthTokensInternalServerErrorBodyTypeUnsupportedGrantType string = "unsupported_grant_type" )
const ( string = "invalid_request" PostOauthTokensUnauthorizedBodyErrorInvalidClient string = "invalid_client" PostOauthTokensUnauthorizedBodyErrorInvalidGrant string = "invalid_grant" PostOauthTokensUnauthorizedBodyErrorUnauthorizedClient string = "unauthorized_client" PostOauthTokensUnauthorizedBodyErrorUnsupportedGrantType string = "unsupported_grant_type" PostOauthTokensUnauthorizedBodyErrorInvalidScope string = "invalid_scope" PostOauthTokensUnauthorizedBodyErrorAccessDenied string = "access_denied" )PostOauthTokensUnauthorizedBodyErrorInvalidRequest
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client for o auth API
func New ¶
func New(transport runtime.ClientTransport, formats strfmt.Registry) *Client
New creates a new o auth API client.
func (*Client) DeleteCredentialsID ¶ added in v0.12.0
func (a *Client) DeleteCredentialsID(params *DeleteCredentialsIDParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteCredentialsIDNoContent, error)
DeleteCredentialsID deletes an o auth credential pair
Delete an OAuth 2.0 credential pair.
Can only be called through [Grafton's credentials command](https://github.com/manifoldco/grafton) in the context of a Manifold user.
func (*Client) GetCredentials ¶ added in v0.12.0
func (a *Client) GetCredentials(params *GetCredentialsParams, authInfo runtime.ClientAuthInfoWriter) (*GetCredentialsOK, error)
GetCredentials gets list of o auth credentials without secrets
List all non-expired OAuth 2.0 credential pairs for a provider's product.
One of the `product_id` or `provider_id` query parameters is required.
**IMPORTANT**: This does **not** return the secret.
Can only be called through [Grafton's credentials command](https://github.com/manifoldco/grafton) in the context of a Manifold user.
func (*Client) GetSelf ¶
func (a *Client) GetSelf(params *GetSelfParams, authInfo runtime.ClientAuthInfoWriter) (*GetSelfOK, error)
GetSelf currents identity
A provider can call this endpoint to return the identity represented by the access token.
Depending on the grant type used to create an access token the underlying identity will be different.
| Grant Type | Identity Type | | ---------- | ------------ | | `authorization_code` | `user` | | `client_credentials` | `product` or `provider` |
func (*Client) PostCredentials ¶
func (a *Client) PostCredentials(params *PostCredentialsParams, authInfo runtime.ClientAuthInfoWriter) (*PostCredentialsOK, error)
PostCredentials creates an o auth credential pair
Create an OAuth 2.0 credential pair for a provider.
That credential can either be scoped to all products of the provider or to a specific product. This is done by providing the `product_id`.
`client_secret` is stored as an `scrypt` hash only. Therefore, If the value is lost after creation, it cannot be recovered.
**IMPORTANT**: For security, Manifold expires all previously created credentials of the same scope (product or provider) within 24 hours of creating a new credential. This means that only the most recent credential of a specific scope should be used.
Can only be called through [Grafton's credentials command](https://github.com/manifoldco/grafton) in the context of a Manifold user.
func (*Client) PostOauthTokens ¶
func (a *Client) PostOauthTokens(params *PostOauthTokensParams) (*PostOauthTokensCreated, error)
PostOauthTokens creates access token
A provider uses this endpoint to acquire a scoped access token which grants them authority to act on behalf of the grantor (either a provider or user).
There are two grant types used for requesting an access token:
- `authorization_code` which allows a provider to exchange a `code` grant from a user for an access token giving them permission to act on the user's behalf.
- `client_credentials` which allows a provider to grant themselves an access token that is either scoped to all their products or to a specific one.
This endpoint is a part of the Single Sign-On flow invoked by users attempting to navigate to a resource's dashboard. A `code` is only valid for five minutes and cannot be used more than once to grant an access token.
Provider authentication is supported with `client_id` and `client_secret` in either the request body, or via basic authentication. Basic authentication is the preferred method, but is not required.
The granted token will expire within 24 hours.
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
type DeleteCredentialsIDBadRequest ¶ added in v0.12.0
type DeleteCredentialsIDBadRequest struct {
Payload DeleteCredentialsIDBadRequestBody
}
DeleteCredentialsIDBadRequest handles this case with default header values.
Request denied due to invalid request body, path, or headers.
func NewDeleteCredentialsIDBadRequest ¶ added in v0.12.0
func NewDeleteCredentialsIDBadRequest() *DeleteCredentialsIDBadRequest
NewDeleteCredentialsIDBadRequest creates a DeleteCredentialsIDBadRequest with default headers values
func (*DeleteCredentialsIDBadRequest) Error ¶ added in v0.12.0
func (o *DeleteCredentialsIDBadRequest) Error() string
type DeleteCredentialsIDBadRequestBody ¶ added in v0.12.0
type DeleteCredentialsIDBadRequestBody struct { // Explanation of the errors // Required: true Message []string `json:"message"` // The error type // Required: true Type *string `json:"type"` }
DeleteCredentialsIDBadRequestBody delete credentials ID bad request body swagger:model DeleteCredentialsIDBadRequestBody
type DeleteCredentialsIDInternalServerError ¶ added in v0.12.0
type DeleteCredentialsIDInternalServerError struct {
Payload DeleteCredentialsIDInternalServerErrorBody
}
DeleteCredentialsIDInternalServerError handles this case with default header values.
Request failed due to an internal server error.
func NewDeleteCredentialsIDInternalServerError ¶ added in v0.12.0
func NewDeleteCredentialsIDInternalServerError() *DeleteCredentialsIDInternalServerError
NewDeleteCredentialsIDInternalServerError creates a DeleteCredentialsIDInternalServerError with default headers values
func (*DeleteCredentialsIDInternalServerError) Error ¶ added in v0.12.0
func (o *DeleteCredentialsIDInternalServerError) Error() string
type DeleteCredentialsIDInternalServerErrorBody ¶ added in v0.12.0
type DeleteCredentialsIDInternalServerErrorBody struct { // Explanation of the errors // Required: true Message []string `json:"message"` // The error type // Required: true Type *string `json:"type"` }
DeleteCredentialsIDInternalServerErrorBody delete credentials ID internal server error body swagger:model DeleteCredentialsIDInternalServerErrorBody
type DeleteCredentialsIDNoContent ¶ added in v0.12.0
type DeleteCredentialsIDNoContent struct { }
DeleteCredentialsIDNoContent handles this case with default header values.
Empty response
func NewDeleteCredentialsIDNoContent ¶ added in v0.12.0
func NewDeleteCredentialsIDNoContent() *DeleteCredentialsIDNoContent
NewDeleteCredentialsIDNoContent creates a DeleteCredentialsIDNoContent with default headers values
func (*DeleteCredentialsIDNoContent) Error ¶ added in v0.12.0
func (o *DeleteCredentialsIDNoContent) Error() string
type DeleteCredentialsIDNotFound ¶ added in v0.12.0
type DeleteCredentialsIDNotFound struct {
Payload DeleteCredentialsIDNotFoundBody
}
DeleteCredentialsIDNotFound handles this case with default header values.
Request denied as the requested resource does not exist.
func NewDeleteCredentialsIDNotFound ¶ added in v0.12.0
func NewDeleteCredentialsIDNotFound() *DeleteCredentialsIDNotFound
NewDeleteCredentialsIDNotFound creates a DeleteCredentialsIDNotFound with default headers values
func (*DeleteCredentialsIDNotFound) Error ¶ added in v0.12.0
func (o *DeleteCredentialsIDNotFound) Error() string
type DeleteCredentialsIDNotFoundBody ¶ added in v0.12.0
type DeleteCredentialsIDNotFoundBody struct { // Explanation of the errors // Required: true Message []string `json:"message"` // The error type // Required: true Type *string `json:"type"` }
DeleteCredentialsIDNotFoundBody delete credentials ID not found body swagger:model DeleteCredentialsIDNotFoundBody
type DeleteCredentialsIDParams ¶ added in v0.12.0
type DeleteCredentialsIDParams struct { /*ID ID of the credential to delete, stored as a base32 encoded 18 byte identifier. */ ID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
DeleteCredentialsIDParams contains all the parameters to send to the API endpoint for the delete credentials ID operation typically these are written to a http.Request
func NewDeleteCredentialsIDParams ¶ added in v0.12.0
func NewDeleteCredentialsIDParams() *DeleteCredentialsIDParams
NewDeleteCredentialsIDParams creates a new DeleteCredentialsIDParams object with the default values initialized.
func NewDeleteCredentialsIDParamsWithContext ¶ added in v0.12.0
func NewDeleteCredentialsIDParamsWithContext(ctx context.Context) *DeleteCredentialsIDParams
NewDeleteCredentialsIDParamsWithContext creates a new DeleteCredentialsIDParams object with the default values initialized, and the ability to set a context for a request
func NewDeleteCredentialsIDParamsWithHTTPClient ¶ added in v0.12.0
func NewDeleteCredentialsIDParamsWithHTTPClient(client *http.Client) *DeleteCredentialsIDParams
NewDeleteCredentialsIDParamsWithHTTPClient creates a new DeleteCredentialsIDParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewDeleteCredentialsIDParamsWithTimeout ¶ added in v0.12.0
func NewDeleteCredentialsIDParamsWithTimeout(timeout time.Duration) *DeleteCredentialsIDParams
NewDeleteCredentialsIDParamsWithTimeout creates a new DeleteCredentialsIDParams object with the default values initialized, and the ability to set a timeout on a request
func (*DeleteCredentialsIDParams) SetContext ¶ added in v0.12.0
func (o *DeleteCredentialsIDParams) SetContext(ctx context.Context)
SetContext adds the context to the delete credentials ID params
func (*DeleteCredentialsIDParams) SetHTTPClient ¶ added in v0.12.0
func (o *DeleteCredentialsIDParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the delete credentials ID params
func (*DeleteCredentialsIDParams) SetID ¶ added in v0.12.0
func (o *DeleteCredentialsIDParams) SetID(id string)
SetID adds the id to the delete credentials ID params
func (*DeleteCredentialsIDParams) SetTimeout ¶ added in v0.12.0
func (o *DeleteCredentialsIDParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the delete credentials ID params
func (*DeleteCredentialsIDParams) WithContext ¶ added in v0.12.0
func (o *DeleteCredentialsIDParams) WithContext(ctx context.Context) *DeleteCredentialsIDParams
WithContext adds the context to the delete credentials ID params
func (*DeleteCredentialsIDParams) WithHTTPClient ¶ added in v0.12.0
func (o *DeleteCredentialsIDParams) WithHTTPClient(client *http.Client) *DeleteCredentialsIDParams
WithHTTPClient adds the HTTPClient to the delete credentials ID params
func (*DeleteCredentialsIDParams) WithID ¶ added in v0.12.0
func (o *DeleteCredentialsIDParams) WithID(id string) *DeleteCredentialsIDParams
WithID adds the id to the delete credentials ID params
func (*DeleteCredentialsIDParams) WithTimeout ¶ added in v0.12.0
func (o *DeleteCredentialsIDParams) WithTimeout(timeout time.Duration) *DeleteCredentialsIDParams
WithTimeout adds the timeout to the delete credentials ID params
func (*DeleteCredentialsIDParams) WriteToRequest ¶ added in v0.12.0
func (o *DeleteCredentialsIDParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type DeleteCredentialsIDReader ¶ added in v0.12.0
type DeleteCredentialsIDReader struct {
// contains filtered or unexported fields
}
DeleteCredentialsIDReader is a Reader for the DeleteCredentialsID structure.
func (*DeleteCredentialsIDReader) ReadResponse ¶ added in v0.12.0
func (o *DeleteCredentialsIDReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type DeleteCredentialsIDUnauthorized ¶ added in v0.12.0
type DeleteCredentialsIDUnauthorized struct {
}DeleteCredentialsIDUnauthorized handles this case with default header values.
Request denied as the provided credentials are no longer valid.
func NewDeleteCredentialsIDUnauthorized ¶ added in v0.12.0
func NewDeleteCredentialsIDUnauthorized() *DeleteCredentialsIDUnauthorized
NewDeleteCredentialsIDUnauthorized creates a DeleteCredentialsIDUnauthorized with default headers values
func (*DeleteCredentialsIDUnauthorized) Error ¶ added in v0.12.0
func (o *DeleteCredentialsIDUnauthorized) Error() string
type DeleteCredentialsIDUnauthorizedBody ¶ added in v0.12.0
type DeleteCredentialsIDUnauthorizedBody struct { // Required: true Message []string `json:"message"` // Required: true Type *string `json:"type"` }
DeleteCredentialsIDUnauthorizedBody delete credentials ID unauthorized body swagger:model DeleteCredentialsIDUnauthorizedBody
type GetCredentialsBadRequest ¶ added in v0.12.0
type GetCredentialsBadRequest struct {
Payload GetCredentialsBadRequestBody
}
GetCredentialsBadRequest handles this case with default header values.
Request denied due to invalid request body, path, or headers.
func NewGetCredentialsBadRequest ¶ added in v0.12.0
func NewGetCredentialsBadRequest() *GetCredentialsBadRequest
NewGetCredentialsBadRequest creates a GetCredentialsBadRequest with default headers values
func (*GetCredentialsBadRequest) Error ¶ added in v0.12.0
func (o *GetCredentialsBadRequest) Error() string
type GetCredentialsBadRequestBody ¶ added in v0.12.0
type GetCredentialsBadRequestBody struct { // Explanation of the errors // Required: true Message []string `json:"message"` // The error type // Required: true Type *string `json:"type"` }
GetCredentialsBadRequestBody get credentials bad request body swagger:model GetCredentialsBadRequestBody
type GetCredentialsInternalServerError ¶ added in v0.12.0
type GetCredentialsInternalServerError struct {
Payload GetCredentialsInternalServerErrorBody
}
GetCredentialsInternalServerError handles this case with default header values.
Request failed due to an internal server error.
func NewGetCredentialsInternalServerError ¶ added in v0.12.0
func NewGetCredentialsInternalServerError() *GetCredentialsInternalServerError
NewGetCredentialsInternalServerError creates a GetCredentialsInternalServerError with default headers values
func (*GetCredentialsInternalServerError) Error ¶ added in v0.12.0
func (o *GetCredentialsInternalServerError) Error() string
type GetCredentialsInternalServerErrorBody ¶ added in v0.12.0
type GetCredentialsInternalServerErrorBody struct { // Explanation of the errors // Required: true Message []string `json:"message"` // The error type // Required: true Type *string `json:"type"` }
GetCredentialsInternalServerErrorBody get credentials internal server error body swagger:model GetCredentialsInternalServerErrorBody
type GetCredentialsNotFound ¶ added in v0.12.0
type GetCredentialsNotFound struct {
Payload GetCredentialsNotFoundBody
}
GetCredentialsNotFound handles this case with default header values.
Request denied as the requested resource does not exist.
func NewGetCredentialsNotFound ¶ added in v0.12.0
func NewGetCredentialsNotFound() *GetCredentialsNotFound
NewGetCredentialsNotFound creates a GetCredentialsNotFound with default headers values
func (*GetCredentialsNotFound) Error ¶ added in v0.12.0
func (o *GetCredentialsNotFound) Error() string
type GetCredentialsNotFoundBody ¶ added in v0.12.0
type GetCredentialsNotFoundBody struct { // Explanation of the errors // Required: true Message []string `json:"message"` // The error type // Required: true Type *string `json:"type"` }
GetCredentialsNotFoundBody get credentials not found body swagger:model GetCredentialsNotFoundBody
type GetCredentialsOK ¶ added in v0.12.0
type GetCredentialsOK struct {
Payload []*models.OAuthCredentialGetResponse
}
GetCredentialsOK handles this case with default header values.
List of OAuth 2.0 credentials.
func NewGetCredentialsOK ¶ added in v0.12.0
func NewGetCredentialsOK() *GetCredentialsOK
NewGetCredentialsOK creates a GetCredentialsOK with default headers values
func (*GetCredentialsOK) Error ¶ added in v0.12.0
func (o *GetCredentialsOK) Error() string
type GetCredentialsParams ¶ added in v0.12.0
type GetCredentialsParams struct { /*ProductID ID of the Product to filter Resources by, stored as a base32 encoded 18 byte identifier. */ ProductID *string /*ProviderID **ALPHA** ID of the Provider to filter Resources by, stored as a base32 encoded 18 byte identifier. */ ProviderID *string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetCredentialsParams contains all the parameters to send to the API endpoint for the get credentials operation typically these are written to a http.Request
func NewGetCredentialsParams ¶ added in v0.12.0
func NewGetCredentialsParams() *GetCredentialsParams
NewGetCredentialsParams creates a new GetCredentialsParams object with the default values initialized.
func NewGetCredentialsParamsWithContext ¶ added in v0.12.0
func NewGetCredentialsParamsWithContext(ctx context.Context) *GetCredentialsParams
NewGetCredentialsParamsWithContext creates a new GetCredentialsParams object with the default values initialized, and the ability to set a context for a request
func NewGetCredentialsParamsWithHTTPClient ¶ added in v0.12.0
func NewGetCredentialsParamsWithHTTPClient(client *http.Client) *GetCredentialsParams
NewGetCredentialsParamsWithHTTPClient creates a new GetCredentialsParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewGetCredentialsParamsWithTimeout ¶ added in v0.12.0
func NewGetCredentialsParamsWithTimeout(timeout time.Duration) *GetCredentialsParams
NewGetCredentialsParamsWithTimeout creates a new GetCredentialsParams object with the default values initialized, and the ability to set a timeout on a request
func (*GetCredentialsParams) SetContext ¶ added in v0.12.0
func (o *GetCredentialsParams) SetContext(ctx context.Context)
SetContext adds the context to the get credentials params
func (*GetCredentialsParams) SetHTTPClient ¶ added in v0.12.0
func (o *GetCredentialsParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get credentials params
func (*GetCredentialsParams) SetProductID ¶ added in v0.12.0
func (o *GetCredentialsParams) SetProductID(productID *string)
SetProductID adds the productId to the get credentials params
func (*GetCredentialsParams) SetProviderID ¶ added in v0.15.2
func (o *GetCredentialsParams) SetProviderID(providerID *string)
SetProviderID adds the providerId to the get credentials params
func (*GetCredentialsParams) SetTimeout ¶ added in v0.12.0
func (o *GetCredentialsParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get credentials params
func (*GetCredentialsParams) WithContext ¶ added in v0.12.0
func (o *GetCredentialsParams) WithContext(ctx context.Context) *GetCredentialsParams
WithContext adds the context to the get credentials params
func (*GetCredentialsParams) WithHTTPClient ¶ added in v0.12.0
func (o *GetCredentialsParams) WithHTTPClient(client *http.Client) *GetCredentialsParams
WithHTTPClient adds the HTTPClient to the get credentials params
func (*GetCredentialsParams) WithProductID ¶ added in v0.12.0
func (o *GetCredentialsParams) WithProductID(productID *string) *GetCredentialsParams
WithProductID adds the productID to the get credentials params
func (*GetCredentialsParams) WithProviderID ¶ added in v0.15.2
func (o *GetCredentialsParams) WithProviderID(providerID *string) *GetCredentialsParams
WithProviderID adds the providerID to the get credentials params
func (*GetCredentialsParams) WithTimeout ¶ added in v0.12.0
func (o *GetCredentialsParams) WithTimeout(timeout time.Duration) *GetCredentialsParams
WithTimeout adds the timeout to the get credentials params
func (*GetCredentialsParams) WriteToRequest ¶ added in v0.12.0
func (o *GetCredentialsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetCredentialsReader ¶ added in v0.12.0
type GetCredentialsReader struct {
// contains filtered or unexported fields
}
GetCredentialsReader is a Reader for the GetCredentials structure.
func (*GetCredentialsReader) ReadResponse ¶ added in v0.12.0
func (o *GetCredentialsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetCredentialsUnauthorized ¶ added in v0.12.0
type GetCredentialsUnauthorized struct {
}GetCredentialsUnauthorized handles this case with default header values.
Request denied as the provided credentials are no longer valid.
func NewGetCredentialsUnauthorized ¶ added in v0.12.0
func NewGetCredentialsUnauthorized() *GetCredentialsUnauthorized
NewGetCredentialsUnauthorized creates a GetCredentialsUnauthorized with default headers values
func (*GetCredentialsUnauthorized) Error ¶ added in v0.12.0
func (o *GetCredentialsUnauthorized) Error() string
type GetCredentialsUnauthorizedBody ¶ added in v0.12.0
type GetCredentialsUnauthorizedBody struct { // Required: true Message []string `json:"message"` // Required: true Type *string `json:"type"` }
GetCredentialsUnauthorizedBody get credentials unauthorized body swagger:model GetCredentialsUnauthorizedBody
type GetSelfBadRequest ¶
type GetSelfBadRequest struct {
Payload GetSelfBadRequestBody
}
GetSelfBadRequest handles this case with default header values.
Request denied due to invalid request body, path, or headers.
func NewGetSelfBadRequest ¶
func NewGetSelfBadRequest() *GetSelfBadRequest
NewGetSelfBadRequest creates a GetSelfBadRequest with default headers values
func (*GetSelfBadRequest) Error ¶
func (o *GetSelfBadRequest) Error() string
type GetSelfBadRequestBody ¶
type GetSelfBadRequestBody struct { // Explanation of the errors // Required: true Message []string `json:"message"` // The error type // Required: true Type *string `json:"type"` }
GetSelfBadRequestBody get self bad request body swagger:model GetSelfBadRequestBody
type GetSelfInternalServerError ¶
type GetSelfInternalServerError struct {
Payload GetSelfInternalServerErrorBody
}
GetSelfInternalServerError handles this case with default header values.
Request failed due to an internal server error.
func NewGetSelfInternalServerError ¶
func NewGetSelfInternalServerError() *GetSelfInternalServerError
NewGetSelfInternalServerError creates a GetSelfInternalServerError with default headers values
func (*GetSelfInternalServerError) Error ¶
func (o *GetSelfInternalServerError) Error() string
type GetSelfInternalServerErrorBody ¶
type GetSelfInternalServerErrorBody struct { // Explanation of the errors // Required: true Message []string `json:"message"` // The error type // Required: true Type *string `json:"type"` }
GetSelfInternalServerErrorBody get self internal server error body swagger:model GetSelfInternalServerErrorBody
type GetSelfOK ¶
GetSelfOK handles this case with default header values.
The identity of the user, provider or product represented by the access token.
func NewGetSelfOK ¶
func NewGetSelfOK() *GetSelfOK
NewGetSelfOK creates a GetSelfOK with default headers values
type GetSelfParams ¶
type GetSelfParams struct { Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetSelfParams contains all the parameters to send to the API endpoint for the get self operation typically these are written to a http.Request
func NewGetSelfParams ¶
func NewGetSelfParams() *GetSelfParams
NewGetSelfParams creates a new GetSelfParams object with the default values initialized.
func NewGetSelfParamsWithContext ¶
func NewGetSelfParamsWithContext(ctx context.Context) *GetSelfParams
NewGetSelfParamsWithContext creates a new GetSelfParams object with the default values initialized, and the ability to set a context for a request
func NewGetSelfParamsWithHTTPClient ¶
func NewGetSelfParamsWithHTTPClient(client *http.Client) *GetSelfParams
NewGetSelfParamsWithHTTPClient creates a new GetSelfParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewGetSelfParamsWithTimeout ¶
func NewGetSelfParamsWithTimeout(timeout time.Duration) *GetSelfParams
NewGetSelfParamsWithTimeout creates a new GetSelfParams object with the default values initialized, and the ability to set a timeout on a request
func (*GetSelfParams) SetContext ¶
func (o *GetSelfParams) SetContext(ctx context.Context)
SetContext adds the context to the get self params
func (*GetSelfParams) SetHTTPClient ¶
func (o *GetSelfParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get self params
func (*GetSelfParams) SetTimeout ¶
func (o *GetSelfParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get self params
func (*GetSelfParams) WithContext ¶
func (o *GetSelfParams) WithContext(ctx context.Context) *GetSelfParams
WithContext adds the context to the get self params
func (*GetSelfParams) WithHTTPClient ¶
func (o *GetSelfParams) WithHTTPClient(client *http.Client) *GetSelfParams
WithHTTPClient adds the HTTPClient to the get self params
func (*GetSelfParams) WithTimeout ¶
func (o *GetSelfParams) WithTimeout(timeout time.Duration) *GetSelfParams
WithTimeout adds the timeout to the get self params
func (*GetSelfParams) WriteToRequest ¶
func (o *GetSelfParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetSelfReader ¶
type GetSelfReader struct {
// contains filtered or unexported fields
}
GetSelfReader is a Reader for the GetSelf structure.
func (*GetSelfReader) ReadResponse ¶
func (o *GetSelfReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetSelfUnauthorized ¶
type GetSelfUnauthorized struct {
}GetSelfUnauthorized handles this case with default header values.
Request denied as the provided credentials are no longer valid.
func NewGetSelfUnauthorized ¶
func NewGetSelfUnauthorized() *GetSelfUnauthorized
NewGetSelfUnauthorized creates a GetSelfUnauthorized with default headers values
func (*GetSelfUnauthorized) Error ¶
func (o *GetSelfUnauthorized) Error() string
type GetSelfUnauthorizedBody ¶
type GetSelfUnauthorizedBody struct { // Required: true Message []string `json:"message"` // Required: true Type *string `json:"type"` }
GetSelfUnauthorizedBody get self unauthorized body swagger:model GetSelfUnauthorizedBody
type PostCredentialsBadRequest ¶
type PostCredentialsBadRequest struct {
Payload PostCredentialsBadRequestBody
}
PostCredentialsBadRequest handles this case with default header values.
Request denied due to invalid request body, path, or headers.
func NewPostCredentialsBadRequest ¶
func NewPostCredentialsBadRequest() *PostCredentialsBadRequest
NewPostCredentialsBadRequest creates a PostCredentialsBadRequest with default headers values
func (*PostCredentialsBadRequest) Error ¶
func (o *PostCredentialsBadRequest) Error() string
type PostCredentialsBadRequestBody ¶
type PostCredentialsBadRequestBody struct { // Explanation of the errors // Required: true Message []string `json:"message"` // The error type // Required: true Type *string `json:"type"` }
PostCredentialsBadRequestBody post credentials bad request body swagger:model PostCredentialsBadRequestBody
type PostCredentialsInternalServerError ¶
type PostCredentialsInternalServerError struct {
Payload PostCredentialsInternalServerErrorBody
}
PostCredentialsInternalServerError handles this case with default header values.
Request failed due to an internal server error.
func NewPostCredentialsInternalServerError ¶
func NewPostCredentialsInternalServerError() *PostCredentialsInternalServerError
NewPostCredentialsInternalServerError creates a PostCredentialsInternalServerError with default headers values
func (*PostCredentialsInternalServerError) Error ¶
func (o *PostCredentialsInternalServerError) Error() string
type PostCredentialsInternalServerErrorBody ¶
type PostCredentialsInternalServerErrorBody struct { // Explanation of the errors // Required: true Message []string `json:"message"` // The error type // Required: true Type *string `json:"type"` }
PostCredentialsInternalServerErrorBody post credentials internal server error body swagger:model PostCredentialsInternalServerErrorBody
type PostCredentialsNotFound ¶
type PostCredentialsNotFound struct {
Payload PostCredentialsNotFoundBody
}
PostCredentialsNotFound handles this case with default header values.
Request denied as the requested resource does not exist.
func NewPostCredentialsNotFound ¶
func NewPostCredentialsNotFound() *PostCredentialsNotFound
NewPostCredentialsNotFound creates a PostCredentialsNotFound with default headers values
func (*PostCredentialsNotFound) Error ¶
func (o *PostCredentialsNotFound) Error() string
type PostCredentialsNotFoundBody ¶
type PostCredentialsNotFoundBody struct { // Explanation of the errors // Required: true Message []string `json:"message"` // The error type // Required: true Type *string `json:"type"` }
PostCredentialsNotFoundBody post credentials not found body swagger:model PostCredentialsNotFoundBody
type PostCredentialsOK ¶
type PostCredentialsOK struct {
Payload *models.OAuthCredentialCreateResponse
}
PostCredentialsOK handles this case with default header values.
The created OAuth 2.0 credential pair.
func NewPostCredentialsOK ¶
func NewPostCredentialsOK() *PostCredentialsOK
NewPostCredentialsOK creates a PostCredentialsOK with default headers values
func (*PostCredentialsOK) Error ¶
func (o *PostCredentialsOK) Error() string
type PostCredentialsParams ¶
type PostCredentialsParams struct { /*Body Scoping details of the credentials (provider_id or product_id) as well as a description for the credential pair. */ Body *models.OAuthCredentialCreateRequest Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
PostCredentialsParams contains all the parameters to send to the API endpoint for the post credentials operation typically these are written to a http.Request
func NewPostCredentialsParams ¶
func NewPostCredentialsParams() *PostCredentialsParams
NewPostCredentialsParams creates a new PostCredentialsParams object with the default values initialized.
func NewPostCredentialsParamsWithContext ¶
func NewPostCredentialsParamsWithContext(ctx context.Context) *PostCredentialsParams
NewPostCredentialsParamsWithContext creates a new PostCredentialsParams object with the default values initialized, and the ability to set a context for a request
func NewPostCredentialsParamsWithHTTPClient ¶
func NewPostCredentialsParamsWithHTTPClient(client *http.Client) *PostCredentialsParams
NewPostCredentialsParamsWithHTTPClient creates a new PostCredentialsParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewPostCredentialsParamsWithTimeout ¶
func NewPostCredentialsParamsWithTimeout(timeout time.Duration) *PostCredentialsParams
NewPostCredentialsParamsWithTimeout creates a new PostCredentialsParams object with the default values initialized, and the ability to set a timeout on a request
func (*PostCredentialsParams) SetBody ¶
func (o *PostCredentialsParams) SetBody(body *models.OAuthCredentialCreateRequest)
SetBody adds the body to the post credentials params
func (*PostCredentialsParams) SetContext ¶
func (o *PostCredentialsParams) SetContext(ctx context.Context)
SetContext adds the context to the post credentials params
func (*PostCredentialsParams) SetHTTPClient ¶
func (o *PostCredentialsParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the post credentials params
func (*PostCredentialsParams) SetTimeout ¶
func (o *PostCredentialsParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the post credentials params
func (*PostCredentialsParams) WithBody ¶
func (o *PostCredentialsParams) WithBody(body *models.OAuthCredentialCreateRequest) *PostCredentialsParams
WithBody adds the body to the post credentials params
func (*PostCredentialsParams) WithContext ¶
func (o *PostCredentialsParams) WithContext(ctx context.Context) *PostCredentialsParams
WithContext adds the context to the post credentials params
func (*PostCredentialsParams) WithHTTPClient ¶
func (o *PostCredentialsParams) WithHTTPClient(client *http.Client) *PostCredentialsParams
WithHTTPClient adds the HTTPClient to the post credentials params
func (*PostCredentialsParams) WithTimeout ¶
func (o *PostCredentialsParams) WithTimeout(timeout time.Duration) *PostCredentialsParams
WithTimeout adds the timeout to the post credentials params
func (*PostCredentialsParams) WriteToRequest ¶
func (o *PostCredentialsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type PostCredentialsReader ¶
type PostCredentialsReader struct {
// contains filtered or unexported fields
}
PostCredentialsReader is a Reader for the PostCredentials structure.
func (*PostCredentialsReader) ReadResponse ¶
func (o *PostCredentialsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type PostCredentialsUnauthorized ¶
type PostCredentialsUnauthorized struct {
}PostCredentialsUnauthorized handles this case with default header values.
Request denied as the provided credentials are no longer valid.
func NewPostCredentialsUnauthorized ¶
func NewPostCredentialsUnauthorized() *PostCredentialsUnauthorized
NewPostCredentialsUnauthorized creates a PostCredentialsUnauthorized with default headers values
func (*PostCredentialsUnauthorized) Error ¶
func (o *PostCredentialsUnauthorized) Error() string
type PostCredentialsUnauthorizedBody ¶
type PostCredentialsUnauthorizedBody struct { // Required: true Message []string `json:"message"` // Required: true Type *string `json:"type"` }
PostCredentialsUnauthorizedBody post credentials unauthorized body swagger:model PostCredentialsUnauthorizedBody
type PostOauthTokensBadRequest ¶
type PostOauthTokensBadRequest struct {
Payload PostOauthTokensBadRequestBody
}
PostOauthTokensBadRequest handles this case with default header values.
Request denied due to invalid request body, path, or headers.
func NewPostOauthTokensBadRequest ¶
func NewPostOauthTokensBadRequest() *PostOauthTokensBadRequest
NewPostOauthTokensBadRequest creates a PostOauthTokensBadRequest with default headers values
func (*PostOauthTokensBadRequest) Error ¶
func (o *PostOauthTokensBadRequest) Error() string
type PostOauthTokensBadRequestBody ¶
type PostOauthTokensBadRequestBody struct { // The error type // Required: true Error *string `json:"error"` // Explanation of the error // Required: true ErrorDescription *string `json:"error_description"` }
PostOauthTokensBadRequestBody post oauth tokens bad request body swagger:model PostOauthTokensBadRequestBody
type PostOauthTokensCreated ¶
type PostOauthTokensCreated struct {
Payload *models.AccessToken
}
PostOauthTokensCreated handles this case with default header values.
An access token has been created
func NewPostOauthTokensCreated ¶
func NewPostOauthTokensCreated() *PostOauthTokensCreated
NewPostOauthTokensCreated creates a PostOauthTokensCreated with default headers values
func (*PostOauthTokensCreated) Error ¶
func (o *PostOauthTokensCreated) Error() string
type PostOauthTokensInternalServerError ¶
type PostOauthTokensInternalServerError struct {
Payload PostOauthTokensInternalServerErrorBody
}
PostOauthTokensInternalServerError handles this case with default header values.
Request failed due to an internal server error.
func NewPostOauthTokensInternalServerError ¶
func NewPostOauthTokensInternalServerError() *PostOauthTokensInternalServerError
NewPostOauthTokensInternalServerError creates a PostOauthTokensInternalServerError with default headers values
func (*PostOauthTokensInternalServerError) Error ¶
func (o *PostOauthTokensInternalServerError) Error() string
type PostOauthTokensInternalServerErrorBody ¶
type PostOauthTokensInternalServerErrorBody struct { // Explanation of the errors // Required: true Message []string `json:"message"` // The error type // Required: true Type *string `json:"type"` }
PostOauthTokensInternalServerErrorBody post oauth tokens internal server error body swagger:model PostOauthTokensInternalServerErrorBody
type PostOauthTokensParams ¶
type PostOauthTokensParams struct { /*Authorization Authorization header for basic access authentication containing the OAuth2 `client_id` as user name, and OAuth2 `client_secret` as password. The `client_id` and `client_secret` may be passed either in the body of the request, or in this header. Using this header is the **preferred** way to transmit `client_id` and `client_secret`. */ Authorization *string /*Body OAuth Access Token Request Body */ Body models.AccessTokenRequest Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
PostOauthTokensParams contains all the parameters to send to the API endpoint for the post oauth tokens operation typically these are written to a http.Request
func NewPostOauthTokensParams ¶
func NewPostOauthTokensParams() *PostOauthTokensParams
NewPostOauthTokensParams creates a new PostOauthTokensParams object with the default values initialized.
func NewPostOauthTokensParamsWithContext ¶
func NewPostOauthTokensParamsWithContext(ctx context.Context) *PostOauthTokensParams
NewPostOauthTokensParamsWithContext creates a new PostOauthTokensParams object with the default values initialized, and the ability to set a context for a request
func NewPostOauthTokensParamsWithHTTPClient ¶
func NewPostOauthTokensParamsWithHTTPClient(client *http.Client) *PostOauthTokensParams
NewPostOauthTokensParamsWithHTTPClient creates a new PostOauthTokensParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewPostOauthTokensParamsWithTimeout ¶
func NewPostOauthTokensParamsWithTimeout(timeout time.Duration) *PostOauthTokensParams
NewPostOauthTokensParamsWithTimeout creates a new PostOauthTokensParams object with the default values initialized, and the ability to set a timeout on a request
func (*PostOauthTokensParams) SetAuthorization ¶
func (o *PostOauthTokensParams) SetAuthorization(authorization *string)
SetAuthorization adds the authorization to the post oauth tokens params
func (*PostOauthTokensParams) SetBody ¶
func (o *PostOauthTokensParams) SetBody(body models.AccessTokenRequest)
SetBody adds the body to the post oauth tokens params
func (*PostOauthTokensParams) SetContext ¶
func (o *PostOauthTokensParams) SetContext(ctx context.Context)
SetContext adds the context to the post oauth tokens params
func (*PostOauthTokensParams) SetHTTPClient ¶
func (o *PostOauthTokensParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the post oauth tokens params
func (*PostOauthTokensParams) SetTimeout ¶
func (o *PostOauthTokensParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the post oauth tokens params
func (*PostOauthTokensParams) WithAuthorization ¶
func (o *PostOauthTokensParams) WithAuthorization(authorization *string) *PostOauthTokensParams
WithAuthorization adds the authorization to the post oauth tokens params
func (*PostOauthTokensParams) WithBody ¶
func (o *PostOauthTokensParams) WithBody(body models.AccessTokenRequest) *PostOauthTokensParams
WithBody adds the body to the post oauth tokens params
func (*PostOauthTokensParams) WithContext ¶
func (o *PostOauthTokensParams) WithContext(ctx context.Context) *PostOauthTokensParams
WithContext adds the context to the post oauth tokens params
func (*PostOauthTokensParams) WithHTTPClient ¶
func (o *PostOauthTokensParams) WithHTTPClient(client *http.Client) *PostOauthTokensParams
WithHTTPClient adds the HTTPClient to the post oauth tokens params
func (*PostOauthTokensParams) WithTimeout ¶
func (o *PostOauthTokensParams) WithTimeout(timeout time.Duration) *PostOauthTokensParams
WithTimeout adds the timeout to the post oauth tokens params
func (*PostOauthTokensParams) WriteToRequest ¶
func (o *PostOauthTokensParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type PostOauthTokensReader ¶
type PostOauthTokensReader struct {
// contains filtered or unexported fields
}
PostOauthTokensReader is a Reader for the PostOauthTokens structure.
func (*PostOauthTokensReader) ReadResponse ¶
func (o *PostOauthTokensReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type PostOauthTokensUnauthorized ¶
type PostOauthTokensUnauthorized struct {
}PostOauthTokensUnauthorized handles this case with default header values.
Request denied as the provided credentials are no longer valid.
func NewPostOauthTokensUnauthorized ¶
func NewPostOauthTokensUnauthorized() *PostOauthTokensUnauthorized
NewPostOauthTokensUnauthorized creates a PostOauthTokensUnauthorized with default headers values
func (*PostOauthTokensUnauthorized) Error ¶
func (o *PostOauthTokensUnauthorized) Error() string
type PostOauthTokensUnauthorizedBody ¶
type PostOauthTokensUnauthorizedBody struct { // Required: true Error *string `json:"error"` // Required: true ErrorDescription *string `json:"error_description"` }
PostOauthTokensUnauthorizedBody post oauth tokens unauthorized body swagger:model PostOauthTokensUnauthorizedBody
Source Files ¶
- delete_credentials_id_parameters.go
- delete_credentials_id_responses.go
- get_credentials_parameters.go
- get_credentials_responses.go
- get_self_parameters.go
- get_self_responses.go
- o_auth_client.go
- post_credentials_parameters.go
- post_credentials_responses.go
- post_oauth_tokens_parameters.go
- post_oauth_tokens_responses.go