workspaces

package
v0.0.0-...-7b99a6d Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2024 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 Client

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

Client for workspaces API

func (*Client) GetWorkspace

func (a *Client) GetWorkspace(params *GetWorkspaceParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetWorkspaceOK, error)

GetWorkspace gets workspace

Get workspace.

func (*Client) ListUserWorkspaces

func (a *Client) ListUserWorkspaces(params *ListUserWorkspacesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListUserWorkspacesOK, error)

ListUserWorkspaces lists user workspaces

List workspaces that the current user has access to.

func (*Client) ListWorkspaces

func (a *Client) ListWorkspaces(params *ListWorkspacesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListWorkspacesOK, error)

ListWorkspaces lists workspaces

List workspaces

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) UpdateWorkspaceMetadata

func (a *Client) UpdateWorkspaceMetadata(params *UpdateWorkspaceMetadataParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateWorkspaceMetadataOK, error)

UpdateWorkspaceMetadata updates workspace metadata

Update workspace metadata.

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	GetWorkspace(params *GetWorkspaceParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetWorkspaceOK, error)

	ListUserWorkspaces(params *ListUserWorkspacesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListUserWorkspacesOK, error)

	ListWorkspaces(params *ListWorkspacesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListWorkspacesOK, error)

	UpdateWorkspaceMetadata(params *UpdateWorkspaceMetadataParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateWorkspaceMetadataOK, 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 workspaces API client.

type GetWorkspaceForbidden

type GetWorkspaceForbidden struct {
	Payload *models.Error
}

GetWorkspaceForbidden describes a response with status code 403, with default header values.

Forbidden

func NewGetWorkspaceForbidden

func NewGetWorkspaceForbidden() *GetWorkspaceForbidden

NewGetWorkspaceForbidden creates a GetWorkspaceForbidden with default headers values

func (*GetWorkspaceForbidden) Code

func (o *GetWorkspaceForbidden) Code() int

Code gets the status code for the get workspace forbidden response

func (*GetWorkspaceForbidden) Error

func (o *GetWorkspaceForbidden) Error() string

func (*GetWorkspaceForbidden) GetPayload

func (o *GetWorkspaceForbidden) GetPayload() *models.Error

func (*GetWorkspaceForbidden) IsClientError

func (o *GetWorkspaceForbidden) IsClientError() bool

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

func (*GetWorkspaceForbidden) IsCode

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

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

func (*GetWorkspaceForbidden) IsRedirect

func (o *GetWorkspaceForbidden) IsRedirect() bool

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

func (*GetWorkspaceForbidden) IsServerError

func (o *GetWorkspaceForbidden) IsServerError() bool

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

func (*GetWorkspaceForbidden) IsSuccess

func (o *GetWorkspaceForbidden) IsSuccess() bool

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

func (*GetWorkspaceForbidden) String

func (o *GetWorkspaceForbidden) String() string

type GetWorkspaceNotFound

type GetWorkspaceNotFound struct {
	Payload *models.Error
}

GetWorkspaceNotFound describes a response with status code 404, with default header values.

Not found

func NewGetWorkspaceNotFound

func NewGetWorkspaceNotFound() *GetWorkspaceNotFound

NewGetWorkspaceNotFound creates a GetWorkspaceNotFound with default headers values

func (*GetWorkspaceNotFound) Code

func (o *GetWorkspaceNotFound) Code() int

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

func (*GetWorkspaceNotFound) Error

func (o *GetWorkspaceNotFound) Error() string

func (*GetWorkspaceNotFound) GetPayload

func (o *GetWorkspaceNotFound) GetPayload() *models.Error

func (*GetWorkspaceNotFound) IsClientError

func (o *GetWorkspaceNotFound) IsClientError() bool

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

func (*GetWorkspaceNotFound) IsCode

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

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

func (*GetWorkspaceNotFound) IsRedirect

func (o *GetWorkspaceNotFound) IsRedirect() bool

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

func (*GetWorkspaceNotFound) IsServerError

func (o *GetWorkspaceNotFound) IsServerError() bool

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

func (*GetWorkspaceNotFound) IsSuccess

func (o *GetWorkspaceNotFound) IsSuccess() bool

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

func (*GetWorkspaceNotFound) String

func (o *GetWorkspaceNotFound) String() string

type GetWorkspaceOK

type GetWorkspaceOK struct {

	/* The ETag HTTP header is an identifier for a specific version of a resource

	in:header

	     Format: etag
	*/
	Etag string

	Payload *models.ServerResponse
}

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

Server

func NewGetWorkspaceOK

func NewGetWorkspaceOK() *GetWorkspaceOK

NewGetWorkspaceOK creates a GetWorkspaceOK with default headers values

func (*GetWorkspaceOK) Code

func (o *GetWorkspaceOK) Code() int

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

func (*GetWorkspaceOK) Error

func (o *GetWorkspaceOK) Error() string

func (*GetWorkspaceOK) GetPayload

func (o *GetWorkspaceOK) GetPayload() *models.ServerResponse

func (*GetWorkspaceOK) IsClientError

func (o *GetWorkspaceOK) IsClientError() bool

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

func (*GetWorkspaceOK) IsCode

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

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

func (*GetWorkspaceOK) IsRedirect

func (o *GetWorkspaceOK) IsRedirect() bool

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

func (*GetWorkspaceOK) IsServerError

func (o *GetWorkspaceOK) IsServerError() bool

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

func (*GetWorkspaceOK) IsSuccess

func (o *GetWorkspaceOK) IsSuccess() bool

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

func (*GetWorkspaceOK) String

func (o *GetWorkspaceOK) String() string

type GetWorkspaceParams

type GetWorkspaceParams struct {

	/* IfMatch.

	   A server will only return requested resources if the resource matches one of the listed ETag value

	   Format: etag
	*/
	IfMatch *string

	/* Wid.

	   Workspace id

	   Default: "default"
	*/
	Wid string

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

GetWorkspaceParams contains all the parameters to send to the API endpoint

for the get workspace operation.

Typically these are written to a http.Request.

func NewGetWorkspaceParams

func NewGetWorkspaceParams() *GetWorkspaceParams

NewGetWorkspaceParams creates a new GetWorkspaceParams 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 NewGetWorkspaceParamsWithContext

func NewGetWorkspaceParamsWithContext(ctx context.Context) *GetWorkspaceParams

NewGetWorkspaceParamsWithContext creates a new GetWorkspaceParams object with the ability to set a context for a request.

func NewGetWorkspaceParamsWithHTTPClient

func NewGetWorkspaceParamsWithHTTPClient(client *http.Client) *GetWorkspaceParams

NewGetWorkspaceParamsWithHTTPClient creates a new GetWorkspaceParams object with the ability to set a custom HTTPClient for a request.

func NewGetWorkspaceParamsWithTimeout

func NewGetWorkspaceParamsWithTimeout(timeout time.Duration) *GetWorkspaceParams

NewGetWorkspaceParamsWithTimeout creates a new GetWorkspaceParams object with the ability to set a timeout on a request.

func (*GetWorkspaceParams) SetContext

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

SetContext adds the context to the get workspace params

func (*GetWorkspaceParams) SetDefaults

func (o *GetWorkspaceParams) SetDefaults()

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

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

func (*GetWorkspaceParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get workspace params

func (*GetWorkspaceParams) SetIfMatch

func (o *GetWorkspaceParams) SetIfMatch(ifMatch *string)

SetIfMatch adds the ifMatch to the get workspace params

func (*GetWorkspaceParams) SetTimeout

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

SetTimeout adds the timeout to the get workspace params

func (*GetWorkspaceParams) SetWid

func (o *GetWorkspaceParams) SetWid(wid string)

SetWid adds the wid to the get workspace params

func (*GetWorkspaceParams) WithContext

WithContext adds the context to the get workspace params

func (*GetWorkspaceParams) WithDefaults

func (o *GetWorkspaceParams) WithDefaults() *GetWorkspaceParams

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

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

func (*GetWorkspaceParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get workspace params

func (*GetWorkspaceParams) WithIfMatch

func (o *GetWorkspaceParams) WithIfMatch(ifMatch *string) *GetWorkspaceParams

WithIfMatch adds the ifMatch to the get workspace params

func (*GetWorkspaceParams) WithTimeout

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

WithTimeout adds the timeout to the get workspace params

func (*GetWorkspaceParams) WithWid

func (o *GetWorkspaceParams) WithWid(wid string) *GetWorkspaceParams

WithWid adds the wid to the get workspace params

func (*GetWorkspaceParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetWorkspaceReader

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

GetWorkspaceReader is a Reader for the GetWorkspace structure.

func (*GetWorkspaceReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetWorkspaceTooManyRequests

type GetWorkspaceTooManyRequests struct {
	Payload *models.Error
}

GetWorkspaceTooManyRequests describes a response with status code 429, with default header values.

Too many requests

func NewGetWorkspaceTooManyRequests

func NewGetWorkspaceTooManyRequests() *GetWorkspaceTooManyRequests

NewGetWorkspaceTooManyRequests creates a GetWorkspaceTooManyRequests with default headers values

func (*GetWorkspaceTooManyRequests) Code

func (o *GetWorkspaceTooManyRequests) Code() int

Code gets the status code for the get workspace too many requests response

func (*GetWorkspaceTooManyRequests) Error

func (*GetWorkspaceTooManyRequests) GetPayload

func (o *GetWorkspaceTooManyRequests) GetPayload() *models.Error

func (*GetWorkspaceTooManyRequests) IsClientError

func (o *GetWorkspaceTooManyRequests) IsClientError() bool

IsClientError returns true when this get workspace too many requests response has a 4xx status code

func (*GetWorkspaceTooManyRequests) IsCode

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

IsCode returns true when this get workspace too many requests response a status code equal to that given

func (*GetWorkspaceTooManyRequests) IsRedirect

func (o *GetWorkspaceTooManyRequests) IsRedirect() bool

IsRedirect returns true when this get workspace too many requests response has a 3xx status code

func (*GetWorkspaceTooManyRequests) IsServerError

func (o *GetWorkspaceTooManyRequests) IsServerError() bool

IsServerError returns true when this get workspace too many requests response has a 5xx status code

func (*GetWorkspaceTooManyRequests) IsSuccess

func (o *GetWorkspaceTooManyRequests) IsSuccess() bool

IsSuccess returns true when this get workspace too many requests response has a 2xx status code

func (*GetWorkspaceTooManyRequests) String

func (o *GetWorkspaceTooManyRequests) String() string

type GetWorkspaceUnauthorized

type GetWorkspaceUnauthorized struct {
	Payload *models.Error
}

GetWorkspaceUnauthorized describes a response with status code 401, with default header values.

Unauthorized

func NewGetWorkspaceUnauthorized

func NewGetWorkspaceUnauthorized() *GetWorkspaceUnauthorized

NewGetWorkspaceUnauthorized creates a GetWorkspaceUnauthorized with default headers values

func (*GetWorkspaceUnauthorized) Code

func (o *GetWorkspaceUnauthorized) Code() int

Code gets the status code for the get workspace unauthorized response

func (*GetWorkspaceUnauthorized) Error

func (o *GetWorkspaceUnauthorized) Error() string

func (*GetWorkspaceUnauthorized) GetPayload

func (o *GetWorkspaceUnauthorized) GetPayload() *models.Error

func (*GetWorkspaceUnauthorized) IsClientError

func (o *GetWorkspaceUnauthorized) IsClientError() bool

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

func (*GetWorkspaceUnauthorized) IsCode

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

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

func (*GetWorkspaceUnauthorized) IsRedirect

func (o *GetWorkspaceUnauthorized) IsRedirect() bool

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

func (*GetWorkspaceUnauthorized) IsServerError

func (o *GetWorkspaceUnauthorized) IsServerError() bool

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

func (*GetWorkspaceUnauthorized) IsSuccess

func (o *GetWorkspaceUnauthorized) IsSuccess() bool

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

func (*GetWorkspaceUnauthorized) String

func (o *GetWorkspaceUnauthorized) String() string

type ListUserWorkspacesForbidden

type ListUserWorkspacesForbidden struct {
	Payload *models.Error
}

ListUserWorkspacesForbidden describes a response with status code 403, with default header values.

Forbidden

func NewListUserWorkspacesForbidden

func NewListUserWorkspacesForbidden() *ListUserWorkspacesForbidden

NewListUserWorkspacesForbidden creates a ListUserWorkspacesForbidden with default headers values

func (*ListUserWorkspacesForbidden) Code

func (o *ListUserWorkspacesForbidden) Code() int

Code gets the status code for the list user workspaces forbidden response

func (*ListUserWorkspacesForbidden) Error

func (*ListUserWorkspacesForbidden) GetPayload

func (o *ListUserWorkspacesForbidden) GetPayload() *models.Error

func (*ListUserWorkspacesForbidden) IsClientError

func (o *ListUserWorkspacesForbidden) IsClientError() bool

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

func (*ListUserWorkspacesForbidden) IsCode

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

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

func (*ListUserWorkspacesForbidden) IsRedirect

func (o *ListUserWorkspacesForbidden) IsRedirect() bool

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

func (*ListUserWorkspacesForbidden) IsServerError

func (o *ListUserWorkspacesForbidden) IsServerError() bool

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

func (*ListUserWorkspacesForbidden) IsSuccess

func (o *ListUserWorkspacesForbidden) IsSuccess() bool

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

func (*ListUserWorkspacesForbidden) String

func (o *ListUserWorkspacesForbidden) String() string

type ListUserWorkspacesNotFound

type ListUserWorkspacesNotFound struct {
	Payload *models.Error
}

ListUserWorkspacesNotFound describes a response with status code 404, with default header values.

Not found

func NewListUserWorkspacesNotFound

func NewListUserWorkspacesNotFound() *ListUserWorkspacesNotFound

NewListUserWorkspacesNotFound creates a ListUserWorkspacesNotFound with default headers values

func (*ListUserWorkspacesNotFound) Code

func (o *ListUserWorkspacesNotFound) Code() int

Code gets the status code for the list user workspaces not found response

func (*ListUserWorkspacesNotFound) Error

func (*ListUserWorkspacesNotFound) GetPayload

func (o *ListUserWorkspacesNotFound) GetPayload() *models.Error

func (*ListUserWorkspacesNotFound) IsClientError

func (o *ListUserWorkspacesNotFound) IsClientError() bool

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

func (*ListUserWorkspacesNotFound) IsCode

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

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

func (*ListUserWorkspacesNotFound) IsRedirect

func (o *ListUserWorkspacesNotFound) IsRedirect() bool

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

func (*ListUserWorkspacesNotFound) IsServerError

func (o *ListUserWorkspacesNotFound) IsServerError() bool

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

func (*ListUserWorkspacesNotFound) IsSuccess

func (o *ListUserWorkspacesNotFound) IsSuccess() bool

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

func (*ListUserWorkspacesNotFound) String

func (o *ListUserWorkspacesNotFound) String() string

type ListUserWorkspacesOK

type ListUserWorkspacesOK struct {

	/* The ETag HTTP header is an identifier for a specific version of a resource

	in:header

	     Format: etag
	*/
	Etag string

	Payload *models.UserWorkspacesResponse
}

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

User Workspaces

func NewListUserWorkspacesOK

func NewListUserWorkspacesOK() *ListUserWorkspacesOK

NewListUserWorkspacesOK creates a ListUserWorkspacesOK with default headers values

func (*ListUserWorkspacesOK) Code

func (o *ListUserWorkspacesOK) Code() int

Code gets the status code for the list user workspaces o k response

func (*ListUserWorkspacesOK) Error

func (o *ListUserWorkspacesOK) Error() string

func (*ListUserWorkspacesOK) GetPayload

func (*ListUserWorkspacesOK) IsClientError

func (o *ListUserWorkspacesOK) IsClientError() bool

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

func (*ListUserWorkspacesOK) IsCode

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

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

func (*ListUserWorkspacesOK) IsRedirect

func (o *ListUserWorkspacesOK) IsRedirect() bool

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

func (*ListUserWorkspacesOK) IsServerError

func (o *ListUserWorkspacesOK) IsServerError() bool

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

func (*ListUserWorkspacesOK) IsSuccess

func (o *ListUserWorkspacesOK) IsSuccess() bool

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

func (*ListUserWorkspacesOK) String

func (o *ListUserWorkspacesOK) String() string

type ListUserWorkspacesParams

type ListUserWorkspacesParams struct {

	/* Cursor.

	   Cursor
	*/
	Cursor *string

	/* IfMatch.

	   A server will only return requested resources if the resource matches one of the listed ETag value

	   Format: etag
	*/
	IfMatch *string

	/* Limit.

	     optional limit results
	Limit

	     Format: int64
	     Default: 20
	*/
	Limit *int64

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

ListUserWorkspacesParams contains all the parameters to send to the API endpoint

for the list user workspaces operation.

Typically these are written to a http.Request.

func NewListUserWorkspacesParams

func NewListUserWorkspacesParams() *ListUserWorkspacesParams

NewListUserWorkspacesParams creates a new ListUserWorkspacesParams 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 NewListUserWorkspacesParamsWithContext

func NewListUserWorkspacesParamsWithContext(ctx context.Context) *ListUserWorkspacesParams

NewListUserWorkspacesParamsWithContext creates a new ListUserWorkspacesParams object with the ability to set a context for a request.

func NewListUserWorkspacesParamsWithHTTPClient

func NewListUserWorkspacesParamsWithHTTPClient(client *http.Client) *ListUserWorkspacesParams

NewListUserWorkspacesParamsWithHTTPClient creates a new ListUserWorkspacesParams object with the ability to set a custom HTTPClient for a request.

func NewListUserWorkspacesParamsWithTimeout

func NewListUserWorkspacesParamsWithTimeout(timeout time.Duration) *ListUserWorkspacesParams

NewListUserWorkspacesParamsWithTimeout creates a new ListUserWorkspacesParams object with the ability to set a timeout on a request.

func (*ListUserWorkspacesParams) SetContext

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

SetContext adds the context to the list user workspaces params

func (*ListUserWorkspacesParams) SetCursor

func (o *ListUserWorkspacesParams) SetCursor(cursor *string)

SetCursor adds the cursor to the list user workspaces params

func (*ListUserWorkspacesParams) SetDefaults

func (o *ListUserWorkspacesParams) SetDefaults()

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

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

func (*ListUserWorkspacesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the list user workspaces params

func (*ListUserWorkspacesParams) SetIfMatch

func (o *ListUserWorkspacesParams) SetIfMatch(ifMatch *string)

SetIfMatch adds the ifMatch to the list user workspaces params

func (*ListUserWorkspacesParams) SetLimit

func (o *ListUserWorkspacesParams) SetLimit(limit *int64)

SetLimit adds the limit to the list user workspaces params

func (*ListUserWorkspacesParams) SetTimeout

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

SetTimeout adds the timeout to the list user workspaces params

func (*ListUserWorkspacesParams) WithContext

WithContext adds the context to the list user workspaces params

func (*ListUserWorkspacesParams) WithCursor

WithCursor adds the cursor to the list user workspaces params

func (*ListUserWorkspacesParams) WithDefaults

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

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

func (*ListUserWorkspacesParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the list user workspaces params

func (*ListUserWorkspacesParams) WithIfMatch

func (o *ListUserWorkspacesParams) WithIfMatch(ifMatch *string) *ListUserWorkspacesParams

WithIfMatch adds the ifMatch to the list user workspaces params

func (*ListUserWorkspacesParams) WithLimit

WithLimit adds the limit to the list user workspaces params

func (*ListUserWorkspacesParams) WithTimeout

WithTimeout adds the timeout to the list user workspaces params

func (*ListUserWorkspacesParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type ListUserWorkspacesReader

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

ListUserWorkspacesReader is a Reader for the ListUserWorkspaces structure.

func (*ListUserWorkspacesReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ListUserWorkspacesTooManyRequests

type ListUserWorkspacesTooManyRequests struct {
	Payload *models.Error
}

ListUserWorkspacesTooManyRequests describes a response with status code 429, with default header values.

Too many requests

func NewListUserWorkspacesTooManyRequests

func NewListUserWorkspacesTooManyRequests() *ListUserWorkspacesTooManyRequests

NewListUserWorkspacesTooManyRequests creates a ListUserWorkspacesTooManyRequests with default headers values

func (*ListUserWorkspacesTooManyRequests) Code

Code gets the status code for the list user workspaces too many requests response

func (*ListUserWorkspacesTooManyRequests) Error

func (*ListUserWorkspacesTooManyRequests) GetPayload

func (*ListUserWorkspacesTooManyRequests) IsClientError

func (o *ListUserWorkspacesTooManyRequests) IsClientError() bool

IsClientError returns true when this list user workspaces too many requests response has a 4xx status code

func (*ListUserWorkspacesTooManyRequests) IsCode

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

IsCode returns true when this list user workspaces too many requests response a status code equal to that given

func (*ListUserWorkspacesTooManyRequests) IsRedirect

func (o *ListUserWorkspacesTooManyRequests) IsRedirect() bool

IsRedirect returns true when this list user workspaces too many requests response has a 3xx status code

func (*ListUserWorkspacesTooManyRequests) IsServerError

func (o *ListUserWorkspacesTooManyRequests) IsServerError() bool

IsServerError returns true when this list user workspaces too many requests response has a 5xx status code

func (*ListUserWorkspacesTooManyRequests) IsSuccess

func (o *ListUserWorkspacesTooManyRequests) IsSuccess() bool

IsSuccess returns true when this list user workspaces too many requests response has a 2xx status code

func (*ListUserWorkspacesTooManyRequests) String

type ListUserWorkspacesUnauthorized

type ListUserWorkspacesUnauthorized struct {
	Payload *models.Error
}

ListUserWorkspacesUnauthorized describes a response with status code 401, with default header values.

Unauthorized

func NewListUserWorkspacesUnauthorized

func NewListUserWorkspacesUnauthorized() *ListUserWorkspacesUnauthorized

NewListUserWorkspacesUnauthorized creates a ListUserWorkspacesUnauthorized with default headers values

func (*ListUserWorkspacesUnauthorized) Code

Code gets the status code for the list user workspaces unauthorized response

func (*ListUserWorkspacesUnauthorized) Error

func (*ListUserWorkspacesUnauthorized) GetPayload

func (o *ListUserWorkspacesUnauthorized) GetPayload() *models.Error

func (*ListUserWorkspacesUnauthorized) IsClientError

func (o *ListUserWorkspacesUnauthorized) IsClientError() bool

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

func (*ListUserWorkspacesUnauthorized) IsCode

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

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

func (*ListUserWorkspacesUnauthorized) IsRedirect

func (o *ListUserWorkspacesUnauthorized) IsRedirect() bool

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

func (*ListUserWorkspacesUnauthorized) IsServerError

func (o *ListUserWorkspacesUnauthorized) IsServerError() bool

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

func (*ListUserWorkspacesUnauthorized) IsSuccess

func (o *ListUserWorkspacesUnauthorized) IsSuccess() bool

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

func (*ListUserWorkspacesUnauthorized) String

type ListWorkspacesForbidden

type ListWorkspacesForbidden struct {
	Payload *models.Error
}

ListWorkspacesForbidden describes a response with status code 403, with default header values.

Forbidden

func NewListWorkspacesForbidden

func NewListWorkspacesForbidden() *ListWorkspacesForbidden

NewListWorkspacesForbidden creates a ListWorkspacesForbidden with default headers values

func (*ListWorkspacesForbidden) Code

func (o *ListWorkspacesForbidden) Code() int

Code gets the status code for the list workspaces forbidden response

func (*ListWorkspacesForbidden) Error

func (o *ListWorkspacesForbidden) Error() string

func (*ListWorkspacesForbidden) GetPayload

func (o *ListWorkspacesForbidden) GetPayload() *models.Error

func (*ListWorkspacesForbidden) IsClientError

func (o *ListWorkspacesForbidden) IsClientError() bool

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

func (*ListWorkspacesForbidden) IsCode

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

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

func (*ListWorkspacesForbidden) IsRedirect

func (o *ListWorkspacesForbidden) IsRedirect() bool

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

func (*ListWorkspacesForbidden) IsServerError

func (o *ListWorkspacesForbidden) IsServerError() bool

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

func (*ListWorkspacesForbidden) IsSuccess

func (o *ListWorkspacesForbidden) IsSuccess() bool

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

func (*ListWorkspacesForbidden) String

func (o *ListWorkspacesForbidden) String() string

type ListWorkspacesNotFound

type ListWorkspacesNotFound struct {
	Payload *models.Error
}

ListWorkspacesNotFound describes a response with status code 404, with default header values.

Not found

func NewListWorkspacesNotFound

func NewListWorkspacesNotFound() *ListWorkspacesNotFound

NewListWorkspacesNotFound creates a ListWorkspacesNotFound with default headers values

func (*ListWorkspacesNotFound) Code

func (o *ListWorkspacesNotFound) Code() int

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

func (*ListWorkspacesNotFound) Error

func (o *ListWorkspacesNotFound) Error() string

func (*ListWorkspacesNotFound) GetPayload

func (o *ListWorkspacesNotFound) GetPayload() *models.Error

func (*ListWorkspacesNotFound) IsClientError

func (o *ListWorkspacesNotFound) IsClientError() bool

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

func (*ListWorkspacesNotFound) IsCode

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

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

func (*ListWorkspacesNotFound) IsRedirect

func (o *ListWorkspacesNotFound) IsRedirect() bool

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

func (*ListWorkspacesNotFound) IsServerError

func (o *ListWorkspacesNotFound) IsServerError() bool

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

func (*ListWorkspacesNotFound) IsSuccess

func (o *ListWorkspacesNotFound) IsSuccess() bool

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

func (*ListWorkspacesNotFound) String

func (o *ListWorkspacesNotFound) String() string

type ListWorkspacesOK

type ListWorkspacesOK struct {

	/* The ETag HTTP header is an identifier for a specific version of a resource

	in:header

	     Format: etag
	*/
	Etag string

	Payload *models.WorkspacesResponse
}

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

Workspaces

func NewListWorkspacesOK

func NewListWorkspacesOK() *ListWorkspacesOK

NewListWorkspacesOK creates a ListWorkspacesOK with default headers values

func (*ListWorkspacesOK) Code

func (o *ListWorkspacesOK) Code() int

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

func (*ListWorkspacesOK) Error

func (o *ListWorkspacesOK) Error() string

func (*ListWorkspacesOK) GetPayload

func (o *ListWorkspacesOK) GetPayload() *models.WorkspacesResponse

func (*ListWorkspacesOK) IsClientError

func (o *ListWorkspacesOK) IsClientError() bool

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

func (*ListWorkspacesOK) IsCode

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

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

func (*ListWorkspacesOK) IsRedirect

func (o *ListWorkspacesOK) IsRedirect() bool

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

func (*ListWorkspacesOK) IsServerError

func (o *ListWorkspacesOK) IsServerError() bool

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

func (*ListWorkspacesOK) IsSuccess

func (o *ListWorkspacesOK) IsSuccess() bool

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

func (*ListWorkspacesOK) String

func (o *ListWorkspacesOK) String() string

type ListWorkspacesParams

type ListWorkspacesParams struct {

	/* AfterWorkspaceID.

	     optional list workspaces after given id
	AfterWorkspaceID
	*/
	AfterWorkspaceID *string

	/* BeforeWorkspaceID.

	     optional list workspaces before given id
	BeforeWorkspaceID
	*/
	BeforeWorkspaceID *string

	/* IfMatch.

	   A server will only return requested resources if the resource matches one of the listed ETag value

	   Format: etag
	*/
	IfMatch *string

	/* Limit.

	     optional limit results
	Limit

	     Format: int64
	     Default: 20
	*/
	Limit *int64

	/* Order.

	     optional order workspaces by given direction
	Order
	*/
	Order *string

	/* SearchPhrase.

	     Optional search phrase: workspace id OR workspace name substring (case insensitive)
	SearchPhrase
	*/
	SearchPhrase *string

	/* Sort.

	     optional sort workspaces by given field
	Sort
	*/
	Sort *string

	/* Template.

	   optional flag to filter by template
	*/
	Template *bool

	/* ThemeID.

	   optional flag to filter by theme id
	*/
	ThemeID *string

	/* WorkspaceTypes.

	   comma separated workspace types that are to be filtered out

	   Default: "admin,developer,system,regular,organization"
	*/
	WorkspaceTypes *string

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

ListWorkspacesParams contains all the parameters to send to the API endpoint

for the list workspaces operation.

Typically these are written to a http.Request.

func NewListWorkspacesParams

func NewListWorkspacesParams() *ListWorkspacesParams

NewListWorkspacesParams creates a new ListWorkspacesParams 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 NewListWorkspacesParamsWithContext

func NewListWorkspacesParamsWithContext(ctx context.Context) *ListWorkspacesParams

NewListWorkspacesParamsWithContext creates a new ListWorkspacesParams object with the ability to set a context for a request.

func NewListWorkspacesParamsWithHTTPClient

func NewListWorkspacesParamsWithHTTPClient(client *http.Client) *ListWorkspacesParams

NewListWorkspacesParamsWithHTTPClient creates a new ListWorkspacesParams object with the ability to set a custom HTTPClient for a request.

func NewListWorkspacesParamsWithTimeout

func NewListWorkspacesParamsWithTimeout(timeout time.Duration) *ListWorkspacesParams

NewListWorkspacesParamsWithTimeout creates a new ListWorkspacesParams object with the ability to set a timeout on a request.

func (*ListWorkspacesParams) SetAfterWorkspaceID

func (o *ListWorkspacesParams) SetAfterWorkspaceID(afterWorkspaceID *string)

SetAfterWorkspaceID adds the afterWorkspaceId to the list workspaces params

func (*ListWorkspacesParams) SetBeforeWorkspaceID

func (o *ListWorkspacesParams) SetBeforeWorkspaceID(beforeWorkspaceID *string)

SetBeforeWorkspaceID adds the beforeWorkspaceId to the list workspaces params

func (*ListWorkspacesParams) SetContext

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

SetContext adds the context to the list workspaces params

func (*ListWorkspacesParams) SetDefaults

func (o *ListWorkspacesParams) SetDefaults()

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

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

func (*ListWorkspacesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the list workspaces params

func (*ListWorkspacesParams) SetIfMatch

func (o *ListWorkspacesParams) SetIfMatch(ifMatch *string)

SetIfMatch adds the ifMatch to the list workspaces params

func (*ListWorkspacesParams) SetLimit

func (o *ListWorkspacesParams) SetLimit(limit *int64)

SetLimit adds the limit to the list workspaces params

func (*ListWorkspacesParams) SetOrder

func (o *ListWorkspacesParams) SetOrder(order *string)

SetOrder adds the order to the list workspaces params

func (*ListWorkspacesParams) SetSearchPhrase

func (o *ListWorkspacesParams) SetSearchPhrase(searchPhrase *string)

SetSearchPhrase adds the searchPhrase to the list workspaces params

func (*ListWorkspacesParams) SetSort

func (o *ListWorkspacesParams) SetSort(sort *string)

SetSort adds the sort to the list workspaces params

func (*ListWorkspacesParams) SetTemplate

func (o *ListWorkspacesParams) SetTemplate(template *bool)

SetTemplate adds the template to the list workspaces params

func (*ListWorkspacesParams) SetThemeID

func (o *ListWorkspacesParams) SetThemeID(themeID *string)

SetThemeID adds the themeId to the list workspaces params

func (*ListWorkspacesParams) SetTimeout

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

SetTimeout adds the timeout to the list workspaces params

func (*ListWorkspacesParams) SetWorkspaceTypes

func (o *ListWorkspacesParams) SetWorkspaceTypes(workspaceTypes *string)

SetWorkspaceTypes adds the workspaceTypes to the list workspaces params

func (*ListWorkspacesParams) WithAfterWorkspaceID

func (o *ListWorkspacesParams) WithAfterWorkspaceID(afterWorkspaceID *string) *ListWorkspacesParams

WithAfterWorkspaceID adds the afterWorkspaceID to the list workspaces params

func (*ListWorkspacesParams) WithBeforeWorkspaceID

func (o *ListWorkspacesParams) WithBeforeWorkspaceID(beforeWorkspaceID *string) *ListWorkspacesParams

WithBeforeWorkspaceID adds the beforeWorkspaceID to the list workspaces params

func (*ListWorkspacesParams) WithContext

WithContext adds the context to the list workspaces params

func (*ListWorkspacesParams) WithDefaults

func (o *ListWorkspacesParams) WithDefaults() *ListWorkspacesParams

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

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

func (*ListWorkspacesParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the list workspaces params

func (*ListWorkspacesParams) WithIfMatch

func (o *ListWorkspacesParams) WithIfMatch(ifMatch *string) *ListWorkspacesParams

WithIfMatch adds the ifMatch to the list workspaces params

func (*ListWorkspacesParams) WithLimit

func (o *ListWorkspacesParams) WithLimit(limit *int64) *ListWorkspacesParams

WithLimit adds the limit to the list workspaces params

func (*ListWorkspacesParams) WithOrder

func (o *ListWorkspacesParams) WithOrder(order *string) *ListWorkspacesParams

WithOrder adds the order to the list workspaces params

func (*ListWorkspacesParams) WithSearchPhrase

func (o *ListWorkspacesParams) WithSearchPhrase(searchPhrase *string) *ListWorkspacesParams

WithSearchPhrase adds the searchPhrase to the list workspaces params

func (*ListWorkspacesParams) WithSort

func (o *ListWorkspacesParams) WithSort(sort *string) *ListWorkspacesParams

WithSort adds the sort to the list workspaces params

func (*ListWorkspacesParams) WithTemplate

func (o *ListWorkspacesParams) WithTemplate(template *bool) *ListWorkspacesParams

WithTemplate adds the template to the list workspaces params

func (*ListWorkspacesParams) WithThemeID

func (o *ListWorkspacesParams) WithThemeID(themeID *string) *ListWorkspacesParams

WithThemeID adds the themeID to the list workspaces params

func (*ListWorkspacesParams) WithTimeout

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

WithTimeout adds the timeout to the list workspaces params

func (*ListWorkspacesParams) WithWorkspaceTypes

func (o *ListWorkspacesParams) WithWorkspaceTypes(workspaceTypes *string) *ListWorkspacesParams

WithWorkspaceTypes adds the workspaceTypes to the list workspaces params

func (*ListWorkspacesParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type ListWorkspacesReader

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

ListWorkspacesReader is a Reader for the ListWorkspaces structure.

func (*ListWorkspacesReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ListWorkspacesTooManyRequests

type ListWorkspacesTooManyRequests struct {
	Payload *models.Error
}

ListWorkspacesTooManyRequests describes a response with status code 429, with default header values.

Too many requests

func NewListWorkspacesTooManyRequests

func NewListWorkspacesTooManyRequests() *ListWorkspacesTooManyRequests

NewListWorkspacesTooManyRequests creates a ListWorkspacesTooManyRequests with default headers values

func (*ListWorkspacesTooManyRequests) Code

Code gets the status code for the list workspaces too many requests response

func (*ListWorkspacesTooManyRequests) Error

func (*ListWorkspacesTooManyRequests) GetPayload

func (o *ListWorkspacesTooManyRequests) GetPayload() *models.Error

func (*ListWorkspacesTooManyRequests) IsClientError

func (o *ListWorkspacesTooManyRequests) IsClientError() bool

IsClientError returns true when this list workspaces too many requests response has a 4xx status code

func (*ListWorkspacesTooManyRequests) IsCode

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

IsCode returns true when this list workspaces too many requests response a status code equal to that given

func (*ListWorkspacesTooManyRequests) IsRedirect

func (o *ListWorkspacesTooManyRequests) IsRedirect() bool

IsRedirect returns true when this list workspaces too many requests response has a 3xx status code

func (*ListWorkspacesTooManyRequests) IsServerError

func (o *ListWorkspacesTooManyRequests) IsServerError() bool

IsServerError returns true when this list workspaces too many requests response has a 5xx status code

func (*ListWorkspacesTooManyRequests) IsSuccess

func (o *ListWorkspacesTooManyRequests) IsSuccess() bool

IsSuccess returns true when this list workspaces too many requests response has a 2xx status code

func (*ListWorkspacesTooManyRequests) String

type ListWorkspacesUnauthorized

type ListWorkspacesUnauthorized struct {
	Payload *models.Error
}

ListWorkspacesUnauthorized describes a response with status code 401, with default header values.

Unauthorized

func NewListWorkspacesUnauthorized

func NewListWorkspacesUnauthorized() *ListWorkspacesUnauthorized

NewListWorkspacesUnauthorized creates a ListWorkspacesUnauthorized with default headers values

func (*ListWorkspacesUnauthorized) Code

func (o *ListWorkspacesUnauthorized) Code() int

Code gets the status code for the list workspaces unauthorized response

func (*ListWorkspacesUnauthorized) Error

func (*ListWorkspacesUnauthorized) GetPayload

func (o *ListWorkspacesUnauthorized) GetPayload() *models.Error

func (*ListWorkspacesUnauthorized) IsClientError

func (o *ListWorkspacesUnauthorized) IsClientError() bool

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

func (*ListWorkspacesUnauthorized) IsCode

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

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

func (*ListWorkspacesUnauthorized) IsRedirect

func (o *ListWorkspacesUnauthorized) IsRedirect() bool

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

func (*ListWorkspacesUnauthorized) IsServerError

func (o *ListWorkspacesUnauthorized) IsServerError() bool

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

func (*ListWorkspacesUnauthorized) IsSuccess

func (o *ListWorkspacesUnauthorized) IsSuccess() bool

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

func (*ListWorkspacesUnauthorized) String

func (o *ListWorkspacesUnauthorized) String() string

type UpdateWorkspaceMetadataForbidden

type UpdateWorkspaceMetadataForbidden struct {
	Payload *models.Error
}

UpdateWorkspaceMetadataForbidden describes a response with status code 403, with default header values.

Forbidden

func NewUpdateWorkspaceMetadataForbidden

func NewUpdateWorkspaceMetadataForbidden() *UpdateWorkspaceMetadataForbidden

NewUpdateWorkspaceMetadataForbidden creates a UpdateWorkspaceMetadataForbidden with default headers values

func (*UpdateWorkspaceMetadataForbidden) Code

Code gets the status code for the update workspace metadata forbidden response

func (*UpdateWorkspaceMetadataForbidden) Error

func (*UpdateWorkspaceMetadataForbidden) GetPayload

func (*UpdateWorkspaceMetadataForbidden) IsClientError

func (o *UpdateWorkspaceMetadataForbidden) IsClientError() bool

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

func (*UpdateWorkspaceMetadataForbidden) IsCode

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

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

func (*UpdateWorkspaceMetadataForbidden) IsRedirect

func (o *UpdateWorkspaceMetadataForbidden) IsRedirect() bool

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

func (*UpdateWorkspaceMetadataForbidden) IsServerError

func (o *UpdateWorkspaceMetadataForbidden) IsServerError() bool

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

func (*UpdateWorkspaceMetadataForbidden) IsSuccess

func (o *UpdateWorkspaceMetadataForbidden) IsSuccess() bool

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

func (*UpdateWorkspaceMetadataForbidden) String

type UpdateWorkspaceMetadataNotFound

type UpdateWorkspaceMetadataNotFound struct {
	Payload *models.Error
}

UpdateWorkspaceMetadataNotFound describes a response with status code 404, with default header values.

Not found

func NewUpdateWorkspaceMetadataNotFound

func NewUpdateWorkspaceMetadataNotFound() *UpdateWorkspaceMetadataNotFound

NewUpdateWorkspaceMetadataNotFound creates a UpdateWorkspaceMetadataNotFound with default headers values

func (*UpdateWorkspaceMetadataNotFound) Code

Code gets the status code for the update workspace metadata not found response

func (*UpdateWorkspaceMetadataNotFound) Error

func (*UpdateWorkspaceMetadataNotFound) GetPayload

func (o *UpdateWorkspaceMetadataNotFound) GetPayload() *models.Error

func (*UpdateWorkspaceMetadataNotFound) IsClientError

func (o *UpdateWorkspaceMetadataNotFound) IsClientError() bool

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

func (*UpdateWorkspaceMetadataNotFound) IsCode

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

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

func (*UpdateWorkspaceMetadataNotFound) IsRedirect

func (o *UpdateWorkspaceMetadataNotFound) IsRedirect() bool

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

func (*UpdateWorkspaceMetadataNotFound) IsServerError

func (o *UpdateWorkspaceMetadataNotFound) IsServerError() bool

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

func (*UpdateWorkspaceMetadataNotFound) IsSuccess

func (o *UpdateWorkspaceMetadataNotFound) IsSuccess() bool

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

func (*UpdateWorkspaceMetadataNotFound) String

type UpdateWorkspaceMetadataOK

type UpdateWorkspaceMetadataOK struct {

	/* The ETag HTTP header is an identifier for a specific version of a resource

	in:header

	     Format: etag
	*/
	Etag string

	Payload *models.WorkspaceMetadata
}

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

Workspace metadata

func NewUpdateWorkspaceMetadataOK

func NewUpdateWorkspaceMetadataOK() *UpdateWorkspaceMetadataOK

NewUpdateWorkspaceMetadataOK creates a UpdateWorkspaceMetadataOK with default headers values

func (*UpdateWorkspaceMetadataOK) Code

func (o *UpdateWorkspaceMetadataOK) Code() int

Code gets the status code for the update workspace metadata o k response

func (*UpdateWorkspaceMetadataOK) Error

func (o *UpdateWorkspaceMetadataOK) Error() string

func (*UpdateWorkspaceMetadataOK) GetPayload

func (*UpdateWorkspaceMetadataOK) IsClientError

func (o *UpdateWorkspaceMetadataOK) IsClientError() bool

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

func (*UpdateWorkspaceMetadataOK) IsCode

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

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

func (*UpdateWorkspaceMetadataOK) IsRedirect

func (o *UpdateWorkspaceMetadataOK) IsRedirect() bool

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

func (*UpdateWorkspaceMetadataOK) IsServerError

func (o *UpdateWorkspaceMetadataOK) IsServerError() bool

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

func (*UpdateWorkspaceMetadataOK) IsSuccess

func (o *UpdateWorkspaceMetadataOK) IsSuccess() bool

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

func (*UpdateWorkspaceMetadataOK) String

func (o *UpdateWorkspaceMetadataOK) String() string

type UpdateWorkspaceMetadataParams

type UpdateWorkspaceMetadataParams struct {

	// WorkspaceMetadata.
	WorkspaceMetadata *models.WorkspaceMetadata

	/* IfMatch.

	   A server will only return requested resources if the resource matches one of the listed ETag value

	   Format: etag
	*/
	IfMatch *string

	/* Wid.

	   Workspace id

	   Default: "default"
	*/
	Wid string

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

UpdateWorkspaceMetadataParams contains all the parameters to send to the API endpoint

for the update workspace metadata operation.

Typically these are written to a http.Request.

func NewUpdateWorkspaceMetadataParams

func NewUpdateWorkspaceMetadataParams() *UpdateWorkspaceMetadataParams

NewUpdateWorkspaceMetadataParams creates a new UpdateWorkspaceMetadataParams 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 NewUpdateWorkspaceMetadataParamsWithContext

func NewUpdateWorkspaceMetadataParamsWithContext(ctx context.Context) *UpdateWorkspaceMetadataParams

NewUpdateWorkspaceMetadataParamsWithContext creates a new UpdateWorkspaceMetadataParams object with the ability to set a context for a request.

func NewUpdateWorkspaceMetadataParamsWithHTTPClient

func NewUpdateWorkspaceMetadataParamsWithHTTPClient(client *http.Client) *UpdateWorkspaceMetadataParams

NewUpdateWorkspaceMetadataParamsWithHTTPClient creates a new UpdateWorkspaceMetadataParams object with the ability to set a custom HTTPClient for a request.

func NewUpdateWorkspaceMetadataParamsWithTimeout

func NewUpdateWorkspaceMetadataParamsWithTimeout(timeout time.Duration) *UpdateWorkspaceMetadataParams

NewUpdateWorkspaceMetadataParamsWithTimeout creates a new UpdateWorkspaceMetadataParams object with the ability to set a timeout on a request.

func (*UpdateWorkspaceMetadataParams) SetContext

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

SetContext adds the context to the update workspace metadata params

func (*UpdateWorkspaceMetadataParams) SetDefaults

func (o *UpdateWorkspaceMetadataParams) SetDefaults()

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

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

func (*UpdateWorkspaceMetadataParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the update workspace metadata params

func (*UpdateWorkspaceMetadataParams) SetIfMatch

func (o *UpdateWorkspaceMetadataParams) SetIfMatch(ifMatch *string)

SetIfMatch adds the ifMatch to the update workspace metadata params

func (*UpdateWorkspaceMetadataParams) SetTimeout

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

SetTimeout adds the timeout to the update workspace metadata params

func (*UpdateWorkspaceMetadataParams) SetWid

func (o *UpdateWorkspaceMetadataParams) SetWid(wid string)

SetWid adds the wid to the update workspace metadata params

func (*UpdateWorkspaceMetadataParams) SetWorkspaceMetadata

func (o *UpdateWorkspaceMetadataParams) SetWorkspaceMetadata(workspaceMetadata *models.WorkspaceMetadata)

SetWorkspaceMetadata adds the workspaceMetadata to the update workspace metadata params

func (*UpdateWorkspaceMetadataParams) WithContext

WithContext adds the context to the update workspace metadata params

func (*UpdateWorkspaceMetadataParams) WithDefaults

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

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

func (*UpdateWorkspaceMetadataParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the update workspace metadata params

func (*UpdateWorkspaceMetadataParams) WithIfMatch

WithIfMatch adds the ifMatch to the update workspace metadata params

func (*UpdateWorkspaceMetadataParams) WithTimeout

WithTimeout adds the timeout to the update workspace metadata params

func (*UpdateWorkspaceMetadataParams) WithWid

WithWid adds the wid to the update workspace metadata params

func (*UpdateWorkspaceMetadataParams) WithWorkspaceMetadata

func (o *UpdateWorkspaceMetadataParams) WithWorkspaceMetadata(workspaceMetadata *models.WorkspaceMetadata) *UpdateWorkspaceMetadataParams

WithWorkspaceMetadata adds the workspaceMetadata to the update workspace metadata params

func (*UpdateWorkspaceMetadataParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type UpdateWorkspaceMetadataReader

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

UpdateWorkspaceMetadataReader is a Reader for the UpdateWorkspaceMetadata structure.

func (*UpdateWorkspaceMetadataReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UpdateWorkspaceMetadataTooManyRequests

type UpdateWorkspaceMetadataTooManyRequests struct {
	Payload *models.Error
}

UpdateWorkspaceMetadataTooManyRequests describes a response with status code 429, with default header values.

Too many requests

func NewUpdateWorkspaceMetadataTooManyRequests

func NewUpdateWorkspaceMetadataTooManyRequests() *UpdateWorkspaceMetadataTooManyRequests

NewUpdateWorkspaceMetadataTooManyRequests creates a UpdateWorkspaceMetadataTooManyRequests with default headers values

func (*UpdateWorkspaceMetadataTooManyRequests) Code

Code gets the status code for the update workspace metadata too many requests response

func (*UpdateWorkspaceMetadataTooManyRequests) Error

func (*UpdateWorkspaceMetadataTooManyRequests) GetPayload

func (*UpdateWorkspaceMetadataTooManyRequests) IsClientError

func (o *UpdateWorkspaceMetadataTooManyRequests) IsClientError() bool

IsClientError returns true when this update workspace metadata too many requests response has a 4xx status code

func (*UpdateWorkspaceMetadataTooManyRequests) IsCode

IsCode returns true when this update workspace metadata too many requests response a status code equal to that given

func (*UpdateWorkspaceMetadataTooManyRequests) IsRedirect

IsRedirect returns true when this update workspace metadata too many requests response has a 3xx status code

func (*UpdateWorkspaceMetadataTooManyRequests) IsServerError

func (o *UpdateWorkspaceMetadataTooManyRequests) IsServerError() bool

IsServerError returns true when this update workspace metadata too many requests response has a 5xx status code

func (*UpdateWorkspaceMetadataTooManyRequests) IsSuccess

IsSuccess returns true when this update workspace metadata too many requests response has a 2xx status code

func (*UpdateWorkspaceMetadataTooManyRequests) String

type UpdateWorkspaceMetadataUnauthorized

type UpdateWorkspaceMetadataUnauthorized struct {
	Payload *models.Error
}

UpdateWorkspaceMetadataUnauthorized describes a response with status code 401, with default header values.

Unauthorized

func NewUpdateWorkspaceMetadataUnauthorized

func NewUpdateWorkspaceMetadataUnauthorized() *UpdateWorkspaceMetadataUnauthorized

NewUpdateWorkspaceMetadataUnauthorized creates a UpdateWorkspaceMetadataUnauthorized with default headers values

func (*UpdateWorkspaceMetadataUnauthorized) Code

Code gets the status code for the update workspace metadata unauthorized response

func (*UpdateWorkspaceMetadataUnauthorized) Error

func (*UpdateWorkspaceMetadataUnauthorized) GetPayload

func (*UpdateWorkspaceMetadataUnauthorized) IsClientError

func (o *UpdateWorkspaceMetadataUnauthorized) IsClientError() bool

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

func (*UpdateWorkspaceMetadataUnauthorized) IsCode

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

func (*UpdateWorkspaceMetadataUnauthorized) IsRedirect

func (o *UpdateWorkspaceMetadataUnauthorized) IsRedirect() bool

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

func (*UpdateWorkspaceMetadataUnauthorized) IsServerError

func (o *UpdateWorkspaceMetadataUnauthorized) IsServerError() bool

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

func (*UpdateWorkspaceMetadataUnauthorized) IsSuccess

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

func (*UpdateWorkspaceMetadataUnauthorized) String

Jump to

Keyboard shortcuts

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