Documentation ¶
Index ¶
- Constants
- type Client
- func (a *Client) GetSelf(params *GetSelfParams, authInfo runtime.ClientAuthInfoWriter) (*GetSelfOK, error)
- func (a *Client) PostCredentials(params *PostCredentialsParams, authInfo runtime.ClientAuthInfoWriter) (*PostCredentialsOK, error)
- func (a *Client) PostOauthTokens(params *PostOauthTokensParams) (*PostOauthTokensCreated, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type GetSelfBadRequest
- type GetSelfBadRequestBody
- type GetSelfInternalServerError
- type GetSelfInternalServerErrorBody
- type GetSelfOK
- type GetSelfParams
- func (o *GetSelfParams) SetContext(ctx context.Context)
- func (o *GetSelfParams) SetHTTPClient(client *http.Client)
- func (o *GetSelfParams) SetTimeout(timeout time.Duration)
- func (o *GetSelfParams) WithContext(ctx context.Context) *GetSelfParams
- func (o *GetSelfParams) WithHTTPClient(client *http.Client) *GetSelfParams
- func (o *GetSelfParams) WithTimeout(timeout time.Duration) *GetSelfParams
- func (o *GetSelfParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetSelfReader
- type GetSelfUnauthorized
- type GetSelfUnauthorizedBody
- type PostCredentialsBadRequest
- type PostCredentialsBadRequestBody
- type PostCredentialsInternalServerError
- type PostCredentialsInternalServerErrorBody
- type PostCredentialsNotFound
- type PostCredentialsNotFoundBody
- type PostCredentialsOK
- type PostCredentialsParams
- func NewPostCredentialsParams() *PostCredentialsParams
- func NewPostCredentialsParamsWithContext(ctx context.Context) *PostCredentialsParams
- func NewPostCredentialsParamsWithHTTPClient(client *http.Client) *PostCredentialsParams
- func NewPostCredentialsParamsWithTimeout(timeout time.Duration) *PostCredentialsParams
- func (o *PostCredentialsParams) SetBody(body *models.OAuthCredentialCreateRequest)
- func (o *PostCredentialsParams) SetContext(ctx context.Context)
- func (o *PostCredentialsParams) SetHTTPClient(client *http.Client)
- func (o *PostCredentialsParams) SetTimeout(timeout time.Duration)
- func (o *PostCredentialsParams) WithBody(body *models.OAuthCredentialCreateRequest) *PostCredentialsParams
- func (o *PostCredentialsParams) WithContext(ctx context.Context) *PostCredentialsParams
- func (o *PostCredentialsParams) WithHTTPClient(client *http.Client) *PostCredentialsParams
- func (o *PostCredentialsParams) WithTimeout(timeout time.Duration) *PostCredentialsParams
- func (o *PostCredentialsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type PostCredentialsReader
- type PostCredentialsUnauthorized
- type PostCredentialsUnauthorizedBody
- type PostOauthTokensBadRequest
- type PostOauthTokensBadRequestBody
- type PostOauthTokensCreated
- type PostOauthTokensInternalServerError
- type PostOauthTokensInternalServerErrorBody
- type PostOauthTokensParams
- func NewPostOauthTokensParams() *PostOauthTokensParams
- func NewPostOauthTokensParamsWithContext(ctx context.Context) *PostOauthTokensParams
- func NewPostOauthTokensParamsWithHTTPClient(client *http.Client) *PostOauthTokensParams
- func NewPostOauthTokensParamsWithTimeout(timeout time.Duration) *PostOauthTokensParams
- func (o *PostOauthTokensParams) SetAuthorization(authorization *string)
- func (o *PostOauthTokensParams) SetBody(body models.AccessTokenRequest)
- func (o *PostOauthTokensParams) SetContext(ctx context.Context)
- func (o *PostOauthTokensParams) SetHTTPClient(client *http.Client)
- func (o *PostOauthTokensParams) SetTimeout(timeout time.Duration)
- func (o *PostOauthTokensParams) WithAuthorization(authorization *string) *PostOauthTokensParams
- func (o *PostOauthTokensParams) WithBody(body models.AccessTokenRequest) *PostOauthTokensParams
- func (o *PostOauthTokensParams) WithContext(ctx context.Context) *PostOauthTokensParams
- func (o *PostOauthTokensParams) WithHTTPClient(client *http.Client) *PostOauthTokensParams
- func (o *PostOauthTokensParams) WithTimeout(timeout time.Duration) *PostOauthTokensParams
- func (o *PostOauthTokensParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type PostOauthTokensReader
- type PostOauthTokensUnauthorized
- type PostOauthTokensUnauthorizedBody
- type PostSsoBadRequest
- type PostSsoBadRequestBody
- type PostSsoCreated
- type PostSsoInternalServerError
- type PostSsoInternalServerErrorBody
- type PostSsoParams
- func (o *PostSsoParams) SetBody(body *models.AuthCodeRequest)
- func (o *PostSsoParams) SetContext(ctx context.Context)
- func (o *PostSsoParams) SetHTTPClient(client *http.Client)
- func (o *PostSsoParams) SetTimeout(timeout time.Duration)
- func (o *PostSsoParams) WithBody(body *models.AuthCodeRequest) *PostSsoParams
- func (o *PostSsoParams) WithContext(ctx context.Context) *PostSsoParams
- func (o *PostSsoParams) WithHTTPClient(client *http.Client) *PostSsoParams
- func (o *PostSsoParams) WithTimeout(timeout time.Duration) *PostSsoParams
- func (o *PostSsoParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type PostSsoReader
- type PostSsoUnauthorized
- type PostSsoUnauthorizedBody
Constants ¶
const ( // GetSelfBadRequestBodyTypeBadRequest captures enum value "bad_request" GetSelfBadRequestBodyTypeBadRequest string = "bad_request" 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" )
const ( // GetSelfInternalServerErrorBodyTypeBadRequest captures enum value "bad_request" GetSelfInternalServerErrorBodyTypeBadRequest string = "bad_request" 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" )
const ( string = "bad_request" GetSelfUnauthorizedBodyTypeUnauthorized string = "unauthorized" GetSelfUnauthorizedBodyTypeNotFound string = "not_found" GetSelfUnauthorizedBodyTypeInternal string = "internal" GetSelfUnauthorizedBodyTypeInvalidGrant string = "invalid_grant" GetSelfUnauthorizedBodyTypeUnsupportedGrantType string = "unsupported_grant_type" )GetSelfUnauthorizedBodyTypeBadRequest
const ( // PostCredentialsBadRequestBodyTypeBadRequest captures enum value "bad_request" PostCredentialsBadRequestBodyTypeBadRequest string = "bad_request" PostCredentialsBadRequestBodyTypeUnauthorized string = "unauthorized" // PostCredentialsBadRequestBodyTypeNotFound captures enum value "not_found" PostCredentialsBadRequestBodyTypeNotFound string = "not_found" // PostCredentialsBadRequestBodyTypeInternal captures enum value "internal" PostCredentialsBadRequestBodyTypeInternal string = "internal" // PostCredentialsBadRequestBodyTypeInvalidGrant captures enum value "invalid_grant" PostCredentialsBadRequestBodyTypeInvalidGrant string = "invalid_grant" // PostCredentialsBadRequestBodyTypeUnsupportedGrantType captures enum value "unsupported_grant_type" PostCredentialsBadRequestBodyTypeUnsupportedGrantType string = "unsupported_grant_type" )
const ( // PostCredentialsInternalServerErrorBodyTypeBadRequest captures enum value "bad_request" PostCredentialsInternalServerErrorBodyTypeBadRequest string = "bad_request" PostCredentialsInternalServerErrorBodyTypeUnauthorized string = "unauthorized" // PostCredentialsInternalServerErrorBodyTypeNotFound captures enum value "not_found" PostCredentialsInternalServerErrorBodyTypeNotFound string = "not_found" // PostCredentialsInternalServerErrorBodyTypeInternal captures enum value "internal" PostCredentialsInternalServerErrorBodyTypeInternal string = "internal" // PostCredentialsInternalServerErrorBodyTypeInvalidGrant captures enum value "invalid_grant" PostCredentialsInternalServerErrorBodyTypeInvalidGrant string = "invalid_grant" // PostCredentialsInternalServerErrorBodyTypeUnsupportedGrantType captures enum value "unsupported_grant_type" PostCredentialsInternalServerErrorBodyTypeUnsupportedGrantType string = "unsupported_grant_type" )
const ( // PostCredentialsNotFoundBodyTypeBadRequest captures enum value "bad_request" PostCredentialsNotFoundBodyTypeBadRequest string = "bad_request" PostCredentialsNotFoundBodyTypeUnauthorized string = "unauthorized" // PostCredentialsNotFoundBodyTypeNotFound captures enum value "not_found" PostCredentialsNotFoundBodyTypeNotFound string = "not_found" // PostCredentialsNotFoundBodyTypeInternal captures enum value "internal" PostCredentialsNotFoundBodyTypeInternal string = "internal" // PostCredentialsNotFoundBodyTypeInvalidGrant captures enum value "invalid_grant" PostCredentialsNotFoundBodyTypeInvalidGrant string = "invalid_grant" // PostCredentialsNotFoundBodyTypeUnsupportedGrantType captures enum value "unsupported_grant_type" PostCredentialsNotFoundBodyTypeUnsupportedGrantType string = "unsupported_grant_type" )
const ( string = "bad_request" PostCredentialsUnauthorizedBodyTypeUnauthorized string = "unauthorized" PostCredentialsUnauthorizedBodyTypeNotFound string = "not_found" PostCredentialsUnauthorizedBodyTypeInternal string = "internal" PostCredentialsUnauthorizedBodyTypeInvalidGrant string = "invalid_grant" PostCredentialsUnauthorizedBodyTypeUnsupportedGrantType string = "unsupported_grant_type" )PostCredentialsUnauthorizedBodyTypeBadRequest
const ( // PostOauthTokensBadRequestBodyErrorInvalidRequest captures enum value "invalid_request" PostOauthTokensBadRequestBodyErrorInvalidRequest string = "invalid_request" // PostOauthTokensBadRequestBodyErrorInvalidClient captures enum value "invalid_client" PostOauthTokensBadRequestBodyErrorInvalidClient string = "invalid_client" // PostOauthTokensBadRequestBodyErrorInvalidGrant captures enum value "invalid_grant" PostOauthTokensBadRequestBodyErrorInvalidGrant string = "invalid_grant" PostOauthTokensBadRequestBodyErrorUnauthorizedClient string = "unauthorized_client" // PostOauthTokensBadRequestBodyErrorUnsupportedGrantType captures enum value "unsupported_grant_type" PostOauthTokensBadRequestBodyErrorUnsupportedGrantType string = "unsupported_grant_type" // PostOauthTokensBadRequestBodyErrorInvalidScope captures enum value "invalid_scope" PostOauthTokensBadRequestBodyErrorInvalidScope string = "invalid_scope" // PostOauthTokensBadRequestBodyErrorAccessDenied captures enum value "access_denied" PostOauthTokensBadRequestBodyErrorAccessDenied string = "access_denied" )
const ( // PostOauthTokensInternalServerErrorBodyTypeBadRequest captures enum value "bad_request" PostOauthTokensInternalServerErrorBodyTypeBadRequest string = "bad_request" PostOauthTokensInternalServerErrorBodyTypeUnauthorized string = "unauthorized" // PostOauthTokensInternalServerErrorBodyTypeNotFound captures enum value "not_found" PostOauthTokensInternalServerErrorBodyTypeNotFound string = "not_found" // PostOauthTokensInternalServerErrorBodyTypeInternal captures enum value "internal" PostOauthTokensInternalServerErrorBodyTypeInternal string = "internal" // PostOauthTokensInternalServerErrorBodyTypeInvalidGrant captures enum value "invalid_grant" PostOauthTokensInternalServerErrorBodyTypeInvalidGrant string = "invalid_grant" // PostOauthTokensInternalServerErrorBodyTypeUnsupportedGrantType captures enum value "unsupported_grant_type" PostOauthTokensInternalServerErrorBodyTypeUnsupportedGrantType string = "unsupported_grant_type" )
const ( string = "invalid_request" PostOauthTokensUnauthorizedBodyErrorInvalidClient string = "invalid_client" PostOauthTokensUnauthorizedBodyErrorInvalidGrant string = "invalid_grant" PostOauthTokensUnauthorizedBodyErrorUnauthorizedClient string = "unauthorized_client" PostOauthTokensUnauthorizedBodyErrorUnsupportedGrantType string = "unsupported_grant_type" PostOauthTokensUnauthorizedBodyErrorInvalidScope string = "invalid_scope" PostOauthTokensUnauthorizedBodyErrorAccessDenied string = "access_denied" )PostOauthTokensUnauthorizedBodyErrorInvalidRequest
const ( // PostSsoBadRequestBodyTypeBadRequest captures enum value "bad_request" PostSsoBadRequestBodyTypeBadRequest string = "bad_request" 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" )
const ( // PostSsoInternalServerErrorBodyTypeBadRequest captures enum value "bad_request" PostSsoInternalServerErrorBodyTypeBadRequest string = "bad_request" 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" )
const ( string = "bad_request" PostSsoUnauthorizedBodyTypeUnauthorized string = "unauthorized" PostSsoUnauthorizedBodyTypeNotFound string = "not_found" PostSsoUnauthorizedBodyTypeInternal string = "internal" PostSsoUnauthorizedBodyTypeInvalidGrant string = "invalid_grant" PostSsoUnauthorizedBodyTypeUnsupportedGrantType string = "unsupported_grant_type" )PostSsoUnauthorizedBodyTypeBadRequest
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
type GetSelfInternalServerError ¶
type GetSelfInternalServerError struct {
Payload GetSelfInternalServerErrorBody
}
GetSelfInternalServerError handles this case with default header values.
Request failed due to an internal server error.
func NewGetSelfInternalServerError ¶
func NewGetSelfInternalServerError() *GetSelfInternalServerError
NewGetSelfInternalServerError creates a GetSelfInternalServerError with default headers values
func (*GetSelfInternalServerError) Error ¶
func (o *GetSelfInternalServerError) Error() string
type GetSelfInternalServerErrorBody ¶
type GetSelfInternalServerErrorBody struct { // Explanation of the errors // Required: true Message []string `json:"message"` // The error type // Required: true Type *string `json:"type"` }
GetSelfInternalServerErrorBody get self internal server error body swagger:model GetSelfInternalServerErrorBody
type GetSelfOK ¶
GetSelfOK handles this case with default header values.
The identity of the user or product represented by the access token.
func NewGetSelfOK ¶
func NewGetSelfOK() *GetSelfOK
NewGetSelfOK creates a GetSelfOK with default headers values
type GetSelfParams ¶
type GetSelfParams struct { Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetSelfParams contains all the parameters to send to the API endpoint for the get self operation typically these are written to a http.Request
func NewGetSelfParams ¶
func NewGetSelfParams() *GetSelfParams
NewGetSelfParams creates a new GetSelfParams object with the default values initialized.
func NewGetSelfParamsWithContext ¶
func NewGetSelfParamsWithContext(ctx context.Context) *GetSelfParams
NewGetSelfParamsWithContext creates a new GetSelfParams object with the default values initialized, and the ability to set a context for a request
func NewGetSelfParamsWithHTTPClient ¶
func NewGetSelfParamsWithHTTPClient(client *http.Client) *GetSelfParams
NewGetSelfParamsWithHTTPClient creates a new GetSelfParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewGetSelfParamsWithTimeout ¶
func NewGetSelfParamsWithTimeout(timeout time.Duration) *GetSelfParams
NewGetSelfParamsWithTimeout creates a new GetSelfParams object with the default values initialized, and the ability to set a timeout on a request
func (*GetSelfParams) SetContext ¶
func (o *GetSelfParams) SetContext(ctx context.Context)
SetContext adds the context to the get self params
func (*GetSelfParams) SetHTTPClient ¶
func (o *GetSelfParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get self params
func (*GetSelfParams) SetTimeout ¶
func (o *GetSelfParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get self params
func (*GetSelfParams) WithContext ¶
func (o *GetSelfParams) WithContext(ctx context.Context) *GetSelfParams
WithContext adds the context to the get self params
func (*GetSelfParams) WithHTTPClient ¶
func (o *GetSelfParams) WithHTTPClient(client *http.Client) *GetSelfParams
WithHTTPClient adds the HTTPClient to the get self params
func (*GetSelfParams) WithTimeout ¶
func (o *GetSelfParams) WithTimeout(timeout time.Duration) *GetSelfParams
WithTimeout adds the timeout to the get self params
func (*GetSelfParams) WriteToRequest ¶
func (o *GetSelfParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetSelfReader ¶
type GetSelfReader struct {
// contains filtered or unexported fields
}
GetSelfReader is a Reader for the GetSelf structure.
func (*GetSelfReader) ReadResponse ¶
func (o *GetSelfReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetSelfUnauthorized ¶
type GetSelfUnauthorized struct {
}GetSelfUnauthorized handles this case with default header values.
Request denied as the provided credentials are no longer valid.
func NewGetSelfUnauthorized ¶
func NewGetSelfUnauthorized() *GetSelfUnauthorized
NewGetSelfUnauthorized creates a GetSelfUnauthorized with default headers values
func (*GetSelfUnauthorized) Error ¶
func (o *GetSelfUnauthorized) Error() string
type GetSelfUnauthorizedBody ¶
type GetSelfUnauthorizedBody struct { // Required: true Message []string `json:"message"` // Required: true Type *string `json:"type"` }
GetSelfUnauthorizedBody get self unauthorized body swagger:model GetSelfUnauthorizedBody
type PostCredentialsBadRequest ¶
type PostCredentialsBadRequest struct {
Payload PostCredentialsBadRequestBody
}
PostCredentialsBadRequest handles this case with default header values.
Request denied due to invalid request body, path, or headers.
func NewPostCredentialsBadRequest ¶
func NewPostCredentialsBadRequest() *PostCredentialsBadRequest
NewPostCredentialsBadRequest creates a PostCredentialsBadRequest with default headers values
func (*PostCredentialsBadRequest) Error ¶
func (o *PostCredentialsBadRequest) Error() string
type PostCredentialsBadRequestBody ¶
type PostCredentialsBadRequestBody struct { // Explanation of the errors // Required: true Message []string `json:"message"` // The error type // Required: true Type *string `json:"type"` }
PostCredentialsBadRequestBody post credentials bad request body swagger:model PostCredentialsBadRequestBody
type PostCredentialsInternalServerError ¶
type PostCredentialsInternalServerError struct {
Payload PostCredentialsInternalServerErrorBody
}
PostCredentialsInternalServerError handles this case with default header values.
Request failed due to an internal server error.
func NewPostCredentialsInternalServerError ¶
func NewPostCredentialsInternalServerError() *PostCredentialsInternalServerError
NewPostCredentialsInternalServerError creates a PostCredentialsInternalServerError with default headers values
func (*PostCredentialsInternalServerError) Error ¶
func (o *PostCredentialsInternalServerError) Error() string
type PostCredentialsInternalServerErrorBody ¶
type PostCredentialsInternalServerErrorBody struct { // Explanation of the errors // Required: true Message []string `json:"message"` // The error type // Required: true Type *string `json:"type"` }
PostCredentialsInternalServerErrorBody post credentials internal server error body swagger:model PostCredentialsInternalServerErrorBody
type PostCredentialsNotFound ¶
type PostCredentialsNotFound struct {
Payload PostCredentialsNotFoundBody
}
PostCredentialsNotFound handles this case with default header values.
Request denied as the requested resource does not exist.
func NewPostCredentialsNotFound ¶
func NewPostCredentialsNotFound() *PostCredentialsNotFound
NewPostCredentialsNotFound creates a PostCredentialsNotFound with default headers values
func (*PostCredentialsNotFound) Error ¶
func (o *PostCredentialsNotFound) Error() string
type PostCredentialsNotFoundBody ¶
type PostCredentialsNotFoundBody struct { // Explanation of the errors // Required: true Message []string `json:"message"` // The error type // Required: true Type *string `json:"type"` }
PostCredentialsNotFoundBody post credentials not found body swagger:model PostCredentialsNotFoundBody
type PostCredentialsOK ¶
type PostCredentialsOK struct {
Payload *models.OAuthCredentialCreateResponse
}
PostCredentialsOK handles this case with default header values.
The created OAuth 2.0 credential pair.
func NewPostCredentialsOK ¶
func NewPostCredentialsOK() *PostCredentialsOK
NewPostCredentialsOK creates a PostCredentialsOK with default headers values
func (*PostCredentialsOK) Error ¶
func (o *PostCredentialsOK) Error() string
type PostCredentialsParams ¶
type PostCredentialsParams struct { /*Body 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 ¶
func (o *PostCredentialsParams) SetBody(body *models.OAuthCredentialCreateRequest)
SetBody adds the body to the post credentials params
func (*PostCredentialsParams) SetContext ¶
func (o *PostCredentialsParams) SetContext(ctx context.Context)
SetContext adds the context to the post credentials params
func (*PostCredentialsParams) SetHTTPClient ¶
func (o *PostCredentialsParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the post credentials params
func (*PostCredentialsParams) SetTimeout ¶
func (o *PostCredentialsParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the post credentials params
func (*PostCredentialsParams) WithBody ¶
func (o *PostCredentialsParams) WithBody(body *models.OAuthCredentialCreateRequest) *PostCredentialsParams
WithBody adds the body to the post credentials params
func (*PostCredentialsParams) WithContext ¶
func (o *PostCredentialsParams) WithContext(ctx context.Context) *PostCredentialsParams
WithContext adds the context to the post credentials params
func (*PostCredentialsParams) WithHTTPClient ¶
func (o *PostCredentialsParams) WithHTTPClient(client *http.Client) *PostCredentialsParams
WithHTTPClient adds the HTTPClient to the post credentials params
func (*PostCredentialsParams) WithTimeout ¶
func (o *PostCredentialsParams) WithTimeout(timeout time.Duration) *PostCredentialsParams
WithTimeout adds the timeout to the post credentials params
func (*PostCredentialsParams) WriteToRequest ¶
func (o *PostCredentialsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type PostCredentialsReader ¶
type PostCredentialsReader struct {
// contains filtered or unexported fields
}
PostCredentialsReader is a Reader for the PostCredentials structure.
func (*PostCredentialsReader) ReadResponse ¶
func (o *PostCredentialsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type PostCredentialsUnauthorized ¶
type PostCredentialsUnauthorized struct {
}PostCredentialsUnauthorized handles this case with default header values.
Request denied as the provided credentials are no longer valid.
func NewPostCredentialsUnauthorized ¶
func NewPostCredentialsUnauthorized() *PostCredentialsUnauthorized
NewPostCredentialsUnauthorized creates a PostCredentialsUnauthorized with default headers values
func (*PostCredentialsUnauthorized) Error ¶
func (o *PostCredentialsUnauthorized) Error() string
type PostCredentialsUnauthorizedBody ¶
type PostCredentialsUnauthorizedBody struct { // Required: true Message []string `json:"message"` // Required: true Type *string `json:"type"` }
PostCredentialsUnauthorizedBody post credentials unauthorized body swagger:model PostCredentialsUnauthorizedBody
type PostOauthTokensBadRequest ¶
type PostOauthTokensBadRequest struct {
Payload PostOauthTokensBadRequestBody
}
PostOauthTokensBadRequest handles this case with default header values.
Request denied due to invalid request body, path, or headers.
func NewPostOauthTokensBadRequest ¶
func NewPostOauthTokensBadRequest() *PostOauthTokensBadRequest
NewPostOauthTokensBadRequest creates a PostOauthTokensBadRequest with default headers values
func (*PostOauthTokensBadRequest) Error ¶
func (o *PostOauthTokensBadRequest) Error() string
type PostOauthTokensBadRequestBody ¶
type PostOauthTokensBadRequestBody struct { // The error type // Required: true Error *string `json:"error"` // Explanation of the error // Required: true ErrorDescription *string `json:"error_description"` }
PostOauthTokensBadRequestBody post oauth tokens bad request body swagger:model PostOauthTokensBadRequestBody
type PostOauthTokensCreated ¶
type PostOauthTokensCreated struct {
Payload *models.AccessToken
}
PostOauthTokensCreated handles this case with default header values.
An access token has been created
func NewPostOauthTokensCreated ¶
func NewPostOauthTokensCreated() *PostOauthTokensCreated
NewPostOauthTokensCreated creates a PostOauthTokensCreated with default headers values
func (*PostOauthTokensCreated) Error ¶
func (o *PostOauthTokensCreated) Error() string
type PostOauthTokensInternalServerError ¶
type PostOauthTokensInternalServerError struct {
Payload PostOauthTokensInternalServerErrorBody
}
PostOauthTokensInternalServerError handles this case with default header values.
Request failed due to an internal server error.
func NewPostOauthTokensInternalServerError ¶
func NewPostOauthTokensInternalServerError() *PostOauthTokensInternalServerError
NewPostOauthTokensInternalServerError creates a PostOauthTokensInternalServerError with default headers values
func (*PostOauthTokensInternalServerError) Error ¶
func (o *PostOauthTokensInternalServerError) Error() string
type PostOauthTokensInternalServerErrorBody ¶
type PostOauthTokensInternalServerErrorBody struct { // Explanation of the errors // Required: true Message []string `json:"message"` // The error type // Required: true Type *string `json:"type"` }
PostOauthTokensInternalServerErrorBody post oauth tokens internal server error body swagger:model PostOauthTokensInternalServerErrorBody
type PostOauthTokensParams ¶
type PostOauthTokensParams struct { /*Authorization Authorization header for basic access authentication containing the OAuth2 `client_id` as user name, and OAuth2 `client_secret` as password. The `client_id` and `client_secret` may be passed either in the body of the request, or in this header. Using this header is the **preferred** way to transmit `client_id` and `client_secret`. */ Authorization *string /*Body OAuth Access Token Request Body */ Body models.AccessTokenRequest Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
PostOauthTokensParams contains all the parameters to send to the API endpoint for the post oauth tokens operation typically these are written to a http.Request
func NewPostOauthTokensParams ¶
func NewPostOauthTokensParams() *PostOauthTokensParams
NewPostOauthTokensParams creates a new PostOauthTokensParams object with the default values initialized.
func NewPostOauthTokensParamsWithContext ¶
func NewPostOauthTokensParamsWithContext(ctx context.Context) *PostOauthTokensParams
NewPostOauthTokensParamsWithContext creates a new PostOauthTokensParams object with the default values initialized, and the ability to set a context for a request
func NewPostOauthTokensParamsWithHTTPClient ¶
func NewPostOauthTokensParamsWithHTTPClient(client *http.Client) *PostOauthTokensParams
NewPostOauthTokensParamsWithHTTPClient creates a new PostOauthTokensParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewPostOauthTokensParamsWithTimeout ¶
func NewPostOauthTokensParamsWithTimeout(timeout time.Duration) *PostOauthTokensParams
NewPostOauthTokensParamsWithTimeout creates a new PostOauthTokensParams object with the default values initialized, and the ability to set a timeout on a request
func (*PostOauthTokensParams) SetAuthorization ¶
func (o *PostOauthTokensParams) SetAuthorization(authorization *string)
SetAuthorization adds the authorization to the post oauth tokens params
func (*PostOauthTokensParams) SetBody ¶
func (o *PostOauthTokensParams) SetBody(body models.AccessTokenRequest)
SetBody adds the body to the post oauth tokens params
func (*PostOauthTokensParams) SetContext ¶
func (o *PostOauthTokensParams) SetContext(ctx context.Context)
SetContext adds the context to the post oauth tokens params
func (*PostOauthTokensParams) SetHTTPClient ¶
func (o *PostOauthTokensParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the post oauth tokens params
func (*PostOauthTokensParams) SetTimeout ¶
func (o *PostOauthTokensParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the post oauth tokens params
func (*PostOauthTokensParams) WithAuthorization ¶
func (o *PostOauthTokensParams) WithAuthorization(authorization *string) *PostOauthTokensParams
WithAuthorization adds the authorization to the post oauth tokens params
func (*PostOauthTokensParams) WithBody ¶
func (o *PostOauthTokensParams) WithBody(body models.AccessTokenRequest) *PostOauthTokensParams
WithBody adds the body to the post oauth tokens params
func (*PostOauthTokensParams) WithContext ¶
func (o *PostOauthTokensParams) WithContext(ctx context.Context) *PostOauthTokensParams
WithContext adds the context to the post oauth tokens params
func (*PostOauthTokensParams) WithHTTPClient ¶
func (o *PostOauthTokensParams) WithHTTPClient(client *http.Client) *PostOauthTokensParams
WithHTTPClient adds the HTTPClient to the post oauth tokens params
func (*PostOauthTokensParams) WithTimeout ¶
func (o *PostOauthTokensParams) WithTimeout(timeout time.Duration) *PostOauthTokensParams
WithTimeout adds the timeout to the post oauth tokens params
func (*PostOauthTokensParams) WriteToRequest ¶
func (o *PostOauthTokensParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type PostOauthTokensReader ¶
type PostOauthTokensReader struct {
// contains filtered or unexported fields
}
PostOauthTokensReader is a Reader for the PostOauthTokens structure.
func (*PostOauthTokensReader) ReadResponse ¶
func (o *PostOauthTokensReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type PostOauthTokensUnauthorized ¶
type PostOauthTokensUnauthorized struct {
}PostOauthTokensUnauthorized handles this case with default header values.
Request denied as the provided credentials are no longer valid.
func NewPostOauthTokensUnauthorized ¶
func NewPostOauthTokensUnauthorized() *PostOauthTokensUnauthorized
NewPostOauthTokensUnauthorized creates a PostOauthTokensUnauthorized with default headers values
func (*PostOauthTokensUnauthorized) Error ¶
func (o *PostOauthTokensUnauthorized) Error() string
type PostOauthTokensUnauthorizedBody ¶
type PostOauthTokensUnauthorizedBody struct { // Required: true Error *string `json:"error"` // Required: true ErrorDescription *string `json:"error_description"` }
PostOauthTokensUnauthorizedBody post oauth tokens unauthorized body swagger:model PostOauthTokensUnauthorizedBody
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
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 ¶
func (o *PostSsoInternalServerError) Error() string
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
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 {
}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 { // Required: true Message []string `json:"message"` // Required: true Type *string `json:"type"` }
PostSsoUnauthorizedBody post sso unauthorized body swagger:model PostSsoUnauthorizedBody