Documentation

AuthApi
in package

AuthApi Class Doc Comment

Tags
category

Class

author

OpenAPI Generator team

link
https://openapi-generator.tech

Table of Contents

Constants

contentTypes  = ['createNodesToken' => ['application/json'], 'createRecursiveNodeToken' => ['application/json'], 'createVersionsToken' => ['application/json'], 'loginWithApiToken' => ['application/json'], 'loginWithUsernamePassword' => ['application/json']]

Properties

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

Methods

__construct()  : mixed
createNodesToken()  : Auth|ErrorResponse
Operation createNodesToken
createNodesTokenAsync()  : PromiseInterface
Operation createNodesTokenAsync
createNodesTokenAsyncWithHttpInfo()  : PromiseInterface
Operation createNodesTokenAsyncWithHttpInfo
createNodesTokenRequest()  : Request
Create request for operation 'createNodesToken'
createNodesTokenWithHttpInfo()  : array<string|int, mixed>
Operation createNodesTokenWithHttpInfo
createRecursiveNodeToken()  : Auth|ErrorResponse
Operation createRecursiveNodeToken
createRecursiveNodeTokenAsync()  : PromiseInterface
Operation createRecursiveNodeTokenAsync
createRecursiveNodeTokenAsyncWithHttpInfo()  : PromiseInterface
Operation createRecursiveNodeTokenAsyncWithHttpInfo
createRecursiveNodeTokenRequest()  : Request
Create request for operation 'createRecursiveNodeToken'
createRecursiveNodeTokenWithHttpInfo()  : array<string|int, mixed>
Operation createRecursiveNodeTokenWithHttpInfo
createVersionsToken()  : Auth|ErrorResponse
Operation createVersionsToken
createVersionsTokenAsync()  : PromiseInterface
Operation createVersionsTokenAsync
createVersionsTokenAsyncWithHttpInfo()  : PromiseInterface
Operation createVersionsTokenAsyncWithHttpInfo
createVersionsTokenRequest()  : Request
Create request for operation 'createVersionsToken'
createVersionsTokenWithHttpInfo()  : array<string|int, mixed>
Operation createVersionsTokenWithHttpInfo
getConfig()  : Configuration
getHostIndex()  : int
Get the host index
loginWithApiToken()  : string|ErrorResponse
Operation loginWithApiToken
loginWithApiTokenAsync()  : PromiseInterface
Operation loginWithApiTokenAsync
loginWithApiTokenAsyncWithHttpInfo()  : PromiseInterface
Operation loginWithApiTokenAsyncWithHttpInfo
loginWithApiTokenRequest()  : Request
Create request for operation 'loginWithApiToken'
loginWithApiTokenWithHttpInfo()  : array<string|int, mixed>
Operation loginWithApiTokenWithHttpInfo
loginWithUsernamePassword()  : LoginWithUsernamePassword200Response|ErrorResponse
Operation loginWithUsernamePassword
loginWithUsernamePasswordAsync()  : PromiseInterface
Operation loginWithUsernamePasswordAsync
loginWithUsernamePasswordAsyncWithHttpInfo()  : PromiseInterface
Operation loginWithUsernamePasswordAsyncWithHttpInfo
loginWithUsernamePasswordRequest()  : Request
Create request for operation 'loginWithUsernamePassword'
loginWithUsernamePasswordWithHttpInfo()  : array<string|int, mixed>
Operation loginWithUsernamePasswordWithHttpInfo
setHostIndex()  : void
Set the host index
createHttpClientOption()  : array<string|int, mixed>
Create http client option
handleResponseWithDataType()  : array<string|int, mixed>
responseWithinRangeCode()  : bool

Constants

contentTypes

public array<string|int, string> contentTypes = ['createNodesToken' => ['application/json'], 'createRecursiveNodeToken' => ['application/json'], 'createVersionsToken' => ['application/json'], 'loginWithApiToken' => ['application/json'], 'loginWithUsernamePassword' => ['application/json']]

