service_policy

package
v0.26.2 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2023 License: Apache-2.0 Imports: 11 Imported by: 3

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, opts ...ClientOption) (*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, opts ...ClientOption) (*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, opts ...ClientOption) (*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, opts ...ClientOption) (*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, opts ...ClientOption) (*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

func (a *Client) ListServicePolicyPostureChecks(params *ListServicePolicyPostureChecksParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*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, opts ...ClientOption) (*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, opts ...ClientOption) (*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, opts ...ClientOption) (*UpdateServicePolicyOK, error)

UpdateServicePolicy updates all fields on a service policy

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

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	CreateServicePolicy(params *CreateServicePolicyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateServicePolicyCreated, error)

	DeleteServicePolicy(params *DeleteServicePolicyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteServicePolicyOK, error)

	DetailServicePolicy(params *DetailServicePolicyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DetailServicePolicyOK, error)

	ListServicePolicies(params *ListServicePoliciesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListServicePoliciesOK, error)

	ListServicePolicyIdentities(params *ListServicePolicyIdentitiesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListServicePolicyIdentitiesOK, error)

	ListServicePolicyPostureChecks(params *ListServicePolicyPostureChecksParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListServicePolicyPostureChecksOK, error)

	ListServicePolicyServices(params *ListServicePolicyServicesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListServicePolicyServicesOK, error)

	PatchServicePolicy(params *PatchServicePolicyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PatchServicePolicyOK, error)

	UpdateServicePolicy(params *UpdateServicePolicyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateServicePolicyOK, error)

	SetTransport(transport runtime.ClientTransport)
}

ClientService is the interface for Client methods

func New

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

New creates a new service policy API client.

type CreateServicePolicyBadRequest

type CreateServicePolicyBadRequest struct {
	Payload *rest_model.APIErrorEnvelope
}
CreateServicePolicyBadRequest describes a response with status code 400, 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

type CreateServicePolicyCreated struct {
	Payload *rest_model.CreateEnvelope
}
CreateServicePolicyCreated describes a response with status code 201, with default header values.

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

func NewCreateServicePolicyCreated

func NewCreateServicePolicyCreated() *CreateServicePolicyCreated

NewCreateServicePolicyCreated creates a CreateServicePolicyCreated with default headers values

func (*CreateServicePolicyCreated) Error

func (*CreateServicePolicyCreated) GetPayload

type CreateServicePolicyParams

type CreateServicePolicyParams struct {

	/* Policy.

	   A service policy to create
	*/
	Policy *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 timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewCreateServicePolicyParamsWithContext

func NewCreateServicePolicyParamsWithContext(ctx context.Context) *CreateServicePolicyParams

NewCreateServicePolicyParamsWithContext creates a new CreateServicePolicyParams object with 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 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 ability to set a timeout on a request.

func (*CreateServicePolicyParams) SetContext

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

SetContext adds the context to the create service policy params

func (*CreateServicePolicyParams) SetDefaults

func (o *CreateServicePolicyParams) SetDefaults()

SetDefaults hydrates default values in the create service policy params (not the query body).

All values with no default are reset to their zero value.

func (*CreateServicePolicyParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the create service policy params

func (*CreateServicePolicyParams) SetPolicy

SetPolicy adds the policy 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) WithContext

WithContext adds the context to the create service policy params

func (*CreateServicePolicyParams) WithDefaults

WithDefaults hydrates default values in the create service policy params (not the query body).

All values with no default are reset to their zero value.

func (*CreateServicePolicyParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the create service policy params

func (*CreateServicePolicyParams) WithPolicy

WithPolicy adds the policy 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 CreateServicePolicyTooManyRequests added in v0.26.0

type CreateServicePolicyTooManyRequests struct {
	Payload *rest_model.APIErrorEnvelope
}
CreateServicePolicyTooManyRequests describes a response with status code 429, with default header values.

The resource requested is rate limited and the rate limit has been exceeded

func NewCreateServicePolicyTooManyRequests added in v0.26.0

func NewCreateServicePolicyTooManyRequests() *CreateServicePolicyTooManyRequests

NewCreateServicePolicyTooManyRequests creates a CreateServicePolicyTooManyRequests with default headers values

func (*CreateServicePolicyTooManyRequests) Error added in v0.26.0

func (*CreateServicePolicyTooManyRequests) GetPayload added in v0.26.0

type CreateServicePolicyUnauthorized

type CreateServicePolicyUnauthorized struct {
	Payload *rest_model.APIErrorEnvelope
}
CreateServicePolicyUnauthorized describes a response with status code 401, 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 describes a response with status code 400, 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 describes a response with status code 409, 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 describes a response with status code 200, 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 timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewDeleteServicePolicyParamsWithContext

func NewDeleteServicePolicyParamsWithContext(ctx context.Context) *DeleteServicePolicyParams

NewDeleteServicePolicyParamsWithContext creates a new DeleteServicePolicyParams object with 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 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 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) SetDefaults

func (o *DeleteServicePolicyParams) SetDefaults()

SetDefaults hydrates default values in the delete service policy params (not the query body).

All values with no default are reset to their zero value.

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) WithDefaults

