Documentation
¶
Index ¶
- type Client
- func (a *Client) CreatePolicy(params *CreatePolicyParams, authInfo runtime.ClientAuthInfoWriter, ...) (*CreatePolicyOK, *CreatePolicyNoContent, error)
- func (a *Client) DeletePolicy(params *DeletePolicyParams, authInfo runtime.ClientAuthInfoWriter, ...) (*DeletePolicyOK, *DeletePolicyNoContent, error)
- func (a *Client) GetPolicy(params *GetPolicyParams, authInfo runtime.ClientAuthInfoWriter, ...) (*GetPolicyOK, *GetPolicyNoContent, error)
- func (a *Client) ListPolicies(params *ListPoliciesParams, authInfo runtime.ClientAuthInfoWriter, ...) (*ListPoliciesOK, *ListPoliciesNoContent, error)
- func (a *Client) ListPolicyNames(params *ListPolicyNamesParams, authInfo runtime.ClientAuthInfoWriter, ...) (*ListPolicyNamesOK, *ListPolicyNamesNoContent, error)
- func (a *Client) PatchPolicy(params *PatchPolicyParams, authInfo runtime.ClientAuthInfoWriter, ...) (*PatchPolicyOK, *PatchPolicyNoContent, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- func (a *Client) UpdatePolicy(params *UpdatePolicyParams, authInfo runtime.ClientAuthInfoWriter, ...) (*UpdatePolicyOK, *UpdatePolicyNoContent, error)
- type ClientOption
- type ClientService
- type CreatePolicyDefault
- func (o *CreatePolicyDefault) Code() int
- func (o *CreatePolicyDefault) Error() string
- func (o *CreatePolicyDefault) GetPayload() *service_model.RuntimeError
- func (o *CreatePolicyDefault) IsClientError() bool
- func (o *CreatePolicyDefault) IsCode(code int) bool
- func (o *CreatePolicyDefault) IsRedirect() bool
- func (o *CreatePolicyDefault) IsServerError() bool
- func (o *CreatePolicyDefault) IsSuccess() bool
- func (o *CreatePolicyDefault) String() string
- type CreatePolicyForbidden
- func (o *CreatePolicyForbidden) Code() int
- func (o *CreatePolicyForbidden) Error() string
- func (o *CreatePolicyForbidden) GetPayload() interface{}
- 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 CreatePolicyNoContent
- func (o *CreatePolicyNoContent) Code() int
- func (o *CreatePolicyNoContent) Error() string
- func (o *CreatePolicyNoContent) GetPayload() interface{}
- func (o *CreatePolicyNoContent) IsClientError() bool
- func (o *CreatePolicyNoContent) IsCode(code int) bool
- func (o *CreatePolicyNoContent) IsRedirect() bool
- func (o *CreatePolicyNoContent) IsServerError() bool
- func (o *CreatePolicyNoContent) IsSuccess() bool
- func (o *CreatePolicyNoContent) String() string
- type CreatePolicyNotFound
- func (o *CreatePolicyNotFound) Code() int
- func (o *CreatePolicyNotFound) Error() string
- func (o *CreatePolicyNotFound) GetPayload() interface{}
- func (o *CreatePolicyNotFound) IsClientError() bool
- func (o *CreatePolicyNotFound) IsCode(code int) bool
- func (o *CreatePolicyNotFound) IsRedirect() bool
- func (o *CreatePolicyNotFound) IsServerError() bool
- func (o *CreatePolicyNotFound) IsSuccess() bool
- func (o *CreatePolicyNotFound) String() string
- type CreatePolicyOK
- func (o *CreatePolicyOK) Code() int
- func (o *CreatePolicyOK) Error() string
- func (o *CreatePolicyOK) GetPayload() *service_model.V1Policy
- func (o *CreatePolicyOK) IsClientError() bool
- func (o *CreatePolicyOK) IsCode(code int) bool
- func (o *CreatePolicyOK) IsRedirect() bool
- func (o *CreatePolicyOK) IsServerError() bool
- func (o *CreatePolicyOK) IsSuccess() bool
- func (o *CreatePolicyOK) String() string
- type CreatePolicyParams
- func (o *CreatePolicyParams) SetBody(body *service_model.V1Policy)
- func (o *CreatePolicyParams) SetContext(ctx context.Context)
- func (o *CreatePolicyParams) SetDefaults()
- func (o *CreatePolicyParams) SetHTTPClient(client *http.Client)
- func (o *CreatePolicyParams) SetOwner(owner string)
- func (o *CreatePolicyParams) SetTimeout(timeout time.Duration)
- func (o *CreatePolicyParams) WithBody(body *service_model.V1Policy) *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) WithOwner(owner string) *CreatePolicyParams
- func (o *CreatePolicyParams) WithTimeout(timeout time.Duration) *CreatePolicyParams
- func (o *CreatePolicyParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CreatePolicyReader
- type DeletePolicyDefault
- func (o *DeletePolicyDefault) Code() int
- func (o *DeletePolicyDefault) Error() string
- func (o *DeletePolicyDefault) GetPayload() *service_model.RuntimeError
- func (o *DeletePolicyDefault) IsClientError() bool
- func (o *DeletePolicyDefault) IsCode(code int) bool
- func (o *DeletePolicyDefault) IsRedirect() bool
- func (o *DeletePolicyDefault) IsServerError() bool
- func (o *DeletePolicyDefault) IsSuccess() bool
- func (o *DeletePolicyDefault) String() string
- type DeletePolicyForbidden
- func (o *DeletePolicyForbidden) Code() int
- func (o *DeletePolicyForbidden) Error() string
- func (o *DeletePolicyForbidden) GetPayload() interface{}
- func (o *DeletePolicyForbidden) IsClientError() bool
- func (o *DeletePolicyForbidden) IsCode(code int) bool
- func (o *DeletePolicyForbidden) IsRedirect() bool
- func (o *DeletePolicyForbidden) IsServerError() bool
- func (o *DeletePolicyForbidden) IsSuccess() bool
- func (o *DeletePolicyForbidden) String() string
- type DeletePolicyNoContent
- func (o *DeletePolicyNoContent) Code() int
- func (o *DeletePolicyNoContent) Error() string
- func (o *DeletePolicyNoContent) GetPayload() interface{}
- func (o *DeletePolicyNoContent) IsClientError() bool
- func (o *DeletePolicyNoContent) IsCode(code int) bool
- func (o *DeletePolicyNoContent) IsRedirect() bool
- func (o *DeletePolicyNoContent) IsServerError() bool
- func (o *DeletePolicyNoContent) IsSuccess() bool
- func (o *DeletePolicyNoContent) String() string
- type DeletePolicyNotFound
- func (o *DeletePolicyNotFound) Code() int
- func (o *DeletePolicyNotFound) Error() string
- func (o *DeletePolicyNotFound) GetPayload() interface{}
- 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) Code() int
- func (o *DeletePolicyOK) Error() string
- 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) SetEntity(entity *string)
- func (o *DeletePolicyParams) SetHTTPClient(client *http.Client)
- func (o *DeletePolicyParams) SetOwner(owner string)
- func (o *DeletePolicyParams) SetTimeout(timeout time.Duration)
- func (o *DeletePolicyParams) SetUUID(uuid string)
- func (o *DeletePolicyParams) WithContext(ctx context.Context) *DeletePolicyParams
- func (o *DeletePolicyParams) WithDefaults() *DeletePolicyParams
- func (o *DeletePolicyParams) WithEntity(entity *string) *DeletePolicyParams
- func (o *DeletePolicyParams) WithHTTPClient(client *http.Client) *DeletePolicyParams
- func (o *DeletePolicyParams) WithOwner(owner string) *DeletePolicyParams
- func (o *DeletePolicyParams) WithTimeout(timeout time.Duration) *DeletePolicyParams
- func (o *DeletePolicyParams) WithUUID(uuid string) *DeletePolicyParams
- func (o *DeletePolicyParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DeletePolicyReader
- type GetPolicyDefault
- func (o *GetPolicyDefault) Code() int
- func (o *GetPolicyDefault) Error() string
- func (o *GetPolicyDefault) GetPayload() *service_model.RuntimeError
- func (o *GetPolicyDefault) IsClientError() bool
- func (o *GetPolicyDefault) IsCode(code int) bool
- func (o *GetPolicyDefault) IsRedirect() bool
- func (o *GetPolicyDefault) IsServerError() bool
- func (o *GetPolicyDefault) IsSuccess() bool
- func (o *GetPolicyDefault) String() string
- type GetPolicyForbidden
- func (o *GetPolicyForbidden) Code() int
- func (o *GetPolicyForbidden) Error() string
- func (o *GetPolicyForbidden) GetPayload() interface{}
- 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 GetPolicyNoContent
- func (o *GetPolicyNoContent) Code() int
- func (o *GetPolicyNoContent) Error() string
- func (o *GetPolicyNoContent) GetPayload() interface{}
- func (o *GetPolicyNoContent) IsClientError() bool
- func (o *GetPolicyNoContent) IsCode(code int) bool
- func (o *GetPolicyNoContent) IsRedirect() bool
- func (o *GetPolicyNoContent) IsServerError() bool
- func (o *GetPolicyNoContent) IsSuccess() bool
- func (o *GetPolicyNoContent) String() string
- type GetPolicyNotFound
- func (o *GetPolicyNotFound) Code() int
- func (o *GetPolicyNotFound) Error() string
- func (o *GetPolicyNotFound) GetPayload() interface{}
- func (o *GetPolicyNotFound) IsClientError() bool
- func (o *GetPolicyNotFound) IsCode(code int) bool
- func (o *GetPolicyNotFound) IsRedirect() bool
- func (o *GetPolicyNotFound) IsServerError() bool
- func (o *GetPolicyNotFound) IsSuccess() bool
- func (o *GetPolicyNotFound) String() string
- type GetPolicyOK
- func (o *GetPolicyOK) Code() int
- func (o *GetPolicyOK) Error() string
- func (o *GetPolicyOK) GetPayload() *service_model.V1Policy
- 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) SetEntity(entity *string)
- func (o *GetPolicyParams) SetHTTPClient(client *http.Client)
- func (o *GetPolicyParams) SetOwner(owner string)
- func (o *GetPolicyParams) SetTimeout(timeout time.Duration)
- func (o *GetPolicyParams) SetUUID(uuid string)
- func (o *GetPolicyParams) WithContext(ctx context.Context) *GetPolicyParams
- func (o *GetPolicyParams) WithDefaults() *GetPolicyParams
- func (o *GetPolicyParams) WithEntity(entity *string) *GetPolicyParams
- func (o *GetPolicyParams) WithHTTPClient(client *http.Client) *GetPolicyParams
- func (o *GetPolicyParams) WithOwner(owner string) *GetPolicyParams
- func (o *GetPolicyParams) WithTimeout(timeout time.Duration) *GetPolicyParams
- func (o *GetPolicyParams) WithUUID(uuid string) *GetPolicyParams
- func (o *GetPolicyParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetPolicyReader
- type ListPoliciesDefault
- func (o *ListPoliciesDefault) Code() int
- func (o *ListPoliciesDefault) Error() string
- func (o *ListPoliciesDefault) GetPayload() *service_model.RuntimeError
- func (o *ListPoliciesDefault) IsClientError() bool
- func (o *ListPoliciesDefault) IsCode(code int) bool
- func (o *ListPoliciesDefault) IsRedirect() bool
- func (o *ListPoliciesDefault) IsServerError() bool
- func (o *ListPoliciesDefault) IsSuccess() bool
- func (o *ListPoliciesDefault) String() string
- type ListPoliciesForbidden
- func (o *ListPoliciesForbidden) Code() int
- func (o *ListPoliciesForbidden) Error() string
- func (o *ListPoliciesForbidden) GetPayload() interface{}
- func (o *ListPoliciesForbidden) IsClientError() bool
- func (o *ListPoliciesForbidden) IsCode(code int) bool
- func (o *ListPoliciesForbidden) IsRedirect() bool
- func (o *ListPoliciesForbidden) IsServerError() bool
- func (o *ListPoliciesForbidden) IsSuccess() bool
- func (o *ListPoliciesForbidden) String() string
- type ListPoliciesNoContent
- func (o *ListPoliciesNoContent) Code() int
- func (o *ListPoliciesNoContent) Error() string
- func (o *ListPoliciesNoContent) GetPayload() interface{}
- func (o *ListPoliciesNoContent) IsClientError() bool
- func (o *ListPoliciesNoContent) IsCode(code int) bool
- func (o *ListPoliciesNoContent) IsRedirect() bool
- func (o *ListPoliciesNoContent) IsServerError() bool
- func (o *ListPoliciesNoContent) IsSuccess() bool
- func (o *ListPoliciesNoContent) String() string
- type ListPoliciesNotFound
- func (o *ListPoliciesNotFound) Code() int
- func (o *ListPoliciesNotFound) Error() string
- func (o *ListPoliciesNotFound) GetPayload() interface{}
- func (o *ListPoliciesNotFound) IsClientError() bool
- func (o *ListPoliciesNotFound) IsCode(code int) bool
- func (o *ListPoliciesNotFound) IsRedirect() bool
- func (o *ListPoliciesNotFound) IsServerError() bool
- func (o *ListPoliciesNotFound) IsSuccess() bool
- func (o *ListPoliciesNotFound) String() string
- type ListPoliciesOK
- func (o *ListPoliciesOK) Code() int
- func (o *ListPoliciesOK) Error() string
- func (o *ListPoliciesOK) GetPayload() *service_model.V1ListPoliciesResponse
- func (o *ListPoliciesOK) IsClientError() bool
- func (o *ListPoliciesOK) IsCode(code int) bool
- func (o *ListPoliciesOK) IsRedirect() bool
- func (o *ListPoliciesOK) IsServerError() bool
- func (o *ListPoliciesOK) IsSuccess() bool
- func (o *ListPoliciesOK) String() string
- type ListPoliciesParams
- func (o *ListPoliciesParams) SetBookmarks(bookmarks *bool)
- func (o *ListPoliciesParams) SetContext(ctx context.Context)
- func (o *ListPoliciesParams) SetDefaults()
- func (o *ListPoliciesParams) SetHTTPClient(client *http.Client)
- func (o *ListPoliciesParams) SetLimit(limit *int32)
- func (o *ListPoliciesParams) SetMode(mode *string)
- func (o *ListPoliciesParams) SetNoPage(noPage *bool)
- func (o *ListPoliciesParams) SetOffset(offset *int32)
- func (o *ListPoliciesParams) SetOwner(owner string)
- func (o *ListPoliciesParams) SetQuery(query *string)
- func (o *ListPoliciesParams) SetSort(sort *string)
- func (o *ListPoliciesParams) SetTimeout(timeout time.Duration)
- func (o *ListPoliciesParams) WithBookmarks(bookmarks *bool) *ListPoliciesParams
- func (o *ListPoliciesParams) WithContext(ctx context.Context) *ListPoliciesParams
- func (o *ListPoliciesParams) WithDefaults() *ListPoliciesParams
- func (o *ListPoliciesParams) WithHTTPClient(client *http.Client) *ListPoliciesParams
- func (o *ListPoliciesParams) WithLimit(limit *int32) *ListPoliciesParams
- func (o *ListPoliciesParams) WithMode(mode *string) *ListPoliciesParams
- func (o *ListPoliciesParams) WithNoPage(noPage *bool) *ListPoliciesParams
- func (o *ListPoliciesParams) WithOffset(offset *int32) *ListPoliciesParams
- func (o *ListPoliciesParams) WithOwner(owner string) *ListPoliciesParams
- func (o *ListPoliciesParams) WithQuery(query *string) *ListPoliciesParams
- func (o *ListPoliciesParams) WithSort(sort *string) *ListPoliciesParams
- func (o *ListPoliciesParams) WithTimeout(timeout time.Duration) *ListPoliciesParams
- func (o *ListPoliciesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ListPoliciesReader
- type ListPolicyNamesDefault
- func (o *ListPolicyNamesDefault) Code() int
- func (o *ListPolicyNamesDefault) Error() string
- func (o *ListPolicyNamesDefault) GetPayload() *service_model.RuntimeError
- func (o *ListPolicyNamesDefault) IsClientError() bool
- func (o *ListPolicyNamesDefault) IsCode(code int) bool
- func (o *ListPolicyNamesDefault) IsRedirect() bool
- func (o *ListPolicyNamesDefault) IsServerError() bool
- func (o *ListPolicyNamesDefault) IsSuccess() bool
- func (o *ListPolicyNamesDefault) String() string
- type ListPolicyNamesForbidden
- func (o *ListPolicyNamesForbidden) Code() int
- func (o *ListPolicyNamesForbidden) Error() string
- func (o *ListPolicyNamesForbidden) GetPayload() interface{}
- func (o *ListPolicyNamesForbidden) IsClientError() bool
- func (o *ListPolicyNamesForbidden) IsCode(code int) bool
- func (o *ListPolicyNamesForbidden) IsRedirect() bool
- func (o *ListPolicyNamesForbidden) IsServerError() bool
- func (o *ListPolicyNamesForbidden) IsSuccess() bool
- func (o *ListPolicyNamesForbidden) String() string
- type ListPolicyNamesNoContent
- func (o *ListPolicyNamesNoContent) Code() int
- func (o *ListPolicyNamesNoContent) Error() string
- func (o *ListPolicyNamesNoContent) GetPayload() interface{}
- func (o *ListPolicyNamesNoContent) IsClientError() bool
- func (o *ListPolicyNamesNoContent) IsCode(code int) bool
- func (o *ListPolicyNamesNoContent) IsRedirect() bool
- func (o *ListPolicyNamesNoContent) IsServerError() bool
- func (o *ListPolicyNamesNoContent) IsSuccess() bool
- func (o *ListPolicyNamesNoContent) String() string
- type ListPolicyNamesNotFound
- func (o *ListPolicyNamesNotFound) Code() int
- func (o *ListPolicyNamesNotFound) Error() string
- func (o *ListPolicyNamesNotFound) GetPayload() interface{}
- func (o *ListPolicyNamesNotFound) IsClientError() bool
- func (o *ListPolicyNamesNotFound) IsCode(code int) bool
- func (o *ListPolicyNamesNotFound) IsRedirect() bool
- func (o *ListPolicyNamesNotFound) IsServerError() bool
- func (o *ListPolicyNamesNotFound) IsSuccess() bool
- func (o *ListPolicyNamesNotFound) String() string
- type ListPolicyNamesOK
- func (o *ListPolicyNamesOK) Code() int
- func (o *ListPolicyNamesOK) Error() string
- func (o *ListPolicyNamesOK) GetPayload() *service_model.V1ListPoliciesResponse
- func (o *ListPolicyNamesOK) IsClientError() bool
- func (o *ListPolicyNamesOK) IsCode(code int) bool
- func (o *ListPolicyNamesOK) IsRedirect() bool
- func (o *ListPolicyNamesOK) IsServerError() bool
- func (o *ListPolicyNamesOK) IsSuccess() bool
- func (o *ListPolicyNamesOK) String() string
- type ListPolicyNamesParams
- func NewListPolicyNamesParams() *ListPolicyNamesParams
- func NewListPolicyNamesParamsWithContext(ctx context.Context) *ListPolicyNamesParams
- func NewListPolicyNamesParamsWithHTTPClient(client *http.Client) *ListPolicyNamesParams
- func NewListPolicyNamesParamsWithTimeout(timeout time.Duration) *ListPolicyNamesParams
- func (o *ListPolicyNamesParams) SetBookmarks(bookmarks *bool)
- func (o *ListPolicyNamesParams) SetContext(ctx context.Context)
- func (o *ListPolicyNamesParams) SetDefaults()
- func (o *ListPolicyNamesParams) SetHTTPClient(client *http.Client)
- func (o *ListPolicyNamesParams) SetLimit(limit *int32)
- func (o *ListPolicyNamesParams) SetMode(mode *string)
- func (o *ListPolicyNamesParams) SetNoPage(noPage *bool)
- func (o *ListPolicyNamesParams) SetOffset(offset *int32)
- func (o *ListPolicyNamesParams) SetOwner(owner string)
- func (o *ListPolicyNamesParams) SetQuery(query *string)
- func (o *ListPolicyNamesParams) SetSort(sort *string)
- func (o *ListPolicyNamesParams) SetTimeout(timeout time.Duration)
- func (o *ListPolicyNamesParams) WithBookmarks(bookmarks *bool) *ListPolicyNamesParams
- func (o *ListPolicyNamesParams) WithContext(ctx context.Context) *ListPolicyNamesParams
- func (o *ListPolicyNamesParams) WithDefaults() *ListPolicyNamesParams
- func (o *ListPolicyNamesParams) WithHTTPClient(client *http.Client) *ListPolicyNamesParams
- func (o *ListPolicyNamesParams) WithLimit(limit *int32) *ListPolicyNamesParams
- func (o *ListPolicyNamesParams) WithMode(mode *string) *ListPolicyNamesParams
- func (o *ListPolicyNamesParams) WithNoPage(noPage *bool) *ListPolicyNamesParams
- func (o *ListPolicyNamesParams) WithOffset(offset *int32) *ListPolicyNamesParams
- func (o *ListPolicyNamesParams) WithOwner(owner string) *ListPolicyNamesParams
- func (o *ListPolicyNamesParams) WithQuery(query *string) *ListPolicyNamesParams
- func (o *ListPolicyNamesParams) WithSort(sort *string) *ListPolicyNamesParams
- func (o *ListPolicyNamesParams) WithTimeout(timeout time.Duration) *ListPolicyNamesParams
- func (o *ListPolicyNamesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ListPolicyNamesReader
- type PatchPolicyDefault
- func (o *PatchPolicyDefault) Code() int
- func (o *PatchPolicyDefault) Error() string
- func (o *PatchPolicyDefault) GetPayload() *service_model.RuntimeError
- func (o *PatchPolicyDefault) IsClientError() bool
- func (o *PatchPolicyDefault) IsCode(code int) bool
- func (o *PatchPolicyDefault) IsRedirect() bool
- func (o *PatchPolicyDefault) IsServerError() bool
- func (o *PatchPolicyDefault) IsSuccess() bool
- func (o *PatchPolicyDefault) String() string
- type PatchPolicyForbidden
- func (o *PatchPolicyForbidden) Code() int
- func (o *PatchPolicyForbidden) Error() string
- func (o *PatchPolicyForbidden) GetPayload() interface{}
- func (o *PatchPolicyForbidden) IsClientError() bool
- func (o *PatchPolicyForbidden) IsCode(code int) bool
- func (o *PatchPolicyForbidden) IsRedirect() bool
- func (o *PatchPolicyForbidden) IsServerError() bool
- func (o *PatchPolicyForbidden) IsSuccess() bool
- func (o *PatchPolicyForbidden) String() string
- type PatchPolicyNoContent
- func (o *PatchPolicyNoContent) Code() int
- func (o *PatchPolicyNoContent) Error() string
- func (o *PatchPolicyNoContent) GetPayload() interface{}
- func (o *PatchPolicyNoContent) IsClientError() bool
- func (o *PatchPolicyNoContent) IsCode(code int) bool
- func (o *PatchPolicyNoContent) IsRedirect() bool
- func (o *PatchPolicyNoContent) IsServerError() bool
- func (o *PatchPolicyNoContent) IsSuccess() bool
- func (o *PatchPolicyNoContent) String() string
- type PatchPolicyNotFound
- func (o *PatchPolicyNotFound) Code() int
- func (o *PatchPolicyNotFound) Error() string
- func (o *PatchPolicyNotFound) GetPayload() interface{}
- func (o *PatchPolicyNotFound) IsClientError() bool
- func (o *PatchPolicyNotFound) IsCode(code int) bool
- func (o *PatchPolicyNotFound) IsRedirect() bool
- func (o *PatchPolicyNotFound) IsServerError() bool
- func (o *PatchPolicyNotFound) IsSuccess() bool
- func (o *PatchPolicyNotFound) String() string
- type PatchPolicyOK
- func (o *PatchPolicyOK) Code() int
- func (o *PatchPolicyOK) Error() string
- func (o *PatchPolicyOK) GetPayload() *service_model.V1Policy
- func (o *PatchPolicyOK) IsClientError() bool
- func (o *PatchPolicyOK) IsCode(code int) bool
- func (o *PatchPolicyOK) IsRedirect() bool
- func (o *PatchPolicyOK) IsServerError() bool
- func (o *PatchPolicyOK) IsSuccess() bool
- func (o *PatchPolicyOK) String() string
- type PatchPolicyParams
- func (o *PatchPolicyParams) SetBody(body *service_model.V1Policy)
- func (o *PatchPolicyParams) SetContext(ctx context.Context)
- func (o *PatchPolicyParams) SetDefaults()
- func (o *PatchPolicyParams) SetHTTPClient(client *http.Client)
- func (o *PatchPolicyParams) SetOwner(owner string)
- func (o *PatchPolicyParams) SetPolicyUUID(policyUUID string)
- func (o *PatchPolicyParams) SetTimeout(timeout time.Duration)
- func (o *PatchPolicyParams) WithBody(body *service_model.V1Policy) *PatchPolicyParams
- func (o *PatchPolicyParams) WithContext(ctx context.Context) *PatchPolicyParams
- func (o *PatchPolicyParams) WithDefaults() *PatchPolicyParams
- func (o *PatchPolicyParams) WithHTTPClient(client *http.Client) *PatchPolicyParams
- func (o *PatchPolicyParams) WithOwner(owner string) *PatchPolicyParams
- func (o *PatchPolicyParams) WithPolicyUUID(policyUUID string) *PatchPolicyParams
- func (o *PatchPolicyParams) WithTimeout(timeout time.Duration) *PatchPolicyParams
- func (o *PatchPolicyParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type PatchPolicyReader
- type UpdatePolicyDefault
- func (o *UpdatePolicyDefault) Code() int
- func (o *UpdatePolicyDefault) Error() string
- func (o *UpdatePolicyDefault) GetPayload() *service_model.RuntimeError
- func (o *UpdatePolicyDefault) IsClientError() bool
- func (o *UpdatePolicyDefault) IsCode(code int) bool
- func (o *UpdatePolicyDefault) IsRedirect() bool
- func (o *UpdatePolicyDefault) IsServerError() bool
- func (o *UpdatePolicyDefault) IsSuccess() bool
- func (o *UpdatePolicyDefault) String() string
- type UpdatePolicyForbidden
- func (o *UpdatePolicyForbidden) Code() int
- func (o *UpdatePolicyForbidden) Error() string
- func (o *UpdatePolicyForbidden) GetPayload() interface{}
- 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 UpdatePolicyNoContent
- func (o *UpdatePolicyNoContent) Code() int
- func (o *UpdatePolicyNoContent) Error() string
- func (o *UpdatePolicyNoContent) GetPayload() interface{}
- func (o *UpdatePolicyNoContent) IsClientError() bool
- func (o *UpdatePolicyNoContent) IsCode(code int) bool
- func (o *UpdatePolicyNoContent) IsRedirect() bool
- func (o *UpdatePolicyNoContent) IsServerError() bool
- func (o *UpdatePolicyNoContent) IsSuccess() bool
- func (o *UpdatePolicyNoContent) String() string
- type UpdatePolicyNotFound
- func (o *UpdatePolicyNotFound) Code() int
- func (o *UpdatePolicyNotFound) Error() string
- func (o *UpdatePolicyNotFound) GetPayload() interface{}
- func (o *UpdatePolicyNotFound) IsClientError() bool
- func (o *UpdatePolicyNotFound) IsCode(code int) bool
- func (o *UpdatePolicyNotFound) IsRedirect() bool
- func (o *UpdatePolicyNotFound) IsServerError() bool
- func (o *UpdatePolicyNotFound) IsSuccess() bool
- func (o *UpdatePolicyNotFound) String() string
- type UpdatePolicyOK
- func (o *UpdatePolicyOK) Code() int
- func (o *UpdatePolicyOK) Error() string
- func (o *UpdatePolicyOK) GetPayload() *service_model.V1Policy
- 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 *service_model.V1Policy)
- func (o *UpdatePolicyParams) SetContext(ctx context.Context)
- func (o *UpdatePolicyParams) SetDefaults()
- func (o *UpdatePolicyParams) SetHTTPClient(client *http.Client)
- func (o *UpdatePolicyParams) SetOwner(owner string)
- func (o *UpdatePolicyParams) SetPolicyUUID(policyUUID string)
- func (o *UpdatePolicyParams) SetTimeout(timeout time.Duration)
- func (o *UpdatePolicyParams) WithBody(body *service_model.V1Policy) *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) WithOwner(owner string) *UpdatePolicyParams
- func (o *UpdatePolicyParams) WithPolicyUUID(policyUUID string) *UpdatePolicyParams
- func (o *UpdatePolicyParams) WithTimeout(timeout time.Duration) *UpdatePolicyParams
- func (o *UpdatePolicyParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type UpdatePolicyReader
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 v1 API
func (*Client) CreatePolicy ¶
func (a *Client) CreatePolicy(params *CreatePolicyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreatePolicyOK, *CreatePolicyNoContent, error)
CreatePolicy creates policy
func (*Client) DeletePolicy ¶
func (a *Client) DeletePolicy(params *DeletePolicyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeletePolicyOK, *DeletePolicyNoContent, error)
DeletePolicy deletes scheduling preset
func (*Client) GetPolicy ¶
func (a *Client) GetPolicy(params *GetPolicyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetPolicyOK, *GetPolicyNoContent, error)
GetPolicy gets policy
func (*Client) ListPolicies ¶
func (a *Client) ListPolicies(params *ListPoliciesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListPoliciesOK, *ListPoliciesNoContent, error)
ListPolicies lists policies
func (*Client) ListPolicyNames ¶
func (a *Client) ListPolicyNames(params *ListPolicyNamesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListPolicyNamesOK, *ListPolicyNamesNoContent, error)
ListPolicyNames lists scheduling policies names
func (*Client) PatchPolicy ¶
func (a *Client) PatchPolicy(params *PatchPolicyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PatchPolicyOK, *PatchPolicyNoContent, error)
PatchPolicy patches policy
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, *UpdatePolicyNoContent, error)
UpdatePolicy updates policy
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) (*CreatePolicyOK, *CreatePolicyNoContent, error) DeletePolicy(params *DeletePolicyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeletePolicyOK, *DeletePolicyNoContent, error) GetPolicy(params *GetPolicyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetPolicyOK, *GetPolicyNoContent, error) ListPolicies(params *ListPoliciesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListPoliciesOK, *ListPoliciesNoContent, error) ListPolicyNames(params *ListPolicyNamesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListPolicyNamesOK, *ListPolicyNamesNoContent, error) PatchPolicy(params *PatchPolicyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PatchPolicyOK, *PatchPolicyNoContent, error) UpdatePolicy(params *UpdatePolicyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdatePolicyOK, *UpdatePolicyNoContent, 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 v1 API client.
type CreatePolicyDefault ¶
type CreatePolicyDefault struct { Payload *service_model.RuntimeError // contains filtered or unexported fields }
CreatePolicyDefault describes a response with status code -1, with default header values.
An unexpected error response.
func NewCreatePolicyDefault ¶
func NewCreatePolicyDefault(code int) *CreatePolicyDefault
NewCreatePolicyDefault creates a CreatePolicyDefault with default headers values
func (*CreatePolicyDefault) Code ¶
func (o *CreatePolicyDefault) Code() int
Code gets the status code for the create policy default response
func (*CreatePolicyDefault) Error ¶
func (o *CreatePolicyDefault) Error() string
func (*CreatePolicyDefault) GetPayload ¶
func (o *CreatePolicyDefault) GetPayload() *service_model.RuntimeError
func (*CreatePolicyDefault) IsClientError ¶
func (o *CreatePolicyDefault) IsClientError() bool
IsClientError returns true when this create policy default response has a 4xx status code
func (*CreatePolicyDefault) IsCode ¶
func (o *CreatePolicyDefault) IsCode(code int) bool
IsCode returns true when this create policy default response a status code equal to that given
func (*CreatePolicyDefault) IsRedirect ¶
func (o *CreatePolicyDefault) IsRedirect() bool
IsRedirect returns true when this create policy default response has a 3xx status code
func (*CreatePolicyDefault) IsServerError ¶
func (o *CreatePolicyDefault) IsServerError() bool
IsServerError returns true when this create policy default response has a 5xx status code
func (*CreatePolicyDefault) IsSuccess ¶
func (o *CreatePolicyDefault) IsSuccess() bool
IsSuccess returns true when this create policy default response has a 2xx status code
func (*CreatePolicyDefault) String ¶
func (o *CreatePolicyDefault) String() string
type CreatePolicyForbidden ¶
type CreatePolicyForbidden struct {
Payload interface{}
}
CreatePolicyForbidden describes a response with status code 403, with default header values.
You don't have permission to access the resource.
func NewCreatePolicyForbidden ¶
func NewCreatePolicyForbidden() *CreatePolicyForbidden
NewCreatePolicyForbidden creates a CreatePolicyForbidden with default headers values
func (*CreatePolicyForbidden) Code ¶
func (o *CreatePolicyForbidden) Code() int
Code gets the status code for the create policy forbidden response
func (*CreatePolicyForbidden) Error ¶
func (o *CreatePolicyForbidden) Error() string
func (*CreatePolicyForbidden) GetPayload ¶
func (o *CreatePolicyForbidden) GetPayload() interface{}
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 CreatePolicyNoContent ¶
type CreatePolicyNoContent struct {
Payload interface{}
}
CreatePolicyNoContent describes a response with status code 204, with default header values.
No content.
func NewCreatePolicyNoContent ¶
func NewCreatePolicyNoContent() *CreatePolicyNoContent
NewCreatePolicyNoContent creates a CreatePolicyNoContent with default headers values
func (*CreatePolicyNoContent) Code ¶
func (o *CreatePolicyNoContent) Code() int
Code gets the status code for the create policy no content response
func (*CreatePolicyNoContent) Error ¶
func (o *CreatePolicyNoContent) Error() string
func (*CreatePolicyNoContent) GetPayload ¶
func (o *CreatePolicyNoContent) GetPayload() interface{}
func (*CreatePolicyNoContent) IsClientError ¶
func (o *CreatePolicyNoContent) IsClientError() bool
IsClientError returns true when this create policy no content response has a 4xx status code
func (*CreatePolicyNoContent) IsCode ¶
func (o *CreatePolicyNoContent) IsCode(code int) bool
IsCode returns true when this create policy no content response a status code equal to that given
func (*CreatePolicyNoContent) IsRedirect ¶
func (o *CreatePolicyNoContent) IsRedirect() bool
IsRedirect returns true when this create policy no content response has a 3xx status code
func (*CreatePolicyNoContent) IsServerError ¶
func (o *CreatePolicyNoContent) IsServerError() bool
IsServerError returns true when this create policy no content response has a 5xx status code
func (*CreatePolicyNoContent) IsSuccess ¶
func (o *CreatePolicyNoContent) IsSuccess() bool
IsSuccess returns true when this create policy no content response has a 2xx status code
func (*CreatePolicyNoContent) String ¶
func (o *CreatePolicyNoContent) String() string
type CreatePolicyNotFound ¶
type CreatePolicyNotFound struct {
Payload interface{}
}
CreatePolicyNotFound describes a response with status code 404, with default header values.
Resource does not exist.
func NewCreatePolicyNotFound ¶
func NewCreatePolicyNotFound() *CreatePolicyNotFound
NewCreatePolicyNotFound creates a CreatePolicyNotFound with default headers values
func (*CreatePolicyNotFound) Code ¶
func (o *CreatePolicyNotFound) Code() int
Code gets the status code for the create policy not found response
func (*CreatePolicyNotFound) Error ¶
func (o *CreatePolicyNotFound) Error() string
func (*CreatePolicyNotFound) GetPayload ¶
func (o *CreatePolicyNotFound) GetPayload() interface{}
func (*CreatePolicyNotFound) IsClientError ¶
func (o *CreatePolicyNotFound) IsClientError() bool
IsClientError returns true when this create policy not found response has a 4xx status code
func (*CreatePolicyNotFound) IsCode ¶
func (o *CreatePolicyNotFound) IsCode(code int) bool
IsCode returns true when this create policy not found response a status code equal to that given
func (*CreatePolicyNotFound) IsRedirect ¶
func (o *CreatePolicyNotFound) IsRedirect() bool
IsRedirect returns true when this create policy not found response has a 3xx status code
func (*CreatePolicyNotFound) IsServerError ¶
func (o *CreatePolicyNotFound) IsServerError() bool
IsServerError returns true when this create policy not found response has a 5xx status code
func (*CreatePolicyNotFound) IsSuccess ¶
func (o *CreatePolicyNotFound) IsSuccess() bool
IsSuccess returns true when this create policy not found response has a 2xx status code
func (*CreatePolicyNotFound) String ¶
func (o *CreatePolicyNotFound) String() string
type CreatePolicyOK ¶
type CreatePolicyOK struct {
Payload *service_model.V1Policy
}
CreatePolicyOK describes a response with status code 200, with default header values.
A successful response.
func NewCreatePolicyOK ¶
func NewCreatePolicyOK() *CreatePolicyOK
NewCreatePolicyOK creates a CreatePolicyOK with default headers values
func (*CreatePolicyOK) Code ¶
func (o *CreatePolicyOK) Code() int
Code gets the status code for the create policy o k response
func (*CreatePolicyOK) Error ¶
func (o *CreatePolicyOK) Error() string
func (*CreatePolicyOK) GetPayload ¶
func (o *CreatePolicyOK) GetPayload() *service_model.V1Policy
func (*CreatePolicyOK) IsClientError ¶
func (o *CreatePolicyOK) IsClientError() bool
IsClientError returns true when this create policy o k response has a 4xx status code
func (*CreatePolicyOK) IsCode ¶
func (o *CreatePolicyOK) IsCode(code int) bool
IsCode returns true when this create policy o k response a status code equal to that given
func (*CreatePolicyOK) IsRedirect ¶
func (o *CreatePolicyOK) IsRedirect() bool
IsRedirect returns true when this create policy o k response has a 3xx status code
func (*CreatePolicyOK) IsServerError ¶
func (o *CreatePolicyOK) IsServerError() bool
IsServerError returns true when this create policy o k response has a 5xx status code
func (*CreatePolicyOK) IsSuccess ¶
func (o *CreatePolicyOK) IsSuccess() bool
IsSuccess returns true when this create policy o k response has a 2xx status code
func (*CreatePolicyOK) String ¶
func (o *CreatePolicyOK) String() string
type CreatePolicyParams ¶
type CreatePolicyParams struct { /* Body. Policy body */ Body *service_model.V1Policy /* Owner. Owner of the namespace */ Owner string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
CreatePolicyParams contains all the parameters to send to the API endpoint
for the create policy operation. Typically these are written to a http.Request.
func NewCreatePolicyParams ¶
func NewCreatePolicyParams() *CreatePolicyParams
NewCreatePolicyParams creates a new CreatePolicyParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewCreatePolicyParamsWithContext ¶
func NewCreatePolicyParamsWithContext(ctx context.Context) *CreatePolicyParams
NewCreatePolicyParamsWithContext creates a new CreatePolicyParams object with the ability to set a context for a request.
func NewCreatePolicyParamsWithHTTPClient ¶
func NewCreatePolicyParamsWithHTTPClient(client *http.Client) *CreatePolicyParams
NewCreatePolicyParamsWithHTTPClient creates a new CreatePolicyParams object with the ability to set a custom HTTPClient for a request.
func NewCreatePolicyParamsWithTimeout ¶
func NewCreatePolicyParamsWithTimeout(timeout time.Duration) *CreatePolicyParams
NewCreatePolicyParamsWithTimeout creates a new CreatePolicyParams object with the ability to set a timeout on a request.
func (*CreatePolicyParams) SetBody ¶
func (o *CreatePolicyParams) SetBody(body *service_model.V1Policy)
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) SetOwner ¶
func (o *CreatePolicyParams) SetOwner(owner string)
SetOwner adds the owner 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 *service_model.V1Policy) *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) WithOwner ¶
func (o *CreatePolicyParams) WithOwner(owner string) *CreatePolicyParams
WithOwner adds the owner 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 DeletePolicyDefault ¶
type DeletePolicyDefault struct { Payload *service_model.RuntimeError // contains filtered or unexported fields }
DeletePolicyDefault describes a response with status code -1, with default header values.
An unexpected error response.
func NewDeletePolicyDefault ¶
func NewDeletePolicyDefault(code int) *DeletePolicyDefault
NewDeletePolicyDefault creates a DeletePolicyDefault with default headers values
func (*DeletePolicyDefault) Code ¶
func (o *DeletePolicyDefault) Code() int
Code gets the status code for the delete policy default response
func (*DeletePolicyDefault) Error ¶
func (o *DeletePolicyDefault) Error() string
func (*DeletePolicyDefault) GetPayload ¶
func (o *DeletePolicyDefault) GetPayload() *service_model.RuntimeError
func (*DeletePolicyDefault) IsClientError ¶
func (o *DeletePolicyDefault) IsClientError() bool
IsClientError returns true when this delete policy default response has a 4xx status code
func (*DeletePolicyDefault) IsCode ¶
func (o *DeletePolicyDefault) IsCode(code int) bool
IsCode returns true when this delete policy default response a status code equal to that given
func (*DeletePolicyDefault) IsRedirect ¶
func (o *DeletePolicyDefault) IsRedirect() bool
IsRedirect returns true when this delete policy default response has a 3xx status code
func (*DeletePolicyDefault) IsServerError ¶
func (o *DeletePolicyDefault) IsServerError() bool
IsServerError returns true when this delete policy default response has a 5xx status code
func (*DeletePolicyDefault) IsSuccess ¶
func (o *DeletePolicyDefault) IsSuccess() bool
IsSuccess returns true when this delete policy default response has a 2xx status code
func (*DeletePolicyDefault) String ¶
func (o *DeletePolicyDefault) String() string
type DeletePolicyForbidden ¶
type DeletePolicyForbidden struct {
Payload interface{}
}
DeletePolicyForbidden describes a response with status code 403, with default header values.
You don't have permission to access the resource.
func NewDeletePolicyForbidden ¶
func NewDeletePolicyForbidden() *DeletePolicyForbidden
NewDeletePolicyForbidden creates a DeletePolicyForbidden with default headers values
func (*DeletePolicyForbidden) Code ¶
func (o *DeletePolicyForbidden) Code() int
Code gets the status code for the delete policy forbidden response
func (*DeletePolicyForbidden) Error ¶
func (o *DeletePolicyForbidden) Error() string
func (*DeletePolicyForbidden) GetPayload ¶
func (o *DeletePolicyForbidden) GetPayload() interface{}
func (*DeletePolicyForbidden) IsClientError ¶
func (o *DeletePolicyForbidden) IsClientError() bool
IsClientError returns true when this delete policy forbidden response has a 4xx status code
func (*DeletePolicyForbidden) IsCode ¶
func (o *DeletePolicyForbidden) IsCode(code int) bool
IsCode returns true when this delete policy forbidden response a status code equal to that given
func (*DeletePolicyForbidden) IsRedirect ¶
func (o *DeletePolicyForbidden) IsRedirect() bool
IsRedirect returns true when this delete policy forbidden response has a 3xx status code
func (*DeletePolicyForbidden) IsServerError ¶
func (o *DeletePolicyForbidden) IsServerError() bool
IsServerError returns true when this delete policy forbidden response has a 5xx status code
func (*DeletePolicyForbidden) IsSuccess ¶
func (o *DeletePolicyForbidden) IsSuccess() bool
IsSuccess returns true when this delete policy forbidden response has a 2xx status code
func (*DeletePolicyForbidden) String ¶
func (o *DeletePolicyForbidden) String() string
type DeletePolicyNoContent ¶
type DeletePolicyNoContent struct {
Payload interface{}
}
DeletePolicyNoContent describes a response with status code 204, with default header values.
No content.
func NewDeletePolicyNoContent ¶
func NewDeletePolicyNoContent() *DeletePolicyNoContent
NewDeletePolicyNoContent creates a DeletePolicyNoContent with default headers values
func (*DeletePolicyNoContent) Code ¶
func (o *DeletePolicyNoContent) Code() int
Code gets the status code for the delete policy no content response
func (*DeletePolicyNoContent) Error ¶
func (o *DeletePolicyNoContent) Error() string
func (*DeletePolicyNoContent) GetPayload ¶
func (o *DeletePolicyNoContent) GetPayload() interface{}
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 ¶
type DeletePolicyNotFound struct {
Payload interface{}
}
DeletePolicyNotFound describes a response with status code 404, with default header values.
Resource does not exist.
func NewDeletePolicyNotFound ¶
func NewDeletePolicyNotFound() *DeletePolicyNotFound
NewDeletePolicyNotFound creates a DeletePolicyNotFound with default headers values
func (*DeletePolicyNotFound) Code ¶
func (o *DeletePolicyNotFound) Code() int
Code gets the status code for the delete policy not found response
func (*DeletePolicyNotFound) Error ¶
func (o *DeletePolicyNotFound) Error() string
func (*DeletePolicyNotFound) GetPayload ¶
func (o *DeletePolicyNotFound) GetPayload() interface{}
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 { }
DeletePolicyOK describes a response with status code 200, with default header values.
A successful response.
func NewDeletePolicyOK ¶
func NewDeletePolicyOK() *DeletePolicyOK
NewDeletePolicyOK creates a DeletePolicyOK with default headers values
func (*DeletePolicyOK) Code ¶
func (o *DeletePolicyOK) Code() int
Code gets the status code for the delete policy o k response
func (*DeletePolicyOK) Error ¶
func (o *DeletePolicyOK) Error() string
func (*DeletePolicyOK) 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 { /* Entity. Entity: project name, hub name, registry name, ... */ Entity *string /* Owner. Owner of the namespace */ Owner string /* UUID. Uuid identifier of the sub-entity */ UUID 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) SetEntity ¶
func (o *DeletePolicyParams) SetEntity(entity *string)
SetEntity adds the entity 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) SetOwner ¶
func (o *DeletePolicyParams) SetOwner(owner string)
SetOwner adds the owner 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) SetUUID ¶
func (o *DeletePolicyParams) SetUUID(uuid string)
SetUUID adds the uuid 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) WithEntity ¶
func (o *DeletePolicyParams) WithEntity(entity *string) *DeletePolicyParams
WithEntity adds the entity 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) WithOwner ¶
func (o *DeletePolicyParams) WithOwner(owner string) *DeletePolicyParams
WithOwner adds the owner 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) WithUUID ¶
func (o *DeletePolicyParams) WithUUID(uuid string) *DeletePolicyParams
WithUUID adds the uuid 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 GetPolicyDefault ¶
type GetPolicyDefault struct { Payload *service_model.RuntimeError // contains filtered or unexported fields }
GetPolicyDefault describes a response with status code -1, with default header values.
An unexpected error response.
func NewGetPolicyDefault ¶
func NewGetPolicyDefault(code int) *GetPolicyDefault
NewGetPolicyDefault creates a GetPolicyDefault with default headers values
func (*GetPolicyDefault) Code ¶
func (o *GetPolicyDefault) Code() int
Code gets the status code for the get policy default response
func (*GetPolicyDefault) Error ¶
func (o *GetPolicyDefault) Error() string
func (*GetPolicyDefault) GetPayload ¶
func (o *GetPolicyDefault) GetPayload() *service_model.RuntimeError
func (*GetPolicyDefault) IsClientError ¶
func (o *GetPolicyDefault) IsClientError() bool
IsClientError returns true when this get policy default response has a 4xx status code
func (*GetPolicyDefault) IsCode ¶
func (o *GetPolicyDefault) IsCode(code int) bool
IsCode returns true when this get policy default response a status code equal to that given
func (*GetPolicyDefault) IsRedirect ¶
func (o *GetPolicyDefault) IsRedirect() bool
IsRedirect returns true when this get policy default response has a 3xx status code
func (*GetPolicyDefault) IsServerError ¶
func (o *GetPolicyDefault) IsServerError() bool
IsServerError returns true when this get policy default response has a 5xx status code
func (*GetPolicyDefault) IsSuccess ¶
func (o *GetPolicyDefault) IsSuccess() bool
IsSuccess returns true when this get policy default response has a 2xx status code
func (*GetPolicyDefault) String ¶
func (o *GetPolicyDefault) String() string
type GetPolicyForbidden ¶
type GetPolicyForbidden struct {
Payload interface{}
}
GetPolicyForbidden describes a response with status code 403, with default header values.
You don't have permission to access the resource.
func NewGetPolicyForbidden ¶
func NewGetPolicyForbidden() *GetPolicyForbidden
NewGetPolicyForbidden creates a GetPolicyForbidden with default headers values
func (*GetPolicyForbidden) Code ¶
func (o *GetPolicyForbidden) Code() int
Code gets the status code for the get policy forbidden response
func (*GetPolicyForbidden) Error ¶
func (o *GetPolicyForbidden) Error() string
func (*GetPolicyForbidden) GetPayload ¶
func (o *GetPolicyForbidden) GetPayload() interface{}
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 GetPolicyNoContent ¶
type GetPolicyNoContent struct {
Payload interface{}
}
GetPolicyNoContent describes a response with status code 204, with default header values.
No content.
func NewGetPolicyNoContent ¶
func NewGetPolicyNoContent() *GetPolicyNoContent
NewGetPolicyNoContent creates a GetPolicyNoContent with default headers values
func (*GetPolicyNoContent) Code ¶
func (o *GetPolicyNoContent) Code() int
Code gets the status code for the get policy no content response
func (*GetPolicyNoContent) Error ¶
func (o *GetPolicyNoContent) Error() string
func (*GetPolicyNoContent) GetPayload ¶
func (o *GetPolicyNoContent) GetPayload() interface{}
func (*GetPolicyNoContent) IsClientError ¶
func (o *GetPolicyNoContent) IsClientError() bool
IsClientError returns true when this get policy no content response has a 4xx status code
func (*GetPolicyNoContent) IsCode ¶
func (o *GetPolicyNoContent) IsCode(code int) bool
IsCode returns true when this get policy no content response a status code equal to that given
func (*GetPolicyNoContent) IsRedirect ¶
func (o *GetPolicyNoContent) IsRedirect() bool
IsRedirect returns true when this get policy no content response has a 3xx status code
func (*GetPolicyNoContent) IsServerError ¶
func (o *GetPolicyNoContent) IsServerError() bool
IsServerError returns true when this get policy no content response has a 5xx status code
func (*GetPolicyNoContent) IsSuccess ¶
func (o *GetPolicyNoContent) IsSuccess() bool
IsSuccess returns true when this get policy no content response has a 2xx status code
func (*GetPolicyNoContent) String ¶
func (o *GetPolicyNoContent) String() string
type GetPolicyNotFound ¶
type GetPolicyNotFound struct {
Payload interface{}
}
GetPolicyNotFound describes a response with status code 404, with default header values.
Resource does not exist.
func NewGetPolicyNotFound ¶
func NewGetPolicyNotFound() *GetPolicyNotFound
NewGetPolicyNotFound creates a GetPolicyNotFound with default headers values
func (*GetPolicyNotFound) Code ¶
func (o *GetPolicyNotFound) Code() int
Code gets the status code for the get policy not found response
func (*GetPolicyNotFound) Error ¶
func (o *GetPolicyNotFound) Error() string
func (*GetPolicyNotFound) GetPayload ¶
func (o *GetPolicyNotFound) GetPayload() interface{}
func (*GetPolicyNotFound) IsClientError ¶
func (o *GetPolicyNotFound) IsClientError() bool
IsClientError returns true when this get policy not found response has a 4xx status code
func (*GetPolicyNotFound) IsCode ¶
func (o *GetPolicyNotFound) IsCode(code int) bool
IsCode returns true when this get policy not found response a status code equal to that given
func (*GetPolicyNotFound) IsRedirect ¶
func (o *GetPolicyNotFound) IsRedirect() bool
IsRedirect returns true when this get policy not found response has a 3xx status code
func (*GetPolicyNotFound) IsServerError ¶
func (o *GetPolicyNotFound) IsServerError() bool
IsServerError returns true when this get policy not found response has a 5xx status code
func (*GetPolicyNotFound) IsSuccess ¶
func (o *GetPolicyNotFound) IsSuccess() bool
IsSuccess returns true when this get policy not found response has a 2xx status code
func (*GetPolicyNotFound) String ¶
func (o *GetPolicyNotFound) String() string
type GetPolicyOK ¶
type GetPolicyOK struct {
Payload *service_model.V1Policy
}
GetPolicyOK describes a response with status code 200, with default header values.
A successful response.
func NewGetPolicyOK ¶
func NewGetPolicyOK() *GetPolicyOK
NewGetPolicyOK creates a GetPolicyOK with default headers values
func (*GetPolicyOK) Code ¶
func (o *GetPolicyOK) Code() int
Code gets the status code for the get policy o k response
func (*GetPolicyOK) Error ¶
func (o *GetPolicyOK) Error() string
func (*GetPolicyOK) GetPayload ¶
func (o *GetPolicyOK) GetPayload() *service_model.V1Policy
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 { /* Entity. Entity: project name, hub name, registry name, ... */ Entity *string /* Owner. Owner of the namespace */ Owner string /* UUID. Uuid identifier of the sub-entity */ UUID 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) SetEntity ¶
func (o *GetPolicyParams) SetEntity(entity *string)
SetEntity adds the entity to the get policy params
func (*GetPolicyParams) SetHTTPClient ¶
func (o *GetPolicyParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get policy params
func (*GetPolicyParams) SetOwner ¶
func (o *GetPolicyParams) SetOwner(owner string)
SetOwner adds the owner 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) SetUUID ¶
func (o *GetPolicyParams) SetUUID(uuid string)
SetUUID adds the uuid 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) WithEntity ¶
func (o *GetPolicyParams) WithEntity(entity *string) *GetPolicyParams
WithEntity adds the entity to the get policy params
func (*GetPolicyParams) WithHTTPClient ¶
func (o *GetPolicyParams) WithHTTPClient(client *http.Client) *GetPolicyParams
WithHTTPClient adds the HTTPClient to the get policy params
func (*GetPolicyParams) WithOwner ¶
func (o *GetPolicyParams) WithOwner(owner string) *GetPolicyParams
WithOwner adds the owner 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) WithUUID ¶
func (o *GetPolicyParams) WithUUID(uuid string) *GetPolicyParams
WithUUID adds the uuid 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 ListPoliciesDefault ¶
type ListPoliciesDefault struct { Payload *service_model.RuntimeError // contains filtered or unexported fields }
ListPoliciesDefault describes a response with status code -1, with default header values.
An unexpected error response.
func NewListPoliciesDefault ¶
func NewListPoliciesDefault(code int) *ListPoliciesDefault
NewListPoliciesDefault creates a ListPoliciesDefault with default headers values
func (*ListPoliciesDefault) Code ¶
func (o *ListPoliciesDefault) Code() int
Code gets the status code for the list policies default response
func (*ListPoliciesDefault) Error ¶
func (o *ListPoliciesDefault) Error() string
func (*ListPoliciesDefault) GetPayload ¶
func (o *ListPoliciesDefault) GetPayload() *service_model.RuntimeError
func (*ListPoliciesDefault) IsClientError ¶
func (o *ListPoliciesDefault) IsClientError() bool
IsClientError returns true when this list policies default response has a 4xx status code
func (*ListPoliciesDefault) IsCode ¶
func (o *ListPoliciesDefault) IsCode(code int) bool
IsCode returns true when this list policies default response a status code equal to that given
func (*ListPoliciesDefault) IsRedirect ¶
func (o *ListPoliciesDefault) IsRedirect() bool
IsRedirect returns true when this list policies default response has a 3xx status code
func (*ListPoliciesDefault) IsServerError ¶
func (o *ListPoliciesDefault) IsServerError() bool
IsServerError returns true when this list policies default response has a 5xx status code
func (*ListPoliciesDefault) IsSuccess ¶
func (o *ListPoliciesDefault) IsSuccess() bool
IsSuccess returns true when this list policies default response has a 2xx status code
func (*ListPoliciesDefault) String ¶
func (o *ListPoliciesDefault) String() string
type ListPoliciesForbidden ¶
type ListPoliciesForbidden struct {
Payload interface{}
}
ListPoliciesForbidden describes a response with status code 403, with default header values.
You don't have permission to access the resource.
func NewListPoliciesForbidden ¶
func NewListPoliciesForbidden() *ListPoliciesForbidden
NewListPoliciesForbidden creates a ListPoliciesForbidden with default headers values
func (*ListPoliciesForbidden) Code ¶
func (o *ListPoliciesForbidden) Code() int
Code gets the status code for the list policies forbidden response
func (*ListPoliciesForbidden) Error ¶
func (o *ListPoliciesForbidden) Error() string
func (*ListPoliciesForbidden) GetPayload ¶
func (o *ListPoliciesForbidden) GetPayload() interface{}
func (*ListPoliciesForbidden) IsClientError ¶
func (o *ListPoliciesForbidden) IsClientError() bool
IsClientError returns true when this list policies forbidden response has a 4xx status code
func (*ListPoliciesForbidden) IsCode ¶
func (o *ListPoliciesForbidden) IsCode(code int) bool
IsCode returns true when this list policies forbidden response a status code equal to that given
func (*ListPoliciesForbidden) IsRedirect ¶
func (o *ListPoliciesForbidden) IsRedirect() bool
IsRedirect returns true when this list policies forbidden response has a 3xx status code
func (*ListPoliciesForbidden) IsServerError ¶
func (o *ListPoliciesForbidden) IsServerError() bool
IsServerError returns true when this list policies forbidden response has a 5xx status code
func (*ListPoliciesForbidden) IsSuccess ¶
func (o *ListPoliciesForbidden) IsSuccess() bool
IsSuccess returns true when this list policies forbidden response has a 2xx status code
func (*ListPoliciesForbidden) String ¶
func (o *ListPoliciesForbidden) String() string
type ListPoliciesNoContent ¶
type ListPoliciesNoContent struct {
Payload interface{}
}
ListPoliciesNoContent describes a response with status code 204, with default header values.
No content.
func NewListPoliciesNoContent ¶
func NewListPoliciesNoContent() *ListPoliciesNoContent
NewListPoliciesNoContent creates a ListPoliciesNoContent with default headers values
func (*ListPoliciesNoContent) Code ¶
func (o *ListPoliciesNoContent) Code() int
Code gets the status code for the list policies no content response
func (*ListPoliciesNoContent) Error ¶
func (o *ListPoliciesNoContent) Error() string
func (*ListPoliciesNoContent) GetPayload ¶
func (o *ListPoliciesNoContent) GetPayload() interface{}
func (*ListPoliciesNoContent) IsClientError ¶
func (o *ListPoliciesNoContent) IsClientError() bool
IsClientError returns true when this list policies no content response has a 4xx status code
func (*ListPoliciesNoContent) IsCode ¶
func (o *ListPoliciesNoContent) IsCode(code int) bool
IsCode returns true when this list policies no content response a status code equal to that given
func (*ListPoliciesNoContent) IsRedirect ¶
func (o *ListPoliciesNoContent) IsRedirect() bool
IsRedirect returns true when this list policies no content response has a 3xx status code
func (*ListPoliciesNoContent) IsServerError ¶
func (o *ListPoliciesNoContent) IsServerError() bool
IsServerError returns true when this list policies no content response has a 5xx status code
func (*ListPoliciesNoContent) IsSuccess ¶
func (o *ListPoliciesNoContent) IsSuccess() bool
IsSuccess returns true when this list policies no content response has a 2xx status code
func (*ListPoliciesNoContent) String ¶
func (o *ListPoliciesNoContent) String() string
type ListPoliciesNotFound ¶
type ListPoliciesNotFound struct {
Payload interface{}
}
ListPoliciesNotFound describes a response with status code 404, with default header values.
Resource does not exist.
func NewListPoliciesNotFound ¶
func NewListPoliciesNotFound() *ListPoliciesNotFound
NewListPoliciesNotFound creates a ListPoliciesNotFound with default headers values
func (*ListPoliciesNotFound) Code ¶
func (o *ListPoliciesNotFound) Code() int
Code gets the status code for the list policies not found response
func (*ListPoliciesNotFound) Error ¶
func (o *ListPoliciesNotFound) Error() string
func (*ListPoliciesNotFound) GetPayload ¶
func (o *ListPoliciesNotFound) GetPayload() interface{}
func (*ListPoliciesNotFound) IsClientError ¶
func (o *ListPoliciesNotFound) IsClientError() bool
IsClientError returns true when this list policies not found response has a 4xx status code
func (*ListPoliciesNotFound) IsCode ¶
func (o *ListPoliciesNotFound) IsCode(code int) bool
IsCode returns true when this list policies not found response a status code equal to that given
func (*ListPoliciesNotFound) IsRedirect ¶
func (o *ListPoliciesNotFound) IsRedirect() bool
IsRedirect returns true when this list policies not found response has a 3xx status code
func (*ListPoliciesNotFound) IsServerError ¶
func (o *ListPoliciesNotFound) IsServerError() bool
IsServerError returns true when this list policies not found response has a 5xx status code
func (*ListPoliciesNotFound) IsSuccess ¶
func (o *ListPoliciesNotFound) IsSuccess() bool
IsSuccess returns true when this list policies not found response has a 2xx status code
func (*ListPoliciesNotFound) String ¶
func (o *ListPoliciesNotFound) String() string
type ListPoliciesOK ¶
type ListPoliciesOK struct {
Payload *service_model.V1ListPoliciesResponse
}
ListPoliciesOK describes a response with status code 200, with default header values.
A successful response.
func NewListPoliciesOK ¶
func NewListPoliciesOK() *ListPoliciesOK
NewListPoliciesOK creates a ListPoliciesOK with default headers values
func (*ListPoliciesOK) Code ¶
func (o *ListPoliciesOK) Code() int
Code gets the status code for the list policies o k response
func (*ListPoliciesOK) Error ¶
func (o *ListPoliciesOK) Error() string
func (*ListPoliciesOK) GetPayload ¶
func (o *ListPoliciesOK) GetPayload() *service_model.V1ListPoliciesResponse
func (*ListPoliciesOK) IsClientError ¶
func (o *ListPoliciesOK) IsClientError() bool
IsClientError returns true when this list policies o k response has a 4xx status code
func (*ListPoliciesOK) IsCode ¶
func (o *ListPoliciesOK) IsCode(code int) bool
IsCode returns true when this list policies o k response a status code equal to that given
func (*ListPoliciesOK) IsRedirect ¶
func (o *ListPoliciesOK) IsRedirect() bool
IsRedirect returns true when this list policies o k response has a 3xx status code
func (*ListPoliciesOK) IsServerError ¶
func (o *ListPoliciesOK) IsServerError() bool
IsServerError returns true when this list policies o k response has a 5xx status code
func (*ListPoliciesOK) IsSuccess ¶
func (o *ListPoliciesOK) IsSuccess() bool
IsSuccess returns true when this list policies o k response has a 2xx status code
func (*ListPoliciesOK) String ¶
func (o *ListPoliciesOK) String() string
type ListPoliciesParams ¶
type ListPoliciesParams struct { /* Bookmarks. Filter by bookmarks. */ Bookmarks *bool /* Limit. Limit size. Format: int32 */ Limit *int32 /* Mode. Mode of the search. */ Mode *string /* NoPage. No pagination. */ NoPage *bool /* Offset. Pagination offset. Format: int32 */ Offset *int32 /* Owner. Owner of the namespace */ Owner string /* Query. Query filter the search. */ Query *string /* Sort. Sort to order the search. */ Sort *string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
ListPoliciesParams contains all the parameters to send to the API endpoint
for the list policies operation. Typically these are written to a http.Request.
func NewListPoliciesParams ¶
func NewListPoliciesParams() *ListPoliciesParams
NewListPoliciesParams creates a new ListPoliciesParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewListPoliciesParamsWithContext ¶
func NewListPoliciesParamsWithContext(ctx context.Context) *ListPoliciesParams
NewListPoliciesParamsWithContext creates a new ListPoliciesParams object with the ability to set a context for a request.
func NewListPoliciesParamsWithHTTPClient ¶
func NewListPoliciesParamsWithHTTPClient(client *http.Client) *ListPoliciesParams
NewListPoliciesParamsWithHTTPClient creates a new ListPoliciesParams object with the ability to set a custom HTTPClient for a request.
func NewListPoliciesParamsWithTimeout ¶
func NewListPoliciesParamsWithTimeout(timeout time.Duration) *ListPoliciesParams
NewListPoliciesParamsWithTimeout creates a new ListPoliciesParams object with the ability to set a timeout on a request.
func (*ListPoliciesParams) SetBookmarks ¶
func (o *ListPoliciesParams) SetBookmarks(bookmarks *bool)
SetBookmarks adds the bookmarks to the list policies params
func (*ListPoliciesParams) SetContext ¶
func (o *ListPoliciesParams) SetContext(ctx context.Context)
SetContext adds the context to the list policies params
func (*ListPoliciesParams) SetDefaults ¶
func (o *ListPoliciesParams) SetDefaults()
SetDefaults hydrates default values in the list policies params (not the query body).
All values with no default are reset to their zero value.
func (*ListPoliciesParams) SetHTTPClient ¶
func (o *ListPoliciesParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the list policies params
func (*ListPoliciesParams) SetLimit ¶
func (o *ListPoliciesParams) SetLimit(limit *int32)
SetLimit adds the limit to the list policies params
func (*ListPoliciesParams) SetMode ¶
func (o *ListPoliciesParams) SetMode(mode *string)
SetMode adds the mode to the list policies params
func (*ListPoliciesParams) SetNoPage ¶
func (o *ListPoliciesParams) SetNoPage(noPage *bool)
SetNoPage adds the noPage to the list policies params
func (*ListPoliciesParams) SetOffset ¶
func (o *ListPoliciesParams) SetOffset(offset *int32)
SetOffset adds the offset to the list policies params
func (*ListPoliciesParams) SetOwner ¶
func (o *ListPoliciesParams) SetOwner(owner string)
SetOwner adds the owner to the list policies params
func (*ListPoliciesParams) SetQuery ¶
func (o *ListPoliciesParams) SetQuery(query *string)
SetQuery adds the query to the list policies params
func (*ListPoliciesParams) SetSort ¶
func (o *ListPoliciesParams) SetSort(sort *string)
SetSort adds the sort to the list policies params
func (*ListPoliciesParams) SetTimeout ¶
func (o *ListPoliciesParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the list policies params
func (*ListPoliciesParams) WithBookmarks ¶
func (o *ListPoliciesParams) WithBookmarks(bookmarks *bool) *ListPoliciesParams
WithBookmarks adds the bookmarks to the list policies params
func (*ListPoliciesParams) WithContext ¶
func (o *ListPoliciesParams) WithContext(ctx context.Context) *ListPoliciesParams
WithContext adds the context to the list policies params
func (*ListPoliciesParams) WithDefaults ¶
func (o *ListPoliciesParams) WithDefaults() *ListPoliciesParams
WithDefaults hydrates default values in the list policies params (not the query body).
All values with no default are reset to their zero value.
func (*ListPoliciesParams) WithHTTPClient ¶
func (o *ListPoliciesParams) WithHTTPClient(client *http.Client) *ListPoliciesParams
WithHTTPClient adds the HTTPClient to the list policies params
func (*ListPoliciesParams) WithLimit ¶
func (o *ListPoliciesParams) WithLimit(limit *int32) *ListPoliciesParams
WithLimit adds the limit to the list policies params
func (*ListPoliciesParams) WithMode ¶
func (o *ListPoliciesParams) WithMode(mode *string) *ListPoliciesParams
WithMode adds the mode to the list policies params
func (*ListPoliciesParams) WithNoPage ¶
func (o *ListPoliciesParams) WithNoPage(noPage *bool) *ListPoliciesParams
WithNoPage adds the noPage to the list policies params
func (*ListPoliciesParams) WithOffset ¶
func (o *ListPoliciesParams) WithOffset(offset *int32) *ListPoliciesParams
WithOffset adds the offset to the list policies params
func (*ListPoliciesParams) WithOwner ¶
func (o *ListPoliciesParams) WithOwner(owner string) *ListPoliciesParams
WithOwner adds the owner to the list policies params
func (*ListPoliciesParams) WithQuery ¶
func (o *ListPoliciesParams) WithQuery(query *string) *ListPoliciesParams
WithQuery adds the query to the list policies params
func (*ListPoliciesParams) WithSort ¶
func (o *ListPoliciesParams) WithSort(sort *string) *ListPoliciesParams
WithSort adds the sort to the list policies params
func (*ListPoliciesParams) WithTimeout ¶
func (o *ListPoliciesParams) WithTimeout(timeout time.Duration) *ListPoliciesParams
WithTimeout adds the timeout to the list policies params
func (*ListPoliciesParams) WriteToRequest ¶
func (o *ListPoliciesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type ListPoliciesReader ¶
type ListPoliciesReader struct {
// contains filtered or unexported fields
}
ListPoliciesReader is a Reader for the ListPolicies structure.
func (*ListPoliciesReader) ReadResponse ¶
func (o *ListPoliciesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type ListPolicyNamesDefault ¶
type ListPolicyNamesDefault struct { Payload *service_model.RuntimeError // contains filtered or unexported fields }
ListPolicyNamesDefault describes a response with status code -1, with default header values.
An unexpected error response.
func NewListPolicyNamesDefault ¶
func NewListPolicyNamesDefault(code int) *ListPolicyNamesDefault
NewListPolicyNamesDefault creates a ListPolicyNamesDefault with default headers values
func (*ListPolicyNamesDefault) Code ¶
func (o *ListPolicyNamesDefault) Code() int
Code gets the status code for the list policy names default response
func (*ListPolicyNamesDefault) Error ¶
func (o *ListPolicyNamesDefault) Error() string
func (*ListPolicyNamesDefault) GetPayload ¶
func (o *ListPolicyNamesDefault) GetPayload() *service_model.RuntimeError
func (*ListPolicyNamesDefault) IsClientError ¶
func (o *ListPolicyNamesDefault) IsClientError() bool
IsClientError returns true when this list policy names default response has a 4xx status code
func (*ListPolicyNamesDefault) IsCode ¶
func (o *ListPolicyNamesDefault) IsCode(code int) bool
IsCode returns true when this list policy names default response a status code equal to that given
func (*ListPolicyNamesDefault) IsRedirect ¶
func (o *ListPolicyNamesDefault) IsRedirect() bool
IsRedirect returns true when this list policy names default response has a 3xx status code
func (*ListPolicyNamesDefault) IsServerError ¶
func (o *ListPolicyNamesDefault) IsServerError() bool
IsServerError returns true when this list policy names default response has a 5xx status code
func (*ListPolicyNamesDefault) IsSuccess ¶
func (o *ListPolicyNamesDefault) IsSuccess() bool
IsSuccess returns true when this list policy names default response has a 2xx status code
func (*ListPolicyNamesDefault) String ¶
func (o *ListPolicyNamesDefault) String() string
type ListPolicyNamesForbidden ¶
type ListPolicyNamesForbidden struct {
Payload interface{}
}
ListPolicyNamesForbidden describes a response with status code 403, with default header values.
You don't have permission to access the resource.
func NewListPolicyNamesForbidden ¶
func NewListPolicyNamesForbidden() *ListPolicyNamesForbidden
NewListPolicyNamesForbidden creates a ListPolicyNamesForbidden with default headers values
func (*ListPolicyNamesForbidden) Code ¶
func (o *ListPolicyNamesForbidden) Code() int
Code gets the status code for the list policy names forbidden response
func (*ListPolicyNamesForbidden) Error ¶
func (o *ListPolicyNamesForbidden) Error() string
func (*ListPolicyNamesForbidden) GetPayload ¶
func (o *ListPolicyNamesForbidden) GetPayload() interface{}
func (*ListPolicyNamesForbidden) IsClientError ¶
func (o *ListPolicyNamesForbidden) IsClientError() bool
IsClientError returns true when this list policy names forbidden response has a 4xx status code
func (*ListPolicyNamesForbidden) IsCode ¶
func (o *ListPolicyNamesForbidden) IsCode(code int) bool
IsCode returns true when this list policy names forbidden response a status code equal to that given
func (*ListPolicyNamesForbidden) IsRedirect ¶
func (o *ListPolicyNamesForbidden) IsRedirect() bool
IsRedirect returns true when this list policy names forbidden response has a 3xx status code
func (*ListPolicyNamesForbidden) IsServerError ¶
func (o *ListPolicyNamesForbidden) IsServerError() bool
IsServerError returns true when this list policy names forbidden response has a 5xx status code
func (*ListPolicyNamesForbidden) IsSuccess ¶
func (o *ListPolicyNamesForbidden) IsSuccess() bool
IsSuccess returns true when this list policy names forbidden response has a 2xx status code
func (*ListPolicyNamesForbidden) String ¶
func (o *ListPolicyNamesForbidden) String() string
type ListPolicyNamesNoContent ¶
type ListPolicyNamesNoContent struct {
Payload interface{}
}
ListPolicyNamesNoContent describes a response with status code 204, with default header values.
No content.
func NewListPolicyNamesNoContent ¶
func NewListPolicyNamesNoContent() *ListPolicyNamesNoContent
NewListPolicyNamesNoContent creates a ListPolicyNamesNoContent with default headers values
func (*ListPolicyNamesNoContent) Code ¶
func (o *ListPolicyNamesNoContent) Code() int
Code gets the status code for the list policy names no content response
func (*ListPolicyNamesNoContent) Error ¶
func (o *ListPolicyNamesNoContent) Error() string
func (*ListPolicyNamesNoContent) GetPayload ¶
func (o *ListPolicyNamesNoContent) GetPayload() interface{}
func (*ListPolicyNamesNoContent) IsClientError ¶
func (o *ListPolicyNamesNoContent) IsClientError() bool
IsClientError returns true when this list policy names no content response has a 4xx status code
func (*ListPolicyNamesNoContent) IsCode ¶
func (o *ListPolicyNamesNoContent) IsCode(code int) bool
IsCode returns true when this list policy names no content response a status code equal to that given
func (*ListPolicyNamesNoContent) IsRedirect ¶
func (o *ListPolicyNamesNoContent) IsRedirect() bool
IsRedirect returns true when this list policy names no content response has a 3xx status code
func (*ListPolicyNamesNoContent) IsServerError ¶
func (o *ListPolicyNamesNoContent) IsServerError() bool
IsServerError returns true when this list policy names no content response has a 5xx status code
func (*ListPolicyNamesNoContent) IsSuccess ¶
func (o *ListPolicyNamesNoContent) IsSuccess() bool
IsSuccess returns true when this list policy names no content response has a 2xx status code
func (*ListPolicyNamesNoContent) String ¶
func (o *ListPolicyNamesNoContent) String() string
type ListPolicyNamesNotFound ¶
type ListPolicyNamesNotFound struct {
Payload interface{}
}
ListPolicyNamesNotFound describes a response with status code 404, with default header values.
Resource does not exist.
func NewListPolicyNamesNotFound ¶
func NewListPolicyNamesNotFound() *ListPolicyNamesNotFound
NewListPolicyNamesNotFound creates a ListPolicyNamesNotFound with default headers values
func (*ListPolicyNamesNotFound) Code ¶
func (o *ListPolicyNamesNotFound) Code() int
Code gets the status code for the list policy names not found response
func (*ListPolicyNamesNotFound) Error ¶
func (o *ListPolicyNamesNotFound) Error() string
func (*ListPolicyNamesNotFound) GetPayload ¶
func (o *ListPolicyNamesNotFound) GetPayload() interface{}
func (*ListPolicyNamesNotFound) IsClientError ¶
func (o *ListPolicyNamesNotFound) IsClientError() bool
IsClientError returns true when this list policy names not found response has a 4xx status code
func (*ListPolicyNamesNotFound) IsCode ¶
func (o *ListPolicyNamesNotFound) IsCode(code int) bool
IsCode returns true when this list policy names not found response a status code equal to that given
func (*ListPolicyNamesNotFound) IsRedirect ¶
func (o *ListPolicyNamesNotFound) IsRedirect() bool
IsRedirect returns true when this list policy names not found response has a 3xx status code
func (*ListPolicyNamesNotFound) IsServerError ¶
func (o *ListPolicyNamesNotFound) IsServerError() bool
IsServerError returns true when this list policy names not found response has a 5xx status code
func (*ListPolicyNamesNotFound) IsSuccess ¶
func (o *ListPolicyNamesNotFound) IsSuccess() bool
IsSuccess returns true when this list policy names not found response has a 2xx status code
func (*ListPolicyNamesNotFound) String ¶
func (o *ListPolicyNamesNotFound) String() string
type ListPolicyNamesOK ¶
type ListPolicyNamesOK struct {
Payload *service_model.V1ListPoliciesResponse
}
ListPolicyNamesOK describes a response with status code 200, with default header values.
A successful response.
func NewListPolicyNamesOK ¶
func NewListPolicyNamesOK() *ListPolicyNamesOK
NewListPolicyNamesOK creates a ListPolicyNamesOK with default headers values
func (*ListPolicyNamesOK) Code ¶
func (o *ListPolicyNamesOK) Code() int
Code gets the status code for the list policy names o k response
func (*ListPolicyNamesOK) Error ¶
func (o *ListPolicyNamesOK) Error() string
func (*ListPolicyNamesOK) GetPayload ¶
func (o *ListPolicyNamesOK) GetPayload() *service_model.V1ListPoliciesResponse
func (*ListPolicyNamesOK) IsClientError ¶
func (o *ListPolicyNamesOK) IsClientError() bool
IsClientError returns true when this list policy names o k response has a 4xx status code
func (*ListPolicyNamesOK) IsCode ¶
func (o *ListPolicyNamesOK) IsCode(code int) bool
IsCode returns true when this list policy names o k response a status code equal to that given
func (*ListPolicyNamesOK) IsRedirect ¶
func (o *ListPolicyNamesOK) IsRedirect() bool
IsRedirect returns true when this list policy names o k response has a 3xx status code
func (*ListPolicyNamesOK) IsServerError ¶
func (o *ListPolicyNamesOK) IsServerError() bool
IsServerError returns true when this list policy names o k response has a 5xx status code
func (*ListPolicyNamesOK) IsSuccess ¶
func (o *ListPolicyNamesOK) IsSuccess() bool
IsSuccess returns true when this list policy names o k response has a 2xx status code
func (*ListPolicyNamesOK) String ¶
func (o *ListPolicyNamesOK) String() string
type ListPolicyNamesParams ¶
type ListPolicyNamesParams struct { /* Bookmarks. Filter by bookmarks. */ Bookmarks *bool /* Limit. Limit size. Format: int32 */ Limit *int32 /* Mode. Mode of the search. */ Mode *string /* NoPage. No pagination. */ NoPage *bool /* Offset. Pagination offset. Format: int32 */ Offset *int32 /* Owner. Owner of the namespace */ Owner string /* Query. Query filter the search. */ Query *string /* Sort. Sort to order the search. */ Sort *string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
ListPolicyNamesParams contains all the parameters to send to the API endpoint
for the list policy names operation. Typically these are written to a http.Request.
func NewListPolicyNamesParams ¶
func NewListPolicyNamesParams() *ListPolicyNamesParams
NewListPolicyNamesParams creates a new ListPolicyNamesParams 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 NewListPolicyNamesParamsWithContext ¶
func NewListPolicyNamesParamsWithContext(ctx context.Context) *ListPolicyNamesParams
NewListPolicyNamesParamsWithContext creates a new ListPolicyNamesParams object with the ability to set a context for a request.
func NewListPolicyNamesParamsWithHTTPClient ¶
func NewListPolicyNamesParamsWithHTTPClient(client *http.Client) *ListPolicyNamesParams
NewListPolicyNamesParamsWithHTTPClient creates a new ListPolicyNamesParams object with the ability to set a custom HTTPClient for a request.
func NewListPolicyNamesParamsWithTimeout ¶
func NewListPolicyNamesParamsWithTimeout(timeout time.Duration) *ListPolicyNamesParams
NewListPolicyNamesParamsWithTimeout creates a new ListPolicyNamesParams object with the ability to set a timeout on a request.
func (*ListPolicyNamesParams) SetBookmarks ¶
func (o *ListPolicyNamesParams) SetBookmarks(bookmarks *bool)
SetBookmarks adds the bookmarks to the list policy names params
func (*ListPolicyNamesParams) SetContext ¶
func (o *ListPolicyNamesParams) SetContext(ctx context.Context)
SetContext adds the context to the list policy names params
func (*ListPolicyNamesParams) SetDefaults ¶
func (o *ListPolicyNamesParams) SetDefaults()
SetDefaults hydrates default values in the list policy names params (not the query body).
All values with no default are reset to their zero value.
func (*ListPolicyNamesParams) SetHTTPClient ¶
func (o *ListPolicyNamesParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the list policy names params
func (*ListPolicyNamesParams) SetLimit ¶
func (o *ListPolicyNamesParams) SetLimit(limit *int32)
SetLimit adds the limit to the list policy names params
func (*ListPolicyNamesParams) SetMode ¶
func (o *ListPolicyNamesParams) SetMode(mode *string)
SetMode adds the mode to the list policy names params
func (*ListPolicyNamesParams) SetNoPage ¶
func (o *ListPolicyNamesParams) SetNoPage(noPage *bool)
SetNoPage adds the noPage to the list policy names params
func (*ListPolicyNamesParams) SetOffset ¶
func (o *ListPolicyNamesParams) SetOffset(offset *int32)
SetOffset adds the offset to the list policy names params
func (*ListPolicyNamesParams) SetOwner ¶
func (o *ListPolicyNamesParams) SetOwner(owner string)
SetOwner adds the owner to the list policy names params
func (*ListPolicyNamesParams) SetQuery ¶
func (o *ListPolicyNamesParams) SetQuery(query *string)
SetQuery adds the query to the list policy names params
func (*ListPolicyNamesParams) SetSort ¶
func (o *ListPolicyNamesParams) SetSort(sort *string)
SetSort adds the sort to the list policy names params
func (*ListPolicyNamesParams) SetTimeout ¶
func (o *ListPolicyNamesParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the list policy names params
func (*ListPolicyNamesParams) WithBookmarks ¶
func (o *ListPolicyNamesParams) WithBookmarks(bookmarks *bool) *ListPolicyNamesParams
WithBookmarks adds the bookmarks to the list policy names params
func (*ListPolicyNamesParams) WithContext ¶
func (o *ListPolicyNamesParams) WithContext(ctx context.Context) *ListPolicyNamesParams
WithContext adds the context to the list policy names params
func (*ListPolicyNamesParams) WithDefaults ¶
func (o *ListPolicyNamesParams) WithDefaults() *ListPolicyNamesParams
WithDefaults hydrates default values in the list policy names params (not the query body).
All values with no default are reset to their zero value.
func (*ListPolicyNamesParams) WithHTTPClient ¶
func (o *ListPolicyNamesParams) WithHTTPClient(client *http.Client) *ListPolicyNamesParams
WithHTTPClient adds the HTTPClient to the list policy names params
func (*ListPolicyNamesParams) WithLimit ¶
func (o *ListPolicyNamesParams) WithLimit(limit *int32) *ListPolicyNamesParams
WithLimit adds the limit to the list policy names params
func (*ListPolicyNamesParams) WithMode ¶
func (o *ListPolicyNamesParams) WithMode(mode *string) *ListPolicyNamesParams
WithMode adds the mode to the list policy names params
func (*ListPolicyNamesParams) WithNoPage ¶
func (o *ListPolicyNamesParams) WithNoPage(noPage *bool) *ListPolicyNamesParams
WithNoPage adds the noPage to the list policy names params
func (*ListPolicyNamesParams) WithOffset ¶
func (o *ListPolicyNamesParams) WithOffset(offset *int32) *ListPolicyNamesParams
WithOffset adds the offset to the list policy names params
func (*ListPolicyNamesParams) WithOwner ¶
func (o *ListPolicyNamesParams) WithOwner(owner string) *ListPolicyNamesParams
WithOwner adds the owner to the list policy names params
func (*ListPolicyNamesParams) WithQuery ¶
func (o *ListPolicyNamesParams) WithQuery(query *string) *ListPolicyNamesParams
WithQuery adds the query to the list policy names params
func (*ListPolicyNamesParams) WithSort ¶
func (o *ListPolicyNamesParams) WithSort(sort *string) *ListPolicyNamesParams
WithSort adds the sort to the list policy names params
func (*ListPolicyNamesParams) WithTimeout ¶
func (o *ListPolicyNamesParams) WithTimeout(timeout time.Duration) *ListPolicyNamesParams
WithTimeout adds the timeout to the list policy names params
func (*ListPolicyNamesParams) WriteToRequest ¶
func (o *ListPolicyNamesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type ListPolicyNamesReader ¶
type ListPolicyNamesReader struct {
// contains filtered or unexported fields
}
ListPolicyNamesReader is a Reader for the ListPolicyNames structure.
func (*ListPolicyNamesReader) ReadResponse ¶
func (o *ListPolicyNamesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type PatchPolicyDefault ¶
type PatchPolicyDefault struct { Payload *service_model.RuntimeError // contains filtered or unexported fields }
PatchPolicyDefault describes a response with status code -1, with default header values.
An unexpected error response.
func NewPatchPolicyDefault ¶
func NewPatchPolicyDefault(code int) *PatchPolicyDefault
NewPatchPolicyDefault creates a PatchPolicyDefault with default headers values
func (*PatchPolicyDefault) Code ¶
func (o *PatchPolicyDefault) Code() int
Code gets the status code for the patch policy default response
func (*PatchPolicyDefault) Error ¶
func (o *PatchPolicyDefault) Error() string
func (*PatchPolicyDefault) GetPayload ¶
func (o *PatchPolicyDefault) GetPayload() *service_model.RuntimeError
func (*PatchPolicyDefault) IsClientError ¶
func (o *PatchPolicyDefault) IsClientError() bool
IsClientError returns true when this patch policy default response has a 4xx status code
func (*PatchPolicyDefault) IsCode ¶
func (o *PatchPolicyDefault) IsCode(code int) bool
IsCode returns true when this patch policy default response a status code equal to that given
func (*PatchPolicyDefault) IsRedirect ¶
func (o *PatchPolicyDefault) IsRedirect() bool
IsRedirect returns true when this patch policy default response has a 3xx status code
func (*PatchPolicyDefault) IsServerError ¶
func (o *PatchPolicyDefault) IsServerError() bool
IsServerError returns true when this patch policy default response has a 5xx status code
func (*PatchPolicyDefault) IsSuccess ¶
func (o *PatchPolicyDefault) IsSuccess() bool
IsSuccess returns true when this patch policy default response has a 2xx status code
func (*PatchPolicyDefault) String ¶
func (o *PatchPolicyDefault) String() string
type PatchPolicyForbidden ¶
type PatchPolicyForbidden struct {
Payload interface{}
}
PatchPolicyForbidden describes a response with status code 403, with default header values.
You don't have permission to access the resource.
func NewPatchPolicyForbidden ¶
func NewPatchPolicyForbidden() *PatchPolicyForbidden
NewPatchPolicyForbidden creates a PatchPolicyForbidden with default headers values
func (*PatchPolicyForbidden) Code ¶
func (o *PatchPolicyForbidden) Code() int
Code gets the status code for the patch policy forbidden response
func (*PatchPolicyForbidden) Error ¶
func (o *PatchPolicyForbidden) Error() string
func (*PatchPolicyForbidden) GetPayload ¶
func (o *PatchPolicyForbidden) GetPayload() interface{}
func (*PatchPolicyForbidden) IsClientError ¶
func (o *PatchPolicyForbidden) IsClientError() bool
IsClientError returns true when this patch policy forbidden response has a 4xx status code
func (*PatchPolicyForbidden) IsCode ¶
func (o *PatchPolicyForbidden) IsCode(code int) bool
IsCode returns true when this patch policy forbidden response a status code equal to that given
func (*PatchPolicyForbidden) IsRedirect ¶
func (o *PatchPolicyForbidden) IsRedirect() bool
IsRedirect returns true when this patch policy forbidden response has a 3xx status code
func (*PatchPolicyForbidden) IsServerError ¶
func (o *PatchPolicyForbidden) IsServerError() bool
IsServerError returns true when this patch policy forbidden response has a 5xx status code
func (*PatchPolicyForbidden) IsSuccess ¶
func (o *PatchPolicyForbidden) IsSuccess() bool
IsSuccess returns true when this patch policy forbidden response has a 2xx status code
func (*PatchPolicyForbidden) String ¶
func (o *PatchPolicyForbidden) String() string
type PatchPolicyNoContent ¶
type PatchPolicyNoContent struct {
Payload interface{}
}
PatchPolicyNoContent describes a response with status code 204, with default header values.
No content.
func NewPatchPolicyNoContent ¶
func NewPatchPolicyNoContent() *PatchPolicyNoContent
NewPatchPolicyNoContent creates a PatchPolicyNoContent with default headers values
func (*PatchPolicyNoContent) Code ¶
func (o *PatchPolicyNoContent) Code() int
Code gets the status code for the patch policy no content response
func (*PatchPolicyNoContent) Error ¶
func (o *PatchPolicyNoContent) Error() string
func (*PatchPolicyNoContent) GetPayload ¶
func (o *PatchPolicyNoContent) GetPayload() interface{}
func (*PatchPolicyNoContent) IsClientError ¶
func (o *PatchPolicyNoContent) IsClientError() bool
IsClientError returns true when this patch policy no content response has a 4xx status code
func (*PatchPolicyNoContent) IsCode ¶
func (o *PatchPolicyNoContent) IsCode(code int) bool
IsCode returns true when this patch policy no content response a status code equal to that given
func (*PatchPolicyNoContent) IsRedirect ¶
func (o *PatchPolicyNoContent) IsRedirect() bool
IsRedirect returns true when this patch policy no content response has a 3xx status code
func (*PatchPolicyNoContent) IsServerError ¶
func (o *PatchPolicyNoContent) IsServerError() bool
IsServerError returns true when this patch policy no content response has a 5xx status code
func (*PatchPolicyNoContent) IsSuccess ¶
func (o *PatchPolicyNoContent) IsSuccess() bool
IsSuccess returns true when this patch policy no content response has a 2xx status code
func (*PatchPolicyNoContent) String ¶
func (o *PatchPolicyNoContent) String() string
type PatchPolicyNotFound ¶
type PatchPolicyNotFound struct {
Payload interface{}
}
PatchPolicyNotFound describes a response with status code 404, with default header values.
Resource does not exist.
func NewPatchPolicyNotFound ¶
func NewPatchPolicyNotFound() *PatchPolicyNotFound
NewPatchPolicyNotFound creates a PatchPolicyNotFound with default headers values
func (*PatchPolicyNotFound) Code ¶
func (o *PatchPolicyNotFound) Code() int
Code gets the status code for the patch policy not found response
func (*PatchPolicyNotFound) Error ¶
func (o *PatchPolicyNotFound) Error() string
func (*PatchPolicyNotFound) GetPayload ¶
func (o *PatchPolicyNotFound) GetPayload() interface{}
func (*PatchPolicyNotFound) IsClientError ¶
func (o *PatchPolicyNotFound) IsClientError() bool
IsClientError returns true when this patch policy not found response has a 4xx status code
func (*PatchPolicyNotFound) IsCode ¶
func (o *PatchPolicyNotFound) IsCode(code int) bool
IsCode returns true when this patch policy not found response a status code equal to that given
func (*PatchPolicyNotFound) IsRedirect ¶
func (o *PatchPolicyNotFound) IsRedirect() bool
IsRedirect returns true when this patch policy not found response has a 3xx status code
func (*PatchPolicyNotFound) IsServerError ¶
func (o *PatchPolicyNotFound) IsServerError() bool
IsServerError returns true when this patch policy not found response has a 5xx status code
func (*PatchPolicyNotFound) IsSuccess ¶
func (o *PatchPolicyNotFound) IsSuccess() bool
IsSuccess returns true when this patch policy not found response has a 2xx status code
func (*PatchPolicyNotFound) String ¶
func (o *PatchPolicyNotFound) String() string
type PatchPolicyOK ¶
type PatchPolicyOK struct {
Payload *service_model.V1Policy
}
PatchPolicyOK describes a response with status code 200, with default header values.
A successful response.
func NewPatchPolicyOK ¶
func NewPatchPolicyOK() *PatchPolicyOK
NewPatchPolicyOK creates a PatchPolicyOK with default headers values
func (*PatchPolicyOK) Code ¶
func (o *PatchPolicyOK) Code() int
Code gets the status code for the patch policy o k response
func (*PatchPolicyOK) Error ¶
func (o *PatchPolicyOK) Error() string
func (*PatchPolicyOK) GetPayload ¶
func (o *PatchPolicyOK) GetPayload() *service_model.V1Policy
func (*PatchPolicyOK) IsClientError ¶
func (o *PatchPolicyOK) IsClientError() bool
IsClientError returns true when this patch policy o k response has a 4xx status code
func (*PatchPolicyOK) IsCode ¶
func (o *PatchPolicyOK) IsCode(code int) bool
IsCode returns true when this patch policy o k response a status code equal to that given
func (*PatchPolicyOK) IsRedirect ¶
func (o *PatchPolicyOK) IsRedirect() bool
IsRedirect returns true when this patch policy o k response has a 3xx status code
func (*PatchPolicyOK) IsServerError ¶
func (o *PatchPolicyOK) IsServerError() bool
IsServerError returns true when this patch policy o k response has a 5xx status code
func (*PatchPolicyOK) IsSuccess ¶
func (o *PatchPolicyOK) IsSuccess() bool
IsSuccess returns true when this patch policy o k response has a 2xx status code
func (*PatchPolicyOK) String ¶
func (o *PatchPolicyOK) String() string
type PatchPolicyParams ¶
type PatchPolicyParams struct { /* Body. Policy body */ Body *service_model.V1Policy /* Owner. Owner of the namespace */ Owner string /* PolicyUUID. UUID */ PolicyUUID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
PatchPolicyParams contains all the parameters to send to the API endpoint
for the patch policy operation. Typically these are written to a http.Request.
func NewPatchPolicyParams ¶
func NewPatchPolicyParams() *PatchPolicyParams
NewPatchPolicyParams creates a new PatchPolicyParams 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 NewPatchPolicyParamsWithContext ¶
func NewPatchPolicyParamsWithContext(ctx context.Context) *PatchPolicyParams
NewPatchPolicyParamsWithContext creates a new PatchPolicyParams object with the ability to set a context for a request.
func NewPatchPolicyParamsWithHTTPClient ¶
func NewPatchPolicyParamsWithHTTPClient(client *http.Client) *PatchPolicyParams
NewPatchPolicyParamsWithHTTPClient creates a new PatchPolicyParams object with the ability to set a custom HTTPClient for a request.
func NewPatchPolicyParamsWithTimeout ¶
func NewPatchPolicyParamsWithTimeout(timeout time.Duration) *PatchPolicyParams
NewPatchPolicyParamsWithTimeout creates a new PatchPolicyParams object with the ability to set a timeout on a request.
func (*PatchPolicyParams) SetBody ¶
func (o *PatchPolicyParams) SetBody(body *service_model.V1Policy)
SetBody adds the body to the patch policy params
func (*PatchPolicyParams) SetContext ¶
func (o *PatchPolicyParams) SetContext(ctx context.Context)
SetContext adds the context to the patch policy params
func (*PatchPolicyParams) SetDefaults ¶
func (o *PatchPolicyParams) SetDefaults()
SetDefaults hydrates default values in the patch policy params (not the query body).
All values with no default are reset to their zero value.
func (*PatchPolicyParams) SetHTTPClient ¶
func (o *PatchPolicyParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the patch policy params
func (*PatchPolicyParams) SetOwner ¶
func (o *PatchPolicyParams) SetOwner(owner string)
SetOwner adds the owner to the patch policy params
func (*PatchPolicyParams) SetPolicyUUID ¶
func (o *PatchPolicyParams) SetPolicyUUID(policyUUID string)
SetPolicyUUID adds the policyUuid to the patch policy params
func (*PatchPolicyParams) SetTimeout ¶
func (o *PatchPolicyParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the patch policy params
func (*PatchPolicyParams) WithBody ¶
func (o *PatchPolicyParams) WithBody(body *service_model.V1Policy) *PatchPolicyParams
WithBody adds the body to the patch policy params
func (*PatchPolicyParams) WithContext ¶
func (o *PatchPolicyParams) WithContext(ctx context.Context) *PatchPolicyParams
WithContext adds the context to the patch policy params
func (*PatchPolicyParams) WithDefaults ¶
func (o *PatchPolicyParams) WithDefaults() *PatchPolicyParams
WithDefaults hydrates default values in the patch policy params (not the query body).
All values with no default are reset to their zero value.
func (*PatchPolicyParams) WithHTTPClient ¶
func (o *PatchPolicyParams) WithHTTPClient(client *http.Client) *PatchPolicyParams
WithHTTPClient adds the HTTPClient to the patch policy params
func (*PatchPolicyParams) WithOwner ¶
func (o *PatchPolicyParams) WithOwner(owner string) *PatchPolicyParams
WithOwner adds the owner to the patch policy params
func (*PatchPolicyParams) WithPolicyUUID ¶
func (o *PatchPolicyParams) WithPolicyUUID(policyUUID string) *PatchPolicyParams
WithPolicyUUID adds the policyUUID to the patch policy params
func (*PatchPolicyParams) WithTimeout ¶
func (o *PatchPolicyParams) WithTimeout(timeout time.Duration) *PatchPolicyParams
WithTimeout adds the timeout to the patch policy params
func (*PatchPolicyParams) WriteToRequest ¶
func (o *PatchPolicyParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type PatchPolicyReader ¶
type PatchPolicyReader struct {
// contains filtered or unexported fields
}
PatchPolicyReader is a Reader for the PatchPolicy structure.
func (*PatchPolicyReader) ReadResponse ¶
func (o *PatchPolicyReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type UpdatePolicyDefault ¶
type UpdatePolicyDefault struct { Payload *service_model.RuntimeError // contains filtered or unexported fields }
UpdatePolicyDefault describes a response with status code -1, with default header values.
An unexpected error response.
func NewUpdatePolicyDefault ¶
func NewUpdatePolicyDefault(code int) *UpdatePolicyDefault
NewUpdatePolicyDefault creates a UpdatePolicyDefault with default headers values
func (*UpdatePolicyDefault) Code ¶
func (o *UpdatePolicyDefault) Code() int
Code gets the status code for the update policy default response
func (*UpdatePolicyDefault) Error ¶
func (o *UpdatePolicyDefault) Error() string
func (*UpdatePolicyDefault) GetPayload ¶
func (o *UpdatePolicyDefault) GetPayload() *service_model.RuntimeError
func (*UpdatePolicyDefault) IsClientError ¶
func (o *UpdatePolicyDefault) IsClientError() bool
IsClientError returns true when this update policy default response has a 4xx status code
func (*UpdatePolicyDefault) IsCode ¶
func (o *UpdatePolicyDefault) IsCode(code int) bool
IsCode returns true when this update policy default response a status code equal to that given
func (*UpdatePolicyDefault) IsRedirect ¶
func (o *UpdatePolicyDefault) IsRedirect() bool
IsRedirect returns true when this update policy default response has a 3xx status code
func (*UpdatePolicyDefault) IsServerError ¶
func (o *UpdatePolicyDefault) IsServerError() bool
IsServerError returns true when this update policy default response has a 5xx status code
func (*UpdatePolicyDefault) IsSuccess ¶
func (o *UpdatePolicyDefault) IsSuccess() bool
IsSuccess returns true when this update policy default response has a 2xx status code
func (*UpdatePolicyDefault) String ¶
func (o *UpdatePolicyDefault) String() string
type UpdatePolicyForbidden ¶
type UpdatePolicyForbidden struct {
Payload interface{}
}
UpdatePolicyForbidden describes a response with status code 403, with default header values.
You don't have permission to access the resource.
func NewUpdatePolicyForbidden ¶
func NewUpdatePolicyForbidden() *UpdatePolicyForbidden
NewUpdatePolicyForbidden creates a UpdatePolicyForbidden with default headers values
func (*UpdatePolicyForbidden) Code ¶
func (o *UpdatePolicyForbidden) Code() int
Code gets the status code for the update policy forbidden response
func (*UpdatePolicyForbidden) Error ¶
func (o *UpdatePolicyForbidden) Error() string
func (*UpdatePolicyForbidden) GetPayload ¶
func (o *UpdatePolicyForbidden) GetPayload() interface{}
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 UpdatePolicyNoContent ¶
type UpdatePolicyNoContent struct {
Payload interface{}
}
UpdatePolicyNoContent describes a response with status code 204, with default header values.
No content.
func NewUpdatePolicyNoContent ¶
func NewUpdatePolicyNoContent() *UpdatePolicyNoContent
NewUpdatePolicyNoContent creates a UpdatePolicyNoContent with default headers values
func (*UpdatePolicyNoContent) Code ¶
func (o *UpdatePolicyNoContent) Code() int
Code gets the status code for the update policy no content response
func (*UpdatePolicyNoContent) Error ¶
func (o *UpdatePolicyNoContent) Error() string
func (*UpdatePolicyNoContent) GetPayload ¶
func (o *UpdatePolicyNoContent) GetPayload() interface{}
func (*UpdatePolicyNoContent) IsClientError ¶
func (o *UpdatePolicyNoContent) IsClientError() bool
IsClientError returns true when this update policy no content response has a 4xx status code
func (*UpdatePolicyNoContent) IsCode ¶
func (o *UpdatePolicyNoContent) IsCode(code int) bool
IsCode returns true when this update policy no content response a status code equal to that given
func (*UpdatePolicyNoContent) IsRedirect ¶
func (o *UpdatePolicyNoContent) IsRedirect() bool
IsRedirect returns true when this update policy no content response has a 3xx status code
func (*UpdatePolicyNoContent) IsServerError ¶
func (o *UpdatePolicyNoContent) IsServerError() bool
IsServerError returns true when this update policy no content response has a 5xx status code
func (*UpdatePolicyNoContent) IsSuccess ¶
func (o *UpdatePolicyNoContent) IsSuccess() bool
IsSuccess returns true when this update policy no content response has a 2xx status code
func (*UpdatePolicyNoContent) String ¶
func (o *UpdatePolicyNoContent) String() string
type UpdatePolicyNotFound ¶
type UpdatePolicyNotFound struct {
Payload interface{}
}
UpdatePolicyNotFound describes a response with status code 404, with default header values.
Resource does not exist.
func NewUpdatePolicyNotFound ¶
func NewUpdatePolicyNotFound() *UpdatePolicyNotFound
NewUpdatePolicyNotFound creates a UpdatePolicyNotFound with default headers values
func (*UpdatePolicyNotFound) Code ¶
func (o *UpdatePolicyNotFound) Code() int
Code gets the status code for the update policy not found response
func (*UpdatePolicyNotFound) Error ¶
func (o *UpdatePolicyNotFound) Error() string
func (*UpdatePolicyNotFound) GetPayload ¶
func (o *UpdatePolicyNotFound) GetPayload() interface{}
func (*UpdatePolicyNotFound) IsClientError ¶
func (o *UpdatePolicyNotFound) IsClientError() bool
IsClientError returns true when this update policy not found response has a 4xx status code
func (*UpdatePolicyNotFound) IsCode ¶
func (o *UpdatePolicyNotFound) IsCode(code int) bool
IsCode returns true when this update policy not found response a status code equal to that given
func (*UpdatePolicyNotFound) IsRedirect ¶
func (o *UpdatePolicyNotFound) IsRedirect() bool
IsRedirect returns true when this update policy not found response has a 3xx status code
func (*UpdatePolicyNotFound) IsServerError ¶
func (o *UpdatePolicyNotFound) IsServerError() bool
IsServerError returns true when this update policy not found response has a 5xx status code
func (*UpdatePolicyNotFound) IsSuccess ¶
func (o *UpdatePolicyNotFound) IsSuccess() bool
IsSuccess returns true when this update policy not found response has a 2xx status code
func (*UpdatePolicyNotFound) String ¶
func (o *UpdatePolicyNotFound) String() string
type UpdatePolicyOK ¶
type UpdatePolicyOK struct {
Payload *service_model.V1Policy
}
UpdatePolicyOK describes a response with status code 200, with default header values.
A successful response.
func NewUpdatePolicyOK ¶
func NewUpdatePolicyOK() *UpdatePolicyOK
NewUpdatePolicyOK creates a UpdatePolicyOK with default headers values
func (*UpdatePolicyOK) Code ¶
func (o *UpdatePolicyOK) Code() int
Code gets the status code for the update policy o k response
func (*UpdatePolicyOK) Error ¶
func (o *UpdatePolicyOK) Error() string
func (*UpdatePolicyOK) GetPayload ¶
func (o *UpdatePolicyOK) GetPayload() *service_model.V1Policy
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. Policy body */ Body *service_model.V1Policy /* Owner. Owner of the namespace */ Owner string /* PolicyUUID. UUID */ PolicyUUID 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 *service_model.V1Policy)
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) SetOwner ¶
func (o *UpdatePolicyParams) SetOwner(owner string)
SetOwner adds the owner to the update policy params
func (*UpdatePolicyParams) SetPolicyUUID ¶
func (o *UpdatePolicyParams) SetPolicyUUID(policyUUID string)
SetPolicyUUID adds the policyUuid 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 *service_model.V1Policy) *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) WithOwner ¶
func (o *UpdatePolicyParams) WithOwner(owner string) *UpdatePolicyParams
WithOwner adds the owner to the update policy params
func (*UpdatePolicyParams) WithPolicyUUID ¶
func (o *UpdatePolicyParams) WithPolicyUUID(policyUUID string) *UpdatePolicyParams
WithPolicyUUID adds the policyUUID 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.
Source Files
¶
- create_policy_parameters.go
- create_policy_responses.go
- delete_policy_parameters.go
- delete_policy_responses.go
- get_policy_parameters.go
- get_policy_responses.go
- list_policies_parameters.go
- list_policies_responses.go
- list_policy_names_parameters.go
- list_policy_names_responses.go
- patch_policy_parameters.go
- patch_policy_responses.go
- policies_v1_client.go
- update_policy_parameters.go
- update_policy_responses.go