service_class

package
v0.1.24 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const GetServiceClassByNameBadRequestCode int = 400

GetServiceClassByNameBadRequestCode is the HTTP code returned for type GetServiceClassByNameBadRequest

View Source
const GetServiceClassByNameForbiddenCode int = 403

GetServiceClassByNameForbiddenCode is the HTTP code returned for type GetServiceClassByNameForbidden

View Source
const GetServiceClassByNameNotFoundCode int = 404

GetServiceClassByNameNotFoundCode is the HTTP code returned for type GetServiceClassByNameNotFound

View Source
const GetServiceClassByNameOKCode int = 200

GetServiceClassByNameOKCode is the HTTP code returned for type GetServiceClassByNameOK

View Source
const GetServiceClassByNameUnauthorizedCode int = 401

GetServiceClassByNameUnauthorizedCode is the HTTP code returned for type GetServiceClassByNameUnauthorized

View Source
const GetServiceClassesForbiddenCode int = 403

GetServiceClassesForbiddenCode is the HTTP code returned for type GetServiceClassesForbidden

View Source
const GetServiceClassesOKCode int = 200

GetServiceClassesOKCode is the HTTP code returned for type GetServiceClassesOK

View Source
const GetServiceClassesUnauthorizedCode int = 401

GetServiceClassesUnauthorizedCode is the HTTP code returned for type GetServiceClassesUnauthorized

Variables

This section is empty.

Functions

This section is empty.

Types

type GetServiceClassByName

type GetServiceClassByName struct {
	Context *middleware.Context
	Handler GetServiceClassByNameHandler
}

GetServiceClassByName swagger:route GET /serviceclass/{serviceClassName} serviceClass getServiceClassByName

Find service class by name

Returns a single service class

func NewGetServiceClassByName

func NewGetServiceClassByName(ctx *middleware.Context, handler GetServiceClassByNameHandler) *GetServiceClassByName

NewGetServiceClassByName creates a new http.Handler for the get service class by name operation

func (*GetServiceClassByName) ServeHTTP

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

type GetServiceClassByNameBadRequest

