Documentation ¶
Index ¶
- type AddPolicyBadRequest
- type AddPolicyConflict
- type AddPolicyCreated
- type AddPolicyDefault
- type AddPolicyInternalServerError
- type AddPolicyParams
- func (o *AddPolicyParams) SetBody(body *models.Policy)
- func (o *AddPolicyParams) SetContext(ctx context.Context)
- func (o *AddPolicyParams) SetHTTPClient(client *http.Client)
- func (o *AddPolicyParams) SetTimeout(timeout time.Duration)
- func (o *AddPolicyParams) WithBody(body *models.Policy) *AddPolicyParams
- func (o *AddPolicyParams) WithContext(ctx context.Context) *AddPolicyParams
- func (o *AddPolicyParams) WithHTTPClient(client *http.Client) *AddPolicyParams
- func (o *AddPolicyParams) WithTimeout(timeout time.Duration) *AddPolicyParams
- func (o *AddPolicyParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type AddPolicyReader
- type Client
- func (a *Client) AddPolicy(params *AddPolicyParams, authInfo runtime.ClientAuthInfoWriter) (*AddPolicyCreated, error)
- func (a *Client) DeletePolicy(params *DeletePolicyParams, authInfo runtime.ClientAuthInfoWriter) (*DeletePolicyOK, error)
- func (a *Client) GetPolicies(params *GetPoliciesParams, authInfo runtime.ClientAuthInfoWriter) (*GetPoliciesOK, error)
- func (a *Client) GetPolicy(params *GetPolicyParams, authInfo runtime.ClientAuthInfoWriter) (*GetPolicyOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- func (a *Client) UpdatePolicy(params *UpdatePolicyParams, authInfo runtime.ClientAuthInfoWriter) (*UpdatePolicyOK, error)
- type DeletePolicyBadRequest
- type DeletePolicyInternalServerError
- type DeletePolicyNotFound
- type DeletePolicyOK
- type DeletePolicyParams
- func (o *DeletePolicyParams) SetContext(ctx context.Context)
- func (o *DeletePolicyParams) SetHTTPClient(client *http.Client)
- func (o *DeletePolicyParams) SetPolicyName(policyName string)
- func (o *DeletePolicyParams) SetTimeout(timeout time.Duration)
- func (o *DeletePolicyParams) WithContext(ctx context.Context) *DeletePolicyParams
- func (o *DeletePolicyParams) WithHTTPClient(client *http.Client) *DeletePolicyParams
- func (o *DeletePolicyParams) WithPolicyName(policyName string) *DeletePolicyParams
- func (o *DeletePolicyParams) WithTimeout(timeout time.Duration) *DeletePolicyParams
- func (o *DeletePolicyParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DeletePolicyReader
- type GetPoliciesDefault
- type GetPoliciesInternalServerError
- type GetPoliciesOK
- type GetPoliciesParams
- func (o *GetPoliciesParams) SetContext(ctx context.Context)
- func (o *GetPoliciesParams) SetHTTPClient(client *http.Client)
- func (o *GetPoliciesParams) SetTimeout(timeout time.Duration)
- func (o *GetPoliciesParams) WithContext(ctx context.Context) *GetPoliciesParams
- func (o *GetPoliciesParams) WithHTTPClient(client *http.Client) *GetPoliciesParams
- func (o *GetPoliciesParams) WithTimeout(timeout time.Duration) *GetPoliciesParams
- func (o *GetPoliciesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetPoliciesReader
- type GetPolicyBadRequest
- type GetPolicyInternalServerError
- type GetPolicyNotFound
- type GetPolicyOK
- type GetPolicyParams
- func (o *GetPolicyParams) SetContext(ctx context.Context)
- func (o *GetPolicyParams) SetHTTPClient(client *http.Client)
- func (o *GetPolicyParams) SetPolicyName(policyName string)
- func (o *GetPolicyParams) SetTimeout(timeout time.Duration)
- func (o *GetPolicyParams) WithContext(ctx context.Context) *GetPolicyParams
- func (o *GetPolicyParams) WithHTTPClient(client *http.Client) *GetPolicyParams
- func (o *GetPolicyParams) WithPolicyName(policyName string) *GetPolicyParams
- func (o *GetPolicyParams) WithTimeout(timeout time.Duration) *GetPolicyParams
- func (o *GetPolicyParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetPolicyReader
- type UpdatePolicyBadRequest
- type UpdatePolicyInternalServerError
- type UpdatePolicyNotFound
- type UpdatePolicyOK
- type UpdatePolicyParams
- func (o *UpdatePolicyParams) SetBody(body *models.Policy)
- func (o *UpdatePolicyParams) SetContext(ctx context.Context)
- func (o *UpdatePolicyParams) SetHTTPClient(client *http.Client)
- func (o *UpdatePolicyParams) SetPolicyName(policyName string)
- func (o *UpdatePolicyParams) SetTimeout(timeout time.Duration)
- func (o *UpdatePolicyParams) WithBody(body *models.Policy) *UpdatePolicyParams
- func (o *UpdatePolicyParams) WithContext(ctx context.Context) *UpdatePolicyParams
- func (o *UpdatePolicyParams) WithHTTPClient(client *http.Client) *UpdatePolicyParams
- func (o *UpdatePolicyParams) WithPolicyName(policyName 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 AddPolicyBadRequest ¶
AddPolicyBadRequest handles this case with default header values.
Invalid input
func NewAddPolicyBadRequest ¶
func NewAddPolicyBadRequest() *AddPolicyBadRequest
NewAddPolicyBadRequest creates a AddPolicyBadRequest with default headers values
func (*AddPolicyBadRequest) Error ¶
func (o *AddPolicyBadRequest) Error() string
type AddPolicyConflict ¶
AddPolicyConflict handles this case with default header values.
Already Exists
func NewAddPolicyConflict ¶
func NewAddPolicyConflict() *AddPolicyConflict
NewAddPolicyConflict creates a AddPolicyConflict with default headers values
func (*AddPolicyConflict) Error ¶
func (o *AddPolicyConflict) Error() string
type AddPolicyCreated ¶
AddPolicyCreated handles this case with default header values.
created
func NewAddPolicyCreated ¶
func NewAddPolicyCreated() *AddPolicyCreated
NewAddPolicyCreated creates a AddPolicyCreated with default headers values
func (*AddPolicyCreated) Error ¶
func (o *AddPolicyCreated) Error() string
type AddPolicyDefault ¶
AddPolicyDefault handles this case with default header values.
Generic error response
func NewAddPolicyDefault ¶
func NewAddPolicyDefault(code int) *AddPolicyDefault
NewAddPolicyDefault creates a AddPolicyDefault with default headers values
func (*AddPolicyDefault) Code ¶
func (o *AddPolicyDefault) Code() int
Code gets the status code for the add policy default response
func (*AddPolicyDefault) Error ¶
func (o *AddPolicyDefault) Error() string
type AddPolicyInternalServerError ¶
AddPolicyInternalServerError handles this case with default header values.
Internal Error
func NewAddPolicyInternalServerError ¶
func NewAddPolicyInternalServerError() *AddPolicyInternalServerError
NewAddPolicyInternalServerError creates a AddPolicyInternalServerError with default headers values
func (*AddPolicyInternalServerError) Error ¶
func (o *AddPolicyInternalServerError) Error() string
type AddPolicyParams ¶
type AddPolicyParams struct { /*Body Policy Object */ Body *models.Policy Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
AddPolicyParams contains all the parameters to send to the API endpoint for the add policy operation typically these are written to a http.Request
func NewAddPolicyParams ¶
func NewAddPolicyParams() *AddPolicyParams
NewAddPolicyParams creates a new AddPolicyParams object with the default values initialized.
func NewAddPolicyParamsWithContext ¶
func NewAddPolicyParamsWithContext(ctx context.Context) *AddPolicyParams
NewAddPolicyParamsWithContext creates a new AddPolicyParams object with the default values initialized, and the ability to set a context for a request
func NewAddPolicyParamsWithHTTPClient ¶
func NewAddPolicyParamsWithHTTPClient(client *http.Client) *AddPolicyParams
NewAddPolicyParamsWithHTTPClient creates a new AddPolicyParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewAddPolicyParamsWithTimeout ¶
func NewAddPolicyParamsWithTimeout(timeout time.Duration) *AddPolicyParams
NewAddPolicyParamsWithTimeout creates a new AddPolicyParams object with the default values initialized, and the ability to set a timeout on a request
func (*AddPolicyParams) SetBody ¶
func (o *AddPolicyParams) SetBody(body *models.Policy)
SetBody adds the body to the add policy params
func (*AddPolicyParams) SetContext ¶
func (o *AddPolicyParams) SetContext(ctx context.Context)
SetContext adds the context to the add policy params
func (*AddPolicyParams) SetHTTPClient ¶
func (o *AddPolicyParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the add policy params
func (*AddPolicyParams) SetTimeout ¶
func (o *AddPolicyParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the add policy params
func (*AddPolicyParams) WithBody ¶
func (o *AddPolicyParams) WithBody(body *models.Policy) *AddPolicyParams
WithBody adds the body to the add policy params
func (*AddPolicyParams) WithContext ¶
func (o *AddPolicyParams) WithContext(ctx context.Context) *AddPolicyParams
WithContext adds the context to the add policy params
func (*AddPolicyParams) WithHTTPClient ¶
func (o *AddPolicyParams) WithHTTPClient(client *http.Client) *AddPolicyParams
WithHTTPClient adds the HTTPClient to the add policy params
func (*AddPolicyParams) WithTimeout ¶
func (o *AddPolicyParams) WithTimeout(timeout time.Duration) *AddPolicyParams
WithTimeout adds the timeout to the add policy params
func (*AddPolicyParams) WriteToRequest ¶
func (o *AddPolicyParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type AddPolicyReader ¶
type AddPolicyReader struct {
// contains filtered or unexported fields
}
AddPolicyReader is a Reader for the AddPolicy structure.
func (*AddPolicyReader) ReadResponse ¶
func (o *AddPolicyReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client for policy API
func New ¶
func New(transport runtime.ClientTransport, formats strfmt.Registry) *Client
New creates a new policy API client.
func (*Client) AddPolicy ¶
func (a *Client) AddPolicy(params *AddPolicyParams, authInfo runtime.ClientAuthInfoWriter) (*AddPolicyCreated, error)
AddPolicy adds a new policy
func (*Client) DeletePolicy ¶
func (a *Client) DeletePolicy(params *DeletePolicyParams, authInfo runtime.ClientAuthInfoWriter) (*DeletePolicyOK, error)
DeletePolicy deletes an policy
func (*Client) GetPolicies ¶
func (a *Client) GetPolicies(params *GetPoliciesParams, authInfo runtime.ClientAuthInfoWriter) (*GetPoliciesOK, error)
GetPolicies lists all existing policies
func (*Client) GetPolicy ¶
func (a *Client) GetPolicy(params *GetPolicyParams, authInfo runtime.ClientAuthInfoWriter) (*GetPolicyOK, error)
GetPolicy finds policy by name
get an Policy by name
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) (*UpdatePolicyOK, error)
UpdatePolicy updates a policy
type DeletePolicyBadRequest ¶
DeletePolicyBadRequest handles this case with default header values.
Invalid Name supplied
func NewDeletePolicyBadRequest ¶
func NewDeletePolicyBadRequest() *DeletePolicyBadRequest
NewDeletePolicyBadRequest creates a DeletePolicyBadRequest with default headers values
func (*DeletePolicyBadRequest) Error ¶
func (o *DeletePolicyBadRequest) Error() string
type DeletePolicyInternalServerError ¶
DeletePolicyInternalServerError handles this case with default header values.
Internal error
func NewDeletePolicyInternalServerError ¶
func NewDeletePolicyInternalServerError() *DeletePolicyInternalServerError
NewDeletePolicyInternalServerError creates a DeletePolicyInternalServerError with default headers values
func (*DeletePolicyInternalServerError) Error ¶
func (o *DeletePolicyInternalServerError) Error() string
type DeletePolicyNotFound ¶
DeletePolicyNotFound handles this case with default header values.
Policy not found
func NewDeletePolicyNotFound ¶
func NewDeletePolicyNotFound() *DeletePolicyNotFound
NewDeletePolicyNotFound creates a DeletePolicyNotFound with default headers values
func (*DeletePolicyNotFound) Error ¶
func (o *DeletePolicyNotFound) Error() string
type DeletePolicyOK ¶
DeletePolicyOK handles this case with default header values.
Successful operation
func NewDeletePolicyOK ¶
func NewDeletePolicyOK() *DeletePolicyOK
NewDeletePolicyOK creates a DeletePolicyOK with default headers values
func (*DeletePolicyOK) Error ¶
func (o *DeletePolicyOK) Error() string
type DeletePolicyParams ¶
type DeletePolicyParams struct { /*PolicyName Name of Policy to work on */ PolicyName 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 values initialized.
func NewDeletePolicyParamsWithContext ¶
func NewDeletePolicyParamsWithContext(ctx context.Context) *DeletePolicyParams
NewDeletePolicyParamsWithContext creates a new DeletePolicyParams object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and 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) SetHTTPClient ¶
func (o *DeletePolicyParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the delete policy params
func (*DeletePolicyParams) SetPolicyName ¶
func (o *DeletePolicyParams) SetPolicyName(policyName string)
SetPolicyName adds the policyName to the delete policy params
func (*DeletePolicyParams) SetTimeout ¶
func (o *DeletePolicyParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the delete policy params
func (*DeletePolicyParams) WithContext ¶
func (o *DeletePolicyParams) WithContext(ctx context.Context) *DeletePolicyParams
WithContext adds the context to the delete policy params
func (*DeletePolicyParams) WithHTTPClient ¶
func (o *DeletePolicyParams) WithHTTPClient(client *http.Client) *DeletePolicyParams
WithHTTPClient adds the HTTPClient to the delete policy params
func (*DeletePolicyParams) WithPolicyName ¶
func (o *DeletePolicyParams) WithPolicyName(policyName string) *DeletePolicyParams
WithPolicyName adds the policyName to the delete policy params
func (*DeletePolicyParams) WithTimeout ¶
func (o *DeletePolicyParams) WithTimeout(timeout time.Duration) *DeletePolicyParams
WithTimeout adds the timeout to the delete policy params
func (*DeletePolicyParams) WriteToRequest ¶
func (o *DeletePolicyParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type DeletePolicyReader ¶
type DeletePolicyReader struct {
// contains filtered or unexported fields
}
DeletePolicyReader is a Reader for the DeletePolicy structure.
func (*DeletePolicyReader) ReadResponse ¶
func (o *DeletePolicyReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetPoliciesDefault ¶
GetPoliciesDefault handles this case with default header values.
Unexpected Error
func NewGetPoliciesDefault ¶
func NewGetPoliciesDefault(code int) *GetPoliciesDefault
NewGetPoliciesDefault creates a GetPoliciesDefault with default headers values
func (*GetPoliciesDefault) Code ¶
func (o *GetPoliciesDefault) Code() int
Code gets the status code for the get policies default response
func (*GetPoliciesDefault) Error ¶
func (o *GetPoliciesDefault) Error() string
type GetPoliciesInternalServerError ¶
GetPoliciesInternalServerError handles this case with default header values.
Internal Error
func NewGetPoliciesInternalServerError ¶
func NewGetPoliciesInternalServerError() *GetPoliciesInternalServerError
NewGetPoliciesInternalServerError creates a GetPoliciesInternalServerError with default headers values
func (*GetPoliciesInternalServerError) Error ¶
func (o *GetPoliciesInternalServerError) Error() string
type GetPoliciesOK ¶
GetPoliciesOK handles this case with default header values.
Successful operation
func NewGetPoliciesOK ¶
func NewGetPoliciesOK() *GetPoliciesOK
NewGetPoliciesOK creates a GetPoliciesOK with default headers values
func (*GetPoliciesOK) Error ¶
func (o *GetPoliciesOK) Error() string
type GetPoliciesParams ¶
type GetPoliciesParams struct { Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetPoliciesParams contains all the parameters to send to the API endpoint for the get policies operation typically these are written to a http.Request
func NewGetPoliciesParams ¶
func NewGetPoliciesParams() *GetPoliciesParams
NewGetPoliciesParams creates a new GetPoliciesParams object with the default values initialized.
func NewGetPoliciesParamsWithContext ¶
func NewGetPoliciesParamsWithContext(ctx context.Context) *GetPoliciesParams
NewGetPoliciesParamsWithContext creates a new GetPoliciesParams object with the default values initialized, and the ability to set a context for a request
func NewGetPoliciesParamsWithHTTPClient ¶
func NewGetPoliciesParamsWithHTTPClient(client *http.Client) *GetPoliciesParams
NewGetPoliciesParamsWithHTTPClient creates a new GetPoliciesParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewGetPoliciesParamsWithTimeout ¶
func NewGetPoliciesParamsWithTimeout(timeout time.Duration) *GetPoliciesParams
NewGetPoliciesParamsWithTimeout creates a new GetPoliciesParams object with the default values initialized, and the ability to set a timeout on a request
func (*GetPoliciesParams) SetContext ¶
func (o *GetPoliciesParams) SetContext(ctx context.Context)
SetContext adds the context to the get policies params
func (*GetPoliciesParams) SetHTTPClient ¶
func (o *GetPoliciesParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get policies params
func (*GetPoliciesParams) SetTimeout ¶
func (o *GetPoliciesParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get policies params
func (*GetPoliciesParams) WithContext ¶
func (o *GetPoliciesParams) WithContext(ctx context.Context) *GetPoliciesParams
WithContext adds the context to the get policies params
func (*GetPoliciesParams) WithHTTPClient ¶
func (o *GetPoliciesParams) WithHTTPClient(client *http.Client) *GetPoliciesParams
WithHTTPClient adds the HTTPClient to the get policies params
func (*GetPoliciesParams) WithTimeout ¶
func (o *GetPoliciesParams) WithTimeout(timeout time.Duration) *GetPoliciesParams
WithTimeout adds the timeout to the get policies params
func (*GetPoliciesParams) WriteToRequest ¶
func (o *GetPoliciesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetPoliciesReader ¶
type GetPoliciesReader struct {
// contains filtered or unexported fields
}
GetPoliciesReader is a Reader for the GetPolicies structure.
func (*GetPoliciesReader) ReadResponse ¶
func (o *GetPoliciesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetPolicyBadRequest ¶
GetPolicyBadRequest handles this case with default header values.
Invalid Name supplied
func NewGetPolicyBadRequest ¶
func NewGetPolicyBadRequest() *GetPolicyBadRequest
NewGetPolicyBadRequest creates a GetPolicyBadRequest with default headers values
func (*GetPolicyBadRequest) Error ¶
func (o *GetPolicyBadRequest) Error() string
type GetPolicyInternalServerError ¶
GetPolicyInternalServerError handles this case with default header values.
Internal error
func NewGetPolicyInternalServerError ¶
func NewGetPolicyInternalServerError() *GetPolicyInternalServerError
NewGetPolicyInternalServerError creates a GetPolicyInternalServerError with default headers values
func (*GetPolicyInternalServerError) Error ¶
func (o *GetPolicyInternalServerError) Error() string
type GetPolicyNotFound ¶
GetPolicyNotFound handles this case with default header values.
Policy not found
func NewGetPolicyNotFound ¶
func NewGetPolicyNotFound() *GetPolicyNotFound
NewGetPolicyNotFound creates a GetPolicyNotFound with default headers values
func (*GetPolicyNotFound) Error ¶
func (o *GetPolicyNotFound) Error() string
type GetPolicyOK ¶
GetPolicyOK handles this case with default header values.
Successful operation
func NewGetPolicyOK ¶
func NewGetPolicyOK() *GetPolicyOK
NewGetPolicyOK creates a GetPolicyOK with default headers values
func (*GetPolicyOK) Error ¶
func (o *GetPolicyOK) Error() string
type GetPolicyParams ¶
type GetPolicyParams struct { /*PolicyName Name of Policy to work on */ PolicyName 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 values initialized.
func NewGetPolicyParamsWithContext ¶
func NewGetPolicyParamsWithContext(ctx context.Context) *GetPolicyParams
NewGetPolicyParamsWithContext creates a new GetPolicyParams object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and 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) SetHTTPClient ¶
func (o *GetPolicyParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get policy params
func (*GetPolicyParams) SetPolicyName ¶
func (o *GetPolicyParams) SetPolicyName(policyName string)
SetPolicyName adds the policyName to the get policy params
func (*GetPolicyParams) SetTimeout ¶
func (o *GetPolicyParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get policy params
func (*GetPolicyParams) WithContext ¶
func (o *GetPolicyParams) WithContext(ctx context.Context) *GetPolicyParams
WithContext adds the context to the get policy params
func (*GetPolicyParams) WithHTTPClient ¶
func (o *GetPolicyParams) WithHTTPClient(client *http.Client) *GetPolicyParams
WithHTTPClient adds the HTTPClient to the get policy params
func (*GetPolicyParams) WithPolicyName ¶
func (o *GetPolicyParams) WithPolicyName(policyName string) *GetPolicyParams
WithPolicyName adds the policyName to the get policy params
func (*GetPolicyParams) WithTimeout ¶
func (o *GetPolicyParams) WithTimeout(timeout time.Duration) *GetPolicyParams
WithTimeout adds the timeout to the get policy params
func (*GetPolicyParams) WriteToRequest ¶
func (o *GetPolicyParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetPolicyReader ¶
type GetPolicyReader struct {
// contains filtered or unexported fields
}
GetPolicyReader is a Reader for the GetPolicy structure.
func (*GetPolicyReader) ReadResponse ¶
func (o *GetPolicyReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type UpdatePolicyBadRequest ¶
UpdatePolicyBadRequest handles this case with default header values.
Invalid input
func NewUpdatePolicyBadRequest ¶
func NewUpdatePolicyBadRequest() *UpdatePolicyBadRequest
NewUpdatePolicyBadRequest creates a UpdatePolicyBadRequest with default headers values
func (*UpdatePolicyBadRequest) Error ¶
func (o *UpdatePolicyBadRequest) Error() string
type UpdatePolicyInternalServerError ¶
UpdatePolicyInternalServerError handles this case with default header values.
Internal error
func NewUpdatePolicyInternalServerError ¶
func NewUpdatePolicyInternalServerError() *UpdatePolicyInternalServerError
NewUpdatePolicyInternalServerError creates a UpdatePolicyInternalServerError with default headers values
func (*UpdatePolicyInternalServerError) Error ¶
func (o *UpdatePolicyInternalServerError) Error() string
type UpdatePolicyNotFound ¶
UpdatePolicyNotFound handles this case with default header values.
Policy not found
func NewUpdatePolicyNotFound ¶
func NewUpdatePolicyNotFound() *UpdatePolicyNotFound
NewUpdatePolicyNotFound creates a UpdatePolicyNotFound with default headers values
func (*UpdatePolicyNotFound) Error ¶
func (o *UpdatePolicyNotFound) Error() string
type UpdatePolicyOK ¶
UpdatePolicyOK handles this case with default header values.
Successful update
func NewUpdatePolicyOK ¶
func NewUpdatePolicyOK() *UpdatePolicyOK
NewUpdatePolicyOK creates a UpdatePolicyOK with default headers values
func (*UpdatePolicyOK) Error ¶
func (o *UpdatePolicyOK) Error() string
type UpdatePolicyParams ¶
type UpdatePolicyParams struct { /*Body Policy object */ Body *models.Policy /*PolicyName Name of Policy to work on */ PolicyName 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 values initialized.
func NewUpdatePolicyParamsWithContext ¶
func NewUpdatePolicyParamsWithContext(ctx context.Context) *UpdatePolicyParams
NewUpdatePolicyParamsWithContext creates a new UpdatePolicyParams object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and the ability to set a timeout on a request
func (*UpdatePolicyParams) SetBody ¶
func (o *UpdatePolicyParams) SetBody(body *models.Policy)
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) SetHTTPClient ¶
func (o *UpdatePolicyParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the update policy params
func (*UpdatePolicyParams) SetPolicyName ¶
func (o *UpdatePolicyParams) SetPolicyName(policyName string)
SetPolicyName adds the policyName to the update policy params
func (*UpdatePolicyParams) SetTimeout ¶
func (o *UpdatePolicyParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the update policy params
func (*UpdatePolicyParams) WithBody ¶
func (o *UpdatePolicyParams) WithBody(body *models.Policy) *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) WithHTTPClient ¶
func (o *UpdatePolicyParams) WithHTTPClient(client *http.Client) *UpdatePolicyParams
WithHTTPClient adds the HTTPClient to the update policy params
func (*UpdatePolicyParams) WithPolicyName ¶
func (o *UpdatePolicyParams) WithPolicyName(policyName string) *UpdatePolicyParams
WithPolicyName adds the policyName 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.