policy_decisions

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2019 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 New

func New(transport runtime.ClientTransport, formats strfmt.Registry) *Client

New creates a new policy decisions API client.

func (*Client) GetDecisionByIDUsingGET

func (a *Client) GetDecisionByIDUsingGET(params *GetDecisionByIDUsingGETParams) (*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) (*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 GetDecisionByIDUsingGETOK

type GetDecisionByIDUsingGETOK struct {
	Payload *models.PolicyDecisionOfObjectNode
}

GetDecisionByIDUsingGETOK handles this case 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 {

	/*ID
	  Policy decision Id

	*/
	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 values initialized.

func NewGetDecisionByIDUsingGETParamsWithContext

func NewGetDecisionByIDUsingGETParamsWithContext(ctx context.Context) *GetDecisionByIDUsingGETParams

NewGetDecisionByIDUsingGETParamsWithContext creates a new GetDecisionByIDUsingGETParams object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and the ability to set a timeout on a request

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) 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) WithContext

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

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 handles this case 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

	*/
	DollarSkip *int32
	/*DollarTop
	  Number of records you want

	*/
	DollarTop *int32
	/*DryRunID
	  dryRunId

	*/
	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 values initialized.

func NewGetDecisionsUsingGETParamsWithContext

func NewGetDecisionsUsingGETParamsWithContext(ctx context.Context) *GetDecisionsUsingGETParams

NewGetDecisionsUsingGETParamsWithContext creates a new GetDecisionsUsingGETParams object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and the ability to set a timeout on a request

func (*GetDecisionsUsingGETParams) SetContext

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

SetContext adds the context to the get decisions using get params

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) WithContext

WithContext adds the context to the get decisions using get params

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