%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /www/varak.net/nextcloud.varak.net/3rdparty/php-opencloud/openstack/src/Identity/v2/
Upload File :
Create Path :
Current File : //www/varak.net/nextcloud.varak.net/3rdparty/php-opencloud/openstack/src/Identity/v2/Api.php

<?php

declare(strict_types=1);

namespace OpenStack\Identity\v2;

use OpenStack\Common\Api\ApiInterface;

/**
 * Represents the OpenStack Identity v2 API.
 */
class Api implements ApiInterface
{
    public function postToken(): array
    {
        return [
            'method'   => 'POST',
            'path'     => 'tokens',
            'skipAuth' => true,
            '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',
                ],
            ],
        ];
    }
}

Zerion Mini Shell 1.0