Documentation ¶
Index ¶
- type Client
- type ClientOption
- type ClientService
- type ListPoliciesOK
- type ListPoliciesParams
- func (o *ListPoliciesParams) SetBody(body models.IdmListPolicyGroupsRequest)
- func (o *ListPoliciesParams) SetContext(ctx context.Context)
- func (o *ListPoliciesParams) SetDefaults()
- func (o *ListPoliciesParams) SetHTTPClient(client *http.Client)
- func (o *ListPoliciesParams) SetTimeout(timeout time.Duration)
- func (o *ListPoliciesParams) WithBody(body models.IdmListPolicyGroupsRequest) *ListPoliciesParams
- func (o *ListPoliciesParams) WithContext(ctx context.Context) *ListPoliciesParams
- func (o *ListPoliciesParams) WithDefaults() *ListPoliciesParams
- func (o *ListPoliciesParams) WithHTTPClient(client *http.Client) *ListPoliciesParams
- func (o *ListPoliciesParams) WithTimeout(timeout time.Duration) *ListPoliciesParams
- func (o *ListPoliciesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ListPoliciesReader
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 policy service API
func (*Client) ListPolicies ¶
func (a *Client) ListPolicies(params *ListPoliciesParams, opts ...ClientOption) (*ListPoliciesOK, error)
ListPolicies lists all defined security policies
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 { ListPolicies(params *ListPoliciesParams, opts ...ClientOption) (*ListPoliciesOK, 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 policy service API client.
type ListPoliciesOK ¶
type ListPoliciesOK struct {
Payload *models.IdmListPolicyGroupsResponse
}
ListPoliciesOK describes a response with status code 200, with default header values.
ListPoliciesOK list policies o k
func NewListPoliciesOK ¶
func NewListPoliciesOK() *ListPoliciesOK
NewListPoliciesOK creates a ListPoliciesOK with default headers values
func (*ListPoliciesOK) Error ¶
func (o *ListPoliciesOK) Error() string
func (*ListPoliciesOK) GetPayload ¶
func (o *ListPoliciesOK) GetPayload() *models.IdmListPolicyGroupsResponse
type ListPoliciesParams ¶
type ListPoliciesParams struct { // Body. Body models.IdmListPolicyGroupsRequest Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
ListPoliciesParams contains all the parameters to send to the API endpoint
for the list policies operation. Typically these are written to a http.Request.
func NewListPoliciesParams ¶
func NewListPoliciesParams() *ListPoliciesParams
NewListPoliciesParams creates a new ListPoliciesParams 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 NewListPoliciesParamsWithContext ¶
func NewListPoliciesParamsWithContext(ctx context.Context) *ListPoliciesParams
NewListPoliciesParamsWithContext creates a new ListPoliciesParams object with the ability to set a context for a request.
func NewListPoliciesParamsWithHTTPClient ¶
func NewListPoliciesParamsWithHTTPClient(client *http.Client) *ListPoliciesParams
NewListPoliciesParamsWithHTTPClient creates a new ListPoliciesParams object with the ability to set a custom HTTPClient for a request.
func NewListPoliciesParamsWithTimeout ¶
func NewListPoliciesParamsWithTimeout(timeout time.Duration) *ListPoliciesParams
NewListPoliciesParamsWithTimeout creates a new ListPoliciesParams object with the ability to set a timeout on a request.
func (*ListPoliciesParams) SetBody ¶
func (o *ListPoliciesParams) SetBody(body models.IdmListPolicyGroupsRequest)
SetBody adds the body to the list policies params
func (*ListPoliciesParams) SetContext ¶
func (o *ListPoliciesParams) SetContext(ctx context.Context)
SetContext adds the context to the list policies params
func (*ListPoliciesParams) SetDefaults ¶
func (o *ListPoliciesParams) SetDefaults()
SetDefaults hydrates default values in the list policies params (not the query body).
All values with no default are reset to their zero value.
func (*ListPoliciesParams) SetHTTPClient ¶
func (o *ListPoliciesParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the list policies params
func (*ListPoliciesParams) SetTimeout ¶
func (o *ListPoliciesParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the list policies params
func (*ListPoliciesParams) WithBody ¶
func (o *ListPoliciesParams) WithBody(body models.IdmListPolicyGroupsRequest) *ListPoliciesParams
WithBody adds the body to the list policies params
func (*ListPoliciesParams) WithContext ¶
func (o *ListPoliciesParams) WithContext(ctx context.Context) *ListPoliciesParams
WithContext adds the context to the list policies params
func (*ListPoliciesParams) WithDefaults ¶
func (o *ListPoliciesParams) WithDefaults() *ListPoliciesParams
WithDefaults hydrates default values in the list policies params (not the query body).
All values with no default are reset to their zero value.
func (*ListPoliciesParams) WithHTTPClient ¶
func (o *ListPoliciesParams) WithHTTPClient(client *http.Client) *ListPoliciesParams
WithHTTPClient adds the HTTPClient to the list policies params
func (*ListPoliciesParams) WithTimeout ¶
func (o *ListPoliciesParams) WithTimeout(timeout time.Duration) *ListPoliciesParams
WithTimeout adds the timeout to the list policies params
func (*ListPoliciesParams) WriteToRequest ¶
func (o *ListPoliciesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type ListPoliciesReader ¶
type ListPoliciesReader struct {
// contains filtered or unexported fields
}
ListPoliciesReader is a Reader for the ListPolicies structure.
func (*ListPoliciesReader) ReadResponse ¶
func (o *ListPoliciesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.