From f28c3f0d1fdbedd38b132b15ad2f87a81fa21cb5 Mon Sep 17 00:00:00 2001 From: sdk-team Date: Mon, 15 Jan 2024 10:38:00 +0000 Subject: [PATCH] Generated php 2021-09-01 for appstream-center. --- ChangeLog.md | 3 + composer.json | 2 +- src/Appstreamcenter.php | 1206 ++++++++++++++++- src/Models/AccessPageGetAclRequest.php | 49 + src/Models/AccessPageGetAclResponse.php | 74 + src/Models/AccessPageGetAclResponseBody.php | 118 ++ .../AccessPageGetAclResponseBody/data.php | 105 ++ src/Models/AccessPageSetAclRequest.php | 105 ++ src/Models/AccessPageSetAclResponse.php | 74 + src/Models/AccessPageSetAclResponseBody.php | 91 ++ src/Models/AskSessionPackagePriceRequest.php | 139 ++ src/Models/AskSessionPackagePriceResponse.php | 74 + .../AskSessionPackagePriceResponseBody.php | 74 + .../data.php | 48 + .../data/price.php | 91 ++ .../AskSessionPackageRenewPriceRequest.php | 77 ++ .../AskSessionPackageRenewPriceResponse.php | 74 + ...skSessionPackageRenewPriceResponseBody.php | 74 + .../data.php | 48 + .../data/price.php | 91 ++ src/Models/BuySessionPackageRequest.php | 165 +++ src/Models/BuySessionPackageResponse.php | 74 + src/Models/BuySessionPackageResponseBody.php | 105 ++ src/Models/CreateAccessPageRequest.php | 115 ++ src/Models/CreateAccessPageResponse.php | 74 + src/Models/CreateAccessPageResponseBody.php | 103 ++ src/Models/CreateProjectRequest.php | 215 +++ src/Models/CreateProjectResponse.php | 74 + src/Models/CreateProjectResponseBody.php | 133 ++ src/Models/DeleteAccessPageRequest.php | 49 + src/Models/DeleteAccessPageResponse.php | 74 + src/Models/DeleteAccessPageResponseBody.php | 91 ++ src/Models/DeleteProjectRequest.php | 49 + src/Models/DeleteProjectResponse.php | 74 + src/Models/DeleteProjectResponseBody.php | 105 ++ src/Models/GetAccessPageSessionRequest.php | 77 ++ src/Models/GetAccessPageSessionResponse.php | 74 + .../GetAccessPageSessionResponseBody.php | 104 ++ .../GetAccessPageSessionResponseBody/data.php | 65 + .../appInstanceGroupModels/apps.php | 40 +- src/Models/GetConnectionTicketRequest.php | 30 +- .../GetConnectionTicketResponseBody.php | 30 +- src/Models/GetProjectPoliciesRequest.php | 49 + src/Models/GetProjectPoliciesResponse.php | 74 + src/Models/GetProjectPoliciesResponseBody.php | 104 ++ .../GetProjectPoliciesResponseBody/data.php | 201 +++ src/Models/ListAccessPagesRequest.php | 117 ++ src/Models/ListAccessPagesResponse.php | 74 + src/Models/ListAccessPagesResponseBody.php | 158 +++ .../ListAccessPagesResponseBody/data.php | 213 +++ src/Models/ListAppInstanceGroupRequest.php | 26 +- src/Models/ListProjectsRequest.php | 119 ++ src/Models/ListProjectsResponse.php | 74 + src/Models/ListProjectsResponseBody.php | 158 +++ src/Models/ListProjectsResponseBody/data.php | 215 +++ src/Models/ListSessionPackagesRequest.php | 131 ++ src/Models/ListSessionPackagesResponse.php | 74 + .../ListSessionPackagesResponseBody.php | 116 ++ .../ListSessionPackagesResponseBody/data.php | 280 ++++ .../data/instanceObject.php | 147 ++ src/Models/MigrateSessionPackageRequest.php | 77 ++ src/Models/MigrateSessionPackageResponse.php | 74 + .../MigrateSessionPackageResponseBody.php | 89 ++ src/Models/ModifyProjectPolicyRequest.php | 161 +++ src/Models/ModifyProjectPolicyResponse.php | 74 + .../ModifyProjectPolicyResponseBody.php | 105 ++ src/Models/RefreshAccessUrlRequest.php | 49 + src/Models/RefreshAccessUrlResponse.php | 74 + src/Models/RefreshAccessUrlResponseBody.php | 105 ++ src/Models/RenewSessionPackageRequest.php | 77 ++ src/Models/RenewSessionPackageResponse.php | 74 + .../RenewSessionPackageResponseBody.php | 105 ++ src/Models/UnbindRequest.php | 20 +- src/Models/UpdateAccessPageStateRequest.php | 63 + src/Models/UpdateAccessPageStateResponse.php | 74 + .../UpdateAccessPageStateResponseBody.php | 91 ++ 76 files changed, 8073 insertions(+), 106 deletions(-) create mode 100644 src/Models/AccessPageGetAclRequest.php create mode 100644 src/Models/AccessPageGetAclResponse.php create mode 100644 src/Models/AccessPageGetAclResponseBody.php create mode 100644 src/Models/AccessPageGetAclResponseBody/data.php create mode 100644 src/Models/AccessPageSetAclRequest.php create mode 100644 src/Models/AccessPageSetAclResponse.php create mode 100644 src/Models/AccessPageSetAclResponseBody.php create mode 100644 src/Models/AskSessionPackagePriceRequest.php create mode 100644 src/Models/AskSessionPackagePriceResponse.php create mode 100644 src/Models/AskSessionPackagePriceResponseBody.php create mode 100644 src/Models/AskSessionPackagePriceResponseBody/data.php create mode 100644 src/Models/AskSessionPackagePriceResponseBody/data/price.php create mode 100644 src/Models/AskSessionPackageRenewPriceRequest.php create mode 100644 src/Models/AskSessionPackageRenewPriceResponse.php create mode 100644 src/Models/AskSessionPackageRenewPriceResponseBody.php create mode 100644 src/Models/AskSessionPackageRenewPriceResponseBody/data.php create mode 100644 src/Models/AskSessionPackageRenewPriceResponseBody/data/price.php create mode 100644 src/Models/BuySessionPackageRequest.php create mode 100644 src/Models/BuySessionPackageResponse.php create mode 100644 src/Models/BuySessionPackageResponseBody.php create mode 100644 src/Models/CreateAccessPageRequest.php create mode 100644 src/Models/CreateAccessPageResponse.php create mode 100644 src/Models/CreateAccessPageResponseBody.php create mode 100644 src/Models/CreateProjectRequest.php create mode 100644 src/Models/CreateProjectResponse.php create mode 100644 src/Models/CreateProjectResponseBody.php create mode 100644 src/Models/DeleteAccessPageRequest.php create mode 100644 src/Models/DeleteAccessPageResponse.php create mode 100644 src/Models/DeleteAccessPageResponseBody.php create mode 100644 src/Models/DeleteProjectRequest.php create mode 100644 src/Models/DeleteProjectResponse.php create mode 100644 src/Models/DeleteProjectResponseBody.php create mode 100644 src/Models/GetAccessPageSessionRequest.php create mode 100644 src/Models/GetAccessPageSessionResponse.php create mode 100644 src/Models/GetAccessPageSessionResponseBody.php create mode 100644 src/Models/GetAccessPageSessionResponseBody/data.php create mode 100644 src/Models/GetProjectPoliciesRequest.php create mode 100644 src/Models/GetProjectPoliciesResponse.php create mode 100644 src/Models/GetProjectPoliciesResponseBody.php create mode 100644 src/Models/GetProjectPoliciesResponseBody/data.php create mode 100644 src/Models/ListAccessPagesRequest.php create mode 100644 src/Models/ListAccessPagesResponse.php create mode 100644 src/Models/ListAccessPagesResponseBody.php create mode 100644 src/Models/ListAccessPagesResponseBody/data.php create mode 100644 src/Models/ListProjectsRequest.php create mode 100644 src/Models/ListProjectsResponse.php create mode 100644 src/Models/ListProjectsResponseBody.php create mode 100644 src/Models/ListProjectsResponseBody/data.php create mode 100644 src/Models/ListSessionPackagesRequest.php create mode 100644 src/Models/ListSessionPackagesResponse.php create mode 100644 src/Models/ListSessionPackagesResponseBody.php create mode 100644 src/Models/ListSessionPackagesResponseBody/data.php create mode 100644 src/Models/ListSessionPackagesResponseBody/data/instanceObject.php create mode 100644 src/Models/MigrateSessionPackageRequest.php create mode 100644 src/Models/MigrateSessionPackageResponse.php create mode 100644 src/Models/MigrateSessionPackageResponseBody.php create mode 100644 src/Models/ModifyProjectPolicyRequest.php create mode 100644 src/Models/ModifyProjectPolicyResponse.php create mode 100644 src/Models/ModifyProjectPolicyResponseBody.php create mode 100644 src/Models/RefreshAccessUrlRequest.php create mode 100644 src/Models/RefreshAccessUrlResponse.php create mode 100644 src/Models/RefreshAccessUrlResponseBody.php create mode 100644 src/Models/RenewSessionPackageRequest.php create mode 100644 src/Models/RenewSessionPackageResponse.php create mode 100644 src/Models/RenewSessionPackageResponseBody.php create mode 100644 src/Models/UpdateAccessPageStateRequest.php create mode 100644 src/Models/UpdateAccessPageStateResponse.php create mode 100644 src/Models/UpdateAccessPageStateResponseBody.php diff --git a/ChangeLog.md b/ChangeLog.md index 4a3c4cb..de203fb 100644 --- a/ChangeLog.md +++ b/ChangeLog.md @@ -1,3 +1,6 @@ +2024-01-15 Version: 1.1.0 +- Generated php 2021-09-01 for appstream-center. + 2023-08-22 Version: 1.0.8 - Generated php 2021-09-01 for appstream-center. diff --git a/composer.json b/composer.json index 8a60991..cf664ab 100644 --- a/composer.json +++ b/composer.json @@ -12,7 +12,7 @@ "require": { "php": ">5.5", "alibabacloud/tea-utils": "^0.2.19", - "alibabacloud/darabonba-openapi": "^0.2.8", + "alibabacloud/darabonba-openapi": "^0.2.10", "alibabacloud/openapi-util": "^0.1.10|^0.2.1", "alibabacloud/endpoint-util": "^0.1.0" }, diff --git a/src/Appstreamcenter.php b/src/Appstreamcenter.php index cdcb3b7..8c0afaa 100644 --- a/src/Appstreamcenter.php +++ b/src/Appstreamcenter.php @@ -6,21 +6,41 @@ use AlibabaCloud\Endpoint\Endpoint; use AlibabaCloud\OpenApiUtil\OpenApiUtilClient; +use AlibabaCloud\SDK\Appstreamcenter\V20210901\Models\AccessPageGetAclRequest; +use AlibabaCloud\SDK\Appstreamcenter\V20210901\Models\AccessPageGetAclResponse; +use AlibabaCloud\SDK\Appstreamcenter\V20210901\Models\AccessPageSetAclRequest; +use AlibabaCloud\SDK\Appstreamcenter\V20210901\Models\AccessPageSetAclResponse; use AlibabaCloud\SDK\Appstreamcenter\V20210901\Models\ApproveOtaTaskRequest; use AlibabaCloud\SDK\Appstreamcenter\V20210901\Models\ApproveOtaTaskResponse; +use AlibabaCloud\SDK\Appstreamcenter\V20210901\Models\AskSessionPackagePriceRequest; +use AlibabaCloud\SDK\Appstreamcenter\V20210901\Models\AskSessionPackagePriceResponse; +use AlibabaCloud\SDK\Appstreamcenter\V20210901\Models\AskSessionPackageRenewPriceRequest; +use AlibabaCloud\SDK\Appstreamcenter\V20210901\Models\AskSessionPackageRenewPriceResponse; use AlibabaCloud\SDK\Appstreamcenter\V20210901\Models\AuthorizeInstanceGroupRequest; use AlibabaCloud\SDK\Appstreamcenter\V20210901\Models\AuthorizeInstanceGroupResponse; +use AlibabaCloud\SDK\Appstreamcenter\V20210901\Models\BuySessionPackageRequest; +use AlibabaCloud\SDK\Appstreamcenter\V20210901\Models\BuySessionPackageResponse; use AlibabaCloud\SDK\Appstreamcenter\V20210901\Models\CancelOtaTaskRequest; use AlibabaCloud\SDK\Appstreamcenter\V20210901\Models\CancelOtaTaskResponse; +use AlibabaCloud\SDK\Appstreamcenter\V20210901\Models\CreateAccessPageRequest; +use AlibabaCloud\SDK\Appstreamcenter\V20210901\Models\CreateAccessPageResponse; use AlibabaCloud\SDK\Appstreamcenter\V20210901\Models\CreateAppInstanceGroupRequest; use AlibabaCloud\SDK\Appstreamcenter\V20210901\Models\CreateAppInstanceGroupResponse; use AlibabaCloud\SDK\Appstreamcenter\V20210901\Models\CreateAppInstanceGroupShrinkRequest; use AlibabaCloud\SDK\Appstreamcenter\V20210901\Models\CreateImageFromAppInstanceGroupRequest; use AlibabaCloud\SDK\Appstreamcenter\V20210901\Models\CreateImageFromAppInstanceGroupResponse; +use AlibabaCloud\SDK\Appstreamcenter\V20210901\Models\CreateProjectRequest; +use AlibabaCloud\SDK\Appstreamcenter\V20210901\Models\CreateProjectResponse; +use AlibabaCloud\SDK\Appstreamcenter\V20210901\Models\DeleteAccessPageRequest; +use AlibabaCloud\SDK\Appstreamcenter\V20210901\Models\DeleteAccessPageResponse; use AlibabaCloud\SDK\Appstreamcenter\V20210901\Models\DeleteAppInstanceGroupRequest; use AlibabaCloud\SDK\Appstreamcenter\V20210901\Models\DeleteAppInstanceGroupResponse; use AlibabaCloud\SDK\Appstreamcenter\V20210901\Models\DeleteAppInstancesRequest; use AlibabaCloud\SDK\Appstreamcenter\V20210901\Models\DeleteAppInstancesResponse; +use AlibabaCloud\SDK\Appstreamcenter\V20210901\Models\DeleteProjectRequest; +use AlibabaCloud\SDK\Appstreamcenter\V20210901\Models\DeleteProjectResponse; +use AlibabaCloud\SDK\Appstreamcenter\V20210901\Models\GetAccessPageSessionRequest; +use AlibabaCloud\SDK\Appstreamcenter\V20210901\Models\GetAccessPageSessionResponse; use AlibabaCloud\SDK\Appstreamcenter\V20210901\Models\GetAppInstanceGroupRequest; use AlibabaCloud\SDK\Appstreamcenter\V20210901\Models\GetAppInstanceGroupResponse; use AlibabaCloud\SDK\Appstreamcenter\V20210901\Models\GetConnectionTicketRequest; @@ -29,10 +49,14 @@ use AlibabaCloud\SDK\Appstreamcenter\V20210901\Models\GetDebugAppInstanceResponse; use AlibabaCloud\SDK\Appstreamcenter\V20210901\Models\GetOtaTaskByTaskIdRequest; use AlibabaCloud\SDK\Appstreamcenter\V20210901\Models\GetOtaTaskByTaskIdResponse; +use AlibabaCloud\SDK\Appstreamcenter\V20210901\Models\GetProjectPoliciesRequest; +use AlibabaCloud\SDK\Appstreamcenter\V20210901\Models\GetProjectPoliciesResponse; use AlibabaCloud\SDK\Appstreamcenter\V20210901\Models\GetResourcePriceRequest; use AlibabaCloud\SDK\Appstreamcenter\V20210901\Models\GetResourcePriceResponse; use AlibabaCloud\SDK\Appstreamcenter\V20210901\Models\GetResourceRenewPriceRequest; use AlibabaCloud\SDK\Appstreamcenter\V20210901\Models\GetResourceRenewPriceResponse; +use AlibabaCloud\SDK\Appstreamcenter\V20210901\Models\ListAccessPagesRequest; +use AlibabaCloud\SDK\Appstreamcenter\V20210901\Models\ListAccessPagesResponse; use AlibabaCloud\SDK\Appstreamcenter\V20210901\Models\ListAppInstanceGroupRequest; use AlibabaCloud\SDK\Appstreamcenter\V20210901\Models\ListAppInstanceGroupResponse; use AlibabaCloud\SDK\Appstreamcenter\V20210901\Models\ListAppInstancesRequest; @@ -41,24 +65,38 @@ use AlibabaCloud\SDK\Appstreamcenter\V20210901\Models\ListNodeInstanceTypeResponse; use AlibabaCloud\SDK\Appstreamcenter\V20210901\Models\ListOtaTaskRequest; use AlibabaCloud\SDK\Appstreamcenter\V20210901\Models\ListOtaTaskResponse; +use AlibabaCloud\SDK\Appstreamcenter\V20210901\Models\ListProjectsRequest; +use AlibabaCloud\SDK\Appstreamcenter\V20210901\Models\ListProjectsResponse; use AlibabaCloud\SDK\Appstreamcenter\V20210901\Models\ListRegionsResponse; +use AlibabaCloud\SDK\Appstreamcenter\V20210901\Models\ListSessionPackagesRequest; +use AlibabaCloud\SDK\Appstreamcenter\V20210901\Models\ListSessionPackagesResponse; use AlibabaCloud\SDK\Appstreamcenter\V20210901\Models\ListTenantConfigResponse; use AlibabaCloud\SDK\Appstreamcenter\V20210901\Models\LogOffAllSessionsInAppInstanceGroupRequest; use AlibabaCloud\SDK\Appstreamcenter\V20210901\Models\LogOffAllSessionsInAppInstanceGroupResponse; +use AlibabaCloud\SDK\Appstreamcenter\V20210901\Models\MigrateSessionPackageRequest; +use AlibabaCloud\SDK\Appstreamcenter\V20210901\Models\MigrateSessionPackageResponse; use AlibabaCloud\SDK\Appstreamcenter\V20210901\Models\ModifyAppInstanceGroupAttributeRequest; use AlibabaCloud\SDK\Appstreamcenter\V20210901\Models\ModifyAppInstanceGroupAttributeResponse; use AlibabaCloud\SDK\Appstreamcenter\V20210901\Models\ModifyAppInstanceGroupAttributeShrinkRequest; use AlibabaCloud\SDK\Appstreamcenter\V20210901\Models\ModifyNodePoolAttributeRequest; use AlibabaCloud\SDK\Appstreamcenter\V20210901\Models\ModifyNodePoolAttributeResponse; use AlibabaCloud\SDK\Appstreamcenter\V20210901\Models\ModifyNodePoolAttributeShrinkRequest; +use AlibabaCloud\SDK\Appstreamcenter\V20210901\Models\ModifyProjectPolicyRequest; +use AlibabaCloud\SDK\Appstreamcenter\V20210901\Models\ModifyProjectPolicyResponse; use AlibabaCloud\SDK\Appstreamcenter\V20210901\Models\ModifyTenantConfigRequest; use AlibabaCloud\SDK\Appstreamcenter\V20210901\Models\ModifyTenantConfigResponse; use AlibabaCloud\SDK\Appstreamcenter\V20210901\Models\PageListAppInstanceGroupUserRequest; use AlibabaCloud\SDK\Appstreamcenter\V20210901\Models\PageListAppInstanceGroupUserResponse; +use AlibabaCloud\SDK\Appstreamcenter\V20210901\Models\RefreshAccessUrlRequest; +use AlibabaCloud\SDK\Appstreamcenter\V20210901\Models\RefreshAccessUrlResponse; use AlibabaCloud\SDK\Appstreamcenter\V20210901\Models\RenewAppInstanceGroupRequest; use AlibabaCloud\SDK\Appstreamcenter\V20210901\Models\RenewAppInstanceGroupResponse; +use AlibabaCloud\SDK\Appstreamcenter\V20210901\Models\RenewSessionPackageRequest; +use AlibabaCloud\SDK\Appstreamcenter\V20210901\Models\RenewSessionPackageResponse; use AlibabaCloud\SDK\Appstreamcenter\V20210901\Models\UnbindRequest; use AlibabaCloud\SDK\Appstreamcenter\V20210901\Models\UnbindResponse; +use AlibabaCloud\SDK\Appstreamcenter\V20210901\Models\UpdateAccessPageStateRequest; +use AlibabaCloud\SDK\Appstreamcenter\V20210901\Models\UpdateAccessPageStateResponse; use AlibabaCloud\SDK\Appstreamcenter\V20210901\Models\UpdateAppInstanceGroupImageRequest; use AlibabaCloud\SDK\Appstreamcenter\V20210901\Models\UpdateAppInstanceGroupImageResponse; use AlibabaCloud\Tea\Utils\Utils; @@ -72,7 +110,8 @@ class Appstreamcenter extends OpenApiClient public function __construct($config) { parent::__construct($config); - $this->_endpointRule = ''; + $this->_signatureAlgorithm = 'v2'; + $this->_endpointRule = ''; $this->checkConfig($config); $this->_endpoint = $this->getEndpoint('appstream-center', $this->_regionId, $this->_endpointRule, $this->_network, $this->_suffix, $this->_endpointMap, $this->_endpoint); } @@ -100,6 +139,104 @@ public function getEndpoint($productId, $regionId, $endpointRule, $network, $suf return Endpoint::getEndpointRules($productId, $regionId, $endpointRule, $network, $suffix); } + /** + * @param AccessPageGetAclRequest $request + * @param RuntimeOptions $runtime + * + * @return AccessPageGetAclResponse + */ + public function accessPageGetAclWithOptions($request, $runtime) + { + Utils::validateModel($request); + $query = []; + if (!Utils::isUnset($request->accessPageId)) { + $query['AccessPageId'] = $request->accessPageId; + } + $req = new OpenApiRequest([ + 'query' => OpenApiUtilClient::query($query), + ]); + $params = new Params([ + 'action' => 'AccessPageGetAcl', + 'version' => '2021-09-01', + 'protocol' => 'HTTPS', + 'pathname' => '/', + 'method' => 'POST', + 'authType' => 'AK', + 'style' => 'RPC', + 'reqBodyType' => 'formData', + 'bodyType' => 'json', + ]); + + return AccessPageGetAclResponse::fromMap($this->callApi($params, $req, $runtime)); + } + + /** + * @param AccessPageGetAclRequest $request + * + * @return AccessPageGetAclResponse + */ + public function accessPageGetAcl($request) + { + $runtime = new RuntimeOptions([]); + + return $this->accessPageGetAclWithOptions($request, $runtime); + } + + /** + * @param AccessPageSetAclRequest $request + * @param RuntimeOptions $runtime + * + * @return AccessPageSetAclResponse + */ + public function accessPageSetAclWithOptions($request, $runtime) + { + Utils::validateModel($request); + $query = []; + if (!Utils::isUnset($request->accessMode)) { + $query['AccessMode'] = $request->accessMode; + } + if (!Utils::isUnset($request->accessPageId)) { + $query['AccessPageId'] = $request->accessPageId; + } + if (!Utils::isUnset($request->accessPageName)) { + $query['AccessPageName'] = $request->accessPageName; + } + if (!Utils::isUnset($request->effectTime)) { + $query['EffectTime'] = $request->effectTime; + } + if (!Utils::isUnset($request->unit)) { + $query['Unit'] = $request->unit; + } + $req = new OpenApiRequest([ + 'query' => OpenApiUtilClient::query($query), + ]); + $params = new Params([ + 'action' => 'AccessPageSetAcl', + 'version' => '2021-09-01', + 'protocol' => 'HTTPS', + 'pathname' => '/', + 'method' => 'POST', + 'authType' => 'AK', + 'style' => 'RPC', + 'reqBodyType' => 'formData', + 'bodyType' => 'json', + ]); + + return AccessPageSetAclResponse::fromMap($this->callApi($params, $req, $runtime)); + } + + /** + * @param AccessPageSetAclRequest $request + * + * @return AccessPageSetAclResponse + */ + public function accessPageSetAcl($request) + { + $runtime = new RuntimeOptions([]); + + return $this->accessPageSetAclWithOptions($request, $runtime); + } + /** * @param ApproveOtaTaskRequest $request * @param RuntimeOptions $runtime @@ -155,6 +292,119 @@ public function approveOtaTask($request) return $this->approveOtaTaskWithOptions($request, $runtime); } + /** + * @param AskSessionPackagePriceRequest $request + * @param RuntimeOptions $runtime + * + * @return AskSessionPackagePriceResponse + */ + public function askSessionPackagePriceWithOptions($request, $runtime) + { + Utils::validateModel($request); + $query = []; + if (!Utils::isUnset($request->chargeType)) { + $query['ChargeType'] = $request->chargeType; + } + if (!Utils::isUnset($request->maxSessions)) { + $query['MaxSessions'] = $request->maxSessions; + } + if (!Utils::isUnset($request->period)) { + $query['Period'] = $request->period; + } + if (!Utils::isUnset($request->periodUnit)) { + $query['PeriodUnit'] = $request->periodUnit; + } + if (!Utils::isUnset($request->region)) { + $query['Region'] = $request->region; + } + if (!Utils::isUnset($request->sessionPackageType)) { + $query['SessionPackageType'] = $request->sessionPackageType; + } + if (!Utils::isUnset($request->sessionSpec)) { + $query['SessionSpec'] = $request->sessionSpec; + } + if (!Utils::isUnset($request->sessionType)) { + $query['SessionType'] = $request->sessionType; + } + $req = new OpenApiRequest([ + 'query' => OpenApiUtilClient::query($query), + ]); + $params = new Params([ + 'action' => 'AskSessionPackagePrice', + 'version' => '2021-09-01', + 'protocol' => 'HTTPS', + 'pathname' => '/', + 'method' => 'POST', + 'authType' => 'AK', + 'style' => 'RPC', + 'reqBodyType' => 'formData', + 'bodyType' => 'json', + ]); + + return AskSessionPackagePriceResponse::fromMap($this->callApi($params, $req, $runtime)); + } + + /** + * @param AskSessionPackagePriceRequest $request + * + * @return AskSessionPackagePriceResponse + */ + public function askSessionPackagePrice($request) + { + $runtime = new RuntimeOptions([]); + + return $this->askSessionPackagePriceWithOptions($request, $runtime); + } + + /** + * @param AskSessionPackageRenewPriceRequest $request + * @param RuntimeOptions $runtime + * + * @return AskSessionPackageRenewPriceResponse + */ + public function askSessionPackageRenewPriceWithOptions($request, $runtime) + { + Utils::validateModel($request); + $query = []; + if (!Utils::isUnset($request->period)) { + $query['Period'] = $request->period; + } + if (!Utils::isUnset($request->periodUnit)) { + $query['PeriodUnit'] = $request->periodUnit; + } + if (!Utils::isUnset($request->sessionPackageId)) { + $query['SessionPackageId'] = $request->sessionPackageId; + } + $req = new OpenApiRequest([ + 'query' => OpenApiUtilClient::query($query), + ]); + $params = new Params([ + 'action' => 'AskSessionPackageRenewPrice', + 'version' => '2021-09-01', + 'protocol' => 'HTTPS', + 'pathname' => '/', + 'method' => 'POST', + 'authType' => 'AK', + 'style' => 'RPC', + 'reqBodyType' => 'formData', + 'bodyType' => 'json', + ]); + + return AskSessionPackageRenewPriceResponse::fromMap($this->callApi($params, $req, $runtime)); + } + + /** + * @param AskSessionPackageRenewPriceRequest $request + * + * @return AskSessionPackageRenewPriceResponse + */ + public function askSessionPackageRenewPrice($request) + { + $runtime = new RuntimeOptions([]); + + return $this->askSessionPackageRenewPriceWithOptions($request, $runtime); + } + /** * @param AuthorizeInstanceGroupRequest $request * @param RuntimeOptions $runtime @@ -207,6 +457,76 @@ public function authorizeInstanceGroup($request) return $this->authorizeInstanceGroupWithOptions($request, $runtime); } + /** + * @param BuySessionPackageRequest $request + * @param RuntimeOptions $runtime + * + * @return BuySessionPackageResponse + */ + public function buySessionPackageWithOptions($request, $runtime) + { + Utils::validateModel($request); + $query = []; + if (!Utils::isUnset($request->chargeType)) { + $query['ChargeType'] = $request->chargeType; + } + if (!Utils::isUnset($request->maxSessions)) { + $query['MaxSessions'] = $request->maxSessions; + } + if (!Utils::isUnset($request->period)) { + $query['Period'] = $request->period; + } + if (!Utils::isUnset($request->periodUnit)) { + $query['PeriodUnit'] = $request->periodUnit; + } + if (!Utils::isUnset($request->projectId)) { + $query['ProjectId'] = $request->projectId; + } + if (!Utils::isUnset($request->region)) { + $query['Region'] = $request->region; + } + if (!Utils::isUnset($request->sessionPackageName)) { + $query['SessionPackageName'] = $request->sessionPackageName; + } + if (!Utils::isUnset($request->sessionPackageType)) { + $query['SessionPackageType'] = $request->sessionPackageType; + } + if (!Utils::isUnset($request->sessionSpec)) { + $query['SessionSpec'] = $request->sessionSpec; + } + if (!Utils::isUnset($request->sessionType)) { + $query['SessionType'] = $request->sessionType; + } + $req = new OpenApiRequest([ + 'query' => OpenApiUtilClient::query($query), + ]); + $params = new Params([ + 'action' => 'BuySessionPackage', + 'version' => '2021-09-01', + 'protocol' => 'HTTPS', + 'pathname' => '/', + 'method' => 'POST', + 'authType' => 'AK', + 'style' => 'RPC', + 'reqBodyType' => 'formData', + 'bodyType' => 'json', + ]); + + return BuySessionPackageResponse::fromMap($this->callApi($params, $req, $runtime)); + } + + /** + * @param BuySessionPackageRequest $request + * + * @return BuySessionPackageResponse + */ + public function buySessionPackage($request) + { + $runtime = new RuntimeOptions([]); + + return $this->buySessionPackageWithOptions($request, $runtime); + } + /** * @param CancelOtaTaskRequest $request * @param RuntimeOptions $runtime @@ -253,6 +573,64 @@ public function cancelOtaTask($request) return $this->cancelOtaTaskWithOptions($request, $runtime); } + /** + * @param CreateAccessPageRequest $request + * @param RuntimeOptions $runtime + * + * @return CreateAccessPageResponse + */ + public function createAccessPageWithOptions($request, $runtime) + { + Utils::validateModel($request); + $query = []; + if (!Utils::isUnset($request->accessPageName)) { + $query['AccessPageName'] = $request->accessPageName; + } + if (!Utils::isUnset($request->cloudEnvId)) { + $query['CloudEnvId'] = $request->cloudEnvId; + } + if (!Utils::isUnset($request->effectTime)) { + $query['EffectTime'] = $request->effectTime; + } + if (!Utils::isUnset($request->projectId)) { + $query['ProjectId'] = $request->projectId; + } + if (!Utils::isUnset($request->projectName)) { + $query['ProjectName'] = $request->projectName; + } + if (!Utils::isUnset($request->unit)) { + $query['Unit'] = $request->unit; + } + $req = new OpenApiRequest([ + 'query' => OpenApiUtilClient::query($query), + ]); + $params = new Params([ + 'action' => 'CreateAccessPage', + 'version' => '2021-09-01', + 'protocol' => 'HTTPS', + 'pathname' => '/', + 'method' => 'POST', + 'authType' => 'AK', + 'style' => 'RPC', + 'reqBodyType' => 'formData', + 'bodyType' => 'json', + ]); + + return CreateAccessPageResponse::fromMap($this->callApi($params, $req, $runtime)); + } + + /** + * @param CreateAccessPageRequest $request + * + * @return CreateAccessPageResponse + */ + public function createAccessPage($request) + { + $runtime = new RuntimeOptions([]); + + return $this->createAccessPageWithOptions($request, $runtime); + } + /** * @param CreateAppInstanceGroupRequest $tmpReq * @param RuntimeOptions $runtime @@ -377,26 +755,148 @@ public function createAppInstanceGroup($request) * @param CreateImageFromAppInstanceGroupRequest $request * @param RuntimeOptions $runtime * - * @return CreateImageFromAppInstanceGroupResponse + * @return CreateImageFromAppInstanceGroupResponse + */ + public function createImageFromAppInstanceGroupWithOptions($request, $runtime) + { + Utils::validateModel($request); + $body = []; + if (!Utils::isUnset($request->appCenterImageName)) { + $body['AppCenterImageName'] = $request->appCenterImageName; + } + if (!Utils::isUnset($request->appInstanceGroupId)) { + $body['AppInstanceGroupId'] = $request->appInstanceGroupId; + } + if (!Utils::isUnset($request->productType)) { + $body['ProductType'] = $request->productType; + } + $req = new OpenApiRequest([ + 'body' => OpenApiUtilClient::parseToMap($body), + ]); + $params = new Params([ + 'action' => 'CreateImageFromAppInstanceGroup', + 'version' => '2021-09-01', + 'protocol' => 'HTTPS', + 'pathname' => '/', + 'method' => 'POST', + 'authType' => 'AK', + 'style' => 'RPC', + 'reqBodyType' => 'formData', + 'bodyType' => 'json', + ]); + + return CreateImageFromAppInstanceGroupResponse::fromMap($this->callApi($params, $req, $runtime)); + } + + /** + * @param CreateImageFromAppInstanceGroupRequest $request + * + * @return CreateImageFromAppInstanceGroupResponse + */ + public function createImageFromAppInstanceGroup($request) + { + $runtime = new RuntimeOptions([]); + + return $this->createImageFromAppInstanceGroupWithOptions($request, $runtime); + } + + /** + * @param CreateProjectRequest $request + * @param RuntimeOptions $runtime + * + * @return CreateProjectResponse + */ + public function createProjectWithOptions($request, $runtime) + { + Utils::validateModel($request); + $query = []; + if (!Utils::isUnset($request->clipboard)) { + $query['Clipboard'] = $request->clipboard; + } + if (!Utils::isUnset($request->cloudEnvId)) { + $query['CloudEnvId'] = $request->cloudEnvId; + } + if (!Utils::isUnset($request->contentId)) { + $query['ContentId'] = $request->contentId; + } + if (!Utils::isUnset($request->description)) { + $query['Description'] = $request->description; + } + if (!Utils::isUnset($request->fileTransfer)) { + $query['FileTransfer'] = $request->fileTransfer; + } + if (!Utils::isUnset($request->frameRate)) { + $query['FrameRate'] = $request->frameRate; + } + if (!Utils::isUnset($request->keepAliveDuration)) { + $query['KeepAliveDuration'] = $request->keepAliveDuration; + } + if (!Utils::isUnset($request->projectName)) { + $query['ProjectName'] = $request->projectName; + } + if (!Utils::isUnset($request->sessionResolutionHeight)) { + $query['SessionResolutionHeight'] = $request->sessionResolutionHeight; + } + if (!Utils::isUnset($request->sessionResolutionWidth)) { + $query['SessionResolutionWidth'] = $request->sessionResolutionWidth; + } + if (!Utils::isUnset($request->sessionSpec)) { + $query['SessionSpec'] = $request->sessionSpec; + } + if (!Utils::isUnset($request->streamingMode)) { + $query['StreamingMode'] = $request->streamingMode; + } + if (!Utils::isUnset($request->terminalResolutionAdaptation)) { + $query['TerminalResolutionAdaptation'] = $request->terminalResolutionAdaptation; + } + $req = new OpenApiRequest([ + 'query' => OpenApiUtilClient::query($query), + ]); + $params = new Params([ + 'action' => 'CreateProject', + 'version' => '2021-09-01', + 'protocol' => 'HTTPS', + 'pathname' => '/', + 'method' => 'POST', + 'authType' => 'AK', + 'style' => 'RPC', + 'reqBodyType' => 'formData', + 'bodyType' => 'json', + ]); + + return CreateProjectResponse::fromMap($this->callApi($params, $req, $runtime)); + } + + /** + * @param CreateProjectRequest $request + * + * @return CreateProjectResponse + */ + public function createProject($request) + { + $runtime = new RuntimeOptions([]); + + return $this->createProjectWithOptions($request, $runtime); + } + + /** + * @param DeleteAccessPageRequest $request + * @param RuntimeOptions $runtime + * + * @return DeleteAccessPageResponse */ - public function createImageFromAppInstanceGroupWithOptions($request, $runtime) + public function deleteAccessPageWithOptions($request, $runtime) { Utils::validateModel($request); - $body = []; - if (!Utils::isUnset($request->appCenterImageName)) { - $body['AppCenterImageName'] = $request->appCenterImageName; - } - if (!Utils::isUnset($request->appInstanceGroupId)) { - $body['AppInstanceGroupId'] = $request->appInstanceGroupId; - } - if (!Utils::isUnset($request->productType)) { - $body['ProductType'] = $request->productType; + $query = []; + if (!Utils::isUnset($request->accessPageId)) { + $query['AccessPageId'] = $request->accessPageId; } $req = new OpenApiRequest([ - 'body' => OpenApiUtilClient::parseToMap($body), + 'query' => OpenApiUtilClient::query($query), ]); $params = new Params([ - 'action' => 'CreateImageFromAppInstanceGroup', + 'action' => 'DeleteAccessPage', 'version' => '2021-09-01', 'protocol' => 'HTTPS', 'pathname' => '/', @@ -407,19 +907,19 @@ public function createImageFromAppInstanceGroupWithOptions($request, $runtime) 'bodyType' => 'json', ]); - return CreateImageFromAppInstanceGroupResponse::fromMap($this->callApi($params, $req, $runtime)); + return DeleteAccessPageResponse::fromMap($this->callApi($params, $req, $runtime)); } /** - * @param CreateImageFromAppInstanceGroupRequest $request + * @param DeleteAccessPageRequest $request * - * @return CreateImageFromAppInstanceGroupResponse + * @return DeleteAccessPageResponse */ - public function createImageFromAppInstanceGroup($request) + public function deleteAccessPage($request) { $runtime = new RuntimeOptions([]); - return $this->createImageFromAppInstanceGroupWithOptions($request, $runtime); + return $this->deleteAccessPageWithOptions($request, $runtime); } /** @@ -517,6 +1017,98 @@ public function deleteAppInstances($request) return $this->deleteAppInstancesWithOptions($request, $runtime); } + /** + * @param DeleteProjectRequest $request + * @param RuntimeOptions $runtime + * + * @return DeleteProjectResponse + */ + public function deleteProjectWithOptions($request, $runtime) + { + Utils::validateModel($request); + $query = []; + if (!Utils::isUnset($request->projectId)) { + $query['ProjectId'] = $request->projectId; + } + $req = new OpenApiRequest([ + 'query' => OpenApiUtilClient::query($query), + ]); + $params = new Params([ + 'action' => 'DeleteProject', + 'version' => '2021-09-01', + 'protocol' => 'HTTPS', + 'pathname' => '/', + 'method' => 'POST', + 'authType' => 'AK', + 'style' => 'RPC', + 'reqBodyType' => 'formData', + 'bodyType' => 'json', + ]); + + return DeleteProjectResponse::fromMap($this->callApi($params, $req, $runtime)); + } + + /** + * @param DeleteProjectRequest $request + * + * @return DeleteProjectResponse + */ + public function deleteProject($request) + { + $runtime = new RuntimeOptions([]); + + return $this->deleteProjectWithOptions($request, $runtime); + } + + /** + * @param GetAccessPageSessionRequest $request + * @param RuntimeOptions $runtime + * + * @return GetAccessPageSessionResponse + */ + public function getAccessPageSessionWithOptions($request, $runtime) + { + Utils::validateModel($request); + $query = []; + if (!Utils::isUnset($request->accessPageId)) { + $query['AccessPageId'] = $request->accessPageId; + } + if (!Utils::isUnset($request->accessPageToken)) { + $query['AccessPageToken'] = $request->accessPageToken; + } + if (!Utils::isUnset($request->externalUserId)) { + $query['ExternalUserId'] = $request->externalUserId; + } + $req = new OpenApiRequest([ + 'query' => OpenApiUtilClient::query($query), + ]); + $params = new Params([ + 'action' => 'GetAccessPageSession', + 'version' => '2021-09-01', + 'protocol' => 'HTTPS', + 'pathname' => '/', + 'method' => 'POST', + 'authType' => 'Anonymous', + 'style' => 'RPC', + 'reqBodyType' => 'formData', + 'bodyType' => 'json', + ]); + + return GetAccessPageSessionResponse::fromMap($this->callApi($params, $req, $runtime)); + } + + /** + * @param GetAccessPageSessionRequest $request + * + * @return GetAccessPageSessionResponse + */ + public function getAccessPageSession($request) + { + $runtime = new RuntimeOptions([]); + + return $this->getAccessPageSessionWithOptions($request, $runtime); + } + /** * @param GetAppInstanceGroupRequest $request * @param RuntimeOptions $runtime @@ -582,6 +1174,9 @@ public function getConnectionTicketWithOptions($request, $runtime) if (!Utils::isUnset($request->appInstanceId)) { $body['AppInstanceId'] = $request->appInstanceId; } + if (!Utils::isUnset($request->appInstancePersistentId)) { + $body['AppInstancePersistentId'] = $request->appInstancePersistentId; + } if (!Utils::isUnset($request->appStartParam)) { $body['AppStartParam'] = $request->appStartParam; } @@ -719,6 +1314,49 @@ public function getOtaTaskByTaskId($request) return $this->getOtaTaskByTaskIdWithOptions($request, $runtime); } + /** + * @param GetProjectPoliciesRequest $request + * @param RuntimeOptions $runtime + * + * @return GetProjectPoliciesResponse + */ + public function getProjectPoliciesWithOptions($request, $runtime) + { + Utils::validateModel($request); + $query = []; + if (!Utils::isUnset($request->projectId)) { + $query['ProjectId'] = $request->projectId; + } + $req = new OpenApiRequest([ + 'query' => OpenApiUtilClient::query($query), + ]); + $params = new Params([ + 'action' => 'GetProjectPolicies', + 'version' => '2021-09-01', + 'protocol' => 'HTTPS', + 'pathname' => '/', + 'method' => 'POST', + 'authType' => 'AK', + 'style' => 'RPC', + 'reqBodyType' => 'formData', + 'bodyType' => 'json', + ]); + + return GetProjectPoliciesResponse::fromMap($this->callApi($params, $req, $runtime)); + } + + /** + * @param GetProjectPoliciesRequest $request + * + * @return GetProjectPoliciesResponse + */ + public function getProjectPolicies($request) + { + $runtime = new RuntimeOptions([]); + + return $this->getProjectPoliciesWithOptions($request, $runtime); + } + /** * @param GetResourcePriceRequest $request * @param RuntimeOptions $runtime @@ -835,6 +1473,64 @@ public function getResourceRenewPrice($request) return $this->getResourceRenewPriceWithOptions($request, $runtime); } + /** + * @param ListAccessPagesRequest $request + * @param RuntimeOptions $runtime + * + * @return ListAccessPagesResponse + */ + public function listAccessPagesWithOptions($request, $runtime) + { + Utils::validateModel($request); + $query = []; + if (!Utils::isUnset($request->accessPageId)) { + $query['AccessPageId'] = $request->accessPageId; + } + if (!Utils::isUnset($request->accessPageName)) { + $query['AccessPageName'] = $request->accessPageName; + } + if (!Utils::isUnset($request->pageNumber)) { + $query['PageNumber'] = $request->pageNumber; + } + if (!Utils::isUnset($request->pageSize)) { + $query['PageSize'] = $request->pageSize; + } + if (!Utils::isUnset($request->projectId)) { + $query['ProjectId'] = $request->projectId; + } + if (!Utils::isUnset($request->sortType)) { + $query['SortType'] = $request->sortType; + } + $req = new OpenApiRequest([ + 'query' => OpenApiUtilClient::query($query), + ]); + $params = new Params([ + 'action' => 'ListAccessPages', + 'version' => '2021-09-01', + 'protocol' => 'HTTPS', + 'pathname' => '/', + 'method' => 'POST', + 'authType' => 'AK', + 'style' => 'RPC', + 'reqBodyType' => 'formData', + 'bodyType' => 'json', + ]); + + return ListAccessPagesResponse::fromMap($this->callApi($params, $req, $runtime)); + } + + /** + * @param ListAccessPagesRequest $request + * + * @return ListAccessPagesResponse + */ + public function listAccessPages($request) + { + $runtime = new RuntimeOptions([]); + + return $this->listAccessPagesWithOptions($request, $runtime); + } + /** * @param ListAppInstanceGroupRequest $request * @param RuntimeOptions $runtime @@ -854,6 +1550,9 @@ public function listAppInstanceGroupWithOptions($request, $runtime) if (!Utils::isUnset($request->appInstanceGroupName)) { $query['AppInstanceGroupName'] = $request->appInstanceGroupName; } + if (!Utils::isUnset($request->bizRegionId)) { + $query['BizRegionId'] = $request->bizRegionId; + } if (!Utils::isUnset($request->nodeInstanceType)) { $query['NodeInstanceType'] = $request->nodeInstanceType; } @@ -866,9 +1565,6 @@ public function listAppInstanceGroupWithOptions($request, $runtime) if (!Utils::isUnset($request->productType)) { $query['ProductType'] = $request->productType; } - if (!Utils::isUnset($request->regionId)) { - $query['RegionId'] = $request->regionId; - } $body = []; if (!Utils::isUnset($request->status)) { $body['Status'] = $request->status; @@ -995,14 +1691,124 @@ public function listNodeInstanceTypeWithOptions($request, $runtime) if (!Utils::isUnset($request->pageSize)) { $query['PageSize'] = $request->pageSize; } - if (!Utils::isUnset($request->productType)) { - $query['ProductType'] = $request->productType; + if (!Utils::isUnset($request->productType)) { + $query['ProductType'] = $request->productType; + } + $req = new OpenApiRequest([ + 'query' => OpenApiUtilClient::query($query), + ]); + $params = new Params([ + 'action' => 'ListNodeInstanceType', + 'version' => '2021-09-01', + 'protocol' => 'HTTPS', + 'pathname' => '/', + 'method' => 'POST', + 'authType' => 'AK', + 'style' => 'RPC', + 'reqBodyType' => 'formData', + 'bodyType' => 'json', + ]); + + return ListNodeInstanceTypeResponse::fromMap($this->callApi($params, $req, $runtime)); + } + + /** + * @param ListNodeInstanceTypeRequest $request + * + * @return ListNodeInstanceTypeResponse + */ + public function listNodeInstanceType($request) + { + $runtime = new RuntimeOptions([]); + + return $this->listNodeInstanceTypeWithOptions($request, $runtime); + } + + /** + * @param ListOtaTaskRequest $request + * @param RuntimeOptions $runtime + * + * @return ListOtaTaskResponse + */ + public function listOtaTaskWithOptions($request, $runtime) + { + Utils::validateModel($request); + $body = []; + if (!Utils::isUnset($request->appInstanceGroupId)) { + $body['AppInstanceGroupId'] = $request->appInstanceGroupId; + } + if (!Utils::isUnset($request->otaType)) { + $body['OtaType'] = $request->otaType; + } + if (!Utils::isUnset($request->pageNumber)) { + $body['PageNumber'] = $request->pageNumber; + } + if (!Utils::isUnset($request->pageSize)) { + $body['PageSize'] = $request->pageSize; + } + $req = new OpenApiRequest([ + 'body' => OpenApiUtilClient::parseToMap($body), + ]); + $params = new Params([ + 'action' => 'ListOtaTask', + 'version' => '2021-09-01', + 'protocol' => 'HTTPS', + 'pathname' => '/', + 'method' => 'POST', + 'authType' => 'AK', + 'style' => 'RPC', + 'reqBodyType' => 'formData', + 'bodyType' => 'json', + ]); + + return ListOtaTaskResponse::fromMap($this->callApi($params, $req, $runtime)); + } + + /** + * @param ListOtaTaskRequest $request + * + * @return ListOtaTaskResponse + */ + public function listOtaTask($request) + { + $runtime = new RuntimeOptions([]); + + return $this->listOtaTaskWithOptions($request, $runtime); + } + + /** + * @param ListProjectsRequest $request + * @param RuntimeOptions $runtime + * + * @return ListProjectsResponse + */ + public function listProjectsWithOptions($request, $runtime) + { + Utils::validateModel($request); + $query = []; + if (!Utils::isUnset($request->pageNumber)) { + $query['PageNumber'] = $request->pageNumber; + } + if (!Utils::isUnset($request->pageSize)) { + $query['PageSize'] = $request->pageSize; + } + if (!Utils::isUnset($request->projectId)) { + $query['ProjectId'] = $request->projectId; + } + if (!Utils::isUnset($request->projectName)) { + $query['ProjectName'] = $request->projectName; + } + if (!Utils::isUnset($request->sortType)) { + $query['SortType'] = $request->sortType; + } + if (!Utils::isUnset($request->stateList)) { + $query['StateList'] = $request->stateList; } $req = new OpenApiRequest([ 'query' => OpenApiUtilClient::query($query), ]); $params = new Params([ - 'action' => 'ListNodeInstanceType', + 'action' => 'ListProjects', 'version' => '2021-09-01', 'protocol' => 'HTTPS', 'pathname' => '/', @@ -1013,48 +1819,31 @@ public function listNodeInstanceTypeWithOptions($request, $runtime) 'bodyType' => 'json', ]); - return ListNodeInstanceTypeResponse::fromMap($this->callApi($params, $req, $runtime)); + return ListProjectsResponse::fromMap($this->callApi($params, $req, $runtime)); } /** - * @param ListNodeInstanceTypeRequest $request + * @param ListProjectsRequest $request * - * @return ListNodeInstanceTypeResponse + * @return ListProjectsResponse */ - public function listNodeInstanceType($request) + public function listProjects($request) { $runtime = new RuntimeOptions([]); - return $this->listNodeInstanceTypeWithOptions($request, $runtime); + return $this->listProjectsWithOptions($request, $runtime); } /** - * @param ListOtaTaskRequest $request - * @param RuntimeOptions $runtime + * @param RuntimeOptions $runtime * - * @return ListOtaTaskResponse + * @return ListRegionsResponse */ - public function listOtaTaskWithOptions($request, $runtime) + public function listRegionsWithOptions($runtime) { - Utils::validateModel($request); - $body = []; - if (!Utils::isUnset($request->appInstanceGroupId)) { - $body['AppInstanceGroupId'] = $request->appInstanceGroupId; - } - if (!Utils::isUnset($request->otaType)) { - $body['OtaType'] = $request->otaType; - } - if (!Utils::isUnset($request->pageNumber)) { - $body['PageNumber'] = $request->pageNumber; - } - if (!Utils::isUnset($request->pageSize)) { - $body['PageSize'] = $request->pageSize; - } - $req = new OpenApiRequest([ - 'body' => OpenApiUtilClient::parseToMap($body), - ]); + $req = new OpenApiRequest([]); $params = new Params([ - 'action' => 'ListOtaTask', + 'action' => 'ListRegions', 'version' => '2021-09-01', 'protocol' => 'HTTPS', 'pathname' => '/', @@ -1065,31 +1854,55 @@ public function listOtaTaskWithOptions($request, $runtime) 'bodyType' => 'json', ]); - return ListOtaTaskResponse::fromMap($this->callApi($params, $req, $runtime)); + return ListRegionsResponse::fromMap($this->callApi($params, $req, $runtime)); } /** - * @param ListOtaTaskRequest $request - * - * @return ListOtaTaskResponse + * @return ListRegionsResponse */ - public function listOtaTask($request) + public function listRegions() { $runtime = new RuntimeOptions([]); - return $this->listOtaTaskWithOptions($request, $runtime); + return $this->listRegionsWithOptions($runtime); } /** - * @param RuntimeOptions $runtime + * @param ListSessionPackagesRequest $request + * @param RuntimeOptions $runtime * - * @return ListRegionsResponse + * @return ListSessionPackagesResponse */ - public function listRegionsWithOptions($runtime) + public function listSessionPackagesWithOptions($request, $runtime) { - $req = new OpenApiRequest([]); + Utils::validateModel($request); + $query = []; + if (!Utils::isUnset($request->pageNumber)) { + $query['PageNumber'] = $request->pageNumber; + } + if (!Utils::isUnset($request->pageSize)) { + $query['PageSize'] = $request->pageSize; + } + if (!Utils::isUnset($request->projectId)) { + $query['ProjectId'] = $request->projectId; + } + if (!Utils::isUnset($request->sessionPackageId)) { + $query['SessionPackageId'] = $request->sessionPackageId; + } + if (!Utils::isUnset($request->sessionPackageName)) { + $query['SessionPackageName'] = $request->sessionPackageName; + } + if (!Utils::isUnset($request->sortType)) { + $query['SortType'] = $request->sortType; + } + if (!Utils::isUnset($request->stateList)) { + $query['StateList'] = $request->stateList; + } + $req = new OpenApiRequest([ + 'query' => OpenApiUtilClient::query($query), + ]); $params = new Params([ - 'action' => 'ListRegions', + 'action' => 'ListSessionPackages', 'version' => '2021-09-01', 'protocol' => 'HTTPS', 'pathname' => '/', @@ -1100,17 +1913,19 @@ public function listRegionsWithOptions($runtime) 'bodyType' => 'json', ]); - return ListRegionsResponse::fromMap($this->callApi($params, $req, $runtime)); + return ListSessionPackagesResponse::fromMap($this->callApi($params, $req, $runtime)); } /** - * @return ListRegionsResponse + * @param ListSessionPackagesRequest $request + * + * @return ListSessionPackagesResponse */ - public function listRegions() + public function listSessionPackages($request) { $runtime = new RuntimeOptions([]); - return $this->listRegionsWithOptions($runtime); + return $this->listSessionPackagesWithOptions($request, $runtime); } /** @@ -1192,6 +2007,55 @@ public function logOffAllSessionsInAppInstanceGroup($request) return $this->logOffAllSessionsInAppInstanceGroupWithOptions($request, $runtime); } + /** + * @param MigrateSessionPackageRequest $request + * @param RuntimeOptions $runtime + * + * @return MigrateSessionPackageResponse + */ + public function migrateSessionPackageWithOptions($request, $runtime) + { + Utils::validateModel($request); + $body = []; + if (!Utils::isUnset($request->destProjectId)) { + $body['DestProjectId'] = $request->destProjectId; + } + if (!Utils::isUnset($request->sessionPackageId)) { + $body['SessionPackageId'] = $request->sessionPackageId; + } + if (!Utils::isUnset($request->sourceProjectId)) { + $body['SourceProjectId'] = $request->sourceProjectId; + } + $req = new OpenApiRequest([ + 'body' => OpenApiUtilClient::parseToMap($body), + ]); + $params = new Params([ + 'action' => 'MigrateSessionPackage', + 'version' => '2021-09-01', + 'protocol' => 'HTTPS', + 'pathname' => '/', + 'method' => 'POST', + 'authType' => 'AK', + 'style' => 'RPC', + 'reqBodyType' => 'formData', + 'bodyType' => 'json', + ]); + + return MigrateSessionPackageResponse::fromMap($this->callApi($params, $req, $runtime)); + } + + /** + * @param MigrateSessionPackageRequest $request + * + * @return MigrateSessionPackageResponse + */ + public function migrateSessionPackage($request) + { + $runtime = new RuntimeOptions([]); + + return $this->migrateSessionPackageWithOptions($request, $runtime); + } + /** * @param ModifyAppInstanceGroupAttributeRequest $tmpReq * @param RuntimeOptions $runtime @@ -1338,6 +2202,73 @@ public function modifyNodePoolAttribute($request) return $this->modifyNodePoolAttributeWithOptions($request, $runtime); } + /** + * @param ModifyProjectPolicyRequest $request + * @param RuntimeOptions $runtime + * + * @return ModifyProjectPolicyResponse + */ + public function modifyProjectPolicyWithOptions($request, $runtime) + { + Utils::validateModel($request); + $query = []; + if (!Utils::isUnset($request->clipboard)) { + $query['Clipboard'] = $request->clipboard; + } + if (!Utils::isUnset($request->fileTransfer)) { + $query['FileTransfer'] = $request->fileTransfer; + } + if (!Utils::isUnset($request->frameRate)) { + $query['FrameRate'] = $request->frameRate; + } + if (!Utils::isUnset($request->keepAliveDuration)) { + $query['KeepAliveDuration'] = $request->keepAliveDuration; + } + if (!Utils::isUnset($request->projectId)) { + $query['ProjectId'] = $request->projectId; + } + if (!Utils::isUnset($request->sessionResolutionHeight)) { + $query['SessionResolutionHeight'] = $request->sessionResolutionHeight; + } + if (!Utils::isUnset($request->sessionResolutionWidth)) { + $query['SessionResolutionWidth'] = $request->sessionResolutionWidth; + } + if (!Utils::isUnset($request->streamingMode)) { + $query['StreamingMode'] = $request->streamingMode; + } + if (!Utils::isUnset($request->terminalResolutionAdaptation)) { + $query['TerminalResolutionAdaptation'] = $request->terminalResolutionAdaptation; + } + $req = new OpenApiRequest([ + 'query' => OpenApiUtilClient::query($query), + ]); + $params = new Params([ + 'action' => 'ModifyProjectPolicy', + 'version' => '2021-09-01', + 'protocol' => 'HTTPS', + 'pathname' => '/', + 'method' => 'POST', + 'authType' => 'AK', + 'style' => 'RPC', + 'reqBodyType' => 'formData', + 'bodyType' => 'json', + ]); + + return ModifyProjectPolicyResponse::fromMap($this->callApi($params, $req, $runtime)); + } + + /** + * @param ModifyProjectPolicyRequest $request + * + * @return ModifyProjectPolicyResponse + */ + public function modifyProjectPolicy($request) + { + $runtime = new RuntimeOptions([]); + + return $this->modifyProjectPolicyWithOptions($request, $runtime); + } + /** * @param ModifyTenantConfigRequest $request * @param RuntimeOptions $runtime @@ -1433,6 +2364,49 @@ public function pageListAppInstanceGroupUser($request) return $this->pageListAppInstanceGroupUserWithOptions($request, $runtime); } + /** + * @param RefreshAccessUrlRequest $request + * @param RuntimeOptions $runtime + * + * @return RefreshAccessUrlResponse + */ + public function refreshAccessUrlWithOptions($request, $runtime) + { + Utils::validateModel($request); + $query = []; + if (!Utils::isUnset($request->accessPageId)) { + $query['AccessPageId'] = $request->accessPageId; + } + $req = new OpenApiRequest([ + 'query' => OpenApiUtilClient::query($query), + ]); + $params = new Params([ + 'action' => 'RefreshAccessUrl', + 'version' => '2021-09-01', + 'protocol' => 'HTTPS', + 'pathname' => '/', + 'method' => 'POST', + 'authType' => 'AK', + 'style' => 'RPC', + 'reqBodyType' => 'formData', + 'bodyType' => 'json', + ]); + + return RefreshAccessUrlResponse::fromMap($this->callApi($params, $req, $runtime)); + } + + /** + * @param RefreshAccessUrlRequest $request + * + * @return RefreshAccessUrlResponse + */ + public function refreshAccessUrl($request) + { + $runtime = new RuntimeOptions([]); + + return $this->refreshAccessUrlWithOptions($request, $runtime); + } + /** * @param RenewAppInstanceGroupRequest $request * @param RuntimeOptions $runtime @@ -1491,6 +2465,55 @@ public function renewAppInstanceGroup($request) return $this->renewAppInstanceGroupWithOptions($request, $runtime); } + /** + * @param RenewSessionPackageRequest $request + * @param RuntimeOptions $runtime + * + * @return RenewSessionPackageResponse + */ + public function renewSessionPackageWithOptions($request, $runtime) + { + Utils::validateModel($request); + $query = []; + if (!Utils::isUnset($request->period)) { + $query['Period'] = $request->period; + } + if (!Utils::isUnset($request->periodUnit)) { + $query['PeriodUnit'] = $request->periodUnit; + } + if (!Utils::isUnset($request->sessionPackageId)) { + $query['SessionPackageId'] = $request->sessionPackageId; + } + $req = new OpenApiRequest([ + 'query' => OpenApiUtilClient::query($query), + ]); + $params = new Params([ + 'action' => 'RenewSessionPackage', + 'version' => '2021-09-01', + 'protocol' => 'HTTPS', + 'pathname' => '/', + 'method' => 'POST', + 'authType' => 'AK', + 'style' => 'RPC', + 'reqBodyType' => 'formData', + 'bodyType' => 'json', + ]); + + return RenewSessionPackageResponse::fromMap($this->callApi($params, $req, $runtime)); + } + + /** + * @param RenewSessionPackageRequest $request + * + * @return RenewSessionPackageResponse + */ + public function renewSessionPackage($request) + { + $runtime = new RuntimeOptions([]); + + return $this->renewSessionPackageWithOptions($request, $runtime); + } + /** * @param UnbindRequest $request * @param RuntimeOptions $runtime @@ -1507,6 +2530,9 @@ public function unbindWithOptions($request, $runtime) if (!Utils::isUnset($request->appInstanceId)) { $body['AppInstanceId'] = $request->appInstanceId; } + if (!Utils::isUnset($request->appInstancePersistentId)) { + $body['AppInstancePersistentId'] = $request->appInstancePersistentId; + } if (!Utils::isUnset($request->endUserId)) { $body['EndUserId'] = $request->endUserId; } @@ -1543,6 +2569,52 @@ public function unbind($request) return $this->unbindWithOptions($request, $runtime); } + /** + * @param UpdateAccessPageStateRequest $request + * @param RuntimeOptions $runtime + * + * @return UpdateAccessPageStateResponse + */ + public function updateAccessPageStateWithOptions($request, $runtime) + { + Utils::validateModel($request); + $query = []; + if (!Utils::isUnset($request->accessPageId)) { + $query['AccessPageId'] = $request->accessPageId; + } + if (!Utils::isUnset($request->accessPageState)) { + $query['AccessPageState'] = $request->accessPageState; + } + $req = new OpenApiRequest([ + 'query' => OpenApiUtilClient::query($query), + ]); + $params = new Params([ + 'action' => 'UpdateAccessPageState', + 'version' => '2021-09-01', + 'protocol' => 'HTTPS', + 'pathname' => '/', + 'method' => 'POST', + 'authType' => 'AK', + 'style' => 'RPC', + 'reqBodyType' => 'formData', + 'bodyType' => 'json', + ]); + + return UpdateAccessPageStateResponse::fromMap($this->callApi($params, $req, $runtime)); + } + + /** + * @param UpdateAccessPageStateRequest $request + * + * @return UpdateAccessPageStateResponse + */ + public function updateAccessPageState($request) + { + $runtime = new RuntimeOptions([]); + + return $this->updateAccessPageStateWithOptions($request, $runtime); + } + /** * @param UpdateAppInstanceGroupImageRequest $request * @param RuntimeOptions $runtime diff --git a/src/Models/AccessPageGetAclRequest.php b/src/Models/AccessPageGetAclRequest.php new file mode 100644 index 0000000..233984c --- /dev/null +++ b/src/Models/AccessPageGetAclRequest.php @@ -0,0 +1,49 @@ + 'AccessPageId', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->accessPageId) { + $res['AccessPageId'] = $this->accessPageId; + } + + return $res; + } + + /** + * @param array $map + * + * @return AccessPageGetAclRequest + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['AccessPageId'])) { + $model->accessPageId = $map['AccessPageId']; + } + + return $model; + } +} diff --git a/src/Models/AccessPageGetAclResponse.php b/src/Models/AccessPageGetAclResponse.php new file mode 100644 index 0000000..db895c2 --- /dev/null +++ b/src/Models/AccessPageGetAclResponse.php @@ -0,0 +1,74 @@ + 'headers', + 'statusCode' => 'statusCode', + 'body' => 'body', + ]; + + public function validate() + { + Model::validateRequired('headers', $this->headers, true); + Model::validateRequired('statusCode', $this->statusCode, true); + Model::validateRequired('body', $this->body, true); + } + + public function toMap() + { + $res = []; + if (null !== $this->headers) { + $res['headers'] = $this->headers; + } + if (null !== $this->statusCode) { + $res['statusCode'] = $this->statusCode; + } + if (null !== $this->body) { + $res['body'] = null !== $this->body ? $this->body->toMap() : null; + } + + return $res; + } + + /** + * @param array $map + * + * @return AccessPageGetAclResponse + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['headers'])) { + $model->headers = $map['headers']; + } + if (isset($map['statusCode'])) { + $model->statusCode = $map['statusCode']; + } + if (isset($map['body'])) { + $model->body = AccessPageGetAclResponseBody::fromMap($map['body']); + } + + return $model; + } +} diff --git a/src/Models/AccessPageGetAclResponseBody.php b/src/Models/AccessPageGetAclResponseBody.php new file mode 100644 index 0000000..cdf76a9 --- /dev/null +++ b/src/Models/AccessPageGetAclResponseBody.php @@ -0,0 +1,118 @@ + 'Code', + 'data' => 'Data', + 'message' => 'Message', + 'requestId' => 'RequestId', + 'success' => 'Success', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->code) { + $res['Code'] = $this->code; + } + if (null !== $this->data) { + $res['Data'] = []; + if (null !== $this->data && \is_array($this->data)) { + $n = 0; + foreach ($this->data as $item) { + $res['Data'][$n++] = null !== $item ? $item->toMap() : $item; + } + } + } + if (null !== $this->message) { + $res['Message'] = $this->message; + } + if (null !== $this->requestId) { + $res['RequestId'] = $this->requestId; + } + if (null !== $this->success) { + $res['Success'] = $this->success; + } + + return $res; + } + + /** + * @param array $map + * + * @return AccessPageGetAclResponseBody + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['Code'])) { + $model->code = $map['Code']; + } + if (isset($map['Data'])) { + if (!empty($map['Data'])) { + $model->data = []; + $n = 0; + foreach ($map['Data'] as $item) { + $model->data[$n++] = null !== $item ? data::fromMap($item) : $item; + } + } + } + if (isset($map['Message'])) { + $model->message = $map['Message']; + } + if (isset($map['RequestId'])) { + $model->requestId = $map['RequestId']; + } + if (isset($map['Success'])) { + $model->success = $map['Success']; + } + + return $model; + } +} diff --git a/src/Models/AccessPageGetAclResponseBody/data.php b/src/Models/AccessPageGetAclResponseBody/data.php new file mode 100644 index 0000000..917487b --- /dev/null +++ b/src/Models/AccessPageGetAclResponseBody/data.php @@ -0,0 +1,105 @@ + 'AccessMode', + 'accessUrl' => 'AccessUrl', + 'effectTime' => 'EffectTime', + 'unit' => 'Unit', + 'urlExpireTime' => 'UrlExpireTime', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->accessMode) { + $res['AccessMode'] = $this->accessMode; + } + if (null !== $this->accessUrl) { + $res['AccessUrl'] = $this->accessUrl; + } + if (null !== $this->effectTime) { + $res['EffectTime'] = $this->effectTime; + } + if (null !== $this->unit) { + $res['Unit'] = $this->unit; + } + if (null !== $this->urlExpireTime) { + $res['UrlExpireTime'] = $this->urlExpireTime; + } + + return $res; + } + + /** + * @param array $map + * + * @return data + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['AccessMode'])) { + $model->accessMode = $map['AccessMode']; + } + if (isset($map['AccessUrl'])) { + $model->accessUrl = $map['AccessUrl']; + } + if (isset($map['EffectTime'])) { + $model->effectTime = $map['EffectTime']; + } + if (isset($map['Unit'])) { + $model->unit = $map['Unit']; + } + if (isset($map['UrlExpireTime'])) { + $model->urlExpireTime = $map['UrlExpireTime']; + } + + return $model; + } +} diff --git a/src/Models/AccessPageSetAclRequest.php b/src/Models/AccessPageSetAclRequest.php new file mode 100644 index 0000000..dd382ab --- /dev/null +++ b/src/Models/AccessPageSetAclRequest.php @@ -0,0 +1,105 @@ + 'AccessMode', + 'accessPageId' => 'AccessPageId', + 'accessPageName' => 'AccessPageName', + 'effectTime' => 'EffectTime', + 'unit' => 'Unit', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->accessMode) { + $res['AccessMode'] = $this->accessMode; + } + if (null !== $this->accessPageId) { + $res['AccessPageId'] = $this->accessPageId; + } + if (null !== $this->accessPageName) { + $res['AccessPageName'] = $this->accessPageName; + } + if (null !== $this->effectTime) { + $res['EffectTime'] = $this->effectTime; + } + if (null !== $this->unit) { + $res['Unit'] = $this->unit; + } + + return $res; + } + + /** + * @param array $map + * + * @return AccessPageSetAclRequest + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['AccessMode'])) { + $model->accessMode = $map['AccessMode']; + } + if (isset($map['AccessPageId'])) { + $model->accessPageId = $map['AccessPageId']; + } + if (isset($map['AccessPageName'])) { + $model->accessPageName = $map['AccessPageName']; + } + if (isset($map['EffectTime'])) { + $model->effectTime = $map['EffectTime']; + } + if (isset($map['Unit'])) { + $model->unit = $map['Unit']; + } + + return $model; + } +} diff --git a/src/Models/AccessPageSetAclResponse.php b/src/Models/AccessPageSetAclResponse.php new file mode 100644 index 0000000..092b7e1 --- /dev/null +++ b/src/Models/AccessPageSetAclResponse.php @@ -0,0 +1,74 @@ + 'headers', + 'statusCode' => 'statusCode', + 'body' => 'body', + ]; + + public function validate() + { + Model::validateRequired('headers', $this->headers, true); + Model::validateRequired('statusCode', $this->statusCode, true); + Model::validateRequired('body', $this->body, true); + } + + public function toMap() + { + $res = []; + if (null !== $this->headers) { + $res['headers'] = $this->headers; + } + if (null !== $this->statusCode) { + $res['statusCode'] = $this->statusCode; + } + if (null !== $this->body) { + $res['body'] = null !== $this->body ? $this->body->toMap() : null; + } + + return $res; + } + + /** + * @param array $map + * + * @return AccessPageSetAclResponse + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['headers'])) { + $model->headers = $map['headers']; + } + if (isset($map['statusCode'])) { + $model->statusCode = $map['statusCode']; + } + if (isset($map['body'])) { + $model->body = AccessPageSetAclResponseBody::fromMap($map['body']); + } + + return $model; + } +} diff --git a/src/Models/AccessPageSetAclResponseBody.php b/src/Models/AccessPageSetAclResponseBody.php new file mode 100644 index 0000000..9f4ac07 --- /dev/null +++ b/src/Models/AccessPageSetAclResponseBody.php @@ -0,0 +1,91 @@ + 'Code', + 'message' => 'Message', + 'requestId' => 'RequestId', + 'success' => 'Success', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->code) { + $res['Code'] = $this->code; + } + if (null !== $this->message) { + $res['Message'] = $this->message; + } + if (null !== $this->requestId) { + $res['RequestId'] = $this->requestId; + } + if (null !== $this->success) { + $res['Success'] = $this->success; + } + + return $res; + } + + /** + * @param array $map + * + * @return AccessPageSetAclResponseBody + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['Code'])) { + $model->code = $map['Code']; + } + if (isset($map['Message'])) { + $model->message = $map['Message']; + } + if (isset($map['RequestId'])) { + $model->requestId = $map['RequestId']; + } + if (isset($map['Success'])) { + $model->success = $map['Success']; + } + + return $model; + } +} diff --git a/src/Models/AskSessionPackagePriceRequest.php b/src/Models/AskSessionPackagePriceRequest.php new file mode 100644 index 0000000..e28b5c1 --- /dev/null +++ b/src/Models/AskSessionPackagePriceRequest.php @@ -0,0 +1,139 @@ + 'ChargeType', + 'maxSessions' => 'MaxSessions', + 'period' => 'Period', + 'periodUnit' => 'PeriodUnit', + 'region' => 'Region', + 'sessionPackageType' => 'SessionPackageType', + 'sessionSpec' => 'SessionSpec', + 'sessionType' => 'SessionType', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->chargeType) { + $res['ChargeType'] = $this->chargeType; + } + if (null !== $this->maxSessions) { + $res['MaxSessions'] = $this->maxSessions; + } + if (null !== $this->period) { + $res['Period'] = $this->period; + } + if (null !== $this->periodUnit) { + $res['PeriodUnit'] = $this->periodUnit; + } + if (null !== $this->region) { + $res['Region'] = $this->region; + } + if (null !== $this->sessionPackageType) { + $res['SessionPackageType'] = $this->sessionPackageType; + } + if (null !== $this->sessionSpec) { + $res['SessionSpec'] = $this->sessionSpec; + } + if (null !== $this->sessionType) { + $res['SessionType'] = $this->sessionType; + } + + return $res; + } + + /** + * @param array $map + * + * @return AskSessionPackagePriceRequest + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['ChargeType'])) { + $model->chargeType = $map['ChargeType']; + } + if (isset($map['MaxSessions'])) { + $model->maxSessions = $map['MaxSessions']; + } + if (isset($map['Period'])) { + $model->period = $map['Period']; + } + if (isset($map['PeriodUnit'])) { + $model->periodUnit = $map['PeriodUnit']; + } + if (isset($map['Region'])) { + $model->region = $map['Region']; + } + if (isset($map['SessionPackageType'])) { + $model->sessionPackageType = $map['SessionPackageType']; + } + if (isset($map['SessionSpec'])) { + $model->sessionSpec = $map['SessionSpec']; + } + if (isset($map['SessionType'])) { + $model->sessionType = $map['SessionType']; + } + + return $model; + } +} diff --git a/src/Models/AskSessionPackagePriceResponse.php b/src/Models/AskSessionPackagePriceResponse.php new file mode 100644 index 0000000..b1f39b5 --- /dev/null +++ b/src/Models/AskSessionPackagePriceResponse.php @@ -0,0 +1,74 @@ + 'headers', + 'statusCode' => 'statusCode', + 'body' => 'body', + ]; + + public function validate() + { + Model::validateRequired('headers', $this->headers, true); + Model::validateRequired('statusCode', $this->statusCode, true); + Model::validateRequired('body', $this->body, true); + } + + public function toMap() + { + $res = []; + if (null !== $this->headers) { + $res['headers'] = $this->headers; + } + if (null !== $this->statusCode) { + $res['statusCode'] = $this->statusCode; + } + if (null !== $this->body) { + $res['body'] = null !== $this->body ? $this->body->toMap() : null; + } + + return $res; + } + + /** + * @param array $map + * + * @return AskSessionPackagePriceResponse + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['headers'])) { + $model->headers = $map['headers']; + } + if (isset($map['statusCode'])) { + $model->statusCode = $map['statusCode']; + } + if (isset($map['body'])) { + $model->body = AskSessionPackagePriceResponseBody::fromMap($map['body']); + } + + return $model; + } +} diff --git a/src/Models/AskSessionPackagePriceResponseBody.php b/src/Models/AskSessionPackagePriceResponseBody.php new file mode 100644 index 0000000..1422bc2 --- /dev/null +++ b/src/Models/AskSessionPackagePriceResponseBody.php @@ -0,0 +1,74 @@ + 'Data', + 'requestId' => 'RequestId', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->data) { + $res['Data'] = []; + if (null !== $this->data && \is_array($this->data)) { + $n = 0; + foreach ($this->data as $item) { + $res['Data'][$n++] = null !== $item ? $item->toMap() : $item; + } + } + } + if (null !== $this->requestId) { + $res['RequestId'] = $this->requestId; + } + + return $res; + } + + /** + * @param array $map + * + * @return AskSessionPackagePriceResponseBody + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['Data'])) { + if (!empty($map['Data'])) { + $model->data = []; + $n = 0; + foreach ($map['Data'] as $item) { + $model->data[$n++] = null !== $item ? data::fromMap($item) : $item; + } + } + } + if (isset($map['RequestId'])) { + $model->requestId = $map['RequestId']; + } + + return $model; + } +} diff --git a/src/Models/AskSessionPackagePriceResponseBody/data.php b/src/Models/AskSessionPackagePriceResponseBody/data.php new file mode 100644 index 0000000..70ec7c5 --- /dev/null +++ b/src/Models/AskSessionPackagePriceResponseBody/data.php @@ -0,0 +1,48 @@ + 'Price', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->price) { + $res['Price'] = null !== $this->price ? $this->price->toMap() : null; + } + + return $res; + } + + /** + * @param array $map + * + * @return data + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['Price'])) { + $model->price = price::fromMap($map['Price']); + } + + return $model; + } +} diff --git a/src/Models/AskSessionPackagePriceResponseBody/data/price.php b/src/Models/AskSessionPackagePriceResponseBody/data/price.php new file mode 100644 index 0000000..7dd33f5 --- /dev/null +++ b/src/Models/AskSessionPackagePriceResponseBody/data/price.php @@ -0,0 +1,91 @@ + 'Currency', + 'discountPrice' => 'DiscountPrice', + 'originalPrice' => 'OriginalPrice', + 'tradePrice' => 'TradePrice', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->currency) { + $res['Currency'] = $this->currency; + } + if (null !== $this->discountPrice) { + $res['DiscountPrice'] = $this->discountPrice; + } + if (null !== $this->originalPrice) { + $res['OriginalPrice'] = $this->originalPrice; + } + if (null !== $this->tradePrice) { + $res['TradePrice'] = $this->tradePrice; + } + + return $res; + } + + /** + * @param array $map + * + * @return price + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['Currency'])) { + $model->currency = $map['Currency']; + } + if (isset($map['DiscountPrice'])) { + $model->discountPrice = $map['DiscountPrice']; + } + if (isset($map['OriginalPrice'])) { + $model->originalPrice = $map['OriginalPrice']; + } + if (isset($map['TradePrice'])) { + $model->tradePrice = $map['TradePrice']; + } + + return $model; + } +} diff --git a/src/Models/AskSessionPackageRenewPriceRequest.php b/src/Models/AskSessionPackageRenewPriceRequest.php new file mode 100644 index 0000000..eaed82d --- /dev/null +++ b/src/Models/AskSessionPackageRenewPriceRequest.php @@ -0,0 +1,77 @@ + 'Period', + 'periodUnit' => 'PeriodUnit', + 'sessionPackageId' => 'SessionPackageId', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->period) { + $res['Period'] = $this->period; + } + if (null !== $this->periodUnit) { + $res['PeriodUnit'] = $this->periodUnit; + } + if (null !== $this->sessionPackageId) { + $res['SessionPackageId'] = $this->sessionPackageId; + } + + return $res; + } + + /** + * @param array $map + * + * @return AskSessionPackageRenewPriceRequest + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['Period'])) { + $model->period = $map['Period']; + } + if (isset($map['PeriodUnit'])) { + $model->periodUnit = $map['PeriodUnit']; + } + if (isset($map['SessionPackageId'])) { + $model->sessionPackageId = $map['SessionPackageId']; + } + + return $model; + } +} diff --git a/src/Models/AskSessionPackageRenewPriceResponse.php b/src/Models/AskSessionPackageRenewPriceResponse.php new file mode 100644 index 0000000..c7e145b --- /dev/null +++ b/src/Models/AskSessionPackageRenewPriceResponse.php @@ -0,0 +1,74 @@ + 'headers', + 'statusCode' => 'statusCode', + 'body' => 'body', + ]; + + public function validate() + { + Model::validateRequired('headers', $this->headers, true); + Model::validateRequired('statusCode', $this->statusCode, true); + Model::validateRequired('body', $this->body, true); + } + + public function toMap() + { + $res = []; + if (null !== $this->headers) { + $res['headers'] = $this->headers; + } + if (null !== $this->statusCode) { + $res['statusCode'] = $this->statusCode; + } + if (null !== $this->body) { + $res['body'] = null !== $this->body ? $this->body->toMap() : null; + } + + return $res; + } + + /** + * @param array $map + * + * @return AskSessionPackageRenewPriceResponse + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['headers'])) { + $model->headers = $map['headers']; + } + if (isset($map['statusCode'])) { + $model->statusCode = $map['statusCode']; + } + if (isset($map['body'])) { + $model->body = AskSessionPackageRenewPriceResponseBody::fromMap($map['body']); + } + + return $model; + } +} diff --git a/src/Models/AskSessionPackageRenewPriceResponseBody.php b/src/Models/AskSessionPackageRenewPriceResponseBody.php new file mode 100644 index 0000000..af64b0d --- /dev/null +++ b/src/Models/AskSessionPackageRenewPriceResponseBody.php @@ -0,0 +1,74 @@ + 'Data', + 'requestId' => 'RequestId', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->data) { + $res['Data'] = []; + if (null !== $this->data && \is_array($this->data)) { + $n = 0; + foreach ($this->data as $item) { + $res['Data'][$n++] = null !== $item ? $item->toMap() : $item; + } + } + } + if (null !== $this->requestId) { + $res['RequestId'] = $this->requestId; + } + + return $res; + } + + /** + * @param array $map + * + * @return AskSessionPackageRenewPriceResponseBody + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['Data'])) { + if (!empty($map['Data'])) { + $model->data = []; + $n = 0; + foreach ($map['Data'] as $item) { + $model->data[$n++] = null !== $item ? data::fromMap($item) : $item; + } + } + } + if (isset($map['RequestId'])) { + $model->requestId = $map['RequestId']; + } + + return $model; + } +} diff --git a/src/Models/AskSessionPackageRenewPriceResponseBody/data.php b/src/Models/AskSessionPackageRenewPriceResponseBody/data.php new file mode 100644 index 0000000..fcb721c --- /dev/null +++ b/src/Models/AskSessionPackageRenewPriceResponseBody/data.php @@ -0,0 +1,48 @@ + 'Price', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->price) { + $res['Price'] = null !== $this->price ? $this->price->toMap() : null; + } + + return $res; + } + + /** + * @param array $map + * + * @return data + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['Price'])) { + $model->price = price::fromMap($map['Price']); + } + + return $model; + } +} diff --git a/src/Models/AskSessionPackageRenewPriceResponseBody/data/price.php b/src/Models/AskSessionPackageRenewPriceResponseBody/data/price.php new file mode 100644 index 0000000..f32028e --- /dev/null +++ b/src/Models/AskSessionPackageRenewPriceResponseBody/data/price.php @@ -0,0 +1,91 @@ + 'Currency', + 'discountPrice' => 'DiscountPrice', + 'originalPrice' => 'OriginalPrice', + 'tradePrice' => 'TradePrice', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->currency) { + $res['Currency'] = $this->currency; + } + if (null !== $this->discountPrice) { + $res['DiscountPrice'] = $this->discountPrice; + } + if (null !== $this->originalPrice) { + $res['OriginalPrice'] = $this->originalPrice; + } + if (null !== $this->tradePrice) { + $res['TradePrice'] = $this->tradePrice; + } + + return $res; + } + + /** + * @param array $map + * + * @return price + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['Currency'])) { + $model->currency = $map['Currency']; + } + if (isset($map['DiscountPrice'])) { + $model->discountPrice = $map['DiscountPrice']; + } + if (isset($map['OriginalPrice'])) { + $model->originalPrice = $map['OriginalPrice']; + } + if (isset($map['TradePrice'])) { + $model->tradePrice = $map['TradePrice']; + } + + return $model; + } +} diff --git a/src/Models/BuySessionPackageRequest.php b/src/Models/BuySessionPackageRequest.php new file mode 100644 index 0000000..8b80a93 --- /dev/null +++ b/src/Models/BuySessionPackageRequest.php @@ -0,0 +1,165 @@ + 'ChargeType', + 'maxSessions' => 'MaxSessions', + 'period' => 'Period', + 'periodUnit' => 'PeriodUnit', + 'projectId' => 'ProjectId', + 'region' => 'Region', + 'sessionPackageName' => 'SessionPackageName', + 'sessionPackageType' => 'SessionPackageType', + 'sessionSpec' => 'SessionSpec', + 'sessionType' => 'SessionType', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->chargeType) { + $res['ChargeType'] = $this->chargeType; + } + if (null !== $this->maxSessions) { + $res['MaxSessions'] = $this->maxSessions; + } + if (null !== $this->period) { + $res['Period'] = $this->period; + } + if (null !== $this->periodUnit) { + $res['PeriodUnit'] = $this->periodUnit; + } + if (null !== $this->projectId) { + $res['ProjectId'] = $this->projectId; + } + if (null !== $this->region) { + $res['Region'] = $this->region; + } + if (null !== $this->sessionPackageName) { + $res['SessionPackageName'] = $this->sessionPackageName; + } + if (null !== $this->sessionPackageType) { + $res['SessionPackageType'] = $this->sessionPackageType; + } + if (null !== $this->sessionSpec) { + $res['SessionSpec'] = $this->sessionSpec; + } + if (null !== $this->sessionType) { + $res['SessionType'] = $this->sessionType; + } + + return $res; + } + + /** + * @param array $map + * + * @return BuySessionPackageRequest + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['ChargeType'])) { + $model->chargeType = $map['ChargeType']; + } + if (isset($map['MaxSessions'])) { + $model->maxSessions = $map['MaxSessions']; + } + if (isset($map['Period'])) { + $model->period = $map['Period']; + } + if (isset($map['PeriodUnit'])) { + $model->periodUnit = $map['PeriodUnit']; + } + if (isset($map['ProjectId'])) { + $model->projectId = $map['ProjectId']; + } + if (isset($map['Region'])) { + $model->region = $map['Region']; + } + if (isset($map['SessionPackageName'])) { + $model->sessionPackageName = $map['SessionPackageName']; + } + if (isset($map['SessionPackageType'])) { + $model->sessionPackageType = $map['SessionPackageType']; + } + if (isset($map['SessionSpec'])) { + $model->sessionSpec = $map['SessionSpec']; + } + if (isset($map['SessionType'])) { + $model->sessionType = $map['SessionType']; + } + + return $model; + } +} diff --git a/src/Models/BuySessionPackageResponse.php b/src/Models/BuySessionPackageResponse.php new file mode 100644 index 0000000..72953c5 --- /dev/null +++ b/src/Models/BuySessionPackageResponse.php @@ -0,0 +1,74 @@ + 'headers', + 'statusCode' => 'statusCode', + 'body' => 'body', + ]; + + public function validate() + { + Model::validateRequired('headers', $this->headers, true); + Model::validateRequired('statusCode', $this->statusCode, true); + Model::validateRequired('body', $this->body, true); + } + + public function toMap() + { + $res = []; + if (null !== $this->headers) { + $res['headers'] = $this->headers; + } + if (null !== $this->statusCode) { + $res['statusCode'] = $this->statusCode; + } + if (null !== $this->body) { + $res['body'] = null !== $this->body ? $this->body->toMap() : null; + } + + return $res; + } + + /** + * @param array $map + * + * @return BuySessionPackageResponse + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['headers'])) { + $model->headers = $map['headers']; + } + if (isset($map['statusCode'])) { + $model->statusCode = $map['statusCode']; + } + if (isset($map['body'])) { + $model->body = BuySessionPackageResponseBody::fromMap($map['body']); + } + + return $model; + } +} diff --git a/src/Models/BuySessionPackageResponseBody.php b/src/Models/BuySessionPackageResponseBody.php new file mode 100644 index 0000000..5d41c0b --- /dev/null +++ b/src/Models/BuySessionPackageResponseBody.php @@ -0,0 +1,105 @@ + 'Code', + 'message' => 'Message', + 'requestId' => 'RequestId', + 'sessionPackageId' => 'SessionPackageId', + 'success' => 'Success', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->code) { + $res['Code'] = $this->code; + } + if (null !== $this->message) { + $res['Message'] = $this->message; + } + if (null !== $this->requestId) { + $res['RequestId'] = $this->requestId; + } + if (null !== $this->sessionPackageId) { + $res['SessionPackageId'] = $this->sessionPackageId; + } + if (null !== $this->success) { + $res['Success'] = $this->success; + } + + return $res; + } + + /** + * @param array $map + * + * @return BuySessionPackageResponseBody + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['Code'])) { + $model->code = $map['Code']; + } + if (isset($map['Message'])) { + $model->message = $map['Message']; + } + if (isset($map['RequestId'])) { + $model->requestId = $map['RequestId']; + } + if (isset($map['SessionPackageId'])) { + $model->sessionPackageId = $map['SessionPackageId']; + } + if (isset($map['Success'])) { + $model->success = $map['Success']; + } + + return $model; + } +} diff --git a/src/Models/CreateAccessPageRequest.php b/src/Models/CreateAccessPageRequest.php new file mode 100644 index 0000000..b28a11e --- /dev/null +++ b/src/Models/CreateAccessPageRequest.php @@ -0,0 +1,115 @@ + 'AccessPageName', + 'cloudEnvId' => 'CloudEnvId', + 'effectTime' => 'EffectTime', + 'projectId' => 'ProjectId', + 'projectName' => 'ProjectName', + 'unit' => 'Unit', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->accessPageName) { + $res['AccessPageName'] = $this->accessPageName; + } + if (null !== $this->cloudEnvId) { + $res['CloudEnvId'] = $this->cloudEnvId; + } + if (null !== $this->effectTime) { + $res['EffectTime'] = $this->effectTime; + } + if (null !== $this->projectId) { + $res['ProjectId'] = $this->projectId; + } + if (null !== $this->projectName) { + $res['ProjectName'] = $this->projectName; + } + if (null !== $this->unit) { + $res['Unit'] = $this->unit; + } + + return $res; + } + + /** + * @param array $map + * + * @return CreateAccessPageRequest + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['AccessPageName'])) { + $model->accessPageName = $map['AccessPageName']; + } + if (isset($map['CloudEnvId'])) { + $model->cloudEnvId = $map['CloudEnvId']; + } + if (isset($map['EffectTime'])) { + $model->effectTime = $map['EffectTime']; + } + if (isset($map['ProjectId'])) { + $model->projectId = $map['ProjectId']; + } + if (isset($map['ProjectName'])) { + $model->projectName = $map['ProjectName']; + } + if (isset($map['Unit'])) { + $model->unit = $map['Unit']; + } + + return $model; + } +} diff --git a/src/Models/CreateAccessPageResponse.php b/src/Models/CreateAccessPageResponse.php new file mode 100644 index 0000000..9aafa32 --- /dev/null +++ b/src/Models/CreateAccessPageResponse.php @@ -0,0 +1,74 @@ + 'headers', + 'statusCode' => 'statusCode', + 'body' => 'body', + ]; + + public function validate() + { + Model::validateRequired('headers', $this->headers, true); + Model::validateRequired('statusCode', $this->statusCode, true); + Model::validateRequired('body', $this->body, true); + } + + public function toMap() + { + $res = []; + if (null !== $this->headers) { + $res['headers'] = $this->headers; + } + if (null !== $this->statusCode) { + $res['statusCode'] = $this->statusCode; + } + if (null !== $this->body) { + $res['body'] = null !== $this->body ? $this->body->toMap() : null; + } + + return $res; + } + + /** + * @param array $map + * + * @return CreateAccessPageResponse + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['headers'])) { + $model->headers = $map['headers']; + } + if (isset($map['statusCode'])) { + $model->statusCode = $map['statusCode']; + } + if (isset($map['body'])) { + $model->body = CreateAccessPageResponseBody::fromMap($map['body']); + } + + return $model; + } +} diff --git a/src/Models/CreateAccessPageResponseBody.php b/src/Models/CreateAccessPageResponseBody.php new file mode 100644 index 0000000..61b530f --- /dev/null +++ b/src/Models/CreateAccessPageResponseBody.php @@ -0,0 +1,103 @@ + 'Code', + 'data' => 'Data', + 'message' => 'Message', + 'requestId' => 'RequestId', + 'success' => 'Success', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->code) { + $res['Code'] = $this->code; + } + if (null !== $this->data) { + $res['Data'] = $this->data; + } + if (null !== $this->message) { + $res['Message'] = $this->message; + } + if (null !== $this->requestId) { + $res['RequestId'] = $this->requestId; + } + if (null !== $this->success) { + $res['Success'] = $this->success; + } + + return $res; + } + + /** + * @param array $map + * + * @return CreateAccessPageResponseBody + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['Code'])) { + $model->code = $map['Code']; + } + if (isset($map['Data'])) { + $model->data = $map['Data']; + } + if (isset($map['Message'])) { + $model->message = $map['Message']; + } + if (isset($map['RequestId'])) { + $model->requestId = $map['RequestId']; + } + if (isset($map['Success'])) { + $model->success = $map['Success']; + } + + return $model; + } +} diff --git a/src/Models/CreateProjectRequest.php b/src/Models/CreateProjectRequest.php new file mode 100644 index 0000000..d1dc421 --- /dev/null +++ b/src/Models/CreateProjectRequest.php @@ -0,0 +1,215 @@ + 'Clipboard', + 'cloudEnvId' => 'CloudEnvId', + 'contentId' => 'ContentId', + 'description' => 'Description', + 'fileTransfer' => 'FileTransfer', + 'frameRate' => 'FrameRate', + 'keepAliveDuration' => 'KeepAliveDuration', + 'projectName' => 'ProjectName', + 'sessionResolutionHeight' => 'SessionResolutionHeight', + 'sessionResolutionWidth' => 'SessionResolutionWidth', + 'sessionSpec' => 'SessionSpec', + 'streamingMode' => 'StreamingMode', + 'terminalResolutionAdaptation' => 'TerminalResolutionAdaptation', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->clipboard) { + $res['Clipboard'] = $this->clipboard; + } + if (null !== $this->cloudEnvId) { + $res['CloudEnvId'] = $this->cloudEnvId; + } + if (null !== $this->contentId) { + $res['ContentId'] = $this->contentId; + } + if (null !== $this->description) { + $res['Description'] = $this->description; + } + if (null !== $this->fileTransfer) { + $res['FileTransfer'] = $this->fileTransfer; + } + if (null !== $this->frameRate) { + $res['FrameRate'] = $this->frameRate; + } + if (null !== $this->keepAliveDuration) { + $res['KeepAliveDuration'] = $this->keepAliveDuration; + } + if (null !== $this->projectName) { + $res['ProjectName'] = $this->projectName; + } + if (null !== $this->sessionResolutionHeight) { + $res['SessionResolutionHeight'] = $this->sessionResolutionHeight; + } + if (null !== $this->sessionResolutionWidth) { + $res['SessionResolutionWidth'] = $this->sessionResolutionWidth; + } + if (null !== $this->sessionSpec) { + $res['SessionSpec'] = $this->sessionSpec; + } + if (null !== $this->streamingMode) { + $res['StreamingMode'] = $this->streamingMode; + } + if (null !== $this->terminalResolutionAdaptation) { + $res['TerminalResolutionAdaptation'] = $this->terminalResolutionAdaptation; + } + + return $res; + } + + /** + * @param array $map + * + * @return CreateProjectRequest + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['Clipboard'])) { + $model->clipboard = $map['Clipboard']; + } + if (isset($map['CloudEnvId'])) { + $model->cloudEnvId = $map['CloudEnvId']; + } + if (isset($map['ContentId'])) { + $model->contentId = $map['ContentId']; + } + if (isset($map['Description'])) { + $model->description = $map['Description']; + } + if (isset($map['FileTransfer'])) { + $model->fileTransfer = $map['FileTransfer']; + } + if (isset($map['FrameRate'])) { + $model->frameRate = $map['FrameRate']; + } + if (isset($map['KeepAliveDuration'])) { + $model->keepAliveDuration = $map['KeepAliveDuration']; + } + if (isset($map['ProjectName'])) { + $model->projectName = $map['ProjectName']; + } + if (isset($map['SessionResolutionHeight'])) { + $model->sessionResolutionHeight = $map['SessionResolutionHeight']; + } + if (isset($map['SessionResolutionWidth'])) { + $model->sessionResolutionWidth = $map['SessionResolutionWidth']; + } + if (isset($map['SessionSpec'])) { + $model->sessionSpec = $map['SessionSpec']; + } + if (isset($map['StreamingMode'])) { + $model->streamingMode = $map['StreamingMode']; + } + if (isset($map['TerminalResolutionAdaptation'])) { + $model->terminalResolutionAdaptation = $map['TerminalResolutionAdaptation']; + } + + return $model; + } +} diff --git a/src/Models/CreateProjectResponse.php b/src/Models/CreateProjectResponse.php new file mode 100644 index 0000000..f28b0d6 --- /dev/null +++ b/src/Models/CreateProjectResponse.php @@ -0,0 +1,74 @@ + 'headers', + 'statusCode' => 'statusCode', + 'body' => 'body', + ]; + + public function validate() + { + Model::validateRequired('headers', $this->headers, true); + Model::validateRequired('statusCode', $this->statusCode, true); + Model::validateRequired('body', $this->body, true); + } + + public function toMap() + { + $res = []; + if (null !== $this->headers) { + $res['headers'] = $this->headers; + } + if (null !== $this->statusCode) { + $res['statusCode'] = $this->statusCode; + } + if (null !== $this->body) { + $res['body'] = null !== $this->body ? $this->body->toMap() : null; + } + + return $res; + } + + /** + * @param array $map + * + * @return CreateProjectResponse + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['headers'])) { + $model->headers = $map['headers']; + } + if (isset($map['statusCode'])) { + $model->statusCode = $map['statusCode']; + } + if (isset($map['body'])) { + $model->body = CreateProjectResponseBody::fromMap($map['body']); + } + + return $model; + } +} diff --git a/src/Models/CreateProjectResponseBody.php b/src/Models/CreateProjectResponseBody.php new file mode 100644 index 0000000..b1ca476 --- /dev/null +++ b/src/Models/CreateProjectResponseBody.php @@ -0,0 +1,133 @@ + 'Code', + 'data' => 'Data', + 'message' => 'Message', + 'pageNumber' => 'PageNumber', + 'pageSize' => 'PageSize', + 'requestId' => 'RequestId', + 'success' => 'Success', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->code) { + $res['Code'] = $this->code; + } + if (null !== $this->data) { + $res['Data'] = $this->data; + } + if (null !== $this->message) { + $res['Message'] = $this->message; + } + if (null !== $this->pageNumber) { + $res['PageNumber'] = $this->pageNumber; + } + if (null !== $this->pageSize) { + $res['PageSize'] = $this->pageSize; + } + if (null !== $this->requestId) { + $res['RequestId'] = $this->requestId; + } + if (null !== $this->success) { + $res['Success'] = $this->success; + } + + return $res; + } + + /** + * @param array $map + * + * @return CreateProjectResponseBody + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['Code'])) { + $model->code = $map['Code']; + } + if (isset($map['Data'])) { + $model->data = $map['Data']; + } + if (isset($map['Message'])) { + $model->message = $map['Message']; + } + if (isset($map['PageNumber'])) { + $model->pageNumber = $map['PageNumber']; + } + if (isset($map['PageSize'])) { + $model->pageSize = $map['PageSize']; + } + if (isset($map['RequestId'])) { + $model->requestId = $map['RequestId']; + } + if (isset($map['Success'])) { + $model->success = $map['Success']; + } + + return $model; + } +} diff --git a/src/Models/DeleteAccessPageRequest.php b/src/Models/DeleteAccessPageRequest.php new file mode 100644 index 0000000..e1e8f75 --- /dev/null +++ b/src/Models/DeleteAccessPageRequest.php @@ -0,0 +1,49 @@ + 'AccessPageId', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->accessPageId) { + $res['AccessPageId'] = $this->accessPageId; + } + + return $res; + } + + /** + * @param array $map + * + * @return DeleteAccessPageRequest + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['AccessPageId'])) { + $model->accessPageId = $map['AccessPageId']; + } + + return $model; + } +} diff --git a/src/Models/DeleteAccessPageResponse.php b/src/Models/DeleteAccessPageResponse.php new file mode 100644 index 0000000..580ee27 --- /dev/null +++ b/src/Models/DeleteAccessPageResponse.php @@ -0,0 +1,74 @@ + 'headers', + 'statusCode' => 'statusCode', + 'body' => 'body', + ]; + + public function validate() + { + Model::validateRequired('headers', $this->headers, true); + Model::validateRequired('statusCode', $this->statusCode, true); + Model::validateRequired('body', $this->body, true); + } + + public function toMap() + { + $res = []; + if (null !== $this->headers) { + $res['headers'] = $this->headers; + } + if (null !== $this->statusCode) { + $res['statusCode'] = $this->statusCode; + } + if (null !== $this->body) { + $res['body'] = null !== $this->body ? $this->body->toMap() : null; + } + + return $res; + } + + /** + * @param array $map + * + * @return DeleteAccessPageResponse + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['headers'])) { + $model->headers = $map['headers']; + } + if (isset($map['statusCode'])) { + $model->statusCode = $map['statusCode']; + } + if (isset($map['body'])) { + $model->body = DeleteAccessPageResponseBody::fromMap($map['body']); + } + + return $model; + } +} diff --git a/src/Models/DeleteAccessPageResponseBody.php b/src/Models/DeleteAccessPageResponseBody.php new file mode 100644 index 0000000..c063677 --- /dev/null +++ b/src/Models/DeleteAccessPageResponseBody.php @@ -0,0 +1,91 @@ + 'Code', + 'message' => 'Message', + 'requestId' => 'RequestId', + 'success' => 'Success', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->code) { + $res['Code'] = $this->code; + } + if (null !== $this->message) { + $res['Message'] = $this->message; + } + if (null !== $this->requestId) { + $res['RequestId'] = $this->requestId; + } + if (null !== $this->success) { + $res['Success'] = $this->success; + } + + return $res; + } + + /** + * @param array $map + * + * @return DeleteAccessPageResponseBody + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['Code'])) { + $model->code = $map['Code']; + } + if (isset($map['Message'])) { + $model->message = $map['Message']; + } + if (isset($map['RequestId'])) { + $model->requestId = $map['RequestId']; + } + if (isset($map['Success'])) { + $model->success = $map['Success']; + } + + return $model; + } +} diff --git a/src/Models/DeleteProjectRequest.php b/src/Models/DeleteProjectRequest.php new file mode 100644 index 0000000..2e2fcb2 --- /dev/null +++ b/src/Models/DeleteProjectRequest.php @@ -0,0 +1,49 @@ + 'ProjectId', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->projectId) { + $res['ProjectId'] = $this->projectId; + } + + return $res; + } + + /** + * @param array $map + * + * @return DeleteProjectRequest + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['ProjectId'])) { + $model->projectId = $map['ProjectId']; + } + + return $model; + } +} diff --git a/src/Models/DeleteProjectResponse.php b/src/Models/DeleteProjectResponse.php new file mode 100644 index 0000000..32eb5ed --- /dev/null +++ b/src/Models/DeleteProjectResponse.php @@ -0,0 +1,74 @@ + 'headers', + 'statusCode' => 'statusCode', + 'body' => 'body', + ]; + + public function validate() + { + Model::validateRequired('headers', $this->headers, true); + Model::validateRequired('statusCode', $this->statusCode, true); + Model::validateRequired('body', $this->body, true); + } + + public function toMap() + { + $res = []; + if (null !== $this->headers) { + $res['headers'] = $this->headers; + } + if (null !== $this->statusCode) { + $res['statusCode'] = $this->statusCode; + } + if (null !== $this->body) { + $res['body'] = null !== $this->body ? $this->body->toMap() : null; + } + + return $res; + } + + /** + * @param array $map + * + * @return DeleteProjectResponse + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['headers'])) { + $model->headers = $map['headers']; + } + if (isset($map['statusCode'])) { + $model->statusCode = $map['statusCode']; + } + if (isset($map['body'])) { + $model->body = DeleteProjectResponseBody::fromMap($map['body']); + } + + return $model; + } +} diff --git a/src/Models/DeleteProjectResponseBody.php b/src/Models/DeleteProjectResponseBody.php new file mode 100644 index 0000000..5961737 --- /dev/null +++ b/src/Models/DeleteProjectResponseBody.php @@ -0,0 +1,105 @@ + 'Code', + 'data' => 'Data', + 'message' => 'Message', + 'requestId' => 'RequestId', + 'success' => 'Success', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->code) { + $res['Code'] = $this->code; + } + if (null !== $this->data) { + $res['Data'] = $this->data; + } + if (null !== $this->message) { + $res['Message'] = $this->message; + } + if (null !== $this->requestId) { + $res['RequestId'] = $this->requestId; + } + if (null !== $this->success) { + $res['Success'] = $this->success; + } + + return $res; + } + + /** + * @param array $map + * + * @return DeleteProjectResponseBody + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['Code'])) { + $model->code = $map['Code']; + } + if (isset($map['Data'])) { + $model->data = $map['Data']; + } + if (isset($map['Message'])) { + $model->message = $map['Message']; + } + if (isset($map['RequestId'])) { + $model->requestId = $map['RequestId']; + } + if (isset($map['Success'])) { + $model->success = $map['Success']; + } + + return $model; + } +} diff --git a/src/Models/GetAccessPageSessionRequest.php b/src/Models/GetAccessPageSessionRequest.php new file mode 100644 index 0000000..920be65 --- /dev/null +++ b/src/Models/GetAccessPageSessionRequest.php @@ -0,0 +1,77 @@ + 'AccessPageId', + 'accessPageToken' => 'AccessPageToken', + 'externalUserId' => 'ExternalUserId', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->accessPageId) { + $res['AccessPageId'] = $this->accessPageId; + } + if (null !== $this->accessPageToken) { + $res['AccessPageToken'] = $this->accessPageToken; + } + if (null !== $this->externalUserId) { + $res['ExternalUserId'] = $this->externalUserId; + } + + return $res; + } + + /** + * @param array $map + * + * @return GetAccessPageSessionRequest + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['AccessPageId'])) { + $model->accessPageId = $map['AccessPageId']; + } + if (isset($map['AccessPageToken'])) { + $model->accessPageToken = $map['AccessPageToken']; + } + if (isset($map['ExternalUserId'])) { + $model->externalUserId = $map['ExternalUserId']; + } + + return $model; + } +} diff --git a/src/Models/GetAccessPageSessionResponse.php b/src/Models/GetAccessPageSessionResponse.php new file mode 100644 index 0000000..071e642 --- /dev/null +++ b/src/Models/GetAccessPageSessionResponse.php @@ -0,0 +1,74 @@ + 'headers', + 'statusCode' => 'statusCode', + 'body' => 'body', + ]; + + public function validate() + { + Model::validateRequired('headers', $this->headers, true); + Model::validateRequired('statusCode', $this->statusCode, true); + Model::validateRequired('body', $this->body, true); + } + + public function toMap() + { + $res = []; + if (null !== $this->headers) { + $res['headers'] = $this->headers; + } + if (null !== $this->statusCode) { + $res['statusCode'] = $this->statusCode; + } + if (null !== $this->body) { + $res['body'] = null !== $this->body ? $this->body->toMap() : null; + } + + return $res; + } + + /** + * @param array $map + * + * @return GetAccessPageSessionResponse + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['headers'])) { + $model->headers = $map['headers']; + } + if (isset($map['statusCode'])) { + $model->statusCode = $map['statusCode']; + } + if (isset($map['body'])) { + $model->body = GetAccessPageSessionResponseBody::fromMap($map['body']); + } + + return $model; + } +} diff --git a/src/Models/GetAccessPageSessionResponseBody.php b/src/Models/GetAccessPageSessionResponseBody.php new file mode 100644 index 0000000..08a87e7 --- /dev/null +++ b/src/Models/GetAccessPageSessionResponseBody.php @@ -0,0 +1,104 @@ + 'Code', + 'data' => 'Data', + 'message' => 'Message', + 'requestId' => 'RequestId', + 'success' => 'Success', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->code) { + $res['Code'] = $this->code; + } + if (null !== $this->data) { + $res['Data'] = null !== $this->data ? $this->data->toMap() : null; + } + if (null !== $this->message) { + $res['Message'] = $this->message; + } + if (null !== $this->requestId) { + $res['RequestId'] = $this->requestId; + } + if (null !== $this->success) { + $res['Success'] = $this->success; + } + + return $res; + } + + /** + * @param array $map + * + * @return GetAccessPageSessionResponseBody + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['Code'])) { + $model->code = $map['Code']; + } + if (isset($map['Data'])) { + $model->data = data::fromMap($map['Data']); + } + if (isset($map['Message'])) { + $model->message = $map['Message']; + } + if (isset($map['RequestId'])) { + $model->requestId = $map['RequestId']; + } + if (isset($map['Success'])) { + $model->success = $map['Success']; + } + + return $model; + } +} diff --git a/src/Models/GetAccessPageSessionResponseBody/data.php b/src/Models/GetAccessPageSessionResponseBody/data.php new file mode 100644 index 0000000..4da310c --- /dev/null +++ b/src/Models/GetAccessPageSessionResponseBody/data.php @@ -0,0 +1,65 @@ + 'ConnectTicket', + 'flowId' => 'FlowId', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->connectTicket) { + $res['ConnectTicket'] = $this->connectTicket; + } + if (null !== $this->flowId) { + $res['FlowId'] = $this->flowId; + } + + return $res; + } + + /** + * @param array $map + * + * @return data + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['ConnectTicket'])) { + $model->connectTicket = $map['ConnectTicket']; + } + if (isset($map['FlowId'])) { + $model->flowId = $map['FlowId']; + } + + return $model; + } +} diff --git a/src/Models/GetAppInstanceGroupResponseBody/appInstanceGroupModels/apps.php b/src/Models/GetAppInstanceGroupResponseBody/appInstanceGroupModels/apps.php index abd7d2e..a99a979 100644 --- a/src/Models/GetAppInstanceGroupResponseBody/appInstanceGroupModels/apps.php +++ b/src/Models/GetAppInstanceGroupResponseBody/appInstanceGroupModels/apps.php @@ -8,6 +8,11 @@ class apps extends Model { + /** + * @var string + */ + public $appIcon; + /** * @example ca-i87mycyn419nu**** * @@ -19,9 +24,22 @@ class apps extends Model * @var string */ public $appName; + + /** + * @var string + */ + public $appVersion; + + /** + * @var string + */ + public $appVersionName; protected $_name = [ - 'appId' => 'AppId', - 'appName' => 'AppName', + 'appIcon' => 'AppIcon', + 'appId' => 'AppId', + 'appName' => 'AppName', + 'appVersion' => 'AppVersion', + 'appVersionName' => 'AppVersionName', ]; public function validate() @@ -31,12 +49,21 @@ public function validate() public function toMap() { $res = []; + if (null !== $this->appIcon) { + $res['AppIcon'] = $this->appIcon; + } if (null !== $this->appId) { $res['AppId'] = $this->appId; } if (null !== $this->appName) { $res['AppName'] = $this->appName; } + if (null !== $this->appVersion) { + $res['AppVersion'] = $this->appVersion; + } + if (null !== $this->appVersionName) { + $res['AppVersionName'] = $this->appVersionName; + } return $res; } @@ -49,12 +76,21 @@ public function toMap() public static function fromMap($map = []) { $model = new self(); + if (isset($map['AppIcon'])) { + $model->appIcon = $map['AppIcon']; + } if (isset($map['AppId'])) { $model->appId = $map['AppId']; } if (isset($map['AppName'])) { $model->appName = $map['AppName']; } + if (isset($map['AppVersion'])) { + $model->appVersion = $map['AppVersion']; + } + if (isset($map['AppVersionName'])) { + $model->appVersionName = $map['AppVersionName']; + } return $model; } diff --git a/src/Models/GetConnectionTicketRequest.php b/src/Models/GetConnectionTicketRequest.php index 612bd5a..e84bbd8 100644 --- a/src/Models/GetConnectionTicketRequest.php +++ b/src/Models/GetConnectionTicketRequest.php @@ -27,6 +27,11 @@ class GetConnectionTicketRequest extends Model */ public $appInstanceId; + /** + * @var string + */ + public $appInstancePersistentId; + /** * @example /q /n * @@ -69,15 +74,16 @@ class GetConnectionTicketRequest extends Model */ public $taskId; protected $_name = [ - 'appId' => 'AppId', - 'appInstanceGroupIdList' => 'AppInstanceGroupIdList', - 'appInstanceId' => 'AppInstanceId', - 'appStartParam' => 'AppStartParam', - 'appVersion' => 'AppVersion', - 'bizRegionId' => 'BizRegionId', - 'endUserId' => 'EndUserId', - 'productType' => 'ProductType', - 'taskId' => 'TaskId', + 'appId' => 'AppId', + 'appInstanceGroupIdList' => 'AppInstanceGroupIdList', + 'appInstanceId' => 'AppInstanceId', + 'appInstancePersistentId' => 'AppInstancePersistentId', + 'appStartParam' => 'AppStartParam', + 'appVersion' => 'AppVersion', + 'bizRegionId' => 'BizRegionId', + 'endUserId' => 'EndUserId', + 'productType' => 'ProductType', + 'taskId' => 'TaskId', ]; public function validate() @@ -96,6 +102,9 @@ public function toMap() if (null !== $this->appInstanceId) { $res['AppInstanceId'] = $this->appInstanceId; } + if (null !== $this->appInstancePersistentId) { + $res['AppInstancePersistentId'] = $this->appInstancePersistentId; + } if (null !== $this->appStartParam) { $res['AppStartParam'] = $this->appStartParam; } @@ -137,6 +146,9 @@ public static function fromMap($map = []) if (isset($map['AppInstanceId'])) { $model->appInstanceId = $map['AppInstanceId']; } + if (isset($map['AppInstancePersistentId'])) { + $model->appInstancePersistentId = $map['AppInstancePersistentId']; + } if (isset($map['AppStartParam'])) { $model->appStartParam = $map['AppStartParam']; } diff --git a/src/Models/GetConnectionTicketResponseBody.php b/src/Models/GetConnectionTicketResponseBody.php index 444c456..5ed8b98 100644 --- a/src/Models/GetConnectionTicketResponseBody.php +++ b/src/Models/GetConnectionTicketResponseBody.php @@ -22,6 +22,11 @@ class GetConnectionTicketResponseBody extends Model */ public $appInstanceId; + /** + * @var string + */ + public $appInstancePersistentId; + /** * @example cn-hangzhou * @@ -69,15 +74,16 @@ class GetConnectionTicketResponseBody extends Model */ public $ticket; protected $_name = [ - 'appInstanceGroupId' => 'AppInstanceGroupId', - 'appInstanceId' => 'AppInstanceId', - 'bizRegionId' => 'BizRegionId', - 'osType' => 'OsType', - 'requestId' => 'RequestId', - 'taskId' => 'TaskId', - 'taskStatus' => 'TaskStatus', - 'tenantId' => 'TenantId', - 'ticket' => 'Ticket', + 'appInstanceGroupId' => 'AppInstanceGroupId', + 'appInstanceId' => 'AppInstanceId', + 'appInstancePersistentId' => 'AppInstancePersistentId', + 'bizRegionId' => 'BizRegionId', + 'osType' => 'OsType', + 'requestId' => 'RequestId', + 'taskId' => 'TaskId', + 'taskStatus' => 'TaskStatus', + 'tenantId' => 'TenantId', + 'ticket' => 'Ticket', ]; public function validate() @@ -93,6 +99,9 @@ public function toMap() if (null !== $this->appInstanceId) { $res['AppInstanceId'] = $this->appInstanceId; } + if (null !== $this->appInstancePersistentId) { + $res['AppInstancePersistentId'] = $this->appInstancePersistentId; + } if (null !== $this->bizRegionId) { $res['BizRegionId'] = $this->bizRegionId; } @@ -132,6 +141,9 @@ public static function fromMap($map = []) if (isset($map['AppInstanceId'])) { $model->appInstanceId = $map['AppInstanceId']; } + if (isset($map['AppInstancePersistentId'])) { + $model->appInstancePersistentId = $map['AppInstancePersistentId']; + } if (isset($map['BizRegionId'])) { $model->bizRegionId = $map['BizRegionId']; } diff --git a/src/Models/GetProjectPoliciesRequest.php b/src/Models/GetProjectPoliciesRequest.php new file mode 100644 index 0000000..c1d8fb2 --- /dev/null +++ b/src/Models/GetProjectPoliciesRequest.php @@ -0,0 +1,49 @@ + 'ProjectId', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->projectId) { + $res['ProjectId'] = $this->projectId; + } + + return $res; + } + + /** + * @param array $map + * + * @return GetProjectPoliciesRequest + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['ProjectId'])) { + $model->projectId = $map['ProjectId']; + } + + return $model; + } +} diff --git a/src/Models/GetProjectPoliciesResponse.php b/src/Models/GetProjectPoliciesResponse.php new file mode 100644 index 0000000..8029ed7 --- /dev/null +++ b/src/Models/GetProjectPoliciesResponse.php @@ -0,0 +1,74 @@ + 'headers', + 'statusCode' => 'statusCode', + 'body' => 'body', + ]; + + public function validate() + { + Model::validateRequired('headers', $this->headers, true); + Model::validateRequired('statusCode', $this->statusCode, true); + Model::validateRequired('body', $this->body, true); + } + + public function toMap() + { + $res = []; + if (null !== $this->headers) { + $res['headers'] = $this->headers; + } + if (null !== $this->statusCode) { + $res['statusCode'] = $this->statusCode; + } + if (null !== $this->body) { + $res['body'] = null !== $this->body ? $this->body->toMap() : null; + } + + return $res; + } + + /** + * @param array $map + * + * @return GetProjectPoliciesResponse + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['headers'])) { + $model->headers = $map['headers']; + } + if (isset($map['statusCode'])) { + $model->statusCode = $map['statusCode']; + } + if (isset($map['body'])) { + $model->body = GetProjectPoliciesResponseBody::fromMap($map['body']); + } + + return $model; + } +} diff --git a/src/Models/GetProjectPoliciesResponseBody.php b/src/Models/GetProjectPoliciesResponseBody.php new file mode 100644 index 0000000..23e5fc5 --- /dev/null +++ b/src/Models/GetProjectPoliciesResponseBody.php @@ -0,0 +1,104 @@ + 'Code', + 'data' => 'Data', + 'message' => 'Message', + 'requestId' => 'RequestId', + 'success' => 'Success', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->code) { + $res['Code'] = $this->code; + } + if (null !== $this->data) { + $res['Data'] = null !== $this->data ? $this->data->toMap() : null; + } + if (null !== $this->message) { + $res['Message'] = $this->message; + } + if (null !== $this->requestId) { + $res['RequestId'] = $this->requestId; + } + if (null !== $this->success) { + $res['Success'] = $this->success; + } + + return $res; + } + + /** + * @param array $map + * + * @return GetProjectPoliciesResponseBody + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['Code'])) { + $model->code = $map['Code']; + } + if (isset($map['Data'])) { + $model->data = data::fromMap($map['Data']); + } + if (isset($map['Message'])) { + $model->message = $map['Message']; + } + if (isset($map['RequestId'])) { + $model->requestId = $map['RequestId']; + } + if (isset($map['Success'])) { + $model->success = $map['Success']; + } + + return $model; + } +} diff --git a/src/Models/GetProjectPoliciesResponseBody/data.php b/src/Models/GetProjectPoliciesResponseBody/data.php new file mode 100644 index 0000000..fbb9b1c --- /dev/null +++ b/src/Models/GetProjectPoliciesResponseBody/data.php @@ -0,0 +1,201 @@ + 'Clipboard', + 'fileTransfer' => 'FileTransfer', + 'frameRate' => 'FrameRate', + 'keepAliveDuration' => 'KeepAliveDuration', + 'maxHours' => 'MaxHours', + 'maxSessions' => 'MaxSessions', + 'projectId' => 'ProjectId', + 'sessionResolutionHeight' => 'SessionResolutionHeight', + 'sessionResolutionWidth' => 'SessionResolutionWidth', + 'sessionSpec' => 'SessionSpec', + 'streamingMode' => 'StreamingMode', + 'terminalResolutionAdaptation' => 'TerminalResolutionAdaptation', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->clipboard) { + $res['Clipboard'] = $this->clipboard; + } + if (null !== $this->fileTransfer) { + $res['FileTransfer'] = $this->fileTransfer; + } + if (null !== $this->frameRate) { + $res['FrameRate'] = $this->frameRate; + } + if (null !== $this->keepAliveDuration) { + $res['KeepAliveDuration'] = $this->keepAliveDuration; + } + if (null !== $this->maxHours) { + $res['MaxHours'] = $this->maxHours; + } + if (null !== $this->maxSessions) { + $res['MaxSessions'] = $this->maxSessions; + } + if (null !== $this->projectId) { + $res['ProjectId'] = $this->projectId; + } + if (null !== $this->sessionResolutionHeight) { + $res['SessionResolutionHeight'] = $this->sessionResolutionHeight; + } + if (null !== $this->sessionResolutionWidth) { + $res['SessionResolutionWidth'] = $this->sessionResolutionWidth; + } + if (null !== $this->sessionSpec) { + $res['SessionSpec'] = $this->sessionSpec; + } + if (null !== $this->streamingMode) { + $res['StreamingMode'] = $this->streamingMode; + } + if (null !== $this->terminalResolutionAdaptation) { + $res['TerminalResolutionAdaptation'] = $this->terminalResolutionAdaptation; + } + + return $res; + } + + /** + * @param array $map + * + * @return data + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['Clipboard'])) { + $model->clipboard = $map['Clipboard']; + } + if (isset($map['FileTransfer'])) { + $model->fileTransfer = $map['FileTransfer']; + } + if (isset($map['FrameRate'])) { + $model->frameRate = $map['FrameRate']; + } + if (isset($map['KeepAliveDuration'])) { + $model->keepAliveDuration = $map['KeepAliveDuration']; + } + if (isset($map['MaxHours'])) { + $model->maxHours = $map['MaxHours']; + } + if (isset($map['MaxSessions'])) { + $model->maxSessions = $map['MaxSessions']; + } + if (isset($map['ProjectId'])) { + $model->projectId = $map['ProjectId']; + } + if (isset($map['SessionResolutionHeight'])) { + $model->sessionResolutionHeight = $map['SessionResolutionHeight']; + } + if (isset($map['SessionResolutionWidth'])) { + $model->sessionResolutionWidth = $map['SessionResolutionWidth']; + } + if (isset($map['SessionSpec'])) { + $model->sessionSpec = $map['SessionSpec']; + } + if (isset($map['StreamingMode'])) { + $model->streamingMode = $map['StreamingMode']; + } + if (isset($map['TerminalResolutionAdaptation'])) { + $model->terminalResolutionAdaptation = $map['TerminalResolutionAdaptation']; + } + + return $model; + } +} diff --git a/src/Models/ListAccessPagesRequest.php b/src/Models/ListAccessPagesRequest.php new file mode 100644 index 0000000..4aa7f1e --- /dev/null +++ b/src/Models/ListAccessPagesRequest.php @@ -0,0 +1,117 @@ + 'AccessPageId', + 'accessPageName' => 'AccessPageName', + 'pageNumber' => 'PageNumber', + 'pageSize' => 'PageSize', + 'projectId' => 'ProjectId', + 'sortType' => 'SortType', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->accessPageId) { + $res['AccessPageId'] = $this->accessPageId; + } + if (null !== $this->accessPageName) { + $res['AccessPageName'] = $this->accessPageName; + } + if (null !== $this->pageNumber) { + $res['PageNumber'] = $this->pageNumber; + } + if (null !== $this->pageSize) { + $res['PageSize'] = $this->pageSize; + } + if (null !== $this->projectId) { + $res['ProjectId'] = $this->projectId; + } + if (null !== $this->sortType) { + $res['SortType'] = $this->sortType; + } + + return $res; + } + + /** + * @param array $map + * + * @return ListAccessPagesRequest + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['AccessPageId'])) { + $model->accessPageId = $map['AccessPageId']; + } + if (isset($map['AccessPageName'])) { + $model->accessPageName = $map['AccessPageName']; + } + if (isset($map['PageNumber'])) { + $model->pageNumber = $map['PageNumber']; + } + if (isset($map['PageSize'])) { + $model->pageSize = $map['PageSize']; + } + if (isset($map['ProjectId'])) { + $model->projectId = $map['ProjectId']; + } + if (isset($map['SortType'])) { + $model->sortType = $map['SortType']; + } + + return $model; + } +} diff --git a/src/Models/ListAccessPagesResponse.php b/src/Models/ListAccessPagesResponse.php new file mode 100644 index 0000000..29e74cc --- /dev/null +++ b/src/Models/ListAccessPagesResponse.php @@ -0,0 +1,74 @@ + 'headers', + 'statusCode' => 'statusCode', + 'body' => 'body', + ]; + + public function validate() + { + Model::validateRequired('headers', $this->headers, true); + Model::validateRequired('statusCode', $this->statusCode, true); + Model::validateRequired('body', $this->body, true); + } + + public function toMap() + { + $res = []; + if (null !== $this->headers) { + $res['headers'] = $this->headers; + } + if (null !== $this->statusCode) { + $res['statusCode'] = $this->statusCode; + } + if (null !== $this->body) { + $res['body'] = null !== $this->body ? $this->body->toMap() : null; + } + + return $res; + } + + /** + * @param array $map + * + * @return ListAccessPagesResponse + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['headers'])) { + $model->headers = $map['headers']; + } + if (isset($map['statusCode'])) { + $model->statusCode = $map['statusCode']; + } + if (isset($map['body'])) { + $model->body = ListAccessPagesResponseBody::fromMap($map['body']); + } + + return $model; + } +} diff --git a/src/Models/ListAccessPagesResponseBody.php b/src/Models/ListAccessPagesResponseBody.php new file mode 100644 index 0000000..818f074 --- /dev/null +++ b/src/Models/ListAccessPagesResponseBody.php @@ -0,0 +1,158 @@ + 'Code', + 'count' => 'Count', + 'data' => 'Data', + 'message' => 'Message', + 'pageNumber' => 'PageNumber', + 'pageSize' => 'PageSize', + 'requestId' => 'RequestId', + 'success' => 'Success', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->code) { + $res['Code'] = $this->code; + } + if (null !== $this->count) { + $res['Count'] = $this->count; + } + if (null !== $this->data) { + $res['Data'] = []; + if (null !== $this->data && \is_array($this->data)) { + $n = 0; + foreach ($this->data as $item) { + $res['Data'][$n++] = null !== $item ? $item->toMap() : $item; + } + } + } + if (null !== $this->message) { + $res['Message'] = $this->message; + } + if (null !== $this->pageNumber) { + $res['PageNumber'] = $this->pageNumber; + } + if (null !== $this->pageSize) { + $res['PageSize'] = $this->pageSize; + } + if (null !== $this->requestId) { + $res['RequestId'] = $this->requestId; + } + if (null !== $this->success) { + $res['Success'] = $this->success; + } + + return $res; + } + + /** + * @param array $map + * + * @return ListAccessPagesResponseBody + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['Code'])) { + $model->code = $map['Code']; + } + if (isset($map['Count'])) { + $model->count = $map['Count']; + } + if (isset($map['Data'])) { + if (!empty($map['Data'])) { + $model->data = []; + $n = 0; + foreach ($map['Data'] as $item) { + $model->data[$n++] = null !== $item ? data::fromMap($item) : $item; + } + } + } + if (isset($map['Message'])) { + $model->message = $map['Message']; + } + if (isset($map['PageNumber'])) { + $model->pageNumber = $map['PageNumber']; + } + if (isset($map['PageSize'])) { + $model->pageSize = $map['PageSize']; + } + if (isset($map['RequestId'])) { + $model->requestId = $map['RequestId']; + } + if (isset($map['Success'])) { + $model->success = $map['Success']; + } + + return $model; + } +} diff --git a/src/Models/ListAccessPagesResponseBody/data.php b/src/Models/ListAccessPagesResponseBody/data.php new file mode 100644 index 0000000..f5f8112 --- /dev/null +++ b/src/Models/ListAccessPagesResponseBody/data.php @@ -0,0 +1,213 @@ + 'AccessMode', + 'accessPageId' => 'AccessPageId', + 'accessPageName' => 'AccessPageName', + 'accessPageState' => 'AccessPageState', + 'accessUrl' => 'AccessUrl', + 'contentId' => 'ContentId', + 'contentName' => 'ContentName', + 'effectTime' => 'EffectTime', + 'gmtCreate' => 'GmtCreate', + 'projectId' => 'ProjectId', + 'projectName' => 'ProjectName', + 'unit' => 'Unit', + 'urlExpireTime' => 'UrlExpireTime', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->accessMode) { + $res['AccessMode'] = $this->accessMode; + } + if (null !== $this->accessPageId) { + $res['AccessPageId'] = $this->accessPageId; + } + if (null !== $this->accessPageName) { + $res['AccessPageName'] = $this->accessPageName; + } + if (null !== $this->accessPageState) { + $res['AccessPageState'] = $this->accessPageState; + } + if (null !== $this->accessUrl) { + $res['AccessUrl'] = $this->accessUrl; + } + if (null !== $this->contentId) { + $res['ContentId'] = $this->contentId; + } + if (null !== $this->contentName) { + $res['ContentName'] = $this->contentName; + } + if (null !== $this->effectTime) { + $res['EffectTime'] = $this->effectTime; + } + if (null !== $this->gmtCreate) { + $res['GmtCreate'] = $this->gmtCreate; + } + if (null !== $this->projectId) { + $res['ProjectId'] = $this->projectId; + } + if (null !== $this->projectName) { + $res['ProjectName'] = $this->projectName; + } + if (null !== $this->unit) { + $res['Unit'] = $this->unit; + } + if (null !== $this->urlExpireTime) { + $res['UrlExpireTime'] = $this->urlExpireTime; + } + + return $res; + } + + /** + * @param array $map + * + * @return data + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['AccessMode'])) { + $model->accessMode = $map['AccessMode']; + } + if (isset($map['AccessPageId'])) { + $model->accessPageId = $map['AccessPageId']; + } + if (isset($map['AccessPageName'])) { + $model->accessPageName = $map['AccessPageName']; + } + if (isset($map['AccessPageState'])) { + $model->accessPageState = $map['AccessPageState']; + } + if (isset($map['AccessUrl'])) { + $model->accessUrl = $map['AccessUrl']; + } + if (isset($map['ContentId'])) { + $model->contentId = $map['ContentId']; + } + if (isset($map['ContentName'])) { + $model->contentName = $map['ContentName']; + } + if (isset($map['EffectTime'])) { + $model->effectTime = $map['EffectTime']; + } + if (isset($map['GmtCreate'])) { + $model->gmtCreate = $map['GmtCreate']; + } + if (isset($map['ProjectId'])) { + $model->projectId = $map['ProjectId']; + } + if (isset($map['ProjectName'])) { + $model->projectName = $map['ProjectName']; + } + if (isset($map['Unit'])) { + $model->unit = $map['Unit']; + } + if (isset($map['UrlExpireTime'])) { + $model->urlExpireTime = $map['UrlExpireTime']; + } + + return $model; + } +} diff --git a/src/Models/ListAppInstanceGroupRequest.php b/src/Models/ListAppInstanceGroupRequest.php index 23ae95d..b29dbdf 100644 --- a/src/Models/ListAppInstanceGroupRequest.php +++ b/src/Models/ListAppInstanceGroupRequest.php @@ -27,6 +27,11 @@ class ListAppInstanceGroupRequest extends Model */ public $appInstanceGroupName; + /** + * @var string + */ + public $bizRegionId; + /** * @example appstreaming.vgpu.4c8g.2g * @@ -55,13 +60,6 @@ class ListAppInstanceGroupRequest extends Model */ public $productType; - /** - * @example cn-hangzhou - * - * @var string - */ - public $regionId; - /** * @var string[] */ @@ -70,11 +68,11 @@ class ListAppInstanceGroupRequest extends Model 'appCenterImageId' => 'AppCenterImageId', 'appInstanceGroupId' => 'AppInstanceGroupId', 'appInstanceGroupName' => 'AppInstanceGroupName', + 'bizRegionId' => 'BizRegionId', 'nodeInstanceType' => 'NodeInstanceType', 'pageNumber' => 'PageNumber', 'pageSize' => 'PageSize', 'productType' => 'ProductType', - 'regionId' => 'RegionId', 'status' => 'Status', ]; @@ -94,6 +92,9 @@ public function toMap() if (null !== $this->appInstanceGroupName) { $res['AppInstanceGroupName'] = $this->appInstanceGroupName; } + if (null !== $this->bizRegionId) { + $res['BizRegionId'] = $this->bizRegionId; + } if (null !== $this->nodeInstanceType) { $res['NodeInstanceType'] = $this->nodeInstanceType; } @@ -106,9 +107,6 @@ public function toMap() if (null !== $this->productType) { $res['ProductType'] = $this->productType; } - if (null !== $this->regionId) { - $res['RegionId'] = $this->regionId; - } if (null !== $this->status) { $res['Status'] = $this->status; } @@ -133,6 +131,9 @@ public static function fromMap($map = []) if (isset($map['AppInstanceGroupName'])) { $model->appInstanceGroupName = $map['AppInstanceGroupName']; } + if (isset($map['BizRegionId'])) { + $model->bizRegionId = $map['BizRegionId']; + } if (isset($map['NodeInstanceType'])) { $model->nodeInstanceType = $map['NodeInstanceType']; } @@ -145,9 +146,6 @@ public static function fromMap($map = []) if (isset($map['ProductType'])) { $model->productType = $map['ProductType']; } - if (isset($map['RegionId'])) { - $model->regionId = $map['RegionId']; - } if (isset($map['Status'])) { if (!empty($map['Status'])) { $model->status = $map['Status']; diff --git a/src/Models/ListProjectsRequest.php b/src/Models/ListProjectsRequest.php new file mode 100644 index 0000000..c62a8b8 --- /dev/null +++ b/src/Models/ListProjectsRequest.php @@ -0,0 +1,119 @@ + 'PageNumber', + 'pageSize' => 'PageSize', + 'projectId' => 'ProjectId', + 'projectName' => 'ProjectName', + 'sortType' => 'SortType', + 'stateList' => 'StateList', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->pageNumber) { + $res['PageNumber'] = $this->pageNumber; + } + if (null !== $this->pageSize) { + $res['PageSize'] = $this->pageSize; + } + if (null !== $this->projectId) { + $res['ProjectId'] = $this->projectId; + } + if (null !== $this->projectName) { + $res['ProjectName'] = $this->projectName; + } + if (null !== $this->sortType) { + $res['SortType'] = $this->sortType; + } + if (null !== $this->stateList) { + $res['StateList'] = $this->stateList; + } + + return $res; + } + + /** + * @param array $map + * + * @return ListProjectsRequest + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['PageNumber'])) { + $model->pageNumber = $map['PageNumber']; + } + if (isset($map['PageSize'])) { + $model->pageSize = $map['PageSize']; + } + if (isset($map['ProjectId'])) { + $model->projectId = $map['ProjectId']; + } + if (isset($map['ProjectName'])) { + $model->projectName = $map['ProjectName']; + } + if (isset($map['SortType'])) { + $model->sortType = $map['SortType']; + } + if (isset($map['StateList'])) { + if (!empty($map['StateList'])) { + $model->stateList = $map['StateList']; + } + } + + return $model; + } +} diff --git a/src/Models/ListProjectsResponse.php b/src/Models/ListProjectsResponse.php new file mode 100644 index 0000000..408abc3 --- /dev/null +++ b/src/Models/ListProjectsResponse.php @@ -0,0 +1,74 @@ + 'headers', + 'statusCode' => 'statusCode', + 'body' => 'body', + ]; + + public function validate() + { + Model::validateRequired('headers', $this->headers, true); + Model::validateRequired('statusCode', $this->statusCode, true); + Model::validateRequired('body', $this->body, true); + } + + public function toMap() + { + $res = []; + if (null !== $this->headers) { + $res['headers'] = $this->headers; + } + if (null !== $this->statusCode) { + $res['statusCode'] = $this->statusCode; + } + if (null !== $this->body) { + $res['body'] = null !== $this->body ? $this->body->toMap() : null; + } + + return $res; + } + + /** + * @param array $map + * + * @return ListProjectsResponse + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['headers'])) { + $model->headers = $map['headers']; + } + if (isset($map['statusCode'])) { + $model->statusCode = $map['statusCode']; + } + if (isset($map['body'])) { + $model->body = ListProjectsResponseBody::fromMap($map['body']); + } + + return $model; + } +} diff --git a/src/Models/ListProjectsResponseBody.php b/src/Models/ListProjectsResponseBody.php new file mode 100644 index 0000000..e17300b --- /dev/null +++ b/src/Models/ListProjectsResponseBody.php @@ -0,0 +1,158 @@ + 'Code', + 'data' => 'Data', + 'message' => 'Message', + 'pageNumber' => 'PageNumber', + 'pageSize' => 'PageSize', + 'requestId' => 'RequestId', + 'success' => 'Success', + 'totalCount' => 'TotalCount', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->code) { + $res['Code'] = $this->code; + } + if (null !== $this->data) { + $res['Data'] = []; + if (null !== $this->data && \is_array($this->data)) { + $n = 0; + foreach ($this->data as $item) { + $res['Data'][$n++] = null !== $item ? $item->toMap() : $item; + } + } + } + if (null !== $this->message) { + $res['Message'] = $this->message; + } + if (null !== $this->pageNumber) { + $res['PageNumber'] = $this->pageNumber; + } + if (null !== $this->pageSize) { + $res['PageSize'] = $this->pageSize; + } + if (null !== $this->requestId) { + $res['RequestId'] = $this->requestId; + } + if (null !== $this->success) { + $res['Success'] = $this->success; + } + if (null !== $this->totalCount) { + $res['TotalCount'] = $this->totalCount; + } + + return $res; + } + + /** + * @param array $map + * + * @return ListProjectsResponseBody + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['Code'])) { + $model->code = $map['Code']; + } + if (isset($map['Data'])) { + if (!empty($map['Data'])) { + $model->data = []; + $n = 0; + foreach ($map['Data'] as $item) { + $model->data[$n++] = null !== $item ? data::fromMap($item) : $item; + } + } + } + if (isset($map['Message'])) { + $model->message = $map['Message']; + } + if (isset($map['PageNumber'])) { + $model->pageNumber = $map['PageNumber']; + } + if (isset($map['PageSize'])) { + $model->pageSize = $map['PageSize']; + } + if (isset($map['RequestId'])) { + $model->requestId = $map['RequestId']; + } + if (isset($map['Success'])) { + $model->success = $map['Success']; + } + if (isset($map['TotalCount'])) { + $model->totalCount = $map['TotalCount']; + } + + return $model; + } +} diff --git a/src/Models/ListProjectsResponseBody/data.php b/src/Models/ListProjectsResponseBody/data.php new file mode 100644 index 0000000..b85d37b --- /dev/null +++ b/src/Models/ListProjectsResponseBody/data.php @@ -0,0 +1,215 @@ + 'AccessPageId', + 'availableHours' => 'AvailableHours', + 'contentId' => 'ContentId', + 'contentName' => 'ContentName', + 'createTime' => 'CreateTime', + 'description' => 'Description', + 'inUseSessions' => 'InUseSessions', + 'maxHours' => 'MaxHours', + 'maxSessions' => 'MaxSessions', + 'projectId' => 'ProjectId', + 'projectName' => 'ProjectName', + 'projectState' => 'ProjectState', + 'sessionSpec' => 'SessionSpec', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->accessPageId) { + $res['AccessPageId'] = $this->accessPageId; + } + if (null !== $this->availableHours) { + $res['AvailableHours'] = $this->availableHours; + } + if (null !== $this->contentId) { + $res['ContentId'] = $this->contentId; + } + if (null !== $this->contentName) { + $res['ContentName'] = $this->contentName; + } + if (null !== $this->createTime) { + $res['CreateTime'] = $this->createTime; + } + if (null !== $this->description) { + $res['Description'] = $this->description; + } + if (null !== $this->inUseSessions) { + $res['InUseSessions'] = $this->inUseSessions; + } + if (null !== $this->maxHours) { + $res['MaxHours'] = $this->maxHours; + } + if (null !== $this->maxSessions) { + $res['MaxSessions'] = $this->maxSessions; + } + if (null !== $this->projectId) { + $res['ProjectId'] = $this->projectId; + } + if (null !== $this->projectName) { + $res['ProjectName'] = $this->projectName; + } + if (null !== $this->projectState) { + $res['ProjectState'] = $this->projectState; + } + if (null !== $this->sessionSpec) { + $res['SessionSpec'] = $this->sessionSpec; + } + + return $res; + } + + /** + * @param array $map + * + * @return data + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['AccessPageId'])) { + if (!empty($map['AccessPageId'])) { + $model->accessPageId = $map['AccessPageId']; + } + } + if (isset($map['AvailableHours'])) { + $model->availableHours = $map['AvailableHours']; + } + if (isset($map['ContentId'])) { + $model->contentId = $map['ContentId']; + } + if (isset($map['ContentName'])) { + $model->contentName = $map['ContentName']; + } + if (isset($map['CreateTime'])) { + $model->createTime = $map['CreateTime']; + } + if (isset($map['Description'])) { + $model->description = $map['Description']; + } + if (isset($map['InUseSessions'])) { + $model->inUseSessions = $map['InUseSessions']; + } + if (isset($map['MaxHours'])) { + $model->maxHours = $map['MaxHours']; + } + if (isset($map['MaxSessions'])) { + $model->maxSessions = $map['MaxSessions']; + } + if (isset($map['ProjectId'])) { + $model->projectId = $map['ProjectId']; + } + if (isset($map['ProjectName'])) { + $model->projectName = $map['ProjectName']; + } + if (isset($map['ProjectState'])) { + $model->projectState = $map['ProjectState']; + } + if (isset($map['SessionSpec'])) { + $model->sessionSpec = $map['SessionSpec']; + } + + return $model; + } +} diff --git a/src/Models/ListSessionPackagesRequest.php b/src/Models/ListSessionPackagesRequest.php new file mode 100644 index 0000000..761e24c --- /dev/null +++ b/src/Models/ListSessionPackagesRequest.php @@ -0,0 +1,131 @@ + 'PageNumber', + 'pageSize' => 'PageSize', + 'projectId' => 'ProjectId', + 'sessionPackageId' => 'SessionPackageId', + 'sessionPackageName' => 'SessionPackageName', + 'sortType' => 'SortType', + 'stateList' => 'StateList', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->pageNumber) { + $res['PageNumber'] = $this->pageNumber; + } + if (null !== $this->pageSize) { + $res['PageSize'] = $this->pageSize; + } + if (null !== $this->projectId) { + $res['ProjectId'] = $this->projectId; + } + if (null !== $this->sessionPackageId) { + $res['SessionPackageId'] = $this->sessionPackageId; + } + if (null !== $this->sessionPackageName) { + $res['SessionPackageName'] = $this->sessionPackageName; + } + if (null !== $this->sortType) { + $res['SortType'] = $this->sortType; + } + if (null !== $this->stateList) { + $res['StateList'] = $this->stateList; + } + + return $res; + } + + /** + * @param array $map + * + * @return ListSessionPackagesRequest + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['PageNumber'])) { + $model->pageNumber = $map['PageNumber']; + } + if (isset($map['PageSize'])) { + $model->pageSize = $map['PageSize']; + } + if (isset($map['ProjectId'])) { + $model->projectId = $map['ProjectId']; + } + if (isset($map['SessionPackageId'])) { + $model->sessionPackageId = $map['SessionPackageId']; + } + if (isset($map['SessionPackageName'])) { + $model->sessionPackageName = $map['SessionPackageName']; + } + if (isset($map['SortType'])) { + $model->sortType = $map['SortType']; + } + if (isset($map['StateList'])) { + if (!empty($map['StateList'])) { + $model->stateList = $map['StateList']; + } + } + + return $model; + } +} diff --git a/src/Models/ListSessionPackagesResponse.php b/src/Models/ListSessionPackagesResponse.php new file mode 100644 index 0000000..d7189f9 --- /dev/null +++ b/src/Models/ListSessionPackagesResponse.php @@ -0,0 +1,74 @@ + 'headers', + 'statusCode' => 'statusCode', + 'body' => 'body', + ]; + + public function validate() + { + Model::validateRequired('headers', $this->headers, true); + Model::validateRequired('statusCode', $this->statusCode, true); + Model::validateRequired('body', $this->body, true); + } + + public function toMap() + { + $res = []; + if (null !== $this->headers) { + $res['headers'] = $this->headers; + } + if (null !== $this->statusCode) { + $res['statusCode'] = $this->statusCode; + } + if (null !== $this->body) { + $res['body'] = null !== $this->body ? $this->body->toMap() : null; + } + + return $res; + } + + /** + * @param array $map + * + * @return ListSessionPackagesResponse + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['headers'])) { + $model->headers = $map['headers']; + } + if (isset($map['statusCode'])) { + $model->statusCode = $map['statusCode']; + } + if (isset($map['body'])) { + $model->body = ListSessionPackagesResponseBody::fromMap($map['body']); + } + + return $model; + } +} diff --git a/src/Models/ListSessionPackagesResponseBody.php b/src/Models/ListSessionPackagesResponseBody.php new file mode 100644 index 0000000..2bf4070 --- /dev/null +++ b/src/Models/ListSessionPackagesResponseBody.php @@ -0,0 +1,116 @@ + 'Data', + 'pageNumber' => 'PageNumber', + 'pageSize' => 'PageSize', + 'requestId' => 'RequestId', + 'totalCount' => 'TotalCount', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->data) { + $res['Data'] = []; + if (null !== $this->data && \is_array($this->data)) { + $n = 0; + foreach ($this->data as $item) { + $res['Data'][$n++] = null !== $item ? $item->toMap() : $item; + } + } + } + if (null !== $this->pageNumber) { + $res['PageNumber'] = $this->pageNumber; + } + if (null !== $this->pageSize) { + $res['PageSize'] = $this->pageSize; + } + if (null !== $this->requestId) { + $res['RequestId'] = $this->requestId; + } + if (null !== $this->totalCount) { + $res['TotalCount'] = $this->totalCount; + } + + return $res; + } + + /** + * @param array $map + * + * @return ListSessionPackagesResponseBody + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['Data'])) { + if (!empty($map['Data'])) { + $model->data = []; + $n = 0; + foreach ($map['Data'] as $item) { + $model->data[$n++] = null !== $item ? data::fromMap($item) : $item; + } + } + } + if (isset($map['PageNumber'])) { + $model->pageNumber = $map['PageNumber']; + } + if (isset($map['PageSize'])) { + $model->pageSize = $map['PageSize']; + } + if (isset($map['RequestId'])) { + $model->requestId = $map['RequestId']; + } + if (isset($map['TotalCount'])) { + $model->totalCount = $map['TotalCount']; + } + + return $model; + } +} diff --git a/src/Models/ListSessionPackagesResponseBody/data.php b/src/Models/ListSessionPackagesResponseBody/data.php new file mode 100644 index 0000000..7f5cd30 --- /dev/null +++ b/src/Models/ListSessionPackagesResponseBody/data.php @@ -0,0 +1,280 @@ + 'AvailableHours', + 'chargeType' => 'ChargeType', + 'deleteStatus' => 'DeleteStatus', + 'gmtCreate' => 'GmtCreate', + 'gmtModifiedTime' => 'GmtModifiedTime', + 'instanceObject' => 'InstanceObject', + 'maxHours' => 'MaxHours', + 'maxSessions' => 'MaxSessions', + 'projectId' => 'ProjectId', + 'projectName' => 'ProjectName', + 'region' => 'Region', + 'sessionPackageId' => 'SessionPackageId', + 'sessionPackageName' => 'SessionPackageName', + 'sessionPackageTypeId' => 'SessionPackageTypeId', + 'sessionSpec' => 'SessionSpec', + 'sessionUsageRate' => 'SessionUsageRate', + 'state' => 'State', + 'userIdentification' => 'UserIdentification', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->availableHours) { + $res['AvailableHours'] = $this->availableHours; + } + if (null !== $this->chargeType) { + $res['ChargeType'] = $this->chargeType; + } + if (null !== $this->deleteStatus) { + $res['DeleteStatus'] = $this->deleteStatus; + } + if (null !== $this->gmtCreate) { + $res['GmtCreate'] = $this->gmtCreate; + } + if (null !== $this->gmtModifiedTime) { + $res['GmtModifiedTime'] = $this->gmtModifiedTime; + } + if (null !== $this->instanceObject) { + $res['InstanceObject'] = null !== $this->instanceObject ? $this->instanceObject->toMap() : null; + } + if (null !== $this->maxHours) { + $res['MaxHours'] = $this->maxHours; + } + if (null !== $this->maxSessions) { + $res['MaxSessions'] = $this->maxSessions; + } + if (null !== $this->projectId) { + $res['ProjectId'] = $this->projectId; + } + if (null !== $this->projectName) { + $res['ProjectName'] = $this->projectName; + } + if (null !== $this->region) { + $res['Region'] = $this->region; + } + if (null !== $this->sessionPackageId) { + $res['SessionPackageId'] = $this->sessionPackageId; + } + if (null !== $this->sessionPackageName) { + $res['SessionPackageName'] = $this->sessionPackageName; + } + if (null !== $this->sessionPackageTypeId) { + $res['SessionPackageTypeId'] = $this->sessionPackageTypeId; + } + if (null !== $this->sessionSpec) { + $res['SessionSpec'] = $this->sessionSpec; + } + if (null !== $this->sessionUsageRate) { + $res['SessionUsageRate'] = $this->sessionUsageRate; + } + if (null !== $this->state) { + $res['State'] = $this->state; + } + if (null !== $this->userIdentification) { + $res['UserIdentification'] = $this->userIdentification; + } + + return $res; + } + + /** + * @param array $map + * + * @return data + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['AvailableHours'])) { + $model->availableHours = $map['AvailableHours']; + } + if (isset($map['ChargeType'])) { + $model->chargeType = $map['ChargeType']; + } + if (isset($map['DeleteStatus'])) { + $model->deleteStatus = $map['DeleteStatus']; + } + if (isset($map['GmtCreate'])) { + $model->gmtCreate = $map['GmtCreate']; + } + if (isset($map['GmtModifiedTime'])) { + $model->gmtModifiedTime = $map['GmtModifiedTime']; + } + if (isset($map['InstanceObject'])) { + $model->instanceObject = instanceObject::fromMap($map['InstanceObject']); + } + if (isset($map['MaxHours'])) { + $model->maxHours = $map['MaxHours']; + } + if (isset($map['MaxSessions'])) { + $model->maxSessions = $map['MaxSessions']; + } + if (isset($map['ProjectId'])) { + $model->projectId = $map['ProjectId']; + } + if (isset($map['ProjectName'])) { + $model->projectName = $map['ProjectName']; + } + if (isset($map['Region'])) { + $model->region = $map['Region']; + } + if (isset($map['SessionPackageId'])) { + $model->sessionPackageId = $map['SessionPackageId']; + } + if (isset($map['SessionPackageName'])) { + $model->sessionPackageName = $map['SessionPackageName']; + } + if (isset($map['SessionPackageTypeId'])) { + $model->sessionPackageTypeId = $map['SessionPackageTypeId']; + } + if (isset($map['SessionSpec'])) { + $model->sessionSpec = $map['SessionSpec']; + } + if (isset($map['SessionUsageRate'])) { + $model->sessionUsageRate = $map['SessionUsageRate']; + } + if (isset($map['State'])) { + $model->state = $map['State']; + } + if (isset($map['UserIdentification'])) { + $model->userIdentification = $map['UserIdentification']; + } + + return $model; + } +} diff --git a/src/Models/ListSessionPackagesResponseBody/data/instanceObject.php b/src/Models/ListSessionPackagesResponseBody/data/instanceObject.php new file mode 100644 index 0000000..8d8d4fc --- /dev/null +++ b/src/Models/ListSessionPackagesResponseBody/data/instanceObject.php @@ -0,0 +1,147 @@ + 'ExpiredTime', + 'instanceId' => 'InstanceId', + 'instanceType' => 'InstanceType', + 'resourceId' => 'ResourceId', + 'resourceType' => 'ResourceType', + 'startTime' => 'StartTime', + 'totalTime' => 'TotalTime', + 'usedTime' => 'UsedTime', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->expiredTime) { + $res['ExpiredTime'] = $this->expiredTime; + } + if (null !== $this->instanceId) { + $res['InstanceId'] = $this->instanceId; + } + if (null !== $this->instanceType) { + $res['InstanceType'] = $this->instanceType; + } + if (null !== $this->resourceId) { + $res['ResourceId'] = $this->resourceId; + } + if (null !== $this->resourceType) { + $res['ResourceType'] = $this->resourceType; + } + if (null !== $this->startTime) { + $res['StartTime'] = $this->startTime; + } + if (null !== $this->totalTime) { + $res['TotalTime'] = $this->totalTime; + } + if (null !== $this->usedTime) { + $res['UsedTime'] = $this->usedTime; + } + + return $res; + } + + /** + * @param array $map + * + * @return instanceObject + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['ExpiredTime'])) { + $model->expiredTime = $map['ExpiredTime']; + } + if (isset($map['InstanceId'])) { + $model->instanceId = $map['InstanceId']; + } + if (isset($map['InstanceType'])) { + $model->instanceType = $map['InstanceType']; + } + if (isset($map['ResourceId'])) { + $model->resourceId = $map['ResourceId']; + } + if (isset($map['ResourceType'])) { + $model->resourceType = $map['ResourceType']; + } + if (isset($map['StartTime'])) { + $model->startTime = $map['StartTime']; + } + if (isset($map['TotalTime'])) { + $model->totalTime = $map['TotalTime']; + } + if (isset($map['UsedTime'])) { + $model->usedTime = $map['UsedTime']; + } + + return $model; + } +} diff --git a/src/Models/MigrateSessionPackageRequest.php b/src/Models/MigrateSessionPackageRequest.php new file mode 100644 index 0000000..ef076f1 --- /dev/null +++ b/src/Models/MigrateSessionPackageRequest.php @@ -0,0 +1,77 @@ + 'DestProjectId', + 'sessionPackageId' => 'SessionPackageId', + 'sourceProjectId' => 'SourceProjectId', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->destProjectId) { + $res['DestProjectId'] = $this->destProjectId; + } + if (null !== $this->sessionPackageId) { + $res['SessionPackageId'] = $this->sessionPackageId; + } + if (null !== $this->sourceProjectId) { + $res['SourceProjectId'] = $this->sourceProjectId; + } + + return $res; + } + + /** + * @param array $map + * + * @return MigrateSessionPackageRequest + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['DestProjectId'])) { + $model->destProjectId = $map['DestProjectId']; + } + if (isset($map['SessionPackageId'])) { + $model->sessionPackageId = $map['SessionPackageId']; + } + if (isset($map['SourceProjectId'])) { + $model->sourceProjectId = $map['SourceProjectId']; + } + + return $model; + } +} diff --git a/src/Models/MigrateSessionPackageResponse.php b/src/Models/MigrateSessionPackageResponse.php new file mode 100644 index 0000000..8ad95f6 --- /dev/null +++ b/src/Models/MigrateSessionPackageResponse.php @@ -0,0 +1,74 @@ + 'headers', + 'statusCode' => 'statusCode', + 'body' => 'body', + ]; + + public function validate() + { + Model::validateRequired('headers', $this->headers, true); + Model::validateRequired('statusCode', $this->statusCode, true); + Model::validateRequired('body', $this->body, true); + } + + public function toMap() + { + $res = []; + if (null !== $this->headers) { + $res['headers'] = $this->headers; + } + if (null !== $this->statusCode) { + $res['statusCode'] = $this->statusCode; + } + if (null !== $this->body) { + $res['body'] = null !== $this->body ? $this->body->toMap() : null; + } + + return $res; + } + + /** + * @param array $map + * + * @return MigrateSessionPackageResponse + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['headers'])) { + $model->headers = $map['headers']; + } + if (isset($map['statusCode'])) { + $model->statusCode = $map['statusCode']; + } + if (isset($map['body'])) { + $model->body = MigrateSessionPackageResponseBody::fromMap($map['body']); + } + + return $model; + } +} diff --git a/src/Models/MigrateSessionPackageResponseBody.php b/src/Models/MigrateSessionPackageResponseBody.php new file mode 100644 index 0000000..0998ddb --- /dev/null +++ b/src/Models/MigrateSessionPackageResponseBody.php @@ -0,0 +1,89 @@ + 'Code', + 'message' => 'Message', + 'requestId' => 'RequestId', + 'success' => 'Success', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->code) { + $res['Code'] = $this->code; + } + if (null !== $this->message) { + $res['Message'] = $this->message; + } + if (null !== $this->requestId) { + $res['RequestId'] = $this->requestId; + } + if (null !== $this->success) { + $res['Success'] = $this->success; + } + + return $res; + } + + /** + * @param array $map + * + * @return MigrateSessionPackageResponseBody + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['Code'])) { + $model->code = $map['Code']; + } + if (isset($map['Message'])) { + $model->message = $map['Message']; + } + if (isset($map['RequestId'])) { + $model->requestId = $map['RequestId']; + } + if (isset($map['Success'])) { + $model->success = $map['Success']; + } + + return $model; + } +} diff --git a/src/Models/ModifyProjectPolicyRequest.php b/src/Models/ModifyProjectPolicyRequest.php new file mode 100644 index 0000000..0c4d299 --- /dev/null +++ b/src/Models/ModifyProjectPolicyRequest.php @@ -0,0 +1,161 @@ + 'Clipboard', + 'fileTransfer' => 'FileTransfer', + 'frameRate' => 'FrameRate', + 'keepAliveDuration' => 'KeepAliveDuration', + 'projectId' => 'ProjectId', + 'sessionResolutionHeight' => 'SessionResolutionHeight', + 'sessionResolutionWidth' => 'SessionResolutionWidth', + 'streamingMode' => 'StreamingMode', + 'terminalResolutionAdaptation' => 'TerminalResolutionAdaptation', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->clipboard) { + $res['Clipboard'] = $this->clipboard; + } + if (null !== $this->fileTransfer) { + $res['FileTransfer'] = $this->fileTransfer; + } + if (null !== $this->frameRate) { + $res['FrameRate'] = $this->frameRate; + } + if (null !== $this->keepAliveDuration) { + $res['KeepAliveDuration'] = $this->keepAliveDuration; + } + if (null !== $this->projectId) { + $res['ProjectId'] = $this->projectId; + } + if (null !== $this->sessionResolutionHeight) { + $res['SessionResolutionHeight'] = $this->sessionResolutionHeight; + } + if (null !== $this->sessionResolutionWidth) { + $res['SessionResolutionWidth'] = $this->sessionResolutionWidth; + } + if (null !== $this->streamingMode) { + $res['StreamingMode'] = $this->streamingMode; + } + if (null !== $this->terminalResolutionAdaptation) { + $res['TerminalResolutionAdaptation'] = $this->terminalResolutionAdaptation; + } + + return $res; + } + + /** + * @param array $map + * + * @return ModifyProjectPolicyRequest + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['Clipboard'])) { + $model->clipboard = $map['Clipboard']; + } + if (isset($map['FileTransfer'])) { + $model->fileTransfer = $map['FileTransfer']; + } + if (isset($map['FrameRate'])) { + $model->frameRate = $map['FrameRate']; + } + if (isset($map['KeepAliveDuration'])) { + $model->keepAliveDuration = $map['KeepAliveDuration']; + } + if (isset($map['ProjectId'])) { + $model->projectId = $map['ProjectId']; + } + if (isset($map['SessionResolutionHeight'])) { + $model->sessionResolutionHeight = $map['SessionResolutionHeight']; + } + if (isset($map['SessionResolutionWidth'])) { + $model->sessionResolutionWidth = $map['SessionResolutionWidth']; + } + if (isset($map['StreamingMode'])) { + $model->streamingMode = $map['StreamingMode']; + } + if (isset($map['TerminalResolutionAdaptation'])) { + $model->terminalResolutionAdaptation = $map['TerminalResolutionAdaptation']; + } + + return $model; + } +} diff --git a/src/Models/ModifyProjectPolicyResponse.php b/src/Models/ModifyProjectPolicyResponse.php new file mode 100644 index 0000000..a6d4690 --- /dev/null +++ b/src/Models/ModifyProjectPolicyResponse.php @@ -0,0 +1,74 @@ + 'headers', + 'statusCode' => 'statusCode', + 'body' => 'body', + ]; + + public function validate() + { + Model::validateRequired('headers', $this->headers, true); + Model::validateRequired('statusCode', $this->statusCode, true); + Model::validateRequired('body', $this->body, true); + } + + public function toMap() + { + $res = []; + if (null !== $this->headers) { + $res['headers'] = $this->headers; + } + if (null !== $this->statusCode) { + $res['statusCode'] = $this->statusCode; + } + if (null !== $this->body) { + $res['body'] = null !== $this->body ? $this->body->toMap() : null; + } + + return $res; + } + + /** + * @param array $map + * + * @return ModifyProjectPolicyResponse + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['headers'])) { + $model->headers = $map['headers']; + } + if (isset($map['statusCode'])) { + $model->statusCode = $map['statusCode']; + } + if (isset($map['body'])) { + $model->body = ModifyProjectPolicyResponseBody::fromMap($map['body']); + } + + return $model; + } +} diff --git a/src/Models/ModifyProjectPolicyResponseBody.php b/src/Models/ModifyProjectPolicyResponseBody.php new file mode 100644 index 0000000..bb08dcc --- /dev/null +++ b/src/Models/ModifyProjectPolicyResponseBody.php @@ -0,0 +1,105 @@ + 'Code', + 'data' => 'Data', + 'message' => 'Message', + 'requestId' => 'RequestId', + 'success' => 'Success', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->code) { + $res['Code'] = $this->code; + } + if (null !== $this->data) { + $res['Data'] = $this->data; + } + if (null !== $this->message) { + $res['Message'] = $this->message; + } + if (null !== $this->requestId) { + $res['RequestId'] = $this->requestId; + } + if (null !== $this->success) { + $res['Success'] = $this->success; + } + + return $res; + } + + /** + * @param array $map + * + * @return ModifyProjectPolicyResponseBody + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['Code'])) { + $model->code = $map['Code']; + } + if (isset($map['Data'])) { + $model->data = $map['Data']; + } + if (isset($map['Message'])) { + $model->message = $map['Message']; + } + if (isset($map['RequestId'])) { + $model->requestId = $map['RequestId']; + } + if (isset($map['Success'])) { + $model->success = $map['Success']; + } + + return $model; + } +} diff --git a/src/Models/RefreshAccessUrlRequest.php b/src/Models/RefreshAccessUrlRequest.php new file mode 100644 index 0000000..833d82d --- /dev/null +++ b/src/Models/RefreshAccessUrlRequest.php @@ -0,0 +1,49 @@ + 'AccessPageId', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->accessPageId) { + $res['AccessPageId'] = $this->accessPageId; + } + + return $res; + } + + /** + * @param array $map + * + * @return RefreshAccessUrlRequest + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['AccessPageId'])) { + $model->accessPageId = $map['AccessPageId']; + } + + return $model; + } +} diff --git a/src/Models/RefreshAccessUrlResponse.php b/src/Models/RefreshAccessUrlResponse.php new file mode 100644 index 0000000..b3bfe27 --- /dev/null +++ b/src/Models/RefreshAccessUrlResponse.php @@ -0,0 +1,74 @@ + 'headers', + 'statusCode' => 'statusCode', + 'body' => 'body', + ]; + + public function validate() + { + Model::validateRequired('headers', $this->headers, true); + Model::validateRequired('statusCode', $this->statusCode, true); + Model::validateRequired('body', $this->body, true); + } + + public function toMap() + { + $res = []; + if (null !== $this->headers) { + $res['headers'] = $this->headers; + } + if (null !== $this->statusCode) { + $res['statusCode'] = $this->statusCode; + } + if (null !== $this->body) { + $res['body'] = null !== $this->body ? $this->body->toMap() : null; + } + + return $res; + } + + /** + * @param array $map + * + * @return RefreshAccessUrlResponse + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['headers'])) { + $model->headers = $map['headers']; + } + if (isset($map['statusCode'])) { + $model->statusCode = $map['statusCode']; + } + if (isset($map['body'])) { + $model->body = RefreshAccessUrlResponseBody::fromMap($map['body']); + } + + return $model; + } +} diff --git a/src/Models/RefreshAccessUrlResponseBody.php b/src/Models/RefreshAccessUrlResponseBody.php new file mode 100644 index 0000000..0be1176 --- /dev/null +++ b/src/Models/RefreshAccessUrlResponseBody.php @@ -0,0 +1,105 @@ + 'AccessUrl', + 'code' => 'Code', + 'message' => 'Message', + 'requestId' => 'RequestId', + 'success' => 'Success', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->accessUrl) { + $res['AccessUrl'] = $this->accessUrl; + } + if (null !== $this->code) { + $res['Code'] = $this->code; + } + if (null !== $this->message) { + $res['Message'] = $this->message; + } + if (null !== $this->requestId) { + $res['RequestId'] = $this->requestId; + } + if (null !== $this->success) { + $res['Success'] = $this->success; + } + + return $res; + } + + /** + * @param array $map + * + * @return RefreshAccessUrlResponseBody + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['AccessUrl'])) { + $model->accessUrl = $map['AccessUrl']; + } + if (isset($map['Code'])) { + $model->code = $map['Code']; + } + if (isset($map['Message'])) { + $model->message = $map['Message']; + } + if (isset($map['RequestId'])) { + $model->requestId = $map['RequestId']; + } + if (isset($map['Success'])) { + $model->success = $map['Success']; + } + + return $model; + } +} diff --git a/src/Models/RenewSessionPackageRequest.php b/src/Models/RenewSessionPackageRequest.php new file mode 100644 index 0000000..3b4898e --- /dev/null +++ b/src/Models/RenewSessionPackageRequest.php @@ -0,0 +1,77 @@ + 'Period', + 'periodUnit' => 'PeriodUnit', + 'sessionPackageId' => 'SessionPackageId', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->period) { + $res['Period'] = $this->period; + } + if (null !== $this->periodUnit) { + $res['PeriodUnit'] = $this->periodUnit; + } + if (null !== $this->sessionPackageId) { + $res['SessionPackageId'] = $this->sessionPackageId; + } + + return $res; + } + + /** + * @param array $map + * + * @return RenewSessionPackageRequest + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['Period'])) { + $model->period = $map['Period']; + } + if (isset($map['PeriodUnit'])) { + $model->periodUnit = $map['PeriodUnit']; + } + if (isset($map['SessionPackageId'])) { + $model->sessionPackageId = $map['SessionPackageId']; + } + + return $model; + } +} diff --git a/src/Models/RenewSessionPackageResponse.php b/src/Models/RenewSessionPackageResponse.php new file mode 100644 index 0000000..f11aa77 --- /dev/null +++ b/src/Models/RenewSessionPackageResponse.php @@ -0,0 +1,74 @@ + 'headers', + 'statusCode' => 'statusCode', + 'body' => 'body', + ]; + + public function validate() + { + Model::validateRequired('headers', $this->headers, true); + Model::validateRequired('statusCode', $this->statusCode, true); + Model::validateRequired('body', $this->body, true); + } + + public function toMap() + { + $res = []; + if (null !== $this->headers) { + $res['headers'] = $this->headers; + } + if (null !== $this->statusCode) { + $res['statusCode'] = $this->statusCode; + } + if (null !== $this->body) { + $res['body'] = null !== $this->body ? $this->body->toMap() : null; + } + + return $res; + } + + /** + * @param array $map + * + * @return RenewSessionPackageResponse + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['headers'])) { + $model->headers = $map['headers']; + } + if (isset($map['statusCode'])) { + $model->statusCode = $map['statusCode']; + } + if (isset($map['body'])) { + $model->body = RenewSessionPackageResponseBody::fromMap($map['body']); + } + + return $model; + } +} diff --git a/src/Models/RenewSessionPackageResponseBody.php b/src/Models/RenewSessionPackageResponseBody.php new file mode 100644 index 0000000..cd79b6b --- /dev/null +++ b/src/Models/RenewSessionPackageResponseBody.php @@ -0,0 +1,105 @@ + 'Code', + 'message' => 'Message', + 'requestId' => 'RequestId', + 'sessionPackageId' => 'SessionPackageId', + 'success' => 'Success', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->code) { + $res['Code'] = $this->code; + } + if (null !== $this->message) { + $res['Message'] = $this->message; + } + if (null !== $this->requestId) { + $res['RequestId'] = $this->requestId; + } + if (null !== $this->sessionPackageId) { + $res['SessionPackageId'] = $this->sessionPackageId; + } + if (null !== $this->success) { + $res['Success'] = $this->success; + } + + return $res; + } + + /** + * @param array $map + * + * @return RenewSessionPackageResponseBody + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['Code'])) { + $model->code = $map['Code']; + } + if (isset($map['Message'])) { + $model->message = $map['Message']; + } + if (isset($map['RequestId'])) { + $model->requestId = $map['RequestId']; + } + if (isset($map['SessionPackageId'])) { + $model->sessionPackageId = $map['SessionPackageId']; + } + if (isset($map['Success'])) { + $model->success = $map['Success']; + } + + return $model; + } +} diff --git a/src/Models/UnbindRequest.php b/src/Models/UnbindRequest.php index 39876d4..ff1adee 100644 --- a/src/Models/UnbindRequest.php +++ b/src/Models/UnbindRequest.php @@ -22,6 +22,11 @@ class UnbindRequest extends Model */ public $appInstanceId; + /** + * @var string + */ + public $appInstancePersistentId; + /** * @example alice * @@ -36,10 +41,11 @@ class UnbindRequest extends Model */ public $productType; protected $_name = [ - 'appInstanceGroupId' => 'AppInstanceGroupId', - 'appInstanceId' => 'AppInstanceId', - 'endUserId' => 'EndUserId', - 'productType' => 'ProductType', + 'appInstanceGroupId' => 'AppInstanceGroupId', + 'appInstanceId' => 'AppInstanceId', + 'appInstancePersistentId' => 'AppInstancePersistentId', + 'endUserId' => 'EndUserId', + 'productType' => 'ProductType', ]; public function validate() @@ -55,6 +61,9 @@ public function toMap() if (null !== $this->appInstanceId) { $res['AppInstanceId'] = $this->appInstanceId; } + if (null !== $this->appInstancePersistentId) { + $res['AppInstancePersistentId'] = $this->appInstancePersistentId; + } if (null !== $this->endUserId) { $res['EndUserId'] = $this->endUserId; } @@ -79,6 +88,9 @@ public static function fromMap($map = []) if (isset($map['AppInstanceId'])) { $model->appInstanceId = $map['AppInstanceId']; } + if (isset($map['AppInstancePersistentId'])) { + $model->appInstancePersistentId = $map['AppInstancePersistentId']; + } if (isset($map['EndUserId'])) { $model->endUserId = $map['EndUserId']; } diff --git a/src/Models/UpdateAccessPageStateRequest.php b/src/Models/UpdateAccessPageStateRequest.php new file mode 100644 index 0000000..3f1d899 --- /dev/null +++ b/src/Models/UpdateAccessPageStateRequest.php @@ -0,0 +1,63 @@ + 'AccessPageId', + 'accessPageState' => 'AccessPageState', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->accessPageId) { + $res['AccessPageId'] = $this->accessPageId; + } + if (null !== $this->accessPageState) { + $res['AccessPageState'] = $this->accessPageState; + } + + return $res; + } + + /** + * @param array $map + * + * @return UpdateAccessPageStateRequest + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['AccessPageId'])) { + $model->accessPageId = $map['AccessPageId']; + } + if (isset($map['AccessPageState'])) { + $model->accessPageState = $map['AccessPageState']; + } + + return $model; + } +} diff --git a/src/Models/UpdateAccessPageStateResponse.php b/src/Models/UpdateAccessPageStateResponse.php new file mode 100644 index 0000000..40c36cc --- /dev/null +++ b/src/Models/UpdateAccessPageStateResponse.php @@ -0,0 +1,74 @@ + 'headers', + 'statusCode' => 'statusCode', + 'body' => 'body', + ]; + + public function validate() + { + Model::validateRequired('headers', $this->headers, true); + Model::validateRequired('statusCode', $this->statusCode, true); + Model::validateRequired('body', $this->body, true); + } + + public function toMap() + { + $res = []; + if (null !== $this->headers) { + $res['headers'] = $this->headers; + } + if (null !== $this->statusCode) { + $res['statusCode'] = $this->statusCode; + } + if (null !== $this->body) { + $res['body'] = null !== $this->body ? $this->body->toMap() : null; + } + + return $res; + } + + /** + * @param array $map + * + * @return UpdateAccessPageStateResponse + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['headers'])) { + $model->headers = $map['headers']; + } + if (isset($map['statusCode'])) { + $model->statusCode = $map['statusCode']; + } + if (isset($map['body'])) { + $model->body = UpdateAccessPageStateResponseBody::fromMap($map['body']); + } + + return $model; + } +} diff --git a/src/Models/UpdateAccessPageStateResponseBody.php b/src/Models/UpdateAccessPageStateResponseBody.php new file mode 100644 index 0000000..6bb776e --- /dev/null +++ b/src/Models/UpdateAccessPageStateResponseBody.php @@ -0,0 +1,91 @@ + 'Code', + 'message' => 'Message', + 'requestId' => 'RequestId', + 'success' => 'Success', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->code) { + $res['Code'] = $this->code; + } + if (null !== $this->message) { + $res['Message'] = $this->message; + } + if (null !== $this->requestId) { + $res['RequestId'] = $this->requestId; + } + if (null !== $this->success) { + $res['Success'] = $this->success; + } + + return $res; + } + + /** + * @param array $map + * + * @return UpdateAccessPageStateResponseBody + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['Code'])) { + $model->code = $map['Code']; + } + if (isset($map['Message'])) { + $model->message = $map['Message']; + } + if (isset($map['RequestId'])) { + $model->requestId = $map['RequestId']; + } + if (isset($map['Success'])) { + $model->success = $map['Success']; + } + + return $model; + } +}