policies

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client for policies API

func (*Client) DeletePolicyUsingDELETE1 added in v0.2.8

func (a *Client) DeletePolicyUsingDELETE1(params *DeletePolicyUsingDELETE1Params, opts ...ClientOption) (*DeletePolicyUsingDELETE1NoContent, error)

DeletePolicyUsingDELETE1 deletes a policy

Delete a specified policy corresponding to its unique id.

func (*Client) DryRunPolicyUsingPOST added in v0.2.21

func (a *Client) DryRunPolicyUsingPOST(params *DryRunPolicyUsingPOSTParams, opts ...ClientOption) (*DryRunPolicyUsingPOSTOK, error)

DryRunPolicyUsingPOST triggers a policy dry run

Dry-run an existing policy to rehearse actual policy effect on application.

func (*Client) GetPoliciesUsingGET1 added in v0.2.8

func (a *Client) GetPoliciesUsingGET1(params *GetPoliciesUsingGET1Params, opts ...ClientOption) (*GetPoliciesUsingGET1OK, error)

GetPoliciesUsingGET1 returns a paginated list of policies

Find all the policies associated with current org.

func (*Client) GetPolicyUsingGET1 added in v0.2.8

func (a *Client) GetPolicyUsingGET1(params *GetPolicyUsingGET1Params, opts ...ClientOption) (*GetPolicyUsingGET1OK, error)

