Documentation
¶
Index ¶
- type Client
- func (a *Client) CreateReadOnlySession(params *CreateReadOnlySessionParams, authInfo runtime.ClientAuthInfoWriter, ...) (*CreateReadOnlySessionOK, error)
- func (a *Client) CreateReadWriteSession(params *CreateReadWriteSessionParams, authInfo runtime.ClientAuthInfoWriter, ...) (*CreateReadWriteSessionOK, error)
- func (a *Client) GetWhoami(params *GetWhoamiParams, authInfo runtime.ClientAuthInfoWriter, ...) (*GetWhoamiOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientOption
- type ClientService
- type CreateReadOnlySessionOK
- func (o *CreateReadOnlySessionOK) Code() int
- func (o *CreateReadOnlySessionOK) Error() string
- func (o *CreateReadOnlySessionOK) GetPayload() *models.ActivityResponse
- func (o *CreateReadOnlySessionOK) IsClientError() bool
- func (o *CreateReadOnlySessionOK) IsCode(code int) bool
- func (o *CreateReadOnlySessionOK) IsRedirect() bool
- func (o *CreateReadOnlySessionOK) IsServerError() bool
- func (o *CreateReadOnlySessionOK) IsSuccess() bool
- func (o *CreateReadOnlySessionOK) String() string
- type CreateReadOnlySessionParams
- func NewCreateReadOnlySessionParams() *CreateReadOnlySessionParams
- func NewCreateReadOnlySessionParamsWithContext(ctx context.Context) *CreateReadOnlySessionParams
- func NewCreateReadOnlySessionParamsWithHTTPClient(client *http.Client) *CreateReadOnlySessionParams
- func NewCreateReadOnlySessionParamsWithTimeout(timeout time.Duration) *CreateReadOnlySessionParams
- func (o *CreateReadOnlySessionParams) SetBody(body *models.CreateReadOnlySessionRequest)
- func (o *CreateReadOnlySessionParams) SetContext(ctx context.Context)
- func (o *CreateReadOnlySessionParams) SetDefaults()
- func (o *CreateReadOnlySessionParams) SetHTTPClient(client *http.Client)
- func (o *CreateReadOnlySessionParams) SetTimeout(timeout time.Duration)
- func (o *CreateReadOnlySessionParams) WithBody(body *models.CreateReadOnlySessionRequest) *CreateReadOnlySessionParams
- func (o *CreateReadOnlySessionParams) WithContext(ctx context.Context) *CreateReadOnlySessionParams
- func (o *CreateReadOnlySessionParams) WithDefaults() *CreateReadOnlySessionParams
- func (o *CreateReadOnlySessionParams) WithHTTPClient(client *http.Client) *CreateReadOnlySessionParams
- func (o *CreateReadOnlySessionParams) WithTimeout(timeout time.Duration) *CreateReadOnlySessionParams
- func (o *CreateReadOnlySessionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CreateReadOnlySessionReader
- type CreateReadWriteSessionOK
- func (o *CreateReadWriteSessionOK) Code() int
- func (o *CreateReadWriteSessionOK) Error() string
- func (o *CreateReadWriteSessionOK) GetPayload() *models.ActivityResponse
- func (o *CreateReadWriteSessionOK) IsClientError() bool
- func (o *CreateReadWriteSessionOK) IsCode(code int) bool
- func (o *CreateReadWriteSessionOK) IsRedirect() bool
- func (o *CreateReadWriteSessionOK) IsServerError() bool
- func (o *CreateReadWriteSessionOK) IsSuccess() bool
- func (o *CreateReadWriteSessionOK) String() string
- type CreateReadWriteSessionParams
- func NewCreateReadWriteSessionParams() *CreateReadWriteSessionParams
- func NewCreateReadWriteSessionParamsWithContext(ctx context.Context) *CreateReadWriteSessionParams
- func NewCreateReadWriteSessionParamsWithHTTPClient(client *http.Client) *CreateReadWriteSessionParams
- func NewCreateReadWriteSessionParamsWithTimeout(timeout time.Duration) *CreateReadWriteSessionParams
- func (o *CreateReadWriteSessionParams) SetBody(body *models.CreateReadWriteSessionRequest)
- func (o *CreateReadWriteSessionParams) SetContext(ctx context.Context)
- func (o *CreateReadWriteSessionParams) SetDefaults()
- func (o *CreateReadWriteSessionParams) SetHTTPClient(client *http.Client)
- func (o *CreateReadWriteSessionParams) SetTimeout(timeout time.Duration)
- func (o *CreateReadWriteSessionParams) WithBody(body *models.CreateReadWriteSessionRequest) *CreateReadWriteSessionParams
- func (o *CreateReadWriteSessionParams) WithContext(ctx context.Context) *CreateReadWriteSessionParams
- func (o *CreateReadWriteSessionParams) WithDefaults() *CreateReadWriteSessionParams
- func (o *CreateReadWriteSessionParams) WithHTTPClient(client *http.Client) *CreateReadWriteSessionParams
- func (o *CreateReadWriteSessionParams) WithTimeout(timeout time.Duration) *CreateReadWriteSessionParams
- func (o *CreateReadWriteSessionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CreateReadWriteSessionReader
- type GetWhoamiOK
- func (o *GetWhoamiOK) Code() int
- func (o *GetWhoamiOK) Error() string
- func (o *GetWhoamiOK) GetPayload() *models.GetWhoamiResponse
- func (o *GetWhoamiOK) IsClientError() bool
- func (o *GetWhoamiOK) IsCode(code int) bool
- func (o *GetWhoamiOK) IsRedirect() bool
- func (o *GetWhoamiOK) IsServerError() bool
- func (o *GetWhoamiOK) IsSuccess() bool
- func (o *GetWhoamiOK) String() string
- type GetWhoamiParams
- func (o *GetWhoamiParams) SetBody(body *models.GetWhoamiRequest)
- func (o *GetWhoamiParams) SetContext(ctx context.Context)
- func (o *GetWhoamiParams) SetDefaults()
- func (o *GetWhoamiParams) SetHTTPClient(client *http.Client)
- func (o *GetWhoamiParams) SetTimeout(timeout time.Duration)
- func (o *GetWhoamiParams) WithBody(body *models.GetWhoamiRequest) *GetWhoamiParams
- func (o *GetWhoamiParams) WithContext(ctx context.Context) *GetWhoamiParams
- func (o *GetWhoamiParams) WithDefaults() *GetWhoamiParams
- func (o *GetWhoamiParams) WithHTTPClient(client *http.Client) *GetWhoamiParams
- func (o *GetWhoamiParams) WithTimeout(timeout time.Duration) *GetWhoamiParams
- func (o *GetWhoamiParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetWhoamiReader
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 sessions API
func (*Client) CreateReadOnlySession ¶
func (a *Client) CreateReadOnlySession(params *CreateReadOnlySessionParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateReadOnlySessionOK, error)
CreateReadOnlySession creates read only session
Create a read only session for a user (valid for 1 hour)
func (*Client) CreateReadWriteSession ¶
func (a *Client) CreateReadWriteSession(params *CreateReadWriteSessionParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateReadWriteSessionOK, error)
CreateReadWriteSession creates read write session
Create a read write session for a user
func (*Client) GetWhoami ¶
func (a *Client) GetWhoami(params *GetWhoamiParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetWhoamiOK, error)
GetWhoami whos am i
Get basic information about your current API or WebAuthN user and their organization. Affords Sub-Organization look ups via Parent Organization for WebAuthN or API key users.
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 { CreateReadOnlySession(params *CreateReadOnlySessionParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateReadOnlySessionOK, error) CreateReadWriteSession(params *CreateReadWriteSessionParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateReadWriteSessionOK, error) GetWhoami(params *GetWhoamiParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetWhoamiOK, 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 sessions API client.
type CreateReadOnlySessionOK ¶
type CreateReadOnlySessionOK struct {
Payload *models.ActivityResponse
}
CreateReadOnlySessionOK describes a response with status code 200, with default header values.
A successful response.
func NewCreateReadOnlySessionOK ¶
func NewCreateReadOnlySessionOK() *CreateReadOnlySessionOK
NewCreateReadOnlySessionOK creates a CreateReadOnlySessionOK with default headers values
func (*CreateReadOnlySessionOK) Code ¶
func (o *CreateReadOnlySessionOK) Code() int
Code gets the status code for the create read only session o k response
func (*CreateReadOnlySessionOK) Error ¶
func (o *CreateReadOnlySessionOK) Error() string
func (*CreateReadOnlySessionOK) GetPayload ¶
func (o *CreateReadOnlySessionOK) GetPayload() *models.ActivityResponse
func (*CreateReadOnlySessionOK) IsClientError ¶
func (o *CreateReadOnlySessionOK) IsClientError() bool
IsClientError returns true when this create read only session o k response has a 4xx status code
func (*CreateReadOnlySessionOK) IsCode ¶
func (o *CreateReadOnlySessionOK) IsCode(code int) bool
IsCode returns true when this create read only session o k response a status code equal to that given
func (*CreateReadOnlySessionOK) IsRedirect ¶
func (o *CreateReadOnlySessionOK) IsRedirect() bool
IsRedirect returns true when this create read only session o k response has a 3xx status code
func (*CreateReadOnlySessionOK) IsServerError ¶
func (o *CreateReadOnlySessionOK) IsServerError() bool
IsServerError returns true when this create read only session o k response has a 5xx status code
func (*CreateReadOnlySessionOK) IsSuccess ¶
func (o *CreateReadOnlySessionOK) IsSuccess() bool
IsSuccess returns true when this create read only session o k response has a 2xx status code
func (*CreateReadOnlySessionOK) String ¶
func (o *CreateReadOnlySessionOK) String() string
type CreateReadOnlySessionParams ¶
type CreateReadOnlySessionParams struct { // Body. Body *models.CreateReadOnlySessionRequest Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
CreateReadOnlySessionParams contains all the parameters to send to the API endpoint
for the create read only session operation. Typically these are written to a http.Request.
func NewCreateReadOnlySessionParams ¶
func NewCreateReadOnlySessionParams() *CreateReadOnlySessionParams
NewCreateReadOnlySessionParams creates a new CreateReadOnlySessionParams 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 NewCreateReadOnlySessionParamsWithContext ¶
func NewCreateReadOnlySessionParamsWithContext(ctx context.Context) *CreateReadOnlySessionParams
NewCreateReadOnlySessionParamsWithContext creates a new CreateReadOnlySessionParams object with the ability to set a context for a request.
func NewCreateReadOnlySessionParamsWithHTTPClient ¶
func NewCreateReadOnlySessionParamsWithHTTPClient(client *http.Client) *CreateReadOnlySessionParams
NewCreateReadOnlySessionParamsWithHTTPClient creates a new CreateReadOnlySessionParams object with the ability to set a custom HTTPClient for a request.
func NewCreateReadOnlySessionParamsWithTimeout ¶
func NewCreateReadOnlySessionParamsWithTimeout(timeout time.Duration) *CreateReadOnlySessionParams
NewCreateReadOnlySessionParamsWithTimeout creates a new CreateReadOnlySessionParams object with the ability to set a timeout on a request.
func (*CreateReadOnlySessionParams) SetBody ¶
func (o *CreateReadOnlySessionParams) SetBody(body *models.CreateReadOnlySessionRequest)
SetBody adds the body to the create read only session params
func (*CreateReadOnlySessionParams) SetContext ¶
func (o *CreateReadOnlySessionParams) SetContext(ctx context.Context)
SetContext adds the context to the create read only session params
func (*CreateReadOnlySessionParams) SetDefaults ¶
func (o *CreateReadOnlySessionParams) SetDefaults()
SetDefaults hydrates default values in the create read only session params (not the query body).
All values with no default are reset to their zero value.
func (*CreateReadOnlySessionParams) SetHTTPClient ¶
func (o *CreateReadOnlySessionParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the create read only session params
func (*CreateReadOnlySessionParams) SetTimeout ¶
func (o *CreateReadOnlySessionParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the create read only session params
func (*CreateReadOnlySessionParams) WithBody ¶
func (o *CreateReadOnlySessionParams) WithBody(body *models.CreateReadOnlySessionRequest) *CreateReadOnlySessionParams
WithBody adds the body to the create read only session params
func (*CreateReadOnlySessionParams) WithContext ¶
func (o *CreateReadOnlySessionParams) WithContext(ctx context.Context) *CreateReadOnlySessionParams
WithContext adds the context to the create read only session params
func (*CreateReadOnlySessionParams) WithDefaults ¶
func (o *CreateReadOnlySessionParams) WithDefaults() *CreateReadOnlySessionParams
WithDefaults hydrates default values in the create read only session params (not the query body).
All values with no default are reset to their zero value.
func (*CreateReadOnlySessionParams) WithHTTPClient ¶
func (o *CreateReadOnlySessionParams) WithHTTPClient(client *http.Client) *CreateReadOnlySessionParams
WithHTTPClient adds the HTTPClient to the create read only session params
func (*CreateReadOnlySessionParams) WithTimeout ¶
func (o *CreateReadOnlySessionParams) WithTimeout(timeout time.Duration) *CreateReadOnlySessionParams
WithTimeout adds the timeout to the create read only session params
func (*CreateReadOnlySessionParams) WriteToRequest ¶
func (o *CreateReadOnlySessionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type CreateReadOnlySessionReader ¶
type CreateReadOnlySessionReader struct {
// contains filtered or unexported fields
}
CreateReadOnlySessionReader is a Reader for the CreateReadOnlySession structure.
func (*CreateReadOnlySessionReader) ReadResponse ¶
func (o *CreateReadOnlySessionReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type CreateReadWriteSessionOK ¶
type CreateReadWriteSessionOK struct {
Payload *models.ActivityResponse
}
CreateReadWriteSessionOK describes a response with status code 200, with default header values.
A successful response.
func NewCreateReadWriteSessionOK ¶
func NewCreateReadWriteSessionOK() *CreateReadWriteSessionOK
NewCreateReadWriteSessionOK creates a CreateReadWriteSessionOK with default headers values
func (*CreateReadWriteSessionOK) Code ¶
func (o *CreateReadWriteSessionOK) Code() int
Code gets the status code for the create read write session o k response
func (*CreateReadWriteSessionOK) Error ¶
func (o *CreateReadWriteSessionOK) Error() string
func (*CreateReadWriteSessionOK) GetPayload ¶
func (o *CreateReadWriteSessionOK) GetPayload() *models.ActivityResponse
func (*CreateReadWriteSessionOK) IsClientError ¶
func (o *CreateReadWriteSessionOK) IsClientError() bool
IsClientError returns true when this create read write session o k response has a 4xx status code
func (*CreateReadWriteSessionOK) IsCode ¶
func (o *CreateReadWriteSessionOK) IsCode(code int) bool
IsCode returns true when this create read write session o k response a status code equal to that given
func (*CreateReadWriteSessionOK) IsRedirect ¶
func (o *CreateReadWriteSessionOK) IsRedirect() bool
IsRedirect returns true when this create read write session o k response has a 3xx status code
func (*CreateReadWriteSessionOK) IsServerError ¶
func (o *CreateReadWriteSessionOK) IsServerError() bool
IsServerError returns true when this create read write session o k response has a 5xx status code
func (*CreateReadWriteSessionOK) IsSuccess ¶
func (o *CreateReadWriteSessionOK) IsSuccess() bool
IsSuccess returns true when this create read write session o k response has a 2xx status code
func (*CreateReadWriteSessionOK) String ¶
func (o *CreateReadWriteSessionOK) String() string
type CreateReadWriteSessionParams ¶
type CreateReadWriteSessionParams struct { // Body. Body *models.CreateReadWriteSessionRequest Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
CreateReadWriteSessionParams contains all the parameters to send to the API endpoint
for the create read write session operation. Typically these are written to a http.Request.
func NewCreateReadWriteSessionParams ¶
func NewCreateReadWriteSessionParams() *CreateReadWriteSessionParams
NewCreateReadWriteSessionParams creates a new CreateReadWriteSessionParams 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 NewCreateReadWriteSessionParamsWithContext ¶
func NewCreateReadWriteSessionParamsWithContext(ctx context.Context) *CreateReadWriteSessionParams
NewCreateReadWriteSessionParamsWithContext creates a new CreateReadWriteSessionParams object with the ability to set a context for a request.
func NewCreateReadWriteSessionParamsWithHTTPClient ¶
func NewCreateReadWriteSessionParamsWithHTTPClient(client *http.Client) *CreateReadWriteSessionParams
NewCreateReadWriteSessionParamsWithHTTPClient creates a new CreateReadWriteSessionParams object with the ability to set a custom HTTPClient for a request.
func NewCreateReadWriteSessionParamsWithTimeout ¶
func NewCreateReadWriteSessionParamsWithTimeout(timeout time.Duration) *CreateReadWriteSessionParams
NewCreateReadWriteSessionParamsWithTimeout creates a new CreateReadWriteSessionParams object with the ability to set a timeout on a request.
func (*CreateReadWriteSessionParams) SetBody ¶
func (o *CreateReadWriteSessionParams) SetBody(body *models.CreateReadWriteSessionRequest)
SetBody adds the body to the create read write session params
func (*CreateReadWriteSessionParams) SetContext ¶
func (o *CreateReadWriteSessionParams) SetContext(ctx context.Context)
SetContext adds the context to the create read write session params
func (*CreateReadWriteSessionParams) SetDefaults ¶
func (o *CreateReadWriteSessionParams) SetDefaults()
SetDefaults hydrates default values in the create read write session params (not the query body).
All values with no default are reset to their zero value.
func (*CreateReadWriteSessionParams) SetHTTPClient ¶
func (o *CreateReadWriteSessionParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the create read write session params
func (*CreateReadWriteSessionParams) SetTimeout ¶
func (o *CreateReadWriteSessionParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the create read write session params
func (*CreateReadWriteSessionParams) WithBody ¶
func (o *CreateReadWriteSessionParams) WithBody(body *models.CreateReadWriteSessionRequest) *CreateReadWriteSessionParams
WithBody adds the body to the create read write session params
func (*CreateReadWriteSessionParams) WithContext ¶
func (o *CreateReadWriteSessionParams) WithContext(ctx context.Context) *CreateReadWriteSessionParams
WithContext adds the context to the create read write session params
func (*CreateReadWriteSessionParams) WithDefaults ¶
func (o *CreateReadWriteSessionParams) WithDefaults() *CreateReadWriteSessionParams
WithDefaults hydrates default values in the create read write session params (not the query body).
All values with no default are reset to their zero value.
func (*CreateReadWriteSessionParams) WithHTTPClient ¶
func (o *CreateReadWriteSessionParams) WithHTTPClient(client *http.Client) *CreateReadWriteSessionParams
WithHTTPClient adds the HTTPClient to the create read write session params
func (*CreateReadWriteSessionParams) WithTimeout ¶
func (o *CreateReadWriteSessionParams) WithTimeout(timeout time.Duration) *CreateReadWriteSessionParams
WithTimeout adds the timeout to the create read write session params
func (*CreateReadWriteSessionParams) WriteToRequest ¶
func (o *CreateReadWriteSessionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type CreateReadWriteSessionReader ¶
type CreateReadWriteSessionReader struct {
// contains filtered or unexported fields
}
CreateReadWriteSessionReader is a Reader for the CreateReadWriteSession structure.
func (*CreateReadWriteSessionReader) ReadResponse ¶
func (o *CreateReadWriteSessionReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetWhoamiOK ¶
type GetWhoamiOK struct {
Payload *models.GetWhoamiResponse
}
GetWhoamiOK describes a response with status code 200, with default header values.
A successful response.
func NewGetWhoamiOK ¶
func NewGetWhoamiOK() *GetWhoamiOK
NewGetWhoamiOK creates a GetWhoamiOK with default headers values
func (*GetWhoamiOK) Code ¶
func (o *GetWhoamiOK) Code() int
Code gets the status code for the get whoami o k response
func (*GetWhoamiOK) Error ¶
func (o *GetWhoamiOK) Error() string
func (*GetWhoamiOK) GetPayload ¶
func (o *GetWhoamiOK) GetPayload() *models.GetWhoamiResponse
func (*GetWhoamiOK) IsClientError ¶
func (o *GetWhoamiOK) IsClientError() bool
IsClientError returns true when this get whoami o k response has a 4xx status code
func (*GetWhoamiOK) IsCode ¶
func (o *GetWhoamiOK) IsCode(code int) bool
IsCode returns true when this get whoami o k response a status code equal to that given
func (*GetWhoamiOK) IsRedirect ¶
func (o *GetWhoamiOK) IsRedirect() bool
IsRedirect returns true when this get whoami o k response has a 3xx status code
func (*GetWhoamiOK) IsServerError ¶
func (o *GetWhoamiOK) IsServerError() bool
IsServerError returns true when this get whoami o k response has a 5xx status code
func (*GetWhoamiOK) IsSuccess ¶
func (o *GetWhoamiOK) IsSuccess() bool
IsSuccess returns true when this get whoami o k response has a 2xx status code
func (*GetWhoamiOK) String ¶
func (o *GetWhoamiOK) String() string
type GetWhoamiParams ¶
type GetWhoamiParams struct { // Body. Body *models.GetWhoamiRequest Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetWhoamiParams contains all the parameters to send to the API endpoint
for the get whoami operation. Typically these are written to a http.Request.
func NewGetWhoamiParams ¶
func NewGetWhoamiParams() *GetWhoamiParams
NewGetWhoamiParams creates a new GetWhoamiParams 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 NewGetWhoamiParamsWithContext ¶
func NewGetWhoamiParamsWithContext(ctx context.Context) *GetWhoamiParams
NewGetWhoamiParamsWithContext creates a new GetWhoamiParams object with the ability to set a context for a request.
func NewGetWhoamiParamsWithHTTPClient ¶
func NewGetWhoamiParamsWithHTTPClient(client *http.Client) *GetWhoamiParams
NewGetWhoamiParamsWithHTTPClient creates a new GetWhoamiParams object with the ability to set a custom HTTPClient for a request.
func NewGetWhoamiParamsWithTimeout ¶
func NewGetWhoamiParamsWithTimeout(timeout time.Duration) *GetWhoamiParams
NewGetWhoamiParamsWithTimeout creates a new GetWhoamiParams object with the ability to set a timeout on a request.
func (*GetWhoamiParams) SetBody ¶
func (o *GetWhoamiParams) SetBody(body *models.GetWhoamiRequest)
SetBody adds the body to the get whoami params
func (*GetWhoamiParams) SetContext ¶
func (o *GetWhoamiParams) SetContext(ctx context.Context)
SetContext adds the context to the get whoami params
func (*GetWhoamiParams) SetDefaults ¶
func (o *GetWhoamiParams) SetDefaults()
SetDefaults hydrates default values in the get whoami params (not the query body).
All values with no default are reset to their zero value.
func (*GetWhoamiParams) SetHTTPClient ¶
func (o *GetWhoamiParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get whoami params
func (*GetWhoamiParams) SetTimeout ¶
func (o *GetWhoamiParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get whoami params
func (*GetWhoamiParams) WithBody ¶
func (o *GetWhoamiParams) WithBody(body *models.GetWhoamiRequest) *GetWhoamiParams
WithBody adds the body to the get whoami params
func (*GetWhoamiParams) WithContext ¶
func (o *GetWhoamiParams) WithContext(ctx context.Context) *GetWhoamiParams
WithContext adds the context to the get whoami params
func (*GetWhoamiParams) WithDefaults ¶
func (o *GetWhoamiParams) WithDefaults() *GetWhoamiParams
WithDefaults hydrates default values in the get whoami params (not the query body).
All values with no default are reset to their zero value.
func (*GetWhoamiParams) WithHTTPClient ¶
func (o *GetWhoamiParams) WithHTTPClient(client *http.Client) *GetWhoamiParams
WithHTTPClient adds the HTTPClient to the get whoami params
func (*GetWhoamiParams) WithTimeout ¶
func (o *GetWhoamiParams) WithTimeout(timeout time.Duration) *GetWhoamiParams
WithTimeout adds the timeout to the get whoami params
func (*GetWhoamiParams) WriteToRequest ¶
func (o *GetWhoamiParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetWhoamiReader ¶
type GetWhoamiReader struct {
// contains filtered or unexported fields
}
GetWhoamiReader is a Reader for the GetWhoami structure.
func (*GetWhoamiReader) ReadResponse ¶
func (o *GetWhoamiReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.