WithDefaults hydrates default values in the delete service policy params (not the query body).

All values with no default are reset to their zero value.

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 DeleteServicePolicyTooManyRequests added in v0.26.0

type DeleteServicePolicyTooManyRequests struct {
	Payload *rest_model.APIErrorEnvelope
}
DeleteServicePolicyTooManyRequests describes a response with status code 429, with default header values.

The resource requested is rate limited and the rate limit has been exceeded

func NewDeleteServicePolicyTooManyRequests added in v0.26.0

func NewDeleteServicePolicyTooManyRequests() *DeleteServicePolicyTooManyRequests

NewDeleteServicePolicyTooManyRequests creates a DeleteServicePolicyTooManyRequests with default headers values

func (*DeleteServicePolicyTooManyRequests) Error added in v0.26.0

func (*DeleteServicePolicyTooManyRequests) GetPayload added in v0.26.0

type DeleteServicePolicyUnauthorized

type DeleteServicePolicyUnauthorized struct {
	Payload *rest_model.APIErrorEnvelope
}
DeleteServicePolicyUnauthorized describes a response with status code 401, 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 describes a response with status code 404, 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 describes a response with status code 200, 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 timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewDetailServicePolicyParamsWithContext

func NewDetailServicePolicyParamsWithContext(ctx context.Context) *DetailServicePolicyParams

NewDetailServicePolicyParamsWithContext creates a new DetailServicePolicyParams object with 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 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 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) SetDefaults

func (o *DetailServicePolicyParams) SetDefaults()

SetDefaults hydrates default values in the detail service policy params (not the query body).

All values with no default are reset to their zero value.

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) WithDefaults

WithDefaults hydrates default values in the detail service policy params (not the query body).

All values with no default are reset to their zero value.

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 DetailServicePolicyTooManyRequests added in v0.26.0

type DetailServicePolicyTooManyRequests struct {
	Payload *rest_model.APIErrorEnvelope
}
DetailServicePolicyTooManyRequests describes a response with status code 429, with default header values.

The resource requested is rate limited and the rate limit has been exceeded

func NewDetailServicePolicyTooManyRequests added in v0.26.0

func NewDetailServicePolicyTooManyRequests() *DetailServicePolicyTooManyRequests

NewDetailServicePolicyTooManyRequests creates a DetailServicePolicyTooManyRequests with default headers values

func (*DetailServicePolicyTooManyRequests) Error added in v0.26.0

func (*DetailServicePolicyTooManyRequests) GetPayload added in v0.26.0

type DetailServicePolicyUnauthorized

type DetailServicePolicyUnauthorized struct {
	Payload *rest_model.APIErrorEnvelope
}
DetailServicePolicyUnauthorized describes a response with status code 401, 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 ListServicePoliciesBadRequest

type ListServicePoliciesBadRequest struct {
	Payload *rest_model.APIErrorEnvelope
}
ListServicePoliciesBadRequest describes a response with status code 400, 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 NewListServicePoliciesBadRequest

