workspace_service

package
v5.0.0-alpha5 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2024 License: Apache-2.0 Imports: 13 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) Code

func (o *DeleteWorkspaceForbidden) Code() int

Code gets the status code for the delete workspace forbidden response

func (*DeleteWorkspaceForbidden) Error

func (o *DeleteWorkspaceForbidden) Error() string

func (*DeleteWorkspaceForbidden) GetPayload

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

func (*DeleteWorkspaceForbidden) IsClientError

func (o *DeleteWorkspaceForbidden) IsClientError() bool

IsClientError returns true when this delete workspace forbidden response has a 4xx status code

func (*DeleteWorkspaceForbidden) IsCode

func (o *DeleteWorkspaceForbidden) IsCode(code int) bool

IsCode returns true when this delete workspace forbidden response a status code equal to that given

func (*DeleteWorkspaceForbidden) IsRedirect

func (o *DeleteWorkspaceForbidden) IsRedirect() bool

IsRedirect returns true when this delete workspace forbidden response has a 3xx status code

func (*DeleteWorkspaceForbidden) IsServerError

func (o *DeleteWorkspaceForbidden) IsServerError() bool

IsServerError returns true when this delete workspace forbidden response has a 5xx status code

func (*DeleteWorkspaceForbidden) IsSuccess

func (o *DeleteWorkspaceForbidden) IsSuccess() bool

IsSuccess returns true when this delete workspace forbidden response has a 2xx status code

func (*DeleteWorkspaceForbidden) String

func (o *DeleteWorkspaceForbidden) String() string

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

Code gets the status code for the delete workspace internal server error response

func (*DeleteWorkspaceInternalServerError) Error

func (*DeleteWorkspaceInternalServerError) GetPayload

func (*DeleteWorkspaceInternalServerError) IsClientError

func (o *DeleteWorkspaceInternalServerError) IsClientError() bool

IsClientError returns true when this delete workspace internal server error response has a 4xx status code

func (*DeleteWorkspaceInternalServerError) IsCode

IsCode returns true when this delete workspace internal server error response a status code equal to that given

func (*DeleteWorkspaceInternalServerError) IsRedirect

func (o *DeleteWorkspaceInternalServerError) IsRedirect() bool

IsRedirect returns true when this delete workspace internal server error response has a 3xx status code

func (*DeleteWorkspaceInternalServerError) IsServerError

func (o *DeleteWorkspaceInternalServerError) IsServerError() bool

IsServerError returns true when this delete workspace internal server error response has a 5xx status code

func (*DeleteWorkspaceInternalServerError) IsSuccess

IsSuccess returns true when this delete workspace internal server error response has a 2xx status code

func (*DeleteWorkspaceInternalServerError) String

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

func (o *DeleteWorkspaceNotFound) Code() int

Code gets the status code for the delete workspace not found response

func (*DeleteWorkspaceNotFound) Error

func (o *DeleteWorkspaceNotFound) Error() string

func (*DeleteWorkspaceNotFound) GetPayload

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

func (*DeleteWorkspaceNotFound) IsClientError

func (o *DeleteWorkspaceNotFound) IsClientError() bool

IsClientError returns true when this delete workspace not found response has a 4xx status code

func (*DeleteWorkspaceNotFound) IsCode

func (o *DeleteWorkspaceNotFound) IsCode(code int) bool

IsCode returns true when this delete workspace not found response a status code equal to that given

func (*DeleteWorkspaceNotFound) IsRedirect

func (o *DeleteWorkspaceNotFound) IsRedirect() bool

IsRedirect returns true when this delete workspace not found response has a 3xx status code

func (*DeleteWorkspaceNotFound) IsServerError

func (o *DeleteWorkspaceNotFound) IsServerError() bool

IsServerError returns true when this delete workspace not found response has a 5xx status code

func (*DeleteWorkspaceNotFound) IsSuccess