type GetServiceClassByNameBadRequest struct {

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

GetServiceClassByNameBadRequest Invalid name supplied

swagger:response getServiceClassByNameBadRequest

func NewGetServiceClassByNameBadRequest

func NewGetServiceClassByNameBadRequest() *GetServiceClassByNameBadRequest

NewGetServiceClassByNameBadRequest creates GetServiceClassByNameBadRequest with default headers values

func (*GetServiceClassByNameBadRequest) SetPayload

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

SetPayload sets the payload to the get service class by name bad request response

func (*GetServiceClassByNameBadRequest) WithPayload

WithPayload adds the payload to the get service class by name bad request response

func (*GetServiceClassByNameBadRequest) WriteResponse

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

WriteResponse to the client

type GetServiceClassByNameDefault

type GetServiceClassByNameDefault struct {

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

GetServiceClassByNameDefault Generic error response

swagger:response getServiceClassByNameDefault

func NewGetServiceClassByNameDefault

func NewGetServiceClassByNameDefault(code int) *GetServiceClassByNameDefault

NewGetServiceClassByNameDefault creates GetServiceClassByNameDefault with default headers values

func (*GetServiceClassByNameDefault) SetPayload

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

SetPayload sets the payload to the get service class by name default response

func (*GetServiceClassByNameDefault) SetStatusCode

func (o *GetServiceClassByNameDefault) SetStatusCode(code int)

SetStatusCode sets the status to the get service class by name default response

func (*GetServiceClassByNameDefault) WithPayload

WithPayload adds the payload to the get service class by name default response

func (*GetServiceClassByNameDefault) WithStatusCode

WithStatusCode adds the status to the get service class by name default response

func (*GetServiceClassByNameDefault) WriteResponse

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

WriteResponse to the client

type GetServiceClassByNameForbidden added in v0.1.18

type GetServiceClassByNameForbidden struct {

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

GetServiceClassByNameForbidden access to this resource is forbidden

swagger:response getServiceClassByNameForbidden

func NewGetServiceClassByNameForbidden added in v0.1.18

func NewGetServiceClassByNameForbidden() *GetServiceClassByNameForbidden

NewGetServiceClassByNameForbidden creates GetServiceClassByNameForbidden with default headers values

func (*GetServiceClassByNameForbidden) SetPayload added in v0.1.18

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

SetPayload sets the payload to the get service class by name forbidden response

func (*GetServiceClassByNameForbidden) WithPayload added in v0.1.18

WithPayload adds the payload to the get service class by name forbidden response

func (*GetServiceClassByNameForbidden) WriteResponse added in v0.1.18

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

WriteResponse to the client

type GetServiceClassByNameHandler

type GetServiceClassByNameHandler interface {
	Handle(GetServiceClassByNameParams, interface{}) middleware.Responder
}

GetServiceClassByNameHandler interface for that can handle valid get service class by name params

type GetServiceClassByNameHandlerFunc

type GetServiceClassByNameHandlerFunc func(GetServiceClassByNameParams, interface{}) middleware.Responder

GetServiceClassByNameHandlerFunc turns a function with the right signature into a get service class by name handler

func (GetServiceClassByNameHandlerFunc) Handle

func (fn GetServiceClassByNameHandlerFunc) Handle(params GetServiceClassByNameParams, principal interface{}) middleware.Responder

Handle executing the request and returning a response

type GetServiceClassByNameNotFound

type GetServiceClassByNameNotFound struct {

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

GetServiceClassByNameNotFound Service class not found

swagger:response getServiceClassByNameNotFound

func NewGetServiceClassByNameNotFound

func NewGetServiceClassByNameNotFound() *GetServiceClassByNameNotFound

NewGetServiceClassByNameNotFound creates GetServiceClassByNameNotFound with default headers values

func (*GetServiceClassByNameNotFound) SetPayload

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

SetPayload sets the payload to the get service class by name not found response

func (*GetServiceClassByNameNotFound) WithPayload

WithPayload adds the payload to the get service class by name not found response

func (*GetServiceClassByNameNotFound) WriteResponse

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

WriteResponse to the client

type GetServiceClassByNameOK

type GetServiceClassByNameOK struct {

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

GetServiceClassByNameOK successful operation

swagger:response getServiceClassByNameOK

func NewGetServiceClassByNameOK

func NewGetServiceClassByNameOK() *GetServiceClassByNameOK

NewGetServiceClassByNameOK creates GetServiceClassByNameOK with default headers values

func (*GetServiceClassByNameOK) SetPayload

func (o *GetServiceClassByNameOK) SetPayload(payload *v1.ServiceClass)

SetPayload sets the payload to the get service class by name o k response

func (*GetServiceClassByNameOK) WithPayload

WithPayload adds the payload to the get service class by name o k response

func (*GetServiceClassByNameOK) WriteResponse

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

WriteResponse to the client

type GetServiceClassByNameParams

type GetServiceClassByNameParams struct {

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

	/*
	  Required: true
	  In: header
	*/
	XDispatchOrg string
	/*Name of service class to return
	  Required: true
	  Pattern: ^[\w\d\-]+$
	  In: path
	*/
	ServiceClassName string
}

GetServiceClassByNameParams contains all the bound params for the get service class by name operation typically these are obtained from a http.Request

swagger:parameters getServiceClassByName

func NewGetServiceClassByNameParams

func NewGetServiceClassByNameParams() GetServiceClassByNameParams

NewGetServiceClassByNameParams creates a new GetServiceClassByNameParams object no default values defined in spec.

func (*GetServiceClassByNameParams) 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 NewGetServiceClassByNameParams() beforehand.

type GetServiceClassByNameURL

type GetServiceClassByNameURL struct {
	ServiceClassName string
	// contains filtered or unexported fields
}

GetServiceClassByNameURL generates an URL for the get service class by name operation

func (*GetServiceClassByNameURL) Build

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

Build a url path and query string

func (*GetServiceClassByNameURL) BuildFull

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

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

func (*GetServiceClassByNameURL) Must

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

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

func (*GetServiceClassByNameURL) SetBasePath

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

func (o *GetServiceClassByNameURL) String() string

String returns the string representation of the path with query string

func (*GetServiceClassByNameURL) StringFull

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

StringFull returns the string representation of a complete url

func (*GetServiceClassByNameURL) 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 GetServiceClassByNameUnauthorized added in v0.1.18

type GetServiceClassByNameUnauthorized struct {

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

GetServiceClassByNameUnauthorized Unauthorized Request

swagger:response getServiceClassByNameUnauthorized

func NewGetServiceClassByNameUnauthorized added in v0.1.18

func NewGetServiceClassByNameUnauthorized() *GetServiceClassByNameUnauthorized

NewGetServiceClassByNameUnauthorized creates GetServiceClassByNameUnauthorized with default headers values

func (*GetServiceClassByNameUnauthorized) SetPayload added in v0.1.18

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

SetPayload sets the payload to the get service class by name unauthorized response

func (*GetServiceClassByNameUnauthorized) WithPayload added in v0.1.18

WithPayload adds the payload to the get service class by name unauthorized response

func (*GetServiceClassByNameUnauthorized) WriteResponse added in v0.1.18

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

WriteResponse to the client

type GetServiceClasses

type GetServiceClasses struct {
	Context *middleware.Context
	Handler GetServiceClassesHandler
}

GetServiceClasses swagger:route GET /serviceclass serviceClass getServiceClasses

List all existing service classes

func NewGetServiceClasses

func NewGetServiceClasses(ctx *middleware.Context, handler GetServiceClassesHandler) *GetServiceClasses

NewGetServiceClasses creates a new http.Handler for the get service classes operation

func (*GetServiceClasses) ServeHTTP

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

type GetServiceClassesDefault

type GetServiceClassesDefault struct {

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

GetServiceClassesDefault Generic error response

swagger:response getServiceClassesDefault

func NewGetServiceClassesDefault

func NewGetServiceClassesDefault(code int) *GetServiceClassesDefault

NewGetServiceClassesDefault creates GetServiceClassesDefault with default headers values

func (*GetServiceClassesDefault) SetPayload

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

SetPayload sets the payload to the get service classes default response

func (*GetServiceClassesDefault) SetStatusCode

func (o *GetServiceClassesDefault) SetStatusCode(code int)

SetStatusCode sets the status to the get service classes default response

func (*GetServiceClassesDefault) WithPayload

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

WithPayload adds the payload to the get service classes default response

func (*GetServiceClassesDefault) WithStatusCode

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

WithStatusCode adds the status to the get service classes default response

func (*GetServiceClassesDefault) WriteResponse

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

WriteResponse to the client

type GetServiceClassesForbidden added in v0.1.18

type GetServiceClassesForbidden struct {

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

GetServiceClassesForbidden access to this resource is forbidden

swagger:response getServiceClassesForbidden

func NewGetServiceClassesForbidden added in v0.1.18

func NewGetServiceClassesForbidden() *GetServiceClassesForbidden

NewGetServiceClassesForbidden creates GetServiceClassesForbidden with default headers values

func (*GetServiceClassesForbidden) SetPayload added in v0.1.18

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

SetPayload sets the payload to the get service classes forbidden response

func (*GetServiceClassesForbidden) WithPayload added in v0.1.18

WithPayload adds the payload to the get service classes forbidden response

func (*GetServiceClassesForbidden) WriteResponse added in v0.1.18

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

WriteResponse to the client

type GetServiceClassesHandler

type GetServiceClassesHandler interface {
	Handle(GetServiceClassesParams, interface{}) middleware.Responder
}

GetServiceClassesHandler interface for that can handle valid get service classes params

type GetServiceClassesHandlerFunc

type GetServiceClassesHandlerFunc func(GetServiceClassesParams, interface{}) middleware.Responder

GetServiceClassesHandlerFunc turns a function with the right signature into a get service classes handler

func (GetServiceClassesHandlerFunc) Handle

func (fn GetServiceClassesHandlerFunc) Handle(params GetServiceClassesParams, principal interface{}) middleware.Responder

Handle executing the request and returning a response

type GetServiceClassesOK

type GetServiceClassesOK struct {

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

GetServiceClassesOK successful operation

swagger:response getServiceClassesOK

func NewGetServiceClassesOK

func NewGetServiceClassesOK() *GetServiceClassesOK

NewGetServiceClassesOK creates GetServiceClassesOK with default headers values

func (*GetServiceClassesOK) SetPayload

func (o *GetServiceClassesOK) SetPayload(payload []*v1.ServiceClass)

SetPayload sets the payload to the get service classes o k response

func (*GetServiceClassesOK) WithPayload

func (o *GetServiceClassesOK) WithPayload(payload []*v1.ServiceClass) *GetServiceClassesOK

WithPayload adds the payload to the get service classes o k response

func (*GetServiceClassesOK) WriteResponse

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

WriteResponse to the client

type GetServiceClassesParams

type GetServiceClassesParams struct {

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

	/*
	  Required: true
	  In: header
	*/
	XDispatchOrg string
	/*Broker name
	  In: query
	*/
	Broker *string
	/*Filter on service class tags
	  In: query
	  Collection Format: multi
	*/
	Tags []string
}

GetServiceClassesParams contains all the bound params for the get service classes operation typically these are obtained from a http.Request

swagger:parameters getServiceClasses

func NewGetServiceClassesParams

func NewGetServiceClassesParams() GetServiceClassesParams

NewGetServiceClassesParams creates a new GetServiceClassesParams object no default values defined in spec.

func (*GetServiceClassesParams) BindRequest

func (o *GetServiceClassesParams) 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 NewGetServiceClassesParams() beforehand.

type GetServiceClassesURL

type GetServiceClassesURL struct {
	Broker *string
	Tags   []string
	// contains filtered or unexported fields
}

GetServiceClassesURL generates an URL for the get service classes operation

func (*GetServiceClassesURL) Build

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

Build a url path and query string

func (*GetServiceClassesURL) BuildFull

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

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

func (*GetServiceClassesURL) Must

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

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

func (*GetServiceClassesURL) SetBasePath

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

func (o *GetServiceClassesURL) String() string

String returns the string representation of the path with query string

func (*GetServiceClassesURL) StringFull

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

StringFull returns the string representation of a complete url

func (*GetServiceClassesURL) WithBasePath

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

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

type GetServiceClassesUnauthorized struct {

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

GetServiceClassesUnauthorized Unauthorized Request

swagger:response getServiceClassesUnauthorized

func NewGetServiceClassesUnauthorized added in v0.1.18

func NewGetServiceClassesUnauthorized() *GetServiceClassesUnauthorized

NewGetServiceClassesUnauthorized creates GetServiceClassesUnauthorized with default headers values

func (*GetServiceClassesUnauthorized) SetPayload added in v0.1.18

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

SetPayload sets the payload to the get service classes unauthorized response

func (*GetServiceClassesUnauthorized) WithPayload added in v0.1.18

WithPayload adds the payload to the get service classes unauthorized response

func (*GetServiceClassesUnauthorized) WriteResponse added in v0.1.18

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