@alicloud/ecd20200930 4.25.5 → 5.0.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 +66 -103
- package/dist/client.js +104 -142
- package/dist/client.js.map +1 -1
- package/dist/models/CreateAndBindNasFileSystemRequest.d.ts +7 -19
- package/dist/models/CreateAndBindNasFileSystemRequest.js.map +1 -1
- package/dist/models/CreateDesktopsRequest.d.ts +106 -128
- package/dist/models/CreateDesktopsRequest.js +4 -0
- package/dist/models/CreateDesktopsRequest.js.map +1 -1
- package/dist/models/CreateDesktopsResponseBody.d.ts +2 -3
- package/dist/models/CreateDesktopsResponseBody.js.map +1 -1
- package/dist/models/CreateDesktopsShrinkRequest.d.ts +89 -99
- package/dist/models/CreateDesktopsShrinkRequest.js +4 -0
- package/dist/models/CreateDesktopsShrinkRequest.js.map +1 -1
- package/dist/models/CreateNetworkPackageRequest.d.ts +32 -25
- package/dist/models/CreateNetworkPackageRequest.js +27 -1
- package/dist/models/CreateNetworkPackageRequest.js.map +1 -1
- package/dist/models/CreateNetworkPackageResponseBody.d.ts +3 -3
- package/dist/models/DescribeCenterPolicyListRequest.d.ts +5 -4
- package/dist/models/DescribeCenterPolicyListRequest.js.map +1 -1
- package/dist/models/DescribeCenterPolicyListResponseBody.d.ts +85 -84
- package/dist/models/DescribeCenterPolicyListResponseBody.js +10 -0
- package/dist/models/DescribeCenterPolicyListResponseBody.js.map +1 -1
- package/dist/models/DescribeNetworkPackagesRequest.d.ts +22 -14
- package/dist/models/DescribeNetworkPackagesRequest.js +27 -1
- package/dist/models/DescribeNetworkPackagesRequest.js.map +1 -1
- package/dist/models/DescribeNetworkPackagesResponseBody.d.ts +36 -98
- package/dist/models/DescribeNetworkPackagesResponseBody.js +27 -1
- package/dist/models/DescribeNetworkPackagesResponseBody.js.map +1 -1
- package/dist/models/DescribeTemplatesRequest.d.ts +11 -11
- package/dist/models/DescribeTemplatesResponseBody.d.ts +45 -45
- package/dist/models/ListTagResourcesRequest.d.ts +7 -11
- package/dist/models/ListTagResourcesRequest.js.map +1 -1
- package/dist/models/ListTagResourcesResponseBody.d.ts +5 -9
- package/dist/models/ListTagResourcesResponseBody.js.map +1 -1
- package/dist/models/ModifyAutoSnapshotPolicyRequest.d.ts +11 -4
- package/dist/models/ModifyAutoSnapshotPolicyRequest.js.map +1 -1
- package/dist/models/SetDirectorySsoStatusRequest.d.ts +4 -6
- package/dist/models/SetDirectorySsoStatusRequest.js.map +1 -1
- package/dist/models/TagResourcesRequest.d.ts +6 -10
- package/dist/models/TagResourcesRequest.js.map +1 -1
- package/dist/models/UntagResourcesRequest.d.ts +2 -6
- package/dist/models/UntagResourcesRequest.js.map +1 -1
- package/dist/models/model.d.ts +3 -4
- package/dist/models/model.js +37 -39
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +108 -150
- package/src/models/CreateAndBindNasFileSystemRequest.ts +7 -19
- package/src/models/CreateDesktopsRequest.ts +110 -128
- package/src/models/CreateDesktopsResponseBody.ts +2 -3
- package/src/models/CreateDesktopsShrinkRequest.ts +93 -99
- package/src/models/CreateNetworkPackageRequest.ts +49 -25
- package/src/models/CreateNetworkPackageResponseBody.ts +3 -3
- package/src/models/DescribeCenterPolicyListRequest.ts +5 -4
- package/src/models/DescribeCenterPolicyListResponseBody.ts +95 -84
- package/src/models/DescribeNetworkPackagesRequest.ts +39 -14
- package/src/models/DescribeNetworkPackagesResponseBody.ts +53 -98
- package/src/models/DescribeTemplatesRequest.ts +11 -11
- package/src/models/DescribeTemplatesResponseBody.ts +45 -45
- package/src/models/ListTagResourcesRequest.ts +7 -11
- package/src/models/ListTagResourcesResponseBody.ts +5 -9
- package/src/models/ModifyAutoSnapshotPolicyRequest.ts +11 -4
- package/src/models/SetDirectorySsoStatusRequest.ts +4 -6
- package/src/models/TagResourcesRequest.ts +6 -10
- package/src/models/UntagResourcesRequest.ts +2 -6
- package/src/models/model.ts +3 -4
- package/dist/models/DescribeFlowStatisticRequest.d.ts +0 -76
- package/dist/models/DescribeFlowStatisticRequest.js +0 -68
- package/dist/models/DescribeFlowStatisticRequest.js.map +0 -1
- package/dist/models/DescribeFlowStatisticResponse.d.ts +0 -19
- package/dist/models/DescribeFlowStatisticResponse.js +0 -69
- package/dist/models/DescribeFlowStatisticResponse.js.map +0 -1
- package/dist/models/DescribeFlowStatisticResponseBody.d.ts +0 -78
- package/dist/models/DescribeFlowStatisticResponseBody.js +0 -90
- package/dist/models/DescribeFlowStatisticResponseBody.js.map +0 -1
- package/src/models/DescribeFlowStatisticRequest.ts +0 -99
- package/src/models/DescribeFlowStatisticResponse.ts +0 -40
- package/src/models/DescribeFlowStatisticResponseBody.ts +0 -114
package/dist/client.js
CHANGED
|
@@ -49,6 +49,32 @@ class Client extends openapi_core_1.default {
|
|
|
49
49
|
constructor(config) {
|
|
50
50
|
super(config);
|
|
51
51
|
this._endpointRule = "regional";
|
|
52
|
+
this._endpointMap = {
|
|
53
|
+
'us-west-1': "ecd.us-west-1.aliyuncs.com",
|
|
54
|
+
'us-east-1': "ecd.us-east-1.aliyuncs.com",
|
|
55
|
+
'me-east-1': "ecd.me-east-1.aliyuncs.com",
|
|
56
|
+
'me-central-1': "ecd.me-central-1.aliyuncs.com",
|
|
57
|
+
'eu-west-1': "ecd.eu-west-1.aliyuncs.com",
|
|
58
|
+
'eu-central-1': "ecd.eu-central-1.aliyuncs.com",
|
|
59
|
+
'cn-zhangjiakou': "ecd.cn-zhangjiakou.aliyuncs.com",
|
|
60
|
+
'cn-wulanchabu': "ecd.cn-wulanchabu.aliyuncs.com",
|
|
61
|
+
'cn-shenzhen': "ecd.cn-shenzhen.aliyuncs.com",
|
|
62
|
+
'cn-shanghai-finance-1': "ecd.cn-shanghai-finance-1.aliyuncs.com",
|
|
63
|
+
'cn-shanghai': "ecd.cn-shanghai.aliyuncs.com",
|
|
64
|
+
'cn-qingdao': "ecd.cn-qingdao.aliyuncs.com",
|
|
65
|
+
'cn-nanjing': "ecd.cn-nanjing.aliyuncs.com",
|
|
66
|
+
'cn-hongkong': "ecd.cn-hongkong.aliyuncs.com",
|
|
67
|
+
'cn-hangzhou-finance': "ecd.cn-hangzhou-finance.aliyuncs.com",
|
|
68
|
+
'cn-hangzhou': "ecd.cn-hangzhou.aliyuncs.com",
|
|
69
|
+
'cn-guangzhou': "ecd.cn-guangzhou.aliyuncs.com",
|
|
70
|
+
'cn-chengdu': "ecd.cn-chengdu.aliyuncs.com",
|
|
71
|
+
'cn-beijing': "ecd.cn-beijing.aliyuncs.com",
|
|
72
|
+
'ap-southeast-7': "ecd.ap-southeast-7.aliyuncs.com",
|
|
73
|
+
'ap-southeast-6': "ecd.ap-southeast-6.aliyuncs.com",
|
|
74
|
+
'ap-southeast-5': "ecd.ap-southeast-5.aliyuncs.com",
|
|
75
|
+
'ap-southeast-1': "ecd.ap-southeast-1.aliyuncs.com",
|
|
76
|
+
'ap-northeast-1': "ecd.ap-northeast-1.aliyuncs.com",
|
|
77
|
+
};
|
|
52
78
|
this.checkConfig(config);
|
|
53
79
|
this._endpoint = this.getEndpoint("ecd", this._regionId, this._endpointRule, this._network, this._suffix, this._endpointMap, this._endpoint);
|
|
54
80
|
}
|
|
@@ -1771,7 +1797,7 @@ class Client extends openapi_core_1.default {
|
|
|
1771
1797
|
return await this.createADConnectorOfficeSiteWithOptions(request, runtime);
|
|
1772
1798
|
}
|
|
1773
1799
|
/**
|
|
1774
|
-
* Creates a NAS file system and
|
|
1800
|
+
* Creates a NAS file system and binds it to the office network of a shared cloud computer.
|
|
1775
1801
|
*
|
|
1776
1802
|
* @param request - CreateAndBindNasFileSystemRequest
|
|
1777
1803
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -1821,7 +1847,7 @@ class Client extends openapi_core_1.default {
|
|
|
1821
1847
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.CreateAndBindNasFileSystemResponse({}));
|
|
1822
1848
|
}
|
|
1823
1849
|
/**
|
|
1824
|
-
* Creates a NAS file system and
|
|
1850
|
+
* Creates a NAS file system and binds it to the office network of a shared cloud computer.
|
|
1825
1851
|
*
|
|
1826
1852
|
* @param request - CreateAndBindNasFileSystemRequest
|
|
1827
1853
|
* @returns CreateAndBindNasFileSystemResponse
|
|
@@ -3162,25 +3188,23 @@ class Client extends openapi_core_1.default {
|
|
|
3162
3188
|
return await this.createDesktopOversoldGroupWithOptions(request, runtime);
|
|
3163
3189
|
}
|
|
3164
3190
|
/**
|
|
3165
|
-
* Creates one or more
|
|
3191
|
+
* Creates one or more cloud desktops. If user information is specified during creation, the cloud desktops are directly assigned to the users.
|
|
3166
3192
|
*
|
|
3167
3193
|
* @remarks
|
|
3168
|
-
* Before
|
|
3169
|
-
* - Create an office
|
|
3170
|
-
*
|
|
3171
|
-
*
|
|
3172
|
-
* - Call [CreatePolicyGroup](https://help.aliyun.com/document_detail/188889.html) to create a policy, or
|
|
3173
|
-
* **
|
|
3194
|
+
* Before creating cloud desktops, complete the following preparations:
|
|
3195
|
+
* - Create an office network (formerly workspace) and users. For more information, see the following API operations or documentation:
|
|
3196
|
+
* - Convenience office network: [CreateSimpleOfficeSite](https://help.aliyun.com/document_detail/215416.html) and [CreateUsers](https://help.aliyun.com/document_detail/437832.html).
|
|
3197
|
+
* - AD office network: [CreateADConnectorOfficeSite](https://help.aliyun.com/document_detail/215417.html) and [Create AD users](https://help.aliyun.com/document_detail/188619.html).
|
|
3198
|
+
* - Call [CreatePolicyGroup](https://help.aliyun.com/document_detail/188889.html) to create a policy, or confirm that an existing policy is available.
|
|
3199
|
+
* **Call examples:**
|
|
3174
3200
|
* <details>
|
|
3175
|
-
* <summary>
|
|
3176
|
-
* Example: Create a cloud desktop from a bundle
|
|
3177
|
-
* </summary>
|
|
3201
|
+
* <summary>Example of creating with a template</summary>
|
|
3178
3202
|
* ```
|
|
3179
3203
|
* {
|
|
3180
|
-
* "RegionId": "
|
|
3204
|
+
* "RegionId": "ap-southeast-1",
|
|
3181
3205
|
* "DesktopName": "test-desktop-name",
|
|
3182
3206
|
* "Amount": "1",
|
|
3183
|
-
* "OfficeSiteId": "
|
|
3207
|
+
* "OfficeSiteId": "ap-southeast-1+dir-xxx",// Create an office network in advance
|
|
3184
3208
|
* "PolicyGroupId": "system-all-enabled-policy",
|
|
3185
3209
|
* "ChargeType": "PostPaid",
|
|
3186
3210
|
* "BundleId": "b-enterprise_office_8c16g_windows2022"
|
|
@@ -3188,15 +3212,13 @@ class Client extends openapi_core_1.default {
|
|
|
3188
3212
|
* ```
|
|
3189
3213
|
* </details>
|
|
3190
3214
|
* <details>
|
|
3191
|
-
* <summary>
|
|
3192
|
-
* Example: Create a cloud desktop with custom settings
|
|
3193
|
-
* </summary>
|
|
3215
|
+
* <summary>Example of creating without a template</summary>
|
|
3194
3216
|
* ```
|
|
3195
3217
|
* {
|
|
3196
|
-
* "RegionId": "
|
|
3218
|
+
* "RegionId": "ap-southeast-1",
|
|
3197
3219
|
* "DesktopName": "test-desktop-name",
|
|
3198
3220
|
* "Amount": "1",
|
|
3199
|
-
* "OfficeSiteId": "
|
|
3221
|
+
* "OfficeSiteId": "ap-southeast-1+dir-xxx",// Create an office network in advance
|
|
3200
3222
|
* "PolicyGroupId": "system-all-enabled-policy",
|
|
3201
3223
|
* "ChargeType": "PostPaid",
|
|
3202
3224
|
* "DesktopAttachment": {
|
|
@@ -3210,15 +3232,13 @@ class Client extends openapi_core_1.default {
|
|
|
3210
3232
|
* ```
|
|
3211
3233
|
* </details>
|
|
3212
3234
|
* <details>
|
|
3213
|
-
* <summary>
|
|
3214
|
-
* Example: Create a cloud desktop with a monthly usage package
|
|
3215
|
-
* </summary>
|
|
3235
|
+
* <summary>Example of creating a monthly hourly package</summary>
|
|
3216
3236
|
* ```
|
|
3217
3237
|
* {
|
|
3218
|
-
* "RegionId": "
|
|
3238
|
+
* "RegionId": "ap-southeast-1",
|
|
3219
3239
|
* "DesktopName": "test-desktop-name",
|
|
3220
3240
|
* "Amount": "1",
|
|
3221
|
-
* "OfficeSiteId": "
|
|
3241
|
+
* "OfficeSiteId": "ap-southeast-1+dir-xxx",// Create an office network in advance
|
|
3222
3242
|
* "PolicyGroupId": "system-all-enabled-policy",
|
|
3223
3243
|
* "ChargeType": "PostPaid",
|
|
3224
3244
|
* "DesktopAttachment": {
|
|
@@ -3237,16 +3257,14 @@ class Client extends openapi_core_1.default {
|
|
|
3237
3257
|
* ```
|
|
3238
3258
|
* </details>
|
|
3239
3259
|
* <details>
|
|
3240
|
-
* <summary>
|
|
3241
|
-
* Example: Create an agent resource
|
|
3242
|
-
* </summary>
|
|
3260
|
+
* <summary>Example of creating an Agent resource</summary>
|
|
3243
3261
|
* ```
|
|
3244
3262
|
* {
|
|
3245
|
-
* "RegionId": "
|
|
3263
|
+
* "RegionId": "ap-southeast-1",
|
|
3246
3264
|
* "BundleId": "b-openclaw-linux",
|
|
3247
3265
|
* "DesktopName": "test-desktop-name",
|
|
3248
3266
|
* "Amount": "1",
|
|
3249
|
-
* "OfficeSiteId": "
|
|
3267
|
+
* "OfficeSiteId": "ap-southeast-1+dir-xxx",// Create an office network in advance
|
|
3250
3268
|
* "ChargeType": "PostPaid",
|
|
3251
3269
|
* "DesktopAttachment": {
|
|
3252
3270
|
* "DesktopType": "cloud.space.4c.8g"
|
|
@@ -3259,7 +3277,7 @@ class Client extends openapi_core_1.default {
|
|
|
3259
3277
|
* }
|
|
3260
3278
|
* ```
|
|
3261
3279
|
* </details>
|
|
3262
|
-
* To
|
|
3280
|
+
* To have cloud desktops automatically run custom command scripts, use the `UserCommands` field to configure custom commands.
|
|
3263
3281
|
*
|
|
3264
3282
|
* @param tmpReq - CreateDesktopsRequest
|
|
3265
3283
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -3336,6 +3354,9 @@ class Client extends openapi_core_1.default {
|
|
|
3336
3354
|
if (!$dara.isNull(request.officeSiteId)) {
|
|
3337
3355
|
query["OfficeSiteId"] = request.officeSiteId;
|
|
3338
3356
|
}
|
|
3357
|
+
if (!$dara.isNull(request.ouPath)) {
|
|
3358
|
+
query["OuPath"] = request.ouPath;
|
|
3359
|
+
}
|
|
3339
3360
|
if (!$dara.isNull(request.period)) {
|
|
3340
3361
|
query["Period"] = request.period;
|
|
3341
3362
|
}
|
|
@@ -3369,6 +3390,9 @@ class Client extends openapi_core_1.default {
|
|
|
3369
3390
|
if (!$dara.isNull(request.snapshotPolicyId)) {
|
|
3370
3391
|
query["SnapshotPolicyId"] = request.snapshotPolicyId;
|
|
3371
3392
|
}
|
|
3393
|
+
if (!$dara.isNull(request.subPayType)) {
|
|
3394
|
+
query["SubPayType"] = request.subPayType;
|
|
3395
|
+
}
|
|
3372
3396
|
if (!$dara.isNull(request.subnetId)) {
|
|
3373
3397
|
query["SubnetId"] = request.subnetId;
|
|
3374
3398
|
}
|
|
@@ -3413,25 +3437,23 @@ class Client extends openapi_core_1.default {
|
|
|
3413
3437
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.CreateDesktopsResponse({}));
|
|
3414
3438
|
}
|
|
3415
3439
|
/**
|
|
3416
|
-
* Creates one or more
|
|
3440
|
+
* Creates one or more cloud desktops. If user information is specified during creation, the cloud desktops are directly assigned to the users.
|
|
3417
3441
|
*
|
|
3418
3442
|
* @remarks
|
|
3419
|
-
* Before
|
|
3420
|
-
* - Create an office
|
|
3421
|
-
*
|
|
3422
|
-
*
|
|
3423
|
-
* - Call [CreatePolicyGroup](https://help.aliyun.com/document_detail/188889.html) to create a policy, or
|
|
3424
|
-
* **
|
|
3443
|
+
* Before creating cloud desktops, complete the following preparations:
|
|
3444
|
+
* - Create an office network (formerly workspace) and users. For more information, see the following API operations or documentation:
|
|
3445
|
+
* - Convenience office network: [CreateSimpleOfficeSite](https://help.aliyun.com/document_detail/215416.html) and [CreateUsers](https://help.aliyun.com/document_detail/437832.html).
|
|
3446
|
+
* - AD office network: [CreateADConnectorOfficeSite](https://help.aliyun.com/document_detail/215417.html) and [Create AD users](https://help.aliyun.com/document_detail/188619.html).
|
|
3447
|
+
* - Call [CreatePolicyGroup](https://help.aliyun.com/document_detail/188889.html) to create a policy, or confirm that an existing policy is available.
|
|
3448
|
+
* **Call examples:**
|
|
3425
3449
|
* <details>
|
|
3426
|
-
* <summary>
|
|
3427
|
-
* Example: Create a cloud desktop from a bundle
|
|
3428
|
-
* </summary>
|
|
3450
|
+
* <summary>Example of creating with a template</summary>
|
|
3429
3451
|
* ```
|
|
3430
3452
|
* {
|
|
3431
|
-
* "RegionId": "
|
|
3453
|
+
* "RegionId": "ap-southeast-1",
|
|
3432
3454
|
* "DesktopName": "test-desktop-name",
|
|
3433
3455
|
* "Amount": "1",
|
|
3434
|
-
* "OfficeSiteId": "
|
|
3456
|
+
* "OfficeSiteId": "ap-southeast-1+dir-xxx",// Create an office network in advance
|
|
3435
3457
|
* "PolicyGroupId": "system-all-enabled-policy",
|
|
3436
3458
|
* "ChargeType": "PostPaid",
|
|
3437
3459
|
* "BundleId": "b-enterprise_office_8c16g_windows2022"
|
|
@@ -3439,15 +3461,13 @@ class Client extends openapi_core_1.default {
|
|
|
3439
3461
|
* ```
|
|
3440
3462
|
* </details>
|
|
3441
3463
|
* <details>
|
|
3442
|
-
* <summary>
|
|
3443
|
-
* Example: Create a cloud desktop with custom settings
|
|
3444
|
-
* </summary>
|
|
3464
|
+
* <summary>Example of creating without a template</summary>
|
|
3445
3465
|
* ```
|
|
3446
3466
|
* {
|
|
3447
|
-
* "RegionId": "
|
|
3467
|
+
* "RegionId": "ap-southeast-1",
|
|
3448
3468
|
* "DesktopName": "test-desktop-name",
|
|
3449
3469
|
* "Amount": "1",
|
|
3450
|
-
* "OfficeSiteId": "
|
|
3470
|
+
* "OfficeSiteId": "ap-southeast-1+dir-xxx",// Create an office network in advance
|
|
3451
3471
|
* "PolicyGroupId": "system-all-enabled-policy",
|
|
3452
3472
|
* "ChargeType": "PostPaid",
|
|
3453
3473
|
* "DesktopAttachment": {
|
|
@@ -3461,15 +3481,13 @@ class Client extends openapi_core_1.default {
|
|
|
3461
3481
|
* ```
|
|
3462
3482
|
* </details>
|
|
3463
3483
|
* <details>
|
|
3464
|
-
* <summary>
|
|
3465
|
-
* Example: Create a cloud desktop with a monthly usage package
|
|
3466
|
-
* </summary>
|
|
3484
|
+
* <summary>Example of creating a monthly hourly package</summary>
|
|
3467
3485
|
* ```
|
|
3468
3486
|
* {
|
|
3469
|
-
* "RegionId": "
|
|
3487
|
+
* "RegionId": "ap-southeast-1",
|
|
3470
3488
|
* "DesktopName": "test-desktop-name",
|
|
3471
3489
|
* "Amount": "1",
|
|
3472
|
-
* "OfficeSiteId": "
|
|
3490
|
+
* "OfficeSiteId": "ap-southeast-1+dir-xxx",// Create an office network in advance
|
|
3473
3491
|
* "PolicyGroupId": "system-all-enabled-policy",
|
|
3474
3492
|
* "ChargeType": "PostPaid",
|
|
3475
3493
|
* "DesktopAttachment": {
|
|
@@ -3488,16 +3506,14 @@ class Client extends openapi_core_1.default {
|
|
|
3488
3506
|
* ```
|
|
3489
3507
|
* </details>
|
|
3490
3508
|
* <details>
|
|
3491
|
-
* <summary>
|
|
3492
|
-
* Example: Create an agent resource
|
|
3493
|
-
* </summary>
|
|
3509
|
+
* <summary>Example of creating an Agent resource</summary>
|
|
3494
3510
|
* ```
|
|
3495
3511
|
* {
|
|
3496
|
-
* "RegionId": "
|
|
3512
|
+
* "RegionId": "ap-southeast-1",
|
|
3497
3513
|
* "BundleId": "b-openclaw-linux",
|
|
3498
3514
|
* "DesktopName": "test-desktop-name",
|
|
3499
3515
|
* "Amount": "1",
|
|
3500
|
-
* "OfficeSiteId": "
|
|
3516
|
+
* "OfficeSiteId": "ap-southeast-1+dir-xxx",// Create an office network in advance
|
|
3501
3517
|
* "ChargeType": "PostPaid",
|
|
3502
3518
|
* "DesktopAttachment": {
|
|
3503
3519
|
* "DesktopType": "cloud.space.4c.8g"
|
|
@@ -3510,7 +3526,7 @@ class Client extends openapi_core_1.default {
|
|
|
3510
3526
|
* }
|
|
3511
3527
|
* ```
|
|
3512
3528
|
* </details>
|
|
3513
|
-
* To
|
|
3529
|
+
* To have cloud desktops automatically run custom command scripts, use the `UserCommands` field to configure custom commands.
|
|
3514
3530
|
*
|
|
3515
3531
|
* @param request - CreateDesktopsRequest
|
|
3516
3532
|
* @returns CreateDesktopsResponse
|
|
@@ -3928,7 +3944,7 @@ class Client extends openapi_core_1.default {
|
|
|
3928
3944
|
return await this.createNatGatewayWithOptions(request, runtime);
|
|
3929
3945
|
}
|
|
3930
3946
|
/**
|
|
3931
|
-
* Creates a
|
|
3947
|
+
* Creates a premium bandwidth plan for an office network.
|
|
3932
3948
|
*
|
|
3933
3949
|
* @param request - CreateNetworkPackageRequest
|
|
3934
3950
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -3973,6 +3989,9 @@ class Client extends openapi_core_1.default {
|
|
|
3973
3989
|
if (!$dara.isNull(request.resellerOwnerUid)) {
|
|
3974
3990
|
query["ResellerOwnerUid"] = request.resellerOwnerUid;
|
|
3975
3991
|
}
|
|
3992
|
+
if (!$dara.isNull(request.tag)) {
|
|
3993
|
+
query["Tag"] = request.tag;
|
|
3994
|
+
}
|
|
3976
3995
|
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
3977
3996
|
query: openapi_core_2.OpenApiUtil.query(query),
|
|
3978
3997
|
});
|
|
@@ -3990,7 +4009,7 @@ class Client extends openapi_core_1.default {
|
|
|
3990
4009
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.CreateNetworkPackageResponse({}));
|
|
3991
4010
|
}
|
|
3992
4011
|
/**
|
|
3993
|
-
* Creates a
|
|
4012
|
+
* Creates a premium bandwidth plan for an office network.
|
|
3994
4013
|
*
|
|
3995
4014
|
* @param request - CreateNetworkPackageRequest
|
|
3996
4015
|
* @returns CreateNetworkPackageResponse
|
|
@@ -6532,7 +6551,7 @@ class Client extends openapi_core_1.default {
|
|
|
6532
6551
|
return await this.describeCensWithOptions(request, runtime);
|
|
6533
6552
|
}
|
|
6534
6553
|
/**
|
|
6535
|
-
*
|
|
6554
|
+
* Queries the details of region-free policies.
|
|
6536
6555
|
*
|
|
6537
6556
|
* @param request - DescribeCenterPolicyListRequest
|
|
6538
6557
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -6585,7 +6604,7 @@ class Client extends openapi_core_1.default {
|
|
|
6585
6604
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.DescribeCenterPolicyListResponse({}));
|
|
6586
6605
|
}
|
|
6587
6606
|
/**
|
|
6588
|
-
*
|
|
6607
|
+
* Queries the details of region-free policies.
|
|
6589
6608
|
*
|
|
6590
6609
|
* @param request - DescribeCenterPolicyListRequest
|
|
6591
6610
|
* @returns DescribeCenterPolicyListResponse
|
|
@@ -8208,66 +8227,6 @@ class Client extends openapi_core_1.default {
|
|
|
8208
8227
|
let runtime = new $dara.RuntimeOptions({});
|
|
8209
8228
|
return await this.describeFlowMetricWithOptions(request, runtime);
|
|
8210
8229
|
}
|
|
8211
|
-
/**
|
|
8212
|
-
* Queries cloud computer-level traffic statistics of a single office network.
|
|
8213
|
-
*
|
|
8214
|
-
* @remarks
|
|
8215
|
-
* > You can query only the traffic data in the last 90 days.
|
|
8216
|
-
*
|
|
8217
|
-
* @param request - DescribeFlowStatisticRequest
|
|
8218
|
-
* @param runtime - runtime options for this request RuntimeOptions
|
|
8219
|
-
* @returns DescribeFlowStatisticResponse
|
|
8220
|
-
*/
|
|
8221
|
-
async describeFlowStatisticWithOptions(request, runtime) {
|
|
8222
|
-
request.validate();
|
|
8223
|
-
let query = {};
|
|
8224
|
-
if (!$dara.isNull(request.desktopId)) {
|
|
8225
|
-
query["DesktopId"] = request.desktopId;
|
|
8226
|
-
}
|
|
8227
|
-
if (!$dara.isNull(request.officeSiteId)) {
|
|
8228
|
-
query["OfficeSiteId"] = request.officeSiteId;
|
|
8229
|
-
}
|
|
8230
|
-
if (!$dara.isNull(request.pageNumber)) {
|
|
8231
|
-
query["PageNumber"] = request.pageNumber;
|
|
8232
|
-
}
|
|
8233
|
-
if (!$dara.isNull(request.pageSize)) {
|
|
8234
|
-
query["PageSize"] = request.pageSize;
|
|
8235
|
-
}
|
|
8236
|
-
if (!$dara.isNull(request.period)) {
|
|
8237
|
-
query["Period"] = request.period;
|
|
8238
|
-
}
|
|
8239
|
-
if (!$dara.isNull(request.regionId)) {
|
|
8240
|
-
query["RegionId"] = request.regionId;
|
|
8241
|
-
}
|
|
8242
|
-
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
8243
|
-
query: openapi_core_2.OpenApiUtil.query(query),
|
|
8244
|
-
});
|
|
8245
|
-
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
8246
|
-
action: "DescribeFlowStatistic",
|
|
8247
|
-
version: "2020-09-30",
|
|
8248
|
-
protocol: "HTTPS",
|
|
8249
|
-
pathname: "/",
|
|
8250
|
-
method: "POST",
|
|
8251
|
-
authType: "AK",
|
|
8252
|
-
style: "RPC",
|
|
8253
|
-
reqBodyType: "formData",
|
|
8254
|
-
bodyType: "json",
|
|
8255
|
-
});
|
|
8256
|
-
return $dara.cast(await this.callApi(params, req, runtime), new $_model.DescribeFlowStatisticResponse({}));
|
|
8257
|
-
}
|
|
8258
|
-
/**
|
|
8259
|
-
* Queries cloud computer-level traffic statistics of a single office network.
|
|
8260
|
-
*
|
|
8261
|
-
* @remarks
|
|
8262
|
-
* > You can query only the traffic data in the last 90 days.
|
|
8263
|
-
*
|
|
8264
|
-
* @param request - DescribeFlowStatisticRequest
|
|
8265
|
-
* @returns DescribeFlowStatisticResponse
|
|
8266
|
-
*/
|
|
8267
|
-
async describeFlowStatistic(request) {
|
|
8268
|
-
let runtime = new $dara.RuntimeOptions({});
|
|
8269
|
-
return await this.describeFlowStatisticWithOptions(request, runtime);
|
|
8270
|
-
}
|
|
8271
8230
|
/**
|
|
8272
8231
|
* 查询DNAT条目
|
|
8273
8232
|
*
|
|
@@ -9252,7 +9211,7 @@ class Client extends openapi_core_1.default {
|
|
|
9252
9211
|
return await this.describeNatGatewaysWithOptions(request, runtime);
|
|
9253
9212
|
}
|
|
9254
9213
|
/**
|
|
9255
|
-
* Queries the details of one or more premium bandwidth plans.
|
|
9214
|
+
* Queries the details of one or more premium Internet bandwidth plans.
|
|
9256
9215
|
*
|
|
9257
9216
|
* @param request - DescribeNetworkPackagesRequest
|
|
9258
9217
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -9276,6 +9235,9 @@ class Client extends openapi_core_1.default {
|
|
|
9276
9235
|
if (!$dara.isNull(request.regionId)) {
|
|
9277
9236
|
query["RegionId"] = request.regionId;
|
|
9278
9237
|
}
|
|
9238
|
+
if (!$dara.isNull(request.tag)) {
|
|
9239
|
+
query["Tag"] = request.tag;
|
|
9240
|
+
}
|
|
9279
9241
|
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
9280
9242
|
query: openapi_core_2.OpenApiUtil.query(query),
|
|
9281
9243
|
});
|
|
@@ -9293,7 +9255,7 @@ class Client extends openapi_core_1.default {
|
|
|
9293
9255
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.DescribeNetworkPackagesResponse({}));
|
|
9294
9256
|
}
|
|
9295
9257
|
/**
|
|
9296
|
-
* Queries the details of one or more premium bandwidth plans.
|
|
9258
|
+
* Queries the details of one or more premium Internet bandwidth plans.
|
|
9297
9259
|
*
|
|
9298
9260
|
* @param request - DescribeNetworkPackagesRequest
|
|
9299
9261
|
* @returns DescribeNetworkPackagesResponse
|
|
@@ -10502,7 +10464,7 @@ class Client extends openapi_core_1.default {
|
|
|
10502
10464
|
return await this.describeSubnetsWithOptions(request, runtime);
|
|
10503
10465
|
}
|
|
10504
10466
|
/**
|
|
10505
|
-
*
|
|
10467
|
+
* Queries the details of cloud computer templates.
|
|
10506
10468
|
*
|
|
10507
10469
|
* @param request - DescribeTemplatesRequest
|
|
10508
10470
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -10558,7 +10520,7 @@ class Client extends openapi_core_1.default {
|
|
|
10558
10520
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.DescribeTemplatesResponse({}));
|
|
10559
10521
|
}
|
|
10560
10522
|
/**
|
|
10561
|
-
*
|
|
10523
|
+
* Queries the details of cloud computer templates.
|
|
10562
10524
|
*
|
|
10563
10525
|
* @param request - DescribeTemplatesRequest
|
|
10564
10526
|
* @returns DescribeTemplatesResponse
|
|
@@ -12258,10 +12220,10 @@ class Client extends openapi_core_1.default {
|
|
|
12258
12220
|
return await this.listOfficeSiteUsersWithOptions(request, runtime);
|
|
12259
12221
|
}
|
|
12260
12222
|
/**
|
|
12261
|
-
* Queries the
|
|
12223
|
+
* Queries the list of tags that are added to cloud computers.
|
|
12262
12224
|
*
|
|
12263
12225
|
* @remarks
|
|
12264
|
-
* You must
|
|
12226
|
+
* You must specify at least one of the following parameters in the request to specify the query object: `ResourceId.N`, `Tag.N.Key`, or `Tag.N.Value`.
|
|
12265
12227
|
*
|
|
12266
12228
|
* @param request - ListTagResourcesRequest
|
|
12267
12229
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -12305,10 +12267,10 @@ class Client extends openapi_core_1.default {
|
|
|
12305
12267
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.ListTagResourcesResponse({}));
|
|
12306
12268
|
}
|
|
12307
12269
|
/**
|
|
12308
|
-
* Queries the
|
|
12270
|
+
* Queries the list of tags that are added to cloud computers.
|
|
12309
12271
|
*
|
|
12310
12272
|
* @remarks
|
|
12311
|
-
* You must
|
|
12273
|
+
* You must specify at least one of the following parameters in the request to specify the query object: `ResourceId.N`, `Tag.N.Key`, or `Tag.N.Value`.
|
|
12312
12274
|
*
|
|
12313
12275
|
* @param request - ListTagResourcesRequest
|
|
12314
12276
|
* @returns ListTagResourcesResponse
|
|
@@ -12816,7 +12778,7 @@ class Client extends openapi_core_1.default {
|
|
|
12816
12778
|
return await this.modifyAclEntriesWithOptions(request, runtime);
|
|
12817
12779
|
}
|
|
12818
12780
|
/**
|
|
12819
|
-
* Modifies the
|
|
12781
|
+
* Modifies the configuration items of an automatic snapshot policy, including the policy name and snapshot retention period.
|
|
12820
12782
|
*
|
|
12821
12783
|
* @param request - ModifyAutoSnapshotPolicyRequest
|
|
12822
12784
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -12860,7 +12822,7 @@ class Client extends openapi_core_1.default {
|
|
|
12860
12822
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.ModifyAutoSnapshotPolicyResponse({}));
|
|
12861
12823
|
}
|
|
12862
12824
|
/**
|
|
12863
|
-
* Modifies the
|
|
12825
|
+
* Modifies the configuration items of an automatic snapshot policy, including the policy name and snapshot retention period.
|
|
12864
12826
|
*
|
|
12865
12827
|
* @param request - ModifyAutoSnapshotPolicyRequest
|
|
12866
12828
|
* @returns ModifyAutoSnapshotPolicyResponse
|
|
@@ -17263,10 +17225,10 @@ class Client extends openapi_core_1.default {
|
|
|
17263
17225
|
return await this.setDesktopMaintenanceWithOptions(request, runtime);
|
|
17264
17226
|
}
|
|
17265
17227
|
/**
|
|
17266
|
-
* Enables or disables the single sign-on (SSO) feature for an
|
|
17228
|
+
* Enables or disables the single sign-on (SSO) feature for an AD-based office network.
|
|
17267
17229
|
*
|
|
17268
17230
|
* @remarks
|
|
17269
|
-
* This operation
|
|
17231
|
+
* This operation has the same effect as [SetOfficeSiteSsoStatus](~~SetOfficeSiteSsoStatus~~). Use the SetOfficeSiteSsoStatus operation instead.
|
|
17270
17232
|
*
|
|
17271
17233
|
* @param request - SetDirectorySsoStatusRequest
|
|
17272
17234
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -17301,10 +17263,10 @@ class Client extends openapi_core_1.default {
|
|
|
17301
17263
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.SetDirectorySsoStatusResponse({}));
|
|
17302
17264
|
}
|
|
17303
17265
|
/**
|
|
17304
|
-
* Enables or disables the single sign-on (SSO) feature for an
|
|
17266
|
+
* Enables or disables the single sign-on (SSO) feature for an AD-based office network.
|
|
17305
17267
|
*
|
|
17306
17268
|
* @remarks
|
|
17307
|
-
* This operation
|
|
17269
|
+
* This operation has the same effect as [SetOfficeSiteSsoStatus](~~SetOfficeSiteSsoStatus~~). Use the SetOfficeSiteSsoStatus operation instead.
|
|
17308
17270
|
*
|
|
17309
17271
|
* @param request - SetDirectorySsoStatusRequest
|
|
17310
17272
|
* @returns SetDirectorySsoStatusResponse
|
|
@@ -17625,10 +17587,10 @@ class Client extends openapi_core_1.default {
|
|
|
17625
17587
|
return await this.stopInvocationWithOptions(request, runtime);
|
|
17626
17588
|
}
|
|
17627
17589
|
/**
|
|
17628
|
-
* Adds tags to cloud
|
|
17590
|
+
* Adds tags to specified cloud desktops. This makes it easier to filter and manage cloud desktops by tag.
|
|
17629
17591
|
*
|
|
17630
17592
|
* @remarks
|
|
17631
|
-
* If TagKey
|
|
17593
|
+
* If the specified TagKey already exists, the new TagValue overwrites the original TagValue.
|
|
17632
17594
|
*
|
|
17633
17595
|
* @param request - TagResourcesRequest
|
|
17634
17596
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -17666,10 +17628,10 @@ class Client extends openapi_core_1.default {
|
|
|
17666
17628
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.TagResourcesResponse({}));
|
|
17667
17629
|
}
|
|
17668
17630
|
/**
|
|
17669
|
-
* Adds tags to cloud
|
|
17631
|
+
* Adds tags to specified cloud desktops. This makes it easier to filter and manage cloud desktops by tag.
|
|
17670
17632
|
*
|
|
17671
17633
|
* @remarks
|
|
17672
|
-
* If TagKey
|
|
17634
|
+
* If the specified TagKey already exists, the new TagValue overwrites the original TagValue.
|
|
17673
17635
|
*
|
|
17674
17636
|
* @param request - TagResourcesRequest
|
|
17675
17637
|
* @returns TagResourcesResponse
|
|
@@ -17868,7 +17830,7 @@ class Client extends openapi_core_1.default {
|
|
|
17868
17830
|
return await this.unlockVirtualMFADeviceWithOptions(request, runtime);
|
|
17869
17831
|
}
|
|
17870
17832
|
/**
|
|
17871
|
-
* Removes tags from cloud
|
|
17833
|
+
* Removes tags from cloud desktops. After a tag is removed, if the tag is not added to any cloud desktop, the tag is automatically deleted.
|
|
17872
17834
|
*
|
|
17873
17835
|
* @param request - UntagResourcesRequest
|
|
17874
17836
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -17909,7 +17871,7 @@ class Client extends openapi_core_1.default {
|
|
|
17909
17871
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.UntagResourcesResponse({}));
|
|
17910
17872
|
}
|
|
17911
17873
|
/**
|
|
17912
|
-
* Removes tags from cloud
|
|
17874
|
+
* Removes tags from cloud desktops. After a tag is removed, if the tag is not added to any cloud desktop, the tag is automatically deleted.
|
|
17913
17875
|
*
|
|
17914
17876
|
* @param request - UntagResourcesRequest
|
|
17915
17877
|
* @returns UntagResourcesResponse
|