@alicloud/cloudfw20171207 8.2.0 → 8.2.1

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 (59) hide show
  1. package/dist/client.d.ts +34 -34
  2. package/dist/client.js +73 -37
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/AddAddressBookRequest.d.ts +291 -10
  5. package/dist/models/AddAddressBookRequest.js +146 -1
  6. package/dist/models/AddAddressBookRequest.js.map +1 -1
  7. package/dist/models/AddAddressBookResponseBody.d.ts +1 -1
  8. package/dist/models/AddAddressBookShrinkRequest.d.ts +186 -0
  9. package/dist/models/AddAddressBookShrinkRequest.js +135 -0
  10. package/dist/models/AddAddressBookShrinkRequest.js.map +1 -0
  11. package/dist/models/DescribeAclWhitelistRequest.d.ts +1 -2
  12. package/dist/models/DescribeAclWhitelistRequest.js.map +1 -1
  13. package/dist/models/DescribeAclWhitelistResponseBody.d.ts +11 -19
  14. package/dist/models/DescribeAclWhitelistResponseBody.js.map +1 -1
  15. package/dist/models/DescribeAddressBookRequest.d.ts +16 -9
  16. package/dist/models/DescribeAddressBookRequest.js +5 -0
  17. package/dist/models/DescribeAddressBookRequest.js.map +1 -1
  18. package/dist/models/DescribeAddressBookResponseBody.d.ts +304 -19
  19. package/dist/models/DescribeAddressBookResponseBody.js +146 -1
  20. package/dist/models/DescribeAddressBookResponseBody.js.map +1 -1
  21. package/dist/models/DescribeAddressBookShrinkRequest.d.ts +82 -0
  22. package/dist/models/DescribeAddressBookShrinkRequest.js +72 -0
  23. package/dist/models/DescribeAddressBookShrinkRequest.js.map +1 -0
  24. package/dist/models/DescribeFirewallTrafficTrendRequest.d.ts +12 -0
  25. package/dist/models/DescribeFirewallTrafficTrendRequest.js.map +1 -1
  26. package/dist/models/DescribeFirewallTrafficTrendResponseBody.d.ts +43 -0
  27. package/dist/models/DescribeFirewallTrafficTrendResponseBody.js.map +1 -1
  28. package/dist/models/DescribeOutgoingDomainDetailResponseBody.d.ts +6 -2
  29. package/dist/models/DescribeOutgoingDomainDetailResponseBody.js.map +1 -1
  30. package/dist/models/ModifyAddressBookRequest.d.ts +302 -17
  31. package/dist/models/ModifyAddressBookRequest.js +146 -1
  32. package/dist/models/ModifyAddressBookRequest.js.map +1 -1
  33. package/dist/models/ModifyAddressBookShrinkRequest.d.ts +192 -0
  34. package/dist/models/ModifyAddressBookShrinkRequest.js +135 -0
  35. package/dist/models/ModifyAddressBookShrinkRequest.js.map +1 -0
  36. package/dist/models/ModifyNatFirewallControlPolicyPositionRequest.d.ts +6 -9
  37. package/dist/models/ModifyNatFirewallControlPolicyPositionRequest.js.map +1 -1
  38. package/dist/models/ModifyNatFirewallControlPolicyPositionResponseBody.d.ts +1 -1
  39. package/dist/models/model.d.ts +19 -0
  40. package/dist/models/model.js +71 -32
  41. package/dist/models/model.js.map +1 -1
  42. package/package.json +1 -1
  43. package/src/client.ts +83 -37
  44. package/src/models/AddAddressBookRequest.ts +400 -10
  45. package/src/models/AddAddressBookResponseBody.ts +1 -1
  46. package/src/models/AddAddressBookShrinkRequest.ts +258 -0
  47. package/src/models/DescribeAclWhitelistRequest.ts +1 -2
  48. package/src/models/DescribeAclWhitelistResponseBody.ts +11 -19
  49. package/src/models/DescribeAddressBookRequest.ts +21 -9
  50. package/src/models/DescribeAddressBookResponseBody.ts +413 -19
  51. package/src/models/DescribeAddressBookShrinkRequest.ts +109 -0
  52. package/src/models/DescribeFirewallTrafficTrendRequest.ts +12 -0
  53. package/src/models/DescribeFirewallTrafficTrendResponseBody.ts +43 -0
  54. package/src/models/DescribeOutgoingDomainDetailResponseBody.ts +6 -2
  55. package/src/models/ModifyAddressBookRequest.ts +411 -17
  56. package/src/models/ModifyAddressBookShrinkRequest.ts +264 -0
  57. package/src/models/ModifyNatFirewallControlPolicyPositionRequest.ts +6 -9
  58. package/src/models/ModifyNatFirewallControlPolicyPositionResponseBody.ts +1 -1
  59. package/src/models/model.ts +19 -0
