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: 11 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client for service class API

func New

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

New creates a new service class API client.

func (*Client) GetServiceClassByName

func (a *Client) GetServiceClassByName(params *GetServiceClassByNameParams, authInfo runtime.ClientAuthInfoWriter) (*GetServiceClassByNameOK, error)

GetServiceClassByName finds service class by name

Returns a single service class

func (*Client) GetServiceClasses

func (a *Client) GetServiceClasses(params *GetServiceClassesParams, authInfo runtime.ClientAuthInfoWriter) (*GetServiceClassesOK, error)

GetServiceClasses lists all existing service classes

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type GetServiceClassByNameBadRequest

type GetServiceClassByNameBadRequest struct {
	Payload *v1.Error
}

GetServiceClassByNameBadRequest handles this case with default header values.

Invalid name supplied

func NewGetServiceClassByNameBadRequest

func NewGetServiceClassByNameBadRequest() *GetServiceClassByNameBadRequest

NewGetServiceClassByNameBadRequest creates a GetServiceClassByNameBadRequest with default headers values

func (*GetServiceClassByNameBadRequest) Error

type GetServiceClassByNameDefault

type GetServiceClassByNameDefault struct {
	Payload *v1.Error
	// contains filtered or unexported fields
}

GetServiceClassByNameDefault handles this case with default header values.

Generic error response

func NewGetServiceClassByNameDefault

func NewGetServiceClassByNameDefault(code int) *GetServiceClassByNameDefault

NewGetServiceClassByNameDefault creates a GetServiceClassByNameDefault with default headers values

func (*GetServiceClassByNameDefault) Code

Code gets the status code for the get service class by name default response

func (*GetServiceClassByNameDefault) Error

type GetServiceClassByNameForbidden added in v0.1.18

type GetServiceClassByNameForbidden struct {
	Payload *v1.Error
}

GetServiceClassByNameForbidden handles this case with default header values.

access to this resource is forbidden

func NewGetServiceClassByNameForbidden added in v0.1.18

func NewGetServiceClassByNameForbidden() *GetServiceClassByNameForbidden

NewGetServiceClassByNameForbidden creates a GetServiceClassByNameForbidden with default headers values

func (*GetServiceClassByNameForbidden) Error added in v0.1.18

type GetServiceClassByNameNotFound

type GetServiceClassByNameNotFound struct {
	Payload *v1.Error
}

GetServiceClassByNameNotFound handles this case with default header values.

Service class not found

func NewGetServiceClassByNameNotFound

func NewGetServiceClassByNameNotFound() *GetServiceClassByNameNotFound

NewGetServiceClassByNameNotFound creates a GetServiceClassByNameNotFound with default headers values

func (*GetServiceClassByNameNotFound) Error

type GetServiceClassByNameOK

type GetServiceClassByNameOK struct {
	Payload *v1.ServiceClass
}

GetServiceClassByNameOK handles this case with default header values.

successful operation

func NewGetServiceClassByNameOK

func NewGetServiceClassByNameOK() *GetServiceClassByNameOK

NewGetServiceClassByNameOK creates a GetServiceClassByNameOK with default headers values

func (*GetServiceClassByNameOK) Error

func (o *GetServiceClassByNameOK) Error() string

type GetServiceClassByNameParams

