alibabacloud-sls20201230 1.5.16__py3-none-any.whl → 2.0.1__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_sls20201230/__init__.py +1 -1
- alibabacloud_sls20201230/client.py +1003 -11
- alibabacloud_sls20201230/models.py +1344 -163
- {alibabacloud_sls20201230-1.5.16.dist-info → alibabacloud_sls20201230-2.0.1.dist-info}/METADATA +2 -2
- alibabacloud_sls20201230-2.0.1.dist-info/RECORD +8 -0
- alibabacloud_sls20201230-1.5.16.dist-info/RECORD +0 -8
- {alibabacloud_sls20201230-1.5.16.dist-info → alibabacloud_sls20201230-2.0.1.dist-info}/LICENSE +0 -0
- {alibabacloud_sls20201230-1.5.16.dist-info → alibabacloud_sls20201230-2.0.1.dist-info}/WHEEL +0 -0
- {alibabacloud_sls20201230-1.5.16.dist-info → alibabacloud_sls20201230-2.0.1.dist-info}/top_level.txt +0 -0
@@ -51,7 +51,7 @@ class Client(OpenApiClient):
|
|
51
51
|
auth_type='AK',
|
52
52
|
style='ROA',
|
53
53
|
req_body_type='json',
|
54
|
-
body_type='
|
54
|
+
body_type='json'
|
55
55
|
)
|
56
56
|
return TeaCore.from_map(
|
57
57
|
sls_20201230_models.ApplyConfigToMachineGroupResponse(),
|
@@ -81,7 +81,7 @@ class Client(OpenApiClient):
|
|
81
81
|
auth_type='AK',
|
82
82
|
style='ROA',
|
83
83
|
req_body_type='json',
|
84
|
-
body_type='
|
84
|
+
body_type='json'
|
85
85
|
)
|
86
86
|
return TeaCore.from_map(
|
87
87
|
sls_20201230_models.ApplyConfigToMachineGroupResponse(),
|
@@ -110,11 +110,14 @@ class Client(OpenApiClient):
|
|
110
110
|
|
111
111
|
def change_resource_group_with_options(
|
112
112
|
self,
|
113
|
+
project: str,
|
113
114
|
request: sls_20201230_models.ChangeResourceGroupRequest,
|
114
115
|
headers: Dict[str, str],
|
115
116
|
runtime: util_models.RuntimeOptions,
|
116
117
|
) -> sls_20201230_models.ChangeResourceGroupResponse:
|
117
118
|
UtilClient.validate_model(request)
|
119
|
+
host_map = {}
|
120
|
+
host_map['project'] = project
|
118
121
|
body = {}
|
119
122
|
if not UtilClient.is_unset(request.resource_group_id):
|
120
123
|
body['resourceGroupId'] = request.resource_group_id
|
@@ -123,6 +126,7 @@ class Client(OpenApiClient):
|
|
123
126
|
if not UtilClient.is_unset(request.resource_type):
|
124
127
|
body['resourceType'] = request.resource_type
|
125
128
|
req = open_api_models.OpenApiRequest(
|
129
|
+
host_map=host_map,
|
126
130
|
headers=headers,
|
127
131
|
body=OpenApiUtilClient.parse_to_map(body)
|
128
132
|
)
|
@@ -144,11 +148,14 @@ class Client(OpenApiClient):
|
|
144
148
|
|
145
149
|
async def change_resource_group_with_options_async(
|
146
150
|
self,
|
151
|
+
project: str,
|
147
152
|
request: sls_20201230_models.ChangeResourceGroupRequest,
|
148
153
|
headers: Dict[str, str],
|
149
154
|
runtime: util_models.RuntimeOptions,
|
150
155
|
) -> sls_20201230_models.ChangeResourceGroupResponse:
|
151
156
|
UtilClient.validate_model(request)
|
157
|
+
host_map = {}
|
158
|
+
host_map['project'] = project
|
152
159
|
body = {}
|
153
160
|
if not UtilClient.is_unset(request.resource_group_id):
|
154
161
|
body['resourceGroupId'] = request.resource_group_id
|
@@ -157,6 +164,7 @@ class Client(OpenApiClient):
|
|
157
164
|
if not UtilClient.is_unset(request.resource_type):
|
158
165
|
body['resourceType'] = request.resource_type
|
159
166
|
req = open_api_models.OpenApiRequest(
|
167
|
+
host_map=host_map,
|
160
168
|
headers=headers,
|
161
169
|
body=OpenApiUtilClient.parse_to_map(body)
|
162
170
|
)
|
@@ -178,19 +186,21 @@ class Client(OpenApiClient):
|
|
178
186
|
|
179
187
|
def change_resource_group(
|
180
188
|
self,
|
189
|
+
project: str,
|
181
190
|
request: sls_20201230_models.ChangeResourceGroupRequest,
|
182
191
|
) -> sls_20201230_models.ChangeResourceGroupResponse:
|
183
192
|
runtime = util_models.RuntimeOptions()
|
184
193
|
headers = {}
|
185
|
-
return self.change_resource_group_with_options(request, headers, runtime)
|
194
|
+
return self.change_resource_group_with_options(project, request, headers, runtime)
|
186
195
|
|
187
196
|
async def change_resource_group_async(
|
188
197
|
self,
|
198
|
+
project: str,
|
189
199
|
request: sls_20201230_models.ChangeResourceGroupRequest,
|
190
200
|
) -> sls_20201230_models.ChangeResourceGroupResponse:
|
191
201
|
runtime = util_models.RuntimeOptions()
|
192
202
|
headers = {}
|
193
|
-
return await self.change_resource_group_with_options_async(request, headers, runtime)
|
203
|
+
return await self.change_resource_group_with_options_async(project, request, headers, runtime)
|
194
204
|
|
195
205
|
def consumer_group_heart_beat_with_options(
|
196
206
|
self,
|
@@ -288,6 +298,86 @@ class Client(OpenApiClient):
|
|
288
298
|
headers = {}
|
289
299
|
return await self.consumer_group_heart_beat_with_options_async(project, logstore, consumer_group, request, headers, runtime)
|
290
300
|
|
301
|
+
def create_config_with_options(
|
302
|
+
self,
|
303
|
+
project: str,
|
304
|
+
request: sls_20201230_models.CreateConfigRequest,
|
305
|
+
headers: Dict[str, str],
|
306
|
+
runtime: util_models.RuntimeOptions,
|
307
|
+
) -> sls_20201230_models.CreateConfigResponse:
|
308
|
+
UtilClient.validate_model(request)
|
309
|
+
host_map = {}
|
310
|
+
host_map['project'] = project
|
311
|
+
req = open_api_models.OpenApiRequest(
|
312
|
+
host_map=host_map,
|
313
|
+
headers=headers,
|
314
|
+
body=OpenApiUtilClient.parse_to_map(request.body)
|
315
|
+
)
|
316
|
+
params = open_api_models.Params(
|
317
|
+
action='CreateConfig',
|
318
|
+
version='2020-12-30',
|
319
|
+
protocol='HTTPS',
|
320
|
+
pathname=f'/configs',
|
321
|
+
method='POST',
|
322
|
+
auth_type='AK',
|
323
|
+
style='ROA',
|
324
|
+
req_body_type='json',
|
325
|
+
body_type='none'
|
326
|
+
)
|
327
|
+
return TeaCore.from_map(
|
328
|
+
sls_20201230_models.CreateConfigResponse(),
|
329
|
+
self.execute(params, req, runtime)
|
330
|
+
)
|
331
|
+
|
332
|
+
async def create_config_with_options_async(
|
333
|
+
self,
|
334
|
+
project: str,
|
335
|
+
request: sls_20201230_models.CreateConfigRequest,
|
336
|
+
headers: Dict[str, str],
|
337
|
+
runtime: util_models.RuntimeOptions,
|
338
|
+
) -> sls_20201230_models.CreateConfigResponse:
|
339
|
+
UtilClient.validate_model(request)
|
340
|
+
host_map = {}
|
341
|
+
host_map['project'] = project
|
342
|
+
req = open_api_models.OpenApiRequest(
|
343
|
+
host_map=host_map,
|
344
|
+
headers=headers,
|
345
|
+
body=OpenApiUtilClient.parse_to_map(request.body)
|
346
|
+
)
|
347
|
+
params = open_api_models.Params(
|
348
|
+
action='CreateConfig',
|
349
|
+
version='2020-12-30',
|
350
|
+
protocol='HTTPS',
|
351
|
+
pathname=f'/configs',
|
352
|
+
method='POST',
|
353
|
+
auth_type='AK',
|
354
|
+
style='ROA',
|
355
|
+
req_body_type='json',
|
356
|
+
body_type='none'
|
357
|
+
)
|
358
|
+
return TeaCore.from_map(
|
359
|
+
sls_20201230_models.CreateConfigResponse(),
|
360
|
+
await self.execute_async(params, req, runtime)
|
361
|
+
)
|
362
|
+
|
363
|
+
def create_config(
|
364
|
+
self,
|
365
|
+
project: str,
|
366
|
+
request: sls_20201230_models.CreateConfigRequest,
|
367
|
+
) -> sls_20201230_models.CreateConfigResponse:
|
368
|
+
runtime = util_models.RuntimeOptions()
|
369
|
+
headers = {}
|
370
|
+
return self.create_config_with_options(project, request, headers, runtime)
|
371
|
+
|
372
|
+
async def create_config_async(
|
373
|
+
self,
|
374
|
+
project: str,
|
375
|
+
request: sls_20201230_models.CreateConfigRequest,
|
376
|
+
) -> sls_20201230_models.CreateConfigResponse:
|
377
|
+
runtime = util_models.RuntimeOptions()
|
378
|
+
headers = {}
|
379
|
+
return await self.create_config_with_options_async(project, request, headers, runtime)
|
380
|
+
|
291
381
|
def create_consumer_group_with_options(
|
292
382
|
self,
|
293
383
|
project: str,
|
@@ -386,6 +476,86 @@ class Client(OpenApiClient):
|
|
386
476
|
headers = {}
|
387
477
|
return await self.create_consumer_group_with_options_async(project, logstore, request, headers, runtime)
|
388
478
|
|
479
|
+
def create_dashboard_with_options(
|
480
|
+
self,
|
481
|
+
project: str,
|
482
|
+
request: sls_20201230_models.CreateDashboardRequest,
|
483
|
+
headers: Dict[str, str],
|
484
|
+
runtime: util_models.RuntimeOptions,
|
485
|
+
) -> sls_20201230_models.CreateDashboardResponse:
|
486
|
+
UtilClient.validate_model(request)
|
487
|
+
host_map = {}
|
488
|
+
host_map['project'] = project
|
489
|
+
req = open_api_models.OpenApiRequest(
|
490
|
+
host_map=host_map,
|
491
|
+
headers=headers,
|
492
|
+
body=OpenApiUtilClient.parse_to_map(request.body)
|
493
|
+
)
|
494
|
+
params = open_api_models.Params(
|
495
|
+
action='CreateDashboard',
|
496
|
+
version='2020-12-30',
|
497
|
+
protocol='HTTPS',
|
498
|
+
pathname=f'/dashboards',
|
499
|
+
method='POST',
|
500
|
+
auth_type='AK',
|
501
|
+
style='ROA',
|
502
|
+
req_body_type='json',
|
503
|
+
body_type='none'
|
504
|
+
)
|
505
|
+
return TeaCore.from_map(
|
506
|
+
sls_20201230_models.CreateDashboardResponse(),
|
507
|
+
self.execute(params, req, runtime)
|
508
|
+
)
|
509
|
+
|
510
|
+
async def create_dashboard_with_options_async(
|
511
|
+
self,
|
512
|
+
project: str,
|
513
|
+
request: sls_20201230_models.CreateDashboardRequest,
|
514
|
+
headers: Dict[str, str],
|
515
|
+
runtime: util_models.RuntimeOptions,
|
516
|
+
) -> sls_20201230_models.CreateDashboardResponse:
|
517
|
+
UtilClient.validate_model(request)
|
518
|
+
host_map = {}
|
519
|
+
host_map['project'] = project
|
520
|
+
req = open_api_models.OpenApiRequest(
|
521
|
+
host_map=host_map,
|
522
|
+
headers=headers,
|
523
|
+
body=OpenApiUtilClient.parse_to_map(request.body)
|
524
|
+
)
|
525
|
+
params = open_api_models.Params(
|
526
|
+
action='CreateDashboard',
|
527
|
+
version='2020-12-30',
|
528
|
+
protocol='HTTPS',
|
529
|
+
pathname=f'/dashboards',
|
530
|
+
method='POST',
|
531
|
+
auth_type='AK',
|
532
|
+
style='ROA',
|
533
|
+
req_body_type='json',
|
534
|
+
body_type='none'
|
535
|
+
)
|
536
|
+
return TeaCore.from_map(
|
537
|
+
sls_20201230_models.CreateDashboardResponse(),
|
538
|
+
await self.execute_async(params, req, runtime)
|
539
|
+
)
|
540
|
+
|
541
|
+
def create_dashboard(
|
542
|
+
self,
|
543
|
+
project: str,
|
544
|
+
request: sls_20201230_models.CreateDashboardRequest,
|
545
|
+
) -> sls_20201230_models.CreateDashboardResponse:
|
546
|
+
runtime = util_models.RuntimeOptions()
|
547
|
+
headers = {}
|
548
|
+
return self.create_dashboard_with_options(project, request, headers, runtime)
|
549
|
+
|
550
|
+
async def create_dashboard_async(
|
551
|
+
self,
|
552
|
+
project: str,
|
553
|
+
request: sls_20201230_models.CreateDashboardRequest,
|
554
|
+
) -> sls_20201230_models.CreateDashboardResponse:
|
555
|
+
runtime = util_models.RuntimeOptions()
|
556
|
+
headers = {}
|
557
|
+
return await self.create_dashboard_with_options_async(project, request, headers, runtime)
|
558
|
+
|
389
559
|
def create_domain_with_options(
|
390
560
|
self,
|
391
561
|
project: str,
|
@@ -1221,7 +1391,7 @@ class Client(OpenApiClient):
|
|
1221
1391
|
auth_type='AK',
|
1222
1392
|
style='ROA',
|
1223
1393
|
req_body_type='json',
|
1224
|
-
body_type='
|
1394
|
+
body_type='json'
|
1225
1395
|
)
|
1226
1396
|
return TeaCore.from_map(
|
1227
1397
|
sls_20201230_models.CreateProjectResponse(),
|
@@ -1255,7 +1425,7 @@ class Client(OpenApiClient):
|
|
1255
1425
|
auth_type='AK',
|
1256
1426
|
style='ROA',
|
1257
1427
|
req_body_type='json',
|
1258
|
-
body_type='
|
1428
|
+
body_type='json'
|
1259
1429
|
)
|
1260
1430
|
return TeaCore.from_map(
|
1261
1431
|
sls_20201230_models.CreateProjectResponse(),
|
@@ -1474,6 +1644,82 @@ class Client(OpenApiClient):
|
|
1474
1644
|
headers = {}
|
1475
1645
|
return await self.create_saved_search_with_options_async(project, request, headers, runtime)
|
1476
1646
|
|
1647
|
+
def delete_config_with_options(
|
1648
|
+
self,
|
1649
|
+
project: str,
|
1650
|
+
config_name: str,
|
1651
|
+
headers: Dict[str, str],
|
1652
|
+
runtime: util_models.RuntimeOptions,
|
1653
|
+
) -> sls_20201230_models.DeleteConfigResponse:
|
1654
|
+
host_map = {}
|
1655
|
+
host_map['project'] = project
|
1656
|
+
req = open_api_models.OpenApiRequest(
|
1657
|
+
host_map=host_map,
|
1658
|
+
headers=headers
|
1659
|
+
)
|
1660
|
+
params = open_api_models.Params(
|
1661
|
+
action='DeleteConfig',
|
1662
|
+
version='2020-12-30',
|
1663
|
+
protocol='HTTPS',
|
1664
|
+
pathname=f'/configs/{config_name}',
|
1665
|
+
method='DELETE',
|
1666
|
+
auth_type='AK',
|
1667
|
+
style='ROA',
|
1668
|
+
req_body_type='json',
|
1669
|
+
body_type='none'
|
1670
|
+
)
|
1671
|
+
return TeaCore.from_map(
|
1672
|
+
sls_20201230_models.DeleteConfigResponse(),
|
1673
|
+
self.execute(params, req, runtime)
|
1674
|
+
)
|
1675
|
+
|
1676
|
+
async def delete_config_with_options_async(
|
1677
|
+
self,
|
1678
|
+
project: str,
|
1679
|
+
config_name: str,
|
1680
|
+
headers: Dict[str, str],
|
1681
|
+
runtime: util_models.RuntimeOptions,
|
1682
|
+
) -> sls_20201230_models.DeleteConfigResponse:
|
1683
|
+
host_map = {}
|
1684
|
+
host_map['project'] = project
|
1685
|
+
req = open_api_models.OpenApiRequest(
|
1686
|
+
host_map=host_map,
|
1687
|
+
headers=headers
|
1688
|
+
)
|
1689
|
+
params = open_api_models.Params(
|
1690
|
+
action='DeleteConfig',
|
1691
|
+
version='2020-12-30',
|
1692
|
+
protocol='HTTPS',
|
1693
|
+
pathname=f'/configs/{config_name}',
|
1694
|
+
method='DELETE',
|
1695
|
+
auth_type='AK',
|
1696
|
+
style='ROA',
|
1697
|
+
req_body_type='json',
|
1698
|
+
body_type='none'
|
1699
|
+
)
|
1700
|
+
return TeaCore.from_map(
|
1701
|
+
sls_20201230_models.DeleteConfigResponse(),
|
1702
|
+
await self.execute_async(params, req, runtime)
|
1703
|
+
)
|
1704
|
+
|
1705
|
+
def delete_config(
|
1706
|
+
self,
|
1707
|
+
project: str,
|
1708
|
+
config_name: str,
|
1709
|
+
) -> sls_20201230_models.DeleteConfigResponse:
|
1710
|
+
runtime = util_models.RuntimeOptions()
|
1711
|
+
headers = {}
|
1712
|
+
return self.delete_config_with_options(project, config_name, headers, runtime)
|
1713
|
+
|
1714
|
+
async def delete_config_async(
|
1715
|
+
self,
|
1716
|
+
project: str,
|
1717
|
+
config_name: str,
|
1718
|
+
) -> sls_20201230_models.DeleteConfigResponse:
|
1719
|
+
runtime = util_models.RuntimeOptions()
|
1720
|
+
headers = {}
|
1721
|
+
return await self.delete_config_with_options_async(project, config_name, headers, runtime)
|
1722
|
+
|
1477
1723
|
def delete_consumer_group_with_options(
|
1478
1724
|
self,
|
1479
1725
|
project: str,
|
@@ -1554,6 +1800,82 @@ class Client(OpenApiClient):
|
|
1554
1800
|
headers = {}
|
1555
1801
|
return await self.delete_consumer_group_with_options_async(project, logstore, consumer_group, headers, runtime)
|
1556
1802
|
|
1803
|
+
def delete_dashboard_with_options(
|
1804
|
+
self,
|
1805
|
+
project: str,
|
1806
|
+
dashboard_name: str,
|
1807
|
+
headers: Dict[str, str],
|
1808
|
+
runtime: util_models.RuntimeOptions,
|
1809
|
+
) -> sls_20201230_models.DeleteDashboardResponse:
|
1810
|
+
host_map = {}
|
1811
|
+
host_map['project'] = project
|
1812
|
+
req = open_api_models.OpenApiRequest(
|
1813
|
+
host_map=host_map,
|
1814
|
+
headers=headers
|
1815
|
+
)
|
1816
|
+
params = open_api_models.Params(
|
1817
|
+
action='DeleteDashboard',
|
1818
|
+
version='2020-12-30',
|
1819
|
+
protocol='HTTPS',
|
1820
|
+
pathname=f'/dashboards/{dashboard_name}',
|
1821
|
+
method='DELETE',
|
1822
|
+
auth_type='AK',
|
1823
|
+
style='ROA',
|
1824
|
+
req_body_type='json',
|
1825
|
+
body_type='none'
|
1826
|
+
)
|
1827
|
+
return TeaCore.from_map(
|
1828
|
+
sls_20201230_models.DeleteDashboardResponse(),
|
1829
|
+
self.execute(params, req, runtime)
|
1830
|
+
)
|
1831
|
+
|
1832
|
+
async def delete_dashboard_with_options_async(
|
1833
|
+
self,
|
1834
|
+
project: str,
|
1835
|
+
dashboard_name: str,
|
1836
|
+
headers: Dict[str, str],
|
1837
|
+
runtime: util_models.RuntimeOptions,
|
1838
|
+
) -> sls_20201230_models.DeleteDashboardResponse:
|
1839
|
+
host_map = {}
|
1840
|
+
host_map['project'] = project
|
1841
|
+
req = open_api_models.OpenApiRequest(
|
1842
|
+
host_map=host_map,
|
1843
|
+
headers=headers
|
1844
|
+
)
|
1845
|
+
params = open_api_models.Params(
|
1846
|
+
action='DeleteDashboard',
|
1847
|
+
version='2020-12-30',
|
1848
|
+
protocol='HTTPS',
|
1849
|
+
pathname=f'/dashboards/{dashboard_name}',
|
1850
|
+
method='DELETE',
|
1851
|
+
auth_type='AK',
|
1852
|
+
style='ROA',
|
1853
|
+
req_body_type='json',
|
1854
|
+
body_type='none'
|
1855
|
+
)
|
1856
|
+
return TeaCore.from_map(
|
1857
|
+
sls_20201230_models.DeleteDashboardResponse(),
|
1858
|
+
await self.execute_async(params, req, runtime)
|
1859
|
+
)
|
1860
|
+
|
1861
|
+
def delete_dashboard(
|
1862
|
+
self,
|
1863
|
+
project: str,
|
1864
|
+
dashboard_name: str,
|
1865
|
+
) -> sls_20201230_models.DeleteDashboardResponse:
|
1866
|
+
runtime = util_models.RuntimeOptions()
|
1867
|
+
headers = {}
|
1868
|
+
return self.delete_dashboard_with_options(project, dashboard_name, headers, runtime)
|
1869
|
+
|
1870
|
+
async def delete_dashboard_async(
|
1871
|
+
self,
|
1872
|
+
project: str,
|
1873
|
+
dashboard_name: str,
|
1874
|
+
) -> sls_20201230_models.DeleteDashboardResponse:
|
1875
|
+
runtime = util_models.RuntimeOptions()
|
1876
|
+
headers = {}
|
1877
|
+
return await self.delete_dashboard_with_options_async(project, dashboard_name, headers, runtime)
|
1878
|
+
|
1557
1879
|
def delete_domain_with_options(
|
1558
1880
|
self,
|
1559
1881
|
project: str,
|
@@ -2552,15 +2874,91 @@ class Client(OpenApiClient):
|
|
2552
2874
|
headers = {}
|
2553
2875
|
return await self.get_check_point_with_options_async(project, logstore, consumer_group, request, headers, runtime)
|
2554
2876
|
|
2555
|
-
def
|
2877
|
+
def get_config_with_options(
|
2556
2878
|
self,
|
2557
2879
|
project: str,
|
2558
|
-
|
2559
|
-
request: sls_20201230_models.GetContextLogsRequest,
|
2880
|
+
config_name: str,
|
2560
2881
|
headers: Dict[str, str],
|
2561
2882
|
runtime: util_models.RuntimeOptions,
|
2562
|
-
) -> sls_20201230_models.
|
2563
|
-
|
2883
|
+
) -> sls_20201230_models.GetConfigResponse:
|
2884
|
+
host_map = {}
|
2885
|
+
host_map['project'] = project
|
2886
|
+
req = open_api_models.OpenApiRequest(
|
2887
|
+
host_map=host_map,
|
2888
|
+
headers=headers
|
2889
|
+
)
|
2890
|
+
params = open_api_models.Params(
|
2891
|
+
action='GetConfig',
|
2892
|
+
version='2020-12-30',
|
2893
|
+
protocol='HTTPS',
|
2894
|
+
pathname=f'/configs/{config_name}',
|
2895
|
+
method='GET',
|
2896
|
+
auth_type='AK',
|
2897
|
+
style='ROA',
|
2898
|
+
req_body_type='json',
|
2899
|
+
body_type='json'
|
2900
|
+
)
|
2901
|
+
return TeaCore.from_map(
|
2902
|
+
sls_20201230_models.GetConfigResponse(),
|
2903
|
+
self.execute(params, req, runtime)
|
2904
|
+
)
|
2905
|
+
|
2906
|
+
async def get_config_with_options_async(
|
2907
|
+
self,
|
2908
|
+
project: str,
|
2909
|
+
config_name: str,
|
2910
|
+
headers: Dict[str, str],
|
2911
|
+
runtime: util_models.RuntimeOptions,
|
2912
|
+
) -> sls_20201230_models.GetConfigResponse:
|
2913
|
+
host_map = {}
|
2914
|
+
host_map['project'] = project
|
2915
|
+
req = open_api_models.OpenApiRequest(
|
2916
|
+
host_map=host_map,
|
2917
|
+
headers=headers
|
2918
|
+
)
|
2919
|
+
params = open_api_models.Params(
|
2920
|
+
action='GetConfig',
|
2921
|
+
version='2020-12-30',
|
2922
|
+
protocol='HTTPS',
|
2923
|
+
pathname=f'/configs/{config_name}',
|
2924
|
+
method='GET',
|
2925
|
+
auth_type='AK',
|
2926
|
+
style='ROA',
|
2927
|
+
req_body_type='json',
|
2928
|
+
body_type='json'
|
2929
|
+
)
|
2930
|
+
return TeaCore.from_map(
|
2931
|
+
sls_20201230_models.GetConfigResponse(),
|
2932
|
+
await self.execute_async(params, req, runtime)
|
2933
|
+
)
|
2934
|
+
|
2935
|
+
def get_config(
|
2936
|
+
self,
|
2937
|
+
project: str,
|
2938
|
+
config_name: str,
|
2939
|
+
) -> sls_20201230_models.GetConfigResponse:
|
2940
|
+
runtime = util_models.RuntimeOptions()
|
2941
|
+
headers = {}
|
2942
|
+
return self.get_config_with_options(project, config_name, headers, runtime)
|
2943
|
+
|
2944
|
+
async def get_config_async(
|
2945
|
+
self,
|
2946
|
+
project: str,
|
2947
|
+
config_name: str,
|
2948
|
+
) -> sls_20201230_models.GetConfigResponse:
|
2949
|
+
runtime = util_models.RuntimeOptions()
|
2950
|
+
headers = {}
|
2951
|
+
return await self.get_config_with_options_async(project, config_name, headers, runtime)
|
2952
|
+
|
2953
|
+
def get_context_logs_with_options(
|
2954
|
+
self,
|
2955
|
+
project: str,
|
2956
|
+
logstore: str,
|
2957
|
+
request: sls_20201230_models.GetContextLogsRequest,
|
2958
|
+
headers: Dict[str, str],
|
2959
|
+
runtime: util_models.RuntimeOptions,
|
2960
|
+
) -> sls_20201230_models.GetContextLogsResponse:
|
2961
|
+
UtilClient.validate_model(request)
|
2564
2962
|
host_map = {}
|
2565
2963
|
host_map['project'] = project
|
2566
2964
|
query = {}
|
@@ -2846,6 +3244,82 @@ class Client(OpenApiClient):
|
|
2846
3244
|
headers = {}
|
2847
3245
|
return await self.get_cursor_time_with_options_async(project, logstore, shard_id, request, headers, runtime)
|
2848
3246
|
|
3247
|
+
def get_dashboard_with_options(
|
3248
|
+
self,
|
3249
|
+
project: str,
|
3250
|
+
dashboard_name: str,
|
3251
|
+
headers: Dict[str, str],
|
3252
|
+
runtime: util_models.RuntimeOptions,
|
3253
|
+
) -> sls_20201230_models.GetDashboardResponse:
|
3254
|
+
host_map = {}
|
3255
|
+
host_map['project'] = project
|
3256
|
+
req = open_api_models.OpenApiRequest(
|
3257
|
+
host_map=host_map,
|
3258
|
+
headers=headers
|
3259
|
+
)
|
3260
|
+
params = open_api_models.Params(
|
3261
|
+
action='GetDashboard',
|
3262
|
+
version='2020-12-30',
|
3263
|
+
protocol='HTTPS',
|
3264
|
+
pathname=f'/dashboards/{dashboard_name}',
|
3265
|
+
method='GET',
|
3266
|
+
auth_type='AK',
|
3267
|
+
style='ROA',
|
3268
|
+
req_body_type='json',
|
3269
|
+
body_type='json'
|
3270
|
+
)
|
3271
|
+
return TeaCore.from_map(
|
3272
|
+
sls_20201230_models.GetDashboardResponse(),
|
3273
|
+
self.execute(params, req, runtime)
|
3274
|
+
)
|
3275
|
+
|
3276
|
+
async def get_dashboard_with_options_async(
|
3277
|
+
self,
|
3278
|
+
project: str,
|
3279
|
+
dashboard_name: str,
|
3280
|
+
headers: Dict[str, str],
|
3281
|
+
runtime: util_models.RuntimeOptions,
|
3282
|
+
) -> sls_20201230_models.GetDashboardResponse:
|
3283
|
+
host_map = {}
|
3284
|
+
host_map['project'] = project
|
3285
|
+
req = open_api_models.OpenApiRequest(
|
3286
|
+
host_map=host_map,
|
3287
|
+
headers=headers
|
3288
|
+
)
|
3289
|
+
params = open_api_models.Params(
|
3290
|
+
action='GetDashboard',
|
3291
|
+
version='2020-12-30',
|
3292
|
+
protocol='HTTPS',
|
3293
|
+
pathname=f'/dashboards/{dashboard_name}',
|
3294
|
+
method='GET',
|
3295
|
+
auth_type='AK',
|
3296
|
+
style='ROA',
|
3297
|
+
req_body_type='json',
|
3298
|
+
body_type='json'
|
3299
|
+
)
|
3300
|
+
return TeaCore.from_map(
|
3301
|
+
sls_20201230_models.GetDashboardResponse(),
|
3302
|
+
await self.execute_async(params, req, runtime)
|
3303
|
+
)
|
3304
|
+
|
3305
|
+
def get_dashboard(
|
3306
|
+
self,
|
3307
|
+
project: str,
|
3308
|
+
dashboard_name: str,
|
3309
|
+
) -> sls_20201230_models.GetDashboardResponse:
|
3310
|
+
runtime = util_models.RuntimeOptions()
|
3311
|
+
headers = {}
|
3312
|
+
return self.get_dashboard_with_options(project, dashboard_name, headers, runtime)
|
3313
|
+
|
3314
|
+
async def get_dashboard_async(
|
3315
|
+
self,
|
3316
|
+
project: str,
|
3317
|
+
dashboard_name: str,
|
3318
|
+
) -> sls_20201230_models.GetDashboardResponse:
|
3319
|
+
runtime = util_models.RuntimeOptions()
|
3320
|
+
headers = {}
|
3321
|
+
return await self.get_dashboard_with_options_async(project, dashboard_name, headers, runtime)
|
3322
|
+
|
2849
3323
|
def get_external_store_with_options(
|
2850
3324
|
self,
|
2851
3325
|
project: str,
|
@@ -3366,6 +3840,146 @@ class Client(OpenApiClient):
|
|
3366
3840
|
headers = {}
|
3367
3841
|
return await self.get_logs_with_options_async(project, logstore, request, headers, runtime)
|
3368
3842
|
|
3843
|
+
def get_logs_v2with_options(
|
3844
|
+
self,
|
3845
|
+
project: str,
|
3846
|
+
logstore: str,
|
3847
|
+
request: sls_20201230_models.GetLogsV2Request,
|
3848
|
+
headers: sls_20201230_models.GetLogsV2Headers,
|
3849
|
+
runtime: util_models.RuntimeOptions,
|
3850
|
+
) -> sls_20201230_models.GetLogsV2Response:
|
3851
|
+
UtilClient.validate_model(request)
|
3852
|
+
host_map = {}
|
3853
|
+
host_map['project'] = project
|
3854
|
+
body = {}
|
3855
|
+
if not UtilClient.is_unset(request.forward):
|
3856
|
+
body['forward'] = request.forward
|
3857
|
+
if not UtilClient.is_unset(request.from_):
|
3858
|
+
body['from'] = request.from_
|
3859
|
+
if not UtilClient.is_unset(request.line):
|
3860
|
+
body['line'] = request.line
|
3861
|
+
if not UtilClient.is_unset(request.offset):
|
3862
|
+
body['offset'] = request.offset
|
3863
|
+
if not UtilClient.is_unset(request.power_sql):
|
3864
|
+
body['powerSql'] = request.power_sql
|
3865
|
+
if not UtilClient.is_unset(request.query):
|
3866
|
+
body['query'] = request.query
|
3867
|
+
if not UtilClient.is_unset(request.reverse):
|
3868
|
+
body['reverse'] = request.reverse
|
3869
|
+
if not UtilClient.is_unset(request.session):
|
3870
|
+
body['session'] = request.session
|
3871
|
+
if not UtilClient.is_unset(request.shard):
|
3872
|
+
body['shard'] = request.shard
|
3873
|
+
if not UtilClient.is_unset(request.to):
|
3874
|
+
body['to'] = request.to
|
3875
|
+
if not UtilClient.is_unset(request.topic):
|
3876
|
+
body['topic'] = request.topic
|
3877
|
+
real_headers = {}
|
3878
|
+
if not UtilClient.is_unset(headers.common_headers):
|
3879
|
+
real_headers = headers.common_headers
|
3880
|
+
if not UtilClient.is_unset(headers.accept_encoding):
|
3881
|
+
real_headers['Accept-Encoding'] = UtilClient.to_jsonstring(headers.accept_encoding)
|
3882
|
+
req = open_api_models.OpenApiRequest(
|
3883
|
+
host_map=host_map,
|
3884
|
+
headers=real_headers,
|
3885
|
+
body=OpenApiUtilClient.parse_to_map(body)
|
3886
|
+
)
|
3887
|
+
params = open_api_models.Params(
|
3888
|
+
action='GetLogsV2',
|
3889
|
+
version='2020-12-30',
|
3890
|
+
protocol='HTTPS',
|
3891
|
+
pathname=f'/logstores/{logstore}/logs',
|
3892
|
+
method='POST',
|
3893
|
+
auth_type='AK',
|
3894
|
+
style='ROA',
|
3895
|
+
req_body_type='json',
|
3896
|
+
body_type='json'
|
3897
|
+
)
|
3898
|
+
return TeaCore.from_map(
|
3899
|
+
sls_20201230_models.GetLogsV2Response(),
|
3900
|
+
self.execute(params, req, runtime)
|
3901
|
+
)
|
3902
|
+
|
3903
|
+
async def get_logs_v2with_options_async(
|
3904
|
+
self,
|
3905
|
+
project: str,
|
3906
|
+
logstore: str,
|
3907
|
+
request: sls_20201230_models.GetLogsV2Request,
|
3908
|
+
headers: sls_20201230_models.GetLogsV2Headers,
|
3909
|
+
runtime: util_models.RuntimeOptions,
|
3910
|
+
) -> sls_20201230_models.GetLogsV2Response:
|
3911
|
+
UtilClient.validate_model(request)
|
3912
|
+
host_map = {}
|
3913
|
+
host_map['project'] = project
|
3914
|
+
body = {}
|
3915
|
+
if not UtilClient.is_unset(request.forward):
|
3916
|
+
body['forward'] = request.forward
|
3917
|
+
if not UtilClient.is_unset(request.from_):
|
3918
|
+
body['from'] = request.from_
|
3919
|
+
if not UtilClient.is_unset(request.line):
|
3920
|
+
body['line'] = request.line
|
3921
|
+
if not UtilClient.is_unset(request.offset):
|
3922
|
+
body['offset'] = request.offset
|
3923
|
+
if not UtilClient.is_unset(request.power_sql):
|
3924
|
+
body['powerSql'] = request.power_sql
|
3925
|
+
if not UtilClient.is_unset(request.query):
|
3926
|
+
body['query'] = request.query
|
3927
|
+
if not UtilClient.is_unset(request.reverse):
|
3928
|
+
body['reverse'] = request.reverse
|
3929
|
+
if not UtilClient.is_unset(request.session):
|
3930
|
+
body['session'] = request.session
|
3931
|
+
if not UtilClient.is_unset(request.shard):
|
3932
|
+
body['shard'] = request.shard
|
3933
|
+
if not UtilClient.is_unset(request.to):
|
3934
|
+
body['to'] = request.to
|
3935
|
+
if not UtilClient.is_unset(request.topic):
|
3936
|
+
body['topic'] = request.topic
|
3937
|
+
real_headers = {}
|
3938
|
+
if not UtilClient.is_unset(headers.common_headers):
|
3939
|
+
real_headers = headers.common_headers
|
3940
|
+
if not UtilClient.is_unset(headers.accept_encoding):
|
3941
|
+
real_headers['Accept-Encoding'] = UtilClient.to_jsonstring(headers.accept_encoding)
|
3942
|
+
req = open_api_models.OpenApiRequest(
|
3943
|
+
host_map=host_map,
|
3944
|
+
headers=real_headers,
|
3945
|
+
body=OpenApiUtilClient.parse_to_map(body)
|
3946
|
+
)
|
3947
|
+
params = open_api_models.Params(
|
3948
|
+
action='GetLogsV2',
|
3949
|
+
version='2020-12-30',
|
3950
|
+
protocol='HTTPS',
|
3951
|
+
pathname=f'/logstores/{logstore}/logs',
|
3952
|
+
method='POST',
|
3953
|
+
auth_type='AK',
|
3954
|
+
style='ROA',
|
3955
|
+
req_body_type='json',
|
3956
|
+
body_type='json'
|
3957
|
+
)
|
3958
|
+
return TeaCore.from_map(
|
3959
|
+
sls_20201230_models.GetLogsV2Response(),
|
3960
|
+
await self.execute_async(params, req, runtime)
|
3961
|
+
)
|
3962
|
+
|
3963
|
+
def get_logs_v2(
|
3964
|
+
self,
|
3965
|
+
project: str,
|
3966
|
+
logstore: str,
|
3967
|
+
request: sls_20201230_models.GetLogsV2Request,
|
3968
|
+
) -> sls_20201230_models.GetLogsV2Response:
|
3969
|
+
runtime = util_models.RuntimeOptions()
|
3970
|
+
headers = sls_20201230_models.GetLogsV2Headers()
|
3971
|
+
return self.get_logs_v2with_options(project, logstore, request, headers, runtime)
|
3972
|
+
|
3973
|
+
async def get_logs_v2_async(
|
3974
|
+
self,
|
3975
|
+
project: str,
|
3976
|
+
logstore: str,
|
3977
|
+
request: sls_20201230_models.GetLogsV2Request,
|
3978
|
+
) -> sls_20201230_models.GetLogsV2Response:
|
3979
|
+
runtime = util_models.RuntimeOptions()
|
3980
|
+
headers = sls_20201230_models.GetLogsV2Headers()
|
3981
|
+
return await self.get_logs_v2with_options_async(project, logstore, request, headers, runtime)
|
3982
|
+
|
3369
3983
|
def get_machine_group_with_options(
|
3370
3984
|
self,
|
3371
3985
|
project: str,
|
@@ -3862,6 +4476,104 @@ class Client(OpenApiClient):
|
|
3862
4476
|
headers = {}
|
3863
4477
|
return await self.get_shipper_status_with_options_async(project, logstore, shipper_name, request, headers, runtime)
|
3864
4478
|
|
4479
|
+
def list_config_with_options(
|
4480
|
+
self,
|
4481
|
+
project: str,
|
4482
|
+
request: sls_20201230_models.ListConfigRequest,
|
4483
|
+
headers: Dict[str, str],
|
4484
|
+
runtime: util_models.RuntimeOptions,
|
4485
|
+
) -> sls_20201230_models.ListConfigResponse:
|
4486
|
+
UtilClient.validate_model(request)
|
4487
|
+
host_map = {}
|
4488
|
+
host_map['project'] = project
|
4489
|
+
query = {}
|
4490
|
+
if not UtilClient.is_unset(request.config_name):
|
4491
|
+
query['configName'] = request.config_name
|
4492
|
+
if not UtilClient.is_unset(request.logstore_name):
|
4493
|
+
query['logstoreName'] = request.logstore_name
|
4494
|
+
if not UtilClient.is_unset(request.offset):
|
4495
|
+
query['offset'] = request.offset
|
4496
|
+
if not UtilClient.is_unset(request.size):
|
4497
|
+
query['size'] = request.size
|
4498
|
+
req = open_api_models.OpenApiRequest(
|
4499
|
+
host_map=host_map,
|
4500
|
+
headers=headers,
|
4501
|
+
query=OpenApiUtilClient.query(query)
|
4502
|
+
)
|
4503
|
+
params = open_api_models.Params(
|
4504
|
+
action='ListConfig',
|
4505
|
+
version='2020-12-30',
|
4506
|
+
protocol='HTTPS',
|
4507
|
+
pathname=f'/configs',
|
4508
|
+
method='GET',
|
4509
|
+
auth_type='AK',
|
4510
|
+
style='ROA',
|
4511
|
+
req_body_type='json',
|
4512
|
+
body_type='json'
|
4513
|
+
)
|
4514
|
+
return TeaCore.from_map(
|
4515
|
+
sls_20201230_models.ListConfigResponse(),
|
4516
|
+
self.execute(params, req, runtime)
|
4517
|
+
)
|
4518
|
+
|
4519
|
+
async def list_config_with_options_async(
|
4520
|
+
self,
|
4521
|
+
project: str,
|
4522
|
+
request: sls_20201230_models.ListConfigRequest,
|
4523
|
+
headers: Dict[str, str],
|
4524
|
+
runtime: util_models.RuntimeOptions,
|
4525
|
+
) -> sls_20201230_models.ListConfigResponse:
|
4526
|
+
UtilClient.validate_model(request)
|
4527
|
+
host_map = {}
|
4528
|
+
host_map['project'] = project
|
4529
|
+
query = {}
|
4530
|
+
if not UtilClient.is_unset(request.config_name):
|
4531
|
+
query['configName'] = request.config_name
|
4532
|
+
if not UtilClient.is_unset(request.logstore_name):
|
4533
|
+
query['logstoreName'] = request.logstore_name
|
4534
|
+
if not UtilClient.is_unset(request.offset):
|
4535
|
+
query['offset'] = request.offset
|
4536
|
+
if not UtilClient.is_unset(request.size):
|
4537
|
+
query['size'] = request.size
|
4538
|
+
req = open_api_models.OpenApiRequest(
|
4539
|
+
host_map=host_map,
|
4540
|
+
headers=headers,
|
4541
|
+
query=OpenApiUtilClient.query(query)
|
4542
|
+
)
|
4543
|
+
params = open_api_models.Params(
|
4544
|
+
action='ListConfig',
|
4545
|
+
version='2020-12-30',
|
4546
|
+
protocol='HTTPS',
|
4547
|
+
pathname=f'/configs',
|
4548
|
+
method='GET',
|
4549
|
+
auth_type='AK',
|
4550
|
+
style='ROA',
|
4551
|
+
req_body_type='json',
|
4552
|
+
body_type='json'
|
4553
|
+
)
|
4554
|
+
return TeaCore.from_map(
|
4555
|
+
sls_20201230_models.ListConfigResponse(),
|
4556
|
+
await self.execute_async(params, req, runtime)
|
4557
|
+
)
|
4558
|
+
|
4559
|
+
def list_config(
|
4560
|
+
self,
|
4561
|
+
project: str,
|
4562
|
+
request: sls_20201230_models.ListConfigRequest,
|
4563
|
+
) -> sls_20201230_models.ListConfigResponse:
|
4564
|
+
runtime = util_models.RuntimeOptions()
|
4565
|
+
headers = {}
|
4566
|
+
return self.list_config_with_options(project, request, headers, runtime)
|
4567
|
+
|
4568
|
+
async def list_config_async(
|
4569
|
+
self,
|
4570
|
+
project: str,
|
4571
|
+
request: sls_20201230_models.ListConfigRequest,
|
4572
|
+
) -> sls_20201230_models.ListConfigResponse:
|
4573
|
+
runtime = util_models.RuntimeOptions()
|
4574
|
+
headers = {}
|
4575
|
+
return await self.list_config_with_options_async(project, request, headers, runtime)
|
4576
|
+
|
3865
4577
|
def list_consumer_group_with_options(
|
3866
4578
|
self,
|
3867
4579
|
project: str,
|
@@ -3938,6 +4650,96 @@ class Client(OpenApiClient):
|
|
3938
4650
|
headers = {}
|
3939
4651
|
return await self.list_consumer_group_with_options_async(project, logstore, headers, runtime)
|
3940
4652
|
|
4653
|
+
def list_dashboard_with_options(
|
4654
|
+
self,
|
4655
|
+
project: str,
|
4656
|
+
request: sls_20201230_models.ListDashboardRequest,
|
4657
|
+
headers: Dict[str, str],
|
4658
|
+
runtime: util_models.RuntimeOptions,
|
4659
|
+
) -> sls_20201230_models.ListDashboardResponse:
|
4660
|
+
UtilClient.validate_model(request)
|
4661
|
+
host_map = {}
|
4662
|
+
host_map['project'] = project
|
4663
|
+
query = {}
|
4664
|
+
if not UtilClient.is_unset(request.offset):
|
4665
|
+
query['offset'] = request.offset
|
4666
|
+
if not UtilClient.is_unset(request.size):
|
4667
|
+
query['size'] = request.size
|
4668
|
+
req = open_api_models.OpenApiRequest(
|
4669
|
+
host_map=host_map,
|
4670
|
+
headers=headers,
|
4671
|
+
query=OpenApiUtilClient.query(query)
|
4672
|
+
)
|
4673
|
+
params = open_api_models.Params(
|
4674
|
+
action='ListDashboard',
|
4675
|
+
version='2020-12-30',
|
4676
|
+
protocol='HTTPS',
|
4677
|
+
pathname=f'/dashboards',
|
4678
|
+
method='GET',
|
4679
|
+
auth_type='AK',
|
4680
|
+
style='ROA',
|
4681
|
+
req_body_type='json',
|
4682
|
+
body_type='json'
|
4683
|
+
)
|
4684
|
+
return TeaCore.from_map(
|
4685
|
+
sls_20201230_models.ListDashboardResponse(),
|
4686
|
+
self.execute(params, req, runtime)
|
4687
|
+
)
|
4688
|
+
|
4689
|
+
async def list_dashboard_with_options_async(
|
4690
|
+
self,
|
4691
|
+
project: str,
|
4692
|
+
request: sls_20201230_models.ListDashboardRequest,
|
4693
|
+
headers: Dict[str, str],
|
4694
|
+
runtime: util_models.RuntimeOptions,
|
4695
|
+
) -> sls_20201230_models.ListDashboardResponse:
|
4696
|
+
UtilClient.validate_model(request)
|
4697
|
+
host_map = {}
|
4698
|
+
host_map['project'] = project
|
4699
|
+
query = {}
|
4700
|
+
if not UtilClient.is_unset(request.offset):
|
4701
|
+
query['offset'] = request.offset
|
4702
|
+
if not UtilClient.is_unset(request.size):
|
4703
|
+
query['size'] = request.size
|
4704
|
+
req = open_api_models.OpenApiRequest(
|
4705
|
+
host_map=host_map,
|
4706
|
+
headers=headers,
|
4707
|
+
query=OpenApiUtilClient.query(query)
|
4708
|
+
)
|
4709
|
+
params = open_api_models.Params(
|
4710
|
+
action='ListDashboard',
|
4711
|
+
version='2020-12-30',
|
4712
|
+
protocol='HTTPS',
|
4713
|
+
pathname=f'/dashboards',
|
4714
|
+
method='GET',
|
4715
|
+
auth_type='AK',
|
4716
|
+
style='ROA',
|
4717
|
+
req_body_type='json',
|
4718
|
+
body_type='json'
|
4719
|
+
)
|
4720
|
+
return TeaCore.from_map(
|
4721
|
+
sls_20201230_models.ListDashboardResponse(),
|
4722
|
+
await self.execute_async(params, req, runtime)
|
4723
|
+
)
|
4724
|
+
|
4725
|
+
def list_dashboard(
|
4726
|
+
self,
|
4727
|
+
project: str,
|
4728
|
+
request: sls_20201230_models.ListDashboardRequest,
|
4729
|
+
) -> sls_20201230_models.ListDashboardResponse:
|
4730
|
+
runtime = util_models.RuntimeOptions()
|
4731
|
+
headers = {}
|
4732
|
+
return self.list_dashboard_with_options(project, request, headers, runtime)
|
4733
|
+
|
4734
|
+
async def list_dashboard_async(
|
4735
|
+
self,
|
4736
|
+
project: str,
|
4737
|
+
request: sls_20201230_models.ListDashboardRequest,
|
4738
|
+
) -> sls_20201230_models.ListDashboardResponse:
|
4739
|
+
runtime = util_models.RuntimeOptions()
|
4740
|
+
headers = {}
|
4741
|
+
return await self.list_dashboard_with_options_async(project, request, headers, runtime)
|
4742
|
+
|
3941
4743
|
def list_domains_with_options(
|
3942
4744
|
self,
|
3943
4745
|
project: str,
|
@@ -5476,6 +6278,90 @@ class Client(OpenApiClient):
|
|
5476
6278
|
headers = {}
|
5477
6279
|
return await self.untag_resources_with_options_async(request, headers, runtime)
|
5478
6280
|
|
6281
|
+
def update_config_with_options(
|
6282
|
+
self,
|
6283
|
+
project: str,
|
6284
|
+
config_name: str,
|
6285
|
+
request: sls_20201230_models.UpdateConfigRequest,
|
6286
|
+
headers: Dict[str, str],
|
6287
|
+
runtime: util_models.RuntimeOptions,
|
6288
|
+
) -> sls_20201230_models.UpdateConfigResponse:
|
6289
|
+
UtilClient.validate_model(request)
|
6290
|
+
host_map = {}
|
6291
|
+
host_map['project'] = project
|
6292
|
+
req = open_api_models.OpenApiRequest(
|
6293
|
+
host_map=host_map,
|
6294
|
+
headers=headers,
|
6295
|
+
body=OpenApiUtilClient.parse_to_map(request.body)
|
6296
|
+
)
|
6297
|
+
params = open_api_models.Params(
|
6298
|
+
action='UpdateConfig',
|
6299
|
+
version='2020-12-30',
|
6300
|
+
protocol='HTTPS',
|
6301
|
+
pathname=f'/configs/{config_name}',
|
6302
|
+
method='PUT',
|
6303
|
+
auth_type='AK',
|
6304
|
+
style='ROA',
|
6305
|
+
req_body_type='json',
|
6306
|
+
body_type='none'
|
6307
|
+
)
|
6308
|
+
return TeaCore.from_map(
|
6309
|
+
sls_20201230_models.UpdateConfigResponse(),
|
6310
|
+
self.execute(params, req, runtime)
|
6311
|
+
)
|
6312
|
+
|
6313
|
+
async def update_config_with_options_async(
|
6314
|
+
self,
|
6315
|
+
project: str,
|
6316
|
+
config_name: str,
|
6317
|
+
request: sls_20201230_models.UpdateConfigRequest,
|
6318
|
+
headers: Dict[str, str],
|
6319
|
+
runtime: util_models.RuntimeOptions,
|
6320
|
+
) -> sls_20201230_models.UpdateConfigResponse:
|
6321
|
+
UtilClient.validate_model(request)
|
6322
|
+
host_map = {}
|
6323
|
+
host_map['project'] = project
|
6324
|
+
req = open_api_models.OpenApiRequest(
|
6325
|
+
host_map=host_map,
|
6326
|
+
headers=headers,
|
6327
|
+
body=OpenApiUtilClient.parse_to_map(request.body)
|
6328
|
+
)
|
6329
|
+
params = open_api_models.Params(
|
6330
|
+
action='UpdateConfig',
|
6331
|
+
version='2020-12-30',
|
6332
|
+
protocol='HTTPS',
|
6333
|
+
pathname=f'/configs/{config_name}',
|
6334
|
+
method='PUT',
|
6335
|
+
auth_type='AK',
|
6336
|
+
style='ROA',
|
6337
|
+
req_body_type='json',
|
6338
|
+
body_type='none'
|
6339
|
+
)
|
6340
|
+
return TeaCore.from_map(
|
6341
|
+
sls_20201230_models.UpdateConfigResponse(),
|
6342
|
+
await self.execute_async(params, req, runtime)
|
6343
|
+
)
|
6344
|
+
|
6345
|
+
def update_config(
|
6346
|
+
self,
|
6347
|
+
project: str,
|
6348
|
+
config_name: str,
|
6349
|
+
request: sls_20201230_models.UpdateConfigRequest,
|
6350
|
+
) -> sls_20201230_models.UpdateConfigResponse:
|
6351
|
+
runtime = util_models.RuntimeOptions()
|
6352
|
+
headers = {}
|
6353
|
+
return self.update_config_with_options(project, config_name, request, headers, runtime)
|
6354
|
+
|
6355
|
+
async def update_config_async(
|
6356
|
+
self,
|
6357
|
+
project: str,
|
6358
|
+
config_name: str,
|
6359
|
+
request: sls_20201230_models.UpdateConfigRequest,
|
6360
|
+
) -> sls_20201230_models.UpdateConfigResponse:
|
6361
|
+
runtime = util_models.RuntimeOptions()
|
6362
|
+
headers = {}
|
6363
|
+
return await self.update_config_with_options_async(project, config_name, request, headers, runtime)
|
6364
|
+
|
5479
6365
|
def update_consumer_group_with_options(
|
5480
6366
|
self,
|
5481
6367
|
project: str,
|
@@ -5574,6 +6460,112 @@ class Client(OpenApiClient):
|
|
5574
6460
|
headers = {}
|
5575
6461
|
return await self.update_consumer_group_with_options_async(project, logstore, consumer_group, request, headers, runtime)
|
5576
6462
|
|
6463
|
+
def update_dashboard_with_options(
|
6464
|
+
self,
|
6465
|
+
project: str,
|
6466
|
+
dashboard_name: str,
|
6467
|
+
request: sls_20201230_models.UpdateDashboardRequest,
|
6468
|
+
headers: Dict[str, str],
|
6469
|
+
runtime: util_models.RuntimeOptions,
|
6470
|
+
) -> sls_20201230_models.UpdateDashboardResponse:
|
6471
|
+
UtilClient.validate_model(request)
|
6472
|
+
host_map = {}
|
6473
|
+
host_map['project'] = project
|
6474
|
+
body = {}
|
6475
|
+
if not UtilClient.is_unset(request.attribute):
|
6476
|
+
body['attribute'] = request.attribute
|
6477
|
+
if not UtilClient.is_unset(request.charts):
|
6478
|
+
body['charts'] = request.charts
|
6479
|
+
if not UtilClient.is_unset(request.dashboard_name):
|
6480
|
+
body['dashboardName'] = request.dashboard_name
|
6481
|
+
if not UtilClient.is_unset(request.description):
|
6482
|
+
body['description'] = request.description
|
6483
|
+
if not UtilClient.is_unset(request.display_name):
|
6484
|
+
body['displayName'] = request.display_name
|
6485
|
+
req = open_api_models.OpenApiRequest(
|
6486
|
+
host_map=host_map,
|
6487
|
+
headers=headers,
|
6488
|
+
body=OpenApiUtilClient.parse_to_map(body)
|
6489
|
+
)
|
6490
|
+
params = open_api_models.Params(
|
6491
|
+
action='UpdateDashboard',
|
6492
|
+
version='2020-12-30',
|
6493
|
+
protocol='HTTPS',
|
6494
|
+
pathname=f'/dashboards/{dashboard_name}',
|
6495
|
+
method='PUT',
|
6496
|
+
auth_type='AK',
|
6497
|
+
style='ROA',
|
6498
|
+
req_body_type='json',
|
6499
|
+
body_type='none'
|
6500
|
+
)
|
6501
|
+
return TeaCore.from_map(
|
6502
|
+
sls_20201230_models.UpdateDashboardResponse(),
|
6503
|
+
self.execute(params, req, runtime)
|
6504
|
+
)
|
6505
|
+
|
6506
|
+
async def update_dashboard_with_options_async(
|
6507
|
+
self,
|
6508
|
+
project: str,
|
6509
|
+
dashboard_name: str,
|
6510
|
+
request: sls_20201230_models.UpdateDashboardRequest,
|
6511
|
+
headers: Dict[str, str],
|
6512
|
+
runtime: util_models.RuntimeOptions,
|
6513
|
+
) -> sls_20201230_models.UpdateDashboardResponse:
|
6514
|
+
UtilClient.validate_model(request)
|
6515
|
+
host_map = {}
|
6516
|
+
host_map['project'] = project
|
6517
|
+
body = {}
|
6518
|
+
if not UtilClient.is_unset(request.attribute):
|
6519
|
+
body['attribute'] = request.attribute
|
6520
|
+
if not UtilClient.is_unset(request.charts):
|
6521
|
+
body['charts'] = request.charts
|
6522
|
+
if not UtilClient.is_unset(request.dashboard_name):
|
6523
|
+
body['dashboardName'] = request.dashboard_name
|
6524
|
+
if not UtilClient.is_unset(request.description):
|
6525
|
+
body['description'] = request.description
|
6526
|
+
if not UtilClient.is_unset(request.display_name):
|
6527
|
+
body['displayName'] = request.display_name
|
6528
|
+
req = open_api_models.OpenApiRequest(
|
6529
|
+
host_map=host_map,
|
6530
|
+
headers=headers,
|
6531
|
+
body=OpenApiUtilClient.parse_to_map(body)
|
6532
|
+
)
|
6533
|
+
params = open_api_models.Params(
|
6534
|
+
action='UpdateDashboard',
|
6535
|
+
version='2020-12-30',
|
6536
|
+
protocol='HTTPS',
|
6537
|
+
pathname=f'/dashboards/{dashboard_name}',
|
6538
|
+
method='PUT',
|
6539
|
+
auth_type='AK',
|
6540
|
+
style='ROA',
|
6541
|
+
req_body_type='json',
|
6542
|
+
body_type='none'
|
6543
|
+
)
|
6544
|
+
return TeaCore.from_map(
|
6545
|
+
sls_20201230_models.UpdateDashboardResponse(),
|
6546
|
+
await self.execute_async(params, req, runtime)
|
6547
|
+
)
|
6548
|
+
|
6549
|
+
def update_dashboard(
|
6550
|
+
self,
|
6551
|
+
project: str,
|
6552
|
+
dashboard_name: str,
|
6553
|
+
request: sls_20201230_models.UpdateDashboardRequest,
|
6554
|
+
) -> sls_20201230_models.UpdateDashboardResponse:
|
6555
|
+
runtime = util_models.RuntimeOptions()
|
6556
|
+
headers = {}
|
6557
|
+
return self.update_dashboard_with_options(project, dashboard_name, request, headers, runtime)
|
6558
|
+
|
6559
|
+
async def update_dashboard_async(
|
6560
|
+
self,
|
6561
|
+
project: str,
|
6562
|
+
dashboard_name: str,
|
6563
|
+
request: sls_20201230_models.UpdateDashboardRequest,
|
6564
|
+
) -> sls_20201230_models.UpdateDashboardResponse:
|
6565
|
+
runtime = util_models.RuntimeOptions()
|
6566
|
+
headers = {}
|
6567
|
+
return await self.update_dashboard_with_options_async(project, dashboard_name, request, headers, runtime)
|
6568
|
+
|
5577
6569
|
def update_index_with_options(
|
5578
6570
|
self,
|
5579
6571
|
project: str,
|