connection

package
v0.0.0-...-ca399ba Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2018 License: Apache-2.0 Imports: 6 Imported by: 2

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 connection API

func New

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

New creates a new connection API client.

func (*Client) CreateConnection

func (a *Client) CreateConnection(params *CreateConnectionParams, authInfo runtime.ClientAuthInfoWriter) (*CreateConnectionCreated, error)

CreateConnection Create new connection

func (*Client) DeleteConnection

func (a *Client) DeleteConnection(params *DeleteConnectionParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteConnectionOK, error)

DeleteConnection Delete specified connection

func (*Client) GetConnection

func (a *Client) GetConnection(params *GetConnectionParams, authInfo runtime.ClientAuthInfoWriter) (*GetConnectionOK, error)

GetConnection Get the details for the specified

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type CreateConnectionCreated

type CreateConnectionCreated struct {
	Payload *models.ServiceManagerConnectionResponse
}

CreateConnectionCreated handles this case with default header values.

create connection

func NewCreateConnectionCreated

func NewCreateConnectionCreated() *CreateConnectionCreated

NewCreateConnectionCreated creates a CreateConnectionCreated with default headers values

func (*CreateConnectionCreated) Error

func (o *CreateConnectionCreated) Error() string

type CreateConnectionDefault

type CreateConnectionDefault struct {
	Payload *models.Error
	// contains filtered or unexported fields
}

CreateConnectionDefault handles this case with default header values.

generic error response

func NewCreateConnectionDefault

func NewCreateConnectionDefault(code int) *CreateConnectionDefault

NewCreateConnectionDefault creates a CreateConnectionDefault with default headers values

func (*CreateConnectionDefault) Code

func (o *CreateConnectionDefault) Code() int

Code gets the status code for the create connection default response

func (*CreateConnectionDefault) Error

func (o *CreateConnectionDefault) Error() string

type CreateConnectionParams

type CreateConnectionParams struct {

	/*ConnectionCreateRequest
	  The service JSON you want to post

	*/
	ConnectionCreateRequest *models.ServiceManagerConnectionCreateRequest
	/*WorkspaceID
	  Workspace ID

	*/
	WorkspaceID string
}

CreateConnectionParams contains all the parameters to send to the API endpoint for the create connection operation typically these are written to a http.Request

func NewCreateConnectionParams

func NewCreateConnectionParams() *CreateConnectionParams

NewCreateConnectionParams creates a new CreateConnectionParams object with the default values initialized.

func (*CreateConnectionParams) WithConnectionCreateRequest

func (o *CreateConnectionParams) WithConnectionCreateRequest(ConnectionCreateRequest *models.ServiceManagerConnectionCreateRequest) *CreateConnectionParams

WithConnectionCreateRequest adds the connectionCreateRequest to the create connection params

func (*CreateConnectionParams) WithWorkspaceID

func (o *CreateConnectionParams) WithWorkspaceID(WorkspaceID string) *CreateConnectionParams

WithWorkspaceID adds the workspaceId to the create connection params

