@alicloud/ecd20200930 4.15.0 → 4.16.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.
Files changed (55) hide show
  1. package/dist/client.d.ts +23 -2
  2. package/dist/client.js +77 -2
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/BatchModifyEntitlementRequest.d.ts +47 -0
  5. package/dist/models/BatchModifyEntitlementRequest.js +76 -0
  6. package/dist/models/BatchModifyEntitlementRequest.js.map +1 -0
  7. package/dist/models/BatchModifyEntitlementResponse.d.ts +19 -0
  8. package/dist/models/BatchModifyEntitlementResponse.js +69 -0
  9. package/dist/models/BatchModifyEntitlementResponse.js.map +1 -0
  10. package/dist/models/BatchModifyEntitlementResponseBody.d.ts +65 -0
  11. package/dist/models/BatchModifyEntitlementResponseBody.js +115 -0
  12. package/dist/models/BatchModifyEntitlementResponseBody.js.map +1 -0
  13. package/dist/models/CreateCenterPolicyRequest.d.ts +2 -0
  14. package/dist/models/CreateCenterPolicyRequest.js +4 -0
  15. package/dist/models/CreateCenterPolicyRequest.js.map +1 -1
  16. package/dist/models/CreateTemplateRequest.d.ts +122 -0
  17. package/dist/models/CreateTemplateRequest.js.map +1 -1
  18. package/dist/models/CreateTemplateResponseBody.d.ts +18 -0
  19. package/dist/models/CreateTemplateResponseBody.js.map +1 -1
  20. package/dist/models/DescribeGlobalDesktopRecordsResponseBody.d.ts +5 -0
  21. package/dist/models/DescribeGlobalDesktopRecordsResponseBody.js +2 -0
  22. package/dist/models/DescribeGlobalDesktopRecordsResponseBody.js.map +1 -1
  23. package/dist/models/DescribePolicyGroupsResponseBody.d.ts +2 -0
  24. package/dist/models/DescribePolicyGroupsResponseBody.js +4 -0
  25. package/dist/models/DescribePolicyGroupsResponseBody.js.map +1 -1
  26. package/dist/models/DescribeTemplatesRequest.d.ts +41 -0
  27. package/dist/models/DescribeTemplatesRequest.js.map +1 -1
  28. package/dist/models/DescribeTemplatesResponseBody.d.ts +173 -0
  29. package/dist/models/DescribeTemplatesResponseBody.js.map +1 -1
  30. package/dist/models/ListInstalledAppsRequest.d.ts +10 -0
  31. package/dist/models/ListInstalledAppsRequest.js.map +1 -1
  32. package/dist/models/ListInstalledAppsResponseBody.d.ts +16 -0
  33. package/dist/models/ListInstalledAppsResponseBody.js.map +1 -1
  34. package/dist/models/ModifyCenterPolicyRequest.d.ts +2 -0
  35. package/dist/models/ModifyCenterPolicyRequest.js +4 -0
  36. package/dist/models/ModifyCenterPolicyRequest.js.map +1 -1
  37. package/dist/models/model.d.ts +5 -0
  38. package/dist/models/model.js +32 -22
  39. package/dist/models/model.js.map +1 -1
  40. package/package.json +1 -1
  41. package/src/client.ts +90 -2
  42. package/src/models/BatchModifyEntitlementRequest.ts +78 -0
  43. package/src/models/BatchModifyEntitlementResponse.ts +40 -0
  44. package/src/models/BatchModifyEntitlementResponseBody.ts +117 -0
  45. package/src/models/CreateCenterPolicyRequest.ts +6 -0
  46. package/src/models/CreateTemplateRequest.ts +122 -0
  47. package/src/models/CreateTemplateResponseBody.ts +18 -0
  48. package/src/models/DescribeGlobalDesktopRecordsResponseBody.ts +7 -0
  49. package/src/models/DescribePolicyGroupsResponseBody.ts +6 -0
  50. package/src/models/DescribeTemplatesRequest.ts +41 -0
  51. package/src/models/DescribeTemplatesResponseBody.ts +173 -0
  52. package/src/models/ListInstalledAppsRequest.ts +10 -0
  53. package/src/models/ListInstalledAppsResponseBody.ts +16 -0
  54. package/src/models/ModifyCenterPolicyRequest.ts +6 -0
  55. package/src/models/model.ts +5 -0
