VersionsApi
in package
VersionsApi Class Doc Comment
Tags
Table of Contents
Constants
- contentTypes = ['version' => ['application/json']]
Properties
- $client : ClientInterface
- $config : Configuration
- $headerSelector : HeaderSelector
- $hostIndex : int
Methods
- __construct() : mixed
- getConfig() : Configuration
- getHostIndex() : int
- Get the host index
- setHostIndex() : void
- Set the host index
- version() : SplFileObject|ErrorResponse
- Operation version
- versionAsync() : PromiseInterface
- Operation versionAsync
- versionAsyncWithHttpInfo() : PromiseInterface
- Operation versionAsyncWithHttpInfo
- versionRequest() : Request
- Create request for operation 'version'
- versionWithHttpInfo() : array<string|int, mixed>
- Operation versionWithHttpInfo
- createHttpClientOption() : array<string|int, mixed>
- Create http client option
- handleResponseWithDataType() : array<string|int, mixed>
- responseWithinRangeCode() : bool
Constants
contentTypes
public
array<string|int, string>
contentTypes
= ['version' => ['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
getConfig()
public
getConfig() : Configuration
Return values
ConfigurationgetHostIndex()
Get the host index
public
getHostIndex() : int
Return values
int —Host index
setHostIndex()
Set the host index
public
setHostIndex(int $hostIndex) : void
Parameters
- $hostIndex : int
-
Host index (required)
version()
Operation version
public
version(string $uuid[, string $contentType = self::contentTypes['version'][0] ]) : SplFileObject|ErrorResponse
Download the original model that was uploaded for the given Version UUID, this will always be a byte-for-byte copy of the original. In case you want to download only a subset of an IFC model, use ifc/query.
Parameters
- $uuid : string
-
The UUID of the Version (required)
- $contentType : string = self::contentTypes['version'][0]
-
The value for the Content-Type header. Check self::contentTypes['version'] to see the possible values for this operation
Tags
Return values
SplFileObject|ErrorResponseversionAsync()
Operation versionAsync
public
versionAsync(string $uuid[, string $contentType = self::contentTypes['version'][0] ]) : PromiseInterface
Download the original model that was uploaded for the given Version UUID, this will always be a byte-for-byte copy of the original. In case you want to download only a subset of an IFC model, use ifc/query.
Parameters
- $uuid : string
-
The UUID of the Version (required)
- $contentType : string = self::contentTypes['version'][0]
-
The value for the Content-Type header. Check self::contentTypes['version'] to see the possible values for this operation
Tags
Return values
PromiseInterfaceversionAsyncWithHttpInfo()
Operation versionAsyncWithHttpInfo
public
versionAsyncWithHttpInfo(string $uuid[, string $contentType = self::contentTypes['version'][0] ]) : PromiseInterface
Download the original model that was uploaded for the given Version UUID, this will always be a byte-for-byte copy of the original. In case you want to download only a subset of an IFC model, use ifc/query.
Parameters
- $uuid : string
-
The UUID of the Version (required)
- $contentType : string = self::contentTypes['version'][0]
-
The value for the Content-Type header. Check self::contentTypes['version'] to see the possible values for this operation
Tags
Return values
PromiseInterfaceversionRequest()
Create request for operation 'version'
public
versionRequest(string $uuid[, string $contentType = self::contentTypes['version'][0] ]) : Request
Parameters
- $uuid : string
-
The UUID of the Version (required)
- $contentType : string = self::contentTypes['version'][0]
-
The value for the Content-Type header. Check self::contentTypes['version'] to see the possible values for this operation
Tags
Return values
RequestversionWithHttpInfo()
Operation versionWithHttpInfo
public
versionWithHttpInfo(string $uuid[, string $contentType = self::contentTypes['version'][0] ]) : array<string|int, mixed>
Download the original model that was uploaded for the given Version UUID, this will always be a byte-for-byte copy of the original. In case you want to download only a subset of an IFC model, use ifc/query.
Parameters
- $uuid : string
-
The UUID of the Version (required)
- $contentType : string = self::contentTypes['version'][0]
-
The value for the Content-Type header. Check self::contentTypes['version'] to see the possible values for this operation
Tags
Return values
array<string|int, mixed> —of \SplFileObject|\BIMworks\Model\ErrorResponse|\BIMworks\Model\ErrorResponse, 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