policy_decisions

package
v0.2.21 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 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 policy decisions API

func (*Client) GetDecisionByIDUsingGET

func (a *Client) GetDecisionByIDUsingGET(params *GetDecisionByIDUsingGETParams, opts ...ClientOption) (*GetDecisionByIDUsingGETOK, error)

GetDecisionByIDUsingGET returns a policy decision by id

Find a specific policy decision based on the input policy decision id.

func (*Client) GetDecisionsUsingGET

func (a *Client) GetDecisionsUsingGET(params *GetDecisionsUsingGETParams, opts ...ClientOption) (*GetDecisionsUsingGETOK, error)

GetDecisionsUsingGET fetches a list of policy decisions

Returns a paginated list of policy decisions. If a dryRunId is provided, the return value has a field indicating whether the dry run is complete.

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 {
	GetDecisionByIDUsingGET(params *GetDecisionByIDUsingGETParams, opts ...ClientOption) (*GetDecisionByIDUsingGETOK, error)

	GetDecisionsUsingGET(params *GetDecisionsUsingGETParams, opts ...ClientOption) (*GetDecisionsUsingGETOK, 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 policy decisions API client.

type GetDecisionByIDUsingGETOK

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

OK

func NewGetDecisionByIDUsingGETOK

func NewGetDecisionByIDUsingGETOK() *GetDecisionByIDUsingGETOK

NewGetDecisionByIDUsingGETOK creates a GetDecisionByIDUsingGETOK with default headers values

func (*GetDecisionByIDUsingGETOK) Error

func (o *GetDecisionByIDUsingGETOK) Error() string

func (*GetDecisionByIDUsingGETOK) GetPayload

type GetDecisionByIDUsingGETParams

type GetDecisionByIDUsingGETParams 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 decision Id

	   Format: uuid
	*/
	ID strfmt.UUID

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetDecisionByIDUsingGETParams contains all the parameters to send to the API endpoint

for the get decision by Id using g e t operation.

Typically these are written to a http.Request.

func NewGetDecisionByIDUsingGETParams

func NewGetDecisionByIDUsingGETParams() *GetDecisionByIDUsingGETParams

NewGetDecisionByIDUsingGETParams creates a new GetDecisionByIDUsingGETParams 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 NewGetDecisionByIDUsingGETParamsWithContext

func NewGetDecisionByIDUsingGETParamsWithContext(ctx context.Context) *GetDecisionByIDUsingGETParams

NewGetDecisionByIDUsingGETParamsWithContext creates a new GetDecisionByIDUsingGETParams object with the ability to set a context for a request.

func NewGetDecisionByIDUsingGETParamsWithHTTPClient

func NewGetDecisionByIDUsingGETParamsWithHTTPClient(client *http.Client) *GetDecisionByIDUsingGETParams

NewGetDecisionByIDUsingGETParamsWithHTTPClient creates a new GetDecisionByIDUsingGETParams object with the ability to set a custom HTTPClient for a request.

func NewGetDecisionByIDUsingGETParamsWithTimeout

func NewGetDecisionByIDUsingGETParamsWithTimeout(timeout time.Duration) *GetDecisionByIDUsingGETParams

NewGetDecisionByIDUsingGETParamsWithTimeout creates a new GetDecisionByIDUsingGETParams object with the ability to set a timeout on a request.

func (*GetDecisionByIDUsingGETParams) SetAPIVersion added in v0.2.9

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

SetAPIVersion adds the apiVersion to the get decision by Id using get params

func (*GetDecisionByIDUsingGETParams) SetContext

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

SetContext adds the context to the get decision by Id using get params

func (*GetDecisionByIDUsingGETParams) SetDefaults added in v0.2.20

func (o *GetDecisionByIDUsingGETParams) SetDefaults()

SetDefaults hydrates default values in the get decision by Id using get params (not the query body).

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

func (*GetDecisionByIDUsingGETParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get decision by Id using get params

func (*GetDecisionByIDUsingGETParams) SetID

SetID adds the id to the get decision by Id using get params

func (*GetDecisionByIDUsingGETParams) SetTimeout

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

SetTimeout adds the timeout to the get decision by Id using get params

func (*GetDecisionByIDUsingGETParams) WithAPIVersion added in v0.2.9

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

WithAPIVersion adds the aPIVersion to the get decision by Id using get params

func (*GetDecisionByIDUsingGETParams) WithContext

WithContext adds the context to the get decision by Id using get params

func (*GetDecisionByIDUsingGETParams) WithDefaults added in v0.2.20

WithDefaults hydrates default values in the get decision by Id using get params (not the query body).

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

func (*GetDecisionByIDUsingGETParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get decision by Id using get params

func (*GetDecisionByIDUsingGETParams) WithID

WithID adds the id to the get decision by Id using get params

func (*GetDecisionByIDUsingGETParams) WithTimeout

WithTimeout adds the timeout to the get decision by Id using get params

func (*GetDecisionByIDUsingGETParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetDecisionByIDUsingGETReader

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

GetDecisionByIDUsingGETReader is a Reader for the GetDecisionByIDUsingGET structure.

func (*GetDecisionByIDUsingGETReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetDecisionsUsingGETOK

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

OK

func NewGetDecisionsUsingGETOK

func NewGetDecisionsUsingGETOK() *GetDecisionsUsingGETOK

NewGetDecisionsUsingGETOK creates a GetDecisionsUsingGETOK with default headers values

func (*GetDecisionsUsingGETOK) Error

func (o *GetDecisionsUsingGETOK) Error() string

func (*GetDecisionsUsingGETOK) GetPayload

type GetDecisionsUsingGETParams

type GetDecisionsUsingGETParams 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

	/* DryRunID.

	   dryRunId

	   Format: uuid
	*/
	DryRunID *strfmt.UUID

	/* PolicyTypeID.

	   Matches will only include policies of this type
	*/
	PolicyTypeID *string

	/* ProjectID.

	   Matches will only include decisions with this project ID
	*/
	ProjectID *string

	/* Search.

	   Matches will start with this string in their policy name or target name or have this string somewhere in their description.
	*/
	Search *string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetDecisionsUsingGETParams contains all the parameters to send to the API endpoint

for the get decisions using g e t operation.

Typically these are written to a http.Request.

func NewGetDecisionsUsingGETParams

func NewGetDecisionsUsingGETParams() *GetDecisionsUsingGETParams

NewGetDecisionsUsingGETParams creates a new GetDecisionsUsingGETParams 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 NewGetDecisionsUsingGETParamsWithContext

func NewGetDecisionsUsingGETParamsWithContext(ctx context.Context) *GetDecisionsUsingGETParams

NewGetDecisionsUsingGETParamsWithContext creates a new GetDecisionsUsingGETParams object with the ability to set a context for a request.

func NewGetDecisionsUsingGETParamsWithHTTPClient

func NewGetDecisionsUsingGETParamsWithHTTPClient(client *http.Client) *GetDecisionsUsingGETParams

NewGetDecisionsUsingGETParamsWithHTTPClient creates a new GetDecisionsUsingGETParams object with the ability to set a custom HTTPClient for a request.

func NewGetDecisionsUsingGETParamsWithTimeout

func NewGetDecisionsUsingGETParamsWithTimeout(timeout time.Duration) *GetDecisionsUsingGETParams

NewGetDecisionsUsingGETParamsWithTimeout creates a new GetDecisionsUsingGETParams object with the ability to set a timeout on a request.

func (*GetDecisionsUsingGETParams) SetAPIVersion added in v0.2.9

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

SetAPIVersion adds the apiVersion to the get decisions using get params

func (*GetDecisionsUsingGETParams) SetContext

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

SetContext adds the context to the get decisions using get params

func (*GetDecisionsUsingGETParams) SetDefaults added in v0.2.20

func (o *GetDecisionsUsingGETParams) SetDefaults()

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

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

func (*GetDecisionsUsingGETParams) SetDollarOrderby

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

SetDollarOrderby adds the dollarOrderby to the get decisions using get params

func (*GetDecisionsUsingGETParams) SetDollarSkip

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

SetDollarSkip adds the dollarSkip to the get decisions using get params

func (*GetDecisionsUsingGETParams) SetDollarTop

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

SetDollarTop adds the dollarTop to the get decisions using get params

func (*GetDecisionsUsingGETParams) SetDryRunID

func (o *GetDecisionsUsingGETParams) SetDryRunID(dryRunID *strfmt.UUID)

SetDryRunID adds the dryRunId to the get decisions using get params

func (*GetDecisionsUsingGETParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get decisions using get params

func (*GetDecisionsUsingGETParams) SetPolicyTypeID

func (o *GetDecisionsUsingGETParams) SetPolicyTypeID(policyTypeID *string)

SetPolicyTypeID adds the policyTypeId to the get decisions using get params

func (*GetDecisionsUsingGETParams) SetProjectID

func (o *GetDecisionsUsingGETParams) SetProjectID(projectID *string)

SetProjectID adds the projectId to the get decisions using get params

func (*GetDecisionsUsingGETParams) SetSearch

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

SetSearch adds the search to the get decisions using get params

func (*GetDecisionsUsingGETParams) SetTimeout

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

SetTimeout adds the timeout to the get decisions using get params

func (*GetDecisionsUsingGETParams) WithAPIVersion added in v0.2.9

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

WithAPIVersion adds the aPIVersion to the get decisions using get params

func (*GetDecisionsUsingGETParams) WithContext

WithContext adds the context to the get decisions using get params

func (*GetDecisionsUsingGETParams) WithDefaults added in v0.2.20

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

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

func (*GetDecisionsUsingGETParams) WithDollarOrderby

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

WithDollarOrderby adds the dollarOrderby to the get decisions using get params

func (*GetDecisionsUsingGETParams) WithDollarSkip

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

WithDollarSkip adds the dollarSkip to the get decisions using get params

func (*GetDecisionsUsingGETParams) WithDollarTop

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

WithDollarTop adds the dollarTop to the get decisions using get params

func (*GetDecisionsUsingGETParams) WithDryRunID

WithDryRunID adds the dryRunID to the get decisions using get params

func (*GetDecisionsUsingGETParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get decisions using get params

func (*GetDecisionsUsingGETParams) WithPolicyTypeID

func (o *GetDecisionsUsingGETParams) WithPolicyTypeID(policyTypeID *string) *GetDecisionsUsingGETParams

WithPolicyTypeID adds the policyTypeID to the get decisions using get params

func (*GetDecisionsUsingGETParams) WithProjectID

func (o *GetDecisionsUsingGETParams) WithProjectID(projectID *string) *GetDecisionsUsingGETParams

WithProjectID adds the projectID to the get decisions using get params

func (*GetDecisionsUsingGETParams) WithSearch

WithSearch adds the search to the get decisions using get params

func (*GetDecisionsUsingGETParams) WithTimeout

WithTimeout adds the timeout to the get decisions using get params

func (*GetDecisionsUsingGETParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetDecisionsUsingGETReader

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

GetDecisionsUsingGETReader is a Reader for the GetDecisionsUsingGET structure.

func (*GetDecisionsUsingGETReader) ReadResponse

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