From bdb65ce1a3c2b7e87d30eaf1a08faea5f1e2fb7e Mon Sep 17 00:00:00 2001 From: sdk-team Date: Mon, 22 Jul 2024 06:25:47 +0000 Subject: [PATCH] Support API ModifyAppPolicy. --- ChangeLog.md | 9 + composer.json | 4 +- src/Appstreamcenter.php | 726 ++++++++++++------ src/Models/AccessPageGetAclResponse.php | 3 - src/Models/AccessPageSetAclRequest.php | 6 + src/Models/AccessPageSetAclResponse.php | 3 - src/Models/ApproveOtaTaskRequest.php | 11 + src/Models/ApproveOtaTaskResponse.php | 3 - src/Models/AskSessionPackagePriceRequest.php | 6 + src/Models/AskSessionPackagePriceResponse.php | 3 - .../AskSessionPackageRenewPriceRequest.php | 6 + .../AskSessionPackageRenewPriceResponse.php | 3 - src/Models/AuthorizeInstanceGroupRequest.php | 4 + src/Models/AuthorizeInstanceGroupResponse.php | 3 - src/Models/BuySessionPackageRequest.php | 18 + src/Models/BuySessionPackageResponse.php | 3 - src/Models/CancelOtaTaskRequest.php | 4 + src/Models/CancelOtaTaskResponse.php | 3 - src/Models/CreateAccessPageRequest.php | 4 + src/Models/CreateAccessPageResponse.php | 3 - src/Models/CreateAppInstanceGroupRequest.php | 44 ++ .../userDefinePolicy.php | 47 ++ .../videoPolicy.php | 107 +++ src/Models/CreateAppInstanceGroupResponse.php | 3 - .../CreateAppInstanceGroupShrinkRequest.php | 82 +- ...CreateImageFromAppInstanceGroupRequest.php | 6 + ...reateImageFromAppInstanceGroupResponse.php | 3 - src/Models/CreateProjectResponse.php | 3 - src/Models/DeleteAccessPageResponse.php | 3 - src/Models/DeleteAppInstanceGroupRequest.php | 4 + src/Models/DeleteAppInstanceGroupResponse.php | 3 - src/Models/DeleteAppInstancesRequest.php | 6 + src/Models/DeleteAppInstancesResponse.php | 3 - src/Models/DeleteProjectResponse.php | 3 - src/Models/GetAccessPageSessionRequest.php | 4 + src/Models/GetAccessPageSessionResponse.php | 3 - src/Models/GetAppInstanceGroupRequest.php | 4 + src/Models/GetAppInstanceGroupResponse.php | 3 - src/Models/GetConnectionTicketRequest.php | 4 + src/Models/GetConnectionTicketResponse.php | 3 - src/Models/GetDebugAppInstanceRequest.php | 4 + src/Models/GetDebugAppInstanceResponse.php | 3 - src/Models/GetOtaTaskByTaskIdRequest.php | 2 + src/Models/GetOtaTaskByTaskIdResponse.php | 3 - src/Models/GetOtaTaskByTaskIdResponseBody.php | 2 + src/Models/GetProjectPoliciesResponse.php | 3 - src/Models/GetResourcePriceRequest.php | 12 + src/Models/GetResourcePriceResponse.php | 3 - src/Models/GetResourceRenewPriceRequest.php | 8 + src/Models/GetResourceRenewPriceResponse.php | 3 - src/Models/ListAccessPagesResponse.php | 3 - src/Models/ListAppInstanceGroupRequest.php | 18 + src/Models/ListAppInstanceGroupResponse.php | 3 - src/Models/ListAppInstancesRequest.php | 2 + src/Models/ListAppInstancesResponse.php | 3 - src/Models/ListNodeInstanceTypeRequest.php | 8 +- src/Models/ListNodeInstanceTypeResponse.php | 3 - .../nodeInstanceTypeModels.php | 2 +- src/Models/ListOtaTaskRequest.php | 8 + src/Models/ListOtaTaskResponse.php | 3 - .../ListOtaTaskResponseBody/taskList.php | 2 + src/Models/ListProjectsResponse.php | 3 - src/Models/ListRegionsRequest.php | 47 ++ src/Models/ListRegionsResponse.php | 3 - src/Models/ListSessionPackagesResponse.php | 3 - src/Models/ListTenantConfigResponse.php | 3 - ...ffAllSessionsInAppInstanceGroupRequest.php | 4 + ...fAllSessionsInAppInstanceGroupResponse.php | 3 - src/Models/MigrateSessionPackageRequest.php | 2 + src/Models/MigrateSessionPackageResponse.php | 3 - ...ModifyAppInstanceGroupAttributeRequest.php | 4 + ...odifyAppInstanceGroupAttributeResponse.php | 3 - ...AppInstanceGroupAttributeShrinkRequest.php | 4 + src/Models/ModifyAppPolicyRequest.php | 80 ++ .../ModifyAppPolicyRequest/videoPolicy.php | 131 ++++ src/Models/ModifyAppPolicyResponse.php | 71 ++ src/Models/ModifyAppPolicyResponseBody.php | 49 ++ src/Models/ModifyAppPolicyShrinkRequest.php | 79 ++ .../ModifyNodePoolAttributeResponse.php | 3 - src/Models/ModifyProjectPolicyResponse.php | 3 - src/Models/ModifyTenantConfigResponse.php | 3 - .../PageListAppInstanceGroupUserRequest.php | 4 + .../PageListAppInstanceGroupUserResponse.php | 3 - src/Models/RefreshAccessUrlResponse.php | 3 - src/Models/RenewAppInstanceGroupRequest.php | 8 + src/Models/RenewAppInstanceGroupResponse.php | 3 - src/Models/RenewSessionPackageRequest.php | 6 + src/Models/RenewSessionPackageResponse.php | 3 - src/Models/UnbindRequest.php | 6 + src/Models/UnbindResponse.php | 3 - src/Models/UpdateAccessPageStateResponse.php | 3 - .../UpdateAppInstanceGroupImageRequest.php | 8 + .../UpdateAppInstanceGroupImageResponse.php | 3 - 93 files changed, 1422 insertions(+), 393 deletions(-) create mode 100644 src/Models/CreateAppInstanceGroupRequest/userDefinePolicy.php create mode 100644 src/Models/CreateAppInstanceGroupRequest/videoPolicy.php create mode 100644 src/Models/ListRegionsRequest.php create mode 100644 src/Models/ModifyAppPolicyRequest.php create mode 100644 src/Models/ModifyAppPolicyRequest/videoPolicy.php create mode 100644 src/Models/ModifyAppPolicyResponse.php create mode 100644 src/Models/ModifyAppPolicyResponseBody.php create mode 100644 src/Models/ModifyAppPolicyShrinkRequest.php diff --git a/ChangeLog.md b/ChangeLog.md index de203fb..6395a35 100644 --- a/ChangeLog.md +++ b/ChangeLog.md @@ -1,3 +1,12 @@ +2024-07-22 Version: 2.0.0 +- Support API ModifyAppPolicy. +- Update API BuySessionPackage: add param AutoPay. +- Update API CreateAppInstanceGroup: add param UserDefinePolicy. +- Update API CreateAppInstanceGroup: add param VideoPolicy. +- Update API ListAppInstanceGroup: add param RegionId. +- Update API ListRegions: add param ProductType. + + 2024-01-15 Version: 1.1.0 - Generated php 2021-09-01 for appstream-center. diff --git a/composer.json b/composer.json index cf664ab..4c968a3 100644 --- a/composer.json +++ b/composer.json @@ -11,8 +11,8 @@ ], "require": { "php": ">5.5", - "alibabacloud/tea-utils": "^0.2.19", - "alibabacloud/darabonba-openapi": "^0.2.10", + "alibabacloud/tea-utils": "^0.2.20", + "alibabacloud/darabonba-openapi": "^0.2.12", "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 8c0afaa..1d289b9 100644 --- a/src/Appstreamcenter.php +++ b/src/Appstreamcenter.php @@ -67,6 +67,7 @@ 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\ListRegionsRequest; use AlibabaCloud\SDK\Appstreamcenter\V20210901\Models\ListRegionsResponse; use AlibabaCloud\SDK\Appstreamcenter\V20210901\Models\ListSessionPackagesRequest; use AlibabaCloud\SDK\Appstreamcenter\V20210901\Models\ListSessionPackagesResponse; @@ -78,6 +79,9 @@ 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\ModifyAppPolicyRequest; +use AlibabaCloud\SDK\Appstreamcenter\V20210901\Models\ModifyAppPolicyResponse; +use AlibabaCloud\SDK\Appstreamcenter\V20210901\Models\ModifyAppPolicyShrinkRequest; use AlibabaCloud\SDK\Appstreamcenter\V20210901\Models\ModifyNodePoolAttributeRequest; use AlibabaCloud\SDK\Appstreamcenter\V20210901\Models\ModifyNodePoolAttributeResponse; use AlibabaCloud\SDK\Appstreamcenter\V20210901\Models\ModifyNodePoolAttributeShrinkRequest; @@ -140,10 +144,12 @@ public function getEndpoint($productId, $regionId, $endpointRule, $network, $suf } /** - * @param AccessPageGetAclRequest $request - * @param RuntimeOptions $runtime + * @summary 获取访问管理页配置 + * * + * @param AccessPageGetAclRequest $request AccessPageGetAclRequest + * @param RuntimeOptions $runtime runtime options for this request RuntimeOptions * - * @return AccessPageGetAclResponse + * @return AccessPageGetAclResponse AccessPageGetAclResponse */ public function accessPageGetAclWithOptions($request, $runtime) { @@ -171,9 +177,11 @@ public function accessPageGetAclWithOptions($request, $runtime) } /** - * @param AccessPageGetAclRequest $request + * @summary 获取访问管理页配置 + * * + * @param AccessPageGetAclRequest $request AccessPageGetAclRequest * - * @return AccessPageGetAclResponse + * @return AccessPageGetAclResponse AccessPageGetAclResponse */ public function accessPageGetAcl($request) { @@ -183,10 +191,12 @@ public function accessPageGetAcl($request) } /** - * @param AccessPageSetAclRequest $request - * @param RuntimeOptions $runtime + * @summary 更新访问管理 + * * + * @param AccessPageSetAclRequest $request AccessPageSetAclRequest + * @param RuntimeOptions $runtime runtime options for this request RuntimeOptions * - * @return AccessPageSetAclResponse + * @return AccessPageSetAclResponse AccessPageSetAclResponse */ public function accessPageSetAclWithOptions($request, $runtime) { @@ -226,9 +236,11 @@ public function accessPageSetAclWithOptions($request, $runtime) } /** - * @param AccessPageSetAclRequest $request + * @summary 更新访问管理 + * * + * @param AccessPageSetAclRequest $request AccessPageSetAclRequest * - * @return AccessPageSetAclResponse + * @return AccessPageSetAclResponse AccessPageSetAclResponse */ public function accessPageSetAcl($request) { @@ -238,10 +250,12 @@ public function accessPageSetAcl($request) } /** - * @param ApproveOtaTaskRequest $request - * @param RuntimeOptions $runtime + * @summary 同意Ota升级 + * * + * @param ApproveOtaTaskRequest $request ApproveOtaTaskRequest + * @param RuntimeOptions $runtime runtime options for this request RuntimeOptions * - * @return ApproveOtaTaskResponse + * @return ApproveOtaTaskResponse ApproveOtaTaskResponse */ public function approveOtaTaskWithOptions($request, $runtime) { @@ -281,9 +295,11 @@ public function approveOtaTaskWithOptions($request, $runtime) } /** - * @param ApproveOtaTaskRequest $request + * @summary 同意Ota升级 + * * + * @param ApproveOtaTaskRequest $request ApproveOtaTaskRequest * - * @return ApproveOtaTaskResponse + * @return ApproveOtaTaskResponse ApproveOtaTaskResponse */ public function approveOtaTask($request) { @@ -293,10 +309,12 @@ public function approveOtaTask($request) } /** - * @param AskSessionPackagePriceRequest $request - * @param RuntimeOptions $runtime + * @summary 会话包收费查询 + * * + * @param AskSessionPackagePriceRequest $request AskSessionPackagePriceRequest + * @param RuntimeOptions $runtime runtime options for this request RuntimeOptions * - * @return AskSessionPackagePriceResponse + * @return AskSessionPackagePriceResponse AskSessionPackagePriceResponse */ public function askSessionPackagePriceWithOptions($request, $runtime) { @@ -345,9 +363,11 @@ public function askSessionPackagePriceWithOptions($request, $runtime) } /** - * @param AskSessionPackagePriceRequest $request + * @summary 会话包收费查询 + * * + * @param AskSessionPackagePriceRequest $request AskSessionPackagePriceRequest * - * @return AskSessionPackagePriceResponse + * @return AskSessionPackagePriceResponse AskSessionPackagePriceResponse */ public function askSessionPackagePrice($request) { @@ -357,10 +377,12 @@ public function askSessionPackagePrice($request) } /** - * @param AskSessionPackageRenewPriceRequest $request - * @param RuntimeOptions $runtime + * @summary 会话包续费询价 + * * + * @param AskSessionPackageRenewPriceRequest $request AskSessionPackageRenewPriceRequest + * @param RuntimeOptions $runtime runtime options for this request RuntimeOptions * - * @return AskSessionPackageRenewPriceResponse + * @return AskSessionPackageRenewPriceResponse AskSessionPackageRenewPriceResponse */ public function askSessionPackageRenewPriceWithOptions($request, $runtime) { @@ -394,9 +416,11 @@ public function askSessionPackageRenewPriceWithOptions($request, $runtime) } /** - * @param AskSessionPackageRenewPriceRequest $request + * @summary 会话包续费询价 + * * + * @param AskSessionPackageRenewPriceRequest $request AskSessionPackageRenewPriceRequest * - * @return AskSessionPackageRenewPriceResponse + * @return AskSessionPackageRenewPriceResponse AskSessionPackageRenewPriceResponse */ public function askSessionPackageRenewPrice($request) { @@ -406,10 +430,12 @@ public function askSessionPackageRenewPrice($request) } /** - * @param AuthorizeInstanceGroupRequest $request - * @param RuntimeOptions $runtime + * @summary 授权用户 + * * + * @param AuthorizeInstanceGroupRequest $request AuthorizeInstanceGroupRequest + * @param RuntimeOptions $runtime runtime options for this request RuntimeOptions * - * @return AuthorizeInstanceGroupResponse + * @return AuthorizeInstanceGroupResponse AuthorizeInstanceGroupResponse */ public function authorizeInstanceGroupWithOptions($request, $runtime) { @@ -446,9 +472,11 @@ public function authorizeInstanceGroupWithOptions($request, $runtime) } /** - * @param AuthorizeInstanceGroupRequest $request + * @summary 授权用户 + * * + * @param AuthorizeInstanceGroupRequest $request AuthorizeInstanceGroupRequest * - * @return AuthorizeInstanceGroupResponse + * @return AuthorizeInstanceGroupResponse AuthorizeInstanceGroupResponse */ public function authorizeInstanceGroup($request) { @@ -458,15 +486,20 @@ public function authorizeInstanceGroup($request) } /** - * @param BuySessionPackageRequest $request - * @param RuntimeOptions $runtime + * @summary 配置会话包 + * * + * @param BuySessionPackageRequest $request BuySessionPackageRequest + * @param RuntimeOptions $runtime runtime options for this request RuntimeOptions * - * @return BuySessionPackageResponse + * @return BuySessionPackageResponse BuySessionPackageResponse */ public function buySessionPackageWithOptions($request, $runtime) { Utils::validateModel($request); $query = []; + if (!Utils::isUnset($request->autoPay)) { + $query['AutoPay'] = $request->autoPay; + } if (!Utils::isUnset($request->chargeType)) { $query['ChargeType'] = $request->chargeType; } @@ -516,9 +549,11 @@ public function buySessionPackageWithOptions($request, $runtime) } /** - * @param BuySessionPackageRequest $request + * @summary 配置会话包 + * * + * @param BuySessionPackageRequest $request BuySessionPackageRequest * - * @return BuySessionPackageResponse + * @return BuySessionPackageResponse BuySessionPackageResponse */ public function buySessionPackage($request) { @@ -528,10 +563,12 @@ public function buySessionPackage($request) } /** - * @param CancelOtaTaskRequest $request - * @param RuntimeOptions $runtime + * @summary 取消Ota升级 + * * + * @param CancelOtaTaskRequest $request CancelOtaTaskRequest + * @param RuntimeOptions $runtime runtime options for this request RuntimeOptions * - * @return CancelOtaTaskResponse + * @return CancelOtaTaskResponse CancelOtaTaskResponse */ public function cancelOtaTaskWithOptions($request, $runtime) { @@ -562,9 +599,11 @@ public function cancelOtaTaskWithOptions($request, $runtime) } /** - * @param CancelOtaTaskRequest $request + * @summary 取消Ota升级 + * * + * @param CancelOtaTaskRequest $request CancelOtaTaskRequest * - * @return CancelOtaTaskResponse + * @return CancelOtaTaskResponse CancelOtaTaskResponse */ public function cancelOtaTask($request) { @@ -574,10 +613,12 @@ public function cancelOtaTask($request) } /** - * @param CreateAccessPageRequest $request - * @param RuntimeOptions $runtime + * @summary 创建访问页面 + * * + * @param CreateAccessPageRequest $request CreateAccessPageRequest + * @param RuntimeOptions $runtime runtime options for this request RuntimeOptions * - * @return CreateAccessPageResponse + * @return CreateAccessPageResponse CreateAccessPageResponse */ public function createAccessPageWithOptions($request, $runtime) { @@ -620,9 +661,11 @@ public function createAccessPageWithOptions($request, $runtime) } /** - * @param CreateAccessPageRequest $request + * @summary 创建访问页面 + * * + * @param CreateAccessPageRequest $request CreateAccessPageRequest * - * @return CreateAccessPageResponse + * @return CreateAccessPageResponse CreateAccessPageResponse */ public function createAccessPage($request) { @@ -632,10 +675,12 @@ public function createAccessPage($request) } /** - * @param CreateAppInstanceGroupRequest $tmpReq - * @param RuntimeOptions $runtime + * @summary 创建云应用交付组 + * * + * @param CreateAppInstanceGroupRequest $tmpReq CreateAppInstanceGroupRequest + * @param RuntimeOptions $runtime runtime options for this request RuntimeOptions * - * @return CreateAppInstanceGroupResponse + * @return CreateAppInstanceGroupResponse CreateAppInstanceGroupResponse */ public function createAppInstanceGroupWithOptions($tmpReq, $runtime) { @@ -657,9 +702,19 @@ public function createAppInstanceGroupWithOptions($tmpReq, $runtime) if (!Utils::isUnset($tmpReq->storagePolicy)) { $request->storagePolicyShrink = OpenApiUtilClient::arrayToStringWithSpecifiedStyle($tmpReq->storagePolicy, 'StoragePolicy', 'json'); } + if (!Utils::isUnset($tmpReq->userDefinePolicy)) { + $request->userDefinePolicyShrink = OpenApiUtilClient::arrayToStringWithSpecifiedStyle($tmpReq->userDefinePolicy, 'UserDefinePolicy', 'json'); + } if (!Utils::isUnset($tmpReq->userInfo)) { $request->userInfoShrink = OpenApiUtilClient::arrayToStringWithSpecifiedStyle($tmpReq->userInfo, 'UserInfo', 'json'); } + if (!Utils::isUnset($tmpReq->videoPolicy)) { + $request->videoPolicyShrink = OpenApiUtilClient::arrayToStringWithSpecifiedStyle($tmpReq->videoPolicy, 'VideoPolicy', 'json'); + } + $query = []; + if (!Utils::isUnset($request->userDefinePolicyShrink)) { + $query['UserDefinePolicy'] = $request->userDefinePolicyShrink; + } $body = []; if (!Utils::isUnset($request->appCenterImageId)) { $body['AppCenterImageId'] = $request->appCenterImageId; @@ -721,8 +776,12 @@ public function createAppInstanceGroupWithOptions($tmpReq, $runtime) if (!Utils::isUnset($request->users)) { $body['Users'] = $request->users; } + if (!Utils::isUnset($request->videoPolicyShrink)) { + $body['VideoPolicy'] = $request->videoPolicyShrink; + } $req = new OpenApiRequest([ - 'body' => OpenApiUtilClient::parseToMap($body), + 'query' => OpenApiUtilClient::query($query), + 'body' => OpenApiUtilClient::parseToMap($body), ]); $params = new Params([ 'action' => 'CreateAppInstanceGroup', @@ -740,9 +799,11 @@ public function createAppInstanceGroupWithOptions($tmpReq, $runtime) } /** - * @param CreateAppInstanceGroupRequest $request + * @summary 创建云应用交付组 + * * + * @param CreateAppInstanceGroupRequest $request CreateAppInstanceGroupRequest * - * @return CreateAppInstanceGroupResponse + * @return CreateAppInstanceGroupResponse CreateAppInstanceGroupResponse */ public function createAppInstanceGroup($request) { @@ -752,10 +813,12 @@ public function createAppInstanceGroup($request) } /** - * @param CreateImageFromAppInstanceGroupRequest $request - * @param RuntimeOptions $runtime + * @summary CreateImageFromAppInstanceGroup + * * + * @param CreateImageFromAppInstanceGroupRequest $request CreateImageFromAppInstanceGroupRequest + * @param RuntimeOptions $runtime runtime options for this request RuntimeOptions * - * @return CreateImageFromAppInstanceGroupResponse + * @return CreateImageFromAppInstanceGroupResponse CreateImageFromAppInstanceGroupResponse */ public function createImageFromAppInstanceGroupWithOptions($request, $runtime) { @@ -789,9 +852,11 @@ public function createImageFromAppInstanceGroupWithOptions($request, $runtime) } /** - * @param CreateImageFromAppInstanceGroupRequest $request + * @summary CreateImageFromAppInstanceGroup + * * + * @param CreateImageFromAppInstanceGroupRequest $request CreateImageFromAppInstanceGroupRequest * - * @return CreateImageFromAppInstanceGroupResponse + * @return CreateImageFromAppInstanceGroupResponse CreateImageFromAppInstanceGroupResponse */ public function createImageFromAppInstanceGroup($request) { @@ -801,10 +866,12 @@ public function createImageFromAppInstanceGroup($request) } /** - * @param CreateProjectRequest $request - * @param RuntimeOptions $runtime + * @summary 创建项目 + * * + * @param CreateProjectRequest $request CreateProjectRequest + * @param RuntimeOptions $runtime runtime options for this request RuntimeOptions * - * @return CreateProjectResponse + * @return CreateProjectResponse CreateProjectResponse */ public function createProjectWithOptions($request, $runtime) { @@ -868,9 +935,11 @@ public function createProjectWithOptions($request, $runtime) } /** - * @param CreateProjectRequest $request + * @summary 创建项目 + * * + * @param CreateProjectRequest $request CreateProjectRequest * - * @return CreateProjectResponse + * @return CreateProjectResponse CreateProjectResponse */ public function createProject($request) { @@ -880,10 +949,12 @@ public function createProject($request) } /** - * @param DeleteAccessPageRequest $request - * @param RuntimeOptions $runtime + * @summary 删除访问页面 + * * + * @param DeleteAccessPageRequest $request DeleteAccessPageRequest + * @param RuntimeOptions $runtime runtime options for this request RuntimeOptions * - * @return DeleteAccessPageResponse + * @return DeleteAccessPageResponse DeleteAccessPageResponse */ public function deleteAccessPageWithOptions($request, $runtime) { @@ -911,9 +982,11 @@ public function deleteAccessPageWithOptions($request, $runtime) } /** - * @param DeleteAccessPageRequest $request + * @summary 删除访问页面 + * * + * @param DeleteAccessPageRequest $request DeleteAccessPageRequest * - * @return DeleteAccessPageResponse + * @return DeleteAccessPageResponse DeleteAccessPageResponse */ public function deleteAccessPage($request) { @@ -923,10 +996,12 @@ public function deleteAccessPage($request) } /** - * @param DeleteAppInstanceGroupRequest $request - * @param RuntimeOptions $runtime + * @summary 实例组释放接口 + * * + * @param DeleteAppInstanceGroupRequest $request DeleteAppInstanceGroupRequest + * @param RuntimeOptions $runtime runtime options for this request RuntimeOptions * - * @return DeleteAppInstanceGroupResponse + * @return DeleteAppInstanceGroupResponse DeleteAppInstanceGroupResponse */ public function deleteAppInstanceGroupWithOptions($request, $runtime) { @@ -957,9 +1032,11 @@ public function deleteAppInstanceGroupWithOptions($request, $runtime) } /** - * @param DeleteAppInstanceGroupRequest $request + * @summary 实例组释放接口 + * * + * @param DeleteAppInstanceGroupRequest $request DeleteAppInstanceGroupRequest * - * @return DeleteAppInstanceGroupResponse + * @return DeleteAppInstanceGroupResponse DeleteAppInstanceGroupResponse */ public function deleteAppInstanceGroup($request) { @@ -969,10 +1046,12 @@ public function deleteAppInstanceGroup($request) } /** - * @param DeleteAppInstancesRequest $request - * @param RuntimeOptions $runtime + * @summary 删除实例 + * * + * @param DeleteAppInstancesRequest $request DeleteAppInstancesRequest + * @param RuntimeOptions $runtime runtime options for this request RuntimeOptions * - * @return DeleteAppInstancesResponse + * @return DeleteAppInstancesResponse DeleteAppInstancesResponse */ public function deleteAppInstancesWithOptions($request, $runtime) { @@ -1006,9 +1085,11 @@ public function deleteAppInstancesWithOptions($request, $runtime) } /** - * @param DeleteAppInstancesRequest $request + * @summary 删除实例 + * * + * @param DeleteAppInstancesRequest $request DeleteAppInstancesRequest * - * @return DeleteAppInstancesResponse + * @return DeleteAppInstancesResponse DeleteAppInstancesResponse */ public function deleteAppInstances($request) { @@ -1018,10 +1099,12 @@ public function deleteAppInstances($request) } /** - * @param DeleteProjectRequest $request - * @param RuntimeOptions $runtime + * @summary 删除项目 + * * + * @param DeleteProjectRequest $request DeleteProjectRequest + * @param RuntimeOptions $runtime runtime options for this request RuntimeOptions * - * @return DeleteProjectResponse + * @return DeleteProjectResponse DeleteProjectResponse */ public function deleteProjectWithOptions($request, $runtime) { @@ -1049,9 +1132,11 @@ public function deleteProjectWithOptions($request, $runtime) } /** - * @param DeleteProjectRequest $request + * @summary 删除项目 + * * + * @param DeleteProjectRequest $request DeleteProjectRequest * - * @return DeleteProjectResponse + * @return DeleteProjectResponse DeleteProjectResponse */ public function deleteProject($request) { @@ -1061,10 +1146,12 @@ public function deleteProject($request) } /** - * @param GetAccessPageSessionRequest $request - * @param RuntimeOptions $runtime + * @summary 访客进入访问页面的匿名api + * * + * @param GetAccessPageSessionRequest $request GetAccessPageSessionRequest + * @param RuntimeOptions $runtime runtime options for this request RuntimeOptions * - * @return GetAccessPageSessionResponse + * @return GetAccessPageSessionResponse GetAccessPageSessionResponse */ public function getAccessPageSessionWithOptions($request, $runtime) { @@ -1098,9 +1185,11 @@ public function getAccessPageSessionWithOptions($request, $runtime) } /** - * @param GetAccessPageSessionRequest $request + * @summary 访客进入访问页面的匿名api + * * + * @param GetAccessPageSessionRequest $request GetAccessPageSessionRequest * - * @return GetAccessPageSessionResponse + * @return GetAccessPageSessionResponse GetAccessPageSessionResponse */ public function getAccessPageSession($request) { @@ -1110,10 +1199,12 @@ public function getAccessPageSession($request) } /** - * @param GetAppInstanceGroupRequest $request - * @param RuntimeOptions $runtime + * @summary 获取交付组详情 + * * + * @param GetAppInstanceGroupRequest $request GetAppInstanceGroupRequest + * @param RuntimeOptions $runtime runtime options for this request RuntimeOptions * - * @return GetAppInstanceGroupResponse + * @return GetAppInstanceGroupResponse GetAppInstanceGroupResponse */ public function getAppInstanceGroupWithOptions($request, $runtime) { @@ -1144,9 +1235,11 @@ public function getAppInstanceGroupWithOptions($request, $runtime) } /** - * @param GetAppInstanceGroupRequest $request + * @summary 获取交付组详情 + * * + * @param GetAppInstanceGroupRequest $request GetAppInstanceGroupRequest * - * @return GetAppInstanceGroupResponse + * @return GetAppInstanceGroupResponse GetAppInstanceGroupResponse */ public function getAppInstanceGroup($request) { @@ -1156,10 +1249,12 @@ public function getAppInstanceGroup($request) } /** - * @param GetConnectionTicketRequest $request - * @param RuntimeOptions $runtime + * @summary 获取连接ticket,Open API + * * + * @param GetConnectionTicketRequest $request GetConnectionTicketRequest + * @param RuntimeOptions $runtime runtime options for this request RuntimeOptions * - * @return GetConnectionTicketResponse + * @return GetConnectionTicketResponse GetConnectionTicketResponse */ public function getConnectionTicketWithOptions($request, $runtime) { @@ -1214,9 +1309,11 @@ public function getConnectionTicketWithOptions($request, $runtime) } /** - * @param GetConnectionTicketRequest $request + * @summary 获取连接ticket,Open API + * * + * @param GetConnectionTicketRequest $request GetConnectionTicketRequest * - * @return GetConnectionTicketResponse + * @return GetConnectionTicketResponse GetConnectionTicketResponse */ public function getConnectionTicket($request) { @@ -1226,10 +1323,12 @@ public function getConnectionTicket($request) } /** - * @param GetDebugAppInstanceRequest $request - * @param RuntimeOptions $runtime + * @summary GetDebugAppInstance + * * + * @param GetDebugAppInstanceRequest $request GetDebugAppInstanceRequest + * @param RuntimeOptions $runtime runtime options for this request RuntimeOptions * - * @return GetDebugAppInstanceResponse + * @return GetDebugAppInstanceResponse GetDebugAppInstanceResponse */ public function getDebugAppInstanceWithOptions($request, $runtime) { @@ -1260,9 +1359,11 @@ public function getDebugAppInstanceWithOptions($request, $runtime) } /** - * @param GetDebugAppInstanceRequest $request + * @summary GetDebugAppInstance + * * + * @param GetDebugAppInstanceRequest $request GetDebugAppInstanceRequest * - * @return GetDebugAppInstanceResponse + * @return GetDebugAppInstanceResponse GetDebugAppInstanceResponse */ public function getDebugAppInstance($request) { @@ -1272,10 +1373,12 @@ public function getDebugAppInstance($request) } /** - * @param GetOtaTaskByTaskIdRequest $request - * @param RuntimeOptions $runtime + * @summary 获取ota任务明细 + * * + * @param GetOtaTaskByTaskIdRequest $request GetOtaTaskByTaskIdRequest + * @param RuntimeOptions $runtime runtime options for this request RuntimeOptions * - * @return GetOtaTaskByTaskIdResponse + * @return GetOtaTaskByTaskIdResponse GetOtaTaskByTaskIdResponse */ public function getOtaTaskByTaskIdWithOptions($request, $runtime) { @@ -1303,9 +1406,11 @@ public function getOtaTaskByTaskIdWithOptions($request, $runtime) } /** - * @param GetOtaTaskByTaskIdRequest $request + * @summary 获取ota任务明细 + * * + * @param GetOtaTaskByTaskIdRequest $request GetOtaTaskByTaskIdRequest * - * @return GetOtaTaskByTaskIdResponse + * @return GetOtaTaskByTaskIdResponse GetOtaTaskByTaskIdResponse */ public function getOtaTaskByTaskId($request) { @@ -1315,10 +1420,12 @@ public function getOtaTaskByTaskId($request) } /** - * @param GetProjectPoliciesRequest $request - * @param RuntimeOptions $runtime + * @summary 获取策略配置 + * * + * @param GetProjectPoliciesRequest $request GetProjectPoliciesRequest + * @param RuntimeOptions $runtime runtime options for this request RuntimeOptions * - * @return GetProjectPoliciesResponse + * @return GetProjectPoliciesResponse GetProjectPoliciesResponse */ public function getProjectPoliciesWithOptions($request, $runtime) { @@ -1346,9 +1453,11 @@ public function getProjectPoliciesWithOptions($request, $runtime) } /** - * @param GetProjectPoliciesRequest $request + * @summary 获取策略配置 + * * + * @param GetProjectPoliciesRequest $request GetProjectPoliciesRequest * - * @return GetProjectPoliciesResponse + * @return GetProjectPoliciesResponse GetProjectPoliciesResponse */ public function getProjectPolicies($request) { @@ -1358,10 +1467,12 @@ public function getProjectPolicies($request) } /** - * @param GetResourcePriceRequest $request - * @param RuntimeOptions $runtime + * @summary 云应用资源询价接口 + * * + * @param GetResourcePriceRequest $request GetResourcePriceRequest + * @param RuntimeOptions $runtime runtime options for this request RuntimeOptions * - * @return GetResourcePriceResponse + * @return GetResourcePriceResponse GetResourcePriceResponse */ public function getResourcePriceWithOptions($request, $runtime) { @@ -1410,9 +1521,11 @@ public function getResourcePriceWithOptions($request, $runtime) } /** - * @param GetResourcePriceRequest $request + * @summary 云应用资源询价接口 + * * + * @param GetResourcePriceRequest $request GetResourcePriceRequest * - * @return GetResourcePriceResponse + * @return GetResourcePriceResponse GetResourcePriceResponse */ public function getResourcePrice($request) { @@ -1422,10 +1535,12 @@ public function getResourcePrice($request) } /** - * @param GetResourceRenewPriceRequest $request - * @param RuntimeOptions $runtime + * @summary 云应用资源询价接口 + * * + * @param GetResourceRenewPriceRequest $request GetResourceRenewPriceRequest + * @param RuntimeOptions $runtime runtime options for this request RuntimeOptions * - * @return GetResourceRenewPriceResponse + * @return GetResourceRenewPriceResponse GetResourceRenewPriceResponse */ public function getResourceRenewPriceWithOptions($request, $runtime) { @@ -1462,9 +1577,11 @@ public function getResourceRenewPriceWithOptions($request, $runtime) } /** - * @param GetResourceRenewPriceRequest $request + * @summary 云应用资源询价接口 + * * + * @param GetResourceRenewPriceRequest $request GetResourceRenewPriceRequest * - * @return GetResourceRenewPriceResponse + * @return GetResourceRenewPriceResponse GetResourceRenewPriceResponse */ public function getResourceRenewPrice($request) { @@ -1474,10 +1591,12 @@ public function getResourceRenewPrice($request) } /** - * @param ListAccessPagesRequest $request - * @param RuntimeOptions $runtime + * @summary 访问页面分页查询 + * * + * @param ListAccessPagesRequest $request ListAccessPagesRequest + * @param RuntimeOptions $runtime runtime options for this request RuntimeOptions * - * @return ListAccessPagesResponse + * @return ListAccessPagesResponse ListAccessPagesResponse */ public function listAccessPagesWithOptions($request, $runtime) { @@ -1520,9 +1639,11 @@ public function listAccessPagesWithOptions($request, $runtime) } /** - * @param ListAccessPagesRequest $request + * @summary 访问页面分页查询 + * * + * @param ListAccessPagesRequest $request ListAccessPagesRequest * - * @return ListAccessPagesResponse + * @return ListAccessPagesResponse ListAccessPagesResponse */ public function listAccessPages($request) { @@ -1532,10 +1653,12 @@ public function listAccessPages($request) } /** - * @param ListAppInstanceGroupRequest $request - * @param RuntimeOptions $runtime + * @summary 列表展示云应用交付组 + * * + * @param ListAppInstanceGroupRequest $request ListAppInstanceGroupRequest + * @param RuntimeOptions $runtime runtime options for this request RuntimeOptions * - * @return ListAppInstanceGroupResponse + * @return ListAppInstanceGroupResponse ListAppInstanceGroupResponse */ public function listAppInstanceGroupWithOptions($request, $runtime) { @@ -1565,6 +1688,9 @@ 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; @@ -1589,9 +1715,11 @@ public function listAppInstanceGroupWithOptions($request, $runtime) } /** - * @param ListAppInstanceGroupRequest $request + * @summary 列表展示云应用交付组 + * * + * @param ListAppInstanceGroupRequest $request ListAppInstanceGroupRequest * - * @return ListAppInstanceGroupResponse + * @return ListAppInstanceGroupResponse ListAppInstanceGroupResponse */ public function listAppInstanceGroup($request) { @@ -1601,10 +1729,12 @@ public function listAppInstanceGroup($request) } /** - * @param ListAppInstancesRequest $request - * @param RuntimeOptions $runtime + * @summary 查询交付组内实例列表 + * * + * @param ListAppInstancesRequest $request ListAppInstancesRequest + * @param RuntimeOptions $runtime runtime options for this request RuntimeOptions * - * @return ListAppInstancesResponse + * @return ListAppInstancesResponse ListAppInstancesResponse */ public function listAppInstancesWithOptions($request, $runtime) { @@ -1652,9 +1782,11 @@ public function listAppInstancesWithOptions($request, $runtime) } /** - * @param ListAppInstancesRequest $request + * @summary 查询交付组内实例列表 + * * + * @param ListAppInstancesRequest $request ListAppInstancesRequest * - * @return ListAppInstancesResponse + * @return ListAppInstancesResponse ListAppInstancesResponse */ public function listAppInstances($request) { @@ -1664,10 +1796,12 @@ public function listAppInstances($request) } /** - * @param ListNodeInstanceTypeRequest $request - * @param RuntimeOptions $runtime + * @summary 获取资源规格 + * * + * @param ListNodeInstanceTypeRequest $request ListNodeInstanceTypeRequest + * @param RuntimeOptions $runtime runtime options for this request RuntimeOptions * - * @return ListNodeInstanceTypeResponse + * @return ListNodeInstanceTypeResponse ListNodeInstanceTypeResponse */ public function listNodeInstanceTypeWithOptions($request, $runtime) { @@ -1713,9 +1847,11 @@ public function listNodeInstanceTypeWithOptions($request, $runtime) } /** - * @param ListNodeInstanceTypeRequest $request + * @summary 获取资源规格 + * * + * @param ListNodeInstanceTypeRequest $request ListNodeInstanceTypeRequest * - * @return ListNodeInstanceTypeResponse + * @return ListNodeInstanceTypeResponse ListNodeInstanceTypeResponse */ public function listNodeInstanceType($request) { @@ -1725,10 +1861,12 @@ public function listNodeInstanceType($request) } /** - * @param ListOtaTaskRequest $request - * @param RuntimeOptions $runtime + * @summary 升级历史记录 + * * + * @param ListOtaTaskRequest $request ListOtaTaskRequest + * @param RuntimeOptions $runtime runtime options for this request RuntimeOptions * - * @return ListOtaTaskResponse + * @return ListOtaTaskResponse ListOtaTaskResponse */ public function listOtaTaskWithOptions($request, $runtime) { @@ -1765,9 +1903,11 @@ public function listOtaTaskWithOptions($request, $runtime) } /** - * @param ListOtaTaskRequest $request + * @summary 升级历史记录 + * * + * @param ListOtaTaskRequest $request ListOtaTaskRequest * - * @return ListOtaTaskResponse + * @return ListOtaTaskResponse ListOtaTaskResponse */ public function listOtaTask($request) { @@ -1777,10 +1917,12 @@ public function listOtaTask($request) } /** - * @param ListProjectsRequest $request - * @param RuntimeOptions $runtime + * @summary 获取项目列表 + * * + * @param ListProjectsRequest $request ListProjectsRequest + * @param RuntimeOptions $runtime runtime options for this request RuntimeOptions * - * @return ListProjectsResponse + * @return ListProjectsResponse ListProjectsResponse */ public function listProjectsWithOptions($request, $runtime) { @@ -1823,9 +1965,11 @@ public function listProjectsWithOptions($request, $runtime) } /** - * @param ListProjectsRequest $request + * @summary 获取项目列表 + * * + * @param ListProjectsRequest $request ListProjectsRequest * - * @return ListProjectsResponse + * @return ListProjectsResponse ListProjectsResponse */ public function listProjects($request) { @@ -1835,13 +1979,23 @@ public function listProjects($request) } /** - * @param RuntimeOptions $runtime + * @summary 云应用支持的地域列表 + * * + * @param ListRegionsRequest $request ListRegionsRequest + * @param RuntimeOptions $runtime runtime options for this request RuntimeOptions * - * @return ListRegionsResponse + * @return ListRegionsResponse ListRegionsResponse */ - public function listRegionsWithOptions($runtime) + public function listRegionsWithOptions($request, $runtime) { - $req = new OpenApiRequest([]); + Utils::validateModel($request); + $query = []; + if (!Utils::isUnset($request->productType)) { + $query['ProductType'] = $request->productType; + } + $req = new OpenApiRequest([ + 'query' => OpenApiUtilClient::query($query), + ]); $params = new Params([ 'action' => 'ListRegions', 'version' => '2021-09-01', @@ -1858,20 +2012,26 @@ public function listRegionsWithOptions($runtime) } /** - * @return ListRegionsResponse + * @summary 云应用支持的地域列表 + * * + * @param ListRegionsRequest $request ListRegionsRequest + * + * @return ListRegionsResponse ListRegionsResponse */ - public function listRegions() + public function listRegions($request) { $runtime = new RuntimeOptions([]); - return $this->listRegionsWithOptions($runtime); + return $this->listRegionsWithOptions($request, $runtime); } /** - * @param ListSessionPackagesRequest $request - * @param RuntimeOptions $runtime + * @summary 项目的会话包列表 + * * + * @param ListSessionPackagesRequest $request ListSessionPackagesRequest + * @param RuntimeOptions $runtime runtime options for this request RuntimeOptions * - * @return ListSessionPackagesResponse + * @return ListSessionPackagesResponse ListSessionPackagesResponse */ public function listSessionPackagesWithOptions($request, $runtime) { @@ -1917,9 +2077,11 @@ public function listSessionPackagesWithOptions($request, $runtime) } /** - * @param ListSessionPackagesRequest $request + * @summary 项目的会话包列表 + * * + * @param ListSessionPackagesRequest $request ListSessionPackagesRequest * - * @return ListSessionPackagesResponse + * @return ListSessionPackagesResponse ListSessionPackagesResponse */ public function listSessionPackages($request) { @@ -1929,9 +2091,9 @@ public function listSessionPackages($request) } /** - * @param RuntimeOptions $runtime + * @param RuntimeOptions $runtime runtime options for this request RuntimeOptions * - * @return ListTenantConfigResponse + * @return ListTenantConfigResponse ListTenantConfigResponse */ public function listTenantConfigWithOptions($runtime) { @@ -1952,7 +2114,7 @@ public function listTenantConfigWithOptions($runtime) } /** - * @return ListTenantConfigResponse + * @return ListTenantConfigResponse ListTenantConfigResponse */ public function listTenantConfig() { @@ -1962,10 +2124,12 @@ public function listTenantConfig() } /** - * @param LogOffAllSessionsInAppInstanceGroupRequest $request - * @param RuntimeOptions $runtime + * @summary 注销交付下所有会话 + * * + * @param LogOffAllSessionsInAppInstanceGroupRequest $request LogOffAllSessionsInAppInstanceGroupRequest + * @param RuntimeOptions $runtime runtime options for this request RuntimeOptions * - * @return LogOffAllSessionsInAppInstanceGroupResponse + * @return LogOffAllSessionsInAppInstanceGroupResponse LogOffAllSessionsInAppInstanceGroupResponse */ public function logOffAllSessionsInAppInstanceGroupWithOptions($request, $runtime) { @@ -1996,9 +2160,11 @@ public function logOffAllSessionsInAppInstanceGroupWithOptions($request, $runtim } /** - * @param LogOffAllSessionsInAppInstanceGroupRequest $request + * @summary 注销交付下所有会话 + * * + * @param LogOffAllSessionsInAppInstanceGroupRequest $request LogOffAllSessionsInAppInstanceGroupRequest * - * @return LogOffAllSessionsInAppInstanceGroupResponse + * @return LogOffAllSessionsInAppInstanceGroupResponse LogOffAllSessionsInAppInstanceGroupResponse */ public function logOffAllSessionsInAppInstanceGroup($request) { @@ -2008,10 +2174,12 @@ public function logOffAllSessionsInAppInstanceGroup($request) } /** - * @param MigrateSessionPackageRequest $request - * @param RuntimeOptions $runtime + * @summary 会话包 迁移/分配 + * * + * @param MigrateSessionPackageRequest $request MigrateSessionPackageRequest + * @param RuntimeOptions $runtime runtime options for this request RuntimeOptions * - * @return MigrateSessionPackageResponse + * @return MigrateSessionPackageResponse MigrateSessionPackageResponse */ public function migrateSessionPackageWithOptions($request, $runtime) { @@ -2045,9 +2213,11 @@ public function migrateSessionPackageWithOptions($request, $runtime) } /** - * @param MigrateSessionPackageRequest $request + * @summary 会话包 迁移/分配 + * * + * @param MigrateSessionPackageRequest $request MigrateSessionPackageRequest * - * @return MigrateSessionPackageResponse + * @return MigrateSessionPackageResponse MigrateSessionPackageResponse */ public function migrateSessionPackage($request) { @@ -2057,10 +2227,12 @@ public function migrateSessionPackage($request) } /** - * @param ModifyAppInstanceGroupAttributeRequest $tmpReq - * @param RuntimeOptions $runtime + * @summary 修改云应用交付组 + * * + * @param ModifyAppInstanceGroupAttributeRequest $tmpReq ModifyAppInstanceGroupAttributeRequest + * @param RuntimeOptions $runtime runtime options for this request RuntimeOptions * - * @return ModifyAppInstanceGroupAttributeResponse + * @return ModifyAppInstanceGroupAttributeResponse ModifyAppInstanceGroupAttributeResponse */ public function modifyAppInstanceGroupAttributeWithOptions($tmpReq, $runtime) { @@ -2131,9 +2303,11 @@ public function modifyAppInstanceGroupAttributeWithOptions($tmpReq, $runtime) } /** - * @param ModifyAppInstanceGroupAttributeRequest $request + * @summary 修改云应用交付组 + * * + * @param ModifyAppInstanceGroupAttributeRequest $request ModifyAppInstanceGroupAttributeRequest * - * @return ModifyAppInstanceGroupAttributeResponse + * @return ModifyAppInstanceGroupAttributeResponse ModifyAppInstanceGroupAttributeResponse */ public function modifyAppInstanceGroupAttribute($request) { @@ -2143,10 +2317,68 @@ public function modifyAppInstanceGroupAttribute($request) } /** - * @param ModifyNodePoolAttributeRequest $tmpReq - * @param RuntimeOptions $runtime + * @summary 修改策略信息 + * * + * @param ModifyAppPolicyRequest $tmpReq ModifyAppPolicyRequest + * @param RuntimeOptions $runtime runtime options for this request RuntimeOptions + * + * @return ModifyAppPolicyResponse ModifyAppPolicyResponse + */ + public function modifyAppPolicyWithOptions($tmpReq, $runtime) + { + Utils::validateModel($tmpReq); + $request = new ModifyAppPolicyShrinkRequest([]); + OpenApiUtilClient::convert($tmpReq, $request); + if (!Utils::isUnset($tmpReq->videoPolicy)) { + $request->videoPolicyShrink = OpenApiUtilClient::arrayToStringWithSpecifiedStyle($tmpReq->videoPolicy, 'VideoPolicy', 'json'); + } + $query = []; + if (!Utils::isUnset($request->appPolicyId)) { + $query['AppPolicyId'] = $request->appPolicyId; + } + if (!Utils::isUnset($request->productType)) { + $query['ProductType'] = $request->productType; + } + if (!Utils::isUnset($request->videoPolicyShrink)) { + $query['VideoPolicy'] = $request->videoPolicyShrink; + } + $req = new OpenApiRequest([ + 'query' => OpenApiUtilClient::query($query), + ]); + $params = new Params([ + 'action' => 'ModifyAppPolicy', + 'version' => '2021-09-01', + 'protocol' => 'HTTPS', + 'pathname' => '/', + 'method' => 'POST', + 'authType' => 'AK', + 'style' => 'RPC', + 'reqBodyType' => 'formData', + 'bodyType' => 'json', + ]); + + return ModifyAppPolicyResponse::fromMap($this->callApi($params, $req, $runtime)); + } + + /** + * @summary 修改策略信息 + * * + * @param ModifyAppPolicyRequest $request ModifyAppPolicyRequest + * + * @return ModifyAppPolicyResponse ModifyAppPolicyResponse + */ + public function modifyAppPolicy($request) + { + $runtime = new RuntimeOptions([]); + + return $this->modifyAppPolicyWithOptions($request, $runtime); + } + + /** + * @param ModifyNodePoolAttributeRequest $tmpReq ModifyNodePoolAttributeRequest + * @param RuntimeOptions $runtime runtime options for this request RuntimeOptions * - * @return ModifyNodePoolAttributeResponse + * @return ModifyNodePoolAttributeResponse ModifyNodePoolAttributeResponse */ public function modifyNodePoolAttributeWithOptions($tmpReq, $runtime) { @@ -2191,9 +2423,9 @@ public function modifyNodePoolAttributeWithOptions($tmpReq, $runtime) } /** - * @param ModifyNodePoolAttributeRequest $request + * @param ModifyNodePoolAttributeRequest $request ModifyNodePoolAttributeRequest * - * @return ModifyNodePoolAttributeResponse + * @return ModifyNodePoolAttributeResponse ModifyNodePoolAttributeResponse */ public function modifyNodePoolAttribute($request) { @@ -2203,10 +2435,12 @@ public function modifyNodePoolAttribute($request) } /** - * @param ModifyProjectPolicyRequest $request - * @param RuntimeOptions $runtime + * @summary 修改项目策略 + * * + * @param ModifyProjectPolicyRequest $request ModifyProjectPolicyRequest + * @param RuntimeOptions $runtime runtime options for this request RuntimeOptions * - * @return ModifyProjectPolicyResponse + * @return ModifyProjectPolicyResponse ModifyProjectPolicyResponse */ public function modifyProjectPolicyWithOptions($request, $runtime) { @@ -2258,9 +2492,11 @@ public function modifyProjectPolicyWithOptions($request, $runtime) } /** - * @param ModifyProjectPolicyRequest $request + * @summary 修改项目策略 + * * + * @param ModifyProjectPolicyRequest $request ModifyProjectPolicyRequest * - * @return ModifyProjectPolicyResponse + * @return ModifyProjectPolicyResponse ModifyProjectPolicyResponse */ public function modifyProjectPolicy($request) { @@ -2270,10 +2506,10 @@ public function modifyProjectPolicy($request) } /** - * @param ModifyTenantConfigRequest $request - * @param RuntimeOptions $runtime + * @param ModifyTenantConfigRequest $request ModifyTenantConfigRequest + * @param RuntimeOptions $runtime runtime options for this request RuntimeOptions * - * @return ModifyTenantConfigResponse + * @return ModifyTenantConfigResponse ModifyTenantConfigResponse */ public function modifyTenantConfigWithOptions($request, $runtime) { @@ -2301,9 +2537,9 @@ public function modifyTenantConfigWithOptions($request, $runtime) } /** - * @param ModifyTenantConfigRequest $request + * @param ModifyTenantConfigRequest $request ModifyTenantConfigRequest * - * @return ModifyTenantConfigResponse + * @return ModifyTenantConfigResponse ModifyTenantConfigResponse */ public function modifyTenantConfig($request) { @@ -2313,10 +2549,12 @@ public function modifyTenantConfig($request) } /** - * @param PageListAppInstanceGroupUserRequest $request - * @param RuntimeOptions $runtime + * @summary 获取授权用户列表 + * * + * @param PageListAppInstanceGroupUserRequest $request PageListAppInstanceGroupUserRequest + * @param RuntimeOptions $runtime runtime options for this request RuntimeOptions * - * @return PageListAppInstanceGroupUserResponse + * @return PageListAppInstanceGroupUserResponse PageListAppInstanceGroupUserResponse */ public function pageListAppInstanceGroupUserWithOptions($request, $runtime) { @@ -2353,9 +2591,11 @@ public function pageListAppInstanceGroupUserWithOptions($request, $runtime) } /** - * @param PageListAppInstanceGroupUserRequest $request + * @summary 获取授权用户列表 + * * + * @param PageListAppInstanceGroupUserRequest $request PageListAppInstanceGroupUserRequest * - * @return PageListAppInstanceGroupUserResponse + * @return PageListAppInstanceGroupUserResponse PageListAppInstanceGroupUserResponse */ public function pageListAppInstanceGroupUser($request) { @@ -2365,10 +2605,12 @@ public function pageListAppInstanceGroupUser($request) } /** - * @param RefreshAccessUrlRequest $request - * @param RuntimeOptions $runtime + * @summary 刷新访问url + * * + * @param RefreshAccessUrlRequest $request RefreshAccessUrlRequest + * @param RuntimeOptions $runtime runtime options for this request RuntimeOptions * - * @return RefreshAccessUrlResponse + * @return RefreshAccessUrlResponse RefreshAccessUrlResponse */ public function refreshAccessUrlWithOptions($request, $runtime) { @@ -2396,9 +2638,11 @@ public function refreshAccessUrlWithOptions($request, $runtime) } /** - * @param RefreshAccessUrlRequest $request + * @summary 刷新访问url + * * + * @param RefreshAccessUrlRequest $request RefreshAccessUrlRequest * - * @return RefreshAccessUrlResponse + * @return RefreshAccessUrlResponse RefreshAccessUrlResponse */ public function refreshAccessUrl($request) { @@ -2408,10 +2652,12 @@ public function refreshAccessUrl($request) } /** - * @param RenewAppInstanceGroupRequest $request - * @param RuntimeOptions $runtime + * @summary 资源续费接口 + * * + * @param RenewAppInstanceGroupRequest $request RenewAppInstanceGroupRequest + * @param RuntimeOptions $runtime runtime options for this request RuntimeOptions * - * @return RenewAppInstanceGroupResponse + * @return RenewAppInstanceGroupResponse RenewAppInstanceGroupResponse */ public function renewAppInstanceGroupWithOptions($request, $runtime) { @@ -2454,9 +2700,11 @@ public function renewAppInstanceGroupWithOptions($request, $runtime) } /** - * @param RenewAppInstanceGroupRequest $request + * @summary 资源续费接口 + * * + * @param RenewAppInstanceGroupRequest $request RenewAppInstanceGroupRequest * - * @return RenewAppInstanceGroupResponse + * @return RenewAppInstanceGroupResponse RenewAppInstanceGroupResponse */ public function renewAppInstanceGroup($request) { @@ -2466,10 +2714,12 @@ public function renewAppInstanceGroup($request) } /** - * @param RenewSessionPackageRequest $request - * @param RuntimeOptions $runtime + * @summary 会话包续费 + * * + * @param RenewSessionPackageRequest $request RenewSessionPackageRequest + * @param RuntimeOptions $runtime runtime options for this request RuntimeOptions * - * @return RenewSessionPackageResponse + * @return RenewSessionPackageResponse RenewSessionPackageResponse */ public function renewSessionPackageWithOptions($request, $runtime) { @@ -2503,9 +2753,11 @@ public function renewSessionPackageWithOptions($request, $runtime) } /** - * @param RenewSessionPackageRequest $request + * @summary 会话包续费 + * * + * @param RenewSessionPackageRequest $request RenewSessionPackageRequest * - * @return RenewSessionPackageResponse + * @return RenewSessionPackageResponse RenewSessionPackageResponse */ public function renewSessionPackage($request) { @@ -2515,10 +2767,12 @@ public function renewSessionPackage($request) } /** - * @param UnbindRequest $request - * @param RuntimeOptions $runtime + * @summary 解除用户绑定 + * * + * @param UnbindRequest $request UnbindRequest + * @param RuntimeOptions $runtime runtime options for this request RuntimeOptions * - * @return UnbindResponse + * @return UnbindResponse UnbindResponse */ public function unbindWithOptions($request, $runtime) { @@ -2558,9 +2812,11 @@ public function unbindWithOptions($request, $runtime) } /** - * @param UnbindRequest $request + * @summary 解除用户绑定 + * * + * @param UnbindRequest $request UnbindRequest * - * @return UnbindResponse + * @return UnbindResponse UnbindResponse */ public function unbind($request) { @@ -2570,10 +2826,12 @@ public function unbind($request) } /** - * @param UpdateAccessPageStateRequest $request - * @param RuntimeOptions $runtime + * @summary 更新访问页面状态 + * * + * @param UpdateAccessPageStateRequest $request UpdateAccessPageStateRequest + * @param RuntimeOptions $runtime runtime options for this request RuntimeOptions * - * @return UpdateAccessPageStateResponse + * @return UpdateAccessPageStateResponse UpdateAccessPageStateResponse */ public function updateAccessPageStateWithOptions($request, $runtime) { @@ -2604,9 +2862,11 @@ public function updateAccessPageStateWithOptions($request, $runtime) } /** - * @param UpdateAccessPageStateRequest $request + * @summary 更新访问页面状态 + * * + * @param UpdateAccessPageStateRequest $request UpdateAccessPageStateRequest * - * @return UpdateAccessPageStateResponse + * @return UpdateAccessPageStateResponse UpdateAccessPageStateResponse */ public function updateAccessPageState($request) { @@ -2616,10 +2876,12 @@ public function updateAccessPageState($request) } /** - * @param UpdateAppInstanceGroupImageRequest $request - * @param RuntimeOptions $runtime + * @summary 更新镜像 + * * + * @param UpdateAppInstanceGroupImageRequest $request UpdateAppInstanceGroupImageRequest + * @param RuntimeOptions $runtime runtime options for this request RuntimeOptions * - * @return UpdateAppInstanceGroupImageResponse + * @return UpdateAppInstanceGroupImageResponse UpdateAppInstanceGroupImageResponse */ public function updateAppInstanceGroupImageWithOptions($request, $runtime) { @@ -2656,9 +2918,11 @@ public function updateAppInstanceGroupImageWithOptions($request, $runtime) } /** - * @param UpdateAppInstanceGroupImageRequest $request + * @summary 更新镜像 + * * + * @param UpdateAppInstanceGroupImageRequest $request UpdateAppInstanceGroupImageRequest * - * @return UpdateAppInstanceGroupImageResponse + * @return UpdateAppInstanceGroupImageResponse UpdateAppInstanceGroupImageResponse */ public function updateAppInstanceGroupImage($request) { diff --git a/src/Models/AccessPageGetAclResponse.php b/src/Models/AccessPageGetAclResponse.php index db895c2..4702c2a 100644 --- a/src/Models/AccessPageGetAclResponse.php +++ b/src/Models/AccessPageGetAclResponse.php @@ -30,9 +30,6 @@ class AccessPageGetAclResponse extends Model public function validate() { - Model::validateRequired('headers', $this->headers, true); - Model::validateRequired('statusCode', $this->statusCode, true); - Model::validateRequired('body', $this->body, true); } public function toMap() diff --git a/src/Models/AccessPageSetAclRequest.php b/src/Models/AccessPageSetAclRequest.php index dd382ab..12e9148 100644 --- a/src/Models/AccessPageSetAclRequest.php +++ b/src/Models/AccessPageSetAclRequest.php @@ -9,6 +9,8 @@ class AccessPageSetAclRequest extends Model { /** + * @description This parameter is required. + * * @example FREE_ACCESS * * @var string @@ -16,6 +18,8 @@ class AccessPageSetAclRequest extends Model public $accessMode; /** + * @description This parameter is required. + * * @example a-062wec3cwmayw**** * * @var string @@ -30,6 +34,8 @@ class AccessPageSetAclRequest extends Model public $accessPageName; /** + * @description This parameter is required. + * * @example 7 * * @var int diff --git a/src/Models/AccessPageSetAclResponse.php b/src/Models/AccessPageSetAclResponse.php index 092b7e1..277fbda 100644 --- a/src/Models/AccessPageSetAclResponse.php +++ b/src/Models/AccessPageSetAclResponse.php @@ -30,9 +30,6 @@ class AccessPageSetAclResponse extends Model public function validate() { - Model::validateRequired('headers', $this->headers, true); - Model::validateRequired('statusCode', $this->statusCode, true); - Model::validateRequired('body', $this->body, true); } public function toMap() diff --git a/src/Models/ApproveOtaTaskRequest.php b/src/Models/ApproveOtaTaskRequest.php index abf5685..9e829ad 100644 --- a/src/Models/ApproveOtaTaskRequest.php +++ b/src/Models/ApproveOtaTaskRequest.php @@ -9,6 +9,8 @@ class ApproveOtaTaskRequest extends Model { /** + * @description This parameter is required. + * * @example aig-9ciijz60n4xsv**** * * @var string @@ -16,6 +18,8 @@ class ApproveOtaTaskRequest extends Model public $appInstanceGroupId; /** + * @description This parameter is required. + * * @example cn-hangzhou * * @var string @@ -23,6 +27,8 @@ class ApproveOtaTaskRequest extends Model public $bizRegionId; /** + * @description This parameter is required. + * * @example Fota * * @var string @@ -30,6 +36,9 @@ class ApproveOtaTaskRequest extends Model public $otaType; /** + * @description This parameter is required. + * + * Use the UTC time format: yyyy-MM-ddTHH:mmZ * @example 2022-08-04T14:36:00+08:00 * * @var string @@ -37,6 +46,8 @@ class ApproveOtaTaskRequest extends Model public $startTime; /** + * @description This parameter is required. + * * @example ota-be7jzm29wrrz5**** * * @var string diff --git a/src/Models/ApproveOtaTaskResponse.php b/src/Models/ApproveOtaTaskResponse.php index 092e495..f74b0e5 100644 --- a/src/Models/ApproveOtaTaskResponse.php +++ b/src/Models/ApproveOtaTaskResponse.php @@ -30,9 +30,6 @@ class ApproveOtaTaskResponse extends Model public function validate() { - Model::validateRequired('headers', $this->headers, true); - Model::validateRequired('statusCode', $this->statusCode, true); - Model::validateRequired('body', $this->body, true); } public function toMap() diff --git a/src/Models/AskSessionPackagePriceRequest.php b/src/Models/AskSessionPackagePriceRequest.php index e28b5c1..59b7961 100644 --- a/src/Models/AskSessionPackagePriceRequest.php +++ b/src/Models/AskSessionPackagePriceRequest.php @@ -29,6 +29,8 @@ class AskSessionPackagePriceRequest extends Model public $periodUnit; /** + * @description This parameter is required. + * * @example cn-hangzhou * * @var string @@ -43,6 +45,8 @@ class AskSessionPackagePriceRequest extends Model public $sessionPackageType; /** + * @description This parameter is required. + * * @example appstreaming.general.entry * * @var string @@ -50,6 +54,8 @@ class AskSessionPackagePriceRequest extends Model public $sessionSpec; /** + * @description This parameter is required. + * * @example Windows * * @var string diff --git a/src/Models/AskSessionPackagePriceResponse.php b/src/Models/AskSessionPackagePriceResponse.php index b1f39b5..74d153c 100644 --- a/src/Models/AskSessionPackagePriceResponse.php +++ b/src/Models/AskSessionPackagePriceResponse.php @@ -30,9 +30,6 @@ class AskSessionPackagePriceResponse extends Model public function validate() { - Model::validateRequired('headers', $this->headers, true); - Model::validateRequired('statusCode', $this->statusCode, true); - Model::validateRequired('body', $this->body, true); } public function toMap() diff --git a/src/Models/AskSessionPackageRenewPriceRequest.php b/src/Models/AskSessionPackageRenewPriceRequest.php index eaed82d..e1b0f4a 100644 --- a/src/Models/AskSessionPackageRenewPriceRequest.php +++ b/src/Models/AskSessionPackageRenewPriceRequest.php @@ -9,6 +9,8 @@ class AskSessionPackageRenewPriceRequest extends Model { /** + * @description This parameter is required. + * * @example 1 * * @var int @@ -16,6 +18,8 @@ class AskSessionPackageRenewPriceRequest extends Model public $period; /** + * @description This parameter is required. + * * @example Month * * @var string @@ -23,6 +27,8 @@ class AskSessionPackageRenewPriceRequest extends Model public $periodUnit; /** + * @description This parameter is required. + * * @example tp-*********** * * @var string diff --git a/src/Models/AskSessionPackageRenewPriceResponse.php b/src/Models/AskSessionPackageRenewPriceResponse.php index c7e145b..956e3ef 100644 --- a/src/Models/AskSessionPackageRenewPriceResponse.php +++ b/src/Models/AskSessionPackageRenewPriceResponse.php @@ -30,9 +30,6 @@ class AskSessionPackageRenewPriceResponse extends Model public function validate() { - Model::validateRequired('headers', $this->headers, true); - Model::validateRequired('statusCode', $this->statusCode, true); - Model::validateRequired('body', $this->body, true); } public function toMap() diff --git a/src/Models/AuthorizeInstanceGroupRequest.php b/src/Models/AuthorizeInstanceGroupRequest.php index b81369b..5c0e9f0 100644 --- a/src/Models/AuthorizeInstanceGroupRequest.php +++ b/src/Models/AuthorizeInstanceGroupRequest.php @@ -9,6 +9,8 @@ class AuthorizeInstanceGroupRequest extends Model { /** + * @description This parameter is required. + * * @example aig-9ciijz60n4xsv**** * * @var string @@ -21,6 +23,8 @@ class AuthorizeInstanceGroupRequest extends Model public $authorizeUserIds; /** + * @description This parameter is required. + * * @example CloudApp * * @var string diff --git a/src/Models/AuthorizeInstanceGroupResponse.php b/src/Models/AuthorizeInstanceGroupResponse.php index a2ddbaf..1e2af36 100644 --- a/src/Models/AuthorizeInstanceGroupResponse.php +++ b/src/Models/AuthorizeInstanceGroupResponse.php @@ -30,9 +30,6 @@ class AuthorizeInstanceGroupResponse extends Model public function validate() { - Model::validateRequired('headers', $this->headers, true); - Model::validateRequired('statusCode', $this->statusCode, true); - Model::validateRequired('body', $this->body, true); } public function toMap() diff --git a/src/Models/BuySessionPackageRequest.php b/src/Models/BuySessionPackageRequest.php index 8b80a93..85329a3 100644 --- a/src/Models/BuySessionPackageRequest.php +++ b/src/Models/BuySessionPackageRequest.php @@ -8,6 +8,11 @@ class BuySessionPackageRequest extends Model { + /** + * @var bool + */ + public $autoPay; + /** * @var string */ @@ -36,6 +41,8 @@ class BuySessionPackageRequest extends Model public $projectId; /** + * @description This parameter is required. + * * @example cn-hangzhou * * @var string @@ -55,6 +62,8 @@ class BuySessionPackageRequest extends Model public $sessionPackageType; /** + * @description This parameter is required. + * * @example appstreaming.general.entry * * @var string @@ -62,12 +71,15 @@ class BuySessionPackageRequest extends Model public $sessionSpec; /** + * @description This parameter is required. + * * @example Windows * * @var string */ public $sessionType; protected $_name = [ + 'autoPay' => 'AutoPay', 'chargeType' => 'ChargeType', 'maxSessions' => 'MaxSessions', 'period' => 'Period', @@ -87,6 +99,9 @@ public function validate() public function toMap() { $res = []; + if (null !== $this->autoPay) { + $res['AutoPay'] = $this->autoPay; + } if (null !== $this->chargeType) { $res['ChargeType'] = $this->chargeType; } @@ -129,6 +144,9 @@ public function toMap() public static function fromMap($map = []) { $model = new self(); + if (isset($map['AutoPay'])) { + $model->autoPay = $map['AutoPay']; + } if (isset($map['ChargeType'])) { $model->chargeType = $map['ChargeType']; } diff --git a/src/Models/BuySessionPackageResponse.php b/src/Models/BuySessionPackageResponse.php index 72953c5..8aa6ac1 100644 --- a/src/Models/BuySessionPackageResponse.php +++ b/src/Models/BuySessionPackageResponse.php @@ -30,9 +30,6 @@ class BuySessionPackageResponse extends Model public function validate() { - Model::validateRequired('headers', $this->headers, true); - Model::validateRequired('statusCode', $this->statusCode, true); - Model::validateRequired('body', $this->body, true); } public function toMap() diff --git a/src/Models/CancelOtaTaskRequest.php b/src/Models/CancelOtaTaskRequest.php index bf91f93..ce92419 100644 --- a/src/Models/CancelOtaTaskRequest.php +++ b/src/Models/CancelOtaTaskRequest.php @@ -9,6 +9,8 @@ class CancelOtaTaskRequest extends Model { /** + * @description This parameter is required. + * * @example aig-53fvrq1oanz6c**** * * @var string @@ -16,6 +18,8 @@ class CancelOtaTaskRequest extends Model public $appInstanceGroupId; /** + * @description This parameter is required. + * * @example ota-be7jzm29wrrz5**** * * @var string diff --git a/src/Models/CancelOtaTaskResponse.php b/src/Models/CancelOtaTaskResponse.php index 711fc64..ad6e036 100644 --- a/src/Models/CancelOtaTaskResponse.php +++ b/src/Models/CancelOtaTaskResponse.php @@ -30,9 +30,6 @@ class CancelOtaTaskResponse extends Model public function validate() { - Model::validateRequired('headers', $this->headers, true); - Model::validateRequired('statusCode', $this->statusCode, true); - Model::validateRequired('body', $this->body, true); } public function toMap() diff --git a/src/Models/CreateAccessPageRequest.php b/src/Models/CreateAccessPageRequest.php index b28a11e..cd85a68 100644 --- a/src/Models/CreateAccessPageRequest.php +++ b/src/Models/CreateAccessPageRequest.php @@ -9,6 +9,8 @@ class CreateAccessPageRequest extends Model { /** + * @description This parameter is required. + * * @var string */ public $accessPageName; @@ -28,6 +30,8 @@ class CreateAccessPageRequest extends Model public $effectTime; /** + * @description This parameter is required. + * * @example p-065zdecaer07h**** * * @var string diff --git a/src/Models/CreateAccessPageResponse.php b/src/Models/CreateAccessPageResponse.php index 9aafa32..a6da544 100644 --- a/src/Models/CreateAccessPageResponse.php +++ b/src/Models/CreateAccessPageResponse.php @@ -30,9 +30,6 @@ class CreateAccessPageResponse extends Model public function validate() { - Model::validateRequired('headers', $this->headers, true); - Model::validateRequired('statusCode', $this->statusCode, true); - Model::validateRequired('body', $this->body, true); } public function toMap() diff --git a/src/Models/CreateAppInstanceGroupRequest.php b/src/Models/CreateAppInstanceGroupRequest.php index 2a80bcb..3583868 100644 --- a/src/Models/CreateAppInstanceGroupRequest.php +++ b/src/Models/CreateAppInstanceGroupRequest.php @@ -9,12 +9,16 @@ use AlibabaCloud\SDK\Appstreamcenter\V20210901\Models\CreateAppInstanceGroupRequest\runtimePolicy; use AlibabaCloud\SDK\Appstreamcenter\V20210901\Models\CreateAppInstanceGroupRequest\securityPolicy; use AlibabaCloud\SDK\Appstreamcenter\V20210901\Models\CreateAppInstanceGroupRequest\storagePolicy; +use AlibabaCloud\SDK\Appstreamcenter\V20210901\Models\CreateAppInstanceGroupRequest\userDefinePolicy; use AlibabaCloud\SDK\Appstreamcenter\V20210901\Models\CreateAppInstanceGroupRequest\userInfo; +use AlibabaCloud\SDK\Appstreamcenter\V20210901\Models\CreateAppInstanceGroupRequest\videoPolicy; use AlibabaCloud\Tea\Model; class CreateAppInstanceGroupRequest extends Model { /** + * @description This parameter is required. + * * @example img-8z4nztpaqvay4**** * * @var string @@ -22,6 +26,8 @@ class CreateAppInstanceGroupRequest extends Model public $appCenterImageId; /** + * @description This parameter is required. + * * @var string */ public $appInstanceGroupName; @@ -41,6 +47,8 @@ class CreateAppInstanceGroupRequest extends Model public $autoRenew; /** + * @description This parameter is required. + * * @example cn-hangzhou * * @var string @@ -48,6 +56,8 @@ class CreateAppInstanceGroupRequest extends Model public $bizRegionId; /** + * @description This parameter is required. + * * @example Node * * @var string @@ -55,6 +65,8 @@ class CreateAppInstanceGroupRequest extends Model public $chargeResourceMode; /** + * @description This parameter is required. + * * @example PrePaid * * @var string @@ -72,6 +84,8 @@ class CreateAppInstanceGroupRequest extends Model public $nodePool; /** + * @description This parameter is required. + * * @example 1 * * @var int @@ -79,6 +93,8 @@ class CreateAppInstanceGroupRequest extends Model public $period; /** + * @description This parameter is required. + * * @var string */ public $periodUnit; @@ -91,6 +107,8 @@ class CreateAppInstanceGroupRequest extends Model public $preOpenAppId; /** + * @description This parameter is required. + * * @example CloudApp * * @var string @@ -115,6 +133,8 @@ class CreateAppInstanceGroupRequest extends Model public $securityPolicy; /** + * @description This parameter is required. + * * @example 15 * * @var int @@ -126,6 +146,11 @@ class CreateAppInstanceGroupRequest extends Model */ public $storagePolicy; + /** + * @var userDefinePolicy + */ + public $userDefinePolicy; + /** * @var userInfo */ @@ -135,6 +160,11 @@ class CreateAppInstanceGroupRequest extends Model * @var string[] */ public $users; + + /** + * @var videoPolicy + */ + public $videoPolicy; protected $_name = [ 'appCenterImageId' => 'AppCenterImageId', 'appInstanceGroupName' => 'AppInstanceGroupName', @@ -154,8 +184,10 @@ class CreateAppInstanceGroupRequest extends Model 'securityPolicy' => 'SecurityPolicy', 'sessionTimeout' => 'SessionTimeout', 'storagePolicy' => 'StoragePolicy', + 'userDefinePolicy' => 'UserDefinePolicy', 'userInfo' => 'UserInfo', 'users' => 'Users', + 'videoPolicy' => 'VideoPolicy', ]; public function validate() @@ -219,12 +251,18 @@ public function toMap() if (null !== $this->storagePolicy) { $res['StoragePolicy'] = null !== $this->storagePolicy ? $this->storagePolicy->toMap() : null; } + if (null !== $this->userDefinePolicy) { + $res['UserDefinePolicy'] = null !== $this->userDefinePolicy ? $this->userDefinePolicy->toMap() : null; + } if (null !== $this->userInfo) { $res['UserInfo'] = null !== $this->userInfo ? $this->userInfo->toMap() : null; } if (null !== $this->users) { $res['Users'] = $this->users; } + if (null !== $this->videoPolicy) { + $res['VideoPolicy'] = null !== $this->videoPolicy ? $this->videoPolicy->toMap() : null; + } return $res; } @@ -291,6 +329,9 @@ public static function fromMap($map = []) if (isset($map['StoragePolicy'])) { $model->storagePolicy = storagePolicy::fromMap($map['StoragePolicy']); } + if (isset($map['UserDefinePolicy'])) { + $model->userDefinePolicy = userDefinePolicy::fromMap($map['UserDefinePolicy']); + } if (isset($map['UserInfo'])) { $model->userInfo = userInfo::fromMap($map['UserInfo']); } @@ -299,6 +340,9 @@ public static function fromMap($map = []) $model->users = $map['Users']; } } + if (isset($map['VideoPolicy'])) { + $model->videoPolicy = videoPolicy::fromMap($map['VideoPolicy']); + } return $model; } diff --git a/src/Models/CreateAppInstanceGroupRequest/userDefinePolicy.php b/src/Models/CreateAppInstanceGroupRequest/userDefinePolicy.php new file mode 100644 index 0000000..a883920 --- /dev/null +++ b/src/Models/CreateAppInstanceGroupRequest/userDefinePolicy.php @@ -0,0 +1,47 @@ + 'CustomConfig', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->customConfig) { + $res['CustomConfig'] = $this->customConfig; + } + + return $res; + } + + /** + * @param array $map + * + * @return userDefinePolicy + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['CustomConfig'])) { + $model->customConfig = $map['CustomConfig']; + } + + return $model; + } +} diff --git a/src/Models/CreateAppInstanceGroupRequest/videoPolicy.php b/src/Models/CreateAppInstanceGroupRequest/videoPolicy.php new file mode 100644 index 0000000..f9365c6 --- /dev/null +++ b/src/Models/CreateAppInstanceGroupRequest/videoPolicy.php @@ -0,0 +1,107 @@ + 'FrameRate', + 'sessionResolutionHeight' => 'SessionResolutionHeight', + 'sessionResolutionWidth' => 'SessionResolutionWidth', + 'streamingMode' => 'StreamingMode', + 'terminalResolutionAdaptive' => 'TerminalResolutionAdaptive', + 'webrtc' => 'Webrtc', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->frameRate) { + $res['FrameRate'] = $this->frameRate; + } + 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->terminalResolutionAdaptive) { + $res['TerminalResolutionAdaptive'] = $this->terminalResolutionAdaptive; + } + if (null !== $this->webrtc) { + $res['Webrtc'] = $this->webrtc; + } + + return $res; + } + + /** + * @param array $map + * + * @return videoPolicy + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['FrameRate'])) { + $model->frameRate = $map['FrameRate']; + } + 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['TerminalResolutionAdaptive'])) { + $model->terminalResolutionAdaptive = $map['TerminalResolutionAdaptive']; + } + if (isset($map['Webrtc'])) { + $model->webrtc = $map['Webrtc']; + } + + return $model; + } +} diff --git a/src/Models/CreateAppInstanceGroupResponse.php b/src/Models/CreateAppInstanceGroupResponse.php index a49ccac..5ae7a22 100644 --- a/src/Models/CreateAppInstanceGroupResponse.php +++ b/src/Models/CreateAppInstanceGroupResponse.php @@ -30,9 +30,6 @@ class CreateAppInstanceGroupResponse extends Model public function validate() { - Model::validateRequired('headers', $this->headers, true); - Model::validateRequired('statusCode', $this->statusCode, true); - Model::validateRequired('body', $this->body, true); } public function toMap() diff --git a/src/Models/CreateAppInstanceGroupShrinkRequest.php b/src/Models/CreateAppInstanceGroupShrinkRequest.php index c3a3fda..b0c787e 100644 --- a/src/Models/CreateAppInstanceGroupShrinkRequest.php +++ b/src/Models/CreateAppInstanceGroupShrinkRequest.php @@ -9,6 +9,8 @@ class CreateAppInstanceGroupShrinkRequest extends Model { /** + * @description This parameter is required. + * * @example img-8z4nztpaqvay4**** * * @var string @@ -16,6 +18,8 @@ class CreateAppInstanceGroupShrinkRequest extends Model public $appCenterImageId; /** + * @description This parameter is required. + * * @var string */ public $appInstanceGroupName; @@ -35,6 +39,8 @@ class CreateAppInstanceGroupShrinkRequest extends Model public $autoRenew; /** + * @description This parameter is required. + * * @example cn-hangzhou * * @var string @@ -42,6 +48,8 @@ class CreateAppInstanceGroupShrinkRequest extends Model public $bizRegionId; /** + * @description This parameter is required. + * * @example Node * * @var string @@ -49,6 +57,8 @@ class CreateAppInstanceGroupShrinkRequest extends Model public $chargeResourceMode; /** + * @description This parameter is required. + * * @example PrePaid * * @var string @@ -66,6 +76,8 @@ class CreateAppInstanceGroupShrinkRequest extends Model public $nodePoolShrink; /** + * @description This parameter is required. + * * @example 1 * * @var int @@ -73,6 +85,8 @@ class CreateAppInstanceGroupShrinkRequest extends Model public $period; /** + * @description This parameter is required. + * * @var string */ public $periodUnit; @@ -85,6 +99,8 @@ class CreateAppInstanceGroupShrinkRequest extends Model public $preOpenAppId; /** + * @description This parameter is required. + * * @example CloudApp * * @var string @@ -109,6 +125,8 @@ class CreateAppInstanceGroupShrinkRequest extends Model public $securityPolicyShrink; /** + * @description This parameter is required. + * * @example 15 * * @var int @@ -120,6 +138,11 @@ class CreateAppInstanceGroupShrinkRequest extends Model */ public $storagePolicyShrink; + /** + * @var string + */ + public $userDefinePolicyShrink; + /** * @var string */ @@ -129,27 +152,34 @@ class CreateAppInstanceGroupShrinkRequest extends Model * @var string[] */ public $users; + + /** + * @var string + */ + public $videoPolicyShrink; protected $_name = [ - 'appCenterImageId' => 'AppCenterImageId', - 'appInstanceGroupName' => 'AppInstanceGroupName', - 'autoPay' => 'AutoPay', - 'autoRenew' => 'AutoRenew', - 'bizRegionId' => 'BizRegionId', - 'chargeResourceMode' => 'ChargeResourceMode', - 'chargeType' => 'ChargeType', - 'networkShrink' => 'Network', - 'nodePoolShrink' => 'NodePool', - 'period' => 'Period', - 'periodUnit' => 'PeriodUnit', - 'preOpenAppId' => 'PreOpenAppId', - 'productType' => 'ProductType', - 'promotionId' => 'PromotionId', - 'runtimePolicyShrink' => 'RuntimePolicy', - 'securityPolicyShrink' => 'SecurityPolicy', - 'sessionTimeout' => 'SessionTimeout', - 'storagePolicyShrink' => 'StoragePolicy', - 'userInfoShrink' => 'UserInfo', - 'users' => 'Users', + 'appCenterImageId' => 'AppCenterImageId', + 'appInstanceGroupName' => 'AppInstanceGroupName', + 'autoPay' => 'AutoPay', + 'autoRenew' => 'AutoRenew', + 'bizRegionId' => 'BizRegionId', + 'chargeResourceMode' => 'ChargeResourceMode', + 'chargeType' => 'ChargeType', + 'networkShrink' => 'Network', + 'nodePoolShrink' => 'NodePool', + 'period' => 'Period', + 'periodUnit' => 'PeriodUnit', + 'preOpenAppId' => 'PreOpenAppId', + 'productType' => 'ProductType', + 'promotionId' => 'PromotionId', + 'runtimePolicyShrink' => 'RuntimePolicy', + 'securityPolicyShrink' => 'SecurityPolicy', + 'sessionTimeout' => 'SessionTimeout', + 'storagePolicyShrink' => 'StoragePolicy', + 'userDefinePolicyShrink' => 'UserDefinePolicy', + 'userInfoShrink' => 'UserInfo', + 'users' => 'Users', + 'videoPolicyShrink' => 'VideoPolicy', ]; public function validate() @@ -213,12 +243,18 @@ public function toMap() if (null !== $this->storagePolicyShrink) { $res['StoragePolicy'] = $this->storagePolicyShrink; } + if (null !== $this->userDefinePolicyShrink) { + $res['UserDefinePolicy'] = $this->userDefinePolicyShrink; + } if (null !== $this->userInfoShrink) { $res['UserInfo'] = $this->userInfoShrink; } if (null !== $this->users) { $res['Users'] = $this->users; } + if (null !== $this->videoPolicyShrink) { + $res['VideoPolicy'] = $this->videoPolicyShrink; + } return $res; } @@ -285,6 +321,9 @@ public static function fromMap($map = []) if (isset($map['StoragePolicy'])) { $model->storagePolicyShrink = $map['StoragePolicy']; } + if (isset($map['UserDefinePolicy'])) { + $model->userDefinePolicyShrink = $map['UserDefinePolicy']; + } if (isset($map['UserInfo'])) { $model->userInfoShrink = $map['UserInfo']; } @@ -293,6 +332,9 @@ public static function fromMap($map = []) $model->users = $map['Users']; } } + if (isset($map['VideoPolicy'])) { + $model->videoPolicyShrink = $map['VideoPolicy']; + } return $model; } diff --git a/src/Models/CreateImageFromAppInstanceGroupRequest.php b/src/Models/CreateImageFromAppInstanceGroupRequest.php index 52b9ad7..ec3553d 100644 --- a/src/Models/CreateImageFromAppInstanceGroupRequest.php +++ b/src/Models/CreateImageFromAppInstanceGroupRequest.php @@ -9,6 +9,8 @@ class CreateImageFromAppInstanceGroupRequest extends Model { /** + * @description This parameter is required. + * * @example test_name * * @var string @@ -16,6 +18,8 @@ class CreateImageFromAppInstanceGroupRequest extends Model public $appCenterImageName; /** + * @description This parameter is required. + * * @example aig-9ciijz60n4xsv**** * * @var string @@ -23,6 +27,8 @@ class CreateImageFromAppInstanceGroupRequest extends Model public $appInstanceGroupId; /** + * @description This parameter is required. + * * @example CloudApp * * @var string diff --git a/src/Models/CreateImageFromAppInstanceGroupResponse.php b/src/Models/CreateImageFromAppInstanceGroupResponse.php index 0b35cdb..a2413ff 100644 --- a/src/Models/CreateImageFromAppInstanceGroupResponse.php +++ b/src/Models/CreateImageFromAppInstanceGroupResponse.php @@ -30,9 +30,6 @@ class CreateImageFromAppInstanceGroupResponse extends Model public function validate() { - Model::validateRequired('headers', $this->headers, true); - Model::validateRequired('statusCode', $this->statusCode, true); - Model::validateRequired('body', $this->body, true); } public function toMap() diff --git a/src/Models/CreateProjectResponse.php b/src/Models/CreateProjectResponse.php index f28b0d6..fe6557b 100644 --- a/src/Models/CreateProjectResponse.php +++ b/src/Models/CreateProjectResponse.php @@ -30,9 +30,6 @@ class CreateProjectResponse extends Model public function validate() { - Model::validateRequired('headers', $this->headers, true); - Model::validateRequired('statusCode', $this->statusCode, true); - Model::validateRequired('body', $this->body, true); } public function toMap() diff --git a/src/Models/DeleteAccessPageResponse.php b/src/Models/DeleteAccessPageResponse.php index 580ee27..c7b6147 100644 --- a/src/Models/DeleteAccessPageResponse.php +++ b/src/Models/DeleteAccessPageResponse.php @@ -30,9 +30,6 @@ class DeleteAccessPageResponse extends Model public function validate() { - Model::validateRequired('headers', $this->headers, true); - Model::validateRequired('statusCode', $this->statusCode, true); - Model::validateRequired('body', $this->body, true); } public function toMap() diff --git a/src/Models/DeleteAppInstanceGroupRequest.php b/src/Models/DeleteAppInstanceGroupRequest.php index 5feb48b..a198d5e 100644 --- a/src/Models/DeleteAppInstanceGroupRequest.php +++ b/src/Models/DeleteAppInstanceGroupRequest.php @@ -9,6 +9,8 @@ class DeleteAppInstanceGroupRequest extends Model { /** + * @description This parameter is required. + * * @example aig-9ciijz60n4xsv**** * * @var string @@ -16,6 +18,8 @@ class DeleteAppInstanceGroupRequest extends Model public $appInstanceGroupId; /** + * @description This parameter is required. + * * @example CloudApp * * @var string diff --git a/src/Models/DeleteAppInstanceGroupResponse.php b/src/Models/DeleteAppInstanceGroupResponse.php index ad0ddec..598512f 100644 --- a/src/Models/DeleteAppInstanceGroupResponse.php +++ b/src/Models/DeleteAppInstanceGroupResponse.php @@ -30,9 +30,6 @@ class DeleteAppInstanceGroupResponse extends Model public function validate() { - Model::validateRequired('headers', $this->headers, true); - Model::validateRequired('statusCode', $this->statusCode, true); - Model::validateRequired('body', $this->body, true); } public function toMap() diff --git a/src/Models/DeleteAppInstancesRequest.php b/src/Models/DeleteAppInstancesRequest.php index 20d6b2e..6bef94d 100644 --- a/src/Models/DeleteAppInstancesRequest.php +++ b/src/Models/DeleteAppInstancesRequest.php @@ -9,6 +9,8 @@ class DeleteAppInstancesRequest extends Model { /** + * @description This parameter is required. + * * @example aig-9ciijz60n4xsv**** * * @var string @@ -16,11 +18,15 @@ class DeleteAppInstancesRequest extends Model public $appInstanceGroupId; /** + * @description This parameter is required. + * * @var string[] */ public $appInstanceIds; /** + * @description This parameter is required. + * * @example CloudApp * * @var string diff --git a/src/Models/DeleteAppInstancesResponse.php b/src/Models/DeleteAppInstancesResponse.php index b4204aa..5e9164b 100644 --- a/src/Models/DeleteAppInstancesResponse.php +++ b/src/Models/DeleteAppInstancesResponse.php @@ -30,9 +30,6 @@ class DeleteAppInstancesResponse extends Model public function validate() { - Model::validateRequired('headers', $this->headers, true); - Model::validateRequired('statusCode', $this->statusCode, true); - Model::validateRequired('body', $this->body, true); } public function toMap() diff --git a/src/Models/DeleteProjectResponse.php b/src/Models/DeleteProjectResponse.php index 32eb5ed..712a89b 100644 --- a/src/Models/DeleteProjectResponse.php +++ b/src/Models/DeleteProjectResponse.php @@ -30,9 +30,6 @@ class DeleteProjectResponse extends Model public function validate() { - Model::validateRequired('headers', $this->headers, true); - Model::validateRequired('statusCode', $this->statusCode, true); - Model::validateRequired('body', $this->body, true); } public function toMap() diff --git a/src/Models/GetAccessPageSessionRequest.php b/src/Models/GetAccessPageSessionRequest.php index 920be65..bfd5743 100644 --- a/src/Models/GetAccessPageSessionRequest.php +++ b/src/Models/GetAccessPageSessionRequest.php @@ -9,6 +9,8 @@ class GetAccessPageSessionRequest extends Model { /** + * @description This parameter is required. + * * @example a-062wec3cwmayw**** * * @var string @@ -16,6 +18,8 @@ class GetAccessPageSessionRequest extends Model public $accessPageId; /** + * @description This parameter is required. + * * @example 8141B1A674D48ACB8E5D2D6CE53FDB2F3CF8710A5F8F78578D5254BC6F****** * * @var string diff --git a/src/Models/GetAccessPageSessionResponse.php b/src/Models/GetAccessPageSessionResponse.php index 071e642..46928c1 100644 --- a/src/Models/GetAccessPageSessionResponse.php +++ b/src/Models/GetAccessPageSessionResponse.php @@ -30,9 +30,6 @@ class GetAccessPageSessionResponse extends Model public function validate() { - Model::validateRequired('headers', $this->headers, true); - Model::validateRequired('statusCode', $this->statusCode, true); - Model::validateRequired('body', $this->body, true); } public function toMap() diff --git a/src/Models/GetAppInstanceGroupRequest.php b/src/Models/GetAppInstanceGroupRequest.php index 3aa4ab0..c732356 100644 --- a/src/Models/GetAppInstanceGroupRequest.php +++ b/src/Models/GetAppInstanceGroupRequest.php @@ -9,6 +9,8 @@ class GetAppInstanceGroupRequest extends Model { /** + * @description This parameter is required. + * * @example aig-9ciijz60n4xsv**** * * @var string @@ -16,6 +18,8 @@ class GetAppInstanceGroupRequest extends Model public $appInstanceGroupId; /** + * @description This parameter is required. + * * @example CloudApp * * @var string diff --git a/src/Models/GetAppInstanceGroupResponse.php b/src/Models/GetAppInstanceGroupResponse.php index 0b03590..9420bc4 100644 --- a/src/Models/GetAppInstanceGroupResponse.php +++ b/src/Models/GetAppInstanceGroupResponse.php @@ -30,9 +30,6 @@ class GetAppInstanceGroupResponse extends Model public function validate() { - Model::validateRequired('headers', $this->headers, true); - Model::validateRequired('statusCode', $this->statusCode, true); - Model::validateRequired('body', $this->body, true); } public function toMap() diff --git a/src/Models/GetConnectionTicketRequest.php b/src/Models/GetConnectionTicketRequest.php index e84bbd8..23390e0 100644 --- a/src/Models/GetConnectionTicketRequest.php +++ b/src/Models/GetConnectionTicketRequest.php @@ -54,6 +54,8 @@ class GetConnectionTicketRequest extends Model public $bizRegionId; /** + * @description This parameter is required. + * * @example alice * * @var string @@ -61,6 +63,8 @@ class GetConnectionTicketRequest extends Model public $endUserId; /** + * @description This parameter is required. + * * @example CloudApp * * @var string diff --git a/src/Models/GetConnectionTicketResponse.php b/src/Models/GetConnectionTicketResponse.php index 00b7926..be68666 100644 --- a/src/Models/GetConnectionTicketResponse.php +++ b/src/Models/GetConnectionTicketResponse.php @@ -30,9 +30,6 @@ class GetConnectionTicketResponse extends Model public function validate() { - Model::validateRequired('headers', $this->headers, true); - Model::validateRequired('statusCode', $this->statusCode, true); - Model::validateRequired('body', $this->body, true); } public function toMap() diff --git a/src/Models/GetDebugAppInstanceRequest.php b/src/Models/GetDebugAppInstanceRequest.php index 813ea20..b72975f 100644 --- a/src/Models/GetDebugAppInstanceRequest.php +++ b/src/Models/GetDebugAppInstanceRequest.php @@ -9,6 +9,8 @@ class GetDebugAppInstanceRequest extends Model { /** + * @description This parameter is required. + * * @example aig-9ciijz60n4xsv**** * * @var string @@ -16,6 +18,8 @@ class GetDebugAppInstanceRequest extends Model public $appInstanceGroupId; /** + * @description This parameter is required. + * * @example CloudApp * * @var string diff --git a/src/Models/GetDebugAppInstanceResponse.php b/src/Models/GetDebugAppInstanceResponse.php index d01f21a..ee2474c 100644 --- a/src/Models/GetDebugAppInstanceResponse.php +++ b/src/Models/GetDebugAppInstanceResponse.php @@ -30,9 +30,6 @@ class GetDebugAppInstanceResponse extends Model public function validate() { - Model::validateRequired('headers', $this->headers, true); - Model::validateRequired('statusCode', $this->statusCode, true); - Model::validateRequired('body', $this->body, true); } public function toMap() diff --git a/src/Models/GetOtaTaskByTaskIdRequest.php b/src/Models/GetOtaTaskByTaskIdRequest.php index 0e7b0f2..5d3467a 100644 --- a/src/Models/GetOtaTaskByTaskIdRequest.php +++ b/src/Models/GetOtaTaskByTaskIdRequest.php @@ -9,6 +9,8 @@ class GetOtaTaskByTaskIdRequest extends Model { /** + * @description This parameter is required. + * * @example ota-be7jzm29wrrz5**** * * @var string diff --git a/src/Models/GetOtaTaskByTaskIdResponse.php b/src/Models/GetOtaTaskByTaskIdResponse.php index 504ecc9..1e0098d 100644 --- a/src/Models/GetOtaTaskByTaskIdResponse.php +++ b/src/Models/GetOtaTaskByTaskIdResponse.php @@ -30,9 +30,6 @@ class GetOtaTaskByTaskIdResponse extends Model public function validate() { - Model::validateRequired('headers', $this->headers, true); - Model::validateRequired('statusCode', $this->statusCode, true); - Model::validateRequired('body', $this->body, true); } public function toMap() diff --git a/src/Models/GetOtaTaskByTaskIdResponseBody.php b/src/Models/GetOtaTaskByTaskIdResponseBody.php index e9b41c8..8f72c0f 100644 --- a/src/Models/GetOtaTaskByTaskIdResponseBody.php +++ b/src/Models/GetOtaTaskByTaskIdResponseBody.php @@ -42,6 +42,8 @@ class GetOtaTaskByTaskIdResponseBody extends Model public $requestId; /** + * @description Use the UTC time format: yyyy-MM-ddTHH:mmZ + * * @example 2022-08-04T14:36:00+08:00 * * @var string diff --git a/src/Models/GetProjectPoliciesResponse.php b/src/Models/GetProjectPoliciesResponse.php index 8029ed7..1053d37 100644 --- a/src/Models/GetProjectPoliciesResponse.php +++ b/src/Models/GetProjectPoliciesResponse.php @@ -30,9 +30,6 @@ class GetProjectPoliciesResponse extends Model public function validate() { - Model::validateRequired('headers', $this->headers, true); - Model::validateRequired('statusCode', $this->statusCode, true); - Model::validateRequired('body', $this->body, true); } public function toMap() diff --git a/src/Models/GetResourcePriceRequest.php b/src/Models/GetResourcePriceRequest.php index 965b44e..feb6f08 100644 --- a/src/Models/GetResourcePriceRequest.php +++ b/src/Models/GetResourcePriceRequest.php @@ -9,6 +9,8 @@ class GetResourcePriceRequest extends Model { /** + * @description This parameter is required. + * * @example 1 * * @var int @@ -23,6 +25,8 @@ class GetResourcePriceRequest extends Model public $appInstanceType; /** + * @description This parameter is required. + * * @example cn-hangzhou * * @var string @@ -30,6 +34,8 @@ class GetResourcePriceRequest extends Model public $bizRegionId; /** + * @description This parameter is required. + * * @example PrePaid * * @var string @@ -44,6 +50,8 @@ class GetResourcePriceRequest extends Model public $nodeInstanceType; /** + * @description This parameter is required. + * * @example 1 * * @var int @@ -51,11 +59,15 @@ class GetResourcePriceRequest extends Model public $period; /** + * @description This parameter is required. + * * @var string */ public $periodUnit; /** + * @description This parameter is required. + * * @example CloudApp * * @var string diff --git a/src/Models/GetResourcePriceResponse.php b/src/Models/GetResourcePriceResponse.php index 8e9d673..5972f0c 100644 --- a/src/Models/GetResourcePriceResponse.php +++ b/src/Models/GetResourcePriceResponse.php @@ -30,9 +30,6 @@ class GetResourcePriceResponse extends Model public function validate() { - Model::validateRequired('headers', $this->headers, true); - Model::validateRequired('statusCode', $this->statusCode, true); - Model::validateRequired('body', $this->body, true); } public function toMap() diff --git a/src/Models/GetResourceRenewPriceRequest.php b/src/Models/GetResourceRenewPriceRequest.php index ee84006..58ff3e6 100644 --- a/src/Models/GetResourceRenewPriceRequest.php +++ b/src/Models/GetResourceRenewPriceRequest.php @@ -9,6 +9,8 @@ class GetResourceRenewPriceRequest extends Model { /** + * @description This parameter is required. + * * @example aig-9ciijz60n4xsv**** * * @var string @@ -16,6 +18,8 @@ class GetResourceRenewPriceRequest extends Model public $appInstanceGroupId; /** + * @description This parameter is required. + * * @example 1 * * @var int @@ -23,6 +27,8 @@ class GetResourceRenewPriceRequest extends Model public $period; /** + * @description This parameter is required. + * * @example Week * * @var string @@ -30,6 +36,8 @@ class GetResourceRenewPriceRequest extends Model public $periodUnit; /** + * @description This parameter is required. + * * @example CloudApp * * @var string diff --git a/src/Models/GetResourceRenewPriceResponse.php b/src/Models/GetResourceRenewPriceResponse.php index ebce0af..3aba31e 100644 --- a/src/Models/GetResourceRenewPriceResponse.php +++ b/src/Models/GetResourceRenewPriceResponse.php @@ -30,9 +30,6 @@ class GetResourceRenewPriceResponse extends Model public function validate() { - Model::validateRequired('headers', $this->headers, true); - Model::validateRequired('statusCode', $this->statusCode, true); - Model::validateRequired('body', $this->body, true); } public function toMap() diff --git a/src/Models/ListAccessPagesResponse.php b/src/Models/ListAccessPagesResponse.php index 29e74cc..8c78b8c 100644 --- a/src/Models/ListAccessPagesResponse.php +++ b/src/Models/ListAccessPagesResponse.php @@ -30,9 +30,6 @@ class ListAccessPagesResponse extends Model public function validate() { - Model::validateRequired('headers', $this->headers, true); - Model::validateRequired('statusCode', $this->statusCode, true); - Model::validateRequired('body', $this->body, true); } public function toMap() diff --git a/src/Models/ListAppInstanceGroupRequest.php b/src/Models/ListAppInstanceGroupRequest.php index b29dbdf..4c1ed7e 100644 --- a/src/Models/ListAppInstanceGroupRequest.php +++ b/src/Models/ListAppInstanceGroupRequest.php @@ -54,12 +54,23 @@ class ListAppInstanceGroupRequest extends Model public $pageSize; /** + * @description This parameter is required. + * * @example CloudApp * * @var string */ public $productType; + /** + * @example cn-hangzhou + * + * @deprecated + * + * @var string + */ + public $regionId; + /** * @var string[] */ @@ -73,6 +84,7 @@ class ListAppInstanceGroupRequest extends Model 'pageNumber' => 'PageNumber', 'pageSize' => 'PageSize', 'productType' => 'ProductType', + 'regionId' => 'RegionId', 'status' => 'Status', ]; @@ -107,6 +119,9 @@ 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; } @@ -146,6 +161,9 @@ 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/ListAppInstanceGroupResponse.php b/src/Models/ListAppInstanceGroupResponse.php index 231e1fc..2397358 100644 --- a/src/Models/ListAppInstanceGroupResponse.php +++ b/src/Models/ListAppInstanceGroupResponse.php @@ -30,9 +30,6 @@ class ListAppInstanceGroupResponse extends Model public function validate() { - Model::validateRequired('headers', $this->headers, true); - Model::validateRequired('statusCode', $this->statusCode, true); - Model::validateRequired('body', $this->body, true); } public function toMap() diff --git a/src/Models/ListAppInstancesRequest.php b/src/Models/ListAppInstancesRequest.php index 234c0b0..ca411e8 100644 --- a/src/Models/ListAppInstancesRequest.php +++ b/src/Models/ListAppInstancesRequest.php @@ -9,6 +9,8 @@ class ListAppInstancesRequest extends Model { /** + * @description This parameter is required. + * * @example aig-4p5f8tj16yb8b**** * * @var string diff --git a/src/Models/ListAppInstancesResponse.php b/src/Models/ListAppInstancesResponse.php index dfb685e..e7fb7a0 100644 --- a/src/Models/ListAppInstancesResponse.php +++ b/src/Models/ListAppInstancesResponse.php @@ -30,9 +30,6 @@ class ListAppInstancesResponse extends Model public function validate() { - Model::validateRequired('headers', $this->headers, true); - Model::validateRequired('statusCode', $this->statusCode, true); - Model::validateRequired('body', $this->body, true); } public function toMap() diff --git a/src/Models/ListNodeInstanceTypeRequest.php b/src/Models/ListNodeInstanceTypeRequest.php index d4ac7e0..e9e3a22 100644 --- a/src/Models/ListNodeInstanceTypeRequest.php +++ b/src/Models/ListNodeInstanceTypeRequest.php @@ -9,7 +9,7 @@ class ListNodeInstanceTypeRequest extends Model { /** - * @description 资源所属的地域ID。关于支持的地域详情,请参见[使用限制](~~426036~~)。 + * @description 资源所属的地域ID。关于支持的地域详情,请参见[使用限制](https://help.aliyun.com/document_detail/426036.html)。 * * @example cn-hangzhou * @@ -43,6 +43,8 @@ class ListNodeInstanceTypeRequest extends Model public $osType; /** + * @description This parameter is required. + * * @example 1 * * @var int @@ -50,6 +52,8 @@ class ListNodeInstanceTypeRequest extends Model public $pageNumber; /** + * @description This parameter is required. + * * @example 10 * * @var int @@ -57,6 +61,8 @@ class ListNodeInstanceTypeRequest extends Model public $pageSize; /** + * @description This parameter is required. + * * @example CloudApp * * @var string diff --git a/src/Models/ListNodeInstanceTypeResponse.php b/src/Models/ListNodeInstanceTypeResponse.php index 171a41a..10931aa 100644 --- a/src/Models/ListNodeInstanceTypeResponse.php +++ b/src/Models/ListNodeInstanceTypeResponse.php @@ -30,9 +30,6 @@ class ListNodeInstanceTypeResponse extends Model public function validate() { - Model::validateRequired('headers', $this->headers, true); - Model::validateRequired('statusCode', $this->statusCode, true); - Model::validateRequired('body', $this->body, true); } public function toMap() diff --git a/src/Models/ListNodeInstanceTypeResponseBody/nodeInstanceTypeModels.php b/src/Models/ListNodeInstanceTypeResponseBody/nodeInstanceTypeModels.php index a2ed2cc..3de6639 100644 --- a/src/Models/ListNodeInstanceTypeResponseBody/nodeInstanceTypeModels.php +++ b/src/Models/ListNodeInstanceTypeResponseBody/nodeInstanceTypeModels.php @@ -34,7 +34,7 @@ class nodeInstanceTypeModels extends Model /** * @description 最大并发会话数,即单个资源可同时连接的会话数。如果同时连接的会话数过多,可能导致应用的使用体验下降。取值范围因资源规格不同而不同。各资源规格对应的取值范围分别是: * - * - appstreaming.vgpu.14c93g.12g:1\~6; + * - appstreaming.vgpu.14c93g.12g:1\\~6; * @example 4 * * @var int diff --git a/src/Models/ListOtaTaskRequest.php b/src/Models/ListOtaTaskRequest.php index a20c4af..7719531 100644 --- a/src/Models/ListOtaTaskRequest.php +++ b/src/Models/ListOtaTaskRequest.php @@ -9,6 +9,8 @@ class ListOtaTaskRequest extends Model { /** + * @description This parameter is required. + * * @example aig-53fvrq1oanz6c**** * * @var string @@ -16,6 +18,8 @@ class ListOtaTaskRequest extends Model public $appInstanceGroupId; /** + * @description This parameter is required. + * * @example Fota * * @var string @@ -23,6 +27,8 @@ class ListOtaTaskRequest extends Model public $otaType; /** + * @description This parameter is required. + * * @example 1 * * @var int @@ -30,6 +36,8 @@ class ListOtaTaskRequest extends Model public $pageNumber; /** + * @description This parameter is required. + * * @example 10 * * @var int diff --git a/src/Models/ListOtaTaskResponse.php b/src/Models/ListOtaTaskResponse.php index ef38a20..83ae8fa 100644 --- a/src/Models/ListOtaTaskResponse.php +++ b/src/Models/ListOtaTaskResponse.php @@ -30,9 +30,6 @@ class ListOtaTaskResponse extends Model public function validate() { - Model::validateRequired('headers', $this->headers, true); - Model::validateRequired('statusCode', $this->statusCode, true); - Model::validateRequired('body', $this->body, true); } public function toMap() diff --git a/src/Models/ListOtaTaskResponseBody/taskList.php b/src/Models/ListOtaTaskResponseBody/taskList.php index d518200..e09c9b9 100644 --- a/src/Models/ListOtaTaskResponseBody/taskList.php +++ b/src/Models/ListOtaTaskResponseBody/taskList.php @@ -30,6 +30,8 @@ class taskList extends Model public $taskId; /** + * @description Use the UTC time format: yyyy-MM-ddTHH:mmZ + * * @example 2022-08-04T14:36:00+08:00 * * @var string diff --git a/src/Models/ListProjectsResponse.php b/src/Models/ListProjectsResponse.php index 408abc3..6c0968e 100644 --- a/src/Models/ListProjectsResponse.php +++ b/src/Models/ListProjectsResponse.php @@ -30,9 +30,6 @@ class ListProjectsResponse extends Model public function validate() { - Model::validateRequired('headers', $this->headers, true); - Model::validateRequired('statusCode', $this->statusCode, true); - Model::validateRequired('body', $this->body, true); } public function toMap() diff --git a/src/Models/ListRegionsRequest.php b/src/Models/ListRegionsRequest.php new file mode 100644 index 0000000..2d96a50 --- /dev/null +++ b/src/Models/ListRegionsRequest.php @@ -0,0 +1,47 @@ + 'ProductType', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->productType) { + $res['ProductType'] = $this->productType; + } + + return $res; + } + + /** + * @param array $map + * + * @return ListRegionsRequest + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['ProductType'])) { + $model->productType = $map['ProductType']; + } + + return $model; + } +} diff --git a/src/Models/ListRegionsResponse.php b/src/Models/ListRegionsResponse.php index e7ef057..3721527 100644 --- a/src/Models/ListRegionsResponse.php +++ b/src/Models/ListRegionsResponse.php @@ -30,9 +30,6 @@ class ListRegionsResponse extends Model public function validate() { - Model::validateRequired('headers', $this->headers, true); - Model::validateRequired('statusCode', $this->statusCode, true); - Model::validateRequired('body', $this->body, true); } public function toMap() diff --git a/src/Models/ListSessionPackagesResponse.php b/src/Models/ListSessionPackagesResponse.php index d7189f9..db95a6d 100644 --- a/src/Models/ListSessionPackagesResponse.php +++ b/src/Models/ListSessionPackagesResponse.php @@ -30,9 +30,6 @@ class ListSessionPackagesResponse extends Model public function validate() { - Model::validateRequired('headers', $this->headers, true); - Model::validateRequired('statusCode', $this->statusCode, true); - Model::validateRequired('body', $this->body, true); } public function toMap() diff --git a/src/Models/ListTenantConfigResponse.php b/src/Models/ListTenantConfigResponse.php index 7656e66..c1d2378 100644 --- a/src/Models/ListTenantConfigResponse.php +++ b/src/Models/ListTenantConfigResponse.php @@ -30,9 +30,6 @@ class ListTenantConfigResponse extends Model public function validate() { - Model::validateRequired('headers', $this->headers, true); - Model::validateRequired('statusCode', $this->statusCode, true); - Model::validateRequired('body', $this->body, true); } public function toMap() diff --git a/src/Models/LogOffAllSessionsInAppInstanceGroupRequest.php b/src/Models/LogOffAllSessionsInAppInstanceGroupRequest.php index 0ecc8dc..62104fa 100644 --- a/src/Models/LogOffAllSessionsInAppInstanceGroupRequest.php +++ b/src/Models/LogOffAllSessionsInAppInstanceGroupRequest.php @@ -9,6 +9,8 @@ class LogOffAllSessionsInAppInstanceGroupRequest extends Model { /** + * @description This parameter is required. + * * @example aig-9ciijz60n4xsv**** * * @var string @@ -16,6 +18,8 @@ class LogOffAllSessionsInAppInstanceGroupRequest extends Model public $appInstanceGroupId; /** + * @description This parameter is required. + * * @example CloudApp * * @var string diff --git a/src/Models/LogOffAllSessionsInAppInstanceGroupResponse.php b/src/Models/LogOffAllSessionsInAppInstanceGroupResponse.php index 5513249..851e075 100644 --- a/src/Models/LogOffAllSessionsInAppInstanceGroupResponse.php +++ b/src/Models/LogOffAllSessionsInAppInstanceGroupResponse.php @@ -30,9 +30,6 @@ class LogOffAllSessionsInAppInstanceGroupResponse extends Model public function validate() { - Model::validateRequired('headers', $this->headers, true); - Model::validateRequired('statusCode', $this->statusCode, true); - Model::validateRequired('body', $this->body, true); } public function toMap() diff --git a/src/Models/MigrateSessionPackageRequest.php b/src/Models/MigrateSessionPackageRequest.php index ef076f1..1f92932 100644 --- a/src/Models/MigrateSessionPackageRequest.php +++ b/src/Models/MigrateSessionPackageRequest.php @@ -16,6 +16,8 @@ class MigrateSessionPackageRequest extends Model public $destProjectId; /** + * @description This parameter is required. + * * @example tp-xxxxxxxxxxxxxxxxx * * @var string diff --git a/src/Models/MigrateSessionPackageResponse.php b/src/Models/MigrateSessionPackageResponse.php index 8ad95f6..7bfa36c 100644 --- a/src/Models/MigrateSessionPackageResponse.php +++ b/src/Models/MigrateSessionPackageResponse.php @@ -30,9 +30,6 @@ class MigrateSessionPackageResponse extends Model public function validate() { - Model::validateRequired('headers', $this->headers, true); - Model::validateRequired('statusCode', $this->statusCode, true); - Model::validateRequired('body', $this->body, true); } public function toMap() diff --git a/src/Models/ModifyAppInstanceGroupAttributeRequest.php b/src/Models/ModifyAppInstanceGroupAttributeRequest.php index 8b8e551..2bf8eb9 100644 --- a/src/Models/ModifyAppInstanceGroupAttributeRequest.php +++ b/src/Models/ModifyAppInstanceGroupAttributeRequest.php @@ -13,6 +13,8 @@ class ModifyAppInstanceGroupAttributeRequest extends Model { /** + * @description This parameter is required. + * * @example aig-9ciijz60n4xsv**** * * @var string @@ -45,6 +47,8 @@ class ModifyAppInstanceGroupAttributeRequest extends Model public $preOpenMode; /** + * @description This parameter is required. + * * @example CloudApp * * @var string diff --git a/src/Models/ModifyAppInstanceGroupAttributeResponse.php b/src/Models/ModifyAppInstanceGroupAttributeResponse.php index 65f4b13..7503a30 100644 --- a/src/Models/ModifyAppInstanceGroupAttributeResponse.php +++ b/src/Models/ModifyAppInstanceGroupAttributeResponse.php @@ -30,9 +30,6 @@ class ModifyAppInstanceGroupAttributeResponse extends Model public function validate() { - Model::validateRequired('headers', $this->headers, true); - Model::validateRequired('statusCode', $this->statusCode, true); - Model::validateRequired('body', $this->body, true); } public function toMap() diff --git a/src/Models/ModifyAppInstanceGroupAttributeShrinkRequest.php b/src/Models/ModifyAppInstanceGroupAttributeShrinkRequest.php index af3c798..9766099 100644 --- a/src/Models/ModifyAppInstanceGroupAttributeShrinkRequest.php +++ b/src/Models/ModifyAppInstanceGroupAttributeShrinkRequest.php @@ -9,6 +9,8 @@ class ModifyAppInstanceGroupAttributeShrinkRequest extends Model { /** + * @description This parameter is required. + * * @example aig-9ciijz60n4xsv**** * * @var string @@ -41,6 +43,8 @@ class ModifyAppInstanceGroupAttributeShrinkRequest extends Model public $preOpenMode; /** + * @description This parameter is required. + * * @example CloudApp * * @var string diff --git a/src/Models/ModifyAppPolicyRequest.php b/src/Models/ModifyAppPolicyRequest.php new file mode 100644 index 0000000..67cd7dc --- /dev/null +++ b/src/Models/ModifyAppPolicyRequest.php @@ -0,0 +1,80 @@ + 'AppPolicyId', + 'productType' => 'ProductType', + 'videoPolicy' => 'VideoPolicy', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->appPolicyId) { + $res['AppPolicyId'] = $this->appPolicyId; + } + if (null !== $this->productType) { + $res['ProductType'] = $this->productType; + } + if (null !== $this->videoPolicy) { + $res['VideoPolicy'] = null !== $this->videoPolicy ? $this->videoPolicy->toMap() : null; + } + + return $res; + } + + /** + * @param array $map + * + * @return ModifyAppPolicyRequest + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['AppPolicyId'])) { + $model->appPolicyId = $map['AppPolicyId']; + } + if (isset($map['ProductType'])) { + $model->productType = $map['ProductType']; + } + if (isset($map['VideoPolicy'])) { + $model->videoPolicy = videoPolicy::fromMap($map['VideoPolicy']); + } + + return $model; + } +} diff --git a/src/Models/ModifyAppPolicyRequest/videoPolicy.php b/src/Models/ModifyAppPolicyRequest/videoPolicy.php new file mode 100644 index 0000000..6bd777d --- /dev/null +++ b/src/Models/ModifyAppPolicyRequest/videoPolicy.php @@ -0,0 +1,131 @@ + 'FrameRate', + 'sessionResolutionHeight' => 'SessionResolutionHeight', + 'sessionResolutionWidth' => 'SessionResolutionWidth', + 'streamingMode' => 'StreamingMode', + 'terminalResolutionAdaptive' => 'TerminalResolutionAdaptive', + 'visualQualityStrategy' => 'VisualQualityStrategy', + 'webrtc' => 'Webrtc', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->frameRate) { + $res['FrameRate'] = $this->frameRate; + } + 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->terminalResolutionAdaptive) { + $res['TerminalResolutionAdaptive'] = $this->terminalResolutionAdaptive; + } + if (null !== $this->visualQualityStrategy) { + $res['VisualQualityStrategy'] = $this->visualQualityStrategy; + } + if (null !== $this->webrtc) { + $res['Webrtc'] = $this->webrtc; + } + + return $res; + } + + /** + * @param array $map + * + * @return videoPolicy + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['FrameRate'])) { + $model->frameRate = $map['FrameRate']; + } + 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['TerminalResolutionAdaptive'])) { + $model->terminalResolutionAdaptive = $map['TerminalResolutionAdaptive']; + } + if (isset($map['VisualQualityStrategy'])) { + $model->visualQualityStrategy = $map['VisualQualityStrategy']; + } + if (isset($map['Webrtc'])) { + $model->webrtc = $map['Webrtc']; + } + + return $model; + } +} diff --git a/src/Models/ModifyAppPolicyResponse.php b/src/Models/ModifyAppPolicyResponse.php new file mode 100644 index 0000000..388f235 --- /dev/null +++ b/src/Models/ModifyAppPolicyResponse.php @@ -0,0 +1,71 @@ + 'headers', + 'statusCode' => 'statusCode', + 'body' => 'body', + ]; + + public function validate() + { + } + + 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 ModifyAppPolicyResponse + */ + 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 = ModifyAppPolicyResponseBody::fromMap($map['body']); + } + + return $model; + } +} diff --git a/src/Models/ModifyAppPolicyResponseBody.php b/src/Models/ModifyAppPolicyResponseBody.php new file mode 100644 index 0000000..4e05838 --- /dev/null +++ b/src/Models/ModifyAppPolicyResponseBody.php @@ -0,0 +1,49 @@ + 'RequestId', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->requestId) { + $res['RequestId'] = $this->requestId; + } + + return $res; + } + + /** + * @param array $map + * + * @return ModifyAppPolicyResponseBody + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['RequestId'])) { + $model->requestId = $map['RequestId']; + } + + return $model; + } +} diff --git a/src/Models/ModifyAppPolicyShrinkRequest.php b/src/Models/ModifyAppPolicyShrinkRequest.php new file mode 100644 index 0000000..dea3f6a --- /dev/null +++ b/src/Models/ModifyAppPolicyShrinkRequest.php @@ -0,0 +1,79 @@ + 'AppPolicyId', + 'productType' => 'ProductType', + 'videoPolicyShrink' => 'VideoPolicy', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->appPolicyId) { + $res['AppPolicyId'] = $this->appPolicyId; + } + if (null !== $this->productType) { + $res['ProductType'] = $this->productType; + } + if (null !== $this->videoPolicyShrink) { + $res['VideoPolicy'] = $this->videoPolicyShrink; + } + + return $res; + } + + /** + * @param array $map + * + * @return ModifyAppPolicyShrinkRequest + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['AppPolicyId'])) { + $model->appPolicyId = $map['AppPolicyId']; + } + if (isset($map['ProductType'])) { + $model->productType = $map['ProductType']; + } + if (isset($map['VideoPolicy'])) { + $model->videoPolicyShrink = $map['VideoPolicy']; + } + + return $model; + } +} diff --git a/src/Models/ModifyNodePoolAttributeResponse.php b/src/Models/ModifyNodePoolAttributeResponse.php index 1116a65..2a715e5 100644 --- a/src/Models/ModifyNodePoolAttributeResponse.php +++ b/src/Models/ModifyNodePoolAttributeResponse.php @@ -30,9 +30,6 @@ class ModifyNodePoolAttributeResponse extends Model public function validate() { - Model::validateRequired('headers', $this->headers, true); - Model::validateRequired('statusCode', $this->statusCode, true); - Model::validateRequired('body', $this->body, true); } public function toMap() diff --git a/src/Models/ModifyProjectPolicyResponse.php b/src/Models/ModifyProjectPolicyResponse.php index a6d4690..2a57610 100644 --- a/src/Models/ModifyProjectPolicyResponse.php +++ b/src/Models/ModifyProjectPolicyResponse.php @@ -30,9 +30,6 @@ class ModifyProjectPolicyResponse extends Model public function validate() { - Model::validateRequired('headers', $this->headers, true); - Model::validateRequired('statusCode', $this->statusCode, true); - Model::validateRequired('body', $this->body, true); } public function toMap() diff --git a/src/Models/ModifyTenantConfigResponse.php b/src/Models/ModifyTenantConfigResponse.php index 78c6e33..231af17 100644 --- a/src/Models/ModifyTenantConfigResponse.php +++ b/src/Models/ModifyTenantConfigResponse.php @@ -30,9 +30,6 @@ class ModifyTenantConfigResponse extends Model public function validate() { - Model::validateRequired('headers', $this->headers, true); - Model::validateRequired('statusCode', $this->statusCode, true); - Model::validateRequired('body', $this->body, true); } public function toMap() diff --git a/src/Models/PageListAppInstanceGroupUserRequest.php b/src/Models/PageListAppInstanceGroupUserRequest.php index 03cf400..d71aaaf 100644 --- a/src/Models/PageListAppInstanceGroupUserRequest.php +++ b/src/Models/PageListAppInstanceGroupUserRequest.php @@ -9,6 +9,8 @@ class PageListAppInstanceGroupUserRequest extends Model { /** + * @description This parameter is required. + * * @example aig-9ciijz60n4xsv**** * * @var string @@ -30,6 +32,8 @@ class PageListAppInstanceGroupUserRequest extends Model public $pageSize; /** + * @description This parameter is required. + * * @example CloudApp * * @var string diff --git a/src/Models/PageListAppInstanceGroupUserResponse.php b/src/Models/PageListAppInstanceGroupUserResponse.php index be36157..9cbdb8e 100644 --- a/src/Models/PageListAppInstanceGroupUserResponse.php +++ b/src/Models/PageListAppInstanceGroupUserResponse.php @@ -30,9 +30,6 @@ class PageListAppInstanceGroupUserResponse extends Model public function validate() { - Model::validateRequired('headers', $this->headers, true); - Model::validateRequired('statusCode', $this->statusCode, true); - Model::validateRequired('body', $this->body, true); } public function toMap() diff --git a/src/Models/RefreshAccessUrlResponse.php b/src/Models/RefreshAccessUrlResponse.php index b3bfe27..727a11d 100644 --- a/src/Models/RefreshAccessUrlResponse.php +++ b/src/Models/RefreshAccessUrlResponse.php @@ -30,9 +30,6 @@ class RefreshAccessUrlResponse extends Model public function validate() { - Model::validateRequired('headers', $this->headers, true); - Model::validateRequired('statusCode', $this->statusCode, true); - Model::validateRequired('body', $this->body, true); } public function toMap() diff --git a/src/Models/RenewAppInstanceGroupRequest.php b/src/Models/RenewAppInstanceGroupRequest.php index 9c5e7a4..632b4dc 100644 --- a/src/Models/RenewAppInstanceGroupRequest.php +++ b/src/Models/RenewAppInstanceGroupRequest.php @@ -9,6 +9,8 @@ class RenewAppInstanceGroupRequest extends Model { /** + * @description This parameter is required. + * * @example aig-9ciijz60n4xsv**** * * @var string @@ -23,6 +25,8 @@ class RenewAppInstanceGroupRequest extends Model public $autoPay; /** + * @description This parameter is required. + * * @example 1 * * @var int @@ -30,11 +34,15 @@ class RenewAppInstanceGroupRequest extends Model public $period; /** + * @description This parameter is required. + * * @var string */ public $periodUnit; /** + * @description This parameter is required. + * * @example CloudApp * * @var string diff --git a/src/Models/RenewAppInstanceGroupResponse.php b/src/Models/RenewAppInstanceGroupResponse.php index b1daa72..29597e8 100644 --- a/src/Models/RenewAppInstanceGroupResponse.php +++ b/src/Models/RenewAppInstanceGroupResponse.php @@ -30,9 +30,6 @@ class RenewAppInstanceGroupResponse extends Model public function validate() { - Model::validateRequired('headers', $this->headers, true); - Model::validateRequired('statusCode', $this->statusCode, true); - Model::validateRequired('body', $this->body, true); } public function toMap() diff --git a/src/Models/RenewSessionPackageRequest.php b/src/Models/RenewSessionPackageRequest.php index 3b4898e..1510a37 100644 --- a/src/Models/RenewSessionPackageRequest.php +++ b/src/Models/RenewSessionPackageRequest.php @@ -9,6 +9,8 @@ class RenewSessionPackageRequest extends Model { /** + * @description This parameter is required. + * * @example 1 * * @var int @@ -16,6 +18,8 @@ class RenewSessionPackageRequest extends Model public $period; /** + * @description This parameter is required. + * * @example Month * * @var string @@ -23,6 +27,8 @@ class RenewSessionPackageRequest extends Model public $periodUnit; /** + * @description This parameter is required. + * * @example tp-**** * * @var string diff --git a/src/Models/RenewSessionPackageResponse.php b/src/Models/RenewSessionPackageResponse.php index f11aa77..1c4ac4e 100644 --- a/src/Models/RenewSessionPackageResponse.php +++ b/src/Models/RenewSessionPackageResponse.php @@ -30,9 +30,6 @@ class RenewSessionPackageResponse extends Model public function validate() { - Model::validateRequired('headers', $this->headers, true); - Model::validateRequired('statusCode', $this->statusCode, true); - Model::validateRequired('body', $this->body, true); } public function toMap() diff --git a/src/Models/UnbindRequest.php b/src/Models/UnbindRequest.php index ff1adee..6923f99 100644 --- a/src/Models/UnbindRequest.php +++ b/src/Models/UnbindRequest.php @@ -9,6 +9,8 @@ class UnbindRequest extends Model { /** + * @description This parameter is required. + * * @example aig-9ciijz60n4xsv**** * * @var string @@ -28,6 +30,8 @@ class UnbindRequest extends Model public $appInstancePersistentId; /** + * @description This parameter is required. + * * @example alice * * @var string @@ -35,6 +39,8 @@ class UnbindRequest extends Model public $endUserId; /** + * @description This parameter is required. + * * @example CloudApp * * @var string diff --git a/src/Models/UnbindResponse.php b/src/Models/UnbindResponse.php index 224bb51..d2bf1af 100644 --- a/src/Models/UnbindResponse.php +++ b/src/Models/UnbindResponse.php @@ -30,9 +30,6 @@ class UnbindResponse extends Model public function validate() { - Model::validateRequired('headers', $this->headers, true); - Model::validateRequired('statusCode', $this->statusCode, true); - Model::validateRequired('body', $this->body, true); } public function toMap() diff --git a/src/Models/UpdateAccessPageStateResponse.php b/src/Models/UpdateAccessPageStateResponse.php index 40c36cc..1e66fa6 100644 --- a/src/Models/UpdateAccessPageStateResponse.php +++ b/src/Models/UpdateAccessPageStateResponse.php @@ -30,9 +30,6 @@ class UpdateAccessPageStateResponse extends Model public function validate() { - Model::validateRequired('headers', $this->headers, true); - Model::validateRequired('statusCode', $this->statusCode, true); - Model::validateRequired('body', $this->body, true); } public function toMap() diff --git a/src/Models/UpdateAppInstanceGroupImageRequest.php b/src/Models/UpdateAppInstanceGroupImageRequest.php index a806750..4a56cd9 100644 --- a/src/Models/UpdateAppInstanceGroupImageRequest.php +++ b/src/Models/UpdateAppInstanceGroupImageRequest.php @@ -9,6 +9,8 @@ class UpdateAppInstanceGroupImageRequest extends Model { /** + * @description This parameter is required. + * * @example img-8z4nztpaqvay4**** * * @var string @@ -16,6 +18,8 @@ class UpdateAppInstanceGroupImageRequest extends Model public $appCenterImageId; /** + * @description This parameter is required. + * * @example aig-9ciijz60n4xsv**** * * @var string @@ -23,6 +27,8 @@ class UpdateAppInstanceGroupImageRequest extends Model public $appInstanceGroupId; /** + * @description This parameter is required. + * * @example cn-hangzhou * * @var string @@ -30,6 +36,8 @@ class UpdateAppInstanceGroupImageRequest extends Model public $bizRegionId; /** + * @description This parameter is required. + * * @example CloudApp * * @var string diff --git a/src/Models/UpdateAppInstanceGroupImageResponse.php b/src/Models/UpdateAppInstanceGroupImageResponse.php index a216a65..314047e 100644 --- a/src/Models/UpdateAppInstanceGroupImageResponse.php +++ b/src/Models/UpdateAppInstanceGroupImageResponse.php @@ -30,9 +30,6 @@ class UpdateAppInstanceGroupImageResponse extends Model public function validate() { - Model::validateRequired('headers', $this->headers, true); - Model::validateRequired('statusCode', $this->statusCode, true); - Model::validateRequired('body', $this->body, true); } public function toMap()