type GetServiceClassByNameParams struct {

	/*XDispatchOrg*/
	XDispatchOrg string
	/*ServiceClassName
	  Name of service class to return

	*/
	ServiceClassName string

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

GetServiceClassByNameParams contains all the parameters to send to the API endpoint for the get service class by name operation typically these are written to a http.Request

func NewGetServiceClassByNameParams

func NewGetServiceClassByNameParams() *GetServiceClassByNameParams

NewGetServiceClassByNameParams creates a new GetServiceClassByNameParams object with the default values initialized.

func NewGetServiceClassByNameParamsWithContext

func NewGetServiceClassByNameParamsWithContext(ctx context.Context) *GetServiceClassByNameParams

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

func NewGetServiceClassByNameParamsWithHTTPClient

func NewGetServiceClassByNameParamsWithHTTPClient(client *http.Client) *GetServiceClassByNameParams

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

func NewGetServiceClassByNameParamsWithTimeout

func NewGetServiceClassByNameParamsWithTimeout(timeout time.Duration) *GetServiceClassByNameParams

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

func (*GetServiceClassByNameParams) SetContext

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

SetContext adds the context to the get service class by name params

func (*GetServiceClassByNameParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get service class by name params

func (*GetServiceClassByNameParams) SetServiceClassName

func (o *GetServiceClassByNameParams) SetServiceClassName(serviceClassName string)

SetServiceClassName adds the serviceClassName to the get service class by name params

func (*GetServiceClassByNameParams) SetTimeout

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

SetTimeout adds the timeout to the get service class by name params

func (*GetServiceClassByNameParams) SetXDispatchOrg added in v0.1.19

func (o *GetServiceClassByNameParams) SetXDispatchOrg(xDispatchOrg string)

SetXDispatchOrg adds the xDispatchOrg to the get service class by name params

func (*GetServiceClassByNameParams) WithContext

WithContext adds the context to the get service class by name params

func (*GetServiceClassByNameParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get service class by name params

func (*GetServiceClassByNameParams) WithServiceClassName

func (o *GetServiceClassByNameParams) WithServiceClassName(serviceClassName string) *GetServiceClassByNameParams

WithServiceClassName adds the serviceClassName to the get service class by name params

func (*GetServiceClassByNameParams) WithTimeout

WithTimeout adds the timeout to the get service class by name params

func (*GetServiceClassByNameParams) WithXDispatchOrg added in v0.1.19

func (o *GetServiceClassByNameParams) WithXDispatchOrg(xDispatchOrg string) *GetServiceClassByNameParams

WithXDispatchOrg adds the xDispatchOrg to the get service class by name params

func (*GetServiceClassByNameParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetServiceClassByNameReader

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

GetServiceClassByNameReader is a Reader for the GetServiceClassByName structure.

func (*GetServiceClassByNameReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetServiceClassByNameUnauthorized added in v0.1.18

type GetServiceClassByNameUnauthorized struct {
	Payload *v1.Error
}

GetServiceClassByNameUnauthorized handles this case with default header values.

Unauthorized Request

func NewGetServiceClassByNameUnauthorized added in v0.1.18

func NewGetServiceClassByNameUnauthorized() *GetServiceClassByNameUnauthorized

NewGetServiceClassByNameUnauthorized creates a GetServiceClassByNameUnauthorized with default headers values

func (*GetServiceClassByNameUnauthorized) Error added in v0.1.18

type GetServiceClassesDefault

type GetServiceClassesDefault struct {
	Payload *v1.Error
	// contains filtered or unexported fields
}

GetServiceClassesDefault handles this case with default header values.

Generic error response

func NewGetServiceClassesDefault

func NewGetServiceClassesDefault(code int) *GetServiceClassesDefault

NewGetServiceClassesDefault creates a GetServiceClassesDefault with default headers values

func (*GetServiceClassesDefault) Code

func (o *GetServiceClassesDefault) Code() int

Code gets the status code for the get service classes default response

func (*GetServiceClassesDefault) Error

func (o *GetServiceClassesDefault) Error() string

type GetServiceClassesForbidden added in v0.1.18

type GetServiceClassesForbidden struct {
	Payload *v1.Error
}

GetServiceClassesForbidden handles this case with default header values.

access to this resource is forbidden

func NewGetServiceClassesForbidden added in v0.1.18

func NewGetServiceClassesForbidden() *GetServiceClassesForbidden

NewGetServiceClassesForbidden creates a GetServiceClassesForbidden with default headers values

func (*GetServiceClassesForbidden) Error added in v0.1.18

type GetServiceClassesOK

type GetServiceClassesOK struct {
	Payload []*v1.ServiceClass
}

GetServiceClassesOK handles this case with default header values.

successful operation

func NewGetServiceClassesOK

func NewGetServiceClassesOK() *GetServiceClassesOK

NewGetServiceClassesOK creates a GetServiceClassesOK with default headers values

func (*GetServiceClassesOK) Error

func (o *GetServiceClassesOK) Error() string

type GetServiceClassesParams

type GetServiceClassesParams struct {

	/*XDispatchOrg*/
	XDispatchOrg string
	/*Broker
	  Broker name

	*/
	Broker *string
	/*Tags
	  Filter on service class tags

	*/
	Tags []string

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

GetServiceClassesParams contains all the parameters to send to the API endpoint for the get service classes operation typically these are written to a http.Request

func NewGetServiceClassesParams

func NewGetServiceClassesParams() *GetServiceClassesParams

NewGetServiceClassesParams creates a new GetServiceClassesParams object with the default values initialized.

func NewGetServiceClassesParamsWithContext

func NewGetServiceClassesParamsWithContext(ctx context.Context) *GetServiceClassesParams

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

func NewGetServiceClassesParamsWithHTTPClient

func NewGetServiceClassesParamsWithHTTPClient(client *http.Client) *GetServiceClassesParams

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

func NewGetServiceClassesParamsWithTimeout

func NewGetServiceClassesParamsWithTimeout(timeout time.Duration) *GetServiceClassesParams

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

func (*GetServiceClassesParams) SetBroker

func (o *GetServiceClassesParams) SetBroker(broker *string)

SetBroker adds the broker to the get service classes params

func (*GetServiceClassesParams) SetContext

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

SetContext adds the context to the get service classes params

func (*GetServiceClassesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get service classes params

func (*GetServiceClassesParams) SetTags

func (o *GetServiceClassesParams) SetTags(tags []string)

SetTags adds the tags to the get service classes params

func (*GetServiceClassesParams) SetTimeout

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

SetTimeout adds the timeout to the get service classes params

func (*GetServiceClassesParams) SetXDispatchOrg added in v0.1.19

func (o *GetServiceClassesParams) SetXDispatchOrg(xDispatchOrg string)

SetXDispatchOrg adds the xDispatchOrg to the get service classes params

func (*GetServiceClassesParams) WithBroker

func (o *GetServiceClassesParams) WithBroker(broker *string) *GetServiceClassesParams

WithBroker adds the broker to the get service classes params

func (*GetServiceClassesParams) WithContext

WithContext adds the context to the get service classes params

func (*GetServiceClassesParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get service classes params

func (*GetServiceClassesParams) WithTags

WithTags adds the tags to the get service classes params

func (*GetServiceClassesParams) WithTimeout

WithTimeout adds the timeout to the get service classes params

func (*GetServiceClassesParams) WithXDispatchOrg added in v0.1.19

func (o *GetServiceClassesParams) WithXDispatchOrg(xDispatchOrg string) *GetServiceClassesParams

WithXDispatchOrg adds the xDispatchOrg to the get service classes params

func (*GetServiceClassesParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetServiceClassesReader

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

GetServiceClassesReader is a Reader for the GetServiceClasses structure.

func (*GetServiceClassesReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetServiceClassesUnauthorized added in v0.1.18

type GetServiceClassesUnauthorized struct {
	Payload *v1.Error
}

GetServiceClassesUnauthorized handles this case with default header values.

Unauthorized Request

func NewGetServiceClassesUnauthorized added in v0.1.18

func NewGetServiceClassesUnauthorized() *GetServiceClassesUnauthorized

NewGetServiceClassesUnauthorized creates a GetServiceClassesUnauthorized with default headers values

func (*GetServiceClassesUnauthorized) Error added in v0.1.18

Jump to

Keyboard shortcuts

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