service_instance

package
v0.1.15 Latest Latest
Warning

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

Go to latest
Published: May 24, 2018 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddServiceInstanceBadRequest

type AddServiceInstanceBadRequest struct {
	Payload *v1.Error
}

AddServiceInstanceBadRequest handles this case with default header values.

Invalid input

func NewAddServiceInstanceBadRequest

func NewAddServiceInstanceBadRequest() *AddServiceInstanceBadRequest

NewAddServiceInstanceBadRequest creates a AddServiceInstanceBadRequest with default headers values

func (*AddServiceInstanceBadRequest) Error

type AddServiceInstanceConflict

type AddServiceInstanceConflict struct {
	Payload *v1.Error
}

AddServiceInstanceConflict handles this case with default header values.

Already Exists

func NewAddServiceInstanceConflict

func NewAddServiceInstanceConflict() *AddServiceInstanceConflict

NewAddServiceInstanceConflict creates a AddServiceInstanceConflict with default headers values

func (*AddServiceInstanceConflict) Error

type AddServiceInstanceCreated

type AddServiceInstanceCreated struct {
	Payload *v1.ServiceInstance
}

AddServiceInstanceCreated handles this case with default header values.

created

func NewAddServiceInstanceCreated

func NewAddServiceInstanceCreated() *AddServiceInstanceCreated

NewAddServiceInstanceCreated creates a AddServiceInstanceCreated with default headers values

func (*AddServiceInstanceCreated) Error

func (o *AddServiceInstanceCreated) Error() string

type AddServiceInstanceDefault

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

AddServiceInstanceDefault handles this case with default header values.

Generic error response

func NewAddServiceInstanceDefault

func NewAddServiceInstanceDefault(code int) *AddServiceInstanceDefault

NewAddServiceInstanceDefault creates a AddServiceInstanceDefault with default headers values

func (*AddServiceInstanceDefault) Code

func (o *AddServiceInstanceDefault) Code() int

Code gets the status code for the add service instance default response

func (*AddServiceInstanceDefault) Error

func (o *AddServiceInstanceDefault) Error() string

type AddServiceInstanceParams

