Documentation ¶
Index ¶
- type Client
- type ClientOption
- type ClientService
- type ListPoliciesForbidden
- func (o *ListPoliciesForbidden) Code() int
- func (o *ListPoliciesForbidden) Error() string
- func (o *ListPoliciesForbidden) GetPayload() *models.RestError
- func (o *ListPoliciesForbidden) IsClientError() bool
- func (o *ListPoliciesForbidden) IsCode(code int) bool
- func (o *ListPoliciesForbidden) IsRedirect() bool
- func (o *ListPoliciesForbidden) IsServerError() bool
- func (o *ListPoliciesForbidden) IsSuccess() bool
- func (o *ListPoliciesForbidden) String() string
- type ListPoliciesInternalServerError
- func (o *ListPoliciesInternalServerError) Code() int
- func (o *ListPoliciesInternalServerError) Error() string
- func (o *ListPoliciesInternalServerError) GetPayload() *models.RestError
- func (o *ListPoliciesInternalServerError) IsClientError() bool
- func (o *ListPoliciesInternalServerError) IsCode(code int) bool
- func (o *ListPoliciesInternalServerError) IsRedirect() bool
- func (o *ListPoliciesInternalServerError) IsServerError() bool
- func (o *ListPoliciesInternalServerError) IsSuccess() bool
- func (o *ListPoliciesInternalServerError) String() string
- type ListPoliciesNotFound
- func (o *ListPoliciesNotFound) Code() int
- func (o *ListPoliciesNotFound) Error() string
- func (o *ListPoliciesNotFound) GetPayload() *models.RestError
- func (o *ListPoliciesNotFound) IsClientError() bool
- func (o *ListPoliciesNotFound) IsCode(code int) bool
- func (o *ListPoliciesNotFound) IsRedirect() bool
- func (o *ListPoliciesNotFound) IsServerError() bool
- func (o *ListPoliciesNotFound) IsSuccess() bool
- func (o *ListPoliciesNotFound) String() string
- type ListPoliciesOK
- func (o *ListPoliciesOK) Code() int
- func (o *ListPoliciesOK) Error() string
- func (o *ListPoliciesOK) GetPayload() *models.IdmListPolicyGroupsResponse
- func (o *ListPoliciesOK) IsClientError() bool
- func (o *ListPoliciesOK) IsCode(code int) bool
- func (o *ListPoliciesOK) IsRedirect() bool
- func (o *ListPoliciesOK) IsServerError() bool
- func (o *ListPoliciesOK) IsSuccess() bool
- func (o *ListPoliciesOK) String() string
- 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
- type ListPoliciesUnauthorized
- func (o *ListPoliciesUnauthorized) Code() int
- func (o *ListPoliciesUnauthorized) Error() string
- func (o *ListPoliciesUnauthorized) IsClientError() bool
- func (o *ListPoliciesUnauthorized) IsCode(code int) bool
- func (o *ListPoliciesUnauthorized) IsRedirect() bool
- func (o *ListPoliciesUnauthorized) IsServerError() bool
- func (o *ListPoliciesUnauthorized) IsSuccess() bool
- func (o *ListPoliciesUnauthorized) String() string
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 ListPoliciesForbidden ¶
ListPoliciesForbidden describes a response with status code 403, with default header values.
User has no permission to access this resource
func NewListPoliciesForbidden ¶
func NewListPoliciesForbidden() *ListPoliciesForbidden
NewListPoliciesForbidden creates a ListPoliciesForbidden with default headers values
func (*ListPoliciesForbidden) Code ¶
func (o *ListPoliciesForbidden) Code() int
Code gets the status code for the list policies forbidden response
func (*ListPoliciesForbidden) Error ¶
func (o *ListPoliciesForbidden) Error() string
func (*ListPoliciesForbidden) GetPayload ¶
func (o *ListPoliciesForbidden) GetPayload() *models.RestError
func (*ListPoliciesForbidden) IsClientError ¶
func (o *ListPoliciesForbidden) IsClientError() bool
IsClientError returns true when this list policies forbidden response has a 4xx status code
func (*ListPoliciesForbidden) IsCode ¶
func (o *ListPoliciesForbidden) IsCode(code int) bool
IsCode returns true when this list policies forbidden response a status code equal to that given
func (*ListPoliciesForbidden) IsRedirect ¶
func (o *ListPoliciesForbidden) IsRedirect() bool
IsRedirect returns true when this list policies forbidden response has a 3xx status code
func (*ListPoliciesForbidden) IsServerError ¶
func (o *ListPoliciesForbidden) IsServerError() bool
IsServerError returns true when this list policies forbidden response has a 5xx status code
func (*ListPoliciesForbidden) IsSuccess ¶
func (o *ListPoliciesForbidden) IsSuccess() bool
IsSuccess returns true when this list policies forbidden response has a 2xx status code
func (*ListPoliciesForbidden) String ¶
func (o *ListPoliciesForbidden) String() string
type ListPoliciesInternalServerError ¶
ListPoliciesInternalServerError describes a response with status code 500, with default header values.
An internal error occurred in the backend
func NewListPoliciesInternalServerError ¶
func NewListPoliciesInternalServerError() *ListPoliciesInternalServerError
NewListPoliciesInternalServerError creates a ListPoliciesInternalServerError with default headers values
func (*ListPoliciesInternalServerError) Code ¶
func (o *ListPoliciesInternalServerError) Code() int
Code gets the status code for the list policies internal server error response
func (*ListPoliciesInternalServerError) Error ¶
func (o *ListPoliciesInternalServerError) Error() string
func (*ListPoliciesInternalServerError) GetPayload ¶
func (o *ListPoliciesInternalServerError) GetPayload() *models.RestError
func (*ListPoliciesInternalServerError) IsClientError ¶
func (o *ListPoliciesInternalServerError) IsClientError() bool
IsClientError returns true when this list policies internal server error response has a 4xx status code
func (*ListPoliciesInternalServerError) IsCode ¶
func (o *ListPoliciesInternalServerError) IsCode(code int) bool
IsCode returns true when this list policies internal server error response a status code equal to that given
func (*ListPoliciesInternalServerError) IsRedirect ¶
func (o *ListPoliciesInternalServerError) IsRedirect() bool
IsRedirect returns true when this list policies internal server error response has a 3xx status code
func (*ListPoliciesInternalServerError) IsServerError ¶
func (o *ListPoliciesInternalServerError) IsServerError() bool
IsServerError returns true when this list policies internal server error response has a 5xx status code
func (*ListPoliciesInternalServerError) IsSuccess ¶
func (o *ListPoliciesInternalServerError) IsSuccess() bool
IsSuccess returns true when this list policies internal server error response has a 2xx status code
func (*ListPoliciesInternalServerError) String ¶
func (o *ListPoliciesInternalServerError) String() string
type ListPoliciesNotFound ¶
ListPoliciesNotFound describes a response with status code 404, with default header values.
Resource does not exist in the system
func NewListPoliciesNotFound ¶
func NewListPoliciesNotFound() *ListPoliciesNotFound
NewListPoliciesNotFound creates a ListPoliciesNotFound with default headers values
func (*ListPoliciesNotFound) Code ¶
func (o *ListPoliciesNotFound) Code() int
Code gets the status code for the list policies not found response
func (*ListPoliciesNotFound) Error ¶
func (o *ListPoliciesNotFound) Error() string
func (*ListPoliciesNotFound) GetPayload ¶
func (o *ListPoliciesNotFound) GetPayload() *models.RestError
func (*ListPoliciesNotFound) IsClientError ¶
func (o *ListPoliciesNotFound) IsClientError() bool
IsClientError returns true when this list policies not found response has a 4xx status code
func (*ListPoliciesNotFound) IsCode ¶
func (o *ListPoliciesNotFound) IsCode(code int) bool
IsCode returns true when this list policies not found response a status code equal to that given
func (*ListPoliciesNotFound) IsRedirect ¶
func (o *ListPoliciesNotFound) IsRedirect() bool
IsRedirect returns true when this list policies not found response has a 3xx status code
func (*ListPoliciesNotFound) IsServerError ¶
func (o *ListPoliciesNotFound) IsServerError() bool
IsServerError returns true when this list policies not found response has a 5xx status code
func (*ListPoliciesNotFound) IsSuccess ¶
func (o *ListPoliciesNotFound) IsSuccess() bool
IsSuccess returns true when this list policies not found response has a 2xx status code
func (*ListPoliciesNotFound) String ¶
func (o *ListPoliciesNotFound) String() string
type ListPoliciesOK ¶
type ListPoliciesOK struct {
Payload *models.IdmListPolicyGroupsResponse
}
ListPoliciesOK describes a response with status code 200, with default header values.
A successful response.
func NewListPoliciesOK ¶
func NewListPoliciesOK() *ListPoliciesOK
NewListPoliciesOK creates a ListPoliciesOK with default headers values
func (*ListPoliciesOK) Code ¶
func (o *ListPoliciesOK) Code() int
Code gets the status code for the list policies o k response
func (*ListPoliciesOK) Error ¶
func (o *ListPoliciesOK) Error() string
func (*ListPoliciesOK) GetPayload ¶
func (o *ListPoliciesOK) GetPayload() *models.IdmListPolicyGroupsResponse
func (*ListPoliciesOK) IsClientError ¶
func (o *ListPoliciesOK) IsClientError() bool
IsClientError returns true when this list policies o k response has a 4xx status code
func (*ListPoliciesOK) IsCode ¶
func (o *ListPoliciesOK) IsCode(code int) bool
IsCode returns true when this list policies o k response a status code equal to that given
func (*ListPoliciesOK) IsRedirect ¶
func (o *ListPoliciesOK) IsRedirect() bool
IsRedirect returns true when this list policies o k response has a 3xx status code
func (*ListPoliciesOK) IsServerError ¶
func (o *ListPoliciesOK) IsServerError() bool
IsServerError returns true when this list policies o k response has a 5xx status code
func (*ListPoliciesOK) IsSuccess ¶
func (o *ListPoliciesOK) IsSuccess() bool
IsSuccess returns true when this list policies o k response has a 2xx status code
func (*ListPoliciesOK) String ¶
func (o *ListPoliciesOK) String() string
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.
type ListPoliciesUnauthorized ¶
type ListPoliciesUnauthorized struct { }
ListPoliciesUnauthorized describes a response with status code 401, with default header values.
User is not authenticated
func NewListPoliciesUnauthorized ¶
func NewListPoliciesUnauthorized() *ListPoliciesUnauthorized
NewListPoliciesUnauthorized creates a ListPoliciesUnauthorized with default headers values
func (*ListPoliciesUnauthorized) Code ¶
func (o *ListPoliciesUnauthorized) Code() int
Code gets the status code for the list policies unauthorized response
func (*ListPoliciesUnauthorized) Error ¶
func (o *ListPoliciesUnauthorized) Error() string
func (*ListPoliciesUnauthorized) IsClientError ¶
func (o *ListPoliciesUnauthorized) IsClientError() bool
IsClientError returns true when this list policies unauthorized response has a 4xx status code
func (*ListPoliciesUnauthorized) IsCode ¶
func (o *ListPoliciesUnauthorized) IsCode(code int) bool
IsCode returns true when this list policies unauthorized response a status code equal to that given
func (*ListPoliciesUnauthorized) IsRedirect ¶
func (o *ListPoliciesUnauthorized) IsRedirect() bool
IsRedirect returns true when this list policies unauthorized response has a 3xx status code
func (*ListPoliciesUnauthorized) IsServerError ¶
func (o *ListPoliciesUnauthorized) IsServerError() bool
IsServerError returns true when this list policies unauthorized response has a 5xx status code
func (*ListPoliciesUnauthorized) IsSuccess ¶
func (o *ListPoliciesUnauthorized) IsSuccess() bool
IsSuccess returns true when this list policies unauthorized response has a 2xx status code
func (*ListPoliciesUnauthorized) String ¶
func (o *ListPoliciesUnauthorized) String() string