Documentation ¶
Index ¶
- type Client
- func (a *Client) GetDecisionByIDUsingGET(params *GetDecisionByIDUsingGETParams, opts ...ClientOption) (*GetDecisionByIDUsingGETOK, error)
- func (a *Client) GetDecisionsUsingGET(params *GetDecisionsUsingGETParams, opts ...ClientOption) (*GetDecisionsUsingGETOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientOption
- type ClientService
- type GetDecisionByIDUsingGETOK
- type GetDecisionByIDUsingGETParams
- func NewGetDecisionByIDUsingGETParams() *GetDecisionByIDUsingGETParams
- func NewGetDecisionByIDUsingGETParamsWithContext(ctx context.Context) *GetDecisionByIDUsingGETParams
- func NewGetDecisionByIDUsingGETParamsWithHTTPClient(client *http.Client) *GetDecisionByIDUsingGETParams
- func NewGetDecisionByIDUsingGETParamsWithTimeout(timeout time.Duration) *GetDecisionByIDUsingGETParams
- func (o *GetDecisionByIDUsingGETParams) SetAPIVersion(aPIVersion *string)
- func (o *GetDecisionByIDUsingGETParams) SetContext(ctx context.Context)
- func (o *GetDecisionByIDUsingGETParams) SetDefaults()
- func (o *GetDecisionByIDUsingGETParams) SetHTTPClient(client *http.Client)
- func (o *GetDecisionByIDUsingGETParams) SetID(id strfmt.UUID)
- func (o *GetDecisionByIDUsingGETParams) SetTimeout(timeout time.Duration)
- func (o *GetDecisionByIDUsingGETParams) WithAPIVersion(aPIVersion *string) *GetDecisionByIDUsingGETParams
- func (o *GetDecisionByIDUsingGETParams) WithContext(ctx context.Context) *GetDecisionByIDUsingGETParams
- func (o *GetDecisionByIDUsingGETParams) WithDefaults() *GetDecisionByIDUsingGETParams
- func (o *GetDecisionByIDUsingGETParams) WithHTTPClient(client *http.Client) *GetDecisionByIDUsingGETParams
- func (o *GetDecisionByIDUsingGETParams) WithID(id strfmt.UUID) *GetDecisionByIDUsingGETParams
- func (o *GetDecisionByIDUsingGETParams) WithTimeout(timeout time.Duration) *GetDecisionByIDUsingGETParams
- func (o *GetDecisionByIDUsingGETParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetDecisionByIDUsingGETReader
- type GetDecisionsUsingGETOK
- type GetDecisionsUsingGETParams
- func NewGetDecisionsUsingGETParams() *GetDecisionsUsingGETParams
- func NewGetDecisionsUsingGETParamsWithContext(ctx context.Context) *GetDecisionsUsingGETParams
- func NewGetDecisionsUsingGETParamsWithHTTPClient(client *http.Client) *GetDecisionsUsingGETParams
- func NewGetDecisionsUsingGETParamsWithTimeout(timeout time.Duration) *GetDecisionsUsingGETParams
- func (o *GetDecisionsUsingGETParams) SetAPIVersion(aPIVersion *string)
- func (o *GetDecisionsUsingGETParams) SetContext(ctx context.Context)
- func (o *GetDecisionsUsingGETParams) SetDefaults()
- func (o *GetDecisionsUsingGETParams) SetDollarOrderby(dollarOrderby []string)
- func (o *GetDecisionsUsingGETParams) SetDollarSkip(dollarSkip *int32)
- func (o *GetDecisionsUsingGETParams) SetDollarTop(dollarTop *int32)
- func (o *GetDecisionsUsingGETParams) SetDryRunID(dryRunID *strfmt.UUID)
- func (o *GetDecisionsUsingGETParams) SetHTTPClient(client *http.Client)
- func (o *GetDecisionsUsingGETParams) SetPolicyTypeID(policyTypeID *string)
- func (o *GetDecisionsUsingGETParams) SetProjectID(projectID *string)
- func (o *GetDecisionsUsingGETParams) SetSearch(search *string)
- func (o *GetDecisionsUsingGETParams) SetTimeout(timeout time.Duration)
- func (o *GetDecisionsUsingGETParams) WithAPIVersion(aPIVersion *string) *GetDecisionsUsingGETParams
- func (o *GetDecisionsUsingGETParams) WithContext(ctx context.Context) *GetDecisionsUsingGETParams
- func (o *GetDecisionsUsingGETParams) WithDefaults() *GetDecisionsUsingGETParams
- func (o *GetDecisionsUsingGETParams) WithDollarOrderby(dollarOrderby []string) *GetDecisionsUsingGETParams
- func (o *GetDecisionsUsingGETParams) WithDollarSkip(dollarSkip *int32) *GetDecisionsUsingGETParams
- func (o *GetDecisionsUsingGETParams) WithDollarTop(dollarTop *int32) *GetDecisionsUsingGETParams
- func (o *GetDecisionsUsingGETParams) WithDryRunID(dryRunID *strfmt.UUID) *GetDecisionsUsingGETParams
- func (o *GetDecisionsUsingGETParams) WithHTTPClient(client *http.Client) *GetDecisionsUsingGETParams
- func (o *GetDecisionsUsingGETParams) WithPolicyTypeID(policyTypeID *string) *GetDecisionsUsingGETParams
- func (o *GetDecisionsUsingGETParams) WithProjectID(projectID *string) *GetDecisionsUsingGETParams
- func (o *GetDecisionsUsingGETParams) WithSearch(search *string) *GetDecisionsUsingGETParams
- func (o *GetDecisionsUsingGETParams) WithTimeout(timeout time.Duration) *GetDecisionsUsingGETParams
- func (o *GetDecisionsUsingGETParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetDecisionsUsingGETReader
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 ¶
func (o *GetDecisionByIDUsingGETOK) GetPayload() *models.PolicyDecisionOfObjectNode
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 ¶
func (o *GetDecisionByIDUsingGETParams) SetID(id strfmt.UUID)
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 ¶
func (o *GetDecisionByIDUsingGETParams) WithContext(ctx context.Context) *GetDecisionByIDUsingGETParams
WithContext adds the context to the get decision by Id using get params
func (*GetDecisionByIDUsingGETParams) WithDefaults ¶ added in v0.2.20
func (o *GetDecisionByIDUsingGETParams) WithDefaults() *GetDecisionByIDUsingGETParams
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 ¶
func (o *GetDecisionByIDUsingGETParams) WithHTTPClient(client *http.Client) *GetDecisionByIDUsingGETParams
WithHTTPClient adds the HTTPClient to the get decision by Id using get params
func (*GetDecisionByIDUsingGETParams) WithID ¶
func (o *GetDecisionByIDUsingGETParams) WithID(id strfmt.UUID) *GetDecisionByIDUsingGETParams
WithID adds the id to the get decision by Id using get params
func (*GetDecisionByIDUsingGETParams) WithTimeout ¶
func (o *GetDecisionByIDUsingGETParams) WithTimeout(timeout time.Duration) *GetDecisionByIDUsingGETParams
WithTimeout adds the timeout to the get decision by Id using get params
func (*GetDecisionByIDUsingGETParams) WriteToRequest ¶
func (o *GetDecisionByIDUsingGETParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 ¶
func (o *GetDecisionsUsingGETOK) GetPayload() *models.PageOfPolicyDecisionOfObjectNode
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 ¶
func (o *GetDecisionsUsingGETParams) WithContext(ctx context.Context) *GetDecisionsUsingGETParams
WithContext adds the context to the get decisions using get params
func (*GetDecisionsUsingGETParams) WithDefaults ¶ added in v0.2.20
func (o *GetDecisionsUsingGETParams) WithDefaults() *GetDecisionsUsingGETParams
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 ¶
func (o *GetDecisionsUsingGETParams) WithDryRunID(dryRunID *strfmt.UUID) *GetDecisionsUsingGETParams
WithDryRunID adds the dryRunID to the get decisions using get params
func (*GetDecisionsUsingGETParams) WithHTTPClient ¶
func (o *GetDecisionsUsingGETParams) WithHTTPClient(client *http.Client) *GetDecisionsUsingGETParams
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 ¶
func (o *GetDecisionsUsingGETParams) WithSearch(search *string) *GetDecisionsUsingGETParams
WithSearch adds the search to the get decisions using get params
func (*GetDecisionsUsingGETParams) WithTimeout ¶
func (o *GetDecisionsUsingGETParams) WithTimeout(timeout time.Duration) *GetDecisionsUsingGETParams
WithTimeout adds the timeout to the get decisions using get params
func (*GetDecisionsUsingGETParams) WriteToRequest ¶
func (o *GetDecisionsUsingGETParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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.