o_auth

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2018 License: BSD-3-Clause Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// DeleteCredentialsIDBadRequestBodyTypeBadRequest captures enum value "bad_request"
	DeleteCredentialsIDBadRequestBodyTypeBadRequest string = "bad_request"
	// DeleteCredentialsIDBadRequestBodyTypeUnauthorized captures enum value "unauthorized"
	DeleteCredentialsIDBadRequestBodyTypeUnauthorized string = "unauthorized"
	// DeleteCredentialsIDBadRequestBodyTypeNotFound captures enum value "not_found"
	DeleteCredentialsIDBadRequestBodyTypeNotFound string = "not_found"
	// 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"
)
View Source
const (
	// DeleteCredentialsIDInternalServerErrorBodyTypeBadRequest captures enum value "bad_request"
	DeleteCredentialsIDInternalServerErrorBodyTypeBadRequest string = "bad_request"
	// DeleteCredentialsIDInternalServerErrorBodyTypeUnauthorized captures enum value "unauthorized"
	DeleteCredentialsIDInternalServerErrorBodyTypeUnauthorized string = "unauthorized"
	// DeleteCredentialsIDInternalServerErrorBodyTypeNotFound captures enum value "not_found"
	DeleteCredentialsIDInternalServerErrorBodyTypeNotFound string = "not_found"
	// 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"
)
View Source
const (
	// DeleteCredentialsIDNotFoundBodyTypeBadRequest captures enum value "bad_request"
	DeleteCredentialsIDNotFoundBodyTypeBadRequest string = "bad_request"
	// DeleteCredentialsIDNotFoundBodyTypeUnauthorized captures enum value "unauthorized"
	DeleteCredentialsIDNotFoundBodyTypeUnauthorized string = "unauthorized"
	// DeleteCredentialsIDNotFoundBodyTypeNotFound captures enum value "not_found"
	DeleteCredentialsIDNotFoundBodyTypeNotFound string = "not_found"
	// 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"
)
View Source
const (
	// DeleteCredentialsIDUnauthorizedBodyTypeBadRequest captures enum value "bad_request"
	DeleteCredentialsIDUnauthorizedBodyTypeBadRequest string = "bad_request"
	// DeleteCredentialsIDUnauthorizedBodyTypeUnauthorized captures enum value "unauthorized"
	DeleteCredentialsIDUnauthorizedBodyTypeUnauthorized string = "unauthorized"
	// DeleteCredentialsIDUnauthorizedBodyTypeNotFound captures enum value "not_found"
	DeleteCredentialsIDUnauthorizedBodyTypeNotFound string = "not_found"
	// DeleteCredentialsIDUnauthorizedBodyTypeInternal captures enum value "internal"
	DeleteCredentialsIDUnauthorizedBodyTypeInternal string = "internal"
	// DeleteCredentialsIDUnauthorizedBodyTypeInvalidGrant captures enum value "invalid_grant"
	DeleteCredentialsIDUnauthorizedBodyTypeInvalidGrant string = "invalid_grant"
	// DeleteCredentialsIDUnauthorizedBodyTypeUnsupportedGrantType captures enum value "unsupported_grant_type"
	DeleteCredentialsIDUnauthorizedBodyTypeUnsupportedGrantType string = "unsupported_grant_type"
)
View Source
const (
	// GetCredentialsBadRequestBodyTypeBadRequest captures enum value "bad_request"
	GetCredentialsBadRequestBodyTypeBadRequest string = "bad_request"
	// GetCredentialsBadRequestBodyTypeUnauthorized captures enum value "unauthorized"
	GetCredentialsBadRequestBodyTypeUnauthorized string = "unauthorized"
	// GetCredentialsBadRequestBodyTypeNotFound captures enum value "not_found"
	GetCredentialsBadRequestBodyTypeNotFound string = "not_found"
	// 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"
)
View Source
const (
	// GetCredentialsInternalServerErrorBodyTypeBadRequest captures enum value "bad_request"
	GetCredentialsInternalServerErrorBodyTypeBadRequest string = "bad_request"
	// GetCredentialsInternalServerErrorBodyTypeUnauthorized captures enum value "unauthorized"
	GetCredentialsInternalServerErrorBodyTypeUnauthorized string = "unauthorized"
	// GetCredentialsInternalServerErrorBodyTypeNotFound captures enum value "not_found"
	GetCredentialsInternalServerErrorBodyTypeNotFound string = "not_found"
	// 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"
)
View Source
const (
	// GetCredentialsNotFoundBodyTypeBadRequest captures enum value "bad_request"
	GetCredentialsNotFoundBodyTypeBadRequest string = "bad_request"
	// GetCredentialsNotFoundBodyTypeUnauthorized captures enum value "unauthorized"
	GetCredentialsNotFoundBodyTypeUnauthorized string = "unauthorized"
	// GetCredentialsNotFoundBodyTypeNotFound captures enum value "not_found"
	GetCredentialsNotFoundBodyTypeNotFound string = "not_found"
	// 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"
)
View Source
const (
	// GetCredentialsUnauthorizedBodyTypeBadRequest captures enum value "bad_request"
	GetCredentialsUnauthorizedBodyTypeBadRequest string = "bad_request"
	// GetCredentialsUnauthorizedBodyTypeUnauthorized captures enum value "unauthorized"
	GetCredentialsUnauthorizedBodyTypeUnauthorized string = "unauthorized"
	// GetCredentialsUnauthorizedBodyTypeNotFound captures enum value "not_found"
	GetCredentialsUnauthorizedBodyTypeNotFound string = "not_found"
	// GetCredentialsUnauthorizedBodyTypeInternal captures enum value "internal"
	GetCredentialsUnauthorizedBodyTypeInternal string = "internal"
	// GetCredentialsUnauthorizedBodyTypeInvalidGrant captures enum value "invalid_grant"
	GetCredentialsUnauthorizedBodyTypeInvalidGrant string = "invalid_grant"
	// GetCredentialsUnauthorizedBodyTypeUnsupportedGrantType captures enum value "unsupported_grant_type"
	GetCredentialsUnauthorizedBodyTypeUnsupportedGrantType string = "unsupported_grant_type"
)
View Source
const (
	// GetSelfBadRequestBodyTypeBadRequest captures enum value "bad_request"
	GetSelfBadRequestBodyTypeBadRequest string = "bad_request"
	// GetSelfBadRequestBodyTypeUnauthorized captures enum value "unauthorized"
	GetSelfBadRequestBodyTypeUnauthorized string = "unauthorized"
	// GetSelfBadRequestBodyTypeNotFound captures enum value "not_found"
	GetSelfBadRequestBodyTypeNotFound string = "not_found"
	// 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"
)
View Source
const (
	// GetSelfInternalServerErrorBodyTypeBadRequest captures enum value "bad_request"
	GetSelfInternalServerErrorBodyTypeBadRequest string = "bad_request"
	// GetSelfInternalServerErrorBodyTypeUnauthorized captures enum value "unauthorized"
	GetSelfInternalServerErrorBodyTypeUnauthorized string = "unauthorized"
	// GetSelfInternalServerErrorBodyTypeNotFound captures enum value "not_found"
	GetSelfInternalServerErrorBodyTypeNotFound string = "not_found"
	// 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"
)
View Source
const (
	// GetSelfUnauthorizedBodyTypeBadRequest captures enum value "bad_request"
	GetSelfUnauthorizedBodyTypeBadRequest string = "bad_request"
	// GetSelfUnauthorizedBodyTypeUnauthorized captures enum value "unauthorized"
	GetSelfUnauthorizedBodyTypeUnauthorized string = "unauthorized"
	// GetSelfUnauthorizedBodyTypeNotFound captures enum value "not_found"
	GetSelfUnauthorizedBodyTypeNotFound string = "not_found"
	// GetSelfUnauthorizedBodyTypeInternal captures enum value "internal"
	GetSelfUnauthorizedBodyTypeInternal string = "internal"
	// GetSelfUnauthorizedBodyTypeInvalidGrant captures enum value "invalid_grant"
	GetSelfUnauthorizedBodyTypeInvalidGrant string = "invalid_grant"
	// GetSelfUnauthorizedBodyTypeUnsupportedGrantType captures enum value "unsupported_grant_type"
	GetSelfUnauthorizedBodyTypeUnsupportedGrantType string = "unsupported_grant_type"
)
View Source
const (
	// PostCredentialsBadRequestBodyTypeBadRequest captures enum value "bad_request"
	PostCredentialsBadRequestBodyTypeBadRequest string = "bad_request"
	// PostCredentialsBadRequestBodyTypeUnauthorized captures enum value "unauthorized"
	PostCredentialsBadRequestBodyTypeUnauthorized string = "unauthorized"
	// PostCredentialsBadRequestBodyTypeNotFound captures enum value "not_found"
	PostCredentialsBadRequestBodyTypeNotFound string = "not_found"
	// 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"
)
View Source
const (
	// PostCredentialsInternalServerErrorBodyTypeBadRequest captures enum value "bad_request"
	PostCredentialsInternalServerErrorBodyTypeBadRequest string = "bad_request"
	// PostCredentialsInternalServerErrorBodyTypeUnauthorized captures enum value "unauthorized"
	PostCredentialsInternalServerErrorBodyTypeUnauthorized string = "unauthorized"
	// PostCredentialsInternalServerErrorBodyTypeNotFound captures enum value "not_found"
	PostCredentialsInternalServerErrorBodyTypeNotFound string = "not_found"
	// 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"
)
View Source
const (
	// PostCredentialsNotFoundBodyTypeBadRequest captures enum value "bad_request"
	PostCredentialsNotFoundBodyTypeBadRequest string = "bad_request"
	// PostCredentialsNotFoundBodyTypeUnauthorized captures enum value "unauthorized"
	PostCredentialsNotFoundBodyTypeUnauthorized string = "unauthorized"
	// PostCredentialsNotFoundBodyTypeNotFound captures enum value "not_found"
	PostCredentialsNotFoundBodyTypeNotFound string = "not_found"
	// 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"
)
View Source
const (
	// PostCredentialsUnauthorizedBodyTypeBadRequest captures enum value "bad_request"
	PostCredentialsUnauthorizedBodyTypeBadRequest string = "bad_request"
	// PostCredentialsUnauthorizedBodyTypeUnauthorized captures enum value "unauthorized"
	PostCredentialsUnauthorizedBodyTypeUnauthorized string = "unauthorized"
	// PostCredentialsUnauthorizedBodyTypeNotFound captures enum value "not_found"
	PostCredentialsUnauthorizedBodyTypeNotFound string = "not_found"
	// PostCredentialsUnauthorizedBodyTypeInternal captures enum value "internal"
	PostCredentialsUnauthorizedBodyTypeInternal string = "internal"
	// PostCredentialsUnauthorizedBodyTypeInvalidGrant captures enum value "invalid_grant"
	PostCredentialsUnauthorizedBodyTypeInvalidGrant string = "invalid_grant"
	// PostCredentialsUnauthorizedBodyTypeUnsupportedGrantType captures enum value "unsupported_grant_type"
	PostCredentialsUnauthorizedBodyTypeUnsupportedGrantType string = "unsupported_grant_type"
)
View Source
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 captures enum value "unauthorized_client"
	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"
)
View Source
const (
	// PostOauthTokensInternalServerErrorBodyTypeBadRequest captures enum value "bad_request"
	PostOauthTokensInternalServerErrorBodyTypeBadRequest string = "bad_request"
	// PostOauthTokensInternalServerErrorBodyTypeUnauthorized captures enum value "unauthorized"
	PostOauthTokensInternalServerErrorBodyTypeUnauthorized string = "unauthorized"
	// PostOauthTokensInternalServerErrorBodyTypeNotFound captures enum value "not_found"
	PostOauthTokensInternalServerErrorBodyTypeNotFound string = "not_found"
	// 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"
)
View Source
const (
	// PostOauthTokensUnauthorizedBodyErrorInvalidRequest captures enum value "invalid_request"
	PostOauthTokensUnauthorizedBodyErrorInvalidRequest string = "invalid_request"
	// PostOauthTokensUnauthorizedBodyErrorInvalidClient captures enum value "invalid_client"
	PostOauthTokensUnauthorizedBodyErrorInvalidClient string = "invalid_client"
	// PostOauthTokensUnauthorizedBodyErrorInvalidGrant captures enum value "invalid_grant"
	PostOauthTokensUnauthorizedBodyErrorInvalidGrant string = "invalid_grant"
	// PostOauthTokensUnauthorizedBodyErrorUnauthorizedClient captures enum value "unauthorized_client"
	PostOauthTokensUnauthorizedBodyErrorUnauthorizedClient string = "unauthorized_client"
	// PostOauthTokensUnauthorizedBodyErrorUnsupportedGrantType captures enum value "unsupported_grant_type"
	PostOauthTokensUnauthorizedBodyErrorUnsupportedGrantType string = "unsupported_grant_type"
	// PostOauthTokensUnauthorizedBodyErrorInvalidScope captures enum value "invalid_scope"
	PostOauthTokensUnauthorizedBodyErrorInvalidScope string = "invalid_scope"
	// PostOauthTokensUnauthorizedBodyErrorAccessDenied captures enum value "access_denied"
	PostOauthTokensUnauthorizedBodyErrorAccessDenied string = "access_denied"
)
View Source
const (
	// PostSsoBadRequestBodyTypeBadRequest captures enum value "bad_request"
	PostSsoBadRequestBodyTypeBadRequest string = "bad_request"
	// PostSsoBadRequestBodyTypeUnauthorized captures enum value "unauthorized"
	PostSsoBadRequestBodyTypeUnauthorized string = "unauthorized"
	// PostSsoBadRequestBodyTypeNotFound captures enum value "not_found"
	PostSsoBadRequestBodyTypeNotFound string = "not_found"
	// PostSsoBadRequestBodyTypeInternal captures enum value "internal"
	PostSsoBadRequestBodyTypeInternal string = "internal"
	// PostSsoBadRequestBodyTypeInvalidGrant captures enum value "invalid_grant"
	PostSsoBadRequestBodyTypeInvalidGrant string = "invalid_grant"
	// PostSsoBadRequestBodyTypeUnsupportedGrantType captures enum value "unsupported_grant_type"
	PostSsoBadRequestBodyTypeUnsupportedGrantType string = "unsupported_grant_type"
)
View Source
const (
	// PostSsoInternalServerErrorBodyTypeBadRequest captures enum value "bad_request"
	PostSsoInternalServerErrorBodyTypeBadRequest string = "bad_request"
	// PostSsoInternalServerErrorBodyTypeUnauthorized captures enum value "unauthorized"
	PostSsoInternalServerErrorBodyTypeUnauthorized string = "unauthorized"
	// PostSsoInternalServerErrorBodyTypeNotFound captures enum value "not_found"
	PostSsoInternalServerErrorBodyTypeNotFound string = "not_found"
	// PostSsoInternalServerErrorBodyTypeInternal captures enum value "internal"
	PostSsoInternalServerErrorBodyTypeInternal string = "internal"
	// PostSsoInternalServerErrorBodyTypeInvalidGrant captures enum value "invalid_grant"
	PostSsoInternalServerErrorBodyTypeInvalidGrant string = "invalid_grant"
	// PostSsoInternalServerErrorBodyTypeUnsupportedGrantType captures enum value "unsupported_grant_type"
	PostSsoInternalServerErrorBodyTypeUnsupportedGrantType string = "unsupported_grant_type"
)
View Source
const (
	// PostSsoUnauthorizedBodyTypeBadRequest captures enum value "bad_request"
	PostSsoUnauthorizedBodyTypeBadRequest string = "bad_request"
	// PostSsoUnauthorizedBodyTypeUnauthorized captures enum value "unauthorized"
	PostSsoUnauthorizedBodyTypeUnauthorized string = "unauthorized"
	// PostSsoUnauthorizedBodyTypeNotFound captures enum value "not_found"
	PostSsoUnauthorizedBodyTypeNotFound string = "not_found"
	// PostSsoUnauthorizedBodyTypeInternal captures enum value "internal"
	PostSsoUnauthorizedBodyTypeInternal string = "internal"
	// PostSsoUnauthorizedBodyTypeInvalidGrant captures enum value "invalid_grant"
	PostSsoUnauthorizedBodyTypeInvalidGrant string = "invalid_grant"
	// PostSsoUnauthorizedBodyTypeUnsupportedGrantType captures enum value "unsupported_grant_type"
	PostSsoUnauthorizedBodyTypeUnsupportedGrantType string = "unsupported_grant_type"
)

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

