.gitignore000064400000000521146412135650006541 0ustar00composer.phar /vendor/ # Commit your application's lock file https://getcomposer.org/doc/01-basic-usage.md#commit-your-composer-lock-file-to-version-control # You may choose to ignore a library lock file http://getcomposer.org/doc/02-libraries.md#lock-file composer.lock .vscode/ .idea .DS_Store cache/ *.cache runtime/ .php_cs.cache .php_cs.dist000064400000005666146412135650007007 0ustar00setRiskyAllowed(true) ->setIndent(' ') ->setRules([ '@PSR2' => true, '@PhpCsFixer' => true, '@Symfony:risky' => true, 'concat_space' => ['spacing' => 'one'], 'array_syntax' => ['syntax' => 'short'], 'array_indentation' => true, 'combine_consecutive_unsets' => true, 'method_separation' => true, 'single_quote' => true, 'declare_equal_normalize' => true, 'function_typehint_space' => true, 'hash_to_slash_comment' => true, 'include' => true, 'lowercase_cast' => true, 'no_multiline_whitespace_before_semicolons' => true, 'no_leading_import_slash' => true, 'no_multiline_whitespace_around_double_arrow' => true, 'no_spaces_around_offset' => true, 'no_unneeded_control_parentheses' => true, 'no_unused_imports' => true, 'no_whitespace_before_comma_in_array' => true, 'no_whitespace_in_blank_line' => true, 'object_operator_without_whitespace' => true, 'single_blank_line_before_namespace' => true, 'single_class_element_per_statement' => true, 'space_after_semicolon' => true, 'standardize_not_equals' => true, 'ternary_operator_spaces' => true, 'trailing_comma_in_multiline_array' => true, 'trim_array_spaces' => true, 'unary_operator_spaces' => true, 'whitespace_after_comma_in_array' => true, 'no_extra_consecutive_blank_lines' => [ 'curly_brace_block', 'extra', 'parenthesis_brace_block', 'square_brace_block', 'throw', 'use', ], 'binary_operator_spaces' => [ 'align_double_arrow' => true, 'align_equals' => true, ], 'braces' => [ 'allow_single_line_closure' => true, ], ]) ->setFinder( PhpCsFixer\Finder::create() ->exclude('vendor') ->exclude('tests') ->in(__DIR__) ); autoload.php000064400000001056146412135650007076 0ustar005.5", "alibabacloud/credentials": "^1.1" }, "autoload": { "psr-4": { "Darabonba\\GatewaySpi\\": "src" } }, "scripts": { "fixer": "php-cs-fixer fix ./" }, "config": { "sort-packages": true, "preferred-install": "dist", "optimize-autoloader": true }, "prefer-stable": true }src/Client.php000064400000001477146412135650007302 0ustar00attributes, true); Model::validateRequired('key', $this->key, true); } public function toMap() { $res = []; if (null !== $this->attributes) { $res['attributes'] = $this->attributes; } if (null !== $this->key) { $res['key'] = $this->key; } return $res; } /** * @param array $map * @return AttributeMap */ public static function fromMap($map = []) { $model = new self(); if(isset($map['attributes'])){ $model->attributes = $map['attributes']; } if(isset($map['key'])){ $model->key = $map['key']; } return $model; } /** * @var mixed[] */ public $attributes; /** * @var string[] */ public $key; } src/Models/InterceptorContext.php000064400000003502146412135650013141 0ustar00request, true); Model::validateRequired('configuration', $this->configuration, true); Model::validateRequired('response', $this->response, true); } public function toMap() { $res = []; if (null !== $this->request) { $res['request'] = null !== $this->request ? $this->request->toMap() : null; } if (null !== $this->configuration) { $res['configuration'] = null !== $this->configuration ? $this->configuration->toMap() : null; } if (null !== $this->response) { $res['response'] = null !== $this->response ? $this->response->toMap() : null; } return $res; } /** * @param array $map * @return InterceptorContext */ public static function fromMap($map = []) { $model = new self(); if(isset($map['request'])){ $model->request = request::fromMap($map['request']); } if(isset($map['configuration'])){ $model->configuration = configuration::fromMap($map['configuration']); } if(isset($map['response'])){ $model->response = response::fromMap($map['response']); } return $model; } /** * @var request */ public $request; /** * @var configuration */ public $configuration; /** * @var response */ public $response; } src/Models/InterceptorContext/configuration.php000064400000004155146412135650016015 0ustar00regionId, true); } public function toMap() { $res = []; if (null !== $this->regionId) { $res['regionId'] = $this->regionId; } if (null !== $this->endpoint) { $res['endpoint'] = $this->endpoint; } if (null !== $this->endpointRule) { $res['endpointRule'] = $this->endpointRule; } if (null !== $this->endpointMap) { $res['endpointMap'] = $this->endpointMap; } if (null !== $this->endpointType) { $res['endpointType'] = $this->endpointType; } if (null !== $this->network) { $res['network'] = $this->network; } if (null !== $this->suffix) { $res['suffix'] = $this->suffix; } return $res; } /** * @param array $map * @return configuration */ public static function fromMap($map = []) { $model = new self(); if(isset($map['regionId'])){ $model->regionId = $map['regionId']; } if(isset($map['endpoint'])){ $model->endpoint = $map['endpoint']; } if(isset($map['endpointRule'])){ $model->endpointRule = $map['endpointRule']; } if(isset($map['endpointMap'])){ $model->endpointMap = $map['endpointMap']; } if(isset($map['endpointType'])){ $model->endpointType = $map['endpointType']; } if(isset($map['network'])){ $model->network = $map['network']; } if(isset($map['suffix'])){ $model->suffix = $map['suffix']; } return $model; } /** * @var string */ public $regionId; public $endpoint; public $endpointRule; public $endpointMap; public $endpointType; public $network; public $suffix; } src/Models/InterceptorContext/request.php000064400000013370146412135650014635 0ustar00pathname, true); Model::validateRequired('productId', $this->productId, true); Model::validateRequired('action', $this->action, true); Model::validateRequired('version', $this->version, true); Model::validateRequired('protocol', $this->protocol, true); Model::validateRequired('method', $this->method, true); Model::validateRequired('authType', $this->authType, true); Model::validateRequired('bodyType', $this->bodyType, true); Model::validateRequired('reqBodyType', $this->reqBodyType, true); Model::validateRequired('credential', $this->credential, true); Model::validateRequired('userAgent', $this->userAgent, true); } public function toMap() { $res = []; if (null !== $this->headers) { $res['headers'] = $this->headers; } if (null !== $this->query) { $res['query'] = $this->query; } if (null !== $this->body) { $res['body'] = $this->body; } if (null !== $this->stream) { $res['stream'] = $this->stream; } if (null !== $this->hostMap) { $res['hostMap'] = $this->hostMap; } if (null !== $this->pathname) { $res['pathname'] = $this->pathname; } if (null !== $this->productId) { $res['productId'] = $this->productId; } if (null !== $this->action) { $res['action'] = $this->action; } if (null !== $this->version) { $res['version'] = $this->version; } if (null !== $this->protocol) { $res['protocol'] = $this->protocol; } if (null !== $this->method) { $res['method'] = $this->method; } if (null !== $this->authType) { $res['authType'] = $this->authType; } if (null !== $this->bodyType) { $res['bodyType'] = $this->bodyType; } if (null !== $this->reqBodyType) { $res['reqBodyType'] = $this->reqBodyType; } if (null !== $this->style) { $res['style'] = $this->style; } if (null !== $this->credential) { $res['credential'] = null !== $this->credential ? $this->credential->toMap() : null; } if (null !== $this->signatureVersion) { $res['signatureVersion'] = $this->signatureVersion; } if (null !== $this->signatureAlgorithm) { $res['signatureAlgorithm'] = $this->signatureAlgorithm; } if (null !== $this->userAgent) { $res['userAgent'] = $this->userAgent; } return $res; } /** * @param array $map * @return request */ public static function fromMap($map = []) { $model = new self(); if(isset($map['headers'])){ $model->headers = $map['headers']; } if(isset($map['query'])){ $model->query = $map['query']; } if(isset($map['body'])){ $model->body = $map['body']; } if(isset($map['stream'])){ $model->stream = $map['stream']; } if(isset($map['hostMap'])){ $model->hostMap = $map['hostMap']; } if(isset($map['pathname'])){ $model->pathname = $map['pathname']; } if(isset($map['productId'])){ $model->productId = $map['productId']; } if(isset($map['action'])){ $model->action = $map['action']; } if(isset($map['version'])){ $model->version = $map['version']; } if(isset($map['protocol'])){ $model->protocol = $map['protocol']; } if(isset($map['method'])){ $model->method = $map['method']; } if(isset($map['authType'])){ $model->authType = $map['authType']; } if(isset($map['bodyType'])){ $model->bodyType = $map['bodyType']; } if(isset($map['reqBodyType'])){ $model->reqBodyType = $map['reqBodyType']; } if(isset($map['style'])){ $model->style = $map['style']; } if(isset($map['credential'])){ $model->credential = Credential::fromMap($map['credential']); } if(isset($map['signatureVersion'])){ $model->signatureVersion = $map['signatureVersion']; } if(isset($map['signatureAlgorithm'])){ $model->signatureAlgorithm = $map['signatureAlgorithm']; } if(isset($map['userAgent'])){ $model->userAgent = $map['userAgent']; } return $model; } public $headers; public $query; public $body; public $stream; public $hostMap; /** * @var string */ public $pathname; /** * @var string */ public $productId; /** * @var string */ public $action; /** * @var string */ public $version; /** * @var string */ public $protocol; /** * @var string */ public $method; /** * @var string */ public $authType; /** * @var string */ public $bodyType; /** * @var string */ public $reqBodyType; public $style; /** * @var Credential */ public $credential; public $signatureVersion; public $signatureAlgorithm; /** * @var string */ public $userAgent; } src/Models/InterceptorContext/response.php000064400000002527146412135650015005 0ustar00statusCode) { $res['statusCode'] = $this->statusCode; } if (null !== $this->headers) { $res['headers'] = $this->headers; } if (null !== $this->body) { $res['body'] = $this->body; } if (null !== $this->deserializedBody) { $res['deserializedBody'] = $this->deserializedBody; } return $res; } /** * @param array $map * @return response */ public static function fromMap($map = []) { $model = new self(); if(isset($map['statusCode'])){ $model->statusCode = $map['statusCode']; } if(isset($map['headers'])){ $model->headers = $map['headers']; } if(isset($map['body'])){ $model->body = $map['body']; } if(isset($map['deserializedBody'])){ $model->deserializedBody = $map['deserializedBody']; } return $model; } public $statusCode; public $headers; public $body; public $deserializedBody; }