Documentation ¶
Index ¶
- type Client
- func (a *Client) CreatePolicy(params *CreatePolicyParams, authInfo runtime.ClientAuthInfoWriter, ...) (*CreatePolicyCreated, error)
- func (a *Client) DeletePolicy(params *DeletePolicyParams, authInfo runtime.ClientAuthInfoWriter, ...) (*DeletePolicyNoContent, error)
- func (a *Client) GetPolicy(params *GetPolicyParams, authInfo runtime.ClientAuthInfoWriter, ...) (*GetPolicyOK, error)
- func (a *Client) ListPolicies(params *ListPoliciesParams, authInfo runtime.ClientAuthInfoWriter, ...) (*ListPoliciesOK, error)
- func (a *Client) ListPolicyExecutionPoints(params *ListPolicyExecutionPointsParams, authInfo runtime.ClientAuthInfoWriter, ...) (*ListPolicyExecutionPointsOK, error)
- func (a *Client) SetPolicyExecutionPoints(params *SetPolicyExecutionPointsParams, authInfo runtime.ClientAuthInfoWriter, ...) (*SetPolicyExecutionPointsOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- func (a *Client) TestPolicy(params *TestPolicyParams, authInfo runtime.ClientAuthInfoWriter, ...) (*TestPolicyOK, error)
- func (a *Client) UpdatePolicy(params *UpdatePolicyParams, authInfo runtime.ClientAuthInfoWriter, ...) (*UpdatePolicyCreated, error)
- type ClientOption
- type ClientService
- type CreatePolicyBadRequest
- func (o *CreatePolicyBadRequest) Code() int
- func (o *CreatePolicyBadRequest) Error() string
- func (o *CreatePolicyBadRequest) GetPayload() *models.Error
- func (o *CreatePolicyBadRequest) IsClientError() bool
- func (o *CreatePolicyBadRequest) IsCode(code int) bool
- func (o *CreatePolicyBadRequest) IsRedirect() bool
- func (o *CreatePolicyBadRequest) IsServerError() bool
- func (o *CreatePolicyBadRequest) IsSuccess() bool
- func (o *CreatePolicyBadRequest) String() string
- type CreatePolicyConflict
- func (o *CreatePolicyConflict) Code() int
- func (o *CreatePolicyConflict) Error() string
- func (o *CreatePolicyConflict) GetPayload() *models.Error
- func (o *CreatePolicyConflict) IsClientError() bool
- func (o *CreatePolicyConflict) IsCode(code int) bool
- func (o *CreatePolicyConflict) IsRedirect() bool
- func (o *CreatePolicyConflict) IsServerError() bool
- func (o *CreatePolicyConflict) IsSuccess() bool
- func (o *CreatePolicyConflict) String() string
- type CreatePolicyCreated
- func (o *CreatePolicyCreated) Code() int
- func (o *CreatePolicyCreated) Error() string
- func (o *CreatePolicyCreated) GetPayload() *models.Policy
- func (o *CreatePolicyCreated) IsClientError() bool
- func (o *CreatePolicyCreated) IsCode(code int) bool
- func (o *CreatePolicyCreated) IsRedirect() bool
- func (o *CreatePolicyCreated) IsServerError() bool
- func (o *CreatePolicyCreated) IsSuccess() bool
- func (o *CreatePolicyCreated) String() string
- type CreatePolicyForbidden
- func (o *CreatePolicyForbidden) Code() int
- func (o *CreatePolicyForbidden) Error() string
- func (o *CreatePolicyForbidden) GetPayload() *models.Error
- func (o *CreatePolicyForbidden) IsClientError() bool
- func (o *CreatePolicyForbidden) IsCode(code int) bool
- func (o *CreatePolicyForbidden) IsRedirect() bool
- func (o *CreatePolicyForbidden) IsServerError() bool
- func (o *CreatePolicyForbidden) IsSuccess() bool
- func (o *CreatePolicyForbidden) String() string
- type CreatePolicyNotFound
- func (o *CreatePolicyNotFound) Code() int
- func (o *CreatePolicyNotFound) Error() string
- func (o *CreatePolicyNotFound) GetPayload() *models.Error
- func (o *CreatePolicyNotFound) IsClientError() bool
- func (o *CreatePolicyNotFound) IsCode(code int) bool
- func (o *CreatePolicyNotFound) IsRedirect() bool
- func (o *CreatePolicyNotFound) IsServerError() bool
- func (o *CreatePolicyNotFound) IsSuccess() bool
- func (o *CreatePolicyNotFound) String() string
- type CreatePolicyParams
- func (o *CreatePolicyParams) SetContext(ctx context.Context)
- func (o *CreatePolicyParams) SetDefaults()
- func (o *CreatePolicyParams) SetHTTPClient(client *http.Client)
- func (o *CreatePolicyParams) SetIfMatch(ifMatch *string)
- func (o *CreatePolicyParams) SetPolicy(policy *models.Policy)
- func (o *CreatePolicyParams) SetTimeout(timeout time.Duration)
- func (o *CreatePolicyParams) WithContext(ctx context.Context) *CreatePolicyParams
- func (o *CreatePolicyParams) WithDefaults() *CreatePolicyParams
- func (o *CreatePolicyParams) WithHTTPClient(client *http.Client) *CreatePolicyParams
- func (o *CreatePolicyParams) WithIfMatch(ifMatch *string) *CreatePolicyParams
- func (o *CreatePolicyParams) WithPolicy(policy *models.Policy) *CreatePolicyParams
- func (o *CreatePolicyParams) WithTimeout(timeout time.Duration) *CreatePolicyParams
- func (o *CreatePolicyParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CreatePolicyReader
- type CreatePolicyTooManyRequests
- func (o *CreatePolicyTooManyRequests) Code() int
- func (o *CreatePolicyTooManyRequests) Error() string
- func (o *CreatePolicyTooManyRequests) GetPayload() *models.Error
- func (o *CreatePolicyTooManyRequests) IsClientError() bool
- func (o *CreatePolicyTooManyRequests) IsCode(code int) bool
- func (o *CreatePolicyTooManyRequests) IsRedirect() bool
- func (o *CreatePolicyTooManyRequests) IsServerError() bool
- func (o *CreatePolicyTooManyRequests) IsSuccess() bool
- func (o *CreatePolicyTooManyRequests) String() string
- type CreatePolicyUnauthorized
- func (o *CreatePolicyUnauthorized) Code() int
- func (o *CreatePolicyUnauthorized) Error() string
- func (o *CreatePolicyUnauthorized) GetPayload() *models.Error
- func (o *CreatePolicyUnauthorized) IsClientError() bool
- func (o *CreatePolicyUnauthorized) IsCode(code int) bool
- func (o *CreatePolicyUnauthorized) IsRedirect() bool
- func (o *CreatePolicyUnauthorized) IsServerError() bool
- func (o *CreatePolicyUnauthorized) IsSuccess() bool
- func (o *CreatePolicyUnauthorized) String() string
- type CreatePolicyUnprocessableEntity
- func (o *CreatePolicyUnprocessableEntity) Code() int
- func (o *CreatePolicyUnprocessableEntity) Error() string
- func (o *CreatePolicyUnprocessableEntity) GetPayload() *models.Error
- func (o *CreatePolicyUnprocessableEntity) IsClientError() bool
- func (o *CreatePolicyUnprocessableEntity) IsCode(code int) bool
- func (o *CreatePolicyUnprocessableEntity) IsRedirect() bool
- func (o *CreatePolicyUnprocessableEntity) IsServerError() bool
- func (o *CreatePolicyUnprocessableEntity) IsSuccess() bool
- func (o *CreatePolicyUnprocessableEntity) String() string
- type DeletePolicyBadRequest
- func (o *DeletePolicyBadRequest) Code() int
- func (o *DeletePolicyBadRequest) Error() string
- func (o *DeletePolicyBadRequest) GetPayload() *models.Error
- func (o *DeletePolicyBadRequest) IsClientError() bool
- func (o *DeletePolicyBadRequest) IsCode(code int) bool
- func (o *DeletePolicyBadRequest) IsRedirect() bool
- func (o *DeletePolicyBadRequest) IsServerError() bool
- func (o *DeletePolicyBadRequest) IsSuccess() bool
- func (o *DeletePolicyBadRequest) String() string
- type DeletePolicyForbidden
- func (o *DeletePolicyForbidden) Code() int
- func (o *DeletePolicyForbidden) Error() string
- func (o *DeletePolicyForbidden) GetPayload() *models.Error
- func (o *DeletePolicyForbidden) IsClientError() bool
- func (o *DeletePolicyForbidden) IsCode(code int) bool
- func (o *DeletePolicyForbidden) IsRedirect() bool
- func (o *DeletePolicyForbidden) IsServerError() bool
- func (o *DeletePolicyForbidden) IsSuccess() bool
- func (o *DeletePolicyForbidden) String() string
- type DeletePolicyNoContent
- func (o *DeletePolicyNoContent) Code() int
- func (o *DeletePolicyNoContent) Error() string
- func (o *DeletePolicyNoContent) IsClientError() bool
- func (o *DeletePolicyNoContent) IsCode(code int) bool
- func (o *DeletePolicyNoContent) IsRedirect() bool
- func (o *DeletePolicyNoContent) IsServerError() bool
- func (o *DeletePolicyNoContent) IsSuccess() bool
- func (o *DeletePolicyNoContent) String() string
- type DeletePolicyNotFound
- func (o *DeletePolicyNotFound) Code() int
- func (o *DeletePolicyNotFound) Error() string
- func (o *DeletePolicyNotFound) GetPayload() *models.Error
- func (o *DeletePolicyNotFound) IsClientError() bool
- func (o *DeletePolicyNotFound) IsCode(code int) bool
- func (o *DeletePolicyNotFound) IsRedirect() bool
- func (o *DeletePolicyNotFound) IsServerError() bool
- func (o *DeletePolicyNotFound) IsSuccess() bool
- func (o *DeletePolicyNotFound) 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) SetIfMatch(ifMatch *string)
- func (o *DeletePolicyParams) SetPid(pid 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) WithIfMatch(ifMatch *string) *DeletePolicyParams
- func (o *DeletePolicyParams) WithPid(pid string) *DeletePolicyParams
- func (o *DeletePolicyParams) WithTimeout(timeout time.Duration) *DeletePolicyParams
- func (o *DeletePolicyParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DeletePolicyReader
- type DeletePolicyTooManyRequests
- func (o *DeletePolicyTooManyRequests) Code() int
- func (o *DeletePolicyTooManyRequests) Error() string
- func (o *DeletePolicyTooManyRequests) GetPayload() *models.Error
- func (o *DeletePolicyTooManyRequests) IsClientError() bool
- func (o *DeletePolicyTooManyRequests) IsCode(code int) bool
- func (o *DeletePolicyTooManyRequests) IsRedirect() bool
- func (o *DeletePolicyTooManyRequests) IsServerError() bool
- func (o *DeletePolicyTooManyRequests) IsSuccess() bool
- func (o *DeletePolicyTooManyRequests) String() string
- type DeletePolicyUnauthorized
- func (o *DeletePolicyUnauthorized) Code() int
- func (o *DeletePolicyUnauthorized) Error() string
- func (o *DeletePolicyUnauthorized) GetPayload() *models.Error
- func (o *DeletePolicyUnauthorized) IsClientError() bool
- func (o *DeletePolicyUnauthorized) IsCode(code int) bool
- func (o *DeletePolicyUnauthorized) IsRedirect() bool
- func (o *DeletePolicyUnauthorized) IsServerError() bool
- func (o *DeletePolicyUnauthorized) IsSuccess() bool
- func (o *DeletePolicyUnauthorized) String() string
- type GetPolicyForbidden
- func (o *GetPolicyForbidden) Code() int
- func (o *GetPolicyForbidden) Error() string
- func (o *GetPolicyForbidden) GetPayload() *models.Error
- func (o *GetPolicyForbidden) IsClientError() bool
- func (o *GetPolicyForbidden) IsCode(code int) bool
- func (o *GetPolicyForbidden) IsRedirect() bool
- func (o *GetPolicyForbidden) IsServerError() bool
- func (o *GetPolicyForbidden) IsSuccess() bool
- func (o *GetPolicyForbidden) String() string
- type GetPolicyNotFound
- func (o *GetPolicyNotFound) Code() int
- func (o *GetPolicyNotFound) Error() string
- func (o *GetPolicyNotFound) GetPayload() *models.Error
- func (o *GetPolicyNotFound) IsClientError() bool
- func (o *GetPolicyNotFound) IsCode(code int) bool
- func (o *GetPolicyNotFound) IsRedirect() bool
- func (o *GetPolicyNotFound) IsServerError() bool
- func (o *GetPolicyNotFound) IsSuccess() bool
- func (o *GetPolicyNotFound) String() string
- type GetPolicyOK
- func (o *GetPolicyOK) Code() int
- func (o *GetPolicyOK) Error() string
- func (o *GetPolicyOK) GetPayload() *models.Policy
- 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) SetIfMatch(ifMatch *string)
- func (o *GetPolicyParams) SetPid(pid 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) WithIfMatch(ifMatch *string) *GetPolicyParams
- func (o *GetPolicyParams) WithPid(pid string) *GetPolicyParams
- func (o *GetPolicyParams) WithTimeout(timeout time.Duration) *GetPolicyParams
- func (o *GetPolicyParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetPolicyReader
- type GetPolicyTooManyRequests
- func (o *GetPolicyTooManyRequests) Code() int
- func (o *GetPolicyTooManyRequests) Error() string
- func (o *GetPolicyTooManyRequests) GetPayload() *models.Error
- func (o *GetPolicyTooManyRequests) IsClientError() bool
- func (o *GetPolicyTooManyRequests) IsCode(code int) bool
- func (o *GetPolicyTooManyRequests) IsRedirect() bool
- func (o *GetPolicyTooManyRequests) IsServerError() bool
- func (o *GetPolicyTooManyRequests) IsSuccess() bool
- func (o *GetPolicyTooManyRequests) String() string
- type GetPolicyUnauthorized
- func (o *GetPolicyUnauthorized) Code() int
- func (o *GetPolicyUnauthorized) Error() string
- func (o *GetPolicyUnauthorized) GetPayload() *models.Error
- func (o *GetPolicyUnauthorized) IsClientError() bool
- func (o *GetPolicyUnauthorized) IsCode(code int) bool
- func (o *GetPolicyUnauthorized) IsRedirect() bool
- func (o *GetPolicyUnauthorized) IsServerError() bool
- func (o *GetPolicyUnauthorized) IsSuccess() bool
- func (o *GetPolicyUnauthorized) String() string
- type ListPoliciesBadRequest
- func (o *ListPoliciesBadRequest) Code() int
- func (o *ListPoliciesBadRequest) Error() string
- func (o *ListPoliciesBadRequest) GetPayload() *models.Error
- func (o *ListPoliciesBadRequest) IsClientError() bool
- func (o *ListPoliciesBadRequest) IsCode(code int) bool
- func (o *ListPoliciesBadRequest) IsRedirect() bool
- func (o *ListPoliciesBadRequest) IsServerError() bool
- func (o *ListPoliciesBadRequest) IsSuccess() bool
- func (o *ListPoliciesBadRequest) String() string
- type ListPoliciesForbidden
- func (o *ListPoliciesForbidden) Code() int
- func (o *ListPoliciesForbidden) Error() string
- func (o *ListPoliciesForbidden) GetPayload() *models.Error
- func (o *ListPoliciesForbidden) IsClientError() bool
- func (o *ListPoliciesForbidden) IsCode(code int) bool
- func (o *ListPoliciesForbidden) IsRedirect() bool
- func (o *ListPoliciesForbidden) IsServerError() bool
- func (o *ListPoliciesForbidden) IsSuccess() bool
- func (o *ListPoliciesForbidden) String() string
- type ListPoliciesOK
- func (o *ListPoliciesOK) Code() int
- func (o *ListPoliciesOK) Error() string
- func (o *ListPoliciesOK) GetPayload() *models.Policies
- 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) SetAfterPolicyID(afterPolicyID *string)
- func (o *ListPoliciesParams) SetBeforePolicyID(beforePolicyID *string)
- func (o *ListPoliciesParams) SetContext(ctx context.Context)
- func (o *ListPoliciesParams) SetDefaults()
- func (o *ListPoliciesParams) SetHTTPClient(client *http.Client)
- func (o *ListPoliciesParams) SetIfMatch(ifMatch *string)
- func (o *ListPoliciesParams) SetLimit(limit *int64)
- func (o *ListPoliciesParams) SetOrder(order *string)
- func (o *ListPoliciesParams) SetPolicyTypes(policyTypes *string)
- func (o *ListPoliciesParams) SetSearchPhrase(searchPhrase *string)
- func (o *ListPoliciesParams) SetSort(sort *string)
- func (o *ListPoliciesParams) SetTimeout(timeout time.Duration)
- func (o *ListPoliciesParams) SetWid(wid string)
- func (o *ListPoliciesParams) WithAfterPolicyID(afterPolicyID *string) *ListPoliciesParams
- func (o *ListPoliciesParams) WithBeforePolicyID(beforePolicyID *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) WithIfMatch(ifMatch *string) *ListPoliciesParams
- func (o *ListPoliciesParams) WithLimit(limit *int64) *ListPoliciesParams
- func (o *ListPoliciesParams) WithOrder(order *string) *ListPoliciesParams
- func (o *ListPoliciesParams) WithPolicyTypes(policyTypes *string) *ListPoliciesParams
- func (o *ListPoliciesParams) WithSearchPhrase(searchPhrase *string) *ListPoliciesParams
- func (o *ListPoliciesParams) WithSort(sort *string) *ListPoliciesParams
- func (o *ListPoliciesParams) WithTimeout(timeout time.Duration) *ListPoliciesParams
- func (o *ListPoliciesParams) WithWid(wid string) *ListPoliciesParams
- func (o *ListPoliciesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ListPoliciesReader
- type ListPoliciesTooManyRequests
- func (o *ListPoliciesTooManyRequests) Code() int
- func (o *ListPoliciesTooManyRequests) Error() string
- func (o *ListPoliciesTooManyRequests) GetPayload() *models.Error
- func (o *ListPoliciesTooManyRequests) IsClientError() bool
- func (o *ListPoliciesTooManyRequests) IsCode(code int) bool
- func (o *ListPoliciesTooManyRequests) IsRedirect() bool
- func (o *ListPoliciesTooManyRequests) IsServerError() bool
- func (o *ListPoliciesTooManyRequests) IsSuccess() bool
- func (o *ListPoliciesTooManyRequests) String() string
- type ListPoliciesUnauthorized
- func (o *ListPoliciesUnauthorized) Code() int
- func (o *ListPoliciesUnauthorized) Error() string
- func (o *ListPoliciesUnauthorized) GetPayload() *models.Error
- func (o *ListPoliciesUnauthorized) IsClientError() bool
- func (o *ListPoliciesUnauthorized) IsCode(code int) bool
- func (o *ListPoliciesUnauthorized) IsRedirect() bool
- func (o *ListPoliciesUnauthorized) IsServerError() bool
- func (o *ListPoliciesUnauthorized) IsSuccess() bool
- func (o *ListPoliciesUnauthorized) String() string
- type ListPolicyExecutionPointsForbidden
- func (o *ListPolicyExecutionPointsForbidden) Code() int
- func (o *ListPolicyExecutionPointsForbidden) Error() string
- func (o *ListPolicyExecutionPointsForbidden) GetPayload() *models.Error
- func (o *ListPolicyExecutionPointsForbidden) IsClientError() bool
- func (o *ListPolicyExecutionPointsForbidden) IsCode(code int) bool
- func (o *ListPolicyExecutionPointsForbidden) IsRedirect() bool
- func (o *ListPolicyExecutionPointsForbidden) IsServerError() bool
- func (o *ListPolicyExecutionPointsForbidden) IsSuccess() bool
- func (o *ListPolicyExecutionPointsForbidden) String() string
- type ListPolicyExecutionPointsOK
- func (o *ListPolicyExecutionPointsOK) Code() int
- func (o *ListPolicyExecutionPointsOK) Error() string
- func (o *ListPolicyExecutionPointsOK) GetPayload() *models.PolicyExecutionPoints
- func (o *ListPolicyExecutionPointsOK) IsClientError() bool
- func (o *ListPolicyExecutionPointsOK) IsCode(code int) bool
- func (o *ListPolicyExecutionPointsOK) IsRedirect() bool
- func (o *ListPolicyExecutionPointsOK) IsServerError() bool
- func (o *ListPolicyExecutionPointsOK) IsSuccess() bool
- func (o *ListPolicyExecutionPointsOK) String() string
- type ListPolicyExecutionPointsParams
- func NewListPolicyExecutionPointsParams() *ListPolicyExecutionPointsParams
- func NewListPolicyExecutionPointsParamsWithContext(ctx context.Context) *ListPolicyExecutionPointsParams
- func NewListPolicyExecutionPointsParamsWithHTTPClient(client *http.Client) *ListPolicyExecutionPointsParams
- func NewListPolicyExecutionPointsParamsWithTimeout(timeout time.Duration) *ListPolicyExecutionPointsParams
- func (o *ListPolicyExecutionPointsParams) SetContext(ctx context.Context)
- func (o *ListPolicyExecutionPointsParams) SetDefaults()
- func (o *ListPolicyExecutionPointsParams) SetHTTPClient(client *http.Client)
- func (o *ListPolicyExecutionPointsParams) SetIfMatch(ifMatch *string)
- func (o *ListPolicyExecutionPointsParams) SetTimeout(timeout time.Duration)
- func (o *ListPolicyExecutionPointsParams) SetWid(wid string)
- func (o *ListPolicyExecutionPointsParams) WithContext(ctx context.Context) *ListPolicyExecutionPointsParams
- func (o *ListPolicyExecutionPointsParams) WithDefaults() *ListPolicyExecutionPointsParams
- func (o *ListPolicyExecutionPointsParams) WithHTTPClient(client *http.Client) *ListPolicyExecutionPointsParams
- func (o *ListPolicyExecutionPointsParams) WithIfMatch(ifMatch *string) *ListPolicyExecutionPointsParams
- func (o *ListPolicyExecutionPointsParams) WithTimeout(timeout time.Duration) *ListPolicyExecutionPointsParams
- func (o *ListPolicyExecutionPointsParams) WithWid(wid string) *ListPolicyExecutionPointsParams
- func (o *ListPolicyExecutionPointsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ListPolicyExecutionPointsReader
- type ListPolicyExecutionPointsTooManyRequests
- func (o *ListPolicyExecutionPointsTooManyRequests) Code() int
- func (o *ListPolicyExecutionPointsTooManyRequests) Error() string
- func (o *ListPolicyExecutionPointsTooManyRequests) GetPayload() *models.Error
- func (o *ListPolicyExecutionPointsTooManyRequests) IsClientError() bool
- func (o *ListPolicyExecutionPointsTooManyRequests) IsCode(code int) bool
- func (o *ListPolicyExecutionPointsTooManyRequests) IsRedirect() bool
- func (o *ListPolicyExecutionPointsTooManyRequests) IsServerError() bool
- func (o *ListPolicyExecutionPointsTooManyRequests) IsSuccess() bool
- func (o *ListPolicyExecutionPointsTooManyRequests) String() string
- type ListPolicyExecutionPointsUnauthorized
- func (o *ListPolicyExecutionPointsUnauthorized) Code() int
- func (o *ListPolicyExecutionPointsUnauthorized) Error() string
- func (o *ListPolicyExecutionPointsUnauthorized) GetPayload() *models.Error
- func (o *ListPolicyExecutionPointsUnauthorized) IsClientError() bool
- func (o *ListPolicyExecutionPointsUnauthorized) IsCode(code int) bool
- func (o *ListPolicyExecutionPointsUnauthorized) IsRedirect() bool
- func (o *ListPolicyExecutionPointsUnauthorized) IsServerError() bool
- func (o *ListPolicyExecutionPointsUnauthorized) IsSuccess() bool
- func (o *ListPolicyExecutionPointsUnauthorized) String() string
- type SetPolicyExecutionPointsBadRequest
- func (o *SetPolicyExecutionPointsBadRequest) Code() int
- func (o *SetPolicyExecutionPointsBadRequest) Error() string
- func (o *SetPolicyExecutionPointsBadRequest) GetPayload() *models.Error
- func (o *SetPolicyExecutionPointsBadRequest) IsClientError() bool
- func (o *SetPolicyExecutionPointsBadRequest) IsCode(code int) bool
- func (o *SetPolicyExecutionPointsBadRequest) IsRedirect() bool
- func (o *SetPolicyExecutionPointsBadRequest) IsServerError() bool
- func (o *SetPolicyExecutionPointsBadRequest) IsSuccess() bool
- func (o *SetPolicyExecutionPointsBadRequest) String() string
- type SetPolicyExecutionPointsConflict
- func (o *SetPolicyExecutionPointsConflict) Code() int
- func (o *SetPolicyExecutionPointsConflict) Error() string
- func (o *SetPolicyExecutionPointsConflict) GetPayload() *models.Error
- func (o *SetPolicyExecutionPointsConflict) IsClientError() bool
- func (o *SetPolicyExecutionPointsConflict) IsCode(code int) bool
- func (o *SetPolicyExecutionPointsConflict) IsRedirect() bool
- func (o *SetPolicyExecutionPointsConflict) IsServerError() bool
- func (o *SetPolicyExecutionPointsConflict) IsSuccess() bool
- func (o *SetPolicyExecutionPointsConflict) String() string
- type SetPolicyExecutionPointsForbidden
- func (o *SetPolicyExecutionPointsForbidden) Code() int
- func (o *SetPolicyExecutionPointsForbidden) Error() string
- func (o *SetPolicyExecutionPointsForbidden) GetPayload() *models.Error
- func (o *SetPolicyExecutionPointsForbidden) IsClientError() bool
- func (o *SetPolicyExecutionPointsForbidden) IsCode(code int) bool
- func (o *SetPolicyExecutionPointsForbidden) IsRedirect() bool
- func (o *SetPolicyExecutionPointsForbidden) IsServerError() bool
- func (o *SetPolicyExecutionPointsForbidden) IsSuccess() bool
- func (o *SetPolicyExecutionPointsForbidden) String() string
- type SetPolicyExecutionPointsNotFound
- func (o *SetPolicyExecutionPointsNotFound) Code() int
- func (o *SetPolicyExecutionPointsNotFound) Error() string
- func (o *SetPolicyExecutionPointsNotFound) GetPayload() *models.Error
- func (o *SetPolicyExecutionPointsNotFound) IsClientError() bool
- func (o *SetPolicyExecutionPointsNotFound) IsCode(code int) bool
- func (o *SetPolicyExecutionPointsNotFound) IsRedirect() bool
- func (o *SetPolicyExecutionPointsNotFound) IsServerError() bool
- func (o *SetPolicyExecutionPointsNotFound) IsSuccess() bool
- func (o *SetPolicyExecutionPointsNotFound) String() string
- type SetPolicyExecutionPointsOK
- func (o *SetPolicyExecutionPointsOK) Code() int
- func (o *SetPolicyExecutionPointsOK) Error() string
- func (o *SetPolicyExecutionPointsOK) GetPayload() *models.PolicyExecutionPoints
- func (o *SetPolicyExecutionPointsOK) IsClientError() bool
- func (o *SetPolicyExecutionPointsOK) IsCode(code int) bool
- func (o *SetPolicyExecutionPointsOK) IsRedirect() bool
- func (o *SetPolicyExecutionPointsOK) IsServerError() bool
- func (o *SetPolicyExecutionPointsOK) IsSuccess() bool
- func (o *SetPolicyExecutionPointsOK) String() string
- type SetPolicyExecutionPointsParams
- func NewSetPolicyExecutionPointsParams() *SetPolicyExecutionPointsParams
- func NewSetPolicyExecutionPointsParamsWithContext(ctx context.Context) *SetPolicyExecutionPointsParams
- func NewSetPolicyExecutionPointsParamsWithHTTPClient(client *http.Client) *SetPolicyExecutionPointsParams
- func NewSetPolicyExecutionPointsParamsWithTimeout(timeout time.Duration) *SetPolicyExecutionPointsParams
- func (o *SetPolicyExecutionPointsParams) SetContext(ctx context.Context)
- func (o *SetPolicyExecutionPointsParams) SetDefaults()
- func (o *SetPolicyExecutionPointsParams) SetExecutions(executions *models.PolicyExecutionPoints)
- func (o *SetPolicyExecutionPointsParams) SetHTTPClient(client *http.Client)
- func (o *SetPolicyExecutionPointsParams) SetIfMatch(ifMatch *string)
- func (o *SetPolicyExecutionPointsParams) SetTimeout(timeout time.Duration)
- func (o *SetPolicyExecutionPointsParams) SetWid(wid string)
- func (o *SetPolicyExecutionPointsParams) WithContext(ctx context.Context) *SetPolicyExecutionPointsParams
- func (o *SetPolicyExecutionPointsParams) WithDefaults() *SetPolicyExecutionPointsParams
- func (o *SetPolicyExecutionPointsParams) WithExecutions(executions *models.PolicyExecutionPoints) *SetPolicyExecutionPointsParams
- func (o *SetPolicyExecutionPointsParams) WithHTTPClient(client *http.Client) *SetPolicyExecutionPointsParams
- func (o *SetPolicyExecutionPointsParams) WithIfMatch(ifMatch *string) *SetPolicyExecutionPointsParams
- func (o *SetPolicyExecutionPointsParams) WithTimeout(timeout time.Duration) *SetPolicyExecutionPointsParams
- func (o *SetPolicyExecutionPointsParams) WithWid(wid string) *SetPolicyExecutionPointsParams
- func (o *SetPolicyExecutionPointsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type SetPolicyExecutionPointsReader
- type SetPolicyExecutionPointsTooManyRequests
- func (o *SetPolicyExecutionPointsTooManyRequests) Code() int
- func (o *SetPolicyExecutionPointsTooManyRequests) Error() string
- func (o *SetPolicyExecutionPointsTooManyRequests) GetPayload() *models.Error
- func (o *SetPolicyExecutionPointsTooManyRequests) IsClientError() bool
- func (o *SetPolicyExecutionPointsTooManyRequests) IsCode(code int) bool
- func (o *SetPolicyExecutionPointsTooManyRequests) IsRedirect() bool
- func (o *SetPolicyExecutionPointsTooManyRequests) IsServerError() bool
- func (o *SetPolicyExecutionPointsTooManyRequests) IsSuccess() bool
- func (o *SetPolicyExecutionPointsTooManyRequests) String() string
- type SetPolicyExecutionPointsUnauthorized
- func (o *SetPolicyExecutionPointsUnauthorized) Code() int
- func (o *SetPolicyExecutionPointsUnauthorized) Error() string
- func (o *SetPolicyExecutionPointsUnauthorized) GetPayload() *models.Error
- func (o *SetPolicyExecutionPointsUnauthorized) IsClientError() bool
- func (o *SetPolicyExecutionPointsUnauthorized) IsCode(code int) bool
- func (o *SetPolicyExecutionPointsUnauthorized) IsRedirect() bool
- func (o *SetPolicyExecutionPointsUnauthorized) IsServerError() bool
- func (o *SetPolicyExecutionPointsUnauthorized) IsSuccess() bool
- func (o *SetPolicyExecutionPointsUnauthorized) String() string
- type SetPolicyExecutionPointsUnprocessableEntity
- func (o *SetPolicyExecutionPointsUnprocessableEntity) Code() int
- func (o *SetPolicyExecutionPointsUnprocessableEntity) Error() string
- func (o *SetPolicyExecutionPointsUnprocessableEntity) GetPayload() *models.Error
- func (o *SetPolicyExecutionPointsUnprocessableEntity) IsClientError() bool
- func (o *SetPolicyExecutionPointsUnprocessableEntity) IsCode(code int) bool
- func (o *SetPolicyExecutionPointsUnprocessableEntity) IsRedirect() bool
- func (o *SetPolicyExecutionPointsUnprocessableEntity) IsServerError() bool
- func (o *SetPolicyExecutionPointsUnprocessableEntity) IsSuccess() bool
- func (o *SetPolicyExecutionPointsUnprocessableEntity) String() string
- type TestPolicyBadRequest
- func (o *TestPolicyBadRequest) Code() int
- func (o *TestPolicyBadRequest) Error() string
- func (o *TestPolicyBadRequest) GetPayload() *models.Error
- func (o *TestPolicyBadRequest) IsClientError() bool
- func (o *TestPolicyBadRequest) IsCode(code int) bool
- func (o *TestPolicyBadRequest) IsRedirect() bool
- func (o *TestPolicyBadRequest) IsServerError() bool
- func (o *TestPolicyBadRequest) IsSuccess() bool
- func (o *TestPolicyBadRequest) String() string
- type TestPolicyConflict
- func (o *TestPolicyConflict) Code() int
- func (o *TestPolicyConflict) Error() string
- func (o *TestPolicyConflict) GetPayload() *models.Error
- func (o *TestPolicyConflict) IsClientError() bool
- func (o *TestPolicyConflict) IsCode(code int) bool
- func (o *TestPolicyConflict) IsRedirect() bool
- func (o *TestPolicyConflict) IsServerError() bool
- func (o *TestPolicyConflict) IsSuccess() bool
- func (o *TestPolicyConflict) String() string
- type TestPolicyForbidden
- func (o *TestPolicyForbidden) Code() int
- func (o *TestPolicyForbidden) Error() string
- func (o *TestPolicyForbidden) GetPayload() *models.Error
- func (o *TestPolicyForbidden) IsClientError() bool
- func (o *TestPolicyForbidden) IsCode(code int) bool
- func (o *TestPolicyForbidden) IsRedirect() bool
- func (o *TestPolicyForbidden) IsServerError() bool
- func (o *TestPolicyForbidden) IsSuccess() bool
- func (o *TestPolicyForbidden) String() string
- type TestPolicyNotFound
- func (o *TestPolicyNotFound) Code() int
- func (o *TestPolicyNotFound) Error() string
- func (o *TestPolicyNotFound) GetPayload() *models.Error
- func (o *TestPolicyNotFound) IsClientError() bool
- func (o *TestPolicyNotFound) IsCode(code int) bool
- func (o *TestPolicyNotFound) IsRedirect() bool
- func (o *TestPolicyNotFound) IsServerError() bool
- func (o *TestPolicyNotFound) IsSuccess() bool
- func (o *TestPolicyNotFound) String() string
- type TestPolicyOK
- func (o *TestPolicyOK) Code() int
- func (o *TestPolicyOK) Error() string
- func (o *TestPolicyOK) GetPayload() *models.TestPolicyResponse
- func (o *TestPolicyOK) IsClientError() bool
- func (o *TestPolicyOK) IsCode(code int) bool
- func (o *TestPolicyOK) IsRedirect() bool
- func (o *TestPolicyOK) IsServerError() bool
- func (o *TestPolicyOK) IsSuccess() bool
- func (o *TestPolicyOK) String() string
- type TestPolicyParams
- func (o *TestPolicyParams) SetContext(ctx context.Context)
- func (o *TestPolicyParams) SetDefaults()
- func (o *TestPolicyParams) SetHTTPClient(client *http.Client)
- func (o *TestPolicyParams) SetIfMatch(ifMatch *string)
- func (o *TestPolicyParams) SetTestPolicyRequest(testPolicyRequest *models.TestPolicyRequest)
- func (o *TestPolicyParams) SetTimeout(timeout time.Duration)
- func (o *TestPolicyParams) WithContext(ctx context.Context) *TestPolicyParams
- func (o *TestPolicyParams) WithDefaults() *TestPolicyParams
- func (o *TestPolicyParams) WithHTTPClient(client *http.Client) *TestPolicyParams
- func (o *TestPolicyParams) WithIfMatch(ifMatch *string) *TestPolicyParams
- func (o *TestPolicyParams) WithTestPolicyRequest(testPolicyRequest *models.TestPolicyRequest) *TestPolicyParams
- func (o *TestPolicyParams) WithTimeout(timeout time.Duration) *TestPolicyParams
- func (o *TestPolicyParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type TestPolicyReader
- type TestPolicyTooManyRequests
- func (o *TestPolicyTooManyRequests) Code() int
- func (o *TestPolicyTooManyRequests) Error() string
- func (o *TestPolicyTooManyRequests) GetPayload() *models.Error
- func (o *TestPolicyTooManyRequests) IsClientError() bool
- func (o *TestPolicyTooManyRequests) IsCode(code int) bool
- func (o *TestPolicyTooManyRequests) IsRedirect() bool
- func (o *TestPolicyTooManyRequests) IsServerError() bool
- func (o *TestPolicyTooManyRequests) IsSuccess() bool
- func (o *TestPolicyTooManyRequests) String() string
- type TestPolicyUnauthorized
- func (o *TestPolicyUnauthorized) Code() int
- func (o *TestPolicyUnauthorized) Error() string
- func (o *TestPolicyUnauthorized) GetPayload() *models.Error
- func (o *TestPolicyUnauthorized) IsClientError() bool
- func (o *TestPolicyUnauthorized) IsCode(code int) bool
- func (o *TestPolicyUnauthorized) IsRedirect() bool
- func (o *TestPolicyUnauthorized) IsServerError() bool
- func (o *TestPolicyUnauthorized) IsSuccess() bool
- func (o *TestPolicyUnauthorized) String() string
- type TestPolicyUnprocessableEntity
- func (o *TestPolicyUnprocessableEntity) Code() int
- func (o *TestPolicyUnprocessableEntity) Error() string
- func (o *TestPolicyUnprocessableEntity) GetPayload() *models.Error
- func (o *TestPolicyUnprocessableEntity) IsClientError() bool
- func (o *TestPolicyUnprocessableEntity) IsCode(code int) bool
- func (o *TestPolicyUnprocessableEntity) IsRedirect() bool
- func (o *TestPolicyUnprocessableEntity) IsServerError() bool
- func (o *TestPolicyUnprocessableEntity) IsSuccess() bool
- func (o *TestPolicyUnprocessableEntity) String() string
- type UpdatePolicyBadRequest
- func (o *UpdatePolicyBadRequest) Code() int
- func (o *UpdatePolicyBadRequest) Error() string
- func (o *UpdatePolicyBadRequest) GetPayload() *models.Error
- func (o *UpdatePolicyBadRequest) IsClientError() bool
- func (o *UpdatePolicyBadRequest) IsCode(code int) bool
- func (o *UpdatePolicyBadRequest) IsRedirect() bool
- func (o *UpdatePolicyBadRequest) IsServerError() bool
- func (o *UpdatePolicyBadRequest) IsSuccess() bool
- func (o *UpdatePolicyBadRequest) String() string
- type UpdatePolicyConflict
- func (o *UpdatePolicyConflict) Code() int
- func (o *UpdatePolicyConflict) Error() string
- func (o *UpdatePolicyConflict) GetPayload() *models.Error
- func (o *UpdatePolicyConflict) IsClientError() bool
- func (o *UpdatePolicyConflict) IsCode(code int) bool
- func (o *UpdatePolicyConflict) IsRedirect() bool
- func (o *UpdatePolicyConflict) IsServerError() bool
- func (o *UpdatePolicyConflict) IsSuccess() bool
- func (o *UpdatePolicyConflict) String() string
- type UpdatePolicyCreated
- func (o *UpdatePolicyCreated) Code() int
- func (o *UpdatePolicyCreated) Error() string
- func (o *UpdatePolicyCreated) GetPayload() *models.Policy
- func (o *UpdatePolicyCreated) IsClientError() bool
- func (o *UpdatePolicyCreated) IsCode(code int) bool
- func (o *UpdatePolicyCreated) IsRedirect() bool
- func (o *UpdatePolicyCreated) IsServerError() bool
- func (o *UpdatePolicyCreated) IsSuccess() bool
- func (o *UpdatePolicyCreated) String() string
- type UpdatePolicyForbidden
- func (o *UpdatePolicyForbidden) Code() int
- func (o *UpdatePolicyForbidden) Error() string
- func (o *UpdatePolicyForbidden) GetPayload() *models.Error
- func (o *UpdatePolicyForbidden) IsClientError() bool
- func (o *UpdatePolicyForbidden) IsCode(code int) bool
- func (o *UpdatePolicyForbidden) IsRedirect() bool
- func (o *UpdatePolicyForbidden) IsServerError() bool
- func (o *UpdatePolicyForbidden) IsSuccess() bool
- func (o *UpdatePolicyForbidden) String() string
- type UpdatePolicyNotFound
- func (o *UpdatePolicyNotFound) Code() int
- func (o *UpdatePolicyNotFound) Error() string
- func (o *UpdatePolicyNotFound) GetPayload() *models.Error
- func (o *UpdatePolicyNotFound) IsClientError() bool
- func (o *UpdatePolicyNotFound) IsCode(code int) bool
- func (o *UpdatePolicyNotFound) IsRedirect() bool
- func (o *UpdatePolicyNotFound) IsServerError() bool
- func (o *UpdatePolicyNotFound) IsSuccess() bool
- func (o *UpdatePolicyNotFound) String() string
- type UpdatePolicyParams
- func (o *UpdatePolicyParams) SetContext(ctx context.Context)
- func (o *UpdatePolicyParams) SetDefaults()
- func (o *UpdatePolicyParams) SetHTTPClient(client *http.Client)
- func (o *UpdatePolicyParams) SetIfMatch(ifMatch *string)
- func (o *UpdatePolicyParams) SetPid(pid string)
- func (o *UpdatePolicyParams) SetPolicyBody(policyBody *models.Policy)
- func (o *UpdatePolicyParams) SetTimeout(timeout time.Duration)
- func (o *UpdatePolicyParams) WithContext(ctx context.Context) *UpdatePolicyParams
- func (o *UpdatePolicyParams) WithDefaults() *UpdatePolicyParams
- func (o *UpdatePolicyParams) WithHTTPClient(client *http.Client) *UpdatePolicyParams
- func (o *UpdatePolicyParams) WithIfMatch(ifMatch *string) *UpdatePolicyParams
- func (o *UpdatePolicyParams) WithPid(pid string) *UpdatePolicyParams
- func (o *UpdatePolicyParams) WithPolicyBody(policyBody *models.Policy) *UpdatePolicyParams
- func (o *UpdatePolicyParams) WithTimeout(timeout time.Duration) *UpdatePolicyParams
- func (o *UpdatePolicyParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type UpdatePolicyReader
- type UpdatePolicyTooManyRequests
- func (o *UpdatePolicyTooManyRequests) Code() int
- func (o *UpdatePolicyTooManyRequests) Error() string
- func (o *UpdatePolicyTooManyRequests) GetPayload() *models.Error
- func (o *UpdatePolicyTooManyRequests) IsClientError() bool
- func (o *UpdatePolicyTooManyRequests) IsCode(code int) bool
- func (o *UpdatePolicyTooManyRequests) IsRedirect() bool
- func (o *UpdatePolicyTooManyRequests) IsServerError() bool
- func (o *UpdatePolicyTooManyRequests) IsSuccess() bool
- func (o *UpdatePolicyTooManyRequests) String() string
- type UpdatePolicyUnauthorized
- func (o *UpdatePolicyUnauthorized) Code() int
- func (o *UpdatePolicyUnauthorized) Error() string
- func (o *UpdatePolicyUnauthorized) GetPayload() *models.Error
- func (o *UpdatePolicyUnauthorized) IsClientError() bool
- func (o *UpdatePolicyUnauthorized) IsCode(code int) bool
- func (o *UpdatePolicyUnauthorized) IsRedirect() bool
- func (o *UpdatePolicyUnauthorized) IsServerError() bool
- func (o *UpdatePolicyUnauthorized) IsSuccess() bool
- func (o *UpdatePolicyUnauthorized) String() string
- type UpdatePolicyUnprocessableEntity
- func (o *UpdatePolicyUnprocessableEntity) Code() int
- func (o *UpdatePolicyUnprocessableEntity) Error() string
- func (o *UpdatePolicyUnprocessableEntity) GetPayload() *models.Error
- func (o *UpdatePolicyUnprocessableEntity) IsClientError() bool
- func (o *UpdatePolicyUnprocessableEntity) IsCode(code int) bool
- func (o *UpdatePolicyUnprocessableEntity) IsRedirect() bool
- func (o *UpdatePolicyUnprocessableEntity) IsServerError() bool
- func (o *UpdatePolicyUnprocessableEntity) IsSuccess() bool
- func (o *UpdatePolicyUnprocessableEntity) String() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client for policies API
func (*Client) CreatePolicy ¶
func (a *Client) CreatePolicy(params *CreatePolicyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreatePolicyCreated, error)
CreatePolicy creates policy ACP supports creating Cloudentity policies (using a visual editor or defined using JSON or
YAML) and policies defined using REGO (language used by Open Policy Agent (OPA)).
In ACP, policies are created per tenant. It means that is not possible to create policies with the same ID in two different workspaces within the same tenant. Additionally, when a policy is created, a workspace prefix is added to your policy name on the UI side. It is not possible to reuse policies between different authorization servers.
Sample validators which can be used to build policies: identity-context, consent, header, true, false.
func (*Client) DeletePolicy ¶
func (a *Client) DeletePolicy(params *DeletePolicyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeletePolicyNoContent, error)
DeletePolicy deletes policy
It is not possible to delete policies that are currently in use.
func (*Client) GetPolicy ¶
func (a *Client) GetPolicy(params *GetPolicyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetPolicyOK, error)
GetPolicy gets policy
Returns a policy and it's definition.
func (*Client) ListPolicies ¶
func (a *Client) ListPolicies(params *ListPoliciesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListPoliciesOK, error)
ListPolicies lists policies
Lists authorization servers' (workspace) policies by type.
func (*Client) ListPolicyExecutionPoints ¶
func (a *Client) ListPolicyExecutionPoints(params *ListPolicyExecutionPointsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListPolicyExecutionPointsOK, error)
ListPolicyExecutionPoints lists policy execution points
Returns a list of policy execution points for a given workspace.
func (*Client) SetPolicyExecutionPoints ¶
func (a *Client) SetPolicyExecutionPoints(params *SetPolicyExecutionPointsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SetPolicyExecutionPointsOK, error)
SetPolicyExecutionPoints sets policy execution points Available execution points: `scope_client_assignment`, `scope_user_grant`,
`server_client_assignment`, `server_user_token`, `client_user_token`, `api`
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
func (*Client) TestPolicy ¶
func (a *Client) TestPolicy(params *TestPolicyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*TestPolicyOK, error)
TestPolicy tests policy You can test a policy and check if it works correctly using this endpoint. Provide your mock input and
pass it as the value of the `input` parameter. Define your policy. Then, fire a request to the test policy endpoint. By doing so, you can test if a policy would fail or pass for a given request.
func (*Client) UpdatePolicy ¶
func (a *Client) UpdatePolicy(params *UpdatePolicyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdatePolicyCreated, error)
UpdatePolicy updates policy
Update existing authorization policies.
type ClientOption ¶
type ClientOption func(*runtime.ClientOperation)
ClientOption is the option for Client methods
type ClientService ¶
type ClientService interface { CreatePolicy(params *CreatePolicyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreatePolicyCreated, error) DeletePolicy(params *DeletePolicyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeletePolicyNoContent, error) GetPolicy(params *GetPolicyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetPolicyOK, error) ListPolicies(params *ListPoliciesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListPoliciesOK, error) ListPolicyExecutionPoints(params *ListPolicyExecutionPointsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListPolicyExecutionPointsOK, error) SetPolicyExecutionPoints(params *SetPolicyExecutionPointsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SetPolicyExecutionPointsOK, error) TestPolicy(params *TestPolicyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*TestPolicyOK, error) UpdatePolicy(params *UpdatePolicyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdatePolicyCreated, error) SetTransport(transport runtime.ClientTransport) }
ClientService is the interface for Client methods
func New ¶
func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService
New creates a new policies API client.
type CreatePolicyBadRequest ¶
CreatePolicyBadRequest describes a response with status code 400, with default header values.
Bad request
func NewCreatePolicyBadRequest ¶
func NewCreatePolicyBadRequest() *CreatePolicyBadRequest
NewCreatePolicyBadRequest creates a CreatePolicyBadRequest with default headers values
func (*CreatePolicyBadRequest) Code ¶
func (o *CreatePolicyBadRequest) Code() int
Code gets the status code for the create policy bad request response
func (*CreatePolicyBadRequest) Error ¶
func (o *CreatePolicyBadRequest) Error() string
func (*CreatePolicyBadRequest) GetPayload ¶
func (o *CreatePolicyBadRequest) GetPayload() *models.Error
func (*CreatePolicyBadRequest) IsClientError ¶
func (o *CreatePolicyBadRequest) IsClientError() bool
IsClientError returns true when this create policy bad request response has a 4xx status code
func (*CreatePolicyBadRequest) IsCode ¶
func (o *CreatePolicyBadRequest) IsCode(code int) bool
IsCode returns true when this create policy bad request response a status code equal to that given
func (*CreatePolicyBadRequest) IsRedirect ¶
func (o *CreatePolicyBadRequest) IsRedirect() bool
IsRedirect returns true when this create policy bad request response has a 3xx status code
func (*CreatePolicyBadRequest) IsServerError ¶
func (o *CreatePolicyBadRequest) IsServerError() bool
IsServerError returns true when this create policy bad request response has a 5xx status code
func (*CreatePolicyBadRequest) IsSuccess ¶
func (o *CreatePolicyBadRequest) IsSuccess() bool
IsSuccess returns true when this create policy bad request response has a 2xx status code
func (*CreatePolicyBadRequest) String ¶
func (o *CreatePolicyBadRequest) String() string
type CreatePolicyConflict ¶
CreatePolicyConflict describes a response with status code 409, with default header values.
Conflict
func NewCreatePolicyConflict ¶
func NewCreatePolicyConflict() *CreatePolicyConflict
NewCreatePolicyConflict creates a CreatePolicyConflict with default headers values
func (*CreatePolicyConflict) Code ¶
func (o *CreatePolicyConflict) Code() int
Code gets the status code for the create policy conflict response
func (*CreatePolicyConflict) Error ¶
func (o *CreatePolicyConflict) Error() string
func (*CreatePolicyConflict) GetPayload ¶
func (o *CreatePolicyConflict) GetPayload() *models.Error
func (*CreatePolicyConflict) IsClientError ¶
func (o *CreatePolicyConflict) IsClientError() bool
IsClientError returns true when this create policy conflict response has a 4xx status code
func (*CreatePolicyConflict) IsCode ¶
func (o *CreatePolicyConflict) IsCode(code int) bool
IsCode returns true when this create policy conflict response a status code equal to that given
func (*CreatePolicyConflict) IsRedirect ¶
func (o *CreatePolicyConflict) IsRedirect() bool
IsRedirect returns true when this create policy conflict response has a 3xx status code
func (*CreatePolicyConflict) IsServerError ¶
func (o *CreatePolicyConflict) IsServerError() bool
IsServerError returns true when this create policy conflict response has a 5xx status code
func (*CreatePolicyConflict) IsSuccess ¶
func (o *CreatePolicyConflict) IsSuccess() bool
IsSuccess returns true when this create policy conflict response has a 2xx status code
func (*CreatePolicyConflict) String ¶
func (o *CreatePolicyConflict) String() string
type CreatePolicyCreated ¶
type CreatePolicyCreated struct { /* The ETag HTTP header is an identifier for a specific version of a resource in:header Format: etag */ Etag string Payload *models.Policy }
CreatePolicyCreated describes a response with status code 201, with default header values.
Policy
func NewCreatePolicyCreated ¶
func NewCreatePolicyCreated() *CreatePolicyCreated
NewCreatePolicyCreated creates a CreatePolicyCreated with default headers values
func (*CreatePolicyCreated) Code ¶
func (o *CreatePolicyCreated) Code() int
Code gets the status code for the create policy created response
func (*CreatePolicyCreated) Error ¶
func (o *CreatePolicyCreated) Error() string
func (*CreatePolicyCreated) GetPayload ¶
func (o *CreatePolicyCreated) GetPayload() *models.Policy
func (*CreatePolicyCreated) IsClientError ¶
func (o *CreatePolicyCreated) IsClientError() bool
IsClientError returns true when this create policy created response has a 4xx status code
func (*CreatePolicyCreated) IsCode ¶
func (o *CreatePolicyCreated) IsCode(code int) bool
IsCode returns true when this create policy created response a status code equal to that given
func (*CreatePolicyCreated) IsRedirect ¶
func (o *CreatePolicyCreated) IsRedirect() bool
IsRedirect returns true when this create policy created response has a 3xx status code
func (*CreatePolicyCreated) IsServerError ¶
func (o *CreatePolicyCreated) IsServerError() bool
IsServerError returns true when this create policy created response has a 5xx status code
func (*CreatePolicyCreated) IsSuccess ¶
func (o *CreatePolicyCreated) IsSuccess() bool
IsSuccess returns true when this create policy created response has a 2xx status code
func (*CreatePolicyCreated) String ¶
func (o *CreatePolicyCreated) String() string
type CreatePolicyForbidden ¶
CreatePolicyForbidden describes a response with status code 403, with default header values.
Forbidden
func NewCreatePolicyForbidden ¶
func NewCreatePolicyForbidden() *CreatePolicyForbidden
NewCreatePolicyForbidden creates a CreatePolicyForbidden with default headers values
func (*CreatePolicyForbidden) Code ¶
func (o *CreatePolicyForbidden) Code() int
Code gets the status code for the create policy forbidden response
func (*CreatePolicyForbidden) Error ¶
func (o *CreatePolicyForbidden) Error() string
func (*CreatePolicyForbidden) GetPayload ¶
func (o *CreatePolicyForbidden) GetPayload() *models.Error
func (*CreatePolicyForbidden) IsClientError ¶
func (o *CreatePolicyForbidden) IsClientError() bool
IsClientError returns true when this create policy forbidden response has a 4xx status code
func (*CreatePolicyForbidden) IsCode ¶
func (o *CreatePolicyForbidden) IsCode(code int) bool
IsCode returns true when this create policy forbidden response a status code equal to that given
func (*CreatePolicyForbidden) IsRedirect ¶
func (o *CreatePolicyForbidden) IsRedirect() bool
IsRedirect returns true when this create policy forbidden response has a 3xx status code
func (*CreatePolicyForbidden) IsServerError ¶
func (o *CreatePolicyForbidden) IsServerError() bool
IsServerError returns true when this create policy forbidden response has a 5xx status code
func (*CreatePolicyForbidden) IsSuccess ¶
func (o *CreatePolicyForbidden) IsSuccess() bool
IsSuccess returns true when this create policy forbidden response has a 2xx status code
func (*CreatePolicyForbidden) String ¶
func (o *CreatePolicyForbidden) String() string
type CreatePolicyNotFound ¶
CreatePolicyNotFound describes a response with status code 404, with default header values.
Not found
func NewCreatePolicyNotFound ¶
func NewCreatePolicyNotFound() *CreatePolicyNotFound
NewCreatePolicyNotFound creates a CreatePolicyNotFound with default headers values
func (*CreatePolicyNotFound) Code ¶
func (o *CreatePolicyNotFound) Code() int
Code gets the status code for the create policy not found response
func (*CreatePolicyNotFound) Error ¶
func (o *CreatePolicyNotFound) Error() string
func (*CreatePolicyNotFound) GetPayload ¶
func (o *CreatePolicyNotFound) GetPayload() *models.Error
func (*CreatePolicyNotFound) IsClientError ¶
func (o *CreatePolicyNotFound) IsClientError() bool
IsClientError returns true when this create policy not found response has a 4xx status code
func (*CreatePolicyNotFound) IsCode ¶
func (o *CreatePolicyNotFound) IsCode(code int) bool
IsCode returns true when this create policy not found response a status code equal to that given
func (*CreatePolicyNotFound) IsRedirect ¶
func (o *CreatePolicyNotFound) IsRedirect() bool
IsRedirect returns true when this create policy not found response has a 3xx status code
func (*CreatePolicyNotFound) IsServerError ¶
func (o *CreatePolicyNotFound) IsServerError() bool
IsServerError returns true when this create policy not found response has a 5xx status code
func (*CreatePolicyNotFound) IsSuccess ¶
func (o *CreatePolicyNotFound) IsSuccess() bool
IsSuccess returns true when this create policy not found response has a 2xx status code
func (*CreatePolicyNotFound) String ¶
func (o *CreatePolicyNotFound) String() string
type CreatePolicyParams ¶
type CreatePolicyParams struct { // Policy. Policy *models.Policy /* IfMatch. A server will only return requested resources if the resource matches one of the listed ETag value Format: etag */ IfMatch *string 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) 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) SetIfMatch ¶
func (o *CreatePolicyParams) SetIfMatch(ifMatch *string)
SetIfMatch adds the ifMatch to the create policy params
func (*CreatePolicyParams) SetPolicy ¶
func (o *CreatePolicyParams) SetPolicy(policy *models.Policy)
SetPolicy adds the policy 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) 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) WithIfMatch ¶
func (o *CreatePolicyParams) WithIfMatch(ifMatch *string) *CreatePolicyParams
WithIfMatch adds the ifMatch to the create policy params
func (*CreatePolicyParams) WithPolicy ¶
func (o *CreatePolicyParams) WithPolicy(policy *models.Policy) *CreatePolicyParams
WithPolicy adds the policy 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) (interface{}, error)
ReadResponse reads a server response into the received o.
type CreatePolicyTooManyRequests ¶
CreatePolicyTooManyRequests describes a response with status code 429, with default header values.
Too many requests
func NewCreatePolicyTooManyRequests ¶
func NewCreatePolicyTooManyRequests() *CreatePolicyTooManyRequests
NewCreatePolicyTooManyRequests creates a CreatePolicyTooManyRequests with default headers values
func (*CreatePolicyTooManyRequests) Code ¶
func (o *CreatePolicyTooManyRequests) Code() int
Code gets the status code for the create policy too many requests response
func (*CreatePolicyTooManyRequests) Error ¶
func (o *CreatePolicyTooManyRequests) Error() string
func (*CreatePolicyTooManyRequests) GetPayload ¶
func (o *CreatePolicyTooManyRequests) GetPayload() *models.Error
func (*CreatePolicyTooManyRequests) IsClientError ¶
func (o *CreatePolicyTooManyRequests) IsClientError() bool
IsClientError returns true when this create policy too many requests response has a 4xx status code
func (*CreatePolicyTooManyRequests) IsCode ¶
func (o *CreatePolicyTooManyRequests) IsCode(code int) bool
IsCode returns true when this create policy too many requests response a status code equal to that given
func (*CreatePolicyTooManyRequests) IsRedirect ¶
func (o *CreatePolicyTooManyRequests) IsRedirect() bool
IsRedirect returns true when this create policy too many requests response has a 3xx status code
func (*CreatePolicyTooManyRequests) IsServerError ¶
func (o *CreatePolicyTooManyRequests) IsServerError() bool
IsServerError returns true when this create policy too many requests response has a 5xx status code
func (*CreatePolicyTooManyRequests) IsSuccess ¶
func (o *CreatePolicyTooManyRequests) IsSuccess() bool
IsSuccess returns true when this create policy too many requests response has a 2xx status code
func (*CreatePolicyTooManyRequests) String ¶
func (o *CreatePolicyTooManyRequests) String() string
type CreatePolicyUnauthorized ¶
type CreatePolicyUnauthorized struct {
}CreatePolicyUnauthorized describes a response with status code 401, with default header values.
Unauthorized
func NewCreatePolicyUnauthorized ¶
func NewCreatePolicyUnauthorized() *CreatePolicyUnauthorized
NewCreatePolicyUnauthorized creates a CreatePolicyUnauthorized with default headers values
func (*CreatePolicyUnauthorized) Code ¶
func (o *CreatePolicyUnauthorized) Code() int
Code gets the status code for the create policy unauthorized response
func (*CreatePolicyUnauthorized) Error ¶
func (o *CreatePolicyUnauthorized) Error() string
func (*CreatePolicyUnauthorized) GetPayload ¶
func (o *CreatePolicyUnauthorized) GetPayload() *models.Error
func (*CreatePolicyUnauthorized) IsClientError ¶
func (o *CreatePolicyUnauthorized) IsClientError() bool
IsClientError returns true when this create policy unauthorized response has a 4xx status code
func (*CreatePolicyUnauthorized) IsCode ¶
func (o *CreatePolicyUnauthorized) IsCode(code int) bool
IsCode returns true when this create policy unauthorized response a status code equal to that given
func (*CreatePolicyUnauthorized) IsRedirect ¶
func (o *CreatePolicyUnauthorized) IsRedirect() bool
IsRedirect returns true when this create policy unauthorized response has a 3xx status code
func (*CreatePolicyUnauthorized) IsServerError ¶
func (o *CreatePolicyUnauthorized) IsServerError() bool
IsServerError returns true when this create policy unauthorized response has a 5xx status code
func (*CreatePolicyUnauthorized) IsSuccess ¶
func (o *CreatePolicyUnauthorized) IsSuccess() bool
IsSuccess returns true when this create policy unauthorized response has a 2xx status code
func (*CreatePolicyUnauthorized) String ¶
func (o *CreatePolicyUnauthorized) String() string
type CreatePolicyUnprocessableEntity ¶
CreatePolicyUnprocessableEntity describes a response with status code 422, with default header values.
Unprocessable entity
func NewCreatePolicyUnprocessableEntity ¶
func NewCreatePolicyUnprocessableEntity() *CreatePolicyUnprocessableEntity
NewCreatePolicyUnprocessableEntity creates a CreatePolicyUnprocessableEntity with default headers values
func (*CreatePolicyUnprocessableEntity) Code ¶
func (o *CreatePolicyUnprocessableEntity) Code() int
Code gets the status code for the create policy unprocessable entity response
func (*CreatePolicyUnprocessableEntity) Error ¶
func (o *CreatePolicyUnprocessableEntity) Error() string
func (*CreatePolicyUnprocessableEntity) GetPayload ¶
func (o *CreatePolicyUnprocessableEntity) GetPayload() *models.Error
func (*CreatePolicyUnprocessableEntity) IsClientError ¶
func (o *CreatePolicyUnprocessableEntity) IsClientError() bool
IsClientError returns true when this create policy unprocessable entity response has a 4xx status code
func (*CreatePolicyUnprocessableEntity) IsCode ¶
func (o *CreatePolicyUnprocessableEntity) IsCode(code int) bool
IsCode returns true when this create policy unprocessable entity response a status code equal to that given
func (*CreatePolicyUnprocessableEntity) IsRedirect ¶
func (o *CreatePolicyUnprocessableEntity) IsRedirect() bool
IsRedirect returns true when this create policy unprocessable entity response has a 3xx status code
func (*CreatePolicyUnprocessableEntity) IsServerError ¶
func (o *CreatePolicyUnprocessableEntity) IsServerError() bool
IsServerError returns true when this create policy unprocessable entity response has a 5xx status code
func (*CreatePolicyUnprocessableEntity) IsSuccess ¶
func (o *CreatePolicyUnprocessableEntity) IsSuccess() bool
IsSuccess returns true when this create policy unprocessable entity response has a 2xx status code
func (*CreatePolicyUnprocessableEntity) String ¶
func (o *CreatePolicyUnprocessableEntity) String() string
type DeletePolicyBadRequest ¶
DeletePolicyBadRequest describes a response with status code 400, with default header values.
Bad request
func NewDeletePolicyBadRequest ¶
func NewDeletePolicyBadRequest() *DeletePolicyBadRequest
NewDeletePolicyBadRequest creates a DeletePolicyBadRequest with default headers values
func (*DeletePolicyBadRequest) Code ¶
func (o *DeletePolicyBadRequest) Code() int
Code gets the status code for the delete policy bad request response
func (*DeletePolicyBadRequest) Error ¶
func (o *DeletePolicyBadRequest) Error() string
func (*DeletePolicyBadRequest) GetPayload ¶
func (o *DeletePolicyBadRequest) GetPayload() *models.Error
func (*DeletePolicyBadRequest) IsClientError ¶
func (o *DeletePolicyBadRequest) IsClientError() bool
IsClientError returns true when this delete policy bad request response has a 4xx status code
func (*DeletePolicyBadRequest) IsCode ¶
func (o *DeletePolicyBadRequest) IsCode(code int) bool
IsCode returns true when this delete policy bad request response a status code equal to that given
func (*DeletePolicyBadRequest) IsRedirect ¶
func (o *DeletePolicyBadRequest) IsRedirect() bool
IsRedirect returns true when this delete policy bad request response has a 3xx status code
func (*DeletePolicyBadRequest) IsServerError ¶
func (o *DeletePolicyBadRequest) IsServerError() bool
IsServerError returns true when this delete policy bad request response has a 5xx status code
func (*DeletePolicyBadRequest) IsSuccess ¶
func (o *DeletePolicyBadRequest) IsSuccess() bool
IsSuccess returns true when this delete policy bad request response has a 2xx status code
func (*DeletePolicyBadRequest) String ¶
func (o *DeletePolicyBadRequest) String() string
type DeletePolicyForbidden ¶
DeletePolicyForbidden describes a response with status code 403, with default header values.
Forbidden
func NewDeletePolicyForbidden ¶
func NewDeletePolicyForbidden() *DeletePolicyForbidden
NewDeletePolicyForbidden creates a DeletePolicyForbidden with default headers values
func (*DeletePolicyForbidden) Code ¶
func (o *DeletePolicyForbidden) Code() int
Code gets the status code for the delete policy forbidden response
func (*DeletePolicyForbidden) Error ¶
func (o *DeletePolicyForbidden) Error() string
func (*DeletePolicyForbidden) GetPayload ¶
func (o *DeletePolicyForbidden) GetPayload() *models.Error
func (*DeletePolicyForbidden) IsClientError ¶
func (o *DeletePolicyForbidden) IsClientError() bool
IsClientError returns true when this delete policy forbidden response has a 4xx status code
func (*DeletePolicyForbidden) IsCode ¶
func (o *DeletePolicyForbidden) IsCode(code int) bool
IsCode returns true when this delete policy forbidden response a status code equal to that given
func (*DeletePolicyForbidden) IsRedirect ¶
func (o *DeletePolicyForbidden) IsRedirect() bool
IsRedirect returns true when this delete policy forbidden response has a 3xx status code
func (*DeletePolicyForbidden) IsServerError ¶
func (o *DeletePolicyForbidden) IsServerError() bool
IsServerError returns true when this delete policy forbidden response has a 5xx status code
func (*DeletePolicyForbidden) IsSuccess ¶
func (o *DeletePolicyForbidden) IsSuccess() bool
IsSuccess returns true when this delete policy forbidden response has a 2xx status code
func (*DeletePolicyForbidden) String ¶
func (o *DeletePolicyForbidden) String() string
type DeletePolicyNoContent ¶
type DeletePolicyNoContent struct { }
DeletePolicyNoContent describes a response with status code 204, with default header values.
Policy has been deleted
func NewDeletePolicyNoContent ¶
func NewDeletePolicyNoContent() *DeletePolicyNoContent
NewDeletePolicyNoContent creates a DeletePolicyNoContent with default headers values
func (*DeletePolicyNoContent) Code ¶
func (o *DeletePolicyNoContent) Code() int
Code gets the status code for the delete policy no content response
func (*DeletePolicyNoContent) Error ¶
func (o *DeletePolicyNoContent) Error() string
func (*DeletePolicyNoContent) IsClientError ¶
func (o *DeletePolicyNoContent) IsClientError() bool
IsClientError returns true when this delete policy no content response has a 4xx status code
func (*DeletePolicyNoContent) IsCode ¶
func (o *DeletePolicyNoContent) IsCode(code int) bool
IsCode returns true when this delete policy no content response a status code equal to that given
func (*DeletePolicyNoContent) IsRedirect ¶
func (o *DeletePolicyNoContent) IsRedirect() bool
IsRedirect returns true when this delete policy no content response has a 3xx status code
func (*DeletePolicyNoContent) IsServerError ¶
func (o *DeletePolicyNoContent) IsServerError() bool
IsServerError returns true when this delete policy no content response has a 5xx status code
func (*DeletePolicyNoContent) IsSuccess ¶
func (o *DeletePolicyNoContent) IsSuccess() bool
IsSuccess returns true when this delete policy no content response has a 2xx status code
func (*DeletePolicyNoContent) String ¶
func (o *DeletePolicyNoContent) String() string
type DeletePolicyNotFound ¶
DeletePolicyNotFound describes a response with status code 404, with default header values.
Not found
func NewDeletePolicyNotFound ¶
func NewDeletePolicyNotFound() *DeletePolicyNotFound
NewDeletePolicyNotFound creates a DeletePolicyNotFound with default headers values
func (*DeletePolicyNotFound) Code ¶
func (o *DeletePolicyNotFound) Code() int
Code gets the status code for the delete policy not found response
func (*DeletePolicyNotFound) Error ¶
func (o *DeletePolicyNotFound) Error() string
func (*DeletePolicyNotFound) GetPayload ¶
func (o *DeletePolicyNotFound) GetPayload() *models.Error
func (*DeletePolicyNotFound) IsClientError ¶
func (o *DeletePolicyNotFound) IsClientError() bool
IsClientError returns true when this delete policy not found response has a 4xx status code
func (*DeletePolicyNotFound) IsCode ¶
func (o *DeletePolicyNotFound) IsCode(code int) bool
IsCode returns true when this delete policy not found response a status code equal to that given
func (*DeletePolicyNotFound) IsRedirect ¶
func (o *DeletePolicyNotFound) IsRedirect() bool
IsRedirect returns true when this delete policy not found response has a 3xx status code
func (*DeletePolicyNotFound) IsServerError ¶
func (o *DeletePolicyNotFound) IsServerError() bool
IsServerError returns true when this delete policy not found response has a 5xx status code
func (*DeletePolicyNotFound) IsSuccess ¶
func (o *DeletePolicyNotFound) IsSuccess() bool
IsSuccess returns true when this delete policy not found response has a 2xx status code
func (*DeletePolicyNotFound) String ¶
func (o *DeletePolicyNotFound) String() string
type DeletePolicyParams ¶
type DeletePolicyParams struct { /* IfMatch. A server will only return requested resources if the resource matches one of the listed ETag value Format: etag */ IfMatch *string // Pid. Pid 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) SetIfMatch ¶
func (o *DeletePolicyParams) SetIfMatch(ifMatch *string)
SetIfMatch adds the ifMatch to the delete policy params
func (*DeletePolicyParams) SetPid ¶
func (o *DeletePolicyParams) SetPid(pid string)
SetPid adds the pid 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) WithIfMatch ¶
func (o *DeletePolicyParams) WithIfMatch(ifMatch *string) *DeletePolicyParams
WithIfMatch adds the ifMatch to the delete policy params
func (*DeletePolicyParams) WithPid ¶
func (o *DeletePolicyParams) WithPid(pid string) *DeletePolicyParams
WithPid adds the pid 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) (interface{}, error)
ReadResponse reads a server response into the received o.
type DeletePolicyTooManyRequests ¶
DeletePolicyTooManyRequests describes a response with status code 429, with default header values.
Too many requests
func NewDeletePolicyTooManyRequests ¶
func NewDeletePolicyTooManyRequests() *DeletePolicyTooManyRequests
NewDeletePolicyTooManyRequests creates a DeletePolicyTooManyRequests with default headers values
func (*DeletePolicyTooManyRequests) Code ¶
func (o *DeletePolicyTooManyRequests) Code() int
Code gets the status code for the delete policy too many requests response
func (*DeletePolicyTooManyRequests) Error ¶
func (o *DeletePolicyTooManyRequests) Error() string
func (*DeletePolicyTooManyRequests) GetPayload ¶
func (o *DeletePolicyTooManyRequests) GetPayload() *models.Error
func (*DeletePolicyTooManyRequests) IsClientError ¶
func (o *DeletePolicyTooManyRequests) IsClientError() bool
IsClientError returns true when this delete policy too many requests response has a 4xx status code
func (*DeletePolicyTooManyRequests) IsCode ¶
func (o *DeletePolicyTooManyRequests) IsCode(code int) bool
IsCode returns true when this delete policy too many requests response a status code equal to that given
func (*DeletePolicyTooManyRequests) IsRedirect ¶
func (o *DeletePolicyTooManyRequests) IsRedirect() bool
IsRedirect returns true when this delete policy too many requests response has a 3xx status code
func (*DeletePolicyTooManyRequests) IsServerError ¶
func (o *DeletePolicyTooManyRequests) IsServerError() bool
IsServerError returns true when this delete policy too many requests response has a 5xx status code
func (*DeletePolicyTooManyRequests) IsSuccess ¶
func (o *DeletePolicyTooManyRequests) IsSuccess() bool
IsSuccess returns true when this delete policy too many requests response has a 2xx status code
func (*DeletePolicyTooManyRequests) String ¶
func (o *DeletePolicyTooManyRequests) String() string
type DeletePolicyUnauthorized ¶
type DeletePolicyUnauthorized struct {
}DeletePolicyUnauthorized describes a response with status code 401, with default header values.
Unauthorized
func NewDeletePolicyUnauthorized ¶
func NewDeletePolicyUnauthorized() *DeletePolicyUnauthorized
NewDeletePolicyUnauthorized creates a DeletePolicyUnauthorized with default headers values
func (*DeletePolicyUnauthorized) Code ¶
func (o *DeletePolicyUnauthorized) Code() int
Code gets the status code for the delete policy unauthorized response
func (*DeletePolicyUnauthorized) Error ¶
func (o *DeletePolicyUnauthorized) Error() string
func (*DeletePolicyUnauthorized) GetPayload ¶
func (o *DeletePolicyUnauthorized) GetPayload() *models.Error
func (*DeletePolicyUnauthorized) IsClientError ¶
func (o *DeletePolicyUnauthorized) IsClientError() bool
IsClientError returns true when this delete policy unauthorized response has a 4xx status code
func (*DeletePolicyUnauthorized) IsCode ¶
func (o *DeletePolicyUnauthorized) IsCode(code int) bool
IsCode returns true when this delete policy unauthorized response a status code equal to that given
func (*DeletePolicyUnauthorized) IsRedirect ¶
func (o *DeletePolicyUnauthorized) IsRedirect() bool
IsRedirect returns true when this delete policy unauthorized response has a 3xx status code
func (*DeletePolicyUnauthorized) IsServerError ¶
func (o *DeletePolicyUnauthorized) IsServerError() bool
IsServerError returns true when this delete policy unauthorized response has a 5xx status code
func (*DeletePolicyUnauthorized) IsSuccess ¶
func (o *DeletePolicyUnauthorized) IsSuccess() bool
IsSuccess returns true when this delete policy unauthorized response has a 2xx status code
func (*DeletePolicyUnauthorized) String ¶
func (o *DeletePolicyUnauthorized) String() string
type GetPolicyForbidden ¶
GetPolicyForbidden describes a response with status code 403, with default header values.
Forbidden
func NewGetPolicyForbidden ¶
func NewGetPolicyForbidden() *GetPolicyForbidden
NewGetPolicyForbidden creates a GetPolicyForbidden with default headers values
func (*GetPolicyForbidden) Code ¶
func (o *GetPolicyForbidden) Code() int
Code gets the status code for the get policy forbidden response
func (*GetPolicyForbidden) Error ¶
func (o *GetPolicyForbidden) Error() string
func (*GetPolicyForbidden) GetPayload ¶
func (o *GetPolicyForbidden) GetPayload() *models.Error
func (*GetPolicyForbidden) IsClientError ¶
func (o *GetPolicyForbidden) IsClientError() bool
IsClientError returns true when this get policy forbidden response has a 4xx status code
func (*GetPolicyForbidden) IsCode ¶
func (o *GetPolicyForbidden) IsCode(code int) bool
IsCode returns true when this get policy forbidden response a status code equal to that given
func (*GetPolicyForbidden) IsRedirect ¶
func (o *GetPolicyForbidden) IsRedirect() bool
IsRedirect returns true when this get policy forbidden response has a 3xx status code
func (*GetPolicyForbidden) IsServerError ¶
func (o *GetPolicyForbidden) IsServerError() bool
IsServerError returns true when this get policy forbidden response has a 5xx status code
func (*GetPolicyForbidden) IsSuccess ¶
func (o *GetPolicyForbidden) IsSuccess() bool
IsSuccess returns true when this get policy forbidden response has a 2xx status code
func (*GetPolicyForbidden) String ¶
func (o *GetPolicyForbidden) String() string
type GetPolicyNotFound ¶
GetPolicyNotFound describes a response with status code 404, with default header values.
Not found
func NewGetPolicyNotFound ¶
func NewGetPolicyNotFound() *GetPolicyNotFound
NewGetPolicyNotFound creates a GetPolicyNotFound with default headers values
func (*GetPolicyNotFound) Code ¶
func (o *GetPolicyNotFound) Code() int
Code gets the status code for the get policy not found response
func (*GetPolicyNotFound) Error ¶
func (o *GetPolicyNotFound) Error() string
func (*GetPolicyNotFound) GetPayload ¶
func (o *GetPolicyNotFound) GetPayload() *models.Error
func (*GetPolicyNotFound) IsClientError ¶
func (o *GetPolicyNotFound) IsClientError() bool
IsClientError returns true when this get policy not found response has a 4xx status code
func (*GetPolicyNotFound) IsCode ¶
func (o *GetPolicyNotFound) IsCode(code int) bool
IsCode returns true when this get policy not found response a status code equal to that given
func (*GetPolicyNotFound) IsRedirect ¶
func (o *GetPolicyNotFound) IsRedirect() bool
IsRedirect returns true when this get policy not found response has a 3xx status code
func (*GetPolicyNotFound) IsServerError ¶
func (o *GetPolicyNotFound) IsServerError() bool
IsServerError returns true when this get policy not found response has a 5xx status code
func (*GetPolicyNotFound) IsSuccess ¶
func (o *GetPolicyNotFound) IsSuccess() bool
IsSuccess returns true when this get policy not found response has a 2xx status code
func (*GetPolicyNotFound) String ¶
func (o *GetPolicyNotFound) String() string
type GetPolicyOK ¶
type GetPolicyOK struct { /* The ETag HTTP header is an identifier for a specific version of a resource in:header Format: etag */ Etag string Payload *models.Policy }
GetPolicyOK describes a response with status code 200, with default header values.
Policy
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.Policy
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 { /* IfMatch. A server will only return requested resources if the resource matches one of the listed ETag value Format: etag */ IfMatch *string /* Pid. ID of your policy */ Pid 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) SetIfMatch ¶
func (o *GetPolicyParams) SetIfMatch(ifMatch *string)
SetIfMatch adds the ifMatch to the get policy params
func (*GetPolicyParams) SetPid ¶
func (o *GetPolicyParams) SetPid(pid string)
SetPid adds the pid 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) WithIfMatch ¶
func (o *GetPolicyParams) WithIfMatch(ifMatch *string) *GetPolicyParams
WithIfMatch adds the ifMatch to the get policy params
func (*GetPolicyParams) WithPid ¶
func (o *GetPolicyParams) WithPid(pid string) *GetPolicyParams
WithPid adds the pid 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) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetPolicyTooManyRequests ¶
GetPolicyTooManyRequests describes a response with status code 429, with default header values.
Too many requests
func NewGetPolicyTooManyRequests ¶
func NewGetPolicyTooManyRequests() *GetPolicyTooManyRequests
NewGetPolicyTooManyRequests creates a GetPolicyTooManyRequests with default headers values
func (*GetPolicyTooManyRequests) Code ¶
func (o *GetPolicyTooManyRequests) Code() int
Code gets the status code for the get policy too many requests response
func (*GetPolicyTooManyRequests) Error ¶
func (o *GetPolicyTooManyRequests) Error() string
func (*GetPolicyTooManyRequests) GetPayload ¶
func (o *GetPolicyTooManyRequests) GetPayload() *models.Error
func (*GetPolicyTooManyRequests) IsClientError ¶
func (o *GetPolicyTooManyRequests) IsClientError() bool
IsClientError returns true when this get policy too many requests response has a 4xx status code
func (*GetPolicyTooManyRequests) IsCode ¶
func (o *GetPolicyTooManyRequests) IsCode(code int) bool
IsCode returns true when this get policy too many requests response a status code equal to that given
func (*GetPolicyTooManyRequests) IsRedirect ¶
func (o *GetPolicyTooManyRequests) IsRedirect() bool
IsRedirect returns true when this get policy too many requests response has a 3xx status code
func (*GetPolicyTooManyRequests) IsServerError ¶
func (o *GetPolicyTooManyRequests) IsServerError() bool
IsServerError returns true when this get policy too many requests response has a 5xx status code
func (*GetPolicyTooManyRequests) IsSuccess ¶
func (o *GetPolicyTooManyRequests) IsSuccess() bool
IsSuccess returns true when this get policy too many requests response has a 2xx status code
func (*GetPolicyTooManyRequests) String ¶
func (o *GetPolicyTooManyRequests) String() string
type GetPolicyUnauthorized ¶
type GetPolicyUnauthorized struct {
}GetPolicyUnauthorized describes a response with status code 401, with default header values.
Unauthorized
func NewGetPolicyUnauthorized ¶
func NewGetPolicyUnauthorized() *GetPolicyUnauthorized
NewGetPolicyUnauthorized creates a GetPolicyUnauthorized with default headers values
func (*GetPolicyUnauthorized) Code ¶
func (o *GetPolicyUnauthorized) Code() int
Code gets the status code for the get policy unauthorized response
func (*GetPolicyUnauthorized) Error ¶
func (o *GetPolicyUnauthorized) Error() string
func (*GetPolicyUnauthorized) GetPayload ¶
func (o *GetPolicyUnauthorized) GetPayload() *models.Error
func (*GetPolicyUnauthorized) IsClientError ¶
func (o *GetPolicyUnauthorized) IsClientError() bool
IsClientError returns true when this get policy unauthorized response has a 4xx status code
func (*GetPolicyUnauthorized) IsCode ¶
func (o *GetPolicyUnauthorized) IsCode(code int) bool
IsCode returns true when this get policy unauthorized response a status code equal to that given
func (*GetPolicyUnauthorized) IsRedirect ¶
func (o *GetPolicyUnauthorized) IsRedirect() bool
IsRedirect returns true when this get policy unauthorized response has a 3xx status code
func (*GetPolicyUnauthorized) IsServerError ¶
func (o *GetPolicyUnauthorized) IsServerError() bool
IsServerError returns true when this get policy unauthorized response has a 5xx status code
func (*GetPolicyUnauthorized) IsSuccess ¶
func (o *GetPolicyUnauthorized) IsSuccess() bool
IsSuccess returns true when this get policy unauthorized response has a 2xx status code
func (*GetPolicyUnauthorized) String ¶
func (o *GetPolicyUnauthorized) String() string
type ListPoliciesBadRequest ¶
ListPoliciesBadRequest describes a response with status code 400, with default header values.
Bad request
func NewListPoliciesBadRequest ¶
func NewListPoliciesBadRequest() *ListPoliciesBadRequest
NewListPoliciesBadRequest creates a ListPoliciesBadRequest with default headers values
func (*ListPoliciesBadRequest) Code ¶
func (o *ListPoliciesBadRequest) Code() int
Code gets the status code for the list policies bad request response
func (*ListPoliciesBadRequest) Error ¶
func (o *ListPoliciesBadRequest) Error() string
func (*ListPoliciesBadRequest) GetPayload ¶
func (o *ListPoliciesBadRequest) GetPayload() *models.Error
func (*ListPoliciesBadRequest) IsClientError ¶
func (o *ListPoliciesBadRequest) IsClientError() bool
IsClientError returns true when this list policies bad request response has a 4xx status code
func (*ListPoliciesBadRequest) IsCode ¶
func (o *ListPoliciesBadRequest) IsCode(code int) bool
IsCode returns true when this list policies bad request response a status code equal to that given
func (*ListPoliciesBadRequest) IsRedirect ¶
func (o *ListPoliciesBadRequest) IsRedirect() bool
IsRedirect returns true when this list policies bad request response has a 3xx status code
func (*ListPoliciesBadRequest) IsServerError ¶
func (o *ListPoliciesBadRequest) IsServerError() bool
IsServerError returns true when this list policies bad request response has a 5xx status code
func (*ListPoliciesBadRequest) IsSuccess ¶
func (o *ListPoliciesBadRequest) IsSuccess() bool
IsSuccess returns true when this list policies bad request response has a 2xx status code
func (*ListPoliciesBadRequest) String ¶
func (o *ListPoliciesBadRequest) String() string
type ListPoliciesForbidden ¶
ListPoliciesForbidden describes a response with status code 403, with default header values.
Forbidden
func NewListPoliciesForbidden ¶
func NewListPoliciesForbidden() *ListPoliciesForbidden
NewListPoliciesForbidden creates a ListPoliciesForbidden with default headers values
func (*ListPoliciesForbidden) Code ¶
func (o *ListPoliciesForbidden) Code() int
Code gets the status code for the list policies forbidden response
func (*ListPoliciesForbidden) Error ¶
func (o *ListPoliciesForbidden) Error() string
func (*ListPoliciesForbidden) GetPayload ¶
func (o *ListPoliciesForbidden) GetPayload() *models.Error
func (*ListPoliciesForbidden) IsClientError ¶
func (o *ListPoliciesForbidden) IsClientError() bool
IsClientError returns true when this list policies forbidden response has a 4xx status code
func (*ListPoliciesForbidden) IsCode ¶
func (o *ListPoliciesForbidden) IsCode(code int) bool
IsCode returns true when this list policies forbidden response a status code equal to that given
func (*ListPoliciesForbidden) IsRedirect ¶
func (o *ListPoliciesForbidden) IsRedirect() bool
IsRedirect returns true when this list policies forbidden response has a 3xx status code
func (*ListPoliciesForbidden) IsServerError ¶
func (o *ListPoliciesForbidden) IsServerError() bool
IsServerError returns true when this list policies forbidden response has a 5xx status code
func (*ListPoliciesForbidden) IsSuccess ¶
func (o *ListPoliciesForbidden) IsSuccess() bool
IsSuccess returns true when this list policies forbidden response has a 2xx status code
func (*ListPoliciesForbidden) String ¶
func (o *ListPoliciesForbidden) String() string
type ListPoliciesOK ¶
type ListPoliciesOK struct { /* The ETag HTTP header is an identifier for a specific version of a resource in:header Format: etag */ Etag string Payload *models.Policies }
ListPoliciesOK describes a response with status code 200, with default header values.
Policies
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.Policies
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 { /* AfterPolicyID. String represented policy ID The `AfterPolicyID` parameter defines the ID of the last displayed policy on a page. For example, if there are 20 policies and only 10 are displayed per page, in order to jump to the next page, you need to provide the ID of the last policy on that page as the value of the `AfterPolicyID` parameter. AfterPolicyID */ AfterPolicyID *string /* BeforePolicyID. String represented policy ID The `BeforePolicyID` parameter defines the ID of the last displayed policy on a page. For example, if there are 20 policies and only 10 are displayed per page, in order to jump to the previous page, you need to provide the ID of the first policy on that page as the value of the `Before PolicyID` parameter. BeforePolicyID */ BeforePolicyID *string /* IfMatch. A server will only return requested resources if the resource matches one of the listed ETag value Format: etag */ IfMatch *string /* Limit. A limit of displayed results per page for listed policies Limit Format: int64 Default: 20 */ Limit *int64 /* Order. An ascending or descending order of sorting the policies Order */ Order *string /* PolicyTypes. An array of policy types that are to be filtered out Default: "api" */ PolicyTypes *string /* SearchPhrase. An optional and case insensitive search phrase that contains either a policy ID or a policy name substring SearchPhrase */ SearchPhrase *string /* Sort. Defines the method of sorting the results by a given field Sort */ Sort *string /* Wid. Id of your authorization server (workspace) Default: "default" */ Wid string 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) SetAfterPolicyID ¶
func (o *ListPoliciesParams) SetAfterPolicyID(afterPolicyID *string)
SetAfterPolicyID adds the afterPolicyId to the list policies params
func (*ListPoliciesParams) SetBeforePolicyID ¶
func (o *ListPoliciesParams) SetBeforePolicyID(beforePolicyID *string)
SetBeforePolicyID adds the beforePolicyId 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) SetIfMatch ¶
func (o *ListPoliciesParams) SetIfMatch(ifMatch *string)
SetIfMatch adds the ifMatch to the list policies params
func (*ListPoliciesParams) SetLimit ¶
func (o *ListPoliciesParams) SetLimit(limit *int64)
SetLimit adds the limit to the list policies params
func (*ListPoliciesParams) SetOrder ¶
func (o *ListPoliciesParams) SetOrder(order *string)
SetOrder adds the order to the list policies params
func (*ListPoliciesParams) SetPolicyTypes ¶
func (o *ListPoliciesParams) SetPolicyTypes(policyTypes *string)
SetPolicyTypes adds the policyTypes to the list policies params
func (*ListPoliciesParams) SetSearchPhrase ¶
func (o *ListPoliciesParams) SetSearchPhrase(searchPhrase *string)
SetSearchPhrase adds the searchPhrase to the list policies params
func (*ListPoliciesParams) SetSort ¶
func (o *ListPoliciesParams) SetSort(sort *string)
SetSort adds the sort 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) SetWid ¶
func (o *ListPoliciesParams) SetWid(wid string)
SetWid adds the wid to the list policies params
func (*ListPoliciesParams) WithAfterPolicyID ¶
func (o *ListPoliciesParams) WithAfterPolicyID(afterPolicyID *string) *ListPoliciesParams
WithAfterPolicyID adds the afterPolicyID to the list policies params
func (*ListPoliciesParams) WithBeforePolicyID ¶
func (o *ListPoliciesParams) WithBeforePolicyID(beforePolicyID *string) *ListPoliciesParams
WithBeforePolicyID adds the beforePolicyID 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) WithIfMatch ¶
func (o *ListPoliciesParams) WithIfMatch(ifMatch *string) *ListPoliciesParams
WithIfMatch adds the ifMatch to the list policies params
func (*ListPoliciesParams) WithLimit ¶
func (o *ListPoliciesParams) WithLimit(limit *int64) *ListPoliciesParams
WithLimit adds the limit to the list policies params
func (*ListPoliciesParams) WithOrder ¶
func (o *ListPoliciesParams) WithOrder(order *string) *ListPoliciesParams
WithOrder adds the order to the list policies params
func (*ListPoliciesParams) WithPolicyTypes ¶
func (o *ListPoliciesParams) WithPolicyTypes(policyTypes *string) *ListPoliciesParams
WithPolicyTypes adds the policyTypes to the list policies params
func (*ListPoliciesParams) WithSearchPhrase ¶
func (o *ListPoliciesParams) WithSearchPhrase(searchPhrase *string) *ListPoliciesParams
WithSearchPhrase adds the searchPhrase to the list policies params
func (*ListPoliciesParams) WithSort ¶
func (o *ListPoliciesParams) WithSort(sort *string) *ListPoliciesParams
WithSort adds the sort 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) WithWid ¶
func (o *ListPoliciesParams) WithWid(wid string) *ListPoliciesParams
WithWid adds the wid 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) (interface{}, error)
ReadResponse reads a server response into the received o.
type ListPoliciesTooManyRequests ¶
ListPoliciesTooManyRequests describes a response with status code 429, with default header values.
Too many requests
func NewListPoliciesTooManyRequests ¶
func NewListPoliciesTooManyRequests() *ListPoliciesTooManyRequests
NewListPoliciesTooManyRequests creates a ListPoliciesTooManyRequests with default headers values
func (*ListPoliciesTooManyRequests) Code ¶
func (o *ListPoliciesTooManyRequests) Code() int
Code gets the status code for the list policies too many requests response
func (*ListPoliciesTooManyRequests) Error ¶
func (o *ListPoliciesTooManyRequests) Error() string
func (*ListPoliciesTooManyRequests) GetPayload ¶
func (o *ListPoliciesTooManyRequests) GetPayload() *models.Error
func (*ListPoliciesTooManyRequests) IsClientError ¶
func (o *ListPoliciesTooManyRequests) IsClientError() bool
IsClientError returns true when this list policies too many requests response has a 4xx status code
func (*ListPoliciesTooManyRequests) IsCode ¶
func (o *ListPoliciesTooManyRequests) IsCode(code int) bool
IsCode returns true when this list policies too many requests response a status code equal to that given
func (*ListPoliciesTooManyRequests) IsRedirect ¶
func (o *ListPoliciesTooManyRequests) IsRedirect() bool
IsRedirect returns true when this list policies too many requests response has a 3xx status code
func (*ListPoliciesTooManyRequests) IsServerError ¶
func (o *ListPoliciesTooManyRequests) IsServerError() bool
IsServerError returns true when this list policies too many requests response has a 5xx status code
func (*ListPoliciesTooManyRequests) IsSuccess ¶
func (o *ListPoliciesTooManyRequests) IsSuccess() bool
IsSuccess returns true when this list policies too many requests response has a 2xx status code
func (*ListPoliciesTooManyRequests) String ¶
func (o *ListPoliciesTooManyRequests) String() string
type ListPoliciesUnauthorized ¶
type ListPoliciesUnauthorized struct {
}ListPoliciesUnauthorized describes a response with status code 401, with default header values.
Unauthorized
func NewListPoliciesUnauthorized ¶
func NewListPoliciesUnauthorized() *ListPoliciesUnauthorized
NewListPoliciesUnauthorized creates a ListPoliciesUnauthorized with default headers values
func (*ListPoliciesUnauthorized) Code ¶
func (o *ListPoliciesUnauthorized) Code() int
Code gets the status code for the list policies unauthorized response
func (*ListPoliciesUnauthorized) Error ¶
func (o *ListPoliciesUnauthorized) Error() string
func (*ListPoliciesUnauthorized) GetPayload ¶
func (o *ListPoliciesUnauthorized) GetPayload() *models.Error
func (*ListPoliciesUnauthorized) IsClientError ¶
func (o *ListPoliciesUnauthorized) IsClientError() bool
IsClientError returns true when this list policies unauthorized response has a 4xx status code
func (*ListPoliciesUnauthorized) IsCode ¶
func (o *ListPoliciesUnauthorized) IsCode(code int) bool
IsCode returns true when this list policies unauthorized response a status code equal to that given
func (*ListPoliciesUnauthorized) IsRedirect ¶
func (o *ListPoliciesUnauthorized) IsRedirect() bool
IsRedirect returns true when this list policies unauthorized response has a 3xx status code
func (*ListPoliciesUnauthorized) IsServerError ¶
func (o *ListPoliciesUnauthorized) IsServerError() bool
IsServerError returns true when this list policies unauthorized response has a 5xx status code
func (*ListPoliciesUnauthorized) IsSuccess ¶
func (o *ListPoliciesUnauthorized) IsSuccess() bool
IsSuccess returns true when this list policies unauthorized response has a 2xx status code
func (*ListPoliciesUnauthorized) String ¶
func (o *ListPoliciesUnauthorized) String() string
type ListPolicyExecutionPointsForbidden ¶
ListPolicyExecutionPointsForbidden describes a response with status code 403, with default header values.
Forbidden
func NewListPolicyExecutionPointsForbidden ¶
func NewListPolicyExecutionPointsForbidden() *ListPolicyExecutionPointsForbidden
NewListPolicyExecutionPointsForbidden creates a ListPolicyExecutionPointsForbidden with default headers values
func (*ListPolicyExecutionPointsForbidden) Code ¶
func (o *ListPolicyExecutionPointsForbidden) Code() int
Code gets the status code for the list policy execution points forbidden response
func (*ListPolicyExecutionPointsForbidden) Error ¶
func (o *ListPolicyExecutionPointsForbidden) Error() string
func (*ListPolicyExecutionPointsForbidden) GetPayload ¶
func (o *ListPolicyExecutionPointsForbidden) GetPayload() *models.Error
func (*ListPolicyExecutionPointsForbidden) IsClientError ¶
func (o *ListPolicyExecutionPointsForbidden) IsClientError() bool
IsClientError returns true when this list policy execution points forbidden response has a 4xx status code
func (*ListPolicyExecutionPointsForbidden) IsCode ¶
func (o *ListPolicyExecutionPointsForbidden) IsCode(code int) bool
IsCode returns true when this list policy execution points forbidden response a status code equal to that given
func (*ListPolicyExecutionPointsForbidden) IsRedirect ¶
func (o *ListPolicyExecutionPointsForbidden) IsRedirect() bool
IsRedirect returns true when this list policy execution points forbidden response has a 3xx status code
func (*ListPolicyExecutionPointsForbidden) IsServerError ¶
func (o *ListPolicyExecutionPointsForbidden) IsServerError() bool
IsServerError returns true when this list policy execution points forbidden response has a 5xx status code
func (*ListPolicyExecutionPointsForbidden) IsSuccess ¶
func (o *ListPolicyExecutionPointsForbidden) IsSuccess() bool
IsSuccess returns true when this list policy execution points forbidden response has a 2xx status code
func (*ListPolicyExecutionPointsForbidden) String ¶
func (o *ListPolicyExecutionPointsForbidden) String() string
type ListPolicyExecutionPointsOK ¶
type ListPolicyExecutionPointsOK struct { /* The ETag HTTP header is an identifier for a specific version of a resource in:header Format: etag */ Etag string Payload *models.PolicyExecutionPoints }
ListPolicyExecutionPointsOK describes a response with status code 200, with default header values.
Policy execution points
func NewListPolicyExecutionPointsOK ¶
func NewListPolicyExecutionPointsOK() *ListPolicyExecutionPointsOK
NewListPolicyExecutionPointsOK creates a ListPolicyExecutionPointsOK with default headers values
func (*ListPolicyExecutionPointsOK) Code ¶
func (o *ListPolicyExecutionPointsOK) Code() int
Code gets the status code for the list policy execution points o k response
func (*ListPolicyExecutionPointsOK) Error ¶
func (o *ListPolicyExecutionPointsOK) Error() string
func (*ListPolicyExecutionPointsOK) GetPayload ¶
func (o *ListPolicyExecutionPointsOK) GetPayload() *models.PolicyExecutionPoints
func (*ListPolicyExecutionPointsOK) IsClientError ¶
func (o *ListPolicyExecutionPointsOK) IsClientError() bool
IsClientError returns true when this list policy execution points o k response has a 4xx status code
func (*ListPolicyExecutionPointsOK) IsCode ¶
func (o *ListPolicyExecutionPointsOK) IsCode(code int) bool
IsCode returns true when this list policy execution points o k response a status code equal to that given
func (*ListPolicyExecutionPointsOK) IsRedirect ¶
func (o *ListPolicyExecutionPointsOK) IsRedirect() bool
IsRedirect returns true when this list policy execution points o k response has a 3xx status code
func (*ListPolicyExecutionPointsOK) IsServerError ¶
func (o *ListPolicyExecutionPointsOK) IsServerError() bool
IsServerError returns true when this list policy execution points o k response has a 5xx status code
func (*ListPolicyExecutionPointsOK) IsSuccess ¶
func (o *ListPolicyExecutionPointsOK) IsSuccess() bool
IsSuccess returns true when this list policy execution points o k response has a 2xx status code
func (*ListPolicyExecutionPointsOK) String ¶
func (o *ListPolicyExecutionPointsOK) String() string
type ListPolicyExecutionPointsParams ¶
type ListPolicyExecutionPointsParams struct { /* IfMatch. A server will only return requested resources if the resource matches one of the listed ETag value Format: etag */ IfMatch *string /* Wid. Authorization server id Default: "default" */ Wid string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
ListPolicyExecutionPointsParams contains all the parameters to send to the API endpoint
for the list policy execution points operation. Typically these are written to a http.Request.
func NewListPolicyExecutionPointsParams ¶
func NewListPolicyExecutionPointsParams() *ListPolicyExecutionPointsParams
NewListPolicyExecutionPointsParams creates a new ListPolicyExecutionPointsParams 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 NewListPolicyExecutionPointsParamsWithContext ¶
func NewListPolicyExecutionPointsParamsWithContext(ctx context.Context) *ListPolicyExecutionPointsParams
NewListPolicyExecutionPointsParamsWithContext creates a new ListPolicyExecutionPointsParams object with the ability to set a context for a request.
func NewListPolicyExecutionPointsParamsWithHTTPClient ¶
func NewListPolicyExecutionPointsParamsWithHTTPClient(client *http.Client) *ListPolicyExecutionPointsParams
NewListPolicyExecutionPointsParamsWithHTTPClient creates a new ListPolicyExecutionPointsParams object with the ability to set a custom HTTPClient for a request.
func NewListPolicyExecutionPointsParamsWithTimeout ¶
func NewListPolicyExecutionPointsParamsWithTimeout(timeout time.Duration) *ListPolicyExecutionPointsParams
NewListPolicyExecutionPointsParamsWithTimeout creates a new ListPolicyExecutionPointsParams object with the ability to set a timeout on a request.
func (*ListPolicyExecutionPointsParams) SetContext ¶
func (o *ListPolicyExecutionPointsParams) SetContext(ctx context.Context)
SetContext adds the context to the list policy execution points params
func (*ListPolicyExecutionPointsParams) SetDefaults ¶
func (o *ListPolicyExecutionPointsParams) SetDefaults()
SetDefaults hydrates default values in the list policy execution points params (not the query body).
All values with no default are reset to their zero value.
func (*ListPolicyExecutionPointsParams) SetHTTPClient ¶
func (o *ListPolicyExecutionPointsParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the list policy execution points params
func (*ListPolicyExecutionPointsParams) SetIfMatch ¶
func (o *ListPolicyExecutionPointsParams) SetIfMatch(ifMatch *string)
SetIfMatch adds the ifMatch to the list policy execution points params
func (*ListPolicyExecutionPointsParams) SetTimeout ¶
func (o *ListPolicyExecutionPointsParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the list policy execution points params
func (*ListPolicyExecutionPointsParams) SetWid ¶
func (o *ListPolicyExecutionPointsParams) SetWid(wid string)
SetWid adds the wid to the list policy execution points params
func (*ListPolicyExecutionPointsParams) WithContext ¶
func (o *ListPolicyExecutionPointsParams) WithContext(ctx context.Context) *ListPolicyExecutionPointsParams
WithContext adds the context to the list policy execution points params
func (*ListPolicyExecutionPointsParams) WithDefaults ¶
func (o *ListPolicyExecutionPointsParams) WithDefaults() *ListPolicyExecutionPointsParams
WithDefaults hydrates default values in the list policy execution points params (not the query body).
All values with no default are reset to their zero value.
func (*ListPolicyExecutionPointsParams) WithHTTPClient ¶
func (o *ListPolicyExecutionPointsParams) WithHTTPClient(client *http.Client) *ListPolicyExecutionPointsParams
WithHTTPClient adds the HTTPClient to the list policy execution points params
func (*ListPolicyExecutionPointsParams) WithIfMatch ¶
func (o *ListPolicyExecutionPointsParams) WithIfMatch(ifMatch *string) *ListPolicyExecutionPointsParams
WithIfMatch adds the ifMatch to the list policy execution points params
func (*ListPolicyExecutionPointsParams) WithTimeout ¶
func (o *ListPolicyExecutionPointsParams) WithTimeout(timeout time.Duration) *ListPolicyExecutionPointsParams
WithTimeout adds the timeout to the list policy execution points params
func (*ListPolicyExecutionPointsParams) WithWid ¶
func (o *ListPolicyExecutionPointsParams) WithWid(wid string) *ListPolicyExecutionPointsParams
WithWid adds the wid to the list policy execution points params
func (*ListPolicyExecutionPointsParams) WriteToRequest ¶
func (o *ListPolicyExecutionPointsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type ListPolicyExecutionPointsReader ¶
type ListPolicyExecutionPointsReader struct {
// contains filtered or unexported fields
}
ListPolicyExecutionPointsReader is a Reader for the ListPolicyExecutionPoints structure.
func (*ListPolicyExecutionPointsReader) ReadResponse ¶
func (o *ListPolicyExecutionPointsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type ListPolicyExecutionPointsTooManyRequests ¶
ListPolicyExecutionPointsTooManyRequests describes a response with status code 429, with default header values.
Too many requests
func NewListPolicyExecutionPointsTooManyRequests ¶
func NewListPolicyExecutionPointsTooManyRequests() *ListPolicyExecutionPointsTooManyRequests
NewListPolicyExecutionPointsTooManyRequests creates a ListPolicyExecutionPointsTooManyRequests with default headers values
func (*ListPolicyExecutionPointsTooManyRequests) Code ¶
func (o *ListPolicyExecutionPointsTooManyRequests) Code() int
Code gets the status code for the list policy execution points too many requests response
func (*ListPolicyExecutionPointsTooManyRequests) Error ¶
func (o *ListPolicyExecutionPointsTooManyRequests) Error() string
func (*ListPolicyExecutionPointsTooManyRequests) GetPayload ¶
func (o *ListPolicyExecutionPointsTooManyRequests) GetPayload() *models.Error
func (*ListPolicyExecutionPointsTooManyRequests) IsClientError ¶
func (o *ListPolicyExecutionPointsTooManyRequests) IsClientError() bool
IsClientError returns true when this list policy execution points too many requests response has a 4xx status code
func (*ListPolicyExecutionPointsTooManyRequests) IsCode ¶
func (o *ListPolicyExecutionPointsTooManyRequests) IsCode(code int) bool
IsCode returns true when this list policy execution points too many requests response a status code equal to that given
func (*ListPolicyExecutionPointsTooManyRequests) IsRedirect ¶
func (o *ListPolicyExecutionPointsTooManyRequests) IsRedirect() bool
IsRedirect returns true when this list policy execution points too many requests response has a 3xx status code
func (*ListPolicyExecutionPointsTooManyRequests) IsServerError ¶
func (o *ListPolicyExecutionPointsTooManyRequests) IsServerError() bool
IsServerError returns true when this list policy execution points too many requests response has a 5xx status code
func (*ListPolicyExecutionPointsTooManyRequests) IsSuccess ¶
func (o *ListPolicyExecutionPointsTooManyRequests) IsSuccess() bool
IsSuccess returns true when this list policy execution points too many requests response has a 2xx status code
func (*ListPolicyExecutionPointsTooManyRequests) String ¶
func (o *ListPolicyExecutionPointsTooManyRequests) String() string
type ListPolicyExecutionPointsUnauthorized ¶
type ListPolicyExecutionPointsUnauthorized struct {
}ListPolicyExecutionPointsUnauthorized describes a response with status code 401, with default header values.
Unauthorized
func NewListPolicyExecutionPointsUnauthorized ¶
func NewListPolicyExecutionPointsUnauthorized() *ListPolicyExecutionPointsUnauthorized
NewListPolicyExecutionPointsUnauthorized creates a ListPolicyExecutionPointsUnauthorized with default headers values
func (*ListPolicyExecutionPointsUnauthorized) Code ¶
func (o *ListPolicyExecutionPointsUnauthorized) Code() int
Code gets the status code for the list policy execution points unauthorized response
func (*ListPolicyExecutionPointsUnauthorized) Error ¶
func (o *ListPolicyExecutionPointsUnauthorized) Error() string
func (*ListPolicyExecutionPointsUnauthorized) GetPayload ¶
func (o *ListPolicyExecutionPointsUnauthorized) GetPayload() *models.Error
func (*ListPolicyExecutionPointsUnauthorized) IsClientError ¶
func (o *ListPolicyExecutionPointsUnauthorized) IsClientError() bool
IsClientError returns true when this list policy execution points unauthorized response has a 4xx status code
func (*ListPolicyExecutionPointsUnauthorized) IsCode ¶
func (o *ListPolicyExecutionPointsUnauthorized) IsCode(code int) bool
IsCode returns true when this list policy execution points unauthorized response a status code equal to that given
func (*ListPolicyExecutionPointsUnauthorized) IsRedirect ¶
func (o *ListPolicyExecutionPointsUnauthorized) IsRedirect() bool
IsRedirect returns true when this list policy execution points unauthorized response has a 3xx status code
func (*ListPolicyExecutionPointsUnauthorized) IsServerError ¶
func (o *ListPolicyExecutionPointsUnauthorized) IsServerError() bool
IsServerError returns true when this list policy execution points unauthorized response has a 5xx status code
func (*ListPolicyExecutionPointsUnauthorized) IsSuccess ¶
func (o *ListPolicyExecutionPointsUnauthorized) IsSuccess() bool
IsSuccess returns true when this list policy execution points unauthorized response has a 2xx status code
func (*ListPolicyExecutionPointsUnauthorized) String ¶
func (o *ListPolicyExecutionPointsUnauthorized) String() string
type SetPolicyExecutionPointsBadRequest ¶
SetPolicyExecutionPointsBadRequest describes a response with status code 400, with default header values.
Bad request
func NewSetPolicyExecutionPointsBadRequest ¶
func NewSetPolicyExecutionPointsBadRequest() *SetPolicyExecutionPointsBadRequest
NewSetPolicyExecutionPointsBadRequest creates a SetPolicyExecutionPointsBadRequest with default headers values
func (*SetPolicyExecutionPointsBadRequest) Code ¶
func (o *SetPolicyExecutionPointsBadRequest) Code() int
Code gets the status code for the set policy execution points bad request response
func (*SetPolicyExecutionPointsBadRequest) Error ¶
func (o *SetPolicyExecutionPointsBadRequest) Error() string
func (*SetPolicyExecutionPointsBadRequest) GetPayload ¶
func (o *SetPolicyExecutionPointsBadRequest) GetPayload() *models.Error
func (*SetPolicyExecutionPointsBadRequest) IsClientError ¶
func (o *SetPolicyExecutionPointsBadRequest) IsClientError() bool
IsClientError returns true when this set policy execution points bad request response has a 4xx status code
func (*SetPolicyExecutionPointsBadRequest) IsCode ¶
func (o *SetPolicyExecutionPointsBadRequest) IsCode(code int) bool
IsCode returns true when this set policy execution points bad request response a status code equal to that given
func (*SetPolicyExecutionPointsBadRequest) IsRedirect ¶
func (o *SetPolicyExecutionPointsBadRequest) IsRedirect() bool
IsRedirect returns true when this set policy execution points bad request response has a 3xx status code
func (*SetPolicyExecutionPointsBadRequest) IsServerError ¶
func (o *SetPolicyExecutionPointsBadRequest) IsServerError() bool
IsServerError returns true when this set policy execution points bad request response has a 5xx status code
func (*SetPolicyExecutionPointsBadRequest) IsSuccess ¶
func (o *SetPolicyExecutionPointsBadRequest) IsSuccess() bool
IsSuccess returns true when this set policy execution points bad request response has a 2xx status code
func (*SetPolicyExecutionPointsBadRequest) String ¶
func (o *SetPolicyExecutionPointsBadRequest) String() string
type SetPolicyExecutionPointsConflict ¶
SetPolicyExecutionPointsConflict describes a response with status code 409, with default header values.
Conflict
func NewSetPolicyExecutionPointsConflict ¶
func NewSetPolicyExecutionPointsConflict() *SetPolicyExecutionPointsConflict
NewSetPolicyExecutionPointsConflict creates a SetPolicyExecutionPointsConflict with default headers values
func (*SetPolicyExecutionPointsConflict) Code ¶
func (o *SetPolicyExecutionPointsConflict) Code() int
Code gets the status code for the set policy execution points conflict response
func (*SetPolicyExecutionPointsConflict) Error ¶
func (o *SetPolicyExecutionPointsConflict) Error() string
func (*SetPolicyExecutionPointsConflict) GetPayload ¶
func (o *SetPolicyExecutionPointsConflict) GetPayload() *models.Error
func (*SetPolicyExecutionPointsConflict) IsClientError ¶
func (o *SetPolicyExecutionPointsConflict) IsClientError() bool
IsClientError returns true when this set policy execution points conflict response has a 4xx status code
func (*SetPolicyExecutionPointsConflict) IsCode ¶
func (o *SetPolicyExecutionPointsConflict) IsCode(code int) bool
IsCode returns true when this set policy execution points conflict response a status code equal to that given
func (*SetPolicyExecutionPointsConflict) IsRedirect ¶
func (o *SetPolicyExecutionPointsConflict) IsRedirect() bool
IsRedirect returns true when this set policy execution points conflict response has a 3xx status code
func (*SetPolicyExecutionPointsConflict) IsServerError ¶
func (o *SetPolicyExecutionPointsConflict) IsServerError() bool
IsServerError returns true when this set policy execution points conflict response has a 5xx status code
func (*SetPolicyExecutionPointsConflict) IsSuccess ¶
func (o *SetPolicyExecutionPointsConflict) IsSuccess() bool
IsSuccess returns true when this set policy execution points conflict response has a 2xx status code
func (*SetPolicyExecutionPointsConflict) String ¶
func (o *SetPolicyExecutionPointsConflict) String() string
type SetPolicyExecutionPointsForbidden ¶
SetPolicyExecutionPointsForbidden describes a response with status code 403, with default header values.
Forbidden
func NewSetPolicyExecutionPointsForbidden ¶
func NewSetPolicyExecutionPointsForbidden() *SetPolicyExecutionPointsForbidden
NewSetPolicyExecutionPointsForbidden creates a SetPolicyExecutionPointsForbidden with default headers values
func (*SetPolicyExecutionPointsForbidden) Code ¶
func (o *SetPolicyExecutionPointsForbidden) Code() int
Code gets the status code for the set policy execution points forbidden response
func (*SetPolicyExecutionPointsForbidden) Error ¶
func (o *SetPolicyExecutionPointsForbidden) Error() string
func (*SetPolicyExecutionPointsForbidden) GetPayload ¶
func (o *SetPolicyExecutionPointsForbidden) GetPayload() *models.Error
func (*SetPolicyExecutionPointsForbidden) IsClientError ¶
func (o *SetPolicyExecutionPointsForbidden) IsClientError() bool
IsClientError returns true when this set policy execution points forbidden response has a 4xx status code
func (*SetPolicyExecutionPointsForbidden) IsCode ¶
func (o *SetPolicyExecutionPointsForbidden) IsCode(code int) bool
IsCode returns true when this set policy execution points forbidden response a status code equal to that given
func (*SetPolicyExecutionPointsForbidden) IsRedirect ¶
func (o *SetPolicyExecutionPointsForbidden) IsRedirect() bool
IsRedirect returns true when this set policy execution points forbidden response has a 3xx status code
func (*SetPolicyExecutionPointsForbidden) IsServerError ¶
func (o *SetPolicyExecutionPointsForbidden) IsServerError() bool
IsServerError returns true when this set policy execution points forbidden response has a 5xx status code
func (*SetPolicyExecutionPointsForbidden) IsSuccess ¶
func (o *SetPolicyExecutionPointsForbidden) IsSuccess() bool
IsSuccess returns true when this set policy execution points forbidden response has a 2xx status code
func (*SetPolicyExecutionPointsForbidden) String ¶
func (o *SetPolicyExecutionPointsForbidden) String() string
type SetPolicyExecutionPointsNotFound ¶
SetPolicyExecutionPointsNotFound describes a response with status code 404, with default header values.
Not found
func NewSetPolicyExecutionPointsNotFound ¶
func NewSetPolicyExecutionPointsNotFound() *SetPolicyExecutionPointsNotFound
NewSetPolicyExecutionPointsNotFound creates a SetPolicyExecutionPointsNotFound with default headers values
func (*SetPolicyExecutionPointsNotFound) Code ¶
func (o *SetPolicyExecutionPointsNotFound) Code() int
Code gets the status code for the set policy execution points not found response
func (*SetPolicyExecutionPointsNotFound) Error ¶
func (o *SetPolicyExecutionPointsNotFound) Error() string
func (*SetPolicyExecutionPointsNotFound) GetPayload ¶
func (o *SetPolicyExecutionPointsNotFound) GetPayload() *models.Error
func (*SetPolicyExecutionPointsNotFound) IsClientError ¶
func (o *SetPolicyExecutionPointsNotFound) IsClientError() bool
IsClientError returns true when this set policy execution points not found response has a 4xx status code
func (*SetPolicyExecutionPointsNotFound) IsCode ¶
func (o *SetPolicyExecutionPointsNotFound) IsCode(code int) bool
IsCode returns true when this set policy execution points not found response a status code equal to that given
func (*SetPolicyExecutionPointsNotFound) IsRedirect ¶
func (o *SetPolicyExecutionPointsNotFound) IsRedirect() bool
IsRedirect returns true when this set policy execution points not found response has a 3xx status code
func (*SetPolicyExecutionPointsNotFound) IsServerError ¶
func (o *SetPolicyExecutionPointsNotFound) IsServerError() bool
IsServerError returns true when this set policy execution points not found response has a 5xx status code
func (*SetPolicyExecutionPointsNotFound) IsSuccess ¶
func (o *SetPolicyExecutionPointsNotFound) IsSuccess() bool
IsSuccess returns true when this set policy execution points not found response has a 2xx status code
func (*SetPolicyExecutionPointsNotFound) String ¶
func (o *SetPolicyExecutionPointsNotFound) String() string
type SetPolicyExecutionPointsOK ¶
type SetPolicyExecutionPointsOK struct { /* The ETag HTTP header is an identifier for a specific version of a resource in:header Format: etag */ Etag string Payload *models.PolicyExecutionPoints }
SetPolicyExecutionPointsOK describes a response with status code 200, with default header values.
Policy execution points
func NewSetPolicyExecutionPointsOK ¶
func NewSetPolicyExecutionPointsOK() *SetPolicyExecutionPointsOK
NewSetPolicyExecutionPointsOK creates a SetPolicyExecutionPointsOK with default headers values
func (*SetPolicyExecutionPointsOK) Code ¶
func (o *SetPolicyExecutionPointsOK) Code() int
Code gets the status code for the set policy execution points o k response
func (*SetPolicyExecutionPointsOK) Error ¶
func (o *SetPolicyExecutionPointsOK) Error() string
func (*SetPolicyExecutionPointsOK) GetPayload ¶
func (o *SetPolicyExecutionPointsOK) GetPayload() *models.PolicyExecutionPoints
func (*SetPolicyExecutionPointsOK) IsClientError ¶
func (o *SetPolicyExecutionPointsOK) IsClientError() bool
IsClientError returns true when this set policy execution points o k response has a 4xx status code
func (*SetPolicyExecutionPointsOK) IsCode ¶
func (o *SetPolicyExecutionPointsOK) IsCode(code int) bool
IsCode returns true when this set policy execution points o k response a status code equal to that given
func (*SetPolicyExecutionPointsOK) IsRedirect ¶
func (o *SetPolicyExecutionPointsOK) IsRedirect() bool
IsRedirect returns true when this set policy execution points o k response has a 3xx status code
func (*SetPolicyExecutionPointsOK) IsServerError ¶
func (o *SetPolicyExecutionPointsOK) IsServerError() bool
IsServerError returns true when this set policy execution points o k response has a 5xx status code
func (*SetPolicyExecutionPointsOK) IsSuccess ¶
func (o *SetPolicyExecutionPointsOK) IsSuccess() bool
IsSuccess returns true when this set policy execution points o k response has a 2xx status code
func (*SetPolicyExecutionPointsOK) String ¶
func (o *SetPolicyExecutionPointsOK) String() string
type SetPolicyExecutionPointsParams ¶
type SetPolicyExecutionPointsParams struct { // Executions. Executions *models.PolicyExecutionPoints /* IfMatch. A server will only return requested resources if the resource matches one of the listed ETag value Format: etag */ IfMatch *string /* Wid. Authorization server id Default: "default" */ Wid string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
SetPolicyExecutionPointsParams contains all the parameters to send to the API endpoint
for the set policy execution points operation. Typically these are written to a http.Request.
func NewSetPolicyExecutionPointsParams ¶
func NewSetPolicyExecutionPointsParams() *SetPolicyExecutionPointsParams
NewSetPolicyExecutionPointsParams creates a new SetPolicyExecutionPointsParams 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 NewSetPolicyExecutionPointsParamsWithContext ¶
func NewSetPolicyExecutionPointsParamsWithContext(ctx context.Context) *SetPolicyExecutionPointsParams
NewSetPolicyExecutionPointsParamsWithContext creates a new SetPolicyExecutionPointsParams object with the ability to set a context for a request.
func NewSetPolicyExecutionPointsParamsWithHTTPClient ¶
func NewSetPolicyExecutionPointsParamsWithHTTPClient(client *http.Client) *SetPolicyExecutionPointsParams
NewSetPolicyExecutionPointsParamsWithHTTPClient creates a new SetPolicyExecutionPointsParams object with the ability to set a custom HTTPClient for a request.
func NewSetPolicyExecutionPointsParamsWithTimeout ¶
func NewSetPolicyExecutionPointsParamsWithTimeout(timeout time.Duration) *SetPolicyExecutionPointsParams
NewSetPolicyExecutionPointsParamsWithTimeout creates a new SetPolicyExecutionPointsParams object with the ability to set a timeout on a request.
func (*SetPolicyExecutionPointsParams) SetContext ¶
func (o *SetPolicyExecutionPointsParams) SetContext(ctx context.Context)
SetContext adds the context to the set policy execution points params
func (*SetPolicyExecutionPointsParams) SetDefaults ¶
func (o *SetPolicyExecutionPointsParams) SetDefaults()
SetDefaults hydrates default values in the set policy execution points params (not the query body).
All values with no default are reset to their zero value.
func (*SetPolicyExecutionPointsParams) SetExecutions ¶
func (o *SetPolicyExecutionPointsParams) SetExecutions(executions *models.PolicyExecutionPoints)
SetExecutions adds the executions to the set policy execution points params
func (*SetPolicyExecutionPointsParams) SetHTTPClient ¶
func (o *SetPolicyExecutionPointsParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the set policy execution points params
func (*SetPolicyExecutionPointsParams) SetIfMatch ¶
func (o *SetPolicyExecutionPointsParams) SetIfMatch(ifMatch *string)
SetIfMatch adds the ifMatch to the set policy execution points params
func (*SetPolicyExecutionPointsParams) SetTimeout ¶
func (o *SetPolicyExecutionPointsParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the set policy execution points params
func (*SetPolicyExecutionPointsParams) SetWid ¶
func (o *SetPolicyExecutionPointsParams) SetWid(wid string)
SetWid adds the wid to the set policy execution points params
func (*SetPolicyExecutionPointsParams) WithContext ¶
func (o *SetPolicyExecutionPointsParams) WithContext(ctx context.Context) *SetPolicyExecutionPointsParams
WithContext adds the context to the set policy execution points params
func (*SetPolicyExecutionPointsParams) WithDefaults ¶
func (o *SetPolicyExecutionPointsParams) WithDefaults() *SetPolicyExecutionPointsParams
WithDefaults hydrates default values in the set policy execution points params (not the query body).
All values with no default are reset to their zero value.
func (*SetPolicyExecutionPointsParams) WithExecutions ¶
func (o *SetPolicyExecutionPointsParams) WithExecutions(executions *models.PolicyExecutionPoints) *SetPolicyExecutionPointsParams
WithExecutions adds the executions to the set policy execution points params
func (*SetPolicyExecutionPointsParams) WithHTTPClient ¶
func (o *SetPolicyExecutionPointsParams) WithHTTPClient(client *http.Client) *SetPolicyExecutionPointsParams
WithHTTPClient adds the HTTPClient to the set policy execution points params
func (*SetPolicyExecutionPointsParams) WithIfMatch ¶
func (o *SetPolicyExecutionPointsParams) WithIfMatch(ifMatch *string) *SetPolicyExecutionPointsParams
WithIfMatch adds the ifMatch to the set policy execution points params
func (*SetPolicyExecutionPointsParams) WithTimeout ¶
func (o *SetPolicyExecutionPointsParams) WithTimeout(timeout time.Duration) *SetPolicyExecutionPointsParams
WithTimeout adds the timeout to the set policy execution points params
func (*SetPolicyExecutionPointsParams) WithWid ¶
func (o *SetPolicyExecutionPointsParams) WithWid(wid string) *SetPolicyExecutionPointsParams
WithWid adds the wid to the set policy execution points params
func (*SetPolicyExecutionPointsParams) WriteToRequest ¶
func (o *SetPolicyExecutionPointsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type SetPolicyExecutionPointsReader ¶
type SetPolicyExecutionPointsReader struct {
// contains filtered or unexported fields
}
SetPolicyExecutionPointsReader is a Reader for the SetPolicyExecutionPoints structure.
func (*SetPolicyExecutionPointsReader) ReadResponse ¶
func (o *SetPolicyExecutionPointsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type SetPolicyExecutionPointsTooManyRequests ¶
SetPolicyExecutionPointsTooManyRequests describes a response with status code 429, with default header values.
Too many requests
func NewSetPolicyExecutionPointsTooManyRequests ¶
func NewSetPolicyExecutionPointsTooManyRequests() *SetPolicyExecutionPointsTooManyRequests
NewSetPolicyExecutionPointsTooManyRequests creates a SetPolicyExecutionPointsTooManyRequests with default headers values
func (*SetPolicyExecutionPointsTooManyRequests) Code ¶
func (o *SetPolicyExecutionPointsTooManyRequests) Code() int
Code gets the status code for the set policy execution points too many requests response
func (*SetPolicyExecutionPointsTooManyRequests) Error ¶
func (o *SetPolicyExecutionPointsTooManyRequests) Error() string
func (*SetPolicyExecutionPointsTooManyRequests) GetPayload ¶
func (o *SetPolicyExecutionPointsTooManyRequests) GetPayload() *models.Error
func (*SetPolicyExecutionPointsTooManyRequests) IsClientError ¶
func (o *SetPolicyExecutionPointsTooManyRequests) IsClientError() bool
IsClientError returns true when this set policy execution points too many requests response has a 4xx status code
func (*SetPolicyExecutionPointsTooManyRequests) IsCode ¶
func (o *SetPolicyExecutionPointsTooManyRequests) IsCode(code int) bool
IsCode returns true when this set policy execution points too many requests response a status code equal to that given
func (*SetPolicyExecutionPointsTooManyRequests) IsRedirect ¶
func (o *SetPolicyExecutionPointsTooManyRequests) IsRedirect() bool
IsRedirect returns true when this set policy execution points too many requests response has a 3xx status code
func (*SetPolicyExecutionPointsTooManyRequests) IsServerError ¶
func (o *SetPolicyExecutionPointsTooManyRequests) IsServerError() bool
IsServerError returns true when this set policy execution points too many requests response has a 5xx status code
func (*SetPolicyExecutionPointsTooManyRequests) IsSuccess ¶
func (o *SetPolicyExecutionPointsTooManyRequests) IsSuccess() bool
IsSuccess returns true when this set policy execution points too many requests response has a 2xx status code
func (*SetPolicyExecutionPointsTooManyRequests) String ¶
func (o *SetPolicyExecutionPointsTooManyRequests) String() string
type SetPolicyExecutionPointsUnauthorized ¶
type SetPolicyExecutionPointsUnauthorized struct {
}SetPolicyExecutionPointsUnauthorized describes a response with status code 401, with default header values.
Unauthorized
func NewSetPolicyExecutionPointsUnauthorized ¶
func NewSetPolicyExecutionPointsUnauthorized() *SetPolicyExecutionPointsUnauthorized
NewSetPolicyExecutionPointsUnauthorized creates a SetPolicyExecutionPointsUnauthorized with default headers values
func (*SetPolicyExecutionPointsUnauthorized) Code ¶
func (o *SetPolicyExecutionPointsUnauthorized) Code() int
Code gets the status code for the set policy execution points unauthorized response
func (*SetPolicyExecutionPointsUnauthorized) Error ¶
func (o *SetPolicyExecutionPointsUnauthorized) Error() string
func (*SetPolicyExecutionPointsUnauthorized) GetPayload ¶
func (o *SetPolicyExecutionPointsUnauthorized) GetPayload() *models.Error
func (*SetPolicyExecutionPointsUnauthorized) IsClientError ¶
func (o *SetPolicyExecutionPointsUnauthorized) IsClientError() bool
IsClientError returns true when this set policy execution points unauthorized response has a 4xx status code
func (*SetPolicyExecutionPointsUnauthorized) IsCode ¶
func (o *SetPolicyExecutionPointsUnauthorized) IsCode(code int) bool
IsCode returns true when this set policy execution points unauthorized response a status code equal to that given
func (*SetPolicyExecutionPointsUnauthorized) IsRedirect ¶
func (o *SetPolicyExecutionPointsUnauthorized) IsRedirect() bool
IsRedirect returns true when this set policy execution points unauthorized response has a 3xx status code
func (*SetPolicyExecutionPointsUnauthorized) IsServerError ¶
func (o *SetPolicyExecutionPointsUnauthorized) IsServerError() bool
IsServerError returns true when this set policy execution points unauthorized response has a 5xx status code
func (*SetPolicyExecutionPointsUnauthorized) IsSuccess ¶
func (o *SetPolicyExecutionPointsUnauthorized) IsSuccess() bool
IsSuccess returns true when this set policy execution points unauthorized response has a 2xx status code
func (*SetPolicyExecutionPointsUnauthorized) String ¶
func (o *SetPolicyExecutionPointsUnauthorized) String() string
type SetPolicyExecutionPointsUnprocessableEntity ¶
SetPolicyExecutionPointsUnprocessableEntity describes a response with status code 422, with default header values.
Unprocessable entity
func NewSetPolicyExecutionPointsUnprocessableEntity ¶
func NewSetPolicyExecutionPointsUnprocessableEntity() *SetPolicyExecutionPointsUnprocessableEntity
NewSetPolicyExecutionPointsUnprocessableEntity creates a SetPolicyExecutionPointsUnprocessableEntity with default headers values
func (*SetPolicyExecutionPointsUnprocessableEntity) Code ¶
func (o *SetPolicyExecutionPointsUnprocessableEntity) Code() int
Code gets the status code for the set policy execution points unprocessable entity response
func (*SetPolicyExecutionPointsUnprocessableEntity) Error ¶
func (o *SetPolicyExecutionPointsUnprocessableEntity) Error() string
func (*SetPolicyExecutionPointsUnprocessableEntity) GetPayload ¶
func (o *SetPolicyExecutionPointsUnprocessableEntity) GetPayload() *models.Error
func (*SetPolicyExecutionPointsUnprocessableEntity) IsClientError ¶
func (o *SetPolicyExecutionPointsUnprocessableEntity) IsClientError() bool
IsClientError returns true when this set policy execution points unprocessable entity response has a 4xx status code
func (*SetPolicyExecutionPointsUnprocessableEntity) IsCode ¶
func (o *SetPolicyExecutionPointsUnprocessableEntity) IsCode(code int) bool
IsCode returns true when this set policy execution points unprocessable entity response a status code equal to that given
func (*SetPolicyExecutionPointsUnprocessableEntity) IsRedirect ¶
func (o *SetPolicyExecutionPointsUnprocessableEntity) IsRedirect() bool
IsRedirect returns true when this set policy execution points unprocessable entity response has a 3xx status code
func (*SetPolicyExecutionPointsUnprocessableEntity) IsServerError ¶
func (o *SetPolicyExecutionPointsUnprocessableEntity) IsServerError() bool
IsServerError returns true when this set policy execution points unprocessable entity response has a 5xx status code
func (*SetPolicyExecutionPointsUnprocessableEntity) IsSuccess ¶
func (o *SetPolicyExecutionPointsUnprocessableEntity) IsSuccess() bool
IsSuccess returns true when this set policy execution points unprocessable entity response has a 2xx status code
func (*SetPolicyExecutionPointsUnprocessableEntity) String ¶
func (o *SetPolicyExecutionPointsUnprocessableEntity) String() string
type TestPolicyBadRequest ¶
TestPolicyBadRequest describes a response with status code 400, with default header values.
Bad request
func NewTestPolicyBadRequest ¶
func NewTestPolicyBadRequest() *TestPolicyBadRequest
NewTestPolicyBadRequest creates a TestPolicyBadRequest with default headers values
func (*TestPolicyBadRequest) Code ¶
func (o *TestPolicyBadRequest) Code() int
Code gets the status code for the test policy bad request response
func (*TestPolicyBadRequest) Error ¶
func (o *TestPolicyBadRequest) Error() string
func (*TestPolicyBadRequest) GetPayload ¶
func (o *TestPolicyBadRequest) GetPayload() *models.Error
func (*TestPolicyBadRequest) IsClientError ¶
func (o *TestPolicyBadRequest) IsClientError() bool
IsClientError returns true when this test policy bad request response has a 4xx status code
func (*TestPolicyBadRequest) IsCode ¶
func (o *TestPolicyBadRequest) IsCode(code int) bool
IsCode returns true when this test policy bad request response a status code equal to that given
func (*TestPolicyBadRequest) IsRedirect ¶
func (o *TestPolicyBadRequest) IsRedirect() bool
IsRedirect returns true when this test policy bad request response has a 3xx status code
func (*TestPolicyBadRequest) IsServerError ¶
func (o *TestPolicyBadRequest) IsServerError() bool
IsServerError returns true when this test policy bad request response has a 5xx status code
func (*TestPolicyBadRequest) IsSuccess ¶
func (o *TestPolicyBadRequest) IsSuccess() bool
IsSuccess returns true when this test policy bad request response has a 2xx status code
func (*TestPolicyBadRequest) String ¶
func (o *TestPolicyBadRequest) String() string
type TestPolicyConflict ¶
TestPolicyConflict describes a response with status code 409, with default header values.
Conflict
func NewTestPolicyConflict ¶
func NewTestPolicyConflict() *TestPolicyConflict
NewTestPolicyConflict creates a TestPolicyConflict with default headers values
func (*TestPolicyConflict) Code ¶
func (o *TestPolicyConflict) Code() int
Code gets the status code for the test policy conflict response
func (*TestPolicyConflict) Error ¶
func (o *TestPolicyConflict) Error() string
func (*TestPolicyConflict) GetPayload ¶
func (o *TestPolicyConflict) GetPayload() *models.Error
func (*TestPolicyConflict) IsClientError ¶
func (o *TestPolicyConflict) IsClientError() bool
IsClientError returns true when this test policy conflict response has a 4xx status code
func (*TestPolicyConflict) IsCode ¶
func (o *TestPolicyConflict) IsCode(code int) bool
IsCode returns true when this test policy conflict response a status code equal to that given
func (*TestPolicyConflict) IsRedirect ¶
func (o *TestPolicyConflict) IsRedirect() bool
IsRedirect returns true when this test policy conflict response has a 3xx status code
func (*TestPolicyConflict) IsServerError ¶
func (o *TestPolicyConflict) IsServerError() bool
IsServerError returns true when this test policy conflict response has a 5xx status code
func (*TestPolicyConflict) IsSuccess ¶
func (o *TestPolicyConflict) IsSuccess() bool
IsSuccess returns true when this test policy conflict response has a 2xx status code
func (*TestPolicyConflict) String ¶
func (o *TestPolicyConflict) String() string
type TestPolicyForbidden ¶
TestPolicyForbidden describes a response with status code 403, with default header values.
Forbidden
func NewTestPolicyForbidden ¶
func NewTestPolicyForbidden() *TestPolicyForbidden
NewTestPolicyForbidden creates a TestPolicyForbidden with default headers values
func (*TestPolicyForbidden) Code ¶
func (o *TestPolicyForbidden) Code() int
Code gets the status code for the test policy forbidden response
func (*TestPolicyForbidden) Error ¶
func (o *TestPolicyForbidden) Error() string
func (*TestPolicyForbidden) GetPayload ¶
func (o *TestPolicyForbidden) GetPayload() *models.Error
func (*TestPolicyForbidden) IsClientError ¶
func (o *TestPolicyForbidden) IsClientError() bool
IsClientError returns true when this test policy forbidden response has a 4xx status code
func (*TestPolicyForbidden) IsCode ¶
func (o *TestPolicyForbidden) IsCode(code int) bool
IsCode returns true when this test policy forbidden response a status code equal to that given
func (*TestPolicyForbidden) IsRedirect ¶
func (o *TestPolicyForbidden) IsRedirect() bool
IsRedirect returns true when this test policy forbidden response has a 3xx status code
func (*TestPolicyForbidden) IsServerError ¶
func (o *TestPolicyForbidden) IsServerError() bool
IsServerError returns true when this test policy forbidden response has a 5xx status code
func (*TestPolicyForbidden) IsSuccess ¶
func (o *TestPolicyForbidden) IsSuccess() bool
IsSuccess returns true when this test policy forbidden response has a 2xx status code
func (*TestPolicyForbidden) String ¶
func (o *TestPolicyForbidden) String() string
type TestPolicyNotFound ¶
TestPolicyNotFound describes a response with status code 404, with default header values.
Not found
func NewTestPolicyNotFound ¶
func NewTestPolicyNotFound() *TestPolicyNotFound
NewTestPolicyNotFound creates a TestPolicyNotFound with default headers values
func (*TestPolicyNotFound) Code ¶
func (o *TestPolicyNotFound) Code() int
Code gets the status code for the test policy not found response
func (*TestPolicyNotFound) Error ¶
func (o *TestPolicyNotFound) Error() string
func (*TestPolicyNotFound) GetPayload ¶
func (o *TestPolicyNotFound) GetPayload() *models.Error
func (*TestPolicyNotFound) IsClientError ¶
func (o *TestPolicyNotFound) IsClientError() bool
IsClientError returns true when this test policy not found response has a 4xx status code
func (*TestPolicyNotFound) IsCode ¶
func (o *TestPolicyNotFound) IsCode(code int) bool
IsCode returns true when this test policy not found response a status code equal to that given
func (*TestPolicyNotFound) IsRedirect ¶
func (o *TestPolicyNotFound) IsRedirect() bool
IsRedirect returns true when this test policy not found response has a 3xx status code
func (*TestPolicyNotFound) IsServerError ¶
func (o *TestPolicyNotFound) IsServerError() bool
IsServerError returns true when this test policy not found response has a 5xx status code
func (*TestPolicyNotFound) IsSuccess ¶
func (o *TestPolicyNotFound) IsSuccess() bool
IsSuccess returns true when this test policy not found response has a 2xx status code
func (*TestPolicyNotFound) String ¶
func (o *TestPolicyNotFound) String() string
type TestPolicyOK ¶
type TestPolicyOK struct { /* The ETag HTTP header is an identifier for a specific version of a resource in:header Format: etag */ Etag string Payload *models.TestPolicyResponse }
TestPolicyOK describes a response with status code 200, with default header values.
Test policy result
func NewTestPolicyOK ¶
func NewTestPolicyOK() *TestPolicyOK
NewTestPolicyOK creates a TestPolicyOK with default headers values
func (*TestPolicyOK) Code ¶
func (o *TestPolicyOK) Code() int
Code gets the status code for the test policy o k response
func (*TestPolicyOK) Error ¶
func (o *TestPolicyOK) Error() string
func (*TestPolicyOK) GetPayload ¶
func (o *TestPolicyOK) GetPayload() *models.TestPolicyResponse
func (*TestPolicyOK) IsClientError ¶
func (o *TestPolicyOK) IsClientError() bool
IsClientError returns true when this test policy o k response has a 4xx status code
func (*TestPolicyOK) IsCode ¶
func (o *TestPolicyOK) IsCode(code int) bool
IsCode returns true when this test policy o k response a status code equal to that given
func (*TestPolicyOK) IsRedirect ¶
func (o *TestPolicyOK) IsRedirect() bool
IsRedirect returns true when this test policy o k response has a 3xx status code
func (*TestPolicyOK) IsServerError ¶
func (o *TestPolicyOK) IsServerError() bool
IsServerError returns true when this test policy o k response has a 5xx status code
func (*TestPolicyOK) IsSuccess ¶
func (o *TestPolicyOK) IsSuccess() bool
IsSuccess returns true when this test policy o k response has a 2xx status code
func (*TestPolicyOK) String ¶
func (o *TestPolicyOK) String() string
type TestPolicyParams ¶
type TestPolicyParams struct { // TestPolicyRequest. TestPolicyRequest *models.TestPolicyRequest /* IfMatch. A server will only return requested resources if the resource matches one of the listed ETag value Format: etag */ IfMatch *string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
TestPolicyParams contains all the parameters to send to the API endpoint
for the test policy operation. Typically these are written to a http.Request.
func NewTestPolicyParams ¶
func NewTestPolicyParams() *TestPolicyParams
NewTestPolicyParams creates a new TestPolicyParams 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 NewTestPolicyParamsWithContext ¶
func NewTestPolicyParamsWithContext(ctx context.Context) *TestPolicyParams
NewTestPolicyParamsWithContext creates a new TestPolicyParams object with the ability to set a context for a request.
func NewTestPolicyParamsWithHTTPClient ¶
func NewTestPolicyParamsWithHTTPClient(client *http.Client) *TestPolicyParams
NewTestPolicyParamsWithHTTPClient creates a new TestPolicyParams object with the ability to set a custom HTTPClient for a request.
func NewTestPolicyParamsWithTimeout ¶
func NewTestPolicyParamsWithTimeout(timeout time.Duration) *TestPolicyParams
NewTestPolicyParamsWithTimeout creates a new TestPolicyParams object with the ability to set a timeout on a request.
func (*TestPolicyParams) SetContext ¶
func (o *TestPolicyParams) SetContext(ctx context.Context)
SetContext adds the context to the test policy params
func (*TestPolicyParams) SetDefaults ¶
func (o *TestPolicyParams) SetDefaults()
SetDefaults hydrates default values in the test policy params (not the query body).
All values with no default are reset to their zero value.
func (*TestPolicyParams) SetHTTPClient ¶
func (o *TestPolicyParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the test policy params
func (*TestPolicyParams) SetIfMatch ¶
func (o *TestPolicyParams) SetIfMatch(ifMatch *string)
SetIfMatch adds the ifMatch to the test policy params
func (*TestPolicyParams) SetTestPolicyRequest ¶
func (o *TestPolicyParams) SetTestPolicyRequest(testPolicyRequest *models.TestPolicyRequest)
SetTestPolicyRequest adds the testPolicyRequest to the test policy params
func (*TestPolicyParams) SetTimeout ¶
func (o *TestPolicyParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the test policy params
func (*TestPolicyParams) WithContext ¶
func (o *TestPolicyParams) WithContext(ctx context.Context) *TestPolicyParams
WithContext adds the context to the test policy params
func (*TestPolicyParams) WithDefaults ¶
func (o *TestPolicyParams) WithDefaults() *TestPolicyParams
WithDefaults hydrates default values in the test policy params (not the query body).
All values with no default are reset to their zero value.
func (*TestPolicyParams) WithHTTPClient ¶
func (o *TestPolicyParams) WithHTTPClient(client *http.Client) *TestPolicyParams
WithHTTPClient adds the HTTPClient to the test policy params
func (*TestPolicyParams) WithIfMatch ¶
func (o *TestPolicyParams) WithIfMatch(ifMatch *string) *TestPolicyParams
WithIfMatch adds the ifMatch to the test policy params
func (*TestPolicyParams) WithTestPolicyRequest ¶
func (o *TestPolicyParams) WithTestPolicyRequest(testPolicyRequest *models.TestPolicyRequest) *TestPolicyParams
WithTestPolicyRequest adds the testPolicyRequest to the test policy params
func (*TestPolicyParams) WithTimeout ¶
func (o *TestPolicyParams) WithTimeout(timeout time.Duration) *TestPolicyParams
WithTimeout adds the timeout to the test policy params
func (*TestPolicyParams) WriteToRequest ¶
func (o *TestPolicyParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type TestPolicyReader ¶
type TestPolicyReader struct {
// contains filtered or unexported fields
}
TestPolicyReader is a Reader for the TestPolicy structure.
func (*TestPolicyReader) ReadResponse ¶
func (o *TestPolicyReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type TestPolicyTooManyRequests ¶
TestPolicyTooManyRequests describes a response with status code 429, with default header values.
Too many requests
func NewTestPolicyTooManyRequests ¶
func NewTestPolicyTooManyRequests() *TestPolicyTooManyRequests
NewTestPolicyTooManyRequests creates a TestPolicyTooManyRequests with default headers values
func (*TestPolicyTooManyRequests) Code ¶
func (o *TestPolicyTooManyRequests) Code() int
Code gets the status code for the test policy too many requests response
func (*TestPolicyTooManyRequests) Error ¶
func (o *TestPolicyTooManyRequests) Error() string
func (*TestPolicyTooManyRequests) GetPayload ¶
func (o *TestPolicyTooManyRequests) GetPayload() *models.Error
func (*TestPolicyTooManyRequests) IsClientError ¶
func (o *TestPolicyTooManyRequests) IsClientError() bool
IsClientError returns true when this test policy too many requests response has a 4xx status code
func (*TestPolicyTooManyRequests) IsCode ¶
func (o *TestPolicyTooManyRequests) IsCode(code int) bool
IsCode returns true when this test policy too many requests response a status code equal to that given
func (*TestPolicyTooManyRequests) IsRedirect ¶
func (o *TestPolicyTooManyRequests) IsRedirect() bool
IsRedirect returns true when this test policy too many requests response has a 3xx status code
func (*TestPolicyTooManyRequests) IsServerError ¶
func (o *TestPolicyTooManyRequests) IsServerError() bool
IsServerError returns true when this test policy too many requests response has a 5xx status code
func (*TestPolicyTooManyRequests) IsSuccess ¶
func (o *TestPolicyTooManyRequests) IsSuccess() bool
IsSuccess returns true when this test policy too many requests response has a 2xx status code
func (*TestPolicyTooManyRequests) String ¶
func (o *TestPolicyTooManyRequests) String() string
type TestPolicyUnauthorized ¶
type TestPolicyUnauthorized struct {
}TestPolicyUnauthorized describes a response with status code 401, with default header values.
Unauthorized
func NewTestPolicyUnauthorized ¶
func NewTestPolicyUnauthorized() *TestPolicyUnauthorized
NewTestPolicyUnauthorized creates a TestPolicyUnauthorized with default headers values
func (*TestPolicyUnauthorized) Code ¶
func (o *TestPolicyUnauthorized) Code() int
Code gets the status code for the test policy unauthorized response
func (*TestPolicyUnauthorized) Error ¶
func (o *TestPolicyUnauthorized) Error() string
func (*TestPolicyUnauthorized) GetPayload ¶
func (o *TestPolicyUnauthorized) GetPayload() *models.Error
func (*TestPolicyUnauthorized) IsClientError ¶
func (o *TestPolicyUnauthorized) IsClientError() bool
IsClientError returns true when this test policy unauthorized response has a 4xx status code
func (*TestPolicyUnauthorized) IsCode ¶
func (o *TestPolicyUnauthorized) IsCode(code int) bool
IsCode returns true when this test policy unauthorized response a status code equal to that given
func (*TestPolicyUnauthorized) IsRedirect ¶
func (o *TestPolicyUnauthorized) IsRedirect() bool
IsRedirect returns true when this test policy unauthorized response has a 3xx status code
func (*TestPolicyUnauthorized) IsServerError ¶
func (o *TestPolicyUnauthorized) IsServerError() bool
IsServerError returns true when this test policy unauthorized response has a 5xx status code
func (*TestPolicyUnauthorized) IsSuccess ¶
func (o *TestPolicyUnauthorized) IsSuccess() bool
IsSuccess returns true when this test policy unauthorized response has a 2xx status code
func (*TestPolicyUnauthorized) String ¶
func (o *TestPolicyUnauthorized) String() string
type TestPolicyUnprocessableEntity ¶
TestPolicyUnprocessableEntity describes a response with status code 422, with default header values.
Unprocessable entity
func NewTestPolicyUnprocessableEntity ¶
func NewTestPolicyUnprocessableEntity() *TestPolicyUnprocessableEntity
NewTestPolicyUnprocessableEntity creates a TestPolicyUnprocessableEntity with default headers values
func (*TestPolicyUnprocessableEntity) Code ¶
func (o *TestPolicyUnprocessableEntity) Code() int
Code gets the status code for the test policy unprocessable entity response
func (*TestPolicyUnprocessableEntity) Error ¶
func (o *TestPolicyUnprocessableEntity) Error() string
func (*TestPolicyUnprocessableEntity) GetPayload ¶
func (o *TestPolicyUnprocessableEntity) GetPayload() *models.Error
func (*TestPolicyUnprocessableEntity) IsClientError ¶
func (o *TestPolicyUnprocessableEntity) IsClientError() bool
IsClientError returns true when this test policy unprocessable entity response has a 4xx status code
func (*TestPolicyUnprocessableEntity) IsCode ¶
func (o *TestPolicyUnprocessableEntity) IsCode(code int) bool
IsCode returns true when this test policy unprocessable entity response a status code equal to that given
func (*TestPolicyUnprocessableEntity) IsRedirect ¶
func (o *TestPolicyUnprocessableEntity) IsRedirect() bool
IsRedirect returns true when this test policy unprocessable entity response has a 3xx status code
func (*TestPolicyUnprocessableEntity) IsServerError ¶
func (o *TestPolicyUnprocessableEntity) IsServerError() bool
IsServerError returns true when this test policy unprocessable entity response has a 5xx status code
func (*TestPolicyUnprocessableEntity) IsSuccess ¶
func (o *TestPolicyUnprocessableEntity) IsSuccess() bool
IsSuccess returns true when this test policy unprocessable entity response has a 2xx status code
func (*TestPolicyUnprocessableEntity) String ¶
func (o *TestPolicyUnprocessableEntity) String() string
type UpdatePolicyBadRequest ¶
UpdatePolicyBadRequest describes a response with status code 400, with default header values.
Bad request
func NewUpdatePolicyBadRequest ¶
func NewUpdatePolicyBadRequest() *UpdatePolicyBadRequest
NewUpdatePolicyBadRequest creates a UpdatePolicyBadRequest with default headers values
func (*UpdatePolicyBadRequest) Code ¶
func (o *UpdatePolicyBadRequest) Code() int
Code gets the status code for the update policy bad request response
func (*UpdatePolicyBadRequest) Error ¶
func (o *UpdatePolicyBadRequest) Error() string
func (*UpdatePolicyBadRequest) GetPayload ¶
func (o *UpdatePolicyBadRequest) GetPayload() *models.Error
func (*UpdatePolicyBadRequest) IsClientError ¶
func (o *UpdatePolicyBadRequest) IsClientError() bool
IsClientError returns true when this update policy bad request response has a 4xx status code
func (*UpdatePolicyBadRequest) IsCode ¶
func (o *UpdatePolicyBadRequest) IsCode(code int) bool
IsCode returns true when this update policy bad request response a status code equal to that given
func (*UpdatePolicyBadRequest) IsRedirect ¶
func (o *UpdatePolicyBadRequest) IsRedirect() bool
IsRedirect returns true when this update policy bad request response has a 3xx status code
func (*UpdatePolicyBadRequest) IsServerError ¶
func (o *UpdatePolicyBadRequest) IsServerError() bool
IsServerError returns true when this update policy bad request response has a 5xx status code
func (*UpdatePolicyBadRequest) IsSuccess ¶
func (o *UpdatePolicyBadRequest) IsSuccess() bool
IsSuccess returns true when this update policy bad request response has a 2xx status code
func (*UpdatePolicyBadRequest) String ¶
func (o *UpdatePolicyBadRequest) String() string
type UpdatePolicyConflict ¶
UpdatePolicyConflict describes a response with status code 409, with default header values.
Conflict
func NewUpdatePolicyConflict ¶
func NewUpdatePolicyConflict() *UpdatePolicyConflict
NewUpdatePolicyConflict creates a UpdatePolicyConflict with default headers values
func (*UpdatePolicyConflict) Code ¶
func (o *UpdatePolicyConflict) Code() int
Code gets the status code for the update policy conflict response
func (*UpdatePolicyConflict) Error ¶
func (o *UpdatePolicyConflict) Error() string
func (*UpdatePolicyConflict) GetPayload ¶
func (o *UpdatePolicyConflict) GetPayload() *models.Error
func (*UpdatePolicyConflict) IsClientError ¶
func (o *UpdatePolicyConflict) IsClientError() bool
IsClientError returns true when this update policy conflict response has a 4xx status code
func (*UpdatePolicyConflict) IsCode ¶
func (o *UpdatePolicyConflict) IsCode(code int) bool
IsCode returns true when this update policy conflict response a status code equal to that given
func (*UpdatePolicyConflict) IsRedirect ¶
func (o *UpdatePolicyConflict) IsRedirect() bool
IsRedirect returns true when this update policy conflict response has a 3xx status code
func (*UpdatePolicyConflict) IsServerError ¶
func (o *UpdatePolicyConflict) IsServerError() bool
IsServerError returns true when this update policy conflict response has a 5xx status code
func (*UpdatePolicyConflict) IsSuccess ¶
func (o *UpdatePolicyConflict) IsSuccess() bool
IsSuccess returns true when this update policy conflict response has a 2xx status code
func (*UpdatePolicyConflict) String ¶
func (o *UpdatePolicyConflict) String() string
type UpdatePolicyCreated ¶
type UpdatePolicyCreated struct { /* The ETag HTTP header is an identifier for a specific version of a resource in:header Format: etag */ Etag string Payload *models.Policy }
UpdatePolicyCreated describes a response with status code 201, with default header values.
Policy
func NewUpdatePolicyCreated ¶
func NewUpdatePolicyCreated() *UpdatePolicyCreated
NewUpdatePolicyCreated creates a UpdatePolicyCreated with default headers values
func (*UpdatePolicyCreated) Code ¶
func (o *UpdatePolicyCreated) Code() int
Code gets the status code for the update policy created response
func (*UpdatePolicyCreated) Error ¶
func (o *UpdatePolicyCreated) Error() string
func (*UpdatePolicyCreated) GetPayload ¶
func (o *UpdatePolicyCreated) GetPayload() *models.Policy
func (*UpdatePolicyCreated) IsClientError ¶
func (o *UpdatePolicyCreated) IsClientError() bool
IsClientError returns true when this update policy created response has a 4xx status code
func (*UpdatePolicyCreated) IsCode ¶
func (o *UpdatePolicyCreated) IsCode(code int) bool
IsCode returns true when this update policy created response a status code equal to that given
func (*UpdatePolicyCreated) IsRedirect ¶
func (o *UpdatePolicyCreated) IsRedirect() bool
IsRedirect returns true when this update policy created response has a 3xx status code
func (*UpdatePolicyCreated) IsServerError ¶
func (o *UpdatePolicyCreated) IsServerError() bool
IsServerError returns true when this update policy created response has a 5xx status code
func (*UpdatePolicyCreated) IsSuccess ¶
func (o *UpdatePolicyCreated) IsSuccess() bool
IsSuccess returns true when this update policy created response has a 2xx status code
func (*UpdatePolicyCreated) String ¶
func (o *UpdatePolicyCreated) String() string
type UpdatePolicyForbidden ¶
UpdatePolicyForbidden describes a response with status code 403, with default header values.
Forbidden
func NewUpdatePolicyForbidden ¶
func NewUpdatePolicyForbidden() *UpdatePolicyForbidden
NewUpdatePolicyForbidden creates a UpdatePolicyForbidden with default headers values
func (*UpdatePolicyForbidden) Code ¶
func (o *UpdatePolicyForbidden) Code() int
Code gets the status code for the update policy forbidden response
func (*UpdatePolicyForbidden) Error ¶
func (o *UpdatePolicyForbidden) Error() string
func (*UpdatePolicyForbidden) GetPayload ¶
func (o *UpdatePolicyForbidden) GetPayload() *models.Error
func (*UpdatePolicyForbidden) IsClientError ¶
func (o *UpdatePolicyForbidden) IsClientError() bool
IsClientError returns true when this update policy forbidden response has a 4xx status code
func (*UpdatePolicyForbidden) IsCode ¶
func (o *UpdatePolicyForbidden) IsCode(code int) bool
IsCode returns true when this update policy forbidden response a status code equal to that given
func (*UpdatePolicyForbidden) IsRedirect ¶
func (o *UpdatePolicyForbidden) IsRedirect() bool
IsRedirect returns true when this update policy forbidden response has a 3xx status code
func (*UpdatePolicyForbidden) IsServerError ¶
func (o *UpdatePolicyForbidden) IsServerError() bool
IsServerError returns true when this update policy forbidden response has a 5xx status code
func (*UpdatePolicyForbidden) IsSuccess ¶
func (o *UpdatePolicyForbidden) IsSuccess() bool
IsSuccess returns true when this update policy forbidden response has a 2xx status code
func (*UpdatePolicyForbidden) String ¶
func (o *UpdatePolicyForbidden) String() string
type UpdatePolicyNotFound ¶
UpdatePolicyNotFound describes a response with status code 404, with default header values.
Not found
func NewUpdatePolicyNotFound ¶
func NewUpdatePolicyNotFound() *UpdatePolicyNotFound
NewUpdatePolicyNotFound creates a UpdatePolicyNotFound with default headers values
func (*UpdatePolicyNotFound) Code ¶
func (o *UpdatePolicyNotFound) Code() int
Code gets the status code for the update policy not found response
func (*UpdatePolicyNotFound) Error ¶
func (o *UpdatePolicyNotFound) Error() string
func (*UpdatePolicyNotFound) GetPayload ¶
func (o *UpdatePolicyNotFound) GetPayload() *models.Error
func (*UpdatePolicyNotFound) IsClientError ¶
func (o *UpdatePolicyNotFound) IsClientError() bool
IsClientError returns true when this update policy not found response has a 4xx status code
func (*UpdatePolicyNotFound) IsCode ¶
func (o *UpdatePolicyNotFound) IsCode(code int) bool
IsCode returns true when this update policy not found response a status code equal to that given
func (*UpdatePolicyNotFound) IsRedirect ¶
func (o *UpdatePolicyNotFound) IsRedirect() bool
IsRedirect returns true when this update policy not found response has a 3xx status code
func (*UpdatePolicyNotFound) IsServerError ¶
func (o *UpdatePolicyNotFound) IsServerError() bool
IsServerError returns true when this update policy not found response has a 5xx status code
func (*UpdatePolicyNotFound) IsSuccess ¶
func (o *UpdatePolicyNotFound) IsSuccess() bool
IsSuccess returns true when this update policy not found response has a 2xx status code
func (*UpdatePolicyNotFound) String ¶
func (o *UpdatePolicyNotFound) String() string
type UpdatePolicyParams ¶
type UpdatePolicyParams struct { // PolicyBody. PolicyBody *models.Policy /* IfMatch. A server will only return requested resources if the resource matches one of the listed ETag value Format: etag */ IfMatch *string /* Pid. ID of the policy to be updated */ Pid 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) 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) SetIfMatch ¶
func (o *UpdatePolicyParams) SetIfMatch(ifMatch *string)
SetIfMatch adds the ifMatch to the update policy params
func (*UpdatePolicyParams) SetPid ¶
func (o *UpdatePolicyParams) SetPid(pid string)
SetPid adds the pid to the update policy params
func (*UpdatePolicyParams) SetPolicyBody ¶
func (o *UpdatePolicyParams) SetPolicyBody(policyBody *models.Policy)
SetPolicyBody adds the policyBody 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) 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) WithIfMatch ¶
func (o *UpdatePolicyParams) WithIfMatch(ifMatch *string) *UpdatePolicyParams
WithIfMatch adds the ifMatch to the update policy params
func (*UpdatePolicyParams) WithPid ¶
func (o *UpdatePolicyParams) WithPid(pid string) *UpdatePolicyParams
WithPid adds the pid to the update policy params
func (*UpdatePolicyParams) WithPolicyBody ¶
func (o *UpdatePolicyParams) WithPolicyBody(policyBody *models.Policy) *UpdatePolicyParams
WithPolicyBody adds the policyBody 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) (interface{}, error)
ReadResponse reads a server response into the received o.
type UpdatePolicyTooManyRequests ¶
UpdatePolicyTooManyRequests describes a response with status code 429, with default header values.
Too many requests
func NewUpdatePolicyTooManyRequests ¶
func NewUpdatePolicyTooManyRequests() *UpdatePolicyTooManyRequests
NewUpdatePolicyTooManyRequests creates a UpdatePolicyTooManyRequests with default headers values
func (*UpdatePolicyTooManyRequests) Code ¶
func (o *UpdatePolicyTooManyRequests) Code() int
Code gets the status code for the update policy too many requests response
func (*UpdatePolicyTooManyRequests) Error ¶
func (o *UpdatePolicyTooManyRequests) Error() string
func (*UpdatePolicyTooManyRequests) GetPayload ¶
func (o *UpdatePolicyTooManyRequests) GetPayload() *models.Error
func (*UpdatePolicyTooManyRequests) IsClientError ¶
func (o *UpdatePolicyTooManyRequests) IsClientError() bool
IsClientError returns true when this update policy too many requests response has a 4xx status code
func (*UpdatePolicyTooManyRequests) IsCode ¶
func (o *UpdatePolicyTooManyRequests) IsCode(code int) bool
IsCode returns true when this update policy too many requests response a status code equal to that given
func (*UpdatePolicyTooManyRequests) IsRedirect ¶
func (o *UpdatePolicyTooManyRequests) IsRedirect() bool
IsRedirect returns true when this update policy too many requests response has a 3xx status code
func (*UpdatePolicyTooManyRequests) IsServerError ¶
func (o *UpdatePolicyTooManyRequests) IsServerError() bool
IsServerError returns true when this update policy too many requests response has a 5xx status code
func (*UpdatePolicyTooManyRequests) IsSuccess ¶
func (o *UpdatePolicyTooManyRequests) IsSuccess() bool
IsSuccess returns true when this update policy too many requests response has a 2xx status code
func (*UpdatePolicyTooManyRequests) String ¶
func (o *UpdatePolicyTooManyRequests) String() string
type UpdatePolicyUnauthorized ¶
type UpdatePolicyUnauthorized struct {
}UpdatePolicyUnauthorized describes a response with status code 401, with default header values.
Unauthorized
func NewUpdatePolicyUnauthorized ¶
func NewUpdatePolicyUnauthorized() *UpdatePolicyUnauthorized
NewUpdatePolicyUnauthorized creates a UpdatePolicyUnauthorized with default headers values
func (*UpdatePolicyUnauthorized) Code ¶
func (o *UpdatePolicyUnauthorized) Code() int
Code gets the status code for the update policy unauthorized response
func (*UpdatePolicyUnauthorized) Error ¶
func (o *UpdatePolicyUnauthorized) Error() string
func (*UpdatePolicyUnauthorized) GetPayload ¶
func (o *UpdatePolicyUnauthorized) GetPayload() *models.Error
func (*UpdatePolicyUnauthorized) IsClientError ¶
func (o *UpdatePolicyUnauthorized) IsClientError() bool
IsClientError returns true when this update policy unauthorized response has a 4xx status code
func (*UpdatePolicyUnauthorized) IsCode ¶
func (o *UpdatePolicyUnauthorized) IsCode(code int) bool
IsCode returns true when this update policy unauthorized response a status code equal to that given
func (*UpdatePolicyUnauthorized) IsRedirect ¶
func (o *UpdatePolicyUnauthorized) IsRedirect() bool
IsRedirect returns true when this update policy unauthorized response has a 3xx status code
func (*UpdatePolicyUnauthorized) IsServerError ¶
func (o *UpdatePolicyUnauthorized) IsServerError() bool
IsServerError returns true when this update policy unauthorized response has a 5xx status code
func (*UpdatePolicyUnauthorized) IsSuccess ¶
func (o *UpdatePolicyUnauthorized) IsSuccess() bool
IsSuccess returns true when this update policy unauthorized response has a 2xx status code
func (*UpdatePolicyUnauthorized) String ¶
func (o *UpdatePolicyUnauthorized) String() string
type UpdatePolicyUnprocessableEntity ¶
UpdatePolicyUnprocessableEntity describes a response with status code 422, with default header values.
Unprocessable entity
func NewUpdatePolicyUnprocessableEntity ¶
func NewUpdatePolicyUnprocessableEntity() *UpdatePolicyUnprocessableEntity
NewUpdatePolicyUnprocessableEntity creates a UpdatePolicyUnprocessableEntity with default headers values
func (*UpdatePolicyUnprocessableEntity) Code ¶
func (o *UpdatePolicyUnprocessableEntity) Code() int
Code gets the status code for the update policy unprocessable entity response
func (*UpdatePolicyUnprocessableEntity) Error ¶
func (o *UpdatePolicyUnprocessableEntity) Error() string
func (*UpdatePolicyUnprocessableEntity) GetPayload ¶
func (o *UpdatePolicyUnprocessableEntity) GetPayload() *models.Error
func (*UpdatePolicyUnprocessableEntity) IsClientError ¶
func (o *UpdatePolicyUnprocessableEntity) IsClientError() bool
IsClientError returns true when this update policy unprocessable entity response has a 4xx status code
func (*UpdatePolicyUnprocessableEntity) IsCode ¶
func (o *UpdatePolicyUnprocessableEntity) IsCode(code int) bool
IsCode returns true when this update policy unprocessable entity response a status code equal to that given
func (*UpdatePolicyUnprocessableEntity) IsRedirect ¶
func (o *UpdatePolicyUnprocessableEntity) IsRedirect() bool
IsRedirect returns true when this update policy unprocessable entity response has a 3xx status code
func (*UpdatePolicyUnprocessableEntity) IsServerError ¶
func (o *UpdatePolicyUnprocessableEntity) IsServerError() bool
IsServerError returns true when this update policy unprocessable entity response has a 5xx status code
func (*UpdatePolicyUnprocessableEntity) IsSuccess ¶
func (o *UpdatePolicyUnprocessableEntity) IsSuccess() bool
IsSuccess returns true when this update policy unprocessable entity response has a 2xx status code
func (*UpdatePolicyUnprocessableEntity) String ¶
func (o *UpdatePolicyUnprocessableEntity) String() string
Source Files ¶
- create_policy_parameters.go
- create_policy_responses.go
- delete_policy_parameters.go
- delete_policy_responses.go
- get_policy_parameters.go
- get_policy_responses.go
- list_policies_parameters.go
- list_policies_responses.go
- list_policy_execution_points_parameters.go
- list_policy_execution_points_responses.go
- policies_client.go
- set_policy_execution_points_parameters.go
- set_policy_execution_points_responses.go
- test_policy_parameters.go
- test_policy_responses.go
- update_policy_parameters.go
- update_policy_responses.go