policy

package
v0.1.22 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2018 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const AddPolicyBadRequestCode int = 400

AddPolicyBadRequestCode is the HTTP code returned for type AddPolicyBadRequest

View Source
const AddPolicyConflictCode int = 409

AddPolicyConflictCode is the HTTP code returned for type AddPolicyConflict

View Source
const AddPolicyCreatedCode int = 201

AddPolicyCreatedCode is the HTTP code returned for type AddPolicyCreated

View Source
const AddPolicyForbiddenCode int = 403

AddPolicyForbiddenCode is the HTTP code returned for type AddPolicyForbidden

View Source
const AddPolicyUnauthorizedCode int = 401

AddPolicyUnauthorizedCode is the HTTP code returned for type AddPolicyUnauthorized

View Source
const DeletePolicyBadRequestCode int = 400

DeletePolicyBadRequestCode is the HTTP code returned for type DeletePolicyBadRequest

View Source
const DeletePolicyForbiddenCode int = 403

DeletePolicyForbiddenCode is the HTTP code returned for type DeletePolicyForbidden

View Source
const DeletePolicyNotFoundCode int = 404

DeletePolicyNotFoundCode is the HTTP code returned for type DeletePolicyNotFound

View Source
const DeletePolicyOKCode int = 200

DeletePolicyOKCode is the HTTP code returned for type DeletePolicyOK

View Source
const DeletePolicyUnauthorizedCode int = 401

DeletePolicyUnauthorizedCode is the HTTP code returned for type DeletePolicyUnauthorized

View Source
const GetPoliciesForbiddenCode int = 403

GetPoliciesForbiddenCode is the HTTP code returned for type GetPoliciesForbidden

View Source
const GetPoliciesOKCode int = 200

GetPoliciesOKCode is the HTTP code returned for type GetPoliciesOK

View Source
const GetPoliciesUnauthorizedCode int = 401

GetPoliciesUnauthorizedCode is the HTTP code returned for type GetPoliciesUnauthorized

View Source
const GetPolicyBadRequestCode int = 400

GetPolicyBadRequestCode is the HTTP code returned for type GetPolicyBadRequest

View Source
const GetPolicyForbiddenCode int = 403

GetPolicyForbiddenCode is the HTTP code returned for type GetPolicyForbidden

View Source
const GetPolicyNotFoundCode int = 404

GetPolicyNotFoundCode is the HTTP code returned for type GetPolicyNotFound

View Source
const GetPolicyOKCode int = 200

GetPolicyOKCode is the HTTP code returned for type GetPolicyOK

View Source
const GetPolicyUnauthorizedCode int = 401

GetPolicyUnauthorizedCode is the HTTP code returned for type GetPolicyUnauthorized

View Source
const UpdatePolicyBadRequestCode int = 400

UpdatePolicyBadRequestCode is the HTTP code returned for type UpdatePolicyBadRequest

View Source
const UpdatePolicyForbiddenCode int = 403

UpdatePolicyForbiddenCode is the HTTP code returned for type UpdatePolicyForbidden

View Source
const UpdatePolicyNotFoundCode int = 404

UpdatePolicyNotFoundCode is the HTTP code returned for type UpdatePolicyNotFound

View Source
const UpdatePolicyOKCode int = 200

UpdatePolicyOKCode is the HTTP code returned for type UpdatePolicyOK

View Source
const UpdatePolicyUnauthorizedCode int = 401

UpdatePolicyUnauthorizedCode is the HTTP code returned for type UpdatePolicyUnauthorized

Variables

This section is empty.

Functions

This section is empty.

Types

type AddPolicy

type AddPolicy struct {
	Context *middleware.Context
	Handler AddPolicyHandler
}

AddPolicy swagger:route POST /v1/iam/policy policy addPolicy

Add a new policy

func NewAddPolicy

func NewAddPolicy(ctx *middleware.Context, handler AddPolicyHandler) *AddPolicy

NewAddPolicy creates a new http.Handler for the add policy operation

func (*AddPolicy) ServeHTTP

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

type AddPolicyBadRequest

type AddPolicyBadRequest struct {

	/*
	  In: Body
	*/
	Payload *v1.Error `json:"body,omitempty"`
}

AddPolicyBadRequest Invalid input

swagger:response addPolicyBadRequest

func NewAddPolicyBadRequest

func NewAddPolicyBadRequest() *AddPolicyBadRequest

NewAddPolicyBadRequest creates AddPolicyBadRequest with default headers values

func (*AddPolicyBadRequest) SetPayload

func (o *AddPolicyBadRequest) SetPayload(payload *v1.Error)

SetPayload sets the payload to the add policy bad request response

func (*AddPolicyBadRequest) WithPayload

func (o *AddPolicyBadRequest) WithPayload(payload *v1.Error) *AddPolicyBadRequest

WithPayload adds the payload to the add policy bad request response

func (*AddPolicyBadRequest) WriteResponse

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

WriteResponse to the client

type AddPolicyConflict

type AddPolicyConflict struct {

	/*
	  In: Body
	*/
	Payload *v1.Error `json:"body,omitempty"`
}

AddPolicyConflict Already Exists

swagger:response addPolicyConflict

func NewAddPolicyConflict

func NewAddPolicyConflict() *AddPolicyConflict

NewAddPolicyConflict creates AddPolicyConflict with default headers values

func (*AddPolicyConflict) SetPayload

func (o *AddPolicyConflict) SetPayload(payload *v1.Error)

SetPayload sets the payload to the add policy conflict response

func (*AddPolicyConflict) WithPayload

func (o *AddPolicyConflict) WithPayload(payload *v1.Error) *AddPolicyConflict