GetPolicyUsingGET1 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 {
	DeletePolicyUsingDELETE1(params *DeletePolicyUsingDELETE1Params, opts ...ClientOption) (*DeletePolicyUsingDELETE1NoContent, error)

	DryRunPolicyUsingPOST(params *DryRunPolicyUsingPOSTParams, opts ...ClientOption) (*DryRunPolicyUsingPOSTOK, error)

	GetPoliciesUsingGET1(params *GetPoliciesUsingGET1Params, opts ...ClientOption) (*GetPoliciesUsingGET1OK, error)

	GetPolicyUsingGET1(params *GetPolicyUsingGET1Params, opts ...ClientOption) (*GetPolicyUsingGET1OK, 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 DeletePolicyUsingDELETE1NoContent added in v0.2.8

type DeletePolicyUsingDELETE1NoContent struct {
}
DeletePolicyUsingDELETE1NoContent describes a response with status code 204, with default header values.

No Content

func NewDeletePolicyUsingDELETE1NoContent added in v0.2.8

func NewDeletePolicyUsingDELETE1NoContent() *DeletePolicyUsingDELETE1NoContent

NewDeletePolicyUsingDELETE1NoContent creates a DeletePolicyUsingDELETE1NoContent with default headers values

func (*DeletePolicyUsingDELETE1NoContent) Error added in v0.2.8

type DeletePolicyUsingDELETE1Params added in v0.2.8

type DeletePolicyUsingDELETE1Params 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
}

DeletePolicyUsingDELETE1Params contains all the parameters to send to the API endpoint

for the delete policy using d e l e t e 1 operation.

Typically these are written to a http.Request.

func NewDeletePolicyUsingDELETE1Params added in v0.2.8

func NewDeletePolicyUsingDELETE1Params() *DeletePolicyUsingDELETE1Params

NewDeletePolicyUsingDELETE1Params creates a new DeletePolicyUsingDELETE1Params 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 NewDeletePolicyUsingDELETE1ParamsWithContext added in v0.2.8

func NewDeletePolicyUsingDELETE1ParamsWithContext(ctx context.Context) *DeletePolicyUsingDELETE1Params

NewDeletePolicyUsingDELETE1ParamsWithContext creates a new DeletePolicyUsingDELETE1Params object with the ability to set a context for a request.

func NewDeletePolicyUsingDELETE1ParamsWithHTTPClient added in v0.2.8

func NewDeletePolicyUsingDELETE1ParamsWithHTTPClient(client *http.Client) *DeletePolicyUsingDELETE1Params

NewDeletePolicyUsingDELETE1ParamsWithHTTPClient creates a new DeletePolicyUsingDELETE1Params object with the ability to set a custom HTTPClient for a request.

func NewDeletePolicyUsingDELETE1ParamsWithTimeout added in v0.2.8

func NewDeletePolicyUsingDELETE1ParamsWithTimeout(timeout time.Duration) *DeletePolicyUsingDELETE1Params

NewDeletePolicyUsingDELETE1ParamsWithTimeout creates a new DeletePolicyUsingDELETE1Params object with the ability to set a timeout on a request.

func (*DeletePolicyUsingDELETE1Params) SetAPIVersion added in v0.2.9

func (o *DeletePolicyUsingDELETE1Params) SetAPIVersion(aPIVersion *string)

SetAPIVersion adds the apiVersion to the delete policy using d e l e t e 1 params

func (*DeletePolicyUsingDELETE1Params) SetContext added in v0.2.8

func (o *DeletePolicyUsingDELETE1Params) SetContext(ctx context.Context)

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

func (*DeletePolicyUsingDELETE1Params) SetDefaults added in v0.2.20

func (o *DeletePolicyUsingDELETE1Params) SetDefaults()

SetDefaults hydrates default values in the delete policy using d e l e t e 1 params (not the query body).

All values with no default are reset to their zero value.

func (*DeletePolicyUsingDELETE1Params) SetHTTPClient added in v0.2.8

func (o *DeletePolicyUsingDELETE1Params) SetHTTPClient(client *http.Client)

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

func (*DeletePolicyUsingDELETE1Params) SetID added in v0.2.8

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

func (*DeletePolicyUsingDELETE1Params) SetTimeout added in v0.2.8

func (o *DeletePolicyUsingDELETE1Params) SetTimeout(timeout time.Duration)

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

func (*DeletePolicyUsingDELETE1Params) WithAPIVersion added in v0.2.9

WithAPIVersion adds the aPIVersion to the delete policy using d e l e t e 1 params

func (*DeletePolicyUsingDELETE1Params) WithContext added in v0.2.8

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

func (*DeletePolicyUsingDELETE1Params) WithDefaults added in v0.2.20

WithDefaults hydrates default values in the delete policy using d e l e t e 1 params (not the query body).

All values with no default are reset to their zero value.

func (*DeletePolicyUsingDELETE1Params) WithHTTPClient added in v0.2.8

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

func (*DeletePolicyUsingDELETE1Params) WithID added in v0.2.8

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

func (*DeletePolicyUsingDELETE1Params) WithTimeout added in v0.2.8

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

func (*DeletePolicyUsingDELETE1Params) WriteToRequest added in v0.2.8

WriteToRequest writes these params to a swagger request

type DeletePolicyUsingDELETE1Reader added in v0.2.8

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

DeletePolicyUsingDELETE1Reader is a Reader for the DeletePolicyUsingDELETE1 structure.

func (*DeletePolicyUsingDELETE1Reader) ReadResponse added in v0.2.8

func (o *DeletePolicyUsingDELETE1Reader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type DryRunPolicyUsingPOSTOK added in v0.2.21

type DryRunPolicyUsingPOSTOK struct {
}
DryRunPolicyUsingPOSTOK describes a response with status code 200, with default header values.

OK

func NewDryRunPolicyUsingPOSTOK added in v0.2.21

func NewDryRunPolicyUsingPOSTOK() *DryRunPolicyUsingPOSTOK

NewDryRunPolicyUsingPOSTOK creates a DryRunPolicyUsingPOSTOK with default headers values

func (*DryRunPolicyUsingPOSTOK) Error added in v0.2.21

func (o *DryRunPolicyUsingPOSTOK) Error() string

type DryRunPolicyUsingPOSTParams added in v0.2.21

type DryRunPolicyUsingPOSTParams 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
}

DryRunPolicyUsingPOSTParams contains all the parameters to send to the API endpoint

for the dry run policy using p o s t operation.

Typically these are written to a http.Request.

func NewDryRunPolicyUsingPOSTParams added in v0.2.21

func NewDryRunPolicyUsingPOSTParams() *DryRunPolicyUsingPOSTParams

NewDryRunPolicyUsingPOSTParams creates a new DryRunPolicyUsingPOSTParams 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 NewDryRunPolicyUsingPOSTParamsWithContext added in v0.2.21

func NewDryRunPolicyUsingPOSTParamsWithContext(ctx context.Context) *DryRunPolicyUsingPOSTParams

NewDryRunPolicyUsingPOSTParamsWithContext creates a new DryRunPolicyUsingPOSTParams object with the ability to set a context for a request.

func NewDryRunPolicyUsingPOSTParamsWithHTTPClient added in v0.2.21

func NewDryRunPolicyUsingPOSTParamsWithHTTPClient(client *http.Client) *DryRunPolicyUsingPOSTParams

NewDryRunPolicyUsingPOSTParamsWithHTTPClient creates a new DryRunPolicyUsingPOSTParams object with the ability to set a custom HTTPClient for a request.

func NewDryRunPolicyUsingPOSTParamsWithTimeout added in v0.2.21

func NewDryRunPolicyUsingPOSTParamsWithTimeout(timeout time.Duration) *DryRunPolicyUsingPOSTParams

NewDryRunPolicyUsingPOSTParamsWithTimeout creates a new DryRunPolicyUsingPOSTParams object with the ability to set a timeout on a request.

func (*DryRunPolicyUsingPOSTParams) SetAPIVersion added in v0.2.21

func (o *DryRunPolicyUsingPOSTParams) SetAPIVersion(aPIVersion *string)

SetAPIVersion adds the apiVersion to the dry run policy using p o s t params

func (*DryRunPolicyUsingPOSTParams) SetContext added in v0.2.21

func (o *DryRunPolicyUsingPOSTParams) SetContext(ctx context.Context)

SetContext adds the context to the dry run policy using p o s t params

func (*DryRunPolicyUsingPOSTParams) SetDefaults added in v0.2.21

func (o *DryRunPolicyUsingPOSTParams) SetDefaults()

SetDefaults hydrates default values in the dry run policy using p o s t params (not the query body).

All values with no default are reset to their zero value.

func (*DryRunPolicyUsingPOSTParams) SetDryRun added in v0.2.21

func (o *DryRunPolicyUsingPOSTParams) SetDryRun(dryRun string)

SetDryRun adds the dryRun to the dry run policy using p o s t params

func (*DryRunPolicyUsingPOSTParams) SetHTTPClient added in v0.2.21

func (o *DryRunPolicyUsingPOSTParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the dry run policy using p o s t params

func (*DryRunPolicyUsingPOSTParams) SetPolicy added in v0.2.21

func (o *DryRunPolicyUsingPOSTParams) SetPolicy(policy *models.Policy)

SetPolicy adds the policy to the dry run policy using p o s t params

func (*DryRunPolicyUsingPOSTParams) SetTimeout added in v0.2.21

func (o *DryRunPolicyUsingPOSTParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the dry run policy using p o s t params

func (*DryRunPolicyUsingPOSTParams) WithAPIVersion added in v0.2.21

func (o *DryRunPolicyUsingPOSTParams) WithAPIVersion(aPIVersion *string) *DryRunPolicyUsingPOSTParams

WithAPIVersion adds the aPIVersion to the dry run policy using p o s t params

func (*DryRunPolicyUsingPOSTParams) WithContext added in v0.2.21

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

func (*DryRunPolicyUsingPOSTParams) WithDefaults added in v0.2.21

WithDefaults hydrates default values in the dry run policy using p o s t params (not the query body).

All values with no default are reset to their zero value.

func (*DryRunPolicyUsingPOSTParams) WithDryRun added in v0.2.21

WithDryRun adds the dryRun to the dry run policy using p o s t params

func (*DryRunPolicyUsingPOSTParams) WithHTTPClient added in v0.2.21

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

func (*DryRunPolicyUsingPOSTParams) WithPolicy added in v0.2.21

WithPolicy adds the policy to the dry run policy using p o s t params

func (*DryRunPolicyUsingPOSTParams) WithTimeout added in v0.2.21

WithTimeout adds the timeout to the dry run policy using p o s t params

func (*DryRunPolicyUsingPOSTParams) WriteToRequest added in v0.2.21

WriteToRequest writes these params to a swagger request

type DryRunPolicyUsingPOSTReader added in v0.2.21

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

DryRunPolicyUsingPOSTReader is a Reader for the DryRunPolicyUsingPOST structure.

func (*DryRunPolicyUsingPOSTReader) ReadResponse added in v0.2.21

func (o *DryRunPolicyUsingPOSTReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type GetPoliciesUsingGET1OK added in v0.2.8

type GetPoliciesUsingGET1OK struct {
	Payload *models.PageOfPolicy
}
GetPoliciesUsingGET1OK describes a response with status code 200, with default header values.

OK

func NewGetPoliciesUsingGET1OK added in v0.2.8

func NewGetPoliciesUsingGET1OK() *GetPoliciesUsingGET1OK

NewGetPoliciesUsingGET1OK creates a GetPoliciesUsingGET1OK with default headers values

func (*GetPoliciesUsingGET1OK) Error added in v0.2.8

func (o *GetPoliciesUsingGET1OK) Error() string

func (*GetPoliciesUsingGET1OK) GetPayload added in v0.2.8

func (o *GetPoliciesUsingGET1OK) GetPayload() *models.PageOfPolicy

type GetPoliciesUsingGET1Params added in v0.2.8

type GetPoliciesUsingGET1Params 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
}

GetPoliciesUsingGET1Params contains all the parameters to send to the API endpoint

for the get policies using get1 operation.

Typically these are written to a http.Request.

func NewGetPoliciesUsingGET1Params added in v0.2.8

func NewGetPoliciesUsingGET1Params() *GetPoliciesUsingGET1Params

NewGetPoliciesUsingGET1Params creates a new GetPoliciesUsingGET1Params 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 NewGetPoliciesUsingGET1ParamsWithContext added in v0.2.8

func NewGetPoliciesUsingGET1ParamsWithContext(ctx context.Context) *GetPoliciesUsingGET1Params

NewGetPoliciesUsingGET1ParamsWithContext creates a new GetPoliciesUsingGET1Params object with the ability to set a context for a request.

func NewGetPoliciesUsingGET1ParamsWithHTTPClient added in v0.2.8

func NewGetPoliciesUsingGET1ParamsWithHTTPClient(client *http.Client) *GetPoliciesUsingGET1Params

NewGetPoliciesUsingGET1ParamsWithHTTPClient creates a new GetPoliciesUsingGET1Params object with the ability to set a custom HTTPClient for a request.

func NewGetPoliciesUsingGET1ParamsWithTimeout added in v0.2.8

func NewGetPoliciesUsingGET1ParamsWithTimeout(timeout time.Duration) *GetPoliciesUsingGET1Params

NewGetPoliciesUsingGET1ParamsWithTimeout creates a new GetPoliciesUsingGET1Params object with the ability to set a timeout on a request.

func (*GetPoliciesUsingGET1Params) SetAPIVersion added in v0.2.9

func (o *GetPoliciesUsingGET1Params) SetAPIVersion(aPIVersion *string)

SetAPIVersion adds the apiVersion to the get policies using get1 params

func (*GetPoliciesUsingGET1Params) SetComputeStats added in v0.2.8

func (o *GetPoliciesUsingGET1Params) SetComputeStats(computeStats *bool)

SetComputeStats adds the computeStats to the get policies using get1 params

func (*GetPoliciesUsingGET1Params) SetContext added in v0.2.8

func (o *GetPoliciesUsingGET1Params) SetContext(ctx context.Context)

SetContext adds the context to the get policies using get1 params

func (*GetPoliciesUsingGET1Params) SetDefaults added in v0.2.20

func (o *GetPoliciesUsingGET1Params) SetDefaults()

SetDefaults hydrates default values in the get policies using get1 params (not the query body).

All values with no default are reset to their zero value.

func (*GetPoliciesUsingGET1Params) SetDollarOrderby added in v0.2.8

func (o *GetPoliciesUsingGET1Params) SetDollarOrderby(dollarOrderby []string)

SetDollarOrderby adds the dollarOrderby to the get policies using get1 params

func (*GetPoliciesUsingGET1Params) SetDollarSkip added in v0.2.8

func (o *GetPoliciesUsingGET1Params) SetDollarSkip(dollarSkip *int32)

SetDollarSkip adds the dollarSkip to the get policies using get1 params

func (*GetPoliciesUsingGET1Params) SetDollarTop added in v0.2.8

func (o *GetPoliciesUsingGET1Params) SetDollarTop(dollarTop *int32)

SetDollarTop adds the dollarTop to the get policies using get1 params

func (*GetPoliciesUsingGET1Params) SetExpandDefinition added in v0.2.8

func (o *GetPoliciesUsingGET1Params) SetExpandDefinition(expandDefinition *bool)

SetExpandDefinition adds the expandDefinition to the get policies using get1 params

func (*GetPoliciesUsingGET1Params) SetHTTPClient added in v0.2.8

func (o *GetPoliciesUsingGET1Params) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the get policies using get1 params

func (*GetPoliciesUsingGET1Params) SetSearch added in v0.2.8

func (o *GetPoliciesUsingGET1Params) SetSearch(search *string)

SetSearch adds the search to the get policies using get1 params

func (*GetPoliciesUsingGET1Params) SetTimeout added in v0.2.8

func (o *GetPoliciesUsingGET1Params) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the get policies using get1 params

func (*GetPoliciesUsingGET1Params) WithAPIVersion added in v0.2.9

func (o *GetPoliciesUsingGET1Params) WithAPIVersion(aPIVersion *string) *GetPoliciesUsingGET1Params

WithAPIVersion adds the aPIVersion to the get policies using get1 params

func (*GetPoliciesUsingGET1Params) WithComputeStats added in v0.2.8

func (o *GetPoliciesUsingGET1Params) WithComputeStats(computeStats *bool) *GetPoliciesUsingGET1Params

WithComputeStats adds the computeStats to the get policies using get1 params

func (*GetPoliciesUsingGET1Params) WithContext added in v0.2.8

WithContext adds the context to the get policies using get1 params

func (*GetPoliciesUsingGET1Params) WithDefaults added in v0.2.20

WithDefaults hydrates default values in the get policies using get1 params (not the query body).

All values with no default are reset to their zero value.

func (*GetPoliciesUsingGET1Params) WithDollarOrderby added in v0.2.8

func (o *GetPoliciesUsingGET1Params) WithDollarOrderby(dollarOrderby []string) *GetPoliciesUsingGET1Params

WithDollarOrderby adds the dollarOrderby to the get policies using get1 params

func (*GetPoliciesUsingGET1Params) WithDollarSkip added in v0.2.8

func (o *GetPoliciesUsingGET1Params) WithDollarSkip(dollarSkip *int32) *GetPoliciesUsingGET1Params

WithDollarSkip adds the dollarSkip to the get policies using get1 params

func (*GetPoliciesUsingGET1Params) WithDollarTop added in v0.2.8

func (o *GetPoliciesUsingGET1Params) WithDollarTop(dollarTop *int32) *GetPoliciesUsingGET1Params

WithDollarTop adds the dollarTop to the get policies using get1 params

func (*GetPoliciesUsingGET1Params) WithExpandDefinition added in v0.2.8

func (o *GetPoliciesUsingGET1Params) WithExpandDefinition(expandDefinition *bool) *GetPoliciesUsingGET1Params

WithExpandDefinition adds the expandDefinition to the get policies using get1 params

func (*GetPoliciesUsingGET1Params) WithHTTPClient added in v0.2.8

WithHTTPClient adds the HTTPClient to the get policies using get1 params

func (*GetPoliciesUsingGET1Params) WithSearch added in v0.2.8

WithSearch adds the search to the get policies using get1 params

func (*GetPoliciesUsingGET1Params) WithTimeout added in v0.2.8

WithTimeout adds the timeout to the get policies using get1 params

func (*GetPoliciesUsingGET1Params) WriteToRequest added in v0.2.8

WriteToRequest writes these params to a swagger request

type GetPoliciesUsingGET1Reader added in v0.2.8

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

GetPoliciesUsingGET1Reader is a Reader for the GetPoliciesUsingGET1 structure.

func (*GetPoliciesUsingGET1Reader) ReadResponse added in v0.2.8

func (o *GetPoliciesUsingGET1Reader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type GetPolicyUsingGET1OK added in v0.2.8

type GetPolicyUsingGET1OK struct {
	Payload *models.Policy
}
GetPolicyUsingGET1OK describes a response with status code 200, with default header values.

OK

func NewGetPolicyUsingGET1OK added in v0.2.8

func NewGetPolicyUsingGET1OK() *GetPolicyUsingGET1OK

NewGetPolicyUsingGET1OK creates a GetPolicyUsingGET1OK with default headers values

func (*GetPolicyUsingGET1OK) Error added in v0.2.8

func (o *GetPolicyUsingGET1OK) Error() string

func (*GetPolicyUsingGET1OK) GetPayload added in v0.2.8

func (o *GetPolicyUsingGET1OK) GetPayload() *models.Policy

type GetPolicyUsingGET1Params added in v0.2.8

type GetPolicyUsingGET1Params 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
}

GetPolicyUsingGET1Params contains all the parameters to send to the API endpoint

for the get policy using get1 operation.

Typically these are written to a http.Request.

func NewGetPolicyUsingGET1Params added in v0.2.8

func NewGetPolicyUsingGET1Params() *GetPolicyUsingGET1Params

NewGetPolicyUsingGET1Params creates a new GetPolicyUsingGET1Params 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 NewGetPolicyUsingGET1ParamsWithContext added in v0.2.8

func NewGetPolicyUsingGET1ParamsWithContext(ctx context.Context) *GetPolicyUsingGET1Params

NewGetPolicyUsingGET1ParamsWithContext creates a new GetPolicyUsingGET1Params object with the ability to set a context for a request.

func NewGetPolicyUsingGET1ParamsWithHTTPClient added in v0.2.8

func NewGetPolicyUsingGET1ParamsWithHTTPClient(client *http.Client) *GetPolicyUsingGET1Params

NewGetPolicyUsingGET1ParamsWithHTTPClient creates a new GetPolicyUsingGET1Params object with the ability to set a custom HTTPClient for a request.

func NewGetPolicyUsingGET1ParamsWithTimeout added in v0.2.8

func NewGetPolicyUsingGET1ParamsWithTimeout(timeout time.Duration) *GetPolicyUsingGET1Params

NewGetPolicyUsingGET1ParamsWithTimeout creates a new GetPolicyUsingGET1Params object with the ability to set a timeout on a request.

func (*GetPolicyUsingGET1Params) SetAPIVersion added in v0.2.9

func (o *GetPolicyUsingGET1Params) SetAPIVersion(aPIVersion *string)

SetAPIVersion adds the apiVersion to the get policy using get1 params

func (*GetPolicyUsingGET1Params) SetComputeStats added in v0.2.8

func (o *GetPolicyUsingGET1Params) SetComputeStats(computeStats *bool)

SetComputeStats adds the computeStats to the get policy using get1 params

func (*GetPolicyUsingGET1Params) SetContext added in v0.2.8

func (o *GetPolicyUsingGET1Params) SetContext(ctx context.Context)

SetContext adds the context to the get policy using get1 params

func (*GetPolicyUsingGET1Params) SetDefaults added in v0.2.20

func (o *GetPolicyUsingGET1Params) SetDefaults()

SetDefaults hydrates default values in the get policy using get1 params (not the query body).

All values with no default are reset to their zero value.

func (*GetPolicyUsingGET1Params) SetHTTPClient added in v0.2.8

func (o *GetPolicyUsingGET1Params) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the get policy using get1 params

func (*GetPolicyUsingGET1Params) SetID added in v0.2.8

func (o *GetPolicyUsingGET1Params) SetID(id strfmt.UUID)

SetID adds the id to the get policy using get1 params

func (*GetPolicyUsingGET1Params) SetTimeout added in v0.2.8

func (o *GetPolicyUsingGET1Params) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the get policy using get1 params

func (*GetPolicyUsingGET1Params) WithAPIVersion added in v0.2.9

func (o *GetPolicyUsingGET1Params) WithAPIVersion(aPIVersion *string) *GetPolicyUsingGET1Params

WithAPIVersion adds the aPIVersion to the get policy using get1 params

func (*GetPolicyUsingGET1Params) WithComputeStats added in v0.2.8

func (o *GetPolicyUsingGET1Params) WithComputeStats(computeStats *bool) *GetPolicyUsingGET1Params

WithComputeStats adds the computeStats to the get policy using get1 params

func (*GetPolicyUsingGET1Params) WithContext added in v0.2.8

WithContext adds the context to the get policy using get1 params

func (*GetPolicyUsingGET1Params) WithDefaults added in v0.2.20

WithDefaults hydrates default values in the get policy using get1 params (not the query body).

All values with no default are reset to their zero value.

func (*GetPolicyUsingGET1Params) WithHTTPClient added in v0.2.8

func (o *GetPolicyUsingGET1Params) WithHTTPClient(client *http.Client) *GetPolicyUsingGET1Params

WithHTTPClient adds the HTTPClient to the get policy using get1 params

func (*GetPolicyUsingGET1Params) WithID added in v0.2.8

WithID adds the id to the get policy using get1 params

func (*GetPolicyUsingGET1Params) WithTimeout added in v0.2.8

WithTimeout adds the timeout to the get policy using get1 params

func (*GetPolicyUsingGET1Params) WriteToRequest added in v0.2.8

WriteToRequest writes these params to a swagger request

type GetPolicyUsingGET1Reader added in v0.2.8

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

GetPolicyUsingGET1Reader is a Reader for the GetPolicyUsingGET1 structure.

func (*GetPolicyUsingGET1Reader) ReadResponse added in v0.2.8

func (o *GetPolicyUsingGET1Reader) 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