@alicloud/appstream-center20210901 5.8.0 → 5.10.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 +629 -174
- package/dist/client.js +976 -174
- package/dist/client.js.map +1 -1
- package/dist/models/AssignWuyingServerPrivateAddressesResponseBody.d.ts +1 -1
- package/dist/models/AuthorizeUsersForAppRequest.d.ts +13 -13
- package/dist/models/AuthorizeUsersForAppShrinkRequest.d.ts +12 -12
- package/dist/models/BatchCreateLlmTemplatesRequest.d.ts +6 -6
- package/dist/models/BatchCreateLlmTemplatesResponseBody.d.ts +5 -5
- package/dist/models/ConfigResourceGroupModelTemplateRequest.d.ts +2 -2
- package/dist/models/ConfigRuntimeChannelRequest.d.ts +11 -11
- package/dist/models/ConfigRuntimeModelTemplateRequest.d.ts +2 -2
- package/dist/models/ConfigRuntimeModelTemplateResponseBody.d.ts +5 -5
- package/dist/models/CreateBrowserInstanceGroupRequest.d.ts +154 -172
- package/dist/models/CreateBrowserInstanceGroupRequest.js +2 -0
- package/dist/models/CreateBrowserInstanceGroupRequest.js.map +1 -1
- package/dist/models/CreateBrowserInstanceGroupResponseBody.d.ts +4 -4
- package/dist/models/CreateBrowserInstanceGroupShrinkRequest.d.ts +36 -44
- package/dist/models/CreateBrowserInstanceGroupShrinkRequest.js.map +1 -1
- package/dist/models/CreateImageFromAppInstanceGroupRequest.d.ts +1 -1
- package/dist/models/CreateModelProviderTemplateRequest.d.ts +12 -12
- package/dist/models/DeleteAppInstanceGroupRequest.d.ts +1 -1
- package/dist/models/DeleteAppInstancesRequest.d.ts +2 -2
- package/dist/models/DeleteAppInstancesResponseBody.d.ts +1 -1
- package/dist/models/DeleteImageResponseBody.d.ts +3 -4
- package/dist/models/DeleteImageResponseBody.js.map +1 -1
- package/dist/models/DeleteModelTemplateRequest.d.ts +1 -1
- package/dist/models/DeleteWuyingServerRequest.d.ts +1 -1
- package/dist/models/GetBrowserInstanceGroupRequest.d.ts +1 -1
- package/dist/models/GetBrowserInstanceGroupResponseBody.d.ts +159 -158
- package/dist/models/GetBrowserInstanceGroupResponseBody.js +2 -0
- package/dist/models/GetBrowserInstanceGroupResponseBody.js.map +1 -1
- package/dist/models/GetRuntimeModelConfigRequest.d.ts +17 -5
- package/dist/models/GetRuntimeModelConfigRequest.js +2 -0
- package/dist/models/GetRuntimeModelConfigRequest.js.map +1 -1
- package/dist/models/GetRuntimeModelConfigResponseBody.d.ts +19 -19
- 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/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/ListAuthorizedUsersRequest.d.ts +29 -16
- package/dist/models/ListAuthorizedUsersRequest.js.map +1 -1
- package/dist/models/ListAuthorizedUsersResponseBody.d.ts +29 -24
- package/dist/models/ListAuthorizedUsersResponseBody.js.map +1 -1
- package/dist/models/ListBrowserInstanceGroupRequest.d.ts +15 -15
- package/dist/models/ListBrowserInstanceGroupResponseBody.d.ts +82 -76
- package/dist/models/ListBrowserInstanceGroupResponseBody.js +2 -0
- package/dist/models/ListBrowserInstanceGroupResponseBody.js.map +1 -1
- package/dist/models/ListLlmTemplatesRequest.d.ts +20 -9
- package/dist/models/ListLlmTemplatesRequest.js +2 -0
- package/dist/models/ListLlmTemplatesRequest.js.map +1 -1
- package/dist/models/ListLlmTemplatesResponseBody.d.ts +14 -14
- package/dist/models/ListLlmTemplatesShrinkRequest.d.ts +20 -9
- package/dist/models/ListLlmTemplatesShrinkRequest.js +2 -0
- package/dist/models/ListLlmTemplatesShrinkRequest.js.map +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/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/ModifyBrowserInstanceGroupRequest.d.ts +40 -32
- package/dist/models/ModifyBrowserInstanceGroupRequest.js +2 -0
- package/dist/models/ModifyBrowserInstanceGroupRequest.js.map +1 -1
- package/dist/models/ModifyBrowserInstanceGroupShrinkRequest.d.ts +4 -4
- package/dist/models/ModifyShareImageRequest.d.ts +30 -0
- package/dist/models/ModifyShareImageRequest.js +72 -0
- package/dist/models/ModifyShareImageRequest.js.map +1 -0
- package/dist/models/ModifyShareImageResponse.d.ts +19 -0
- package/dist/models/ModifyShareImageResponse.js +69 -0
- package/dist/models/ModifyShareImageResponse.js.map +1 -0
- package/dist/models/ModifyShareImageResponseBody.d.ts +38 -0
- package/dist/models/ModifyShareImageResponseBody.js +66 -0
- package/dist/models/ModifyShareImageResponseBody.js.map +1 -0
- package/dist/models/RenewAppInstanceGroupRequest.d.ts +5 -5
- package/dist/models/RenewAppInstanceGroupResponseBody.d.ts +2 -2
- package/dist/models/RenewAppInstanceGroupShrinkRequest.d.ts +5 -5
- package/dist/models/TagCloudResourcesRequest.d.ts +7 -7
- package/dist/models/TagCloudResourcesResponseBody.d.ts +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 +76 -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/model.d.ts +36 -0
- package/dist/models/model.js +80 -8
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +1049 -174
- package/src/models/AssignWuyingServerPrivateAddressesResponseBody.ts +1 -1
- package/src/models/AuthorizeUsersForAppRequest.ts +13 -13
- package/src/models/AuthorizeUsersForAppShrinkRequest.ts +12 -12
- package/src/models/BatchCreateLlmTemplatesRequest.ts +6 -6
- package/src/models/BatchCreateLlmTemplatesResponseBody.ts +5 -5
- package/src/models/ConfigResourceGroupModelTemplateRequest.ts +2 -2
- package/src/models/ConfigRuntimeChannelRequest.ts +11 -11
- package/src/models/ConfigRuntimeModelTemplateRequest.ts +2 -2
- package/src/models/ConfigRuntimeModelTemplateResponseBody.ts +5 -5
- package/src/models/CreateBrowserInstanceGroupRequest.ts +156 -172
- package/src/models/CreateBrowserInstanceGroupResponseBody.ts +4 -4
- package/src/models/CreateBrowserInstanceGroupShrinkRequest.ts +36 -44
- package/src/models/CreateImageFromAppInstanceGroupRequest.ts +1 -1
- package/src/models/CreateModelProviderTemplateRequest.ts +12 -12
- package/src/models/DeleteAppInstanceGroupRequest.ts +1 -1
- package/src/models/DeleteAppInstancesRequest.ts +2 -2
- package/src/models/DeleteAppInstancesResponseBody.ts +1 -1
- package/src/models/DeleteImageResponseBody.ts +3 -4
- package/src/models/DeleteModelTemplateRequest.ts +1 -1
- package/src/models/DeleteWuyingServerRequest.ts +1 -1
- package/src/models/GetBrowserInstanceGroupRequest.ts +1 -1
- package/src/models/GetBrowserInstanceGroupResponseBody.ts +161 -158
- package/src/models/GetRuntimeModelConfigRequest.ts +19 -5
- package/src/models/GetRuntimeModelConfigResponseBody.ts +19 -19
- package/src/models/ListAppsByAppInstanceGroupIdRequest.ts +80 -0
- package/src/models/ListAppsByAppInstanceGroupIdResponse.ts +40 -0
- package/src/models/ListAppsByAppInstanceGroupIdResponseBody.ts +154 -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/ListAuthorizedUsersRequest.ts +29 -16
- package/src/models/ListAuthorizedUsersResponseBody.ts +29 -24
- package/src/models/ListBrowserInstanceGroupRequest.ts +15 -15
- package/src/models/ListBrowserInstanceGroupResponseBody.ts +84 -76
- package/src/models/ListLlmTemplatesRequest.ts +22 -9
- package/src/models/ListLlmTemplatesResponseBody.ts +14 -14
- package/src/models/ListLlmTemplatesShrinkRequest.ts +22 -9
- 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/ListZonesRequest.ts +79 -0
- package/src/models/ListZonesResponse.ts +40 -0
- package/src/models/ListZonesResponseBody.ts +74 -0
- package/src/models/ModifyBrowserInstanceGroupRequest.ts +42 -32
- package/src/models/ModifyBrowserInstanceGroupShrinkRequest.ts +4 -4
- package/src/models/ModifyShareImageRequest.ts +57 -0
- package/src/models/ModifyShareImageResponse.ts +40 -0
- package/src/models/ModifyShareImageResponseBody.ts +59 -0
- package/src/models/RenewAppInstanceGroupRequest.ts +5 -5
- package/src/models/RenewAppInstanceGroupResponseBody.ts +2 -2
- package/src/models/RenewAppInstanceGroupShrinkRequest.ts +5 -5
- package/src/models/TagCloudResourcesRequest.ts +7 -7
- package/src/models/TagCloudResourcesResponseBody.ts +1 -1
- 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 +103 -0
- package/src/models/UntagResourcesResponse.ts +40 -0
- package/src/models/UntagResourcesResponseBody.ts +34 -0
- package/src/models/model.ts +36 -0
package/dist/client.js
CHANGED
|
@@ -234,24 +234,24 @@ class Client extends openapi_core_1.default {
|
|
|
234
234
|
return await this.authorizeInstanceGroupWithOptions(request, runtime);
|
|
235
235
|
}
|
|
236
236
|
/**
|
|
237
|
-
* Adds or removes authorized users for a specified application deployed in
|
|
237
|
+
* Adds or removes authorized users for a specified application deployed in an app instance group. Only authorized users can access the application.
|
|
238
238
|
*
|
|
239
239
|
* @remarks
|
|
240
240
|
* ## Operation description
|
|
241
|
-
* This operation manages user authorization for
|
|
241
|
+
* This operation manages user authorization for an app instance group at the application level. The authorization result applies only to the application specified by AppId and does not affect the authorization relationships of other applications in the app instance group. To authorize users for the entire app instance group, call the [AuthorizeInstanceGroup](~~AuthorizeInstanceGroup~~) operation.
|
|
242
242
|
* ## Before you begin
|
|
243
|
-
* - The
|
|
244
|
-
* - The
|
|
245
|
-
* - If the workspace to which the
|
|
246
|
-
* - If the
|
|
243
|
+
* - The app instance group is created, and **the application specified by AppId is deployed in the image used by the app instance group**. Otherwise, the error code `InvalidAppId.NotFound` is returned.
|
|
244
|
+
* - The app instance group **is not added to an active app instance group set**. App instance groups added to a set cannot be authorized individually and must be authorized through the set. Otherwise, the error code `InvalidAppInstanceGroup.AuthorizeBlockedBySet` is returned.
|
|
245
|
+
* - If the workspace to which the app instance group belongs is an AD workspace, **UserMeta must be specified**, the value of UserMeta.Type must be ad, and the value of UserMeta.AdDomain must be the same as the AD domain bound to the workspace.
|
|
246
|
+
* - If the app instance group is already authorized through a user group and mixed authorization of users and user groups is not supported, you cannot authorize individual users. Otherwise, the error code `AuthAppInstanceGroup.MixNotSupported` is returned.
|
|
247
247
|
* ## Parameter description
|
|
248
|
-
* - **
|
|
249
|
-
* - When adding
|
|
248
|
+
* - **You must specify at least one of AuthorizeUserIds and UnAuthorizeUserIds**, or specify both. If both are empty, the system does not change any authorization relationships when you invoke this operation.
|
|
249
|
+
* - When adding authorization, the sum of the current number of authorized users for the application and the number of newly added users cannot exceed the authorized user quota for the application. If the quota is exceeded, the error code `ExceedAppAuthUserQuota` is returned. Removing authorization is not subject to the quota limit.
|
|
250
250
|
* ## Call sequence
|
|
251
|
-
* 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
|
|
251
|
+
* 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 app instance group ID (AppInstanceGroupId) and the application IDs of the applications deployed in the app instance group (AppId in the Apps list).
|
|
252
252
|
* 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.
|
|
253
253
|
* 3. Call this operation to complete the authorization change.
|
|
254
|
-
* > After the authorization is changed, the selected users receive a notification email. It
|
|
254
|
+
* > After the authorization is changed, the selected users will receive a notification email. It generally takes about 2 minutes for the changes to take effect on the terminal.
|
|
255
255
|
*
|
|
256
256
|
* @param tmpReq - AuthorizeUsersForAppRequest
|
|
257
257
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -302,24 +302,24 @@ class Client extends openapi_core_1.default {
|
|
|
302
302
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.AuthorizeUsersForAppResponse({}));
|
|
303
303
|
}
|
|
304
304
|
/**
|
|
305
|
-
* Adds or removes authorized users for a specified application deployed in
|
|
305
|
+
* Adds or removes authorized users for a specified application deployed in an app instance group. Only authorized users can access the application.
|
|
306
306
|
*
|
|
307
307
|
* @remarks
|
|
308
308
|
* ## Operation description
|
|
309
|
-
* This operation manages user authorization for
|
|
309
|
+
* This operation manages user authorization for an app instance group at the application level. The authorization result applies only to the application specified by AppId and does not affect the authorization relationships of other applications in the app instance group. To authorize users for the entire app instance group, call the [AuthorizeInstanceGroup](~~AuthorizeInstanceGroup~~) operation.
|
|
310
310
|
* ## Before you begin
|
|
311
|
-
* - The
|
|
312
|
-
* - The
|
|
313
|
-
* - If the workspace to which the
|
|
314
|
-
* - If the
|
|
311
|
+
* - The app instance group is created, and **the application specified by AppId is deployed in the image used by the app instance group**. Otherwise, the error code `InvalidAppId.NotFound` is returned.
|
|
312
|
+
* - The app instance group **is not added to an active app instance group set**. App instance groups added to a set cannot be authorized individually and must be authorized through the set. Otherwise, the error code `InvalidAppInstanceGroup.AuthorizeBlockedBySet` is returned.
|
|
313
|
+
* - If the workspace to which the app instance group belongs is an AD workspace, **UserMeta must be specified**, the value of UserMeta.Type must be ad, and the value of UserMeta.AdDomain must be the same as the AD domain bound to the workspace.
|
|
314
|
+
* - If the app instance group is already authorized through a user group and mixed authorization of users and user groups is not supported, you cannot authorize individual users. Otherwise, the error code `AuthAppInstanceGroup.MixNotSupported` is returned.
|
|
315
315
|
* ## Parameter description
|
|
316
|
-
* - **
|
|
317
|
-
* - When adding
|
|
316
|
+
* - **You must specify at least one of AuthorizeUserIds and UnAuthorizeUserIds**, or specify both. If both are empty, the system does not change any authorization relationships when you invoke this operation.
|
|
317
|
+
* - When adding authorization, the sum of the current number of authorized users for the application and the number of newly added users cannot exceed the authorized user quota for the application. If the quota is exceeded, the error code `ExceedAppAuthUserQuota` is returned. Removing authorization is not subject to the quota limit.
|
|
318
318
|
* ## Call sequence
|
|
319
|
-
* 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
|
|
319
|
+
* 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 app instance group ID (AppInstanceGroupId) and the application IDs of the applications deployed in the app instance group (AppId in the Apps list).
|
|
320
320
|
* 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.
|
|
321
321
|
* 3. Call this operation to complete the authorization change.
|
|
322
|
-
* > After the authorization is changed, the selected users receive a notification email. It
|
|
322
|
+
* > After the authorization is changed, the selected users will receive a notification email. It generally takes about 2 minutes for the changes to take effect on the terminal.
|
|
323
323
|
*
|
|
324
324
|
* @param request - AuthorizeUsersForAppRequest
|
|
325
325
|
* @returns AuthorizeUsersForAppResponse
|
|
@@ -329,11 +329,11 @@ class Client extends openapi_core_1.default {
|
|
|
329
329
|
return await this.authorizeUsersForAppWithOptions(request, runtime);
|
|
330
330
|
}
|
|
331
331
|
/**
|
|
332
|
-
* Creates LLM templates
|
|
332
|
+
* Creates multiple LLM templates.
|
|
333
333
|
*
|
|
334
334
|
* @remarks
|
|
335
|
-
* You can
|
|
336
|
-
*
|
|
335
|
+
* You can create multiple model templates under a model provider template in the Wuying Agent Management Center. You can add multiple models at a time and specify one of them as the default model. Existing models are automatically skipped to prevent duplicate model creation.
|
|
336
|
+
* Make sure that you are fully familiar with the operations and usage of the Wuying Agent Management Center before you call this operation.
|
|
337
337
|
*
|
|
338
338
|
* @param request - BatchCreateLlmTemplatesRequest
|
|
339
339
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -368,11 +368,11 @@ class Client extends openapi_core_1.default {
|
|
|
368
368
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.BatchCreateLlmTemplatesResponse({}));
|
|
369
369
|
}
|
|
370
370
|
/**
|
|
371
|
-
* Creates LLM templates
|
|
371
|
+
* Creates multiple LLM templates.
|
|
372
372
|
*
|
|
373
373
|
* @remarks
|
|
374
|
-
* You can
|
|
375
|
-
*
|
|
374
|
+
* You can create multiple model templates under a model provider template in the Wuying Agent Management Center. You can add multiple models at a time and specify one of them as the default model. Existing models are automatically skipped to prevent duplicate model creation.
|
|
375
|
+
* Make sure that you are fully familiar with the operations and usage of the Wuying Agent Management Center before you call this operation.
|
|
376
376
|
*
|
|
377
377
|
* @param request - BatchCreateLlmTemplatesRequest
|
|
378
378
|
* @returns BatchCreateLlmTemplatesResponse
|
|
@@ -385,9 +385,9 @@ class Client extends openapi_core_1.default {
|
|
|
385
385
|
* Configures the model group for a resource group.
|
|
386
386
|
*
|
|
387
387
|
* @remarks
|
|
388
|
-
* You can
|
|
389
|
-
*
|
|
390
|
-
* Make sure that you are familiar with the operations and usage of the
|
|
388
|
+
* You can authorize a model group for the resources to which agent runtimes such as JVS Computer, OpenClaw, and Hermes Agent belong in the Wuying Agent Management Center. The model group serves as the inference engine for agents in the resource group to execute tasks.
|
|
389
|
+
* If an agent runtime is configured with a model group and its resource group is also configured with a model group, the model group bound to the resource group takes effect. This means that the resource group settings take precedence over the agent runtime settings.
|
|
390
|
+
* Make sure that you are fully familiar with the operations and usage of the Wuying Agent Management Center before you call this operation.
|
|
391
391
|
*
|
|
392
392
|
* @param request - ConfigResourceGroupModelTemplateRequest
|
|
393
393
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -422,9 +422,9 @@ class Client extends openapi_core_1.default {
|
|
|
422
422
|
* Configures the model group for a resource group.
|
|
423
423
|
*
|
|
424
424
|
* @remarks
|
|
425
|
-
* You can
|
|
426
|
-
*
|
|
427
|
-
* Make sure that you are familiar with the operations and usage of the
|
|
425
|
+
* You can authorize a model group for the resources to which agent runtimes such as JVS Computer, OpenClaw, and Hermes Agent belong in the Wuying Agent Management Center. The model group serves as the inference engine for agents in the resource group to execute tasks.
|
|
426
|
+
* If an agent runtime is configured with a model group and its resource group is also configured with a model group, the model group bound to the resource group takes effect. This means that the resource group settings take precedence over the agent runtime settings.
|
|
427
|
+
* Make sure that you are fully familiar with the operations and usage of the Wuying Agent Management Center before you call this operation.
|
|
428
428
|
*
|
|
429
429
|
* @param request - ConfigResourceGroupModelTemplateRequest
|
|
430
430
|
* @returns ConfigResourceGroupModelTemplateResponse
|
|
@@ -434,11 +434,11 @@ class Client extends openapi_core_1.default {
|
|
|
434
434
|
return await this.configResourceGroupModelTemplateWithOptions(request, runtime);
|
|
435
435
|
}
|
|
436
436
|
/**
|
|
437
|
-
* Configures
|
|
437
|
+
* Configures third-party channels for agent runtimes.
|
|
438
438
|
*
|
|
439
439
|
* @remarks
|
|
440
|
-
* You can configure third-party channels for
|
|
441
|
-
*
|
|
440
|
+
* You can configure third-party channels for agent runtime resources such as JVS Computer, OpenClaw, and Hermes Agent in the Wuying Agent Management Center. These channels serve as extended agent communication methods in addition to the AgentIM channel.
|
|
441
|
+
* Make sure that you are fully familiar with the operations and usage of the Wuying Agent Management Center before you call this operation.
|
|
442
442
|
*
|
|
443
443
|
* @param request - ConfigRuntimeChannelRequest
|
|
444
444
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -488,11 +488,11 @@ class Client extends openapi_core_1.default {
|
|
|
488
488
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.ConfigRuntimeChannelResponse({}));
|
|
489
489
|
}
|
|
490
490
|
/**
|
|
491
|
-
* Configures
|
|
491
|
+
* Configures third-party channels for agent runtimes.
|
|
492
492
|
*
|
|
493
493
|
* @remarks
|
|
494
|
-
* You can configure third-party channels for
|
|
495
|
-
*
|
|
494
|
+
* You can configure third-party channels for agent runtime resources such as JVS Computer, OpenClaw, and Hermes Agent in the Wuying Agent Management Center. These channels serve as extended agent communication methods in addition to the AgentIM channel.
|
|
495
|
+
* Make sure that you are fully familiar with the operations and usage of the Wuying Agent Management Center before you call this operation.
|
|
496
496
|
*
|
|
497
497
|
* @param request - ConfigRuntimeChannelRequest
|
|
498
498
|
* @returns ConfigRuntimeChannelResponse
|
|
@@ -502,11 +502,11 @@ class Client extends openapi_core_1.default {
|
|
|
502
502
|
return await this.configRuntimeChannelWithOptions(request, runtime);
|
|
503
503
|
}
|
|
504
504
|
/**
|
|
505
|
-
* Configures model
|
|
505
|
+
* Configures the model group for agent runtime resources.
|
|
506
506
|
*
|
|
507
507
|
* @remarks
|
|
508
|
-
* You can authorize model groups for
|
|
509
|
-
*
|
|
508
|
+
* You can authorize model groups for agent runtime resources such as JVS Computer, OpenClaw, and Hermes Agent in the Wuying Agent Management Center to serve as inference engines for agent task execution.
|
|
509
|
+
* Before you call this operation, make sure that you are fully familiar with the operations and usage of the Wuying Agent Management Center.
|
|
510
510
|
*
|
|
511
511
|
* @param request - ConfigRuntimeModelTemplateRequest
|
|
512
512
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -541,11 +541,11 @@ class Client extends openapi_core_1.default {
|
|
|
541
541
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.ConfigRuntimeModelTemplateResponse({}));
|
|
542
542
|
}
|
|
543
543
|
/**
|
|
544
|
-
* Configures model
|
|
544
|
+
* Configures the model group for agent runtime resources.
|
|
545
545
|
*
|
|
546
546
|
* @remarks
|
|
547
|
-
* You can authorize model groups for
|
|
548
|
-
*
|
|
547
|
+
* You can authorize model groups for agent runtime resources such as JVS Computer, OpenClaw, and Hermes Agent in the Wuying Agent Management Center to serve as inference engines for agent task execution.
|
|
548
|
+
* Before you call this operation, make sure that you are fully familiar with the operations and usage of the Wuying Agent Management Center.
|
|
549
549
|
*
|
|
550
550
|
* @param request - ConfigRuntimeModelTemplateRequest
|
|
551
551
|
* @returns ConfigRuntimeModelTemplateResponse
|
|
@@ -711,25 +711,25 @@ class Client extends openapi_core_1.default {
|
|
|
711
711
|
return await this.createAppInstanceGroupWithOptions(request, runtime);
|
|
712
712
|
}
|
|
713
713
|
/**
|
|
714
|
-
* Creates a cloud browser group
|
|
714
|
+
* Creates a cloud browser group billed by monthly active users (MAUs).
|
|
715
715
|
*
|
|
716
716
|
* @remarks
|
|
717
717
|
* ## Before you begin
|
|
718
|
-
* - Prepare
|
|
719
|
-
* - Specify
|
|
720
|
-
* -
|
|
721
|
-
* -
|
|
718
|
+
* - Prepare available office networks, images, and specifications in the target business region, and ensure that your account has the corresponding browser configurations and resource quotas.
|
|
719
|
+
* - Specify CloudBrowserName and BizRegionId. You must set OsType to Windows.
|
|
720
|
+
* - The authorized users must be created in advance and match the account type. The authorized user groups must belong to the current account and match the account type of the office network.
|
|
721
|
+
* - **Users and UserGroupIds cannot be specified at the same time.**
|
|
722
722
|
* ## MAU billing parameters
|
|
723
|
-
* - Set
|
|
724
|
-
* - **
|
|
725
|
-
* - Set
|
|
726
|
-
* -
|
|
727
|
-
* ## Post-
|
|
728
|
-
* **A successful response does not indicate that the browser resources are ready.** After creation, query the browser group
|
|
723
|
+
* - Set ChargeType to PostPaid.
|
|
724
|
+
* - **You must explicitly set SubPayType to mau. Omitting this parameter does not enable MAU billing.**
|
|
725
|
+
* - Set ChargeResourceMode to AppInstance.
|
|
726
|
+
* - You do not need to specify Period, PeriodUnit, AppPackageType, AutoPay, AutoRenew, or NodePool.
|
|
727
|
+
* ## Post-processing
|
|
728
|
+
* **A successful API response does not indicate that the browser resources are ready.** After creation, query the status of the browser group and use it only after confirming that it is connectable.
|
|
729
729
|
* This operation creates a new cloud browser group. You do not need to create a delivery group in advance.
|
|
730
|
-
* ## Example
|
|
731
|
-
*
|
|
732
|
-
* An example value of
|
|
730
|
+
* ## Example descriptions
|
|
731
|
+
* Field examples demonstrate how to specify parameters. Replace resource identifiers with actual values under your current account. Capacity examples do not represent default values or upper limits.
|
|
732
|
+
* An example value of - indicates that the parameter is not required. When calling the API, omit the corresponding parameter instead of passing the - character.
|
|
733
733
|
*
|
|
734
734
|
* @param tmpReq - CreateBrowserInstanceGroupRequest
|
|
735
735
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -868,25 +868,25 @@ class Client extends openapi_core_1.default {
|
|
|
868
868
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.CreateBrowserInstanceGroupResponse({}));
|
|
869
869
|
}
|
|
870
870
|
/**
|
|
871
|
-
* Creates a cloud browser group
|
|
871
|
+
* Creates a cloud browser group billed by monthly active users (MAUs).
|
|
872
872
|
*
|
|
873
873
|
* @remarks
|
|
874
874
|
* ## Before you begin
|
|
875
|
-
* - Prepare
|
|
876
|
-
* - Specify
|
|
877
|
-
* -
|
|
878
|
-
* -
|
|
875
|
+
* - Prepare available office networks, images, and specifications in the target business region, and ensure that your account has the corresponding browser configurations and resource quotas.
|
|
876
|
+
* - Specify CloudBrowserName and BizRegionId. You must set OsType to Windows.
|
|
877
|
+
* - The authorized users must be created in advance and match the account type. The authorized user groups must belong to the current account and match the account type of the office network.
|
|
878
|
+
* - **Users and UserGroupIds cannot be specified at the same time.**
|
|
879
879
|
* ## MAU billing parameters
|
|
880
|
-
* - Set
|
|
881
|
-
* - **
|
|
882
|
-
* - Set
|
|
883
|
-
* -
|
|
884
|
-
* ## Post-
|
|
885
|
-
* **A successful response does not indicate that the browser resources are ready.** After creation, query the browser group
|
|
880
|
+
* - Set ChargeType to PostPaid.
|
|
881
|
+
* - **You must explicitly set SubPayType to mau. Omitting this parameter does not enable MAU billing.**
|
|
882
|
+
* - Set ChargeResourceMode to AppInstance.
|
|
883
|
+
* - You do not need to specify Period, PeriodUnit, AppPackageType, AutoPay, AutoRenew, or NodePool.
|
|
884
|
+
* ## Post-processing
|
|
885
|
+
* **A successful API response does not indicate that the browser resources are ready.** After creation, query the status of the browser group and use it only after confirming that it is connectable.
|
|
886
886
|
* This operation creates a new cloud browser group. You do not need to create a delivery group in advance.
|
|
887
|
-
* ## Example
|
|
888
|
-
*
|
|
889
|
-
* An example value of
|
|
887
|
+
* ## Example descriptions
|
|
888
|
+
* Field examples demonstrate how to specify parameters. Replace resource identifiers with actual values under your current account. Capacity examples do not represent default values or upper limits.
|
|
889
|
+
* An example value of - indicates that the parameter is not required. When calling the API, omit the corresponding parameter instead of passing the - character.
|
|
890
890
|
*
|
|
891
891
|
* @param request - CreateBrowserInstanceGroupRequest
|
|
892
892
|
* @returns CreateBrowserInstanceGroupResponse
|
|
@@ -967,7 +967,7 @@ class Client extends openapi_core_1.default {
|
|
|
967
967
|
return await this.createImageByInstanceWithOptions(request, runtime);
|
|
968
968
|
}
|
|
969
969
|
/**
|
|
970
|
-
* Creates a new image
|
|
970
|
+
* Creates a new image by debugging a delivery group.
|
|
971
971
|
*
|
|
972
972
|
* @param request - CreateImageFromAppInstanceGroupRequest
|
|
973
973
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -1002,7 +1002,7 @@ class Client extends openapi_core_1.default {
|
|
|
1002
1002
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.CreateImageFromAppInstanceGroupResponse({}));
|
|
1003
1003
|
}
|
|
1004
1004
|
/**
|
|
1005
|
-
* Creates a new image
|
|
1005
|
+
* Creates a new image by debugging a delivery group.
|
|
1006
1006
|
*
|
|
1007
1007
|
* @param request - CreateImageFromAppInstanceGroupRequest
|
|
1008
1008
|
* @returns CreateImageFromAppInstanceGroupResponse
|
|
@@ -1015,8 +1015,8 @@ class Client extends openapi_core_1.default {
|
|
|
1015
1015
|
* Creates a model provider template for model creation.
|
|
1016
1016
|
*
|
|
1017
1017
|
* @remarks
|
|
1018
|
-
* You can create a model provider template under
|
|
1019
|
-
* Make sure that you
|
|
1018
|
+
* You can create a model provider template for model creation under the model templates in the Wuying Agent Management Center to configure the connection information and keys for model services (such as Alibaba Cloud Bailian, Token Plan, and Moonshot AI) that can be invoked by agents. The created model provider template is automatically associated with the specified model template.
|
|
1019
|
+
* Make sure that you fully understand the operations and usage of the Wuying Agent Management Center before you call this operation.
|
|
1020
1020
|
*
|
|
1021
1021
|
* @param request - CreateModelProviderTemplateRequest
|
|
1022
1022
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -1075,8 +1075,8 @@ class Client extends openapi_core_1.default {
|
|
|
1075
1075
|
* Creates a model provider template for model creation.
|
|
1076
1076
|
*
|
|
1077
1077
|
* @remarks
|
|
1078
|
-
* You can create a model provider template under
|
|
1079
|
-
* Make sure that you
|
|
1078
|
+
* You can create a model provider template for model creation under the model templates in the Wuying Agent Management Center to configure the connection information and keys for model services (such as Alibaba Cloud Bailian, Token Plan, and Moonshot AI) that can be invoked by agents. The created model provider template is automatically associated with the specified model template.
|
|
1079
|
+
* Make sure that you fully understand the operations and usage of the Wuying Agent Management Center before you call this operation.
|
|
1080
1080
|
*
|
|
1081
1081
|
* @param request - CreateModelProviderTemplateRequest
|
|
1082
1082
|
* @returns CreateModelProviderTemplateResponse
|
|
@@ -1283,7 +1283,7 @@ class Client extends openapi_core_1.default {
|
|
|
1283
1283
|
return await this.createWuyingServerWithOptions(request, runtime);
|
|
1284
1284
|
}
|
|
1285
1285
|
/**
|
|
1286
|
-
* Deletes a pay-as-you-go delivery group
|
|
1286
|
+
* Deletes a resource-based pay-as-you-go delivery group.
|
|
1287
1287
|
*
|
|
1288
1288
|
* @remarks
|
|
1289
1289
|
* > This operation does not support deleting delivery groups that use subscription resources.
|
|
@@ -1318,7 +1318,7 @@ class Client extends openapi_core_1.default {
|
|
|
1318
1318
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.DeleteAppInstanceGroupResponse({}));
|
|
1319
1319
|
}
|
|
1320
1320
|
/**
|
|
1321
|
-
* Deletes a pay-as-you-go delivery group
|
|
1321
|
+
* Deletes a resource-based pay-as-you-go delivery group.
|
|
1322
1322
|
*
|
|
1323
1323
|
* @remarks
|
|
1324
1324
|
* > This operation does not support deleting delivery groups that use subscription resources.
|
|
@@ -1331,7 +1331,7 @@ class Client extends openapi_core_1.default {
|
|
|
1331
1331
|
return await this.deleteAppInstanceGroupWithOptions(request, runtime);
|
|
1332
1332
|
}
|
|
1333
1333
|
/**
|
|
1334
|
-
* Deletes
|
|
1334
|
+
* Deletes specified application instances.
|
|
1335
1335
|
*
|
|
1336
1336
|
* @remarks
|
|
1337
1337
|
* Only instances in the initializing or idle state can be deleted. This operation is available only to specific customers.
|
|
@@ -1369,7 +1369,7 @@ class Client extends openapi_core_1.default {
|
|
|
1369
1369
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.DeleteAppInstancesResponse({}));
|
|
1370
1370
|
}
|
|
1371
1371
|
/**
|
|
1372
|
-
* Deletes
|
|
1372
|
+
* Deletes specified application instances.
|
|
1373
1373
|
*
|
|
1374
1374
|
* @remarks
|
|
1375
1375
|
* Only instances in the initializing or idle state can be deleted. This operation is available only to specific customers.
|
|
@@ -1385,10 +1385,10 @@ class Client extends openapi_core_1.default {
|
|
|
1385
1385
|
* Deletes a custom WUYING image.
|
|
1386
1386
|
*
|
|
1387
1387
|
* @remarks
|
|
1388
|
-
* -
|
|
1389
|
-
* - For images associated with WUYING
|
|
1390
|
-
* - If a WUYING Cloud Desktop template references
|
|
1391
|
-
* -
|
|
1388
|
+
* - Only custom images that belong to your account can be deleted.
|
|
1389
|
+
* - For images associated with WUYING Workspace pools, WUYING Cloud Apps, or WUYING Workstations, ensure that no WUYING instances are using the image before you delete it.
|
|
1390
|
+
* - If a WUYING Cloud Desktop template references the image, the template is also deleted when you delete the image.
|
|
1391
|
+
* - If the image is available in multiple regions, deleting the image removes it from all regions.
|
|
1392
1392
|
*
|
|
1393
1393
|
* @param request - DeleteImageRequest
|
|
1394
1394
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -1420,10 +1420,10 @@ class Client extends openapi_core_1.default {
|
|
|
1420
1420
|
* Deletes a custom WUYING image.
|
|
1421
1421
|
*
|
|
1422
1422
|
* @remarks
|
|
1423
|
-
* -
|
|
1424
|
-
* - For images associated with WUYING
|
|
1425
|
-
* - If a WUYING Cloud Desktop template references
|
|
1426
|
-
* -
|
|
1423
|
+
* - Only custom images that belong to your account can be deleted.
|
|
1424
|
+
* - For images associated with WUYING Workspace pools, WUYING Cloud Apps, or WUYING Workstations, ensure that no WUYING instances are using the image before you delete it.
|
|
1425
|
+
* - If a WUYING Cloud Desktop template references the image, the template is also deleted when you delete the image.
|
|
1426
|
+
* - If the image is available in multiple regions, deleting the image removes it from all regions.
|
|
1427
1427
|
*
|
|
1428
1428
|
* @param request - DeleteImageRequest
|
|
1429
1429
|
* @returns DeleteImageResponse
|
|
@@ -1436,8 +1436,7 @@ class Client extends openapi_core_1.default {
|
|
|
1436
1436
|
* Deletes an LLM template.
|
|
1437
1437
|
*
|
|
1438
1438
|
* @remarks
|
|
1439
|
-
* You can delete a model template
|
|
1440
|
-
* Before using this operation, make sure you are familiar with the operations and usage of the WUYING Agent Management Center.
|
|
1439
|
+
* You can delete a model template created under a model service provider template in the Wuying Agent Management Center. Before you delete the template, make sure that the model is not the default model of an associated model group. Otherwise, the deletion fails. After the deletion, the model configurations of associated cloud computers are automatically refreshed. Make sure that you fully understand the operations and usage of the Wuying Agent Management Center before you call this operation.
|
|
1441
1440
|
*
|
|
1442
1441
|
* @param request - DeleteLlmTemplateRequest
|
|
1443
1442
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -1469,8 +1468,7 @@ class Client extends openapi_core_1.default {
|
|
|
1469
1468
|
* Deletes an LLM template.
|
|
1470
1469
|
*
|
|
1471
1470
|
* @remarks
|
|
1472
|
-
* You can delete a model template
|
|
1473
|
-
* Before using this operation, make sure you are familiar with the operations and usage of the WUYING Agent Management Center.
|
|
1471
|
+
* You can delete a model template created under a model service provider template in the Wuying Agent Management Center. Before you delete the template, make sure that the model is not the default model of an associated model group. Otherwise, the deletion fails. After the deletion, the model configurations of associated cloud computers are automatically refreshed. Make sure that you fully understand the operations and usage of the Wuying Agent Management Center before you call this operation.
|
|
1474
1472
|
*
|
|
1475
1473
|
* @param request - DeleteLlmTemplateRequest
|
|
1476
1474
|
* @returns DeleteLlmTemplateResponse
|
|
@@ -1483,8 +1481,8 @@ class Client extends openapi_core_1.default {
|
|
|
1483
1481
|
* Deletes a model provider template.
|
|
1484
1482
|
*
|
|
1485
1483
|
* @remarks
|
|
1486
|
-
* You can delete a model provider template
|
|
1487
|
-
*
|
|
1484
|
+
* You can delete a model provider template created under model templates in the Wuying Agent Management Center. Before deletion, ensure that the model provider is not the provider of the default model and is not a system-preset provider, such as the Wuying credit package. After deletion, the associated models and key configurations are also cleared.
|
|
1485
|
+
* Make sure that you fully understand the operations and usage of the Wuying Agent Management Center before you call this operation.
|
|
1488
1486
|
*
|
|
1489
1487
|
* @param request - DeleteModelProviderTemplateRequest
|
|
1490
1488
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -1516,8 +1514,8 @@ class Client extends openapi_core_1.default {
|
|
|
1516
1514
|
* Deletes a model provider template.
|
|
1517
1515
|
*
|
|
1518
1516
|
* @remarks
|
|
1519
|
-
* You can delete a model provider template
|
|
1520
|
-
*
|
|
1517
|
+
* You can delete a model provider template created under model templates in the Wuying Agent Management Center. Before deletion, ensure that the model provider is not the provider of the default model and is not a system-preset provider, such as the Wuying credit package. After deletion, the associated models and key configurations are also cleared.
|
|
1518
|
+
* Make sure that you fully understand the operations and usage of the Wuying Agent Management Center before you call this operation.
|
|
1521
1519
|
*
|
|
1522
1520
|
* @param request - DeleteModelProviderTemplateRequest
|
|
1523
1521
|
* @returns DeleteModelProviderTemplateResponse
|
|
@@ -1530,8 +1528,8 @@ class Client extends openapi_core_1.default {
|
|
|
1530
1528
|
* Deletes a model template.
|
|
1531
1529
|
*
|
|
1532
1530
|
* @remarks
|
|
1533
|
-
* You can delete a model group
|
|
1534
|
-
* Before
|
|
1531
|
+
* You can delete a model group created in the Wuying Agent Management Center. Before you delete the model group, make sure that the template is not authorized for any resources. Otherwise, the deletion fails. After the model group is deleted, the model providers and models in the model group are also removed.
|
|
1532
|
+
* Before you call this operation, make sure that you fully understand the operations and usage of the Wuying Agent Management Center.
|
|
1535
1533
|
*
|
|
1536
1534
|
* @param request - DeleteModelTemplateRequest
|
|
1537
1535
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -1563,8 +1561,8 @@ class Client extends openapi_core_1.default {
|
|
|
1563
1561
|
* Deletes a model template.
|
|
1564
1562
|
*
|
|
1565
1563
|
* @remarks
|
|
1566
|
-
* You can delete a model group
|
|
1567
|
-
* Before
|
|
1564
|
+
* You can delete a model group created in the Wuying Agent Management Center. Before you delete the model group, make sure that the template is not authorized for any resources. Otherwise, the deletion fails. After the model group is deleted, the model providers and models in the model group are also removed.
|
|
1565
|
+
* Before you call this operation, make sure that you fully understand the operations and usage of the Wuying Agent Management Center.
|
|
1568
1566
|
*
|
|
1569
1567
|
* @param request - DeleteModelTemplateRequest
|
|
1570
1568
|
* @returns DeleteModelTemplateResponse
|
|
@@ -1574,10 +1572,10 @@ class Client extends openapi_core_1.default {
|
|
|
1574
1572
|
return await this.deleteModelTemplateWithOptions(request, runtime);
|
|
1575
1573
|
}
|
|
1576
1574
|
/**
|
|
1577
|
-
* Deletes a
|
|
1575
|
+
* Deletes a workstation.
|
|
1578
1576
|
*
|
|
1579
1577
|
* @remarks
|
|
1580
|
-
* Deletes a
|
|
1578
|
+
* Deletes a workstation.
|
|
1581
1579
|
*
|
|
1582
1580
|
* @param request - DeleteWuyingServerRequest
|
|
1583
1581
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -1606,10 +1604,10 @@ class Client extends openapi_core_1.default {
|
|
|
1606
1604
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.DeleteWuyingServerResponse({}));
|
|
1607
1605
|
}
|
|
1608
1606
|
/**
|
|
1609
|
-
* Deletes a
|
|
1607
|
+
* Deletes a workstation.
|
|
1610
1608
|
*
|
|
1611
1609
|
* @remarks
|
|
1612
|
-
* Deletes a
|
|
1610
|
+
* Deletes a workstation.
|
|
1613
1611
|
*
|
|
1614
1612
|
* @param request - DeleteWuyingServerRequest
|
|
1615
1613
|
* @returns DeleteWuyingServerResponse
|
|
@@ -1801,15 +1799,15 @@ class Client extends openapi_core_1.default {
|
|
|
1801
1799
|
* Queries the configuration, status, and authorization statistics of a specified cloud browser group.
|
|
1802
1800
|
*
|
|
1803
1801
|
* @remarks
|
|
1804
|
-
* This topic describes the query
|
|
1802
|
+
* This topic describes how to use the query operation in the monthly active user (MAU) billing scenario.
|
|
1805
1803
|
* ## Before you begin
|
|
1806
|
-
* Obtain the cloud browser group
|
|
1807
|
-
* ## Response
|
|
1808
|
-
*
|
|
1804
|
+
* Obtain the ID of a cloud browser group within the current account. You can call `ListBrowserInstanceGroup` to obtain the ID.
|
|
1805
|
+
* ## Response content
|
|
1806
|
+
* Returns the current configuration, status, and authorization statistics of the browser group. The bookmark and website access lists in the details return up to the first 20 entries each. To query the complete lists, call `ListBrowserBookmarks` and `ListBrowserRestrictedURLs` respectively.
|
|
1809
1807
|
* ## What to do next
|
|
1810
|
-
* This operation only queries
|
|
1808
|
+
* This operation only queries the configuration and does not modify resources. After reading the returned status, perform connection or management operations that match the status.
|
|
1811
1809
|
* ## Example description
|
|
1812
|
-
*
|
|
1810
|
+
* In the examples, `-` indicates that the current scenario does not apply or the field is not returned. It is not a string actually returned by the operation. Examples of common resource IDs are masked. Use the actual query results.
|
|
1813
1811
|
*
|
|
1814
1812
|
* @param request - GetBrowserInstanceGroupRequest
|
|
1815
1813
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -1838,15 +1836,15 @@ class Client extends openapi_core_1.default {
|
|
|
1838
1836
|
* Queries the configuration, status, and authorization statistics of a specified cloud browser group.
|
|
1839
1837
|
*
|
|
1840
1838
|
* @remarks
|
|
1841
|
-
* This topic describes the query
|
|
1839
|
+
* This topic describes how to use the query operation in the monthly active user (MAU) billing scenario.
|
|
1842
1840
|
* ## Before you begin
|
|
1843
|
-
* Obtain the cloud browser group
|
|
1844
|
-
* ## Response
|
|
1845
|
-
*
|
|
1841
|
+
* Obtain the ID of a cloud browser group within the current account. You can call `ListBrowserInstanceGroup` to obtain the ID.
|
|
1842
|
+
* ## Response content
|
|
1843
|
+
* Returns the current configuration, status, and authorization statistics of the browser group. The bookmark and website access lists in the details return up to the first 20 entries each. To query the complete lists, call `ListBrowserBookmarks` and `ListBrowserRestrictedURLs` respectively.
|
|
1846
1844
|
* ## What to do next
|
|
1847
|
-
* This operation only queries
|
|
1845
|
+
* This operation only queries the configuration and does not modify resources. After reading the returned status, perform connection or management operations that match the status.
|
|
1848
1846
|
* ## Example description
|
|
1849
|
-
*
|
|
1847
|
+
* In the examples, `-` indicates that the current scenario does not apply or the field is not returned. It is not a string actually returned by the operation. Examples of common resource IDs are masked. Use the actual query results.
|
|
1850
1848
|
*
|
|
1851
1849
|
* @param request - GetBrowserInstanceGroupRequest
|
|
1852
1850
|
* @returns GetBrowserInstanceGroupResponse
|
|
@@ -2296,10 +2294,10 @@ class Client extends openapi_core_1.default {
|
|
|
2296
2294
|
return await this.getRuntimeChannelWithOptions(request, runtime);
|
|
2297
2295
|
}
|
|
2298
2296
|
/**
|
|
2299
|
-
* Queries the model configuration
|
|
2297
|
+
* Queries the details of the model configuration for a cloud desktop.
|
|
2300
2298
|
*
|
|
2301
2299
|
* @remarks
|
|
2302
|
-
* You can query the model configuration
|
|
2300
|
+
* You can query the details of the model configuration currently bound to a specified cloud desktop in the Wuying Agent Management Center, including the model group, the list of model providers, and their associated model information. When the risk information mode is enabled, you can also identify discrepancies between the actual configuration of the end user and the configuration delivered by the administrator.
|
|
2303
2301
|
*
|
|
2304
2302
|
* @param request - GetRuntimeModelConfigRequest
|
|
2305
2303
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -2323,6 +2321,9 @@ class Client extends openapi_core_1.default {
|
|
|
2323
2321
|
if (!$dara.isNull(request.runtimeType)) {
|
|
2324
2322
|
query["RuntimeType"] = request.runtimeType;
|
|
2325
2323
|
}
|
|
2324
|
+
if (!$dara.isNull(request.smartModel)) {
|
|
2325
|
+
query["SmartModel"] = request.smartModel;
|
|
2326
|
+
}
|
|
2326
2327
|
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
2327
2328
|
query: openapi_core_2.OpenApiUtil.query(query),
|
|
2328
2329
|
});
|
|
@@ -2340,10 +2341,10 @@ class Client extends openapi_core_1.default {
|
|
|
2340
2341
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.GetRuntimeModelConfigResponse({}));
|
|
2341
2342
|
}
|
|
2342
2343
|
/**
|
|
2343
|
-
* Queries the model configuration
|
|
2344
|
+
* Queries the details of the model configuration for a cloud desktop.
|
|
2344
2345
|
*
|
|
2345
2346
|
* @remarks
|
|
2346
|
-
* You can query the model configuration
|
|
2347
|
+
* You can query the details of the model configuration currently bound to a specified cloud desktop in the Wuying Agent Management Center, including the model group, the list of model providers, and their associated model information. When the risk information mode is enabled, you can also identify discrepancies between the actual configuration of the end user and the configuration delivered by the administrator.
|
|
2347
2348
|
*
|
|
2348
2349
|
* @param request - GetRuntimeModelConfigRequest
|
|
2349
2350
|
* @returns GetRuntimeModelConfigResponse
|
|
@@ -2494,6 +2495,84 @@ class Client extends openapi_core_1.default {
|
|
|
2494
2495
|
let runtime = new $dara.RuntimeOptions({});
|
|
2495
2496
|
return await this.listAppInstancesWithOptions(request, runtime);
|
|
2496
2497
|
}
|
|
2498
|
+
/**
|
|
2499
|
+
* 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.
|
|
2500
|
+
*
|
|
2501
|
+
* @remarks
|
|
2502
|
+
* ## Operation description
|
|
2503
|
+
* 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).
|
|
2504
|
+
* 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.
|
|
2505
|
+
* ## Before you begin
|
|
2506
|
+
* - 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.
|
|
2507
|
+
* ## Parameter description
|
|
2508
|
+
* - **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.
|
|
2509
|
+
* - 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.
|
|
2510
|
+
* - If no applications are deployed in the delivery group image, the operation returns normally: Apps is an empty list and TotalCount is 0.
|
|
2511
|
+
* ## Call sequence
|
|
2512
|
+
* 1. Call the [ListAppInstanceGroup](~~ListAppInstanceGroup~~) operation to obtain the delivery group ID (AppInstanceGroupId).
|
|
2513
|
+
* 2. Call this operation to obtain the list of deployed applications in the delivery group and the AppId of each application.
|
|
2514
|
+
* 3. To authorize by application, call the [AuthorizeUsersForApp](~~AuthorizeUsersForApp~~) operation with the returned AppId.
|
|
2515
|
+
*
|
|
2516
|
+
* @param request - ListAppsByAppInstanceGroupIdRequest
|
|
2517
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
2518
|
+
* @returns ListAppsByAppInstanceGroupIdResponse
|
|
2519
|
+
*/
|
|
2520
|
+
async listAppsByAppInstanceGroupIdWithOptions(request, runtime) {
|
|
2521
|
+
request.validate();
|
|
2522
|
+
let query = {};
|
|
2523
|
+
if (!$dara.isNull(request.appInstanceGroupId)) {
|
|
2524
|
+
query["AppInstanceGroupId"] = request.appInstanceGroupId;
|
|
2525
|
+
}
|
|
2526
|
+
if (!$dara.isNull(request.pageNumber)) {
|
|
2527
|
+
query["PageNumber"] = request.pageNumber;
|
|
2528
|
+
}
|
|
2529
|
+
if (!$dara.isNull(request.pageSize)) {
|
|
2530
|
+
query["PageSize"] = request.pageSize;
|
|
2531
|
+
}
|
|
2532
|
+
if (!$dara.isNull(request.productType)) {
|
|
2533
|
+
query["ProductType"] = request.productType;
|
|
2534
|
+
}
|
|
2535
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
2536
|
+
query: openapi_core_2.OpenApiUtil.query(query),
|
|
2537
|
+
});
|
|
2538
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
2539
|
+
action: "ListAppsByAppInstanceGroupId",
|
|
2540
|
+
version: "2021-09-01",
|
|
2541
|
+
protocol: "HTTPS",
|
|
2542
|
+
pathname: "/",
|
|
2543
|
+
method: "POST",
|
|
2544
|
+
authType: "AK",
|
|
2545
|
+
style: "RPC",
|
|
2546
|
+
reqBodyType: "formData",
|
|
2547
|
+
bodyType: "json",
|
|
2548
|
+
});
|
|
2549
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.ListAppsByAppInstanceGroupIdResponse({}));
|
|
2550
|
+
}
|
|
2551
|
+
/**
|
|
2552
|
+
* 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.
|
|
2553
|
+
*
|
|
2554
|
+
* @remarks
|
|
2555
|
+
* ## Operation description
|
|
2556
|
+
* 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).
|
|
2557
|
+
* 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.
|
|
2558
|
+
* ## Before you begin
|
|
2559
|
+
* - 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.
|
|
2560
|
+
* ## Parameter description
|
|
2561
|
+
* - **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.
|
|
2562
|
+
* - 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.
|
|
2563
|
+
* - If no applications are deployed in the delivery group image, the operation returns normally: Apps is an empty list and TotalCount is 0.
|
|
2564
|
+
* ## Call sequence
|
|
2565
|
+
* 1. Call the [ListAppInstanceGroup](~~ListAppInstanceGroup~~) operation to obtain the delivery group ID (AppInstanceGroupId).
|
|
2566
|
+
* 2. Call this operation to obtain the list of deployed applications in the delivery group and the AppId of each application.
|
|
2567
|
+
* 3. To authorize by application, call the [AuthorizeUsersForApp](~~AuthorizeUsersForApp~~) operation with the returned AppId.
|
|
2568
|
+
*
|
|
2569
|
+
* @param request - ListAppsByAppInstanceGroupIdRequest
|
|
2570
|
+
* @returns ListAppsByAppInstanceGroupIdResponse
|
|
2571
|
+
*/
|
|
2572
|
+
async listAppsByAppInstanceGroupId(request) {
|
|
2573
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
2574
|
+
return await this.listAppsByAppInstanceGroupIdWithOptions(request, runtime);
|
|
2575
|
+
}
|
|
2497
2576
|
/**
|
|
2498
2577
|
* 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.
|
|
2499
2578
|
*
|
|
@@ -2592,6 +2671,98 @@ class Client extends openapi_core_1.default {
|
|
|
2592
2671
|
let runtime = new $dara.RuntimeOptions({});
|
|
2593
2672
|
return await this.listAuthorizedAppInstanceGroupByUserWithOptions(request, runtime);
|
|
2594
2673
|
}
|
|
2674
|
+
/**
|
|
2675
|
+
* 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.
|
|
2676
|
+
*
|
|
2677
|
+
* @remarks
|
|
2678
|
+
* ## Operation description
|
|
2679
|
+
* 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.
|
|
2680
|
+
* The results are deduplicated by the combination of delivery group and application. Each record corresponds to one application within one delivery group.
|
|
2681
|
+
* ## Before you begin
|
|
2682
|
+
* - 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.
|
|
2683
|
+
* - 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.
|
|
2684
|
+
* ## Parameter description
|
|
2685
|
+
* - **`EndUserId` and `ProductType` are required.** Set `ProductType` to `CloudApp`, which indicates WUYING Cloud Application.
|
|
2686
|
+
* - `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.
|
|
2687
|
+
* - 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.
|
|
2688
|
+
* ## Call sequence
|
|
2689
|
+
* 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).
|
|
2690
|
+
* 2. Call the [AuthorizeUsersForApp](~~AuthorizeUsersForApp~~) operation to authorize the application to the target user.
|
|
2691
|
+
* 3. Call this operation to query the applications that the user is authorized to access.
|
|
2692
|
+
*
|
|
2693
|
+
* @param request - ListAuthorizedAppsByUserRequest
|
|
2694
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
2695
|
+
* @returns ListAuthorizedAppsByUserResponse
|
|
2696
|
+
*/
|
|
2697
|
+
async listAuthorizedAppsByUserWithOptions(request, runtime) {
|
|
2698
|
+
request.validate();
|
|
2699
|
+
let query = {};
|
|
2700
|
+
if (!$dara.isNull(request.appId)) {
|
|
2701
|
+
query["AppId"] = request.appId;
|
|
2702
|
+
}
|
|
2703
|
+
if (!$dara.isNull(request.appInstanceGroupId)) {
|
|
2704
|
+
query["AppInstanceGroupId"] = request.appInstanceGroupId;
|
|
2705
|
+
}
|
|
2706
|
+
if (!$dara.isNull(request.appInstanceGroupName)) {
|
|
2707
|
+
query["AppInstanceGroupName"] = request.appInstanceGroupName;
|
|
2708
|
+
}
|
|
2709
|
+
if (!$dara.isNull(request.appName)) {
|
|
2710
|
+
query["AppName"] = request.appName;
|
|
2711
|
+
}
|
|
2712
|
+
if (!$dara.isNull(request.endUserId)) {
|
|
2713
|
+
query["EndUserId"] = request.endUserId;
|
|
2714
|
+
}
|
|
2715
|
+
if (!$dara.isNull(request.pageNumber)) {
|
|
2716
|
+
query["PageNumber"] = request.pageNumber;
|
|
2717
|
+
}
|
|
2718
|
+
if (!$dara.isNull(request.pageSize)) {
|
|
2719
|
+
query["PageSize"] = request.pageSize;
|
|
2720
|
+
}
|
|
2721
|
+
if (!$dara.isNull(request.productType)) {
|
|
2722
|
+
query["ProductType"] = request.productType;
|
|
2723
|
+
}
|
|
2724
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
2725
|
+
query: openapi_core_2.OpenApiUtil.query(query),
|
|
2726
|
+
});
|
|
2727
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
2728
|
+
action: "ListAuthorizedAppsByUser",
|
|
2729
|
+
version: "2021-09-01",
|
|
2730
|
+
protocol: "HTTPS",
|
|
2731
|
+
pathname: "/",
|
|
2732
|
+
method: "POST",
|
|
2733
|
+
authType: "AK",
|
|
2734
|
+
style: "RPC",
|
|
2735
|
+
reqBodyType: "formData",
|
|
2736
|
+
bodyType: "json",
|
|
2737
|
+
});
|
|
2738
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.ListAuthorizedAppsByUserResponse({}));
|
|
2739
|
+
}
|
|
2740
|
+
/**
|
|
2741
|
+
* 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.
|
|
2742
|
+
*
|
|
2743
|
+
* @remarks
|
|
2744
|
+
* ## Operation description
|
|
2745
|
+
* 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.
|
|
2746
|
+
* The results are deduplicated by the combination of delivery group and application. Each record corresponds to one application within one delivery group.
|
|
2747
|
+
* ## Before you begin
|
|
2748
|
+
* - 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.
|
|
2749
|
+
* - 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.
|
|
2750
|
+
* ## Parameter description
|
|
2751
|
+
* - **`EndUserId` and `ProductType` are required.** Set `ProductType` to `CloudApp`, which indicates WUYING Cloud Application.
|
|
2752
|
+
* - `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.
|
|
2753
|
+
* - 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.
|
|
2754
|
+
* ## Call sequence
|
|
2755
|
+
* 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).
|
|
2756
|
+
* 2. Call the [AuthorizeUsersForApp](~~AuthorizeUsersForApp~~) operation to authorize the application to the target user.
|
|
2757
|
+
* 3. Call this operation to query the applications that the user is authorized to access.
|
|
2758
|
+
*
|
|
2759
|
+
* @param request - ListAuthorizedAppsByUserRequest
|
|
2760
|
+
* @returns ListAuthorizedAppsByUserResponse
|
|
2761
|
+
*/
|
|
2762
|
+
async listAuthorizedAppsByUser(request) {
|
|
2763
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
2764
|
+
return await this.listAuthorizedAppsByUserWithOptions(request, runtime);
|
|
2765
|
+
}
|
|
2595
2766
|
/**
|
|
2596
2767
|
* Queries the list of user groups authorized by a specified delivery group.
|
|
2597
2768
|
*
|
|
@@ -2650,20 +2821,41 @@ class Client extends openapi_core_1.default {
|
|
|
2650
2821
|
return await this.listAuthorizedUserGroupsWithOptions(request, runtime);
|
|
2651
2822
|
}
|
|
2652
2823
|
/**
|
|
2653
|
-
* Queries authorized users
|
|
2824
|
+
* 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.
|
|
2654
2825
|
*
|
|
2655
2826
|
* @remarks
|
|
2827
|
+
* ## Operation description
|
|
2828
|
+
* 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.
|
|
2829
|
+
* - This operation returns **authorization relationships** and does not indicate whether users are currently online or have established connections.
|
|
2830
|
+
* - 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.
|
|
2831
|
+
* The scope of results depends on the authorization mode of the delivery group (response parameter AuthMode):
|
|
2832
|
+
* - 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.
|
|
2833
|
+
* - 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.
|
|
2834
|
+
* - 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.
|
|
2835
|
+
* When querying by delivery group, results are sorted in descending order by authorization time, with the most recently authorized users listed first.
|
|
2656
2836
|
* ## Before you begin
|
|
2657
|
-
* - The target
|
|
2658
|
-
* -
|
|
2659
|
-
*
|
|
2660
|
-
*
|
|
2661
|
-
* -
|
|
2662
|
-
* -
|
|
2663
|
-
* -
|
|
2664
|
-
*
|
|
2665
|
-
*
|
|
2666
|
-
*
|
|
2837
|
+
* - 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.
|
|
2838
|
+
* - 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.
|
|
2839
|
+
* ## Parameter description
|
|
2840
|
+
* - **ProductType, PageNumber, and PageSize are required**. If ProductType has an invalid value, the error code `ProductTypeInvalid` is returned.
|
|
2841
|
+
* - **Exactly one of AppInstanceGroupId and AppInstanceGroupSetId must be specified**. If both or neither are specified, the error code `InvalidParameter.AppInstanceGroupId/AppInstanceGroupSetId` is returned.
|
|
2842
|
+
* - **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.
|
|
2843
|
+
* - 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.
|
|
2844
|
+
* - PageNumber starts from 1. Valid values of PageSize: 1 to 100.
|
|
2845
|
+
* - 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.
|
|
2846
|
+
* ## Call sequence
|
|
2847
|
+
* 1. Call the [ListAppInstanceGroup](~~ListAppInstanceGroup~~) operation to obtain the delivery group ID. For cloud browser groups, call the [ListBrowserInstanceGroup](~~ListBrowserInstanceGroup~~) operation.
|
|
2848
|
+
* 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.
|
|
2849
|
+
* 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.
|
|
2850
|
+
* ## Error codes
|
|
2851
|
+
* - `ProductTypeInvalid`: The value of ProductType is invalid.
|
|
2852
|
+
* - `InvalidParameter.AppInstanceGroupId/AppInstanceGroupSetId`: Both AppInstanceGroupId and AppInstanceGroupSetId are specified, or neither is specified.
|
|
2853
|
+
* - `InvalidParameter.AppId`: AppId is specified when querying by delivery group set.
|
|
2854
|
+
* - `InvalidParameter.AppInstancePersistentId`: AppInstancePersistentId is specified when querying by delivery group set.
|
|
2855
|
+
* - `InvalidAppInstanceGroupSpecItem.NotFound`: The delivery group does not exist, does not belong to the current account, or the product type does not match.
|
|
2856
|
+
* - `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.
|
|
2857
|
+
* - `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.
|
|
2858
|
+
* - `InvalidAppInstanceGroupSet.ActivationFailed`: The delivery group set is not in an available state.
|
|
2667
2859
|
*
|
|
2668
2860
|
* @param request - ListAuthorizedUsersRequest
|
|
2669
2861
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -2718,20 +2910,41 @@ class Client extends openapi_core_1.default {
|
|
|
2718
2910
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.ListAuthorizedUsersResponse({}));
|
|
2719
2911
|
}
|
|
2720
2912
|
/**
|
|
2721
|
-
* Queries authorized users
|
|
2913
|
+
* 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.
|
|
2722
2914
|
*
|
|
2723
2915
|
* @remarks
|
|
2916
|
+
* ## Operation description
|
|
2917
|
+
* 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.
|
|
2918
|
+
* - This operation returns **authorization relationships** and does not indicate whether users are currently online or have established connections.
|
|
2919
|
+
* - 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.
|
|
2920
|
+
* The scope of results depends on the authorization mode of the delivery group (response parameter AuthMode):
|
|
2921
|
+
* - 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.
|
|
2922
|
+
* - 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.
|
|
2923
|
+
* - 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.
|
|
2924
|
+
* When querying by delivery group, results are sorted in descending order by authorization time, with the most recently authorized users listed first.
|
|
2724
2925
|
* ## Before you begin
|
|
2725
|
-
* - The target
|
|
2726
|
-
* -
|
|
2727
|
-
*
|
|
2728
|
-
*
|
|
2729
|
-
* -
|
|
2730
|
-
* -
|
|
2731
|
-
* -
|
|
2732
|
-
*
|
|
2733
|
-
*
|
|
2734
|
-
*
|
|
2926
|
+
* - 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.
|
|
2927
|
+
* - 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.
|
|
2928
|
+
* ## Parameter description
|
|
2929
|
+
* - **ProductType, PageNumber, and PageSize are required**. If ProductType has an invalid value, the error code `ProductTypeInvalid` is returned.
|
|
2930
|
+
* - **Exactly one of AppInstanceGroupId and AppInstanceGroupSetId must be specified**. If both or neither are specified, the error code `InvalidParameter.AppInstanceGroupId/AppInstanceGroupSetId` is returned.
|
|
2931
|
+
* - **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.
|
|
2932
|
+
* - 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.
|
|
2933
|
+
* - PageNumber starts from 1. Valid values of PageSize: 1 to 100.
|
|
2934
|
+
* - 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.
|
|
2935
|
+
* ## Call sequence
|
|
2936
|
+
* 1. Call the [ListAppInstanceGroup](~~ListAppInstanceGroup~~) operation to obtain the delivery group ID. For cloud browser groups, call the [ListBrowserInstanceGroup](~~ListBrowserInstanceGroup~~) operation.
|
|
2937
|
+
* 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.
|
|
2938
|
+
* 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.
|
|
2939
|
+
* ## Error codes
|
|
2940
|
+
* - `ProductTypeInvalid`: The value of ProductType is invalid.
|
|
2941
|
+
* - `InvalidParameter.AppInstanceGroupId/AppInstanceGroupSetId`: Both AppInstanceGroupId and AppInstanceGroupSetId are specified, or neither is specified.
|
|
2942
|
+
* - `InvalidParameter.AppId`: AppId is specified when querying by delivery group set.
|
|
2943
|
+
* - `InvalidParameter.AppInstancePersistentId`: AppInstancePersistentId is specified when querying by delivery group set.
|
|
2944
|
+
* - `InvalidAppInstanceGroupSpecItem.NotFound`: The delivery group does not exist, does not belong to the current account, or the product type does not match.
|
|
2945
|
+
* - `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.
|
|
2946
|
+
* - `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.
|
|
2947
|
+
* - `InvalidAppInstanceGroupSet.ActivationFailed`: The delivery group set is not in an available state.
|
|
2735
2948
|
*
|
|
2736
2949
|
* @param request - ListAuthorizedUsersRequest
|
|
2737
2950
|
* @returns ListAuthorizedUsersResponse
|
|
@@ -2798,18 +3011,18 @@ class Client extends openapi_core_1.default {
|
|
|
2798
3011
|
return await this.listBindInfoWithOptions(request, runtime);
|
|
2799
3012
|
}
|
|
2800
3013
|
/**
|
|
2801
|
-
*
|
|
3014
|
+
* Performs a paging query of cloud browser groups and their current statuses.
|
|
2802
3015
|
*
|
|
2803
3016
|
* @remarks
|
|
2804
|
-
* This topic describes how
|
|
3017
|
+
* This topic describes how paged query cloud browser groups in the monthly active user (MAU) billing scenario.
|
|
2805
3018
|
* ## Query conditions
|
|
2806
|
-
* You can filter by browser group
|
|
2807
|
-
* ##
|
|
2808
|
-
* Use
|
|
3019
|
+
* You can filter cloud browser groups by browser group ID, name, business region, office network, set, authorized user group, and status. You can specify only one status value at a time for status filtering.
|
|
3020
|
+
* ## Pagination
|
|
3021
|
+
* Use PageNumber and PageSize paged query data by page. You can determine whether paged query the next page based on the returned TotalCount.
|
|
2809
3022
|
* ## What to do next
|
|
2810
|
-
* To view the detailed
|
|
3023
|
+
* To view the detailed configurations of a single browser group, call GetBrowserInstanceGroup by using the returned ID.
|
|
2811
3024
|
* ## Example notes
|
|
2812
|
-
* The `-` in the examples indicates that the field is not applicable or not returned in the current scenario
|
|
3025
|
+
* The hyphen (`-`) in the examples indicates that the field is not applicable or not returned in the current scenario, and is not an actual string returned by the API operation. The common resource IDs in the examples are desensitized. Use the actual query results when you use the API operation.
|
|
2813
3026
|
*
|
|
2814
3027
|
* @param request - ListBrowserInstanceGroupRequest
|
|
2815
3028
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -2878,18 +3091,18 @@ class Client extends openapi_core_1.default {
|
|
|
2878
3091
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.ListBrowserInstanceGroupResponse({}));
|
|
2879
3092
|
}
|
|
2880
3093
|
/**
|
|
2881
|
-
*
|
|
3094
|
+
* Performs a paging query of cloud browser groups and their current statuses.
|
|
2882
3095
|
*
|
|
2883
3096
|
* @remarks
|
|
2884
|
-
* This topic describes how
|
|
3097
|
+
* This topic describes how paged query cloud browser groups in the monthly active user (MAU) billing scenario.
|
|
2885
3098
|
* ## Query conditions
|
|
2886
|
-
* You can filter by browser group
|
|
2887
|
-
* ##
|
|
2888
|
-
* Use
|
|
3099
|
+
* You can filter cloud browser groups by browser group ID, name, business region, office network, set, authorized user group, and status. You can specify only one status value at a time for status filtering.
|
|
3100
|
+
* ## Pagination
|
|
3101
|
+
* Use PageNumber and PageSize paged query data by page. You can determine whether paged query the next page based on the returned TotalCount.
|
|
2889
3102
|
* ## What to do next
|
|
2890
|
-
* To view the detailed
|
|
3103
|
+
* To view the detailed configurations of a single browser group, call GetBrowserInstanceGroup by using the returned ID.
|
|
2891
3104
|
* ## Example notes
|
|
2892
|
-
* The `-` in the examples indicates that the field is not applicable or not returned in the current scenario
|
|
3105
|
+
* The hyphen (`-`) in the examples indicates that the field is not applicable or not returned in the current scenario, and is not an actual string returned by the API operation. The common resource IDs in the examples are desensitized. Use the actual query results when you use the API operation.
|
|
2893
3106
|
*
|
|
2894
3107
|
* @param request - ListBrowserInstanceGroupRequest
|
|
2895
3108
|
* @returns ListBrowserInstanceGroupResponse
|
|
@@ -3120,11 +3333,11 @@ class Client extends openapi_core_1.default {
|
|
|
3120
3333
|
return await this.listImageWithOptions(request, runtime);
|
|
3121
3334
|
}
|
|
3122
3335
|
/**
|
|
3123
|
-
* Queries
|
|
3336
|
+
* Queries a list of LLM templates.
|
|
3124
3337
|
*
|
|
3125
3338
|
* @remarks
|
|
3126
|
-
* You can
|
|
3127
|
-
* Before
|
|
3339
|
+
* You can use paging to perform a paged query of the model template list under a model provider template in the Wuying Agent Management Center. You can filter the results by model group ID, model provider template ID, model template ID, and model encoding. When you query by the model group dimension, the default model is automatically pinned to the top.
|
|
3340
|
+
* Before you call this operation, make sure that you are familiar with the operations and usage of the Wuying Agent Management Center.
|
|
3128
3341
|
*
|
|
3129
3342
|
* @param tmpReq - ListLlmTemplatesRequest
|
|
3130
3343
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -3141,6 +3354,9 @@ class Client extends openapi_core_1.default {
|
|
|
3141
3354
|
if (!$dara.isNull(request.bizType)) {
|
|
3142
3355
|
query["BizType"] = request.bizType;
|
|
3143
3356
|
}
|
|
3357
|
+
if (!$dara.isNull(request.language)) {
|
|
3358
|
+
query["Language"] = request.language;
|
|
3359
|
+
}
|
|
3144
3360
|
if (!$dara.isNull(request.llmCode)) {
|
|
3145
3361
|
query["LlmCode"] = request.llmCode;
|
|
3146
3362
|
}
|
|
@@ -3179,11 +3395,11 @@ class Client extends openapi_core_1.default {
|
|
|
3179
3395
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.ListLlmTemplatesResponse({}));
|
|
3180
3396
|
}
|
|
3181
3397
|
/**
|
|
3182
|
-
* Queries
|
|
3398
|
+
* Queries a list of LLM templates.
|
|
3183
3399
|
*
|
|
3184
3400
|
* @remarks
|
|
3185
|
-
* You can
|
|
3186
|
-
* Before
|
|
3401
|
+
* You can use paging to perform a paged query of the model template list under a model provider template in the Wuying Agent Management Center. You can filter the results by model group ID, model provider template ID, model template ID, and model encoding. When you query by the model group dimension, the default model is automatically pinned to the top.
|
|
3402
|
+
* Before you call this operation, make sure that you are familiar with the operations and usage of the Wuying Agent Management Center.
|
|
3187
3403
|
*
|
|
3188
3404
|
* @param request - ListLlmTemplatesRequest
|
|
3189
3405
|
* @returns ListLlmTemplatesResponse
|
|
@@ -3688,6 +3904,192 @@ class Client extends openapi_core_1.default {
|
|
|
3688
3904
|
let runtime = new $dara.RuntimeOptions({});
|
|
3689
3905
|
return await this.listPersistentAppInstancesWithOptions(request, runtime);
|
|
3690
3906
|
}
|
|
3907
|
+
/**
|
|
3908
|
+
* 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.
|
|
3909
|
+
*
|
|
3910
|
+
* @remarks
|
|
3911
|
+
* ## Before you begin
|
|
3912
|
+
* When calling this operation with a RAM user or STS credential, the `appstreaming:ListPublishedAppInstanceGroup` permission is required.
|
|
3913
|
+
* 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.
|
|
3914
|
+
* ## Query and pagination
|
|
3915
|
+
* - **You must explicitly pass in `ProductType`, `PageNumber`, and `PageSize`.** Page numbers start from `1`, and the page size ranges from `1` to `100`.
|
|
3916
|
+
* - `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.
|
|
3917
|
+
* - 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.
|
|
3918
|
+
* - `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.
|
|
3919
|
+
* - `AppId` and `AppName` only filter delivery groups. **They do not restrict the returned `Apps` list to only the matched applications.**
|
|
3920
|
+
* ## Invoke sequence
|
|
3921
|
+
* 1. Invoke a query with `PageNumber=1` and the desired `PageSize`. For WUYING Cloud Application common scenarios, use `ProductType=CloudApp`.
|
|
3922
|
+
* 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.
|
|
3923
|
+
* 3. To retrieve details of a single delivery group, pass the full `AppInstanceGroupId` from the response and the same `ProductType` to [GetAppInstanceGroup](~~GetAppInstanceGroup~~).
|
|
3924
|
+
* The masked identifiers in the examples are for format demonstration purposes. Replace them with your actual identifiers when invoking the operation.
|
|
3925
|
+
*
|
|
3926
|
+
* @param request - ListPublishedAppInstanceGroupRequest
|
|
3927
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
3928
|
+
* @returns ListPublishedAppInstanceGroupResponse
|
|
3929
|
+
*/
|
|
3930
|
+
async listPublishedAppInstanceGroupWithOptions(request, runtime) {
|
|
3931
|
+
request.validate();
|
|
3932
|
+
let query = {};
|
|
3933
|
+
if (!$dara.isNull(request.appId)) {
|
|
3934
|
+
query["AppId"] = request.appId;
|
|
3935
|
+
}
|
|
3936
|
+
if (!$dara.isNull(request.appInstanceGroupId)) {
|
|
3937
|
+
query["AppInstanceGroupId"] = request.appInstanceGroupId;
|
|
3938
|
+
}
|
|
3939
|
+
if (!$dara.isNull(request.appInstanceGroupName)) {
|
|
3940
|
+
query["AppInstanceGroupName"] = request.appInstanceGroupName;
|
|
3941
|
+
}
|
|
3942
|
+
if (!$dara.isNull(request.appName)) {
|
|
3943
|
+
query["AppName"] = request.appName;
|
|
3944
|
+
}
|
|
3945
|
+
if (!$dara.isNull(request.excludeUserId)) {
|
|
3946
|
+
query["ExcludeUserId"] = request.excludeUserId;
|
|
3947
|
+
}
|
|
3948
|
+
if (!$dara.isNull(request.pageNumber)) {
|
|
3949
|
+
query["PageNumber"] = request.pageNumber;
|
|
3950
|
+
}
|
|
3951
|
+
if (!$dara.isNull(request.pageSize)) {
|
|
3952
|
+
query["PageSize"] = request.pageSize;
|
|
3953
|
+
}
|
|
3954
|
+
if (!$dara.isNull(request.productType)) {
|
|
3955
|
+
query["ProductType"] = request.productType;
|
|
3956
|
+
}
|
|
3957
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
3958
|
+
query: openapi_core_2.OpenApiUtil.query(query),
|
|
3959
|
+
});
|
|
3960
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
3961
|
+
action: "ListPublishedAppInstanceGroup",
|
|
3962
|
+
version: "2021-09-01",
|
|
3963
|
+
protocol: "HTTPS",
|
|
3964
|
+
pathname: "/",
|
|
3965
|
+
method: "POST",
|
|
3966
|
+
authType: "AK",
|
|
3967
|
+
style: "RPC",
|
|
3968
|
+
reqBodyType: "formData",
|
|
3969
|
+
bodyType: "json",
|
|
3970
|
+
});
|
|
3971
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.ListPublishedAppInstanceGroupResponse({}));
|
|
3972
|
+
}
|
|
3973
|
+
/**
|
|
3974
|
+
* 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.
|
|
3975
|
+
*
|
|
3976
|
+
* @remarks
|
|
3977
|
+
* ## Before you begin
|
|
3978
|
+
* When calling this operation with a RAM user or STS credential, the `appstreaming:ListPublishedAppInstanceGroup` permission is required.
|
|
3979
|
+
* 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.
|
|
3980
|
+
* ## Query and pagination
|
|
3981
|
+
* - **You must explicitly pass in `ProductType`, `PageNumber`, and `PageSize`.** Page numbers start from `1`, and the page size ranges from `1` to `100`.
|
|
3982
|
+
* - `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.
|
|
3983
|
+
* - 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.
|
|
3984
|
+
* - `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.
|
|
3985
|
+
* - `AppId` and `AppName` only filter delivery groups. **They do not restrict the returned `Apps` list to only the matched applications.**
|
|
3986
|
+
* ## Invoke sequence
|
|
3987
|
+
* 1. Invoke a query with `PageNumber=1` and the desired `PageSize`. For WUYING Cloud Application common scenarios, use `ProductType=CloudApp`.
|
|
3988
|
+
* 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.
|
|
3989
|
+
* 3. To retrieve details of a single delivery group, pass the full `AppInstanceGroupId` from the response and the same `ProductType` to [GetAppInstanceGroup](~~GetAppInstanceGroup~~).
|
|
3990
|
+
* The masked identifiers in the examples are for format demonstration purposes. Replace them with your actual identifiers when invoking the operation.
|
|
3991
|
+
*
|
|
3992
|
+
* @param request - ListPublishedAppInstanceGroupRequest
|
|
3993
|
+
* @returns ListPublishedAppInstanceGroupResponse
|
|
3994
|
+
*/
|
|
3995
|
+
async listPublishedAppInstanceGroup(request) {
|
|
3996
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
3997
|
+
return await this.listPublishedAppInstanceGroupWithOptions(request, runtime);
|
|
3998
|
+
}
|
|
3999
|
+
/**
|
|
4000
|
+
* 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.
|
|
4001
|
+
*
|
|
4002
|
+
* @remarks
|
|
4003
|
+
* ## Before you begin
|
|
4004
|
+
* When you call this operation by using a RAM user or Security Token Service (STS) credential, you must have the `appstreaming:ListPublishedApps` permission.
|
|
4005
|
+
* 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.
|
|
4006
|
+
* ## Response granularity
|
|
4007
|
+
* 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.
|
|
4008
|
+
* ## Query and pagination
|
|
4009
|
+
* - **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.
|
|
4010
|
+
* - `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.
|
|
4011
|
+
* - If an optional filter parameter is not specified or is set to an empty string, filtering is not applied for that condition.
|
|
4012
|
+
* - `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.**
|
|
4013
|
+
* ## Invocation sequence
|
|
4014
|
+
* 1. Initiate a query with `PageNumber=1` and the desired `PageSize`. For WUYING Cloud Application common scenarios, use `ProductType=CloudApp`.
|
|
4015
|
+
* 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.
|
|
4016
|
+
* 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~~).
|
|
4017
|
+
* The masked identities in the examples are for format demonstration purposes. Replace them with your actual identities when you invoke the operation.
|
|
4018
|
+
*
|
|
4019
|
+
* @param request - ListPublishedAppsRequest
|
|
4020
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
4021
|
+
* @returns ListPublishedAppsResponse
|
|
4022
|
+
*/
|
|
4023
|
+
async listPublishedAppsWithOptions(request, runtime) {
|
|
4024
|
+
request.validate();
|
|
4025
|
+
let query = {};
|
|
4026
|
+
if (!$dara.isNull(request.appId)) {
|
|
4027
|
+
query["AppId"] = request.appId;
|
|
4028
|
+
}
|
|
4029
|
+
if (!$dara.isNull(request.appInstanceGroupId)) {
|
|
4030
|
+
query["AppInstanceGroupId"] = request.appInstanceGroupId;
|
|
4031
|
+
}
|
|
4032
|
+
if (!$dara.isNull(request.appInstanceGroupName)) {
|
|
4033
|
+
query["AppInstanceGroupName"] = request.appInstanceGroupName;
|
|
4034
|
+
}
|
|
4035
|
+
if (!$dara.isNull(request.appName)) {
|
|
4036
|
+
query["AppName"] = request.appName;
|
|
4037
|
+
}
|
|
4038
|
+
if (!$dara.isNull(request.excludeUserId)) {
|
|
4039
|
+
query["ExcludeUserId"] = request.excludeUserId;
|
|
4040
|
+
}
|
|
4041
|
+
if (!$dara.isNull(request.pageNumber)) {
|
|
4042
|
+
query["PageNumber"] = request.pageNumber;
|
|
4043
|
+
}
|
|
4044
|
+
if (!$dara.isNull(request.pageSize)) {
|
|
4045
|
+
query["PageSize"] = request.pageSize;
|
|
4046
|
+
}
|
|
4047
|
+
if (!$dara.isNull(request.productType)) {
|
|
4048
|
+
query["ProductType"] = request.productType;
|
|
4049
|
+
}
|
|
4050
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
4051
|
+
query: openapi_core_2.OpenApiUtil.query(query),
|
|
4052
|
+
});
|
|
4053
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
4054
|
+
action: "ListPublishedApps",
|
|
4055
|
+
version: "2021-09-01",
|
|
4056
|
+
protocol: "HTTPS",
|
|
4057
|
+
pathname: "/",
|
|
4058
|
+
method: "POST",
|
|
4059
|
+
authType: "AK",
|
|
4060
|
+
style: "RPC",
|
|
4061
|
+
reqBodyType: "formData",
|
|
4062
|
+
bodyType: "json",
|
|
4063
|
+
});
|
|
4064
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.ListPublishedAppsResponse({}));
|
|
4065
|
+
}
|
|
4066
|
+
/**
|
|
4067
|
+
* 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.
|
|
4068
|
+
*
|
|
4069
|
+
* @remarks
|
|
4070
|
+
* ## Before you begin
|
|
4071
|
+
* When you call this operation by using a RAM user or Security Token Service (STS) credential, you must have the `appstreaming:ListPublishedApps` permission.
|
|
4072
|
+
* 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.
|
|
4073
|
+
* ## Response granularity
|
|
4074
|
+
* 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.
|
|
4075
|
+
* ## Query and pagination
|
|
4076
|
+
* - **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.
|
|
4077
|
+
* - `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.
|
|
4078
|
+
* - If an optional filter parameter is not specified or is set to an empty string, filtering is not applied for that condition.
|
|
4079
|
+
* - `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.**
|
|
4080
|
+
* ## Invocation sequence
|
|
4081
|
+
* 1. Initiate a query with `PageNumber=1` and the desired `PageSize`. For WUYING Cloud Application common scenarios, use `ProductType=CloudApp`.
|
|
4082
|
+
* 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.
|
|
4083
|
+
* 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~~).
|
|
4084
|
+
* The masked identities in the examples are for format demonstration purposes. Replace them with your actual identities when you invoke the operation.
|
|
4085
|
+
*
|
|
4086
|
+
* @param request - ListPublishedAppsRequest
|
|
4087
|
+
* @returns ListPublishedAppsResponse
|
|
4088
|
+
*/
|
|
4089
|
+
async listPublishedApps(request) {
|
|
4090
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
4091
|
+
return await this.listPublishedAppsWithOptions(request, runtime);
|
|
4092
|
+
}
|
|
3691
4093
|
/**
|
|
3692
4094
|
* Queries the regions supported by WUYING Cloud Application.
|
|
3693
4095
|
*
|
|
@@ -3787,6 +4189,103 @@ class Client extends openapi_core_1.default {
|
|
|
3787
4189
|
let runtime = new $dara.RuntimeOptions({});
|
|
3788
4190
|
return await this.listTagCloudResourcesWithOptions(request, runtime);
|
|
3789
4191
|
}
|
|
4192
|
+
/**
|
|
4193
|
+
* Queries tags bound to one or more delivery groups, or filters delivery groups that have specific tags bound by tag key-value pairs.
|
|
4194
|
+
*
|
|
4195
|
+
* @remarks
|
|
4196
|
+
* 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.
|
|
4197
|
+
* ## Before you begin
|
|
4198
|
+
* - A delivery group is created. You can call the ListAppInstanceGroup operation to obtain the delivery group ID.
|
|
4199
|
+
* - 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.
|
|
4200
|
+
* ## Parameter description
|
|
4201
|
+
* - **ResourceType is required**. Only `APPINSTANCEGROUP` (delivery group) is supported. If you specify other values, the error code `InvalidResourceType.Invalid` is returned.
|
|
4202
|
+
* - **Specify at least one of ResourceId.N and Tag.N**. If neither is specified, the error code `MissingParameter.ResourceIdsOrTags` is returned.
|
|
4203
|
+
* - If only ResourceId.N is specified: all tags attached to the specified resources are returned.
|
|
4204
|
+
* - If only Tag.N is specified: all resources that have the specified tags attached and their matching tags are returned.
|
|
4205
|
+
* - If both are specified: only records of the specified resources that have the specified tags attached are returned.
|
|
4206
|
+
* - 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.
|
|
4207
|
+
* - Multiple Tag.N conditions have an AND relationship. A resource is returned only if it has all specified tags attached.
|
|
4208
|
+
* ## Response description
|
|
4209
|
+
* - Each record in the response corresponds to a resource-tag key-value pair. If a resource has multiple tags bound, multiple records are returned.
|
|
4210
|
+
* - TotalCount indicates the number of records returned.
|
|
4211
|
+
* - This operation returns all matching results at a time. An empty NextToken value indicates that no more data is available.
|
|
4212
|
+
* ## Invocation sequence
|
|
4213
|
+
* 1. Invoke the ListAppInstanceGroup operation to obtain the delivery group ID.
|
|
4214
|
+
* 2. Invoke the TagResources operation to attach tags to the delivery group.
|
|
4215
|
+
* 3. Invoke this operation to query tag bindings by resource ID or tag conditions.
|
|
4216
|
+
*
|
|
4217
|
+
* @param request - ListTagResourcesRequest
|
|
4218
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
4219
|
+
* @returns ListTagResourcesResponse
|
|
4220
|
+
*/
|
|
4221
|
+
async listTagResourcesWithOptions(request, runtime) {
|
|
4222
|
+
request.validate();
|
|
4223
|
+
let body = {};
|
|
4224
|
+
if (!$dara.isNull(request.nextToken)) {
|
|
4225
|
+
body["NextToken"] = request.nextToken;
|
|
4226
|
+
}
|
|
4227
|
+
if (!$dara.isNull(request.regionId)) {
|
|
4228
|
+
body["RegionId"] = request.regionId;
|
|
4229
|
+
}
|
|
4230
|
+
if (!$dara.isNull(request.resourceId)) {
|
|
4231
|
+
body["ResourceId"] = request.resourceId;
|
|
4232
|
+
}
|
|
4233
|
+
if (!$dara.isNull(request.resourceType)) {
|
|
4234
|
+
body["ResourceType"] = request.resourceType;
|
|
4235
|
+
}
|
|
4236
|
+
let bodyFlat = {};
|
|
4237
|
+
if (!$dara.isNull(request.tag)) {
|
|
4238
|
+
bodyFlat["Tag"] = request.tag;
|
|
4239
|
+
}
|
|
4240
|
+
body = Object.assign(Object.assign({}, body), openapi_core_2.OpenApiUtil.query(bodyFlat));
|
|
4241
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
4242
|
+
body: openapi_core_2.OpenApiUtil.parseToMap(body),
|
|
4243
|
+
});
|
|
4244
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
4245
|
+
action: "ListTagResources",
|
|
4246
|
+
version: "2021-09-01",
|
|
4247
|
+
protocol: "HTTPS",
|
|
4248
|
+
pathname: "/",
|
|
4249
|
+
method: "POST",
|
|
4250
|
+
authType: "AK",
|
|
4251
|
+
style: "RPC",
|
|
4252
|
+
reqBodyType: "formData",
|
|
4253
|
+
bodyType: "json",
|
|
4254
|
+
});
|
|
4255
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.ListTagResourcesResponse({}));
|
|
4256
|
+
}
|
|
4257
|
+
/**
|
|
4258
|
+
* Queries tags bound to one or more delivery groups, or filters delivery groups that have specific tags bound by tag key-value pairs.
|
|
4259
|
+
*
|
|
4260
|
+
* @remarks
|
|
4261
|
+
* 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.
|
|
4262
|
+
* ## Before you begin
|
|
4263
|
+
* - A delivery group is created. You can call the ListAppInstanceGroup operation to obtain the delivery group ID.
|
|
4264
|
+
* - 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.
|
|
4265
|
+
* ## Parameter description
|
|
4266
|
+
* - **ResourceType is required**. Only `APPINSTANCEGROUP` (delivery group) is supported. If you specify other values, the error code `InvalidResourceType.Invalid` is returned.
|
|
4267
|
+
* - **Specify at least one of ResourceId.N and Tag.N**. If neither is specified, the error code `MissingParameter.ResourceIdsOrTags` is returned.
|
|
4268
|
+
* - If only ResourceId.N is specified: all tags attached to the specified resources are returned.
|
|
4269
|
+
* - If only Tag.N is specified: all resources that have the specified tags attached and their matching tags are returned.
|
|
4270
|
+
* - If both are specified: only records of the specified resources that have the specified tags attached are returned.
|
|
4271
|
+
* - 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.
|
|
4272
|
+
* - Multiple Tag.N conditions have an AND relationship. A resource is returned only if it has all specified tags attached.
|
|
4273
|
+
* ## Response description
|
|
4274
|
+
* - Each record in the response corresponds to a resource-tag key-value pair. If a resource has multiple tags bound, multiple records are returned.
|
|
4275
|
+
* - TotalCount indicates the number of records returned.
|
|
4276
|
+
* - This operation returns all matching results at a time. An empty NextToken value indicates that no more data is available.
|
|
4277
|
+
* ## Invocation sequence
|
|
4278
|
+
* 1. Invoke the ListAppInstanceGroup operation to obtain the delivery group ID.
|
|
4279
|
+
* 2. Invoke the TagResources operation to attach tags to the delivery group.
|
|
4280
|
+
* 3. Invoke this operation to query tag bindings by resource ID or tag conditions.
|
|
4281
|
+
*
|
|
4282
|
+
* @param request - ListTagResourcesRequest
|
|
4283
|
+
* @returns ListTagResourcesResponse
|
|
4284
|
+
*/
|
|
4285
|
+
async listTagResources(request) {
|
|
4286
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
4287
|
+
return await this.listTagResourcesWithOptions(request, runtime);
|
|
4288
|
+
}
|
|
3790
4289
|
/**
|
|
3791
4290
|
* Queries the configuration information of an administrator account, such as whether resource expiration reminders are enabled.
|
|
3792
4291
|
*
|
|
@@ -3923,6 +4422,79 @@ class Client extends openapi_core_1.default {
|
|
|
3923
4422
|
let runtime = new $dara.RuntimeOptions({});
|
|
3924
4423
|
return await this.listWuyingServerWithOptions(request, runtime);
|
|
3925
4424
|
}
|
|
4425
|
+
/**
|
|
4426
|
+
* Queries the list of available zone IDs for a specified region, product type, and operating system type.
|
|
4427
|
+
*
|
|
4428
|
+
* @remarks
|
|
4429
|
+
* ## Operation description
|
|
4430
|
+
* 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.
|
|
4431
|
+
* This operation only queries information. It does not create resources or incur fees.
|
|
4432
|
+
* ## Before you begin
|
|
4433
|
+
* - 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.
|
|
4434
|
+
* - **`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.
|
|
4435
|
+
* - `BizRegionId` must be a region ID supported by WUYING Cloud Application. Call [ListRegions](~~ListRegions~~) first to obtain the supported region IDs.
|
|
4436
|
+
* ## Call sequence
|
|
4437
|
+
* 1. Call [ListRegions](~~ListRegions~~) to obtain the supported region IDs.
|
|
4438
|
+
* 2. Call this operation with the region ID, target product type, and operating system type, and read the returned `ListZonesModel.Zones`.
|
|
4439
|
+
* 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~~).
|
|
4440
|
+
* 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.
|
|
4441
|
+
*
|
|
4442
|
+
* @param request - ListZonesRequest
|
|
4443
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
4444
|
+
* @returns ListZonesResponse
|
|
4445
|
+
*/
|
|
4446
|
+
async listZonesWithOptions(request, runtime) {
|
|
4447
|
+
request.validate();
|
|
4448
|
+
let query = {};
|
|
4449
|
+
if (!$dara.isNull(request.bizRegionId)) {
|
|
4450
|
+
query["BizRegionId"] = request.bizRegionId;
|
|
4451
|
+
}
|
|
4452
|
+
if (!$dara.isNull(request.osType)) {
|
|
4453
|
+
query["OsType"] = request.osType;
|
|
4454
|
+
}
|
|
4455
|
+
if (!$dara.isNull(request.productType)) {
|
|
4456
|
+
query["ProductType"] = request.productType;
|
|
4457
|
+
}
|
|
4458
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
4459
|
+
query: openapi_core_2.OpenApiUtil.query(query),
|
|
4460
|
+
});
|
|
4461
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
4462
|
+
action: "ListZones",
|
|
4463
|
+
version: "2021-09-01",
|
|
4464
|
+
protocol: "HTTPS",
|
|
4465
|
+
pathname: "/",
|
|
4466
|
+
method: "POST",
|
|
4467
|
+
authType: "AK",
|
|
4468
|
+
style: "RPC",
|
|
4469
|
+
reqBodyType: "formData",
|
|
4470
|
+
bodyType: "json",
|
|
4471
|
+
});
|
|
4472
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.ListZonesResponse({}));
|
|
4473
|
+
}
|
|
4474
|
+
/**
|
|
4475
|
+
* Queries the list of available zone IDs for a specified region, product type, and operating system type.
|
|
4476
|
+
*
|
|
4477
|
+
* @remarks
|
|
4478
|
+
* ## Operation description
|
|
4479
|
+
* 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.
|
|
4480
|
+
* This operation only queries information. It does not create resources or incur fees.
|
|
4481
|
+
* ## Before you begin
|
|
4482
|
+
* - 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.
|
|
4483
|
+
* - **`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.
|
|
4484
|
+
* - `BizRegionId` must be a region ID supported by WUYING Cloud Application. Call [ListRegions](~~ListRegions~~) first to obtain the supported region IDs.
|
|
4485
|
+
* ## Call sequence
|
|
4486
|
+
* 1. Call [ListRegions](~~ListRegions~~) to obtain the supported region IDs.
|
|
4487
|
+
* 2. Call this operation with the region ID, target product type, and operating system type, and read the returned `ListZonesModel.Zones`.
|
|
4488
|
+
* 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~~).
|
|
4489
|
+
* 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.
|
|
4490
|
+
*
|
|
4491
|
+
* @param request - ListZonesRequest
|
|
4492
|
+
* @returns ListZonesResponse
|
|
4493
|
+
*/
|
|
4494
|
+
async listZones(request) {
|
|
4495
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
4496
|
+
return await this.listZonesWithOptions(request, runtime);
|
|
4497
|
+
}
|
|
3926
4498
|
/**
|
|
3927
4499
|
* Logs off all sessions in a pay-as-you-go delivery group that has scheduled auto scaling enabled.
|
|
3928
4500
|
*
|
|
@@ -4107,10 +4679,10 @@ class Client extends openapi_core_1.default {
|
|
|
4107
4679
|
return await this.modifyAppPolicyWithOptions(request, runtime);
|
|
4108
4680
|
}
|
|
4109
4681
|
/**
|
|
4110
|
-
* Modifies the attributes of a Wuying
|
|
4682
|
+
* Modifies the attributes of a Wuying cloud browser.
|
|
4111
4683
|
*
|
|
4112
4684
|
* @remarks
|
|
4113
|
-
* Modifies the attributes of a Wuying
|
|
4685
|
+
* Modifies the attributes of a Wuying cloud browser.
|
|
4114
4686
|
*
|
|
4115
4687
|
* @param tmpReq - ModifyBrowserInstanceGroupRequest
|
|
4116
4688
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -4182,10 +4754,10 @@ class Client extends openapi_core_1.default {
|
|
|
4182
4754
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.ModifyBrowserInstanceGroupResponse({}));
|
|
4183
4755
|
}
|
|
4184
4756
|
/**
|
|
4185
|
-
* Modifies the attributes of a Wuying
|
|
4757
|
+
* Modifies the attributes of a Wuying cloud browser.
|
|
4186
4758
|
*
|
|
4187
4759
|
* @remarks
|
|
4188
|
-
* Modifies the attributes of a Wuying
|
|
4760
|
+
* Modifies the attributes of a Wuying cloud browser.
|
|
4189
4761
|
*
|
|
4190
4762
|
* @param request - ModifyBrowserInstanceGroupRequest
|
|
4191
4763
|
* @returns ModifyBrowserInstanceGroupResponse
|
|
@@ -4314,6 +4886,53 @@ class Client extends openapi_core_1.default {
|
|
|
4314
4886
|
let runtime = new $dara.RuntimeOptions({});
|
|
4315
4887
|
return await this.modifyNodePoolAttributeWithOptions(request, runtime);
|
|
4316
4888
|
}
|
|
4889
|
+
/**
|
|
4890
|
+
* @param request - ModifyShareImageRequest
|
|
4891
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
4892
|
+
* @returns ModifyShareImageResponse
|
|
4893
|
+
*/
|
|
4894
|
+
async modifyShareImageWithOptions(request, runtime) {
|
|
4895
|
+
request.validate();
|
|
4896
|
+
let body = {};
|
|
4897
|
+
if (!$dara.isNull(request.addAccount)) {
|
|
4898
|
+
body["AddAccount"] = request.addAccount;
|
|
4899
|
+
}
|
|
4900
|
+
if (!$dara.isNull(request.bizType)) {
|
|
4901
|
+
body["BizType"] = request.bizType;
|
|
4902
|
+
}
|
|
4903
|
+
if (!$dara.isNull(request.imageId)) {
|
|
4904
|
+
body["ImageId"] = request.imageId;
|
|
4905
|
+
}
|
|
4906
|
+
if (!$dara.isNull(request.productType)) {
|
|
4907
|
+
body["ProductType"] = request.productType;
|
|
4908
|
+
}
|
|
4909
|
+
if (!$dara.isNull(request.removeAccount)) {
|
|
4910
|
+
body["RemoveAccount"] = request.removeAccount;
|
|
4911
|
+
}
|
|
4912
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
4913
|
+
body: openapi_core_2.OpenApiUtil.parseToMap(body),
|
|
4914
|
+
});
|
|
4915
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
4916
|
+
action: "ModifyShareImage",
|
|
4917
|
+
version: "2021-09-01",
|
|
4918
|
+
protocol: "HTTPS",
|
|
4919
|
+
pathname: "/",
|
|
4920
|
+
method: "POST",
|
|
4921
|
+
authType: "AK",
|
|
4922
|
+
style: "RPC",
|
|
4923
|
+
reqBodyType: "formData",
|
|
4924
|
+
bodyType: "json",
|
|
4925
|
+
});
|
|
4926
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.ModifyShareImageResponse({}));
|
|
4927
|
+
}
|
|
4928
|
+
/**
|
|
4929
|
+
* @param request - ModifyShareImageRequest
|
|
4930
|
+
* @returns ModifyShareImageResponse
|
|
4931
|
+
*/
|
|
4932
|
+
async modifyShareImage(request) {
|
|
4933
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
4934
|
+
return await this.modifyShareImageWithOptions(request, runtime);
|
|
4935
|
+
}
|
|
4317
4936
|
/**
|
|
4318
4937
|
* Modifies the administrator account configuration, such as whether to enable resource expiration reminders.
|
|
4319
4938
|
*
|
|
@@ -4622,9 +5241,9 @@ class Client extends openapi_core_1.default {
|
|
|
4622
5241
|
* Renews a delivery group.
|
|
4623
5242
|
*
|
|
4624
5243
|
* @remarks
|
|
4625
|
-
*
|
|
5244
|
+
* Make sure you understand the [billing methods and pricing](https://help.aliyun.com/document_detail/426039.html) of WUYING Workspace before calling this operation.
|
|
4626
5245
|
* > Prerequisites:
|
|
4627
|
-
* > - The delivery group must be in the PUBLISHED state
|
|
5246
|
+
* > - The delivery group must be in the PUBLISHED state and ChargeType must be PrePaid.
|
|
4628
5247
|
*
|
|
4629
5248
|
* @param tmpReq - RenewAppInstanceGroupRequest
|
|
4630
5249
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -4685,9 +5304,9 @@ class Client extends openapi_core_1.default {
|
|
|
4685
5304
|
* Renews a delivery group.
|
|
4686
5305
|
*
|
|
4687
5306
|
* @remarks
|
|
4688
|
-
*
|
|
5307
|
+
* Make sure you understand the [billing methods and pricing](https://help.aliyun.com/document_detail/426039.html) of WUYING Workspace before calling this operation.
|
|
4689
5308
|
* > Prerequisites:
|
|
4690
|
-
* > - The delivery group must be in the PUBLISHED state
|
|
5309
|
+
* > - The delivery group must be in the PUBLISHED state and ChargeType must be PrePaid.
|
|
4691
5310
|
*
|
|
4692
5311
|
* @param request - RenewAppInstanceGroupRequest
|
|
4693
5312
|
* @returns RenewAppInstanceGroupResponse
|
|
@@ -4937,7 +5556,7 @@ class Client extends openapi_core_1.default {
|
|
|
4937
5556
|
return await this.stopWuyingServerWithOptions(request, runtime);
|
|
4938
5557
|
}
|
|
4939
5558
|
/**
|
|
4940
|
-
* Creates and
|
|
5559
|
+
* Creates and binds tags to cloud resources, and updates the values of existing tags.
|
|
4941
5560
|
*
|
|
4942
5561
|
* @param request - TagCloudResourcesRequest
|
|
4943
5562
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -4972,7 +5591,7 @@ class Client extends openapi_core_1.default {
|
|
|
4972
5591
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.TagCloudResourcesResponse({}));
|
|
4973
5592
|
}
|
|
4974
5593
|
/**
|
|
4975
|
-
* Creates and
|
|
5594
|
+
* Creates and binds tags to cloud resources, and updates the values of existing tags.
|
|
4976
5595
|
*
|
|
4977
5596
|
* @param request - TagCloudResourcesRequest
|
|
4978
5597
|
* @returns TagCloudResourcesResponse
|
|
@@ -4981,6 +5600,96 @@ class Client extends openapi_core_1.default {
|
|
|
4981
5600
|
let runtime = new $dara.RuntimeOptions({});
|
|
4982
5601
|
return await this.tagCloudResourcesWithOptions(request, runtime);
|
|
4983
5602
|
}
|
|
5603
|
+
/**
|
|
5604
|
+
* 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.
|
|
5605
|
+
*
|
|
5606
|
+
* @remarks
|
|
5607
|
+
* ## Before you begin
|
|
5608
|
+
* When you use a RAM user or Security Token Service (STS) credential to call this operation, you must have the `appstreaming:TagResources` permission.
|
|
5609
|
+
* 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.
|
|
5610
|
+
* ## Tag rules
|
|
5611
|
+
* - In a single request, you can bind up to **20 tags** to up to **50 resources**. Duplicate resource IDs are automatically deduplicated.
|
|
5612
|
+
* - 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.
|
|
5613
|
+
* - A tag key cannot start with `aliyun` or `acs:` (case-insensitive). Neither tag keys nor tag values can contain `http://` or `https://`.
|
|
5614
|
+
* - Tag keys in the same request must be unique. Otherwise, the error code `InvalidTag.Duplicated` is returned.
|
|
5615
|
+
* - 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.
|
|
5616
|
+
* - 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.
|
|
5617
|
+
* ## Results
|
|
5618
|
+
* - **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.
|
|
5619
|
+
* - If the binding succeeds, the response contains only `RequestId` and does not return tag details.
|
|
5620
|
+
* - 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.
|
|
5621
|
+
* ## Call sequence
|
|
5622
|
+
* 1. Call [ListAppInstanceGroup](~~ListAppInstanceGroup~~) to obtain the IDs of the delivery groups to which you want to add tags.
|
|
5623
|
+
* 2. Call this operation with `ResourceType=APPINSTANCEGROUP`, `ResourceId.N`, and `Tag.N.Key`/`Tag.N.Value`.
|
|
5624
|
+
* 3. To view the tags bound to resources, call `ListTagResources`. To unbind tags, call `UntagResources`.
|
|
5625
|
+
* The masked identifiers in the examples are used to demonstrate the format. Replace them with your actual identifiers when you call the operation.
|
|
5626
|
+
*
|
|
5627
|
+
* @param request - TagResourcesRequest
|
|
5628
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
5629
|
+
* @returns TagResourcesResponse
|
|
5630
|
+
*/
|
|
5631
|
+
async tagResourcesWithOptions(request, runtime) {
|
|
5632
|
+
request.validate();
|
|
5633
|
+
let body = {};
|
|
5634
|
+
if (!$dara.isNull(request.regionId)) {
|
|
5635
|
+
body["RegionId"] = request.regionId;
|
|
5636
|
+
}
|
|
5637
|
+
if (!$dara.isNull(request.resourceId)) {
|
|
5638
|
+
body["ResourceId"] = request.resourceId;
|
|
5639
|
+
}
|
|
5640
|
+
if (!$dara.isNull(request.resourceType)) {
|
|
5641
|
+
body["ResourceType"] = request.resourceType;
|
|
5642
|
+
}
|
|
5643
|
+
if (!$dara.isNull(request.tag)) {
|
|
5644
|
+
body["Tag"] = request.tag;
|
|
5645
|
+
}
|
|
5646
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
5647
|
+
body: openapi_core_2.OpenApiUtil.parseToMap(body),
|
|
5648
|
+
});
|
|
5649
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
5650
|
+
action: "TagResources",
|
|
5651
|
+
version: "2021-09-01",
|
|
5652
|
+
protocol: "HTTPS",
|
|
5653
|
+
pathname: "/",
|
|
5654
|
+
method: "POST",
|
|
5655
|
+
authType: "AK",
|
|
5656
|
+
style: "RPC",
|
|
5657
|
+
reqBodyType: "formData",
|
|
5658
|
+
bodyType: "json",
|
|
5659
|
+
});
|
|
5660
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.TagResourcesResponse({}));
|
|
5661
|
+
}
|
|
5662
|
+
/**
|
|
5663
|
+
* 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.
|
|
5664
|
+
*
|
|
5665
|
+
* @remarks
|
|
5666
|
+
* ## Before you begin
|
|
5667
|
+
* When you use a RAM user or Security Token Service (STS) credential to call this operation, you must have the `appstreaming:TagResources` permission.
|
|
5668
|
+
* 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.
|
|
5669
|
+
* ## Tag rules
|
|
5670
|
+
* - In a single request, you can bind up to **20 tags** to up to **50 resources**. Duplicate resource IDs are automatically deduplicated.
|
|
5671
|
+
* - 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.
|
|
5672
|
+
* - A tag key cannot start with `aliyun` or `acs:` (case-insensitive). Neither tag keys nor tag values can contain `http://` or `https://`.
|
|
5673
|
+
* - Tag keys in the same request must be unique. Otherwise, the error code `InvalidTag.Duplicated` is returned.
|
|
5674
|
+
* - 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.
|
|
5675
|
+
* - 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.
|
|
5676
|
+
* ## Results
|
|
5677
|
+
* - **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.
|
|
5678
|
+
* - If the binding succeeds, the response contains only `RequestId` and does not return tag details.
|
|
5679
|
+
* - 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.
|
|
5680
|
+
* ## Call sequence
|
|
5681
|
+
* 1. Call [ListAppInstanceGroup](~~ListAppInstanceGroup~~) to obtain the IDs of the delivery groups to which you want to add tags.
|
|
5682
|
+
* 2. Call this operation with `ResourceType=APPINSTANCEGROUP`, `ResourceId.N`, and `Tag.N.Key`/`Tag.N.Value`.
|
|
5683
|
+
* 3. To view the tags bound to resources, call `ListTagResources`. To unbind tags, call `UntagResources`.
|
|
5684
|
+
* The masked identifiers in the examples are used to demonstrate the format. Replace them with your actual identifiers when you call the operation.
|
|
5685
|
+
*
|
|
5686
|
+
* @param request - TagResourcesRequest
|
|
5687
|
+
* @returns TagResourcesResponse
|
|
5688
|
+
*/
|
|
5689
|
+
async tagResources(request) {
|
|
5690
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
5691
|
+
return await this.tagResourcesWithOptions(request, runtime);
|
|
5692
|
+
}
|
|
4984
5693
|
/**
|
|
4985
5694
|
* Unbinds secondary private IP addresses from a development host.
|
|
4986
5695
|
*
|
|
@@ -5119,6 +5828,99 @@ class Client extends openapi_core_1.default {
|
|
|
5119
5828
|
let runtime = new $dara.RuntimeOptions({});
|
|
5120
5829
|
return await this.untagCloudResourcesWithOptions(request, runtime);
|
|
5121
5830
|
}
|
|
5831
|
+
/**
|
|
5832
|
+
* Untags the specified Wuying app instance groups according to Alibaba Cloud tagging specifications. You can remove specific tags by specifying tag keys, or remove all custom tags from the resources at once by setting `All=true` without specifying tag keys. Currently, only the app instance group (`APPINSTANCEGROUP`) resource type is supported.
|
|
5833
|
+
*
|
|
5834
|
+
* @remarks
|
|
5835
|
+
* ## Prerequisites
|
|
5836
|
+
* To call this operation as a RAM user or by using STS credentials, you must have the `appstreaming:UntagResources` permission.
|
|
5837
|
+
* The resources to be untagged must belong to the current Alibaba Cloud account. **This operation currently supports only app instance group resources**. You must set `ResourceType` to `APPINSTANCEGROUP`. You can call the [ListAppInstanceGroup](~~ListAppInstanceGroup~~) operation to obtain the app instance group ID, and call the [ListTagResources](~~ListTagResources~~) operation to query the tags bound to the resources.
|
|
5838
|
+
* ## Metric description
|
|
5839
|
+
* - A single request can detach labels from up to **50 resources**. Duplicate resource IDs are automatically deduplicated.
|
|
5840
|
+
* - **You must 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 operation returns the error code `InvalidParameter.TagKeyListOrAll`.
|
|
5841
|
+
* - If `TagKey.N` is specified: Only the labels corresponding to these label keys are detached. A maximum of 20 label keys can be specified in a single request. In this case, the `All` parameter is ignored.
|
|
5842
|
+
* - If `TagKey.N` is not specified and `All` is set to `true`: All custom labels on the resources are detached, including Wuying system labels that start with `System/` and were attached by calling the [TagResources](~~TagResources~~) operation.
|
|
5843
|
+
* - If a specified label key does not exist on a resource, the label key is skipped and no fault is returned.
|
|
5844
|
+
* - Label keys that start with `System/` are Wuying system labels. Only `System/Scheduler/GRAYSCALE` and `System/Scheduler/STOP_NEW_USER_CONNECTION` are supported. If you specify other label keys that start with `System/`, the operation returns the error code `InvalidTagPolicy.KeyInvalid` or `InvalidTag.SystemKeyNotAllow`.
|
|
5845
|
+
* ## Execution results
|
|
5846
|
+
* - **If any specified app instance group does not exist or does not belong to the current account, the entire request fails**, and the operation returns the error code `InvalidAppInstanceGroup.NotFound`. No resources are untagged.
|
|
5847
|
+
* - If the untagging is successful, the response contains only `RequestId` and does not return tag details.
|
|
5848
|
+
* - If multiple resources are specified and the untagging fails for only some of the resources, the operation still returns a success response, and the response does not contain failure details. Call the [ListTagResources](~~ListTagResources~~) operation to verify the untagging results. If only one resource is specified and the untagging fails, the operation directly returns the corresponding error code.
|
|
5849
|
+
* ## Call sequence
|
|
5850
|
+
* 1. Call the [ListAppInstanceGroup](~~ListAppInstanceGroup~~) operation to obtain the app instance group ID. To confirm the tag keys bound to the resources, call the [ListTagResources](~~ListTagResources~~) operation.
|
|
5851
|
+
* 2. Call this operation, specify `ResourceType=APPINSTANCEGROUP` and `ResourceId.N`, and specify `TagKey.N` or set `All=true` to indicate the tags to be removed.
|
|
5852
|
+
* 3. To rebind tags, call the [TagResources](~~TagResources~~) operation.
|
|
5853
|
+
* The masked identifiers in the examples are used to demonstrate the format. Replace them with your actual identifiers when you call the operation.
|
|
5854
|
+
*
|
|
5855
|
+
* @param request - UntagResourcesRequest
|
|
5856
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
5857
|
+
* @returns UntagResourcesResponse
|
|
5858
|
+
*/
|
|
5859
|
+
async untagResourcesWithOptions(request, runtime) {
|
|
5860
|
+
request.validate();
|
|
5861
|
+
let body = {};
|
|
5862
|
+
if (!$dara.isNull(request.all)) {
|
|
5863
|
+
body["All"] = request.all;
|
|
5864
|
+
}
|
|
5865
|
+
if (!$dara.isNull(request.regionId)) {
|
|
5866
|
+
body["RegionId"] = request.regionId;
|
|
5867
|
+
}
|
|
5868
|
+
if (!$dara.isNull(request.resourceId)) {
|
|
5869
|
+
body["ResourceId"] = request.resourceId;
|
|
5870
|
+
}
|
|
5871
|
+
if (!$dara.isNull(request.resourceType)) {
|
|
5872
|
+
body["ResourceType"] = request.resourceType;
|
|
5873
|
+
}
|
|
5874
|
+
if (!$dara.isNull(request.tagKey)) {
|
|
5875
|
+
body["TagKey"] = request.tagKey;
|
|
5876
|
+
}
|
|
5877
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
5878
|
+
body: openapi_core_2.OpenApiUtil.parseToMap(body),
|
|
5879
|
+
});
|
|
5880
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
5881
|
+
action: "UntagResources",
|
|
5882
|
+
version: "2021-09-01",
|
|
5883
|
+
protocol: "HTTPS",
|
|
5884
|
+
pathname: "/",
|
|
5885
|
+
method: "POST",
|
|
5886
|
+
authType: "AK",
|
|
5887
|
+
style: "RPC",
|
|
5888
|
+
reqBodyType: "formData",
|
|
5889
|
+
bodyType: "json",
|
|
5890
|
+
});
|
|
5891
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.UntagResourcesResponse({}));
|
|
5892
|
+
}
|
|
5893
|
+
/**
|
|
5894
|
+
* Untags the specified Wuying app instance groups according to Alibaba Cloud tagging specifications. You can remove specific tags by specifying tag keys, or remove all custom tags from the resources at once by setting `All=true` without specifying tag keys. Currently, only the app instance group (`APPINSTANCEGROUP`) resource type is supported.
|
|
5895
|
+
*
|
|
5896
|
+
* @remarks
|
|
5897
|
+
* ## Prerequisites
|
|
5898
|
+
* To call this operation as a RAM user or by using STS credentials, you must have the `appstreaming:UntagResources` permission.
|
|
5899
|
+
* The resources to be untagged must belong to the current Alibaba Cloud account. **This operation currently supports only app instance group resources**. You must set `ResourceType` to `APPINSTANCEGROUP`. You can call the [ListAppInstanceGroup](~~ListAppInstanceGroup~~) operation to obtain the app instance group ID, and call the [ListTagResources](~~ListTagResources~~) operation to query the tags bound to the resources.
|
|
5900
|
+
* ## Metric description
|
|
5901
|
+
* - A single request can detach labels from up to **50 resources**. Duplicate resource IDs are automatically deduplicated.
|
|
5902
|
+
* - **You must 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 operation returns the error code `InvalidParameter.TagKeyListOrAll`.
|
|
5903
|
+
* - If `TagKey.N` is specified: Only the labels corresponding to these label keys are detached. A maximum of 20 label keys can be specified in a single request. In this case, the `All` parameter is ignored.
|
|
5904
|
+
* - If `TagKey.N` is not specified and `All` is set to `true`: All custom labels on the resources are detached, including Wuying system labels that start with `System/` and were attached by calling the [TagResources](~~TagResources~~) operation.
|
|
5905
|
+
* - If a specified label key does not exist on a resource, the label key is skipped and no fault is returned.
|
|
5906
|
+
* - Label keys that start with `System/` are Wuying system labels. Only `System/Scheduler/GRAYSCALE` and `System/Scheduler/STOP_NEW_USER_CONNECTION` are supported. If you specify other label keys that start with `System/`, the operation returns the error code `InvalidTagPolicy.KeyInvalid` or `InvalidTag.SystemKeyNotAllow`.
|
|
5907
|
+
* ## Execution results
|
|
5908
|
+
* - **If any specified app instance group does not exist or does not belong to the current account, the entire request fails**, and the operation returns the error code `InvalidAppInstanceGroup.NotFound`. No resources are untagged.
|
|
5909
|
+
* - If the untagging is successful, the response contains only `RequestId` and does not return tag details.
|
|
5910
|
+
* - If multiple resources are specified and the untagging fails for only some of the resources, the operation still returns a success response, and the response does not contain failure details. Call the [ListTagResources](~~ListTagResources~~) operation to verify the untagging results. If only one resource is specified and the untagging fails, the operation directly returns the corresponding error code.
|
|
5911
|
+
* ## Call sequence
|
|
5912
|
+
* 1. Call the [ListAppInstanceGroup](~~ListAppInstanceGroup~~) operation to obtain the app instance group ID. To confirm the tag keys bound to the resources, call the [ListTagResources](~~ListTagResources~~) operation.
|
|
5913
|
+
* 2. Call this operation, specify `ResourceType=APPINSTANCEGROUP` and `ResourceId.N`, and specify `TagKey.N` or set `All=true` to indicate the tags to be removed.
|
|
5914
|
+
* 3. To rebind tags, call the [TagResources](~~TagResources~~) operation.
|
|
5915
|
+
* The masked identifiers in the examples are used to demonstrate the format. Replace them with your actual identifiers when you call the operation.
|
|
5916
|
+
*
|
|
5917
|
+
* @param request - UntagResourcesRequest
|
|
5918
|
+
* @returns UntagResourcesResponse
|
|
5919
|
+
*/
|
|
5920
|
+
async untagResources(request) {
|
|
5921
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
5922
|
+
return await this.untagResourcesWithOptions(request, runtime);
|
|
5923
|
+
}
|
|
5122
5924
|
/**
|
|
5123
5925
|
* Updates the image of a delivery group.
|
|
5124
5926
|
*
|