@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.
Files changed (78) hide show
  1. package/dist/client.d.ts +66 -103
  2. package/dist/client.js +104 -142
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/CreateAndBindNasFileSystemRequest.d.ts +7 -19
  5. package/dist/models/CreateAndBindNasFileSystemRequest.js.map +1 -1
  6. package/dist/models/CreateDesktopsRequest.d.ts +106 -128
  7. package/dist/models/CreateDesktopsRequest.js +4 -0
  8. package/dist/models/CreateDesktopsRequest.js.map +1 -1
  9. package/dist/models/CreateDesktopsResponseBody.d.ts +2 -3
  10. package/dist/models/CreateDesktopsResponseBody.js.map +1 -1
  11. package/dist/models/CreateDesktopsShrinkRequest.d.ts +89 -99
  12. package/dist/models/CreateDesktopsShrinkRequest.js +4 -0
  13. package/dist/models/CreateDesktopsShrinkRequest.js.map +1 -1
  14. package/dist/models/CreateNetworkPackageRequest.d.ts +32 -25
  15. package/dist/models/CreateNetworkPackageRequest.js +27 -1
  16. package/dist/models/CreateNetworkPackageRequest.js.map +1 -1
  17. package/dist/models/CreateNetworkPackageResponseBody.d.ts +3 -3
  18. package/dist/models/DescribeCenterPolicyListRequest.d.ts +5 -4
  19. package/dist/models/DescribeCenterPolicyListRequest.js.map +1 -1
  20. package/dist/models/DescribeCenterPolicyListResponseBody.d.ts +85 -84
  21. package/dist/models/DescribeCenterPolicyListResponseBody.js +10 -0
  22. package/dist/models/DescribeCenterPolicyListResponseBody.js.map +1 -1
  23. package/dist/models/DescribeNetworkPackagesRequest.d.ts +22 -14
  24. package/dist/models/DescribeNetworkPackagesRequest.js +27 -1
  25. package/dist/models/DescribeNetworkPackagesRequest.js.map +1 -1
  26. package/dist/models/DescribeNetworkPackagesResponseBody.d.ts +36 -98
  27. package/dist/models/DescribeNetworkPackagesResponseBody.js +27 -1
  28. package/dist/models/DescribeNetworkPackagesResponseBody.js.map +1 -1
  29. package/dist/models/DescribeTemplatesRequest.d.ts +11 -11
  30. package/dist/models/DescribeTemplatesResponseBody.d.ts +45 -45
  31. package/dist/models/ListTagResourcesRequest.d.ts +7 -11
  32. package/dist/models/ListTagResourcesRequest.js.map +1 -1
  33. package/dist/models/ListTagResourcesResponseBody.d.ts +5 -9
  34. package/dist/models/ListTagResourcesResponseBody.js.map +1 -1
  35. package/dist/models/ModifyAutoSnapshotPolicyRequest.d.ts +11 -4
  36. package/dist/models/ModifyAutoSnapshotPolicyRequest.js.map +1 -1
  37. package/dist/models/SetDirectorySsoStatusRequest.d.ts +4 -6
  38. package/dist/models/SetDirectorySsoStatusRequest.js.map +1 -1
  39. package/dist/models/TagResourcesRequest.d.ts +6 -10
  40. package/dist/models/TagResourcesRequest.js.map +1 -1
  41. package/dist/models/UntagResourcesRequest.d.ts +2 -6
  42. package/dist/models/UntagResourcesRequest.js.map +1 -1
  43. package/dist/models/model.d.ts +3 -4
  44. package/dist/models/model.js +37 -39
  45. package/dist/models/model.js.map +1 -1
  46. package/package.json +1 -1
  47. package/src/client.ts +108 -150
  48. package/src/models/CreateAndBindNasFileSystemRequest.ts +7 -19
  49. package/src/models/CreateDesktopsRequest.ts +110 -128
  50. package/src/models/CreateDesktopsResponseBody.ts +2 -3
  51. package/src/models/CreateDesktopsShrinkRequest.ts +93 -99
  52. package/src/models/CreateNetworkPackageRequest.ts +49 -25
  53. package/src/models/CreateNetworkPackageResponseBody.ts +3 -3
  54. package/src/models/DescribeCenterPolicyListRequest.ts +5 -4
  55. package/src/models/DescribeCenterPolicyListResponseBody.ts +95 -84
  56. package/src/models/DescribeNetworkPackagesRequest.ts +39 -14
  57. package/src/models/DescribeNetworkPackagesResponseBody.ts +53 -98
  58. package/src/models/DescribeTemplatesRequest.ts +11 -11
  59. package/src/models/DescribeTemplatesResponseBody.ts +45 -45
  60. package/src/models/ListTagResourcesRequest.ts +7 -11
  61. package/src/models/ListTagResourcesResponseBody.ts +5 -9
  62. package/src/models/ModifyAutoSnapshotPolicyRequest.ts +11 -4
  63. package/src/models/SetDirectorySsoStatusRequest.ts +4 -6
  64. package/src/models/TagResourcesRequest.ts +6 -10
  65. package/src/models/UntagResourcesRequest.ts +2 -6
  66. package/src/models/model.ts +3 -4
  67. package/dist/models/DescribeFlowStatisticRequest.d.ts +0 -76
  68. package/dist/models/DescribeFlowStatisticRequest.js +0 -68
  69. package/dist/models/DescribeFlowStatisticRequest.js.map +0 -1
  70. package/dist/models/DescribeFlowStatisticResponse.d.ts +0 -19
  71. package/dist/models/DescribeFlowStatisticResponse.js +0 -69
  72. package/dist/models/DescribeFlowStatisticResponse.js.map +0 -1
  73. package/dist/models/DescribeFlowStatisticResponseBody.d.ts +0 -78
  74. package/dist/models/DescribeFlowStatisticResponseBody.js +0 -90
  75. package/dist/models/DescribeFlowStatisticResponseBody.js.map +0 -1
  76. package/src/models/DescribeFlowStatisticRequest.ts +0 -99
  77. package/src/models/DescribeFlowStatisticResponse.ts +0 -40
  78. package/src/models/DescribeFlowStatisticResponseBody.ts +0 -114
