policy_service

package
v3.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 21, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

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

type ListPoliciesForbidden struct {
	Payload *models.RestError
}
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) Error

func (o *ListPoliciesForbidden) Error() string

func (*ListPoliciesForbidden) GetPayload

func (o *ListPoliciesForbidden) GetPayload() *models.RestError

type ListPoliciesInternalServerError

type ListPoliciesInternalServerError struct {
	Payload *models.RestError
}
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) Error

func (*ListPoliciesInternalServerError) GetPayload

type ListPoliciesNotFound

type ListPoliciesNotFound struct {
	Payload *models.RestError
}
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) Error

func (o *ListPoliciesNotFound) Error() string

func (*ListPoliciesNotFound) GetPayload

func (o *ListPoliciesNotFound) GetPayload() *models.RestError

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

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

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

WithBody adds the body to the list policies params

func (*ListPoliciesParams) WithContext

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) Error

func (o *ListPoliciesUnauthorized) Error() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL