service_policy

package
v0.20.47 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const CreateServicePolicyBadRequestCode int = 400

CreateServicePolicyBadRequestCode is the HTTP code returned for type CreateServicePolicyBadRequest

View Source
const CreateServicePolicyCreatedCode int = 201

CreateServicePolicyCreatedCode is the HTTP code returned for type CreateServicePolicyCreated

View Source
const CreateServicePolicyUnauthorizedCode int = 401

CreateServicePolicyUnauthorizedCode is the HTTP code returned for type CreateServicePolicyUnauthorized

View Source
const DeleteServicePolicyBadRequestCode int = 400

DeleteServicePolicyBadRequestCode is the HTTP code returned for type DeleteServicePolicyBadRequest

View Source
const DeleteServicePolicyConflictCode int = 409

DeleteServicePolicyConflictCode is the HTTP code returned for type DeleteServicePolicyConflict

View Source
const DeleteServicePolicyOKCode int = 200

DeleteServicePolicyOKCode is the HTTP code returned for type DeleteServicePolicyOK

View Source
const DeleteServicePolicyUnauthorizedCode int = 401

DeleteServicePolicyUnauthorizedCode is the HTTP code returned for type DeleteServicePolicyUnauthorized

View Source
const DetailServicePolicyNotFoundCode int = 404

DetailServicePolicyNotFoundCode is the HTTP code returned for type DetailServicePolicyNotFound

View Source
const DetailServicePolicyOKCode int = 200

DetailServicePolicyOKCode is the HTTP code returned for type DetailServicePolicyOK

View Source
const DetailServicePolicyUnauthorizedCode int = 401

DetailServicePolicyUnauthorizedCode is the HTTP code returned for type DetailServicePolicyUnauthorized

View Source
const ListServicePoliciesBadRequestCode int = 400

ListServicePoliciesBadRequestCode is the HTTP code returned for type ListServicePoliciesBadRequest

View Source
const ListServicePoliciesOKCode int = 200

ListServicePoliciesOKCode is the HTTP code returned for type ListServicePoliciesOK

View Source
const ListServicePoliciesUnauthorizedCode int = 401

ListServicePoliciesUnauthorizedCode is the HTTP code returned for type ListServicePoliciesUnauthorized

View Source
const ListServicePolicyIdentitiesBadRequestCode int = 400

ListServicePolicyIdentitiesBadRequestCode is the HTTP code returned for type ListServicePolicyIdentitiesBadRequest

View Source
const ListServicePolicyIdentitiesOKCode int = 200

ListServicePolicyIdentitiesOKCode is the HTTP code returned for type ListServicePolicyIdentitiesOK

View Source
const ListServicePolicyIdentitiesUnauthorizedCode int = 401

ListServicePolicyIdentitiesUnauthorizedCode is the HTTP code returned for type ListServicePolicyIdentitiesUnauthorized

View Source
const ListServicePolicyPostureChecksBadRequestCode int = 400

ListServicePolicyPostureChecksBadRequestCode is the HTTP code returned for type ListServicePolicyPostureChecksBadRequest

View Source
const ListServicePolicyPostureChecksOKCode int = 200

ListServicePolicyPostureChecksOKCode is the HTTP code returned for type ListServicePolicyPostureChecksOK

View Source
const ListServicePolicyPostureChecksUnauthorizedCode int = 401

ListServicePolicyPostureChecksUnauthorizedCode is the HTTP code returned for type ListServicePolicyPostureChecksUnauthorized

View Source
const ListServicePolicyServicesBadRequestCode int = 400

ListServicePolicyServicesBadRequestCode is the HTTP code returned for type ListServicePolicyServicesBadRequest

View Source
const ListServicePolicyServicesOKCode int = 200

ListServicePolicyServicesOKCode is the HTTP code returned for type ListServicePolicyServicesOK

View Source
const ListServicePolicyServicesUnauthorizedCode int = 401

ListServicePolicyServicesUnauthorizedCode is the HTTP code returned for type ListServicePolicyServicesUnauthorized

View Source
const PatchServicePolicyBadRequestCode int = 400

PatchServicePolicyBadRequestCode is the HTTP code returned for type PatchServicePolicyBadRequest

View Source
const PatchServicePolicyNotFoundCode int = 404

PatchServicePolicyNotFoundCode is the HTTP code returned for type PatchServicePolicyNotFound

View Source
const PatchServicePolicyOKCode int = 200

PatchServicePolicyOKCode is the HTTP code returned for type PatchServicePolicyOK

View Source
const PatchServicePolicyUnauthorizedCode int = 401

PatchServicePolicyUnauthorizedCode is the HTTP code returned for type PatchServicePolicyUnauthorized

View Source
const UpdateServicePolicyBadRequestCode int = 400

UpdateServicePolicyBadRequestCode is the HTTP code returned for type UpdateServicePolicyBadRequest

View Source
const UpdateServicePolicyNotFoundCode int = 404

UpdateServicePolicyNotFoundCode is the HTTP code returned for type UpdateServicePolicyNotFound

View Source
const UpdateServicePolicyOKCode int = 200

UpdateServicePolicyOKCode is the HTTP code returned for type UpdateServicePolicyOK

View Source
const UpdateServicePolicyUnauthorizedCode int = 401

UpdateServicePolicyUnauthorizedCode is the HTTP code returned for type UpdateServicePolicyUnauthorized

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateServicePolicy

type CreateServicePolicy struct {
	Context *middleware.Context
	Handler CreateServicePolicyHandler
}
CreateServicePolicy swagger:route POST /service-policies Service Policy createServicePolicy

Create a service policy resource

Create a service policy resource. Requires admin access.

func NewCreateServicePolicy

func NewCreateServicePolicy(ctx *middleware.Context, handler CreateServicePolicyHandler) *CreateServicePolicy

NewCreateServicePolicy creates a new http.Handler for the create service policy operation

func (*CreateServicePolicy) ServeHTTP

func (o *CreateServicePolicy) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type CreateServicePolicyBadRequest

type CreateServicePolicyBadRequest struct {

	/*
	  In: Body
	*/
	Payload *rest_model.APIErrorEnvelope `json:"body,omitempty"`
}

CreateServicePolicyBadRequest 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

swagger:response createServicePolicyBadRequest

func NewCreateServicePolicyBadRequest

func NewCreateServicePolicyBadRequest() *CreateServicePolicyBadRequest

NewCreateServicePolicyBadRequest creates CreateServicePolicyBadRequest with default headers values

func (*CreateServicePolicyBadRequest) SetPayload

SetPayload sets the payload to the create service policy bad request response

func (*CreateServicePolicyBadRequest) WithPayload

WithPayload adds the payload to the create service policy bad request response

func (*CreateServicePolicyBadRequest) WriteResponse

