WorkspacesApi
in package
WorkspacesApi Class Doc Comment
Tags
Table of Contents
Constants
- contentTypes : array<string|int, string> = ['createWorkspace' => ['application/json'], 'de...
Properties
- $client : ClientInterface
- $config : Configuration
- $headerSelector : HeaderSelector
- $hostIndex : int
Methods
- __construct() : mixed
- createWorkspace() : CreateWorkspace200Response|ErrorResponse
- Operation createWorkspace
- createWorkspaceAsync() : PromiseInterface
- Operation createWorkspaceAsync
- createWorkspaceAsyncWithHttpInfo() : PromiseInterface
- Operation createWorkspaceAsyncWithHttpInfo
- createWorkspaceRequest() : Request
- Create request for operation 'createWorkspace'
- createWorkspaceWithHttpInfo() : array<string|int, mixed>
- Operation createWorkspaceWithHttpInfo
- deleteWorkspace() : void
- Operation deleteWorkspace
- deleteWorkspaceAsync() : PromiseInterface
- Operation deleteWorkspaceAsync
- deleteWorkspaceAsyncWithHttpInfo() : PromiseInterface
- Operation deleteWorkspaceAsyncWithHttpInfo
- deleteWorkspaceRequest() : Request
- Create request for operation 'deleteWorkspace'
- deleteWorkspaceWithHttpInfo() : array<string|int, mixed>
- Operation deleteWorkspaceWithHttpInfo
- getConfig() : Configuration
- getHostIndex() : int
- Get the host index
- listWorkspaces() : array<string|int, Workspace>|ErrorResponse
- Operation listWorkspaces
- listWorkspacesAsync() : PromiseInterface
- Operation listWorkspacesAsync
- listWorkspacesAsyncWithHttpInfo() : PromiseInterface
- Operation listWorkspacesAsyncWithHttpInfo
- listWorkspacesRequest() : Request
- Create request for operation 'listWorkspaces'
- listWorkspacesWithHttpInfo() : array<string|int, mixed>
- Operation listWorkspacesWithHttpInfo
- publishWorkspace() : Workspace|ErrorResponse
- Operation publishWorkspace
- publishWorkspaceAsync() : PromiseInterface
- Operation publishWorkspaceAsync
- publishWorkspaceAsyncWithHttpInfo() : PromiseInterface
- Operation publishWorkspaceAsyncWithHttpInfo
- publishWorkspaceRequest() : Request
- Create request for operation 'publishWorkspace'
- publishWorkspaceWithHttpInfo() : array<string|int, mixed>
- Operation publishWorkspaceWithHttpInfo
- setHostIndex() : void
- Set the host index
- updateWorkspace() : void
- Operation updateWorkspace
- updateWorkspaceAsync() : PromiseInterface
- Operation updateWorkspaceAsync
- updateWorkspaceAsyncWithHttpInfo() : PromiseInterface
- Operation updateWorkspaceAsyncWithHttpInfo
- updateWorkspaceRequest() : Request
- Create request for operation 'updateWorkspace'
- updateWorkspaceWithHttpInfo() : array<string|int, mixed>
- Operation updateWorkspaceWithHttpInfo
- createHttpClientOption() : array<string|int, mixed>
- Create http client option
- handleResponseWithDataType() : array<string|int, mixed>
- responseWithinRangeCode() : bool
Constants
contentTypes
public
array<string|int, string>
contentTypes
= ['createWorkspace' => ['application/json'], 'deleteWorkspace' => ['application/json'], 'listWorkspaces' => ['application/json'], 'publishWorkspace' => ['application/json'], 'updateWorkspace' => ['application/json']]
Properties
$client
protected
ClientInterface
$client
$config
protected
Configuration
$config
$headerSelector
protected
HeaderSelector
$headerSelector
$hostIndex
protected
int
$hostIndex
Host index
Methods
__construct()
public
__construct([ClientInterface $client = null ][, Configuration $config = null ][, HeaderSelector $selector = null ][, int $hostIndex = 0 ]) : mixed
Parameters
- $client : ClientInterface = null
- $config : Configuration = null
- $selector : HeaderSelector = null
- $hostIndex : int = 0
-
(Optional) host index to select the list of hosts if defined in the OpenAPI spec
createWorkspace()
Operation createWorkspace
public
createWorkspace(CreateWorkspaceRequest $create_workspace_request[, string $contentType = self::contentTypes['createWorkspace'][0] ]) : CreateWorkspace200Response|ErrorResponse
Create a workspace
Parameters
- $create_workspace_request : CreateWorkspaceRequest
-
create_workspace_request (required)
- $contentType : string = self::contentTypes['createWorkspace'][0]
-
The value for the Content-Type header. Check self::contentTypes['createWorkspace'] to see the possible values for this operation
Tags
Return values
CreateWorkspace200Response|ErrorResponsecreateWorkspaceAsync()
Operation createWorkspaceAsync
public
createWorkspaceAsync(CreateWorkspaceRequest $create_workspace_request[, string $contentType = self::contentTypes['createWorkspace'][0] ]) : PromiseInterface
Create a workspace
Parameters
- $create_workspace_request : CreateWorkspaceRequest
-
(required)
- $contentType : string = self::contentTypes['createWorkspace'][0]
-
The value for the Content-Type header. Check self::contentTypes['createWorkspace'] to see the possible values for this operation
Tags
Return values
PromiseInterfacecreateWorkspaceAsyncWithHttpInfo()
Operation createWorkspaceAsyncWithHttpInfo
public
createWorkspaceAsyncWithHttpInfo(CreateWorkspaceRequest $create_workspace_request[, string $contentType = self::contentTypes['createWorkspace'][0] ]) : PromiseInterface
Create a workspace
Parameters
- $create_workspace_request : CreateWorkspaceRequest
-
(required)
- $contentType : string = self::contentTypes['createWorkspace'][0]
-
The value for the Content-Type header. Check self::contentTypes['createWorkspace'] to see the possible values for this operation
Tags
Return values
PromiseInterfacecreateWorkspaceRequest()
Create request for operation 'createWorkspace'
public
createWorkspaceRequest(CreateWorkspaceRequest $create_workspace_request[, string $contentType = self::contentTypes['createWorkspace'][0] ]) : Request
Parameters
- $create_workspace_request : CreateWorkspaceRequest
-
(required)
- $contentType : string = self::contentTypes['createWorkspace'][0]
-
The value for the Content-Type header. Check self::contentTypes['createWorkspace'] to see the possible values for this operation
Tags
Return values
RequestcreateWorkspaceWithHttpInfo()
Operation createWorkspaceWithHttpInfo
public
createWorkspaceWithHttpInfo(CreateWorkspaceRequest $create_workspace_request[, string $contentType = self::contentTypes['createWorkspace'][0] ]) : array<string|int, mixed>
Create a workspace
Parameters
- $create_workspace_request : CreateWorkspaceRequest
-
(required)
- $contentType : string = self::contentTypes['createWorkspace'][0]
-
The value for the Content-Type header. Check self::contentTypes['createWorkspace'] to see the possible values for this operation
Tags
Return values
array<string|int, mixed> —of \BIMworks\Model\CreateWorkspace200Response|\BIMworks\Model\ErrorResponse|\BIMworks\Model\ErrorResponse|\BIMworks\Model\ErrorResponse|\BIMworks\Model\ErrorResponse|\BIMworks\Model\ErrorResponse|\BIMworks\Model\ErrorResponse|\BIMworks\Model\ErrorResponse|\BIMworks\Model\ErrorResponse, HTTP status code, HTTP response headers (array of strings)
deleteWorkspace()
Operation deleteWorkspace
public
deleteWorkspace(DeleteWorkspaceRequest $delete_workspace_request[, string $contentType = self::contentTypes['deleteWorkspace'][0] ]) : void
Delete a workspace
Parameters
- $delete_workspace_request : DeleteWorkspaceRequest
-
delete_workspace_request (required)
- $contentType : string = self::contentTypes['deleteWorkspace'][0]
-
The value for the Content-Type header. Check self::contentTypes['deleteWorkspace'] to see the possible values for this operation
Tags
deleteWorkspaceAsync()
Operation deleteWorkspaceAsync
public
deleteWorkspaceAsync(DeleteWorkspaceRequest $delete_workspace_request[, string $contentType = self::contentTypes['deleteWorkspace'][0] ]) : PromiseInterface
Delete a workspace
Parameters
- $delete_workspace_request : DeleteWorkspaceRequest
-
(required)
- $contentType : string = self::contentTypes['deleteWorkspace'][0]
-
The value for the Content-Type header. Check self::contentTypes['deleteWorkspace'] to see the possible values for this operation
Tags
Return values
PromiseInterfacedeleteWorkspaceAsyncWithHttpInfo()
Operation deleteWorkspaceAsyncWithHttpInfo
public
deleteWorkspaceAsyncWithHttpInfo(DeleteWorkspaceRequest $delete_workspace_request[, string $contentType = self::contentTypes['deleteWorkspace'][0] ]) : PromiseInterface
Delete a workspace
Parameters
- $delete_workspace_request : DeleteWorkspaceRequest
-
(required)
- $contentType : string = self::contentTypes['deleteWorkspace'][0]
-
The value for the Content-Type header. Check self::contentTypes['deleteWorkspace'] to see the possible values for this operation
Tags
Return values
PromiseInterfacedeleteWorkspaceRequest()
Create request for operation 'deleteWorkspace'
public
deleteWorkspaceRequest(DeleteWorkspaceRequest $delete_workspace_request[, string $contentType = self::contentTypes['deleteWorkspace'][0] ]) : Request
Parameters
- $delete_workspace_request : DeleteWorkspaceRequest
-
(required)
- $contentType : string = self::contentTypes['deleteWorkspace'][0]
-
The value for the Content-Type header. Check self::contentTypes['deleteWorkspace'] to see the possible values for this operation
Tags
Return values
RequestdeleteWorkspaceWithHttpInfo()
Operation deleteWorkspaceWithHttpInfo
public
deleteWorkspaceWithHttpInfo(DeleteWorkspaceRequest $delete_workspace_request[, string $contentType = self::contentTypes['deleteWorkspace'][0] ]) : array<string|int, mixed>
Delete a workspace
Parameters
- $delete_workspace_request : DeleteWorkspaceRequest
-
(required)
- $contentType : string = self::contentTypes['deleteWorkspace'][0]
-
The value for the Content-Type header. Check self::contentTypes['deleteWorkspace'] to see the possible values for this operation
Tags
Return values
array<string|int, mixed> —of null, HTTP status code, HTTP response headers (array of strings)
getConfig()
public
getConfig() : Configuration
Return values
ConfigurationgetHostIndex()
Get the host index
public
getHostIndex() : int
Return values
int —Host index
listWorkspaces()
Operation listWorkspaces
public
listWorkspaces([string $contentType = self::contentTypes['listWorkspaces'][0] ]) : array<string|int, Workspace>|ErrorResponse
List the caller's workspaces
Parameters
- $contentType : string = self::contentTypes['listWorkspaces'][0]
-
The value for the Content-Type header. Check self::contentTypes['listWorkspaces'] to see the possible values for this operation
Tags
Return values
array<string|int, Workspace>|ErrorResponselistWorkspacesAsync()
Operation listWorkspacesAsync
public
listWorkspacesAsync([string $contentType = self::contentTypes['listWorkspaces'][0] ]) : PromiseInterface
List the caller's workspaces
Parameters
- $contentType : string = self::contentTypes['listWorkspaces'][0]
-
The value for the Content-Type header. Check self::contentTypes['listWorkspaces'] to see the possible values for this operation
Tags
Return values
PromiseInterfacelistWorkspacesAsyncWithHttpInfo()
Operation listWorkspacesAsyncWithHttpInfo
public
listWorkspacesAsyncWithHttpInfo([string $contentType = self::contentTypes['listWorkspaces'][0] ]) : PromiseInterface
List the caller's workspaces
Parameters
- $contentType : string = self::contentTypes['listWorkspaces'][0]
-
The value for the Content-Type header. Check self::contentTypes['listWorkspaces'] to see the possible values for this operation
Tags
Return values
PromiseInterfacelistWorkspacesRequest()
Create request for operation 'listWorkspaces'
public
listWorkspacesRequest([string $contentType = self::contentTypes['listWorkspaces'][0] ]) : Request
Parameters
- $contentType : string = self::contentTypes['listWorkspaces'][0]
-
The value for the Content-Type header. Check self::contentTypes['listWorkspaces'] to see the possible values for this operation
Tags
Return values
RequestlistWorkspacesWithHttpInfo()
Operation listWorkspacesWithHttpInfo
public
listWorkspacesWithHttpInfo([string $contentType = self::contentTypes['listWorkspaces'][0] ]) : array<string|int, mixed>
List the caller's workspaces
Parameters
- $contentType : string = self::contentTypes['listWorkspaces'][0]
-
The value for the Content-Type header. Check self::contentTypes['listWorkspaces'] to see the possible values for this operation
Tags
Return values
array<string|int, mixed> —of \BIMworks\Model\Workspace[]|\BIMworks\Model\ErrorResponse|\BIMworks\Model\ErrorResponse|\BIMworks\Model\ErrorResponse|\BIMworks\Model\ErrorResponse|\BIMworks\Model\ErrorResponse|\BIMworks\Model\ErrorResponse|\BIMworks\Model\ErrorResponse|\BIMworks\Model\ErrorResponse, HTTP status code, HTTP response headers (array of strings)
publishWorkspace()
Operation publishWorkspace
public
publishWorkspace(PublishWorkspaceRequest $publish_workspace_request[, string $contentType = self::contentTypes['publishWorkspace'][0] ]) : Workspace|ErrorResponse
Publish or unpublish a workspace
Parameters
- $publish_workspace_request : PublishWorkspaceRequest
-
publish_workspace_request (required)
- $contentType : string = self::contentTypes['publishWorkspace'][0]
-
The value for the Content-Type header. Check self::contentTypes['publishWorkspace'] to see the possible values for this operation
Tags
Return values
Workspace|ErrorResponsepublishWorkspaceAsync()
Operation publishWorkspaceAsync
public
publishWorkspaceAsync(PublishWorkspaceRequest $publish_workspace_request[, string $contentType = self::contentTypes['publishWorkspace'][0] ]) : PromiseInterface
Publish or unpublish a workspace
Parameters
- $publish_workspace_request : PublishWorkspaceRequest
-
(required)
- $contentType : string = self::contentTypes['publishWorkspace'][0]
-
The value for the Content-Type header. Check self::contentTypes['publishWorkspace'] to see the possible values for this operation
Tags
Return values
PromiseInterfacepublishWorkspaceAsyncWithHttpInfo()
Operation publishWorkspaceAsyncWithHttpInfo
public
publishWorkspaceAsyncWithHttpInfo(PublishWorkspaceRequest $publish_workspace_request[, string $contentType = self::contentTypes['publishWorkspace'][0] ]) : PromiseInterface
Publish or unpublish a workspace
Parameters
- $publish_workspace_request : PublishWorkspaceRequest
-
(required)
- $contentType : string = self::contentTypes['publishWorkspace'][0]
-
The value for the Content-Type header. Check self::contentTypes['publishWorkspace'] to see the possible values for this operation
Tags
Return values
PromiseInterfacepublishWorkspaceRequest()
Create request for operation 'publishWorkspace'
public
publishWorkspaceRequest(PublishWorkspaceRequest $publish_workspace_request[, string $contentType = self::contentTypes['publishWorkspace'][0] ]) : Request
Parameters
- $publish_workspace_request : PublishWorkspaceRequest
-
(required)
- $contentType : string = self::contentTypes['publishWorkspace'][0]
-
The value for the Content-Type header. Check self::contentTypes['publishWorkspace'] to see the possible values for this operation
Tags
Return values
RequestpublishWorkspaceWithHttpInfo()
Operation publishWorkspaceWithHttpInfo
public
publishWorkspaceWithHttpInfo(PublishWorkspaceRequest $publish_workspace_request[, string $contentType = self::contentTypes['publishWorkspace'][0] ]) : array<string|int, mixed>
Publish or unpublish a workspace
Parameters
- $publish_workspace_request : PublishWorkspaceRequest
-
(required)
- $contentType : string = self::contentTypes['publishWorkspace'][0]
-
The value for the Content-Type header. Check self::contentTypes['publishWorkspace'] to see the possible values for this operation
Tags
Return values
array<string|int, mixed> —of \BIMworks\Model\Workspace|\BIMworks\Model\ErrorResponse|\BIMworks\Model\ErrorResponse|\BIMworks\Model\ErrorResponse|\BIMworks\Model\ErrorResponse|\BIMworks\Model\ErrorResponse|\BIMworks\Model\ErrorResponse|\BIMworks\Model\ErrorResponse|\BIMworks\Model\ErrorResponse, HTTP status code, HTTP response headers (array of strings)
setHostIndex()
Set the host index
public
setHostIndex(int $hostIndex) : void
Parameters
- $hostIndex : int
-
Host index (required)
updateWorkspace()
Operation updateWorkspace
public
updateWorkspace(UpdateWorkspaceRequest $update_workspace_request[, string $contentType = self::contentTypes['updateWorkspace'][0] ]) : void
Change a workspace
Parameters
- $update_workspace_request : UpdateWorkspaceRequest
-
update_workspace_request (required)
- $contentType : string = self::contentTypes['updateWorkspace'][0]
-
The value for the Content-Type header. Check self::contentTypes['updateWorkspace'] to see the possible values for this operation
Tags
updateWorkspaceAsync()
Operation updateWorkspaceAsync
public
updateWorkspaceAsync(UpdateWorkspaceRequest $update_workspace_request[, string $contentType = self::contentTypes['updateWorkspace'][0] ]) : PromiseInterface
Change a workspace
Parameters
- $update_workspace_request : UpdateWorkspaceRequest
-
(required)
- $contentType : string = self::contentTypes['updateWorkspace'][0]
-
The value for the Content-Type header. Check self::contentTypes['updateWorkspace'] to see the possible values for this operation
Tags
Return values
PromiseInterfaceupdateWorkspaceAsyncWithHttpInfo()
Operation updateWorkspaceAsyncWithHttpInfo
public
updateWorkspaceAsyncWithHttpInfo(UpdateWorkspaceRequest $update_workspace_request[, string $contentType = self::contentTypes['updateWorkspace'][0] ]) : PromiseInterface
Change a workspace
Parameters
- $update_workspace_request : UpdateWorkspaceRequest
-
(required)
- $contentType : string = self::contentTypes['updateWorkspace'][0]
-
The value for the Content-Type header. Check self::contentTypes['updateWorkspace'] to see the possible values for this operation
Tags
Return values
PromiseInterfaceupdateWorkspaceRequest()
Create request for operation 'updateWorkspace'
public
updateWorkspaceRequest(UpdateWorkspaceRequest $update_workspace_request[, string $contentType = self::contentTypes['updateWorkspace'][0] ]) : Request
Parameters
- $update_workspace_request : UpdateWorkspaceRequest
-
(required)
- $contentType : string = self::contentTypes['updateWorkspace'][0]
-
The value for the Content-Type header. Check self::contentTypes['updateWorkspace'] to see the possible values for this operation
Tags
Return values
RequestupdateWorkspaceWithHttpInfo()
Operation updateWorkspaceWithHttpInfo
public
updateWorkspaceWithHttpInfo(UpdateWorkspaceRequest $update_workspace_request[, string $contentType = self::contentTypes['updateWorkspace'][0] ]) : array<string|int, mixed>
Change a workspace
Parameters
- $update_workspace_request : UpdateWorkspaceRequest
-
(required)
- $contentType : string = self::contentTypes['updateWorkspace'][0]
-
The value for the Content-Type header. Check self::contentTypes['updateWorkspace'] to see the possible values for this operation
Tags
Return values
array<string|int, mixed> —of null, HTTP status code, HTTP response headers (array of strings)
createHttpClientOption()
Create http client option
protected
createHttpClientOption() : array<string|int, mixed>
Tags
Return values
array<string|int, mixed> —of http client options
handleResponseWithDataType()
private
handleResponseWithDataType(string $dataType, RequestInterface $request, ResponseInterface $response) : array<string|int, mixed>
Parameters
- $dataType : string
- $request : RequestInterface
- $response : ResponseInterface
Return values
array<string|int, mixed>responseWithinRangeCode()
private
responseWithinRangeCode(string $rangeCode, int $statusCode) : bool
Parameters
- $rangeCode : string
- $statusCode : int