package/src/client.ts CHANGED
@@ -971,6 +971,68 @@ export default class Client extends OpenApi {
971
971
  return await this.attachEndUserWithOptions(request, runtime);
972
972
  }
973
973
 
974
+ /**
975
+ * @param request - BatchModifyEntitlementRequest
976
+ * @param runtime - runtime options for this request RuntimeOptions
977
+ * @returns BatchModifyEntitlementResponse
978
+ */
979
+ async batchModifyEntitlementWithOptions(request: $_model.BatchModifyEntitlementRequest, runtime: $dara.RuntimeOptions): Promise<$_model.BatchModifyEntitlementResponse> {
980
+ request.validate();
981
+ let query = { };
982
+ if (!$dara.isNull(request.desktopId)) {
983
+ query["DesktopId"] = request.desktopId;
984
+ }
985
+
986
+ if (!$dara.isNull(request.endUserId)) {
987
+ query["EndUserId"] = request.endUserId;
988
+ }
989
+
990
+ if (!$dara.isNull(request.maxDesktopPerUser)) {
991
+ query["MaxDesktopPerUser"] = request.maxDesktopPerUser;
992
+ }
993
+
994
+ if (!$dara.isNull(request.maxUserPerDesktop)) {
995
+ query["MaxUserPerDesktop"] = request.maxUserPerDesktop;
996
+ }
997
+
998
+ if (!$dara.isNull(request.preview)) {
999
+ query["Preview"] = request.preview;
1000
+ }
1001
+
1002
+ if (!$dara.isNull(request.regionId)) {
1003
+ query["RegionId"] = request.regionId;
1004
+ }
1005
+
1006
+ if (!$dara.isNull(request.strategy)) {
1007
+ query["Strategy"] = request.strategy;
1008
+ }
1009
+
1010
+ let req = new $OpenApiUtil.OpenApiRequest({
1011
+ query: OpenApiUtil.query(query),
1012
+ });
1013
+ let params = new $OpenApiUtil.Params({
1014
+ action: "BatchModifyEntitlement",
1015
+ version: "2020-09-30",
1016
+ protocol: "HTTPS",
1017
+ pathname: "/",
1018
+ method: "POST",
1019
+ authType: "AK",
1020
+ style: "RPC",
1021
+ reqBodyType: "formData",
1022
+ bodyType: "json",
1023
+ });
1024
+ return $dara.cast<$_model.BatchModifyEntitlementResponse>(await this.callApi(params, req, runtime), new $_model.BatchModifyEntitlementResponse({}));
1025
+ }
1026
+
1027
+ /**
1028
+ * @param request - BatchModifyEntitlementRequest
1029
+ * @returns BatchModifyEntitlementResponse
1030
+ */
1031
+ async batchModifyEntitlement(request: $_model.BatchModifyEntitlementRequest): Promise<$_model.BatchModifyEntitlementResponse> {
1032
+ let runtime = new $dara.RuntimeOptions({ });
1033
+ return await this.batchModifyEntitlementWithOptions(request, runtime);
1034
+ }
1035
+
974
1036
  /**
975
1037
  * Binds a configuration group to resources.
976
1038
  *
@@ -2375,6 +2437,10 @@ export default class Client extends OpenApi {
2375
2437
  query["ClientControlMenu"] = request.clientControlMenu;
2376
2438
  }
2377
2439
 
2440
+ if (!$dara.isNull(request.clientCreateSnapshot)) {
2441
+ query["ClientCreateSnapshot"] = request.clientCreateSnapshot;
2442
+ }
2443
+
2378
2444
  if (!$dara.isNull(request.clientType)) {
2379
2445
  query["ClientType"] = request.clientType;
2380
2446
  }
@@ -2795,6 +2861,10 @@ export default class Client extends OpenApi {
2795
2861
  query["WatermarkSecurity"] = request.watermarkSecurity;
2796
2862
  }
2797
2863
 
2864
+ if (!$dara.isNull(request.watermarkShadow)) {
2865
+ query["WatermarkShadow"] = request.watermarkShadow;
2866
+ }
2867
+
2798
2868
  if (!$dara.isNull(request.watermarkTransparencyValue)) {
2799
2869
  query["WatermarkTransparencyValue"] = request.watermarkTransparencyValue;
2800
2870
  }
@@ -5066,6 +5136,11 @@ export default class Client extends OpenApi {
5066
5136
  /**
5067
5137
  * Creates a custom cloud computer template. A cloud computer template (or simply "template") simplifies the process of creating cloud computers by providing a predefined set of configurations. This eliminates the need to manually configure each setting, saving significant time and effort.
5068
5138
  *
5139
+ * @remarks
5140
+ * When you call this operation, take note of the following item:
5141
+ * * Most parameters in templates are optional. When you create a template, Elastic Desktop Service (EDS) does not validate the existence or correctness of the parameter values you specify. The parameter values in the template are only verified when you use the template to create cloud computers.
5142
+ * * For parameters that include the region attribute in the template, it\\"s important to note that if the specified region doesn’t match the region where the template is used to create a cloud computer, those parameters will not take effect.
5143
+ *
5069
5144
  * @param request - CreateTemplateRequest
5070
5145
  * @param runtime - runtime options for this request RuntimeOptions
5071
5146
  * @returns CreateTemplateResponse
@@ -5186,6 +5261,11 @@ export default class Client extends OpenApi {
5186
5261
  /**
5187
5262
  * Creates a custom cloud computer template. A cloud computer template (or simply "template") simplifies the process of creating cloud computers by providing a predefined set of configurations. This eliminates the need to manually configure each setting, saving significant time and effort.
5188
5263
  *
5264
+ * @remarks
5265
+ * When you call this operation, take note of the following item:
5266
+ * * Most parameters in templates are optional. When you create a template, Elastic Desktop Service (EDS) does not validate the existence or correctness of the parameter values you specify. The parameter values in the template are only verified when you use the template to create cloud computers.
5267
+ * * For parameters that include the region attribute in the template, it\\"s important to note that if the specified region doesn’t match the region where the template is used to create a cloud computer, those parameters will not take effect.
5268
+ *
5189
5269
  * @param request - CreateTemplateRequest
5190
5270
  * @returns CreateTemplateResponse
5191
5271
  */