func NewListServicePoliciesBadRequest() *ListServicePoliciesBadRequest

NewListServicePoliciesBadRequest creates a ListServicePoliciesBadRequest with default headers values

func (*ListServicePoliciesBadRequest) Error

func (*ListServicePoliciesBadRequest) GetPayload

type ListServicePoliciesOK

type ListServicePoliciesOK struct {
	Payload *rest_model.ListServicePoliciesEnvelope
}
ListServicePoliciesOK describes a response with status code 200, 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 timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewListServicePoliciesParamsWithContext

func NewListServicePoliciesParamsWithContext(ctx context.Context) *ListServicePoliciesParams

NewListServicePoliciesParamsWithContext creates a new ListServicePoliciesParams object with 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 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 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) SetDefaults

func (o *ListServicePoliciesParams) SetDefaults()

SetDefaults hydrates default values in the list service policies params (not the query body).

All values with no default are reset to their zero value.

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) WithDefaults

WithDefaults hydrates default values in the list service policies params (not the query body).

All values with no default are reset to their zero value.

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 ListServicePoliciesTooManyRequests added in v0.26.0

type ListServicePoliciesTooManyRequests struct {
	Payload *rest_model.APIErrorEnvelope
}
ListServicePoliciesTooManyRequests describes a response with status code 429, with default header values.

The resource requested is rate limited and the rate limit has been exceeded

func NewListServicePoliciesTooManyRequests added in v0.26.0

func NewListServicePoliciesTooManyRequests() *ListServicePoliciesTooManyRequests

NewListServicePoliciesTooManyRequests creates a ListServicePoliciesTooManyRequests with default headers values

func (*ListServicePoliciesTooManyRequests) Error added in v0.26.0

func (*ListServicePoliciesTooManyRequests) GetPayload added in v0.26.0

type ListServicePoliciesUnauthorized

type ListServicePoliciesUnauthorized struct {
	Payload *rest_model.APIErrorEnvelope
}
ListServicePoliciesUnauthorized describes a response with status code 401, 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 describes a response with status code 400, 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 describes a response with status code 200, 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 timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewListServicePolicyIdentitiesParamsWithContext

func NewListServicePolicyIdentitiesParamsWithContext(ctx context.Context) *ListServicePolicyIdentitiesParams

NewListServicePolicyIdentitiesParamsWithContext creates a new ListServicePolicyIdentitiesParams object with 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 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 ability to set a timeout on a request.

func (*ListServicePolicyIdentitiesParams) SetContext

SetContext adds the context to the list service policy identities params

func (*ListServicePolicyIdentitiesParams) SetDefaults

func (o *ListServicePolicyIdentitiesParams) SetDefaults()

SetDefaults hydrates default values in the list service policy identities params (not the query body).

All values with no default are reset to their zero value.

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) WithDefaults

WithDefaults hydrates default values in the list service policy identities params (not the query body).

All values with no default are reset to their zero value.

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 ListServicePolicyIdentitiesTooManyRequests added in v0.26.0

type ListServicePolicyIdentitiesTooManyRequests struct {
	Payload *rest_model.APIErrorEnvelope
}
ListServicePolicyIdentitiesTooManyRequests describes a response with status code 429, with default header values.

The resource requested is rate limited and the rate limit has been exceeded

func NewListServicePolicyIdentitiesTooManyRequests added in v0.26.0

func NewListServicePolicyIdentitiesTooManyRequests() *ListServicePolicyIdentitiesTooManyRequests

NewListServicePolicyIdentitiesTooManyRequests creates a ListServicePolicyIdentitiesTooManyRequests with default headers values

func (*ListServicePolicyIdentitiesTooManyRequests) Error added in v0.26.0

func (*ListServicePolicyIdentitiesTooManyRequests) GetPayload added in v0.26.0

type ListServicePolicyIdentitiesUnauthorized

type ListServicePolicyIdentitiesUnauthorized struct {
	Payload *rest_model.APIErrorEnvelope
}
ListServicePolicyIdentitiesUnauthorized describes a response with status code 401, 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

