37 lines
945 B
PHP
37 lines
945 B
PHP
![]() |
<?php
|
||
|
|
||
|
namespace OpenCloud\Test\Fixtures;
|
||
|
|
||
|
use OpenCloud\Common\Api\ApiInterface;
|
||
|
|
||
|
class IdentityV2Api implements ApiInterface
|
||
|
{
|
||
|
public function postToken()
|
||
|
{
|
||
|
return [
|
||
|
'method' => 'POST',
|
||
|
'path' => 'tokens',
|
||
|
'params' => [
|
||
|
'username' => [
|
||
|
'type' => 'string',
|
||
|
'required' => true,
|
||
|
'path' => 'auth.passwordCredentials'
|
||
|
],
|
||
|
'password' => [
|
||
|
'type' => 'string',
|
||
|
'required' => true,
|
||
|
'path' => 'auth.passwordCredentials'
|
||
|
],
|
||
|
'tenantId' => [
|
||
|
'type' => 'string',
|
||
|
'path' => 'auth',
|
||
|
],
|
||
|
'tenantName' => [
|
||
|
'type' => 'string',
|
||
|
'path' => 'auth',
|
||
|
]
|
||
|
],
|
||
|
];
|
||
|
}
|
||
|
}
|