policy

package
v0.1.13 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 8, 2018 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddPolicyBadRequest

type AddPolicyBadRequest struct {
	Payload *models.Error
}

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

type AddPolicyConflict struct {
	Payload *models.Error
}

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

type AddPolicyCreated struct {
	Payload *models.Policy
}

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

type AddPolicyDefault struct {
	Payload *models.Error
	// contains filtered or unexported fields
}

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

type AddPolicyInternalServerError struct {
	Payload *models.Error
}

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

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

type DeletePolicyBadRequest struct {
	Payload *models.Error
}

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

type DeletePolicyInternalServerError struct {
	Payload *models.Error
}

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

type DeletePolicyNotFound

type DeletePolicyNotFound struct {
	Payload *models.Error
}

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

type DeletePolicyOK struct {
	Payload *models.Policy
}

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

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

type GetPoliciesDefault struct {
	Payload *models.Error
	// contains filtered or unexported fields
}

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

type GetPoliciesInternalServerError struct {
	Payload *models.Error
}

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

type GetPoliciesOK

type GetPoliciesOK struct {
	Payload []*models.Policy
}

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

type GetPolicyBadRequest struct {
	Payload *models.Error
}

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

type GetPolicyInternalServerError struct {
	Payload *models.Error
}

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

type GetPolicyNotFound

type GetPolicyNotFound struct {
	Payload *models.Error
}

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

type GetPolicyOK struct {
	Payload *models.Policy
}

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

type UpdatePolicyBadRequest struct {
	Payload *models.Error
}

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

type UpdatePolicyInternalServerError struct {
	Payload *models.Error
}

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

type UpdatePolicyNotFound

type UpdatePolicyNotFound struct {
	Payload *models.Error
}

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

type UpdatePolicyOK struct {
	Payload *models.Policy
}

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

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL