o_auth

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2017 License: BSD-3-Clause Imports: 12 Imported by: 2

Documentation

Index

Constants

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) 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 24hours.

func (*Client) SetTransport

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

SetTransport changes the transport on the client

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