type ListServicePolicyPostureChecksBadRequest struct {
	Payload *rest_model.APIErrorEnvelope
}
ListServicePolicyPostureChecksBadRequest describes a response with status code 400, with default header values.

The requested resource does not exist

func NewListServicePolicyPostureChecksBadRequest

func NewListServicePolicyPostureChecksBadRequest() *ListServicePolicyPostureChecksBadRequest

NewListServicePolicyPostureChecksBadRequest creates a ListServicePolicyPostureChecksBadRequest with default headers values

func (*ListServicePolicyPostureChecksBadRequest) Error

func (*ListServicePolicyPostureChecksBadRequest) GetPayload

type ListServicePolicyPostureChecksOK

type ListServicePolicyPostureChecksOK struct {
	Payload *rest_model.ListPostureCheckEnvelope
}
ListServicePolicyPostureChecksOK describes a response with status code 200, with default header values.

A list of posture checks

func NewListServicePolicyPostureChecksOK

func NewListServicePolicyPostureChecksOK() *ListServicePolicyPostureChecksOK

NewListServicePolicyPostureChecksOK creates a ListServicePolicyPostureChecksOK with default headers values

func (*ListServicePolicyPostureChecksOK) Error

func (*ListServicePolicyPostureChecksOK) GetPayload

type ListServicePolicyPostureChecksParams

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

func NewListServicePolicyPostureChecksParams() *ListServicePolicyPostureChecksParams

NewListServicePolicyPostureChecksParams creates a new ListServicePolicyPostureChecksParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewListServicePolicyPostureChecksParamsWithContext

func NewListServicePolicyPostureChecksParamsWithContext(ctx context.Context) *ListServicePolicyPostureChecksParams

NewListServicePolicyPostureChecksParamsWithContext creates a new ListServicePolicyPostureChecksParams object with the ability to set a context for a request.

func NewListServicePolicyPostureChecksParamsWithHTTPClient

func NewListServicePolicyPostureChecksParamsWithHTTPClient(client *http.Client) *ListServicePolicyPostureChecksParams

NewListServicePolicyPostureChecksParamsWithHTTPClient creates a new ListServicePolicyPostureChecksParams object with the ability to set a custom HTTPClient for a request.

func NewListServicePolicyPostureChecksParamsWithTimeout

func NewListServicePolicyPostureChecksParamsWithTimeout(timeout time.Duration) *ListServicePolicyPostureChecksParams

NewListServicePolicyPostureChecksParamsWithTimeout creates a new ListServicePolicyPostureChecksParams object with the ability to set a timeout on a request.

func (*ListServicePolicyPostureChecksParams) SetContext

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

func (*ListServicePolicyPostureChecksParams) SetDefaults

func (o *ListServicePolicyPostureChecksParams) SetDefaults()

SetDefaults hydrates default values in the list service policy posture checks params (not the query body).

All values with no default are reset to their zero value.

func (*ListServicePolicyPostureChecksParams) SetFilter

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

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

func (*ListServicePolicyPostureChecksParams) SetHTTPClient

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

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

func (*ListServicePolicyPostureChecksParams) SetID

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

func (*ListServicePolicyPostureChecksParams) SetLimit

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

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

func (*ListServicePolicyPostureChecksParams) SetOffset

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

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

func (*ListServicePolicyPostureChecksParams) SetTimeout

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

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

func (*ListServicePolicyPostureChecksParams) WithContext

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

func (*ListServicePolicyPostureChecksParams) WithDefaults

WithDefaults hydrates default values in the list service policy posture checks params (not the query body).

All values with no default are reset to their zero value.

func (*ListServicePolicyPostureChecksParams) WithFilter

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

func (*ListServicePolicyPostureChecksParams) WithHTTPClient

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

func (*ListServicePolicyPostureChecksParams) WithID

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

func (*ListServicePolicyPostureChecksParams) WithLimit

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

func (*ListServicePolicyPostureChecksParams) WithOffset

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

func (*ListServicePolicyPostureChecksParams) WithTimeout

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

func (*ListServicePolicyPostureChecksParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type ListServicePolicyPostureChecksReader

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

ListServicePolicyPostureChecksReader is a Reader for the ListServicePolicyPostureChecks structure.

func (*ListServicePolicyPostureChecksReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ListServicePolicyPostureChecksTooManyRequests added in v0.26.0

type ListServicePolicyPostureChecksTooManyRequests struct {
	Payload *rest_model.APIErrorEnvelope
}
ListServicePolicyPostureChecksTooManyRequests describes a response with status code 429, with default header values.

The resource requested is rate limited and the rate limit has been exceeded

func NewListServicePolicyPostureChecksTooManyRequests added in v0.26.0

func NewListServicePolicyPostureChecksTooManyRequests() *ListServicePolicyPostureChecksTooManyRequests

NewListServicePolicyPostureChecksTooManyRequests creates a ListServicePolicyPostureChecksTooManyRequests with default headers values

func (*ListServicePolicyPostureChecksTooManyRequests) Error added in v0.26.0

func (*ListServicePolicyPostureChecksTooManyRequests) GetPayload added in v0.26.0

type ListServicePolicyPostureChecksUnauthorized

type ListServicePolicyPostureChecksUnauthorized struct {
	Payload *rest_model.APIErrorEnvelope
}
ListServicePolicyPostureChecksUnauthorized describes a response with status code 401, with default header values.

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

func NewListServicePolicyPostureChecksUnauthorized

func NewListServicePolicyPostureChecksUnauthorized() *ListServicePolicyPostureChecksUnauthorized

NewListServicePolicyPostureChecksUnauthorized creates a ListServicePolicyPostureChecksUnauthorized with default headers values

func (*ListServicePolicyPostureChecksUnauthorized) Error

func (*ListServicePolicyPostureChecksUnauthorized) GetPayload

type ListServicePolicyServicesBadRequest

type ListServicePolicyServicesBadRequest struct {
	Payload *rest_model.APIErrorEnvelope
}
ListServicePolicyServicesBadRequest describes a response with status code 400, 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 describes a response with status code 200, 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 timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewListServicePolicyServicesParamsWithContext

func NewListServicePolicyServicesParamsWithContext(ctx context.Context) *ListServicePolicyServicesParams

NewListServicePolicyServicesParamsWithContext creates a new ListServicePolicyServicesParams object with 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 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 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) SetDefaults

func (o *ListServicePolicyServicesParams) SetDefaults()

SetDefaults hydrates default values in the list service policy services params (not the query body).

All values with no default are reset to their zero value.

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) WithDefaults

WithDefaults hydrates default values in the list service policy services params (not the query body).

All values with no default are reset to their zero value.

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 ListServicePolicyServicesTooManyRequests added in v0.26.0

type ListServicePolicyServicesTooManyRequests struct {
	Payload *rest_model.APIErrorEnvelope
}
ListServicePolicyServicesTooManyRequests describes a response with status code 429, with default header values.

The resource requested is rate limited and the rate limit has been exceeded

func NewListServicePolicyServicesTooManyRequests added in v0.26.0

func NewListServicePolicyServicesTooManyRequests() *ListServicePolicyServicesTooManyRequests

NewListServicePolicyServicesTooManyRequests creates a ListServicePolicyServicesTooManyRequests with default headers values

func (*ListServicePolicyServicesTooManyRequests) Error added in v0.26.0

func (*ListServicePolicyServicesTooManyRequests) GetPayload added in v0.26.0

type ListServicePolicyServicesUnauthorized

type ListServicePolicyServicesUnauthorized struct {
	Payload *rest_model.APIErrorEnvelope
}
ListServicePolicyServicesUnauthorized describes a response with status code 401, 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 describes a response with status code 400, 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 describes a response with status code 404, 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 describes a response with status code 200, 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 {

	/* ID.

	   The id of the requested resource
	*/
	ID string

	/* Policy.

	   A service policy patch object
	*/
	Policy *rest_model.ServicePolicyPatch

	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 timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewPatchServicePolicyParamsWithContext

func NewPatchServicePolicyParamsWithContext(ctx context.Context) *PatchServicePolicyParams

NewPatchServicePolicyParamsWithContext creates a new PatchServicePolicyParams object with 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 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 ability to set a timeout on a request.

func (*PatchServicePolicyParams) SetContext

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

SetContext adds the context to the patch service policy params

func (*PatchServicePolicyParams) SetDefaults

func (o *PatchServicePolicyParams) SetDefaults()

SetDefaults hydrates default values in the patch service policy params (not the query body).

All values with no default are reset to their zero value.

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) SetPolicy