func (o *DeleteWorkspaceNotFound) IsSuccess() bool

IsSuccess returns true when this delete workspace not found response has a 2xx status code

func (*DeleteWorkspaceNotFound) String

func (o *DeleteWorkspaceNotFound) String() string

type DeleteWorkspaceOK

type DeleteWorkspaceOK struct {
	Payload *models.RestDeleteResponse
}

DeleteWorkspaceOK describes a response with status code 200, with default header values.

A successful response.

func NewDeleteWorkspaceOK

func NewDeleteWorkspaceOK() *DeleteWorkspaceOK

NewDeleteWorkspaceOK creates a DeleteWorkspaceOK with default headers values

func (*DeleteWorkspaceOK) Code

func (o *DeleteWorkspaceOK) Code() int

Code gets the status code for the delete workspace o k response

func (*DeleteWorkspaceOK) Error

func (o *DeleteWorkspaceOK) Error() string

func (*DeleteWorkspaceOK) GetPayload

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

func (*DeleteWorkspaceOK) IsClientError

func (o *DeleteWorkspaceOK) IsClientError() bool

IsClientError returns true when this delete workspace o k response has a 4xx status code

func (*DeleteWorkspaceOK) IsCode

func (o *DeleteWorkspaceOK) IsCode(code int) bool

IsCode returns true when this delete workspace o k response a status code equal to that given

func (*DeleteWorkspaceOK) IsRedirect

func (o *DeleteWorkspaceOK) IsRedirect() bool

IsRedirect returns true when this delete workspace o k response has a 3xx status code

func (*DeleteWorkspaceOK) IsServerError

func (o *DeleteWorkspaceOK) IsServerError() bool

IsServerError returns true when this delete workspace o k response has a 5xx status code

func (*DeleteWorkspaceOK) IsSuccess

func (o *DeleteWorkspaceOK) IsSuccess() bool

IsSuccess returns true when this delete workspace o k response has a 2xx status code

func (*DeleteWorkspaceOK) String

func (o *DeleteWorkspaceOK) String() string

type DeleteWorkspaceParams

type DeleteWorkspaceParams struct {

	/* Attributes.

	   JSON-encoded list of attributes
	*/
	Attributes *string

	/* Description.

	   Description of the workspace (max length 1000)
	*/
	Description *string

	/* Label.

	   Label of the workspace (max length 500)
	*/
	Label *string

	/* LastUpdated.

	   Last modification time

	   Format: int32
	*/
	LastUpdated *int32

	/* PoliciesContextEditable.

	   Context-resolved to quickly check if workspace is editable or not
	*/
	PoliciesContextEditable *bool

	/* RootUUIDs.

	   Quick list of the RootNodes uuids
	*/
	RootUUIDs []string

	/* Scope.

	   Scope can be ADMIN, ROOM (=CELL) or LINK

	   Default: "ANY"
	*/
	Scope *string

	/* Slug.

	   Slug is an url-compatible form of the workspace label, or can be freely modified (max length 500)
	*/
	Slug string

	/* UUID.

	   Unique identifier of the workspace
	*/
	UUID *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) SetAttributes

func (o *DeleteWorkspaceParams) SetAttributes(attributes *string)

SetAttributes adds the attributes to the delete workspace params

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

func (o *DeleteWorkspaceParams) SetDescription(description *string)

SetDescription adds the description 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) SetLabel

func (o *DeleteWorkspaceParams) SetLabel(label *string)

SetLabel adds the label to the delete workspace params

func (*DeleteWorkspaceParams) SetLastUpdated

func (o *DeleteWorkspaceParams) SetLastUpdated(lastUpdated *int32)

SetLastUpdated adds the lastUpdated to the delete workspace params

func (*DeleteWorkspaceParams) SetPoliciesContextEditable

func (o *DeleteWorkspaceParams) SetPoliciesContextEditable(policiesContextEditable *bool)

