| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899 |
- <?php
- namespace AlibabaCloud\Client\Tests\Unit\Credentials\Ini;
- /**
- * Class VirtualRamRoleArnCredential
- *
- * @codeCoverageIgnore
- *
- * @package AlibabaCloud\Client\Tests\Unit\Credentials\Ini
- */
- class VirtualRamRoleArnCredential extends VirtualAccessKeyCredential
- {
- /**
- * @return string
- */
- public static function noKey()
- {
- $content = <<<EOT
- [phpunit]
- enable = true
- type = ram_role_arn
- role_arn = role_arn
- role_session_name = role_session_name
- EOT;
- return (new static($content))->url();
- }
- /**
- * @return string
- */
- public static function noSecret()
- {
- $content = <<<EOT
- [phpunit]
- enable = true
- type = ram_role_arn
- access_key_id = access_key_id
- role_arn = role_arn
- role_session_name = role_session_name
- EOT;
- return (new static($content))->url();
- }
- /**
- * @return string
- */
- public static function noRoleArn()
- {
- $content = <<<EOT
- [phpunit]
- enable = true
- type = ram_role_arn
- access_key_id = access_key_id
- access_key_secret = access_key_secret
- role_session_name = role_session_name
- EOT;
- return (new static($content))->url();
- }
- /**
- * @return string
- */
- public static function noRoleSessionName()
- {
- $content = <<<EOT
- [phpunit]
- enable = true
- type = ram_role_arn
- access_key_id = access_key_id
- access_key_secret = access_key_secret
- role_arn = role_arn
- EOT;
- return (new static($content))->url();
- }
- /**
- * @return string
- */
- public static function client()
- {
- $content = <<<EOT
- [phpunit]
- enable = true
- type = ram_role_arn
- access_key_id = access_key_id
- access_key_secret = access_key_secret
- role_arn = role_arn
- role_session_name = role_session_name
- EOT;
- return (new static($content))->url();
- }
- }
|