WithPayload adds the payload to the add policy conflict response

func (*AddPolicyConflict) WriteResponse

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

WriteResponse to the client

type AddPolicyCreated

type AddPolicyCreated struct {

	/*
	  In: Body
	*/
	Payload *v1.Policy `json:"body,omitempty"`
}

AddPolicyCreated created

swagger:response addPolicyCreated

func NewAddPolicyCreated

func NewAddPolicyCreated() *AddPolicyCreated

NewAddPolicyCreated creates AddPolicyCreated with default headers values

func (*AddPolicyCreated) SetPayload

func (o *AddPolicyCreated) SetPayload(payload *v1.Policy)

SetPayload sets the payload to the add policy created response

func (*AddPolicyCreated) WithPayload

func (o *AddPolicyCreated) WithPayload(payload *v1.Policy) *AddPolicyCreated

WithPayload adds the payload to the add policy created response

func (*AddPolicyCreated) WriteResponse

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

WriteResponse to the client

type AddPolicyDefault

type AddPolicyDefault struct {

	/*
	  In: Body
	*/
	Payload *v1.Error `json:"body,omitempty"`
	// contains filtered or unexported fields
}

AddPolicyDefault Generic error response

swagger:response addPolicyDefault

func NewAddPolicyDefault

func NewAddPolicyDefault(code int) *AddPolicyDefault

NewAddPolicyDefault creates AddPolicyDefault with default headers values

func (*AddPolicyDefault) SetPayload

func (o *AddPolicyDefault) SetPayload(payload *v1.Error)

SetPayload sets the payload to the add policy default response

func (*AddPolicyDefault) SetStatusCode

func (o *AddPolicyDefault) SetStatusCode(code int)

SetStatusCode sets the status to the add policy default response

func (*AddPolicyDefault) WithPayload

func (o *AddPolicyDefault) WithPayload(payload *v1.Error) *AddPolicyDefault

WithPayload adds the payload to the add policy default response

func (*AddPolicyDefault) WithStatusCode

func (o *AddPolicyDefault) WithStatusCode(code int) *AddPolicyDefault

WithStatusCode adds the status to the add policy default response

func (*AddPolicyDefault) WriteResponse

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

WriteResponse to the client

type AddPolicyForbidden added in v0.1.18

type AddPolicyForbidden struct {

	/*
	  In: Body
	*/
	Payload *v1.Error `json:"body,omitempty"`
}

AddPolicyForbidden access to this resource is forbidden

swagger:response addPolicyForbidden

func NewAddPolicyForbidden added in v0.1.18

func NewAddPolicyForbidden() *AddPolicyForbidden

NewAddPolicyForbidden creates AddPolicyForbidden with default headers values

func (*AddPolicyForbidden) SetPayload added in v0.1.18

func (o *AddPolicyForbidden) SetPayload(payload *v1.Error)

SetPayload sets the payload to the add policy forbidden response

func (*AddPolicyForbidden) WithPayload added in v0.1.18

func (o *AddPolicyForbidden) WithPayload(payload *v1.Error) *AddPolicyForbidden

WithPayload adds the payload to the add policy forbidden response

func (*AddPolicyForbidden) WriteResponse added in v0.1.18

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

WriteResponse to the client

type AddPolicyHandler

type AddPolicyHandler interface {
	Handle(AddPolicyParams, interface{}) middleware.Responder
}

AddPolicyHandler interface for that can handle valid add policy params

type AddPolicyHandlerFunc

type AddPolicyHandlerFunc func(AddPolicyParams, interface{}) middleware.Responder

AddPolicyHandlerFunc turns a function with the right signature into a add policy handler

func (AddPolicyHandlerFunc) Handle

func (fn AddPolicyHandlerFunc) Handle(params AddPolicyParams, principal interface{}) middleware.Responder

Handle executing the request and returning a response

type AddPolicyParams

type AddPolicyParams struct {

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

	/*
	  Required: true
	  In: header
	*/
	XDispatchOrg string
	/*Policy Object
	  Required: true
	  In: body
	*/
	Body *v1.Policy
}

AddPolicyParams contains all the bound params for the add policy operation typically these are obtained from a http.Request

swagger:parameters addPolicy

func NewAddPolicyParams

func NewAddPolicyParams() AddPolicyParams

NewAddPolicyParams creates a new AddPolicyParams object no default values defined in spec.

func (*AddPolicyParams) BindRequest