DeleteCredentialsID deletes an o auth credential pair

Delete an OAuth 2.0 credential pair for a provider's product.

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. This does **not** return the secret.

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` |

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's product. `client_secret` is stored as an `scrypt` hash only; if the value is lost after creation, it cannot be recovered.

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 scoped to a product.

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

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

func (*DeleteCredentialsIDBadRequestBody) Validate added in v0.12.0

Validate validates this delete credentials ID bad request body

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

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

func (*DeleteCredentialsIDInternalServerErrorBody) Validate added in v0.12.0

Validate validates this delete credentials ID internal server error body

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

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

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

func (*DeleteCredentialsIDNotFoundBody) Validate added in v0.12.0

Validate validates this delete credentials ID not found body

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

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

WithID adds the id to the delete credentials ID params

func (*DeleteCredentialsIDParams) WithTimeout added in v0.12.0

WithTimeout adds the timeout to the delete credentials ID params

func (*DeleteCredentialsIDParams) WriteToRequest added in v0.12.0

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 {
	Payload DeleteCredentialsIDUnauthorizedBody
}

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

type DeleteCredentialsIDUnauthorizedBody added in v0.12.0

type DeleteCredentialsIDUnauthorizedBody struct {

	// Explanation of the errors
	// Required: true
	Message []string `json:"message"`

	// The error type
	// Required: true
	Type *string `json:"type"`
}

DeleteCredentialsIDUnauthorizedBody delete credentials ID unauthorized body swagger:model DeleteCredentialsIDUnauthorizedBody

func (*DeleteCredentialsIDUnauthorizedBody) Validate added in v0.12.0

Validate validates this delete credentials ID unauthorized body

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

func (*GetCredentialsBadRequestBody) Validate added in v0.12.0

func (o *GetCredentialsBadRequestBody) Validate(formats strfmt.Registry) error

Validate validates this get credentials bad request body

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

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

func (*GetCredentialsInternalServerErrorBody) Validate added in v0.12.0

Validate validates this get credentials internal server error body

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

func (*GetCredentialsNotFoundBody) Validate added in v0.12.0

func (o *GetCredentialsNotFoundBody) Validate(formats strfmt.Registry) error

Validate validates this get credentials not found body

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

	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) 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

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) 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 {
	Payload GetCredentialsUnauthorizedBody
}

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

type GetCredentialsUnauthorizedBody added in v0.12.0

type GetCredentialsUnauthorizedBody struct {

	// Explanation of the errors
	// Required: true
	Message []string `json:"message"`

	// The error type
	// Required: true
	Type *string `json:"type"`
}

GetCredentialsUnauthorizedBody get credentials unauthorized body swagger:model GetCredentialsUnauthorizedBody

func (*GetCredentialsUnauthorizedBody) Validate added in v0.12.0

func (o *GetCredentialsUnauthorizedBody) Validate(formats strfmt.Registry) error

Validate validates this get credentials unauthorized body

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

func (*GetSelfBadRequestBody) Validate

func (o *GetSelfBadRequestBody) Validate(formats strfmt.Registry) error

Validate validates this get self bad request body

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

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

func (*GetSelfInternalServerErrorBody) Validate

func (o *GetSelfInternalServerErrorBody) Validate(formats strfmt.Registry) error

Validate validates this get self internal server error body

type GetSelfOK

type GetSelfOK struct {
	Payload models.Identity
}

GetSelfOK handles this case with default header values.

The identity of the user or product represented by the access token.

func NewGetSelfOK

func NewGetSelfOK() *GetSelfOK

NewGetSelfOK creates a GetSelfOK with default headers values

func (*GetSelfOK) Error

func (o *GetSelfOK) Error() string

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 {
	Payload GetSelfUnauthorizedBody
}

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 {

	// Explanation of the errors
	// Required: true
	Message []string `json:"message"`

	// The error type
	// Required: true
	Type *string `json:"type"`
}

GetSelfUnauthorizedBody get self unauthorized body swagger:model GetSelfUnauthorizedBody

func (*GetSelfUnauthorizedBody) Validate

func (o *GetSelfUnauthorizedBody) Validate(formats strfmt.Registry) error

Validate validates this get self unauthorized body

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

func (*PostCredentialsBadRequestBody) Validate

func (o *PostCredentialsBadRequestBody) Validate(formats strfmt.Registry) error

Validate validates this post credentials bad request body

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

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

func (*PostCredentialsInternalServerErrorBody) Validate

Validate validates this post credentials internal server error body

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

func (*PostCredentialsNotFoundBody) Validate

func (o *PostCredentialsNotFoundBody) Validate(formats strfmt.Registry) error

Validate validates this post credentials not found body

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
	  A product id and 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

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

WithBody adds the body to the post credentials params

func (*PostCredentialsParams) WithContext

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 {
	Payload PostCredentialsUnauthorizedBody
}

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

type PostCredentialsUnauthorizedBody

type PostCredentialsUnauthorizedBody struct {

	// Explanation of the errors
	// Required: true
	Message []string `json:"message"`

	// The error type
	// Required: true
	Type *string `json:"type"`
}

PostCredentialsUnauthorizedBody post credentials unauthorized body swagger:model PostCredentialsUnauthorizedBody

func (*PostCredentialsUnauthorizedBody) Validate

Validate validates this post credentials unauthorized body

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

func (*PostOauthTokensBadRequestBody) Validate

func (o *PostOauthTokensBadRequestBody) Validate(formats strfmt.Registry) error

Validate validates this post oauth tokens bad request body

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

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

func (*PostOauthTokensInternalServerErrorBody) Validate

Validate validates this post oauth tokens internal server error body

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

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

WithBody adds the body to the post oauth tokens params

func (*PostOauthTokensParams) WithContext

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 {
	Payload PostOauthTokensUnauthorizedBody
}

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

type PostOauthTokensUnauthorizedBody

type PostOauthTokensUnauthorizedBody struct {

	// The error type
	// Required: true
	Error *string `json:"error"`

	// Explanation of the error
	// Required: true
	ErrorDescription *string `json:"error_description"`
}

PostOauthTokensUnauthorizedBody post oauth tokens unauthorized body swagger:model PostOauthTokensUnauthorizedBody

func (*PostOauthTokensUnauthorizedBody) Validate

Validate validates this post oauth tokens unauthorized body

type PostSsoBadRequest

type PostSsoBadRequest struct {
	Payload PostSsoBadRequestBody
}

PostSsoBadRequest handles this case with default header values.

Request denied due to invalid request body, path, or headers.

func NewPostSsoBadRequest

func NewPostSsoBadRequest() *PostSsoBadRequest

NewPostSsoBadRequest creates a PostSsoBadRequest with default headers values

func (*PostSsoBadRequest) Error

func (o *PostSsoBadRequest) Error() string

type PostSsoBadRequestBody

type PostSsoBadRequestBody struct {

	// Explanation of the errors
	// Required: true
	Message []string `json:"message"`

	// The error type
	// Required: true
	Type *string `json:"type"`
}

PostSsoBadRequestBody post sso bad request body swagger:model PostSsoBadRequestBody

func (*PostSsoBadRequestBody) Validate

func (o *PostSsoBadRequestBody) Validate(formats strfmt.Registry) error

Validate validates this post sso bad request body

type PostSsoCreated

type PostSsoCreated struct {
	Payload *models.AuthorizationCode
}

PostSsoCreated handles this case with default header values.

An authorization code has been created.

func NewPostSsoCreated

func NewPostSsoCreated() *PostSsoCreated

NewPostSsoCreated creates a PostSsoCreated with default headers values

func (*PostSsoCreated) Error

func (o *PostSsoCreated) Error() string

type PostSsoInternalServerError

type PostSsoInternalServerError struct {
	Payload PostSsoInternalServerErrorBody
}

PostSsoInternalServerError handles this case with default header values.

Request failed due to an internal server error.

func NewPostSsoInternalServerError

func NewPostSsoInternalServerError() *PostSsoInternalServerError

NewPostSsoInternalServerError creates a PostSsoInternalServerError with default headers values

func (*PostSsoInternalServerError) Error

type PostSsoInternalServerErrorBody

type PostSsoInternalServerErrorBody struct {

	// Explanation of the errors
	// Required: true
	Message []string `json:"message"`

	// The error type
	// Required: true
	Type *string `json:"type"`
}

PostSsoInternalServerErrorBody post sso internal server error body swagger:model PostSsoInternalServerErrorBody

func (*PostSsoInternalServerErrorBody) Validate

func (o *PostSsoInternalServerErrorBody) Validate(formats strfmt.Registry) error

Validate validates this post sso internal server error body

type PostSsoParams

type PostSsoParams struct {

	/*Body
	  Authorization Code Request Body

	*/
	Body *models.AuthCodeRequest

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

PostSsoParams contains all the parameters to send to the API endpoint for the post sso operation typically these are written to a http.Request

func NewPostSsoParams

func NewPostSsoParams() *PostSsoParams

NewPostSsoParams creates a new PostSsoParams object with the default values initialized.

func NewPostSsoParamsWithContext

func NewPostSsoParamsWithContext(ctx context.Context) *PostSsoParams

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

func NewPostSsoParamsWithHTTPClient

func NewPostSsoParamsWithHTTPClient(client *http.Client) *PostSsoParams

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

func NewPostSsoParamsWithTimeout

func NewPostSsoParamsWithTimeout(timeout time.Duration) *PostSsoParams

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

func (*PostSsoParams) SetBody

func (o *PostSsoParams) SetBody(body *models.AuthCodeRequest)

SetBody adds the body to the post sso params

func (*PostSsoParams) SetContext

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

SetContext adds the context to the post sso params

func (*PostSsoParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the post sso params

func (*PostSsoParams) SetTimeout

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

SetTimeout adds the timeout to the post sso params

func (*PostSsoParams) WithBody

func (o *PostSsoParams) WithBody(body *models.AuthCodeRequest) *PostSsoParams

WithBody adds the body to the post sso params

func (*PostSsoParams) WithContext

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

WithContext adds the context to the post sso params

func (*PostSsoParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the post sso params

func (*PostSsoParams) WithTimeout

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

WithTimeout adds the timeout to the post sso params

func (*PostSsoParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type PostSsoReader

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

PostSsoReader is a Reader for the PostSso structure.

func (*PostSsoReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type PostSsoUnauthorized

type PostSsoUnauthorized struct {
	Payload PostSsoUnauthorizedBody
}

PostSsoUnauthorized handles this case with default header values.

Request denied as the provided credentials are no longer valid.

func NewPostSsoUnauthorized

func NewPostSsoUnauthorized() *PostSsoUnauthorized

NewPostSsoUnauthorized creates a PostSsoUnauthorized with default headers values

func (*PostSsoUnauthorized) Error

func (o *PostSsoUnauthorized) Error() string

type PostSsoUnauthorizedBody

type PostSsoUnauthorizedBody struct {

	// Explanation of the errors
	// Required: true
	Message []string `json:"message"`

	// The error type
	// Required: true
	Type *string `json:"type"`
}

PostSsoUnauthorizedBody post sso unauthorized body swagger:model PostSsoUnauthorizedBody

func (*PostSsoUnauthorizedBody) Validate

func (o *PostSsoUnauthorizedBody) Validate(formats strfmt.Registry) error

Validate validates this post sso unauthorized body

Jump to

Keyboard shortcuts

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