alibabacloud-cloudfw20171207 4.0.0__py3-none-any.whl → 4.2.0__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.
Potentially problematic release.
This version of alibabacloud-cloudfw20171207 might be problematic. Click here for more details.
- alibabacloud_cloudfw20171207/__init__.py +1 -1
- alibabacloud_cloudfw20171207/client.py +192 -64
- alibabacloud_cloudfw20171207/models.py +415 -68
- {alibabacloud_cloudfw20171207-4.0.0.dist-info → alibabacloud_cloudfw20171207-4.2.0.dist-info}/METADATA +3 -3
- alibabacloud_cloudfw20171207-4.2.0.dist-info/RECORD +8 -0
- alibabacloud_cloudfw20171207-4.0.0.dist-info/RECORD +0 -8
- {alibabacloud_cloudfw20171207-4.0.0.dist-info → alibabacloud_cloudfw20171207-4.2.0.dist-info}/LICENSE +0 -0
- {alibabacloud_cloudfw20171207-4.0.0.dist-info → alibabacloud_cloudfw20171207-4.2.0.dist-info}/WHEEL +0 -0
- {alibabacloud_cloudfw20171207-4.0.0.dist-info → alibabacloud_cloudfw20171207-4.2.0.dist-info}/top_level.txt +0 -0
|
@@ -54,11 +54,11 @@ class AddAddressBookRequest(TeaModel):
|
|
|
54
54
|
):
|
|
55
55
|
# The addresses that you want to add to the address book. Separate multiple addresses with commas (,).
|
|
56
56
|
#
|
|
57
|
-
# > If you set GroupType to `ip`, `port
|
|
57
|
+
# > If you set GroupType to `ip`, `port` or `domain`, you must specify AddressList.
|
|
58
58
|
#
|
|
59
|
-
# * If you set GroupType to `ip`, you must add IP addresses to the address book. Example: 192.0.XX.XX/32,
|
|
60
|
-
# * If you set GroupType to `port`, you must add port numbers or port ranges to the address book. Example: 80,
|
|
61
|
-
# * If you set GroupType to `domain`, you must add domain names to the address book. Example: example.com,
|
|
59
|
+
# * If you set GroupType to `ip`, you must add IP addresses to the address book. Example: 192.0.XX.XX/32,192.0.XX.XX/24.
|
|
60
|
+
# * If you set GroupType to `port`, you must add port numbers or port ranges to the address book. Example: 80,100/200.
|
|
61
|
+
# * If you set GroupType to `domain`, you must add domain names to the address book. Example: example.com,aliyundoc.com.
|
|
62
62
|
self.address_list = address_list
|
|
63
63
|
# Specifies whether to automatically add public IP addresses of ECS instances to the address book if the instances match the specified tags. Valid values:
|
|
64
64
|
#
|
|
@@ -654,9 +654,9 @@ class AddInstanceMembersRequestMembers(TeaModel):
|
|
|
654
654
|
member_desc: str = None,
|
|
655
655
|
member_uid: int = None,
|
|
656
656
|
):
|
|
657
|
-
# The remarks of member
|
|
657
|
+
# The remarks of the member. The value must be 1 to 256 characters in length.
|
|
658
658
|
self.member_desc = member_desc
|
|
659
|
-
# The UID of member
|
|
659
|
+
# The UID of the member. You can add up to 20 members to Cloud Firewall at a time.
|
|
660
660
|
#
|
|
661
661
|
# This parameter is required.
|
|
662
662
|
self.member_uid = member_uid
|
|
@@ -690,7 +690,7 @@ class AddInstanceMembersRequest(TeaModel):
|
|
|
690
690
|
self,
|
|
691
691
|
members: List[AddInstanceMembersRequestMembers] = None,
|
|
692
692
|
):
|
|
693
|
-
# The members
|
|
693
|
+
# The members.
|
|
694
694
|
#
|
|
695
695
|
# This parameter is required.
|
|
696
696
|
self.members = members
|
|
@@ -728,7 +728,7 @@ class AddInstanceMembersResponseBody(TeaModel):
|
|
|
728
728
|
self,
|
|
729
729
|
request_id: str = None,
|
|
730
730
|
):
|
|
731
|
-
# The ID
|
|
731
|
+
# The request ID.
|
|
732
732
|
self.request_id = request_id
|
|
733
733
|
|
|
734
734
|
def validate(self):
|
|
@@ -1279,9 +1279,9 @@ class CreateNatFirewallControlPolicyRequest(TeaModel):
|
|
|
1279
1279
|
#
|
|
1280
1280
|
# This parameter is required.
|
|
1281
1281
|
self.destination_type = destination_type
|
|
1282
|
-
# The direction of the traffic to which the access control policy applies. Valid
|
|
1282
|
+
# The direction of the traffic to which the access control policy applies. Valid value:
|
|
1283
1283
|
#
|
|
1284
|
-
# * **out**: outbound
|
|
1284
|
+
# * **out**: outbound.
|
|
1285
1285
|
#
|
|
1286
1286
|
# This parameter is required.
|
|
1287
1287
|
self.direction = direction
|
|
@@ -1318,11 +1318,13 @@ class CreateNatFirewallControlPolicyRequest(TeaModel):
|
|
|
1318
1318
|
#
|
|
1319
1319
|
# Valid values:
|
|
1320
1320
|
#
|
|
1321
|
-
# * ANY: all types of protocols
|
|
1321
|
+
# * ANY: all types of protocols.
|
|
1322
1322
|
# * TCP
|
|
1323
1323
|
# * UDP
|
|
1324
1324
|
# * ICMP
|
|
1325
1325
|
#
|
|
1326
|
+
# > If the destination address is a threat intelligence address book of the domain name type or a cloud service address book, you can set Proto only to TCP and set ApplicationNameList to HTTP, HTTPS, SMTP, SMTPS, or SSL.
|
|
1327
|
+
#
|
|
1326
1328
|
# This parameter is required.
|
|
1327
1329
|
self.proto = proto
|
|
1328
1330
|
# Specifies whether to enable the access control policy. By default, an access control policy is enabled after it is created. Valid values:
|
|
@@ -1583,12 +1585,20 @@ class CreateSecurityProxyRequestNatRouteEntryList(TeaModel):
|
|
|
1583
1585
|
next_hop_type: str = None,
|
|
1584
1586
|
route_table_id: str = None,
|
|
1585
1587
|
):
|
|
1588
|
+
# The destination CIDR block of the default route.
|
|
1589
|
+
#
|
|
1586
1590
|
# This parameter is required.
|
|
1587
1591
|
self.destination_cidr = destination_cidr
|
|
1592
|
+
# The next hop of the original NAT gateway.
|
|
1593
|
+
#
|
|
1588
1594
|
# This parameter is required.
|
|
1589
1595
|
self.next_hop_id = next_hop_id
|
|
1596
|
+
# The network type of the next hop. Set the value to NatGateway.
|
|
1597
|
+
#
|
|
1590
1598
|
# This parameter is required.
|
|
1591
1599
|
self.next_hop_type = next_hop_type
|
|
1600
|
+
# The route table to which the default route of the NAT gateway belongs.
|
|
1601
|
+
#
|
|
1592
1602
|
# This parameter is required.
|
|
1593
1603
|
self.route_table_id = route_table_id
|
|
1594
1604
|
|
|
@@ -1639,21 +1649,51 @@ class CreateSecurityProxyRequest(TeaModel):
|
|
|
1639
1649
|
vswitch_cidr: str = None,
|
|
1640
1650
|
vswitch_id: str = None,
|
|
1641
1651
|
):
|
|
1652
|
+
# The status of the NAT firewall. Valid values:
|
|
1653
|
+
#
|
|
1654
|
+
# * **open**: enabled
|
|
1655
|
+
# * **close**: disabled
|
|
1642
1656
|
self.firewall_switch = firewall_switch
|
|
1657
|
+
# The language of the content within the response. Valid values:
|
|
1658
|
+
#
|
|
1659
|
+
# * **zh** (default): Chinese
|
|
1660
|
+
# * **en**: English
|
|
1643
1661
|
self.lang = lang
|
|
1662
|
+
# The ID of the NAT gateway.
|
|
1663
|
+
#
|
|
1644
1664
|
# This parameter is required.
|
|
1645
1665
|
self.nat_gateway_id = nat_gateway_id
|
|
1666
|
+
# The routes to be switched to the NAT gateway.
|
|
1667
|
+
#
|
|
1646
1668
|
# This parameter is required.
|
|
1647
1669
|
self.nat_route_entry_list = nat_route_entry_list
|
|
1670
|
+
# The name of the NAT firewall. The name must be 4 to 50 characters in length, and can contain letters, digits, and underscores (_). However, it cannot start with an underscore.
|
|
1671
|
+
#
|
|
1648
1672
|
# This parameter is required.
|
|
1649
1673
|
self.proxy_name = proxy_name
|
|
1674
|
+
# The region ID of the virtual private cloud (VPC).
|
|
1675
|
+
#
|
|
1676
|
+
# > For more information about Cloud Firewall supported regions, see [Supported regions](https://help.aliyun.com/document_detail/195657.html).
|
|
1677
|
+
#
|
|
1650
1678
|
# This parameter is required.
|
|
1651
1679
|
self.region_no = region_no
|
|
1680
|
+
# Specifies whether to enable the strict mode. Valid values:
|
|
1681
|
+
#
|
|
1682
|
+
# * 1: yes
|
|
1683
|
+
# * 0: no
|
|
1652
1684
|
self.strict_mode = strict_mode
|
|
1685
|
+
# The ID of the VPC.
|
|
1686
|
+
#
|
|
1653
1687
|
# This parameter is required.
|
|
1654
1688
|
self.vpc_id = vpc_id
|
|
1689
|
+
# The mode of the vSwitch that you want to use. Valid values:
|
|
1690
|
+
#
|
|
1691
|
+
# * **true**: automatic
|
|
1692
|
+
# * **false**: manual
|
|
1655
1693
|
self.vswitch_auto = vswitch_auto
|
|
1694
|
+
# The CIDR block of the vSwitch.
|
|
1656
1695
|
self.vswitch_cidr = vswitch_cidr
|
|
1696
|
+
# The ID of the vSwitch. This parameter is required if you set the VswitchAuto parameter to true.
|
|
1657
1697
|
self.vswitch_id = vswitch_id
|
|
1658
1698
|
|
|
1659
1699
|
def validate(self):
|
|
@@ -1730,7 +1770,9 @@ class CreateSecurityProxyResponseBody(TeaModel):
|
|
|
1730
1770
|
proxy_id: str = None,
|
|
1731
1771
|
request_id: str = None,
|
|
1732
1772
|
):
|
|
1773
|
+
# The ID of the NAT firewall.
|
|
1733
1774
|
self.proxy_id = proxy_id
|
|
1775
|
+
# The request ID.
|
|
1734
1776
|
self.request_id = request_id
|
|
1735
1777
|
|
|
1736
1778
|
def validate(self):
|
|
@@ -2919,6 +2961,11 @@ class CreateVpcFirewallControlPolicyRequest(TeaModel):
|
|
|
2919
2961
|
#
|
|
2920
2962
|
# This parameter is required.
|
|
2921
2963
|
self.destination_type = destination_type
|
|
2964
|
+
# The domain name resolution method of the access control policy. Valid values:
|
|
2965
|
+
#
|
|
2966
|
+
# * **FQDN**: fully qualified domain name (FQDN)-based resolution
|
|
2967
|
+
# * **DNS**: DNS-based dynamic resolution
|
|
2968
|
+
# * **FQDN_AND_DNS**: FQDN and DNS-based dynamic resolution
|
|
2922
2969
|
self.domain_resolve_type = domain_resolve_type
|
|
2923
2970
|
# The time when the access control policy stops taking effect. The value is a UNIX timestamp. Unit: seconds. The value must be on the hour or on the half hour, and at least 30 minutes later than the start time.
|
|
2924
2971
|
#
|
|
@@ -3330,8 +3377,8 @@ class DeleteControlPolicyRequest(TeaModel):
|
|
|
3330
3377
|
#
|
|
3331
3378
|
# Valid values:
|
|
3332
3379
|
#
|
|
3333
|
-
# * **in**: inbound
|
|
3334
|
-
# * **out**: outbound
|
|
3380
|
+
# * **in**: inbound.
|
|
3381
|
+
# * **out**: outbound.
|
|
3335
3382
|
self.direction = direction
|
|
3336
3383
|
# The language of the content within the request and response.
|
|
3337
3384
|
#
|
|
@@ -3786,7 +3833,7 @@ class DeleteInstanceMembersRequest(TeaModel):
|
|
|
3786
3833
|
self,
|
|
3787
3834
|
member_uids: List[int] = None,
|
|
3788
3835
|
):
|
|
3789
|
-
# The
|
|
3836
|
+
# The UIDs of the members.
|
|
3790
3837
|
#
|
|
3791
3838
|
# This parameter is required.
|
|
3792
3839
|
self.member_uids = member_uids
|
|
@@ -3816,7 +3863,7 @@ class DeleteInstanceMembersResponseBody(TeaModel):
|
|
|
3816
3863
|
self,
|
|
3817
3864
|
request_id: str = None,
|
|
3818
3865
|
):
|
|
3819
|
-
# The ID
|
|
3866
|
+
# The request ID.
|
|
3820
3867
|
self.request_id = request_id
|
|
3821
3868
|
|
|
3822
3869
|
def validate(self):
|
|
@@ -4945,7 +4992,7 @@ class DescribeAddressBookRequest(TeaModel):
|
|
|
4945
4992
|
# * **tag**: Elastic Compute Service (ECS) tag-based address book
|
|
4946
4993
|
# * **allCloud**: cloud service address book
|
|
4947
4994
|
# * **threat**: threat intelligence address book
|
|
4948
|
-
#
|
|
4995
|
+
# * **ipv6**: IPv6 address book
|
|
4949
4996
|
# > If you do not specify a type, the domain address books and ECS tag-based address books are queried.
|
|
4950
4997
|
self.group_type = group_type
|
|
4951
4998
|
# The language of the content within the request. Valid values:
|
|
@@ -5726,9 +5773,9 @@ class DescribeAssetRiskListRequest(TeaModel):
|
|
|
5726
5773
|
#
|
|
5727
5774
|
# >
|
|
5728
5775
|
#
|
|
5729
|
-
# * Example
|
|
5776
|
+
# * Example IPv4 address: 47.97.XX.XX.
|
|
5730
5777
|
#
|
|
5731
|
-
# * Example
|
|
5778
|
+
# * Example IPv6 address: 2001:db8:ffff:ffff:ffff:XXXX:ffff.
|
|
5732
5779
|
self.ip_addr_list = ip_addr_list
|
|
5733
5780
|
# The IP version of the asset that is protected by Cloud Firewall.
|
|
5734
5781
|
#
|
|
@@ -5844,7 +5891,7 @@ class DescribeAssetRiskListResponseBody(TeaModel):
|
|
|
5844
5891
|
request_id: str = None,
|
|
5845
5892
|
total_count: int = None,
|
|
5846
5893
|
):
|
|
5847
|
-
# The details of the
|
|
5894
|
+
# The details of the assets.
|
|
5848
5895
|
self.asset_list = asset_list
|
|
5849
5896
|
# The ID of the request.
|
|
5850
5897
|
self.request_id = request_id
|
|
@@ -6151,10 +6198,10 @@ class DescribeControlPolicyRequest(TeaModel):
|
|
|
6151
6198
|
#
|
|
6152
6199
|
# > If you do not specify this parameter, access control policies of all destination address types are queried.
|
|
6153
6200
|
self.destination = destination
|
|
6154
|
-
# The direction of the traffic to which the access control
|
|
6201
|
+
# The direction of the traffic to which the access control policies apply. Valid values:
|
|
6155
6202
|
#
|
|
6156
|
-
# * **in**: inbound
|
|
6157
|
-
# * **out**: outbound
|
|
6203
|
+
# * **in**: inbound.
|
|
6204
|
+
# * **out**: outbound.
|
|
6158
6205
|
self.direction = direction
|
|
6159
6206
|
# The IP version of the address in the access control policy. Valid values:
|
|
6160
6207
|
#
|
|
@@ -6355,12 +6402,12 @@ class DescribeControlPolicyResponseBodyPolicys(TeaModel):
|
|
|
6355
6402
|
# * **port**: port
|
|
6356
6403
|
# * **group**: port address book
|
|
6357
6404
|
self.dest_port_type = dest_port_type
|
|
6358
|
-
# The destination address in the access control policy. The value of this parameter varies based on the value of DestinationType.
|
|
6405
|
+
# The destination address in the access control policy. The value of this parameter varies based on the value of DestinationType.
|
|
6359
6406
|
#
|
|
6360
|
-
# * If **DestinationType** is
|
|
6361
|
-
# * If **DestinationType** is
|
|
6362
|
-
# * If **DestinationType** is
|
|
6363
|
-
# * If **DestinationType** is
|
|
6407
|
+
# * If the value of **DestinationType** is **net**, the value of Destination is a CIDR block. Example: 192.0.XX.XX/24.
|
|
6408
|
+
# * If the value of **DestinationType** is **domain**, the value of Destination is a domain name. Example: aliyuncs.com.
|
|
6409
|
+
# * If the value of **DestinationType** is **group**, the value of Destination is the name of an address book. Example: db_group.
|
|
6410
|
+
# * If the value of **DestinationType** is **location**, the value of Destination is the name of a location. For more information about location codes, see AddControlPolicy. Example: ["BJ11", "ZB"].
|
|
6364
6411
|
self.destination = destination
|
|
6365
6412
|
# The CIDR blocks in the destination address book.
|
|
6366
6413
|
self.destination_group_cidrs = destination_group_cidrs
|
|
@@ -6384,7 +6431,7 @@ class DescribeControlPolicyResponseBodyPolicys(TeaModel):
|
|
|
6384
6431
|
# * **in**: inbound traffic
|
|
6385
6432
|
# * **out**: outbound traffic
|
|
6386
6433
|
self.direction = direction
|
|
6387
|
-
# The DNS resolution
|
|
6434
|
+
# The DNS resolution results.
|
|
6388
6435
|
self.dns_result = dns_result
|
|
6389
6436
|
# The time when the Domain Name System (DNS) resolution was performed. The value is a timestamp. Unit: seconds.
|
|
6390
6437
|
self.dns_result_time = dns_result_time
|
|
@@ -8150,6 +8197,8 @@ class DescribeInternetOpenIpResponseBodyDataList(TeaModel):
|
|
|
8150
8197
|
risk_level: int = None,
|
|
8151
8198
|
risk_reason: str = None,
|
|
8152
8199
|
service_name_list: List[str] = None,
|
|
8200
|
+
src_ip_cnt: int = None,
|
|
8201
|
+
total_reply_bytes: int = None,
|
|
8153
8202
|
traffic_percent_1day: str = None,
|
|
8154
8203
|
traffic_percent_30day: str = None,
|
|
8155
8204
|
traffic_percent_7day: str = None,
|
|
@@ -8191,6 +8240,8 @@ class DescribeInternetOpenIpResponseBodyDataList(TeaModel):
|
|
|
8191
8240
|
self.risk_reason = risk_reason
|
|
8192
8241
|
# The list of applications.
|
|
8193
8242
|
self.service_name_list = service_name_list
|
|
8243
|
+
self.src_ip_cnt = src_ip_cnt
|
|
8244
|
+
self.total_reply_bytes = total_reply_bytes
|
|
8194
8245
|
# The percentage of traffic of a day. Unit: percent (%).
|
|
8195
8246
|
self.traffic_percent_1day = traffic_percent_1day
|
|
8196
8247
|
# The percentage of traffic of 30 days. Unit: percent (%).
|
|
@@ -8231,6 +8282,10 @@ class DescribeInternetOpenIpResponseBodyDataList(TeaModel):
|
|
|
8231
8282
|
result['RiskReason'] = self.risk_reason
|
|
8232
8283
|
if self.service_name_list is not None:
|
|
8233
8284
|
result['ServiceNameList'] = self.service_name_list
|
|
8285
|
+
if self.src_ip_cnt is not None:
|
|
8286
|
+
result['SrcIpCnt'] = self.src_ip_cnt
|
|
8287
|
+
if self.total_reply_bytes is not None:
|
|
8288
|
+
result['TotalReplyBytes'] = self.total_reply_bytes
|
|
8234
8289
|
if self.traffic_percent_1day is not None:
|
|
8235
8290
|
result['TrafficPercent1Day'] = self.traffic_percent_1day
|
|
8236
8291
|
if self.traffic_percent_30day is not None:
|
|
@@ -8265,6 +8320,10 @@ class DescribeInternetOpenIpResponseBodyDataList(TeaModel):
|
|
|
8265
8320
|
self.risk_reason = m.get('RiskReason')
|
|
8266
8321
|
if m.get('ServiceNameList') is not None:
|
|
8267
8322
|
self.service_name_list = m.get('ServiceNameList')
|
|
8323
|
+
if m.get('SrcIpCnt') is not None:
|
|
8324
|
+
self.src_ip_cnt = m.get('SrcIpCnt')
|
|
8325
|
+
if m.get('TotalReplyBytes') is not None:
|
|
8326
|
+
self.total_reply_bytes = m.get('TotalReplyBytes')
|
|
8268
8327
|
if m.get('TrafficPercent1Day') is not None:
|
|
8269
8328
|
self.traffic_percent_1day = m.get('TrafficPercent1Day')
|
|
8270
8329
|
if m.get('TrafficPercent30Day') is not None:
|
|
@@ -9301,6 +9360,7 @@ class DescribeNatAclPageStatusResponseBody(TeaModel):
|
|
|
9301
9360
|
nat_acl_page_enable: bool = None,
|
|
9302
9361
|
request_id: str = None,
|
|
9303
9362
|
):
|
|
9363
|
+
# Extra error information.
|
|
9304
9364
|
self.detail = detail
|
|
9305
9365
|
# Indicates whether pagination for access control policies for NAT firewalls is supported.
|
|
9306
9366
|
self.nat_acl_page_enable = nat_acl_page_enable
|
|
@@ -10829,6 +10889,7 @@ class DescribeOutgoingDestinationIPResponseBodyDstIPList(TeaModel):
|
|
|
10829
10889
|
acl_status: str = None,
|
|
10830
10890
|
address_group_list: List[DescribeOutgoingDestinationIPResponseBodyDstIPListAddressGroupList] = None,
|
|
10831
10891
|
application_port_list: List[DescribeOutgoingDestinationIPResponseBodyDstIPListApplicationPortList] = None,
|
|
10892
|
+
asset_count: int = None,
|
|
10832
10893
|
category_class_id: str = None,
|
|
10833
10894
|
category_id: str = None,
|
|
10834
10895
|
category_name: str = None,
|
|
@@ -10838,7 +10899,9 @@ class DescribeOutgoingDestinationIPResponseBodyDstIPList(TeaModel):
|
|
|
10838
10899
|
has_acl_recommend: bool = None,
|
|
10839
10900
|
in_bytes: int = None,
|
|
10840
10901
|
is_mark_normal: bool = None,
|
|
10902
|
+
location_name: str = None,
|
|
10841
10903
|
out_bytes: int = None,
|
|
10904
|
+
private_asset_count: int = None,
|
|
10842
10905
|
rule_id: str = None,
|
|
10843
10906
|
rule_name: str = None,
|
|
10844
10907
|
security_reason: str = None,
|
|
@@ -10863,6 +10926,7 @@ class DescribeOutgoingDestinationIPResponseBodyDstIPList(TeaModel):
|
|
|
10863
10926
|
self.address_group_list = address_group_list
|
|
10864
10927
|
# The application ports.
|
|
10865
10928
|
self.application_port_list = application_port_list
|
|
10929
|
+
self.asset_count = asset_count
|
|
10866
10930
|
# The type of the tag. Valid values:
|
|
10867
10931
|
#
|
|
10868
10932
|
# * **Suspicious**\
|
|
@@ -10900,8 +10964,10 @@ class DescribeOutgoingDestinationIPResponseBodyDstIPList(TeaModel):
|
|
|
10900
10964
|
# * **true**\
|
|
10901
10965
|
# * **false**\
|
|
10902
10966
|
self.is_mark_normal = is_mark_normal
|
|
10967
|
+
self.location_name = location_name
|
|
10903
10968
|
# The outbound traffic. Unit: bytes.
|
|
10904
10969
|
self.out_bytes = out_bytes
|
|
10970
|
+
self.private_asset_count = private_asset_count
|
|
10905
10971
|
# The UUID of the access control policy.
|
|
10906
10972
|
self.rule_id = rule_id
|
|
10907
10973
|
# The name of the access control policy.
|
|
@@ -10955,6 +11021,8 @@ class DescribeOutgoingDestinationIPResponseBodyDstIPList(TeaModel):
|
|
|
10955
11021
|
if self.application_port_list is not None:
|
|
10956
11022
|
for k in self.application_port_list:
|
|
10957
11023
|
result['ApplicationPortList'].append(k.to_map() if k else None)
|
|
11024
|
+
if self.asset_count is not None:
|
|
11025
|
+
result['AssetCount'] = self.asset_count
|
|
10958
11026
|
if self.category_class_id is not None:
|
|
10959
11027
|
result['CategoryClassId'] = self.category_class_id
|
|
10960
11028
|
if self.category_id is not None:
|
|
@@ -10973,8 +11041,12 @@ class DescribeOutgoingDestinationIPResponseBodyDstIPList(TeaModel):
|
|
|
10973
11041
|
result['InBytes'] = self.in_bytes
|
|
10974
11042
|
if self.is_mark_normal is not None:
|
|
10975
11043
|
result['IsMarkNormal'] = self.is_mark_normal
|
|
11044
|
+
if self.location_name is not None:
|
|
11045
|
+
result['LocationName'] = self.location_name
|
|
10976
11046
|
if self.out_bytes is not None:
|
|
10977
11047
|
result['OutBytes'] = self.out_bytes
|
|
11048
|
+
if self.private_asset_count is not None:
|
|
11049
|
+
result['PrivateAssetCount'] = self.private_asset_count
|
|
10978
11050
|
if self.rule_id is not None:
|
|
10979
11051
|
result['RuleId'] = self.rule_id
|
|
10980
11052
|
if self.rule_name is not None:
|
|
@@ -11011,6 +11083,8 @@ class DescribeOutgoingDestinationIPResponseBodyDstIPList(TeaModel):
|
|
|
11011
11083
|
for k in m.get('ApplicationPortList'):
|
|
11012
11084
|
temp_model = DescribeOutgoingDestinationIPResponseBodyDstIPListApplicationPortList()
|
|
11013
11085
|
self.application_port_list.append(temp_model.from_map(k))
|
|
11086
|
+
if m.get('AssetCount') is not None:
|
|
11087
|
+
self.asset_count = m.get('AssetCount')
|
|
11014
11088
|
if m.get('CategoryClassId') is not None:
|
|
11015
11089
|
self.category_class_id = m.get('CategoryClassId')
|
|
11016
11090
|
if m.get('CategoryId') is not None:
|
|
@@ -11029,8 +11103,12 @@ class DescribeOutgoingDestinationIPResponseBodyDstIPList(TeaModel):
|
|
|
11029
11103
|
self.in_bytes = m.get('InBytes')
|
|
11030
11104
|
if m.get('IsMarkNormal') is not None:
|
|
11031
11105
|
self.is_mark_normal = m.get('IsMarkNormal')
|
|
11106
|
+
if m.get('LocationName') is not None:
|
|
11107
|
+
self.location_name = m.get('LocationName')
|
|
11032
11108
|
if m.get('OutBytes') is not None:
|
|
11033
11109
|
self.out_bytes = m.get('OutBytes')
|
|
11110
|
+
if m.get('PrivateAssetCount') is not None:
|
|
11111
|
+
self.private_asset_count = m.get('PrivateAssetCount')
|
|
11034
11112
|
if m.get('RuleId') is not None:
|
|
11035
11113
|
self.rule_id = m.get('RuleId')
|
|
11036
11114
|
if m.get('RuleName') is not None:
|
|
@@ -11373,6 +11451,8 @@ class DescribeOutgoingDomainResponseBodyDomainList(TeaModel):
|
|
|
11373
11451
|
acl_status: str = None,
|
|
11374
11452
|
address_group_name: str = None,
|
|
11375
11453
|
address_group_uuid: str = None,
|
|
11454
|
+
application_name_list: List[str] = None,
|
|
11455
|
+
asset_count: int = None,
|
|
11376
11456
|
business: str = None,
|
|
11377
11457
|
category_class_id: str = None,
|
|
11378
11458
|
category_id: str = None,
|
|
@@ -11385,6 +11465,7 @@ class DescribeOutgoingDomainResponseBodyDomainList(TeaModel):
|
|
|
11385
11465
|
is_mark_normal: bool = None,
|
|
11386
11466
|
organization: str = None,
|
|
11387
11467
|
out_bytes: int = None,
|
|
11468
|
+
private_asset_count: int = None,
|
|
11388
11469
|
rule_id: str = None,
|
|
11389
11470
|
rule_name: str = None,
|
|
11390
11471
|
security_reason: str = None,
|
|
@@ -11409,6 +11490,8 @@ class DescribeOutgoingDomainResponseBodyDomainList(TeaModel):
|
|
|
11409
11490
|
self.address_group_name = address_group_name
|
|
11410
11491
|
# The UUID of the address book.
|
|
11411
11492
|
self.address_group_uuid = address_group_uuid
|
|
11493
|
+
self.application_name_list = application_name_list
|
|
11494
|
+
self.asset_count = asset_count
|
|
11412
11495
|
# The website service.
|
|
11413
11496
|
self.business = business
|
|
11414
11497
|
# The type of the tag. Valid values:
|
|
@@ -11452,6 +11535,7 @@ class DescribeOutgoingDomainResponseBodyDomainList(TeaModel):
|
|
|
11452
11535
|
self.organization = organization
|
|
11453
11536
|
# The volume of outbound traffic.
|
|
11454
11537
|
self.out_bytes = out_bytes
|
|
11538
|
+
self.private_asset_count = private_asset_count
|
|
11455
11539
|
# The ID of the access control policy.
|
|
11456
11540
|
self.rule_id = rule_id
|
|
11457
11541
|
# The name of the access control policy.
|
|
@@ -11493,6 +11577,10 @@ class DescribeOutgoingDomainResponseBodyDomainList(TeaModel):
|
|
|
11493
11577
|
result['AddressGroupName'] = self.address_group_name
|
|
11494
11578
|
if self.address_group_uuid is not None:
|
|
11495
11579
|
result['AddressGroupUUID'] = self.address_group_uuid
|
|
11580
|
+
if self.application_name_list is not None:
|
|
11581
|
+
result['ApplicationNameList'] = self.application_name_list
|
|
11582
|
+
if self.asset_count is not None:
|
|
11583
|
+
result['AssetCount'] = self.asset_count
|
|
11496
11584
|
if self.business is not None:
|
|
11497
11585
|
result['Business'] = self.business
|
|
11498
11586
|
if self.category_class_id is not None:
|
|
@@ -11517,6 +11605,8 @@ class DescribeOutgoingDomainResponseBodyDomainList(TeaModel):
|
|
|
11517
11605
|
result['Organization'] = self.organization
|
|
11518
11606
|
if self.out_bytes is not None:
|
|
11519
11607
|
result['OutBytes'] = self.out_bytes
|
|
11608
|
+
if self.private_asset_count is not None:
|
|
11609
|
+
result['PrivateAssetCount'] = self.private_asset_count
|
|
11520
11610
|
if self.rule_id is not None:
|
|
11521
11611
|
result['RuleId'] = self.rule_id
|
|
11522
11612
|
if self.rule_name is not None:
|
|
@@ -11547,6 +11637,10 @@ class DescribeOutgoingDomainResponseBodyDomainList(TeaModel):
|
|
|
11547
11637
|
self.address_group_name = m.get('AddressGroupName')
|
|
11548
11638
|
if m.get('AddressGroupUUID') is not None:
|
|
11549
11639
|
self.address_group_uuid = m.get('AddressGroupUUID')
|
|
11640
|
+
if m.get('ApplicationNameList') is not None:
|
|
11641
|
+
self.application_name_list = m.get('ApplicationNameList')
|
|
11642
|
+
if m.get('AssetCount') is not None:
|
|
11643
|
+
self.asset_count = m.get('AssetCount')
|
|
11550
11644
|
if m.get('Business') is not None:
|
|
11551
11645
|
self.business = m.get('Business')
|
|
11552
11646
|
if m.get('CategoryClassId') is not None:
|
|
@@ -11571,6 +11665,8 @@ class DescribeOutgoingDomainResponseBodyDomainList(TeaModel):
|
|
|
11571
11665
|
self.organization = m.get('Organization')
|
|
11572
11666
|
if m.get('OutBytes') is not None:
|
|
11573
11667
|
self.out_bytes = m.get('OutBytes')
|
|
11668
|
+
if m.get('PrivateAssetCount') is not None:
|
|
11669
|
+
self.private_asset_count = m.get('PrivateAssetCount')
|
|
11574
11670
|
if m.get('RuleId') is not None:
|
|
11575
11671
|
self.rule_id = m.get('RuleId')
|
|
11576
11672
|
if m.get('RuleName') is not None:
|
|
@@ -11811,8 +11907,8 @@ class DescribePolicyPriorUsedRequest(TeaModel):
|
|
|
11811
11907
|
#
|
|
11812
11908
|
# Valid values:
|
|
11813
11909
|
#
|
|
11814
|
-
# * **in**: inbound
|
|
11815
|
-
# * **out**: outbound
|
|
11910
|
+
# * **in**: inbound.
|
|
11911
|
+
# * **out**: outbound.
|
|
11816
11912
|
#
|
|
11817
11913
|
# This parameter is required.
|
|
11818
11914
|
self.direction = direction
|
|
@@ -11820,15 +11916,15 @@ class DescribePolicyPriorUsedRequest(TeaModel):
|
|
|
11820
11916
|
#
|
|
11821
11917
|
# Valid values:
|
|
11822
11918
|
#
|
|
11823
|
-
# * **4
|
|
11824
|
-
# * **6**: IPv6
|
|
11919
|
+
# * **4** (default): IPv4.
|
|
11920
|
+
# * **6**: IPv6.
|
|
11825
11921
|
self.ip_version = ip_version
|
|
11826
|
-
# The
|
|
11922
|
+
# The language of the content within the request and response.
|
|
11827
11923
|
#
|
|
11828
11924
|
# Valid values:
|
|
11829
11925
|
#
|
|
11830
|
-
# * **zh
|
|
11831
|
-
# * **en
|
|
11926
|
+
# * **zh** (default)
|
|
11927
|
+
# * **en**\
|
|
11832
11928
|
self.lang = lang
|
|
11833
11929
|
# The source IP address of the request.
|
|
11834
11930
|
self.source_ip = source_ip
|
|
@@ -11876,7 +11972,7 @@ class DescribePolicyPriorUsedResponseBody(TeaModel):
|
|
|
11876
11972
|
#
|
|
11877
11973
|
# > The value -1 indicates the lowest priority.
|
|
11878
11974
|
self.end = end
|
|
11879
|
-
# The ID
|
|
11975
|
+
# The request ID.
|
|
11880
11976
|
self.request_id = request_id
|
|
11881
11977
|
# The highest priority of existing access control policies.
|
|
11882
11978
|
#
|
|
@@ -11960,6 +12056,7 @@ class DescribePostpayTrafficDetailRequest(TeaModel):
|
|
|
11960
12056
|
lang: str = None,
|
|
11961
12057
|
order: str = None,
|
|
11962
12058
|
page_size: int = None,
|
|
12059
|
+
region_no: str = None,
|
|
11963
12060
|
search_item: str = None,
|
|
11964
12061
|
start_time: str = None,
|
|
11965
12062
|
traffic_type: str = None,
|
|
@@ -11982,6 +12079,7 @@ class DescribePostpayTrafficDetailRequest(TeaModel):
|
|
|
11982
12079
|
self.order = order
|
|
11983
12080
|
# The number of entries per page. Default value: 10. Maximum value: 50.
|
|
11984
12081
|
self.page_size = page_size
|
|
12082
|
+
self.region_no = region_no
|
|
11985
12083
|
# The instance ID or the IP address of the asset.
|
|
11986
12084
|
self.search_item = search_item
|
|
11987
12085
|
# The beginning of the time range to query. Specify a value in the YYYYMMDD format.
|
|
@@ -11990,9 +12088,9 @@ class DescribePostpayTrafficDetailRequest(TeaModel):
|
|
|
11990
12088
|
self.start_time = start_time
|
|
11991
12089
|
# The traffic type. This parameter is required. Valid values:
|
|
11992
12090
|
#
|
|
11993
|
-
# * **EIP_TRAFFIC**: traffic for the Internet firewall
|
|
11994
|
-
# * **NatGateway_TRAFFIC**: traffic for NAT firewalls
|
|
11995
|
-
# * **VPC_TRAFFIC**: traffic for virtual private cloud (VPC) firewalls
|
|
12091
|
+
# * **EIP_TRAFFIC**: traffic for the Internet firewall.
|
|
12092
|
+
# * **NatGateway_TRAFFIC**: traffic for NAT firewalls.
|
|
12093
|
+
# * **VPC_TRAFFIC**: traffic for virtual private cloud (VPC) firewalls.
|
|
11996
12094
|
#
|
|
11997
12095
|
# This parameter is required.
|
|
11998
12096
|
self.traffic_type = traffic_type
|
|
@@ -12016,6 +12114,8 @@ class DescribePostpayTrafficDetailRequest(TeaModel):
|
|
|
12016
12114
|
result['Order'] = self.order
|
|
12017
12115
|
if self.page_size is not None:
|
|
12018
12116
|
result['PageSize'] = self.page_size
|
|
12117
|
+
if self.region_no is not None:
|
|
12118
|
+
result['RegionNo'] = self.region_no
|
|
12019
12119
|
if self.search_item is not None:
|
|
12020
12120
|
result['SearchItem'] = self.search_item
|
|
12021
12121
|
if self.start_time is not None:
|
|
@@ -12036,6 +12136,8 @@ class DescribePostpayTrafficDetailRequest(TeaModel):
|
|
|
12036
12136
|
self.order = m.get('Order')
|
|
12037
12137
|
if m.get('PageSize') is not None:
|
|
12038
12138
|
self.page_size = m.get('PageSize')
|
|
12139
|
+
if m.get('RegionNo') is not None:
|
|
12140
|
+
self.region_no = m.get('RegionNo')
|
|
12039
12141
|
if m.get('SearchItem') is not None:
|
|
12040
12142
|
self.search_item = m.get('SearchItem')
|
|
12041
12143
|
if m.get('StartTime') is not None:
|
|
@@ -12053,6 +12155,7 @@ class DescribePostpayTrafficDetailResponseBodyTrafficList(TeaModel):
|
|
|
12053
12155
|
instance_type: str = None,
|
|
12054
12156
|
out_bytes: int = None,
|
|
12055
12157
|
protection_duration: int = None,
|
|
12158
|
+
region_no: str = None,
|
|
12056
12159
|
resource_id: str = None,
|
|
12057
12160
|
total_bytes: int = None,
|
|
12058
12161
|
traffic_day: str = None,
|
|
@@ -12067,6 +12170,7 @@ class DescribePostpayTrafficDetailResponseBodyTrafficList(TeaModel):
|
|
|
12067
12170
|
# The outbound network throughput, which indicates the total number of bytes that are sent. Unit: bytes.
|
|
12068
12171
|
self.out_bytes = out_bytes
|
|
12069
12172
|
self.protection_duration = protection_duration
|
|
12173
|
+
self.region_no = region_no
|
|
12070
12174
|
# The resource ID. The resource ID for the Internet firewall is the public IP address that is protected the Internet firewall, and the resource ID for a NAT firewall is the instance ID of the NAT firewall.
|
|
12071
12175
|
self.resource_id = resource_id
|
|
12072
12176
|
# The total inbound and outbound network throughput, which indicates the total number of bytes that are received and sent. Unit: bytes.
|
|
@@ -12099,6 +12203,8 @@ class DescribePostpayTrafficDetailResponseBodyTrafficList(TeaModel):
|
|
|
12099
12203
|
result['OutBytes'] = self.out_bytes
|
|
12100
12204
|
if self.protection_duration is not None:
|
|
12101
12205
|
result['ProtectionDuration'] = self.protection_duration
|
|
12206
|
+
if self.region_no is not None:
|
|
12207
|
+
result['RegionNo'] = self.region_no
|
|
12102
12208
|
if self.resource_id is not None:
|
|
12103
12209
|
result['ResourceId'] = self.resource_id
|
|
12104
12210
|
if self.total_bytes is not None:
|
|
@@ -12121,6 +12227,8 @@ class DescribePostpayTrafficDetailResponseBodyTrafficList(TeaModel):
|
|
|
12121
12227
|
self.out_bytes = m.get('OutBytes')
|
|
12122
12228
|
if m.get('ProtectionDuration') is not None:
|
|
12123
12229
|
self.protection_duration = m.get('ProtectionDuration')
|
|
12230
|
+
if m.get('RegionNo') is not None:
|
|
12231
|
+
self.region_no = m.get('RegionNo')
|
|
12124
12232
|
if m.get('ResourceId') is not None:
|
|
12125
12233
|
self.resource_id = m.get('ResourceId')
|
|
12126
12234
|
if m.get('TotalBytes') is not None:
|
|
@@ -13461,6 +13569,9 @@ class DescribeRiskEventPayloadResponseBody(TeaModel):
|
|
|
13461
13569
|
dst_ip: str = None,
|
|
13462
13570
|
dst_port: int = None,
|
|
13463
13571
|
dst_vpc_id: str = None,
|
|
13572
|
+
hit_content_type: int = None,
|
|
13573
|
+
hit_to: int = None,
|
|
13574
|
+
parsed_content: str = None,
|
|
13464
13575
|
payload: str = None,
|
|
13465
13576
|
payload_len: int = None,
|
|
13466
13577
|
proto: str = None,
|
|
@@ -13477,6 +13588,9 @@ class DescribeRiskEventPayloadResponseBody(TeaModel):
|
|
|
13477
13588
|
self.dst_port = dst_port
|
|
13478
13589
|
# The destination VPC ID of the intrusion event.
|
|
13479
13590
|
self.dst_vpc_id = dst_vpc_id
|
|
13591
|
+
self.hit_content_type = hit_content_type
|
|
13592
|
+
self.hit_to = hit_to
|
|
13593
|
+
self.parsed_content = parsed_content
|
|
13480
13594
|
# The attack payload of the intrusion event.
|
|
13481
13595
|
self.payload = payload
|
|
13482
13596
|
# The length of the attack payload of the intrusion event.
|
|
@@ -13514,6 +13628,12 @@ class DescribeRiskEventPayloadResponseBody(TeaModel):
|
|
|
13514
13628
|
result['DstPort'] = self.dst_port
|
|
13515
13629
|
if self.dst_vpc_id is not None:
|
|
13516
13630
|
result['DstVpcId'] = self.dst_vpc_id
|
|
13631
|
+
if self.hit_content_type is not None:
|
|
13632
|
+
result['HitContentType'] = self.hit_content_type
|
|
13633
|
+
if self.hit_to is not None:
|
|
13634
|
+
result['HitTo'] = self.hit_to
|
|
13635
|
+
if self.parsed_content is not None:
|
|
13636
|
+
result['ParsedContent'] = self.parsed_content
|
|
13517
13637
|
if self.payload is not None:
|
|
13518
13638
|
result['Payload'] = self.payload
|
|
13519
13639
|
if self.payload_len is not None:
|
|
@@ -13542,6 +13662,12 @@ class DescribeRiskEventPayloadResponseBody(TeaModel):
|
|
|
13542
13662
|
self.dst_port = m.get('DstPort')
|
|
13543
13663
|
if m.get('DstVpcId') is not None:
|
|
13544
13664
|
self.dst_vpc_id = m.get('DstVpcId')
|
|
13665
|
+
if m.get('HitContentType') is not None:
|
|
13666
|
+
self.hit_content_type = m.get('HitContentType')
|
|
13667
|
+
if m.get('HitTo') is not None:
|
|
13668
|
+
self.hit_to = m.get('HitTo')
|
|
13669
|
+
if m.get('ParsedContent') is not None:
|
|
13670
|
+
self.parsed_content = m.get('ParsedContent')
|
|
13545
13671
|
if m.get('Payload') is not None:
|
|
13546
13672
|
self.payload = m.get('Payload')
|
|
13547
13673
|
if m.get('PayloadLen') is not None:
|
|
@@ -15497,6 +15623,173 @@ class DescribeUserAssetIPTrafficInfoResponse(TeaModel):
|
|
|
15497
15623
|
return self
|
|
15498
15624
|
|
|
15499
15625
|
|
|
15626
|
+
class DescribeUserBuyVersionRequest(TeaModel):
|
|
15627
|
+
def __init__(
|
|
15628
|
+
self,
|
|
15629
|
+
instance_id: str = None,
|
|
15630
|
+
):
|
|
15631
|
+
self.instance_id = instance_id
|
|
15632
|
+
|
|
15633
|
+
def validate(self):
|
|
15634
|
+
pass
|
|
15635
|
+
|
|
15636
|
+
def to_map(self):
|
|
15637
|
+
_map = super().to_map()
|
|
15638
|
+
if _map is not None:
|
|
15639
|
+
return _map
|
|
15640
|
+
|
|
15641
|
+
result = dict()
|
|
15642
|
+
if self.instance_id is not None:
|
|
15643
|
+
result['InstanceId'] = self.instance_id
|
|
15644
|
+
return result
|
|
15645
|
+
|
|
15646
|
+
def from_map(self, m: dict = None):
|
|
15647
|
+
m = m or dict()
|
|
15648
|
+
if m.get('InstanceId') is not None:
|
|
15649
|
+
self.instance_id = m.get('InstanceId')
|
|
15650
|
+
return self
|
|
15651
|
+
|
|
15652
|
+
|
|
15653
|
+
class DescribeUserBuyVersionResponseBody(TeaModel):
|
|
15654
|
+
def __init__(
|
|
15655
|
+
self,
|
|
15656
|
+
ali_uid: int = None,
|
|
15657
|
+
expire: int = None,
|
|
15658
|
+
instance_id: str = None,
|
|
15659
|
+
instance_status: str = None,
|
|
15660
|
+
ip_number: int = None,
|
|
15661
|
+
log_status: bool = None,
|
|
15662
|
+
log_storage: int = None,
|
|
15663
|
+
max_overflow: int = None,
|
|
15664
|
+
request_id: str = None,
|
|
15665
|
+
start_time: int = None,
|
|
15666
|
+
user_status: bool = None,
|
|
15667
|
+
version: int = None,
|
|
15668
|
+
vpc_number: int = None,
|
|
15669
|
+
):
|
|
15670
|
+
self.ali_uid = ali_uid
|
|
15671
|
+
self.expire = expire
|
|
15672
|
+
self.instance_id = instance_id
|
|
15673
|
+
self.instance_status = instance_status
|
|
15674
|
+
self.ip_number = ip_number
|
|
15675
|
+
self.log_status = log_status
|
|
15676
|
+
self.log_storage = log_storage
|
|
15677
|
+
self.max_overflow = max_overflow
|
|
15678
|
+
self.request_id = request_id
|
|
15679
|
+
self.start_time = start_time
|
|
15680
|
+
self.user_status = user_status
|
|
15681
|
+
self.version = version
|
|
15682
|
+
self.vpc_number = vpc_number
|
|
15683
|
+
|
|
15684
|
+
def validate(self):
|
|
15685
|
+
pass
|
|
15686
|
+
|
|
15687
|
+
def to_map(self):
|
|
15688
|
+
_map = super().to_map()
|
|
15689
|
+
if _map is not None:
|
|
15690
|
+
return _map
|
|
15691
|
+
|
|
15692
|
+
result = dict()
|
|
15693
|
+
if self.ali_uid is not None:
|
|
15694
|
+
result['AliUid'] = self.ali_uid
|
|
15695
|
+
if self.expire is not None:
|
|
15696
|
+
result['Expire'] = self.expire
|
|
15697
|
+
if self.instance_id is not None:
|
|
15698
|
+
result['InstanceId'] = self.instance_id
|
|
15699
|
+
if self.instance_status is not None:
|
|
15700
|
+
result['InstanceStatus'] = self.instance_status
|
|
15701
|
+
if self.ip_number is not None:
|
|
15702
|
+
result['IpNumber'] = self.ip_number
|
|
15703
|
+
if self.log_status is not None:
|
|
15704
|
+
result['LogStatus'] = self.log_status
|
|
15705
|
+
if self.log_storage is not None:
|
|
15706
|
+
result['LogStorage'] = self.log_storage
|
|
15707
|
+
if self.max_overflow is not None:
|
|
15708
|
+
result['MaxOverflow'] = self.max_overflow
|
|
15709
|
+
if self.request_id is not None:
|
|
15710
|
+
result['RequestId'] = self.request_id
|
|
15711
|
+
if self.start_time is not None:
|
|
15712
|
+
result['StartTime'] = self.start_time
|
|
15713
|
+
if self.user_status is not None:
|
|
15714
|
+
result['UserStatus'] = self.user_status
|
|
15715
|
+
if self.version is not None:
|
|
15716
|
+
result['Version'] = self.version
|
|
15717
|
+
if self.vpc_number is not None:
|
|
15718
|
+
result['VpcNumber'] = self.vpc_number
|
|
15719
|
+
return result
|
|
15720
|
+
|
|
15721
|
+
def from_map(self, m: dict = None):
|
|
15722
|
+
m = m or dict()
|
|
15723
|
+
if m.get('AliUid') is not None:
|
|
15724
|
+
self.ali_uid = m.get('AliUid')
|
|
15725
|
+
if m.get('Expire') is not None:
|
|
15726
|
+
self.expire = m.get('Expire')
|
|
15727
|
+
if m.get('InstanceId') is not None:
|
|
15728
|
+
self.instance_id = m.get('InstanceId')
|
|
15729
|
+
if m.get('InstanceStatus') is not None:
|
|
15730
|
+
self.instance_status = m.get('InstanceStatus')
|
|
15731
|
+
if m.get('IpNumber') is not None:
|
|
15732
|
+
self.ip_number = m.get('IpNumber')
|
|
15733
|
+
if m.get('LogStatus') is not None:
|
|
15734
|
+
self.log_status = m.get('LogStatus')
|
|
15735
|
+
if m.get('LogStorage') is not None:
|
|
15736
|
+
self.log_storage = m.get('LogStorage')
|
|
15737
|
+
if m.get('MaxOverflow') is not None:
|
|
15738
|
+
self.max_overflow = m.get('MaxOverflow')
|
|
15739
|
+
if m.get('RequestId') is not None:
|
|
15740
|
+
self.request_id = m.get('RequestId')
|
|
15741
|
+
if m.get('StartTime') is not None:
|
|
15742
|
+
self.start_time = m.get('StartTime')
|
|
15743
|
+
if m.get('UserStatus') is not None:
|
|
15744
|
+
self.user_status = m.get('UserStatus')
|
|
15745
|
+
if m.get('Version') is not None:
|
|
15746
|
+
self.version = m.get('Version')
|
|
15747
|
+
if m.get('VpcNumber') is not None:
|
|
15748
|
+
self.vpc_number = m.get('VpcNumber')
|
|
15749
|
+
return self
|
|
15750
|
+
|
|
15751
|
+
|
|
15752
|
+
class DescribeUserBuyVersionResponse(TeaModel):
|
|
15753
|
+
def __init__(
|
|
15754
|
+
self,
|
|
15755
|
+
headers: Dict[str, str] = None,
|
|
15756
|
+
status_code: int = None,
|
|
15757
|
+
body: DescribeUserBuyVersionResponseBody = None,
|
|
15758
|
+
):
|
|
15759
|
+
self.headers = headers
|
|
15760
|
+
self.status_code = status_code
|
|
15761
|
+
self.body = body
|
|
15762
|
+
|
|
15763
|
+
def validate(self):
|
|
15764
|
+
if self.body:
|
|
15765
|
+
self.body.validate()
|
|
15766
|
+
|
|
15767
|
+
def to_map(self):
|
|
15768
|
+
_map = super().to_map()
|
|
15769
|
+
if _map is not None:
|
|
15770
|
+
return _map
|
|
15771
|
+
|
|
15772
|
+
result = dict()
|
|
15773
|
+
if self.headers is not None:
|
|
15774
|
+
result['headers'] = self.headers
|
|
15775
|
+
if self.status_code is not None:
|
|
15776
|
+
result['statusCode'] = self.status_code
|
|
15777
|
+
if self.body is not None:
|
|
15778
|
+
result['body'] = self.body.to_map()
|
|
15779
|
+
return result
|
|
15780
|
+
|
|
15781
|
+
def from_map(self, m: dict = None):
|
|
15782
|
+
m = m or dict()
|
|
15783
|
+
if m.get('headers') is not None:
|
|
15784
|
+
self.headers = m.get('headers')
|
|
15785
|
+
if m.get('statusCode') is not None:
|
|
15786
|
+
self.status_code = m.get('statusCode')
|
|
15787
|
+
if m.get('body') is not None:
|
|
15788
|
+
temp_model = DescribeUserBuyVersionResponseBody()
|
|
15789
|
+
self.body = temp_model.from_map(m['body'])
|
|
15790
|
+
return self
|
|
15791
|
+
|
|
15792
|
+
|
|
15500
15793
|
class DescribeUserIPSWhitelistRequest(TeaModel):
|
|
15501
15794
|
def __init__(
|
|
15502
15795
|
self,
|
|
@@ -17594,7 +17887,7 @@ class DescribeVpcFirewallControlPolicyResponseBody(TeaModel):
|
|
|
17594
17887
|
request_id: str = None,
|
|
17595
17888
|
total_count: str = None,
|
|
17596
17889
|
):
|
|
17597
|
-
# The access control policies.
|
|
17890
|
+
# The details of the access control policies.
|
|
17598
17891
|
self.policys = policys
|
|
17599
17892
|
# The ID of the request.
|
|
17600
17893
|
self.request_id = request_id
|
|
@@ -18656,6 +18949,11 @@ class DescribeVpcFirewallListResponseBodyVpcFirewallsIpsConfig(TeaModel):
|
|
|
18656
18949
|
# * **1**: yes
|
|
18657
18950
|
# * **0**: no
|
|
18658
18951
|
self.enable_all_patch = enable_all_patch
|
|
18952
|
+
# The level of the rule group for the IPS. Valid values:
|
|
18953
|
+
#
|
|
18954
|
+
# * **1**: loose
|
|
18955
|
+
# * **2**: medium
|
|
18956
|
+
# * **3**: strict
|
|
18659
18957
|
self.rule_class = rule_class
|
|
18660
18958
|
# The mode of the IPS. Valid values:
|
|
18661
18959
|
#
|
|
@@ -19024,7 +19322,7 @@ class DescribeVpcFirewallListResponseBodyVpcFirewalls(TeaModel):
|
|
|
19024
19322
|
# * **closed**: The VPC firewall is disabled.
|
|
19025
19323
|
# * **notconfigured**: The VPC firewall is not configured.
|
|
19026
19324
|
self.firewall_switch_status = firewall_switch_status
|
|
19027
|
-
# The
|
|
19325
|
+
# The intrusion prevention system (IPS) configurations.
|
|
19028
19326
|
self.ips_config = ips_config
|
|
19029
19327
|
# The details about the local VPC.
|
|
19030
19328
|
self.local_vpc = local_vpc
|
|
@@ -19131,7 +19429,7 @@ class DescribeVpcFirewallListResponseBody(TeaModel):
|
|
|
19131
19429
|
self.request_id = request_id
|
|
19132
19430
|
# The total number of VPC firewalls.
|
|
19133
19431
|
self.total_count = total_count
|
|
19134
|
-
#
|
|
19432
|
+
# The information about the VPC firewalls.
|
|
19135
19433
|
self.vpc_firewalls = vpc_firewalls
|
|
19136
19434
|
|
|
19137
19435
|
def validate(self):
|
|
@@ -19217,23 +19515,22 @@ class DescribeVpcFirewallPolicyPriorUsedRequest(TeaModel):
|
|
|
19217
19515
|
lang: str = None,
|
|
19218
19516
|
vpc_firewall_id: str = None,
|
|
19219
19517
|
):
|
|
19220
|
-
# The
|
|
19518
|
+
# The language of the content within the request and response.
|
|
19221
19519
|
#
|
|
19222
19520
|
# Valid values:
|
|
19223
19521
|
#
|
|
19224
|
-
#
|
|
19225
|
-
#
|
|
19522
|
+
# * **zh** (default)
|
|
19523
|
+
# * **en**\
|
|
19226
19524
|
self.lang = lang
|
|
19227
|
-
# The ID of the
|
|
19525
|
+
# The ID of the access control policy group. You can call the [DescribeVpcFirewallAclGroupList](https://help.aliyun.com/document_detail/159760.html) operation to query the ID.
|
|
19228
19526
|
#
|
|
19229
|
-
#
|
|
19527
|
+
# * If the VPC firewall is used to protect a Cloud Enterprise Network (CEN) instance, the value of this parameter is the ID of the CEN instance.
|
|
19230
19528
|
#
|
|
19231
|
-
# -
|
|
19529
|
+
# Example: cen-ervw0g12b5jbw\\*\\*\\*\\*.
|
|
19232
19530
|
#
|
|
19233
|
-
#
|
|
19234
|
-
# - If the VPC firewall is used to protect an Express Connect circuit, the value of this parameter is the ID of the VPC firewall instance.
|
|
19531
|
+
# * If the VPC firewall is used to protect an Express Connect circuit, the value of this parameter is the ID of the VPC firewall.
|
|
19235
19532
|
#
|
|
19236
|
-
#
|
|
19533
|
+
# Example: vfw-a42bbb7b887148c9\\*\\*\\*\\*.
|
|
19237
19534
|
#
|
|
19238
19535
|
# This parameter is required.
|
|
19239
19536
|
self.vpc_firewall_id = vpc_firewall_id
|
|
@@ -19269,11 +19566,11 @@ class DescribeVpcFirewallPolicyPriorUsedResponseBody(TeaModel):
|
|
|
19269
19566
|
request_id: str = None,
|
|
19270
19567
|
start: int = None,
|
|
19271
19568
|
):
|
|
19272
|
-
# The lowest priority for the access control
|
|
19569
|
+
# The lowest priority for the access control policies.
|
|
19273
19570
|
self.end = end
|
|
19274
|
-
# The ID
|
|
19571
|
+
# The request ID.
|
|
19275
19572
|
self.request_id = request_id
|
|
19276
|
-
# The highest priority for the access control
|
|
19573
|
+
# The highest priority for the access control policies.
|
|
19277
19574
|
self.start = start
|
|
19278
19575
|
|
|
19279
19576
|
def validate(self):
|
|
@@ -20384,6 +20681,14 @@ class ModifyAddressBookRequest(TeaModel):
|
|
|
20384
20681
|
# * **zh**: Chinese (default)
|
|
20385
20682
|
# * **en**: English
|
|
20386
20683
|
self.lang = lang
|
|
20684
|
+
# Modification mode with the following values:
|
|
20685
|
+
#
|
|
20686
|
+
# - **Cover**: Use the value of the AddressList parameter to overwrite the original address book.
|
|
20687
|
+
# - **Append**: After the original address book, append addresses using the value of the AddressList parameter.
|
|
20688
|
+
# - **Delete**: Delete addresses using the value of the AddressList parameter from the address book.
|
|
20689
|
+
#
|
|
20690
|
+
# >When GroupType is **ip**, **ipv6**, **port**, or **domain**, if this parameter is not configured, the default is to use the **Cover** method to modify the address book.
|
|
20691
|
+
# >Notice: When GroupType is **tag**, this parameter must be empty.</notice>
|
|
20387
20692
|
self.modify_mode = modify_mode
|
|
20388
20693
|
# The source IP address of the request.
|
|
20389
20694
|
self.source_ip = source_ip
|
|
@@ -21544,9 +21849,9 @@ class ModifyNatFirewallControlPolicyRequest(TeaModel):
|
|
|
21544
21849
|
#
|
|
21545
21850
|
# This parameter is required.
|
|
21546
21851
|
self.destination_type = destination_type
|
|
21547
|
-
# The direction of the traffic to which the access control policy applies.
|
|
21852
|
+
# The direction of the traffic to which the access control policy applies. Valid value:
|
|
21548
21853
|
#
|
|
21549
|
-
# *
|
|
21854
|
+
# * **out**: outbound.
|
|
21550
21855
|
self.direction = direction
|
|
21551
21856
|
# The domain name resolution method of the access control policy. Valid values:
|
|
21552
21857
|
#
|
|
@@ -21959,16 +22264,47 @@ class ModifyObjectGroupOperationRequest(TeaModel):
|
|
|
21959
22264
|
object_type: str = None,
|
|
21960
22265
|
source_ip: str = None,
|
|
21961
22266
|
):
|
|
22267
|
+
# The remarks of the operation.
|
|
21962
22268
|
self.comment = comment
|
|
22269
|
+
# The direction of the traffic to which the access control policy applies.
|
|
22270
|
+
#
|
|
22271
|
+
# Valid values:
|
|
22272
|
+
#
|
|
22273
|
+
# * **in**: inbound.
|
|
22274
|
+
# * **out**: outbound.
|
|
22275
|
+
#
|
|
21963
22276
|
# This parameter is required.
|
|
21964
22277
|
self.direction = direction
|
|
22278
|
+
# The language of the content within the response. Valid values:
|
|
22279
|
+
#
|
|
22280
|
+
# * **zh** (default)
|
|
22281
|
+
# * **en**\
|
|
21965
22282
|
self.lang = lang
|
|
22283
|
+
# The operation objects.
|
|
22284
|
+
#
|
|
21966
22285
|
# This parameter is required.
|
|
21967
22286
|
self.object_list = object_list
|
|
22287
|
+
# The operation. Valid values:
|
|
22288
|
+
#
|
|
22289
|
+
# * **ignore**: adds the operation object to the whitelist.
|
|
22290
|
+
# * **cancelIgnore**: removes the operation object from the whitelist.
|
|
22291
|
+
# * **subscribe**: follows the operation object.
|
|
22292
|
+
# * **unsubscribe**: unfollows the operation object.
|
|
22293
|
+
#
|
|
21968
22294
|
# This parameter is required.
|
|
21969
22295
|
self.object_operation = object_operation
|
|
22296
|
+
# The type of the operation object.
|
|
22297
|
+
#
|
|
22298
|
+
# Valid values:
|
|
22299
|
+
#
|
|
22300
|
+
# * **assetsIp**: the asset IP address.
|
|
22301
|
+
# * **destinationIp**: the destination IP address.
|
|
22302
|
+
# * **destinationPort**: the destination port.
|
|
22303
|
+
# * **destinationDomain**: the destination domain name.
|
|
22304
|
+
#
|
|
21970
22305
|
# This parameter is required.
|
|
21971
22306
|
self.object_type = object_type
|
|
22307
|
+
# The source IP address of the request.
|
|
21972
22308
|
self.source_ip = source_ip
|
|
21973
22309
|
|
|
21974
22310
|
def validate(self):
|
|
@@ -22020,6 +22356,7 @@ class ModifyObjectGroupOperationResponseBody(TeaModel):
|
|
|
22020
22356
|
self,
|
|
22021
22357
|
request_id: str = None,
|
|
22022
22358
|
):
|
|
22359
|
+
# The request ID.
|
|
22023
22360
|
self.request_id = request_id
|
|
22024
22361
|
|
|
22025
22362
|
def validate(self):
|
|
@@ -23272,6 +23609,11 @@ class ModifyVpcFirewallControlPolicyRequest(TeaModel):
|
|
|
23272
23609
|
#
|
|
23273
23610
|
# This parameter is required.
|
|
23274
23611
|
self.destination_type = destination_type
|
|
23612
|
+
# The domain name resolution method of the access control policy. By default, an access control policy is enabled after the policy is created. Valid values:
|
|
23613
|
+
#
|
|
23614
|
+
# * **FQDN**: fully qualified domain name (FQDN)-based resolution
|
|
23615
|
+
# * **DNS**: DNS-based dynamic resolution
|
|
23616
|
+
# * **FQDN_AND_DNS**: FQDN and DNS-based dynamic resolution
|
|
23275
23617
|
self.domain_resolve_type = domain_resolve_type
|
|
23276
23618
|
# The time when the access control policy stops taking effect. The value is a UNIX timestamp. Unit: seconds. The value must be on the hour or on the half hour, and at least 30 minutes later than the value of StartTime.
|
|
23277
23619
|
#
|
|
@@ -23708,39 +24050,44 @@ class ModifyVpcFirewallDefaultIPSConfigRequest(TeaModel):
|
|
|
23708
24050
|
):
|
|
23709
24051
|
# Specifies whether to enable basic protection. Valid values:
|
|
23710
24052
|
#
|
|
23711
|
-
# * **1**: yes
|
|
23712
|
-
# * **0**: no
|
|
24053
|
+
# * **1**: yes.
|
|
24054
|
+
# * **0**: no.
|
|
23713
24055
|
#
|
|
23714
24056
|
# This parameter is required.
|
|
23715
24057
|
self.basic_rules = basic_rules
|
|
23716
24058
|
# Specifies whether to enable virtual patching. Valid values:
|
|
23717
24059
|
#
|
|
23718
|
-
# * **1**: yes
|
|
23719
|
-
# * **0**: no
|
|
24060
|
+
# * **1**: yes.
|
|
24061
|
+
# * **0**: no.
|
|
23720
24062
|
#
|
|
23721
24063
|
# This parameter is required.
|
|
23722
24064
|
self.enable_all_patch = enable_all_patch
|
|
23723
24065
|
# The language of the content within the request and response. Valid values:
|
|
23724
24066
|
#
|
|
23725
|
-
# * **zh
|
|
23726
|
-
# * **en
|
|
24067
|
+
# * **zh** (default)
|
|
24068
|
+
# * **en**\
|
|
23727
24069
|
self.lang = lang
|
|
23728
24070
|
# The UID of the member that is managed by your Alibaba Cloud account.
|
|
23729
24071
|
self.member_uid = member_uid
|
|
24072
|
+
# The level of the rule group for the IPS. Valid values:
|
|
24073
|
+
#
|
|
24074
|
+
# * **1**: loose
|
|
24075
|
+
# * **2**: medium
|
|
24076
|
+
# * **3**: strict
|
|
23730
24077
|
self.rule_class = rule_class
|
|
23731
24078
|
# The mode of the intrusion prevention system (IPS). Valid values:
|
|
23732
24079
|
#
|
|
23733
|
-
# * **1**: block mode
|
|
23734
|
-
# * **0**: monitor mode
|
|
24080
|
+
# * **1**: block mode.
|
|
24081
|
+
# * **0**: monitor mode.
|
|
23735
24082
|
#
|
|
23736
24083
|
# This parameter is required.
|
|
23737
24084
|
self.run_mode = run_mode
|
|
23738
24085
|
# The source IP address of the request.
|
|
23739
24086
|
self.source_ip = source_ip
|
|
23740
|
-
# The instance ID of the VPC firewall.
|
|
24087
|
+
# The instance ID of the VPC firewall.
|
|
23741
24088
|
#
|
|
23742
|
-
# * If the VPC firewall protects
|
|
23743
|
-
# * If the VPC firewall protects
|
|
24089
|
+
# * If the VPC firewall protects traffic between a VPC and a network instance that is attached to a Cloud Enterprise Network (CEN) instance, the value of this parameter is the ID of the CEN instance. The network instance can be a VPC, a virtual border router (VBR), or a Cloud Connect Network (CCN) instance. You can call the [DescribeVpcFirewallCenList](https://help.aliyun.com/document_detail/345777.html) operation to query the IDs of CEN instances.
|
|
24090
|
+
# * If the VPC firewall protects traffic between two VPCs that are connected by using an Express Connect circuit, the value of this parameter is the instance ID of the VPC firewall. You can call the [DescribeVpcFirewallList](https://help.aliyun.com/document_detail/342932.html) operation to query the instance IDs of VPC firewalls.
|
|
23744
24091
|
#
|
|
23745
24092
|
# This parameter is required.
|
|
23746
24093
|
self.vpc_firewall_id = vpc_firewall_id
|
|
@@ -23798,7 +24145,7 @@ class ModifyVpcFirewallDefaultIPSConfigResponseBody(TeaModel):
|
|
|
23798
24145
|
self,
|
|
23799
24146
|
request_id: str = None,
|
|
23800
24147
|
):
|
|
23801
|
-
# The ID
|
|
24148
|
+
# The request ID.
|
|
23802
24149
|
self.request_id = request_id
|
|
23803
24150
|
|
|
23804
24151
|
def validate(self):
|