Properties

$client

protected ClientInterface $client

$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

createNodesToken()

Operation createNodesToken

public createNodesToken(CreateNodesTokenRequest $create_nodes_token_request[, string $contentType = self::contentTypes['createNodesToken'][0] ]) : Auth|ErrorResponse

Create a new token, based on a set of Nodes

Parameters
$create_nodes_token_request : CreateNodesTokenRequest

create_nodes_token_request (required)

$contentType : string = self::contentTypes['createNodesToken'][0]

The value for the Content-Type header. Check self::contentTypes['createNodesToken'] 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

throws
InvalidArgumentException
Return values
Auth|ErrorResponse

createNodesTokenAsync()

Operation createNodesTokenAsync

public createNodesTokenAsync(CreateNodesTokenRequest $create_nodes_token_request[, string $contentType = self::contentTypes['createNodesToken'][0] ]) : PromiseInterface

Create a new token, based on a set of Nodes

Parameters
$create_nodes_token_request : CreateNodesTokenRequest

(required)

$contentType : string = self::contentTypes['createNodesToken'][0]

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

Tags
throws
InvalidArgumentException
Return values
PromiseInterface

createNodesTokenAsyncWithHttpInfo()

Operation createNodesTokenAsyncWithHttpInfo

public createNodesTokenAsyncWithHttpInfo(CreateNodesTokenRequest $create_nodes_token_request[, string $contentType = self::contentTypes['createNodesToken'][0] ]) : PromiseInterface

Create a new token, based on a set of Nodes

Parameters
$create_nodes_token_request : CreateNodesTokenRequest

(required)

$contentType : string = self::contentTypes['createNodesToken'][0]

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

Tags
throws
InvalidArgumentException
Return values
PromiseInterface

createNodesTokenRequest()

Create request for operation 'createNodesToken'

public createNodesTokenRequest(CreateNodesTokenRequest $create_nodes_token_request[, string $contentType = self::contentTypes['createNodesToken'][0] ]) : Request
Parameters
$create_nodes_token_request : CreateNodesTokenRequest

(required)

$contentType : string = self::contentTypes['createNodesToken'][0]

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

Tags
throws
InvalidArgumentException
Return values
Request

createNodesTokenWithHttpInfo()

Operation createNodesTokenWithHttpInfo

public createNodesTokenWithHttpInfo(CreateNodesTokenRequest $create_nodes_token_request[, string $contentType = self::contentTypes['createNodesToken'][0] ]) : array<string|int, mixed>

Create a new token, based on a set of Nodes

Parameters
$create_nodes_token_request : CreateNodesTokenRequest

(required)

$contentType : string = self::contentTypes['createNodesToken'][0]

The value for the Content-Type header. Check self::contentTypes['createNodesToken'] 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

throws
InvalidArgumentException
Return values
array<string|int, mixed>

of \BIMworks\Model\Auth|\BIMworks\Model\ErrorResponse, HTTP status code, HTTP response headers (array of strings)

createRecursiveNodeToken()

Operation createRecursiveNodeToken

public createRecursiveNodeToken(CreateRecursiveNodeTokenRequest $create_recursive_node_token_request[, string $contentType = self::contentTypes['createRecursiveNodeToken'][0] ]) : Auth|ErrorResponse

Create a new token, based on a Node

Parameters
$create_recursive_node_token_request : CreateRecursiveNodeTokenRequest

create_recursive_node_token_request (required)

$contentType : string = self::contentTypes['createRecursiveNodeToken'][0]

The value for the Content-Type header. Check self::contentTypes['createRecursiveNodeToken'] 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

throws
InvalidArgumentException
Return values
Auth|ErrorResponse

createRecursiveNodeTokenAsync()

Operation createRecursiveNodeTokenAsync

public createRecursiveNodeTokenAsync(CreateRecursiveNodeTokenRequest $create_recursive_node_token_request[, string $contentType = self::contentTypes['createRecursiveNodeToken'][0] ]) : PromiseInterface

