From dc63fa185ba64e505b4501451e9d8e671af0d370 Mon Sep 17 00:00:00 2001 From: sdk-team Date: Thu, 11 Aug 2022 12:35:28 +0000 Subject: [PATCH] =?UTF-8?q?[WIP]mocktest=E5=8F=98=E6=88=90=E5=BE=85?= =?UTF-8?q?=E5=AE=A1=E6=A0=B8=EF=BC=8C=E8=AF=B7=E5=8B=BF=E5=90=88=E5=B9=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ft-20180713/autoload.php | 2 - ft-20180713/src/Ft.php | 587 ++++++++---------- .../src/Models/BatchAuditTest01Request.php | 73 +-- .../src/Models/BatchAuditTest01Response.php | 58 +- .../Models/BatchAuditTest01ResponseBody.php | 60 +- .../BatchAuditTest01ResponseBody/demo01.php | 34 +- .../demo01/demo011.php | 41 +- .../demo01/demo011/demo011.php | 31 +- .../src/Models/FTApiAliasApiRequest.php | 31 +- .../src/Models/FTApiAliasApiResponse.php | 58 +- .../src/Models/FTApiAliasApiResponseBody.php | 45 +- .../Models/FtDynamicAddressDubboRequest.php | 45 +- .../Models/FtDynamicAddressDubboResponse.php | 58 +- .../FtDynamicAddressDubboResponseBody.php | 59 +- .../Models/FtDynamicAddressHsfResponse.php | 58 +- .../FtDynamicAddressHsfResponseBody.php | 31 +- .../Models/FtDynamicAddressHttpVpcRequest.php | 85 ++- .../FtDynamicAddressHttpVpcResponse.php | 58 +- .../FtDynamicAddressHttpVpcResponseBody.php | 45 +- .../FtDynamicAddressHttpVpcShrinkRequest.php | 87 ++- ft-20180713/src/Models/FtEagleEyeRequest.php | 31 +- ft-20180713/src/Models/FtEagleEyeResponse.php | 58 +- .../src/Models/FtEagleEyeResponseBody.php | 59 +- .../src/Models/FtFlowSpecialRequest.php | 31 +- .../src/Models/FtFlowSpecialResponse.php | 58 +- .../src/Models/FtFlowSpecialResponseBody.php | 45 +- .../Models/FtGatedLaunchPolicy4Request.php | 31 +- .../Models/FtGatedLaunchPolicy4Response.php | 58 +- .../FtGatedLaunchPolicy4ResponseBody.php | 45 +- .../src/Models/FtIpFlowControlRequest.php | 31 +- .../src/Models/FtIpFlowControlResponse.php | 58 +- .../Models/FtIpFlowControlResponseBody.php | 45 +- ft-20180713/src/Models/FtParamListRequest.php | 54 +- .../src/Models/FtParamListRequest/disk.php | 47 +- .../src/Models/FtParamListResponse.php | 58 +- .../src/Models/FtParamListResponseBody.php | 45 +- .../src/Models/TestFlowStrategy01Request.php | 31 +- .../src/Models/TestFlowStrategy01Response.php | 58 +- .../Models/TestFlowStrategy01ResponseBody.php | 63 +- .../TestFlowStrategy01ShrinkRequest.php | 31 +- ft-20180713/src/Models/TestHttpApiRequest.php | 71 +-- .../src/Models/TestHttpApiResponse.php | 58 +- .../src/Models/TestHttpApiResponseBody.php | 45 +- .../src/Models/TestHttpApiShrinkRequest.php | 73 +-- 44 files changed, 1116 insertions(+), 1614 deletions(-) diff --git a/ft-20180713/autoload.php b/ft-20180713/autoload.php index 0089779bec1..53501a97e38 100644 --- a/ft-20180713/autoload.php +++ b/ft-20180713/autoload.php @@ -9,9 +9,7 @@ $file = __DIR__ . \DIRECTORY_SEPARATOR . 'src' . \DIRECTORY_SEPARATOR . str_replace('\\', \DIRECTORY_SEPARATOR, $name) . '.php'; if (file_exists($file)) { require_once $file; - return true; } - return false; }); diff --git a/ft-20180713/src/Ft.php b/ft-20180713/src/Ft.php index cb4c34d9e80..786c68a8bbf 100644 --- a/ft-20180713/src/Ft.php +++ b/ft-20180713/src/Ft.php @@ -1,13 +1,18 @@ _signatureAlgorithm = 'v2'; - $this->_endpointRule = 'regional'; - $this->_endpointMap = [ - 'ap-northeast-2-pop' => 'ft.aliyuncs.com', - 'ap-south-1' => 'ft.aliyuncs.com', - 'ap-southeast-1' => 'ft.aliyuncs.com', - 'ap-southeast-2' => 'ft.aliyuncs.com', - 'ap-southeast-3' => 'ft.aliyuncs.com', - 'ap-southeast-5' => 'ft.aliyuncs.com', - 'cn-beijing' => 'ft.aliyuncs.com', - 'cn-beijing-finance-1' => 'ft.aliyuncs.com', - 'cn-beijing-finance-pop' => 'ft.aliyuncs.com', - 'cn-beijing-gov-1' => 'ft.aliyuncs.com', - 'cn-beijing-nu16-b01' => 'ft.aliyuncs.com', - 'cn-chengdu' => 'ft.aliyuncs.com', - 'cn-edge-1' => 'ft.aliyuncs.com', - 'cn-fujian' => 'ft.aliyuncs.com', - 'cn-haidian-cm12-c01' => 'ft.aliyuncs.com', - 'cn-hangzhou-bj-b01' => 'ft.aliyuncs.com', - 'cn-hangzhou-finance' => 'ft.aliyuncs.com', - 'cn-hangzhou-internal-prod-1' => 'ft.aliyuncs.com', - 'cn-hangzhou-internal-test-1' => 'ft.aliyuncs.com', - 'cn-hangzhou-internal-test-2' => 'ft.aliyuncs.com', - 'cn-hangzhou-internal-test-3' => 'ft.aliyuncs.com', - 'cn-hangzhou-test-306' => 'ft.aliyuncs.com', - 'cn-hongkong-finance-pop' => 'ft.aliyuncs.com', - 'cn-huhehaote' => 'ft.aliyuncs.com', - 'cn-huhehaote-nebula-1' => 'ft.aliyuncs.com', - 'cn-qingdao' => 'ft.aliyuncs.com', - 'cn-qingdao-nebula' => 'ft.aliyuncs.com', - 'cn-shanghai-et15-b01' => 'ft.aliyuncs.com', - 'cn-shanghai-et2-b01' => 'ft.aliyuncs.com', - 'cn-shanghai-finance-1' => 'ft.aliyuncs.com', - 'cn-shanghai-inner' => 'ft.aliyuncs.com', - 'cn-shanghai-internal-test-1' => 'ft.aliyuncs.com', - 'cn-shenzhen-finance-1' => 'ft.aliyuncs.com', - 'cn-shenzhen-inner' => 'ft.aliyuncs.com', - 'cn-shenzhen-st4-d01' => 'ft.aliyuncs.com', - 'cn-shenzhen-su18-b01' => 'ft.aliyuncs.com', - 'cn-wuhan' => 'ft.aliyuncs.com', - 'cn-wulanchabu' => 'ft.aliyuncs.com', - 'cn-yushanfang' => 'ft.aliyuncs.com', - 'cn-zhangbei' => 'ft.aliyuncs.com', - 'cn-zhangbei-na61-b01' => 'ft.aliyuncs.com', - 'cn-zhangjiakou-na62-a01' => 'ft.aliyuncs.com', - 'cn-zhengzhou-nebula-1' => 'ft.aliyuncs.com', - 'eu-central-1' => 'ft.aliyuncs.com', - 'eu-west-1' => 'ft.aliyuncs.com', - 'eu-west-1-oxs' => 'ft.aliyuncs.com', - 'me-east-1' => 'ft.aliyuncs.com', - 'rus-west-1-pop' => 'ft.aliyuncs.com', - 'us-west-1' => 'ft.aliyuncs.com', + $this->_signatureAlgorithm = "v2"; + $this->_endpointRule = "regional"; + $this->_endpointMap = [ + "ap-northeast-2-pop" => "ft.aliyuncs.com", + "ap-south-1" => "ft.aliyuncs.com", + "ap-southeast-1" => "ft.aliyuncs.com", + "ap-southeast-2" => "ft.aliyuncs.com", + "ap-southeast-3" => "ft.aliyuncs.com", + "ap-southeast-5" => "ft.aliyuncs.com", + "cn-beijing" => "ft.aliyuncs.com", + "cn-beijing-finance-1" => "ft.aliyuncs.com", + "cn-beijing-finance-pop" => "ft.aliyuncs.com", + "cn-beijing-gov-1" => "ft.aliyuncs.com", + "cn-beijing-nu16-b01" => "ft.aliyuncs.com", + "cn-chengdu" => "ft.aliyuncs.com", + "cn-edge-1" => "ft.aliyuncs.com", + "cn-fujian" => "ft.aliyuncs.com", + "cn-haidian-cm12-c01" => "ft.aliyuncs.com", + "cn-hangzhou-bj-b01" => "ft.aliyuncs.com", + "cn-hangzhou-finance" => "ft.aliyuncs.com", + "cn-hangzhou-internal-prod-1" => "ft.aliyuncs.com", + "cn-hangzhou-internal-test-1" => "ft.aliyuncs.com", + "cn-hangzhou-internal-test-2" => "ft.aliyuncs.com", + "cn-hangzhou-internal-test-3" => "ft.aliyuncs.com", + "cn-hangzhou-test-306" => "ft.aliyuncs.com", + "cn-hongkong-finance-pop" => "ft.aliyuncs.com", + "cn-huhehaote" => "ft.aliyuncs.com", + "cn-huhehaote-nebula-1" => "ft.aliyuncs.com", + "cn-qingdao" => "ft.aliyuncs.com", + "cn-qingdao-nebula" => "ft.aliyuncs.com", + "cn-shanghai-et15-b01" => "ft.aliyuncs.com", + "cn-shanghai-et2-b01" => "ft.aliyuncs.com", + "cn-shanghai-finance-1" => "ft.aliyuncs.com", + "cn-shanghai-inner" => "ft.aliyuncs.com", + "cn-shanghai-internal-test-1" => "ft.aliyuncs.com", + "cn-shenzhen-finance-1" => "ft.aliyuncs.com", + "cn-shenzhen-inner" => "ft.aliyuncs.com", + "cn-shenzhen-st4-d01" => "ft.aliyuncs.com", + "cn-shenzhen-su18-b01" => "ft.aliyuncs.com", + "cn-wuhan" => "ft.aliyuncs.com", + "cn-wulanchabu" => "ft.aliyuncs.com", + "cn-yushanfang" => "ft.aliyuncs.com", + "cn-zhangbei" => "ft.aliyuncs.com", + "cn-zhangbei-na61-b01" => "ft.aliyuncs.com", + "cn-zhangjiakou-na62-a01" => "ft.aliyuncs.com", + "cn-zhengzhou-nebula-1" => "ft.aliyuncs.com", + "eu-central-1" => "ft.aliyuncs.com", + "eu-west-1" => "ft.aliyuncs.com", + "eu-west-1-oxs" => "ft.aliyuncs.com", + "me-east-1" => "ft.aliyuncs.com", + "rus-west-1-pop" => "ft.aliyuncs.com", + "us-west-1" => "ft.aliyuncs.com" ]; $this->checkConfig($config); - $this->_endpoint = $this->getEndpoint('ft', $this->_regionId, $this->_endpointRule, $this->_network, $this->_suffix, $this->_endpointMap, $this->_endpoint); + $this->_endpoint = $this->getEndpoint("ft", $this->_regionId, $this->_endpointRule, $this->_network, $this->_suffix, $this->_endpointMap, $this->_endpoint); } /** - * @param string $productId - * @param string $regionId - * @param string $endpointRule - * @param string $network - * @param string $suffix + * @param string $productId + * @param string $regionId + * @param string $endpointRule + * @param string $network + * @param string $suffix * @param string[] $endpointMap - * @param string $endpoint - * + * @param string $endpoint * @return string */ - public function getEndpoint($productId, $regionId, $endpointRule, $network, $suffix, $endpointMap, $endpoint) - { + 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); } /** * @param BatchAuditTest01Request $request - * @param RuntimeOptions $runtime - * + * @param RuntimeOptions $runtime * @return BatchAuditTest01Response */ - public function batchAuditTest01WithOptions($request, $runtime) - { + public function batchAuditTest01WithOptions($request, $runtime){ Utils::validateModel($request); $query = []; if (!Utils::isUnset($request->batchAuditTest01)) { - $query['BatchAuditTest01'] = $request->batchAuditTest01; + $query["BatchAuditTest01"] = $request->batchAuditTest01; } if (!Utils::isUnset($request->demo01)) { - $query['Demo01'] = $request->demo01; + $query["Demo01"] = $request->demo01; } if (!Utils::isUnset($request->name)) { - $query['Name'] = $request->name; + $query["Name"] = $request->name; } $body = []; if (!Utils::isUnset($request->test010101)) { - $body['Test010101'] = $request->test010101; + $body["Test010101"] = $request->test010101; } $req = new OpenApiRequest([ - 'query' => OpenApiUtilClient::query($query), - 'body' => OpenApiUtilClient::parseToMap($body), + "query" => OpenApiUtilClient::query($query), + "body" => OpenApiUtilClient::parseToMap($body) ]); $params = new Params([ - 'action' => 'BatchAuditTest01', - 'version' => '2018-07-13', - 'protocol' => 'HTTPS', - 'pathname' => '/', - 'method' => 'POST', - 'authType' => 'Anonymous', - 'style' => 'RPC', - 'reqBodyType' => 'formData', - 'bodyType' => 'json', + "action" => "BatchAuditTest01", + "version" => "2018-07-13", + "protocol" => "HTTPS", + "pathname" => "/", + "method" => "POST", + "authType" => "Anonymous", + "style" => "RPC", + "reqBodyType" => "formData", + "bodyType" => "json" ]); - return BatchAuditTest01Response::fromMap($this->callApi($params, $req, $runtime)); } /** * @param BatchAuditTest01Request $request - * * @return BatchAuditTest01Response */ - public function batchAuditTest01($request) - { + public function batchAuditTest01($request){ $runtime = new RuntimeOptions([]); - return $this->batchAuditTest01WithOptions($request, $runtime); } /** * @param FTApiAliasApiRequest $request - * @param RuntimeOptions $runtime - * + * @param RuntimeOptions $runtime * @return FTApiAliasApiResponse */ - public function fTApiAliasApiWithOptions($request, $runtime) - { + public function fTApiAliasApiWithOptions($request, $runtime){ Utils::validateModel($request); $query = []; if (!Utils::isUnset($request->name)) { - $query['Name'] = $request->name; + $query["Name"] = $request->name; } $req = new OpenApiRequest([ - 'query' => OpenApiUtilClient::query($query), + "query" => OpenApiUtilClient::query($query) ]); $params = new Params([ - 'action' => 'FTApiAliasApi', - 'version' => '2018-07-13', - 'protocol' => 'HTTPS', - 'pathname' => '/', - 'method' => 'POST', - 'authType' => 'AK', - 'style' => 'RPC', - 'reqBodyType' => 'formData', - 'bodyType' => 'json', + "action" => "FTApiAliasApi", + "version" => "2018-07-13", + "protocol" => "HTTPS", + "pathname" => "/", + "method" => "POST", + "authType" => "AK", + "style" => "RPC", + "reqBodyType" => "formData", + "bodyType" => "json" ]); - return FTApiAliasApiResponse::fromMap($this->callApi($params, $req, $runtime)); } /** * @param FTApiAliasApiRequest $request - * * @return FTApiAliasApiResponse */ - public function fTApiAliasApi($request) - { + public function fTApiAliasApi($request){ $runtime = new RuntimeOptions([]); - return $this->fTApiAliasApiWithOptions($request, $runtime); } /** * @param FtDynamicAddressDubboRequest $request - * @param RuntimeOptions $runtime - * + * @param RuntimeOptions $runtime * @return FtDynamicAddressDubboResponse */ - public function ftDynamicAddressDubboWithOptions($request, $runtime) - { + public function ftDynamicAddressDubboWithOptions($request, $runtime){ Utils::validateModel($request); $query = []; if (!Utils::isUnset($request->intValue)) { - $query['IntValue'] = $request->intValue; + $query["IntValue"] = $request->intValue; } if (!Utils::isUnset($request->stringValue)) { - $query['StringValue'] = $request->stringValue; + $query["StringValue"] = $request->stringValue; } $req = new OpenApiRequest([ - 'query' => OpenApiUtilClient::query($query), + "query" => OpenApiUtilClient::query($query) ]); $params = new Params([ - 'action' => 'FtDynamicAddressDubbo', - 'version' => '2018-07-13', - 'protocol' => 'HTTPS', - 'pathname' => '/', - 'method' => 'POST', - 'authType' => 'AK', - 'style' => 'RPC', - 'reqBodyType' => 'formData', - 'bodyType' => 'json', + "action" => "FtDynamicAddressDubbo", + "version" => "2018-07-13", + "protocol" => "HTTPS", + "pathname" => "/", + "method" => "POST", + "authType" => "AK", + "style" => "RPC", + "reqBodyType" => "formData", + "bodyType" => "json" ]); - return FtDynamicAddressDubboResponse::fromMap($this->callApi($params, $req, $runtime)); } /** * @param FtDynamicAddressDubboRequest $request - * * @return FtDynamicAddressDubboResponse */ - public function ftDynamicAddressDubbo($request) - { + public function ftDynamicAddressDubbo($request){ $runtime = new RuntimeOptions([]); - return $this->ftDynamicAddressDubboWithOptions($request, $runtime); } /** * @param RuntimeOptions $runtime - * * @return FtDynamicAddressHsfResponse */ - public function ftDynamicAddressHsfWithOptions($runtime) - { - $req = new OpenApiRequest([]); + public function ftDynamicAddressHsfWithOptions($runtime){ + $req = new OpenApiRequest([]); $params = new Params([ - 'action' => 'FtDynamicAddressHsf', - 'version' => '2018-07-13', - 'protocol' => 'HTTPS', - 'pathname' => '/', - 'method' => 'POST', - 'authType' => 'AK', - 'style' => 'RPC', - 'reqBodyType' => 'formData', - 'bodyType' => 'json', + "action" => "FtDynamicAddressHsf", + "version" => "2018-07-13", + "protocol" => "HTTPS", + "pathname" => "/", + "method" => "POST", + "authType" => "AK", + "style" => "RPC", + "reqBodyType" => "formData", + "bodyType" => "json" ]); - return FtDynamicAddressHsfResponse::fromMap($this->callApi($params, $req, $runtime)); } /** * @return FtDynamicAddressHsfResponse */ - public function ftDynamicAddressHsf() - { + public function ftDynamicAddressHsf(){ $runtime = new RuntimeOptions([]); - return $this->ftDynamicAddressHsfWithOptions($runtime); } /** * @param FtDynamicAddressHttpVpcRequest $tmpReq - * @param RuntimeOptions $runtime - * + * @param RuntimeOptions $runtime * @return FtDynamicAddressHttpVpcResponse */ - public function ftDynamicAddressHttpVpcWithOptions($tmpReq, $runtime) - { + public function ftDynamicAddressHttpVpcWithOptions($tmpReq, $runtime){ Utils::validateModel($tmpReq); $request = new FtDynamicAddressHttpVpcShrinkRequest([]); OpenApiUtilClient::convert($tmpReq, $request); if (!Utils::isUnset($tmpReq->defaultValue)) { - $request->defaultValueShrink = OpenApiUtilClient::arrayToStringWithSpecifiedStyle($tmpReq->defaultValue, 'DefaultValue', 'json'); + $request->defaultValueShrink = OpenApiUtilClient::arrayToStringWithSpecifiedStyle($tmpReq->defaultValue, "DefaultValue", "json"); } if (!Utils::isUnset($tmpReq->otherParam)) { - $request->otherParamShrink = OpenApiUtilClient::arrayToStringWithSpecifiedStyle($tmpReq->otherParam, 'OtherParam', 'json'); + $request->otherParamShrink = OpenApiUtilClient::arrayToStringWithSpecifiedStyle($tmpReq->otherParam, "OtherParam", "json"); } if (!Utils::isUnset($tmpReq->stringValue)) { - $request->stringValueShrink = OpenApiUtilClient::arrayToStringWithSpecifiedStyle($tmpReq->stringValue, 'StringValue', 'json'); + $request->stringValueShrink = OpenApiUtilClient::arrayToStringWithSpecifiedStyle($tmpReq->stringValue, "StringValue", "json"); } $query = []; if (!Utils::isUnset($request->booleanParam)) { - $query['BooleanParam'] = $request->booleanParam; + $query["BooleanParam"] = $request->booleanParam; } if (!Utils::isUnset($request->defaultValueShrink)) { - $query['DefaultValue'] = $request->defaultValueShrink; + $query["DefaultValue"] = $request->defaultValueShrink; } if (!Utils::isUnset($request->otherParamShrink)) { - $query['OtherParam'] = $request->otherParamShrink; + $query["OtherParam"] = $request->otherParamShrink; } if (!Utils::isUnset($request->p1)) { - $query['P1'] = $request->p1; + $query["P1"] = $request->p1; } if (!Utils::isUnset($request->stringValueShrink)) { - $query['StringValue'] = $request->stringValueShrink; + $query["StringValue"] = $request->stringValueShrink; } $req = new OpenApiRequest([ - 'query' => OpenApiUtilClient::query($query), + "query" => OpenApiUtilClient::query($query) ]); $params = new Params([ - 'action' => 'FtDynamicAddressHttpVpc', - 'version' => '2018-07-13', - 'protocol' => 'HTTPS', - 'pathname' => '/', - 'method' => 'POST', - 'authType' => 'AK', - 'style' => 'RPC', - 'reqBodyType' => 'formData', - 'bodyType' => 'json', + "action" => "FtDynamicAddressHttpVpc", + "version" => "2018-07-13", + "protocol" => "HTTPS", + "pathname" => "/", + "method" => "POST", + "authType" => "AK", + "style" => "RPC", + "reqBodyType" => "formData", + "bodyType" => "json" ]); - return FtDynamicAddressHttpVpcResponse::fromMap($this->callApi($params, $req, $runtime)); } /** * @param FtDynamicAddressHttpVpcRequest $request - * * @return FtDynamicAddressHttpVpcResponse */ - public function ftDynamicAddressHttpVpc($request) - { + public function ftDynamicAddressHttpVpc($request){ $runtime = new RuntimeOptions([]); - return $this->ftDynamicAddressHttpVpcWithOptions($request, $runtime); } /** * @param FtEagleEyeRequest $request - * @param RuntimeOptions $runtime - * + * @param RuntimeOptions $runtime * @return FtEagleEyeResponse */ - public function ftEagleEyeWithOptions($request, $runtime) - { + public function ftEagleEyeWithOptions($request, $runtime){ Utils::validateModel($request); $query = []; if (!Utils::isUnset($request->name)) { - $query['Name'] = $request->name; + $query["Name"] = $request->name; } $req = new OpenApiRequest([ - 'query' => OpenApiUtilClient::query($query), + "query" => OpenApiUtilClient::query($query) ]); $params = new Params([ - 'action' => 'FtEagleEye', - 'version' => '2018-07-13', - 'protocol' => 'HTTPS', - 'pathname' => '/', - 'method' => 'POST', - 'authType' => 'AK', - 'style' => 'RPC', - 'reqBodyType' => 'formData', - 'bodyType' => 'json', + "action" => "FtEagleEye", + "version" => "2018-07-13", + "protocol" => "HTTPS", + "pathname" => "/", + "method" => "POST", + "authType" => "AK", + "style" => "RPC", + "reqBodyType" => "formData", + "bodyType" => "json" ]); - return FtEagleEyeResponse::fromMap($this->callApi($params, $req, $runtime)); } /** * @param FtEagleEyeRequest $request - * * @return FtEagleEyeResponse */ - public function ftEagleEye($request) - { + public function ftEagleEye($request){ $runtime = new RuntimeOptions([]); - return $this->ftEagleEyeWithOptions($request, $runtime); } /** * @param FtFlowSpecialRequest $request - * @param RuntimeOptions $runtime - * + * @param RuntimeOptions $runtime * @return FtFlowSpecialResponse */ - public function ftFlowSpecialWithOptions($request, $runtime) - { + public function ftFlowSpecialWithOptions($request, $runtime){ Utils::validateModel($request); $query = []; if (!Utils::isUnset($request->name)) { - $query['Name'] = $request->name; + $query["Name"] = $request->name; } $req = new OpenApiRequest([ - 'query' => OpenApiUtilClient::query($query), + "query" => OpenApiUtilClient::query($query) ]); $params = new Params([ - 'action' => 'FtFlowSpecial', - 'version' => '2018-07-13', - 'protocol' => 'HTTPS', - 'pathname' => '/', - 'method' => 'POST', - 'authType' => 'AK', - 'style' => 'RPC', - 'reqBodyType' => 'formData', - 'bodyType' => 'json', + "action" => "FtFlowSpecial", + "version" => "2018-07-13", + "protocol" => "HTTPS", + "pathname" => "/", + "method" => "POST", + "authType" => "AK", + "style" => "RPC", + "reqBodyType" => "formData", + "bodyType" => "json" ]); - return FtFlowSpecialResponse::fromMap($this->callApi($params, $req, $runtime)); } /** * @param FtFlowSpecialRequest $request - * * @return FtFlowSpecialResponse */ - public function ftFlowSpecial($request) - { + public function ftFlowSpecial($request){ $runtime = new RuntimeOptions([]); - return $this->ftFlowSpecialWithOptions($request, $runtime); } /** * @param FtGatedLaunchPolicy4Request $request - * @param RuntimeOptions $runtime - * + * @param RuntimeOptions $runtime * @return FtGatedLaunchPolicy4Response */ - public function ftGatedLaunchPolicy4WithOptions($request, $runtime) - { + public function ftGatedLaunchPolicy4WithOptions($request, $runtime){ Utils::validateModel($request); $query = []; if (!Utils::isUnset($request->isGatedLaunch)) { - $query['IsGatedLaunch'] = $request->isGatedLaunch; + $query["IsGatedLaunch"] = $request->isGatedLaunch; } $req = new OpenApiRequest([ - 'query' => OpenApiUtilClient::query($query), + "query" => OpenApiUtilClient::query($query) ]); $params = new Params([ - 'action' => 'FtGatedLaunchPolicy4', - 'version' => '2018-07-13', - 'protocol' => 'HTTPS', - 'pathname' => '/', - 'method' => 'POST', - 'authType' => 'AK', - 'style' => 'RPC', - 'reqBodyType' => 'formData', - 'bodyType' => 'json', + "action" => "FtGatedLaunchPolicy4", + "version" => "2018-07-13", + "protocol" => "HTTPS", + "pathname" => "/", + "method" => "POST", + "authType" => "AK", + "style" => "RPC", + "reqBodyType" => "formData", + "bodyType" => "json" ]); - return FtGatedLaunchPolicy4Response::fromMap($this->callApi($params, $req, $runtime)); } /** * @param FtGatedLaunchPolicy4Request $request - * * @return FtGatedLaunchPolicy4Response */ - public function ftGatedLaunchPolicy4($request) - { + public function ftGatedLaunchPolicy4($request){ $runtime = new RuntimeOptions([]); - return $this->ftGatedLaunchPolicy4WithOptions($request, $runtime); } /** * @param FtIpFlowControlRequest $request - * @param RuntimeOptions $runtime - * + * @param RuntimeOptions $runtime * @return FtIpFlowControlResponse */ - public function ftIpFlowControlWithOptions($request, $runtime) - { + public function ftIpFlowControlWithOptions($request, $runtime){ Utils::validateModel($request); $query = []; if (!Utils::isUnset($request->name)) { - $query['Name'] = $request->name; + $query["Name"] = $request->name; } $req = new OpenApiRequest([ - 'query' => OpenApiUtilClient::query($query), + "query" => OpenApiUtilClient::query($query) ]); $params = new Params([ - 'action' => 'FtIpFlowControl', - 'version' => '2018-07-13', - 'protocol' => 'HTTPS', - 'pathname' => '/', - 'method' => 'POST', - 'authType' => 'Anonymous', - 'style' => 'RPC', - 'reqBodyType' => 'formData', - 'bodyType' => 'json', + "action" => "FtIpFlowControl", + "version" => "2018-07-13", + "protocol" => "HTTPS", + "pathname" => "/", + "method" => "POST", + "authType" => "Anonymous", + "style" => "RPC", + "reqBodyType" => "formData", + "bodyType" => "json" ]); - return FtIpFlowControlResponse::fromMap($this->callApi($params, $req, $runtime)); } /** * @param FtIpFlowControlRequest $request - * * @return FtIpFlowControlResponse */ - public function ftIpFlowControl($request) - { + public function ftIpFlowControl($request){ $runtime = new RuntimeOptions([]); - return $this->ftIpFlowControlWithOptions($request, $runtime); } /** * @param FtParamListRequest $request - * @param RuntimeOptions $runtime - * + * @param RuntimeOptions $runtime * @return FtParamListResponse */ - public function ftParamListWithOptions($request, $runtime) - { + public function ftParamListWithOptions($request, $runtime){ Utils::validateModel($request); $query = []; if (!Utils::isUnset($request->disk)) { - $query['Disk'] = $request->disk; + $query["Disk"] = $request->disk; } if (!Utils::isUnset($request->name)) { - $query['Name'] = $request->name; + $query["Name"] = $request->name; } $req = new OpenApiRequest([ - 'query' => OpenApiUtilClient::query($query), + "query" => OpenApiUtilClient::query($query) ]); $params = new Params([ - 'action' => 'FtParamList', - 'version' => '2018-07-13', - 'protocol' => 'HTTPS', - 'pathname' => '/', - 'method' => 'POST', - 'authType' => 'AK', - 'style' => 'RPC', - 'reqBodyType' => 'formData', - 'bodyType' => 'json', + "action" => "FtParamList", + "version" => "2018-07-13", + "protocol" => "HTTPS", + "pathname" => "/", + "method" => "POST", + "authType" => "AK", + "style" => "RPC", + "reqBodyType" => "formData", + "bodyType" => "json" ]); - return FtParamListResponse::fromMap($this->callApi($params, $req, $runtime)); } /** * @param FtParamListRequest $request - * * @return FtParamListResponse */ - public function ftParamList($request) - { + public function ftParamList($request){ $runtime = new RuntimeOptions([]); - return $this->ftParamListWithOptions($request, $runtime); } /** * @param TestFlowStrategy01Request $tmpReq - * @param RuntimeOptions $runtime - * + * @param RuntimeOptions $runtime * @return TestFlowStrategy01Response */ - public function testFlowStrategy01WithOptions($tmpReq, $runtime) - { + public function testFlowStrategy01WithOptions($tmpReq, $runtime){ Utils::validateModel($tmpReq); $request = new TestFlowStrategy01ShrinkRequest([]); OpenApiUtilClient::convert($tmpReq, $request); if (!Utils::isUnset($tmpReq->names)) { - $request->namesShrink = OpenApiUtilClient::arrayToStringWithSpecifiedStyle($tmpReq->names, 'Names', 'json'); + $request->namesShrink = OpenApiUtilClient::arrayToStringWithSpecifiedStyle($tmpReq->names, "Names", "json"); } $body = []; if (!Utils::isUnset($request->namesShrink)) { - $body['Names'] = $request->namesShrink; + $body["Names"] = $request->namesShrink; } $req = new OpenApiRequest([ - 'body' => OpenApiUtilClient::parseToMap($body), + "body" => OpenApiUtilClient::parseToMap($body) ]); $params = new Params([ - 'action' => 'TestFlowStrategy01', - 'version' => '2018-07-13', - 'protocol' => 'HTTPS', - 'pathname' => '/', - 'method' => 'PUT', - 'authType' => 'AK', - 'style' => 'RPC', - 'reqBodyType' => 'formData', - 'bodyType' => 'json', + "action" => "TestFlowStrategy01", + "version" => "2018-07-13", + "protocol" => "HTTPS", + "pathname" => "/", + "method" => "PUT", + "authType" => "AK", + "style" => "RPC", + "reqBodyType" => "formData", + "bodyType" => "json" ]); - return TestFlowStrategy01Response::fromMap($this->callApi($params, $req, $runtime)); } /** * @param TestFlowStrategy01Request $request - * * @return TestFlowStrategy01Response */ - public function testFlowStrategy01($request) - { + public function testFlowStrategy01($request){ $runtime = new RuntimeOptions([]); - return $this->testFlowStrategy01WithOptions($request, $runtime); } /** * @param TestHttpApiRequest $tmpReq - * @param RuntimeOptions $runtime - * + * @param RuntimeOptions $runtime * @return TestHttpApiResponse */ - public function testHttpApiWithOptions($tmpReq, $runtime) - { + public function testHttpApiWithOptions($tmpReq, $runtime){ Utils::validateModel($tmpReq); $request = new TestHttpApiShrinkRequest([]); OpenApiUtilClient::convert($tmpReq, $request); if (!Utils::isUnset($tmpReq->defaultValue)) { - $request->defaultValueShrink = OpenApiUtilClient::arrayToStringWithSpecifiedStyle($tmpReq->defaultValue, 'DefaultValue', 'json'); + $request->defaultValueShrink = OpenApiUtilClient::arrayToStringWithSpecifiedStyle($tmpReq->defaultValue, "DefaultValue", "json"); } if (!Utils::isUnset($tmpReq->otherParam)) { - $request->otherParamShrink = OpenApiUtilClient::arrayToStringWithSpecifiedStyle($tmpReq->otherParam, 'OtherParam', 'json'); + $request->otherParamShrink = OpenApiUtilClient::arrayToStringWithSpecifiedStyle($tmpReq->otherParam, "OtherParam", "json"); } if (!Utils::isUnset($tmpReq->stringValue)) { - $request->stringValueShrink = OpenApiUtilClient::arrayToStringWithSpecifiedStyle($tmpReq->stringValue, 'StringValue', 'json'); + $request->stringValueShrink = OpenApiUtilClient::arrayToStringWithSpecifiedStyle($tmpReq->stringValue, "StringValue", "json"); } $query = []; if (!Utils::isUnset($request->booleanParam)) { - $query['BooleanParam'] = $request->booleanParam; + $query["BooleanParam"] = $request->booleanParam; } if (!Utils::isUnset($request->defaultValueShrink)) { - $query['DefaultValue'] = $request->defaultValueShrink; + $query["DefaultValue"] = $request->defaultValueShrink; } if (!Utils::isUnset($request->otherParamShrink)) { - $query['OtherParam'] = $request->otherParamShrink; + $query["OtherParam"] = $request->otherParamShrink; } if (!Utils::isUnset($request->stringValueShrink)) { - $query['StringValue'] = $request->stringValueShrink; + $query["StringValue"] = $request->stringValueShrink; } $req = new OpenApiRequest([ - 'query' => OpenApiUtilClient::query($query), + "query" => OpenApiUtilClient::query($query) ]); $params = new Params([ - 'action' => 'TestHttpApi', - 'version' => '2018-07-13', - 'protocol' => 'HTTPS', - 'pathname' => '/', - 'method' => 'POST', - 'authType' => 'AK', - 'style' => 'RPC', - 'reqBodyType' => 'formData', - 'bodyType' => 'json', + "action" => "TestHttpApi", + "version" => "2018-07-13", + "protocol" => "HTTPS", + "pathname" => "/", + "method" => "POST", + "authType" => "AK", + "style" => "RPC", + "reqBodyType" => "formData", + "bodyType" => "json" ]); - return TestHttpApiResponse::fromMap($this->callApi($params, $req, $runtime)); } /** * @param TestHttpApiRequest $request - * * @return TestHttpApiResponse */ - public function testHttpApi($request) - { + public function testHttpApi($request){ $runtime = new RuntimeOptions([]); - return $this->testHttpApiWithOptions($request, $runtime); } } diff --git a/ft-20180713/src/Models/BatchAuditTest01Request.php b/ft-20180713/src/Models/BatchAuditTest01Request.php index 33e5e13a723..d92c5c4d78b 100644 --- a/ft-20180713/src/Models/BatchAuditTest01Request.php +++ b/ft-20180713/src/Models/BatchAuditTest01Request.php @@ -1,45 +1,19 @@ 'BatchAuditTest01', - 'demo01' => 'Demo01', - 'name' => 'Name', - 'test010101' => 'Test010101', + 'demo01' => 'Demo01', + 'name' => 'Name', + 'test010101' => 'Test010101', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->batchAuditTest01) { $res['BatchAuditTest01'] = $this->batchAuditTest01; @@ -53,31 +27,46 @@ public function toMap() if (null !== $this->test010101) { $res['Test010101'] = $this->test010101; } - return $res; } - /** * @param array $map - * * @return BatchAuditTest01Request */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['BatchAuditTest01'])) { + if(isset($map['BatchAuditTest01'])){ $model->batchAuditTest01 = $map['BatchAuditTest01']; } - if (isset($map['Demo01'])) { + if(isset($map['Demo01'])){ $model->demo01 = $map['Demo01']; } - if (isset($map['Name'])) { + if(isset($map['Name'])){ $model->name = $map['Name']; } - if (isset($map['Test010101'])) { + if(isset($map['Test010101'])){ $model->test010101 = $map['Test010101']; } - return $model; } + /** + * @var string + */ + public $batchAuditTest01; + + /** + * @var string + */ + public $demo01; + + /** + * @var string + */ + public $name; + + /** + * @var bool + */ + public $test010101; + } diff --git a/ft-20180713/src/Models/BatchAuditTest01Response.php b/ft-20180713/src/Models/BatchAuditTest01Response.php index ec6b7ebdea4..84bc062ef0d 100644 --- a/ft-20180713/src/Models/BatchAuditTest01Response.php +++ b/ft-20180713/src/Models/BatchAuditTest01Response.php @@ -1,42 +1,24 @@ 'headers', + 'headers' => 'headers', 'statusCode' => 'statusCode', - 'body' => 'body', + 'body' => 'body', ]; - - public function validate() - { + public function validate() { Model::validateRequired('headers', $this->headers, true); Model::validateRequired('statusCode', $this->statusCode, true); Model::validateRequired('body', $this->body, true); } - - public function toMap() - { + public function toMap() { $res = []; if (null !== $this->headers) { $res['headers'] = $this->headers; @@ -47,28 +29,38 @@ public function toMap() if (null !== $this->body) { $res['body'] = null !== $this->body ? $this->body->toMap() : null; } - return $res; } - /** * @param array $map - * * @return BatchAuditTest01Response */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['headers'])) { + if(isset($map['headers'])){ $model->headers = $map['headers']; } - if (isset($map['statusCode'])) { + if(isset($map['statusCode'])){ $model->statusCode = $map['statusCode']; } - if (isset($map['body'])) { + if(isset($map['body'])){ $model->body = BatchAuditTest01ResponseBody::fromMap($map['body']); } - return $model; } + /** + * @var string[] + */ + public $headers; + + /** + * @var int + */ + public $statusCode; + + /** + * @var BatchAuditTest01ResponseBody + */ + public $body; + } diff --git a/ft-20180713/src/Models/BatchAuditTest01ResponseBody.php b/ft-20180713/src/Models/BatchAuditTest01ResponseBody.php index b5420b4899e..3ede7b5cb07 100644 --- a/ft-20180713/src/Models/BatchAuditTest01ResponseBody.php +++ b/ft-20180713/src/Models/BatchAuditTest01ResponseBody.php @@ -1,40 +1,20 @@ 'Demo01', - 'name' => 'Name', + 'demo01' => 'Demo01', + 'name' => 'Name', 'requestId' => 'RequestId', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->demo01) { $res['Demo01'] = null !== $this->demo01 ? $this->demo01->toMap() : null; @@ -45,28 +25,38 @@ public function toMap() if (null !== $this->requestId) { $res['RequestId'] = $this->requestId; } - return $res; } - /** * @param array $map - * * @return BatchAuditTest01ResponseBody */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['Demo01'])) { + if(isset($map['Demo01'])){ $model->demo01 = demo01::fromMap($map['Demo01']); } - if (isset($map['Name'])) { + if(isset($map['Name'])){ $model->name = $map['Name']; } - if (isset($map['RequestId'])) { + if(isset($map['RequestId'])){ $model->requestId = $map['RequestId']; } - return $model; } + /** + * @var demo01 + */ + public $demo01; + + /** + * @var string + */ + public $name; + + /** + * @var string + */ + public $requestId; + } diff --git a/ft-20180713/src/Models/BatchAuditTest01ResponseBody/demo01.php b/ft-20180713/src/Models/BatchAuditTest01ResponseBody/demo01.php index 016634a9384..9fe5d2ce880 100644 --- a/ft-20180713/src/Models/BatchAuditTest01ResponseBody/demo01.php +++ b/ft-20180713/src/Models/BatchAuditTest01ResponseBody/demo01.php @@ -1,48 +1,38 @@ 'Demo011', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->demo011) { $res['Demo011'] = null !== $this->demo011 ? $this->demo011->toMap() : null; } - return $res; } - /** * @param array $map - * * @return demo01 */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['Demo011'])) { + if(isset($map['Demo011'])){ $model->demo011 = demo011::fromMap($map['Demo011']); } - return $model; } + /** + * @var demo011 + */ + public $demo011; + } diff --git a/ft-20180713/src/Models/BatchAuditTest01ResponseBody/demo01/demo011.php b/ft-20180713/src/Models/BatchAuditTest01ResponseBody/demo01/demo011.php index 4068220df49..c76b4716856 100644 --- a/ft-20180713/src/Models/BatchAuditTest01ResponseBody/demo01/demo011.php +++ b/ft-20180713/src/Models/BatchAuditTest01ResponseBody/demo01/demo011.php @@ -1,59 +1,48 @@ 'Demo011', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->demo011) { $res['Demo011'] = []; - if (null !== $this->demo011 && \is_array($this->demo011)) { + if(null !== $this->demo011 && is_array($this->demo011)){ $n = 0; - foreach ($this->demo011 as $item) { + foreach($this->demo011 as $item){ $res['Demo011'][$n++] = null !== $item ? $item->toMap() : $item; } } } - return $res; } - /** * @param array $map - * * @return demo011 */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['Demo011'])) { - if (!empty($map['Demo011'])) { + if(isset($map['Demo011'])){ + if(!empty($map['Demo011'])){ $model->demo011 = []; - $n = 0; - foreach ($map['Demo011'] as $item) { + $n = 0; + foreach($map['Demo011'] as $item) { $model->demo011[$n++] = null !== $item ? \AlibabaCloud\SDK\Ft\V20180713\Models\BatchAuditTest01ResponseBody\demo01\demo011\demo011::fromMap($item) : $item; } } } - return $model; } + /** + * @var \AlibabaCloud\SDK\Ft\V20180713\Models\BatchAuditTest01ResponseBody\demo01\demo011\demo011[] + */ + public $demo011; + } diff --git a/ft-20180713/src/Models/BatchAuditTest01ResponseBody/demo01/demo011/demo011.php b/ft-20180713/src/Models/BatchAuditTest01ResponseBody/demo01/demo011/demo011.php index 7878a5fd85a..0984c0ea3c8 100644 --- a/ft-20180713/src/Models/BatchAuditTest01ResponseBody/demo01/demo011/demo011.php +++ b/ft-20180713/src/Models/BatchAuditTest01ResponseBody/demo01/demo011/demo011.php @@ -1,47 +1,36 @@ 'Demo0111', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->demo0111) { $res['Demo0111'] = $this->demo0111; } - return $res; } - /** * @param array $map - * * @return demo011 */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['Demo0111'])) { + if(isset($map['Demo0111'])){ $model->demo0111 = $map['Demo0111']; } - return $model; } + /** + * @var string + */ + public $demo0111; + } diff --git a/ft-20180713/src/Models/FTApiAliasApiRequest.php b/ft-20180713/src/Models/FTApiAliasApiRequest.php index bd9dabe9cd7..f014ef3279d 100644 --- a/ft-20180713/src/Models/FTApiAliasApiRequest.php +++ b/ft-20180713/src/Models/FTApiAliasApiRequest.php @@ -1,47 +1,36 @@ 'Name', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->name) { $res['Name'] = $this->name; } - return $res; } - /** * @param array $map - * * @return FTApiAliasApiRequest */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['Name'])) { + if(isset($map['Name'])){ $model->name = $map['Name']; } - return $model; } + /** + * @var string + */ + public $name; + } diff --git a/ft-20180713/src/Models/FTApiAliasApiResponse.php b/ft-20180713/src/Models/FTApiAliasApiResponse.php index 7a68dcb3177..c48e06a124b 100644 --- a/ft-20180713/src/Models/FTApiAliasApiResponse.php +++ b/ft-20180713/src/Models/FTApiAliasApiResponse.php @@ -1,42 +1,24 @@ 'headers', + 'headers' => 'headers', 'statusCode' => 'statusCode', - 'body' => 'body', + 'body' => 'body', ]; - - public function validate() - { + public function validate() { Model::validateRequired('headers', $this->headers, true); Model::validateRequired('statusCode', $this->statusCode, true); Model::validateRequired('body', $this->body, true); } - - public function toMap() - { + public function toMap() { $res = []; if (null !== $this->headers) { $res['headers'] = $this->headers; @@ -47,28 +29,38 @@ public function toMap() if (null !== $this->body) { $res['body'] = null !== $this->body ? $this->body->toMap() : null; } - return $res; } - /** * @param array $map - * * @return FTApiAliasApiResponse */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['headers'])) { + if(isset($map['headers'])){ $model->headers = $map['headers']; } - if (isset($map['statusCode'])) { + if(isset($map['statusCode'])){ $model->statusCode = $map['statusCode']; } - if (isset($map['body'])) { + if(isset($map['body'])){ $model->body = FTApiAliasApiResponseBody::fromMap($map['body']); } - return $model; } + /** + * @var string[] + */ + public $headers; + + /** + * @var int + */ + public $statusCode; + + /** + * @var FTApiAliasApiResponseBody + */ + public $body; + } diff --git a/ft-20180713/src/Models/FTApiAliasApiResponseBody.php b/ft-20180713/src/Models/FTApiAliasApiResponseBody.php index 655558f3d20..747de378f50 100644 --- a/ft-20180713/src/Models/FTApiAliasApiResponseBody.php +++ b/ft-20180713/src/Models/FTApiAliasApiResponseBody.php @@ -1,33 +1,17 @@ 'Name', + 'name' => 'Name', 'requestId' => 'RequestId', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->name) { $res['Name'] = $this->name; @@ -35,25 +19,30 @@ public function toMap() if (null !== $this->requestId) { $res['RequestId'] = $this->requestId; } - return $res; } - /** * @param array $map - * * @return FTApiAliasApiResponseBody */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['Name'])) { + if(isset($map['Name'])){ $model->name = $map['Name']; } - if (isset($map['RequestId'])) { + if(isset($map['RequestId'])){ $model->requestId = $map['RequestId']; } - return $model; } + /** + * @var string + */ + public $name; + + /** + * @var string + */ + public $requestId; + } diff --git a/ft-20180713/src/Models/FtDynamicAddressDubboRequest.php b/ft-20180713/src/Models/FtDynamicAddressDubboRequest.php index 1c7f592e99c..e5c316dadb0 100644 --- a/ft-20180713/src/Models/FtDynamicAddressDubboRequest.php +++ b/ft-20180713/src/Models/FtDynamicAddressDubboRequest.php @@ -1,33 +1,17 @@ 'IntValue', + 'intValue' => 'IntValue', 'stringValue' => 'StringValue', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->intValue) { $res['IntValue'] = $this->intValue; @@ -35,25 +19,30 @@ public function toMap() if (null !== $this->stringValue) { $res['StringValue'] = $this->stringValue; } - return $res; } - /** * @param array $map - * * @return FtDynamicAddressDubboRequest */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['IntValue'])) { + if(isset($map['IntValue'])){ $model->intValue = $map['IntValue']; } - if (isset($map['StringValue'])) { + if(isset($map['StringValue'])){ $model->stringValue = $map['StringValue']; } - return $model; } + /** + * @var int + */ + public $intValue; + + /** + * @var string + */ + public $stringValue; + } diff --git a/ft-20180713/src/Models/FtDynamicAddressDubboResponse.php b/ft-20180713/src/Models/FtDynamicAddressDubboResponse.php index b35a2b401e0..916ab6c1c3c 100644 --- a/ft-20180713/src/Models/FtDynamicAddressDubboResponse.php +++ b/ft-20180713/src/Models/FtDynamicAddressDubboResponse.php @@ -1,42 +1,24 @@ 'headers', + 'headers' => 'headers', 'statusCode' => 'statusCode', - 'body' => 'body', + 'body' => 'body', ]; - - public function validate() - { + public function validate() { Model::validateRequired('headers', $this->headers, true); Model::validateRequired('statusCode', $this->statusCode, true); Model::validateRequired('body', $this->body, true); } - - public function toMap() - { + public function toMap() { $res = []; if (null !== $this->headers) { $res['headers'] = $this->headers; @@ -47,28 +29,38 @@ public function toMap() if (null !== $this->body) { $res['body'] = null !== $this->body ? $this->body->toMap() : null; } - return $res; } - /** * @param array $map - * * @return FtDynamicAddressDubboResponse */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['headers'])) { + if(isset($map['headers'])){ $model->headers = $map['headers']; } - if (isset($map['statusCode'])) { + if(isset($map['statusCode'])){ $model->statusCode = $map['statusCode']; } - if (isset($map['body'])) { + if(isset($map['body'])){ $model->body = FtDynamicAddressDubboResponseBody::fromMap($map['body']); } - return $model; } + /** + * @var string[] + */ + public $headers; + + /** + * @var int + */ + public $statusCode; + + /** + * @var FtDynamicAddressDubboResponseBody + */ + public $body; + } diff --git a/ft-20180713/src/Models/FtDynamicAddressDubboResponseBody.php b/ft-20180713/src/Models/FtDynamicAddressDubboResponseBody.php index fc59aa91ee5..3538d74b5af 100644 --- a/ft-20180713/src/Models/FtDynamicAddressDubboResponseBody.php +++ b/ft-20180713/src/Models/FtDynamicAddressDubboResponseBody.php @@ -1,39 +1,18 @@ 'IntValue', - 'requestId' => 'RequestId', + 'intValue' => 'IntValue', + 'requestId' => 'RequestId', 'stringValue' => 'StringValue', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->intValue) { $res['IntValue'] = $this->intValue; @@ -44,28 +23,38 @@ public function toMap() if (null !== $this->stringValue) { $res['StringValue'] = $this->stringValue; } - return $res; } - /** * @param array $map - * * @return FtDynamicAddressDubboResponseBody */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['IntValue'])) { + if(isset($map['IntValue'])){ $model->intValue = $map['IntValue']; } - if (isset($map['RequestId'])) { + if(isset($map['RequestId'])){ $model->requestId = $map['RequestId']; } - if (isset($map['StringValue'])) { + if(isset($map['StringValue'])){ $model->stringValue = $map['StringValue']; } - return $model; } + /** + * @var int + */ + public $intValue; + + /** + * @var string + */ + public $requestId; + + /** + * @var string + */ + public $stringValue; + } diff --git a/ft-20180713/src/Models/FtDynamicAddressHsfResponse.php b/ft-20180713/src/Models/FtDynamicAddressHsfResponse.php index 17e66e1677f..8869644d5da 100644 --- a/ft-20180713/src/Models/FtDynamicAddressHsfResponse.php +++ b/ft-20180713/src/Models/FtDynamicAddressHsfResponse.php @@ -1,42 +1,24 @@ 'headers', + 'headers' => 'headers', 'statusCode' => 'statusCode', - 'body' => 'body', + 'body' => 'body', ]; - - public function validate() - { + public function validate() { Model::validateRequired('headers', $this->headers, true); Model::validateRequired('statusCode', $this->statusCode, true); Model::validateRequired('body', $this->body, true); } - - public function toMap() - { + public function toMap() { $res = []; if (null !== $this->headers) { $res['headers'] = $this->headers; @@ -47,28 +29,38 @@ public function toMap() if (null !== $this->body) { $res['body'] = null !== $this->body ? $this->body->toMap() : null; } - return $res; } - /** * @param array $map - * * @return FtDynamicAddressHsfResponse */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['headers'])) { + if(isset($map['headers'])){ $model->headers = $map['headers']; } - if (isset($map['statusCode'])) { + if(isset($map['statusCode'])){ $model->statusCode = $map['statusCode']; } - if (isset($map['body'])) { + if(isset($map['body'])){ $model->body = FtDynamicAddressHsfResponseBody::fromMap($map['body']); } - return $model; } + /** + * @var string[] + */ + public $headers; + + /** + * @var int + */ + public $statusCode; + + /** + * @var FtDynamicAddressHsfResponseBody + */ + public $body; + } diff --git a/ft-20180713/src/Models/FtDynamicAddressHsfResponseBody.php b/ft-20180713/src/Models/FtDynamicAddressHsfResponseBody.php index 04767dd7fd4..335c7213466 100644 --- a/ft-20180713/src/Models/FtDynamicAddressHsfResponseBody.php +++ b/ft-20180713/src/Models/FtDynamicAddressHsfResponseBody.php @@ -1,47 +1,36 @@ 'RequestId', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->requestId) { $res['RequestId'] = $this->requestId; } - return $res; } - /** * @param array $map - * * @return FtDynamicAddressHsfResponseBody */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['RequestId'])) { + if(isset($map['RequestId'])){ $model->requestId = $map['RequestId']; } - return $model; } + /** + * @var string + */ + public $requestId; + } diff --git a/ft-20180713/src/Models/FtDynamicAddressHttpVpcRequest.php b/ft-20180713/src/Models/FtDynamicAddressHttpVpcRequest.php index fc1873061be..6b6a5107410 100644 --- a/ft-20180713/src/Models/FtDynamicAddressHttpVpcRequest.php +++ b/ft-20180713/src/Models/FtDynamicAddressHttpVpcRequest.php @@ -1,51 +1,20 @@ 'BooleanParam', 'defaultValue' => 'DefaultValue', - 'otherParam' => 'OtherParam', - 'p1' => 'P1', - 'stringValue' => 'StringValue', + 'otherParam' => 'OtherParam', + 'p1' => 'P1', + 'stringValue' => 'StringValue', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->booleanParam) { $res['BooleanParam'] = $this->booleanParam; @@ -62,34 +31,54 @@ public function toMap() if (null !== $this->stringValue) { $res['StringValue'] = $this->stringValue; } - return $res; } - /** * @param array $map - * * @return FtDynamicAddressHttpVpcRequest */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['BooleanParam'])) { + if(isset($map['BooleanParam'])){ $model->booleanParam = $map['BooleanParam']; } - if (isset($map['DefaultValue'])) { + if(isset($map['DefaultValue'])){ $model->defaultValue = $map['DefaultValue']; } - if (isset($map['OtherParam'])) { + if(isset($map['OtherParam'])){ $model->otherParam = $map['OtherParam']; } - if (isset($map['P1'])) { + if(isset($map['P1'])){ $model->p1 = $map['P1']; } - if (isset($map['StringValue'])) { + if(isset($map['StringValue'])){ $model->stringValue = $map['StringValue']; } - return $model; } + /** + * @var bool + */ + public $booleanParam; + + /** + * @var mixed[] + */ + public $defaultValue; + + /** + * @var mixed[] + */ + public $otherParam; + + /** + * @var string + */ + public $p1; + + /** + * @var mixed[] + */ + public $stringValue; + } diff --git a/ft-20180713/src/Models/FtDynamicAddressHttpVpcResponse.php b/ft-20180713/src/Models/FtDynamicAddressHttpVpcResponse.php index 7ef129fbcf2..d96e27e40ea 100644 --- a/ft-20180713/src/Models/FtDynamicAddressHttpVpcResponse.php +++ b/ft-20180713/src/Models/FtDynamicAddressHttpVpcResponse.php @@ -1,42 +1,24 @@ 'headers', + 'headers' => 'headers', 'statusCode' => 'statusCode', - 'body' => 'body', + 'body' => 'body', ]; - - public function validate() - { + public function validate() { Model::validateRequired('headers', $this->headers, true); Model::validateRequired('statusCode', $this->statusCode, true); Model::validateRequired('body', $this->body, true); } - - public function toMap() - { + public function toMap() { $res = []; if (null !== $this->headers) { $res['headers'] = $this->headers; @@ -47,28 +29,38 @@ public function toMap() if (null !== $this->body) { $res['body'] = null !== $this->body ? $this->body->toMap() : null; } - return $res; } - /** * @param array $map - * * @return FtDynamicAddressHttpVpcResponse */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['headers'])) { + if(isset($map['headers'])){ $model->headers = $map['headers']; } - if (isset($map['statusCode'])) { + if(isset($map['statusCode'])){ $model->statusCode = $map['statusCode']; } - if (isset($map['body'])) { + if(isset($map['body'])){ $model->body = FtDynamicAddressHttpVpcResponseBody::fromMap($map['body']); } - return $model; } + /** + * @var string[] + */ + public $headers; + + /** + * @var int + */ + public $statusCode; + + /** + * @var FtDynamicAddressHttpVpcResponseBody + */ + public $body; + } diff --git a/ft-20180713/src/Models/FtDynamicAddressHttpVpcResponseBody.php b/ft-20180713/src/Models/FtDynamicAddressHttpVpcResponseBody.php index dc3640bdec0..69c1eb2ccb1 100644 --- a/ft-20180713/src/Models/FtDynamicAddressHttpVpcResponseBody.php +++ b/ft-20180713/src/Models/FtDynamicAddressHttpVpcResponseBody.php @@ -1,33 +1,17 @@ 'Params', + 'params' => 'Params', 'serviceRpcSign' => 'ServiceRpcSign', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->params) { $res['Params'] = $this->params; @@ -35,25 +19,30 @@ public function toMap() if (null !== $this->serviceRpcSign) { $res['ServiceRpcSign'] = $this->serviceRpcSign; } - return $res; } - /** * @param array $map - * * @return FtDynamicAddressHttpVpcResponseBody */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['Params'])) { + if(isset($map['Params'])){ $model->params = $map['Params']; } - if (isset($map['ServiceRpcSign'])) { + if(isset($map['ServiceRpcSign'])){ $model->serviceRpcSign = $map['ServiceRpcSign']; } - return $model; } + /** + * @var string + */ + public $params; + + /** + * @var string + */ + public $serviceRpcSign; + } diff --git a/ft-20180713/src/Models/FtDynamicAddressHttpVpcShrinkRequest.php b/ft-20180713/src/Models/FtDynamicAddressHttpVpcShrinkRequest.php index 025fb8e39bf..6a5f376fb84 100644 --- a/ft-20180713/src/Models/FtDynamicAddressHttpVpcShrinkRequest.php +++ b/ft-20180713/src/Models/FtDynamicAddressHttpVpcShrinkRequest.php @@ -1,51 +1,20 @@ 'BooleanParam', + 'booleanParam' => 'BooleanParam', 'defaultValueShrink' => 'DefaultValue', - 'otherParamShrink' => 'OtherParam', - 'p1' => 'P1', - 'stringValueShrink' => 'StringValue', + 'otherParamShrink' => 'OtherParam', + 'p1' => 'P1', + 'stringValueShrink' => 'StringValue', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->booleanParam) { $res['BooleanParam'] = $this->booleanParam; @@ -62,34 +31,54 @@ public function toMap() if (null !== $this->stringValueShrink) { $res['StringValue'] = $this->stringValueShrink; } - return $res; } - /** * @param array $map - * * @return FtDynamicAddressHttpVpcShrinkRequest */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['BooleanParam'])) { + if(isset($map['BooleanParam'])){ $model->booleanParam = $map['BooleanParam']; } - if (isset($map['DefaultValue'])) { + if(isset($map['DefaultValue'])){ $model->defaultValueShrink = $map['DefaultValue']; } - if (isset($map['OtherParam'])) { + if(isset($map['OtherParam'])){ $model->otherParamShrink = $map['OtherParam']; } - if (isset($map['P1'])) { + if(isset($map['P1'])){ $model->p1 = $map['P1']; } - if (isset($map['StringValue'])) { + if(isset($map['StringValue'])){ $model->stringValueShrink = $map['StringValue']; } - return $model; } + /** + * @var bool + */ + public $booleanParam; + + /** + * @var string + */ + public $defaultValueShrink; + + /** + * @var string + */ + public $otherParamShrink; + + /** + * @var string + */ + public $p1; + + /** + * @var string + */ + public $stringValueShrink; + } diff --git a/ft-20180713/src/Models/FtEagleEyeRequest.php b/ft-20180713/src/Models/FtEagleEyeRequest.php index a36aec7f544..6352b6b85e2 100644 --- a/ft-20180713/src/Models/FtEagleEyeRequest.php +++ b/ft-20180713/src/Models/FtEagleEyeRequest.php @@ -1,47 +1,36 @@ 'Name', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->name) { $res['Name'] = $this->name; } - return $res; } - /** * @param array $map - * * @return FtEagleEyeRequest */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['Name'])) { + if(isset($map['Name'])){ $model->name = $map['Name']; } - return $model; } + /** + * @var string + */ + public $name; + } diff --git a/ft-20180713/src/Models/FtEagleEyeResponse.php b/ft-20180713/src/Models/FtEagleEyeResponse.php index 54ab78685df..b35d9549ab7 100644 --- a/ft-20180713/src/Models/FtEagleEyeResponse.php +++ b/ft-20180713/src/Models/FtEagleEyeResponse.php @@ -1,42 +1,24 @@ 'headers', + 'headers' => 'headers', 'statusCode' => 'statusCode', - 'body' => 'body', + 'body' => 'body', ]; - - public function validate() - { + public function validate() { Model::validateRequired('headers', $this->headers, true); Model::validateRequired('statusCode', $this->statusCode, true); Model::validateRequired('body', $this->body, true); } - - public function toMap() - { + public function toMap() { $res = []; if (null !== $this->headers) { $res['headers'] = $this->headers; @@ -47,28 +29,38 @@ public function toMap() if (null !== $this->body) { $res['body'] = null !== $this->body ? $this->body->toMap() : null; } - return $res; } - /** * @param array $map - * * @return FtEagleEyeResponse */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['headers'])) { + if(isset($map['headers'])){ $model->headers = $map['headers']; } - if (isset($map['statusCode'])) { + if(isset($map['statusCode'])){ $model->statusCode = $map['statusCode']; } - if (isset($map['body'])) { + if(isset($map['body'])){ $model->body = FtEagleEyeResponseBody::fromMap($map['body']); } - return $model; } + /** + * @var string[] + */ + public $headers; + + /** + * @var int + */ + public $statusCode; + + /** + * @var FtEagleEyeResponseBody + */ + public $body; + } diff --git a/ft-20180713/src/Models/FtEagleEyeResponseBody.php b/ft-20180713/src/Models/FtEagleEyeResponseBody.php index 60928148add..c180e44e89d 100644 --- a/ft-20180713/src/Models/FtEagleEyeResponseBody.php +++ b/ft-20180713/src/Models/FtEagleEyeResponseBody.php @@ -1,39 +1,18 @@ 'Name', - 'requestId' => 'RequestId', + 'name' => 'Name', + 'requestId' => 'RequestId', 'eagleEyeTraceId' => 'eagleEyeTraceId', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->name) { $res['Name'] = $this->name; @@ -44,28 +23,38 @@ public function toMap() if (null !== $this->eagleEyeTraceId) { $res['eagleEyeTraceId'] = $this->eagleEyeTraceId; } - return $res; } - /** * @param array $map - * * @return FtEagleEyeResponseBody */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['Name'])) { + if(isset($map['Name'])){ $model->name = $map['Name']; } - if (isset($map['RequestId'])) { + if(isset($map['RequestId'])){ $model->requestId = $map['RequestId']; } - if (isset($map['eagleEyeTraceId'])) { + if(isset($map['eagleEyeTraceId'])){ $model->eagleEyeTraceId = $map['eagleEyeTraceId']; } - return $model; } + /** + * @var string + */ + public $name; + + /** + * @var string + */ + public $requestId; + + /** + * @var string + */ + public $eagleEyeTraceId; + } diff --git a/ft-20180713/src/Models/FtFlowSpecialRequest.php b/ft-20180713/src/Models/FtFlowSpecialRequest.php index 9dc4f273710..8fd4e1c9c15 100644 --- a/ft-20180713/src/Models/FtFlowSpecialRequest.php +++ b/ft-20180713/src/Models/FtFlowSpecialRequest.php @@ -1,47 +1,36 @@ 'Name', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->name) { $res['Name'] = $this->name; } - return $res; } - /** * @param array $map - * * @return FtFlowSpecialRequest */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['Name'])) { + if(isset($map['Name'])){ $model->name = $map['Name']; } - return $model; } + /** + * @var string + */ + public $name; + } diff --git a/ft-20180713/src/Models/FtFlowSpecialResponse.php b/ft-20180713/src/Models/FtFlowSpecialResponse.php index 2f5ec877678..afad7b41126 100644 --- a/ft-20180713/src/Models/FtFlowSpecialResponse.php +++ b/ft-20180713/src/Models/FtFlowSpecialResponse.php @@ -1,42 +1,24 @@ 'headers', + 'headers' => 'headers', 'statusCode' => 'statusCode', - 'body' => 'body', + 'body' => 'body', ]; - - public function validate() - { + public function validate() { Model::validateRequired('headers', $this->headers, true); Model::validateRequired('statusCode', $this->statusCode, true); Model::validateRequired('body', $this->body, true); } - - public function toMap() - { + public function toMap() { $res = []; if (null !== $this->headers) { $res['headers'] = $this->headers; @@ -47,28 +29,38 @@ public function toMap() if (null !== $this->body) { $res['body'] = null !== $this->body ? $this->body->toMap() : null; } - return $res; } - /** * @param array $map - * * @return FtFlowSpecialResponse */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['headers'])) { + if(isset($map['headers'])){ $model->headers = $map['headers']; } - if (isset($map['statusCode'])) { + if(isset($map['statusCode'])){ $model->statusCode = $map['statusCode']; } - if (isset($map['body'])) { + if(isset($map['body'])){ $model->body = FtFlowSpecialResponseBody::fromMap($map['body']); } - return $model; } + /** + * @var string[] + */ + public $headers; + + /** + * @var int + */ + public $statusCode; + + /** + * @var FtFlowSpecialResponseBody + */ + public $body; + } diff --git a/ft-20180713/src/Models/FtFlowSpecialResponseBody.php b/ft-20180713/src/Models/FtFlowSpecialResponseBody.php index 90741b459fc..239e934fcf7 100644 --- a/ft-20180713/src/Models/FtFlowSpecialResponseBody.php +++ b/ft-20180713/src/Models/FtFlowSpecialResponseBody.php @@ -1,33 +1,17 @@ 'Name', + 'name' => 'Name', 'requestId' => 'RequestId', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->name) { $res['Name'] = $this->name; @@ -35,25 +19,30 @@ public function toMap() if (null !== $this->requestId) { $res['RequestId'] = $this->requestId; } - return $res; } - /** * @param array $map - * * @return FtFlowSpecialResponseBody */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['Name'])) { + if(isset($map['Name'])){ $model->name = $map['Name']; } - if (isset($map['RequestId'])) { + if(isset($map['RequestId'])){ $model->requestId = $map['RequestId']; } - return $model; } + /** + * @var string + */ + public $name; + + /** + * @var string + */ + public $requestId; + } diff --git a/ft-20180713/src/Models/FtGatedLaunchPolicy4Request.php b/ft-20180713/src/Models/FtGatedLaunchPolicy4Request.php index 16cb79b9ac8..1e3cb0c30bf 100644 --- a/ft-20180713/src/Models/FtGatedLaunchPolicy4Request.php +++ b/ft-20180713/src/Models/FtGatedLaunchPolicy4Request.php @@ -1,47 +1,36 @@ 'IsGatedLaunch', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->isGatedLaunch) { $res['IsGatedLaunch'] = $this->isGatedLaunch; } - return $res; } - /** * @param array $map - * * @return FtGatedLaunchPolicy4Request */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['IsGatedLaunch'])) { + if(isset($map['IsGatedLaunch'])){ $model->isGatedLaunch = $map['IsGatedLaunch']; } - return $model; } + /** + * @var string + */ + public $isGatedLaunch; + } diff --git a/ft-20180713/src/Models/FtGatedLaunchPolicy4Response.php b/ft-20180713/src/Models/FtGatedLaunchPolicy4Response.php index ad465b1f0b0..bc4109a8983 100644 --- a/ft-20180713/src/Models/FtGatedLaunchPolicy4Response.php +++ b/ft-20180713/src/Models/FtGatedLaunchPolicy4Response.php @@ -1,42 +1,24 @@ 'headers', + 'headers' => 'headers', 'statusCode' => 'statusCode', - 'body' => 'body', + 'body' => 'body', ]; - - public function validate() - { + public function validate() { Model::validateRequired('headers', $this->headers, true); Model::validateRequired('statusCode', $this->statusCode, true); Model::validateRequired('body', $this->body, true); } - - public function toMap() - { + public function toMap() { $res = []; if (null !== $this->headers) { $res['headers'] = $this->headers; @@ -47,28 +29,38 @@ public function toMap() if (null !== $this->body) { $res['body'] = null !== $this->body ? $this->body->toMap() : null; } - return $res; } - /** * @param array $map - * * @return FtGatedLaunchPolicy4Response */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['headers'])) { + if(isset($map['headers'])){ $model->headers = $map['headers']; } - if (isset($map['statusCode'])) { + if(isset($map['statusCode'])){ $model->statusCode = $map['statusCode']; } - if (isset($map['body'])) { + if(isset($map['body'])){ $model->body = FtGatedLaunchPolicy4ResponseBody::fromMap($map['body']); } - return $model; } + /** + * @var string[] + */ + public $headers; + + /** + * @var int + */ + public $statusCode; + + /** + * @var FtGatedLaunchPolicy4ResponseBody + */ + public $body; + } diff --git a/ft-20180713/src/Models/FtGatedLaunchPolicy4ResponseBody.php b/ft-20180713/src/Models/FtGatedLaunchPolicy4ResponseBody.php index 8a317491291..2de1c3da153 100644 --- a/ft-20180713/src/Models/FtGatedLaunchPolicy4ResponseBody.php +++ b/ft-20180713/src/Models/FtGatedLaunchPolicy4ResponseBody.php @@ -1,33 +1,17 @@ 'IsGatedLaunch', - 'requestId' => 'RequestId', + 'requestId' => 'RequestId', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->isGatedLaunch) { $res['IsGatedLaunch'] = $this->isGatedLaunch; @@ -35,25 +19,30 @@ public function toMap() if (null !== $this->requestId) { $res['RequestId'] = $this->requestId; } - return $res; } - /** * @param array $map - * * @return FtGatedLaunchPolicy4ResponseBody */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['IsGatedLaunch'])) { + if(isset($map['IsGatedLaunch'])){ $model->isGatedLaunch = $map['IsGatedLaunch']; } - if (isset($map['RequestId'])) { + if(isset($map['RequestId'])){ $model->requestId = $map['RequestId']; } - return $model; } + /** + * @var string + */ + public $isGatedLaunch; + + /** + * @var string + */ + public $requestId; + } diff --git a/ft-20180713/src/Models/FtIpFlowControlRequest.php b/ft-20180713/src/Models/FtIpFlowControlRequest.php index 8e5138c4025..119748ac5c5 100644 --- a/ft-20180713/src/Models/FtIpFlowControlRequest.php +++ b/ft-20180713/src/Models/FtIpFlowControlRequest.php @@ -1,47 +1,36 @@ 'Name', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->name) { $res['Name'] = $this->name; } - return $res; } - /** * @param array $map - * * @return FtIpFlowControlRequest */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['Name'])) { + if(isset($map['Name'])){ $model->name = $map['Name']; } - return $model; } + /** + * @var string + */ + public $name; + } diff --git a/ft-20180713/src/Models/FtIpFlowControlResponse.php b/ft-20180713/src/Models/FtIpFlowControlResponse.php index 583a0a578d2..9b819ff205e 100644 --- a/ft-20180713/src/Models/FtIpFlowControlResponse.php +++ b/ft-20180713/src/Models/FtIpFlowControlResponse.php @@ -1,42 +1,24 @@ 'headers', + 'headers' => 'headers', 'statusCode' => 'statusCode', - 'body' => 'body', + 'body' => 'body', ]; - - public function validate() - { + public function validate() { Model::validateRequired('headers', $this->headers, true); Model::validateRequired('statusCode', $this->statusCode, true); Model::validateRequired('body', $this->body, true); } - - public function toMap() - { + public function toMap() { $res = []; if (null !== $this->headers) { $res['headers'] = $this->headers; @@ -47,28 +29,38 @@ public function toMap() if (null !== $this->body) { $res['body'] = null !== $this->body ? $this->body->toMap() : null; } - return $res; } - /** * @param array $map - * * @return FtIpFlowControlResponse */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['headers'])) { + if(isset($map['headers'])){ $model->headers = $map['headers']; } - if (isset($map['statusCode'])) { + if(isset($map['statusCode'])){ $model->statusCode = $map['statusCode']; } - if (isset($map['body'])) { + if(isset($map['body'])){ $model->body = FtIpFlowControlResponseBody::fromMap($map['body']); } - return $model; } + /** + * @var string[] + */ + public $headers; + + /** + * @var int + */ + public $statusCode; + + /** + * @var FtIpFlowControlResponseBody + */ + public $body; + } diff --git a/ft-20180713/src/Models/FtIpFlowControlResponseBody.php b/ft-20180713/src/Models/FtIpFlowControlResponseBody.php index c1ecbfc453a..1a721977c9d 100644 --- a/ft-20180713/src/Models/FtIpFlowControlResponseBody.php +++ b/ft-20180713/src/Models/FtIpFlowControlResponseBody.php @@ -1,33 +1,17 @@ 'Name', + 'name' => 'Name', 'requestId' => 'RequestId', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->name) { $res['Name'] = $this->name; @@ -35,25 +19,30 @@ public function toMap() if (null !== $this->requestId) { $res['RequestId'] = $this->requestId; } - return $res; } - /** * @param array $map - * * @return FtIpFlowControlResponseBody */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['Name'])) { + if(isset($map['Name'])){ $model->name = $map['Name']; } - if (isset($map['RequestId'])) { + if(isset($map['RequestId'])){ $model->requestId = $map['RequestId']; } - return $model; } + /** + * @var string + */ + public $name; + + /** + * @var string + */ + public $requestId; + } diff --git a/ft-20180713/src/Models/FtParamListRequest.php b/ft-20180713/src/Models/FtParamListRequest.php index 9b33d2c3a81..cb124af5e35 100644 --- a/ft-20180713/src/Models/FtParamListRequest.php +++ b/ft-20180713/src/Models/FtParamListRequest.php @@ -1,40 +1,25 @@ 'Disk', 'name' => 'Name', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->disk) { $res['Disk'] = []; - if (null !== $this->disk && \is_array($this->disk)) { + if(null !== $this->disk && is_array($this->disk)){ $n = 0; - foreach ($this->disk as $item) { + foreach($this->disk as $item){ $res['Disk'][$n++] = null !== $item ? $item->toMap() : $item; } } @@ -42,31 +27,36 @@ public function toMap() if (null !== $this->name) { $res['Name'] = $this->name; } - return $res; } - /** * @param array $map - * * @return FtParamListRequest */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['Disk'])) { - if (!empty($map['Disk'])) { + if(isset($map['Disk'])){ + if(!empty($map['Disk'])){ $model->disk = []; - $n = 0; - foreach ($map['Disk'] as $item) { + $n = 0; + foreach($map['Disk'] as $item) { $model->disk[$n++] = null !== $item ? disk::fromMap($item) : $item; } } } - if (isset($map['Name'])) { + if(isset($map['Name'])){ $model->name = $map['Name']; } - return $model; } + /** + * @var disk[] + */ + public $disk; + + /** + * @var string + */ + public $name; + } diff --git a/ft-20180713/src/Models/FtParamListRequest/disk.php b/ft-20180713/src/Models/FtParamListRequest/disk.php index dcf575ce533..65ea4ec2fce 100644 --- a/ft-20180713/src/Models/FtParamListRequest/disk.php +++ b/ft-20180713/src/Models/FtParamListRequest/disk.php @@ -1,33 +1,17 @@ 'Size', 'type' => 'Type', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->size) { $res['Size'] = $this->size; @@ -35,29 +19,34 @@ public function toMap() if (null !== $this->type) { $res['Type'] = $this->type; } - return $res; } - /** * @param array $map - * * @return disk */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['Size'])) { - if (!empty($map['Size'])) { + if(isset($map['Size'])){ + if(!empty($map['Size'])){ $model->size = $map['Size']; } } - if (isset($map['Type'])) { - if (!empty($map['Type'])) { + if(isset($map['Type'])){ + if(!empty($map['Type'])){ $model->type = $map['Type']; } } - return $model; } + /** + * @var string[] + */ + public $size; + + /** + * @var string[] + */ + public $type; + } diff --git a/ft-20180713/src/Models/FtParamListResponse.php b/ft-20180713/src/Models/FtParamListResponse.php index 200b073773f..20f27a13488 100644 --- a/ft-20180713/src/Models/FtParamListResponse.php +++ b/ft-20180713/src/Models/FtParamListResponse.php @@ -1,42 +1,24 @@ 'headers', + 'headers' => 'headers', 'statusCode' => 'statusCode', - 'body' => 'body', + 'body' => 'body', ]; - - public function validate() - { + public function validate() { Model::validateRequired('headers', $this->headers, true); Model::validateRequired('statusCode', $this->statusCode, true); Model::validateRequired('body', $this->body, true); } - - public function toMap() - { + public function toMap() { $res = []; if (null !== $this->headers) { $res['headers'] = $this->headers; @@ -47,28 +29,38 @@ public function toMap() if (null !== $this->body) { $res['body'] = null !== $this->body ? $this->body->toMap() : null; } - return $res; } - /** * @param array $map - * * @return FtParamListResponse */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['headers'])) { + if(isset($map['headers'])){ $model->headers = $map['headers']; } - if (isset($map['statusCode'])) { + if(isset($map['statusCode'])){ $model->statusCode = $map['statusCode']; } - if (isset($map['body'])) { + if(isset($map['body'])){ $model->body = FtParamListResponseBody::fromMap($map['body']); } - return $model; } + /** + * @var string[] + */ + public $headers; + + /** + * @var int + */ + public $statusCode; + + /** + * @var FtParamListResponseBody + */ + public $body; + } diff --git a/ft-20180713/src/Models/FtParamListResponseBody.php b/ft-20180713/src/Models/FtParamListResponseBody.php index 7503d1d2d1e..cfc7c48118f 100644 --- a/ft-20180713/src/Models/FtParamListResponseBody.php +++ b/ft-20180713/src/Models/FtParamListResponseBody.php @@ -1,33 +1,17 @@ 'Name', + 'name' => 'Name', 'requestId' => 'RequestId', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->name) { $res['Name'] = $this->name; @@ -35,25 +19,30 @@ public function toMap() if (null !== $this->requestId) { $res['RequestId'] = $this->requestId; } - return $res; } - /** * @param array $map - * * @return FtParamListResponseBody */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['Name'])) { + if(isset($map['Name'])){ $model->name = $map['Name']; } - if (isset($map['RequestId'])) { + if(isset($map['RequestId'])){ $model->requestId = $map['RequestId']; } - return $model; } + /** + * @var string + */ + public $name; + + /** + * @var string + */ + public $requestId; + } diff --git a/ft-20180713/src/Models/TestFlowStrategy01Request.php b/ft-20180713/src/Models/TestFlowStrategy01Request.php index 552e717bcf3..b2a30984c85 100644 --- a/ft-20180713/src/Models/TestFlowStrategy01Request.php +++ b/ft-20180713/src/Models/TestFlowStrategy01Request.php @@ -1,47 +1,36 @@ 'Names', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->names) { $res['Names'] = $this->names; } - return $res; } - /** * @param array $map - * * @return TestFlowStrategy01Request */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['Names'])) { + if(isset($map['Names'])){ $model->names = $map['Names']; } - return $model; } + /** + * @var mixed[] + */ + public $names; + } diff --git a/ft-20180713/src/Models/TestFlowStrategy01Response.php b/ft-20180713/src/Models/TestFlowStrategy01Response.php index 189b1297d7a..7a3863172e3 100644 --- a/ft-20180713/src/Models/TestFlowStrategy01Response.php +++ b/ft-20180713/src/Models/TestFlowStrategy01Response.php @@ -1,42 +1,24 @@ 'headers', + 'headers' => 'headers', 'statusCode' => 'statusCode', - 'body' => 'body', + 'body' => 'body', ]; - - public function validate() - { + public function validate() { Model::validateRequired('headers', $this->headers, true); Model::validateRequired('statusCode', $this->statusCode, true); Model::validateRequired('body', $this->body, true); } - - public function toMap() - { + public function toMap() { $res = []; if (null !== $this->headers) { $res['headers'] = $this->headers; @@ -47,28 +29,38 @@ public function toMap() if (null !== $this->body) { $res['body'] = null !== $this->body ? $this->body->toMap() : null; } - return $res; } - /** * @param array $map - * * @return TestFlowStrategy01Response */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['headers'])) { + if(isset($map['headers'])){ $model->headers = $map['headers']; } - if (isset($map['statusCode'])) { + if(isset($map['statusCode'])){ $model->statusCode = $map['statusCode']; } - if (isset($map['body'])) { + if(isset($map['body'])){ $model->body = TestFlowStrategy01ResponseBody::fromMap($map['body']); } - return $model; } + /** + * @var string[] + */ + public $headers; + + /** + * @var int + */ + public $statusCode; + + /** + * @var TestFlowStrategy01ResponseBody + */ + public $body; + } diff --git a/ft-20180713/src/Models/TestFlowStrategy01ResponseBody.php b/ft-20180713/src/Models/TestFlowStrategy01ResponseBody.php index 3e122d66293..bb585b6830d 100644 --- a/ft-20180713/src/Models/TestFlowStrategy01ResponseBody.php +++ b/ft-20180713/src/Models/TestFlowStrategy01ResponseBody.php @@ -1,39 +1,18 @@ 'List', - 'names' => 'Names', + 'list' => 'List', + 'names' => 'Names', 'requestId' => 'RequestId', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->list) { $res['List'] = $this->list; @@ -44,32 +23,42 @@ public function toMap() if (null !== $this->requestId) { $res['RequestId'] = $this->requestId; } - return $res; } - /** * @param array $map - * * @return TestFlowStrategy01ResponseBody */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['List'])) { - if (!empty($map['List'])) { + if(isset($map['List'])){ + if(!empty($map['List'])){ $model->list = $map['List']; } } - if (isset($map['Names'])) { - if (!empty($map['Names'])) { + if(isset($map['Names'])){ + if(!empty($map['Names'])){ $model->names = $map['Names']; } } - if (isset($map['RequestId'])) { + if(isset($map['RequestId'])){ $model->requestId = $map['RequestId']; } - return $model; } + /** + * @var string[] + */ + public $list; + + /** + * @var string[] + */ + public $names; + + /** + * @var string + */ + public $requestId; + } diff --git a/ft-20180713/src/Models/TestFlowStrategy01ShrinkRequest.php b/ft-20180713/src/Models/TestFlowStrategy01ShrinkRequest.php index 211d89dadb1..3a930c99ce1 100644 --- a/ft-20180713/src/Models/TestFlowStrategy01ShrinkRequest.php +++ b/ft-20180713/src/Models/TestFlowStrategy01ShrinkRequest.php @@ -1,47 +1,36 @@ 'Names', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->namesShrink) { $res['Names'] = $this->namesShrink; } - return $res; } - /** * @param array $map - * * @return TestFlowStrategy01ShrinkRequest */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['Names'])) { + if(isset($map['Names'])){ $model->namesShrink = $map['Names']; } - return $model; } + /** + * @var string + */ + public $namesShrink; + } diff --git a/ft-20180713/src/Models/TestHttpApiRequest.php b/ft-20180713/src/Models/TestHttpApiRequest.php index 11b380b7a30..d92976174f7 100644 --- a/ft-20180713/src/Models/TestHttpApiRequest.php +++ b/ft-20180713/src/Models/TestHttpApiRequest.php @@ -1,45 +1,19 @@ 'BooleanParam', 'defaultValue' => 'DefaultValue', - 'otherParam' => 'OtherParam', - 'stringValue' => 'StringValue', + 'otherParam' => 'OtherParam', + 'stringValue' => 'StringValue', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->booleanParam) { $res['BooleanParam'] = $this->booleanParam; @@ -53,31 +27,46 @@ public function toMap() if (null !== $this->stringValue) { $res['StringValue'] = $this->stringValue; } - return $res; } - /** * @param array $map - * * @return TestHttpApiRequest */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['BooleanParam'])) { + if(isset($map['BooleanParam'])){ $model->booleanParam = $map['BooleanParam']; } - if (isset($map['DefaultValue'])) { + if(isset($map['DefaultValue'])){ $model->defaultValue = $map['DefaultValue']; } - if (isset($map['OtherParam'])) { + if(isset($map['OtherParam'])){ $model->otherParam = $map['OtherParam']; } - if (isset($map['StringValue'])) { + if(isset($map['StringValue'])){ $model->stringValue = $map['StringValue']; } - return $model; } + /** + * @var bool + */ + public $booleanParam; + + /** + * @var mixed[] + */ + public $defaultValue; + + /** + * @var mixed[] + */ + public $otherParam; + + /** + * @var mixed[] + */ + public $stringValue; + } diff --git a/ft-20180713/src/Models/TestHttpApiResponse.php b/ft-20180713/src/Models/TestHttpApiResponse.php index 06615cf90c8..5fb0174ac55 100644 --- a/ft-20180713/src/Models/TestHttpApiResponse.php +++ b/ft-20180713/src/Models/TestHttpApiResponse.php @@ -1,42 +1,24 @@ 'headers', + 'headers' => 'headers', 'statusCode' => 'statusCode', - 'body' => 'body', + 'body' => 'body', ]; - - public function validate() - { + public function validate() { Model::validateRequired('headers', $this->headers, true); Model::validateRequired('statusCode', $this->statusCode, true); Model::validateRequired('body', $this->body, true); } - - public function toMap() - { + public function toMap() { $res = []; if (null !== $this->headers) { $res['headers'] = $this->headers; @@ -47,28 +29,38 @@ public function toMap() if (null !== $this->body) { $res['body'] = null !== $this->body ? $this->body->toMap() : null; } - return $res; } - /** * @param array $map - * * @return TestHttpApiResponse */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['headers'])) { + if(isset($map['headers'])){ $model->headers = $map['headers']; } - if (isset($map['statusCode'])) { + if(isset($map['statusCode'])){ $model->statusCode = $map['statusCode']; } - if (isset($map['body'])) { + if(isset($map['body'])){ $model->body = TestHttpApiResponseBody::fromMap($map['body']); } - return $model; } + /** + * @var string[] + */ + public $headers; + + /** + * @var int + */ + public $statusCode; + + /** + * @var TestHttpApiResponseBody + */ + public $body; + } diff --git a/ft-20180713/src/Models/TestHttpApiResponseBody.php b/ft-20180713/src/Models/TestHttpApiResponseBody.php index e4fd5c1be2b..874599fdccc 100644 --- a/ft-20180713/src/Models/TestHttpApiResponseBody.php +++ b/ft-20180713/src/Models/TestHttpApiResponseBody.php @@ -1,33 +1,17 @@ 'Params', + 'params' => 'Params', 'serviceRpcSign' => 'ServiceRpcSign', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->params) { $res['Params'] = $this->params; @@ -35,25 +19,30 @@ public function toMap() if (null !== $this->serviceRpcSign) { $res['ServiceRpcSign'] = $this->serviceRpcSign; } - return $res; } - /** * @param array $map - * * @return TestHttpApiResponseBody */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['Params'])) { + if(isset($map['Params'])){ $model->params = $map['Params']; } - if (isset($map['ServiceRpcSign'])) { + if(isset($map['ServiceRpcSign'])){ $model->serviceRpcSign = $map['ServiceRpcSign']; } - return $model; } + /** + * @var string + */ + public $params; + + /** + * @var string + */ + public $serviceRpcSign; + } diff --git a/ft-20180713/src/Models/TestHttpApiShrinkRequest.php b/ft-20180713/src/Models/TestHttpApiShrinkRequest.php index 8250d480abb..db4f928576d 100644 --- a/ft-20180713/src/Models/TestHttpApiShrinkRequest.php +++ b/ft-20180713/src/Models/TestHttpApiShrinkRequest.php @@ -1,45 +1,19 @@ 'BooleanParam', + 'booleanParam' => 'BooleanParam', 'defaultValueShrink' => 'DefaultValue', - 'otherParamShrink' => 'OtherParam', - 'stringValueShrink' => 'StringValue', + 'otherParamShrink' => 'OtherParam', + 'stringValueShrink' => 'StringValue', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->booleanParam) { $res['BooleanParam'] = $this->booleanParam; @@ -53,31 +27,46 @@ public function toMap() if (null !== $this->stringValueShrink) { $res['StringValue'] = $this->stringValueShrink; } - return $res; } - /** * @param array $map - * * @return TestHttpApiShrinkRequest */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['BooleanParam'])) { + if(isset($map['BooleanParam'])){ $model->booleanParam = $map['BooleanParam']; } - if (isset($map['DefaultValue'])) { + if(isset($map['DefaultValue'])){ $model->defaultValueShrink = $map['DefaultValue']; } - if (isset($map['OtherParam'])) { + if(isset($map['OtherParam'])){ $model->otherParamShrink = $map['OtherParam']; } - if (isset($map['StringValue'])) { + if(isset($map['StringValue'])){ $model->stringValueShrink = $map['StringValue']; } - return $model; } + /** + * @var bool + */ + public $booleanParam; + + /** + * @var string + */ + public $defaultValueShrink; + + /** + * @var string + */ + public $otherParamShrink; + + /** + * @var string + */ + public $stringValueShrink; + }