Documentation

InfoApi
in package

InfoApi Class Doc Comment

Tags
author

OpenAPI Generator team

link
https://openapi-generator.tech

Table of Contents

Constants

contentTypes  : array<string, array<string|int, string>> = ['getApplicationVersion' => ['application/json']]

Properties

$client  : ClientInterface
$config  : Configuration
$headerSelector  : HeaderSelector
$hostIndex  : int

Methods

__construct()  : mixed
getApplicationVersion()  : GetApplicationVersion200Response|ErrorResponse
Operation getApplicationVersion
getApplicationVersionAsync()  : PromiseInterface
Operation getApplicationVersionAsync
getApplicationVersionAsyncWithHttpInfo()  : PromiseInterface
Operation getApplicationVersionAsyncWithHttpInfo
getApplicationVersionRequest()  : Request
Create request for operation 'getApplicationVersion'
getApplicationVersionWithHttpInfo()  : ErrorResponse, 1: int, 2: array}
Operation getApplicationVersionWithHttpInfo
getConfig()  : Configuration
getHostIndex()  : int
Get the host index
setHostIndex()  : void
Set the host index
createHttpClientOption()  : array<string|int, mixed>
Create http client option
getExceptionResponse()  : ResponseInterface|null
Returns the response attached to a Guzzle exception, if there is one.
handleResponseWithDataType()  : array<string|int, mixed>
responseWithinRangeCode()  : bool

Constants

contentTypes

public array<string, array<string|int, string>> contentTypes = ['getApplicationVersion' => ['application/json']]

Properties

$client

protected ClientInterface $client

$hostIndex

protected int $hostIndex

Host index

Methods

__construct()

public __construct([ClientInterface|null $client = null ][, Configuration|null $config = null ][, HeaderSelector|null $selector = null ][, int $hostIndex = 0 ]) : mixed
Parameters
$client : ClientInterface|null = null
$config : Configuration|null = null
$selector : HeaderSelector|null = null
$hostIndex : int = 0

(Optional) host index to select the list of hosts if defined in the OpenAPI spec

getApplicationVersion()

Operation getApplicationVersion

public getApplicationVersion([string $contentType = self::contentTypes['getApplicationVersion'][0] ]) : GetApplicationVersion200Response|ErrorResponse

The BIM.works version of the instance

Parameters
$contentType : string = self::contentTypes['getApplicationVersion'][0]

The value for the Content-Type header. Check self::contentTypes['getApplicationVersion'] to see the possible values for this operation

Tags
throws
ApiException

on non-2xx response or if the response body is not in the expected format

InvalidArgumentException
Return values
GetApplicationVersion200Response|ErrorResponse

getApplicationVersionAsync()

Operation getApplicationVersionAsync

public getApplicationVersionAsync([string $contentType = self::contentTypes['getApplicationVersion'][0] ]) : PromiseInterface

The BIM.works version of the instance

Parameters
$contentType : string = self::contentTypes['getApplicationVersion'][0]

The value for the Content-Type header. Check self::contentTypes['getApplicationVersion'] to see the possible values for this operation

Tags
throws
InvalidArgumentException
Return values
PromiseInterface

getApplicationVersionAsyncWithHttpInfo()

Operation getApplicationVersionAsyncWithHttpInfo

public getApplicationVersionAsyncWithHttpInfo([string $contentType = self::contentTypes['getApplicationVersion'][0] ]) : PromiseInterface

The BIM.works version of the instance

Parameters
$contentType : string = self::contentTypes['getApplicationVersion'][0]

The value for the Content-Type header. Check self::contentTypes['getApplicationVersion'] to see the possible values for this operation

Tags
throws
InvalidArgumentException
Return values
PromiseInterface

getApplicationVersionRequest()

Create request for operation 'getApplicationVersion'

public getApplicationVersionRequest([string $contentType = self::contentTypes['getApplicationVersion'][0] ]) : Request
Parameters
$contentType : string = self::contentTypes['getApplicationVersion'][0]

The value for the Content-Type header. Check self::contentTypes['getApplicationVersion'] to see the possible values for this operation

Tags
throws
InvalidArgumentException
Return values
Request

getApplicationVersionWithHttpInfo()

Operation getApplicationVersionWithHttpInfo

public getApplicationVersionWithHttpInfo([string $contentType = self::contentTypes['getApplicationVersion'][0] ]) : ErrorResponse, 1: int, 2: array}

The BIM.works version of the instance

Parameters
$contentType : string = self::contentTypes['getApplicationVersion'][0]

The value for the Content-Type header. Check self::contentTypes['getApplicationVersion'] to see the possible values for this operation

Tags
throws
ApiException

on non-2xx response or if the response body is not in the expected format

InvalidArgumentException
Return values
ErrorResponse, 1: int, 2: array} —

[response data, HTTP status code, HTTP response headers]

getHostIndex()

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)

createHttpClientOption()

Create http client option

protected createHttpClientOption() : array<string|int, mixed>
Tags
throws
RuntimeException

on file opening failure

Return values
array<string|int, mixed> —

of http client options

getExceptionResponse()

Returns the response attached to a Guzzle exception, if there is one.

private getExceptionResponse(Throwable $exception) : ResponseInterface|null

Guzzle 7 exposes getResponse() on RequestException, while Guzzle 8 only exposes it on ResponseException and its subclasses.

Parameters
$exception : Throwable
Return values
ResponseInterface|null

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
Return values
bool
On this page

Search results