Documentation ¶
Index ¶
- type Client
- func (a *Client) GetActiveRealms(params *GetActiveRealmsParams, opts ...ClientOption) (*GetActiveRealmsOK, error)
- func (a *Client) GetRealms(params *GetRealmsParams, opts ...ClientOption) (*GetRealmsOK, error)
- func (a *Client) SetActiveRealms(params *SetActiveRealmsParams, opts ...ClientOption) error
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientOption
- type ClientService
- type GetActiveRealmsOK
- func (o *GetActiveRealmsOK) Code() int
- func (o *GetActiveRealmsOK) Error() string
- func (o *GetActiveRealmsOK) GetPayload() []string
- func (o *GetActiveRealmsOK) IsClientError() bool
- func (o *GetActiveRealmsOK) IsCode(code int) bool
- func (o *GetActiveRealmsOK) IsRedirect() bool
- func (o *GetActiveRealmsOK) IsServerError() bool
- func (o *GetActiveRealmsOK) IsSuccess() bool
- func (o *GetActiveRealmsOK) String() string
- type GetActiveRealmsParams
- func NewGetActiveRealmsParams() *GetActiveRealmsParams
- func NewGetActiveRealmsParamsWithContext(ctx context.Context) *GetActiveRealmsParams
- func NewGetActiveRealmsParamsWithHTTPClient(client *http.Client) *GetActiveRealmsParams
- func NewGetActiveRealmsParamsWithTimeout(timeout time.Duration) *GetActiveRealmsParams
- func (o *GetActiveRealmsParams) SetContext(ctx context.Context)
- func (o *GetActiveRealmsParams) SetDefaults()
- func (o *GetActiveRealmsParams) SetHTTPClient(client *http.Client)
- func (o *GetActiveRealmsParams) SetTimeout(timeout time.Duration)
- func (o *GetActiveRealmsParams) WithContext(ctx context.Context) *GetActiveRealmsParams
- func (o *GetActiveRealmsParams) WithDefaults() *GetActiveRealmsParams
- func (o *GetActiveRealmsParams) WithHTTPClient(client *http.Client) *GetActiveRealmsParams
- func (o *GetActiveRealmsParams) WithTimeout(timeout time.Duration) *GetActiveRealmsParams
- func (o *GetActiveRealmsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetActiveRealmsReader
- type GetRealmsOK
- func (o *GetRealmsOK) Code() int
- func (o *GetRealmsOK) Error() string
- func (o *GetRealmsOK) GetPayload() []*models.RealmAPIXO
- func (o *GetRealmsOK) IsClientError() bool
- func (o *GetRealmsOK) IsCode(code int) bool
- func (o *GetRealmsOK) IsRedirect() bool
- func (o *GetRealmsOK) IsServerError() bool
- func (o *GetRealmsOK) IsSuccess() bool
- func (o *GetRealmsOK) String() string
- type GetRealmsParams
- func (o *GetRealmsParams) SetContext(ctx context.Context)
- func (o *GetRealmsParams) SetDefaults()
- func (o *GetRealmsParams) SetHTTPClient(client *http.Client)
- func (o *GetRealmsParams) SetTimeout(timeout time.Duration)
- func (o *GetRealmsParams) WithContext(ctx context.Context) *GetRealmsParams
- func (o *GetRealmsParams) WithDefaults() *GetRealmsParams
- func (o *GetRealmsParams) WithHTTPClient(client *http.Client) *GetRealmsParams
- func (o *GetRealmsParams) WithTimeout(timeout time.Duration) *GetRealmsParams
- func (o *GetRealmsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetRealmsReader
- type SetActiveRealmsDefault
- func (o *SetActiveRealmsDefault) Code() int
- func (o *SetActiveRealmsDefault) Error() string
- func (o *SetActiveRealmsDefault) IsClientError() bool
- func (o *SetActiveRealmsDefault) IsCode(code int) bool
- func (o *SetActiveRealmsDefault) IsRedirect() bool
- func (o *SetActiveRealmsDefault) IsServerError() bool
- func (o *SetActiveRealmsDefault) IsSuccess() bool
- func (o *SetActiveRealmsDefault) String() string
- type SetActiveRealmsParams
- func NewSetActiveRealmsParams() *SetActiveRealmsParams
- func NewSetActiveRealmsParamsWithContext(ctx context.Context) *SetActiveRealmsParams
- func NewSetActiveRealmsParamsWithHTTPClient(client *http.Client) *SetActiveRealmsParams
- func NewSetActiveRealmsParamsWithTimeout(timeout time.Duration) *SetActiveRealmsParams
- func (o *SetActiveRealmsParams) SetBody(body []string)
- func (o *SetActiveRealmsParams) SetContext(ctx context.Context)
- func (o *SetActiveRealmsParams) SetDefaults()
- func (o *SetActiveRealmsParams) SetHTTPClient(client *http.Client)
- func (o *SetActiveRealmsParams) SetTimeout(timeout time.Duration)
- func (o *SetActiveRealmsParams) WithBody(body []string) *SetActiveRealmsParams
- func (o *SetActiveRealmsParams) WithContext(ctx context.Context) *SetActiveRealmsParams
- func (o *SetActiveRealmsParams) WithDefaults() *SetActiveRealmsParams
- func (o *SetActiveRealmsParams) WithHTTPClient(client *http.Client) *SetActiveRealmsParams
- func (o *SetActiveRealmsParams) WithTimeout(timeout time.Duration) *SetActiveRealmsParams
- func (o *SetActiveRealmsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type SetActiveRealmsReader
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 security management realms API
func (*Client) GetActiveRealms ¶
func (a *Client) GetActiveRealms(params *GetActiveRealmsParams, opts ...ClientOption) (*GetActiveRealmsOK, error)
GetActiveRealms lists the active realm i ds in order
func (*Client) GetRealms ¶
func (a *Client) GetRealms(params *GetRealmsParams, opts ...ClientOption) (*GetRealmsOK, error)
GetRealms lists the available realms
func (*Client) SetActiveRealms ¶
func (a *Client) SetActiveRealms(params *SetActiveRealmsParams, opts ...ClientOption) error
SetActiveRealms sets the active security realms in the order they should be used
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 { GetActiveRealms(params *GetActiveRealmsParams, opts ...ClientOption) (*GetActiveRealmsOK, error) GetRealms(params *GetRealmsParams, opts ...ClientOption) (*GetRealmsOK, error) SetActiveRealms(params *SetActiveRealmsParams, opts ...ClientOption) 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 security management realms API client.
type GetActiveRealmsOK ¶
type GetActiveRealmsOK struct {
Payload []string
}
GetActiveRealmsOK describes a response with status code 200, with default header values.
successful operation
func NewGetActiveRealmsOK ¶
func NewGetActiveRealmsOK() *GetActiveRealmsOK
NewGetActiveRealmsOK creates a GetActiveRealmsOK with default headers values
func (*GetActiveRealmsOK) Code ¶
func (o *GetActiveRealmsOK) Code() int
Code gets the status code for the get active realms o k response
func (*GetActiveRealmsOK) Error ¶
func (o *GetActiveRealmsOK) Error() string
func (*GetActiveRealmsOK) GetPayload ¶
func (o *GetActiveRealmsOK) GetPayload() []string
func (*GetActiveRealmsOK) IsClientError ¶
func (o *GetActiveRealmsOK) IsClientError() bool
IsClientError returns true when this get active realms o k response has a 4xx status code
func (*GetActiveRealmsOK) IsCode ¶
func (o *GetActiveRealmsOK) IsCode(code int) bool
IsCode returns true when this get active realms o k response a status code equal to that given
func (*GetActiveRealmsOK) IsRedirect ¶
func (o *GetActiveRealmsOK) IsRedirect() bool
IsRedirect returns true when this get active realms o k response has a 3xx status code
func (*GetActiveRealmsOK) IsServerError ¶
func (o *GetActiveRealmsOK) IsServerError() bool
IsServerError returns true when this get active realms o k response has a 5xx status code
func (*GetActiveRealmsOK) IsSuccess ¶
func (o *GetActiveRealmsOK) IsSuccess() bool
IsSuccess returns true when this get active realms o k response has a 2xx status code
func (*GetActiveRealmsOK) String ¶
func (o *GetActiveRealmsOK) String() string
type GetActiveRealmsParams ¶
type GetActiveRealmsParams struct { Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetActiveRealmsParams contains all the parameters to send to the API endpoint
for the get active realms operation. Typically these are written to a http.Request.
func NewGetActiveRealmsParams ¶
func NewGetActiveRealmsParams() *GetActiveRealmsParams
NewGetActiveRealmsParams creates a new GetActiveRealmsParams 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 NewGetActiveRealmsParamsWithContext ¶
func NewGetActiveRealmsParamsWithContext(ctx context.Context) *GetActiveRealmsParams
NewGetActiveRealmsParamsWithContext creates a new GetActiveRealmsParams object with the ability to set a context for a request.
func NewGetActiveRealmsParamsWithHTTPClient ¶
func NewGetActiveRealmsParamsWithHTTPClient(client *http.Client) *GetActiveRealmsParams
NewGetActiveRealmsParamsWithHTTPClient creates a new GetActiveRealmsParams object with the ability to set a custom HTTPClient for a request.
func NewGetActiveRealmsParamsWithTimeout ¶
func NewGetActiveRealmsParamsWithTimeout(timeout time.Duration) *GetActiveRealmsParams
NewGetActiveRealmsParamsWithTimeout creates a new GetActiveRealmsParams object with the ability to set a timeout on a request.
func (*GetActiveRealmsParams) SetContext ¶
func (o *GetActiveRealmsParams) SetContext(ctx context.Context)
SetContext adds the context to the get active realms params
func (*GetActiveRealmsParams) SetDefaults ¶
func (o *GetActiveRealmsParams) SetDefaults()
SetDefaults hydrates default values in the get active realms params (not the query body).
All values with no default are reset to their zero value.
func (*GetActiveRealmsParams) SetHTTPClient ¶
func (o *GetActiveRealmsParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get active realms params
func (*GetActiveRealmsParams) SetTimeout ¶
func (o *GetActiveRealmsParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get active realms params
func (*GetActiveRealmsParams) WithContext ¶
func (o *GetActiveRealmsParams) WithContext(ctx context.Context) *GetActiveRealmsParams
WithContext adds the context to the get active realms params
func (*GetActiveRealmsParams) WithDefaults ¶
func (o *GetActiveRealmsParams) WithDefaults() *GetActiveRealmsParams
WithDefaults hydrates default values in the get active realms params (not the query body).
All values with no default are reset to their zero value.
func (*GetActiveRealmsParams) WithHTTPClient ¶
func (o *GetActiveRealmsParams) WithHTTPClient(client *http.Client) *GetActiveRealmsParams
WithHTTPClient adds the HTTPClient to the get active realms params
func (*GetActiveRealmsParams) WithTimeout ¶
func (o *GetActiveRealmsParams) WithTimeout(timeout time.Duration) *GetActiveRealmsParams
WithTimeout adds the timeout to the get active realms params
func (*GetActiveRealmsParams) WriteToRequest ¶
func (o *GetActiveRealmsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetActiveRealmsReader ¶
type GetActiveRealmsReader struct {
// contains filtered or unexported fields
}
GetActiveRealmsReader is a Reader for the GetActiveRealms structure.
func (*GetActiveRealmsReader) ReadResponse ¶
func (o *GetActiveRealmsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetRealmsOK ¶
type GetRealmsOK struct {
Payload []*models.RealmAPIXO
}
GetRealmsOK describes a response with status code 200, with default header values.
successful operation
func NewGetRealmsOK ¶
func NewGetRealmsOK() *GetRealmsOK
NewGetRealmsOK creates a GetRealmsOK with default headers values
func (*GetRealmsOK) Code ¶
func (o *GetRealmsOK) Code() int
Code gets the status code for the get realms o k response
func (*GetRealmsOK) Error ¶
func (o *GetRealmsOK) Error() string
func (*GetRealmsOK) GetPayload ¶
func (o *GetRealmsOK) GetPayload() []*models.RealmAPIXO
func (*GetRealmsOK) IsClientError ¶
func (o *GetRealmsOK) IsClientError() bool
IsClientError returns true when this get realms o k response has a 4xx status code
func (*GetRealmsOK) IsCode ¶
func (o *GetRealmsOK) IsCode(code int) bool
IsCode returns true when this get realms o k response a status code equal to that given
func (*GetRealmsOK) IsRedirect ¶
func (o *GetRealmsOK) IsRedirect() bool
IsRedirect returns true when this get realms o k response has a 3xx status code
func (*GetRealmsOK) IsServerError ¶
func (o *GetRealmsOK) IsServerError() bool
IsServerError returns true when this get realms o k response has a 5xx status code
func (*GetRealmsOK) IsSuccess ¶
func (o *GetRealmsOK) IsSuccess() bool
IsSuccess returns true when this get realms o k response has a 2xx status code
func (*GetRealmsOK) String ¶
func (o *GetRealmsOK) String() string
type GetRealmsParams ¶
type GetRealmsParams struct { Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetRealmsParams contains all the parameters to send to the API endpoint
for the get realms operation. Typically these are written to a http.Request.
func NewGetRealmsParams ¶
func NewGetRealmsParams() *GetRealmsParams
NewGetRealmsParams creates a new GetRealmsParams 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 NewGetRealmsParamsWithContext ¶
func NewGetRealmsParamsWithContext(ctx context.Context) *GetRealmsParams
NewGetRealmsParamsWithContext creates a new GetRealmsParams object with the ability to set a context for a request.
func NewGetRealmsParamsWithHTTPClient ¶
func NewGetRealmsParamsWithHTTPClient(client *http.Client) *GetRealmsParams
NewGetRealmsParamsWithHTTPClient creates a new GetRealmsParams object with the ability to set a custom HTTPClient for a request.
func NewGetRealmsParamsWithTimeout ¶
func NewGetRealmsParamsWithTimeout(timeout time.Duration) *GetRealmsParams
NewGetRealmsParamsWithTimeout creates a new GetRealmsParams object with the ability to set a timeout on a request.
func (*GetRealmsParams) SetContext ¶
func (o *GetRealmsParams) SetContext(ctx context.Context)
SetContext adds the context to the get realms params
func (*GetRealmsParams) SetDefaults ¶
func (o *GetRealmsParams) SetDefaults()
SetDefaults hydrates default values in the get realms params (not the query body).
All values with no default are reset to their zero value.
func (*GetRealmsParams) SetHTTPClient ¶
func (o *GetRealmsParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get realms params
func (*GetRealmsParams) SetTimeout ¶
func (o *GetRealmsParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get realms params
func (*GetRealmsParams) WithContext ¶
func (o *GetRealmsParams) WithContext(ctx context.Context) *GetRealmsParams
WithContext adds the context to the get realms params
func (*GetRealmsParams) WithDefaults ¶
func (o *GetRealmsParams) WithDefaults() *GetRealmsParams
WithDefaults hydrates default values in the get realms params (not the query body).
All values with no default are reset to their zero value.
func (*GetRealmsParams) WithHTTPClient ¶
func (o *GetRealmsParams) WithHTTPClient(client *http.Client) *GetRealmsParams
WithHTTPClient adds the HTTPClient to the get realms params
func (*GetRealmsParams) WithTimeout ¶
func (o *GetRealmsParams) WithTimeout(timeout time.Duration) *GetRealmsParams
WithTimeout adds the timeout to the get realms params
func (*GetRealmsParams) WriteToRequest ¶
func (o *GetRealmsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetRealmsReader ¶
type GetRealmsReader struct {
// contains filtered or unexported fields
}
GetRealmsReader is a Reader for the GetRealms structure.
func (*GetRealmsReader) ReadResponse ¶
func (o *GetRealmsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type SetActiveRealmsDefault ¶
type SetActiveRealmsDefault struct {
// contains filtered or unexported fields
}
SetActiveRealmsDefault describes a response with status code -1, with default header values.
successful operation
func NewSetActiveRealmsDefault ¶
func NewSetActiveRealmsDefault(code int) *SetActiveRealmsDefault
NewSetActiveRealmsDefault creates a SetActiveRealmsDefault with default headers values
func (*SetActiveRealmsDefault) Code ¶
func (o *SetActiveRealmsDefault) Code() int
Code gets the status code for the set active realms default response
func (*SetActiveRealmsDefault) Error ¶
func (o *SetActiveRealmsDefault) Error() string
func (*SetActiveRealmsDefault) IsClientError ¶
func (o *SetActiveRealmsDefault) IsClientError() bool
IsClientError returns true when this set active realms default response has a 4xx status code
func (*SetActiveRealmsDefault) IsCode ¶
func (o *SetActiveRealmsDefault) IsCode(code int) bool
IsCode returns true when this set active realms default response a status code equal to that given
func (*SetActiveRealmsDefault) IsRedirect ¶
func (o *SetActiveRealmsDefault) IsRedirect() bool
IsRedirect returns true when this set active realms default response has a 3xx status code
func (*SetActiveRealmsDefault) IsServerError ¶
func (o *SetActiveRealmsDefault) IsServerError() bool
IsServerError returns true when this set active realms default response has a 5xx status code
func (*SetActiveRealmsDefault) IsSuccess ¶
func (o *SetActiveRealmsDefault) IsSuccess() bool
IsSuccess returns true when this set active realms default response has a 2xx status code
func (*SetActiveRealmsDefault) String ¶
func (o *SetActiveRealmsDefault) String() string
type SetActiveRealmsParams ¶
type SetActiveRealmsParams struct { /* Body. The realm IDs */ Body []string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
SetActiveRealmsParams contains all the parameters to send to the API endpoint
for the set active realms operation. Typically these are written to a http.Request.
func NewSetActiveRealmsParams ¶
func NewSetActiveRealmsParams() *SetActiveRealmsParams
NewSetActiveRealmsParams creates a new SetActiveRealmsParams 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 NewSetActiveRealmsParamsWithContext ¶
func NewSetActiveRealmsParamsWithContext(ctx context.Context) *SetActiveRealmsParams
NewSetActiveRealmsParamsWithContext creates a new SetActiveRealmsParams object with the ability to set a context for a request.
func NewSetActiveRealmsParamsWithHTTPClient ¶
func NewSetActiveRealmsParamsWithHTTPClient(client *http.Client) *SetActiveRealmsParams
NewSetActiveRealmsParamsWithHTTPClient creates a new SetActiveRealmsParams object with the ability to set a custom HTTPClient for a request.
func NewSetActiveRealmsParamsWithTimeout ¶
func NewSetActiveRealmsParamsWithTimeout(timeout time.Duration) *SetActiveRealmsParams
NewSetActiveRealmsParamsWithTimeout creates a new SetActiveRealmsParams object with the ability to set a timeout on a request.
func (*SetActiveRealmsParams) SetBody ¶
func (o *SetActiveRealmsParams) SetBody(body []string)
SetBody adds the body to the set active realms params
func (*SetActiveRealmsParams) SetContext ¶
func (o *SetActiveRealmsParams) SetContext(ctx context.Context)
SetContext adds the context to the set active realms params
func (*SetActiveRealmsParams) SetDefaults ¶
func (o *SetActiveRealmsParams) SetDefaults()
SetDefaults hydrates default values in the set active realms params (not the query body).
All values with no default are reset to their zero value.
func (*SetActiveRealmsParams) SetHTTPClient ¶
func (o *SetActiveRealmsParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the set active realms params
func (*SetActiveRealmsParams) SetTimeout ¶
func (o *SetActiveRealmsParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the set active realms params
func (*SetActiveRealmsParams) WithBody ¶
func (o *SetActiveRealmsParams) WithBody(body []string) *SetActiveRealmsParams
WithBody adds the body to the set active realms params
func (*SetActiveRealmsParams) WithContext ¶
func (o *SetActiveRealmsParams) WithContext(ctx context.Context) *SetActiveRealmsParams
WithContext adds the context to the set active realms params
func (*SetActiveRealmsParams) WithDefaults ¶
func (o *SetActiveRealmsParams) WithDefaults() *SetActiveRealmsParams
WithDefaults hydrates default values in the set active realms params (not the query body).
All values with no default are reset to their zero value.
func (*SetActiveRealmsParams) WithHTTPClient ¶
func (o *SetActiveRealmsParams) WithHTTPClient(client *http.Client) *SetActiveRealmsParams
WithHTTPClient adds the HTTPClient to the set active realms params
func (*SetActiveRealmsParams) WithTimeout ¶
func (o *SetActiveRealmsParams) WithTimeout(timeout time.Duration) *SetActiveRealmsParams
WithTimeout adds the timeout to the set active realms params
func (*SetActiveRealmsParams) WriteToRequest ¶
func (o *SetActiveRealmsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type SetActiveRealmsReader ¶
type SetActiveRealmsReader struct {
// contains filtered or unexported fields
}
SetActiveRealmsReader is a Reader for the SetActiveRealms structure.
func (*SetActiveRealmsReader) ReadResponse ¶
func (o *SetActiveRealmsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.