service_policy

package
v0.17.67 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

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 service policy API

func (*Client) CreateServicePolicy

func (a *Client) CreateServicePolicy(params *CreateServicePolicyParams, authInfo runtime.ClientAuthInfoWriter) (*CreateServicePolicyCreated, error)

CreateServicePolicy creates a service policy resource

Create a service policy resource. Requires admin access.

func (*Client) DeleteServicePolicy

func (a *Client) DeleteServicePolicy(params *DeleteServicePolicyParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteServicePolicyOK, error)

DeleteServicePolicy deletes a service policy

Delete a service policy by id. Requires admin access.

func (*Client) DetailServicePolicy

func (a *Client) DetailServicePolicy(params *DetailServicePolicyParams, authInfo runtime.ClientAuthInfoWriter) (*DetailServicePolicyOK, error)

DetailServicePolicy retrieves a single service policy

Retrieves a single service policy by id. Requires admin access.

func (*Client) ListServicePolicies

func (a *Client) ListServicePolicies(params *ListServicePoliciesParams, authInfo runtime.ClientAuthInfoWriter) (*ListServicePoliciesOK, error)

ListServicePolicies lists service policies

Retrieves a list of service policy resources; supports filtering, sorting, and pagination. Requires admin access.

func (*Client) ListServicePolicyIdentities

func (a *Client) ListServicePolicyIdentities(params *ListServicePolicyIdentitiesParams, authInfo runtime.ClientAuthInfoWriter) (*ListServicePolicyIdentitiesOK, error)

ListServicePolicyIdentities lists identities a service policy affects

Retrieves a list of identity resources that are affected by a service policy; supports filtering, sorting, and pagination. Requires admin access.

func (*Client) ListServicePolicyPostureChecks added in v0.17.5

func (a *Client) ListServicePolicyPostureChecks(params *ListServicePolicyPostureChecksParams, authInfo runtime.ClientAuthInfoWriter) (*ListServicePolicyPostureChecksOK, error)

ListServicePolicyPostureChecks lists posture check a service policy includes

Retrieves a list of posture check resources that are affected by a service policy; supports filtering, sorting, and pagination. Requires admin access.

func (*Client) ListServicePolicyServices

func (a *Client) ListServicePolicyServices(params *ListServicePolicyServicesParams, authInfo runtime.ClientAuthInfoWriter) (*ListServicePolicyServicesOK, error)

ListServicePolicyServices lists services a service policy affects

Retrieves a list of service resources that are affected by a service policy; supports filtering, sorting, and pagination. Requires admin access.

func (*Client) PatchServicePolicy

func (a *Client) PatchServicePolicy(params *PatchServicePolicyParams, authInfo runtime.ClientAuthInfoWriter) (*PatchServicePolicyOK, error)

PatchServicePolicy updates the supplied fields on a service policy

Update the supplied fields on a service policy. Requires admin access.

func (*Client) SetTransport

func (a *Client) SetTransport(transport runtime.ClientTransport)

SetTransport changes the transport on the client

func (*Client) UpdateServicePolicy

func (a *Client) UpdateServicePolicy(params *UpdateServicePolicyParams, authInfo runtime.ClientAuthInfoWriter) (*UpdateServicePolicyOK, error)

UpdateServicePolicy updates all fields on a service policy

Update all fields on a service policy by id. Requires admin access.

type ClientService

ClientService is the interface for Client methods

func New

func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService

New creates a new service policy API client.

type CreateServicePolicyBadRequest

type CreateServicePolicyBadRequest struct {
	Payload *rest_model.APIErrorEnvelope
}

CreateServicePolicyBadRequest handles this case with default header values.

The supplied request contains invalid fields or could not be parsed (json and non-json bodies). The error's code, message, and cause fields can be inspected for further information

func NewCreateServicePolicyBadRequest

func NewCreateServicePolicyBadRequest() *CreateServicePolicyBadRequest

NewCreateServicePolicyBadRequest creates a CreateServicePolicyBadRequest with default headers values

func (*CreateServicePolicyBadRequest) Error

func (*CreateServicePolicyBadRequest) GetPayload

type CreateServicePolicyCreated added in v0.17.52

type CreateServicePolicyCreated struct {
	Payload *rest_model.CreateEnvelope
}

CreateServicePolicyCreated handles this case with default header values.

The create request was successful and the resource has been added at the following location

func NewCreateServicePolicyCreated added in v0.17.52

func NewCreateServicePolicyCreated() *CreateServicePolicyCreated

NewCreateServicePolicyCreated creates a CreateServicePolicyCreated with default headers values

func (*CreateServicePolicyCreated) Error added in v0.17.52

func (*CreateServicePolicyCreated) GetPayload added in v0.17.52

type CreateServicePolicyParams

