diff --git a/ChangeLog.md b/ChangeLog.md index 5623c81..32769e2 100644 --- a/ChangeLog.md +++ b/ChangeLog.md @@ -1,3 +1,26 @@ +2025-01-17 Version: 3.0.0 +- Support API ListBindInfo. +- Delete API AccessPageGetAcl. +- Delete API AskSessionPackageRenewPrice. +- Delete API CancelOtaTask. +- Delete API CreateProject. +- Delete API DeleteProject. +- Delete API GetProjectPolicies. +- Delete API ListProjects. +- Delete API MigrateSessionPackage. +- Delete API ModifyProjectPolicy. +- Delete API RefreshAccessUrl. +- Delete API RenewSessionPackage. +- Delete API UpdateAccessPageState. +- Update API AuthorizeInstanceGroup: update param AuthorizeUserIds. +- Update API AuthorizeInstanceGroup: update param UnAuthorizeUserIds. +- Update API CreateAppInstanceGroup: add param AppPolicyId. +- Update API GetAppInstanceGroup: update response param. +- Update API ListAppInstanceGroup: update response param. +- Update API ModifyAppInstanceGroupAttribute: add param PerSessionPerApp. +- Update API ModifyAppInstanceGroupAttribute: update param StoragePolicy. + + 2024-10-22 Version: 2.0.4 - Update API AuthorizeInstanceGroup: add param UserMeta. - Update API CreateAppInstanceGroup: update param AppInstanceGroupName. diff --git a/src/Appstreamcenter.php b/src/Appstreamcenter.php index 2b6df52..890745b 100644 --- a/src/Appstreamcenter.php +++ b/src/Appstreamcenter.php @@ -6,23 +6,17 @@ use AlibabaCloud\Endpoint\Endpoint; use AlibabaCloud\OpenApiUtil\OpenApiUtilClient; -use AlibabaCloud\SDK\Appstreamcenter\V20210901\Models\AccessPageGetAclRequest; -use AlibabaCloud\SDK\Appstreamcenter\V20210901\Models\AccessPageGetAclResponse; use AlibabaCloud\SDK\Appstreamcenter\V20210901\Models\AccessPageSetAclRequest; use AlibabaCloud\SDK\Appstreamcenter\V20210901\Models\AccessPageSetAclResponse; use AlibabaCloud\SDK\Appstreamcenter\V20210901\Models\ApproveOtaTaskRequest; use AlibabaCloud\SDK\Appstreamcenter\V20210901\Models\ApproveOtaTaskResponse; use AlibabaCloud\SDK\Appstreamcenter\V20210901\Models\AskSessionPackagePriceRequest; use AlibabaCloud\SDK\Appstreamcenter\V20210901\Models\AskSessionPackagePriceResponse; -use AlibabaCloud\SDK\Appstreamcenter\V20210901\Models\AskSessionPackageRenewPriceRequest; -use AlibabaCloud\SDK\Appstreamcenter\V20210901\Models\AskSessionPackageRenewPriceResponse; use AlibabaCloud\SDK\Appstreamcenter\V20210901\Models\AuthorizeInstanceGroupRequest; use AlibabaCloud\SDK\Appstreamcenter\V20210901\Models\AuthorizeInstanceGroupResponse; use AlibabaCloud\SDK\Appstreamcenter\V20210901\Models\AuthorizeInstanceGroupShrinkRequest; use AlibabaCloud\SDK\Appstreamcenter\V20210901\Models\BuySessionPackageRequest; use AlibabaCloud\SDK\Appstreamcenter\V20210901\Models\BuySessionPackageResponse; -use AlibabaCloud\SDK\Appstreamcenter\V20210901\Models\CancelOtaTaskRequest; -use AlibabaCloud\SDK\Appstreamcenter\V20210901\Models\CancelOtaTaskResponse; use AlibabaCloud\SDK\Appstreamcenter\V20210901\Models\CreateAccessPageRequest; use AlibabaCloud\SDK\Appstreamcenter\V20210901\Models\CreateAccessPageResponse; use AlibabaCloud\SDK\Appstreamcenter\V20210901\Models\CreateAppInstanceGroupRequest; @@ -30,16 +24,12 @@ use AlibabaCloud\SDK\Appstreamcenter\V20210901\Models\CreateAppInstanceGroupShrinkRequest; use AlibabaCloud\SDK\Appstreamcenter\V20210901\Models\CreateImageFromAppInstanceGroupRequest; use AlibabaCloud\SDK\Appstreamcenter\V20210901\Models\CreateImageFromAppInstanceGroupResponse; -use AlibabaCloud\SDK\Appstreamcenter\V20210901\Models\CreateProjectRequest; -use AlibabaCloud\SDK\Appstreamcenter\V20210901\Models\CreateProjectResponse; use AlibabaCloud\SDK\Appstreamcenter\V20210901\Models\DeleteAccessPageRequest; use AlibabaCloud\SDK\Appstreamcenter\V20210901\Models\DeleteAccessPageResponse; use AlibabaCloud\SDK\Appstreamcenter\V20210901\Models\DeleteAppInstanceGroupRequest; use AlibabaCloud\SDK\Appstreamcenter\V20210901\Models\DeleteAppInstanceGroupResponse; use AlibabaCloud\SDK\Appstreamcenter\V20210901\Models\DeleteAppInstancesRequest; use AlibabaCloud\SDK\Appstreamcenter\V20210901\Models\DeleteAppInstancesResponse; -use AlibabaCloud\SDK\Appstreamcenter\V20210901\Models\DeleteProjectRequest; -use AlibabaCloud\SDK\Appstreamcenter\V20210901\Models\DeleteProjectResponse; use AlibabaCloud\SDK\Appstreamcenter\V20210901\Models\GetAccessPageSessionRequest; use AlibabaCloud\SDK\Appstreamcenter\V20210901\Models\GetAccessPageSessionResponse; use AlibabaCloud\SDK\Appstreamcenter\V20210901\Models\GetAppInstanceGroupRequest; @@ -50,8 +40,6 @@ use AlibabaCloud\SDK\Appstreamcenter\V20210901\Models\GetDebugAppInstanceResponse; use AlibabaCloud\SDK\Appstreamcenter\V20210901\Models\GetOtaTaskByTaskIdRequest; use AlibabaCloud\SDK\Appstreamcenter\V20210901\Models\GetOtaTaskByTaskIdResponse; -use AlibabaCloud\SDK\Appstreamcenter\V20210901\Models\GetProjectPoliciesRequest; -use AlibabaCloud\SDK\Appstreamcenter\V20210901\Models\GetProjectPoliciesResponse; use AlibabaCloud\SDK\Appstreamcenter\V20210901\Models\GetResourcePriceRequest; use AlibabaCloud\SDK\Appstreamcenter\V20210901\Models\GetResourcePriceResponse; use AlibabaCloud\SDK\Appstreamcenter\V20210901\Models\GetResourceRenewPriceRequest; @@ -62,12 +50,12 @@ use AlibabaCloud\SDK\Appstreamcenter\V20210901\Models\ListAppInstanceGroupResponse; use AlibabaCloud\SDK\Appstreamcenter\V20210901\Models\ListAppInstancesRequest; use AlibabaCloud\SDK\Appstreamcenter\V20210901\Models\ListAppInstancesResponse; +use AlibabaCloud\SDK\Appstreamcenter\V20210901\Models\ListBindInfoRequest; +use AlibabaCloud\SDK\Appstreamcenter\V20210901\Models\ListBindInfoResponse; use AlibabaCloud\SDK\Appstreamcenter\V20210901\Models\ListNodeInstanceTypeRequest; use AlibabaCloud\SDK\Appstreamcenter\V20210901\Models\ListNodeInstanceTypeResponse; use AlibabaCloud\SDK\Appstreamcenter\V20210901\Models\ListOtaTaskRequest; use AlibabaCloud\SDK\Appstreamcenter\V20210901\Models\ListOtaTaskResponse; -use AlibabaCloud\SDK\Appstreamcenter\V20210901\Models\ListProjectsRequest; -use AlibabaCloud\SDK\Appstreamcenter\V20210901\Models\ListProjectsResponse; use AlibabaCloud\SDK\Appstreamcenter\V20210901\Models\ListRegionsRequest; use AlibabaCloud\SDK\Appstreamcenter\V20210901\Models\ListRegionsResponse; use AlibabaCloud\SDK\Appstreamcenter\V20210901\Models\ListSessionPackagesRequest; @@ -75,8 +63,6 @@ use AlibabaCloud\SDK\Appstreamcenter\V20210901\Models\ListTenantConfigResponse; use AlibabaCloud\SDK\Appstreamcenter\V20210901\Models\LogOffAllSessionsInAppInstanceGroupRequest; use AlibabaCloud\SDK\Appstreamcenter\V20210901\Models\LogOffAllSessionsInAppInstanceGroupResponse; -use AlibabaCloud\SDK\Appstreamcenter\V20210901\Models\MigrateSessionPackageRequest; -use AlibabaCloud\SDK\Appstreamcenter\V20210901\Models\MigrateSessionPackageResponse; use AlibabaCloud\SDK\Appstreamcenter\V20210901\Models\ModifyAppInstanceGroupAttributeRequest; use AlibabaCloud\SDK\Appstreamcenter\V20210901\Models\ModifyAppInstanceGroupAttributeResponse; use AlibabaCloud\SDK\Appstreamcenter\V20210901\Models\ModifyAppInstanceGroupAttributeShrinkRequest; @@ -86,22 +72,14 @@ use AlibabaCloud\SDK\Appstreamcenter\V20210901\Models\ModifyNodePoolAttributeRequest; use AlibabaCloud\SDK\Appstreamcenter\V20210901\Models\ModifyNodePoolAttributeResponse; use AlibabaCloud\SDK\Appstreamcenter\V20210901\Models\ModifyNodePoolAttributeShrinkRequest; -use AlibabaCloud\SDK\Appstreamcenter\V20210901\Models\ModifyProjectPolicyRequest; -use AlibabaCloud\SDK\Appstreamcenter\V20210901\Models\ModifyProjectPolicyResponse; use AlibabaCloud\SDK\Appstreamcenter\V20210901\Models\ModifyTenantConfigRequest; use AlibabaCloud\SDK\Appstreamcenter\V20210901\Models\ModifyTenantConfigResponse; use AlibabaCloud\SDK\Appstreamcenter\V20210901\Models\PageListAppInstanceGroupUserRequest; use AlibabaCloud\SDK\Appstreamcenter\V20210901\Models\PageListAppInstanceGroupUserResponse; -use AlibabaCloud\SDK\Appstreamcenter\V20210901\Models\RefreshAccessUrlRequest; -use AlibabaCloud\SDK\Appstreamcenter\V20210901\Models\RefreshAccessUrlResponse; use AlibabaCloud\SDK\Appstreamcenter\V20210901\Models\RenewAppInstanceGroupRequest; use AlibabaCloud\SDK\Appstreamcenter\V20210901\Models\RenewAppInstanceGroupResponse; -use AlibabaCloud\SDK\Appstreamcenter\V20210901\Models\RenewSessionPackageRequest; -use AlibabaCloud\SDK\Appstreamcenter\V20210901\Models\RenewSessionPackageResponse; use AlibabaCloud\SDK\Appstreamcenter\V20210901\Models\UnbindRequest; use AlibabaCloud\SDK\Appstreamcenter\V20210901\Models\UnbindResponse; -use AlibabaCloud\SDK\Appstreamcenter\V20210901\Models\UpdateAccessPageStateRequest; -use AlibabaCloud\SDK\Appstreamcenter\V20210901\Models\UpdateAccessPageStateResponse; use AlibabaCloud\SDK\Appstreamcenter\V20210901\Models\UpdateAppInstanceGroupImageRequest; use AlibabaCloud\SDK\Appstreamcenter\V20210901\Models\UpdateAppInstanceGroupImageResponse; use AlibabaCloud\Tea\Tea; @@ -145,53 +123,6 @@ public function getEndpoint($productId, $regionId, $endpointRule, $network, $suf return Endpoint::getEndpointRules($productId, $regionId, $endpointRule, $network, $suffix); } - /** - * @summary 获取访问管理页配置 - * * - * @param AccessPageGetAclRequest $request AccessPageGetAclRequest - * @param RuntimeOptions $runtime runtime options for this request RuntimeOptions - * - * @return AccessPageGetAclResponse AccessPageGetAclResponse - */ - public function accessPageGetAclWithOptions($request, $runtime) - { - Utils::validateModel($request); - $query = []; - if (!Utils::isUnset($request->accessPageId)) { - $query['AccessPageId'] = $request->accessPageId; - } - $req = new OpenApiRequest([ - 'query' => OpenApiUtilClient::query($query), - ]); - $params = new Params([ - 'action' => 'AccessPageGetAcl', - 'version' => '2021-09-01', - 'protocol' => 'HTTPS', - 'pathname' => '/', - 'method' => 'POST', - 'authType' => 'AK', - 'style' => 'RPC', - 'reqBodyType' => 'formData', - 'bodyType' => 'json', - ]); - - return AccessPageGetAclResponse::fromMap($this->callApi($params, $req, $runtime)); - } - - /** - * @summary 获取访问管理页配置 - * * - * @param AccessPageGetAclRequest $request AccessPageGetAclRequest - * - * @return AccessPageGetAclResponse AccessPageGetAclResponse - */ - public function accessPageGetAcl($request) - { - $runtime = new RuntimeOptions([]); - - return $this->accessPageGetAclWithOptions($request, $runtime); - } - /** * @summary 更新访问管理 * * @@ -378,59 +309,6 @@ public function askSessionPackagePrice($request) return $this->askSessionPackagePriceWithOptions($request, $runtime); } - /** - * @summary 会话包续费询价 - * * - * @param AskSessionPackageRenewPriceRequest $request AskSessionPackageRenewPriceRequest - * @param RuntimeOptions $runtime runtime options for this request RuntimeOptions - * - * @return AskSessionPackageRenewPriceResponse AskSessionPackageRenewPriceResponse - */ - public function askSessionPackageRenewPriceWithOptions($request, $runtime) - { - Utils::validateModel($request); - $query = []; - if (!Utils::isUnset($request->period)) { - $query['Period'] = $request->period; - } - if (!Utils::isUnset($request->periodUnit)) { - $query['PeriodUnit'] = $request->periodUnit; - } - if (!Utils::isUnset($request->sessionPackageId)) { - $query['SessionPackageId'] = $request->sessionPackageId; - } - $req = new OpenApiRequest([ - 'query' => OpenApiUtilClient::query($query), - ]); - $params = new Params([ - 'action' => 'AskSessionPackageRenewPrice', - 'version' => '2021-09-01', - 'protocol' => 'HTTPS', - 'pathname' => '/', - 'method' => 'POST', - 'authType' => 'AK', - 'style' => 'RPC', - 'reqBodyType' => 'formData', - 'bodyType' => 'json', - ]); - - return AskSessionPackageRenewPriceResponse::fromMap($this->callApi($params, $req, $runtime)); - } - - /** - * @summary 会话包续费询价 - * * - * @param AskSessionPackageRenewPriceRequest $request AskSessionPackageRenewPriceRequest - * - * @return AskSessionPackageRenewPriceResponse AskSessionPackageRenewPriceResponse - */ - public function askSessionPackageRenewPrice($request) - { - $runtime = new RuntimeOptions([]); - - return $this->askSessionPackageRenewPriceWithOptions($request, $runtime); - } - /** * @summary 授权用户 * * @@ -574,56 +452,6 @@ public function buySessionPackage($request) return $this->buySessionPackageWithOptions($request, $runtime); } - /** - * @summary 取消Ota升级 - * * - * @param CancelOtaTaskRequest $request CancelOtaTaskRequest - * @param RuntimeOptions $runtime runtime options for this request RuntimeOptions - * - * @return CancelOtaTaskResponse CancelOtaTaskResponse - */ - public function cancelOtaTaskWithOptions($request, $runtime) - { - Utils::validateModel($request); - $body = []; - if (!Utils::isUnset($request->appInstanceGroupId)) { - $body['AppInstanceGroupId'] = $request->appInstanceGroupId; - } - if (!Utils::isUnset($request->taskId)) { - $body['TaskId'] = $request->taskId; - } - $req = new OpenApiRequest([ - 'body' => OpenApiUtilClient::parseToMap($body), - ]); - $params = new Params([ - 'action' => 'CancelOtaTask', - 'version' => '2021-09-01', - 'protocol' => 'HTTPS', - 'pathname' => '/', - 'method' => 'POST', - 'authType' => 'AK', - 'style' => 'RPC', - 'reqBodyType' => 'formData', - 'bodyType' => 'json', - ]); - - return CancelOtaTaskResponse::fromMap($this->callApi($params, $req, $runtime)); - } - - /** - * @summary 取消Ota升级 - * * - * @param CancelOtaTaskRequest $request CancelOtaTaskRequest - * - * @return CancelOtaTaskResponse CancelOtaTaskResponse - */ - public function cancelOtaTask($request) - { - $runtime = new RuntimeOptions([]); - - return $this->cancelOtaTaskWithOptions($request, $runtime); - } - /** * @summary 创建访问页面 * * @@ -734,6 +562,9 @@ public function createAppInstanceGroupWithOptions($tmpReq, $runtime) if (!Utils::isUnset($request->appInstanceGroupName)) { $body['AppInstanceGroupName'] = $request->appInstanceGroupName; } + if (!Utils::isUnset($request->appPolicyId)) { + $body['AppPolicyId'] = $request->appPolicyId; + } if (!Utils::isUnset($request->autoPay)) { $body['AutoPay'] = $request->autoPay; } @@ -877,89 +708,6 @@ public function createImageFromAppInstanceGroup($request) return $this->createImageFromAppInstanceGroupWithOptions($request, $runtime); } - /** - * @summary 创建项目 - * * - * @param CreateProjectRequest $request CreateProjectRequest - * @param RuntimeOptions $runtime runtime options for this request RuntimeOptions - * - * @return CreateProjectResponse CreateProjectResponse - */ - public function createProjectWithOptions($request, $runtime) - { - Utils::validateModel($request); - $query = []; - if (!Utils::isUnset($request->clipboard)) { - $query['Clipboard'] = $request->clipboard; - } - if (!Utils::isUnset($request->cloudEnvId)) { - $query['CloudEnvId'] = $request->cloudEnvId; - } - if (!Utils::isUnset($request->contentId)) { - $query['ContentId'] = $request->contentId; - } - if (!Utils::isUnset($request->description)) { - $query['Description'] = $request->description; - } - if (!Utils::isUnset($request->fileTransfer)) { - $query['FileTransfer'] = $request->fileTransfer; - } - if (!Utils::isUnset($request->frameRate)) { - $query['FrameRate'] = $request->frameRate; - } - if (!Utils::isUnset($request->keepAliveDuration)) { - $query['KeepAliveDuration'] = $request->keepAliveDuration; - } - if (!Utils::isUnset($request->projectName)) { - $query['ProjectName'] = $request->projectName; - } - if (!Utils::isUnset($request->sessionResolutionHeight)) { - $query['SessionResolutionHeight'] = $request->sessionResolutionHeight; - } - if (!Utils::isUnset($request->sessionResolutionWidth)) { - $query['SessionResolutionWidth'] = $request->sessionResolutionWidth; - } - if (!Utils::isUnset($request->sessionSpec)) { - $query['SessionSpec'] = $request->sessionSpec; - } - if (!Utils::isUnset($request->streamingMode)) { - $query['StreamingMode'] = $request->streamingMode; - } - if (!Utils::isUnset($request->terminalResolutionAdaptation)) { - $query['TerminalResolutionAdaptation'] = $request->terminalResolutionAdaptation; - } - $req = new OpenApiRequest([ - 'query' => OpenApiUtilClient::query($query), - ]); - $params = new Params([ - 'action' => 'CreateProject', - 'version' => '2021-09-01', - 'protocol' => 'HTTPS', - 'pathname' => '/', - 'method' => 'POST', - 'authType' => 'AK', - 'style' => 'RPC', - 'reqBodyType' => 'formData', - 'bodyType' => 'json', - ]); - - return CreateProjectResponse::fromMap($this->callApi($params, $req, $runtime)); - } - - /** - * @summary 创建项目 - * * - * @param CreateProjectRequest $request CreateProjectRequest - * - * @return CreateProjectResponse CreateProjectResponse - */ - public function createProject($request) - { - $runtime = new RuntimeOptions([]); - - return $this->createProjectWithOptions($request, $runtime); - } - /** * @summary 删除访问页面 * * @@ -1110,53 +858,6 @@ public function deleteAppInstances($request) return $this->deleteAppInstancesWithOptions($request, $runtime); } - /** - * @summary 删除项目 - * * - * @param DeleteProjectRequest $request DeleteProjectRequest - * @param RuntimeOptions $runtime runtime options for this request RuntimeOptions - * - * @return DeleteProjectResponse DeleteProjectResponse - */ - public function deleteProjectWithOptions($request, $runtime) - { - Utils::validateModel($request); - $query = []; - if (!Utils::isUnset($request->projectId)) { - $query['ProjectId'] = $request->projectId; - } - $req = new OpenApiRequest([ - 'query' => OpenApiUtilClient::query($query), - ]); - $params = new Params([ - 'action' => 'DeleteProject', - 'version' => '2021-09-01', - 'protocol' => 'HTTPS', - 'pathname' => '/', - 'method' => 'POST', - 'authType' => 'AK', - 'style' => 'RPC', - 'reqBodyType' => 'formData', - 'bodyType' => 'json', - ]); - - return DeleteProjectResponse::fromMap($this->callApi($params, $req, $runtime)); - } - - /** - * @summary 删除项目 - * * - * @param DeleteProjectRequest $request DeleteProjectRequest - * - * @return DeleteProjectResponse DeleteProjectResponse - */ - public function deleteProject($request) - { - $runtime = new RuntimeOptions([]); - - return $this->deleteProjectWithOptions($request, $runtime); - } - /** * @summary 访客进入访问页面的匿名api * * @@ -1431,53 +1132,6 @@ public function getOtaTaskByTaskId($request) return $this->getOtaTaskByTaskIdWithOptions($request, $runtime); } - /** - * @summary 获取策略配置 - * * - * @param GetProjectPoliciesRequest $request GetProjectPoliciesRequest - * @param RuntimeOptions $runtime runtime options for this request RuntimeOptions - * - * @return GetProjectPoliciesResponse GetProjectPoliciesResponse - */ - public function getProjectPoliciesWithOptions($request, $runtime) - { - Utils::validateModel($request); - $query = []; - if (!Utils::isUnset($request->projectId)) { - $query['ProjectId'] = $request->projectId; - } - $req = new OpenApiRequest([ - 'query' => OpenApiUtilClient::query($query), - ]); - $params = new Params([ - 'action' => 'GetProjectPolicies', - 'version' => '2021-09-01', - 'protocol' => 'HTTPS', - 'pathname' => '/', - 'method' => 'POST', - 'authType' => 'AK', - 'style' => 'RPC', - 'reqBodyType' => 'formData', - 'bodyType' => 'json', - ]); - - return GetProjectPoliciesResponse::fromMap($this->callApi($params, $req, $runtime)); - } - - /** - * @summary 获取策略配置 - * * - * @param GetProjectPoliciesRequest $request GetProjectPoliciesRequest - * - * @return GetProjectPoliciesResponse GetProjectPoliciesResponse - */ - public function getProjectPolicies($request) - { - $runtime = new RuntimeOptions([]); - - return $this->getProjectPoliciesWithOptions($request, $runtime); - } - /** * @summary 云应用资源询价接口 * * @@ -1811,25 +1465,90 @@ public function listAppInstances($request) } /** - * @summary 获取资源规格 + * @summary 查询绑定信息,支持分页 * * - * @param ListNodeInstanceTypeRequest $request ListNodeInstanceTypeRequest - * @param RuntimeOptions $runtime runtime options for this request RuntimeOptions + * @param ListBindInfoRequest $request ListBindInfoRequest + * @param RuntimeOptions $runtime runtime options for this request RuntimeOptions * - * @return ListNodeInstanceTypeResponse ListNodeInstanceTypeResponse + * @return ListBindInfoResponse ListBindInfoResponse */ - public function listNodeInstanceTypeWithOptions($request, $runtime) + public function listBindInfoWithOptions($request, $runtime) { Utils::validateModel($request); - $query = []; - if (!Utils::isUnset($request->bizRegionId)) { - $query['BizRegionId'] = $request->bizRegionId; + $body = []; + if (!Utils::isUnset($request->appIdList)) { + $body['AppIdList'] = $request->appIdList; } - if (!Utils::isUnset($request->cpu)) { - $query['Cpu'] = $request->cpu; + if (!Utils::isUnset($request->appInstanceGroupIdList)) { + $body['AppInstanceGroupIdList'] = $request->appInstanceGroupIdList; } - if (!Utils::isUnset($request->gpu)) { - $query['Gpu'] = $request->gpu; + if (!Utils::isUnset($request->appInstanceIdList)) { + $body['AppInstanceIdList'] = $request->appInstanceIdList; + } + if (!Utils::isUnset($request->pageNumber)) { + $body['PageNumber'] = $request->pageNumber; + } + if (!Utils::isUnset($request->pageSize)) { + $body['PageSize'] = $request->pageSize; + } + if (!Utils::isUnset($request->userIdList)) { + $body['UserIdList'] = $request->userIdList; + } + if (!Utils::isUnset($request->wyIdList)) { + $body['WyIdList'] = $request->wyIdList; + } + $req = new OpenApiRequest([ + 'body' => OpenApiUtilClient::parseToMap($body), + ]); + $params = new Params([ + 'action' => 'ListBindInfo', + 'version' => '2021-09-01', + 'protocol' => 'HTTPS', + 'pathname' => '/', + 'method' => 'POST', + 'authType' => 'AK', + 'style' => 'RPC', + 'reqBodyType' => 'formData', + 'bodyType' => 'json', + ]); + + return ListBindInfoResponse::fromMap($this->callApi($params, $req, $runtime)); + } + + /** + * @summary 查询绑定信息,支持分页 + * * + * @param ListBindInfoRequest $request ListBindInfoRequest + * + * @return ListBindInfoResponse ListBindInfoResponse + */ + public function listBindInfo($request) + { + $runtime = new RuntimeOptions([]); + + return $this->listBindInfoWithOptions($request, $runtime); + } + + /** + * @summary 获取资源规格 + * * + * @param ListNodeInstanceTypeRequest $request ListNodeInstanceTypeRequest + * @param RuntimeOptions $runtime runtime options for this request RuntimeOptions + * + * @return ListNodeInstanceTypeResponse ListNodeInstanceTypeResponse + */ + public function listNodeInstanceTypeWithOptions($request, $runtime) + { + Utils::validateModel($request); + $query = []; + if (!Utils::isUnset($request->bizRegionId)) { + $query['BizRegionId'] = $request->bizRegionId; + } + if (!Utils::isUnset($request->cpu)) { + $query['Cpu'] = $request->cpu; + } + if (!Utils::isUnset($request->gpu)) { + $query['Gpu'] = $request->gpu; } if (!Utils::isUnset($request->gpuMemory)) { $query['GpuMemory'] = $request->gpuMemory; @@ -1952,68 +1671,6 @@ public function listOtaTask($request) return $this->listOtaTaskWithOptions($request, $runtime); } - /** - * @summary 获取项目列表 - * * - * @param ListProjectsRequest $request ListProjectsRequest - * @param RuntimeOptions $runtime runtime options for this request RuntimeOptions - * - * @return ListProjectsResponse ListProjectsResponse - */ - public function listProjectsWithOptions($request, $runtime) - { - Utils::validateModel($request); - $query = []; - if (!Utils::isUnset($request->pageNumber)) { - $query['PageNumber'] = $request->pageNumber; - } - if (!Utils::isUnset($request->pageSize)) { - $query['PageSize'] = $request->pageSize; - } - if (!Utils::isUnset($request->projectId)) { - $query['ProjectId'] = $request->projectId; - } - if (!Utils::isUnset($request->projectName)) { - $query['ProjectName'] = $request->projectName; - } - if (!Utils::isUnset($request->sortType)) { - $query['SortType'] = $request->sortType; - } - if (!Utils::isUnset($request->stateList)) { - $query['StateList'] = $request->stateList; - } - $req = new OpenApiRequest([ - 'query' => OpenApiUtilClient::query($query), - ]); - $params = new Params([ - 'action' => 'ListProjects', - 'version' => '2021-09-01', - 'protocol' => 'HTTPS', - 'pathname' => '/', - 'method' => 'POST', - 'authType' => 'AK', - 'style' => 'RPC', - 'reqBodyType' => 'formData', - 'bodyType' => 'json', - ]); - - return ListProjectsResponse::fromMap($this->callApi($params, $req, $runtime)); - } - - /** - * @summary 获取项目列表 - * * - * @param ListProjectsRequest $request ListProjectsRequest - * - * @return ListProjectsResponse ListProjectsResponse - */ - public function listProjects($request) - { - $runtime = new RuntimeOptions([]); - - return $this->listProjectsWithOptions($request, $runtime); - } - /** * @summary 云应用支持的地域列表 * * @@ -2212,59 +1869,6 @@ public function logOffAllSessionsInAppInstanceGroup($request) return $this->logOffAllSessionsInAppInstanceGroupWithOptions($request, $runtime); } - /** - * @summary 会话包 迁移/分配 - * * - * @param MigrateSessionPackageRequest $request MigrateSessionPackageRequest - * @param RuntimeOptions $runtime runtime options for this request RuntimeOptions - * - * @return MigrateSessionPackageResponse MigrateSessionPackageResponse - */ - public function migrateSessionPackageWithOptions($request, $runtime) - { - Utils::validateModel($request); - $body = []; - if (!Utils::isUnset($request->destProjectId)) { - $body['DestProjectId'] = $request->destProjectId; - } - if (!Utils::isUnset($request->sessionPackageId)) { - $body['SessionPackageId'] = $request->sessionPackageId; - } - if (!Utils::isUnset($request->sourceProjectId)) { - $body['SourceProjectId'] = $request->sourceProjectId; - } - $req = new OpenApiRequest([ - 'body' => OpenApiUtilClient::parseToMap($body), - ]); - $params = new Params([ - 'action' => 'MigrateSessionPackage', - 'version' => '2021-09-01', - 'protocol' => 'HTTPS', - 'pathname' => '/', - 'method' => 'POST', - 'authType' => 'AK', - 'style' => 'RPC', - 'reqBodyType' => 'formData', - 'bodyType' => 'json', - ]); - - return MigrateSessionPackageResponse::fromMap($this->callApi($params, $req, $runtime)); - } - - /** - * @summary 会话包 迁移/分配 - * * - * @param MigrateSessionPackageRequest $request MigrateSessionPackageRequest - * - * @return MigrateSessionPackageResponse MigrateSessionPackageResponse - */ - public function migrateSessionPackage($request) - { - $runtime = new RuntimeOptions([]); - - return $this->migrateSessionPackageWithOptions($request, $runtime); - } - /** * @summary 修改云应用交付组 * * @@ -2310,6 +1914,9 @@ public function modifyAppInstanceGroupAttributeWithOptions($tmpReq, $runtime) if (!Utils::isUnset($request->networkShrink)) { $body['Network'] = $request->networkShrink; } + if (!Utils::isUnset($request->perSessionPerApp)) { + $body['PerSessionPerApp'] = $request->perSessionPerApp; + } if (!Utils::isUnset($request->preOpenAppId)) { $body['PreOpenAppId'] = $request->preOpenAppId; } @@ -2473,77 +2080,6 @@ public function modifyNodePoolAttribute($request) return $this->modifyNodePoolAttributeWithOptions($request, $runtime); } - /** - * @summary 修改项目策略 - * * - * @param ModifyProjectPolicyRequest $request ModifyProjectPolicyRequest - * @param RuntimeOptions $runtime runtime options for this request RuntimeOptions - * - * @return ModifyProjectPolicyResponse ModifyProjectPolicyResponse - */ - public function modifyProjectPolicyWithOptions($request, $runtime) - { - Utils::validateModel($request); - $query = []; - if (!Utils::isUnset($request->clipboard)) { - $query['Clipboard'] = $request->clipboard; - } - if (!Utils::isUnset($request->fileTransfer)) { - $query['FileTransfer'] = $request->fileTransfer; - } - if (!Utils::isUnset($request->frameRate)) { - $query['FrameRate'] = $request->frameRate; - } - if (!Utils::isUnset($request->keepAliveDuration)) { - $query['KeepAliveDuration'] = $request->keepAliveDuration; - } - if (!Utils::isUnset($request->projectId)) { - $query['ProjectId'] = $request->projectId; - } - if (!Utils::isUnset($request->sessionResolutionHeight)) { - $query['SessionResolutionHeight'] = $request->sessionResolutionHeight; - } - if (!Utils::isUnset($request->sessionResolutionWidth)) { - $query['SessionResolutionWidth'] = $request->sessionResolutionWidth; - } - if (!Utils::isUnset($request->streamingMode)) { - $query['StreamingMode'] = $request->streamingMode; - } - if (!Utils::isUnset($request->terminalResolutionAdaptation)) { - $query['TerminalResolutionAdaptation'] = $request->terminalResolutionAdaptation; - } - $req = new OpenApiRequest([ - 'query' => OpenApiUtilClient::query($query), - ]); - $params = new Params([ - 'action' => 'ModifyProjectPolicy', - 'version' => '2021-09-01', - 'protocol' => 'HTTPS', - 'pathname' => '/', - 'method' => 'POST', - 'authType' => 'AK', - 'style' => 'RPC', - 'reqBodyType' => 'formData', - 'bodyType' => 'json', - ]); - - return ModifyProjectPolicyResponse::fromMap($this->callApi($params, $req, $runtime)); - } - - /** - * @summary 修改项目策略 - * * - * @param ModifyProjectPolicyRequest $request ModifyProjectPolicyRequest - * - * @return ModifyProjectPolicyResponse ModifyProjectPolicyResponse - */ - public function modifyProjectPolicy($request) - { - $runtime = new RuntimeOptions([]); - - return $this->modifyProjectPolicyWithOptions($request, $runtime); - } - /** * @param ModifyTenantConfigRequest $request ModifyTenantConfigRequest * @param RuntimeOptions $runtime runtime options for this request RuntimeOptions @@ -2643,53 +2179,6 @@ public function pageListAppInstanceGroupUser($request) return $this->pageListAppInstanceGroupUserWithOptions($request, $runtime); } - /** - * @summary 刷新访问url - * * - * @param RefreshAccessUrlRequest $request RefreshAccessUrlRequest - * @param RuntimeOptions $runtime runtime options for this request RuntimeOptions - * - * @return RefreshAccessUrlResponse RefreshAccessUrlResponse - */ - public function refreshAccessUrlWithOptions($request, $runtime) - { - Utils::validateModel($request); - $query = []; - if (!Utils::isUnset($request->accessPageId)) { - $query['AccessPageId'] = $request->accessPageId; - } - $req = new OpenApiRequest([ - 'query' => OpenApiUtilClient::query($query), - ]); - $params = new Params([ - 'action' => 'RefreshAccessUrl', - 'version' => '2021-09-01', - 'protocol' => 'HTTPS', - 'pathname' => '/', - 'method' => 'POST', - 'authType' => 'AK', - 'style' => 'RPC', - 'reqBodyType' => 'formData', - 'bodyType' => 'json', - ]); - - return RefreshAccessUrlResponse::fromMap($this->callApi($params, $req, $runtime)); - } - - /** - * @summary 刷新访问url - * * - * @param RefreshAccessUrlRequest $request RefreshAccessUrlRequest - * - * @return RefreshAccessUrlResponse RefreshAccessUrlResponse - */ - public function refreshAccessUrl($request) - { - $runtime = new RuntimeOptions([]); - - return $this->refreshAccessUrlWithOptions($request, $runtime); - } - /** * @summary 资源续费接口 * * @@ -2752,59 +2241,6 @@ public function renewAppInstanceGroup($request) return $this->renewAppInstanceGroupWithOptions($request, $runtime); } - /** - * @summary 会话包续费 - * * - * @param RenewSessionPackageRequest $request RenewSessionPackageRequest - * @param RuntimeOptions $runtime runtime options for this request RuntimeOptions - * - * @return RenewSessionPackageResponse RenewSessionPackageResponse - */ - public function renewSessionPackageWithOptions($request, $runtime) - { - Utils::validateModel($request); - $query = []; - if (!Utils::isUnset($request->period)) { - $query['Period'] = $request->period; - } - if (!Utils::isUnset($request->periodUnit)) { - $query['PeriodUnit'] = $request->periodUnit; - } - if (!Utils::isUnset($request->sessionPackageId)) { - $query['SessionPackageId'] = $request->sessionPackageId; - } - $req = new OpenApiRequest([ - 'query' => OpenApiUtilClient::query($query), - ]); - $params = new Params([ - 'action' => 'RenewSessionPackage', - 'version' => '2021-09-01', - 'protocol' => 'HTTPS', - 'pathname' => '/', - 'method' => 'POST', - 'authType' => 'AK', - 'style' => 'RPC', - 'reqBodyType' => 'formData', - 'bodyType' => 'json', - ]); - - return RenewSessionPackageResponse::fromMap($this->callApi($params, $req, $runtime)); - } - - /** - * @summary 会话包续费 - * * - * @param RenewSessionPackageRequest $request RenewSessionPackageRequest - * - * @return RenewSessionPackageResponse RenewSessionPackageResponse - */ - public function renewSessionPackage($request) - { - $runtime = new RuntimeOptions([]); - - return $this->renewSessionPackageWithOptions($request, $runtime); - } - /** * @summary 解除用户绑定 * * @@ -2864,56 +2300,6 @@ public function unbind($request) return $this->unbindWithOptions($request, $runtime); } - /** - * @summary 更新访问页面状态 - * * - * @param UpdateAccessPageStateRequest $request UpdateAccessPageStateRequest - * @param RuntimeOptions $runtime runtime options for this request RuntimeOptions - * - * @return UpdateAccessPageStateResponse UpdateAccessPageStateResponse - */ - public function updateAccessPageStateWithOptions($request, $runtime) - { - Utils::validateModel($request); - $query = []; - if (!Utils::isUnset($request->accessPageId)) { - $query['AccessPageId'] = $request->accessPageId; - } - if (!Utils::isUnset($request->accessPageState)) { - $query['AccessPageState'] = $request->accessPageState; - } - $req = new OpenApiRequest([ - 'query' => OpenApiUtilClient::query($query), - ]); - $params = new Params([ - 'action' => 'UpdateAccessPageState', - 'version' => '2021-09-01', - 'protocol' => 'HTTPS', - 'pathname' => '/', - 'method' => 'POST', - 'authType' => 'AK', - 'style' => 'RPC', - 'reqBodyType' => 'formData', - 'bodyType' => 'json', - ]); - - return UpdateAccessPageStateResponse::fromMap($this->callApi($params, $req, $runtime)); - } - - /** - * @summary 更新访问页面状态 - * * - * @param UpdateAccessPageStateRequest $request UpdateAccessPageStateRequest - * - * @return UpdateAccessPageStateResponse UpdateAccessPageStateResponse - */ - public function updateAccessPageState($request) - { - $runtime = new RuntimeOptions([]); - - return $this->updateAccessPageStateWithOptions($request, $runtime); - } - /** * @summary 更新镜像 * * diff --git a/src/Models/AccessPageGetAclRequest.php b/src/Models/AccessPageGetAclRequest.php deleted file mode 100644 index 233984c..0000000 --- a/src/Models/AccessPageGetAclRequest.php +++ /dev/null @@ -1,49 +0,0 @@ - 'AccessPageId', - ]; - - public function validate() - { - } - - public function toMap() - { - $res = []; - if (null !== $this->accessPageId) { - $res['AccessPageId'] = $this->accessPageId; - } - - return $res; - } - - /** - * @param array $map - * - * @return AccessPageGetAclRequest - */ - public static function fromMap($map = []) - { - $model = new self(); - if (isset($map['AccessPageId'])) { - $model->accessPageId = $map['AccessPageId']; - } - - return $model; - } -} diff --git a/src/Models/AccessPageGetAclResponse.php b/src/Models/AccessPageGetAclResponse.php deleted file mode 100644 index 4702c2a..0000000 --- a/src/Models/AccessPageGetAclResponse.php +++ /dev/null @@ -1,71 +0,0 @@ - '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 AccessPageGetAclResponse - */ - public static function fromMap($map = []) - { - $model = new self(); - if (isset($map['headers'])) { - $model->headers = $map['headers']; - } - if (isset($map['statusCode'])) { - $model->statusCode = $map['statusCode']; - } - if (isset($map['body'])) { - $model->body = AccessPageGetAclResponseBody::fromMap($map['body']); - } - - return $model; - } -} diff --git a/src/Models/AccessPageGetAclResponseBody.php b/src/Models/AccessPageGetAclResponseBody.php deleted file mode 100644 index cdf76a9..0000000 --- a/src/Models/AccessPageGetAclResponseBody.php +++ /dev/null @@ -1,118 +0,0 @@ - 'Code', - 'data' => 'Data', - 'message' => 'Message', - 'requestId' => 'RequestId', - 'success' => 'Success', - ]; - - public function validate() - { - } - - public function toMap() - { - $res = []; - if (null !== $this->code) { - $res['Code'] = $this->code; - } - if (null !== $this->data) { - $res['Data'] = []; - if (null !== $this->data && \is_array($this->data)) { - $n = 0; - foreach ($this->data as $item) { - $res['Data'][$n++] = null !== $item ? $item->toMap() : $item; - } - } - } - if (null !== $this->message) { - $res['Message'] = $this->message; - } - if (null !== $this->requestId) { - $res['RequestId'] = $this->requestId; - } - if (null !== $this->success) { - $res['Success'] = $this->success; - } - - return $res; - } - - /** - * @param array $map - * - * @return AccessPageGetAclResponseBody - */ - public static function fromMap($map = []) - { - $model = new self(); - if (isset($map['Code'])) { - $model->code = $map['Code']; - } - if (isset($map['Data'])) { - if (!empty($map['Data'])) { - $model->data = []; - $n = 0; - foreach ($map['Data'] as $item) { - $model->data[$n++] = null !== $item ? data::fromMap($item) : $item; - } - } - } - if (isset($map['Message'])) { - $model->message = $map['Message']; - } - if (isset($map['RequestId'])) { - $model->requestId = $map['RequestId']; - } - if (isset($map['Success'])) { - $model->success = $map['Success']; - } - - return $model; - } -} diff --git a/src/Models/AccessPageGetAclResponseBody/data.php b/src/Models/AccessPageGetAclResponseBody/data.php deleted file mode 100644 index 917487b..0000000 --- a/src/Models/AccessPageGetAclResponseBody/data.php +++ /dev/null @@ -1,105 +0,0 @@ - 'AccessMode', - 'accessUrl' => 'AccessUrl', - 'effectTime' => 'EffectTime', - 'unit' => 'Unit', - 'urlExpireTime' => 'UrlExpireTime', - ]; - - public function validate() - { - } - - public function toMap() - { - $res = []; - if (null !== $this->accessMode) { - $res['AccessMode'] = $this->accessMode; - } - if (null !== $this->accessUrl) { - $res['AccessUrl'] = $this->accessUrl; - } - if (null !== $this->effectTime) { - $res['EffectTime'] = $this->effectTime; - } - if (null !== $this->unit) { - $res['Unit'] = $this->unit; - } - if (null !== $this->urlExpireTime) { - $res['UrlExpireTime'] = $this->urlExpireTime; - } - - return $res; - } - - /** - * @param array $map - * - * @return data - */ - public static function fromMap($map = []) - { - $model = new self(); - if (isset($map['AccessMode'])) { - $model->accessMode = $map['AccessMode']; - } - if (isset($map['AccessUrl'])) { - $model->accessUrl = $map['AccessUrl']; - } - if (isset($map['EffectTime'])) { - $model->effectTime = $map['EffectTime']; - } - if (isset($map['Unit'])) { - $model->unit = $map['Unit']; - } - if (isset($map['UrlExpireTime'])) { - $model->urlExpireTime = $map['UrlExpireTime']; - } - - return $model; - } -} diff --git a/src/Models/AskSessionPackageRenewPriceRequest.php b/src/Models/AskSessionPackageRenewPriceRequest.php deleted file mode 100644 index e1b0f4a..0000000 --- a/src/Models/AskSessionPackageRenewPriceRequest.php +++ /dev/null @@ -1,83 +0,0 @@ - 'Period', - 'periodUnit' => 'PeriodUnit', - 'sessionPackageId' => 'SessionPackageId', - ]; - - public function validate() - { - } - - public function toMap() - { - $res = []; - if (null !== $this->period) { - $res['Period'] = $this->period; - } - if (null !== $this->periodUnit) { - $res['PeriodUnit'] = $this->periodUnit; - } - if (null !== $this->sessionPackageId) { - $res['SessionPackageId'] = $this->sessionPackageId; - } - - return $res; - } - - /** - * @param array $map - * - * @return AskSessionPackageRenewPriceRequest - */ - public static function fromMap($map = []) - { - $model = new self(); - if (isset($map['Period'])) { - $model->period = $map['Period']; - } - if (isset($map['PeriodUnit'])) { - $model->periodUnit = $map['PeriodUnit']; - } - if (isset($map['SessionPackageId'])) { - $model->sessionPackageId = $map['SessionPackageId']; - } - - return $model; - } -} diff --git a/src/Models/AskSessionPackageRenewPriceResponse.php b/src/Models/AskSessionPackageRenewPriceResponse.php deleted file mode 100644 index 956e3ef..0000000 --- a/src/Models/AskSessionPackageRenewPriceResponse.php +++ /dev/null @@ -1,71 +0,0 @@ - '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 AskSessionPackageRenewPriceResponse - */ - public static function fromMap($map = []) - { - $model = new self(); - if (isset($map['headers'])) { - $model->headers = $map['headers']; - } - if (isset($map['statusCode'])) { - $model->statusCode = $map['statusCode']; - } - if (isset($map['body'])) { - $model->body = AskSessionPackageRenewPriceResponseBody::fromMap($map['body']); - } - - return $model; - } -} diff --git a/src/Models/AskSessionPackageRenewPriceResponseBody.php b/src/Models/AskSessionPackageRenewPriceResponseBody.php deleted file mode 100644 index af64b0d..0000000 --- a/src/Models/AskSessionPackageRenewPriceResponseBody.php +++ /dev/null @@ -1,74 +0,0 @@ - 'Data', - 'requestId' => 'RequestId', - ]; - - public function validate() - { - } - - public function toMap() - { - $res = []; - if (null !== $this->data) { - $res['Data'] = []; - if (null !== $this->data && \is_array($this->data)) { - $n = 0; - foreach ($this->data as $item) { - $res['Data'][$n++] = null !== $item ? $item->toMap() : $item; - } - } - } - if (null !== $this->requestId) { - $res['RequestId'] = $this->requestId; - } - - return $res; - } - - /** - * @param array $map - * - * @return AskSessionPackageRenewPriceResponseBody - */ - public static function fromMap($map = []) - { - $model = new self(); - if (isset($map['Data'])) { - if (!empty($map['Data'])) { - $model->data = []; - $n = 0; - foreach ($map['Data'] as $item) { - $model->data[$n++] = null !== $item ? data::fromMap($item) : $item; - } - } - } - if (isset($map['RequestId'])) { - $model->requestId = $map['RequestId']; - } - - return $model; - } -} diff --git a/src/Models/AskSessionPackageRenewPriceResponseBody/data.php b/src/Models/AskSessionPackageRenewPriceResponseBody/data.php deleted file mode 100644 index fcb721c..0000000 --- a/src/Models/AskSessionPackageRenewPriceResponseBody/data.php +++ /dev/null @@ -1,48 +0,0 @@ - 'Price', - ]; - - public function validate() - { - } - - public function toMap() - { - $res = []; - if (null !== $this->price) { - $res['Price'] = null !== $this->price ? $this->price->toMap() : null; - } - - return $res; - } - - /** - * @param array $map - * - * @return data - */ - public static function fromMap($map = []) - { - $model = new self(); - if (isset($map['Price'])) { - $model->price = price::fromMap($map['Price']); - } - - return $model; - } -} diff --git a/src/Models/AskSessionPackageRenewPriceResponseBody/data/price.php b/src/Models/AskSessionPackageRenewPriceResponseBody/data/price.php deleted file mode 100644 index f32028e..0000000 --- a/src/Models/AskSessionPackageRenewPriceResponseBody/data/price.php +++ /dev/null @@ -1,91 +0,0 @@ - 'Currency', - 'discountPrice' => 'DiscountPrice', - 'originalPrice' => 'OriginalPrice', - 'tradePrice' => 'TradePrice', - ]; - - public function validate() - { - } - - public function toMap() - { - $res = []; - if (null !== $this->currency) { - $res['Currency'] = $this->currency; - } - if (null !== $this->discountPrice) { - $res['DiscountPrice'] = $this->discountPrice; - } - if (null !== $this->originalPrice) { - $res['OriginalPrice'] = $this->originalPrice; - } - if (null !== $this->tradePrice) { - $res['TradePrice'] = $this->tradePrice; - } - - return $res; - } - - /** - * @param array $map - * - * @return price - */ - public static function fromMap($map = []) - { - $model = new self(); - if (isset($map['Currency'])) { - $model->currency = $map['Currency']; - } - if (isset($map['DiscountPrice'])) { - $model->discountPrice = $map['DiscountPrice']; - } - if (isset($map['OriginalPrice'])) { - $model->originalPrice = $map['OriginalPrice']; - } - if (isset($map['TradePrice'])) { - $model->tradePrice = $map['TradePrice']; - } - - return $model; - } -} diff --git a/src/Models/CancelOtaTaskRequest.php b/src/Models/CancelOtaTaskRequest.php deleted file mode 100644 index ce92419..0000000 --- a/src/Models/CancelOtaTaskRequest.php +++ /dev/null @@ -1,67 +0,0 @@ - 'AppInstanceGroupId', - 'taskId' => 'TaskId', - ]; - - public function validate() - { - } - - public function toMap() - { - $res = []; - if (null !== $this->appInstanceGroupId) { - $res['AppInstanceGroupId'] = $this->appInstanceGroupId; - } - if (null !== $this->taskId) { - $res['TaskId'] = $this->taskId; - } - - return $res; - } - - /** - * @param array $map - * - * @return CancelOtaTaskRequest - */ - public static function fromMap($map = []) - { - $model = new self(); - if (isset($map['AppInstanceGroupId'])) { - $model->appInstanceGroupId = $map['AppInstanceGroupId']; - } - if (isset($map['TaskId'])) { - $model->taskId = $map['TaskId']; - } - - return $model; - } -} diff --git a/src/Models/CancelOtaTaskResponse.php b/src/Models/CancelOtaTaskResponse.php deleted file mode 100644 index ad6e036..0000000 --- a/src/Models/CancelOtaTaskResponse.php +++ /dev/null @@ -1,71 +0,0 @@ - '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 CancelOtaTaskResponse - */ - 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 = CancelOtaTaskResponseBody::fromMap($map['body']); - } - - return $model; - } -} diff --git a/src/Models/CancelOtaTaskResponseBody.php b/src/Models/CancelOtaTaskResponseBody.php deleted file mode 100644 index 179db2e..0000000 --- a/src/Models/CancelOtaTaskResponseBody.php +++ /dev/null @@ -1,77 +0,0 @@ - 'Code', - 'message' => 'Message', - 'requestId' => 'RequestId', - ]; - - public function validate() - { - } - - public function toMap() - { - $res = []; - if (null !== $this->code) { - $res['Code'] = $this->code; - } - if (null !== $this->message) { - $res['Message'] = $this->message; - } - if (null !== $this->requestId) { - $res['RequestId'] = $this->requestId; - } - - return $res; - } - - /** - * @param array $map - * - * @return CancelOtaTaskResponseBody - */ - public static function fromMap($map = []) - { - $model = new self(); - if (isset($map['Code'])) { - $model->code = $map['Code']; - } - if (isset($map['Message'])) { - $model->message = $map['Message']; - } - if (isset($map['RequestId'])) { - $model->requestId = $map['RequestId']; - } - - return $model; - } -} diff --git a/src/Models/CreateAppInstanceGroupRequest.php b/src/Models/CreateAppInstanceGroupRequest.php index 3a6a12b..6ad4a7c 100644 --- a/src/Models/CreateAppInstanceGroupRequest.php +++ b/src/Models/CreateAppInstanceGroupRequest.php @@ -30,6 +30,11 @@ class CreateAppInstanceGroupRequest extends Model */ public $appInstanceGroupName; + /** + * @var string + */ + public $appPolicyId; + /** * @example false * @@ -166,6 +171,7 @@ class CreateAppInstanceGroupRequest extends Model protected $_name = [ 'appCenterImageId' => 'AppCenterImageId', 'appInstanceGroupName' => 'AppInstanceGroupName', + 'appPolicyId' => 'AppPolicyId', 'autoPay' => 'AutoPay', 'autoRenew' => 'AutoRenew', 'bizRegionId' => 'BizRegionId', @@ -201,6 +207,9 @@ public function toMap() if (null !== $this->appInstanceGroupName) { $res['AppInstanceGroupName'] = $this->appInstanceGroupName; } + if (null !== $this->appPolicyId) { + $res['AppPolicyId'] = $this->appPolicyId; + } if (null !== $this->autoPay) { $res['AutoPay'] = $this->autoPay; } @@ -279,6 +288,9 @@ public static function fromMap($map = []) if (isset($map['AppInstanceGroupName'])) { $model->appInstanceGroupName = $map['AppInstanceGroupName']; } + if (isset($map['AppPolicyId'])) { + $model->appPolicyId = $map['AppPolicyId']; + } if (isset($map['AutoPay'])) { $model->autoPay = $map['AutoPay']; } diff --git a/src/Models/CreateAppInstanceGroupShrinkRequest.php b/src/Models/CreateAppInstanceGroupShrinkRequest.php index f35b5e8..e21004c 100644 --- a/src/Models/CreateAppInstanceGroupShrinkRequest.php +++ b/src/Models/CreateAppInstanceGroupShrinkRequest.php @@ -22,6 +22,11 @@ class CreateAppInstanceGroupShrinkRequest extends Model */ public $appInstanceGroupName; + /** + * @var string + */ + public $appPolicyId; + /** * @example false * @@ -158,6 +163,7 @@ class CreateAppInstanceGroupShrinkRequest extends Model protected $_name = [ 'appCenterImageId' => 'AppCenterImageId', 'appInstanceGroupName' => 'AppInstanceGroupName', + 'appPolicyId' => 'AppPolicyId', 'autoPay' => 'AutoPay', 'autoRenew' => 'AutoRenew', 'bizRegionId' => 'BizRegionId', @@ -193,6 +199,9 @@ public function toMap() if (null !== $this->appInstanceGroupName) { $res['AppInstanceGroupName'] = $this->appInstanceGroupName; } + if (null !== $this->appPolicyId) { + $res['AppPolicyId'] = $this->appPolicyId; + } if (null !== $this->autoPay) { $res['AutoPay'] = $this->autoPay; } @@ -271,6 +280,9 @@ public static function fromMap($map = []) if (isset($map['AppInstanceGroupName'])) { $model->appInstanceGroupName = $map['AppInstanceGroupName']; } + if (isset($map['AppPolicyId'])) { + $model->appPolicyId = $map['AppPolicyId']; + } if (isset($map['AutoPay'])) { $model->autoPay = $map['AutoPay']; } diff --git a/src/Models/CreateProjectRequest.php b/src/Models/CreateProjectRequest.php deleted file mode 100644 index d1dc421..0000000 --- a/src/Models/CreateProjectRequest.php +++ /dev/null @@ -1,215 +0,0 @@ - 'Clipboard', - 'cloudEnvId' => 'CloudEnvId', - 'contentId' => 'ContentId', - 'description' => 'Description', - 'fileTransfer' => 'FileTransfer', - 'frameRate' => 'FrameRate', - 'keepAliveDuration' => 'KeepAliveDuration', - 'projectName' => 'ProjectName', - 'sessionResolutionHeight' => 'SessionResolutionHeight', - 'sessionResolutionWidth' => 'SessionResolutionWidth', - 'sessionSpec' => 'SessionSpec', - 'streamingMode' => 'StreamingMode', - 'terminalResolutionAdaptation' => 'TerminalResolutionAdaptation', - ]; - - public function validate() - { - } - - public function toMap() - { - $res = []; - if (null !== $this->clipboard) { - $res['Clipboard'] = $this->clipboard; - } - if (null !== $this->cloudEnvId) { - $res['CloudEnvId'] = $this->cloudEnvId; - } - if (null !== $this->contentId) { - $res['ContentId'] = $this->contentId; - } - if (null !== $this->description) { - $res['Description'] = $this->description; - } - if (null !== $this->fileTransfer) { - $res['FileTransfer'] = $this->fileTransfer; - } - if (null !== $this->frameRate) { - $res['FrameRate'] = $this->frameRate; - } - if (null !== $this->keepAliveDuration) { - $res['KeepAliveDuration'] = $this->keepAliveDuration; - } - if (null !== $this->projectName) { - $res['ProjectName'] = $this->projectName; - } - if (null !== $this->sessionResolutionHeight) { - $res['SessionResolutionHeight'] = $this->sessionResolutionHeight; - } - if (null !== $this->sessionResolutionWidth) { - $res['SessionResolutionWidth'] = $this->sessionResolutionWidth; - } - if (null !== $this->sessionSpec) { - $res['SessionSpec'] = $this->sessionSpec; - } - if (null !== $this->streamingMode) { - $res['StreamingMode'] = $this->streamingMode; - } - if (null !== $this->terminalResolutionAdaptation) { - $res['TerminalResolutionAdaptation'] = $this->terminalResolutionAdaptation; - } - - return $res; - } - - /** - * @param array $map - * - * @return CreateProjectRequest - */ - public static function fromMap($map = []) - { - $model = new self(); - if (isset($map['Clipboard'])) { - $model->clipboard = $map['Clipboard']; - } - if (isset($map['CloudEnvId'])) { - $model->cloudEnvId = $map['CloudEnvId']; - } - if (isset($map['ContentId'])) { - $model->contentId = $map['ContentId']; - } - if (isset($map['Description'])) { - $model->description = $map['Description']; - } - if (isset($map['FileTransfer'])) { - $model->fileTransfer = $map['FileTransfer']; - } - if (isset($map['FrameRate'])) { - $model->frameRate = $map['FrameRate']; - } - if (isset($map['KeepAliveDuration'])) { - $model->keepAliveDuration = $map['KeepAliveDuration']; - } - if (isset($map['ProjectName'])) { - $model->projectName = $map['ProjectName']; - } - if (isset($map['SessionResolutionHeight'])) { - $model->sessionResolutionHeight = $map['SessionResolutionHeight']; - } - if (isset($map['SessionResolutionWidth'])) { - $model->sessionResolutionWidth = $map['SessionResolutionWidth']; - } - if (isset($map['SessionSpec'])) { - $model->sessionSpec = $map['SessionSpec']; - } - if (isset($map['StreamingMode'])) { - $model->streamingMode = $map['StreamingMode']; - } - if (isset($map['TerminalResolutionAdaptation'])) { - $model->terminalResolutionAdaptation = $map['TerminalResolutionAdaptation']; - } - - return $model; - } -} diff --git a/src/Models/CreateProjectResponse.php b/src/Models/CreateProjectResponse.php deleted file mode 100644 index fe6557b..0000000 --- a/src/Models/CreateProjectResponse.php +++ /dev/null @@ -1,71 +0,0 @@ - '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 CreateProjectResponse - */ - public static function fromMap($map = []) - { - $model = new self(); - if (isset($map['headers'])) { - $model->headers = $map['headers']; - } - if (isset($map['statusCode'])) { - $model->statusCode = $map['statusCode']; - } - if (isset($map['body'])) { - $model->body = CreateProjectResponseBody::fromMap($map['body']); - } - - return $model; - } -} diff --git a/src/Models/CreateProjectResponseBody.php b/src/Models/CreateProjectResponseBody.php deleted file mode 100644 index b1ca476..0000000 --- a/src/Models/CreateProjectResponseBody.php +++ /dev/null @@ -1,133 +0,0 @@ - 'Code', - 'data' => 'Data', - 'message' => 'Message', - 'pageNumber' => 'PageNumber', - 'pageSize' => 'PageSize', - 'requestId' => 'RequestId', - 'success' => 'Success', - ]; - - public function validate() - { - } - - public function toMap() - { - $res = []; - if (null !== $this->code) { - $res['Code'] = $this->code; - } - if (null !== $this->data) { - $res['Data'] = $this->data; - } - if (null !== $this->message) { - $res['Message'] = $this->message; - } - if (null !== $this->pageNumber) { - $res['PageNumber'] = $this->pageNumber; - } - if (null !== $this->pageSize) { - $res['PageSize'] = $this->pageSize; - } - if (null !== $this->requestId) { - $res['RequestId'] = $this->requestId; - } - if (null !== $this->success) { - $res['Success'] = $this->success; - } - - return $res; - } - - /** - * @param array $map - * - * @return CreateProjectResponseBody - */ - public static function fromMap($map = []) - { - $model = new self(); - if (isset($map['Code'])) { - $model->code = $map['Code']; - } - if (isset($map['Data'])) { - $model->data = $map['Data']; - } - if (isset($map['Message'])) { - $model->message = $map['Message']; - } - if (isset($map['PageNumber'])) { - $model->pageNumber = $map['PageNumber']; - } - if (isset($map['PageSize'])) { - $model->pageSize = $map['PageSize']; - } - if (isset($map['RequestId'])) { - $model->requestId = $map['RequestId']; - } - if (isset($map['Success'])) { - $model->success = $map['Success']; - } - - return $model; - } -} diff --git a/src/Models/DeleteProjectRequest.php b/src/Models/DeleteProjectRequest.php deleted file mode 100644 index 2e2fcb2..0000000 --- a/src/Models/DeleteProjectRequest.php +++ /dev/null @@ -1,49 +0,0 @@ - 'ProjectId', - ]; - - public function validate() - { - } - - public function toMap() - { - $res = []; - if (null !== $this->projectId) { - $res['ProjectId'] = $this->projectId; - } - - return $res; - } - - /** - * @param array $map - * - * @return DeleteProjectRequest - */ - public static function fromMap($map = []) - { - $model = new self(); - if (isset($map['ProjectId'])) { - $model->projectId = $map['ProjectId']; - } - - return $model; - } -} diff --git a/src/Models/DeleteProjectResponse.php b/src/Models/DeleteProjectResponse.php deleted file mode 100644 index 712a89b..0000000 --- a/src/Models/DeleteProjectResponse.php +++ /dev/null @@ -1,71 +0,0 @@ - '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 DeleteProjectResponse - */ - public static function fromMap($map = []) - { - $model = new self(); - if (isset($map['headers'])) { - $model->headers = $map['headers']; - } - if (isset($map['statusCode'])) { - $model->statusCode = $map['statusCode']; - } - if (isset($map['body'])) { - $model->body = DeleteProjectResponseBody::fromMap($map['body']); - } - - return $model; - } -} diff --git a/src/Models/DeleteProjectResponseBody.php b/src/Models/DeleteProjectResponseBody.php deleted file mode 100644 index 5961737..0000000 --- a/src/Models/DeleteProjectResponseBody.php +++ /dev/null @@ -1,105 +0,0 @@ - 'Code', - 'data' => 'Data', - 'message' => 'Message', - 'requestId' => 'RequestId', - 'success' => 'Success', - ]; - - public function validate() - { - } - - public function toMap() - { - $res = []; - if (null !== $this->code) { - $res['Code'] = $this->code; - } - if (null !== $this->data) { - $res['Data'] = $this->data; - } - if (null !== $this->message) { - $res['Message'] = $this->message; - } - if (null !== $this->requestId) { - $res['RequestId'] = $this->requestId; - } - if (null !== $this->success) { - $res['Success'] = $this->success; - } - - return $res; - } - - /** - * @param array $map - * - * @return DeleteProjectResponseBody - */ - public static function fromMap($map = []) - { - $model = new self(); - if (isset($map['Code'])) { - $model->code = $map['Code']; - } - if (isset($map['Data'])) { - $model->data = $map['Data']; - } - if (isset($map['Message'])) { - $model->message = $map['Message']; - } - if (isset($map['RequestId'])) { - $model->requestId = $map['RequestId']; - } - if (isset($map['Success'])) { - $model->success = $map['Success']; - } - - return $model; - } -} diff --git a/src/Models/GetAppInstanceGroupResponseBody/appInstanceGroupModels.php b/src/Models/GetAppInstanceGroupResponseBody/appInstanceGroupModels.php index 4c62eaf..883a569 100644 --- a/src/Models/GetAppInstanceGroupResponseBody/appInstanceGroupModels.php +++ b/src/Models/GetAppInstanceGroupResponseBody/appInstanceGroupModels.php @@ -202,6 +202,11 @@ class appInstanceGroupModels extends Model */ public $sessionTimeout; + /** + * @var string + */ + public $sessionType; + /** * @example false * @@ -252,6 +257,7 @@ class appInstanceGroupModels extends Model 'scalingStep' => 'ScalingStep', 'scalingUsageThreshold' => 'ScalingUsageThreshold', 'sessionTimeout' => 'SessionTimeout', + 'sessionType' => 'SessionType', 'skipUserAuthCheck' => 'SkipUserAuthCheck', 'specId' => 'SpecId', 'status' => 'Status', @@ -363,6 +369,9 @@ public function toMap() if (null !== $this->sessionTimeout) { $res['SessionTimeout'] = $this->sessionTimeout; } + if (null !== $this->sessionType) { + $res['SessionType'] = $this->sessionType; + } if (null !== $this->skipUserAuthCheck) { $res['SkipUserAuthCheck'] = $this->skipUserAuthCheck; } @@ -483,6 +492,9 @@ public static function fromMap($map = []) if (isset($map['SessionTimeout'])) { $model->sessionTimeout = $map['SessionTimeout']; } + if (isset($map['SessionType'])) { + $model->sessionType = $map['SessionType']; + } if (isset($map['SkipUserAuthCheck'])) { $model->skipUserAuthCheck = $map['SkipUserAuthCheck']; } diff --git a/src/Models/GetProjectPoliciesRequest.php b/src/Models/GetProjectPoliciesRequest.php deleted file mode 100644 index c1d8fb2..0000000 --- a/src/Models/GetProjectPoliciesRequest.php +++ /dev/null @@ -1,49 +0,0 @@ - 'ProjectId', - ]; - - public function validate() - { - } - - public function toMap() - { - $res = []; - if (null !== $this->projectId) { - $res['ProjectId'] = $this->projectId; - } - - return $res; - } - - /** - * @param array $map - * - * @return GetProjectPoliciesRequest - */ - public static function fromMap($map = []) - { - $model = new self(); - if (isset($map['ProjectId'])) { - $model->projectId = $map['ProjectId']; - } - - return $model; - } -} diff --git a/src/Models/GetProjectPoliciesResponse.php b/src/Models/GetProjectPoliciesResponse.php deleted file mode 100644 index 1053d37..0000000 --- a/src/Models/GetProjectPoliciesResponse.php +++ /dev/null @@ -1,71 +0,0 @@ - '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 GetProjectPoliciesResponse - */ - public static function fromMap($map = []) - { - $model = new self(); - if (isset($map['headers'])) { - $model->headers = $map['headers']; - } - if (isset($map['statusCode'])) { - $model->statusCode = $map['statusCode']; - } - if (isset($map['body'])) { - $model->body = GetProjectPoliciesResponseBody::fromMap($map['body']); - } - - return $model; - } -} diff --git a/src/Models/GetProjectPoliciesResponseBody.php b/src/Models/GetProjectPoliciesResponseBody.php deleted file mode 100644 index 23e5fc5..0000000 --- a/src/Models/GetProjectPoliciesResponseBody.php +++ /dev/null @@ -1,104 +0,0 @@ - 'Code', - 'data' => 'Data', - 'message' => 'Message', - 'requestId' => 'RequestId', - 'success' => 'Success', - ]; - - public function validate() - { - } - - public function toMap() - { - $res = []; - if (null !== $this->code) { - $res['Code'] = $this->code; - } - if (null !== $this->data) { - $res['Data'] = null !== $this->data ? $this->data->toMap() : null; - } - if (null !== $this->message) { - $res['Message'] = $this->message; - } - if (null !== $this->requestId) { - $res['RequestId'] = $this->requestId; - } - if (null !== $this->success) { - $res['Success'] = $this->success; - } - - return $res; - } - - /** - * @param array $map - * - * @return GetProjectPoliciesResponseBody - */ - public static function fromMap($map = []) - { - $model = new self(); - if (isset($map['Code'])) { - $model->code = $map['Code']; - } - if (isset($map['Data'])) { - $model->data = data::fromMap($map['Data']); - } - if (isset($map['Message'])) { - $model->message = $map['Message']; - } - if (isset($map['RequestId'])) { - $model->requestId = $map['RequestId']; - } - if (isset($map['Success'])) { - $model->success = $map['Success']; - } - - return $model; - } -} diff --git a/src/Models/GetProjectPoliciesResponseBody/data.php b/src/Models/GetProjectPoliciesResponseBody/data.php deleted file mode 100644 index fbb9b1c..0000000 --- a/src/Models/GetProjectPoliciesResponseBody/data.php +++ /dev/null @@ -1,201 +0,0 @@ - 'Clipboard', - 'fileTransfer' => 'FileTransfer', - 'frameRate' => 'FrameRate', - 'keepAliveDuration' => 'KeepAliveDuration', - 'maxHours' => 'MaxHours', - 'maxSessions' => 'MaxSessions', - 'projectId' => 'ProjectId', - 'sessionResolutionHeight' => 'SessionResolutionHeight', - 'sessionResolutionWidth' => 'SessionResolutionWidth', - 'sessionSpec' => 'SessionSpec', - 'streamingMode' => 'StreamingMode', - 'terminalResolutionAdaptation' => 'TerminalResolutionAdaptation', - ]; - - public function validate() - { - } - - public function toMap() - { - $res = []; - if (null !== $this->clipboard) { - $res['Clipboard'] = $this->clipboard; - } - if (null !== $this->fileTransfer) { - $res['FileTransfer'] = $this->fileTransfer; - } - if (null !== $this->frameRate) { - $res['FrameRate'] = $this->frameRate; - } - if (null !== $this->keepAliveDuration) { - $res['KeepAliveDuration'] = $this->keepAliveDuration; - } - if (null !== $this->maxHours) { - $res['MaxHours'] = $this->maxHours; - } - if (null !== $this->maxSessions) { - $res['MaxSessions'] = $this->maxSessions; - } - if (null !== $this->projectId) { - $res['ProjectId'] = $this->projectId; - } - if (null !== $this->sessionResolutionHeight) { - $res['SessionResolutionHeight'] = $this->sessionResolutionHeight; - } - if (null !== $this->sessionResolutionWidth) { - $res['SessionResolutionWidth'] = $this->sessionResolutionWidth; - } - if (null !== $this->sessionSpec) { - $res['SessionSpec'] = $this->sessionSpec; - } - if (null !== $this->streamingMode) { - $res['StreamingMode'] = $this->streamingMode; - } - if (null !== $this->terminalResolutionAdaptation) { - $res['TerminalResolutionAdaptation'] = $this->terminalResolutionAdaptation; - } - - return $res; - } - - /** - * @param array $map - * - * @return data - */ - public static function fromMap($map = []) - { - $model = new self(); - if (isset($map['Clipboard'])) { - $model->clipboard = $map['Clipboard']; - } - if (isset($map['FileTransfer'])) { - $model->fileTransfer = $map['FileTransfer']; - } - if (isset($map['FrameRate'])) { - $model->frameRate = $map['FrameRate']; - } - if (isset($map['KeepAliveDuration'])) { - $model->keepAliveDuration = $map['KeepAliveDuration']; - } - if (isset($map['MaxHours'])) { - $model->maxHours = $map['MaxHours']; - } - if (isset($map['MaxSessions'])) { - $model->maxSessions = $map['MaxSessions']; - } - if (isset($map['ProjectId'])) { - $model->projectId = $map['ProjectId']; - } - if (isset($map['SessionResolutionHeight'])) { - $model->sessionResolutionHeight = $map['SessionResolutionHeight']; - } - if (isset($map['SessionResolutionWidth'])) { - $model->sessionResolutionWidth = $map['SessionResolutionWidth']; - } - if (isset($map['SessionSpec'])) { - $model->sessionSpec = $map['SessionSpec']; - } - if (isset($map['StreamingMode'])) { - $model->streamingMode = $map['StreamingMode']; - } - if (isset($map['TerminalResolutionAdaptation'])) { - $model->terminalResolutionAdaptation = $map['TerminalResolutionAdaptation']; - } - - return $model; - } -} diff --git a/src/Models/ListAppInstanceGroupResponseBody/appInstanceGroupModels.php b/src/Models/ListAppInstanceGroupResponseBody/appInstanceGroupModels.php index 6a492e9..8862742 100644 --- a/src/Models/ListAppInstanceGroupResponseBody/appInstanceGroupModels.php +++ b/src/Models/ListAppInstanceGroupResponseBody/appInstanceGroupModels.php @@ -53,6 +53,16 @@ class appInstanceGroupModels extends Model */ public $appPolicyId; + /** + * @var bool + */ + public $appPolicyImageCheck; + + /** + * @var string + */ + public $appPolicyVersion; + /** * @var apps[] */ @@ -221,6 +231,8 @@ class appInstanceGroupModels extends Model 'appInstanceGroupName' => 'AppInstanceGroupName', 'appInstanceType' => 'AppInstanceType', 'appPolicyId' => 'AppPolicyId', + 'appPolicyImageCheck' => 'AppPolicyImageCheck', + 'appPolicyVersion' => 'AppPolicyVersion', 'apps' => 'Apps', 'chargeResourceMode' => 'ChargeResourceMode', 'chargeType' => 'ChargeType', @@ -272,6 +284,12 @@ public function toMap() if (null !== $this->appPolicyId) { $res['AppPolicyId'] = $this->appPolicyId; } + if (null !== $this->appPolicyImageCheck) { + $res['AppPolicyImageCheck'] = $this->appPolicyImageCheck; + } + if (null !== $this->appPolicyVersion) { + $res['AppPolicyVersion'] = $this->appPolicyVersion; + } if (null !== $this->apps) { $res['Apps'] = []; if (null !== $this->apps && \is_array($this->apps)) { @@ -386,6 +404,12 @@ public static function fromMap($map = []) if (isset($map['AppPolicyId'])) { $model->appPolicyId = $map['AppPolicyId']; } + if (isset($map['AppPolicyImageCheck'])) { + $model->appPolicyImageCheck = $map['AppPolicyImageCheck']; + } + if (isset($map['AppPolicyVersion'])) { + $model->appPolicyVersion = $map['AppPolicyVersion']; + } if (isset($map['Apps'])) { if (!empty($map['Apps'])) { $model->apps = []; diff --git a/src/Models/ListBindInfoRequest.php b/src/Models/ListBindInfoRequest.php new file mode 100644 index 0000000..7708089 --- /dev/null +++ b/src/Models/ListBindInfoRequest.php @@ -0,0 +1,133 @@ + 'AppIdList', + 'appInstanceGroupIdList' => 'AppInstanceGroupIdList', + 'appInstanceIdList' => 'AppInstanceIdList', + 'pageNumber' => 'PageNumber', + 'pageSize' => 'PageSize', + 'userIdList' => 'UserIdList', + 'wyIdList' => 'WyIdList', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->appIdList) { + $res['AppIdList'] = $this->appIdList; + } + if (null !== $this->appInstanceGroupIdList) { + $res['AppInstanceGroupIdList'] = $this->appInstanceGroupIdList; + } + if (null !== $this->appInstanceIdList) { + $res['AppInstanceIdList'] = $this->appInstanceIdList; + } + if (null !== $this->pageNumber) { + $res['PageNumber'] = $this->pageNumber; + } + if (null !== $this->pageSize) { + $res['PageSize'] = $this->pageSize; + } + if (null !== $this->userIdList) { + $res['UserIdList'] = $this->userIdList; + } + if (null !== $this->wyIdList) { + $res['WyIdList'] = $this->wyIdList; + } + + return $res; + } + + /** + * @param array $map + * + * @return ListBindInfoRequest + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['AppIdList'])) { + if (!empty($map['AppIdList'])) { + $model->appIdList = $map['AppIdList']; + } + } + if (isset($map['AppInstanceGroupIdList'])) { + if (!empty($map['AppInstanceGroupIdList'])) { + $model->appInstanceGroupIdList = $map['AppInstanceGroupIdList']; + } + } + if (isset($map['AppInstanceIdList'])) { + if (!empty($map['AppInstanceIdList'])) { + $model->appInstanceIdList = $map['AppInstanceIdList']; + } + } + if (isset($map['PageNumber'])) { + $model->pageNumber = $map['PageNumber']; + } + if (isset($map['PageSize'])) { + $model->pageSize = $map['PageSize']; + } + if (isset($map['UserIdList'])) { + if (!empty($map['UserIdList'])) { + $model->userIdList = $map['UserIdList']; + } + } + if (isset($map['WyIdList'])) { + if (!empty($map['WyIdList'])) { + $model->wyIdList = $map['WyIdList']; + } + } + + return $model; + } +} diff --git a/src/Models/ListProjectsResponse.php b/src/Models/ListBindInfoResponse.php similarity index 88% rename from src/Models/ListProjectsResponse.php rename to src/Models/ListBindInfoResponse.php index 6c0968e..cfbee97 100644 --- a/src/Models/ListProjectsResponse.php +++ b/src/Models/ListBindInfoResponse.php @@ -6,7 +6,7 @@ use AlibabaCloud\Tea\Model; -class ListProjectsResponse extends Model +class ListBindInfoResponse extends Model { /** * @var string[] @@ -19,7 +19,7 @@ class ListProjectsResponse extends Model public $statusCode; /** - * @var ListProjectsResponseBody + * @var ListBindInfoResponseBody */ public $body; protected $_name = [ @@ -51,7 +51,7 @@ public function toMap() /** * @param array $map * - * @return ListProjectsResponse + * @return ListBindInfoResponse */ public static function fromMap($map = []) { @@ -63,7 +63,7 @@ public static function fromMap($map = []) $model->statusCode = $map['statusCode']; } if (isset($map['body'])) { - $model->body = ListProjectsResponseBody::fromMap($map['body']); + $model->body = ListBindInfoResponseBody::fromMap($map['body']); } return $model; diff --git a/src/Models/ListBindInfoResponseBody.php b/src/Models/ListBindInfoResponseBody.php new file mode 100644 index 0000000..36bfeed --- /dev/null +++ b/src/Models/ListBindInfoResponseBody.php @@ -0,0 +1,116 @@ + 'BindInfoModels', + 'pageNumber' => 'PageNumber', + 'pageSize' => 'PageSize', + 'requestId' => 'RequestId', + 'totalCount' => 'TotalCount', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->bindInfoModels) { + $res['BindInfoModels'] = []; + if (null !== $this->bindInfoModels && \is_array($this->bindInfoModels)) { + $n = 0; + foreach ($this->bindInfoModels as $item) { + $res['BindInfoModels'][$n++] = null !== $item ? $item->toMap() : $item; + } + } + } + if (null !== $this->pageNumber) { + $res['PageNumber'] = $this->pageNumber; + } + if (null !== $this->pageSize) { + $res['PageSize'] = $this->pageSize; + } + if (null !== $this->requestId) { + $res['RequestId'] = $this->requestId; + } + if (null !== $this->totalCount) { + $res['TotalCount'] = $this->totalCount; + } + + return $res; + } + + /** + * @param array $map + * + * @return ListBindInfoResponseBody + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['BindInfoModels'])) { + if (!empty($map['BindInfoModels'])) { + $model->bindInfoModels = []; + $n = 0; + foreach ($map['BindInfoModels'] as $item) { + $model->bindInfoModels[$n++] = null !== $item ? bindInfoModels::fromMap($item) : $item; + } + } + } + if (isset($map['PageNumber'])) { + $model->pageNumber = $map['PageNumber']; + } + if (isset($map['PageSize'])) { + $model->pageSize = $map['PageSize']; + } + if (isset($map['RequestId'])) { + $model->requestId = $map['RequestId']; + } + if (isset($map['TotalCount'])) { + $model->totalCount = $map['TotalCount']; + } + + return $model; + } +} diff --git a/src/Models/ListBindInfoResponseBody/bindInfoModels.php b/src/Models/ListBindInfoResponseBody/bindInfoModels.php new file mode 100644 index 0000000..1eceaab --- /dev/null +++ b/src/Models/ListBindInfoResponseBody/bindInfoModels.php @@ -0,0 +1,161 @@ + 'AccountType', + 'appId' => 'AppId', + 'appInstanceGroupId' => 'AppInstanceGroupId', + 'appInstanceId' => 'AppInstanceId', + 'appVersion' => 'AppVersion', + 'productType' => 'ProductType', + 'regionId' => 'RegionId', + 'userId' => 'UserId', + 'wyId' => 'WyId', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->accountType) { + $res['AccountType'] = $this->accountType; + } + if (null !== $this->appId) { + $res['AppId'] = $this->appId; + } + if (null !== $this->appInstanceGroupId) { + $res['AppInstanceGroupId'] = $this->appInstanceGroupId; + } + if (null !== $this->appInstanceId) { + $res['AppInstanceId'] = $this->appInstanceId; + } + if (null !== $this->appVersion) { + $res['AppVersion'] = $this->appVersion; + } + if (null !== $this->productType) { + $res['ProductType'] = $this->productType; + } + if (null !== $this->regionId) { + $res['RegionId'] = $this->regionId; + } + if (null !== $this->userId) { + $res['UserId'] = $this->userId; + } + if (null !== $this->wyId) { + $res['WyId'] = $this->wyId; + } + + return $res; + } + + /** + * @param array $map + * + * @return bindInfoModels + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['AccountType'])) { + $model->accountType = $map['AccountType']; + } + if (isset($map['AppId'])) { + $model->appId = $map['AppId']; + } + if (isset($map['AppInstanceGroupId'])) { + $model->appInstanceGroupId = $map['AppInstanceGroupId']; + } + if (isset($map['AppInstanceId'])) { + $model->appInstanceId = $map['AppInstanceId']; + } + if (isset($map['AppVersion'])) { + $model->appVersion = $map['AppVersion']; + } + if (isset($map['ProductType'])) { + $model->productType = $map['ProductType']; + } + if (isset($map['RegionId'])) { + $model->regionId = $map['RegionId']; + } + if (isset($map['UserId'])) { + $model->userId = $map['UserId']; + } + if (isset($map['WyId'])) { + $model->wyId = $map['WyId']; + } + + return $model; + } +} diff --git a/src/Models/ListProjectsRequest.php b/src/Models/ListProjectsRequest.php deleted file mode 100644 index c62a8b8..0000000 --- a/src/Models/ListProjectsRequest.php +++ /dev/null @@ -1,119 +0,0 @@ - 'PageNumber', - 'pageSize' => 'PageSize', - 'projectId' => 'ProjectId', - 'projectName' => 'ProjectName', - 'sortType' => 'SortType', - 'stateList' => 'StateList', - ]; - - public function validate() - { - } - - public function toMap() - { - $res = []; - if (null !== $this->pageNumber) { - $res['PageNumber'] = $this->pageNumber; - } - if (null !== $this->pageSize) { - $res['PageSize'] = $this->pageSize; - } - if (null !== $this->projectId) { - $res['ProjectId'] = $this->projectId; - } - if (null !== $this->projectName) { - $res['ProjectName'] = $this->projectName; - } - if (null !== $this->sortType) { - $res['SortType'] = $this->sortType; - } - if (null !== $this->stateList) { - $res['StateList'] = $this->stateList; - } - - return $res; - } - - /** - * @param array $map - * - * @return ListProjectsRequest - */ - public static function fromMap($map = []) - { - $model = new self(); - if (isset($map['PageNumber'])) { - $model->pageNumber = $map['PageNumber']; - } - if (isset($map['PageSize'])) { - $model->pageSize = $map['PageSize']; - } - if (isset($map['ProjectId'])) { - $model->projectId = $map['ProjectId']; - } - if (isset($map['ProjectName'])) { - $model->projectName = $map['ProjectName']; - } - if (isset($map['SortType'])) { - $model->sortType = $map['SortType']; - } - if (isset($map['StateList'])) { - if (!empty($map['StateList'])) { - $model->stateList = $map['StateList']; - } - } - - return $model; - } -} diff --git a/src/Models/ListProjectsResponseBody.php b/src/Models/ListProjectsResponseBody.php deleted file mode 100644 index e17300b..0000000 --- a/src/Models/ListProjectsResponseBody.php +++ /dev/null @@ -1,158 +0,0 @@ - 'Code', - 'data' => 'Data', - 'message' => 'Message', - 'pageNumber' => 'PageNumber', - 'pageSize' => 'PageSize', - 'requestId' => 'RequestId', - 'success' => 'Success', - 'totalCount' => 'TotalCount', - ]; - - public function validate() - { - } - - public function toMap() - { - $res = []; - if (null !== $this->code) { - $res['Code'] = $this->code; - } - if (null !== $this->data) { - $res['Data'] = []; - if (null !== $this->data && \is_array($this->data)) { - $n = 0; - foreach ($this->data as $item) { - $res['Data'][$n++] = null !== $item ? $item->toMap() : $item; - } - } - } - if (null !== $this->message) { - $res['Message'] = $this->message; - } - if (null !== $this->pageNumber) { - $res['PageNumber'] = $this->pageNumber; - } - if (null !== $this->pageSize) { - $res['PageSize'] = $this->pageSize; - } - if (null !== $this->requestId) { - $res['RequestId'] = $this->requestId; - } - if (null !== $this->success) { - $res['Success'] = $this->success; - } - if (null !== $this->totalCount) { - $res['TotalCount'] = $this->totalCount; - } - - return $res; - } - - /** - * @param array $map - * - * @return ListProjectsResponseBody - */ - public static function fromMap($map = []) - { - $model = new self(); - if (isset($map['Code'])) { - $model->code = $map['Code']; - } - if (isset($map['Data'])) { - if (!empty($map['Data'])) { - $model->data = []; - $n = 0; - foreach ($map['Data'] as $item) { - $model->data[$n++] = null !== $item ? data::fromMap($item) : $item; - } - } - } - if (isset($map['Message'])) { - $model->message = $map['Message']; - } - if (isset($map['PageNumber'])) { - $model->pageNumber = $map['PageNumber']; - } - if (isset($map['PageSize'])) { - $model->pageSize = $map['PageSize']; - } - if (isset($map['RequestId'])) { - $model->requestId = $map['RequestId']; - } - if (isset($map['Success'])) { - $model->success = $map['Success']; - } - if (isset($map['TotalCount'])) { - $model->totalCount = $map['TotalCount']; - } - - return $model; - } -} diff --git a/src/Models/ListProjectsResponseBody/data.php b/src/Models/ListProjectsResponseBody/data.php deleted file mode 100644 index b85d37b..0000000 --- a/src/Models/ListProjectsResponseBody/data.php +++ /dev/null @@ -1,215 +0,0 @@ - 'AccessPageId', - 'availableHours' => 'AvailableHours', - 'contentId' => 'ContentId', - 'contentName' => 'ContentName', - 'createTime' => 'CreateTime', - 'description' => 'Description', - 'inUseSessions' => 'InUseSessions', - 'maxHours' => 'MaxHours', - 'maxSessions' => 'MaxSessions', - 'projectId' => 'ProjectId', - 'projectName' => 'ProjectName', - 'projectState' => 'ProjectState', - 'sessionSpec' => 'SessionSpec', - ]; - - public function validate() - { - } - - public function toMap() - { - $res = []; - if (null !== $this->accessPageId) { - $res['AccessPageId'] = $this->accessPageId; - } - if (null !== $this->availableHours) { - $res['AvailableHours'] = $this->availableHours; - } - if (null !== $this->contentId) { - $res['ContentId'] = $this->contentId; - } - if (null !== $this->contentName) { - $res['ContentName'] = $this->contentName; - } - if (null !== $this->createTime) { - $res['CreateTime'] = $this->createTime; - } - if (null !== $this->description) { - $res['Description'] = $this->description; - } - if (null !== $this->inUseSessions) { - $res['InUseSessions'] = $this->inUseSessions; - } - if (null !== $this->maxHours) { - $res['MaxHours'] = $this->maxHours; - } - if (null !== $this->maxSessions) { - $res['MaxSessions'] = $this->maxSessions; - } - if (null !== $this->projectId) { - $res['ProjectId'] = $this->projectId; - } - if (null !== $this->projectName) { - $res['ProjectName'] = $this->projectName; - } - if (null !== $this->projectState) { - $res['ProjectState'] = $this->projectState; - } - if (null !== $this->sessionSpec) { - $res['SessionSpec'] = $this->sessionSpec; - } - - return $res; - } - - /** - * @param array $map - * - * @return data - */ - public static function fromMap($map = []) - { - $model = new self(); - if (isset($map['AccessPageId'])) { - if (!empty($map['AccessPageId'])) { - $model->accessPageId = $map['AccessPageId']; - } - } - if (isset($map['AvailableHours'])) { - $model->availableHours = $map['AvailableHours']; - } - if (isset($map['ContentId'])) { - $model->contentId = $map['ContentId']; - } - if (isset($map['ContentName'])) { - $model->contentName = $map['ContentName']; - } - if (isset($map['CreateTime'])) { - $model->createTime = $map['CreateTime']; - } - if (isset($map['Description'])) { - $model->description = $map['Description']; - } - if (isset($map['InUseSessions'])) { - $model->inUseSessions = $map['InUseSessions']; - } - if (isset($map['MaxHours'])) { - $model->maxHours = $map['MaxHours']; - } - if (isset($map['MaxSessions'])) { - $model->maxSessions = $map['MaxSessions']; - } - if (isset($map['ProjectId'])) { - $model->projectId = $map['ProjectId']; - } - if (isset($map['ProjectName'])) { - $model->projectName = $map['ProjectName']; - } - if (isset($map['ProjectState'])) { - $model->projectState = $map['ProjectState']; - } - if (isset($map['SessionSpec'])) { - $model->sessionSpec = $map['SessionSpec']; - } - - return $model; - } -} diff --git a/src/Models/MigrateSessionPackageRequest.php b/src/Models/MigrateSessionPackageRequest.php deleted file mode 100644 index 1f92932..0000000 --- a/src/Models/MigrateSessionPackageRequest.php +++ /dev/null @@ -1,79 +0,0 @@ - 'DestProjectId', - 'sessionPackageId' => 'SessionPackageId', - 'sourceProjectId' => 'SourceProjectId', - ]; - - public function validate() - { - } - - public function toMap() - { - $res = []; - if (null !== $this->destProjectId) { - $res['DestProjectId'] = $this->destProjectId; - } - if (null !== $this->sessionPackageId) { - $res['SessionPackageId'] = $this->sessionPackageId; - } - if (null !== $this->sourceProjectId) { - $res['SourceProjectId'] = $this->sourceProjectId; - } - - return $res; - } - - /** - * @param array $map - * - * @return MigrateSessionPackageRequest - */ - public static function fromMap($map = []) - { - $model = new self(); - if (isset($map['DestProjectId'])) { - $model->destProjectId = $map['DestProjectId']; - } - if (isset($map['SessionPackageId'])) { - $model->sessionPackageId = $map['SessionPackageId']; - } - if (isset($map['SourceProjectId'])) { - $model->sourceProjectId = $map['SourceProjectId']; - } - - return $model; - } -} diff --git a/src/Models/MigrateSessionPackageResponse.php b/src/Models/MigrateSessionPackageResponse.php deleted file mode 100644 index 7bfa36c..0000000 --- a/src/Models/MigrateSessionPackageResponse.php +++ /dev/null @@ -1,71 +0,0 @@ - '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 MigrateSessionPackageResponse - */ - public static function fromMap($map = []) - { - $model = new self(); - if (isset($map['headers'])) { - $model->headers = $map['headers']; - } - if (isset($map['statusCode'])) { - $model->statusCode = $map['statusCode']; - } - if (isset($map['body'])) { - $model->body = MigrateSessionPackageResponseBody::fromMap($map['body']); - } - - return $model; - } -} diff --git a/src/Models/MigrateSessionPackageResponseBody.php b/src/Models/MigrateSessionPackageResponseBody.php deleted file mode 100644 index 0998ddb..0000000 --- a/src/Models/MigrateSessionPackageResponseBody.php +++ /dev/null @@ -1,89 +0,0 @@ - 'Code', - 'message' => 'Message', - 'requestId' => 'RequestId', - 'success' => 'Success', - ]; - - public function validate() - { - } - - public function toMap() - { - $res = []; - if (null !== $this->code) { - $res['Code'] = $this->code; - } - if (null !== $this->message) { - $res['Message'] = $this->message; - } - if (null !== $this->requestId) { - $res['RequestId'] = $this->requestId; - } - if (null !== $this->success) { - $res['Success'] = $this->success; - } - - return $res; - } - - /** - * @param array $map - * - * @return MigrateSessionPackageResponseBody - */ - public static function fromMap($map = []) - { - $model = new self(); - if (isset($map['Code'])) { - $model->code = $map['Code']; - } - if (isset($map['Message'])) { - $model->message = $map['Message']; - } - if (isset($map['RequestId'])) { - $model->requestId = $map['RequestId']; - } - if (isset($map['Success'])) { - $model->success = $map['Success']; - } - - return $model; - } -} diff --git a/src/Models/ModifyAppInstanceGroupAttributeRequest.php b/src/Models/ModifyAppInstanceGroupAttributeRequest.php index 2bf8eb9..500275e 100644 --- a/src/Models/ModifyAppInstanceGroupAttributeRequest.php +++ b/src/Models/ModifyAppInstanceGroupAttributeRequest.php @@ -36,6 +36,11 @@ class ModifyAppInstanceGroupAttributeRequest extends Model */ public $nodePool; + /** + * @var bool + */ + public $perSessionPerApp; + /** * @var string */ @@ -76,6 +81,7 @@ class ModifyAppInstanceGroupAttributeRequest extends Model 'appInstanceGroupName' => 'AppInstanceGroupName', 'network' => 'Network', 'nodePool' => 'NodePool', + 'perSessionPerApp' => 'PerSessionPerApp', 'preOpenAppId' => 'PreOpenAppId', 'preOpenMode' => 'PreOpenMode', 'productType' => 'ProductType', @@ -103,6 +109,9 @@ public function toMap() if (null !== $this->nodePool) { $res['NodePool'] = null !== $this->nodePool ? $this->nodePool->toMap() : null; } + if (null !== $this->perSessionPerApp) { + $res['PerSessionPerApp'] = $this->perSessionPerApp; + } if (null !== $this->preOpenAppId) { $res['PreOpenAppId'] = $this->preOpenAppId; } @@ -145,6 +154,9 @@ public static function fromMap($map = []) if (isset($map['NodePool'])) { $model->nodePool = nodePool::fromMap($map['NodePool']); } + if (isset($map['PerSessionPerApp'])) { + $model->perSessionPerApp = $map['PerSessionPerApp']; + } if (isset($map['PreOpenAppId'])) { $model->preOpenAppId = $map['PreOpenAppId']; } diff --git a/src/Models/ModifyAppInstanceGroupAttributeRequest/storagePolicy.php b/src/Models/ModifyAppInstanceGroupAttributeRequest/storagePolicy.php index 1edb3f5..5e26b1e 100644 --- a/src/Models/ModifyAppInstanceGroupAttributeRequest/storagePolicy.php +++ b/src/Models/ModifyAppInstanceGroupAttributeRequest/storagePolicy.php @@ -4,6 +4,7 @@ namespace AlibabaCloud\SDK\Appstreamcenter\V20210901\Models\ModifyAppInstanceGroupAttributeRequest; +use AlibabaCloud\SDK\Appstreamcenter\V20210901\Models\ModifyAppInstanceGroupAttributeRequest\storagePolicy\userProfileFollow; use AlibabaCloud\Tea\Model; class storagePolicy extends Model @@ -12,8 +13,14 @@ class storagePolicy extends Model * @var string[] */ public $storageTypeList; + + /** + * @var userProfileFollow + */ + public $userProfileFollow; protected $_name = [ - 'storageTypeList' => 'StorageTypeList', + 'storageTypeList' => 'StorageTypeList', + 'userProfileFollow' => 'UserProfileFollow', ]; public function validate() @@ -26,6 +33,9 @@ public function toMap() if (null !== $this->storageTypeList) { $res['StorageTypeList'] = $this->storageTypeList; } + if (null !== $this->userProfileFollow) { + $res['UserProfileFollow'] = null !== $this->userProfileFollow ? $this->userProfileFollow->toMap() : null; + } return $res; } @@ -43,6 +53,9 @@ public static function fromMap($map = []) $model->storageTypeList = $map['StorageTypeList']; } } + if (isset($map['UserProfileFollow'])) { + $model->userProfileFollow = userProfileFollow::fromMap($map['UserProfileFollow']); + } return $model; } diff --git a/src/Models/ModifyAppInstanceGroupAttributeRequest/storagePolicy/userProfileFollow.php b/src/Models/ModifyAppInstanceGroupAttributeRequest/storagePolicy/userProfileFollow.php new file mode 100644 index 0000000..5bb5ad0 --- /dev/null +++ b/src/Models/ModifyAppInstanceGroupAttributeRequest/storagePolicy/userProfileFollow.php @@ -0,0 +1,59 @@ + 'FileSystemId', + 'profileFollowSwitch' => 'ProfileFollowSwitch', + ]; + + public function validate() + { + } + + public function toMap() + { + $res = []; + if (null !== $this->fileSystemId) { + $res['FileSystemId'] = $this->fileSystemId; + } + if (null !== $this->profileFollowSwitch) { + $res['ProfileFollowSwitch'] = $this->profileFollowSwitch; + } + + return $res; + } + + /** + * @param array $map + * + * @return userProfileFollow + */ + public static function fromMap($map = []) + { + $model = new self(); + if (isset($map['FileSystemId'])) { + $model->fileSystemId = $map['FileSystemId']; + } + if (isset($map['ProfileFollowSwitch'])) { + $model->profileFollowSwitch = $map['ProfileFollowSwitch']; + } + + return $model; + } +} diff --git a/src/Models/ModifyAppInstanceGroupAttributeShrinkRequest.php b/src/Models/ModifyAppInstanceGroupAttributeShrinkRequest.php index 9766099..5382230 100644 --- a/src/Models/ModifyAppInstanceGroupAttributeShrinkRequest.php +++ b/src/Models/ModifyAppInstanceGroupAttributeShrinkRequest.php @@ -32,6 +32,11 @@ class ModifyAppInstanceGroupAttributeShrinkRequest extends Model */ public $nodePoolShrink; + /** + * @var bool + */ + public $perSessionPerApp; + /** * @var string */ @@ -72,6 +77,7 @@ class ModifyAppInstanceGroupAttributeShrinkRequest extends Model 'appInstanceGroupName' => 'AppInstanceGroupName', 'networkShrink' => 'Network', 'nodePoolShrink' => 'NodePool', + 'perSessionPerApp' => 'PerSessionPerApp', 'preOpenAppId' => 'PreOpenAppId', 'preOpenMode' => 'PreOpenMode', 'productType' => 'ProductType', @@ -99,6 +105,9 @@ public function toMap() if (null !== $this->nodePoolShrink) { $res['NodePool'] = $this->nodePoolShrink; } + if (null !== $this->perSessionPerApp) { + $res['PerSessionPerApp'] = $this->perSessionPerApp; + } if (null !== $this->preOpenAppId) { $res['PreOpenAppId'] = $this->preOpenAppId; } @@ -141,6 +150,9 @@ public static function fromMap($map = []) if (isset($map['NodePool'])) { $model->nodePoolShrink = $map['NodePool']; } + if (isset($map['PerSessionPerApp'])) { + $model->perSessionPerApp = $map['PerSessionPerApp']; + } if (isset($map['PreOpenAppId'])) { $model->preOpenAppId = $map['PreOpenAppId']; } diff --git a/src/Models/ModifyProjectPolicyRequest.php b/src/Models/ModifyProjectPolicyRequest.php deleted file mode 100644 index 0c4d299..0000000 --- a/src/Models/ModifyProjectPolicyRequest.php +++ /dev/null @@ -1,161 +0,0 @@ - 'Clipboard', - 'fileTransfer' => 'FileTransfer', - 'frameRate' => 'FrameRate', - 'keepAliveDuration' => 'KeepAliveDuration', - 'projectId' => 'ProjectId', - 'sessionResolutionHeight' => 'SessionResolutionHeight', - 'sessionResolutionWidth' => 'SessionResolutionWidth', - 'streamingMode' => 'StreamingMode', - 'terminalResolutionAdaptation' => 'TerminalResolutionAdaptation', - ]; - - public function validate() - { - } - - public function toMap() - { - $res = []; - if (null !== $this->clipboard) { - $res['Clipboard'] = $this->clipboard; - } - if (null !== $this->fileTransfer) { - $res['FileTransfer'] = $this->fileTransfer; - } - if (null !== $this->frameRate) { - $res['FrameRate'] = $this->frameRate; - } - if (null !== $this->keepAliveDuration) { - $res['KeepAliveDuration'] = $this->keepAliveDuration; - } - if (null !== $this->projectId) { - $res['ProjectId'] = $this->projectId; - } - if (null !== $this->sessionResolutionHeight) { - $res['SessionResolutionHeight'] = $this->sessionResolutionHeight; - } - if (null !== $this->sessionResolutionWidth) { - $res['SessionResolutionWidth'] = $this->sessionResolutionWidth; - } - if (null !== $this->streamingMode) { - $res['StreamingMode'] = $this->streamingMode; - } - if (null !== $this->terminalResolutionAdaptation) { - $res['TerminalResolutionAdaptation'] = $this->terminalResolutionAdaptation; - } - - return $res; - } - - /** - * @param array $map - * - * @return ModifyProjectPolicyRequest - */ - public static function fromMap($map = []) - { - $model = new self(); - if (isset($map['Clipboard'])) { - $model->clipboard = $map['Clipboard']; - } - if (isset($map['FileTransfer'])) { - $model->fileTransfer = $map['FileTransfer']; - } - if (isset($map['FrameRate'])) { - $model->frameRate = $map['FrameRate']; - } - if (isset($map['KeepAliveDuration'])) { - $model->keepAliveDuration = $map['KeepAliveDuration']; - } - if (isset($map['ProjectId'])) { - $model->projectId = $map['ProjectId']; - } - if (isset($map['SessionResolutionHeight'])) { - $model->sessionResolutionHeight = $map['SessionResolutionHeight']; - } - if (isset($map['SessionResolutionWidth'])) { - $model->sessionResolutionWidth = $map['SessionResolutionWidth']; - } - if (isset($map['StreamingMode'])) { - $model->streamingMode = $map['StreamingMode']; - } - if (isset($map['TerminalResolutionAdaptation'])) { - $model->terminalResolutionAdaptation = $map['TerminalResolutionAdaptation']; - } - - return $model; - } -} diff --git a/src/Models/ModifyProjectPolicyResponse.php b/src/Models/ModifyProjectPolicyResponse.php deleted file mode 100644 index 2a57610..0000000 --- a/src/Models/ModifyProjectPolicyResponse.php +++ /dev/null @@ -1,71 +0,0 @@ - '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 ModifyProjectPolicyResponse - */ - public static function fromMap($map = []) - { - $model = new self(); - if (isset($map['headers'])) { - $model->headers = $map['headers']; - } - if (isset($map['statusCode'])) { - $model->statusCode = $map['statusCode']; - } - if (isset($map['body'])) { - $model->body = ModifyProjectPolicyResponseBody::fromMap($map['body']); - } - - return $model; - } -} diff --git a/src/Models/ModifyProjectPolicyResponseBody.php b/src/Models/ModifyProjectPolicyResponseBody.php deleted file mode 100644 index bb08dcc..0000000 --- a/src/Models/ModifyProjectPolicyResponseBody.php +++ /dev/null @@ -1,105 +0,0 @@ - 'Code', - 'data' => 'Data', - 'message' => 'Message', - 'requestId' => 'RequestId', - 'success' => 'Success', - ]; - - public function validate() - { - } - - public function toMap() - { - $res = []; - if (null !== $this->code) { - $res['Code'] = $this->code; - } - if (null !== $this->data) { - $res['Data'] = $this->data; - } - if (null !== $this->message) { - $res['Message'] = $this->message; - } - if (null !== $this->requestId) { - $res['RequestId'] = $this->requestId; - } - if (null !== $this->success) { - $res['Success'] = $this->success; - } - - return $res; - } - - /** - * @param array $map - * - * @return ModifyProjectPolicyResponseBody - */ - public static function fromMap($map = []) - { - $model = new self(); - if (isset($map['Code'])) { - $model->code = $map['Code']; - } - if (isset($map['Data'])) { - $model->data = $map['Data']; - } - if (isset($map['Message'])) { - $model->message = $map['Message']; - } - if (isset($map['RequestId'])) { - $model->requestId = $map['RequestId']; - } - if (isset($map['Success'])) { - $model->success = $map['Success']; - } - - return $model; - } -} diff --git a/src/Models/RefreshAccessUrlRequest.php b/src/Models/RefreshAccessUrlRequest.php deleted file mode 100644 index 833d82d..0000000 --- a/src/Models/RefreshAccessUrlRequest.php +++ /dev/null @@ -1,49 +0,0 @@ - 'AccessPageId', - ]; - - public function validate() - { - } - - public function toMap() - { - $res = []; - if (null !== $this->accessPageId) { - $res['AccessPageId'] = $this->accessPageId; - } - - return $res; - } - - /** - * @param array $map - * - * @return RefreshAccessUrlRequest - */ - public static function fromMap($map = []) - { - $model = new self(); - if (isset($map['AccessPageId'])) { - $model->accessPageId = $map['AccessPageId']; - } - - return $model; - } -} diff --git a/src/Models/RefreshAccessUrlResponse.php b/src/Models/RefreshAccessUrlResponse.php deleted file mode 100644 index 727a11d..0000000 --- a/src/Models/RefreshAccessUrlResponse.php +++ /dev/null @@ -1,71 +0,0 @@ - '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 RefreshAccessUrlResponse - */ - public static function fromMap($map = []) - { - $model = new self(); - if (isset($map['headers'])) { - $model->headers = $map['headers']; - } - if (isset($map['statusCode'])) { - $model->statusCode = $map['statusCode']; - } - if (isset($map['body'])) { - $model->body = RefreshAccessUrlResponseBody::fromMap($map['body']); - } - - return $model; - } -} diff --git a/src/Models/RefreshAccessUrlResponseBody.php b/src/Models/RefreshAccessUrlResponseBody.php deleted file mode 100644 index 0be1176..0000000 --- a/src/Models/RefreshAccessUrlResponseBody.php +++ /dev/null @@ -1,105 +0,0 @@ - 'AccessUrl', - 'code' => 'Code', - 'message' => 'Message', - 'requestId' => 'RequestId', - 'success' => 'Success', - ]; - - public function validate() - { - } - - public function toMap() - { - $res = []; - if (null !== $this->accessUrl) { - $res['AccessUrl'] = $this->accessUrl; - } - if (null !== $this->code) { - $res['Code'] = $this->code; - } - if (null !== $this->message) { - $res['Message'] = $this->message; - } - if (null !== $this->requestId) { - $res['RequestId'] = $this->requestId; - } - if (null !== $this->success) { - $res['Success'] = $this->success; - } - - return $res; - } - - /** - * @param array $map - * - * @return RefreshAccessUrlResponseBody - */ - public static function fromMap($map = []) - { - $model = new self(); - if (isset($map['AccessUrl'])) { - $model->accessUrl = $map['AccessUrl']; - } - if (isset($map['Code'])) { - $model->code = $map['Code']; - } - if (isset($map['Message'])) { - $model->message = $map['Message']; - } - if (isset($map['RequestId'])) { - $model->requestId = $map['RequestId']; - } - if (isset($map['Success'])) { - $model->success = $map['Success']; - } - - return $model; - } -} diff --git a/src/Models/RenewSessionPackageRequest.php b/src/Models/RenewSessionPackageRequest.php deleted file mode 100644 index 1510a37..0000000 --- a/src/Models/RenewSessionPackageRequest.php +++ /dev/null @@ -1,83 +0,0 @@ - 'Period', - 'periodUnit' => 'PeriodUnit', - 'sessionPackageId' => 'SessionPackageId', - ]; - - public function validate() - { - } - - public function toMap() - { - $res = []; - if (null !== $this->period) { - $res['Period'] = $this->period; - } - if (null !== $this->periodUnit) { - $res['PeriodUnit'] = $this->periodUnit; - } - if (null !== $this->sessionPackageId) { - $res['SessionPackageId'] = $this->sessionPackageId; - } - - return $res; - } - - /** - * @param array $map - * - * @return RenewSessionPackageRequest - */ - public static function fromMap($map = []) - { - $model = new self(); - if (isset($map['Period'])) { - $model->period = $map['Period']; - } - if (isset($map['PeriodUnit'])) { - $model->periodUnit = $map['PeriodUnit']; - } - if (isset($map['SessionPackageId'])) { - $model->sessionPackageId = $map['SessionPackageId']; - } - - return $model; - } -} diff --git a/src/Models/RenewSessionPackageResponse.php b/src/Models/RenewSessionPackageResponse.php deleted file mode 100644 index 1c4ac4e..0000000 --- a/src/Models/RenewSessionPackageResponse.php +++ /dev/null @@ -1,71 +0,0 @@ - '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 RenewSessionPackageResponse - */ - public static function fromMap($map = []) - { - $model = new self(); - if (isset($map['headers'])) { - $model->headers = $map['headers']; - } - if (isset($map['statusCode'])) { - $model->statusCode = $map['statusCode']; - } - if (isset($map['body'])) { - $model->body = RenewSessionPackageResponseBody::fromMap($map['body']); - } - - return $model; - } -} diff --git a/src/Models/RenewSessionPackageResponseBody.php b/src/Models/RenewSessionPackageResponseBody.php deleted file mode 100644 index cd79b6b..0000000 --- a/src/Models/RenewSessionPackageResponseBody.php +++ /dev/null @@ -1,105 +0,0 @@ - 'Code', - 'message' => 'Message', - 'requestId' => 'RequestId', - 'sessionPackageId' => 'SessionPackageId', - 'success' => 'Success', - ]; - - public function validate() - { - } - - public function toMap() - { - $res = []; - if (null !== $this->code) { - $res['Code'] = $this->code; - } - if (null !== $this->message) { - $res['Message'] = $this->message; - } - if (null !== $this->requestId) { - $res['RequestId'] = $this->requestId; - } - if (null !== $this->sessionPackageId) { - $res['SessionPackageId'] = $this->sessionPackageId; - } - if (null !== $this->success) { - $res['Success'] = $this->success; - } - - return $res; - } - - /** - * @param array $map - * - * @return RenewSessionPackageResponseBody - */ - public static function fromMap($map = []) - { - $model = new self(); - if (isset($map['Code'])) { - $model->code = $map['Code']; - } - if (isset($map['Message'])) { - $model->message = $map['Message']; - } - if (isset($map['RequestId'])) { - $model->requestId = $map['RequestId']; - } - if (isset($map['SessionPackageId'])) { - $model->sessionPackageId = $map['SessionPackageId']; - } - if (isset($map['Success'])) { - $model->success = $map['Success']; - } - - return $model; - } -} diff --git a/src/Models/UpdateAccessPageStateRequest.php b/src/Models/UpdateAccessPageStateRequest.php deleted file mode 100644 index 3f1d899..0000000 --- a/src/Models/UpdateAccessPageStateRequest.php +++ /dev/null @@ -1,63 +0,0 @@ - 'AccessPageId', - 'accessPageState' => 'AccessPageState', - ]; - - public function validate() - { - } - - public function toMap() - { - $res = []; - if (null !== $this->accessPageId) { - $res['AccessPageId'] = $this->accessPageId; - } - if (null !== $this->accessPageState) { - $res['AccessPageState'] = $this->accessPageState; - } - - return $res; - } - - /** - * @param array $map - * - * @return UpdateAccessPageStateRequest - */ - public static function fromMap($map = []) - { - $model = new self(); - if (isset($map['AccessPageId'])) { - $model->accessPageId = $map['AccessPageId']; - } - if (isset($map['AccessPageState'])) { - $model->accessPageState = $map['AccessPageState']; - } - - return $model; - } -} diff --git a/src/Models/UpdateAccessPageStateResponse.php b/src/Models/UpdateAccessPageStateResponse.php deleted file mode 100644 index 1e66fa6..0000000 --- a/src/Models/UpdateAccessPageStateResponse.php +++ /dev/null @@ -1,71 +0,0 @@ - '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 UpdateAccessPageStateResponse - */ - public static function fromMap($map = []) - { - $model = new self(); - if (isset($map['headers'])) { - $model->headers = $map['headers']; - } - if (isset($map['statusCode'])) { - $model->statusCode = $map['statusCode']; - } - if (isset($map['body'])) { - $model->body = UpdateAccessPageStateResponseBody::fromMap($map['body']); - } - - return $model; - } -} diff --git a/src/Models/UpdateAccessPageStateResponseBody.php b/src/Models/UpdateAccessPageStateResponseBody.php deleted file mode 100644 index 6bb776e..0000000 --- a/src/Models/UpdateAccessPageStateResponseBody.php +++ /dev/null @@ -1,91 +0,0 @@ - 'Code', - 'message' => 'Message', - 'requestId' => 'RequestId', - 'success' => 'Success', - ]; - - public function validate() - { - } - - public function toMap() - { - $res = []; - if (null !== $this->code) { - $res['Code'] = $this->code; - } - if (null !== $this->message) { - $res['Message'] = $this->message; - } - if (null !== $this->requestId) { - $res['RequestId'] = $this->requestId; - } - if (null !== $this->success) { - $res['Success'] = $this->success; - } - - return $res; - } - - /** - * @param array $map - * - * @return UpdateAccessPageStateResponseBody - */ - public static function fromMap($map = []) - { - $model = new self(); - if (isset($map['Code'])) { - $model->code = $map['Code']; - } - if (isset($map['Message'])) { - $model->message = $map['Message']; - } - if (isset($map['RequestId'])) { - $model->requestId = $map['RequestId']; - } - if (isset($map['Success'])) { - $model->success = $map['Success']; - } - - return $model; - } -}