func (o *AddPolicyParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error

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 NewAddPolicyParams() beforehand.

type AddPolicyURL

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

AddPolicyURL generates an URL for the add policy operation

func (*AddPolicyURL) Build

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

Build a url path and query string

func (*AddPolicyURL) BuildFull

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

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

func (*AddPolicyURL) Must

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

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

func (*AddPolicyURL) SetBasePath

func (o *AddPolicyURL) 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 (*AddPolicyURL) String

func (o *AddPolicyURL) String() string

String returns the string representation of the path with query string

func (*AddPolicyURL) StringFull

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

StringFull returns the string representation of a complete url

func (*AddPolicyURL) WithBasePath

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

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

type AddPolicyUnauthorized struct {

	/*
	  In: Body
	*/
	Payload *v1.Error `json:"body,omitempty"`
}

AddPolicyUnauthorized Unauthorized Request

swagger:response addPolicyUnauthorized

func NewAddPolicyUnauthorized added in v0.1.18

func NewAddPolicyUnauthorized() *AddPolicyUnauthorized

NewAddPolicyUnauthorized creates AddPolicyUnauthorized with default headers values

func (*AddPolicyUnauthorized) SetPayload added in v0.1.18

func (o *AddPolicyUnauthorized) SetPayload(payload *v1.Error)

SetPayload sets the payload to the add policy unauthorized response

func (*AddPolicyUnauthorized) WithPayload added in v0.1.18

func (o *AddPolicyUnauthorized) WithPayload(payload *v1.Error) *AddPolicyUnauthorized

WithPayload adds the payload to the add policy unauthorized response

func (*AddPolicyUnauthorized) WriteResponse added in v0.1.18

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

WriteResponse to the client

type DeletePolicy

type DeletePolicy struct {
	Context *middleware.Context
	Handler DeletePolicyHandler
}

DeletePolicy swagger:route DELETE /v1/iam/policy/{policyName} policy deletePolicy

Deletes an Policy

func NewDeletePolicy

func NewDeletePolicy(ctx *middleware.Context, handler DeletePolicyHandler) *DeletePolicy

NewDeletePolicy creates a new http.Handler for the delete policy operation

func (*DeletePolicy) ServeHTTP

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

type DeletePolicyBadRequest

type DeletePolicyBadRequest struct {

	/*
	  In: Body
	*/
	Payload *v1.Error `json:"body,omitempty"`
}

DeletePolicyBadRequest Invalid Name supplied

swagger:response deletePolicyBadRequest

func NewDeletePolicyBadRequest

func NewDeletePolicyBadRequest() *DeletePolicyBadRequest

NewDeletePolicyBadRequest creates DeletePolicyBadRequest with default headers values

func (*DeletePolicyBadRequest) SetPayload

func (o *DeletePolicyBadRequest) SetPayload(payload *v1.Error)

SetPayload sets the payload to the delete policy bad request response

func (*DeletePolicyBadRequest) WithPayload

func (o *DeletePolicyBadRequest) WithPayload(payload *v1.Error) *DeletePolicyBadRequest

WithPayload adds the payload to the delete policy bad request response

func (*DeletePolicyBadRequest) WriteResponse

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

WriteResponse to the client

type DeletePolicyDefault added in v0.1.18

type DeletePolicyDefault struct {

	/*
	  In: Body
	*/
	Payload *v1.Error `json:"body,omitempty"`
	// contains filtered or unexported fields
}

DeletePolicyDefault Unknown error

swagger:response deletePolicyDefault

func NewDeletePolicyDefault added in v0.1.18

func NewDeletePolicyDefault(code int) *DeletePolicyDefault

NewDeletePolicyDefault creates DeletePolicyDefault with default headers values

func (*DeletePolicyDefault) SetPayload added in v0.1.18

func (o *DeletePolicyDefault) SetPayload(payload *v1.Error)

SetPayload sets the payload to the delete policy default response

func (*DeletePolicyDefault) SetStatusCode added in v0.1.18

func (o *DeletePolicyDefault) SetStatusCode(code int)

SetStatusCode sets the status to the delete policy default response

func (*DeletePolicyDefault) WithPayload added in v0.1.18

func (o *DeletePolicyDefault) WithPayload(payload *v1.Error) *DeletePolicyDefault

WithPayload adds the payload to the delete policy default response

func (*DeletePolicyDefault) WithStatusCode added in v0.1.18

func (o *DeletePolicyDefault) WithStatusCode(code int) *DeletePolicyDefault

WithStatusCode adds the status to the delete policy default response

func (*DeletePolicyDefault) WriteResponse added in v0.1.18

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

WriteResponse to the client

type DeletePolicyForbidden added in v0.1.18

type DeletePolicyForbidden struct {

	/*
	  In: Body
	*/
	Payload *v1.Error `json:"body,omitempty"`
}

DeletePolicyForbidden access to this resource is forbidden

swagger:response deletePolicyForbidden

func NewDeletePolicyForbidden added in v0.1.18

func NewDeletePolicyForbidden() *DeletePolicyForbidden

NewDeletePolicyForbidden creates DeletePolicyForbidden with default headers values

func (*DeletePolicyForbidden) SetPayload added in v0.1.18

func (o *DeletePolicyForbidden) SetPayload(payload *v1.Error)

SetPayload sets the payload to the delete policy forbidden response

func (*DeletePolicyForbidden) WithPayload added in v0.1.18

func (o *DeletePolicyForbidden) WithPayload(payload *v1.Error) *DeletePolicyForbidden

WithPayload adds the payload to the delete policy forbidden response

func (*DeletePolicyForbidden) WriteResponse added in v0.1.18

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

WriteResponse to the client

type DeletePolicyHandler

type DeletePolicyHandler interface {
	Handle(DeletePolicyParams, interface{}) middleware.Responder
}

DeletePolicyHandler interface for that can handle valid delete policy params

type DeletePolicyHandlerFunc

type DeletePolicyHandlerFunc func(DeletePolicyParams, interface{}) middleware.Responder

DeletePolicyHandlerFunc turns a function with the right signature into a delete policy handler

func (DeletePolicyHandlerFunc) Handle

func (fn DeletePolicyHandlerFunc) Handle(params DeletePolicyParams, principal interface{}) middleware.Responder

Handle executing the request and returning a response

type DeletePolicyNotFound

type DeletePolicyNotFound struct {

	/*
	  In: Body
	*/
	Payload *v1.Error `json:"body,omitempty"`
}

DeletePolicyNotFound Policy not found

swagger:response deletePolicyNotFound

func NewDeletePolicyNotFound

func NewDeletePolicyNotFound() *DeletePolicyNotFound

NewDeletePolicyNotFound creates DeletePolicyNotFound with default headers values

func (*DeletePolicyNotFound) SetPayload

func (o *DeletePolicyNotFound) SetPayload(payload *v1.Error)

SetPayload sets the payload to the delete policy not found response

func (*DeletePolicyNotFound) WithPayload

func (o *DeletePolicyNotFound) WithPayload(payload *v1.Error) *DeletePolicyNotFound

WithPayload adds the payload to the delete policy not found response

func (*DeletePolicyNotFound) WriteResponse

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

WriteResponse to the client

type DeletePolicyOK

type DeletePolicyOK struct {

	/*
	  In: Body
	*/
	Payload *v1.Policy `json:"body,omitempty"`
}

DeletePolicyOK Successful operation

swagger:response deletePolicyOK

func NewDeletePolicyOK

func NewDeletePolicyOK() *DeletePolicyOK

NewDeletePolicyOK creates DeletePolicyOK with default headers values

func (*DeletePolicyOK) SetPayload

func (o *DeletePolicyOK) SetPayload(payload *v1.Policy)

SetPayload sets the payload to the delete policy o k response

func (*DeletePolicyOK) WithPayload

func (o *DeletePolicyOK) WithPayload(payload *v1.Policy) *DeletePolicyOK

WithPayload adds the payload to the delete policy o k response

func (*DeletePolicyOK) WriteResponse

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

WriteResponse to the client

type DeletePolicyParams

type DeletePolicyParams struct {

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

	/*
	  Required: true
	  In: header
	*/
	XDispatchOrg string
	/*Name of Policy to work on
	  Required: true
	  Pattern: ^[\w\d\-]+$
	  In: path
	*/
	PolicyName string
}

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

swagger:parameters deletePolicy

func NewDeletePolicyParams

func NewDeletePolicyParams() DeletePolicyParams

NewDeletePolicyParams creates a new DeletePolicyParams object no default values defined in spec.

func (*DeletePolicyParams) BindRequest

func (o *DeletePolicyParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error

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 NewDeletePolicyParams() beforehand.

type DeletePolicyURL

type DeletePolicyURL struct {
	PolicyName string
	// contains filtered or unexported fields
}

DeletePolicyURL generates an URL for the delete policy operation

func (*DeletePolicyURL) Build

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

Build a url path and query string

func (*DeletePolicyURL) BuildFull

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

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

func (*DeletePolicyURL) Must

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

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

func (*DeletePolicyURL) SetBasePath

func (o *DeletePolicyURL) 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 (*DeletePolicyURL) String

func (o *DeletePolicyURL) String() string

String returns the string representation of the path with query string

func (*DeletePolicyURL) StringFull

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

StringFull returns the string representation of a complete url

func (*DeletePolicyURL) WithBasePath

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

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

type DeletePolicyUnauthorized struct {

	/*
	  In: Body
	*/
	Payload *v1.Error `json:"body,omitempty"`
}

DeletePolicyUnauthorized Unauthorized Request

swagger:response deletePolicyUnauthorized

func NewDeletePolicyUnauthorized added in v0.1.18

func NewDeletePolicyUnauthorized() *DeletePolicyUnauthorized

NewDeletePolicyUnauthorized creates DeletePolicyUnauthorized with default headers values

func (*DeletePolicyUnauthorized) SetPayload added in v0.1.18

func (o *DeletePolicyUnauthorized) SetPayload(payload *v1.Error)

SetPayload sets the payload to the delete policy unauthorized response

func (*DeletePolicyUnauthorized) WithPayload added in v0.1.18

func (o *DeletePolicyUnauthorized) WithPayload(payload *v1.Error) *DeletePolicyUnauthorized

WithPayload adds the payload to the delete policy unauthorized response

func (*DeletePolicyUnauthorized) WriteResponse added in v0.1.18

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

WriteResponse to the client

type GetPolicies

type GetPolicies struct {
	Context *middleware.Context
	Handler GetPoliciesHandler
}

GetPolicies swagger:route GET /v1/iam/policy policy getPolicies

List all existing policies

func NewGetPolicies

func NewGetPolicies(ctx *middleware.Context, handler GetPoliciesHandler) *GetPolicies

NewGetPolicies creates a new http.Handler for the get policies operation

func (*GetPolicies) ServeHTTP

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

type GetPoliciesDefault

type GetPoliciesDefault struct {

	/*
	  In: Body
	*/
	Payload *v1.Error `json:"body,omitempty"`
	// contains filtered or unexported fields
}

GetPoliciesDefault Unexpected Error

swagger:response getPoliciesDefault

func NewGetPoliciesDefault

func NewGetPoliciesDefault(code int) *GetPoliciesDefault

NewGetPoliciesDefault creates GetPoliciesDefault with default headers values

func (*GetPoliciesDefault) SetPayload

func (o *GetPoliciesDefault) SetPayload(payload *v1.Error)

SetPayload sets the payload to the get policies default response

func (*GetPoliciesDefault) SetStatusCode

func (o *GetPoliciesDefault) SetStatusCode(code int)

SetStatusCode sets the status to the get policies default response

func (*GetPoliciesDefault) WithPayload

func (o *GetPoliciesDefault) WithPayload(payload *v1.Error) *GetPoliciesDefault

WithPayload adds the payload to the get policies default response

func (*GetPoliciesDefault) WithStatusCode

func (o *GetPoliciesDefault) WithStatusCode(code int) *GetPoliciesDefault

WithStatusCode adds the status to the get policies default response

func (*GetPoliciesDefault) WriteResponse

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

WriteResponse to the client

type GetPoliciesForbidden added in v0.1.18

type GetPoliciesForbidden struct {

	/*
	  In: Body
	*/
	Payload *v1.Error `json:"body,omitempty"`
}

GetPoliciesForbidden access to this resource is forbidden

swagger:response getPoliciesForbidden

func NewGetPoliciesForbidden added in v0.1.18

func NewGetPoliciesForbidden() *GetPoliciesForbidden

NewGetPoliciesForbidden creates GetPoliciesForbidden with default headers values

func (*GetPoliciesForbidden) SetPayload added in v0.1.18

func (o *GetPoliciesForbidden) SetPayload(payload *v1.Error)

SetPayload sets the payload to the get policies forbidden response

func (*GetPoliciesForbidden) WithPayload added in v0.1.18

func (o *GetPoliciesForbidden) WithPayload(payload *v1.Error) *GetPoliciesForbidden

WithPayload adds the payload to the get policies forbidden response

func (*GetPoliciesForbidden) WriteResponse added in v0.1.18

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

WriteResponse to the client

type GetPoliciesHandler

type GetPoliciesHandler interface {
	Handle(GetPoliciesParams, interface{}) middleware.Responder
}

GetPoliciesHandler interface for that can handle valid get policies params

type GetPoliciesHandlerFunc

type GetPoliciesHandlerFunc func(GetPoliciesParams, interface{}) middleware.Responder

GetPoliciesHandlerFunc turns a function with the right signature into a get policies handler

func (GetPoliciesHandlerFunc) Handle

func (fn GetPoliciesHandlerFunc) Handle(params GetPoliciesParams, principal interface{}) middleware.Responder

Handle executing the request and returning a response

type GetPoliciesOK

type GetPoliciesOK struct {

	/*
	  In: Body
	*/
	Payload []*v1.Policy `json:"body,omitempty"`
}

GetPoliciesOK Successful operation

swagger:response getPoliciesOK

func NewGetPoliciesOK

func NewGetPoliciesOK() *GetPoliciesOK

NewGetPoliciesOK creates GetPoliciesOK with default headers values

func (*GetPoliciesOK) SetPayload

func (o *GetPoliciesOK) SetPayload(payload []*v1.Policy)

SetPayload sets the payload to the get policies o k response

func (*GetPoliciesOK) WithPayload

func (o *GetPoliciesOK) WithPayload(payload []*v1.Policy) *GetPoliciesOK

WithPayload adds the payload to the get policies o k response

func (*GetPoliciesOK) WriteResponse

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

WriteResponse to the client

type GetPoliciesParams

type GetPoliciesParams struct {

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

	/*
	  Required: true
	  In: header
	*/
	XDispatchOrg string
}

GetPoliciesParams contains all the bound params for the get policies operation typically these are obtained from a http.Request

swagger:parameters getPolicies

func NewGetPoliciesParams

func NewGetPoliciesParams() GetPoliciesParams

NewGetPoliciesParams creates a new GetPoliciesParams object no default values defined in spec.

func (*GetPoliciesParams) BindRequest

func (o *GetPoliciesParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error

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 NewGetPoliciesParams() beforehand.

type GetPoliciesURL

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

GetPoliciesURL generates an URL for the get policies operation

func (*GetPoliciesURL) Build

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

Build a url path and query string

func (*GetPoliciesURL) BuildFull

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

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

func (*GetPoliciesURL) Must

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

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

func (*GetPoliciesURL) SetBasePath

func (o *GetPoliciesURL) 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 (*GetPoliciesURL) String

func (o *GetPoliciesURL) String() string

String returns the string representation of the path with query string

func (*GetPoliciesURL) StringFull

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

StringFull returns the string representation of a complete url

func (*GetPoliciesURL) WithBasePath

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

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

type GetPoliciesUnauthorized struct {

	/*
	  In: Body
	*/
	Payload *v1.Error `json:"body,omitempty"`
}

GetPoliciesUnauthorized Unauthorized Request

swagger:response getPoliciesUnauthorized

func NewGetPoliciesUnauthorized added in v0.1.18

func NewGetPoliciesUnauthorized() *GetPoliciesUnauthorized

NewGetPoliciesUnauthorized creates GetPoliciesUnauthorized with default headers values

func (*GetPoliciesUnauthorized) SetPayload added in v0.1.18

func (o *GetPoliciesUnauthorized) SetPayload(payload *v1.Error)

SetPayload sets the payload to the get policies unauthorized response

func (*GetPoliciesUnauthorized) WithPayload added in v0.1.18

func (o *GetPoliciesUnauthorized) WithPayload(payload *v1.Error) *GetPoliciesUnauthorized

WithPayload adds the payload to the get policies unauthorized response

func (*GetPoliciesUnauthorized) WriteResponse added in v0.1.18

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

WriteResponse to the client

type GetPolicy

type GetPolicy struct {
	Context *middleware.Context
	Handler GetPolicyHandler
}

GetPolicy swagger:route GET /v1/iam/policy/{policyName} policy getPolicy

Find Policy by name

get an Policy by name

func NewGetPolicy

func NewGetPolicy(ctx *middleware.Context, handler GetPolicyHandler) *GetPolicy

NewGetPolicy creates a new http.Handler for the get policy operation

func (*GetPolicy) ServeHTTP

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

type GetPolicyBadRequest

type GetPolicyBadRequest struct {

	/*
	  In: Body
	*/
	Payload *v1.Error `json:"body,omitempty"`
}

GetPolicyBadRequest Invalid Name supplied

swagger:response getPolicyBadRequest

func NewGetPolicyBadRequest

func NewGetPolicyBadRequest() *GetPolicyBadRequest

NewGetPolicyBadRequest creates GetPolicyBadRequest with default headers values

func (*GetPolicyBadRequest) SetPayload

func (o *GetPolicyBadRequest) SetPayload(payload *v1.Error)

SetPayload sets the payload to the get policy bad request response

func (*GetPolicyBadRequest) WithPayload

func (o *GetPolicyBadRequest) WithPayload(payload *v1.Error) *GetPolicyBadRequest

WithPayload adds the payload to the get policy bad request response

func (*GetPolicyBadRequest) WriteResponse

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

WriteResponse to the client

type GetPolicyDefault added in v0.1.18

type GetPolicyDefault struct {

	/*
	  In: Body
	*/
	Payload *v1.Error `json:"body,omitempty"`
	// contains filtered or unexported fields
}

GetPolicyDefault Unknown error

swagger:response getPolicyDefault

func NewGetPolicyDefault added in v0.1.18

func NewGetPolicyDefault(code int) *GetPolicyDefault

NewGetPolicyDefault creates GetPolicyDefault with default headers values

func (*GetPolicyDefault) SetPayload added in v0.1.18

func (o *GetPolicyDefault) SetPayload(payload *v1.Error)

SetPayload sets the payload to the get policy default response

func (*GetPolicyDefault) SetStatusCode added in v0.1.18

func (o *GetPolicyDefault) SetStatusCode(code int)

SetStatusCode sets the status to the get policy default response

func (*GetPolicyDefault) WithPayload added in v0.1.18

func (o *GetPolicyDefault) WithPayload(payload *v1.Error) *GetPolicyDefault

WithPayload adds the payload to the get policy default response

func (*GetPolicyDefault) WithStatusCode added in v0.1.18

func (o *GetPolicyDefault) WithStatusCode(code int) *GetPolicyDefault

WithStatusCode adds the status to the get policy default response

func (*GetPolicyDefault) WriteResponse added in v0.1.18

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

WriteResponse to the client

type GetPolicyForbidden added in v0.1.18

type GetPolicyForbidden struct {

	/*
	  In: Body
	*/
	Payload *v1.Error `json:"body,omitempty"`
}

GetPolicyForbidden access to this resource is forbidden

swagger:response getPolicyForbidden

func NewGetPolicyForbidden added in v0.1.18

func NewGetPolicyForbidden() *GetPolicyForbidden

NewGetPolicyForbidden creates GetPolicyForbidden with default headers values

func (*GetPolicyForbidden) SetPayload added in v0.1.18

func (o *GetPolicyForbidden) SetPayload(payload *v1.Error)

SetPayload sets the payload to the get policy forbidden response

func (*GetPolicyForbidden) WithPayload added in v0.1.18

func (o *GetPolicyForbidden) WithPayload(payload *v1.Error) *GetPolicyForbidden

WithPayload adds the payload to the get policy forbidden response

func (*GetPolicyForbidden) WriteResponse added in v0.1.18

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

WriteResponse to the client

type GetPolicyHandler

type GetPolicyHandler interface {
	Handle(GetPolicyParams, interface{}) middleware.Responder
}

GetPolicyHandler interface for that can handle valid get policy params

type GetPolicyHandlerFunc

type GetPolicyHandlerFunc func(GetPolicyParams, interface{}) middleware.Responder

GetPolicyHandlerFunc turns a function with the right signature into a get policy handler

func (GetPolicyHandlerFunc) Handle

func (fn GetPolicyHandlerFunc) Handle(params GetPolicyParams, principal interface{}) middleware.Responder

Handle executing the request and returning a response

type GetPolicyNotFound

type GetPolicyNotFound struct {

	/*
	  In: Body
	*/
	Payload *v1.Error `json:"body,omitempty"`
}

GetPolicyNotFound Policy not found

swagger:response getPolicyNotFound

func NewGetPolicyNotFound

func NewGetPolicyNotFound() *GetPolicyNotFound

NewGetPolicyNotFound creates GetPolicyNotFound with default headers values

func (*GetPolicyNotFound) SetPayload

func (o *GetPolicyNotFound) SetPayload(payload *v1.Error)

SetPayload sets the payload to the get policy not found response

func (*GetPolicyNotFound) WithPayload

func (o *GetPolicyNotFound) WithPayload(payload *v1.Error) *GetPolicyNotFound

WithPayload adds the payload to the get policy not found response

func (*GetPolicyNotFound) WriteResponse

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

WriteResponse to the client

type GetPolicyOK

type GetPolicyOK struct {

	/*
	  In: Body
	*/
	Payload *v1.Policy `json:"body,omitempty"`
}

GetPolicyOK Successful operation

swagger:response getPolicyOK

func NewGetPolicyOK

func NewGetPolicyOK() *GetPolicyOK

NewGetPolicyOK creates GetPolicyOK with default headers values

func (*GetPolicyOK) SetPayload

func (o *GetPolicyOK) SetPayload(payload *v1.Policy)

SetPayload sets the payload to the get policy o k response

func (*GetPolicyOK) WithPayload

func (o *GetPolicyOK) WithPayload(payload *v1.Policy) *GetPolicyOK

WithPayload adds the payload to the get policy o k response

func (*GetPolicyOK) WriteResponse

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

WriteResponse to the client

type GetPolicyParams

type GetPolicyParams struct {

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

	/*
	  Required: true
	  In: header
	*/
	XDispatchOrg string
	/*Name of Policy to work on
	  Required: true
	  Pattern: ^[\w\d\-]+$
	  In: path
	*/
	PolicyName string
}

GetPolicyParams contains all the bound params for the get policy operation typically these are obtained from a http.Request

swagger:parameters getPolicy

func NewGetPolicyParams

func NewGetPolicyParams() GetPolicyParams

NewGetPolicyParams creates a new GetPolicyParams object no default values defined in spec.

func (*GetPolicyParams) BindRequest

func (o *GetPolicyParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error

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 NewGetPolicyParams() beforehand.

type GetPolicyURL

type GetPolicyURL struct {
	PolicyName string
	// contains filtered or unexported fields
}

GetPolicyURL generates an URL for the get policy operation

func (*GetPolicyURL) Build

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

Build a url path and query string

func (*GetPolicyURL) BuildFull

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

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

func (*GetPolicyURL) Must

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

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

func (*GetPolicyURL) SetBasePath

func (o *GetPolicyURL) 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 (*GetPolicyURL) String

func (o *GetPolicyURL) String() string

String returns the string representation of the path with query string

func (*GetPolicyURL) StringFull

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

StringFull returns the string representation of a complete url

func (*GetPolicyURL) WithBasePath

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

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

type GetPolicyUnauthorized struct {

	/*
	  In: Body
	*/
	Payload *v1.Error `json:"body,omitempty"`
}

GetPolicyUnauthorized Unauthorized Request

swagger:response getPolicyUnauthorized

func NewGetPolicyUnauthorized added in v0.1.18

func NewGetPolicyUnauthorized() *GetPolicyUnauthorized

NewGetPolicyUnauthorized creates GetPolicyUnauthorized with default headers values

func (*GetPolicyUnauthorized) SetPayload added in v0.1.18

func (o *GetPolicyUnauthorized) SetPayload(payload *v1.Error)

SetPayload sets the payload to the get policy unauthorized response

func (*GetPolicyUnauthorized) WithPayload added in v0.1.18

func (o *GetPolicyUnauthorized) WithPayload(payload *v1.Error) *GetPolicyUnauthorized

WithPayload adds the payload to the get policy unauthorized response

func (*GetPolicyUnauthorized) WriteResponse added in v0.1.18

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

WriteResponse to the client

type UpdatePolicy

type UpdatePolicy struct {
	Context *middleware.Context
	Handler UpdatePolicyHandler
}

UpdatePolicy swagger:route PUT /v1/iam/policy/{policyName} policy updatePolicy

Update a Policy

func NewUpdatePolicy

func NewUpdatePolicy(ctx *middleware.Context, handler UpdatePolicyHandler) *UpdatePolicy

NewUpdatePolicy creates a new http.Handler for the update policy operation

func (*UpdatePolicy) ServeHTTP

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

type UpdatePolicyBadRequest

type UpdatePolicyBadRequest struct {

	/*
	  In: Body
	*/
	Payload *v1.Error `json:"body,omitempty"`
}

UpdatePolicyBadRequest Invalid input

swagger:response updatePolicyBadRequest

func NewUpdatePolicyBadRequest

func NewUpdatePolicyBadRequest() *UpdatePolicyBadRequest

NewUpdatePolicyBadRequest creates UpdatePolicyBadRequest with default headers values

func (*UpdatePolicyBadRequest) SetPayload

func (o *UpdatePolicyBadRequest) SetPayload(payload *v1.Error)

SetPayload sets the payload to the update policy bad request response

func (*UpdatePolicyBadRequest) WithPayload

func (o *UpdatePolicyBadRequest) WithPayload(payload *v1.Error) *UpdatePolicyBadRequest

WithPayload adds the payload to the update policy bad request response

func (*UpdatePolicyBadRequest) WriteResponse

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

WriteResponse to the client

type UpdatePolicyDefault added in v0.1.18

type UpdatePolicyDefault struct {

	/*
	  In: Body
	*/
	Payload *v1.Error `json:"body,omitempty"`
	// contains filtered or unexported fields
}

UpdatePolicyDefault Unknown error

swagger:response updatePolicyDefault

func NewUpdatePolicyDefault added in v0.1.18

func NewUpdatePolicyDefault(code int) *UpdatePolicyDefault

NewUpdatePolicyDefault creates UpdatePolicyDefault with default headers values

func (*UpdatePolicyDefault) SetPayload added in v0.1.18

func (o *UpdatePolicyDefault) SetPayload(payload *v1.Error)

SetPayload sets the payload to the update policy default response

func (*UpdatePolicyDefault) SetStatusCode added in v0.1.18

func (o *UpdatePolicyDefault) SetStatusCode(code int)

SetStatusCode sets the status to the update policy default response

func (*UpdatePolicyDefault) WithPayload added in v0.1.18

func (o *UpdatePolicyDefault) WithPayload(payload *v1.Error) *UpdatePolicyDefault

WithPayload adds the payload to the update policy default response

func (*UpdatePolicyDefault) WithStatusCode added in v0.1.18

func (o *UpdatePolicyDefault) WithStatusCode(code int) *UpdatePolicyDefault

WithStatusCode adds the status to the update policy default response

func (*UpdatePolicyDefault) WriteResponse added in v0.1.18

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

WriteResponse to the client

type UpdatePolicyForbidden added in v0.1.18

type UpdatePolicyForbidden struct {

	/*
	  In: Body
	*/
	Payload *v1.Error `json:"body,omitempty"`
}

UpdatePolicyForbidden access to this resource is forbidden

swagger:response updatePolicyForbidden

func NewUpdatePolicyForbidden added in v0.1.18

func NewUpdatePolicyForbidden() *UpdatePolicyForbidden

NewUpdatePolicyForbidden creates UpdatePolicyForbidden with default headers values

func (*UpdatePolicyForbidden) SetPayload added in v0.1.18

func (o *UpdatePolicyForbidden) SetPayload(payload *v1.Error)

SetPayload sets the payload to the update policy forbidden response

func (*UpdatePolicyForbidden) WithPayload added in v0.1.18

func (o *UpdatePolicyForbidden) WithPayload(payload *v1.Error) *UpdatePolicyForbidden

WithPayload adds the payload to the update policy forbidden response

func (*UpdatePolicyForbidden) WriteResponse added in v0.1.18

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

WriteResponse to the client

type UpdatePolicyHandler

type UpdatePolicyHandler interface {
	Handle(UpdatePolicyParams, interface{}) middleware.Responder
}

UpdatePolicyHandler interface for that can handle valid update policy params

type UpdatePolicyHandlerFunc

type UpdatePolicyHandlerFunc func(UpdatePolicyParams, interface{}) middleware.Responder

UpdatePolicyHandlerFunc turns a function with the right signature into a update policy handler

func (UpdatePolicyHandlerFunc) Handle

func (fn UpdatePolicyHandlerFunc) Handle(params UpdatePolicyParams, principal interface{}) middleware.Responder

Handle executing the request and returning a response

type UpdatePolicyNotFound

type UpdatePolicyNotFound struct {

	/*
	  In: Body
	*/
	Payload *v1.Error `json:"body,omitempty"`
}

UpdatePolicyNotFound Policy not found

swagger:response updatePolicyNotFound

func NewUpdatePolicyNotFound

func NewUpdatePolicyNotFound() *UpdatePolicyNotFound

NewUpdatePolicyNotFound creates UpdatePolicyNotFound with default headers values

func (*UpdatePolicyNotFound) SetPayload

func (o *UpdatePolicyNotFound) SetPayload(payload *v1.Error)

SetPayload sets the payload to the update policy not found response

func (*UpdatePolicyNotFound) WithPayload

func (o *UpdatePolicyNotFound) WithPayload(payload *v1.Error) *UpdatePolicyNotFound

WithPayload adds the payload to the update policy not found response

func (*UpdatePolicyNotFound) WriteResponse

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

WriteResponse to the client

type UpdatePolicyOK

type UpdatePolicyOK struct {

	/*
	  In: Body
	*/
	Payload *v1.Policy `json:"body,omitempty"`
}

UpdatePolicyOK Successful update

swagger:response updatePolicyOK

func NewUpdatePolicyOK

func NewUpdatePolicyOK() *UpdatePolicyOK

NewUpdatePolicyOK creates UpdatePolicyOK with default headers values

func (*UpdatePolicyOK) SetPayload

func (o *UpdatePolicyOK) SetPayload(payload *v1.Policy)

SetPayload sets the payload to the update policy o k response

func (*UpdatePolicyOK) WithPayload

func (o *UpdatePolicyOK) WithPayload(payload *v1.Policy) *UpdatePolicyOK

WithPayload adds the payload to the update policy o k response

func (*UpdatePolicyOK) WriteResponse

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

WriteResponse to the client

type UpdatePolicyParams

type UpdatePolicyParams struct {

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

	/*
	  Required: true
	  In: header
	*/
	XDispatchOrg string
	/*Policy object
	  Required: true
	  In: body
	*/
	Body *v1.Policy
	/*Name of Policy to work on
	  Required: true
	  Pattern: ^[\w\d\-]+$
	  In: path
	*/
	PolicyName string
}

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

swagger:parameters updatePolicy

func NewUpdatePolicyParams

func NewUpdatePolicyParams() UpdatePolicyParams

NewUpdatePolicyParams creates a new UpdatePolicyParams object no default values defined in spec.

func (*UpdatePolicyParams) BindRequest

func (o *UpdatePolicyParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error

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 NewUpdatePolicyParams() beforehand.

type UpdatePolicyURL

type UpdatePolicyURL struct {
	PolicyName string
	// contains filtered or unexported fields
}

UpdatePolicyURL generates an URL for the update policy operation

func (*UpdatePolicyURL) Build

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

Build a url path and query string

func (*UpdatePolicyURL) BuildFull

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

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

func (*UpdatePolicyURL) Must

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

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

func (*UpdatePolicyURL) SetBasePath

func (o *UpdatePolicyURL) 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 (*UpdatePolicyURL) String

func (o *UpdatePolicyURL) String() string

String returns the string representation of the path with query string

func (*UpdatePolicyURL) StringFull

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

StringFull returns the string representation of a complete url

func (*UpdatePolicyURL) WithBasePath

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

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

type UpdatePolicyUnauthorized struct {

	/*
	  In: Body
	*/
	Payload *v1.Error `json:"body,omitempty"`
}

UpdatePolicyUnauthorized Unauthorized Request

swagger:response updatePolicyUnauthorized

func NewUpdatePolicyUnauthorized added in v0.1.18

func NewUpdatePolicyUnauthorized() *UpdatePolicyUnauthorized

NewUpdatePolicyUnauthorized creates UpdatePolicyUnauthorized with default headers values

func (*UpdatePolicyUnauthorized) SetPayload added in v0.1.18

func (o *UpdatePolicyUnauthorized) SetPayload(payload *v1.Error)

SetPayload sets the payload to the update policy unauthorized response

func (*UpdatePolicyUnauthorized) WithPayload added in v0.1.18

func (o *UpdatePolicyUnauthorized) WithPayload(payload *v1.Error) *UpdatePolicyUnauthorized

WithPayload adds the payload to the update policy unauthorized response

func (*UpdatePolicyUnauthorized) WriteResponse added in v0.1.18

func (o *UpdatePolicyUnauthorized) 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