SetPoliciesContextEditable adds the policiesContextEditable to the delete workspace params

func (*DeleteWorkspaceParams) SetRootUUIDs

func (o *DeleteWorkspaceParams) SetRootUUIDs(rootUUIDs []string)

SetRootUUIDs adds the rootUUiDs to the delete workspace params

func (*DeleteWorkspaceParams) SetScope

func (o *DeleteWorkspaceParams) SetScope(scope *string)

SetScope adds the scope 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) SetUUID

func (o *DeleteWorkspaceParams) SetUUID(uuid *string)

SetUUID adds the uuid to the delete workspace params

func (*DeleteWorkspaceParams) WithAttributes

func (o *DeleteWorkspaceParams) WithAttributes(attributes *string) *DeleteWorkspaceParams

WithAttributes adds the attributes 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) WithDescription

func (o *DeleteWorkspaceParams) WithDescription(description *string) *DeleteWorkspaceParams

WithDescription adds the description 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) WithLabel

func (o *DeleteWorkspaceParams) WithLabel(label *string) *DeleteWorkspaceParams

WithLabel adds the label to the delete workspace params

func (*DeleteWorkspaceParams) WithLastUpdated

func (o *DeleteWorkspaceParams) WithLastUpdated(lastUpdated *int32) *DeleteWorkspaceParams

WithLastUpdated adds the lastUpdated to the delete workspace params

func (*DeleteWorkspaceParams) WithPoliciesContextEditable

func (o *DeleteWorkspaceParams) WithPoliciesContextEditable(policiesContextEditable *bool) *DeleteWorkspaceParams

WithPoliciesContextEditable adds the policiesContextEditable to the delete workspace params

func (*DeleteWorkspaceParams) WithRootUUIDs

func (o *DeleteWorkspaceParams) WithRootUUIDs(rootUUIDs []string) *DeleteWorkspaceParams

WithRootUUIDs adds the rootUUIDs to the delete workspace params

func (*DeleteWorkspaceParams) WithScope

func (o *DeleteWorkspaceParams) WithScope(scope *string) *DeleteWorkspaceParams

WithScope adds the scope 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) WithUUID

WithUUID adds the uuid 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) Code

func (o *DeleteWorkspaceUnauthorized) Code() int

Code gets the status code for the delete workspace unauthorized response

func (*DeleteWorkspaceUnauthorized) Error

func (*DeleteWorkspaceUnauthorized) IsClientError

func (o *DeleteWorkspaceUnauthorized) IsClientError() bool

IsClientError returns true when this delete workspace unauthorized response has a 4xx status code

func (*DeleteWorkspaceUnauthorized) IsCode

func (o *DeleteWorkspaceUnauthorized) IsCode(code int) bool

IsCode returns true when this delete workspace unauthorized response a status code equal to that given

func (*DeleteWorkspaceUnauthorized) IsRedirect

func (o *DeleteWorkspaceUnauthorized) IsRedirect() bool

IsRedirect returns true when this delete workspace unauthorized response has a 3xx status code

func (*DeleteWorkspaceUnauthorized) IsServerError

func (o *DeleteWorkspaceUnauthorized) IsServerError() bool

IsServerError returns true when this delete workspace unauthorized response has a 5xx status code

func (*DeleteWorkspaceUnauthorized) IsSuccess

func (o *DeleteWorkspaceUnauthorized) IsSuccess() bool

IsSuccess returns true when this delete workspace unauthorized response has a 2xx status code

func (*DeleteWorkspaceUnauthorized) String

func (o *DeleteWorkspaceUnauthorized) String() string

type PutWorkspaceBody

