alibabacloud-nis20211216 2.2.2__py3-none-any.whl → 2.3.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.
Files changed (96) hide show
  1. alibabacloud_nis20211216/__init__.py +1 -1
  2. alibabacloud_nis20211216/client.py +1681 -2184
  3. alibabacloud_nis20211216/models/__init__.py +227 -0
  4. alibabacloud_nis20211216/models/_create_and_analyze_network_path_request.py +136 -0
  5. alibabacloud_nis20211216/models/_create_and_analyze_network_path_response.py +54 -0
  6. alibabacloud_nis20211216/models/_create_and_analyze_network_path_response_body.py +124 -0
  7. alibabacloud_nis20211216/models/_create_network_path_request.py +228 -0
  8. alibabacloud_nis20211216/models/_create_network_path_response.py +54 -0
  9. alibabacloud_nis20211216/models/_create_network_path_response_body.py +43 -0
  10. alibabacloud_nis20211216/models/_create_network_reachable_analysis_request.py +106 -0
  11. alibabacloud_nis20211216/models/_create_network_reachable_analysis_response.py +54 -0
  12. alibabacloud_nis20211216/models/_create_network_reachable_analysis_response_body.py +43 -0
  13. alibabacloud_nis20211216/models/_delete_network_path_request.py +47 -0
  14. alibabacloud_nis20211216/models/_delete_network_path_response.py +54 -0
  15. alibabacloud_nis20211216/models/_delete_network_path_response_body.py +46 -0
  16. alibabacloud_nis20211216/models/_delete_network_path_shrink_request.py +45 -0
  17. alibabacloud_nis20211216/models/_delete_network_reachable_analysis_request.py +47 -0
  18. alibabacloud_nis20211216/models/_delete_network_reachable_analysis_response.py +54 -0
  19. alibabacloud_nis20211216/models/_delete_network_reachable_analysis_response_body.py +45 -0
  20. alibabacloud_nis20211216/models/_delete_network_reachable_analysis_shrink_request.py +45 -0
  21. alibabacloud_nis20211216/models/_delete_nis_inspection_report_request.py +34 -0
  22. alibabacloud_nis20211216/models/_delete_nis_inspection_report_response.py +54 -0
  23. alibabacloud_nis20211216/models/_delete_nis_inspection_report_response_body.py +41 -0
  24. alibabacloud_nis20211216/models/_delete_nis_inspection_task_request.py +34 -0
  25. alibabacloud_nis20211216/models/_delete_nis_inspection_task_response.py +54 -0
  26. alibabacloud_nis20211216/models/_delete_nis_inspection_task_response_body.py +41 -0
  27. alibabacloud_nis20211216/models/_describe_nis_inspection_recommendation_resources_request.py +67 -0
  28. alibabacloud_nis20211216/models/_describe_nis_inspection_recommendation_resources_response.py +54 -0
  29. alibabacloud_nis20211216/models/_describe_nis_inspection_recommendation_resources_response_body.py +127 -0
  30. alibabacloud_nis20211216/models/_describe_nis_inspection_report_check_items_request.py +84 -0
  31. alibabacloud_nis20211216/models/_describe_nis_inspection_report_check_items_response.py +54 -0
  32. alibabacloud_nis20211216/models/_describe_nis_inspection_report_check_items_response_body.py +302 -0
  33. alibabacloud_nis20211216/models/_describe_nis_inspection_report_check_items_shrink_request.py +82 -0
  34. alibabacloud_nis20211216/models/_describe_nis_inspection_report_status_request.py +34 -0
  35. alibabacloud_nis20211216/models/_describe_nis_inspection_report_status_response.py +54 -0
  36. alibabacloud_nis20211216/models/_describe_nis_inspection_report_status_response_body.py +89 -0
  37. alibabacloud_nis20211216/models/_describe_nis_inspection_report_summary_request.py +34 -0
  38. alibabacloud_nis20211216/models/_describe_nis_inspection_report_summary_response.py +54 -0
  39. alibabacloud_nis20211216/models/_describe_nis_inspection_report_summary_response_body.py +240 -0
  40. alibabacloud_nis20211216/models/_describe_nis_inspection_task_request.py +34 -0
  41. alibabacloud_nis20211216/models/_describe_nis_inspection_task_response.py +54 -0
  42. alibabacloud_nis20211216/models/_describe_nis_inspection_task_response_body.py +159 -0
  43. alibabacloud_nis20211216/models/_describe_nis_traffic_ranking_request.py +50 -0
  44. alibabacloud_nis20211216/models/_describe_nis_traffic_ranking_response.py +54 -0
  45. alibabacloud_nis20211216/models/_describe_nis_traffic_ranking_response_body.py +463 -0
  46. alibabacloud_nis20211216/models/_get_internet_tuple_request.py +270 -0
  47. alibabacloud_nis20211216/models/_get_internet_tuple_response.py +54 -0
  48. alibabacloud_nis20211216/models/_get_internet_tuple_response_body.py +366 -0
  49. alibabacloud_nis20211216/models/_get_internet_tuple_shrink_request.py +270 -0
  50. alibabacloud_nis20211216/models/_get_nat_top_nrequest.py +99 -0
  51. alibabacloud_nis20211216/models/_get_nat_top_nresponse.py +54 -0
  52. alibabacloud_nis20211216/models/_get_nat_top_nresponse_body.py +166 -0
  53. alibabacloud_nis20211216/models/_get_network_reachable_analysis_request.py +45 -0
  54. alibabacloud_nis20211216/models/_get_network_reachable_analysis_response.py +54 -0
  55. alibabacloud_nis20211216/models/_get_network_reachable_analysis_response_body.py +114 -0
  56. alibabacloud_nis20211216/models/_get_nis_network_metrics_request.py +155 -0
  57. alibabacloud_nis20211216/models/_get_nis_network_metrics_response.py +54 -0
  58. alibabacloud_nis20211216/models/_get_nis_network_metrics_response_body.py +124 -0
  59. alibabacloud_nis20211216/models/_get_nis_network_metrics_shrink_request.py +111 -0
  60. alibabacloud_nis20211216/models/_get_nis_network_ranking_request.py +172 -0
  61. alibabacloud_nis20211216/models/_get_nis_network_ranking_response.py +54 -0
  62. alibabacloud_nis20211216/models/_get_nis_network_ranking_response_body.py +319 -0
  63. alibabacloud_nis20211216/models/_get_nis_network_ranking_shrink_request.py +128 -0
  64. alibabacloud_nis20211216/models/_get_transit_router_flow_top_nrequest.py +215 -0
  65. alibabacloud_nis20211216/models/_get_transit_router_flow_top_nresponse.py +54 -0
  66. alibabacloud_nis20211216/models/_get_transit_router_flow_top_nresponse_body.py +199 -0
  67. alibabacloud_nis20211216/models/_get_transit_router_flow_top_nshrink_request.py +213 -0
  68. alibabacloud_nis20211216/models/_get_vbr_flow_top_nrequest.py +220 -0
  69. alibabacloud_nis20211216/models/_get_vbr_flow_top_nresponse.py +54 -0
  70. alibabacloud_nis20211216/models/_get_vbr_flow_top_nresponse_body.py +172 -0
  71. alibabacloud_nis20211216/models/_get_vbr_flow_top_nshrink_request.py +218 -0
  72. alibabacloud_nis20211216/models/_list_nis_inspection_resource_type_response.py +54 -0
  73. alibabacloud_nis20211216/models/_list_nis_inspection_resource_type_response_body.py +79 -0
  74. alibabacloud_nis20211216/models/_list_nis_inspection_task_reports_request.py +50 -0
  75. alibabacloud_nis20211216/models/_list_nis_inspection_task_reports_response.py +54 -0
  76. alibabacloud_nis20211216/models/_list_nis_inspection_task_reports_response_body.py +103 -0
  77. alibabacloud_nis20211216/models/_list_nis_inspection_tasks_request.py +73 -0
  78. alibabacloud_nis20211216/models/_list_nis_inspection_tasks_response.py +54 -0
  79. alibabacloud_nis20211216/models/_list_nis_inspection_tasks_response_body.py +143 -0
  80. alibabacloud_nis20211216/models/_start_nis_inspection_task_request.py +34 -0
  81. alibabacloud_nis20211216/models/_start_nis_inspection_task_response.py +54 -0
  82. alibabacloud_nis20211216/models/_start_nis_inspection_task_response_body.py +41 -0
  83. alibabacloud_nis20211216/models/_start_nis_traffic_ranking_request.py +214 -0
  84. alibabacloud_nis20211216/models/_start_nis_traffic_ranking_response.py +54 -0
  85. alibabacloud_nis20211216/models/_start_nis_traffic_ranking_response_body.py +41 -0
  86. alibabacloud_nis20211216/models/_start_nis_traffic_ranking_shrink_request.py +160 -0
  87. alibabacloud_nis20211216/models/_update_nis_inspection_task_request.py +42 -0
  88. alibabacloud_nis20211216/models/_update_nis_inspection_task_response.py +54 -0
  89. alibabacloud_nis20211216/models/_update_nis_inspection_task_response_body.py +41 -0
  90. {alibabacloud_nis20211216-2.2.2.dist-info → alibabacloud_nis20211216-2.3.0.dist-info}/METADATA +7 -7
  91. alibabacloud_nis20211216-2.3.0.dist-info/RECORD +94 -0
  92. alibabacloud_nis20211216/models.py +0 -6298
  93. alibabacloud_nis20211216-2.2.2.dist-info/RECORD +0 -8
  94. {alibabacloud_nis20211216-2.2.2.dist-info → alibabacloud_nis20211216-2.3.0.dist-info}/LICENSE +0 -0
  95. {alibabacloud_nis20211216-2.2.2.dist-info → alibabacloud_nis20211216-2.3.0.dist-info}/WHEEL +0 -0
  96. {alibabacloud_nis20211216-2.2.2.dist-info → alibabacloud_nis20211216-2.3.0.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,228 @@
1
+ # -*- coding: utf-8 -*-
2
+ # This file is auto-generated, don't edit it. Thanks.
3
+ from __future__ import annotations
4
+
5
+ from typing import List
6
+
7
+ from alibabacloud_nis20211216 import models as main_models
8
+ from darabonba.model import DaraModel
9
+
10
+ class CreateNetworkPathRequest(DaraModel):
11
+ def __init__(
12
+ self,
13
+ network_path_description: str = None,
14
+ network_path_name: str = None,
15
+ protocol: str = None,
16
+ region_id: str = None,
17
+ resource_group_id: str = None,
18
+ source_id: str = None,
19
+ source_ip_address: str = None,
20
+ source_port: int = None,
21
+ source_type: str = None,
22
+ tag: List[main_models.CreateNetworkPathRequestTag] = None,
23
+ target_id: str = None,
24
+ target_ip_address: str = None,
25
+ target_port: int = None,
26
+ target_type: str = None,
27
+ ):
28
+ # The description of the network path.
29
+ self.network_path_description = network_path_description
30
+ # The name of the network path.
31
+ #
32
+ # This parameter is required.
33
+ self.network_path_name = network_path_name
34
+ # The protocol type. Valid values:
35
+ #
36
+ # * **tcp**: Transmission Control Protocol (TCP)
37
+ # * **udp**: User Datagram Protocol (UDP)
38
+ # * **icmp**: Internet Control Message Protocol (ICMP)
39
+ self.protocol = protocol
40
+ # The region ID of the network path that you want to create.
41
+ self.region_id = region_id
42
+ # The resource group ID.
43
+ self.resource_group_id = resource_group_id
44
+ # The ID of the source resource.
45
+ #
46
+ # This parameter is required.
47
+ self.source_id = source_id
48
+ # The source IP address.
49
+ self.source_ip_address = source_ip_address
50
+ # The source port.
51
+ self.source_port = source_port
52
+ # The type of the source resource. Valid values:
53
+ #
54
+ # * **ecs**: the Elastic Compute Service (ECS) instance
55
+ # * **internetIp**: the public IP address
56
+ # * **vsw**: the vSwitch
57
+ # * **vpn**: the VPN gateway
58
+ # * **vbr**: the virtual border router (VBR)
59
+ #
60
+ # This parameter is required.
61
+ self.source_type = source_type
62
+ # The tags to add to the resource.
63
+ self.tag = tag
64
+ # The ID of the destination resource.
65
+ self.target_id = target_id
66
+ # The destination IP address.
67
+ self.target_ip_address = target_ip_address
68
+ # The destination port.
69
+ self.target_port = target_port
70
+ # The type of the destination resource. Valid values:
71
+ #
72
+ # * **ecs**: the ECS instance
73
+ # * **internetIp**: the public IP address
74
+ # * **vsw**: the vSwitch
75
+ # * **vpn**: the VPN gateway
76
+ # * **vbr**: the VBR
77
+ # * **clb**: the Classic Load Balancer (CLB) instance
78
+ self.target_type = target_type
79
+
80
+ def validate(self):
81
+ if self.tag:
82
+ for v1 in self.tag:
83
+ if v1:
84
+ v1.validate()
85
+
86
+ def to_map(self):
87
+ result = dict()
88
+ _map = super().to_map()
89
+ if _map is not None:
90
+ result = _map
91
+ if self.network_path_description is not None:
92
+ result['NetworkPathDescription'] = self.network_path_description
93
+
94
+ if self.network_path_name is not None:
95
+ result['NetworkPathName'] = self.network_path_name
96
+
97
+ if self.protocol is not None:
98
+ result['Protocol'] = self.protocol
99
+
100
+ if self.region_id is not None:
101
+ result['RegionId'] = self.region_id
102
+
103
+ if self.resource_group_id is not None:
104
+ result['ResourceGroupId'] = self.resource_group_id
105
+
106
+ if self.source_id is not None:
107
+ result['SourceId'] = self.source_id
108
+
109
+ if self.source_ip_address is not None:
110
+ result['SourceIpAddress'] = self.source_ip_address
111
+
112
+ if self.source_port is not None:
113
+ result['SourcePort'] = self.source_port
114
+
115
+ if self.source_type is not None:
116
+ result['SourceType'] = self.source_type
117
+
118
+ result['Tag'] = []
119
+ if self.tag is not None:
120
+ for k1 in self.tag:
121
+ result['Tag'].append(k1.to_map() if k1 else None)
122
+
123
+ if self.target_id is not None:
124
+ result['TargetId'] = self.target_id
125
+
126
+ if self.target_ip_address is not None:
127
+ result['TargetIpAddress'] = self.target_ip_address
128
+
129
+ if self.target_port is not None:
130
+ result['TargetPort'] = self.target_port
131
+
132
+ if self.target_type is not None:
133
+ result['TargetType'] = self.target_type
134
+
135
+ return result
136
+
137
+ def from_map(self, m: dict = None):
138
+ m = m or dict()
139
+ if m.get('NetworkPathDescription') is not None:
140
+ self.network_path_description = m.get('NetworkPathDescription')
141
+
142
+ if m.get('NetworkPathName') is not None:
143
+ self.network_path_name = m.get('NetworkPathName')
144
+
145
+ if m.get('Protocol') is not None:
146
+ self.protocol = m.get('Protocol')
147
+
148
+ if m.get('RegionId') is not None:
149
+ self.region_id = m.get('RegionId')
150
+
151
+ if m.get('ResourceGroupId') is not None:
152
+ self.resource_group_id = m.get('ResourceGroupId')
153
+
154
+ if m.get('SourceId') is not None:
155
+ self.source_id = m.get('SourceId')
156
+
157
+ if m.get('SourceIpAddress') is not None:
158
+ self.source_ip_address = m.get('SourceIpAddress')
159
+
160
+ if m.get('SourcePort') is not None:
161
+ self.source_port = m.get('SourcePort')
162
+
163
+ if m.get('SourceType') is not None:
164
+ self.source_type = m.get('SourceType')
165
+
166
+ self.tag = []
167
+ if m.get('Tag') is not None:
168
+ for k1 in m.get('Tag'):
169
+ temp_model = main_models.CreateNetworkPathRequestTag()
170
+ self.tag.append(temp_model.from_map(k1))
171
+
172
+ if m.get('TargetId') is not None:
173
+ self.target_id = m.get('TargetId')
174
+
175
+ if m.get('TargetIpAddress') is not None:
176
+ self.target_ip_address = m.get('TargetIpAddress')
177
+
178
+ if m.get('TargetPort') is not None:
179
+ self.target_port = m.get('TargetPort')
180
+
181
+ if m.get('TargetType') is not None:
182
+ self.target_type = m.get('TargetType')
183
+
184
+ return self
185
+
186
+
187
+
188
+ class CreateNetworkPathRequestTag(DaraModel):
189
+ def __init__(
190
+ self,
191
+ key: str = None,
192
+ value: str = None,
193
+ ):
194
+ # The key of tag N to add to the resource. The tag key can be up to 128 characters in length and cannot contain `http://` or `https://`. The tag key cannot start with `acs:` or `aliyun`.
195
+ #
196
+ # You can add up to 20 tags in each call.
197
+ self.key = key
198
+ # The value of tag N to add to the resource. You can specify up to 20 tag values. The tag value can be an empty string.
199
+ #
200
+ # The tag value can be up to 128 characters in length and cannot contain `http://` or `https://`. The tag value cannot start with `aliyun` or `acs:`.
201
+ self.value = value
202
+
203
+ def validate(self):
204
+ pass
205
+
206
+ def to_map(self):
207
+ result = dict()
208
+ _map = super().to_map()
209
+ if _map is not None:
210
+ result = _map
211
+ if self.key is not None:
212
+ result['Key'] = self.key
213
+
214
+ if self.value is not None:
215
+ result['Value'] = self.value
216
+
217
+ return result
218
+
219
+ def from_map(self, m: dict = None):
220
+ m = m or dict()
221
+ if m.get('Key') is not None:
222
+ self.key = m.get('Key')
223
+
224
+ if m.get('Value') is not None:
225
+ self.value = m.get('Value')
226
+
227
+ return self
228
+
@@ -0,0 +1,54 @@
1
+ # -*- coding: utf-8 -*-
2
+ # This file is auto-generated, don't edit it. Thanks.
3
+ from __future__ import annotations
4
+
5
+ from typing import Dict
6
+
7
+ from alibabacloud_nis20211216 import models as main_models
8
+ from darabonba.model import DaraModel
9
+
10
+ class CreateNetworkPathResponse(DaraModel):
11
+ def __init__(
12
+ self,
13
+ headers: Dict[str, str] = None,
14
+ status_code: int = None,
15
+ body: main_models.CreateNetworkPathResponseBody = None,
16
+ ):
17
+ self.headers = headers
18
+ self.status_code = status_code
19
+ self.body = body
20
+
21
+ def validate(self):
22
+ if self.body:
23
+ self.body.validate()
24
+
25
+ def to_map(self):
26
+ result = dict()
27
+ _map = super().to_map()
28
+ if _map is not None:
29
+ result = _map
30
+ if self.headers is not None:
31
+ result['headers'] = self.headers
32
+
33
+ if self.status_code is not None:
34
+ result['statusCode'] = self.status_code
35
+
36
+ if self.body is not None:
37
+ result['body'] = self.body.to_map()
38
+
39
+ return result
40
+
41
+ def from_map(self, m: dict = None):
42
+ m = m or dict()
43
+ if m.get('headers') is not None:
44
+ self.headers = m.get('headers')
45
+
46
+ if m.get('statusCode') is not None:
47
+ self.status_code = m.get('statusCode')
48
+
49
+ if m.get('body') is not None:
50
+ temp_model = main_models.CreateNetworkPathResponseBody()
51
+ self.body = temp_model.from_map(m.get('body'))
52
+
53
+ return self
54
+
@@ -0,0 +1,43 @@
1
+ # -*- coding: utf-8 -*-
2
+ # This file is auto-generated, don't edit it. Thanks.
3
+ from __future__ import annotations
4
+
5
+ from darabonba.model import DaraModel
6
+
7
+ class CreateNetworkPathResponseBody(DaraModel):
8
+ def __init__(
9
+ self,
10
+ network_path_id: str = None,
11
+ request_id: str = None,
12
+ ):
13
+ # The ID of the network path.
14
+ self.network_path_id = network_path_id
15
+ # The request ID.
16
+ self.request_id = request_id
17
+
18
+ def validate(self):
19
+ pass
20
+
21
+ def to_map(self):
22
+ result = dict()
23
+ _map = super().to_map()
24
+ if _map is not None:
25
+ result = _map
26
+ if self.network_path_id is not None:
27
+ result['NetworkPathId'] = self.network_path_id
28
+
29
+ if self.request_id is not None:
30
+ result['RequestId'] = self.request_id
31
+
32
+ return result
33
+
34
+ def from_map(self, m: dict = None):
35
+ m = m or dict()
36
+ if m.get('NetworkPathId') is not None:
37
+ self.network_path_id = m.get('NetworkPathId')
38
+
39
+ if m.get('RequestId') is not None:
40
+ self.request_id = m.get('RequestId')
41
+
42
+ return self
43
+
@@ -0,0 +1,106 @@
1
+ # -*- coding: utf-8 -*-
2
+ # This file is auto-generated, don't edit it. Thanks.
3
+ from __future__ import annotations
4
+
5
+ from typing import List
6
+
7
+ from alibabacloud_nis20211216 import models as main_models
8
+ from darabonba.model import DaraModel
9
+
10
+ class CreateNetworkReachableAnalysisRequest(DaraModel):
11
+ def __init__(
12
+ self,
13
+ network_path_id: str = None,
14
+ region_id: str = None,
15
+ tag: List[main_models.CreateNetworkReachableAnalysisRequestTag] = None,
16
+ ):
17
+ # The ID of the network path. You can call the [CreateNetworkPath](https://help.aliyun.com/document_detail/2366522.html) operation to obtain the ID of the network path.
18
+ #
19
+ # This parameter is required.
20
+ self.network_path_id = network_path_id
21
+ # The ID of the region for which you want to create a task for analyzing network reachability.
22
+ self.region_id = region_id
23
+ # The tags to add to the resource.
24
+ self.tag = tag
25
+
26
+ def validate(self):
27
+ if self.tag:
28
+ for v1 in self.tag:
29
+ if v1:
30
+ v1.validate()
31
+
32
+ def to_map(self):
33
+ result = dict()
34
+ _map = super().to_map()
35
+ if _map is not None:
36
+ result = _map
37
+ if self.network_path_id is not None:
38
+ result['NetworkPathId'] = self.network_path_id
39
+
40
+ if self.region_id is not None:
41
+ result['RegionId'] = self.region_id
42
+
43
+ result['Tag'] = []
44
+ if self.tag is not None:
45
+ for k1 in self.tag:
46
+ result['Tag'].append(k1.to_map() if k1 else None)
47
+
48
+ return result
49
+
50
+ def from_map(self, m: dict = None):
51
+ m = m or dict()
52
+ if m.get('NetworkPathId') is not None:
53
+ self.network_path_id = m.get('NetworkPathId')
54
+
55
+ if m.get('RegionId') is not None:
56
+ self.region_id = m.get('RegionId')
57
+
58
+ self.tag = []
59
+ if m.get('Tag') is not None:
60
+ for k1 in m.get('Tag'):
61
+ temp_model = main_models.CreateNetworkReachableAnalysisRequestTag()
62
+ self.tag.append(temp_model.from_map(k1))
63
+
64
+ return self
65
+
66
+ class CreateNetworkReachableAnalysisRequestTag(DaraModel):
67
+ def __init__(
68
+ self,
69
+ key: str = None,
70
+ value: str = None,
71
+ ):
72
+ # The key of the tag to add to the resource. The tag key can be up to 128 characters in length and cannot contain `http://` or `https://`. The tag key cannot start with `acs:` or `aliyun`.
73
+ #
74
+ # You can add up to 20 tags in each call.
75
+ self.key = key
76
+ # The value of the tag to add to the resource. The tag value can be up to 128 characters in length and cannot contain `http://` or `https://`. The tag value cannot start with `acs:` or `aliyun`. The tag value can be an empty string.
77
+ #
78
+ # You can add up to 20 tag values in each call.
79
+ self.value = value
80
+
81
+ def validate(self):
82
+ pass
83
+
84
+ def to_map(self):
85
+ result = dict()
86
+ _map = super().to_map()
87
+ if _map is not None:
88
+ result = _map
89
+ if self.key is not None:
90
+ result['Key'] = self.key
91
+
92
+ if self.value is not None:
93
+ result['Value'] = self.value
94
+
95
+ return result
96
+
97
+ def from_map(self, m: dict = None):
98
+ m = m or dict()
99
+ if m.get('Key') is not None:
100
+ self.key = m.get('Key')
101
+
102
+ if m.get('Value') is not None:
103
+ self.value = m.get('Value')
104
+
105
+ return self
106
+
@@ -0,0 +1,54 @@
1
+ # -*- coding: utf-8 -*-
2
+ # This file is auto-generated, don't edit it. Thanks.
3
+ from __future__ import annotations
4
+
5
+ from typing import Dict
6
+
7
+ from alibabacloud_nis20211216 import models as main_models
8
+ from darabonba.model import DaraModel
9
+
10
+ class CreateNetworkReachableAnalysisResponse(DaraModel):
11
+ def __init__(
12
+ self,
13
+ headers: Dict[str, str] = None,
14
+ status_code: int = None,
15
+ body: main_models.CreateNetworkReachableAnalysisResponseBody = None,
16
+ ):
17
+ self.headers = headers
18
+ self.status_code = status_code
19
+ self.body = body
20
+
21
+ def validate(self):
22
+ if self.body:
23
+ self.body.validate()
24
+
25
+ def to_map(self):
26
+ result = dict()
27
+ _map = super().to_map()
28
+ if _map is not None:
29
+ result = _map
30
+ if self.headers is not None:
31
+ result['headers'] = self.headers
32
+
33
+ if self.status_code is not None:
34
+ result['statusCode'] = self.status_code
35
+
36
+ if self.body is not None:
37
+ result['body'] = self.body.to_map()
38
+
39
+ return result
40
+
41
+ def from_map(self, m: dict = None):
42
+ m = m or dict()
43
+ if m.get('headers') is not None:
44
+ self.headers = m.get('headers')
45
+
46
+ if m.get('statusCode') is not None:
47
+ self.status_code = m.get('statusCode')
48
+
49
+ if m.get('body') is not None:
50
+ temp_model = main_models.CreateNetworkReachableAnalysisResponseBody()
51
+ self.body = temp_model.from_map(m.get('body'))
52
+
53
+ return self
54
+
@@ -0,0 +1,43 @@
1
+ # -*- coding: utf-8 -*-
2
+ # This file is auto-generated, don't edit it. Thanks.
3
+ from __future__ import annotations
4
+
5
+ from darabonba.model import DaraModel
6
+
7
+ class CreateNetworkReachableAnalysisResponseBody(DaraModel):
8
+ def __init__(
9
+ self,
10
+ network_reachable_analysis_id: str = None,
11
+ request_id: str = None,
12
+ ):
13
+ # The ID of the task for analyzing network reachability.
14
+ self.network_reachable_analysis_id = network_reachable_analysis_id
15
+ # The request ID.
16
+ self.request_id = request_id
17
+
18
+ def validate(self):
19
+ pass
20
+
21
+ def to_map(self):
22
+ result = dict()
23
+ _map = super().to_map()
24
+ if _map is not None:
25
+ result = _map
26
+ if self.network_reachable_analysis_id is not None:
27
+ result['NetworkReachableAnalysisId'] = self.network_reachable_analysis_id
28
+
29
+ if self.request_id is not None:
30
+ result['RequestId'] = self.request_id
31
+
32
+ return result
33
+
34
+ def from_map(self, m: dict = None):
35
+ m = m or dict()
36
+ if m.get('NetworkReachableAnalysisId') is not None:
37
+ self.network_reachable_analysis_id = m.get('NetworkReachableAnalysisId')
38
+
39
+ if m.get('RequestId') is not None:
40
+ self.request_id = m.get('RequestId')
41
+
42
+ return self
43
+
@@ -0,0 +1,47 @@
1
+ # -*- coding: utf-8 -*-
2
+ # This file is auto-generated, don't edit it. Thanks.
3
+ from __future__ import annotations
4
+
5
+ from typing import List
6
+
7
+ from darabonba.model import DaraModel
8
+
9
+ class DeleteNetworkPathRequest(DaraModel):
10
+ def __init__(
11
+ self,
12
+ network_path_ids: List[str] = None,
13
+ region_id: str = None,
14
+ ):
15
+ # The IDs of network paths.
16
+ #
17
+ # This parameter is required.
18
+ self.network_path_ids = network_path_ids
19
+ # The region ID of the network path that you want to delete.
20
+ self.region_id = region_id
21
+
22
+ def validate(self):
23
+ pass
24
+
25
+ def to_map(self):
26
+ result = dict()
27
+ _map = super().to_map()
28
+ if _map is not None:
29
+ result = _map
30
+ if self.network_path_ids is not None:
31
+ result['NetworkPathIds'] = self.network_path_ids
32
+
33
+ if self.region_id is not None:
34
+ result['RegionId'] = self.region_id
35
+
36
+ return result
37
+
38
+ def from_map(self, m: dict = None):
39
+ m = m or dict()
40
+ if m.get('NetworkPathIds') is not None:
41
+ self.network_path_ids = m.get('NetworkPathIds')
42
+
43
+ if m.get('RegionId') is not None:
44
+ self.region_id = m.get('RegionId')
45
+
46
+ return self
47
+
@@ -0,0 +1,54 @@
1
+ # -*- coding: utf-8 -*-
2
+ # This file is auto-generated, don't edit it. Thanks.
3
+ from __future__ import annotations
4
+
5
+ from typing import Dict
6
+
7
+ from alibabacloud_nis20211216 import models as main_models
8
+ from darabonba.model import DaraModel
9
+
10
+ class DeleteNetworkPathResponse(DaraModel):
11
+ def __init__(
12
+ self,
13
+ headers: Dict[str, str] = None,
14
+ status_code: int = None,
15
+ body: main_models.DeleteNetworkPathResponseBody = None,
16
+ ):
17
+ self.headers = headers
18
+ self.status_code = status_code
19
+ self.body = body
20
+
21
+ def validate(self):
22
+ if self.body:
23
+ self.body.validate()
24
+
25
+ def to_map(self):
26
+ result = dict()
27
+ _map = super().to_map()
28
+ if _map is not None:
29
+ result = _map
30
+ if self.headers is not None:
31
+ result['headers'] = self.headers
32
+
33
+ if self.status_code is not None:
34
+ result['statusCode'] = self.status_code
35
+
36
+ if self.body is not None:
37
+ result['body'] = self.body.to_map()
38
+
39
+ return result
40
+
41
+ def from_map(self, m: dict = None):
42
+ m = m or dict()
43
+ if m.get('headers') is not None:
44
+ self.headers = m.get('headers')
45
+
46
+ if m.get('statusCode') is not None:
47
+ self.status_code = m.get('statusCode')
48
+
49
+ if m.get('body') is not None:
50
+ temp_model = main_models.DeleteNetworkPathResponseBody()
51
+ self.body = temp_model.from_map(m.get('body'))
52
+
53
+ return self
54
+
@@ -0,0 +1,46 @@
1
+ # -*- coding: utf-8 -*-
2
+ # This file is auto-generated, don't edit it. Thanks.
3
+ from __future__ import annotations
4
+
5
+ from darabonba.model import DaraModel
6
+
7
+ class DeleteNetworkPathResponseBody(DaraModel):
8
+ def __init__(
9
+ self,
10
+ data: bool = None,
11
+ request_id: str = None,
12
+ ):
13
+ # Result of operation.
14
+ #
15
+ # - **true**: Delete Success.
16
+ # - **false**: Delete Fail.
17
+ self.data = data
18
+ # The request ID.
19
+ self.request_id = request_id
20
+
21
+ def validate(self):
22
+ pass
23
+
24
+ def to_map(self):
25
+ result = dict()
26
+ _map = super().to_map()
27
+ if _map is not None:
28
+ result = _map
29
+ if self.data is not None:
30
+ result['Data'] = self.data
31
+
32
+ if self.request_id is not None:
33
+ result['RequestId'] = self.request_id
34
+
35
+ return result
36
+
37
+ def from_map(self, m: dict = None):
38
+ m = m or dict()
39
+ if m.get('Data') is not None:
40
+ self.data = m.get('Data')
41
+
42
+ if m.get('RequestId') is not None:
43
+ self.request_id = m.get('RequestId')
44
+
45
+ return self
46
+