workspace_service

package
v3.0.2 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2023 License: Apache-2.0 Imports: 10 Imported by: 1

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 (*Client) DeleteWorkspace

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

DeleteWorkspace deletes an existing workspace

func (*Client) PutWorkspace

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

PutWorkspace creates or update a workspace

func (*Client) SearchWorkspaces

func (a *Client) SearchWorkspaces(params *SearchWorkspacesParams, opts ...ClientOption) (*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 ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	DeleteWorkspace(params *DeleteWorkspaceParams, opts ...ClientOption) (*DeleteWorkspaceOK, error)

	PutWorkspace(params *PutWorkspaceParams, opts ...ClientOption) (*PutWorkspaceOK, error)

	SearchWorkspaces(params *SearchWorkspacesParams, opts ...ClientOption) (*SearchWorkspacesOK, error)

	SetTransport(transport runtime.ClientTransport)
}

ClientService is the interface for Client methods

func New

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

New creates a new workspace service API client.

type DeleteWorkspaceForbidden

type DeleteWorkspaceForbidden struct {
	Payload *models.RestError
}
DeleteWorkspaceForbidden describes a response with status code 403, with default header values.

User has no permission to access this resource

func NewDeleteWorkspaceForbidden

func NewDeleteWorkspaceForbidden() *DeleteWorkspaceForbidden

NewDeleteWorkspaceForbidden creates a DeleteWorkspaceForbidden with default headers values

func (*DeleteWorkspaceForbidden) Error

func (o *DeleteWorkspaceForbidden) Error() string

func (*DeleteWorkspaceForbidden) GetPayload

func (o *DeleteWorkspaceForbidden) GetPayload() *models.RestError

type DeleteWorkspaceInternalServerError

type DeleteWorkspaceInternalServerError struct {
	Payload *models.RestError
}
DeleteWorkspaceInternalServerError describes a response with status code 500, with default header values.

An internal error occurred in the backend

func NewDeleteWorkspaceInternalServerError

func NewDeleteWorkspaceInternalServerError() *DeleteWorkspaceInternalServerError

NewDeleteWorkspaceInternalServerError creates a DeleteWorkspaceInternalServerError with default headers values

func (*DeleteWorkspaceInternalServerError) Error

func (*DeleteWorkspaceInternalServerError) GetPayload

type DeleteWorkspaceNotFound

type DeleteWorkspaceNotFound struct {
	Payload *models.RestError
}
DeleteWorkspaceNotFound describes a response with status code 404, with default header values.

Resource does not exist in the system

func NewDeleteWorkspaceNotFound

func NewDeleteWorkspaceNotFound() *DeleteWorkspaceNotFound

NewDeleteWorkspaceNotFound creates a DeleteWorkspaceNotFound with default headers values

func (*DeleteWorkspaceNotFound) Error

func (o *DeleteWorkspaceNotFound) Error() string

func (*DeleteWorkspaceNotFound) GetPayload

func (o *DeleteWorkspaceNotFound) GetPayload() *models.RestError

type DeleteWorkspaceOK

type DeleteWorkspaceOK struct {
	Payload *models.RestDeleteResponse
}
DeleteWorkspaceOK describes a response with status code 200, 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

func (*DeleteWorkspaceOK) GetPayload

func (o *DeleteWorkspaceOK) GetPayload() *models.RestDeleteResponse

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 timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewDeleteWorkspaceParamsWithContext

func NewDeleteWorkspaceParamsWithContext(ctx context.Context) *DeleteWorkspaceParams

NewDeleteWorkspaceParamsWithContext creates a new DeleteWorkspaceParams object with 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 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 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) SetDefaults

func (o *DeleteWorkspaceParams) SetDefaults()

SetDefaults hydrates default values in the delete workspace params (not the query body).

All values with no default are reset to their zero value.

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) WithDefaults

func (o *DeleteWorkspaceParams) WithDefaults() *DeleteWorkspaceParams

WithDefaults hydrates default values in the delete workspace params (not the query body).

All values with no default are reset to their zero value.

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 DeleteWorkspaceUnauthorized

type DeleteWorkspaceUnauthorized struct {
}
DeleteWorkspaceUnauthorized describes a response with status code 401, with default header values.

User is not authenticated

func NewDeleteWorkspaceUnauthorized

func NewDeleteWorkspaceUnauthorized() *DeleteWorkspaceUnauthorized

NewDeleteWorkspaceUnauthorized creates a DeleteWorkspaceUnauthorized with default headers values

func (*DeleteWorkspaceUnauthorized) Error

type PutWorkspaceForbidden

type PutWorkspaceForbidden struct {
	Payload *models.RestError
}
PutWorkspaceForbidden describes a response with status code 403, with default header values.

User has no permission to access this resource

func NewPutWorkspaceForbidden

func NewPutWorkspaceForbidden() *PutWorkspaceForbidden

NewPutWorkspaceForbidden creates a PutWorkspaceForbidden with default headers values

func (*PutWorkspaceForbidden) Error

func (o *PutWorkspaceForbidden) Error() string

func (*PutWorkspaceForbidden) GetPayload

func (o *PutWorkspaceForbidden) GetPayload() *models.RestError

type PutWorkspaceInternalServerError

type PutWorkspaceInternalServerError struct {
	Payload *models.RestError
}
PutWorkspaceInternalServerError describes a response with status code 500, with default header values.

An internal error occurred in the backend

func NewPutWorkspaceInternalServerError

func NewPutWorkspaceInternalServerError() *PutWorkspaceInternalServerError

NewPutWorkspaceInternalServerError creates a PutWorkspaceInternalServerError with default headers values