type PutWorkspaceBody struct {

	// JSON-encoded list of attributes
	Attributes string `json:"Attributes,omitempty"`

	// Description of the workspace (max length 1000)
	Description string `json:"Description,omitempty"`

	// Label of the workspace (max length 500)
	Label string `json:"Label,omitempty"`

	// Last modification time
	LastUpdated int32 `json:"LastUpdated,omitempty"`

	// Policies for securing access
	Policies []*models.ServiceResourcePolicy `json:"Policies"`

	// Context-resolved to quickly check if workspace is editable or not
	PoliciesContextEditable bool `json:"PoliciesContextEditable,omitempty"`

	// List of the Root Nodes in the tree that compose this workspace
	RootNodes map[string]models.TreeNode `json:"RootNodes,omitempty"`

	// Quick list of the RootNodes uuids
	RootUUIDs []string `json:"RootUUIDs"`

	// Scope can be ADMIN, ROOM (=CELL) or LINK
	Scope *models.IdmWorkspaceScope `json:"Scope,omitempty"`

	// Unique identifier of the workspace
	UUID string `json:"UUID,omitempty"`
}

PutWorkspaceBody A Workspace is composed of a set of nodes UUIDs and is used to provide accesses to the tree via ACLs. swagger:model PutWorkspaceBody

func (*PutWorkspaceBody) ContextValidate