func (o *CreateServicePolicyBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type CreateServicePolicyCreated

type CreateServicePolicyCreated struct {

	/*
	  In: Body
	*/
	Payload *rest_model.CreateEnvelope `json:"body,omitempty"`
}

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

swagger:response createServicePolicyCreated

func NewCreateServicePolicyCreated

func NewCreateServicePolicyCreated() *CreateServicePolicyCreated

NewCreateServicePolicyCreated creates CreateServicePolicyCreated with default headers values

func (*CreateServicePolicyCreated) SetPayload

func (o *CreateServicePolicyCreated) SetPayload(payload *rest_model.CreateEnvelope)

SetPayload sets the payload to the create service policy created response

func (*CreateServicePolicyCreated) WithPayload

WithPayload adds the payload to the create service policy created response

func (*CreateServicePolicyCreated) WriteResponse

func (o *CreateServicePolicyCreated) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type CreateServicePolicyHandler

type CreateServicePolicyHandler interface {
	Handle(CreateServicePolicyParams, interface{}) middleware.Responder
}

CreateServicePolicyHandler interface for that can handle valid create service policy params

type CreateServicePolicyHandlerFunc

type CreateServicePolicyHandlerFunc func(CreateServicePolicyParams, interface{}) middleware.Responder

CreateServicePolicyHandlerFunc turns a function with the right signature into a create service policy handler

func (CreateServicePolicyHandlerFunc) Handle

func (fn CreateServicePolicyHandlerFunc) Handle(params CreateServicePolicyParams, principal interface{}) middleware.Responder

Handle executing the request and returning a response

type CreateServicePolicyParams

type CreateServicePolicyParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*A service policy to create
	  Required: true
	  In: body
	*/
	Policy *rest_model.ServicePolicyCreate
}

CreateServicePolicyParams contains all the bound params for the create service policy operation typically these are obtained from a http.Request

swagger:parameters createServicePolicy

func NewCreateServicePolicyParams

func NewCreateServicePolicyParams() CreateServicePolicyParams

NewCreateServicePolicyParams creates a new CreateServicePolicyParams object

There are no default values defined in the spec.

func (*CreateServicePolicyParams) BindRequest

BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.

To ensure default values, the struct must have been initialized with NewCreateServicePolicyParams() beforehand.

type CreateServicePolicyURL

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

CreateServicePolicyURL generates an URL for the create service policy operation

func (*CreateServicePolicyURL) Build

func (o *CreateServicePolicyURL) Build() (*url.URL, error)

Build a url path and query string

func (*CreateServicePolicyURL) BuildFull

func (o *CreateServicePolicyURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*CreateServicePolicyURL) Must

func (o *CreateServicePolicyURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*CreateServicePolicyURL) SetBasePath

func (o *CreateServicePolicyURL) SetBasePath(bp string)

SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

func (*CreateServicePolicyURL) String

func (o *CreateServicePolicyURL) String() string

String returns the string representation of the path with query string

func (*CreateServicePolicyURL) StringFull

func (o *CreateServicePolicyURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*CreateServicePolicyURL) WithBasePath

WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

type CreateServicePolicyUnauthorized

type CreateServicePolicyUnauthorized struct {

	/*
	  In: Body
	*/
	Payload *rest_model.APIErrorEnvelope `json:"body,omitempty"`
}

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

swagger:response createServicePolicyUnauthorized

func NewCreateServicePolicyUnauthorized

func NewCreateServicePolicyUnauthorized() *CreateServicePolicyUnauthorized

NewCreateServicePolicyUnauthorized creates CreateServicePolicyUnauthorized with default headers values

func (*CreateServicePolicyUnauthorized) SetPayload

SetPayload sets the payload to the create service policy unauthorized response

func (*CreateServicePolicyUnauthorized) WithPayload

WithPayload adds the payload to the create service policy unauthorized response

func (*CreateServicePolicyUnauthorized) WriteResponse