@@ -0,0 +1,258 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class AddAddressBookShrinkRequestAckLabels extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * The key of the ACK cluster pod label.
9
+ *
10
+ * @example
11
+ * app
12
+ */
13
+ key?: string;
14
+ /**
15
+ * @remarks
16
+ * The value of the ACK cluster pod label.
17
+ *
18
+ * @example
19
+ * storage-operator
20
+ */
21
+ value?: string;
22
+ static names(): { [key: string]: string } {
23
+ return {
24
+ key: 'Key',
25
+ value: 'Value',
26
+ };
27
+ }
28
+
29
+ static types(): { [key: string]: any } {
30
+ return {
31
+ key: 'string',
32
+ value: 'string',
33
+ };
34
+ }
35
+
36
+ validate() {
37
+ super.validate();
38
+ }
39
+
40
+ constructor(map?: { [key: string]: any }) {
41
+ super(map);
42
+ }
43
+ }
44
+
45
+ export class AddAddressBookShrinkRequestTagList extends $dara.Model {
46
+ /**
47
+ * @remarks
48
+ * The key of the ECS tag.
49
+ *
50
+ * @example
51
+ * TXY
52
+ */
53
+ tagKey?: string;
54
+ /**
55
+ * @remarks
56
+ * The value of the ECS tag.
57
+ *
58
+ * @example
59
+ * 1
60
+ */
61
+ tagValue?: string;
62
+ static names(): { [key: string]: string } {
63
+ return {
64
+ tagKey: 'TagKey',
65
+ tagValue: 'TagValue',
66
+ };
67
+ }
68
+
69
+ static types(): { [key: string]: any } {
70
+ return {
71
+ tagKey: 'string',
72
+ tagValue: 'string',
73
+ };
74
+ }
75
+
76
+ validate() {
77
+ super.validate();
78
+ }
79
+
80
+ constructor(map?: { [key: string]: any }) {
81
+ super(map);
82
+ }
83
+ }
84
+
85
+ export class AddAddressBookShrinkRequest extends $dara.Model {
86
+ /**
87
+ * @remarks
88
+ * The ACK cluster connector ID. You can obtain the value from the following operation:
89
+ * - [DescribeAckClusterConnectors](~~DescribeAckClusterConnectors~~): Lists ACK cluster connectors.
90
+ *
91
+ * @example
92
+ * ac-7c1bad6c3cc84c33baab1
93
+ */
94
+ ackClusterConnectorId?: string;
95
+ /**
96
+ * @remarks
97
+ * The list of ACK cluster pod labels.
98
+ *
99
+ * > A maximum of 10 labels are supported.
100
+ */
101
+ ackLabels?: AddAddressBookShrinkRequestAckLabels[];
102
+ /**
103
+ * @remarks
104
+ * The list of ACK cluster pod namespaces.
105
+ * > A maximum of 10 namespaces are supported.
106
+ */
107
+ ackNamespaces?: string[];
108
+ /**
109
+ * @remarks
110
+ * The addresses in the address book. Separate multiple addresses with commas (,). Use a space to separate an address from its description within a single address element.
111
+ *
112
+ * > This parameter is required when GroupType is set to `ip`, `port`, or `domain`.
113
+ *
114
+ * - When GroupType is set to `ip`, enter IP addresses in the address list. Example: 192.0.XX.XX/32 Development CIDR block,10.0.0.X/24,192.0.XX.XX/24 Test CIDR block.
115
+ *
116
+ * - When GroupType is set to `port`, enter ports or port ranges in the address list. Example: 80 HTTP port,100/200,3306 Database port.
117
+ *
118
+ * - When GroupType is set to `domain`, enter domain names in the address list. Example: example.com Test domain name,aliyundoc.com,www.aliyun.com Alibaba Cloud official website.
119
+ *
120
+ * @example
121
+ * 192.0.XX.XX/32 ,192.0.XX.XX/24
122
+ */
123
+ addressList?: string;
124
+ /**
125
+ * @remarks
126
+ * The list of member accounts for the asset address book.
127
+ */
128
+ assetMemberUidsShrink?: string;
129
+ /**
130
+ * @remarks
131
+ * The list of regions and resource types for the asset address book.
132
+ */
133
+ assetRegionResourceTypesShrink?: string;
134
+ /**
135
+ * @remarks
136
+ * Indicates whether to automatically add the public IP addresses of Elastic Compute Service (ECS) instances that match the specified tags to the address book.
137
+ *
138
+ * @example
139
+ * 1
140
+ */
141
+ autoAddTagEcs?: string;
142
+ /**
143
+ * @remarks
144
+ * The description of the address book.
145
+ *
146
+ * This parameter is required.
147
+ *
148
+ * @example
149
+ * sz-001
150
+ */
151
+ description?: string;
152
+ /**
153
+ * @remarks
154
+ * The name of the address book.
155
+ *
156
+ * This parameter is required.
157
+ *
158
+ * @example
159
+ * sz-001
160
+ */
161
+ groupName?: string;
162
+ /**
163
+ * @remarks
164
+ * The type of the address book.
165
+ *
166
+ * This parameter is required.
167
+ *
168
+ * @example
169
+ * ip
170
+ */
171
+ groupType?: string;
172
+ /**
173
+ * @remarks
174
+ * The language type of the address book description.
175
+ *
176
+ * @example
177
+ * zh
178
+ */
179
+ lang?: string;
180
+ /**
181
+ * @remarks
182
+ * The source IP address of the request.
183
+ *
184
+ * @example
185
+ * 192.0.XX.XX
186
+ *
187
+ * @deprecated
188
+ */
189
+ sourceIp?: string;
190
+ /**
191
+ * @remarks
192
+ * The ECS tag list.
193
+ */
194
+ tagList?: AddAddressBookShrinkRequestTagList[];
195
+ /**
196
+ * @remarks
197
+ * The logical relationship among multiple ECS tags to match.
198
+ *
199
+ * @example
200
+ * and
201
+ */
202
+ tagRelation?: string;
203
+ static names(): { [key: string]: string } {
204
+ return {
205
+ ackClusterConnectorId: 'AckClusterConnectorId',
206
+ ackLabels: 'AckLabels',
207
+ ackNamespaces: 'AckNamespaces',
208
+ addressList: 'AddressList',
209
+ assetMemberUidsShrink: 'AssetMemberUids',
210
+ assetRegionResourceTypesShrink: 'AssetRegionResourceTypes',
211
+ autoAddTagEcs: 'AutoAddTagEcs',
212
+ description: 'Description',
213
+ groupName: 'GroupName',
214
+ groupType: 'GroupType',
215
+ lang: 'Lang',
216
+ sourceIp: 'SourceIp',
217
+ tagList: 'TagList',
218
+ tagRelation: 'TagRelation',
219
+ };
220
+ }
221
+
222
+ static types(): { [key: string]: any } {
223
+ return {
224
+ ackClusterConnectorId: 'string',
225
+ ackLabels: { 'type': 'array', 'itemType': AddAddressBookShrinkRequestAckLabels },
226
+ ackNamespaces: { 'type': 'array', 'itemType': 'string' },
227
+ addressList: 'string',
228
+ assetMemberUidsShrink: 'string',
229
+ assetRegionResourceTypesShrink: 'string',
230
+ autoAddTagEcs: 'string',
231
+ description: 'string',
232
+ groupName: 'string',
233
+ groupType: 'string',
234
+ lang: 'string',
235
+ sourceIp: 'string',
236
+ tagList: { 'type': 'array', 'itemType': AddAddressBookShrinkRequestTagList },
237
+ tagRelation: 'string',
238
+ };
239
+ }
240
+
241
+ validate() {
242
+ if(Array.isArray(this.ackLabels)) {
243
+ $dara.Model.validateArray(this.ackLabels);
244
+ }
245
+ if(Array.isArray(this.ackNamespaces)) {
246
+ $dara.Model.validateArray(this.ackNamespaces);
247
+ }
248
+ if(Array.isArray(this.tagList)) {
249
+ $dara.Model.validateArray(this.tagList);
250
+ }
251
+ super.validate();
252
+ }
253
+
254
+ constructor(map?: { [key: string]: any }) {
255
+ super(map);
256
+ }
257
+ }
258
+
@@ -5,10 +5,9 @@ import * as $dara from '@darabonba/typescript';
5
5
  export class DescribeAclWhitelistRequest extends $dara.Model {
6
6
  /**
7
7
  * @remarks
8
- * The language of the response message. Valid values:
8
+ * The language of the messages to receive. Valid values:
9
9
  *
10
10
  * - **zh** (default): Chinese
11
- *
12
11
  * - **en**: English
13
12
  *
14
13
  * @example
@@ -6,10 +6,8 @@ export class DescribeAclWhitelistResponseBody extends $dara.Model {
6
6
  /**
7
7
  * @remarks
8
8
  * Indicates whether the whitelist is enabled. Valid values:
9
- *
10
- * - **true**: enabled
11
- *
12
- * - **false**: disabled
9
+ * - **true**: Enabled.
10
+ * - **false**: Not enabled.
13
11
  *
14
12
  * @example
15
13
  * true
@@ -17,11 +15,9 @@ export class DescribeAclWhitelistResponseBody extends $dara.Model {
17
15
  domainGroupUseDns?: boolean;
18
16
  /**
19
17
  * @remarks
20
- * Indicates whether DNS is supported for domain names in NAT scenarios. Valid values:
21
- *
22
- * - **true**: supported
23
- *
24
- * - **false**: not supported
18
+ * Indicates whether domain name DNS is supported in NAT scenarios. Valid values:
19
+ * - **true**: Supported.
20
+ * - **false**: Not supported.
25
21
  *
26
22
  * @example
27
23
  * false
@@ -29,7 +25,7 @@ export class DescribeAclWhitelistResponseBody extends $dara.Model {
29
25
  natDomainGroupUseDns?: boolean;
30
26
  /**
31
27
  * @remarks
32
- * The ID of the request.
28
+ * The request ID.
33
29
  *
34
30
  * @example
35
31
  * 7D45133B-DBC0-506B-9DF9-AB0735D3****
@@ -38,10 +34,8 @@ export class DescribeAclWhitelistResponseBody extends $dara.Model {
38
34
  /**
39
35
  * @remarks
40
36
  * Indicates whether the message type is supported. Valid values:
41
- *
42
- * - **true**: supported
43
- *
44
- * - **false**: not supported
37
+ * - **true**: Supported.
38
+ * - **false**: Not supported.
45
39
  *
46
40
  * @example
47
41
  * true
@@ -49,11 +43,9 @@ export class DescribeAclWhitelistResponseBody extends $dara.Model {
49
43
  supportMessageType?: boolean;
50
44
  /**
51
45
  * @remarks
52
- * Indicates whether DNS is supported for domain names in VPC scenarios. Valid values:
53
- *
54
- * - **true**: supported
55
- *
56
- * - **false**: not supported
46
+ * Indicates whether domain name DNS is supported in VPC scenarios. Valid values:
47
+ * - **true**: Supported.
48
+ * - **false**: Not supported.
57
49
  *
58
50
  * @example
59
51
  * false
@@ -5,7 +5,12 @@ import * as $dara from '@darabonba/typescript';
5
5
  export class DescribeAddressBookRequest extends $dara.Model {
6
6
  /**
7
7
  * @remarks
8
- * Filters the query to return only address books that contain the specified port. This parameter is valid only when **GroupType** is set to **port**.
8
+ * The list of member accounts for the asset address book.
9
+ */
10
+ assetMemberUids?: number[];
11
+ /**
12
+ * @remarks
13
+ * Queries address books that contain the specified port. This parameter takes effect only when the **GroupType** parameter is set to **port**.
9
14
  *
10
15
  * @example
11
16
  * 80
@@ -13,9 +18,9 @@ export class DescribeAddressBookRequest extends $dara.Model {
13
18
  containPort?: string;
14
19
  /**
15
20
  * @remarks
16
- * The page number for a paginated query.
21
+ * The page number in a paged query.
17
22
  *
18
- * Default value: 1.
23
+ * Default value: 1, which indicates that the first page of data is returned.
19
24
  *
20
25
  * @example
21
26
  * 1
@@ -25,7 +30,7 @@ export class DescribeAddressBookRequest extends $dara.Model {
25
30
  * @remarks
26
31
  * The type of the address book.
27
32
  *
28
- * > If this parameter is not specified, the query returns both IPv4 and ECS tag address books.
33
+ * > If you do not set this parameter, IP address books and ECS tag-based address books are queried.
29
34
  *
30
35
  * @example
31
36
  * ip
@@ -33,7 +38,7 @@ export class DescribeAddressBookRequest extends $dara.Model {
33
38
  groupType?: string;
34
39
  /**
35
40
  * @remarks
36
- * The unique identifier of the address book.
41
+ * The unique ID of the address book.
37
42
  *
38
43
  * @example
39
44
  * f04ac7ce-628b-4cb7-be61-310222b7****
@@ -41,7 +46,9 @@ export class DescribeAddressBookRequest extends $dara.Model {
41
46
  groupUuid?: string;
42
47
  /**
43
48
  * @remarks
44
- * The language of the content in the response.
49
+ * The language type for the address book description. Valid values:
50
+ * - **en**: English.
51
+ * - **zh**: Chinese (default).
45
52
  *
46
53
  * @example
47
54
  * zh
@@ -49,9 +56,9 @@ export class DescribeAddressBookRequest extends $dara.Model {
49
56
  lang?: string;
50
57
  /**
51
58
  * @remarks
52
- * The number of address books per page.
59
+ * The number of address books on each page in a paged query.
53
60
  *
54
- * Default value: 10. Maximum value: 50.
61
+ * Default value: 10, which indicates that each page contains 10 results. Maximum value: 50.
55
62
  *
56
63
  * @example
57
64
  * 10
@@ -59,7 +66,7 @@ export class DescribeAddressBookRequest extends $dara.Model {
59
66
  pageSize?: string;
60
67
  /**
61
68
  * @remarks
62
- * The search keyword for address books.
69
+ * The search condition. Enter the address book information that you want to query.
63
70
  *
64
71
  * @example
65
72
  * 192.0.XX.XX
@@ -67,6 +74,7 @@ export class DescribeAddressBookRequest extends $dara.Model {
67
74
  query?: string;
68
75
  static names(): { [key: string]: string } {
69
76
  return {
77
+ assetMemberUids: 'AssetMemberUids',
70
78
  containPort: 'ContainPort',
71
79
  currentPage: 'CurrentPage',
72
80
  groupType: 'GroupType',
@@ -79,6 +87,7 @@ export class DescribeAddressBookRequest extends $dara.Model {
79
87
 
80
88
  static types(): { [key: string]: any } {
81
89
  return {
90
+ assetMemberUids: { 'type': 'array', 'itemType': 'number' },
82
91
  containPort: 'string',
83
92
  currentPage: 'string',
84
93
  groupType: 'string',
@@ -90,6 +99,9 @@ export class DescribeAddressBookRequest extends $dara.Model {
90
99
  }
91
100
 
92
101
  validate() {
102
+ if(Array.isArray(this.assetMemberUids)) {
103
+ $dara.Model.validateArray(this.assetMemberUids);
104
+ }
93
105
  super.validate();
94
106
  }
95
107