Documentation
¶
Index ¶
- type Client
- func (a *Client) CreatePolicy(params *CreatePolicyParams, authInfo runtime.ClientAuthInfoWriter, ...) (*CreatePolicyOK, error)
- func (a *Client) CreateRule(params *CreateRuleParams, authInfo runtime.ClientAuthInfoWriter, ...) (*CreateRuleOK, error)
- func (a *Client) DeletePolicy(params *DeletePolicyParams, authInfo runtime.ClientAuthInfoWriter, ...) (*DeletePolicyOK, error)
- func (a *Client) DeleteRule(params *DeleteRuleParams, authInfo runtime.ClientAuthInfoWriter, ...) (*DeleteRuleOK, error)
- func (a *Client) GetPoliciesCount(params *GetPoliciesCountParams, authInfo runtime.ClientAuthInfoWriter, ...) (*GetPoliciesCountOK, error)
- func (a *Client) GetPolicy(params *GetPolicyParams, authInfo runtime.ClientAuthInfoWriter, ...) (*GetPolicyOK, error)
- func (a *Client) GetRule(params *GetRuleParams, authInfo runtime.ClientAuthInfoWriter, ...) (*GetRuleOK, error)
- func (a *Client) ListPolicies(params *ListPoliciesParams, authInfo runtime.ClientAuthInfoWriter, ...) (*ListPoliciesOK, error)
- func (a *Client) ListRules(params *ListRulesParams, authInfo runtime.ClientAuthInfoWriter, ...) (*ListRulesOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- func (a *Client) UpdatePolicy(params *UpdatePolicyParams, authInfo runtime.ClientAuthInfoWriter, ...) (*UpdatePolicyOK, error)
- func (a *Client) UpdateRule(params *UpdateRuleParams, authInfo runtime.ClientAuthInfoWriter, ...) (*UpdateRuleOK, error)
- type ClientOption
- type ClientService
- type CreatePolicyDefault
- func (o *CreatePolicyDefault) Code() int
- func (o *CreatePolicyDefault) Error() string
- func (o *CreatePolicyDefault) GetPayload() *models.RPCStatus
- func (o *CreatePolicyDefault) IsClientError() bool
- func (o *CreatePolicyDefault) IsCode(code int) bool
- func (o *CreatePolicyDefault) IsRedirect() bool
- func (o *CreatePolicyDefault) IsServerError() bool
- func (o *CreatePolicyDefault) IsSuccess() bool
- func (o *CreatePolicyDefault) String() string
- type CreatePolicyOK
- func (o *CreatePolicyOK) Code() int
- func (o *CreatePolicyOK) Error() string
- func (o *CreatePolicyOK) GetPayload() *models.V1alpha1Policy
- func (o *CreatePolicyOK) IsClientError() bool
- func (o *CreatePolicyOK) IsCode(code int) bool
- func (o *CreatePolicyOK) IsRedirect() bool
- func (o *CreatePolicyOK) IsServerError() bool
- func (o *CreatePolicyOK) IsSuccess() bool
- func (o *CreatePolicyOK) String() string
- type CreatePolicyParams
- func (o *CreatePolicyParams) SetBody(body *models.V1alpha1CreatePolicyRequest)
- func (o *CreatePolicyParams) SetContext(ctx context.Context)
- func (o *CreatePolicyParams) SetDefaults()
- func (o *CreatePolicyParams) SetHTTPClient(client *http.Client)
- func (o *CreatePolicyParams) SetTimeout(timeout time.Duration)
- func (o *CreatePolicyParams) WithBody(body *models.V1alpha1CreatePolicyRequest) *CreatePolicyParams
- func (o *CreatePolicyParams) WithContext(ctx context.Context) *CreatePolicyParams
- func (o *CreatePolicyParams) WithDefaults() *CreatePolicyParams
- func (o *CreatePolicyParams) WithHTTPClient(client *http.Client) *CreatePolicyParams
- func (o *CreatePolicyParams) WithTimeout(timeout time.Duration) *CreatePolicyParams
- func (o *CreatePolicyParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CreatePolicyReader
- type CreateRuleDefault
- func (o *CreateRuleDefault) Code() int
- func (o *CreateRuleDefault) Error() string
- func (o *CreateRuleDefault) GetPayload() *models.RPCStatus
- func (o *CreateRuleDefault) IsClientError() bool
- func (o *CreateRuleDefault) IsCode(code int) bool
- func (o *CreateRuleDefault) IsRedirect() bool
- func (o *CreateRuleDefault) IsServerError() bool
- func (o *CreateRuleDefault) IsSuccess() bool
- func (o *CreateRuleDefault) String() string
- type CreateRuleOK
- func (o *CreateRuleOK) Code() int
- func (o *CreateRuleOK) Error() string
- func (o *CreateRuleOK) GetPayload() *models.V1alpha1Rule
- func (o *CreateRuleOK) IsClientError() bool
- func (o *CreateRuleOK) IsCode(code int) bool
- func (o *CreateRuleOK) IsRedirect() bool
- func (o *CreateRuleOK) IsServerError() bool
- func (o *CreateRuleOK) IsSuccess() bool
- func (o *CreateRuleOK) String() string
- type CreateRuleParams
- func (o *CreateRuleParams) SetBody(body *models.PolicyServiceCreateRuleBody)
- func (o *CreateRuleParams) SetContext(ctx context.Context)
- func (o *CreateRuleParams) SetDefaults()
- func (o *CreateRuleParams) SetHTTPClient(client *http.Client)
- func (o *CreateRuleParams) SetPolicyID(policyID string)
- func (o *CreateRuleParams) SetTimeout(timeout time.Duration)
- func (o *CreateRuleParams) WithBody(body *models.PolicyServiceCreateRuleBody) *CreateRuleParams
- func (o *CreateRuleParams) WithContext(ctx context.Context) *CreateRuleParams
- func (o *CreateRuleParams) WithDefaults() *CreateRuleParams
- func (o *CreateRuleParams) WithHTTPClient(client *http.Client) *CreateRuleParams
- func (o *CreateRuleParams) WithPolicyID(policyID string) *CreateRuleParams
- func (o *CreateRuleParams) WithTimeout(timeout time.Duration) *CreateRuleParams
- func (o *CreateRuleParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CreateRuleReader
- type DeletePolicyDefault
- func (o *DeletePolicyDefault) Code() int
- func (o *DeletePolicyDefault) Error() string
- func (o *DeletePolicyDefault) GetPayload() *models.RPCStatus
- func (o *DeletePolicyDefault) IsClientError() bool
- func (o *DeletePolicyDefault) IsCode(code int) bool
- func (o *DeletePolicyDefault) IsRedirect() bool
- func (o *DeletePolicyDefault) IsServerError() bool
- func (o *DeletePolicyDefault) IsSuccess() bool
- func (o *DeletePolicyDefault) String() string
- type DeletePolicyOK
- func (o *DeletePolicyOK) Code() int
- func (o *DeletePolicyOK) Error() string
- func (o *DeletePolicyOK) GetPayload() any
- func (o *DeletePolicyOK) IsClientError() bool
- func (o *DeletePolicyOK) IsCode(code int) bool
- func (o *DeletePolicyOK) IsRedirect() bool
- func (o *DeletePolicyOK) IsServerError() bool
- func (o *DeletePolicyOK) IsSuccess() bool
- func (o *DeletePolicyOK) String() string
- type DeletePolicyParams
- func (o *DeletePolicyParams) SetContext(ctx context.Context)
- func (o *DeletePolicyParams) SetDefaults()
- func (o *DeletePolicyParams) SetHTTPClient(client *http.Client)
- func (o *DeletePolicyParams) SetPolicyID(policyID string)
- func (o *DeletePolicyParams) SetTimeout(timeout time.Duration)
- func (o *DeletePolicyParams) WithContext(ctx context.Context) *DeletePolicyParams
- func (o *DeletePolicyParams) WithDefaults() *DeletePolicyParams
- func (o *DeletePolicyParams) WithHTTPClient(client *http.Client) *DeletePolicyParams
- func (o *DeletePolicyParams) WithPolicyID(policyID string) *DeletePolicyParams
- func (o *DeletePolicyParams) WithTimeout(timeout time.Duration) *DeletePolicyParams
- func (o *DeletePolicyParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DeletePolicyReader
- type DeleteRuleDefault
- func (o *DeleteRuleDefault) Code() int
- func (o *DeleteRuleDefault) Error() string
- func (o *DeleteRuleDefault) GetPayload() *models.RPCStatus
- func (o *DeleteRuleDefault) IsClientError() bool
- func (o *DeleteRuleDefault) IsCode(code int) bool
- func (o *DeleteRuleDefault) IsRedirect() bool
- func (o *DeleteRuleDefault) IsServerError() bool
- func (o *DeleteRuleDefault) IsSuccess() bool
- func (o *DeleteRuleDefault) String() string
- type DeleteRuleOK
- func (o *DeleteRuleOK) Code() int
- func (o *DeleteRuleOK) Error() string
- func (o *DeleteRuleOK) GetPayload() any
- func (o *DeleteRuleOK) IsClientError() bool
- func (o *DeleteRuleOK) IsCode(code int) bool
- func (o *DeleteRuleOK) IsRedirect() bool
- func (o *DeleteRuleOK) IsServerError() bool
- func (o *DeleteRuleOK) IsSuccess() bool
- func (o *DeleteRuleOK) String() string
- type DeleteRuleParams
- func (o *DeleteRuleParams) SetContext(ctx context.Context)
- func (o *DeleteRuleParams) SetDefaults()
- func (o *DeleteRuleParams) SetHTTPClient(client *http.Client)
- func (o *DeleteRuleParams) SetPolicyID(policyID string)
- func (o *DeleteRuleParams) SetRuleID(ruleID string)
- func (o *DeleteRuleParams) SetTimeout(timeout time.Duration)
- func (o *DeleteRuleParams) WithContext(ctx context.Context) *DeleteRuleParams
- func (o *DeleteRuleParams) WithDefaults() *DeleteRuleParams
- func (o *DeleteRuleParams) WithHTTPClient(client *http.Client) *DeleteRuleParams
- func (o *DeleteRuleParams) WithPolicyID(policyID string) *DeleteRuleParams
- func (o *DeleteRuleParams) WithRuleID(ruleID string) *DeleteRuleParams
- func (o *DeleteRuleParams) WithTimeout(timeout time.Duration) *DeleteRuleParams
- func (o *DeleteRuleParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DeleteRuleReader
- type GetPoliciesCountDefault
- func (o *GetPoliciesCountDefault) Code() int
- func (o *GetPoliciesCountDefault) Error() string
- func (o *GetPoliciesCountDefault) GetPayload() *models.RPCStatus
- func (o *GetPoliciesCountDefault) IsClientError() bool
- func (o *GetPoliciesCountDefault) IsCode(code int) bool
- func (o *GetPoliciesCountDefault) IsRedirect() bool
- func (o *GetPoliciesCountDefault) IsServerError() bool
- func (o *GetPoliciesCountDefault) IsSuccess() bool
- func (o *GetPoliciesCountDefault) String() string
- type GetPoliciesCountOK
- func (o *GetPoliciesCountOK) Code() int
- func (o *GetPoliciesCountOK) Error() string
- func (o *GetPoliciesCountOK) GetPayload() *models.V1alpha1GetPoliciesCountResponse
- func (o *GetPoliciesCountOK) IsClientError() bool
- func (o *GetPoliciesCountOK) IsCode(code int) bool
- func (o *GetPoliciesCountOK) IsRedirect() bool
- func (o *GetPoliciesCountOK) IsServerError() bool
- func (o *GetPoliciesCountOK) IsSuccess() bool
- func (o *GetPoliciesCountOK) String() string
- type GetPoliciesCountParams
- func NewGetPoliciesCountParams() *GetPoliciesCountParams
- func NewGetPoliciesCountParamsWithContext(ctx context.Context) *GetPoliciesCountParams
- func NewGetPoliciesCountParamsWithHTTPClient(client *http.Client) *GetPoliciesCountParams
- func NewGetPoliciesCountParamsWithTimeout(timeout time.Duration) *GetPoliciesCountParams
- func (o *GetPoliciesCountParams) SetContext(ctx context.Context)
- func (o *GetPoliciesCountParams) SetDefaults()
- func (o *GetPoliciesCountParams) SetHTTPClient(client *http.Client)
- func (o *GetPoliciesCountParams) SetTimeout(timeout time.Duration)
- func (o *GetPoliciesCountParams) WithContext(ctx context.Context) *GetPoliciesCountParams
- func (o *GetPoliciesCountParams) WithDefaults() *GetPoliciesCountParams
- func (o *GetPoliciesCountParams) WithHTTPClient(client *http.Client) *GetPoliciesCountParams
- func (o *GetPoliciesCountParams) WithTimeout(timeout time.Duration) *GetPoliciesCountParams
- func (o *GetPoliciesCountParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetPoliciesCountReader
- type GetPolicyDefault
- func (o *GetPolicyDefault) Code() int
- func (o *GetPolicyDefault) Error() string
- func (o *GetPolicyDefault) GetPayload() *models.RPCStatus
- func (o *GetPolicyDefault) IsClientError() bool
- func (o *GetPolicyDefault) IsCode(code int) bool
- func (o *GetPolicyDefault) IsRedirect() bool
- func (o *GetPolicyDefault) IsServerError() bool
- func (o *GetPolicyDefault) IsSuccess() bool
- func (o *GetPolicyDefault) String() string
- type GetPolicyOK
- func (o *GetPolicyOK) Code() int
- func (o *GetPolicyOK) Error() string
- func (o *GetPolicyOK) GetPayload() *models.V1alpha1Policy
- func (o *GetPolicyOK) IsClientError() bool
- func (o *GetPolicyOK) IsCode(code int) bool
- func (o *GetPolicyOK) IsRedirect() bool
- func (o *GetPolicyOK) IsServerError() bool
- func (o *GetPolicyOK) IsSuccess() bool
- func (o *GetPolicyOK) String() string
- type GetPolicyParams
- func (o *GetPolicyParams) SetContext(ctx context.Context)
- func (o *GetPolicyParams) SetDefaults()
- func (o *GetPolicyParams) SetHTTPClient(client *http.Client)
- func (o *GetPolicyParams) SetPolicyID(policyID string)
- func (o *GetPolicyParams) SetTimeout(timeout time.Duration)
- func (o *GetPolicyParams) WithContext(ctx context.Context) *GetPolicyParams
- func (o *GetPolicyParams) WithDefaults() *GetPolicyParams
- func (o *GetPolicyParams) WithHTTPClient(client *http.Client) *GetPolicyParams
- func (o *GetPolicyParams) WithPolicyID(policyID string) *GetPolicyParams
- func (o *GetPolicyParams) WithTimeout(timeout time.Duration) *GetPolicyParams
- func (o *GetPolicyParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetPolicyReader
- type GetRuleDefault
- func (o *GetRuleDefault) Code() int
- func (o *GetRuleDefault) Error() string
- func (o *GetRuleDefault) GetPayload() *models.RPCStatus
- func (o *GetRuleDefault) IsClientError() bool
- func (o *GetRuleDefault) IsCode(code int) bool
- func (o *GetRuleDefault) IsRedirect() bool
- func (o *GetRuleDefault) IsServerError() bool
- func (o *GetRuleDefault) IsSuccess() bool
- func (o *GetRuleDefault) String() string
- type GetRuleOK
- func (o *GetRuleOK) Code() int
- func (o *GetRuleOK) Error() string
- func (o *GetRuleOK) GetPayload() *models.V1alpha1Rule
- func (o *GetRuleOK) IsClientError() bool
- func (o *GetRuleOK) IsCode(code int) bool
- func (o *GetRuleOK) IsRedirect() bool
- func (o *GetRuleOK) IsServerError() bool
- func (o *GetRuleOK) IsSuccess() bool
- func (o *GetRuleOK) String() string
- type GetRuleParams
- func (o *GetRuleParams) SetContext(ctx context.Context)
- func (o *GetRuleParams) SetDefaults()
- func (o *GetRuleParams) SetHTTPClient(client *http.Client)
- func (o *GetRuleParams) SetPolicyID(policyID string)
- func (o *GetRuleParams) SetRuleID(ruleID string)
- func (o *GetRuleParams) SetTimeout(timeout time.Duration)
- func (o *GetRuleParams) WithContext(ctx context.Context) *GetRuleParams
- func (o *GetRuleParams) WithDefaults() *GetRuleParams
- func (o *GetRuleParams) WithHTTPClient(client *http.Client) *GetRuleParams
- func (o *GetRuleParams) WithPolicyID(policyID string) *GetRuleParams
- func (o *GetRuleParams) WithRuleID(ruleID string) *GetRuleParams
- func (o *GetRuleParams) WithTimeout(timeout time.Duration) *GetRuleParams
- func (o *GetRuleParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetRuleReader
- type ListPoliciesDefault
- func (o *ListPoliciesDefault) Code() int
- func (o *ListPoliciesDefault) Error() string
- func (o *ListPoliciesDefault) GetPayload() *models.RPCStatus
- func (o *ListPoliciesDefault) IsClientError() bool
- func (o *ListPoliciesDefault) IsCode(code int) bool
- func (o *ListPoliciesDefault) IsRedirect() bool
- func (o *ListPoliciesDefault) IsServerError() bool
- func (o *ListPoliciesDefault) IsSuccess() bool
- func (o *ListPoliciesDefault) String() string
- type ListPoliciesOK
- func (o *ListPoliciesOK) Code() int
- func (o *ListPoliciesOK) Error() string
- func (o *ListPoliciesOK) GetPayload() *models.V1alpha1ListPoliciesResponse
- func (o *ListPoliciesOK) IsClientError() bool
- func (o *ListPoliciesOK) IsCode(code int) bool
- func (o *ListPoliciesOK) IsRedirect() bool
- func (o *ListPoliciesOK) IsServerError() bool
- func (o *ListPoliciesOK) IsSuccess() bool
- func (o *ListPoliciesOK) String() string
- type ListPoliciesParams
- func (o *ListPoliciesParams) SetAppIds(appIds []string)
- func (o *ListPoliciesParams) SetContext(ctx context.Context)
- func (o *ListPoliciesParams) SetDefaults()
- func (o *ListPoliciesParams) SetHTTPClient(client *http.Client)
- func (o *ListPoliciesParams) SetPage(page *int32)
- func (o *ListPoliciesParams) SetQuery(query *string)
- func (o *ListPoliciesParams) SetRulesForAppIds(rulesForAppIds []string)
- func (o *ListPoliciesParams) SetSize(size *int32)
- func (o *ListPoliciesParams) SetTimeout(timeout time.Duration)
- func (o *ListPoliciesParams) WithAppIds(appIds []string) *ListPoliciesParams
- func (o *ListPoliciesParams) WithContext(ctx context.Context) *ListPoliciesParams
- func (o *ListPoliciesParams) WithDefaults() *ListPoliciesParams
- func (o *ListPoliciesParams) WithHTTPClient(client *http.Client) *ListPoliciesParams
- func (o *ListPoliciesParams) WithPage(page *int32) *ListPoliciesParams
- func (o *ListPoliciesParams) WithQuery(query *string) *ListPoliciesParams
- func (o *ListPoliciesParams) WithRulesForAppIds(rulesForAppIds []string) *ListPoliciesParams
- func (o *ListPoliciesParams) WithSize(size *int32) *ListPoliciesParams
- func (o *ListPoliciesParams) WithTimeout(timeout time.Duration) *ListPoliciesParams
- func (o *ListPoliciesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ListPoliciesReader
- type ListRulesDefault
- func (o *ListRulesDefault) Code() int
- func (o *ListRulesDefault) Error() string
- func (o *ListRulesDefault) GetPayload() *models.RPCStatus
- func (o *ListRulesDefault) IsClientError() bool
- func (o *ListRulesDefault) IsCode(code int) bool
- func (o *ListRulesDefault) IsRedirect() bool
- func (o *ListRulesDefault) IsServerError() bool
- func (o *ListRulesDefault) IsSuccess() bool
- func (o *ListRulesDefault) String() string
- type ListRulesOK
- func (o *ListRulesOK) Code() int
- func (o *ListRulesOK) Error() string
- func (o *ListRulesOK) GetPayload() *models.V1alpha1ListRulesResponse
- func (o *ListRulesOK) IsClientError() bool
- func (o *ListRulesOK) IsCode(code int) bool
- func (o *ListRulesOK) IsRedirect() bool
- func (o *ListRulesOK) IsServerError() bool
- func (o *ListRulesOK) IsSuccess() bool
- func (o *ListRulesOK) String() string
- type ListRulesParams
- func (o *ListRulesParams) SetContext(ctx context.Context)
- func (o *ListRulesParams) SetDefaults()
- func (o *ListRulesParams) SetHTTPClient(client *http.Client)
- func (o *ListRulesParams) SetPage(page *int32)
- func (o *ListRulesParams) SetPolicyID(policyID string)
- func (o *ListRulesParams) SetQuery(query *string)
- func (o *ListRulesParams) SetSize(size *int32)
- func (o *ListRulesParams) SetTimeout(timeout time.Duration)
- func (o *ListRulesParams) WithContext(ctx context.Context) *ListRulesParams
- func (o *ListRulesParams) WithDefaults() *ListRulesParams
- func (o *ListRulesParams) WithHTTPClient(client *http.Client) *ListRulesParams
- func (o *ListRulesParams) WithPage(page *int32) *ListRulesParams
- func (o *ListRulesParams) WithPolicyID(policyID string) *ListRulesParams
- func (o *ListRulesParams) WithQuery(query *string) *ListRulesParams
- func (o *ListRulesParams) WithSize(size *int32) *ListRulesParams
- func (o *ListRulesParams) WithTimeout(timeout time.Duration) *ListRulesParams
- func (o *ListRulesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ListRulesReader
- type UpdatePolicyDefault
- func (o *UpdatePolicyDefault) Code() int
- func (o *UpdatePolicyDefault) Error() string
- func (o *UpdatePolicyDefault) GetPayload() *models.RPCStatus
- func (o *UpdatePolicyDefault) IsClientError() bool
- func (o *UpdatePolicyDefault) IsCode(code int) bool
- func (o *UpdatePolicyDefault) IsRedirect() bool
- func (o *UpdatePolicyDefault) IsServerError() bool
- func (o *UpdatePolicyDefault) IsSuccess() bool
- func (o *UpdatePolicyDefault) String() string
- type UpdatePolicyOK
- func (o *UpdatePolicyOK) Code() int
- func (o *UpdatePolicyOK) Error() string
- func (o *UpdatePolicyOK) GetPayload() *models.V1alpha1Policy
- func (o *UpdatePolicyOK) IsClientError() bool
- func (o *UpdatePolicyOK) IsCode(code int) bool
- func (o *UpdatePolicyOK) IsRedirect() bool
- func (o *UpdatePolicyOK) IsServerError() bool
- func (o *UpdatePolicyOK) IsSuccess() bool
- func (o *UpdatePolicyOK) String() string
- type UpdatePolicyParams
- func (o *UpdatePolicyParams) SetBody(body *models.PolicyServiceUpdatePolicyBody)
- func (o *UpdatePolicyParams) SetContext(ctx context.Context)
- func (o *UpdatePolicyParams) SetDefaults()
- func (o *UpdatePolicyParams) SetHTTPClient(client *http.Client)
- func (o *UpdatePolicyParams) SetPolicyID(policyID string)
- func (o *UpdatePolicyParams) SetTimeout(timeout time.Duration)
- func (o *UpdatePolicyParams) WithBody(body *models.PolicyServiceUpdatePolicyBody) *UpdatePolicyParams
- func (o *UpdatePolicyParams) WithContext(ctx context.Context) *UpdatePolicyParams
- func (o *UpdatePolicyParams) WithDefaults() *UpdatePolicyParams
- func (o *UpdatePolicyParams) WithHTTPClient(client *http.Client) *UpdatePolicyParams
- func (o *UpdatePolicyParams) WithPolicyID(policyID string) *UpdatePolicyParams
- func (o *UpdatePolicyParams) WithTimeout(timeout time.Duration) *UpdatePolicyParams
- func (o *UpdatePolicyParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type UpdatePolicyReader
- type UpdateRuleDefault
- func (o *UpdateRuleDefault) Code() int
- func (o *UpdateRuleDefault) Error() string
- func (o *UpdateRuleDefault) GetPayload() *models.RPCStatus
- func (o *UpdateRuleDefault) IsClientError() bool
- func (o *UpdateRuleDefault) IsCode(code int) bool
- func (o *UpdateRuleDefault) IsRedirect() bool
- func (o *UpdateRuleDefault) IsServerError() bool
- func (o *UpdateRuleDefault) IsSuccess() bool
- func (o *UpdateRuleDefault) String() string
- type UpdateRuleOK
- func (o *UpdateRuleOK) Code() int
- func (o *UpdateRuleOK) Error() string
- func (o *UpdateRuleOK) GetPayload() *models.V1alpha1Rule
- func (o *UpdateRuleOK) IsClientError() bool
- func (o *UpdateRuleOK) IsCode(code int) bool
- func (o *UpdateRuleOK) IsRedirect() bool
- func (o *UpdateRuleOK) IsServerError() bool
- func (o *UpdateRuleOK) IsSuccess() bool
- func (o *UpdateRuleOK) String() string
- type UpdateRuleParams
- func (o *UpdateRuleParams) SetBody(body *models.PolicyServiceUpdateRuleBody)
- func (o *UpdateRuleParams) SetContext(ctx context.Context)
- func (o *UpdateRuleParams) SetDefaults()
- func (o *UpdateRuleParams) SetHTTPClient(client *http.Client)
- func (o *UpdateRuleParams) SetPolicyID(policyID string)
- func (o *UpdateRuleParams) SetRuleID(ruleID string)
- func (o *UpdateRuleParams) SetTimeout(timeout time.Duration)
- func (o *UpdateRuleParams) WithBody(body *models.PolicyServiceUpdateRuleBody) *UpdateRuleParams
- func (o *UpdateRuleParams) WithContext(ctx context.Context) *UpdateRuleParams
- func (o *UpdateRuleParams) WithDefaults() *UpdateRuleParams
- func (o *UpdateRuleParams) WithHTTPClient(client *http.Client) *UpdateRuleParams
- func (o *UpdateRuleParams) WithPolicyID(policyID string) *UpdateRuleParams
- func (o *UpdateRuleParams) WithRuleID(ruleID string) *UpdateRuleParams
- func (o *UpdateRuleParams) WithTimeout(timeout time.Duration) *UpdateRuleParams
- func (o *UpdateRuleParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type UpdateRuleReader
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 API
func (*Client) CreatePolicy ¶
func (a *Client) CreatePolicy(params *CreatePolicyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreatePolicyOK, error)
CreatePolicy creates policy
func (*Client) CreateRule ¶
func (a *Client) CreateRule(params *CreateRuleParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateRuleOK, error)
CreateRule creates rule
func (*Client) DeletePolicy ¶
func (a *Client) DeletePolicy(params *DeletePolicyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeletePolicyOK, error)
DeletePolicy deletes policy
func (*Client) DeleteRule ¶
func (a *Client) DeleteRule(params *DeleteRuleParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteRuleOK, error)
DeleteRule deletes rule
func (*Client) GetPoliciesCount ¶
func (a *Client) GetPoliciesCount(params *GetPoliciesCountParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetPoliciesCountOK, error)
GetPoliciesCount gets policies total count
func (*Client) GetPolicy ¶
func (a *Client) GetPolicy(params *GetPolicyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetPolicyOK, error)
GetPolicy gets policy by Id
func (*Client) GetRule ¶
func (a *Client) GetRule(params *GetRuleParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetRuleOK, error)
GetRule gets rule by Id
func (*Client) ListPolicies ¶
func (a *Client) ListPolicies(params *ListPoliciesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListPoliciesOK, error)
ListPolicies lists policies
func (*Client) ListRules ¶
func (a *Client) ListRules(params *ListRulesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListRulesOK, error)
ListRules lists rules
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
func (*Client) UpdatePolicy ¶
func (a *Client) UpdatePolicy(params *UpdatePolicyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdatePolicyOK, error)
UpdatePolicy updates policy
func (*Client) UpdateRule ¶
func (a *Client) UpdateRule(params *UpdateRuleParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateRuleOK, error)
UpdateRule updates rule
type ClientOption ¶
type ClientOption func(*runtime.ClientOperation)
ClientOption may be used to customize the behavior of Client methods.
type ClientService ¶
type ClientService interface {
CreatePolicy(params *CreatePolicyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreatePolicyOK, error)
CreateRule(params *CreateRuleParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateRuleOK, error)
DeletePolicy(params *DeletePolicyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeletePolicyOK, error)
DeleteRule(params *DeleteRuleParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteRuleOK, error)
GetPoliciesCount(params *GetPoliciesCountParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetPoliciesCountOK, error)
GetPolicy(params *GetPolicyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetPolicyOK, error)
GetRule(params *GetRuleParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetRuleOK, error)
ListPolicies(params *ListPoliciesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListPoliciesOK, error)
ListRules(params *ListRulesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListRulesOK, error)
UpdatePolicy(params *UpdatePolicyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdatePolicyOK, error)
UpdateRule(params *UpdateRuleParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateRuleOK, 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 API client.
type CreatePolicyDefault ¶
type CreatePolicyDefault struct {
Payload *models.RPCStatus
// contains filtered or unexported fields
}
CreatePolicyDefault describes a response with status code -1, with default header values.
An unexpected error response.
func NewCreatePolicyDefault ¶
func NewCreatePolicyDefault(code int) *CreatePolicyDefault
NewCreatePolicyDefault creates a CreatePolicyDefault with default headers values
func (*CreatePolicyDefault) Code ¶
func (o *CreatePolicyDefault) Code() int
Code gets the status code for the create policy default response
func (*CreatePolicyDefault) Error ¶
func (o *CreatePolicyDefault) Error() string
func (*CreatePolicyDefault) GetPayload ¶
func (o *CreatePolicyDefault) GetPayload() *models.RPCStatus
func (*CreatePolicyDefault) IsClientError ¶
func (o *CreatePolicyDefault) IsClientError() bool
IsClientError returns true when this create policy default response has a 4xx status code
func (*CreatePolicyDefault) IsCode ¶
func (o *CreatePolicyDefault) IsCode(code int) bool
IsCode returns true when this create policy default response a status code equal to that given
func (*CreatePolicyDefault) IsRedirect ¶
func (o *CreatePolicyDefault) IsRedirect() bool
IsRedirect returns true when this create policy default response has a 3xx status code
func (*CreatePolicyDefault) IsServerError ¶
func (o *CreatePolicyDefault) IsServerError() bool
IsServerError returns true when this create policy default response has a 5xx status code
func (*CreatePolicyDefault) IsSuccess ¶
func (o *CreatePolicyDefault) IsSuccess() bool
IsSuccess returns true when this create policy default response has a 2xx status code
func (*CreatePolicyDefault) String ¶
func (o *CreatePolicyDefault) String() string
type CreatePolicyOK ¶
type CreatePolicyOK struct {
Payload *models.V1alpha1Policy
}
CreatePolicyOK describes a response with status code 200, with default header values.
A successful response.
func NewCreatePolicyOK ¶
func NewCreatePolicyOK() *CreatePolicyOK
NewCreatePolicyOK creates a CreatePolicyOK with default headers values
func (*CreatePolicyOK) Code ¶
func (o *CreatePolicyOK) Code() int
Code gets the status code for the create policy o k response
func (*CreatePolicyOK) Error ¶
func (o *CreatePolicyOK) Error() string
func (*CreatePolicyOK) GetPayload ¶
func (o *CreatePolicyOK) GetPayload() *models.V1alpha1Policy
func (*CreatePolicyOK) IsClientError ¶
func (o *CreatePolicyOK) IsClientError() bool
IsClientError returns true when this create policy o k response has a 4xx status code
func (*CreatePolicyOK) IsCode ¶
func (o *CreatePolicyOK) IsCode(code int) bool
IsCode returns true when this create policy o k response a status code equal to that given
func (*CreatePolicyOK) IsRedirect ¶
func (o *CreatePolicyOK) IsRedirect() bool
IsRedirect returns true when this create policy o k response has a 3xx status code
func (*CreatePolicyOK) IsServerError ¶
func (o *CreatePolicyOK) IsServerError() bool
IsServerError returns true when this create policy o k response has a 5xx status code
func (*CreatePolicyOK) IsSuccess ¶
func (o *CreatePolicyOK) IsSuccess() bool
IsSuccess returns true when this create policy o k response has a 2xx status code
func (*CreatePolicyOK) String ¶
func (o *CreatePolicyOK) String() string
type CreatePolicyParams ¶
type CreatePolicyParams struct {
// Body.
Body *models.V1alpha1CreatePolicyRequest
Context context.Context
HTTPClient *http.Client
// contains filtered or unexported fields
}
CreatePolicyParams contains all the parameters to send to the API endpoint
for the create policy operation. Typically these are written to a http.Request.
func NewCreatePolicyParams ¶
func NewCreatePolicyParams() *CreatePolicyParams
NewCreatePolicyParams creates a new CreatePolicyParams 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 NewCreatePolicyParamsWithContext ¶
func NewCreatePolicyParamsWithContext(ctx context.Context) *CreatePolicyParams
NewCreatePolicyParamsWithContext creates a new CreatePolicyParams object with the ability to set a context for a request.
func NewCreatePolicyParamsWithHTTPClient ¶
func NewCreatePolicyParamsWithHTTPClient(client *http.Client) *CreatePolicyParams
NewCreatePolicyParamsWithHTTPClient creates a new CreatePolicyParams object with the ability to set a custom HTTPClient for a request.
func NewCreatePolicyParamsWithTimeout ¶
func NewCreatePolicyParamsWithTimeout(timeout time.Duration) *CreatePolicyParams
NewCreatePolicyParamsWithTimeout creates a new CreatePolicyParams object with the ability to set a timeout on a request.
func (*CreatePolicyParams) SetBody ¶
func (o *CreatePolicyParams) SetBody(body *models.V1alpha1CreatePolicyRequest)
SetBody adds the body to the create policy params
func (*CreatePolicyParams) SetContext ¶
func (o *CreatePolicyParams) SetContext(ctx context.Context)
SetContext adds the context to the create policy params
func (*CreatePolicyParams) SetDefaults ¶
func (o *CreatePolicyParams) SetDefaults()
SetDefaults hydrates default values in the create policy params (not the query body).
All values with no default are reset to their zero value.
func (*CreatePolicyParams) SetHTTPClient ¶
func (o *CreatePolicyParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the create policy params
func (*CreatePolicyParams) SetTimeout ¶
func (o *CreatePolicyParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the create policy params
func (*CreatePolicyParams) WithBody ¶
func (o *CreatePolicyParams) WithBody(body *models.V1alpha1CreatePolicyRequest) *CreatePolicyParams
WithBody adds the body to the create policy params
func (*CreatePolicyParams) WithContext ¶
func (o *CreatePolicyParams) WithContext(ctx context.Context) *CreatePolicyParams
WithContext adds the context to the create policy params
func (*CreatePolicyParams) WithDefaults ¶
func (o *CreatePolicyParams) WithDefaults() *CreatePolicyParams
WithDefaults hydrates default values in the create policy params (not the query body).
All values with no default are reset to their zero value.
func (*CreatePolicyParams) WithHTTPClient ¶
func (o *CreatePolicyParams) WithHTTPClient(client *http.Client) *CreatePolicyParams
WithHTTPClient adds the HTTPClient to the create policy params
func (*CreatePolicyParams) WithTimeout ¶
func (o *CreatePolicyParams) WithTimeout(timeout time.Duration) *CreatePolicyParams
WithTimeout adds the timeout to the create policy params
func (*CreatePolicyParams) WriteToRequest ¶
func (o *CreatePolicyParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type CreatePolicyReader ¶
type CreatePolicyReader struct {
// contains filtered or unexported fields
}
CreatePolicyReader is a Reader for the CreatePolicy structure.
func (*CreatePolicyReader) ReadResponse ¶
func (o *CreatePolicyReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (any, error)
ReadResponse reads a server response into the received o.
type CreateRuleDefault ¶
type CreateRuleDefault struct {
Payload *models.RPCStatus
// contains filtered or unexported fields
}
CreateRuleDefault describes a response with status code -1, with default header values.
An unexpected error response.
func NewCreateRuleDefault ¶
func NewCreateRuleDefault(code int) *CreateRuleDefault
NewCreateRuleDefault creates a CreateRuleDefault with default headers values
func (*CreateRuleDefault) Code ¶
func (o *CreateRuleDefault) Code() int
Code gets the status code for the create rule default response
func (*CreateRuleDefault) Error ¶
func (o *CreateRuleDefault) Error() string
func (*CreateRuleDefault) GetPayload ¶
func (o *CreateRuleDefault) GetPayload() *models.RPCStatus
func (*CreateRuleDefault) IsClientError ¶
func (o *CreateRuleDefault) IsClientError() bool
IsClientError returns true when this create rule default response has a 4xx status code
func (*CreateRuleDefault) IsCode ¶
func (o *CreateRuleDefault) IsCode(code int) bool
IsCode returns true when this create rule default response a status code equal to that given
func (*CreateRuleDefault) IsRedirect ¶
func (o *CreateRuleDefault) IsRedirect() bool
IsRedirect returns true when this create rule default response has a 3xx status code
func (*CreateRuleDefault) IsServerError ¶
func (o *CreateRuleDefault) IsServerError() bool
IsServerError returns true when this create rule default response has a 5xx status code
func (*CreateRuleDefault) IsSuccess ¶
func (o *CreateRuleDefault) IsSuccess() bool
IsSuccess returns true when this create rule default response has a 2xx status code
func (*CreateRuleDefault) String ¶
func (o *CreateRuleDefault) String() string
type CreateRuleOK ¶
type CreateRuleOK struct {
Payload *models.V1alpha1Rule
}
CreateRuleOK describes a response with status code 200, with default header values.
A successful response.
func NewCreateRuleOK ¶
func NewCreateRuleOK() *CreateRuleOK
NewCreateRuleOK creates a CreateRuleOK with default headers values
func (*CreateRuleOK) Code ¶
func (o *CreateRuleOK) Code() int
Code gets the status code for the create rule o k response
func (*CreateRuleOK) Error ¶
func (o *CreateRuleOK) Error() string
func (*CreateRuleOK) GetPayload ¶
func (o *CreateRuleOK) GetPayload() *models.V1alpha1Rule
func (*CreateRuleOK) IsClientError ¶
func (o *CreateRuleOK) IsClientError() bool
IsClientError returns true when this create rule o k response has a 4xx status code
func (*CreateRuleOK) IsCode ¶
func (o *CreateRuleOK) IsCode(code int) bool
IsCode returns true when this create rule o k response a status code equal to that given
func (*CreateRuleOK) IsRedirect ¶
func (o *CreateRuleOK) IsRedirect() bool
IsRedirect returns true when this create rule o k response has a 3xx status code
func (*CreateRuleOK) IsServerError ¶
func (o *CreateRuleOK) IsServerError() bool
IsServerError returns true when this create rule o k response has a 5xx status code
func (*CreateRuleOK) IsSuccess ¶
func (o *CreateRuleOK) IsSuccess() bool
IsSuccess returns true when this create rule o k response has a 2xx status code
func (*CreateRuleOK) String ¶
func (o *CreateRuleOK) String() string
type CreateRuleParams ¶
type CreateRuleParams struct {
// Body.
Body *models.PolicyServiceCreateRuleBody
/* PolicyID.
The Policy Id to which these Rules belong.
*/
PolicyID string
Context context.Context
HTTPClient *http.Client
// contains filtered or unexported fields
}
CreateRuleParams contains all the parameters to send to the API endpoint
for the create rule operation. Typically these are written to a http.Request.
func NewCreateRuleParams ¶
func NewCreateRuleParams() *CreateRuleParams
NewCreateRuleParams creates a new CreateRuleParams 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 NewCreateRuleParamsWithContext ¶
func NewCreateRuleParamsWithContext(ctx context.Context) *CreateRuleParams
NewCreateRuleParamsWithContext creates a new CreateRuleParams object with the ability to set a context for a request.
func NewCreateRuleParamsWithHTTPClient ¶
func NewCreateRuleParamsWithHTTPClient(client *http.Client) *CreateRuleParams
NewCreateRuleParamsWithHTTPClient creates a new CreateRuleParams object with the ability to set a custom HTTPClient for a request.
func NewCreateRuleParamsWithTimeout ¶
func NewCreateRuleParamsWithTimeout(timeout time.Duration) *CreateRuleParams
NewCreateRuleParamsWithTimeout creates a new CreateRuleParams object with the ability to set a timeout on a request.
func (*CreateRuleParams) SetBody ¶
func (o *CreateRuleParams) SetBody(body *models.PolicyServiceCreateRuleBody)
SetBody adds the body to the create rule params
func (*CreateRuleParams) SetContext ¶
func (o *CreateRuleParams) SetContext(ctx context.Context)
SetContext adds the context to the create rule params
func (*CreateRuleParams) SetDefaults ¶
func (o *CreateRuleParams) SetDefaults()
SetDefaults hydrates default values in the create rule params (not the query body).
All values with no default are reset to their zero value.
func (*CreateRuleParams) SetHTTPClient ¶
func (o *CreateRuleParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the create rule params
func (*CreateRuleParams) SetPolicyID ¶
func (o *CreateRuleParams) SetPolicyID(policyID string)
SetPolicyID adds the policyId to the create rule params
func (*CreateRuleParams) SetTimeout ¶
func (o *CreateRuleParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the create rule params
func (*CreateRuleParams) WithBody ¶
func (o *CreateRuleParams) WithBody(body *models.PolicyServiceCreateRuleBody) *CreateRuleParams
WithBody adds the body to the create rule params
func (*CreateRuleParams) WithContext ¶
func (o *CreateRuleParams) WithContext(ctx context.Context) *CreateRuleParams
WithContext adds the context to the create rule params
func (*CreateRuleParams) WithDefaults ¶
func (o *CreateRuleParams) WithDefaults() *CreateRuleParams
WithDefaults hydrates default values in the create rule params (not the query body).
All values with no default are reset to their zero value.
func (*CreateRuleParams) WithHTTPClient ¶
func (o *CreateRuleParams) WithHTTPClient(client *http.Client) *CreateRuleParams
WithHTTPClient adds the HTTPClient to the create rule params
func (*CreateRuleParams) WithPolicyID ¶
func (o *CreateRuleParams) WithPolicyID(policyID string) *CreateRuleParams
WithPolicyID adds the policyID to the create rule params
func (*CreateRuleParams) WithTimeout ¶
func (o *CreateRuleParams) WithTimeout(timeout time.Duration) *CreateRuleParams
WithTimeout adds the timeout to the create rule params
func (*CreateRuleParams) WriteToRequest ¶
func (o *CreateRuleParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type CreateRuleReader ¶
type CreateRuleReader struct {
// contains filtered or unexported fields
}
CreateRuleReader is a Reader for the CreateRule structure.
func (*CreateRuleReader) ReadResponse ¶
func (o *CreateRuleReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (any, error)
ReadResponse reads a server response into the received o.
type DeletePolicyDefault ¶
type DeletePolicyDefault struct {
Payload *models.RPCStatus
// contains filtered or unexported fields
}
DeletePolicyDefault describes a response with status code -1, with default header values.
An unexpected error response.
func NewDeletePolicyDefault ¶
func NewDeletePolicyDefault(code int) *DeletePolicyDefault
NewDeletePolicyDefault creates a DeletePolicyDefault with default headers values
func (*DeletePolicyDefault) Code ¶
func (o *DeletePolicyDefault) Code() int
Code gets the status code for the delete policy default response
func (*DeletePolicyDefault) Error ¶
func (o *DeletePolicyDefault) Error() string
func (*DeletePolicyDefault) GetPayload ¶
func (o *DeletePolicyDefault) GetPayload() *models.RPCStatus
func (*DeletePolicyDefault) IsClientError ¶
func (o *DeletePolicyDefault) IsClientError() bool
IsClientError returns true when this delete policy default response has a 4xx status code
func (*DeletePolicyDefault) IsCode ¶
func (o *DeletePolicyDefault) IsCode(code int) bool
IsCode returns true when this delete policy default response a status code equal to that given
func (*DeletePolicyDefault) IsRedirect ¶
func (o *DeletePolicyDefault) IsRedirect() bool
IsRedirect returns true when this delete policy default response has a 3xx status code
func (*DeletePolicyDefault) IsServerError ¶
func (o *DeletePolicyDefault) IsServerError() bool
IsServerError returns true when this delete policy default response has a 5xx status code
func (*DeletePolicyDefault) IsSuccess ¶
func (o *DeletePolicyDefault) IsSuccess() bool
IsSuccess returns true when this delete policy default response has a 2xx status code
func (*DeletePolicyDefault) String ¶
func (o *DeletePolicyDefault) String() string
type DeletePolicyOK ¶
type DeletePolicyOK struct {
Payload any
}
DeletePolicyOK describes a response with status code 200, with default header values.
A successful response.
func NewDeletePolicyOK ¶
func NewDeletePolicyOK() *DeletePolicyOK
NewDeletePolicyOK creates a DeletePolicyOK with default headers values
func (*DeletePolicyOK) Code ¶
func (o *DeletePolicyOK) Code() int
Code gets the status code for the delete policy o k response
func (*DeletePolicyOK) Error ¶
func (o *DeletePolicyOK) Error() string
func (*DeletePolicyOK) GetPayload ¶
func (o *DeletePolicyOK) GetPayload() any
func (*DeletePolicyOK) IsClientError ¶
func (o *DeletePolicyOK) IsClientError() bool
IsClientError returns true when this delete policy o k response has a 4xx status code
func (*DeletePolicyOK) IsCode ¶
func (o *DeletePolicyOK) IsCode(code int) bool
IsCode returns true when this delete policy o k response a status code equal to that given
func (*DeletePolicyOK) IsRedirect ¶
func (o *DeletePolicyOK) IsRedirect() bool
IsRedirect returns true when this delete policy o k response has a 3xx status code
func (*DeletePolicyOK) IsServerError ¶
func (o *DeletePolicyOK) IsServerError() bool
IsServerError returns true when this delete policy o k response has a 5xx status code
func (*DeletePolicyOK) IsSuccess ¶
func (o *DeletePolicyOK) IsSuccess() bool
IsSuccess returns true when this delete policy o k response has a 2xx status code
func (*DeletePolicyOK) String ¶
func (o *DeletePolicyOK) String() string
type DeletePolicyParams ¶
type DeletePolicyParams struct {
/* PolicyID.
Policy Id to delete.
*/
PolicyID string
Context context.Context
HTTPClient *http.Client
// contains filtered or unexported fields
}
DeletePolicyParams contains all the parameters to send to the API endpoint
for the delete policy operation. Typically these are written to a http.Request.
func NewDeletePolicyParams ¶
func NewDeletePolicyParams() *DeletePolicyParams
NewDeletePolicyParams creates a new DeletePolicyParams 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 NewDeletePolicyParamsWithContext ¶
func NewDeletePolicyParamsWithContext(ctx context.Context) *DeletePolicyParams
NewDeletePolicyParamsWithContext creates a new DeletePolicyParams object with the ability to set a context for a request.
func NewDeletePolicyParamsWithHTTPClient ¶
func NewDeletePolicyParamsWithHTTPClient(client *http.Client) *DeletePolicyParams
NewDeletePolicyParamsWithHTTPClient creates a new DeletePolicyParams object with the ability to set a custom HTTPClient for a request.
func NewDeletePolicyParamsWithTimeout ¶
func NewDeletePolicyParamsWithTimeout(timeout time.Duration) *DeletePolicyParams
NewDeletePolicyParamsWithTimeout creates a new DeletePolicyParams object with the ability to set a timeout on a request.
func (*DeletePolicyParams) SetContext ¶
func (o *DeletePolicyParams) SetContext(ctx context.Context)
SetContext adds the context to the delete policy params
func (*DeletePolicyParams) SetDefaults ¶
func (o *DeletePolicyParams) SetDefaults()
SetDefaults hydrates default values in the delete policy params (not the query body).
All values with no default are reset to their zero value.
func (*DeletePolicyParams) SetHTTPClient ¶
func (o *DeletePolicyParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the delete policy params
func (*DeletePolicyParams) SetPolicyID ¶
func (o *DeletePolicyParams) SetPolicyID(policyID string)
SetPolicyID adds the policyId to the delete policy params
func (*DeletePolicyParams) SetTimeout ¶
func (o *DeletePolicyParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the delete policy params
func (*DeletePolicyParams) WithContext ¶
func (o *DeletePolicyParams) WithContext(ctx context.Context) *DeletePolicyParams
WithContext adds the context to the delete policy params
func (*DeletePolicyParams) WithDefaults ¶
func (o *DeletePolicyParams) WithDefaults() *DeletePolicyParams
WithDefaults hydrates default values in the delete policy params (not the query body).
All values with no default are reset to their zero value.
func (*DeletePolicyParams) WithHTTPClient ¶
func (o *DeletePolicyParams) WithHTTPClient(client *http.Client) *DeletePolicyParams
WithHTTPClient adds the HTTPClient to the delete policy params
func (*DeletePolicyParams) WithPolicyID ¶
func (o *DeletePolicyParams) WithPolicyID(policyID string) *DeletePolicyParams
WithPolicyID adds the policyID to the delete policy params
func (*DeletePolicyParams) WithTimeout ¶
func (o *DeletePolicyParams) WithTimeout(timeout time.Duration) *DeletePolicyParams
WithTimeout adds the timeout to the delete policy params
func (*DeletePolicyParams) WriteToRequest ¶
func (o *DeletePolicyParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type DeletePolicyReader ¶
type DeletePolicyReader struct {
// contains filtered or unexported fields
}
DeletePolicyReader is a Reader for the DeletePolicy structure.
func (*DeletePolicyReader) ReadResponse ¶
func (o *DeletePolicyReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (any, error)
ReadResponse reads a server response into the received o.
type DeleteRuleDefault ¶
type DeleteRuleDefault struct {
Payload *models.RPCStatus
// contains filtered or unexported fields
}
DeleteRuleDefault describes a response with status code -1, with default header values.
An unexpected error response.
func NewDeleteRuleDefault ¶
func NewDeleteRuleDefault(code int) *DeleteRuleDefault
NewDeleteRuleDefault creates a DeleteRuleDefault with default headers values
func (*DeleteRuleDefault) Code ¶
func (o *DeleteRuleDefault) Code() int
Code gets the status code for the delete rule default response
func (*DeleteRuleDefault) Error ¶
func (o *DeleteRuleDefault) Error() string
func (*DeleteRuleDefault) GetPayload ¶
func (o *DeleteRuleDefault) GetPayload() *models.RPCStatus
func (*DeleteRuleDefault) IsClientError ¶
func (o *DeleteRuleDefault) IsClientError() bool
IsClientError returns true when this delete rule default response has a 4xx status code
func (*DeleteRuleDefault) IsCode ¶
func (o *DeleteRuleDefault) IsCode(code int) bool
IsCode returns true when this delete rule default response a status code equal to that given
func (*DeleteRuleDefault) IsRedirect ¶
func (o *DeleteRuleDefault) IsRedirect() bool
IsRedirect returns true when this delete rule default response has a 3xx status code
func (*DeleteRuleDefault) IsServerError ¶
func (o *DeleteRuleDefault) IsServerError() bool
IsServerError returns true when this delete rule default response has a 5xx status code
func (*DeleteRuleDefault) IsSuccess ¶
func (o *DeleteRuleDefault) IsSuccess() bool
IsSuccess returns true when this delete rule default response has a 2xx status code
func (*DeleteRuleDefault) String ¶
func (o *DeleteRuleDefault) String() string
type DeleteRuleOK ¶
type DeleteRuleOK struct {
Payload any
}
DeleteRuleOK describes a response with status code 200, with default header values.
A successful response.
func NewDeleteRuleOK ¶
func NewDeleteRuleOK() *DeleteRuleOK
NewDeleteRuleOK creates a DeleteRuleOK with default headers values
func (*DeleteRuleOK) Code ¶
func (o *DeleteRuleOK) Code() int
Code gets the status code for the delete rule o k response
func (*DeleteRuleOK) Error ¶
func (o *DeleteRuleOK) Error() string
func (*DeleteRuleOK) GetPayload ¶
func (o *DeleteRuleOK) GetPayload() any
func (*DeleteRuleOK) IsClientError ¶
func (o *DeleteRuleOK) IsClientError() bool
IsClientError returns true when this delete rule o k response has a 4xx status code
func (*DeleteRuleOK) IsCode ¶
func (o *DeleteRuleOK) IsCode(code int) bool
IsCode returns true when this delete rule o k response a status code equal to that given
func (*DeleteRuleOK) IsRedirect ¶
func (o *DeleteRuleOK) IsRedirect() bool
IsRedirect returns true when this delete rule o k response has a 3xx status code
func (*DeleteRuleOK) IsServerError ¶
func (o *DeleteRuleOK) IsServerError() bool
IsServerError returns true when this delete rule o k response has a 5xx status code
func (*DeleteRuleOK) IsSuccess ¶
func (o *DeleteRuleOK) IsSuccess() bool
IsSuccess returns true when this delete rule o k response has a 2xx status code
func (*DeleteRuleOK) String ¶
func (o *DeleteRuleOK) String() string
type DeleteRuleParams ¶
type DeleteRuleParams struct {
/* PolicyID.
The Policy Id to which these Rules belong.
*/
PolicyID string
/* RuleID.
Rule Id to delete.
*/
RuleID string
Context context.Context
HTTPClient *http.Client
// contains filtered or unexported fields
}
DeleteRuleParams contains all the parameters to send to the API endpoint
for the delete rule operation. Typically these are written to a http.Request.
func NewDeleteRuleParams ¶
func NewDeleteRuleParams() *DeleteRuleParams
NewDeleteRuleParams creates a new DeleteRuleParams 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 NewDeleteRuleParamsWithContext ¶
func NewDeleteRuleParamsWithContext(ctx context.Context) *DeleteRuleParams
NewDeleteRuleParamsWithContext creates a new DeleteRuleParams object with the ability to set a context for a request.
func NewDeleteRuleParamsWithHTTPClient ¶
func NewDeleteRuleParamsWithHTTPClient(client *http.Client) *DeleteRuleParams
NewDeleteRuleParamsWithHTTPClient creates a new DeleteRuleParams object with the ability to set a custom HTTPClient for a request.
func NewDeleteRuleParamsWithTimeout ¶
func NewDeleteRuleParamsWithTimeout(timeout time.Duration) *DeleteRuleParams
NewDeleteRuleParamsWithTimeout creates a new DeleteRuleParams object with the ability to set a timeout on a request.
func (*DeleteRuleParams) SetContext ¶
func (o *DeleteRuleParams) SetContext(ctx context.Context)
SetContext adds the context to the delete rule params
func (*DeleteRuleParams) SetDefaults ¶
func (o *DeleteRuleParams) SetDefaults()
SetDefaults hydrates default values in the delete rule params (not the query body).
All values with no default are reset to their zero value.
func (*DeleteRuleParams) SetHTTPClient ¶
func (o *DeleteRuleParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the delete rule params
func (*DeleteRuleParams) SetPolicyID ¶
func (o *DeleteRuleParams) SetPolicyID(policyID string)
SetPolicyID adds the policyId to the delete rule params
func (*DeleteRuleParams) SetRuleID ¶
func (o *DeleteRuleParams) SetRuleID(ruleID string)
SetRuleID adds the ruleId to the delete rule params
func (*DeleteRuleParams) SetTimeout ¶
func (o *DeleteRuleParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the delete rule params
func (*DeleteRuleParams) WithContext ¶
func (o *DeleteRuleParams) WithContext(ctx context.Context) *DeleteRuleParams
WithContext adds the context to the delete rule params
func (*DeleteRuleParams) WithDefaults ¶
func (o *DeleteRuleParams) WithDefaults() *DeleteRuleParams
WithDefaults hydrates default values in the delete rule params (not the query body).
All values with no default are reset to their zero value.
func (*DeleteRuleParams) WithHTTPClient ¶
func (o *DeleteRuleParams) WithHTTPClient(client *http.Client) *DeleteRuleParams
WithHTTPClient adds the HTTPClient to the delete rule params
func (*DeleteRuleParams) WithPolicyID ¶
func (o *DeleteRuleParams) WithPolicyID(policyID string) *DeleteRuleParams
WithPolicyID adds the policyID to the delete rule params
func (*DeleteRuleParams) WithRuleID ¶
func (o *DeleteRuleParams) WithRuleID(ruleID string) *DeleteRuleParams
WithRuleID adds the ruleID to the delete rule params
func (*DeleteRuleParams) WithTimeout ¶
func (o *DeleteRuleParams) WithTimeout(timeout time.Duration) *DeleteRuleParams
WithTimeout adds the timeout to the delete rule params
func (*DeleteRuleParams) WriteToRequest ¶
func (o *DeleteRuleParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type DeleteRuleReader ¶
type DeleteRuleReader struct {
// contains filtered or unexported fields
}
DeleteRuleReader is a Reader for the DeleteRule structure.
func (*DeleteRuleReader) ReadResponse ¶
func (o *DeleteRuleReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (any, error)
ReadResponse reads a server response into the received o.
type GetPoliciesCountDefault ¶
type GetPoliciesCountDefault struct {
Payload *models.RPCStatus
// contains filtered or unexported fields
}
GetPoliciesCountDefault describes a response with status code -1, with default header values.
An unexpected error response.
func NewGetPoliciesCountDefault ¶
func NewGetPoliciesCountDefault(code int) *GetPoliciesCountDefault
NewGetPoliciesCountDefault creates a GetPoliciesCountDefault with default headers values
func (*GetPoliciesCountDefault) Code ¶
func (o *GetPoliciesCountDefault) Code() int
Code gets the status code for the get policies count default response
func (*GetPoliciesCountDefault) Error ¶
func (o *GetPoliciesCountDefault) Error() string
func (*GetPoliciesCountDefault) GetPayload ¶
func (o *GetPoliciesCountDefault) GetPayload() *models.RPCStatus
func (*GetPoliciesCountDefault) IsClientError ¶
func (o *GetPoliciesCountDefault) IsClientError() bool
IsClientError returns true when this get policies count default response has a 4xx status code
func (*GetPoliciesCountDefault) IsCode ¶
func (o *GetPoliciesCountDefault) IsCode(code int) bool
IsCode returns true when this get policies count default response a status code equal to that given
func (*GetPoliciesCountDefault) IsRedirect ¶
func (o *GetPoliciesCountDefault) IsRedirect() bool
IsRedirect returns true when this get policies count default response has a 3xx status code
func (*GetPoliciesCountDefault) IsServerError ¶
func (o *GetPoliciesCountDefault) IsServerError() bool
IsServerError returns true when this get policies count default response has a 5xx status code
func (*GetPoliciesCountDefault) IsSuccess ¶
func (o *GetPoliciesCountDefault) IsSuccess() bool
IsSuccess returns true when this get policies count default response has a 2xx status code
func (*GetPoliciesCountDefault) String ¶
func (o *GetPoliciesCountDefault) String() string
type GetPoliciesCountOK ¶
type GetPoliciesCountOK struct {
Payload *models.V1alpha1GetPoliciesCountResponse
}
GetPoliciesCountOK describes a response with status code 200, with default header values.
A successful response.
func NewGetPoliciesCountOK ¶
func NewGetPoliciesCountOK() *GetPoliciesCountOK
NewGetPoliciesCountOK creates a GetPoliciesCountOK with default headers values
func (*GetPoliciesCountOK) Code ¶
func (o *GetPoliciesCountOK) Code() int
Code gets the status code for the get policies count o k response
func (*GetPoliciesCountOK) Error ¶
func (o *GetPoliciesCountOK) Error() string
func (*GetPoliciesCountOK) GetPayload ¶
func (o *GetPoliciesCountOK) GetPayload() *models.V1alpha1GetPoliciesCountResponse
func (*GetPoliciesCountOK) IsClientError ¶
func (o *GetPoliciesCountOK) IsClientError() bool
IsClientError returns true when this get policies count o k response has a 4xx status code
func (*GetPoliciesCountOK) IsCode ¶
func (o *GetPoliciesCountOK) IsCode(code int) bool
IsCode returns true when this get policies count o k response a status code equal to that given
func (*GetPoliciesCountOK) IsRedirect ¶
func (o *GetPoliciesCountOK) IsRedirect() bool
IsRedirect returns true when this get policies count o k response has a 3xx status code
func (*GetPoliciesCountOK) IsServerError ¶
func (o *GetPoliciesCountOK) IsServerError() bool
IsServerError returns true when this get policies count o k response has a 5xx status code
func (*GetPoliciesCountOK) IsSuccess ¶
func (o *GetPoliciesCountOK) IsSuccess() bool
IsSuccess returns true when this get policies count o k response has a 2xx status code
func (*GetPoliciesCountOK) String ¶
func (o *GetPoliciesCountOK) String() string
type GetPoliciesCountParams ¶
type GetPoliciesCountParams struct {
Context context.Context
HTTPClient *http.Client
// contains filtered or unexported fields
}
GetPoliciesCountParams contains all the parameters to send to the API endpoint
for the get policies count operation. Typically these are written to a http.Request.
func NewGetPoliciesCountParams ¶
func NewGetPoliciesCountParams() *GetPoliciesCountParams
NewGetPoliciesCountParams creates a new GetPoliciesCountParams 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 NewGetPoliciesCountParamsWithContext ¶
func NewGetPoliciesCountParamsWithContext(ctx context.Context) *GetPoliciesCountParams
NewGetPoliciesCountParamsWithContext creates a new GetPoliciesCountParams object with the ability to set a context for a request.
func NewGetPoliciesCountParamsWithHTTPClient ¶
func NewGetPoliciesCountParamsWithHTTPClient(client *http.Client) *GetPoliciesCountParams
NewGetPoliciesCountParamsWithHTTPClient creates a new GetPoliciesCountParams object with the ability to set a custom HTTPClient for a request.
func NewGetPoliciesCountParamsWithTimeout ¶
func NewGetPoliciesCountParamsWithTimeout(timeout time.Duration) *GetPoliciesCountParams
NewGetPoliciesCountParamsWithTimeout creates a new GetPoliciesCountParams object with the ability to set a timeout on a request.
func (*GetPoliciesCountParams) SetContext ¶
func (o *GetPoliciesCountParams) SetContext(ctx context.Context)
SetContext adds the context to the get policies count params
func (*GetPoliciesCountParams) SetDefaults ¶
func (o *GetPoliciesCountParams) SetDefaults()
SetDefaults hydrates default values in the get policies count params (not the query body).
All values with no default are reset to their zero value.
func (*GetPoliciesCountParams) SetHTTPClient ¶
func (o *GetPoliciesCountParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get policies count params
func (*GetPoliciesCountParams) SetTimeout ¶
func (o *GetPoliciesCountParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get policies count params
func (*GetPoliciesCountParams) WithContext ¶
func (o *GetPoliciesCountParams) WithContext(ctx context.Context) *GetPoliciesCountParams
WithContext adds the context to the get policies count params
func (*GetPoliciesCountParams) WithDefaults ¶
func (o *GetPoliciesCountParams) WithDefaults() *GetPoliciesCountParams
WithDefaults hydrates default values in the get policies count params (not the query body).
All values with no default are reset to their zero value.
func (*GetPoliciesCountParams) WithHTTPClient ¶
func (o *GetPoliciesCountParams) WithHTTPClient(client *http.Client) *GetPoliciesCountParams
WithHTTPClient adds the HTTPClient to the get policies count params
func (*GetPoliciesCountParams) WithTimeout ¶
func (o *GetPoliciesCountParams) WithTimeout(timeout time.Duration) *GetPoliciesCountParams
WithTimeout adds the timeout to the get policies count params
func (*GetPoliciesCountParams) WriteToRequest ¶
func (o *GetPoliciesCountParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetPoliciesCountReader ¶
type GetPoliciesCountReader struct {
// contains filtered or unexported fields
}
GetPoliciesCountReader is a Reader for the GetPoliciesCount structure.
func (*GetPoliciesCountReader) ReadResponse ¶
func (o *GetPoliciesCountReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (any, error)
ReadResponse reads a server response into the received o.
type GetPolicyDefault ¶
type GetPolicyDefault struct {
Payload *models.RPCStatus
// contains filtered or unexported fields
}
GetPolicyDefault describes a response with status code -1, with default header values.
An unexpected error response.
func NewGetPolicyDefault ¶
func NewGetPolicyDefault(code int) *GetPolicyDefault
NewGetPolicyDefault creates a GetPolicyDefault with default headers values
func (*GetPolicyDefault) Code ¶
func (o *GetPolicyDefault) Code() int
Code gets the status code for the get policy default response
func (*GetPolicyDefault) Error ¶
func (o *GetPolicyDefault) Error() string
func (*GetPolicyDefault) GetPayload ¶
func (o *GetPolicyDefault) GetPayload() *models.RPCStatus
func (*GetPolicyDefault) IsClientError ¶
func (o *GetPolicyDefault) IsClientError() bool
IsClientError returns true when this get policy default response has a 4xx status code
func (*GetPolicyDefault) IsCode ¶
func (o *GetPolicyDefault) IsCode(code int) bool
IsCode returns true when this get policy default response a status code equal to that given
func (*GetPolicyDefault) IsRedirect ¶
func (o *GetPolicyDefault) IsRedirect() bool
IsRedirect returns true when this get policy default response has a 3xx status code
func (*GetPolicyDefault) IsServerError ¶
func (o *GetPolicyDefault) IsServerError() bool
IsServerError returns true when this get policy default response has a 5xx status code
func (*GetPolicyDefault) IsSuccess ¶
func (o *GetPolicyDefault) IsSuccess() bool
IsSuccess returns true when this get policy default response has a 2xx status code
func (*GetPolicyDefault) String ¶
func (o *GetPolicyDefault) String() string
type GetPolicyOK ¶
type GetPolicyOK struct {
Payload *models.V1alpha1Policy
}
GetPolicyOK describes a response with status code 200, with default header values.
A successful response.
func NewGetPolicyOK ¶
func NewGetPolicyOK() *GetPolicyOK
NewGetPolicyOK creates a GetPolicyOK with default headers values
func (*GetPolicyOK) Code ¶
func (o *GetPolicyOK) Code() int
Code gets the status code for the get policy o k response
func (*GetPolicyOK) Error ¶
func (o *GetPolicyOK) Error() string
func (*GetPolicyOK) GetPayload ¶
func (o *GetPolicyOK) GetPayload() *models.V1alpha1Policy
func (*GetPolicyOK) IsClientError ¶
func (o *GetPolicyOK) IsClientError() bool
IsClientError returns true when this get policy o k response has a 4xx status code
func (*GetPolicyOK) IsCode ¶
func (o *GetPolicyOK) IsCode(code int) bool
IsCode returns true when this get policy o k response a status code equal to that given
func (*GetPolicyOK) IsRedirect ¶
func (o *GetPolicyOK) IsRedirect() bool
IsRedirect returns true when this get policy o k response has a 3xx status code
func (*GetPolicyOK) IsServerError ¶
func (o *GetPolicyOK) IsServerError() bool
IsServerError returns true when this get policy o k response has a 5xx status code
func (*GetPolicyOK) IsSuccess ¶
func (o *GetPolicyOK) IsSuccess() bool
IsSuccess returns true when this get policy o k response has a 2xx status code
func (*GetPolicyOK) String ¶
func (o *GetPolicyOK) String() string
type GetPolicyParams ¶
type GetPolicyParams struct {
/* PolicyID.
Policy Id to get.
*/
PolicyID string
Context context.Context
HTTPClient *http.Client
// contains filtered or unexported fields
}
GetPolicyParams contains all the parameters to send to the API endpoint
for the get policy operation. Typically these are written to a http.Request.
func NewGetPolicyParams ¶
func NewGetPolicyParams() *GetPolicyParams
NewGetPolicyParams creates a new GetPolicyParams 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 NewGetPolicyParamsWithContext ¶
func NewGetPolicyParamsWithContext(ctx context.Context) *GetPolicyParams
NewGetPolicyParamsWithContext creates a new GetPolicyParams object with the ability to set a context for a request.
func NewGetPolicyParamsWithHTTPClient ¶
func NewGetPolicyParamsWithHTTPClient(client *http.Client) *GetPolicyParams
NewGetPolicyParamsWithHTTPClient creates a new GetPolicyParams object with the ability to set a custom HTTPClient for a request.
func NewGetPolicyParamsWithTimeout ¶
func NewGetPolicyParamsWithTimeout(timeout time.Duration) *GetPolicyParams
NewGetPolicyParamsWithTimeout creates a new GetPolicyParams object with the ability to set a timeout on a request.
func (*GetPolicyParams) SetContext ¶
func (o *GetPolicyParams) SetContext(ctx context.Context)
SetContext adds the context to the get policy params
func (*GetPolicyParams) SetDefaults ¶
func (o *GetPolicyParams) SetDefaults()
SetDefaults hydrates default values in the get policy params (not the query body).
All values with no default are reset to their zero value.
func (*GetPolicyParams) SetHTTPClient ¶
func (o *GetPolicyParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get policy params
func (*GetPolicyParams) SetPolicyID ¶
func (o *GetPolicyParams) SetPolicyID(policyID string)
SetPolicyID adds the policyId to the get policy params
func (*GetPolicyParams) SetTimeout ¶
func (o *GetPolicyParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get policy params
func (*GetPolicyParams) WithContext ¶
func (o *GetPolicyParams) WithContext(ctx context.Context) *GetPolicyParams
WithContext adds the context to the get policy params
func (*GetPolicyParams) WithDefaults ¶
func (o *GetPolicyParams) WithDefaults() *GetPolicyParams
WithDefaults hydrates default values in the get policy params (not the query body).
All values with no default are reset to their zero value.
func (*GetPolicyParams) WithHTTPClient ¶
func (o *GetPolicyParams) WithHTTPClient(client *http.Client) *GetPolicyParams
WithHTTPClient adds the HTTPClient to the get policy params
func (*GetPolicyParams) WithPolicyID ¶
func (o *GetPolicyParams) WithPolicyID(policyID string) *GetPolicyParams
WithPolicyID adds the policyID to the get policy params
func (*GetPolicyParams) WithTimeout ¶
func (o *GetPolicyParams) WithTimeout(timeout time.Duration) *GetPolicyParams
WithTimeout adds the timeout to the get policy params
func (*GetPolicyParams) WriteToRequest ¶
func (o *GetPolicyParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetPolicyReader ¶
type GetPolicyReader struct {
// contains filtered or unexported fields
}
GetPolicyReader is a Reader for the GetPolicy structure.
func (*GetPolicyReader) ReadResponse ¶
func (o *GetPolicyReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (any, error)
ReadResponse reads a server response into the received o.
type GetRuleDefault ¶
GetRuleDefault describes a response with status code -1, with default header values.
An unexpected error response.
func NewGetRuleDefault ¶
func NewGetRuleDefault(code int) *GetRuleDefault
NewGetRuleDefault creates a GetRuleDefault with default headers values
func (*GetRuleDefault) Code ¶
func (o *GetRuleDefault) Code() int
Code gets the status code for the get rule default response
func (*GetRuleDefault) Error ¶
func (o *GetRuleDefault) Error() string
func (*GetRuleDefault) GetPayload ¶
func (o *GetRuleDefault) GetPayload() *models.RPCStatus
func (*GetRuleDefault) IsClientError ¶
func (o *GetRuleDefault) IsClientError() bool
IsClientError returns true when this get rule default response has a 4xx status code
func (*GetRuleDefault) IsCode ¶
func (o *GetRuleDefault) IsCode(code int) bool
IsCode returns true when this get rule default response a status code equal to that given
func (*GetRuleDefault) IsRedirect ¶
func (o *GetRuleDefault) IsRedirect() bool
IsRedirect returns true when this get rule default response has a 3xx status code
func (*GetRuleDefault) IsServerError ¶
func (o *GetRuleDefault) IsServerError() bool
IsServerError returns true when this get rule default response has a 5xx status code
func (*GetRuleDefault) IsSuccess ¶
func (o *GetRuleDefault) IsSuccess() bool
IsSuccess returns true when this get rule default response has a 2xx status code
func (*GetRuleDefault) String ¶
func (o *GetRuleDefault) String() string
type GetRuleOK ¶
type GetRuleOK struct {
Payload *models.V1alpha1Rule
}
GetRuleOK describes a response with status code 200, with default header values.
A successful response.
func NewGetRuleOK ¶
func NewGetRuleOK() *GetRuleOK
NewGetRuleOK creates a GetRuleOK with default headers values
func (*GetRuleOK) GetPayload ¶
func (o *GetRuleOK) GetPayload() *models.V1alpha1Rule
func (*GetRuleOK) IsClientError ¶
IsClientError returns true when this get rule o k response has a 4xx status code
func (*GetRuleOK) IsCode ¶
IsCode returns true when this get rule o k response a status code equal to that given
func (*GetRuleOK) IsRedirect ¶
IsRedirect returns true when this get rule o k response has a 3xx status code
func (*GetRuleOK) IsServerError ¶
IsServerError returns true when this get rule o k response has a 5xx status code
type GetRuleParams ¶
type GetRuleParams struct {
/* PolicyID.
The Policy Id to which these Rules belong.
*/
PolicyID string
/* RuleID.
Rule Id to get.
*/
RuleID string
Context context.Context
HTTPClient *http.Client
// contains filtered or unexported fields
}
GetRuleParams contains all the parameters to send to the API endpoint
for the get rule operation. Typically these are written to a http.Request.
func NewGetRuleParams ¶
func NewGetRuleParams() *GetRuleParams
NewGetRuleParams creates a new GetRuleParams 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 NewGetRuleParamsWithContext ¶
func NewGetRuleParamsWithContext(ctx context.Context) *GetRuleParams
NewGetRuleParamsWithContext creates a new GetRuleParams object with the ability to set a context for a request.
func NewGetRuleParamsWithHTTPClient ¶
func NewGetRuleParamsWithHTTPClient(client *http.Client) *GetRuleParams
NewGetRuleParamsWithHTTPClient creates a new GetRuleParams object with the ability to set a custom HTTPClient for a request.
func NewGetRuleParamsWithTimeout ¶
func NewGetRuleParamsWithTimeout(timeout time.Duration) *GetRuleParams
NewGetRuleParamsWithTimeout creates a new GetRuleParams object with the ability to set a timeout on a request.
func (*GetRuleParams) SetContext ¶
func (o *GetRuleParams) SetContext(ctx context.Context)
SetContext adds the context to the get rule params
func (*GetRuleParams) SetDefaults ¶
func (o *GetRuleParams) SetDefaults()
SetDefaults hydrates default values in the get rule params (not the query body).
All values with no default are reset to their zero value.
func (*GetRuleParams) SetHTTPClient ¶
func (o *GetRuleParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get rule params
func (*GetRuleParams) SetPolicyID ¶
func (o *GetRuleParams) SetPolicyID(policyID string)
SetPolicyID adds the policyId to the get rule params
func (*GetRuleParams) SetRuleID ¶
func (o *GetRuleParams) SetRuleID(ruleID string)
SetRuleID adds the ruleId to the get rule params
func (*GetRuleParams) SetTimeout ¶
func (o *GetRuleParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get rule params
func (*GetRuleParams) WithContext ¶
func (o *GetRuleParams) WithContext(ctx context.Context) *GetRuleParams
WithContext adds the context to the get rule params
func (*GetRuleParams) WithDefaults ¶
func (o *GetRuleParams) WithDefaults() *GetRuleParams
WithDefaults hydrates default values in the get rule params (not the query body).
All values with no default are reset to their zero value.
func (*GetRuleParams) WithHTTPClient ¶
func (o *GetRuleParams) WithHTTPClient(client *http.Client) *GetRuleParams
WithHTTPClient adds the HTTPClient to the get rule params
func (*GetRuleParams) WithPolicyID ¶
func (o *GetRuleParams) WithPolicyID(policyID string) *GetRuleParams
WithPolicyID adds the policyID to the get rule params
func (*GetRuleParams) WithRuleID ¶
func (o *GetRuleParams) WithRuleID(ruleID string) *GetRuleParams
WithRuleID adds the ruleID to the get rule params
func (*GetRuleParams) WithTimeout ¶
func (o *GetRuleParams) WithTimeout(timeout time.Duration) *GetRuleParams
WithTimeout adds the timeout to the get rule params
func (*GetRuleParams) WriteToRequest ¶
func (o *GetRuleParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetRuleReader ¶
type GetRuleReader struct {
// contains filtered or unexported fields
}
GetRuleReader is a Reader for the GetRule structure.
func (*GetRuleReader) ReadResponse ¶
func (o *GetRuleReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (any, error)
ReadResponse reads a server response into the received o.
type ListPoliciesDefault ¶
type ListPoliciesDefault struct {
Payload *models.RPCStatus
// contains filtered or unexported fields
}
ListPoliciesDefault describes a response with status code -1, with default header values.
An unexpected error response.
func NewListPoliciesDefault ¶
func NewListPoliciesDefault(code int) *ListPoliciesDefault
NewListPoliciesDefault creates a ListPoliciesDefault with default headers values
func (*ListPoliciesDefault) Code ¶
func (o *ListPoliciesDefault) Code() int
Code gets the status code for the list policies default response
func (*ListPoliciesDefault) Error ¶
func (o *ListPoliciesDefault) Error() string
func (*ListPoliciesDefault) GetPayload ¶
func (o *ListPoliciesDefault) GetPayload() *models.RPCStatus
func (*ListPoliciesDefault) IsClientError ¶
func (o *ListPoliciesDefault) IsClientError() bool
IsClientError returns true when this list policies default response has a 4xx status code
func (*ListPoliciesDefault) IsCode ¶
func (o *ListPoliciesDefault) IsCode(code int) bool
IsCode returns true when this list policies default response a status code equal to that given
func (*ListPoliciesDefault) IsRedirect ¶
func (o *ListPoliciesDefault) IsRedirect() bool
IsRedirect returns true when this list policies default response has a 3xx status code
func (*ListPoliciesDefault) IsServerError ¶
func (o *ListPoliciesDefault) IsServerError() bool
IsServerError returns true when this list policies default response has a 5xx status code
func (*ListPoliciesDefault) IsSuccess ¶
func (o *ListPoliciesDefault) IsSuccess() bool
IsSuccess returns true when this list policies default response has a 2xx status code
func (*ListPoliciesDefault) String ¶
func (o *ListPoliciesDefault) String() string
type ListPoliciesOK ¶
type ListPoliciesOK struct {
Payload *models.V1alpha1ListPoliciesResponse
}
ListPoliciesOK describes a response with status code 200, with default header values.
A successful response.
func NewListPoliciesOK ¶
func NewListPoliciesOK() *ListPoliciesOK
NewListPoliciesOK creates a ListPoliciesOK with default headers values
func (*ListPoliciesOK) Code ¶
func (o *ListPoliciesOK) Code() int
Code gets the status code for the list policies o k response
func (*ListPoliciesOK) Error ¶
func (o *ListPoliciesOK) Error() string
func (*ListPoliciesOK) GetPayload ¶
func (o *ListPoliciesOK) GetPayload() *models.V1alpha1ListPoliciesResponse
func (*ListPoliciesOK) IsClientError ¶
func (o *ListPoliciesOK) IsClientError() bool
IsClientError returns true when this list policies o k response has a 4xx status code
func (*ListPoliciesOK) IsCode ¶
func (o *ListPoliciesOK) IsCode(code int) bool
IsCode returns true when this list policies o k response a status code equal to that given
func (*ListPoliciesOK) IsRedirect ¶
func (o *ListPoliciesOK) IsRedirect() bool
IsRedirect returns true when this list policies o k response has a 3xx status code
func (*ListPoliciesOK) IsServerError ¶
func (o *ListPoliciesOK) IsServerError() bool
IsServerError returns true when this list policies o k response has a 5xx status code
func (*ListPoliciesOK) IsSuccess ¶
func (o *ListPoliciesOK) IsSuccess() bool
IsSuccess returns true when this list policies o k response has a 2xx status code
func (*ListPoliciesOK) String ¶
func (o *ListPoliciesOK) String() string
type ListPoliciesParams ¶
type ListPoliciesParams struct {
/* AppIds.
A filter used to fetch policies only for the specified Agentic Services
*/
AppIds []string
/* Page.
The current page of the pagination
Format: int32
*/
Page *int32
/* Query.
The search query
*/
Query *string
/* RulesForAppIds.
A filter used to fetch policies where the rules applies for the specified Agentic Services
*/
RulesForAppIds []string
/* Size.
The page size of the pagination
Format: int32
*/
Size *int32
Context context.Context
HTTPClient *http.Client
// contains filtered or unexported fields
}
ListPoliciesParams contains all the parameters to send to the API endpoint
for the list policies operation. Typically these are written to a http.Request.
func NewListPoliciesParams ¶
func NewListPoliciesParams() *ListPoliciesParams
NewListPoliciesParams creates a new ListPoliciesParams 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 NewListPoliciesParamsWithContext ¶
func NewListPoliciesParamsWithContext(ctx context.Context) *ListPoliciesParams
NewListPoliciesParamsWithContext creates a new ListPoliciesParams object with the ability to set a context for a request.
func NewListPoliciesParamsWithHTTPClient ¶
func NewListPoliciesParamsWithHTTPClient(client *http.Client) *ListPoliciesParams
NewListPoliciesParamsWithHTTPClient creates a new ListPoliciesParams object with the ability to set a custom HTTPClient for a request.
func NewListPoliciesParamsWithTimeout ¶
func NewListPoliciesParamsWithTimeout(timeout time.Duration) *ListPoliciesParams
NewListPoliciesParamsWithTimeout creates a new ListPoliciesParams object with the ability to set a timeout on a request.
func (*ListPoliciesParams) SetAppIds ¶
func (o *ListPoliciesParams) SetAppIds(appIds []string)
SetAppIds adds the appIds to the list policies params
func (*ListPoliciesParams) SetContext ¶
func (o *ListPoliciesParams) SetContext(ctx context.Context)
SetContext adds the context to the list policies params
func (*ListPoliciesParams) SetDefaults ¶
func (o *ListPoliciesParams) SetDefaults()
SetDefaults hydrates default values in the list policies params (not the query body).
All values with no default are reset to their zero value.
func (*ListPoliciesParams) SetHTTPClient ¶
func (o *ListPoliciesParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the list policies params
func (*ListPoliciesParams) SetPage ¶
func (o *ListPoliciesParams) SetPage(page *int32)
SetPage adds the page to the list policies params
func (*ListPoliciesParams) SetQuery ¶
func (o *ListPoliciesParams) SetQuery(query *string)
SetQuery adds the query to the list policies params
func (*ListPoliciesParams) SetRulesForAppIds ¶
func (o *ListPoliciesParams) SetRulesForAppIds(rulesForAppIds []string)
SetRulesForAppIds adds the rulesForAppIds to the list policies params
func (*ListPoliciesParams) SetSize ¶
func (o *ListPoliciesParams) SetSize(size *int32)
SetSize adds the size to the list policies params
func (*ListPoliciesParams) SetTimeout ¶
func (o *ListPoliciesParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the list policies params
func (*ListPoliciesParams) WithAppIds ¶
func (o *ListPoliciesParams) WithAppIds(appIds []string) *ListPoliciesParams
WithAppIds adds the appIds to the list policies params
func (*ListPoliciesParams) WithContext ¶
func (o *ListPoliciesParams) WithContext(ctx context.Context) *ListPoliciesParams
WithContext adds the context to the list policies params
func (*ListPoliciesParams) WithDefaults ¶
func (o *ListPoliciesParams) WithDefaults() *ListPoliciesParams
WithDefaults hydrates default values in the list policies params (not the query body).
All values with no default are reset to their zero value.
func (*ListPoliciesParams) WithHTTPClient ¶
func (o *ListPoliciesParams) WithHTTPClient(client *http.Client) *ListPoliciesParams
WithHTTPClient adds the HTTPClient to the list policies params
func (*ListPoliciesParams) WithPage ¶
func (o *ListPoliciesParams) WithPage(page *int32) *ListPoliciesParams
WithPage adds the page to the list policies params
func (*ListPoliciesParams) WithQuery ¶
func (o *ListPoliciesParams) WithQuery(query *string) *ListPoliciesParams
WithQuery adds the query to the list policies params
func (*ListPoliciesParams) WithRulesForAppIds ¶
func (o *ListPoliciesParams) WithRulesForAppIds(rulesForAppIds []string) *ListPoliciesParams
WithRulesForAppIds adds the rulesForAppIds to the list policies params
func (*ListPoliciesParams) WithSize ¶
func (o *ListPoliciesParams) WithSize(size *int32) *ListPoliciesParams
WithSize adds the size to the list policies params
func (*ListPoliciesParams) WithTimeout ¶
func (o *ListPoliciesParams) WithTimeout(timeout time.Duration) *ListPoliciesParams
WithTimeout adds the timeout to the list policies params
func (*ListPoliciesParams) WriteToRequest ¶
func (o *ListPoliciesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type ListPoliciesReader ¶
type ListPoliciesReader struct {
// contains filtered or unexported fields
}
ListPoliciesReader is a Reader for the ListPolicies structure.
func (*ListPoliciesReader) ReadResponse ¶
func (o *ListPoliciesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (any, error)
ReadResponse reads a server response into the received o.
type ListRulesDefault ¶
type ListRulesDefault struct {
Payload *models.RPCStatus
// contains filtered or unexported fields
}
ListRulesDefault describes a response with status code -1, with default header values.
An unexpected error response.
func NewListRulesDefault ¶
func NewListRulesDefault(code int) *ListRulesDefault
NewListRulesDefault creates a ListRulesDefault with default headers values
func (*ListRulesDefault) Code ¶
func (o *ListRulesDefault) Code() int
Code gets the status code for the list rules default response
func (*ListRulesDefault) Error ¶
func (o *ListRulesDefault) Error() string
func (*ListRulesDefault) GetPayload ¶
func (o *ListRulesDefault) GetPayload() *models.RPCStatus
func (*ListRulesDefault) IsClientError ¶
func (o *ListRulesDefault) IsClientError() bool
IsClientError returns true when this list rules default response has a 4xx status code
func (*ListRulesDefault) IsCode ¶
func (o *ListRulesDefault) IsCode(code int) bool
IsCode returns true when this list rules default response a status code equal to that given
func (*ListRulesDefault) IsRedirect ¶
func (o *ListRulesDefault) IsRedirect() bool
IsRedirect returns true when this list rules default response has a 3xx status code
func (*ListRulesDefault) IsServerError ¶
func (o *ListRulesDefault) IsServerError() bool
IsServerError returns true when this list rules default response has a 5xx status code
func (*ListRulesDefault) IsSuccess ¶
func (o *ListRulesDefault) IsSuccess() bool
IsSuccess returns true when this list rules default response has a 2xx status code
func (*ListRulesDefault) String ¶
func (o *ListRulesDefault) String() string
type ListRulesOK ¶
type ListRulesOK struct {
Payload *models.V1alpha1ListRulesResponse
}
ListRulesOK describes a response with status code 200, with default header values.
A successful response.
func NewListRulesOK ¶
func NewListRulesOK() *ListRulesOK
NewListRulesOK creates a ListRulesOK with default headers values
func (*ListRulesOK) Code ¶
func (o *ListRulesOK) Code() int
Code gets the status code for the list rules o k response
func (*ListRulesOK) Error ¶
func (o *ListRulesOK) Error() string
func (*ListRulesOK) GetPayload ¶
func (o *ListRulesOK) GetPayload() *models.V1alpha1ListRulesResponse
func (*ListRulesOK) IsClientError ¶
func (o *ListRulesOK) IsClientError() bool
IsClientError returns true when this list rules o k response has a 4xx status code
func (*ListRulesOK) IsCode ¶
func (o *ListRulesOK) IsCode(code int) bool
IsCode returns true when this list rules o k response a status code equal to that given
func (*ListRulesOK) IsRedirect ¶
func (o *ListRulesOK) IsRedirect() bool
IsRedirect returns true when this list rules o k response has a 3xx status code
func (*ListRulesOK) IsServerError ¶
func (o *ListRulesOK) IsServerError() bool
IsServerError returns true when this list rules o k response has a 5xx status code
func (*ListRulesOK) IsSuccess ¶
func (o *ListRulesOK) IsSuccess() bool
IsSuccess returns true when this list rules o k response has a 2xx status code
func (*ListRulesOK) String ¶
func (o *ListRulesOK) String() string
type ListRulesParams ¶
type ListRulesParams struct {
/* Page.
The current page of the pagination
Format: int32
*/
Page *int32
/* PolicyID.
The Policy Id to which these Rules belong.
*/
PolicyID string
/* Query.
The search query
*/
Query *string
/* Size.
The page size of the pagination
Format: int32
*/
Size *int32
Context context.Context
HTTPClient *http.Client
// contains filtered or unexported fields
}
ListRulesParams contains all the parameters to send to the API endpoint
for the list rules operation. Typically these are written to a http.Request.
func NewListRulesParams ¶
func NewListRulesParams() *ListRulesParams
NewListRulesParams creates a new ListRulesParams 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 NewListRulesParamsWithContext ¶
func NewListRulesParamsWithContext(ctx context.Context) *ListRulesParams
NewListRulesParamsWithContext creates a new ListRulesParams object with the ability to set a context for a request.
func NewListRulesParamsWithHTTPClient ¶
func NewListRulesParamsWithHTTPClient(client *http.Client) *ListRulesParams
NewListRulesParamsWithHTTPClient creates a new ListRulesParams object with the ability to set a custom HTTPClient for a request.
func NewListRulesParamsWithTimeout ¶
func NewListRulesParamsWithTimeout(timeout time.Duration) *ListRulesParams
NewListRulesParamsWithTimeout creates a new ListRulesParams object with the ability to set a timeout on a request.
func (*ListRulesParams) SetContext ¶
func (o *ListRulesParams) SetContext(ctx context.Context)
SetContext adds the context to the list rules params
func (*ListRulesParams) SetDefaults ¶
func (o *ListRulesParams) SetDefaults()
SetDefaults hydrates default values in the list rules params (not the query body).
All values with no default are reset to their zero value.
func (*ListRulesParams) SetHTTPClient ¶
func (o *ListRulesParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the list rules params
func (*ListRulesParams) SetPage ¶
func (o *ListRulesParams) SetPage(page *int32)
SetPage adds the page to the list rules params
func (*ListRulesParams) SetPolicyID ¶
func (o *ListRulesParams) SetPolicyID(policyID string)
SetPolicyID adds the policyId to the list rules params
func (*ListRulesParams) SetQuery ¶
func (o *ListRulesParams) SetQuery(query *string)
SetQuery adds the query to the list rules params
func (*ListRulesParams) SetSize ¶
func (o *ListRulesParams) SetSize(size *int32)
SetSize adds the size to the list rules params
func (*ListRulesParams) SetTimeout ¶
func (o *ListRulesParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the list rules params
func (*ListRulesParams) WithContext ¶
func (o *ListRulesParams) WithContext(ctx context.Context) *ListRulesParams
WithContext adds the context to the list rules params
func (*ListRulesParams) WithDefaults ¶
func (o *ListRulesParams) WithDefaults() *ListRulesParams
WithDefaults hydrates default values in the list rules params (not the query body).
All values with no default are reset to their zero value.
func (*ListRulesParams) WithHTTPClient ¶
func (o *ListRulesParams) WithHTTPClient(client *http.Client) *ListRulesParams
WithHTTPClient adds the HTTPClient to the list rules params
func (*ListRulesParams) WithPage ¶
func (o *ListRulesParams) WithPage(page *int32) *ListRulesParams
WithPage adds the page to the list rules params
func (*ListRulesParams) WithPolicyID ¶
func (o *ListRulesParams) WithPolicyID(policyID string) *ListRulesParams
WithPolicyID adds the policyID to the list rules params
func (*ListRulesParams) WithQuery ¶
func (o *ListRulesParams) WithQuery(query *string) *ListRulesParams
WithQuery adds the query to the list rules params
func (*ListRulesParams) WithSize ¶
func (o *ListRulesParams) WithSize(size *int32) *ListRulesParams
WithSize adds the size to the list rules params
func (*ListRulesParams) WithTimeout ¶
func (o *ListRulesParams) WithTimeout(timeout time.Duration) *ListRulesParams
WithTimeout adds the timeout to the list rules params
func (*ListRulesParams) WriteToRequest ¶
func (o *ListRulesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type ListRulesReader ¶
type ListRulesReader struct {
// contains filtered or unexported fields
}
ListRulesReader is a Reader for the ListRules structure.
func (*ListRulesReader) ReadResponse ¶
func (o *ListRulesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (any, error)
ReadResponse reads a server response into the received o.
type UpdatePolicyDefault ¶
type UpdatePolicyDefault struct {
Payload *models.RPCStatus
// contains filtered or unexported fields
}
UpdatePolicyDefault describes a response with status code -1, with default header values.
An unexpected error response.
func NewUpdatePolicyDefault ¶
func NewUpdatePolicyDefault(code int) *UpdatePolicyDefault
NewUpdatePolicyDefault creates a UpdatePolicyDefault with default headers values
func (*UpdatePolicyDefault) Code ¶
func (o *UpdatePolicyDefault) Code() int
Code gets the status code for the update policy default response
func (*UpdatePolicyDefault) Error ¶
func (o *UpdatePolicyDefault) Error() string
func (*UpdatePolicyDefault) GetPayload ¶
func (o *UpdatePolicyDefault) GetPayload() *models.RPCStatus
func (*UpdatePolicyDefault) IsClientError ¶
func (o *UpdatePolicyDefault) IsClientError() bool
IsClientError returns true when this update policy default response has a 4xx status code
func (*UpdatePolicyDefault) IsCode ¶
func (o *UpdatePolicyDefault) IsCode(code int) bool
IsCode returns true when this update policy default response a status code equal to that given
func (*UpdatePolicyDefault) IsRedirect ¶
func (o *UpdatePolicyDefault) IsRedirect() bool
IsRedirect returns true when this update policy default response has a 3xx status code
func (*UpdatePolicyDefault) IsServerError ¶
func (o *UpdatePolicyDefault) IsServerError() bool
IsServerError returns true when this update policy default response has a 5xx status code
func (*UpdatePolicyDefault) IsSuccess ¶
func (o *UpdatePolicyDefault) IsSuccess() bool
IsSuccess returns true when this update policy default response has a 2xx status code
func (*UpdatePolicyDefault) String ¶
func (o *UpdatePolicyDefault) String() string
type UpdatePolicyOK ¶
type UpdatePolicyOK struct {
Payload *models.V1alpha1Policy
}
UpdatePolicyOK describes a response with status code 200, with default header values.
A successful response.
func NewUpdatePolicyOK ¶
func NewUpdatePolicyOK() *UpdatePolicyOK
NewUpdatePolicyOK creates a UpdatePolicyOK with default headers values
func (*UpdatePolicyOK) Code ¶
func (o *UpdatePolicyOK) Code() int
Code gets the status code for the update policy o k response
func (*UpdatePolicyOK) Error ¶
func (o *UpdatePolicyOK) Error() string
func (*UpdatePolicyOK) GetPayload ¶
func (o *UpdatePolicyOK) GetPayload() *models.V1alpha1Policy
func (*UpdatePolicyOK) IsClientError ¶
func (o *UpdatePolicyOK) IsClientError() bool
IsClientError returns true when this update policy o k response has a 4xx status code
func (*UpdatePolicyOK) IsCode ¶
func (o *UpdatePolicyOK) IsCode(code int) bool
IsCode returns true when this update policy o k response a status code equal to that given
func (*UpdatePolicyOK) IsRedirect ¶
func (o *UpdatePolicyOK) IsRedirect() bool
IsRedirect returns true when this update policy o k response has a 3xx status code
func (*UpdatePolicyOK) IsServerError ¶
func (o *UpdatePolicyOK) IsServerError() bool
IsServerError returns true when this update policy o k response has a 5xx status code
func (*UpdatePolicyOK) IsSuccess ¶
func (o *UpdatePolicyOK) IsSuccess() bool
IsSuccess returns true when this update policy o k response has a 2xx status code
func (*UpdatePolicyOK) String ¶
func (o *UpdatePolicyOK) String() string
type UpdatePolicyParams ¶
type UpdatePolicyParams struct {
// Body.
Body *models.PolicyServiceUpdatePolicyBody
/* PolicyID.
Policy Id to update.
*/
PolicyID string
Context context.Context
HTTPClient *http.Client
// contains filtered or unexported fields
}
UpdatePolicyParams contains all the parameters to send to the API endpoint
for the update policy operation. Typically these are written to a http.Request.
func NewUpdatePolicyParams ¶
func NewUpdatePolicyParams() *UpdatePolicyParams
NewUpdatePolicyParams creates a new UpdatePolicyParams 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 NewUpdatePolicyParamsWithContext ¶
func NewUpdatePolicyParamsWithContext(ctx context.Context) *UpdatePolicyParams
NewUpdatePolicyParamsWithContext creates a new UpdatePolicyParams object with the ability to set a context for a request.
func NewUpdatePolicyParamsWithHTTPClient ¶
func NewUpdatePolicyParamsWithHTTPClient(client *http.Client) *UpdatePolicyParams
NewUpdatePolicyParamsWithHTTPClient creates a new UpdatePolicyParams object with the ability to set a custom HTTPClient for a request.
func NewUpdatePolicyParamsWithTimeout ¶
func NewUpdatePolicyParamsWithTimeout(timeout time.Duration) *UpdatePolicyParams
NewUpdatePolicyParamsWithTimeout creates a new UpdatePolicyParams object with the ability to set a timeout on a request.
func (*UpdatePolicyParams) SetBody ¶
func (o *UpdatePolicyParams) SetBody(body *models.PolicyServiceUpdatePolicyBody)
SetBody adds the body to the update policy params
func (*UpdatePolicyParams) SetContext ¶
func (o *UpdatePolicyParams) SetContext(ctx context.Context)
SetContext adds the context to the update policy params
func (*UpdatePolicyParams) SetDefaults ¶
func (o *UpdatePolicyParams) SetDefaults()
SetDefaults hydrates default values in the update policy params (not the query body).
All values with no default are reset to their zero value.
func (*UpdatePolicyParams) SetHTTPClient ¶
func (o *UpdatePolicyParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the update policy params
func (*UpdatePolicyParams) SetPolicyID ¶
func (o *UpdatePolicyParams) SetPolicyID(policyID string)
SetPolicyID adds the policyId to the update policy params
func (*UpdatePolicyParams) SetTimeout ¶
func (o *UpdatePolicyParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the update policy params
func (*UpdatePolicyParams) WithBody ¶
func (o *UpdatePolicyParams) WithBody(body *models.PolicyServiceUpdatePolicyBody) *UpdatePolicyParams
WithBody adds the body to the update policy params
func (*UpdatePolicyParams) WithContext ¶
func (o *UpdatePolicyParams) WithContext(ctx context.Context) *UpdatePolicyParams
WithContext adds the context to the update policy params
func (*UpdatePolicyParams) WithDefaults ¶
func (o *UpdatePolicyParams) WithDefaults() *UpdatePolicyParams
WithDefaults hydrates default values in the update policy params (not the query body).
All values with no default are reset to their zero value.
func (*UpdatePolicyParams) WithHTTPClient ¶
func (o *UpdatePolicyParams) WithHTTPClient(client *http.Client) *UpdatePolicyParams
WithHTTPClient adds the HTTPClient to the update policy params
func (*UpdatePolicyParams) WithPolicyID ¶
func (o *UpdatePolicyParams) WithPolicyID(policyID string) *UpdatePolicyParams
WithPolicyID adds the policyID to the update policy params
func (*UpdatePolicyParams) WithTimeout ¶
func (o *UpdatePolicyParams) WithTimeout(timeout time.Duration) *UpdatePolicyParams
WithTimeout adds the timeout to the update policy params
func (*UpdatePolicyParams) WriteToRequest ¶
func (o *UpdatePolicyParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type UpdatePolicyReader ¶
type UpdatePolicyReader struct {
// contains filtered or unexported fields
}
UpdatePolicyReader is a Reader for the UpdatePolicy structure.
func (*UpdatePolicyReader) ReadResponse ¶
func (o *UpdatePolicyReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (any, error)
ReadResponse reads a server response into the received o.
type UpdateRuleDefault ¶
type UpdateRuleDefault struct {
Payload *models.RPCStatus
// contains filtered or unexported fields
}
UpdateRuleDefault describes a response with status code -1, with default header values.
An unexpected error response.
func NewUpdateRuleDefault ¶
func NewUpdateRuleDefault(code int) *UpdateRuleDefault
NewUpdateRuleDefault creates a UpdateRuleDefault with default headers values
func (*UpdateRuleDefault) Code ¶
func (o *UpdateRuleDefault) Code() int
Code gets the status code for the update rule default response
func (*UpdateRuleDefault) Error ¶
func (o *UpdateRuleDefault) Error() string
func (*UpdateRuleDefault) GetPayload ¶
func (o *UpdateRuleDefault) GetPayload() *models.RPCStatus
func (*UpdateRuleDefault) IsClientError ¶
func (o *UpdateRuleDefault) IsClientError() bool
IsClientError returns true when this update rule default response has a 4xx status code
func (*UpdateRuleDefault) IsCode ¶
func (o *UpdateRuleDefault) IsCode(code int) bool
IsCode returns true when this update rule default response a status code equal to that given
func (*UpdateRuleDefault) IsRedirect ¶
func (o *UpdateRuleDefault) IsRedirect() bool
IsRedirect returns true when this update rule default response has a 3xx status code
func (*UpdateRuleDefault) IsServerError ¶
func (o *UpdateRuleDefault) IsServerError() bool
IsServerError returns true when this update rule default response has a 5xx status code
func (*UpdateRuleDefault) IsSuccess ¶
func (o *UpdateRuleDefault) IsSuccess() bool
IsSuccess returns true when this update rule default response has a 2xx status code
func (*UpdateRuleDefault) String ¶
func (o *UpdateRuleDefault) String() string
type UpdateRuleOK ¶
type UpdateRuleOK struct {
Payload *models.V1alpha1Rule
}
UpdateRuleOK describes a response with status code 200, with default header values.
A successful response.
func NewUpdateRuleOK ¶
func NewUpdateRuleOK() *UpdateRuleOK
NewUpdateRuleOK creates a UpdateRuleOK with default headers values
func (*UpdateRuleOK) Code ¶
func (o *UpdateRuleOK) Code() int
Code gets the status code for the update rule o k response
func (*UpdateRuleOK) Error ¶
func (o *UpdateRuleOK) Error() string
func (*UpdateRuleOK) GetPayload ¶
func (o *UpdateRuleOK) GetPayload() *models.V1alpha1Rule
func (*UpdateRuleOK) IsClientError ¶
func (o *UpdateRuleOK) IsClientError() bool
IsClientError returns true when this update rule o k response has a 4xx status code
func (*UpdateRuleOK) IsCode ¶
func (o *UpdateRuleOK) IsCode(code int) bool
IsCode returns true when this update rule o k response a status code equal to that given
func (*UpdateRuleOK) IsRedirect ¶
func (o *UpdateRuleOK) IsRedirect() bool
IsRedirect returns true when this update rule o k response has a 3xx status code
func (*UpdateRuleOK) IsServerError ¶
func (o *UpdateRuleOK) IsServerError() bool
IsServerError returns true when this update rule o k response has a 5xx status code
func (*UpdateRuleOK) IsSuccess ¶
func (o *UpdateRuleOK) IsSuccess() bool
IsSuccess returns true when this update rule o k response has a 2xx status code
func (*UpdateRuleOK) String ¶
func (o *UpdateRuleOK) String() string
type UpdateRuleParams ¶
type UpdateRuleParams struct {
// Body.
Body *models.PolicyServiceUpdateRuleBody
/* PolicyID.
The Policy Id to which these Rules belong.
*/
PolicyID string
/* RuleID.
Rule Id to update.
*/
RuleID string
Context context.Context
HTTPClient *http.Client
// contains filtered or unexported fields
}
UpdateRuleParams contains all the parameters to send to the API endpoint
for the update rule operation. Typically these are written to a http.Request.
func NewUpdateRuleParams ¶
func NewUpdateRuleParams() *UpdateRuleParams
NewUpdateRuleParams creates a new UpdateRuleParams 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 NewUpdateRuleParamsWithContext ¶
func NewUpdateRuleParamsWithContext(ctx context.Context) *UpdateRuleParams
NewUpdateRuleParamsWithContext creates a new UpdateRuleParams object with the ability to set a context for a request.
func NewUpdateRuleParamsWithHTTPClient ¶
func NewUpdateRuleParamsWithHTTPClient(client *http.Client) *UpdateRuleParams
NewUpdateRuleParamsWithHTTPClient creates a new UpdateRuleParams object with the ability to set a custom HTTPClient for a request.
func NewUpdateRuleParamsWithTimeout ¶
func NewUpdateRuleParamsWithTimeout(timeout time.Duration) *UpdateRuleParams
NewUpdateRuleParamsWithTimeout creates a new UpdateRuleParams object with the ability to set a timeout on a request.
func (*UpdateRuleParams) SetBody ¶
func (o *UpdateRuleParams) SetBody(body *models.PolicyServiceUpdateRuleBody)
SetBody adds the body to the update rule params
func (*UpdateRuleParams) SetContext ¶
func (o *UpdateRuleParams) SetContext(ctx context.Context)
SetContext adds the context to the update rule params
func (*UpdateRuleParams) SetDefaults ¶
func (o *UpdateRuleParams) SetDefaults()
SetDefaults hydrates default values in the update rule params (not the query body).
All values with no default are reset to their zero value.
func (*UpdateRuleParams) SetHTTPClient ¶
func (o *UpdateRuleParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the update rule params
func (*UpdateRuleParams) SetPolicyID ¶
func (o *UpdateRuleParams) SetPolicyID(policyID string)
SetPolicyID adds the policyId to the update rule params
func (*UpdateRuleParams) SetRuleID ¶
func (o *UpdateRuleParams) SetRuleID(ruleID string)
SetRuleID adds the ruleId to the update rule params
func (*UpdateRuleParams) SetTimeout ¶
func (o *UpdateRuleParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the update rule params
func (*UpdateRuleParams) WithBody ¶
func (o *UpdateRuleParams) WithBody(body *models.PolicyServiceUpdateRuleBody) *UpdateRuleParams
WithBody adds the body to the update rule params
func (*UpdateRuleParams) WithContext ¶
func (o *UpdateRuleParams) WithContext(ctx context.Context) *UpdateRuleParams
WithContext adds the context to the update rule params
func (*UpdateRuleParams) WithDefaults ¶
func (o *UpdateRuleParams) WithDefaults() *UpdateRuleParams
WithDefaults hydrates default values in the update rule params (not the query body).
All values with no default are reset to their zero value.
func (*UpdateRuleParams) WithHTTPClient ¶
func (o *UpdateRuleParams) WithHTTPClient(client *http.Client) *UpdateRuleParams
WithHTTPClient adds the HTTPClient to the update rule params
func (*UpdateRuleParams) WithPolicyID ¶
func (o *UpdateRuleParams) WithPolicyID(policyID string) *UpdateRuleParams
WithPolicyID adds the policyID to the update rule params
func (*UpdateRuleParams) WithRuleID ¶
func (o *UpdateRuleParams) WithRuleID(ruleID string) *UpdateRuleParams
WithRuleID adds the ruleID to the update rule params
func (*UpdateRuleParams) WithTimeout ¶
func (o *UpdateRuleParams) WithTimeout(timeout time.Duration) *UpdateRuleParams
WithTimeout adds the timeout to the update rule params
func (*UpdateRuleParams) WriteToRequest ¶
func (o *UpdateRuleParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type UpdateRuleReader ¶
type UpdateRuleReader struct {
// contains filtered or unexported fields
}
UpdateRuleReader is a Reader for the UpdateRule structure.
func (*UpdateRuleReader) ReadResponse ¶
func (o *UpdateRuleReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (any, error)
ReadResponse reads a server response into the received o.
Source Files
¶
- create_policy_parameters.go
- create_policy_responses.go
- create_rule_parameters.go
- create_rule_responses.go
- delete_policy_parameters.go
- delete_policy_responses.go
- delete_rule_parameters.go
- delete_rule_responses.go
- get_policies_count_parameters.go
- get_policies_count_responses.go
- get_policy_parameters.go
- get_policy_responses.go
- get_rule_parameters.go
- get_rule_responses.go
- list_policies_parameters.go
- list_policies_responses.go
- list_rules_parameters.go
- list_rules_responses.go
- policy_client.go
- update_policy_parameters.go
- update_policy_responses.go
- update_rule_parameters.go
- update_rule_responses.go