Documentation
¶
Index ¶
- type Client
- func (a *Client) CreatePolicies(params *CreatePoliciesParams, authInfo runtime.ClientAuthInfoWriter, ...) (*CreatePoliciesOK, error)
- func (a *Client) CreatePolicy(params *CreatePolicyParams, authInfo runtime.ClientAuthInfoWriter, ...) (*CreatePolicyOK, error)
- func (a *Client) DeletePolicy(params *DeletePolicyParams, authInfo runtime.ClientAuthInfoWriter, ...) (*DeletePolicyOK, error)
- func (a *Client) GetPolicies(params *GetPoliciesParams, authInfo runtime.ClientAuthInfoWriter, ...) (*GetPoliciesOK, error)
- func (a *Client) GetPolicy(params *GetPolicyParams, authInfo runtime.ClientAuthInfoWriter, ...) (*GetPolicyOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- func (a *Client) UpdatePolicy(params *UpdatePolicyParams, authInfo runtime.ClientAuthInfoWriter, ...) (*UpdatePolicyOK, error)
- type ClientOption
- type ClientService
- type CreatePoliciesOK
- func (o *CreatePoliciesOK) Code() int
- func (o *CreatePoliciesOK) Error() string
- func (o *CreatePoliciesOK) GetPayload() *models.ActivityResponse
- func (o *CreatePoliciesOK) IsClientError() bool
- func (o *CreatePoliciesOK) IsCode(code int) bool
- func (o *CreatePoliciesOK) IsRedirect() bool
- func (o *CreatePoliciesOK) IsServerError() bool
- func (o *CreatePoliciesOK) IsSuccess() bool
- func (o *CreatePoliciesOK) String() string
- type CreatePoliciesParams
- func NewCreatePoliciesParams() *CreatePoliciesParams
- func NewCreatePoliciesParamsWithContext(ctx context.Context) *CreatePoliciesParams
- func NewCreatePoliciesParamsWithHTTPClient(client *http.Client) *CreatePoliciesParams
- func NewCreatePoliciesParamsWithTimeout(timeout time.Duration) *CreatePoliciesParams
- func (o *CreatePoliciesParams) SetBody(body *models.CreatePoliciesRequest)
- func (o *CreatePoliciesParams) SetContext(ctx context.Context)
- func (o *CreatePoliciesParams) SetDefaults()
- func (o *CreatePoliciesParams) SetHTTPClient(client *http.Client)
- func (o *CreatePoliciesParams) SetTimeout(timeout time.Duration)
- func (o *CreatePoliciesParams) WithBody(body *models.CreatePoliciesRequest) *CreatePoliciesParams
- func (o *CreatePoliciesParams) WithContext(ctx context.Context) *CreatePoliciesParams
- func (o *CreatePoliciesParams) WithDefaults() *CreatePoliciesParams
- func (o *CreatePoliciesParams) WithHTTPClient(client *http.Client) *CreatePoliciesParams
- func (o *CreatePoliciesParams) WithTimeout(timeout time.Duration) *CreatePoliciesParams
- func (o *CreatePoliciesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CreatePoliciesReader
- type CreatePolicyOK
- func (o *CreatePolicyOK) Code() int
- func (o *CreatePolicyOK) Error() string
- func (o *CreatePolicyOK) GetPayload() *models.ActivityResponse
- func (o *CreatePolicyOK) IsClientError() bool
- func (o *CreatePolicyOK) IsCode(code int) bool
- func (o *CreatePolicyOK) IsRedirect() bool
- func (o *CreatePolicyOK) IsServerError() bool
- func (o *CreatePolicyOK) IsSuccess() bool
- func (o *CreatePolicyOK) String() string
- type CreatePolicyParams
- func (o *CreatePolicyParams) SetBody(body *models.CreatePolicyRequest)
- func (o *CreatePolicyParams) SetContext(ctx context.Context)
- func (o *CreatePolicyParams) SetDefaults()
- func (o *CreatePolicyParams) SetHTTPClient(client *http.Client)
- func (o *CreatePolicyParams) SetTimeout(timeout time.Duration)
- func (o *CreatePolicyParams) WithBody(body *models.CreatePolicyRequest) *CreatePolicyParams
- func (o *CreatePolicyParams) WithContext(ctx context.Context) *CreatePolicyParams
- func (o *CreatePolicyParams) WithDefaults() *CreatePolicyParams
- func (o *CreatePolicyParams) WithHTTPClient(client *http.Client) *CreatePolicyParams
- func (o *CreatePolicyParams) WithTimeout(timeout time.Duration) *CreatePolicyParams
- func (o *CreatePolicyParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CreatePolicyReader
- type DeletePolicyOK
- func (o *DeletePolicyOK) Code() int
- func (o *DeletePolicyOK) Error() string
- func (o *DeletePolicyOK) GetPayload() *models.ActivityResponse
- func (o *DeletePolicyOK) IsClientError() bool
- func (o *DeletePolicyOK) IsCode(code int) bool
- func (o *DeletePolicyOK) IsRedirect() bool
- func (o *DeletePolicyOK) IsServerError() bool
- func (o *DeletePolicyOK) IsSuccess() bool
- func (o *DeletePolicyOK) String() string
- type DeletePolicyParams
- func (o *DeletePolicyParams) SetBody(body *models.DeletePolicyRequest)
- func (o *DeletePolicyParams) SetContext(ctx context.Context)
- func (o *DeletePolicyParams) SetDefaults()
- func (o *DeletePolicyParams) SetHTTPClient(client *http.Client)
- func (o *DeletePolicyParams) SetTimeout(timeout time.Duration)
- func (o *DeletePolicyParams) WithBody(body *models.DeletePolicyRequest) *DeletePolicyParams
- func (o *DeletePolicyParams) WithContext(ctx context.Context) *DeletePolicyParams
- func (o *DeletePolicyParams) WithDefaults() *DeletePolicyParams
- func (o *DeletePolicyParams) WithHTTPClient(client *http.Client) *DeletePolicyParams
- func (o *DeletePolicyParams) WithTimeout(timeout time.Duration) *DeletePolicyParams
- func (o *DeletePolicyParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DeletePolicyReader
- type GetPoliciesOK
- func (o *GetPoliciesOK) Code() int
- func (o *GetPoliciesOK) Error() string
- func (o *GetPoliciesOK) GetPayload() *models.GetPoliciesResponse
- func (o *GetPoliciesOK) IsClientError() bool
- func (o *GetPoliciesOK) IsCode(code int) bool
- func (o *GetPoliciesOK) IsRedirect() bool
- func (o *GetPoliciesOK) IsServerError() bool
- func (o *GetPoliciesOK) IsSuccess() bool
- func (o *GetPoliciesOK) String() string
- type GetPoliciesParams
- func (o *GetPoliciesParams) SetBody(body *models.GetPoliciesRequest)
- func (o *GetPoliciesParams) SetContext(ctx context.Context)
- func (o *GetPoliciesParams) SetDefaults()
- func (o *GetPoliciesParams) SetHTTPClient(client *http.Client)
- func (o *GetPoliciesParams) SetTimeout(timeout time.Duration)
- func (o *GetPoliciesParams) WithBody(body *models.GetPoliciesRequest) *GetPoliciesParams
- func (o *GetPoliciesParams) WithContext(ctx context.Context) *GetPoliciesParams
- func (o *GetPoliciesParams) WithDefaults() *GetPoliciesParams
- func (o *GetPoliciesParams) WithHTTPClient(client *http.Client) *GetPoliciesParams
- func (o *GetPoliciesParams) WithTimeout(timeout time.Duration) *GetPoliciesParams
- func (o *GetPoliciesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetPoliciesReader
- type GetPolicyOK
- func (o *GetPolicyOK) Code() int
- func (o *GetPolicyOK) Error() string
- func (o *GetPolicyOK) GetPayload() *models.GetPolicyResponse
- func (o *GetPolicyOK) IsClientError() bool
- func (o *GetPolicyOK) IsCode(code int) bool
- func (o *GetPolicyOK) IsRedirect() bool
- func (o *GetPolicyOK) IsServerError() bool
- func (o *GetPolicyOK) IsSuccess() bool
- func (o *GetPolicyOK) String() string
- type GetPolicyParams
- func (o *GetPolicyParams) SetBody(body *models.GetPolicyRequest)
- func (o *GetPolicyParams) SetContext(ctx context.Context)
- func (o *GetPolicyParams) SetDefaults()
- func (o *GetPolicyParams) SetHTTPClient(client *http.Client)
- func (o *GetPolicyParams) SetTimeout(timeout time.Duration)
- func (o *GetPolicyParams) WithBody(body *models.GetPolicyRequest) *GetPolicyParams
- func (o *GetPolicyParams) WithContext(ctx context.Context) *GetPolicyParams
- func (o *GetPolicyParams) WithDefaults() *GetPolicyParams
- func (o *GetPolicyParams) WithHTTPClient(client *http.Client) *GetPolicyParams
- func (o *GetPolicyParams) WithTimeout(timeout time.Duration) *GetPolicyParams
- func (o *GetPolicyParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetPolicyReader
- type UpdatePolicyOK
- func (o *UpdatePolicyOK) Code() int
- func (o *UpdatePolicyOK) Error() string
- func (o *UpdatePolicyOK) GetPayload() *models.ActivityResponse
- func (o *UpdatePolicyOK) IsClientError() bool
- func (o *UpdatePolicyOK) IsCode(code int) bool
- func (o *UpdatePolicyOK) IsRedirect() bool
- func (o *UpdatePolicyOK) IsServerError() bool
- func (o *UpdatePolicyOK) IsSuccess() bool
- func (o *UpdatePolicyOK) String() string
- type UpdatePolicyParams
- func (o *UpdatePolicyParams) SetBody(body *models.UpdatePolicyRequest)
- func (o *UpdatePolicyParams) SetContext(ctx context.Context)
- func (o *UpdatePolicyParams) SetDefaults()
- func (o *UpdatePolicyParams) SetHTTPClient(client *http.Client)
- func (o *UpdatePolicyParams) SetTimeout(timeout time.Duration)
- func (o *UpdatePolicyParams) WithBody(body *models.UpdatePolicyRequest) *UpdatePolicyParams
- func (o *UpdatePolicyParams) WithContext(ctx context.Context) *UpdatePolicyParams
- func (o *UpdatePolicyParams) WithDefaults() *UpdatePolicyParams
- func (o *UpdatePolicyParams) WithHTTPClient(client *http.Client) *UpdatePolicyParams
- func (o *UpdatePolicyParams) WithTimeout(timeout time.Duration) *UpdatePolicyParams
- func (o *UpdatePolicyParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type UpdatePolicyReader
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 policies API
func (*Client) CreatePolicies ¶
func (a *Client) CreatePolicies(params *CreatePoliciesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreatePoliciesOK, error)
CreatePolicies creates policies
Create new Policies
func (*Client) CreatePolicy ¶
func (a *Client) CreatePolicy(params *CreatePolicyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreatePolicyOK, error)
CreatePolicy creates policy
Create a new Policy
func (*Client) DeletePolicy ¶
func (a *Client) DeletePolicy(params *DeletePolicyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeletePolicyOK, error)
DeletePolicy deletes policy
Delete an existing Policy
func (*Client) GetPolicies ¶
func (a *Client) GetPolicies(params *GetPoliciesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetPoliciesOK, error)
GetPolicies lists policies
List all Policies within an Organization
func (*Client) GetPolicy ¶
func (a *Client) GetPolicy(params *GetPolicyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetPolicyOK, error)
GetPolicy gets policy
Get details about a Policy
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
func (*Client) UpdatePolicy ¶
func (a *Client) UpdatePolicy(params *UpdatePolicyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdatePolicyOK, error)
UpdatePolicy updates policy
Update an existing Policy
type ClientOption ¶
type ClientOption func(*runtime.ClientOperation)
ClientOption is the option for Client methods
type ClientService ¶
type ClientService interface { CreatePolicies(params *CreatePoliciesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreatePoliciesOK, error) CreatePolicy(params *CreatePolicyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreatePolicyOK, error) DeletePolicy(params *DeletePolicyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeletePolicyOK, error) GetPolicies(params *GetPoliciesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetPoliciesOK, error) GetPolicy(params *GetPolicyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetPolicyOK, error) UpdatePolicy(params *UpdatePolicyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdatePolicyOK, 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 policies API client.
type CreatePoliciesOK ¶
type CreatePoliciesOK struct {
Payload *models.ActivityResponse
}
CreatePoliciesOK describes a response with status code 200, with default header values.
A successful response.
func NewCreatePoliciesOK ¶
func NewCreatePoliciesOK() *CreatePoliciesOK
NewCreatePoliciesOK creates a CreatePoliciesOK with default headers values
func (*CreatePoliciesOK) Code ¶
func (o *CreatePoliciesOK) Code() int
Code gets the status code for the create policies o k response
func (*CreatePoliciesOK) Error ¶
func (o *CreatePoliciesOK) Error() string
func (*CreatePoliciesOK) GetPayload ¶
func (o *CreatePoliciesOK) GetPayload() *models.ActivityResponse
func (*CreatePoliciesOK) IsClientError ¶
func (o *CreatePoliciesOK) IsClientError() bool
IsClientError returns true when this create policies o k response has a 4xx status code
func (*CreatePoliciesOK) IsCode ¶
func (o *CreatePoliciesOK) IsCode(code int) bool
IsCode returns true when this create policies o k response a status code equal to that given
func (*CreatePoliciesOK) IsRedirect ¶
func (o *CreatePoliciesOK) IsRedirect() bool
IsRedirect returns true when this create policies o k response has a 3xx status code
func (*CreatePoliciesOK) IsServerError ¶
func (o *CreatePoliciesOK) IsServerError() bool
IsServerError returns true when this create policies o k response has a 5xx status code
func (*CreatePoliciesOK) IsSuccess ¶
func (o *CreatePoliciesOK) IsSuccess() bool
IsSuccess returns true when this create policies o k response has a 2xx status code
func (*CreatePoliciesOK) String ¶
func (o *CreatePoliciesOK) String() string
type CreatePoliciesParams ¶
type CreatePoliciesParams struct { // Body. Body *models.CreatePoliciesRequest Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
CreatePoliciesParams contains all the parameters to send to the API endpoint
for the create policies operation. Typically these are written to a http.Request.
func NewCreatePoliciesParams ¶
func NewCreatePoliciesParams() *CreatePoliciesParams
NewCreatePoliciesParams creates a new CreatePoliciesParams 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 NewCreatePoliciesParamsWithContext ¶
func NewCreatePoliciesParamsWithContext(ctx context.Context) *CreatePoliciesParams
NewCreatePoliciesParamsWithContext creates a new CreatePoliciesParams object with the ability to set a context for a request.
func NewCreatePoliciesParamsWithHTTPClient ¶
func NewCreatePoliciesParamsWithHTTPClient(client *http.Client) *CreatePoliciesParams
NewCreatePoliciesParamsWithHTTPClient creates a new CreatePoliciesParams object with the ability to set a custom HTTPClient for a request.
func NewCreatePoliciesParamsWithTimeout ¶
func NewCreatePoliciesParamsWithTimeout(timeout time.Duration) *CreatePoliciesParams
NewCreatePoliciesParamsWithTimeout creates a new CreatePoliciesParams object with the ability to set a timeout on a request.
func (*CreatePoliciesParams) SetBody ¶
func (o *CreatePoliciesParams) SetBody(body *models.CreatePoliciesRequest)
SetBody adds the body to the create policies params
func (*CreatePoliciesParams) SetContext ¶
func (o *CreatePoliciesParams) SetContext(ctx context.Context)
SetContext adds the context to the create policies params
func (*CreatePoliciesParams) SetDefaults ¶
func (o *CreatePoliciesParams) SetDefaults()
SetDefaults hydrates default values in the create policies params (not the query body).
All values with no default are reset to their zero value.
func (*CreatePoliciesParams) SetHTTPClient ¶
func (o *CreatePoliciesParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the create policies params
func (*CreatePoliciesParams) SetTimeout ¶
func (o *CreatePoliciesParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the create policies params
func (*CreatePoliciesParams) WithBody ¶
func (o *CreatePoliciesParams) WithBody(body *models.CreatePoliciesRequest) *CreatePoliciesParams
WithBody adds the body to the create policies params
func (*CreatePoliciesParams) WithContext ¶
func (o *CreatePoliciesParams) WithContext(ctx context.Context) *CreatePoliciesParams
WithContext adds the context to the create policies params
func (*CreatePoliciesParams) WithDefaults ¶
func (o *CreatePoliciesParams) WithDefaults() *CreatePoliciesParams
WithDefaults hydrates default values in the create policies params (not the query body).
All values with no default are reset to their zero value.
func (*CreatePoliciesParams) WithHTTPClient ¶
func (o *CreatePoliciesParams) WithHTTPClient(client *http.Client) *CreatePoliciesParams
WithHTTPClient adds the HTTPClient to the create policies params
func (*CreatePoliciesParams) WithTimeout ¶
func (o *CreatePoliciesParams) WithTimeout(timeout time.Duration) *CreatePoliciesParams
WithTimeout adds the timeout to the create policies params
func (*CreatePoliciesParams) WriteToRequest ¶
func (o *CreatePoliciesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type CreatePoliciesReader ¶
type CreatePoliciesReader struct {
// contains filtered or unexported fields
}
CreatePoliciesReader is a Reader for the CreatePolicies structure.
func (*CreatePoliciesReader) ReadResponse ¶
func (o *CreatePoliciesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type CreatePolicyOK ¶
type CreatePolicyOK struct {
Payload *models.ActivityResponse
}
CreatePolicyOK describes a response with status code 200, with default header values.
A successful response.
func NewCreatePolicyOK ¶
func NewCreatePolicyOK() *CreatePolicyOK
NewCreatePolicyOK creates a CreatePolicyOK with default headers values
func (*CreatePolicyOK) Code ¶
func (o *CreatePolicyOK) Code() int
Code gets the status code for the create policy o k response
func (*CreatePolicyOK) Error ¶
func (o *CreatePolicyOK) Error() string
func (*CreatePolicyOK) GetPayload ¶
func (o *CreatePolicyOK) GetPayload() *models.ActivityResponse
func (*CreatePolicyOK) IsClientError ¶
func (o *CreatePolicyOK) IsClientError() bool
IsClientError returns true when this create policy o k response has a 4xx status code
func (*CreatePolicyOK) IsCode ¶
func (o *CreatePolicyOK) IsCode(code int) bool
IsCode returns true when this create policy o k response a status code equal to that given
func (*CreatePolicyOK) IsRedirect ¶
func (o *CreatePolicyOK) IsRedirect() bool
IsRedirect returns true when this create policy o k response has a 3xx status code
func (*CreatePolicyOK) IsServerError ¶
func (o *CreatePolicyOK) IsServerError() bool
IsServerError returns true when this create policy o k response has a 5xx status code
func (*CreatePolicyOK) IsSuccess ¶
func (o *CreatePolicyOK) IsSuccess() bool
IsSuccess returns true when this create policy o k response has a 2xx status code
func (*CreatePolicyOK) String ¶
func (o *CreatePolicyOK) String() string
type CreatePolicyParams ¶
type CreatePolicyParams struct { // Body. Body *models.CreatePolicyRequest Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
CreatePolicyParams contains all the parameters to send to the API endpoint
for the create policy operation. Typically these are written to a http.Request.
func NewCreatePolicyParams ¶
func NewCreatePolicyParams() *CreatePolicyParams
NewCreatePolicyParams creates a new CreatePolicyParams 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 NewCreatePolicyParamsWithContext ¶
func NewCreatePolicyParamsWithContext(ctx context.Context) *CreatePolicyParams
NewCreatePolicyParamsWithContext creates a new CreatePolicyParams object with the ability to set a context for a request.
func NewCreatePolicyParamsWithHTTPClient ¶
func NewCreatePolicyParamsWithHTTPClient(client *http.Client) *CreatePolicyParams
NewCreatePolicyParamsWithHTTPClient creates a new CreatePolicyParams object with the ability to set a custom HTTPClient for a request.
func NewCreatePolicyParamsWithTimeout ¶
func NewCreatePolicyParamsWithTimeout(timeout time.Duration) *CreatePolicyParams
NewCreatePolicyParamsWithTimeout creates a new CreatePolicyParams object with the ability to set a timeout on a request.
func (*CreatePolicyParams) SetBody ¶
func (o *CreatePolicyParams) SetBody(body *models.CreatePolicyRequest)
SetBody adds the body to the create policy params
func (*CreatePolicyParams) SetContext ¶
func (o *CreatePolicyParams) SetContext(ctx context.Context)
SetContext adds the context to the create policy params
func (*CreatePolicyParams) SetDefaults ¶
func (o *CreatePolicyParams) SetDefaults()
SetDefaults hydrates default values in the create policy params (not the query body).
All values with no default are reset to their zero value.
func (*CreatePolicyParams) SetHTTPClient ¶
func (o *CreatePolicyParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the create policy params
func (*CreatePolicyParams) SetTimeout ¶
func (o *CreatePolicyParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the create policy params
func (*CreatePolicyParams) WithBody ¶
func (o *CreatePolicyParams) WithBody(body *models.CreatePolicyRequest) *CreatePolicyParams
WithBody adds the body to the create policy params
func (*CreatePolicyParams) WithContext ¶
func (o *CreatePolicyParams) WithContext(ctx context.Context) *CreatePolicyParams
WithContext adds the context to the create policy params
func (*CreatePolicyParams) WithDefaults ¶
func (o *CreatePolicyParams) WithDefaults() *CreatePolicyParams
WithDefaults hydrates default values in the create policy params (not the query body).
All values with no default are reset to their zero value.
func (*CreatePolicyParams) WithHTTPClient ¶
func (o *CreatePolicyParams) WithHTTPClient(client *http.Client) *CreatePolicyParams
WithHTTPClient adds the HTTPClient to the create policy params
func (*CreatePolicyParams) WithTimeout ¶
func (o *CreatePolicyParams) WithTimeout(timeout time.Duration) *CreatePolicyParams
WithTimeout adds the timeout to the create policy params
func (*CreatePolicyParams) WriteToRequest ¶
func (o *CreatePolicyParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type CreatePolicyReader ¶
type CreatePolicyReader struct {
// contains filtered or unexported fields
}
CreatePolicyReader is a Reader for the CreatePolicy structure.
func (*CreatePolicyReader) ReadResponse ¶
func (o *CreatePolicyReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type DeletePolicyOK ¶
type DeletePolicyOK struct {
Payload *models.ActivityResponse
}
DeletePolicyOK describes a response with status code 200, with default header values.
A successful response.
func NewDeletePolicyOK ¶
func NewDeletePolicyOK() *DeletePolicyOK
NewDeletePolicyOK creates a DeletePolicyOK with default headers values
func (*DeletePolicyOK) Code ¶
func (o *DeletePolicyOK) Code() int
Code gets the status code for the delete policy o k response
func (*DeletePolicyOK) Error ¶
func (o *DeletePolicyOK) Error() string
func (*DeletePolicyOK) GetPayload ¶
func (o *DeletePolicyOK) GetPayload() *models.ActivityResponse
func (*DeletePolicyOK) IsClientError ¶
func (o *DeletePolicyOK) IsClientError() bool
IsClientError returns true when this delete policy o k response has a 4xx status code
func (*DeletePolicyOK) IsCode ¶
func (o *DeletePolicyOK) IsCode(code int) bool
IsCode returns true when this delete policy o k response a status code equal to that given
func (*DeletePolicyOK) IsRedirect ¶
func (o *DeletePolicyOK) IsRedirect() bool
IsRedirect returns true when this delete policy o k response has a 3xx status code
func (*DeletePolicyOK) IsServerError ¶
func (o *DeletePolicyOK) IsServerError() bool
IsServerError returns true when this delete policy o k response has a 5xx status code
func (*DeletePolicyOK) IsSuccess ¶
func (o *DeletePolicyOK) IsSuccess() bool
IsSuccess returns true when this delete policy o k response has a 2xx status code
func (*DeletePolicyOK) String ¶
func (o *DeletePolicyOK) String() string
type DeletePolicyParams ¶
type DeletePolicyParams struct { // Body. Body *models.DeletePolicyRequest Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
DeletePolicyParams contains all the parameters to send to the API endpoint
for the delete policy operation. Typically these are written to a http.Request.
func NewDeletePolicyParams ¶
func NewDeletePolicyParams() *DeletePolicyParams
NewDeletePolicyParams creates a new DeletePolicyParams 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 NewDeletePolicyParamsWithContext ¶
func NewDeletePolicyParamsWithContext(ctx context.Context) *DeletePolicyParams
NewDeletePolicyParamsWithContext creates a new DeletePolicyParams object with the ability to set a context for a request.
func NewDeletePolicyParamsWithHTTPClient ¶
func NewDeletePolicyParamsWithHTTPClient(client *http.Client) *DeletePolicyParams
NewDeletePolicyParamsWithHTTPClient creates a new DeletePolicyParams object with the ability to set a custom HTTPClient for a request.
func NewDeletePolicyParamsWithTimeout ¶
func NewDeletePolicyParamsWithTimeout(timeout time.Duration) *DeletePolicyParams
NewDeletePolicyParamsWithTimeout creates a new DeletePolicyParams object with the ability to set a timeout on a request.
func (*DeletePolicyParams) SetBody ¶
func (o *DeletePolicyParams) SetBody(body *models.DeletePolicyRequest)
SetBody adds the body to the delete policy params
func (*DeletePolicyParams) SetContext ¶
func (o *DeletePolicyParams) SetContext(ctx context.Context)
SetContext adds the context to the delete policy params
func (*DeletePolicyParams) SetDefaults ¶
func (o *DeletePolicyParams) SetDefaults()
SetDefaults hydrates default values in the delete policy params (not the query body).
All values with no default are reset to their zero value.
func (*DeletePolicyParams) SetHTTPClient ¶
func (o *DeletePolicyParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the delete policy params
func (*DeletePolicyParams) SetTimeout ¶
func (o *DeletePolicyParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the delete policy params
func (*DeletePolicyParams) WithBody ¶
func (o *DeletePolicyParams) WithBody(body *models.DeletePolicyRequest) *DeletePolicyParams
WithBody adds the body to the delete policy params
func (*DeletePolicyParams) WithContext ¶
func (o *DeletePolicyParams) WithContext(ctx context.Context) *DeletePolicyParams
WithContext adds the context to the delete policy params
func (*DeletePolicyParams) WithDefaults ¶
func (o *DeletePolicyParams) WithDefaults() *DeletePolicyParams
WithDefaults hydrates default values in the delete policy params (not the query body).
All values with no default are reset to their zero value.
func (*DeletePolicyParams) WithHTTPClient ¶
func (o *DeletePolicyParams) WithHTTPClient(client *http.Client) *DeletePolicyParams
WithHTTPClient adds the HTTPClient to the delete policy params
func (*DeletePolicyParams) WithTimeout ¶
func (o *DeletePolicyParams) WithTimeout(timeout time.Duration) *DeletePolicyParams
WithTimeout adds the timeout to the delete policy params
func (*DeletePolicyParams) WriteToRequest ¶
func (o *DeletePolicyParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type DeletePolicyReader ¶
type DeletePolicyReader struct {
// contains filtered or unexported fields
}
DeletePolicyReader is a Reader for the DeletePolicy structure.
func (*DeletePolicyReader) ReadResponse ¶
func (o *DeletePolicyReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetPoliciesOK ¶
type GetPoliciesOK struct {
Payload *models.GetPoliciesResponse
}
GetPoliciesOK describes a response with status code 200, with default header values.
A successful response.
func NewGetPoliciesOK ¶
func NewGetPoliciesOK() *GetPoliciesOK
NewGetPoliciesOK creates a GetPoliciesOK with default headers values
func (*GetPoliciesOK) Code ¶
func (o *GetPoliciesOK) Code() int
Code gets the status code for the get policies o k response
func (*GetPoliciesOK) Error ¶
func (o *GetPoliciesOK) Error() string
func (*GetPoliciesOK) GetPayload ¶
func (o *GetPoliciesOK) GetPayload() *models.GetPoliciesResponse
func (*GetPoliciesOK) IsClientError ¶
func (o *GetPoliciesOK) IsClientError() bool
IsClientError returns true when this get policies o k response has a 4xx status code
func (*GetPoliciesOK) IsCode ¶
func (o *GetPoliciesOK) IsCode(code int) bool
IsCode returns true when this get policies o k response a status code equal to that given
func (*GetPoliciesOK) IsRedirect ¶
func (o *GetPoliciesOK) IsRedirect() bool
IsRedirect returns true when this get policies o k response has a 3xx status code
func (*GetPoliciesOK) IsServerError ¶
func (o *GetPoliciesOK) IsServerError() bool
IsServerError returns true when this get policies o k response has a 5xx status code
func (*GetPoliciesOK) IsSuccess ¶
func (o *GetPoliciesOK) IsSuccess() bool
IsSuccess returns true when this get policies o k response has a 2xx status code
func (*GetPoliciesOK) String ¶
func (o *GetPoliciesOK) String() string
type GetPoliciesParams ¶
type GetPoliciesParams struct { // Body. Body *models.GetPoliciesRequest Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetPoliciesParams contains all the parameters to send to the API endpoint
for the get policies operation. Typically these are written to a http.Request.
func NewGetPoliciesParams ¶
func NewGetPoliciesParams() *GetPoliciesParams
NewGetPoliciesParams creates a new GetPoliciesParams 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 NewGetPoliciesParamsWithContext ¶
func NewGetPoliciesParamsWithContext(ctx context.Context) *GetPoliciesParams
NewGetPoliciesParamsWithContext creates a new GetPoliciesParams object with the ability to set a context for a request.
func NewGetPoliciesParamsWithHTTPClient ¶
func NewGetPoliciesParamsWithHTTPClient(client *http.Client) *GetPoliciesParams
NewGetPoliciesParamsWithHTTPClient creates a new GetPoliciesParams object with the ability to set a custom HTTPClient for a request.
func NewGetPoliciesParamsWithTimeout ¶
func NewGetPoliciesParamsWithTimeout(timeout time.Duration) *GetPoliciesParams
NewGetPoliciesParamsWithTimeout creates a new GetPoliciesParams object with the ability to set a timeout on a request.
func (*GetPoliciesParams) SetBody ¶
func (o *GetPoliciesParams) SetBody(body *models.GetPoliciesRequest)
SetBody adds the body to the get policies params
func (*GetPoliciesParams) SetContext ¶
func (o *GetPoliciesParams) SetContext(ctx context.Context)
SetContext adds the context to the get policies params
func (*GetPoliciesParams) SetDefaults ¶
func (o *GetPoliciesParams) SetDefaults()
SetDefaults hydrates default values in the get policies params (not the query body).
All values with no default are reset to their zero value.
func (*GetPoliciesParams) SetHTTPClient ¶
func (o *GetPoliciesParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get policies params
func (*GetPoliciesParams) SetTimeout ¶
func (o *GetPoliciesParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get policies params
func (*GetPoliciesParams) WithBody ¶
func (o *GetPoliciesParams) WithBody(body *models.GetPoliciesRequest) *GetPoliciesParams
WithBody adds the body to the get policies params
func (*GetPoliciesParams) WithContext ¶
func (o *GetPoliciesParams) WithContext(ctx context.Context) *GetPoliciesParams
WithContext adds the context to the get policies params
func (*GetPoliciesParams) WithDefaults ¶
func (o *GetPoliciesParams) WithDefaults() *GetPoliciesParams
WithDefaults hydrates default values in the get policies params (not the query body).
All values with no default are reset to their zero value.
func (*GetPoliciesParams) WithHTTPClient ¶
func (o *GetPoliciesParams) WithHTTPClient(client *http.Client) *GetPoliciesParams
WithHTTPClient adds the HTTPClient to the get policies params
func (*GetPoliciesParams) WithTimeout ¶
func (o *GetPoliciesParams) WithTimeout(timeout time.Duration) *GetPoliciesParams
WithTimeout adds the timeout to the get policies params
func (*GetPoliciesParams) WriteToRequest ¶
func (o *GetPoliciesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetPoliciesReader ¶
type GetPoliciesReader struct {
// contains filtered or unexported fields
}
GetPoliciesReader is a Reader for the GetPolicies structure.
func (*GetPoliciesReader) ReadResponse ¶
func (o *GetPoliciesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetPolicyOK ¶
type GetPolicyOK struct {
Payload *models.GetPolicyResponse
}
GetPolicyOK describes a response with status code 200, with default header values.
A successful response.
func NewGetPolicyOK ¶
func NewGetPolicyOK() *GetPolicyOK
NewGetPolicyOK creates a GetPolicyOK with default headers values
func (*GetPolicyOK) Code ¶
func (o *GetPolicyOK) Code() int
Code gets the status code for the get policy o k response
func (*GetPolicyOK) Error ¶
func (o *GetPolicyOK) Error() string
func (*GetPolicyOK) GetPayload ¶
func (o *GetPolicyOK) GetPayload() *models.GetPolicyResponse
func (*GetPolicyOK) IsClientError ¶
func (o *GetPolicyOK) IsClientError() bool
IsClientError returns true when this get policy o k response has a 4xx status code
func (*GetPolicyOK) IsCode ¶
func (o *GetPolicyOK) IsCode(code int) bool
IsCode returns true when this get policy o k response a status code equal to that given
func (*GetPolicyOK) IsRedirect ¶
func (o *GetPolicyOK) IsRedirect() bool
IsRedirect returns true when this get policy o k response has a 3xx status code
func (*GetPolicyOK) IsServerError ¶
func (o *GetPolicyOK) IsServerError() bool
IsServerError returns true when this get policy o k response has a 5xx status code
func (*GetPolicyOK) IsSuccess ¶
func (o *GetPolicyOK) IsSuccess() bool
IsSuccess returns true when this get policy o k response has a 2xx status code
func (*GetPolicyOK) String ¶
func (o *GetPolicyOK) String() string
type GetPolicyParams ¶
type GetPolicyParams struct { // Body. Body *models.GetPolicyRequest Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetPolicyParams contains all the parameters to send to the API endpoint
for the get policy operation. Typically these are written to a http.Request.
func NewGetPolicyParams ¶
func NewGetPolicyParams() *GetPolicyParams
NewGetPolicyParams creates a new GetPolicyParams 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 NewGetPolicyParamsWithContext ¶
func NewGetPolicyParamsWithContext(ctx context.Context) *GetPolicyParams
NewGetPolicyParamsWithContext creates a new GetPolicyParams object with the ability to set a context for a request.
func NewGetPolicyParamsWithHTTPClient ¶
func NewGetPolicyParamsWithHTTPClient(client *http.Client) *GetPolicyParams
NewGetPolicyParamsWithHTTPClient creates a new GetPolicyParams object with the ability to set a custom HTTPClient for a request.
func NewGetPolicyParamsWithTimeout ¶
func NewGetPolicyParamsWithTimeout(timeout time.Duration) *GetPolicyParams
NewGetPolicyParamsWithTimeout creates a new GetPolicyParams object with the ability to set a timeout on a request.
func (*GetPolicyParams) SetBody ¶
func (o *GetPolicyParams) SetBody(body *models.GetPolicyRequest)
SetBody adds the body to the get policy params
func (*GetPolicyParams) SetContext ¶
func (o *GetPolicyParams) SetContext(ctx context.Context)
SetContext adds the context to the get policy params
func (*GetPolicyParams) SetDefaults ¶
func (o *GetPolicyParams) SetDefaults()
SetDefaults hydrates default values in the get policy params (not the query body).
All values with no default are reset to their zero value.
func (*GetPolicyParams) SetHTTPClient ¶
func (o *GetPolicyParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get policy params
func (*GetPolicyParams) SetTimeout ¶
func (o *GetPolicyParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get policy params
func (*GetPolicyParams) WithBody ¶
func (o *GetPolicyParams) WithBody(body *models.GetPolicyRequest) *GetPolicyParams
WithBody adds the body to the get policy params
func (*GetPolicyParams) WithContext ¶
func (o *GetPolicyParams) WithContext(ctx context.Context) *GetPolicyParams
WithContext adds the context to the get policy params
func (*GetPolicyParams) WithDefaults ¶
func (o *GetPolicyParams) WithDefaults() *GetPolicyParams
WithDefaults hydrates default values in the get policy params (not the query body).
All values with no default are reset to their zero value.
func (*GetPolicyParams) WithHTTPClient ¶
func (o *GetPolicyParams) WithHTTPClient(client *http.Client) *GetPolicyParams
WithHTTPClient adds the HTTPClient to the get policy params
func (*GetPolicyParams) WithTimeout ¶
func (o *GetPolicyParams) WithTimeout(timeout time.Duration) *GetPolicyParams
WithTimeout adds the timeout to the get policy params
func (*GetPolicyParams) WriteToRequest ¶
func (o *GetPolicyParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetPolicyReader ¶
type GetPolicyReader struct {
// contains filtered or unexported fields
}
GetPolicyReader is a Reader for the GetPolicy structure.
func (*GetPolicyReader) ReadResponse ¶
func (o *GetPolicyReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type UpdatePolicyOK ¶
type UpdatePolicyOK struct {
Payload *models.ActivityResponse
}
UpdatePolicyOK describes a response with status code 200, with default header values.
A successful response.
func NewUpdatePolicyOK ¶
func NewUpdatePolicyOK() *UpdatePolicyOK
NewUpdatePolicyOK creates a UpdatePolicyOK with default headers values
func (*UpdatePolicyOK) Code ¶
func (o *UpdatePolicyOK) Code() int
Code gets the status code for the update policy o k response
func (*UpdatePolicyOK) Error ¶
func (o *UpdatePolicyOK) Error() string
func (*UpdatePolicyOK) GetPayload ¶
func (o *UpdatePolicyOK) GetPayload() *models.ActivityResponse
func (*UpdatePolicyOK) IsClientError ¶
func (o *UpdatePolicyOK) IsClientError() bool
IsClientError returns true when this update policy o k response has a 4xx status code
func (*UpdatePolicyOK) IsCode ¶
func (o *UpdatePolicyOK) IsCode(code int) bool
IsCode returns true when this update policy o k response a status code equal to that given
func (*UpdatePolicyOK) IsRedirect ¶
func (o *UpdatePolicyOK) IsRedirect() bool
IsRedirect returns true when this update policy o k response has a 3xx status code
func (*UpdatePolicyOK) IsServerError ¶
func (o *UpdatePolicyOK) IsServerError() bool
IsServerError returns true when this update policy o k response has a 5xx status code
func (*UpdatePolicyOK) IsSuccess ¶
func (o *UpdatePolicyOK) IsSuccess() bool
IsSuccess returns true when this update policy o k response has a 2xx status code
func (*UpdatePolicyOK) String ¶
func (o *UpdatePolicyOK) String() string
type UpdatePolicyParams ¶
type UpdatePolicyParams struct { // Body. Body *models.UpdatePolicyRequest Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
UpdatePolicyParams contains all the parameters to send to the API endpoint
for the update policy operation. Typically these are written to a http.Request.
func NewUpdatePolicyParams ¶
func NewUpdatePolicyParams() *UpdatePolicyParams
NewUpdatePolicyParams creates a new UpdatePolicyParams 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 NewUpdatePolicyParamsWithContext ¶
func NewUpdatePolicyParamsWithContext(ctx context.Context) *UpdatePolicyParams
NewUpdatePolicyParamsWithContext creates a new UpdatePolicyParams object with the ability to set a context for a request.
func NewUpdatePolicyParamsWithHTTPClient ¶
func NewUpdatePolicyParamsWithHTTPClient(client *http.Client) *UpdatePolicyParams
NewUpdatePolicyParamsWithHTTPClient creates a new UpdatePolicyParams object with the ability to set a custom HTTPClient for a request.
func NewUpdatePolicyParamsWithTimeout ¶
func NewUpdatePolicyParamsWithTimeout(timeout time.Duration) *UpdatePolicyParams
NewUpdatePolicyParamsWithTimeout creates a new UpdatePolicyParams object with the ability to set a timeout on a request.
func (*UpdatePolicyParams) SetBody ¶
func (o *UpdatePolicyParams) SetBody(body *models.UpdatePolicyRequest)
SetBody adds the body to the update policy params
func (*UpdatePolicyParams) SetContext ¶
func (o *UpdatePolicyParams) SetContext(ctx context.Context)
SetContext adds the context to the update policy params
func (*UpdatePolicyParams) SetDefaults ¶
func (o *UpdatePolicyParams) SetDefaults()
SetDefaults hydrates default values in the update policy params (not the query body).
All values with no default are reset to their zero value.
func (*UpdatePolicyParams) SetHTTPClient ¶
func (o *UpdatePolicyParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the update policy params
func (*UpdatePolicyParams) SetTimeout ¶
func (o *UpdatePolicyParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the update policy params
func (*UpdatePolicyParams) WithBody ¶
func (o *UpdatePolicyParams) WithBody(body *models.UpdatePolicyRequest) *UpdatePolicyParams
WithBody adds the body to the update policy params
func (*UpdatePolicyParams) WithContext ¶
func (o *UpdatePolicyParams) WithContext(ctx context.Context) *UpdatePolicyParams
WithContext adds the context to the update policy params
func (*UpdatePolicyParams) WithDefaults ¶
func (o *UpdatePolicyParams) WithDefaults() *UpdatePolicyParams
WithDefaults hydrates default values in the update policy params (not the query body).
All values with no default are reset to their zero value.
func (*UpdatePolicyParams) WithHTTPClient ¶
func (o *UpdatePolicyParams) WithHTTPClient(client *http.Client) *UpdatePolicyParams
WithHTTPClient adds the HTTPClient to the update policy params
func (*UpdatePolicyParams) WithTimeout ¶
func (o *UpdatePolicyParams) WithTimeout(timeout time.Duration) *UpdatePolicyParams
WithTimeout adds the timeout to the update policy params
func (*UpdatePolicyParams) WriteToRequest ¶
func (o *UpdatePolicyParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type UpdatePolicyReader ¶
type UpdatePolicyReader struct {
// contains filtered or unexported fields
}
UpdatePolicyReader is a Reader for the UpdatePolicy structure.
func (*UpdatePolicyReader) ReadResponse ¶
func (o *UpdatePolicyReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
Source Files
¶
- create_policies_parameters.go
- create_policies_responses.go
- create_policy_parameters.go
- create_policy_responses.go
- delete_policy_parameters.go
- delete_policy_responses.go
- get_policies_parameters.go
- get_policies_responses.go
- get_policy_parameters.go
- get_policy_responses.go
- policies_client.go
- update_policy_parameters.go
- update_policy_responses.go