Documentation
¶
Index ¶
- type Client
- func (a *Client) DeletePolicyUsingDELETE5(params *DeletePolicyUsingDELETE5Params, opts ...ClientOption) (*DeletePolicyUsingDELETE5NoContent, error)
- func (a *Client) DryRunPolicyUsingPOST2(params *DryRunPolicyUsingPOST2Params, opts ...ClientOption) (*DryRunPolicyUsingPOST2OK, error)
- func (a *Client) GetPoliciesUsingGET5(params *GetPoliciesUsingGET5Params, opts ...ClientOption) (*GetPoliciesUsingGET5OK, error)
- func (a *Client) GetPolicyUsingGET5(params *GetPolicyUsingGET5Params, opts ...ClientOption) (*GetPolicyUsingGET5OK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientOption
- type ClientService
- type DeletePolicyUsingDELETE5NoContent
- type DeletePolicyUsingDELETE5Params
- func NewDeletePolicyUsingDELETE5Params() *DeletePolicyUsingDELETE5Params
- func NewDeletePolicyUsingDELETE5ParamsWithContext(ctx context.Context) *DeletePolicyUsingDELETE5Params
- func NewDeletePolicyUsingDELETE5ParamsWithHTTPClient(client *http.Client) *DeletePolicyUsingDELETE5Params
- func NewDeletePolicyUsingDELETE5ParamsWithTimeout(timeout time.Duration) *DeletePolicyUsingDELETE5Params
- func (o *DeletePolicyUsingDELETE5Params) SetAPIVersion(aPIVersion *string)
- func (o *DeletePolicyUsingDELETE5Params) SetContext(ctx context.Context)
- func (o *DeletePolicyUsingDELETE5Params) SetDefaults()
- func (o *DeletePolicyUsingDELETE5Params) SetHTTPClient(client *http.Client)
- func (o *DeletePolicyUsingDELETE5Params) SetID(id strfmt.UUID)
- func (o *DeletePolicyUsingDELETE5Params) SetTimeout(timeout time.Duration)
- func (o *DeletePolicyUsingDELETE5Params) WithAPIVersion(aPIVersion *string) *DeletePolicyUsingDELETE5Params
- func (o *DeletePolicyUsingDELETE5Params) WithContext(ctx context.Context) *DeletePolicyUsingDELETE5Params
- func (o *DeletePolicyUsingDELETE5Params) WithDefaults() *DeletePolicyUsingDELETE5Params
- func (o *DeletePolicyUsingDELETE5Params) WithHTTPClient(client *http.Client) *DeletePolicyUsingDELETE5Params
- func (o *DeletePolicyUsingDELETE5Params) WithID(id strfmt.UUID) *DeletePolicyUsingDELETE5Params
- func (o *DeletePolicyUsingDELETE5Params) WithTimeout(timeout time.Duration) *DeletePolicyUsingDELETE5Params
- func (o *DeletePolicyUsingDELETE5Params) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DeletePolicyUsingDELETE5Reader
- type DryRunPolicyUsingPOST2OK
- type DryRunPolicyUsingPOST2Params
- func NewDryRunPolicyUsingPOST2Params() *DryRunPolicyUsingPOST2Params
- func NewDryRunPolicyUsingPOST2ParamsWithContext(ctx context.Context) *DryRunPolicyUsingPOST2Params
- func NewDryRunPolicyUsingPOST2ParamsWithHTTPClient(client *http.Client) *DryRunPolicyUsingPOST2Params
- func NewDryRunPolicyUsingPOST2ParamsWithTimeout(timeout time.Duration) *DryRunPolicyUsingPOST2Params
- func (o *DryRunPolicyUsingPOST2Params) SetAPIVersion(aPIVersion *string)
- func (o *DryRunPolicyUsingPOST2Params) SetContext(ctx context.Context)
- func (o *DryRunPolicyUsingPOST2Params) SetDefaults()
- func (o *DryRunPolicyUsingPOST2Params) SetDryRun(dryRun string)
- func (o *DryRunPolicyUsingPOST2Params) SetHTTPClient(client *http.Client)
- func (o *DryRunPolicyUsingPOST2Params) SetPolicy(policy *models.Policy)
- func (o *DryRunPolicyUsingPOST2Params) SetTimeout(timeout time.Duration)
- func (o *DryRunPolicyUsingPOST2Params) WithAPIVersion(aPIVersion *string) *DryRunPolicyUsingPOST2Params
- func (o *DryRunPolicyUsingPOST2Params) WithContext(ctx context.Context) *DryRunPolicyUsingPOST2Params
- func (o *DryRunPolicyUsingPOST2Params) WithDefaults() *DryRunPolicyUsingPOST2Params
- func (o *DryRunPolicyUsingPOST2Params) WithDryRun(dryRun string) *DryRunPolicyUsingPOST2Params
- func (o *DryRunPolicyUsingPOST2Params) WithHTTPClient(client *http.Client) *DryRunPolicyUsingPOST2Params
- func (o *DryRunPolicyUsingPOST2Params) WithPolicy(policy *models.Policy) *DryRunPolicyUsingPOST2Params
- func (o *DryRunPolicyUsingPOST2Params) WithTimeout(timeout time.Duration) *DryRunPolicyUsingPOST2Params
- func (o *DryRunPolicyUsingPOST2Params) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DryRunPolicyUsingPOST2Reader
- type GetPoliciesUsingGET5OK
- type GetPoliciesUsingGET5Params
- func NewGetPoliciesUsingGET5Params() *GetPoliciesUsingGET5Params
- func NewGetPoliciesUsingGET5ParamsWithContext(ctx context.Context) *GetPoliciesUsingGET5Params
- func NewGetPoliciesUsingGET5ParamsWithHTTPClient(client *http.Client) *GetPoliciesUsingGET5Params
- func NewGetPoliciesUsingGET5ParamsWithTimeout(timeout time.Duration) *GetPoliciesUsingGET5Params
- func (o *GetPoliciesUsingGET5Params) SetAPIVersion(aPIVersion *string)
- func (o *GetPoliciesUsingGET5Params) SetComputeStats(computeStats *bool)
- func (o *GetPoliciesUsingGET5Params) SetContext(ctx context.Context)
- func (o *GetPoliciesUsingGET5Params) SetDefaults()
- func (o *GetPoliciesUsingGET5Params) SetDollarOrderby(dollarOrderby []string)
- func (o *GetPoliciesUsingGET5Params) SetDollarSkip(dollarSkip *int32)
- func (o *GetPoliciesUsingGET5Params) SetDollarTop(dollarTop *int32)
- func (o *GetPoliciesUsingGET5Params) SetExpandDefinition(expandDefinition *bool)
- func (o *GetPoliciesUsingGET5Params) SetHTTPClient(client *http.Client)
- func (o *GetPoliciesUsingGET5Params) SetSearch(search *string)
- func (o *GetPoliciesUsingGET5Params) SetTimeout(timeout time.Duration)
- func (o *GetPoliciesUsingGET5Params) WithAPIVersion(aPIVersion *string) *GetPoliciesUsingGET5Params
- func (o *GetPoliciesUsingGET5Params) WithComputeStats(computeStats *bool) *GetPoliciesUsingGET5Params
- func (o *GetPoliciesUsingGET5Params) WithContext(ctx context.Context) *GetPoliciesUsingGET5Params
- func (o *GetPoliciesUsingGET5Params) WithDefaults() *GetPoliciesUsingGET5Params
- func (o *GetPoliciesUsingGET5Params) WithDollarOrderby(dollarOrderby []string) *GetPoliciesUsingGET5Params
- func (o *GetPoliciesUsingGET5Params) WithDollarSkip(dollarSkip *int32) *GetPoliciesUsingGET5Params
- func (o *GetPoliciesUsingGET5Params) WithDollarTop(dollarTop *int32) *GetPoliciesUsingGET5Params
- func (o *GetPoliciesUsingGET5Params) WithExpandDefinition(expandDefinition *bool) *GetPoliciesUsingGET5Params
- func (o *GetPoliciesUsingGET5Params) WithHTTPClient(client *http.Client) *GetPoliciesUsingGET5Params
- func (o *GetPoliciesUsingGET5Params) WithSearch(search *string) *GetPoliciesUsingGET5Params
- func (o *GetPoliciesUsingGET5Params) WithTimeout(timeout time.Duration) *GetPoliciesUsingGET5Params
- func (o *GetPoliciesUsingGET5Params) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetPoliciesUsingGET5Reader
- type GetPolicyUsingGET5OK
- type GetPolicyUsingGET5Params
- func NewGetPolicyUsingGET5Params() *GetPolicyUsingGET5Params
- func NewGetPolicyUsingGET5ParamsWithContext(ctx context.Context) *GetPolicyUsingGET5Params
- func NewGetPolicyUsingGET5ParamsWithHTTPClient(client *http.Client) *GetPolicyUsingGET5Params
- func NewGetPolicyUsingGET5ParamsWithTimeout(timeout time.Duration) *GetPolicyUsingGET5Params
- func (o *GetPolicyUsingGET5Params) SetAPIVersion(aPIVersion *string)
- func (o *GetPolicyUsingGET5Params) SetComputeStats(computeStats *bool)
- func (o *GetPolicyUsingGET5Params) SetContext(ctx context.Context)
- func (o *GetPolicyUsingGET5Params) SetDefaults()
- func (o *GetPolicyUsingGET5Params) SetHTTPClient(client *http.Client)
- func (o *GetPolicyUsingGET5Params) SetID(id strfmt.UUID)
- func (o *GetPolicyUsingGET5Params) SetTimeout(timeout time.Duration)
- func (o *GetPolicyUsingGET5Params) WithAPIVersion(aPIVersion *string) *GetPolicyUsingGET5Params
- func (o *GetPolicyUsingGET5Params) WithComputeStats(computeStats *bool) *GetPolicyUsingGET5Params
- func (o *GetPolicyUsingGET5Params) WithContext(ctx context.Context) *GetPolicyUsingGET5Params
- func (o *GetPolicyUsingGET5Params) WithDefaults() *GetPolicyUsingGET5Params
- func (o *GetPolicyUsingGET5Params) WithHTTPClient(client *http.Client) *GetPolicyUsingGET5Params
- func (o *GetPolicyUsingGET5Params) WithID(id strfmt.UUID) *GetPolicyUsingGET5Params
- func (o *GetPolicyUsingGET5Params) WithTimeout(timeout time.Duration) *GetPolicyUsingGET5Params
- func (o *GetPolicyUsingGET5Params) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetPolicyUsingGET5Reader
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) DeletePolicyUsingDELETE5 ¶ added in v0.4.0
func (a *Client) DeletePolicyUsingDELETE5(params *DeletePolicyUsingDELETE5Params, opts ...ClientOption) (*DeletePolicyUsingDELETE5NoContent, error)
DeletePolicyUsingDELETE5 deletes a policy
Delete a specified policy corresponding to its unique id.
func (*Client) DryRunPolicyUsingPOST2 ¶ added in v0.4.0
func (a *Client) DryRunPolicyUsingPOST2(params *DryRunPolicyUsingPOST2Params, opts ...ClientOption) (*DryRunPolicyUsingPOST2OK, error)
DryRunPolicyUsingPOST2 triggers a policy dry run
Dry-run an existing policy to rehearse actual policy effect on application.
func (*Client) GetPoliciesUsingGET5 ¶ added in v0.4.0
func (a *Client) GetPoliciesUsingGET5(params *GetPoliciesUsingGET5Params, opts ...ClientOption) (*GetPoliciesUsingGET5OK, error)
GetPoliciesUsingGET5 returns a paginated list of policies
Find all the policies associated with current org.
func (*Client) GetPolicyUsingGET5 ¶ added in v0.4.0
func (a *Client) GetPolicyUsingGET5(params *GetPolicyUsingGET5Params, opts ...ClientOption) (*GetPolicyUsingGET5OK, error)
GetPolicyUsingGET5 returns a specified policy
Find a specific policy based on the input policy id.
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
type ClientOption ¶ added in v0.2.20
type ClientOption func(*runtime.ClientOperation)
ClientOption is the option for Client methods
type ClientService ¶ added in v0.2.18
type ClientService interface { DeletePolicyUsingDELETE5(params *DeletePolicyUsingDELETE5Params, opts ...ClientOption) (*DeletePolicyUsingDELETE5NoContent, error) DryRunPolicyUsingPOST2(params *DryRunPolicyUsingPOST2Params, opts ...ClientOption) (*DryRunPolicyUsingPOST2OK, error) GetPoliciesUsingGET5(params *GetPoliciesUsingGET5Params, opts ...ClientOption) (*GetPoliciesUsingGET5OK, error) GetPolicyUsingGET5(params *GetPolicyUsingGET5Params, opts ...ClientOption) (*GetPolicyUsingGET5OK, 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 DeletePolicyUsingDELETE5NoContent ¶ added in v0.4.0
type DeletePolicyUsingDELETE5NoContent struct { }
DeletePolicyUsingDELETE5NoContent describes a response with status code 204, with default header values.
No Content
func NewDeletePolicyUsingDELETE5NoContent ¶ added in v0.4.0
func NewDeletePolicyUsingDELETE5NoContent() *DeletePolicyUsingDELETE5NoContent
NewDeletePolicyUsingDELETE5NoContent creates a DeletePolicyUsingDELETE5NoContent with default headers values
func (*DeletePolicyUsingDELETE5NoContent) Error ¶ added in v0.4.0
func (o *DeletePolicyUsingDELETE5NoContent) Error() string
type DeletePolicyUsingDELETE5Params ¶ added in v0.4.0
type DeletePolicyUsingDELETE5Params struct { /* APIVersion. The version of the API in yyyy-MM-dd format (UTC). If you do not specify explicitly an exact version, you will be calling the latest supported API version. */ APIVersion *string /* ID. Policy ID Format: uuid */ ID strfmt.UUID Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
DeletePolicyUsingDELETE5Params contains all the parameters to send to the API endpoint
for the delete policy using d e l e t e 5 operation. Typically these are written to a http.Request.
func NewDeletePolicyUsingDELETE5Params ¶ added in v0.4.0
func NewDeletePolicyUsingDELETE5Params() *DeletePolicyUsingDELETE5Params
NewDeletePolicyUsingDELETE5Params creates a new DeletePolicyUsingDELETE5Params 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 NewDeletePolicyUsingDELETE5ParamsWithContext ¶ added in v0.4.0
func NewDeletePolicyUsingDELETE5ParamsWithContext(ctx context.Context) *DeletePolicyUsingDELETE5Params
NewDeletePolicyUsingDELETE5ParamsWithContext creates a new DeletePolicyUsingDELETE5Params object with the ability to set a context for a request.
func NewDeletePolicyUsingDELETE5ParamsWithHTTPClient ¶ added in v0.4.0
func NewDeletePolicyUsingDELETE5ParamsWithHTTPClient(client *http.Client) *DeletePolicyUsingDELETE5Params
NewDeletePolicyUsingDELETE5ParamsWithHTTPClient creates a new DeletePolicyUsingDELETE5Params object with the ability to set a custom HTTPClient for a request.
func NewDeletePolicyUsingDELETE5ParamsWithTimeout ¶ added in v0.4.0
func NewDeletePolicyUsingDELETE5ParamsWithTimeout(timeout time.Duration) *DeletePolicyUsingDELETE5Params
NewDeletePolicyUsingDELETE5ParamsWithTimeout creates a new DeletePolicyUsingDELETE5Params object with the ability to set a timeout on a request.
func (*DeletePolicyUsingDELETE5Params) SetAPIVersion ¶ added in v0.4.0
func (o *DeletePolicyUsingDELETE5Params) SetAPIVersion(aPIVersion *string)
SetAPIVersion adds the apiVersion to the delete policy using d e l e t e 5 params
func (*DeletePolicyUsingDELETE5Params) SetContext ¶ added in v0.4.0
func (o *DeletePolicyUsingDELETE5Params) SetContext(ctx context.Context)
SetContext adds the context to the delete policy using d e l e t e 5 params
func (*DeletePolicyUsingDELETE5Params) SetDefaults ¶ added in v0.4.0
func (o *DeletePolicyUsingDELETE5Params) SetDefaults()
SetDefaults hydrates default values in the delete policy using d e l e t e 5 params (not the query body).
All values with no default are reset to their zero value.
func (*DeletePolicyUsingDELETE5Params) SetHTTPClient ¶ added in v0.4.0
func (o *DeletePolicyUsingDELETE5Params) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the delete policy using d e l e t e 5 params
func (*DeletePolicyUsingDELETE5Params) SetID ¶ added in v0.4.0
func (o *DeletePolicyUsingDELETE5Params) SetID(id strfmt.UUID)
SetID adds the id to the delete policy using d e l e t e 5 params
func (*DeletePolicyUsingDELETE5Params) SetTimeout ¶ added in v0.4.0
func (o *DeletePolicyUsingDELETE5Params) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the delete policy using d e l e t e 5 params
func (*DeletePolicyUsingDELETE5Params) WithAPIVersion ¶ added in v0.4.0
func (o *DeletePolicyUsingDELETE5Params) WithAPIVersion(aPIVersion *string) *DeletePolicyUsingDELETE5Params
WithAPIVersion adds the aPIVersion to the delete policy using d e l e t e 5 params
func (*DeletePolicyUsingDELETE5Params) WithContext ¶ added in v0.4.0
func (o *DeletePolicyUsingDELETE5Params) WithContext(ctx context.Context) *DeletePolicyUsingDELETE5Params
WithContext adds the context to the delete policy using d e l e t e 5 params
func (*DeletePolicyUsingDELETE5Params) WithDefaults ¶ added in v0.4.0
func (o *DeletePolicyUsingDELETE5Params) WithDefaults() *DeletePolicyUsingDELETE5Params
WithDefaults hydrates default values in the delete policy using d e l e t e 5 params (not the query body).
All values with no default are reset to their zero value.
func (*DeletePolicyUsingDELETE5Params) WithHTTPClient ¶ added in v0.4.0
func (o *DeletePolicyUsingDELETE5Params) WithHTTPClient(client *http.Client) *DeletePolicyUsingDELETE5Params
WithHTTPClient adds the HTTPClient to the delete policy using d e l e t e 5 params
func (*DeletePolicyUsingDELETE5Params) WithID ¶ added in v0.4.0
func (o *DeletePolicyUsingDELETE5Params) WithID(id strfmt.UUID) *DeletePolicyUsingDELETE5Params
WithID adds the id to the delete policy using d e l e t e 5 params
func (*DeletePolicyUsingDELETE5Params) WithTimeout ¶ added in v0.4.0
func (o *DeletePolicyUsingDELETE5Params) WithTimeout(timeout time.Duration) *DeletePolicyUsingDELETE5Params
WithTimeout adds the timeout to the delete policy using d e l e t e 5 params
func (*DeletePolicyUsingDELETE5Params) WriteToRequest ¶ added in v0.4.0
func (o *DeletePolicyUsingDELETE5Params) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type DeletePolicyUsingDELETE5Reader ¶ added in v0.4.0
type DeletePolicyUsingDELETE5Reader struct {
// contains filtered or unexported fields
}
DeletePolicyUsingDELETE5Reader is a Reader for the DeletePolicyUsingDELETE5 structure.
func (*DeletePolicyUsingDELETE5Reader) ReadResponse ¶ added in v0.4.0
func (o *DeletePolicyUsingDELETE5Reader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type DryRunPolicyUsingPOST2OK ¶ added in v0.4.0
type DryRunPolicyUsingPOST2OK struct { }
DryRunPolicyUsingPOST2OK describes a response with status code 200, with default header values.
OK
func NewDryRunPolicyUsingPOST2OK ¶ added in v0.4.0
func NewDryRunPolicyUsingPOST2OK() *DryRunPolicyUsingPOST2OK
NewDryRunPolicyUsingPOST2OK creates a DryRunPolicyUsingPOST2OK with default headers values
func (*DryRunPolicyUsingPOST2OK) Error ¶ added in v0.4.0
func (o *DryRunPolicyUsingPOST2OK) Error() string
type DryRunPolicyUsingPOST2Params ¶ added in v0.4.0
type DryRunPolicyUsingPOST2Params struct { /* APIVersion. The version of the API in yyyy-MM-dd format (UTC). If you do not specify explicitly an exact version, you will be calling the latest supported API version. */ APIVersion *string // DryRun. DryRun string /* Policy. The policy to be created */ Policy *models.Policy Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
DryRunPolicyUsingPOST2Params contains all the parameters to send to the API endpoint
for the dry run policy using p o s t 2 operation. Typically these are written to a http.Request.
func NewDryRunPolicyUsingPOST2Params ¶ added in v0.4.0
func NewDryRunPolicyUsingPOST2Params() *DryRunPolicyUsingPOST2Params
NewDryRunPolicyUsingPOST2Params creates a new DryRunPolicyUsingPOST2Params 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 NewDryRunPolicyUsingPOST2ParamsWithContext ¶ added in v0.4.0
func NewDryRunPolicyUsingPOST2ParamsWithContext(ctx context.Context) *DryRunPolicyUsingPOST2Params
NewDryRunPolicyUsingPOST2ParamsWithContext creates a new DryRunPolicyUsingPOST2Params object with the ability to set a context for a request.
func NewDryRunPolicyUsingPOST2ParamsWithHTTPClient ¶ added in v0.4.0
func NewDryRunPolicyUsingPOST2ParamsWithHTTPClient(client *http.Client) *DryRunPolicyUsingPOST2Params
NewDryRunPolicyUsingPOST2ParamsWithHTTPClient creates a new DryRunPolicyUsingPOST2Params object with the ability to set a custom HTTPClient for a request.
func NewDryRunPolicyUsingPOST2ParamsWithTimeout ¶ added in v0.4.0
func NewDryRunPolicyUsingPOST2ParamsWithTimeout(timeout time.Duration) *DryRunPolicyUsingPOST2Params
NewDryRunPolicyUsingPOST2ParamsWithTimeout creates a new DryRunPolicyUsingPOST2Params object with the ability to set a timeout on a request.
func (*DryRunPolicyUsingPOST2Params) SetAPIVersion ¶ added in v0.4.0
func (o *DryRunPolicyUsingPOST2Params) SetAPIVersion(aPIVersion *string)
SetAPIVersion adds the apiVersion to the dry run policy using p o s t 2 params
func (*DryRunPolicyUsingPOST2Params) SetContext ¶ added in v0.4.0
func (o *DryRunPolicyUsingPOST2Params) SetContext(ctx context.Context)
SetContext adds the context to the dry run policy using p o s t 2 params
func (*DryRunPolicyUsingPOST2Params) SetDefaults ¶ added in v0.4.0
func (o *DryRunPolicyUsingPOST2Params) SetDefaults()
SetDefaults hydrates default values in the dry run policy using p o s t 2 params (not the query body).
All values with no default are reset to their zero value.
func (*DryRunPolicyUsingPOST2Params) SetDryRun ¶ added in v0.4.0
func (o *DryRunPolicyUsingPOST2Params) SetDryRun(dryRun string)
SetDryRun adds the dryRun to the dry run policy using p o s t 2 params
func (*DryRunPolicyUsingPOST2Params) SetHTTPClient ¶ added in v0.4.0
func (o *DryRunPolicyUsingPOST2Params) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the dry run policy using p o s t 2 params
func (*DryRunPolicyUsingPOST2Params) SetPolicy ¶ added in v0.4.0
func (o *DryRunPolicyUsingPOST2Params) SetPolicy(policy *models.Policy)
SetPolicy adds the policy to the dry run policy using p o s t 2 params
func (*DryRunPolicyUsingPOST2Params) SetTimeout ¶ added in v0.4.0
func (o *DryRunPolicyUsingPOST2Params) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the dry run policy using p o s t 2 params
func (*DryRunPolicyUsingPOST2Params) WithAPIVersion ¶ added in v0.4.0
func (o *DryRunPolicyUsingPOST2Params) WithAPIVersion(aPIVersion *string) *DryRunPolicyUsingPOST2Params
WithAPIVersion adds the aPIVersion to the dry run policy using p o s t 2 params
func (*DryRunPolicyUsingPOST2Params) WithContext ¶ added in v0.4.0
func (o *DryRunPolicyUsingPOST2Params) WithContext(ctx context.Context) *DryRunPolicyUsingPOST2Params
WithContext adds the context to the dry run policy using p o s t 2 params
func (*DryRunPolicyUsingPOST2Params) WithDefaults ¶ added in v0.4.0
func (o *DryRunPolicyUsingPOST2Params) WithDefaults() *DryRunPolicyUsingPOST2Params
WithDefaults hydrates default values in the dry run policy using p o s t 2 params (not the query body).
All values with no default are reset to their zero value.
func (*DryRunPolicyUsingPOST2Params) WithDryRun ¶ added in v0.4.0
func (o *DryRunPolicyUsingPOST2Params) WithDryRun(dryRun string) *DryRunPolicyUsingPOST2Params
WithDryRun adds the dryRun to the dry run policy using p o s t 2 params
func (*DryRunPolicyUsingPOST2Params) WithHTTPClient ¶ added in v0.4.0
func (o *DryRunPolicyUsingPOST2Params) WithHTTPClient(client *http.Client) *DryRunPolicyUsingPOST2Params
WithHTTPClient adds the HTTPClient to the dry run policy using p o s t 2 params
func (*DryRunPolicyUsingPOST2Params) WithPolicy ¶ added in v0.4.0
func (o *DryRunPolicyUsingPOST2Params) WithPolicy(policy *models.Policy) *DryRunPolicyUsingPOST2Params
WithPolicy adds the policy to the dry run policy using p o s t 2 params
func (*DryRunPolicyUsingPOST2Params) WithTimeout ¶ added in v0.4.0
func (o *DryRunPolicyUsingPOST2Params) WithTimeout(timeout time.Duration) *DryRunPolicyUsingPOST2Params
WithTimeout adds the timeout to the dry run policy using p o s t 2 params
func (*DryRunPolicyUsingPOST2Params) WriteToRequest ¶ added in v0.4.0
func (o *DryRunPolicyUsingPOST2Params) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type DryRunPolicyUsingPOST2Reader ¶ added in v0.4.0
type DryRunPolicyUsingPOST2Reader struct {
// contains filtered or unexported fields
}
DryRunPolicyUsingPOST2Reader is a Reader for the DryRunPolicyUsingPOST2 structure.
func (*DryRunPolicyUsingPOST2Reader) ReadResponse ¶ added in v0.4.0
func (o *DryRunPolicyUsingPOST2Reader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetPoliciesUsingGET5OK ¶ added in v0.4.0
type GetPoliciesUsingGET5OK struct {
Payload *models.PageOfPolicy
}
GetPoliciesUsingGET5OK describes a response with status code 200, with default header values.
OK
func NewGetPoliciesUsingGET5OK ¶ added in v0.4.0
func NewGetPoliciesUsingGET5OK() *GetPoliciesUsingGET5OK
NewGetPoliciesUsingGET5OK creates a GetPoliciesUsingGET5OK with default headers values
func (*GetPoliciesUsingGET5OK) Error ¶ added in v0.4.0
func (o *GetPoliciesUsingGET5OK) Error() string
func (*GetPoliciesUsingGET5OK) GetPayload ¶ added in v0.4.0
func (o *GetPoliciesUsingGET5OK) GetPayload() *models.PageOfPolicy
type GetPoliciesUsingGET5Params ¶ added in v0.4.0
type GetPoliciesUsingGET5Params struct { /* DollarOrderby. Sorting criteria in the format: property (asc|desc). Default sort order is ascending. Multiple sort criteria are supported. */ DollarOrderby []string /* DollarSkip. Number of records you want to skip Format: int32 */ DollarSkip *int32 /* DollarTop. Number of records you want Format: int32 */ DollarTop *int32 /* APIVersion. The version of the API in yyyy-MM-dd format (UTC). If you do not specify explicitly an exact version, you will be calling the latest supported API version. */ APIVersion *string /* ComputeStats. computeStats */ ComputeStats *bool /* ExpandDefinition. Retrieves policy definition information for each returned policy. */ ExpandDefinition *bool /* Search. Matches will start with this string in their name or have this string somewhere in their description. */ Search *string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetPoliciesUsingGET5Params contains all the parameters to send to the API endpoint
for the get policies using g e t 5 operation. Typically these are written to a http.Request.
func NewGetPoliciesUsingGET5Params ¶ added in v0.4.0
func NewGetPoliciesUsingGET5Params() *GetPoliciesUsingGET5Params
NewGetPoliciesUsingGET5Params creates a new GetPoliciesUsingGET5Params 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 NewGetPoliciesUsingGET5ParamsWithContext ¶ added in v0.4.0
func NewGetPoliciesUsingGET5ParamsWithContext(ctx context.Context) *GetPoliciesUsingGET5Params
NewGetPoliciesUsingGET5ParamsWithContext creates a new GetPoliciesUsingGET5Params object with the ability to set a context for a request.
func NewGetPoliciesUsingGET5ParamsWithHTTPClient ¶ added in v0.4.0
func NewGetPoliciesUsingGET5ParamsWithHTTPClient(client *http.Client) *GetPoliciesUsingGET5Params
NewGetPoliciesUsingGET5ParamsWithHTTPClient creates a new GetPoliciesUsingGET5Params object with the ability to set a custom HTTPClient for a request.
func NewGetPoliciesUsingGET5ParamsWithTimeout ¶ added in v0.4.0
func NewGetPoliciesUsingGET5ParamsWithTimeout(timeout time.Duration) *GetPoliciesUsingGET5Params
NewGetPoliciesUsingGET5ParamsWithTimeout creates a new GetPoliciesUsingGET5Params object with the ability to set a timeout on a request.
func (*GetPoliciesUsingGET5Params) SetAPIVersion ¶ added in v0.4.0
func (o *GetPoliciesUsingGET5Params) SetAPIVersion(aPIVersion *string)
SetAPIVersion adds the apiVersion to the get policies using g e t 5 params
func (*GetPoliciesUsingGET5Params) SetComputeStats ¶ added in v0.4.0
func (o *GetPoliciesUsingGET5Params) SetComputeStats(computeStats *bool)
SetComputeStats adds the computeStats to the get policies using g e t 5 params
func (*GetPoliciesUsingGET5Params) SetContext ¶ added in v0.4.0
func (o *GetPoliciesUsingGET5Params) SetContext(ctx context.Context)
SetContext adds the context to the get policies using g e t 5 params
func (*GetPoliciesUsingGET5Params) SetDefaults ¶ added in v0.4.0
func (o *GetPoliciesUsingGET5Params) SetDefaults()
SetDefaults hydrates default values in the get policies using g e t 5 params (not the query body).
All values with no default are reset to their zero value.
func (*GetPoliciesUsingGET5Params) SetDollarOrderby ¶ added in v0.4.0
func (o *GetPoliciesUsingGET5Params) SetDollarOrderby(dollarOrderby []string)
SetDollarOrderby adds the dollarOrderby to the get policies using g e t 5 params
func (*GetPoliciesUsingGET5Params) SetDollarSkip ¶ added in v0.4.0
func (o *GetPoliciesUsingGET5Params) SetDollarSkip(dollarSkip *int32)
SetDollarSkip adds the dollarSkip to the get policies using g e t 5 params
func (*GetPoliciesUsingGET5Params) SetDollarTop ¶ added in v0.4.0
func (o *GetPoliciesUsingGET5Params) SetDollarTop(dollarTop *int32)
SetDollarTop adds the dollarTop to the get policies using g e t 5 params
func (*GetPoliciesUsingGET5Params) SetExpandDefinition ¶ added in v0.4.0
func (o *GetPoliciesUsingGET5Params) SetExpandDefinition(expandDefinition *bool)
SetExpandDefinition adds the expandDefinition to the get policies using g e t 5 params
func (*GetPoliciesUsingGET5Params) SetHTTPClient ¶ added in v0.4.0
func (o *GetPoliciesUsingGET5Params) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get policies using g e t 5 params
func (*GetPoliciesUsingGET5Params) SetSearch ¶ added in v0.4.0
func (o *GetPoliciesUsingGET5Params) SetSearch(search *string)
SetSearch adds the search to the get policies using g e t 5 params
func (*GetPoliciesUsingGET5Params) SetTimeout ¶ added in v0.4.0
func (o *GetPoliciesUsingGET5Params) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get policies using g e t 5 params
func (*GetPoliciesUsingGET5Params) WithAPIVersion ¶ added in v0.4.0
func (o *GetPoliciesUsingGET5Params) WithAPIVersion(aPIVersion *string) *GetPoliciesUsingGET5Params
WithAPIVersion adds the aPIVersion to the get policies using g e t 5 params
func (*GetPoliciesUsingGET5Params) WithComputeStats ¶ added in v0.4.0
func (o *GetPoliciesUsingGET5Params) WithComputeStats(computeStats *bool) *GetPoliciesUsingGET5Params
WithComputeStats adds the computeStats to the get policies using g e t 5 params
func (*GetPoliciesUsingGET5Params) WithContext ¶ added in v0.4.0
func (o *GetPoliciesUsingGET5Params) WithContext(ctx context.Context) *GetPoliciesUsingGET5Params
WithContext adds the context to the get policies using g e t 5 params
func (*GetPoliciesUsingGET5Params) WithDefaults ¶ added in v0.4.0
func (o *GetPoliciesUsingGET5Params) WithDefaults() *GetPoliciesUsingGET5Params
WithDefaults hydrates default values in the get policies using g e t 5 params (not the query body).
All values with no default are reset to their zero value.
func (*GetPoliciesUsingGET5Params) WithDollarOrderby ¶ added in v0.4.0
func (o *GetPoliciesUsingGET5Params) WithDollarOrderby(dollarOrderby []string) *GetPoliciesUsingGET5Params
WithDollarOrderby adds the dollarOrderby to the get policies using g e t 5 params
func (*GetPoliciesUsingGET5Params) WithDollarSkip ¶ added in v0.4.0
func (o *GetPoliciesUsingGET5Params) WithDollarSkip(dollarSkip *int32) *GetPoliciesUsingGET5Params
WithDollarSkip adds the dollarSkip to the get policies using g e t 5 params
func (*GetPoliciesUsingGET5Params) WithDollarTop ¶ added in v0.4.0
func (o *GetPoliciesUsingGET5Params) WithDollarTop(dollarTop *int32) *GetPoliciesUsingGET5Params
WithDollarTop adds the dollarTop to the get policies using g e t 5 params
func (*GetPoliciesUsingGET5Params) WithExpandDefinition ¶ added in v0.4.0
func (o *GetPoliciesUsingGET5Params) WithExpandDefinition(expandDefinition *bool) *GetPoliciesUsingGET5Params
WithExpandDefinition adds the expandDefinition to the get policies using g e t 5 params
func (*GetPoliciesUsingGET5Params) WithHTTPClient ¶ added in v0.4.0
func (o *GetPoliciesUsingGET5Params) WithHTTPClient(client *http.Client) *GetPoliciesUsingGET5Params
WithHTTPClient adds the HTTPClient to the get policies using g e t 5 params
func (*GetPoliciesUsingGET5Params) WithSearch ¶ added in v0.4.0
func (o *GetPoliciesUsingGET5Params) WithSearch(search *string) *GetPoliciesUsingGET5Params
WithSearch adds the search to the get policies using g e t 5 params
func (*GetPoliciesUsingGET5Params) WithTimeout ¶ added in v0.4.0
func (o *GetPoliciesUsingGET5Params) WithTimeout(timeout time.Duration) *GetPoliciesUsingGET5Params
WithTimeout adds the timeout to the get policies using g e t 5 params
func (*GetPoliciesUsingGET5Params) WriteToRequest ¶ added in v0.4.0
func (o *GetPoliciesUsingGET5Params) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetPoliciesUsingGET5Reader ¶ added in v0.4.0
type GetPoliciesUsingGET5Reader struct {
// contains filtered or unexported fields
}
GetPoliciesUsingGET5Reader is a Reader for the GetPoliciesUsingGET5 structure.
func (*GetPoliciesUsingGET5Reader) ReadResponse ¶ added in v0.4.0
func (o *GetPoliciesUsingGET5Reader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetPolicyUsingGET5OK ¶ added in v0.4.0
GetPolicyUsingGET5OK describes a response with status code 200, with default header values.
OK
func NewGetPolicyUsingGET5OK ¶ added in v0.4.0
func NewGetPolicyUsingGET5OK() *GetPolicyUsingGET5OK
NewGetPolicyUsingGET5OK creates a GetPolicyUsingGET5OK with default headers values
func (*GetPolicyUsingGET5OK) Error ¶ added in v0.4.0
func (o *GetPolicyUsingGET5OK) Error() string
func (*GetPolicyUsingGET5OK) GetPayload ¶ added in v0.4.0
func (o *GetPolicyUsingGET5OK) GetPayload() *models.Policy
type GetPolicyUsingGET5Params ¶ added in v0.4.0
type GetPolicyUsingGET5Params struct { /* APIVersion. The version of the API in yyyy-MM-dd format (UTC). If you do not specify explicitly an exact version, you will be calling the latest supported API version. */ APIVersion *string /* ComputeStats. computeStats */ ComputeStats *bool /* ID. Policy ID Format: uuid */ ID strfmt.UUID Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetPolicyUsingGET5Params contains all the parameters to send to the API endpoint
for the get policy using g e t 5 operation. Typically these are written to a http.Request.
func NewGetPolicyUsingGET5Params ¶ added in v0.4.0
func NewGetPolicyUsingGET5Params() *GetPolicyUsingGET5Params
NewGetPolicyUsingGET5Params creates a new GetPolicyUsingGET5Params 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 NewGetPolicyUsingGET5ParamsWithContext ¶ added in v0.4.0
func NewGetPolicyUsingGET5ParamsWithContext(ctx context.Context) *GetPolicyUsingGET5Params
NewGetPolicyUsingGET5ParamsWithContext creates a new GetPolicyUsingGET5Params object with the ability to set a context for a request.
func NewGetPolicyUsingGET5ParamsWithHTTPClient ¶ added in v0.4.0
func NewGetPolicyUsingGET5ParamsWithHTTPClient(client *http.Client) *GetPolicyUsingGET5Params
NewGetPolicyUsingGET5ParamsWithHTTPClient creates a new GetPolicyUsingGET5Params object with the ability to set a custom HTTPClient for a request.
func NewGetPolicyUsingGET5ParamsWithTimeout ¶ added in v0.4.0
func NewGetPolicyUsingGET5ParamsWithTimeout(timeout time.Duration) *GetPolicyUsingGET5Params
NewGetPolicyUsingGET5ParamsWithTimeout creates a new GetPolicyUsingGET5Params object with the ability to set a timeout on a request.
func (*GetPolicyUsingGET5Params) SetAPIVersion ¶ added in v0.4.0
func (o *GetPolicyUsingGET5Params) SetAPIVersion(aPIVersion *string)
SetAPIVersion adds the apiVersion to the get policy using g e t 5 params
func (*GetPolicyUsingGET5Params) SetComputeStats ¶ added in v0.4.0
func (o *GetPolicyUsingGET5Params) SetComputeStats(computeStats *bool)
SetComputeStats adds the computeStats to the get policy using g e t 5 params
func (*GetPolicyUsingGET5Params) SetContext ¶ added in v0.4.0
func (o *GetPolicyUsingGET5Params) SetContext(ctx context.Context)
SetContext adds the context to the get policy using g e t 5 params
func (*GetPolicyUsingGET5Params) SetDefaults ¶ added in v0.4.0
func (o *GetPolicyUsingGET5Params) SetDefaults()
SetDefaults hydrates default values in the get policy using g e t 5 params (not the query body).
All values with no default are reset to their zero value.
func (*GetPolicyUsingGET5Params) SetHTTPClient ¶ added in v0.4.0
func (o *GetPolicyUsingGET5Params) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get policy using g e t 5 params
func (*GetPolicyUsingGET5Params) SetID ¶ added in v0.4.0
func (o *GetPolicyUsingGET5Params) SetID(id strfmt.UUID)
SetID adds the id to the get policy using g e t 5 params
func (*GetPolicyUsingGET5Params) SetTimeout ¶ added in v0.4.0
func (o *GetPolicyUsingGET5Params) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get policy using g e t 5 params
func (*GetPolicyUsingGET5Params) WithAPIVersion ¶ added in v0.4.0
func (o *GetPolicyUsingGET5Params) WithAPIVersion(aPIVersion *string) *GetPolicyUsingGET5Params
WithAPIVersion adds the aPIVersion to the get policy using g e t 5 params
func (*GetPolicyUsingGET5Params) WithComputeStats ¶ added in v0.4.0
func (o *GetPolicyUsingGET5Params) WithComputeStats(computeStats *bool) *GetPolicyUsingGET5Params
WithComputeStats adds the computeStats to the get policy using g e t 5 params
func (*GetPolicyUsingGET5Params) WithContext ¶ added in v0.4.0
func (o *GetPolicyUsingGET5Params) WithContext(ctx context.Context) *GetPolicyUsingGET5Params
WithContext adds the context to the get policy using g e t 5 params
func (*GetPolicyUsingGET5Params) WithDefaults ¶ added in v0.4.0
func (o *GetPolicyUsingGET5Params) WithDefaults() *GetPolicyUsingGET5Params
WithDefaults hydrates default values in the get policy using g e t 5 params (not the query body).
All values with no default are reset to their zero value.
func (*GetPolicyUsingGET5Params) WithHTTPClient ¶ added in v0.4.0
func (o *GetPolicyUsingGET5Params) WithHTTPClient(client *http.Client) *GetPolicyUsingGET5Params
WithHTTPClient adds the HTTPClient to the get policy using g e t 5 params
func (*GetPolicyUsingGET5Params) WithID ¶ added in v0.4.0
func (o *GetPolicyUsingGET5Params) WithID(id strfmt.UUID) *GetPolicyUsingGET5Params
WithID adds the id to the get policy using g e t 5 params
func (*GetPolicyUsingGET5Params) WithTimeout ¶ added in v0.4.0
func (o *GetPolicyUsingGET5Params) WithTimeout(timeout time.Duration) *GetPolicyUsingGET5Params
WithTimeout adds the timeout to the get policy using g e t 5 params
func (*GetPolicyUsingGET5Params) WriteToRequest ¶ added in v0.4.0
func (o *GetPolicyUsingGET5Params) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetPolicyUsingGET5Reader ¶ added in v0.4.0
type GetPolicyUsingGET5Reader struct {
// contains filtered or unexported fields
}
GetPolicyUsingGET5Reader is a Reader for the GetPolicyUsingGET5 structure.
func (*GetPolicyUsingGET5Reader) ReadResponse ¶ added in v0.4.0
func (o *GetPolicyUsingGET5Reader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
Source Files
¶
- delete_policy_using_delete5_parameters.go
- delete_policy_using_delete5_responses.go
- dry_run_policy_using_post2_parameters.go
- dry_run_policy_using_post2_responses.go
- get_policies_using_get5_parameters.go
- get_policies_using_get5_responses.go
- get_policy_using_get5_parameters.go
- get_policy_using_get5_responses.go
- policies_client.go