Documentation
¶
Index ¶
- type Client
- func (a *Client) GetOauth2Credential(params *GetOauth2CredentialParams, authInfo runtime.ClientAuthInfoWriter, ...) (*GetOauth2CredentialOK, error)
- func (a *Client) NOOPCodegenAnchor(params *NOOPCodegenAnchorParams, authInfo runtime.ClientAuthInfoWriter, ...) (*NOOPCodegenAnchorOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- 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
- type NOOPCodegenAnchorOK
- func (o *NOOPCodegenAnchorOK) Code() int
- func (o *NOOPCodegenAnchorOK) Error() string
- func (o *NOOPCodegenAnchorOK) GetPayload() *models.NOOPCodegenAnchorResponse
- func (o *NOOPCodegenAnchorOK) IsClientError() bool
- func (o *NOOPCodegenAnchorOK) IsCode(code int) bool
- func (o *NOOPCodegenAnchorOK) IsRedirect() bool
- func (o *NOOPCodegenAnchorOK) IsServerError() bool
- func (o *NOOPCodegenAnchorOK) IsSuccess() bool
- func (o *NOOPCodegenAnchorOK) String() string
- type NOOPCodegenAnchorParams
- func NewNOOPCodegenAnchorParams() *NOOPCodegenAnchorParams
- func NewNOOPCodegenAnchorParamsWithContext(ctx context.Context) *NOOPCodegenAnchorParams
- func NewNOOPCodegenAnchorParamsWithHTTPClient(client *http.Client) *NOOPCodegenAnchorParams
- func NewNOOPCodegenAnchorParamsWithTimeout(timeout time.Duration) *NOOPCodegenAnchorParams
- func (o *NOOPCodegenAnchorParams) SetContext(ctx context.Context)
- func (o *NOOPCodegenAnchorParams) SetDefaults()
- func (o *NOOPCodegenAnchorParams) SetHTTPClient(client *http.Client)
- func (o *NOOPCodegenAnchorParams) SetTimeout(timeout time.Duration)
- func (o *NOOPCodegenAnchorParams) WithContext(ctx context.Context) *NOOPCodegenAnchorParams
- func (o *NOOPCodegenAnchorParams) WithDefaults() *NOOPCodegenAnchorParams
- func (o *NOOPCodegenAnchorParams) WithHTTPClient(client *http.Client) *NOOPCodegenAnchorParams
- func (o *NOOPCodegenAnchorParams) WithTimeout(timeout time.Duration) *NOOPCodegenAnchorParams
- func (o *NOOPCodegenAnchorParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type NOOPCodegenAnchorReader
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) NOOPCodegenAnchor ¶ added in v0.17.0
func (a *Client) NOOPCodegenAnchor(params *NOOPCodegenAnchorParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*NOOPCodegenAnchorOK, error)
NOOPCodegenAnchor n o o p codegen anchor API
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)
NOOPCodegenAnchor(params *NOOPCodegenAnchorParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*NOOPCodegenAnchorOK, 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.
type NOOPCodegenAnchorOK ¶ added in v0.17.0
type NOOPCodegenAnchorOK struct {
Payload *models.NOOPCodegenAnchorResponse
}
NOOPCodegenAnchorOK describes a response with status code 200, with default header values.
A successful response.
func NewNOOPCodegenAnchorOK ¶ added in v0.17.0
func NewNOOPCodegenAnchorOK() *NOOPCodegenAnchorOK
NewNOOPCodegenAnchorOK creates a NOOPCodegenAnchorOK with default headers values
func (*NOOPCodegenAnchorOK) Code ¶ added in v0.17.0
func (o *NOOPCodegenAnchorOK) Code() int
Code gets the status code for the n o o p codegen anchor o k response
func (*NOOPCodegenAnchorOK) Error ¶ added in v0.17.0
func (o *NOOPCodegenAnchorOK) Error() string
func (*NOOPCodegenAnchorOK) GetPayload ¶ added in v0.17.0
func (o *NOOPCodegenAnchorOK) GetPayload() *models.NOOPCodegenAnchorResponse
func (*NOOPCodegenAnchorOK) IsClientError ¶ added in v0.17.0
func (o *NOOPCodegenAnchorOK) IsClientError() bool
IsClientError returns true when this n o o p codegen anchor o k response has a 4xx status code
func (*NOOPCodegenAnchorOK) IsCode ¶ added in v0.17.0
func (o *NOOPCodegenAnchorOK) IsCode(code int) bool
IsCode returns true when this n o o p codegen anchor o k response a status code equal to that given
func (*NOOPCodegenAnchorOK) IsRedirect ¶ added in v0.17.0
func (o *NOOPCodegenAnchorOK) IsRedirect() bool
IsRedirect returns true when this n o o p codegen anchor o k response has a 3xx status code
func (*NOOPCodegenAnchorOK) IsServerError ¶ added in v0.17.0
func (o *NOOPCodegenAnchorOK) IsServerError() bool
IsServerError returns true when this n o o p codegen anchor o k response has a 5xx status code
func (*NOOPCodegenAnchorOK) IsSuccess ¶ added in v0.17.0
func (o *NOOPCodegenAnchorOK) IsSuccess() bool
IsSuccess returns true when this n o o p codegen anchor o k response has a 2xx status code
func (*NOOPCodegenAnchorOK) String ¶ added in v0.17.0
func (o *NOOPCodegenAnchorOK) String() string
type NOOPCodegenAnchorParams ¶ added in v0.17.0
type NOOPCodegenAnchorParams struct {
Context context.Context
HTTPClient *http.Client
// contains filtered or unexported fields
}
NOOPCodegenAnchorParams contains all the parameters to send to the API endpoint
for the n o o p codegen anchor operation. Typically these are written to a http.Request.
func NewNOOPCodegenAnchorParams ¶ added in v0.17.0
func NewNOOPCodegenAnchorParams() *NOOPCodegenAnchorParams
NewNOOPCodegenAnchorParams creates a new NOOPCodegenAnchorParams 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 NewNOOPCodegenAnchorParamsWithContext ¶ added in v0.17.0
func NewNOOPCodegenAnchorParamsWithContext(ctx context.Context) *NOOPCodegenAnchorParams
NewNOOPCodegenAnchorParamsWithContext creates a new NOOPCodegenAnchorParams object with the ability to set a context for a request.
func NewNOOPCodegenAnchorParamsWithHTTPClient ¶ added in v0.17.0
func NewNOOPCodegenAnchorParamsWithHTTPClient(client *http.Client) *NOOPCodegenAnchorParams
NewNOOPCodegenAnchorParamsWithHTTPClient creates a new NOOPCodegenAnchorParams object with the ability to set a custom HTTPClient for a request.
func NewNOOPCodegenAnchorParamsWithTimeout ¶ added in v0.17.0
func NewNOOPCodegenAnchorParamsWithTimeout(timeout time.Duration) *NOOPCodegenAnchorParams
NewNOOPCodegenAnchorParamsWithTimeout creates a new NOOPCodegenAnchorParams object with the ability to set a timeout on a request.
func (*NOOPCodegenAnchorParams) SetContext ¶ added in v0.17.0
func (o *NOOPCodegenAnchorParams) SetContext(ctx context.Context)
SetContext adds the context to the n o o p codegen anchor params
func (*NOOPCodegenAnchorParams) SetDefaults ¶ added in v0.17.0
func (o *NOOPCodegenAnchorParams) SetDefaults()
SetDefaults hydrates default values in the n o o p codegen anchor params (not the query body).
All values with no default are reset to their zero value.
func (*NOOPCodegenAnchorParams) SetHTTPClient ¶ added in v0.17.0
func (o *NOOPCodegenAnchorParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the n o o p codegen anchor params
func (*NOOPCodegenAnchorParams) SetTimeout ¶ added in v0.17.0
func (o *NOOPCodegenAnchorParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the n o o p codegen anchor params
func (*NOOPCodegenAnchorParams) WithContext ¶ added in v0.17.0
func (o *NOOPCodegenAnchorParams) WithContext(ctx context.Context) *NOOPCodegenAnchorParams
WithContext adds the context to the n o o p codegen anchor params
func (*NOOPCodegenAnchorParams) WithDefaults ¶ added in v0.17.0
func (o *NOOPCodegenAnchorParams) WithDefaults() *NOOPCodegenAnchorParams
WithDefaults hydrates default values in the n o o p codegen anchor params (not the query body).
All values with no default are reset to their zero value.
func (*NOOPCodegenAnchorParams) WithHTTPClient ¶ added in v0.17.0
func (o *NOOPCodegenAnchorParams) WithHTTPClient(client *http.Client) *NOOPCodegenAnchorParams
WithHTTPClient adds the HTTPClient to the n o o p codegen anchor params
func (*NOOPCodegenAnchorParams) WithTimeout ¶ added in v0.17.0
func (o *NOOPCodegenAnchorParams) WithTimeout(timeout time.Duration) *NOOPCodegenAnchorParams
WithTimeout adds the timeout to the n o o p codegen anchor params
func (*NOOPCodegenAnchorParams) WriteToRequest ¶ added in v0.17.0
func (o *NOOPCodegenAnchorParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type NOOPCodegenAnchorReader ¶ added in v0.17.0
type NOOPCodegenAnchorReader struct {
// contains filtered or unexported fields
}
NOOPCodegenAnchorReader is a Reader for the NOOPCodegenAnchor structure.
func (*NOOPCodegenAnchorReader) ReadResponse ¶ added in v0.17.0
func (o *NOOPCodegenAnchorReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.