Blame view

vendor/alibabacloud/client/src/Regions/LocationServiceRequest.php 1.3 KB
f0d6cde5   xu   vendor
1
2
3
4
<?php

namespace AlibabaCloud\Client\Regions;

f0d6cde5   xu   vendor
5
6
use AlibabaCloud\Client\Request\Request;
use AlibabaCloud\Client\Request\RpcRequest;
0c34aba8   xu   更新阿里云短信接口
7
use AlibabaCloud\Client\Exception\ClientException;
f0d6cde5   xu   vendor
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46

/**
 * Class LocationServiceRequest
 *
 * @package   AlibabaCloud\Client\Regions
 */
class LocationServiceRequest extends RpcRequest
{

    /**
     * LocationServiceRequest constructor.
     *
     * @param Request $request
     * @param string  $domain
     *
     * @throws ClientException
     */
    public function __construct(Request $request, $domain)
    {
        parent::__construct();
        $this->product('Location');
        $this->version('2015-06-12');
        $this->action('DescribeEndpoints');
        $this->regionId('cn-hangzhou');
        $this->format('JSON');
        $this->options['query']['Id']          = $request->realRegionId();
        $this->options['query']['ServiceCode'] = $request->serviceCode;
        $this->options['query']['Type']        = $request->endpointType;
        $this->client($request->client);
        $this->host($domain);
        if (isset($request->options['timeout'])) {
            $this->timeout($request->options['timeout']);
        }

        if (isset($request->options['connect_timeout'])) {
            $this->connectTimeout($request->options['connect_timeout']);
        }
    }
}