workspace_service

package
v2.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

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 workspace service API

func New

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

New creates a new workspace service API client.

func (*Client) DeleteWorkspace

func (a *Client) DeleteWorkspace(params *DeleteWorkspaceParams) (*DeleteWorkspaceOK, error)

DeleteWorkspace deletes an existing workspace

func (*Client) PutWorkspace

func (a *Client) PutWorkspace(params *PutWorkspaceParams) (*PutWorkspaceOK, error)

PutWorkspace creates or update a workspace

func (*Client) SearchWorkspaces

func (a *Client) SearchWorkspaces(params *SearchWorkspacesParams) (*SearchWorkspacesOK, error)

SearchWorkspaces searches workspaces on certain keys

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type DeleteWorkspaceOK

type DeleteWorkspaceOK struct {
	Payload *models.RestDeleteResponse
}

DeleteWorkspaceOK handles this case with default header values.

DeleteWorkspaceOK delete workspace o k

func NewDeleteWorkspaceOK

func NewDeleteWorkspaceOK() *DeleteWorkspaceOK

NewDeleteWorkspaceOK creates a DeleteWorkspaceOK with default headers values

func (*DeleteWorkspaceOK) Error

func (o *DeleteWorkspaceOK) Error() string

type DeleteWorkspaceParams