func (o *PutWorkspaceBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this put workspace body based on the context it is used

func (*PutWorkspaceBody) MarshalBinary

func (o *PutWorkspaceBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PutWorkspaceBody) UnmarshalBinary

func (o *PutWorkspaceBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PutWorkspaceBody) Validate

func (o *PutWorkspaceBody) Validate(formats strfmt.Registry) error

Validate validates this put workspace body

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

func (o *PutWorkspaceForbidden) Code() int

Code gets the status code for the put workspace forbidden response

func (*PutWorkspaceForbidden) Error

func (o *PutWorkspaceForbidden) Error() string

func (*PutWorkspaceForbidden) GetPayload

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

func (*PutWorkspaceForbidden) IsClientError

func (o *PutWorkspaceForbidden) IsClientError() bool

IsClientError returns true when this put workspace forbidden response has a 4xx status code

func (*PutWorkspaceForbidden) IsCode

func (o *PutWorkspaceForbidden) IsCode(code int) bool

IsCode returns true when this put workspace forbidden response a status code equal to that given

func (*PutWorkspaceForbidden) IsRedirect

func (o *PutWorkspaceForbidden) IsRedirect() bool

IsRedirect returns true when this put workspace forbidden response has a 3xx status code

func (*PutWorkspaceForbidden) IsServerError

func (o *PutWorkspaceForbidden) IsServerError() bool

IsServerError returns true when this put workspace forbidden response has a 5xx status code

func (*PutWorkspaceForbidden) IsSuccess

func (o *PutWorkspaceForbidden) IsSuccess() bool

IsSuccess returns true when this put workspace forbidden response has a 2xx status code

func (*PutWorkspaceForbidden) String

func (o *PutWorkspaceForbidden) String() string

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

Code gets the status code for the put workspace internal server error response

func (*PutWorkspaceInternalServerError) Error

func (*PutWorkspaceInternalServerError) GetPayload

func (*PutWorkspaceInternalServerError) IsClientError

func (o *PutWorkspaceInternalServerError) IsClientError() bool

IsClientError returns true when this put workspace internal server error response has a 4xx status code

func (*PutWorkspaceInternalServerError) IsCode

func (o *PutWorkspaceInternalServerError) IsCode(code int) bool

IsCode returns true when this put workspace internal server error response a status code equal to that given

func (*PutWorkspaceInternalServerError) IsRedirect

func (o *PutWorkspaceInternalServerError) IsRedirect() bool

IsRedirect returns true when this put workspace internal server error response has a 3xx status code

func (*PutWorkspaceInternalServerError) IsServerError

func (o *PutWorkspaceInternalServerError) IsServerError() bool

IsServerError returns true when this put workspace internal server error response has a 5xx status code

func (*PutWorkspaceInternalServerError) IsSuccess

func (o *PutWorkspaceInternalServerError) IsSuccess() bool

IsSuccess returns true when this put workspace internal server error response has a 2xx status code

func (*PutWorkspaceInternalServerError) String

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

func (o *PutWorkspaceNotFound) Code() int

Code gets the status code for the put workspace not found response

func (*PutWorkspaceNotFound) Error

func (o *PutWorkspaceNotFound) Error() string

func (*PutWorkspaceNotFound) GetPayload

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

func (*PutWorkspaceNotFound) IsClientError

func (o *PutWorkspaceNotFound) IsClientError() bool

IsClientError returns true when this put workspace not found response has a 4xx status code

func (*PutWorkspaceNotFound) IsCode

func (o *PutWorkspaceNotFound) IsCode(code int) bool

IsCode returns true when this put workspace not found response a status code equal to that given

func (*PutWorkspaceNotFound) IsRedirect

func (o *PutWorkspaceNotFound) IsRedirect() bool

IsRedirect returns true when this put workspace not found response has a 3xx status code

func (*PutWorkspaceNotFound) IsServerError

func (o *PutWorkspaceNotFound) IsServerError() bool

IsServerError returns true when this put workspace not found response has a 5xx status code

func (*PutWorkspaceNotFound) IsSuccess

func (o *PutWorkspaceNotFound) IsSuccess() bool

IsSuccess returns true when this put workspace not found response has a 2xx status code

func (*PutWorkspaceNotFound) String

func (o *PutWorkspaceNotFound) String() string

type PutWorkspaceOK

type PutWorkspaceOK struct {
	Payload *models.IdmWorkspace
}

PutWorkspaceOK describes a response with status code 200, with default header values.

A successful response.

func NewPutWorkspaceOK

func NewPutWorkspaceOK() *PutWorkspaceOK

NewPutWorkspaceOK creates a PutWorkspaceOK with default headers values

func (*PutWorkspaceOK) Code

func (o *PutWorkspaceOK) Code() int

Code gets the status code for the put workspace o k response

func (*PutWorkspaceOK) Error

func (o *PutWorkspaceOK) Error() string

func (*PutWorkspaceOK) GetPayload

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

func (*PutWorkspaceOK) IsClientError

func (o *PutWorkspaceOK) IsClientError() bool

IsClientError returns true when this put workspace o k response has a 4xx status code

func (*PutWorkspaceOK) IsCode

func (o *PutWorkspaceOK) IsCode(code int) bool

IsCode returns true when this put workspace o k response a status code equal to that given

func (*PutWorkspaceOK) IsRedirect

func (o *PutWorkspaceOK) IsRedirect() bool

IsRedirect returns true when this put workspace o k response has a 3xx status code

func (*PutWorkspaceOK) IsServerError

func (o *PutWorkspaceOK) IsServerError() bool

IsServerError returns true when this put workspace o k response has a 5xx status code

func (*PutWorkspaceOK) IsSuccess

func (o *PutWorkspaceOK) IsSuccess() bool

IsSuccess returns true when this put workspace o k response has a 2xx status code

func (*PutWorkspaceOK) String

func (o *PutWorkspaceOK) String() string

type PutWorkspaceParams

type PutWorkspaceParams struct {

	/* Slug.

	   Slug is an url-compatible form of the workspace label, or can be freely modified (max length 500)
	*/
	Slug string

	// Body.
	Body PutWorkspaceBody

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

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

func (o *PutWorkspaceUnauthorized) Code() int

Code gets the status code for the put workspace unauthorized response

func (*PutWorkspaceUnauthorized) Error

func (o *PutWorkspaceUnauthorized) Error() string

func (*PutWorkspaceUnauthorized) IsClientError

func (o *PutWorkspaceUnauthorized) IsClientError() bool

IsClientError returns true when this put workspace unauthorized response has a 4xx status code

func (*PutWorkspaceUnauthorized) IsCode

func (o *PutWorkspaceUnauthorized) IsCode(code int) bool

IsCode returns true when this put workspace unauthorized response a status code equal to that given

func (*PutWorkspaceUnauthorized) IsRedirect

func (o *PutWorkspaceUnauthorized) IsRedirect() bool

IsRedirect returns true when this put workspace unauthorized response has a 3xx status code

func (*PutWorkspaceUnauthorized) IsServerError

func (o *PutWorkspaceUnauthorized) IsServerError() bool

IsServerError returns true when this put workspace unauthorized response has a 5xx status code

func (*PutWorkspaceUnauthorized) IsSuccess

func (o *PutWorkspaceUnauthorized) IsSuccess() bool

IsSuccess returns true when this put workspace unauthorized response has a 2xx status code

func (*PutWorkspaceUnauthorized) String

func (o *PutWorkspaceUnauthorized) String() 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) Code

func (o *SearchWorkspacesForbidden) Code() int

Code gets the status code for the search workspaces forbidden response

func (*SearchWorkspacesForbidden) Error

func (o *SearchWorkspacesForbidden) Error() string

func (*SearchWorkspacesForbidden) GetPayload

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

func (*SearchWorkspacesForbidden) IsClientError

func (o *SearchWorkspacesForbidden) IsClientError() bool

IsClientError returns true when this search workspaces forbidden response has a 4xx status code

func (*SearchWorkspacesForbidden) IsCode

func (o *SearchWorkspacesForbidden) IsCode(code int) bool

IsCode returns true when this search workspaces forbidden response a status code equal to that given

func (*SearchWorkspacesForbidden) IsRedirect

func (o *SearchWorkspacesForbidden) IsRedirect() bool

IsRedirect returns true when this search workspaces forbidden response has a 3xx status code

func (*SearchWorkspacesForbidden) IsServerError

func (o *SearchWorkspacesForbidden) IsServerError() bool

IsServerError returns true when this search workspaces forbidden response has a 5xx status code

func (*SearchWorkspacesForbidden) IsSuccess

func (o *SearchWorkspacesForbidden) IsSuccess() bool

IsSuccess returns true when this search workspaces forbidden response has a 2xx status code

func (*SearchWorkspacesForbidden) String

func (o *SearchWorkspacesForbidden) String() string

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

Code gets the status code for the search workspaces internal server error response

func (*SearchWorkspacesInternalServerError) Error

func (*SearchWorkspacesInternalServerError) GetPayload

func (*SearchWorkspacesInternalServerError) IsClientError

func (o *SearchWorkspacesInternalServerError) IsClientError() bool

IsClientError returns true when this search workspaces internal server error response has a 4xx status code

func (*SearchWorkspacesInternalServerError) IsCode

IsCode returns true when this search workspaces internal server error response a status code equal to that given

func (*SearchWorkspacesInternalServerError) IsRedirect

func (o *SearchWorkspacesInternalServerError) IsRedirect() bool

IsRedirect returns true when this search workspaces internal server error response has a 3xx status code

func (*SearchWorkspacesInternalServerError) IsServerError

func (o *SearchWorkspacesInternalServerError) IsServerError() bool

IsServerError returns true when this search workspaces internal server error response has a 5xx status code

func (*SearchWorkspacesInternalServerError) IsSuccess

IsSuccess returns true when this search workspaces internal server error response has a 2xx status code

func (*SearchWorkspacesInternalServerError) String

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

func (o *SearchWorkspacesNotFound) Code() int

Code gets the status code for the search workspaces not found response

func (*SearchWorkspacesNotFound) Error

func (o *SearchWorkspacesNotFound) Error() string

func (*SearchWorkspacesNotFound) GetPayload

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

func (*SearchWorkspacesNotFound) IsClientError

func (o *SearchWorkspacesNotFound) IsClientError() bool

IsClientError returns true when this search workspaces not found response has a 4xx status code

func (*SearchWorkspacesNotFound) IsCode

func (o *SearchWorkspacesNotFound) IsCode(code int) bool

IsCode returns true when this search workspaces not found response a status code equal to that given

func (*SearchWorkspacesNotFound) IsRedirect

func (o *SearchWorkspacesNotFound) IsRedirect() bool

IsRedirect returns true when this search workspaces not found response has a 3xx status code

func (*SearchWorkspacesNotFound) IsServerError

func (o *SearchWorkspacesNotFound) IsServerError() bool

IsServerError returns true when this search workspaces not found response has a 5xx status code

func (*SearchWorkspacesNotFound) IsSuccess

func (o *SearchWorkspacesNotFound) IsSuccess() bool

IsSuccess returns true when this search workspaces not found response has a 2xx status code

func (*SearchWorkspacesNotFound) String

func (o *SearchWorkspacesNotFound) String() string

type SearchWorkspacesOK

type SearchWorkspacesOK struct {
	Payload *models.RestWorkspaceCollection
}

SearchWorkspacesOK describes a response with status code 200, with default header values.

A successful response.

func NewSearchWorkspacesOK

func NewSearchWorkspacesOK() *SearchWorkspacesOK

NewSearchWorkspacesOK creates a SearchWorkspacesOK with default headers values

func (*SearchWorkspacesOK) Code

func (o *SearchWorkspacesOK) Code() int

Code gets the status code for the search workspaces o k response

func (*SearchWorkspacesOK) Error

func (o *SearchWorkspacesOK) Error() string

func (*SearchWorkspacesOK) GetPayload

func (*SearchWorkspacesOK) IsClientError

func (o *SearchWorkspacesOK) IsClientError() bool

IsClientError returns true when this search workspaces o k response has a 4xx status code

func (*SearchWorkspacesOK) IsCode

func (o *SearchWorkspacesOK) IsCode(code int) bool

IsCode returns true when this search workspaces o k response a status code equal to that given

func (*SearchWorkspacesOK) IsRedirect

func (o *SearchWorkspacesOK) IsRedirect() bool

IsRedirect returns true when this search workspaces o k response has a 3xx status code

func (*SearchWorkspacesOK) IsServerError

func (o *SearchWorkspacesOK) IsServerError() bool

IsServerError returns true when this search workspaces o k response has a 5xx status code

func (*SearchWorkspacesOK) IsSuccess

func (o *SearchWorkspacesOK) IsSuccess() bool

IsSuccess returns true when this search workspaces o k response has a 2xx status code

func (*SearchWorkspacesOK) String

func (o *SearchWorkspacesOK) String() 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 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) Code

Code gets the status code for the search workspaces unauthorized response

func (*SearchWorkspacesUnauthorized) Error

func (*SearchWorkspacesUnauthorized) IsClientError

func (o *SearchWorkspacesUnauthorized) IsClientError() bool

IsClientError returns true when this search workspaces unauthorized response has a 4xx status code

func (*SearchWorkspacesUnauthorized) IsCode

func (o *SearchWorkspacesUnauthorized) IsCode(code int) bool

IsCode returns true when this search workspaces unauthorized response a status code equal to that given

func (*SearchWorkspacesUnauthorized) IsRedirect

func (o *SearchWorkspacesUnauthorized) IsRedirect() bool

IsRedirect returns true when this search workspaces unauthorized response has a 3xx status code

func (*SearchWorkspacesUnauthorized) IsServerError

func (o *SearchWorkspacesUnauthorized) IsServerError() bool

IsServerError returns true when this search workspaces unauthorized response has a 5xx status code

func (*SearchWorkspacesUnauthorized) IsSuccess

func (o *SearchWorkspacesUnauthorized) IsSuccess() bool

IsSuccess returns true when this search workspaces unauthorized response has a 2xx status code

func (*SearchWorkspacesUnauthorized) String

Jump to

Keyboard shortcuts

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