Create a new token, based on a Node

Parameters
$create_recursive_node_token_request : CreateRecursiveNodeTokenRequest

(required)

$contentType : string = self::contentTypes['createRecursiveNodeToken'][0]

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

Tags
throws
InvalidArgumentException
Return values
PromiseInterface

createRecursiveNodeTokenAsyncWithHttpInfo()

Operation createRecursiveNodeTokenAsyncWithHttpInfo

public createRecursiveNodeTokenAsyncWithHttpInfo(CreateRecursiveNodeTokenRequest $create_recursive_node_token_request[, string $contentType = self::contentTypes['createRecursiveNodeToken'][0] ]) : PromiseInterface

Create a new token, based on a Node

Parameters
$create_recursive_node_token_request : CreateRecursiveNodeTokenRequest

(required)

$contentType : string = self::contentTypes['createRecursiveNodeToken'][0]

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

Tags
throws
InvalidArgumentException
Return values
PromiseInterface

createRecursiveNodeTokenRequest()

Create request for operation 'createRecursiveNodeToken'

public createRecursiveNodeTokenRequest(CreateRecursiveNodeTokenRequest $create_recursive_node_token_request[, string $contentType = self::contentTypes['createRecursiveNodeToken'][0] ]) : Request
Parameters
$create_recursive_node_token_request : CreateRecursiveNodeTokenRequest

(required)

$contentType : string = self::contentTypes['createRecursiveNodeToken'][0]

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

Tags
throws
InvalidArgumentException
Return values
Request

createRecursiveNodeTokenWithHttpInfo()

Operation createRecursiveNodeTokenWithHttpInfo

public createRecursiveNodeTokenWithHttpInfo(CreateRecursiveNodeTokenRequest $create_recursive_node_token_request[, string $contentType = self::contentTypes['createRecursiveNodeToken'][0] ]) : array<string|int, mixed>

Create a new token, based on a Node

Parameters
$create_recursive_node_token_request : CreateRecursiveNodeTokenRequest

(required)

$contentType : string = self::contentTypes['createRecursiveNodeToken'][0]

The value for the Content-Type header. Check self::contentTypes['createRecursiveNodeToken'] 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

throws
InvalidArgumentException
Return values
array<string|int, mixed>

of \BIMworks\Model\Auth|\BIMworks\Model\ErrorResponse, HTTP status code, HTTP response headers (array of strings)

createVersionsToken()

Operation createVersionsToken

public createVersionsToken(CreateVersionsTokenRequest $create_versions_token_request[, string $contentType = self::contentTypes['createVersionsToken'][0] ]) : Auth|ErrorResponse

Create a new token, based on a set of Versions

Parameters
$create_versions_token_request : CreateVersionsTokenRequest

create_versions_token_request (required)

$contentType : string = self::contentTypes['createVersionsToken'][0]

The value for the Content-Type header. Check self::contentTypes['createVersionsToken'] 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

throws
InvalidArgumentException
Return values
Auth|ErrorResponse

createVersionsTokenAsync()

Operation createVersionsTokenAsync

public createVersionsTokenAsync(CreateVersionsTokenRequest $create_versions_token_request[, string $contentType = self::contentTypes['createVersionsToken'][0] ]) : PromiseInterface

Create a new token, based on a set of Versions

Parameters
$create_versions_token_request : CreateVersionsTokenRequest

(required)

$contentType : string = self::contentTypes['createVersionsToken'][0]

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

Tags
throws
InvalidArgumentException
Return values
PromiseInterface

createVersionsTokenAsyncWithHttpInfo()

Operation createVersionsTokenAsyncWithHttpInfo

public createVersionsTokenAsyncWithHttpInfo(CreateVersionsTokenRequest $create_versions_token_request[, string $contentType = self::contentTypes['createVersionsToken'][0] ]) : PromiseInterface

Create a new token, based on a set of Versions

Parameters
$create_versions_token_request : CreateVersionsTokenRequest

(required)

