alibabacloud-quotas20200510 1.2.1__py3-none-any.whl → 1.2.2__py3-none-any.whl
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.
- alibabacloud_quotas20200510/__init__.py +1 -1
- alibabacloud_quotas20200510/client.py +96 -56
- alibabacloud_quotas20200510/models.py +215 -107
- {alibabacloud_quotas20200510-1.2.1.dist-info → alibabacloud_quotas20200510-1.2.2.dist-info}/METADATA +5 -5
- alibabacloud_quotas20200510-1.2.2.dist-info/RECORD +8 -0
- alibabacloud_quotas20200510-1.2.1.dist-info/RECORD +0 -8
- {alibabacloud_quotas20200510-1.2.1.dist-info → alibabacloud_quotas20200510-1.2.2.dist-info}/LICENSE +0 -0
- {alibabacloud_quotas20200510-1.2.1.dist-info → alibabacloud_quotas20200510-1.2.2.dist-info}/WHEEL +0 -0
- {alibabacloud_quotas20200510-1.2.1.dist-info → alibabacloud_quotas20200510-1.2.2.dist-info}/top_level.txt +0 -0
@@ -10,7 +10,13 @@ class CreateQuotaAlarmRequestQuotaDimensions(TeaModel):
|
|
10
10
|
key: str = None,
|
11
11
|
value: str = None,
|
12
12
|
):
|
13
|
+
# The key of the dimension.
|
14
|
+
#
|
15
|
+
# > You must configure `Dimensions.N.Key` and `Dimensions.N.Value` at the same time. The value range of N varies based on the number of dimensions that are supported by the related Alibaba Cloud service. You can call the [ListProductQuotaDimensions](https://help.aliyun.com/document_detail/440553.html) operation to query the dimensions that are supported by an Alibaba Cloud service. The number of items in the returned array is N.
|
13
16
|
self.key = key
|
17
|
+
# The value of the dimension.
|
18
|
+
#
|
19
|
+
# > You must configure `Dimensions.N.Key` and `Dimensions.N.Value` at the same time. The value range of N varies based on the number of dimensions that are supported by the related Alibaba Cloud service. You can call the [ListProductQuotaDimensions](https://help.aliyun.com/document_detail/440553.html) operation to query the dimensions that are supported by an Alibaba Cloud service. The number of items in the returned array is N.
|
14
20
|
self.value = value
|
15
21
|
|
16
22
|
def validate(self):
|
@@ -41,6 +47,7 @@ class CreateQuotaAlarmRequest(TeaModel):
|
|
41
47
|
def __init__(
|
42
48
|
self,
|
43
49
|
alarm_name: str = None,
|
50
|
+
original_context: str = None,
|
44
51
|
product_code: str = None,
|
45
52
|
quota_action_code: str = None,
|
46
53
|
quota_dimensions: List[CreateQuotaAlarmRequestQuotaDimensions] = None,
|
@@ -49,16 +56,43 @@ class CreateQuotaAlarmRequest(TeaModel):
|
|
49
56
|
threshold_type: str = None,
|
50
57
|
web_hook: str = None,
|
51
58
|
):
|
59
|
+
# Quota alarm name
|
60
|
+
#
|
52
61
|
# This parameter is required.
|
53
62
|
self.alarm_name = alarm_name
|
63
|
+
self.original_context = original_context
|
64
|
+
# The abbreviation of the Alibaba Cloud service name.
|
65
|
+
#
|
66
|
+
# > To query the abbreviation of an Alibaba Cloud service name, check the `ProductCode` parameter that is described in [ListProductQuotas](https://help.aliyun.com/document_detail/440554.html).
|
67
|
+
#
|
54
68
|
# This parameter is required.
|
55
69
|
self.product_code = product_code
|
70
|
+
# The quota ID.
|
71
|
+
#
|
72
|
+
# > To obtain the quota ID of an Alibaba Cloud service, call the [ListProductQuotas](https://help.aliyun.com/document_detail/440554.html) operation and check the value of `QuotaActionCode` in the response.
|
73
|
+
#
|
56
74
|
# This parameter is required.
|
57
75
|
self.quota_action_code = quota_action_code
|
76
|
+
# The quota dimensions. A quota item is uniquely identified by the values of `Dimensions` and `QuotaActionCode`.
|
77
|
+
#
|
78
|
+
# > This parameter is required for specific Alibaba Cloud services. You can call the [ListProductQuotaDimensions](https://help.aliyun.com/document_detail/440553.html) operation to query the quota dimensions that are supported by an Alibaba Cloud service. The value of `Requisite` in the response indicates whether a dimension is required.
|
58
79
|
self.quota_dimensions = quota_dimensions
|
80
|
+
# The numerical value of the quota alarm threshold. Value settings:
|
81
|
+
# - When `ThresholdType` is set to `used`, an alarm notification will be sent if the used amount of the quota is greater than or equal to the preset value. The quota alarm threshold must be greater than the used amount of the quota.
|
82
|
+
# - When `ThresholdType` is set to `usable`, an alarm notification will be sent if the remaining available amount of the quota is less than or equal to the preset value. The quota alarm threshold must be less than the remaining available amount of the quota.
|
83
|
+
# > One of this parameter and ThresholdPercent must be set.
|
59
84
|
self.threshold = threshold
|
85
|
+
# The percentage of the quota alert threshold. Values:
|
86
|
+
# - When `ThresholdType` is set to `used`, you will receive an alert notification if the used amount of the quota is greater than or equal to the preset percentage. The value range is (50%, 100%].
|
87
|
+
# - When `ThresholdType` is set to `usable`, you will receive an alert notification if the remaining available amount of the quota is less than or equal to the preset percentage. The value range is (0%, 50%].
|
88
|
+
# > One of this parameter and Threshold must be set.
|
60
89
|
self.threshold_percent = threshold_percent
|
90
|
+
# The type of the quota alert. Valid values:
|
91
|
+
#
|
92
|
+
# * used (default): The alert is created for the used quota.
|
93
|
+
# * usable: The alert is created for the available quota.
|
61
94
|
self.threshold_type = threshold_type
|
95
|
+
# The quota center sends alert information to the specified public URL address via a POST request using the HTTP protocol.
|
62
96
|
self.web_hook = web_hook
|
63
97
|
|
64
98
|
def validate(self):
|
@@ -75,6 +109,8 @@ class CreateQuotaAlarmRequest(TeaModel):
|
|
75
109
|
result = dict()
|
76
110
|
if self.alarm_name is not None:
|
77
111
|
result['AlarmName'] = self.alarm_name
|
112
|
+
if self.original_context is not None:
|
113
|
+
result['OriginalContext'] = self.original_context
|
78
114
|
if self.product_code is not None:
|
79
115
|
result['ProductCode'] = self.product_code
|
80
116
|
if self.quota_action_code is not None:
|
@@ -97,6 +133,8 @@ class CreateQuotaAlarmRequest(TeaModel):
|
|
97
133
|
m = m or dict()
|
98
134
|
if m.get('AlarmName') is not None:
|
99
135
|
self.alarm_name = m.get('AlarmName')
|
136
|
+
if m.get('OriginalContext') is not None:
|
137
|
+
self.original_context = m.get('OriginalContext')
|
100
138
|
if m.get('ProductCode') is not None:
|
101
139
|
self.product_code = m.get('ProductCode')
|
102
140
|
if m.get('QuotaActionCode') is not None:
|
@@ -123,7 +161,9 @@ class CreateQuotaAlarmResponseBody(TeaModel):
|
|
123
161
|
alarm_id: str = None,
|
124
162
|
request_id: str = None,
|
125
163
|
):
|
164
|
+
# Alarm ID.
|
126
165
|
self.alarm_id = alarm_id
|
166
|
+
# The request ID.
|
127
167
|
self.request_id = request_id
|
128
168
|
|
129
169
|
def validate(self):
|
@@ -199,19 +239,11 @@ class CreateQuotaApplicationRequestDimensions(TeaModel):
|
|
199
239
|
):
|
200
240
|
# The key of the dimension.
|
201
241
|
#
|
202
|
-
# >
|
203
|
-
#
|
204
|
-
# * The value range of N varies based on the number of dimensions that are supported by the related Alibaba Cloud service.
|
205
|
-
#
|
206
|
-
# * This parameter is required if you set the `ProductCode` parameter to `ecs`, `ecs-spec`, `actiontrail`, or `ess`.
|
242
|
+
# > You must configure `Dimensions.N.Key` and `Dimensions.N.Value` at the same time. The value range of N varies based on the number of dimensions that are supported by the related Alibaba Cloud service. You can call the [ListProductQuotaDimensions](~~ListProductQuotaDimensions~~) operation to query the dimensions that are supported by an Alibaba Cloud service. The number of elements in the returned array is N.
|
207
243
|
self.key = key
|
208
244
|
# The value of the dimension.
|
209
245
|
#
|
210
|
-
# >
|
211
|
-
#
|
212
|
-
# * The value range of N varies based on the number of dimensions that are supported by the related Alibaba Cloud service.
|
213
|
-
#
|
214
|
-
# * This parameter is required if you set the `ProductCode` parameter to `ecs`, `ecs-spec`, `actiontrail`, or `ess`.
|
246
|
+
# > You must configure `Dimensions.N.Key` and `Dimensions.N.Value` at the same time. The value range of N varies based on the number of dimensions that are supported by the related Alibaba Cloud service. You can call the [ListProductQuotaDimensions](~~ListProductQuotaDimensions~~) operation to query the dimensions that are supported by an Alibaba Cloud service. The number of elements in the returned array is N.
|
215
247
|
self.value = value
|
216
248
|
|
217
249
|
def validate(self):
|
@@ -253,12 +285,13 @@ class CreateQuotaApplicationRequest(TeaModel):
|
|
253
285
|
quota_category: str = None,
|
254
286
|
reason: str = None,
|
255
287
|
):
|
256
|
-
#
|
288
|
+
# > This parameter is deprecated and is not recommended.
|
257
289
|
#
|
258
|
-
#
|
259
|
-
# * Async: The application is reviewed in an asynchronous manner. An Alibaba Cloud support engineer reviews the application. The chance of an approval for an application that is reviewed in Async mode is higher than the chance of an approval for an application that is reviewed in Sync mode. The validity period of the new quota value is one month.
|
290
|
+
# The mode in which you want the application to be reviewed.
|
260
291
|
#
|
261
|
-
#
|
292
|
+
# Valid values:
|
293
|
+
# * Async
|
294
|
+
# * Sync
|
262
295
|
self.audit_mode = audit_mode
|
263
296
|
# The requested value of the quota.
|
264
297
|
#
|
@@ -270,16 +303,20 @@ class CreateQuotaApplicationRequest(TeaModel):
|
|
270
303
|
#
|
271
304
|
# This parameter is required.
|
272
305
|
self.desire_value = desire_value
|
273
|
-
# The quota dimensions.
|
306
|
+
# The quota dimensions. A quota item is uniquely determined by the values of Dimensions and QuotaActionCode.
|
307
|
+
#
|
308
|
+
# > Some dimensions are required. You can call the [ListProductQuotaDimensions](~~ListProductQuotaDimensions~~) operation to query the quota dimensions that are supported by an Alibaba Cloud service. The value of `Requisite` in the response indicates whether a dimension is required.
|
274
309
|
self.dimensions = dimensions
|
275
310
|
# The end time of the validity period of the quota. Specify the value in UTC. This parameter is valid only if you set the QuotaCategory parameter to WhiteListLabel.
|
276
311
|
#
|
277
312
|
# > If you do not specify an end time, the default end time is 99 years after the quota application is submitted.
|
278
313
|
self.effective_time = effective_time
|
279
|
-
# The language of the quota alert notification.
|
314
|
+
# The language of the quota alert notification.
|
315
|
+
#
|
316
|
+
# Valid values:
|
280
317
|
#
|
281
|
-
# * zh (default value): Chinese
|
282
318
|
# * en: English
|
319
|
+
# * zh: Chinese
|
283
320
|
self.env_language = env_language
|
284
321
|
# The start time of the validity period of the quota. Specify the value in UTC. This parameter is valid only if you set the QuotaCategory parameter to WhiteListLabel.
|
285
322
|
#
|
@@ -287,8 +324,8 @@ class CreateQuotaApplicationRequest(TeaModel):
|
|
287
324
|
self.expire_time = expire_time
|
288
325
|
# Specifies whether to send a notification about the application result. Valid values:
|
289
326
|
#
|
290
|
-
# * 0 (default
|
291
|
-
# * 3:
|
327
|
+
# * 0 (default): no
|
328
|
+
# * 3: sends a notification.
|
292
329
|
self.notice_type = notice_type
|
293
330
|
# The abbreviation of the Alibaba Cloud service name.
|
294
331
|
#
|
@@ -302,11 +339,15 @@ class CreateQuotaApplicationRequest(TeaModel):
|
|
302
339
|
#
|
303
340
|
# This parameter is required.
|
304
341
|
self.quota_action_code = quota_action_code
|
305
|
-
# The type of the quota.
|
342
|
+
# The type of the quota. Valid values:
|
343
|
+
#
|
344
|
+
# Default value: CommonQuota.
|
345
|
+
#
|
346
|
+
# Valid values:
|
306
347
|
#
|
307
|
-
# * CommonQuota (default value): general quota
|
308
348
|
# * FlowControl: API rate limit
|
309
349
|
# * WhiteListLabel: whitelist quota
|
350
|
+
# * CommonQuota: general quota
|
310
351
|
self.quota_category = quota_category
|
311
352
|
# The reason for the application.
|
312
353
|
#
|
@@ -421,10 +462,10 @@ class CreateQuotaApplicationResponseBody(TeaModel):
|
|
421
462
|
self.effective_time = effective_time
|
422
463
|
# The time when the new quota expires.
|
423
464
|
self.expire_time = expire_time
|
424
|
-
# Indicates whether
|
465
|
+
# Indicates whether the notification about the application result is sent. Valid values:
|
425
466
|
#
|
426
|
-
# * 0:
|
427
|
-
# * 3:
|
467
|
+
# * 0: The notification is not sent.
|
468
|
+
# * 3: The notification is sent.
|
428
469
|
self.notice_type = notice_type
|
429
470
|
# The abbreviation of the Alibaba Cloud service name.
|
430
471
|
self.product_code = product_code
|
@@ -442,12 +483,14 @@ class CreateQuotaApplicationResponseBody(TeaModel):
|
|
442
483
|
self.reason = reason
|
443
484
|
# The ID of the request.
|
444
485
|
self.request_id = request_id
|
445
|
-
# The
|
486
|
+
# The approval state of the quota increase application.
|
487
|
+
#
|
488
|
+
# Valid values:
|
446
489
|
#
|
447
|
-
# * Disagree: The application is rejected.
|
448
|
-
# * Agree: The application is approved.
|
449
|
-
# * Process: The application is being reviewed.
|
450
490
|
# * Cancel: The application is canceled.
|
491
|
+
# * Agree: The application is approved.
|
492
|
+
# * Process: The application is in review.
|
493
|
+
# * Disagree: The application is rejected.
|
451
494
|
self.status = status
|
452
495
|
|
453
496
|
def validate(self):
|
@@ -1367,13 +1410,11 @@ class GetProductQuotaRequestDimensions(TeaModel):
|
|
1367
1410
|
):
|
1368
1411
|
# The key of the dimension.
|
1369
1412
|
#
|
1370
|
-
#
|
1371
|
-
# >- If you call the operation to query the details of a quota that belongs to a cloud service that supports dimensions, you must configure this parameter. You must configure the `Dimensions.N.Key` and `Dimensions.N.Value` parameters at the same time. The following cloud services support dimensions: ECS whose service code is ecs, Enterprise Distributed Application Service (EDAS) whose service code is edas, ECS Quotas by Instance Type whose service code is ecs-spec, and Auto Scaling (ESS) whose service code is ess.
|
1413
|
+
# > This parameter is required for cloud services that support dimensions. You must specify both `Dimensions.N.Key` and `Dimensions.N.Value`. The value range of N varies based on the number of dimensions that are supported by the related Alibaba Cloud service. The following cloud services support dimensions: ECS whose service code is ecs, Enterprise Distributed Application Service (EDAS) whose service code is edas, ECS Quotas by Instance Type whose service code is ecs-spec, and Auto Scaling whose service code is ess.
|
1372
1414
|
self.key = key
|
1373
1415
|
# The value of the dimension.
|
1374
1416
|
#
|
1375
|
-
# >
|
1376
|
-
# > - If you call the operation to query the details of a quota that belongs to a cloud service that supports dimensions, you must configure this parameter. You must configure the `Dimensions.N.Key` and `Dimensions.N.Value` parameters at the same time. The following cloud services support dimensions: ECS whose service code is ecs, EDAS whose service code is edas, ECS Quotas by Instance Type whose service code is ecs-spec, and ESS whose service code is ess.
|
1417
|
+
# > This parameter is required for cloud services that support dimensions. You must specify both `Dimensions.N.Key` and `Dimensions.N.Value`. The value range of N varies based on the number of dimensions that are supported by the related Alibaba Cloud service. The following cloud services support dimensions: ECS whose service code is ecs, EDAS whose service code is edas, ECS Quotas by Instance Type whose service code is ecs-spec, and Auto Scaling whose service code is ess.
|
1377
1418
|
self.value = value
|
1378
1419
|
|
1379
1420
|
def validate(self):
|
@@ -1411,11 +1452,13 @@ class GetProductQuotaRequest(TeaModel):
|
|
1411
1452
|
self.dimensions = dimensions
|
1412
1453
|
# The abbreviation of the Alibaba Cloud service name.
|
1413
1454
|
#
|
1414
|
-
# >
|
1455
|
+
# > To query the abbreviation of an Alibaba Cloud service name, call the [ListProducts](https://help.aliyun.com/document_detail/440555.html) operation and check the value of `ProductCode` in the response.
|
1415
1456
|
#
|
1416
1457
|
# This parameter is required.
|
1417
1458
|
self.product_code = product_code
|
1418
|
-
# The ID
|
1459
|
+
# The quota ID.
|
1460
|
+
#
|
1461
|
+
# > To query a quota ID of an Alibaba Cloud service, call the [ListProductQuotas](https://help.aliyun.com/document_detail/440554.html) operation and check the value of `QuotaActionCode` in the response.
|
1419
1462
|
#
|
1420
1463
|
# This parameter is required.
|
1421
1464
|
self.quota_action_code = quota_action_code
|
@@ -1558,8 +1601,13 @@ class GetProductQuotaResponseBodyQuotaUsageMetric(TeaModel):
|
|
1558
1601
|
metric_name: str = None,
|
1559
1602
|
metric_namespace: str = None,
|
1560
1603
|
):
|
1604
|
+
# The monitoring dimensions.
|
1605
|
+
#
|
1606
|
+
# The value is a collection of `key:value` pairs. Example: `{"productCode":"***","metricKey":"***","regionId":"***","label":"***"}`.
|
1561
1607
|
self.metric_dimensions = metric_dimensions
|
1608
|
+
# The monitoring metric.
|
1562
1609
|
self.metric_name = metric_name
|
1610
|
+
# The monitoring namespace.
|
1563
1611
|
self.metric_namespace = metric_namespace
|
1564
1612
|
|
1565
1613
|
def validate(self):
|
@@ -1623,7 +1671,7 @@ class GetProductQuotaResponseBodyQuota(TeaModel):
|
|
1623
1671
|
# * true
|
1624
1672
|
# * false
|
1625
1673
|
self.adjustable = adjustable
|
1626
|
-
# The range of the quota value.
|
1674
|
+
# The range of the quota value that can be requested for the quota item.
|
1627
1675
|
self.applicable_range = applicable_range
|
1628
1676
|
# The type of the adjustable value. Valid values:
|
1629
1677
|
#
|
@@ -1637,7 +1685,7 @@ class GetProductQuotaResponseBodyQuota(TeaModel):
|
|
1637
1685
|
# * true
|
1638
1686
|
# * false
|
1639
1687
|
self.consumable = consumable
|
1640
|
-
# The quota
|
1688
|
+
# The quota dimensions. Format: `{"regionId":"Region"}`.
|
1641
1689
|
self.dimensions = dimensions
|
1642
1690
|
# The start time of the validity period of the quota. Specify the value in UTC.
|
1643
1691
|
self.effective_time = effective_time
|
@@ -1652,7 +1700,7 @@ class GetProductQuotaResponseBodyQuota(TeaModel):
|
|
1652
1700
|
self.period = period
|
1653
1701
|
# The abbreviation of the Alibaba Cloud service name.
|
1654
1702
|
self.product_code = product_code
|
1655
|
-
# The ID
|
1703
|
+
# The quota ID.
|
1656
1704
|
self.quota_action_code = quota_action_code
|
1657
1705
|
# The Alibaba Cloud Resource Name (ARN) of the quota.
|
1658
1706
|
self.quota_arn = quota_arn
|
@@ -1664,18 +1712,18 @@ class GetProductQuotaResponseBodyQuota(TeaModel):
|
|
1664
1712
|
self.quota_category = quota_category
|
1665
1713
|
# The description of the quota.
|
1666
1714
|
self.quota_description = quota_description
|
1667
|
-
# The details of the
|
1715
|
+
# The details of the quota.
|
1668
1716
|
self.quota_items = quota_items
|
1669
1717
|
# The name of the quota.
|
1670
1718
|
self.quota_name = quota_name
|
1671
1719
|
# The type of the quota. Valid values:
|
1672
1720
|
#
|
1673
1721
|
# * privilege
|
1674
|
-
# * normal
|
1722
|
+
# * normal
|
1675
1723
|
self.quota_type = quota_type
|
1676
|
-
# The unit of the
|
1724
|
+
# The unit of the quota.
|
1677
1725
|
#
|
1678
|
-
# >
|
1726
|
+
# > The unit of each quota is unique. For example, the quota whose ID is `q_cbdch3` represents the maximum number of Container Service for Kubernetes (ACK) clusters. The unit of this quota is clusters. The quota whose ID is `q_security-groups` represents the maximum number of security groups. The unit of this quota is security groups.
|
1679
1727
|
self.quota_unit = quota_unit
|
1680
1728
|
# The range of the quota value.
|
1681
1729
|
self.supported_range = supported_range
|
@@ -1690,6 +1738,9 @@ class GetProductQuotaResponseBodyQuota(TeaModel):
|
|
1690
1738
|
# * limitReached: The quota limit is reached.
|
1691
1739
|
# * supportTicketRequired: The quota can be increased only by submitting a ticket.
|
1692
1740
|
self.unadjustable_detail = unadjustable_detail
|
1741
|
+
# The monitoring information of the quota in CloudMonitor.
|
1742
|
+
#
|
1743
|
+
# > If this parameter is empty, no monitoring data of the quota exists in CloudMonitor.
|
1693
1744
|
self.usage_metric = usage_metric
|
1694
1745
|
|
1695
1746
|
def validate(self):
|
@@ -1826,7 +1877,7 @@ class GetProductQuotaResponseBody(TeaModel):
|
|
1826
1877
|
):
|
1827
1878
|
# The details of the quota.
|
1828
1879
|
self.quota = quota
|
1829
|
-
# The ID
|
1880
|
+
# The request ID.
|
1830
1881
|
self.request_id = request_id
|
1831
1882
|
|
1832
1883
|
def validate(self):
|
@@ -2481,6 +2532,11 @@ class GetQuotaApplicationResponseBodyQuotaApplication(TeaModel):
|
|
2481
2532
|
self.quota_action_code = quota_action_code
|
2482
2533
|
# The Alibaba Cloud Resource Name (ARN) of the quota.
|
2483
2534
|
self.quota_arn = quota_arn
|
2535
|
+
# The quota type. Valid values:
|
2536
|
+
#
|
2537
|
+
# * CommonQuota: general quota.
|
2538
|
+
# * FlowControl: API rate limit.
|
2539
|
+
# * WhiteListLabel: whitelist quota.
|
2484
2540
|
self.quota_category = quota_category
|
2485
2541
|
# The description of the quota.
|
2486
2542
|
self.quota_description = quota_description
|
@@ -2592,7 +2648,7 @@ class GetQuotaApplicationResponseBody(TeaModel):
|
|
2592
2648
|
quota_application: GetQuotaApplicationResponseBodyQuotaApplication = None,
|
2593
2649
|
request_id: str = None,
|
2594
2650
|
):
|
2595
|
-
# The details
|
2651
|
+
# The details of the quota application.
|
2596
2652
|
self.quota_application = quota_application
|
2597
2653
|
# The ID of the request.
|
2598
2654
|
self.request_id = request_id
|
@@ -2922,10 +2978,11 @@ class GetQuotaTemplateServiceStatusResponseBodyTemplateServiceStatus(TeaModel):
|
|
2922
2978
|
):
|
2923
2979
|
# The ID of the resource directory.
|
2924
2980
|
self.resource_directory_id = resource_directory_id
|
2925
|
-
# The
|
2981
|
+
# The status of the quota template. Valid values:
|
2926
2982
|
#
|
2927
2983
|
# * \\-1: The quota template is disabled.
|
2928
2984
|
# * 1: The quota template is enabled.
|
2985
|
+
# * 0: No quota template is specified.
|
2929
2986
|
self.service_status = service_status
|
2930
2987
|
|
2931
2988
|
def validate(self):
|
@@ -4102,12 +4159,17 @@ class ListProductQuotasRequest(TeaModel):
|
|
4102
4159
|
# The code of the dimension group.
|
4103
4160
|
self.group_code = group_code
|
4104
4161
|
# The keyword that you want to use to search for the quotas.
|
4162
|
+
#
|
4163
|
+
# > This parameter is available only for quotas that belong to ECS Quotas by Instance Type. The keyword is used to match the values of `QuotaName` and `QuotaActionCode`.
|
4105
4164
|
self.key_word = key_word
|
4106
4165
|
# The maximum number of records that can be returned for the query.
|
4107
4166
|
#
|
4108
4167
|
# Valid values: 1 to 100. Default value: 30.
|
4109
4168
|
self.max_results = max_results
|
4110
|
-
# The token that
|
4169
|
+
# The pagination token that is used in the next request to retrieve a new page of results.
|
4170
|
+
#
|
4171
|
+
# * You do not need to specify this parameter for the first and last requests.
|
4172
|
+
# * You must specify the token that is obtained from the previous query as the value of NextToken.
|
4111
4173
|
self.next_token = next_token
|
4112
4174
|
# The abbreviation of the Alibaba Cloud service name.
|
4113
4175
|
#
|
@@ -4117,26 +4179,34 @@ class ListProductQuotasRequest(TeaModel):
|
|
4117
4179
|
self.product_code = product_code
|
4118
4180
|
# The quota ID.
|
4119
4181
|
self.quota_action_code = quota_action_code
|
4120
|
-
# The type of the quota.
|
4182
|
+
# The type of the quota.
|
4183
|
+
#
|
4184
|
+
# Default value: CommonQuota.
|
4185
|
+
#
|
4186
|
+
# Valid values:
|
4121
4187
|
#
|
4122
|
-
# * CommonQuota (default value): general quota
|
4123
4188
|
# * FlowControl: API rate limit
|
4124
|
-
# * WhiteListLabel:
|
4189
|
+
# * WhiteListLabel: privilege
|
4190
|
+
# * CommonQuota: general quota
|
4125
4191
|
self.quota_category = quota_category
|
4126
|
-
# The field based on which you want to sort the returned records.
|
4127
|
-
#
|
4128
|
-
# * TIME: The returned records are sorted by the last update time.
|
4129
|
-
# * TOTAL: The returned records are sorted by the usage of the total quota.
|
4130
|
-
# * RESERVED: The returned records are sorted by the usage of the reserved quota.
|
4192
|
+
# The field based on which you want to sort the returned records.
|
4131
4193
|
#
|
4132
4194
|
# > This parameter is available only for quotas that belong to ECS Quotas by Instance Type. You can leave this parameter empty.
|
4133
|
-
self.sort_field = sort_field
|
4134
|
-
# The order in which you want to sort the returned records. Valid values:
|
4135
4195
|
#
|
4136
|
-
#
|
4137
|
-
#
|
4196
|
+
# Valid values:
|
4197
|
+
#
|
4198
|
+
# * TOTAL: sorts the returned records based on the total quota.
|
4199
|
+
# * TIME: sorts the returned records based on the time when the quota was last modified.
|
4200
|
+
# * RESERVED: sorts the returned records based on the reserved quota.
|
4201
|
+
self.sort_field = sort_field
|
4202
|
+
# The order in which you want to sort the returned records.
|
4138
4203
|
#
|
4139
4204
|
# > This parameter is available only for quotas that belong to ECS Quotas by Instance Type. You can leave this parameter empty.
|
4205
|
+
#
|
4206
|
+
# Valid values:
|
4207
|
+
#
|
4208
|
+
# * Descending
|
4209
|
+
# * Ascending
|
4140
4210
|
self.sort_order = sort_order
|
4141
4211
|
|
4142
4212
|
def validate(self):
|
@@ -4209,13 +4279,15 @@ class ListProductQuotasResponseBodyQuotasPeriod(TeaModel):
|
|
4209
4279
|
period_unit: str = None,
|
4210
4280
|
period_value: int = None,
|
4211
4281
|
):
|
4212
|
-
# The unit of the calculation cycle.
|
4282
|
+
# The unit of the calculation cycle.
|
4213
4283
|
#
|
4214
|
-
#
|
4215
|
-
#
|
4284
|
+
# Valid values:
|
4285
|
+
#
|
4286
|
+
# * week
|
4216
4287
|
# * hour
|
4217
4288
|
# * day
|
4218
|
-
# *
|
4289
|
+
# * second
|
4290
|
+
# * minute
|
4219
4291
|
self.period_unit = period_unit
|
4220
4292
|
# The value of the calculation cycle.
|
4221
4293
|
self.period_value = period_value
|
@@ -4252,11 +4324,13 @@ class ListProductQuotasResponseBodyQuotasQuotaItems(TeaModel):
|
|
4252
4324
|
type: str = None,
|
4253
4325
|
usage: str = None,
|
4254
4326
|
):
|
4255
|
-
# The quota
|
4327
|
+
# The value of the quota.
|
4256
4328
|
self.quota = quota
|
4257
4329
|
# The unit of the quota.
|
4258
4330
|
self.quota_unit = quota_unit
|
4259
|
-
# The category of the quota.
|
4331
|
+
# The category of the quota.
|
4332
|
+
#
|
4333
|
+
# Valid values:
|
4260
4334
|
#
|
4261
4335
|
# * BaseQuota: base quota
|
4262
4336
|
# * ReservedQuota: reserved quota
|
@@ -4303,8 +4377,13 @@ class ListProductQuotasResponseBodyQuotasUsageMetric(TeaModel):
|
|
4303
4377
|
metric_name: str = None,
|
4304
4378
|
metric_namespace: str = None,
|
4305
4379
|
):
|
4380
|
+
# The monitoring dimensions.
|
4381
|
+
#
|
4382
|
+
# The value is a collection of `key:value` pairs. Example: `{"productCode":"***","metricKey":"***","regionId":"***","label":"***"}`.
|
4306
4383
|
self.metric_dimensions = metric_dimensions
|
4384
|
+
# The monitoring metric.
|
4307
4385
|
self.metric_name = metric_name
|
4386
|
+
# The monitoring namespace.
|
4308
4387
|
self.metric_namespace = metric_namespace
|
4309
4388
|
|
4310
4389
|
def validate(self):
|
@@ -4363,35 +4442,43 @@ class ListProductQuotasResponseBodyQuotas(TeaModel):
|
|
4363
4442
|
unadjustable_detail: str = None,
|
4364
4443
|
usage_metric: ListProductQuotasResponseBodyQuotasUsageMetric = None,
|
4365
4444
|
):
|
4366
|
-
# Indicates whether the quota is adjustable.
|
4445
|
+
# Indicates whether the quota is adjustable.
|
4446
|
+
#
|
4447
|
+
# Valid values:
|
4367
4448
|
#
|
4368
4449
|
# * true
|
4369
4450
|
# * false
|
4370
4451
|
self.adjustable = adjustable
|
4371
|
-
#
|
4452
|
+
# The range of the quota value that can be requested for the quota item.
|
4372
4453
|
self.applicable_range = applicable_range
|
4373
|
-
# The type of the adjustable value.
|
4454
|
+
# The type of the adjustable value.
|
4455
|
+
#
|
4456
|
+
# Valid values:
|
4374
4457
|
#
|
4375
4458
|
# * continuous
|
4376
4459
|
# * discontinuous
|
4377
4460
|
self.applicable_type = applicable_type
|
4378
4461
|
# The reason for submitting a quota increase request.
|
4379
4462
|
self.apply_reason_tips = apply_reason_tips
|
4380
|
-
# Indicates whether the system shows the used value of the quota.
|
4463
|
+
# Indicates whether the system shows the used value of the quota.
|
4464
|
+
#
|
4465
|
+
# Valid values:
|
4381
4466
|
#
|
4382
4467
|
# * true
|
4383
4468
|
# * false
|
4384
4469
|
self.consumable = consumable
|
4385
|
-
# The quota
|
4470
|
+
# The quota dimension. Format: `{"regionId":"Region"}`.
|
4386
4471
|
self.dimensions = dimensions
|
4387
4472
|
# The start time of the validity period of the quota. The value is displayed in UTC.
|
4388
4473
|
self.effective_time = effective_time
|
4389
4474
|
# The end time of the validity period of the quota. The value is displayed in UTC.
|
4390
4475
|
self.expire_time = expire_time
|
4391
|
-
# Indicates whether the quota is a global quota.
|
4476
|
+
# Indicates whether the quota is a global quota.
|
4392
4477
|
#
|
4393
|
-
#
|
4394
|
-
#
|
4478
|
+
# Valid values:
|
4479
|
+
#
|
4480
|
+
# * true: The quota is shared in all regions.
|
4481
|
+
# * false: The quota is independently used in a region.
|
4395
4482
|
self.global_quota = global_quota
|
4396
4483
|
# The calculation cycle of the quota.
|
4397
4484
|
self.period = period
|
@@ -4401,37 +4488,46 @@ class ListProductQuotasResponseBodyQuotas(TeaModel):
|
|
4401
4488
|
self.quota_action_code = quota_action_code
|
4402
4489
|
# The Alibaba Cloud Resource Name (ARN) of the quota.
|
4403
4490
|
self.quota_arn = quota_arn
|
4404
|
-
# The type of the quota.
|
4491
|
+
# The type of the quota.
|
4492
|
+
#
|
4493
|
+
# Valid values:
|
4405
4494
|
#
|
4406
|
-
# * CommonQuota: general quota
|
4407
4495
|
# * FlowControl: API rate limit
|
4408
|
-
# * WhiteListLabel:
|
4496
|
+
# * WhiteListLabel: whitelist quota
|
4497
|
+
# * CommonQuota: general quota
|
4409
4498
|
self.quota_category = quota_category
|
4410
4499
|
# The description of the quota.
|
4411
4500
|
self.quota_description = quota_description
|
4412
|
-
# The details of the
|
4501
|
+
# The details of the quotas.
|
4413
4502
|
self.quota_items = quota_items
|
4414
|
-
# The quota
|
4503
|
+
# The name of the quota.
|
4415
4504
|
self.quota_name = quota_name
|
4416
|
-
# The type of the quota.
|
4505
|
+
# The type of the quota.
|
4506
|
+
#
|
4507
|
+
# Valid values:
|
4417
4508
|
#
|
4418
|
-
# * privilege
|
4419
4509
|
# * normal
|
4510
|
+
# * privilege
|
4420
4511
|
self.quota_type = quota_type
|
4421
4512
|
# The unit of the quota.
|
4422
4513
|
self.quota_unit = quota_unit
|
4423
|
-
#
|
4514
|
+
# The range of the quota value that can be requested for the current quota item. When you configure a quota template, you can use the range as a reference.
|
4424
4515
|
self.supported_range = supported_range
|
4425
|
-
# The quota
|
4516
|
+
# The value of the quota.
|
4426
4517
|
self.total_quota = total_quota
|
4427
4518
|
# The quota usage.
|
4428
4519
|
self.total_usage = total_usage
|
4429
|
-
# The reason why the quota is not adjustable.
|
4520
|
+
# The reason why the quota is not adjustable.
|
4430
4521
|
#
|
4522
|
+
# Valid values:
|
4523
|
+
#
|
4524
|
+
# * limitReached: The quota limit is reached.
|
4431
4525
|
# * nonactivated: The service is not activated.
|
4432
4526
|
# * applicationProcess: The application is being processed.
|
4433
|
-
# * limitReached: The quota limit is reached.
|
4434
4527
|
self.unadjustable_detail = unadjustable_detail
|
4528
|
+
# The monitoring information of the quota in CloudMonitor.
|
4529
|
+
#
|
4530
|
+
# > If this parameter is empty, no monitoring data of the quota exists in CloudMonitor.
|
4435
4531
|
self.usage_metric = usage_metric
|
4436
4532
|
|
4437
4533
|
def validate(self):
|
@@ -4569,15 +4665,18 @@ class ListProductQuotasResponseBody(TeaModel):
|
|
4569
4665
|
request_id: str = None,
|
4570
4666
|
total_count: int = None,
|
4571
4667
|
):
|
4572
|
-
# The
|
4668
|
+
# The number of records that are returned for the query.
|
4573
4669
|
self.max_results = max_results
|
4574
|
-
# The
|
4670
|
+
# The returned value of NextToken is a pagination token, which can be used in the next request to retrieve a new page of results.
|
4671
|
+
#
|
4672
|
+
# * If NextToken is empty, no next page exists.
|
4673
|
+
# * If a value of NextToken is returned, the value indicates the token that is used for the next query.
|
4575
4674
|
self.next_token = next_token
|
4576
|
-
# The
|
4675
|
+
# The details of the quotas.
|
4577
4676
|
self.quotas = quotas
|
4578
|
-
# The ID
|
4677
|
+
# The request ID.
|
4579
4678
|
self.request_id = request_id
|
4580
|
-
# The total number of
|
4679
|
+
# The total number of entries returned.
|
4581
4680
|
self.total_count = total_count
|
4582
4681
|
|
4583
4682
|
def validate(self):
|
@@ -4671,7 +4770,7 @@ class ListProductsRequest(TeaModel):
|
|
4671
4770
|
max_results: int = None,
|
4672
4771
|
next_token: str = None,
|
4673
4772
|
):
|
4674
|
-
# The maximum number of
|
4773
|
+
# The maximum number of entries to return.
|
4675
4774
|
#
|
4676
4775
|
# Valid values: 1 to 200. Default value: 30.
|
4677
4776
|
self.max_results = max_results
|
@@ -4721,6 +4820,8 @@ class ListProductsResponseBodyProductInfo(TeaModel):
|
|
4721
4820
|
# * support: The Alibaba Cloud service supports general quotas.
|
4722
4821
|
# * unsupport: The Alibaba Cloud service does not support general quotas.
|
4723
4822
|
self.common_quota_support = common_quota_support
|
4823
|
+
# > This parameter is discontinued and is not recommended.
|
4824
|
+
#
|
4724
4825
|
# Indicates whether the Alibaba Cloud service supports dynamic quota adjustment. Valid values:
|
4725
4826
|
#
|
4726
4827
|
# * true
|
@@ -4818,7 +4919,7 @@ class ListProductsResponseBody(TeaModel):
|
|
4818
4919
|
self.max_results = max_results
|
4819
4920
|
# The token that marks the position at which the query ends. An empty value indicates that all data is returned.
|
4820
4921
|
self.next_token = next_token
|
4821
|
-
# The information
|
4922
|
+
# The information about the Alibaba Cloud services.
|
4822
4923
|
self.product_info = product_info
|
4823
4924
|
# The ID of the request.
|
4824
4925
|
self.request_id = request_id
|
@@ -5072,7 +5173,9 @@ class ListQuotaAlarmsResponseBodyQuotaAlarms(TeaModel):
|
|
5072
5173
|
self.exceed_threshold = exceed_threshold
|
5073
5174
|
# The alert notification methods.
|
5074
5175
|
self.notify_channels = notify_channels
|
5075
|
-
# The alert contact.
|
5176
|
+
# The alert contact.
|
5177
|
+
#
|
5178
|
+
# > Valid value: accountContact. Only the account contact is supported.
|
5076
5179
|
self.notify_target = notify_target
|
5077
5180
|
# The abbreviation of the Alibaba Cloud service name.
|
5078
5181
|
self.product_code = product_code
|
@@ -5187,7 +5290,7 @@ class ListQuotaAlarmsResponseBody(TeaModel):
|
|
5187
5290
|
#
|
5188
5291
|
# > An empty value indicates that all data is returned.
|
5189
5292
|
self.next_token = next_token
|
5190
|
-
# The details about the quota alert.
|
5293
|
+
# The details about the quota alert rules.
|
5191
5294
|
self.quota_alarms = quota_alarms
|
5192
5295
|
# The ID of the request.
|
5193
5296
|
self.request_id = request_id
|
@@ -5353,11 +5456,11 @@ class ListQuotaApplicationTemplatesRequest(TeaModel):
|
|
5353
5456
|
self.product_code = product_code
|
5354
5457
|
# The ID of the quota.
|
5355
5458
|
self.quota_action_code = quota_action_code
|
5356
|
-
# The type
|
5459
|
+
# The quota type. Valid values:
|
5357
5460
|
#
|
5358
|
-
# * CommonQuota: general quota
|
5359
|
-
# * WhiteListLabel:
|
5360
|
-
# * FlowControl: API rate limit
|
5461
|
+
# * CommonQuota: general quota.
|
5462
|
+
# * WhiteListLabel: whitelist quota.
|
5463
|
+
# * FlowControl: API rate limit.
|
5361
5464
|
self.quota_category = quota_category
|
5362
5465
|
|
5363
5466
|
def validate(self):
|
@@ -5472,7 +5575,7 @@ class ListQuotaApplicationTemplatesResponseBodyQuotaApplicationTemplates(TeaMode
|
|
5472
5575
|
quota_description: str = None,
|
5473
5576
|
quota_name: str = None,
|
5474
5577
|
):
|
5475
|
-
# None
|
5578
|
+
# None.
|
5476
5579
|
self.applicable_range = applicable_range
|
5477
5580
|
# The type of the adjustable value. Valid values:
|
5478
5581
|
#
|
@@ -5611,7 +5714,7 @@ class ListQuotaApplicationTemplatesResponseBody(TeaModel):
|
|
5611
5714
|
#
|
5612
5715
|
# > An empty value indicates that all data is returned.
|
5613
5716
|
self.next_token = next_token
|
5614
|
-
# The
|
5717
|
+
# The information about quota templates.
|
5615
5718
|
self.quota_application_templates = quota_application_templates
|
5616
5719
|
# The request ID.
|
5617
5720
|
self.request_id = request_id
|
@@ -5758,7 +5861,7 @@ class ListQuotaApplicationsRequest(TeaModel):
|
|
5758
5861
|
self.dimensions = dimensions
|
5759
5862
|
# The keyword that you want to use to search for the application.
|
5760
5863
|
self.key_word = key_word
|
5761
|
-
# The maximum number of
|
5864
|
+
# The maximum number of entries to return.
|
5762
5865
|
#
|
5763
5866
|
# Valid values: 1 to 200. Default value: 30.
|
5764
5867
|
self.max_results = max_results
|
@@ -5768,18 +5871,18 @@ class ListQuotaApplicationsRequest(TeaModel):
|
|
5768
5871
|
self.product_code = product_code
|
5769
5872
|
# The ID of the quota.
|
5770
5873
|
self.quota_action_code = quota_action_code
|
5771
|
-
# The type
|
5874
|
+
# The quota type. Valid values:
|
5772
5875
|
#
|
5773
5876
|
# * CommonQuota: general quota
|
5774
5877
|
# * FlowControl: API rate limit
|
5775
5878
|
# * WhiteListLabel: whitelist quota
|
5776
5879
|
self.quota_category = quota_category
|
5777
|
-
# The
|
5880
|
+
# The approval state of the quota increase application. Valid values:
|
5778
5881
|
#
|
5779
|
-
# * Disagree:
|
5780
|
-
# * Agree:
|
5781
|
-
# * Process:
|
5782
|
-
# * Cancel:
|
5882
|
+
# * Disagree: The application is rejected.
|
5883
|
+
# * Agree: The application is approved.
|
5884
|
+
# * Process: The application is in review.
|
5885
|
+
# * Cancel: The application is canceled.
|
5783
5886
|
self.status = status
|
5784
5887
|
|
5785
5888
|
def validate(self):
|
@@ -5934,6 +6037,11 @@ class ListQuotaApplicationsResponseBodyQuotaApplications(TeaModel):
|
|
5934
6037
|
self.quota_action_code = quota_action_code
|
5935
6038
|
# The Alibaba Cloud Resource Name (ARN) of the quota.
|
5936
6039
|
self.quota_arn = quota_arn
|
6040
|
+
# The quota type. Valid values:
|
6041
|
+
#
|
6042
|
+
# * CommonQuota (default): general quota.
|
6043
|
+
# * WhiteListLabel: whitelist quota.
|
6044
|
+
# * FlowControl: API rate limit.
|
5937
6045
|
self.quota_category = quota_category
|
5938
6046
|
# The description of the quota.
|
5939
6047
|
self.quota_description = quota_description
|
@@ -6062,7 +6170,7 @@ class ListQuotaApplicationsResponseBody(TeaModel):
|
|
6062
6170
|
self.max_results = max_results
|
6063
6171
|
# The token that marks the position at which the query ends. An empty value indicates that all data is returned.
|
6064
6172
|
self.next_token = next_token
|
6065
|
-
# The details of the applications.
|
6173
|
+
# The details of the quota increase applications.
|
6066
6174
|
self.quota_applications = quota_applications
|
6067
6175
|
# The ID of the request.
|
6068
6176
|
self.request_id = request_id
|
@@ -6184,7 +6292,7 @@ class ListQuotaApplicationsDetailForTemplateRequest(TeaModel):
|
|
6184
6292
|
self.product_code = product_code
|
6185
6293
|
# The quota ID.
|
6186
6294
|
self.quota_action_code = quota_action_code
|
6187
|
-
# The quota
|
6295
|
+
# The type of the quota. Valid values:
|
6188
6296
|
#
|
6189
6297
|
# * CommonQuota: general quota
|
6190
6298
|
# * FlowControl: API rate limit
|
@@ -6610,7 +6718,7 @@ class ListQuotaApplicationsForTemplateRequest(TeaModel):
|
|
6610
6718
|
self.product_code = product_code
|
6611
6719
|
# The quota ID.
|
6612
6720
|
self.quota_action_code = quota_action_code
|
6613
|
-
# The quota
|
6721
|
+
# The type of the quota. Valid values:
|
6614
6722
|
#
|
6615
6723
|
# * CommonQuota: general quota
|
6616
6724
|
# * FlowControl: API rate limit
|