Documentation
¶
Index ¶
- type Client
- func (a *Client) CreatePolicy(params *CreatePolicyParams, authInfo runtime.ClientAuthInfoWriter, ...) (*CreatePolicyCreated, error)
- func (a *Client) DeletePolicy(params *DeletePolicyParams, authInfo runtime.ClientAuthInfoWriter, ...) (*DeletePolicyOK, *DeletePolicyNoContent, error)
- func (a *Client) GetPolicy(params *GetPolicyParams, authInfo runtime.ClientAuthInfoWriter, ...) (*GetPolicyOK, error)
- func (a *Client) GetPolicyByVersion(params *GetPolicyByVersionParams, authInfo runtime.ClientAuthInfoWriter, ...) (*GetPolicyByVersionOK, error)
- func (a *Client) RestorePolicy(params *RestorePolicyParams, authInfo runtime.ClientAuthInfoWriter, ...) (*RestorePolicyNoContent, error)
- func (a *Client) RollbackPolicy(params *RollbackPolicyParams, opts ...ClientOption) (*RollbackPolicyOK, error)
- func (a *Client) SearchFilter(params *SearchFilterParams, authInfo runtime.ClientAuthInfoWriter, ...) (*SearchFilterOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- func (a *Client) UpdatePolicy(params *UpdatePolicyParams, authInfo runtime.ClientAuthInfoWriter, ...) (*UpdatePolicyOK, error)
- type ClientOption
- type ClientService
- type CreatePolicyBadRequest
- func (o *CreatePolicyBadRequest) Error() string
- func (o *CreatePolicyBadRequest) GetPayload() *models.HTTPError
- 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 CreatePolicyCreated
- 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) Error() string
- func (o *CreatePolicyForbidden) GetPayload() *models.HTTPError
- 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 CreatePolicyInternalServerError
- func (o *CreatePolicyInternalServerError) Error() string
- func (o *CreatePolicyInternalServerError) GetPayload() *models.HTTPError
- func (o *CreatePolicyInternalServerError) IsClientError() bool
- func (o *CreatePolicyInternalServerError) IsCode(code int) bool
- func (o *CreatePolicyInternalServerError) IsRedirect() bool
- func (o *CreatePolicyInternalServerError) IsServerError() bool
- func (o *CreatePolicyInternalServerError) IsSuccess() bool
- func (o *CreatePolicyInternalServerError) String() string
- type CreatePolicyParams
- func (o *CreatePolicyParams) SetBody(body *models.PolicyCreate)
- func (o *CreatePolicyParams) SetContext(ctx context.Context)
- func (o *CreatePolicyParams) SetDefaults()
- func (o *CreatePolicyParams) SetHTTPClient(client *http.Client)
- func (o *CreatePolicyParams) SetTimeout(timeout time.Duration)
- func (o *CreatePolicyParams) WithBody(body *models.PolicyCreate) *CreatePolicyParams
- func (o *CreatePolicyParams) WithContext(ctx context.Context) *CreatePolicyParams
- func (o *CreatePolicyParams) WithDefaults() *CreatePolicyParams
- func (o *CreatePolicyParams) WithHTTPClient(client *http.Client) *CreatePolicyParams
- func (o *CreatePolicyParams) WithTimeout(timeout time.Duration) *CreatePolicyParams
- func (o *CreatePolicyParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CreatePolicyReader
- type CreatePolicyUnauthorized
- func (o *CreatePolicyUnauthorized) Error() string
- func (o *CreatePolicyUnauthorized) GetPayload() *models.HTTPError
- 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 DeletePolicyBadRequest
- func (o *DeletePolicyBadRequest) Error() string
- func (o *DeletePolicyBadRequest) GetPayload() *models.HTTPError
- 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) Error() string
- func (o *DeletePolicyForbidden) GetPayload() *models.HTTPError
- 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 DeletePolicyInternalServerError
- func (o *DeletePolicyInternalServerError) Error() string
- func (o *DeletePolicyInternalServerError) GetPayload() *models.HTTPError
- func (o *DeletePolicyInternalServerError) IsClientError() bool
- func (o *DeletePolicyInternalServerError) IsCode(code int) bool
- func (o *DeletePolicyInternalServerError) IsRedirect() bool
- func (o *DeletePolicyInternalServerError) IsServerError() bool
- func (o *DeletePolicyInternalServerError) IsSuccess() bool
- func (o *DeletePolicyInternalServerError) String() string
- type DeletePolicyNoContent
- 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) Error() string
- func (o *DeletePolicyNotFound) GetPayload() *models.HTTPError
- 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 DeletePolicyOK
- func (o *DeletePolicyOK) Error() string
- func (o *DeletePolicyOK) GetPayload() *models.MessageResponse
- func (o *DeletePolicyOK) IsClientError() bool
- func (o *DeletePolicyOK) IsCode(code int) bool
- func (o *DeletePolicyOK) IsRedirect() bool
- func (o *DeletePolicyOK) IsServerError() bool
- func (o *DeletePolicyOK) IsSuccess() bool
- func (o *DeletePolicyOK) String() string
- type DeletePolicyParams
- func (o *DeletePolicyParams) SetContext(ctx context.Context)
- func (o *DeletePolicyParams) SetDefaults()
- func (o *DeletePolicyParams) SetForce(force *bool)
- func (o *DeletePolicyParams) SetHTTPClient(client *http.Client)
- func (o *DeletePolicyParams) SetPath(path string)
- func (o *DeletePolicyParams) SetTimeout(timeout time.Duration)
- func (o *DeletePolicyParams) WithContext(ctx context.Context) *DeletePolicyParams
- func (o *DeletePolicyParams) WithDefaults() *DeletePolicyParams
- func (o *DeletePolicyParams) WithForce(force *bool) *DeletePolicyParams
- func (o *DeletePolicyParams) WithHTTPClient(client *http.Client) *DeletePolicyParams
- func (o *DeletePolicyParams) WithPath(path string) *DeletePolicyParams
- func (o *DeletePolicyParams) WithTimeout(timeout time.Duration) *DeletePolicyParams
- func (o *DeletePolicyParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DeletePolicyReader
- type DeletePolicyUnauthorized
- func (o *DeletePolicyUnauthorized) Error() string
- func (o *DeletePolicyUnauthorized) GetPayload() *models.HTTPError
- 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 GetPolicyBadRequest
- func (o *GetPolicyBadRequest) Error() string
- func (o *GetPolicyBadRequest) GetPayload() *models.HTTPError
- func (o *GetPolicyBadRequest) IsClientError() bool
- func (o *GetPolicyBadRequest) IsCode(code int) bool
- func (o *GetPolicyBadRequest) IsRedirect() bool
- func (o *GetPolicyBadRequest) IsServerError() bool
- func (o *GetPolicyBadRequest) IsSuccess() bool
- func (o *GetPolicyBadRequest) String() string
- type GetPolicyByVersionBadRequest
- func (o *GetPolicyByVersionBadRequest) Error() string
- func (o *GetPolicyByVersionBadRequest) GetPayload() *models.HTTPError
- func (o *GetPolicyByVersionBadRequest) IsClientError() bool
- func (o *GetPolicyByVersionBadRequest) IsCode(code int) bool
- func (o *GetPolicyByVersionBadRequest) IsRedirect() bool
- func (o *GetPolicyByVersionBadRequest) IsServerError() bool
- func (o *GetPolicyByVersionBadRequest) IsSuccess() bool
- func (o *GetPolicyByVersionBadRequest) String() string
- type GetPolicyByVersionForbidden
- func (o *GetPolicyByVersionForbidden) Error() string
- func (o *GetPolicyByVersionForbidden) GetPayload() *models.HTTPError
- func (o *GetPolicyByVersionForbidden) IsClientError() bool
- func (o *GetPolicyByVersionForbidden) IsCode(code int) bool
- func (o *GetPolicyByVersionForbidden) IsRedirect() bool
- func (o *GetPolicyByVersionForbidden) IsServerError() bool
- func (o *GetPolicyByVersionForbidden) IsSuccess() bool
- func (o *GetPolicyByVersionForbidden) String() string
- type GetPolicyByVersionInternalServerError
- func (o *GetPolicyByVersionInternalServerError) Error() string
- func (o *GetPolicyByVersionInternalServerError) GetPayload() *models.HTTPError
- func (o *GetPolicyByVersionInternalServerError) IsClientError() bool
- func (o *GetPolicyByVersionInternalServerError) IsCode(code int) bool
- func (o *GetPolicyByVersionInternalServerError) IsRedirect() bool
- func (o *GetPolicyByVersionInternalServerError) IsServerError() bool
- func (o *GetPolicyByVersionInternalServerError) IsSuccess() bool
- func (o *GetPolicyByVersionInternalServerError) String() string
- type GetPolicyByVersionNotFound
- func (o *GetPolicyByVersionNotFound) Error() string
- func (o *GetPolicyByVersionNotFound) GetPayload() *models.HTTPError
- func (o *GetPolicyByVersionNotFound) IsClientError() bool
- func (o *GetPolicyByVersionNotFound) IsCode(code int) bool
- func (o *GetPolicyByVersionNotFound) IsRedirect() bool
- func (o *GetPolicyByVersionNotFound) IsServerError() bool
- func (o *GetPolicyByVersionNotFound) IsSuccess() bool
- func (o *GetPolicyByVersionNotFound) String() string
- type GetPolicyByVersionOK
- func (o *GetPolicyByVersionOK) Error() string
- func (o *GetPolicyByVersionOK) GetPayload() *models.PolicyVersionResponse
- func (o *GetPolicyByVersionOK) IsClientError() bool
- func (o *GetPolicyByVersionOK) IsCode(code int) bool
- func (o *GetPolicyByVersionOK) IsRedirect() bool
- func (o *GetPolicyByVersionOK) IsServerError() bool
- func (o *GetPolicyByVersionOK) IsSuccess() bool
- func (o *GetPolicyByVersionOK) String() string
- type GetPolicyByVersionParams
- func NewGetPolicyByVersionParams() *GetPolicyByVersionParams
- func NewGetPolicyByVersionParamsWithContext(ctx context.Context) *GetPolicyByVersionParams
- func NewGetPolicyByVersionParamsWithHTTPClient(client *http.Client) *GetPolicyByVersionParams
- func NewGetPolicyByVersionParamsWithTimeout(timeout time.Duration) *GetPolicyByVersionParams
- func (o *GetPolicyByVersionParams) SetContext(ctx context.Context)
- func (o *GetPolicyByVersionParams) SetDefaults()
- func (o *GetPolicyByVersionParams) SetHTTPClient(client *http.Client)
- func (o *GetPolicyByVersionParams) SetPath(path string)
- func (o *GetPolicyByVersionParams) SetTimeout(timeout time.Duration)
- func (o *GetPolicyByVersionParams) SetVersion(version int64)
- func (o *GetPolicyByVersionParams) WithContext(ctx context.Context) *GetPolicyByVersionParams
- func (o *GetPolicyByVersionParams) WithDefaults() *GetPolicyByVersionParams
- func (o *GetPolicyByVersionParams) WithHTTPClient(client *http.Client) *GetPolicyByVersionParams
- func (o *GetPolicyByVersionParams) WithPath(path string) *GetPolicyByVersionParams
- func (o *GetPolicyByVersionParams) WithTimeout(timeout time.Duration) *GetPolicyByVersionParams
- func (o *GetPolicyByVersionParams) WithVersion(version int64) *GetPolicyByVersionParams
- func (o *GetPolicyByVersionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetPolicyByVersionReader
- type GetPolicyByVersionUnauthorized
- func (o *GetPolicyByVersionUnauthorized) Error() string
- func (o *GetPolicyByVersionUnauthorized) GetPayload() *models.HTTPError
- func (o *GetPolicyByVersionUnauthorized) IsClientError() bool
- func (o *GetPolicyByVersionUnauthorized) IsCode(code int) bool
- func (o *GetPolicyByVersionUnauthorized) IsRedirect() bool
- func (o *GetPolicyByVersionUnauthorized) IsServerError() bool
- func (o *GetPolicyByVersionUnauthorized) IsSuccess() bool
- func (o *GetPolicyByVersionUnauthorized) String() string
- type GetPolicyForbidden
- func (o *GetPolicyForbidden) Error() string
- func (o *GetPolicyForbidden) GetPayload() *models.HTTPError
- 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 GetPolicyInternalServerError
- func (o *GetPolicyInternalServerError) Error() string
- func (o *GetPolicyInternalServerError) GetPayload() *models.HTTPError
- func (o *GetPolicyInternalServerError) IsClientError() bool
- func (o *GetPolicyInternalServerError) IsCode(code int) bool
- func (o *GetPolicyInternalServerError) IsRedirect() bool
- func (o *GetPolicyInternalServerError) IsServerError() bool
- func (o *GetPolicyInternalServerError) IsSuccess() bool
- func (o *GetPolicyInternalServerError) String() string
- type GetPolicyNotFound
- func (o *GetPolicyNotFound) Error() string
- func (o *GetPolicyNotFound) GetPayload() *models.HTTPError
- 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) 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) SetPath(path 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) WithPath(path string) *GetPolicyParams
- func (o *GetPolicyParams) WithTimeout(timeout time.Duration) *GetPolicyParams
- func (o *GetPolicyParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetPolicyReader
- type GetPolicyUnauthorized
- func (o *GetPolicyUnauthorized) Error() string
- func (o *GetPolicyUnauthorized) GetPayload() *models.HTTPError
- 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 RestorePolicyBadRequest
- func (o *RestorePolicyBadRequest) Error() string
- func (o *RestorePolicyBadRequest) GetPayload() *models.HTTPError
- func (o *RestorePolicyBadRequest) IsClientError() bool
- func (o *RestorePolicyBadRequest) IsCode(code int) bool
- func (o *RestorePolicyBadRequest) IsRedirect() bool
- func (o *RestorePolicyBadRequest) IsServerError() bool
- func (o *RestorePolicyBadRequest) IsSuccess() bool
- func (o *RestorePolicyBadRequest) String() string
- type RestorePolicyForbidden
- func (o *RestorePolicyForbidden) Error() string
- func (o *RestorePolicyForbidden) GetPayload() *models.HTTPError
- func (o *RestorePolicyForbidden) IsClientError() bool
- func (o *RestorePolicyForbidden) IsCode(code int) bool
- func (o *RestorePolicyForbidden) IsRedirect() bool
- func (o *RestorePolicyForbidden) IsServerError() bool
- func (o *RestorePolicyForbidden) IsSuccess() bool
- func (o *RestorePolicyForbidden) String() string
- type RestorePolicyInternalServerError
- func (o *RestorePolicyInternalServerError) Error() string
- func (o *RestorePolicyInternalServerError) GetPayload() *models.HTTPError
- func (o *RestorePolicyInternalServerError) IsClientError() bool
- func (o *RestorePolicyInternalServerError) IsCode(code int) bool
- func (o *RestorePolicyInternalServerError) IsRedirect() bool
- func (o *RestorePolicyInternalServerError) IsServerError() bool
- func (o *RestorePolicyInternalServerError) IsSuccess() bool
- func (o *RestorePolicyInternalServerError) String() string
- type RestorePolicyNoContent
- func (o *RestorePolicyNoContent) Error() string
- func (o *RestorePolicyNoContent) IsClientError() bool
- func (o *RestorePolicyNoContent) IsCode(code int) bool
- func (o *RestorePolicyNoContent) IsRedirect() bool
- func (o *RestorePolicyNoContent) IsServerError() bool
- func (o *RestorePolicyNoContent) IsSuccess() bool
- func (o *RestorePolicyNoContent) String() string
- type RestorePolicyNotFound
- func (o *RestorePolicyNotFound) Error() string
- func (o *RestorePolicyNotFound) GetPayload() *models.HTTPError
- func (o *RestorePolicyNotFound) IsClientError() bool
- func (o *RestorePolicyNotFound) IsCode(code int) bool
- func (o *RestorePolicyNotFound) IsRedirect() bool
- func (o *RestorePolicyNotFound) IsServerError() bool
- func (o *RestorePolicyNotFound) IsSuccess() bool
- func (o *RestorePolicyNotFound) String() string
- type RestorePolicyParams
- func (o *RestorePolicyParams) SetContext(ctx context.Context)
- func (o *RestorePolicyParams) SetDefaults()
- func (o *RestorePolicyParams) SetHTTPClient(client *http.Client)
- func (o *RestorePolicyParams) SetPath(path string)
- func (o *RestorePolicyParams) SetTimeout(timeout time.Duration)
- func (o *RestorePolicyParams) WithContext(ctx context.Context) *RestorePolicyParams
- func (o *RestorePolicyParams) WithDefaults() *RestorePolicyParams
- func (o *RestorePolicyParams) WithHTTPClient(client *http.Client) *RestorePolicyParams
- func (o *RestorePolicyParams) WithPath(path string) *RestorePolicyParams
- func (o *RestorePolicyParams) WithTimeout(timeout time.Duration) *RestorePolicyParams
- func (o *RestorePolicyParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type RestorePolicyReader
- type RestorePolicyUnauthorized
- func (o *RestorePolicyUnauthorized) Error() string
- func (o *RestorePolicyUnauthorized) GetPayload() *models.HTTPError
- func (o *RestorePolicyUnauthorized) IsClientError() bool
- func (o *RestorePolicyUnauthorized) IsCode(code int) bool
- func (o *RestorePolicyUnauthorized) IsRedirect() bool
- func (o *RestorePolicyUnauthorized) IsServerError() bool
- func (o *RestorePolicyUnauthorized) IsSuccess() bool
- func (o *RestorePolicyUnauthorized) String() string
- type RollbackPolicyBadRequest
- func (o *RollbackPolicyBadRequest) Error() string
- func (o *RollbackPolicyBadRequest) GetPayload() *models.HTTPError
- func (o *RollbackPolicyBadRequest) IsClientError() bool
- func (o *RollbackPolicyBadRequest) IsCode(code int) bool
- func (o *RollbackPolicyBadRequest) IsRedirect() bool
- func (o *RollbackPolicyBadRequest) IsServerError() bool
- func (o *RollbackPolicyBadRequest) IsSuccess() bool
- func (o *RollbackPolicyBadRequest) String() string
- type RollbackPolicyForbidden
- func (o *RollbackPolicyForbidden) Error() string
- func (o *RollbackPolicyForbidden) GetPayload() *models.HTTPError
- func (o *RollbackPolicyForbidden) IsClientError() bool
- func (o *RollbackPolicyForbidden) IsCode(code int) bool
- func (o *RollbackPolicyForbidden) IsRedirect() bool
- func (o *RollbackPolicyForbidden) IsServerError() bool
- func (o *RollbackPolicyForbidden) IsSuccess() bool
- func (o *RollbackPolicyForbidden) String() string
- type RollbackPolicyInternalServerError
- func (o *RollbackPolicyInternalServerError) Error() string
- func (o *RollbackPolicyInternalServerError) GetPayload() *models.HTTPError
- func (o *RollbackPolicyInternalServerError) IsClientError() bool
- func (o *RollbackPolicyInternalServerError) IsCode(code int) bool
- func (o *RollbackPolicyInternalServerError) IsRedirect() bool
- func (o *RollbackPolicyInternalServerError) IsServerError() bool
- func (o *RollbackPolicyInternalServerError) IsSuccess() bool
- func (o *RollbackPolicyInternalServerError) String() string
- type RollbackPolicyOK
- func (o *RollbackPolicyOK) Error() string
- func (o *RollbackPolicyOK) GetPayload() *models.Policy
- func (o *RollbackPolicyOK) IsClientError() bool
- func (o *RollbackPolicyOK) IsCode(code int) bool
- func (o *RollbackPolicyOK) IsRedirect() bool
- func (o *RollbackPolicyOK) IsServerError() bool
- func (o *RollbackPolicyOK) IsSuccess() bool
- func (o *RollbackPolicyOK) String() string
- type RollbackPolicyParams
- func NewRollbackPolicyParams() *RollbackPolicyParams
- func NewRollbackPolicyParamsWithContext(ctx context.Context) *RollbackPolicyParams
- func NewRollbackPolicyParamsWithHTTPClient(client *http.Client) *RollbackPolicyParams
- func NewRollbackPolicyParamsWithTimeout(timeout time.Duration) *RollbackPolicyParams
- func (o *RollbackPolicyParams) SetContext(ctx context.Context)
- func (o *RollbackPolicyParams) SetDefaults()
- func (o *RollbackPolicyParams) SetHTTPClient(client *http.Client)
- func (o *RollbackPolicyParams) SetPath(path string)
- func (o *RollbackPolicyParams) SetTimeout(timeout time.Duration)
- func (o *RollbackPolicyParams) SetVersion(version int64)
- func (o *RollbackPolicyParams) WithContext(ctx context.Context) *RollbackPolicyParams
- func (o *RollbackPolicyParams) WithDefaults() *RollbackPolicyParams
- func (o *RollbackPolicyParams) WithHTTPClient(client *http.Client) *RollbackPolicyParams
- func (o *RollbackPolicyParams) WithPath(path string) *RollbackPolicyParams
- func (o *RollbackPolicyParams) WithTimeout(timeout time.Duration) *RollbackPolicyParams
- func (o *RollbackPolicyParams) WithVersion(version int64) *RollbackPolicyParams
- func (o *RollbackPolicyParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type RollbackPolicyReader
- type RollbackPolicyUnauthorized
- func (o *RollbackPolicyUnauthorized) Error() string
- func (o *RollbackPolicyUnauthorized) GetPayload() *models.HTTPError
- func (o *RollbackPolicyUnauthorized) IsClientError() bool
- func (o *RollbackPolicyUnauthorized) IsCode(code int) bool
- func (o *RollbackPolicyUnauthorized) IsRedirect() bool
- func (o *RollbackPolicyUnauthorized) IsServerError() bool
- func (o *RollbackPolicyUnauthorized) IsSuccess() bool
- func (o *RollbackPolicyUnauthorized) String() string
- type SearchFilterBadRequest
- func (o *SearchFilterBadRequest) Error() string
- func (o *SearchFilterBadRequest) GetPayload() *models.HTTPError
- func (o *SearchFilterBadRequest) IsClientError() bool
- func (o *SearchFilterBadRequest) IsCode(code int) bool
- func (o *SearchFilterBadRequest) IsRedirect() bool
- func (o *SearchFilterBadRequest) IsServerError() bool
- func (o *SearchFilterBadRequest) IsSuccess() bool
- func (o *SearchFilterBadRequest) String() string
- type SearchFilterForbidden
- func (o *SearchFilterForbidden) Error() string
- func (o *SearchFilterForbidden) GetPayload() *models.HTTPError
- func (o *SearchFilterForbidden) IsClientError() bool
- func (o *SearchFilterForbidden) IsCode(code int) bool
- func (o *SearchFilterForbidden) IsRedirect() bool
- func (o *SearchFilterForbidden) IsServerError() bool
- func (o *SearchFilterForbidden) IsSuccess() bool
- func (o *SearchFilterForbidden) String() string
- type SearchFilterInternalServerError
- func (o *SearchFilterInternalServerError) Error() string
- func (o *SearchFilterInternalServerError) GetPayload() *models.HTTPError
- func (o *SearchFilterInternalServerError) IsClientError() bool
- func (o *SearchFilterInternalServerError) IsCode(code int) bool
- func (o *SearchFilterInternalServerError) IsRedirect() bool
- func (o *SearchFilterInternalServerError) IsServerError() bool
- func (o *SearchFilterInternalServerError) IsSuccess() bool
- func (o *SearchFilterInternalServerError) String() string
- type SearchFilterNotFound
- func (o *SearchFilterNotFound) Error() string
- func (o *SearchFilterNotFound) GetPayload() *models.HTTPError
- func (o *SearchFilterNotFound) IsClientError() bool
- func (o *SearchFilterNotFound) IsCode(code int) bool
- func (o *SearchFilterNotFound) IsRedirect() bool
- func (o *SearchFilterNotFound) IsServerError() bool
- func (o *SearchFilterNotFound) IsSuccess() bool
- func (o *SearchFilterNotFound) String() string
- type SearchFilterOK
- func (o *SearchFilterOK) Error() string
- func (o *SearchFilterOK) GetPayload() *models.PolicySearchResponse
- func (o *SearchFilterOK) IsClientError() bool
- func (o *SearchFilterOK) IsCode(code int) bool
- func (o *SearchFilterOK) IsRedirect() bool
- func (o *SearchFilterOK) IsServerError() bool
- func (o *SearchFilterOK) IsSuccess() bool
- func (o *SearchFilterOK) String() string
- type SearchFilterParams
- func (o *SearchFilterParams) SetContext(ctx context.Context)
- func (o *SearchFilterParams) SetCursor(cursor *string)
- func (o *SearchFilterParams) SetDefaults()
- func (o *SearchFilterParams) SetHTTPClient(client *http.Client)
- func (o *SearchFilterParams) SetLimit(limit *int64)
- func (o *SearchFilterParams) SetSearchTerm(searchTerm *string)
- func (o *SearchFilterParams) SetTimeout(timeout time.Duration)
- func (o *SearchFilterParams) WithContext(ctx context.Context) *SearchFilterParams
- func (o *SearchFilterParams) WithCursor(cursor *string) *SearchFilterParams
- func (o *SearchFilterParams) WithDefaults() *SearchFilterParams
- func (o *SearchFilterParams) WithHTTPClient(client *http.Client) *SearchFilterParams
- func (o *SearchFilterParams) WithLimit(limit *int64) *SearchFilterParams
- func (o *SearchFilterParams) WithSearchTerm(searchTerm *string) *SearchFilterParams
- func (o *SearchFilterParams) WithTimeout(timeout time.Duration) *SearchFilterParams
- func (o *SearchFilterParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type SearchFilterReader
- type SearchFilterUnauthorized
- func (o *SearchFilterUnauthorized) Error() string
- func (o *SearchFilterUnauthorized) GetPayload() *models.HTTPError
- func (o *SearchFilterUnauthorized) IsClientError() bool
- func (o *SearchFilterUnauthorized) IsCode(code int) bool
- func (o *SearchFilterUnauthorized) IsRedirect() bool
- func (o *SearchFilterUnauthorized) IsServerError() bool
- func (o *SearchFilterUnauthorized) IsSuccess() bool
- func (o *SearchFilterUnauthorized) String() string
- type UpdatePolicyBadRequest
- func (o *UpdatePolicyBadRequest) Error() string
- func (o *UpdatePolicyBadRequest) GetPayload() *models.HTTPError
- 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 UpdatePolicyForbidden
- func (o *UpdatePolicyForbidden) Error() string
- func (o *UpdatePolicyForbidden) GetPayload() *models.HTTPError
- 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 UpdatePolicyInternalServerError
- func (o *UpdatePolicyInternalServerError) Error() string
- func (o *UpdatePolicyInternalServerError) GetPayload() *models.HTTPError
- func (o *UpdatePolicyInternalServerError) IsClientError() bool
- func (o *UpdatePolicyInternalServerError) IsCode(code int) bool
- func (o *UpdatePolicyInternalServerError) IsRedirect() bool
- func (o *UpdatePolicyInternalServerError) IsServerError() bool
- func (o *UpdatePolicyInternalServerError) IsSuccess() bool
- func (o *UpdatePolicyInternalServerError) String() string
- type UpdatePolicyOK
- func (o *UpdatePolicyOK) Error() string
- func (o *UpdatePolicyOK) GetPayload() *models.Policy
- func (o *UpdatePolicyOK) IsClientError() bool
- func (o *UpdatePolicyOK) IsCode(code int) bool
- func (o *UpdatePolicyOK) IsRedirect() bool
- func (o *UpdatePolicyOK) IsServerError() bool
- func (o *UpdatePolicyOK) IsSuccess() bool
- func (o *UpdatePolicyOK) String() string
- type UpdatePolicyParams
- func (o *UpdatePolicyParams) SetBody(body *models.PolicyUpdate)
- func (o *UpdatePolicyParams) SetContext(ctx context.Context)
- func (o *UpdatePolicyParams) SetDefaults()
- func (o *UpdatePolicyParams) SetHTTPClient(client *http.Client)
- func (o *UpdatePolicyParams) SetPath(path string)
- func (o *UpdatePolicyParams) SetTimeout(timeout time.Duration)
- func (o *UpdatePolicyParams) WithBody(body *models.PolicyUpdate) *UpdatePolicyParams
- func (o *UpdatePolicyParams) WithContext(ctx context.Context) *UpdatePolicyParams
- func (o *UpdatePolicyParams) WithDefaults() *UpdatePolicyParams
- func (o *UpdatePolicyParams) WithHTTPClient(client *http.Client) *UpdatePolicyParams
- func (o *UpdatePolicyParams) WithPath(path string) *UpdatePolicyParams
- func (o *UpdatePolicyParams) WithTimeout(timeout time.Duration) *UpdatePolicyParams
- func (o *UpdatePolicyParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type UpdatePolicyReader
- type UpdatePolicyUnauthorized
- func (o *UpdatePolicyUnauthorized) Error() string
- func (o *UpdatePolicyUnauthorized) GetPayload() *models.HTTPError
- 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
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
Creates new policy with permission document.
func (*Client) DeletePolicy ¶
func (a *Client) DeletePolicy(params *DeletePolicyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeletePolicyOK, *DeletePolicyNoContent, error)
DeletePolicy deletes policy
Remove an existing policy by path.
func (*Client) GetPolicy ¶
func (a *Client) GetPolicy(params *GetPolicyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetPolicyOK, error)
GetPolicy gets policy
Retrieve policy by path.
func (*Client) GetPolicyByVersion ¶
func (a *Client) GetPolicyByVersion(params *GetPolicyByVersionParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetPolicyByVersionOK, error)
GetPolicyByVersion gets a list of policies by version
Get a full policies by path and version in the query.Returns a list of zero up to n versions of an item.
func (*Client) RestorePolicy ¶
func (a *Client) RestorePolicy(params *RestorePolicyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*RestorePolicyNoContent, error)
RestorePolicy restores policy
Restore an existing policy by path.
func (*Client) RollbackPolicy ¶
func (a *Client) RollbackPolicy(params *RollbackPolicyParams, opts ...ClientOption) (*RollbackPolicyOK, error)
RollbackPolicy rollbacks policy
Overwrites an existing policy with its previous version.
func (*Client) SearchFilter ¶
func (a *Client) SearchFilter(params *SearchFilterParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SearchFilterOK, error)
SearchFilter searches policies
Search permission policies by path.
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
func (*Client) UpdatePolicy ¶
func (a *Client) UpdatePolicy(params *UpdatePolicyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdatePolicyOK, error)
UpdatePolicy updates policy
Overwrites an existing policy with an updated permissions document.
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) (*DeletePolicyOK, *DeletePolicyNoContent, error) GetPolicy(params *GetPolicyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetPolicyOK, error) GetPolicyByVersion(params *GetPolicyByVersionParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetPolicyByVersionOK, error) RestorePolicy(params *RestorePolicyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*RestorePolicyNoContent, error) RollbackPolicy(params *RollbackPolicyParams, opts ...ClientOption) (*RollbackPolicyOK, error) SearchFilter(params *SearchFilterParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SearchFilterOK, error) UpdatePolicy(params *UpdatePolicyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdatePolicyOK, 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) Error ¶
func (o *CreatePolicyBadRequest) Error() string
func (*CreatePolicyBadRequest) GetPayload ¶
func (o *CreatePolicyBadRequest) GetPayload() *models.HTTPError
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 CreatePolicyCreated ¶
CreatePolicyCreated describes a response with status code 201, with default header values.
no error
func NewCreatePolicyCreated ¶
func NewCreatePolicyCreated() *CreatePolicyCreated
NewCreatePolicyCreated creates a CreatePolicyCreated with default headers values
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) Error ¶
func (o *CreatePolicyForbidden) Error() string
func (*CreatePolicyForbidden) GetPayload ¶
func (o *CreatePolicyForbidden) GetPayload() *models.HTTPError
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 CreatePolicyInternalServerError ¶
CreatePolicyInternalServerError describes a response with status code 500, with default header values.
server error
func NewCreatePolicyInternalServerError ¶
func NewCreatePolicyInternalServerError() *CreatePolicyInternalServerError
NewCreatePolicyInternalServerError creates a CreatePolicyInternalServerError with default headers values
func (*CreatePolicyInternalServerError) Error ¶
func (o *CreatePolicyInternalServerError) Error() string
func (*CreatePolicyInternalServerError) GetPayload ¶
func (o *CreatePolicyInternalServerError) GetPayload() *models.HTTPError
func (*CreatePolicyInternalServerError) IsClientError ¶
func (o *CreatePolicyInternalServerError) IsClientError() bool
IsClientError returns true when this create policy internal server error response has a 4xx status code
func (*CreatePolicyInternalServerError) IsCode ¶
func (o *CreatePolicyInternalServerError) IsCode(code int) bool
IsCode returns true when this create policy internal server error response a status code equal to that given
func (*CreatePolicyInternalServerError) IsRedirect ¶
func (o *CreatePolicyInternalServerError) IsRedirect() bool
IsRedirect returns true when this create policy internal server error response has a 3xx status code
func (*CreatePolicyInternalServerError) IsServerError ¶
func (o *CreatePolicyInternalServerError) IsServerError() bool
IsServerError returns true when this create policy internal server error response has a 5xx status code
func (*CreatePolicyInternalServerError) IsSuccess ¶
func (o *CreatePolicyInternalServerError) IsSuccess() bool
IsSuccess returns true when this create policy internal server error response has a 2xx status code
func (*CreatePolicyInternalServerError) String ¶
func (o *CreatePolicyInternalServerError) String() string
type CreatePolicyParams ¶
type CreatePolicyParams struct { // Body. Body *models.PolicyCreate Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
CreatePolicyParams contains all the parameters to send to the API endpoint
for the create policy operation. Typically these are written to a http.Request.
func NewCreatePolicyParams ¶
func NewCreatePolicyParams() *CreatePolicyParams
NewCreatePolicyParams creates a new CreatePolicyParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewCreatePolicyParamsWithContext ¶
func NewCreatePolicyParamsWithContext(ctx context.Context) *CreatePolicyParams
NewCreatePolicyParamsWithContext creates a new CreatePolicyParams object with the ability to set a context for a request.
func NewCreatePolicyParamsWithHTTPClient ¶
func NewCreatePolicyParamsWithHTTPClient(client *http.Client) *CreatePolicyParams
NewCreatePolicyParamsWithHTTPClient creates a new CreatePolicyParams object with the ability to set a custom HTTPClient for a request.
func NewCreatePolicyParamsWithTimeout ¶
func NewCreatePolicyParamsWithTimeout(timeout time.Duration) *CreatePolicyParams
NewCreatePolicyParamsWithTimeout creates a new CreatePolicyParams object with the ability to set a timeout on a request.
func (*CreatePolicyParams) SetBody ¶
func (o *CreatePolicyParams) SetBody(body *models.PolicyCreate)
SetBody adds the body to the create policy params
func (*CreatePolicyParams) SetContext ¶
func (o *CreatePolicyParams) SetContext(ctx context.Context)
SetContext adds the context to the create policy params
func (*CreatePolicyParams) SetDefaults ¶
func (o *CreatePolicyParams) SetDefaults()
SetDefaults hydrates default values in the create policy params (not the query body).
All values with no default are reset to their zero value.
func (*CreatePolicyParams) SetHTTPClient ¶
func (o *CreatePolicyParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the create policy params
func (*CreatePolicyParams) SetTimeout ¶
func (o *CreatePolicyParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the create policy params
func (*CreatePolicyParams) WithBody ¶
func (o *CreatePolicyParams) WithBody(body *models.PolicyCreate) *CreatePolicyParams
WithBody adds the body to the create policy params
func (*CreatePolicyParams) WithContext ¶
func (o *CreatePolicyParams) WithContext(ctx context.Context) *CreatePolicyParams
WithContext adds the context to the create policy params
func (*CreatePolicyParams) WithDefaults ¶
func (o *CreatePolicyParams) WithDefaults() *CreatePolicyParams
WithDefaults hydrates default values in the create policy params (not the query body).
All values with no default are reset to their zero value.
func (*CreatePolicyParams) WithHTTPClient ¶
func (o *CreatePolicyParams) WithHTTPClient(client *http.Client) *CreatePolicyParams
WithHTTPClient adds the HTTPClient to the create policy params
func (*CreatePolicyParams) WithTimeout ¶
func (o *CreatePolicyParams) WithTimeout(timeout time.Duration) *CreatePolicyParams
WithTimeout adds the timeout to the create policy params
func (*CreatePolicyParams) WriteToRequest ¶
func (o *CreatePolicyParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type CreatePolicyReader ¶
type CreatePolicyReader struct {
// contains filtered or unexported fields
}
CreatePolicyReader is a Reader for the CreatePolicy structure.
func (*CreatePolicyReader) ReadResponse ¶
func (o *CreatePolicyReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
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) Error ¶
func (o *CreatePolicyUnauthorized) Error() string
func (*CreatePolicyUnauthorized) GetPayload ¶
func (o *CreatePolicyUnauthorized) GetPayload() *models.HTTPError
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 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) Error ¶
func (o *DeletePolicyBadRequest) Error() string
func (*DeletePolicyBadRequest) GetPayload ¶
func (o *DeletePolicyBadRequest) GetPayload() *models.HTTPError
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) Error ¶
func (o *DeletePolicyForbidden) Error() string
func (*DeletePolicyForbidden) GetPayload ¶
func (o *DeletePolicyForbidden) GetPayload() *models.HTTPError
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 DeletePolicyInternalServerError ¶
DeletePolicyInternalServerError describes a response with status code 500, with default header values.
server error
func NewDeletePolicyInternalServerError ¶
func NewDeletePolicyInternalServerError() *DeletePolicyInternalServerError
NewDeletePolicyInternalServerError creates a DeletePolicyInternalServerError with default headers values
func (*DeletePolicyInternalServerError) Error ¶
func (o *DeletePolicyInternalServerError) Error() string
func (*DeletePolicyInternalServerError) GetPayload ¶
func (o *DeletePolicyInternalServerError) GetPayload() *models.HTTPError
func (*DeletePolicyInternalServerError) IsClientError ¶
func (o *DeletePolicyInternalServerError) IsClientError() bool
IsClientError returns true when this delete policy internal server error response has a 4xx status code
func (*DeletePolicyInternalServerError) IsCode ¶
func (o *DeletePolicyInternalServerError) IsCode(code int) bool
IsCode returns true when this delete policy internal server error response a status code equal to that given
func (*DeletePolicyInternalServerError) IsRedirect ¶
func (o *DeletePolicyInternalServerError) IsRedirect() bool
IsRedirect returns true when this delete policy internal server error response has a 3xx status code
func (*DeletePolicyInternalServerError) IsServerError ¶
func (o *DeletePolicyInternalServerError) IsServerError() bool
IsServerError returns true when this delete policy internal server error response has a 5xx status code
func (*DeletePolicyInternalServerError) IsSuccess ¶
func (o *DeletePolicyInternalServerError) IsSuccess() bool
IsSuccess returns true when this delete policy internal server error response has a 2xx status code
func (*DeletePolicyInternalServerError) String ¶
func (o *DeletePolicyInternalServerError) String() string
type DeletePolicyNoContent ¶
type DeletePolicyNoContent struct { }
DeletePolicyNoContent describes a response with status code 204, with default header values.
no error
func NewDeletePolicyNoContent ¶
func NewDeletePolicyNoContent() *DeletePolicyNoContent
NewDeletePolicyNoContent creates a DeletePolicyNoContent with default headers values
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) Error ¶
func (o *DeletePolicyNotFound) Error() string
func (*DeletePolicyNotFound) GetPayload ¶
func (o *DeletePolicyNotFound) GetPayload() *models.HTTPError
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 DeletePolicyOK ¶
type DeletePolicyOK struct {
Payload *models.MessageResponse
}
DeletePolicyOK describes a response with status code 200, with default header values.
no error
func NewDeletePolicyOK ¶
func NewDeletePolicyOK() *DeletePolicyOK
NewDeletePolicyOK creates a DeletePolicyOK with default headers values
func (*DeletePolicyOK) Error ¶
func (o *DeletePolicyOK) Error() string
func (*DeletePolicyOK) GetPayload ¶
func (o *DeletePolicyOK) GetPayload() *models.MessageResponse
func (*DeletePolicyOK) IsClientError ¶
func (o *DeletePolicyOK) IsClientError() bool
IsClientError returns true when this delete policy o k response has a 4xx status code
func (*DeletePolicyOK) IsCode ¶
func (o *DeletePolicyOK) IsCode(code int) bool
IsCode returns true when this delete policy o k response a status code equal to that given
func (*DeletePolicyOK) IsRedirect ¶
func (o *DeletePolicyOK) IsRedirect() bool
IsRedirect returns true when this delete policy o k response has a 3xx status code
func (*DeletePolicyOK) IsServerError ¶
func (o *DeletePolicyOK) IsServerError() bool
IsServerError returns true when this delete policy o k response has a 5xx status code
func (*DeletePolicyOK) IsSuccess ¶
func (o *DeletePolicyOK) IsSuccess() bool
IsSuccess returns true when this delete policy o k response has a 2xx status code
func (*DeletePolicyOK) String ¶
func (o *DeletePolicyOK) String() string
type DeletePolicyParams ¶
type DeletePolicyParams struct { /* Force. Delete immediately */ Force *bool /* Path. Full path to lookup policy */ Path 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) SetForce ¶
func (o *DeletePolicyParams) SetForce(force *bool)
SetForce adds the force to the delete policy params
func (*DeletePolicyParams) SetHTTPClient ¶
func (o *DeletePolicyParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the delete policy params
func (*DeletePolicyParams) SetPath ¶
func (o *DeletePolicyParams) SetPath(path string)
SetPath adds the path 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) WithForce ¶
func (o *DeletePolicyParams) WithForce(force *bool) *DeletePolicyParams
WithForce adds the force to the delete policy params
func (*DeletePolicyParams) WithHTTPClient ¶
func (o *DeletePolicyParams) WithHTTPClient(client *http.Client) *DeletePolicyParams
WithHTTPClient adds the HTTPClient to the delete policy params
func (*DeletePolicyParams) WithPath ¶
func (o *DeletePolicyParams) WithPath(path string) *DeletePolicyParams
WithPath adds the path 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 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) Error ¶
func (o *DeletePolicyUnauthorized) Error() string
func (*DeletePolicyUnauthorized) GetPayload ¶
func (o *DeletePolicyUnauthorized) GetPayload() *models.HTTPError
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 GetPolicyBadRequest ¶
GetPolicyBadRequest describes a response with status code 400, with default header values.
bad request
func NewGetPolicyBadRequest ¶
func NewGetPolicyBadRequest() *GetPolicyBadRequest
NewGetPolicyBadRequest creates a GetPolicyBadRequest with default headers values
func (*GetPolicyBadRequest) Error ¶
func (o *GetPolicyBadRequest) Error() string
func (*GetPolicyBadRequest) GetPayload ¶
func (o *GetPolicyBadRequest) GetPayload() *models.HTTPError
func (*GetPolicyBadRequest) IsClientError ¶
func (o *GetPolicyBadRequest) IsClientError() bool
IsClientError returns true when this get policy bad request response has a 4xx status code
func (*GetPolicyBadRequest) IsCode ¶
func (o *GetPolicyBadRequest) IsCode(code int) bool
IsCode returns true when this get policy bad request response a status code equal to that given
func (*GetPolicyBadRequest) IsRedirect ¶
func (o *GetPolicyBadRequest) IsRedirect() bool
IsRedirect returns true when this get policy bad request response has a 3xx status code
func (*GetPolicyBadRequest) IsServerError ¶
func (o *GetPolicyBadRequest) IsServerError() bool
IsServerError returns true when this get policy bad request response has a 5xx status code
func (*GetPolicyBadRequest) IsSuccess ¶
func (o *GetPolicyBadRequest) IsSuccess() bool
IsSuccess returns true when this get policy bad request response has a 2xx status code
func (*GetPolicyBadRequest) String ¶
func (o *GetPolicyBadRequest) String() string
type GetPolicyByVersionBadRequest ¶
GetPolicyByVersionBadRequest describes a response with status code 400, with default header values.
bad request
func NewGetPolicyByVersionBadRequest ¶
func NewGetPolicyByVersionBadRequest() *GetPolicyByVersionBadRequest
NewGetPolicyByVersionBadRequest creates a GetPolicyByVersionBadRequest with default headers values
func (*GetPolicyByVersionBadRequest) Error ¶
func (o *GetPolicyByVersionBadRequest) Error() string
func (*GetPolicyByVersionBadRequest) GetPayload ¶
func (o *GetPolicyByVersionBadRequest) GetPayload() *models.HTTPError
func (*GetPolicyByVersionBadRequest) IsClientError ¶
func (o *GetPolicyByVersionBadRequest) IsClientError() bool
IsClientError returns true when this get policy by version bad request response has a 4xx status code
func (*GetPolicyByVersionBadRequest) IsCode ¶
func (o *GetPolicyByVersionBadRequest) IsCode(code int) bool
IsCode returns true when this get policy by version bad request response a status code equal to that given
func (*GetPolicyByVersionBadRequest) IsRedirect ¶
func (o *GetPolicyByVersionBadRequest) IsRedirect() bool
IsRedirect returns true when this get policy by version bad request response has a 3xx status code
func (*GetPolicyByVersionBadRequest) IsServerError ¶
func (o *GetPolicyByVersionBadRequest) IsServerError() bool
IsServerError returns true when this get policy by version bad request response has a 5xx status code
func (*GetPolicyByVersionBadRequest) IsSuccess ¶
func (o *GetPolicyByVersionBadRequest) IsSuccess() bool
IsSuccess returns true when this get policy by version bad request response has a 2xx status code
func (*GetPolicyByVersionBadRequest) String ¶
func (o *GetPolicyByVersionBadRequest) String() string
type GetPolicyByVersionForbidden ¶
GetPolicyByVersionForbidden describes a response with status code 403, with default header values.
forbidden
func NewGetPolicyByVersionForbidden ¶
func NewGetPolicyByVersionForbidden() *GetPolicyByVersionForbidden
NewGetPolicyByVersionForbidden creates a GetPolicyByVersionForbidden with default headers values
func (*GetPolicyByVersionForbidden) Error ¶
func (o *GetPolicyByVersionForbidden) Error() string
func (*GetPolicyByVersionForbidden) GetPayload ¶
func (o *GetPolicyByVersionForbidden) GetPayload() *models.HTTPError
func (*GetPolicyByVersionForbidden) IsClientError ¶
func (o *GetPolicyByVersionForbidden) IsClientError() bool
IsClientError returns true when this get policy by version forbidden response has a 4xx status code
func (*GetPolicyByVersionForbidden) IsCode ¶
func (o *GetPolicyByVersionForbidden) IsCode(code int) bool
IsCode returns true when this get policy by version forbidden response a status code equal to that given
func (*GetPolicyByVersionForbidden) IsRedirect ¶
func (o *GetPolicyByVersionForbidden) IsRedirect() bool
IsRedirect returns true when this get policy by version forbidden response has a 3xx status code
func (*GetPolicyByVersionForbidden) IsServerError ¶
func (o *GetPolicyByVersionForbidden) IsServerError() bool
IsServerError returns true when this get policy by version forbidden response has a 5xx status code
func (*GetPolicyByVersionForbidden) IsSuccess ¶
func (o *GetPolicyByVersionForbidden) IsSuccess() bool
IsSuccess returns true when this get policy by version forbidden response has a 2xx status code
func (*GetPolicyByVersionForbidden) String ¶
func (o *GetPolicyByVersionForbidden) String() string
type GetPolicyByVersionInternalServerError ¶
GetPolicyByVersionInternalServerError describes a response with status code 500, with default header values.
server error
func NewGetPolicyByVersionInternalServerError ¶
func NewGetPolicyByVersionInternalServerError() *GetPolicyByVersionInternalServerError
NewGetPolicyByVersionInternalServerError creates a GetPolicyByVersionInternalServerError with default headers values
func (*GetPolicyByVersionInternalServerError) Error ¶
func (o *GetPolicyByVersionInternalServerError) Error() string
func (*GetPolicyByVersionInternalServerError) GetPayload ¶
func (o *GetPolicyByVersionInternalServerError) GetPayload() *models.HTTPError
func (*GetPolicyByVersionInternalServerError) IsClientError ¶
func (o *GetPolicyByVersionInternalServerError) IsClientError() bool
IsClientError returns true when this get policy by version internal server error response has a 4xx status code
func (*GetPolicyByVersionInternalServerError) IsCode ¶
func (o *GetPolicyByVersionInternalServerError) IsCode(code int) bool
IsCode returns true when this get policy by version internal server error response a status code equal to that given
func (*GetPolicyByVersionInternalServerError) IsRedirect ¶
func (o *GetPolicyByVersionInternalServerError) IsRedirect() bool
IsRedirect returns true when this get policy by version internal server error response has a 3xx status code
func (*GetPolicyByVersionInternalServerError) IsServerError ¶
func (o *GetPolicyByVersionInternalServerError) IsServerError() bool
IsServerError returns true when this get policy by version internal server error response has a 5xx status code
func (*GetPolicyByVersionInternalServerError) IsSuccess ¶
func (o *GetPolicyByVersionInternalServerError) IsSuccess() bool
IsSuccess returns true when this get policy by version internal server error response has a 2xx status code
func (*GetPolicyByVersionInternalServerError) String ¶
func (o *GetPolicyByVersionInternalServerError) String() string
type GetPolicyByVersionNotFound ¶
GetPolicyByVersionNotFound describes a response with status code 404, with default header values.
not found
func NewGetPolicyByVersionNotFound ¶
func NewGetPolicyByVersionNotFound() *GetPolicyByVersionNotFound
NewGetPolicyByVersionNotFound creates a GetPolicyByVersionNotFound with default headers values
func (*GetPolicyByVersionNotFound) Error ¶
func (o *GetPolicyByVersionNotFound) Error() string
func (*GetPolicyByVersionNotFound) GetPayload ¶
func (o *GetPolicyByVersionNotFound) GetPayload() *models.HTTPError
func (*GetPolicyByVersionNotFound) IsClientError ¶
func (o *GetPolicyByVersionNotFound) IsClientError() bool
IsClientError returns true when this get policy by version not found response has a 4xx status code
func (*GetPolicyByVersionNotFound) IsCode ¶
func (o *GetPolicyByVersionNotFound) IsCode(code int) bool
IsCode returns true when this get policy by version not found response a status code equal to that given
func (*GetPolicyByVersionNotFound) IsRedirect ¶
func (o *GetPolicyByVersionNotFound) IsRedirect() bool
IsRedirect returns true when this get policy by version not found response has a 3xx status code
func (*GetPolicyByVersionNotFound) IsServerError ¶
func (o *GetPolicyByVersionNotFound) IsServerError() bool
IsServerError returns true when this get policy by version not found response has a 5xx status code
func (*GetPolicyByVersionNotFound) IsSuccess ¶
func (o *GetPolicyByVersionNotFound) IsSuccess() bool
IsSuccess returns true when this get policy by version not found response has a 2xx status code
func (*GetPolicyByVersionNotFound) String ¶
func (o *GetPolicyByVersionNotFound) String() string
type GetPolicyByVersionOK ¶
type GetPolicyByVersionOK struct {
Payload *models.PolicyVersionResponse
}
GetPolicyByVersionOK describes a response with status code 200, with default header values.
no error
func NewGetPolicyByVersionOK ¶
func NewGetPolicyByVersionOK() *GetPolicyByVersionOK
NewGetPolicyByVersionOK creates a GetPolicyByVersionOK with default headers values
func (*GetPolicyByVersionOK) Error ¶
func (o *GetPolicyByVersionOK) Error() string
func (*GetPolicyByVersionOK) GetPayload ¶
func (o *GetPolicyByVersionOK) GetPayload() *models.PolicyVersionResponse
func (*GetPolicyByVersionOK) IsClientError ¶
func (o *GetPolicyByVersionOK) IsClientError() bool
IsClientError returns true when this get policy by version o k response has a 4xx status code
func (*GetPolicyByVersionOK) IsCode ¶
func (o *GetPolicyByVersionOK) IsCode(code int) bool
IsCode returns true when this get policy by version o k response a status code equal to that given
func (*GetPolicyByVersionOK) IsRedirect ¶
func (o *GetPolicyByVersionOK) IsRedirect() bool
IsRedirect returns true when this get policy by version o k response has a 3xx status code
func (*GetPolicyByVersionOK) IsServerError ¶
func (o *GetPolicyByVersionOK) IsServerError() bool
IsServerError returns true when this get policy by version o k response has a 5xx status code
func (*GetPolicyByVersionOK) IsSuccess ¶
func (o *GetPolicyByVersionOK) IsSuccess() bool
IsSuccess returns true when this get policy by version o k response has a 2xx status code
func (*GetPolicyByVersionOK) String ¶
func (o *GetPolicyByVersionOK) String() string
type GetPolicyByVersionParams ¶
type GetPolicyByVersionParams struct { /* Path. Full path to lookup policy */ Path string /* Version. Versions to return Format: int64 */ Version int64 Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetPolicyByVersionParams contains all the parameters to send to the API endpoint
for the get policy by version operation. Typically these are written to a http.Request.
func NewGetPolicyByVersionParams ¶
func NewGetPolicyByVersionParams() *GetPolicyByVersionParams
NewGetPolicyByVersionParams creates a new GetPolicyByVersionParams 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 NewGetPolicyByVersionParamsWithContext ¶
func NewGetPolicyByVersionParamsWithContext(ctx context.Context) *GetPolicyByVersionParams
NewGetPolicyByVersionParamsWithContext creates a new GetPolicyByVersionParams object with the ability to set a context for a request.
func NewGetPolicyByVersionParamsWithHTTPClient ¶
func NewGetPolicyByVersionParamsWithHTTPClient(client *http.Client) *GetPolicyByVersionParams
NewGetPolicyByVersionParamsWithHTTPClient creates a new GetPolicyByVersionParams object with the ability to set a custom HTTPClient for a request.
func NewGetPolicyByVersionParamsWithTimeout ¶
func NewGetPolicyByVersionParamsWithTimeout(timeout time.Duration) *GetPolicyByVersionParams
NewGetPolicyByVersionParamsWithTimeout creates a new GetPolicyByVersionParams object with the ability to set a timeout on a request.
func (*GetPolicyByVersionParams) SetContext ¶
func (o *GetPolicyByVersionParams) SetContext(ctx context.Context)
SetContext adds the context to the get policy by version params
func (*GetPolicyByVersionParams) SetDefaults ¶
func (o *GetPolicyByVersionParams) SetDefaults()
SetDefaults hydrates default values in the get policy by version params (not the query body).
All values with no default are reset to their zero value.
func (*GetPolicyByVersionParams) SetHTTPClient ¶
func (o *GetPolicyByVersionParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get policy by version params
func (*GetPolicyByVersionParams) SetPath ¶
func (o *GetPolicyByVersionParams) SetPath(path string)
SetPath adds the path to the get policy by version params
func (*GetPolicyByVersionParams) SetTimeout ¶
func (o *GetPolicyByVersionParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get policy by version params
func (*GetPolicyByVersionParams) SetVersion ¶
func (o *GetPolicyByVersionParams) SetVersion(version int64)
SetVersion adds the version to the get policy by version params
func (*GetPolicyByVersionParams) WithContext ¶
func (o *GetPolicyByVersionParams) WithContext(ctx context.Context) *GetPolicyByVersionParams
WithContext adds the context to the get policy by version params
func (*GetPolicyByVersionParams) WithDefaults ¶
func (o *GetPolicyByVersionParams) WithDefaults() *GetPolicyByVersionParams
WithDefaults hydrates default values in the get policy by version params (not the query body).
All values with no default are reset to their zero value.
func (*GetPolicyByVersionParams) WithHTTPClient ¶
func (o *GetPolicyByVersionParams) WithHTTPClient(client *http.Client) *GetPolicyByVersionParams
WithHTTPClient adds the HTTPClient to the get policy by version params
func (*GetPolicyByVersionParams) WithPath ¶
func (o *GetPolicyByVersionParams) WithPath(path string) *GetPolicyByVersionParams
WithPath adds the path to the get policy by version params
func (*GetPolicyByVersionParams) WithTimeout ¶
func (o *GetPolicyByVersionParams) WithTimeout(timeout time.Duration) *GetPolicyByVersionParams
WithTimeout adds the timeout to the get policy by version params
func (*GetPolicyByVersionParams) WithVersion ¶
func (o *GetPolicyByVersionParams) WithVersion(version int64) *GetPolicyByVersionParams
WithVersion adds the version to the get policy by version params
func (*GetPolicyByVersionParams) WriteToRequest ¶
func (o *GetPolicyByVersionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetPolicyByVersionReader ¶
type GetPolicyByVersionReader struct {
// contains filtered or unexported fields
}
GetPolicyByVersionReader is a Reader for the GetPolicyByVersion structure.
func (*GetPolicyByVersionReader) ReadResponse ¶
func (o *GetPolicyByVersionReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetPolicyByVersionUnauthorized ¶
type GetPolicyByVersionUnauthorized struct {
}GetPolicyByVersionUnauthorized describes a response with status code 401, with default header values.
unauthorized
func NewGetPolicyByVersionUnauthorized ¶
func NewGetPolicyByVersionUnauthorized() *GetPolicyByVersionUnauthorized
NewGetPolicyByVersionUnauthorized creates a GetPolicyByVersionUnauthorized with default headers values
func (*GetPolicyByVersionUnauthorized) Error ¶
func (o *GetPolicyByVersionUnauthorized) Error() string
func (*GetPolicyByVersionUnauthorized) GetPayload ¶
func (o *GetPolicyByVersionUnauthorized) GetPayload() *models.HTTPError
func (*GetPolicyByVersionUnauthorized) IsClientError ¶
func (o *GetPolicyByVersionUnauthorized) IsClientError() bool
IsClientError returns true when this get policy by version unauthorized response has a 4xx status code
func (*GetPolicyByVersionUnauthorized) IsCode ¶
func (o *GetPolicyByVersionUnauthorized) IsCode(code int) bool
IsCode returns true when this get policy by version unauthorized response a status code equal to that given
func (*GetPolicyByVersionUnauthorized) IsRedirect ¶
func (o *GetPolicyByVersionUnauthorized) IsRedirect() bool
IsRedirect returns true when this get policy by version unauthorized response has a 3xx status code
func (*GetPolicyByVersionUnauthorized) IsServerError ¶
func (o *GetPolicyByVersionUnauthorized) IsServerError() bool
IsServerError returns true when this get policy by version unauthorized response has a 5xx status code
func (*GetPolicyByVersionUnauthorized) IsSuccess ¶
func (o *GetPolicyByVersionUnauthorized) IsSuccess() bool
IsSuccess returns true when this get policy by version unauthorized response has a 2xx status code
func (*GetPolicyByVersionUnauthorized) String ¶
func (o *GetPolicyByVersionUnauthorized) 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) Error ¶
func (o *GetPolicyForbidden) Error() string
func (*GetPolicyForbidden) GetPayload ¶
func (o *GetPolicyForbidden) GetPayload() *models.HTTPError
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 GetPolicyInternalServerError ¶
GetPolicyInternalServerError describes a response with status code 500, with default header values.
server error
func NewGetPolicyInternalServerError ¶
func NewGetPolicyInternalServerError() *GetPolicyInternalServerError
NewGetPolicyInternalServerError creates a GetPolicyInternalServerError with default headers values
func (*GetPolicyInternalServerError) Error ¶
func (o *GetPolicyInternalServerError) Error() string
func (*GetPolicyInternalServerError) GetPayload ¶
func (o *GetPolicyInternalServerError) GetPayload() *models.HTTPError
func (*GetPolicyInternalServerError) IsClientError ¶
func (o *GetPolicyInternalServerError) IsClientError() bool
IsClientError returns true when this get policy internal server error response has a 4xx status code
func (*GetPolicyInternalServerError) IsCode ¶
func (o *GetPolicyInternalServerError) IsCode(code int) bool
IsCode returns true when this get policy internal server error response a status code equal to that given
func (*GetPolicyInternalServerError) IsRedirect ¶
func (o *GetPolicyInternalServerError) IsRedirect() bool
IsRedirect returns true when this get policy internal server error response has a 3xx status code
func (*GetPolicyInternalServerError) IsServerError ¶
func (o *GetPolicyInternalServerError) IsServerError() bool
IsServerError returns true when this get policy internal server error response has a 5xx status code
func (*GetPolicyInternalServerError) IsSuccess ¶
func (o *GetPolicyInternalServerError) IsSuccess() bool
IsSuccess returns true when this get policy internal server error response has a 2xx status code
func (*GetPolicyInternalServerError) String ¶
func (o *GetPolicyInternalServerError) 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) Error ¶
func (o *GetPolicyNotFound) Error() string
func (*GetPolicyNotFound) GetPayload ¶
func (o *GetPolicyNotFound) GetPayload() *models.HTTPError
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 ¶
GetPolicyOK describes a response with status code 200, with default header values.
no error
func NewGetPolicyOK ¶
func NewGetPolicyOK() *GetPolicyOK
NewGetPolicyOK creates a GetPolicyOK with default headers values
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 { /* Path. Full path to lookup policy */ Path 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) SetPath ¶
func (o *GetPolicyParams) SetPath(path string)
SetPath adds the path 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) WithPath ¶
func (o *GetPolicyParams) WithPath(path string) *GetPolicyParams
WithPath adds the path 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 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) Error ¶
func (o *GetPolicyUnauthorized) Error() string
func (*GetPolicyUnauthorized) GetPayload ¶
func (o *GetPolicyUnauthorized) GetPayload() *models.HTTPError
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 RestorePolicyBadRequest ¶
RestorePolicyBadRequest describes a response with status code 400, with default header values.
bad request
func NewRestorePolicyBadRequest ¶
func NewRestorePolicyBadRequest() *RestorePolicyBadRequest
NewRestorePolicyBadRequest creates a RestorePolicyBadRequest with default headers values
func (*RestorePolicyBadRequest) Error ¶
func (o *RestorePolicyBadRequest) Error() string
func (*RestorePolicyBadRequest) GetPayload ¶
func (o *RestorePolicyBadRequest) GetPayload() *models.HTTPError
func (*RestorePolicyBadRequest) IsClientError ¶
func (o *RestorePolicyBadRequest) IsClientError() bool
IsClientError returns true when this restore policy bad request response has a 4xx status code
func (*RestorePolicyBadRequest) IsCode ¶
func (o *RestorePolicyBadRequest) IsCode(code int) bool
IsCode returns true when this restore policy bad request response a status code equal to that given
func (*RestorePolicyBadRequest) IsRedirect ¶
func (o *RestorePolicyBadRequest) IsRedirect() bool
IsRedirect returns true when this restore policy bad request response has a 3xx status code
func (*RestorePolicyBadRequest) IsServerError ¶
func (o *RestorePolicyBadRequest) IsServerError() bool
IsServerError returns true when this restore policy bad request response has a 5xx status code
func (*RestorePolicyBadRequest) IsSuccess ¶
func (o *RestorePolicyBadRequest) IsSuccess() bool
IsSuccess returns true when this restore policy bad request response has a 2xx status code
func (*RestorePolicyBadRequest) String ¶
func (o *RestorePolicyBadRequest) String() string
type RestorePolicyForbidden ¶
RestorePolicyForbidden describes a response with status code 403, with default header values.
forbidden
func NewRestorePolicyForbidden ¶
func NewRestorePolicyForbidden() *RestorePolicyForbidden
NewRestorePolicyForbidden creates a RestorePolicyForbidden with default headers values
func (*RestorePolicyForbidden) Error ¶
func (o *RestorePolicyForbidden) Error() string
func (*RestorePolicyForbidden) GetPayload ¶
func (o *RestorePolicyForbidden) GetPayload() *models.HTTPError
func (*RestorePolicyForbidden) IsClientError ¶
func (o *RestorePolicyForbidden) IsClientError() bool
IsClientError returns true when this restore policy forbidden response has a 4xx status code
func (*RestorePolicyForbidden) IsCode ¶
func (o *RestorePolicyForbidden) IsCode(code int) bool
IsCode returns true when this restore policy forbidden response a status code equal to that given
func (*RestorePolicyForbidden) IsRedirect ¶
func (o *RestorePolicyForbidden) IsRedirect() bool
IsRedirect returns true when this restore policy forbidden response has a 3xx status code
func (*RestorePolicyForbidden) IsServerError ¶
func (o *RestorePolicyForbidden) IsServerError() bool
IsServerError returns true when this restore policy forbidden response has a 5xx status code
func (*RestorePolicyForbidden) IsSuccess ¶
func (o *RestorePolicyForbidden) IsSuccess() bool
IsSuccess returns true when this restore policy forbidden response has a 2xx status code
func (*RestorePolicyForbidden) String ¶
func (o *RestorePolicyForbidden) String() string
type RestorePolicyInternalServerError ¶
RestorePolicyInternalServerError describes a response with status code 500, with default header values.
server error
func NewRestorePolicyInternalServerError ¶
func NewRestorePolicyInternalServerError() *RestorePolicyInternalServerError
NewRestorePolicyInternalServerError creates a RestorePolicyInternalServerError with default headers values
func (*RestorePolicyInternalServerError) Error ¶
func (o *RestorePolicyInternalServerError) Error() string
func (*RestorePolicyInternalServerError) GetPayload ¶
func (o *RestorePolicyInternalServerError) GetPayload() *models.HTTPError
func (*RestorePolicyInternalServerError) IsClientError ¶
func (o *RestorePolicyInternalServerError) IsClientError() bool
IsClientError returns true when this restore policy internal server error response has a 4xx status code
func (*RestorePolicyInternalServerError) IsCode ¶
func (o *RestorePolicyInternalServerError) IsCode(code int) bool
IsCode returns true when this restore policy internal server error response a status code equal to that given
func (*RestorePolicyInternalServerError) IsRedirect ¶
func (o *RestorePolicyInternalServerError) IsRedirect() bool
IsRedirect returns true when this restore policy internal server error response has a 3xx status code
func (*RestorePolicyInternalServerError) IsServerError ¶
func (o *RestorePolicyInternalServerError) IsServerError() bool
IsServerError returns true when this restore policy internal server error response has a 5xx status code
func (*RestorePolicyInternalServerError) IsSuccess ¶
func (o *RestorePolicyInternalServerError) IsSuccess() bool
IsSuccess returns true when this restore policy internal server error response has a 2xx status code
func (*RestorePolicyInternalServerError) String ¶
func (o *RestorePolicyInternalServerError) String() string
type RestorePolicyNoContent ¶
type RestorePolicyNoContent struct { }
RestorePolicyNoContent describes a response with status code 204, with default header values.
no error
func NewRestorePolicyNoContent ¶
func NewRestorePolicyNoContent() *RestorePolicyNoContent
NewRestorePolicyNoContent creates a RestorePolicyNoContent with default headers values
func (*RestorePolicyNoContent) Error ¶
func (o *RestorePolicyNoContent) Error() string
func (*RestorePolicyNoContent) IsClientError ¶
func (o *RestorePolicyNoContent) IsClientError() bool
IsClientError returns true when this restore policy no content response has a 4xx status code
func (*RestorePolicyNoContent) IsCode ¶
func (o *RestorePolicyNoContent) IsCode(code int) bool
IsCode returns true when this restore policy no content response a status code equal to that given
func (*RestorePolicyNoContent) IsRedirect ¶
func (o *RestorePolicyNoContent) IsRedirect() bool
IsRedirect returns true when this restore policy no content response has a 3xx status code
func (*RestorePolicyNoContent) IsServerError ¶
func (o *RestorePolicyNoContent) IsServerError() bool
IsServerError returns true when this restore policy no content response has a 5xx status code
func (*RestorePolicyNoContent) IsSuccess ¶
func (o *RestorePolicyNoContent) IsSuccess() bool
IsSuccess returns true when this restore policy no content response has a 2xx status code
func (*RestorePolicyNoContent) String ¶
func (o *RestorePolicyNoContent) String() string
type RestorePolicyNotFound ¶
RestorePolicyNotFound describes a response with status code 404, with default header values.
not found
func NewRestorePolicyNotFound ¶
func NewRestorePolicyNotFound() *RestorePolicyNotFound
NewRestorePolicyNotFound creates a RestorePolicyNotFound with default headers values
func (*RestorePolicyNotFound) Error ¶
func (o *RestorePolicyNotFound) Error() string
func (*RestorePolicyNotFound) GetPayload ¶
func (o *RestorePolicyNotFound) GetPayload() *models.HTTPError
func (*RestorePolicyNotFound) IsClientError ¶
func (o *RestorePolicyNotFound) IsClientError() bool
IsClientError returns true when this restore policy not found response has a 4xx status code
func (*RestorePolicyNotFound) IsCode ¶
func (o *RestorePolicyNotFound) IsCode(code int) bool
IsCode returns true when this restore policy not found response a status code equal to that given
func (*RestorePolicyNotFound) IsRedirect ¶
func (o *RestorePolicyNotFound) IsRedirect() bool
IsRedirect returns true when this restore policy not found response has a 3xx status code
func (*RestorePolicyNotFound) IsServerError ¶
func (o *RestorePolicyNotFound) IsServerError() bool
IsServerError returns true when this restore policy not found response has a 5xx status code
func (*RestorePolicyNotFound) IsSuccess ¶
func (o *RestorePolicyNotFound) IsSuccess() bool
IsSuccess returns true when this restore policy not found response has a 2xx status code
func (*RestorePolicyNotFound) String ¶
func (o *RestorePolicyNotFound) String() string
type RestorePolicyParams ¶
type RestorePolicyParams struct { /* Path. Full path to lookup policy */ Path string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
RestorePolicyParams contains all the parameters to send to the API endpoint
for the restore policy operation. Typically these are written to a http.Request.
func NewRestorePolicyParams ¶
func NewRestorePolicyParams() *RestorePolicyParams
NewRestorePolicyParams creates a new RestorePolicyParams 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 NewRestorePolicyParamsWithContext ¶
func NewRestorePolicyParamsWithContext(ctx context.Context) *RestorePolicyParams
NewRestorePolicyParamsWithContext creates a new RestorePolicyParams object with the ability to set a context for a request.
func NewRestorePolicyParamsWithHTTPClient ¶
func NewRestorePolicyParamsWithHTTPClient(client *http.Client) *RestorePolicyParams
NewRestorePolicyParamsWithHTTPClient creates a new RestorePolicyParams object with the ability to set a custom HTTPClient for a request.
func NewRestorePolicyParamsWithTimeout ¶
func NewRestorePolicyParamsWithTimeout(timeout time.Duration) *RestorePolicyParams
NewRestorePolicyParamsWithTimeout creates a new RestorePolicyParams object with the ability to set a timeout on a request.
func (*RestorePolicyParams) SetContext ¶
func (o *RestorePolicyParams) SetContext(ctx context.Context)
SetContext adds the context to the restore policy params
func (*RestorePolicyParams) SetDefaults ¶
func (o *RestorePolicyParams) SetDefaults()
SetDefaults hydrates default values in the restore policy params (not the query body).
All values with no default are reset to their zero value.
func (*RestorePolicyParams) SetHTTPClient ¶
func (o *RestorePolicyParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the restore policy params
func (*RestorePolicyParams) SetPath ¶
func (o *RestorePolicyParams) SetPath(path string)
SetPath adds the path to the restore policy params
func (*RestorePolicyParams) SetTimeout ¶
func (o *RestorePolicyParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the restore policy params
func (*RestorePolicyParams) WithContext ¶
func (o *RestorePolicyParams) WithContext(ctx context.Context) *RestorePolicyParams
WithContext adds the context to the restore policy params
func (*RestorePolicyParams) WithDefaults ¶
func (o *RestorePolicyParams) WithDefaults() *RestorePolicyParams
WithDefaults hydrates default values in the restore policy params (not the query body).
All values with no default are reset to their zero value.
func (*RestorePolicyParams) WithHTTPClient ¶
func (o *RestorePolicyParams) WithHTTPClient(client *http.Client) *RestorePolicyParams
WithHTTPClient adds the HTTPClient to the restore policy params
func (*RestorePolicyParams) WithPath ¶
func (o *RestorePolicyParams) WithPath(path string) *RestorePolicyParams
WithPath adds the path to the restore policy params
func (*RestorePolicyParams) WithTimeout ¶
func (o *RestorePolicyParams) WithTimeout(timeout time.Duration) *RestorePolicyParams
WithTimeout adds the timeout to the restore policy params
func (*RestorePolicyParams) WriteToRequest ¶
func (o *RestorePolicyParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type RestorePolicyReader ¶
type RestorePolicyReader struct {
// contains filtered or unexported fields
}
RestorePolicyReader is a Reader for the RestorePolicy structure.
func (*RestorePolicyReader) ReadResponse ¶
func (o *RestorePolicyReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type RestorePolicyUnauthorized ¶
type RestorePolicyUnauthorized struct {
}RestorePolicyUnauthorized describes a response with status code 401, with default header values.
unauthorized
func NewRestorePolicyUnauthorized ¶
func NewRestorePolicyUnauthorized() *RestorePolicyUnauthorized
NewRestorePolicyUnauthorized creates a RestorePolicyUnauthorized with default headers values
func (*RestorePolicyUnauthorized) Error ¶
func (o *RestorePolicyUnauthorized) Error() string
func (*RestorePolicyUnauthorized) GetPayload ¶
func (o *RestorePolicyUnauthorized) GetPayload() *models.HTTPError
func (*RestorePolicyUnauthorized) IsClientError ¶
func (o *RestorePolicyUnauthorized) IsClientError() bool
IsClientError returns true when this restore policy unauthorized response has a 4xx status code
func (*RestorePolicyUnauthorized) IsCode ¶
func (o *RestorePolicyUnauthorized) IsCode(code int) bool
IsCode returns true when this restore policy unauthorized response a status code equal to that given
func (*RestorePolicyUnauthorized) IsRedirect ¶
func (o *RestorePolicyUnauthorized) IsRedirect() bool
IsRedirect returns true when this restore policy unauthorized response has a 3xx status code
func (*RestorePolicyUnauthorized) IsServerError ¶
func (o *RestorePolicyUnauthorized) IsServerError() bool
IsServerError returns true when this restore policy unauthorized response has a 5xx status code
func (*RestorePolicyUnauthorized) IsSuccess ¶
func (o *RestorePolicyUnauthorized) IsSuccess() bool
IsSuccess returns true when this restore policy unauthorized response has a 2xx status code
func (*RestorePolicyUnauthorized) String ¶
func (o *RestorePolicyUnauthorized) String() string
type RollbackPolicyBadRequest ¶
RollbackPolicyBadRequest describes a response with status code 400, with default header values.
bad request
func NewRollbackPolicyBadRequest ¶
func NewRollbackPolicyBadRequest() *RollbackPolicyBadRequest
NewRollbackPolicyBadRequest creates a RollbackPolicyBadRequest with default headers values
func (*RollbackPolicyBadRequest) Error ¶
func (o *RollbackPolicyBadRequest) Error() string
func (*RollbackPolicyBadRequest) GetPayload ¶
func (o *RollbackPolicyBadRequest) GetPayload() *models.HTTPError
func (*RollbackPolicyBadRequest) IsClientError ¶
func (o *RollbackPolicyBadRequest) IsClientError() bool
IsClientError returns true when this rollback policy bad request response has a 4xx status code
func (*RollbackPolicyBadRequest) IsCode ¶
func (o *RollbackPolicyBadRequest) IsCode(code int) bool
IsCode returns true when this rollback policy bad request response a status code equal to that given
func (*RollbackPolicyBadRequest) IsRedirect ¶
func (o *RollbackPolicyBadRequest) IsRedirect() bool
IsRedirect returns true when this rollback policy bad request response has a 3xx status code
func (*RollbackPolicyBadRequest) IsServerError ¶
func (o *RollbackPolicyBadRequest) IsServerError() bool
IsServerError returns true when this rollback policy bad request response has a 5xx status code
func (*RollbackPolicyBadRequest) IsSuccess ¶
func (o *RollbackPolicyBadRequest) IsSuccess() bool
IsSuccess returns true when this rollback policy bad request response has a 2xx status code
func (*RollbackPolicyBadRequest) String ¶
func (o *RollbackPolicyBadRequest) String() string
type RollbackPolicyForbidden ¶
RollbackPolicyForbidden describes a response with status code 403, with default header values.
forbidden
func NewRollbackPolicyForbidden ¶
func NewRollbackPolicyForbidden() *RollbackPolicyForbidden
NewRollbackPolicyForbidden creates a RollbackPolicyForbidden with default headers values
func (*RollbackPolicyForbidden) Error ¶
func (o *RollbackPolicyForbidden) Error() string
func (*RollbackPolicyForbidden) GetPayload ¶
func (o *RollbackPolicyForbidden) GetPayload() *models.HTTPError
func (*RollbackPolicyForbidden) IsClientError ¶
func (o *RollbackPolicyForbidden) IsClientError() bool
IsClientError returns true when this rollback policy forbidden response has a 4xx status code
func (*RollbackPolicyForbidden) IsCode ¶
func (o *RollbackPolicyForbidden) IsCode(code int) bool
IsCode returns true when this rollback policy forbidden response a status code equal to that given
func (*RollbackPolicyForbidden) IsRedirect ¶
func (o *RollbackPolicyForbidden) IsRedirect() bool
IsRedirect returns true when this rollback policy forbidden response has a 3xx status code
func (*RollbackPolicyForbidden) IsServerError ¶
func (o *RollbackPolicyForbidden) IsServerError() bool
IsServerError returns true when this rollback policy forbidden response has a 5xx status code
func (*RollbackPolicyForbidden) IsSuccess ¶
func (o *RollbackPolicyForbidden) IsSuccess() bool
IsSuccess returns true when this rollback policy forbidden response has a 2xx status code
func (*RollbackPolicyForbidden) String ¶
func (o *RollbackPolicyForbidden) String() string
type RollbackPolicyInternalServerError ¶
RollbackPolicyInternalServerError describes a response with status code 500, with default header values.
server error
func NewRollbackPolicyInternalServerError ¶
func NewRollbackPolicyInternalServerError() *RollbackPolicyInternalServerError
NewRollbackPolicyInternalServerError creates a RollbackPolicyInternalServerError with default headers values
func (*RollbackPolicyInternalServerError) Error ¶
func (o *RollbackPolicyInternalServerError) Error() string
func (*RollbackPolicyInternalServerError) GetPayload ¶
func (o *RollbackPolicyInternalServerError) GetPayload() *models.HTTPError
func (*RollbackPolicyInternalServerError) IsClientError ¶
func (o *RollbackPolicyInternalServerError) IsClientError() bool
IsClientError returns true when this rollback policy internal server error response has a 4xx status code
func (*RollbackPolicyInternalServerError) IsCode ¶
func (o *RollbackPolicyInternalServerError) IsCode(code int) bool
IsCode returns true when this rollback policy internal server error response a status code equal to that given
func (*RollbackPolicyInternalServerError) IsRedirect ¶
func (o *RollbackPolicyInternalServerError) IsRedirect() bool
IsRedirect returns true when this rollback policy internal server error response has a 3xx status code
func (*RollbackPolicyInternalServerError) IsServerError ¶
func (o *RollbackPolicyInternalServerError) IsServerError() bool
IsServerError returns true when this rollback policy internal server error response has a 5xx status code
func (*RollbackPolicyInternalServerError) IsSuccess ¶
func (o *RollbackPolicyInternalServerError) IsSuccess() bool
IsSuccess returns true when this rollback policy internal server error response has a 2xx status code
func (*RollbackPolicyInternalServerError) String ¶
func (o *RollbackPolicyInternalServerError) String() string
type RollbackPolicyOK ¶
RollbackPolicyOK describes a response with status code 200, with default header values.
no error
func NewRollbackPolicyOK ¶
func NewRollbackPolicyOK() *RollbackPolicyOK
NewRollbackPolicyOK creates a RollbackPolicyOK with default headers values
func (*RollbackPolicyOK) Error ¶
func (o *RollbackPolicyOK) Error() string
func (*RollbackPolicyOK) GetPayload ¶
func (o *RollbackPolicyOK) GetPayload() *models.Policy
func (*RollbackPolicyOK) IsClientError ¶
func (o *RollbackPolicyOK) IsClientError() bool
IsClientError returns true when this rollback policy o k response has a 4xx status code
func (*RollbackPolicyOK) IsCode ¶
func (o *RollbackPolicyOK) IsCode(code int) bool
IsCode returns true when this rollback policy o k response a status code equal to that given
func (*RollbackPolicyOK) IsRedirect ¶
func (o *RollbackPolicyOK) IsRedirect() bool
IsRedirect returns true when this rollback policy o k response has a 3xx status code
func (*RollbackPolicyOK) IsServerError ¶
func (o *RollbackPolicyOK) IsServerError() bool
IsServerError returns true when this rollback policy o k response has a 5xx status code
func (*RollbackPolicyOK) IsSuccess ¶
func (o *RollbackPolicyOK) IsSuccess() bool
IsSuccess returns true when this rollback policy o k response has a 2xx status code
func (*RollbackPolicyOK) String ¶
func (o *RollbackPolicyOK) String() string
type RollbackPolicyParams ¶
type RollbackPolicyParams struct { /* Path. Full path to lookup policy */ Path string /* Version. Versions to return Format: int64 */ Version int64 Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
RollbackPolicyParams contains all the parameters to send to the API endpoint
for the rollback policy operation. Typically these are written to a http.Request.
func NewRollbackPolicyParams ¶
func NewRollbackPolicyParams() *RollbackPolicyParams
NewRollbackPolicyParams creates a new RollbackPolicyParams 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 NewRollbackPolicyParamsWithContext ¶
func NewRollbackPolicyParamsWithContext(ctx context.Context) *RollbackPolicyParams
NewRollbackPolicyParamsWithContext creates a new RollbackPolicyParams object with the ability to set a context for a request.
func NewRollbackPolicyParamsWithHTTPClient ¶
func NewRollbackPolicyParamsWithHTTPClient(client *http.Client) *RollbackPolicyParams
NewRollbackPolicyParamsWithHTTPClient creates a new RollbackPolicyParams object with the ability to set a custom HTTPClient for a request.
func NewRollbackPolicyParamsWithTimeout ¶
func NewRollbackPolicyParamsWithTimeout(timeout time.Duration) *RollbackPolicyParams
NewRollbackPolicyParamsWithTimeout creates a new RollbackPolicyParams object with the ability to set a timeout on a request.
func (*RollbackPolicyParams) SetContext ¶
func (o *RollbackPolicyParams) SetContext(ctx context.Context)
SetContext adds the context to the rollback policy params
func (*RollbackPolicyParams) SetDefaults ¶
func (o *RollbackPolicyParams) SetDefaults()
SetDefaults hydrates default values in the rollback policy params (not the query body).
All values with no default are reset to their zero value.
func (*RollbackPolicyParams) SetHTTPClient ¶
func (o *RollbackPolicyParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the rollback policy params
func (*RollbackPolicyParams) SetPath ¶
func (o *RollbackPolicyParams) SetPath(path string)
SetPath adds the path to the rollback policy params
func (*RollbackPolicyParams) SetTimeout ¶
func (o *RollbackPolicyParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the rollback policy params
func (*RollbackPolicyParams) SetVersion ¶
func (o *RollbackPolicyParams) SetVersion(version int64)
SetVersion adds the version to the rollback policy params
func (*RollbackPolicyParams) WithContext ¶
func (o *RollbackPolicyParams) WithContext(ctx context.Context) *RollbackPolicyParams
WithContext adds the context to the rollback policy params
func (*RollbackPolicyParams) WithDefaults ¶
func (o *RollbackPolicyParams) WithDefaults() *RollbackPolicyParams
WithDefaults hydrates default values in the rollback policy params (not the query body).
All values with no default are reset to their zero value.
func (*RollbackPolicyParams) WithHTTPClient ¶
func (o *RollbackPolicyParams) WithHTTPClient(client *http.Client) *RollbackPolicyParams
WithHTTPClient adds the HTTPClient to the rollback policy params
func (*RollbackPolicyParams) WithPath ¶
func (o *RollbackPolicyParams) WithPath(path string) *RollbackPolicyParams
WithPath adds the path to the rollback policy params
func (*RollbackPolicyParams) WithTimeout ¶
func (o *RollbackPolicyParams) WithTimeout(timeout time.Duration) *RollbackPolicyParams
WithTimeout adds the timeout to the rollback policy params
func (*RollbackPolicyParams) WithVersion ¶
func (o *RollbackPolicyParams) WithVersion(version int64) *RollbackPolicyParams
WithVersion adds the version to the rollback policy params
func (*RollbackPolicyParams) WriteToRequest ¶
func (o *RollbackPolicyParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type RollbackPolicyReader ¶
type RollbackPolicyReader struct {
// contains filtered or unexported fields
}
RollbackPolicyReader is a Reader for the RollbackPolicy structure.
func (*RollbackPolicyReader) ReadResponse ¶
func (o *RollbackPolicyReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type RollbackPolicyUnauthorized ¶
type RollbackPolicyUnauthorized struct {
}RollbackPolicyUnauthorized describes a response with status code 401, with default header values.
unauthorized
func NewRollbackPolicyUnauthorized ¶
func NewRollbackPolicyUnauthorized() *RollbackPolicyUnauthorized
NewRollbackPolicyUnauthorized creates a RollbackPolicyUnauthorized with default headers values
func (*RollbackPolicyUnauthorized) Error ¶
func (o *RollbackPolicyUnauthorized) Error() string
func (*RollbackPolicyUnauthorized) GetPayload ¶
func (o *RollbackPolicyUnauthorized) GetPayload() *models.HTTPError
func (*RollbackPolicyUnauthorized) IsClientError ¶
func (o *RollbackPolicyUnauthorized) IsClientError() bool
IsClientError returns true when this rollback policy unauthorized response has a 4xx status code
func (*RollbackPolicyUnauthorized) IsCode ¶
func (o *RollbackPolicyUnauthorized) IsCode(code int) bool
IsCode returns true when this rollback policy unauthorized response a status code equal to that given
func (*RollbackPolicyUnauthorized) IsRedirect ¶
func (o *RollbackPolicyUnauthorized) IsRedirect() bool
IsRedirect returns true when this rollback policy unauthorized response has a 3xx status code
func (*RollbackPolicyUnauthorized) IsServerError ¶
func (o *RollbackPolicyUnauthorized) IsServerError() bool
IsServerError returns true when this rollback policy unauthorized response has a 5xx status code
func (*RollbackPolicyUnauthorized) IsSuccess ¶
func (o *RollbackPolicyUnauthorized) IsSuccess() bool
IsSuccess returns true when this rollback policy unauthorized response has a 2xx status code
func (*RollbackPolicyUnauthorized) String ¶
func (o *RollbackPolicyUnauthorized) String() string
type SearchFilterBadRequest ¶
SearchFilterBadRequest describes a response with status code 400, with default header values.
bad request
func NewSearchFilterBadRequest ¶
func NewSearchFilterBadRequest() *SearchFilterBadRequest
NewSearchFilterBadRequest creates a SearchFilterBadRequest with default headers values
func (*SearchFilterBadRequest) Error ¶
func (o *SearchFilterBadRequest) Error() string
func (*SearchFilterBadRequest) GetPayload ¶
func (o *SearchFilterBadRequest) GetPayload() *models.HTTPError
func (*SearchFilterBadRequest) IsClientError ¶
func (o *SearchFilterBadRequest) IsClientError() bool
IsClientError returns true when this search filter bad request response has a 4xx status code
func (*SearchFilterBadRequest) IsCode ¶
func (o *SearchFilterBadRequest) IsCode(code int) bool
IsCode returns true when this search filter bad request response a status code equal to that given
func (*SearchFilterBadRequest) IsRedirect ¶
func (o *SearchFilterBadRequest) IsRedirect() bool
IsRedirect returns true when this search filter bad request response has a 3xx status code
func (*SearchFilterBadRequest) IsServerError ¶
func (o *SearchFilterBadRequest) IsServerError() bool
IsServerError returns true when this search filter bad request response has a 5xx status code
func (*SearchFilterBadRequest) IsSuccess ¶
func (o *SearchFilterBadRequest) IsSuccess() bool
IsSuccess returns true when this search filter bad request response has a 2xx status code
func (*SearchFilterBadRequest) String ¶
func (o *SearchFilterBadRequest) String() string
type SearchFilterForbidden ¶
SearchFilterForbidden describes a response with status code 403, with default header values.
forbidden
func NewSearchFilterForbidden ¶
func NewSearchFilterForbidden() *SearchFilterForbidden
NewSearchFilterForbidden creates a SearchFilterForbidden with default headers values
func (*SearchFilterForbidden) Error ¶
func (o *SearchFilterForbidden) Error() string
func (*SearchFilterForbidden) GetPayload ¶
func (o *SearchFilterForbidden) GetPayload() *models.HTTPError
func (*SearchFilterForbidden) IsClientError ¶
func (o *SearchFilterForbidden) IsClientError() bool
IsClientError returns true when this search filter forbidden response has a 4xx status code
func (*SearchFilterForbidden) IsCode ¶
func (o *SearchFilterForbidden) IsCode(code int) bool
IsCode returns true when this search filter forbidden response a status code equal to that given
func (*SearchFilterForbidden) IsRedirect ¶
func (o *SearchFilterForbidden) IsRedirect() bool
IsRedirect returns true when this search filter forbidden response has a 3xx status code
func (*SearchFilterForbidden) IsServerError ¶
func (o *SearchFilterForbidden) IsServerError() bool
IsServerError returns true when this search filter forbidden response has a 5xx status code
func (*SearchFilterForbidden) IsSuccess ¶
func (o *SearchFilterForbidden) IsSuccess() bool
IsSuccess returns true when this search filter forbidden response has a 2xx status code
func (*SearchFilterForbidden) String ¶
func (o *SearchFilterForbidden) String() string
type SearchFilterInternalServerError ¶
SearchFilterInternalServerError describes a response with status code 500, with default header values.
server error
func NewSearchFilterInternalServerError ¶
func NewSearchFilterInternalServerError() *SearchFilterInternalServerError
NewSearchFilterInternalServerError creates a SearchFilterInternalServerError with default headers values
func (*SearchFilterInternalServerError) Error ¶
func (o *SearchFilterInternalServerError) Error() string
func (*SearchFilterInternalServerError) GetPayload ¶
func (o *SearchFilterInternalServerError) GetPayload() *models.HTTPError
func (*SearchFilterInternalServerError) IsClientError ¶
func (o *SearchFilterInternalServerError) IsClientError() bool
IsClientError returns true when this search filter internal server error response has a 4xx status code
func (*SearchFilterInternalServerError) IsCode ¶
func (o *SearchFilterInternalServerError) IsCode(code int) bool
IsCode returns true when this search filter internal server error response a status code equal to that given
func (*SearchFilterInternalServerError) IsRedirect ¶
func (o *SearchFilterInternalServerError) IsRedirect() bool
IsRedirect returns true when this search filter internal server error response has a 3xx status code
func (*SearchFilterInternalServerError) IsServerError ¶
func (o *SearchFilterInternalServerError) IsServerError() bool
IsServerError returns true when this search filter internal server error response has a 5xx status code
func (*SearchFilterInternalServerError) IsSuccess ¶
func (o *SearchFilterInternalServerError) IsSuccess() bool
IsSuccess returns true when this search filter internal server error response has a 2xx status code
func (*SearchFilterInternalServerError) String ¶
func (o *SearchFilterInternalServerError) String() string
type SearchFilterNotFound ¶
SearchFilterNotFound describes a response with status code 404, with default header values.
not found
func NewSearchFilterNotFound ¶
func NewSearchFilterNotFound() *SearchFilterNotFound
NewSearchFilterNotFound creates a SearchFilterNotFound with default headers values
func (*SearchFilterNotFound) Error ¶
func (o *SearchFilterNotFound) Error() string
func (*SearchFilterNotFound) GetPayload ¶
func (o *SearchFilterNotFound) GetPayload() *models.HTTPError
func (*SearchFilterNotFound) IsClientError ¶
func (o *SearchFilterNotFound) IsClientError() bool
IsClientError returns true when this search filter not found response has a 4xx status code
func (*SearchFilterNotFound) IsCode ¶
func (o *SearchFilterNotFound) IsCode(code int) bool
IsCode returns true when this search filter not found response a status code equal to that given
func (*SearchFilterNotFound) IsRedirect ¶
func (o *SearchFilterNotFound) IsRedirect() bool
IsRedirect returns true when this search filter not found response has a 3xx status code
func (*SearchFilterNotFound) IsServerError ¶
func (o *SearchFilterNotFound) IsServerError() bool
IsServerError returns true when this search filter not found response has a 5xx status code
func (*SearchFilterNotFound) IsSuccess ¶
func (o *SearchFilterNotFound) IsSuccess() bool
IsSuccess returns true when this search filter not found response has a 2xx status code
func (*SearchFilterNotFound) String ¶
func (o *SearchFilterNotFound) String() string
type SearchFilterOK ¶
type SearchFilterOK struct {
Payload *models.PolicySearchResponse
}
SearchFilterOK describes a response with status code 200, with default header values.
no error
func NewSearchFilterOK ¶
func NewSearchFilterOK() *SearchFilterOK
NewSearchFilterOK creates a SearchFilterOK with default headers values
func (*SearchFilterOK) Error ¶
func (o *SearchFilterOK) Error() string
func (*SearchFilterOK) GetPayload ¶
func (o *SearchFilterOK) GetPayload() *models.PolicySearchResponse
func (*SearchFilterOK) IsClientError ¶
func (o *SearchFilterOK) IsClientError() bool
IsClientError returns true when this search filter o k response has a 4xx status code
func (*SearchFilterOK) IsCode ¶
func (o *SearchFilterOK) IsCode(code int) bool
IsCode returns true when this search filter o k response a status code equal to that given
func (*SearchFilterOK) IsRedirect ¶
func (o *SearchFilterOK) IsRedirect() bool
IsRedirect returns true when this search filter o k response has a 3xx status code
func (*SearchFilterOK) IsServerError ¶
func (o *SearchFilterOK) IsServerError() bool
IsServerError returns true when this search filter o k response has a 5xx status code
func (*SearchFilterOK) IsSuccess ¶
func (o *SearchFilterOK) IsSuccess() bool
IsSuccess returns true when this search filter o k response has a 2xx status code
func (*SearchFilterOK) String ¶
func (o *SearchFilterOK) String() string
type SearchFilterParams ¶
type SearchFilterParams struct { /* Cursor. Cursor to next batch of results */ Cursor *string /* Limit. The maximum number of results per cursor Format: int64 */ Limit *int64 /* SearchTerm. Search term */ SearchTerm *string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
SearchFilterParams contains all the parameters to send to the API endpoint
for the search filter operation. Typically these are written to a http.Request.
func NewSearchFilterParams ¶
func NewSearchFilterParams() *SearchFilterParams
NewSearchFilterParams creates a new SearchFilterParams 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 NewSearchFilterParamsWithContext ¶
func NewSearchFilterParamsWithContext(ctx context.Context) *SearchFilterParams
NewSearchFilterParamsWithContext creates a new SearchFilterParams object with the ability to set a context for a request.
func NewSearchFilterParamsWithHTTPClient ¶
func NewSearchFilterParamsWithHTTPClient(client *http.Client) *SearchFilterParams
NewSearchFilterParamsWithHTTPClient creates a new SearchFilterParams object with the ability to set a custom HTTPClient for a request.
func NewSearchFilterParamsWithTimeout ¶
func NewSearchFilterParamsWithTimeout(timeout time.Duration) *SearchFilterParams
NewSearchFilterParamsWithTimeout creates a new SearchFilterParams object with the ability to set a timeout on a request.
func (*SearchFilterParams) SetContext ¶
func (o *SearchFilterParams) SetContext(ctx context.Context)
SetContext adds the context to the search filter params
func (*SearchFilterParams) SetCursor ¶
func (o *SearchFilterParams) SetCursor(cursor *string)
SetCursor adds the cursor to the search filter params
func (*SearchFilterParams) SetDefaults ¶
func (o *SearchFilterParams) SetDefaults()
SetDefaults hydrates default values in the search filter params (not the query body).
All values with no default are reset to their zero value.
func (*SearchFilterParams) SetHTTPClient ¶
func (o *SearchFilterParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the search filter params
func (*SearchFilterParams) SetLimit ¶
func (o *SearchFilterParams) SetLimit(limit *int64)
SetLimit adds the limit to the search filter params
func (*SearchFilterParams) SetSearchTerm ¶
func (o *SearchFilterParams) SetSearchTerm(searchTerm *string)
SetSearchTerm adds the searchTerm to the search filter params
func (*SearchFilterParams) SetTimeout ¶
func (o *SearchFilterParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the search filter params
func (*SearchFilterParams) WithContext ¶
func (o *SearchFilterParams) WithContext(ctx context.Context) *SearchFilterParams
WithContext adds the context to the search filter params
func (*SearchFilterParams) WithCursor ¶
func (o *SearchFilterParams) WithCursor(cursor *string) *SearchFilterParams
WithCursor adds the cursor to the search filter params
func (*SearchFilterParams) WithDefaults ¶
func (o *SearchFilterParams) WithDefaults() *SearchFilterParams
WithDefaults hydrates default values in the search filter params (not the query body).
All values with no default are reset to their zero value.
func (*SearchFilterParams) WithHTTPClient ¶
func (o *SearchFilterParams) WithHTTPClient(client *http.Client) *SearchFilterParams
WithHTTPClient adds the HTTPClient to the search filter params
func (*SearchFilterParams) WithLimit ¶
func (o *SearchFilterParams) WithLimit(limit *int64) *SearchFilterParams
WithLimit adds the limit to the search filter params
func (*SearchFilterParams) WithSearchTerm ¶
func (o *SearchFilterParams) WithSearchTerm(searchTerm *string) *SearchFilterParams
WithSearchTerm adds the searchTerm to the search filter params
func (*SearchFilterParams) WithTimeout ¶
func (o *SearchFilterParams) WithTimeout(timeout time.Duration) *SearchFilterParams
WithTimeout adds the timeout to the search filter params
func (*SearchFilterParams) WriteToRequest ¶
func (o *SearchFilterParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type SearchFilterReader ¶
type SearchFilterReader struct {
// contains filtered or unexported fields
}
SearchFilterReader is a Reader for the SearchFilter structure.
func (*SearchFilterReader) ReadResponse ¶
func (o *SearchFilterReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type SearchFilterUnauthorized ¶
type SearchFilterUnauthorized struct {
}SearchFilterUnauthorized describes a response with status code 401, with default header values.
unauthorized
func NewSearchFilterUnauthorized ¶
func NewSearchFilterUnauthorized() *SearchFilterUnauthorized
NewSearchFilterUnauthorized creates a SearchFilterUnauthorized with default headers values
func (*SearchFilterUnauthorized) Error ¶
func (o *SearchFilterUnauthorized) Error() string
func (*SearchFilterUnauthorized) GetPayload ¶
func (o *SearchFilterUnauthorized) GetPayload() *models.HTTPError
func (*SearchFilterUnauthorized) IsClientError ¶
func (o *SearchFilterUnauthorized) IsClientError() bool
IsClientError returns true when this search filter unauthorized response has a 4xx status code
func (*SearchFilterUnauthorized) IsCode ¶
func (o *SearchFilterUnauthorized) IsCode(code int) bool
IsCode returns true when this search filter unauthorized response a status code equal to that given
func (*SearchFilterUnauthorized) IsRedirect ¶
func (o *SearchFilterUnauthorized) IsRedirect() bool
IsRedirect returns true when this search filter unauthorized response has a 3xx status code
func (*SearchFilterUnauthorized) IsServerError ¶
func (o *SearchFilterUnauthorized) IsServerError() bool
IsServerError returns true when this search filter unauthorized response has a 5xx status code
func (*SearchFilterUnauthorized) IsSuccess ¶
func (o *SearchFilterUnauthorized) IsSuccess() bool
IsSuccess returns true when this search filter unauthorized response has a 2xx status code
func (*SearchFilterUnauthorized) String ¶
func (o *SearchFilterUnauthorized) 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) Error ¶
func (o *UpdatePolicyBadRequest) Error() string
func (*UpdatePolicyBadRequest) GetPayload ¶
func (o *UpdatePolicyBadRequest) GetPayload() *models.HTTPError
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 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) Error ¶
func (o *UpdatePolicyForbidden) Error() string
func (*UpdatePolicyForbidden) GetPayload ¶
func (o *UpdatePolicyForbidden) GetPayload() *models.HTTPError
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 UpdatePolicyInternalServerError ¶
UpdatePolicyInternalServerError describes a response with status code 500, with default header values.
server error
func NewUpdatePolicyInternalServerError ¶
func NewUpdatePolicyInternalServerError() *UpdatePolicyInternalServerError
NewUpdatePolicyInternalServerError creates a UpdatePolicyInternalServerError with default headers values
func (*UpdatePolicyInternalServerError) Error ¶
func (o *UpdatePolicyInternalServerError) Error() string
func (*UpdatePolicyInternalServerError) GetPayload ¶
func (o *UpdatePolicyInternalServerError) GetPayload() *models.HTTPError
func (*UpdatePolicyInternalServerError) IsClientError ¶
func (o *UpdatePolicyInternalServerError) IsClientError() bool
IsClientError returns true when this update policy internal server error response has a 4xx status code
func (*UpdatePolicyInternalServerError) IsCode ¶
func (o *UpdatePolicyInternalServerError) IsCode(code int) bool
IsCode returns true when this update policy internal server error response a status code equal to that given
func (*UpdatePolicyInternalServerError) IsRedirect ¶
func (o *UpdatePolicyInternalServerError) IsRedirect() bool
IsRedirect returns true when this update policy internal server error response has a 3xx status code
func (*UpdatePolicyInternalServerError) IsServerError ¶
func (o *UpdatePolicyInternalServerError) IsServerError() bool
IsServerError returns true when this update policy internal server error response has a 5xx status code
func (*UpdatePolicyInternalServerError) IsSuccess ¶
func (o *UpdatePolicyInternalServerError) IsSuccess() bool
IsSuccess returns true when this update policy internal server error response has a 2xx status code
func (*UpdatePolicyInternalServerError) String ¶
func (o *UpdatePolicyInternalServerError) String() string
type UpdatePolicyOK ¶
UpdatePolicyOK describes a response with status code 200, with default header values.
no error
func NewUpdatePolicyOK ¶
func NewUpdatePolicyOK() *UpdatePolicyOK
NewUpdatePolicyOK creates a UpdatePolicyOK with default headers values
func (*UpdatePolicyOK) Error ¶
func (o *UpdatePolicyOK) Error() string
func (*UpdatePolicyOK) GetPayload ¶
func (o *UpdatePolicyOK) GetPayload() *models.Policy
func (*UpdatePolicyOK) IsClientError ¶
func (o *UpdatePolicyOK) IsClientError() bool
IsClientError returns true when this update policy o k response has a 4xx status code
func (*UpdatePolicyOK) IsCode ¶
func (o *UpdatePolicyOK) IsCode(code int) bool
IsCode returns true when this update policy o k response a status code equal to that given
func (*UpdatePolicyOK) IsRedirect ¶
func (o *UpdatePolicyOK) IsRedirect() bool
IsRedirect returns true when this update policy o k response has a 3xx status code
func (*UpdatePolicyOK) IsServerError ¶
func (o *UpdatePolicyOK) IsServerError() bool
IsServerError returns true when this update policy o k response has a 5xx status code
func (*UpdatePolicyOK) IsSuccess ¶
func (o *UpdatePolicyOK) IsSuccess() bool
IsSuccess returns true when this update policy o k response has a 2xx status code
func (*UpdatePolicyOK) String ¶
func (o *UpdatePolicyOK) String() string
type UpdatePolicyParams ¶
type UpdatePolicyParams struct { // Body. Body *models.PolicyUpdate /* Path. Full path for policy */ Path string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
UpdatePolicyParams contains all the parameters to send to the API endpoint
for the update policy operation. Typically these are written to a http.Request.
func NewUpdatePolicyParams ¶
func NewUpdatePolicyParams() *UpdatePolicyParams
NewUpdatePolicyParams creates a new UpdatePolicyParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewUpdatePolicyParamsWithContext ¶
func NewUpdatePolicyParamsWithContext(ctx context.Context) *UpdatePolicyParams
NewUpdatePolicyParamsWithContext creates a new UpdatePolicyParams object with the ability to set a context for a request.
func NewUpdatePolicyParamsWithHTTPClient ¶
func NewUpdatePolicyParamsWithHTTPClient(client *http.Client) *UpdatePolicyParams
NewUpdatePolicyParamsWithHTTPClient creates a new UpdatePolicyParams object with the ability to set a custom HTTPClient for a request.
func NewUpdatePolicyParamsWithTimeout ¶
func NewUpdatePolicyParamsWithTimeout(timeout time.Duration) *UpdatePolicyParams
NewUpdatePolicyParamsWithTimeout creates a new UpdatePolicyParams object with the ability to set a timeout on a request.
func (*UpdatePolicyParams) SetBody ¶
func (o *UpdatePolicyParams) SetBody(body *models.PolicyUpdate)
SetBody adds the body to the update policy params
func (*UpdatePolicyParams) SetContext ¶
func (o *UpdatePolicyParams) SetContext(ctx context.Context)
SetContext adds the context to the update policy params
func (*UpdatePolicyParams) SetDefaults ¶
func (o *UpdatePolicyParams) SetDefaults()
SetDefaults hydrates default values in the update policy params (not the query body).
All values with no default are reset to their zero value.
func (*UpdatePolicyParams) SetHTTPClient ¶
func (o *UpdatePolicyParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the update policy params
func (*UpdatePolicyParams) SetPath ¶
func (o *UpdatePolicyParams) SetPath(path string)
SetPath adds the path to the update policy params
func (*UpdatePolicyParams) SetTimeout ¶
func (o *UpdatePolicyParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the update policy params
func (*UpdatePolicyParams) WithBody ¶
func (o *UpdatePolicyParams) WithBody(body *models.PolicyUpdate) *UpdatePolicyParams
WithBody adds the body to the update policy params
func (*UpdatePolicyParams) WithContext ¶
func (o *UpdatePolicyParams) WithContext(ctx context.Context) *UpdatePolicyParams
WithContext adds the context to the update policy params
func (*UpdatePolicyParams) WithDefaults ¶
func (o *UpdatePolicyParams) WithDefaults() *UpdatePolicyParams
WithDefaults hydrates default values in the update policy params (not the query body).
All values with no default are reset to their zero value.
func (*UpdatePolicyParams) WithHTTPClient ¶
func (o *UpdatePolicyParams) WithHTTPClient(client *http.Client) *UpdatePolicyParams
WithHTTPClient adds the HTTPClient to the update policy params
func (*UpdatePolicyParams) WithPath ¶
func (o *UpdatePolicyParams) WithPath(path string) *UpdatePolicyParams
WithPath adds the path 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 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) Error ¶
func (o *UpdatePolicyUnauthorized) Error() string
func (*UpdatePolicyUnauthorized) GetPayload ¶
func (o *UpdatePolicyUnauthorized) GetPayload() *models.HTTPError
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
Source Files
¶
- create_policy_parameters.go
- create_policy_responses.go
- delete_policy_parameters.go
- delete_policy_responses.go
- get_policy_by_version_parameters.go
- get_policy_by_version_responses.go
- get_policy_parameters.go
- get_policy_responses.go
- policies_client.go
- restore_policy_parameters.go
- restore_policy_responses.go
- rollback_policy_parameters.go
- rollback_policy_responses.go
- search_filter_parameters.go
- search_filter_responses.go
- update_policy_parameters.go
- update_policy_responses.go