workspaces

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client for workspaces API

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) V1WorkspacesGet

func (a *Client) V1WorkspacesGet(params *V1WorkspacesGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*V1WorkspacesGetOK, error)

V1WorkspacesGet gets a workspace s information and capabilities

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	V1WorkspacesGet(params *V1WorkspacesGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*V1WorkspacesGetOK, 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 V1WorkspacesGetBadRequest

type V1WorkspacesGetBadRequest struct {
	Payload *models.Error
}

V1WorkspacesGetBadRequest describes a response with status code 400, with default header values.

Bad Request

func NewV1WorkspacesGetBadRequest

func NewV1WorkspacesGetBadRequest() *V1WorkspacesGetBadRequest

NewV1WorkspacesGetBadRequest creates a V1WorkspacesGetBadRequest with default headers values

func (*V1WorkspacesGetBadRequest) Code

func (o *V1WorkspacesGetBadRequest) Code() int

Code gets the status code for the v1 workspaces get bad request response

func (*V1WorkspacesGetBadRequest) Error

func (o *V1WorkspacesGetBadRequest) Error() string

func (*V1WorkspacesGetBadRequest) GetPayload

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

func (*V1WorkspacesGetBadRequest) IsClientError

func (o *V1WorkspacesGetBadRequest) IsClientError() bool

IsClientError returns true when this v1 workspaces get bad request response has a 4xx status code

func (*V1WorkspacesGetBadRequest) IsCode

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

IsCode returns true when this v1 workspaces get bad request response a status code equal to that given

func (*V1WorkspacesGetBadRequest) IsRedirect

func (o *V1WorkspacesGetBadRequest) IsRedirect() bool

IsRedirect returns true when this v1 workspaces get bad request response has a 3xx status code

func (*V1WorkspacesGetBadRequest) IsServerError

func (o *V1WorkspacesGetBadRequest) IsServerError() bool

IsServerError returns true when this v1 workspaces get bad request response has a 5xx status code

func (*V1WorkspacesGetBadRequest) IsSuccess

func (o *V1WorkspacesGetBadRequest) IsSuccess() bool

IsSuccess returns true when this v1 workspaces get bad request response has a 2xx status code

func (*V1WorkspacesGetBadRequest) String

func (o *V1WorkspacesGetBadRequest) String() string

type V1WorkspacesGetForbidden

type V1WorkspacesGetForbidden struct {
	Payload *models.Error
}

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

Forbidden

func NewV1WorkspacesGetForbidden

func NewV1WorkspacesGetForbidden() *V1WorkspacesGetForbidden

NewV1WorkspacesGetForbidden creates a V1WorkspacesGetForbidden with default headers values

func (*V1WorkspacesGetForbidden) Code

func (o *V1WorkspacesGetForbidden) Code() int

Code gets the status code for the v1 workspaces get forbidden response

func (*V1WorkspacesGetForbidden) Error

func (o *V1WorkspacesGetForbidden) Error() string

func (*V1WorkspacesGetForbidden) GetPayload

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

func (*V1WorkspacesGetForbidden) IsClientError

func (o *V1WorkspacesGetForbidden) IsClientError() bool

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

func (*V1WorkspacesGetForbidden) IsCode

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

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

func (*V1WorkspacesGetForbidden) IsRedirect

func (o *V1WorkspacesGetForbidden) IsRedirect() bool

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

func (*V1WorkspacesGetForbidden) IsServerError

func (o *V1WorkspacesGetForbidden) IsServerError() bool

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

func (*V1WorkspacesGetForbidden) IsSuccess

func (o *V1WorkspacesGetForbidden) IsSuccess() bool

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

func (*V1WorkspacesGetForbidden) String

func (o *V1WorkspacesGetForbidden) String() string

type V1WorkspacesGetInternalServerError

type V1WorkspacesGetInternalServerError struct {
	Payload *models.Error
}

V1WorkspacesGetInternalServerError describes a response with status code 500, with default header values.

Internal Server Error

func NewV1WorkspacesGetInternalServerError

func NewV1WorkspacesGetInternalServerError() *V1WorkspacesGetInternalServerError

NewV1WorkspacesGetInternalServerError creates a V1WorkspacesGetInternalServerError with default headers values

func (*V1WorkspacesGetInternalServerError) Code

Code gets the status code for the v1 workspaces get internal server error response

func (*V1WorkspacesGetInternalServerError) Error

func (*V1WorkspacesGetInternalServerError) GetPayload

func (*V1WorkspacesGetInternalServerError) IsClientError

func (o *V1WorkspacesGetInternalServerError) IsClientError() bool

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

func (*V1WorkspacesGetInternalServerError) IsCode

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

func (*V1WorkspacesGetInternalServerError) IsRedirect

func (o *V1WorkspacesGetInternalServerError) IsRedirect() bool

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

func (*V1WorkspacesGetInternalServerError) IsServerError

func (o *V1WorkspacesGetInternalServerError) IsServerError() bool

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

func (*V1WorkspacesGetInternalServerError) IsSuccess

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

func (*V1WorkspacesGetInternalServerError) String

type V1WorkspacesGetNotFound

type V1WorkspacesGetNotFound struct {
	Payload *models.Error
}

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

Not Found

func NewV1WorkspacesGetNotFound

func NewV1WorkspacesGetNotFound() *V1WorkspacesGetNotFound

NewV1WorkspacesGetNotFound creates a V1WorkspacesGetNotFound with default headers values

func (*V1WorkspacesGetNotFound) Code

func (o *V1WorkspacesGetNotFound) Code() int

Code gets the status code for the v1 workspaces get not found response

func (*V1WorkspacesGetNotFound) Error

func (o *V1WorkspacesGetNotFound) Error() string

func (*V1WorkspacesGetNotFound) GetPayload

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

func (*V1WorkspacesGetNotFound) IsClientError

func (o *V1WorkspacesGetNotFound) IsClientError() bool

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

func (*V1WorkspacesGetNotFound) IsCode

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

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

func (*V1WorkspacesGetNotFound) IsRedirect

func (o *V1WorkspacesGetNotFound) IsRedirect() bool

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

func (*V1WorkspacesGetNotFound) IsServerError

func (o *V1WorkspacesGetNotFound) IsServerError() bool

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

func (*V1WorkspacesGetNotFound) IsSuccess

func (o *V1WorkspacesGetNotFound) IsSuccess() bool

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

func (*V1WorkspacesGetNotFound) String

func (o *V1WorkspacesGetNotFound) String() string

type V1WorkspacesGetOK

type V1WorkspacesGetOK struct {
	Payload *models.Workspace
}

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

OK

func NewV1WorkspacesGetOK

func NewV1WorkspacesGetOK() *V1WorkspacesGetOK

NewV1WorkspacesGetOK creates a V1WorkspacesGetOK with default headers values

func (*V1WorkspacesGetOK) Code

func (o *V1WorkspacesGetOK) Code() int

Code gets the status code for the v1 workspaces get o k response

func (*V1WorkspacesGetOK) Error

func (o *V1WorkspacesGetOK) Error() string

func (*V1WorkspacesGetOK) GetPayload

func (o *V1WorkspacesGetOK) GetPayload() *models.Workspace

func (*V1WorkspacesGetOK) IsClientError

func (o *V1WorkspacesGetOK) IsClientError() bool

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

func (*V1WorkspacesGetOK) IsCode

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

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

func (*V1WorkspacesGetOK) IsRedirect

func (o *V1WorkspacesGetOK) IsRedirect() bool

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

func (*V1WorkspacesGetOK) IsServerError

func (o *V1WorkspacesGetOK) IsServerError() bool

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

func (*V1WorkspacesGetOK) IsSuccess

func (o *V1WorkspacesGetOK) IsSuccess() bool

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

func (*V1WorkspacesGetOK) String

func (o *V1WorkspacesGetOK) String() string

type V1WorkspacesGetParams

type V1WorkspacesGetParams struct {

	/* WorkspaceID.

	   Workspace ID
	*/
	WorkspaceID string

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

V1WorkspacesGetParams contains all the parameters to send to the API endpoint

for the v1 workspaces get operation.

Typically these are written to a http.Request.

func NewV1WorkspacesGetParams

func NewV1WorkspacesGetParams() *V1WorkspacesGetParams

NewV1WorkspacesGetParams creates a new V1WorkspacesGetParams 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 NewV1WorkspacesGetParamsWithContext

func NewV1WorkspacesGetParamsWithContext(ctx context.Context) *V1WorkspacesGetParams

NewV1WorkspacesGetParamsWithContext creates a new V1WorkspacesGetParams object with the ability to set a context for a request.

func NewV1WorkspacesGetParamsWithHTTPClient

func NewV1WorkspacesGetParamsWithHTTPClient(client *http.Client) *V1WorkspacesGetParams

NewV1WorkspacesGetParamsWithHTTPClient creates a new V1WorkspacesGetParams object with the ability to set a custom HTTPClient for a request.

func NewV1WorkspacesGetParamsWithTimeout

func NewV1WorkspacesGetParamsWithTimeout(timeout time.Duration) *V1WorkspacesGetParams

NewV1WorkspacesGetParamsWithTimeout creates a new V1WorkspacesGetParams object with the ability to set a timeout on a request.

func (*V1WorkspacesGetParams) SetContext

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

SetContext adds the context to the v1 workspaces get params

func (*V1WorkspacesGetParams) SetDefaults

func (o *V1WorkspacesGetParams) SetDefaults()

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

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

func (*V1WorkspacesGetParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the v1 workspaces get params

func (*V1WorkspacesGetParams) SetTimeout

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

SetTimeout adds the timeout to the v1 workspaces get params

func (*V1WorkspacesGetParams) SetWorkspaceID

func (o *V1WorkspacesGetParams) SetWorkspaceID(workspaceID string)

SetWorkspaceID adds the workspaceId to the v1 workspaces get params

func (*V1WorkspacesGetParams) WithContext

WithContext adds the context to the v1 workspaces get params

func (*V1WorkspacesGetParams) WithDefaults

func (o *V1WorkspacesGetParams) WithDefaults() *V1WorkspacesGetParams

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

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

func (*V1WorkspacesGetParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the v1 workspaces get params

func (*V1WorkspacesGetParams) WithTimeout

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

WithTimeout adds the timeout to the v1 workspaces get params

func (*V1WorkspacesGetParams) WithWorkspaceID

func (o *V1WorkspacesGetParams) WithWorkspaceID(workspaceID string) *V1WorkspacesGetParams

WithWorkspaceID adds the workspaceID to the v1 workspaces get params

func (*V1WorkspacesGetParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type V1WorkspacesGetReader

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

V1WorkspacesGetReader is a Reader for the V1WorkspacesGet structure.

func (*V1WorkspacesGetReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type V1WorkspacesGetTooManyRequests

type V1WorkspacesGetTooManyRequests struct {
	Payload *models.Error
}

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

Too Many Requests

func NewV1WorkspacesGetTooManyRequests

func NewV1WorkspacesGetTooManyRequests() *V1WorkspacesGetTooManyRequests

NewV1WorkspacesGetTooManyRequests creates a V1WorkspacesGetTooManyRequests with default headers values

func (*V1WorkspacesGetTooManyRequests) Code

Code gets the status code for the v1 workspaces get too many requests response

func (*V1WorkspacesGetTooManyRequests) Error

func (*V1WorkspacesGetTooManyRequests) GetPayload

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

func (*V1WorkspacesGetTooManyRequests) IsClientError

func (o *V1WorkspacesGetTooManyRequests) IsClientError() bool

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

func (*V1WorkspacesGetTooManyRequests) IsCode

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

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

func (*V1WorkspacesGetTooManyRequests) IsRedirect

func (o *V1WorkspacesGetTooManyRequests) IsRedirect() bool

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

func (*V1WorkspacesGetTooManyRequests) IsServerError

func (o *V1WorkspacesGetTooManyRequests) IsServerError() bool

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

func (*V1WorkspacesGetTooManyRequests) IsSuccess

func (o *V1WorkspacesGetTooManyRequests) IsSuccess() bool

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

func (*V1WorkspacesGetTooManyRequests) String

type V1WorkspacesGetUnauthorized

type V1WorkspacesGetUnauthorized struct {
	Payload *models.Error
}

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

Unauthorized

func NewV1WorkspacesGetUnauthorized

func NewV1WorkspacesGetUnauthorized() *V1WorkspacesGetUnauthorized

NewV1WorkspacesGetUnauthorized creates a V1WorkspacesGetUnauthorized with default headers values

func (*V1WorkspacesGetUnauthorized) Code

func (o *V1WorkspacesGetUnauthorized) Code() int

Code gets the status code for the v1 workspaces get unauthorized response

func (*V1WorkspacesGetUnauthorized) Error

func (*V1WorkspacesGetUnauthorized) GetPayload

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

func (*V1WorkspacesGetUnauthorized) IsClientError

func (o *V1WorkspacesGetUnauthorized) IsClientError() bool

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

func (*V1WorkspacesGetUnauthorized) IsCode

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

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

func (*V1WorkspacesGetUnauthorized) IsRedirect

func (o *V1WorkspacesGetUnauthorized) IsRedirect() bool

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

func (*V1WorkspacesGetUnauthorized) IsServerError

func (o *V1WorkspacesGetUnauthorized) IsServerError() bool

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

func (*V1WorkspacesGetUnauthorized) IsSuccess

func (o *V1WorkspacesGetUnauthorized) IsSuccess() bool

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

func (*V1WorkspacesGetUnauthorized) String

func (o *V1WorkspacesGetUnauthorized) String() string

Jump to

Keyboard shortcuts

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