policies

package
v0.2.5 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2019 License: Apache-2.0 Imports: 11 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client for 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

type CreatePolicyUsingPOSTOK struct {
	Payload *models.Policy
}

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

WithContext adds the context to the create policy using p o s t params

func (*CreatePolicyUsingPOSTParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the create policy using p o s t params

func (*CreatePolicyUsingPOSTParams) WithPolicy

WithPolicy adds the policy to the create policy using p o s t params

func (*CreatePolicyUsingPOSTParams) WithTimeout

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

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

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

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

WithContext adds the context to the delete policy using d e l e t e params

func (*DeletePolicyUsingDELETEParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the delete policy using d e l e t e params

func (*DeletePolicyUsingDELETEParams) WithID

WithID adds the id to the delete policy using d e l e t e params

func (*DeletePolicyUsingDELETEParams) WithTimeout

WithTimeout adds the timeout to the delete policy using d e l e t e params

func (*DeletePolicyUsingDELETEParams) WriteToRequest

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

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

WithSearch adds the search to the get policies using get params

func (*GetPoliciesUsingGETParams) WithTimeout

WithTimeout adds the timeout to the get policies using get params

func (*GetPoliciesUsingGETParams) WriteToRequest

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

type GetPolicyUsingGETOK struct {
	Payload *models.Policy
}

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

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

WithID adds the id to the get policy using get params

func (*GetPolicyUsingGETParams) WithTimeout

WithTimeout adds the timeout to the get policy using get params

func (*GetPolicyUsingGETParams) WriteToRequest

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.

Jump to

Keyboard shortcuts

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