Documentation ¶
Index ¶
- type Client
- func (a *Client) CreatePolicyUsingPOST(params *CreatePolicyUsingPOSTParams) (*CreatePolicyUsingPOSTOK, error)
- func (a *Client) DeletePolicyUsingDELETE(params *DeletePolicyUsingDELETEParams) (*DeletePolicyUsingDELETENoContent, error)
- func (a *Client) GetPoliciesUsingGET(params *GetPoliciesUsingGETParams) (*GetPoliciesUsingGETOK, error)
- func (a *Client) GetPolicyUsingGET(params *GetPolicyUsingGETParams) (*GetPolicyUsingGETOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type CreatePolicyUsingPOSTOK
- type CreatePolicyUsingPOSTParams
- func NewCreatePolicyUsingPOSTParams() *CreatePolicyUsingPOSTParams
- func NewCreatePolicyUsingPOSTParamsWithContext(ctx context.Context) *CreatePolicyUsingPOSTParams
- func NewCreatePolicyUsingPOSTParamsWithHTTPClient(client *http.Client) *CreatePolicyUsingPOSTParams
- func NewCreatePolicyUsingPOSTParamsWithTimeout(timeout time.Duration) *CreatePolicyUsingPOSTParams
- func (o *CreatePolicyUsingPOSTParams) SetContext(ctx context.Context)
- func (o *CreatePolicyUsingPOSTParams) SetHTTPClient(client *http.Client)
- func (o *CreatePolicyUsingPOSTParams) SetPolicy(policy *models.Policy)
- func (o *CreatePolicyUsingPOSTParams) SetTimeout(timeout time.Duration)
- func (o *CreatePolicyUsingPOSTParams) SetValidationOnly(validationOnly *bool)
- func (o *CreatePolicyUsingPOSTParams) WithContext(ctx context.Context) *CreatePolicyUsingPOSTParams
- func (o *CreatePolicyUsingPOSTParams) WithHTTPClient(client *http.Client) *CreatePolicyUsingPOSTParams
- func (o *CreatePolicyUsingPOSTParams) WithPolicy(policy *models.Policy) *CreatePolicyUsingPOSTParams
- func (o *CreatePolicyUsingPOSTParams) WithTimeout(timeout time.Duration) *CreatePolicyUsingPOSTParams
- func (o *CreatePolicyUsingPOSTParams) WithValidationOnly(validationOnly *bool) *CreatePolicyUsingPOSTParams
- func (o *CreatePolicyUsingPOSTParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CreatePolicyUsingPOSTReader
- type DeletePolicyUsingDELETENoContent
- type DeletePolicyUsingDELETEParams
- func NewDeletePolicyUsingDELETEParams() *DeletePolicyUsingDELETEParams
- func NewDeletePolicyUsingDELETEParamsWithContext(ctx context.Context) *DeletePolicyUsingDELETEParams
- func NewDeletePolicyUsingDELETEParamsWithHTTPClient(client *http.Client) *DeletePolicyUsingDELETEParams
- func NewDeletePolicyUsingDELETEParamsWithTimeout(timeout time.Duration) *DeletePolicyUsingDELETEParams
- func (o *DeletePolicyUsingDELETEParams) SetContext(ctx context.Context)
- func (o *DeletePolicyUsingDELETEParams) SetHTTPClient(client *http.Client)
- func (o *DeletePolicyUsingDELETEParams) SetID(id strfmt.UUID)
- func (o *DeletePolicyUsingDELETEParams) SetTimeout(timeout time.Duration)
- func (o *DeletePolicyUsingDELETEParams) WithContext(ctx context.Context) *DeletePolicyUsingDELETEParams
- func (o *DeletePolicyUsingDELETEParams) WithHTTPClient(client *http.Client) *DeletePolicyUsingDELETEParams
- func (o *DeletePolicyUsingDELETEParams) WithID(id strfmt.UUID) *DeletePolicyUsingDELETEParams
- func (o *DeletePolicyUsingDELETEParams) WithTimeout(timeout time.Duration) *DeletePolicyUsingDELETEParams
- func (o *DeletePolicyUsingDELETEParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DeletePolicyUsingDELETEReader
- type GetPoliciesUsingGETOK
- type GetPoliciesUsingGETParams
- func NewGetPoliciesUsingGETParams() *GetPoliciesUsingGETParams
- func NewGetPoliciesUsingGETParamsWithContext(ctx context.Context) *GetPoliciesUsingGETParams
- func NewGetPoliciesUsingGETParamsWithHTTPClient(client *http.Client) *GetPoliciesUsingGETParams
- func NewGetPoliciesUsingGETParamsWithTimeout(timeout time.Duration) *GetPoliciesUsingGETParams
- func (o *GetPoliciesUsingGETParams) SetComputeStats(computeStats *bool)
- func (o *GetPoliciesUsingGETParams) SetContext(ctx context.Context)
- func (o *GetPoliciesUsingGETParams) SetDollarOrderby(dollarOrderby []string)
- func (o *GetPoliciesUsingGETParams) SetDollarSkip(dollarSkip *int32)
- func (o *GetPoliciesUsingGETParams) SetDollarTop(dollarTop *int32)
- func (o *GetPoliciesUsingGETParams) SetExpandDefinition(expandDefinition *bool)
- func (o *GetPoliciesUsingGETParams) SetHTTPClient(client *http.Client)
- func (o *GetPoliciesUsingGETParams) SetSearch(search *string)
- func (o *GetPoliciesUsingGETParams) SetTimeout(timeout time.Duration)
- func (o *GetPoliciesUsingGETParams) WithComputeStats(computeStats *bool) *GetPoliciesUsingGETParams
- func (o *GetPoliciesUsingGETParams) WithContext(ctx context.Context) *GetPoliciesUsingGETParams
- func (o *GetPoliciesUsingGETParams) WithDollarOrderby(dollarOrderby []string) *GetPoliciesUsingGETParams
- func (o *GetPoliciesUsingGETParams) WithDollarSkip(dollarSkip *int32) *GetPoliciesUsingGETParams
- func (o *GetPoliciesUsingGETParams) WithDollarTop(dollarTop *int32) *GetPoliciesUsingGETParams
- func (o *GetPoliciesUsingGETParams) WithExpandDefinition(expandDefinition *bool) *GetPoliciesUsingGETParams
- func (o *GetPoliciesUsingGETParams) WithHTTPClient(client *http.Client) *GetPoliciesUsingGETParams
- func (o *GetPoliciesUsingGETParams) WithSearch(search *string) *GetPoliciesUsingGETParams
- func (o *GetPoliciesUsingGETParams) WithTimeout(timeout time.Duration) *GetPoliciesUsingGETParams
- func (o *GetPoliciesUsingGETParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetPoliciesUsingGETReader
- type GetPolicyUsingGETOK
- type GetPolicyUsingGETParams
- func NewGetPolicyUsingGETParams() *GetPolicyUsingGETParams
- func NewGetPolicyUsingGETParamsWithContext(ctx context.Context) *GetPolicyUsingGETParams
- func NewGetPolicyUsingGETParamsWithHTTPClient(client *http.Client) *GetPolicyUsingGETParams
- func NewGetPolicyUsingGETParamsWithTimeout(timeout time.Duration) *GetPolicyUsingGETParams
- func (o *GetPolicyUsingGETParams) SetComputeStats(computeStats *bool)
- func (o *GetPolicyUsingGETParams) SetContext(ctx context.Context)
- func (o *GetPolicyUsingGETParams) SetExpandCriteriaLegend(expandCriteriaLegend *bool)
- func (o *GetPolicyUsingGETParams) SetHTTPClient(client *http.Client)
- func (o *GetPolicyUsingGETParams) SetID(id strfmt.UUID)
- func (o *GetPolicyUsingGETParams) SetTimeout(timeout time.Duration)
- func (o *GetPolicyUsingGETParams) WithComputeStats(computeStats *bool) *GetPolicyUsingGETParams
- func (o *GetPolicyUsingGETParams) WithContext(ctx context.Context) *GetPolicyUsingGETParams
- func (o *GetPolicyUsingGETParams) WithExpandCriteriaLegend(expandCriteriaLegend *bool) *GetPolicyUsingGETParams
- func (o *GetPolicyUsingGETParams) WithHTTPClient(client *http.Client) *GetPolicyUsingGETParams
- func (o *GetPolicyUsingGETParams) WithID(id strfmt.UUID) *GetPolicyUsingGETParams
- func (o *GetPolicyUsingGETParams) WithTimeout(timeout time.Duration) *GetPolicyUsingGETParams
- func (o *GetPolicyUsingGETParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetPolicyUsingGETReader
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 New ¶
func New(transport runtime.ClientTransport, formats strfmt.Registry) *Client
New creates a new policies API client.
func (*Client) CreatePolicyUsingPOST ¶
func (a *Client) CreatePolicyUsingPOST(params *CreatePolicyUsingPOSTParams) (*CreatePolicyUsingPOSTOK, error)
CreatePolicyUsingPOST creates a policy
Create a new policy based on request body and validate its field according to business rules.
func (*Client) DeletePolicyUsingDELETE ¶
func (a *Client) DeletePolicyUsingDELETE(params *DeletePolicyUsingDELETEParams) (*DeletePolicyUsingDELETENoContent, error)
DeletePolicyUsingDELETE deletes a policy
Delete a specified policy corresponding to its unique id.
func (*Client) GetPoliciesUsingGET ¶
func (a *Client) GetPoliciesUsingGET(params *GetPoliciesUsingGETParams) (*GetPoliciesUsingGETOK, error)
GetPoliciesUsingGET returns a paginated list of policies
Find all the policies associated with current org.
func (*Client) GetPolicyUsingGET ¶
func (a *Client) GetPolicyUsingGET(params *GetPolicyUsingGETParams) (*GetPolicyUsingGETOK, error)
GetPolicyUsingGET 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 CreatePolicyUsingPOSTOK ¶
CreatePolicyUsingPOSTOK handles this case with default header values.
OK
func NewCreatePolicyUsingPOSTOK ¶
func NewCreatePolicyUsingPOSTOK() *CreatePolicyUsingPOSTOK
NewCreatePolicyUsingPOSTOK creates a CreatePolicyUsingPOSTOK with default headers values
func (*CreatePolicyUsingPOSTOK) Error ¶
func (o *CreatePolicyUsingPOSTOK) Error() string
func (*CreatePolicyUsingPOSTOK) GetPayload ¶
func (o *CreatePolicyUsingPOSTOK) GetPayload() *models.Policy
type CreatePolicyUsingPOSTParams ¶
type CreatePolicyUsingPOSTParams struct { /*Policy The policy to be created */ Policy *models.Policy /*ValidationOnly For a dry run that will do policy validation only instead of create a policy */ ValidationOnly *bool Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
CreatePolicyUsingPOSTParams contains all the parameters to send to the API endpoint for the create policy using p o s t operation typically these are written to a http.Request
func NewCreatePolicyUsingPOSTParams ¶
func NewCreatePolicyUsingPOSTParams() *CreatePolicyUsingPOSTParams
NewCreatePolicyUsingPOSTParams creates a new CreatePolicyUsingPOSTParams object with the default values initialized.
func NewCreatePolicyUsingPOSTParamsWithContext ¶
func NewCreatePolicyUsingPOSTParamsWithContext(ctx context.Context) *CreatePolicyUsingPOSTParams
NewCreatePolicyUsingPOSTParamsWithContext creates a new CreatePolicyUsingPOSTParams object with the default values initialized, and the ability to set a context for a request
func NewCreatePolicyUsingPOSTParamsWithHTTPClient ¶
func NewCreatePolicyUsingPOSTParamsWithHTTPClient(client *http.Client) *CreatePolicyUsingPOSTParams
NewCreatePolicyUsingPOSTParamsWithHTTPClient creates a new CreatePolicyUsingPOSTParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewCreatePolicyUsingPOSTParamsWithTimeout ¶
func NewCreatePolicyUsingPOSTParamsWithTimeout(timeout time.Duration) *CreatePolicyUsingPOSTParams
NewCreatePolicyUsingPOSTParamsWithTimeout creates a new CreatePolicyUsingPOSTParams object with the default values initialized, and the ability to set a timeout on a request
func (*CreatePolicyUsingPOSTParams) SetContext ¶
func (o *CreatePolicyUsingPOSTParams) SetContext(ctx context.Context)
SetContext adds the context to the create policy using p o s t params
func (*CreatePolicyUsingPOSTParams) SetHTTPClient ¶
func (o *CreatePolicyUsingPOSTParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the create policy using p o s t params
func (*CreatePolicyUsingPOSTParams) SetPolicy ¶
func (o *CreatePolicyUsingPOSTParams) SetPolicy(policy *models.Policy)
SetPolicy adds the policy to the create policy using p o s t params
func (*CreatePolicyUsingPOSTParams) SetTimeout ¶
func (o *CreatePolicyUsingPOSTParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the create policy using p o s t params
func (*CreatePolicyUsingPOSTParams) SetValidationOnly ¶
func (o *CreatePolicyUsingPOSTParams) SetValidationOnly(validationOnly *bool)
SetValidationOnly adds the validationOnly to the create policy using p o s t params
func (*CreatePolicyUsingPOSTParams) WithContext ¶
func (o *CreatePolicyUsingPOSTParams) WithContext(ctx context.Context) *CreatePolicyUsingPOSTParams
WithContext adds the context to the create policy using p o s t params
func (*CreatePolicyUsingPOSTParams) WithHTTPClient ¶
func (o *CreatePolicyUsingPOSTParams) WithHTTPClient(client *http.Client) *CreatePolicyUsingPOSTParams
WithHTTPClient adds the HTTPClient to the create policy using p o s t params
func (*CreatePolicyUsingPOSTParams) WithPolicy ¶
func (o *CreatePolicyUsingPOSTParams) WithPolicy(policy *models.Policy) *CreatePolicyUsingPOSTParams
WithPolicy adds the policy to the create policy using p o s t params
func (*CreatePolicyUsingPOSTParams) WithTimeout ¶
func (o *CreatePolicyUsingPOSTParams) WithTimeout(timeout time.Duration) *CreatePolicyUsingPOSTParams
WithTimeout adds the timeout to the create policy using p o s t params
func (*CreatePolicyUsingPOSTParams) WithValidationOnly ¶
func (o *CreatePolicyUsingPOSTParams) WithValidationOnly(validationOnly *bool) *CreatePolicyUsingPOSTParams
WithValidationOnly adds the validationOnly to the create policy using p o s t params
func (*CreatePolicyUsingPOSTParams) WriteToRequest ¶
func (o *CreatePolicyUsingPOSTParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type CreatePolicyUsingPOSTReader ¶
type CreatePolicyUsingPOSTReader struct {
// contains filtered or unexported fields
}
CreatePolicyUsingPOSTReader is a Reader for the CreatePolicyUsingPOST structure.
func (*CreatePolicyUsingPOSTReader) ReadResponse ¶
func (o *CreatePolicyUsingPOSTReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type DeletePolicyUsingDELETENoContent ¶
type DeletePolicyUsingDELETENoContent struct { }
DeletePolicyUsingDELETENoContent handles this case with default header values.
No Content
func NewDeletePolicyUsingDELETENoContent ¶
func NewDeletePolicyUsingDELETENoContent() *DeletePolicyUsingDELETENoContent
NewDeletePolicyUsingDELETENoContent creates a DeletePolicyUsingDELETENoContent with default headers values
func (*DeletePolicyUsingDELETENoContent) Error ¶
func (o *DeletePolicyUsingDELETENoContent) Error() string
type DeletePolicyUsingDELETEParams ¶
type DeletePolicyUsingDELETEParams struct { /*ID Policy ID */ ID strfmt.UUID Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
DeletePolicyUsingDELETEParams contains all the parameters to send to the API endpoint for the delete policy using d e l e t e operation typically these are written to a http.Request
func NewDeletePolicyUsingDELETEParams ¶
func NewDeletePolicyUsingDELETEParams() *DeletePolicyUsingDELETEParams
NewDeletePolicyUsingDELETEParams creates a new DeletePolicyUsingDELETEParams object with the default values initialized.
func NewDeletePolicyUsingDELETEParamsWithContext ¶
func NewDeletePolicyUsingDELETEParamsWithContext(ctx context.Context) *DeletePolicyUsingDELETEParams
NewDeletePolicyUsingDELETEParamsWithContext creates a new DeletePolicyUsingDELETEParams object with the default values initialized, and the ability to set a context for a request
func NewDeletePolicyUsingDELETEParamsWithHTTPClient ¶
func NewDeletePolicyUsingDELETEParamsWithHTTPClient(client *http.Client) *DeletePolicyUsingDELETEParams
NewDeletePolicyUsingDELETEParamsWithHTTPClient creates a new DeletePolicyUsingDELETEParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewDeletePolicyUsingDELETEParamsWithTimeout ¶
func NewDeletePolicyUsingDELETEParamsWithTimeout(timeout time.Duration) *DeletePolicyUsingDELETEParams
NewDeletePolicyUsingDELETEParamsWithTimeout creates a new DeletePolicyUsingDELETEParams object with the default values initialized, and the ability to set a timeout on a request
func (*DeletePolicyUsingDELETEParams) SetContext ¶
func (o *DeletePolicyUsingDELETEParams) SetContext(ctx context.Context)
SetContext adds the context to the delete policy using d e l e t e params
func (*DeletePolicyUsingDELETEParams) SetHTTPClient ¶
func (o *DeletePolicyUsingDELETEParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the delete policy using d e l e t e params
func (*DeletePolicyUsingDELETEParams) SetID ¶
func (o *DeletePolicyUsingDELETEParams) SetID(id strfmt.UUID)
SetID adds the id to the delete policy using d e l e t e params
func (*DeletePolicyUsingDELETEParams) SetTimeout ¶
func (o *DeletePolicyUsingDELETEParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the delete policy using d e l e t e params
func (*DeletePolicyUsingDELETEParams) WithContext ¶
func (o *DeletePolicyUsingDELETEParams) WithContext(ctx context.Context) *DeletePolicyUsingDELETEParams
WithContext adds the context to the delete policy using d e l e t e params
func (*DeletePolicyUsingDELETEParams) WithHTTPClient ¶
func (o *DeletePolicyUsingDELETEParams) WithHTTPClient(client *http.Client) *DeletePolicyUsingDELETEParams
WithHTTPClient adds the HTTPClient to the delete policy using d e l e t e params
func (*DeletePolicyUsingDELETEParams) WithID ¶
func (o *DeletePolicyUsingDELETEParams) WithID(id strfmt.UUID) *DeletePolicyUsingDELETEParams
WithID adds the id to the delete policy using d e l e t e params
func (*DeletePolicyUsingDELETEParams) WithTimeout ¶
func (o *DeletePolicyUsingDELETEParams) WithTimeout(timeout time.Duration) *DeletePolicyUsingDELETEParams
WithTimeout adds the timeout to the delete policy using d e l e t e params
func (*DeletePolicyUsingDELETEParams) WriteToRequest ¶
func (o *DeletePolicyUsingDELETEParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type DeletePolicyUsingDELETEReader ¶
type DeletePolicyUsingDELETEReader struct {
// contains filtered or unexported fields
}
DeletePolicyUsingDELETEReader is a Reader for the DeletePolicyUsingDELETE structure.
func (*DeletePolicyUsingDELETEReader) ReadResponse ¶
func (o *DeletePolicyUsingDELETEReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetPoliciesUsingGETOK ¶
type GetPoliciesUsingGETOK struct {
Payload *models.PageOfPolicy
}
GetPoliciesUsingGETOK handles this case with default header values.
OK
func NewGetPoliciesUsingGETOK ¶
func NewGetPoliciesUsingGETOK() *GetPoliciesUsingGETOK
NewGetPoliciesUsingGETOK creates a GetPoliciesUsingGETOK with default headers values
func (*GetPoliciesUsingGETOK) Error ¶
func (o *GetPoliciesUsingGETOK) Error() string
func (*GetPoliciesUsingGETOK) GetPayload ¶
func (o *GetPoliciesUsingGETOK) GetPayload() *models.PageOfPolicy
type GetPoliciesUsingGETParams ¶
type GetPoliciesUsingGETParams 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 */ DollarSkip *int32 /*DollarTop Number of records you want */ DollarTop *int32 /*ComputeStats computeStats */ ComputeStats *bool /*ExpandDefinition Retrieves the schema for this policy type */ 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 }
GetPoliciesUsingGETParams contains all the parameters to send to the API endpoint for the get policies using g e t operation typically these are written to a http.Request
func NewGetPoliciesUsingGETParams ¶
func NewGetPoliciesUsingGETParams() *GetPoliciesUsingGETParams
NewGetPoliciesUsingGETParams creates a new GetPoliciesUsingGETParams object with the default values initialized.
func NewGetPoliciesUsingGETParamsWithContext ¶
func NewGetPoliciesUsingGETParamsWithContext(ctx context.Context) *GetPoliciesUsingGETParams
NewGetPoliciesUsingGETParamsWithContext creates a new GetPoliciesUsingGETParams object with the default values initialized, and the ability to set a context for a request
func NewGetPoliciesUsingGETParamsWithHTTPClient ¶
func NewGetPoliciesUsingGETParamsWithHTTPClient(client *http.Client) *GetPoliciesUsingGETParams
NewGetPoliciesUsingGETParamsWithHTTPClient creates a new GetPoliciesUsingGETParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewGetPoliciesUsingGETParamsWithTimeout ¶
func NewGetPoliciesUsingGETParamsWithTimeout(timeout time.Duration) *GetPoliciesUsingGETParams
NewGetPoliciesUsingGETParamsWithTimeout creates a new GetPoliciesUsingGETParams object with the default values initialized, and the ability to set a timeout on a request
func (*GetPoliciesUsingGETParams) SetComputeStats ¶
func (o *GetPoliciesUsingGETParams) SetComputeStats(computeStats *bool)
SetComputeStats adds the computeStats to the get policies using get params
func (*GetPoliciesUsingGETParams) SetContext ¶
func (o *GetPoliciesUsingGETParams) SetContext(ctx context.Context)
SetContext adds the context to the get policies using get params
func (*GetPoliciesUsingGETParams) SetDollarOrderby ¶
func (o *GetPoliciesUsingGETParams) SetDollarOrderby(dollarOrderby []string)
SetDollarOrderby adds the dollarOrderby to the get policies using get params
func (*GetPoliciesUsingGETParams) SetDollarSkip ¶
func (o *GetPoliciesUsingGETParams) SetDollarSkip(dollarSkip *int32)
SetDollarSkip adds the dollarSkip to the get policies using get params
func (*GetPoliciesUsingGETParams) SetDollarTop ¶
func (o *GetPoliciesUsingGETParams) SetDollarTop(dollarTop *int32)
SetDollarTop adds the dollarTop to the get policies using get params
func (*GetPoliciesUsingGETParams) SetExpandDefinition ¶
func (o *GetPoliciesUsingGETParams) SetExpandDefinition(expandDefinition *bool)
SetExpandDefinition adds the expandDefinition to the get policies using get params
func (*GetPoliciesUsingGETParams) SetHTTPClient ¶
func (o *GetPoliciesUsingGETParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get policies using get params
func (*GetPoliciesUsingGETParams) SetSearch ¶
func (o *GetPoliciesUsingGETParams) SetSearch(search *string)
SetSearch adds the search to the get policies using get params
func (*GetPoliciesUsingGETParams) SetTimeout ¶
func (o *GetPoliciesUsingGETParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get policies using get params
func (*GetPoliciesUsingGETParams) WithComputeStats ¶
func (o *GetPoliciesUsingGETParams) WithComputeStats(computeStats *bool) *GetPoliciesUsingGETParams
WithComputeStats adds the computeStats to the get policies using get params
func (*GetPoliciesUsingGETParams) WithContext ¶
func (o *GetPoliciesUsingGETParams) WithContext(ctx context.Context) *GetPoliciesUsingGETParams
WithContext adds the context to the get policies using get params
func (*GetPoliciesUsingGETParams) WithDollarOrderby ¶
func (o *GetPoliciesUsingGETParams) WithDollarOrderby(dollarOrderby []string) *GetPoliciesUsingGETParams
WithDollarOrderby adds the dollarOrderby to the get policies using get params
func (*GetPoliciesUsingGETParams) WithDollarSkip ¶
func (o *GetPoliciesUsingGETParams) WithDollarSkip(dollarSkip *int32) *GetPoliciesUsingGETParams
WithDollarSkip adds the dollarSkip to the get policies using get params
func (*GetPoliciesUsingGETParams) WithDollarTop ¶
func (o *GetPoliciesUsingGETParams) WithDollarTop(dollarTop *int32) *GetPoliciesUsingGETParams
WithDollarTop adds the dollarTop to the get policies using get params
func (*GetPoliciesUsingGETParams) WithExpandDefinition ¶
func (o *GetPoliciesUsingGETParams) WithExpandDefinition(expandDefinition *bool) *GetPoliciesUsingGETParams
WithExpandDefinition adds the expandDefinition to the get policies using get params
func (*GetPoliciesUsingGETParams) WithHTTPClient ¶
func (o *GetPoliciesUsingGETParams) WithHTTPClient(client *http.Client) *GetPoliciesUsingGETParams
WithHTTPClient adds the HTTPClient to the get policies using get params
func (*GetPoliciesUsingGETParams) WithSearch ¶
func (o *GetPoliciesUsingGETParams) WithSearch(search *string) *GetPoliciesUsingGETParams
WithSearch adds the search to the get policies using get params
func (*GetPoliciesUsingGETParams) WithTimeout ¶
func (o *GetPoliciesUsingGETParams) WithTimeout(timeout time.Duration) *GetPoliciesUsingGETParams
WithTimeout adds the timeout to the get policies using get params
func (*GetPoliciesUsingGETParams) WriteToRequest ¶
func (o *GetPoliciesUsingGETParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetPoliciesUsingGETReader ¶
type GetPoliciesUsingGETReader struct {
// contains filtered or unexported fields
}
GetPoliciesUsingGETReader is a Reader for the GetPoliciesUsingGET structure.
func (*GetPoliciesUsingGETReader) ReadResponse ¶
func (o *GetPoliciesUsingGETReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetPolicyUsingGETOK ¶
GetPolicyUsingGETOK handles this case with default header values.
OK
func NewGetPolicyUsingGETOK ¶
func NewGetPolicyUsingGETOK() *GetPolicyUsingGETOK
NewGetPolicyUsingGETOK creates a GetPolicyUsingGETOK with default headers values
func (*GetPolicyUsingGETOK) Error ¶
func (o *GetPolicyUsingGETOK) Error() string
func (*GetPolicyUsingGETOK) GetPayload ¶
func (o *GetPolicyUsingGETOK) GetPayload() *models.Policy
type GetPolicyUsingGETParams ¶
type GetPolicyUsingGETParams struct { /*ComputeStats computeStats */ ComputeStats *bool /*ExpandCriteriaLegend Augments Criteria in returned object with legend data structures for translation between IDs and human readable DataElements */ ExpandCriteriaLegend *bool /*ID Policy ID */ ID strfmt.UUID Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetPolicyUsingGETParams contains all the parameters to send to the API endpoint for the get policy using g e t operation typically these are written to a http.Request
func NewGetPolicyUsingGETParams ¶
func NewGetPolicyUsingGETParams() *GetPolicyUsingGETParams
NewGetPolicyUsingGETParams creates a new GetPolicyUsingGETParams object with the default values initialized.
func NewGetPolicyUsingGETParamsWithContext ¶
func NewGetPolicyUsingGETParamsWithContext(ctx context.Context) *GetPolicyUsingGETParams
NewGetPolicyUsingGETParamsWithContext creates a new GetPolicyUsingGETParams object with the default values initialized, and the ability to set a context for a request
func NewGetPolicyUsingGETParamsWithHTTPClient ¶
func NewGetPolicyUsingGETParamsWithHTTPClient(client *http.Client) *GetPolicyUsingGETParams
NewGetPolicyUsingGETParamsWithHTTPClient creates a new GetPolicyUsingGETParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewGetPolicyUsingGETParamsWithTimeout ¶
func NewGetPolicyUsingGETParamsWithTimeout(timeout time.Duration) *GetPolicyUsingGETParams
NewGetPolicyUsingGETParamsWithTimeout creates a new GetPolicyUsingGETParams object with the default values initialized, and the ability to set a timeout on a request
func (*GetPolicyUsingGETParams) SetComputeStats ¶
func (o *GetPolicyUsingGETParams) SetComputeStats(computeStats *bool)
SetComputeStats adds the computeStats to the get policy using get params
func (*GetPolicyUsingGETParams) SetContext ¶
func (o *GetPolicyUsingGETParams) SetContext(ctx context.Context)
SetContext adds the context to the get policy using get params
func (*GetPolicyUsingGETParams) SetExpandCriteriaLegend ¶
func (o *GetPolicyUsingGETParams) SetExpandCriteriaLegend(expandCriteriaLegend *bool)
SetExpandCriteriaLegend adds the expandCriteriaLegend to the get policy using get params
func (*GetPolicyUsingGETParams) SetHTTPClient ¶
func (o *GetPolicyUsingGETParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get policy using get params
func (*GetPolicyUsingGETParams) SetID ¶
func (o *GetPolicyUsingGETParams) SetID(id strfmt.UUID)
SetID adds the id to the get policy using get params
func (*GetPolicyUsingGETParams) SetTimeout ¶
func (o *GetPolicyUsingGETParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get policy using get params
func (*GetPolicyUsingGETParams) WithComputeStats ¶
func (o *GetPolicyUsingGETParams) WithComputeStats(computeStats *bool) *GetPolicyUsingGETParams
WithComputeStats adds the computeStats to the get policy using get params
func (*GetPolicyUsingGETParams) WithContext ¶
func (o *GetPolicyUsingGETParams) WithContext(ctx context.Context) *GetPolicyUsingGETParams
WithContext adds the context to the get policy using get params
func (*GetPolicyUsingGETParams) WithExpandCriteriaLegend ¶
func (o *GetPolicyUsingGETParams) WithExpandCriteriaLegend(expandCriteriaLegend *bool) *GetPolicyUsingGETParams
WithExpandCriteriaLegend adds the expandCriteriaLegend to the get policy using get params
func (*GetPolicyUsingGETParams) WithHTTPClient ¶
func (o *GetPolicyUsingGETParams) WithHTTPClient(client *http.Client) *GetPolicyUsingGETParams
WithHTTPClient adds the HTTPClient to the get policy using get params
func (*GetPolicyUsingGETParams) WithID ¶
func (o *GetPolicyUsingGETParams) WithID(id strfmt.UUID) *GetPolicyUsingGETParams
WithID adds the id to the get policy using get params
func (*GetPolicyUsingGETParams) WithTimeout ¶
func (o *GetPolicyUsingGETParams) WithTimeout(timeout time.Duration) *GetPolicyUsingGETParams
WithTimeout adds the timeout to the get policy using get params
func (*GetPolicyUsingGETParams) WriteToRequest ¶
func (o *GetPolicyUsingGETParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetPolicyUsingGETReader ¶
type GetPolicyUsingGETReader struct {
// contains filtered or unexported fields
}
GetPolicyUsingGETReader is a Reader for the GetPolicyUsingGET structure.
func (*GetPolicyUsingGETReader) ReadResponse ¶
func (o *GetPolicyUsingGETReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
Source Files ¶
- create_policy_using_post_parameters.go
- create_policy_using_post_responses.go
- delete_policy_using_delete_parameters.go
- delete_policy_using_delete_responses.go
- get_policies_using_get_parameters.go
- get_policies_using_get_responses.go
- get_policy_using_get_parameters.go
- get_policy_using_get_responses.go
- policies_client.go