@@ -12891,7 +12971,7 @@ export default class Client extends OpenApi {
12891
12971
  }
12892
12972
 
12893
12973
  /**
12894
- * 查询桌面内安装的应用
12974
+ * Queries applications installed on a cloud computer.
12895
12975
  *
12896
12976
  * @param request - ListInstalledAppsRequest
12897
12977
  * @param runtime - runtime options for this request RuntimeOptions
@@ -12930,7 +13010,7 @@ export default class Client extends OpenApi {
12930
13010
  }
12931
13011
 
12932
13012
  /**
12933
- * 查询桌面内安装的应用
13013
+ * Queries applications installed on a cloud computer.
12934
13014
  *
12935
13015
  * @param request - ListInstalledAppsRequest
12936
13016
  * @returns ListInstalledAppsResponse
@@ -14004,6 +14084,10 @@ export default class Client extends OpenApi {
14004
14084
  query["ClientControlMenu"] = request.clientControlMenu;
14005
14085
  }
14006
14086
 
14087
+ if (!$dara.isNull(request.clientCreateSnapshot)) {
14088
+ query["ClientCreateSnapshot"] = request.clientCreateSnapshot;
14089
+ }
14090
+
14007
14091
  if (!$dara.isNull(request.clientType)) {
14008
14092
  query["ClientType"] = request.clientType;
14009
14093
  }
@@ -14436,6 +14520,10 @@ export default class Client extends OpenApi {
14436
14520
  query["WatermarkSecurity"] = request.watermarkSecurity;
14437
14521
  }
14438
14522
 
14523
+ if (!$dara.isNull(request.watermarkShadow)) {
14524
+ query["WatermarkShadow"] = request.watermarkShadow;
14525
+ }
14526
+
14439
14527
  if (!$dara.isNull(request.watermarkTransparencyValue)) {
14440
14528
  query["WatermarkTransparencyValue"] = request.watermarkTransparencyValue;
14441
14529
  }
@@ -0,0 +1,78 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class BatchModifyEntitlementRequest extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * This parameter is required.
9
+ */
10
+ desktopId?: string[];
11
+ endUserId?: string[];
12
+ /**
13
+ * @example
14
+ * 0
15
+ */
16
+ maxDesktopPerUser?: number;
17
+ /**
18
+ * @example
19
+ * 1
20
+ */
21
+ maxUserPerDesktop?: number;
22
+ /**
23
+ * @example
24
+ * true
25
+ */
26
+ preview?: boolean;
27
+ /**
28
+ * @remarks
29
+ * This parameter is required.
30
+ *
31
+ * @example
32
+ * cn-hangzhou
33
+ */
34
+ regionId?: string;
35
+ /**
36
+ * @example
37
+ * AVERAGE
38
+ */
39
+ strategy?: string;
40
+ static names(): { [key: string]: string } {
41
+ return {
42
+ desktopId: 'DesktopId',
43
+ endUserId: 'EndUserId',
44
+ maxDesktopPerUser: 'MaxDesktopPerUser',
45
+ maxUserPerDesktop: 'MaxUserPerDesktop',
46
+ preview: 'Preview',
47
+ regionId: 'RegionId',
48
+ strategy: 'Strategy',
49
+ };
50
+ }
51
+
52
+ static types(): { [key: string]: any } {
53
+ return {
54
+ desktopId: { 'type': 'array', 'itemType': 'string' },
55
+ endUserId: { 'type': 'array', 'itemType': 'string' },
56
+ maxDesktopPerUser: 'number',
57
+ maxUserPerDesktop: 'number',
58
+ preview: 'boolean',
59
+ regionId: 'string',
60
+ strategy: 'string',
61
+ };
62
+ }
63
+
64
+ validate() {
65
+ if(Array.isArray(this.desktopId)) {
66
+ $dara.Model.validateArray(this.desktopId);
67
+ }
68
+ if(Array.isArray(this.endUserId)) {
69
+ $dara.Model.validateArray(this.endUserId);
70
+ }
71
+ super.validate();
72
+ }
73
+
74
+ constructor(map?: { [key: string]: any }) {
75
+ super(map);
76
+ }
77
+ }
78
+
@@ -0,0 +1,40 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+ import { BatchModifyEntitlementResponseBody } from "./BatchModifyEntitlementResponseBody";
4
+
5
+
6
+ export class BatchModifyEntitlementResponse extends $dara.Model {
7
+ headers?: { [key: string]: string };
8
+ statusCode?: number;
9
+ body?: BatchModifyEntitlementResponseBody;
10
+ static names(): { [key: string]: string } {
11
+ return {
12
+ headers: 'headers',
13
+ statusCode: 'statusCode',
14
+ body: 'body',
15
+ };
16
+ }
17
+
18
+ static types(): { [key: string]: any } {
19
+ return {
20
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
21
+ statusCode: 'number',
22
+ body: BatchModifyEntitlementResponseBody,
23
+ };
24
+ }
25
+
26
+ validate() {
27
+ if(this.headers) {
28
+ $dara.Model.validateMap(this.headers);
29
+ }
30
+ if(this.body && typeof (this.body as any).validate === 'function') {
31
+ (this.body as any).validate();
32
+ }
33
+ super.validate();
34
+ }
35
+
36
+ constructor(map?: { [key: string]: any }) {
37
+ super(map);
38
+ }
39
+ }
40
+
@@ -0,0 +1,117 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class BatchModifyEntitlementResponseBodyEntitlementsAssignModels extends $dara.Model {
6
+ /**
7
+ * @example
8
+ * ecd-e94kzikmpljjx99pl
9
+ */
10
+ desktopId?: string;
11
+ endUserIds?: string[];
12
+ /**
13
+ * @example
14
+ * FINISHED
15
+ */
16
+ innerStatus?: string;
17
+ static names(): { [key: string]: string } {
18
+ return {
19
+ desktopId: 'DesktopId',
20
+ endUserIds: 'EndUserIds',
21
+ innerStatus: 'InnerStatus',
22
+ };
23
+ }
24
+
25
+ static types(): { [key: string]: any } {
26
+ return {
27
+ desktopId: 'string',
28
+ endUserIds: { 'type': 'array', 'itemType': 'string' },
29
+ innerStatus: 'string',
30
+ };
31
+ }
32
+
33
+ validate() {
34
+ if(Array.isArray(this.endUserIds)) {
35
+ $dara.Model.validateArray(this.endUserIds);
36
+ }
37
+ super.validate();
38
+ }
39
+
40
+ constructor(map?: { [key: string]: any }) {
41
+ super(map);
42
+ }
43
+ }
44
+
45
+ export class BatchModifyEntitlementResponseBodyEntitlements extends $dara.Model {
46
+ assignModels?: BatchModifyEntitlementResponseBodyEntitlementsAssignModels[];
47
+ /**
48
+ * @example
49
+ * FINISHED
50
+ */
51
+ status?: string;
52
+ /**
53
+ * @example
54
+ * B2F4F018-0EDF-159C-B285-117B5F1C****
55
+ */
56
+ taskId?: string;
57
+ static names(): { [key: string]: string } {
58
+ return {
59
+ assignModels: 'AssignModels',
60
+ status: 'Status',
61
+ taskId: 'TaskId',
62
+ };
63
+ }
64
+
65
+ static types(): { [key: string]: any } {
66
+ return {
67
+ assignModels: { 'type': 'array', 'itemType': BatchModifyEntitlementResponseBodyEntitlementsAssignModels },
68
+ status: 'string',
69
+ taskId: 'string',
70
+ };
71
+ }
72
+
73
+ validate() {
74
+ if(Array.isArray(this.assignModels)) {
75
+ $dara.Model.validateArray(this.assignModels);
76
+ }
77
+ super.validate();
78
+ }
79
+
80
+ constructor(map?: { [key: string]: any }) {
81
+ super(map);
82
+ }
83
+ }
84
+
85
+ export class BatchModifyEntitlementResponseBody extends $dara.Model {
86
+ entitlements?: BatchModifyEntitlementResponseBodyEntitlements;
87
+ /**
88
+ * @example
89
+ * 51592A88-0F2C-55E6-AD2C-2AD9C10D****
90
+ */
91
+ requestId?: string;
92
+ static names(): { [key: string]: string } {
93
+ return {
94
+ entitlements: 'Entitlements',
95
+ requestId: 'RequestId',
96
+ };
97
+ }
98
+
99
+ static types(): { [key: string]: any } {
100
+ return {
101
+ entitlements: BatchModifyEntitlementResponseBodyEntitlements,
102
+ requestId: 'string',
103
+ };
104
+ }
105
+
106
+ validate() {
107
+ if(this.entitlements && typeof (this.entitlements as any).validate === 'function') {
108
+ (this.entitlements as any).validate();
109
+ }
110
+ super.validate();
111
+ }
112
+
113
+ constructor(map?: { [key: string]: any }) {
114
+ super(map);
115
+ }
116
+ }
117
+
@@ -689,6 +689,7 @@ export class CreateCenterPolicyRequest extends $dara.Model {
689
689
  */
690
690
  cameraRedirect?: string;
691
691
  clientControlMenu?: string;
692
+ clientCreateSnapshot?: string;
692
693
  /**
693
694
  * @remarks
694
695
  * The types of Alibaba Cloud Workspace clients that end users can use to connect to cloud computers.
@@ -1636,6 +1637,7 @@ export class CreateCenterPolicyRequest extends $dara.Model {
1636
1637
  * on
1637
1638
  */
1638
1639
  watermarkSecurity?: string;
1640
+ watermarkShadow?: string;
1639
1641
  /**
1640
1642
  * @remarks
1641
1643
  * The watermark opacity. A higher value makes the watermark more opaque. Valid values: 10 to 100.
@@ -1696,6 +1698,7 @@ export class CreateCenterPolicyRequest extends $dara.Model {
1696
1698
  businessType: 'BusinessType',
1697
1699
  cameraRedirect: 'CameraRedirect',
1698
1700
  clientControlMenu: 'ClientControlMenu',
1701
+ clientCreateSnapshot: 'ClientCreateSnapshot',
1699
1702
  clientType: 'ClientType',
1700
1703
  clipboard: 'Clipboard',
1701
1704
  clipboardGraineds: 'ClipboardGraineds',
@@ -1801,6 +1804,7 @@ export class CreateCenterPolicyRequest extends $dara.Model {
1801
1804
  watermarkPower: 'WatermarkPower',
1802
1805
  watermarkRowAmount: 'WatermarkRowAmount',
1803
1806
  watermarkSecurity: 'WatermarkSecurity',
1807
+ watermarkShadow: 'WatermarkShadow',
1804
1808
  watermarkTransparencyValue: 'WatermarkTransparencyValue',
1805
1809
  watermarkType: 'WatermarkType',
1806
1810
  wuyingKeeper: 'WuyingKeeper',
@@ -1818,6 +1822,7 @@ export class CreateCenterPolicyRequest extends $dara.Model {
1818
1822
  businessType: 'number',
1819
1823
  cameraRedirect: 'string',
1820
1824
  clientControlMenu: 'string',
1825
+ clientCreateSnapshot: 'string',
1821
1826
  clientType: { 'type': 'array', 'itemType': CreateCenterPolicyRequestClientType },
1822
1827
  clipboard: 'string',
1823
1828
  clipboardGraineds: { 'type': 'array', 'itemType': CreateCenterPolicyRequestClipboardGraineds },
@@ -1923,6 +1928,7 @@ export class CreateCenterPolicyRequest extends $dara.Model {
1923
1928
  watermarkPower: 'string',
1924
1929
  watermarkRowAmount: 'number',
1925
1930
  watermarkSecurity: 'string',
1931
+ watermarkShadow: 'string',
1926
1932
  watermarkTransparencyValue: 'number',
1927
1933
  watermarkType: 'string',
1928
1934
  wuyingKeeper: 'string',
@@ -4,11 +4,21 @@ import * as $dara from '@darabonba/typescript';
4
4
 
5
5
  export class CreateTemplateRequestDataDiskList extends $dara.Model {
6
6
  /**
7
+ * @remarks
8
+ * The PL of the data disk. Default value: `AutoPL`.
9
+ *
7
10
  * @example
8
11
  * AutoPL
9
12
  */
10
13
  performanceLevel?: string;
11
14
  /**
15
+ * @remarks
16
+ * The size of the data disk. Unit: GiB. Valid values: 40 to 2040. Increments: 10 GiB.
17
+ *
18
+ * **
19
+ *
20
+ * **Keep in mind** that the larger the ESSD disk capacity, the higher the available PL (for example, PL2 is available for disks larger than 460 GiB). A higher PL comes with a higher cost. Select an ESSD based on your specific needs.
21
+ *
12
22
  * @example
13
23
  * 40
14
24
  */
@@ -38,36 +48,62 @@ export class CreateTemplateRequestDataDiskList extends $dara.Model {
38
48
 
39
49
  export class CreateTemplateRequestRegionConfigList extends $dara.Model {
40
50
  /**
51
+ * @remarks
52
+ * The office network ID.
53
+ *
41
54
  * @example
42
55
  * cn-hangzhou+dir-709******
43
56
  */
44
57
  officeSiteId?: string;
45
58
  /**
59
+ * @remarks
60
+ * The region ID. You can call the [DescribeRegions](~~DescribeRegions~~) operation to query the list of regions where Elastic Desktop Service (EDS) Enterprise is available.
61
+ *
46
62
  * @example
47
63
  * cn-hangzhou
48
64
  */
49
65
  regionId?: string;
50
66
  /**
67
+ * @remarks
68
+ * The ID of the cloud computer type.
69
+ *
51
70
  * @example
52
71
  * eds.enterprise_office.8c16g
53
72
  */
54
73
  resourceInstanceType?: string;
55
74
  /**
75
+ * @remarks
76
+ * The ID of the automatic snapshot policy.
77
+ *
56
78
  * @example
57
79
  * sp-35fvn8m21pnx2****
58
80
  */
59
81
  snapshotPolicyId?: string;
60
82
  /**
83
+ * @remarks
84
+ * The subnet ID.
85
+ *
61
86
  * @example
62
87
  * vsw-bp1yiu**********
63
88
  */
64
89
  subnetId?: string;
65
90
  /**
91
+ * @remarks
92
+ * Specifies whether to enable disk encryption.
93
+ *
94
+ * Valid values:
95
+ *
96
+ * * false (default): disables disk encryption.
97
+ * * true: enables disk encryption.
98
+ *
66
99
  * @example
67
100
  * false
68
101
  */
69
102
  volumeEncryptionEnable?: boolean;
70
103
  /**
104
+ * @remarks
105
+ * The ID of the Key Management Service (KMS) key that you want to use to encrypt disks. You can call the [ListKeys](https://help.aliyun.com/document_detail/28951.html) operation to query KMS keys.
106
+ *
71
107
  * @example
72
108
  * a7b3c0c8-b3a2-4876-b1cc-*********
73
109
  */
@@ -107,11 +143,17 @@ export class CreateTemplateRequestRegionConfigList extends $dara.Model {
107
143
 
108
144
  export class CreateTemplateRequestResourceTagList extends $dara.Model {
109
145
  /**
146
+ * @remarks
147
+ * The tag key.
148
+ *
110
149
  * @example
111
150
  * department
112
151
  */
113
152
  key?: string;
114
153
  /**
154
+ * @remarks
155
+ * The tag value.
156
+ *
115
157
  * @example
116
158
  * design
117
159
  */
@@ -141,11 +183,17 @@ export class CreateTemplateRequestResourceTagList extends $dara.Model {
141
183
 
142
184
  export class CreateTemplateRequestSiteConfigList extends $dara.Model {
143
185
  /**
186
+ * @remarks
187
+ * 应用管控策略ID
188
+ *
144
189
  * @example
145
190
  * bwr-5a5371e0db954d********
146
191
  */
147
192
  appRuleId?: string;
148
193
  /**
194
+ * @remarks
195
+ * 站点ID。
196
+ *
149
197
  * @example
150
198
  * mainland
151
199
  */
@@ -177,19 +225,43 @@ export class CreateTemplateRequest extends $dara.Model {
177
225
  autoPay?: boolean;
178
226
  autoRenew?: boolean;
179
227
  /**
228
+ * @remarks
229
+ * > This parameter is not publicly available.
230
+ *
231
+ * Valid values:
232
+ *
233
+ * * 1: the Enterprise edition.
234
+ *
180
235
  * @example
181
236
  * 1
182
237
  */
183
238
  bizType?: string;
184
239
  chargeType?: string;
240
+ /**
241
+ * @remarks
242
+ * The data disks.
243
+ */
185
244
  dataDiskList?: CreateTemplateRequestDataDiskList[];
186
245
  /**
246
+ * @remarks
247
+ * The default language of cloud computers during startup. This parameter takes effect only when cloud computers are created from system images.
248
+ *
187
249
  * @example
188
250
  * zh-CN
189
251
  */
190
252
  defaultLanguage?: string;
253
+ /**
254
+ * @remarks
255
+ * The template description. It must meet the following criteria:
256
+ *
257
+ * * It can be 2 to 256 characters in length and cannot start with `http://` or `https://`.
258
+ * * It can contain letters, digits, and special characters, including spaces. Note: You can use carriage returns to break lines.
259
+ */
191
260
  description?: string;
192
261
  /**
262
+ * @remarks
263
+ * The ID of the cloud computer image. You can query image IDs on the Images page. System images and custom images are supported.
264
+ *
193
265
  * @example
194
266
  * desktopimage-windows-server-2022-64-asp
195
267
  */
@@ -197,40 +269,90 @@ export class CreateTemplateRequest extends $dara.Model {
197
269
  period?: number;
198
270
  periodUnit?: string;
199
271
  /**
272
+ * @remarks
273
+ * The ID of the policy group.
274
+ *
200
275
  * @example
201
276
  * pg-8hlryfn331******
202
277
  */
203
278
  policyGroupId?: string;
204
279
  postPaidAfterUsedUp?: boolean;
205
280
  /**
281
+ * @remarks
282
+ * The service type. Set the value to `CloudDesktop`.
283
+ *
284
+ * *
285
+ *
206
286
  * @example
207
287
  * CloudDesktop
208
288
  */
209
289
  productType?: string;
290
+ /**
291
+ * @remarks
292
+ * The regions of the template. You can create cloud computers by using a template only within the same region as the template itself.
293
+ *
294
+ * > You can specify up to 20 regions.
295
+ */
210
296
  regionConfigList?: CreateTemplateRequestRegionConfigList[];
211
297
  /**
298
+ * @remarks
299
+ * The ID of the resource group.
300
+ *
212
301
  * @example
213
302
  * rg-4knxmfneq1e******
214
303
  */
215
304
  resourceGroupId?: string;
305
+ /**
306
+ * @remarks
307
+ * The tags added to cloud computers. Specify tags in key-value pairs. You can specify up to 20 tags.
308
+ */
216
309
  resourceTagList?: CreateTemplateRequestResourceTagList[];
310
+ /**
311
+ * @remarks
312
+ * 区域配置管理
313
+ */
217
314
  siteConfigList?: CreateTemplateRequestSiteConfigList[];
218
315
  /**
316
+ * @remarks
317
+ * The performance level (PL) of the system disk.
318
+ *
319
+ * > Only cloud computers of the Graphics or High Frequency type support Enterprise SSDs (ESSDs).
320
+ *
321
+ * Valid values:
322
+ *
323
+ * * PL1: a PL1 ESSD.
324
+ * * PL0: a PL0 ESSD.
325
+ * * AutoPL: an AutoPL ESSD.
326
+ *
219
327
  * @example
220
328
  * AutoPL
221
329
  */
222
330
  systemDiskPerformanceLevel?: string;
223
331
  /**
332
+ * @remarks
333
+ * The size of the system disk. Unit: GiB. Valid values: 40 to 500. Increments: 10 GiB.
334
+ *
335
+ * > The system disk size must be at least as large as the configured image size.
336
+ *
224
337
  * @example
225
338
  * 80
226
339
  */
227
340
  systemDiskSize?: number;
228
341
  /**
229
342
  * @remarks
343
+ * The template name. It must meet the following criteria:
344
+ *
345
+ * * It can be 2 to 126 characters in length.
346
+ * * It must begin with a letter and cannot start with `http://` or `https://`.
347
+ * * It can contain letters, digits, colons (:), underscores (_), and hyphens (-). Note: Periods (.) are not supported in the name.
348
+ *
230
349
  * This parameter is required.
231
350
  */
232
351
  templateName?: string;
233
352
  /**
353
+ * @remarks
354
+ * The ID of the scheduled task group.
355
+ *
234
356
  * @example
235
357
  * ccg-0caoeogrk9m5****
236
358
  */