type DeleteWorkspaceParams struct {

	/*Slug*/
	Slug string

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

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

func NewDeleteWorkspaceParams

func NewDeleteWorkspaceParams() *DeleteWorkspaceParams

NewDeleteWorkspaceParams creates a new DeleteWorkspaceParams object with the default values initialized.

func NewDeleteWorkspaceParamsWithContext

func NewDeleteWorkspaceParamsWithContext(ctx context.Context) *DeleteWorkspaceParams

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

func NewDeleteWorkspaceParamsWithHTTPClient

func NewDeleteWorkspaceParamsWithHTTPClient(client *http.Client) *DeleteWorkspaceParams

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

func NewDeleteWorkspaceParamsWithTimeout

func NewDeleteWorkspaceParamsWithTimeout(timeout time.Duration) *DeleteWorkspaceParams

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

func (*DeleteWorkspaceParams) SetContext

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

SetContext adds the context to the delete workspace params

func (*DeleteWorkspaceParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete workspace params

func (*DeleteWorkspaceParams) SetSlug

func (o *DeleteWorkspaceParams) SetSlug(slug string)

SetSlug adds the slug to the delete workspace params

func (*DeleteWorkspaceParams) SetTimeout

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

SetTimeout adds the timeout to the delete workspace params

func (*DeleteWorkspaceParams) WithContext

WithContext adds the context to the delete workspace params

func (*DeleteWorkspaceParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the delete workspace params

func (*DeleteWorkspaceParams) WithSlug

WithSlug adds the slug to the delete workspace params

func (*DeleteWorkspaceParams) WithTimeout

func (o *DeleteWorkspaceParams) WithTimeout(timeout time.Duration) *DeleteWorkspaceParams

WithTimeout adds the timeout to the delete workspace params

func (*DeleteWorkspaceParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type DeleteWorkspaceReader

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

DeleteWorkspaceReader is a Reader for the DeleteWorkspace structure.

func (*DeleteWorkspaceReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type PutWorkspaceOK

type PutWorkspaceOK struct {
	Payload *models.IdmWorkspace
}

PutWorkspaceOK handles this case with default header values.

PutWorkspaceOK put workspace o k

func NewPutWorkspaceOK

func NewPutWorkspaceOK() *PutWorkspaceOK

NewPutWorkspaceOK creates a PutWorkspaceOK with default headers values

func (*PutWorkspaceOK) Error

func (o *PutWorkspaceOK) Error() string

type PutWorkspaceParams

type PutWorkspaceParams struct {

	/*Slug*/
	Slug string
	/*Body*/
	Body *models.IdmWorkspace

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

PutWorkspaceParams contains all the parameters to send to the API endpoint for the put workspace operation typically these are written to a http.Request

func NewPutWorkspaceParams

func NewPutWorkspaceParams() *PutWorkspaceParams

NewPutWorkspaceParams creates a new PutWorkspaceParams object with the default values initialized.

func NewPutWorkspaceParamsWithContext

func NewPutWorkspaceParamsWithContext(ctx context.Context) *PutWorkspaceParams

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

func NewPutWorkspaceParamsWithHTTPClient

func NewPutWorkspaceParamsWithHTTPClient(client *http.Client) *PutWorkspaceParams

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

func NewPutWorkspaceParamsWithTimeout

func NewPutWorkspaceParamsWithTimeout(timeout time.Duration) *PutWorkspaceParams

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

func (*PutWorkspaceParams) SetBody

func (o *PutWorkspaceParams) SetBody(body *models.IdmWorkspace)

SetBody adds the body to the put workspace params

func (*PutWorkspaceParams) SetContext

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

SetContext adds the context to the put workspace params

func (*PutWorkspaceParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the put workspace params

func (*PutWorkspaceParams) SetSlug

func (o *PutWorkspaceParams) SetSlug(slug string)

SetSlug adds the slug to the put workspace params

func (*PutWorkspaceParams) SetTimeout

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

SetTimeout adds the timeout to the put workspace params

func (*PutWorkspaceParams) WithBody

WithBody adds the body to the put workspace params

func (*PutWorkspaceParams) WithContext

WithContext adds the context to the put workspace params

func (*PutWorkspaceParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the put workspace params

func (*PutWorkspaceParams) WithSlug

func (o *PutWorkspaceParams) WithSlug(slug string) *PutWorkspaceParams

WithSlug adds the slug to the put workspace params

func (*PutWorkspaceParams) WithTimeout

func (o *PutWorkspaceParams) WithTimeout(timeout time.Duration) *PutWorkspaceParams

WithTimeout adds the timeout to the put workspace params

func (*PutWorkspaceParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type PutWorkspaceReader

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

PutWorkspaceReader is a Reader for the PutWorkspace structure.

func (*PutWorkspaceReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type SearchWorkspacesOK

type SearchWorkspacesOK struct {
	Payload *models.RestWorkspaceCollection
}

SearchWorkspacesOK handles this case with default header values.

SearchWorkspacesOK search workspaces o k

func NewSearchWorkspacesOK

func NewSearchWorkspacesOK() *SearchWorkspacesOK

NewSearchWorkspacesOK creates a SearchWorkspacesOK with default headers values

func (*SearchWorkspacesOK) Error

func (o *SearchWorkspacesOK) Error() string

type SearchWorkspacesParams

type SearchWorkspacesParams struct {

	/*Body*/
	Body *models.RestSearchWorkspaceRequest

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

SearchWorkspacesParams contains all the parameters to send to the API endpoint for the search workspaces operation typically these are written to a http.Request

func NewSearchWorkspacesParams

func NewSearchWorkspacesParams() *SearchWorkspacesParams

NewSearchWorkspacesParams creates a new SearchWorkspacesParams object with the default values initialized.

func NewSearchWorkspacesParamsWithContext

func NewSearchWorkspacesParamsWithContext(ctx context.Context) *SearchWorkspacesParams

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

func NewSearchWorkspacesParamsWithHTTPClient

func NewSearchWorkspacesParamsWithHTTPClient(client *http.Client) *SearchWorkspacesParams

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

func NewSearchWorkspacesParamsWithTimeout

func NewSearchWorkspacesParamsWithTimeout(timeout time.Duration) *SearchWorkspacesParams

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

func (*SearchWorkspacesParams) SetBody

SetBody adds the body to the search workspaces params

func (*SearchWorkspacesParams) SetContext

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

SetContext adds the context to the search workspaces params

func (*SearchWorkspacesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the search workspaces params

func (*SearchWorkspacesParams) SetTimeout

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

SetTimeout adds the timeout to the search workspaces params

func (*SearchWorkspacesParams) WithBody

WithBody adds the body to the search workspaces params

func (*SearchWorkspacesParams) WithContext

WithContext adds the context to the search workspaces params

func (*SearchWorkspacesParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the search workspaces params

func (*SearchWorkspacesParams) WithTimeout

WithTimeout adds the timeout to the search workspaces params

func (*SearchWorkspacesParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type SearchWorkspacesReader

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

SearchWorkspacesReader is a Reader for the SearchWorkspaces structure.

func (*SearchWorkspacesReader) ReadResponse

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