SetPolicy adds the policy 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) WithContext

WithContext adds the context to the patch service policy params

func (*PatchServicePolicyParams) WithDefaults

WithDefaults hydrates default values in the patch service policy params (not the query body).

All values with no default are reset to their zero value.

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) WithPolicy

WithPolicy adds the policy 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 PatchServicePolicyTooManyRequests added in v0.26.0

type PatchServicePolicyTooManyRequests struct {
	Payload *rest_model.APIErrorEnvelope
}
PatchServicePolicyTooManyRequests describes a response with status code 429, with default header values.

The resource requested is rate limited and the rate limit has been exceeded

func NewPatchServicePolicyTooManyRequests added in v0.26.0

func NewPatchServicePolicyTooManyRequests() *PatchServicePolicyTooManyRequests

NewPatchServicePolicyTooManyRequests creates a PatchServicePolicyTooManyRequests with default headers values

func (*PatchServicePolicyTooManyRequests) Error added in v0.26.0

func (*PatchServicePolicyTooManyRequests) GetPayload added in v0.26.0

type PatchServicePolicyUnauthorized

type PatchServicePolicyUnauthorized struct {
	Payload *rest_model.APIErrorEnvelope
}
PatchServicePolicyUnauthorized describes a response with status code 401, 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 describes a response with status code 400, 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 describes a response with status code 404, 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 describes a response with status code 200, 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 {

	/* ID.

	   The id of the requested resource
	*/
	ID string

	/* Policy.

	   A service policy update object
	*/
	Policy *rest_model.ServicePolicyUpdate

	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 timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewUpdateServicePolicyParamsWithContext

func NewUpdateServicePolicyParamsWithContext(ctx context.Context) *UpdateServicePolicyParams

NewUpdateServicePolicyParamsWithContext creates a new UpdateServicePolicyParams object with 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 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 ability to set a timeout on a request.

func (*UpdateServicePolicyParams) SetContext

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

SetContext adds the context to the update service policy params

func (*UpdateServicePolicyParams) SetDefaults

func (o *UpdateServicePolicyParams) SetDefaults()

SetDefaults hydrates default values in the update service policy params (not the query body).

All values with no default are reset to their zero value.

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) SetPolicy

SetPolicy adds the policy 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) WithContext

WithContext adds the context to the update service policy params

func (*UpdateServicePolicyParams) WithDefaults

WithDefaults hydrates default values in the update service policy params (not the query body).

All values with no default are reset to their zero value.

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) WithPolicy

WithPolicy adds the policy 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 UpdateServicePolicyTooManyRequests added in v0.26.0

type UpdateServicePolicyTooManyRequests struct {
	Payload *rest_model.APIErrorEnvelope
}
UpdateServicePolicyTooManyRequests describes a response with status code 429, with default header values.

The resource requested is rate limited and the rate limit has been exceeded

func NewUpdateServicePolicyTooManyRequests added in v0.26.0

func NewUpdateServicePolicyTooManyRequests() *UpdateServicePolicyTooManyRequests

NewUpdateServicePolicyTooManyRequests creates a UpdateServicePolicyTooManyRequests with default headers values

func (*UpdateServicePolicyTooManyRequests) Error added in v0.26.0

func (*UpdateServicePolicyTooManyRequests) GetPayload added in v0.26.0

type UpdateServicePolicyUnauthorized

type UpdateServicePolicyUnauthorized struct {
	Payload *rest_model.APIErrorEnvelope
}
UpdateServicePolicyUnauthorized describes a response with status code 401, 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