type AddServiceInstanceParams struct {

	/*Body
	  Service instance object

	*/
	Body *v1.ServiceInstance

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

AddServiceInstanceParams contains all the parameters to send to the API endpoint for the add service instance operation typically these are written to a http.Request

func NewAddServiceInstanceParams

func NewAddServiceInstanceParams() *AddServiceInstanceParams

NewAddServiceInstanceParams creates a new AddServiceInstanceParams object with the default values initialized.

func NewAddServiceInstanceParamsWithContext

func NewAddServiceInstanceParamsWithContext(ctx context.Context) *AddServiceInstanceParams

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

func NewAddServiceInstanceParamsWithHTTPClient

func NewAddServiceInstanceParamsWithHTTPClient(client *http.Client) *AddServiceInstanceParams

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

func NewAddServiceInstanceParamsWithTimeout

func NewAddServiceInstanceParamsWithTimeout(timeout time.Duration) *AddServiceInstanceParams

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

func (*AddServiceInstanceParams) SetBody

func (o *AddServiceInstanceParams) SetBody(body *v1.ServiceInstance)

SetBody adds the body to the add service instance params

func (*AddServiceInstanceParams) SetContext

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

SetContext adds the context to the add service instance params

func (*AddServiceInstanceParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the add service instance params

func (*AddServiceInstanceParams) SetTimeout

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

SetTimeout adds the timeout to the add service instance params

func (*AddServiceInstanceParams) WithBody

WithBody adds the body to the add service instance params

func (*AddServiceInstanceParams) WithContext

WithContext adds the context to the add service instance params

func (*AddServiceInstanceParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the add service instance params

func (*AddServiceInstanceParams) WithTimeout

WithTimeout adds the timeout to the add service instance params

func (*AddServiceInstanceParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type AddServiceInstanceReader

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

AddServiceInstanceReader is a Reader for the AddServiceInstance structure.

func (*AddServiceInstanceReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type Client

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

Client for service instance API

func New

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

New creates a new service instance API client.

func (*Client) AddServiceInstance

func (a *Client) AddServiceInstance(params *AddServiceInstanceParams, authInfo runtime.ClientAuthInfoWriter) (*AddServiceInstanceCreated, error)

AddServiceInstance adds a new service instance

func (*Client) DeleteServiceInstanceByName

func (a *Client) DeleteServiceInstanceByName(params *DeleteServiceInstanceByNameParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteServiceInstanceByNameOK, error)

DeleteServiceInstanceByName deletes a service instance

func (*Client) GetServiceInstanceByName

func (a *Client) GetServiceInstanceByName(params *GetServiceInstanceByNameParams, authInfo runtime.ClientAuthInfoWriter) (*GetServiceInstanceByNameOK, error)

GetServiceInstanceByName finds service instance by name

Returns a single service instance

func (*Client) GetServiceInstances

func (a *Client) GetServiceInstances(params *GetServiceInstancesParams, authInfo runtime.ClientAuthInfoWriter) (*GetServiceInstancesOK, error)

GetServiceInstances gets all service instances

List all service instances

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type DeleteServiceInstanceByNameBadRequest

type DeleteServiceInstanceByNameBadRequest struct {
	Payload *v1.Error
}

DeleteServiceInstanceByNameBadRequest handles this case with default header values.

Invalid name supplied

func NewDeleteServiceInstanceByNameBadRequest

func NewDeleteServiceInstanceByNameBadRequest() *DeleteServiceInstanceByNameBadRequest

NewDeleteServiceInstanceByNameBadRequest creates a DeleteServiceInstanceByNameBadRequest with default headers values

func (*DeleteServiceInstanceByNameBadRequest) Error

type DeleteServiceInstanceByNameDefault

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

DeleteServiceInstanceByNameDefault handles this case with default header values.

Generic error response

func NewDeleteServiceInstanceByNameDefault

func NewDeleteServiceInstanceByNameDefault(code int) *DeleteServiceInstanceByNameDefault

NewDeleteServiceInstanceByNameDefault creates a DeleteServiceInstanceByNameDefault with default headers values

func (*DeleteServiceInstanceByNameDefault) Code

Code gets the status code for the delete service instance by name default response

func (*DeleteServiceInstanceByNameDefault) Error

type DeleteServiceInstanceByNameNotFound

type DeleteServiceInstanceByNameNotFound struct {
	Payload *v1.Error
}

DeleteServiceInstanceByNameNotFound handles this case with default header values.

Service instance not found

func NewDeleteServiceInstanceByNameNotFound

func NewDeleteServiceInstanceByNameNotFound() *DeleteServiceInstanceByNameNotFound

NewDeleteServiceInstanceByNameNotFound creates a DeleteServiceInstanceByNameNotFound with default headers values

func (*DeleteServiceInstanceByNameNotFound) Error

type DeleteServiceInstanceByNameOK

type DeleteServiceInstanceByNameOK struct {
	Payload *v1.ServiceInstance
}

DeleteServiceInstanceByNameOK handles this case with default header values.

successful operation

func NewDeleteServiceInstanceByNameOK

func NewDeleteServiceInstanceByNameOK() *DeleteServiceInstanceByNameOK

NewDeleteServiceInstanceByNameOK creates a DeleteServiceInstanceByNameOK with default headers values

func (*DeleteServiceInstanceByNameOK) Error

type DeleteServiceInstanceByNameParams

type DeleteServiceInstanceByNameParams struct {

	/*ServiceInstanceName
	  Name of service instance to return

	*/
	ServiceInstanceName string

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

DeleteServiceInstanceByNameParams contains all the parameters to send to the API endpoint for the delete service instance by name operation typically these are written to a http.Request

func NewDeleteServiceInstanceByNameParams

func NewDeleteServiceInstanceByNameParams() *DeleteServiceInstanceByNameParams

NewDeleteServiceInstanceByNameParams creates a new DeleteServiceInstanceByNameParams object with the default values initialized.

func NewDeleteServiceInstanceByNameParamsWithContext

func NewDeleteServiceInstanceByNameParamsWithContext(ctx context.Context) *DeleteServiceInstanceByNameParams

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

func NewDeleteServiceInstanceByNameParamsWithHTTPClient

func NewDeleteServiceInstanceByNameParamsWithHTTPClient(client *http.Client) *DeleteServiceInstanceByNameParams

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

func NewDeleteServiceInstanceByNameParamsWithTimeout

func NewDeleteServiceInstanceByNameParamsWithTimeout(timeout time.Duration) *DeleteServiceInstanceByNameParams

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

func (*DeleteServiceInstanceByNameParams) SetContext

SetContext adds the context to the delete service instance by name params

func (*DeleteServiceInstanceByNameParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete service instance by name params

func (*DeleteServiceInstanceByNameParams) SetServiceInstanceName

func (o *DeleteServiceInstanceByNameParams) SetServiceInstanceName(serviceInstanceName string)

SetServiceInstanceName adds the serviceInstanceName to the delete service instance by name params

func (*DeleteServiceInstanceByNameParams) SetTimeout

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

SetTimeout adds the timeout to the delete service instance by name params

func (*DeleteServiceInstanceByNameParams) WithContext

WithContext adds the context to the delete service instance by name params

func (*DeleteServiceInstanceByNameParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the delete service instance by name params

func (*DeleteServiceInstanceByNameParams) WithServiceInstanceName

func (o *DeleteServiceInstanceByNameParams) WithServiceInstanceName(serviceInstanceName string) *DeleteServiceInstanceByNameParams

WithServiceInstanceName adds the serviceInstanceName to the delete service instance by name params

func (*DeleteServiceInstanceByNameParams) WithTimeout

WithTimeout adds the timeout to the delete service instance by name params

func (*DeleteServiceInstanceByNameParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type DeleteServiceInstanceByNameReader

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

DeleteServiceInstanceByNameReader is a Reader for the DeleteServiceInstanceByName structure.

func (*DeleteServiceInstanceByNameReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetServiceInstanceByNameBadRequest

type GetServiceInstanceByNameBadRequest struct {
	Payload *v1.Error
}

GetServiceInstanceByNameBadRequest handles this case with default header values.

Invalid ID supplied

func NewGetServiceInstanceByNameBadRequest

func NewGetServiceInstanceByNameBadRequest() *GetServiceInstanceByNameBadRequest

NewGetServiceInstanceByNameBadRequest creates a GetServiceInstanceByNameBadRequest with default headers values

func (*GetServiceInstanceByNameBadRequest) Error

type GetServiceInstanceByNameDefault

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

GetServiceInstanceByNameDefault handles this case with default header values.

Generic error response

func NewGetServiceInstanceByNameDefault

func NewGetServiceInstanceByNameDefault(code int) *GetServiceInstanceByNameDefault

NewGetServiceInstanceByNameDefault creates a GetServiceInstanceByNameDefault with default headers values

func (*GetServiceInstanceByNameDefault) Code

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

func (*GetServiceInstanceByNameDefault) Error

type GetServiceInstanceByNameNotFound

type GetServiceInstanceByNameNotFound struct {
	Payload *v1.Error
}

GetServiceInstanceByNameNotFound handles this case with default header values.

Service instance not found

func NewGetServiceInstanceByNameNotFound

func NewGetServiceInstanceByNameNotFound() *GetServiceInstanceByNameNotFound

NewGetServiceInstanceByNameNotFound creates a GetServiceInstanceByNameNotFound with default headers values

func (*GetServiceInstanceByNameNotFound) Error

type GetServiceInstanceByNameOK

type GetServiceInstanceByNameOK struct {
	Payload *v1.ServiceInstance
}

GetServiceInstanceByNameOK handles this case with default header values.

successful operation

func NewGetServiceInstanceByNameOK

func NewGetServiceInstanceByNameOK() *GetServiceInstanceByNameOK

NewGetServiceInstanceByNameOK creates a GetServiceInstanceByNameOK with default headers values

func (*GetServiceInstanceByNameOK) Error

type GetServiceInstanceByNameParams

type GetServiceInstanceByNameParams struct {

	/*ServiceInstanceName
	  Name of service instance to return

	*/
	ServiceInstanceName string

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

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

func NewGetServiceInstanceByNameParams

func NewGetServiceInstanceByNameParams() *GetServiceInstanceByNameParams

NewGetServiceInstanceByNameParams creates a new GetServiceInstanceByNameParams object with the default values initialized.

func NewGetServiceInstanceByNameParamsWithContext

func NewGetServiceInstanceByNameParamsWithContext(ctx context.Context) *GetServiceInstanceByNameParams

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

func NewGetServiceInstanceByNameParamsWithHTTPClient

func NewGetServiceInstanceByNameParamsWithHTTPClient(client *http.Client) *GetServiceInstanceByNameParams

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

func NewGetServiceInstanceByNameParamsWithTimeout

func NewGetServiceInstanceByNameParamsWithTimeout(timeout time.Duration) *GetServiceInstanceByNameParams

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

func (*GetServiceInstanceByNameParams) SetContext

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

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

func (*GetServiceInstanceByNameParams) SetHTTPClient

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

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

func (*GetServiceInstanceByNameParams) SetServiceInstanceName

func (o *GetServiceInstanceByNameParams) SetServiceInstanceName(serviceInstanceName string)

SetServiceInstanceName adds the serviceInstanceName to the get service instance by name params

func (*GetServiceInstanceByNameParams) SetTimeout

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

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

func (*GetServiceInstanceByNameParams) WithContext

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

func (*GetServiceInstanceByNameParams) WithHTTPClient

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

func (*GetServiceInstanceByNameParams) WithServiceInstanceName

func (o *GetServiceInstanceByNameParams) WithServiceInstanceName(serviceInstanceName string) *GetServiceInstanceByNameParams

WithServiceInstanceName adds the serviceInstanceName to the get service instance by name params

func (*GetServiceInstanceByNameParams) WithTimeout

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

func (*GetServiceInstanceByNameParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetServiceInstanceByNameReader

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

GetServiceInstanceByNameReader is a Reader for the GetServiceInstanceByName structure.

func (*GetServiceInstanceByNameReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetServiceInstancesBadRequest

type GetServiceInstancesBadRequest struct {
	Payload *v1.Error
}

GetServiceInstancesBadRequest handles this case with default header values.

Invalid input

func NewGetServiceInstancesBadRequest

func NewGetServiceInstancesBadRequest() *GetServiceInstancesBadRequest

NewGetServiceInstancesBadRequest creates a GetServiceInstancesBadRequest with default headers values

func (*GetServiceInstancesBadRequest) Error

type GetServiceInstancesDefault

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

GetServiceInstancesDefault handles this case with default header values.

Generic error response

func NewGetServiceInstancesDefault

func NewGetServiceInstancesDefault(code int) *GetServiceInstancesDefault

NewGetServiceInstancesDefault creates a GetServiceInstancesDefault with default headers values

func (*GetServiceInstancesDefault) Code

func (o *GetServiceInstancesDefault) Code() int

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

func (*GetServiceInstancesDefault) Error

type GetServiceInstancesOK

type GetServiceInstancesOK struct {
	Payload []*v1.ServiceInstance
}

GetServiceInstancesOK handles this case with default header values.

successful operation

func NewGetServiceInstancesOK

func NewGetServiceInstancesOK() *GetServiceInstancesOK

NewGetServiceInstancesOK creates a GetServiceInstancesOK with default headers values

func (*GetServiceInstancesOK) Error

func (o *GetServiceInstancesOK) Error() string

type GetServiceInstancesParams

type GetServiceInstancesParams struct {

	/*Serviceclass
	  service class name

	*/
	Serviceclass *string
	/*Tags
	  Filter on service instance tags

	*/
	Tags []string

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

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

func NewGetServiceInstancesParams

func NewGetServiceInstancesParams() *GetServiceInstancesParams

NewGetServiceInstancesParams creates a new GetServiceInstancesParams object with the default values initialized.

func NewGetServiceInstancesParamsWithContext

func NewGetServiceInstancesParamsWithContext(ctx context.Context) *GetServiceInstancesParams

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

func NewGetServiceInstancesParamsWithHTTPClient

func NewGetServiceInstancesParamsWithHTTPClient(client *http.Client) *GetServiceInstancesParams

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

func NewGetServiceInstancesParamsWithTimeout

func NewGetServiceInstancesParamsWithTimeout(timeout time.Duration) *GetServiceInstancesParams

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

func (*GetServiceInstancesParams) SetContext

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

SetContext adds the context to the get service instances params

func (*GetServiceInstancesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get service instances params

func (*GetServiceInstancesParams) SetServiceclass

func (o *GetServiceInstancesParams) SetServiceclass(serviceclass *string)

SetServiceclass adds the serviceclass to the get service instances params

func (*GetServiceInstancesParams) SetTags

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

SetTags adds the tags to the get service instances params

func (*GetServiceInstancesParams) SetTimeout

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

SetTimeout adds the timeout to the get service instances params

func (*GetServiceInstancesParams) WithContext

WithContext adds the context to the get service instances params

func (*GetServiceInstancesParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get service instances params

func (*GetServiceInstancesParams) WithServiceclass

func (o *GetServiceInstancesParams) WithServiceclass(serviceclass *string) *GetServiceInstancesParams

WithServiceclass adds the serviceclass to the get service instances params

func (*GetServiceInstancesParams) WithTags

WithTags adds the tags to the get service instances params

func (*GetServiceInstancesParams) WithTimeout

WithTimeout adds the timeout to the get service instances params

func (*GetServiceInstancesParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetServiceInstancesReader

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

GetServiceInstancesReader is a Reader for the GetServiceInstances structure.

func (*GetServiceInstancesReader) ReadResponse

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

ReadResponse reads a server response into the received o.

Jump to

Keyboard shortcuts

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