func (*CreateConnectionParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type CreateConnectionReader

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

CreateConnectionReader is a Reader for the CreateConnection structure.

func (*CreateConnectionReader) ReadResponse

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

ReadResponse reads a server response into the recieved o.

type DeleteConnectionDefault

type DeleteConnectionDefault struct {
	Payload *models.Error
	// contains filtered or unexported fields
}

DeleteConnectionDefault handles this case with default header values.

generic error response

func NewDeleteConnectionDefault

func NewDeleteConnectionDefault(code int) *DeleteConnectionDefault

NewDeleteConnectionDefault creates a DeleteConnectionDefault with default headers values

func (*DeleteConnectionDefault) Code

func (o *DeleteConnectionDefault) Code() int

Code gets the status code for the delete connection default response

func (*DeleteConnectionDefault) Error

func (o *DeleteConnectionDefault) Error() string

type DeleteConnectionOK

type DeleteConnectionOK struct {
}

DeleteConnectionOK handles this case with default header values.

delete connection

func NewDeleteConnectionOK

func NewDeleteConnectionOK() *DeleteConnectionOK

NewDeleteConnectionOK creates a DeleteConnectionOK with default headers values

func (*DeleteConnectionOK) Error

func (o *DeleteConnectionOK) Error() string

type DeleteConnectionParams

type DeleteConnectionParams struct {

	/*ConnectionID
	  connection ID

	*/
	ConnectionID string
	/*WorkspaceID
	  Workspace ID

	*/
	WorkspaceID string
}

DeleteConnectionParams contains all the parameters to send to the API endpoint for the delete connection operation typically these are written to a http.Request

func NewDeleteConnectionParams

func NewDeleteConnectionParams() *DeleteConnectionParams

NewDeleteConnectionParams creates a new DeleteConnectionParams object with the default values initialized.

func (*DeleteConnectionParams) WithConnectionID

func (o *DeleteConnectionParams) WithConnectionID(ConnectionID string) *DeleteConnectionParams

WithConnectionID adds the connectionId to the delete connection params

func (*DeleteConnectionParams) WithWorkspaceID

func (o *DeleteConnectionParams) WithWorkspaceID(WorkspaceID string) *DeleteConnectionParams

WithWorkspaceID adds the workspaceId to the delete connection params

func (*DeleteConnectionParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type DeleteConnectionReader

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

DeleteConnectionReader is a Reader for the DeleteConnection structure.

func (*DeleteConnectionReader) ReadResponse

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

ReadResponse reads a server response into the recieved o.

type GetConnectionDefault

type GetConnectionDefault struct {
	Payload *models.Error
	// contains filtered or unexported fields
}

GetConnectionDefault handles this case with default header values.

generic error response

func NewGetConnectionDefault

func NewGetConnectionDefault(code int) *GetConnectionDefault

NewGetConnectionDefault creates a GetConnectionDefault with default headers values

func (*GetConnectionDefault) Code

func (o *GetConnectionDefault) Code() int

Code gets the status code for the get connection default response

func (*GetConnectionDefault) Error

func (o *GetConnectionDefault) Error() string

type GetConnectionOK

type GetConnectionOK struct {
	Payload *models.ServiceManagerConnectionResponse
}

GetConnectionOK handles this case with default header values.

details of specified connection

func NewGetConnectionOK

func NewGetConnectionOK() *GetConnectionOK

NewGetConnectionOK creates a GetConnectionOK with default headers values

func (*GetConnectionOK) Error

func (o *GetConnectionOK) Error() string

type GetConnectionParams

type GetConnectionParams struct {

	/*ConnectionID
	  connection ID

	*/
	ConnectionID string
	/*WorkspaceID
	  Workspace ID

	*/
	WorkspaceID string
}

GetConnectionParams contains all the parameters to send to the API endpoint for the get connection operation typically these are written to a http.Request

func NewGetConnectionParams

func NewGetConnectionParams() *GetConnectionParams

NewGetConnectionParams creates a new GetConnectionParams object with the default values initialized.

func (*GetConnectionParams) WithConnectionID

func (o *GetConnectionParams) WithConnectionID(ConnectionID string) *GetConnectionParams

WithConnectionID adds the connectionId to the get connection params

func (*GetConnectionParams) WithWorkspaceID

func (o *GetConnectionParams) WithWorkspaceID(WorkspaceID string) *GetConnectionParams

WithWorkspaceID adds the workspaceId to the get connection params

func (*GetConnectionParams) WriteToRequest

func (o *GetConnectionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type GetConnectionReader

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

GetConnectionReader is a Reader for the GetConnection structure.

func (*GetConnectionReader) ReadResponse

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

ReadResponse reads a server response into the recieved o.

Jump to

Keyboard shortcuts

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