@alicloud/appstream-center20210901 5.7.0 → 5.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client.d.ts +802 -70
- package/dist/client.js +1496 -82
- package/dist/client.js.map +1 -1
- package/dist/models/ApproveOtaTaskRequest.d.ts +2 -2
- package/dist/models/ApproveOtaTaskResponseBody.d.ts +1 -1
- package/dist/models/AuthorizeInstanceGroupRequest.d.ts +24 -14
- package/dist/models/AuthorizeInstanceGroupRequest.js +2 -0
- package/dist/models/AuthorizeInstanceGroupRequest.js.map +1 -1
- package/dist/models/AuthorizeInstanceGroupResponseBody.d.ts +1 -1
- package/dist/models/AuthorizeInstanceGroupShrinkRequest.d.ts +22 -12
- package/dist/models/AuthorizeInstanceGroupShrinkRequest.js +2 -0
- package/dist/models/AuthorizeInstanceGroupShrinkRequest.js.map +1 -1
- package/dist/models/AuthorizeUsersForAppRequest.d.ts +104 -0
- package/dist/models/AuthorizeUsersForAppRequest.js +98 -0
- package/dist/models/AuthorizeUsersForAppRequest.js.map +1 -0
- package/dist/models/AuthorizeUsersForAppResponse.d.ts +19 -0
- package/dist/models/AuthorizeUsersForAppResponse.js +69 -0
- package/dist/models/AuthorizeUsersForAppResponse.js.map +1 -0
- package/dist/models/AuthorizeUsersForAppResponseBody.d.ts +21 -0
- package/dist/models/AuthorizeUsersForAppResponseBody.js +58 -0
- package/dist/models/AuthorizeUsersForAppResponseBody.js.map +1 -0
- package/dist/models/AuthorizeUsersForAppShrinkRequest.d.ts +71 -0
- package/dist/models/AuthorizeUsersForAppShrinkRequest.js +74 -0
- package/dist/models/AuthorizeUsersForAppShrinkRequest.js.map +1 -0
- package/dist/models/CreateAppInstanceGroupRequest.d.ts +63 -63
- package/dist/models/CreateAppInstanceGroupShrinkRequest.d.ts +14 -14
- package/dist/models/CreateBrowserInstanceGroupRequest.d.ts +1140 -0
- package/dist/models/CreateBrowserInstanceGroupRequest.js +609 -0
- package/dist/models/CreateBrowserInstanceGroupRequest.js.map +1 -0
- package/dist/models/CreateBrowserInstanceGroupResponse.d.ts +19 -0
- package/dist/models/CreateBrowserInstanceGroupResponse.js +69 -0
- package/dist/models/CreateBrowserInstanceGroupResponse.js.map +1 -0
- package/dist/models/CreateBrowserInstanceGroupResponseBody.d.ts +54 -0
- package/dist/models/CreateBrowserInstanceGroupResponseBody.js +84 -0
- package/dist/models/CreateBrowserInstanceGroupResponseBody.js.map +1 -0
- package/dist/models/CreateBrowserInstanceGroupShrinkRequest.d.ts +247 -0
- package/dist/models/CreateBrowserInstanceGroupShrinkRequest.js +113 -0
- package/dist/models/CreateBrowserInstanceGroupShrinkRequest.js.map +1 -0
- package/dist/models/CreateImageByInstanceRequest.d.ts +29 -4
- package/dist/models/CreateImageByInstanceRequest.js.map +1 -1
- package/dist/models/CreateImageByInstanceResponseBody.d.ts +2 -2
- package/dist/models/CreateModelTemplateRequest.d.ts +6 -3
- package/dist/models/CreateModelTemplateRequest.js.map +1 -1
- package/dist/models/CreateWuyingServerRequest.d.ts +69 -22
- package/dist/models/CreateWuyingServerRequest.js +4 -0
- package/dist/models/CreateWuyingServerRequest.js.map +1 -1
- package/dist/models/DeleteImageResponseBody.d.ts +4 -7
- package/dist/models/DeleteImageResponseBody.js.map +1 -1
- package/dist/models/DescribeWuyingServerEipInfoRequest.d.ts +2 -2
- package/dist/models/DescribeWuyingServerEipInfoResponseBody.d.ts +8 -1
- package/dist/models/DescribeWuyingServerEipInfoResponseBody.js.map +1 -1
- package/dist/models/DescribeWuyingServerRequest.d.ts +1 -1
- package/dist/models/DescribeWuyingServerResponseBody.d.ts +20 -12
- package/dist/models/DescribeWuyingServerResponseBody.js +2 -0
- package/dist/models/DescribeWuyingServerResponseBody.js.map +1 -1
- package/dist/models/GetAppInstanceGroupRequest.d.ts +1 -1
- package/dist/models/GetAppInstanceGroupResponseBody.d.ts +25 -18
- package/dist/models/GetAppInstanceGroupResponseBody.js.map +1 -1
- package/dist/models/GetBrowserInstanceGroupRequest.d.ts +21 -0
- package/dist/models/GetBrowserInstanceGroupRequest.js +58 -0
- package/dist/models/GetBrowserInstanceGroupRequest.js.map +1 -0
- package/dist/models/GetBrowserInstanceGroupResponse.d.ts +19 -0
- package/dist/models/GetBrowserInstanceGroupResponse.js +69 -0
- package/dist/models/GetBrowserInstanceGroupResponse.js.map +1 -0
- package/dist/models/GetBrowserInstanceGroupResponseBody.d.ts +1061 -0
- package/dist/models/GetBrowserInstanceGroupResponseBody.js +598 -0
- package/dist/models/GetBrowserInstanceGroupResponseBody.js.map +1 -0
- package/dist/models/GetConnectionTicketRequest.d.ts +23 -9
- package/dist/models/GetConnectionTicketRequest.js +2 -0
- package/dist/models/GetConnectionTicketRequest.js.map +1 -1
- package/dist/models/GetConnectionTicketResponseBody.d.ts +5 -2
- package/dist/models/GetConnectionTicketResponseBody.js.map +1 -1
- package/dist/models/GetRuntimeModelConfigResponseBody.d.ts +11 -5
- package/dist/models/GetRuntimeModelConfigResponseBody.js.map +1 -1
- package/dist/models/ListAppInstanceGroupRequest.d.ts +9 -3
- package/dist/models/ListAppInstanceGroupRequest.js.map +1 -1
- package/dist/models/ListAppInstanceGroupResponseBody.d.ts +24 -17
- package/dist/models/ListAppInstanceGroupResponseBody.js.map +1 -1
- package/dist/models/ListAppInstancesRequest.d.ts +4 -4
- package/dist/models/ListAppInstancesResponseBody.d.ts +20 -6
- package/dist/models/ListAppInstancesResponseBody.js.map +1 -1
- package/dist/models/ListAppsByAppInstanceGroupIdRequest.d.ts +61 -0
- package/dist/models/ListAppsByAppInstanceGroupIdRequest.js +64 -0
- package/dist/models/ListAppsByAppInstanceGroupIdRequest.js.map +1 -0
- package/dist/models/ListAppsByAppInstanceGroupIdResponse.d.ts +19 -0
- package/dist/models/ListAppsByAppInstanceGroupIdResponse.js +69 -0
- package/dist/models/ListAppsByAppInstanceGroupIdResponse.js.map +1 -0
- package/dist/models/ListAppsByAppInstanceGroupIdResponseBody.d.ts +110 -0
- package/dist/models/ListAppsByAppInstanceGroupIdResponseBody.js +98 -0
- package/dist/models/ListAppsByAppInstanceGroupIdResponseBody.js.map +1 -0
- package/dist/models/ListAuthorizedAppInstanceGroupByUserRequest.d.ts +106 -0
- package/dist/models/ListAuthorizedAppInstanceGroupByUserRequest.js +72 -0
- package/dist/models/ListAuthorizedAppInstanceGroupByUserRequest.js.map +1 -0
- package/dist/models/ListAuthorizedAppInstanceGroupByUserResponse.d.ts +19 -0
- package/dist/models/ListAuthorizedAppInstanceGroupByUserResponse.js +69 -0
- package/dist/models/ListAuthorizedAppInstanceGroupByUserResponse.js.map +1 -0
- package/dist/models/ListAuthorizedAppInstanceGroupByUserResponseBody.d.ts +195 -0
- package/dist/models/ListAuthorizedAppInstanceGroupByUserResponseBody.js +134 -0
- package/dist/models/ListAuthorizedAppInstanceGroupByUserResponseBody.js.map +1 -0
- package/dist/models/ListAuthorizedAppsByUserRequest.d.ts +89 -0
- package/dist/models/ListAuthorizedAppsByUserRequest.js +72 -0
- package/dist/models/ListAuthorizedAppsByUserRequest.js.map +1 -0
- package/dist/models/ListAuthorizedAppsByUserResponse.d.ts +19 -0
- package/dist/models/ListAuthorizedAppsByUserResponse.js +69 -0
- package/dist/models/ListAuthorizedAppsByUserResponse.js.map +1 -0
- package/dist/models/ListAuthorizedAppsByUserResponseBody.d.ts +126 -0
- package/dist/models/ListAuthorizedAppsByUserResponseBody.js +102 -0
- package/dist/models/ListAuthorizedAppsByUserResponseBody.js.map +1 -0
- package/dist/models/ListAuthorizedUserGroupsRequest.d.ts +9 -3
- package/dist/models/ListAuthorizedUserGroupsRequest.js +2 -0
- package/dist/models/ListAuthorizedUserGroupsRequest.js.map +1 -1
- package/dist/models/ListAuthorizedUserGroupsResponseBody.d.ts +10 -2
- package/dist/models/ListAuthorizedUserGroupsResponseBody.js +2 -0
- package/dist/models/ListAuthorizedUserGroupsResponseBody.js.map +1 -1
- package/dist/models/ListAuthorizedUsersRequest.d.ts +112 -0
- package/dist/models/ListAuthorizedUsersRequest.js +74 -0
- package/dist/models/ListAuthorizedUsersRequest.js.map +1 -0
- package/dist/models/ListAuthorizedUsersResponse.d.ts +19 -0
- package/dist/models/ListAuthorizedUsersResponse.js +69 -0
- package/dist/models/ListAuthorizedUsersResponse.js.map +1 -0
- package/dist/models/ListAuthorizedUsersResponseBody.d.ts +156 -0
- package/dist/models/ListAuthorizedUsersResponseBody.js +109 -0
- package/dist/models/ListAuthorizedUsersResponseBody.js.map +1 -0
- package/dist/models/ListBrowserInstanceGroupRequest.d.ts +146 -0
- package/dist/models/ListBrowserInstanceGroupRequest.js +115 -0
- package/dist/models/ListBrowserInstanceGroupRequest.js.map +1 -0
- package/dist/models/ListBrowserInstanceGroupResponse.d.ts +19 -0
- package/dist/models/ListBrowserInstanceGroupResponse.js +69 -0
- package/dist/models/ListBrowserInstanceGroupResponse.js.map +1 -0
- package/dist/models/ListBrowserInstanceGroupResponseBody.d.ts +705 -0
- package/dist/models/ListBrowserInstanceGroupResponseBody.js +470 -0
- package/dist/models/ListBrowserInstanceGroupResponseBody.js.map +1 -0
- package/dist/models/ListDesktopAgentRuntimeRequest.d.ts +9 -9
- package/dist/models/ListDesktopAgentRuntimeResponseBody.d.ts +19 -10
- package/dist/models/ListDesktopAgentRuntimeResponseBody.js.map +1 -1
- package/dist/models/ListLlmTemplatesRequest.d.ts +11 -3
- package/dist/models/ListLlmTemplatesRequest.js.map +1 -1
- package/dist/models/ListLlmTemplatesResponseBody.d.ts +36 -9
- package/dist/models/ListLlmTemplatesResponseBody.js.map +1 -1
- package/dist/models/ListLlmTemplatesShrinkRequest.d.ts +11 -3
- package/dist/models/ListLlmTemplatesShrinkRequest.js.map +1 -1
- package/dist/models/ListModelProviderEndpointsRequest.d.ts +28 -0
- package/dist/models/ListModelProviderEndpointsRequest.js.map +1 -1
- package/dist/models/ListModelProviderEndpointsResponseBody.d.ts +71 -0
- package/dist/models/ListModelProviderEndpointsResponseBody.js.map +1 -1
- package/dist/models/ListModelProviderTemplatesRequest.d.ts +3 -3
- package/dist/models/ListModelProviderTemplatesResponseBody.d.ts +3 -3
- package/dist/models/ListModelProviderTemplatesShrinkRequest.d.ts +3 -3
- package/dist/models/ListModelTemplatesRequest.d.ts +9 -8
- package/dist/models/ListModelTemplatesRequest.js.map +1 -1
- package/dist/models/ListModelTemplatesResponseBody.d.ts +19 -6
- package/dist/models/ListModelTemplatesResponseBody.js.map +1 -1
- package/dist/models/ListModelTemplatesShrinkRequest.d.ts +9 -8
- package/dist/models/ListModelTemplatesShrinkRequest.js.map +1 -1
- package/dist/models/ListNodeInstanceTypeRequest.d.ts +22 -1
- package/dist/models/ListNodeInstanceTypeRequest.js.map +1 -1
- package/dist/models/ListNodeInstanceTypeResponseBody.d.ts +2 -2
- package/dist/models/ListOtaTaskRequest.d.ts +1 -1
- package/dist/models/ListPublishedAppInstanceGroupRequest.d.ts +100 -0
- package/dist/models/ListPublishedAppInstanceGroupRequest.js +72 -0
- package/dist/models/ListPublishedAppInstanceGroupRequest.js.map +1 -0
- package/dist/models/ListPublishedAppInstanceGroupResponse.d.ts +19 -0
- package/dist/models/ListPublishedAppInstanceGroupResponse.js +69 -0
- package/dist/models/ListPublishedAppInstanceGroupResponse.js.map +1 -0
- package/dist/models/ListPublishedAppInstanceGroupResponseBody.d.ts +185 -0
- package/dist/models/ListPublishedAppInstanceGroupResponseBody.js +134 -0
- package/dist/models/ListPublishedAppInstanceGroupResponseBody.js.map +1 -0
- package/dist/models/ListPublishedAppsRequest.d.ts +96 -0
- package/dist/models/ListPublishedAppsRequest.js +72 -0
- package/dist/models/ListPublishedAppsRequest.js.map +1 -0
- package/dist/models/ListPublishedAppsResponse.d.ts +19 -0
- package/dist/models/ListPublishedAppsResponse.js +69 -0
- package/dist/models/ListPublishedAppsResponse.js.map +1 -0
- package/dist/models/ListPublishedAppsResponseBody.d.ts +126 -0
- package/dist/models/ListPublishedAppsResponseBody.js +102 -0
- package/dist/models/ListPublishedAppsResponseBody.js.map +1 -0
- package/dist/models/ListTagResourcesRequest.d.ts +97 -0
- package/dist/models/ListTagResourcesRequest.js +93 -0
- package/dist/models/ListTagResourcesRequest.js.map +1 -0
- package/dist/models/ListTagResourcesResponse.d.ts +19 -0
- package/dist/models/ListTagResourcesResponse.js +69 -0
- package/dist/models/ListTagResourcesResponse.js.map +1 -0
- package/dist/models/ListTagResourcesResponseBody.d.ts +88 -0
- package/dist/models/ListTagResourcesResponseBody.js +92 -0
- package/dist/models/ListTagResourcesResponseBody.js.map +1 -0
- package/dist/models/ListTenantConfigResponseBody.d.ts +8 -0
- package/dist/models/ListTenantConfigResponseBody.js.map +1 -1
- package/dist/models/ListWuyingServerResponseBody.d.ts +41 -23
- package/dist/models/ListWuyingServerResponseBody.js +4 -0
- package/dist/models/ListWuyingServerResponseBody.js.map +1 -1
- package/dist/models/ListZonesRequest.d.ts +62 -0
- package/dist/models/ListZonesRequest.js +62 -0
- package/dist/models/ListZonesRequest.js.map +1 -0
- package/dist/models/ListZonesResponse.d.ts +19 -0
- package/dist/models/ListZonesResponse.js +69 -0
- package/dist/models/ListZonesResponse.js.map +1 -0
- package/dist/models/ListZonesResponseBody.d.ts +43 -0
- package/dist/models/ListZonesResponseBody.js +85 -0
- package/dist/models/ListZonesResponseBody.js.map +1 -0
- package/dist/models/ModifyAppInstanceGroupAttributeRequest.d.ts +24 -6
- package/dist/models/ModifyAppInstanceGroupAttributeRequest.js.map +1 -1
- package/dist/models/ModifyAppInstanceGroupAttributeResponseBody.d.ts +2 -2
- package/dist/models/ModifyAppInstanceGroupAttributeShrinkRequest.d.ts +4 -4
- package/dist/models/ModifyBrowserInstanceGroupRequest.d.ts +60 -21
- package/dist/models/ModifyBrowserInstanceGroupRequest.js +2 -0
- package/dist/models/ModifyBrowserInstanceGroupRequest.js.map +1 -1
- package/dist/models/ModifyBrowserInstanceGroupShrinkRequest.d.ts +8 -0
- package/dist/models/ModifyBrowserInstanceGroupShrinkRequest.js +2 -0
- package/dist/models/ModifyBrowserInstanceGroupShrinkRequest.js.map +1 -1
- package/dist/models/ModifyNodePoolAmountRequest.d.ts +5 -2
- package/dist/models/ModifyNodePoolAmountRequest.js.map +1 -1
- package/dist/models/ModifyNodePoolAmountShrinkRequest.d.ts +1 -1
- package/dist/models/ModifyWuyingServerAttributeRequest.d.ts +15 -0
- package/dist/models/ModifyWuyingServerAttributeRequest.js +2 -0
- package/dist/models/ModifyWuyingServerAttributeRequest.js.map +1 -1
- package/dist/models/RenewAppInstanceGroupRequest.d.ts +29 -11
- package/dist/models/RenewAppInstanceGroupRequest.js.map +1 -1
- package/dist/models/RenewAppInstanceGroupShrinkRequest.d.ts +29 -11
- package/dist/models/RenewAppInstanceGroupShrinkRequest.js.map +1 -1
- package/dist/models/RenewWuyingServerRequest.d.ts +3 -0
- package/dist/models/RenewWuyingServerRequest.js.map +1 -1
- package/dist/models/RestartWuyingServerRequest.d.ts +7 -0
- package/dist/models/RestartWuyingServerRequest.js.map +1 -1
- package/dist/models/StartWuyingServerRequest.d.ts +7 -0
- package/dist/models/StartWuyingServerRequest.js.map +1 -1
- package/dist/models/StopWuyingServerRequest.d.ts +8 -4
- package/dist/models/StopWuyingServerRequest.js.map +1 -1
- package/dist/models/TagResourcesRequest.d.ts +103 -0
- package/dist/models/TagResourcesRequest.js +91 -0
- package/dist/models/TagResourcesRequest.js.map +1 -0
- package/dist/models/TagResourcesResponse.d.ts +19 -0
- package/dist/models/TagResourcesResponse.js +69 -0
- package/dist/models/TagResourcesResponse.js.map +1 -0
- package/dist/models/TagResourcesResponseBody.d.ts +21 -0
- package/dist/models/TagResourcesResponseBody.js +58 -0
- package/dist/models/TagResourcesResponseBody.js.map +1 -0
- package/dist/models/UntagResourcesRequest.d.ts +78 -0
- package/dist/models/UntagResourcesRequest.js +72 -0
- package/dist/models/UntagResourcesRequest.js.map +1 -0
- package/dist/models/UntagResourcesResponse.d.ts +19 -0
- package/dist/models/UntagResourcesResponse.js +69 -0
- package/dist/models/UntagResourcesResponse.js.map +1 -0
- package/dist/models/UntagResourcesResponseBody.d.ts +21 -0
- package/dist/models/UntagResourcesResponseBody.js +58 -0
- package/dist/models/UntagResourcesResponseBody.js.map +1 -0
- package/dist/models/UpdateModelTemplateRequest.d.ts +5 -2
- package/dist/models/UpdateModelTemplateRequest.js.map +1 -1
- package/dist/models/model.d.ts +108 -0
- package/dist/models/model.js +226 -8
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +1690 -116
- package/src/models/ApproveOtaTaskRequest.ts +2 -2
- package/src/models/ApproveOtaTaskResponseBody.ts +1 -1
- package/src/models/AuthorizeInstanceGroupRequest.ts +26 -14
- package/src/models/AuthorizeInstanceGroupResponseBody.ts +1 -1
- package/src/models/AuthorizeInstanceGroupShrinkRequest.ts +24 -12
- package/src/models/AuthorizeUsersForAppRequest.ts +148 -0
- package/src/models/AuthorizeUsersForAppResponse.ts +40 -0
- package/src/models/AuthorizeUsersForAppResponseBody.ts +34 -0
- package/src/models/AuthorizeUsersForAppShrinkRequest.ts +100 -0
- package/src/models/CreateAppInstanceGroupRequest.ts +63 -63
- package/src/models/CreateAppInstanceGroupShrinkRequest.ts +14 -14
- package/src/models/CreateBrowserInstanceGroupRequest.ts +1542 -0
- package/src/models/CreateBrowserInstanceGroupResponse.ts +40 -0
- package/src/models/CreateBrowserInstanceGroupResponseBody.ts +84 -0
- package/src/models/CreateBrowserInstanceGroupShrinkRequest.ts +315 -0
- package/src/models/CreateImageByInstanceRequest.ts +29 -4
- package/src/models/CreateImageByInstanceResponseBody.ts +2 -2
- package/src/models/CreateModelTemplateRequest.ts +6 -3
- package/src/models/CreateWuyingServerRequest.ts +73 -22
- package/src/models/DeleteImageResponseBody.ts +4 -7
- package/src/models/DescribeWuyingServerEipInfoRequest.ts +2 -2
- package/src/models/DescribeWuyingServerEipInfoResponseBody.ts +8 -1
- package/src/models/DescribeWuyingServerRequest.ts +1 -1
- package/src/models/DescribeWuyingServerResponseBody.ts +22 -12
- package/src/models/GetAppInstanceGroupRequest.ts +1 -1
- package/src/models/GetAppInstanceGroupResponseBody.ts +25 -18
- package/src/models/GetBrowserInstanceGroupRequest.ts +34 -0
- package/src/models/GetBrowserInstanceGroupResponse.ts +40 -0
- package/src/models/GetBrowserInstanceGroupResponseBody.ts +1461 -0
- package/src/models/GetConnectionTicketRequest.ts +25 -9
- package/src/models/GetConnectionTicketResponseBody.ts +5 -2
- package/src/models/GetRuntimeModelConfigResponseBody.ts +11 -5
- package/src/models/ListAppInstanceGroupRequest.ts +9 -3
- package/src/models/ListAppInstanceGroupResponseBody.ts +24 -17
- package/src/models/ListAppInstancesRequest.ts +4 -4
- package/src/models/ListAppInstancesResponseBody.ts +20 -6
- package/src/models/ListAppsByAppInstanceGroupIdRequest.ts +80 -0
- package/src/models/ListAppsByAppInstanceGroupIdResponse.ts +40 -0
- package/src/models/ListAppsByAppInstanceGroupIdResponseBody.ts +154 -0
- package/src/models/ListAuthorizedAppInstanceGroupByUserRequest.ts +133 -0
- package/src/models/ListAuthorizedAppInstanceGroupByUserResponse.ts +40 -0
- package/src/models/ListAuthorizedAppInstanceGroupByUserResponseBody.ts +266 -0
- package/src/models/ListAuthorizedAppsByUserRequest.ts +116 -0
- package/src/models/ListAuthorizedAppsByUserResponse.ts +40 -0
- package/src/models/ListAuthorizedAppsByUserResponseBody.ts +174 -0
- package/src/models/ListAuthorizedUserGroupsRequest.ts +11 -3
- package/src/models/ListAuthorizedUserGroupsResponseBody.ts +12 -2
- package/src/models/ListAuthorizedUsersRequest.ts +141 -0
- package/src/models/ListAuthorizedUsersResponse.ts +40 -0
- package/src/models/ListAuthorizedUsersResponseBody.ts +211 -0
- package/src/models/ListBrowserInstanceGroupRequest.ts +207 -0
- package/src/models/ListBrowserInstanceGroupResponse.ts +40 -0
- package/src/models/ListBrowserInstanceGroupResponseBody.ts +1004 -0
- package/src/models/ListDesktopAgentRuntimeRequest.ts +9 -9
- package/src/models/ListDesktopAgentRuntimeResponseBody.ts +19 -10
- package/src/models/ListLlmTemplatesRequest.ts +11 -3
- package/src/models/ListLlmTemplatesResponseBody.ts +36 -9
- package/src/models/ListLlmTemplatesShrinkRequest.ts +11 -3
- package/src/models/ListModelProviderEndpointsRequest.ts +28 -0
- package/src/models/ListModelProviderEndpointsResponseBody.ts +71 -0
- package/src/models/ListModelProviderTemplatesRequest.ts +3 -3
- package/src/models/ListModelProviderTemplatesResponseBody.ts +3 -3
- package/src/models/ListModelProviderTemplatesShrinkRequest.ts +3 -3
- package/src/models/ListModelTemplatesRequest.ts +9 -8
- package/src/models/ListModelTemplatesResponseBody.ts +19 -6
- package/src/models/ListModelTemplatesShrinkRequest.ts +9 -8
- package/src/models/ListNodeInstanceTypeRequest.ts +22 -1
- package/src/models/ListNodeInstanceTypeResponseBody.ts +2 -2
- package/src/models/ListOtaTaskRequest.ts +1 -1
- package/src/models/ListPublishedAppInstanceGroupRequest.ts +127 -0
- package/src/models/ListPublishedAppInstanceGroupResponse.ts +40 -0
- package/src/models/ListPublishedAppInstanceGroupResponseBody.ts +256 -0
- package/src/models/ListPublishedAppsRequest.ts +123 -0
- package/src/models/ListPublishedAppsResponse.ts +40 -0
- package/src/models/ListPublishedAppsResponseBody.ts +174 -0
- package/src/models/ListTagResourcesRequest.ts +136 -0
- package/src/models/ListTagResourcesResponse.ts +40 -0
- package/src/models/ListTagResourcesResponseBody.ts +126 -0
- package/src/models/ListTenantConfigResponseBody.ts +8 -0
- package/src/models/ListWuyingServerResponseBody.ts +45 -23
- package/src/models/ListZonesRequest.ts +79 -0
- package/src/models/ListZonesResponse.ts +40 -0
- package/src/models/ListZonesResponseBody.ts +74 -0
- package/src/models/ModifyAppInstanceGroupAttributeRequest.ts +24 -6
- package/src/models/ModifyAppInstanceGroupAttributeResponseBody.ts +2 -2
- package/src/models/ModifyAppInstanceGroupAttributeShrinkRequest.ts +4 -4
- package/src/models/ModifyBrowserInstanceGroupRequest.ts +62 -21
- package/src/models/ModifyBrowserInstanceGroupShrinkRequest.ts +10 -0
- package/src/models/ModifyNodePoolAmountRequest.ts +5 -2
- package/src/models/ModifyNodePoolAmountShrinkRequest.ts +1 -1
- package/src/models/ModifyWuyingServerAttributeRequest.ts +17 -0
- package/src/models/RenewAppInstanceGroupRequest.ts +29 -11
- package/src/models/RenewAppInstanceGroupShrinkRequest.ts +29 -11
- package/src/models/RenewWuyingServerRequest.ts +3 -0
- package/src/models/RestartWuyingServerRequest.ts +7 -0
- package/src/models/StartWuyingServerRequest.ts +7 -0
- package/src/models/StopWuyingServerRequest.ts +8 -4
- package/src/models/TagResourcesRequest.ts +140 -0
- package/src/models/TagResourcesResponse.ts +40 -0
- package/src/models/TagResourcesResponseBody.ts +34 -0
- package/src/models/UntagResourcesRequest.ts +105 -0
- package/src/models/UntagResourcesResponse.ts +40 -0
- package/src/models/UntagResourcesResponseBody.ts +34 -0
- package/src/models/UpdateModelTemplateRequest.ts +5 -2
- package/src/models/model.ts +108 -0
package/src/client.ts
CHANGED
|
@@ -12,10 +12,6 @@ export default class Client extends OpenApi {
|
|
|
12
12
|
constructor(config: $OpenApiUtil.Config) {
|
|
13
13
|
super(config);
|
|
14
14
|
this._endpointRule = "regional";
|
|
15
|
-
this._endpointMap = {
|
|
16
|
-
'cn-shanghai': "appstream-center.cn-shanghai.aliyuncs.com",
|
|
17
|
-
'ap-southeast-1': "appstream-center.ap-southeast-1.aliyuncs.com",
|
|
18
|
-
};
|
|
19
15
|
this.checkConfig(config);
|
|
20
16
|
this._endpoint = this.getEndpoint("appstream-center", this._regionId, this._endpointRule, this._network, this._suffix, this._endpointMap, this._endpoint);
|
|
21
17
|
}
|
|
@@ -34,7 +30,7 @@ export default class Client extends OpenApi {
|
|
|
34
30
|
}
|
|
35
31
|
|
|
36
32
|
/**
|
|
37
|
-
* Sets the execution time for an
|
|
33
|
+
* Sets the execution time for an OTA upgrade.
|
|
38
34
|
*
|
|
39
35
|
* @param request - ApproveOtaTaskRequest
|
|
40
36
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -81,7 +77,7 @@ export default class Client extends OpenApi {
|
|
|
81
77
|
}
|
|
82
78
|
|
|
83
79
|
/**
|
|
84
|
-
* Sets the execution time for an
|
|
80
|
+
* Sets the execution time for an OTA upgrade.
|
|
85
81
|
*
|
|
86
82
|
* @param request - ApproveOtaTaskRequest
|
|
87
83
|
* @returns ApproveOtaTaskResponse
|
|
@@ -138,10 +134,10 @@ export default class Client extends OpenApi {
|
|
|
138
134
|
}
|
|
139
135
|
|
|
140
136
|
/**
|
|
141
|
-
*
|
|
137
|
+
* Adds or removes assigned users for a delivery group. Only users added as assigned users can access cloud applications.
|
|
142
138
|
*
|
|
143
139
|
* @remarks
|
|
144
|
-
* >
|
|
140
|
+
* > After you change assigned users, the selected users receive notification emails. Changes typically take about 2 minutes to take effect on the client.
|
|
145
141
|
*
|
|
146
142
|
* @param tmpReq - AuthorizeInstanceGroupRequest
|
|
147
143
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -160,6 +156,10 @@ export default class Client extends OpenApi {
|
|
|
160
156
|
body["AppInstanceGroupId"] = request.appInstanceGroupId;
|
|
161
157
|
}
|
|
162
158
|
|
|
159
|
+
if (!$dara.isNull(request.appInstanceGroupSetId)) {
|
|
160
|
+
body["AppInstanceGroupSetId"] = request.appInstanceGroupSetId;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
163
|
if (!$dara.isNull(request.appInstancePersistentId)) {
|
|
164
164
|
body["AppInstancePersistentId"] = request.appInstancePersistentId;
|
|
165
165
|
}
|
|
@@ -215,10 +215,10 @@ export default class Client extends OpenApi {
|
|
|
215
215
|
}
|
|
216
216
|
|
|
217
217
|
/**
|
|
218
|
-
*
|
|
218
|
+
* Adds or removes assigned users for a delivery group. Only users added as assigned users can access cloud applications.
|
|
219
219
|
*
|
|
220
220
|
* @remarks
|
|
221
|
-
* >
|
|
221
|
+
* > After you change assigned users, the selected users receive notification emails. Changes typically take about 2 minutes to take effect on the client.
|
|
222
222
|
*
|
|
223
223
|
* @param request - AuthorizeInstanceGroupRequest
|
|
224
224
|
* @returns AuthorizeInstanceGroupResponse
|
|
@@ -228,6 +228,110 @@ export default class Client extends OpenApi {
|
|
|
228
228
|
return await this.authorizeInstanceGroupWithOptions(request, runtime);
|
|
229
229
|
}
|
|
230
230
|
|
|
231
|
+
/**
|
|
232
|
+
* Adds or removes authorized users for a specified application deployed in a delivery group. Only authorized users can access the application.
|
|
233
|
+
*
|
|
234
|
+
* @remarks
|
|
235
|
+
* ## Operation description
|
|
236
|
+
* This operation manages user authorization for a delivery group at the application level. The authorization result applies only to the application specified by AppId and does not affect the authorization of other applications in the delivery group. To authorize users for an entire delivery group, call the [AuthorizeInstanceGroup](~~AuthorizeInstanceGroup~~) operation.
|
|
237
|
+
* ## Before you begin
|
|
238
|
+
* - The delivery group is created, and **the application specified by AppId is deployed in the image used by the delivery group**. Otherwise, the error code `InvalidAppId.NotFound` is returned.
|
|
239
|
+
* - The delivery group **has not been added to a delivery group set that is in effect**. A delivery group that has been added to a set cannot be authorized individually. You must authorize it through the set. Otherwise, the error code `InvalidAppInstanceGroup.AuthorizeBlockedBySet` is returned.
|
|
240
|
+
* - If the workspace to which the delivery group belongs is an Active Directory (AD) workspace, **you must specify UserMeta**, with `UserMeta.Type` set to `ad` and `UserMeta.AdDomain` matching the AD domain bound to the workspace.
|
|
241
|
+
* - If the delivery group has been authorized through user groups and mixed authorization of users and user groups is not supported, you cannot authorize by user. Otherwise, the error code `AuthAppInstanceGroup.MixNotSupported` is returned.
|
|
242
|
+
* ## Parameter description
|
|
243
|
+
* - **At least one of AuthorizeUserIds and UnAuthorizeUserIds must be specified.** You can also specify both. If both are empty, this invocation does not change any authorization.
|
|
244
|
+
* - When adding authorizations, the sum of the currently authorized users for the application and the users to be added cannot exceed the authorized user quota for the application. If the quota is exceeded, the error code `ExceedAppAuthUserQuota` is returned. Removing authorizations is not subject to quota limits.
|
|
245
|
+
* ## Call sequence
|
|
246
|
+
* 1. Call the [ListAppInstanceGroup](https://help.aliyun.com/document_detail/428506.html) or [GetAppInstanceGroup](https://help.aliyun.com/document_detail/600836.html) operation to obtain the delivery group ID (AppInstanceGroupId) and the application IDs of deployed applications in the delivery group (AppId in the Apps list).
|
|
247
|
+
* 2. Call the [DescribeUsers](https://help.aliyun.com/document_detail/436936.html) operation to obtain the usernames of the users to be authorized or unauthorized.
|
|
248
|
+
* 3. Call this operation to complete the authorization change.
|
|
249
|
+
* > After the authorization is changed, the selected users receive a notification email. It typically takes about 2 minutes for the change to take effect on the client.
|
|
250
|
+
*
|
|
251
|
+
* @param tmpReq - AuthorizeUsersForAppRequest
|
|
252
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
253
|
+
* @returns AuthorizeUsersForAppResponse
|
|
254
|
+
*/
|
|
255
|
+
async authorizeUsersForAppWithOptions(tmpReq: $_model.AuthorizeUsersForAppRequest, runtime: $dara.RuntimeOptions): Promise<$_model.AuthorizeUsersForAppResponse> {
|
|
256
|
+
tmpReq.validate();
|
|
257
|
+
let request = new $_model.AuthorizeUsersForAppShrinkRequest({ });
|
|
258
|
+
OpenApiUtil.convert(tmpReq, request);
|
|
259
|
+
if (!$dara.isNull(tmpReq.userMeta)) {
|
|
260
|
+
request.userMetaShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.userMeta, "UserMeta", "json");
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
let query = { };
|
|
264
|
+
if (!$dara.isNull(request.appId)) {
|
|
265
|
+
query["AppId"] = request.appId;
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
let body : {[key: string ]: any} = { };
|
|
269
|
+
if (!$dara.isNull(request.appInstanceGroupId)) {
|
|
270
|
+
body["AppInstanceGroupId"] = request.appInstanceGroupId;
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
if (!$dara.isNull(request.authorizeUserIds)) {
|
|
274
|
+
body["AuthorizeUserIds"] = request.authorizeUserIds;
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
if (!$dara.isNull(request.productType)) {
|
|
278
|
+
body["ProductType"] = request.productType;
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
if (!$dara.isNull(request.unAuthorizeUserIds)) {
|
|
282
|
+
body["UnAuthorizeUserIds"] = request.unAuthorizeUserIds;
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
if (!$dara.isNull(request.userMetaShrink)) {
|
|
286
|
+
body["UserMeta"] = request.userMetaShrink;
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
290
|
+
query: OpenApiUtil.query(query),
|
|
291
|
+
body: OpenApiUtil.parseToMap(body),
|
|
292
|
+
});
|
|
293
|
+
let params = new $OpenApiUtil.Params({
|
|
294
|
+
action: "AuthorizeUsersForApp",
|
|
295
|
+
version: "2021-09-01",
|
|
296
|
+
protocol: "HTTPS",
|
|
297
|
+
pathname: "/",
|
|
298
|
+
method: "POST",
|
|
299
|
+
authType: "AK",
|
|
300
|
+
style: "RPC",
|
|
301
|
+
reqBodyType: "formData",
|
|
302
|
+
bodyType: "json",
|
|
303
|
+
});
|
|
304
|
+
return $dara.cast<$_model.AuthorizeUsersForAppResponse>(await this.callApi(params, req, runtime), new $_model.AuthorizeUsersForAppResponse({}));
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
/**
|
|
308
|
+
* Adds or removes authorized users for a specified application deployed in a delivery group. Only authorized users can access the application.
|
|
309
|
+
*
|
|
310
|
+
* @remarks
|
|
311
|
+
* ## Operation description
|
|
312
|
+
* This operation manages user authorization for a delivery group at the application level. The authorization result applies only to the application specified by AppId and does not affect the authorization of other applications in the delivery group. To authorize users for an entire delivery group, call the [AuthorizeInstanceGroup](~~AuthorizeInstanceGroup~~) operation.
|
|
313
|
+
* ## Before you begin
|
|
314
|
+
* - The delivery group is created, and **the application specified by AppId is deployed in the image used by the delivery group**. Otherwise, the error code `InvalidAppId.NotFound` is returned.
|
|
315
|
+
* - The delivery group **has not been added to a delivery group set that is in effect**. A delivery group that has been added to a set cannot be authorized individually. You must authorize it through the set. Otherwise, the error code `InvalidAppInstanceGroup.AuthorizeBlockedBySet` is returned.
|
|
316
|
+
* - If the workspace to which the delivery group belongs is an Active Directory (AD) workspace, **you must specify UserMeta**, with `UserMeta.Type` set to `ad` and `UserMeta.AdDomain` matching the AD domain bound to the workspace.
|
|
317
|
+
* - If the delivery group has been authorized through user groups and mixed authorization of users and user groups is not supported, you cannot authorize by user. Otherwise, the error code `AuthAppInstanceGroup.MixNotSupported` is returned.
|
|
318
|
+
* ## Parameter description
|
|
319
|
+
* - **At least one of AuthorizeUserIds and UnAuthorizeUserIds must be specified.** You can also specify both. If both are empty, this invocation does not change any authorization.
|
|
320
|
+
* - When adding authorizations, the sum of the currently authorized users for the application and the users to be added cannot exceed the authorized user quota for the application. If the quota is exceeded, the error code `ExceedAppAuthUserQuota` is returned. Removing authorizations is not subject to quota limits.
|
|
321
|
+
* ## Call sequence
|
|
322
|
+
* 1. Call the [ListAppInstanceGroup](https://help.aliyun.com/document_detail/428506.html) or [GetAppInstanceGroup](https://help.aliyun.com/document_detail/600836.html) operation to obtain the delivery group ID (AppInstanceGroupId) and the application IDs of deployed applications in the delivery group (AppId in the Apps list).
|
|
323
|
+
* 2. Call the [DescribeUsers](https://help.aliyun.com/document_detail/436936.html) operation to obtain the usernames of the users to be authorized or unauthorized.
|
|
324
|
+
* 3. Call this operation to complete the authorization change.
|
|
325
|
+
* > After the authorization is changed, the selected users receive a notification email. It typically takes about 2 minutes for the change to take effect on the client.
|
|
326
|
+
*
|
|
327
|
+
* @param request - AuthorizeUsersForAppRequest
|
|
328
|
+
* @returns AuthorizeUsersForAppResponse
|
|
329
|
+
*/
|
|
330
|
+
async authorizeUsersForApp(request: $_model.AuthorizeUsersForAppRequest): Promise<$_model.AuthorizeUsersForAppResponse> {
|
|
331
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
332
|
+
return await this.authorizeUsersForAppWithOptions(request, runtime);
|
|
333
|
+
}
|
|
334
|
+
|
|
231
335
|
/**
|
|
232
336
|
* Creates LLM templates in batches.
|
|
233
337
|
*
|
|
@@ -482,8 +586,8 @@ export default class Client extends OpenApi {
|
|
|
482
586
|
* Creates a delivery group.
|
|
483
587
|
*
|
|
484
588
|
* @remarks
|
|
485
|
-
*
|
|
486
|
-
* A delivery group is a logical grouping for delivering cloud applications to end users. It includes underlying cloud application resources, images that contain cloud applications, resource management policies, and user allocation settings. For details, see [Publish a delivery group](https://help.aliyun.com/document_detail/426046.html).
|
|
589
|
+
* Before you call this operation, make sure that you fully understand the [billing and pricing](https://help.aliyun.com/document_detail/426039.html) of WUYING CloudApp.
|
|
590
|
+
* A delivery group is a logical grouping for delivering cloud applications to end users. It includes the underlying cloud application resources, images that contain cloud applications, resource management policies, and user allocation settings. For details, see [Publish a delivery group](https://help.aliyun.com/document_detail/426046.html).
|
|
487
591
|
*
|
|
488
592
|
* @param tmpReq - CreateAppInstanceGroupRequest
|
|
489
593
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -661,8 +765,8 @@ export default class Client extends OpenApi {
|
|
|
661
765
|
* Creates a delivery group.
|
|
662
766
|
*
|
|
663
767
|
* @remarks
|
|
664
|
-
*
|
|
665
|
-
* A delivery group is a logical grouping for delivering cloud applications to end users. It includes underlying cloud application resources, images that contain cloud applications, resource management policies, and user allocation settings. For details, see [Publish a delivery group](https://help.aliyun.com/document_detail/426046.html).
|
|
768
|
+
* Before you call this operation, make sure that you fully understand the [billing and pricing](https://help.aliyun.com/document_detail/426039.html) of WUYING CloudApp.
|
|
769
|
+
* A delivery group is a logical grouping for delivering cloud applications to end users. It includes the underlying cloud application resources, images that contain cloud applications, resource management policies, and user allocation settings. For details, see [Publish a delivery group](https://help.aliyun.com/document_detail/426046.html).
|
|
666
770
|
*
|
|
667
771
|
* @param request - CreateAppInstanceGroupRequest
|
|
668
772
|
* @returns CreateAppInstanceGroupResponse
|
|
@@ -673,7 +777,231 @@ export default class Client extends OpenApi {
|
|
|
673
777
|
}
|
|
674
778
|
|
|
675
779
|
/**
|
|
676
|
-
* Creates a
|
|
780
|
+
* Creates a cloud browser group that is billed by monthly active users (MAU).
|
|
781
|
+
*
|
|
782
|
+
* @remarks
|
|
783
|
+
* ## Before you begin
|
|
784
|
+
* - Prepare an available office network, image, and instance type in the target business region. Make sure that the account has the required browser configurations and resource quotas.
|
|
785
|
+
* - Specify `CloudBrowserName` and `BizRegionId`. Set `OsType` to `Windows`.
|
|
786
|
+
* - Authorized users must be created in advance and must match the account type. Authorized user groups must belong to the current account and match the account type of the office network.
|
|
787
|
+
* - **`Users` and `UserGroupIds` cannot both be non-empty.**
|
|
788
|
+
* ## MAU billing parameters
|
|
789
|
+
* - Set `ChargeType` to `PostPaid`.
|
|
790
|
+
* - **Set `SubPayType` to `mau` explicitly. Omitting this field does not enable MAU billing.**
|
|
791
|
+
* - Set `ChargeResourceMode` to `AppInstance`.
|
|
792
|
+
* - Do not specify `Period`, `PeriodUnit`, `AppPackageType`, `AutoPay`, `AutoRenew`, or `NodePool`.
|
|
793
|
+
* ## Post-call processing
|
|
794
|
+
* **A successful response does not indicate that the browser resources are ready.** After creation, query the browser group status and confirm that the group is connectable before use.
|
|
795
|
+
* This operation creates a new cloud browser group. You do not need to create a delivery group in advance.
|
|
796
|
+
* ## Example description
|
|
797
|
+
* The example values of fields are provided to demonstrate how to specify the fields. Replace resource identifiers with actual values under your account. Capacity examples do not represent default values or upper limits.
|
|
798
|
+
* An example value of `-` indicates that the field does not need to be specified. Omit the corresponding parameter when you call the operation. Do not pass the character `-`.
|
|
799
|
+
*
|
|
800
|
+
* @param tmpReq - CreateBrowserInstanceGroupRequest
|
|
801
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
802
|
+
* @returns CreateBrowserInstanceGroupResponse
|
|
803
|
+
*/
|
|
804
|
+
async createBrowserInstanceGroupWithOptions(tmpReq: $_model.CreateBrowserInstanceGroupRequest, runtime: $dara.RuntimeOptions): Promise<$_model.CreateBrowserInstanceGroupResponse> {
|
|
805
|
+
tmpReq.validate();
|
|
806
|
+
let request = new $_model.CreateBrowserInstanceGroupShrinkRequest({ });
|
|
807
|
+
OpenApiUtil.convert(tmpReq, request);
|
|
808
|
+
if (!$dara.isNull(tmpReq.browserConfig)) {
|
|
809
|
+
request.browserConfigShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.browserConfig, "BrowserConfig", "json");
|
|
810
|
+
}
|
|
811
|
+
|
|
812
|
+
if (!$dara.isNull(tmpReq.network)) {
|
|
813
|
+
request.networkShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.network, "Network", "json");
|
|
814
|
+
}
|
|
815
|
+
|
|
816
|
+
if (!$dara.isNull(tmpReq.nodePool)) {
|
|
817
|
+
request.nodePoolShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.nodePool, "NodePool", "json");
|
|
818
|
+
}
|
|
819
|
+
|
|
820
|
+
if (!$dara.isNull(tmpReq.policy)) {
|
|
821
|
+
request.policyShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.policy, "Policy", "json");
|
|
822
|
+
}
|
|
823
|
+
|
|
824
|
+
if (!$dara.isNull(tmpReq.securityPolicy)) {
|
|
825
|
+
request.securityPolicyShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.securityPolicy, "SecurityPolicy", "json");
|
|
826
|
+
}
|
|
827
|
+
|
|
828
|
+
if (!$dara.isNull(tmpReq.storagePolicy)) {
|
|
829
|
+
request.storagePolicyShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.storagePolicy, "StoragePolicy", "json");
|
|
830
|
+
}
|
|
831
|
+
|
|
832
|
+
if (!$dara.isNull(tmpReq.tag)) {
|
|
833
|
+
request.tagShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.tag, "Tag", "json");
|
|
834
|
+
}
|
|
835
|
+
|
|
836
|
+
if (!$dara.isNull(tmpReq.timers)) {
|
|
837
|
+
request.timersShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.timers, "Timers", "json");
|
|
838
|
+
}
|
|
839
|
+
|
|
840
|
+
if (!$dara.isNull(tmpReq.userInfo)) {
|
|
841
|
+
request.userInfoShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.userInfo, "UserInfo", "json");
|
|
842
|
+
}
|
|
843
|
+
|
|
844
|
+
if (!$dara.isNull(tmpReq.users)) {
|
|
845
|
+
request.usersShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.users, "Users", "json");
|
|
846
|
+
}
|
|
847
|
+
|
|
848
|
+
let body : {[key: string ]: any} = { };
|
|
849
|
+
if (!$dara.isNull(request.appPackageType)) {
|
|
850
|
+
body["AppPackageType"] = request.appPackageType;
|
|
851
|
+
}
|
|
852
|
+
|
|
853
|
+
if (!$dara.isNull(request.authNotificationEnabled)) {
|
|
854
|
+
body["AuthNotificationEnabled"] = request.authNotificationEnabled;
|
|
855
|
+
}
|
|
856
|
+
|
|
857
|
+
if (!$dara.isNull(request.autoPay)) {
|
|
858
|
+
body["AutoPay"] = request.autoPay;
|
|
859
|
+
}
|
|
860
|
+
|
|
861
|
+
if (!$dara.isNull(request.autoRenew)) {
|
|
862
|
+
body["AutoRenew"] = request.autoRenew;
|
|
863
|
+
}
|
|
864
|
+
|
|
865
|
+
if (!$dara.isNull(request.bizRegionId)) {
|
|
866
|
+
body["BizRegionId"] = request.bizRegionId;
|
|
867
|
+
}
|
|
868
|
+
|
|
869
|
+
if (!$dara.isNull(request.browserConfigShrink)) {
|
|
870
|
+
body["BrowserConfig"] = request.browserConfigShrink;
|
|
871
|
+
}
|
|
872
|
+
|
|
873
|
+
if (!$dara.isNull(request.chargeResourceMode)) {
|
|
874
|
+
body["ChargeResourceMode"] = request.chargeResourceMode;
|
|
875
|
+
}
|
|
876
|
+
|
|
877
|
+
if (!$dara.isNull(request.chargeType)) {
|
|
878
|
+
body["ChargeType"] = request.chargeType;
|
|
879
|
+
}
|
|
880
|
+
|
|
881
|
+
if (!$dara.isNull(request.cloudBrowserName)) {
|
|
882
|
+
body["CloudBrowserName"] = request.cloudBrowserName;
|
|
883
|
+
}
|
|
884
|
+
|
|
885
|
+
if (!$dara.isNull(request.imageId)) {
|
|
886
|
+
body["ImageId"] = request.imageId;
|
|
887
|
+
}
|
|
888
|
+
|
|
889
|
+
if (!$dara.isNull(request.instanceType)) {
|
|
890
|
+
body["InstanceType"] = request.instanceType;
|
|
891
|
+
}
|
|
892
|
+
|
|
893
|
+
if (!$dara.isNull(request.maxAmount)) {
|
|
894
|
+
body["MaxAmount"] = request.maxAmount;
|
|
895
|
+
}
|
|
896
|
+
|
|
897
|
+
if (!$dara.isNull(request.networkShrink)) {
|
|
898
|
+
body["Network"] = request.networkShrink;
|
|
899
|
+
}
|
|
900
|
+
|
|
901
|
+
if (!$dara.isNull(request.nodePoolShrink)) {
|
|
902
|
+
body["NodePool"] = request.nodePoolShrink;
|
|
903
|
+
}
|
|
904
|
+
|
|
905
|
+
if (!$dara.isNull(request.osType)) {
|
|
906
|
+
body["OsType"] = request.osType;
|
|
907
|
+
}
|
|
908
|
+
|
|
909
|
+
if (!$dara.isNull(request.period)) {
|
|
910
|
+
body["Period"] = request.period;
|
|
911
|
+
}
|
|
912
|
+
|
|
913
|
+
if (!$dara.isNull(request.periodUnit)) {
|
|
914
|
+
body["PeriodUnit"] = request.periodUnit;
|
|
915
|
+
}
|
|
916
|
+
|
|
917
|
+
if (!$dara.isNull(request.policyShrink)) {
|
|
918
|
+
body["Policy"] = request.policyShrink;
|
|
919
|
+
}
|
|
920
|
+
|
|
921
|
+
if (!$dara.isNull(request.promotionId)) {
|
|
922
|
+
body["PromotionId"] = request.promotionId;
|
|
923
|
+
}
|
|
924
|
+
|
|
925
|
+
if (!$dara.isNull(request.securityPolicyShrink)) {
|
|
926
|
+
body["SecurityPolicy"] = request.securityPolicyShrink;
|
|
927
|
+
}
|
|
928
|
+
|
|
929
|
+
if (!$dara.isNull(request.storagePolicyShrink)) {
|
|
930
|
+
body["StoragePolicy"] = request.storagePolicyShrink;
|
|
931
|
+
}
|
|
932
|
+
|
|
933
|
+
if (!$dara.isNull(request.subPayType)) {
|
|
934
|
+
body["SubPayType"] = request.subPayType;
|
|
935
|
+
}
|
|
936
|
+
|
|
937
|
+
if (!$dara.isNull(request.tagShrink)) {
|
|
938
|
+
body["Tag"] = request.tagShrink;
|
|
939
|
+
}
|
|
940
|
+
|
|
941
|
+
if (!$dara.isNull(request.timersShrink)) {
|
|
942
|
+
body["Timers"] = request.timersShrink;
|
|
943
|
+
}
|
|
944
|
+
|
|
945
|
+
if (!$dara.isNull(request.userGroupIds)) {
|
|
946
|
+
body["UserGroupIds"] = request.userGroupIds;
|
|
947
|
+
}
|
|
948
|
+
|
|
949
|
+
if (!$dara.isNull(request.userInfoShrink)) {
|
|
950
|
+
body["UserInfo"] = request.userInfoShrink;
|
|
951
|
+
}
|
|
952
|
+
|
|
953
|
+
if (!$dara.isNull(request.usersShrink)) {
|
|
954
|
+
body["Users"] = request.usersShrink;
|
|
955
|
+
}
|
|
956
|
+
|
|
957
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
958
|
+
body: OpenApiUtil.parseToMap(body),
|
|
959
|
+
});
|
|
960
|
+
let params = new $OpenApiUtil.Params({
|
|
961
|
+
action: "CreateBrowserInstanceGroup",
|
|
962
|
+
version: "2021-09-01",
|
|
963
|
+
protocol: "HTTPS",
|
|
964
|
+
pathname: "/",
|
|
965
|
+
method: "POST",
|
|
966
|
+
authType: "AK",
|
|
967
|
+
style: "RPC",
|
|
968
|
+
reqBodyType: "formData",
|
|
969
|
+
bodyType: "json",
|
|
970
|
+
});
|
|
971
|
+
return $dara.cast<$_model.CreateBrowserInstanceGroupResponse>(await this.callApi(params, req, runtime), new $_model.CreateBrowserInstanceGroupResponse({}));
|
|
972
|
+
}
|
|
973
|
+
|
|
974
|
+
/**
|
|
975
|
+
* Creates a cloud browser group that is billed by monthly active users (MAU).
|
|
976
|
+
*
|
|
977
|
+
* @remarks
|
|
978
|
+
* ## Before you begin
|
|
979
|
+
* - Prepare an available office network, image, and instance type in the target business region. Make sure that the account has the required browser configurations and resource quotas.
|
|
980
|
+
* - Specify `CloudBrowserName` and `BizRegionId`. Set `OsType` to `Windows`.
|
|
981
|
+
* - Authorized users must be created in advance and must match the account type. Authorized user groups must belong to the current account and match the account type of the office network.
|
|
982
|
+
* - **`Users` and `UserGroupIds` cannot both be non-empty.**
|
|
983
|
+
* ## MAU billing parameters
|
|
984
|
+
* - Set `ChargeType` to `PostPaid`.
|
|
985
|
+
* - **Set `SubPayType` to `mau` explicitly. Omitting this field does not enable MAU billing.**
|
|
986
|
+
* - Set `ChargeResourceMode` to `AppInstance`.
|
|
987
|
+
* - Do not specify `Period`, `PeriodUnit`, `AppPackageType`, `AutoPay`, `AutoRenew`, or `NodePool`.
|
|
988
|
+
* ## Post-call processing
|
|
989
|
+
* **A successful response does not indicate that the browser resources are ready.** After creation, query the browser group status and confirm that the group is connectable before use.
|
|
990
|
+
* This operation creates a new cloud browser group. You do not need to create a delivery group in advance.
|
|
991
|
+
* ## Example description
|
|
992
|
+
* The example values of fields are provided to demonstrate how to specify the fields. Replace resource identifiers with actual values under your account. Capacity examples do not represent default values or upper limits.
|
|
993
|
+
* An example value of `-` indicates that the field does not need to be specified. Omit the corresponding parameter when you call the operation. Do not pass the character `-`.
|
|
994
|
+
*
|
|
995
|
+
* @param request - CreateBrowserInstanceGroupRequest
|
|
996
|
+
* @returns CreateBrowserInstanceGroupResponse
|
|
997
|
+
*/
|
|
998
|
+
async createBrowserInstanceGroup(request: $_model.CreateBrowserInstanceGroupRequest): Promise<$_model.CreateBrowserInstanceGroupResponse> {
|
|
999
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
1000
|
+
return await this.createBrowserInstanceGroupWithOptions(request, runtime);
|
|
1001
|
+
}
|
|
1002
|
+
|
|
1003
|
+
/**
|
|
1004
|
+
* Creates a custom image from a deployed WUYING instance. You can use the custom image to quickly create more WUYING instances with the same configurations, without having to repeatedly configure the instance environment each time.
|
|
677
1005
|
*
|
|
678
1006
|
* @param request - CreateImageByInstanceRequest
|
|
679
1007
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -746,7 +1074,7 @@ export default class Client extends OpenApi {
|
|
|
746
1074
|
}
|
|
747
1075
|
|
|
748
1076
|
/**
|
|
749
|
-
* Creates a custom image from a deployed WUYING instance to quickly create more instances with the same
|
|
1077
|
+
* Creates a custom image from a deployed WUYING instance. You can use the custom image to quickly create more WUYING instances with the same configurations, without having to repeatedly configure the instance environment each time.
|
|
750
1078
|
*
|
|
751
1079
|
* @param request - CreateImageByInstanceRequest
|
|
752
1080
|
* @returns CreateImageByInstanceResponse
|
|
@@ -893,11 +1221,11 @@ export default class Client extends OpenApi {
|
|
|
893
1221
|
}
|
|
894
1222
|
|
|
895
1223
|
/**
|
|
896
|
-
* Creates a model
|
|
1224
|
+
* Creates a model template.
|
|
897
1225
|
*
|
|
898
1226
|
* @remarks
|
|
899
|
-
* You can create a model group in the
|
|
900
|
-
* Make sure that you are familiar with the operations and usage of the
|
|
1227
|
+
* You can create a model group in the Wuying Agent Management Center to manage the model providers and model scope that an Agent can invoke. After model creation, you can attach the model group to a cloud computer as the inference engine configuration for Agent task execution.
|
|
1228
|
+
* Make sure that you are familiar with the operations and usage of the Wuying Agent Management Center before invoking this operation.
|
|
901
1229
|
*
|
|
902
1230
|
* @param request - CreateModelTemplateRequest
|
|
903
1231
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -948,11 +1276,11 @@ export default class Client extends OpenApi {
|
|
|
948
1276
|
}
|
|
949
1277
|
|
|
950
1278
|
/**
|
|
951
|
-
* Creates a model
|
|
1279
|
+
* Creates a model template.
|
|
952
1280
|
*
|
|
953
1281
|
* @remarks
|
|
954
|
-
* You can create a model group in the
|
|
955
|
-
* Make sure that you are familiar with the operations and usage of the
|
|
1282
|
+
* You can create a model group in the Wuying Agent Management Center to manage the model providers and model scope that an Agent can invoke. After model creation, you can attach the model group to a cloud computer as the inference engine configuration for Agent task execution.
|
|
1283
|
+
* Make sure that you are familiar with the operations and usage of the Wuying Agent Management Center before invoking this operation.
|
|
956
1284
|
*
|
|
957
1285
|
* @param request - CreateModelTemplateRequest
|
|
958
1286
|
* @returns CreateModelTemplateResponse
|
|
@@ -967,7 +1295,7 @@ export default class Client extends OpenApi {
|
|
|
967
1295
|
*
|
|
968
1296
|
* @remarks
|
|
969
1297
|
* 1. A project corresponds to the resource configuration module in the CloudFlow console.
|
|
970
|
-
* 2. When the ContentId input parameter has multiple versions, this API <notice>uses the default version</notice>
|
|
1298
|
+
* 2. When the ContentId input parameter has multiple versions, this API <notice>uses the default version</notice> and bindss it at the same time.
|
|
971
1299
|
* 3. This operation succeeds only when the default version of the Content is in an available state.
|
|
972
1300
|
*
|
|
973
1301
|
* @param request - CreateWuyingServerRequest
|
|
@@ -1006,6 +1334,14 @@ export default class Client extends OpenApi {
|
|
|
1006
1334
|
bodyFlat["DataDisk"] = request.dataDisk;
|
|
1007
1335
|
}
|
|
1008
1336
|
|
|
1337
|
+
if (!$dara.isNull(request.erdmaEnabled)) {
|
|
1338
|
+
body["ErdmaEnabled"] = request.erdmaEnabled;
|
|
1339
|
+
}
|
|
1340
|
+
|
|
1341
|
+
if (!$dara.isNull(request.gpuDriverVersion)) {
|
|
1342
|
+
body["GpuDriverVersion"] = request.gpuDriverVersion;
|
|
1343
|
+
}
|
|
1344
|
+
|
|
1009
1345
|
if (!$dara.isNull(request.hostName)) {
|
|
1010
1346
|
body["HostName"] = request.hostName;
|
|
1011
1347
|
}
|
|
@@ -1112,7 +1448,7 @@ export default class Client extends OpenApi {
|
|
|
1112
1448
|
*
|
|
1113
1449
|
* @remarks
|
|
1114
1450
|
* 1. A project corresponds to the resource configuration module in the CloudFlow console.
|
|
1115
|
-
* 2. When the ContentId input parameter has multiple versions, this API <notice>uses the default version</notice>
|
|
1451
|
+
* 2. When the ContentId input parameter has multiple versions, this API <notice>uses the default version</notice> and bindss it at the same time.
|
|
1116
1452
|
* 3. This operation succeeds only when the default version of the Content is in an available state.
|
|
1117
1453
|
*
|
|
1118
1454
|
* @param request - CreateWuyingServerRequest
|
|
@@ -1237,8 +1573,8 @@ export default class Client extends OpenApi {
|
|
|
1237
1573
|
* @remarks
|
|
1238
1574
|
* - You can delete only custom images that belong to your account.
|
|
1239
1575
|
* - For images associated with WUYING Cloud Computer Pool, WUYING Cloud Application, or WUYING Workspace product lines, ensure that no WUYING instances are using the image before you delete it.
|
|
1240
|
-
* - If a WUYING Cloud Desktop template references
|
|
1241
|
-
* - For images that span multiple regions, deleting the image removes
|
|
1576
|
+
* - If a WUYING Cloud Desktop template references an image, the template is also deleted when the image is deleted.
|
|
1577
|
+
* - For images that span multiple regions, deleting the image removes the image from all regions.
|
|
1242
1578
|
*
|
|
1243
1579
|
* @param request - DeleteImageRequest
|
|
1244
1580
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -1274,8 +1610,8 @@ export default class Client extends OpenApi {
|
|
|
1274
1610
|
* @remarks
|
|
1275
1611
|
* - You can delete only custom images that belong to your account.
|
|
1276
1612
|
* - For images associated with WUYING Cloud Computer Pool, WUYING Cloud Application, or WUYING Workspace product lines, ensure that no WUYING instances are using the image before you delete it.
|
|
1277
|
-
* - If a WUYING Cloud Desktop template references
|
|
1278
|
-
* - For images that span multiple regions, deleting the image removes
|
|
1613
|
+
* - If a WUYING Cloud Desktop template references an image, the template is also deleted when the image is deleted.
|
|
1614
|
+
* - For images that span multiple regions, deleting the image removes the image from all regions.
|
|
1279
1615
|
*
|
|
1280
1616
|
* @param request - DeleteImageRequest
|
|
1281
1617
|
* @returns DeleteImageResponse
|
|
@@ -1551,7 +1887,7 @@ export default class Client extends OpenApi {
|
|
|
1551
1887
|
}
|
|
1552
1888
|
|
|
1553
1889
|
/**
|
|
1554
|
-
* Queries the details of a development
|
|
1890
|
+
* Queries the details of a development host.
|
|
1555
1891
|
*
|
|
1556
1892
|
* @param request - DescribeWuyingServerRequest
|
|
1557
1893
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -1582,7 +1918,7 @@ export default class Client extends OpenApi {
|
|
|
1582
1918
|
}
|
|
1583
1919
|
|
|
1584
1920
|
/**
|
|
1585
|
-
* Queries the details of a development
|
|
1921
|
+
* Queries the details of a development host.
|
|
1586
1922
|
*
|
|
1587
1923
|
* @param request - DescribeWuyingServerRequest
|
|
1588
1924
|
* @returns DescribeWuyingServerResponse
|
|
@@ -1685,12 +2021,78 @@ export default class Client extends OpenApi {
|
|
|
1685
2021
|
}
|
|
1686
2022
|
|
|
1687
2023
|
/**
|
|
1688
|
-
*
|
|
2024
|
+
* Queries the configuration, status, and authorization statistics of a specified cloud browser group.
|
|
2025
|
+
*
|
|
2026
|
+
* @remarks
|
|
2027
|
+
* This topic describes the query usage for the monthly active user (MAU) billing scenario.
|
|
2028
|
+
* ## Before you begin
|
|
2029
|
+
* Obtain the cloud browser group ID under the current account. Call `ListBrowserInstanceGroup` to retrieve the ID.
|
|
2030
|
+
* ## Response
|
|
2031
|
+
* The response includes the current configuration, status, and authorization statistics of the browser group. The details return up to 20 bookmarks and 20 website access entries. To retrieve the complete lists, call `ListBrowserBookmarks` and `ListBrowserRestrictedURLs`.
|
|
2032
|
+
* ## What to do next
|
|
2033
|
+
* This operation only queries configurations and does not modify resources. After you read the returned status, perform the connection or management operation that corresponds to the status.
|
|
2034
|
+
* ## Example description
|
|
2035
|
+
* The `-` value in the examples indicates that the field is not applicable or not returned in the current scenario. It is not an actual string returned by the operation. Sample resource IDs are masked. Use the actual query results when you call this operation.
|
|
2036
|
+
*
|
|
2037
|
+
* @param request - GetBrowserInstanceGroupRequest
|
|
2038
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
2039
|
+
* @returns GetBrowserInstanceGroupResponse
|
|
2040
|
+
*/
|
|
2041
|
+
async getBrowserInstanceGroupWithOptions(request: $_model.GetBrowserInstanceGroupRequest, runtime: $dara.RuntimeOptions): Promise<$_model.GetBrowserInstanceGroupResponse> {
|
|
2042
|
+
request.validate();
|
|
2043
|
+
let query = OpenApiUtil.query(request.toMap());
|
|
2044
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
2045
|
+
query: OpenApiUtil.query(query),
|
|
2046
|
+
});
|
|
2047
|
+
let params = new $OpenApiUtil.Params({
|
|
2048
|
+
action: "GetBrowserInstanceGroup",
|
|
2049
|
+
version: "2021-09-01",
|
|
2050
|
+
protocol: "HTTPS",
|
|
2051
|
+
pathname: "/",
|
|
2052
|
+
method: "GET",
|
|
2053
|
+
authType: "AK",
|
|
2054
|
+
style: "RPC",
|
|
2055
|
+
reqBodyType: "formData",
|
|
2056
|
+
bodyType: "json",
|
|
2057
|
+
});
|
|
2058
|
+
return $dara.cast<$_model.GetBrowserInstanceGroupResponse>(await this.callApi(params, req, runtime), new $_model.GetBrowserInstanceGroupResponse({}));
|
|
2059
|
+
}
|
|
2060
|
+
|
|
2061
|
+
/**
|
|
2062
|
+
* Queries the configuration, status, and authorization statistics of a specified cloud browser group.
|
|
2063
|
+
*
|
|
2064
|
+
* @remarks
|
|
2065
|
+
* This topic describes the query usage for the monthly active user (MAU) billing scenario.
|
|
2066
|
+
* ## Before you begin
|
|
2067
|
+
* Obtain the cloud browser group ID under the current account. Call `ListBrowserInstanceGroup` to retrieve the ID.
|
|
2068
|
+
* ## Response
|
|
2069
|
+
* The response includes the current configuration, status, and authorization statistics of the browser group. The details return up to 20 bookmarks and 20 website access entries. To retrieve the complete lists, call `ListBrowserBookmarks` and `ListBrowserRestrictedURLs`.
|
|
2070
|
+
* ## What to do next
|
|
2071
|
+
* This operation only queries configurations and does not modify resources. After you read the returned status, perform the connection or management operation that corresponds to the status.
|
|
2072
|
+
* ## Example description
|
|
2073
|
+
* The `-` value in the examples indicates that the field is not applicable or not returned in the current scenario. It is not an actual string returned by the operation. Sample resource IDs are masked. Use the actual query results when you call this operation.
|
|
2074
|
+
*
|
|
2075
|
+
* @param request - GetBrowserInstanceGroupRequest
|
|
2076
|
+
* @returns GetBrowserInstanceGroupResponse
|
|
2077
|
+
*/
|
|
2078
|
+
async getBrowserInstanceGroup(request: $_model.GetBrowserInstanceGroupRequest): Promise<$_model.GetBrowserInstanceGroupResponse> {
|
|
2079
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
2080
|
+
return await this.getBrowserInstanceGroupWithOptions(request, runtime);
|
|
2081
|
+
}
|
|
2082
|
+
|
|
2083
|
+
/**
|
|
2084
|
+
* Retrieves the connection credential for a cloud application.
|
|
1689
2085
|
*
|
|
1690
2086
|
* @remarks
|
|
1691
|
-
*
|
|
1692
|
-
*
|
|
1693
|
-
* On
|
|
2087
|
+
* Call protocol description: operation_type: polling, required_steps: 1.
|
|
2088
|
+
* This operation may require multiple calls (at least one) to obtain the connection credential.
|
|
2089
|
+
* On the first call, an application instance is allocated to the specified convenience account and the application is started. If a Ticket is returned, the result is obtained synchronously. If a startup task ID (`TaskId`) is returned, subsequent calls are required.
|
|
2090
|
+
* On subsequent calls, include the `TaskId` request parameter to invoke the operation and query whether the node is complete. When the returned node status (`TaskStatus`) is completed (`Finished`), the connection credential (`Ticket`) is also returned.
|
|
2091
|
+
* > Prerequisites
|
|
2092
|
+
* > - Before calling this operation, make sure that you have created a delivery group and authorized users for the delivery group:
|
|
2093
|
+
* > - 1. The API for creating a delivery group is CreateAppInstanceGroup. For more information about the parameters, see the corresponding API documentation.
|
|
2094
|
+
* > - 2. You can call the ListAppInstanceGroup operation to query the list of delivery groups. If the corresponding delivery group is not found, verify that the delivery group has been created and that the authentication credentials belong to the correct tenant.
|
|
2095
|
+
* > - 3. The API for authorizing users for a delivery group is AuthorizeInstanceGroup. For more information about the parameters, see the corresponding API documentation.
|
|
1694
2096
|
*
|
|
1695
2097
|
* @param request - GetConnectionTicketRequest
|
|
1696
2098
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -1711,6 +2113,10 @@ export default class Client extends OpenApi {
|
|
|
1711
2113
|
body["AppInstanceGroupIdList"] = request.appInstanceGroupIdList;
|
|
1712
2114
|
}
|
|
1713
2115
|
|
|
2116
|
+
if (!$dara.isNull(request.appInstanceGroupSetId)) {
|
|
2117
|
+
body["AppInstanceGroupSetId"] = request.appInstanceGroupSetId;
|
|
2118
|
+
}
|
|
2119
|
+
|
|
1714
2120
|
if (!$dara.isNull(request.appInstanceId)) {
|
|
1715
2121
|
body["AppInstanceId"] = request.appInstanceId;
|
|
1716
2122
|
}
|
|
@@ -1769,12 +2175,18 @@ export default class Client extends OpenApi {
|
|
|
1769
2175
|
}
|
|
1770
2176
|
|
|
1771
2177
|
/**
|
|
1772
|
-
* Retrieves connection
|
|
2178
|
+
* Retrieves the connection credential for a cloud application.
|
|
1773
2179
|
*
|
|
1774
2180
|
* @remarks
|
|
1775
|
-
*
|
|
1776
|
-
*
|
|
1777
|
-
* On
|
|
2181
|
+
* Call protocol description: operation_type: polling, required_steps: 1.
|
|
2182
|
+
* This operation may require multiple calls (at least one) to obtain the connection credential.
|
|
2183
|
+
* On the first call, an application instance is allocated to the specified convenience account and the application is started. If a Ticket is returned, the result is obtained synchronously. If a startup task ID (`TaskId`) is returned, subsequent calls are required.
|
|
2184
|
+
* On subsequent calls, include the `TaskId` request parameter to invoke the operation and query whether the node is complete. When the returned node status (`TaskStatus`) is completed (`Finished`), the connection credential (`Ticket`) is also returned.
|
|
2185
|
+
* > Prerequisites
|
|
2186
|
+
* > - Before calling this operation, make sure that you have created a delivery group and authorized users for the delivery group:
|
|
2187
|
+
* > - 1. The API for creating a delivery group is CreateAppInstanceGroup. For more information about the parameters, see the corresponding API documentation.
|
|
2188
|
+
* > - 2. You can call the ListAppInstanceGroup operation to query the list of delivery groups. If the corresponding delivery group is not found, verify that the delivery group has been created and that the authentication credentials belong to the correct tenant.
|
|
2189
|
+
* > - 3. The API for authorizing users for a delivery group is AuthorizeInstanceGroup. For more information about the parameters, see the corresponding API documentation.
|
|
1778
2190
|
*
|
|
1779
2191
|
* @param request - GetConnectionTicketRequest
|
|
1780
2192
|
* @returns GetConnectionTicketResponse
|
|
@@ -2164,7 +2576,7 @@ export default class Client extends OpenApi {
|
|
|
2164
2576
|
* Queries the model configuration details of a cloud computer.
|
|
2165
2577
|
*
|
|
2166
2578
|
* @remarks
|
|
2167
|
-
* You can query the model configuration details currently bound to a specified cloud computer in the Wuying Agent Management Center, including model groups, model provider lists, and associated model information. After
|
|
2579
|
+
* You can query the model configuration details currently bound to a specified cloud computer in the Wuying Agent Management Center, including model groups, model provider lists, and associated model information. After you enable the risk information mode, you can also identify differences between the end user\\"s actual configuration and the configuration delivered by the administrator.
|
|
2168
2580
|
*
|
|
2169
2581
|
* @param request - GetRuntimeModelConfigRequest
|
|
2170
2582
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -2214,7 +2626,7 @@ export default class Client extends OpenApi {
|
|
|
2214
2626
|
* Queries the model configuration details of a cloud computer.
|
|
2215
2627
|
*
|
|
2216
2628
|
* @remarks
|
|
2217
|
-
* You can query the model configuration details currently bound to a specified cloud computer in the Wuying Agent Management Center, including model groups, model provider lists, and associated model information. After
|
|
2629
|
+
* You can query the model configuration details currently bound to a specified cloud computer in the Wuying Agent Management Center, including model groups, model provider lists, and associated model information. After you enable the risk information mode, you can also identify differences between the end user\\"s actual configuration and the configuration delivered by the administrator.
|
|
2218
2630
|
*
|
|
2219
2631
|
* @param request - GetRuntimeModelConfigRequest
|
|
2220
2632
|
* @returns GetRuntimeModelConfigResponse
|
|
@@ -2225,7 +2637,7 @@ export default class Client extends OpenApi {
|
|
|
2225
2637
|
}
|
|
2226
2638
|
|
|
2227
2639
|
/**
|
|
2228
|
-
* Queries the details of multiple delivery groups that meet specified conditions
|
|
2640
|
+
* Queries the details of multiple delivery groups. This operation queries all delivery groups that meet the specified conditions instead of a specific delivery group.
|
|
2229
2641
|
*
|
|
2230
2642
|
* @param request - ListAppInstanceGroupRequest
|
|
2231
2643
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -2310,7 +2722,7 @@ export default class Client extends OpenApi {
|
|
|
2310
2722
|
}
|
|
2311
2723
|
|
|
2312
2724
|
/**
|
|
2313
|
-
* Queries the details of multiple delivery groups that meet specified conditions
|
|
2725
|
+
* Queries the details of multiple delivery groups. This operation queries all delivery groups that meet the specified conditions instead of a specific delivery group.
|
|
2314
2726
|
*
|
|
2315
2727
|
* @param request - ListAppInstanceGroupRequest
|
|
2316
2728
|
* @returns ListAppInstanceGroupResponse
|
|
@@ -2321,7 +2733,7 @@ export default class Client extends OpenApi {
|
|
|
2321
2733
|
}
|
|
2322
2734
|
|
|
2323
2735
|
/**
|
|
2324
|
-
* Queries the details of session instances in a delivery group, including instance
|
|
2736
|
+
* Queries the details of session instances in a delivery group, including instance IDs, instance statuses, creation time, update time, session statuses, and public IP addresses of primary network interface controllers (NICs).
|
|
2325
2737
|
*
|
|
2326
2738
|
* @param request - ListAppInstancesRequest
|
|
2327
2739
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -2382,7 +2794,7 @@ export default class Client extends OpenApi {
|
|
|
2382
2794
|
}
|
|
2383
2795
|
|
|
2384
2796
|
/**
|
|
2385
|
-
* Queries the details of session instances in a delivery group, including instance
|
|
2797
|
+
* Queries the details of session instances in a delivery group, including instance IDs, instance statuses, creation time, update time, session statuses, and public IP addresses of primary network interface controllers (NICs).
|
|
2386
2798
|
*
|
|
2387
2799
|
* @param request - ListAppInstancesRequest
|
|
2388
2800
|
* @returns ListAppInstancesResponse
|
|
@@ -2393,7 +2805,301 @@ export default class Client extends OpenApi {
|
|
|
2393
2805
|
}
|
|
2394
2806
|
|
|
2395
2807
|
/**
|
|
2396
|
-
* Queries the
|
|
2808
|
+
* Queries the deployed applications in the image used by a specified delivery group with paging and returns the number of users with per-application authorization for each application.
|
|
2809
|
+
*
|
|
2810
|
+
* @remarks
|
|
2811
|
+
* ## Operation description
|
|
2812
|
+
* This operation returns the list of deployed applications in the application image used by a specified delivery group, including the application ID, name, version, icon, and the number of users currently **authorized by application** for each application (AuthorizedUserCount).
|
|
2813
|
+
* The returned AppId is the input for per-application authorization: when you call the [AuthorizeUsersForApp](~~AuthorizeUsersForApp~~) operation to add or remove authorized users for a specified application in a delivery group, pass in the AppId returned by this operation.
|
|
2814
|
+
* ## Before you begin
|
|
2815
|
+
* - The delivery group is created, and **ProductType matches the product type of the delivery group**. If the delivery group does not exist or the product type does not match, the error code `InvalidAppInstanceGroup.NotFound` is returned.
|
|
2816
|
+
* ## Parameter description
|
|
2817
|
+
* - **AppInstanceGroupId is required**. This parameter is marked as optional in the parameter table, but the error code `InvalidParameter.AppInstanceGroupId` is returned if it is not specified.
|
|
2818
|
+
* - PageNumber starts from 1. Valid values of PageSize: 1 to 100. If the values are invalid, the error codes `InvalidParameter.PageNumber` and `InvalidParameter.PageSize` are returned respectively.
|
|
2819
|
+
* - If no applications are deployed in the delivery group image, the operation returns normally: Apps is an empty list and TotalCount is 0.
|
|
2820
|
+
* ## Call sequence
|
|
2821
|
+
* 1. Call the [ListAppInstanceGroup](~~ListAppInstanceGroup~~) operation to obtain the delivery group ID (AppInstanceGroupId).
|
|
2822
|
+
* 2. Call this operation to obtain the list of deployed applications in the delivery group and the AppId of each application.
|
|
2823
|
+
* 3. To authorize by application, call the [AuthorizeUsersForApp](~~AuthorizeUsersForApp~~) operation with the returned AppId.
|
|
2824
|
+
*
|
|
2825
|
+
* @param request - ListAppsByAppInstanceGroupIdRequest
|
|
2826
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
2827
|
+
* @returns ListAppsByAppInstanceGroupIdResponse
|
|
2828
|
+
*/
|
|
2829
|
+
async listAppsByAppInstanceGroupIdWithOptions(request: $_model.ListAppsByAppInstanceGroupIdRequest, runtime: $dara.RuntimeOptions): Promise<$_model.ListAppsByAppInstanceGroupIdResponse> {
|
|
2830
|
+
request.validate();
|
|
2831
|
+
let query = { };
|
|
2832
|
+
if (!$dara.isNull(request.appInstanceGroupId)) {
|
|
2833
|
+
query["AppInstanceGroupId"] = request.appInstanceGroupId;
|
|
2834
|
+
}
|
|
2835
|
+
|
|
2836
|
+
if (!$dara.isNull(request.pageNumber)) {
|
|
2837
|
+
query["PageNumber"] = request.pageNumber;
|
|
2838
|
+
}
|
|
2839
|
+
|
|
2840
|
+
if (!$dara.isNull(request.pageSize)) {
|
|
2841
|
+
query["PageSize"] = request.pageSize;
|
|
2842
|
+
}
|
|
2843
|
+
|
|
2844
|
+
if (!$dara.isNull(request.productType)) {
|
|
2845
|
+
query["ProductType"] = request.productType;
|
|
2846
|
+
}
|
|
2847
|
+
|
|
2848
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
2849
|
+
query: OpenApiUtil.query(query),
|
|
2850
|
+
});
|
|
2851
|
+
let params = new $OpenApiUtil.Params({
|
|
2852
|
+
action: "ListAppsByAppInstanceGroupId",
|
|
2853
|
+
version: "2021-09-01",
|
|
2854
|
+
protocol: "HTTPS",
|
|
2855
|
+
pathname: "/",
|
|
2856
|
+
method: "POST",
|
|
2857
|
+
authType: "AK",
|
|
2858
|
+
style: "RPC",
|
|
2859
|
+
reqBodyType: "formData",
|
|
2860
|
+
bodyType: "json",
|
|
2861
|
+
});
|
|
2862
|
+
return $dara.cast<$_model.ListAppsByAppInstanceGroupIdResponse>(await this.callApi(params, req, runtime), new $_model.ListAppsByAppInstanceGroupIdResponse({}));
|
|
2863
|
+
}
|
|
2864
|
+
|
|
2865
|
+
/**
|
|
2866
|
+
* Queries the deployed applications in the image used by a specified delivery group with paging and returns the number of users with per-application authorization for each application.
|
|
2867
|
+
*
|
|
2868
|
+
* @remarks
|
|
2869
|
+
* ## Operation description
|
|
2870
|
+
* This operation returns the list of deployed applications in the application image used by a specified delivery group, including the application ID, name, version, icon, and the number of users currently **authorized by application** for each application (AuthorizedUserCount).
|
|
2871
|
+
* The returned AppId is the input for per-application authorization: when you call the [AuthorizeUsersForApp](~~AuthorizeUsersForApp~~) operation to add or remove authorized users for a specified application in a delivery group, pass in the AppId returned by this operation.
|
|
2872
|
+
* ## Before you begin
|
|
2873
|
+
* - The delivery group is created, and **ProductType matches the product type of the delivery group**. If the delivery group does not exist or the product type does not match, the error code `InvalidAppInstanceGroup.NotFound` is returned.
|
|
2874
|
+
* ## Parameter description
|
|
2875
|
+
* - **AppInstanceGroupId is required**. This parameter is marked as optional in the parameter table, but the error code `InvalidParameter.AppInstanceGroupId` is returned if it is not specified.
|
|
2876
|
+
* - PageNumber starts from 1. Valid values of PageSize: 1 to 100. If the values are invalid, the error codes `InvalidParameter.PageNumber` and `InvalidParameter.PageSize` are returned respectively.
|
|
2877
|
+
* - If no applications are deployed in the delivery group image, the operation returns normally: Apps is an empty list and TotalCount is 0.
|
|
2878
|
+
* ## Call sequence
|
|
2879
|
+
* 1. Call the [ListAppInstanceGroup](~~ListAppInstanceGroup~~) operation to obtain the delivery group ID (AppInstanceGroupId).
|
|
2880
|
+
* 2. Call this operation to obtain the list of deployed applications in the delivery group and the AppId of each application.
|
|
2881
|
+
* 3. To authorize by application, call the [AuthorizeUsersForApp](~~AuthorizeUsersForApp~~) operation with the returned AppId.
|
|
2882
|
+
*
|
|
2883
|
+
* @param request - ListAppsByAppInstanceGroupIdRequest
|
|
2884
|
+
* @returns ListAppsByAppInstanceGroupIdResponse
|
|
2885
|
+
*/
|
|
2886
|
+
async listAppsByAppInstanceGroupId(request: $_model.ListAppsByAppInstanceGroupIdRequest): Promise<$_model.ListAppsByAppInstanceGroupIdResponse> {
|
|
2887
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
2888
|
+
return await this.listAppsByAppInstanceGroupIdWithOptions(request, runtime);
|
|
2889
|
+
}
|
|
2890
|
+
|
|
2891
|
+
/**
|
|
2892
|
+
* Queries the delivery groups for which a specified user has obtained access permissions through delivery group-level authorization by paging, with support for fuzzy filtering by delivery group ID, delivery group name, application ID, or application name.
|
|
2893
|
+
*
|
|
2894
|
+
* @remarks
|
|
2895
|
+
* ## Operation description
|
|
2896
|
+
* This operation queries the list of delivery groups for which a specified user (EndUserId) has been granted **delivery group-level authorization**. The response includes basic information about each delivery group (ID, name, status, region, creation time, expiration time, and more) and the list of applications deployed in the delivery group.
|
|
2897
|
+
* Scope of returned results:
|
|
2898
|
+
* - Only delivery groups that are authorized to the user as a whole through the [AuthorizeInstanceGroup](~~AuthorizeInstanceGroup~~) operation are returned. Records authorized on a per-application basis through the [AuthorizeUsersForApp](~~AuthorizeUsersForApp~~) operation are not included.
|
|
2899
|
+
* - Only delivery groups whose product type matches the ProductType parameter and that have not been deleted are returned. A delivery group is not returned if its image contains no deployed applications.
|
|
2900
|
+
* - Results are sorted in reverse chronological order by the update time of the authorization record. The most recently authorized or modified delivery groups appear first.
|
|
2901
|
+
* ## Before you begin
|
|
2902
|
+
* - Call the [AuthorizeInstanceGroup](~~AuthorizeInstanceGroup~~) operation to authorize the delivery group to the user.
|
|
2903
|
+
* ## Parameter description
|
|
2904
|
+
* - **ProductType and EndUserId are required**. If ProductType is not specified, the error code `InvalidParameter.ProductType` is returned. If EndUserId is not specified, the error code `InvalidParameter.UserId` is returned.
|
|
2905
|
+
* - EndUserId performs an **exact match** on the username. AppInstanceGroupId, AppInstanceGroupName, AppId, and AppName all perform **fuzzy matching** (a hit occurs if the value is contained). When multiple filter conditions are specified, all conditions must be met simultaneously.
|
|
2906
|
+
* - PageNumber starts from 1. Valid values of PageSize: 1 to 100.
|
|
2907
|
+
* - If the user has no authorized delivery groups that match the conditions, the operation returns normally: AppInstanceGroupModels is an empty list and TotalCount is 0.
|
|
2908
|
+
* ## Call sequence
|
|
2909
|
+
* 1. Call the [ListAppInstanceGroup](~~ListAppInstanceGroup~~) operation to obtain the delivery group ID, and then call the [AuthorizeInstanceGroup](~~AuthorizeInstanceGroup~~) operation to authorize the delivery group to the user.
|
|
2910
|
+
* 2. Call this operation to query the delivery groups authorized to the user and the applications deployed in each delivery group.
|
|
2911
|
+
* 3. To obtain an application connection ticket for the user, call the [GetConnectionTicket](~~GetConnectionTicket~~) operation with the AppInstanceGroupId and the AppId from the Apps list in the response.
|
|
2912
|
+
*
|
|
2913
|
+
* @param request - ListAuthorizedAppInstanceGroupByUserRequest
|
|
2914
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
2915
|
+
* @returns ListAuthorizedAppInstanceGroupByUserResponse
|
|
2916
|
+
*/
|
|
2917
|
+
async listAuthorizedAppInstanceGroupByUserWithOptions(request: $_model.ListAuthorizedAppInstanceGroupByUserRequest, runtime: $dara.RuntimeOptions): Promise<$_model.ListAuthorizedAppInstanceGroupByUserResponse> {
|
|
2918
|
+
request.validate();
|
|
2919
|
+
let query = { };
|
|
2920
|
+
if (!$dara.isNull(request.appId)) {
|
|
2921
|
+
query["AppId"] = request.appId;
|
|
2922
|
+
}
|
|
2923
|
+
|
|
2924
|
+
if (!$dara.isNull(request.appInstanceGroupId)) {
|
|
2925
|
+
query["AppInstanceGroupId"] = request.appInstanceGroupId;
|
|
2926
|
+
}
|
|
2927
|
+
|
|
2928
|
+
if (!$dara.isNull(request.appInstanceGroupName)) {
|
|
2929
|
+
query["AppInstanceGroupName"] = request.appInstanceGroupName;
|
|
2930
|
+
}
|
|
2931
|
+
|
|
2932
|
+
if (!$dara.isNull(request.appName)) {
|
|
2933
|
+
query["AppName"] = request.appName;
|
|
2934
|
+
}
|
|
2935
|
+
|
|
2936
|
+
if (!$dara.isNull(request.endUserId)) {
|
|
2937
|
+
query["EndUserId"] = request.endUserId;
|
|
2938
|
+
}
|
|
2939
|
+
|
|
2940
|
+
if (!$dara.isNull(request.pageNumber)) {
|
|
2941
|
+
query["PageNumber"] = request.pageNumber;
|
|
2942
|
+
}
|
|
2943
|
+
|
|
2944
|
+
if (!$dara.isNull(request.pageSize)) {
|
|
2945
|
+
query["PageSize"] = request.pageSize;
|
|
2946
|
+
}
|
|
2947
|
+
|
|
2948
|
+
if (!$dara.isNull(request.productType)) {
|
|
2949
|
+
query["ProductType"] = request.productType;
|
|
2950
|
+
}
|
|
2951
|
+
|
|
2952
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
2953
|
+
query: OpenApiUtil.query(query),
|
|
2954
|
+
});
|
|
2955
|
+
let params = new $OpenApiUtil.Params({
|
|
2956
|
+
action: "ListAuthorizedAppInstanceGroupByUser",
|
|
2957
|
+
version: "2021-09-01",
|
|
2958
|
+
protocol: "HTTPS",
|
|
2959
|
+
pathname: "/",
|
|
2960
|
+
method: "POST",
|
|
2961
|
+
authType: "AK",
|
|
2962
|
+
style: "RPC",
|
|
2963
|
+
reqBodyType: "formData",
|
|
2964
|
+
bodyType: "json",
|
|
2965
|
+
});
|
|
2966
|
+
return $dara.cast<$_model.ListAuthorizedAppInstanceGroupByUserResponse>(await this.callApi(params, req, runtime), new $_model.ListAuthorizedAppInstanceGroupByUserResponse({}));
|
|
2967
|
+
}
|
|
2968
|
+
|
|
2969
|
+
/**
|
|
2970
|
+
* Queries the delivery groups for which a specified user has obtained access permissions through delivery group-level authorization by paging, with support for fuzzy filtering by delivery group ID, delivery group name, application ID, or application name.
|
|
2971
|
+
*
|
|
2972
|
+
* @remarks
|
|
2973
|
+
* ## Operation description
|
|
2974
|
+
* This operation queries the list of delivery groups for which a specified user (EndUserId) has been granted **delivery group-level authorization**. The response includes basic information about each delivery group (ID, name, status, region, creation time, expiration time, and more) and the list of applications deployed in the delivery group.
|
|
2975
|
+
* Scope of returned results:
|
|
2976
|
+
* - Only delivery groups that are authorized to the user as a whole through the [AuthorizeInstanceGroup](~~AuthorizeInstanceGroup~~) operation are returned. Records authorized on a per-application basis through the [AuthorizeUsersForApp](~~AuthorizeUsersForApp~~) operation are not included.
|
|
2977
|
+
* - Only delivery groups whose product type matches the ProductType parameter and that have not been deleted are returned. A delivery group is not returned if its image contains no deployed applications.
|
|
2978
|
+
* - Results are sorted in reverse chronological order by the update time of the authorization record. The most recently authorized or modified delivery groups appear first.
|
|
2979
|
+
* ## Before you begin
|
|
2980
|
+
* - Call the [AuthorizeInstanceGroup](~~AuthorizeInstanceGroup~~) operation to authorize the delivery group to the user.
|
|
2981
|
+
* ## Parameter description
|
|
2982
|
+
* - **ProductType and EndUserId are required**. If ProductType is not specified, the error code `InvalidParameter.ProductType` is returned. If EndUserId is not specified, the error code `InvalidParameter.UserId` is returned.
|
|
2983
|
+
* - EndUserId performs an **exact match** on the username. AppInstanceGroupId, AppInstanceGroupName, AppId, and AppName all perform **fuzzy matching** (a hit occurs if the value is contained). When multiple filter conditions are specified, all conditions must be met simultaneously.
|
|
2984
|
+
* - PageNumber starts from 1. Valid values of PageSize: 1 to 100.
|
|
2985
|
+
* - If the user has no authorized delivery groups that match the conditions, the operation returns normally: AppInstanceGroupModels is an empty list and TotalCount is 0.
|
|
2986
|
+
* ## Call sequence
|
|
2987
|
+
* 1. Call the [ListAppInstanceGroup](~~ListAppInstanceGroup~~) operation to obtain the delivery group ID, and then call the [AuthorizeInstanceGroup](~~AuthorizeInstanceGroup~~) operation to authorize the delivery group to the user.
|
|
2988
|
+
* 2. Call this operation to query the delivery groups authorized to the user and the applications deployed in each delivery group.
|
|
2989
|
+
* 3. To obtain an application connection ticket for the user, call the [GetConnectionTicket](~~GetConnectionTicket~~) operation with the AppInstanceGroupId and the AppId from the Apps list in the response.
|
|
2990
|
+
*
|
|
2991
|
+
* @param request - ListAuthorizedAppInstanceGroupByUserRequest
|
|
2992
|
+
* @returns ListAuthorizedAppInstanceGroupByUserResponse
|
|
2993
|
+
*/
|
|
2994
|
+
async listAuthorizedAppInstanceGroupByUser(request: $_model.ListAuthorizedAppInstanceGroupByUserRequest): Promise<$_model.ListAuthorizedAppInstanceGroupByUserResponse> {
|
|
2995
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
2996
|
+
return await this.listAuthorizedAppInstanceGroupByUserWithOptions(request, runtime);
|
|
2997
|
+
}
|
|
2998
|
+
|
|
2999
|
+
/**
|
|
3000
|
+
* Queries the applications for which a specified user has obtained access permissions through per-application authorization by paging. You can filter results by delivery group ID, delivery group name, application ID, or application name using fuzzy match.
|
|
3001
|
+
*
|
|
3002
|
+
* @remarks
|
|
3003
|
+
* ## Operation description
|
|
3004
|
+
* This operation queries the applications that a specified user is authorized to access at the application granularity. **Only records authorized at the application level are returned** (for example, authorizations completed through the [AuthorizeUsersForApp](~~AuthorizeUsersForApp~~) operation). Authorizations granted to an entire delivery group through the [AuthorizeInstanceGroup](~~AuthorizeInstanceGroup~~) operation are not included in the response.
|
|
3005
|
+
* The results are deduplicated by the combination of delivery group and application. Each record corresponds to one application within one delivery group.
|
|
3006
|
+
* ## Before you begin
|
|
3007
|
+
* - The user must already exist under the current account. If the user does not exist, the error code `User.NotFound` is returned. Call the [DescribeUsers](https://help.aliyun.com/document_detail/436936.html) operation to obtain the username.
|
|
3008
|
+
* - The delivery group that contains the application must already be created, and the application must have been authorized to the user at the application level. If no per-application authorization has been performed, an empty application list is returned.
|
|
3009
|
+
* ## Parameter description
|
|
3010
|
+
* - **`EndUserId` and `ProductType` are required.** Set `ProductType` to `CloudApp`, which indicates WUYING Cloud Application.
|
|
3011
|
+
* - `AppInstanceGroupId`, `AppId`, `AppInstanceGroupName`, and `AppName` are optional filter conditions. All of them use fuzzy match and can be combined in any way. If all are omitted, all per-application authorization records for the user are returned.
|
|
3012
|
+
* - Use `PageNumber` and `PageSize` for paging. `PageNumber` starts from 1, and `PageSize` ranges from 1 to 100. Use the returned `TotalCount` to determine whether to continue querying.
|
|
3013
|
+
* ## Call sequence
|
|
3014
|
+
* 1. Call the [ListAppInstanceGroup](https://help.aliyun.com/document_detail/428506.html) or [GetAppInstanceGroup](https://help.aliyun.com/document_detail/600836.html) operation to obtain the delivery group ID (AppInstanceGroupId) and the application IDs of deployed applications within the delivery group (AppId in the Apps list).
|
|
3015
|
+
* 2. Call the [AuthorizeUsersForApp](~~AuthorizeUsersForApp~~) operation to authorize the application to the target user.
|
|
3016
|
+
* 3. Call this operation to query the applications that the user is authorized to access.
|
|
3017
|
+
*
|
|
3018
|
+
* @param request - ListAuthorizedAppsByUserRequest
|
|
3019
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
3020
|
+
* @returns ListAuthorizedAppsByUserResponse
|
|
3021
|
+
*/
|
|
3022
|
+
async listAuthorizedAppsByUserWithOptions(request: $_model.ListAuthorizedAppsByUserRequest, runtime: $dara.RuntimeOptions): Promise<$_model.ListAuthorizedAppsByUserResponse> {
|
|
3023
|
+
request.validate();
|
|
3024
|
+
let query = { };
|
|
3025
|
+
if (!$dara.isNull(request.appId)) {
|
|
3026
|
+
query["AppId"] = request.appId;
|
|
3027
|
+
}
|
|
3028
|
+
|
|
3029
|
+
if (!$dara.isNull(request.appInstanceGroupId)) {
|
|
3030
|
+
query["AppInstanceGroupId"] = request.appInstanceGroupId;
|
|
3031
|
+
}
|
|
3032
|
+
|
|
3033
|
+
if (!$dara.isNull(request.appInstanceGroupName)) {
|
|
3034
|
+
query["AppInstanceGroupName"] = request.appInstanceGroupName;
|
|
3035
|
+
}
|
|
3036
|
+
|
|
3037
|
+
if (!$dara.isNull(request.appName)) {
|
|
3038
|
+
query["AppName"] = request.appName;
|
|
3039
|
+
}
|
|
3040
|
+
|
|
3041
|
+
if (!$dara.isNull(request.endUserId)) {
|
|
3042
|
+
query["EndUserId"] = request.endUserId;
|
|
3043
|
+
}
|
|
3044
|
+
|
|
3045
|
+
if (!$dara.isNull(request.pageNumber)) {
|
|
3046
|
+
query["PageNumber"] = request.pageNumber;
|
|
3047
|
+
}
|
|
3048
|
+
|
|
3049
|
+
if (!$dara.isNull(request.pageSize)) {
|
|
3050
|
+
query["PageSize"] = request.pageSize;
|
|
3051
|
+
}
|
|
3052
|
+
|
|
3053
|
+
if (!$dara.isNull(request.productType)) {
|
|
3054
|
+
query["ProductType"] = request.productType;
|
|
3055
|
+
}
|
|
3056
|
+
|
|
3057
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
3058
|
+
query: OpenApiUtil.query(query),
|
|
3059
|
+
});
|
|
3060
|
+
let params = new $OpenApiUtil.Params({
|
|
3061
|
+
action: "ListAuthorizedAppsByUser",
|
|
3062
|
+
version: "2021-09-01",
|
|
3063
|
+
protocol: "HTTPS",
|
|
3064
|
+
pathname: "/",
|
|
3065
|
+
method: "POST",
|
|
3066
|
+
authType: "AK",
|
|
3067
|
+
style: "RPC",
|
|
3068
|
+
reqBodyType: "formData",
|
|
3069
|
+
bodyType: "json",
|
|
3070
|
+
});
|
|
3071
|
+
return $dara.cast<$_model.ListAuthorizedAppsByUserResponse>(await this.callApi(params, req, runtime), new $_model.ListAuthorizedAppsByUserResponse({}));
|
|
3072
|
+
}
|
|
3073
|
+
|
|
3074
|
+
/**
|
|
3075
|
+
* Queries the applications for which a specified user has obtained access permissions through per-application authorization by paging. You can filter results by delivery group ID, delivery group name, application ID, or application name using fuzzy match.
|
|
3076
|
+
*
|
|
3077
|
+
* @remarks
|
|
3078
|
+
* ## Operation description
|
|
3079
|
+
* This operation queries the applications that a specified user is authorized to access at the application granularity. **Only records authorized at the application level are returned** (for example, authorizations completed through the [AuthorizeUsersForApp](~~AuthorizeUsersForApp~~) operation). Authorizations granted to an entire delivery group through the [AuthorizeInstanceGroup](~~AuthorizeInstanceGroup~~) operation are not included in the response.
|
|
3080
|
+
* The results are deduplicated by the combination of delivery group and application. Each record corresponds to one application within one delivery group.
|
|
3081
|
+
* ## Before you begin
|
|
3082
|
+
* - The user must already exist under the current account. If the user does not exist, the error code `User.NotFound` is returned. Call the [DescribeUsers](https://help.aliyun.com/document_detail/436936.html) operation to obtain the username.
|
|
3083
|
+
* - The delivery group that contains the application must already be created, and the application must have been authorized to the user at the application level. If no per-application authorization has been performed, an empty application list is returned.
|
|
3084
|
+
* ## Parameter description
|
|
3085
|
+
* - **`EndUserId` and `ProductType` are required.** Set `ProductType` to `CloudApp`, which indicates WUYING Cloud Application.
|
|
3086
|
+
* - `AppInstanceGroupId`, `AppId`, `AppInstanceGroupName`, and `AppName` are optional filter conditions. All of them use fuzzy match and can be combined in any way. If all are omitted, all per-application authorization records for the user are returned.
|
|
3087
|
+
* - Use `PageNumber` and `PageSize` for paging. `PageNumber` starts from 1, and `PageSize` ranges from 1 to 100. Use the returned `TotalCount` to determine whether to continue querying.
|
|
3088
|
+
* ## Call sequence
|
|
3089
|
+
* 1. Call the [ListAppInstanceGroup](https://help.aliyun.com/document_detail/428506.html) or [GetAppInstanceGroup](https://help.aliyun.com/document_detail/600836.html) operation to obtain the delivery group ID (AppInstanceGroupId) and the application IDs of deployed applications within the delivery group (AppId in the Apps list).
|
|
3090
|
+
* 2. Call the [AuthorizeUsersForApp](~~AuthorizeUsersForApp~~) operation to authorize the application to the target user.
|
|
3091
|
+
* 3. Call this operation to query the applications that the user is authorized to access.
|
|
3092
|
+
*
|
|
3093
|
+
* @param request - ListAuthorizedAppsByUserRequest
|
|
3094
|
+
* @returns ListAuthorizedAppsByUserResponse
|
|
3095
|
+
*/
|
|
3096
|
+
async listAuthorizedAppsByUser(request: $_model.ListAuthorizedAppsByUserRequest): Promise<$_model.ListAuthorizedAppsByUserResponse> {
|
|
3097
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
3098
|
+
return await this.listAuthorizedAppsByUserWithOptions(request, runtime);
|
|
3099
|
+
}
|
|
3100
|
+
|
|
3101
|
+
/**
|
|
3102
|
+
* Queries the list of user groups authorized by a specified delivery group.
|
|
2397
3103
|
*
|
|
2398
3104
|
* @param request - ListAuthorizedUserGroupsRequest
|
|
2399
3105
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -2406,6 +3112,10 @@ export default class Client extends OpenApi {
|
|
|
2406
3112
|
body["AppInstanceGroupId"] = request.appInstanceGroupId;
|
|
2407
3113
|
}
|
|
2408
3114
|
|
|
3115
|
+
if (!$dara.isNull(request.appInstanceGroupSetId)) {
|
|
3116
|
+
body["AppInstanceGroupSetId"] = request.appInstanceGroupSetId;
|
|
3117
|
+
}
|
|
3118
|
+
|
|
2409
3119
|
if (!$dara.isNull(request.groupId)) {
|
|
2410
3120
|
body["GroupId"] = request.groupId;
|
|
2411
3121
|
}
|
|
@@ -2454,6 +3164,150 @@ export default class Client extends OpenApi {
|
|
|
2454
3164
|
return await this.listAuthorizedUserGroupsWithOptions(request, runtime);
|
|
2455
3165
|
}
|
|
2456
3166
|
|
|
3167
|
+
/**
|
|
3168
|
+
* Queries the list of authorized users for a specified delivery group or delivery group set by using paging. Supports exact or fuzzy filtering by username.
|
|
3169
|
+
*
|
|
3170
|
+
* @remarks
|
|
3171
|
+
* ## Operation description
|
|
3172
|
+
* This operation queries the currently authorized users of a specified delivery group (AppInstanceGroupId) or delivery group set (AppInstanceGroupSetId). It returns each user\\"s username, account type, email address, phone number, and the authorization mode of the associated delivery group.
|
|
3173
|
+
* - This operation returns **authorization relationships** and does not indicate whether users are currently online or have established connections.
|
|
3174
|
+
* - In the Cloud Browser product, a delivery group corresponds to a cloud browser group, and a delivery group ID corresponds to a browser group ID.
|
|
3175
|
+
* The scope of results depends on the authorization mode of the delivery group (response parameter AuthMode):
|
|
3176
|
+
* - When the authorization mode is `App` (application-level authorization) or `AppInstanceGroup` (delivery group-level authorization): Returns users authorized through the [AuthorizeInstanceGroup](~~AuthorizeInstanceGroup~~) operation at the delivery group level, as well as users authorized through the [AuthorizeUsersForApp](~~AuthorizeUsersForApp~~) operation at the application level. If AppId is specified, only users **authorized for that specific application** are returned.
|
|
3177
|
+
* - When the authorization mode is `Session` (session-level authorization): Returns users who have been granted persistent sessions. The AppInstancePersistentIds field lists all persistent session IDs granted to each user. If AppInstancePersistentId is specified, only users granted that session are returned.
|
|
3178
|
+
* - When querying by delivery group set: Returns users authorized for the set. The response parameter AppInstanceGroupId is the primary delivery group ID of the set, and AppInstanceGroupSetId is the queried set ID.
|
|
3179
|
+
* When querying by delivery group, results are sorted in descending order by authorization time, with the most recently authorized users listed first.
|
|
3180
|
+
* ## Before you begin
|
|
3181
|
+
* - The target delivery group or delivery group set must be created, belong to the current account, and match the specified ProductType. Otherwise, a resource-not-found error code is returned.
|
|
3182
|
+
* - Users must have been authorized through the [AuthorizeInstanceGroup](~~AuthorizeInstanceGroup~~) or [AuthorizeUsersForApp](~~AuthorizeUsersForApp~~) operation. If no users have been authorized, the operation returns normally with an empty Users list and TotalCount of 0.
|
|
3183
|
+
* ## Parameter description
|
|
3184
|
+
* - **ProductType, PageNumber, and PageSize are required**. If ProductType has an invalid value, the error code `ProductTypeInvalid` is returned.
|
|
3185
|
+
* - **Exactly one of AppInstanceGroupId and AppInstanceGroupSetId must be specified**. If both or neither are specified, the error code `InvalidParameter.AppInstanceGroupId/AppInstanceGroupSetId` is returned.
|
|
3186
|
+
* - **AppId and AppInstancePersistentId are not supported when querying by delivery group set**. If specified, the error codes `InvalidParameter.AppId` and `InvalidParameter.AppInstancePersistentId` are returned respectively.
|
|
3187
|
+
* - EndUserId performs **exact matching** by username. UserIdFuzzy performs **fuzzy matching** by username (a hit occurs if the username contains the keyword). Both can be specified simultaneously, in which case both conditions must be met.
|
|
3188
|
+
* - PageNumber starts from 1. Valid values of PageSize: 1 to 100.
|
|
3189
|
+
* - When the authorization mode is `App` or `AppInstanceGroup`, TotalCount is the number of **authorization records** that match the conditions. If the same user has multiple authorization records (for example, authorized for multiple applications), the records are merged into a single user entry in Users. Therefore, the number of users returned on the current page may be less than PageSize. Use TotalCount to determine whether to continue paging. When the authorization mode is `Session`, TotalCount is the deduplicated user count.
|
|
3190
|
+
* ## Call sequence
|
|
3191
|
+
* 1. Call the [ListAppInstanceGroup](~~ListAppInstanceGroup~~) operation to obtain the delivery group ID. For cloud browser groups, call the [ListBrowserInstanceGroup](~~ListBrowserInstanceGroup~~) operation.
|
|
3192
|
+
* 2. Call the [AuthorizeInstanceGroup](~~AuthorizeInstanceGroup~~) operation to authorize at the delivery group level, or call the [AuthorizeUsersForApp](~~AuthorizeUsersForApp~~) operation to authorize at the application level.
|
|
3193
|
+
* 3. Call this operation to query authorized users. To remove authorization, pass the returned EndUserId values to the UnAuthorizeUserIds parameter of the authorization operations mentioned above.
|
|
3194
|
+
* ## Error codes
|
|
3195
|
+
* - `ProductTypeInvalid`: The value of ProductType is invalid.
|
|
3196
|
+
* - `InvalidParameter.AppInstanceGroupId/AppInstanceGroupSetId`: Both AppInstanceGroupId and AppInstanceGroupSetId are specified, or neither is specified.
|
|
3197
|
+
* - `InvalidParameter.AppId`: AppId is specified when querying by delivery group set.
|
|
3198
|
+
* - `InvalidParameter.AppInstancePersistentId`: AppInstancePersistentId is specified when querying by delivery group set.
|
|
3199
|
+
* - `InvalidAppInstanceGroupSpecItem.NotFound`: The delivery group does not exist, does not belong to the current account, or the product type does not match.
|
|
3200
|
+
* - `InvalidBrowserInstanceGroup.NotFound`: When ProductType is `CloudBrowser`, the cloud browser group does not exist, does not belong to the current account, or the product type does not match.
|
|
3201
|
+
* - `InvalidAppInstanceGroupSet.NotFound`: The delivery group set does not exist, does not belong to the current account, the product type does not match, or the set does not have an available primary delivery group.
|
|
3202
|
+
* - `InvalidAppInstanceGroupSet.ActivationFailed`: The delivery group set is not in an available state.
|
|
3203
|
+
*
|
|
3204
|
+
* @param request - ListAuthorizedUsersRequest
|
|
3205
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
3206
|
+
* @returns ListAuthorizedUsersResponse
|
|
3207
|
+
*/
|
|
3208
|
+
async listAuthorizedUsersWithOptions(request: $_model.ListAuthorizedUsersRequest, runtime: $dara.RuntimeOptions): Promise<$_model.ListAuthorizedUsersResponse> {
|
|
3209
|
+
request.validate();
|
|
3210
|
+
let query = { };
|
|
3211
|
+
if (!$dara.isNull(request.endUserId)) {
|
|
3212
|
+
query["EndUserId"] = request.endUserId;
|
|
3213
|
+
}
|
|
3214
|
+
|
|
3215
|
+
if (!$dara.isNull(request.userIdFuzzy)) {
|
|
3216
|
+
query["UserIdFuzzy"] = request.userIdFuzzy;
|
|
3217
|
+
}
|
|
3218
|
+
|
|
3219
|
+
let body : {[key: string ]: any} = { };
|
|
3220
|
+
if (!$dara.isNull(request.appId)) {
|
|
3221
|
+
body["AppId"] = request.appId;
|
|
3222
|
+
}
|
|
3223
|
+
|
|
3224
|
+
if (!$dara.isNull(request.appInstanceGroupId)) {
|
|
3225
|
+
body["AppInstanceGroupId"] = request.appInstanceGroupId;
|
|
3226
|
+
}
|
|
3227
|
+
|
|
3228
|
+
if (!$dara.isNull(request.appInstanceGroupSetId)) {
|
|
3229
|
+
body["AppInstanceGroupSetId"] = request.appInstanceGroupSetId;
|
|
3230
|
+
}
|
|
3231
|
+
|
|
3232
|
+
if (!$dara.isNull(request.appInstancePersistentId)) {
|
|
3233
|
+
body["AppInstancePersistentId"] = request.appInstancePersistentId;
|
|
3234
|
+
}
|
|
3235
|
+
|
|
3236
|
+
if (!$dara.isNull(request.pageNumber)) {
|
|
3237
|
+
body["PageNumber"] = request.pageNumber;
|
|
3238
|
+
}
|
|
3239
|
+
|
|
3240
|
+
if (!$dara.isNull(request.pageSize)) {
|
|
3241
|
+
body["PageSize"] = request.pageSize;
|
|
3242
|
+
}
|
|
3243
|
+
|
|
3244
|
+
if (!$dara.isNull(request.productType)) {
|
|
3245
|
+
body["ProductType"] = request.productType;
|
|
3246
|
+
}
|
|
3247
|
+
|
|
3248
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
3249
|
+
query: OpenApiUtil.query(query),
|
|
3250
|
+
body: OpenApiUtil.parseToMap(body),
|
|
3251
|
+
});
|
|
3252
|
+
let params = new $OpenApiUtil.Params({
|
|
3253
|
+
action: "ListAuthorizedUsers",
|
|
3254
|
+
version: "2021-09-01",
|
|
3255
|
+
protocol: "HTTPS",
|
|
3256
|
+
pathname: "/",
|
|
3257
|
+
method: "POST",
|
|
3258
|
+
authType: "AK",
|
|
3259
|
+
style: "RPC",
|
|
3260
|
+
reqBodyType: "formData",
|
|
3261
|
+
bodyType: "json",
|
|
3262
|
+
});
|
|
3263
|
+
return $dara.cast<$_model.ListAuthorizedUsersResponse>(await this.callApi(params, req, runtime), new $_model.ListAuthorizedUsersResponse({}));
|
|
3264
|
+
}
|
|
3265
|
+
|
|
3266
|
+
/**
|
|
3267
|
+
* Queries the list of authorized users for a specified delivery group or delivery group set by using paging. Supports exact or fuzzy filtering by username.
|
|
3268
|
+
*
|
|
3269
|
+
* @remarks
|
|
3270
|
+
* ## Operation description
|
|
3271
|
+
* This operation queries the currently authorized users of a specified delivery group (AppInstanceGroupId) or delivery group set (AppInstanceGroupSetId). It returns each user\\"s username, account type, email address, phone number, and the authorization mode of the associated delivery group.
|
|
3272
|
+
* - This operation returns **authorization relationships** and does not indicate whether users are currently online or have established connections.
|
|
3273
|
+
* - In the Cloud Browser product, a delivery group corresponds to a cloud browser group, and a delivery group ID corresponds to a browser group ID.
|
|
3274
|
+
* The scope of results depends on the authorization mode of the delivery group (response parameter AuthMode):
|
|
3275
|
+
* - When the authorization mode is `App` (application-level authorization) or `AppInstanceGroup` (delivery group-level authorization): Returns users authorized through the [AuthorizeInstanceGroup](~~AuthorizeInstanceGroup~~) operation at the delivery group level, as well as users authorized through the [AuthorizeUsersForApp](~~AuthorizeUsersForApp~~) operation at the application level. If AppId is specified, only users **authorized for that specific application** are returned.
|
|
3276
|
+
* - When the authorization mode is `Session` (session-level authorization): Returns users who have been granted persistent sessions. The AppInstancePersistentIds field lists all persistent session IDs granted to each user. If AppInstancePersistentId is specified, only users granted that session are returned.
|
|
3277
|
+
* - When querying by delivery group set: Returns users authorized for the set. The response parameter AppInstanceGroupId is the primary delivery group ID of the set, and AppInstanceGroupSetId is the queried set ID.
|
|
3278
|
+
* When querying by delivery group, results are sorted in descending order by authorization time, with the most recently authorized users listed first.
|
|
3279
|
+
* ## Before you begin
|
|
3280
|
+
* - The target delivery group or delivery group set must be created, belong to the current account, and match the specified ProductType. Otherwise, a resource-not-found error code is returned.
|
|
3281
|
+
* - Users must have been authorized through the [AuthorizeInstanceGroup](~~AuthorizeInstanceGroup~~) or [AuthorizeUsersForApp](~~AuthorizeUsersForApp~~) operation. If no users have been authorized, the operation returns normally with an empty Users list and TotalCount of 0.
|
|
3282
|
+
* ## Parameter description
|
|
3283
|
+
* - **ProductType, PageNumber, and PageSize are required**. If ProductType has an invalid value, the error code `ProductTypeInvalid` is returned.
|
|
3284
|
+
* - **Exactly one of AppInstanceGroupId and AppInstanceGroupSetId must be specified**. If both or neither are specified, the error code `InvalidParameter.AppInstanceGroupId/AppInstanceGroupSetId` is returned.
|
|
3285
|
+
* - **AppId and AppInstancePersistentId are not supported when querying by delivery group set**. If specified, the error codes `InvalidParameter.AppId` and `InvalidParameter.AppInstancePersistentId` are returned respectively.
|
|
3286
|
+
* - EndUserId performs **exact matching** by username. UserIdFuzzy performs **fuzzy matching** by username (a hit occurs if the username contains the keyword). Both can be specified simultaneously, in which case both conditions must be met.
|
|
3287
|
+
* - PageNumber starts from 1. Valid values of PageSize: 1 to 100.
|
|
3288
|
+
* - When the authorization mode is `App` or `AppInstanceGroup`, TotalCount is the number of **authorization records** that match the conditions. If the same user has multiple authorization records (for example, authorized for multiple applications), the records are merged into a single user entry in Users. Therefore, the number of users returned on the current page may be less than PageSize. Use TotalCount to determine whether to continue paging. When the authorization mode is `Session`, TotalCount is the deduplicated user count.
|
|
3289
|
+
* ## Call sequence
|
|
3290
|
+
* 1. Call the [ListAppInstanceGroup](~~ListAppInstanceGroup~~) operation to obtain the delivery group ID. For cloud browser groups, call the [ListBrowserInstanceGroup](~~ListBrowserInstanceGroup~~) operation.
|
|
3291
|
+
* 2. Call the [AuthorizeInstanceGroup](~~AuthorizeInstanceGroup~~) operation to authorize at the delivery group level, or call the [AuthorizeUsersForApp](~~AuthorizeUsersForApp~~) operation to authorize at the application level.
|
|
3292
|
+
* 3. Call this operation to query authorized users. To remove authorization, pass the returned EndUserId values to the UnAuthorizeUserIds parameter of the authorization operations mentioned above.
|
|
3293
|
+
* ## Error codes
|
|
3294
|
+
* - `ProductTypeInvalid`: The value of ProductType is invalid.
|
|
3295
|
+
* - `InvalidParameter.AppInstanceGroupId/AppInstanceGroupSetId`: Both AppInstanceGroupId and AppInstanceGroupSetId are specified, or neither is specified.
|
|
3296
|
+
* - `InvalidParameter.AppId`: AppId is specified when querying by delivery group set.
|
|
3297
|
+
* - `InvalidParameter.AppInstancePersistentId`: AppInstancePersistentId is specified when querying by delivery group set.
|
|
3298
|
+
* - `InvalidAppInstanceGroupSpecItem.NotFound`: The delivery group does not exist, does not belong to the current account, or the product type does not match.
|
|
3299
|
+
* - `InvalidBrowserInstanceGroup.NotFound`: When ProductType is `CloudBrowser`, the cloud browser group does not exist, does not belong to the current account, or the product type does not match.
|
|
3300
|
+
* - `InvalidAppInstanceGroupSet.NotFound`: The delivery group set does not exist, does not belong to the current account, the product type does not match, or the set does not have an available primary delivery group.
|
|
3301
|
+
* - `InvalidAppInstanceGroupSet.ActivationFailed`: The delivery group set is not in an available state.
|
|
3302
|
+
*
|
|
3303
|
+
* @param request - ListAuthorizedUsersRequest
|
|
3304
|
+
* @returns ListAuthorizedUsersResponse
|
|
3305
|
+
*/
|
|
3306
|
+
async listAuthorizedUsers(request: $_model.ListAuthorizedUsersRequest): Promise<$_model.ListAuthorizedUsersResponse> {
|
|
3307
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
3308
|
+
return await this.listAuthorizedUsersWithOptions(request, runtime);
|
|
3309
|
+
}
|
|
3310
|
+
|
|
2457
3311
|
/**
|
|
2458
3312
|
* Queries the bindng information between users and resources.
|
|
2459
3313
|
*
|
|
@@ -2520,6 +3374,125 @@ export default class Client extends OpenApi {
|
|
|
2520
3374
|
return await this.listBindInfoWithOptions(request, runtime);
|
|
2521
3375
|
}
|
|
2522
3376
|
|
|
3377
|
+
/**
|
|
3378
|
+
* Queries cloud browser groups and their current status by paging.
|
|
3379
|
+
*
|
|
3380
|
+
* @remarks
|
|
3381
|
+
* This topic describes how to use this operation in the monthly active user (MAU) billing scenario.
|
|
3382
|
+
* ## Query conditions
|
|
3383
|
+
* You can filter by browser group identity, name, business region, office network, set, authorized user group, and status. Only one status value can be specified at a time.
|
|
3384
|
+
* ## Paging
|
|
3385
|
+
* Use `PageNumber` and `PageSize` for paging. Use the returned `TotalCount` to determine whether to continue querying the next page.
|
|
3386
|
+
* ## What to do next
|
|
3387
|
+
* To view the detailed configuration of a single browser group, invoke `GetBrowserInstanceGroup` with the returned identity.
|
|
3388
|
+
* ## Example notes
|
|
3389
|
+
* The `-` in the examples indicates that the field is not applicable or not returned in the current scenario. It is not an actual character string returned by the operation. Resource identities in the examples are masked. Use the actual query results in your environment.
|
|
3390
|
+
*
|
|
3391
|
+
* @param request - ListBrowserInstanceGroupRequest
|
|
3392
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
3393
|
+
* @returns ListBrowserInstanceGroupResponse
|
|
3394
|
+
*/
|
|
3395
|
+
async listBrowserInstanceGroupWithOptions(request: $_model.ListBrowserInstanceGroupRequest, runtime: $dara.RuntimeOptions): Promise<$_model.ListBrowserInstanceGroupResponse> {
|
|
3396
|
+
request.validate();
|
|
3397
|
+
let query = { };
|
|
3398
|
+
if (!$dara.isNull(request.appInstanceGroupSetId)) {
|
|
3399
|
+
query["AppInstanceGroupSetId"] = request.appInstanceGroupSetId;
|
|
3400
|
+
}
|
|
3401
|
+
|
|
3402
|
+
if (!$dara.isNull(request.bizRegionId)) {
|
|
3403
|
+
query["BizRegionId"] = request.bizRegionId;
|
|
3404
|
+
}
|
|
3405
|
+
|
|
3406
|
+
if (!$dara.isNull(request.browserInstanceGroupId)) {
|
|
3407
|
+
query["BrowserInstanceGroupId"] = request.browserInstanceGroupId;
|
|
3408
|
+
}
|
|
3409
|
+
|
|
3410
|
+
if (!$dara.isNull(request.browserInstanceGroupName)) {
|
|
3411
|
+
query["BrowserInstanceGroupName"] = request.browserInstanceGroupName;
|
|
3412
|
+
}
|
|
3413
|
+
|
|
3414
|
+
if (!$dara.isNull(request.cloudBrowserName)) {
|
|
3415
|
+
query["CloudBrowserName"] = request.cloudBrowserName;
|
|
3416
|
+
}
|
|
3417
|
+
|
|
3418
|
+
if (!$dara.isNull(request.officeSiteId)) {
|
|
3419
|
+
query["OfficeSiteId"] = request.officeSiteId;
|
|
3420
|
+
}
|
|
3421
|
+
|
|
3422
|
+
if (!$dara.isNull(request.pageNumber)) {
|
|
3423
|
+
query["PageNumber"] = request.pageNumber;
|
|
3424
|
+
}
|
|
3425
|
+
|
|
3426
|
+
if (!$dara.isNull(request.pageSize)) {
|
|
3427
|
+
query["PageSize"] = request.pageSize;
|
|
3428
|
+
}
|
|
3429
|
+
|
|
3430
|
+
if (!$dara.isNull(request.tag)) {
|
|
3431
|
+
query["Tag"] = request.tag;
|
|
3432
|
+
}
|
|
3433
|
+
|
|
3434
|
+
if (!$dara.isNull(request.tier)) {
|
|
3435
|
+
query["Tier"] = request.tier;
|
|
3436
|
+
}
|
|
3437
|
+
|
|
3438
|
+
let body : {[key: string ]: any} = { };
|
|
3439
|
+
if (!$dara.isNull(request.excludedUserGroupIds)) {
|
|
3440
|
+
body["ExcludedUserGroupIds"] = request.excludedUserGroupIds;
|
|
3441
|
+
}
|
|
3442
|
+
|
|
3443
|
+
let bodyFlat : {[key: string ]: any} = { };
|
|
3444
|
+
if (!$dara.isNull(request.status)) {
|
|
3445
|
+
bodyFlat["Status"] = request.status;
|
|
3446
|
+
}
|
|
3447
|
+
|
|
3448
|
+
if (!$dara.isNull(request.userGroupIds)) {
|
|
3449
|
+
body["UserGroupIds"] = request.userGroupIds;
|
|
3450
|
+
}
|
|
3451
|
+
|
|
3452
|
+
body = {
|
|
3453
|
+
...body,
|
|
3454
|
+
...OpenApiUtil.query(bodyFlat),
|
|
3455
|
+
};
|
|
3456
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
3457
|
+
query: OpenApiUtil.query(query),
|
|
3458
|
+
body: OpenApiUtil.parseToMap(body),
|
|
3459
|
+
});
|
|
3460
|
+
let params = new $OpenApiUtil.Params({
|
|
3461
|
+
action: "ListBrowserInstanceGroup",
|
|
3462
|
+
version: "2021-09-01",
|
|
3463
|
+
protocol: "HTTPS",
|
|
3464
|
+
pathname: "/",
|
|
3465
|
+
method: "POST",
|
|
3466
|
+
authType: "AK",
|
|
3467
|
+
style: "RPC",
|
|
3468
|
+
reqBodyType: "formData",
|
|
3469
|
+
bodyType: "json",
|
|
3470
|
+
});
|
|
3471
|
+
return $dara.cast<$_model.ListBrowserInstanceGroupResponse>(await this.callApi(params, req, runtime), new $_model.ListBrowserInstanceGroupResponse({}));
|
|
3472
|
+
}
|
|
3473
|
+
|
|
3474
|
+
/**
|
|
3475
|
+
* Queries cloud browser groups and their current status by paging.
|
|
3476
|
+
*
|
|
3477
|
+
* @remarks
|
|
3478
|
+
* This topic describes how to use this operation in the monthly active user (MAU) billing scenario.
|
|
3479
|
+
* ## Query conditions
|
|
3480
|
+
* You can filter by browser group identity, name, business region, office network, set, authorized user group, and status. Only one status value can be specified at a time.
|
|
3481
|
+
* ## Paging
|
|
3482
|
+
* Use `PageNumber` and `PageSize` for paging. Use the returned `TotalCount` to determine whether to continue querying the next page.
|
|
3483
|
+
* ## What to do next
|
|
3484
|
+
* To view the detailed configuration of a single browser group, invoke `GetBrowserInstanceGroup` with the returned identity.
|
|
3485
|
+
* ## Example notes
|
|
3486
|
+
* The `-` in the examples indicates that the field is not applicable or not returned in the current scenario. It is not an actual character string returned by the operation. Resource identities in the examples are masked. Use the actual query results in your environment.
|
|
3487
|
+
*
|
|
3488
|
+
* @param request - ListBrowserInstanceGroupRequest
|
|
3489
|
+
* @returns ListBrowserInstanceGroupResponse
|
|
3490
|
+
*/
|
|
3491
|
+
async listBrowserInstanceGroup(request: $_model.ListBrowserInstanceGroupRequest): Promise<$_model.ListBrowserInstanceGroupResponse> {
|
|
3492
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
3493
|
+
return await this.listBrowserInstanceGroupWithOptions(request, runtime);
|
|
3494
|
+
}
|
|
3495
|
+
|
|
2523
3496
|
/**
|
|
2524
3497
|
* Queries the list of desktop agent runtimes.
|
|
2525
3498
|
*
|
|
@@ -2798,8 +3771,8 @@ export default class Client extends OpenApi {
|
|
|
2798
3771
|
* Queries the list of LLM templates.
|
|
2799
3772
|
*
|
|
2800
3773
|
* @remarks
|
|
2801
|
-
* You can query the list of model templates under a model provider template in the
|
|
2802
|
-
* Before using this operation, make sure you are familiar with the operations and usage of the
|
|
3774
|
+
* You can query the list of model templates under a model provider template in the WUYING Agent Management Center with paging. Filtering by model group ID, model provider template ID, model template ID, and model encoding is supported. When querying by model group dimension, the default model is automatically pinned to the top.
|
|
3775
|
+
* Before using this operation, make sure that you are familiar with the operations and usage of the WUYING Agent Management Center.
|
|
2803
3776
|
*
|
|
2804
3777
|
* @param tmpReq - ListLlmTemplatesRequest
|
|
2805
3778
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -2867,8 +3840,8 @@ export default class Client extends OpenApi {
|
|
|
2867
3840
|
* Queries the list of LLM templates.
|
|
2868
3841
|
*
|
|
2869
3842
|
* @remarks
|
|
2870
|
-
* You can query the list of model templates under a model provider template in the
|
|
2871
|
-
* Before using this operation, make sure you are familiar with the operations and usage of the
|
|
3843
|
+
* You can query the list of model templates under a model provider template in the WUYING Agent Management Center with paging. Filtering by model group ID, model provider template ID, model template ID, and model encoding is supported. When querying by model group dimension, the default model is automatically pinned to the top.
|
|
3844
|
+
* Before using this operation, make sure that you are familiar with the operations and usage of the WUYING Agent Management Center.
|
|
2872
3845
|
*
|
|
2873
3846
|
* @param request - ListLlmTemplatesRequest
|
|
2874
3847
|
* @returns ListLlmTemplatesResponse
|
|
@@ -2936,8 +3909,8 @@ export default class Client extends OpenApi {
|
|
|
2936
3909
|
* Queries the list of model provider templates.
|
|
2937
3910
|
*
|
|
2938
3911
|
* @remarks
|
|
2939
|
-
* You can perform a paged query to retrieve the list of model provider templates under a specified model group in the WUYING Agent Management Center.
|
|
2940
|
-
* Before
|
|
3912
|
+
* You can perform a paged query to retrieve the list of model provider templates under a specified model group in the WUYING Agent Management Center. You can filter results by provider name, model group ID, and provider template ID. Paging is supported.
|
|
3913
|
+
* Before you call this operation, make sure that you are familiar with the operations and usage of the WUYING Agent Management Center.
|
|
2941
3914
|
*
|
|
2942
3915
|
* @param tmpReq - ListModelProviderTemplatesRequest
|
|
2943
3916
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -3005,8 +3978,8 @@ export default class Client extends OpenApi {
|
|
|
3005
3978
|
* Queries the list of model provider templates.
|
|
3006
3979
|
*
|
|
3007
3980
|
* @remarks
|
|
3008
|
-
* You can perform a paged query to retrieve the list of model provider templates under a specified model group in the WUYING Agent Management Center.
|
|
3009
|
-
* Before
|
|
3981
|
+
* You can perform a paged query to retrieve the list of model provider templates under a specified model group in the WUYING Agent Management Center. You can filter results by provider name, model group ID, and provider template ID. Paging is supported.
|
|
3982
|
+
* Before you call this operation, make sure that you are familiar with the operations and usage of the WUYING Agent Management Center.
|
|
3010
3983
|
*
|
|
3011
3984
|
* @param request - ListModelProviderTemplatesRequest
|
|
3012
3985
|
* @returns ListModelProviderTemplatesResponse
|
|
@@ -3079,11 +4052,11 @@ export default class Client extends OpenApi {
|
|
|
3079
4052
|
}
|
|
3080
4053
|
|
|
3081
4054
|
/**
|
|
3082
|
-
* Queries
|
|
4055
|
+
* Queries a list of model templates.
|
|
3083
4056
|
*
|
|
3084
4057
|
* @remarks
|
|
3085
|
-
* You can query the model groups created in the
|
|
3086
|
-
* Before using this operation, make sure you are familiar with the operations and usage of the
|
|
4058
|
+
* You can use paged query to retrieve the list of model groups created in the Wuying Agent Management Center. You can filter results by Agent provider, Agent platform, template group ID, and whether models have been configured. Paging is supported.
|
|
4059
|
+
* Before using this operation, make sure that you are familiar with the operations and usage of the Wuying Agent Management Center.
|
|
3087
4060
|
*
|
|
3088
4061
|
* @param tmpReq - ListModelTemplatesRequest
|
|
3089
4062
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -3164,11 +4137,11 @@ export default class Client extends OpenApi {
|
|
|
3164
4137
|
}
|
|
3165
4138
|
|
|
3166
4139
|
/**
|
|
3167
|
-
* Queries
|
|
4140
|
+
* Queries a list of model templates.
|
|
3168
4141
|
*
|
|
3169
4142
|
* @remarks
|
|
3170
|
-
* You can query the model groups created in the
|
|
3171
|
-
* Before using this operation, make sure you are familiar with the operations and usage of the
|
|
4143
|
+
* You can use paged query to retrieve the list of model groups created in the Wuying Agent Management Center. You can filter results by Agent provider, Agent platform, template group ID, and whether models have been configured. Paging is supported.
|
|
4144
|
+
* Before using this operation, make sure that you are familiar with the operations and usage of the Wuying Agent Management Center.
|
|
3172
4145
|
*
|
|
3173
4146
|
* @param request - ListModelTemplatesRequest
|
|
3174
4147
|
* @returns ListModelTemplatesResponse
|
|
@@ -3311,10 +4284,122 @@ export default class Client extends OpenApi {
|
|
|
3311
4284
|
}
|
|
3312
4285
|
|
|
3313
4286
|
let req = new $OpenApiUtil.OpenApiRequest({
|
|
3314
|
-
body: OpenApiUtil.parseToMap(body),
|
|
4287
|
+
body: OpenApiUtil.parseToMap(body),
|
|
4288
|
+
});
|
|
4289
|
+
let params = new $OpenApiUtil.Params({
|
|
4290
|
+
action: "ListNodes",
|
|
4291
|
+
version: "2021-09-01",
|
|
4292
|
+
protocol: "HTTPS",
|
|
4293
|
+
pathname: "/",
|
|
4294
|
+
method: "POST",
|
|
4295
|
+
authType: "AK",
|
|
4296
|
+
style: "RPC",
|
|
4297
|
+
reqBodyType: "formData",
|
|
4298
|
+
bodyType: "json",
|
|
4299
|
+
});
|
|
4300
|
+
return $dara.cast<$_model.ListNodesResponse>(await this.callApi(params, req, runtime), new $_model.ListNodesResponse({}));
|
|
4301
|
+
}
|
|
4302
|
+
|
|
4303
|
+
/**
|
|
4304
|
+
* Queries the list of resource nodes.
|
|
4305
|
+
*
|
|
4306
|
+
* @param request - ListNodesRequest
|
|
4307
|
+
* @returns ListNodesResponse
|
|
4308
|
+
*/
|
|
4309
|
+
async listNodes(request: $_model.ListNodesRequest): Promise<$_model.ListNodesResponse> {
|
|
4310
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
4311
|
+
return await this.listNodesWithOptions(request, runtime);
|
|
4312
|
+
}
|
|
4313
|
+
|
|
4314
|
+
/**
|
|
4315
|
+
* Queries the history of over-the-air updates.
|
|
4316
|
+
*
|
|
4317
|
+
* @param request - ListOtaTaskRequest
|
|
4318
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
4319
|
+
* @returns ListOtaTaskResponse
|
|
4320
|
+
*/
|
|
4321
|
+
async listOtaTaskWithOptions(request: $_model.ListOtaTaskRequest, runtime: $dara.RuntimeOptions): Promise<$_model.ListOtaTaskResponse> {
|
|
4322
|
+
request.validate();
|
|
4323
|
+
let body : {[key: string ]: any} = { };
|
|
4324
|
+
if (!$dara.isNull(request.appInstanceGroupId)) {
|
|
4325
|
+
body["AppInstanceGroupId"] = request.appInstanceGroupId;
|
|
4326
|
+
}
|
|
4327
|
+
|
|
4328
|
+
if (!$dara.isNull(request.otaType)) {
|
|
4329
|
+
body["OtaType"] = request.otaType;
|
|
4330
|
+
}
|
|
4331
|
+
|
|
4332
|
+
if (!$dara.isNull(request.pageNumber)) {
|
|
4333
|
+
body["PageNumber"] = request.pageNumber;
|
|
4334
|
+
}
|
|
4335
|
+
|
|
4336
|
+
if (!$dara.isNull(request.pageSize)) {
|
|
4337
|
+
body["PageSize"] = request.pageSize;
|
|
4338
|
+
}
|
|
4339
|
+
|
|
4340
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
4341
|
+
body: OpenApiUtil.parseToMap(body),
|
|
4342
|
+
});
|
|
4343
|
+
let params = new $OpenApiUtil.Params({
|
|
4344
|
+
action: "ListOtaTask",
|
|
4345
|
+
version: "2021-09-01",
|
|
4346
|
+
protocol: "HTTPS",
|
|
4347
|
+
pathname: "/",
|
|
4348
|
+
method: "POST",
|
|
4349
|
+
authType: "AK",
|
|
4350
|
+
style: "RPC",
|
|
4351
|
+
reqBodyType: "formData",
|
|
4352
|
+
bodyType: "json",
|
|
4353
|
+
});
|
|
4354
|
+
return $dara.cast<$_model.ListOtaTaskResponse>(await this.callApi(params, req, runtime), new $_model.ListOtaTaskResponse({}));
|
|
4355
|
+
}
|
|
4356
|
+
|
|
4357
|
+
/**
|
|
4358
|
+
* Queries the history of over-the-air updates.
|
|
4359
|
+
*
|
|
4360
|
+
* @param request - ListOtaTaskRequest
|
|
4361
|
+
* @returns ListOtaTaskResponse
|
|
4362
|
+
*/
|
|
4363
|
+
async listOtaTask(request: $_model.ListOtaTaskRequest): Promise<$_model.ListOtaTaskResponse> {
|
|
4364
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
4365
|
+
return await this.listOtaTaskWithOptions(request, runtime);
|
|
4366
|
+
}
|
|
4367
|
+
|
|
4368
|
+
/**
|
|
4369
|
+
* Queries the list of persistent session application instances in a delivery group.
|
|
4370
|
+
*
|
|
4371
|
+
* @param request - ListPersistentAppInstancesRequest
|
|
4372
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
4373
|
+
* @returns ListPersistentAppInstancesResponse
|
|
4374
|
+
*/
|
|
4375
|
+
async listPersistentAppInstancesWithOptions(request: $_model.ListPersistentAppInstancesRequest, runtime: $dara.RuntimeOptions): Promise<$_model.ListPersistentAppInstancesResponse> {
|
|
4376
|
+
request.validate();
|
|
4377
|
+
let query = { };
|
|
4378
|
+
if (!$dara.isNull(request.appInstanceGroupId)) {
|
|
4379
|
+
query["AppInstanceGroupId"] = request.appInstanceGroupId;
|
|
4380
|
+
}
|
|
4381
|
+
|
|
4382
|
+
if (!$dara.isNull(request.appInstancePersistentIds)) {
|
|
4383
|
+
query["AppInstancePersistentIds"] = request.appInstancePersistentIds;
|
|
4384
|
+
}
|
|
4385
|
+
|
|
4386
|
+
if (!$dara.isNull(request.pageNumber)) {
|
|
4387
|
+
query["PageNumber"] = request.pageNumber;
|
|
4388
|
+
}
|
|
4389
|
+
|
|
4390
|
+
if (!$dara.isNull(request.pageSize)) {
|
|
4391
|
+
query["PageSize"] = request.pageSize;
|
|
4392
|
+
}
|
|
4393
|
+
|
|
4394
|
+
if (!$dara.isNull(request.productType)) {
|
|
4395
|
+
query["ProductType"] = request.productType;
|
|
4396
|
+
}
|
|
4397
|
+
|
|
4398
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
4399
|
+
query: OpenApiUtil.query(query),
|
|
3315
4400
|
});
|
|
3316
4401
|
let params = new $OpenApiUtil.Params({
|
|
3317
|
-
action: "
|
|
4402
|
+
action: "ListPersistentAppInstances",
|
|
3318
4403
|
version: "2021-09-01",
|
|
3319
4404
|
protocol: "HTTPS",
|
|
3320
4405
|
pathname: "/",
|
|
@@ -3324,51 +4409,83 @@ export default class Client extends OpenApi {
|
|
|
3324
4409
|
reqBodyType: "formData",
|
|
3325
4410
|
bodyType: "json",
|
|
3326
4411
|
});
|
|
3327
|
-
return $dara.cast<$_model.
|
|
4412
|
+
return $dara.cast<$_model.ListPersistentAppInstancesResponse>(await this.callApi(params, req, runtime), new $_model.ListPersistentAppInstancesResponse({}));
|
|
3328
4413
|
}
|
|
3329
4414
|
|
|
3330
4415
|
/**
|
|
3331
|
-
* Queries the list of
|
|
4416
|
+
* Queries the list of persistent session application instances in a delivery group.
|
|
3332
4417
|
*
|
|
3333
|
-
* @param request -
|
|
3334
|
-
* @returns
|
|
4418
|
+
* @param request - ListPersistentAppInstancesRequest
|
|
4419
|
+
* @returns ListPersistentAppInstancesResponse
|
|
3335
4420
|
*/
|
|
3336
|
-
async
|
|
4421
|
+
async listPersistentAppInstances(request: $_model.ListPersistentAppInstancesRequest): Promise<$_model.ListPersistentAppInstancesResponse> {
|
|
3337
4422
|
let runtime = new $dara.RuntimeOptions({ });
|
|
3338
|
-
return await this.
|
|
4423
|
+
return await this.listPersistentAppInstancesWithOptions(request, runtime);
|
|
3339
4424
|
}
|
|
3340
4425
|
|
|
3341
4426
|
/**
|
|
3342
|
-
* Queries
|
|
4427
|
+
* Queries published delivery groups and their application information for a specified product type under the current Alibaba Cloud account by using paging. Supports filtering by delivery group, application, and user authorization status.
|
|
3343
4428
|
*
|
|
3344
|
-
* @
|
|
4429
|
+
* @remarks
|
|
4430
|
+
* ## Before you begin
|
|
4431
|
+
* When calling this operation with a RAM user or STS credential, the `appstreaming:ListPublishedAppInstanceGroup` permission is required.
|
|
4432
|
+
* A delivery group must be in the published state and have deployed applications in its image to appear in the query results. This operation only queries information. It does not create delivery groups, assign users, or grant application access permissions.
|
|
4433
|
+
* ## Query and pagination
|
|
4434
|
+
* - **You must explicitly pass in `ProductType`, `PageNumber`, and `PageSize`.** Page numbers start from `1`, and the page size ranges from `1` to `100`.
|
|
4435
|
+
* - `AppInstanceGroupId`, `AppInstanceGroupName`, `AppId`, and `AppName` all support substring matching. You can pass them individually or in combination. When multiple conditions are specified, all conditions must be met simultaneously. When both `AppId` and `AppName` are specified, the same application must satisfy both conditions.
|
|
4436
|
+
* - If an optional filter parameter is not specified or is set to an empty string, that condition is not applied. Query results are sorted by delivery group creation time from newest to oldest. A delivery group is not returned multiple times even if it contains multiple matching applications.
|
|
4437
|
+
* - `ExcludeUserId` excludes delivery groups in which all applications have been directly authorized to the specified user. It cannot be used to determine whether the user has no access permissions at all.
|
|
4438
|
+
* - `AppId` and `AppName` only filter delivery groups. **They do not restrict the returned `Apps` list to only the matched applications.**
|
|
4439
|
+
* ## Invoke sequence
|
|
4440
|
+
* 1. Invoke a query with `PageNumber=1` and the desired `PageSize`. For WUYING Cloud Application common scenarios, use `ProductType=CloudApp`.
|
|
4441
|
+
* 2. Read `AppInstanceGroupModels`. To retrieve the next page, keep the product type and filter conditions unchanged and increment `PageNumber`. If no delivery groups match, the total count is `0` and the list is empty. If the page number exceeds the result range, the list may also be empty, but the total count still represents the total number of matching delivery groups.
|
|
4442
|
+
* 3. To retrieve details of a single delivery group, pass the full `AppInstanceGroupId` from the response and the same `ProductType` to [GetAppInstanceGroup](~~GetAppInstanceGroup~~).
|
|
4443
|
+
* The masked identifiers in the examples are for format demonstration purposes. Replace them with your actual identifiers when invoking the operation.
|
|
4444
|
+
*
|
|
4445
|
+
* @param request - ListPublishedAppInstanceGroupRequest
|
|
3345
4446
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
3346
|
-
* @returns
|
|
4447
|
+
* @returns ListPublishedAppInstanceGroupResponse
|
|
3347
4448
|
*/
|
|
3348
|
-
async
|
|
4449
|
+
async listPublishedAppInstanceGroupWithOptions(request: $_model.ListPublishedAppInstanceGroupRequest, runtime: $dara.RuntimeOptions): Promise<$_model.ListPublishedAppInstanceGroupResponse> {
|
|
3349
4450
|
request.validate();
|
|
3350
|
-
let
|
|
4451
|
+
let query = { };
|
|
4452
|
+
if (!$dara.isNull(request.appId)) {
|
|
4453
|
+
query["AppId"] = request.appId;
|
|
4454
|
+
}
|
|
4455
|
+
|
|
3351
4456
|
if (!$dara.isNull(request.appInstanceGroupId)) {
|
|
3352
|
-
|
|
4457
|
+
query["AppInstanceGroupId"] = request.appInstanceGroupId;
|
|
3353
4458
|
}
|
|
3354
4459
|
|
|
3355
|
-
if (!$dara.isNull(request.
|
|
3356
|
-
|
|
4460
|
+
if (!$dara.isNull(request.appInstanceGroupName)) {
|
|
4461
|
+
query["AppInstanceGroupName"] = request.appInstanceGroupName;
|
|
4462
|
+
}
|
|
4463
|
+
|
|
4464
|
+
if (!$dara.isNull(request.appName)) {
|
|
4465
|
+
query["AppName"] = request.appName;
|
|
4466
|
+
}
|
|
4467
|
+
|
|
4468
|
+
if (!$dara.isNull(request.excludeUserId)) {
|
|
4469
|
+
query["ExcludeUserId"] = request.excludeUserId;
|
|
3357
4470
|
}
|
|
3358
4471
|
|
|
3359
4472
|
if (!$dara.isNull(request.pageNumber)) {
|
|
3360
|
-
|
|
4473
|
+
query["PageNumber"] = request.pageNumber;
|
|
3361
4474
|
}
|
|
3362
4475
|
|
|
3363
4476
|
if (!$dara.isNull(request.pageSize)) {
|
|
3364
|
-
|
|
4477
|
+
query["PageSize"] = request.pageSize;
|
|
4478
|
+
}
|
|
4479
|
+
|
|
4480
|
+
if (!$dara.isNull(request.productType)) {
|
|
4481
|
+
query["ProductType"] = request.productType;
|
|
3365
4482
|
}
|
|
3366
4483
|
|
|
3367
4484
|
let req = new $OpenApiUtil.OpenApiRequest({
|
|
3368
|
-
|
|
4485
|
+
query: OpenApiUtil.query(query),
|
|
3369
4486
|
});
|
|
3370
4487
|
let params = new $OpenApiUtil.Params({
|
|
3371
|
-
action: "
|
|
4488
|
+
action: "ListPublishedAppInstanceGroup",
|
|
3372
4489
|
version: "2021-09-01",
|
|
3373
4490
|
protocol: "HTTPS",
|
|
3374
4491
|
pathname: "/",
|
|
@@ -3378,36 +4495,81 @@ export default class Client extends OpenApi {
|
|
|
3378
4495
|
reqBodyType: "formData",
|
|
3379
4496
|
bodyType: "json",
|
|
3380
4497
|
});
|
|
3381
|
-
return $dara.cast<$_model.
|
|
4498
|
+
return $dara.cast<$_model.ListPublishedAppInstanceGroupResponse>(await this.callApi(params, req, runtime), new $_model.ListPublishedAppInstanceGroupResponse({}));
|
|
3382
4499
|
}
|
|
3383
4500
|
|
|
3384
4501
|
/**
|
|
3385
|
-
* Queries
|
|
4502
|
+
* Queries published delivery groups and their application information for a specified product type under the current Alibaba Cloud account by using paging. Supports filtering by delivery group, application, and user authorization status.
|
|
3386
4503
|
*
|
|
3387
|
-
* @
|
|
3388
|
-
*
|
|
3389
|
-
|
|
3390
|
-
|
|
4504
|
+
* @remarks
|
|
4505
|
+
* ## Before you begin
|
|
4506
|
+
* When calling this operation with a RAM user or STS credential, the `appstreaming:ListPublishedAppInstanceGroup` permission is required.
|
|
4507
|
+
* A delivery group must be in the published state and have deployed applications in its image to appear in the query results. This operation only queries information. It does not create delivery groups, assign users, or grant application access permissions.
|
|
4508
|
+
* ## Query and pagination
|
|
4509
|
+
* - **You must explicitly pass in `ProductType`, `PageNumber`, and `PageSize`.** Page numbers start from `1`, and the page size ranges from `1` to `100`.
|
|
4510
|
+
* - `AppInstanceGroupId`, `AppInstanceGroupName`, `AppId`, and `AppName` all support substring matching. You can pass them individually or in combination. When multiple conditions are specified, all conditions must be met simultaneously. When both `AppId` and `AppName` are specified, the same application must satisfy both conditions.
|
|
4511
|
+
* - If an optional filter parameter is not specified or is set to an empty string, that condition is not applied. Query results are sorted by delivery group creation time from newest to oldest. A delivery group is not returned multiple times even if it contains multiple matching applications.
|
|
4512
|
+
* - `ExcludeUserId` excludes delivery groups in which all applications have been directly authorized to the specified user. It cannot be used to determine whether the user has no access permissions at all.
|
|
4513
|
+
* - `AppId` and `AppName` only filter delivery groups. **They do not restrict the returned `Apps` list to only the matched applications.**
|
|
4514
|
+
* ## Invoke sequence
|
|
4515
|
+
* 1. Invoke a query with `PageNumber=1` and the desired `PageSize`. For WUYING Cloud Application common scenarios, use `ProductType=CloudApp`.
|
|
4516
|
+
* 2. Read `AppInstanceGroupModels`. To retrieve the next page, keep the product type and filter conditions unchanged and increment `PageNumber`. If no delivery groups match, the total count is `0` and the list is empty. If the page number exceeds the result range, the list may also be empty, but the total count still represents the total number of matching delivery groups.
|
|
4517
|
+
* 3. To retrieve details of a single delivery group, pass the full `AppInstanceGroupId` from the response and the same `ProductType` to [GetAppInstanceGroup](~~GetAppInstanceGroup~~).
|
|
4518
|
+
* The masked identifiers in the examples are for format demonstration purposes. Replace them with your actual identifiers when invoking the operation.
|
|
4519
|
+
*
|
|
4520
|
+
* @param request - ListPublishedAppInstanceGroupRequest
|
|
4521
|
+
* @returns ListPublishedAppInstanceGroupResponse
|
|
4522
|
+
*/
|
|
4523
|
+
async listPublishedAppInstanceGroup(request: $_model.ListPublishedAppInstanceGroupRequest): Promise<$_model.ListPublishedAppInstanceGroupResponse> {
|
|
3391
4524
|
let runtime = new $dara.RuntimeOptions({ });
|
|
3392
|
-
return await this.
|
|
4525
|
+
return await this.listPublishedAppInstanceGroupWithOptions(request, runtime);
|
|
3393
4526
|
}
|
|
3394
4527
|
|
|
3395
4528
|
/**
|
|
3396
|
-
* Queries the
|
|
4529
|
+
* Queries deployed applications in published delivery groups under the current Alibaba Cloud account for a specified product type by paging, and returns each application along with its delivery group and the number of authorized users by application. Supports filtering by delivery group, application, and user authorization status.
|
|
3397
4530
|
*
|
|
3398
|
-
* @
|
|
4531
|
+
* @remarks
|
|
4532
|
+
* ## Before you begin
|
|
4533
|
+
* When you call this operation by using a RAM user or Security Token Service (STS) credential, you must have the `appstreaming:ListPublishedApps` permission.
|
|
4534
|
+
* Only delivery groups in the published state whose images contain deployed applications are included in the query results. This operation only queries information. It does not create delivery groups or grant or revoke application access permissions.
|
|
4535
|
+
* ## Response granularity
|
|
4536
|
+
* Results are returned on a per-delivery-group-plus-application basis. If the same application is deployed in multiple published delivery groups, a separate record is returned for each combination. `TotalCount` also reflects the number of such combinations. The list is sorted by the creation time of the delivery group in descending order.
|
|
4537
|
+
* ## Query and pagination
|
|
4538
|
+
* - **You must explicitly specify `ProductType`, `PageNumber`, and `PageSize`.** Page numbers start from `1`, and the page size ranges from `1` to `100`. Invalid values return error codes `InvalidParameter.PageNumber` and `InvalidParameter.PageSize`, respectively.
|
|
4539
|
+
* - `AppInstanceGroupId`, `AppInstanceGroupName`, `AppId`, and `AppName` all support substring matching. You can specify them individually or in combination. When multiple conditions are specified, all conditions must be met.
|
|
4540
|
+
* - If an optional filter parameter is not specified or is set to an empty string, filtering is not applied for that condition.
|
|
4541
|
+
* - `ExcludeUserId` excludes applications that have been authorized to the specified user by application, which helps you find applications that can still be authorized to that user. **Access permissions granted through delivery-group-level authorization or user groups are not evaluated by this condition.**
|
|
4542
|
+
* ## Invocation sequence
|
|
4543
|
+
* 1. Initiate a query with `PageNumber=1` and the desired `PageSize`. For WUYING Cloud Application common scenarios, use `ProductType=CloudApp`.
|
|
4544
|
+
* 2. Read `Apps`. To retrieve the next page, increment `PageNumber` while keeping the product type and filter conditions unchanged. If no results match, `TotalCount` is `0` and `Apps` is an empty list. If the page number exceeds the result range, `Apps` may also be empty, but `TotalCount` still indicates the total number of matching records.
|
|
4545
|
+
* 3. To authorize users for a specific application by application, pass the returned `AppInstanceGroupId`, `AppId`, and the same `ProductType` to [AuthorizeUsersForApp](~~AuthorizeUsersForApp~~). To view delivery group details, pass `AppInstanceGroupId` and `ProductType` to [GetAppInstanceGroup](~~GetAppInstanceGroup~~).
|
|
4546
|
+
* The masked identities in the examples are for format demonstration purposes. Replace them with your actual identities when you invoke the operation.
|
|
4547
|
+
*
|
|
4548
|
+
* @param request - ListPublishedAppsRequest
|
|
3399
4549
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
3400
|
-
* @returns
|
|
4550
|
+
* @returns ListPublishedAppsResponse
|
|
3401
4551
|
*/
|
|
3402
|
-
async
|
|
4552
|
+
async listPublishedAppsWithOptions(request: $_model.ListPublishedAppsRequest, runtime: $dara.RuntimeOptions): Promise<$_model.ListPublishedAppsResponse> {
|
|
3403
4553
|
request.validate();
|
|
3404
4554
|
let query = { };
|
|
4555
|
+
if (!$dara.isNull(request.appId)) {
|
|
4556
|
+
query["AppId"] = request.appId;
|
|
4557
|
+
}
|
|
4558
|
+
|
|
3405
4559
|
if (!$dara.isNull(request.appInstanceGroupId)) {
|
|
3406
4560
|
query["AppInstanceGroupId"] = request.appInstanceGroupId;
|
|
3407
4561
|
}
|
|
3408
4562
|
|
|
3409
|
-
if (!$dara.isNull(request.
|
|
3410
|
-
query["
|
|
4563
|
+
if (!$dara.isNull(request.appInstanceGroupName)) {
|
|
4564
|
+
query["AppInstanceGroupName"] = request.appInstanceGroupName;
|
|
4565
|
+
}
|
|
4566
|
+
|
|
4567
|
+
if (!$dara.isNull(request.appName)) {
|
|
4568
|
+
query["AppName"] = request.appName;
|
|
4569
|
+
}
|
|
4570
|
+
|
|
4571
|
+
if (!$dara.isNull(request.excludeUserId)) {
|
|
4572
|
+
query["ExcludeUserId"] = request.excludeUserId;
|
|
3411
4573
|
}
|
|
3412
4574
|
|
|
3413
4575
|
if (!$dara.isNull(request.pageNumber)) {
|
|
@@ -3426,7 +4588,7 @@ export default class Client extends OpenApi {
|
|
|
3426
4588
|
query: OpenApiUtil.query(query),
|
|
3427
4589
|
});
|
|
3428
4590
|
let params = new $OpenApiUtil.Params({
|
|
3429
|
-
action: "
|
|
4591
|
+
action: "ListPublishedApps",
|
|
3430
4592
|
version: "2021-09-01",
|
|
3431
4593
|
protocol: "HTTPS",
|
|
3432
4594
|
pathname: "/",
|
|
@@ -3436,18 +4598,35 @@ export default class Client extends OpenApi {
|
|
|
3436
4598
|
reqBodyType: "formData",
|
|
3437
4599
|
bodyType: "json",
|
|
3438
4600
|
});
|
|
3439
|
-
return $dara.cast<$_model.
|
|
4601
|
+
return $dara.cast<$_model.ListPublishedAppsResponse>(await this.callApi(params, req, runtime), new $_model.ListPublishedAppsResponse({}));
|
|
3440
4602
|
}
|
|
3441
4603
|
|
|
3442
4604
|
/**
|
|
3443
|
-
* Queries the
|
|
4605
|
+
* Queries deployed applications in published delivery groups under the current Alibaba Cloud account for a specified product type by paging, and returns each application along with its delivery group and the number of authorized users by application. Supports filtering by delivery group, application, and user authorization status.
|
|
3444
4606
|
*
|
|
3445
|
-
* @
|
|
3446
|
-
*
|
|
3447
|
-
|
|
3448
|
-
|
|
4607
|
+
* @remarks
|
|
4608
|
+
* ## Before you begin
|
|
4609
|
+
* When you call this operation by using a RAM user or Security Token Service (STS) credential, you must have the `appstreaming:ListPublishedApps` permission.
|
|
4610
|
+
* Only delivery groups in the published state whose images contain deployed applications are included in the query results. This operation only queries information. It does not create delivery groups or grant or revoke application access permissions.
|
|
4611
|
+
* ## Response granularity
|
|
4612
|
+
* Results are returned on a per-delivery-group-plus-application basis. If the same application is deployed in multiple published delivery groups, a separate record is returned for each combination. `TotalCount` also reflects the number of such combinations. The list is sorted by the creation time of the delivery group in descending order.
|
|
4613
|
+
* ## Query and pagination
|
|
4614
|
+
* - **You must explicitly specify `ProductType`, `PageNumber`, and `PageSize`.** Page numbers start from `1`, and the page size ranges from `1` to `100`. Invalid values return error codes `InvalidParameter.PageNumber` and `InvalidParameter.PageSize`, respectively.
|
|
4615
|
+
* - `AppInstanceGroupId`, `AppInstanceGroupName`, `AppId`, and `AppName` all support substring matching. You can specify them individually or in combination. When multiple conditions are specified, all conditions must be met.
|
|
4616
|
+
* - If an optional filter parameter is not specified or is set to an empty string, filtering is not applied for that condition.
|
|
4617
|
+
* - `ExcludeUserId` excludes applications that have been authorized to the specified user by application, which helps you find applications that can still be authorized to that user. **Access permissions granted through delivery-group-level authorization or user groups are not evaluated by this condition.**
|
|
4618
|
+
* ## Invocation sequence
|
|
4619
|
+
* 1. Initiate a query with `PageNumber=1` and the desired `PageSize`. For WUYING Cloud Application common scenarios, use `ProductType=CloudApp`.
|
|
4620
|
+
* 2. Read `Apps`. To retrieve the next page, increment `PageNumber` while keeping the product type and filter conditions unchanged. If no results match, `TotalCount` is `0` and `Apps` is an empty list. If the page number exceeds the result range, `Apps` may also be empty, but `TotalCount` still indicates the total number of matching records.
|
|
4621
|
+
* 3. To authorize users for a specific application by application, pass the returned `AppInstanceGroupId`, `AppId`, and the same `ProductType` to [AuthorizeUsersForApp](~~AuthorizeUsersForApp~~). To view delivery group details, pass `AppInstanceGroupId` and `ProductType` to [GetAppInstanceGroup](~~GetAppInstanceGroup~~).
|
|
4622
|
+
* The masked identities in the examples are for format demonstration purposes. Replace them with your actual identities when you invoke the operation.
|
|
4623
|
+
*
|
|
4624
|
+
* @param request - ListPublishedAppsRequest
|
|
4625
|
+
* @returns ListPublishedAppsResponse
|
|
4626
|
+
*/
|
|
4627
|
+
async listPublishedApps(request: $_model.ListPublishedAppsRequest): Promise<$_model.ListPublishedAppsResponse> {
|
|
3449
4628
|
let runtime = new $dara.RuntimeOptions({ });
|
|
3450
|
-
return await this.
|
|
4629
|
+
return await this.listPublishedAppsWithOptions(request, runtime);
|
|
3451
4630
|
}
|
|
3452
4631
|
|
|
3453
4632
|
/**
|
|
@@ -3560,6 +4739,113 @@ export default class Client extends OpenApi {
|
|
|
3560
4739
|
return await this.listTagCloudResourcesWithOptions(request, runtime);
|
|
3561
4740
|
}
|
|
3562
4741
|
|
|
4742
|
+
/**
|
|
4743
|
+
* Queries tags bound to one or more delivery groups, or filters delivery groups that have specific tags bound by tag key-value pairs.
|
|
4744
|
+
*
|
|
4745
|
+
* @remarks
|
|
4746
|
+
* This operation complies with the Alibaba Cloud tagging standard and is used to query tags bound to Elastic Cloud Application (China) delivery groups. You can query tags bound to resources by resource ID, or filter resources that have specific tags bound by tag key-value pairs.
|
|
4747
|
+
* ## Before you begin
|
|
4748
|
+
* - A delivery group is created. You can call the ListAppInstanceGroup operation to obtain the delivery group ID.
|
|
4749
|
+
* - Tags are bound to the delivery group. You can bind tags by calling the TagResources operation, or by using the console or the Tag service.
|
|
4750
|
+
* ## Parameter description
|
|
4751
|
+
* - **ResourceType is required**. Only `APPINSTANCEGROUP` (delivery group) is supported. If you specify other values, the error code `InvalidResourceType.Invalid` is returned.
|
|
4752
|
+
* - **Specify at least one of ResourceId.N and Tag.N**. If neither is specified, the error code `MissingParameter.ResourceIdsOrTags` is returned.
|
|
4753
|
+
* - If only ResourceId.N is specified: all tags attached to the specified resources are returned.
|
|
4754
|
+
* - If only Tag.N is specified: all resources that have the specified tags attached and their matching tags are returned.
|
|
4755
|
+
* - If both are specified: only records of the specified resources that have the specified tags attached are returned.
|
|
4756
|
+
* - Tag.N.Key is required. If it is empty, the error code `InvalidTagPolicy.KeyInvalid` is returned. Tag.N.Value is optional. If it is not specified, the value of the tag key is not restricted, which means any tag value under the key is matched.
|
|
4757
|
+
* - Multiple Tag.N conditions have an AND relationship. A resource is returned only if it has all specified tags attached.
|
|
4758
|
+
* ## Response description
|
|
4759
|
+
* - Each record in the response corresponds to a resource-tag key-value pair. If a resource has multiple tags bound, multiple records are returned.
|
|
4760
|
+
* - TotalCount indicates the number of records returned.
|
|
4761
|
+
* - This operation returns all matching results at a time. An empty NextToken value indicates that no more data is available.
|
|
4762
|
+
* ## Invocation sequence
|
|
4763
|
+
* 1. Invoke the ListAppInstanceGroup operation to obtain the delivery group ID.
|
|
4764
|
+
* 2. Invoke the TagResources operation to attach tags to the delivery group.
|
|
4765
|
+
* 3. Invoke this operation to query tag bindings by resource ID or tag conditions.
|
|
4766
|
+
*
|
|
4767
|
+
* @param request - ListTagResourcesRequest
|
|
4768
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
4769
|
+
* @returns ListTagResourcesResponse
|
|
4770
|
+
*/
|
|
4771
|
+
async listTagResourcesWithOptions(request: $_model.ListTagResourcesRequest, runtime: $dara.RuntimeOptions): Promise<$_model.ListTagResourcesResponse> {
|
|
4772
|
+
request.validate();
|
|
4773
|
+
let body : {[key: string ]: any} = { };
|
|
4774
|
+
if (!$dara.isNull(request.nextToken)) {
|
|
4775
|
+
body["NextToken"] = request.nextToken;
|
|
4776
|
+
}
|
|
4777
|
+
|
|
4778
|
+
if (!$dara.isNull(request.regionId)) {
|
|
4779
|
+
body["RegionId"] = request.regionId;
|
|
4780
|
+
}
|
|
4781
|
+
|
|
4782
|
+
if (!$dara.isNull(request.resourceId)) {
|
|
4783
|
+
body["ResourceId"] = request.resourceId;
|
|
4784
|
+
}
|
|
4785
|
+
|
|
4786
|
+
if (!$dara.isNull(request.resourceType)) {
|
|
4787
|
+
body["ResourceType"] = request.resourceType;
|
|
4788
|
+
}
|
|
4789
|
+
|
|
4790
|
+
let bodyFlat : {[key: string ]: any} = { };
|
|
4791
|
+
if (!$dara.isNull(request.tag)) {
|
|
4792
|
+
bodyFlat["Tag"] = request.tag;
|
|
4793
|
+
}
|
|
4794
|
+
|
|
4795
|
+
body = {
|
|
4796
|
+
...body,
|
|
4797
|
+
...OpenApiUtil.query(bodyFlat),
|
|
4798
|
+
};
|
|
4799
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
4800
|
+
body: OpenApiUtil.parseToMap(body),
|
|
4801
|
+
});
|
|
4802
|
+
let params = new $OpenApiUtil.Params({
|
|
4803
|
+
action: "ListTagResources",
|
|
4804
|
+
version: "2021-09-01",
|
|
4805
|
+
protocol: "HTTPS",
|
|
4806
|
+
pathname: "/",
|
|
4807
|
+
method: "POST",
|
|
4808
|
+
authType: "AK",
|
|
4809
|
+
style: "RPC",
|
|
4810
|
+
reqBodyType: "formData",
|
|
4811
|
+
bodyType: "json",
|
|
4812
|
+
});
|
|
4813
|
+
return $dara.cast<$_model.ListTagResourcesResponse>(await this.callApi(params, req, runtime), new $_model.ListTagResourcesResponse({}));
|
|
4814
|
+
}
|
|
4815
|
+
|
|
4816
|
+
/**
|
|
4817
|
+
* Queries tags bound to one or more delivery groups, or filters delivery groups that have specific tags bound by tag key-value pairs.
|
|
4818
|
+
*
|
|
4819
|
+
* @remarks
|
|
4820
|
+
* This operation complies with the Alibaba Cloud tagging standard and is used to query tags bound to Elastic Cloud Application (China) delivery groups. You can query tags bound to resources by resource ID, or filter resources that have specific tags bound by tag key-value pairs.
|
|
4821
|
+
* ## Before you begin
|
|
4822
|
+
* - A delivery group is created. You can call the ListAppInstanceGroup operation to obtain the delivery group ID.
|
|
4823
|
+
* - Tags are bound to the delivery group. You can bind tags by calling the TagResources operation, or by using the console or the Tag service.
|
|
4824
|
+
* ## Parameter description
|
|
4825
|
+
* - **ResourceType is required**. Only `APPINSTANCEGROUP` (delivery group) is supported. If you specify other values, the error code `InvalidResourceType.Invalid` is returned.
|
|
4826
|
+
* - **Specify at least one of ResourceId.N and Tag.N**. If neither is specified, the error code `MissingParameter.ResourceIdsOrTags` is returned.
|
|
4827
|
+
* - If only ResourceId.N is specified: all tags attached to the specified resources are returned.
|
|
4828
|
+
* - If only Tag.N is specified: all resources that have the specified tags attached and their matching tags are returned.
|
|
4829
|
+
* - If both are specified: only records of the specified resources that have the specified tags attached are returned.
|
|
4830
|
+
* - Tag.N.Key is required. If it is empty, the error code `InvalidTagPolicy.KeyInvalid` is returned. Tag.N.Value is optional. If it is not specified, the value of the tag key is not restricted, which means any tag value under the key is matched.
|
|
4831
|
+
* - Multiple Tag.N conditions have an AND relationship. A resource is returned only if it has all specified tags attached.
|
|
4832
|
+
* ## Response description
|
|
4833
|
+
* - Each record in the response corresponds to a resource-tag key-value pair. If a resource has multiple tags bound, multiple records are returned.
|
|
4834
|
+
* - TotalCount indicates the number of records returned.
|
|
4835
|
+
* - This operation returns all matching results at a time. An empty NextToken value indicates that no more data is available.
|
|
4836
|
+
* ## Invocation sequence
|
|
4837
|
+
* 1. Invoke the ListAppInstanceGroup operation to obtain the delivery group ID.
|
|
4838
|
+
* 2. Invoke the TagResources operation to attach tags to the delivery group.
|
|
4839
|
+
* 3. Invoke this operation to query tag bindings by resource ID or tag conditions.
|
|
4840
|
+
*
|
|
4841
|
+
* @param request - ListTagResourcesRequest
|
|
4842
|
+
* @returns ListTagResourcesResponse
|
|
4843
|
+
*/
|
|
4844
|
+
async listTagResources(request: $_model.ListTagResourcesRequest): Promise<$_model.ListTagResourcesResponse> {
|
|
4845
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
4846
|
+
return await this.listTagResourcesWithOptions(request, runtime);
|
|
4847
|
+
}
|
|
4848
|
+
|
|
3563
4849
|
/**
|
|
3564
4850
|
* Queries the configuration information of an administrator account, such as whether resource expiration reminders are enabled.
|
|
3565
4851
|
*
|
|
@@ -3592,10 +4878,10 @@ export default class Client extends OpenApi {
|
|
|
3592
4878
|
}
|
|
3593
4879
|
|
|
3594
4880
|
/**
|
|
3595
|
-
* Queries
|
|
4881
|
+
* Queries a list of workstations.
|
|
3596
4882
|
*
|
|
3597
4883
|
* @remarks
|
|
3598
|
-
* Retrieves
|
|
4884
|
+
* Retrieves a list of WUYING workstations.
|
|
3599
4885
|
*
|
|
3600
4886
|
* @param request - ListWuyingServerRequest
|
|
3601
4887
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -3711,10 +4997,10 @@ export default class Client extends OpenApi {
|
|
|
3711
4997
|
}
|
|
3712
4998
|
|
|
3713
4999
|
/**
|
|
3714
|
-
* Queries
|
|
5000
|
+
* Queries a list of workstations.
|
|
3715
5001
|
*
|
|
3716
5002
|
* @remarks
|
|
3717
|
-
* Retrieves
|
|
5003
|
+
* Retrieves a list of WUYING workstations.
|
|
3718
5004
|
*
|
|
3719
5005
|
* @param request - ListWuyingServerRequest
|
|
3720
5006
|
* @returns ListWuyingServerResponse
|
|
@@ -3724,6 +5010,84 @@ export default class Client extends OpenApi {
|
|
|
3724
5010
|
return await this.listWuyingServerWithOptions(request, runtime);
|
|
3725
5011
|
}
|
|
3726
5012
|
|
|
5013
|
+
/**
|
|
5014
|
+
* Queries the list of available zone IDs for a specified region, product type, and operating system type.
|
|
5015
|
+
*
|
|
5016
|
+
* @remarks
|
|
5017
|
+
* ## Operation description
|
|
5018
|
+
* This operation returns the list of available zone IDs for the current Alibaba Cloud account based on the specified region, product type, and operating system type. A typical use case is to check which zones are available before creating a resource that requires a vSwitch, and then select a vSwitch in one of those zones.
|
|
5019
|
+
* This operation only queries information. It does not create resources or incur fees.
|
|
5020
|
+
* ## Before you begin
|
|
5021
|
+
* - When calling this operation with a RAM user or STS credential, the `appstreaming:ListAppInstanceType` permission is required. If the permission is insufficient, the error code `Forbidden.NoPermission` is returned.
|
|
5022
|
+
* - **`ProductType`, `BizRegionId`, and `OsType` are all required.** If any of these parameters is missing, empty, or set to an unrecognized value, the error code `InvalidParameter.ValueInvalid` is returned.
|
|
5023
|
+
* - `BizRegionId` must be a region ID supported by WUYING Cloud Application. Call [ListRegions](~~ListRegions~~) first to obtain the supported region IDs.
|
|
5024
|
+
* ## Call sequence
|
|
5025
|
+
* 1. Call [ListRegions](~~ListRegions~~) to obtain the supported region IDs.
|
|
5026
|
+
* 2. Call this operation with the region ID, target product type, and operating system type, and read the returned `ListZonesModel.Zones`.
|
|
5027
|
+
* 3. When creating a resource that requires a vSwitch, select a vSwitch in one of the returned zones. For example, pass the corresponding vSwitch ID when calling [CreateAppInstanceGroup](~~CreateAppInstanceGroup~~) or [CreateWuyingServer](~~CreateWuyingServer~~).
|
|
5028
|
+
* The returned zone list is determined by the available resources in the current region and may change over time. Query the list in real time before creating resources instead of caching it for extended periods.
|
|
5029
|
+
*
|
|
5030
|
+
* @param request - ListZonesRequest
|
|
5031
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
5032
|
+
* @returns ListZonesResponse
|
|
5033
|
+
*/
|
|
5034
|
+
async listZonesWithOptions(request: $_model.ListZonesRequest, runtime: $dara.RuntimeOptions): Promise<$_model.ListZonesResponse> {
|
|
5035
|
+
request.validate();
|
|
5036
|
+
let query = { };
|
|
5037
|
+
if (!$dara.isNull(request.bizRegionId)) {
|
|
5038
|
+
query["BizRegionId"] = request.bizRegionId;
|
|
5039
|
+
}
|
|
5040
|
+
|
|
5041
|
+
if (!$dara.isNull(request.osType)) {
|
|
5042
|
+
query["OsType"] = request.osType;
|
|
5043
|
+
}
|
|
5044
|
+
|
|
5045
|
+
if (!$dara.isNull(request.productType)) {
|
|
5046
|
+
query["ProductType"] = request.productType;
|
|
5047
|
+
}
|
|
5048
|
+
|
|
5049
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
5050
|
+
query: OpenApiUtil.query(query),
|
|
5051
|
+
});
|
|
5052
|
+
let params = new $OpenApiUtil.Params({
|
|
5053
|
+
action: "ListZones",
|
|
5054
|
+
version: "2021-09-01",
|
|
5055
|
+
protocol: "HTTPS",
|
|
5056
|
+
pathname: "/",
|
|
5057
|
+
method: "POST",
|
|
5058
|
+
authType: "AK",
|
|
5059
|
+
style: "RPC",
|
|
5060
|
+
reqBodyType: "formData",
|
|
5061
|
+
bodyType: "json",
|
|
5062
|
+
});
|
|
5063
|
+
return $dara.cast<$_model.ListZonesResponse>(await this.callApi(params, req, runtime), new $_model.ListZonesResponse({}));
|
|
5064
|
+
}
|
|
5065
|
+
|
|
5066
|
+
/**
|
|
5067
|
+
* Queries the list of available zone IDs for a specified region, product type, and operating system type.
|
|
5068
|
+
*
|
|
5069
|
+
* @remarks
|
|
5070
|
+
* ## Operation description
|
|
5071
|
+
* This operation returns the list of available zone IDs for the current Alibaba Cloud account based on the specified region, product type, and operating system type. A typical use case is to check which zones are available before creating a resource that requires a vSwitch, and then select a vSwitch in one of those zones.
|
|
5072
|
+
* This operation only queries information. It does not create resources or incur fees.
|
|
5073
|
+
* ## Before you begin
|
|
5074
|
+
* - When calling this operation with a RAM user or STS credential, the `appstreaming:ListAppInstanceType` permission is required. If the permission is insufficient, the error code `Forbidden.NoPermission` is returned.
|
|
5075
|
+
* - **`ProductType`, `BizRegionId`, and `OsType` are all required.** If any of these parameters is missing, empty, or set to an unrecognized value, the error code `InvalidParameter.ValueInvalid` is returned.
|
|
5076
|
+
* - `BizRegionId` must be a region ID supported by WUYING Cloud Application. Call [ListRegions](~~ListRegions~~) first to obtain the supported region IDs.
|
|
5077
|
+
* ## Call sequence
|
|
5078
|
+
* 1. Call [ListRegions](~~ListRegions~~) to obtain the supported region IDs.
|
|
5079
|
+
* 2. Call this operation with the region ID, target product type, and operating system type, and read the returned `ListZonesModel.Zones`.
|
|
5080
|
+
* 3. When creating a resource that requires a vSwitch, select a vSwitch in one of the returned zones. For example, pass the corresponding vSwitch ID when calling [CreateAppInstanceGroup](~~CreateAppInstanceGroup~~) or [CreateWuyingServer](~~CreateWuyingServer~~).
|
|
5081
|
+
* The returned zone list is determined by the available resources in the current region and may change over time. Query the list in real time before creating resources instead of caching it for extended periods.
|
|
5082
|
+
*
|
|
5083
|
+
* @param request - ListZonesRequest
|
|
5084
|
+
* @returns ListZonesResponse
|
|
5085
|
+
*/
|
|
5086
|
+
async listZones(request: $_model.ListZonesRequest): Promise<$_model.ListZonesResponse> {
|
|
5087
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
5088
|
+
return await this.listZonesWithOptions(request, runtime);
|
|
5089
|
+
}
|
|
5090
|
+
|
|
3727
5091
|
/**
|
|
3728
5092
|
* Logs off all sessions in a pay-as-you-go delivery group that has scheduled auto scaling enabled.
|
|
3729
5093
|
*
|
|
@@ -3777,7 +5141,7 @@ export default class Client extends OpenApi {
|
|
|
3777
5141
|
}
|
|
3778
5142
|
|
|
3779
5143
|
/**
|
|
3780
|
-
* Modifies the
|
|
5144
|
+
* Modifies the General Policy of a delivery group, including the number of concurrent sessions and the session retention duration after disconnection.
|
|
3781
5145
|
*
|
|
3782
5146
|
* @param tmpReq - ModifyAppInstanceGroupAttributeRequest
|
|
3783
5147
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -3868,7 +5232,7 @@ export default class Client extends OpenApi {
|
|
|
3868
5232
|
}
|
|
3869
5233
|
|
|
3870
5234
|
/**
|
|
3871
|
-
* Modifies the
|
|
5235
|
+
* Modifies the General Policy of a delivery group, including the number of concurrent sessions and the session retention duration after disconnection.
|
|
3872
5236
|
*
|
|
3873
5237
|
* @param request - ModifyAppInstanceGroupAttributeRequest
|
|
3874
5238
|
* @returns ModifyAppInstanceGroupAttributeResponse
|
|
@@ -3986,6 +5350,10 @@ export default class Client extends OpenApi {
|
|
|
3986
5350
|
}
|
|
3987
5351
|
|
|
3988
5352
|
let body : {[key: string ]: any} = { };
|
|
5353
|
+
if (!$dara.isNull(request.authNotificationEnabled)) {
|
|
5354
|
+
body["AuthNotificationEnabled"] = request.authNotificationEnabled;
|
|
5355
|
+
}
|
|
5356
|
+
|
|
3989
5357
|
if (!$dara.isNull(request.cloudBrowserName)) {
|
|
3990
5358
|
body["CloudBrowserName"] = request.cloudBrowserName;
|
|
3991
5359
|
}
|
|
@@ -4220,6 +5588,10 @@ export default class Client extends OpenApi {
|
|
|
4220
5588
|
async modifyWuyingServerAttributeWithOptions(request: $_model.ModifyWuyingServerAttributeRequest, runtime: $dara.RuntimeOptions): Promise<$_model.ModifyWuyingServerAttributeResponse> {
|
|
4221
5589
|
request.validate();
|
|
4222
5590
|
let body : {[key: string ]: any} = { };
|
|
5591
|
+
if (!$dara.isNull(request.erdmaEnabled)) {
|
|
5592
|
+
body["ErdmaEnabled"] = request.erdmaEnabled;
|
|
5593
|
+
}
|
|
5594
|
+
|
|
4223
5595
|
if (!$dara.isNull(request.password)) {
|
|
4224
5596
|
body["Password"] = request.password;
|
|
4225
5597
|
}
|
|
@@ -4505,6 +5877,8 @@ export default class Client extends OpenApi {
|
|
|
4505
5877
|
*
|
|
4506
5878
|
* @remarks
|
|
4507
5879
|
* Before you call this operation, make sure that you fully understand the [billing and pricing](https://help.aliyun.com/document_detail/426039.html) of WUYING Workspace.
|
|
5880
|
+
* > Prerequisites:
|
|
5881
|
+
* > - The delivery group must be in the PUBLISHED state, and ChargeType must be set to PrePaid.
|
|
4508
5882
|
*
|
|
4509
5883
|
* @param tmpReq - RenewAppInstanceGroupRequest
|
|
4510
5884
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -4577,6 +5951,8 @@ export default class Client extends OpenApi {
|
|
|
4577
5951
|
*
|
|
4578
5952
|
* @remarks
|
|
4579
5953
|
* Before you call this operation, make sure that you fully understand the [billing and pricing](https://help.aliyun.com/document_detail/426039.html) of WUYING Workspace.
|
|
5954
|
+
* > Prerequisites:
|
|
5955
|
+
* > - The delivery group must be in the PUBLISHED state, and ChargeType must be set to PrePaid.
|
|
4580
5956
|
*
|
|
4581
5957
|
* @param request - RenewAppInstanceGroupRequest
|
|
4582
5958
|
* @returns RenewAppInstanceGroupResponse
|
|
@@ -4645,7 +6021,7 @@ export default class Client extends OpenApi {
|
|
|
4645
6021
|
}
|
|
4646
6022
|
|
|
4647
6023
|
/**
|
|
4648
|
-
* Restarts a
|
|
6024
|
+
* Restarts a workstation.
|
|
4649
6025
|
*
|
|
4650
6026
|
* @param request - RestartWuyingServerRequest
|
|
4651
6027
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -4685,7 +6061,7 @@ export default class Client extends OpenApi {
|
|
|
4685
6061
|
}
|
|
4686
6062
|
|
|
4687
6063
|
/**
|
|
4688
|
-
* Restarts a
|
|
6064
|
+
* Restarts a workstation.
|
|
4689
6065
|
*
|
|
4690
6066
|
* @param request - RestartWuyingServerRequest
|
|
4691
6067
|
* @returns RestartWuyingServerResponse
|
|
@@ -4913,6 +6289,102 @@ export default class Client extends OpenApi {
|
|
|
4913
6289
|
return await this.tagCloudResourcesWithOptions(request, runtime);
|
|
4914
6290
|
}
|
|
4915
6291
|
|
|
6292
|
+
/**
|
|
6293
|
+
* Creates and binds tags to specified China Office (Chinese: Wuying) delivery groups in compliance with Alibaba Cloud tag specifications. If a tag key already exists on a resource, the tag value is updated to the value specified in the current request. Currently, only delivery group (`APPINSTANCEGROUP`) resource types are supported.
|
|
6294
|
+
*
|
|
6295
|
+
* @remarks
|
|
6296
|
+
* ## Before you begin
|
|
6297
|
+
* When you use a RAM user or Security Token Service (STS) credential to call this operation, you must have the `appstreaming:TagResources` permission.
|
|
6298
|
+
* The resources to which you want to bind tags must belong to the current Alibaba Cloud account. **This operation currently supports only delivery group resources.** You can set `ResourceType` only to `APPINSTANCEGROUP`. You can call [ListAppInstanceGroup](~~ListAppInstanceGroup~~) to obtain delivery group IDs.
|
|
6299
|
+
* ## Tag rules
|
|
6300
|
+
* - In a single request, you can bind up to **20 tags** to up to **50 resources**. Duplicate resource IDs are automatically deduplicated.
|
|
6301
|
+
* - A tag key must be 1 to 128 characters in length. A tag value must be 0 to 256 characters in length. Both are case-sensitive.
|
|
6302
|
+
* - A tag key cannot start with `aliyun` or `acs:` (case-insensitive). Neither tag keys nor tag values can contain `http://` or `https://`.
|
|
6303
|
+
* - Tag keys in the same request must be unique. Otherwise, the error code `InvalidTag.Duplicated` is returned.
|
|
6304
|
+
* - Each tag key on a resource can correspond to only one tag value. If the tag key already exists on the resource, the tag value is updated to the new value.
|
|
6305
|
+
* - A maximum of 20 custom tags can be bound to a single resource. If this limit is exceeded, the error code `ResourceTag.CustomTagCountExceed` is returned.
|
|
6306
|
+
* ## Results
|
|
6307
|
+
* - **If any specified delivery group does not exist or does not belong to the current account, the entire request fails.** The error code `InvalidAppInstanceGroup.NotFound` is returned, and no tags are bound to any resource.
|
|
6308
|
+
* - If the binding succeeds, the response contains only `RequestId` and does not return tag details.
|
|
6309
|
+
* - If multiple resources are specified and only some of them fail to be bound, the operation still returns a success response without failure details. Call `ListTagResources` to verify the binding results. If only one resource is specified and the binding fails, the operation returns the corresponding error code.
|
|
6310
|
+
* ## Call sequence
|
|
6311
|
+
* 1. Call [ListAppInstanceGroup](~~ListAppInstanceGroup~~) to obtain the IDs of the delivery groups to which you want to add tags.
|
|
6312
|
+
* 2. Call this operation with `ResourceType=APPINSTANCEGROUP`, `ResourceId.N`, and `Tag.N.Key`/`Tag.N.Value`.
|
|
6313
|
+
* 3. To view the tags bound to resources, call `ListTagResources`. To unbind tags, call `UntagResources`.
|
|
6314
|
+
* The masked identifiers in the examples are used to demonstrate the format. Replace them with your actual identifiers when you call the operation.
|
|
6315
|
+
*
|
|
6316
|
+
* @param request - TagResourcesRequest
|
|
6317
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
6318
|
+
* @returns TagResourcesResponse
|
|
6319
|
+
*/
|
|
6320
|
+
async tagResourcesWithOptions(request: $_model.TagResourcesRequest, runtime: $dara.RuntimeOptions): Promise<$_model.TagResourcesResponse> {
|
|
6321
|
+
request.validate();
|
|
6322
|
+
let body : {[key: string ]: any} = { };
|
|
6323
|
+
if (!$dara.isNull(request.regionId)) {
|
|
6324
|
+
body["RegionId"] = request.regionId;
|
|
6325
|
+
}
|
|
6326
|
+
|
|
6327
|
+
if (!$dara.isNull(request.resourceId)) {
|
|
6328
|
+
body["ResourceId"] = request.resourceId;
|
|
6329
|
+
}
|
|
6330
|
+
|
|
6331
|
+
if (!$dara.isNull(request.resourceType)) {
|
|
6332
|
+
body["ResourceType"] = request.resourceType;
|
|
6333
|
+
}
|
|
6334
|
+
|
|
6335
|
+
if (!$dara.isNull(request.tag)) {
|
|
6336
|
+
body["Tag"] = request.tag;
|
|
6337
|
+
}
|
|
6338
|
+
|
|
6339
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
6340
|
+
body: OpenApiUtil.parseToMap(body),
|
|
6341
|
+
});
|
|
6342
|
+
let params = new $OpenApiUtil.Params({
|
|
6343
|
+
action: "TagResources",
|
|
6344
|
+
version: "2021-09-01",
|
|
6345
|
+
protocol: "HTTPS",
|
|
6346
|
+
pathname: "/",
|
|
6347
|
+
method: "POST",
|
|
6348
|
+
authType: "AK",
|
|
6349
|
+
style: "RPC",
|
|
6350
|
+
reqBodyType: "formData",
|
|
6351
|
+
bodyType: "json",
|
|
6352
|
+
});
|
|
6353
|
+
return $dara.cast<$_model.TagResourcesResponse>(await this.callApi(params, req, runtime), new $_model.TagResourcesResponse({}));
|
|
6354
|
+
}
|
|
6355
|
+
|
|
6356
|
+
/**
|
|
6357
|
+
* Creates and binds tags to specified China Office (Chinese: Wuying) delivery groups in compliance with Alibaba Cloud tag specifications. If a tag key already exists on a resource, the tag value is updated to the value specified in the current request. Currently, only delivery group (`APPINSTANCEGROUP`) resource types are supported.
|
|
6358
|
+
*
|
|
6359
|
+
* @remarks
|
|
6360
|
+
* ## Before you begin
|
|
6361
|
+
* When you use a RAM user or Security Token Service (STS) credential to call this operation, you must have the `appstreaming:TagResources` permission.
|
|
6362
|
+
* The resources to which you want to bind tags must belong to the current Alibaba Cloud account. **This operation currently supports only delivery group resources.** You can set `ResourceType` only to `APPINSTANCEGROUP`. You can call [ListAppInstanceGroup](~~ListAppInstanceGroup~~) to obtain delivery group IDs.
|
|
6363
|
+
* ## Tag rules
|
|
6364
|
+
* - In a single request, you can bind up to **20 tags** to up to **50 resources**. Duplicate resource IDs are automatically deduplicated.
|
|
6365
|
+
* - A tag key must be 1 to 128 characters in length. A tag value must be 0 to 256 characters in length. Both are case-sensitive.
|
|
6366
|
+
* - A tag key cannot start with `aliyun` or `acs:` (case-insensitive). Neither tag keys nor tag values can contain `http://` or `https://`.
|
|
6367
|
+
* - Tag keys in the same request must be unique. Otherwise, the error code `InvalidTag.Duplicated` is returned.
|
|
6368
|
+
* - Each tag key on a resource can correspond to only one tag value. If the tag key already exists on the resource, the tag value is updated to the new value.
|
|
6369
|
+
* - A maximum of 20 custom tags can be bound to a single resource. If this limit is exceeded, the error code `ResourceTag.CustomTagCountExceed` is returned.
|
|
6370
|
+
* ## Results
|
|
6371
|
+
* - **If any specified delivery group does not exist or does not belong to the current account, the entire request fails.** The error code `InvalidAppInstanceGroup.NotFound` is returned, and no tags are bound to any resource.
|
|
6372
|
+
* - If the binding succeeds, the response contains only `RequestId` and does not return tag details.
|
|
6373
|
+
* - If multiple resources are specified and only some of them fail to be bound, the operation still returns a success response without failure details. Call `ListTagResources` to verify the binding results. If only one resource is specified and the binding fails, the operation returns the corresponding error code.
|
|
6374
|
+
* ## Call sequence
|
|
6375
|
+
* 1. Call [ListAppInstanceGroup](~~ListAppInstanceGroup~~) to obtain the IDs of the delivery groups to which you want to add tags.
|
|
6376
|
+
* 2. Call this operation with `ResourceType=APPINSTANCEGROUP`, `ResourceId.N`, and `Tag.N.Key`/`Tag.N.Value`.
|
|
6377
|
+
* 3. To view the tags bound to resources, call `ListTagResources`. To unbind tags, call `UntagResources`.
|
|
6378
|
+
* The masked identifiers in the examples are used to demonstrate the format. Replace them with your actual identifiers when you call the operation.
|
|
6379
|
+
*
|
|
6380
|
+
* @param request - TagResourcesRequest
|
|
6381
|
+
* @returns TagResourcesResponse
|
|
6382
|
+
*/
|
|
6383
|
+
async tagResources(request: $_model.TagResourcesRequest): Promise<$_model.TagResourcesResponse> {
|
|
6384
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
6385
|
+
return await this.tagResourcesWithOptions(request, runtime);
|
|
6386
|
+
}
|
|
6387
|
+
|
|
4916
6388
|
/**
|
|
4917
6389
|
* Unbinds secondary private IP addresses from a development host.
|
|
4918
6390
|
*
|
|
@@ -5067,12 +6539,113 @@ export default class Client extends OpenApi {
|
|
|
5067
6539
|
return await this.untagCloudResourcesWithOptions(request, runtime);
|
|
5068
6540
|
}
|
|
5069
6541
|
|
|
6542
|
+
/**
|
|
6543
|
+
* Unbinds tags from specified Wuying delivery groups in compliance with Alibaba Cloud tagging standards. You can unbind specific tags by tag key or unbind all custom tags from a resource at once by setting `All=true` without specifying tag keys. Currently, only the delivery group (`APPINSTANCEGROUP`) resource type is supported.
|
|
6544
|
+
*
|
|
6545
|
+
* @remarks
|
|
6546
|
+
* ## Before you begin
|
|
6547
|
+
* When calling this operation with a RAM user or STS credential, the `appstreaming:UntagResources` permission is required.
|
|
6548
|
+
* The resources from which you want to unbind tags must belong to the current Alibaba Cloud account. **This operation currently supports only delivery group resources.** You can set `ResourceType` only to `APPINSTANCEGROUP`. You can obtain delivery group IDs by calling [ListAppInstanceGroup](~~ListAppInstanceGroup~~), and query tags that are bound to a resource by calling [ListTagResources](~~ListTagResources~~).
|
|
6549
|
+
* ## Parameter description
|
|
6550
|
+
* - You can unbind tags from up to **50 resources** in a single request. Duplicate resource IDs are automatically deduplicated.
|
|
6551
|
+
* - **Specify at least one of `TagKey.N` and `All`.** If neither is specified, or if `TagKey.N` is not specified and `All` is set to `false`, the error code `InvalidParameter.TagKeyListOrAll` is returned.
|
|
6552
|
+
* - If `TagKey.N` is specified: only the tags that correspond to the specified tag keys are unbound. You can specify up to 20 tag keys at a time. The `All` parameter is ignored.
|
|
6553
|
+
* - If `TagKey.N` is not specified and `All=true`: all custom tags on the resource are unbound, including Wuying system tags that start with `System/` and were attached by calling [TagResources](~~TagResources~~).
|
|
6554
|
+
* - If a specified tag key does not exist on the resource, the tag key is skipped and no error is returned.
|
|
6555
|
+
* - Tag keys that start with `System/` are Wuying system tags. Only `System/Scheduler/GRAYSCALE` and `System/Scheduler/STOP_NEW_USER_CONNECTION` are supported. If you specify other tag keys that start with `System/`, the error code `InvalidTagPolicy.KeyInvalid` or `InvalidTag.SystemKeyNotAllow` is returned.
|
|
6556
|
+
* ## Execution results
|
|
6557
|
+
* - **If any specified delivery group does not exist or does not belong to the current account, the entire request fails** with the error code `InvalidAppInstanceGroup.NotFound`, and no tags are unbound from any resource.
|
|
6558
|
+
* - On success, the response contains only `RequestId` and does not return tag details.
|
|
6559
|
+
* - When multiple resources are specified and only some fail to have tags unbound, the operation still returns success and the response does not contain failure details. Call [ListTagResources](~~ListTagResources~~) to verify the unbinding results. When only one resource is specified and the unbinding fails, the operation returns the corresponding error code directly.
|
|
6560
|
+
* ## Call sequence
|
|
6561
|
+
* 1. Call [ListAppInstanceGroup](~~ListAppInstanceGroup~~) to obtain delivery group IDs. To check which tag keys are bound to a resource, call [ListTagResources](~~ListTagResources~~).
|
|
6562
|
+
* 2. Call this operation with `ResourceType=APPINSTANCEGROUP` and `ResourceId.N`, and specify `TagKey.N` or `All=true` to indicate the tags to unbind.
|
|
6563
|
+
* 3. To rebind tags, call [TagResources](~~TagResources~~).
|
|
6564
|
+
* The masked identifiers in the examples are for format demonstration purposes only. Replace them with your actual identifiers when making calls.
|
|
6565
|
+
*
|
|
6566
|
+
* @param request - UntagResourcesRequest
|
|
6567
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
6568
|
+
* @returns UntagResourcesResponse
|
|
6569
|
+
*/
|
|
6570
|
+
async untagResourcesWithOptions(request: $_model.UntagResourcesRequest, runtime: $dara.RuntimeOptions): Promise<$_model.UntagResourcesResponse> {
|
|
6571
|
+
request.validate();
|
|
6572
|
+
let body : {[key: string ]: any} = { };
|
|
6573
|
+
if (!$dara.isNull(request.all)) {
|
|
6574
|
+
body["All"] = request.all;
|
|
6575
|
+
}
|
|
6576
|
+
|
|
6577
|
+
if (!$dara.isNull(request.regionId)) {
|
|
6578
|
+
body["RegionId"] = request.regionId;
|
|
6579
|
+
}
|
|
6580
|
+
|
|
6581
|
+
if (!$dara.isNull(request.resourceId)) {
|
|
6582
|
+
body["ResourceId"] = request.resourceId;
|
|
6583
|
+
}
|
|
6584
|
+
|
|
6585
|
+
if (!$dara.isNull(request.resourceType)) {
|
|
6586
|
+
body["ResourceType"] = request.resourceType;
|
|
6587
|
+
}
|
|
6588
|
+
|
|
6589
|
+
if (!$dara.isNull(request.tagKey)) {
|
|
6590
|
+
body["TagKey"] = request.tagKey;
|
|
6591
|
+
}
|
|
6592
|
+
|
|
6593
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
6594
|
+
body: OpenApiUtil.parseToMap(body),
|
|
6595
|
+
});
|
|
6596
|
+
let params = new $OpenApiUtil.Params({
|
|
6597
|
+
action: "UntagResources",
|
|
6598
|
+
version: "2021-09-01",
|
|
6599
|
+
protocol: "HTTPS",
|
|
6600
|
+
pathname: "/",
|
|
6601
|
+
method: "POST",
|
|
6602
|
+
authType: "AK",
|
|
6603
|
+
style: "RPC",
|
|
6604
|
+
reqBodyType: "formData",
|
|
6605
|
+
bodyType: "json",
|
|
6606
|
+
});
|
|
6607
|
+
return $dara.cast<$_model.UntagResourcesResponse>(await this.callApi(params, req, runtime), new $_model.UntagResourcesResponse({}));
|
|
6608
|
+
}
|
|
6609
|
+
|
|
6610
|
+
/**
|
|
6611
|
+
* Unbinds tags from specified Wuying delivery groups in compliance with Alibaba Cloud tagging standards. You can unbind specific tags by tag key or unbind all custom tags from a resource at once by setting `All=true` without specifying tag keys. Currently, only the delivery group (`APPINSTANCEGROUP`) resource type is supported.
|
|
6612
|
+
*
|
|
6613
|
+
* @remarks
|
|
6614
|
+
* ## Before you begin
|
|
6615
|
+
* When calling this operation with a RAM user or STS credential, the `appstreaming:UntagResources` permission is required.
|
|
6616
|
+
* The resources from which you want to unbind tags must belong to the current Alibaba Cloud account. **This operation currently supports only delivery group resources.** You can set `ResourceType` only to `APPINSTANCEGROUP`. You can obtain delivery group IDs by calling [ListAppInstanceGroup](~~ListAppInstanceGroup~~), and query tags that are bound to a resource by calling [ListTagResources](~~ListTagResources~~).
|
|
6617
|
+
* ## Parameter description
|
|
6618
|
+
* - You can unbind tags from up to **50 resources** in a single request. Duplicate resource IDs are automatically deduplicated.
|
|
6619
|
+
* - **Specify at least one of `TagKey.N` and `All`.** If neither is specified, or if `TagKey.N` is not specified and `All` is set to `false`, the error code `InvalidParameter.TagKeyListOrAll` is returned.
|
|
6620
|
+
* - If `TagKey.N` is specified: only the tags that correspond to the specified tag keys are unbound. You can specify up to 20 tag keys at a time. The `All` parameter is ignored.
|
|
6621
|
+
* - If `TagKey.N` is not specified and `All=true`: all custom tags on the resource are unbound, including Wuying system tags that start with `System/` and were attached by calling [TagResources](~~TagResources~~).
|
|
6622
|
+
* - If a specified tag key does not exist on the resource, the tag key is skipped and no error is returned.
|
|
6623
|
+
* - Tag keys that start with `System/` are Wuying system tags. Only `System/Scheduler/GRAYSCALE` and `System/Scheduler/STOP_NEW_USER_CONNECTION` are supported. If you specify other tag keys that start with `System/`, the error code `InvalidTagPolicy.KeyInvalid` or `InvalidTag.SystemKeyNotAllow` is returned.
|
|
6624
|
+
* ## Execution results
|
|
6625
|
+
* - **If any specified delivery group does not exist or does not belong to the current account, the entire request fails** with the error code `InvalidAppInstanceGroup.NotFound`, and no tags are unbound from any resource.
|
|
6626
|
+
* - On success, the response contains only `RequestId` and does not return tag details.
|
|
6627
|
+
* - When multiple resources are specified and only some fail to have tags unbound, the operation still returns success and the response does not contain failure details. Call [ListTagResources](~~ListTagResources~~) to verify the unbinding results. When only one resource is specified and the unbinding fails, the operation returns the corresponding error code directly.
|
|
6628
|
+
* ## Call sequence
|
|
6629
|
+
* 1. Call [ListAppInstanceGroup](~~ListAppInstanceGroup~~) to obtain delivery group IDs. To check which tag keys are bound to a resource, call [ListTagResources](~~ListTagResources~~).
|
|
6630
|
+
* 2. Call this operation with `ResourceType=APPINSTANCEGROUP` and `ResourceId.N`, and specify `TagKey.N` or `All=true` to indicate the tags to unbind.
|
|
6631
|
+
* 3. To rebind tags, call [TagResources](~~TagResources~~).
|
|
6632
|
+
* The masked identifiers in the examples are for format demonstration purposes only. Replace them with your actual identifiers when making calls.
|
|
6633
|
+
*
|
|
6634
|
+
* @param request - UntagResourcesRequest
|
|
6635
|
+
* @returns UntagResourcesResponse
|
|
6636
|
+
*/
|
|
6637
|
+
async untagResources(request: $_model.UntagResourcesRequest): Promise<$_model.UntagResourcesResponse> {
|
|
6638
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
6639
|
+
return await this.untagResourcesWithOptions(request, runtime);
|
|
6640
|
+
}
|
|
6641
|
+
|
|
5070
6642
|
/**
|
|
5071
6643
|
* Updates the image of a delivery group.
|
|
5072
6644
|
*
|
|
5073
6645
|
* @remarks
|
|
5074
|
-
* >Warning: After the image update starts, sessions of end users accessing cloud applications will be disconnected. Proceed with caution to avoid data loss for end users.
|
|
5075
|
-
* >
|
|
6646
|
+
* >Warning: After the image update starts, sessions of end users who are accessing cloud applications will be disconnected. Proceed with caution to avoid data loss for end users.
|
|
6647
|
+
* > Before calling this API, the delivery group must be in the PUBLISHED, DEPLOYED, or MAINTAIN_FAILED state. You can call GetAppInstanceGroup to query the current state of the delivery group.
|
|
6648
|
+
* > After the update is published, you typically need to wait about 2 minutes for the changes to take effect on the client.
|
|
5076
6649
|
*
|
|
5077
6650
|
* @param request - UpdateAppInstanceGroupImageRequest
|
|
5078
6651
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -5118,8 +6691,9 @@ export default class Client extends OpenApi {
|
|
|
5118
6691
|
* Updates the image of a delivery group.
|
|
5119
6692
|
*
|
|
5120
6693
|
* @remarks
|
|
5121
|
-
* >Warning: After the image update starts, sessions of end users accessing cloud applications will be disconnected. Proceed with caution to avoid data loss for end users.
|
|
5122
|
-
* >
|
|
6694
|
+
* >Warning: After the image update starts, sessions of end users who are accessing cloud applications will be disconnected. Proceed with caution to avoid data loss for end users.
|
|
6695
|
+
* > Before calling this API, the delivery group must be in the PUBLISHED, DEPLOYED, or MAINTAIN_FAILED state. You can call GetAppInstanceGroup to query the current state of the delivery group.
|
|
6696
|
+
* > After the update is published, you typically need to wait about 2 minutes for the changes to take effect on the client.
|
|
5123
6697
|
*
|
|
5124
6698
|
* @param request - UpdateAppInstanceGroupImageRequest
|
|
5125
6699
|
* @returns UpdateAppInstanceGroupImageResponse
|
|
@@ -5207,8 +6781,8 @@ export default class Client extends OpenApi {
|
|
|
5207
6781
|
* Updates a model template.
|
|
5208
6782
|
*
|
|
5209
6783
|
* @remarks
|
|
5210
|
-
* You can update a model group that has been created in the
|
|
5211
|
-
* Before
|
|
6784
|
+
* You can update a model group that has been created in the Wuying Agent Management Center, including the group name, description, and model configuration information. You can modify the default model of a model group by updating the Config field. The updated configuration automatically takes effect on associated cloud desktops.
|
|
6785
|
+
* Before you call this operation, make sure that you are familiar with the operations and usage of the Wuying Agent Management Center.
|
|
5212
6786
|
*
|
|
5213
6787
|
* @param request - UpdateModelTemplateRequest
|
|
5214
6788
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -5258,8 +6832,8 @@ export default class Client extends OpenApi {
|
|
|
5258
6832
|
* Updates a model template.
|
|
5259
6833
|
*
|
|
5260
6834
|
* @remarks
|
|
5261
|
-
* You can update a model group that has been created in the
|
|
5262
|
-
* Before
|
|
6835
|
+
* You can update a model group that has been created in the Wuying Agent Management Center, including the group name, description, and model configuration information. You can modify the default model of a model group by updating the Config field. The updated configuration automatically takes effect on associated cloud desktops.
|
|
6836
|
+
* Before you call this operation, make sure that you are familiar with the operations and usage of the Wuying Agent Management Center.
|
|
5263
6837
|
*
|
|
5264
6838
|
* @param request - UpdateModelTemplateRequest
|
|
5265
6839
|
* @returns UpdateModelTemplateResponse
|