policy

package
v0.1.24 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2018 License: Apache-2.0 Imports: 10 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddPolicyBadRequest

type AddPolicyBadRequest struct {
	Payload *v1.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 *v1.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 *v1.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 *v1.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 AddPolicyForbidden added in v0.1.18

type AddPolicyForbidden struct {
	Payload *v1.Error
}

AddPolicyForbidden handles this case with default header values.

access to this resource is forbidden

func NewAddPolicyForbidden added in v0.1.18

func NewAddPolicyForbidden() *AddPolicyForbidden

NewAddPolicyForbidden creates a AddPolicyForbidden with default headers values

func (*AddPolicyForbidden) Error added in v0.1.18

func (o *AddPolicyForbidden) Error() string

type AddPolicyParams

type AddPolicyParams struct {

	/*XDispatchOrg*/
	XDispatchOrg string
	/*Body
	  Policy Object

	*/
	Body *v1.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 *v1.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) SetXDispatchOrg added in v0.1.18

func (o *AddPolicyParams) SetXDispatchOrg(xDispatchOrg string)

SetXDispatchOrg adds the xDispatchOrg to the add policy params

func (*AddPolicyParams) WithBody

func (o *AddPolicyParams) WithBody(body *v1.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) WithXDispatchOrg added in v0.1.18

func (o *AddPolicyParams) WithXDispatchOrg(xDispatchOrg string) *AddPolicyParams

WithXDispatchOrg adds the xDispatchOrg 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 AddPolicyUnauthorized added in v0.1.18

type AddPolicyUnauthorized struct {
	Payload *v1.Error
}

AddPolicyUnauthorized handles this case with default header values.

Unauthorized Request

func NewAddPolicyUnauthorized added in v0.1.18

func NewAddPolicyUnauthorized() *AddPolicyUnauthorized

NewAddPolicyUnauthorized creates a AddPolicyUnauthorized with default headers values

func (*AddPolicyUnauthorized) Error added in v0.1.18

func (o *AddPolicyUnauthorized) Error() string

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 *v1.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 DeletePolicyDefault added in v0.1.18

type DeletePolicyDefault struct {
	Payload *v1.Error
	// contains filtered or unexported fields
}

DeletePolicyDefault handles this case with default header values.

Unknown error

func NewDeletePolicyDefault added in v0.1.18

func NewDeletePolicyDefault(code int) *DeletePolicyDefault

NewDeletePolicyDefault creates a DeletePolicyDefault with default headers values

func (*DeletePolicyDefault) Code added in v0.1.18

func (o *DeletePolicyDefault) Code() int

Code gets the status code for the delete policy default response

func (*DeletePolicyDefault) Error added in v0.1.18

func (o *DeletePolicyDefault) Error() string

type DeletePolicyForbidden added in v0.1.18

type DeletePolicyForbidden struct {
	Payload *v1.Error
}

DeletePolicyForbidden handles this case with default header values.

access to this resource is forbidden

func NewDeletePolicyForbidden added in v0.1.18

func NewDeletePolicyForbidden() *DeletePolicyForbidden

NewDeletePolicyForbidden creates a DeletePolicyForbidden with default headers values

func (*DeletePolicyForbidden) Error added in v0.1.18

func (o *DeletePolicyForbidden) Error() string

type DeletePolicyNotFound

type DeletePolicyNotFound struct {
	Payload *v1.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 *v1.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 {

	/*XDispatchOrg*/
	XDispatchOrg string
	/*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) SetXDispatchOrg added in v0.1.18

func (o *DeletePolicyParams) SetXDispatchOrg(xDispatchOrg string)

SetXDispatchOrg adds the xDispatchOrg 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) WithXDispatchOrg added in v0.1.18

func (o *DeletePolicyParams) WithXDispatchOrg(xDispatchOrg string) *DeletePolicyParams

WithXDispatchOrg adds the xDispatchOrg to the delete policy params

func (*DeletePolicyParams) WriteToRequest

func (o *DeletePolicyParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type DeletePolicyReader

type DeletePolicyReader struct {
	// contains filtered or unexported fields
}

DeletePolicyReader is a Reader for the DeletePolicy structure.

func (*DeletePolicyReader) ReadResponse

func (o *DeletePolicyReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type DeletePolicyUnauthorized added in v0.1.18

type DeletePolicyUnauthorized struct {
	Payload *v1.Error
}

DeletePolicyUnauthorized handles this case with default header values.

Unauthorized Request

func NewDeletePolicyUnauthorized added in v0.1.18

func NewDeletePolicyUnauthorized() *DeletePolicyUnauthorized

NewDeletePolicyUnauthorized creates a DeletePolicyUnauthorized with default headers values

func (*DeletePolicyUnauthorized) Error added in v0.1.18

func (o *DeletePolicyUnauthorized) Error() string

type GetPoliciesDefault

type GetPoliciesDefault struct {
	Payload *v1.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 GetPoliciesForbidden added in v0.1.18

type GetPoliciesForbidden struct {
	Payload *v1.Error
}

GetPoliciesForbidden handles this case with default header values.

access to this resource is forbidden

func NewGetPoliciesForbidden added in v0.1.18

func NewGetPoliciesForbidden() *GetPoliciesForbidden

NewGetPoliciesForbidden creates a GetPoliciesForbidden with default headers values

func (*GetPoliciesForbidden) Error added in v0.1.18

func (o *GetPoliciesForbidden) Error() string

type GetPoliciesOK

type GetPoliciesOK struct {
	Payload []*v1.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 {

	/*XDispatchOrg*/
	XDispatchOrg string

	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) SetXDispatchOrg added in v0.1.18

func (o *GetPoliciesParams) SetXDispatchOrg(xDispatchOrg string)

SetXDispatchOrg adds the xDispatchOrg 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) WithXDispatchOrg added in v0.1.18

func (o *GetPoliciesParams) WithXDispatchOrg(xDispatchOrg string) *GetPoliciesParams

WithXDispatchOrg adds the xDispatchOrg 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 GetPoliciesUnauthorized added in v0.1.18

type GetPoliciesUnauthorized struct {
	Payload *v1.Error
}

GetPoliciesUnauthorized handles this case with default header values.

Unauthorized Request

func NewGetPoliciesUnauthorized added in v0.1.18

func NewGetPoliciesUnauthorized() *GetPoliciesUnauthorized

NewGetPoliciesUnauthorized creates a GetPoliciesUnauthorized with default headers values

func (*GetPoliciesUnauthorized) Error added in v0.1.18

func (o *GetPoliciesUnauthorized) Error() string

type GetPolicyBadRequest

type GetPolicyBadRequest struct {
	Payload *v1.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 GetPolicyDefault added in v0.1.18

type GetPolicyDefault struct {
	Payload *v1.Error
	// contains filtered or unexported fields
}

GetPolicyDefault handles this case with default header values.

Unknown error

func NewGetPolicyDefault added in v0.1.18

func NewGetPolicyDefault(code int) *GetPolicyDefault

NewGetPolicyDefault creates a GetPolicyDefault with default headers values

func (*GetPolicyDefault) Code added in v0.1.18

func (o *GetPolicyDefault) Code() int

Code gets the status code for the get policy default response

func (*GetPolicyDefault) Error added in v0.1.18

func (o *GetPolicyDefault) Error() string

type GetPolicyForbidden added in v0.1.18

type GetPolicyForbidden struct {
	Payload *v1.Error
}

GetPolicyForbidden handles this case with default header values.

access to this resource is forbidden

func NewGetPolicyForbidden added in v0.1.18

func NewGetPolicyForbidden() *GetPolicyForbidden

NewGetPolicyForbidden creates a GetPolicyForbidden with default headers values

func (*GetPolicyForbidden) Error added in v0.1.18

func (o *GetPolicyForbidden) Error() string

type GetPolicyNotFound

type GetPolicyNotFound struct {
	Payload *v1.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 *v1.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 {

	/*XDispatchOrg*/
	XDispatchOrg string
	/*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) SetXDispatchOrg added in v0.1.18

func (o *GetPolicyParams) SetXDispatchOrg(xDispatchOrg string)

SetXDispatchOrg adds the xDispatchOrg 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) WithXDispatchOrg added in v0.1.18

func (o *GetPolicyParams) WithXDispatchOrg(xDispatchOrg string) *GetPolicyParams

WithXDispatchOrg adds the xDispatchOrg to the get policy params

func (*GetPolicyParams) WriteToRequest

func (o *GetPolicyParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type GetPolicyReader

type GetPolicyReader struct {
	// contains filtered or unexported fields
}

GetPolicyReader is a Reader for the GetPolicy structure.

func (*GetPolicyReader) ReadResponse

func (o *GetPolicyReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type GetPolicyUnauthorized added in v0.1.18

type GetPolicyUnauthorized struct {
	Payload *v1.Error
}

GetPolicyUnauthorized handles this case with default header values.

Unauthorized Request

func NewGetPolicyUnauthorized added in v0.1.18

func NewGetPolicyUnauthorized() *GetPolicyUnauthorized

NewGetPolicyUnauthorized creates a GetPolicyUnauthorized with default headers values

func (*GetPolicyUnauthorized) Error added in v0.1.18

func (o *GetPolicyUnauthorized) Error() string

type UpdatePolicyBadRequest

type UpdatePolicyBadRequest struct {
	Payload *v1.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 UpdatePolicyDefault added in v0.1.18

type UpdatePolicyDefault struct {
	Payload *v1.Error
	// contains filtered or unexported fields
}

UpdatePolicyDefault handles this case with default header values.

Unknown error

func NewUpdatePolicyDefault added in v0.1.18

func NewUpdatePolicyDefault(code int) *UpdatePolicyDefault

NewUpdatePolicyDefault creates a UpdatePolicyDefault with default headers values

func (*UpdatePolicyDefault) Code added in v0.1.18

func (o *UpdatePolicyDefault) Code() int

Code gets the status code for the update policy default response

func (*UpdatePolicyDefault) Error added in v0.1.18

func (o *UpdatePolicyDefault) Error() string

type UpdatePolicyForbidden added in v0.1.18

type UpdatePolicyForbidden struct {
	Payload *v1.Error
}

UpdatePolicyForbidden handles this case with default header values.

access to this resource is forbidden

func NewUpdatePolicyForbidden added in v0.1.18

func NewUpdatePolicyForbidden() *UpdatePolicyForbidden

NewUpdatePolicyForbidden creates a UpdatePolicyForbidden with default headers values

func (*UpdatePolicyForbidden) Error added in v0.1.18

func (o *UpdatePolicyForbidden) Error() string

type UpdatePolicyNotFound

type UpdatePolicyNotFound struct {
	Payload *v1.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 *v1.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 {

	/*XDispatchOrg*/
	XDispatchOrg string
	/*Body
	  Policy object

	*/
	Body *v1.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 *v1.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) SetXDispatchOrg added in v0.1.18

func (o *UpdatePolicyParams) SetXDispatchOrg(xDispatchOrg string)

SetXDispatchOrg adds the xDispatchOrg to the update policy params

func (*UpdatePolicyParams) WithBody

func (o *UpdatePolicyParams) WithBody(body *v1.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) WithXDispatchOrg added in v0.1.18

func (o *UpdatePolicyParams) WithXDispatchOrg(xDispatchOrg string) *UpdatePolicyParams

WithXDispatchOrg adds the xDispatchOrg to the update policy params

func (*UpdatePolicyParams) WriteToRequest

func (o *UpdatePolicyParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type UpdatePolicyReader

type UpdatePolicyReader struct {
	// contains filtered or unexported fields
}

UpdatePolicyReader is a Reader for the UpdatePolicy structure.

func (*UpdatePolicyReader) ReadResponse

func (o *UpdatePolicyReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type UpdatePolicyUnauthorized added in v0.1.18

type UpdatePolicyUnauthorized struct {
	Payload *v1.Error
}

UpdatePolicyUnauthorized handles this case with default header values.

Unauthorized Request

func NewUpdatePolicyUnauthorized added in v0.1.18

func NewUpdatePolicyUnauthorized() *UpdatePolicyUnauthorized

NewUpdatePolicyUnauthorized creates a UpdatePolicyUnauthorized with default headers values

func (*UpdatePolicyUnauthorized) Error added in v0.1.18

func (o *UpdatePolicyUnauthorized) Error() string

Jump to

Keyboard shortcuts

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