diff --git a/fc-open-20210406/autoload.php b/fc-open-20210406/autoload.php index 6c38210a3e..ada57541f2 100644 --- a/fc-open-20210406/autoload.php +++ b/fc-open-20210406/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/fc-open-20210406/src/FCOpen.php b/fc-open-20210406/src/FCOpen.php index d2d1a129cb..67a6d2f0a8 100644 --- a/fc-open-20210406/src/FCOpen.php +++ b/fc-open-20210406/src/FCOpen.php @@ -1,1286 +1,1194 @@ _endpointRule = 'regional'; - $this->_endpointMap = [ - 'ap-northeast-1' => 'account-id.ap-northeast-1.fc.aliyuncs.com', - 'ap-south-1' => 'account-id.ap-south-1.fc.aliyuncs.com', - 'ap-southeast-1' => 'account-id.ap-southeast-1.fc.aliyuncs.com', - 'ap-southeast-2' => 'account-id.ap-southeast-2.fc.aliyuncs.com', - 'ap-southeast-3' => 'account-id.ap-southeast-3.fc.aliyuncs.com', - 'ap-southeast-5' => 'account-id.ap-southeast-5.fc.aliyuncs.com', - 'cn-beijing' => 'account-id.cn-beijing.fc.aliyuncs.com', - 'cn-chengdu' => 'account-id.cn-chengdu.fc.aliyuncs.com', - 'cn-hangzhou' => 'account-id.cn-hangzhou.fc.aliyuncs.com', - 'cn-hangzhou-finance' => 'account-id.cn-hangzhou-finance.fc.aliyuncs.com', - 'cn-hongkong' => 'account-id.cn-hongkong.fc.aliyuncs.com', - 'cn-huhehaote' => 'account-id.cn-huhehaote.fc.aliyuncs.com', - 'cn-north-2-gov-1' => 'account-id.cn-north-2-gov-1.fc.aliyuncs.com', - 'cn-qingdao' => 'account-id.cn-qingdao.fc.aliyuncs.com', - 'cn-shanghai' => 'account-id.cn-shanghai.fc.aliyuncs.com', - 'cn-shenzhen' => 'account-id.cn-shenzhen.fc.aliyuncs.com', - 'cn-zhangjiakou' => 'account-id.cn-zhangjiakou.fc.aliyuncs.com', - 'eu-central-1' => 'account-id.eu-central-1.fc.aliyuncs.com', - 'eu-west-1' => 'account-id.eu-west-1.fc.aliyuncs.com', - 'us-east-1' => 'account-id.us-east-1.fc.aliyuncs.com', - 'us-west-1' => 'account-id.us-west-1.fc.aliyuncs.com', + $this->_endpointRule = "regional"; + $this->_endpointMap = [ + "ap-northeast-1" => "account-id.ap-northeast-1.fc.aliyuncs.com", + "ap-south-1" => "account-id.ap-south-1.fc.aliyuncs.com", + "ap-southeast-1" => "account-id.ap-southeast-1.fc.aliyuncs.com", + "ap-southeast-2" => "account-id.ap-southeast-2.fc.aliyuncs.com", + "ap-southeast-3" => "account-id.ap-southeast-3.fc.aliyuncs.com", + "ap-southeast-5" => "account-id.ap-southeast-5.fc.aliyuncs.com", + "cn-beijing" => "account-id.cn-beijing.fc.aliyuncs.com", + "cn-chengdu" => "account-id.cn-chengdu.fc.aliyuncs.com", + "cn-hangzhou" => "account-id.cn-hangzhou.fc.aliyuncs.com", + "cn-hangzhou-finance" => "account-id.cn-hangzhou-finance.fc.aliyuncs.com", + "cn-hongkong" => "account-id.cn-hongkong.fc.aliyuncs.com", + "cn-huhehaote" => "account-id.cn-huhehaote.fc.aliyuncs.com", + "cn-north-2-gov-1" => "account-id.cn-north-2-gov-1.fc.aliyuncs.com", + "cn-qingdao" => "account-id.cn-qingdao.fc.aliyuncs.com", + "cn-shanghai" => "account-id.cn-shanghai.fc.aliyuncs.com", + "cn-shenzhen" => "account-id.cn-shenzhen.fc.aliyuncs.com", + "cn-zhangjiakou" => "account-id.cn-zhangjiakou.fc.aliyuncs.com", + "eu-central-1" => "account-id.eu-central-1.fc.aliyuncs.com", + "eu-west-1" => "account-id.eu-west-1.fc.aliyuncs.com", + "us-east-1" => "account-id.us-east-1.fc.aliyuncs.com", + "us-west-1" => "account-id.us-west-1.fc.aliyuncs.com" ]; $this->checkConfig($config); - $this->_endpoint = $this->getEndpoint('fc-open', $this->_regionId, $this->_endpointRule, $this->_network, $this->_suffix, $this->_endpointMap, $this->_endpoint); + $this->_endpoint = $this->getEndpoint("fc-open", $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 string $serviceName + * @param string $serviceName * @param CreateAliasRequest $request - * * @return CreateAliasResponse */ - public function createAlias($serviceName, $request) - { + public function createAlias($serviceName, $request){ $runtime = new RuntimeOptions([]); $headers = new CreateAliasHeaders([]); - return $this->createAliasWithOptions($serviceName, $request, $headers, $runtime); } /** - * @param string $serviceName + * @param string $serviceName * @param CreateAliasRequest $request * @param CreateAliasHeaders $headers - * @param RuntimeOptions $runtime - * + * @param RuntimeOptions $runtime * @return CreateAliasResponse */ - public function createAliasWithOptions($serviceName, $request, $headers, $runtime) - { + public function createAliasWithOptions($serviceName, $request, $headers, $runtime){ Utils::validateModel($request); $serviceName = OpenApiUtilClient::getEncodeParam($serviceName); - $body = []; + $body = []; if (!Utils::isUnset($request->additionalVersionWeight)) { - $body['additionalVersionWeight'] = $request->additionalVersionWeight; + $body["additionalVersionWeight"] = $request->additionalVersionWeight; } if (!Utils::isUnset($request->aliasName)) { - $body['aliasName'] = $request->aliasName; + $body["aliasName"] = $request->aliasName; } if (!Utils::isUnset($request->description)) { - $body['description'] = $request->description; + $body["description"] = $request->description; } if (!Utils::isUnset($request->resolvePolicy)) { - $body['resolvePolicy'] = $request->resolvePolicy; + $body["resolvePolicy"] = $request->resolvePolicy; } if (!Utils::isUnset($request->routePolicy)) { - $body['routePolicy'] = $request->routePolicy; + $body["routePolicy"] = $request->routePolicy; } if (!Utils::isUnset($request->versionId)) { - $body['versionId'] = $request->versionId; + $body["versionId"] = $request->versionId; } $realHeaders = []; if (!Utils::isUnset($headers->commonHeaders)) { $realHeaders = $headers->commonHeaders; } if (!Utils::isUnset($headers->xFcAccountId)) { - $realHeaders['X-Fc-Account-Id'] = Utils::toJSONString($headers->xFcAccountId); + $realHeaders["X-Fc-Account-Id"] = Utils::toJSONString($headers->xFcAccountId); } if (!Utils::isUnset($headers->xFcDate)) { - $realHeaders['X-Fc-Date'] = Utils::toJSONString($headers->xFcDate); + $realHeaders["X-Fc-Date"] = Utils::toJSONString($headers->xFcDate); } if (!Utils::isUnset($headers->xFcTraceId)) { - $realHeaders['X-Fc-Trace-Id'] = Utils::toJSONString($headers->xFcTraceId); + $realHeaders["X-Fc-Trace-Id"] = Utils::toJSONString($headers->xFcTraceId); } $req = new OpenApiRequest([ - 'headers' => $realHeaders, - 'body' => OpenApiUtilClient::parseToMap($body), + "headers" => $realHeaders, + "body" => OpenApiUtilClient::parseToMap($body) ]); $params = new Params([ - 'action' => 'CreateAlias', - 'version' => '2021-04-06', - 'protocol' => 'HTTPS', - 'pathname' => '/2021-04-06/services/' . $serviceName . '/aliases', - 'method' => 'POST', - 'authType' => 'AK', - 'style' => 'ROA', - 'reqBodyType' => 'json', - 'bodyType' => 'json', + "action" => "CreateAlias", + "version" => "2021-04-06", + "protocol" => "HTTPS", + "pathname" => "/2021-04-06/services/" . $serviceName . "/aliases", + "method" => "POST", + "authType" => "AK", + "style" => "ROA", + "reqBodyType" => "json", + "bodyType" => "json" ]); - return CreateAliasResponse::fromMap($this->callApi($params, $req, $runtime)); } /** * @param CreateCustomDomainRequest $request - * * @return CreateCustomDomainResponse */ - public function createCustomDomain($request) - { + public function createCustomDomain($request){ $runtime = new RuntimeOptions([]); $headers = new CreateCustomDomainHeaders([]); - return $this->createCustomDomainWithOptions($request, $headers, $runtime); } /** * @param CreateCustomDomainRequest $request * @param CreateCustomDomainHeaders $headers - * @param RuntimeOptions $runtime - * + * @param RuntimeOptions $runtime * @return CreateCustomDomainResponse */ - public function createCustomDomainWithOptions($request, $headers, $runtime) - { + public function createCustomDomainWithOptions($request, $headers, $runtime){ Utils::validateModel($request); $body = []; if (!Utils::isUnset($request->certConfig)) { - $body['certConfig'] = $request->certConfig; + $body["certConfig"] = $request->certConfig; } if (!Utils::isUnset($request->domainName)) { - $body['domainName'] = $request->domainName; + $body["domainName"] = $request->domainName; } if (!Utils::isUnset($request->protocol)) { - $body['protocol'] = $request->protocol; + $body["protocol"] = $request->protocol; } if (!Utils::isUnset($request->routeConfig)) { - $body['routeConfig'] = $request->routeConfig; + $body["routeConfig"] = $request->routeConfig; } if (!Utils::isUnset($request->tlsConfig)) { - $body['tlsConfig'] = $request->tlsConfig; + $body["tlsConfig"] = $request->tlsConfig; } $realHeaders = []; if (!Utils::isUnset($headers->commonHeaders)) { $realHeaders = $headers->commonHeaders; } if (!Utils::isUnset($headers->xFcAccountId)) { - $realHeaders['X-Fc-Account-Id'] = Utils::toJSONString($headers->xFcAccountId); + $realHeaders["X-Fc-Account-Id"] = Utils::toJSONString($headers->xFcAccountId); } if (!Utils::isUnset($headers->xFcDate)) { - $realHeaders['X-Fc-Date'] = Utils::toJSONString($headers->xFcDate); + $realHeaders["X-Fc-Date"] = Utils::toJSONString($headers->xFcDate); } if (!Utils::isUnset($headers->xFcTraceId)) { - $realHeaders['X-Fc-Trace-Id'] = Utils::toJSONString($headers->xFcTraceId); + $realHeaders["X-Fc-Trace-Id"] = Utils::toJSONString($headers->xFcTraceId); } $req = new OpenApiRequest([ - 'headers' => $realHeaders, - 'body' => OpenApiUtilClient::parseToMap($body), + "headers" => $realHeaders, + "body" => OpenApiUtilClient::parseToMap($body) ]); $params = new Params([ - 'action' => 'CreateCustomDomain', - 'version' => '2021-04-06', - 'protocol' => 'HTTPS', - 'pathname' => '/2021-04-06/custom-domains', - 'method' => 'POST', - 'authType' => 'AK', - 'style' => 'ROA', - 'reqBodyType' => 'json', - 'bodyType' => 'json', + "action" => "CreateCustomDomain", + "version" => "2021-04-06", + "protocol" => "HTTPS", + "pathname" => "/2021-04-06/custom-domains", + "method" => "POST", + "authType" => "AK", + "style" => "ROA", + "reqBodyType" => "json", + "bodyType" => "json" ]); - return CreateCustomDomainResponse::fromMap($this->callApi($params, $req, $runtime)); } /** - * @param string $serviceName + * @param string $serviceName * @param CreateFunctionRequest $request - * * @return CreateFunctionResponse */ - public function createFunction($serviceName, $request) - { + public function createFunction($serviceName, $request){ $runtime = new RuntimeOptions([]); $headers = new CreateFunctionHeaders([]); - return $this->createFunctionWithOptions($serviceName, $request, $headers, $runtime); } /** - * @param string $serviceName + * @param string $serviceName * @param CreateFunctionRequest $request * @param CreateFunctionHeaders $headers - * @param RuntimeOptions $runtime - * + * @param RuntimeOptions $runtime * @return CreateFunctionResponse */ - public function createFunctionWithOptions($serviceName, $request, $headers, $runtime) - { + public function createFunctionWithOptions($serviceName, $request, $headers, $runtime){ Utils::validateModel($request); $serviceName = OpenApiUtilClient::getEncodeParam($serviceName); - $body = []; + $body = []; if (!Utils::isUnset($request->caPort)) { - $body['caPort'] = $request->caPort; + $body["caPort"] = $request->caPort; } if (!Utils::isUnset($request->code)) { - $body['code'] = $request->code; + $body["code"] = $request->code; } if (!Utils::isUnset($request->customContainerConfig)) { - $body['customContainerConfig'] = $request->customContainerConfig; + $body["customContainerConfig"] = $request->customContainerConfig; } if (!Utils::isUnset($request->customDNS)) { - $body['customDNS'] = $request->customDNS; + $body["customDNS"] = $request->customDNS; } if (!Utils::isUnset($request->customRuntimeConfig)) { - $body['customRuntimeConfig'] = $request->customRuntimeConfig; + $body["customRuntimeConfig"] = $request->customRuntimeConfig; } if (!Utils::isUnset($request->description)) { - $body['description'] = $request->description; + $body["description"] = $request->description; } if (!Utils::isUnset($request->environmentVariables)) { - $body['environmentVariables'] = $request->environmentVariables; + $body["environmentVariables"] = $request->environmentVariables; } if (!Utils::isUnset($request->functionName)) { - $body['functionName'] = $request->functionName; + $body["functionName"] = $request->functionName; } if (!Utils::isUnset($request->handler)) { - $body['handler'] = $request->handler; + $body["handler"] = $request->handler; } if (!Utils::isUnset($request->initializationTimeout)) { - $body['initializationTimeout'] = $request->initializationTimeout; + $body["initializationTimeout"] = $request->initializationTimeout; } if (!Utils::isUnset($request->initializer)) { - $body['initializer'] = $request->initializer; + $body["initializer"] = $request->initializer; } if (!Utils::isUnset($request->instanceConcurrency)) { - $body['instanceConcurrency'] = $request->instanceConcurrency; + $body["instanceConcurrency"] = $request->instanceConcurrency; } if (!Utils::isUnset($request->instanceLifecycleConfig)) { - $body['instanceLifecycleConfig'] = $request->instanceLifecycleConfig; + $body["instanceLifecycleConfig"] = $request->instanceLifecycleConfig; } if (!Utils::isUnset($request->instanceSoftConcurrency)) { - $body['instanceSoftConcurrency'] = $request->instanceSoftConcurrency; + $body["instanceSoftConcurrency"] = $request->instanceSoftConcurrency; } if (!Utils::isUnset($request->instanceType)) { - $body['instanceType'] = $request->instanceType; + $body["instanceType"] = $request->instanceType; } if (!Utils::isUnset($request->layers)) { - $body['layers'] = $request->layers; + $body["layers"] = $request->layers; } if (!Utils::isUnset($request->memorySize)) { - $body['memorySize'] = $request->memorySize; + $body["memorySize"] = $request->memorySize; } if (!Utils::isUnset($request->runtime)) { - $body['runtime'] = $request->runtime; + $body["runtime"] = $request->runtime; } if (!Utils::isUnset($request->timeout)) { - $body['timeout'] = $request->timeout; + $body["timeout"] = $request->timeout; } $realHeaders = []; if (!Utils::isUnset($headers->commonHeaders)) { $realHeaders = $headers->commonHeaders; } if (!Utils::isUnset($headers->xFcAccountId)) { - $realHeaders['X-Fc-Account-Id'] = Utils::toJSONString($headers->xFcAccountId); + $realHeaders["X-Fc-Account-Id"] = Utils::toJSONString($headers->xFcAccountId); } if (!Utils::isUnset($headers->xFcCodeChecksum)) { - $realHeaders['X-Fc-Code-Checksum'] = Utils::toJSONString($headers->xFcCodeChecksum); + $realHeaders["X-Fc-Code-Checksum"] = Utils::toJSONString($headers->xFcCodeChecksum); } if (!Utils::isUnset($headers->xFcDate)) { - $realHeaders['X-Fc-Date'] = Utils::toJSONString($headers->xFcDate); + $realHeaders["X-Fc-Date"] = Utils::toJSONString($headers->xFcDate); } if (!Utils::isUnset($headers->xFcTraceId)) { - $realHeaders['X-Fc-Trace-Id'] = Utils::toJSONString($headers->xFcTraceId); + $realHeaders["X-Fc-Trace-Id"] = Utils::toJSONString($headers->xFcTraceId); } $req = new OpenApiRequest([ - 'headers' => $realHeaders, - 'body' => OpenApiUtilClient::parseToMap($body), + "headers" => $realHeaders, + "body" => OpenApiUtilClient::parseToMap($body) ]); $params = new Params([ - 'action' => 'CreateFunction', - 'version' => '2021-04-06', - 'protocol' => 'HTTPS', - 'pathname' => '/2021-04-06/services/' . $serviceName . '/functions', - 'method' => 'POST', - 'authType' => 'AK', - 'style' => 'ROA', - 'reqBodyType' => 'json', - 'bodyType' => 'json', + "action" => "CreateFunction", + "version" => "2021-04-06", + "protocol" => "HTTPS", + "pathname" => "/2021-04-06/services/" . $serviceName . "/functions", + "method" => "POST", + "authType" => "AK", + "style" => "ROA", + "reqBodyType" => "json", + "bodyType" => "json" ]); - return CreateFunctionResponse::fromMap($this->callApi($params, $req, $runtime)); } /** - * @param string $layerName + * @param string $layerName * @param CreateLayerVersionRequest $request - * * @return CreateLayerVersionResponse */ - public function createLayerVersion($layerName, $request) - { + public function createLayerVersion($layerName, $request){ $runtime = new RuntimeOptions([]); $headers = new CreateLayerVersionHeaders([]); - return $this->createLayerVersionWithOptions($layerName, $request, $headers, $runtime); } /** - * @param string $layerName + * @param string $layerName * @param CreateLayerVersionRequest $request * @param CreateLayerVersionHeaders $headers - * @param RuntimeOptions $runtime - * + * @param RuntimeOptions $runtime * @return CreateLayerVersionResponse */ - public function createLayerVersionWithOptions($layerName, $request, $headers, $runtime) - { + public function createLayerVersionWithOptions($layerName, $request, $headers, $runtime){ Utils::validateModel($request); $layerName = OpenApiUtilClient::getEncodeParam($layerName); - $body = []; + $body = []; if (!Utils::isUnset($request->code)) { - $body['Code'] = $request->code; + $body["Code"] = $request->code; } if (!Utils::isUnset($request->compatibleRuntime)) { - $body['compatibleRuntime'] = $request->compatibleRuntime; + $body["compatibleRuntime"] = $request->compatibleRuntime; } if (!Utils::isUnset($request->description)) { - $body['description'] = $request->description; + $body["description"] = $request->description; } $realHeaders = []; if (!Utils::isUnset($headers->commonHeaders)) { $realHeaders = $headers->commonHeaders; } if (!Utils::isUnset($headers->xFcAccountId)) { - $realHeaders['X-Fc-Account-Id'] = Utils::toJSONString($headers->xFcAccountId); + $realHeaders["X-Fc-Account-Id"] = Utils::toJSONString($headers->xFcAccountId); } if (!Utils::isUnset($headers->xFcDate)) { - $realHeaders['X-Fc-Date'] = Utils::toJSONString($headers->xFcDate); + $realHeaders["X-Fc-Date"] = Utils::toJSONString($headers->xFcDate); } if (!Utils::isUnset($headers->xFcTraceId)) { - $realHeaders['X-Fc-Trace-Id'] = Utils::toJSONString($headers->xFcTraceId); + $realHeaders["X-Fc-Trace-Id"] = Utils::toJSONString($headers->xFcTraceId); } $req = new OpenApiRequest([ - 'headers' => $realHeaders, - 'body' => OpenApiUtilClient::parseToMap($body), + "headers" => $realHeaders, + "body" => OpenApiUtilClient::parseToMap($body) ]); $params = new Params([ - 'action' => 'CreateLayerVersion', - 'version' => '2021-04-06', - 'protocol' => 'HTTPS', - 'pathname' => '/2021-04-06/layers/' . $layerName . '/versions', - 'method' => 'POST', - 'authType' => 'AK', - 'style' => 'ROA', - 'reqBodyType' => 'json', - 'bodyType' => 'json', + "action" => "CreateLayerVersion", + "version" => "2021-04-06", + "protocol" => "HTTPS", + "pathname" => "/2021-04-06/layers/" . $layerName . "/versions", + "method" => "POST", + "authType" => "AK", + "style" => "ROA", + "reqBodyType" => "json", + "bodyType" => "json" ]); - return CreateLayerVersionResponse::fromMap($this->callApi($params, $req, $runtime)); } /** * @param CreateServiceRequest $request - * * @return CreateServiceResponse */ - public function createService($request) - { + public function createService($request){ $runtime = new RuntimeOptions([]); $headers = new CreateServiceHeaders([]); - return $this->createServiceWithOptions($request, $headers, $runtime); } /** * @param CreateServiceRequest $request * @param CreateServiceHeaders $headers - * @param RuntimeOptions $runtime - * + * @param RuntimeOptions $runtime * @return CreateServiceResponse */ - public function createServiceWithOptions($request, $headers, $runtime) - { + public function createServiceWithOptions($request, $headers, $runtime){ Utils::validateModel($request); $body = []; if (!Utils::isUnset($request->description)) { - $body['description'] = $request->description; + $body["description"] = $request->description; } if (!Utils::isUnset($request->internetAccess)) { - $body['internetAccess'] = $request->internetAccess; + $body["internetAccess"] = $request->internetAccess; } if (!Utils::isUnset($request->logConfig)) { - $body['logConfig'] = $request->logConfig; + $body["logConfig"] = $request->logConfig; } if (!Utils::isUnset($request->nasConfig)) { - $body['nasConfig'] = $request->nasConfig; + $body["nasConfig"] = $request->nasConfig; } if (!Utils::isUnset($request->role)) { - $body['role'] = $request->role; + $body["role"] = $request->role; } if (!Utils::isUnset($request->serviceName)) { - $body['serviceName'] = $request->serviceName; + $body["serviceName"] = $request->serviceName; } if (!Utils::isUnset($request->tracingConfig)) { - $body['tracingConfig'] = $request->tracingConfig; + $body["tracingConfig"] = $request->tracingConfig; } if (!Utils::isUnset($request->vpcConfig)) { - $body['vpcConfig'] = $request->vpcConfig; + $body["vpcConfig"] = $request->vpcConfig; } $realHeaders = []; if (!Utils::isUnset($headers->commonHeaders)) { $realHeaders = $headers->commonHeaders; } if (!Utils::isUnset($headers->xFcAccountId)) { - $realHeaders['X-Fc-Account-Id'] = Utils::toJSONString($headers->xFcAccountId); + $realHeaders["X-Fc-Account-Id"] = Utils::toJSONString($headers->xFcAccountId); } if (!Utils::isUnset($headers->xFcDate)) { - $realHeaders['X-Fc-Date'] = Utils::toJSONString($headers->xFcDate); + $realHeaders["X-Fc-Date"] = Utils::toJSONString($headers->xFcDate); } if (!Utils::isUnset($headers->xFcTraceId)) { - $realHeaders['X-Fc-Trace-Id'] = Utils::toJSONString($headers->xFcTraceId); + $realHeaders["X-Fc-Trace-Id"] = Utils::toJSONString($headers->xFcTraceId); } $req = new OpenApiRequest([ - 'headers' => $realHeaders, - 'body' => OpenApiUtilClient::parseToMap($body), + "headers" => $realHeaders, + "body" => OpenApiUtilClient::parseToMap($body) ]); $params = new Params([ - 'action' => 'CreateService', - 'version' => '2021-04-06', - 'protocol' => 'HTTPS', - 'pathname' => '/2021-04-06/services', - 'method' => 'POST', - 'authType' => 'AK', - 'style' => 'ROA', - 'reqBodyType' => 'json', - 'bodyType' => 'json', + "action" => "CreateService", + "version" => "2021-04-06", + "protocol" => "HTTPS", + "pathname" => "/2021-04-06/services", + "method" => "POST", + "authType" => "AK", + "style" => "ROA", + "reqBodyType" => "json", + "bodyType" => "json" ]); - return CreateServiceResponse::fromMap($this->callApi($params, $req, $runtime)); } /** - * @param string $serviceName - * @param string $functionName + * @param string $serviceName + * @param string $functionName * @param CreateTriggerRequest $request - * * @return CreateTriggerResponse */ - public function createTrigger($serviceName, $functionName, $request) - { + public function createTrigger($serviceName, $functionName, $request){ $runtime = new RuntimeOptions([]); $headers = new CreateTriggerHeaders([]); - return $this->createTriggerWithOptions($serviceName, $functionName, $request, $headers, $runtime); } /** - * @param string $serviceName - * @param string $functionName + * @param string $serviceName + * @param string $functionName * @param CreateTriggerRequest $request * @param CreateTriggerHeaders $headers - * @param RuntimeOptions $runtime - * + * @param RuntimeOptions $runtime * @return CreateTriggerResponse */ - public function createTriggerWithOptions($serviceName, $functionName, $request, $headers, $runtime) - { + public function createTriggerWithOptions($serviceName, $functionName, $request, $headers, $runtime){ Utils::validateModel($request); - $serviceName = OpenApiUtilClient::getEncodeParam($serviceName); + $serviceName = OpenApiUtilClient::getEncodeParam($serviceName); $functionName = OpenApiUtilClient::getEncodeParam($functionName); - $body = []; + $body = []; if (!Utils::isUnset($request->description)) { - $body['description'] = $request->description; + $body["description"] = $request->description; } if (!Utils::isUnset($request->invocationRole)) { - $body['invocationRole'] = $request->invocationRole; + $body["invocationRole"] = $request->invocationRole; } if (!Utils::isUnset($request->qualifier)) { - $body['qualifier'] = $request->qualifier; + $body["qualifier"] = $request->qualifier; } if (!Utils::isUnset($request->sourceArn)) { - $body['sourceArn'] = $request->sourceArn; + $body["sourceArn"] = $request->sourceArn; } if (!Utils::isUnset($request->triggerConfig)) { - $body['triggerConfig'] = $request->triggerConfig; + $body["triggerConfig"] = $request->triggerConfig; } if (!Utils::isUnset($request->triggerName)) { - $body['triggerName'] = $request->triggerName; + $body["triggerName"] = $request->triggerName; } if (!Utils::isUnset($request->triggerType)) { - $body['triggerType'] = $request->triggerType; + $body["triggerType"] = $request->triggerType; } $realHeaders = []; if (!Utils::isUnset($headers->commonHeaders)) { $realHeaders = $headers->commonHeaders; } if (!Utils::isUnset($headers->xFcAccountId)) { - $realHeaders['X-Fc-Account-Id'] = Utils::toJSONString($headers->xFcAccountId); + $realHeaders["X-Fc-Account-Id"] = Utils::toJSONString($headers->xFcAccountId); } if (!Utils::isUnset($headers->xFcDate)) { - $realHeaders['X-Fc-Date'] = Utils::toJSONString($headers->xFcDate); + $realHeaders["X-Fc-Date"] = Utils::toJSONString($headers->xFcDate); } if (!Utils::isUnset($headers->xFcTraceId)) { - $realHeaders['X-Fc-Trace-Id'] = Utils::toJSONString($headers->xFcTraceId); + $realHeaders["X-Fc-Trace-Id"] = Utils::toJSONString($headers->xFcTraceId); } $req = new OpenApiRequest([ - 'headers' => $realHeaders, - 'body' => OpenApiUtilClient::parseToMap($body), + "headers" => $realHeaders, + "body" => OpenApiUtilClient::parseToMap($body) ]); $params = new Params([ - 'action' => 'CreateTrigger', - 'version' => '2021-04-06', - 'protocol' => 'HTTPS', - 'pathname' => '/2021-04-06/services/' . $serviceName . '/functions/' . $functionName . '/triggers', - 'method' => 'POST', - 'authType' => 'AK', - 'style' => 'ROA', - 'reqBodyType' => 'json', - 'bodyType' => 'json', + "action" => "CreateTrigger", + "version" => "2021-04-06", + "protocol" => "HTTPS", + "pathname" => "/2021-04-06/services/" . $serviceName . "/functions/" . $functionName . "/triggers", + "method" => "POST", + "authType" => "AK", + "style" => "ROA", + "reqBodyType" => "json", + "bodyType" => "json" ]); - return CreateTriggerResponse::fromMap($this->callApi($params, $req, $runtime)); } /** - * @param string $serviceName + * @param string $serviceName * @param CreateVpcBindingRequest $request - * * @return CreateVpcBindingResponse */ - public function createVpcBinding($serviceName, $request) - { + public function createVpcBinding($serviceName, $request){ $runtime = new RuntimeOptions([]); $headers = new CreateVpcBindingHeaders([]); - return $this->createVpcBindingWithOptions($serviceName, $request, $headers, $runtime); } /** - * @param string $serviceName + * @param string $serviceName * @param CreateVpcBindingRequest $request * @param CreateVpcBindingHeaders $headers - * @param RuntimeOptions $runtime - * + * @param RuntimeOptions $runtime * @return CreateVpcBindingResponse */ - public function createVpcBindingWithOptions($serviceName, $request, $headers, $runtime) - { + public function createVpcBindingWithOptions($serviceName, $request, $headers, $runtime){ Utils::validateModel($request); $serviceName = OpenApiUtilClient::getEncodeParam($serviceName); - $body = []; + $body = []; if (!Utils::isUnset($request->vpcId)) { - $body['vpcId'] = $request->vpcId; + $body["vpcId"] = $request->vpcId; } $realHeaders = []; if (!Utils::isUnset($headers->commonHeaders)) { $realHeaders = $headers->commonHeaders; } if (!Utils::isUnset($headers->xFcAccountId)) { - $realHeaders['X-Fc-Account-Id'] = Utils::toJSONString($headers->xFcAccountId); + $realHeaders["X-Fc-Account-Id"] = Utils::toJSONString($headers->xFcAccountId); } if (!Utils::isUnset($headers->xFcDate)) { - $realHeaders['X-Fc-Date'] = Utils::toJSONString($headers->xFcDate); + $realHeaders["X-Fc-Date"] = Utils::toJSONString($headers->xFcDate); } if (!Utils::isUnset($headers->xFcTraceId)) { - $realHeaders['X-Fc-Trace-Id'] = Utils::toJSONString($headers->xFcTraceId); + $realHeaders["X-Fc-Trace-Id"] = Utils::toJSONString($headers->xFcTraceId); } $req = new OpenApiRequest([ - 'headers' => $realHeaders, - 'body' => OpenApiUtilClient::parseToMap($body), + "headers" => $realHeaders, + "body" => OpenApiUtilClient::parseToMap($body) ]); $params = new Params([ - 'action' => 'CreateVpcBinding', - 'version' => '2021-04-06', - 'protocol' => 'HTTPS', - 'pathname' => '/2021-04-06/services/' . $serviceName . '/bindings', - 'method' => 'POST', - 'authType' => 'AK', - 'style' => 'ROA', - 'reqBodyType' => 'json', - 'bodyType' => 'none', + "action" => "CreateVpcBinding", + "version" => "2021-04-06", + "protocol" => "HTTPS", + "pathname" => "/2021-04-06/services/" . $serviceName . "/bindings", + "method" => "POST", + "authType" => "AK", + "style" => "ROA", + "reqBodyType" => "json", + "bodyType" => "none" ]); - return CreateVpcBindingResponse::fromMap($this->callApi($params, $req, $runtime)); } /** * @param string $serviceName * @param string $aliasName - * * @return DeleteAliasResponse */ - public function deleteAlias($serviceName, $aliasName) - { + public function deleteAlias($serviceName, $aliasName){ $runtime = new RuntimeOptions([]); $headers = new DeleteAliasHeaders([]); - return $this->deleteAliasWithOptions($serviceName, $aliasName, $headers, $runtime); } /** - * @param string $serviceName - * @param string $aliasName + * @param string $serviceName + * @param string $aliasName * @param DeleteAliasHeaders $headers - * @param RuntimeOptions $runtime - * + * @param RuntimeOptions $runtime * @return DeleteAliasResponse */ - public function deleteAliasWithOptions($serviceName, $aliasName, $headers, $runtime) - { + public function deleteAliasWithOptions($serviceName, $aliasName, $headers, $runtime){ $serviceName = OpenApiUtilClient::getEncodeParam($serviceName); - $aliasName = OpenApiUtilClient::getEncodeParam($aliasName); + $aliasName = OpenApiUtilClient::getEncodeParam($aliasName); $realHeaders = []; if (!Utils::isUnset($headers->commonHeaders)) { $realHeaders = $headers->commonHeaders; } if (!Utils::isUnset($headers->ifMatch)) { - $realHeaders['If-Match'] = Utils::toJSONString($headers->ifMatch); + $realHeaders["If-Match"] = Utils::toJSONString($headers->ifMatch); } if (!Utils::isUnset($headers->xFcAccountId)) { - $realHeaders['X-Fc-Account-Id'] = Utils::toJSONString($headers->xFcAccountId); + $realHeaders["X-Fc-Account-Id"] = Utils::toJSONString($headers->xFcAccountId); } if (!Utils::isUnset($headers->xFcDate)) { - $realHeaders['X-Fc-Date'] = Utils::toJSONString($headers->xFcDate); + $realHeaders["X-Fc-Date"] = Utils::toJSONString($headers->xFcDate); } if (!Utils::isUnset($headers->xFcTraceId)) { - $realHeaders['X-Fc-Trace-Id'] = Utils::toJSONString($headers->xFcTraceId); + $realHeaders["X-Fc-Trace-Id"] = Utils::toJSONString($headers->xFcTraceId); } $req = new OpenApiRequest([ - 'headers' => $realHeaders, + "headers" => $realHeaders ]); $params = new Params([ - 'action' => 'DeleteAlias', - 'version' => '2021-04-06', - 'protocol' => 'HTTPS', - 'pathname' => '/2021-04-06/services/' . $serviceName . '/aliases/' . $aliasName . '', - 'method' => 'DELETE', - 'authType' => 'AK', - 'style' => 'ROA', - 'reqBodyType' => 'json', - 'bodyType' => 'none', + "action" => "DeleteAlias", + "version" => "2021-04-06", + "protocol" => "HTTPS", + "pathname" => "/2021-04-06/services/" . $serviceName . "/aliases/" . $aliasName . "", + "method" => "DELETE", + "authType" => "AK", + "style" => "ROA", + "reqBodyType" => "json", + "bodyType" => "none" ]); - return DeleteAliasResponse::fromMap($this->callApi($params, $req, $runtime)); } /** * @param string $domainName - * * @return DeleteCustomDomainResponse */ - public function deleteCustomDomain($domainName) - { + public function deleteCustomDomain($domainName){ $runtime = new RuntimeOptions([]); $headers = new DeleteCustomDomainHeaders([]); - return $this->deleteCustomDomainWithOptions($domainName, $headers, $runtime); } /** - * @param string $domainName + * @param string $domainName * @param DeleteCustomDomainHeaders $headers - * @param RuntimeOptions $runtime - * + * @param RuntimeOptions $runtime * @return DeleteCustomDomainResponse */ - public function deleteCustomDomainWithOptions($domainName, $headers, $runtime) - { - $domainName = OpenApiUtilClient::getEncodeParam($domainName); + public function deleteCustomDomainWithOptions($domainName, $headers, $runtime){ + $domainName = OpenApiUtilClient::getEncodeParam($domainName); $realHeaders = []; if (!Utils::isUnset($headers->commonHeaders)) { $realHeaders = $headers->commonHeaders; } if (!Utils::isUnset($headers->xFcAccountId)) { - $realHeaders['X-Fc-Account-Id'] = Utils::toJSONString($headers->xFcAccountId); + $realHeaders["X-Fc-Account-Id"] = Utils::toJSONString($headers->xFcAccountId); } if (!Utils::isUnset($headers->xFcDate)) { - $realHeaders['X-Fc-Date'] = Utils::toJSONString($headers->xFcDate); + $realHeaders["X-Fc-Date"] = Utils::toJSONString($headers->xFcDate); } if (!Utils::isUnset($headers->xFcTraceId)) { - $realHeaders['X-Fc-Trace-Id'] = Utils::toJSONString($headers->xFcTraceId); + $realHeaders["X-Fc-Trace-Id"] = Utils::toJSONString($headers->xFcTraceId); } $req = new OpenApiRequest([ - 'headers' => $realHeaders, + "headers" => $realHeaders ]); $params = new Params([ - 'action' => 'DeleteCustomDomain', - 'version' => '2021-04-06', - 'protocol' => 'HTTPS', - 'pathname' => '/2021-04-06/custom-domains/' . $domainName . '', - 'method' => 'DELETE', - 'authType' => 'AK', - 'style' => 'ROA', - 'reqBodyType' => 'json', - 'bodyType' => 'none', + "action" => "DeleteCustomDomain", + "version" => "2021-04-06", + "protocol" => "HTTPS", + "pathname" => "/2021-04-06/custom-domains/" . $domainName . "", + "method" => "DELETE", + "authType" => "AK", + "style" => "ROA", + "reqBodyType" => "json", + "bodyType" => "none" ]); - return DeleteCustomDomainResponse::fromMap($this->callApi($params, $req, $runtime)); } /** * @param string $serviceName * @param string $functionName - * * @return DeleteFunctionResponse */ - public function deleteFunction($serviceName, $functionName) - { + public function deleteFunction($serviceName, $functionName){ $runtime = new RuntimeOptions([]); $headers = new DeleteFunctionHeaders([]); - return $this->deleteFunctionWithOptions($serviceName, $functionName, $headers, $runtime); } /** - * @param string $serviceName - * @param string $functionName + * @param string $serviceName + * @param string $functionName * @param DeleteFunctionHeaders $headers - * @param RuntimeOptions $runtime - * + * @param RuntimeOptions $runtime * @return DeleteFunctionResponse */ - public function deleteFunctionWithOptions($serviceName, $functionName, $headers, $runtime) - { - $serviceName = OpenApiUtilClient::getEncodeParam($serviceName); + public function deleteFunctionWithOptions($serviceName, $functionName, $headers, $runtime){ + $serviceName = OpenApiUtilClient::getEncodeParam($serviceName); $functionName = OpenApiUtilClient::getEncodeParam($functionName); - $realHeaders = []; + $realHeaders = []; if (!Utils::isUnset($headers->commonHeaders)) { $realHeaders = $headers->commonHeaders; } if (!Utils::isUnset($headers->ifMatch)) { - $realHeaders['If-Match'] = Utils::toJSONString($headers->ifMatch); + $realHeaders["If-Match"] = Utils::toJSONString($headers->ifMatch); } if (!Utils::isUnset($headers->xFcAccountId)) { - $realHeaders['X-Fc-Account-Id'] = Utils::toJSONString($headers->xFcAccountId); + $realHeaders["X-Fc-Account-Id"] = Utils::toJSONString($headers->xFcAccountId); } if (!Utils::isUnset($headers->xFcDate)) { - $realHeaders['X-Fc-Date'] = Utils::toJSONString($headers->xFcDate); + $realHeaders["X-Fc-Date"] = Utils::toJSONString($headers->xFcDate); } if (!Utils::isUnset($headers->xFcTraceId)) { - $realHeaders['X-Fc-Trace-Id'] = Utils::toJSONString($headers->xFcTraceId); + $realHeaders["X-Fc-Trace-Id"] = Utils::toJSONString($headers->xFcTraceId); } $req = new OpenApiRequest([ - 'headers' => $realHeaders, + "headers" => $realHeaders ]); $params = new Params([ - 'action' => 'DeleteFunction', - 'version' => '2021-04-06', - 'protocol' => 'HTTPS', - 'pathname' => '/2021-04-06/services/' . $serviceName . '/functions/' . $functionName . '', - 'method' => 'DELETE', - 'authType' => 'AK', - 'style' => 'ROA', - 'reqBodyType' => 'json', - 'bodyType' => 'none', + "action" => "DeleteFunction", + "version" => "2021-04-06", + "protocol" => "HTTPS", + "pathname" => "/2021-04-06/services/" . $serviceName . "/functions/" . $functionName . "", + "method" => "DELETE", + "authType" => "AK", + "style" => "ROA", + "reqBodyType" => "json", + "bodyType" => "none" ]); - return DeleteFunctionResponse::fromMap($this->callApi($params, $req, $runtime)); } /** - * @param string $serviceName - * @param string $functionName + * @param string $serviceName + * @param string $functionName * @param DeleteFunctionAsyncInvokeConfigRequest $request - * * @return DeleteFunctionAsyncInvokeConfigResponse */ - public function deleteFunctionAsyncInvokeConfig($serviceName, $functionName, $request) - { + public function deleteFunctionAsyncInvokeConfig($serviceName, $functionName, $request){ $runtime = new RuntimeOptions([]); $headers = new DeleteFunctionAsyncInvokeConfigHeaders([]); - return $this->deleteFunctionAsyncInvokeConfigWithOptions($serviceName, $functionName, $request, $headers, $runtime); } /** - * @param string $serviceName - * @param string $functionName + * @param string $serviceName + * @param string $functionName * @param DeleteFunctionAsyncInvokeConfigRequest $request * @param DeleteFunctionAsyncInvokeConfigHeaders $headers - * @param RuntimeOptions $runtime - * + * @param RuntimeOptions $runtime * @return DeleteFunctionAsyncInvokeConfigResponse */ - public function deleteFunctionAsyncInvokeConfigWithOptions($serviceName, $functionName, $request, $headers, $runtime) - { + public function deleteFunctionAsyncInvokeConfigWithOptions($serviceName, $functionName, $request, $headers, $runtime){ Utils::validateModel($request); - $serviceName = OpenApiUtilClient::getEncodeParam($serviceName); + $serviceName = OpenApiUtilClient::getEncodeParam($serviceName); $functionName = OpenApiUtilClient::getEncodeParam($functionName); - $query = []; + $query = []; if (!Utils::isUnset($request->qualifier)) { - $query['qualifier'] = $request->qualifier; + $query["qualifier"] = $request->qualifier; } $realHeaders = []; if (!Utils::isUnset($headers->commonHeaders)) { $realHeaders = $headers->commonHeaders; } if (!Utils::isUnset($headers->xFcAccountId)) { - $realHeaders['X-Fc-Account-Id'] = Utils::toJSONString($headers->xFcAccountId); + $realHeaders["X-Fc-Account-Id"] = Utils::toJSONString($headers->xFcAccountId); } if (!Utils::isUnset($headers->xFcDate)) { - $realHeaders['X-Fc-Date'] = Utils::toJSONString($headers->xFcDate); + $realHeaders["X-Fc-Date"] = Utils::toJSONString($headers->xFcDate); } if (!Utils::isUnset($headers->xFcTraceId)) { - $realHeaders['X-Fc-Trace-Id'] = Utils::toJSONString($headers->xFcTraceId); + $realHeaders["X-Fc-Trace-Id"] = Utils::toJSONString($headers->xFcTraceId); } $req = new OpenApiRequest([ - 'headers' => $realHeaders, - 'query' => OpenApiUtilClient::query($query), + "headers" => $realHeaders, + "query" => OpenApiUtilClient::query($query) ]); $params = new Params([ - 'action' => 'DeleteFunctionAsyncInvokeConfig', - 'version' => '2021-04-06', - 'protocol' => 'HTTPS', - 'pathname' => '/2021-04-06/services/' . $serviceName . '/functions/' . $functionName . '/async-invoke-config', - 'method' => 'DELETE', - 'authType' => 'AK', - 'style' => 'ROA', - 'reqBodyType' => 'json', - 'bodyType' => 'none', + "action" => "DeleteFunctionAsyncInvokeConfig", + "version" => "2021-04-06", + "protocol" => "HTTPS", + "pathname" => "/2021-04-06/services/" . $serviceName . "/functions/" . $functionName . "/async-invoke-config", + "method" => "DELETE", + "authType" => "AK", + "style" => "ROA", + "reqBodyType" => "json", + "bodyType" => "none" ]); - return DeleteFunctionAsyncInvokeConfigResponse::fromMap($this->callApi($params, $req, $runtime)); } /** - * @param string $serviceName - * @param string $functionName + * @param string $serviceName + * @param string $functionName * @param DeleteFunctionOnDemandConfigRequest $request - * * @return DeleteFunctionOnDemandConfigResponse */ - public function deleteFunctionOnDemandConfig($serviceName, $functionName, $request) - { + public function deleteFunctionOnDemandConfig($serviceName, $functionName, $request){ $runtime = new RuntimeOptions([]); $headers = new DeleteFunctionOnDemandConfigHeaders([]); - return $this->deleteFunctionOnDemandConfigWithOptions($serviceName, $functionName, $request, $headers, $runtime); } /** - * @param string $serviceName - * @param string $functionName + * @param string $serviceName + * @param string $functionName * @param DeleteFunctionOnDemandConfigRequest $request * @param DeleteFunctionOnDemandConfigHeaders $headers - * @param RuntimeOptions $runtime - * + * @param RuntimeOptions $runtime * @return DeleteFunctionOnDemandConfigResponse */ - public function deleteFunctionOnDemandConfigWithOptions($serviceName, $functionName, $request, $headers, $runtime) - { + public function deleteFunctionOnDemandConfigWithOptions($serviceName, $functionName, $request, $headers, $runtime){ Utils::validateModel($request); - $serviceName = OpenApiUtilClient::getEncodeParam($serviceName); + $serviceName = OpenApiUtilClient::getEncodeParam($serviceName); $functionName = OpenApiUtilClient::getEncodeParam($functionName); - $query = []; + $query = []; if (!Utils::isUnset($request->qualifier)) { - $query['qualifier'] = $request->qualifier; + $query["qualifier"] = $request->qualifier; } $realHeaders = []; if (!Utils::isUnset($headers->commonHeaders)) { $realHeaders = $headers->commonHeaders; } if (!Utils::isUnset($headers->ifMatch)) { - $realHeaders['If-Match'] = Utils::toJSONString($headers->ifMatch); + $realHeaders["If-Match"] = Utils::toJSONString($headers->ifMatch); } if (!Utils::isUnset($headers->xFcAccountId)) { - $realHeaders['X-Fc-Account-Id'] = Utils::toJSONString($headers->xFcAccountId); + $realHeaders["X-Fc-Account-Id"] = Utils::toJSONString($headers->xFcAccountId); } if (!Utils::isUnset($headers->xFcDate)) { - $realHeaders['X-Fc-Date'] = Utils::toJSONString($headers->xFcDate); + $realHeaders["X-Fc-Date"] = Utils::toJSONString($headers->xFcDate); } if (!Utils::isUnset($headers->xFcTraceId)) { - $realHeaders['X-Fc-Trace-Id'] = Utils::toJSONString($headers->xFcTraceId); + $realHeaders["X-Fc-Trace-Id"] = Utils::toJSONString($headers->xFcTraceId); } $req = new OpenApiRequest([ - 'headers' => $realHeaders, - 'query' => OpenApiUtilClient::query($query), + "headers" => $realHeaders, + "query" => OpenApiUtilClient::query($query) ]); $params = new Params([ - 'action' => 'DeleteFunctionOnDemandConfig', - 'version' => '2021-04-06', - 'protocol' => 'HTTPS', - 'pathname' => '/2021-04-06/services/' . $serviceName . '/functions/' . $functionName . '/on-demand-config', - 'method' => 'DELETE', - 'authType' => 'AK', - 'style' => 'ROA', - 'reqBodyType' => 'json', - 'bodyType' => 'none', + "action" => "DeleteFunctionOnDemandConfig", + "version" => "2021-04-06", + "protocol" => "HTTPS", + "pathname" => "/2021-04-06/services/" . $serviceName . "/functions/" . $functionName . "/on-demand-config", + "method" => "DELETE", + "authType" => "AK", + "style" => "ROA", + "reqBodyType" => "json", + "bodyType" => "none" ]); - return DeleteFunctionOnDemandConfigResponse::fromMap($this->callApi($params, $req, $runtime)); } /** * @param string $layerName * @param string $version - * * @return DeleteLayerVersionResponse */ - public function deleteLayerVersion($layerName, $version) - { + public function deleteLayerVersion($layerName, $version){ $runtime = new RuntimeOptions([]); $headers = new DeleteLayerVersionHeaders([]); - return $this->deleteLayerVersionWithOptions($layerName, $version, $headers, $runtime); } /** - * @param string $layerName - * @param string $version + * @param string $layerName + * @param string $version * @param DeleteLayerVersionHeaders $headers - * @param RuntimeOptions $runtime - * + * @param RuntimeOptions $runtime * @return DeleteLayerVersionResponse */ - public function deleteLayerVersionWithOptions($layerName, $version, $headers, $runtime) - { - $layerName = OpenApiUtilClient::getEncodeParam($layerName); - $version = OpenApiUtilClient::getEncodeParam($version); + public function deleteLayerVersionWithOptions($layerName, $version, $headers, $runtime){ + $layerName = OpenApiUtilClient::getEncodeParam($layerName); + $version = OpenApiUtilClient::getEncodeParam($version); $realHeaders = []; if (!Utils::isUnset($headers->commonHeaders)) { $realHeaders = $headers->commonHeaders; } if (!Utils::isUnset($headers->xFcAccountId)) { - $realHeaders['X-Fc-Account-Id'] = Utils::toJSONString($headers->xFcAccountId); + $realHeaders["X-Fc-Account-Id"] = Utils::toJSONString($headers->xFcAccountId); } if (!Utils::isUnset($headers->xFcDate)) { - $realHeaders['X-Fc-Date'] = Utils::toJSONString($headers->xFcDate); + $realHeaders["X-Fc-Date"] = Utils::toJSONString($headers->xFcDate); } if (!Utils::isUnset($headers->xFcTraceId)) { - $realHeaders['X-Fc-Trace-Id'] = Utils::toJSONString($headers->xFcTraceId); + $realHeaders["X-Fc-Trace-Id"] = Utils::toJSONString($headers->xFcTraceId); } $req = new OpenApiRequest([ - 'headers' => $realHeaders, + "headers" => $realHeaders ]); $params = new Params([ - 'action' => 'DeleteLayerVersion', - 'version' => '2021-04-06', - 'protocol' => 'HTTPS', - 'pathname' => '/2021-04-06/layers/' . $layerName . '/versions/' . $version . '', - 'method' => 'DELETE', - 'authType' => 'AK', - 'style' => 'ROA', - 'reqBodyType' => 'json', - 'bodyType' => 'none', + "action" => "DeleteLayerVersion", + "version" => "2021-04-06", + "protocol" => "HTTPS", + "pathname" => "/2021-04-06/layers/" . $layerName . "/versions/" . $version . "", + "method" => "DELETE", + "authType" => "AK", + "style" => "ROA", + "reqBodyType" => "json", + "bodyType" => "none" ]); - return DeleteLayerVersionResponse::fromMap($this->callApi($params, $req, $runtime)); } /** * @param string $serviceName - * * @return DeleteServiceResponse */ - public function deleteService($serviceName) - { + public function deleteService($serviceName){ $runtime = new RuntimeOptions([]); $headers = new DeleteServiceHeaders([]); - return $this->deleteServiceWithOptions($serviceName, $headers, $runtime); } /** - * @param string $serviceName + * @param string $serviceName * @param DeleteServiceHeaders $headers - * @param RuntimeOptions $runtime - * + * @param RuntimeOptions $runtime * @return DeleteServiceResponse */ - public function deleteServiceWithOptions($serviceName, $headers, $runtime) - { + public function deleteServiceWithOptions($serviceName, $headers, $runtime){ $serviceName = OpenApiUtilClient::getEncodeParam($serviceName); $realHeaders = []; if (!Utils::isUnset($headers->commonHeaders)) { $realHeaders = $headers->commonHeaders; } if (!Utils::isUnset($headers->ifMatch)) { - $realHeaders['If-Match'] = Utils::toJSONString($headers->ifMatch); + $realHeaders["If-Match"] = Utils::toJSONString($headers->ifMatch); } if (!Utils::isUnset($headers->xFcAccountId)) { - $realHeaders['X-Fc-Account-Id'] = Utils::toJSONString($headers->xFcAccountId); + $realHeaders["X-Fc-Account-Id"] = Utils::toJSONString($headers->xFcAccountId); } if (!Utils::isUnset($headers->xFcDate)) { - $realHeaders['X-Fc-Date'] = Utils::toJSONString($headers->xFcDate); + $realHeaders["X-Fc-Date"] = Utils::toJSONString($headers->xFcDate); } if (!Utils::isUnset($headers->xFcTraceId)) { - $realHeaders['X-Fc-Trace-Id'] = Utils::toJSONString($headers->xFcTraceId); + $realHeaders["X-Fc-Trace-Id"] = Utils::toJSONString($headers->xFcTraceId); } $req = new OpenApiRequest([ - 'headers' => $realHeaders, + "headers" => $realHeaders ]); $params = new Params([ - 'action' => 'DeleteService', - 'version' => '2021-04-06', - 'protocol' => 'HTTPS', - 'pathname' => '/2021-04-06/services/' . $serviceName . '', - 'method' => 'DELETE', - 'authType' => 'AK', - 'style' => 'ROA', - 'reqBodyType' => 'json', - 'bodyType' => 'none', + "action" => "DeleteService", + "version" => "2021-04-06", + "protocol" => "HTTPS", + "pathname" => "/2021-04-06/services/" . $serviceName . "", + "method" => "DELETE", + "authType" => "AK", + "style" => "ROA", + "reqBodyType" => "json", + "bodyType" => "none" ]); - return DeleteServiceResponse::fromMap($this->callApi($params, $req, $runtime)); } /** * @param string $serviceName * @param string $versionId - * * @return DeleteServiceVersionResponse */ - public function deleteServiceVersion($serviceName, $versionId) - { + public function deleteServiceVersion($serviceName, $versionId){ $runtime = new RuntimeOptions([]); $headers = new DeleteServiceVersionHeaders([]); - return $this->deleteServiceVersionWithOptions($serviceName, $versionId, $headers, $runtime); } /** - * @param string $serviceName - * @param string $versionId + * @param string $serviceName + * @param string $versionId * @param DeleteServiceVersionHeaders $headers - * @param RuntimeOptions $runtime - * + * @param RuntimeOptions $runtime * @return DeleteServiceVersionResponse */ - public function deleteServiceVersionWithOptions($serviceName, $versionId, $headers, $runtime) - { + public function deleteServiceVersionWithOptions($serviceName, $versionId, $headers, $runtime){ $serviceName = OpenApiUtilClient::getEncodeParam($serviceName); - $versionId = OpenApiUtilClient::getEncodeParam($versionId); + $versionId = OpenApiUtilClient::getEncodeParam($versionId); $realHeaders = []; if (!Utils::isUnset($headers->commonHeaders)) { $realHeaders = $headers->commonHeaders; } if (!Utils::isUnset($headers->xFcAccountId)) { - $realHeaders['X-Fc-Account-Id'] = Utils::toJSONString($headers->xFcAccountId); + $realHeaders["X-Fc-Account-Id"] = Utils::toJSONString($headers->xFcAccountId); } if (!Utils::isUnset($headers->xFcDate)) { - $realHeaders['X-Fc-Date'] = Utils::toJSONString($headers->xFcDate); + $realHeaders["X-Fc-Date"] = Utils::toJSONString($headers->xFcDate); } if (!Utils::isUnset($headers->xFcTraceId)) { - $realHeaders['X-Fc-Trace-Id'] = Utils::toJSONString($headers->xFcTraceId); + $realHeaders["X-Fc-Trace-Id"] = Utils::toJSONString($headers->xFcTraceId); } $req = new OpenApiRequest([ - 'headers' => $realHeaders, + "headers" => $realHeaders ]); $params = new Params([ - 'action' => 'DeleteServiceVersion', - 'version' => '2021-04-06', - 'protocol' => 'HTTPS', - 'pathname' => '/2021-04-06/services/' . $serviceName . '/versions/' . $versionId . '', - 'method' => 'DELETE', - 'authType' => 'AK', - 'style' => 'ROA', - 'reqBodyType' => 'json', - 'bodyType' => 'none', + "action" => "DeleteServiceVersion", + "version" => "2021-04-06", + "protocol" => "HTTPS", + "pathname" => "/2021-04-06/services/" . $serviceName . "/versions/" . $versionId . "", + "method" => "DELETE", + "authType" => "AK", + "style" => "ROA", + "reqBodyType" => "json", + "bodyType" => "none" ]); - return DeleteServiceVersionResponse::fromMap($this->callApi($params, $req, $runtime)); } @@ -1288,928 +1196,839 @@ public function deleteServiceVersionWithOptions($serviceName, $versionId, $heade * @param string $serviceName * @param string $functionName * @param string $triggerName - * * @return DeleteTriggerResponse */ - public function deleteTrigger($serviceName, $functionName, $triggerName) - { + public function deleteTrigger($serviceName, $functionName, $triggerName){ $runtime = new RuntimeOptions([]); $headers = new DeleteTriggerHeaders([]); - return $this->deleteTriggerWithOptions($serviceName, $functionName, $triggerName, $headers, $runtime); } /** - * @param string $serviceName - * @param string $functionName - * @param string $triggerName + * @param string $serviceName + * @param string $functionName + * @param string $triggerName * @param DeleteTriggerHeaders $headers - * @param RuntimeOptions $runtime - * + * @param RuntimeOptions $runtime * @return DeleteTriggerResponse */ - public function deleteTriggerWithOptions($serviceName, $functionName, $triggerName, $headers, $runtime) - { - $serviceName = OpenApiUtilClient::getEncodeParam($serviceName); + public function deleteTriggerWithOptions($serviceName, $functionName, $triggerName, $headers, $runtime){ + $serviceName = OpenApiUtilClient::getEncodeParam($serviceName); $functionName = OpenApiUtilClient::getEncodeParam($functionName); - $triggerName = OpenApiUtilClient::getEncodeParam($triggerName); - $realHeaders = []; + $triggerName = OpenApiUtilClient::getEncodeParam($triggerName); + $realHeaders = []; if (!Utils::isUnset($headers->commonHeaders)) { $realHeaders = $headers->commonHeaders; } if (!Utils::isUnset($headers->ifMatch)) { - $realHeaders['If-Match'] = Utils::toJSONString($headers->ifMatch); + $realHeaders["If-Match"] = Utils::toJSONString($headers->ifMatch); } if (!Utils::isUnset($headers->xFcAccountId)) { - $realHeaders['X-Fc-Account-Id'] = Utils::toJSONString($headers->xFcAccountId); + $realHeaders["X-Fc-Account-Id"] = Utils::toJSONString($headers->xFcAccountId); } if (!Utils::isUnset($headers->xFcDate)) { - $realHeaders['X-Fc-Date'] = Utils::toJSONString($headers->xFcDate); + $realHeaders["X-Fc-Date"] = Utils::toJSONString($headers->xFcDate); } if (!Utils::isUnset($headers->xFcTraceId)) { - $realHeaders['X-Fc-Trace-Id'] = Utils::toJSONString($headers->xFcTraceId); + $realHeaders["X-Fc-Trace-Id"] = Utils::toJSONString($headers->xFcTraceId); } $req = new OpenApiRequest([ - 'headers' => $realHeaders, + "headers" => $realHeaders ]); $params = new Params([ - 'action' => 'DeleteTrigger', - 'version' => '2021-04-06', - 'protocol' => 'HTTPS', - 'pathname' => '/2021-04-06/services/' . $serviceName . '/functions/' . $functionName . '/triggers/' . $triggerName . '', - 'method' => 'DELETE', - 'authType' => 'AK', - 'style' => 'ROA', - 'reqBodyType' => 'json', - 'bodyType' => 'none', + "action" => "DeleteTrigger", + "version" => "2021-04-06", + "protocol" => "HTTPS", + "pathname" => "/2021-04-06/services/" . $serviceName . "/functions/" . $functionName . "/triggers/" . $triggerName . "", + "method" => "DELETE", + "authType" => "AK", + "style" => "ROA", + "reqBodyType" => "json", + "bodyType" => "none" ]); - return DeleteTriggerResponse::fromMap($this->callApi($params, $req, $runtime)); } /** * @param string $serviceName * @param string $vpcId - * * @return DeleteVpcBindingResponse */ - public function deleteVpcBinding($serviceName, $vpcId) - { + public function deleteVpcBinding($serviceName, $vpcId){ $runtime = new RuntimeOptions([]); $headers = new DeleteVpcBindingHeaders([]); - return $this->deleteVpcBindingWithOptions($serviceName, $vpcId, $headers, $runtime); } /** - * @param string $serviceName - * @param string $vpcId + * @param string $serviceName + * @param string $vpcId * @param DeleteVpcBindingHeaders $headers - * @param RuntimeOptions $runtime - * + * @param RuntimeOptions $runtime * @return DeleteVpcBindingResponse */ - public function deleteVpcBindingWithOptions($serviceName, $vpcId, $headers, $runtime) - { + public function deleteVpcBindingWithOptions($serviceName, $vpcId, $headers, $runtime){ $serviceName = OpenApiUtilClient::getEncodeParam($serviceName); - $vpcId = OpenApiUtilClient::getEncodeParam($vpcId); + $vpcId = OpenApiUtilClient::getEncodeParam($vpcId); $realHeaders = []; if (!Utils::isUnset($headers->commonHeaders)) { $realHeaders = $headers->commonHeaders; } if (!Utils::isUnset($headers->xFcAccountId)) { - $realHeaders['X-Fc-Account-Id'] = Utils::toJSONString($headers->xFcAccountId); + $realHeaders["X-Fc-Account-Id"] = Utils::toJSONString($headers->xFcAccountId); } if (!Utils::isUnset($headers->xFcDate)) { - $realHeaders['X-Fc-Date'] = Utils::toJSONString($headers->xFcDate); + $realHeaders["X-Fc-Date"] = Utils::toJSONString($headers->xFcDate); } if (!Utils::isUnset($headers->xFcTraceId)) { - $realHeaders['X-Fc-Trace-Id'] = Utils::toJSONString($headers->xFcTraceId); + $realHeaders["X-Fc-Trace-Id"] = Utils::toJSONString($headers->xFcTraceId); } $req = new OpenApiRequest([ - 'headers' => $realHeaders, + "headers" => $realHeaders ]); $params = new Params([ - 'action' => 'DeleteVpcBinding', - 'version' => '2021-04-06', - 'protocol' => 'HTTPS', - 'pathname' => '/2021-04-06/services/' . $serviceName . '/bindings/' . $vpcId . '', - 'method' => 'DELETE', - 'authType' => 'AK', - 'style' => 'ROA', - 'reqBodyType' => 'json', - 'bodyType' => 'none', + "action" => "DeleteVpcBinding", + "version" => "2021-04-06", + "protocol" => "HTTPS", + "pathname" => "/2021-04-06/services/" . $serviceName . "/bindings/" . $vpcId . "", + "method" => "DELETE", + "authType" => "AK", + "style" => "ROA", + "reqBodyType" => "json", + "bodyType" => "none" ]); - return DeleteVpcBindingResponse::fromMap($this->callApi($params, $req, $runtime)); } /** - * @param string $serviceName - * @param string $functionName - * @param string $sourceArn + * @param string $serviceName + * @param string $functionName + * @param string $sourceArn * @param DeregisterEventSourceRequest $request - * * @return DeregisterEventSourceResponse */ - public function deregisterEventSource($serviceName, $functionName, $sourceArn, $request) - { + public function deregisterEventSource($serviceName, $functionName, $sourceArn, $request){ $runtime = new RuntimeOptions([]); $headers = new DeregisterEventSourceHeaders([]); - return $this->deregisterEventSourceWithOptions($serviceName, $functionName, $sourceArn, $request, $headers, $runtime); } /** - * @param string $serviceName - * @param string $functionName - * @param string $sourceArn + * @param string $serviceName + * @param string $functionName + * @param string $sourceArn * @param DeregisterEventSourceRequest $request * @param DeregisterEventSourceHeaders $headers - * @param RuntimeOptions $runtime - * + * @param RuntimeOptions $runtime * @return DeregisterEventSourceResponse */ - public function deregisterEventSourceWithOptions($serviceName, $functionName, $sourceArn, $request, $headers, $runtime) - { + public function deregisterEventSourceWithOptions($serviceName, $functionName, $sourceArn, $request, $headers, $runtime){ Utils::validateModel($request); - $serviceName = OpenApiUtilClient::getEncodeParam($serviceName); + $serviceName = OpenApiUtilClient::getEncodeParam($serviceName); $functionName = OpenApiUtilClient::getEncodeParam($functionName); - $sourceArn = OpenApiUtilClient::getEncodeParam($sourceArn); - $query = []; + $sourceArn = OpenApiUtilClient::getEncodeParam($sourceArn); + $query = []; if (!Utils::isUnset($request->qualifier)) { - $query['qualifier'] = $request->qualifier; + $query["qualifier"] = $request->qualifier; } $realHeaders = []; if (!Utils::isUnset($headers->commonHeaders)) { $realHeaders = $headers->commonHeaders; } if (!Utils::isUnset($headers->xFcAccountId)) { - $realHeaders['X-Fc-Account-Id'] = Utils::toJSONString($headers->xFcAccountId); + $realHeaders["X-Fc-Account-Id"] = Utils::toJSONString($headers->xFcAccountId); } if (!Utils::isUnset($headers->xFcDate)) { - $realHeaders['X-Fc-Date'] = Utils::toJSONString($headers->xFcDate); + $realHeaders["X-Fc-Date"] = Utils::toJSONString($headers->xFcDate); } if (!Utils::isUnset($headers->xFcTraceId)) { - $realHeaders['X-Fc-Trace-Id'] = Utils::toJSONString($headers->xFcTraceId); + $realHeaders["X-Fc-Trace-Id"] = Utils::toJSONString($headers->xFcTraceId); } $req = new OpenApiRequest([ - 'headers' => $realHeaders, - 'query' => OpenApiUtilClient::query($query), + "headers" => $realHeaders, + "query" => OpenApiUtilClient::query($query) ]); $params = new Params([ - 'action' => 'DeregisterEventSource', - 'version' => '2021-04-06', - 'protocol' => 'HTTPS', - 'pathname' => '/2021-04-06/services/' . $serviceName . '/functions/' . $functionName . '/event-sources/' . $sourceArn . '', - 'method' => 'DELETE', - 'authType' => 'AK', - 'style' => 'ROA', - 'reqBodyType' => 'json', - 'bodyType' => 'none', + "action" => "DeregisterEventSource", + "version" => "2021-04-06", + "protocol" => "HTTPS", + "pathname" => "/2021-04-06/services/" . $serviceName . "/functions/" . $functionName . "/event-sources/" . $sourceArn . "", + "method" => "DELETE", + "authType" => "AK", + "style" => "ROA", + "reqBodyType" => "json", + "bodyType" => "none" ]); - return DeregisterEventSourceResponse::fromMap($this->callApi($params, $req, $runtime)); } /** * @return GetAccountSettingsResponse */ - public function getAccountSettings() - { + public function getAccountSettings(){ $runtime = new RuntimeOptions([]); $headers = new GetAccountSettingsHeaders([]); - return $this->getAccountSettingsWithOptions($headers, $runtime); } /** * @param GetAccountSettingsHeaders $headers - * @param RuntimeOptions $runtime - * + * @param RuntimeOptions $runtime * @return GetAccountSettingsResponse */ - public function getAccountSettingsWithOptions($headers, $runtime) - { + public function getAccountSettingsWithOptions($headers, $runtime){ $realHeaders = []; if (!Utils::isUnset($headers->commonHeaders)) { $realHeaders = $headers->commonHeaders; } if (!Utils::isUnset($headers->xFcAccountId)) { - $realHeaders['X-Fc-Account-Id'] = Utils::toJSONString($headers->xFcAccountId); + $realHeaders["X-Fc-Account-Id"] = Utils::toJSONString($headers->xFcAccountId); } if (!Utils::isUnset($headers->xFcDate)) { - $realHeaders['X-Fc-Date'] = Utils::toJSONString($headers->xFcDate); + $realHeaders["X-Fc-Date"] = Utils::toJSONString($headers->xFcDate); } if (!Utils::isUnset($headers->xFcTraceId)) { - $realHeaders['X-Fc-Trace-Id'] = Utils::toJSONString($headers->xFcTraceId); + $realHeaders["X-Fc-Trace-Id"] = Utils::toJSONString($headers->xFcTraceId); } $req = new OpenApiRequest([ - 'headers' => $realHeaders, + "headers" => $realHeaders ]); $params = new Params([ - 'action' => 'GetAccountSettings', - 'version' => '2021-04-06', - 'protocol' => 'HTTPS', - 'pathname' => '/2021-04-06/account-settings', - 'method' => 'GET', - 'authType' => 'AK', - 'style' => 'ROA', - 'reqBodyType' => 'json', - 'bodyType' => 'json', + "action" => "GetAccountSettings", + "version" => "2021-04-06", + "protocol" => "HTTPS", + "pathname" => "/2021-04-06/account-settings", + "method" => "GET", + "authType" => "AK", + "style" => "ROA", + "reqBodyType" => "json", + "bodyType" => "json" ]); - return GetAccountSettingsResponse::fromMap($this->callApi($params, $req, $runtime)); } /** * @param string $serviceName * @param string $aliasName - * * @return GetAliasResponse */ - public function getAlias($serviceName, $aliasName) - { + public function getAlias($serviceName, $aliasName){ $runtime = new RuntimeOptions([]); $headers = new GetAliasHeaders([]); - return $this->getAliasWithOptions($serviceName, $aliasName, $headers, $runtime); } /** - * @param string $serviceName - * @param string $aliasName + * @param string $serviceName + * @param string $aliasName * @param GetAliasHeaders $headers - * @param RuntimeOptions $runtime - * + * @param RuntimeOptions $runtime * @return GetAliasResponse */ - public function getAliasWithOptions($serviceName, $aliasName, $headers, $runtime) - { + public function getAliasWithOptions($serviceName, $aliasName, $headers, $runtime){ $serviceName = OpenApiUtilClient::getEncodeParam($serviceName); - $aliasName = OpenApiUtilClient::getEncodeParam($aliasName); + $aliasName = OpenApiUtilClient::getEncodeParam($aliasName); $realHeaders = []; if (!Utils::isUnset($headers->commonHeaders)) { $realHeaders = $headers->commonHeaders; } if (!Utils::isUnset($headers->xFcAccountId)) { - $realHeaders['X-Fc-Account-Id'] = Utils::toJSONString($headers->xFcAccountId); + $realHeaders["X-Fc-Account-Id"] = Utils::toJSONString($headers->xFcAccountId); } if (!Utils::isUnset($headers->xFcDate)) { - $realHeaders['X-Fc-Date'] = Utils::toJSONString($headers->xFcDate); + $realHeaders["X-Fc-Date"] = Utils::toJSONString($headers->xFcDate); } if (!Utils::isUnset($headers->xFcTraceId)) { - $realHeaders['X-Fc-Trace-Id'] = Utils::toJSONString($headers->xFcTraceId); + $realHeaders["X-Fc-Trace-Id"] = Utils::toJSONString($headers->xFcTraceId); } $req = new OpenApiRequest([ - 'headers' => $realHeaders, + "headers" => $realHeaders ]); $params = new Params([ - 'action' => 'GetAlias', - 'version' => '2021-04-06', - 'protocol' => 'HTTPS', - 'pathname' => '/2021-04-06/services/' . $serviceName . '/aliases/' . $aliasName . '', - 'method' => 'GET', - 'authType' => 'AK', - 'style' => 'ROA', - 'reqBodyType' => 'json', - 'bodyType' => 'json', + "action" => "GetAlias", + "version" => "2021-04-06", + "protocol" => "HTTPS", + "pathname" => "/2021-04-06/services/" . $serviceName . "/aliases/" . $aliasName . "", + "method" => "GET", + "authType" => "AK", + "style" => "ROA", + "reqBodyType" => "json", + "bodyType" => "json" ]); - return GetAliasResponse::fromMap($this->callApi($params, $req, $runtime)); } /** * @param string $domainName - * * @return GetCustomDomainResponse */ - public function getCustomDomain($domainName) - { + public function getCustomDomain($domainName){ $runtime = new RuntimeOptions([]); $headers = new GetCustomDomainHeaders([]); - return $this->getCustomDomainWithOptions($domainName, $headers, $runtime); } /** - * @param string $domainName + * @param string $domainName * @param GetCustomDomainHeaders $headers - * @param RuntimeOptions $runtime - * + * @param RuntimeOptions $runtime * @return GetCustomDomainResponse */ - public function getCustomDomainWithOptions($domainName, $headers, $runtime) - { - $domainName = OpenApiUtilClient::getEncodeParam($domainName); + public function getCustomDomainWithOptions($domainName, $headers, $runtime){ + $domainName = OpenApiUtilClient::getEncodeParam($domainName); $realHeaders = []; if (!Utils::isUnset($headers->commonHeaders)) { $realHeaders = $headers->commonHeaders; } if (!Utils::isUnset($headers->xFcAccountId)) { - $realHeaders['X-Fc-Account-Id'] = Utils::toJSONString($headers->xFcAccountId); + $realHeaders["X-Fc-Account-Id"] = Utils::toJSONString($headers->xFcAccountId); } if (!Utils::isUnset($headers->xFcDate)) { - $realHeaders['X-Fc-Date'] = Utils::toJSONString($headers->xFcDate); + $realHeaders["X-Fc-Date"] = Utils::toJSONString($headers->xFcDate); } if (!Utils::isUnset($headers->xFcTraceId)) { - $realHeaders['X-Fc-Trace-Id'] = Utils::toJSONString($headers->xFcTraceId); + $realHeaders["X-Fc-Trace-Id"] = Utils::toJSONString($headers->xFcTraceId); } $req = new OpenApiRequest([ - 'headers' => $realHeaders, + "headers" => $realHeaders ]); $params = new Params([ - 'action' => 'GetCustomDomain', - 'version' => '2021-04-06', - 'protocol' => 'HTTPS', - 'pathname' => '/2021-04-06/custom-domains/' . $domainName . '', - 'method' => 'GET', - 'authType' => 'AK', - 'style' => 'ROA', - 'reqBodyType' => 'json', - 'bodyType' => 'json', + "action" => "GetCustomDomain", + "version" => "2021-04-06", + "protocol" => "HTTPS", + "pathname" => "/2021-04-06/custom-domains/" . $domainName . "", + "method" => "GET", + "authType" => "AK", + "style" => "ROA", + "reqBodyType" => "json", + "bodyType" => "json" ]); - return GetCustomDomainResponse::fromMap($this->callApi($params, $req, $runtime)); } /** - * @param string $serviceName - * @param string $functionName + * @param string $serviceName + * @param string $functionName * @param GetFunctionRequest $request - * * @return GetFunctionResponse */ - public function getFunction($serviceName, $functionName, $request) - { + public function getFunction($serviceName, $functionName, $request){ $runtime = new RuntimeOptions([]); $headers = new GetFunctionHeaders([]); - return $this->getFunctionWithOptions($serviceName, $functionName, $request, $headers, $runtime); } /** - * @param string $serviceName - * @param string $functionName + * @param string $serviceName + * @param string $functionName * @param GetFunctionRequest $request * @param GetFunctionHeaders $headers - * @param RuntimeOptions $runtime - * + * @param RuntimeOptions $runtime * @return GetFunctionResponse */ - public function getFunctionWithOptions($serviceName, $functionName, $request, $headers, $runtime) - { + public function getFunctionWithOptions($serviceName, $functionName, $request, $headers, $runtime){ Utils::validateModel($request); - $serviceName = OpenApiUtilClient::getEncodeParam($serviceName); + $serviceName = OpenApiUtilClient::getEncodeParam($serviceName); $functionName = OpenApiUtilClient::getEncodeParam($functionName); - $query = []; + $query = []; if (!Utils::isUnset($request->qualifier)) { - $query['qualifier'] = $request->qualifier; + $query["qualifier"] = $request->qualifier; } $realHeaders = []; if (!Utils::isUnset($headers->commonHeaders)) { $realHeaders = $headers->commonHeaders; } if (!Utils::isUnset($headers->xFcAccountId)) { - $realHeaders['X-Fc-Account-Id'] = Utils::toJSONString($headers->xFcAccountId); + $realHeaders["X-Fc-Account-Id"] = Utils::toJSONString($headers->xFcAccountId); } if (!Utils::isUnset($headers->xFcDate)) { - $realHeaders['X-Fc-Date'] = Utils::toJSONString($headers->xFcDate); + $realHeaders["X-Fc-Date"] = Utils::toJSONString($headers->xFcDate); } if (!Utils::isUnset($headers->xFcTraceId)) { - $realHeaders['X-Fc-Trace-Id'] = Utils::toJSONString($headers->xFcTraceId); + $realHeaders["X-Fc-Trace-Id"] = Utils::toJSONString($headers->xFcTraceId); } $req = new OpenApiRequest([ - 'headers' => $realHeaders, - 'query' => OpenApiUtilClient::query($query), + "headers" => $realHeaders, + "query" => OpenApiUtilClient::query($query) ]); $params = new Params([ - 'action' => 'GetFunction', - 'version' => '2021-04-06', - 'protocol' => 'HTTPS', - 'pathname' => '/2021-04-06/services/' . $serviceName . '/functions/' . $functionName . '', - 'method' => 'GET', - 'authType' => 'AK', - 'style' => 'ROA', - 'reqBodyType' => 'json', - 'bodyType' => 'json', + "action" => "GetFunction", + "version" => "2021-04-06", + "protocol" => "HTTPS", + "pathname" => "/2021-04-06/services/" . $serviceName . "/functions/" . $functionName . "", + "method" => "GET", + "authType" => "AK", + "style" => "ROA", + "reqBodyType" => "json", + "bodyType" => "json" ]); - return GetFunctionResponse::fromMap($this->callApi($params, $req, $runtime)); } /** - * @param string $serviceName - * @param string $functionName + * @param string $serviceName + * @param string $functionName * @param GetFunctionAsyncInvokeConfigRequest $request - * * @return GetFunctionAsyncInvokeConfigResponse */ - public function getFunctionAsyncInvokeConfig($serviceName, $functionName, $request) - { + public function getFunctionAsyncInvokeConfig($serviceName, $functionName, $request){ $runtime = new RuntimeOptions([]); $headers = new GetFunctionAsyncInvokeConfigHeaders([]); - return $this->getFunctionAsyncInvokeConfigWithOptions($serviceName, $functionName, $request, $headers, $runtime); } /** - * @param string $serviceName - * @param string $functionName + * @param string $serviceName + * @param string $functionName * @param GetFunctionAsyncInvokeConfigRequest $request * @param GetFunctionAsyncInvokeConfigHeaders $headers - * @param RuntimeOptions $runtime - * + * @param RuntimeOptions $runtime * @return GetFunctionAsyncInvokeConfigResponse */ - public function getFunctionAsyncInvokeConfigWithOptions($serviceName, $functionName, $request, $headers, $runtime) - { + public function getFunctionAsyncInvokeConfigWithOptions($serviceName, $functionName, $request, $headers, $runtime){ Utils::validateModel($request); - $serviceName = OpenApiUtilClient::getEncodeParam($serviceName); + $serviceName = OpenApiUtilClient::getEncodeParam($serviceName); $functionName = OpenApiUtilClient::getEncodeParam($functionName); - $query = []; + $query = []; if (!Utils::isUnset($request->qualifier)) { - $query['qualifier'] = $request->qualifier; + $query["qualifier"] = $request->qualifier; } $realHeaders = []; if (!Utils::isUnset($headers->commonHeaders)) { $realHeaders = $headers->commonHeaders; } if (!Utils::isUnset($headers->xFcAccountId)) { - $realHeaders['X-Fc-Account-Id'] = Utils::toJSONString($headers->xFcAccountId); + $realHeaders["X-Fc-Account-Id"] = Utils::toJSONString($headers->xFcAccountId); } if (!Utils::isUnset($headers->xFcDate)) { - $realHeaders['X-Fc-Date'] = Utils::toJSONString($headers->xFcDate); + $realHeaders["X-Fc-Date"] = Utils::toJSONString($headers->xFcDate); } if (!Utils::isUnset($headers->xFcTraceId)) { - $realHeaders['X-Fc-Trace-Id'] = Utils::toJSONString($headers->xFcTraceId); + $realHeaders["X-Fc-Trace-Id"] = Utils::toJSONString($headers->xFcTraceId); } $req = new OpenApiRequest([ - 'headers' => $realHeaders, - 'query' => OpenApiUtilClient::query($query), + "headers" => $realHeaders, + "query" => OpenApiUtilClient::query($query) ]); $params = new Params([ - 'action' => 'GetFunctionAsyncInvokeConfig', - 'version' => '2021-04-06', - 'protocol' => 'HTTPS', - 'pathname' => '/2021-04-06/services/' . $serviceName . '/functions/' . $functionName . '/async-invoke-config', - 'method' => 'GET', - 'authType' => 'AK', - 'style' => 'ROA', - 'reqBodyType' => 'json', - 'bodyType' => 'json', + "action" => "GetFunctionAsyncInvokeConfig", + "version" => "2021-04-06", + "protocol" => "HTTPS", + "pathname" => "/2021-04-06/services/" . $serviceName . "/functions/" . $functionName . "/async-invoke-config", + "method" => "GET", + "authType" => "AK", + "style" => "ROA", + "reqBodyType" => "json", + "bodyType" => "json" ]); - return GetFunctionAsyncInvokeConfigResponse::fromMap($this->callApi($params, $req, $runtime)); } /** - * @param string $serviceName - * @param string $functionName + * @param string $serviceName + * @param string $functionName * @param GetFunctionCodeRequest $request - * * @return GetFunctionCodeResponse */ - public function getFunctionCode($serviceName, $functionName, $request) - { + public function getFunctionCode($serviceName, $functionName, $request){ $runtime = new RuntimeOptions([]); $headers = new GetFunctionCodeHeaders([]); - return $this->getFunctionCodeWithOptions($serviceName, $functionName, $request, $headers, $runtime); } /** - * @param string $serviceName - * @param string $functionName + * @param string $serviceName + * @param string $functionName * @param GetFunctionCodeRequest $request * @param GetFunctionCodeHeaders $headers - * @param RuntimeOptions $runtime - * + * @param RuntimeOptions $runtime * @return GetFunctionCodeResponse */ - public function getFunctionCodeWithOptions($serviceName, $functionName, $request, $headers, $runtime) - { + public function getFunctionCodeWithOptions($serviceName, $functionName, $request, $headers, $runtime){ Utils::validateModel($request); - $serviceName = OpenApiUtilClient::getEncodeParam($serviceName); + $serviceName = OpenApiUtilClient::getEncodeParam($serviceName); $functionName = OpenApiUtilClient::getEncodeParam($functionName); - $query = []; + $query = []; if (!Utils::isUnset($request->qualifier)) { - $query['qualifier'] = $request->qualifier; + $query["qualifier"] = $request->qualifier; } $realHeaders = []; if (!Utils::isUnset($headers->commonHeaders)) { $realHeaders = $headers->commonHeaders; } if (!Utils::isUnset($headers->xFcAccountId)) { - $realHeaders['X-Fc-Account-Id'] = Utils::toJSONString($headers->xFcAccountId); + $realHeaders["X-Fc-Account-Id"] = Utils::toJSONString($headers->xFcAccountId); } if (!Utils::isUnset($headers->xFcDate)) { - $realHeaders['X-Fc-Date'] = Utils::toJSONString($headers->xFcDate); + $realHeaders["X-Fc-Date"] = Utils::toJSONString($headers->xFcDate); } if (!Utils::isUnset($headers->xFcTraceId)) { - $realHeaders['X-Fc-Trace-Id'] = Utils::toJSONString($headers->xFcTraceId); + $realHeaders["X-Fc-Trace-Id"] = Utils::toJSONString($headers->xFcTraceId); } $req = new OpenApiRequest([ - 'headers' => $realHeaders, - 'query' => OpenApiUtilClient::query($query), + "headers" => $realHeaders, + "query" => OpenApiUtilClient::query($query) ]); $params = new Params([ - 'action' => 'GetFunctionCode', - 'version' => '2021-04-06', - 'protocol' => 'HTTPS', - 'pathname' => '/2021-04-06/services/' . $serviceName . '/functions/' . $functionName . '/code', - 'method' => 'GET', - 'authType' => 'AK', - 'style' => 'ROA', - 'reqBodyType' => 'json', - 'bodyType' => 'json', + "action" => "GetFunctionCode", + "version" => "2021-04-06", + "protocol" => "HTTPS", + "pathname" => "/2021-04-06/services/" . $serviceName . "/functions/" . $functionName . "/code", + "method" => "GET", + "authType" => "AK", + "style" => "ROA", + "reqBodyType" => "json", + "bodyType" => "json" ]); - return GetFunctionCodeResponse::fromMap($this->callApi($params, $req, $runtime)); } /** - * @param string $serviceName - * @param string $functionName + * @param string $serviceName + * @param string $functionName * @param GetFunctionOnDemandConfigRequest $request - * * @return GetFunctionOnDemandConfigResponse */ - public function getFunctionOnDemandConfig($serviceName, $functionName, $request) - { + public function getFunctionOnDemandConfig($serviceName, $functionName, $request){ $runtime = new RuntimeOptions([]); $headers = new GetFunctionOnDemandConfigHeaders([]); - return $this->getFunctionOnDemandConfigWithOptions($serviceName, $functionName, $request, $headers, $runtime); } /** - * @param string $serviceName - * @param string $functionName + * @param string $serviceName + * @param string $functionName * @param GetFunctionOnDemandConfigRequest $request * @param GetFunctionOnDemandConfigHeaders $headers - * @param RuntimeOptions $runtime - * + * @param RuntimeOptions $runtime * @return GetFunctionOnDemandConfigResponse */ - public function getFunctionOnDemandConfigWithOptions($serviceName, $functionName, $request, $headers, $runtime) - { + public function getFunctionOnDemandConfigWithOptions($serviceName, $functionName, $request, $headers, $runtime){ Utils::validateModel($request); - $serviceName = OpenApiUtilClient::getEncodeParam($serviceName); + $serviceName = OpenApiUtilClient::getEncodeParam($serviceName); $functionName = OpenApiUtilClient::getEncodeParam($functionName); - $query = []; + $query = []; if (!Utils::isUnset($request->qualifier)) { - $query['qualifier'] = $request->qualifier; + $query["qualifier"] = $request->qualifier; } $realHeaders = []; if (!Utils::isUnset($headers->commonHeaders)) { $realHeaders = $headers->commonHeaders; } if (!Utils::isUnset($headers->xFcAccountId)) { - $realHeaders['X-Fc-Account-Id'] = Utils::toJSONString($headers->xFcAccountId); + $realHeaders["X-Fc-Account-Id"] = Utils::toJSONString($headers->xFcAccountId); } if (!Utils::isUnset($headers->xFcDate)) { - $realHeaders['X-Fc-Date'] = Utils::toJSONString($headers->xFcDate); + $realHeaders["X-Fc-Date"] = Utils::toJSONString($headers->xFcDate); } if (!Utils::isUnset($headers->xFcTraceId)) { - $realHeaders['X-Fc-Trace-Id'] = Utils::toJSONString($headers->xFcTraceId); + $realHeaders["X-Fc-Trace-Id"] = Utils::toJSONString($headers->xFcTraceId); } $req = new OpenApiRequest([ - 'headers' => $realHeaders, - 'query' => OpenApiUtilClient::query($query), + "headers" => $realHeaders, + "query" => OpenApiUtilClient::query($query) ]); $params = new Params([ - 'action' => 'GetFunctionOnDemandConfig', - 'version' => '2021-04-06', - 'protocol' => 'HTTPS', - 'pathname' => '/2021-04-06/services/' . $serviceName . '/functions/' . $functionName . '/on-demand-config', - 'method' => 'GET', - 'authType' => 'AK', - 'style' => 'ROA', - 'reqBodyType' => 'json', - 'bodyType' => 'json', + "action" => "GetFunctionOnDemandConfig", + "version" => "2021-04-06", + "protocol" => "HTTPS", + "pathname" => "/2021-04-06/services/" . $serviceName . "/functions/" . $functionName . "/on-demand-config", + "method" => "GET", + "authType" => "AK", + "style" => "ROA", + "reqBodyType" => "json", + "bodyType" => "json" ]); - return GetFunctionOnDemandConfigResponse::fromMap($this->callApi($params, $req, $runtime)); } /** * @param string $layerName * @param string $version - * * @return GetLayerVersionResponse */ - public function getLayerVersion($layerName, $version) - { + public function getLayerVersion($layerName, $version){ $runtime = new RuntimeOptions([]); $headers = new GetLayerVersionHeaders([]); - return $this->getLayerVersionWithOptions($layerName, $version, $headers, $runtime); } /** - * @param string $layerName - * @param string $version + * @param string $layerName + * @param string $version * @param GetLayerVersionHeaders $headers - * @param RuntimeOptions $runtime - * + * @param RuntimeOptions $runtime * @return GetLayerVersionResponse */ - public function getLayerVersionWithOptions($layerName, $version, $headers, $runtime) - { - $layerName = OpenApiUtilClient::getEncodeParam($layerName); - $version = OpenApiUtilClient::getEncodeParam($version); + public function getLayerVersionWithOptions($layerName, $version, $headers, $runtime){ + $layerName = OpenApiUtilClient::getEncodeParam($layerName); + $version = OpenApiUtilClient::getEncodeParam($version); $realHeaders = []; if (!Utils::isUnset($headers->commonHeaders)) { $realHeaders = $headers->commonHeaders; } if (!Utils::isUnset($headers->xFcAccountId)) { - $realHeaders['X-Fc-Account-Id'] = Utils::toJSONString($headers->xFcAccountId); + $realHeaders["X-Fc-Account-Id"] = Utils::toJSONString($headers->xFcAccountId); } if (!Utils::isUnset($headers->xFcDate)) { - $realHeaders['X-Fc-Date'] = Utils::toJSONString($headers->xFcDate); + $realHeaders["X-Fc-Date"] = Utils::toJSONString($headers->xFcDate); } if (!Utils::isUnset($headers->xFcTraceId)) { - $realHeaders['X-Fc-Trace-Id'] = Utils::toJSONString($headers->xFcTraceId); + $realHeaders["X-Fc-Trace-Id"] = Utils::toJSONString($headers->xFcTraceId); } $req = new OpenApiRequest([ - 'headers' => $realHeaders, + "headers" => $realHeaders ]); $params = new Params([ - 'action' => 'GetLayerVersion', - 'version' => '2021-04-06', - 'protocol' => 'HTTPS', - 'pathname' => '/2021-04-06/layers/' . $layerName . '/versions/' . $version . '', - 'method' => 'GET', - 'authType' => 'AK', - 'style' => 'ROA', - 'reqBodyType' => 'json', - 'bodyType' => 'json', + "action" => "GetLayerVersion", + "version" => "2021-04-06", + "protocol" => "HTTPS", + "pathname" => "/2021-04-06/layers/" . $layerName . "/versions/" . $version . "", + "method" => "GET", + "authType" => "AK", + "style" => "ROA", + "reqBodyType" => "json", + "bodyType" => "json" ]); - return GetLayerVersionResponse::fromMap($this->callApi($params, $req, $runtime)); } /** - * @param string $serviceName - * @param string $functionName + * @param string $serviceName + * @param string $functionName * @param GetProvisionConfigRequest $request - * * @return GetProvisionConfigResponse */ - public function getProvisionConfig($serviceName, $functionName, $request) - { + public function getProvisionConfig($serviceName, $functionName, $request){ $runtime = new RuntimeOptions([]); $headers = new GetProvisionConfigHeaders([]); - return $this->getProvisionConfigWithOptions($serviceName, $functionName, $request, $headers, $runtime); } /** - * @param string $serviceName - * @param string $functionName + * @param string $serviceName + * @param string $functionName * @param GetProvisionConfigRequest $request * @param GetProvisionConfigHeaders $headers - * @param RuntimeOptions $runtime - * + * @param RuntimeOptions $runtime * @return GetProvisionConfigResponse */ - public function getProvisionConfigWithOptions($serviceName, $functionName, $request, $headers, $runtime) - { + public function getProvisionConfigWithOptions($serviceName, $functionName, $request, $headers, $runtime){ Utils::validateModel($request); - $serviceName = OpenApiUtilClient::getEncodeParam($serviceName); + $serviceName = OpenApiUtilClient::getEncodeParam($serviceName); $functionName = OpenApiUtilClient::getEncodeParam($functionName); - $query = []; + $query = []; if (!Utils::isUnset($request->qualifier)) { - $query['qualifier'] = $request->qualifier; + $query["qualifier"] = $request->qualifier; } $realHeaders = []; if (!Utils::isUnset($headers->commonHeaders)) { $realHeaders = $headers->commonHeaders; } if (!Utils::isUnset($headers->xFcAccountId)) { - $realHeaders['X-Fc-Account-Id'] = Utils::toJSONString($headers->xFcAccountId); + $realHeaders["X-Fc-Account-Id"] = Utils::toJSONString($headers->xFcAccountId); } if (!Utils::isUnset($headers->xFcDate)) { - $realHeaders['X-Fc-Date'] = Utils::toJSONString($headers->xFcDate); + $realHeaders["X-Fc-Date"] = Utils::toJSONString($headers->xFcDate); } if (!Utils::isUnset($headers->xFcTraceId)) { - $realHeaders['X-Fc-Trace-Id'] = Utils::toJSONString($headers->xFcTraceId); + $realHeaders["X-Fc-Trace-Id"] = Utils::toJSONString($headers->xFcTraceId); } $req = new OpenApiRequest([ - 'headers' => $realHeaders, - 'query' => OpenApiUtilClient::query($query), + "headers" => $realHeaders, + "query" => OpenApiUtilClient::query($query) ]); $params = new Params([ - 'action' => 'GetProvisionConfig', - 'version' => '2021-04-06', - 'protocol' => 'HTTPS', - 'pathname' => '/2021-04-06/services/' . $serviceName . '/functions/' . $functionName . '/provision-config', - 'method' => 'GET', - 'authType' => 'AK', - 'style' => 'ROA', - 'reqBodyType' => 'json', - 'bodyType' => 'json', + "action" => "GetProvisionConfig", + "version" => "2021-04-06", + "protocol" => "HTTPS", + "pathname" => "/2021-04-06/services/" . $serviceName . "/functions/" . $functionName . "/provision-config", + "method" => "GET", + "authType" => "AK", + "style" => "ROA", + "reqBodyType" => "json", + "bodyType" => "json" ]); - return GetProvisionConfigResponse::fromMap($this->callApi($params, $req, $runtime)); } /** * @param GetResourceTagsRequest $request - * * @return GetResourceTagsResponse */ - public function getResourceTags($request) - { + public function getResourceTags($request){ $runtime = new RuntimeOptions([]); $headers = new GetResourceTagsHeaders([]); - return $this->getResourceTagsWithOptions($request, $headers, $runtime); } /** * @param GetResourceTagsRequest $request * @param GetResourceTagsHeaders $headers - * @param RuntimeOptions $runtime - * + * @param RuntimeOptions $runtime * @return GetResourceTagsResponse */ - public function getResourceTagsWithOptions($request, $headers, $runtime) - { + public function getResourceTagsWithOptions($request, $headers, $runtime){ Utils::validateModel($request); $query = []; if (!Utils::isUnset($request->resourceArn)) { - $query['resourceArn'] = $request->resourceArn; + $query["resourceArn"] = $request->resourceArn; } $realHeaders = []; if (!Utils::isUnset($headers->commonHeaders)) { $realHeaders = $headers->commonHeaders; } if (!Utils::isUnset($headers->xFcAccountId)) { - $realHeaders['X-Fc-Account-Id'] = Utils::toJSONString($headers->xFcAccountId); + $realHeaders["X-Fc-Account-Id"] = Utils::toJSONString($headers->xFcAccountId); } if (!Utils::isUnset($headers->xFcDate)) { - $realHeaders['X-Fc-Date'] = Utils::toJSONString($headers->xFcDate); + $realHeaders["X-Fc-Date"] = Utils::toJSONString($headers->xFcDate); } if (!Utils::isUnset($headers->xFcTraceId)) { - $realHeaders['X-Fc-Trace-Id'] = Utils::toJSONString($headers->xFcTraceId); + $realHeaders["X-Fc-Trace-Id"] = Utils::toJSONString($headers->xFcTraceId); } $req = new OpenApiRequest([ - 'headers' => $realHeaders, - 'query' => OpenApiUtilClient::query($query), + "headers" => $realHeaders, + "query" => OpenApiUtilClient::query($query) ]); $params = new Params([ - 'action' => 'GetResourceTags', - 'version' => '2021-04-06', - 'protocol' => 'HTTPS', - 'pathname' => '/2021-04-06/tag', - 'method' => 'GET', - 'authType' => 'AK', - 'style' => 'ROA', - 'reqBodyType' => 'json', - 'bodyType' => 'json', + "action" => "GetResourceTags", + "version" => "2021-04-06", + "protocol" => "HTTPS", + "pathname" => "/2021-04-06/tag", + "method" => "GET", + "authType" => "AK", + "style" => "ROA", + "reqBodyType" => "json", + "bodyType" => "json" ]); - return GetResourceTagsResponse::fromMap($this->callApi($params, $req, $runtime)); } /** - * @param string $serviceName + * @param string $serviceName * @param GetServiceRequest $request - * * @return GetServiceResponse */ - public function getService($serviceName, $request) - { + public function getService($serviceName, $request){ $runtime = new RuntimeOptions([]); $headers = new GetServiceHeaders([]); - return $this->getServiceWithOptions($serviceName, $request, $headers, $runtime); } /** - * @param string $serviceName + * @param string $serviceName * @param GetServiceRequest $request * @param GetServiceHeaders $headers - * @param RuntimeOptions $runtime - * + * @param RuntimeOptions $runtime * @return GetServiceResponse */ - public function getServiceWithOptions($serviceName, $request, $headers, $runtime) - { + public function getServiceWithOptions($serviceName, $request, $headers, $runtime){ Utils::validateModel($request); $serviceName = OpenApiUtilClient::getEncodeParam($serviceName); - $query = []; + $query = []; if (!Utils::isUnset($request->qualifier)) { - $query['qualifier'] = $request->qualifier; + $query["qualifier"] = $request->qualifier; } $realHeaders = []; if (!Utils::isUnset($headers->commonHeaders)) { $realHeaders = $headers->commonHeaders; } if (!Utils::isUnset($headers->xFcAccountId)) { - $realHeaders['X-Fc-Account-Id'] = Utils::toJSONString($headers->xFcAccountId); + $realHeaders["X-Fc-Account-Id"] = Utils::toJSONString($headers->xFcAccountId); } if (!Utils::isUnset($headers->xFcDate)) { - $realHeaders['X-Fc-Date'] = Utils::toJSONString($headers->xFcDate); + $realHeaders["X-Fc-Date"] = Utils::toJSONString($headers->xFcDate); } if (!Utils::isUnset($headers->xFcTraceId)) { - $realHeaders['X-Fc-Trace-Id'] = Utils::toJSONString($headers->xFcTraceId); + $realHeaders["X-Fc-Trace-Id"] = Utils::toJSONString($headers->xFcTraceId); } $req = new OpenApiRequest([ - 'headers' => $realHeaders, - 'query' => OpenApiUtilClient::query($query), + "headers" => $realHeaders, + "query" => OpenApiUtilClient::query($query) ]); $params = new Params([ - 'action' => 'GetService', - 'version' => '2021-04-06', - 'protocol' => 'HTTPS', - 'pathname' => '/2021-04-06/services/' . $serviceName . '', - 'method' => 'GET', - 'authType' => 'AK', - 'style' => 'ROA', - 'reqBodyType' => 'json', - 'bodyType' => 'json', + "action" => "GetService", + "version" => "2021-04-06", + "protocol" => "HTTPS", + "pathname" => "/2021-04-06/services/" . $serviceName . "", + "method" => "GET", + "authType" => "AK", + "style" => "ROA", + "reqBodyType" => "json", + "bodyType" => "json" ]); - return GetServiceResponse::fromMap($this->callApi($params, $req, $runtime)); } /** - * @param string $serviceName - * @param string $functionName - * @param string $invocationId + * @param string $serviceName + * @param string $functionName + * @param string $invocationId * @param GetStatefulAsyncInvocationRequest $request - * * @return GetStatefulAsyncInvocationResponse */ - public function getStatefulAsyncInvocation($serviceName, $functionName, $invocationId, $request) - { + public function getStatefulAsyncInvocation($serviceName, $functionName, $invocationId, $request){ $runtime = new RuntimeOptions([]); $headers = new GetStatefulAsyncInvocationHeaders([]); - return $this->getStatefulAsyncInvocationWithOptions($serviceName, $functionName, $invocationId, $request, $headers, $runtime); } /** - * @param string $serviceName - * @param string $functionName - * @param string $invocationId + * @param string $serviceName + * @param string $functionName + * @param string $invocationId * @param GetStatefulAsyncInvocationRequest $request * @param GetStatefulAsyncInvocationHeaders $headers - * @param RuntimeOptions $runtime - * + * @param RuntimeOptions $runtime * @return GetStatefulAsyncInvocationResponse */ - public function getStatefulAsyncInvocationWithOptions($serviceName, $functionName, $invocationId, $request, $headers, $runtime) - { + public function getStatefulAsyncInvocationWithOptions($serviceName, $functionName, $invocationId, $request, $headers, $runtime){ Utils::validateModel($request); - $serviceName = OpenApiUtilClient::getEncodeParam($serviceName); + $serviceName = OpenApiUtilClient::getEncodeParam($serviceName); $functionName = OpenApiUtilClient::getEncodeParam($functionName); $invocationId = OpenApiUtilClient::getEncodeParam($invocationId); - $query = []; + $query = []; if (!Utils::isUnset($request->qualifier)) { - $query['qualifier'] = $request->qualifier; + $query["qualifier"] = $request->qualifier; } $realHeaders = []; if (!Utils::isUnset($headers->commonHeaders)) { $realHeaders = $headers->commonHeaders; } if (!Utils::isUnset($headers->xFcAccountId)) { - $realHeaders['X-Fc-Account-Id'] = Utils::toJSONString($headers->xFcAccountId); + $realHeaders["X-Fc-Account-Id"] = Utils::toJSONString($headers->xFcAccountId); } if (!Utils::isUnset($headers->xFcCodeChecksum)) { - $realHeaders['X-Fc-Code-Checksum'] = Utils::toJSONString($headers->xFcCodeChecksum); + $realHeaders["X-Fc-Code-Checksum"] = Utils::toJSONString($headers->xFcCodeChecksum); } if (!Utils::isUnset($headers->xFcDate)) { - $realHeaders['X-Fc-Date'] = Utils::toJSONString($headers->xFcDate); + $realHeaders["X-Fc-Date"] = Utils::toJSONString($headers->xFcDate); } if (!Utils::isUnset($headers->xFcInvocationType)) { - $realHeaders['X-Fc-Invocation-Type'] = Utils::toJSONString($headers->xFcInvocationType); + $realHeaders["X-Fc-Invocation-Type"] = Utils::toJSONString($headers->xFcInvocationType); } if (!Utils::isUnset($headers->xFcLogType)) { - $realHeaders['X-Fc-Log-Type'] = Utils::toJSONString($headers->xFcLogType); + $realHeaders["X-Fc-Log-Type"] = Utils::toJSONString($headers->xFcLogType); } if (!Utils::isUnset($headers->xFcTraceId)) { - $realHeaders['X-Fc-Trace-Id'] = Utils::toJSONString($headers->xFcTraceId); + $realHeaders["X-Fc-Trace-Id"] = Utils::toJSONString($headers->xFcTraceId); } $req = new OpenApiRequest([ - 'headers' => $realHeaders, - 'query' => OpenApiUtilClient::query($query), + "headers" => $realHeaders, + "query" => OpenApiUtilClient::query($query) ]); $params = new Params([ - 'action' => 'GetStatefulAsyncInvocation', - 'version' => '2021-04-06', - 'protocol' => 'HTTPS', - 'pathname' => '/2021-04-06/services/' . $serviceName . '/functions/' . $functionName . '/stateful-async-invocations/' . $invocationId . '', - 'method' => 'GET', - 'authType' => 'AK', - 'style' => 'ROA', - 'reqBodyType' => 'json', - 'bodyType' => 'json', + "action" => "GetStatefulAsyncInvocation", + "version" => "2021-04-06", + "protocol" => "HTTPS", + "pathname" => "/2021-04-06/services/" . $serviceName . "/functions/" . $functionName . "/stateful-async-invocations/" . $invocationId . "", + "method" => "GET", + "authType" => "AK", + "style" => "ROA", + "reqBodyType" => "json", + "bodyType" => "json" ]); - return GetStatefulAsyncInvocationResponse::fromMap($this->callApi($params, $req, $runtime)); } @@ -2217,96 +2036,85 @@ public function getStatefulAsyncInvocationWithOptions($serviceName, $functionNam * @param string $serviceName * @param string $functionName * @param string $triggerName - * * @return GetTriggerResponse */ - public function getTrigger($serviceName, $functionName, $triggerName) - { + public function getTrigger($serviceName, $functionName, $triggerName){ $runtime = new RuntimeOptions([]); $headers = new GetTriggerHeaders([]); - return $this->getTriggerWithOptions($serviceName, $functionName, $triggerName, $headers, $runtime); } /** - * @param string $serviceName - * @param string $functionName - * @param string $triggerName + * @param string $serviceName + * @param string $functionName + * @param string $triggerName * @param GetTriggerHeaders $headers - * @param RuntimeOptions $runtime - * + * @param RuntimeOptions $runtime * @return GetTriggerResponse */ - public function getTriggerWithOptions($serviceName, $functionName, $triggerName, $headers, $runtime) - { - $serviceName = OpenApiUtilClient::getEncodeParam($serviceName); + public function getTriggerWithOptions($serviceName, $functionName, $triggerName, $headers, $runtime){ + $serviceName = OpenApiUtilClient::getEncodeParam($serviceName); $functionName = OpenApiUtilClient::getEncodeParam($functionName); - $triggerName = OpenApiUtilClient::getEncodeParam($triggerName); - $realHeaders = []; + $triggerName = OpenApiUtilClient::getEncodeParam($triggerName); + $realHeaders = []; if (!Utils::isUnset($headers->commonHeaders)) { $realHeaders = $headers->commonHeaders; } if (!Utils::isUnset($headers->xFcAccountId)) { - $realHeaders['X-Fc-Account-Id'] = Utils::toJSONString($headers->xFcAccountId); + $realHeaders["X-Fc-Account-Id"] = Utils::toJSONString($headers->xFcAccountId); } if (!Utils::isUnset($headers->xFcDate)) { - $realHeaders['X-Fc-Date'] = Utils::toJSONString($headers->xFcDate); + $realHeaders["X-Fc-Date"] = Utils::toJSONString($headers->xFcDate); } if (!Utils::isUnset($headers->xFcTraceId)) { - $realHeaders['X-Fc-Trace-Id'] = Utils::toJSONString($headers->xFcTraceId); + $realHeaders["X-Fc-Trace-Id"] = Utils::toJSONString($headers->xFcTraceId); } $req = new OpenApiRequest([ - 'headers' => $realHeaders, + "headers" => $realHeaders ]); $params = new Params([ - 'action' => 'GetTrigger', - 'version' => '2021-04-06', - 'protocol' => 'HTTPS', - 'pathname' => '/2021-04-06/services/' . $serviceName . '/functions/' . $functionName . '/triggers/' . $triggerName . '', - 'method' => 'GET', - 'authType' => 'AK', - 'style' => 'ROA', - 'reqBodyType' => 'json', - 'bodyType' => 'json', + "action" => "GetTrigger", + "version" => "2021-04-06", + "protocol" => "HTTPS", + "pathname" => "/2021-04-06/services/" . $serviceName . "/functions/" . $functionName . "/triggers/" . $triggerName . "", + "method" => "GET", + "authType" => "AK", + "style" => "ROA", + "reqBodyType" => "json", + "bodyType" => "json" ]); - return GetTriggerResponse::fromMap($this->callApi($params, $req, $runtime)); } /** - * @param string $serviceName - * @param string $functionName + * @param string $serviceName + * @param string $functionName * @param InvokeFunctionRequest $request - * * @return InvokeFunctionResponse */ - public function invokeFunction($serviceName, $functionName, $request) - { + public function invokeFunction($serviceName, $functionName, $request){ $runtime = new RuntimeOptions([]); $headers = new InvokeFunctionHeaders([]); - return $this->invokeFunctionWithOptions($serviceName, $functionName, $request, $headers, $runtime); } /** - * @param string $serviceName - * @param string $functionName + * @param string $serviceName + * @param string $functionName * @param InvokeFunctionRequest $request * @param InvokeFunctionHeaders $headers - * @param RuntimeOptions $runtime - * + * @param RuntimeOptions $runtime * @return InvokeFunctionResponse */ - public function invokeFunctionWithOptions($serviceName, $functionName, $request, $headers, $runtime) - { + public function invokeFunctionWithOptions($serviceName, $functionName, $request, $headers, $runtime){ Utils::validateModel($request); - $serviceName = OpenApiUtilClient::getEncodeParam($serviceName); + $serviceName = OpenApiUtilClient::getEncodeParam($serviceName); $functionName = OpenApiUtilClient::getEncodeParam($functionName); - $query = []; + $query = []; if (!Utils::isUnset($request->qualifier)) { - $query['qualifier'] = $request->qualifier; + $query["qualifier"] = $request->qualifier; } - $body = ''; + $body = ""; if (!Utils::isUnset($request->body)) { $body = Utils::toString($request->body); } @@ -2315,2345 +2123,2152 @@ public function invokeFunctionWithOptions($serviceName, $functionName, $request, $realHeaders = $headers->commonHeaders; } if (!Utils::isUnset($headers->xFcAccountId)) { - $realHeaders['X-Fc-Account-Id'] = Utils::toJSONString($headers->xFcAccountId); + $realHeaders["X-Fc-Account-Id"] = Utils::toJSONString($headers->xFcAccountId); } if (!Utils::isUnset($headers->xFcDate)) { - $realHeaders['X-Fc-Date'] = Utils::toJSONString($headers->xFcDate); + $realHeaders["X-Fc-Date"] = Utils::toJSONString($headers->xFcDate); } if (!Utils::isUnset($headers->xFcInvocationType)) { - $realHeaders['X-Fc-Invocation-Type'] = Utils::toJSONString($headers->xFcInvocationType); + $realHeaders["X-Fc-Invocation-Type"] = Utils::toJSONString($headers->xFcInvocationType); } if (!Utils::isUnset($headers->xFcLogType)) { - $realHeaders['X-Fc-Log-Type'] = Utils::toJSONString($headers->xFcLogType); + $realHeaders["X-Fc-Log-Type"] = Utils::toJSONString($headers->xFcLogType); } if (!Utils::isUnset($headers->xFcStatefulAsyncInvocationId)) { - $realHeaders['X-Fc-Stateful-Async-Invocation-Id'] = Utils::toJSONString($headers->xFcStatefulAsyncInvocationId); + $realHeaders["X-Fc-Stateful-Async-Invocation-Id"] = Utils::toJSONString($headers->xFcStatefulAsyncInvocationId); } if (!Utils::isUnset($headers->xFcTraceId)) { - $realHeaders['X-Fc-Trace-Id'] = Utils::toJSONString($headers->xFcTraceId); + $realHeaders["X-Fc-Trace-Id"] = Utils::toJSONString($headers->xFcTraceId); } $req = new OpenApiRequest([ - 'headers' => $realHeaders, - 'query' => OpenApiUtilClient::query($query), - 'body' => $body, + "headers" => $realHeaders, + "query" => OpenApiUtilClient::query($query), + "body" => $body ]); $params = new Params([ - 'action' => 'InvokeFunction', - 'version' => '2021-04-06', - 'protocol' => 'HTTPS', - 'pathname' => '/2021-04-06/services/' . $serviceName . '/functions/' . $functionName . '/invocations', - 'method' => 'POST', - 'authType' => 'AK', - 'style' => 'ROA', - 'reqBodyType' => 'json', - 'bodyType' => 'byte', + "action" => "InvokeFunction", + "version" => "2021-04-06", + "protocol" => "HTTPS", + "pathname" => "/2021-04-06/services/" . $serviceName . "/functions/" . $functionName . "/invocations", + "method" => "POST", + "authType" => "AK", + "style" => "ROA", + "reqBodyType" => "json", + "bodyType" => "byte" ]); - return InvokeFunctionResponse::fromMap($this->callApi($params, $req, $runtime)); } /** - * @param string $serviceName + * @param string $serviceName * @param ListAliasesRequest $request - * * @return ListAliasesResponse */ - public function listAliases($serviceName, $request) - { + public function listAliases($serviceName, $request){ $runtime = new RuntimeOptions([]); $headers = new ListAliasesHeaders([]); - return $this->listAliasesWithOptions($serviceName, $request, $headers, $runtime); } /** - * @param string $serviceName + * @param string $serviceName * @param ListAliasesRequest $request * @param ListAliasesHeaders $headers - * @param RuntimeOptions $runtime - * + * @param RuntimeOptions $runtime * @return ListAliasesResponse */ - public function listAliasesWithOptions($serviceName, $request, $headers, $runtime) - { + public function listAliasesWithOptions($serviceName, $request, $headers, $runtime){ Utils::validateModel($request); $serviceName = OpenApiUtilClient::getEncodeParam($serviceName); - $query = []; + $query = []; if (!Utils::isUnset($request->limit)) { - $query['limit'] = $request->limit; + $query["limit"] = $request->limit; } if (!Utils::isUnset($request->nextToken)) { - $query['nextToken'] = $request->nextToken; + $query["nextToken"] = $request->nextToken; } if (!Utils::isUnset($request->prefix)) { - $query['prefix'] = $request->prefix; + $query["prefix"] = $request->prefix; } if (!Utils::isUnset($request->startKey)) { - $query['startKey'] = $request->startKey; + $query["startKey"] = $request->startKey; } $realHeaders = []; if (!Utils::isUnset($headers->commonHeaders)) { $realHeaders = $headers->commonHeaders; } if (!Utils::isUnset($headers->xFcAccountId)) { - $realHeaders['X-Fc-Account-Id'] = Utils::toJSONString($headers->xFcAccountId); + $realHeaders["X-Fc-Account-Id"] = Utils::toJSONString($headers->xFcAccountId); } if (!Utils::isUnset($headers->xFcDate)) { - $realHeaders['X-Fc-Date'] = Utils::toJSONString($headers->xFcDate); + $realHeaders["X-Fc-Date"] = Utils::toJSONString($headers->xFcDate); } if (!Utils::isUnset($headers->xFcTraceId)) { - $realHeaders['X-Fc-Trace-Id'] = Utils::toJSONString($headers->xFcTraceId); + $realHeaders["X-Fc-Trace-Id"] = Utils::toJSONString($headers->xFcTraceId); } $req = new OpenApiRequest([ - 'headers' => $realHeaders, - 'query' => OpenApiUtilClient::query($query), + "headers" => $realHeaders, + "query" => OpenApiUtilClient::query($query) ]); $params = new Params([ - 'action' => 'ListAliases', - 'version' => '2021-04-06', - 'protocol' => 'HTTPS', - 'pathname' => '/2021-04-06/services/' . $serviceName . '/aliases', - 'method' => 'GET', - 'authType' => 'AK', - 'style' => 'ROA', - 'reqBodyType' => 'json', - 'bodyType' => 'json', + "action" => "ListAliases", + "version" => "2021-04-06", + "protocol" => "HTTPS", + "pathname" => "/2021-04-06/services/" . $serviceName . "/aliases", + "method" => "GET", + "authType" => "AK", + "style" => "ROA", + "reqBodyType" => "json", + "bodyType" => "json" ]); - return ListAliasesResponse::fromMap($this->callApi($params, $req, $runtime)); } /** * @param ListCustomDomainsRequest $request - * * @return ListCustomDomainsResponse */ - public function listCustomDomains($request) - { + public function listCustomDomains($request){ $runtime = new RuntimeOptions([]); $headers = new ListCustomDomainsHeaders([]); - return $this->listCustomDomainsWithOptions($request, $headers, $runtime); } /** * @param ListCustomDomainsRequest $request * @param ListCustomDomainsHeaders $headers - * @param RuntimeOptions $runtime - * + * @param RuntimeOptions $runtime * @return ListCustomDomainsResponse */ - public function listCustomDomainsWithOptions($request, $headers, $runtime) - { + public function listCustomDomainsWithOptions($request, $headers, $runtime){ Utils::validateModel($request); $query = []; if (!Utils::isUnset($request->limit)) { - $query['limit'] = $request->limit; + $query["limit"] = $request->limit; } if (!Utils::isUnset($request->nextToken)) { - $query['nextToken'] = $request->nextToken; + $query["nextToken"] = $request->nextToken; } if (!Utils::isUnset($request->prefix)) { - $query['prefix'] = $request->prefix; + $query["prefix"] = $request->prefix; } if (!Utils::isUnset($request->startKey)) { - $query['startKey'] = $request->startKey; + $query["startKey"] = $request->startKey; } $realHeaders = []; if (!Utils::isUnset($headers->commonHeaders)) { $realHeaders = $headers->commonHeaders; } if (!Utils::isUnset($headers->xFcAccountId)) { - $realHeaders['X-Fc-Account-Id'] = Utils::toJSONString($headers->xFcAccountId); + $realHeaders["X-Fc-Account-Id"] = Utils::toJSONString($headers->xFcAccountId); } if (!Utils::isUnset($headers->xFcDate)) { - $realHeaders['X-Fc-Date'] = Utils::toJSONString($headers->xFcDate); + $realHeaders["X-Fc-Date"] = Utils::toJSONString($headers->xFcDate); } if (!Utils::isUnset($headers->xFcTraceId)) { - $realHeaders['X-Fc-Trace-Id'] = Utils::toJSONString($headers->xFcTraceId); + $realHeaders["X-Fc-Trace-Id"] = Utils::toJSONString($headers->xFcTraceId); } $req = new OpenApiRequest([ - 'headers' => $realHeaders, - 'query' => OpenApiUtilClient::query($query), + "headers" => $realHeaders, + "query" => OpenApiUtilClient::query($query) ]); $params = new Params([ - 'action' => 'ListCustomDomains', - 'version' => '2021-04-06', - 'protocol' => 'HTTPS', - 'pathname' => '/2021-04-06/custom-domains', - 'method' => 'GET', - 'authType' => 'AK', - 'style' => 'ROA', - 'reqBodyType' => 'json', - 'bodyType' => 'json', + "action" => "ListCustomDomains", + "version" => "2021-04-06", + "protocol" => "HTTPS", + "pathname" => "/2021-04-06/custom-domains", + "method" => "GET", + "authType" => "AK", + "style" => "ROA", + "reqBodyType" => "json", + "bodyType" => "json" ]); - return ListCustomDomainsResponse::fromMap($this->callApi($params, $req, $runtime)); } /** - * @param string $serviceName - * @param string $functionName + * @param string $serviceName + * @param string $functionName * @param ListEventSourcesRequest $request - * * @return ListEventSourcesResponse */ - public function listEventSources($serviceName, $functionName, $request) - { + public function listEventSources($serviceName, $functionName, $request){ $runtime = new RuntimeOptions([]); $headers = new ListEventSourcesHeaders([]); - return $this->listEventSourcesWithOptions($serviceName, $functionName, $request, $headers, $runtime); } /** - * @param string $serviceName - * @param string $functionName + * @param string $serviceName + * @param string $functionName * @param ListEventSourcesRequest $request * @param ListEventSourcesHeaders $headers - * @param RuntimeOptions $runtime - * + * @param RuntimeOptions $runtime * @return ListEventSourcesResponse */ - public function listEventSourcesWithOptions($serviceName, $functionName, $request, $headers, $runtime) - { + public function listEventSourcesWithOptions($serviceName, $functionName, $request, $headers, $runtime){ Utils::validateModel($request); - $serviceName = OpenApiUtilClient::getEncodeParam($serviceName); + $serviceName = OpenApiUtilClient::getEncodeParam($serviceName); $functionName = OpenApiUtilClient::getEncodeParam($functionName); - $query = []; + $query = []; if (!Utils::isUnset($request->qualifier)) { - $query['qualifier'] = $request->qualifier; + $query["qualifier"] = $request->qualifier; } $realHeaders = []; if (!Utils::isUnset($headers->commonHeaders)) { $realHeaders = $headers->commonHeaders; } if (!Utils::isUnset($headers->xFcAccountId)) { - $realHeaders['X-Fc-Account-Id'] = Utils::toJSONString($headers->xFcAccountId); + $realHeaders["X-Fc-Account-Id"] = Utils::toJSONString($headers->xFcAccountId); } if (!Utils::isUnset($headers->xFcDate)) { - $realHeaders['X-Fc-Date'] = Utils::toJSONString($headers->xFcDate); + $realHeaders["X-Fc-Date"] = Utils::toJSONString($headers->xFcDate); } if (!Utils::isUnset($headers->xFcTraceId)) { - $realHeaders['X-Fc-Trace-Id'] = Utils::toJSONString($headers->xFcTraceId); + $realHeaders["X-Fc-Trace-Id"] = Utils::toJSONString($headers->xFcTraceId); } $req = new OpenApiRequest([ - 'headers' => $realHeaders, - 'query' => OpenApiUtilClient::query($query), + "headers" => $realHeaders, + "query" => OpenApiUtilClient::query($query) ]); $params = new Params([ - 'action' => 'ListEventSources', - 'version' => '2021-04-06', - 'protocol' => 'HTTPS', - 'pathname' => '/2021-04-06/services/' . $serviceName . '/functions/' . $functionName . '/event-sources', - 'method' => 'GET', - 'authType' => 'AK', - 'style' => 'ROA', - 'reqBodyType' => 'json', - 'bodyType' => 'json', + "action" => "ListEventSources", + "version" => "2021-04-06", + "protocol" => "HTTPS", + "pathname" => "/2021-04-06/services/" . $serviceName . "/functions/" . $functionName . "/event-sources", + "method" => "GET", + "authType" => "AK", + "style" => "ROA", + "reqBodyType" => "json", + "bodyType" => "json" ]); - return ListEventSourcesResponse::fromMap($this->callApi($params, $req, $runtime)); } /** - * @param string $serviceName - * @param string $functionName + * @param string $serviceName + * @param string $functionName * @param ListFunctionAsyncInvokeConfigsRequest $request - * * @return ListFunctionAsyncInvokeConfigsResponse */ - public function listFunctionAsyncInvokeConfigs($serviceName, $functionName, $request) - { + public function listFunctionAsyncInvokeConfigs($serviceName, $functionName, $request){ $runtime = new RuntimeOptions([]); $headers = new ListFunctionAsyncInvokeConfigsHeaders([]); - return $this->listFunctionAsyncInvokeConfigsWithOptions($serviceName, $functionName, $request, $headers, $runtime); } /** - * @param string $serviceName - * @param string $functionName + * @param string $serviceName + * @param string $functionName * @param ListFunctionAsyncInvokeConfigsRequest $request * @param ListFunctionAsyncInvokeConfigsHeaders $headers - * @param RuntimeOptions $runtime - * + * @param RuntimeOptions $runtime * @return ListFunctionAsyncInvokeConfigsResponse */ - public function listFunctionAsyncInvokeConfigsWithOptions($serviceName, $functionName, $request, $headers, $runtime) - { + public function listFunctionAsyncInvokeConfigsWithOptions($serviceName, $functionName, $request, $headers, $runtime){ Utils::validateModel($request); - $serviceName = OpenApiUtilClient::getEncodeParam($serviceName); + $serviceName = OpenApiUtilClient::getEncodeParam($serviceName); $functionName = OpenApiUtilClient::getEncodeParam($functionName); - $query = []; + $query = []; if (!Utils::isUnset($request->limit)) { - $query['limit'] = $request->limit; + $query["limit"] = $request->limit; } if (!Utils::isUnset($request->nextToken)) { - $query['nextToken'] = $request->nextToken; + $query["nextToken"] = $request->nextToken; } $realHeaders = []; if (!Utils::isUnset($headers->commonHeaders)) { $realHeaders = $headers->commonHeaders; } if (!Utils::isUnset($headers->xFcAccountId)) { - $realHeaders['X-Fc-Account-Id'] = Utils::toJSONString($headers->xFcAccountId); + $realHeaders["X-Fc-Account-Id"] = Utils::toJSONString($headers->xFcAccountId); } if (!Utils::isUnset($headers->xFcCodeChecksum)) { - $realHeaders['X-Fc-Code-Checksum'] = Utils::toJSONString($headers->xFcCodeChecksum); + $realHeaders["X-Fc-Code-Checksum"] = Utils::toJSONString($headers->xFcCodeChecksum); } if (!Utils::isUnset($headers->xFcDate)) { - $realHeaders['X-Fc-Date'] = Utils::toJSONString($headers->xFcDate); + $realHeaders["X-Fc-Date"] = Utils::toJSONString($headers->xFcDate); } if (!Utils::isUnset($headers->xFcInvocationType)) { - $realHeaders['X-Fc-Invocation-Type'] = Utils::toJSONString($headers->xFcInvocationType); + $realHeaders["X-Fc-Invocation-Type"] = Utils::toJSONString($headers->xFcInvocationType); } if (!Utils::isUnset($headers->xFcLogType)) { - $realHeaders['X-Fc-Log-Type'] = Utils::toJSONString($headers->xFcLogType); + $realHeaders["X-Fc-Log-Type"] = Utils::toJSONString($headers->xFcLogType); } if (!Utils::isUnset($headers->xFcTraceId)) { - $realHeaders['X-Fc-Trace-Id'] = Utils::toJSONString($headers->xFcTraceId); + $realHeaders["X-Fc-Trace-Id"] = Utils::toJSONString($headers->xFcTraceId); } $req = new OpenApiRequest([ - 'headers' => $realHeaders, - 'query' => OpenApiUtilClient::query($query), + "headers" => $realHeaders, + "query" => OpenApiUtilClient::query($query) ]); $params = new Params([ - 'action' => 'ListFunctionAsyncInvokeConfigs', - 'version' => '2021-04-06', - 'protocol' => 'HTTPS', - 'pathname' => '/2021-04-06/services/' . $serviceName . '/functions/' . $functionName . '/async-invoke-configs', - 'method' => 'GET', - 'authType' => 'AK', - 'style' => 'ROA', - 'reqBodyType' => 'json', - 'bodyType' => 'json', + "action" => "ListFunctionAsyncInvokeConfigs", + "version" => "2021-04-06", + "protocol" => "HTTPS", + "pathname" => "/2021-04-06/services/" . $serviceName . "/functions/" . $functionName . "/async-invoke-configs", + "method" => "GET", + "authType" => "AK", + "style" => "ROA", + "reqBodyType" => "json", + "bodyType" => "json" ]); - return ListFunctionAsyncInvokeConfigsResponse::fromMap($this->callApi($params, $req, $runtime)); } /** - * @param string $serviceName + * @param string $serviceName * @param ListFunctionsRequest $request - * * @return ListFunctionsResponse */ - public function listFunctions($serviceName, $request) - { + public function listFunctions($serviceName, $request){ $runtime = new RuntimeOptions([]); $headers = new ListFunctionsHeaders([]); - return $this->listFunctionsWithOptions($serviceName, $request, $headers, $runtime); } /** - * @param string $serviceName + * @param string $serviceName * @param ListFunctionsRequest $request * @param ListFunctionsHeaders $headers - * @param RuntimeOptions $runtime - * + * @param RuntimeOptions $runtime * @return ListFunctionsResponse */ - public function listFunctionsWithOptions($serviceName, $request, $headers, $runtime) - { + public function listFunctionsWithOptions($serviceName, $request, $headers, $runtime){ Utils::validateModel($request); $serviceName = OpenApiUtilClient::getEncodeParam($serviceName); - $query = []; + $query = []; if (!Utils::isUnset($request->limit)) { - $query['limit'] = $request->limit; + $query["limit"] = $request->limit; } if (!Utils::isUnset($request->nextToken)) { - $query['nextToken'] = $request->nextToken; + $query["nextToken"] = $request->nextToken; } if (!Utils::isUnset($request->prefix)) { - $query['prefix'] = $request->prefix; + $query["prefix"] = $request->prefix; } if (!Utils::isUnset($request->qualifier)) { - $query['qualifier'] = $request->qualifier; + $query["qualifier"] = $request->qualifier; } if (!Utils::isUnset($request->startKey)) { - $query['startKey'] = $request->startKey; + $query["startKey"] = $request->startKey; } $realHeaders = []; if (!Utils::isUnset($headers->commonHeaders)) { $realHeaders = $headers->commonHeaders; } if (!Utils::isUnset($headers->xFcAccountId)) { - $realHeaders['X-Fc-Account-Id'] = Utils::toJSONString($headers->xFcAccountId); + $realHeaders["X-Fc-Account-Id"] = Utils::toJSONString($headers->xFcAccountId); } if (!Utils::isUnset($headers->xFcDate)) { - $realHeaders['X-Fc-Date'] = Utils::toJSONString($headers->xFcDate); + $realHeaders["X-Fc-Date"] = Utils::toJSONString($headers->xFcDate); } if (!Utils::isUnset($headers->xFcTraceId)) { - $realHeaders['X-Fc-Trace-Id'] = Utils::toJSONString($headers->xFcTraceId); + $realHeaders["X-Fc-Trace-Id"] = Utils::toJSONString($headers->xFcTraceId); } $req = new OpenApiRequest([ - 'headers' => $realHeaders, - 'query' => OpenApiUtilClient::query($query), + "headers" => $realHeaders, + "query" => OpenApiUtilClient::query($query) ]); $params = new Params([ - 'action' => 'ListFunctions', - 'version' => '2021-04-06', - 'protocol' => 'HTTPS', - 'pathname' => '/2021-04-06/services/' . $serviceName . '/functions', - 'method' => 'GET', - 'authType' => 'AK', - 'style' => 'ROA', - 'reqBodyType' => 'json', - 'bodyType' => 'json', + "action" => "ListFunctions", + "version" => "2021-04-06", + "protocol" => "HTTPS", + "pathname" => "/2021-04-06/services/" . $serviceName . "/functions", + "method" => "GET", + "authType" => "AK", + "style" => "ROA", + "reqBodyType" => "json", + "bodyType" => "json" ]); - return ListFunctionsResponse::fromMap($this->callApi($params, $req, $runtime)); } /** - * @param string $serviceName - * @param string $functionName + * @param string $serviceName + * @param string $functionName * @param ListInstancesRequest $request - * * @return ListInstancesResponse */ - public function listInstances($serviceName, $functionName, $request) - { + public function listInstances($serviceName, $functionName, $request){ $runtime = new RuntimeOptions([]); $headers = new ListInstancesHeaders([]); - return $this->listInstancesWithOptions($serviceName, $functionName, $request, $headers, $runtime); } /** - * @param string $serviceName - * @param string $functionName + * @param string $serviceName + * @param string $functionName * @param ListInstancesRequest $request * @param ListInstancesHeaders $headers - * @param RuntimeOptions $runtime - * + * @param RuntimeOptions $runtime * @return ListInstancesResponse */ - public function listInstancesWithOptions($serviceName, $functionName, $request, $headers, $runtime) - { + public function listInstancesWithOptions($serviceName, $functionName, $request, $headers, $runtime){ Utils::validateModel($request); - $serviceName = OpenApiUtilClient::getEncodeParam($serviceName); + $serviceName = OpenApiUtilClient::getEncodeParam($serviceName); $functionName = OpenApiUtilClient::getEncodeParam($functionName); - $query = []; + $query = []; if (!Utils::isUnset($request->instanceIds)) { - $query['instanceIds'] = $request->instanceIds; + $query["instanceIds"] = $request->instanceIds; } if (!Utils::isUnset($request->limit)) { - $query['limit'] = $request->limit; + $query["limit"] = $request->limit; } if (!Utils::isUnset($request->qualifier)) { - $query['qualifier'] = $request->qualifier; + $query["qualifier"] = $request->qualifier; } $realHeaders = []; if (!Utils::isUnset($headers->commonHeaders)) { $realHeaders = $headers->commonHeaders; } if (!Utils::isUnset($headers->xFcAccountId)) { - $realHeaders['X-Fc-Account-Id'] = Utils::toJSONString($headers->xFcAccountId); + $realHeaders["X-Fc-Account-Id"] = Utils::toJSONString($headers->xFcAccountId); } $req = new OpenApiRequest([ - 'headers' => $realHeaders, - 'query' => OpenApiUtilClient::query($query), + "headers" => $realHeaders, + "query" => OpenApiUtilClient::query($query) ]); $params = new Params([ - 'action' => 'ListInstances', - 'version' => '2021-04-06', - 'protocol' => 'HTTPS', - 'pathname' => '/2021-04-06/services/' . $serviceName . '/functions/' . $functionName . '/instances', - 'method' => 'GET', - 'authType' => 'AK', - 'style' => 'ROA', - 'reqBodyType' => 'json', - 'bodyType' => 'json', + "action" => "ListInstances", + "version" => "2021-04-06", + "protocol" => "HTTPS", + "pathname" => "/2021-04-06/services/" . $serviceName . "/functions/" . $functionName . "/instances", + "method" => "GET", + "authType" => "AK", + "style" => "ROA", + "reqBodyType" => "json", + "bodyType" => "json" ]); - return ListInstancesResponse::fromMap($this->callApi($params, $req, $runtime)); } /** - * @param string $layerName + * @param string $layerName * @param ListLayerVersionsRequest $request - * * @return ListLayerVersionsResponse */ - public function listLayerVersions($layerName, $request) - { + public function listLayerVersions($layerName, $request){ $runtime = new RuntimeOptions([]); $headers = new ListLayerVersionsHeaders([]); - return $this->listLayerVersionsWithOptions($layerName, $request, $headers, $runtime); } /** - * @param string $layerName + * @param string $layerName * @param ListLayerVersionsRequest $request * @param ListLayerVersionsHeaders $headers - * @param RuntimeOptions $runtime - * + * @param RuntimeOptions $runtime * @return ListLayerVersionsResponse */ - public function listLayerVersionsWithOptions($layerName, $request, $headers, $runtime) - { + public function listLayerVersionsWithOptions($layerName, $request, $headers, $runtime){ Utils::validateModel($request); $layerName = OpenApiUtilClient::getEncodeParam($layerName); - $query = []; + $query = []; if (!Utils::isUnset($request->limit)) { - $query['limit'] = $request->limit; + $query["limit"] = $request->limit; } if (!Utils::isUnset($request->startVersion)) { - $query['startVersion'] = $request->startVersion; + $query["startVersion"] = $request->startVersion; } $realHeaders = []; if (!Utils::isUnset($headers->commonHeaders)) { $realHeaders = $headers->commonHeaders; } if (!Utils::isUnset($headers->xFcAccountId)) { - $realHeaders['X-Fc-Account-Id'] = Utils::toJSONString($headers->xFcAccountId); + $realHeaders["X-Fc-Account-Id"] = Utils::toJSONString($headers->xFcAccountId); } if (!Utils::isUnset($headers->xFcDate)) { - $realHeaders['X-Fc-Date'] = Utils::toJSONString($headers->xFcDate); + $realHeaders["X-Fc-Date"] = Utils::toJSONString($headers->xFcDate); } if (!Utils::isUnset($headers->xFcTraceId)) { - $realHeaders['X-Fc-Trace-Id'] = Utils::toJSONString($headers->xFcTraceId); + $realHeaders["X-Fc-Trace-Id"] = Utils::toJSONString($headers->xFcTraceId); } $req = new OpenApiRequest([ - 'headers' => $realHeaders, - 'query' => OpenApiUtilClient::query($query), + "headers" => $realHeaders, + "query" => OpenApiUtilClient::query($query) ]); $params = new Params([ - 'action' => 'ListLayerVersions', - 'version' => '2021-04-06', - 'protocol' => 'HTTPS', - 'pathname' => '/2021-04-06/layers/' . $layerName . '/versions', - 'method' => 'GET', - 'authType' => 'AK', - 'style' => 'ROA', - 'reqBodyType' => 'json', - 'bodyType' => 'json', + "action" => "ListLayerVersions", + "version" => "2021-04-06", + "protocol" => "HTTPS", + "pathname" => "/2021-04-06/layers/" . $layerName . "/versions", + "method" => "GET", + "authType" => "AK", + "style" => "ROA", + "reqBodyType" => "json", + "bodyType" => "json" ]); - return ListLayerVersionsResponse::fromMap($this->callApi($params, $req, $runtime)); } /** * @param ListLayersRequest $request - * * @return ListLayersResponse */ - public function listLayers($request) - { + public function listLayers($request){ $runtime = new RuntimeOptions([]); $headers = new ListLayersHeaders([]); - return $this->listLayersWithOptions($request, $headers, $runtime); } /** * @param ListLayersRequest $request * @param ListLayersHeaders $headers - * @param RuntimeOptions $runtime - * + * @param RuntimeOptions $runtime * @return ListLayersResponse */ - public function listLayersWithOptions($request, $headers, $runtime) - { + public function listLayersWithOptions($request, $headers, $runtime){ Utils::validateModel($request); $query = []; if (!Utils::isUnset($request->limit)) { - $query['limit'] = $request->limit; + $query["limit"] = $request->limit; } if (!Utils::isUnset($request->nextToken)) { - $query['nextToken'] = $request->nextToken; + $query["nextToken"] = $request->nextToken; } if (!Utils::isUnset($request->official)) { - $query['official'] = $request->official; + $query["official"] = $request->official; } if (!Utils::isUnset($request->prefix)) { - $query['prefix'] = $request->prefix; + $query["prefix"] = $request->prefix; } if (!Utils::isUnset($request->public_)) { - $query['public'] = $request->public_; + $query["public"] = $request->public_; } if (!Utils::isUnset($request->startKey)) { - $query['startKey'] = $request->startKey; + $query["startKey"] = $request->startKey; } $realHeaders = []; if (!Utils::isUnset($headers->commonHeaders)) { $realHeaders = $headers->commonHeaders; } if (!Utils::isUnset($headers->xFcAccountId)) { - $realHeaders['X-Fc-Account-Id'] = Utils::toJSONString($headers->xFcAccountId); + $realHeaders["X-Fc-Account-Id"] = Utils::toJSONString($headers->xFcAccountId); } if (!Utils::isUnset($headers->xFcDate)) { - $realHeaders['X-Fc-Date'] = Utils::toJSONString($headers->xFcDate); + $realHeaders["X-Fc-Date"] = Utils::toJSONString($headers->xFcDate); } if (!Utils::isUnset($headers->xFcTraceId)) { - $realHeaders['X-Fc-Trace-Id'] = Utils::toJSONString($headers->xFcTraceId); + $realHeaders["X-Fc-Trace-Id"] = Utils::toJSONString($headers->xFcTraceId); } $req = new OpenApiRequest([ - 'headers' => $realHeaders, - 'query' => OpenApiUtilClient::query($query), + "headers" => $realHeaders, + "query" => OpenApiUtilClient::query($query) ]); $params = new Params([ - 'action' => 'ListLayers', - 'version' => '2021-04-06', - 'protocol' => 'HTTPS', - 'pathname' => '/2021-04-06/layers', - 'method' => 'GET', - 'authType' => 'AK', - 'style' => 'ROA', - 'reqBodyType' => 'json', - 'bodyType' => 'json', + "action" => "ListLayers", + "version" => "2021-04-06", + "protocol" => "HTTPS", + "pathname" => "/2021-04-06/layers", + "method" => "GET", + "authType" => "AK", + "style" => "ROA", + "reqBodyType" => "json", + "bodyType" => "json" ]); - return ListLayersResponse::fromMap($this->callApi($params, $req, $runtime)); } /** * @param ListOnDemandConfigsRequest $request - * * @return ListOnDemandConfigsResponse */ - public function listOnDemandConfigs($request) - { + public function listOnDemandConfigs($request){ $runtime = new RuntimeOptions([]); $headers = new ListOnDemandConfigsHeaders([]); - return $this->listOnDemandConfigsWithOptions($request, $headers, $runtime); } /** * @param ListOnDemandConfigsRequest $request * @param ListOnDemandConfigsHeaders $headers - * @param RuntimeOptions $runtime - * + * @param RuntimeOptions $runtime * @return ListOnDemandConfigsResponse */ - public function listOnDemandConfigsWithOptions($request, $headers, $runtime) - { + public function listOnDemandConfigsWithOptions($request, $headers, $runtime){ Utils::validateModel($request); $query = []; if (!Utils::isUnset($request->limit)) { - $query['limit'] = $request->limit; + $query["limit"] = $request->limit; } if (!Utils::isUnset($request->nextToken)) { - $query['nextToken'] = $request->nextToken; + $query["nextToken"] = $request->nextToken; } if (!Utils::isUnset($request->prefix)) { - $query['prefix'] = $request->prefix; + $query["prefix"] = $request->prefix; } if (!Utils::isUnset($request->startKey)) { - $query['startKey'] = $request->startKey; + $query["startKey"] = $request->startKey; } $realHeaders = []; if (!Utils::isUnset($headers->commonHeaders)) { $realHeaders = $headers->commonHeaders; } if (!Utils::isUnset($headers->xFcAccountId)) { - $realHeaders['X-Fc-Account-Id'] = Utils::toJSONString($headers->xFcAccountId); + $realHeaders["X-Fc-Account-Id"] = Utils::toJSONString($headers->xFcAccountId); } if (!Utils::isUnset($headers->xFcDate)) { - $realHeaders['X-Fc-Date'] = Utils::toJSONString($headers->xFcDate); + $realHeaders["X-Fc-Date"] = Utils::toJSONString($headers->xFcDate); } if (!Utils::isUnset($headers->xFcTraceId)) { - $realHeaders['X-Fc-Trace-Id'] = Utils::toJSONString($headers->xFcTraceId); + $realHeaders["X-Fc-Trace-Id"] = Utils::toJSONString($headers->xFcTraceId); } $req = new OpenApiRequest([ - 'headers' => $realHeaders, - 'query' => OpenApiUtilClient::query($query), + "headers" => $realHeaders, + "query" => OpenApiUtilClient::query($query) ]); $params = new Params([ - 'action' => 'ListOnDemandConfigs', - 'version' => '2021-04-06', - 'protocol' => 'HTTPS', - 'pathname' => '/2021-04-06/on-demand-configs', - 'method' => 'GET', - 'authType' => 'AK', - 'style' => 'ROA', - 'reqBodyType' => 'json', - 'bodyType' => 'json', + "action" => "ListOnDemandConfigs", + "version" => "2021-04-06", + "protocol" => "HTTPS", + "pathname" => "/2021-04-06/on-demand-configs", + "method" => "GET", + "authType" => "AK", + "style" => "ROA", + "reqBodyType" => "json", + "bodyType" => "json" ]); - return ListOnDemandConfigsResponse::fromMap($this->callApi($params, $req, $runtime)); } /** * @param ListProvisionConfigsRequest $request - * * @return ListProvisionConfigsResponse */ - public function listProvisionConfigs($request) - { + public function listProvisionConfigs($request){ $runtime = new RuntimeOptions([]); $headers = new ListProvisionConfigsHeaders([]); - return $this->listProvisionConfigsWithOptions($request, $headers, $runtime); } /** * @param ListProvisionConfigsRequest $request * @param ListProvisionConfigsHeaders $headers - * @param RuntimeOptions $runtime - * + * @param RuntimeOptions $runtime * @return ListProvisionConfigsResponse */ - public function listProvisionConfigsWithOptions($request, $headers, $runtime) - { + public function listProvisionConfigsWithOptions($request, $headers, $runtime){ Utils::validateModel($request); $query = []; if (!Utils::isUnset($request->limit)) { - $query['limit'] = $request->limit; + $query["limit"] = $request->limit; } if (!Utils::isUnset($request->nextToken)) { - $query['nextToken'] = $request->nextToken; + $query["nextToken"] = $request->nextToken; } if (!Utils::isUnset($request->qualifier)) { - $query['qualifier'] = $request->qualifier; + $query["qualifier"] = $request->qualifier; } if (!Utils::isUnset($request->serviceName)) { - $query['serviceName'] = $request->serviceName; + $query["serviceName"] = $request->serviceName; } $realHeaders = []; if (!Utils::isUnset($headers->commonHeaders)) { $realHeaders = $headers->commonHeaders; } if (!Utils::isUnset($headers->xFcAccountId)) { - $realHeaders['X-Fc-Account-Id'] = Utils::toJSONString($headers->xFcAccountId); + $realHeaders["X-Fc-Account-Id"] = Utils::toJSONString($headers->xFcAccountId); } if (!Utils::isUnset($headers->xFcDate)) { - $realHeaders['X-Fc-Date'] = Utils::toJSONString($headers->xFcDate); + $realHeaders["X-Fc-Date"] = Utils::toJSONString($headers->xFcDate); } if (!Utils::isUnset($headers->xFcTraceId)) { - $realHeaders['X-Fc-Trace-Id'] = Utils::toJSONString($headers->xFcTraceId); + $realHeaders["X-Fc-Trace-Id"] = Utils::toJSONString($headers->xFcTraceId); } $req = new OpenApiRequest([ - 'headers' => $realHeaders, - 'query' => OpenApiUtilClient::query($query), + "headers" => $realHeaders, + "query" => OpenApiUtilClient::query($query) ]); $params = new Params([ - 'action' => 'ListProvisionConfigs', - 'version' => '2021-04-06', - 'protocol' => 'HTTPS', - 'pathname' => '/2021-04-06/provision-configs', - 'method' => 'GET', - 'authType' => 'AK', - 'style' => 'ROA', - 'reqBodyType' => 'json', - 'bodyType' => 'json', + "action" => "ListProvisionConfigs", + "version" => "2021-04-06", + "protocol" => "HTTPS", + "pathname" => "/2021-04-06/provision-configs", + "method" => "GET", + "authType" => "AK", + "style" => "ROA", + "reqBodyType" => "json", + "bodyType" => "json" ]); - return ListProvisionConfigsResponse::fromMap($this->callApi($params, $req, $runtime)); } /** * @param ListReservedCapacitiesRequest $request - * * @return ListReservedCapacitiesResponse */ - public function listReservedCapacities($request) - { + public function listReservedCapacities($request){ $runtime = new RuntimeOptions([]); $headers = new ListReservedCapacitiesHeaders([]); - return $this->listReservedCapacitiesWithOptions($request, $headers, $runtime); } /** * @param ListReservedCapacitiesRequest $request * @param ListReservedCapacitiesHeaders $headers - * @param RuntimeOptions $runtime - * + * @param RuntimeOptions $runtime * @return ListReservedCapacitiesResponse */ - public function listReservedCapacitiesWithOptions($request, $headers, $runtime) - { + public function listReservedCapacitiesWithOptions($request, $headers, $runtime){ Utils::validateModel($request); $query = []; if (!Utils::isUnset($request->limit)) { - $query['limit'] = $request->limit; + $query["limit"] = $request->limit; } if (!Utils::isUnset($request->nextToken)) { - $query['nextToken'] = $request->nextToken; + $query["nextToken"] = $request->nextToken; } $realHeaders = []; if (!Utils::isUnset($headers->commonHeaders)) { $realHeaders = $headers->commonHeaders; } if (!Utils::isUnset($headers->xFcAccountId)) { - $realHeaders['X-Fc-Account-Id'] = Utils::toJSONString($headers->xFcAccountId); + $realHeaders["X-Fc-Account-Id"] = Utils::toJSONString($headers->xFcAccountId); } if (!Utils::isUnset($headers->xFcDate)) { - $realHeaders['X-Fc-Date'] = Utils::toJSONString($headers->xFcDate); + $realHeaders["X-Fc-Date"] = Utils::toJSONString($headers->xFcDate); } if (!Utils::isUnset($headers->xFcTraceId)) { - $realHeaders['X-Fc-Trace-Id'] = Utils::toJSONString($headers->xFcTraceId); + $realHeaders["X-Fc-Trace-Id"] = Utils::toJSONString($headers->xFcTraceId); } $req = new OpenApiRequest([ - 'headers' => $realHeaders, - 'query' => OpenApiUtilClient::query($query), + "headers" => $realHeaders, + "query" => OpenApiUtilClient::query($query) ]); $params = new Params([ - 'action' => 'ListReservedCapacities', - 'version' => '2021-04-06', - 'protocol' => 'HTTPS', - 'pathname' => '/2021-04-06/reserved-capacities', - 'method' => 'GET', - 'authType' => 'AK', - 'style' => 'ROA', - 'reqBodyType' => 'json', - 'bodyType' => 'json', + "action" => "ListReservedCapacities", + "version" => "2021-04-06", + "protocol" => "HTTPS", + "pathname" => "/2021-04-06/reserved-capacities", + "method" => "GET", + "authType" => "AK", + "style" => "ROA", + "reqBodyType" => "json", + "bodyType" => "json" ]); - return ListReservedCapacitiesResponse::fromMap($this->callApi($params, $req, $runtime)); } /** - * @param string $serviceName + * @param string $serviceName * @param ListServiceVersionsRequest $request - * * @return ListServiceVersionsResponse */ - public function listServiceVersions($serviceName, $request) - { + public function listServiceVersions($serviceName, $request){ $runtime = new RuntimeOptions([]); $headers = new ListServiceVersionsHeaders([]); - return $this->listServiceVersionsWithOptions($serviceName, $request, $headers, $runtime); } /** - * @param string $serviceName + * @param string $serviceName * @param ListServiceVersionsRequest $request * @param ListServiceVersionsHeaders $headers - * @param RuntimeOptions $runtime - * + * @param RuntimeOptions $runtime * @return ListServiceVersionsResponse */ - public function listServiceVersionsWithOptions($serviceName, $request, $headers, $runtime) - { + public function listServiceVersionsWithOptions($serviceName, $request, $headers, $runtime){ Utils::validateModel($request); $serviceName = OpenApiUtilClient::getEncodeParam($serviceName); - $query = []; + $query = []; if (!Utils::isUnset($request->direction)) { - $query['direction'] = $request->direction; + $query["direction"] = $request->direction; } if (!Utils::isUnset($request->limit)) { - $query['limit'] = $request->limit; + $query["limit"] = $request->limit; } if (!Utils::isUnset($request->nextToken)) { - $query['nextToken'] = $request->nextToken; + $query["nextToken"] = $request->nextToken; } if (!Utils::isUnset($request->startKey)) { - $query['startKey'] = $request->startKey; + $query["startKey"] = $request->startKey; } $realHeaders = []; if (!Utils::isUnset($headers->commonHeaders)) { $realHeaders = $headers->commonHeaders; } if (!Utils::isUnset($headers->xFcAccountId)) { - $realHeaders['X-Fc-Account-Id'] = Utils::toJSONString($headers->xFcAccountId); + $realHeaders["X-Fc-Account-Id"] = Utils::toJSONString($headers->xFcAccountId); } if (!Utils::isUnset($headers->xFcDate)) { - $realHeaders['X-Fc-Date'] = Utils::toJSONString($headers->xFcDate); + $realHeaders["X-Fc-Date"] = Utils::toJSONString($headers->xFcDate); } if (!Utils::isUnset($headers->xFcTraceId)) { - $realHeaders['X-Fc-Trace-Id'] = Utils::toJSONString($headers->xFcTraceId); + $realHeaders["X-Fc-Trace-Id"] = Utils::toJSONString($headers->xFcTraceId); } $req = new OpenApiRequest([ - 'headers' => $realHeaders, - 'query' => OpenApiUtilClient::query($query), + "headers" => $realHeaders, + "query" => OpenApiUtilClient::query($query) ]); $params = new Params([ - 'action' => 'ListServiceVersions', - 'version' => '2021-04-06', - 'protocol' => 'HTTPS', - 'pathname' => '/2021-04-06/services/' . $serviceName . '/versions', - 'method' => 'GET', - 'authType' => 'AK', - 'style' => 'ROA', - 'reqBodyType' => 'json', - 'bodyType' => 'json', + "action" => "ListServiceVersions", + "version" => "2021-04-06", + "protocol" => "HTTPS", + "pathname" => "/2021-04-06/services/" . $serviceName . "/versions", + "method" => "GET", + "authType" => "AK", + "style" => "ROA", + "reqBodyType" => "json", + "bodyType" => "json" ]); - return ListServiceVersionsResponse::fromMap($this->callApi($params, $req, $runtime)); } /** * @param ListServicesRequest $request - * * @return ListServicesResponse */ - public function listServices($request) - { + public function listServices($request){ $runtime = new RuntimeOptions([]); $headers = new ListServicesHeaders([]); - return $this->listServicesWithOptions($request, $headers, $runtime); } /** * @param ListServicesRequest $request * @param ListServicesHeaders $headers - * @param RuntimeOptions $runtime - * + * @param RuntimeOptions $runtime * @return ListServicesResponse */ - public function listServicesWithOptions($request, $headers, $runtime) - { + public function listServicesWithOptions($request, $headers, $runtime){ Utils::validateModel($request); $query = []; if (!Utils::isUnset($request->limit)) { - $query['limit'] = $request->limit; + $query["limit"] = $request->limit; } if (!Utils::isUnset($request->nextToken)) { - $query['nextToken'] = $request->nextToken; + $query["nextToken"] = $request->nextToken; } if (!Utils::isUnset($request->prefix)) { - $query['prefix'] = $request->prefix; + $query["prefix"] = $request->prefix; } if (!Utils::isUnset($request->startKey)) { - $query['startKey'] = $request->startKey; + $query["startKey"] = $request->startKey; } $realHeaders = []; if (!Utils::isUnset($headers->commonHeaders)) { $realHeaders = $headers->commonHeaders; } if (!Utils::isUnset($headers->xFcAccountId)) { - $realHeaders['X-Fc-Account-Id'] = Utils::toJSONString($headers->xFcAccountId); + $realHeaders["X-Fc-Account-Id"] = Utils::toJSONString($headers->xFcAccountId); } if (!Utils::isUnset($headers->xFcDate)) { - $realHeaders['X-Fc-Date'] = Utils::toJSONString($headers->xFcDate); + $realHeaders["X-Fc-Date"] = Utils::toJSONString($headers->xFcDate); } if (!Utils::isUnset($headers->xFcTraceId)) { - $realHeaders['X-Fc-Trace-Id'] = Utils::toJSONString($headers->xFcTraceId); + $realHeaders["X-Fc-Trace-Id"] = Utils::toJSONString($headers->xFcTraceId); } $req = new OpenApiRequest([ - 'headers' => $realHeaders, - 'query' => OpenApiUtilClient::query($query), + "headers" => $realHeaders, + "query" => OpenApiUtilClient::query($query) ]); $params = new Params([ - 'action' => 'ListServices', - 'version' => '2021-04-06', - 'protocol' => 'HTTPS', - 'pathname' => '/2021-04-06/services', - 'method' => 'GET', - 'authType' => 'AK', - 'style' => 'ROA', - 'reqBodyType' => 'json', - 'bodyType' => 'json', + "action" => "ListServices", + "version" => "2021-04-06", + "protocol" => "HTTPS", + "pathname" => "/2021-04-06/services", + "method" => "GET", + "authType" => "AK", + "style" => "ROA", + "reqBodyType" => "json", + "bodyType" => "json" ]); - return ListServicesResponse::fromMap($this->callApi($params, $req, $runtime)); } /** * @param ListStatefulAsyncInvocationFunctionsRequest $request - * * @return ListStatefulAsyncInvocationFunctionsResponse */ - public function listStatefulAsyncInvocationFunctions($request) - { + public function listStatefulAsyncInvocationFunctions($request){ $runtime = new RuntimeOptions([]); $headers = new ListStatefulAsyncInvocationFunctionsHeaders([]); - return $this->listStatefulAsyncInvocationFunctionsWithOptions($request, $headers, $runtime); } /** * @param ListStatefulAsyncInvocationFunctionsRequest $request * @param ListStatefulAsyncInvocationFunctionsHeaders $headers - * @param RuntimeOptions $runtime - * + * @param RuntimeOptions $runtime * @return ListStatefulAsyncInvocationFunctionsResponse */ - public function listStatefulAsyncInvocationFunctionsWithOptions($request, $headers, $runtime) - { + public function listStatefulAsyncInvocationFunctionsWithOptions($request, $headers, $runtime){ Utils::validateModel($request); $query = []; if (!Utils::isUnset($request->limit)) { - $query['limit'] = $request->limit; + $query["limit"] = $request->limit; } if (!Utils::isUnset($request->nextToken)) { - $query['nextToken'] = $request->nextToken; + $query["nextToken"] = $request->nextToken; } $realHeaders = []; if (!Utils::isUnset($headers->commonHeaders)) { $realHeaders = $headers->commonHeaders; } if (!Utils::isUnset($headers->xFcAccountId)) { - $realHeaders['X-Fc-Account-Id'] = Utils::toJSONString($headers->xFcAccountId); + $realHeaders["X-Fc-Account-Id"] = Utils::toJSONString($headers->xFcAccountId); } if (!Utils::isUnset($headers->xFcDate)) { - $realHeaders['X-Fc-Date'] = Utils::toJSONString($headers->xFcDate); + $realHeaders["X-Fc-Date"] = Utils::toJSONString($headers->xFcDate); } if (!Utils::isUnset($headers->xFcTraceId)) { - $realHeaders['X-Fc-Trace-Id'] = Utils::toJSONString($headers->xFcTraceId); + $realHeaders["X-Fc-Trace-Id"] = Utils::toJSONString($headers->xFcTraceId); } $req = new OpenApiRequest([ - 'headers' => $realHeaders, - 'query' => OpenApiUtilClient::query($query), + "headers" => $realHeaders, + "query" => OpenApiUtilClient::query($query) ]); $params = new Params([ - 'action' => 'ListStatefulAsyncInvocationFunctions', - 'version' => '2021-04-06', - 'protocol' => 'HTTPS', - 'pathname' => '/2021-04-06/stateful-async-invocation-functions', - 'method' => 'GET', - 'authType' => 'AK', - 'style' => 'ROA', - 'reqBodyType' => 'json', - 'bodyType' => 'json', + "action" => "ListStatefulAsyncInvocationFunctions", + "version" => "2021-04-06", + "protocol" => "HTTPS", + "pathname" => "/2021-04-06/stateful-async-invocation-functions", + "method" => "GET", + "authType" => "AK", + "style" => "ROA", + "reqBodyType" => "json", + "bodyType" => "json" ]); - return ListStatefulAsyncInvocationFunctionsResponse::fromMap($this->callApi($params, $req, $runtime)); } /** - * @param string $serviceName - * @param string $functionName + * @param string $serviceName + * @param string $functionName * @param ListStatefulAsyncInvocationsRequest $request - * * @return ListStatefulAsyncInvocationsResponse */ - public function listStatefulAsyncInvocations($serviceName, $functionName, $request) - { + public function listStatefulAsyncInvocations($serviceName, $functionName, $request){ $runtime = new RuntimeOptions([]); $headers = new ListStatefulAsyncInvocationsHeaders([]); - return $this->listStatefulAsyncInvocationsWithOptions($serviceName, $functionName, $request, $headers, $runtime); } /** - * @param string $serviceName - * @param string $functionName + * @param string $serviceName + * @param string $functionName * @param ListStatefulAsyncInvocationsRequest $request * @param ListStatefulAsyncInvocationsHeaders $headers - * @param RuntimeOptions $runtime - * + * @param RuntimeOptions $runtime * @return ListStatefulAsyncInvocationsResponse */ - public function listStatefulAsyncInvocationsWithOptions($serviceName, $functionName, $request, $headers, $runtime) - { + public function listStatefulAsyncInvocationsWithOptions($serviceName, $functionName, $request, $headers, $runtime){ Utils::validateModel($request); - $serviceName = OpenApiUtilClient::getEncodeParam($serviceName); + $serviceName = OpenApiUtilClient::getEncodeParam($serviceName); $functionName = OpenApiUtilClient::getEncodeParam($functionName); - $query = []; + $query = []; if (!Utils::isUnset($request->includePayload)) { - $query['includePayload'] = $request->includePayload; + $query["includePayload"] = $request->includePayload; } if (!Utils::isUnset($request->invocationIdPrefix)) { - $query['invocationIdPrefix'] = $request->invocationIdPrefix; + $query["invocationIdPrefix"] = $request->invocationIdPrefix; } if (!Utils::isUnset($request->limit)) { - $query['limit'] = $request->limit; + $query["limit"] = $request->limit; } if (!Utils::isUnset($request->nextToken)) { - $query['nextToken'] = $request->nextToken; + $query["nextToken"] = $request->nextToken; } if (!Utils::isUnset($request->qualifier)) { - $query['qualifier'] = $request->qualifier; + $query["qualifier"] = $request->qualifier; } if (!Utils::isUnset($request->sortOrderByTime)) { - $query['sortOrderByTime'] = $request->sortOrderByTime; + $query["sortOrderByTime"] = $request->sortOrderByTime; } if (!Utils::isUnset($request->startedTimeBegin)) { - $query['startedTimeBegin'] = $request->startedTimeBegin; + $query["startedTimeBegin"] = $request->startedTimeBegin; } if (!Utils::isUnset($request->startedTimeEnd)) { - $query['startedTimeEnd'] = $request->startedTimeEnd; + $query["startedTimeEnd"] = $request->startedTimeEnd; } if (!Utils::isUnset($request->status)) { - $query['status'] = $request->status; + $query["status"] = $request->status; } $realHeaders = []; if (!Utils::isUnset($headers->commonHeaders)) { $realHeaders = $headers->commonHeaders; } if (!Utils::isUnset($headers->xFcAccountId)) { - $realHeaders['X-Fc-Account-Id'] = Utils::toJSONString($headers->xFcAccountId); + $realHeaders["X-Fc-Account-Id"] = Utils::toJSONString($headers->xFcAccountId); } if (!Utils::isUnset($headers->xFcCodeChecksum)) { - $realHeaders['X-Fc-Code-Checksum'] = Utils::toJSONString($headers->xFcCodeChecksum); + $realHeaders["X-Fc-Code-Checksum"] = Utils::toJSONString($headers->xFcCodeChecksum); } if (!Utils::isUnset($headers->xFcDate)) { - $realHeaders['X-Fc-Date'] = Utils::toJSONString($headers->xFcDate); + $realHeaders["X-Fc-Date"] = Utils::toJSONString($headers->xFcDate); } if (!Utils::isUnset($headers->xFcInvocationType)) { - $realHeaders['X-Fc-Invocation-Type'] = Utils::toJSONString($headers->xFcInvocationType); + $realHeaders["X-Fc-Invocation-Type"] = Utils::toJSONString($headers->xFcInvocationType); } if (!Utils::isUnset($headers->xFcLogType)) { - $realHeaders['X-Fc-Log-Type'] = Utils::toJSONString($headers->xFcLogType); + $realHeaders["X-Fc-Log-Type"] = Utils::toJSONString($headers->xFcLogType); } if (!Utils::isUnset($headers->xFcTraceId)) { - $realHeaders['X-Fc-Trace-Id'] = Utils::toJSONString($headers->xFcTraceId); + $realHeaders["X-Fc-Trace-Id"] = Utils::toJSONString($headers->xFcTraceId); } $req = new OpenApiRequest([ - 'headers' => $realHeaders, - 'query' => OpenApiUtilClient::query($query), + "headers" => $realHeaders, + "query" => OpenApiUtilClient::query($query) ]); $params = new Params([ - 'action' => 'ListStatefulAsyncInvocations', - 'version' => '2021-04-06', - 'protocol' => 'HTTPS', - 'pathname' => '/2021-04-06/services/' . $serviceName . '/functions/' . $functionName . '/stateful-async-invocations', - 'method' => 'GET', - 'authType' => 'AK', - 'style' => 'ROA', - 'reqBodyType' => 'json', - 'bodyType' => 'json', + "action" => "ListStatefulAsyncInvocations", + "version" => "2021-04-06", + "protocol" => "HTTPS", + "pathname" => "/2021-04-06/services/" . $serviceName . "/functions/" . $functionName . "/stateful-async-invocations", + "method" => "GET", + "authType" => "AK", + "style" => "ROA", + "reqBodyType" => "json", + "bodyType" => "json" ]); - return ListStatefulAsyncInvocationsResponse::fromMap($this->callApi($params, $req, $runtime)); } /** * @param ListTaggedResourcesRequest $request - * * @return ListTaggedResourcesResponse */ - public function listTaggedResources($request) - { + public function listTaggedResources($request){ $runtime = new RuntimeOptions([]); $headers = new ListTaggedResourcesHeaders([]); - return $this->listTaggedResourcesWithOptions($request, $headers, $runtime); } /** * @param ListTaggedResourcesRequest $request * @param ListTaggedResourcesHeaders $headers - * @param RuntimeOptions $runtime - * + * @param RuntimeOptions $runtime * @return ListTaggedResourcesResponse */ - public function listTaggedResourcesWithOptions($request, $headers, $runtime) - { + public function listTaggedResourcesWithOptions($request, $headers, $runtime){ Utils::validateModel($request); $query = []; if (!Utils::isUnset($request->limit)) { - $query['limit'] = $request->limit; + $query["limit"] = $request->limit; } if (!Utils::isUnset($request->nextToken)) { - $query['nextToken'] = $request->nextToken; + $query["nextToken"] = $request->nextToken; } $realHeaders = []; if (!Utils::isUnset($headers->commonHeaders)) { $realHeaders = $headers->commonHeaders; } if (!Utils::isUnset($headers->xFcAccountId)) { - $realHeaders['X-Fc-Account-Id'] = Utils::toJSONString($headers->xFcAccountId); + $realHeaders["X-Fc-Account-Id"] = Utils::toJSONString($headers->xFcAccountId); } if (!Utils::isUnset($headers->xFcDate)) { - $realHeaders['X-Fc-Date'] = Utils::toJSONString($headers->xFcDate); + $realHeaders["X-Fc-Date"] = Utils::toJSONString($headers->xFcDate); } if (!Utils::isUnset($headers->xFcTraceId)) { - $realHeaders['X-Fc-Trace-Id'] = Utils::toJSONString($headers->xFcTraceId); + $realHeaders["X-Fc-Trace-Id"] = Utils::toJSONString($headers->xFcTraceId); } $req = new OpenApiRequest([ - 'headers' => $realHeaders, - 'query' => OpenApiUtilClient::query($query), + "headers" => $realHeaders, + "query" => OpenApiUtilClient::query($query) ]); $params = new Params([ - 'action' => 'ListTaggedResources', - 'version' => '2021-04-06', - 'protocol' => 'HTTPS', - 'pathname' => '/2021-04-06/tags', - 'method' => 'GET', - 'authType' => 'AK', - 'style' => 'ROA', - 'reqBodyType' => 'json', - 'bodyType' => 'json', + "action" => "ListTaggedResources", + "version" => "2021-04-06", + "protocol" => "HTTPS", + "pathname" => "/2021-04-06/tags", + "method" => "GET", + "authType" => "AK", + "style" => "ROA", + "reqBodyType" => "json", + "bodyType" => "json" ]); - return ListTaggedResourcesResponse::fromMap($this->callApi($params, $req, $runtime)); } /** - * @param string $serviceName - * @param string $functionName + * @param string $serviceName + * @param string $functionName * @param ListTriggersRequest $request - * * @return ListTriggersResponse */ - public function listTriggers($serviceName, $functionName, $request) - { + public function listTriggers($serviceName, $functionName, $request){ $runtime = new RuntimeOptions([]); $headers = new ListTriggersHeaders([]); - return $this->listTriggersWithOptions($serviceName, $functionName, $request, $headers, $runtime); } /** - * @param string $serviceName - * @param string $functionName + * @param string $serviceName + * @param string $functionName * @param ListTriggersRequest $request * @param ListTriggersHeaders $headers - * @param RuntimeOptions $runtime - * + * @param RuntimeOptions $runtime * @return ListTriggersResponse */ - public function listTriggersWithOptions($serviceName, $functionName, $request, $headers, $runtime) - { + public function listTriggersWithOptions($serviceName, $functionName, $request, $headers, $runtime){ Utils::validateModel($request); - $serviceName = OpenApiUtilClient::getEncodeParam($serviceName); + $serviceName = OpenApiUtilClient::getEncodeParam($serviceName); $functionName = OpenApiUtilClient::getEncodeParam($functionName); - $query = []; + $query = []; if (!Utils::isUnset($request->limit)) { - $query['limit'] = $request->limit; + $query["limit"] = $request->limit; } if (!Utils::isUnset($request->nextToken)) { - $query['nextToken'] = $request->nextToken; + $query["nextToken"] = $request->nextToken; } if (!Utils::isUnset($request->prefix)) { - $query['prefix'] = $request->prefix; + $query["prefix"] = $request->prefix; } if (!Utils::isUnset($request->startKey)) { - $query['startKey'] = $request->startKey; + $query["startKey"] = $request->startKey; } $realHeaders = []; if (!Utils::isUnset($headers->commonHeaders)) { $realHeaders = $headers->commonHeaders; } if (!Utils::isUnset($headers->xFcAccountId)) { - $realHeaders['X-Fc-Account-Id'] = Utils::toJSONString($headers->xFcAccountId); + $realHeaders["X-Fc-Account-Id"] = Utils::toJSONString($headers->xFcAccountId); } if (!Utils::isUnset($headers->xFcDate)) { - $realHeaders['X-Fc-Date'] = Utils::toJSONString($headers->xFcDate); + $realHeaders["X-Fc-Date"] = Utils::toJSONString($headers->xFcDate); } if (!Utils::isUnset($headers->xFcTraceId)) { - $realHeaders['X-Fc-Trace-Id'] = Utils::toJSONString($headers->xFcTraceId); + $realHeaders["X-Fc-Trace-Id"] = Utils::toJSONString($headers->xFcTraceId); } $req = new OpenApiRequest([ - 'headers' => $realHeaders, - 'query' => OpenApiUtilClient::query($query), + "headers" => $realHeaders, + "query" => OpenApiUtilClient::query($query) ]); $params = new Params([ - 'action' => 'ListTriggers', - 'version' => '2021-04-06', - 'protocol' => 'HTTPS', - 'pathname' => '/2021-04-06/services/' . $serviceName . '/functions/' . $functionName . '/triggers', - 'method' => 'GET', - 'authType' => 'AK', - 'style' => 'ROA', - 'reqBodyType' => 'json', - 'bodyType' => 'json', + "action" => "ListTriggers", + "version" => "2021-04-06", + "protocol" => "HTTPS", + "pathname" => "/2021-04-06/services/" . $serviceName . "/functions/" . $functionName . "/triggers", + "method" => "GET", + "authType" => "AK", + "style" => "ROA", + "reqBodyType" => "json", + "bodyType" => "json" ]); - return ListTriggersResponse::fromMap($this->callApi($params, $req, $runtime)); } /** * @param string $serviceName - * * @return ListVpcBindingsResponse */ - public function listVpcBindings($serviceName) - { + public function listVpcBindings($serviceName){ $runtime = new RuntimeOptions([]); $headers = new ListVpcBindingsHeaders([]); - return $this->listVpcBindingsWithOptions($serviceName, $headers, $runtime); } /** - * @param string $serviceName + * @param string $serviceName * @param ListVpcBindingsHeaders $headers - * @param RuntimeOptions $runtime - * + * @param RuntimeOptions $runtime * @return ListVpcBindingsResponse */ - public function listVpcBindingsWithOptions($serviceName, $headers, $runtime) - { + public function listVpcBindingsWithOptions($serviceName, $headers, $runtime){ $serviceName = OpenApiUtilClient::getEncodeParam($serviceName); $realHeaders = []; if (!Utils::isUnset($headers->commonHeaders)) { $realHeaders = $headers->commonHeaders; } if (!Utils::isUnset($headers->xFcAccountId)) { - $realHeaders['X-Fc-Account-Id'] = Utils::toJSONString($headers->xFcAccountId); + $realHeaders["X-Fc-Account-Id"] = Utils::toJSONString($headers->xFcAccountId); } if (!Utils::isUnset($headers->xFcDate)) { - $realHeaders['X-Fc-Date'] = Utils::toJSONString($headers->xFcDate); + $realHeaders["X-Fc-Date"] = Utils::toJSONString($headers->xFcDate); } if (!Utils::isUnset($headers->xFcTraceId)) { - $realHeaders['X-Fc-Trace-Id'] = Utils::toJSONString($headers->xFcTraceId); + $realHeaders["X-Fc-Trace-Id"] = Utils::toJSONString($headers->xFcTraceId); } $req = new OpenApiRequest([ - 'headers' => $realHeaders, + "headers" => $realHeaders ]); $params = new Params([ - 'action' => 'ListVpcBindings', - 'version' => '2021-04-06', - 'protocol' => 'HTTPS', - 'pathname' => '/2021-04-06/services/' . $serviceName . '/bindings', - 'method' => 'GET', - 'authType' => 'AK', - 'style' => 'ROA', - 'reqBodyType' => 'json', - 'bodyType' => 'json', + "action" => "ListVpcBindings", + "version" => "2021-04-06", + "protocol" => "HTTPS", + "pathname" => "/2021-04-06/services/" . $serviceName . "/bindings", + "method" => "GET", + "authType" => "AK", + "style" => "ROA", + "reqBodyType" => "json", + "bodyType" => "json" ]); - return ListVpcBindingsResponse::fromMap($this->callApi($params, $req, $runtime)); } /** - * @param string $serviceName + * @param string $serviceName * @param PublishServiceVersionRequest $request - * * @return PublishServiceVersionResponse */ - public function publishServiceVersion($serviceName, $request) - { + public function publishServiceVersion($serviceName, $request){ $runtime = new RuntimeOptions([]); $headers = new PublishServiceVersionHeaders([]); - return $this->publishServiceVersionWithOptions($serviceName, $request, $headers, $runtime); } /** - * @param string $serviceName + * @param string $serviceName * @param PublishServiceVersionRequest $request * @param PublishServiceVersionHeaders $headers - * @param RuntimeOptions $runtime - * + * @param RuntimeOptions $runtime * @return PublishServiceVersionResponse */ - public function publishServiceVersionWithOptions($serviceName, $request, $headers, $runtime) - { + public function publishServiceVersionWithOptions($serviceName, $request, $headers, $runtime){ Utils::validateModel($request); $serviceName = OpenApiUtilClient::getEncodeParam($serviceName); - $body = []; + $body = []; if (!Utils::isUnset($request->description)) { - $body['description'] = $request->description; + $body["description"] = $request->description; } $realHeaders = []; if (!Utils::isUnset($headers->commonHeaders)) { $realHeaders = $headers->commonHeaders; } if (!Utils::isUnset($headers->ifMatch)) { - $realHeaders['If-Match'] = Utils::toJSONString($headers->ifMatch); + $realHeaders["If-Match"] = Utils::toJSONString($headers->ifMatch); } if (!Utils::isUnset($headers->xFcAccountId)) { - $realHeaders['X-Fc-Account-Id'] = Utils::toJSONString($headers->xFcAccountId); + $realHeaders["X-Fc-Account-Id"] = Utils::toJSONString($headers->xFcAccountId); } if (!Utils::isUnset($headers->xFcDate)) { - $realHeaders['X-Fc-Date'] = Utils::toJSONString($headers->xFcDate); + $realHeaders["X-Fc-Date"] = Utils::toJSONString($headers->xFcDate); } if (!Utils::isUnset($headers->xFcTraceId)) { - $realHeaders['X-Fc-Trace-Id'] = Utils::toJSONString($headers->xFcTraceId); + $realHeaders["X-Fc-Trace-Id"] = Utils::toJSONString($headers->xFcTraceId); } $req = new OpenApiRequest([ - 'headers' => $realHeaders, - 'body' => OpenApiUtilClient::parseToMap($body), + "headers" => $realHeaders, + "body" => OpenApiUtilClient::parseToMap($body) ]); $params = new Params([ - 'action' => 'PublishServiceVersion', - 'version' => '2021-04-06', - 'protocol' => 'HTTPS', - 'pathname' => '/2021-04-06/services/' . $serviceName . '/versions', - 'method' => 'POST', - 'authType' => 'AK', - 'style' => 'ROA', - 'reqBodyType' => 'json', - 'bodyType' => 'json', + "action" => "PublishServiceVersion", + "version" => "2021-04-06", + "protocol" => "HTTPS", + "pathname" => "/2021-04-06/services/" . $serviceName . "/versions", + "method" => "POST", + "authType" => "AK", + "style" => "ROA", + "reqBodyType" => "json", + "bodyType" => "json" ]); - return PublishServiceVersionResponse::fromMap($this->callApi($params, $req, $runtime)); } /** - * @param string $serviceName - * @param string $functionName + * @param string $serviceName + * @param string $functionName * @param PutFunctionAsyncInvokeConfigRequest $request - * * @return PutFunctionAsyncInvokeConfigResponse */ - public function putFunctionAsyncInvokeConfig($serviceName, $functionName, $request) - { + public function putFunctionAsyncInvokeConfig($serviceName, $functionName, $request){ $runtime = new RuntimeOptions([]); $headers = new PutFunctionAsyncInvokeConfigHeaders([]); - return $this->putFunctionAsyncInvokeConfigWithOptions($serviceName, $functionName, $request, $headers, $runtime); } /** - * @param string $serviceName - * @param string $functionName + * @param string $serviceName + * @param string $functionName * @param PutFunctionAsyncInvokeConfigRequest $request * @param PutFunctionAsyncInvokeConfigHeaders $headers - * @param RuntimeOptions $runtime - * + * @param RuntimeOptions $runtime * @return PutFunctionAsyncInvokeConfigResponse */ - public function putFunctionAsyncInvokeConfigWithOptions($serviceName, $functionName, $request, $headers, $runtime) - { + public function putFunctionAsyncInvokeConfigWithOptions($serviceName, $functionName, $request, $headers, $runtime){ Utils::validateModel($request); - $serviceName = OpenApiUtilClient::getEncodeParam($serviceName); + $serviceName = OpenApiUtilClient::getEncodeParam($serviceName); $functionName = OpenApiUtilClient::getEncodeParam($functionName); - $query = []; + $query = []; if (!Utils::isUnset($request->qualifier)) { - $query['qualifier'] = $request->qualifier; + $query["qualifier"] = $request->qualifier; } $body = []; if (!Utils::isUnset($request->destinationConfig)) { - $body['destinationConfig'] = $request->destinationConfig; + $body["destinationConfig"] = $request->destinationConfig; } if (!Utils::isUnset($request->maxAsyncEventAgeInSeconds)) { - $body['maxAsyncEventAgeInSeconds'] = $request->maxAsyncEventAgeInSeconds; + $body["maxAsyncEventAgeInSeconds"] = $request->maxAsyncEventAgeInSeconds; } if (!Utils::isUnset($request->maxAsyncRetryAttempts)) { - $body['maxAsyncRetryAttempts'] = $request->maxAsyncRetryAttempts; + $body["maxAsyncRetryAttempts"] = $request->maxAsyncRetryAttempts; } if (!Utils::isUnset($request->statefulInvocation)) { - $body['statefulInvocation'] = $request->statefulInvocation; + $body["statefulInvocation"] = $request->statefulInvocation; } $realHeaders = []; if (!Utils::isUnset($headers->commonHeaders)) { $realHeaders = $headers->commonHeaders; } if (!Utils::isUnset($headers->xFcAccountId)) { - $realHeaders['X-Fc-Account-Id'] = Utils::toJSONString($headers->xFcAccountId); + $realHeaders["X-Fc-Account-Id"] = Utils::toJSONString($headers->xFcAccountId); } if (!Utils::isUnset($headers->xFcDate)) { - $realHeaders['X-Fc-Date'] = Utils::toJSONString($headers->xFcDate); + $realHeaders["X-Fc-Date"] = Utils::toJSONString($headers->xFcDate); } if (!Utils::isUnset($headers->xFcTraceId)) { - $realHeaders['X-Fc-Trace-Id'] = Utils::toJSONString($headers->xFcTraceId); + $realHeaders["X-Fc-Trace-Id"] = Utils::toJSONString($headers->xFcTraceId); } $req = new OpenApiRequest([ - 'headers' => $realHeaders, - 'query' => OpenApiUtilClient::query($query), - 'body' => OpenApiUtilClient::parseToMap($body), + "headers" => $realHeaders, + "query" => OpenApiUtilClient::query($query), + "body" => OpenApiUtilClient::parseToMap($body) ]); $params = new Params([ - 'action' => 'PutFunctionAsyncInvokeConfig', - 'version' => '2021-04-06', - 'protocol' => 'HTTPS', - 'pathname' => '/2021-04-06/services/' . $serviceName . '/functions/' . $functionName . '/async-invoke-config', - 'method' => 'PUT', - 'authType' => 'AK', - 'style' => 'ROA', - 'reqBodyType' => 'json', - 'bodyType' => 'json', + "action" => "PutFunctionAsyncInvokeConfig", + "version" => "2021-04-06", + "protocol" => "HTTPS", + "pathname" => "/2021-04-06/services/" . $serviceName . "/functions/" . $functionName . "/async-invoke-config", + "method" => "PUT", + "authType" => "AK", + "style" => "ROA", + "reqBodyType" => "json", + "bodyType" => "json" ]); - return PutFunctionAsyncInvokeConfigResponse::fromMap($this->callApi($params, $req, $runtime)); } /** - * @param string $serviceName - * @param string $functionName + * @param string $serviceName + * @param string $functionName * @param PutFunctionOnDemandConfigRequest $request - * * @return PutFunctionOnDemandConfigResponse */ - public function putFunctionOnDemandConfig($serviceName, $functionName, $request) - { + public function putFunctionOnDemandConfig($serviceName, $functionName, $request){ $runtime = new RuntimeOptions([]); $headers = new PutFunctionOnDemandConfigHeaders([]); - return $this->putFunctionOnDemandConfigWithOptions($serviceName, $functionName, $request, $headers, $runtime); } /** - * @param string $serviceName - * @param string $functionName + * @param string $serviceName + * @param string $functionName * @param PutFunctionOnDemandConfigRequest $request * @param PutFunctionOnDemandConfigHeaders $headers - * @param RuntimeOptions $runtime - * + * @param RuntimeOptions $runtime * @return PutFunctionOnDemandConfigResponse */ - public function putFunctionOnDemandConfigWithOptions($serviceName, $functionName, $request, $headers, $runtime) - { + public function putFunctionOnDemandConfigWithOptions($serviceName, $functionName, $request, $headers, $runtime){ Utils::validateModel($request); - $serviceName = OpenApiUtilClient::getEncodeParam($serviceName); + $serviceName = OpenApiUtilClient::getEncodeParam($serviceName); $functionName = OpenApiUtilClient::getEncodeParam($functionName); - $query = []; + $query = []; if (!Utils::isUnset($request->qualifier)) { - $query['qualifier'] = $request->qualifier; + $query["qualifier"] = $request->qualifier; } $body = []; if (!Utils::isUnset($request->maximumInstanceCount)) { - $body['maximumInstanceCount'] = $request->maximumInstanceCount; + $body["maximumInstanceCount"] = $request->maximumInstanceCount; } $realHeaders = []; if (!Utils::isUnset($headers->commonHeaders)) { $realHeaders = $headers->commonHeaders; } if (!Utils::isUnset($headers->ifMatch)) { - $realHeaders['If-Match'] = Utils::toJSONString($headers->ifMatch); + $realHeaders["If-Match"] = Utils::toJSONString($headers->ifMatch); } if (!Utils::isUnset($headers->xFcAccountId)) { - $realHeaders['X-Fc-Account-Id'] = Utils::toJSONString($headers->xFcAccountId); + $realHeaders["X-Fc-Account-Id"] = Utils::toJSONString($headers->xFcAccountId); } if (!Utils::isUnset($headers->xFcDate)) { - $realHeaders['X-Fc-Date'] = Utils::toJSONString($headers->xFcDate); + $realHeaders["X-Fc-Date"] = Utils::toJSONString($headers->xFcDate); } if (!Utils::isUnset($headers->xFcTraceId)) { - $realHeaders['X-Fc-Trace-Id'] = Utils::toJSONString($headers->xFcTraceId); + $realHeaders["X-Fc-Trace-Id"] = Utils::toJSONString($headers->xFcTraceId); } $req = new OpenApiRequest([ - 'headers' => $realHeaders, - 'query' => OpenApiUtilClient::query($query), - 'body' => OpenApiUtilClient::parseToMap($body), + "headers" => $realHeaders, + "query" => OpenApiUtilClient::query($query), + "body" => OpenApiUtilClient::parseToMap($body) ]); $params = new Params([ - 'action' => 'PutFunctionOnDemandConfig', - 'version' => '2021-04-06', - 'protocol' => 'HTTPS', - 'pathname' => '/2021-04-06/services/' . $serviceName . '/functions/' . $functionName . '/on-demand-config', - 'method' => 'PUT', - 'authType' => 'AK', - 'style' => 'ROA', - 'reqBodyType' => 'json', - 'bodyType' => 'json', + "action" => "PutFunctionOnDemandConfig", + "version" => "2021-04-06", + "protocol" => "HTTPS", + "pathname" => "/2021-04-06/services/" . $serviceName . "/functions/" . $functionName . "/on-demand-config", + "method" => "PUT", + "authType" => "AK", + "style" => "ROA", + "reqBodyType" => "json", + "bodyType" => "json" ]); - return PutFunctionOnDemandConfigResponse::fromMap($this->callApi($params, $req, $runtime)); } /** - * @param string $layerName + * @param string $layerName * @param PutLayerACLRequest $request - * * @return PutLayerACLResponse */ - public function putLayerACL($layerName, $request) - { + public function putLayerACL($layerName, $request){ $runtime = new RuntimeOptions([]); $headers = new PutLayerACLHeaders([]); - return $this->putLayerACLWithOptions($layerName, $request, $headers, $runtime); } /** - * @param string $layerName + * @param string $layerName * @param PutLayerACLRequest $request * @param PutLayerACLHeaders $headers - * @param RuntimeOptions $runtime - * + * @param RuntimeOptions $runtime * @return PutLayerACLResponse */ - public function putLayerACLWithOptions($layerName, $request, $headers, $runtime) - { + public function putLayerACLWithOptions($layerName, $request, $headers, $runtime){ Utils::validateModel($request); $layerName = OpenApiUtilClient::getEncodeParam($layerName); - $query = []; + $query = []; if (!Utils::isUnset($request->public_)) { - $query['public'] = $request->public_; + $query["public"] = $request->public_; } $realHeaders = []; if (!Utils::isUnset($headers->commonHeaders)) { $realHeaders = $headers->commonHeaders; } if (!Utils::isUnset($headers->xFcAccountId)) { - $realHeaders['X-Fc-Account-Id'] = Utils::toJSONString($headers->xFcAccountId); + $realHeaders["X-Fc-Account-Id"] = Utils::toJSONString($headers->xFcAccountId); } if (!Utils::isUnset($headers->xFcDate)) { - $realHeaders['X-Fc-Date'] = Utils::toJSONString($headers->xFcDate); + $realHeaders["X-Fc-Date"] = Utils::toJSONString($headers->xFcDate); } if (!Utils::isUnset($headers->xFcTraceId)) { - $realHeaders['X-Fc-Trace-Id'] = Utils::toJSONString($headers->xFcTraceId); + $realHeaders["X-Fc-Trace-Id"] = Utils::toJSONString($headers->xFcTraceId); } $req = new OpenApiRequest([ - 'headers' => $realHeaders, - 'query' => OpenApiUtilClient::query($query), + "headers" => $realHeaders, + "query" => OpenApiUtilClient::query($query) ]); $params = new Params([ - 'action' => 'PutLayerACL', - 'version' => '2021-04-06', - 'protocol' => 'HTTPS', - 'pathname' => '/2021-04-06/layers/' . $layerName . '/acl', - 'method' => 'PUT', - 'authType' => 'AK', - 'style' => 'ROA', - 'reqBodyType' => 'json', - 'bodyType' => 'string', + "action" => "PutLayerACL", + "version" => "2021-04-06", + "protocol" => "HTTPS", + "pathname" => "/2021-04-06/layers/" . $layerName . "/acl", + "method" => "PUT", + "authType" => "AK", + "style" => "ROA", + "reqBodyType" => "json", + "bodyType" => "string" ]); - return PutLayerACLResponse::fromMap($this->callApi($params, $req, $runtime)); } /** - * @param string $serviceName - * @param string $functionName + * @param string $serviceName + * @param string $functionName * @param PutProvisionConfigRequest $request - * * @return PutProvisionConfigResponse */ - public function putProvisionConfig($serviceName, $functionName, $request) - { + public function putProvisionConfig($serviceName, $functionName, $request){ $runtime = new RuntimeOptions([]); $headers = new PutProvisionConfigHeaders([]); - return $this->putProvisionConfigWithOptions($serviceName, $functionName, $request, $headers, $runtime); } /** - * @param string $serviceName - * @param string $functionName + * @param string $serviceName + * @param string $functionName * @param PutProvisionConfigRequest $request * @param PutProvisionConfigHeaders $headers - * @param RuntimeOptions $runtime - * + * @param RuntimeOptions $runtime * @return PutProvisionConfigResponse */ - public function putProvisionConfigWithOptions($serviceName, $functionName, $request, $headers, $runtime) - { + public function putProvisionConfigWithOptions($serviceName, $functionName, $request, $headers, $runtime){ Utils::validateModel($request); - $serviceName = OpenApiUtilClient::getEncodeParam($serviceName); + $serviceName = OpenApiUtilClient::getEncodeParam($serviceName); $functionName = OpenApiUtilClient::getEncodeParam($functionName); - $query = []; + $query = []; if (!Utils::isUnset($request->qualifier)) { - $query['qualifier'] = $request->qualifier; + $query["qualifier"] = $request->qualifier; } $body = []; if (!Utils::isUnset($request->alwaysAllocateCPU)) { - $body['alwaysAllocateCPU'] = $request->alwaysAllocateCPU; + $body["alwaysAllocateCPU"] = $request->alwaysAllocateCPU; } if (!Utils::isUnset($request->scheduledActions)) { - $body['scheduledActions'] = $request->scheduledActions; + $body["scheduledActions"] = $request->scheduledActions; } if (!Utils::isUnset($request->target)) { - $body['target'] = $request->target; + $body["target"] = $request->target; } if (!Utils::isUnset($request->targetTrackingPolicies)) { - $body['targetTrackingPolicies'] = $request->targetTrackingPolicies; + $body["targetTrackingPolicies"] = $request->targetTrackingPolicies; } $realHeaders = []; if (!Utils::isUnset($headers->commonHeaders)) { $realHeaders = $headers->commonHeaders; } if (!Utils::isUnset($headers->xFcAccountId)) { - $realHeaders['X-Fc-Account-Id'] = Utils::toJSONString($headers->xFcAccountId); + $realHeaders["X-Fc-Account-Id"] = Utils::toJSONString($headers->xFcAccountId); } if (!Utils::isUnset($headers->xFcDate)) { - $realHeaders['X-Fc-Date'] = Utils::toJSONString($headers->xFcDate); + $realHeaders["X-Fc-Date"] = Utils::toJSONString($headers->xFcDate); } if (!Utils::isUnset($headers->xFcTraceId)) { - $realHeaders['X-Fc-Trace-Id'] = Utils::toJSONString($headers->xFcTraceId); + $realHeaders["X-Fc-Trace-Id"] = Utils::toJSONString($headers->xFcTraceId); } $req = new OpenApiRequest([ - 'headers' => $realHeaders, - 'query' => OpenApiUtilClient::query($query), - 'body' => OpenApiUtilClient::parseToMap($body), + "headers" => $realHeaders, + "query" => OpenApiUtilClient::query($query), + "body" => OpenApiUtilClient::parseToMap($body) ]); $params = new Params([ - 'action' => 'PutProvisionConfig', - 'version' => '2021-04-06', - 'protocol' => 'HTTPS', - 'pathname' => '/2021-04-06/services/' . $serviceName . '/functions/' . $functionName . '/provision-config', - 'method' => 'PUT', - 'authType' => 'AK', - 'style' => 'ROA', - 'reqBodyType' => 'json', - 'bodyType' => 'json', + "action" => "PutProvisionConfig", + "version" => "2021-04-06", + "protocol" => "HTTPS", + "pathname" => "/2021-04-06/services/" . $serviceName . "/functions/" . $functionName . "/provision-config", + "method" => "PUT", + "authType" => "AK", + "style" => "ROA", + "reqBodyType" => "json", + "bodyType" => "json" ]); - return PutProvisionConfigResponse::fromMap($this->callApi($params, $req, $runtime)); } /** - * @param string $serviceName - * @param string $functionName + * @param string $serviceName + * @param string $functionName * @param RegisterEventSourceRequest $request - * * @return RegisterEventSourceResponse */ - public function registerEventSource($serviceName, $functionName, $request) - { + public function registerEventSource($serviceName, $functionName, $request){ $runtime = new RuntimeOptions([]); $headers = new RegisterEventSourceHeaders([]); - return $this->registerEventSourceWithOptions($serviceName, $functionName, $request, $headers, $runtime); } /** - * @param string $serviceName - * @param string $functionName + * @param string $serviceName + * @param string $functionName * @param RegisterEventSourceRequest $request * @param RegisterEventSourceHeaders $headers - * @param RuntimeOptions $runtime - * + * @param RuntimeOptions $runtime * @return RegisterEventSourceResponse */ - public function registerEventSourceWithOptions($serviceName, $functionName, $request, $headers, $runtime) - { + public function registerEventSourceWithOptions($serviceName, $functionName, $request, $headers, $runtime){ Utils::validateModel($request); - $serviceName = OpenApiUtilClient::getEncodeParam($serviceName); + $serviceName = OpenApiUtilClient::getEncodeParam($serviceName); $functionName = OpenApiUtilClient::getEncodeParam($functionName); - $query = []; + $query = []; if (!Utils::isUnset($request->qualifier)) { - $query['qualifier'] = $request->qualifier; + $query["qualifier"] = $request->qualifier; } $body = []; if (!Utils::isUnset($request->sourceArn)) { - $body['sourceArn'] = $request->sourceArn; + $body["sourceArn"] = $request->sourceArn; } $realHeaders = []; if (!Utils::isUnset($headers->commonHeaders)) { $realHeaders = $headers->commonHeaders; } if (!Utils::isUnset($headers->xFcAccountId)) { - $realHeaders['X-Fc-Account-Id'] = Utils::toJSONString($headers->xFcAccountId); + $realHeaders["X-Fc-Account-Id"] = Utils::toJSONString($headers->xFcAccountId); } if (!Utils::isUnset($headers->xFcDate)) { - $realHeaders['X-Fc-Date'] = Utils::toJSONString($headers->xFcDate); + $realHeaders["X-Fc-Date"] = Utils::toJSONString($headers->xFcDate); } if (!Utils::isUnset($headers->xFcTraceId)) { - $realHeaders['X-Fc-Trace-Id'] = Utils::toJSONString($headers->xFcTraceId); + $realHeaders["X-Fc-Trace-Id"] = Utils::toJSONString($headers->xFcTraceId); } $req = new OpenApiRequest([ - 'headers' => $realHeaders, - 'query' => OpenApiUtilClient::query($query), - 'body' => OpenApiUtilClient::parseToMap($body), + "headers" => $realHeaders, + "query" => OpenApiUtilClient::query($query), + "body" => OpenApiUtilClient::parseToMap($body) ]); $params = new Params([ - 'action' => 'RegisterEventSource', - 'version' => '2021-04-06', - 'protocol' => 'HTTPS', - 'pathname' => '/2021-04-06/services/' . $serviceName . '/functions/' . $functionName . '/event-sources', - 'method' => 'POST', - 'authType' => 'AK', - 'style' => 'ROA', - 'reqBodyType' => 'json', - 'bodyType' => 'json', + "action" => "RegisterEventSource", + "version" => "2021-04-06", + "protocol" => "HTTPS", + "pathname" => "/2021-04-06/services/" . $serviceName . "/functions/" . $functionName . "/event-sources", + "method" => "POST", + "authType" => "AK", + "style" => "ROA", + "reqBodyType" => "json", + "bodyType" => "json" ]); - return RegisterEventSourceResponse::fromMap($this->callApi($params, $req, $runtime)); } /** - * @param string $serviceName - * @param string $functionName - * @param string $invocationId + * @param string $serviceName + * @param string $functionName + * @param string $invocationId * @param StopStatefulAsyncInvocationRequest $request - * * @return StopStatefulAsyncInvocationResponse */ - public function stopStatefulAsyncInvocation($serviceName, $functionName, $invocationId, $request) - { + public function stopStatefulAsyncInvocation($serviceName, $functionName, $invocationId, $request){ $runtime = new RuntimeOptions([]); $headers = new StopStatefulAsyncInvocationHeaders([]); - return $this->stopStatefulAsyncInvocationWithOptions($serviceName, $functionName, $invocationId, $request, $headers, $runtime); } /** - * @param string $serviceName - * @param string $functionName - * @param string $invocationId + * @param string $serviceName + * @param string $functionName + * @param string $invocationId * @param StopStatefulAsyncInvocationRequest $request * @param StopStatefulAsyncInvocationHeaders $headers - * @param RuntimeOptions $runtime - * + * @param RuntimeOptions $runtime * @return StopStatefulAsyncInvocationResponse */ - public function stopStatefulAsyncInvocationWithOptions($serviceName, $functionName, $invocationId, $request, $headers, $runtime) - { + public function stopStatefulAsyncInvocationWithOptions($serviceName, $functionName, $invocationId, $request, $headers, $runtime){ Utils::validateModel($request); - $serviceName = OpenApiUtilClient::getEncodeParam($serviceName); + $serviceName = OpenApiUtilClient::getEncodeParam($serviceName); $functionName = OpenApiUtilClient::getEncodeParam($functionName); $invocationId = OpenApiUtilClient::getEncodeParam($invocationId); - $query = []; + $query = []; if (!Utils::isUnset($request->qualifier)) { - $query['qualifier'] = $request->qualifier; + $query["qualifier"] = $request->qualifier; } $realHeaders = []; if (!Utils::isUnset($headers->commonHeaders)) { $realHeaders = $headers->commonHeaders; } if (!Utils::isUnset($headers->xFcAccountId)) { - $realHeaders['X-Fc-Account-Id'] = Utils::toJSONString($headers->xFcAccountId); + $realHeaders["X-Fc-Account-Id"] = Utils::toJSONString($headers->xFcAccountId); } if (!Utils::isUnset($headers->xFcDate)) { - $realHeaders['X-Fc-Date'] = Utils::toJSONString($headers->xFcDate); + $realHeaders["X-Fc-Date"] = Utils::toJSONString($headers->xFcDate); } if (!Utils::isUnset($headers->xFcTraceId)) { - $realHeaders['X-Fc-Trace-Id'] = Utils::toJSONString($headers->xFcTraceId); + $realHeaders["X-Fc-Trace-Id"] = Utils::toJSONString($headers->xFcTraceId); } $req = new OpenApiRequest([ - 'headers' => $realHeaders, - 'query' => OpenApiUtilClient::query($query), + "headers" => $realHeaders, + "query" => OpenApiUtilClient::query($query) ]); $params = new Params([ - 'action' => 'StopStatefulAsyncInvocation', - 'version' => '2021-04-06', - 'protocol' => 'HTTPS', - 'pathname' => '/2021-04-06/services/' . $serviceName . '/functions/' . $functionName . '/stateful-async-invocations/' . $invocationId . '', - 'method' => 'PUT', - 'authType' => 'AK', - 'style' => 'ROA', - 'reqBodyType' => 'json', - 'bodyType' => 'none', + "action" => "StopStatefulAsyncInvocation", + "version" => "2021-04-06", + "protocol" => "HTTPS", + "pathname" => "/2021-04-06/services/" . $serviceName . "/functions/" . $functionName . "/stateful-async-invocations/" . $invocationId . "", + "method" => "PUT", + "authType" => "AK", + "style" => "ROA", + "reqBodyType" => "json", + "bodyType" => "none" ]); - return StopStatefulAsyncInvocationResponse::fromMap($this->callApi($params, $req, $runtime)); } /** * @param TagResourceRequest $request - * * @return TagResourceResponse */ - public function tagResource($request) - { + public function tagResource($request){ $runtime = new RuntimeOptions([]); $headers = new TagResourceHeaders([]); - return $this->tagResourceWithOptions($request, $headers, $runtime); } /** * @param TagResourceRequest $request * @param TagResourceHeaders $headers - * @param RuntimeOptions $runtime - * + * @param RuntimeOptions $runtime * @return TagResourceResponse */ - public function tagResourceWithOptions($request, $headers, $runtime) - { + public function tagResourceWithOptions($request, $headers, $runtime){ Utils::validateModel($request); $body = []; if (!Utils::isUnset($request->resourceArn)) { - $body['resourceArn'] = $request->resourceArn; + $body["resourceArn"] = $request->resourceArn; } if (!Utils::isUnset($request->tags)) { - $body['tags'] = $request->tags; + $body["tags"] = $request->tags; } $realHeaders = []; if (!Utils::isUnset($headers->commonHeaders)) { $realHeaders = $headers->commonHeaders; } if (!Utils::isUnset($headers->xFcAccountId)) { - $realHeaders['X-Fc-Account-Id'] = Utils::toJSONString($headers->xFcAccountId); + $realHeaders["X-Fc-Account-Id"] = Utils::toJSONString($headers->xFcAccountId); } if (!Utils::isUnset($headers->xFcDate)) { - $realHeaders['X-Fc-Date'] = Utils::toJSONString($headers->xFcDate); + $realHeaders["X-Fc-Date"] = Utils::toJSONString($headers->xFcDate); } if (!Utils::isUnset($headers->xFcTraceId)) { - $realHeaders['X-Fc-Trace-Id'] = Utils::toJSONString($headers->xFcTraceId); + $realHeaders["X-Fc-Trace-Id"] = Utils::toJSONString($headers->xFcTraceId); } $req = new OpenApiRequest([ - 'headers' => $realHeaders, - 'body' => OpenApiUtilClient::parseToMap($body), + "headers" => $realHeaders, + "body" => OpenApiUtilClient::parseToMap($body) ]); $params = new Params([ - 'action' => 'TagResource', - 'version' => '2021-04-06', - 'protocol' => 'HTTPS', - 'pathname' => '/2021-04-06/tag', - 'method' => 'POST', - 'authType' => 'AK', - 'style' => 'ROA', - 'reqBodyType' => 'json', - 'bodyType' => 'none', + "action" => "TagResource", + "version" => "2021-04-06", + "protocol" => "HTTPS", + "pathname" => "/2021-04-06/tag", + "method" => "POST", + "authType" => "AK", + "style" => "ROA", + "reqBodyType" => "json", + "bodyType" => "none" ]); - return TagResourceResponse::fromMap($this->callApi($params, $req, $runtime)); } /** * @param UntagResourceRequest $request - * * @return UntagResourceResponse */ - public function untagResource($request) - { + public function untagResource($request){ $runtime = new RuntimeOptions([]); $headers = new UntagResourceHeaders([]); - return $this->untagResourceWithOptions($request, $headers, $runtime); } /** * @param UntagResourceRequest $request * @param UntagResourceHeaders $headers - * @param RuntimeOptions $runtime - * + * @param RuntimeOptions $runtime * @return UntagResourceResponse */ - public function untagResourceWithOptions($request, $headers, $runtime) - { + public function untagResourceWithOptions($request, $headers, $runtime){ Utils::validateModel($request); $body = []; if (!Utils::isUnset($request->all)) { - $body['all'] = $request->all; + $body["all"] = $request->all; } if (!Utils::isUnset($request->resourceArn)) { - $body['resourceArn'] = $request->resourceArn; + $body["resourceArn"] = $request->resourceArn; } if (!Utils::isUnset($request->tagKeys)) { - $body['tagKeys'] = $request->tagKeys; + $body["tagKeys"] = $request->tagKeys; } $realHeaders = []; if (!Utils::isUnset($headers->commonHeaders)) { $realHeaders = $headers->commonHeaders; } if (!Utils::isUnset($headers->xFcAccountId)) { - $realHeaders['X-Fc-Account-Id'] = Utils::toJSONString($headers->xFcAccountId); + $realHeaders["X-Fc-Account-Id"] = Utils::toJSONString($headers->xFcAccountId); } if (!Utils::isUnset($headers->xFcDate)) { - $realHeaders['X-Fc-Date'] = Utils::toJSONString($headers->xFcDate); + $realHeaders["X-Fc-Date"] = Utils::toJSONString($headers->xFcDate); } if (!Utils::isUnset($headers->xFcTraceId)) { - $realHeaders['X-Fc-Trace-Id'] = Utils::toJSONString($headers->xFcTraceId); + $realHeaders["X-Fc-Trace-Id"] = Utils::toJSONString($headers->xFcTraceId); } $req = new OpenApiRequest([ - 'headers' => $realHeaders, - 'body' => OpenApiUtilClient::parseToMap($body), + "headers" => $realHeaders, + "body" => OpenApiUtilClient::parseToMap($body) ]); $params = new Params([ - 'action' => 'UntagResource', - 'version' => '2021-04-06', - 'protocol' => 'HTTPS', - 'pathname' => '/2021-04-06/tag', - 'method' => 'PUT', - 'authType' => 'AK', - 'style' => 'ROA', - 'reqBodyType' => 'json', - 'bodyType' => 'none', + "action" => "UntagResource", + "version" => "2021-04-06", + "protocol" => "HTTPS", + "pathname" => "/2021-04-06/tag", + "method" => "PUT", + "authType" => "AK", + "style" => "ROA", + "reqBodyType" => "json", + "bodyType" => "none" ]); - return UntagResourceResponse::fromMap($this->callApi($params, $req, $runtime)); } /** - * @param string $serviceName - * @param string $aliasName + * @param string $serviceName + * @param string $aliasName * @param UpdateAliasRequest $request - * * @return UpdateAliasResponse */ - public function updateAlias($serviceName, $aliasName, $request) - { + public function updateAlias($serviceName, $aliasName, $request){ $runtime = new RuntimeOptions([]); $headers = new UpdateAliasHeaders([]); - return $this->updateAliasWithOptions($serviceName, $aliasName, $request, $headers, $runtime); } /** - * @param string $serviceName - * @param string $aliasName + * @param string $serviceName + * @param string $aliasName * @param UpdateAliasRequest $request * @param UpdateAliasHeaders $headers - * @param RuntimeOptions $runtime - * + * @param RuntimeOptions $runtime * @return UpdateAliasResponse */ - public function updateAliasWithOptions($serviceName, $aliasName, $request, $headers, $runtime) - { + public function updateAliasWithOptions($serviceName, $aliasName, $request, $headers, $runtime){ Utils::validateModel($request); $serviceName = OpenApiUtilClient::getEncodeParam($serviceName); - $aliasName = OpenApiUtilClient::getEncodeParam($aliasName); - $body = []; + $aliasName = OpenApiUtilClient::getEncodeParam($aliasName); + $body = []; if (!Utils::isUnset($request->additionalVersionWeight)) { - $body['additionalVersionWeight'] = $request->additionalVersionWeight; + $body["additionalVersionWeight"] = $request->additionalVersionWeight; } if (!Utils::isUnset($request->description)) { - $body['description'] = $request->description; + $body["description"] = $request->description; } if (!Utils::isUnset($request->resolvePolicy)) { - $body['resolvePolicy'] = $request->resolvePolicy; + $body["resolvePolicy"] = $request->resolvePolicy; } if (!Utils::isUnset($request->routePolicy)) { - $body['routePolicy'] = $request->routePolicy; + $body["routePolicy"] = $request->routePolicy; } if (!Utils::isUnset($request->versionId)) { - $body['versionId'] = $request->versionId; + $body["versionId"] = $request->versionId; } $realHeaders = []; if (!Utils::isUnset($headers->commonHeaders)) { $realHeaders = $headers->commonHeaders; } if (!Utils::isUnset($headers->ifMatch)) { - $realHeaders['If-Match'] = Utils::toJSONString($headers->ifMatch); + $realHeaders["If-Match"] = Utils::toJSONString($headers->ifMatch); } if (!Utils::isUnset($headers->xFcAccountId)) { - $realHeaders['X-Fc-Account-Id'] = Utils::toJSONString($headers->xFcAccountId); + $realHeaders["X-Fc-Account-Id"] = Utils::toJSONString($headers->xFcAccountId); } if (!Utils::isUnset($headers->xFcDate)) { - $realHeaders['X-Fc-Date'] = Utils::toJSONString($headers->xFcDate); + $realHeaders["X-Fc-Date"] = Utils::toJSONString($headers->xFcDate); } if (!Utils::isUnset($headers->xFcTraceId)) { - $realHeaders['X-Fc-Trace-Id'] = Utils::toJSONString($headers->xFcTraceId); + $realHeaders["X-Fc-Trace-Id"] = Utils::toJSONString($headers->xFcTraceId); } $req = new OpenApiRequest([ - 'headers' => $realHeaders, - 'body' => OpenApiUtilClient::parseToMap($body), + "headers" => $realHeaders, + "body" => OpenApiUtilClient::parseToMap($body) ]); $params = new Params([ - 'action' => 'UpdateAlias', - 'version' => '2021-04-06', - 'protocol' => 'HTTPS', - 'pathname' => '/2021-04-06/services/' . $serviceName . '/aliases/' . $aliasName . '', - 'method' => 'PUT', - 'authType' => 'AK', - 'style' => 'ROA', - 'reqBodyType' => 'json', - 'bodyType' => 'json', + "action" => "UpdateAlias", + "version" => "2021-04-06", + "protocol" => "HTTPS", + "pathname" => "/2021-04-06/services/" . $serviceName . "/aliases/" . $aliasName . "", + "method" => "PUT", + "authType" => "AK", + "style" => "ROA", + "reqBodyType" => "json", + "bodyType" => "json" ]); - return UpdateAliasResponse::fromMap($this->callApi($params, $req, $runtime)); } /** - * @param string $domainName + * @param string $domainName * @param UpdateCustomDomainRequest $request - * * @return UpdateCustomDomainResponse */ - public function updateCustomDomain($domainName, $request) - { + public function updateCustomDomain($domainName, $request){ $runtime = new RuntimeOptions([]); $headers = new UpdateCustomDomainHeaders([]); - return $this->updateCustomDomainWithOptions($domainName, $request, $headers, $runtime); } /** - * @param string $domainName + * @param string $domainName * @param UpdateCustomDomainRequest $request * @param UpdateCustomDomainHeaders $headers - * @param RuntimeOptions $runtime - * + * @param RuntimeOptions $runtime * @return UpdateCustomDomainResponse */ - public function updateCustomDomainWithOptions($domainName, $request, $headers, $runtime) - { + public function updateCustomDomainWithOptions($domainName, $request, $headers, $runtime){ Utils::validateModel($request); $domainName = OpenApiUtilClient::getEncodeParam($domainName); - $body = []; + $body = []; if (!Utils::isUnset($request->certConfig)) { - $body['certConfig'] = $request->certConfig; + $body["certConfig"] = $request->certConfig; } if (!Utils::isUnset($request->protocol)) { - $body['protocol'] = $request->protocol; + $body["protocol"] = $request->protocol; } if (!Utils::isUnset($request->routeConfig)) { - $body['routeConfig'] = $request->routeConfig; + $body["routeConfig"] = $request->routeConfig; } if (!Utils::isUnset($request->tlsConfig)) { - $body['tlsConfig'] = $request->tlsConfig; + $body["tlsConfig"] = $request->tlsConfig; } $realHeaders = []; if (!Utils::isUnset($headers->commonHeaders)) { $realHeaders = $headers->commonHeaders; } if (!Utils::isUnset($headers->xFcAccountId)) { - $realHeaders['X-Fc-Account-Id'] = Utils::toJSONString($headers->xFcAccountId); + $realHeaders["X-Fc-Account-Id"] = Utils::toJSONString($headers->xFcAccountId); } if (!Utils::isUnset($headers->xFcDate)) { - $realHeaders['X-Fc-Date'] = Utils::toJSONString($headers->xFcDate); + $realHeaders["X-Fc-Date"] = Utils::toJSONString($headers->xFcDate); } if (!Utils::isUnset($headers->xFcTraceId)) { - $realHeaders['X-Fc-Trace-Id'] = Utils::toJSONString($headers->xFcTraceId); + $realHeaders["X-Fc-Trace-Id"] = Utils::toJSONString($headers->xFcTraceId); } $req = new OpenApiRequest([ - 'headers' => $realHeaders, - 'body' => OpenApiUtilClient::parseToMap($body), + "headers" => $realHeaders, + "body" => OpenApiUtilClient::parseToMap($body) ]); $params = new Params([ - 'action' => 'UpdateCustomDomain', - 'version' => '2021-04-06', - 'protocol' => 'HTTPS', - 'pathname' => '/2021-04-06/custom-domains/' . $domainName . '', - 'method' => 'PUT', - 'authType' => 'AK', - 'style' => 'ROA', - 'reqBodyType' => 'json', - 'bodyType' => 'json', + "action" => "UpdateCustomDomain", + "version" => "2021-04-06", + "protocol" => "HTTPS", + "pathname" => "/2021-04-06/custom-domains/" . $domainName . "", + "method" => "PUT", + "authType" => "AK", + "style" => "ROA", + "reqBodyType" => "json", + "bodyType" => "json" ]); - return UpdateCustomDomainResponse::fromMap($this->callApi($params, $req, $runtime)); } /** - * @param string $serviceName - * @param string $functionName + * @param string $serviceName + * @param string $functionName * @param UpdateFunctionRequest $request - * * @return UpdateFunctionResponse */ - public function updateFunction($serviceName, $functionName, $request) - { + public function updateFunction($serviceName, $functionName, $request){ $runtime = new RuntimeOptions([]); $headers = new UpdateFunctionHeaders([]); - return $this->updateFunctionWithOptions($serviceName, $functionName, $request, $headers, $runtime); } /** - * @param string $serviceName - * @param string $functionName + * @param string $serviceName + * @param string $functionName * @param UpdateFunctionRequest $request * @param UpdateFunctionHeaders $headers - * @param RuntimeOptions $runtime - * + * @param RuntimeOptions $runtime * @return UpdateFunctionResponse */ - public function updateFunctionWithOptions($serviceName, $functionName, $request, $headers, $runtime) - { + public function updateFunctionWithOptions($serviceName, $functionName, $request, $headers, $runtime){ Utils::validateModel($request); - $serviceName = OpenApiUtilClient::getEncodeParam($serviceName); + $serviceName = OpenApiUtilClient::getEncodeParam($serviceName); $functionName = OpenApiUtilClient::getEncodeParam($functionName); - $body = []; + $body = []; if (!Utils::isUnset($request->instanceConcurrency)) { - $body['InstanceConcurrency'] = $request->instanceConcurrency; + $body["InstanceConcurrency"] = $request->instanceConcurrency; } if (!Utils::isUnset($request->caPort)) { - $body['caPort'] = $request->caPort; + $body["caPort"] = $request->caPort; } if (!Utils::isUnset($request->code)) { - $body['code'] = $request->code; + $body["code"] = $request->code; } if (!Utils::isUnset($request->customContainerConfig)) { - $body['customContainerConfig'] = $request->customContainerConfig; + $body["customContainerConfig"] = $request->customContainerConfig; } if (!Utils::isUnset($request->customDNS)) { - $body['customDNS'] = $request->customDNS; + $body["customDNS"] = $request->customDNS; } if (!Utils::isUnset($request->customRuntimeConfig)) { - $body['customRuntimeConfig'] = $request->customRuntimeConfig; + $body["customRuntimeConfig"] = $request->customRuntimeConfig; } if (!Utils::isUnset($request->description)) { - $body['description'] = $request->description; + $body["description"] = $request->description; } if (!Utils::isUnset($request->environmentVariables)) { - $body['environmentVariables'] = $request->environmentVariables; + $body["environmentVariables"] = $request->environmentVariables; } if (!Utils::isUnset($request->handler)) { - $body['handler'] = $request->handler; + $body["handler"] = $request->handler; } if (!Utils::isUnset($request->initializationTimeout)) { - $body['initializationTimeout'] = $request->initializationTimeout; + $body["initializationTimeout"] = $request->initializationTimeout; } if (!Utils::isUnset($request->initializer)) { - $body['initializer'] = $request->initializer; + $body["initializer"] = $request->initializer; } if (!Utils::isUnset($request->instanceLifecycleConfig)) { - $body['instanceLifecycleConfig'] = $request->instanceLifecycleConfig; + $body["instanceLifecycleConfig"] = $request->instanceLifecycleConfig; } if (!Utils::isUnset($request->instanceSoftConcurrency)) { - $body['instanceSoftConcurrency'] = $request->instanceSoftConcurrency; + $body["instanceSoftConcurrency"] = $request->instanceSoftConcurrency; } if (!Utils::isUnset($request->instanceType)) { - $body['instanceType'] = $request->instanceType; + $body["instanceType"] = $request->instanceType; } if (!Utils::isUnset($request->layers)) { - $body['layers'] = $request->layers; + $body["layers"] = $request->layers; } if (!Utils::isUnset($request->memorySize)) { - $body['memorySize'] = $request->memorySize; + $body["memorySize"] = $request->memorySize; } if (!Utils::isUnset($request->runtime)) { - $body['runtime'] = $request->runtime; + $body["runtime"] = $request->runtime; } if (!Utils::isUnset($request->timeout)) { - $body['timeout'] = $request->timeout; + $body["timeout"] = $request->timeout; } $realHeaders = []; if (!Utils::isUnset($headers->commonHeaders)) { $realHeaders = $headers->commonHeaders; } if (!Utils::isUnset($headers->ifMatch)) { - $realHeaders['If-Match'] = Utils::toJSONString($headers->ifMatch); + $realHeaders["If-Match"] = Utils::toJSONString($headers->ifMatch); } if (!Utils::isUnset($headers->xFcAccountId)) { - $realHeaders['X-Fc-Account-Id'] = Utils::toJSONString($headers->xFcAccountId); + $realHeaders["X-Fc-Account-Id"] = Utils::toJSONString($headers->xFcAccountId); } if (!Utils::isUnset($headers->xFcCodeChecksum)) { - $realHeaders['X-Fc-Code-Checksum'] = Utils::toJSONString($headers->xFcCodeChecksum); + $realHeaders["X-Fc-Code-Checksum"] = Utils::toJSONString($headers->xFcCodeChecksum); } if (!Utils::isUnset($headers->xFcDate)) { - $realHeaders['X-Fc-Date'] = Utils::toJSONString($headers->xFcDate); + $realHeaders["X-Fc-Date"] = Utils::toJSONString($headers->xFcDate); } if (!Utils::isUnset($headers->xFcTraceId)) { - $realHeaders['X-Fc-Trace-Id'] = Utils::toJSONString($headers->xFcTraceId); + $realHeaders["X-Fc-Trace-Id"] = Utils::toJSONString($headers->xFcTraceId); } $req = new OpenApiRequest([ - 'headers' => $realHeaders, - 'body' => OpenApiUtilClient::parseToMap($body), + "headers" => $realHeaders, + "body" => OpenApiUtilClient::parseToMap($body) ]); $params = new Params([ - 'action' => 'UpdateFunction', - 'version' => '2021-04-06', - 'protocol' => 'HTTPS', - 'pathname' => '/2021-04-06/services/' . $serviceName . '/functions/' . $functionName . '', - 'method' => 'PUT', - 'authType' => 'AK', - 'style' => 'ROA', - 'reqBodyType' => 'json', - 'bodyType' => 'json', + "action" => "UpdateFunction", + "version" => "2021-04-06", + "protocol" => "HTTPS", + "pathname" => "/2021-04-06/services/" . $serviceName . "/functions/" . $functionName . "", + "method" => "PUT", + "authType" => "AK", + "style" => "ROA", + "reqBodyType" => "json", + "bodyType" => "json" ]); - return UpdateFunctionResponse::fromMap($this->callApi($params, $req, $runtime)); } /** - * @param string $serviceName + * @param string $serviceName * @param UpdateServiceRequest $request - * * @return UpdateServiceResponse */ - public function updateService($serviceName, $request) - { + public function updateService($serviceName, $request){ $runtime = new RuntimeOptions([]); $headers = new UpdateServiceHeaders([]); - return $this->updateServiceWithOptions($serviceName, $request, $headers, $runtime); } /** - * @param string $serviceName + * @param string $serviceName * @param UpdateServiceRequest $request * @param UpdateServiceHeaders $headers - * @param RuntimeOptions $runtime - * + * @param RuntimeOptions $runtime * @return UpdateServiceResponse */ - public function updateServiceWithOptions($serviceName, $request, $headers, $runtime) - { + public function updateServiceWithOptions($serviceName, $request, $headers, $runtime){ Utils::validateModel($request); $serviceName = OpenApiUtilClient::getEncodeParam($serviceName); - $body = []; + $body = []; if (!Utils::isUnset($request->description)) { - $body['description'] = $request->description; + $body["description"] = $request->description; } if (!Utils::isUnset($request->internetAccess)) { - $body['internetAccess'] = $request->internetAccess; + $body["internetAccess"] = $request->internetAccess; } if (!Utils::isUnset($request->logConfig)) { - $body['logConfig'] = $request->logConfig; + $body["logConfig"] = $request->logConfig; } if (!Utils::isUnset($request->nasConfig)) { - $body['nasConfig'] = $request->nasConfig; + $body["nasConfig"] = $request->nasConfig; } if (!Utils::isUnset($request->role)) { - $body['role'] = $request->role; + $body["role"] = $request->role; } if (!Utils::isUnset($request->tracingConfig)) { - $body['tracingConfig'] = $request->tracingConfig; + $body["tracingConfig"] = $request->tracingConfig; } if (!Utils::isUnset($request->vpcConfig)) { - $body['vpcConfig'] = $request->vpcConfig; + $body["vpcConfig"] = $request->vpcConfig; } $realHeaders = []; if (!Utils::isUnset($headers->commonHeaders)) { $realHeaders = $headers->commonHeaders; } if (!Utils::isUnset($headers->ifMatch)) { - $realHeaders['If-Match'] = Utils::toJSONString($headers->ifMatch); + $realHeaders["If-Match"] = Utils::toJSONString($headers->ifMatch); } if (!Utils::isUnset($headers->xFcAccountId)) { - $realHeaders['X-Fc-Account-Id'] = Utils::toJSONString($headers->xFcAccountId); + $realHeaders["X-Fc-Account-Id"] = Utils::toJSONString($headers->xFcAccountId); } if (!Utils::isUnset($headers->xFcDate)) { - $realHeaders['X-Fc-Date'] = Utils::toJSONString($headers->xFcDate); + $realHeaders["X-Fc-Date"] = Utils::toJSONString($headers->xFcDate); } if (!Utils::isUnset($headers->xFcTraceId)) { - $realHeaders['X-Fc-Trace-Id'] = Utils::toJSONString($headers->xFcTraceId); + $realHeaders["X-Fc-Trace-Id"] = Utils::toJSONString($headers->xFcTraceId); } $req = new OpenApiRequest([ - 'headers' => $realHeaders, - 'body' => OpenApiUtilClient::parseToMap($body), + "headers" => $realHeaders, + "body" => OpenApiUtilClient::parseToMap($body) ]); $params = new Params([ - 'action' => 'UpdateService', - 'version' => '2021-04-06', - 'protocol' => 'HTTPS', - 'pathname' => '/2021-04-06/services/' . $serviceName . '', - 'method' => 'PUT', - 'authType' => 'AK', - 'style' => 'ROA', - 'reqBodyType' => 'json', - 'bodyType' => 'json', + "action" => "UpdateService", + "version" => "2021-04-06", + "protocol" => "HTTPS", + "pathname" => "/2021-04-06/services/" . $serviceName . "", + "method" => "PUT", + "authType" => "AK", + "style" => "ROA", + "reqBodyType" => "json", + "bodyType" => "json" ]); - return UpdateServiceResponse::fromMap($this->callApi($params, $req, $runtime)); } /** - * @param string $serviceName - * @param string $functionName - * @param string $triggerName + * @param string $serviceName + * @param string $functionName + * @param string $triggerName * @param UpdateTriggerRequest $request - * * @return UpdateTriggerResponse */ - public function updateTrigger($serviceName, $functionName, $triggerName, $request) - { + public function updateTrigger($serviceName, $functionName, $triggerName, $request){ $runtime = new RuntimeOptions([]); $headers = new UpdateTriggerHeaders([]); - return $this->updateTriggerWithOptions($serviceName, $functionName, $triggerName, $request, $headers, $runtime); } /** - * @param string $serviceName - * @param string $functionName - * @param string $triggerName + * @param string $serviceName + * @param string $functionName + * @param string $triggerName * @param UpdateTriggerRequest $request * @param UpdateTriggerHeaders $headers - * @param RuntimeOptions $runtime - * + * @param RuntimeOptions $runtime * @return UpdateTriggerResponse */ - public function updateTriggerWithOptions($serviceName, $functionName, $triggerName, $request, $headers, $runtime) - { + public function updateTriggerWithOptions($serviceName, $functionName, $triggerName, $request, $headers, $runtime){ Utils::validateModel($request); - $serviceName = OpenApiUtilClient::getEncodeParam($serviceName); + $serviceName = OpenApiUtilClient::getEncodeParam($serviceName); $functionName = OpenApiUtilClient::getEncodeParam($functionName); - $triggerName = OpenApiUtilClient::getEncodeParam($triggerName); - $body = []; + $triggerName = OpenApiUtilClient::getEncodeParam($triggerName); + $body = []; if (!Utils::isUnset($request->description)) { - $body['description'] = $request->description; + $body["description"] = $request->description; } if (!Utils::isUnset($request->invocationRole)) { - $body['invocationRole'] = $request->invocationRole; + $body["invocationRole"] = $request->invocationRole; } if (!Utils::isUnset($request->qualifier)) { - $body['qualifier'] = $request->qualifier; + $body["qualifier"] = $request->qualifier; } if (!Utils::isUnset($request->triggerConfig)) { - $body['triggerConfig'] = $request->triggerConfig; + $body["triggerConfig"] = $request->triggerConfig; } $realHeaders = []; if (!Utils::isUnset($headers->commonHeaders)) { $realHeaders = $headers->commonHeaders; } if (!Utils::isUnset($headers->ifMatch)) { - $realHeaders['If-Match'] = Utils::toJSONString($headers->ifMatch); + $realHeaders["If-Match"] = Utils::toJSONString($headers->ifMatch); } if (!Utils::isUnset($headers->xFcAccountId)) { - $realHeaders['X-Fc-Account-Id'] = Utils::toJSONString($headers->xFcAccountId); + $realHeaders["X-Fc-Account-Id"] = Utils::toJSONString($headers->xFcAccountId); } if (!Utils::isUnset($headers->xFcDate)) { - $realHeaders['X-Fc-Date'] = Utils::toJSONString($headers->xFcDate); + $realHeaders["X-Fc-Date"] = Utils::toJSONString($headers->xFcDate); } if (!Utils::isUnset($headers->xFcTraceId)) { - $realHeaders['X-Fc-Trace-Id'] = Utils::toJSONString($headers->xFcTraceId); + $realHeaders["X-Fc-Trace-Id"] = Utils::toJSONString($headers->xFcTraceId); } $req = new OpenApiRequest([ - 'headers' => $realHeaders, - 'body' => OpenApiUtilClient::parseToMap($body), + "headers" => $realHeaders, + "body" => OpenApiUtilClient::parseToMap($body) ]); $params = new Params([ - 'action' => 'UpdateTrigger', - 'version' => '2021-04-06', - 'protocol' => 'HTTPS', - 'pathname' => '/2021-04-06/services/' . $serviceName . '/functions/' . $functionName . '/triggers/' . $triggerName . '', - 'method' => 'PUT', - 'authType' => 'AK', - 'style' => 'ROA', - 'reqBodyType' => 'json', - 'bodyType' => 'json', + "action" => "UpdateTrigger", + "version" => "2021-04-06", + "protocol" => "HTTPS", + "pathname" => "/2021-04-06/services/" . $serviceName . "/functions/" . $functionName . "/triggers/" . $triggerName . "", + "method" => "PUT", + "authType" => "AK", + "style" => "ROA", + "reqBodyType" => "json", + "bodyType" => "json" ]); - return UpdateTriggerResponse::fromMap($this->callApi($params, $req, $runtime)); } } diff --git a/fc-open-20210406/src/Models/AccelerationInfo.php b/fc-open-20210406/src/Models/AccelerationInfo.php index c05800321e..4723ee1df7 100644 --- a/fc-open-20210406/src/Models/AccelerationInfo.php +++ b/fc-open-20210406/src/Models/AccelerationInfo.php @@ -1,47 +1,36 @@ 'status', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->status) { $res['status'] = $this->status; } - return $res; } - /** * @param array $map - * * @return AccelerationInfo */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['status'])) { + if(isset($map['status'])){ $model->status = $map['status']; } - return $model; } + /** + * @var string + */ + public $status; + } diff --git a/fc-open-20210406/src/Models/AsyncConfigMeta.php b/fc-open-20210406/src/Models/AsyncConfigMeta.php index ee0e30523e..977a0c3db8 100644 --- a/fc-open-20210406/src/Models/AsyncConfigMeta.php +++ b/fc-open-20210406/src/Models/AsyncConfigMeta.php @@ -1,39 +1,18 @@ 'functionName', - 'qualifier' => 'qualifier', - 'serviceName' => 'serviceName', + 'qualifier' => 'qualifier', + 'serviceName' => 'serviceName', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->functionName) { $res['functionName'] = $this->functionName; @@ -44,28 +23,38 @@ public function toMap() if (null !== $this->serviceName) { $res['serviceName'] = $this->serviceName; } - return $res; } - /** * @param array $map - * * @return AsyncConfigMeta */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['functionName'])) { + if(isset($map['functionName'])){ $model->functionName = $map['functionName']; } - if (isset($map['qualifier'])) { + if(isset($map['qualifier'])){ $model->qualifier = $map['qualifier']; } - if (isset($map['serviceName'])) { + if(isset($map['serviceName'])){ $model->serviceName = $map['serviceName']; } - return $model; } + /** + * @var string + */ + public $functionName; + + /** + * @var string + */ + public $qualifier; + + /** + * @var string + */ + public $serviceName; + } diff --git a/fc-open-20210406/src/Models/AvailableAZ.php b/fc-open-20210406/src/Models/AvailableAZ.php index 289fb3f09e..cdd6b8cfbe 100644 --- a/fc-open-20210406/src/Models/AvailableAZ.php +++ b/fc-open-20210406/src/Models/AvailableAZ.php @@ -1,47 +1,36 @@ 'availableAZs', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->availableAZs) { $res['availableAZs'] = $this->availableAZs; } - return $res; } - /** * @param array $map - * * @return AvailableAZ */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['availableAZs'])) { + if(isset($map['availableAZs'])){ $model->availableAZs = $map['availableAZs']; } - return $model; } + /** + * @var string + */ + public $availableAZs; + } diff --git a/fc-open-20210406/src/Models/CDNEventsTriggerConfig.php b/fc-open-20210406/src/Models/CDNEventsTriggerConfig.php index 7bbe765dec..c1e723a6c5 100644 --- a/fc-open-20210406/src/Models/CDNEventsTriggerConfig.php +++ b/fc-open-20210406/src/Models/CDNEventsTriggerConfig.php @@ -1,45 +1,19 @@ 'eventName', + 'eventName' => 'eventName', 'eventVersion' => 'eventVersion', - 'filter' => 'filter', - 'notes' => 'notes', + 'filter' => 'filter', + 'notes' => 'notes', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->eventName) { $res['eventName'] = $this->eventName; @@ -53,31 +27,46 @@ public function toMap() if (null !== $this->notes) { $res['notes'] = $this->notes; } - return $res; } - /** * @param array $map - * * @return CDNEventsTriggerConfig */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['eventName'])) { + if(isset($map['eventName'])){ $model->eventName = $map['eventName']; } - if (isset($map['eventVersion'])) { + if(isset($map['eventVersion'])){ $model->eventVersion = $map['eventVersion']; } - if (isset($map['filter'])) { + if(isset($map['filter'])){ $model->filter = $map['filter']; } - if (isset($map['notes'])) { + if(isset($map['notes'])){ $model->notes = $map['notes']; } - return $model; } + /** + * @var string + */ + public $eventName; + + /** + * @var string + */ + public $eventVersion; + + /** + * @var string[][] + */ + public $filter; + + /** + * @var string + */ + public $notes; + } diff --git a/fc-open-20210406/src/Models/CertConfig.php b/fc-open-20210406/src/Models/CertConfig.php index a928792abc..0ca430e786 100644 --- a/fc-open-20210406/src/Models/CertConfig.php +++ b/fc-open-20210406/src/Models/CertConfig.php @@ -1,39 +1,18 @@ 'certName', + 'certName' => 'certName', 'certificate' => 'certificate', - 'privateKey' => 'privateKey', + 'privateKey' => 'privateKey', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->certName) { $res['certName'] = $this->certName; @@ -44,28 +23,38 @@ public function toMap() if (null !== $this->privateKey) { $res['privateKey'] = $this->privateKey; } - return $res; } - /** * @param array $map - * * @return CertConfig */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['certName'])) { + if(isset($map['certName'])){ $model->certName = $map['certName']; } - if (isset($map['certificate'])) { + if(isset($map['certificate'])){ $model->certificate = $map['certificate']; } - if (isset($map['privateKey'])) { + if(isset($map['privateKey'])){ $model->privateKey = $map['privateKey']; } - return $model; } + /** + * @var string + */ + public $certName; + + /** + * @var string + */ + public $certificate; + + /** + * @var string + */ + public $privateKey; + } diff --git a/fc-open-20210406/src/Models/Code.php b/fc-open-20210406/src/Models/Code.php index 27bbc6a016..d516b38633 100644 --- a/fc-open-20210406/src/Models/Code.php +++ b/fc-open-20210406/src/Models/Code.php @@ -1,39 +1,18 @@ 'ossBucketName', 'ossObjectName' => 'ossObjectName', - 'zipFile' => 'zipFile', + 'zipFile' => 'zipFile', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->ossBucketName) { $res['ossBucketName'] = $this->ossBucketName; @@ -44,28 +23,38 @@ public function toMap() if (null !== $this->zipFile) { $res['zipFile'] = $this->zipFile; } - return $res; } - /** * @param array $map - * * @return Code */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['ossBucketName'])) { + if(isset($map['ossBucketName'])){ $model->ossBucketName = $map['ossBucketName']; } - if (isset($map['ossObjectName'])) { + if(isset($map['ossObjectName'])){ $model->ossObjectName = $map['ossObjectName']; } - if (isset($map['zipFile'])) { + if(isset($map['zipFile'])){ $model->zipFile = $map['zipFile']; } - return $model; } + /** + * @var string + */ + public $ossBucketName; + + /** + * @var string + */ + public $ossObjectName; + + /** + * @var string + */ + public $zipFile; + } diff --git a/fc-open-20210406/src/Models/CreateAliasHeaders.php b/fc-open-20210406/src/Models/CreateAliasHeaders.php index b7137c1067..3847ed23a6 100644 --- a/fc-open-20210406/src/Models/CreateAliasHeaders.php +++ b/fc-open-20210406/src/Models/CreateAliasHeaders.php @@ -1,41 +1,18 @@ 'X-Fc-Account-Id', - 'xFcDate' => 'X-Fc-Date', - 'xFcTraceId' => 'X-Fc-Trace-Id', + 'xFcDate' => 'X-Fc-Date', + 'xFcTraceId' => 'X-Fc-Trace-Id', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->commonHeaders) { $res['commonHeaders'] = $this->commonHeaders; @@ -49,31 +26,43 @@ public function toMap() if (null !== $this->xFcTraceId) { $res['X-Fc-Trace-Id'] = $this->xFcTraceId; } - return $res; } - /** * @param array $map - * * @return CreateAliasHeaders */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['commonHeaders'])) { + if(isset($map['commonHeaders'])){ $model->commonHeaders = $map['commonHeaders']; } - if (isset($map['X-Fc-Account-Id'])) { + if(isset($map['X-Fc-Account-Id'])){ $model->xFcAccountId = $map['X-Fc-Account-Id']; } - if (isset($map['X-Fc-Date'])) { + if(isset($map['X-Fc-Date'])){ $model->xFcDate = $map['X-Fc-Date']; } - if (isset($map['X-Fc-Trace-Id'])) { + if(isset($map['X-Fc-Trace-Id'])){ $model->xFcTraceId = $map['X-Fc-Trace-Id']; } - return $model; } + public $commonHeaders; + + /** + * @var string + */ + public $xFcAccountId; + + /** + * @var string + */ + public $xFcDate; + + /** + * @var string + */ + public $xFcTraceId; + } diff --git a/fc-open-20210406/src/Models/CreateAliasRequest.php b/fc-open-20210406/src/Models/CreateAliasRequest.php index 33f430010a..8ebb5f427e 100644 --- a/fc-open-20210406/src/Models/CreateAliasRequest.php +++ b/fc-open-20210406/src/Models/CreateAliasRequest.php @@ -1,57 +1,23 @@ 'additionalVersionWeight', - 'aliasName' => 'aliasName', - 'description' => 'description', - 'resolvePolicy' => 'resolvePolicy', - 'routePolicy' => 'routePolicy', - 'versionId' => 'versionId', + 'aliasName' => 'aliasName', + 'description' => 'description', + 'resolvePolicy' => 'resolvePolicy', + 'routePolicy' => 'routePolicy', + 'versionId' => 'versionId', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->additionalVersionWeight) { $res['additionalVersionWeight'] = $this->additionalVersionWeight; @@ -71,37 +37,62 @@ public function toMap() if (null !== $this->versionId) { $res['versionId'] = $this->versionId; } - return $res; } - /** * @param array $map - * * @return CreateAliasRequest */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['additionalVersionWeight'])) { + if(isset($map['additionalVersionWeight'])){ $model->additionalVersionWeight = $map['additionalVersionWeight']; } - if (isset($map['aliasName'])) { + if(isset($map['aliasName'])){ $model->aliasName = $map['aliasName']; } - if (isset($map['description'])) { + if(isset($map['description'])){ $model->description = $map['description']; } - if (isset($map['resolvePolicy'])) { + if(isset($map['resolvePolicy'])){ $model->resolvePolicy = $map['resolvePolicy']; } - if (isset($map['routePolicy'])) { + if(isset($map['routePolicy'])){ $model->routePolicy = RoutePolicy::fromMap($map['routePolicy']); } - if (isset($map['versionId'])) { + if(isset($map['versionId'])){ $model->versionId = $map['versionId']; } - return $model; } + /** + * @var float[] + */ + public $additionalVersionWeight; + + /** + * @var string + */ + public $aliasName; + + /** + * @var string + */ + public $description; + + /** + * @var string + */ + public $resolvePolicy; + + /** + * @var RoutePolicy + */ + public $routePolicy; + + /** + * @var string + */ + public $versionId; + } diff --git a/fc-open-20210406/src/Models/CreateAliasResponse.php b/fc-open-20210406/src/Models/CreateAliasResponse.php index 23c24a343e..efc2ce9ad3 100644 --- a/fc-open-20210406/src/Models/CreateAliasResponse.php +++ b/fc-open-20210406/src/Models/CreateAliasResponse.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 CreateAliasResponse */ - 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 = CreateAliasResponseBody::fromMap($map['body']); } - return $model; } + /** + * @var string[] + */ + public $headers; + + /** + * @var int + */ + public $statusCode; + + /** + * @var CreateAliasResponseBody + */ + public $body; + } diff --git a/fc-open-20210406/src/Models/CreateAliasResponseBody.php b/fc-open-20210406/src/Models/CreateAliasResponseBody.php index 5799919528..6910ad1cb1 100644 --- a/fc-open-20210406/src/Models/CreateAliasResponseBody.php +++ b/fc-open-20210406/src/Models/CreateAliasResponseBody.php @@ -1,57 +1,21 @@ 'additionalVersionWeight', - 'aliasName' => 'aliasName', - 'createdTime' => 'createdTime', - 'description' => 'description', - 'lastModifiedTime' => 'lastModifiedTime', - 'versionId' => 'versionId', + 'aliasName' => 'aliasName', + 'createdTime' => 'createdTime', + 'description' => 'description', + 'lastModifiedTime' => 'lastModifiedTime', + 'versionId' => 'versionId', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->additionalVersionWeight) { $res['additionalVersionWeight'] = $this->additionalVersionWeight; @@ -71,37 +35,62 @@ public function toMap() if (null !== $this->versionId) { $res['versionId'] = $this->versionId; } - return $res; } - /** * @param array $map - * * @return CreateAliasResponseBody */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['additionalVersionWeight'])) { + if(isset($map['additionalVersionWeight'])){ $model->additionalVersionWeight = $map['additionalVersionWeight']; } - if (isset($map['aliasName'])) { + if(isset($map['aliasName'])){ $model->aliasName = $map['aliasName']; } - if (isset($map['createdTime'])) { + if(isset($map['createdTime'])){ $model->createdTime = $map['createdTime']; } - if (isset($map['description'])) { + if(isset($map['description'])){ $model->description = $map['description']; } - if (isset($map['lastModifiedTime'])) { + if(isset($map['lastModifiedTime'])){ $model->lastModifiedTime = $map['lastModifiedTime']; } - if (isset($map['versionId'])) { + if(isset($map['versionId'])){ $model->versionId = $map['versionId']; } - return $model; } + /** + * @var float[] + */ + public $additionalVersionWeight; + + /** + * @var string + */ + public $aliasName; + + /** + * @var string + */ + public $createdTime; + + /** + * @var string + */ + public $description; + + /** + * @var string + */ + public $lastModifiedTime; + + /** + * @var string + */ + public $versionId; + } diff --git a/fc-open-20210406/src/Models/CreateCustomDomainHeaders.php b/fc-open-20210406/src/Models/CreateCustomDomainHeaders.php index f399bc5f82..15bb1351b5 100644 --- a/fc-open-20210406/src/Models/CreateCustomDomainHeaders.php +++ b/fc-open-20210406/src/Models/CreateCustomDomainHeaders.php @@ -1,41 +1,18 @@ 'X-Fc-Account-Id', - 'xFcDate' => 'X-Fc-Date', - 'xFcTraceId' => 'X-Fc-Trace-Id', + 'xFcDate' => 'X-Fc-Date', + 'xFcTraceId' => 'X-Fc-Trace-Id', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->commonHeaders) { $res['commonHeaders'] = $this->commonHeaders; @@ -49,31 +26,43 @@ public function toMap() if (null !== $this->xFcTraceId) { $res['X-Fc-Trace-Id'] = $this->xFcTraceId; } - return $res; } - /** * @param array $map - * * @return CreateCustomDomainHeaders */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['commonHeaders'])) { + if(isset($map['commonHeaders'])){ $model->commonHeaders = $map['commonHeaders']; } - if (isset($map['X-Fc-Account-Id'])) { + if(isset($map['X-Fc-Account-Id'])){ $model->xFcAccountId = $map['X-Fc-Account-Id']; } - if (isset($map['X-Fc-Date'])) { + if(isset($map['X-Fc-Date'])){ $model->xFcDate = $map['X-Fc-Date']; } - if (isset($map['X-Fc-Trace-Id'])) { + if(isset($map['X-Fc-Trace-Id'])){ $model->xFcTraceId = $map['X-Fc-Trace-Id']; } - return $model; } + public $commonHeaders; + + /** + * @var string + */ + public $xFcAccountId; + + /** + * @var string + */ + public $xFcDate; + + /** + * @var string + */ + public $xFcTraceId; + } diff --git a/fc-open-20210406/src/Models/CreateCustomDomainRequest.php b/fc-open-20210406/src/Models/CreateCustomDomainRequest.php index c29195a9e6..6a0973bf8a 100644 --- a/fc-open-20210406/src/Models/CreateCustomDomainRequest.php +++ b/fc-open-20210406/src/Models/CreateCustomDomainRequest.php @@ -1,51 +1,24 @@ 'certConfig', - 'domainName' => 'domainName', - 'protocol' => 'protocol', + 'certConfig' => 'certConfig', + 'domainName' => 'domainName', + 'protocol' => 'protocol', 'routeConfig' => 'routeConfig', - 'tlsConfig' => 'tlsConfig', + 'tlsConfig' => 'tlsConfig', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->certConfig) { $res['certConfig'] = null !== $this->certConfig ? $this->certConfig->toMap() : null; @@ -62,34 +35,54 @@ public function toMap() if (null !== $this->tlsConfig) { $res['tlsConfig'] = null !== $this->tlsConfig ? $this->tlsConfig->toMap() : null; } - return $res; } - /** * @param array $map - * * @return CreateCustomDomainRequest */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['certConfig'])) { + if(isset($map['certConfig'])){ $model->certConfig = CertConfig::fromMap($map['certConfig']); } - if (isset($map['domainName'])) { + if(isset($map['domainName'])){ $model->domainName = $map['domainName']; } - if (isset($map['protocol'])) { + if(isset($map['protocol'])){ $model->protocol = $map['protocol']; } - if (isset($map['routeConfig'])) { + if(isset($map['routeConfig'])){ $model->routeConfig = RouteConfig::fromMap($map['routeConfig']); } - if (isset($map['tlsConfig'])) { + if(isset($map['tlsConfig'])){ $model->tlsConfig = TLSConfig::fromMap($map['tlsConfig']); } - return $model; } + /** + * @var CertConfig + */ + public $certConfig; + + /** + * @var string + */ + public $domainName; + + /** + * @var string + */ + public $protocol; + + /** + * @var RouteConfig + */ + public $routeConfig; + + /** + * @var TLSConfig + */ + public $tlsConfig; + } diff --git a/fc-open-20210406/src/Models/CreateCustomDomainResponse.php b/fc-open-20210406/src/Models/CreateCustomDomainResponse.php index f07fda719f..e97f2168b2 100644 --- a/fc-open-20210406/src/Models/CreateCustomDomainResponse.php +++ b/fc-open-20210406/src/Models/CreateCustomDomainResponse.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 CreateCustomDomainResponse */ - 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 = CreateCustomDomainResponseBody::fromMap($map['body']); } - return $model; } + /** + * @var string[] + */ + public $headers; + + /** + * @var int + */ + public $statusCode; + + /** + * @var CreateCustomDomainResponseBody + */ + public $body; + } diff --git a/fc-open-20210406/src/Models/CreateCustomDomainResponseBody.php b/fc-open-20210406/src/Models/CreateCustomDomainResponseBody.php index caa6f61be6..096f908f29 100644 --- a/fc-open-20210406/src/Models/CreateCustomDomainResponseBody.php +++ b/fc-open-20210406/src/Models/CreateCustomDomainResponseBody.php @@ -1,75 +1,28 @@ 'accountId', - 'apiVersion' => 'apiVersion', - 'certConfig' => 'certConfig', - 'createdTime' => 'createdTime', - 'domainName' => 'domainName', + 'accountId' => 'accountId', + 'apiVersion' => 'apiVersion', + 'certConfig' => 'certConfig', + 'createdTime' => 'createdTime', + 'domainName' => 'domainName', 'lastModifiedTime' => 'lastModifiedTime', - 'protocol' => 'protocol', - 'routeConfig' => 'routeConfig', - 'tlsConfig' => 'tlsConfig', + 'protocol' => 'protocol', + 'routeConfig' => 'routeConfig', + 'tlsConfig' => 'tlsConfig', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->accountId) { $res['accountId'] = $this->accountId; @@ -98,46 +51,86 @@ public function toMap() if (null !== $this->tlsConfig) { $res['tlsConfig'] = null !== $this->tlsConfig ? $this->tlsConfig->toMap() : null; } - return $res; } - /** * @param array $map - * * @return CreateCustomDomainResponseBody */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['accountId'])) { + if(isset($map['accountId'])){ $model->accountId = $map['accountId']; } - if (isset($map['apiVersion'])) { + if(isset($map['apiVersion'])){ $model->apiVersion = $map['apiVersion']; } - if (isset($map['certConfig'])) { + if(isset($map['certConfig'])){ $model->certConfig = CertConfig::fromMap($map['certConfig']); } - if (isset($map['createdTime'])) { + if(isset($map['createdTime'])){ $model->createdTime = $map['createdTime']; } - if (isset($map['domainName'])) { + if(isset($map['domainName'])){ $model->domainName = $map['domainName']; } - if (isset($map['lastModifiedTime'])) { + if(isset($map['lastModifiedTime'])){ $model->lastModifiedTime = $map['lastModifiedTime']; } - if (isset($map['protocol'])) { + if(isset($map['protocol'])){ $model->protocol = $map['protocol']; } - if (isset($map['routeConfig'])) { + if(isset($map['routeConfig'])){ $model->routeConfig = RouteConfig::fromMap($map['routeConfig']); } - if (isset($map['tlsConfig'])) { + if(isset($map['tlsConfig'])){ $model->tlsConfig = TLSConfig::fromMap($map['tlsConfig']); } - return $model; } + /** + * @var string + */ + public $accountId; + + /** + * @var string + */ + public $apiVersion; + + /** + * @var CertConfig + */ + public $certConfig; + + /** + * @var string + */ + public $createdTime; + + /** + * @var string + */ + public $domainName; + + /** + * @var string + */ + public $lastModifiedTime; + + /** + * @var string + */ + public $protocol; + + /** + * @var RouteConfig + */ + public $routeConfig; + + /** + * @var TLSConfig + */ + public $tlsConfig; + } diff --git a/fc-open-20210406/src/Models/CreateFunctionHeaders.php b/fc-open-20210406/src/Models/CreateFunctionHeaders.php index 345fddc96f..7290aac77c 100644 --- a/fc-open-20210406/src/Models/CreateFunctionHeaders.php +++ b/fc-open-20210406/src/Models/CreateFunctionHeaders.php @@ -1,47 +1,19 @@ 'X-Fc-Account-Id', + 'xFcAccountId' => 'X-Fc-Account-Id', 'xFcCodeChecksum' => 'X-Fc-Code-Checksum', - 'xFcDate' => 'X-Fc-Date', - 'xFcTraceId' => 'X-Fc-Trace-Id', + 'xFcDate' => 'X-Fc-Date', + 'xFcTraceId' => 'X-Fc-Trace-Id', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->commonHeaders) { $res['commonHeaders'] = $this->commonHeaders; @@ -58,34 +30,51 @@ public function toMap() if (null !== $this->xFcTraceId) { $res['X-Fc-Trace-Id'] = $this->xFcTraceId; } - return $res; } - /** * @param array $map - * * @return CreateFunctionHeaders */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['commonHeaders'])) { + if(isset($map['commonHeaders'])){ $model->commonHeaders = $map['commonHeaders']; } - if (isset($map['X-Fc-Account-Id'])) { + if(isset($map['X-Fc-Account-Id'])){ $model->xFcAccountId = $map['X-Fc-Account-Id']; } - if (isset($map['X-Fc-Code-Checksum'])) { + if(isset($map['X-Fc-Code-Checksum'])){ $model->xFcCodeChecksum = $map['X-Fc-Code-Checksum']; } - if (isset($map['X-Fc-Date'])) { + if(isset($map['X-Fc-Date'])){ $model->xFcDate = $map['X-Fc-Date']; } - if (isset($map['X-Fc-Trace-Id'])) { + if(isset($map['X-Fc-Trace-Id'])){ $model->xFcTraceId = $map['X-Fc-Trace-Id']; } - return $model; } + public $commonHeaders; + + /** + * @var string + */ + public $xFcAccountId; + + /** + * @var string + */ + public $xFcCodeChecksum; + + /** + * @var string + */ + public $xFcDate; + + /** + * @var string + */ + public $xFcTraceId; + } diff --git a/fc-open-20210406/src/Models/CreateFunctionRequest.php b/fc-open-20210406/src/Models/CreateFunctionRequest.php index 7fb3c52c95..62445e1a3c 100644 --- a/fc-open-20210406/src/Models/CreateFunctionRequest.php +++ b/fc-open-20210406/src/Models/CreateFunctionRequest.php @@ -1,135 +1,40 @@ 'caPort', - 'code' => 'code', - 'customContainerConfig' => 'customContainerConfig', - 'customDNS' => 'customDNS', - 'customRuntimeConfig' => 'customRuntimeConfig', - 'description' => 'description', - 'environmentVariables' => 'environmentVariables', - 'functionName' => 'functionName', - 'handler' => 'handler', - 'initializationTimeout' => 'initializationTimeout', - 'initializer' => 'initializer', - 'instanceConcurrency' => 'instanceConcurrency', + 'caPort' => 'caPort', + 'code' => 'code', + 'customContainerConfig' => 'customContainerConfig', + 'customDNS' => 'customDNS', + 'customRuntimeConfig' => 'customRuntimeConfig', + 'description' => 'description', + 'environmentVariables' => 'environmentVariables', + 'functionName' => 'functionName', + 'handler' => 'handler', + 'initializationTimeout' => 'initializationTimeout', + 'initializer' => 'initializer', + 'instanceConcurrency' => 'instanceConcurrency', 'instanceLifecycleConfig' => 'instanceLifecycleConfig', 'instanceSoftConcurrency' => 'instanceSoftConcurrency', - 'instanceType' => 'instanceType', - 'layers' => 'layers', - 'memorySize' => 'memorySize', - 'runtime' => 'runtime', - 'timeout' => 'timeout', + 'instanceType' => 'instanceType', + 'layers' => 'layers', + 'memorySize' => 'memorySize', + 'runtime' => 'runtime', + 'timeout' => 'timeout', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->caPort) { $res['caPort'] = $this->caPort; @@ -188,78 +93,168 @@ public function toMap() if (null !== $this->timeout) { $res['timeout'] = $this->timeout; } - return $res; } - /** * @param array $map - * * @return CreateFunctionRequest */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['caPort'])) { + if(isset($map['caPort'])){ $model->caPort = $map['caPort']; } - if (isset($map['code'])) { + if(isset($map['code'])){ $model->code = Code::fromMap($map['code']); } - if (isset($map['customContainerConfig'])) { + if(isset($map['customContainerConfig'])){ $model->customContainerConfig = CustomContainerConfig::fromMap($map['customContainerConfig']); } - if (isset($map['customDNS'])) { + if(isset($map['customDNS'])){ $model->customDNS = CustomDNS::fromMap($map['customDNS']); } - if (isset($map['customRuntimeConfig'])) { + if(isset($map['customRuntimeConfig'])){ $model->customRuntimeConfig = CustomRuntimeConfig::fromMap($map['customRuntimeConfig']); } - if (isset($map['description'])) { + if(isset($map['description'])){ $model->description = $map['description']; } - if (isset($map['environmentVariables'])) { + if(isset($map['environmentVariables'])){ $model->environmentVariables = $map['environmentVariables']; } - if (isset($map['functionName'])) { + if(isset($map['functionName'])){ $model->functionName = $map['functionName']; } - if (isset($map['handler'])) { + if(isset($map['handler'])){ $model->handler = $map['handler']; } - if (isset($map['initializationTimeout'])) { + if(isset($map['initializationTimeout'])){ $model->initializationTimeout = $map['initializationTimeout']; } - if (isset($map['initializer'])) { + if(isset($map['initializer'])){ $model->initializer = $map['initializer']; } - if (isset($map['instanceConcurrency'])) { + if(isset($map['instanceConcurrency'])){ $model->instanceConcurrency = $map['instanceConcurrency']; } - if (isset($map['instanceLifecycleConfig'])) { + if(isset($map['instanceLifecycleConfig'])){ $model->instanceLifecycleConfig = InstanceLifecycleConfig::fromMap($map['instanceLifecycleConfig']); } - if (isset($map['instanceSoftConcurrency'])) { + if(isset($map['instanceSoftConcurrency'])){ $model->instanceSoftConcurrency = $map['instanceSoftConcurrency']; } - if (isset($map['instanceType'])) { + if(isset($map['instanceType'])){ $model->instanceType = $map['instanceType']; } - if (isset($map['layers'])) { - if (!empty($map['layers'])) { + if(isset($map['layers'])){ + if(!empty($map['layers'])){ $model->layers = $map['layers']; } } - if (isset($map['memorySize'])) { + if(isset($map['memorySize'])){ $model->memorySize = $map['memorySize']; } - if (isset($map['runtime'])) { + if(isset($map['runtime'])){ $model->runtime = $map['runtime']; } - if (isset($map['timeout'])) { + if(isset($map['timeout'])){ $model->timeout = $map['timeout']; } - return $model; } + /** + * @var int + */ + public $caPort; + + /** + * @var Code + */ + public $code; + + /** + * @var CustomContainerConfig + */ + public $customContainerConfig; + + /** + * @var CustomDNS + */ + public $customDNS; + + /** + * @var CustomRuntimeConfig + */ + public $customRuntimeConfig; + + /** + * @var string + */ + public $description; + + /** + * @var string[] + */ + public $environmentVariables; + + /** + * @var string + */ + public $functionName; + + /** + * @var string + */ + public $handler; + + /** + * @var int + */ + public $initializationTimeout; + + /** + * @var string + */ + public $initializer; + + /** + * @var int + */ + public $instanceConcurrency; + + /** + * @var InstanceLifecycleConfig + */ + public $instanceLifecycleConfig; + + /** + * @var int + */ + public $instanceSoftConcurrency; + + /** + * @var string + */ + public $instanceType; + + /** + * @var string[] + */ + public $layers; + + /** + * @var int + */ + public $memorySize; + + /** + * @var string + */ + public $runtime; + + /** + * @var int + */ + public $timeout; + } diff --git a/fc-open-20210406/src/Models/CreateFunctionResponse.php b/fc-open-20210406/src/Models/CreateFunctionResponse.php index 09a48a3af0..bd49d5a01d 100644 --- a/fc-open-20210406/src/Models/CreateFunctionResponse.php +++ b/fc-open-20210406/src/Models/CreateFunctionResponse.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 CreateFunctionResponse */ - 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 = CreateFunctionResponseBody::fromMap($map['body']); } - return $model; } + /** + * @var string[] + */ + public $headers; + + /** + * @var int + */ + public $statusCode; + + /** + * @var CreateFunctionResponseBody + */ + public $body; + } diff --git a/fc-open-20210406/src/Models/CreateFunctionResponseBody.php b/fc-open-20210406/src/Models/CreateFunctionResponseBody.php index 29f400fbf1..a1cc5aa829 100644 --- a/fc-open-20210406/src/Models/CreateFunctionResponseBody.php +++ b/fc-open-20210406/src/Models/CreateFunctionResponseBody.php @@ -1,159 +1,43 @@ 'caPort', - 'codeChecksum' => 'codeChecksum', - 'codeSize' => 'codeSize', - 'createdTime' => 'createdTime', - 'customContainerConfig' => 'customContainerConfig', - 'customDNS' => 'customDNS', - 'customRuntimeConfig' => 'customRuntimeConfig', - 'description' => 'description', - 'environmentVariables' => 'environmentVariables', - 'functionId' => 'functionId', - 'functionName' => 'functionName', - 'handler' => 'handler', - 'initializationTimeout' => 'initializationTimeout', - 'initializer' => 'initializer', - 'instanceConcurrency' => 'instanceConcurrency', + 'caPort' => 'caPort', + 'codeChecksum' => 'codeChecksum', + 'codeSize' => 'codeSize', + 'createdTime' => 'createdTime', + 'customContainerConfig' => 'customContainerConfig', + 'customDNS' => 'customDNS', + 'customRuntimeConfig' => 'customRuntimeConfig', + 'description' => 'description', + 'environmentVariables' => 'environmentVariables', + 'functionId' => 'functionId', + 'functionName' => 'functionName', + 'handler' => 'handler', + 'initializationTimeout' => 'initializationTimeout', + 'initializer' => 'initializer', + 'instanceConcurrency' => 'instanceConcurrency', 'instanceLifecycleConfig' => 'instanceLifecycleConfig', 'instanceSoftConcurrency' => 'instanceSoftConcurrency', - 'instanceType' => 'instanceType', - 'lastModifiedTime' => 'lastModifiedTime', - 'layers' => 'layers', - 'memorySize' => 'memorySize', - 'runtime' => 'runtime', - 'timeout' => 'timeout', + 'instanceType' => 'instanceType', + 'lastModifiedTime' => 'lastModifiedTime', + 'layers' => 'layers', + 'memorySize' => 'memorySize', + 'runtime' => 'runtime', + 'timeout' => 'timeout', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->caPort) { $res['caPort'] = $this->caPort; @@ -224,90 +108,200 @@ public function toMap() if (null !== $this->timeout) { $res['timeout'] = $this->timeout; } - return $res; } - /** * @param array $map - * * @return CreateFunctionResponseBody */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['caPort'])) { + if(isset($map['caPort'])){ $model->caPort = $map['caPort']; } - if (isset($map['codeChecksum'])) { + if(isset($map['codeChecksum'])){ $model->codeChecksum = $map['codeChecksum']; } - if (isset($map['codeSize'])) { + if(isset($map['codeSize'])){ $model->codeSize = $map['codeSize']; } - if (isset($map['createdTime'])) { + if(isset($map['createdTime'])){ $model->createdTime = $map['createdTime']; } - if (isset($map['customContainerConfig'])) { + if(isset($map['customContainerConfig'])){ $model->customContainerConfig = CustomContainerConfig::fromMap($map['customContainerConfig']); } - if (isset($map['customDNS'])) { + if(isset($map['customDNS'])){ $model->customDNS = CustomDNS::fromMap($map['customDNS']); } - if (isset($map['customRuntimeConfig'])) { + if(isset($map['customRuntimeConfig'])){ $model->customRuntimeConfig = CustomRuntimeConfig::fromMap($map['customRuntimeConfig']); } - if (isset($map['description'])) { + if(isset($map['description'])){ $model->description = $map['description']; } - if (isset($map['environmentVariables'])) { + if(isset($map['environmentVariables'])){ $model->environmentVariables = $map['environmentVariables']; } - if (isset($map['functionId'])) { + if(isset($map['functionId'])){ $model->functionId = $map['functionId']; } - if (isset($map['functionName'])) { + if(isset($map['functionName'])){ $model->functionName = $map['functionName']; } - if (isset($map['handler'])) { + if(isset($map['handler'])){ $model->handler = $map['handler']; } - if (isset($map['initializationTimeout'])) { + if(isset($map['initializationTimeout'])){ $model->initializationTimeout = $map['initializationTimeout']; } - if (isset($map['initializer'])) { + if(isset($map['initializer'])){ $model->initializer = $map['initializer']; } - if (isset($map['instanceConcurrency'])) { + if(isset($map['instanceConcurrency'])){ $model->instanceConcurrency = $map['instanceConcurrency']; } - if (isset($map['instanceLifecycleConfig'])) { + if(isset($map['instanceLifecycleConfig'])){ $model->instanceLifecycleConfig = InstanceLifecycleConfig::fromMap($map['instanceLifecycleConfig']); } - if (isset($map['instanceSoftConcurrency'])) { + if(isset($map['instanceSoftConcurrency'])){ $model->instanceSoftConcurrency = $map['instanceSoftConcurrency']; } - if (isset($map['instanceType'])) { + if(isset($map['instanceType'])){ $model->instanceType = $map['instanceType']; } - if (isset($map['lastModifiedTime'])) { + if(isset($map['lastModifiedTime'])){ $model->lastModifiedTime = $map['lastModifiedTime']; } - if (isset($map['layers'])) { - if (!empty($map['layers'])) { + if(isset($map['layers'])){ + if(!empty($map['layers'])){ $model->layers = $map['layers']; } } - if (isset($map['memorySize'])) { + if(isset($map['memorySize'])){ $model->memorySize = $map['memorySize']; } - if (isset($map['runtime'])) { + if(isset($map['runtime'])){ $model->runtime = $map['runtime']; } - if (isset($map['timeout'])) { + if(isset($map['timeout'])){ $model->timeout = $map['timeout']; } - return $model; } + /** + * @var int + */ + public $caPort; + + /** + * @var string + */ + public $codeChecksum; + + /** + * @var int + */ + public $codeSize; + + /** + * @var string + */ + public $createdTime; + + /** + * @var CustomContainerConfig + */ + public $customContainerConfig; + + /** + * @var CustomDNS + */ + public $customDNS; + + /** + * @var CustomRuntimeConfig + */ + public $customRuntimeConfig; + + /** + * @var string + */ + public $description; + + /** + * @var string[] + */ + public $environmentVariables; + + /** + * @var string + */ + public $functionId; + + /** + * @var string + */ + public $functionName; + + /** + * @var string + */ + public $handler; + + /** + * @var int + */ + public $initializationTimeout; + + /** + * @var string + */ + public $initializer; + + /** + * @var int + */ + public $instanceConcurrency; + + /** + * @var InstanceLifecycleConfig + */ + public $instanceLifecycleConfig; + + /** + * @var int + */ + public $instanceSoftConcurrency; + + /** + * @var string + */ + public $instanceType; + + /** + * @var string + */ + public $lastModifiedTime; + + /** + * @var string[] + */ + public $layers; + + /** + * @var int + */ + public $memorySize; + + /** + * @var string + */ + public $runtime; + + /** + * @var int + */ + public $timeout; + } diff --git a/fc-open-20210406/src/Models/CreateLayerVersionHeaders.php b/fc-open-20210406/src/Models/CreateLayerVersionHeaders.php index d9d312a301..8945f77cb6 100644 --- a/fc-open-20210406/src/Models/CreateLayerVersionHeaders.php +++ b/fc-open-20210406/src/Models/CreateLayerVersionHeaders.php @@ -1,41 +1,18 @@ 'X-Fc-Account-Id', - 'xFcDate' => 'X-Fc-Date', - 'xFcTraceId' => 'X-Fc-Trace-Id', + 'xFcDate' => 'X-Fc-Date', + 'xFcTraceId' => 'X-Fc-Trace-Id', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->commonHeaders) { $res['commonHeaders'] = $this->commonHeaders; @@ -49,31 +26,43 @@ public function toMap() if (null !== $this->xFcTraceId) { $res['X-Fc-Trace-Id'] = $this->xFcTraceId; } - return $res; } - /** * @param array $map - * * @return CreateLayerVersionHeaders */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['commonHeaders'])) { + if(isset($map['commonHeaders'])){ $model->commonHeaders = $map['commonHeaders']; } - if (isset($map['X-Fc-Account-Id'])) { + if(isset($map['X-Fc-Account-Id'])){ $model->xFcAccountId = $map['X-Fc-Account-Id']; } - if (isset($map['X-Fc-Date'])) { + if(isset($map['X-Fc-Date'])){ $model->xFcDate = $map['X-Fc-Date']; } - if (isset($map['X-Fc-Trace-Id'])) { + if(isset($map['X-Fc-Trace-Id'])){ $model->xFcTraceId = $map['X-Fc-Trace-Id']; } - return $model; } + public $commonHeaders; + + /** + * @var string + */ + public $xFcAccountId; + + /** + * @var string + */ + public $xFcDate; + + /** + * @var string + */ + public $xFcTraceId; + } diff --git a/fc-open-20210406/src/Models/CreateLayerVersionRequest.php b/fc-open-20210406/src/Models/CreateLayerVersionRequest.php index d8a18b8123..c06bf3d152 100644 --- a/fc-open-20210406/src/Models/CreateLayerVersionRequest.php +++ b/fc-open-20210406/src/Models/CreateLayerVersionRequest.php @@ -1,39 +1,20 @@ 'Code', + 'code' => 'Code', 'compatibleRuntime' => 'compatibleRuntime', - 'description' => 'description', + 'description' => 'description', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->code) { $res['Code'] = null !== $this->code ? $this->code->toMap() : null; @@ -44,30 +25,40 @@ public function toMap() if (null !== $this->description) { $res['description'] = $this->description; } - return $res; } - /** * @param array $map - * * @return CreateLayerVersionRequest */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['Code'])) { + if(isset($map['Code'])){ $model->code = Code::fromMap($map['Code']); } - if (isset($map['compatibleRuntime'])) { - if (!empty($map['compatibleRuntime'])) { + if(isset($map['compatibleRuntime'])){ + if(!empty($map['compatibleRuntime'])){ $model->compatibleRuntime = $map['compatibleRuntime']; } } - if (isset($map['description'])) { + if(isset($map['description'])){ $model->description = $map['description']; } - return $model; } + /** + * @var Code + */ + public $code; + + /** + * @var string[] + */ + public $compatibleRuntime; + + /** + * @var string + */ + public $description; + } diff --git a/fc-open-20210406/src/Models/CreateLayerVersionResponse.php b/fc-open-20210406/src/Models/CreateLayerVersionResponse.php index 1c9695e61b..0227cfa97a 100644 --- a/fc-open-20210406/src/Models/CreateLayerVersionResponse.php +++ b/fc-open-20210406/src/Models/CreateLayerVersionResponse.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 CreateLayerVersionResponse */ - 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 = CreateLayerVersionResponseBody::fromMap($map['body']); } - return $model; } + /** + * @var string[] + */ + public $headers; + + /** + * @var int + */ + public $statusCode; + + /** + * @var CreateLayerVersionResponseBody + */ + public $body; + } diff --git a/fc-open-20210406/src/Models/CreateLayerVersionResponseBody.php b/fc-open-20210406/src/Models/CreateLayerVersionResponseBody.php index 3cee898a1a..d1c4921ae7 100644 --- a/fc-open-20210406/src/Models/CreateLayerVersionResponseBody.php +++ b/fc-open-20210406/src/Models/CreateLayerVersionResponseBody.php @@ -1,81 +1,27 @@ 'acl', - 'arn' => 'arn', - 'code' => 'code', - 'codeChecksum' => 'codeChecksum', - 'codesize' => 'codesize', + 'acl' => 'acl', + 'arn' => 'arn', + 'code' => 'code', + 'codeChecksum' => 'codeChecksum', + 'codesize' => 'codesize', 'compatibleRuntime' => 'compatibleRuntime', - 'createTime' => 'createTime', - 'description' => 'description', - 'layerName' => 'layerName', - 'version' => 'version', + 'createTime' => 'createTime', + 'description' => 'description', + 'layerName' => 'layerName', + 'version' => 'version', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->acl) { $res['acl'] = $this->acl; @@ -107,51 +53,96 @@ public function toMap() if (null !== $this->version) { $res['version'] = $this->version; } - return $res; } - /** * @param array $map - * * @return CreateLayerVersionResponseBody */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['acl'])) { + if(isset($map['acl'])){ $model->acl = $map['acl']; } - if (isset($map['arn'])) { + if(isset($map['arn'])){ $model->arn = $map['arn']; } - if (isset($map['code'])) { + if(isset($map['code'])){ $model->code = OutputCodeLocation::fromMap($map['code']); } - if (isset($map['codeChecksum'])) { + if(isset($map['codeChecksum'])){ $model->codeChecksum = $map['codeChecksum']; } - if (isset($map['codesize'])) { + if(isset($map['codesize'])){ $model->codesize = $map['codesize']; } - if (isset($map['compatibleRuntime'])) { - if (!empty($map['compatibleRuntime'])) { + if(isset($map['compatibleRuntime'])){ + if(!empty($map['compatibleRuntime'])){ $model->compatibleRuntime = $map['compatibleRuntime']; } } - if (isset($map['createTime'])) { + if(isset($map['createTime'])){ $model->createTime = $map['createTime']; } - if (isset($map['description'])) { + if(isset($map['description'])){ $model->description = $map['description']; } - if (isset($map['layerName'])) { + if(isset($map['layerName'])){ $model->layerName = $map['layerName']; } - if (isset($map['version'])) { + if(isset($map['version'])){ $model->version = $map['version']; } - return $model; } + /** + * @var int + */ + public $acl; + + /** + * @var string + */ + public $arn; + + /** + * @var OutputCodeLocation + */ + public $code; + + /** + * @var string + */ + public $codeChecksum; + + /** + * @var int + */ + public $codesize; + + /** + * @var string[] + */ + public $compatibleRuntime; + + /** + * @var string + */ + public $createTime; + + /** + * @var string + */ + public $description; + + /** + * @var string + */ + public $layerName; + + /** + * @var int + */ + public $version; + } diff --git a/fc-open-20210406/src/Models/CreateServiceHeaders.php b/fc-open-20210406/src/Models/CreateServiceHeaders.php index a0d070cb39..4fb87ae80a 100644 --- a/fc-open-20210406/src/Models/CreateServiceHeaders.php +++ b/fc-open-20210406/src/Models/CreateServiceHeaders.php @@ -1,41 +1,18 @@ 'X-Fc-Account-Id', - 'xFcDate' => 'X-Fc-Date', - 'xFcTraceId' => 'X-Fc-Trace-Id', + 'xFcDate' => 'X-Fc-Date', + 'xFcTraceId' => 'X-Fc-Trace-Id', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->commonHeaders) { $res['commonHeaders'] = $this->commonHeaders; @@ -49,31 +26,43 @@ public function toMap() if (null !== $this->xFcTraceId) { $res['X-Fc-Trace-Id'] = $this->xFcTraceId; } - return $res; } - /** * @param array $map - * * @return CreateServiceHeaders */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['commonHeaders'])) { + if(isset($map['commonHeaders'])){ $model->commonHeaders = $map['commonHeaders']; } - if (isset($map['X-Fc-Account-Id'])) { + if(isset($map['X-Fc-Account-Id'])){ $model->xFcAccountId = $map['X-Fc-Account-Id']; } - if (isset($map['X-Fc-Date'])) { + if(isset($map['X-Fc-Date'])){ $model->xFcDate = $map['X-Fc-Date']; } - if (isset($map['X-Fc-Trace-Id'])) { + if(isset($map['X-Fc-Trace-Id'])){ $model->xFcTraceId = $map['X-Fc-Trace-Id']; } - return $model; } + public $commonHeaders; + + /** + * @var string + */ + public $xFcAccountId; + + /** + * @var string + */ + public $xFcDate; + + /** + * @var string + */ + public $xFcTraceId; + } diff --git a/fc-open-20210406/src/Models/CreateServiceRequest.php b/fc-open-20210406/src/Models/CreateServiceRequest.php index bdf7f2edd1..61b7b0de9a 100644 --- a/fc-open-20210406/src/Models/CreateServiceRequest.php +++ b/fc-open-20210406/src/Models/CreateServiceRequest.php @@ -1,69 +1,28 @@ 'description', + 'description' => 'description', 'internetAccess' => 'internetAccess', - 'logConfig' => 'logConfig', - 'nasConfig' => 'nasConfig', - 'role' => 'role', - 'serviceName' => 'serviceName', - 'tracingConfig' => 'tracingConfig', - 'vpcConfig' => 'vpcConfig', + 'logConfig' => 'logConfig', + 'nasConfig' => 'nasConfig', + 'role' => 'role', + 'serviceName' => 'serviceName', + 'tracingConfig' => 'tracingConfig', + 'vpcConfig' => 'vpcConfig', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->description) { $res['description'] = $this->description; @@ -89,43 +48,78 @@ public function toMap() if (null !== $this->vpcConfig) { $res['vpcConfig'] = null !== $this->vpcConfig ? $this->vpcConfig->toMap() : null; } - return $res; } - /** * @param array $map - * * @return CreateServiceRequest */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['description'])) { + if(isset($map['description'])){ $model->description = $map['description']; } - if (isset($map['internetAccess'])) { + if(isset($map['internetAccess'])){ $model->internetAccess = $map['internetAccess']; } - if (isset($map['logConfig'])) { + if(isset($map['logConfig'])){ $model->logConfig = LogConfig::fromMap($map['logConfig']); } - if (isset($map['nasConfig'])) { + if(isset($map['nasConfig'])){ $model->nasConfig = NASConfig::fromMap($map['nasConfig']); } - if (isset($map['role'])) { + if(isset($map['role'])){ $model->role = $map['role']; } - if (isset($map['serviceName'])) { + if(isset($map['serviceName'])){ $model->serviceName = $map['serviceName']; } - if (isset($map['tracingConfig'])) { + if(isset($map['tracingConfig'])){ $model->tracingConfig = TracingConfig::fromMap($map['tracingConfig']); } - if (isset($map['vpcConfig'])) { + if(isset($map['vpcConfig'])){ $model->vpcConfig = VPCConfig::fromMap($map['vpcConfig']); } - return $model; } + /** + * @var string + */ + public $description; + + /** + * @var bool + */ + public $internetAccess; + + /** + * @var LogConfig + */ + public $logConfig; + + /** + * @var NASConfig + */ + public $nasConfig; + + /** + * @var string + */ + public $role; + + /** + * @var string + */ + public $serviceName; + + /** + * @var TracingConfig + */ + public $tracingConfig; + + /** + * @var VPCConfig + */ + public $vpcConfig; + } diff --git a/fc-open-20210406/src/Models/CreateServiceResponse.php b/fc-open-20210406/src/Models/CreateServiceResponse.php index 5f73280979..5ba9affb42 100644 --- a/fc-open-20210406/src/Models/CreateServiceResponse.php +++ b/fc-open-20210406/src/Models/CreateServiceResponse.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 CreateServiceResponse */ - 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 = CreateServiceResponseBody::fromMap($map['body']); } - return $model; } + /** + * @var string[] + */ + public $headers; + + /** + * @var int + */ + public $statusCode; + + /** + * @var CreateServiceResponseBody + */ + public $body; + } diff --git a/fc-open-20210406/src/Models/CreateServiceResponseBody.php b/fc-open-20210406/src/Models/CreateServiceResponseBody.php index 64d8b97745..63a7104539 100644 --- a/fc-open-20210406/src/Models/CreateServiceResponseBody.php +++ b/fc-open-20210406/src/Models/CreateServiceResponseBody.php @@ -1,87 +1,31 @@ 'createdTime', - 'description' => 'description', - 'internetAccess' => 'internetAccess', + 'createdTime' => 'createdTime', + 'description' => 'description', + 'internetAccess' => 'internetAccess', 'lastModifiedTime' => 'lastModifiedTime', - 'logConfig' => 'logConfig', - 'nasConfig' => 'nasConfig', - 'role' => 'role', - 'serviceId' => 'serviceId', - 'serviceName' => 'serviceName', - 'tracingConfig' => 'tracingConfig', - 'vpcConfig' => 'vpcConfig', + 'logConfig' => 'logConfig', + 'nasConfig' => 'nasConfig', + 'role' => 'role', + 'serviceId' => 'serviceId', + 'serviceName' => 'serviceName', + 'tracingConfig' => 'tracingConfig', + 'vpcConfig' => 'vpcConfig', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->createdTime) { $res['createdTime'] = $this->createdTime; @@ -116,52 +60,102 @@ public function toMap() if (null !== $this->vpcConfig) { $res['vpcConfig'] = null !== $this->vpcConfig ? $this->vpcConfig->toMap() : null; } - return $res; } - /** * @param array $map - * * @return CreateServiceResponseBody */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['createdTime'])) { + if(isset($map['createdTime'])){ $model->createdTime = $map['createdTime']; } - if (isset($map['description'])) { + if(isset($map['description'])){ $model->description = $map['description']; } - if (isset($map['internetAccess'])) { + if(isset($map['internetAccess'])){ $model->internetAccess = $map['internetAccess']; } - if (isset($map['lastModifiedTime'])) { + if(isset($map['lastModifiedTime'])){ $model->lastModifiedTime = $map['lastModifiedTime']; } - if (isset($map['logConfig'])) { + if(isset($map['logConfig'])){ $model->logConfig = LogConfig::fromMap($map['logConfig']); } - if (isset($map['nasConfig'])) { + if(isset($map['nasConfig'])){ $model->nasConfig = NASConfig::fromMap($map['nasConfig']); } - if (isset($map['role'])) { + if(isset($map['role'])){ $model->role = $map['role']; } - if (isset($map['serviceId'])) { + if(isset($map['serviceId'])){ $model->serviceId = $map['serviceId']; } - if (isset($map['serviceName'])) { + if(isset($map['serviceName'])){ $model->serviceName = $map['serviceName']; } - if (isset($map['tracingConfig'])) { + if(isset($map['tracingConfig'])){ $model->tracingConfig = TracingConfig::fromMap($map['tracingConfig']); } - if (isset($map['vpcConfig'])) { + if(isset($map['vpcConfig'])){ $model->vpcConfig = VPCConfig::fromMap($map['vpcConfig']); } - return $model; } + /** + * @var string + */ + public $createdTime; + + /** + * @var string + */ + public $description; + + /** + * @var bool + */ + public $internetAccess; + + /** + * @var string + */ + public $lastModifiedTime; + + /** + * @var LogConfig + */ + public $logConfig; + + /** + * @var NASConfig + */ + public $nasConfig; + + /** + * @var string + */ + public $role; + + /** + * @var string + */ + public $serviceId; + + /** + * @var string + */ + public $serviceName; + + /** + * @var TracingConfig + */ + public $tracingConfig; + + /** + * @var VPCConfig + */ + public $vpcConfig; + } diff --git a/fc-open-20210406/src/Models/CreateTriggerHeaders.php b/fc-open-20210406/src/Models/CreateTriggerHeaders.php index ec19cdf273..1d9d7391b8 100644 --- a/fc-open-20210406/src/Models/CreateTriggerHeaders.php +++ b/fc-open-20210406/src/Models/CreateTriggerHeaders.php @@ -1,41 +1,18 @@ 'X-Fc-Account-Id', - 'xFcDate' => 'X-Fc-Date', - 'xFcTraceId' => 'X-Fc-Trace-Id', + 'xFcDate' => 'X-Fc-Date', + 'xFcTraceId' => 'X-Fc-Trace-Id', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->commonHeaders) { $res['commonHeaders'] = $this->commonHeaders; @@ -49,31 +26,43 @@ public function toMap() if (null !== $this->xFcTraceId) { $res['X-Fc-Trace-Id'] = $this->xFcTraceId; } - return $res; } - /** * @param array $map - * * @return CreateTriggerHeaders */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['commonHeaders'])) { + if(isset($map['commonHeaders'])){ $model->commonHeaders = $map['commonHeaders']; } - if (isset($map['X-Fc-Account-Id'])) { + if(isset($map['X-Fc-Account-Id'])){ $model->xFcAccountId = $map['X-Fc-Account-Id']; } - if (isset($map['X-Fc-Date'])) { + if(isset($map['X-Fc-Date'])){ $model->xFcDate = $map['X-Fc-Date']; } - if (isset($map['X-Fc-Trace-Id'])) { + if(isset($map['X-Fc-Trace-Id'])){ $model->xFcTraceId = $map['X-Fc-Trace-Id']; } - return $model; } + public $commonHeaders; + + /** + * @var string + */ + public $xFcAccountId; + + /** + * @var string + */ + public $xFcDate; + + /** + * @var string + */ + public $xFcTraceId; + } diff --git a/fc-open-20210406/src/Models/CreateTriggerRequest.php b/fc-open-20210406/src/Models/CreateTriggerRequest.php index 9950c45e07..de9d5df579 100644 --- a/fc-open-20210406/src/Models/CreateTriggerRequest.php +++ b/fc-open-20210406/src/Models/CreateTriggerRequest.php @@ -1,63 +1,22 @@ 'description', + 'description' => 'description', 'invocationRole' => 'invocationRole', - 'qualifier' => 'qualifier', - 'sourceArn' => 'sourceArn', - 'triggerConfig' => 'triggerConfig', - 'triggerName' => 'triggerName', - 'triggerType' => 'triggerType', + 'qualifier' => 'qualifier', + 'sourceArn' => 'sourceArn', + 'triggerConfig' => 'triggerConfig', + 'triggerName' => 'triggerName', + 'triggerType' => 'triggerType', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->description) { $res['description'] = $this->description; @@ -80,40 +39,70 @@ public function toMap() if (null !== $this->triggerType) { $res['triggerType'] = $this->triggerType; } - return $res; } - /** * @param array $map - * * @return CreateTriggerRequest */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['description'])) { + if(isset($map['description'])){ $model->description = $map['description']; } - if (isset($map['invocationRole'])) { + if(isset($map['invocationRole'])){ $model->invocationRole = $map['invocationRole']; } - if (isset($map['qualifier'])) { + if(isset($map['qualifier'])){ $model->qualifier = $map['qualifier']; } - if (isset($map['sourceArn'])) { + if(isset($map['sourceArn'])){ $model->sourceArn = $map['sourceArn']; } - if (isset($map['triggerConfig'])) { + if(isset($map['triggerConfig'])){ $model->triggerConfig = $map['triggerConfig']; } - if (isset($map['triggerName'])) { + if(isset($map['triggerName'])){ $model->triggerName = $map['triggerName']; } - if (isset($map['triggerType'])) { + if(isset($map['triggerType'])){ $model->triggerType = $map['triggerType']; } - return $model; } + /** + * @var string + */ + public $description; + + /** + * @var string + */ + public $invocationRole; + + /** + * @var string + */ + public $qualifier; + + /** + * @var string + */ + public $sourceArn; + + /** + * @var string + */ + public $triggerConfig; + + /** + * @var string + */ + public $triggerName; + + /** + * @var string + */ + public $triggerType; + } diff --git a/fc-open-20210406/src/Models/CreateTriggerResponse.php b/fc-open-20210406/src/Models/CreateTriggerResponse.php index a9fed14edd..171a023993 100644 --- a/fc-open-20210406/src/Models/CreateTriggerResponse.php +++ b/fc-open-20210406/src/Models/CreateTriggerResponse.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 CreateTriggerResponse */ - 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 = CreateTriggerResponseBody::fromMap($map['body']); } - return $model; } + /** + * @var string[] + */ + public $headers; + + /** + * @var int + */ + public $statusCode; + + /** + * @var CreateTriggerResponseBody + */ + public $body; + } diff --git a/fc-open-20210406/src/Models/CreateTriggerResponseBody.php b/fc-open-20210406/src/Models/CreateTriggerResponseBody.php index 8b0eb845b7..f964279abf 100644 --- a/fc-open-20210406/src/Models/CreateTriggerResponseBody.php +++ b/fc-open-20210406/src/Models/CreateTriggerResponseBody.php @@ -1,99 +1,28 @@ 'createdTime', - 'description' => 'description', - 'domainName' => 'domainName', - 'invocationRole' => 'invocationRole', + 'createdTime' => 'createdTime', + 'description' => 'description', + 'domainName' => 'domainName', + 'invocationRole' => 'invocationRole', 'lastModifiedTime' => 'lastModifiedTime', - 'qualifier' => 'qualifier', - 'sourceArn' => 'sourceArn', - 'triggerConfig' => 'triggerConfig', - 'triggerId' => 'triggerId', - 'triggerName' => 'triggerName', - 'triggerType' => 'triggerType', - 'urlInternet' => 'urlInternet', - 'urlIntranet' => 'urlIntranet', + 'qualifier' => 'qualifier', + 'sourceArn' => 'sourceArn', + 'triggerConfig' => 'triggerConfig', + 'triggerId' => 'triggerId', + 'triggerName' => 'triggerName', + 'triggerType' => 'triggerType', + 'urlInternet' => 'urlInternet', + 'urlIntranet' => 'urlIntranet', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->createdTime) { $res['createdTime'] = $this->createdTime; @@ -134,58 +63,118 @@ public function toMap() if (null !== $this->urlIntranet) { $res['urlIntranet'] = $this->urlIntranet; } - return $res; } - /** * @param array $map - * * @return CreateTriggerResponseBody */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['createdTime'])) { + if(isset($map['createdTime'])){ $model->createdTime = $map['createdTime']; } - if (isset($map['description'])) { + if(isset($map['description'])){ $model->description = $map['description']; } - if (isset($map['domainName'])) { + if(isset($map['domainName'])){ $model->domainName = $map['domainName']; } - if (isset($map['invocationRole'])) { + if(isset($map['invocationRole'])){ $model->invocationRole = $map['invocationRole']; } - if (isset($map['lastModifiedTime'])) { + if(isset($map['lastModifiedTime'])){ $model->lastModifiedTime = $map['lastModifiedTime']; } - if (isset($map['qualifier'])) { + if(isset($map['qualifier'])){ $model->qualifier = $map['qualifier']; } - if (isset($map['sourceArn'])) { + if(isset($map['sourceArn'])){ $model->sourceArn = $map['sourceArn']; } - if (isset($map['triggerConfig'])) { + if(isset($map['triggerConfig'])){ $model->triggerConfig = $map['triggerConfig']; } - if (isset($map['triggerId'])) { + if(isset($map['triggerId'])){ $model->triggerId = $map['triggerId']; } - if (isset($map['triggerName'])) { + if(isset($map['triggerName'])){ $model->triggerName = $map['triggerName']; } - if (isset($map['triggerType'])) { + if(isset($map['triggerType'])){ $model->triggerType = $map['triggerType']; } - if (isset($map['urlInternet'])) { + if(isset($map['urlInternet'])){ $model->urlInternet = $map['urlInternet']; } - if (isset($map['urlIntranet'])) { + if(isset($map['urlIntranet'])){ $model->urlIntranet = $map['urlIntranet']; } - return $model; } + /** + * @var string + */ + public $createdTime; + + /** + * @var string + */ + public $description; + + /** + * @var string + */ + public $domainName; + + /** + * @var string + */ + public $invocationRole; + + /** + * @var string + */ + public $lastModifiedTime; + + /** + * @var string + */ + public $qualifier; + + /** + * @var string + */ + public $sourceArn; + + /** + * @var string + */ + public $triggerConfig; + + /** + * @var string + */ + public $triggerId; + + /** + * @var string + */ + public $triggerName; + + /** + * @var string + */ + public $triggerType; + + /** + * @var string + */ + public $urlInternet; + + /** + * @var string + */ + public $urlIntranet; + } diff --git a/fc-open-20210406/src/Models/CreateVpcBindingHeaders.php b/fc-open-20210406/src/Models/CreateVpcBindingHeaders.php index 6aa74b9ab0..0538990b62 100644 --- a/fc-open-20210406/src/Models/CreateVpcBindingHeaders.php +++ b/fc-open-20210406/src/Models/CreateVpcBindingHeaders.php @@ -1,41 +1,18 @@ 'X-Fc-Account-Id', - 'xFcDate' => 'X-Fc-Date', - 'xFcTraceId' => 'X-Fc-Trace-Id', + 'xFcDate' => 'X-Fc-Date', + 'xFcTraceId' => 'X-Fc-Trace-Id', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->commonHeaders) { $res['commonHeaders'] = $this->commonHeaders; @@ -49,31 +26,43 @@ public function toMap() if (null !== $this->xFcTraceId) { $res['X-Fc-Trace-Id'] = $this->xFcTraceId; } - return $res; } - /** * @param array $map - * * @return CreateVpcBindingHeaders */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['commonHeaders'])) { + if(isset($map['commonHeaders'])){ $model->commonHeaders = $map['commonHeaders']; } - if (isset($map['X-Fc-Account-Id'])) { + if(isset($map['X-Fc-Account-Id'])){ $model->xFcAccountId = $map['X-Fc-Account-Id']; } - if (isset($map['X-Fc-Date'])) { + if(isset($map['X-Fc-Date'])){ $model->xFcDate = $map['X-Fc-Date']; } - if (isset($map['X-Fc-Trace-Id'])) { + if(isset($map['X-Fc-Trace-Id'])){ $model->xFcTraceId = $map['X-Fc-Trace-Id']; } - return $model; } + public $commonHeaders; + + /** + * @var string + */ + public $xFcAccountId; + + /** + * @var string + */ + public $xFcDate; + + /** + * @var string + */ + public $xFcTraceId; + } diff --git a/fc-open-20210406/src/Models/CreateVpcBindingRequest.php b/fc-open-20210406/src/Models/CreateVpcBindingRequest.php index ab711fa4dd..e9b780269c 100644 --- a/fc-open-20210406/src/Models/CreateVpcBindingRequest.php +++ b/fc-open-20210406/src/Models/CreateVpcBindingRequest.php @@ -1,47 +1,36 @@ 'vpcId', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->vpcId) { $res['vpcId'] = $this->vpcId; } - return $res; } - /** * @param array $map - * * @return CreateVpcBindingRequest */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['vpcId'])) { + if(isset($map['vpcId'])){ $model->vpcId = $map['vpcId']; } - return $model; } + /** + * @var string + */ + public $vpcId; + } diff --git a/fc-open-20210406/src/Models/CreateVpcBindingResponse.php b/fc-open-20210406/src/Models/CreateVpcBindingResponse.php index 327fce37b7..49952fdd57 100644 --- a/fc-open-20210406/src/Models/CreateVpcBindingResponse.php +++ b/fc-open-20210406/src/Models/CreateVpcBindingResponse.php @@ -1,35 +1,20 @@ 'headers', + 'headers' => 'headers', 'statusCode' => 'statusCode', ]; - - public function validate() - { + public function validate() { Model::validateRequired('headers', $this->headers, true); Model::validateRequired('statusCode', $this->statusCode, true); } - - public function toMap() - { + public function toMap() { $res = []; if (null !== $this->headers) { $res['headers'] = $this->headers; @@ -37,25 +22,30 @@ public function toMap() if (null !== $this->statusCode) { $res['statusCode'] = $this->statusCode; } - return $res; } - /** * @param array $map - * * @return CreateVpcBindingResponse */ - 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']; } - return $model; } + /** + * @var string[] + */ + public $headers; + + /** + * @var int + */ + public $statusCode; + } diff --git a/fc-open-20210406/src/Models/CustomContainerConfig.php b/fc-open-20210406/src/Models/CustomContainerConfig.php index 7dc6736a6d..3298184776 100644 --- a/fc-open-20210406/src/Models/CustomContainerConfig.php +++ b/fc-open-20210406/src/Models/CustomContainerConfig.php @@ -1,51 +1,20 @@ 'accelerationType', - 'args' => 'args', - 'command' => 'command', - 'image' => 'image', - 'instanceID' => 'instanceID', + 'args' => 'args', + 'command' => 'command', + 'image' => 'image', + 'instanceID' => 'instanceID', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->accelerationType) { $res['accelerationType'] = $this->accelerationType; @@ -62,34 +31,54 @@ public function toMap() if (null !== $this->instanceID) { $res['instanceID'] = $this->instanceID; } - return $res; } - /** * @param array $map - * * @return CustomContainerConfig */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['accelerationType'])) { + if(isset($map['accelerationType'])){ $model->accelerationType = $map['accelerationType']; } - if (isset($map['args'])) { + if(isset($map['args'])){ $model->args = $map['args']; } - if (isset($map['command'])) { + if(isset($map['command'])){ $model->command = $map['command']; } - if (isset($map['image'])) { + if(isset($map['image'])){ $model->image = $map['image']; } - if (isset($map['instanceID'])) { + if(isset($map['instanceID'])){ $model->instanceID = $map['instanceID']; } - return $model; } + /** + * @var string + */ + public $accelerationType; + + /** + * @var string + */ + public $args; + + /** + * @var string + */ + public $command; + + /** + * @var string + */ + public $image; + + /** + * @var string + */ + public $instanceID; + } diff --git a/fc-open-20210406/src/Models/CustomContainerConfigInfo.php b/fc-open-20210406/src/Models/CustomContainerConfigInfo.php index b6e2c9c630..4a65e9975b 100644 --- a/fc-open-20210406/src/Models/CustomContainerConfigInfo.php +++ b/fc-open-20210406/src/Models/CustomContainerConfigInfo.php @@ -1,57 +1,23 @@ 'accelerationInfo', 'accelerationType' => 'accelerationType', - 'args' => 'args', - 'command' => 'command', - 'image' => 'image', - 'instanceID' => 'instanceID', + 'args' => 'args', + 'command' => 'command', + 'image' => 'image', + 'instanceID' => 'instanceID', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->accelerationInfo) { $res['accelerationInfo'] = null !== $this->accelerationInfo ? $this->accelerationInfo->toMap() : null; @@ -71,37 +37,62 @@ public function toMap() if (null !== $this->instanceID) { $res['instanceID'] = $this->instanceID; } - return $res; } - /** * @param array $map - * * @return CustomContainerConfigInfo */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['accelerationInfo'])) { + if(isset($map['accelerationInfo'])){ $model->accelerationInfo = AccelerationInfo::fromMap($map['accelerationInfo']); } - if (isset($map['accelerationType'])) { + if(isset($map['accelerationType'])){ $model->accelerationType = $map['accelerationType']; } - if (isset($map['args'])) { + if(isset($map['args'])){ $model->args = $map['args']; } - if (isset($map['command'])) { + if(isset($map['command'])){ $model->command = $map['command']; } - if (isset($map['image'])) { + if(isset($map['image'])){ $model->image = $map['image']; } - if (isset($map['instanceID'])) { + if(isset($map['instanceID'])){ $model->instanceID = $map['instanceID']; } - return $model; } + /** + * @var AccelerationInfo + */ + public $accelerationInfo; + + /** + * @var string + */ + public $accelerationType; + + /** + * @var string + */ + public $args; + + /** + * @var string + */ + public $command; + + /** + * @var string + */ + public $image; + + /** + * @var string + */ + public $instanceID; + } diff --git a/fc-open-20210406/src/Models/CustomDNS.php b/fc-open-20210406/src/Models/CustomDNS.php index 16b538af02..12718dbdbd 100644 --- a/fc-open-20210406/src/Models/CustomDNS.php +++ b/fc-open-20210406/src/Models/CustomDNS.php @@ -1,45 +1,26 @@ 'dnsOptions', + 'dnsOptions' => 'dnsOptions', 'nameServers' => 'nameServers', - 'searches' => 'searches', + 'searches' => 'searches', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->dnsOptions) { $res['dnsOptions'] = []; - if (null !== $this->dnsOptions && \is_array($this->dnsOptions)) { + if(null !== $this->dnsOptions && is_array($this->dnsOptions)){ $n = 0; - foreach ($this->dnsOptions as $item) { + foreach($this->dnsOptions as $item){ $res['dnsOptions'][$n++] = null !== $item ? $item->toMap() : $item; } } @@ -50,38 +31,48 @@ public function toMap() if (null !== $this->searches) { $res['searches'] = $this->searches; } - return $res; } - /** * @param array $map - * * @return CustomDNS */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['dnsOptions'])) { - if (!empty($map['dnsOptions'])) { + if(isset($map['dnsOptions'])){ + if(!empty($map['dnsOptions'])){ $model->dnsOptions = []; - $n = 0; - foreach ($map['dnsOptions'] as $item) { + $n = 0; + foreach($map['dnsOptions'] as $item) { $model->dnsOptions[$n++] = null !== $item ? DNSOption::fromMap($item) : $item; } } } - if (isset($map['nameServers'])) { - if (!empty($map['nameServers'])) { + if(isset($map['nameServers'])){ + if(!empty($map['nameServers'])){ $model->nameServers = $map['nameServers']; } } - if (isset($map['searches'])) { - if (!empty($map['searches'])) { + if(isset($map['searches'])){ + if(!empty($map['searches'])){ $model->searches = $map['searches']; } } - return $model; } + /** + * @var DNSOption[] + */ + public $dnsOptions; + + /** + * @var string[] + */ + public $nameServers; + + /** + * @var string[] + */ + public $searches; + } diff --git a/fc-open-20210406/src/Models/CustomRuntimeConfig.php b/fc-open-20210406/src/Models/CustomRuntimeConfig.php index f521a492d0..4f2aa0fa74 100644 --- a/fc-open-20210406/src/Models/CustomRuntimeConfig.php +++ b/fc-open-20210406/src/Models/CustomRuntimeConfig.php @@ -1,33 +1,17 @@ 'args', + 'args' => 'args', 'command' => 'command', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->args) { $res['args'] = $this->args; @@ -35,29 +19,34 @@ public function toMap() if (null !== $this->command) { $res['command'] = $this->command; } - return $res; } - /** * @param array $map - * * @return CustomRuntimeConfig */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['args'])) { - if (!empty($map['args'])) { + if(isset($map['args'])){ + if(!empty($map['args'])){ $model->args = $map['args']; } } - if (isset($map['command'])) { - if (!empty($map['command'])) { + if(isset($map['command'])){ + if(!empty($map['command'])){ $model->command = $map['command']; } } - return $model; } + /** + * @var string[] + */ + public $args; + + /** + * @var string[] + */ + public $command; + } diff --git a/fc-open-20210406/src/Models/DNSOption.php b/fc-open-20210406/src/Models/DNSOption.php index 6934f97243..5c876680a7 100644 --- a/fc-open-20210406/src/Models/DNSOption.php +++ b/fc-open-20210406/src/Models/DNSOption.php @@ -1,33 +1,17 @@ 'name', + 'name' => 'name', 'value' => 'value', ]; - - 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->value) { $res['value'] = $this->value; } - return $res; } - /** * @param array $map - * * @return DNSOption */ - 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['value'])) { + if(isset($map['value'])){ $model->value = $map['value']; } - return $model; } + /** + * @var string + */ + public $name; + + /** + * @var string + */ + public $value; + } diff --git a/fc-open-20210406/src/Models/DeleteAliasHeaders.php b/fc-open-20210406/src/Models/DeleteAliasHeaders.php index 455de01e85..6e83a65255 100644 --- a/fc-open-20210406/src/Models/DeleteAliasHeaders.php +++ b/fc-open-20210406/src/Models/DeleteAliasHeaders.php @@ -1,47 +1,19 @@ 'If-Match', + 'ifMatch' => 'If-Match', 'xFcAccountId' => 'X-Fc-Account-Id', - 'xFcDate' => 'X-Fc-Date', - 'xFcTraceId' => 'X-Fc-Trace-Id', + 'xFcDate' => 'X-Fc-Date', + 'xFcTraceId' => 'X-Fc-Trace-Id', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->commonHeaders) { $res['commonHeaders'] = $this->commonHeaders; @@ -58,34 +30,51 @@ public function toMap() if (null !== $this->xFcTraceId) { $res['X-Fc-Trace-Id'] = $this->xFcTraceId; } - return $res; } - /** * @param array $map - * * @return DeleteAliasHeaders */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['commonHeaders'])) { + if(isset($map['commonHeaders'])){ $model->commonHeaders = $map['commonHeaders']; } - if (isset($map['If-Match'])) { + if(isset($map['If-Match'])){ $model->ifMatch = $map['If-Match']; } - if (isset($map['X-Fc-Account-Id'])) { + if(isset($map['X-Fc-Account-Id'])){ $model->xFcAccountId = $map['X-Fc-Account-Id']; } - if (isset($map['X-Fc-Date'])) { + if(isset($map['X-Fc-Date'])){ $model->xFcDate = $map['X-Fc-Date']; } - if (isset($map['X-Fc-Trace-Id'])) { + if(isset($map['X-Fc-Trace-Id'])){ $model->xFcTraceId = $map['X-Fc-Trace-Id']; } - return $model; } + public $commonHeaders; + + /** + * @var string + */ + public $ifMatch; + + /** + * @var string + */ + public $xFcAccountId; + + /** + * @var string + */ + public $xFcDate; + + /** + * @var string + */ + public $xFcTraceId; + } diff --git a/fc-open-20210406/src/Models/DeleteAliasResponse.php b/fc-open-20210406/src/Models/DeleteAliasResponse.php index e29e2512e9..ec8083a9c5 100644 --- a/fc-open-20210406/src/Models/DeleteAliasResponse.php +++ b/fc-open-20210406/src/Models/DeleteAliasResponse.php @@ -1,35 +1,20 @@ 'headers', + 'headers' => 'headers', 'statusCode' => 'statusCode', ]; - - public function validate() - { + public function validate() { Model::validateRequired('headers', $this->headers, true); Model::validateRequired('statusCode', $this->statusCode, true); } - - public function toMap() - { + public function toMap() { $res = []; if (null !== $this->headers) { $res['headers'] = $this->headers; @@ -37,25 +22,30 @@ public function toMap() if (null !== $this->statusCode) { $res['statusCode'] = $this->statusCode; } - return $res; } - /** * @param array $map - * * @return DeleteAliasResponse */ - 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']; } - return $model; } + /** + * @var string[] + */ + public $headers; + + /** + * @var int + */ + public $statusCode; + } diff --git a/fc-open-20210406/src/Models/DeleteCustomDomainHeaders.php b/fc-open-20210406/src/Models/DeleteCustomDomainHeaders.php index 110cc6eb33..7e7ea453db 100644 --- a/fc-open-20210406/src/Models/DeleteCustomDomainHeaders.php +++ b/fc-open-20210406/src/Models/DeleteCustomDomainHeaders.php @@ -1,41 +1,18 @@ 'X-Fc-Account-Id', - 'xFcDate' => 'X-Fc-Date', - 'xFcTraceId' => 'X-Fc-Trace-Id', + 'xFcDate' => 'X-Fc-Date', + 'xFcTraceId' => 'X-Fc-Trace-Id', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->commonHeaders) { $res['commonHeaders'] = $this->commonHeaders; @@ -49,31 +26,43 @@ public function toMap() if (null !== $this->xFcTraceId) { $res['X-Fc-Trace-Id'] = $this->xFcTraceId; } - return $res; } - /** * @param array $map - * * @return DeleteCustomDomainHeaders */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['commonHeaders'])) { + if(isset($map['commonHeaders'])){ $model->commonHeaders = $map['commonHeaders']; } - if (isset($map['X-Fc-Account-Id'])) { + if(isset($map['X-Fc-Account-Id'])){ $model->xFcAccountId = $map['X-Fc-Account-Id']; } - if (isset($map['X-Fc-Date'])) { + if(isset($map['X-Fc-Date'])){ $model->xFcDate = $map['X-Fc-Date']; } - if (isset($map['X-Fc-Trace-Id'])) { + if(isset($map['X-Fc-Trace-Id'])){ $model->xFcTraceId = $map['X-Fc-Trace-Id']; } - return $model; } + public $commonHeaders; + + /** + * @var string + */ + public $xFcAccountId; + + /** + * @var string + */ + public $xFcDate; + + /** + * @var string + */ + public $xFcTraceId; + } diff --git a/fc-open-20210406/src/Models/DeleteCustomDomainResponse.php b/fc-open-20210406/src/Models/DeleteCustomDomainResponse.php index 10e988bc50..7cd4d439e5 100644 --- a/fc-open-20210406/src/Models/DeleteCustomDomainResponse.php +++ b/fc-open-20210406/src/Models/DeleteCustomDomainResponse.php @@ -1,35 +1,20 @@ 'headers', + 'headers' => 'headers', 'statusCode' => 'statusCode', ]; - - public function validate() - { + public function validate() { Model::validateRequired('headers', $this->headers, true); Model::validateRequired('statusCode', $this->statusCode, true); } - - public function toMap() - { + public function toMap() { $res = []; if (null !== $this->headers) { $res['headers'] = $this->headers; @@ -37,25 +22,30 @@ public function toMap() if (null !== $this->statusCode) { $res['statusCode'] = $this->statusCode; } - return $res; } - /** * @param array $map - * * @return DeleteCustomDomainResponse */ - 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']; } - return $model; } + /** + * @var string[] + */ + public $headers; + + /** + * @var int + */ + public $statusCode; + } diff --git a/fc-open-20210406/src/Models/DeleteFunctionAsyncInvokeConfigHeaders.php b/fc-open-20210406/src/Models/DeleteFunctionAsyncInvokeConfigHeaders.php index c83177471f..9b40126d31 100644 --- a/fc-open-20210406/src/Models/DeleteFunctionAsyncInvokeConfigHeaders.php +++ b/fc-open-20210406/src/Models/DeleteFunctionAsyncInvokeConfigHeaders.php @@ -1,41 +1,18 @@ 'X-Fc-Account-Id', - 'xFcDate' => 'X-Fc-Date', - 'xFcTraceId' => 'X-Fc-Trace-Id', + 'xFcDate' => 'X-Fc-Date', + 'xFcTraceId' => 'X-Fc-Trace-Id', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->commonHeaders) { $res['commonHeaders'] = $this->commonHeaders; @@ -49,31 +26,43 @@ public function toMap() if (null !== $this->xFcTraceId) { $res['X-Fc-Trace-Id'] = $this->xFcTraceId; } - return $res; } - /** * @param array $map - * * @return DeleteFunctionAsyncInvokeConfigHeaders */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['commonHeaders'])) { + if(isset($map['commonHeaders'])){ $model->commonHeaders = $map['commonHeaders']; } - if (isset($map['X-Fc-Account-Id'])) { + if(isset($map['X-Fc-Account-Id'])){ $model->xFcAccountId = $map['X-Fc-Account-Id']; } - if (isset($map['X-Fc-Date'])) { + if(isset($map['X-Fc-Date'])){ $model->xFcDate = $map['X-Fc-Date']; } - if (isset($map['X-Fc-Trace-Id'])) { + if(isset($map['X-Fc-Trace-Id'])){ $model->xFcTraceId = $map['X-Fc-Trace-Id']; } - return $model; } + public $commonHeaders; + + /** + * @var string + */ + public $xFcAccountId; + + /** + * @var string + */ + public $xFcDate; + + /** + * @var string + */ + public $xFcTraceId; + } diff --git a/fc-open-20210406/src/Models/DeleteFunctionAsyncInvokeConfigRequest.php b/fc-open-20210406/src/Models/DeleteFunctionAsyncInvokeConfigRequest.php index 07bf54d6bb..406a143294 100644 --- a/fc-open-20210406/src/Models/DeleteFunctionAsyncInvokeConfigRequest.php +++ b/fc-open-20210406/src/Models/DeleteFunctionAsyncInvokeConfigRequest.php @@ -1,47 +1,36 @@ 'qualifier', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->qualifier) { $res['qualifier'] = $this->qualifier; } - return $res; } - /** * @param array $map - * * @return DeleteFunctionAsyncInvokeConfigRequest */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['qualifier'])) { + if(isset($map['qualifier'])){ $model->qualifier = $map['qualifier']; } - return $model; } + /** + * @var string + */ + public $qualifier; + } diff --git a/fc-open-20210406/src/Models/DeleteFunctionAsyncInvokeConfigResponse.php b/fc-open-20210406/src/Models/DeleteFunctionAsyncInvokeConfigResponse.php index b6318d4ce4..ae0cbe9137 100644 --- a/fc-open-20210406/src/Models/DeleteFunctionAsyncInvokeConfigResponse.php +++ b/fc-open-20210406/src/Models/DeleteFunctionAsyncInvokeConfigResponse.php @@ -1,35 +1,20 @@ 'headers', + 'headers' => 'headers', 'statusCode' => 'statusCode', ]; - - public function validate() - { + public function validate() { Model::validateRequired('headers', $this->headers, true); Model::validateRequired('statusCode', $this->statusCode, true); } - - public function toMap() - { + public function toMap() { $res = []; if (null !== $this->headers) { $res['headers'] = $this->headers; @@ -37,25 +22,30 @@ public function toMap() if (null !== $this->statusCode) { $res['statusCode'] = $this->statusCode; } - return $res; } - /** * @param array $map - * * @return DeleteFunctionAsyncInvokeConfigResponse */ - 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']; } - return $model; } + /** + * @var string[] + */ + public $headers; + + /** + * @var int + */ + public $statusCode; + } diff --git a/fc-open-20210406/src/Models/DeleteFunctionHeaders.php b/fc-open-20210406/src/Models/DeleteFunctionHeaders.php index aa33c15ea3..d4557d2f04 100644 --- a/fc-open-20210406/src/Models/DeleteFunctionHeaders.php +++ b/fc-open-20210406/src/Models/DeleteFunctionHeaders.php @@ -1,47 +1,19 @@ 'If-Match', + 'ifMatch' => 'If-Match', 'xFcAccountId' => 'X-Fc-Account-Id', - 'xFcDate' => 'X-Fc-Date', - 'xFcTraceId' => 'X-Fc-Trace-Id', + 'xFcDate' => 'X-Fc-Date', + 'xFcTraceId' => 'X-Fc-Trace-Id', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->commonHeaders) { $res['commonHeaders'] = $this->commonHeaders; @@ -58,34 +30,51 @@ public function toMap() if (null !== $this->xFcTraceId) { $res['X-Fc-Trace-Id'] = $this->xFcTraceId; } - return $res; } - /** * @param array $map - * * @return DeleteFunctionHeaders */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['commonHeaders'])) { + if(isset($map['commonHeaders'])){ $model->commonHeaders = $map['commonHeaders']; } - if (isset($map['If-Match'])) { + if(isset($map['If-Match'])){ $model->ifMatch = $map['If-Match']; } - if (isset($map['X-Fc-Account-Id'])) { + if(isset($map['X-Fc-Account-Id'])){ $model->xFcAccountId = $map['X-Fc-Account-Id']; } - if (isset($map['X-Fc-Date'])) { + if(isset($map['X-Fc-Date'])){ $model->xFcDate = $map['X-Fc-Date']; } - if (isset($map['X-Fc-Trace-Id'])) { + if(isset($map['X-Fc-Trace-Id'])){ $model->xFcTraceId = $map['X-Fc-Trace-Id']; } - return $model; } + public $commonHeaders; + + /** + * @var string + */ + public $ifMatch; + + /** + * @var string + */ + public $xFcAccountId; + + /** + * @var string + */ + public $xFcDate; + + /** + * @var string + */ + public $xFcTraceId; + } diff --git a/fc-open-20210406/src/Models/DeleteFunctionOnDemandConfigHeaders.php b/fc-open-20210406/src/Models/DeleteFunctionOnDemandConfigHeaders.php index 2ae437ea7e..ada80cf517 100644 --- a/fc-open-20210406/src/Models/DeleteFunctionOnDemandConfigHeaders.php +++ b/fc-open-20210406/src/Models/DeleteFunctionOnDemandConfigHeaders.php @@ -1,47 +1,19 @@ 'If-Match', + 'ifMatch' => 'If-Match', 'xFcAccountId' => 'X-Fc-Account-Id', - 'xFcDate' => 'X-Fc-Date', - 'xFcTraceId' => 'X-Fc-Trace-Id', + 'xFcDate' => 'X-Fc-Date', + 'xFcTraceId' => 'X-Fc-Trace-Id', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->commonHeaders) { $res['commonHeaders'] = $this->commonHeaders; @@ -58,34 +30,51 @@ public function toMap() if (null !== $this->xFcTraceId) { $res['X-Fc-Trace-Id'] = $this->xFcTraceId; } - return $res; } - /** * @param array $map - * * @return DeleteFunctionOnDemandConfigHeaders */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['commonHeaders'])) { + if(isset($map['commonHeaders'])){ $model->commonHeaders = $map['commonHeaders']; } - if (isset($map['If-Match'])) { + if(isset($map['If-Match'])){ $model->ifMatch = $map['If-Match']; } - if (isset($map['X-Fc-Account-Id'])) { + if(isset($map['X-Fc-Account-Id'])){ $model->xFcAccountId = $map['X-Fc-Account-Id']; } - if (isset($map['X-Fc-Date'])) { + if(isset($map['X-Fc-Date'])){ $model->xFcDate = $map['X-Fc-Date']; } - if (isset($map['X-Fc-Trace-Id'])) { + if(isset($map['X-Fc-Trace-Id'])){ $model->xFcTraceId = $map['X-Fc-Trace-Id']; } - return $model; } + public $commonHeaders; + + /** + * @var string + */ + public $ifMatch; + + /** + * @var string + */ + public $xFcAccountId; + + /** + * @var string + */ + public $xFcDate; + + /** + * @var string + */ + public $xFcTraceId; + } diff --git a/fc-open-20210406/src/Models/DeleteFunctionOnDemandConfigRequest.php b/fc-open-20210406/src/Models/DeleteFunctionOnDemandConfigRequest.php index b204a44cce..7f43b5a1a5 100644 --- a/fc-open-20210406/src/Models/DeleteFunctionOnDemandConfigRequest.php +++ b/fc-open-20210406/src/Models/DeleteFunctionOnDemandConfigRequest.php @@ -1,47 +1,36 @@ 'qualifier', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->qualifier) { $res['qualifier'] = $this->qualifier; } - return $res; } - /** * @param array $map - * * @return DeleteFunctionOnDemandConfigRequest */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['qualifier'])) { + if(isset($map['qualifier'])){ $model->qualifier = $map['qualifier']; } - return $model; } + /** + * @var string + */ + public $qualifier; + } diff --git a/fc-open-20210406/src/Models/DeleteFunctionOnDemandConfigResponse.php b/fc-open-20210406/src/Models/DeleteFunctionOnDemandConfigResponse.php index c7fa8d2baa..8aee08fdc1 100644 --- a/fc-open-20210406/src/Models/DeleteFunctionOnDemandConfigResponse.php +++ b/fc-open-20210406/src/Models/DeleteFunctionOnDemandConfigResponse.php @@ -1,35 +1,20 @@ 'headers', + 'headers' => 'headers', 'statusCode' => 'statusCode', ]; - - public function validate() - { + public function validate() { Model::validateRequired('headers', $this->headers, true); Model::validateRequired('statusCode', $this->statusCode, true); } - - public function toMap() - { + public function toMap() { $res = []; if (null !== $this->headers) { $res['headers'] = $this->headers; @@ -37,25 +22,30 @@ public function toMap() if (null !== $this->statusCode) { $res['statusCode'] = $this->statusCode; } - return $res; } - /** * @param array $map - * * @return DeleteFunctionOnDemandConfigResponse */ - 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']; } - return $model; } + /** + * @var string[] + */ + public $headers; + + /** + * @var int + */ + public $statusCode; + } diff --git a/fc-open-20210406/src/Models/DeleteFunctionResponse.php b/fc-open-20210406/src/Models/DeleteFunctionResponse.php index 12b015d174..80f7e3effb 100644 --- a/fc-open-20210406/src/Models/DeleteFunctionResponse.php +++ b/fc-open-20210406/src/Models/DeleteFunctionResponse.php @@ -1,35 +1,20 @@ 'headers', + 'headers' => 'headers', 'statusCode' => 'statusCode', ]; - - public function validate() - { + public function validate() { Model::validateRequired('headers', $this->headers, true); Model::validateRequired('statusCode', $this->statusCode, true); } - - public function toMap() - { + public function toMap() { $res = []; if (null !== $this->headers) { $res['headers'] = $this->headers; @@ -37,25 +22,30 @@ public function toMap() if (null !== $this->statusCode) { $res['statusCode'] = $this->statusCode; } - return $res; } - /** * @param array $map - * * @return DeleteFunctionResponse */ - 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']; } - return $model; } + /** + * @var string[] + */ + public $headers; + + /** + * @var int + */ + public $statusCode; + } diff --git a/fc-open-20210406/src/Models/DeleteLayerVersionHeaders.php b/fc-open-20210406/src/Models/DeleteLayerVersionHeaders.php index f2b69a0b2e..8102201ae3 100644 --- a/fc-open-20210406/src/Models/DeleteLayerVersionHeaders.php +++ b/fc-open-20210406/src/Models/DeleteLayerVersionHeaders.php @@ -1,41 +1,18 @@ 'X-Fc-Account-Id', - 'xFcDate' => 'X-Fc-Date', - 'xFcTraceId' => 'X-Fc-Trace-Id', + 'xFcDate' => 'X-Fc-Date', + 'xFcTraceId' => 'X-Fc-Trace-Id', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->commonHeaders) { $res['commonHeaders'] = $this->commonHeaders; @@ -49,31 +26,43 @@ public function toMap() if (null !== $this->xFcTraceId) { $res['X-Fc-Trace-Id'] = $this->xFcTraceId; } - return $res; } - /** * @param array $map - * * @return DeleteLayerVersionHeaders */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['commonHeaders'])) { + if(isset($map['commonHeaders'])){ $model->commonHeaders = $map['commonHeaders']; } - if (isset($map['X-Fc-Account-Id'])) { + if(isset($map['X-Fc-Account-Id'])){ $model->xFcAccountId = $map['X-Fc-Account-Id']; } - if (isset($map['X-Fc-Date'])) { + if(isset($map['X-Fc-Date'])){ $model->xFcDate = $map['X-Fc-Date']; } - if (isset($map['X-Fc-Trace-Id'])) { + if(isset($map['X-Fc-Trace-Id'])){ $model->xFcTraceId = $map['X-Fc-Trace-Id']; } - return $model; } + public $commonHeaders; + + /** + * @var string + */ + public $xFcAccountId; + + /** + * @var string + */ + public $xFcDate; + + /** + * @var string + */ + public $xFcTraceId; + } diff --git a/fc-open-20210406/src/Models/DeleteLayerVersionResponse.php b/fc-open-20210406/src/Models/DeleteLayerVersionResponse.php index 72448de860..b6bc918f5f 100644 --- a/fc-open-20210406/src/Models/DeleteLayerVersionResponse.php +++ b/fc-open-20210406/src/Models/DeleteLayerVersionResponse.php @@ -1,35 +1,20 @@ 'headers', + 'headers' => 'headers', 'statusCode' => 'statusCode', ]; - - public function validate() - { + public function validate() { Model::validateRequired('headers', $this->headers, true); Model::validateRequired('statusCode', $this->statusCode, true); } - - public function toMap() - { + public function toMap() { $res = []; if (null !== $this->headers) { $res['headers'] = $this->headers; @@ -37,25 +22,30 @@ public function toMap() if (null !== $this->statusCode) { $res['statusCode'] = $this->statusCode; } - return $res; } - /** * @param array $map - * * @return DeleteLayerVersionResponse */ - 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']; } - return $model; } + /** + * @var string[] + */ + public $headers; + + /** + * @var int + */ + public $statusCode; + } diff --git a/fc-open-20210406/src/Models/DeleteServiceHeaders.php b/fc-open-20210406/src/Models/DeleteServiceHeaders.php index 4cb585b638..d559ad2ebf 100644 --- a/fc-open-20210406/src/Models/DeleteServiceHeaders.php +++ b/fc-open-20210406/src/Models/DeleteServiceHeaders.php @@ -1,47 +1,19 @@ 'If-Match', + 'ifMatch' => 'If-Match', 'xFcAccountId' => 'X-Fc-Account-Id', - 'xFcDate' => 'X-Fc-Date', - 'xFcTraceId' => 'X-Fc-Trace-Id', + 'xFcDate' => 'X-Fc-Date', + 'xFcTraceId' => 'X-Fc-Trace-Id', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->commonHeaders) { $res['commonHeaders'] = $this->commonHeaders; @@ -58,34 +30,51 @@ public function toMap() if (null !== $this->xFcTraceId) { $res['X-Fc-Trace-Id'] = $this->xFcTraceId; } - return $res; } - /** * @param array $map - * * @return DeleteServiceHeaders */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['commonHeaders'])) { + if(isset($map['commonHeaders'])){ $model->commonHeaders = $map['commonHeaders']; } - if (isset($map['If-Match'])) { + if(isset($map['If-Match'])){ $model->ifMatch = $map['If-Match']; } - if (isset($map['X-Fc-Account-Id'])) { + if(isset($map['X-Fc-Account-Id'])){ $model->xFcAccountId = $map['X-Fc-Account-Id']; } - if (isset($map['X-Fc-Date'])) { + if(isset($map['X-Fc-Date'])){ $model->xFcDate = $map['X-Fc-Date']; } - if (isset($map['X-Fc-Trace-Id'])) { + if(isset($map['X-Fc-Trace-Id'])){ $model->xFcTraceId = $map['X-Fc-Trace-Id']; } - return $model; } + public $commonHeaders; + + /** + * @var string + */ + public $ifMatch; + + /** + * @var string + */ + public $xFcAccountId; + + /** + * @var string + */ + public $xFcDate; + + /** + * @var string + */ + public $xFcTraceId; + } diff --git a/fc-open-20210406/src/Models/DeleteServiceResponse.php b/fc-open-20210406/src/Models/DeleteServiceResponse.php index a45a4a0052..fbf43fe9f9 100644 --- a/fc-open-20210406/src/Models/DeleteServiceResponse.php +++ b/fc-open-20210406/src/Models/DeleteServiceResponse.php @@ -1,35 +1,20 @@ 'headers', + 'headers' => 'headers', 'statusCode' => 'statusCode', ]; - - public function validate() - { + public function validate() { Model::validateRequired('headers', $this->headers, true); Model::validateRequired('statusCode', $this->statusCode, true); } - - public function toMap() - { + public function toMap() { $res = []; if (null !== $this->headers) { $res['headers'] = $this->headers; @@ -37,25 +22,30 @@ public function toMap() if (null !== $this->statusCode) { $res['statusCode'] = $this->statusCode; } - return $res; } - /** * @param array $map - * * @return DeleteServiceResponse */ - 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']; } - return $model; } + /** + * @var string[] + */ + public $headers; + + /** + * @var int + */ + public $statusCode; + } diff --git a/fc-open-20210406/src/Models/DeleteServiceVersionHeaders.php b/fc-open-20210406/src/Models/DeleteServiceVersionHeaders.php index 6b639dab48..2975bf9480 100644 --- a/fc-open-20210406/src/Models/DeleteServiceVersionHeaders.php +++ b/fc-open-20210406/src/Models/DeleteServiceVersionHeaders.php @@ -1,41 +1,18 @@ 'X-Fc-Account-Id', - 'xFcDate' => 'X-Fc-Date', - 'xFcTraceId' => 'X-Fc-Trace-Id', + 'xFcDate' => 'X-Fc-Date', + 'xFcTraceId' => 'X-Fc-Trace-Id', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->commonHeaders) { $res['commonHeaders'] = $this->commonHeaders; @@ -49,31 +26,43 @@ public function toMap() if (null !== $this->xFcTraceId) { $res['X-Fc-Trace-Id'] = $this->xFcTraceId; } - return $res; } - /** * @param array $map - * * @return DeleteServiceVersionHeaders */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['commonHeaders'])) { + if(isset($map['commonHeaders'])){ $model->commonHeaders = $map['commonHeaders']; } - if (isset($map['X-Fc-Account-Id'])) { + if(isset($map['X-Fc-Account-Id'])){ $model->xFcAccountId = $map['X-Fc-Account-Id']; } - if (isset($map['X-Fc-Date'])) { + if(isset($map['X-Fc-Date'])){ $model->xFcDate = $map['X-Fc-Date']; } - if (isset($map['X-Fc-Trace-Id'])) { + if(isset($map['X-Fc-Trace-Id'])){ $model->xFcTraceId = $map['X-Fc-Trace-Id']; } - return $model; } + public $commonHeaders; + + /** + * @var string + */ + public $xFcAccountId; + + /** + * @var string + */ + public $xFcDate; + + /** + * @var string + */ + public $xFcTraceId; + } diff --git a/fc-open-20210406/src/Models/DeleteServiceVersionResponse.php b/fc-open-20210406/src/Models/DeleteServiceVersionResponse.php index 895801b361..451d34566d 100644 --- a/fc-open-20210406/src/Models/DeleteServiceVersionResponse.php +++ b/fc-open-20210406/src/Models/DeleteServiceVersionResponse.php @@ -1,35 +1,20 @@ 'headers', + 'headers' => 'headers', 'statusCode' => 'statusCode', ]; - - public function validate() - { + public function validate() { Model::validateRequired('headers', $this->headers, true); Model::validateRequired('statusCode', $this->statusCode, true); } - - public function toMap() - { + public function toMap() { $res = []; if (null !== $this->headers) { $res['headers'] = $this->headers; @@ -37,25 +22,30 @@ public function toMap() if (null !== $this->statusCode) { $res['statusCode'] = $this->statusCode; } - return $res; } - /** * @param array $map - * * @return DeleteServiceVersionResponse */ - 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']; } - return $model; } + /** + * @var string[] + */ + public $headers; + + /** + * @var int + */ + public $statusCode; + } diff --git a/fc-open-20210406/src/Models/DeleteTriggerHeaders.php b/fc-open-20210406/src/Models/DeleteTriggerHeaders.php index d5dcb783c5..0b6deb2058 100644 --- a/fc-open-20210406/src/Models/DeleteTriggerHeaders.php +++ b/fc-open-20210406/src/Models/DeleteTriggerHeaders.php @@ -1,47 +1,19 @@ 'If-Match', + 'ifMatch' => 'If-Match', 'xFcAccountId' => 'X-Fc-Account-Id', - 'xFcDate' => 'X-Fc-Date', - 'xFcTraceId' => 'X-Fc-Trace-Id', + 'xFcDate' => 'X-Fc-Date', + 'xFcTraceId' => 'X-Fc-Trace-Id', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->commonHeaders) { $res['commonHeaders'] = $this->commonHeaders; @@ -58,34 +30,51 @@ public function toMap() if (null !== $this->xFcTraceId) { $res['X-Fc-Trace-Id'] = $this->xFcTraceId; } - return $res; } - /** * @param array $map - * * @return DeleteTriggerHeaders */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['commonHeaders'])) { + if(isset($map['commonHeaders'])){ $model->commonHeaders = $map['commonHeaders']; } - if (isset($map['If-Match'])) { + if(isset($map['If-Match'])){ $model->ifMatch = $map['If-Match']; } - if (isset($map['X-Fc-Account-Id'])) { + if(isset($map['X-Fc-Account-Id'])){ $model->xFcAccountId = $map['X-Fc-Account-Id']; } - if (isset($map['X-Fc-Date'])) { + if(isset($map['X-Fc-Date'])){ $model->xFcDate = $map['X-Fc-Date']; } - if (isset($map['X-Fc-Trace-Id'])) { + if(isset($map['X-Fc-Trace-Id'])){ $model->xFcTraceId = $map['X-Fc-Trace-Id']; } - return $model; } + public $commonHeaders; + + /** + * @var string + */ + public $ifMatch; + + /** + * @var string + */ + public $xFcAccountId; + + /** + * @var string + */ + public $xFcDate; + + /** + * @var string + */ + public $xFcTraceId; + } diff --git a/fc-open-20210406/src/Models/DeleteTriggerResponse.php b/fc-open-20210406/src/Models/DeleteTriggerResponse.php index 0c2df86d33..670fa4c609 100644 --- a/fc-open-20210406/src/Models/DeleteTriggerResponse.php +++ b/fc-open-20210406/src/Models/DeleteTriggerResponse.php @@ -1,35 +1,20 @@ 'headers', + 'headers' => 'headers', 'statusCode' => 'statusCode', ]; - - public function validate() - { + public function validate() { Model::validateRequired('headers', $this->headers, true); Model::validateRequired('statusCode', $this->statusCode, true); } - - public function toMap() - { + public function toMap() { $res = []; if (null !== $this->headers) { $res['headers'] = $this->headers; @@ -37,25 +22,30 @@ public function toMap() if (null !== $this->statusCode) { $res['statusCode'] = $this->statusCode; } - return $res; } - /** * @param array $map - * * @return DeleteTriggerResponse */ - 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']; } - return $model; } + /** + * @var string[] + */ + public $headers; + + /** + * @var int + */ + public $statusCode; + } diff --git a/fc-open-20210406/src/Models/DeleteVpcBindingHeaders.php b/fc-open-20210406/src/Models/DeleteVpcBindingHeaders.php index 70b491eb66..2e55cac1b5 100644 --- a/fc-open-20210406/src/Models/DeleteVpcBindingHeaders.php +++ b/fc-open-20210406/src/Models/DeleteVpcBindingHeaders.php @@ -1,41 +1,18 @@ 'X-Fc-Account-Id', - 'xFcDate' => 'X-Fc-Date', - 'xFcTraceId' => 'X-Fc-Trace-Id', + 'xFcDate' => 'X-Fc-Date', + 'xFcTraceId' => 'X-Fc-Trace-Id', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->commonHeaders) { $res['commonHeaders'] = $this->commonHeaders; @@ -49,31 +26,43 @@ public function toMap() if (null !== $this->xFcTraceId) { $res['X-Fc-Trace-Id'] = $this->xFcTraceId; } - return $res; } - /** * @param array $map - * * @return DeleteVpcBindingHeaders */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['commonHeaders'])) { + if(isset($map['commonHeaders'])){ $model->commonHeaders = $map['commonHeaders']; } - if (isset($map['X-Fc-Account-Id'])) { + if(isset($map['X-Fc-Account-Id'])){ $model->xFcAccountId = $map['X-Fc-Account-Id']; } - if (isset($map['X-Fc-Date'])) { + if(isset($map['X-Fc-Date'])){ $model->xFcDate = $map['X-Fc-Date']; } - if (isset($map['X-Fc-Trace-Id'])) { + if(isset($map['X-Fc-Trace-Id'])){ $model->xFcTraceId = $map['X-Fc-Trace-Id']; } - return $model; } + public $commonHeaders; + + /** + * @var string + */ + public $xFcAccountId; + + /** + * @var string + */ + public $xFcDate; + + /** + * @var string + */ + public $xFcTraceId; + } diff --git a/fc-open-20210406/src/Models/DeleteVpcBindingResponse.php b/fc-open-20210406/src/Models/DeleteVpcBindingResponse.php index c510318d9e..eb57a69069 100644 --- a/fc-open-20210406/src/Models/DeleteVpcBindingResponse.php +++ b/fc-open-20210406/src/Models/DeleteVpcBindingResponse.php @@ -1,35 +1,20 @@ 'headers', + 'headers' => 'headers', 'statusCode' => 'statusCode', ]; - - public function validate() - { + public function validate() { Model::validateRequired('headers', $this->headers, true); Model::validateRequired('statusCode', $this->statusCode, true); } - - public function toMap() - { + public function toMap() { $res = []; if (null !== $this->headers) { $res['headers'] = $this->headers; @@ -37,25 +22,30 @@ public function toMap() if (null !== $this->statusCode) { $res['statusCode'] = $this->statusCode; } - return $res; } - /** * @param array $map - * * @return DeleteVpcBindingResponse */ - 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']; } - return $model; } + /** + * @var string[] + */ + public $headers; + + /** + * @var int + */ + public $statusCode; + } diff --git a/fc-open-20210406/src/Models/DeregisterEventSourceHeaders.php b/fc-open-20210406/src/Models/DeregisterEventSourceHeaders.php index cec9e3ff3c..d31cfe45ee 100644 --- a/fc-open-20210406/src/Models/DeregisterEventSourceHeaders.php +++ b/fc-open-20210406/src/Models/DeregisterEventSourceHeaders.php @@ -1,41 +1,18 @@ 'X-Fc-Account-Id', - 'xFcDate' => 'X-Fc-Date', - 'xFcTraceId' => 'X-Fc-Trace-Id', + 'xFcDate' => 'X-Fc-Date', + 'xFcTraceId' => 'X-Fc-Trace-Id', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->commonHeaders) { $res['commonHeaders'] = $this->commonHeaders; @@ -49,31 +26,43 @@ public function toMap() if (null !== $this->xFcTraceId) { $res['X-Fc-Trace-Id'] = $this->xFcTraceId; } - return $res; } - /** * @param array $map - * * @return DeregisterEventSourceHeaders */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['commonHeaders'])) { + if(isset($map['commonHeaders'])){ $model->commonHeaders = $map['commonHeaders']; } - if (isset($map['X-Fc-Account-Id'])) { + if(isset($map['X-Fc-Account-Id'])){ $model->xFcAccountId = $map['X-Fc-Account-Id']; } - if (isset($map['X-Fc-Date'])) { + if(isset($map['X-Fc-Date'])){ $model->xFcDate = $map['X-Fc-Date']; } - if (isset($map['X-Fc-Trace-Id'])) { + if(isset($map['X-Fc-Trace-Id'])){ $model->xFcTraceId = $map['X-Fc-Trace-Id']; } - return $model; } + public $commonHeaders; + + /** + * @var string + */ + public $xFcAccountId; + + /** + * @var string + */ + public $xFcDate; + + /** + * @var string + */ + public $xFcTraceId; + } diff --git a/fc-open-20210406/src/Models/DeregisterEventSourceRequest.php b/fc-open-20210406/src/Models/DeregisterEventSourceRequest.php index 8ee9fc6608..e96b98e0bd 100644 --- a/fc-open-20210406/src/Models/DeregisterEventSourceRequest.php +++ b/fc-open-20210406/src/Models/DeregisterEventSourceRequest.php @@ -1,47 +1,36 @@ 'qualifier', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->qualifier) { $res['qualifier'] = $this->qualifier; } - return $res; } - /** * @param array $map - * * @return DeregisterEventSourceRequest */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['qualifier'])) { + if(isset($map['qualifier'])){ $model->qualifier = $map['qualifier']; } - return $model; } + /** + * @var string + */ + public $qualifier; + } diff --git a/fc-open-20210406/src/Models/DeregisterEventSourceResponse.php b/fc-open-20210406/src/Models/DeregisterEventSourceResponse.php index c1baf8c90d..98f3d7cad4 100644 --- a/fc-open-20210406/src/Models/DeregisterEventSourceResponse.php +++ b/fc-open-20210406/src/Models/DeregisterEventSourceResponse.php @@ -1,35 +1,20 @@ 'headers', + 'headers' => 'headers', 'statusCode' => 'statusCode', ]; - - public function validate() - { + public function validate() { Model::validateRequired('headers', $this->headers, true); Model::validateRequired('statusCode', $this->statusCode, true); } - - public function toMap() - { + public function toMap() { $res = []; if (null !== $this->headers) { $res['headers'] = $this->headers; @@ -37,25 +22,30 @@ public function toMap() if (null !== $this->statusCode) { $res['statusCode'] = $this->statusCode; } - return $res; } - /** * @param array $map - * * @return DeregisterEventSourceResponse */ - 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']; } - return $model; } + /** + * @var string[] + */ + public $headers; + + /** + * @var int + */ + public $statusCode; + } diff --git a/fc-open-20210406/src/Models/Destination.php b/fc-open-20210406/src/Models/Destination.php index a41da21817..ed50cf4bee 100644 --- a/fc-open-20210406/src/Models/Destination.php +++ b/fc-open-20210406/src/Models/Destination.php @@ -1,47 +1,36 @@ 'destination', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->destination) { $res['destination'] = $this->destination; } - return $res; } - /** * @param array $map - * * @return Destination */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['destination'])) { + if(isset($map['destination'])){ $model->destination = $map['destination']; } - return $model; } + /** + * @var string + */ + public $destination; + } diff --git a/fc-open-20210406/src/Models/DestinationConfig.php b/fc-open-20210406/src/Models/DestinationConfig.php index aa05a6fb58..5a7725c5fe 100644 --- a/fc-open-20210406/src/Models/DestinationConfig.php +++ b/fc-open-20210406/src/Models/DestinationConfig.php @@ -1,33 +1,19 @@ 'onFailure', 'onSuccess' => 'onSuccess', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->onFailure) { $res['onFailure'] = null !== $this->onFailure ? $this->onFailure->toMap() : null; @@ -35,25 +21,30 @@ public function toMap() if (null !== $this->onSuccess) { $res['onSuccess'] = null !== $this->onSuccess ? $this->onSuccess->toMap() : null; } - return $res; } - /** * @param array $map - * * @return DestinationConfig */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['onFailure'])) { + if(isset($map['onFailure'])){ $model->onFailure = Destination::fromMap($map['onFailure']); } - if (isset($map['onSuccess'])) { + if(isset($map['onSuccess'])){ $model->onSuccess = Destination::fromMap($map['onSuccess']); } - return $model; } + /** + * @var Destination + */ + public $onFailure; + + /** + * @var Destination + */ + public $onSuccess; + } diff --git a/fc-open-20210406/src/Models/Error.php b/fc-open-20210406/src/Models/Error.php index cefdf91ad1..bb2deffbcd 100644 --- a/fc-open-20210406/src/Models/Error.php +++ b/fc-open-20210406/src/Models/Error.php @@ -1,33 +1,17 @@ 'errorCode', + 'errorCode' => 'errorCode', 'errorMessage' => 'errorMessage', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->errorCode) { $res['errorCode'] = $this->errorCode; @@ -35,25 +19,30 @@ public function toMap() if (null !== $this->errorMessage) { $res['errorMessage'] = $this->errorMessage; } - return $res; } - /** * @param array $map - * * @return Error */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['errorCode'])) { + if(isset($map['errorCode'])){ $model->errorCode = $map['errorCode']; } - if (isset($map['errorMessage'])) { + if(isset($map['errorMessage'])){ $model->errorMessage = $map['errorMessage']; } - return $model; } + /** + * @var string + */ + public $errorCode; + + /** + * @var string + */ + public $errorMessage; + } diff --git a/fc-open-20210406/src/Models/ErrorInfo.php b/fc-open-20210406/src/Models/ErrorInfo.php index 4fc94192cc..c6ee94dea9 100644 --- a/fc-open-20210406/src/Models/ErrorInfo.php +++ b/fc-open-20210406/src/Models/ErrorInfo.php @@ -1,33 +1,17 @@ 'errorMessage', - 'stackTrace' => 'stackTrace', + 'stackTrace' => 'stackTrace', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->errorMessage) { $res['errorMessage'] = $this->errorMessage; @@ -35,25 +19,30 @@ public function toMap() if (null !== $this->stackTrace) { $res['stackTrace'] = $this->stackTrace; } - return $res; } - /** * @param array $map - * * @return ErrorInfo */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['errorMessage'])) { + if(isset($map['errorMessage'])){ $model->errorMessage = $map['errorMessage']; } - if (isset($map['stackTrace'])) { + if(isset($map['stackTrace'])){ $model->stackTrace = $map['stackTrace']; } - return $model; } + /** + * @var string + */ + public $errorMessage; + + /** + * @var string + */ + public $stackTrace; + } diff --git a/fc-open-20210406/src/Models/EventBridgeTriggerConfig.php b/fc-open-20210406/src/Models/EventBridgeTriggerConfig.php index a17d10d83e..495a9bf9a1 100644 --- a/fc-open-20210406/src/Models/EventBridgeTriggerConfig.php +++ b/fc-open-20210406/src/Models/EventBridgeTriggerConfig.php @@ -1,45 +1,21 @@ 'asyncInvocationType', + 'asyncInvocationType' => 'asyncInvocationType', 'eventRuleFilterPattern' => 'eventRuleFilterPattern', - 'eventSourceConfig' => 'eventSourceConfig', - 'triggerEnable' => 'triggerEnable', + 'eventSourceConfig' => 'eventSourceConfig', + 'triggerEnable' => 'triggerEnable', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->asyncInvocationType) { $res['asyncInvocationType'] = $this->asyncInvocationType; @@ -53,31 +29,46 @@ public function toMap() if (null !== $this->triggerEnable) { $res['triggerEnable'] = $this->triggerEnable; } - return $res; } - /** * @param array $map - * * @return EventBridgeTriggerConfig */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['asyncInvocationType'])) { + if(isset($map['asyncInvocationType'])){ $model->asyncInvocationType = $map['asyncInvocationType']; } - if (isset($map['eventRuleFilterPattern'])) { + if(isset($map['eventRuleFilterPattern'])){ $model->eventRuleFilterPattern = $map['eventRuleFilterPattern']; } - if (isset($map['eventSourceConfig'])) { + if(isset($map['eventSourceConfig'])){ $model->eventSourceConfig = EventSourceConfig::fromMap($map['eventSourceConfig']); } - if (isset($map['triggerEnable'])) { + if(isset($map['triggerEnable'])){ $model->triggerEnable = $map['triggerEnable']; } - return $model; } + /** + * @var bool + */ + public $asyncInvocationType; + + /** + * @var string + */ + public $eventRuleFilterPattern; + + /** + * @var EventSourceConfig + */ + public $eventSourceConfig; + + /** + * @var bool + */ + public $triggerEnable; + } diff --git a/fc-open-20210406/src/Models/EventSourceConfig.php b/fc-open-20210406/src/Models/EventSourceConfig.php index b65f54ac85..b66420f81f 100644 --- a/fc-open-20210406/src/Models/EventSourceConfig.php +++ b/fc-open-20210406/src/Models/EventSourceConfig.php @@ -1,33 +1,19 @@ 'eventSourceParameters', - 'eventSourceType' => 'eventSourceType', + 'eventSourceType' => 'eventSourceType', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->eventSourceParameters) { $res['eventSourceParameters'] = null !== $this->eventSourceParameters ? $this->eventSourceParameters->toMap() : null; @@ -35,25 +21,30 @@ public function toMap() if (null !== $this->eventSourceType) { $res['eventSourceType'] = $this->eventSourceType; } - return $res; } - /** * @param array $map - * * @return EventSourceConfig */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['eventSourceParameters'])) { + if(isset($map['eventSourceParameters'])){ $model->eventSourceParameters = EventSourceParameters::fromMap($map['eventSourceParameters']); } - if (isset($map['eventSourceType'])) { + if(isset($map['eventSourceType'])){ $model->eventSourceType = $map['eventSourceType']; } - return $model; } + /** + * @var EventSourceParameters + */ + public $eventSourceParameters; + + /** + * @var string + */ + public $eventSourceType; + } diff --git a/fc-open-20210406/src/Models/EventSourceParameters.php b/fc-open-20210406/src/Models/EventSourceParameters.php index 76008a1a0d..98659b40fb 100644 --- a/fc-open-20210406/src/Models/EventSourceParameters.php +++ b/fc-open-20210406/src/Models/EventSourceParameters.php @@ -1,39 +1,22 @@ 'sourceMNSParameters', + 'sourceMNSParameters' => 'sourceMNSParameters', 'sourceRabbitMQParameters' => 'sourceRabbitMQParameters', 'sourceRocketMQParameters' => 'sourceRocketMQParameters', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->sourceMNSParameters) { $res['sourceMNSParameters'] = null !== $this->sourceMNSParameters ? $this->sourceMNSParameters->toMap() : null; @@ -44,28 +27,38 @@ public function toMap() if (null !== $this->sourceRocketMQParameters) { $res['sourceRocketMQParameters'] = null !== $this->sourceRocketMQParameters ? $this->sourceRocketMQParameters->toMap() : null; } - return $res; } - /** * @param array $map - * * @return EventSourceParameters */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['sourceMNSParameters'])) { + if(isset($map['sourceMNSParameters'])){ $model->sourceMNSParameters = SourceMNSParameters::fromMap($map['sourceMNSParameters']); } - if (isset($map['sourceRabbitMQParameters'])) { + if(isset($map['sourceRabbitMQParameters'])){ $model->sourceRabbitMQParameters = SourceRabbitMQParameters::fromMap($map['sourceRabbitMQParameters']); } - if (isset($map['sourceRocketMQParameters'])) { + if(isset($map['sourceRocketMQParameters'])){ $model->sourceRocketMQParameters = SourceRocketMQParameters::fromMap($map['sourceRocketMQParameters']); } - return $model; } + /** + * @var SourceMNSParameters + */ + public $sourceMNSParameters; + + /** + * @var SourceRabbitMQParameters + */ + public $sourceRabbitMQParameters; + + /** + * @var SourceRocketMQParameters + */ + public $sourceRocketMQParameters; + } diff --git a/fc-open-20210406/src/Models/GetAccountSettingsHeaders.php b/fc-open-20210406/src/Models/GetAccountSettingsHeaders.php index 767c8d06cf..75d94a3a62 100644 --- a/fc-open-20210406/src/Models/GetAccountSettingsHeaders.php +++ b/fc-open-20210406/src/Models/GetAccountSettingsHeaders.php @@ -1,41 +1,18 @@ 'X-Fc-Account-Id', - 'xFcDate' => 'X-Fc-Date', - 'xFcTraceId' => 'X-Fc-Trace-Id', + 'xFcDate' => 'X-Fc-Date', + 'xFcTraceId' => 'X-Fc-Trace-Id', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->commonHeaders) { $res['commonHeaders'] = $this->commonHeaders; @@ -49,31 +26,43 @@ public function toMap() if (null !== $this->xFcTraceId) { $res['X-Fc-Trace-Id'] = $this->xFcTraceId; } - return $res; } - /** * @param array $map - * * @return GetAccountSettingsHeaders */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['commonHeaders'])) { + if(isset($map['commonHeaders'])){ $model->commonHeaders = $map['commonHeaders']; } - if (isset($map['X-Fc-Account-Id'])) { + if(isset($map['X-Fc-Account-Id'])){ $model->xFcAccountId = $map['X-Fc-Account-Id']; } - if (isset($map['X-Fc-Date'])) { + if(isset($map['X-Fc-Date'])){ $model->xFcDate = $map['X-Fc-Date']; } - if (isset($map['X-Fc-Trace-Id'])) { + if(isset($map['X-Fc-Trace-Id'])){ $model->xFcTraceId = $map['X-Fc-Trace-Id']; } - return $model; } + public $commonHeaders; + + /** + * @var string + */ + public $xFcAccountId; + + /** + * @var string + */ + public $xFcDate; + + /** + * @var string + */ + public $xFcTraceId; + } diff --git a/fc-open-20210406/src/Models/GetAccountSettingsResponse.php b/fc-open-20210406/src/Models/GetAccountSettingsResponse.php index 4a1a11c42f..9919c073c9 100644 --- a/fc-open-20210406/src/Models/GetAccountSettingsResponse.php +++ b/fc-open-20210406/src/Models/GetAccountSettingsResponse.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 GetAccountSettingsResponse */ - 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 = GetAccountSettingsResponseBody::fromMap($map['body']); } - return $model; } + /** + * @var string[] + */ + public $headers; + + /** + * @var int + */ + public $statusCode; + + /** + * @var GetAccountSettingsResponseBody + */ + public $body; + } diff --git a/fc-open-20210406/src/Models/GetAccountSettingsResponseBody.php b/fc-open-20210406/src/Models/GetAccountSettingsResponseBody.php index f0d93cbfc7..9f0f533227 100644 --- a/fc-open-20210406/src/Models/GetAccountSettingsResponseBody.php +++ b/fc-open-20210406/src/Models/GetAccountSettingsResponseBody.php @@ -1,33 +1,17 @@ 'availableAZs', - 'defaultRole' => 'defaultRole', + 'defaultRole' => 'defaultRole', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->availableAZs) { $res['availableAZs'] = $this->availableAZs; @@ -35,27 +19,32 @@ public function toMap() if (null !== $this->defaultRole) { $res['defaultRole'] = $this->defaultRole; } - return $res; } - /** * @param array $map - * * @return GetAccountSettingsResponseBody */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['availableAZs'])) { - if (!empty($map['availableAZs'])) { + if(isset($map['availableAZs'])){ + if(!empty($map['availableAZs'])){ $model->availableAZs = $map['availableAZs']; } } - if (isset($map['defaultRole'])) { + if(isset($map['defaultRole'])){ $model->defaultRole = $map['defaultRole']; } - return $model; } + /** + * @var string[] + */ + public $availableAZs; + + /** + * @var string + */ + public $defaultRole; + } diff --git a/fc-open-20210406/src/Models/GetAliasHeaders.php b/fc-open-20210406/src/Models/GetAliasHeaders.php index 233c66b733..c76d7e216a 100644 --- a/fc-open-20210406/src/Models/GetAliasHeaders.php +++ b/fc-open-20210406/src/Models/GetAliasHeaders.php @@ -1,41 +1,18 @@ 'X-Fc-Account-Id', - 'xFcDate' => 'X-Fc-Date', - 'xFcTraceId' => 'X-Fc-Trace-Id', + 'xFcDate' => 'X-Fc-Date', + 'xFcTraceId' => 'X-Fc-Trace-Id', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->commonHeaders) { $res['commonHeaders'] = $this->commonHeaders; @@ -49,31 +26,43 @@ public function toMap() if (null !== $this->xFcTraceId) { $res['X-Fc-Trace-Id'] = $this->xFcTraceId; } - return $res; } - /** * @param array $map - * * @return GetAliasHeaders */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['commonHeaders'])) { + if(isset($map['commonHeaders'])){ $model->commonHeaders = $map['commonHeaders']; } - if (isset($map['X-Fc-Account-Id'])) { + if(isset($map['X-Fc-Account-Id'])){ $model->xFcAccountId = $map['X-Fc-Account-Id']; } - if (isset($map['X-Fc-Date'])) { + if(isset($map['X-Fc-Date'])){ $model->xFcDate = $map['X-Fc-Date']; } - if (isset($map['X-Fc-Trace-Id'])) { + if(isset($map['X-Fc-Trace-Id'])){ $model->xFcTraceId = $map['X-Fc-Trace-Id']; } - return $model; } + public $commonHeaders; + + /** + * @var string + */ + public $xFcAccountId; + + /** + * @var string + */ + public $xFcDate; + + /** + * @var string + */ + public $xFcTraceId; + } diff --git a/fc-open-20210406/src/Models/GetAliasResponse.php b/fc-open-20210406/src/Models/GetAliasResponse.php index cc76f535db..1a0a8568ac 100644 --- a/fc-open-20210406/src/Models/GetAliasResponse.php +++ b/fc-open-20210406/src/Models/GetAliasResponse.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 GetAliasResponse */ - 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 = GetAliasResponseBody::fromMap($map['body']); } - return $model; } + /** + * @var string[] + */ + public $headers; + + /** + * @var int + */ + public $statusCode; + + /** + * @var GetAliasResponseBody + */ + public $body; + } diff --git a/fc-open-20210406/src/Models/GetAliasResponseBody.php b/fc-open-20210406/src/Models/GetAliasResponseBody.php index 5f42e36999..c1364edee0 100644 --- a/fc-open-20210406/src/Models/GetAliasResponseBody.php +++ b/fc-open-20210406/src/Models/GetAliasResponseBody.php @@ -1,69 +1,25 @@ 'additionalVersionWeight', - 'aliasName' => 'aliasName', - 'createdTime' => 'createdTime', - 'description' => 'description', - 'lastModifiedTime' => 'lastModifiedTime', - 'resolvePolicy' => 'resolvePolicy', - 'routePolicy' => 'routePolicy', - 'versionId' => 'versionId', + 'aliasName' => 'aliasName', + 'createdTime' => 'createdTime', + 'description' => 'description', + 'lastModifiedTime' => 'lastModifiedTime', + 'resolvePolicy' => 'resolvePolicy', + 'routePolicy' => 'routePolicy', + 'versionId' => 'versionId', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->additionalVersionWeight) { $res['additionalVersionWeight'] = $this->additionalVersionWeight; @@ -89,43 +45,78 @@ public function toMap() if (null !== $this->versionId) { $res['versionId'] = $this->versionId; } - return $res; } - /** * @param array $map - * * @return GetAliasResponseBody */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['additionalVersionWeight'])) { + if(isset($map['additionalVersionWeight'])){ $model->additionalVersionWeight = $map['additionalVersionWeight']; } - if (isset($map['aliasName'])) { + if(isset($map['aliasName'])){ $model->aliasName = $map['aliasName']; } - if (isset($map['createdTime'])) { + if(isset($map['createdTime'])){ $model->createdTime = $map['createdTime']; } - if (isset($map['description'])) { + if(isset($map['description'])){ $model->description = $map['description']; } - if (isset($map['lastModifiedTime'])) { + if(isset($map['lastModifiedTime'])){ $model->lastModifiedTime = $map['lastModifiedTime']; } - if (isset($map['resolvePolicy'])) { + if(isset($map['resolvePolicy'])){ $model->resolvePolicy = $map['resolvePolicy']; } - if (isset($map['routePolicy'])) { + if(isset($map['routePolicy'])){ $model->routePolicy = RoutePolicy::fromMap($map['routePolicy']); } - if (isset($map['versionId'])) { + if(isset($map['versionId'])){ $model->versionId = $map['versionId']; } - return $model; } + /** + * @var float[] + */ + public $additionalVersionWeight; + + /** + * @var string + */ + public $aliasName; + + /** + * @var string + */ + public $createdTime; + + /** + * @var string + */ + public $description; + + /** + * @var string + */ + public $lastModifiedTime; + + /** + * @var string + */ + public $resolvePolicy; + + /** + * @var RoutePolicy + */ + public $routePolicy; + + /** + * @var string + */ + public $versionId; + } diff --git a/fc-open-20210406/src/Models/GetCustomDomainHeaders.php b/fc-open-20210406/src/Models/GetCustomDomainHeaders.php index a903e36d14..b0a5f6e1b6 100644 --- a/fc-open-20210406/src/Models/GetCustomDomainHeaders.php +++ b/fc-open-20210406/src/Models/GetCustomDomainHeaders.php @@ -1,41 +1,18 @@ 'X-Fc-Account-Id', - 'xFcDate' => 'X-Fc-Date', - 'xFcTraceId' => 'X-Fc-Trace-Id', + 'xFcDate' => 'X-Fc-Date', + 'xFcTraceId' => 'X-Fc-Trace-Id', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->commonHeaders) { $res['commonHeaders'] = $this->commonHeaders; @@ -49,31 +26,43 @@ public function toMap() if (null !== $this->xFcTraceId) { $res['X-Fc-Trace-Id'] = $this->xFcTraceId; } - return $res; } - /** * @param array $map - * * @return GetCustomDomainHeaders */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['commonHeaders'])) { + if(isset($map['commonHeaders'])){ $model->commonHeaders = $map['commonHeaders']; } - if (isset($map['X-Fc-Account-Id'])) { + if(isset($map['X-Fc-Account-Id'])){ $model->xFcAccountId = $map['X-Fc-Account-Id']; } - if (isset($map['X-Fc-Date'])) { + if(isset($map['X-Fc-Date'])){ $model->xFcDate = $map['X-Fc-Date']; } - if (isset($map['X-Fc-Trace-Id'])) { + if(isset($map['X-Fc-Trace-Id'])){ $model->xFcTraceId = $map['X-Fc-Trace-Id']; } - return $model; } + public $commonHeaders; + + /** + * @var string + */ + public $xFcAccountId; + + /** + * @var string + */ + public $xFcDate; + + /** + * @var string + */ + public $xFcTraceId; + } diff --git a/fc-open-20210406/src/Models/GetCustomDomainResponse.php b/fc-open-20210406/src/Models/GetCustomDomainResponse.php index 295c1771b8..e2ad899dcb 100644 --- a/fc-open-20210406/src/Models/GetCustomDomainResponse.php +++ b/fc-open-20210406/src/Models/GetCustomDomainResponse.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 GetCustomDomainResponse */ - 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 = GetCustomDomainResponseBody::fromMap($map['body']); } - return $model; } + /** + * @var string[] + */ + public $headers; + + /** + * @var int + */ + public $statusCode; + + /** + * @var GetCustomDomainResponseBody + */ + public $body; + } diff --git a/fc-open-20210406/src/Models/GetCustomDomainResponseBody.php b/fc-open-20210406/src/Models/GetCustomDomainResponseBody.php index 9bde7b9b26..e8495f7e42 100644 --- a/fc-open-20210406/src/Models/GetCustomDomainResponseBody.php +++ b/fc-open-20210406/src/Models/GetCustomDomainResponseBody.php @@ -1,75 +1,28 @@ 'accountId', - 'apiVersion' => 'apiVersion', - 'certConfig' => 'certConfig', - 'createdTime' => 'createdTime', - 'domainName' => 'domainName', + 'accountId' => 'accountId', + 'apiVersion' => 'apiVersion', + 'certConfig' => 'certConfig', + 'createdTime' => 'createdTime', + 'domainName' => 'domainName', 'lastModifiedTime' => 'lastModifiedTime', - 'protocol' => 'protocol', - 'routeConfig' => 'routeConfig', - 'tlsConfig' => 'tlsConfig', + 'protocol' => 'protocol', + 'routeConfig' => 'routeConfig', + 'tlsConfig' => 'tlsConfig', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->accountId) { $res['accountId'] = $this->accountId; @@ -98,46 +51,86 @@ public function toMap() if (null !== $this->tlsConfig) { $res['tlsConfig'] = null !== $this->tlsConfig ? $this->tlsConfig->toMap() : null; } - return $res; } - /** * @param array $map - * * @return GetCustomDomainResponseBody */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['accountId'])) { + if(isset($map['accountId'])){ $model->accountId = $map['accountId']; } - if (isset($map['apiVersion'])) { + if(isset($map['apiVersion'])){ $model->apiVersion = $map['apiVersion']; } - if (isset($map['certConfig'])) { + if(isset($map['certConfig'])){ $model->certConfig = CertConfig::fromMap($map['certConfig']); } - if (isset($map['createdTime'])) { + if(isset($map['createdTime'])){ $model->createdTime = $map['createdTime']; } - if (isset($map['domainName'])) { + if(isset($map['domainName'])){ $model->domainName = $map['domainName']; } - if (isset($map['lastModifiedTime'])) { + if(isset($map['lastModifiedTime'])){ $model->lastModifiedTime = $map['lastModifiedTime']; } - if (isset($map['protocol'])) { + if(isset($map['protocol'])){ $model->protocol = $map['protocol']; } - if (isset($map['routeConfig'])) { + if(isset($map['routeConfig'])){ $model->routeConfig = RouteConfig::fromMap($map['routeConfig']); } - if (isset($map['tlsConfig'])) { + if(isset($map['tlsConfig'])){ $model->tlsConfig = TLSConfig::fromMap($map['tlsConfig']); } - return $model; } + /** + * @var string + */ + public $accountId; + + /** + * @var string + */ + public $apiVersion; + + /** + * @var CertConfig + */ + public $certConfig; + + /** + * @var string + */ + public $createdTime; + + /** + * @var string + */ + public $domainName; + + /** + * @var string + */ + public $lastModifiedTime; + + /** + * @var string + */ + public $protocol; + + /** + * @var RouteConfig + */ + public $routeConfig; + + /** + * @var TLSConfig + */ + public $tlsConfig; + } diff --git a/fc-open-20210406/src/Models/GetFunctionAsyncInvokeConfigHeaders.php b/fc-open-20210406/src/Models/GetFunctionAsyncInvokeConfigHeaders.php index 979b87dad5..2b57d96217 100644 --- a/fc-open-20210406/src/Models/GetFunctionAsyncInvokeConfigHeaders.php +++ b/fc-open-20210406/src/Models/GetFunctionAsyncInvokeConfigHeaders.php @@ -1,41 +1,18 @@ 'X-Fc-Account-Id', - 'xFcDate' => 'X-Fc-Date', - 'xFcTraceId' => 'X-Fc-Trace-Id', + 'xFcDate' => 'X-Fc-Date', + 'xFcTraceId' => 'X-Fc-Trace-Id', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->commonHeaders) { $res['commonHeaders'] = $this->commonHeaders; @@ -49,31 +26,43 @@ public function toMap() if (null !== $this->xFcTraceId) { $res['X-Fc-Trace-Id'] = $this->xFcTraceId; } - return $res; } - /** * @param array $map - * * @return GetFunctionAsyncInvokeConfigHeaders */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['commonHeaders'])) { + if(isset($map['commonHeaders'])){ $model->commonHeaders = $map['commonHeaders']; } - if (isset($map['X-Fc-Account-Id'])) { + if(isset($map['X-Fc-Account-Id'])){ $model->xFcAccountId = $map['X-Fc-Account-Id']; } - if (isset($map['X-Fc-Date'])) { + if(isset($map['X-Fc-Date'])){ $model->xFcDate = $map['X-Fc-Date']; } - if (isset($map['X-Fc-Trace-Id'])) { + if(isset($map['X-Fc-Trace-Id'])){ $model->xFcTraceId = $map['X-Fc-Trace-Id']; } - return $model; } + public $commonHeaders; + + /** + * @var string + */ + public $xFcAccountId; + + /** + * @var string + */ + public $xFcDate; + + /** + * @var string + */ + public $xFcTraceId; + } diff --git a/fc-open-20210406/src/Models/GetFunctionAsyncInvokeConfigRequest.php b/fc-open-20210406/src/Models/GetFunctionAsyncInvokeConfigRequest.php index 80337f8e37..a29047e0e1 100644 --- a/fc-open-20210406/src/Models/GetFunctionAsyncInvokeConfigRequest.php +++ b/fc-open-20210406/src/Models/GetFunctionAsyncInvokeConfigRequest.php @@ -1,47 +1,36 @@ 'qualifier', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->qualifier) { $res['qualifier'] = $this->qualifier; } - return $res; } - /** * @param array $map - * * @return GetFunctionAsyncInvokeConfigRequest */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['qualifier'])) { + if(isset($map['qualifier'])){ $model->qualifier = $map['qualifier']; } - return $model; } + /** + * @var string + */ + public $qualifier; + } diff --git a/fc-open-20210406/src/Models/GetFunctionAsyncInvokeConfigResponse.php b/fc-open-20210406/src/Models/GetFunctionAsyncInvokeConfigResponse.php index 735a556b29..7918d02bb7 100644 --- a/fc-open-20210406/src/Models/GetFunctionAsyncInvokeConfigResponse.php +++ b/fc-open-20210406/src/Models/GetFunctionAsyncInvokeConfigResponse.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 GetFunctionAsyncInvokeConfigResponse */ - 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 = GetFunctionAsyncInvokeConfigResponseBody::fromMap($map['body']); } - return $model; } + /** + * @var string[] + */ + public $headers; + + /** + * @var int + */ + public $statusCode; + + /** + * @var GetFunctionAsyncInvokeConfigResponseBody + */ + public $body; + } diff --git a/fc-open-20210406/src/Models/GetFunctionAsyncInvokeConfigResponseBody.php b/fc-open-20210406/src/Models/GetFunctionAsyncInvokeConfigResponseBody.php index b91d13f25c..b1d7f05533 100644 --- a/fc-open-20210406/src/Models/GetFunctionAsyncInvokeConfigResponseBody.php +++ b/fc-open-20210406/src/Models/GetFunctionAsyncInvokeConfigResponseBody.php @@ -1,75 +1,26 @@ 'createdTime', - 'destinationConfig' => 'destinationConfig', - 'function' => 'function', - 'lastModifiedTime' => 'lastModifiedTime', + 'createdTime' => 'createdTime', + 'destinationConfig' => 'destinationConfig', + 'function' => 'function', + 'lastModifiedTime' => 'lastModifiedTime', 'maxAsyncEventAgeInSeconds' => 'maxAsyncEventAgeInSeconds', - 'maxAsyncRetryAttempts' => 'maxAsyncRetryAttempts', - 'qualifier' => 'qualifier', - 'service' => 'service', - 'statefulInvocation' => 'statefulInvocation', + 'maxAsyncRetryAttempts' => 'maxAsyncRetryAttempts', + 'qualifier' => 'qualifier', + 'service' => 'service', + 'statefulInvocation' => 'statefulInvocation', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->createdTime) { $res['createdTime'] = $this->createdTime; @@ -98,46 +49,86 @@ public function toMap() if (null !== $this->statefulInvocation) { $res['statefulInvocation'] = $this->statefulInvocation; } - return $res; } - /** * @param array $map - * * @return GetFunctionAsyncInvokeConfigResponseBody */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['createdTime'])) { + if(isset($map['createdTime'])){ $model->createdTime = $map['createdTime']; } - if (isset($map['destinationConfig'])) { + if(isset($map['destinationConfig'])){ $model->destinationConfig = DestinationConfig::fromMap($map['destinationConfig']); } - if (isset($map['function'])) { + if(isset($map['function'])){ $model->function = $map['function']; } - if (isset($map['lastModifiedTime'])) { + if(isset($map['lastModifiedTime'])){ $model->lastModifiedTime = $map['lastModifiedTime']; } - if (isset($map['maxAsyncEventAgeInSeconds'])) { + if(isset($map['maxAsyncEventAgeInSeconds'])){ $model->maxAsyncEventAgeInSeconds = $map['maxAsyncEventAgeInSeconds']; } - if (isset($map['maxAsyncRetryAttempts'])) { + if(isset($map['maxAsyncRetryAttempts'])){ $model->maxAsyncRetryAttempts = $map['maxAsyncRetryAttempts']; } - if (isset($map['qualifier'])) { + if(isset($map['qualifier'])){ $model->qualifier = $map['qualifier']; } - if (isset($map['service'])) { + if(isset($map['service'])){ $model->service = $map['service']; } - if (isset($map['statefulInvocation'])) { + if(isset($map['statefulInvocation'])){ $model->statefulInvocation = $map['statefulInvocation']; } - return $model; } + /** + * @var string + */ + public $createdTime; + + /** + * @var DestinationConfig + */ + public $destinationConfig; + + /** + * @var string + */ + public $function; + + /** + * @var string + */ + public $lastModifiedTime; + + /** + * @var int + */ + public $maxAsyncEventAgeInSeconds; + + /** + * @var int + */ + public $maxAsyncRetryAttempts; + + /** + * @var string + */ + public $qualifier; + + /** + * @var string + */ + public $service; + + /** + * @var bool + */ + public $statefulInvocation; + } diff --git a/fc-open-20210406/src/Models/GetFunctionCodeHeaders.php b/fc-open-20210406/src/Models/GetFunctionCodeHeaders.php index 3e663443f0..4e1efb7e08 100644 --- a/fc-open-20210406/src/Models/GetFunctionCodeHeaders.php +++ b/fc-open-20210406/src/Models/GetFunctionCodeHeaders.php @@ -1,41 +1,18 @@ 'X-Fc-Account-Id', - 'xFcDate' => 'X-Fc-Date', - 'xFcTraceId' => 'X-Fc-Trace-Id', + 'xFcDate' => 'X-Fc-Date', + 'xFcTraceId' => 'X-Fc-Trace-Id', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->commonHeaders) { $res['commonHeaders'] = $this->commonHeaders; @@ -49,31 +26,43 @@ public function toMap() if (null !== $this->xFcTraceId) { $res['X-Fc-Trace-Id'] = $this->xFcTraceId; } - return $res; } - /** * @param array $map - * * @return GetFunctionCodeHeaders */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['commonHeaders'])) { + if(isset($map['commonHeaders'])){ $model->commonHeaders = $map['commonHeaders']; } - if (isset($map['X-Fc-Account-Id'])) { + if(isset($map['X-Fc-Account-Id'])){ $model->xFcAccountId = $map['X-Fc-Account-Id']; } - if (isset($map['X-Fc-Date'])) { + if(isset($map['X-Fc-Date'])){ $model->xFcDate = $map['X-Fc-Date']; } - if (isset($map['X-Fc-Trace-Id'])) { + if(isset($map['X-Fc-Trace-Id'])){ $model->xFcTraceId = $map['X-Fc-Trace-Id']; } - return $model; } + public $commonHeaders; + + /** + * @var string + */ + public $xFcAccountId; + + /** + * @var string + */ + public $xFcDate; + + /** + * @var string + */ + public $xFcTraceId; + } diff --git a/fc-open-20210406/src/Models/GetFunctionCodeRequest.php b/fc-open-20210406/src/Models/GetFunctionCodeRequest.php index 7dfab83d51..b2580bb93a 100644 --- a/fc-open-20210406/src/Models/GetFunctionCodeRequest.php +++ b/fc-open-20210406/src/Models/GetFunctionCodeRequest.php @@ -1,47 +1,36 @@ 'qualifier', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->qualifier) { $res['qualifier'] = $this->qualifier; } - return $res; } - /** * @param array $map - * * @return GetFunctionCodeRequest */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['qualifier'])) { + if(isset($map['qualifier'])){ $model->qualifier = $map['qualifier']; } - return $model; } + /** + * @var string + */ + public $qualifier; + } diff --git a/fc-open-20210406/src/Models/GetFunctionCodeResponse.php b/fc-open-20210406/src/Models/GetFunctionCodeResponse.php index a89ca21f24..8089c01b58 100644 --- a/fc-open-20210406/src/Models/GetFunctionCodeResponse.php +++ b/fc-open-20210406/src/Models/GetFunctionCodeResponse.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 GetFunctionCodeResponse */ - 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 = GetFunctionCodeResponseBody::fromMap($map['body']); } - return $model; } + /** + * @var string[] + */ + public $headers; + + /** + * @var int + */ + public $statusCode; + + /** + * @var GetFunctionCodeResponseBody + */ + public $body; + } diff --git a/fc-open-20210406/src/Models/GetFunctionCodeResponseBody.php b/fc-open-20210406/src/Models/GetFunctionCodeResponseBody.php index c7854983f1..f7cd0a56ab 100644 --- a/fc-open-20210406/src/Models/GetFunctionCodeResponseBody.php +++ b/fc-open-20210406/src/Models/GetFunctionCodeResponseBody.php @@ -1,33 +1,17 @@ 'checksum', - 'url' => 'url', + 'url' => 'url', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->checksum) { $res['checksum'] = $this->checksum; @@ -35,25 +19,30 @@ public function toMap() if (null !== $this->url) { $res['url'] = $this->url; } - return $res; } - /** * @param array $map - * * @return GetFunctionCodeResponseBody */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['checksum'])) { + if(isset($map['checksum'])){ $model->checksum = $map['checksum']; } - if (isset($map['url'])) { + if(isset($map['url'])){ $model->url = $map['url']; } - return $model; } + /** + * @var string + */ + public $checksum; + + /** + * @var string + */ + public $url; + } diff --git a/fc-open-20210406/src/Models/GetFunctionHeaders.php b/fc-open-20210406/src/Models/GetFunctionHeaders.php index 518fd1c099..446f695cd0 100644 --- a/fc-open-20210406/src/Models/GetFunctionHeaders.php +++ b/fc-open-20210406/src/Models/GetFunctionHeaders.php @@ -1,41 +1,18 @@ 'X-Fc-Account-Id', - 'xFcDate' => 'X-Fc-Date', - 'xFcTraceId' => 'X-Fc-Trace-Id', + 'xFcDate' => 'X-Fc-Date', + 'xFcTraceId' => 'X-Fc-Trace-Id', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->commonHeaders) { $res['commonHeaders'] = $this->commonHeaders; @@ -49,31 +26,43 @@ public function toMap() if (null !== $this->xFcTraceId) { $res['X-Fc-Trace-Id'] = $this->xFcTraceId; } - return $res; } - /** * @param array $map - * * @return GetFunctionHeaders */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['commonHeaders'])) { + if(isset($map['commonHeaders'])){ $model->commonHeaders = $map['commonHeaders']; } - if (isset($map['X-Fc-Account-Id'])) { + if(isset($map['X-Fc-Account-Id'])){ $model->xFcAccountId = $map['X-Fc-Account-Id']; } - if (isset($map['X-Fc-Date'])) { + if(isset($map['X-Fc-Date'])){ $model->xFcDate = $map['X-Fc-Date']; } - if (isset($map['X-Fc-Trace-Id'])) { + if(isset($map['X-Fc-Trace-Id'])){ $model->xFcTraceId = $map['X-Fc-Trace-Id']; } - return $model; } + public $commonHeaders; + + /** + * @var string + */ + public $xFcAccountId; + + /** + * @var string + */ + public $xFcDate; + + /** + * @var string + */ + public $xFcTraceId; + } diff --git a/fc-open-20210406/src/Models/GetFunctionOnDemandConfigHeaders.php b/fc-open-20210406/src/Models/GetFunctionOnDemandConfigHeaders.php index b8d1c08df6..fddfbdf0ec 100644 --- a/fc-open-20210406/src/Models/GetFunctionOnDemandConfigHeaders.php +++ b/fc-open-20210406/src/Models/GetFunctionOnDemandConfigHeaders.php @@ -1,41 +1,18 @@ 'X-Fc-Account-Id', - 'xFcDate' => 'X-Fc-Date', - 'xFcTraceId' => 'X-Fc-Trace-Id', + 'xFcDate' => 'X-Fc-Date', + 'xFcTraceId' => 'X-Fc-Trace-Id', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->commonHeaders) { $res['commonHeaders'] = $this->commonHeaders; @@ -49,31 +26,43 @@ public function toMap() if (null !== $this->xFcTraceId) { $res['X-Fc-Trace-Id'] = $this->xFcTraceId; } - return $res; } - /** * @param array $map - * * @return GetFunctionOnDemandConfigHeaders */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['commonHeaders'])) { + if(isset($map['commonHeaders'])){ $model->commonHeaders = $map['commonHeaders']; } - if (isset($map['X-Fc-Account-Id'])) { + if(isset($map['X-Fc-Account-Id'])){ $model->xFcAccountId = $map['X-Fc-Account-Id']; } - if (isset($map['X-Fc-Date'])) { + if(isset($map['X-Fc-Date'])){ $model->xFcDate = $map['X-Fc-Date']; } - if (isset($map['X-Fc-Trace-Id'])) { + if(isset($map['X-Fc-Trace-Id'])){ $model->xFcTraceId = $map['X-Fc-Trace-Id']; } - return $model; } + public $commonHeaders; + + /** + * @var string + */ + public $xFcAccountId; + + /** + * @var string + */ + public $xFcDate; + + /** + * @var string + */ + public $xFcTraceId; + } diff --git a/fc-open-20210406/src/Models/GetFunctionOnDemandConfigRequest.php b/fc-open-20210406/src/Models/GetFunctionOnDemandConfigRequest.php index ffa5435047..fdd763f727 100644 --- a/fc-open-20210406/src/Models/GetFunctionOnDemandConfigRequest.php +++ b/fc-open-20210406/src/Models/GetFunctionOnDemandConfigRequest.php @@ -1,47 +1,36 @@ 'qualifier', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->qualifier) { $res['qualifier'] = $this->qualifier; } - return $res; } - /** * @param array $map - * * @return GetFunctionOnDemandConfigRequest */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['qualifier'])) { + if(isset($map['qualifier'])){ $model->qualifier = $map['qualifier']; } - return $model; } + /** + * @var string + */ + public $qualifier; + } diff --git a/fc-open-20210406/src/Models/GetFunctionOnDemandConfigResponse.php b/fc-open-20210406/src/Models/GetFunctionOnDemandConfigResponse.php index 34fa7be9f4..4fabc69a6f 100644 --- a/fc-open-20210406/src/Models/GetFunctionOnDemandConfigResponse.php +++ b/fc-open-20210406/src/Models/GetFunctionOnDemandConfigResponse.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 GetFunctionOnDemandConfigResponse */ - 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 = GetFunctionOnDemandConfigResponseBody::fromMap($map['body']); } - return $model; } + /** + * @var string[] + */ + public $headers; + + /** + * @var int + */ + public $statusCode; + + /** + * @var GetFunctionOnDemandConfigResponseBody + */ + public $body; + } diff --git a/fc-open-20210406/src/Models/GetFunctionOnDemandConfigResponseBody.php b/fc-open-20210406/src/Models/GetFunctionOnDemandConfigResponseBody.php index 4b19e48d36..a8773280a0 100644 --- a/fc-open-20210406/src/Models/GetFunctionOnDemandConfigResponseBody.php +++ b/fc-open-20210406/src/Models/GetFunctionOnDemandConfigResponseBody.php @@ -1,33 +1,17 @@ 'maximumInstanceCount', - 'resource' => 'resource', + 'resource' => 'resource', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->maximumInstanceCount) { $res['maximumInstanceCount'] = $this->maximumInstanceCount; @@ -35,25 +19,30 @@ public function toMap() if (null !== $this->resource) { $res['resource'] = $this->resource; } - return $res; } - /** * @param array $map - * * @return GetFunctionOnDemandConfigResponseBody */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['maximumInstanceCount'])) { + if(isset($map['maximumInstanceCount'])){ $model->maximumInstanceCount = $map['maximumInstanceCount']; } - if (isset($map['resource'])) { + if(isset($map['resource'])){ $model->resource = $map['resource']; } - return $model; } + /** + * @var int + */ + public $maximumInstanceCount; + + /** + * @var string + */ + public $resource; + } diff --git a/fc-open-20210406/src/Models/GetFunctionRequest.php b/fc-open-20210406/src/Models/GetFunctionRequest.php index 8d934d1fef..dc058d3e01 100644 --- a/fc-open-20210406/src/Models/GetFunctionRequest.php +++ b/fc-open-20210406/src/Models/GetFunctionRequest.php @@ -1,47 +1,36 @@ 'qualifier', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->qualifier) { $res['qualifier'] = $this->qualifier; } - return $res; } - /** * @param array $map - * * @return GetFunctionRequest */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['qualifier'])) { + if(isset($map['qualifier'])){ $model->qualifier = $map['qualifier']; } - return $model; } + /** + * @var string + */ + public $qualifier; + } diff --git a/fc-open-20210406/src/Models/GetFunctionResponse.php b/fc-open-20210406/src/Models/GetFunctionResponse.php index 68430cd3b9..bc4749e3f3 100644 --- a/fc-open-20210406/src/Models/GetFunctionResponse.php +++ b/fc-open-20210406/src/Models/GetFunctionResponse.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 GetFunctionResponse */ - 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 = GetFunctionResponseBody::fromMap($map['body']); } - return $model; } + /** + * @var string[] + */ + public $headers; + + /** + * @var int + */ + public $statusCode; + + /** + * @var GetFunctionResponseBody + */ + public $body; + } diff --git a/fc-open-20210406/src/Models/GetFunctionResponseBody.php b/fc-open-20210406/src/Models/GetFunctionResponseBody.php index 0bfdcf6976..e383c3d180 100644 --- a/fc-open-20210406/src/Models/GetFunctionResponseBody.php +++ b/fc-open-20210406/src/Models/GetFunctionResponseBody.php @@ -1,159 +1,43 @@ 'caPort', - 'codeChecksum' => 'codeChecksum', - 'codeSize' => 'codeSize', - 'createdTime' => 'createdTime', - 'customContainerConfig' => 'customContainerConfig', - 'customDNS' => 'customDNS', - 'customRuntimeConfig' => 'customRuntimeConfig', - 'description' => 'description', - 'environmentVariables' => 'environmentVariables', - 'functionId' => 'functionId', - 'functionName' => 'functionName', - 'handler' => 'handler', - 'initializationTimeout' => 'initializationTimeout', - 'initializer' => 'initializer', - 'instanceConcurrency' => 'instanceConcurrency', + 'caPort' => 'caPort', + 'codeChecksum' => 'codeChecksum', + 'codeSize' => 'codeSize', + 'createdTime' => 'createdTime', + 'customContainerConfig' => 'customContainerConfig', + 'customDNS' => 'customDNS', + 'customRuntimeConfig' => 'customRuntimeConfig', + 'description' => 'description', + 'environmentVariables' => 'environmentVariables', + 'functionId' => 'functionId', + 'functionName' => 'functionName', + 'handler' => 'handler', + 'initializationTimeout' => 'initializationTimeout', + 'initializer' => 'initializer', + 'instanceConcurrency' => 'instanceConcurrency', 'instanceLifecycleConfig' => 'instanceLifecycleConfig', 'instanceSoftConcurrency' => 'instanceSoftConcurrency', - 'instanceType' => 'instanceType', - 'lastModifiedTime' => 'lastModifiedTime', - 'layers' => 'layers', - 'memorySize' => 'memorySize', - 'runtime' => 'runtime', - 'timeout' => 'timeout', + 'instanceType' => 'instanceType', + 'lastModifiedTime' => 'lastModifiedTime', + 'layers' => 'layers', + 'memorySize' => 'memorySize', + 'runtime' => 'runtime', + 'timeout' => 'timeout', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->caPort) { $res['caPort'] = $this->caPort; @@ -224,90 +108,200 @@ public function toMap() if (null !== $this->timeout) { $res['timeout'] = $this->timeout; } - return $res; } - /** * @param array $map - * * @return GetFunctionResponseBody */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['caPort'])) { + if(isset($map['caPort'])){ $model->caPort = $map['caPort']; } - if (isset($map['codeChecksum'])) { + if(isset($map['codeChecksum'])){ $model->codeChecksum = $map['codeChecksum']; } - if (isset($map['codeSize'])) { + if(isset($map['codeSize'])){ $model->codeSize = $map['codeSize']; } - if (isset($map['createdTime'])) { + if(isset($map['createdTime'])){ $model->createdTime = $map['createdTime']; } - if (isset($map['customContainerConfig'])) { + if(isset($map['customContainerConfig'])){ $model->customContainerConfig = CustomContainerConfigInfo::fromMap($map['customContainerConfig']); } - if (isset($map['customDNS'])) { + if(isset($map['customDNS'])){ $model->customDNS = CustomDNS::fromMap($map['customDNS']); } - if (isset($map['customRuntimeConfig'])) { + if(isset($map['customRuntimeConfig'])){ $model->customRuntimeConfig = CustomRuntimeConfig::fromMap($map['customRuntimeConfig']); } - if (isset($map['description'])) { + if(isset($map['description'])){ $model->description = $map['description']; } - if (isset($map['environmentVariables'])) { + if(isset($map['environmentVariables'])){ $model->environmentVariables = $map['environmentVariables']; } - if (isset($map['functionId'])) { + if(isset($map['functionId'])){ $model->functionId = $map['functionId']; } - if (isset($map['functionName'])) { + if(isset($map['functionName'])){ $model->functionName = $map['functionName']; } - if (isset($map['handler'])) { + if(isset($map['handler'])){ $model->handler = $map['handler']; } - if (isset($map['initializationTimeout'])) { + if(isset($map['initializationTimeout'])){ $model->initializationTimeout = $map['initializationTimeout']; } - if (isset($map['initializer'])) { + if(isset($map['initializer'])){ $model->initializer = $map['initializer']; } - if (isset($map['instanceConcurrency'])) { + if(isset($map['instanceConcurrency'])){ $model->instanceConcurrency = $map['instanceConcurrency']; } - if (isset($map['instanceLifecycleConfig'])) { + if(isset($map['instanceLifecycleConfig'])){ $model->instanceLifecycleConfig = InstanceLifecycleConfig::fromMap($map['instanceLifecycleConfig']); } - if (isset($map['instanceSoftConcurrency'])) { + if(isset($map['instanceSoftConcurrency'])){ $model->instanceSoftConcurrency = $map['instanceSoftConcurrency']; } - if (isset($map['instanceType'])) { + if(isset($map['instanceType'])){ $model->instanceType = $map['instanceType']; } - if (isset($map['lastModifiedTime'])) { + if(isset($map['lastModifiedTime'])){ $model->lastModifiedTime = $map['lastModifiedTime']; } - if (isset($map['layers'])) { - if (!empty($map['layers'])) { + if(isset($map['layers'])){ + if(!empty($map['layers'])){ $model->layers = $map['layers']; } } - if (isset($map['memorySize'])) { + if(isset($map['memorySize'])){ $model->memorySize = $map['memorySize']; } - if (isset($map['runtime'])) { + if(isset($map['runtime'])){ $model->runtime = $map['runtime']; } - if (isset($map['timeout'])) { + if(isset($map['timeout'])){ $model->timeout = $map['timeout']; } - return $model; } + /** + * @var int + */ + public $caPort; + + /** + * @var string + */ + public $codeChecksum; + + /** + * @var int + */ + public $codeSize; + + /** + * @var string + */ + public $createdTime; + + /** + * @var CustomContainerConfigInfo + */ + public $customContainerConfig; + + /** + * @var CustomDNS + */ + public $customDNS; + + /** + * @var CustomRuntimeConfig + */ + public $customRuntimeConfig; + + /** + * @var string + */ + public $description; + + /** + * @var string[] + */ + public $environmentVariables; + + /** + * @var string + */ + public $functionId; + + /** + * @var string + */ + public $functionName; + + /** + * @var string + */ + public $handler; + + /** + * @var int + */ + public $initializationTimeout; + + /** + * @var string + */ + public $initializer; + + /** + * @var int + */ + public $instanceConcurrency; + + /** + * @var InstanceLifecycleConfig + */ + public $instanceLifecycleConfig; + + /** + * @var int + */ + public $instanceSoftConcurrency; + + /** + * @var string + */ + public $instanceType; + + /** + * @var string + */ + public $lastModifiedTime; + + /** + * @var string[] + */ + public $layers; + + /** + * @var int + */ + public $memorySize; + + /** + * @var string + */ + public $runtime; + + /** + * @var int + */ + public $timeout; + } diff --git a/fc-open-20210406/src/Models/GetLayerVersionHeaders.php b/fc-open-20210406/src/Models/GetLayerVersionHeaders.php index 9f22e636fa..e43bffccf3 100644 --- a/fc-open-20210406/src/Models/GetLayerVersionHeaders.php +++ b/fc-open-20210406/src/Models/GetLayerVersionHeaders.php @@ -1,41 +1,18 @@ 'X-Fc-Account-Id', - 'xFcDate' => 'X-Fc-Date', - 'xFcTraceId' => 'X-Fc-Trace-Id', + 'xFcDate' => 'X-Fc-Date', + 'xFcTraceId' => 'X-Fc-Trace-Id', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->commonHeaders) { $res['commonHeaders'] = $this->commonHeaders; @@ -49,31 +26,43 @@ public function toMap() if (null !== $this->xFcTraceId) { $res['X-Fc-Trace-Id'] = $this->xFcTraceId; } - return $res; } - /** * @param array $map - * * @return GetLayerVersionHeaders */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['commonHeaders'])) { + if(isset($map['commonHeaders'])){ $model->commonHeaders = $map['commonHeaders']; } - if (isset($map['X-Fc-Account-Id'])) { + if(isset($map['X-Fc-Account-Id'])){ $model->xFcAccountId = $map['X-Fc-Account-Id']; } - if (isset($map['X-Fc-Date'])) { + if(isset($map['X-Fc-Date'])){ $model->xFcDate = $map['X-Fc-Date']; } - if (isset($map['X-Fc-Trace-Id'])) { + if(isset($map['X-Fc-Trace-Id'])){ $model->xFcTraceId = $map['X-Fc-Trace-Id']; } - return $model; } + public $commonHeaders; + + /** + * @var string + */ + public $xFcAccountId; + + /** + * @var string + */ + public $xFcDate; + + /** + * @var string + */ + public $xFcTraceId; + } diff --git a/fc-open-20210406/src/Models/GetLayerVersionResponse.php b/fc-open-20210406/src/Models/GetLayerVersionResponse.php index a5be696ebd..4c7716f635 100644 --- a/fc-open-20210406/src/Models/GetLayerVersionResponse.php +++ b/fc-open-20210406/src/Models/GetLayerVersionResponse.php @@ -1,41 +1,23 @@ 'headers', + 'headers' => 'headers', 'statusCode' => 'statusCode', ]; - - 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; @@ -46,28 +28,38 @@ public function toMap() if (null !== $this->body) { $res['body'] = null !== $this->body ? $this->body->toMap() : null; } - return $res; } - /** * @param array $map - * * @return GetLayerVersionResponse */ - 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 = Layer::fromMap($map['body']); } - return $model; } + /** + * @var string[] + */ + public $headers; + + /** + * @var int + */ + public $statusCode; + + /** + * @var Layer + */ + public $body; + } diff --git a/fc-open-20210406/src/Models/GetProvisionConfigHeaders.php b/fc-open-20210406/src/Models/GetProvisionConfigHeaders.php index d140ea1ae8..442e6ae283 100644 --- a/fc-open-20210406/src/Models/GetProvisionConfigHeaders.php +++ b/fc-open-20210406/src/Models/GetProvisionConfigHeaders.php @@ -1,41 +1,18 @@ 'X-Fc-Account-Id', - 'xFcDate' => 'X-Fc-Date', - 'xFcTraceId' => 'X-Fc-Trace-Id', + 'xFcDate' => 'X-Fc-Date', + 'xFcTraceId' => 'X-Fc-Trace-Id', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->commonHeaders) { $res['commonHeaders'] = $this->commonHeaders; @@ -49,31 +26,43 @@ public function toMap() if (null !== $this->xFcTraceId) { $res['X-Fc-Trace-Id'] = $this->xFcTraceId; } - return $res; } - /** * @param array $map - * * @return GetProvisionConfigHeaders */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['commonHeaders'])) { + if(isset($map['commonHeaders'])){ $model->commonHeaders = $map['commonHeaders']; } - if (isset($map['X-Fc-Account-Id'])) { + if(isset($map['X-Fc-Account-Id'])){ $model->xFcAccountId = $map['X-Fc-Account-Id']; } - if (isset($map['X-Fc-Date'])) { + if(isset($map['X-Fc-Date'])){ $model->xFcDate = $map['X-Fc-Date']; } - if (isset($map['X-Fc-Trace-Id'])) { + if(isset($map['X-Fc-Trace-Id'])){ $model->xFcTraceId = $map['X-Fc-Trace-Id']; } - return $model; } + public $commonHeaders; + + /** + * @var string + */ + public $xFcAccountId; + + /** + * @var string + */ + public $xFcDate; + + /** + * @var string + */ + public $xFcTraceId; + } diff --git a/fc-open-20210406/src/Models/GetProvisionConfigRequest.php b/fc-open-20210406/src/Models/GetProvisionConfigRequest.php index de4613a729..9e34cb7e84 100644 --- a/fc-open-20210406/src/Models/GetProvisionConfigRequest.php +++ b/fc-open-20210406/src/Models/GetProvisionConfigRequest.php @@ -1,47 +1,36 @@ 'qualifier', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->qualifier) { $res['qualifier'] = $this->qualifier; } - return $res; } - /** * @param array $map - * * @return GetProvisionConfigRequest */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['qualifier'])) { + if(isset($map['qualifier'])){ $model->qualifier = $map['qualifier']; } - return $model; } + /** + * @var string + */ + public $qualifier; + } diff --git a/fc-open-20210406/src/Models/GetProvisionConfigResponse.php b/fc-open-20210406/src/Models/GetProvisionConfigResponse.php index 6f0b69037a..4549fd5a11 100644 --- a/fc-open-20210406/src/Models/GetProvisionConfigResponse.php +++ b/fc-open-20210406/src/Models/GetProvisionConfigResponse.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 GetProvisionConfigResponse */ - 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 = GetProvisionConfigResponseBody::fromMap($map['body']); } - return $model; } + /** + * @var string[] + */ + public $headers; + + /** + * @var int + */ + public $statusCode; + + /** + * @var GetProvisionConfigResponseBody + */ + public $body; + } diff --git a/fc-open-20210406/src/Models/GetProvisionConfigResponseBody.php b/fc-open-20210406/src/Models/GetProvisionConfigResponseBody.php index cf354c5393..dba8bb391a 100644 --- a/fc-open-20210406/src/Models/GetProvisionConfigResponseBody.php +++ b/fc-open-20210406/src/Models/GetProvisionConfigResponseBody.php @@ -1,63 +1,25 @@ 'alwaysAllocateCPU', - 'current' => 'current', - 'currentError' => 'currentError', - 'resource' => 'resource', - 'scheduledActions' => 'scheduledActions', - 'target' => 'target', + 'alwaysAllocateCPU' => 'alwaysAllocateCPU', + 'current' => 'current', + 'currentError' => 'currentError', + 'resource' => 'resource', + 'scheduledActions' => 'scheduledActions', + 'target' => 'target', 'targetTrackingPolicies' => 'targetTrackingPolicies', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->alwaysAllocateCPU) { $res['alwaysAllocateCPU'] = $this->alwaysAllocateCPU; @@ -73,9 +35,9 @@ public function toMap() } if (null !== $this->scheduledActions) { $res['scheduledActions'] = []; - if (null !== $this->scheduledActions && \is_array($this->scheduledActions)) { + if(null !== $this->scheduledActions && is_array($this->scheduledActions)){ $n = 0; - foreach ($this->scheduledActions as $item) { + foreach($this->scheduledActions as $item){ $res['scheduledActions'][$n++] = null !== $item ? $item->toMap() : $item; } } @@ -85,59 +47,89 @@ public function toMap() } if (null !== $this->targetTrackingPolicies) { $res['targetTrackingPolicies'] = []; - if (null !== $this->targetTrackingPolicies && \is_array($this->targetTrackingPolicies)) { + if(null !== $this->targetTrackingPolicies && is_array($this->targetTrackingPolicies)){ $n = 0; - foreach ($this->targetTrackingPolicies as $item) { + foreach($this->targetTrackingPolicies as $item){ $res['targetTrackingPolicies'][$n++] = null !== $item ? $item->toMap() : $item; } } } - return $res; } - /** * @param array $map - * * @return GetProvisionConfigResponseBody */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['alwaysAllocateCPU'])) { + if(isset($map['alwaysAllocateCPU'])){ $model->alwaysAllocateCPU = $map['alwaysAllocateCPU']; } - if (isset($map['current'])) { + if(isset($map['current'])){ $model->current = $map['current']; } - if (isset($map['currentError'])) { + if(isset($map['currentError'])){ $model->currentError = $map['currentError']; } - if (isset($map['resource'])) { + if(isset($map['resource'])){ $model->resource = $map['resource']; } - if (isset($map['scheduledActions'])) { - if (!empty($map['scheduledActions'])) { + if(isset($map['scheduledActions'])){ + if(!empty($map['scheduledActions'])){ $model->scheduledActions = []; - $n = 0; - foreach ($map['scheduledActions'] as $item) { + $n = 0; + foreach($map['scheduledActions'] as $item) { $model->scheduledActions[$n++] = null !== $item ? ScheduledActions::fromMap($item) : $item; } } } - if (isset($map['target'])) { + if(isset($map['target'])){ $model->target = $map['target']; } - if (isset($map['targetTrackingPolicies'])) { - if (!empty($map['targetTrackingPolicies'])) { + if(isset($map['targetTrackingPolicies'])){ + if(!empty($map['targetTrackingPolicies'])){ $model->targetTrackingPolicies = []; - $n = 0; - foreach ($map['targetTrackingPolicies'] as $item) { + $n = 0; + foreach($map['targetTrackingPolicies'] as $item) { $model->targetTrackingPolicies[$n++] = null !== $item ? TargetTrackingPolicies::fromMap($item) : $item; } } } - return $model; } + /** + * @var bool + */ + public $alwaysAllocateCPU; + + /** + * @var int + */ + public $current; + + /** + * @var string + */ + public $currentError; + + /** + * @var string + */ + public $resource; + + /** + * @var ScheduledActions[] + */ + public $scheduledActions; + + /** + * @var int + */ + public $target; + + /** + * @var TargetTrackingPolicies[] + */ + public $targetTrackingPolicies; + } diff --git a/fc-open-20210406/src/Models/GetResourceTagsHeaders.php b/fc-open-20210406/src/Models/GetResourceTagsHeaders.php index e46b632320..289a61327e 100644 --- a/fc-open-20210406/src/Models/GetResourceTagsHeaders.php +++ b/fc-open-20210406/src/Models/GetResourceTagsHeaders.php @@ -1,41 +1,18 @@ 'X-Fc-Account-Id', - 'xFcDate' => 'X-Fc-Date', - 'xFcTraceId' => 'X-Fc-Trace-Id', + 'xFcDate' => 'X-Fc-Date', + 'xFcTraceId' => 'X-Fc-Trace-Id', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->commonHeaders) { $res['commonHeaders'] = $this->commonHeaders; @@ -49,31 +26,43 @@ public function toMap() if (null !== $this->xFcTraceId) { $res['X-Fc-Trace-Id'] = $this->xFcTraceId; } - return $res; } - /** * @param array $map - * * @return GetResourceTagsHeaders */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['commonHeaders'])) { + if(isset($map['commonHeaders'])){ $model->commonHeaders = $map['commonHeaders']; } - if (isset($map['X-Fc-Account-Id'])) { + if(isset($map['X-Fc-Account-Id'])){ $model->xFcAccountId = $map['X-Fc-Account-Id']; } - if (isset($map['X-Fc-Date'])) { + if(isset($map['X-Fc-Date'])){ $model->xFcDate = $map['X-Fc-Date']; } - if (isset($map['X-Fc-Trace-Id'])) { + if(isset($map['X-Fc-Trace-Id'])){ $model->xFcTraceId = $map['X-Fc-Trace-Id']; } - return $model; } + public $commonHeaders; + + /** + * @var string + */ + public $xFcAccountId; + + /** + * @var string + */ + public $xFcDate; + + /** + * @var string + */ + public $xFcTraceId; + } diff --git a/fc-open-20210406/src/Models/GetResourceTagsRequest.php b/fc-open-20210406/src/Models/GetResourceTagsRequest.php index c027cdcd4d..307fb505b4 100644 --- a/fc-open-20210406/src/Models/GetResourceTagsRequest.php +++ b/fc-open-20210406/src/Models/GetResourceTagsRequest.php @@ -1,47 +1,36 @@ 'resourceArn', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->resourceArn) { $res['resourceArn'] = $this->resourceArn; } - return $res; } - /** * @param array $map - * * @return GetResourceTagsRequest */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['resourceArn'])) { + if(isset($map['resourceArn'])){ $model->resourceArn = $map['resourceArn']; } - return $model; } + /** + * @var string + */ + public $resourceArn; + } diff --git a/fc-open-20210406/src/Models/GetResourceTagsResponse.php b/fc-open-20210406/src/Models/GetResourceTagsResponse.php index 6ee8746aa4..8aad745ffa 100644 --- a/fc-open-20210406/src/Models/GetResourceTagsResponse.php +++ b/fc-open-20210406/src/Models/GetResourceTagsResponse.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 GetResourceTagsResponse */ - 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 = GetResourceTagsResponseBody::fromMap($map['body']); } - return $model; } + /** + * @var string[] + */ + public $headers; + + /** + * @var int + */ + public $statusCode; + + /** + * @var GetResourceTagsResponseBody + */ + public $body; + } diff --git a/fc-open-20210406/src/Models/GetResourceTagsResponseBody.php b/fc-open-20210406/src/Models/GetResourceTagsResponseBody.php index 83dfdff2c4..9f43486a6f 100644 --- a/fc-open-20210406/src/Models/GetResourceTagsResponseBody.php +++ b/fc-open-20210406/src/Models/GetResourceTagsResponseBody.php @@ -1,33 +1,17 @@ 'resourceArn', - 'tags' => 'tags', + 'tags' => 'tags', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->resourceArn) { $res['resourceArn'] = $this->resourceArn; @@ -35,25 +19,30 @@ public function toMap() if (null !== $this->tags) { $res['tags'] = $this->tags; } - return $res; } - /** * @param array $map - * * @return GetResourceTagsResponseBody */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['resourceArn'])) { + if(isset($map['resourceArn'])){ $model->resourceArn = $map['resourceArn']; } - if (isset($map['tags'])) { + if(isset($map['tags'])){ $model->tags = $map['tags']; } - return $model; } + /** + * @var string + */ + public $resourceArn; + + /** + * @var string[] + */ + public $tags; + } diff --git a/fc-open-20210406/src/Models/GetServiceHeaders.php b/fc-open-20210406/src/Models/GetServiceHeaders.php index dd782f8b84..5ed7e484f7 100644 --- a/fc-open-20210406/src/Models/GetServiceHeaders.php +++ b/fc-open-20210406/src/Models/GetServiceHeaders.php @@ -1,41 +1,18 @@ 'X-Fc-Account-Id', - 'xFcDate' => 'X-Fc-Date', - 'xFcTraceId' => 'X-Fc-Trace-Id', + 'xFcDate' => 'X-Fc-Date', + 'xFcTraceId' => 'X-Fc-Trace-Id', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->commonHeaders) { $res['commonHeaders'] = $this->commonHeaders; @@ -49,31 +26,43 @@ public function toMap() if (null !== $this->xFcTraceId) { $res['X-Fc-Trace-Id'] = $this->xFcTraceId; } - return $res; } - /** * @param array $map - * * @return GetServiceHeaders */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['commonHeaders'])) { + if(isset($map['commonHeaders'])){ $model->commonHeaders = $map['commonHeaders']; } - if (isset($map['X-Fc-Account-Id'])) { + if(isset($map['X-Fc-Account-Id'])){ $model->xFcAccountId = $map['X-Fc-Account-Id']; } - if (isset($map['X-Fc-Date'])) { + if(isset($map['X-Fc-Date'])){ $model->xFcDate = $map['X-Fc-Date']; } - if (isset($map['X-Fc-Trace-Id'])) { + if(isset($map['X-Fc-Trace-Id'])){ $model->xFcTraceId = $map['X-Fc-Trace-Id']; } - return $model; } + public $commonHeaders; + + /** + * @var string + */ + public $xFcAccountId; + + /** + * @var string + */ + public $xFcDate; + + /** + * @var string + */ + public $xFcTraceId; + } diff --git a/fc-open-20210406/src/Models/GetServiceRequest.php b/fc-open-20210406/src/Models/GetServiceRequest.php index cbb811bebd..5f0b7ef34c 100644 --- a/fc-open-20210406/src/Models/GetServiceRequest.php +++ b/fc-open-20210406/src/Models/GetServiceRequest.php @@ -1,47 +1,36 @@ 'qualifier', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->qualifier) { $res['qualifier'] = $this->qualifier; } - return $res; } - /** * @param array $map - * * @return GetServiceRequest */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['qualifier'])) { + if(isset($map['qualifier'])){ $model->qualifier = $map['qualifier']; } - return $model; } + /** + * @var string + */ + public $qualifier; + } diff --git a/fc-open-20210406/src/Models/GetServiceResponse.php b/fc-open-20210406/src/Models/GetServiceResponse.php index 9d86c72885..f4609f9e1d 100644 --- a/fc-open-20210406/src/Models/GetServiceResponse.php +++ b/fc-open-20210406/src/Models/GetServiceResponse.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 GetServiceResponse */ - 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 = GetServiceResponseBody::fromMap($map['body']); } - return $model; } + /** + * @var string[] + */ + public $headers; + + /** + * @var int + */ + public $statusCode; + + /** + * @var GetServiceResponseBody + */ + public $body; + } diff --git a/fc-open-20210406/src/Models/GetServiceResponseBody.php b/fc-open-20210406/src/Models/GetServiceResponseBody.php index f8aca71591..3305daa8f5 100644 --- a/fc-open-20210406/src/Models/GetServiceResponseBody.php +++ b/fc-open-20210406/src/Models/GetServiceResponseBody.php @@ -1,87 +1,31 @@ 'createdTime', - 'description' => 'description', - 'internetAccess' => 'internetAccess', + 'createdTime' => 'createdTime', + 'description' => 'description', + 'internetAccess' => 'internetAccess', 'lastModifiedTime' => 'lastModifiedTime', - 'logConfig' => 'logConfig', - 'nasConfig' => 'nasConfig', - 'role' => 'role', - 'serviceId' => 'serviceId', - 'serviceName' => 'serviceName', - 'tracingConfig' => 'tracingConfig', - 'vpcConfig' => 'vpcConfig', + 'logConfig' => 'logConfig', + 'nasConfig' => 'nasConfig', + 'role' => 'role', + 'serviceId' => 'serviceId', + 'serviceName' => 'serviceName', + 'tracingConfig' => 'tracingConfig', + 'vpcConfig' => 'vpcConfig', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->createdTime) { $res['createdTime'] = $this->createdTime; @@ -116,52 +60,102 @@ public function toMap() if (null !== $this->vpcConfig) { $res['vpcConfig'] = null !== $this->vpcConfig ? $this->vpcConfig->toMap() : null; } - return $res; } - /** * @param array $map - * * @return GetServiceResponseBody */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['createdTime'])) { + if(isset($map['createdTime'])){ $model->createdTime = $map['createdTime']; } - if (isset($map['description'])) { + if(isset($map['description'])){ $model->description = $map['description']; } - if (isset($map['internetAccess'])) { + if(isset($map['internetAccess'])){ $model->internetAccess = $map['internetAccess']; } - if (isset($map['lastModifiedTime'])) { + if(isset($map['lastModifiedTime'])){ $model->lastModifiedTime = $map['lastModifiedTime']; } - if (isset($map['logConfig'])) { + if(isset($map['logConfig'])){ $model->logConfig = LogConfig::fromMap($map['logConfig']); } - if (isset($map['nasConfig'])) { + if(isset($map['nasConfig'])){ $model->nasConfig = NASConfig::fromMap($map['nasConfig']); } - if (isset($map['role'])) { + if(isset($map['role'])){ $model->role = $map['role']; } - if (isset($map['serviceId'])) { + if(isset($map['serviceId'])){ $model->serviceId = $map['serviceId']; } - if (isset($map['serviceName'])) { + if(isset($map['serviceName'])){ $model->serviceName = $map['serviceName']; } - if (isset($map['tracingConfig'])) { + if(isset($map['tracingConfig'])){ $model->tracingConfig = TracingConfig::fromMap($map['tracingConfig']); } - if (isset($map['vpcConfig'])) { + if(isset($map['vpcConfig'])){ $model->vpcConfig = VPCConfig::fromMap($map['vpcConfig']); } - return $model; } + /** + * @var string + */ + public $createdTime; + + /** + * @var string + */ + public $description; + + /** + * @var bool + */ + public $internetAccess; + + /** + * @var string + */ + public $lastModifiedTime; + + /** + * @var LogConfig + */ + public $logConfig; + + /** + * @var NASConfig + */ + public $nasConfig; + + /** + * @var string + */ + public $role; + + /** + * @var string + */ + public $serviceId; + + /** + * @var string + */ + public $serviceName; + + /** + * @var TracingConfig + */ + public $tracingConfig; + + /** + * @var VPCConfig + */ + public $vpcConfig; + } diff --git a/fc-open-20210406/src/Models/GetStatefulAsyncInvocationHeaders.php b/fc-open-20210406/src/Models/GetStatefulAsyncInvocationHeaders.php index dea4e2f7e6..87dcbba57b 100644 --- a/fc-open-20210406/src/Models/GetStatefulAsyncInvocationHeaders.php +++ b/fc-open-20210406/src/Models/GetStatefulAsyncInvocationHeaders.php @@ -1,59 +1,21 @@ 'X-Fc-Account-Id', - 'xFcCodeChecksum' => 'X-Fc-Code-Checksum', - 'xFcDate' => 'X-Fc-Date', + 'xFcAccountId' => 'X-Fc-Account-Id', + 'xFcCodeChecksum' => 'X-Fc-Code-Checksum', + 'xFcDate' => 'X-Fc-Date', 'xFcInvocationType' => 'X-Fc-Invocation-Type', - 'xFcLogType' => 'X-Fc-Log-Type', - 'xFcTraceId' => 'X-Fc-Trace-Id', + 'xFcLogType' => 'X-Fc-Log-Type', + 'xFcTraceId' => 'X-Fc-Trace-Id', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->commonHeaders) { $res['commonHeaders'] = $this->commonHeaders; @@ -76,40 +38,67 @@ public function toMap() if (null !== $this->xFcTraceId) { $res['X-Fc-Trace-Id'] = $this->xFcTraceId; } - return $res; } - /** * @param array $map - * * @return GetStatefulAsyncInvocationHeaders */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['commonHeaders'])) { + if(isset($map['commonHeaders'])){ $model->commonHeaders = $map['commonHeaders']; } - if (isset($map['X-Fc-Account-Id'])) { + if(isset($map['X-Fc-Account-Id'])){ $model->xFcAccountId = $map['X-Fc-Account-Id']; } - if (isset($map['X-Fc-Code-Checksum'])) { + if(isset($map['X-Fc-Code-Checksum'])){ $model->xFcCodeChecksum = $map['X-Fc-Code-Checksum']; } - if (isset($map['X-Fc-Date'])) { + if(isset($map['X-Fc-Date'])){ $model->xFcDate = $map['X-Fc-Date']; } - if (isset($map['X-Fc-Invocation-Type'])) { + if(isset($map['X-Fc-Invocation-Type'])){ $model->xFcInvocationType = $map['X-Fc-Invocation-Type']; } - if (isset($map['X-Fc-Log-Type'])) { + if(isset($map['X-Fc-Log-Type'])){ $model->xFcLogType = $map['X-Fc-Log-Type']; } - if (isset($map['X-Fc-Trace-Id'])) { + if(isset($map['X-Fc-Trace-Id'])){ $model->xFcTraceId = $map['X-Fc-Trace-Id']; } - return $model; } + public $commonHeaders; + + /** + * @var string + */ + public $xFcAccountId; + + /** + * @var string + */ + public $xFcCodeChecksum; + + /** + * @var string + */ + public $xFcDate; + + /** + * @var string + */ + public $xFcInvocationType; + + /** + * @var string + */ + public $xFcLogType; + + /** + * @var string + */ + public $xFcTraceId; + } diff --git a/fc-open-20210406/src/Models/GetStatefulAsyncInvocationRequest.php b/fc-open-20210406/src/Models/GetStatefulAsyncInvocationRequest.php index 41174bb542..892d9bd577 100644 --- a/fc-open-20210406/src/Models/GetStatefulAsyncInvocationRequest.php +++ b/fc-open-20210406/src/Models/GetStatefulAsyncInvocationRequest.php @@ -1,47 +1,36 @@ 'qualifier', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->qualifier) { $res['qualifier'] = $this->qualifier; } - return $res; } - /** * @param array $map - * * @return GetStatefulAsyncInvocationRequest */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['qualifier'])) { + if(isset($map['qualifier'])){ $model->qualifier = $map['qualifier']; } - return $model; } + /** + * @var string + */ + public $qualifier; + } diff --git a/fc-open-20210406/src/Models/GetStatefulAsyncInvocationResponse.php b/fc-open-20210406/src/Models/GetStatefulAsyncInvocationResponse.php index cd525111e8..acb870f858 100644 --- a/fc-open-20210406/src/Models/GetStatefulAsyncInvocationResponse.php +++ b/fc-open-20210406/src/Models/GetStatefulAsyncInvocationResponse.php @@ -1,41 +1,23 @@ 'headers', + 'headers' => 'headers', 'statusCode' => 'statusCode', ]; - - 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; @@ -46,28 +28,38 @@ public function toMap() if (null !== $this->body) { $res['body'] = null !== $this->body ? $this->body->toMap() : null; } - return $res; } - /** * @param array $map - * * @return GetStatefulAsyncInvocationResponse */ - 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 = StatefulAsyncInvocation::fromMap($map['body']); } - return $model; } + /** + * @var string[] + */ + public $headers; + + /** + * @var int + */ + public $statusCode; + + /** + * @var StatefulAsyncInvocation + */ + public $body; + } diff --git a/fc-open-20210406/src/Models/GetTriggerHeaders.php b/fc-open-20210406/src/Models/GetTriggerHeaders.php index ddf3901ac0..1613c6b199 100644 --- a/fc-open-20210406/src/Models/GetTriggerHeaders.php +++ b/fc-open-20210406/src/Models/GetTriggerHeaders.php @@ -1,41 +1,18 @@ 'X-Fc-Account-Id', - 'xFcDate' => 'X-Fc-Date', - 'xFcTraceId' => 'X-Fc-Trace-Id', + 'xFcDate' => 'X-Fc-Date', + 'xFcTraceId' => 'X-Fc-Trace-Id', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->commonHeaders) { $res['commonHeaders'] = $this->commonHeaders; @@ -49,31 +26,43 @@ public function toMap() if (null !== $this->xFcTraceId) { $res['X-Fc-Trace-Id'] = $this->xFcTraceId; } - return $res; } - /** * @param array $map - * * @return GetTriggerHeaders */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['commonHeaders'])) { + if(isset($map['commonHeaders'])){ $model->commonHeaders = $map['commonHeaders']; } - if (isset($map['X-Fc-Account-Id'])) { + if(isset($map['X-Fc-Account-Id'])){ $model->xFcAccountId = $map['X-Fc-Account-Id']; } - if (isset($map['X-Fc-Date'])) { + if(isset($map['X-Fc-Date'])){ $model->xFcDate = $map['X-Fc-Date']; } - if (isset($map['X-Fc-Trace-Id'])) { + if(isset($map['X-Fc-Trace-Id'])){ $model->xFcTraceId = $map['X-Fc-Trace-Id']; } - return $model; } + public $commonHeaders; + + /** + * @var string + */ + public $xFcAccountId; + + /** + * @var string + */ + public $xFcDate; + + /** + * @var string + */ + public $xFcTraceId; + } diff --git a/fc-open-20210406/src/Models/GetTriggerResponse.php b/fc-open-20210406/src/Models/GetTriggerResponse.php index fe8d5e50fa..fd328574e6 100644 --- a/fc-open-20210406/src/Models/GetTriggerResponse.php +++ b/fc-open-20210406/src/Models/GetTriggerResponse.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 GetTriggerResponse */ - 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 = GetTriggerResponseBody::fromMap($map['body']); } - return $model; } + /** + * @var string[] + */ + public $headers; + + /** + * @var int + */ + public $statusCode; + + /** + * @var GetTriggerResponseBody + */ + public $body; + } diff --git a/fc-open-20210406/src/Models/GetTriggerResponseBody.php b/fc-open-20210406/src/Models/GetTriggerResponseBody.php index 5c50db0797..987882211b 100644 --- a/fc-open-20210406/src/Models/GetTriggerResponseBody.php +++ b/fc-open-20210406/src/Models/GetTriggerResponseBody.php @@ -1,99 +1,28 @@ 'createdTime', - 'description' => 'description', - 'domainName' => 'domainName', - 'invocationRole' => 'invocationRole', + 'createdTime' => 'createdTime', + 'description' => 'description', + 'domainName' => 'domainName', + 'invocationRole' => 'invocationRole', 'lastModifiedTime' => 'lastModifiedTime', - 'qualifier' => 'qualifier', - 'sourceArn' => 'sourceArn', - 'triggerConfig' => 'triggerConfig', - 'triggerId' => 'triggerId', - 'triggerName' => 'triggerName', - 'triggerType' => 'triggerType', - 'urlInternet' => 'urlInternet', - 'urlIntranet' => 'urlIntranet', + 'qualifier' => 'qualifier', + 'sourceArn' => 'sourceArn', + 'triggerConfig' => 'triggerConfig', + 'triggerId' => 'triggerId', + 'triggerName' => 'triggerName', + 'triggerType' => 'triggerType', + 'urlInternet' => 'urlInternet', + 'urlIntranet' => 'urlIntranet', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->createdTime) { $res['createdTime'] = $this->createdTime; @@ -134,58 +63,118 @@ public function toMap() if (null !== $this->urlIntranet) { $res['urlIntranet'] = $this->urlIntranet; } - return $res; } - /** * @param array $map - * * @return GetTriggerResponseBody */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['createdTime'])) { + if(isset($map['createdTime'])){ $model->createdTime = $map['createdTime']; } - if (isset($map['description'])) { + if(isset($map['description'])){ $model->description = $map['description']; } - if (isset($map['domainName'])) { + if(isset($map['domainName'])){ $model->domainName = $map['domainName']; } - if (isset($map['invocationRole'])) { + if(isset($map['invocationRole'])){ $model->invocationRole = $map['invocationRole']; } - if (isset($map['lastModifiedTime'])) { + if(isset($map['lastModifiedTime'])){ $model->lastModifiedTime = $map['lastModifiedTime']; } - if (isset($map['qualifier'])) { + if(isset($map['qualifier'])){ $model->qualifier = $map['qualifier']; } - if (isset($map['sourceArn'])) { + if(isset($map['sourceArn'])){ $model->sourceArn = $map['sourceArn']; } - if (isset($map['triggerConfig'])) { + if(isset($map['triggerConfig'])){ $model->triggerConfig = $map['triggerConfig']; } - if (isset($map['triggerId'])) { + if(isset($map['triggerId'])){ $model->triggerId = $map['triggerId']; } - if (isset($map['triggerName'])) { + if(isset($map['triggerName'])){ $model->triggerName = $map['triggerName']; } - if (isset($map['triggerType'])) { + if(isset($map['triggerType'])){ $model->triggerType = $map['triggerType']; } - if (isset($map['urlInternet'])) { + if(isset($map['urlInternet'])){ $model->urlInternet = $map['urlInternet']; } - if (isset($map['urlIntranet'])) { + if(isset($map['urlIntranet'])){ $model->urlIntranet = $map['urlIntranet']; } - return $model; } + /** + * @var string + */ + public $createdTime; + + /** + * @var string + */ + public $description; + + /** + * @var string + */ + public $domainName; + + /** + * @var string + */ + public $invocationRole; + + /** + * @var string + */ + public $lastModifiedTime; + + /** + * @var string + */ + public $qualifier; + + /** + * @var string + */ + public $sourceArn; + + /** + * @var string + */ + public $triggerConfig; + + /** + * @var string + */ + public $triggerId; + + /** + * @var string + */ + public $triggerName; + + /** + * @var string + */ + public $triggerType; + + /** + * @var string + */ + public $urlInternet; + + /** + * @var string + */ + public $urlIntranet; + } diff --git a/fc-open-20210406/src/Models/HTTPTriggerConfig.php b/fc-open-20210406/src/Models/HTTPTriggerConfig.php index e4aad2e84c..ca7c3f5935 100644 --- a/fc-open-20210406/src/Models/HTTPTriggerConfig.php +++ b/fc-open-20210406/src/Models/HTTPTriggerConfig.php @@ -1,33 +1,17 @@ 'authType', - 'methods' => 'methods', + 'methods' => 'methods', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->authType) { $res['authType'] = $this->authType; @@ -35,27 +19,32 @@ public function toMap() if (null !== $this->methods) { $res['methods'] = $this->methods; } - return $res; } - /** * @param array $map - * * @return HTTPTriggerConfig */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['authType'])) { + if(isset($map['authType'])){ $model->authType = $map['authType']; } - if (isset($map['methods'])) { - if (!empty($map['methods'])) { + if(isset($map['methods'])){ + if(!empty($map['methods'])){ $model->methods = $map['methods']; } } - return $model; } + /** + * @var string + */ + public $authType; + + /** + * @var string[] + */ + public $methods; + } diff --git a/fc-open-20210406/src/Models/InstanceLifecycleConfig.php b/fc-open-20210406/src/Models/InstanceLifecycleConfig.php index 79423c2978..06ea6089ec 100644 --- a/fc-open-20210406/src/Models/InstanceLifecycleConfig.php +++ b/fc-open-20210406/src/Models/InstanceLifecycleConfig.php @@ -1,33 +1,19 @@ 'preFreeze', - 'preStop' => 'preStop', + 'preStop' => 'preStop', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->preFreeze) { $res['preFreeze'] = null !== $this->preFreeze ? $this->preFreeze->toMap() : null; @@ -35,25 +21,30 @@ public function toMap() if (null !== $this->preStop) { $res['preStop'] = null !== $this->preStop ? $this->preStop->toMap() : null; } - return $res; } - /** * @param array $map - * * @return InstanceLifecycleConfig */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['preFreeze'])) { + if(isset($map['preFreeze'])){ $model->preFreeze = LifecycleHook::fromMap($map['preFreeze']); } - if (isset($map['preStop'])) { + if(isset($map['preStop'])){ $model->preStop = LifecycleHook::fromMap($map['preStop']); } - return $model; } + /** + * @var LifecycleHook + */ + public $preFreeze; + + /** + * @var LifecycleHook + */ + public $preStop; + } diff --git a/fc-open-20210406/src/Models/InvokeFunctionHeaders.php b/fc-open-20210406/src/Models/InvokeFunctionHeaders.php index 467f59b45e..2895585061 100644 --- a/fc-open-20210406/src/Models/InvokeFunctionHeaders.php +++ b/fc-open-20210406/src/Models/InvokeFunctionHeaders.php @@ -1,59 +1,21 @@ 'X-Fc-Account-Id', - 'xFcDate' => 'X-Fc-Date', - 'xFcInvocationType' => 'X-Fc-Invocation-Type', - 'xFcLogType' => 'X-Fc-Log-Type', + 'xFcAccountId' => 'X-Fc-Account-Id', + 'xFcDate' => 'X-Fc-Date', + 'xFcInvocationType' => 'X-Fc-Invocation-Type', + 'xFcLogType' => 'X-Fc-Log-Type', 'xFcStatefulAsyncInvocationId' => 'X-Fc-Stateful-Async-Invocation-Id', - 'xFcTraceId' => 'X-Fc-Trace-Id', + 'xFcTraceId' => 'X-Fc-Trace-Id', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->commonHeaders) { $res['commonHeaders'] = $this->commonHeaders; @@ -76,40 +38,67 @@ public function toMap() if (null !== $this->xFcTraceId) { $res['X-Fc-Trace-Id'] = $this->xFcTraceId; } - return $res; } - /** * @param array $map - * * @return InvokeFunctionHeaders */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['commonHeaders'])) { + if(isset($map['commonHeaders'])){ $model->commonHeaders = $map['commonHeaders']; } - if (isset($map['X-Fc-Account-Id'])) { + if(isset($map['X-Fc-Account-Id'])){ $model->xFcAccountId = $map['X-Fc-Account-Id']; } - if (isset($map['X-Fc-Date'])) { + if(isset($map['X-Fc-Date'])){ $model->xFcDate = $map['X-Fc-Date']; } - if (isset($map['X-Fc-Invocation-Type'])) { + if(isset($map['X-Fc-Invocation-Type'])){ $model->xFcInvocationType = $map['X-Fc-Invocation-Type']; } - if (isset($map['X-Fc-Log-Type'])) { + if(isset($map['X-Fc-Log-Type'])){ $model->xFcLogType = $map['X-Fc-Log-Type']; } - if (isset($map['X-Fc-Stateful-Async-Invocation-Id'])) { + if(isset($map['X-Fc-Stateful-Async-Invocation-Id'])){ $model->xFcStatefulAsyncInvocationId = $map['X-Fc-Stateful-Async-Invocation-Id']; } - if (isset($map['X-Fc-Trace-Id'])) { + if(isset($map['X-Fc-Trace-Id'])){ $model->xFcTraceId = $map['X-Fc-Trace-Id']; } - return $model; } + public $commonHeaders; + + /** + * @var string + */ + public $xFcAccountId; + + /** + * @var string + */ + public $xFcDate; + + /** + * @var string + */ + public $xFcInvocationType; + + /** + * @var string + */ + public $xFcLogType; + + /** + * @var string + */ + public $xFcStatefulAsyncInvocationId; + + /** + * @var string + */ + public $xFcTraceId; + } diff --git a/fc-open-20210406/src/Models/InvokeFunctionRequest.php b/fc-open-20210406/src/Models/InvokeFunctionRequest.php index 1d4820c97e..30f74d8a7d 100644 --- a/fc-open-20210406/src/Models/InvokeFunctionRequest.php +++ b/fc-open-20210406/src/Models/InvokeFunctionRequest.php @@ -1,33 +1,17 @@ 'body', + 'body' => 'body', 'qualifier' => 'qualifier', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->body) { $res['body'] = $this->body; @@ -35,25 +19,30 @@ public function toMap() if (null !== $this->qualifier) { $res['qualifier'] = $this->qualifier; } - return $res; } - /** * @param array $map - * * @return InvokeFunctionRequest */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['body'])) { + if(isset($map['body'])){ $model->body = $map['body']; } - if (isset($map['qualifier'])) { + if(isset($map['qualifier'])){ $model->qualifier = $map['qualifier']; } - return $model; } + /** + * @var int[] + */ + public $body; + + /** + * @var string + */ + public $qualifier; + } diff --git a/fc-open-20210406/src/Models/InvokeFunctionResponse.php b/fc-open-20210406/src/Models/InvokeFunctionResponse.php index 48da2260a4..9e35a4e77e 100644 --- a/fc-open-20210406/src/Models/InvokeFunctionResponse.php +++ b/fc-open-20210406/src/Models/InvokeFunctionResponse.php @@ -1,42 +1,22 @@ '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 +27,38 @@ public function toMap() if (null !== $this->body) { $res['body'] = $this->body; } - return $res; } - /** * @param array $map - * * @return InvokeFunctionResponse */ - 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 = $map['body']; } - return $model; } + /** + * @var string[] + */ + public $headers; + + /** + * @var int + */ + public $statusCode; + + /** + * @var int[] + */ + public $body; + } diff --git a/fc-open-20210406/src/Models/JaegerConfig.php b/fc-open-20210406/src/Models/JaegerConfig.php index 852d03e8e1..9d68b78623 100644 --- a/fc-open-20210406/src/Models/JaegerConfig.php +++ b/fc-open-20210406/src/Models/JaegerConfig.php @@ -1,47 +1,36 @@ 'endpoint', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->endpoint) { $res['endpoint'] = $this->endpoint; } - return $res; } - /** * @param array $map - * * @return JaegerConfig */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['endpoint'])) { + if(isset($map['endpoint'])){ $model->endpoint = $map['endpoint']; } - return $model; } + /** + * @var string + */ + public $endpoint; + } diff --git a/fc-open-20210406/src/Models/JobConfig.php b/fc-open-20210406/src/Models/JobConfig.php index d62d49fb57..252b8075bc 100644 --- a/fc-open-20210406/src/Models/JobConfig.php +++ b/fc-open-20210406/src/Models/JobConfig.php @@ -1,33 +1,17 @@ 'maxRetryTime', + 'maxRetryTime' => 'maxRetryTime', 'triggerInterval' => 'triggerInterval', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->maxRetryTime) { $res['maxRetryTime'] = $this->maxRetryTime; @@ -35,25 +19,30 @@ public function toMap() if (null !== $this->triggerInterval) { $res['triggerInterval'] = $this->triggerInterval; } - return $res; } - /** * @param array $map - * * @return JobConfig */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['maxRetryTime'])) { + if(isset($map['maxRetryTime'])){ $model->maxRetryTime = $map['maxRetryTime']; } - if (isset($map['triggerInterval'])) { + if(isset($map['triggerInterval'])){ $model->triggerInterval = $map['triggerInterval']; } - return $model; } + /** + * @var int + */ + public $maxRetryTime; + + /** + * @var int + */ + public $triggerInterval; + } diff --git a/fc-open-20210406/src/Models/JobLogConfig.php b/fc-open-20210406/src/Models/JobLogConfig.php index bd506f3157..2046565ddd 100644 --- a/fc-open-20210406/src/Models/JobLogConfig.php +++ b/fc-open-20210406/src/Models/JobLogConfig.php @@ -1,33 +1,17 @@ 'logstore', - 'project' => 'project', + 'project' => 'project', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->logstore) { $res['logstore'] = $this->logstore; @@ -35,25 +19,30 @@ public function toMap() if (null !== $this->project) { $res['project'] = $this->project; } - return $res; } - /** * @param array $map - * * @return JobLogConfig */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['logstore'])) { + if(isset($map['logstore'])){ $model->logstore = $map['logstore']; } - if (isset($map['project'])) { + if(isset($map['project'])){ $model->project = $map['project']; } - return $model; } + /** + * @var string + */ + public $logstore; + + /** + * @var string + */ + public $project; + } diff --git a/fc-open-20210406/src/Models/Layer.php b/fc-open-20210406/src/Models/Layer.php index 76024d2906..6628d46684 100644 --- a/fc-open-20210406/src/Models/Layer.php +++ b/fc-open-20210406/src/Models/Layer.php @@ -1,93 +1,29 @@ 'acl', - 'arn' => 'arn', - 'arnV2' => 'arnV2', - 'code' => 'code', - 'codeChecksum' => 'codeChecksum', - 'codeSize' => 'codeSize', + 'acl' => 'acl', + 'arn' => 'arn', + 'arnV2' => 'arnV2', + 'code' => 'code', + 'codeChecksum' => 'codeChecksum', + 'codeSize' => 'codeSize', 'compatibleRuntime' => 'compatibleRuntime', - 'createTime' => 'createTime', - 'description' => 'description', - 'layerName' => 'layerName', - 'license' => 'license', - 'version' => 'version', + 'createTime' => 'createTime', + 'description' => 'description', + 'layerName' => 'layerName', + 'license' => 'license', + 'version' => 'version', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->acl) { $res['acl'] = $this->acl; @@ -125,57 +61,112 @@ public function toMap() if (null !== $this->version) { $res['version'] = $this->version; } - return $res; } - /** * @param array $map - * * @return Layer */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['acl'])) { + if(isset($map['acl'])){ $model->acl = $map['acl']; } - if (isset($map['arn'])) { + if(isset($map['arn'])){ $model->arn = $map['arn']; } - if (isset($map['arnV2'])) { + if(isset($map['arnV2'])){ $model->arnV2 = $map['arnV2']; } - if (isset($map['code'])) { + if(isset($map['code'])){ $model->code = LayerCode::fromMap($map['code']); } - if (isset($map['codeChecksum'])) { + if(isset($map['codeChecksum'])){ $model->codeChecksum = $map['codeChecksum']; } - if (isset($map['codeSize'])) { + if(isset($map['codeSize'])){ $model->codeSize = $map['codeSize']; } - if (isset($map['compatibleRuntime'])) { - if (!empty($map['compatibleRuntime'])) { + if(isset($map['compatibleRuntime'])){ + if(!empty($map['compatibleRuntime'])){ $model->compatibleRuntime = $map['compatibleRuntime']; } } - if (isset($map['createTime'])) { + if(isset($map['createTime'])){ $model->createTime = $map['createTime']; } - if (isset($map['description'])) { + if(isset($map['description'])){ $model->description = $map['description']; } - if (isset($map['layerName'])) { + if(isset($map['layerName'])){ $model->layerName = $map['layerName']; } - if (isset($map['license'])) { + if(isset($map['license'])){ $model->license = $map['license']; } - if (isset($map['version'])) { + if(isset($map['version'])){ $model->version = $map['version']; } - return $model; } + /** + * @var int + */ + public $acl; + + /** + * @var string + */ + public $arn; + + /** + * @var string + */ + public $arnV2; + + /** + * @var LayerCode + */ + public $code; + + /** + * @var string + */ + public $codeChecksum; + + /** + * @var int + */ + public $codeSize; + + /** + * @var string[] + */ + public $compatibleRuntime; + + /** + * @var string + */ + public $createTime; + + /** + * @var string + */ + public $description; + + /** + * @var string + */ + public $layerName; + + /** + * @var string + */ + public $license; + + /** + * @var int + */ + public $version; + } diff --git a/fc-open-20210406/src/Models/LayerCode.php b/fc-open-20210406/src/Models/LayerCode.php index bad76cf830..de83a76a68 100644 --- a/fc-open-20210406/src/Models/LayerCode.php +++ b/fc-open-20210406/src/Models/LayerCode.php @@ -1,33 +1,17 @@ 'location', + 'location' => 'location', 'repositoryType' => 'repositoryType', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->location) { $res['location'] = $this->location; @@ -35,25 +19,30 @@ public function toMap() if (null !== $this->repositoryType) { $res['repositoryType'] = $this->repositoryType; } - return $res; } - /** * @param array $map - * * @return LayerCode */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['location'])) { + if(isset($map['location'])){ $model->location = $map['location']; } - if (isset($map['repositoryType'])) { + if(isset($map['repositoryType'])){ $model->repositoryType = $map['repositoryType']; } - return $model; } + /** + * @var string + */ + public $location; + + /** + * @var string + */ + public $repositoryType; + } diff --git a/fc-open-20210406/src/Models/LifecycleHook.php b/fc-open-20210406/src/Models/LifecycleHook.php index 46cee81939..131eebdc08 100644 --- a/fc-open-20210406/src/Models/LifecycleHook.php +++ b/fc-open-20210406/src/Models/LifecycleHook.php @@ -1,33 +1,17 @@ 'handler', 'timeout' => 'timeout', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->handler) { $res['handler'] = $this->handler; @@ -35,25 +19,30 @@ public function toMap() if (null !== $this->timeout) { $res['timeout'] = $this->timeout; } - return $res; } - /** * @param array $map - * * @return LifecycleHook */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['handler'])) { + if(isset($map['handler'])){ $model->handler = $map['handler']; } - if (isset($map['timeout'])) { + if(isset($map['timeout'])){ $model->timeout = $map['timeout']; } - return $model; } + /** + * @var string + */ + public $handler; + + /** + * @var int + */ + public $timeout; + } diff --git a/fc-open-20210406/src/Models/ListAliasesHeaders.php b/fc-open-20210406/src/Models/ListAliasesHeaders.php index d468aa12c2..e4b6d5826b 100644 --- a/fc-open-20210406/src/Models/ListAliasesHeaders.php +++ b/fc-open-20210406/src/Models/ListAliasesHeaders.php @@ -1,41 +1,18 @@ 'X-Fc-Account-Id', - 'xFcDate' => 'X-Fc-Date', - 'xFcTraceId' => 'X-Fc-Trace-Id', + 'xFcDate' => 'X-Fc-Date', + 'xFcTraceId' => 'X-Fc-Trace-Id', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->commonHeaders) { $res['commonHeaders'] = $this->commonHeaders; @@ -49,31 +26,43 @@ public function toMap() if (null !== $this->xFcTraceId) { $res['X-Fc-Trace-Id'] = $this->xFcTraceId; } - return $res; } - /** * @param array $map - * * @return ListAliasesHeaders */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['commonHeaders'])) { + if(isset($map['commonHeaders'])){ $model->commonHeaders = $map['commonHeaders']; } - if (isset($map['X-Fc-Account-Id'])) { + if(isset($map['X-Fc-Account-Id'])){ $model->xFcAccountId = $map['X-Fc-Account-Id']; } - if (isset($map['X-Fc-Date'])) { + if(isset($map['X-Fc-Date'])){ $model->xFcDate = $map['X-Fc-Date']; } - if (isset($map['X-Fc-Trace-Id'])) { + if(isset($map['X-Fc-Trace-Id'])){ $model->xFcTraceId = $map['X-Fc-Trace-Id']; } - return $model; } + public $commonHeaders; + + /** + * @var string + */ + public $xFcAccountId; + + /** + * @var string + */ + public $xFcDate; + + /** + * @var string + */ + public $xFcTraceId; + } diff --git a/fc-open-20210406/src/Models/ListAliasesRequest.php b/fc-open-20210406/src/Models/ListAliasesRequest.php index 1b6b2bac76..648189365f 100644 --- a/fc-open-20210406/src/Models/ListAliasesRequest.php +++ b/fc-open-20210406/src/Models/ListAliasesRequest.php @@ -1,45 +1,19 @@ 'limit', + 'limit' => 'limit', 'nextToken' => 'nextToken', - 'prefix' => 'prefix', - 'startKey' => 'startKey', + 'prefix' => 'prefix', + 'startKey' => 'startKey', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->limit) { $res['limit'] = $this->limit; @@ -53,31 +27,46 @@ public function toMap() if (null !== $this->startKey) { $res['startKey'] = $this->startKey; } - return $res; } - /** * @param array $map - * * @return ListAliasesRequest */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['limit'])) { + if(isset($map['limit'])){ $model->limit = $map['limit']; } - if (isset($map['nextToken'])) { + if(isset($map['nextToken'])){ $model->nextToken = $map['nextToken']; } - if (isset($map['prefix'])) { + if(isset($map['prefix'])){ $model->prefix = $map['prefix']; } - if (isset($map['startKey'])) { + if(isset($map['startKey'])){ $model->startKey = $map['startKey']; } - return $model; } + /** + * @var int + */ + public $limit; + + /** + * @var string + */ + public $nextToken; + + /** + * @var string + */ + public $prefix; + + /** + * @var string + */ + public $startKey; + } diff --git a/fc-open-20210406/src/Models/ListAliasesResponse.php b/fc-open-20210406/src/Models/ListAliasesResponse.php index 8cede0a0e7..e6df357490 100644 --- a/fc-open-20210406/src/Models/ListAliasesResponse.php +++ b/fc-open-20210406/src/Models/ListAliasesResponse.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 ListAliasesResponse */ - 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 = ListAliasesResponseBody::fromMap($map['body']); } - return $model; } + /** + * @var string[] + */ + public $headers; + + /** + * @var int + */ + public $statusCode; + + /** + * @var ListAliasesResponseBody + */ + public $body; + } diff --git a/fc-open-20210406/src/Models/ListAliasesResponseBody.php b/fc-open-20210406/src/Models/ListAliasesResponseBody.php index 000bef8272..a86b4313f3 100644 --- a/fc-open-20210406/src/Models/ListAliasesResponseBody.php +++ b/fc-open-20210406/src/Models/ListAliasesResponseBody.php @@ -1,40 +1,25 @@ 'aliases', + 'aliases' => 'aliases', 'nextToken' => 'nextToken', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->aliases) { $res['aliases'] = []; - if (null !== $this->aliases && \is_array($this->aliases)) { + if(null !== $this->aliases && is_array($this->aliases)){ $n = 0; - foreach ($this->aliases as $item) { + foreach($this->aliases as $item){ $res['aliases'][$n++] = null !== $item ? $item->toMap() : $item; } } @@ -42,31 +27,36 @@ public function toMap() if (null !== $this->nextToken) { $res['nextToken'] = $this->nextToken; } - return $res; } - /** * @param array $map - * * @return ListAliasesResponseBody */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['aliases'])) { - if (!empty($map['aliases'])) { + if(isset($map['aliases'])){ + if(!empty($map['aliases'])){ $model->aliases = []; - $n = 0; - foreach ($map['aliases'] as $item) { + $n = 0; + foreach($map['aliases'] as $item) { $model->aliases[$n++] = null !== $item ? aliases::fromMap($item) : $item; } } } - if (isset($map['nextToken'])) { + if(isset($map['nextToken'])){ $model->nextToken = $map['nextToken']; } - return $model; } + /** + * @var aliases[] + */ + public $aliases; + + /** + * @var string + */ + public $nextToken; + } diff --git a/fc-open-20210406/src/Models/ListAliasesResponseBody/aliases.php b/fc-open-20210406/src/Models/ListAliasesResponseBody/aliases.php index 76e90736ff..06c3aef4e5 100644 --- a/fc-open-20210406/src/Models/ListAliasesResponseBody/aliases.php +++ b/fc-open-20210406/src/Models/ListAliasesResponseBody/aliases.php @@ -1,70 +1,25 @@ 'additionalVersionWeight', - 'aliasName' => 'aliasName', - 'createdTime' => 'createdTime', - 'description' => 'description', - 'lastModifiedTime' => 'lastModifiedTime', - 'resolvePolicy' => 'resolvePolicy', - 'routePolicy' => 'routePolicy', - 'versionId' => 'versionId', + 'aliasName' => 'aliasName', + 'createdTime' => 'createdTime', + 'description' => 'description', + 'lastModifiedTime' => 'lastModifiedTime', + 'resolvePolicy' => 'resolvePolicy', + 'routePolicy' => 'routePolicy', + 'versionId' => 'versionId', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->additionalVersionWeight) { $res['additionalVersionWeight'] = $this->additionalVersionWeight; @@ -90,43 +45,78 @@ public function toMap() if (null !== $this->versionId) { $res['versionId'] = $this->versionId; } - return $res; } - /** * @param array $map - * * @return aliases */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['additionalVersionWeight'])) { + if(isset($map['additionalVersionWeight'])){ $model->additionalVersionWeight = $map['additionalVersionWeight']; } - if (isset($map['aliasName'])) { + if(isset($map['aliasName'])){ $model->aliasName = $map['aliasName']; } - if (isset($map['createdTime'])) { + if(isset($map['createdTime'])){ $model->createdTime = $map['createdTime']; } - if (isset($map['description'])) { + if(isset($map['description'])){ $model->description = $map['description']; } - if (isset($map['lastModifiedTime'])) { + if(isset($map['lastModifiedTime'])){ $model->lastModifiedTime = $map['lastModifiedTime']; } - if (isset($map['resolvePolicy'])) { + if(isset($map['resolvePolicy'])){ $model->resolvePolicy = $map['resolvePolicy']; } - if (isset($map['routePolicy'])) { + if(isset($map['routePolicy'])){ $model->routePolicy = RoutePolicy::fromMap($map['routePolicy']); } - if (isset($map['versionId'])) { + if(isset($map['versionId'])){ $model->versionId = $map['versionId']; } - return $model; } + /** + * @var float[] + */ + public $additionalVersionWeight; + + /** + * @var string + */ + public $aliasName; + + /** + * @var string + */ + public $createdTime; + + /** + * @var string + */ + public $description; + + /** + * @var string + */ + public $lastModifiedTime; + + /** + * @var string + */ + public $resolvePolicy; + + /** + * @var RoutePolicy + */ + public $routePolicy; + + /** + * @var string + */ + public $versionId; + } diff --git a/fc-open-20210406/src/Models/ListCustomDomainsHeaders.php b/fc-open-20210406/src/Models/ListCustomDomainsHeaders.php index 0d5c2c38b3..e7c959800c 100644 --- a/fc-open-20210406/src/Models/ListCustomDomainsHeaders.php +++ b/fc-open-20210406/src/Models/ListCustomDomainsHeaders.php @@ -1,41 +1,18 @@ 'X-Fc-Account-Id', - 'xFcDate' => 'X-Fc-Date', - 'xFcTraceId' => 'X-Fc-Trace-Id', + 'xFcDate' => 'X-Fc-Date', + 'xFcTraceId' => 'X-Fc-Trace-Id', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->commonHeaders) { $res['commonHeaders'] = $this->commonHeaders; @@ -49,31 +26,43 @@ public function toMap() if (null !== $this->xFcTraceId) { $res['X-Fc-Trace-Id'] = $this->xFcTraceId; } - return $res; } - /** * @param array $map - * * @return ListCustomDomainsHeaders */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['commonHeaders'])) { + if(isset($map['commonHeaders'])){ $model->commonHeaders = $map['commonHeaders']; } - if (isset($map['X-Fc-Account-Id'])) { + if(isset($map['X-Fc-Account-Id'])){ $model->xFcAccountId = $map['X-Fc-Account-Id']; } - if (isset($map['X-Fc-Date'])) { + if(isset($map['X-Fc-Date'])){ $model->xFcDate = $map['X-Fc-Date']; } - if (isset($map['X-Fc-Trace-Id'])) { + if(isset($map['X-Fc-Trace-Id'])){ $model->xFcTraceId = $map['X-Fc-Trace-Id']; } - return $model; } + public $commonHeaders; + + /** + * @var string + */ + public $xFcAccountId; + + /** + * @var string + */ + public $xFcDate; + + /** + * @var string + */ + public $xFcTraceId; + } diff --git a/fc-open-20210406/src/Models/ListCustomDomainsRequest.php b/fc-open-20210406/src/Models/ListCustomDomainsRequest.php index 24bd5adf00..0d5fcf73e7 100644 --- a/fc-open-20210406/src/Models/ListCustomDomainsRequest.php +++ b/fc-open-20210406/src/Models/ListCustomDomainsRequest.php @@ -1,45 +1,19 @@ 'limit', + 'limit' => 'limit', 'nextToken' => 'nextToken', - 'prefix' => 'prefix', - 'startKey' => 'startKey', + 'prefix' => 'prefix', + 'startKey' => 'startKey', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->limit) { $res['limit'] = $this->limit; @@ -53,31 +27,46 @@ public function toMap() if (null !== $this->startKey) { $res['startKey'] = $this->startKey; } - return $res; } - /** * @param array $map - * * @return ListCustomDomainsRequest */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['limit'])) { + if(isset($map['limit'])){ $model->limit = $map['limit']; } - if (isset($map['nextToken'])) { + if(isset($map['nextToken'])){ $model->nextToken = $map['nextToken']; } - if (isset($map['prefix'])) { + if(isset($map['prefix'])){ $model->prefix = $map['prefix']; } - if (isset($map['startKey'])) { + if(isset($map['startKey'])){ $model->startKey = $map['startKey']; } - return $model; } + /** + * @var int + */ + public $limit; + + /** + * @var string + */ + public $nextToken; + + /** + * @var string + */ + public $prefix; + + /** + * @var string + */ + public $startKey; + } diff --git a/fc-open-20210406/src/Models/ListCustomDomainsResponse.php b/fc-open-20210406/src/Models/ListCustomDomainsResponse.php index aea96de8f6..63dcdabe5c 100644 --- a/fc-open-20210406/src/Models/ListCustomDomainsResponse.php +++ b/fc-open-20210406/src/Models/ListCustomDomainsResponse.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 ListCustomDomainsResponse */ - 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 = ListCustomDomainsResponseBody::fromMap($map['body']); } - return $model; } + /** + * @var string[] + */ + public $headers; + + /** + * @var int + */ + public $statusCode; + + /** + * @var ListCustomDomainsResponseBody + */ + public $body; + } diff --git a/fc-open-20210406/src/Models/ListCustomDomainsResponseBody.php b/fc-open-20210406/src/Models/ListCustomDomainsResponseBody.php index 7ddd0c1c50..2cfc69597a 100644 --- a/fc-open-20210406/src/Models/ListCustomDomainsResponseBody.php +++ b/fc-open-20210406/src/Models/ListCustomDomainsResponseBody.php @@ -1,40 +1,25 @@ 'customDomains', - 'nextToken' => 'nextToken', + 'nextToken' => 'nextToken', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->customDomains) { $res['customDomains'] = []; - if (null !== $this->customDomains && \is_array($this->customDomains)) { + if(null !== $this->customDomains && is_array($this->customDomains)){ $n = 0; - foreach ($this->customDomains as $item) { + foreach($this->customDomains as $item){ $res['customDomains'][$n++] = null !== $item ? $item->toMap() : $item; } } @@ -42,31 +27,36 @@ public function toMap() if (null !== $this->nextToken) { $res['nextToken'] = $this->nextToken; } - return $res; } - /** * @param array $map - * * @return ListCustomDomainsResponseBody */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['customDomains'])) { - if (!empty($map['customDomains'])) { + if(isset($map['customDomains'])){ + if(!empty($map['customDomains'])){ $model->customDomains = []; - $n = 0; - foreach ($map['customDomains'] as $item) { + $n = 0; + foreach($map['customDomains'] as $item) { $model->customDomains[$n++] = null !== $item ? customDomains::fromMap($item) : $item; } } } - if (isset($map['nextToken'])) { + if(isset($map['nextToken'])){ $model->nextToken = $map['nextToken']; } - return $model; } + /** + * @var customDomains[] + */ + public $customDomains; + + /** + * @var string + */ + public $nextToken; + } diff --git a/fc-open-20210406/src/Models/ListCustomDomainsResponseBody/customDomains.php b/fc-open-20210406/src/Models/ListCustomDomainsResponseBody/customDomains.php index 93148b7f00..3ee6fbbed3 100644 --- a/fc-open-20210406/src/Models/ListCustomDomainsResponseBody/customDomains.php +++ b/fc-open-20210406/src/Models/ListCustomDomainsResponseBody/customDomains.php @@ -1,78 +1,28 @@ 'accountId', - 'apiVersion' => 'apiVersion', - 'certConfig' => 'certConfig', - 'createdTime' => 'createdTime', - 'domainName' => 'domainName', + 'accountId' => 'accountId', + 'apiVersion' => 'apiVersion', + 'certConfig' => 'certConfig', + 'createdTime' => 'createdTime', + 'domainName' => 'domainName', 'lastModifiedTime' => 'lastModifiedTime', - 'protocol' => 'protocol', - 'routeConfig' => 'routeConfig', - 'tlsConfig' => 'tlsConfig', + 'protocol' => 'protocol', + 'routeConfig' => 'routeConfig', + 'tlsConfig' => 'tlsConfig', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->accountId) { $res['accountId'] = $this->accountId; @@ -101,46 +51,86 @@ public function toMap() if (null !== $this->tlsConfig) { $res['tlsConfig'] = null !== $this->tlsConfig ? $this->tlsConfig->toMap() : null; } - return $res; } - /** * @param array $map - * * @return customDomains */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['accountId'])) { + if(isset($map['accountId'])){ $model->accountId = $map['accountId']; } - if (isset($map['apiVersion'])) { + if(isset($map['apiVersion'])){ $model->apiVersion = $map['apiVersion']; } - if (isset($map['certConfig'])) { + if(isset($map['certConfig'])){ $model->certConfig = CertConfig::fromMap($map['certConfig']); } - if (isset($map['createdTime'])) { + if(isset($map['createdTime'])){ $model->createdTime = $map['createdTime']; } - if (isset($map['domainName'])) { + if(isset($map['domainName'])){ $model->domainName = $map['domainName']; } - if (isset($map['lastModifiedTime'])) { + if(isset($map['lastModifiedTime'])){ $model->lastModifiedTime = $map['lastModifiedTime']; } - if (isset($map['protocol'])) { + if(isset($map['protocol'])){ $model->protocol = $map['protocol']; } - if (isset($map['routeConfig'])) { + if(isset($map['routeConfig'])){ $model->routeConfig = RouteConfig::fromMap($map['routeConfig']); } - if (isset($map['tlsConfig'])) { + if(isset($map['tlsConfig'])){ $model->tlsConfig = TLSConfig::fromMap($map['tlsConfig']); } - return $model; } + /** + * @var string + */ + public $accountId; + + /** + * @var string + */ + public $apiVersion; + + /** + * @var CertConfig + */ + public $certConfig; + + /** + * @var string + */ + public $createdTime; + + /** + * @var string + */ + public $domainName; + + /** + * @var string + */ + public $lastModifiedTime; + + /** + * @var string + */ + public $protocol; + + /** + * @var RouteConfig + */ + public $routeConfig; + + /** + * @var TLSConfig + */ + public $tlsConfig; + } diff --git a/fc-open-20210406/src/Models/ListEventSourcesHeaders.php b/fc-open-20210406/src/Models/ListEventSourcesHeaders.php index 9876d5479b..0860da6ca9 100644 --- a/fc-open-20210406/src/Models/ListEventSourcesHeaders.php +++ b/fc-open-20210406/src/Models/ListEventSourcesHeaders.php @@ -1,41 +1,18 @@ 'X-Fc-Account-Id', - 'xFcDate' => 'X-Fc-Date', - 'xFcTraceId' => 'X-Fc-Trace-Id', + 'xFcDate' => 'X-Fc-Date', + 'xFcTraceId' => 'X-Fc-Trace-Id', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->commonHeaders) { $res['commonHeaders'] = $this->commonHeaders; @@ -49,31 +26,43 @@ public function toMap() if (null !== $this->xFcTraceId) { $res['X-Fc-Trace-Id'] = $this->xFcTraceId; } - return $res; } - /** * @param array $map - * * @return ListEventSourcesHeaders */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['commonHeaders'])) { + if(isset($map['commonHeaders'])){ $model->commonHeaders = $map['commonHeaders']; } - if (isset($map['X-Fc-Account-Id'])) { + if(isset($map['X-Fc-Account-Id'])){ $model->xFcAccountId = $map['X-Fc-Account-Id']; } - if (isset($map['X-Fc-Date'])) { + if(isset($map['X-Fc-Date'])){ $model->xFcDate = $map['X-Fc-Date']; } - if (isset($map['X-Fc-Trace-Id'])) { + if(isset($map['X-Fc-Trace-Id'])){ $model->xFcTraceId = $map['X-Fc-Trace-Id']; } - return $model; } + public $commonHeaders; + + /** + * @var string + */ + public $xFcAccountId; + + /** + * @var string + */ + public $xFcDate; + + /** + * @var string + */ + public $xFcTraceId; + } diff --git a/fc-open-20210406/src/Models/ListEventSourcesRequest.php b/fc-open-20210406/src/Models/ListEventSourcesRequest.php index 29f79099e6..1de5a3b413 100644 --- a/fc-open-20210406/src/Models/ListEventSourcesRequest.php +++ b/fc-open-20210406/src/Models/ListEventSourcesRequest.php @@ -1,47 +1,36 @@ 'qualifier', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->qualifier) { $res['qualifier'] = $this->qualifier; } - return $res; } - /** * @param array $map - * * @return ListEventSourcesRequest */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['qualifier'])) { + if(isset($map['qualifier'])){ $model->qualifier = $map['qualifier']; } - return $model; } + /** + * @var string + */ + public $qualifier; + } diff --git a/fc-open-20210406/src/Models/ListEventSourcesResponse.php b/fc-open-20210406/src/Models/ListEventSourcesResponse.php index 0ca7f79850..9f206c8500 100644 --- a/fc-open-20210406/src/Models/ListEventSourcesResponse.php +++ b/fc-open-20210406/src/Models/ListEventSourcesResponse.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 ListEventSourcesResponse */ - 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 = ListEventSourcesResponseBody::fromMap($map['body']); } - return $model; } + /** + * @var string[] + */ + public $headers; + + /** + * @var int + */ + public $statusCode; + + /** + * @var ListEventSourcesResponseBody + */ + public $body; + } diff --git a/fc-open-20210406/src/Models/ListEventSourcesResponseBody.php b/fc-open-20210406/src/Models/ListEventSourcesResponseBody.php index d93dfe5bab..84e1eab225 100644 --- a/fc-open-20210406/src/Models/ListEventSourcesResponseBody.php +++ b/fc-open-20210406/src/Models/ListEventSourcesResponseBody.php @@ -1,60 +1,50 @@ 'eventSources', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->eventSources) { $res['eventSources'] = []; - if (null !== $this->eventSources && \is_array($this->eventSources)) { + if(null !== $this->eventSources && is_array($this->eventSources)){ $n = 0; - foreach ($this->eventSources as $item) { + foreach($this->eventSources as $item){ $res['eventSources'][$n++] = null !== $item ? $item->toMap() : $item; } } } - return $res; } - /** * @param array $map - * * @return ListEventSourcesResponseBody */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['eventSources'])) { - if (!empty($map['eventSources'])) { + if(isset($map['eventSources'])){ + if(!empty($map['eventSources'])){ $model->eventSources = []; - $n = 0; - foreach ($map['eventSources'] as $item) { + $n = 0; + foreach($map['eventSources'] as $item) { $model->eventSources[$n++] = null !== $item ? eventSources::fromMap($item) : $item; } } } - return $model; } + /** + * @var eventSources[] + */ + public $eventSources; + } diff --git a/fc-open-20210406/src/Models/ListEventSourcesResponseBody/eventSources.php b/fc-open-20210406/src/Models/ListEventSourcesResponseBody/eventSources.php index 95f2cb158a..796cc599c4 100644 --- a/fc-open-20210406/src/Models/ListEventSourcesResponseBody/eventSources.php +++ b/fc-open-20210406/src/Models/ListEventSourcesResponseBody/eventSources.php @@ -1,33 +1,17 @@ 'createdTime', - 'sourceArn' => 'sourceArn', + 'sourceArn' => 'sourceArn', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->createdTime) { $res['createdTime'] = $this->createdTime; @@ -35,25 +19,30 @@ public function toMap() if (null !== $this->sourceArn) { $res['sourceArn'] = $this->sourceArn; } - return $res; } - /** * @param array $map - * * @return eventSources */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['createdTime'])) { + if(isset($map['createdTime'])){ $model->createdTime = $map['createdTime']; } - if (isset($map['sourceArn'])) { + if(isset($map['sourceArn'])){ $model->sourceArn = $map['sourceArn']; } - return $model; } + /** + * @var string + */ + public $createdTime; + + /** + * @var string + */ + public $sourceArn; + } diff --git a/fc-open-20210406/src/Models/ListFunctionAsyncInvokeConfigsHeaders.php b/fc-open-20210406/src/Models/ListFunctionAsyncInvokeConfigsHeaders.php index d9794acf38..7d434a1667 100644 --- a/fc-open-20210406/src/Models/ListFunctionAsyncInvokeConfigsHeaders.php +++ b/fc-open-20210406/src/Models/ListFunctionAsyncInvokeConfigsHeaders.php @@ -1,59 +1,21 @@ 'X-Fc-Account-Id', - 'xFcCodeChecksum' => 'X-Fc-Code-Checksum', - 'xFcDate' => 'X-Fc-Date', + 'xFcAccountId' => 'X-Fc-Account-Id', + 'xFcCodeChecksum' => 'X-Fc-Code-Checksum', + 'xFcDate' => 'X-Fc-Date', 'xFcInvocationType' => 'X-Fc-Invocation-Type', - 'xFcLogType' => 'X-Fc-Log-Type', - 'xFcTraceId' => 'X-Fc-Trace-Id', + 'xFcLogType' => 'X-Fc-Log-Type', + 'xFcTraceId' => 'X-Fc-Trace-Id', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->commonHeaders) { $res['commonHeaders'] = $this->commonHeaders; @@ -76,40 +38,67 @@ public function toMap() if (null !== $this->xFcTraceId) { $res['X-Fc-Trace-Id'] = $this->xFcTraceId; } - return $res; } - /** * @param array $map - * * @return ListFunctionAsyncInvokeConfigsHeaders */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['commonHeaders'])) { + if(isset($map['commonHeaders'])){ $model->commonHeaders = $map['commonHeaders']; } - if (isset($map['X-Fc-Account-Id'])) { + if(isset($map['X-Fc-Account-Id'])){ $model->xFcAccountId = $map['X-Fc-Account-Id']; } - if (isset($map['X-Fc-Code-Checksum'])) { + if(isset($map['X-Fc-Code-Checksum'])){ $model->xFcCodeChecksum = $map['X-Fc-Code-Checksum']; } - if (isset($map['X-Fc-Date'])) { + if(isset($map['X-Fc-Date'])){ $model->xFcDate = $map['X-Fc-Date']; } - if (isset($map['X-Fc-Invocation-Type'])) { + if(isset($map['X-Fc-Invocation-Type'])){ $model->xFcInvocationType = $map['X-Fc-Invocation-Type']; } - if (isset($map['X-Fc-Log-Type'])) { + if(isset($map['X-Fc-Log-Type'])){ $model->xFcLogType = $map['X-Fc-Log-Type']; } - if (isset($map['X-Fc-Trace-Id'])) { + if(isset($map['X-Fc-Trace-Id'])){ $model->xFcTraceId = $map['X-Fc-Trace-Id']; } - return $model; } + public $commonHeaders; + + /** + * @var string + */ + public $xFcAccountId; + + /** + * @var string + */ + public $xFcCodeChecksum; + + /** + * @var string + */ + public $xFcDate; + + /** + * @var string + */ + public $xFcInvocationType; + + /** + * @var string + */ + public $xFcLogType; + + /** + * @var string + */ + public $xFcTraceId; + } diff --git a/fc-open-20210406/src/Models/ListFunctionAsyncInvokeConfigsRequest.php b/fc-open-20210406/src/Models/ListFunctionAsyncInvokeConfigsRequest.php index 8e015b5c5f..76b845f1aa 100644 --- a/fc-open-20210406/src/Models/ListFunctionAsyncInvokeConfigsRequest.php +++ b/fc-open-20210406/src/Models/ListFunctionAsyncInvokeConfigsRequest.php @@ -1,33 +1,17 @@ 'limit', + 'limit' => 'limit', 'nextToken' => 'nextToken', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->limit) { $res['limit'] = $this->limit; @@ -35,25 +19,30 @@ public function toMap() if (null !== $this->nextToken) { $res['nextToken'] = $this->nextToken; } - return $res; } - /** * @param array $map - * * @return ListFunctionAsyncInvokeConfigsRequest */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['limit'])) { + if(isset($map['limit'])){ $model->limit = $map['limit']; } - if (isset($map['nextToken'])) { + if(isset($map['nextToken'])){ $model->nextToken = $map['nextToken']; } - return $model; } + /** + * @var int + */ + public $limit; + + /** + * @var string + */ + public $nextToken; + } diff --git a/fc-open-20210406/src/Models/ListFunctionAsyncInvokeConfigsResponse.php b/fc-open-20210406/src/Models/ListFunctionAsyncInvokeConfigsResponse.php index 5b2b206051..ebc80168c6 100644 --- a/fc-open-20210406/src/Models/ListFunctionAsyncInvokeConfigsResponse.php +++ b/fc-open-20210406/src/Models/ListFunctionAsyncInvokeConfigsResponse.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 ListFunctionAsyncInvokeConfigsResponse */ - 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 = ListFunctionAsyncInvokeConfigsResponseBody::fromMap($map['body']); } - return $model; } + /** + * @var string[] + */ + public $headers; + + /** + * @var int + */ + public $statusCode; + + /** + * @var ListFunctionAsyncInvokeConfigsResponseBody + */ + public $body; + } diff --git a/fc-open-20210406/src/Models/ListFunctionAsyncInvokeConfigsResponseBody.php b/fc-open-20210406/src/Models/ListFunctionAsyncInvokeConfigsResponseBody.php index 1cde028158..5fcb2279cd 100644 --- a/fc-open-20210406/src/Models/ListFunctionAsyncInvokeConfigsResponseBody.php +++ b/fc-open-20210406/src/Models/ListFunctionAsyncInvokeConfigsResponseBody.php @@ -1,40 +1,25 @@ 'configs', + 'configs' => 'configs', 'nextToken' => 'nextToken', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->configs) { $res['configs'] = []; - if (null !== $this->configs && \is_array($this->configs)) { + if(null !== $this->configs && is_array($this->configs)){ $n = 0; - foreach ($this->configs as $item) { + foreach($this->configs as $item){ $res['configs'][$n++] = null !== $item ? $item->toMap() : $item; } } @@ -42,31 +27,36 @@ public function toMap() if (null !== $this->nextToken) { $res['nextToken'] = $this->nextToken; } - return $res; } - /** * @param array $map - * * @return ListFunctionAsyncInvokeConfigsResponseBody */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['configs'])) { - if (!empty($map['configs'])) { + if(isset($map['configs'])){ + if(!empty($map['configs'])){ $model->configs = []; - $n = 0; - foreach ($map['configs'] as $item) { + $n = 0; + foreach($map['configs'] as $item) { $model->configs[$n++] = null !== $item ? configs::fromMap($item) : $item; } } } - if (isset($map['nextToken'])) { + if(isset($map['nextToken'])){ $model->nextToken = $map['nextToken']; } - return $model; } + /** + * @var configs[] + */ + public $configs; + + /** + * @var string + */ + public $nextToken; + } diff --git a/fc-open-20210406/src/Models/ListFunctionAsyncInvokeConfigsResponseBody/configs.php b/fc-open-20210406/src/Models/ListFunctionAsyncInvokeConfigsResponseBody/configs.php index 64f1dd7f98..2c2327e6af 100644 --- a/fc-open-20210406/src/Models/ListFunctionAsyncInvokeConfigsResponseBody/configs.php +++ b/fc-open-20210406/src/Models/ListFunctionAsyncInvokeConfigsResponseBody/configs.php @@ -1,76 +1,26 @@ 'createdTime', - 'destinationConfig' => 'destinationConfig', - 'function' => 'function', - 'lastModifiedTime' => 'lastModifiedTime', + 'createdTime' => 'createdTime', + 'destinationConfig' => 'destinationConfig', + 'function' => 'function', + 'lastModifiedTime' => 'lastModifiedTime', 'maxAsyncEventAgeInSeconds' => 'maxAsyncEventAgeInSeconds', - 'maxAsyncRetryAttempts' => 'maxAsyncRetryAttempts', - 'qualifier' => 'qualifier', - 'service' => 'service', - 'statefulInvocation' => 'statefulInvocation', + 'maxAsyncRetryAttempts' => 'maxAsyncRetryAttempts', + 'qualifier' => 'qualifier', + 'service' => 'service', + 'statefulInvocation' => 'statefulInvocation', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->createdTime) { $res['createdTime'] = $this->createdTime; @@ -99,46 +49,86 @@ public function toMap() if (null !== $this->statefulInvocation) { $res['statefulInvocation'] = $this->statefulInvocation; } - return $res; } - /** * @param array $map - * * @return configs */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['createdTime'])) { + if(isset($map['createdTime'])){ $model->createdTime = $map['createdTime']; } - if (isset($map['destinationConfig'])) { + if(isset($map['destinationConfig'])){ $model->destinationConfig = DestinationConfig::fromMap($map['destinationConfig']); } - if (isset($map['function'])) { + if(isset($map['function'])){ $model->function = $map['function']; } - if (isset($map['lastModifiedTime'])) { + if(isset($map['lastModifiedTime'])){ $model->lastModifiedTime = $map['lastModifiedTime']; } - if (isset($map['maxAsyncEventAgeInSeconds'])) { + if(isset($map['maxAsyncEventAgeInSeconds'])){ $model->maxAsyncEventAgeInSeconds = $map['maxAsyncEventAgeInSeconds']; } - if (isset($map['maxAsyncRetryAttempts'])) { + if(isset($map['maxAsyncRetryAttempts'])){ $model->maxAsyncRetryAttempts = $map['maxAsyncRetryAttempts']; } - if (isset($map['qualifier'])) { + if(isset($map['qualifier'])){ $model->qualifier = $map['qualifier']; } - if (isset($map['service'])) { + if(isset($map['service'])){ $model->service = $map['service']; } - if (isset($map['statefulInvocation'])) { + if(isset($map['statefulInvocation'])){ $model->statefulInvocation = $map['statefulInvocation']; } - return $model; } + /** + * @var string + */ + public $createdTime; + + /** + * @var DestinationConfig + */ + public $destinationConfig; + + /** + * @var string + */ + public $function; + + /** + * @var string + */ + public $lastModifiedTime; + + /** + * @var int + */ + public $maxAsyncEventAgeInSeconds; + + /** + * @var int + */ + public $maxAsyncRetryAttempts; + + /** + * @var string + */ + public $qualifier; + + /** + * @var string + */ + public $service; + + /** + * @var bool + */ + public $statefulInvocation; + } diff --git a/fc-open-20210406/src/Models/ListFunctionsHeaders.php b/fc-open-20210406/src/Models/ListFunctionsHeaders.php index 8a530a934d..6b8338f0f6 100644 --- a/fc-open-20210406/src/Models/ListFunctionsHeaders.php +++ b/fc-open-20210406/src/Models/ListFunctionsHeaders.php @@ -1,41 +1,18 @@ 'X-Fc-Account-Id', - 'xFcDate' => 'X-Fc-Date', - 'xFcTraceId' => 'X-Fc-Trace-Id', + 'xFcDate' => 'X-Fc-Date', + 'xFcTraceId' => 'X-Fc-Trace-Id', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->commonHeaders) { $res['commonHeaders'] = $this->commonHeaders; @@ -49,31 +26,43 @@ public function toMap() if (null !== $this->xFcTraceId) { $res['X-Fc-Trace-Id'] = $this->xFcTraceId; } - return $res; } - /** * @param array $map - * * @return ListFunctionsHeaders */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['commonHeaders'])) { + if(isset($map['commonHeaders'])){ $model->commonHeaders = $map['commonHeaders']; } - if (isset($map['X-Fc-Account-Id'])) { + if(isset($map['X-Fc-Account-Id'])){ $model->xFcAccountId = $map['X-Fc-Account-Id']; } - if (isset($map['X-Fc-Date'])) { + if(isset($map['X-Fc-Date'])){ $model->xFcDate = $map['X-Fc-Date']; } - if (isset($map['X-Fc-Trace-Id'])) { + if(isset($map['X-Fc-Trace-Id'])){ $model->xFcTraceId = $map['X-Fc-Trace-Id']; } - return $model; } + public $commonHeaders; + + /** + * @var string + */ + public $xFcAccountId; + + /** + * @var string + */ + public $xFcDate; + + /** + * @var string + */ + public $xFcTraceId; + } diff --git a/fc-open-20210406/src/Models/ListFunctionsRequest.php b/fc-open-20210406/src/Models/ListFunctionsRequest.php index 1a10a270da..ac728b1c3c 100644 --- a/fc-open-20210406/src/Models/ListFunctionsRequest.php +++ b/fc-open-20210406/src/Models/ListFunctionsRequest.php @@ -1,51 +1,20 @@ 'limit', + 'limit' => 'limit', 'nextToken' => 'nextToken', - 'prefix' => 'prefix', + 'prefix' => 'prefix', 'qualifier' => 'qualifier', - 'startKey' => 'startKey', + 'startKey' => 'startKey', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->limit) { $res['limit'] = $this->limit; @@ -62,34 +31,54 @@ public function toMap() if (null !== $this->startKey) { $res['startKey'] = $this->startKey; } - return $res; } - /** * @param array $map - * * @return ListFunctionsRequest */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['limit'])) { + if(isset($map['limit'])){ $model->limit = $map['limit']; } - if (isset($map['nextToken'])) { + if(isset($map['nextToken'])){ $model->nextToken = $map['nextToken']; } - if (isset($map['prefix'])) { + if(isset($map['prefix'])){ $model->prefix = $map['prefix']; } - if (isset($map['qualifier'])) { + if(isset($map['qualifier'])){ $model->qualifier = $map['qualifier']; } - if (isset($map['startKey'])) { + if(isset($map['startKey'])){ $model->startKey = $map['startKey']; } - return $model; } + /** + * @var int + */ + public $limit; + + /** + * @var string + */ + public $nextToken; + + /** + * @var string + */ + public $prefix; + + /** + * @var string + */ + public $qualifier; + + /** + * @var string + */ + public $startKey; + } diff --git a/fc-open-20210406/src/Models/ListFunctionsResponse.php b/fc-open-20210406/src/Models/ListFunctionsResponse.php index f4f3948673..40214e417b 100644 --- a/fc-open-20210406/src/Models/ListFunctionsResponse.php +++ b/fc-open-20210406/src/Models/ListFunctionsResponse.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 ListFunctionsResponse */ - 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 = ListFunctionsResponseBody::fromMap($map['body']); } - return $model; } + /** + * @var string[] + */ + public $headers; + + /** + * @var int + */ + public $statusCode; + + /** + * @var ListFunctionsResponseBody + */ + public $body; + } diff --git a/fc-open-20210406/src/Models/ListFunctionsResponseBody.php b/fc-open-20210406/src/Models/ListFunctionsResponseBody.php index 0e401ada15..540a3fc80c 100644 --- a/fc-open-20210406/src/Models/ListFunctionsResponseBody.php +++ b/fc-open-20210406/src/Models/ListFunctionsResponseBody.php @@ -1,40 +1,25 @@ 'functions', 'nextToken' => 'nextToken', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->functions) { $res['functions'] = []; - if (null !== $this->functions && \is_array($this->functions)) { + if(null !== $this->functions && is_array($this->functions)){ $n = 0; - foreach ($this->functions as $item) { + foreach($this->functions as $item){ $res['functions'][$n++] = null !== $item ? $item->toMap() : $item; } } @@ -42,31 +27,36 @@ public function toMap() if (null !== $this->nextToken) { $res['nextToken'] = $this->nextToken; } - return $res; } - /** * @param array $map - * * @return ListFunctionsResponseBody */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['functions'])) { - if (!empty($map['functions'])) { + if(isset($map['functions'])){ + if(!empty($map['functions'])){ $model->functions = []; - $n = 0; - foreach ($map['functions'] as $item) { + $n = 0; + foreach($map['functions'] as $item) { $model->functions[$n++] = null !== $item ? functions::fromMap($item) : $item; } } } - if (isset($map['nextToken'])) { + if(isset($map['nextToken'])){ $model->nextToken = $map['nextToken']; } - return $model; } + /** + * @var functions[] + */ + public $functions; + + /** + * @var string + */ + public $nextToken; + } diff --git a/fc-open-20210406/src/Models/ListFunctionsResponseBody/functions.php b/fc-open-20210406/src/Models/ListFunctionsResponseBody/functions.php index 965666f5aa..3bb01d9218 100644 --- a/fc-open-20210406/src/Models/ListFunctionsResponseBody/functions.php +++ b/fc-open-20210406/src/Models/ListFunctionsResponseBody/functions.php @@ -1,149 +1,39 @@ 'caPort', - 'codeChecksum' => 'codeChecksum', - 'codeSize' => 'codeSize', - 'createdTime' => 'createdTime', - 'customContainerConfig' => 'customContainerConfig', - 'description' => 'description', - 'environmentVariables' => 'environmentVariables', - 'functionId' => 'functionId', - 'functionName' => 'functionName', - 'handler' => 'handler', - 'initializationTimeout' => 'initializationTimeout', - 'initializer' => 'initializer', - 'instanceConcurrency' => 'instanceConcurrency', + 'caPort' => 'caPort', + 'codeChecksum' => 'codeChecksum', + 'codeSize' => 'codeSize', + 'createdTime' => 'createdTime', + 'customContainerConfig' => 'customContainerConfig', + 'description' => 'description', + 'environmentVariables' => 'environmentVariables', + 'functionId' => 'functionId', + 'functionName' => 'functionName', + 'handler' => 'handler', + 'initializationTimeout' => 'initializationTimeout', + 'initializer' => 'initializer', + 'instanceConcurrency' => 'instanceConcurrency', 'instanceLifecycleConfig' => 'instanceLifecycleConfig', 'instanceSoftConcurrency' => 'instanceSoftConcurrency', - 'instanceType' => 'instanceType', - 'lastModifiedTime' => 'lastModifiedTime', - 'layers' => 'layers', - 'memorySize' => 'memorySize', - 'runtime' => 'runtime', - 'timeout' => 'timeout', + 'instanceType' => 'instanceType', + 'lastModifiedTime' => 'lastModifiedTime', + 'layers' => 'layers', + 'memorySize' => 'memorySize', + 'runtime' => 'runtime', + 'timeout' => 'timeout', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->caPort) { $res['caPort'] = $this->caPort; @@ -208,84 +98,184 @@ public function toMap() if (null !== $this->timeout) { $res['timeout'] = $this->timeout; } - return $res; } - /** * @param array $map - * * @return functions */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['caPort'])) { + if(isset($map['caPort'])){ $model->caPort = $map['caPort']; } - if (isset($map['codeChecksum'])) { + if(isset($map['codeChecksum'])){ $model->codeChecksum = $map['codeChecksum']; } - if (isset($map['codeSize'])) { + if(isset($map['codeSize'])){ $model->codeSize = $map['codeSize']; } - if (isset($map['createdTime'])) { + if(isset($map['createdTime'])){ $model->createdTime = $map['createdTime']; } - if (isset($map['customContainerConfig'])) { + if(isset($map['customContainerConfig'])){ $model->customContainerConfig = CustomContainerConfig::fromMap($map['customContainerConfig']); } - if (isset($map['description'])) { + if(isset($map['description'])){ $model->description = $map['description']; } - if (isset($map['environmentVariables'])) { + if(isset($map['environmentVariables'])){ $model->environmentVariables = $map['environmentVariables']; } - if (isset($map['functionId'])) { + if(isset($map['functionId'])){ $model->functionId = $map['functionId']; } - if (isset($map['functionName'])) { + if(isset($map['functionName'])){ $model->functionName = $map['functionName']; } - if (isset($map['handler'])) { + if(isset($map['handler'])){ $model->handler = $map['handler']; } - if (isset($map['initializationTimeout'])) { + if(isset($map['initializationTimeout'])){ $model->initializationTimeout = $map['initializationTimeout']; } - if (isset($map['initializer'])) { + if(isset($map['initializer'])){ $model->initializer = $map['initializer']; } - if (isset($map['instanceConcurrency'])) { + if(isset($map['instanceConcurrency'])){ $model->instanceConcurrency = $map['instanceConcurrency']; } - if (isset($map['instanceLifecycleConfig'])) { + if(isset($map['instanceLifecycleConfig'])){ $model->instanceLifecycleConfig = InstanceLifecycleConfig::fromMap($map['instanceLifecycleConfig']); } - if (isset($map['instanceSoftConcurrency'])) { + if(isset($map['instanceSoftConcurrency'])){ $model->instanceSoftConcurrency = $map['instanceSoftConcurrency']; } - if (isset($map['instanceType'])) { + if(isset($map['instanceType'])){ $model->instanceType = $map['instanceType']; } - if (isset($map['lastModifiedTime'])) { + if(isset($map['lastModifiedTime'])){ $model->lastModifiedTime = $map['lastModifiedTime']; } - if (isset($map['layers'])) { - if (!empty($map['layers'])) { + if(isset($map['layers'])){ + if(!empty($map['layers'])){ $model->layers = $map['layers']; } } - if (isset($map['memorySize'])) { + if(isset($map['memorySize'])){ $model->memorySize = $map['memorySize']; } - if (isset($map['runtime'])) { + if(isset($map['runtime'])){ $model->runtime = $map['runtime']; } - if (isset($map['timeout'])) { + if(isset($map['timeout'])){ $model->timeout = $map['timeout']; } - return $model; } + /** + * @var int + */ + public $caPort; + + /** + * @var string + */ + public $codeChecksum; + + /** + * @var int + */ + public $codeSize; + + /** + * @var string + */ + public $createdTime; + + /** + * @var CustomContainerConfig + */ + public $customContainerConfig; + + /** + * @var string + */ + public $description; + + /** + * @var string[] + */ + public $environmentVariables; + + /** + * @var string + */ + public $functionId; + + /** + * @var string + */ + public $functionName; + + /** + * @var string + */ + public $handler; + + /** + * @var int + */ + public $initializationTimeout; + + /** + * @var string + */ + public $initializer; + + /** + * @var int + */ + public $instanceConcurrency; + + /** + * @var InstanceLifecycleConfig + */ + public $instanceLifecycleConfig; + + /** + * @var int + */ + public $instanceSoftConcurrency; + + /** + * @var string + */ + public $instanceType; + + /** + * @var string + */ + public $lastModifiedTime; + + /** + * @var string[] + */ + public $layers; + + /** + * @var int + */ + public $memorySize; + + /** + * @var string + */ + public $runtime; + + /** + * @var int + */ + public $timeout; + } diff --git a/fc-open-20210406/src/Models/ListInstancesHeaders.php b/fc-open-20210406/src/Models/ListInstancesHeaders.php index 4a0d9ed2c1..093ed50530 100644 --- a/fc-open-20210406/src/Models/ListInstancesHeaders.php +++ b/fc-open-20210406/src/Models/ListInstancesHeaders.php @@ -1,29 +1,16 @@ 'X-Fc-Account-Id', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->commonHeaders) { $res['commonHeaders'] = $this->commonHeaders; @@ -31,25 +18,27 @@ public function toMap() if (null !== $this->xFcAccountId) { $res['X-Fc-Account-Id'] = $this->xFcAccountId; } - return $res; } - /** * @param array $map - * * @return ListInstancesHeaders */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['commonHeaders'])) { + if(isset($map['commonHeaders'])){ $model->commonHeaders = $map['commonHeaders']; } - if (isset($map['X-Fc-Account-Id'])) { + if(isset($map['X-Fc-Account-Id'])){ $model->xFcAccountId = $map['X-Fc-Account-Id']; } - return $model; } + public $commonHeaders; + + /** + * @var string + */ + public $xFcAccountId; + } diff --git a/fc-open-20210406/src/Models/ListInstancesRequest.php b/fc-open-20210406/src/Models/ListInstancesRequest.php index 4a7e4d9296..f2a988969c 100644 --- a/fc-open-20210406/src/Models/ListInstancesRequest.php +++ b/fc-open-20210406/src/Models/ListInstancesRequest.php @@ -1,39 +1,18 @@ 'instanceIds', - 'limit' => 'limit', - 'qualifier' => 'qualifier', + 'limit' => 'limit', + 'qualifier' => 'qualifier', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->instanceIds) { $res['instanceIds'] = $this->instanceIds; @@ -44,30 +23,40 @@ public function toMap() if (null !== $this->qualifier) { $res['qualifier'] = $this->qualifier; } - return $res; } - /** * @param array $map - * * @return ListInstancesRequest */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['instanceIds'])) { - if (!empty($map['instanceIds'])) { + if(isset($map['instanceIds'])){ + if(!empty($map['instanceIds'])){ $model->instanceIds = $map['instanceIds']; } } - if (isset($map['limit'])) { + if(isset($map['limit'])){ $model->limit = $map['limit']; } - if (isset($map['qualifier'])) { + if(isset($map['qualifier'])){ $model->qualifier = $map['qualifier']; } - return $model; } + /** + * @var string[] + */ + public $instanceIds; + + /** + * @var int + */ + public $limit; + + /** + * @var string + */ + public $qualifier; + } diff --git a/fc-open-20210406/src/Models/ListInstancesResponse.php b/fc-open-20210406/src/Models/ListInstancesResponse.php index 6b307a7983..f625a5246e 100644 --- a/fc-open-20210406/src/Models/ListInstancesResponse.php +++ b/fc-open-20210406/src/Models/ListInstancesResponse.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 ListInstancesResponse */ - 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 = ListInstancesResponseBody::fromMap($map['body']); } - return $model; } + /** + * @var string[] + */ + public $headers; + + /** + * @var int + */ + public $statusCode; + + /** + * @var ListInstancesResponseBody + */ + public $body; + } diff --git a/fc-open-20210406/src/Models/ListInstancesResponseBody.php b/fc-open-20210406/src/Models/ListInstancesResponseBody.php index 988e84580a..0d82ba6225 100644 --- a/fc-open-20210406/src/Models/ListInstancesResponseBody.php +++ b/fc-open-20210406/src/Models/ListInstancesResponseBody.php @@ -1,60 +1,50 @@ 'instances', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->instances) { $res['instances'] = []; - if (null !== $this->instances && \is_array($this->instances)) { + if(null !== $this->instances && is_array($this->instances)){ $n = 0; - foreach ($this->instances as $item) { + foreach($this->instances as $item){ $res['instances'][$n++] = null !== $item ? $item->toMap() : $item; } } } - return $res; } - /** * @param array $map - * * @return ListInstancesResponseBody */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['instances'])) { - if (!empty($map['instances'])) { + if(isset($map['instances'])){ + if(!empty($map['instances'])){ $model->instances = []; - $n = 0; - foreach ($map['instances'] as $item) { + $n = 0; + foreach($map['instances'] as $item) { $model->instances[$n++] = null !== $item ? instances::fromMap($item) : $item; } } } - return $model; } + /** + * @var instances[] + */ + public $instances; + } diff --git a/fc-open-20210406/src/Models/ListInstancesResponseBody/instances.php b/fc-open-20210406/src/Models/ListInstancesResponseBody/instances.php index c8411aaa93..aafef77644 100644 --- a/fc-open-20210406/src/Models/ListInstancesResponseBody/instances.php +++ b/fc-open-20210406/src/Models/ListInstancesResponseBody/instances.php @@ -1,33 +1,17 @@ 'instanceId', - 'versionId' => 'versionId', + 'versionId' => 'versionId', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->instanceId) { $res['instanceId'] = $this->instanceId; @@ -35,25 +19,30 @@ public function toMap() if (null !== $this->versionId) { $res['versionId'] = $this->versionId; } - return $res; } - /** * @param array $map - * * @return instances */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['instanceId'])) { + if(isset($map['instanceId'])){ $model->instanceId = $map['instanceId']; } - if (isset($map['versionId'])) { + if(isset($map['versionId'])){ $model->versionId = $map['versionId']; } - return $model; } + /** + * @var string + */ + public $instanceId; + + /** + * @var string + */ + public $versionId; + } diff --git a/fc-open-20210406/src/Models/ListLayerVersionsHeaders.php b/fc-open-20210406/src/Models/ListLayerVersionsHeaders.php index 40a5c2d772..643543994c 100644 --- a/fc-open-20210406/src/Models/ListLayerVersionsHeaders.php +++ b/fc-open-20210406/src/Models/ListLayerVersionsHeaders.php @@ -1,41 +1,18 @@ 'X-Fc-Account-Id', - 'xFcDate' => 'X-Fc-Date', - 'xFcTraceId' => 'X-Fc-Trace-Id', + 'xFcDate' => 'X-Fc-Date', + 'xFcTraceId' => 'X-Fc-Trace-Id', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->commonHeaders) { $res['commonHeaders'] = $this->commonHeaders; @@ -49,31 +26,43 @@ public function toMap() if (null !== $this->xFcTraceId) { $res['X-Fc-Trace-Id'] = $this->xFcTraceId; } - return $res; } - /** * @param array $map - * * @return ListLayerVersionsHeaders */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['commonHeaders'])) { + if(isset($map['commonHeaders'])){ $model->commonHeaders = $map['commonHeaders']; } - if (isset($map['X-Fc-Account-Id'])) { + if(isset($map['X-Fc-Account-Id'])){ $model->xFcAccountId = $map['X-Fc-Account-Id']; } - if (isset($map['X-Fc-Date'])) { + if(isset($map['X-Fc-Date'])){ $model->xFcDate = $map['X-Fc-Date']; } - if (isset($map['X-Fc-Trace-Id'])) { + if(isset($map['X-Fc-Trace-Id'])){ $model->xFcTraceId = $map['X-Fc-Trace-Id']; } - return $model; } + public $commonHeaders; + + /** + * @var string + */ + public $xFcAccountId; + + /** + * @var string + */ + public $xFcDate; + + /** + * @var string + */ + public $xFcTraceId; + } diff --git a/fc-open-20210406/src/Models/ListLayerVersionsRequest.php b/fc-open-20210406/src/Models/ListLayerVersionsRequest.php index 8cf9a424ed..34ceebfdad 100644 --- a/fc-open-20210406/src/Models/ListLayerVersionsRequest.php +++ b/fc-open-20210406/src/Models/ListLayerVersionsRequest.php @@ -1,33 +1,17 @@ 'limit', + 'limit' => 'limit', 'startVersion' => 'startVersion', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->limit) { $res['limit'] = $this->limit; @@ -35,25 +19,30 @@ public function toMap() if (null !== $this->startVersion) { $res['startVersion'] = $this->startVersion; } - return $res; } - /** * @param array $map - * * @return ListLayerVersionsRequest */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['limit'])) { + if(isset($map['limit'])){ $model->limit = $map['limit']; } - if (isset($map['startVersion'])) { + if(isset($map['startVersion'])){ $model->startVersion = $map['startVersion']; } - return $model; } + /** + * @var int + */ + public $limit; + + /** + * @var int + */ + public $startVersion; + } diff --git a/fc-open-20210406/src/Models/ListLayerVersionsResponse.php b/fc-open-20210406/src/Models/ListLayerVersionsResponse.php index 5f2950bbd1..fef1d02cb4 100644 --- a/fc-open-20210406/src/Models/ListLayerVersionsResponse.php +++ b/fc-open-20210406/src/Models/ListLayerVersionsResponse.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 ListLayerVersionsResponse */ - 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 = ListLayerVersionsResponseBody::fromMap($map['body']); } - return $model; } + /** + * @var string[] + */ + public $headers; + + /** + * @var int + */ + public $statusCode; + + /** + * @var ListLayerVersionsResponseBody + */ + public $body; + } diff --git a/fc-open-20210406/src/Models/ListLayerVersionsResponseBody.php b/fc-open-20210406/src/Models/ListLayerVersionsResponseBody.php index 1a53b9a51d..3d69402343 100644 --- a/fc-open-20210406/src/Models/ListLayerVersionsResponseBody.php +++ b/fc-open-20210406/src/Models/ListLayerVersionsResponseBody.php @@ -1,39 +1,25 @@ 'layers', + 'layers' => 'layers', 'nextVersion' => 'nextVersion', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->layers) { $res['layers'] = []; - if (null !== $this->layers && \is_array($this->layers)) { + if(null !== $this->layers && is_array($this->layers)){ $n = 0; - foreach ($this->layers as $item) { + foreach($this->layers as $item){ $res['layers'][$n++] = null !== $item ? $item->toMap() : $item; } } @@ -41,31 +27,36 @@ public function toMap() if (null !== $this->nextVersion) { $res['nextVersion'] = $this->nextVersion; } - return $res; } - /** * @param array $map - * * @return ListLayerVersionsResponseBody */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['layers'])) { - if (!empty($map['layers'])) { + if(isset($map['layers'])){ + if(!empty($map['layers'])){ $model->layers = []; - $n = 0; - foreach ($map['layers'] as $item) { + $n = 0; + foreach($map['layers'] as $item) { $model->layers[$n++] = null !== $item ? Layer::fromMap($item) : $item; } } } - if (isset($map['nextVersion'])) { + if(isset($map['nextVersion'])){ $model->nextVersion = $map['nextVersion']; } - return $model; } + /** + * @var Layer[] + */ + public $layers; + + /** + * @var int + */ + public $nextVersion; + } diff --git a/fc-open-20210406/src/Models/ListLayersHeaders.php b/fc-open-20210406/src/Models/ListLayersHeaders.php index 0798c24c52..651119fedd 100644 --- a/fc-open-20210406/src/Models/ListLayersHeaders.php +++ b/fc-open-20210406/src/Models/ListLayersHeaders.php @@ -1,41 +1,18 @@ 'X-Fc-Account-Id', - 'xFcDate' => 'X-Fc-Date', - 'xFcTraceId' => 'X-Fc-Trace-Id', + 'xFcDate' => 'X-Fc-Date', + 'xFcTraceId' => 'X-Fc-Trace-Id', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->commonHeaders) { $res['commonHeaders'] = $this->commonHeaders; @@ -49,31 +26,43 @@ public function toMap() if (null !== $this->xFcTraceId) { $res['X-Fc-Trace-Id'] = $this->xFcTraceId; } - return $res; } - /** * @param array $map - * * @return ListLayersHeaders */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['commonHeaders'])) { + if(isset($map['commonHeaders'])){ $model->commonHeaders = $map['commonHeaders']; } - if (isset($map['X-Fc-Account-Id'])) { + if(isset($map['X-Fc-Account-Id'])){ $model->xFcAccountId = $map['X-Fc-Account-Id']; } - if (isset($map['X-Fc-Date'])) { + if(isset($map['X-Fc-Date'])){ $model->xFcDate = $map['X-Fc-Date']; } - if (isset($map['X-Fc-Trace-Id'])) { + if(isset($map['X-Fc-Trace-Id'])){ $model->xFcTraceId = $map['X-Fc-Trace-Id']; } - return $model; } + public $commonHeaders; + + /** + * @var string + */ + public $xFcAccountId; + + /** + * @var string + */ + public $xFcDate; + + /** + * @var string + */ + public $xFcTraceId; + } diff --git a/fc-open-20210406/src/Models/ListLayersRequest.php b/fc-open-20210406/src/Models/ListLayersRequest.php index d4a19e4e78..e01b69c0b9 100644 --- a/fc-open-20210406/src/Models/ListLayersRequest.php +++ b/fc-open-20210406/src/Models/ListLayersRequest.php @@ -1,57 +1,21 @@ 'limit', + 'limit' => 'limit', 'nextToken' => 'nextToken', - 'official' => 'official', - 'prefix' => 'prefix', - 'public' => 'public', - 'startKey' => 'startKey', + 'official' => 'official', + 'prefix' => 'prefix', + 'public' => 'public', + 'startKey' => 'startKey', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->limit) { $res['limit'] = $this->limit; @@ -71,37 +35,62 @@ public function toMap() if (null !== $this->startKey) { $res['startKey'] = $this->startKey; } - return $res; } - /** * @param array $map - * * @return ListLayersRequest */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['limit'])) { + if(isset($map['limit'])){ $model->limit = $map['limit']; } - if (isset($map['nextToken'])) { + if(isset($map['nextToken'])){ $model->nextToken = $map['nextToken']; } - if (isset($map['official'])) { + if(isset($map['official'])){ $model->official = $map['official']; } - if (isset($map['prefix'])) { + if(isset($map['prefix'])){ $model->prefix = $map['prefix']; } - if (isset($map['public'])) { + if(isset($map['public'])){ $model->public = $map['public']; } - if (isset($map['startKey'])) { + if(isset($map['startKey'])){ $model->startKey = $map['startKey']; } - return $model; } + /** + * @var int + */ + public $limit; + + /** + * @var string + */ + public $nextToken; + + /** + * @var bool + */ + public $official; + + /** + * @var string + */ + public $prefix; + + /** + * @var bool + */ + public $public; + + /** + * @var string + */ + public $startKey; + } diff --git a/fc-open-20210406/src/Models/ListLayersResponse.php b/fc-open-20210406/src/Models/ListLayersResponse.php index 86c1050cbd..18c3405d30 100644 --- a/fc-open-20210406/src/Models/ListLayersResponse.php +++ b/fc-open-20210406/src/Models/ListLayersResponse.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 ListLayersResponse */ - 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 = ListLayersResponseBody::fromMap($map['body']); } - return $model; } + /** + * @var string[] + */ + public $headers; + + /** + * @var int + */ + public $statusCode; + + /** + * @var ListLayersResponseBody + */ + public $body; + } diff --git a/fc-open-20210406/src/Models/ListLayersResponseBody.php b/fc-open-20210406/src/Models/ListLayersResponseBody.php index 5903ea0c42..f6b4381fc2 100644 --- a/fc-open-20210406/src/Models/ListLayersResponseBody.php +++ b/fc-open-20210406/src/Models/ListLayersResponseBody.php @@ -1,39 +1,25 @@ 'layers', + 'layers' => 'layers', 'nextToken' => 'nextToken', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->layers) { $res['layers'] = []; - if (null !== $this->layers && \is_array($this->layers)) { + if(null !== $this->layers && is_array($this->layers)){ $n = 0; - foreach ($this->layers as $item) { + foreach($this->layers as $item){ $res['layers'][$n++] = null !== $item ? $item->toMap() : $item; } } @@ -41,31 +27,36 @@ public function toMap() if (null !== $this->nextToken) { $res['nextToken'] = $this->nextToken; } - return $res; } - /** * @param array $map - * * @return ListLayersResponseBody */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['layers'])) { - if (!empty($map['layers'])) { + if(isset($map['layers'])){ + if(!empty($map['layers'])){ $model->layers = []; - $n = 0; - foreach ($map['layers'] as $item) { + $n = 0; + foreach($map['layers'] as $item) { $model->layers[$n++] = null !== $item ? Layer::fromMap($item) : $item; } } } - if (isset($map['nextToken'])) { + if(isset($map['nextToken'])){ $model->nextToken = $map['nextToken']; } - return $model; } + /** + * @var Layer[] + */ + public $layers; + + /** + * @var string + */ + public $nextToken; + } diff --git a/fc-open-20210406/src/Models/ListOnDemandConfigsHeaders.php b/fc-open-20210406/src/Models/ListOnDemandConfigsHeaders.php index 8a5a8b4124..26d002f6db 100644 --- a/fc-open-20210406/src/Models/ListOnDemandConfigsHeaders.php +++ b/fc-open-20210406/src/Models/ListOnDemandConfigsHeaders.php @@ -1,41 +1,18 @@ 'X-Fc-Account-Id', - 'xFcDate' => 'X-Fc-Date', - 'xFcTraceId' => 'X-Fc-Trace-Id', + 'xFcDate' => 'X-Fc-Date', + 'xFcTraceId' => 'X-Fc-Trace-Id', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->commonHeaders) { $res['commonHeaders'] = $this->commonHeaders; @@ -49,31 +26,43 @@ public function toMap() if (null !== $this->xFcTraceId) { $res['X-Fc-Trace-Id'] = $this->xFcTraceId; } - return $res; } - /** * @param array $map - * * @return ListOnDemandConfigsHeaders */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['commonHeaders'])) { + if(isset($map['commonHeaders'])){ $model->commonHeaders = $map['commonHeaders']; } - if (isset($map['X-Fc-Account-Id'])) { + if(isset($map['X-Fc-Account-Id'])){ $model->xFcAccountId = $map['X-Fc-Account-Id']; } - if (isset($map['X-Fc-Date'])) { + if(isset($map['X-Fc-Date'])){ $model->xFcDate = $map['X-Fc-Date']; } - if (isset($map['X-Fc-Trace-Id'])) { + if(isset($map['X-Fc-Trace-Id'])){ $model->xFcTraceId = $map['X-Fc-Trace-Id']; } - return $model; } + public $commonHeaders; + + /** + * @var string + */ + public $xFcAccountId; + + /** + * @var string + */ + public $xFcDate; + + /** + * @var string + */ + public $xFcTraceId; + } diff --git a/fc-open-20210406/src/Models/ListOnDemandConfigsRequest.php b/fc-open-20210406/src/Models/ListOnDemandConfigsRequest.php index 47560f3e9e..d3262239a5 100644 --- a/fc-open-20210406/src/Models/ListOnDemandConfigsRequest.php +++ b/fc-open-20210406/src/Models/ListOnDemandConfigsRequest.php @@ -1,45 +1,19 @@ 'limit', + 'limit' => 'limit', 'nextToken' => 'nextToken', - 'prefix' => 'prefix', - 'startKey' => 'startKey', + 'prefix' => 'prefix', + 'startKey' => 'startKey', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->limit) { $res['limit'] = $this->limit; @@ -53,31 +27,46 @@ public function toMap() if (null !== $this->startKey) { $res['startKey'] = $this->startKey; } - return $res; } - /** * @param array $map - * * @return ListOnDemandConfigsRequest */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['limit'])) { + if(isset($map['limit'])){ $model->limit = $map['limit']; } - if (isset($map['nextToken'])) { + if(isset($map['nextToken'])){ $model->nextToken = $map['nextToken']; } - if (isset($map['prefix'])) { + if(isset($map['prefix'])){ $model->prefix = $map['prefix']; } - if (isset($map['startKey'])) { + if(isset($map['startKey'])){ $model->startKey = $map['startKey']; } - return $model; } + /** + * @var int + */ + public $limit; + + /** + * @var string + */ + public $nextToken; + + /** + * @var string + */ + public $prefix; + + /** + * @var string + */ + public $startKey; + } diff --git a/fc-open-20210406/src/Models/ListOnDemandConfigsResponse.php b/fc-open-20210406/src/Models/ListOnDemandConfigsResponse.php index a1d136384c..839655357c 100644 --- a/fc-open-20210406/src/Models/ListOnDemandConfigsResponse.php +++ b/fc-open-20210406/src/Models/ListOnDemandConfigsResponse.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 ListOnDemandConfigsResponse */ - 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 = ListOnDemandConfigsResponseBody::fromMap($map['body']); } - return $model; } + /** + * @var string[] + */ + public $headers; + + /** + * @var int + */ + public $statusCode; + + /** + * @var ListOnDemandConfigsResponseBody + */ + public $body; + } diff --git a/fc-open-20210406/src/Models/ListOnDemandConfigsResponseBody.php b/fc-open-20210406/src/Models/ListOnDemandConfigsResponseBody.php index 598595902c..664946bbd9 100644 --- a/fc-open-20210406/src/Models/ListOnDemandConfigsResponseBody.php +++ b/fc-open-20210406/src/Models/ListOnDemandConfigsResponseBody.php @@ -1,39 +1,25 @@ 'configs', + 'configs' => 'configs', 'nextToken' => 'nextToken', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->configs) { $res['configs'] = []; - if (null !== $this->configs && \is_array($this->configs)) { + if(null !== $this->configs && is_array($this->configs)){ $n = 0; - foreach ($this->configs as $item) { + foreach($this->configs as $item){ $res['configs'][$n++] = null !== $item ? $item->toMap() : $item; } } @@ -41,31 +27,36 @@ public function toMap() if (null !== $this->nextToken) { $res['nextToken'] = $this->nextToken; } - return $res; } - /** * @param array $map - * * @return ListOnDemandConfigsResponseBody */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['configs'])) { - if (!empty($map['configs'])) { + if(isset($map['configs'])){ + if(!empty($map['configs'])){ $model->configs = []; - $n = 0; - foreach ($map['configs'] as $item) { + $n = 0; + foreach($map['configs'] as $item) { $model->configs[$n++] = null !== $item ? OnDemandConfig::fromMap($item) : $item; } } } - if (isset($map['nextToken'])) { + if(isset($map['nextToken'])){ $model->nextToken = $map['nextToken']; } - return $model; } + /** + * @var OnDemandConfig[] + */ + public $configs; + + /** + * @var string + */ + public $nextToken; + } diff --git a/fc-open-20210406/src/Models/ListProvisionConfigsHeaders.php b/fc-open-20210406/src/Models/ListProvisionConfigsHeaders.php index 8e62d94607..bd49c6784f 100644 --- a/fc-open-20210406/src/Models/ListProvisionConfigsHeaders.php +++ b/fc-open-20210406/src/Models/ListProvisionConfigsHeaders.php @@ -1,41 +1,18 @@ 'X-Fc-Account-Id', - 'xFcDate' => 'X-Fc-Date', - 'xFcTraceId' => 'X-Fc-Trace-Id', + 'xFcDate' => 'X-Fc-Date', + 'xFcTraceId' => 'X-Fc-Trace-Id', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->commonHeaders) { $res['commonHeaders'] = $this->commonHeaders; @@ -49,31 +26,43 @@ public function toMap() if (null !== $this->xFcTraceId) { $res['X-Fc-Trace-Id'] = $this->xFcTraceId; } - return $res; } - /** * @param array $map - * * @return ListProvisionConfigsHeaders */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['commonHeaders'])) { + if(isset($map['commonHeaders'])){ $model->commonHeaders = $map['commonHeaders']; } - if (isset($map['X-Fc-Account-Id'])) { + if(isset($map['X-Fc-Account-Id'])){ $model->xFcAccountId = $map['X-Fc-Account-Id']; } - if (isset($map['X-Fc-Date'])) { + if(isset($map['X-Fc-Date'])){ $model->xFcDate = $map['X-Fc-Date']; } - if (isset($map['X-Fc-Trace-Id'])) { + if(isset($map['X-Fc-Trace-Id'])){ $model->xFcTraceId = $map['X-Fc-Trace-Id']; } - return $model; } + public $commonHeaders; + + /** + * @var string + */ + public $xFcAccountId; + + /** + * @var string + */ + public $xFcDate; + + /** + * @var string + */ + public $xFcTraceId; + } diff --git a/fc-open-20210406/src/Models/ListProvisionConfigsRequest.php b/fc-open-20210406/src/Models/ListProvisionConfigsRequest.php index 5746156903..15eddf8bf2 100644 --- a/fc-open-20210406/src/Models/ListProvisionConfigsRequest.php +++ b/fc-open-20210406/src/Models/ListProvisionConfigsRequest.php @@ -1,45 +1,19 @@ 'limit', - 'nextToken' => 'nextToken', - 'qualifier' => 'qualifier', + 'limit' => 'limit', + 'nextToken' => 'nextToken', + 'qualifier' => 'qualifier', 'serviceName' => 'serviceName', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->limit) { $res['limit'] = $this->limit; @@ -53,31 +27,46 @@ public function toMap() if (null !== $this->serviceName) { $res['serviceName'] = $this->serviceName; } - return $res; } - /** * @param array $map - * * @return ListProvisionConfigsRequest */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['limit'])) { + if(isset($map['limit'])){ $model->limit = $map['limit']; } - if (isset($map['nextToken'])) { + if(isset($map['nextToken'])){ $model->nextToken = $map['nextToken']; } - if (isset($map['qualifier'])) { + if(isset($map['qualifier'])){ $model->qualifier = $map['qualifier']; } - if (isset($map['serviceName'])) { + if(isset($map['serviceName'])){ $model->serviceName = $map['serviceName']; } - return $model; } + /** + * @var int + */ + public $limit; + + /** + * @var string + */ + public $nextToken; + + /** + * @var string + */ + public $qualifier; + + /** + * @var string + */ + public $serviceName; + } diff --git a/fc-open-20210406/src/Models/ListProvisionConfigsResponse.php b/fc-open-20210406/src/Models/ListProvisionConfigsResponse.php index 5428372a6d..808c1bad28 100644 --- a/fc-open-20210406/src/Models/ListProvisionConfigsResponse.php +++ b/fc-open-20210406/src/Models/ListProvisionConfigsResponse.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 ListProvisionConfigsResponse */ - 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 = ListProvisionConfigsResponseBody::fromMap($map['body']); } - return $model; } + /** + * @var string[] + */ + public $headers; + + /** + * @var int + */ + public $statusCode; + + /** + * @var ListProvisionConfigsResponseBody + */ + public $body; + } diff --git a/fc-open-20210406/src/Models/ListProvisionConfigsResponseBody.php b/fc-open-20210406/src/Models/ListProvisionConfigsResponseBody.php index d2f75d3338..d35a1b46ba 100644 --- a/fc-open-20210406/src/Models/ListProvisionConfigsResponseBody.php +++ b/fc-open-20210406/src/Models/ListProvisionConfigsResponseBody.php @@ -1,72 +1,62 @@ 'nextToken', + 'nextToken' => 'nextToken', 'provisionConfigs' => 'provisionConfigs', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->nextToken) { $res['nextToken'] = $this->nextToken; } if (null !== $this->provisionConfigs) { $res['provisionConfigs'] = []; - if (null !== $this->provisionConfigs && \is_array($this->provisionConfigs)) { + if(null !== $this->provisionConfigs && is_array($this->provisionConfigs)){ $n = 0; - foreach ($this->provisionConfigs as $item) { + foreach($this->provisionConfigs as $item){ $res['provisionConfigs'][$n++] = null !== $item ? $item->toMap() : $item; } } } - return $res; } - /** * @param array $map - * * @return ListProvisionConfigsResponseBody */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['nextToken'])) { + if(isset($map['nextToken'])){ $model->nextToken = $map['nextToken']; } - if (isset($map['provisionConfigs'])) { - if (!empty($map['provisionConfigs'])) { + if(isset($map['provisionConfigs'])){ + if(!empty($map['provisionConfigs'])){ $model->provisionConfigs = []; - $n = 0; - foreach ($map['provisionConfigs'] as $item) { + $n = 0; + foreach($map['provisionConfigs'] as $item) { $model->provisionConfigs[$n++] = null !== $item ? provisionConfigs::fromMap($item) : $item; } } } - return $model; } + /** + * @var string + */ + public $nextToken; + + /** + * @var provisionConfigs[] + */ + public $provisionConfigs; + } diff --git a/fc-open-20210406/src/Models/ListProvisionConfigsResponseBody/provisionConfigs.php b/fc-open-20210406/src/Models/ListProvisionConfigsResponseBody/provisionConfigs.php index 7ddceb7682..be5f8abb31 100644 --- a/fc-open-20210406/src/Models/ListProvisionConfigsResponseBody/provisionConfigs.php +++ b/fc-open-20210406/src/Models/ListProvisionConfigsResponseBody/provisionConfigs.php @@ -1,65 +1,25 @@ 'alwaysAllocateCPU', - 'current' => 'current', - 'currentError' => 'currentError', - 'resource' => 'resource', - 'scheduledActions' => 'scheduledActions', - 'target' => 'target', + 'alwaysAllocateCPU' => 'alwaysAllocateCPU', + 'current' => 'current', + 'currentError' => 'currentError', + 'resource' => 'resource', + 'scheduledActions' => 'scheduledActions', + 'target' => 'target', 'targetTrackingPolicies' => 'targetTrackingPolicies', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->alwaysAllocateCPU) { $res['alwaysAllocateCPU'] = $this->alwaysAllocateCPU; @@ -75,9 +35,9 @@ public function toMap() } if (null !== $this->scheduledActions) { $res['scheduledActions'] = []; - if (null !== $this->scheduledActions && \is_array($this->scheduledActions)) { + if(null !== $this->scheduledActions && is_array($this->scheduledActions)){ $n = 0; - foreach ($this->scheduledActions as $item) { + foreach($this->scheduledActions as $item){ $res['scheduledActions'][$n++] = null !== $item ? $item->toMap() : $item; } } @@ -87,59 +47,89 @@ public function toMap() } if (null !== $this->targetTrackingPolicies) { $res['targetTrackingPolicies'] = []; - if (null !== $this->targetTrackingPolicies && \is_array($this->targetTrackingPolicies)) { + if(null !== $this->targetTrackingPolicies && is_array($this->targetTrackingPolicies)){ $n = 0; - foreach ($this->targetTrackingPolicies as $item) { + foreach($this->targetTrackingPolicies as $item){ $res['targetTrackingPolicies'][$n++] = null !== $item ? $item->toMap() : $item; } } } - return $res; } - /** * @param array $map - * * @return provisionConfigs */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['alwaysAllocateCPU'])) { + if(isset($map['alwaysAllocateCPU'])){ $model->alwaysAllocateCPU = $map['alwaysAllocateCPU']; } - if (isset($map['current'])) { + if(isset($map['current'])){ $model->current = $map['current']; } - if (isset($map['currentError'])) { + if(isset($map['currentError'])){ $model->currentError = $map['currentError']; } - if (isset($map['resource'])) { + if(isset($map['resource'])){ $model->resource = $map['resource']; } - if (isset($map['scheduledActions'])) { - if (!empty($map['scheduledActions'])) { + if(isset($map['scheduledActions'])){ + if(!empty($map['scheduledActions'])){ $model->scheduledActions = []; - $n = 0; - foreach ($map['scheduledActions'] as $item) { + $n = 0; + foreach($map['scheduledActions'] as $item) { $model->scheduledActions[$n++] = null !== $item ? ScheduledActions::fromMap($item) : $item; } } } - if (isset($map['target'])) { + if(isset($map['target'])){ $model->target = $map['target']; } - if (isset($map['targetTrackingPolicies'])) { - if (!empty($map['targetTrackingPolicies'])) { + if(isset($map['targetTrackingPolicies'])){ + if(!empty($map['targetTrackingPolicies'])){ $model->targetTrackingPolicies = []; - $n = 0; - foreach ($map['targetTrackingPolicies'] as $item) { + $n = 0; + foreach($map['targetTrackingPolicies'] as $item) { $model->targetTrackingPolicies[$n++] = null !== $item ? TargetTrackingPolicies::fromMap($item) : $item; } } } - return $model; } + /** + * @var bool + */ + public $alwaysAllocateCPU; + + /** + * @var int + */ + public $current; + + /** + * @var string + */ + public $currentError; + + /** + * @var string + */ + public $resource; + + /** + * @var ScheduledActions[] + */ + public $scheduledActions; + + /** + * @var int + */ + public $target; + + /** + * @var TargetTrackingPolicies[] + */ + public $targetTrackingPolicies; + } diff --git a/fc-open-20210406/src/Models/ListReservedCapacitiesHeaders.php b/fc-open-20210406/src/Models/ListReservedCapacitiesHeaders.php index e66874041c..bb05506645 100644 --- a/fc-open-20210406/src/Models/ListReservedCapacitiesHeaders.php +++ b/fc-open-20210406/src/Models/ListReservedCapacitiesHeaders.php @@ -1,41 +1,18 @@ 'X-Fc-Account-Id', - 'xFcDate' => 'X-Fc-Date', - 'xFcTraceId' => 'X-Fc-Trace-Id', + 'xFcDate' => 'X-Fc-Date', + 'xFcTraceId' => 'X-Fc-Trace-Id', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->commonHeaders) { $res['commonHeaders'] = $this->commonHeaders; @@ -49,31 +26,43 @@ public function toMap() if (null !== $this->xFcTraceId) { $res['X-Fc-Trace-Id'] = $this->xFcTraceId; } - return $res; } - /** * @param array $map - * * @return ListReservedCapacitiesHeaders */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['commonHeaders'])) { + if(isset($map['commonHeaders'])){ $model->commonHeaders = $map['commonHeaders']; } - if (isset($map['X-Fc-Account-Id'])) { + if(isset($map['X-Fc-Account-Id'])){ $model->xFcAccountId = $map['X-Fc-Account-Id']; } - if (isset($map['X-Fc-Date'])) { + if(isset($map['X-Fc-Date'])){ $model->xFcDate = $map['X-Fc-Date']; } - if (isset($map['X-Fc-Trace-Id'])) { + if(isset($map['X-Fc-Trace-Id'])){ $model->xFcTraceId = $map['X-Fc-Trace-Id']; } - return $model; } + public $commonHeaders; + + /** + * @var string + */ + public $xFcAccountId; + + /** + * @var string + */ + public $xFcDate; + + /** + * @var string + */ + public $xFcTraceId; + } diff --git a/fc-open-20210406/src/Models/ListReservedCapacitiesRequest.php b/fc-open-20210406/src/Models/ListReservedCapacitiesRequest.php index 3a54579d3a..cd1df6c700 100644 --- a/fc-open-20210406/src/Models/ListReservedCapacitiesRequest.php +++ b/fc-open-20210406/src/Models/ListReservedCapacitiesRequest.php @@ -1,33 +1,17 @@ 'limit', + 'limit' => 'limit', 'nextToken' => 'nextToken', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->limit) { $res['limit'] = $this->limit; @@ -35,25 +19,30 @@ public function toMap() if (null !== $this->nextToken) { $res['nextToken'] = $this->nextToken; } - return $res; } - /** * @param array $map - * * @return ListReservedCapacitiesRequest */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['limit'])) { + if(isset($map['limit'])){ $model->limit = $map['limit']; } - if (isset($map['nextToken'])) { + if(isset($map['nextToken'])){ $model->nextToken = $map['nextToken']; } - return $model; } + /** + * @var string + */ + public $limit; + + /** + * @var string + */ + public $nextToken; + } diff --git a/fc-open-20210406/src/Models/ListReservedCapacitiesResponse.php b/fc-open-20210406/src/Models/ListReservedCapacitiesResponse.php index 93eea53df6..826b41d15f 100644 --- a/fc-open-20210406/src/Models/ListReservedCapacitiesResponse.php +++ b/fc-open-20210406/src/Models/ListReservedCapacitiesResponse.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 ListReservedCapacitiesResponse */ - 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 = ListReservedCapacitiesResponseBody::fromMap($map['body']); } - return $model; } + /** + * @var string[] + */ + public $headers; + + /** + * @var int + */ + public $statusCode; + + /** + * @var ListReservedCapacitiesResponseBody + */ + public $body; + } diff --git a/fc-open-20210406/src/Models/ListReservedCapacitiesResponseBody.php b/fc-open-20210406/src/Models/ListReservedCapacitiesResponseBody.php index a9da0fb15b..69e9efff42 100644 --- a/fc-open-20210406/src/Models/ListReservedCapacitiesResponseBody.php +++ b/fc-open-20210406/src/Models/ListReservedCapacitiesResponseBody.php @@ -1,71 +1,62 @@ 'nextToken', + 'nextToken' => 'nextToken', 'reservedCapacities' => 'reservedCapacities', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->nextToken) { $res['nextToken'] = $this->nextToken; } if (null !== $this->reservedCapacities) { $res['reservedCapacities'] = []; - if (null !== $this->reservedCapacities && \is_array($this->reservedCapacities)) { + if(null !== $this->reservedCapacities && is_array($this->reservedCapacities)){ $n = 0; - foreach ($this->reservedCapacities as $item) { + foreach($this->reservedCapacities as $item){ $res['reservedCapacities'][$n++] = null !== $item ? $item->toMap() : $item; } } } - return $res; } - /** * @param array $map - * * @return ListReservedCapacitiesResponseBody */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['nextToken'])) { + if(isset($map['nextToken'])){ $model->nextToken = $map['nextToken']; } - if (isset($map['reservedCapacities'])) { - if (!empty($map['reservedCapacities'])) { + if(isset($map['reservedCapacities'])){ + if(!empty($map['reservedCapacities'])){ $model->reservedCapacities = []; - $n = 0; - foreach ($map['reservedCapacities'] as $item) { + $n = 0; + foreach($map['reservedCapacities'] as $item) { $model->reservedCapacities[$n++] = null !== $item ? OpenReservedCapacity::fromMap($item) : $item; } } } - return $model; } + /** + * @var string + */ + public $nextToken; + + /** + * @var OpenReservedCapacity[] + */ + public $reservedCapacities; + } diff --git a/fc-open-20210406/src/Models/ListServiceVersionsHeaders.php b/fc-open-20210406/src/Models/ListServiceVersionsHeaders.php index b1386f1f3e..0e3728c403 100644 --- a/fc-open-20210406/src/Models/ListServiceVersionsHeaders.php +++ b/fc-open-20210406/src/Models/ListServiceVersionsHeaders.php @@ -1,41 +1,18 @@ 'X-Fc-Account-Id', - 'xFcDate' => 'X-Fc-Date', - 'xFcTraceId' => 'X-Fc-Trace-Id', + 'xFcDate' => 'X-Fc-Date', + 'xFcTraceId' => 'X-Fc-Trace-Id', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->commonHeaders) { $res['commonHeaders'] = $this->commonHeaders; @@ -49,31 +26,43 @@ public function toMap() if (null !== $this->xFcTraceId) { $res['X-Fc-Trace-Id'] = $this->xFcTraceId; } - return $res; } - /** * @param array $map - * * @return ListServiceVersionsHeaders */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['commonHeaders'])) { + if(isset($map['commonHeaders'])){ $model->commonHeaders = $map['commonHeaders']; } - if (isset($map['X-Fc-Account-Id'])) { + if(isset($map['X-Fc-Account-Id'])){ $model->xFcAccountId = $map['X-Fc-Account-Id']; } - if (isset($map['X-Fc-Date'])) { + if(isset($map['X-Fc-Date'])){ $model->xFcDate = $map['X-Fc-Date']; } - if (isset($map['X-Fc-Trace-Id'])) { + if(isset($map['X-Fc-Trace-Id'])){ $model->xFcTraceId = $map['X-Fc-Trace-Id']; } - return $model; } + public $commonHeaders; + + /** + * @var string + */ + public $xFcAccountId; + + /** + * @var string + */ + public $xFcDate; + + /** + * @var string + */ + public $xFcTraceId; + } diff --git a/fc-open-20210406/src/Models/ListServiceVersionsRequest.php b/fc-open-20210406/src/Models/ListServiceVersionsRequest.php index 9b1fb27f50..b645a946c1 100644 --- a/fc-open-20210406/src/Models/ListServiceVersionsRequest.php +++ b/fc-open-20210406/src/Models/ListServiceVersionsRequest.php @@ -1,45 +1,19 @@ 'direction', - 'limit' => 'limit', + 'limit' => 'limit', 'nextToken' => 'nextToken', - 'startKey' => 'startKey', + 'startKey' => 'startKey', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->direction) { $res['direction'] = $this->direction; @@ -53,31 +27,46 @@ public function toMap() if (null !== $this->startKey) { $res['startKey'] = $this->startKey; } - return $res; } - /** * @param array $map - * * @return ListServiceVersionsRequest */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['direction'])) { + if(isset($map['direction'])){ $model->direction = $map['direction']; } - if (isset($map['limit'])) { + if(isset($map['limit'])){ $model->limit = $map['limit']; } - if (isset($map['nextToken'])) { + if(isset($map['nextToken'])){ $model->nextToken = $map['nextToken']; } - if (isset($map['startKey'])) { + if(isset($map['startKey'])){ $model->startKey = $map['startKey']; } - return $model; } + /** + * @var string + */ + public $direction; + + /** + * @var int + */ + public $limit; + + /** + * @var string + */ + public $nextToken; + + /** + * @var string + */ + public $startKey; + } diff --git a/fc-open-20210406/src/Models/ListServiceVersionsResponse.php b/fc-open-20210406/src/Models/ListServiceVersionsResponse.php index a18cbb2337..4426d5ce35 100644 --- a/fc-open-20210406/src/Models/ListServiceVersionsResponse.php +++ b/fc-open-20210406/src/Models/ListServiceVersionsResponse.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 ListServiceVersionsResponse */ - 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 = ListServiceVersionsResponseBody::fromMap($map['body']); } - return $model; } + /** + * @var string[] + */ + public $headers; + + /** + * @var int + */ + public $statusCode; + + /** + * @var ListServiceVersionsResponseBody + */ + public $body; + } diff --git a/fc-open-20210406/src/Models/ListServiceVersionsResponseBody.php b/fc-open-20210406/src/Models/ListServiceVersionsResponseBody.php index a88963f020..12673ad608 100644 --- a/fc-open-20210406/src/Models/ListServiceVersionsResponseBody.php +++ b/fc-open-20210406/src/Models/ListServiceVersionsResponseBody.php @@ -1,40 +1,20 @@ 'direction', 'nextToken' => 'nextToken', - 'versions' => 'versions', + 'versions' => 'versions', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->direction) { $res['direction'] = $this->direction; @@ -44,41 +24,51 @@ public function toMap() } if (null !== $this->versions) { $res['versions'] = []; - if (null !== $this->versions && \is_array($this->versions)) { + if(null !== $this->versions && is_array($this->versions)){ $n = 0; - foreach ($this->versions as $item) { + foreach($this->versions as $item){ $res['versions'][$n++] = null !== $item ? $item->toMap() : $item; } } } - return $res; } - /** * @param array $map - * * @return ListServiceVersionsResponseBody */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['direction'])) { + if(isset($map['direction'])){ $model->direction = $map['direction']; } - if (isset($map['nextToken'])) { + if(isset($map['nextToken'])){ $model->nextToken = $map['nextToken']; } - if (isset($map['versions'])) { - if (!empty($map['versions'])) { + if(isset($map['versions'])){ + if(!empty($map['versions'])){ $model->versions = []; - $n = 0; - foreach ($map['versions'] as $item) { + $n = 0; + foreach($map['versions'] as $item) { $model->versions[$n++] = null !== $item ? versions::fromMap($item) : $item; } } } - return $model; } + /** + * @var string + */ + public $direction; + + /** + * @var string + */ + public $nextToken; + + /** + * @var versions[] + */ + public $versions; + } diff --git a/fc-open-20210406/src/Models/ListServiceVersionsResponseBody/versions.php b/fc-open-20210406/src/Models/ListServiceVersionsResponseBody/versions.php index e206b9ee28..c177859d91 100644 --- a/fc-open-20210406/src/Models/ListServiceVersionsResponseBody/versions.php +++ b/fc-open-20210406/src/Models/ListServiceVersionsResponseBody/versions.php @@ -1,45 +1,19 @@ 'createdTime', - 'description' => 'description', + 'createdTime' => 'createdTime', + 'description' => 'description', 'lastModifiedTime' => 'lastModifiedTime', - 'versionId' => 'versionId', + 'versionId' => 'versionId', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->createdTime) { $res['createdTime'] = $this->createdTime; @@ -53,31 +27,46 @@ public function toMap() if (null !== $this->versionId) { $res['versionId'] = $this->versionId; } - return $res; } - /** * @param array $map - * * @return versions */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['createdTime'])) { + if(isset($map['createdTime'])){ $model->createdTime = $map['createdTime']; } - if (isset($map['description'])) { + if(isset($map['description'])){ $model->description = $map['description']; } - if (isset($map['lastModifiedTime'])) { + if(isset($map['lastModifiedTime'])){ $model->lastModifiedTime = $map['lastModifiedTime']; } - if (isset($map['versionId'])) { + if(isset($map['versionId'])){ $model->versionId = $map['versionId']; } - return $model; } + /** + * @var string + */ + public $createdTime; + + /** + * @var string + */ + public $description; + + /** + * @var string + */ + public $lastModifiedTime; + + /** + * @var string + */ + public $versionId; + } diff --git a/fc-open-20210406/src/Models/ListServicesHeaders.php b/fc-open-20210406/src/Models/ListServicesHeaders.php index 7f78b348dc..13ad1e9ac0 100644 --- a/fc-open-20210406/src/Models/ListServicesHeaders.php +++ b/fc-open-20210406/src/Models/ListServicesHeaders.php @@ -1,41 +1,18 @@ 'X-Fc-Account-Id', - 'xFcDate' => 'X-Fc-Date', - 'xFcTraceId' => 'X-Fc-Trace-Id', + 'xFcDate' => 'X-Fc-Date', + 'xFcTraceId' => 'X-Fc-Trace-Id', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->commonHeaders) { $res['commonHeaders'] = $this->commonHeaders; @@ -49,31 +26,43 @@ public function toMap() if (null !== $this->xFcTraceId) { $res['X-Fc-Trace-Id'] = $this->xFcTraceId; } - return $res; } - /** * @param array $map - * * @return ListServicesHeaders */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['commonHeaders'])) { + if(isset($map['commonHeaders'])){ $model->commonHeaders = $map['commonHeaders']; } - if (isset($map['X-Fc-Account-Id'])) { + if(isset($map['X-Fc-Account-Id'])){ $model->xFcAccountId = $map['X-Fc-Account-Id']; } - if (isset($map['X-Fc-Date'])) { + if(isset($map['X-Fc-Date'])){ $model->xFcDate = $map['X-Fc-Date']; } - if (isset($map['X-Fc-Trace-Id'])) { + if(isset($map['X-Fc-Trace-Id'])){ $model->xFcTraceId = $map['X-Fc-Trace-Id']; } - return $model; } + public $commonHeaders; + + /** + * @var string + */ + public $xFcAccountId; + + /** + * @var string + */ + public $xFcDate; + + /** + * @var string + */ + public $xFcTraceId; + } diff --git a/fc-open-20210406/src/Models/ListServicesRequest.php b/fc-open-20210406/src/Models/ListServicesRequest.php index 87b2ed6161..1b2cd3d1f1 100644 --- a/fc-open-20210406/src/Models/ListServicesRequest.php +++ b/fc-open-20210406/src/Models/ListServicesRequest.php @@ -1,45 +1,19 @@ 'limit', + 'limit' => 'limit', 'nextToken' => 'nextToken', - 'prefix' => 'prefix', - 'startKey' => 'startKey', + 'prefix' => 'prefix', + 'startKey' => 'startKey', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->limit) { $res['limit'] = $this->limit; @@ -53,31 +27,46 @@ public function toMap() if (null !== $this->startKey) { $res['startKey'] = $this->startKey; } - return $res; } - /** * @param array $map - * * @return ListServicesRequest */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['limit'])) { + if(isset($map['limit'])){ $model->limit = $map['limit']; } - if (isset($map['nextToken'])) { + if(isset($map['nextToken'])){ $model->nextToken = $map['nextToken']; } - if (isset($map['prefix'])) { + if(isset($map['prefix'])){ $model->prefix = $map['prefix']; } - if (isset($map['startKey'])) { + if(isset($map['startKey'])){ $model->startKey = $map['startKey']; } - return $model; } + /** + * @var int + */ + public $limit; + + /** + * @var string + */ + public $nextToken; + + /** + * @var string + */ + public $prefix; + + /** + * @var string + */ + public $startKey; + } diff --git a/fc-open-20210406/src/Models/ListServicesResponse.php b/fc-open-20210406/src/Models/ListServicesResponse.php index 56610cc4e3..cbfc014b0e 100644 --- a/fc-open-20210406/src/Models/ListServicesResponse.php +++ b/fc-open-20210406/src/Models/ListServicesResponse.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 ListServicesResponse */ - 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 = ListServicesResponseBody::fromMap($map['body']); } - return $model; } + /** + * @var string[] + */ + public $headers; + + /** + * @var int + */ + public $statusCode; + + /** + * @var ListServicesResponseBody + */ + public $body; + } diff --git a/fc-open-20210406/src/Models/ListServicesResponseBody.php b/fc-open-20210406/src/Models/ListServicesResponseBody.php index 3f91ca3943..dbcbc24a3f 100644 --- a/fc-open-20210406/src/Models/ListServicesResponseBody.php +++ b/fc-open-20210406/src/Models/ListServicesResponseBody.php @@ -1,72 +1,62 @@ 'nextToken', - 'services' => 'services', + 'services' => 'services', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->nextToken) { $res['nextToken'] = $this->nextToken; } if (null !== $this->services) { $res['services'] = []; - if (null !== $this->services && \is_array($this->services)) { + if(null !== $this->services && is_array($this->services)){ $n = 0; - foreach ($this->services as $item) { + foreach($this->services as $item){ $res['services'][$n++] = null !== $item ? $item->toMap() : $item; } } } - return $res; } - /** * @param array $map - * * @return ListServicesResponseBody */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['nextToken'])) { + if(isset($map['nextToken'])){ $model->nextToken = $map['nextToken']; } - if (isset($map['services'])) { - if (!empty($map['services'])) { + if(isset($map['services'])){ + if(!empty($map['services'])){ $model->services = []; - $n = 0; - foreach ($map['services'] as $item) { + $n = 0; + foreach($map['services'] as $item) { $model->services[$n++] = null !== $item ? services::fromMap($item) : $item; } } } - return $model; } + /** + * @var string + */ + public $nextToken; + + /** + * @var services[] + */ + public $services; + } diff --git a/fc-open-20210406/src/Models/ListServicesResponseBody/services.php b/fc-open-20210406/src/Models/ListServicesResponseBody/services.php index c461daeb7f..d4de022e32 100644 --- a/fc-open-20210406/src/Models/ListServicesResponseBody/services.php +++ b/fc-open-20210406/src/Models/ListServicesResponseBody/services.php @@ -1,91 +1,31 @@ 'createdTime', - 'description' => 'description', - 'internetAccess' => 'internetAccess', + 'createdTime' => 'createdTime', + 'description' => 'description', + 'internetAccess' => 'internetAccess', 'lastModifiedTime' => 'lastModifiedTime', - 'logConfig' => 'logConfig', - 'nasConfig' => 'nasConfig', - 'role' => 'role', - 'serviceId' => 'serviceId', - 'serviceName' => 'serviceName', - 'tracingConfig' => 'tracingConfig', - 'vpcConfig' => 'vpcConfig', + 'logConfig' => 'logConfig', + 'nasConfig' => 'nasConfig', + 'role' => 'role', + 'serviceId' => 'serviceId', + 'serviceName' => 'serviceName', + 'tracingConfig' => 'tracingConfig', + 'vpcConfig' => 'vpcConfig', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->createdTime) { $res['createdTime'] = $this->createdTime; @@ -120,52 +60,102 @@ public function toMap() if (null !== $this->vpcConfig) { $res['vpcConfig'] = null !== $this->vpcConfig ? $this->vpcConfig->toMap() : null; } - return $res; } - /** * @param array $map - * * @return services */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['createdTime'])) { + if(isset($map['createdTime'])){ $model->createdTime = $map['createdTime']; } - if (isset($map['description'])) { + if(isset($map['description'])){ $model->description = $map['description']; } - if (isset($map['internetAccess'])) { + if(isset($map['internetAccess'])){ $model->internetAccess = $map['internetAccess']; } - if (isset($map['lastModifiedTime'])) { + if(isset($map['lastModifiedTime'])){ $model->lastModifiedTime = $map['lastModifiedTime']; } - if (isset($map['logConfig'])) { + if(isset($map['logConfig'])){ $model->logConfig = LogConfig::fromMap($map['logConfig']); } - if (isset($map['nasConfig'])) { + if(isset($map['nasConfig'])){ $model->nasConfig = NASConfig::fromMap($map['nasConfig']); } - if (isset($map['role'])) { + if(isset($map['role'])){ $model->role = $map['role']; } - if (isset($map['serviceId'])) { + if(isset($map['serviceId'])){ $model->serviceId = $map['serviceId']; } - if (isset($map['serviceName'])) { + if(isset($map['serviceName'])){ $model->serviceName = $map['serviceName']; } - if (isset($map['tracingConfig'])) { + if(isset($map['tracingConfig'])){ $model->tracingConfig = TracingConfig::fromMap($map['tracingConfig']); } - if (isset($map['vpcConfig'])) { + if(isset($map['vpcConfig'])){ $model->vpcConfig = VPCConfig::fromMap($map['vpcConfig']); } - return $model; } + /** + * @var string + */ + public $createdTime; + + /** + * @var string + */ + public $description; + + /** + * @var bool + */ + public $internetAccess; + + /** + * @var string + */ + public $lastModifiedTime; + + /** + * @var LogConfig + */ + public $logConfig; + + /** + * @var NASConfig + */ + public $nasConfig; + + /** + * @var string + */ + public $role; + + /** + * @var string + */ + public $serviceId; + + /** + * @var string + */ + public $serviceName; + + /** + * @var TracingConfig + */ + public $tracingConfig; + + /** + * @var VPCConfig + */ + public $vpcConfig; + } diff --git a/fc-open-20210406/src/Models/ListStatefulAsyncInvocationFunctionsHeaders.php b/fc-open-20210406/src/Models/ListStatefulAsyncInvocationFunctionsHeaders.php index 20dfc2092d..a188841eb7 100644 --- a/fc-open-20210406/src/Models/ListStatefulAsyncInvocationFunctionsHeaders.php +++ b/fc-open-20210406/src/Models/ListStatefulAsyncInvocationFunctionsHeaders.php @@ -1,41 +1,18 @@ 'X-Fc-Account-Id', - 'xFcDate' => 'X-Fc-Date', - 'xFcTraceId' => 'X-Fc-Trace-Id', + 'xFcDate' => 'X-Fc-Date', + 'xFcTraceId' => 'X-Fc-Trace-Id', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->commonHeaders) { $res['commonHeaders'] = $this->commonHeaders; @@ -49,31 +26,43 @@ public function toMap() if (null !== $this->xFcTraceId) { $res['X-Fc-Trace-Id'] = $this->xFcTraceId; } - return $res; } - /** * @param array $map - * * @return ListStatefulAsyncInvocationFunctionsHeaders */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['commonHeaders'])) { + if(isset($map['commonHeaders'])){ $model->commonHeaders = $map['commonHeaders']; } - if (isset($map['X-Fc-Account-Id'])) { + if(isset($map['X-Fc-Account-Id'])){ $model->xFcAccountId = $map['X-Fc-Account-Id']; } - if (isset($map['X-Fc-Date'])) { + if(isset($map['X-Fc-Date'])){ $model->xFcDate = $map['X-Fc-Date']; } - if (isset($map['X-Fc-Trace-Id'])) { + if(isset($map['X-Fc-Trace-Id'])){ $model->xFcTraceId = $map['X-Fc-Trace-Id']; } - return $model; } + public $commonHeaders; + + /** + * @var string + */ + public $xFcAccountId; + + /** + * @var string + */ + public $xFcDate; + + /** + * @var string + */ + public $xFcTraceId; + } diff --git a/fc-open-20210406/src/Models/ListStatefulAsyncInvocationFunctionsRequest.php b/fc-open-20210406/src/Models/ListStatefulAsyncInvocationFunctionsRequest.php index c2ac1bf51f..48f116100b 100644 --- a/fc-open-20210406/src/Models/ListStatefulAsyncInvocationFunctionsRequest.php +++ b/fc-open-20210406/src/Models/ListStatefulAsyncInvocationFunctionsRequest.php @@ -1,33 +1,17 @@ 'limit', + 'limit' => 'limit', 'nextToken' => 'nextToken', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->limit) { $res['limit'] = $this->limit; @@ -35,25 +19,30 @@ public function toMap() if (null !== $this->nextToken) { $res['nextToken'] = $this->nextToken; } - return $res; } - /** * @param array $map - * * @return ListStatefulAsyncInvocationFunctionsRequest */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['limit'])) { + if(isset($map['limit'])){ $model->limit = $map['limit']; } - if (isset($map['nextToken'])) { + if(isset($map['nextToken'])){ $model->nextToken = $map['nextToken']; } - return $model; } + /** + * @var int + */ + public $limit; + + /** + * @var string + */ + public $nextToken; + } diff --git a/fc-open-20210406/src/Models/ListStatefulAsyncInvocationFunctionsResponse.php b/fc-open-20210406/src/Models/ListStatefulAsyncInvocationFunctionsResponse.php index 374dce7351..95ad736523 100644 --- a/fc-open-20210406/src/Models/ListStatefulAsyncInvocationFunctionsResponse.php +++ b/fc-open-20210406/src/Models/ListStatefulAsyncInvocationFunctionsResponse.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 ListStatefulAsyncInvocationFunctionsResponse */ - 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 = ListStatefulAsyncInvocationFunctionsResponseBody::fromMap($map['body']); } - return $model; } + /** + * @var string[] + */ + public $headers; + + /** + * @var int + */ + public $statusCode; + + /** + * @var ListStatefulAsyncInvocationFunctionsResponseBody + */ + public $body; + } diff --git a/fc-open-20210406/src/Models/ListStatefulAsyncInvocationFunctionsResponseBody.php b/fc-open-20210406/src/Models/ListStatefulAsyncInvocationFunctionsResponseBody.php index a2e9660033..4b5a65b62c 100644 --- a/fc-open-20210406/src/Models/ListStatefulAsyncInvocationFunctionsResponseBody.php +++ b/fc-open-20210406/src/Models/ListStatefulAsyncInvocationFunctionsResponseBody.php @@ -1,39 +1,25 @@ 'data', + 'data' => 'data', 'nextToken' => 'nextToken', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->data) { $res['data'] = []; - if (null !== $this->data && \is_array($this->data)) { + if(null !== $this->data && is_array($this->data)){ $n = 0; - foreach ($this->data as $item) { + foreach($this->data as $item){ $res['data'][$n++] = null !== $item ? $item->toMap() : $item; } } @@ -41,31 +27,36 @@ public function toMap() if (null !== $this->nextToken) { $res['nextToken'] = $this->nextToken; } - return $res; } - /** * @param array $map - * * @return ListStatefulAsyncInvocationFunctionsResponseBody */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['data'])) { - if (!empty($map['data'])) { + if(isset($map['data'])){ + if(!empty($map['data'])){ $model->data = []; - $n = 0; - foreach ($map['data'] as $item) { + $n = 0; + foreach($map['data'] as $item) { $model->data[$n++] = null !== $item ? AsyncConfigMeta::fromMap($item) : $item; } } } - if (isset($map['nextToken'])) { + if(isset($map['nextToken'])){ $model->nextToken = $map['nextToken']; } - return $model; } + /** + * @var AsyncConfigMeta[] + */ + public $data; + + /** + * @var string + */ + public $nextToken; + } diff --git a/fc-open-20210406/src/Models/ListStatefulAsyncInvocationsHeaders.php b/fc-open-20210406/src/Models/ListStatefulAsyncInvocationsHeaders.php index a1fa6dbf84..50219dbedd 100644 --- a/fc-open-20210406/src/Models/ListStatefulAsyncInvocationsHeaders.php +++ b/fc-open-20210406/src/Models/ListStatefulAsyncInvocationsHeaders.php @@ -1,59 +1,21 @@ 'X-Fc-Account-Id', - 'xFcCodeChecksum' => 'X-Fc-Code-Checksum', - 'xFcDate' => 'X-Fc-Date', + 'xFcAccountId' => 'X-Fc-Account-Id', + 'xFcCodeChecksum' => 'X-Fc-Code-Checksum', + 'xFcDate' => 'X-Fc-Date', 'xFcInvocationType' => 'X-Fc-Invocation-Type', - 'xFcLogType' => 'X-Fc-Log-Type', - 'xFcTraceId' => 'X-Fc-Trace-Id', + 'xFcLogType' => 'X-Fc-Log-Type', + 'xFcTraceId' => 'X-Fc-Trace-Id', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->commonHeaders) { $res['commonHeaders'] = $this->commonHeaders; @@ -76,40 +38,67 @@ public function toMap() if (null !== $this->xFcTraceId) { $res['X-Fc-Trace-Id'] = $this->xFcTraceId; } - return $res; } - /** * @param array $map - * * @return ListStatefulAsyncInvocationsHeaders */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['commonHeaders'])) { + if(isset($map['commonHeaders'])){ $model->commonHeaders = $map['commonHeaders']; } - if (isset($map['X-Fc-Account-Id'])) { + if(isset($map['X-Fc-Account-Id'])){ $model->xFcAccountId = $map['X-Fc-Account-Id']; } - if (isset($map['X-Fc-Code-Checksum'])) { + if(isset($map['X-Fc-Code-Checksum'])){ $model->xFcCodeChecksum = $map['X-Fc-Code-Checksum']; } - if (isset($map['X-Fc-Date'])) { + if(isset($map['X-Fc-Date'])){ $model->xFcDate = $map['X-Fc-Date']; } - if (isset($map['X-Fc-Invocation-Type'])) { + if(isset($map['X-Fc-Invocation-Type'])){ $model->xFcInvocationType = $map['X-Fc-Invocation-Type']; } - if (isset($map['X-Fc-Log-Type'])) { + if(isset($map['X-Fc-Log-Type'])){ $model->xFcLogType = $map['X-Fc-Log-Type']; } - if (isset($map['X-Fc-Trace-Id'])) { + if(isset($map['X-Fc-Trace-Id'])){ $model->xFcTraceId = $map['X-Fc-Trace-Id']; } - return $model; } + public $commonHeaders; + + /** + * @var string + */ + public $xFcAccountId; + + /** + * @var string + */ + public $xFcCodeChecksum; + + /** + * @var string + */ + public $xFcDate; + + /** + * @var string + */ + public $xFcInvocationType; + + /** + * @var string + */ + public $xFcLogType; + + /** + * @var string + */ + public $xFcTraceId; + } diff --git a/fc-open-20210406/src/Models/ListStatefulAsyncInvocationsRequest.php b/fc-open-20210406/src/Models/ListStatefulAsyncInvocationsRequest.php index 11bd553900..1864b0bb37 100644 --- a/fc-open-20210406/src/Models/ListStatefulAsyncInvocationsRequest.php +++ b/fc-open-20210406/src/Models/ListStatefulAsyncInvocationsRequest.php @@ -1,75 +1,24 @@ 'includePayload', + 'includePayload' => 'includePayload', 'invocationIdPrefix' => 'invocationIdPrefix', - 'limit' => 'limit', - 'nextToken' => 'nextToken', - 'qualifier' => 'qualifier', - 'sortOrderByTime' => 'sortOrderByTime', - 'startedTimeBegin' => 'startedTimeBegin', - 'startedTimeEnd' => 'startedTimeEnd', - 'status' => 'status', + 'limit' => 'limit', + 'nextToken' => 'nextToken', + 'qualifier' => 'qualifier', + 'sortOrderByTime' => 'sortOrderByTime', + 'startedTimeBegin' => 'startedTimeBegin', + 'startedTimeEnd' => 'startedTimeEnd', + 'status' => 'status', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->includePayload) { $res['includePayload'] = $this->includePayload; @@ -98,46 +47,86 @@ public function toMap() if (null !== $this->status) { $res['status'] = $this->status; } - return $res; } - /** * @param array $map - * * @return ListStatefulAsyncInvocationsRequest */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['includePayload'])) { + if(isset($map['includePayload'])){ $model->includePayload = $map['includePayload']; } - if (isset($map['invocationIdPrefix'])) { + if(isset($map['invocationIdPrefix'])){ $model->invocationIdPrefix = $map['invocationIdPrefix']; } - if (isset($map['limit'])) { + if(isset($map['limit'])){ $model->limit = $map['limit']; } - if (isset($map['nextToken'])) { + if(isset($map['nextToken'])){ $model->nextToken = $map['nextToken']; } - if (isset($map['qualifier'])) { + if(isset($map['qualifier'])){ $model->qualifier = $map['qualifier']; } - if (isset($map['sortOrderByTime'])) { + if(isset($map['sortOrderByTime'])){ $model->sortOrderByTime = $map['sortOrderByTime']; } - if (isset($map['startedTimeBegin'])) { + if(isset($map['startedTimeBegin'])){ $model->startedTimeBegin = $map['startedTimeBegin']; } - if (isset($map['startedTimeEnd'])) { + if(isset($map['startedTimeEnd'])){ $model->startedTimeEnd = $map['startedTimeEnd']; } - if (isset($map['status'])) { + if(isset($map['status'])){ $model->status = $map['status']; } - return $model; } + /** + * @var bool + */ + public $includePayload; + + /** + * @var string + */ + public $invocationIdPrefix; + + /** + * @var int + */ + public $limit; + + /** + * @var string + */ + public $nextToken; + + /** + * @var string + */ + public $qualifier; + + /** + * @var string + */ + public $sortOrderByTime; + + /** + * @var int + */ + public $startedTimeBegin; + + /** + * @var int + */ + public $startedTimeEnd; + + /** + * @var string + */ + public $status; + } diff --git a/fc-open-20210406/src/Models/ListStatefulAsyncInvocationsResponse.php b/fc-open-20210406/src/Models/ListStatefulAsyncInvocationsResponse.php index b0c96823a8..906e25d6dd 100644 --- a/fc-open-20210406/src/Models/ListStatefulAsyncInvocationsResponse.php +++ b/fc-open-20210406/src/Models/ListStatefulAsyncInvocationsResponse.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 ListStatefulAsyncInvocationsResponse */ - 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 = ListStatefulAsyncInvocationsResponseBody::fromMap($map['body']); } - return $model; } + /** + * @var string[] + */ + public $headers; + + /** + * @var int + */ + public $statusCode; + + /** + * @var ListStatefulAsyncInvocationsResponseBody + */ + public $body; + } diff --git a/fc-open-20210406/src/Models/ListStatefulAsyncInvocationsResponseBody.php b/fc-open-20210406/src/Models/ListStatefulAsyncInvocationsResponseBody.php index f4a84dd993..68a9b0292d 100644 --- a/fc-open-20210406/src/Models/ListStatefulAsyncInvocationsResponseBody.php +++ b/fc-open-20210406/src/Models/ListStatefulAsyncInvocationsResponseBody.php @@ -1,39 +1,25 @@ 'invocations', - 'nextToken' => 'nextToken', + 'nextToken' => 'nextToken', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->invocations) { $res['invocations'] = []; - if (null !== $this->invocations && \is_array($this->invocations)) { + if(null !== $this->invocations && is_array($this->invocations)){ $n = 0; - foreach ($this->invocations as $item) { + foreach($this->invocations as $item){ $res['invocations'][$n++] = null !== $item ? $item->toMap() : $item; } } @@ -41,31 +27,36 @@ public function toMap() if (null !== $this->nextToken) { $res['nextToken'] = $this->nextToken; } - return $res; } - /** * @param array $map - * * @return ListStatefulAsyncInvocationsResponseBody */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['invocations'])) { - if (!empty($map['invocations'])) { + if(isset($map['invocations'])){ + if(!empty($map['invocations'])){ $model->invocations = []; - $n = 0; - foreach ($map['invocations'] as $item) { + $n = 0; + foreach($map['invocations'] as $item) { $model->invocations[$n++] = null !== $item ? StatefulAsyncInvocation::fromMap($item) : $item; } } } - if (isset($map['nextToken'])) { + if(isset($map['nextToken'])){ $model->nextToken = $map['nextToken']; } - return $model; } + /** + * @var StatefulAsyncInvocation[] + */ + public $invocations; + + /** + * @var string + */ + public $nextToken; + } diff --git a/fc-open-20210406/src/Models/ListTaggedResourcesHeaders.php b/fc-open-20210406/src/Models/ListTaggedResourcesHeaders.php index 61e78749a5..e2041c0e0f 100644 --- a/fc-open-20210406/src/Models/ListTaggedResourcesHeaders.php +++ b/fc-open-20210406/src/Models/ListTaggedResourcesHeaders.php @@ -1,41 +1,18 @@ 'X-Fc-Account-Id', - 'xFcDate' => 'X-Fc-Date', - 'xFcTraceId' => 'X-Fc-Trace-Id', + 'xFcDate' => 'X-Fc-Date', + 'xFcTraceId' => 'X-Fc-Trace-Id', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->commonHeaders) { $res['commonHeaders'] = $this->commonHeaders; @@ -49,31 +26,43 @@ public function toMap() if (null !== $this->xFcTraceId) { $res['X-Fc-Trace-Id'] = $this->xFcTraceId; } - return $res; } - /** * @param array $map - * * @return ListTaggedResourcesHeaders */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['commonHeaders'])) { + if(isset($map['commonHeaders'])){ $model->commonHeaders = $map['commonHeaders']; } - if (isset($map['X-Fc-Account-Id'])) { + if(isset($map['X-Fc-Account-Id'])){ $model->xFcAccountId = $map['X-Fc-Account-Id']; } - if (isset($map['X-Fc-Date'])) { + if(isset($map['X-Fc-Date'])){ $model->xFcDate = $map['X-Fc-Date']; } - if (isset($map['X-Fc-Trace-Id'])) { + if(isset($map['X-Fc-Trace-Id'])){ $model->xFcTraceId = $map['X-Fc-Trace-Id']; } - return $model; } + public $commonHeaders; + + /** + * @var string + */ + public $xFcAccountId; + + /** + * @var string + */ + public $xFcDate; + + /** + * @var string + */ + public $xFcTraceId; + } diff --git a/fc-open-20210406/src/Models/ListTaggedResourcesRequest.php b/fc-open-20210406/src/Models/ListTaggedResourcesRequest.php index e7e93466e3..1b62acd535 100644 --- a/fc-open-20210406/src/Models/ListTaggedResourcesRequest.php +++ b/fc-open-20210406/src/Models/ListTaggedResourcesRequest.php @@ -1,33 +1,17 @@ 'limit', + 'limit' => 'limit', 'nextToken' => 'nextToken', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->limit) { $res['limit'] = $this->limit; @@ -35,25 +19,30 @@ public function toMap() if (null !== $this->nextToken) { $res['nextToken'] = $this->nextToken; } - return $res; } - /** * @param array $map - * * @return ListTaggedResourcesRequest */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['limit'])) { + if(isset($map['limit'])){ $model->limit = $map['limit']; } - if (isset($map['nextToken'])) { + if(isset($map['nextToken'])){ $model->nextToken = $map['nextToken']; } - return $model; } + /** + * @var int + */ + public $limit; + + /** + * @var string + */ + public $nextToken; + } diff --git a/fc-open-20210406/src/Models/ListTaggedResourcesResponse.php b/fc-open-20210406/src/Models/ListTaggedResourcesResponse.php index b5f6a0033a..ed51ff7fef 100644 --- a/fc-open-20210406/src/Models/ListTaggedResourcesResponse.php +++ b/fc-open-20210406/src/Models/ListTaggedResourcesResponse.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 ListTaggedResourcesResponse */ - 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 = ListTaggedResourcesResponseBody::fromMap($map['body']); } - return $model; } + /** + * @var string[] + */ + public $headers; + + /** + * @var int + */ + public $statusCode; + + /** + * @var ListTaggedResourcesResponseBody + */ + public $body; + } diff --git a/fc-open-20210406/src/Models/ListTaggedResourcesResponseBody.php b/fc-open-20210406/src/Models/ListTaggedResourcesResponseBody.php index be8d76d20c..42dc271664 100644 --- a/fc-open-20210406/src/Models/ListTaggedResourcesResponseBody.php +++ b/fc-open-20210406/src/Models/ListTaggedResourcesResponseBody.php @@ -1,71 +1,62 @@ 'nextToken', 'resources' => 'resources', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->nextToken) { $res['nextToken'] = $this->nextToken; } if (null !== $this->resources) { $res['resources'] = []; - if (null !== $this->resources && \is_array($this->resources)) { + if(null !== $this->resources && is_array($this->resources)){ $n = 0; - foreach ($this->resources as $item) { + foreach($this->resources as $item){ $res['resources'][$n++] = null !== $item ? $item->toMap() : $item; } } } - return $res; } - /** * @param array $map - * * @return ListTaggedResourcesResponseBody */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['nextToken'])) { + if(isset($map['nextToken'])){ $model->nextToken = $map['nextToken']; } - if (isset($map['resources'])) { - if (!empty($map['resources'])) { + if(isset($map['resources'])){ + if(!empty($map['resources'])){ $model->resources = []; - $n = 0; - foreach ($map['resources'] as $item) { + $n = 0; + foreach($map['resources'] as $item) { $model->resources[$n++] = null !== $item ? Resource::fromMap($item) : $item; } } } - return $model; } + /** + * @var string + */ + public $nextToken; + + /** + * @var Resource[] + */ + public $resources; + } diff --git a/fc-open-20210406/src/Models/ListTriggersHeaders.php b/fc-open-20210406/src/Models/ListTriggersHeaders.php index 832e66d16d..b0611d4ad1 100644 --- a/fc-open-20210406/src/Models/ListTriggersHeaders.php +++ b/fc-open-20210406/src/Models/ListTriggersHeaders.php @@ -1,41 +1,18 @@ 'X-Fc-Account-Id', - 'xFcDate' => 'X-Fc-Date', - 'xFcTraceId' => 'X-Fc-Trace-Id', + 'xFcDate' => 'X-Fc-Date', + 'xFcTraceId' => 'X-Fc-Trace-Id', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->commonHeaders) { $res['commonHeaders'] = $this->commonHeaders; @@ -49,31 +26,43 @@ public function toMap() if (null !== $this->xFcTraceId) { $res['X-Fc-Trace-Id'] = $this->xFcTraceId; } - return $res; } - /** * @param array $map - * * @return ListTriggersHeaders */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['commonHeaders'])) { + if(isset($map['commonHeaders'])){ $model->commonHeaders = $map['commonHeaders']; } - if (isset($map['X-Fc-Account-Id'])) { + if(isset($map['X-Fc-Account-Id'])){ $model->xFcAccountId = $map['X-Fc-Account-Id']; } - if (isset($map['X-Fc-Date'])) { + if(isset($map['X-Fc-Date'])){ $model->xFcDate = $map['X-Fc-Date']; } - if (isset($map['X-Fc-Trace-Id'])) { + if(isset($map['X-Fc-Trace-Id'])){ $model->xFcTraceId = $map['X-Fc-Trace-Id']; } - return $model; } + public $commonHeaders; + + /** + * @var string + */ + public $xFcAccountId; + + /** + * @var string + */ + public $xFcDate; + + /** + * @var string + */ + public $xFcTraceId; + } diff --git a/fc-open-20210406/src/Models/ListTriggersRequest.php b/fc-open-20210406/src/Models/ListTriggersRequest.php index 4c93c087cd..998c210b82 100644 --- a/fc-open-20210406/src/Models/ListTriggersRequest.php +++ b/fc-open-20210406/src/Models/ListTriggersRequest.php @@ -1,45 +1,19 @@ 'limit', + 'limit' => 'limit', 'nextToken' => 'nextToken', - 'prefix' => 'prefix', - 'startKey' => 'startKey', + 'prefix' => 'prefix', + 'startKey' => 'startKey', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->limit) { $res['limit'] = $this->limit; @@ -53,31 +27,46 @@ public function toMap() if (null !== $this->startKey) { $res['startKey'] = $this->startKey; } - return $res; } - /** * @param array $map - * * @return ListTriggersRequest */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['limit'])) { + if(isset($map['limit'])){ $model->limit = $map['limit']; } - if (isset($map['nextToken'])) { + if(isset($map['nextToken'])){ $model->nextToken = $map['nextToken']; } - if (isset($map['prefix'])) { + if(isset($map['prefix'])){ $model->prefix = $map['prefix']; } - if (isset($map['startKey'])) { + if(isset($map['startKey'])){ $model->startKey = $map['startKey']; } - return $model; } + /** + * @var int + */ + public $limit; + + /** + * @var string + */ + public $nextToken; + + /** + * @var string + */ + public $prefix; + + /** + * @var string + */ + public $startKey; + } diff --git a/fc-open-20210406/src/Models/ListTriggersResponse.php b/fc-open-20210406/src/Models/ListTriggersResponse.php index 14a0fb4672..a81c50d7a0 100644 --- a/fc-open-20210406/src/Models/ListTriggersResponse.php +++ b/fc-open-20210406/src/Models/ListTriggersResponse.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 ListTriggersResponse */ - 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 = ListTriggersResponseBody::fromMap($map['body']); } - return $model; } + /** + * @var string[] + */ + public $headers; + + /** + * @var int + */ + public $statusCode; + + /** + * @var ListTriggersResponseBody + */ + public $body; + } diff --git a/fc-open-20210406/src/Models/ListTriggersResponseBody.php b/fc-open-20210406/src/Models/ListTriggersResponseBody.php index d305f24de5..0fd2aafc97 100644 --- a/fc-open-20210406/src/Models/ListTriggersResponseBody.php +++ b/fc-open-20210406/src/Models/ListTriggersResponseBody.php @@ -1,72 +1,62 @@ 'nextToken', - 'triggers' => 'triggers', + 'triggers' => 'triggers', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->nextToken) { $res['nextToken'] = $this->nextToken; } if (null !== $this->triggers) { $res['triggers'] = []; - if (null !== $this->triggers && \is_array($this->triggers)) { + if(null !== $this->triggers && is_array($this->triggers)){ $n = 0; - foreach ($this->triggers as $item) { + foreach($this->triggers as $item){ $res['triggers'][$n++] = null !== $item ? $item->toMap() : $item; } } } - return $res; } - /** * @param array $map - * * @return ListTriggersResponseBody */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['nextToken'])) { + if(isset($map['nextToken'])){ $model->nextToken = $map['nextToken']; } - if (isset($map['triggers'])) { - if (!empty($map['triggers'])) { + if(isset($map['triggers'])){ + if(!empty($map['triggers'])){ $model->triggers = []; - $n = 0; - foreach ($map['triggers'] as $item) { + $n = 0; + foreach($map['triggers'] as $item) { $model->triggers[$n++] = null !== $item ? triggers::fromMap($item) : $item; } } } - return $model; } + /** + * @var string + */ + public $nextToken; + + /** + * @var triggers[] + */ + public $triggers; + } diff --git a/fc-open-20210406/src/Models/ListTriggersResponseBody/triggers.php b/fc-open-20210406/src/Models/ListTriggersResponseBody/triggers.php index d66f7d5152..6a9c87c3d6 100644 --- a/fc-open-20210406/src/Models/ListTriggersResponseBody/triggers.php +++ b/fc-open-20210406/src/Models/ListTriggersResponseBody/triggers.php @@ -1,99 +1,28 @@ 'createdTime', - 'description' => 'description', - 'domainName' => 'domainName', - 'invocationRole' => 'invocationRole', + 'createdTime' => 'createdTime', + 'description' => 'description', + 'domainName' => 'domainName', + 'invocationRole' => 'invocationRole', 'lastModifiedTime' => 'lastModifiedTime', - 'qualifier' => 'qualifier', - 'sourceArn' => 'sourceArn', - 'triggerConfig' => 'triggerConfig', - 'triggerId' => 'triggerId', - 'triggerName' => 'triggerName', - 'triggerType' => 'triggerType', - 'urlInternet' => 'urlInternet', - 'urlIntranet' => 'urlIntranet', + 'qualifier' => 'qualifier', + 'sourceArn' => 'sourceArn', + 'triggerConfig' => 'triggerConfig', + 'triggerId' => 'triggerId', + 'triggerName' => 'triggerName', + 'triggerType' => 'triggerType', + 'urlInternet' => 'urlInternet', + 'urlIntranet' => 'urlIntranet', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->createdTime) { $res['createdTime'] = $this->createdTime; @@ -134,58 +63,118 @@ public function toMap() if (null !== $this->urlIntranet) { $res['urlIntranet'] = $this->urlIntranet; } - return $res; } - /** * @param array $map - * * @return triggers */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['createdTime'])) { + if(isset($map['createdTime'])){ $model->createdTime = $map['createdTime']; } - if (isset($map['description'])) { + if(isset($map['description'])){ $model->description = $map['description']; } - if (isset($map['domainName'])) { + if(isset($map['domainName'])){ $model->domainName = $map['domainName']; } - if (isset($map['invocationRole'])) { + if(isset($map['invocationRole'])){ $model->invocationRole = $map['invocationRole']; } - if (isset($map['lastModifiedTime'])) { + if(isset($map['lastModifiedTime'])){ $model->lastModifiedTime = $map['lastModifiedTime']; } - if (isset($map['qualifier'])) { + if(isset($map['qualifier'])){ $model->qualifier = $map['qualifier']; } - if (isset($map['sourceArn'])) { + if(isset($map['sourceArn'])){ $model->sourceArn = $map['sourceArn']; } - if (isset($map['triggerConfig'])) { + if(isset($map['triggerConfig'])){ $model->triggerConfig = $map['triggerConfig']; } - if (isset($map['triggerId'])) { + if(isset($map['triggerId'])){ $model->triggerId = $map['triggerId']; } - if (isset($map['triggerName'])) { + if(isset($map['triggerName'])){ $model->triggerName = $map['triggerName']; } - if (isset($map['triggerType'])) { + if(isset($map['triggerType'])){ $model->triggerType = $map['triggerType']; } - if (isset($map['urlInternet'])) { + if(isset($map['urlInternet'])){ $model->urlInternet = $map['urlInternet']; } - if (isset($map['urlIntranet'])) { + if(isset($map['urlIntranet'])){ $model->urlIntranet = $map['urlIntranet']; } - return $model; } + /** + * @var string + */ + public $createdTime; + + /** + * @var string + */ + public $description; + + /** + * @var string + */ + public $domainName; + + /** + * @var string + */ + public $invocationRole; + + /** + * @var string + */ + public $lastModifiedTime; + + /** + * @var string + */ + public $qualifier; + + /** + * @var string + */ + public $sourceArn; + + /** + * @var string + */ + public $triggerConfig; + + /** + * @var string + */ + public $triggerId; + + /** + * @var string + */ + public $triggerName; + + /** + * @var string + */ + public $triggerType; + + /** + * @var string + */ + public $urlInternet; + + /** + * @var string + */ + public $urlIntranet; + } diff --git a/fc-open-20210406/src/Models/ListVpcBindingsHeaders.php b/fc-open-20210406/src/Models/ListVpcBindingsHeaders.php index 2ca5484b22..76505df7d5 100644 --- a/fc-open-20210406/src/Models/ListVpcBindingsHeaders.php +++ b/fc-open-20210406/src/Models/ListVpcBindingsHeaders.php @@ -1,41 +1,18 @@ 'X-Fc-Account-Id', - 'xFcDate' => 'X-Fc-Date', - 'xFcTraceId' => 'X-Fc-Trace-Id', + 'xFcDate' => 'X-Fc-Date', + 'xFcTraceId' => 'X-Fc-Trace-Id', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->commonHeaders) { $res['commonHeaders'] = $this->commonHeaders; @@ -49,31 +26,43 @@ public function toMap() if (null !== $this->xFcTraceId) { $res['X-Fc-Trace-Id'] = $this->xFcTraceId; } - return $res; } - /** * @param array $map - * * @return ListVpcBindingsHeaders */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['commonHeaders'])) { + if(isset($map['commonHeaders'])){ $model->commonHeaders = $map['commonHeaders']; } - if (isset($map['X-Fc-Account-Id'])) { + if(isset($map['X-Fc-Account-Id'])){ $model->xFcAccountId = $map['X-Fc-Account-Id']; } - if (isset($map['X-Fc-Date'])) { + if(isset($map['X-Fc-Date'])){ $model->xFcDate = $map['X-Fc-Date']; } - if (isset($map['X-Fc-Trace-Id'])) { + if(isset($map['X-Fc-Trace-Id'])){ $model->xFcTraceId = $map['X-Fc-Trace-Id']; } - return $model; } + public $commonHeaders; + + /** + * @var string + */ + public $xFcAccountId; + + /** + * @var string + */ + public $xFcDate; + + /** + * @var string + */ + public $xFcTraceId; + } diff --git a/fc-open-20210406/src/Models/ListVpcBindingsResponse.php b/fc-open-20210406/src/Models/ListVpcBindingsResponse.php index 61ea6c1758..57a82264c3 100644 --- a/fc-open-20210406/src/Models/ListVpcBindingsResponse.php +++ b/fc-open-20210406/src/Models/ListVpcBindingsResponse.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 ListVpcBindingsResponse */ - 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 = ListVpcBindingsResponseBody::fromMap($map['body']); } - return $model; } + /** + * @var string[] + */ + public $headers; + + /** + * @var int + */ + public $statusCode; + + /** + * @var ListVpcBindingsResponseBody + */ + public $body; + } diff --git a/fc-open-20210406/src/Models/ListVpcBindingsResponseBody.php b/fc-open-20210406/src/Models/ListVpcBindingsResponseBody.php index 306942ac96..9faa62d37c 100644 --- a/fc-open-20210406/src/Models/ListVpcBindingsResponseBody.php +++ b/fc-open-20210406/src/Models/ListVpcBindingsResponseBody.php @@ -1,49 +1,38 @@ 'vpcIds', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->vpcIds) { $res['vpcIds'] = $this->vpcIds; } - return $res; } - /** * @param array $map - * * @return ListVpcBindingsResponseBody */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['vpcIds'])) { - if (!empty($map['vpcIds'])) { + if(isset($map['vpcIds'])){ + if(!empty($map['vpcIds'])){ $model->vpcIds = $map['vpcIds']; } } - return $model; } + /** + * @var string[] + */ + public $vpcIds; + } diff --git a/fc-open-20210406/src/Models/LogConfig.php b/fc-open-20210406/src/Models/LogConfig.php index 7923f32aad..35bdd26b28 100644 --- a/fc-open-20210406/src/Models/LogConfig.php +++ b/fc-open-20210406/src/Models/LogConfig.php @@ -1,51 +1,20 @@ 'enableInstanceMetrics', - 'enableRequestMetrics' => 'enableRequestMetrics', - 'logBeginRule' => 'logBeginRule', - 'logstore' => 'logstore', - 'project' => 'project', + 'enableRequestMetrics' => 'enableRequestMetrics', + 'logBeginRule' => 'logBeginRule', + 'logstore' => 'logstore', + 'project' => 'project', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->enableInstanceMetrics) { $res['enableInstanceMetrics'] = $this->enableInstanceMetrics; @@ -62,34 +31,54 @@ public function toMap() if (null !== $this->project) { $res['project'] = $this->project; } - return $res; } - /** * @param array $map - * * @return LogConfig */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['enableInstanceMetrics'])) { + if(isset($map['enableInstanceMetrics'])){ $model->enableInstanceMetrics = $map['enableInstanceMetrics']; } - if (isset($map['enableRequestMetrics'])) { + if(isset($map['enableRequestMetrics'])){ $model->enableRequestMetrics = $map['enableRequestMetrics']; } - if (isset($map['logBeginRule'])) { + if(isset($map['logBeginRule'])){ $model->logBeginRule = $map['logBeginRule']; } - if (isset($map['logstore'])) { + if(isset($map['logstore'])){ $model->logstore = $map['logstore']; } - if (isset($map['project'])) { + if(isset($map['project'])){ $model->project = $map['project']; } - return $model; } + /** + * @var bool + */ + public $enableInstanceMetrics; + + /** + * @var bool + */ + public $enableRequestMetrics; + + /** + * @var string + */ + public $logBeginRule; + + /** + * @var string + */ + public $logstore; + + /** + * @var string + */ + public $project; + } diff --git a/fc-open-20210406/src/Models/LogTriggerConfig.php b/fc-open-20210406/src/Models/LogTriggerConfig.php index 5eaa242b6d..b9c656590b 100644 --- a/fc-open-20210406/src/Models/LogTriggerConfig.php +++ b/fc-open-20210406/src/Models/LogTriggerConfig.php @@ -1,51 +1,24 @@ 'enable', + 'enable' => 'enable', 'functionParameter' => 'functionParameter', - 'jobConfig' => 'jobConfig', - 'logConfig' => 'logConfig', - 'sourceConfig' => 'sourceConfig', + 'jobConfig' => 'jobConfig', + 'logConfig' => 'logConfig', + 'sourceConfig' => 'sourceConfig', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->enable) { $res['enable'] = $this->enable; @@ -62,34 +35,54 @@ public function toMap() if (null !== $this->sourceConfig) { $res['sourceConfig'] = null !== $this->sourceConfig ? $this->sourceConfig->toMap() : null; } - return $res; } - /** * @param array $map - * * @return LogTriggerConfig */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['enable'])) { + if(isset($map['enable'])){ $model->enable = $map['enable']; } - if (isset($map['functionParameter'])) { + if(isset($map['functionParameter'])){ $model->functionParameter = $map['functionParameter']; } - if (isset($map['jobConfig'])) { + if(isset($map['jobConfig'])){ $model->jobConfig = JobConfig::fromMap($map['jobConfig']); } - if (isset($map['logConfig'])) { + if(isset($map['logConfig'])){ $model->logConfig = JobLogConfig::fromMap($map['logConfig']); } - if (isset($map['sourceConfig'])) { + if(isset($map['sourceConfig'])){ $model->sourceConfig = SourceConfig::fromMap($map['sourceConfig']); } - return $model; } + /** + * @var bool + */ + public $enable; + + /** + * @var string[] + */ + public $functionParameter; + + /** + * @var JobConfig + */ + public $jobConfig; + + /** + * @var JobLogConfig + */ + public $logConfig; + + /** + * @var SourceConfig + */ + public $sourceConfig; + } diff --git a/fc-open-20210406/src/Models/MeteringConfig.php b/fc-open-20210406/src/Models/MeteringConfig.php index b919739477..f3cc3b9347 100644 --- a/fc-open-20210406/src/Models/MeteringConfig.php +++ b/fc-open-20210406/src/Models/MeteringConfig.php @@ -1,39 +1,20 @@ 'logConfig', - 'payerId' => 'payerId', - 'role' => 'role', + 'payerId' => 'payerId', + 'role' => 'role', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->logConfig) { $res['logConfig'] = null !== $this->logConfig ? $this->logConfig->toMap() : null; @@ -44,28 +25,38 @@ public function toMap() if (null !== $this->role) { $res['role'] = $this->role; } - return $res; } - /** * @param array $map - * * @return MeteringConfig */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['logConfig'])) { + if(isset($map['logConfig'])){ $model->logConfig = LogConfig::fromMap($map['logConfig']); } - if (isset($map['payerId'])) { + if(isset($map['payerId'])){ $model->payerId = $map['payerId']; } - if (isset($map['role'])) { + if(isset($map['role'])){ $model->role = $map['role']; } - return $model; } + /** + * @var LogConfig + */ + public $logConfig; + + /** + * @var string + */ + public $payerId; + + /** + * @var string + */ + public $role; + } diff --git a/fc-open-20210406/src/Models/MnsTopicTriggerConfig.php b/fc-open-20210406/src/Models/MnsTopicTriggerConfig.php index 1707df3023..b212b57332 100644 --- a/fc-open-20210406/src/Models/MnsTopicTriggerConfig.php +++ b/fc-open-20210406/src/Models/MnsTopicTriggerConfig.php @@ -1,39 +1,18 @@ 'filterTag', + 'filterTag' => 'filterTag', 'notifyContentFormat' => 'notifyContentFormat', - 'notifyStrategy' => 'notifyStrategy', + 'notifyStrategy' => 'notifyStrategy', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->filterTag) { $res['filterTag'] = $this->filterTag; @@ -44,28 +23,38 @@ public function toMap() if (null !== $this->notifyStrategy) { $res['notifyStrategy'] = $this->notifyStrategy; } - return $res; } - /** * @param array $map - * * @return MnsTopicTriggerConfig */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['filterTag'])) { + if(isset($map['filterTag'])){ $model->filterTag = $map['filterTag']; } - if (isset($map['notifyContentFormat'])) { + if(isset($map['notifyContentFormat'])){ $model->notifyContentFormat = $map['notifyContentFormat']; } - if (isset($map['notifyStrategy'])) { + if(isset($map['notifyStrategy'])){ $model->notifyStrategy = $map['notifyStrategy']; } - return $model; } + /** + * @var string + */ + public $filterTag; + + /** + * @var string + */ + public $notifyContentFormat; + + /** + * @var string + */ + public $notifyStrategy; + } diff --git a/fc-open-20210406/src/Models/NASConfig.php b/fc-open-20210406/src/Models/NASConfig.php index 9ad5b903ca..e9aa86f48e 100644 --- a/fc-open-20210406/src/Models/NASConfig.php +++ b/fc-open-20210406/src/Models/NASConfig.php @@ -1,49 +1,29 @@ 'groupId', + 'groupId' => 'groupId', 'mountPoints' => 'mountPoints', - 'userId' => 'userId', + 'userId' => 'userId', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->groupId) { $res['groupId'] = $this->groupId; } if (null !== $this->mountPoints) { $res['mountPoints'] = []; - if (null !== $this->mountPoints && \is_array($this->mountPoints)) { + if(null !== $this->mountPoints && is_array($this->mountPoints)){ $n = 0; - foreach ($this->mountPoints as $item) { + foreach($this->mountPoints as $item){ $res['mountPoints'][$n++] = null !== $item ? $item->toMap() : $item; } } @@ -51,34 +31,44 @@ public function toMap() if (null !== $this->userId) { $res['userId'] = $this->userId; } - return $res; } - /** * @param array $map - * * @return NASConfig */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['groupId'])) { + if(isset($map['groupId'])){ $model->groupId = $map['groupId']; } - if (isset($map['mountPoints'])) { - if (!empty($map['mountPoints'])) { + if(isset($map['mountPoints'])){ + if(!empty($map['mountPoints'])){ $model->mountPoints = []; - $n = 0; - foreach ($map['mountPoints'] as $item) { + $n = 0; + foreach($map['mountPoints'] as $item) { $model->mountPoints[$n++] = null !== $item ? mountPoints::fromMap($item) : $item; } } } - if (isset($map['userId'])) { + if(isset($map['userId'])){ $model->userId = $map['userId']; } - return $model; } + /** + * @var int + */ + public $groupId; + + /** + * @var mountPoints[] + */ + public $mountPoints; + + /** + * @var int + */ + public $userId; + } diff --git a/fc-open-20210406/src/Models/NASConfig/mountPoints.php b/fc-open-20210406/src/Models/NASConfig/mountPoints.php index f6727bbd77..8fe6d62d42 100644 --- a/fc-open-20210406/src/Models/NASConfig/mountPoints.php +++ b/fc-open-20210406/src/Models/NASConfig/mountPoints.php @@ -1,33 +1,17 @@ 'mountDir', + 'mountDir' => 'mountDir', 'serverAddr' => 'serverAddr', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->mountDir) { $res['mountDir'] = $this->mountDir; @@ -35,25 +19,30 @@ public function toMap() if (null !== $this->serverAddr) { $res['serverAddr'] = $this->serverAddr; } - return $res; } - /** * @param array $map - * * @return mountPoints */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['mountDir'])) { + if(isset($map['mountDir'])){ $model->mountDir = $map['mountDir']; } - if (isset($map['serverAddr'])) { + if(isset($map['serverAddr'])){ $model->serverAddr = $map['serverAddr']; } - return $model; } + /** + * @var string + */ + public $mountDir; + + /** + * @var string + */ + public $serverAddr; + } diff --git a/fc-open-20210406/src/Models/OSSTriggerConfig.php b/fc-open-20210406/src/Models/OSSTriggerConfig.php index 7c0db0ad94..3522eb85d6 100644 --- a/fc-open-20210406/src/Models/OSSTriggerConfig.php +++ b/fc-open-20210406/src/Models/OSSTriggerConfig.php @@ -1,33 +1,19 @@ 'events', 'filter' => 'filter', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->events) { $res['events'] = $this->events; @@ -35,27 +21,32 @@ public function toMap() if (null !== $this->filter) { $res['filter'] = null !== $this->filter ? $this->filter->toMap() : null; } - return $res; } - /** * @param array $map - * * @return OSSTriggerConfig */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['events'])) { - if (!empty($map['events'])) { + if(isset($map['events'])){ + if(!empty($map['events'])){ $model->events = $map['events']; } } - if (isset($map['filter'])) { + if(isset($map['filter'])){ $model->filter = OSSTriggerFilter::fromMap($map['filter']); } - return $model; } + /** + * @var string[] + */ + public $events; + + /** + * @var OSSTriggerFilter + */ + public $filter; + } diff --git a/fc-open-20210406/src/Models/OSSTriggerFilter.php b/fc-open-20210406/src/Models/OSSTriggerFilter.php index 5556b6fea0..42d8c3a49b 100644 --- a/fc-open-20210406/src/Models/OSSTriggerFilter.php +++ b/fc-open-20210406/src/Models/OSSTriggerFilter.php @@ -1,47 +1,38 @@ 'key', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->key) { $res['key'] = null !== $this->key ? $this->key->toMap() : null; } - return $res; } - /** * @param array $map - * * @return OSSTriggerFilter */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['key'])) { + if(isset($map['key'])){ $model->key = OSSTriggerKey::fromMap($map['key']); } - return $model; } + /** + * @var OSSTriggerKey + */ + public $key; + } diff --git a/fc-open-20210406/src/Models/OSSTriggerKey.php b/fc-open-20210406/src/Models/OSSTriggerKey.php index a255ef2bbd..300d8a1423 100644 --- a/fc-open-20210406/src/Models/OSSTriggerKey.php +++ b/fc-open-20210406/src/Models/OSSTriggerKey.php @@ -1,33 +1,17 @@ 'prefix', 'suffix' => 'suffix', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->prefix) { $res['prefix'] = $this->prefix; @@ -35,25 +19,30 @@ public function toMap() if (null !== $this->suffix) { $res['suffix'] = $this->suffix; } - return $res; } - /** * @param array $map - * * @return OSSTriggerKey */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['prefix'])) { + if(isset($map['prefix'])){ $model->prefix = $map['prefix']; } - if (isset($map['suffix'])) { + if(isset($map['suffix'])){ $model->suffix = $map['suffix']; } - return $model; } + /** + * @var string + */ + public $prefix; + + /** + * @var string + */ + public $suffix; + } diff --git a/fc-open-20210406/src/Models/OnDemandConfig.php b/fc-open-20210406/src/Models/OnDemandConfig.php index 3e9a3a377a..e9e1e054b0 100644 --- a/fc-open-20210406/src/Models/OnDemandConfig.php +++ b/fc-open-20210406/src/Models/OnDemandConfig.php @@ -1,33 +1,17 @@ 'maximumInstanceCount', - 'resource' => 'resource', + 'resource' => 'resource', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->maximumInstanceCount) { $res['maximumInstanceCount'] = $this->maximumInstanceCount; @@ -35,25 +19,30 @@ public function toMap() if (null !== $this->resource) { $res['resource'] = $this->resource; } - return $res; } - /** * @param array $map - * * @return OnDemandConfig */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['maximumInstanceCount'])) { + if(isset($map['maximumInstanceCount'])){ $model->maximumInstanceCount = $map['maximumInstanceCount']; } - if (isset($map['resource'])) { + if(isset($map['resource'])){ $model->resource = $map['resource']; } - return $model; } + /** + * @var int + */ + public $maximumInstanceCount; + + /** + * @var string + */ + public $resource; + } diff --git a/fc-open-20210406/src/Models/OpenReservedCapacity.php b/fc-open-20210406/src/Models/OpenReservedCapacity.php index 1c3e8f0bbd..774499222a 100644 --- a/fc-open-20210406/src/Models/OpenReservedCapacity.php +++ b/fc-open-20210406/src/Models/OpenReservedCapacity.php @@ -1,57 +1,21 @@ 'createdTime', - 'cu' => 'cu', - 'deadline' => 'deadline', - 'instanceId' => 'instanceId', - 'isRefunded' => 'isRefunded', + 'createdTime' => 'createdTime', + 'cu' => 'cu', + 'deadline' => 'deadline', + 'instanceId' => 'instanceId', + 'isRefunded' => 'isRefunded', 'lastModifiedTime' => 'lastModifiedTime', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->createdTime) { $res['createdTime'] = $this->createdTime; @@ -71,37 +35,62 @@ public function toMap() if (null !== $this->lastModifiedTime) { $res['lastModifiedTime'] = $this->lastModifiedTime; } - return $res; } - /** * @param array $map - * * @return OpenReservedCapacity */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['createdTime'])) { + if(isset($map['createdTime'])){ $model->createdTime = $map['createdTime']; } - if (isset($map['cu'])) { + if(isset($map['cu'])){ $model->cu = $map['cu']; } - if (isset($map['deadline'])) { + if(isset($map['deadline'])){ $model->deadline = $map['deadline']; } - if (isset($map['instanceId'])) { + if(isset($map['instanceId'])){ $model->instanceId = $map['instanceId']; } - if (isset($map['isRefunded'])) { + if(isset($map['isRefunded'])){ $model->isRefunded = $map['isRefunded']; } - if (isset($map['lastModifiedTime'])) { + if(isset($map['lastModifiedTime'])){ $model->lastModifiedTime = $map['lastModifiedTime']; } - return $model; } + /** + * @var string + */ + public $createdTime; + + /** + * @var int + */ + public $cu; + + /** + * @var string + */ + public $deadline; + + /** + * @var string + */ + public $instanceId; + + /** + * @var string + */ + public $isRefunded; + + /** + * @var string + */ + public $lastModifiedTime; + } diff --git a/fc-open-20210406/src/Models/OutputCodeLocation.php b/fc-open-20210406/src/Models/OutputCodeLocation.php index 0b0d0a741e..9646d58b1b 100644 --- a/fc-open-20210406/src/Models/OutputCodeLocation.php +++ b/fc-open-20210406/src/Models/OutputCodeLocation.php @@ -1,33 +1,17 @@ 'location', + 'location' => 'location', 'repositoryType' => 'repositoryType', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->location) { $res['location'] = $this->location; @@ -35,25 +19,30 @@ public function toMap() if (null !== $this->repositoryType) { $res['repositoryType'] = $this->repositoryType; } - return $res; } - /** * @param array $map - * * @return OutputCodeLocation */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['location'])) { + if(isset($map['location'])){ $model->location = $map['location']; } - if (isset($map['repositoryType'])) { + if(isset($map['repositoryType'])){ $model->repositoryType = $map['repositoryType']; } - return $model; } + /** + * @var string + */ + public $location; + + /** + * @var string + */ + public $repositoryType; + } diff --git a/fc-open-20210406/src/Models/PathConfig.php b/fc-open-20210406/src/Models/PathConfig.php index 8a1529c031..b70d8acc02 100644 --- a/fc-open-20210406/src/Models/PathConfig.php +++ b/fc-open-20210406/src/Models/PathConfig.php @@ -1,51 +1,20 @@ 'functionName', - 'methods' => 'methods', - 'path' => 'path', - 'qualifier' => 'qualifier', - 'serviceName' => 'serviceName', + 'methods' => 'methods', + 'path' => 'path', + 'qualifier' => 'qualifier', + 'serviceName' => 'serviceName', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->functionName) { $res['functionName'] = $this->functionName; @@ -62,36 +31,56 @@ public function toMap() if (null !== $this->serviceName) { $res['serviceName'] = $this->serviceName; } - return $res; } - /** * @param array $map - * * @return PathConfig */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['functionName'])) { + if(isset($map['functionName'])){ $model->functionName = $map['functionName']; } - if (isset($map['methods'])) { - if (!empty($map['methods'])) { + if(isset($map['methods'])){ + if(!empty($map['methods'])){ $model->methods = $map['methods']; } } - if (isset($map['path'])) { + if(isset($map['path'])){ $model->path = $map['path']; } - if (isset($map['qualifier'])) { + if(isset($map['qualifier'])){ $model->qualifier = $map['qualifier']; } - if (isset($map['serviceName'])) { + if(isset($map['serviceName'])){ $model->serviceName = $map['serviceName']; } - return $model; } + /** + * @var string + */ + public $functionName; + + /** + * @var string[] + */ + public $methods; + + /** + * @var string + */ + public $path; + + /** + * @var string + */ + public $qualifier; + + /** + * @var string + */ + public $serviceName; + } diff --git a/fc-open-20210406/src/Models/PolicyItem.php b/fc-open-20210406/src/Models/PolicyItem.php index 479212eacb..1565ce2423 100644 --- a/fc-open-20210406/src/Models/PolicyItem.php +++ b/fc-open-20210406/src/Models/PolicyItem.php @@ -1,45 +1,19 @@ 'key', + 'key' => 'key', 'operator' => 'operator', - 'type' => 'type', - 'value' => 'value', + 'type' => 'type', + 'value' => 'value', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->key) { $res['key'] = $this->key; @@ -53,31 +27,46 @@ public function toMap() if (null !== $this->value) { $res['value'] = $this->value; } - return $res; } - /** * @param array $map - * * @return PolicyItem */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['key'])) { + if(isset($map['key'])){ $model->key = $map['key']; } - if (isset($map['operator'])) { + if(isset($map['operator'])){ $model->operator = $map['operator']; } - if (isset($map['type'])) { + if(isset($map['type'])){ $model->type = $map['type']; } - if (isset($map['value'])) { + if(isset($map['value'])){ $model->value = $map['value']; } - return $model; } + /** + * @var int[] + */ + public $key; + + /** + * @var int[] + */ + public $operator; + + /** + * @var int[] + */ + public $type; + + /** + * @var int[] + */ + public $value; + } diff --git a/fc-open-20210406/src/Models/PreFreeze.php b/fc-open-20210406/src/Models/PreFreeze.php index 46a31f7da9..3f8473310a 100644 --- a/fc-open-20210406/src/Models/PreFreeze.php +++ b/fc-open-20210406/src/Models/PreFreeze.php @@ -1,33 +1,17 @@ 'handler', 'timeout' => 'timeout', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->handler) { $res['handler'] = $this->handler; @@ -35,25 +19,30 @@ public function toMap() if (null !== $this->timeout) { $res['timeout'] = $this->timeout; } - return $res; } - /** * @param array $map - * * @return PreFreeze */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['handler'])) { + if(isset($map['handler'])){ $model->handler = $map['handler']; } - if (isset($map['timeout'])) { + if(isset($map['timeout'])){ $model->timeout = $map['timeout']; } - return $model; } + /** + * @var string + */ + public $handler; + + /** + * @var int + */ + public $timeout; + } diff --git a/fc-open-20210406/src/Models/PreStop.php b/fc-open-20210406/src/Models/PreStop.php index 75a71b3cf3..d33110d2d6 100644 --- a/fc-open-20210406/src/Models/PreStop.php +++ b/fc-open-20210406/src/Models/PreStop.php @@ -1,33 +1,17 @@ 'handler', 'timeout' => 'timeout', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->handler) { $res['handler'] = $this->handler; @@ -35,25 +19,30 @@ public function toMap() if (null !== $this->timeout) { $res['timeout'] = $this->timeout; } - return $res; } - /** * @param array $map - * * @return PreStop */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['handler'])) { + if(isset($map['handler'])){ $model->handler = $map['handler']; } - if (isset($map['timeout'])) { + if(isset($map['timeout'])){ $model->timeout = $map['timeout']; } - return $model; } + /** + * @var string + */ + public $handler; + + /** + * @var int + */ + public $timeout; + } diff --git a/fc-open-20210406/src/Models/PublishServiceVersionHeaders.php b/fc-open-20210406/src/Models/PublishServiceVersionHeaders.php index 777b212465..5db3ee46bc 100644 --- a/fc-open-20210406/src/Models/PublishServiceVersionHeaders.php +++ b/fc-open-20210406/src/Models/PublishServiceVersionHeaders.php @@ -1,47 +1,19 @@ 'If-Match', + 'ifMatch' => 'If-Match', 'xFcAccountId' => 'X-Fc-Account-Id', - 'xFcDate' => 'X-Fc-Date', - 'xFcTraceId' => 'X-Fc-Trace-Id', + 'xFcDate' => 'X-Fc-Date', + 'xFcTraceId' => 'X-Fc-Trace-Id', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->commonHeaders) { $res['commonHeaders'] = $this->commonHeaders; @@ -58,34 +30,51 @@ public function toMap() if (null !== $this->xFcTraceId) { $res['X-Fc-Trace-Id'] = $this->xFcTraceId; } - return $res; } - /** * @param array $map - * * @return PublishServiceVersionHeaders */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['commonHeaders'])) { + if(isset($map['commonHeaders'])){ $model->commonHeaders = $map['commonHeaders']; } - if (isset($map['If-Match'])) { + if(isset($map['If-Match'])){ $model->ifMatch = $map['If-Match']; } - if (isset($map['X-Fc-Account-Id'])) { + if(isset($map['X-Fc-Account-Id'])){ $model->xFcAccountId = $map['X-Fc-Account-Id']; } - if (isset($map['X-Fc-Date'])) { + if(isset($map['X-Fc-Date'])){ $model->xFcDate = $map['X-Fc-Date']; } - if (isset($map['X-Fc-Trace-Id'])) { + if(isset($map['X-Fc-Trace-Id'])){ $model->xFcTraceId = $map['X-Fc-Trace-Id']; } - return $model; } + public $commonHeaders; + + /** + * @var string + */ + public $ifMatch; + + /** + * @var string + */ + public $xFcAccountId; + + /** + * @var string + */ + public $xFcDate; + + /** + * @var string + */ + public $xFcTraceId; + } diff --git a/fc-open-20210406/src/Models/PublishServiceVersionRequest.php b/fc-open-20210406/src/Models/PublishServiceVersionRequest.php index 804d5129b6..bdbbbc003a 100644 --- a/fc-open-20210406/src/Models/PublishServiceVersionRequest.php +++ b/fc-open-20210406/src/Models/PublishServiceVersionRequest.php @@ -1,47 +1,36 @@ 'description', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->description) { $res['description'] = $this->description; } - return $res; } - /** * @param array $map - * * @return PublishServiceVersionRequest */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['description'])) { + if(isset($map['description'])){ $model->description = $map['description']; } - return $model; } + /** + * @var string + */ + public $description; + } diff --git a/fc-open-20210406/src/Models/PublishServiceVersionResponse.php b/fc-open-20210406/src/Models/PublishServiceVersionResponse.php index 7d80442a01..2e8e99aafc 100644 --- a/fc-open-20210406/src/Models/PublishServiceVersionResponse.php +++ b/fc-open-20210406/src/Models/PublishServiceVersionResponse.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 PublishServiceVersionResponse */ - 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 = PublishServiceVersionResponseBody::fromMap($map['body']); } - return $model; } + /** + * @var string[] + */ + public $headers; + + /** + * @var int + */ + public $statusCode; + + /** + * @var PublishServiceVersionResponseBody + */ + public $body; + } diff --git a/fc-open-20210406/src/Models/PublishServiceVersionResponseBody.php b/fc-open-20210406/src/Models/PublishServiceVersionResponseBody.php index e9aea0fb52..d85cd5d0bf 100644 --- a/fc-open-20210406/src/Models/PublishServiceVersionResponseBody.php +++ b/fc-open-20210406/src/Models/PublishServiceVersionResponseBody.php @@ -1,45 +1,19 @@ 'createdTime', - 'description' => 'description', + 'createdTime' => 'createdTime', + 'description' => 'description', 'lastModifiedTime' => 'lastModifiedTime', - 'versionId' => 'versionId', + 'versionId' => 'versionId', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->createdTime) { $res['createdTime'] = $this->createdTime; @@ -53,31 +27,46 @@ public function toMap() if (null !== $this->versionId) { $res['versionId'] = $this->versionId; } - return $res; } - /** * @param array $map - * * @return PublishServiceVersionResponseBody */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['createdTime'])) { + if(isset($map['createdTime'])){ $model->createdTime = $map['createdTime']; } - if (isset($map['description'])) { + if(isset($map['description'])){ $model->description = $map['description']; } - if (isset($map['lastModifiedTime'])) { + if(isset($map['lastModifiedTime'])){ $model->lastModifiedTime = $map['lastModifiedTime']; } - if (isset($map['versionId'])) { + if(isset($map['versionId'])){ $model->versionId = $map['versionId']; } - return $model; } + /** + * @var string + */ + public $createdTime; + + /** + * @var string + */ + public $description; + + /** + * @var string + */ + public $lastModifiedTime; + + /** + * @var string + */ + public $versionId; + } diff --git a/fc-open-20210406/src/Models/PutFunctionAsyncInvokeConfigHeaders.php b/fc-open-20210406/src/Models/PutFunctionAsyncInvokeConfigHeaders.php index eaba0dfcd8..d80b93db5b 100644 --- a/fc-open-20210406/src/Models/PutFunctionAsyncInvokeConfigHeaders.php +++ b/fc-open-20210406/src/Models/PutFunctionAsyncInvokeConfigHeaders.php @@ -1,41 +1,18 @@ 'X-Fc-Account-Id', - 'xFcDate' => 'X-Fc-Date', - 'xFcTraceId' => 'X-Fc-Trace-Id', + 'xFcDate' => 'X-Fc-Date', + 'xFcTraceId' => 'X-Fc-Trace-Id', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->commonHeaders) { $res['commonHeaders'] = $this->commonHeaders; @@ -49,31 +26,43 @@ public function toMap() if (null !== $this->xFcTraceId) { $res['X-Fc-Trace-Id'] = $this->xFcTraceId; } - return $res; } - /** * @param array $map - * * @return PutFunctionAsyncInvokeConfigHeaders */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['commonHeaders'])) { + if(isset($map['commonHeaders'])){ $model->commonHeaders = $map['commonHeaders']; } - if (isset($map['X-Fc-Account-Id'])) { + if(isset($map['X-Fc-Account-Id'])){ $model->xFcAccountId = $map['X-Fc-Account-Id']; } - if (isset($map['X-Fc-Date'])) { + if(isset($map['X-Fc-Date'])){ $model->xFcDate = $map['X-Fc-Date']; } - if (isset($map['X-Fc-Trace-Id'])) { + if(isset($map['X-Fc-Trace-Id'])){ $model->xFcTraceId = $map['X-Fc-Trace-Id']; } - return $model; } + public $commonHeaders; + + /** + * @var string + */ + public $xFcAccountId; + + /** + * @var string + */ + public $xFcDate; + + /** + * @var string + */ + public $xFcTraceId; + } diff --git a/fc-open-20210406/src/Models/PutFunctionAsyncInvokeConfigRequest.php b/fc-open-20210406/src/Models/PutFunctionAsyncInvokeConfigRequest.php index 85b0ff945f..ee8334a47d 100644 --- a/fc-open-20210406/src/Models/PutFunctionAsyncInvokeConfigRequest.php +++ b/fc-open-20210406/src/Models/PutFunctionAsyncInvokeConfigRequest.php @@ -1,51 +1,22 @@ 'destinationConfig', + 'destinationConfig' => 'destinationConfig', 'maxAsyncEventAgeInSeconds' => 'maxAsyncEventAgeInSeconds', - 'maxAsyncRetryAttempts' => 'maxAsyncRetryAttempts', - 'statefulInvocation' => 'statefulInvocation', - 'qualifier' => 'qualifier', + 'maxAsyncRetryAttempts' => 'maxAsyncRetryAttempts', + 'statefulInvocation' => 'statefulInvocation', + 'qualifier' => 'qualifier', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->destinationConfig) { $res['destinationConfig'] = null !== $this->destinationConfig ? $this->destinationConfig->toMap() : null; @@ -62,34 +33,54 @@ public function toMap() if (null !== $this->qualifier) { $res['qualifier'] = $this->qualifier; } - return $res; } - /** * @param array $map - * * @return PutFunctionAsyncInvokeConfigRequest */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['destinationConfig'])) { + if(isset($map['destinationConfig'])){ $model->destinationConfig = DestinationConfig::fromMap($map['destinationConfig']); } - if (isset($map['maxAsyncEventAgeInSeconds'])) { + if(isset($map['maxAsyncEventAgeInSeconds'])){ $model->maxAsyncEventAgeInSeconds = $map['maxAsyncEventAgeInSeconds']; } - if (isset($map['maxAsyncRetryAttempts'])) { + if(isset($map['maxAsyncRetryAttempts'])){ $model->maxAsyncRetryAttempts = $map['maxAsyncRetryAttempts']; } - if (isset($map['statefulInvocation'])) { + if(isset($map['statefulInvocation'])){ $model->statefulInvocation = $map['statefulInvocation']; } - if (isset($map['qualifier'])) { + if(isset($map['qualifier'])){ $model->qualifier = $map['qualifier']; } - return $model; } + /** + * @var DestinationConfig + */ + public $destinationConfig; + + /** + * @var int + */ + public $maxAsyncEventAgeInSeconds; + + /** + * @var int + */ + public $maxAsyncRetryAttempts; + + /** + * @var bool + */ + public $statefulInvocation; + + /** + * @var string + */ + public $qualifier; + } diff --git a/fc-open-20210406/src/Models/PutFunctionAsyncInvokeConfigResponse.php b/fc-open-20210406/src/Models/PutFunctionAsyncInvokeConfigResponse.php index f3dac63a3f..bafbbc9c86 100644 --- a/fc-open-20210406/src/Models/PutFunctionAsyncInvokeConfigResponse.php +++ b/fc-open-20210406/src/Models/PutFunctionAsyncInvokeConfigResponse.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 PutFunctionAsyncInvokeConfigResponse */ - 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 = PutFunctionAsyncInvokeConfigResponseBody::fromMap($map['body']); } - return $model; } + /** + * @var string[] + */ + public $headers; + + /** + * @var int + */ + public $statusCode; + + /** + * @var PutFunctionAsyncInvokeConfigResponseBody + */ + public $body; + } diff --git a/fc-open-20210406/src/Models/PutFunctionAsyncInvokeConfigResponseBody.php b/fc-open-20210406/src/Models/PutFunctionAsyncInvokeConfigResponseBody.php index 8a6b75f25f..e12b70fd20 100644 --- a/fc-open-20210406/src/Models/PutFunctionAsyncInvokeConfigResponseBody.php +++ b/fc-open-20210406/src/Models/PutFunctionAsyncInvokeConfigResponseBody.php @@ -1,75 +1,26 @@ 'createdTime', - 'destinationConfig' => 'destinationConfig', - 'function' => 'function', - 'lastModifiedTime' => 'lastModifiedTime', + 'createdTime' => 'createdTime', + 'destinationConfig' => 'destinationConfig', + 'function' => 'function', + 'lastModifiedTime' => 'lastModifiedTime', 'maxAsyncEventAgeInSeconds' => 'maxAsyncEventAgeInSeconds', - 'maxAsyncRetryAttempts' => 'maxAsyncRetryAttempts', - 'qualifier' => 'qualifier', - 'service' => 'service', - 'statefulInvocation' => 'statefulInvocation', + 'maxAsyncRetryAttempts' => 'maxAsyncRetryAttempts', + 'qualifier' => 'qualifier', + 'service' => 'service', + 'statefulInvocation' => 'statefulInvocation', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->createdTime) { $res['createdTime'] = $this->createdTime; @@ -98,46 +49,86 @@ public function toMap() if (null !== $this->statefulInvocation) { $res['statefulInvocation'] = $this->statefulInvocation; } - return $res; } - /** * @param array $map - * * @return PutFunctionAsyncInvokeConfigResponseBody */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['createdTime'])) { + if(isset($map['createdTime'])){ $model->createdTime = $map['createdTime']; } - if (isset($map['destinationConfig'])) { + if(isset($map['destinationConfig'])){ $model->destinationConfig = DestinationConfig::fromMap($map['destinationConfig']); } - if (isset($map['function'])) { + if(isset($map['function'])){ $model->function = $map['function']; } - if (isset($map['lastModifiedTime'])) { + if(isset($map['lastModifiedTime'])){ $model->lastModifiedTime = $map['lastModifiedTime']; } - if (isset($map['maxAsyncEventAgeInSeconds'])) { + if(isset($map['maxAsyncEventAgeInSeconds'])){ $model->maxAsyncEventAgeInSeconds = $map['maxAsyncEventAgeInSeconds']; } - if (isset($map['maxAsyncRetryAttempts'])) { + if(isset($map['maxAsyncRetryAttempts'])){ $model->maxAsyncRetryAttempts = $map['maxAsyncRetryAttempts']; } - if (isset($map['qualifier'])) { + if(isset($map['qualifier'])){ $model->qualifier = $map['qualifier']; } - if (isset($map['service'])) { + if(isset($map['service'])){ $model->service = $map['service']; } - if (isset($map['statefulInvocation'])) { + if(isset($map['statefulInvocation'])){ $model->statefulInvocation = $map['statefulInvocation']; } - return $model; } + /** + * @var string + */ + public $createdTime; + + /** + * @var DestinationConfig + */ + public $destinationConfig; + + /** + * @var string + */ + public $function; + + /** + * @var string + */ + public $lastModifiedTime; + + /** + * @var int + */ + public $maxAsyncEventAgeInSeconds; + + /** + * @var int + */ + public $maxAsyncRetryAttempts; + + /** + * @var string + */ + public $qualifier; + + /** + * @var string + */ + public $service; + + /** + * @var bool + */ + public $statefulInvocation; + } diff --git a/fc-open-20210406/src/Models/PutFunctionOnDemandConfigHeaders.php b/fc-open-20210406/src/Models/PutFunctionOnDemandConfigHeaders.php index 4ca7f1076d..29962b3213 100644 --- a/fc-open-20210406/src/Models/PutFunctionOnDemandConfigHeaders.php +++ b/fc-open-20210406/src/Models/PutFunctionOnDemandConfigHeaders.php @@ -1,47 +1,19 @@ 'If-Match', + 'ifMatch' => 'If-Match', 'xFcAccountId' => 'X-Fc-Account-Id', - 'xFcDate' => 'X-Fc-Date', - 'xFcTraceId' => 'X-Fc-Trace-Id', + 'xFcDate' => 'X-Fc-Date', + 'xFcTraceId' => 'X-Fc-Trace-Id', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->commonHeaders) { $res['commonHeaders'] = $this->commonHeaders; @@ -58,34 +30,51 @@ public function toMap() if (null !== $this->xFcTraceId) { $res['X-Fc-Trace-Id'] = $this->xFcTraceId; } - return $res; } - /** * @param array $map - * * @return PutFunctionOnDemandConfigHeaders */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['commonHeaders'])) { + if(isset($map['commonHeaders'])){ $model->commonHeaders = $map['commonHeaders']; } - if (isset($map['If-Match'])) { + if(isset($map['If-Match'])){ $model->ifMatch = $map['If-Match']; } - if (isset($map['X-Fc-Account-Id'])) { + if(isset($map['X-Fc-Account-Id'])){ $model->xFcAccountId = $map['X-Fc-Account-Id']; } - if (isset($map['X-Fc-Date'])) { + if(isset($map['X-Fc-Date'])){ $model->xFcDate = $map['X-Fc-Date']; } - if (isset($map['X-Fc-Trace-Id'])) { + if(isset($map['X-Fc-Trace-Id'])){ $model->xFcTraceId = $map['X-Fc-Trace-Id']; } - return $model; } + public $commonHeaders; + + /** + * @var string + */ + public $ifMatch; + + /** + * @var string + */ + public $xFcAccountId; + + /** + * @var string + */ + public $xFcDate; + + /** + * @var string + */ + public $xFcTraceId; + } diff --git a/fc-open-20210406/src/Models/PutFunctionOnDemandConfigRequest.php b/fc-open-20210406/src/Models/PutFunctionOnDemandConfigRequest.php index d9237786f3..32ff2dcfaf 100644 --- a/fc-open-20210406/src/Models/PutFunctionOnDemandConfigRequest.php +++ b/fc-open-20210406/src/Models/PutFunctionOnDemandConfigRequest.php @@ -1,33 +1,17 @@ 'maximumInstanceCount', - 'qualifier' => 'qualifier', + 'qualifier' => 'qualifier', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->maximumInstanceCount) { $res['maximumInstanceCount'] = $this->maximumInstanceCount; @@ -35,25 +19,30 @@ public function toMap() if (null !== $this->qualifier) { $res['qualifier'] = $this->qualifier; } - return $res; } - /** * @param array $map - * * @return PutFunctionOnDemandConfigRequest */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['maximumInstanceCount'])) { + if(isset($map['maximumInstanceCount'])){ $model->maximumInstanceCount = $map['maximumInstanceCount']; } - if (isset($map['qualifier'])) { + if(isset($map['qualifier'])){ $model->qualifier = $map['qualifier']; } - return $model; } + /** + * @var int + */ + public $maximumInstanceCount; + + /** + * @var string + */ + public $qualifier; + } diff --git a/fc-open-20210406/src/Models/PutFunctionOnDemandConfigResponse.php b/fc-open-20210406/src/Models/PutFunctionOnDemandConfigResponse.php index 5fac44f808..da3d7d1250 100644 --- a/fc-open-20210406/src/Models/PutFunctionOnDemandConfigResponse.php +++ b/fc-open-20210406/src/Models/PutFunctionOnDemandConfigResponse.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 PutFunctionOnDemandConfigResponse */ - 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 = PutFunctionOnDemandConfigResponseBody::fromMap($map['body']); } - return $model; } + /** + * @var string[] + */ + public $headers; + + /** + * @var int + */ + public $statusCode; + + /** + * @var PutFunctionOnDemandConfigResponseBody + */ + public $body; + } diff --git a/fc-open-20210406/src/Models/PutFunctionOnDemandConfigResponseBody.php b/fc-open-20210406/src/Models/PutFunctionOnDemandConfigResponseBody.php index ac724f3961..cb3ca14005 100644 --- a/fc-open-20210406/src/Models/PutFunctionOnDemandConfigResponseBody.php +++ b/fc-open-20210406/src/Models/PutFunctionOnDemandConfigResponseBody.php @@ -1,33 +1,17 @@ 'maximumInstanceCount', - 'resource' => 'resource', + 'resource' => 'resource', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->maximumInstanceCount) { $res['maximumInstanceCount'] = $this->maximumInstanceCount; @@ -35,25 +19,30 @@ public function toMap() if (null !== $this->resource) { $res['resource'] = $this->resource; } - return $res; } - /** * @param array $map - * * @return PutFunctionOnDemandConfigResponseBody */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['maximumInstanceCount'])) { + if(isset($map['maximumInstanceCount'])){ $model->maximumInstanceCount = $map['maximumInstanceCount']; } - if (isset($map['resource'])) { + if(isset($map['resource'])){ $model->resource = $map['resource']; } - return $model; } + /** + * @var int + */ + public $maximumInstanceCount; + + /** + * @var string + */ + public $resource; + } diff --git a/fc-open-20210406/src/Models/PutLayerACLHeaders.php b/fc-open-20210406/src/Models/PutLayerACLHeaders.php index ea1c2c0df0..90896c370b 100644 --- a/fc-open-20210406/src/Models/PutLayerACLHeaders.php +++ b/fc-open-20210406/src/Models/PutLayerACLHeaders.php @@ -1,41 +1,18 @@ 'X-Fc-Account-Id', - 'xFcDate' => 'X-Fc-Date', - 'xFcTraceId' => 'X-Fc-Trace-Id', + 'xFcDate' => 'X-Fc-Date', + 'xFcTraceId' => 'X-Fc-Trace-Id', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->commonHeaders) { $res['commonHeaders'] = $this->commonHeaders; @@ -49,31 +26,43 @@ public function toMap() if (null !== $this->xFcTraceId) { $res['X-Fc-Trace-Id'] = $this->xFcTraceId; } - return $res; } - /** * @param array $map - * * @return PutLayerACLHeaders */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['commonHeaders'])) { + if(isset($map['commonHeaders'])){ $model->commonHeaders = $map['commonHeaders']; } - if (isset($map['X-Fc-Account-Id'])) { + if(isset($map['X-Fc-Account-Id'])){ $model->xFcAccountId = $map['X-Fc-Account-Id']; } - if (isset($map['X-Fc-Date'])) { + if(isset($map['X-Fc-Date'])){ $model->xFcDate = $map['X-Fc-Date']; } - if (isset($map['X-Fc-Trace-Id'])) { + if(isset($map['X-Fc-Trace-Id'])){ $model->xFcTraceId = $map['X-Fc-Trace-Id']; } - return $model; } + public $commonHeaders; + + /** + * @var string + */ + public $xFcAccountId; + + /** + * @var string + */ + public $xFcDate; + + /** + * @var string + */ + public $xFcTraceId; + } diff --git a/fc-open-20210406/src/Models/PutLayerACLRequest.php b/fc-open-20210406/src/Models/PutLayerACLRequest.php index ff7fb2cabe..bde67fe11c 100644 --- a/fc-open-20210406/src/Models/PutLayerACLRequest.php +++ b/fc-open-20210406/src/Models/PutLayerACLRequest.php @@ -1,47 +1,36 @@ 'public', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->public) { $res['public'] = $this->public; } - return $res; } - /** * @param array $map - * * @return PutLayerACLRequest */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['public'])) { + if(isset($map['public'])){ $model->public = $map['public']; } - return $model; } + /** + * @var bool + */ + public $public; + } diff --git a/fc-open-20210406/src/Models/PutLayerACLResponse.php b/fc-open-20210406/src/Models/PutLayerACLResponse.php index 3b143be3ec..f69b442ab3 100644 --- a/fc-open-20210406/src/Models/PutLayerACLResponse.php +++ b/fc-open-20210406/src/Models/PutLayerACLResponse.php @@ -1,42 +1,22 @@ '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 +27,38 @@ public function toMap() if (null !== $this->body) { $res['body'] = $this->body; } - return $res; } - /** * @param array $map - * * @return PutLayerACLResponse */ - 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 = $map['body']; } - return $model; } + /** + * @var string[] + */ + public $headers; + + /** + * @var int + */ + public $statusCode; + + /** + * @var string + */ + public $body; + } diff --git a/fc-open-20210406/src/Models/PutProvisionConfigHeaders.php b/fc-open-20210406/src/Models/PutProvisionConfigHeaders.php index a90b585059..a6f6c24b99 100644 --- a/fc-open-20210406/src/Models/PutProvisionConfigHeaders.php +++ b/fc-open-20210406/src/Models/PutProvisionConfigHeaders.php @@ -1,41 +1,18 @@ 'X-Fc-Account-Id', - 'xFcDate' => 'X-Fc-Date', - 'xFcTraceId' => 'X-Fc-Trace-Id', + 'xFcDate' => 'X-Fc-Date', + 'xFcTraceId' => 'X-Fc-Trace-Id', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->commonHeaders) { $res['commonHeaders'] = $this->commonHeaders; @@ -49,31 +26,43 @@ public function toMap() if (null !== $this->xFcTraceId) { $res['X-Fc-Trace-Id'] = $this->xFcTraceId; } - return $res; } - /** * @param array $map - * * @return PutProvisionConfigHeaders */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['commonHeaders'])) { + if(isset($map['commonHeaders'])){ $model->commonHeaders = $map['commonHeaders']; } - if (isset($map['X-Fc-Account-Id'])) { + if(isset($map['X-Fc-Account-Id'])){ $model->xFcAccountId = $map['X-Fc-Account-Id']; } - if (isset($map['X-Fc-Date'])) { + if(isset($map['X-Fc-Date'])){ $model->xFcDate = $map['X-Fc-Date']; } - if (isset($map['X-Fc-Trace-Id'])) { + if(isset($map['X-Fc-Trace-Id'])){ $model->xFcTraceId = $map['X-Fc-Trace-Id']; } - return $model; } + public $commonHeaders; + + /** + * @var string + */ + public $xFcAccountId; + + /** + * @var string + */ + public $xFcDate; + + /** + * @var string + */ + public $xFcTraceId; + } diff --git a/fc-open-20210406/src/Models/PutProvisionConfigRequest.php b/fc-open-20210406/src/Models/PutProvisionConfigRequest.php index 1023b39fc9..8a59f31901 100644 --- a/fc-open-20210406/src/Models/PutProvisionConfigRequest.php +++ b/fc-open-20210406/src/Models/PutProvisionConfigRequest.php @@ -1,60 +1,32 @@ 'alwaysAllocateCPU', - 'scheduledActions' => 'scheduledActions', - 'target' => 'target', + 'alwaysAllocateCPU' => 'alwaysAllocateCPU', + 'scheduledActions' => 'scheduledActions', + 'target' => 'target', 'targetTrackingPolicies' => 'targetTrackingPolicies', - 'qualifier' => 'qualifier', + 'qualifier' => 'qualifier', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->alwaysAllocateCPU) { $res['alwaysAllocateCPU'] = $this->alwaysAllocateCPU; } if (null !== $this->scheduledActions) { $res['scheduledActions'] = []; - if (null !== $this->scheduledActions && \is_array($this->scheduledActions)) { + if(null !== $this->scheduledActions && is_array($this->scheduledActions)){ $n = 0; - foreach ($this->scheduledActions as $item) { + foreach($this->scheduledActions as $item){ $res['scheduledActions'][$n++] = null !== $item ? $item->toMap() : $item; } } @@ -64,9 +36,9 @@ public function toMap() } if (null !== $this->targetTrackingPolicies) { $res['targetTrackingPolicies'] = []; - if (null !== $this->targetTrackingPolicies && \is_array($this->targetTrackingPolicies)) { + if(null !== $this->targetTrackingPolicies && is_array($this->targetTrackingPolicies)){ $n = 0; - foreach ($this->targetTrackingPolicies as $item) { + foreach($this->targetTrackingPolicies as $item){ $res['targetTrackingPolicies'][$n++] = null !== $item ? $item->toMap() : $item; } } @@ -74,46 +46,66 @@ public function toMap() if (null !== $this->qualifier) { $res['qualifier'] = $this->qualifier; } - return $res; } - /** * @param array $map - * * @return PutProvisionConfigRequest */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['alwaysAllocateCPU'])) { + if(isset($map['alwaysAllocateCPU'])){ $model->alwaysAllocateCPU = $map['alwaysAllocateCPU']; } - if (isset($map['scheduledActions'])) { - if (!empty($map['scheduledActions'])) { + if(isset($map['scheduledActions'])){ + if(!empty($map['scheduledActions'])){ $model->scheduledActions = []; - $n = 0; - foreach ($map['scheduledActions'] as $item) { + $n = 0; + foreach($map['scheduledActions'] as $item) { $model->scheduledActions[$n++] = null !== $item ? ScheduledActions::fromMap($item) : $item; } } } - if (isset($map['target'])) { + if(isset($map['target'])){ $model->target = $map['target']; } - if (isset($map['targetTrackingPolicies'])) { - if (!empty($map['targetTrackingPolicies'])) { + if(isset($map['targetTrackingPolicies'])){ + if(!empty($map['targetTrackingPolicies'])){ $model->targetTrackingPolicies = []; - $n = 0; - foreach ($map['targetTrackingPolicies'] as $item) { + $n = 0; + foreach($map['targetTrackingPolicies'] as $item) { $model->targetTrackingPolicies[$n++] = null !== $item ? TargetTrackingPolicies::fromMap($item) : $item; } } } - if (isset($map['qualifier'])) { + if(isset($map['qualifier'])){ $model->qualifier = $map['qualifier']; } - return $model; } + /** + * @var bool + */ + public $alwaysAllocateCPU; + + /** + * @var ScheduledActions[] + */ + public $scheduledActions; + + /** + * @var int + */ + public $target; + + /** + * @var TargetTrackingPolicies[] + */ + public $targetTrackingPolicies; + + /** + * @var string + */ + public $qualifier; + } diff --git a/fc-open-20210406/src/Models/PutProvisionConfigResponse.php b/fc-open-20210406/src/Models/PutProvisionConfigResponse.php index 39b5bb361a..5d6e072529 100644 --- a/fc-open-20210406/src/Models/PutProvisionConfigResponse.php +++ b/fc-open-20210406/src/Models/PutProvisionConfigResponse.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 PutProvisionConfigResponse */ - 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 = PutProvisionConfigResponseBody::fromMap($map['body']); } - return $model; } + /** + * @var string[] + */ + public $headers; + + /** + * @var int + */ + public $statusCode; + + /** + * @var PutProvisionConfigResponseBody + */ + public $body; + } diff --git a/fc-open-20210406/src/Models/PutProvisionConfigResponseBody.php b/fc-open-20210406/src/Models/PutProvisionConfigResponseBody.php index 92b0b07fac..41bafd9508 100644 --- a/fc-open-20210406/src/Models/PutProvisionConfigResponseBody.php +++ b/fc-open-20210406/src/Models/PutProvisionConfigResponseBody.php @@ -1,57 +1,24 @@ 'alwaysAllocateCPU', - 'current' => 'current', - 'resource' => 'resource', - 'scheduledActions' => 'scheduledActions', - 'target' => 'target', + 'alwaysAllocateCPU' => 'alwaysAllocateCPU', + 'current' => 'current', + 'resource' => 'resource', + 'scheduledActions' => 'scheduledActions', + 'target' => 'target', 'targetTrackingPolicies' => 'targetTrackingPolicies', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->alwaysAllocateCPU) { $res['alwaysAllocateCPU'] = $this->alwaysAllocateCPU; @@ -64,9 +31,9 @@ public function toMap() } if (null !== $this->scheduledActions) { $res['scheduledActions'] = []; - if (null !== $this->scheduledActions && \is_array($this->scheduledActions)) { + if(null !== $this->scheduledActions && is_array($this->scheduledActions)){ $n = 0; - foreach ($this->scheduledActions as $item) { + foreach($this->scheduledActions as $item){ $res['scheduledActions'][$n++] = null !== $item ? $item->toMap() : $item; } } @@ -76,56 +43,81 @@ public function toMap() } if (null !== $this->targetTrackingPolicies) { $res['targetTrackingPolicies'] = []; - if (null !== $this->targetTrackingPolicies && \is_array($this->targetTrackingPolicies)) { + if(null !== $this->targetTrackingPolicies && is_array($this->targetTrackingPolicies)){ $n = 0; - foreach ($this->targetTrackingPolicies as $item) { + foreach($this->targetTrackingPolicies as $item){ $res['targetTrackingPolicies'][$n++] = null !== $item ? $item->toMap() : $item; } } } - return $res; } - /** * @param array $map - * * @return PutProvisionConfigResponseBody */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['alwaysAllocateCPU'])) { + if(isset($map['alwaysAllocateCPU'])){ $model->alwaysAllocateCPU = $map['alwaysAllocateCPU']; } - if (isset($map['current'])) { + if(isset($map['current'])){ $model->current = $map['current']; } - if (isset($map['resource'])) { + if(isset($map['resource'])){ $model->resource = $map['resource']; } - if (isset($map['scheduledActions'])) { - if (!empty($map['scheduledActions'])) { + if(isset($map['scheduledActions'])){ + if(!empty($map['scheduledActions'])){ $model->scheduledActions = []; - $n = 0; - foreach ($map['scheduledActions'] as $item) { + $n = 0; + foreach($map['scheduledActions'] as $item) { $model->scheduledActions[$n++] = null !== $item ? ScheduledActions::fromMap($item) : $item; } } } - if (isset($map['target'])) { + if(isset($map['target'])){ $model->target = $map['target']; } - if (isset($map['targetTrackingPolicies'])) { - if (!empty($map['targetTrackingPolicies'])) { + if(isset($map['targetTrackingPolicies'])){ + if(!empty($map['targetTrackingPolicies'])){ $model->targetTrackingPolicies = []; - $n = 0; - foreach ($map['targetTrackingPolicies'] as $item) { + $n = 0; + foreach($map['targetTrackingPolicies'] as $item) { $model->targetTrackingPolicies[$n++] = null !== $item ? TargetTrackingPolicies::fromMap($item) : $item; } } } - return $model; } + /** + * @var bool + */ + public $alwaysAllocateCPU; + + /** + * @var int + */ + public $current; + + /** + * @var string + */ + public $resource; + + /** + * @var ScheduledActions[] + */ + public $scheduledActions; + + /** + * @var int + */ + public $target; + + /** + * @var TargetTrackingPolicies[] + */ + public $targetTrackingPolicies; + } diff --git a/fc-open-20210406/src/Models/RdsTriggerConfig.php b/fc-open-20210406/src/Models/RdsTriggerConfig.php index 917bc10598..deb277c66f 100644 --- a/fc-open-20210406/src/Models/RdsTriggerConfig.php +++ b/fc-open-20210406/src/Models/RdsTriggerConfig.php @@ -1,45 +1,19 @@ 'concurrency', - 'eventFormat' => 'eventFormat', - 'retry' => 'retry', + 'concurrency' => 'concurrency', + 'eventFormat' => 'eventFormat', + 'retry' => 'retry', 'subscriptionObjects' => 'subscriptionObjects', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->concurrency) { $res['concurrency'] = $this->concurrency; @@ -53,33 +27,48 @@ public function toMap() if (null !== $this->subscriptionObjects) { $res['subscriptionObjects'] = $this->subscriptionObjects; } - return $res; } - /** * @param array $map - * * @return RdsTriggerConfig */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['concurrency'])) { + if(isset($map['concurrency'])){ $model->concurrency = $map['concurrency']; } - if (isset($map['eventFormat'])) { + if(isset($map['eventFormat'])){ $model->eventFormat = $map['eventFormat']; } - if (isset($map['retry'])) { + if(isset($map['retry'])){ $model->retry = $map['retry']; } - if (isset($map['subscriptionObjects'])) { - if (!empty($map['subscriptionObjects'])) { + if(isset($map['subscriptionObjects'])){ + if(!empty($map['subscriptionObjects'])){ $model->subscriptionObjects = $map['subscriptionObjects']; } } - return $model; } + /** + * @var int + */ + public $concurrency; + + /** + * @var string + */ + public $eventFormat; + + /** + * @var int + */ + public $retry; + + /** + * @var string[] + */ + public $subscriptionObjects; + } diff --git a/fc-open-20210406/src/Models/RegisterEventSourceHeaders.php b/fc-open-20210406/src/Models/RegisterEventSourceHeaders.php index 7b006b51f8..8da70479c8 100644 --- a/fc-open-20210406/src/Models/RegisterEventSourceHeaders.php +++ b/fc-open-20210406/src/Models/RegisterEventSourceHeaders.php @@ -1,41 +1,18 @@ 'X-Fc-Account-Id', - 'xFcDate' => 'X-Fc-Date', - 'xFcTraceId' => 'X-Fc-Trace-Id', + 'xFcDate' => 'X-Fc-Date', + 'xFcTraceId' => 'X-Fc-Trace-Id', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->commonHeaders) { $res['commonHeaders'] = $this->commonHeaders; @@ -49,31 +26,43 @@ public function toMap() if (null !== $this->xFcTraceId) { $res['X-Fc-Trace-Id'] = $this->xFcTraceId; } - return $res; } - /** * @param array $map - * * @return RegisterEventSourceHeaders */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['commonHeaders'])) { + if(isset($map['commonHeaders'])){ $model->commonHeaders = $map['commonHeaders']; } - if (isset($map['X-Fc-Account-Id'])) { + if(isset($map['X-Fc-Account-Id'])){ $model->xFcAccountId = $map['X-Fc-Account-Id']; } - if (isset($map['X-Fc-Date'])) { + if(isset($map['X-Fc-Date'])){ $model->xFcDate = $map['X-Fc-Date']; } - if (isset($map['X-Fc-Trace-Id'])) { + if(isset($map['X-Fc-Trace-Id'])){ $model->xFcTraceId = $map['X-Fc-Trace-Id']; } - return $model; } + public $commonHeaders; + + /** + * @var string + */ + public $xFcAccountId; + + /** + * @var string + */ + public $xFcDate; + + /** + * @var string + */ + public $xFcTraceId; + } diff --git a/fc-open-20210406/src/Models/RegisterEventSourceRequest.php b/fc-open-20210406/src/Models/RegisterEventSourceRequest.php index 9491304977..d5b8d587c8 100644 --- a/fc-open-20210406/src/Models/RegisterEventSourceRequest.php +++ b/fc-open-20210406/src/Models/RegisterEventSourceRequest.php @@ -1,33 +1,17 @@ 'sourceArn', 'qualifier' => 'qualifier', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->sourceArn) { $res['sourceArn'] = $this->sourceArn; @@ -35,25 +19,30 @@ public function toMap() if (null !== $this->qualifier) { $res['qualifier'] = $this->qualifier; } - return $res; } - /** * @param array $map - * * @return RegisterEventSourceRequest */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['sourceArn'])) { + if(isset($map['sourceArn'])){ $model->sourceArn = $map['sourceArn']; } - if (isset($map['qualifier'])) { + if(isset($map['qualifier'])){ $model->qualifier = $map['qualifier']; } - return $model; } + /** + * @var string + */ + public $sourceArn; + + /** + * @var string + */ + public $qualifier; + } diff --git a/fc-open-20210406/src/Models/RegisterEventSourceResponse.php b/fc-open-20210406/src/Models/RegisterEventSourceResponse.php index 4eb41bf031..c7c053ab05 100644 --- a/fc-open-20210406/src/Models/RegisterEventSourceResponse.php +++ b/fc-open-20210406/src/Models/RegisterEventSourceResponse.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 RegisterEventSourceResponse */ - 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 = RegisterEventSourceResponseBody::fromMap($map['body']); } - return $model; } + /** + * @var string[] + */ + public $headers; + + /** + * @var int + */ + public $statusCode; + + /** + * @var RegisterEventSourceResponseBody + */ + public $body; + } diff --git a/fc-open-20210406/src/Models/RegisterEventSourceResponseBody.php b/fc-open-20210406/src/Models/RegisterEventSourceResponseBody.php index a85d6a787a..3d52bc7270 100644 --- a/fc-open-20210406/src/Models/RegisterEventSourceResponseBody.php +++ b/fc-open-20210406/src/Models/RegisterEventSourceResponseBody.php @@ -1,33 +1,17 @@ 'createdTime', - 'sourceArn' => 'sourceArn', + 'sourceArn' => 'sourceArn', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->createdTime) { $res['createdTime'] = $this->createdTime; @@ -35,25 +19,30 @@ public function toMap() if (null !== $this->sourceArn) { $res['sourceArn'] = $this->sourceArn; } - return $res; } - /** * @param array $map - * * @return RegisterEventSourceResponseBody */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['createdTime'])) { + if(isset($map['createdTime'])){ $model->createdTime = $map['createdTime']; } - if (isset($map['sourceArn'])) { + if(isset($map['sourceArn'])){ $model->sourceArn = $map['sourceArn']; } - return $model; } + /** + * @var string + */ + public $createdTime; + + /** + * @var string + */ + public $sourceArn; + } diff --git a/fc-open-20210406/src/Models/Resource.php b/fc-open-20210406/src/Models/Resource.php index e232645231..8795029777 100644 --- a/fc-open-20210406/src/Models/Resource.php +++ b/fc-open-20210406/src/Models/Resource.php @@ -1,33 +1,17 @@ 'resourceArn', - 'tags' => 'tags', + 'tags' => 'tags', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->resourceArn) { $res['resourceArn'] = $this->resourceArn; @@ -35,25 +19,30 @@ public function toMap() if (null !== $this->tags) { $res['tags'] = $this->tags; } - return $res; } - /** * @param array $map - * - * @return resource + * @return Resource */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['resourceArn'])) { + if(isset($map['resourceArn'])){ $model->resourceArn = $map['resourceArn']; } - if (isset($map['tags'])) { + if(isset($map['tags'])){ $model->tags = $map['tags']; } - return $model; } + /** + * @var string + */ + public $resourceArn; + + /** + * @var string[] + */ + public $tags; + } diff --git a/fc-open-20210406/src/Models/RouteConfig.php b/fc-open-20210406/src/Models/RouteConfig.php index 29d008975e..f3ea5ebdda 100644 --- a/fc-open-20210406/src/Models/RouteConfig.php +++ b/fc-open-20210406/src/Models/RouteConfig.php @@ -1,59 +1,50 @@ 'routes', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->routes) { $res['routes'] = []; - if (null !== $this->routes && \is_array($this->routes)) { + if(null !== $this->routes && is_array($this->routes)){ $n = 0; - foreach ($this->routes as $item) { + foreach($this->routes as $item){ $res['routes'][$n++] = null !== $item ? $item->toMap() : $item; } } } - return $res; } - /** * @param array $map - * * @return RouteConfig */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['routes'])) { - if (!empty($map['routes'])) { + if(isset($map['routes'])){ + if(!empty($map['routes'])){ $model->routes = []; - $n = 0; - foreach ($map['routes'] as $item) { + $n = 0; + foreach($map['routes'] as $item) { $model->routes[$n++] = null !== $item ? PathConfig::fromMap($item) : $item; } } } - return $model; } + /** + * @var PathConfig[] + */ + public $routes; + } diff --git a/fc-open-20210406/src/Models/RoutePolicy.php b/fc-open-20210406/src/Models/RoutePolicy.php index 5cc13c1db7..6f6b83dc25 100644 --- a/fc-open-20210406/src/Models/RoutePolicy.php +++ b/fc-open-20210406/src/Models/RoutePolicy.php @@ -1,33 +1,19 @@ 'condition', + 'condition' => 'condition', 'policyItems' => 'policyItems', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->condition) { $res['condition'] = $this->condition; @@ -35,25 +21,30 @@ public function toMap() if (null !== $this->policyItems) { $res['policyItems'] = null !== $this->policyItems ? $this->policyItems->toMap() : null; } - return $res; } - /** * @param array $map - * * @return RoutePolicy */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['condition'])) { + if(isset($map['condition'])){ $model->condition = $map['condition']; } - if (isset($map['policyItems'])) { + if(isset($map['policyItems'])){ $model->policyItems = PolicyItem::fromMap($map['policyItems']); } - return $model; } + /** + * @var int[] + */ + public $condition; + + /** + * @var PolicyItem + */ + public $policyItems; + } diff --git a/fc-open-20210406/src/Models/ScheduledActions.php b/fc-open-20210406/src/Models/ScheduledActions.php index 87a73ad484..0c1dda0a6b 100644 --- a/fc-open-20210406/src/Models/ScheduledActions.php +++ b/fc-open-20210406/src/Models/ScheduledActions.php @@ -1,51 +1,20 @@ 'endTime', - 'name' => 'name', + 'endTime' => 'endTime', + 'name' => 'name', 'scheduleExpression' => 'scheduleExpression', - 'startTime' => 'startTime', - 'target' => 'target', + 'startTime' => 'startTime', + 'target' => 'target', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->endTime) { $res['endTime'] = $this->endTime; @@ -62,34 +31,54 @@ public function toMap() if (null !== $this->target) { $res['target'] = $this->target; } - return $res; } - /** * @param array $map - * * @return ScheduledActions */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['endTime'])) { + if(isset($map['endTime'])){ $model->endTime = $map['endTime']; } - if (isset($map['name'])) { + if(isset($map['name'])){ $model->name = $map['name']; } - if (isset($map['scheduleExpression'])) { + if(isset($map['scheduleExpression'])){ $model->scheduleExpression = $map['scheduleExpression']; } - if (isset($map['startTime'])) { + if(isset($map['startTime'])){ $model->startTime = $map['startTime']; } - if (isset($map['target'])) { + if(isset($map['target'])){ $model->target = $map['target']; } - return $model; } + /** + * @var string + */ + public $endTime; + + /** + * @var string + */ + public $name; + + /** + * @var string + */ + public $scheduleExpression; + + /** + * @var string + */ + public $startTime; + + /** + * @var int + */ + public $target; + } diff --git a/fc-open-20210406/src/Models/SourceConfig.php b/fc-open-20210406/src/Models/SourceConfig.php index 27ad085f82..dd7bacfecd 100644 --- a/fc-open-20210406/src/Models/SourceConfig.php +++ b/fc-open-20210406/src/Models/SourceConfig.php @@ -1,47 +1,36 @@ 'logstore', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->logstore) { $res['logstore'] = $this->logstore; } - return $res; } - /** * @param array $map - * * @return SourceConfig */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['logstore'])) { + if(isset($map['logstore'])){ $model->logstore = $map['logstore']; } - return $model; } + /** + * @var string + */ + public $logstore; + } diff --git a/fc-open-20210406/src/Models/SourceMNSParameters.php b/fc-open-20210406/src/Models/SourceMNSParameters.php index 98052aeeb0..ac9984c1aa 100644 --- a/fc-open-20210406/src/Models/SourceMNSParameters.php +++ b/fc-open-20210406/src/Models/SourceMNSParameters.php @@ -1,39 +1,18 @@ 'IsBase64Decode', - 'queueName' => 'QueueName', - 'regionId' => 'RegionId', + 'queueName' => 'QueueName', + 'regionId' => 'RegionId', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->isBase64Decode) { $res['IsBase64Decode'] = $this->isBase64Decode; @@ -44,28 +23,38 @@ public function toMap() if (null !== $this->regionId) { $res['RegionId'] = $this->regionId; } - return $res; } - /** * @param array $map - * * @return SourceMNSParameters */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['IsBase64Decode'])) { + if(isset($map['IsBase64Decode'])){ $model->isBase64Decode = $map['IsBase64Decode']; } - if (isset($map['QueueName'])) { + if(isset($map['QueueName'])){ $model->queueName = $map['QueueName']; } - if (isset($map['RegionId'])) { + if(isset($map['RegionId'])){ $model->regionId = $map['RegionId']; } - return $model; } + /** + * @var bool + */ + public $isBase64Decode; + + /** + * @var string + */ + public $queueName; + + /** + * @var string + */ + public $regionId; + } diff --git a/fc-open-20210406/src/Models/SourceRabbitMQParameters.php b/fc-open-20210406/src/Models/SourceRabbitMQParameters.php index c15a2f219b..a0a15a0bbd 100644 --- a/fc-open-20210406/src/Models/SourceRabbitMQParameters.php +++ b/fc-open-20210406/src/Models/SourceRabbitMQParameters.php @@ -1,45 +1,19 @@ 'InstanceId', - 'queueName' => 'QueueName', - 'regionId' => 'RegionId', + 'instanceId' => 'InstanceId', + 'queueName' => 'QueueName', + 'regionId' => 'RegionId', 'virtualHostName' => 'VirtualHostName', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->instanceId) { $res['InstanceId'] = $this->instanceId; @@ -53,31 +27,46 @@ public function toMap() if (null !== $this->virtualHostName) { $res['VirtualHostName'] = $this->virtualHostName; } - return $res; } - /** * @param array $map - * * @return SourceRabbitMQParameters */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['InstanceId'])) { + if(isset($map['InstanceId'])){ $model->instanceId = $map['InstanceId']; } - if (isset($map['QueueName'])) { + if(isset($map['QueueName'])){ $model->queueName = $map['QueueName']; } - if (isset($map['RegionId'])) { + if(isset($map['RegionId'])){ $model->regionId = $map['RegionId']; } - if (isset($map['VirtualHostName'])) { + if(isset($map['VirtualHostName'])){ $model->virtualHostName = $map['VirtualHostName']; } - return $model; } + /** + * @var string + */ + public $instanceId; + + /** + * @var string + */ + public $queueName; + + /** + * @var string + */ + public $regionId; + + /** + * @var string + */ + public $virtualHostName; + } diff --git a/fc-open-20210406/src/Models/SourceRocketMQParameters.php b/fc-open-20210406/src/Models/SourceRocketMQParameters.php index 2077b1dd7f..d000f76f6b 100644 --- a/fc-open-20210406/src/Models/SourceRocketMQParameters.php +++ b/fc-open-20210406/src/Models/SourceRocketMQParameters.php @@ -1,63 +1,22 @@ 'GroupID', + 'groupID' => 'GroupID', 'instanceId' => 'InstanceId', - 'offset' => 'Offset', - 'regionId' => 'RegionId', - 'tag' => 'Tag', - 'timestamp' => 'Timestamp', - 'topic' => 'Topic', + 'offset' => 'Offset', + 'regionId' => 'RegionId', + 'tag' => 'Tag', + 'timestamp' => 'Timestamp', + 'topic' => 'Topic', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->groupID) { $res['GroupID'] = $this->groupID; @@ -80,40 +39,70 @@ public function toMap() if (null !== $this->topic) { $res['Topic'] = $this->topic; } - return $res; } - /** * @param array $map - * * @return SourceRocketMQParameters */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['GroupID'])) { + if(isset($map['GroupID'])){ $model->groupID = $map['GroupID']; } - if (isset($map['InstanceId'])) { + if(isset($map['InstanceId'])){ $model->instanceId = $map['InstanceId']; } - if (isset($map['Offset'])) { + if(isset($map['Offset'])){ $model->offset = $map['Offset']; } - if (isset($map['RegionId'])) { + if(isset($map['RegionId'])){ $model->regionId = $map['RegionId']; } - if (isset($map['Tag'])) { + if(isset($map['Tag'])){ $model->tag = $map['Tag']; } - if (isset($map['Timestamp'])) { + if(isset($map['Timestamp'])){ $model->timestamp = $map['Timestamp']; } - if (isset($map['Topic'])) { + if(isset($map['Topic'])){ $model->topic = $map['Topic']; } - return $model; } + /** + * @var string + */ + public $groupID; + + /** + * @var string + */ + public $instanceId; + + /** + * @var string + */ + public $offset; + + /** + * @var string + */ + public $regionId; + + /** + * @var string + */ + public $tag; + + /** + * @var int + */ + public $timestamp; + + /** + * @var string + */ + public $topic; + } diff --git a/fc-open-20210406/src/Models/StatefulAsyncInvocation.php b/fc-open-20210406/src/Models/StatefulAsyncInvocation.php index ea99397f7d..bed9840c02 100644 --- a/fc-open-20210406/src/Models/StatefulAsyncInvocation.php +++ b/fc-open-20210406/src/Models/StatefulAsyncInvocation.php @@ -1,105 +1,31 @@ 'alreadyRetriedTimes', - 'destinationStatus' => 'destinationStatus', - 'endTime' => 'endTime', - 'events' => 'events', - 'functionName' => 'functionName', - 'instanceId' => 'instanceId', + 'alreadyRetriedTimes' => 'alreadyRetriedTimes', + 'destinationStatus' => 'destinationStatus', + 'endTime' => 'endTime', + 'events' => 'events', + 'functionName' => 'functionName', + 'instanceId' => 'instanceId', 'invocationErrorMessage' => 'invocationErrorMessage', - 'invocationId' => 'invocationId', - 'invocationPayload' => 'invocationPayload', - 'qualifier' => 'qualifier', - 'requestId' => 'requestId', - 'serviceName' => 'serviceName', - 'startedTime' => 'startedTime', - 'status' => 'status', + 'invocationId' => 'invocationId', + 'invocationPayload' => 'invocationPayload', + 'qualifier' => 'qualifier', + 'requestId' => 'requestId', + 'serviceName' => 'serviceName', + 'startedTime' => 'startedTime', + 'status' => 'status', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->alreadyRetriedTimes) { $res['alreadyRetriedTimes'] = $this->alreadyRetriedTimes; @@ -112,9 +38,9 @@ public function toMap() } if (null !== $this->events) { $res['events'] = []; - if (null !== $this->events && \is_array($this->events)) { + if(null !== $this->events && is_array($this->events)){ $n = 0; - foreach ($this->events as $item) { + foreach($this->events as $item){ $res['events'][$n++] = null !== $item ? $item->toMap() : $item; } } @@ -149,67 +75,132 @@ public function toMap() if (null !== $this->status) { $res['status'] = $this->status; } - return $res; } - /** * @param array $map - * * @return StatefulAsyncInvocation */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['alreadyRetriedTimes'])) { + if(isset($map['alreadyRetriedTimes'])){ $model->alreadyRetriedTimes = $map['alreadyRetriedTimes']; } - if (isset($map['destinationStatus'])) { + if(isset($map['destinationStatus'])){ $model->destinationStatus = $map['destinationStatus']; } - if (isset($map['endTime'])) { + if(isset($map['endTime'])){ $model->endTime = $map['endTime']; } - if (isset($map['events'])) { - if (!empty($map['events'])) { + if(isset($map['events'])){ + if(!empty($map['events'])){ $model->events = []; - $n = 0; - foreach ($map['events'] as $item) { + $n = 0; + foreach($map['events'] as $item) { $model->events[$n++] = null !== $item ? StatefulAsyncInvocationEvent::fromMap($item) : $item; } } } - if (isset($map['functionName'])) { + if(isset($map['functionName'])){ $model->functionName = $map['functionName']; } - if (isset($map['instanceId'])) { + if(isset($map['instanceId'])){ $model->instanceId = $map['instanceId']; } - if (isset($map['invocationErrorMessage'])) { + if(isset($map['invocationErrorMessage'])){ $model->invocationErrorMessage = $map['invocationErrorMessage']; } - if (isset($map['invocationId'])) { + if(isset($map['invocationId'])){ $model->invocationId = $map['invocationId']; } - if (isset($map['invocationPayload'])) { + if(isset($map['invocationPayload'])){ $model->invocationPayload = $map['invocationPayload']; } - if (isset($map['qualifier'])) { + if(isset($map['qualifier'])){ $model->qualifier = $map['qualifier']; } - if (isset($map['requestId'])) { + if(isset($map['requestId'])){ $model->requestId = $map['requestId']; } - if (isset($map['serviceName'])) { + if(isset($map['serviceName'])){ $model->serviceName = $map['serviceName']; } - if (isset($map['startedTime'])) { + if(isset($map['startedTime'])){ $model->startedTime = $map['startedTime']; } - if (isset($map['status'])) { + if(isset($map['status'])){ $model->status = $map['status']; } - return $model; } + /** + * @var int + */ + public $alreadyRetriedTimes; + + /** + * @var string + */ + public $destinationStatus; + + /** + * @var int + */ + public $endTime; + + /** + * @var StatefulAsyncInvocationEvent[] + */ + public $events; + + /** + * @var string + */ + public $functionName; + + /** + * @var string + */ + public $instanceId; + + /** + * @var string + */ + public $invocationErrorMessage; + + /** + * @var string + */ + public $invocationId; + + /** + * @var string + */ + public $invocationPayload; + + /** + * @var string + */ + public $qualifier; + + /** + * @var string + */ + public $requestId; + + /** + * @var string + */ + public $serviceName; + + /** + * @var int + */ + public $startedTime; + + /** + * @var string + */ + public $status; + } diff --git a/fc-open-20210406/src/Models/StatefulAsyncInvocationEvent.php b/fc-open-20210406/src/Models/StatefulAsyncInvocationEvent.php index 873438e54f..934c050d9b 100644 --- a/fc-open-20210406/src/Models/StatefulAsyncInvocationEvent.php +++ b/fc-open-20210406/src/Models/StatefulAsyncInvocationEvent.php @@ -1,45 +1,19 @@ 'eventDetail', - 'eventId' => 'eventId', - 'status' => 'status', - 'timestamp' => 'timestamp', + 'eventId' => 'eventId', + 'status' => 'status', + 'timestamp' => 'timestamp', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->eventDetail) { $res['eventDetail'] = $this->eventDetail; @@ -53,31 +27,46 @@ public function toMap() if (null !== $this->timestamp) { $res['timestamp'] = $this->timestamp; } - return $res; } - /** * @param array $map - * * @return StatefulAsyncInvocationEvent */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['eventDetail'])) { + if(isset($map['eventDetail'])){ $model->eventDetail = $map['eventDetail']; } - if (isset($map['eventId'])) { + if(isset($map['eventId'])){ $model->eventId = $map['eventId']; } - if (isset($map['status'])) { + if(isset($map['status'])){ $model->status = $map['status']; } - if (isset($map['timestamp'])) { + if(isset($map['timestamp'])){ $model->timestamp = $map['timestamp']; } - return $model; } + /** + * @var string + */ + public $eventDetail; + + /** + * @var int + */ + public $eventId; + + /** + * @var string + */ + public $status; + + /** + * @var int + */ + public $timestamp; + } diff --git a/fc-open-20210406/src/Models/StopStatefulAsyncInvocationHeaders.php b/fc-open-20210406/src/Models/StopStatefulAsyncInvocationHeaders.php index 4da8b530a5..ced81859a4 100644 --- a/fc-open-20210406/src/Models/StopStatefulAsyncInvocationHeaders.php +++ b/fc-open-20210406/src/Models/StopStatefulAsyncInvocationHeaders.php @@ -1,41 +1,18 @@ 'X-Fc-Account-Id', - 'xFcDate' => 'X-Fc-Date', - 'xFcTraceId' => 'X-Fc-Trace-Id', + 'xFcDate' => 'X-Fc-Date', + 'xFcTraceId' => 'X-Fc-Trace-Id', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->commonHeaders) { $res['commonHeaders'] = $this->commonHeaders; @@ -49,31 +26,43 @@ public function toMap() if (null !== $this->xFcTraceId) { $res['X-Fc-Trace-Id'] = $this->xFcTraceId; } - return $res; } - /** * @param array $map - * * @return StopStatefulAsyncInvocationHeaders */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['commonHeaders'])) { + if(isset($map['commonHeaders'])){ $model->commonHeaders = $map['commonHeaders']; } - if (isset($map['X-Fc-Account-Id'])) { + if(isset($map['X-Fc-Account-Id'])){ $model->xFcAccountId = $map['X-Fc-Account-Id']; } - if (isset($map['X-Fc-Date'])) { + if(isset($map['X-Fc-Date'])){ $model->xFcDate = $map['X-Fc-Date']; } - if (isset($map['X-Fc-Trace-Id'])) { + if(isset($map['X-Fc-Trace-Id'])){ $model->xFcTraceId = $map['X-Fc-Trace-Id']; } - return $model; } + public $commonHeaders; + + /** + * @var string + */ + public $xFcAccountId; + + /** + * @var string + */ + public $xFcDate; + + /** + * @var string + */ + public $xFcTraceId; + } diff --git a/fc-open-20210406/src/Models/StopStatefulAsyncInvocationRequest.php b/fc-open-20210406/src/Models/StopStatefulAsyncInvocationRequest.php index c74925e71a..698cdd316e 100644 --- a/fc-open-20210406/src/Models/StopStatefulAsyncInvocationRequest.php +++ b/fc-open-20210406/src/Models/StopStatefulAsyncInvocationRequest.php @@ -1,47 +1,36 @@ 'qualifier', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->qualifier) { $res['qualifier'] = $this->qualifier; } - return $res; } - /** * @param array $map - * * @return StopStatefulAsyncInvocationRequest */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['qualifier'])) { + if(isset($map['qualifier'])){ $model->qualifier = $map['qualifier']; } - return $model; } + /** + * @var string + */ + public $qualifier; + } diff --git a/fc-open-20210406/src/Models/StopStatefulAsyncInvocationResponse.php b/fc-open-20210406/src/Models/StopStatefulAsyncInvocationResponse.php index 9173cb4e70..5680ac4225 100644 --- a/fc-open-20210406/src/Models/StopStatefulAsyncInvocationResponse.php +++ b/fc-open-20210406/src/Models/StopStatefulAsyncInvocationResponse.php @@ -1,35 +1,20 @@ 'headers', + 'headers' => 'headers', 'statusCode' => 'statusCode', ]; - - public function validate() - { + public function validate() { Model::validateRequired('headers', $this->headers, true); Model::validateRequired('statusCode', $this->statusCode, true); } - - public function toMap() - { + public function toMap() { $res = []; if (null !== $this->headers) { $res['headers'] = $this->headers; @@ -37,25 +22,30 @@ public function toMap() if (null !== $this->statusCode) { $res['statusCode'] = $this->statusCode; } - return $res; } - /** * @param array $map - * * @return StopStatefulAsyncInvocationResponse */ - 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']; } - return $model; } + /** + * @var string[] + */ + public $headers; + + /** + * @var int + */ + public $statusCode; + } diff --git a/fc-open-20210406/src/Models/TLSConfig.php b/fc-open-20210406/src/Models/TLSConfig.php index b853624b0a..e5feb2f37d 100644 --- a/fc-open-20210406/src/Models/TLSConfig.php +++ b/fc-open-20210406/src/Models/TLSConfig.php @@ -1,39 +1,18 @@ 'cipherSuites', - 'maxVersion' => 'maxVersion', - 'minVersion' => 'minVersion', + 'maxVersion' => 'maxVersion', + 'minVersion' => 'minVersion', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->cipherSuites) { $res['cipherSuites'] = $this->cipherSuites; @@ -44,30 +23,40 @@ public function toMap() if (null !== $this->minVersion) { $res['minVersion'] = $this->minVersion; } - return $res; } - /** * @param array $map - * * @return TLSConfig */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['cipherSuites'])) { - if (!empty($map['cipherSuites'])) { + if(isset($map['cipherSuites'])){ + if(!empty($map['cipherSuites'])){ $model->cipherSuites = $map['cipherSuites']; } } - if (isset($map['maxVersion'])) { + if(isset($map['maxVersion'])){ $model->maxVersion = $map['maxVersion']; } - if (isset($map['minVersion'])) { + if(isset($map['minVersion'])){ $model->minVersion = $map['minVersion']; } - return $model; } + /** + * @var string[] + */ + public $cipherSuites; + + /** + * @var string + */ + public $maxVersion; + + /** + * @var string + */ + public $minVersion; + } diff --git a/fc-open-20210406/src/Models/TagResourceHeaders.php b/fc-open-20210406/src/Models/TagResourceHeaders.php index 469684af7d..c87c5f3556 100644 --- a/fc-open-20210406/src/Models/TagResourceHeaders.php +++ b/fc-open-20210406/src/Models/TagResourceHeaders.php @@ -1,41 +1,18 @@ 'X-Fc-Account-Id', - 'xFcDate' => 'X-Fc-Date', - 'xFcTraceId' => 'X-Fc-Trace-Id', + 'xFcDate' => 'X-Fc-Date', + 'xFcTraceId' => 'X-Fc-Trace-Id', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->commonHeaders) { $res['commonHeaders'] = $this->commonHeaders; @@ -49,31 +26,43 @@ public function toMap() if (null !== $this->xFcTraceId) { $res['X-Fc-Trace-Id'] = $this->xFcTraceId; } - return $res; } - /** * @param array $map - * * @return TagResourceHeaders */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['commonHeaders'])) { + if(isset($map['commonHeaders'])){ $model->commonHeaders = $map['commonHeaders']; } - if (isset($map['X-Fc-Account-Id'])) { + if(isset($map['X-Fc-Account-Id'])){ $model->xFcAccountId = $map['X-Fc-Account-Id']; } - if (isset($map['X-Fc-Date'])) { + if(isset($map['X-Fc-Date'])){ $model->xFcDate = $map['X-Fc-Date']; } - if (isset($map['X-Fc-Trace-Id'])) { + if(isset($map['X-Fc-Trace-Id'])){ $model->xFcTraceId = $map['X-Fc-Trace-Id']; } - return $model; } + public $commonHeaders; + + /** + * @var string + */ + public $xFcAccountId; + + /** + * @var string + */ + public $xFcDate; + + /** + * @var string + */ + public $xFcTraceId; + } diff --git a/fc-open-20210406/src/Models/TagResourceRequest.php b/fc-open-20210406/src/Models/TagResourceRequest.php index be5d3a6175..82c0f9ef8f 100644 --- a/fc-open-20210406/src/Models/TagResourceRequest.php +++ b/fc-open-20210406/src/Models/TagResourceRequest.php @@ -1,33 +1,17 @@ 'resourceArn', - 'tags' => 'tags', + 'tags' => 'tags', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->resourceArn) { $res['resourceArn'] = $this->resourceArn; @@ -35,25 +19,30 @@ public function toMap() if (null !== $this->tags) { $res['tags'] = $this->tags; } - return $res; } - /** * @param array $map - * * @return TagResourceRequest */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['resourceArn'])) { + if(isset($map['resourceArn'])){ $model->resourceArn = $map['resourceArn']; } - if (isset($map['tags'])) { + if(isset($map['tags'])){ $model->tags = $map['tags']; } - return $model; } + /** + * @var string + */ + public $resourceArn; + + /** + * @var string[] + */ + public $tags; + } diff --git a/fc-open-20210406/src/Models/TagResourceResponse.php b/fc-open-20210406/src/Models/TagResourceResponse.php index e98d5bb666..b705a2b952 100644 --- a/fc-open-20210406/src/Models/TagResourceResponse.php +++ b/fc-open-20210406/src/Models/TagResourceResponse.php @@ -1,35 +1,20 @@ 'headers', + 'headers' => 'headers', 'statusCode' => 'statusCode', ]; - - public function validate() - { + public function validate() { Model::validateRequired('headers', $this->headers, true); Model::validateRequired('statusCode', $this->statusCode, true); } - - public function toMap() - { + public function toMap() { $res = []; if (null !== $this->headers) { $res['headers'] = $this->headers; @@ -37,25 +22,30 @@ public function toMap() if (null !== $this->statusCode) { $res['statusCode'] = $this->statusCode; } - return $res; } - /** * @param array $map - * * @return TagResourceResponse */ - 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']; } - return $model; } + /** + * @var string[] + */ + public $headers; + + /** + * @var int + */ + public $statusCode; + } diff --git a/fc-open-20210406/src/Models/TargetTrackingPolicies.php b/fc-open-20210406/src/Models/TargetTrackingPolicies.php index 00b5c89020..08da764651 100644 --- a/fc-open-20210406/src/Models/TargetTrackingPolicies.php +++ b/fc-open-20210406/src/Models/TargetTrackingPolicies.php @@ -1,63 +1,22 @@ 'endTime', - 'maxCapacity' => 'maxCapacity', + 'endTime' => 'endTime', + 'maxCapacity' => 'maxCapacity', 'metricTarget' => 'metricTarget', - 'metricType' => 'metricType', - 'minCapacity' => 'minCapacity', - 'name' => 'name', - 'startTime' => 'startTime', + 'metricType' => 'metricType', + 'minCapacity' => 'minCapacity', + 'name' => 'name', + 'startTime' => 'startTime', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->endTime) { $res['endTime'] = $this->endTime; @@ -80,40 +39,70 @@ public function toMap() if (null !== $this->startTime) { $res['startTime'] = $this->startTime; } - return $res; } - /** * @param array $map - * * @return TargetTrackingPolicies */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['endTime'])) { + if(isset($map['endTime'])){ $model->endTime = $map['endTime']; } - if (isset($map['maxCapacity'])) { + if(isset($map['maxCapacity'])){ $model->maxCapacity = $map['maxCapacity']; } - if (isset($map['metricTarget'])) { + if(isset($map['metricTarget'])){ $model->metricTarget = $map['metricTarget']; } - if (isset($map['metricType'])) { + if(isset($map['metricType'])){ $model->metricType = $map['metricType']; } - if (isset($map['minCapacity'])) { + if(isset($map['minCapacity'])){ $model->minCapacity = $map['minCapacity']; } - if (isset($map['name'])) { + if(isset($map['name'])){ $model->name = $map['name']; } - if (isset($map['startTime'])) { + if(isset($map['startTime'])){ $model->startTime = $map['startTime']; } - return $model; } + /** + * @var string + */ + public $endTime; + + /** + * @var int + */ + public $maxCapacity; + + /** + * @var float + */ + public $metricTarget; + + /** + * @var string + */ + public $metricType; + + /** + * @var int + */ + public $minCapacity; + + /** + * @var string + */ + public $name; + + /** + * @var string + */ + public $startTime; + } diff --git a/fc-open-20210406/src/Models/TimeTriggerConfig.php b/fc-open-20210406/src/Models/TimeTriggerConfig.php index 58c809dbb1..146d235a11 100644 --- a/fc-open-20210406/src/Models/TimeTriggerConfig.php +++ b/fc-open-20210406/src/Models/TimeTriggerConfig.php @@ -1,39 +1,18 @@ 'cronExpression', - 'enable' => 'enable', - 'payload' => 'payload', + 'enable' => 'enable', + 'payload' => 'payload', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->cronExpression) { $res['cronExpression'] = $this->cronExpression; @@ -44,28 +23,38 @@ public function toMap() if (null !== $this->payload) { $res['payload'] = $this->payload; } - return $res; } - /** * @param array $map - * * @return TimeTriggerConfig */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['cronExpression'])) { + if(isset($map['cronExpression'])){ $model->cronExpression = $map['cronExpression']; } - if (isset($map['enable'])) { + if(isset($map['enable'])){ $model->enable = $map['enable']; } - if (isset($map['payload'])) { + if(isset($map['payload'])){ $model->payload = $map['payload']; } - return $model; } + /** + * @var string + */ + public $cronExpression; + + /** + * @var bool + */ + public $enable; + + /** + * @var string + */ + public $payload; + } diff --git a/fc-open-20210406/src/Models/TracingConfig.php b/fc-open-20210406/src/Models/TracingConfig.php index 19991357b7..6d70404a96 100644 --- a/fc-open-20210406/src/Models/TracingConfig.php +++ b/fc-open-20210406/src/Models/TracingConfig.php @@ -1,33 +1,17 @@ 'params', - 'type' => 'type', + 'type' => 'type', ]; - - 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->type) { $res['type'] = $this->type; } - return $res; } - /** * @param array $map - * * @return TracingConfig */ - 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['type'])) { + if(isset($map['type'])){ $model->type = $map['type']; } - return $model; } + /** + * @var string[] + */ + public $params; + + /** + * @var string + */ + public $type; + } diff --git a/fc-open-20210406/src/Models/UntagResourceHeaders.php b/fc-open-20210406/src/Models/UntagResourceHeaders.php index 4230b4136a..d4cc7e03fb 100644 --- a/fc-open-20210406/src/Models/UntagResourceHeaders.php +++ b/fc-open-20210406/src/Models/UntagResourceHeaders.php @@ -1,41 +1,18 @@ 'X-Fc-Account-Id', - 'xFcDate' => 'X-Fc-Date', - 'xFcTraceId' => 'X-Fc-Trace-Id', + 'xFcDate' => 'X-Fc-Date', + 'xFcTraceId' => 'X-Fc-Trace-Id', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->commonHeaders) { $res['commonHeaders'] = $this->commonHeaders; @@ -49,31 +26,43 @@ public function toMap() if (null !== $this->xFcTraceId) { $res['X-Fc-Trace-Id'] = $this->xFcTraceId; } - return $res; } - /** * @param array $map - * * @return UntagResourceHeaders */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['commonHeaders'])) { + if(isset($map['commonHeaders'])){ $model->commonHeaders = $map['commonHeaders']; } - if (isset($map['X-Fc-Account-Id'])) { + if(isset($map['X-Fc-Account-Id'])){ $model->xFcAccountId = $map['X-Fc-Account-Id']; } - if (isset($map['X-Fc-Date'])) { + if(isset($map['X-Fc-Date'])){ $model->xFcDate = $map['X-Fc-Date']; } - if (isset($map['X-Fc-Trace-Id'])) { + if(isset($map['X-Fc-Trace-Id'])){ $model->xFcTraceId = $map['X-Fc-Trace-Id']; } - return $model; } + public $commonHeaders; + + /** + * @var string + */ + public $xFcAccountId; + + /** + * @var string + */ + public $xFcDate; + + /** + * @var string + */ + public $xFcTraceId; + } diff --git a/fc-open-20210406/src/Models/UntagResourceRequest.php b/fc-open-20210406/src/Models/UntagResourceRequest.php index 6e8c6eb64c..45ff62a72a 100644 --- a/fc-open-20210406/src/Models/UntagResourceRequest.php +++ b/fc-open-20210406/src/Models/UntagResourceRequest.php @@ -1,39 +1,18 @@ 'all', + 'all' => 'all', 'resourceArn' => 'resourceArn', - 'tagKeys' => 'tagKeys', + 'tagKeys' => 'tagKeys', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->all) { $res['all'] = $this->all; @@ -44,30 +23,40 @@ public function toMap() if (null !== $this->tagKeys) { $res['tagKeys'] = $this->tagKeys; } - return $res; } - /** * @param array $map - * * @return UntagResourceRequest */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['all'])) { + if(isset($map['all'])){ $model->all = $map['all']; } - if (isset($map['resourceArn'])) { + if(isset($map['resourceArn'])){ $model->resourceArn = $map['resourceArn']; } - if (isset($map['tagKeys'])) { - if (!empty($map['tagKeys'])) { + if(isset($map['tagKeys'])){ + if(!empty($map['tagKeys'])){ $model->tagKeys = $map['tagKeys']; } } - return $model; } + /** + * @var bool + */ + public $all; + + /** + * @var string + */ + public $resourceArn; + + /** + * @var string[] + */ + public $tagKeys; + } diff --git a/fc-open-20210406/src/Models/UntagResourceResponse.php b/fc-open-20210406/src/Models/UntagResourceResponse.php index d6b99c7735..e757b433cb 100644 --- a/fc-open-20210406/src/Models/UntagResourceResponse.php +++ b/fc-open-20210406/src/Models/UntagResourceResponse.php @@ -1,35 +1,20 @@ 'headers', + 'headers' => 'headers', 'statusCode' => 'statusCode', ]; - - public function validate() - { + public function validate() { Model::validateRequired('headers', $this->headers, true); Model::validateRequired('statusCode', $this->statusCode, true); } - - public function toMap() - { + public function toMap() { $res = []; if (null !== $this->headers) { $res['headers'] = $this->headers; @@ -37,25 +22,30 @@ public function toMap() if (null !== $this->statusCode) { $res['statusCode'] = $this->statusCode; } - return $res; } - /** * @param array $map - * * @return UntagResourceResponse */ - 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']; } - return $model; } + /** + * @var string[] + */ + public $headers; + + /** + * @var int + */ + public $statusCode; + } diff --git a/fc-open-20210406/src/Models/UpdateAliasHeaders.php b/fc-open-20210406/src/Models/UpdateAliasHeaders.php index f9c95f8291..b1de2f40be 100644 --- a/fc-open-20210406/src/Models/UpdateAliasHeaders.php +++ b/fc-open-20210406/src/Models/UpdateAliasHeaders.php @@ -1,47 +1,19 @@ 'If-Match', + 'ifMatch' => 'If-Match', 'xFcAccountId' => 'X-Fc-Account-Id', - 'xFcDate' => 'X-Fc-Date', - 'xFcTraceId' => 'X-Fc-Trace-Id', + 'xFcDate' => 'X-Fc-Date', + 'xFcTraceId' => 'X-Fc-Trace-Id', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->commonHeaders) { $res['commonHeaders'] = $this->commonHeaders; @@ -58,34 +30,51 @@ public function toMap() if (null !== $this->xFcTraceId) { $res['X-Fc-Trace-Id'] = $this->xFcTraceId; } - return $res; } - /** * @param array $map - * * @return UpdateAliasHeaders */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['commonHeaders'])) { + if(isset($map['commonHeaders'])){ $model->commonHeaders = $map['commonHeaders']; } - if (isset($map['If-Match'])) { + if(isset($map['If-Match'])){ $model->ifMatch = $map['If-Match']; } - if (isset($map['X-Fc-Account-Id'])) { + if(isset($map['X-Fc-Account-Id'])){ $model->xFcAccountId = $map['X-Fc-Account-Id']; } - if (isset($map['X-Fc-Date'])) { + if(isset($map['X-Fc-Date'])){ $model->xFcDate = $map['X-Fc-Date']; } - if (isset($map['X-Fc-Trace-Id'])) { + if(isset($map['X-Fc-Trace-Id'])){ $model->xFcTraceId = $map['X-Fc-Trace-Id']; } - return $model; } + public $commonHeaders; + + /** + * @var string + */ + public $ifMatch; + + /** + * @var string + */ + public $xFcAccountId; + + /** + * @var string + */ + public $xFcDate; + + /** + * @var string + */ + public $xFcTraceId; + } diff --git a/fc-open-20210406/src/Models/UpdateAliasRequest.php b/fc-open-20210406/src/Models/UpdateAliasRequest.php index 1ecd01286e..f7fbbe2eb4 100644 --- a/fc-open-20210406/src/Models/UpdateAliasRequest.php +++ b/fc-open-20210406/src/Models/UpdateAliasRequest.php @@ -1,51 +1,22 @@ 'additionalVersionWeight', - 'description' => 'description', - 'resolvePolicy' => 'resolvePolicy', - 'routePolicy' => 'routePolicy', - 'versionId' => 'versionId', + 'description' => 'description', + 'resolvePolicy' => 'resolvePolicy', + 'routePolicy' => 'routePolicy', + 'versionId' => 'versionId', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->additionalVersionWeight) { $res['additionalVersionWeight'] = $this->additionalVersionWeight; @@ -62,34 +33,54 @@ public function toMap() if (null !== $this->versionId) { $res['versionId'] = $this->versionId; } - return $res; } - /** * @param array $map - * * @return UpdateAliasRequest */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['additionalVersionWeight'])) { + if(isset($map['additionalVersionWeight'])){ $model->additionalVersionWeight = $map['additionalVersionWeight']; } - if (isset($map['description'])) { + if(isset($map['description'])){ $model->description = $map['description']; } - if (isset($map['resolvePolicy'])) { + if(isset($map['resolvePolicy'])){ $model->resolvePolicy = $map['resolvePolicy']; } - if (isset($map['routePolicy'])) { + if(isset($map['routePolicy'])){ $model->routePolicy = RoutePolicy::fromMap($map['routePolicy']); } - if (isset($map['versionId'])) { + if(isset($map['versionId'])){ $model->versionId = $map['versionId']; } - return $model; } + /** + * @var float[] + */ + public $additionalVersionWeight; + + /** + * @var string + */ + public $description; + + /** + * @var string + */ + public $resolvePolicy; + + /** + * @var RoutePolicy + */ + public $routePolicy; + + /** + * @var string + */ + public $versionId; + } diff --git a/fc-open-20210406/src/Models/UpdateAliasResponse.php b/fc-open-20210406/src/Models/UpdateAliasResponse.php index df2f262b84..ee40b84009 100644 --- a/fc-open-20210406/src/Models/UpdateAliasResponse.php +++ b/fc-open-20210406/src/Models/UpdateAliasResponse.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 UpdateAliasResponse */ - 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 = UpdateAliasResponseBody::fromMap($map['body']); } - return $model; } + /** + * @var string[] + */ + public $headers; + + /** + * @var int + */ + public $statusCode; + + /** + * @var UpdateAliasResponseBody + */ + public $body; + } diff --git a/fc-open-20210406/src/Models/UpdateAliasResponseBody.php b/fc-open-20210406/src/Models/UpdateAliasResponseBody.php index c6debb2be9..998215c017 100644 --- a/fc-open-20210406/src/Models/UpdateAliasResponseBody.php +++ b/fc-open-20210406/src/Models/UpdateAliasResponseBody.php @@ -1,57 +1,21 @@ 'additionalVersionWeight', - 'aliasName' => 'aliasName', - 'createdTime' => 'createdTime', - 'description' => 'description', - 'lastModifiedTime' => 'lastModifiedTime', - 'versionId' => 'versionId', + 'aliasName' => 'aliasName', + 'createdTime' => 'createdTime', + 'description' => 'description', + 'lastModifiedTime' => 'lastModifiedTime', + 'versionId' => 'versionId', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->additionalVersionWeight) { $res['additionalVersionWeight'] = $this->additionalVersionWeight; @@ -71,37 +35,62 @@ public function toMap() if (null !== $this->versionId) { $res['versionId'] = $this->versionId; } - return $res; } - /** * @param array $map - * * @return UpdateAliasResponseBody */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['additionalVersionWeight'])) { + if(isset($map['additionalVersionWeight'])){ $model->additionalVersionWeight = $map['additionalVersionWeight']; } - if (isset($map['aliasName'])) { + if(isset($map['aliasName'])){ $model->aliasName = $map['aliasName']; } - if (isset($map['createdTime'])) { + if(isset($map['createdTime'])){ $model->createdTime = $map['createdTime']; } - if (isset($map['description'])) { + if(isset($map['description'])){ $model->description = $map['description']; } - if (isset($map['lastModifiedTime'])) { + if(isset($map['lastModifiedTime'])){ $model->lastModifiedTime = $map['lastModifiedTime']; } - if (isset($map['versionId'])) { + if(isset($map['versionId'])){ $model->versionId = $map['versionId']; } - return $model; } + /** + * @var float[] + */ + public $additionalVersionWeight; + + /** + * @var string + */ + public $aliasName; + + /** + * @var string + */ + public $createdTime; + + /** + * @var string + */ + public $description; + + /** + * @var string + */ + public $lastModifiedTime; + + /** + * @var string + */ + public $versionId; + } diff --git a/fc-open-20210406/src/Models/UpdateCustomDomainHeaders.php b/fc-open-20210406/src/Models/UpdateCustomDomainHeaders.php index 54fca4f0f6..8b02d900b8 100644 --- a/fc-open-20210406/src/Models/UpdateCustomDomainHeaders.php +++ b/fc-open-20210406/src/Models/UpdateCustomDomainHeaders.php @@ -1,41 +1,18 @@ 'X-Fc-Account-Id', - 'xFcDate' => 'X-Fc-Date', - 'xFcTraceId' => 'X-Fc-Trace-Id', + 'xFcDate' => 'X-Fc-Date', + 'xFcTraceId' => 'X-Fc-Trace-Id', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->commonHeaders) { $res['commonHeaders'] = $this->commonHeaders; @@ -49,31 +26,43 @@ public function toMap() if (null !== $this->xFcTraceId) { $res['X-Fc-Trace-Id'] = $this->xFcTraceId; } - return $res; } - /** * @param array $map - * * @return UpdateCustomDomainHeaders */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['commonHeaders'])) { + if(isset($map['commonHeaders'])){ $model->commonHeaders = $map['commonHeaders']; } - if (isset($map['X-Fc-Account-Id'])) { + if(isset($map['X-Fc-Account-Id'])){ $model->xFcAccountId = $map['X-Fc-Account-Id']; } - if (isset($map['X-Fc-Date'])) { + if(isset($map['X-Fc-Date'])){ $model->xFcDate = $map['X-Fc-Date']; } - if (isset($map['X-Fc-Trace-Id'])) { + if(isset($map['X-Fc-Trace-Id'])){ $model->xFcTraceId = $map['X-Fc-Trace-Id']; } - return $model; } + public $commonHeaders; + + /** + * @var string + */ + public $xFcAccountId; + + /** + * @var string + */ + public $xFcDate; + + /** + * @var string + */ + public $xFcTraceId; + } diff --git a/fc-open-20210406/src/Models/UpdateCustomDomainRequest.php b/fc-open-20210406/src/Models/UpdateCustomDomainRequest.php index 0570139148..05cffc87ae 100644 --- a/fc-open-20210406/src/Models/UpdateCustomDomainRequest.php +++ b/fc-open-20210406/src/Models/UpdateCustomDomainRequest.php @@ -1,45 +1,23 @@ 'certConfig', - 'protocol' => 'protocol', + 'certConfig' => 'certConfig', + 'protocol' => 'protocol', 'routeConfig' => 'routeConfig', - 'tlsConfig' => 'tlsConfig', + 'tlsConfig' => 'tlsConfig', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->certConfig) { $res['certConfig'] = null !== $this->certConfig ? $this->certConfig->toMap() : null; @@ -53,31 +31,46 @@ public function toMap() if (null !== $this->tlsConfig) { $res['tlsConfig'] = null !== $this->tlsConfig ? $this->tlsConfig->toMap() : null; } - return $res; } - /** * @param array $map - * * @return UpdateCustomDomainRequest */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['certConfig'])) { + if(isset($map['certConfig'])){ $model->certConfig = CertConfig::fromMap($map['certConfig']); } - if (isset($map['protocol'])) { + if(isset($map['protocol'])){ $model->protocol = $map['protocol']; } - if (isset($map['routeConfig'])) { + if(isset($map['routeConfig'])){ $model->routeConfig = RouteConfig::fromMap($map['routeConfig']); } - if (isset($map['tlsConfig'])) { + if(isset($map['tlsConfig'])){ $model->tlsConfig = TLSConfig::fromMap($map['tlsConfig']); } - return $model; } + /** + * @var CertConfig + */ + public $certConfig; + + /** + * @var string + */ + public $protocol; + + /** + * @var RouteConfig + */ + public $routeConfig; + + /** + * @var TLSConfig + */ + public $tlsConfig; + } diff --git a/fc-open-20210406/src/Models/UpdateCustomDomainResponse.php b/fc-open-20210406/src/Models/UpdateCustomDomainResponse.php index a02e07b0b3..2ab7b9d759 100644 --- a/fc-open-20210406/src/Models/UpdateCustomDomainResponse.php +++ b/fc-open-20210406/src/Models/UpdateCustomDomainResponse.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 UpdateCustomDomainResponse */ - 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 = UpdateCustomDomainResponseBody::fromMap($map['body']); } - return $model; } + /** + * @var string[] + */ + public $headers; + + /** + * @var int + */ + public $statusCode; + + /** + * @var UpdateCustomDomainResponseBody + */ + public $body; + } diff --git a/fc-open-20210406/src/Models/UpdateCustomDomainResponseBody.php b/fc-open-20210406/src/Models/UpdateCustomDomainResponseBody.php index 1559ca6748..dbae4f5faf 100644 --- a/fc-open-20210406/src/Models/UpdateCustomDomainResponseBody.php +++ b/fc-open-20210406/src/Models/UpdateCustomDomainResponseBody.php @@ -1,75 +1,28 @@ 'accountId', - 'apiVersion' => 'apiVersion', - 'certConfig' => 'certConfig', - 'createdTime' => 'createdTime', - 'domainName' => 'domainName', + 'accountId' => 'accountId', + 'apiVersion' => 'apiVersion', + 'certConfig' => 'certConfig', + 'createdTime' => 'createdTime', + 'domainName' => 'domainName', 'lastModifiedTime' => 'lastModifiedTime', - 'protocol' => 'protocol', - 'routeConfig' => 'routeConfig', - 'tlsConfig' => 'tlsConfig', + 'protocol' => 'protocol', + 'routeConfig' => 'routeConfig', + 'tlsConfig' => 'tlsConfig', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->accountId) { $res['accountId'] = $this->accountId; @@ -98,46 +51,86 @@ public function toMap() if (null !== $this->tlsConfig) { $res['tlsConfig'] = null !== $this->tlsConfig ? $this->tlsConfig->toMap() : null; } - return $res; } - /** * @param array $map - * * @return UpdateCustomDomainResponseBody */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['accountId'])) { + if(isset($map['accountId'])){ $model->accountId = $map['accountId']; } - if (isset($map['apiVersion'])) { + if(isset($map['apiVersion'])){ $model->apiVersion = $map['apiVersion']; } - if (isset($map['certConfig'])) { + if(isset($map['certConfig'])){ $model->certConfig = CertConfig::fromMap($map['certConfig']); } - if (isset($map['createdTime'])) { + if(isset($map['createdTime'])){ $model->createdTime = $map['createdTime']; } - if (isset($map['domainName'])) { + if(isset($map['domainName'])){ $model->domainName = $map['domainName']; } - if (isset($map['lastModifiedTime'])) { + if(isset($map['lastModifiedTime'])){ $model->lastModifiedTime = $map['lastModifiedTime']; } - if (isset($map['protocol'])) { + if(isset($map['protocol'])){ $model->protocol = $map['protocol']; } - if (isset($map['routeConfig'])) { + if(isset($map['routeConfig'])){ $model->routeConfig = RouteConfig::fromMap($map['routeConfig']); } - if (isset($map['tlsConfig'])) { + if(isset($map['tlsConfig'])){ $model->tlsConfig = TLSConfig::fromMap($map['tlsConfig']); } - return $model; } + /** + * @var string + */ + public $accountId; + + /** + * @var string + */ + public $apiVersion; + + /** + * @var CertConfig + */ + public $certConfig; + + /** + * @var string + */ + public $createdTime; + + /** + * @var string + */ + public $domainName; + + /** + * @var string + */ + public $lastModifiedTime; + + /** + * @var string + */ + public $protocol; + + /** + * @var RouteConfig + */ + public $routeConfig; + + /** + * @var TLSConfig + */ + public $tlsConfig; + } diff --git a/fc-open-20210406/src/Models/UpdateFunctionHeaders.php b/fc-open-20210406/src/Models/UpdateFunctionHeaders.php index f5e4a9dbf3..5f07100623 100644 --- a/fc-open-20210406/src/Models/UpdateFunctionHeaders.php +++ b/fc-open-20210406/src/Models/UpdateFunctionHeaders.php @@ -1,53 +1,20 @@ 'If-Match', - 'xFcAccountId' => 'X-Fc-Account-Id', + 'ifMatch' => 'If-Match', + 'xFcAccountId' => 'X-Fc-Account-Id', 'xFcCodeChecksum' => 'X-Fc-Code-Checksum', - 'xFcDate' => 'X-Fc-Date', - 'xFcTraceId' => 'X-Fc-Trace-Id', + 'xFcDate' => 'X-Fc-Date', + 'xFcTraceId' => 'X-Fc-Trace-Id', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->commonHeaders) { $res['commonHeaders'] = $this->commonHeaders; @@ -67,37 +34,59 @@ public function toMap() if (null !== $this->xFcTraceId) { $res['X-Fc-Trace-Id'] = $this->xFcTraceId; } - return $res; } - /** * @param array $map - * * @return UpdateFunctionHeaders */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['commonHeaders'])) { + if(isset($map['commonHeaders'])){ $model->commonHeaders = $map['commonHeaders']; } - if (isset($map['If-Match'])) { + if(isset($map['If-Match'])){ $model->ifMatch = $map['If-Match']; } - if (isset($map['X-Fc-Account-Id'])) { + if(isset($map['X-Fc-Account-Id'])){ $model->xFcAccountId = $map['X-Fc-Account-Id']; } - if (isset($map['X-Fc-Code-Checksum'])) { + if(isset($map['X-Fc-Code-Checksum'])){ $model->xFcCodeChecksum = $map['X-Fc-Code-Checksum']; } - if (isset($map['X-Fc-Date'])) { + if(isset($map['X-Fc-Date'])){ $model->xFcDate = $map['X-Fc-Date']; } - if (isset($map['X-Fc-Trace-Id'])) { + if(isset($map['X-Fc-Trace-Id'])){ $model->xFcTraceId = $map['X-Fc-Trace-Id']; } - return $model; } + public $commonHeaders; + + /** + * @var string + */ + public $ifMatch; + + /** + * @var string + */ + public $xFcAccountId; + + /** + * @var string + */ + public $xFcCodeChecksum; + + /** + * @var string + */ + public $xFcDate; + + /** + * @var string + */ + public $xFcTraceId; + } diff --git a/fc-open-20210406/src/Models/UpdateFunctionRequest.php b/fc-open-20210406/src/Models/UpdateFunctionRequest.php index d8a501a34f..adf257d69d 100644 --- a/fc-open-20210406/src/Models/UpdateFunctionRequest.php +++ b/fc-open-20210406/src/Models/UpdateFunctionRequest.php @@ -1,129 +1,39 @@ 'InstanceConcurrency', - 'caPort' => 'caPort', - 'code' => 'code', - 'customContainerConfig' => 'customContainerConfig', - 'customDNS' => 'customDNS', - 'customRuntimeConfig' => 'customRuntimeConfig', - 'description' => 'description', - 'environmentVariables' => 'environmentVariables', - 'handler' => 'handler', - 'initializationTimeout' => 'initializationTimeout', - 'initializer' => 'initializer', + 'instanceConcurrency' => 'InstanceConcurrency', + 'caPort' => 'caPort', + 'code' => 'code', + 'customContainerConfig' => 'customContainerConfig', + 'customDNS' => 'customDNS', + 'customRuntimeConfig' => 'customRuntimeConfig', + 'description' => 'description', + 'environmentVariables' => 'environmentVariables', + 'handler' => 'handler', + 'initializationTimeout' => 'initializationTimeout', + 'initializer' => 'initializer', 'instanceLifecycleConfig' => 'instanceLifecycleConfig', 'instanceSoftConcurrency' => 'instanceSoftConcurrency', - 'instanceType' => 'instanceType', - 'layers' => 'layers', - 'memorySize' => 'memorySize', - 'runtime' => 'runtime', - 'timeout' => 'timeout', + 'instanceType' => 'instanceType', + 'layers' => 'layers', + 'memorySize' => 'memorySize', + 'runtime' => 'runtime', + 'timeout' => 'timeout', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->instanceConcurrency) { $res['InstanceConcurrency'] = $this->instanceConcurrency; @@ -179,75 +89,160 @@ public function toMap() if (null !== $this->timeout) { $res['timeout'] = $this->timeout; } - return $res; } - /** * @param array $map - * * @return UpdateFunctionRequest */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['InstanceConcurrency'])) { + if(isset($map['InstanceConcurrency'])){ $model->instanceConcurrency = $map['InstanceConcurrency']; } - if (isset($map['caPort'])) { + if(isset($map['caPort'])){ $model->caPort = $map['caPort']; } - if (isset($map['code'])) { + if(isset($map['code'])){ $model->code = Code::fromMap($map['code']); } - if (isset($map['customContainerConfig'])) { + if(isset($map['customContainerConfig'])){ $model->customContainerConfig = CustomContainerConfig::fromMap($map['customContainerConfig']); } - if (isset($map['customDNS'])) { + if(isset($map['customDNS'])){ $model->customDNS = CustomDNS::fromMap($map['customDNS']); } - if (isset($map['customRuntimeConfig'])) { + if(isset($map['customRuntimeConfig'])){ $model->customRuntimeConfig = CustomRuntimeConfig::fromMap($map['customRuntimeConfig']); } - if (isset($map['description'])) { + if(isset($map['description'])){ $model->description = $map['description']; } - if (isset($map['environmentVariables'])) { + if(isset($map['environmentVariables'])){ $model->environmentVariables = $map['environmentVariables']; } - if (isset($map['handler'])) { + if(isset($map['handler'])){ $model->handler = $map['handler']; } - if (isset($map['initializationTimeout'])) { + if(isset($map['initializationTimeout'])){ $model->initializationTimeout = $map['initializationTimeout']; } - if (isset($map['initializer'])) { + if(isset($map['initializer'])){ $model->initializer = $map['initializer']; } - if (isset($map['instanceLifecycleConfig'])) { + if(isset($map['instanceLifecycleConfig'])){ $model->instanceLifecycleConfig = InstanceLifecycleConfig::fromMap($map['instanceLifecycleConfig']); } - if (isset($map['instanceSoftConcurrency'])) { + if(isset($map['instanceSoftConcurrency'])){ $model->instanceSoftConcurrency = $map['instanceSoftConcurrency']; } - if (isset($map['instanceType'])) { + if(isset($map['instanceType'])){ $model->instanceType = $map['instanceType']; } - if (isset($map['layers'])) { - if (!empty($map['layers'])) { + if(isset($map['layers'])){ + if(!empty($map['layers'])){ $model->layers = $map['layers']; } } - if (isset($map['memorySize'])) { + if(isset($map['memorySize'])){ $model->memorySize = $map['memorySize']; } - if (isset($map['runtime'])) { + if(isset($map['runtime'])){ $model->runtime = $map['runtime']; } - if (isset($map['timeout'])) { + if(isset($map['timeout'])){ $model->timeout = $map['timeout']; } - return $model; } + /** + * @var int + */ + public $instanceConcurrency; + + /** + * @var int + */ + public $caPort; + + /** + * @var Code + */ + public $code; + + /** + * @var CustomContainerConfig + */ + public $customContainerConfig; + + /** + * @var CustomDNS + */ + public $customDNS; + + /** + * @var CustomRuntimeConfig + */ + public $customRuntimeConfig; + + /** + * @var string + */ + public $description; + + /** + * @var string[] + */ + public $environmentVariables; + + /** + * @var string + */ + public $handler; + + /** + * @var int + */ + public $initializationTimeout; + + /** + * @var string + */ + public $initializer; + + /** + * @var InstanceLifecycleConfig + */ + public $instanceLifecycleConfig; + + /** + * @var int + */ + public $instanceSoftConcurrency; + + /** + * @var string + */ + public $instanceType; + + /** + * @var string[] + */ + public $layers; + + /** + * @var int + */ + public $memorySize; + + /** + * @var string + */ + public $runtime; + + /** + * @var int + */ + public $timeout; + } diff --git a/fc-open-20210406/src/Models/UpdateFunctionResponse.php b/fc-open-20210406/src/Models/UpdateFunctionResponse.php index b89e3a353d..ee5e9a2a6e 100644 --- a/fc-open-20210406/src/Models/UpdateFunctionResponse.php +++ b/fc-open-20210406/src/Models/UpdateFunctionResponse.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 UpdateFunctionResponse */ - 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 = UpdateFunctionResponseBody::fromMap($map['body']); } - return $model; } + /** + * @var string[] + */ + public $headers; + + /** + * @var int + */ + public $statusCode; + + /** + * @var UpdateFunctionResponseBody + */ + public $body; + } diff --git a/fc-open-20210406/src/Models/UpdateFunctionResponseBody.php b/fc-open-20210406/src/Models/UpdateFunctionResponseBody.php index 9a60c78b57..0630858c49 100644 --- a/fc-open-20210406/src/Models/UpdateFunctionResponseBody.php +++ b/fc-open-20210406/src/Models/UpdateFunctionResponseBody.php @@ -1,153 +1,42 @@ 'caPort', - 'codeChecksum' => 'codeChecksum', - 'codeSize' => 'codeSize', - 'createdTime' => 'createdTime', - 'customContainerConfig' => 'customContainerConfig', - 'customDNS' => 'customDNS', - 'customRuntimeConfig' => 'customRuntimeConfig', - 'description' => 'description', - 'environmentVariables' => 'environmentVariables', - 'functionId' => 'functionId', - 'functionName' => 'functionName', - 'handler' => 'handler', - 'initializationTimeout' => 'initializationTimeout', - 'initializer' => 'initializer', + 'caPort' => 'caPort', + 'codeChecksum' => 'codeChecksum', + 'codeSize' => 'codeSize', + 'createdTime' => 'createdTime', + 'customContainerConfig' => 'customContainerConfig', + 'customDNS' => 'customDNS', + 'customRuntimeConfig' => 'customRuntimeConfig', + 'description' => 'description', + 'environmentVariables' => 'environmentVariables', + 'functionId' => 'functionId', + 'functionName' => 'functionName', + 'handler' => 'handler', + 'initializationTimeout' => 'initializationTimeout', + 'initializer' => 'initializer', 'instanceLifecycleConfig' => 'instanceLifecycleConfig', 'instanceSoftConcurrency' => 'instanceSoftConcurrency', - 'instanceType' => 'instanceType', - 'lastModifiedTime' => 'lastModifiedTime', - 'layers' => 'layers', - 'memorySize' => 'memorySize', - 'runtime' => 'runtime', - 'timeout' => 'timeout', + 'instanceType' => 'instanceType', + 'lastModifiedTime' => 'lastModifiedTime', + 'layers' => 'layers', + 'memorySize' => 'memorySize', + 'runtime' => 'runtime', + 'timeout' => 'timeout', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->caPort) { $res['caPort'] = $this->caPort; @@ -215,87 +104,192 @@ public function toMap() if (null !== $this->timeout) { $res['timeout'] = $this->timeout; } - return $res; } - /** * @param array $map - * * @return UpdateFunctionResponseBody */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['caPort'])) { + if(isset($map['caPort'])){ $model->caPort = $map['caPort']; } - if (isset($map['codeChecksum'])) { + if(isset($map['codeChecksum'])){ $model->codeChecksum = $map['codeChecksum']; } - if (isset($map['codeSize'])) { + if(isset($map['codeSize'])){ $model->codeSize = $map['codeSize']; } - if (isset($map['createdTime'])) { + if(isset($map['createdTime'])){ $model->createdTime = $map['createdTime']; } - if (isset($map['customContainerConfig'])) { + if(isset($map['customContainerConfig'])){ $model->customContainerConfig = CustomContainerConfig::fromMap($map['customContainerConfig']); } - if (isset($map['customDNS'])) { + if(isset($map['customDNS'])){ $model->customDNS = CustomDNS::fromMap($map['customDNS']); } - if (isset($map['customRuntimeConfig'])) { + if(isset($map['customRuntimeConfig'])){ $model->customRuntimeConfig = CustomRuntimeConfig::fromMap($map['customRuntimeConfig']); } - if (isset($map['description'])) { + if(isset($map['description'])){ $model->description = $map['description']; } - if (isset($map['environmentVariables'])) { + if(isset($map['environmentVariables'])){ $model->environmentVariables = $map['environmentVariables']; } - if (isset($map['functionId'])) { + if(isset($map['functionId'])){ $model->functionId = $map['functionId']; } - if (isset($map['functionName'])) { + if(isset($map['functionName'])){ $model->functionName = $map['functionName']; } - if (isset($map['handler'])) { + if(isset($map['handler'])){ $model->handler = $map['handler']; } - if (isset($map['initializationTimeout'])) { + if(isset($map['initializationTimeout'])){ $model->initializationTimeout = $map['initializationTimeout']; } - if (isset($map['initializer'])) { + if(isset($map['initializer'])){ $model->initializer = $map['initializer']; } - if (isset($map['instanceLifecycleConfig'])) { + if(isset($map['instanceLifecycleConfig'])){ $model->instanceLifecycleConfig = InstanceLifecycleConfig::fromMap($map['instanceLifecycleConfig']); } - if (isset($map['instanceSoftConcurrency'])) { + if(isset($map['instanceSoftConcurrency'])){ $model->instanceSoftConcurrency = $map['instanceSoftConcurrency']; } - if (isset($map['instanceType'])) { + if(isset($map['instanceType'])){ $model->instanceType = $map['instanceType']; } - if (isset($map['lastModifiedTime'])) { + if(isset($map['lastModifiedTime'])){ $model->lastModifiedTime = $map['lastModifiedTime']; } - if (isset($map['layers'])) { - if (!empty($map['layers'])) { + if(isset($map['layers'])){ + if(!empty($map['layers'])){ $model->layers = $map['layers']; } } - if (isset($map['memorySize'])) { + if(isset($map['memorySize'])){ $model->memorySize = $map['memorySize']; } - if (isset($map['runtime'])) { + if(isset($map['runtime'])){ $model->runtime = $map['runtime']; } - if (isset($map['timeout'])) { + if(isset($map['timeout'])){ $model->timeout = $map['timeout']; } - return $model; } + /** + * @var int + */ + public $caPort; + + /** + * @var string + */ + public $codeChecksum; + + /** + * @var int + */ + public $codeSize; + + /** + * @var string + */ + public $createdTime; + + /** + * @var CustomContainerConfig + */ + public $customContainerConfig; + + /** + * @var CustomDNS + */ + public $customDNS; + + /** + * @var CustomRuntimeConfig + */ + public $customRuntimeConfig; + + /** + * @var string + */ + public $description; + + /** + * @var string[] + */ + public $environmentVariables; + + /** + * @var string + */ + public $functionId; + + /** + * @var string + */ + public $functionName; + + /** + * @var string + */ + public $handler; + + /** + * @var int + */ + public $initializationTimeout; + + /** + * @var string + */ + public $initializer; + + /** + * @var InstanceLifecycleConfig + */ + public $instanceLifecycleConfig; + + /** + * @var int + */ + public $instanceSoftConcurrency; + + /** + * @var string + */ + public $instanceType; + + /** + * @var string + */ + public $lastModifiedTime; + + /** + * @var string[] + */ + public $layers; + + /** + * @var int + */ + public $memorySize; + + /** + * @var string + */ + public $runtime; + + /** + * @var int + */ + public $timeout; + } diff --git a/fc-open-20210406/src/Models/UpdateServiceHeaders.php b/fc-open-20210406/src/Models/UpdateServiceHeaders.php index c975af48f1..e6d10c8743 100644 --- a/fc-open-20210406/src/Models/UpdateServiceHeaders.php +++ b/fc-open-20210406/src/Models/UpdateServiceHeaders.php @@ -1,47 +1,19 @@ 'If-Match', + 'ifMatch' => 'If-Match', 'xFcAccountId' => 'X-Fc-Account-Id', - 'xFcDate' => 'X-Fc-Date', - 'xFcTraceId' => 'X-Fc-Trace-Id', + 'xFcDate' => 'X-Fc-Date', + 'xFcTraceId' => 'X-Fc-Trace-Id', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->commonHeaders) { $res['commonHeaders'] = $this->commonHeaders; @@ -58,34 +30,51 @@ public function toMap() if (null !== $this->xFcTraceId) { $res['X-Fc-Trace-Id'] = $this->xFcTraceId; } - return $res; } - /** * @param array $map - * * @return UpdateServiceHeaders */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['commonHeaders'])) { + if(isset($map['commonHeaders'])){ $model->commonHeaders = $map['commonHeaders']; } - if (isset($map['If-Match'])) { + if(isset($map['If-Match'])){ $model->ifMatch = $map['If-Match']; } - if (isset($map['X-Fc-Account-Id'])) { + if(isset($map['X-Fc-Account-Id'])){ $model->xFcAccountId = $map['X-Fc-Account-Id']; } - if (isset($map['X-Fc-Date'])) { + if(isset($map['X-Fc-Date'])){ $model->xFcDate = $map['X-Fc-Date']; } - if (isset($map['X-Fc-Trace-Id'])) { + if(isset($map['X-Fc-Trace-Id'])){ $model->xFcTraceId = $map['X-Fc-Trace-Id']; } - return $model; } + public $commonHeaders; + + /** + * @var string + */ + public $ifMatch; + + /** + * @var string + */ + public $xFcAccountId; + + /** + * @var string + */ + public $xFcDate; + + /** + * @var string + */ + public $xFcTraceId; + } diff --git a/fc-open-20210406/src/Models/UpdateServiceRequest.php b/fc-open-20210406/src/Models/UpdateServiceRequest.php index 94dd654fee..b869e3d378 100644 --- a/fc-open-20210406/src/Models/UpdateServiceRequest.php +++ b/fc-open-20210406/src/Models/UpdateServiceRequest.php @@ -1,63 +1,27 @@ 'description', + 'description' => 'description', 'internetAccess' => 'internetAccess', - 'logConfig' => 'logConfig', - 'nasConfig' => 'nasConfig', - 'role' => 'role', - 'tracingConfig' => 'tracingConfig', - 'vpcConfig' => 'vpcConfig', + 'logConfig' => 'logConfig', + 'nasConfig' => 'nasConfig', + 'role' => 'role', + 'tracingConfig' => 'tracingConfig', + 'vpcConfig' => 'vpcConfig', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->description) { $res['description'] = $this->description; @@ -80,40 +44,70 @@ public function toMap() if (null !== $this->vpcConfig) { $res['vpcConfig'] = null !== $this->vpcConfig ? $this->vpcConfig->toMap() : null; } - return $res; } - /** * @param array $map - * * @return UpdateServiceRequest */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['description'])) { + if(isset($map['description'])){ $model->description = $map['description']; } - if (isset($map['internetAccess'])) { + if(isset($map['internetAccess'])){ $model->internetAccess = $map['internetAccess']; } - if (isset($map['logConfig'])) { + if(isset($map['logConfig'])){ $model->logConfig = LogConfig::fromMap($map['logConfig']); } - if (isset($map['nasConfig'])) { + if(isset($map['nasConfig'])){ $model->nasConfig = NASConfig::fromMap($map['nasConfig']); } - if (isset($map['role'])) { + if(isset($map['role'])){ $model->role = $map['role']; } - if (isset($map['tracingConfig'])) { + if(isset($map['tracingConfig'])){ $model->tracingConfig = TracingConfig::fromMap($map['tracingConfig']); } - if (isset($map['vpcConfig'])) { + if(isset($map['vpcConfig'])){ $model->vpcConfig = VPCConfig::fromMap($map['vpcConfig']); } - return $model; } + /** + * @var string + */ + public $description; + + /** + * @var bool + */ + public $internetAccess; + + /** + * @var LogConfig + */ + public $logConfig; + + /** + * @var NASConfig + */ + public $nasConfig; + + /** + * @var string + */ + public $role; + + /** + * @var TracingConfig + */ + public $tracingConfig; + + /** + * @var VPCConfig + */ + public $vpcConfig; + } diff --git a/fc-open-20210406/src/Models/UpdateServiceResponse.php b/fc-open-20210406/src/Models/UpdateServiceResponse.php index 2bc1e3815a..6c962d46ad 100644 --- a/fc-open-20210406/src/Models/UpdateServiceResponse.php +++ b/fc-open-20210406/src/Models/UpdateServiceResponse.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 UpdateServiceResponse */ - 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 = UpdateServiceResponseBody::fromMap($map['body']); } - return $model; } + /** + * @var string[] + */ + public $headers; + + /** + * @var int + */ + public $statusCode; + + /** + * @var UpdateServiceResponseBody + */ + public $body; + } diff --git a/fc-open-20210406/src/Models/UpdateServiceResponseBody.php b/fc-open-20210406/src/Models/UpdateServiceResponseBody.php index 3154605b76..8d9dbbd6e5 100644 --- a/fc-open-20210406/src/Models/UpdateServiceResponseBody.php +++ b/fc-open-20210406/src/Models/UpdateServiceResponseBody.php @@ -1,87 +1,31 @@ 'createdTime', - 'description' => 'description', - 'internetAccess' => 'internetAccess', + 'createdTime' => 'createdTime', + 'description' => 'description', + 'internetAccess' => 'internetAccess', 'lastModifiedTime' => 'lastModifiedTime', - 'logConfig' => 'logConfig', - 'nasConfig' => 'nasConfig', - 'role' => 'role', - 'serviceId' => 'serviceId', - 'serviceName' => 'serviceName', - 'tracingConfig' => 'tracingConfig', - 'vpcConfig' => 'vpcConfig', + 'logConfig' => 'logConfig', + 'nasConfig' => 'nasConfig', + 'role' => 'role', + 'serviceId' => 'serviceId', + 'serviceName' => 'serviceName', + 'tracingConfig' => 'tracingConfig', + 'vpcConfig' => 'vpcConfig', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->createdTime) { $res['createdTime'] = $this->createdTime; @@ -116,52 +60,102 @@ public function toMap() if (null !== $this->vpcConfig) { $res['vpcConfig'] = null !== $this->vpcConfig ? $this->vpcConfig->toMap() : null; } - return $res; } - /** * @param array $map - * * @return UpdateServiceResponseBody */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['createdTime'])) { + if(isset($map['createdTime'])){ $model->createdTime = $map['createdTime']; } - if (isset($map['description'])) { + if(isset($map['description'])){ $model->description = $map['description']; } - if (isset($map['internetAccess'])) { + if(isset($map['internetAccess'])){ $model->internetAccess = $map['internetAccess']; } - if (isset($map['lastModifiedTime'])) { + if(isset($map['lastModifiedTime'])){ $model->lastModifiedTime = $map['lastModifiedTime']; } - if (isset($map['logConfig'])) { + if(isset($map['logConfig'])){ $model->logConfig = LogConfig::fromMap($map['logConfig']); } - if (isset($map['nasConfig'])) { + if(isset($map['nasConfig'])){ $model->nasConfig = NASConfig::fromMap($map['nasConfig']); } - if (isset($map['role'])) { + if(isset($map['role'])){ $model->role = $map['role']; } - if (isset($map['serviceId'])) { + if(isset($map['serviceId'])){ $model->serviceId = $map['serviceId']; } - if (isset($map['serviceName'])) { + if(isset($map['serviceName'])){ $model->serviceName = $map['serviceName']; } - if (isset($map['tracingConfig'])) { + if(isset($map['tracingConfig'])){ $model->tracingConfig = TracingConfig::fromMap($map['tracingConfig']); } - if (isset($map['vpcConfig'])) { + if(isset($map['vpcConfig'])){ $model->vpcConfig = VPCConfig::fromMap($map['vpcConfig']); } - return $model; } + /** + * @var string + */ + public $createdTime; + + /** + * @var string + */ + public $description; + + /** + * @var bool + */ + public $internetAccess; + + /** + * @var string + */ + public $lastModifiedTime; + + /** + * @var LogConfig + */ + public $logConfig; + + /** + * @var NASConfig + */ + public $nasConfig; + + /** + * @var string + */ + public $role; + + /** + * @var string + */ + public $serviceId; + + /** + * @var string + */ + public $serviceName; + + /** + * @var TracingConfig + */ + public $tracingConfig; + + /** + * @var VPCConfig + */ + public $vpcConfig; + } diff --git a/fc-open-20210406/src/Models/UpdateTriggerHeaders.php b/fc-open-20210406/src/Models/UpdateTriggerHeaders.php index 1d1861ccb4..673db0eb16 100644 --- a/fc-open-20210406/src/Models/UpdateTriggerHeaders.php +++ b/fc-open-20210406/src/Models/UpdateTriggerHeaders.php @@ -1,47 +1,19 @@ 'If-Match', + 'ifMatch' => 'If-Match', 'xFcAccountId' => 'X-Fc-Account-Id', - 'xFcDate' => 'X-Fc-Date', - 'xFcTraceId' => 'X-Fc-Trace-Id', + 'xFcDate' => 'X-Fc-Date', + 'xFcTraceId' => 'X-Fc-Trace-Id', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->commonHeaders) { $res['commonHeaders'] = $this->commonHeaders; @@ -58,34 +30,51 @@ public function toMap() if (null !== $this->xFcTraceId) { $res['X-Fc-Trace-Id'] = $this->xFcTraceId; } - return $res; } - /** * @param array $map - * * @return UpdateTriggerHeaders */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['commonHeaders'])) { + if(isset($map['commonHeaders'])){ $model->commonHeaders = $map['commonHeaders']; } - if (isset($map['If-Match'])) { + if(isset($map['If-Match'])){ $model->ifMatch = $map['If-Match']; } - if (isset($map['X-Fc-Account-Id'])) { + if(isset($map['X-Fc-Account-Id'])){ $model->xFcAccountId = $map['X-Fc-Account-Id']; } - if (isset($map['X-Fc-Date'])) { + if(isset($map['X-Fc-Date'])){ $model->xFcDate = $map['X-Fc-Date']; } - if (isset($map['X-Fc-Trace-Id'])) { + if(isset($map['X-Fc-Trace-Id'])){ $model->xFcTraceId = $map['X-Fc-Trace-Id']; } - return $model; } + public $commonHeaders; + + /** + * @var string + */ + public $ifMatch; + + /** + * @var string + */ + public $xFcAccountId; + + /** + * @var string + */ + public $xFcDate; + + /** + * @var string + */ + public $xFcTraceId; + } diff --git a/fc-open-20210406/src/Models/UpdateTriggerRequest.php b/fc-open-20210406/src/Models/UpdateTriggerRequest.php index 4c6d19dafb..5a22b8388c 100644 --- a/fc-open-20210406/src/Models/UpdateTriggerRequest.php +++ b/fc-open-20210406/src/Models/UpdateTriggerRequest.php @@ -1,45 +1,19 @@ 'description', + 'description' => 'description', 'invocationRole' => 'invocationRole', - 'qualifier' => 'qualifier', - 'triggerConfig' => 'triggerConfig', + 'qualifier' => 'qualifier', + 'triggerConfig' => 'triggerConfig', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->description) { $res['description'] = $this->description; @@ -53,31 +27,46 @@ public function toMap() if (null !== $this->triggerConfig) { $res['triggerConfig'] = $this->triggerConfig; } - return $res; } - /** * @param array $map - * * @return UpdateTriggerRequest */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['description'])) { + if(isset($map['description'])){ $model->description = $map['description']; } - if (isset($map['invocationRole'])) { + if(isset($map['invocationRole'])){ $model->invocationRole = $map['invocationRole']; } - if (isset($map['qualifier'])) { + if(isset($map['qualifier'])){ $model->qualifier = $map['qualifier']; } - if (isset($map['triggerConfig'])) { + if(isset($map['triggerConfig'])){ $model->triggerConfig = $map['triggerConfig']; } - return $model; } + /** + * @var string + */ + public $description; + + /** + * @var string + */ + public $invocationRole; + + /** + * @var string + */ + public $qualifier; + + /** + * @var string + */ + public $triggerConfig; + } diff --git a/fc-open-20210406/src/Models/UpdateTriggerResponse.php b/fc-open-20210406/src/Models/UpdateTriggerResponse.php index f50b23ae0a..38b29e767f 100644 --- a/fc-open-20210406/src/Models/UpdateTriggerResponse.php +++ b/fc-open-20210406/src/Models/UpdateTriggerResponse.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 UpdateTriggerResponse */ - 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 = UpdateTriggerResponseBody::fromMap($map['body']); } - return $model; } + /** + * @var string[] + */ + public $headers; + + /** + * @var int + */ + public $statusCode; + + /** + * @var UpdateTriggerResponseBody + */ + public $body; + } diff --git a/fc-open-20210406/src/Models/UpdateTriggerResponseBody.php b/fc-open-20210406/src/Models/UpdateTriggerResponseBody.php index 2709790fbd..b4b32ec13a 100644 --- a/fc-open-20210406/src/Models/UpdateTriggerResponseBody.php +++ b/fc-open-20210406/src/Models/UpdateTriggerResponseBody.php @@ -1,99 +1,28 @@ 'createdTime', - 'description' => 'description', - 'domainName' => 'domainName', - 'invocationRole' => 'invocationRole', + 'createdTime' => 'createdTime', + 'description' => 'description', + 'domainName' => 'domainName', + 'invocationRole' => 'invocationRole', 'lastModifiedTime' => 'lastModifiedTime', - 'qualifier' => 'qualifier', - 'sourceArn' => 'sourceArn', - 'triggerConfig' => 'triggerConfig', - 'triggerId' => 'triggerId', - 'triggerName' => 'triggerName', - 'triggerType' => 'triggerType', - 'urlInternet' => 'urlInternet', - 'urlIntranet' => 'urlIntranet', + 'qualifier' => 'qualifier', + 'sourceArn' => 'sourceArn', + 'triggerConfig' => 'triggerConfig', + 'triggerId' => 'triggerId', + 'triggerName' => 'triggerName', + 'triggerType' => 'triggerType', + 'urlInternet' => 'urlInternet', + 'urlIntranet' => 'urlIntranet', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->createdTime) { $res['createdTime'] = $this->createdTime; @@ -134,58 +63,118 @@ public function toMap() if (null !== $this->urlIntranet) { $res['urlIntranet'] = $this->urlIntranet; } - return $res; } - /** * @param array $map - * * @return UpdateTriggerResponseBody */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['createdTime'])) { + if(isset($map['createdTime'])){ $model->createdTime = $map['createdTime']; } - if (isset($map['description'])) { + if(isset($map['description'])){ $model->description = $map['description']; } - if (isset($map['domainName'])) { + if(isset($map['domainName'])){ $model->domainName = $map['domainName']; } - if (isset($map['invocationRole'])) { + if(isset($map['invocationRole'])){ $model->invocationRole = $map['invocationRole']; } - if (isset($map['lastModifiedTime'])) { + if(isset($map['lastModifiedTime'])){ $model->lastModifiedTime = $map['lastModifiedTime']; } - if (isset($map['qualifier'])) { + if(isset($map['qualifier'])){ $model->qualifier = $map['qualifier']; } - if (isset($map['sourceArn'])) { + if(isset($map['sourceArn'])){ $model->sourceArn = $map['sourceArn']; } - if (isset($map['triggerConfig'])) { + if(isset($map['triggerConfig'])){ $model->triggerConfig = $map['triggerConfig']; } - if (isset($map['triggerId'])) { + if(isset($map['triggerId'])){ $model->triggerId = $map['triggerId']; } - if (isset($map['triggerName'])) { + if(isset($map['triggerName'])){ $model->triggerName = $map['triggerName']; } - if (isset($map['triggerType'])) { + if(isset($map['triggerType'])){ $model->triggerType = $map['triggerType']; } - if (isset($map['urlInternet'])) { + if(isset($map['urlInternet'])){ $model->urlInternet = $map['urlInternet']; } - if (isset($map['urlIntranet'])) { + if(isset($map['urlIntranet'])){ $model->urlIntranet = $map['urlIntranet']; } - return $model; } + /** + * @var string + */ + public $createdTime; + + /** + * @var string + */ + public $description; + + /** + * @var string + */ + public $domainName; + + /** + * @var string + */ + public $invocationRole; + + /** + * @var string + */ + public $lastModifiedTime; + + /** + * @var string + */ + public $qualifier; + + /** + * @var string + */ + public $sourceArn; + + /** + * @var string + */ + public $triggerConfig; + + /** + * @var string + */ + public $triggerId; + + /** + * @var string + */ + public $triggerName; + + /** + * @var string + */ + public $triggerType; + + /** + * @var string + */ + public $urlInternet; + + /** + * @var string + */ + public $urlIntranet; + } diff --git a/fc-open-20210406/src/Models/VPCConfig.php b/fc-open-20210406/src/Models/VPCConfig.php index aa61064ad0..3543edb56f 100644 --- a/fc-open-20210406/src/Models/VPCConfig.php +++ b/fc-open-20210406/src/Models/VPCConfig.php @@ -1,45 +1,19 @@ 'role', + 'role' => 'role', 'securityGroupId' => 'securityGroupId', - 'vSwitchIds' => 'vSwitchIds', - 'vpcId' => 'vpcId', + 'vSwitchIds' => 'vSwitchIds', + 'vpcId' => 'vpcId', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->role) { $res['role'] = $this->role; @@ -53,33 +27,48 @@ public function toMap() if (null !== $this->vpcId) { $res['vpcId'] = $this->vpcId; } - return $res; } - /** * @param array $map - * * @return VPCConfig */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['role'])) { + if(isset($map['role'])){ $model->role = $map['role']; } - if (isset($map['securityGroupId'])) { + if(isset($map['securityGroupId'])){ $model->securityGroupId = $map['securityGroupId']; } - if (isset($map['vSwitchIds'])) { - if (!empty($map['vSwitchIds'])) { + if(isset($map['vSwitchIds'])){ + if(!empty($map['vSwitchIds'])){ $model->vSwitchIds = $map['vSwitchIds']; } } - if (isset($map['vpcId'])) { + if(isset($map['vpcId'])){ $model->vpcId = $map['vpcId']; } - return $model; } + /** + * @var string + */ + public $role; + + /** + * @var string + */ + public $securityGroupId; + + /** + * @var string[] + */ + public $vSwitchIds; + + /** + * @var string + */ + public $vpcId; + } diff --git a/fc-open-20210406/src/Models/VendorConfig.php b/fc-open-20210406/src/Models/VendorConfig.php index eb76f31327..239286f917 100644 --- a/fc-open-20210406/src/Models/VendorConfig.php +++ b/fc-open-20210406/src/Models/VendorConfig.php @@ -1,47 +1,38 @@ 'meteringConfig', ]; - - public function validate() - { - } - - public function toMap() - { + public function validate() {} + public function toMap() { $res = []; if (null !== $this->meteringConfig) { $res['meteringConfig'] = null !== $this->meteringConfig ? $this->meteringConfig->toMap() : null; } - return $res; } - /** * @param array $map - * * @return VendorConfig */ - public static function fromMap($map = []) - { + public static function fromMap($map = []) { $model = new self(); - if (isset($map['meteringConfig'])) { + if(isset($map['meteringConfig'])){ $model->meteringConfig = MeteringConfig::fromMap($map['meteringConfig']); } - return $model; } + /** + * @var MeteringConfig + */ + public $meteringConfig; + }