@@ -2,10 +2,36 @@
2
2
  import * as $dara from '@darabonba/typescript';
3
3
 
4
4
 
5
+ export class CreateNetworkPackageRequestTag extends $dara.Model {
6
+ key?: string;
7
+ value?: string;
8
+ static names(): { [key: string]: string } {
9
+ return {
10
+ key: 'Key',
11
+ value: 'Value',
12
+ };
13
+ }
14
+
15
+ static types(): { [key: string]: any } {
16
+ return {
17
+ key: 'string',
18
+ value: 'string',
19
+ };
20
+ }
21
+
22
+ validate() {
23
+ super.validate();
24
+ }
25
+
26
+ constructor(map?: { [key: string]: any }) {
27
+ super(map);
28
+ }
29
+ }
30
+
5
31
  export class CreateNetworkPackageRequest extends $dara.Model {
6
32
  /**
7
33
  * @remarks
8
- * Specifies whether to enable auto-payment.
34
+ * Specifies whether to enable automatic payment.
9
35
  *
10
36
  * @example
11
37
  * false
@@ -21,13 +47,11 @@ export class CreateNetworkPackageRequest extends $dara.Model {
21
47
  autoRenew?: boolean;
22
48
  /**
23
49
  * @remarks
24
- * The bandwidth of the network package, in Mbps.
25
- *
26
- * - For subscription network packages, the value range is 2 to 1,000.
27
- *
28
- * - For pay-as-you-go network packages that are billed by traffic, the value range is 2 to 200.
50
+ * The bandwidth of the premium bandwidth plan. Unit: Mbit/s.
29
51
  *
30
- * - For pay-as-you-go network packages that are billed by bandwidth, the value range is 2 to 1,000.
52
+ * - If the premium bandwidth plan uses the subscription billing method, the valid values are 2 to 1000.
53
+ * - If the premium bandwidth plan uses the pay-as-you-go billing method and the billing type is pay-by-data-transfer (PayByTraffic), the valid values are 2 to 200.
54
+ * - If the premium bandwidth plan uses the pay-as-you-go billing method and the billing type is pay-by-bandwidth (PayByBandwidth), the valid values are 2 to 1000.
31
55
  *
32
56
  * This parameter is required.
33
57
  *
@@ -38,17 +62,13 @@ export class CreateNetworkPackageRequest extends $dara.Model {
38
62
  channelCookie?: string;
39
63
  /**
40
64
  * @remarks
41
- * The billing method for the network package.
65
+ * The billable methods of the premium bandwidth plan.
42
66
  *
43
- * - When `PayType` is set to `PrePaid`, the only valid value is:
44
- *
45
- * - `PayByBandwidth`: pay-by-bandwidth.
46
- *
47
- * - When `PayType` is set to `PostPaid`, valid values are:
48
- *
49
- * - `PayByTraffic`: pay-by-traffic.
50
- *
51
- * - `PayByBandwidth`: pay-by-bandwidth.
67
+ * - If the parameter `PayType` is set to `PrePaid`, valid values:
68
+ * - PayByBandwidth: billing by fixed bandwidth.
69
+ * - If the parameter `PayType` is set to `PostPaid`, valid values:
70
+ * - PayByTraffic: billing by data transfer.
71
+ * - PayByBandwidth: billing by fixed bandwidth.
52
72
  *
53
73
  * @example
54
74
  * PayByTraffic
@@ -72,13 +92,11 @@ export class CreateNetworkPackageRequest extends $dara.Model {
72
92
  payType?: string;
73
93
  /**
74
94
  * @remarks
75
- * The subscription duration of the network package. This parameter is required and applies only when `PayType` is set to `PrePaid`. The valid values for this parameter depend on the value of `PeriodUnit`.
76
- *
77
- * - If `PeriodUnit` is set to `Week`, the only valid value is 1.
78
- *
79
- * - If `PeriodUnit` is set to `Month`, valid values are 1, 2, 3, and 6.
95
+ * The subscription duration of the premium bandwidth plan. This parameter takes effect and is required only when PayType is set to PrePaid. Valid values are determined by the PeriodUnit parameter.
80
96
  *
81
- * - If `PeriodUnit` is set to `Year`, valid values are 1, 2, and 3.
97
+ * - If PeriodUnit is set to Week, the valid value is 1.
98
+ * - If PeriodUnit is set to Month, valid values are 1, 2, 3, and 6.
99
+ * - If PeriodUnit is set to Year, valid values are 1, 2, and 3.
82
100
  *
83
101
  * Default value: 1.
84
102
  *
@@ -88,7 +106,7 @@ export class CreateNetworkPackageRequest extends $dara.Model {
88
106
  period?: number;
89
107
  /**
90
108
  * @remarks
91
- * The unit of the subscription duration for the network package. This parameter is required and applies only when `PayType` is set to `PrePaid`.
109
+ * The unit of the subscription duration for the premium bandwidth plan. This parameter takes effect and is required only when PayType is set to PrePaid.
92
110
  *
93
111
  * @example
94
112
  * Week
@@ -104,7 +122,7 @@ export class CreateNetworkPackageRequest extends $dara.Model {
104
122
  promotionId?: string;
105
123
  /**
106
124
  * @remarks
107
- * The region ID. You can call the [DescribeRegions](https://help.aliyun.com/document_detail/196646.html) operation to get the list of regions supported by Elastic Desktop Service.
125
+ * The region ID. You can call [DescribeRegions](https://help.aliyun.com/document_detail/196646.html) to query the regions supported by Elastic Desktop Service.
108
126
  *
109
127
  * This parameter is required.
110
128
  *
@@ -113,6 +131,7 @@ export class CreateNetworkPackageRequest extends $dara.Model {
113
131
  */
114
132
  regionId?: string;
115
133
  resellerOwnerUid?: number;
134
+ tag?: CreateNetworkPackageRequestTag[];
116
135
  static names(): { [key: string]: string } {
117
136
  return {
118
137
  autoPay: 'AutoPay',
@@ -127,6 +146,7 @@ export class CreateNetworkPackageRequest extends $dara.Model {
127
146
  promotionId: 'PromotionId',
128
147
  regionId: 'RegionId',
129
148
  resellerOwnerUid: 'ResellerOwnerUid',
149
+ tag: 'Tag',
130
150
  };
131
151
  }
132
152
 
@@ -144,10 +164,14 @@ export class CreateNetworkPackageRequest extends $dara.Model {
144
164
  promotionId: 'string',
145
165
  regionId: 'string',
146
166
  resellerOwnerUid: 'number',
167
+ tag: { 'type': 'array', 'itemType': CreateNetworkPackageRequestTag },
147
168
  };
148
169
  }
149
170
 
150
171
  validate() {
172
+ if(Array.isArray(this.tag)) {
173
+ $dara.Model.validateArray(this.tag);
174
+ }
151
175
  super.validate();
152
176
  }
153
177
 
@@ -5,7 +5,7 @@ import * as $dara from '@darabonba/typescript';
5
5
  export class CreateNetworkPackageResponseBody extends $dara.Model {
6
6
  /**
7
7
  * @remarks
8
- * The ID of the created network package.
8
+ * The premium bandwidth plan ID.
9
9
  *
10
10
  * @example
11
11
  * np-amtp8e8q1o9e4****
@@ -13,7 +13,7 @@ export class CreateNetworkPackageResponseBody extends $dara.Model {
13
13
  networkPackageId?: string;
14
14
  /**
15
15
  * @remarks
16
- * The ID of the order.
16
+ * The order ID.
17
17
  *
18
18
  * @example
19
19
  * 234526262716724
@@ -21,7 +21,7 @@ export class CreateNetworkPackageResponseBody extends $dara.Model {
21
21
  orderId?: string;
22
22
  /**
23
23
  * @remarks
24
- * The ID of the request.
24
+ * The request ID.
25
25
  *
26
26
  * @example
27
27
  * 269BDB16-2CD8-4865-84BD-11C40BC21DB0
@@ -17,7 +17,8 @@ export class DescribeCenterPolicyListRequest extends $dara.Model {
17
17
  modelLibrary?: string;
18
18
  /**
19
19
  * @remarks
20
- * The page number to return in a paged query.<br>Default value: 1.
20
+ * The page number of the current page in a paged query. Paging starts from page 1.
21
+ * Default value: 1.
21
22
  *
22
23
  * @example
23
24
  * 1
@@ -25,7 +26,7 @@ export class DescribeCenterPolicyListRequest extends $dara.Model {
25
26
  pageNumber?: number;
26
27
  /**
27
28
  * @remarks
28
- * The maximum number of entries per page in a paged query.
29
+ * The maximum number of entries per page in a paged query. Paging is used to return results in batches.
29
30
  *
30
31
  * @example
31
32
  * 20
@@ -33,7 +34,7 @@ export class DescribeCenterPolicyListRequest extends $dara.Model {
33
34
  pageSize?: number;
34
35
  /**
35
36
  * @remarks
36
- * The list of Cloud Desktop policy IDs.
37
+ * The list of cloud desktop policy IDs.
37
38
  */
38
39
  policyGroupId?: string[];
39
40
  portProxy?: string;
@@ -49,7 +50,7 @@ export class DescribeCenterPolicyListRequest extends $dara.Model {
49
50
  resourceType?: string;
50
51
  /**
51
52
  * @remarks
52
- * The scope where the Cloud Desktop policy takes effect.
53
+ * The effective scope of the cloud desktop policy.
53
54
  *
54
55
  * @example
55
56
  * GLOBAL