func (o *CreateServicePolicyUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type DeleteServicePolicy

type DeleteServicePolicy struct {
	Context *middleware.Context
	Handler DeleteServicePolicyHandler
}
DeleteServicePolicy swagger:route DELETE /service-policies/{id} Service Policy deleteServicePolicy

Delete a service policy

Delete a service policy by id. Requires admin access.

func NewDeleteServicePolicy

func NewDeleteServicePolicy(ctx *middleware.Context, handler DeleteServicePolicyHandler) *DeleteServicePolicy

NewDeleteServicePolicy creates a new http.Handler for the delete service policy operation

func (*DeleteServicePolicy) ServeHTTP

func (o *DeleteServicePolicy) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type DeleteServicePolicyBadRequest

type DeleteServicePolicyBadRequest struct {

	/*
	  In: Body
	*/
	Payload *rest_model.APIErrorEnvelope `json:"body,omitempty"`
}

DeleteServicePolicyBadRequest 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

swagger:response deleteServicePolicyBadRequest

func NewDeleteServicePolicyBadRequest

func NewDeleteServicePolicyBadRequest() *DeleteServicePolicyBadRequest

NewDeleteServicePolicyBadRequest creates DeleteServicePolicyBadRequest with default headers values

func (*DeleteServicePolicyBadRequest) SetPayload

SetPayload sets the payload to the delete service policy bad request response

func (*DeleteServicePolicyBadRequest) WithPayload

WithPayload adds the payload to the delete service policy bad request response

func (*DeleteServicePolicyBadRequest) WriteResponse

func (o *DeleteServicePolicyBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type DeleteServicePolicyConflict

type DeleteServicePolicyConflict struct {

	/*
	  In: Body
	*/
	Payload *rest_model.APIErrorEnvelope `json:"body,omitempty"`
}

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

swagger:response deleteServicePolicyConflict

func NewDeleteServicePolicyConflict

func NewDeleteServicePolicyConflict() *DeleteServicePolicyConflict

NewDeleteServicePolicyConflict creates DeleteServicePolicyConflict with default headers values

func (*DeleteServicePolicyConflict) SetPayload

SetPayload sets the payload to the delete service policy conflict response

func (*DeleteServicePolicyConflict) WithPayload

WithPayload adds the payload to the delete service policy conflict response

func (*DeleteServicePolicyConflict) WriteResponse

func (o *DeleteServicePolicyConflict) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type DeleteServicePolicyHandler

type DeleteServicePolicyHandler interface {
	Handle(DeleteServicePolicyParams, interface{}) middleware.Responder
}

DeleteServicePolicyHandler interface for that can handle valid delete service policy params

type DeleteServicePolicyHandlerFunc

type DeleteServicePolicyHandlerFunc func(DeleteServicePolicyParams, interface{}) middleware.Responder

DeleteServicePolicyHandlerFunc turns a function with the right signature into a delete service policy handler

func (DeleteServicePolicyHandlerFunc) Handle

func (fn DeleteServicePolicyHandlerFunc) Handle(params DeleteServicePolicyParams, principal interface{}) middleware.Responder

Handle executing the request and returning a response

type DeleteServicePolicyOK

type DeleteServicePolicyOK struct {

	/*
	  In: Body
	*/
	Payload *rest_model.Empty `json:"body,omitempty"`
}

DeleteServicePolicyOK The delete request was successful and the resource has been removed

swagger:response deleteServicePolicyOK

func NewDeleteServicePolicyOK

func NewDeleteServicePolicyOK() *DeleteServicePolicyOK

NewDeleteServicePolicyOK creates DeleteServicePolicyOK with default headers values

func (*DeleteServicePolicyOK) SetPayload

func (o *DeleteServicePolicyOK) SetPayload(payload *rest_model.Empty)

SetPayload sets the payload to the delete service policy o k response

func (*DeleteServicePolicyOK) WithPayload

func (o *DeleteServicePolicyOK) WithPayload(payload *rest_model.Empty) *DeleteServicePolicyOK

WithPayload adds the payload to the delete service policy o k response

func (*DeleteServicePolicyOK) WriteResponse

func (o *DeleteServicePolicyOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type DeleteServicePolicyParams

type DeleteServicePolicyParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*The id of the requested resource
	  Required: true
	  In: path
	*/
	ID string
}

DeleteServicePolicyParams contains all the bound params for the delete service policy operation typically these are obtained from a http.Request

swagger:parameters deleteServicePolicy

func NewDeleteServicePolicyParams

func NewDeleteServicePolicyParams() DeleteServicePolicyParams

NewDeleteServicePolicyParams creates a new DeleteServicePolicyParams object

There are no default values defined in the spec.

func (*DeleteServicePolicyParams) BindRequest

BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.

To ensure default values, the struct must have been initialized with NewDeleteServicePolicyParams() beforehand.

type DeleteServicePolicyURL

type DeleteServicePolicyURL struct {
	ID string
	// contains filtered or unexported fields
}

DeleteServicePolicyURL generates an URL for the delete service policy operation

func (*DeleteServicePolicyURL) Build

func (o *DeleteServicePolicyURL) Build() (*url.URL, error)

Build a url path and query string

func (*DeleteServicePolicyURL) BuildFull

func (o *DeleteServicePolicyURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*DeleteServicePolicyURL) Must

func (o *DeleteServicePolicyURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*DeleteServicePolicyURL) SetBasePath

func (o *DeleteServicePolicyURL) SetBasePath(bp string)

SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

func (*DeleteServicePolicyURL) String

func (o *DeleteServicePolicyURL) String() string

String returns the string representation of the path with query string

func (*DeleteServicePolicyURL) StringFull

func (o *DeleteServicePolicyURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*DeleteServicePolicyURL) WithBasePath

WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

type DeleteServicePolicyUnauthorized

type DeleteServicePolicyUnauthorized struct {

	/*
	  In: Body
	*/
	Payload *rest_model.APIErrorEnvelope `json:"body,omitempty"`
}

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

swagger:response deleteServicePolicyUnauthorized

func NewDeleteServicePolicyUnauthorized

func NewDeleteServicePolicyUnauthorized() *DeleteServicePolicyUnauthorized

NewDeleteServicePolicyUnauthorized creates DeleteServicePolicyUnauthorized with default headers values

func (*DeleteServicePolicyUnauthorized) SetPayload

SetPayload sets the payload to the delete service policy unauthorized response

func (*DeleteServicePolicyUnauthorized) WithPayload

WithPayload adds the payload to the delete service policy unauthorized response

func (*DeleteServicePolicyUnauthorized) WriteResponse

func (o *DeleteServicePolicyUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type DetailServicePolicy

type DetailServicePolicy struct {
	Context *middleware.Context
	Handler DetailServicePolicyHandler
}
DetailServicePolicy swagger:route GET /service-policies/{id} Service Policy detailServicePolicy

Retrieves a single service policy

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

func NewDetailServicePolicy

func NewDetailServicePolicy(ctx *middleware.Context, handler DetailServicePolicyHandler) *DetailServicePolicy

NewDetailServicePolicy creates a new http.Handler for the detail service policy operation

func (*DetailServicePolicy) ServeHTTP

func (o *DetailServicePolicy) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type DetailServicePolicyHandler

type DetailServicePolicyHandler interface {
	Handle(DetailServicePolicyParams, interface{}) middleware.Responder
}

DetailServicePolicyHandler interface for that can handle valid detail service policy params

type DetailServicePolicyHandlerFunc

type DetailServicePolicyHandlerFunc func(DetailServicePolicyParams, interface{}) middleware.Responder

DetailServicePolicyHandlerFunc turns a function with the right signature into a detail service policy handler

func (DetailServicePolicyHandlerFunc) Handle

func (fn DetailServicePolicyHandlerFunc) Handle(params DetailServicePolicyParams, principal interface{}) middleware.Responder

Handle executing the request and returning a response

type DetailServicePolicyNotFound

type DetailServicePolicyNotFound struct {

	/*
	  In: Body
	*/
	Payload *rest_model.APIErrorEnvelope `json:"body,omitempty"`
}

DetailServicePolicyNotFound The requested resource does not exist

swagger:response detailServicePolicyNotFound

func NewDetailServicePolicyNotFound

func NewDetailServicePolicyNotFound() *DetailServicePolicyNotFound

NewDetailServicePolicyNotFound creates DetailServicePolicyNotFound with default headers values

func (*DetailServicePolicyNotFound) SetPayload

SetPayload sets the payload to the detail service policy not found response

func (*DetailServicePolicyNotFound) WithPayload

WithPayload adds the payload to the detail service policy not found response

func (*DetailServicePolicyNotFound) WriteResponse

func (o *DetailServicePolicyNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type DetailServicePolicyOK

type DetailServicePolicyOK struct {

	/*
	  In: Body
	*/
	Payload *rest_model.DetailServicePolicyEnvelop `json:"body,omitempty"`
}

DetailServicePolicyOK A single service policy

swagger:response detailServicePolicyOK

func NewDetailServicePolicyOK

func NewDetailServicePolicyOK() *DetailServicePolicyOK

NewDetailServicePolicyOK creates DetailServicePolicyOK with default headers values

func (*DetailServicePolicyOK) SetPayload

SetPayload sets the payload to the detail service policy o k response

func (*DetailServicePolicyOK) WithPayload

WithPayload adds the payload to the detail service policy o k response

func (*DetailServicePolicyOK) WriteResponse

func (o *DetailServicePolicyOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type DetailServicePolicyParams

type DetailServicePolicyParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*The id of the requested resource
	  Required: true
	  In: path
	*/
	ID string
}

DetailServicePolicyParams contains all the bound params for the detail service policy operation typically these are obtained from a http.Request

swagger:parameters detailServicePolicy

func NewDetailServicePolicyParams

func NewDetailServicePolicyParams() DetailServicePolicyParams

NewDetailServicePolicyParams creates a new DetailServicePolicyParams object

There are no default values defined in the spec.

func (*DetailServicePolicyParams) BindRequest

BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.

To ensure default values, the struct must have been initialized with NewDetailServicePolicyParams() beforehand.

type DetailServicePolicyURL

type DetailServicePolicyURL struct {
	ID string
	// contains filtered or unexported fields
}

DetailServicePolicyURL generates an URL for the detail service policy operation

func (*DetailServicePolicyURL) Build

func (o *DetailServicePolicyURL) Build() (*url.URL, error)

Build a url path and query string

func (*DetailServicePolicyURL) BuildFull

func (o *DetailServicePolicyURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*DetailServicePolicyURL) Must

func (o *DetailServicePolicyURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*DetailServicePolicyURL) SetBasePath

func (o *DetailServicePolicyURL) SetBasePath(bp string)

SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

func (*DetailServicePolicyURL) String

func (o *DetailServicePolicyURL) String() string

String returns the string representation of the path with query string

func (*DetailServicePolicyURL) StringFull

func (o *DetailServicePolicyURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*DetailServicePolicyURL) WithBasePath

WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

type DetailServicePolicyUnauthorized

type DetailServicePolicyUnauthorized struct {

	/*
	  In: Body
	*/
	Payload *rest_model.APIErrorEnvelope `json:"body,omitempty"`
}

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

swagger:response detailServicePolicyUnauthorized

func NewDetailServicePolicyUnauthorized

func NewDetailServicePolicyUnauthorized() *DetailServicePolicyUnauthorized

NewDetailServicePolicyUnauthorized creates DetailServicePolicyUnauthorized with default headers values

func (*DetailServicePolicyUnauthorized) SetPayload

SetPayload sets the payload to the detail service policy unauthorized response

func (*DetailServicePolicyUnauthorized) WithPayload

WithPayload adds the payload to the detail service policy unauthorized response

func (*DetailServicePolicyUnauthorized) WriteResponse

func (o *DetailServicePolicyUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ListServicePolicies

type ListServicePolicies struct {
	Context *middleware.Context
	Handler ListServicePoliciesHandler
}
ListServicePolicies swagger:route GET /service-policies Service Policy listServicePolicies

List service policies

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

func NewListServicePolicies

func NewListServicePolicies(ctx *middleware.Context, handler ListServicePoliciesHandler) *ListServicePolicies

NewListServicePolicies creates a new http.Handler for the list service policies operation

func (*ListServicePolicies) ServeHTTP

func (o *ListServicePolicies) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type ListServicePoliciesBadRequest added in v0.19.176

type ListServicePoliciesBadRequest struct {

	/*
	  In: Body
	*/
	Payload *rest_model.APIErrorEnvelope `json:"body,omitempty"`
}

ListServicePoliciesBadRequest 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

swagger:response listServicePoliciesBadRequest

func NewListServicePoliciesBadRequest added in v0.19.176

func NewListServicePoliciesBadRequest() *ListServicePoliciesBadRequest

NewListServicePoliciesBadRequest creates ListServicePoliciesBadRequest with default headers values

func (*ListServicePoliciesBadRequest) SetPayload added in v0.19.176

SetPayload sets the payload to the list service policies bad request response

func (*ListServicePoliciesBadRequest) WithPayload added in v0.19.176

WithPayload adds the payload to the list service policies bad request response

func (*ListServicePoliciesBadRequest) WriteResponse added in v0.19.176

func (o *ListServicePoliciesBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ListServicePoliciesHandler

type ListServicePoliciesHandler interface {
	Handle(ListServicePoliciesParams, interface{}) middleware.Responder
}

ListServicePoliciesHandler interface for that can handle valid list service policies params

type ListServicePoliciesHandlerFunc

type ListServicePoliciesHandlerFunc func(ListServicePoliciesParams, interface{}) middleware.Responder

ListServicePoliciesHandlerFunc turns a function with the right signature into a list service policies handler

func (ListServicePoliciesHandlerFunc) Handle

func (fn ListServicePoliciesHandlerFunc) Handle(params ListServicePoliciesParams, principal interface{}) middleware.Responder

Handle executing the request and returning a response

type ListServicePoliciesOK

type ListServicePoliciesOK struct {

	/*
	  In: Body
	*/
	Payload *rest_model.ListServicePoliciesEnvelope `json:"body,omitempty"`
}

ListServicePoliciesOK A list of service policies

swagger:response listServicePoliciesOK

func NewListServicePoliciesOK

func NewListServicePoliciesOK() *ListServicePoliciesOK

NewListServicePoliciesOK creates ListServicePoliciesOK with default headers values

func (*ListServicePoliciesOK) SetPayload

SetPayload sets the payload to the list service policies o k response

func (*ListServicePoliciesOK) WithPayload

WithPayload adds the payload to the list service policies o k response

func (*ListServicePoliciesOK) WriteResponse

func (o *ListServicePoliciesOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ListServicePoliciesParams

type ListServicePoliciesParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*
	  In: query
	*/
	Filter *string
	/*
	  In: query
	*/
	Limit *int64
	/*
	  In: query
	*/
	Offset *int64
}

ListServicePoliciesParams contains all the bound params for the list service policies operation typically these are obtained from a http.Request

swagger:parameters listServicePolicies

func NewListServicePoliciesParams

func NewListServicePoliciesParams() ListServicePoliciesParams

NewListServicePoliciesParams creates a new ListServicePoliciesParams object

There are no default values defined in the spec.

func (*ListServicePoliciesParams) BindRequest

BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.

To ensure default values, the struct must have been initialized with NewListServicePoliciesParams() beforehand.

type ListServicePoliciesURL

type ListServicePoliciesURL struct {
	Filter *string
	Limit  *int64
	Offset *int64
	// contains filtered or unexported fields
}

ListServicePoliciesURL generates an URL for the list service policies operation

func (*ListServicePoliciesURL) Build

func (o *ListServicePoliciesURL) Build() (*url.URL, error)

Build a url path and query string

func (*ListServicePoliciesURL) BuildFull

func (o *ListServicePoliciesURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*ListServicePoliciesURL) Must

func (o *ListServicePoliciesURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*ListServicePoliciesURL) SetBasePath

func (o *ListServicePoliciesURL) SetBasePath(bp string)

SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

func (*ListServicePoliciesURL) String

func (o *ListServicePoliciesURL) String() string

String returns the string representation of the path with query string

func (*ListServicePoliciesURL) StringFull

func (o *ListServicePoliciesURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*ListServicePoliciesURL) WithBasePath

WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

type ListServicePoliciesUnauthorized

type ListServicePoliciesUnauthorized struct {

	/*
	  In: Body
	*/
	Payload *rest_model.APIErrorEnvelope `json:"body,omitempty"`
}

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

swagger:response listServicePoliciesUnauthorized

func NewListServicePoliciesUnauthorized

func NewListServicePoliciesUnauthorized() *ListServicePoliciesUnauthorized

NewListServicePoliciesUnauthorized creates ListServicePoliciesUnauthorized with default headers values

func (*ListServicePoliciesUnauthorized) SetPayload

SetPayload sets the payload to the list service policies unauthorized response

func (*ListServicePoliciesUnauthorized) WithPayload

WithPayload adds the payload to the list service policies unauthorized response

func (*ListServicePoliciesUnauthorized) WriteResponse

func (o *ListServicePoliciesUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ListServicePolicyIdentities

type ListServicePolicyIdentities struct {
	Context *middleware.Context
	Handler ListServicePolicyIdentitiesHandler
}
ListServicePolicyIdentities swagger:route GET /service-policies/{id}/identities Service Policy listServicePolicyIdentities

List 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 NewListServicePolicyIdentities

func NewListServicePolicyIdentities(ctx *middleware.Context, handler ListServicePolicyIdentitiesHandler) *ListServicePolicyIdentities

NewListServicePolicyIdentities creates a new http.Handler for the list service policy identities operation

func (*ListServicePolicyIdentities) ServeHTTP

type ListServicePolicyIdentitiesBadRequest

type ListServicePolicyIdentitiesBadRequest struct {

	/*
	  In: Body
	*/
	Payload *rest_model.APIErrorEnvelope `json:"body,omitempty"`
}

ListServicePolicyIdentitiesBadRequest The requested resource does not exist

swagger:response listServicePolicyIdentitiesBadRequest

func NewListServicePolicyIdentitiesBadRequest

func NewListServicePolicyIdentitiesBadRequest() *ListServicePolicyIdentitiesBadRequest

NewListServicePolicyIdentitiesBadRequest creates ListServicePolicyIdentitiesBadRequest with default headers values

func (*ListServicePolicyIdentitiesBadRequest) SetPayload

SetPayload sets the payload to the list service policy identities bad request response

func (*ListServicePolicyIdentitiesBadRequest) WithPayload

WithPayload adds the payload to the list service policy identities bad request response

func (*ListServicePolicyIdentitiesBadRequest) WriteResponse

WriteResponse to the client

type ListServicePolicyIdentitiesHandler

type ListServicePolicyIdentitiesHandler interface {
	Handle(ListServicePolicyIdentitiesParams, interface{}) middleware.Responder
}

ListServicePolicyIdentitiesHandler interface for that can handle valid list service policy identities params

type ListServicePolicyIdentitiesHandlerFunc

type ListServicePolicyIdentitiesHandlerFunc func(ListServicePolicyIdentitiesParams, interface{}) middleware.Responder

ListServicePolicyIdentitiesHandlerFunc turns a function with the right signature into a list service policy identities handler

func (ListServicePolicyIdentitiesHandlerFunc) Handle

Handle executing the request and returning a response

type ListServicePolicyIdentitiesOK

type ListServicePolicyIdentitiesOK struct {

	/*
	  In: Body
	*/
	Payload *rest_model.ListIdentitiesEnvelope `json:"body,omitempty"`
}

ListServicePolicyIdentitiesOK A list of identities

swagger:response listServicePolicyIdentitiesOK

func NewListServicePolicyIdentitiesOK

func NewListServicePolicyIdentitiesOK() *ListServicePolicyIdentitiesOK

NewListServicePolicyIdentitiesOK creates ListServicePolicyIdentitiesOK with default headers values

func (*ListServicePolicyIdentitiesOK) SetPayload

SetPayload sets the payload to the list service policy identities o k response

func (*ListServicePolicyIdentitiesOK) WithPayload

WithPayload adds the payload to the list service policy identities o k response

func (*ListServicePolicyIdentitiesOK) WriteResponse

func (o *ListServicePolicyIdentitiesOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ListServicePolicyIdentitiesParams

type ListServicePolicyIdentitiesParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*
	  In: query
	*/
	Filter *string
	/*The id of the requested resource
	  Required: true
	  In: path
	*/
	ID string
	/*
	  In: query
	*/
	Limit *int64
	/*
	  In: query
	*/
	Offset *int64
}

ListServicePolicyIdentitiesParams contains all the bound params for the list service policy identities operation typically these are obtained from a http.Request

swagger:parameters listServicePolicyIdentities

func NewListServicePolicyIdentitiesParams

func NewListServicePolicyIdentitiesParams() ListServicePolicyIdentitiesParams

NewListServicePolicyIdentitiesParams creates a new ListServicePolicyIdentitiesParams object

There are no default values defined in the spec.

func (*ListServicePolicyIdentitiesParams) BindRequest

BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.

To ensure default values, the struct must have been initialized with NewListServicePolicyIdentitiesParams() beforehand.

type ListServicePolicyIdentitiesURL

type ListServicePolicyIdentitiesURL struct {
	ID string

	Filter *string
	Limit  *int64
	Offset *int64
	// contains filtered or unexported fields
}

ListServicePolicyIdentitiesURL generates an URL for the list service policy identities operation

func (*ListServicePolicyIdentitiesURL) Build

Build a url path and query string

func (*ListServicePolicyIdentitiesURL) BuildFull

func (o *ListServicePolicyIdentitiesURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*ListServicePolicyIdentitiesURL) Must

func (o *ListServicePolicyIdentitiesURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*ListServicePolicyIdentitiesURL) SetBasePath

func (o *ListServicePolicyIdentitiesURL) SetBasePath(bp string)

SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

func (*ListServicePolicyIdentitiesURL) String

String returns the string representation of the path with query string

func (*ListServicePolicyIdentitiesURL) StringFull

func (o *ListServicePolicyIdentitiesURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*ListServicePolicyIdentitiesURL) WithBasePath

WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

type ListServicePolicyIdentitiesUnauthorized

type ListServicePolicyIdentitiesUnauthorized struct {

	/*
	  In: Body
	*/
	Payload *rest_model.APIErrorEnvelope `json:"body,omitempty"`
}

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

swagger:response listServicePolicyIdentitiesUnauthorized

func NewListServicePolicyIdentitiesUnauthorized

func NewListServicePolicyIdentitiesUnauthorized() *ListServicePolicyIdentitiesUnauthorized

NewListServicePolicyIdentitiesUnauthorized creates ListServicePolicyIdentitiesUnauthorized with default headers values

func (*ListServicePolicyIdentitiesUnauthorized) SetPayload

SetPayload sets the payload to the list service policy identities unauthorized response

func (*ListServicePolicyIdentitiesUnauthorized) WithPayload

WithPayload adds the payload to the list service policy identities unauthorized response

func (*ListServicePolicyIdentitiesUnauthorized) WriteResponse

WriteResponse to the client

type ListServicePolicyPostureChecks

type ListServicePolicyPostureChecks struct {
	Context *middleware.Context
	Handler ListServicePolicyPostureChecksHandler
}
ListServicePolicyPostureChecks swagger:route GET /service-policies/{id}/posture-checks Service Policy listServicePolicyPostureChecks

List 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 NewListServicePolicyPostureChecks

func NewListServicePolicyPostureChecks(ctx *middleware.Context, handler ListServicePolicyPostureChecksHandler) *ListServicePolicyPostureChecks

NewListServicePolicyPostureChecks creates a new http.Handler for the list service policy posture checks operation

func (*ListServicePolicyPostureChecks) ServeHTTP

type ListServicePolicyPostureChecksBadRequest

type ListServicePolicyPostureChecksBadRequest struct {

	/*
	  In: Body
	*/
	Payload *rest_model.APIErrorEnvelope `json:"body,omitempty"`
}

ListServicePolicyPostureChecksBadRequest The requested resource does not exist

swagger:response listServicePolicyPostureChecksBadRequest

func NewListServicePolicyPostureChecksBadRequest

func NewListServicePolicyPostureChecksBadRequest() *ListServicePolicyPostureChecksBadRequest

NewListServicePolicyPostureChecksBadRequest creates ListServicePolicyPostureChecksBadRequest with default headers values

func (*ListServicePolicyPostureChecksBadRequest) SetPayload

SetPayload sets the payload to the list service policy posture checks bad request response

func (*ListServicePolicyPostureChecksBadRequest) WithPayload

WithPayload adds the payload to the list service policy posture checks bad request response

func (*ListServicePolicyPostureChecksBadRequest) WriteResponse

WriteResponse to the client

type ListServicePolicyPostureChecksHandler

type ListServicePolicyPostureChecksHandler interface {
	Handle(ListServicePolicyPostureChecksParams, interface{}) middleware.Responder
}

ListServicePolicyPostureChecksHandler interface for that can handle valid list service policy posture checks params

type ListServicePolicyPostureChecksHandlerFunc

type ListServicePolicyPostureChecksHandlerFunc func(ListServicePolicyPostureChecksParams, interface{}) middleware.Responder

ListServicePolicyPostureChecksHandlerFunc turns a function with the right signature into a list service policy posture checks handler

func (ListServicePolicyPostureChecksHandlerFunc) Handle

Handle executing the request and returning a response

type ListServicePolicyPostureChecksOK

type ListServicePolicyPostureChecksOK struct {

	/*
	  In: Body
	*/
	Payload *rest_model.ListPostureCheckEnvelope `json:"body,omitempty"`
}

ListServicePolicyPostureChecksOK A list of posture checks

swagger:response listServicePolicyPostureChecksOK

func NewListServicePolicyPostureChecksOK

func NewListServicePolicyPostureChecksOK() *ListServicePolicyPostureChecksOK

NewListServicePolicyPostureChecksOK creates ListServicePolicyPostureChecksOK with default headers values

func (*ListServicePolicyPostureChecksOK) SetPayload

SetPayload sets the payload to the list service policy posture checks o k response

func (*ListServicePolicyPostureChecksOK) WithPayload

WithPayload adds the payload to the list service policy posture checks o k response

func (*ListServicePolicyPostureChecksOK) WriteResponse

func (o *ListServicePolicyPostureChecksOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ListServicePolicyPostureChecksParams

type ListServicePolicyPostureChecksParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*
	  In: query
	*/
	Filter *string
	/*The id of the requested resource
	  Required: true
	  In: path
	*/
	ID string
	/*
	  In: query
	*/
	Limit *int64
	/*
	  In: query
	*/
	Offset *int64
}

ListServicePolicyPostureChecksParams contains all the bound params for the list service policy posture checks operation typically these are obtained from a http.Request

swagger:parameters listServicePolicyPostureChecks

func NewListServicePolicyPostureChecksParams

func NewListServicePolicyPostureChecksParams() ListServicePolicyPostureChecksParams

NewListServicePolicyPostureChecksParams creates a new ListServicePolicyPostureChecksParams object

There are no default values defined in the spec.

func (*ListServicePolicyPostureChecksParams) BindRequest

BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.

To ensure default values, the struct must have been initialized with NewListServicePolicyPostureChecksParams() beforehand.

type ListServicePolicyPostureChecksURL

type ListServicePolicyPostureChecksURL struct {
	ID string

	Filter *string
	Limit  *int64
	Offset *int64
	// contains filtered or unexported fields
}

ListServicePolicyPostureChecksURL generates an URL for the list service policy posture checks operation

func (*ListServicePolicyPostureChecksURL) Build

Build a url path and query string

func (*ListServicePolicyPostureChecksURL) BuildFull

func (o *ListServicePolicyPostureChecksURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*ListServicePolicyPostureChecksURL) Must

Must is a helper function to panic when the url builder returns an error

func (*ListServicePolicyPostureChecksURL) SetBasePath

func (o *ListServicePolicyPostureChecksURL) SetBasePath(bp string)

SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

func (*ListServicePolicyPostureChecksURL) String

String returns the string representation of the path with query string

func (*ListServicePolicyPostureChecksURL) StringFull

func (o *ListServicePolicyPostureChecksURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*ListServicePolicyPostureChecksURL) WithBasePath

WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

type ListServicePolicyPostureChecksUnauthorized

type ListServicePolicyPostureChecksUnauthorized struct {

	/*
	  In: Body
	*/
	Payload *rest_model.APIErrorEnvelope `json:"body,omitempty"`
}

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

swagger:response listServicePolicyPostureChecksUnauthorized

func NewListServicePolicyPostureChecksUnauthorized

func NewListServicePolicyPostureChecksUnauthorized() *ListServicePolicyPostureChecksUnauthorized

NewListServicePolicyPostureChecksUnauthorized creates ListServicePolicyPostureChecksUnauthorized with default headers values

func (*ListServicePolicyPostureChecksUnauthorized) SetPayload

SetPayload sets the payload to the list service policy posture checks unauthorized response

func (*ListServicePolicyPostureChecksUnauthorized) WithPayload

WithPayload adds the payload to the list service policy posture checks unauthorized response

func (*ListServicePolicyPostureChecksUnauthorized) WriteResponse

WriteResponse to the client

type ListServicePolicyServices

type ListServicePolicyServices struct {
	Context *middleware.Context
	Handler ListServicePolicyServicesHandler
}
ListServicePolicyServices swagger:route GET /service-policies/{id}/services Service Policy listServicePolicyServices

List 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 NewListServicePolicyServices

func NewListServicePolicyServices(ctx *middleware.Context, handler ListServicePolicyServicesHandler) *ListServicePolicyServices

NewListServicePolicyServices creates a new http.Handler for the list service policy services operation

func (*ListServicePolicyServices) ServeHTTP

type ListServicePolicyServicesBadRequest

type ListServicePolicyServicesBadRequest struct {

	/*
	  In: Body
	*/
	Payload *rest_model.APIErrorEnvelope `json:"body,omitempty"`
}

ListServicePolicyServicesBadRequest The requested resource does not exist

swagger:response listServicePolicyServicesBadRequest

func NewListServicePolicyServicesBadRequest

func NewListServicePolicyServicesBadRequest() *ListServicePolicyServicesBadRequest

NewListServicePolicyServicesBadRequest creates ListServicePolicyServicesBadRequest with default headers values

func (*ListServicePolicyServicesBadRequest) SetPayload

SetPayload sets the payload to the list service policy services bad request response

func (*ListServicePolicyServicesBadRequest) WithPayload

WithPayload adds the payload to the list service policy services bad request response

func (*ListServicePolicyServicesBadRequest) WriteResponse

WriteResponse to the client

type ListServicePolicyServicesHandler

type ListServicePolicyServicesHandler interface {
	Handle(ListServicePolicyServicesParams, interface{}) middleware.Responder
}

ListServicePolicyServicesHandler interface for that can handle valid list service policy services params

type ListServicePolicyServicesHandlerFunc

type ListServicePolicyServicesHandlerFunc func(ListServicePolicyServicesParams, interface{}) middleware.Responder

ListServicePolicyServicesHandlerFunc turns a function with the right signature into a list service policy services handler

func (ListServicePolicyServicesHandlerFunc) Handle

Handle executing the request and returning a response

type ListServicePolicyServicesOK

type ListServicePolicyServicesOK struct {

	/*
	  In: Body
	*/
	Payload *rest_model.ListServicesEnvelope `json:"body,omitempty"`
}

ListServicePolicyServicesOK A list of services

swagger:response listServicePolicyServicesOK

func NewListServicePolicyServicesOK

func NewListServicePolicyServicesOK() *ListServicePolicyServicesOK

NewListServicePolicyServicesOK creates ListServicePolicyServicesOK with default headers values

func (*ListServicePolicyServicesOK) SetPayload

SetPayload sets the payload to the list service policy services o k response

func (*ListServicePolicyServicesOK) WithPayload

WithPayload adds the payload to the list service policy services o k response

func (*ListServicePolicyServicesOK) WriteResponse

func (o *ListServicePolicyServicesOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ListServicePolicyServicesParams

type ListServicePolicyServicesParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*
	  In: query
	*/
	Filter *string
	/*The id of the requested resource
	  Required: true
	  In: path
	*/
	ID string
	/*
	  In: query
	*/
	Limit *int64
	/*
	  In: query
	*/
	Offset *int64
}

ListServicePolicyServicesParams contains all the bound params for the list service policy services operation typically these are obtained from a http.Request

swagger:parameters listServicePolicyServices

func NewListServicePolicyServicesParams

func NewListServicePolicyServicesParams() ListServicePolicyServicesParams

NewListServicePolicyServicesParams creates a new ListServicePolicyServicesParams object

There are no default values defined in the spec.

func (*ListServicePolicyServicesParams) BindRequest

BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.

To ensure default values, the struct must have been initialized with NewListServicePolicyServicesParams() beforehand.

type ListServicePolicyServicesURL

type ListServicePolicyServicesURL struct {
	ID string

	Filter *string
	Limit  *int64
	Offset *int64
	// contains filtered or unexported fields
}

ListServicePolicyServicesURL generates an URL for the list service policy services operation

func (*ListServicePolicyServicesURL) Build

func (o *ListServicePolicyServicesURL) Build() (*url.URL, error)

Build a url path and query string

func (*ListServicePolicyServicesURL) BuildFull

func (o *ListServicePolicyServicesURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*ListServicePolicyServicesURL) Must

func (o *ListServicePolicyServicesURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*ListServicePolicyServicesURL) SetBasePath

func (o *ListServicePolicyServicesURL) SetBasePath(bp string)

SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

func (*ListServicePolicyServicesURL) String

String returns the string representation of the path with query string

func (*ListServicePolicyServicesURL) StringFull

func (o *ListServicePolicyServicesURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*ListServicePolicyServicesURL) WithBasePath

WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

type ListServicePolicyServicesUnauthorized

type ListServicePolicyServicesUnauthorized struct {

	/*
	  In: Body
	*/
	Payload *rest_model.APIErrorEnvelope `json:"body,omitempty"`
}

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

swagger:response listServicePolicyServicesUnauthorized

func NewListServicePolicyServicesUnauthorized

func NewListServicePolicyServicesUnauthorized() *ListServicePolicyServicesUnauthorized

NewListServicePolicyServicesUnauthorized creates ListServicePolicyServicesUnauthorized with default headers values

func (*ListServicePolicyServicesUnauthorized) SetPayload

SetPayload sets the payload to the list service policy services unauthorized response

func (*ListServicePolicyServicesUnauthorized) WithPayload

WithPayload adds the payload to the list service policy services unauthorized response

func (*ListServicePolicyServicesUnauthorized) WriteResponse

WriteResponse to the client

type PatchServicePolicy

type PatchServicePolicy struct {
	Context *middleware.Context
	Handler PatchServicePolicyHandler
}
PatchServicePolicy swagger:route PATCH /service-policies/{id} Service Policy patchServicePolicy

Update the supplied fields on a service policy

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

func NewPatchServicePolicy

func NewPatchServicePolicy(ctx *middleware.Context, handler PatchServicePolicyHandler) *PatchServicePolicy

NewPatchServicePolicy creates a new http.Handler for the patch service policy operation

func (*PatchServicePolicy) ServeHTTP

func (o *PatchServicePolicy) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type PatchServicePolicyBadRequest

type PatchServicePolicyBadRequest struct {

	/*
	  In: Body
	*/
	Payload *rest_model.APIErrorEnvelope `json:"body,omitempty"`
}

PatchServicePolicyBadRequest 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

swagger:response patchServicePolicyBadRequest

func NewPatchServicePolicyBadRequest

func NewPatchServicePolicyBadRequest() *PatchServicePolicyBadRequest

NewPatchServicePolicyBadRequest creates PatchServicePolicyBadRequest with default headers values

func (*PatchServicePolicyBadRequest) SetPayload

SetPayload sets the payload to the patch service policy bad request response

func (*PatchServicePolicyBadRequest) WithPayload

WithPayload adds the payload to the patch service policy bad request response

func (*PatchServicePolicyBadRequest) WriteResponse

func (o *PatchServicePolicyBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type PatchServicePolicyHandler

type PatchServicePolicyHandler interface {
	Handle(PatchServicePolicyParams, interface{}) middleware.Responder
}

PatchServicePolicyHandler interface for that can handle valid patch service policy params

type PatchServicePolicyHandlerFunc

type PatchServicePolicyHandlerFunc func(PatchServicePolicyParams, interface{}) middleware.Responder

PatchServicePolicyHandlerFunc turns a function with the right signature into a patch service policy handler

func (PatchServicePolicyHandlerFunc) Handle

func (fn PatchServicePolicyHandlerFunc) Handle(params PatchServicePolicyParams, principal interface{}) middleware.Responder

Handle executing the request and returning a response

type PatchServicePolicyNotFound

type PatchServicePolicyNotFound struct {

	/*
	  In: Body
	*/
	Payload *rest_model.APIErrorEnvelope `json:"body,omitempty"`
}

PatchServicePolicyNotFound The requested resource does not exist

swagger:response patchServicePolicyNotFound

func NewPatchServicePolicyNotFound

func NewPatchServicePolicyNotFound() *PatchServicePolicyNotFound

NewPatchServicePolicyNotFound creates PatchServicePolicyNotFound with default headers values

func (*PatchServicePolicyNotFound) SetPayload

func (o *PatchServicePolicyNotFound) SetPayload(payload *rest_model.APIErrorEnvelope)

SetPayload sets the payload to the patch service policy not found response

func (*PatchServicePolicyNotFound) WithPayload

WithPayload adds the payload to the patch service policy not found response

func (*PatchServicePolicyNotFound) WriteResponse

func (o *PatchServicePolicyNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type PatchServicePolicyOK

type PatchServicePolicyOK struct {

	/*
	  In: Body
	*/
	Payload *rest_model.Empty `json:"body,omitempty"`
}

PatchServicePolicyOK The patch request was successful and the resource has been altered

swagger:response patchServicePolicyOK

func NewPatchServicePolicyOK

func NewPatchServicePolicyOK() *PatchServicePolicyOK

NewPatchServicePolicyOK creates PatchServicePolicyOK with default headers values

func (*PatchServicePolicyOK) SetPayload

func (o *PatchServicePolicyOK) SetPayload(payload *rest_model.Empty)

SetPayload sets the payload to the patch service policy o k response

func (*PatchServicePolicyOK) WithPayload

func (o *PatchServicePolicyOK) WithPayload(payload *rest_model.Empty) *PatchServicePolicyOK

WithPayload adds the payload to the patch service policy o k response

func (*PatchServicePolicyOK) WriteResponse

func (o *PatchServicePolicyOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type PatchServicePolicyParams

type PatchServicePolicyParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*The id of the requested resource
	  Required: true
	  In: path
	*/
	ID string
	/*A service policy patch object
	  Required: true
	  In: body
	*/
	Policy *rest_model.ServicePolicyPatch
}

PatchServicePolicyParams contains all the bound params for the patch service policy operation typically these are obtained from a http.Request

swagger:parameters patchServicePolicy

func NewPatchServicePolicyParams

func NewPatchServicePolicyParams() PatchServicePolicyParams

NewPatchServicePolicyParams creates a new PatchServicePolicyParams object

There are no default values defined in the spec.

func (*PatchServicePolicyParams) BindRequest

BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.

To ensure default values, the struct must have been initialized with NewPatchServicePolicyParams() beforehand.

type PatchServicePolicyURL

type PatchServicePolicyURL struct {
	ID string
	// contains filtered or unexported fields
}

PatchServicePolicyURL generates an URL for the patch service policy operation

func (*PatchServicePolicyURL) Build

func (o *PatchServicePolicyURL) Build() (*url.URL, error)

Build a url path and query string

func (*PatchServicePolicyURL) BuildFull

func (o *PatchServicePolicyURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*PatchServicePolicyURL) Must

func (o *PatchServicePolicyURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*PatchServicePolicyURL) SetBasePath

func (o *PatchServicePolicyURL) SetBasePath(bp string)

SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

func (*PatchServicePolicyURL) String

func (o *PatchServicePolicyURL) String() string

String returns the string representation of the path with query string

func (*PatchServicePolicyURL) StringFull

func (o *PatchServicePolicyURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*PatchServicePolicyURL) WithBasePath

func (o *PatchServicePolicyURL) WithBasePath(bp string) *PatchServicePolicyURL

WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

type PatchServicePolicyUnauthorized

type PatchServicePolicyUnauthorized struct {

	/*
	  In: Body
	*/
	Payload *rest_model.APIErrorEnvelope `json:"body,omitempty"`
}

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

swagger:response patchServicePolicyUnauthorized

func NewPatchServicePolicyUnauthorized

func NewPatchServicePolicyUnauthorized() *PatchServicePolicyUnauthorized

NewPatchServicePolicyUnauthorized creates PatchServicePolicyUnauthorized with default headers values

func (*PatchServicePolicyUnauthorized) SetPayload

SetPayload sets the payload to the patch service policy unauthorized response

func (*PatchServicePolicyUnauthorized) WithPayload

WithPayload adds the payload to the patch service policy unauthorized response

func (*PatchServicePolicyUnauthorized) WriteResponse

func (o *PatchServicePolicyUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type UpdateServicePolicy

type UpdateServicePolicy struct {
	Context *middleware.Context
	Handler UpdateServicePolicyHandler
}
UpdateServicePolicy swagger:route PUT /service-policies/{id} Service Policy updateServicePolicy

Update all fields on a service policy

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

func NewUpdateServicePolicy

func NewUpdateServicePolicy(ctx *middleware.Context, handler UpdateServicePolicyHandler) *UpdateServicePolicy

NewUpdateServicePolicy creates a new http.Handler for the update service policy operation

func (*UpdateServicePolicy) ServeHTTP

func (o *UpdateServicePolicy) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type UpdateServicePolicyBadRequest

type UpdateServicePolicyBadRequest struct {

	/*
	  In: Body
	*/
	Payload *rest_model.APIErrorEnvelope `json:"body,omitempty"`
}

UpdateServicePolicyBadRequest 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

swagger:response updateServicePolicyBadRequest

func NewUpdateServicePolicyBadRequest

func NewUpdateServicePolicyBadRequest() *UpdateServicePolicyBadRequest

NewUpdateServicePolicyBadRequest creates UpdateServicePolicyBadRequest with default headers values

func (*UpdateServicePolicyBadRequest) SetPayload

SetPayload sets the payload to the update service policy bad request response

func (*UpdateServicePolicyBadRequest) WithPayload

WithPayload adds the payload to the update service policy bad request response

func (*UpdateServicePolicyBadRequest) WriteResponse

func (o *UpdateServicePolicyBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type UpdateServicePolicyHandler

type UpdateServicePolicyHandler interface {
	Handle(UpdateServicePolicyParams, interface{}) middleware.Responder
}

UpdateServicePolicyHandler interface for that can handle valid update service policy params

type UpdateServicePolicyHandlerFunc

type UpdateServicePolicyHandlerFunc func(UpdateServicePolicyParams, interface{}) middleware.Responder

UpdateServicePolicyHandlerFunc turns a function with the right signature into a update service policy handler

func (UpdateServicePolicyHandlerFunc) Handle

func (fn UpdateServicePolicyHandlerFunc) Handle(params UpdateServicePolicyParams, principal interface{}) middleware.Responder

Handle executing the request and returning a response

type UpdateServicePolicyNotFound

type UpdateServicePolicyNotFound struct {

	/*
	  In: Body
	*/
	Payload *rest_model.APIErrorEnvelope `json:"body,omitempty"`
}

UpdateServicePolicyNotFound The requested resource does not exist

swagger:response updateServicePolicyNotFound

func NewUpdateServicePolicyNotFound

func NewUpdateServicePolicyNotFound() *UpdateServicePolicyNotFound

NewUpdateServicePolicyNotFound creates UpdateServicePolicyNotFound with default headers values

func (*UpdateServicePolicyNotFound) SetPayload

SetPayload sets the payload to the update service policy not found response

func (*UpdateServicePolicyNotFound) WithPayload

WithPayload adds the payload to the update service policy not found response

func (*UpdateServicePolicyNotFound) WriteResponse

func (o *UpdateServicePolicyNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type UpdateServicePolicyOK

type UpdateServicePolicyOK struct {

	/*
	  In: Body
	*/
	Payload *rest_model.Empty `json:"body,omitempty"`
}

UpdateServicePolicyOK The update request was successful and the resource has been altered

swagger:response updateServicePolicyOK

func NewUpdateServicePolicyOK

func NewUpdateServicePolicyOK() *UpdateServicePolicyOK

NewUpdateServicePolicyOK creates UpdateServicePolicyOK with default headers values

func (*UpdateServicePolicyOK) SetPayload

func (o *UpdateServicePolicyOK) SetPayload(payload *rest_model.Empty)

SetPayload sets the payload to the update service policy o k response

func (*UpdateServicePolicyOK) WithPayload

func (o *UpdateServicePolicyOK) WithPayload(payload *rest_model.Empty) *UpdateServicePolicyOK

WithPayload adds the payload to the update service policy o k response

func (*UpdateServicePolicyOK) WriteResponse

func (o *UpdateServicePolicyOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type UpdateServicePolicyParams

type UpdateServicePolicyParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*The id of the requested resource
	  Required: true
	  In: path
	*/
	ID string
	/*A service policy update object
	  Required: true
	  In: body
	*/
	Policy *rest_model.ServicePolicyUpdate
}

UpdateServicePolicyParams contains all the bound params for the update service policy operation typically these are obtained from a http.Request

swagger:parameters updateServicePolicy

func NewUpdateServicePolicyParams

func NewUpdateServicePolicyParams() UpdateServicePolicyParams

NewUpdateServicePolicyParams creates a new UpdateServicePolicyParams object

There are no default values defined in the spec.

func (*UpdateServicePolicyParams) BindRequest

BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.

To ensure default values, the struct must have been initialized with NewUpdateServicePolicyParams() beforehand.

type UpdateServicePolicyURL

type UpdateServicePolicyURL struct {
	ID string
	// contains filtered or unexported fields
}

UpdateServicePolicyURL generates an URL for the update service policy operation

func (*UpdateServicePolicyURL) Build

func (o *UpdateServicePolicyURL) Build() (*url.URL, error)

Build a url path and query string

func (*UpdateServicePolicyURL) BuildFull

func (o *UpdateServicePolicyURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*UpdateServicePolicyURL) Must

func (o *UpdateServicePolicyURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*UpdateServicePolicyURL) SetBasePath

func (o *UpdateServicePolicyURL) SetBasePath(bp string)

SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

func (*UpdateServicePolicyURL) String

func (o *UpdateServicePolicyURL) String() string

String returns the string representation of the path with query string

func (*UpdateServicePolicyURL) StringFull

func (o *UpdateServicePolicyURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*UpdateServicePolicyURL) WithBasePath

WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

type UpdateServicePolicyUnauthorized

type UpdateServicePolicyUnauthorized struct {

	/*
	  In: Body
	*/
	Payload *rest_model.APIErrorEnvelope `json:"body,omitempty"`
}

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

swagger:response updateServicePolicyUnauthorized

func NewUpdateServicePolicyUnauthorized

func NewUpdateServicePolicyUnauthorized() *UpdateServicePolicyUnauthorized

NewUpdateServicePolicyUnauthorized creates UpdateServicePolicyUnauthorized with default headers values

func (*UpdateServicePolicyUnauthorized) SetPayload

SetPayload sets the payload to the update service policy unauthorized response

func (*UpdateServicePolicyUnauthorized) WithPayload

WithPayload adds the payload to the update service policy unauthorized response

func (*UpdateServicePolicyUnauthorized) WriteResponse

func (o *UpdateServicePolicyUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

Jump to

Keyboard shortcuts

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