_endpointRule = ''; $this->checkConfig($config); $this->_endpoint = $this->getEndpoint('openplatform', $this->_regionId, $this->_endpointRule, $this->_network, $this->_suffix, $this->_endpointMap, $this->_endpoint); } /** * @param AuthorizeFileUploadRequest $request * @param RuntimeOptions $runtime * * @return AuthorizeFileUploadResponse */ public function authorizeFileUploadWithOptions($request, $runtime) { Utils::validateModel($request); return AuthorizeFileUploadResponse::fromMap($this->doRequest('AuthorizeFileUpload', 'HTTPS', 'GET', '2019-12-19', 'AK', Tea::merge($request), null, $runtime)); } /** * @param AuthorizeFileUploadRequest $request * * @return AuthorizeFileUploadResponse */ public function authorizeFileUpload($request) { $runtime = new RuntimeOptions([]); return $this->authorizeFileUploadWithOptions($request, $runtime); } /** * @param string $productId * @param string $regionId * @param string $endpointRule * @param string $network * @param string $suffix * @param string[] $endpointMap * @param string $endpoint * * @return string */ public function getEndpoint($productId, $regionId, $endpointRule, $network, $suffix, $endpointMap, $endpoint) { if (!Utils::empty_($endpoint)) { return $endpoint; } if (!Utils::isUnset($endpointMap) && !Utils::empty_(@$endpointMap[$regionId])) { return @$endpointMap[$regionId]; } return Endpoint::getEndpointRules($productId, $regionId, $endpointRule, $network, $suffix); } }