func (*PutWorkspaceInternalServerError) Error

func (*PutWorkspaceInternalServerError) GetPayload

type PutWorkspaceNotFound

type PutWorkspaceNotFound struct {
	Payload *models.RestError
}
PutWorkspaceNotFound describes a response with status code 404, with default header values.

Resource does not exist in the system

func NewPutWorkspaceNotFound

func NewPutWorkspaceNotFound() *PutWorkspaceNotFound

NewPutWorkspaceNotFound creates a PutWorkspaceNotFound with default headers values

func (*PutWorkspaceNotFound) Error

func (o *PutWorkspaceNotFound) Error() string

func (*PutWorkspaceNotFound) GetPayload

func (o *PutWorkspaceNotFound) GetPayload() *models.RestError

type PutWorkspaceOK

type PutWorkspaceOK struct {
	Payload *models.IdmWorkspace
}
PutWorkspaceOK describes a response with status code 200, 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

func (*PutWorkspaceOK) GetPayload

func (o *PutWorkspaceOK) GetPayload() *models.IdmWorkspace

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 timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewPutWorkspaceParamsWithContext

func NewPutWorkspaceParamsWithContext(ctx context.Context) *PutWorkspaceParams

NewPutWorkspaceParamsWithContext creates a new PutWorkspaceParams object with 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 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 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) SetDefaults

func (o *PutWorkspaceParams) SetDefaults()

SetDefaults hydrates default values in the put workspace params (not the query body).

All values with no default are reset to their zero value.

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) WithDefaults

func (o *PutWorkspaceParams) WithDefaults() *PutWorkspaceParams

WithDefaults hydrates default values in the put workspace params (not the query body).

All values with no default are reset to their zero value.

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 PutWorkspaceUnauthorized

type PutWorkspaceUnauthorized struct {
}
PutWorkspaceUnauthorized describes a response with status code 401, with default header values.

User is not authenticated

func NewPutWorkspaceUnauthorized

func NewPutWorkspaceUnauthorized() *PutWorkspaceUnauthorized

NewPutWorkspaceUnauthorized creates a PutWorkspaceUnauthorized with default headers values

func (*PutWorkspaceUnauthorized) Error

func (o *PutWorkspaceUnauthorized) Error() string

type SearchWorkspacesForbidden

type SearchWorkspacesForbidden struct {
	Payload *models.RestError
}
SearchWorkspacesForbidden describes a response with status code 403, with default header values.

User has no permission to access this resource

func NewSearchWorkspacesForbidden

func NewSearchWorkspacesForbidden() *SearchWorkspacesForbidden

NewSearchWorkspacesForbidden creates a SearchWorkspacesForbidden with default headers values

func (*SearchWorkspacesForbidden) Error

func (o *SearchWorkspacesForbidden) Error() string

func (*SearchWorkspacesForbidden) GetPayload

func (o *SearchWorkspacesForbidden) GetPayload() *models.RestError

type SearchWorkspacesInternalServerError

type SearchWorkspacesInternalServerError struct {
	Payload *models.RestError
}
SearchWorkspacesInternalServerError describes a response with status code 500, with default header values.

An internal error occurred in the backend

func NewSearchWorkspacesInternalServerError

func NewSearchWorkspacesInternalServerError() *SearchWorkspacesInternalServerError

NewSearchWorkspacesInternalServerError creates a SearchWorkspacesInternalServerError with default headers values

func (*SearchWorkspacesInternalServerError) Error

func (*SearchWorkspacesInternalServerError) GetPayload

type SearchWorkspacesNotFound

type SearchWorkspacesNotFound struct {
	Payload *models.RestError
}
SearchWorkspacesNotFound describes a response with status code 404, with default header values.

Resource does not exist in the system

func NewSearchWorkspacesNotFound

func NewSearchWorkspacesNotFound() *SearchWorkspacesNotFound

NewSearchWorkspacesNotFound creates a SearchWorkspacesNotFound with default headers values

func (*SearchWorkspacesNotFound) Error

func (o *SearchWorkspacesNotFound) Error() string

func (*SearchWorkspacesNotFound) GetPayload

func (o *SearchWorkspacesNotFound) GetPayload() *models.RestError

type SearchWorkspacesOK

type SearchWorkspacesOK struct {
	Payload *models.RestWorkspaceCollection
}
SearchWorkspacesOK describes a response with status code 200, 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

func (*SearchWorkspacesOK) GetPayload

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 timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewSearchWorkspacesParamsWithContext

func NewSearchWorkspacesParamsWithContext(ctx context.Context) *SearchWorkspacesParams

NewSearchWorkspacesParamsWithContext creates a new SearchWorkspacesParams object with 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 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 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) SetDefaults

func (o *SearchWorkspacesParams) SetDefaults()

SetDefaults hydrates default values in the search workspaces params (not the query body).

All values with no default are reset to their zero value.

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) WithDefaults

WithDefaults hydrates default values in the search workspaces params (not the query body).

All values with no default are reset to their zero value.

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.

type SearchWorkspacesUnauthorized

type SearchWorkspacesUnauthorized struct {
}
SearchWorkspacesUnauthorized describes a response with status code 401, with default header values.

User is not authenticated

func NewSearchWorkspacesUnauthorized

func NewSearchWorkspacesUnauthorized() *SearchWorkspacesUnauthorized

NewSearchWorkspacesUnauthorized creates a SearchWorkspacesUnauthorized with default headers values

func (*SearchWorkspacesUnauthorized) Error

Jump to

Keyboard shortcuts

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