Documentation ¶
Index ¶
- type Client
- type ClientOption
- type ClientService
- type PrincipalGetUsingGETBadRequest
- type PrincipalGetUsingGETNotFound
- type PrincipalGetUsingGETOK
- type PrincipalGetUsingGETParams
- func NewPrincipalGetUsingGETParams() *PrincipalGetUsingGETParams
- func NewPrincipalGetUsingGETParamsWithContext(ctx context.Context) *PrincipalGetUsingGETParams
- func NewPrincipalGetUsingGETParamsWithHTTPClient(client *http.Client) *PrincipalGetUsingGETParams
- func NewPrincipalGetUsingGETParamsWithTimeout(timeout time.Duration) *PrincipalGetUsingGETParams
- func (o *PrincipalGetUsingGETParams) SetContext(ctx context.Context)
- func (o *PrincipalGetUsingGETParams) SetDefaults()
- func (o *PrincipalGetUsingGETParams) SetHTTPClient(client *http.Client)
- func (o *PrincipalGetUsingGETParams) SetPrincipalID(principalID int32)
- func (o *PrincipalGetUsingGETParams) SetTimeout(timeout time.Duration)
- func (o *PrincipalGetUsingGETParams) WithContext(ctx context.Context) *PrincipalGetUsingGETParams
- func (o *PrincipalGetUsingGETParams) WithDefaults() *PrincipalGetUsingGETParams
- func (o *PrincipalGetUsingGETParams) WithHTTPClient(client *http.Client) *PrincipalGetUsingGETParams
- func (o *PrincipalGetUsingGETParams) WithPrincipalID(principalID int32) *PrincipalGetUsingGETParams
- func (o *PrincipalGetUsingGETParams) WithTimeout(timeout time.Duration) *PrincipalGetUsingGETParams
- func (o *PrincipalGetUsingGETParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type PrincipalGetUsingGETReader
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 principals API
func (*Client) PrincipalGetUsingGET ¶
func (a *Client) PrincipalGetUsingGET(params *PrincipalGetUsingGETParams, opts ...ClientOption) (*PrincipalGetUsingGETOK, error)
PrincipalGetUsingGET gets
Get principal
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
type ClientOption ¶ added in v1.2.4
type ClientOption func(*runtime.ClientOperation)
ClientOption is the option for Client methods
type ClientService ¶
type ClientService interface { PrincipalGetUsingGET(params *PrincipalGetUsingGETParams, opts ...ClientOption) (*PrincipalGetUsingGETOK, 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 principals API client.
type PrincipalGetUsingGETBadRequest ¶
type PrincipalGetUsingGETBadRequest struct {
Payload *models.ProxyResponseMessage
}
PrincipalGetUsingGETBadRequest describes a response with status code 400, with default header values.
Bad request, error occurred. For more details see log messages.
func NewPrincipalGetUsingGETBadRequest ¶
func NewPrincipalGetUsingGETBadRequest() *PrincipalGetUsingGETBadRequest
NewPrincipalGetUsingGETBadRequest creates a PrincipalGetUsingGETBadRequest with default headers values
func (*PrincipalGetUsingGETBadRequest) Error ¶
func (o *PrincipalGetUsingGETBadRequest) Error() string
func (*PrincipalGetUsingGETBadRequest) GetPayload ¶ added in v1.2.0
func (o *PrincipalGetUsingGETBadRequest) GetPayload() *models.ProxyResponseMessage
type PrincipalGetUsingGETNotFound ¶
type PrincipalGetUsingGETNotFound struct { }
PrincipalGetUsingGETNotFound describes a response with status code 404, with default header values.
Entity not found.
func NewPrincipalGetUsingGETNotFound ¶
func NewPrincipalGetUsingGETNotFound() *PrincipalGetUsingGETNotFound
NewPrincipalGetUsingGETNotFound creates a PrincipalGetUsingGETNotFound with default headers values
func (*PrincipalGetUsingGETNotFound) Error ¶
func (o *PrincipalGetUsingGETNotFound) Error() string
type PrincipalGetUsingGETOK ¶
type PrincipalGetUsingGETOK struct {
Payload *models.PrincipalGetResponse
}
PrincipalGetUsingGETOK describes a response with status code 200, with default header values.
OK
func NewPrincipalGetUsingGETOK ¶
func NewPrincipalGetUsingGETOK() *PrincipalGetUsingGETOK
NewPrincipalGetUsingGETOK creates a PrincipalGetUsingGETOK with default headers values
func (*PrincipalGetUsingGETOK) Error ¶
func (o *PrincipalGetUsingGETOK) Error() string
func (*PrincipalGetUsingGETOK) GetPayload ¶
func (o *PrincipalGetUsingGETOK) GetPayload() *models.PrincipalGetResponse
type PrincipalGetUsingGETParams ¶
type PrincipalGetUsingGETParams struct { /* PrincipalID. principalId Format: int32 */ PrincipalID int32 Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
PrincipalGetUsingGETParams contains all the parameters to send to the API endpoint
for the principal get using g e t operation. Typically these are written to a http.Request.
func NewPrincipalGetUsingGETParams ¶
func NewPrincipalGetUsingGETParams() *PrincipalGetUsingGETParams
NewPrincipalGetUsingGETParams creates a new PrincipalGetUsingGETParams 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 NewPrincipalGetUsingGETParamsWithContext ¶
func NewPrincipalGetUsingGETParamsWithContext(ctx context.Context) *PrincipalGetUsingGETParams
NewPrincipalGetUsingGETParamsWithContext creates a new PrincipalGetUsingGETParams object with the ability to set a context for a request.
func NewPrincipalGetUsingGETParamsWithHTTPClient ¶
func NewPrincipalGetUsingGETParamsWithHTTPClient(client *http.Client) *PrincipalGetUsingGETParams
NewPrincipalGetUsingGETParamsWithHTTPClient creates a new PrincipalGetUsingGETParams object with the ability to set a custom HTTPClient for a request.
func NewPrincipalGetUsingGETParamsWithTimeout ¶
func NewPrincipalGetUsingGETParamsWithTimeout(timeout time.Duration) *PrincipalGetUsingGETParams
NewPrincipalGetUsingGETParamsWithTimeout creates a new PrincipalGetUsingGETParams object with the ability to set a timeout on a request.
func (*PrincipalGetUsingGETParams) SetContext ¶
func (o *PrincipalGetUsingGETParams) SetContext(ctx context.Context)
SetContext adds the context to the principal get using g e t params
func (*PrincipalGetUsingGETParams) SetDefaults ¶ added in v1.2.4
func (o *PrincipalGetUsingGETParams) SetDefaults()
SetDefaults hydrates default values in the principal get using g e t params (not the query body).
All values with no default are reset to their zero value.
func (*PrincipalGetUsingGETParams) SetHTTPClient ¶
func (o *PrincipalGetUsingGETParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the principal get using g e t params
func (*PrincipalGetUsingGETParams) SetPrincipalID ¶
func (o *PrincipalGetUsingGETParams) SetPrincipalID(principalID int32)
SetPrincipalID adds the principalId to the principal get using g e t params
func (*PrincipalGetUsingGETParams) SetTimeout ¶
func (o *PrincipalGetUsingGETParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the principal get using g e t params
func (*PrincipalGetUsingGETParams) WithContext ¶
func (o *PrincipalGetUsingGETParams) WithContext(ctx context.Context) *PrincipalGetUsingGETParams
WithContext adds the context to the principal get using g e t params
func (*PrincipalGetUsingGETParams) WithDefaults ¶ added in v1.2.4
func (o *PrincipalGetUsingGETParams) WithDefaults() *PrincipalGetUsingGETParams
WithDefaults hydrates default values in the principal get using g e t params (not the query body).
All values with no default are reset to their zero value.
func (*PrincipalGetUsingGETParams) WithHTTPClient ¶
func (o *PrincipalGetUsingGETParams) WithHTTPClient(client *http.Client) *PrincipalGetUsingGETParams
WithHTTPClient adds the HTTPClient to the principal get using g e t params
func (*PrincipalGetUsingGETParams) WithPrincipalID ¶
func (o *PrincipalGetUsingGETParams) WithPrincipalID(principalID int32) *PrincipalGetUsingGETParams
WithPrincipalID adds the principalID to the principal get using g e t params
func (*PrincipalGetUsingGETParams) WithTimeout ¶
func (o *PrincipalGetUsingGETParams) WithTimeout(timeout time.Duration) *PrincipalGetUsingGETParams
WithTimeout adds the timeout to the principal get using g e t params
func (*PrincipalGetUsingGETParams) WriteToRequest ¶
func (o *PrincipalGetUsingGETParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type PrincipalGetUsingGETReader ¶
type PrincipalGetUsingGETReader struct {
// contains filtered or unexported fields
}
PrincipalGetUsingGETReader is a Reader for the PrincipalGetUsingGET structure.
func (*PrincipalGetUsingGETReader) ReadResponse ¶
func (o *PrincipalGetUsingGETReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.