Documentation ¶
Index ¶
- type Client
- func (a *Client) DeleteWorkspace(params *DeleteWorkspaceParams, opts ...ClientOption) (*DeleteWorkspaceOK, error)
- func (a *Client) PutWorkspace(params *PutWorkspaceParams, opts ...ClientOption) (*PutWorkspaceOK, error)
- func (a *Client) SearchWorkspaces(params *SearchWorkspacesParams, opts ...ClientOption) (*SearchWorkspacesOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientOption
- type ClientService
- type DeleteWorkspaceForbidden
- type DeleteWorkspaceInternalServerError
- type DeleteWorkspaceNotFound
- type DeleteWorkspaceOK
- type DeleteWorkspaceParams
- func NewDeleteWorkspaceParams() *DeleteWorkspaceParams
- func NewDeleteWorkspaceParamsWithContext(ctx context.Context) *DeleteWorkspaceParams
- func NewDeleteWorkspaceParamsWithHTTPClient(client *http.Client) *DeleteWorkspaceParams
- func NewDeleteWorkspaceParamsWithTimeout(timeout time.Duration) *DeleteWorkspaceParams
- func (o *DeleteWorkspaceParams) SetContext(ctx context.Context)
- func (o *DeleteWorkspaceParams) SetDefaults()
- func (o *DeleteWorkspaceParams) SetHTTPClient(client *http.Client)
- func (o *DeleteWorkspaceParams) SetSlug(slug string)
- func (o *DeleteWorkspaceParams) SetTimeout(timeout time.Duration)
- func (o *DeleteWorkspaceParams) WithContext(ctx context.Context) *DeleteWorkspaceParams
- func (o *DeleteWorkspaceParams) WithDefaults() *DeleteWorkspaceParams
- func (o *DeleteWorkspaceParams) WithHTTPClient(client *http.Client) *DeleteWorkspaceParams
- func (o *DeleteWorkspaceParams) WithSlug(slug string) *DeleteWorkspaceParams
- func (o *DeleteWorkspaceParams) WithTimeout(timeout time.Duration) *DeleteWorkspaceParams
- func (o *DeleteWorkspaceParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DeleteWorkspaceReader
- type DeleteWorkspaceUnauthorized
- type PutWorkspaceForbidden
- type PutWorkspaceInternalServerError
- type PutWorkspaceNotFound
- type PutWorkspaceOK
- type PutWorkspaceParams
- func (o *PutWorkspaceParams) SetBody(body *models.IdmWorkspace)
- func (o *PutWorkspaceParams) SetContext(ctx context.Context)
- func (o *PutWorkspaceParams) SetDefaults()
- func (o *PutWorkspaceParams) SetHTTPClient(client *http.Client)
- func (o *PutWorkspaceParams) SetSlug(slug string)
- func (o *PutWorkspaceParams) SetTimeout(timeout time.Duration)
- func (o *PutWorkspaceParams) WithBody(body *models.IdmWorkspace) *PutWorkspaceParams
- func (o *PutWorkspaceParams) WithContext(ctx context.Context) *PutWorkspaceParams
- func (o *PutWorkspaceParams) WithDefaults() *PutWorkspaceParams
- func (o *PutWorkspaceParams) WithHTTPClient(client *http.Client) *PutWorkspaceParams
- func (o *PutWorkspaceParams) WithSlug(slug string) *PutWorkspaceParams
- func (o *PutWorkspaceParams) WithTimeout(timeout time.Duration) *PutWorkspaceParams
- func (o *PutWorkspaceParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type PutWorkspaceReader
- type PutWorkspaceUnauthorized
- type SearchWorkspacesForbidden
- type SearchWorkspacesInternalServerError
- type SearchWorkspacesNotFound
- type SearchWorkspacesOK
- type SearchWorkspacesParams
- func NewSearchWorkspacesParams() *SearchWorkspacesParams
- func NewSearchWorkspacesParamsWithContext(ctx context.Context) *SearchWorkspacesParams
- func NewSearchWorkspacesParamsWithHTTPClient(client *http.Client) *SearchWorkspacesParams
- func NewSearchWorkspacesParamsWithTimeout(timeout time.Duration) *SearchWorkspacesParams
- func (o *SearchWorkspacesParams) SetBody(body *models.RestSearchWorkspaceRequest)
- func (o *SearchWorkspacesParams) SetContext(ctx context.Context)
- func (o *SearchWorkspacesParams) SetDefaults()
- func (o *SearchWorkspacesParams) SetHTTPClient(client *http.Client)
- func (o *SearchWorkspacesParams) SetTimeout(timeout time.Duration)
- func (o *SearchWorkspacesParams) WithBody(body *models.RestSearchWorkspaceRequest) *SearchWorkspacesParams
- func (o *SearchWorkspacesParams) WithContext(ctx context.Context) *SearchWorkspacesParams
- func (o *SearchWorkspacesParams) WithDefaults() *SearchWorkspacesParams
- func (o *SearchWorkspacesParams) WithHTTPClient(client *http.Client) *SearchWorkspacesParams
- func (o *SearchWorkspacesParams) WithTimeout(timeout time.Duration) *SearchWorkspacesParams
- func (o *SearchWorkspacesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type SearchWorkspacesReader
- type SearchWorkspacesUnauthorized
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 ¶
DeleteWorkspaceForbidden describes a response with status code 403, with default header values.
User has no permission to access this resource
func NewDeleteWorkspaceForbidden ¶
func NewDeleteWorkspaceForbidden() *DeleteWorkspaceForbidden
NewDeleteWorkspaceForbidden creates a DeleteWorkspaceForbidden with default headers values
func (*DeleteWorkspaceForbidden) Error ¶
func (o *DeleteWorkspaceForbidden) Error() string
func (*DeleteWorkspaceForbidden) GetPayload ¶
func (o *DeleteWorkspaceForbidden) GetPayload() *models.RestError
type DeleteWorkspaceInternalServerError ¶
DeleteWorkspaceInternalServerError describes a response with status code 500, with default header values.
An internal error occurred in the backend
func NewDeleteWorkspaceInternalServerError ¶
func NewDeleteWorkspaceInternalServerError() *DeleteWorkspaceInternalServerError
NewDeleteWorkspaceInternalServerError creates a DeleteWorkspaceInternalServerError with default headers values
func (*DeleteWorkspaceInternalServerError) Error ¶
func (o *DeleteWorkspaceInternalServerError) Error() string
func (*DeleteWorkspaceInternalServerError) GetPayload ¶
func (o *DeleteWorkspaceInternalServerError) GetPayload() *models.RestError
type DeleteWorkspaceNotFound ¶
DeleteWorkspaceNotFound describes a response with status code 404, with default header values.
Resource does not exist in the system
func NewDeleteWorkspaceNotFound ¶
func NewDeleteWorkspaceNotFound() *DeleteWorkspaceNotFound
NewDeleteWorkspaceNotFound creates a DeleteWorkspaceNotFound with default headers values
func (*DeleteWorkspaceNotFound) Error ¶
func (o *DeleteWorkspaceNotFound) Error() string
func (*DeleteWorkspaceNotFound) GetPayload ¶
func (o *DeleteWorkspaceNotFound) GetPayload() *models.RestError
type DeleteWorkspaceOK ¶
type DeleteWorkspaceOK struct {
Payload *models.RestDeleteResponse
}
DeleteWorkspaceOK describes a response with status code 200, with default header values.
DeleteWorkspaceOK delete workspace o k
func NewDeleteWorkspaceOK ¶
func NewDeleteWorkspaceOK() *DeleteWorkspaceOK
NewDeleteWorkspaceOK creates a DeleteWorkspaceOK with default headers values
func (*DeleteWorkspaceOK) Error ¶
func (o *DeleteWorkspaceOK) Error() string
func (*DeleteWorkspaceOK) GetPayload ¶
func (o *DeleteWorkspaceOK) GetPayload() *models.RestDeleteResponse
type DeleteWorkspaceParams ¶
type DeleteWorkspaceParams struct { // Slug. Slug string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
DeleteWorkspaceParams contains all the parameters to send to the API endpoint
for the delete workspace operation. Typically these are written to a http.Request.
func NewDeleteWorkspaceParams ¶
func NewDeleteWorkspaceParams() *DeleteWorkspaceParams
NewDeleteWorkspaceParams creates a new DeleteWorkspaceParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewDeleteWorkspaceParamsWithContext ¶
func NewDeleteWorkspaceParamsWithContext(ctx context.Context) *DeleteWorkspaceParams
NewDeleteWorkspaceParamsWithContext creates a new DeleteWorkspaceParams object with the ability to set a context for a request.
func NewDeleteWorkspaceParamsWithHTTPClient ¶
func NewDeleteWorkspaceParamsWithHTTPClient(client *http.Client) *DeleteWorkspaceParams
NewDeleteWorkspaceParamsWithHTTPClient creates a new DeleteWorkspaceParams object with the ability to set a custom HTTPClient for a request.
func NewDeleteWorkspaceParamsWithTimeout ¶
func NewDeleteWorkspaceParamsWithTimeout(timeout time.Duration) *DeleteWorkspaceParams
NewDeleteWorkspaceParamsWithTimeout creates a new DeleteWorkspaceParams object with the ability to set a timeout on a request.
func (*DeleteWorkspaceParams) SetContext ¶
func (o *DeleteWorkspaceParams) SetContext(ctx context.Context)
SetContext adds the context to the delete workspace params
func (*DeleteWorkspaceParams) SetDefaults ¶
func (o *DeleteWorkspaceParams) SetDefaults()
SetDefaults hydrates default values in the delete workspace params (not the query body).
All values with no default are reset to their zero value.
func (*DeleteWorkspaceParams) SetHTTPClient ¶
func (o *DeleteWorkspaceParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the delete workspace params
func (*DeleteWorkspaceParams) SetSlug ¶
func (o *DeleteWorkspaceParams) SetSlug(slug string)
SetSlug adds the slug to the delete workspace params
func (*DeleteWorkspaceParams) SetTimeout ¶
func (o *DeleteWorkspaceParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the delete workspace params
func (*DeleteWorkspaceParams) WithContext ¶
func (o *DeleteWorkspaceParams) WithContext(ctx context.Context) *DeleteWorkspaceParams
WithContext adds the context to the delete workspace params
func (*DeleteWorkspaceParams) WithDefaults ¶
func (o *DeleteWorkspaceParams) WithDefaults() *DeleteWorkspaceParams
WithDefaults hydrates default values in the delete workspace params (not the query body).
All values with no default are reset to their zero value.
func (*DeleteWorkspaceParams) WithHTTPClient ¶
func (o *DeleteWorkspaceParams) WithHTTPClient(client *http.Client) *DeleteWorkspaceParams
WithHTTPClient adds the HTTPClient to the delete workspace params
func (*DeleteWorkspaceParams) WithSlug ¶
func (o *DeleteWorkspaceParams) WithSlug(slug string) *DeleteWorkspaceParams
WithSlug adds the slug to the delete workspace params
func (*DeleteWorkspaceParams) WithTimeout ¶
func (o *DeleteWorkspaceParams) WithTimeout(timeout time.Duration) *DeleteWorkspaceParams
WithTimeout adds the timeout to the delete workspace params
func (*DeleteWorkspaceParams) WriteToRequest ¶
func (o *DeleteWorkspaceParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type DeleteWorkspaceReader ¶
type DeleteWorkspaceReader struct {
// contains filtered or unexported fields
}
DeleteWorkspaceReader is a Reader for the DeleteWorkspace structure.
func (*DeleteWorkspaceReader) ReadResponse ¶
func (o *DeleteWorkspaceReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type DeleteWorkspaceUnauthorized ¶
type DeleteWorkspaceUnauthorized struct { }
DeleteWorkspaceUnauthorized describes a response with status code 401, with default header values.
User is not authenticated
func NewDeleteWorkspaceUnauthorized ¶
func NewDeleteWorkspaceUnauthorized() *DeleteWorkspaceUnauthorized
NewDeleteWorkspaceUnauthorized creates a DeleteWorkspaceUnauthorized with default headers values
func (*DeleteWorkspaceUnauthorized) Error ¶
func (o *DeleteWorkspaceUnauthorized) Error() string
type PutWorkspaceForbidden ¶
PutWorkspaceForbidden describes a response with status code 403, with default header values.
User has no permission to access this resource
func NewPutWorkspaceForbidden ¶
func NewPutWorkspaceForbidden() *PutWorkspaceForbidden
NewPutWorkspaceForbidden creates a PutWorkspaceForbidden with default headers values
func (*PutWorkspaceForbidden) Error ¶
func (o *PutWorkspaceForbidden) Error() string
func (*PutWorkspaceForbidden) GetPayload ¶
func (o *PutWorkspaceForbidden) GetPayload() *models.RestError
type PutWorkspaceInternalServerError ¶
PutWorkspaceInternalServerError describes a response with status code 500, with default header values.
An internal error occurred in the backend
func NewPutWorkspaceInternalServerError ¶
func NewPutWorkspaceInternalServerError() *PutWorkspaceInternalServerError
NewPutWorkspaceInternalServerError creates a PutWorkspaceInternalServerError with default headers values
func (*PutWorkspaceInternalServerError) Error ¶
func (o *PutWorkspaceInternalServerError) Error() string
func (*PutWorkspaceInternalServerError) GetPayload ¶
func (o *PutWorkspaceInternalServerError) GetPayload() *models.RestError
type PutWorkspaceNotFound ¶
PutWorkspaceNotFound describes a response with status code 404, with default header values.
Resource does not exist in the system
func NewPutWorkspaceNotFound ¶
func NewPutWorkspaceNotFound() *PutWorkspaceNotFound
NewPutWorkspaceNotFound creates a PutWorkspaceNotFound with default headers values
func (*PutWorkspaceNotFound) Error ¶
func (o *PutWorkspaceNotFound) Error() string
func (*PutWorkspaceNotFound) GetPayload ¶
func (o *PutWorkspaceNotFound) GetPayload() *models.RestError
type PutWorkspaceOK ¶
type PutWorkspaceOK struct {
Payload *models.IdmWorkspace
}
PutWorkspaceOK describes a response with status code 200, with default header values.
PutWorkspaceOK put workspace o k
func NewPutWorkspaceOK ¶
func NewPutWorkspaceOK() *PutWorkspaceOK
NewPutWorkspaceOK creates a PutWorkspaceOK with default headers values
func (*PutWorkspaceOK) Error ¶
func (o *PutWorkspaceOK) Error() string
func (*PutWorkspaceOK) GetPayload ¶
func (o *PutWorkspaceOK) GetPayload() *models.IdmWorkspace
type PutWorkspaceParams ¶
type PutWorkspaceParams struct { // Slug. Slug string // Body. Body *models.IdmWorkspace Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
PutWorkspaceParams contains all the parameters to send to the API endpoint
for the put workspace operation. Typically these are written to a http.Request.
func NewPutWorkspaceParams ¶
func NewPutWorkspaceParams() *PutWorkspaceParams
NewPutWorkspaceParams creates a new PutWorkspaceParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewPutWorkspaceParamsWithContext ¶
func NewPutWorkspaceParamsWithContext(ctx context.Context) *PutWorkspaceParams
NewPutWorkspaceParamsWithContext creates a new PutWorkspaceParams object with the ability to set a context for a request.
func NewPutWorkspaceParamsWithHTTPClient ¶
func NewPutWorkspaceParamsWithHTTPClient(client *http.Client) *PutWorkspaceParams
NewPutWorkspaceParamsWithHTTPClient creates a new PutWorkspaceParams object with the ability to set a custom HTTPClient for a request.
func NewPutWorkspaceParamsWithTimeout ¶
func NewPutWorkspaceParamsWithTimeout(timeout time.Duration) *PutWorkspaceParams
NewPutWorkspaceParamsWithTimeout creates a new PutWorkspaceParams object with the ability to set a timeout on a request.
func (*PutWorkspaceParams) SetBody ¶
func (o *PutWorkspaceParams) SetBody(body *models.IdmWorkspace)
SetBody adds the body to the put workspace params
func (*PutWorkspaceParams) SetContext ¶
func (o *PutWorkspaceParams) SetContext(ctx context.Context)
SetContext adds the context to the put workspace params
func (*PutWorkspaceParams) SetDefaults ¶
func (o *PutWorkspaceParams) SetDefaults()
SetDefaults hydrates default values in the put workspace params (not the query body).
All values with no default are reset to their zero value.
func (*PutWorkspaceParams) SetHTTPClient ¶
func (o *PutWorkspaceParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the put workspace params
func (*PutWorkspaceParams) SetSlug ¶
func (o *PutWorkspaceParams) SetSlug(slug string)
SetSlug adds the slug to the put workspace params
func (*PutWorkspaceParams) SetTimeout ¶
func (o *PutWorkspaceParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the put workspace params
func (*PutWorkspaceParams) WithBody ¶
func (o *PutWorkspaceParams) WithBody(body *models.IdmWorkspace) *PutWorkspaceParams
WithBody adds the body to the put workspace params
func (*PutWorkspaceParams) WithContext ¶
func (o *PutWorkspaceParams) WithContext(ctx context.Context) *PutWorkspaceParams
WithContext adds the context to the put workspace params
func (*PutWorkspaceParams) WithDefaults ¶
func (o *PutWorkspaceParams) WithDefaults() *PutWorkspaceParams
WithDefaults hydrates default values in the put workspace params (not the query body).
All values with no default are reset to their zero value.
func (*PutWorkspaceParams) WithHTTPClient ¶
func (o *PutWorkspaceParams) WithHTTPClient(client *http.Client) *PutWorkspaceParams
WithHTTPClient adds the HTTPClient to the put workspace params
func (*PutWorkspaceParams) WithSlug ¶
func (o *PutWorkspaceParams) WithSlug(slug string) *PutWorkspaceParams
WithSlug adds the slug to the put workspace params
func (*PutWorkspaceParams) WithTimeout ¶
func (o *PutWorkspaceParams) WithTimeout(timeout time.Duration) *PutWorkspaceParams
WithTimeout adds the timeout to the put workspace params
func (*PutWorkspaceParams) WriteToRequest ¶
func (o *PutWorkspaceParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type PutWorkspaceReader ¶
type PutWorkspaceReader struct {
// contains filtered or unexported fields
}
PutWorkspaceReader is a Reader for the PutWorkspace structure.
func (*PutWorkspaceReader) ReadResponse ¶
func (o *PutWorkspaceReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type PutWorkspaceUnauthorized ¶
type PutWorkspaceUnauthorized struct { }
PutWorkspaceUnauthorized describes a response with status code 401, with default header values.
User is not authenticated
func NewPutWorkspaceUnauthorized ¶
func NewPutWorkspaceUnauthorized() *PutWorkspaceUnauthorized
NewPutWorkspaceUnauthorized creates a PutWorkspaceUnauthorized with default headers values
func (*PutWorkspaceUnauthorized) Error ¶
func (o *PutWorkspaceUnauthorized) Error() string
type SearchWorkspacesForbidden ¶
SearchWorkspacesForbidden describes a response with status code 403, with default header values.
User has no permission to access this resource
func NewSearchWorkspacesForbidden ¶
func NewSearchWorkspacesForbidden() *SearchWorkspacesForbidden
NewSearchWorkspacesForbidden creates a SearchWorkspacesForbidden with default headers values
func (*SearchWorkspacesForbidden) Error ¶
func (o *SearchWorkspacesForbidden) Error() string
func (*SearchWorkspacesForbidden) GetPayload ¶
func (o *SearchWorkspacesForbidden) GetPayload() *models.RestError
type SearchWorkspacesInternalServerError ¶
SearchWorkspacesInternalServerError describes a response with status code 500, with default header values.
An internal error occurred in the backend
func NewSearchWorkspacesInternalServerError ¶
func NewSearchWorkspacesInternalServerError() *SearchWorkspacesInternalServerError
NewSearchWorkspacesInternalServerError creates a SearchWorkspacesInternalServerError with default headers values
func (*SearchWorkspacesInternalServerError) Error ¶
func (o *SearchWorkspacesInternalServerError) Error() string
func (*SearchWorkspacesInternalServerError) GetPayload ¶
func (o *SearchWorkspacesInternalServerError) GetPayload() *models.RestError
type SearchWorkspacesNotFound ¶
SearchWorkspacesNotFound describes a response with status code 404, with default header values.
Resource does not exist in the system
func NewSearchWorkspacesNotFound ¶
func NewSearchWorkspacesNotFound() *SearchWorkspacesNotFound
NewSearchWorkspacesNotFound creates a SearchWorkspacesNotFound with default headers values
func (*SearchWorkspacesNotFound) Error ¶
func (o *SearchWorkspacesNotFound) Error() string
func (*SearchWorkspacesNotFound) GetPayload ¶
func (o *SearchWorkspacesNotFound) GetPayload() *models.RestError
type SearchWorkspacesOK ¶
type SearchWorkspacesOK struct {
Payload *models.RestWorkspaceCollection
}
SearchWorkspacesOK describes a response with status code 200, with default header values.
SearchWorkspacesOK search workspaces o k
func NewSearchWorkspacesOK ¶
func NewSearchWorkspacesOK() *SearchWorkspacesOK
NewSearchWorkspacesOK creates a SearchWorkspacesOK with default headers values
func (*SearchWorkspacesOK) Error ¶
func (o *SearchWorkspacesOK) Error() string
func (*SearchWorkspacesOK) GetPayload ¶
func (o *SearchWorkspacesOK) GetPayload() *models.RestWorkspaceCollection
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 ¶
func (o *SearchWorkspacesParams) SetBody(body *models.RestSearchWorkspaceRequest)
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 ¶
func (o *SearchWorkspacesParams) WithBody(body *models.RestSearchWorkspaceRequest) *SearchWorkspacesParams
WithBody adds the body to the search workspaces params
func (*SearchWorkspacesParams) WithContext ¶
func (o *SearchWorkspacesParams) WithContext(ctx context.Context) *SearchWorkspacesParams
WithContext adds the context to the search workspaces params
func (*SearchWorkspacesParams) WithDefaults ¶
func (o *SearchWorkspacesParams) WithDefaults() *SearchWorkspacesParams
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 ¶
func (o *SearchWorkspacesParams) WithTimeout(timeout time.Duration) *SearchWorkspacesParams
WithTimeout adds the timeout to the search workspaces params
func (*SearchWorkspacesParams) WriteToRequest ¶
func (o *SearchWorkspacesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type SearchWorkspacesReader ¶
type SearchWorkspacesReader struct {
// contains filtered or unexported fields
}
SearchWorkspacesReader is a Reader for the SearchWorkspaces structure.
func (*SearchWorkspacesReader) ReadResponse ¶
func (o *SearchWorkspacesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type SearchWorkspacesUnauthorized ¶
type SearchWorkspacesUnauthorized struct { }
SearchWorkspacesUnauthorized describes a response with status code 401, with default header values.
User is not authenticated
func NewSearchWorkspacesUnauthorized ¶
func NewSearchWorkspacesUnauthorized() *SearchWorkspacesUnauthorized
NewSearchWorkspacesUnauthorized creates a SearchWorkspacesUnauthorized with default headers values
func (*SearchWorkspacesUnauthorized) Error ¶
func (o *SearchWorkspacesUnauthorized) Error() string