$contentType : string = self::contentTypes['createVersionsToken'][0]

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

Tags
throws
InvalidArgumentException
Return values
PromiseInterface

createVersionsTokenRequest()

Create request for operation 'createVersionsToken'

public createVersionsTokenRequest(CreateVersionsTokenRequest $create_versions_token_request[, string $contentType = self::contentTypes['createVersionsToken'][0] ]) : Request
Parameters
$create_versions_token_request : CreateVersionsTokenRequest

(required)

$contentType : string = self::contentTypes['createVersionsToken'][0]

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

Tags
throws
InvalidArgumentException
Return values
Request

createVersionsTokenWithHttpInfo()

Operation createVersionsTokenWithHttpInfo

public createVersionsTokenWithHttpInfo(CreateVersionsTokenRequest $create_versions_token_request[, string $contentType = self::contentTypes['createVersionsToken'][0] ]) : array<string|int, mixed>

Create a new token, based on a set of Versions

Parameters
$create_versions_token_request : CreateVersionsTokenRequest

(required)

$contentType : string = self::contentTypes['createVersionsToken'][0]

The value for the Content-Type header. Check self::contentTypes['createVersionsToken'] 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

throws
InvalidArgumentException
Return values
array<string|int, mixed>

of \BIMworks\Model\Auth|\BIMworks\Model\ErrorResponse, HTTP status code, HTTP response headers (array of strings)

getHostIndex()

Get the host index

public getHostIndex() : int
Return values
int

Host index

loginWithApiToken()

Operation loginWithApiToken

public loginWithApiToken(LoginWithApiTokenRequest $login_with_api_token_request[, string $contentType = self::contentTypes['loginWithApiToken'][0] ]) : string|ErrorResponse

Login using an API Token

Parameters
$login_with_api_token_request : LoginWithApiTokenRequest

login_with_api_token_request (required)

$contentType : string = self::contentTypes['loginWithApiToken'][0]

The value for the Content-Type header. Check self::contentTypes['loginWithApiToken'] 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

throws
InvalidArgumentException
Return values
string|ErrorResponse

loginWithApiTokenAsync()

Operation loginWithApiTokenAsync

public loginWithApiTokenAsync(LoginWithApiTokenRequest $login_with_api_token_request[, string $contentType = self::contentTypes['loginWithApiToken'][0] ]) : PromiseInterface

Login using an API Token

Parameters
$login_with_api_token_request : LoginWithApiTokenRequest

(required)

$contentType : string = self::contentTypes['loginWithApiToken'][0]

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

Tags
throws
InvalidArgumentException
Return values
PromiseInterface

loginWithApiTokenAsyncWithHttpInfo()

Operation loginWithApiTokenAsyncWithHttpInfo

public loginWithApiTokenAsyncWithHttpInfo(LoginWithApiTokenRequest $login_with_api_token_request[, string $contentType = self::contentTypes['loginWithApiToken'][0] ]) : PromiseInterface

Login using an API Token

Parameters
$login_with_api_token_request : LoginWithApiTokenRequest

(required)

$contentType : string = self::contentTypes['loginWithApiToken'][0]

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

Tags
throws
InvalidArgumentException
Return values
PromiseInterface

loginWithApiTokenRequest()

Create request for operation 'loginWithApiToken'

public loginWithApiTokenRequest(LoginWithApiTokenRequest $login_with_api_token_request[, string $contentType = self::contentTypes['loginWithApiToken'][0] ]) : Request
Parameters
$login_with_api_token_request : LoginWithApiTokenRequest

(required)

$contentType : string = self::contentTypes['loginWithApiToken'][0]

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

Tags
throws
InvalidArgumentException
Return values
Request

loginWithApiTokenWithHttpInfo()

Operation loginWithApiTokenWithHttpInfo

public loginWithApiTokenWithHttpInfo(LoginWithApiTokenRequest $login_with_api_token_request[, string $contentType = self::contentTypes['loginWithApiToken'][0] ]) : array<string|int, mixed>

