Documentation
¶
Index ¶
- type Client
- type ClientOption
- type ClientService
- type GetOauth2CredentialOK
- func (o *GetOauth2CredentialOK) Code() int
- func (o *GetOauth2CredentialOK) Error() string
- func (o *GetOauth2CredentialOK) GetPayload() *models.GetOauth2CredentialResponse
- func (o *GetOauth2CredentialOK) IsClientError() bool
- func (o *GetOauth2CredentialOK) IsCode(code int) bool
- func (o *GetOauth2CredentialOK) IsRedirect() bool
- func (o *GetOauth2CredentialOK) IsServerError() bool
- func (o *GetOauth2CredentialOK) IsSuccess() bool
- func (o *GetOauth2CredentialOK) String() string
- type GetOauth2CredentialParams
- func NewGetOauth2CredentialParams() *GetOauth2CredentialParams
- func NewGetOauth2CredentialParamsWithContext(ctx context.Context) *GetOauth2CredentialParams
- func NewGetOauth2CredentialParamsWithHTTPClient(client *http.Client) *GetOauth2CredentialParams
- func NewGetOauth2CredentialParamsWithTimeout(timeout time.Duration) *GetOauth2CredentialParams
- func (o *GetOauth2CredentialParams) SetBody(body *models.GetOauth2CredentialRequest)
- func (o *GetOauth2CredentialParams) SetContext(ctx context.Context)
- func (o *GetOauth2CredentialParams) SetDefaults()
- func (o *GetOauth2CredentialParams) SetHTTPClient(client *http.Client)
- func (o *GetOauth2CredentialParams) SetTimeout(timeout time.Duration)
- func (o *GetOauth2CredentialParams) WithBody(body *models.GetOauth2CredentialRequest) *GetOauth2CredentialParams
- func (o *GetOauth2CredentialParams) WithContext(ctx context.Context) *GetOauth2CredentialParams
- func (o *GetOauth2CredentialParams) WithDefaults() *GetOauth2CredentialParams
- func (o *GetOauth2CredentialParams) WithHTTPClient(client *http.Client) *GetOauth2CredentialParams
- func (o *GetOauth2CredentialParams) WithTimeout(timeout time.Duration) *GetOauth2CredentialParams
- func (o *GetOauth2CredentialParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetOauth2CredentialReader
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client for operations API
func (*Client) GetOauth2Credential ¶
func (a *Client) GetOauth2Credential(params *GetOauth2CredentialParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetOauth2CredentialOK, error)
GetOauth2Credential gets o auth 2 0 credential
Get details about an OAuth 2.0 credential.
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
type ClientOption ¶
type ClientOption func(*runtime.ClientOperation)
ClientOption is the option for Client methods
type ClientService ¶
type ClientService interface {
GetOauth2Credential(params *GetOauth2CredentialParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetOauth2CredentialOK, error)
SetTransport(transport runtime.ClientTransport)
}
ClientService is the interface for Client methods
func New ¶
func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService
New creates a new operations API client.
type GetOauth2CredentialOK ¶
type GetOauth2CredentialOK struct {
Payload *models.GetOauth2CredentialResponse
}
GetOauth2CredentialOK describes a response with status code 200, with default header values.
A successful response.
func NewGetOauth2CredentialOK ¶
func NewGetOauth2CredentialOK() *GetOauth2CredentialOK
NewGetOauth2CredentialOK creates a GetOauth2CredentialOK with default headers values
func (*GetOauth2CredentialOK) Code ¶
func (o *GetOauth2CredentialOK) Code() int
Code gets the status code for the get oauth2 credential o k response
func (*GetOauth2CredentialOK) Error ¶
func (o *GetOauth2CredentialOK) Error() string
func (*GetOauth2CredentialOK) GetPayload ¶
func (o *GetOauth2CredentialOK) GetPayload() *models.GetOauth2CredentialResponse
func (*GetOauth2CredentialOK) IsClientError ¶
func (o *GetOauth2CredentialOK) IsClientError() bool
IsClientError returns true when this get oauth2 credential o k response has a 4xx status code
func (*GetOauth2CredentialOK) IsCode ¶
func (o *GetOauth2CredentialOK) IsCode(code int) bool
IsCode returns true when this get oauth2 credential o k response a status code equal to that given
func (*GetOauth2CredentialOK) IsRedirect ¶
func (o *GetOauth2CredentialOK) IsRedirect() bool
IsRedirect returns true when this get oauth2 credential o k response has a 3xx status code
func (*GetOauth2CredentialOK) IsServerError ¶
func (o *GetOauth2CredentialOK) IsServerError() bool
IsServerError returns true when this get oauth2 credential o k response has a 5xx status code
func (*GetOauth2CredentialOK) IsSuccess ¶
func (o *GetOauth2CredentialOK) IsSuccess() bool
IsSuccess returns true when this get oauth2 credential o k response has a 2xx status code
func (*GetOauth2CredentialOK) String ¶
func (o *GetOauth2CredentialOK) String() string
type GetOauth2CredentialParams ¶
type GetOauth2CredentialParams struct {
// Body.
Body *models.GetOauth2CredentialRequest
Context context.Context
HTTPClient *http.Client
// contains filtered or unexported fields
}
GetOauth2CredentialParams contains all the parameters to send to the API endpoint
for the get oauth2 credential operation. Typically these are written to a http.Request.
func NewGetOauth2CredentialParams ¶
func NewGetOauth2CredentialParams() *GetOauth2CredentialParams
NewGetOauth2CredentialParams creates a new GetOauth2CredentialParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewGetOauth2CredentialParamsWithContext ¶
func NewGetOauth2CredentialParamsWithContext(ctx context.Context) *GetOauth2CredentialParams
NewGetOauth2CredentialParamsWithContext creates a new GetOauth2CredentialParams object with the ability to set a context for a request.
func NewGetOauth2CredentialParamsWithHTTPClient ¶
func NewGetOauth2CredentialParamsWithHTTPClient(client *http.Client) *GetOauth2CredentialParams
NewGetOauth2CredentialParamsWithHTTPClient creates a new GetOauth2CredentialParams object with the ability to set a custom HTTPClient for a request.
func NewGetOauth2CredentialParamsWithTimeout ¶
func NewGetOauth2CredentialParamsWithTimeout(timeout time.Duration) *GetOauth2CredentialParams
NewGetOauth2CredentialParamsWithTimeout creates a new GetOauth2CredentialParams object with the ability to set a timeout on a request.
func (*GetOauth2CredentialParams) SetBody ¶
func (o *GetOauth2CredentialParams) SetBody(body *models.GetOauth2CredentialRequest)
SetBody adds the body to the get oauth2 credential params
func (*GetOauth2CredentialParams) SetContext ¶
func (o *GetOauth2CredentialParams) SetContext(ctx context.Context)
SetContext adds the context to the get oauth2 credential params
func (*GetOauth2CredentialParams) SetDefaults ¶
func (o *GetOauth2CredentialParams) SetDefaults()
SetDefaults hydrates default values in the get oauth2 credential params (not the query body).
All values with no default are reset to their zero value.
func (*GetOauth2CredentialParams) SetHTTPClient ¶
func (o *GetOauth2CredentialParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get oauth2 credential params
func (*GetOauth2CredentialParams) SetTimeout ¶
func (o *GetOauth2CredentialParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get oauth2 credential params
func (*GetOauth2CredentialParams) WithBody ¶
func (o *GetOauth2CredentialParams) WithBody(body *models.GetOauth2CredentialRequest) *GetOauth2CredentialParams
WithBody adds the body to the get oauth2 credential params
func (*GetOauth2CredentialParams) WithContext ¶
func (o *GetOauth2CredentialParams) WithContext(ctx context.Context) *GetOauth2CredentialParams
WithContext adds the context to the get oauth2 credential params
func (*GetOauth2CredentialParams) WithDefaults ¶
func (o *GetOauth2CredentialParams) WithDefaults() *GetOauth2CredentialParams
WithDefaults hydrates default values in the get oauth2 credential params (not the query body).
All values with no default are reset to their zero value.
func (*GetOauth2CredentialParams) WithHTTPClient ¶
func (o *GetOauth2CredentialParams) WithHTTPClient(client *http.Client) *GetOauth2CredentialParams
WithHTTPClient adds the HTTPClient to the get oauth2 credential params
func (*GetOauth2CredentialParams) WithTimeout ¶
func (o *GetOauth2CredentialParams) WithTimeout(timeout time.Duration) *GetOauth2CredentialParams
WithTimeout adds the timeout to the get oauth2 credential params
func (*GetOauth2CredentialParams) WriteToRequest ¶
func (o *GetOauth2CredentialParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetOauth2CredentialReader ¶
type GetOauth2CredentialReader struct {
// contains filtered or unexported fields
}
GetOauth2CredentialReader is a Reader for the GetOauth2Credential structure.
func (*GetOauth2CredentialReader) ReadResponse ¶
func (o *GetOauth2CredentialReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.