blue-twilight/app/Services/Rackspace/Identity/v2/Api.php

36 lines
995 B
PHP
Raw Normal View History

<?php
namespace App\Services\Rackspace\Identity\v2;
use OpenStack\Common\Api\ApiInterface;
class Api implements ApiInterface
{
public function postTokenWithApiKey(): array
{
return [
'method' => 'POST',
'path' => 'tokens',
'params' => [
'username' => [
'type' => 'string',
'required' => true,
'path' => 'auth.RAX-KSKEY:apiKeyCredentials',
],
'apiKey' => [
'type' => 'string',
'required' => true,
'path' => 'auth.RAX-KSKEY:apiKeyCredentials',
],
'tenantId' => [
'type' => 'string',
'path' => 'auth',
],
'tenantName' => [
'type' => 'string',
'path' => 'auth',
],
],
];
}
}