Login using an API Token

Parameters
$login_with_api_token_request : LoginWithApiTokenRequest

(required)

$contentType : string = self::contentTypes['loginWithApiToken'][0]

The value for the Content-Type header. Check self::contentTypes['loginWithApiToken'] 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

throws
InvalidArgumentException
Return values
array<string|int, mixed>

of string|\BIMworks\Model\ErrorResponse, HTTP status code, HTTP response headers (array of strings)

loginWithUsernamePassword()

Operation loginWithUsernamePassword

public loginWithUsernamePassword(LoginWithUsernamePasswordRequest $login_with_username_password_request[, string $contentType = self::contentTypes['loginWithUsernamePassword'][0] ]) : LoginWithUsernamePassword200Response|ErrorResponse

Login using username/password, this can be used for testing. For production use we advise LoginWithApiToken

Parameters
$login_with_username_password_request : LoginWithUsernamePasswordRequest

login_with_username_password_request (required)

$contentType : string = self::contentTypes['loginWithUsernamePassword'][0]

The value for the Content-Type header. Check self::contentTypes['loginWithUsernamePassword'] 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

throws
InvalidArgumentException
Return values
LoginWithUsernamePassword200Response|ErrorResponse

loginWithUsernamePasswordAsync()

Operation loginWithUsernamePasswordAsync

public loginWithUsernamePasswordAsync(LoginWithUsernamePasswordRequest $login_with_username_password_request[, string $contentType = self::contentTypes['loginWithUsernamePassword'][0] ]) : PromiseInterface

Login using username/password, this can be used for testing. For production use we advise LoginWithApiToken

Parameters
$login_with_username_password_request : LoginWithUsernamePasswordRequest

(required)

$contentType : string = self::contentTypes['loginWithUsernamePassword'][0]

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

Tags
throws
InvalidArgumentException
Return values
PromiseInterface

loginWithUsernamePasswordAsyncWithHttpInfo()

Operation loginWithUsernamePasswordAsyncWithHttpInfo

public loginWithUsernamePasswordAsyncWithHttpInfo(LoginWithUsernamePasswordRequest $login_with_username_password_request[, string $contentType = self::contentTypes['loginWithUsernamePassword'][0] ]) : PromiseInterface

Login using username/password, this can be used for testing. For production use we advise LoginWithApiToken

Parameters
$login_with_username_password_request : LoginWithUsernamePasswordRequest

(required)

$contentType : string = self::contentTypes['loginWithUsernamePassword'][0]

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

Tags
throws
InvalidArgumentException
Return values
PromiseInterface

loginWithUsernamePasswordRequest()

Create request for operation 'loginWithUsernamePassword'

public loginWithUsernamePasswordRequest(LoginWithUsernamePasswordRequest $login_with_username_password_request[, string $contentType = self::contentTypes['loginWithUsernamePassword'][0] ]) : Request
Parameters
$login_with_username_password_request : LoginWithUsernamePasswordRequest

(required)

$contentType : string = self::contentTypes['loginWithUsernamePassword'][0]

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

Tags
throws
InvalidArgumentException
Return values
Request

loginWithUsernamePasswordWithHttpInfo()

Operation loginWithUsernamePasswordWithHttpInfo

public loginWithUsernamePasswordWithHttpInfo(LoginWithUsernamePasswordRequest $login_with_username_password_request[, string $contentType = self::contentTypes['loginWithUsernamePassword'][0] ]) : array<string|int, mixed>

Login using username/password, this can be used for testing. For production use we advise LoginWithApiToken

Parameters
$login_with_username_password_request : LoginWithUsernamePasswordRequest

(required)

$contentType : string = self::contentTypes['loginWithUsernamePassword'][0]

The value for the Content-Type header. Check self::contentTypes['loginWithUsernamePassword'] 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

throws
InvalidArgumentException
Return values
array<string|int, mixed>

of \BIMworks\Model\LoginWithUsernamePassword200Response|\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)

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

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