type CreateServicePolicyParams struct {

	/*Body
	  A service policy to create

	*/
	Body *rest_model.ServicePolicyCreate

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

CreateServicePolicyParams contains all the parameters to send to the API endpoint for the create service policy operation typically these are written to a http.Request

func NewCreateServicePolicyParams

func NewCreateServicePolicyParams() *CreateServicePolicyParams

NewCreateServicePolicyParams creates a new CreateServicePolicyParams object with the default values initialized.

func NewCreateServicePolicyParamsWithContext

func NewCreateServicePolicyParamsWithContext(ctx context.Context) *CreateServicePolicyParams

NewCreateServicePolicyParamsWithContext creates a new CreateServicePolicyParams object with the default values initialized, and the ability to set a context for a request

func NewCreateServicePolicyParamsWithHTTPClient

func NewCreateServicePolicyParamsWithHTTPClient(client *http.Client) *CreateServicePolicyParams

NewCreateServicePolicyParamsWithHTTPClient creates a new CreateServicePolicyParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewCreateServicePolicyParamsWithTimeout

func NewCreateServicePolicyParamsWithTimeout(timeout time.Duration) *CreateServicePolicyParams

NewCreateServicePolicyParamsWithTimeout creates a new CreateServicePolicyParams object with the default values initialized, and the ability to set a timeout on a request

func (*CreateServicePolicyParams) SetBody

SetBody adds the body to the create service policy params

func (*CreateServicePolicyParams) SetContext

func (o *CreateServicePolicyParams) SetContext(ctx context.Context)

SetContext adds the context to the create service policy params

func (*CreateServicePolicyParams) SetHTTPClient

func (o *CreateServicePolicyParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the create service policy params

func (*CreateServicePolicyParams) SetTimeout

func (o *CreateServicePolicyParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the create service policy params

func (*CreateServicePolicyParams) WithBody

WithBody adds the body to the create service policy params

func (*CreateServicePolicyParams) WithContext

WithContext adds the context to the create service policy params

func (*CreateServicePolicyParams) WithHTTPClient

func (o *CreateServicePolicyParams) WithHTTPClient(client *http.Client) *CreateServicePolicyParams

WithHTTPClient adds the HTTPClient to the create service policy params

func (*CreateServicePolicyParams) WithTimeout

WithTimeout adds the timeout to the create service policy params

func (*CreateServicePolicyParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type CreateServicePolicyReader

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

CreateServicePolicyReader is a Reader for the CreateServicePolicy structure.

func (*CreateServicePolicyReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type CreateServicePolicyUnauthorized

type CreateServicePolicyUnauthorized struct {
	Payload *rest_model.APIErrorEnvelope
}

CreateServicePolicyUnauthorized handles this case with default header values.

The currently supplied session does not have the correct access rights to request this resource

func NewCreateServicePolicyUnauthorized

func NewCreateServicePolicyUnauthorized() *CreateServicePolicyUnauthorized

NewCreateServicePolicyUnauthorized creates a CreateServicePolicyUnauthorized with default headers values

func (*CreateServicePolicyUnauthorized) Error

func (*CreateServicePolicyUnauthorized) GetPayload

type DeleteServicePolicyBadRequest

type DeleteServicePolicyBadRequest struct {
	Payload *rest_model.APIErrorEnvelope
}

DeleteServicePolicyBadRequest handles this case with default header values.

The supplied request contains invalid fields or could not be parsed (json and non-json bodies). The error's code, message, and cause fields can be inspected for further information

func NewDeleteServicePolicyBadRequest

func NewDeleteServicePolicyBadRequest() *DeleteServicePolicyBadRequest

NewDeleteServicePolicyBadRequest creates a DeleteServicePolicyBadRequest with default headers values

func (*DeleteServicePolicyBadRequest) Error

func (*DeleteServicePolicyBadRequest) GetPayload

type DeleteServicePolicyConflict

type DeleteServicePolicyConflict struct {
	Payload *rest_model.APIErrorEnvelope
}

DeleteServicePolicyConflict handles this case with default header values.

The resource requested to be removed/altered cannot be as it is referenced by another object.

func NewDeleteServicePolicyConflict

func NewDeleteServicePolicyConflict() *DeleteServicePolicyConflict

NewDeleteServicePolicyConflict creates a DeleteServicePolicyConflict with default headers values

func (*DeleteServicePolicyConflict) Error

func (*DeleteServicePolicyConflict) GetPayload

type DeleteServicePolicyOK

type DeleteServicePolicyOK struct {
	Payload *rest_model.Empty
}

DeleteServicePolicyOK handles this case with default header values.

The delete request was successful and the resource has been removed

func NewDeleteServicePolicyOK

func NewDeleteServicePolicyOK() *DeleteServicePolicyOK

NewDeleteServicePolicyOK creates a DeleteServicePolicyOK with default headers values

func (*DeleteServicePolicyOK) Error

func (o *DeleteServicePolicyOK) Error() string

func (*DeleteServicePolicyOK) GetPayload

func (o *DeleteServicePolicyOK) GetPayload() *rest_model.Empty

type DeleteServicePolicyParams

type DeleteServicePolicyParams struct {

	/*ID
	  The id of the requested resource

	*/
	ID string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

DeleteServicePolicyParams contains all the parameters to send to the API endpoint for the delete service policy operation typically these are written to a http.Request

func NewDeleteServicePolicyParams

func NewDeleteServicePolicyParams() *DeleteServicePolicyParams

NewDeleteServicePolicyParams creates a new DeleteServicePolicyParams object with the default values initialized.

func NewDeleteServicePolicyParamsWithContext

func NewDeleteServicePolicyParamsWithContext(ctx context.Context) *DeleteServicePolicyParams

NewDeleteServicePolicyParamsWithContext creates a new DeleteServicePolicyParams object with the default values initialized, and the ability to set a context for a request

func NewDeleteServicePolicyParamsWithHTTPClient

func NewDeleteServicePolicyParamsWithHTTPClient(client *http.Client) *DeleteServicePolicyParams

NewDeleteServicePolicyParamsWithHTTPClient creates a new DeleteServicePolicyParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewDeleteServicePolicyParamsWithTimeout

func NewDeleteServicePolicyParamsWithTimeout(timeout time.Duration) *DeleteServicePolicyParams

NewDeleteServicePolicyParamsWithTimeout creates a new DeleteServicePolicyParams object with the default values initialized, and the ability to set a timeout on a request

func (*DeleteServicePolicyParams) SetContext

func (o *DeleteServicePolicyParams) SetContext(ctx context.Context)

SetContext adds the context to the delete service policy params

func (*DeleteServicePolicyParams) SetHTTPClient

func (o *DeleteServicePolicyParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the delete service policy params

func (*DeleteServicePolicyParams) SetID

func (o *DeleteServicePolicyParams) SetID(id string)

SetID adds the id to the delete service policy params

func (*DeleteServicePolicyParams) SetTimeout

func (o *DeleteServicePolicyParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the delete service policy params

func (*DeleteServicePolicyParams) WithContext

WithContext adds the context to the delete service policy params

func (*DeleteServicePolicyParams) WithHTTPClient

func (o *DeleteServicePolicyParams) WithHTTPClient(client *http.Client) *DeleteServicePolicyParams

WithHTTPClient adds the HTTPClient to the delete service policy params

func (*DeleteServicePolicyParams) WithID

WithID adds the id to the delete service policy params

func (*DeleteServicePolicyParams) WithTimeout

WithTimeout adds the timeout to the delete service policy params

func (*DeleteServicePolicyParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type DeleteServicePolicyReader

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

DeleteServicePolicyReader is a Reader for the DeleteServicePolicy structure.

func (*DeleteServicePolicyReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DeleteServicePolicyUnauthorized

type DeleteServicePolicyUnauthorized struct {
	Payload *rest_model.APIErrorEnvelope
}

DeleteServicePolicyUnauthorized handles this case with default header values.

The currently supplied session does not have the correct access rights to request this resource

func NewDeleteServicePolicyUnauthorized

func NewDeleteServicePolicyUnauthorized() *DeleteServicePolicyUnauthorized

NewDeleteServicePolicyUnauthorized creates a DeleteServicePolicyUnauthorized with default headers values

func (*DeleteServicePolicyUnauthorized) Error

func (*DeleteServicePolicyUnauthorized) GetPayload

type DetailServicePolicyNotFound

type DetailServicePolicyNotFound struct {
	Payload *rest_model.APIErrorEnvelope
}

DetailServicePolicyNotFound handles this case with default header values.

The requested resource does not exist

func NewDetailServicePolicyNotFound

func NewDetailServicePolicyNotFound() *DetailServicePolicyNotFound

NewDetailServicePolicyNotFound creates a DetailServicePolicyNotFound with default headers values

func (*DetailServicePolicyNotFound) Error

func (*DetailServicePolicyNotFound) GetPayload

type DetailServicePolicyOK

type DetailServicePolicyOK struct {
	Payload *rest_model.DetailServicePolicyEnvelop
}

DetailServicePolicyOK handles this case with default header values.

A single service policy

func NewDetailServicePolicyOK

func NewDetailServicePolicyOK() *DetailServicePolicyOK

NewDetailServicePolicyOK creates a DetailServicePolicyOK with default headers values

func (*DetailServicePolicyOK) Error

func (o *DetailServicePolicyOK) Error() string

func (*DetailServicePolicyOK) GetPayload

type DetailServicePolicyParams

type DetailServicePolicyParams struct {

	/*ID
	  The id of the requested resource

	*/
	ID string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

DetailServicePolicyParams contains all the parameters to send to the API endpoint for the detail service policy operation typically these are written to a http.Request

func NewDetailServicePolicyParams

func NewDetailServicePolicyParams() *DetailServicePolicyParams

NewDetailServicePolicyParams creates a new DetailServicePolicyParams object with the default values initialized.

func NewDetailServicePolicyParamsWithContext

func NewDetailServicePolicyParamsWithContext(ctx context.Context) *DetailServicePolicyParams

NewDetailServicePolicyParamsWithContext creates a new DetailServicePolicyParams object with the default values initialized, and the ability to set a context for a request

func NewDetailServicePolicyParamsWithHTTPClient

func NewDetailServicePolicyParamsWithHTTPClient(client *http.Client) *DetailServicePolicyParams

NewDetailServicePolicyParamsWithHTTPClient creates a new DetailServicePolicyParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewDetailServicePolicyParamsWithTimeout

func NewDetailServicePolicyParamsWithTimeout(timeout time.Duration) *DetailServicePolicyParams

NewDetailServicePolicyParamsWithTimeout creates a new DetailServicePolicyParams object with the default values initialized, and the ability to set a timeout on a request

func (*DetailServicePolicyParams) SetContext

func (o *DetailServicePolicyParams) SetContext(ctx context.Context)

SetContext adds the context to the detail service policy params

func (*DetailServicePolicyParams) SetHTTPClient

func (o *DetailServicePolicyParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the detail service policy params

func (*DetailServicePolicyParams) SetID

func (o *DetailServicePolicyParams) SetID(id string)

SetID adds the id to the detail service policy params

func (*DetailServicePolicyParams) SetTimeout

func (o *DetailServicePolicyParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the detail service policy params

func (*DetailServicePolicyParams) WithContext

WithContext adds the context to the detail service policy params

func (*DetailServicePolicyParams) WithHTTPClient

func (o *DetailServicePolicyParams) WithHTTPClient(client *http.Client) *DetailServicePolicyParams

WithHTTPClient adds the HTTPClient to the detail service policy params

func (*DetailServicePolicyParams) WithID

WithID adds the id to the detail service policy params

func (*DetailServicePolicyParams) WithTimeout

WithTimeout adds the timeout to the detail service policy params

func (*DetailServicePolicyParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type DetailServicePolicyReader

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

DetailServicePolicyReader is a Reader for the DetailServicePolicy structure.

func (*DetailServicePolicyReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DetailServicePolicyUnauthorized

type DetailServicePolicyUnauthorized struct {
	Payload *rest_model.APIErrorEnvelope
}

DetailServicePolicyUnauthorized handles this case with default header values.

The currently supplied session does not have the correct access rights to request this resource

func NewDetailServicePolicyUnauthorized

func NewDetailServicePolicyUnauthorized() *DetailServicePolicyUnauthorized

NewDetailServicePolicyUnauthorized creates a DetailServicePolicyUnauthorized with default headers values

func (*DetailServicePolicyUnauthorized) Error

func (*DetailServicePolicyUnauthorized) GetPayload

type ListServicePoliciesOK

type ListServicePoliciesOK struct {
	Payload *rest_model.ListServicePoliciesEnvelope
}

ListServicePoliciesOK handles this case with default header values.

A list of service policies

func NewListServicePoliciesOK

func NewListServicePoliciesOK() *ListServicePoliciesOK

NewListServicePoliciesOK creates a ListServicePoliciesOK with default headers values

func (*ListServicePoliciesOK) Error

func (o *ListServicePoliciesOK) Error() string

func (*ListServicePoliciesOK) GetPayload

type ListServicePoliciesParams

type ListServicePoliciesParams struct {

	/*Filter*/
	Filter *string
	/*Limit*/
	Limit *int64
	/*Offset*/
	Offset *int64

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

ListServicePoliciesParams contains all the parameters to send to the API endpoint for the list service policies operation typically these are written to a http.Request

func NewListServicePoliciesParams

func NewListServicePoliciesParams() *ListServicePoliciesParams

NewListServicePoliciesParams creates a new ListServicePoliciesParams object with the default values initialized.

func NewListServicePoliciesParamsWithContext

func NewListServicePoliciesParamsWithContext(ctx context.Context) *ListServicePoliciesParams

NewListServicePoliciesParamsWithContext creates a new ListServicePoliciesParams object with the default values initialized, and the ability to set a context for a request

func NewListServicePoliciesParamsWithHTTPClient

func NewListServicePoliciesParamsWithHTTPClient(client *http.Client) *ListServicePoliciesParams

NewListServicePoliciesParamsWithHTTPClient creates a new ListServicePoliciesParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewListServicePoliciesParamsWithTimeout

func NewListServicePoliciesParamsWithTimeout(timeout time.Duration) *ListServicePoliciesParams

NewListServicePoliciesParamsWithTimeout creates a new ListServicePoliciesParams object with the default values initialized, and the ability to set a timeout on a request

func (*ListServicePoliciesParams) SetContext

func (o *ListServicePoliciesParams) SetContext(ctx context.Context)

SetContext adds the context to the list service policies params

func (*ListServicePoliciesParams) SetFilter

func (o *ListServicePoliciesParams) SetFilter(filter *string)

SetFilter adds the filter to the list service policies params

func (*ListServicePoliciesParams) SetHTTPClient

func (o *ListServicePoliciesParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the list service policies params

func (*ListServicePoliciesParams) SetLimit

func (o *ListServicePoliciesParams) SetLimit(limit *int64)

SetLimit adds the limit to the list service policies params

func (*ListServicePoliciesParams) SetOffset

func (o *ListServicePoliciesParams) SetOffset(offset *int64)

SetOffset adds the offset to the list service policies params

func (*ListServicePoliciesParams) SetTimeout

func (o *ListServicePoliciesParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the list service policies params

func (*ListServicePoliciesParams) WithContext

WithContext adds the context to the list service policies params

func (*ListServicePoliciesParams) WithFilter

WithFilter adds the filter to the list service policies params

func (*ListServicePoliciesParams) WithHTTPClient

func (o *ListServicePoliciesParams) WithHTTPClient(client *http.Client) *ListServicePoliciesParams

WithHTTPClient adds the HTTPClient to the list service policies params

func (*ListServicePoliciesParams) WithLimit

WithLimit adds the limit to the list service policies params

func (*ListServicePoliciesParams) WithOffset

WithOffset adds the offset to the list service policies params

func (*ListServicePoliciesParams) WithTimeout

WithTimeout adds the timeout to the list service policies params

func (*ListServicePoliciesParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type ListServicePoliciesReader

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

ListServicePoliciesReader is a Reader for the ListServicePolicies structure.

func (*ListServicePoliciesReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ListServicePoliciesUnauthorized

type ListServicePoliciesUnauthorized struct {
	Payload *rest_model.APIErrorEnvelope
}

ListServicePoliciesUnauthorized handles this case with default header values.

The currently supplied session does not have the correct access rights to request this resource

func NewListServicePoliciesUnauthorized

func NewListServicePoliciesUnauthorized() *ListServicePoliciesUnauthorized

NewListServicePoliciesUnauthorized creates a ListServicePoliciesUnauthorized with default headers values

func (*ListServicePoliciesUnauthorized) Error

func (*ListServicePoliciesUnauthorized) GetPayload

type ListServicePolicyIdentitiesBadRequest

type ListServicePolicyIdentitiesBadRequest struct {
	Payload *rest_model.APIErrorEnvelope
}

ListServicePolicyIdentitiesBadRequest handles this case with default header values.

The requested resource does not exist

func NewListServicePolicyIdentitiesBadRequest

func NewListServicePolicyIdentitiesBadRequest() *ListServicePolicyIdentitiesBadRequest

NewListServicePolicyIdentitiesBadRequest creates a ListServicePolicyIdentitiesBadRequest with default headers values

func (*ListServicePolicyIdentitiesBadRequest) Error

func (*ListServicePolicyIdentitiesBadRequest) GetPayload

type ListServicePolicyIdentitiesOK

type ListServicePolicyIdentitiesOK struct {
	Payload *rest_model.ListIdentitiesEnvelope
}

ListServicePolicyIdentitiesOK handles this case with default header values.

A list of identities

func NewListServicePolicyIdentitiesOK

func NewListServicePolicyIdentitiesOK() *ListServicePolicyIdentitiesOK

NewListServicePolicyIdentitiesOK creates a ListServicePolicyIdentitiesOK with default headers values

func (*ListServicePolicyIdentitiesOK) Error

func (*ListServicePolicyIdentitiesOK) GetPayload

type ListServicePolicyIdentitiesParams

type ListServicePolicyIdentitiesParams struct {

	/*Filter*/
	Filter *string
	/*ID
	  The id of the requested resource

	*/
	ID string
	/*Limit*/
	Limit *int64
	/*Offset*/
	Offset *int64

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

ListServicePolicyIdentitiesParams contains all the parameters to send to the API endpoint for the list service policy identities operation typically these are written to a http.Request

func NewListServicePolicyIdentitiesParams

func NewListServicePolicyIdentitiesParams() *ListServicePolicyIdentitiesParams

NewListServicePolicyIdentitiesParams creates a new ListServicePolicyIdentitiesParams object with the default values initialized.

func NewListServicePolicyIdentitiesParamsWithContext

func NewListServicePolicyIdentitiesParamsWithContext(ctx context.Context) *ListServicePolicyIdentitiesParams

NewListServicePolicyIdentitiesParamsWithContext creates a new ListServicePolicyIdentitiesParams object with the default values initialized, and the ability to set a context for a request

func NewListServicePolicyIdentitiesParamsWithHTTPClient

func NewListServicePolicyIdentitiesParamsWithHTTPClient(client *http.Client) *ListServicePolicyIdentitiesParams

NewListServicePolicyIdentitiesParamsWithHTTPClient creates a new ListServicePolicyIdentitiesParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewListServicePolicyIdentitiesParamsWithTimeout

func NewListServicePolicyIdentitiesParamsWithTimeout(timeout time.Duration) *ListServicePolicyIdentitiesParams

NewListServicePolicyIdentitiesParamsWithTimeout creates a new ListServicePolicyIdentitiesParams object with the default values initialized, and the ability to set a timeout on a request

func (*ListServicePolicyIdentitiesParams) SetContext

SetContext adds the context to the list service policy identities params

func (*ListServicePolicyIdentitiesParams) SetFilter

func (o *ListServicePolicyIdentitiesParams) SetFilter(filter *string)

SetFilter adds the filter to the list service policy identities params

func (*ListServicePolicyIdentitiesParams) SetHTTPClient

func (o *ListServicePolicyIdentitiesParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the list service policy identities params

func (*ListServicePolicyIdentitiesParams) SetID

SetID adds the id to the list service policy identities params

func (*ListServicePolicyIdentitiesParams) SetLimit

func (o *ListServicePolicyIdentitiesParams) SetLimit(limit *int64)

SetLimit adds the limit to the list service policy identities params

func (*ListServicePolicyIdentitiesParams) SetOffset

func (o *ListServicePolicyIdentitiesParams) SetOffset(offset *int64)

SetOffset adds the offset to the list service policy identities params

func (*ListServicePolicyIdentitiesParams) SetTimeout

func (o *ListServicePolicyIdentitiesParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the list service policy identities params

func (*ListServicePolicyIdentitiesParams) WithContext

WithContext adds the context to the list service policy identities params

func (*ListServicePolicyIdentitiesParams) WithFilter

WithFilter adds the filter to the list service policy identities params

func (*ListServicePolicyIdentitiesParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the list service policy identities params

func (*ListServicePolicyIdentitiesParams) WithID

WithID adds the id to the list service policy identities params

func (*ListServicePolicyIdentitiesParams) WithLimit

WithLimit adds the limit to the list service policy identities params

func (*ListServicePolicyIdentitiesParams) WithOffset

WithOffset adds the offset to the list service policy identities params

func (*ListServicePolicyIdentitiesParams) WithTimeout

WithTimeout adds the timeout to the list service policy identities params

func (*ListServicePolicyIdentitiesParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type ListServicePolicyIdentitiesReader

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

ListServicePolicyIdentitiesReader is a Reader for the ListServicePolicyIdentities structure.

func (*ListServicePolicyIdentitiesReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ListServicePolicyIdentitiesUnauthorized

type ListServicePolicyIdentitiesUnauthorized struct {
	Payload *rest_model.APIErrorEnvelope
}

ListServicePolicyIdentitiesUnauthorized handles this case with default header values.

The currently supplied session does not have the correct access rights to request this resource

func NewListServicePolicyIdentitiesUnauthorized

func NewListServicePolicyIdentitiesUnauthorized() *ListServicePolicyIdentitiesUnauthorized

NewListServicePolicyIdentitiesUnauthorized creates a ListServicePolicyIdentitiesUnauthorized with default headers values

func (*ListServicePolicyIdentitiesUnauthorized) Error

func (*ListServicePolicyIdentitiesUnauthorized) GetPayload

type ListServicePolicyPostureChecksBadRequest added in v0.17.5

type ListServicePolicyPostureChecksBadRequest struct {
	Payload *rest_model.APIErrorEnvelope
}

ListServicePolicyPostureChecksBadRequest handles this case with default header values.

The requested resource does not exist

func NewListServicePolicyPostureChecksBadRequest added in v0.17.5

func NewListServicePolicyPostureChecksBadRequest() *ListServicePolicyPostureChecksBadRequest

NewListServicePolicyPostureChecksBadRequest creates a ListServicePolicyPostureChecksBadRequest with default headers values

func (*ListServicePolicyPostureChecksBadRequest) Error added in v0.17.5

func (*ListServicePolicyPostureChecksBadRequest) GetPayload added in v0.17.5

type ListServicePolicyPostureChecksOK added in v0.17.5

type ListServicePolicyPostureChecksOK struct {
	Payload *rest_model.ListPostureCheckEnvelope
}

ListServicePolicyPostureChecksOK handles this case with default header values.

A list of posture checks

func NewListServicePolicyPostureChecksOK added in v0.17.5

func NewListServicePolicyPostureChecksOK() *ListServicePolicyPostureChecksOK

NewListServicePolicyPostureChecksOK creates a ListServicePolicyPostureChecksOK with default headers values

func (*ListServicePolicyPostureChecksOK) Error added in v0.17.5

func (*ListServicePolicyPostureChecksOK) GetPayload added in v0.17.5

type ListServicePolicyPostureChecksParams added in v0.17.5

type ListServicePolicyPostureChecksParams struct {

	/*Filter*/
	Filter *string
	/*ID
	  The id of the requested resource

	*/
	ID string
	/*Limit*/
	Limit *int64
	/*Offset*/
	Offset *int64

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

ListServicePolicyPostureChecksParams contains all the parameters to send to the API endpoint for the list service policy posture checks operation typically these are written to a http.Request

func NewListServicePolicyPostureChecksParams added in v0.17.5

func NewListServicePolicyPostureChecksParams() *ListServicePolicyPostureChecksParams

NewListServicePolicyPostureChecksParams creates a new ListServicePolicyPostureChecksParams object with the default values initialized.

func NewListServicePolicyPostureChecksParamsWithContext added in v0.17.5

func NewListServicePolicyPostureChecksParamsWithContext(ctx context.Context) *ListServicePolicyPostureChecksParams

NewListServicePolicyPostureChecksParamsWithContext creates a new ListServicePolicyPostureChecksParams object with the default values initialized, and the ability to set a context for a request

func NewListServicePolicyPostureChecksParamsWithHTTPClient added in v0.17.5

func NewListServicePolicyPostureChecksParamsWithHTTPClient(client *http.Client) *ListServicePolicyPostureChecksParams

NewListServicePolicyPostureChecksParamsWithHTTPClient creates a new ListServicePolicyPostureChecksParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewListServicePolicyPostureChecksParamsWithTimeout added in v0.17.5

func NewListServicePolicyPostureChecksParamsWithTimeout(timeout time.Duration) *ListServicePolicyPostureChecksParams

NewListServicePolicyPostureChecksParamsWithTimeout creates a new ListServicePolicyPostureChecksParams object with the default values initialized, and the ability to set a timeout on a request

func (*ListServicePolicyPostureChecksParams) SetContext added in v0.17.5

SetContext adds the context to the list service policy posture checks params

func (*ListServicePolicyPostureChecksParams) SetFilter added in v0.17.5

func (o *ListServicePolicyPostureChecksParams) SetFilter(filter *string)

SetFilter adds the filter to the list service policy posture checks params

func (*ListServicePolicyPostureChecksParams) SetHTTPClient added in v0.17.5

func (o *ListServicePolicyPostureChecksParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the list service policy posture checks params

func (*ListServicePolicyPostureChecksParams) SetID added in v0.17.5

SetID adds the id to the list service policy posture checks params

func (*ListServicePolicyPostureChecksParams) SetLimit added in v0.17.5

func (o *ListServicePolicyPostureChecksParams) SetLimit(limit *int64)

SetLimit adds the limit to the list service policy posture checks params

func (*ListServicePolicyPostureChecksParams) SetOffset added in v0.17.5

func (o *ListServicePolicyPostureChecksParams) SetOffset(offset *int64)

SetOffset adds the offset to the list service policy posture checks params

func (*ListServicePolicyPostureChecksParams) SetTimeout added in v0.17.5

func (o *ListServicePolicyPostureChecksParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the list service policy posture checks params

func (*ListServicePolicyPostureChecksParams) WithContext added in v0.17.5

WithContext adds the context to the list service policy posture checks params

func (*ListServicePolicyPostureChecksParams) WithFilter added in v0.17.5

WithFilter adds the filter to the list service policy posture checks params

func (*ListServicePolicyPostureChecksParams) WithHTTPClient added in v0.17.5

WithHTTPClient adds the HTTPClient to the list service policy posture checks params

func (*ListServicePolicyPostureChecksParams) WithID added in v0.17.5

WithID adds the id to the list service policy posture checks params

func (*ListServicePolicyPostureChecksParams) WithLimit added in v0.17.5

WithLimit adds the limit to the list service policy posture checks params

func (*ListServicePolicyPostureChecksParams) WithOffset added in v0.17.5

WithOffset adds the offset to the list service policy posture checks params

func (*ListServicePolicyPostureChecksParams) WithTimeout added in v0.17.5

WithTimeout adds the timeout to the list service policy posture checks params

func (*ListServicePolicyPostureChecksParams) WriteToRequest added in v0.17.5

WriteToRequest writes these params to a swagger request

type ListServicePolicyPostureChecksReader added in v0.17.5

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

ListServicePolicyPostureChecksReader is a Reader for the ListServicePolicyPostureChecks structure.

func (*ListServicePolicyPostureChecksReader) ReadResponse added in v0.17.5

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

ReadResponse reads a server response into the received o.

type ListServicePolicyPostureChecksUnauthorized added in v0.17.5

type ListServicePolicyPostureChecksUnauthorized struct {
	Payload *rest_model.APIErrorEnvelope
}

ListServicePolicyPostureChecksUnauthorized handles this case with default header values.

The currently supplied session does not have the correct access rights to request this resource

func NewListServicePolicyPostureChecksUnauthorized added in v0.17.5

func NewListServicePolicyPostureChecksUnauthorized() *ListServicePolicyPostureChecksUnauthorized

NewListServicePolicyPostureChecksUnauthorized creates a ListServicePolicyPostureChecksUnauthorized with default headers values

func (*ListServicePolicyPostureChecksUnauthorized) Error added in v0.17.5

func (*ListServicePolicyPostureChecksUnauthorized) GetPayload added in v0.17.5

type ListServicePolicyServicesBadRequest

type ListServicePolicyServicesBadRequest struct {
	Payload *rest_model.APIErrorEnvelope
}

ListServicePolicyServicesBadRequest handles this case with default header values.

The requested resource does not exist

func NewListServicePolicyServicesBadRequest

func NewListServicePolicyServicesBadRequest() *ListServicePolicyServicesBadRequest

NewListServicePolicyServicesBadRequest creates a ListServicePolicyServicesBadRequest with default headers values

func (*ListServicePolicyServicesBadRequest) Error

func (*ListServicePolicyServicesBadRequest) GetPayload

type ListServicePolicyServicesOK

type ListServicePolicyServicesOK struct {
	Payload *rest_model.ListServicesEnvelope
}

ListServicePolicyServicesOK handles this case with default header values.

A list of services

func NewListServicePolicyServicesOK

func NewListServicePolicyServicesOK() *ListServicePolicyServicesOK

NewListServicePolicyServicesOK creates a ListServicePolicyServicesOK with default headers values

func (*ListServicePolicyServicesOK) Error

func (*ListServicePolicyServicesOK) GetPayload

type ListServicePolicyServicesParams

type ListServicePolicyServicesParams struct {

	/*Filter*/
	Filter *string
	/*ID
	  The id of the requested resource

	*/
	ID string
	/*Limit*/
	Limit *int64
	/*Offset*/
	Offset *int64

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

ListServicePolicyServicesParams contains all the parameters to send to the API endpoint for the list service policy services operation typically these are written to a http.Request

func NewListServicePolicyServicesParams

func NewListServicePolicyServicesParams() *ListServicePolicyServicesParams

NewListServicePolicyServicesParams creates a new ListServicePolicyServicesParams object with the default values initialized.

func NewListServicePolicyServicesParamsWithContext

func NewListServicePolicyServicesParamsWithContext(ctx context.Context) *ListServicePolicyServicesParams

NewListServicePolicyServicesParamsWithContext creates a new ListServicePolicyServicesParams object with the default values initialized, and the ability to set a context for a request

func NewListServicePolicyServicesParamsWithHTTPClient

func NewListServicePolicyServicesParamsWithHTTPClient(client *http.Client) *ListServicePolicyServicesParams

NewListServicePolicyServicesParamsWithHTTPClient creates a new ListServicePolicyServicesParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewListServicePolicyServicesParamsWithTimeout

func NewListServicePolicyServicesParamsWithTimeout(timeout time.Duration) *ListServicePolicyServicesParams

NewListServicePolicyServicesParamsWithTimeout creates a new ListServicePolicyServicesParams object with the default values initialized, and the ability to set a timeout on a request

func (*ListServicePolicyServicesParams) SetContext

func (o *ListServicePolicyServicesParams) SetContext(ctx context.Context)

SetContext adds the context to the list service policy services params

func (*ListServicePolicyServicesParams) SetFilter

func (o *ListServicePolicyServicesParams) SetFilter(filter *string)

SetFilter adds the filter to the list service policy services params

func (*ListServicePolicyServicesParams) SetHTTPClient

func (o *ListServicePolicyServicesParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the list service policy services params

func (*ListServicePolicyServicesParams) SetID

SetID adds the id to the list service policy services params

func (*ListServicePolicyServicesParams) SetLimit

func (o *ListServicePolicyServicesParams) SetLimit(limit *int64)

SetLimit adds the limit to the list service policy services params

func (*ListServicePolicyServicesParams) SetOffset

func (o *ListServicePolicyServicesParams) SetOffset(offset *int64)

SetOffset adds the offset to the list service policy services params

func (*ListServicePolicyServicesParams) SetTimeout

func (o *ListServicePolicyServicesParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the list service policy services params

func (*ListServicePolicyServicesParams) WithContext

WithContext adds the context to the list service policy services params

func (*ListServicePolicyServicesParams) WithFilter

WithFilter adds the filter to the list service policy services params

func (*ListServicePolicyServicesParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the list service policy services params

func (*ListServicePolicyServicesParams) WithID

WithID adds the id to the list service policy services params

func (*ListServicePolicyServicesParams) WithLimit

WithLimit adds the limit to the list service policy services params

func (*ListServicePolicyServicesParams) WithOffset

WithOffset adds the offset to the list service policy services params

func (*ListServicePolicyServicesParams) WithTimeout

WithTimeout adds the timeout to the list service policy services params

func (*ListServicePolicyServicesParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type ListServicePolicyServicesReader

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

ListServicePolicyServicesReader is a Reader for the ListServicePolicyServices structure.

func (*ListServicePolicyServicesReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ListServicePolicyServicesUnauthorized

type ListServicePolicyServicesUnauthorized struct {
	Payload *rest_model.APIErrorEnvelope
}

ListServicePolicyServicesUnauthorized handles this case with default header values.

The currently supplied session does not have the correct access rights to request this resource

func NewListServicePolicyServicesUnauthorized

func NewListServicePolicyServicesUnauthorized() *ListServicePolicyServicesUnauthorized

NewListServicePolicyServicesUnauthorized creates a ListServicePolicyServicesUnauthorized with default headers values

func (*ListServicePolicyServicesUnauthorized) Error

func (*ListServicePolicyServicesUnauthorized) GetPayload

type PatchServicePolicyBadRequest

type PatchServicePolicyBadRequest struct {
	Payload *rest_model.APIErrorEnvelope
}

PatchServicePolicyBadRequest handles this case with default header values.

The supplied request contains invalid fields or could not be parsed (json and non-json bodies). The error's code, message, and cause fields can be inspected for further information

func NewPatchServicePolicyBadRequest

func NewPatchServicePolicyBadRequest() *PatchServicePolicyBadRequest

NewPatchServicePolicyBadRequest creates a PatchServicePolicyBadRequest with default headers values

func (*PatchServicePolicyBadRequest) Error

func (*PatchServicePolicyBadRequest) GetPayload

type PatchServicePolicyNotFound

type PatchServicePolicyNotFound struct {
	Payload *rest_model.APIErrorEnvelope
}

PatchServicePolicyNotFound handles this case with default header values.

The requested resource does not exist

func NewPatchServicePolicyNotFound

func NewPatchServicePolicyNotFound() *PatchServicePolicyNotFound

NewPatchServicePolicyNotFound creates a PatchServicePolicyNotFound with default headers values

func (*PatchServicePolicyNotFound) Error

func (*PatchServicePolicyNotFound) GetPayload

type PatchServicePolicyOK

type PatchServicePolicyOK struct {
	Payload *rest_model.Empty
}

PatchServicePolicyOK handles this case with default header values.

The patch request was successful and the resource has been altered

func NewPatchServicePolicyOK

func NewPatchServicePolicyOK() *PatchServicePolicyOK

NewPatchServicePolicyOK creates a PatchServicePolicyOK with default headers values

func (*PatchServicePolicyOK) Error

func (o *PatchServicePolicyOK) Error() string

func (*PatchServicePolicyOK) GetPayload

func (o *PatchServicePolicyOK) GetPayload() *rest_model.Empty

type PatchServicePolicyParams

type PatchServicePolicyParams struct {

	/*Body
	  A service policy patch object

	*/
	Body *rest_model.ServicePolicyPatch
	/*ID
	  The id of the requested resource

	*/
	ID string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

PatchServicePolicyParams contains all the parameters to send to the API endpoint for the patch service policy operation typically these are written to a http.Request

func NewPatchServicePolicyParams

func NewPatchServicePolicyParams() *PatchServicePolicyParams

NewPatchServicePolicyParams creates a new PatchServicePolicyParams object with the default values initialized.

func NewPatchServicePolicyParamsWithContext

func NewPatchServicePolicyParamsWithContext(ctx context.Context) *PatchServicePolicyParams

NewPatchServicePolicyParamsWithContext creates a new PatchServicePolicyParams object with the default values initialized, and the ability to set a context for a request

func NewPatchServicePolicyParamsWithHTTPClient

func NewPatchServicePolicyParamsWithHTTPClient(client *http.Client) *PatchServicePolicyParams

NewPatchServicePolicyParamsWithHTTPClient creates a new PatchServicePolicyParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewPatchServicePolicyParamsWithTimeout

func NewPatchServicePolicyParamsWithTimeout(timeout time.Duration) *PatchServicePolicyParams

NewPatchServicePolicyParamsWithTimeout creates a new PatchServicePolicyParams object with the default values initialized, and the ability to set a timeout on a request

func (*PatchServicePolicyParams) SetBody

SetBody adds the body to the patch service policy params

func (*PatchServicePolicyParams) SetContext

func (o *PatchServicePolicyParams) SetContext(ctx context.Context)

SetContext adds the context to the patch service policy params

func (*PatchServicePolicyParams) SetHTTPClient

func (o *PatchServicePolicyParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the patch service policy params

func (*PatchServicePolicyParams) SetID

func (o *PatchServicePolicyParams) SetID(id string)

SetID adds the id to the patch service policy params

func (*PatchServicePolicyParams) SetTimeout

func (o *PatchServicePolicyParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the patch service policy params

func (*PatchServicePolicyParams) WithBody

WithBody adds the body to the patch service policy params

func (*PatchServicePolicyParams) WithContext

WithContext adds the context to the patch service policy params

func (*PatchServicePolicyParams) WithHTTPClient

func (o *PatchServicePolicyParams) WithHTTPClient(client *http.Client) *PatchServicePolicyParams

WithHTTPClient adds the HTTPClient to the patch service policy params

func (*PatchServicePolicyParams) WithID

WithID adds the id to the patch service policy params

func (*PatchServicePolicyParams) WithTimeout

WithTimeout adds the timeout to the patch service policy params

func (*PatchServicePolicyParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type PatchServicePolicyReader

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

PatchServicePolicyReader is a Reader for the PatchServicePolicy structure.

func (*PatchServicePolicyReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type PatchServicePolicyUnauthorized

type PatchServicePolicyUnauthorized struct {
	Payload *rest_model.APIErrorEnvelope
}

PatchServicePolicyUnauthorized handles this case with default header values.

The currently supplied session does not have the correct access rights to request this resource

func NewPatchServicePolicyUnauthorized

func NewPatchServicePolicyUnauthorized() *PatchServicePolicyUnauthorized

NewPatchServicePolicyUnauthorized creates a PatchServicePolicyUnauthorized with default headers values

func (*PatchServicePolicyUnauthorized) Error

func (*PatchServicePolicyUnauthorized) GetPayload

type UpdateServicePolicyBadRequest

type UpdateServicePolicyBadRequest struct {
	Payload *rest_model.APIErrorEnvelope
}

UpdateServicePolicyBadRequest handles this case with default header values.

The supplied request contains invalid fields or could not be parsed (json and non-json bodies). The error's code, message, and cause fields can be inspected for further information

func NewUpdateServicePolicyBadRequest

func NewUpdateServicePolicyBadRequest() *UpdateServicePolicyBadRequest

NewUpdateServicePolicyBadRequest creates a UpdateServicePolicyBadRequest with default headers values

func (*UpdateServicePolicyBadRequest) Error

func (*UpdateServicePolicyBadRequest) GetPayload

type UpdateServicePolicyNotFound

type UpdateServicePolicyNotFound struct {
	Payload *rest_model.APIErrorEnvelope
}

UpdateServicePolicyNotFound handles this case with default header values.

The requested resource does not exist

func NewUpdateServicePolicyNotFound

func NewUpdateServicePolicyNotFound() *UpdateServicePolicyNotFound

NewUpdateServicePolicyNotFound creates a UpdateServicePolicyNotFound with default headers values

func (*UpdateServicePolicyNotFound) Error

func (*UpdateServicePolicyNotFound) GetPayload

type UpdateServicePolicyOK

type UpdateServicePolicyOK struct {
	Payload *rest_model.Empty
}

UpdateServicePolicyOK handles this case with default header values.

The update request was successful and the resource has been altered

func NewUpdateServicePolicyOK

func NewUpdateServicePolicyOK() *UpdateServicePolicyOK

NewUpdateServicePolicyOK creates a UpdateServicePolicyOK with default headers values

func (*UpdateServicePolicyOK) Error

func (o *UpdateServicePolicyOK) Error() string

func (*UpdateServicePolicyOK) GetPayload

func (o *UpdateServicePolicyOK) GetPayload() *rest_model.Empty

type UpdateServicePolicyParams

type UpdateServicePolicyParams struct {

	/*Body
	  A service policy update object

	*/
	Body *rest_model.ServicePolicyUpdate
	/*ID
	  The id of the requested resource

	*/
	ID string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

UpdateServicePolicyParams contains all the parameters to send to the API endpoint for the update service policy operation typically these are written to a http.Request

func NewUpdateServicePolicyParams

func NewUpdateServicePolicyParams() *UpdateServicePolicyParams

NewUpdateServicePolicyParams creates a new UpdateServicePolicyParams object with the default values initialized.

func NewUpdateServicePolicyParamsWithContext

func NewUpdateServicePolicyParamsWithContext(ctx context.Context) *UpdateServicePolicyParams

NewUpdateServicePolicyParamsWithContext creates a new UpdateServicePolicyParams object with the default values initialized, and the ability to set a context for a request

func NewUpdateServicePolicyParamsWithHTTPClient

func NewUpdateServicePolicyParamsWithHTTPClient(client *http.Client) *UpdateServicePolicyParams

NewUpdateServicePolicyParamsWithHTTPClient creates a new UpdateServicePolicyParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewUpdateServicePolicyParamsWithTimeout

func NewUpdateServicePolicyParamsWithTimeout(timeout time.Duration) *UpdateServicePolicyParams

NewUpdateServicePolicyParamsWithTimeout creates a new UpdateServicePolicyParams object with the default values initialized, and the ability to set a timeout on a request

func (*UpdateServicePolicyParams) SetBody

SetBody adds the body to the update service policy params

func (*UpdateServicePolicyParams) SetContext

func (o *UpdateServicePolicyParams) SetContext(ctx context.Context)

SetContext adds the context to the update service policy params

func (*UpdateServicePolicyParams) SetHTTPClient

func (o *UpdateServicePolicyParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the update service policy params

func (*UpdateServicePolicyParams) SetID

func (o *UpdateServicePolicyParams) SetID(id string)

SetID adds the id to the update service policy params

func (*UpdateServicePolicyParams) SetTimeout

func (o *UpdateServicePolicyParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the update service policy params

func (*UpdateServicePolicyParams) WithBody

WithBody adds the body to the update service policy params

func (*UpdateServicePolicyParams) WithContext

WithContext adds the context to the update service policy params

func (*UpdateServicePolicyParams) WithHTTPClient

func (o *UpdateServicePolicyParams) WithHTTPClient(client *http.Client) *UpdateServicePolicyParams

WithHTTPClient adds the HTTPClient to the update service policy params

func (*UpdateServicePolicyParams) WithID

WithID adds the id to the update service policy params

func (*UpdateServicePolicyParams) WithTimeout

WithTimeout adds the timeout to the update service policy params

func (*UpdateServicePolicyParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type UpdateServicePolicyReader

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

UpdateServicePolicyReader is a Reader for the UpdateServicePolicy structure.

func (*UpdateServicePolicyReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UpdateServicePolicyUnauthorized

type UpdateServicePolicyUnauthorized struct {
	Payload *rest_model.APIErrorEnvelope
}

UpdateServicePolicyUnauthorized handles this case with default header values.

The currently supplied session does not have the correct access rights to request this resource

func NewUpdateServicePolicyUnauthorized

func NewUpdateServicePolicyUnauthorized() *UpdateServicePolicyUnauthorized

NewUpdateServicePolicyUnauthorized creates a UpdateServicePolicyUnauthorized with default headers values

func (*UpdateServicePolicyUnauthorized) Error

func (*UpdateServicePolicyUnauthorized) GetPayload

Jump to

Keyboard shortcuts

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