alibabacloud-sls20201230 5.5.0__tar.gz → 5.6.0__tar.gz
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-5.5.0 → alibabacloud_sls20201230-5.6.0}/ChangeLog.md +25 -0
- {alibabacloud_sls20201230-5.5.0 → alibabacloud_sls20201230-5.6.0}/PKG-INFO +1 -1
- alibabacloud_sls20201230-5.6.0/alibabacloud_sls20201230/__init__.py +1 -0
- {alibabacloud_sls20201230-5.5.0 → alibabacloud_sls20201230-5.6.0}/alibabacloud_sls20201230/client.py +538 -1
- {alibabacloud_sls20201230-5.5.0 → alibabacloud_sls20201230-5.6.0}/alibabacloud_sls20201230/models.py +451 -0
- {alibabacloud_sls20201230-5.5.0 → alibabacloud_sls20201230-5.6.0}/alibabacloud_sls20201230.egg-info/PKG-INFO +1 -1
- {alibabacloud_sls20201230-5.5.0 → alibabacloud_sls20201230-5.6.0}/setup.py +1 -1
- alibabacloud_sls20201230-5.5.0/alibabacloud_sls20201230/__init__.py +0 -1
- {alibabacloud_sls20201230-5.5.0 → alibabacloud_sls20201230-5.6.0}/LICENSE +0 -0
- {alibabacloud_sls20201230-5.5.0 → alibabacloud_sls20201230-5.6.0}/MANIFEST.in +0 -0
- {alibabacloud_sls20201230-5.5.0 → alibabacloud_sls20201230-5.6.0}/README-CN.md +0 -0
- {alibabacloud_sls20201230-5.5.0 → alibabacloud_sls20201230-5.6.0}/README.md +0 -0
- {alibabacloud_sls20201230-5.5.0 → alibabacloud_sls20201230-5.6.0}/alibabacloud_sls20201230.egg-info/SOURCES.txt +0 -0
- {alibabacloud_sls20201230-5.5.0 → alibabacloud_sls20201230-5.6.0}/alibabacloud_sls20201230.egg-info/dependency_links.txt +0 -0
- {alibabacloud_sls20201230-5.5.0 → alibabacloud_sls20201230-5.6.0}/alibabacloud_sls20201230.egg-info/requires.txt +0 -0
- {alibabacloud_sls20201230-5.5.0 → alibabacloud_sls20201230-5.6.0}/alibabacloud_sls20201230.egg-info/top_level.txt +0 -0
- {alibabacloud_sls20201230-5.5.0 → alibabacloud_sls20201230-5.6.0}/setup.cfg +0 -0
@@ -1,3 +1,28 @@
|
|
1
|
+
2024-12-04 Version: 5.5.1
|
2
|
+
- Update API GetDownloadJob: update response param.
|
3
|
+
- Update API ListDownloadJobs: update response param.
|
4
|
+
|
5
|
+
|
6
|
+
2024-11-21 Version: 5.5.0
|
7
|
+
- Support API DescribeRegions.
|
8
|
+
- Support API PullLogs.
|
9
|
+
- Support API PutLogs.
|
10
|
+
- Support API UpdateLogStoreEncryption.
|
11
|
+
- Update API CreateMetricStore: update param project.
|
12
|
+
- Update API CreateMetricStore: update param body.
|
13
|
+
- Update API CreateSavedSearch: update param body.
|
14
|
+
- Update API GetLogsV2: update response param.
|
15
|
+
- Update API GetMetricStore: update param project.
|
16
|
+
- Update API GetMetricStoreMeteringMode: update param project.
|
17
|
+
- Update API GetMetricStoreMeteringMode: update response param.
|
18
|
+
- Update API ListMetricStores: update param project.
|
19
|
+
- Update API ListMetricStores: update response param.
|
20
|
+
- Update API UpdateLogStore: update param body.
|
21
|
+
- Update API UpdateMetricStore: update param project.
|
22
|
+
- Update API UpdateMetricStore: update param body.
|
23
|
+
- Update API UpdateMetricStoreMeteringMode: update param project.
|
24
|
+
|
25
|
+
|
1
26
|
2024-09-02 Version: 5.4.1
|
2
27
|
- Update API CreateIndex: update param body.
|
3
28
|
- Update API GetIndex: update response param.
|
@@ -0,0 +1 @@
|
|
1
|
+
__version__ = '5.6.0'
|
{alibabacloud_sls20201230-5.5.0 → alibabacloud_sls20201230-5.6.0}/alibabacloud_sls20201230/client.py
RENAMED
@@ -23,7 +23,6 @@ class Client(OpenApiClient):
|
|
23
23
|
super().__init__(config)
|
24
24
|
gateway_client = GatewayClientClient()
|
25
25
|
self._spi = gateway_client
|
26
|
-
self._signature_algorithm = 'v2'
|
27
26
|
self._endpoint_rule = 'central'
|
28
27
|
|
29
28
|
def apply_config_to_machine_group_with_options(
|
@@ -598,6 +597,122 @@ class Client(OpenApiClient):
|
|
598
597
|
headers = {}
|
599
598
|
return await self.consumer_group_update_check_point_with_options_async(project, logstore, consumer_group, request, headers, runtime)
|
600
599
|
|
600
|
+
def create_agent_instance_config_with_options(
|
601
|
+
self,
|
602
|
+
request: sls_20201230_models.CreateAgentInstanceConfigRequest,
|
603
|
+
headers: Dict[str, str],
|
604
|
+
runtime: util_models.RuntimeOptions,
|
605
|
+
) -> sls_20201230_models.CreateAgentInstanceConfigResponse:
|
606
|
+
"""
|
607
|
+
@summary CreateAgentInstanceConfig
|
608
|
+
|
609
|
+
@param request: CreateAgentInstanceConfigRequest
|
610
|
+
@param headers: map
|
611
|
+
@param runtime: runtime options for this request RuntimeOptions
|
612
|
+
@return: CreateAgentInstanceConfigResponse
|
613
|
+
"""
|
614
|
+
UtilClient.validate_model(request)
|
615
|
+
body = {}
|
616
|
+
if not UtilClient.is_unset(request.config):
|
617
|
+
body['config'] = request.config
|
618
|
+
if not UtilClient.is_unset(request.config_matcher):
|
619
|
+
body['configMatcher'] = request.config_matcher
|
620
|
+
if not UtilClient.is_unset(request.config_name):
|
621
|
+
body['configName'] = request.config_name
|
622
|
+
if not UtilClient.is_unset(request.is_gray):
|
623
|
+
body['isGray'] = request.is_gray
|
624
|
+
req = open_api_models.OpenApiRequest(
|
625
|
+
headers=headers,
|
626
|
+
body=OpenApiUtilClient.parse_to_map(body)
|
627
|
+
)
|
628
|
+
params = open_api_models.Params(
|
629
|
+
action='CreateAgentInstanceConfig',
|
630
|
+
version='2020-12-30',
|
631
|
+
protocol='HTTPS',
|
632
|
+
pathname=f'/agentinstanceconfigs',
|
633
|
+
method='POST',
|
634
|
+
auth_type='AK',
|
635
|
+
style='ROA',
|
636
|
+
req_body_type='json',
|
637
|
+
body_type='none'
|
638
|
+
)
|
639
|
+
return TeaCore.from_map(
|
640
|
+
sls_20201230_models.CreateAgentInstanceConfigResponse(),
|
641
|
+
self.execute(params, req, runtime)
|
642
|
+
)
|
643
|
+
|
644
|
+
async def create_agent_instance_config_with_options_async(
|
645
|
+
self,
|
646
|
+
request: sls_20201230_models.CreateAgentInstanceConfigRequest,
|
647
|
+
headers: Dict[str, str],
|
648
|
+
runtime: util_models.RuntimeOptions,
|
649
|
+
) -> sls_20201230_models.CreateAgentInstanceConfigResponse:
|
650
|
+
"""
|
651
|
+
@summary CreateAgentInstanceConfig
|
652
|
+
|
653
|
+
@param request: CreateAgentInstanceConfigRequest
|
654
|
+
@param headers: map
|
655
|
+
@param runtime: runtime options for this request RuntimeOptions
|
656
|
+
@return: CreateAgentInstanceConfigResponse
|
657
|
+
"""
|
658
|
+
UtilClient.validate_model(request)
|
659
|
+
body = {}
|
660
|
+
if not UtilClient.is_unset(request.config):
|
661
|
+
body['config'] = request.config
|
662
|
+
if not UtilClient.is_unset(request.config_matcher):
|
663
|
+
body['configMatcher'] = request.config_matcher
|
664
|
+
if not UtilClient.is_unset(request.config_name):
|
665
|
+
body['configName'] = request.config_name
|
666
|
+
if not UtilClient.is_unset(request.is_gray):
|
667
|
+
body['isGray'] = request.is_gray
|
668
|
+
req = open_api_models.OpenApiRequest(
|
669
|
+
headers=headers,
|
670
|
+
body=OpenApiUtilClient.parse_to_map(body)
|
671
|
+
)
|
672
|
+
params = open_api_models.Params(
|
673
|
+
action='CreateAgentInstanceConfig',
|
674
|
+
version='2020-12-30',
|
675
|
+
protocol='HTTPS',
|
676
|
+
pathname=f'/agentinstanceconfigs',
|
677
|
+
method='POST',
|
678
|
+
auth_type='AK',
|
679
|
+
style='ROA',
|
680
|
+
req_body_type='json',
|
681
|
+
body_type='none'
|
682
|
+
)
|
683
|
+
return TeaCore.from_map(
|
684
|
+
sls_20201230_models.CreateAgentInstanceConfigResponse(),
|
685
|
+
await self.execute_async(params, req, runtime)
|
686
|
+
)
|
687
|
+
|
688
|
+
def create_agent_instance_config(
|
689
|
+
self,
|
690
|
+
request: sls_20201230_models.CreateAgentInstanceConfigRequest,
|
691
|
+
) -> sls_20201230_models.CreateAgentInstanceConfigResponse:
|
692
|
+
"""
|
693
|
+
@summary CreateAgentInstanceConfig
|
694
|
+
|
695
|
+
@param request: CreateAgentInstanceConfigRequest
|
696
|
+
@return: CreateAgentInstanceConfigResponse
|
697
|
+
"""
|
698
|
+
runtime = util_models.RuntimeOptions()
|
699
|
+
headers = {}
|
700
|
+
return self.create_agent_instance_config_with_options(request, headers, runtime)
|
701
|
+
|
702
|
+
async def create_agent_instance_config_async(
|
703
|
+
self,
|
704
|
+
request: sls_20201230_models.CreateAgentInstanceConfigRequest,
|
705
|
+
) -> sls_20201230_models.CreateAgentInstanceConfigResponse:
|
706
|
+
"""
|
707
|
+
@summary CreateAgentInstanceConfig
|
708
|
+
|
709
|
+
@param request: CreateAgentInstanceConfigRequest
|
710
|
+
@return: CreateAgentInstanceConfigResponse
|
711
|
+
"""
|
712
|
+
runtime = util_models.RuntimeOptions()
|
713
|
+
headers = {}
|
714
|
+
return await self.create_agent_instance_config_with_options_async(request, headers, runtime)
|
715
|
+
|
601
716
|
def create_alert_with_options(
|
602
717
|
self,
|
603
718
|
project: str,
|
@@ -4064,6 +4179,114 @@ class Client(OpenApiClient):
|
|
4064
4179
|
headers = {}
|
4065
4180
|
return await self.create_ticket_with_options_async(request, headers, runtime)
|
4066
4181
|
|
4182
|
+
def delete_agent_instance_config_with_options(
|
4183
|
+
self,
|
4184
|
+
config_name: str,
|
4185
|
+
request: sls_20201230_models.DeleteAgentInstanceConfigRequest,
|
4186
|
+
headers: Dict[str, str],
|
4187
|
+
runtime: util_models.RuntimeOptions,
|
4188
|
+
) -> sls_20201230_models.DeleteAgentInstanceConfigResponse:
|
4189
|
+
"""
|
4190
|
+
@summary DeleteAgentInstanceConfig
|
4191
|
+
|
4192
|
+
@param request: DeleteAgentInstanceConfigRequest
|
4193
|
+
@param headers: map
|
4194
|
+
@param runtime: runtime options for this request RuntimeOptions
|
4195
|
+
@return: DeleteAgentInstanceConfigResponse
|
4196
|
+
"""
|
4197
|
+
UtilClient.validate_model(request)
|
4198
|
+
query = {}
|
4199
|
+
if not UtilClient.is_unset(request.is_gray):
|
4200
|
+
query['isGray'] = request.is_gray
|
4201
|
+
req = open_api_models.OpenApiRequest(
|
4202
|
+
headers=headers,
|
4203
|
+
query=OpenApiUtilClient.query(query)
|
4204
|
+
)
|
4205
|
+
params = open_api_models.Params(
|
4206
|
+
action='DeleteAgentInstanceConfig',
|
4207
|
+
version='2020-12-30',
|
4208
|
+
protocol='HTTPS',
|
4209
|
+
pathname=f'/agentinstanceconfigs/{config_name}',
|
4210
|
+
method='DELETE',
|
4211
|
+
auth_type='AK',
|
4212
|
+
style='ROA',
|
4213
|
+
req_body_type='json',
|
4214
|
+
body_type='none'
|
4215
|
+
)
|
4216
|
+
return TeaCore.from_map(
|
4217
|
+
sls_20201230_models.DeleteAgentInstanceConfigResponse(),
|
4218
|
+
self.execute(params, req, runtime)
|
4219
|
+
)
|
4220
|
+
|
4221
|
+
async def delete_agent_instance_config_with_options_async(
|
4222
|
+
self,
|
4223
|
+
config_name: str,
|
4224
|
+
request: sls_20201230_models.DeleteAgentInstanceConfigRequest,
|
4225
|
+
headers: Dict[str, str],
|
4226
|
+
runtime: util_models.RuntimeOptions,
|
4227
|
+
) -> sls_20201230_models.DeleteAgentInstanceConfigResponse:
|
4228
|
+
"""
|
4229
|
+
@summary DeleteAgentInstanceConfig
|
4230
|
+
|
4231
|
+
@param request: DeleteAgentInstanceConfigRequest
|
4232
|
+
@param headers: map
|
4233
|
+
@param runtime: runtime options for this request RuntimeOptions
|
4234
|
+
@return: DeleteAgentInstanceConfigResponse
|
4235
|
+
"""
|
4236
|
+
UtilClient.validate_model(request)
|
4237
|
+
query = {}
|
4238
|
+
if not UtilClient.is_unset(request.is_gray):
|
4239
|
+
query['isGray'] = request.is_gray
|
4240
|
+
req = open_api_models.OpenApiRequest(
|
4241
|
+
headers=headers,
|
4242
|
+
query=OpenApiUtilClient.query(query)
|
4243
|
+
)
|
4244
|
+
params = open_api_models.Params(
|
4245
|
+
action='DeleteAgentInstanceConfig',
|
4246
|
+
version='2020-12-30',
|
4247
|
+
protocol='HTTPS',
|
4248
|
+
pathname=f'/agentinstanceconfigs/{config_name}',
|
4249
|
+
method='DELETE',
|
4250
|
+
auth_type='AK',
|
4251
|
+
style='ROA',
|
4252
|
+
req_body_type='json',
|
4253
|
+
body_type='none'
|
4254
|
+
)
|
4255
|
+
return TeaCore.from_map(
|
4256
|
+
sls_20201230_models.DeleteAgentInstanceConfigResponse(),
|
4257
|
+
await self.execute_async(params, req, runtime)
|
4258
|
+
)
|
4259
|
+
|
4260
|
+
def delete_agent_instance_config(
|
4261
|
+
self,
|
4262
|
+
config_name: str,
|
4263
|
+
request: sls_20201230_models.DeleteAgentInstanceConfigRequest,
|
4264
|
+
) -> sls_20201230_models.DeleteAgentInstanceConfigResponse:
|
4265
|
+
"""
|
4266
|
+
@summary DeleteAgentInstanceConfig
|
4267
|
+
|
4268
|
+
@param request: DeleteAgentInstanceConfigRequest
|
4269
|
+
@return: DeleteAgentInstanceConfigResponse
|
4270
|
+
"""
|
4271
|
+
runtime = util_models.RuntimeOptions()
|
4272
|
+
headers = {}
|
4273
|
+
return self.delete_agent_instance_config_with_options(config_name, request, headers, runtime)
|
4274
|
+
|
4275
|
+
async def delete_agent_instance_config_async(
|
4276
|
+
self,
|
4277
|
+
config_name: str,
|
4278
|
+
request: sls_20201230_models.DeleteAgentInstanceConfigRequest,
|
4279
|
+
) -> sls_20201230_models.DeleteAgentInstanceConfigResponse:
|
4280
|
+
"""
|
4281
|
+
@summary DeleteAgentInstanceConfig
|
4282
|
+
|
4283
|
+
@param request: DeleteAgentInstanceConfigRequest
|
4284
|
+
@return: DeleteAgentInstanceConfigResponse
|
4285
|
+
"""
|
4286
|
+
runtime = util_models.RuntimeOptions()
|
4287
|
+
headers = {}
|
4288
|
+
return await self.delete_agent_instance_config_with_options_async(config_name, request, headers, runtime)
|
4289
|
+
|
4067
4290
|
def delete_alert_with_options(
|
4068
4291
|
self,
|
4069
4292
|
project: str,
|
@@ -7486,6 +7709,96 @@ class Client(OpenApiClient):
|
|
7486
7709
|
headers = {}
|
7487
7710
|
return await self.enable_scheduled_sqlwith_options_async(project, scheduled_sqlname, headers, runtime)
|
7488
7711
|
|
7712
|
+
def get_agent_instance_config_with_options(
|
7713
|
+
self,
|
7714
|
+
config_name: str,
|
7715
|
+
headers: Dict[str, str],
|
7716
|
+
runtime: util_models.RuntimeOptions,
|
7717
|
+
) -> sls_20201230_models.GetAgentInstanceConfigResponse:
|
7718
|
+
"""
|
7719
|
+
@summary GetAgentInstanceConfig
|
7720
|
+
|
7721
|
+
@param headers: map
|
7722
|
+
@param runtime: runtime options for this request RuntimeOptions
|
7723
|
+
@return: GetAgentInstanceConfigResponse
|
7724
|
+
"""
|
7725
|
+
req = open_api_models.OpenApiRequest(
|
7726
|
+
headers=headers
|
7727
|
+
)
|
7728
|
+
params = open_api_models.Params(
|
7729
|
+
action='GetAgentInstanceConfig',
|
7730
|
+
version='2020-12-30',
|
7731
|
+
protocol='HTTPS',
|
7732
|
+
pathname=f'/agentinstanceconfigs/{config_name}',
|
7733
|
+
method='GET',
|
7734
|
+
auth_type='AK',
|
7735
|
+
style='ROA',
|
7736
|
+
req_body_type='json',
|
7737
|
+
body_type='json'
|
7738
|
+
)
|
7739
|
+
return TeaCore.from_map(
|
7740
|
+
sls_20201230_models.GetAgentInstanceConfigResponse(),
|
7741
|
+
self.execute(params, req, runtime)
|
7742
|
+
)
|
7743
|
+
|
7744
|
+
async def get_agent_instance_config_with_options_async(
|
7745
|
+
self,
|
7746
|
+
config_name: str,
|
7747
|
+
headers: Dict[str, str],
|
7748
|
+
runtime: util_models.RuntimeOptions,
|
7749
|
+
) -> sls_20201230_models.GetAgentInstanceConfigResponse:
|
7750
|
+
"""
|
7751
|
+
@summary GetAgentInstanceConfig
|
7752
|
+
|
7753
|
+
@param headers: map
|
7754
|
+
@param runtime: runtime options for this request RuntimeOptions
|
7755
|
+
@return: GetAgentInstanceConfigResponse
|
7756
|
+
"""
|
7757
|
+
req = open_api_models.OpenApiRequest(
|
7758
|
+
headers=headers
|
7759
|
+
)
|
7760
|
+
params = open_api_models.Params(
|
7761
|
+
action='GetAgentInstanceConfig',
|
7762
|
+
version='2020-12-30',
|
7763
|
+
protocol='HTTPS',
|
7764
|
+
pathname=f'/agentinstanceconfigs/{config_name}',
|
7765
|
+
method='GET',
|
7766
|
+
auth_type='AK',
|
7767
|
+
style='ROA',
|
7768
|
+
req_body_type='json',
|
7769
|
+
body_type='json'
|
7770
|
+
)
|
7771
|
+
return TeaCore.from_map(
|
7772
|
+
sls_20201230_models.GetAgentInstanceConfigResponse(),
|
7773
|
+
await self.execute_async(params, req, runtime)
|
7774
|
+
)
|
7775
|
+
|
7776
|
+
def get_agent_instance_config(
|
7777
|
+
self,
|
7778
|
+
config_name: str,
|
7779
|
+
) -> sls_20201230_models.GetAgentInstanceConfigResponse:
|
7780
|
+
"""
|
7781
|
+
@summary GetAgentInstanceConfig
|
7782
|
+
|
7783
|
+
@return: GetAgentInstanceConfigResponse
|
7784
|
+
"""
|
7785
|
+
runtime = util_models.RuntimeOptions()
|
7786
|
+
headers = {}
|
7787
|
+
return self.get_agent_instance_config_with_options(config_name, headers, runtime)
|
7788
|
+
|
7789
|
+
async def get_agent_instance_config_async(
|
7790
|
+
self,
|
7791
|
+
config_name: str,
|
7792
|
+
) -> sls_20201230_models.GetAgentInstanceConfigResponse:
|
7793
|
+
"""
|
7794
|
+
@summary GetAgentInstanceConfig
|
7795
|
+
|
7796
|
+
@return: GetAgentInstanceConfigResponse
|
7797
|
+
"""
|
7798
|
+
runtime = util_models.RuntimeOptions()
|
7799
|
+
headers = {}
|
7800
|
+
return await self.get_agent_instance_config_with_options_async(config_name, headers, runtime)
|
7801
|
+
|
7489
7802
|
def get_alert_with_options(
|
7490
7803
|
self,
|
7491
7804
|
project: str,
|
@@ -12254,6 +12567,114 @@ class Client(OpenApiClient):
|
|
12254
12567
|
headers = {}
|
12255
12568
|
return await self.get_store_view_index_with_options_async(project, name, headers, runtime)
|
12256
12569
|
|
12570
|
+
def list_agent_instance_configs_with_options(
|
12571
|
+
self,
|
12572
|
+
request: sls_20201230_models.ListAgentInstanceConfigsRequest,
|
12573
|
+
headers: Dict[str, str],
|
12574
|
+
runtime: util_models.RuntimeOptions,
|
12575
|
+
) -> sls_20201230_models.ListAgentInstanceConfigsResponse:
|
12576
|
+
"""
|
12577
|
+
@summary ListAgentInstanceConfigs
|
12578
|
+
|
12579
|
+
@param request: ListAgentInstanceConfigsRequest
|
12580
|
+
@param headers: map
|
12581
|
+
@param runtime: runtime options for this request RuntimeOptions
|
12582
|
+
@return: ListAgentInstanceConfigsResponse
|
12583
|
+
"""
|
12584
|
+
UtilClient.validate_model(request)
|
12585
|
+
query = {}
|
12586
|
+
if not UtilClient.is_unset(request.offset):
|
12587
|
+
query['offset'] = request.offset
|
12588
|
+
if not UtilClient.is_unset(request.size):
|
12589
|
+
query['size'] = request.size
|
12590
|
+
req = open_api_models.OpenApiRequest(
|
12591
|
+
headers=headers,
|
12592
|
+
query=OpenApiUtilClient.query(query)
|
12593
|
+
)
|
12594
|
+
params = open_api_models.Params(
|
12595
|
+
action='ListAgentInstanceConfigs',
|
12596
|
+
version='2020-12-30',
|
12597
|
+
protocol='HTTPS',
|
12598
|
+
pathname=f'/agentinstanceconfigs',
|
12599
|
+
method='GET',
|
12600
|
+
auth_type='AK',
|
12601
|
+
style='ROA',
|
12602
|
+
req_body_type='json',
|
12603
|
+
body_type='json'
|
12604
|
+
)
|
12605
|
+
return TeaCore.from_map(
|
12606
|
+
sls_20201230_models.ListAgentInstanceConfigsResponse(),
|
12607
|
+
self.execute(params, req, runtime)
|
12608
|
+
)
|
12609
|
+
|
12610
|
+
async def list_agent_instance_configs_with_options_async(
|
12611
|
+
self,
|
12612
|
+
request: sls_20201230_models.ListAgentInstanceConfigsRequest,
|
12613
|
+
headers: Dict[str, str],
|
12614
|
+
runtime: util_models.RuntimeOptions,
|
12615
|
+
) -> sls_20201230_models.ListAgentInstanceConfigsResponse:
|
12616
|
+
"""
|
12617
|
+
@summary ListAgentInstanceConfigs
|
12618
|
+
|
12619
|
+
@param request: ListAgentInstanceConfigsRequest
|
12620
|
+
@param headers: map
|
12621
|
+
@param runtime: runtime options for this request RuntimeOptions
|
12622
|
+
@return: ListAgentInstanceConfigsResponse
|
12623
|
+
"""
|
12624
|
+
UtilClient.validate_model(request)
|
12625
|
+
query = {}
|
12626
|
+
if not UtilClient.is_unset(request.offset):
|
12627
|
+
query['offset'] = request.offset
|
12628
|
+
if not UtilClient.is_unset(request.size):
|
12629
|
+
query['size'] = request.size
|
12630
|
+
req = open_api_models.OpenApiRequest(
|
12631
|
+
headers=headers,
|
12632
|
+
query=OpenApiUtilClient.query(query)
|
12633
|
+
)
|
12634
|
+
params = open_api_models.Params(
|
12635
|
+
action='ListAgentInstanceConfigs',
|
12636
|
+
version='2020-12-30',
|
12637
|
+
protocol='HTTPS',
|
12638
|
+
pathname=f'/agentinstanceconfigs',
|
12639
|
+
method='GET',
|
12640
|
+
auth_type='AK',
|
12641
|
+
style='ROA',
|
12642
|
+
req_body_type='json',
|
12643
|
+
body_type='json'
|
12644
|
+
)
|
12645
|
+
return TeaCore.from_map(
|
12646
|
+
sls_20201230_models.ListAgentInstanceConfigsResponse(),
|
12647
|
+
await self.execute_async(params, req, runtime)
|
12648
|
+
)
|
12649
|
+
|
12650
|
+
def list_agent_instance_configs(
|
12651
|
+
self,
|
12652
|
+
request: sls_20201230_models.ListAgentInstanceConfigsRequest,
|
12653
|
+
) -> sls_20201230_models.ListAgentInstanceConfigsResponse:
|
12654
|
+
"""
|
12655
|
+
@summary ListAgentInstanceConfigs
|
12656
|
+
|
12657
|
+
@param request: ListAgentInstanceConfigsRequest
|
12658
|
+
@return: ListAgentInstanceConfigsResponse
|
12659
|
+
"""
|
12660
|
+
runtime = util_models.RuntimeOptions()
|
12661
|
+
headers = {}
|
12662
|
+
return self.list_agent_instance_configs_with_options(request, headers, runtime)
|
12663
|
+
|
12664
|
+
async def list_agent_instance_configs_async(
|
12665
|
+
self,
|
12666
|
+
request: sls_20201230_models.ListAgentInstanceConfigsRequest,
|
12667
|
+
) -> sls_20201230_models.ListAgentInstanceConfigsResponse:
|
12668
|
+
"""
|
12669
|
+
@summary ListAgentInstanceConfigs
|
12670
|
+
|
12671
|
+
@param request: ListAgentInstanceConfigsRequest
|
12672
|
+
@return: ListAgentInstanceConfigsResponse
|
12673
|
+
"""
|
12674
|
+
runtime = util_models.RuntimeOptions()
|
12675
|
+
headers = {}
|
12676
|
+
return await self.list_agent_instance_configs_with_options_async(request, headers, runtime)
|
12677
|
+
|
12257
12678
|
def list_alerts_with_options(
|
12258
12679
|
self,
|
12259
12680
|
project: str,
|
@@ -17996,6 +18417,122 @@ class Client(OpenApiClient):
|
|
17996
18417
|
headers = {}
|
17997
18418
|
return await self.untag_resources_with_options_async(request, headers, runtime)
|
17998
18419
|
|
18420
|
+
def update_agent_instance_config_with_options(
|
18421
|
+
self,
|
18422
|
+
config_name: str,
|
18423
|
+
request: sls_20201230_models.UpdateAgentInstanceConfigRequest,
|
18424
|
+
headers: Dict[str, str],
|
18425
|
+
runtime: util_models.RuntimeOptions,
|
18426
|
+
) -> sls_20201230_models.UpdateAgentInstanceConfigResponse:
|
18427
|
+
"""
|
18428
|
+
@summary UpdateAgentInstanceConfig
|
18429
|
+
|
18430
|
+
@param request: UpdateAgentInstanceConfigRequest
|
18431
|
+
@param headers: map
|
18432
|
+
@param runtime: runtime options for this request RuntimeOptions
|
18433
|
+
@return: UpdateAgentInstanceConfigResponse
|
18434
|
+
"""
|
18435
|
+
UtilClient.validate_model(request)
|
18436
|
+
body = {}
|
18437
|
+
if not UtilClient.is_unset(request.config):
|
18438
|
+
body['config'] = request.config
|
18439
|
+
if not UtilClient.is_unset(request.config_matcher):
|
18440
|
+
body['configMatcher'] = request.config_matcher
|
18441
|
+
if not UtilClient.is_unset(request.is_gray):
|
18442
|
+
body['isGray'] = request.is_gray
|
18443
|
+
req = open_api_models.OpenApiRequest(
|
18444
|
+
headers=headers,
|
18445
|
+
body=OpenApiUtilClient.parse_to_map(body)
|
18446
|
+
)
|
18447
|
+
params = open_api_models.Params(
|
18448
|
+
action='UpdateAgentInstanceConfig',
|
18449
|
+
version='2020-12-30',
|
18450
|
+
protocol='HTTPS',
|
18451
|
+
pathname=f'/agentinstanceconfigs/{config_name}',
|
18452
|
+
method='PUT',
|
18453
|
+
auth_type='AK',
|
18454
|
+
style='ROA',
|
18455
|
+
req_body_type='json',
|
18456
|
+
body_type='none'
|
18457
|
+
)
|
18458
|
+
return TeaCore.from_map(
|
18459
|
+
sls_20201230_models.UpdateAgentInstanceConfigResponse(),
|
18460
|
+
self.execute(params, req, runtime)
|
18461
|
+
)
|
18462
|
+
|
18463
|
+
async def update_agent_instance_config_with_options_async(
|
18464
|
+
self,
|
18465
|
+
config_name: str,
|
18466
|
+
request: sls_20201230_models.UpdateAgentInstanceConfigRequest,
|
18467
|
+
headers: Dict[str, str],
|
18468
|
+
runtime: util_models.RuntimeOptions,
|
18469
|
+
) -> sls_20201230_models.UpdateAgentInstanceConfigResponse:
|
18470
|
+
"""
|
18471
|
+
@summary UpdateAgentInstanceConfig
|
18472
|
+
|
18473
|
+
@param request: UpdateAgentInstanceConfigRequest
|
18474
|
+
@param headers: map
|
18475
|
+
@param runtime: runtime options for this request RuntimeOptions
|
18476
|
+
@return: UpdateAgentInstanceConfigResponse
|
18477
|
+
"""
|
18478
|
+
UtilClient.validate_model(request)
|
18479
|
+
body = {}
|
18480
|
+
if not UtilClient.is_unset(request.config):
|
18481
|
+
body['config'] = request.config
|
18482
|
+
if not UtilClient.is_unset(request.config_matcher):
|
18483
|
+
body['configMatcher'] = request.config_matcher
|
18484
|
+
if not UtilClient.is_unset(request.is_gray):
|
18485
|
+
body['isGray'] = request.is_gray
|
18486
|
+
req = open_api_models.OpenApiRequest(
|
18487
|
+
headers=headers,
|
18488
|
+
body=OpenApiUtilClient.parse_to_map(body)
|
18489
|
+
)
|
18490
|
+
params = open_api_models.Params(
|
18491
|
+
action='UpdateAgentInstanceConfig',
|
18492
|
+
version='2020-12-30',
|
18493
|
+
protocol='HTTPS',
|
18494
|
+
pathname=f'/agentinstanceconfigs/{config_name}',
|
18495
|
+
method='PUT',
|
18496
|
+
auth_type='AK',
|
18497
|
+
style='ROA',
|
18498
|
+
req_body_type='json',
|
18499
|
+
body_type='none'
|
18500
|
+
)
|
18501
|
+
return TeaCore.from_map(
|
18502
|
+
sls_20201230_models.UpdateAgentInstanceConfigResponse(),
|
18503
|
+
await self.execute_async(params, req, runtime)
|
18504
|
+
)
|
18505
|
+
|
18506
|
+
def update_agent_instance_config(
|
18507
|
+
self,
|
18508
|
+
config_name: str,
|
18509
|
+
request: sls_20201230_models.UpdateAgentInstanceConfigRequest,
|
18510
|
+
) -> sls_20201230_models.UpdateAgentInstanceConfigResponse:
|
18511
|
+
"""
|
18512
|
+
@summary UpdateAgentInstanceConfig
|
18513
|
+
|
18514
|
+
@param request: UpdateAgentInstanceConfigRequest
|
18515
|
+
@return: UpdateAgentInstanceConfigResponse
|
18516
|
+
"""
|
18517
|
+
runtime = util_models.RuntimeOptions()
|
18518
|
+
headers = {}
|
18519
|
+
return self.update_agent_instance_config_with_options(config_name, request, headers, runtime)
|
18520
|
+
|
18521
|
+
async def update_agent_instance_config_async(
|
18522
|
+
self,
|
18523
|
+
config_name: str,
|
18524
|
+
request: sls_20201230_models.UpdateAgentInstanceConfigRequest,
|
18525
|
+
) -> sls_20201230_models.UpdateAgentInstanceConfigResponse:
|
18526
|
+
"""
|
18527
|
+
@summary UpdateAgentInstanceConfig
|
18528
|
+
|
18529
|
+
@param request: UpdateAgentInstanceConfigRequest
|
18530
|
+
@return: UpdateAgentInstanceConfigResponse
|
18531
|
+
"""
|
18532
|
+
runtime = util_models.RuntimeOptions()
|
18533
|
+
headers = {}
|
18534
|
+
return await self.update_agent_instance_config_with_options_async(config_name, request, headers, runtime)
|
18535
|
+
|
17999
18536
|
def update_alert_with_options(
|
18000
18537
|
self,
|
18001
18538
|
project: str,
|
{alibabacloud_sls20201230-5.5.0 → alibabacloud_sls20201230-5.6.0}/alibabacloud_sls20201230/models.py
RENAMED
@@ -2564,6 +2564,7 @@ class MaxComputeExportConfigurationSink(TeaModel):
|
|
2564
2564
|
self.odps_endpoint = odps_endpoint
|
2565
2565
|
# This parameter is required.
|
2566
2566
|
self.odps_project = odps_project
|
2567
|
+
# This parameter is required.
|
2567
2568
|
self.odps_rolearn = odps_rolearn
|
2568
2569
|
# This parameter is required.
|
2569
2570
|
self.odps_table = odps_table
|
@@ -2703,6 +2704,7 @@ class MaxComputeExport(TeaModel):
|
|
2703
2704
|
display_name: str = None,
|
2704
2705
|
last_modified_time: int = None,
|
2705
2706
|
name: str = None,
|
2707
|
+
schedule_id: str = None,
|
2706
2708
|
status: str = None,
|
2707
2709
|
):
|
2708
2710
|
# This parameter is required.
|
@@ -2714,6 +2716,7 @@ class MaxComputeExport(TeaModel):
|
|
2714
2716
|
self.last_modified_time = last_modified_time
|
2715
2717
|
# This parameter is required.
|
2716
2718
|
self.name = name
|
2719
|
+
self.schedule_id = schedule_id
|
2717
2720
|
self.status = status
|
2718
2721
|
|
2719
2722
|
def validate(self):
|
@@ -2738,6 +2741,8 @@ class MaxComputeExport(TeaModel):
|
|
2738
2741
|
result['lastModifiedTime'] = self.last_modified_time
|
2739
2742
|
if self.name is not None:
|
2740
2743
|
result['name'] = self.name
|
2744
|
+
if self.schedule_id is not None:
|
2745
|
+
result['scheduleId'] = self.schedule_id
|
2741
2746
|
if self.status is not None:
|
2742
2747
|
result['status'] = self.status
|
2743
2748
|
return result
|
@@ -2757,6 +2762,8 @@ class MaxComputeExport(TeaModel):
|
|
2757
2762
|
self.last_modified_time = m.get('lastModifiedTime')
|
2758
2763
|
if m.get('name') is not None:
|
2759
2764
|
self.name = m.get('name')
|
2765
|
+
if m.get('scheduleId') is not None:
|
2766
|
+
self.schedule_id = m.get('scheduleId')
|
2760
2767
|
if m.get('status') is not None:
|
2761
2768
|
self.status = m.get('status')
|
2762
2769
|
return self
|
@@ -4242,11 +4249,13 @@ class Logstore(TeaModel):
|
|
4242
4249
|
class Machine(TeaModel):
|
4243
4250
|
def __init__(
|
4244
4251
|
self,
|
4252
|
+
host_id: str = None,
|
4245
4253
|
ip: str = None,
|
4246
4254
|
last_heartbeat_time: int = None,
|
4247
4255
|
machine_uniqueid: str = None,
|
4248
4256
|
userdefined_id: str = None,
|
4249
4257
|
):
|
4258
|
+
self.host_id = host_id
|
4250
4259
|
self.ip = ip
|
4251
4260
|
self.last_heartbeat_time = last_heartbeat_time
|
4252
4261
|
self.machine_uniqueid = machine_uniqueid
|
@@ -4261,6 +4270,8 @@ class Machine(TeaModel):
|
|
4261
4270
|
return _map
|
4262
4271
|
|
4263
4272
|
result = dict()
|
4273
|
+
if self.host_id is not None:
|
4274
|
+
result['host-id'] = self.host_id
|
4264
4275
|
if self.ip is not None:
|
4265
4276
|
result['ip'] = self.ip
|
4266
4277
|
if self.last_heartbeat_time is not None:
|
@@ -4273,6 +4284,8 @@ class Machine(TeaModel):
|
|
4273
4284
|
|
4274
4285
|
def from_map(self, m: dict = None):
|
4275
4286
|
m = m or dict()
|
4287
|
+
if m.get('host-id') is not None:
|
4288
|
+
self.host_id = m.get('host-id')
|
4276
4289
|
if m.get('ip') is not None:
|
4277
4290
|
self.ip = m.get('ip')
|
4278
4291
|
if m.get('lastHeartbeatTime') is not None:
|
@@ -4821,6 +4834,87 @@ class ConsumerGroupUpdateCheckPointResponse(TeaModel):
|
|
4821
4834
|
return self
|
4822
4835
|
|
4823
4836
|
|
4837
|
+
class CreateAgentInstanceConfigRequest(TeaModel):
|
4838
|
+
def __init__(
|
4839
|
+
self,
|
4840
|
+
config: str = None,
|
4841
|
+
config_matcher: str = None,
|
4842
|
+
config_name: str = None,
|
4843
|
+
is_gray: bool = None,
|
4844
|
+
):
|
4845
|
+
# This parameter is required.
|
4846
|
+
self.config = config
|
4847
|
+
# This parameter is required.
|
4848
|
+
self.config_matcher = config_matcher
|
4849
|
+
# This parameter is required.
|
4850
|
+
self.config_name = config_name
|
4851
|
+
self.is_gray = is_gray
|
4852
|
+
|
4853
|
+
def validate(self):
|
4854
|
+
pass
|
4855
|
+
|
4856
|
+
def to_map(self):
|
4857
|
+
_map = super().to_map()
|
4858
|
+
if _map is not None:
|
4859
|
+
return _map
|
4860
|
+
|
4861
|
+
result = dict()
|
4862
|
+
if self.config is not None:
|
4863
|
+
result['config'] = self.config
|
4864
|
+
if self.config_matcher is not None:
|
4865
|
+
result['configMatcher'] = self.config_matcher
|
4866
|
+
if self.config_name is not None:
|
4867
|
+
result['configName'] = self.config_name
|
4868
|
+
if self.is_gray is not None:
|
4869
|
+
result['isGray'] = self.is_gray
|
4870
|
+
return result
|
4871
|
+
|
4872
|
+
def from_map(self, m: dict = None):
|
4873
|
+
m = m or dict()
|
4874
|
+
if m.get('config') is not None:
|
4875
|
+
self.config = m.get('config')
|
4876
|
+
if m.get('configMatcher') is not None:
|
4877
|
+
self.config_matcher = m.get('configMatcher')
|
4878
|
+
if m.get('configName') is not None:
|
4879
|
+
self.config_name = m.get('configName')
|
4880
|
+
if m.get('isGray') is not None:
|
4881
|
+
self.is_gray = m.get('isGray')
|
4882
|
+
return self
|
4883
|
+
|
4884
|
+
|
4885
|
+
class CreateAgentInstanceConfigResponse(TeaModel):
|
4886
|
+
def __init__(
|
4887
|
+
self,
|
4888
|
+
headers: Dict[str, str] = None,
|
4889
|
+
status_code: int = None,
|
4890
|
+
):
|
4891
|
+
self.headers = headers
|
4892
|
+
self.status_code = status_code
|
4893
|
+
|
4894
|
+
def validate(self):
|
4895
|
+
pass
|
4896
|
+
|
4897
|
+
def to_map(self):
|
4898
|
+
_map = super().to_map()
|
4899
|
+
if _map is not None:
|
4900
|
+
return _map
|
4901
|
+
|
4902
|
+
result = dict()
|
4903
|
+
if self.headers is not None:
|
4904
|
+
result['headers'] = self.headers
|
4905
|
+
if self.status_code is not None:
|
4906
|
+
result['statusCode'] = self.status_code
|
4907
|
+
return result
|
4908
|
+
|
4909
|
+
def from_map(self, m: dict = None):
|
4910
|
+
m = m or dict()
|
4911
|
+
if m.get('headers') is not None:
|
4912
|
+
self.headers = m.get('headers')
|
4913
|
+
if m.get('statusCode') is not None:
|
4914
|
+
self.status_code = m.get('statusCode')
|
4915
|
+
return self
|
4916
|
+
|
4917
|
+
|
4824
4918
|
class CreateAlertRequest(TeaModel):
|
4825
4919
|
def __init__(
|
4826
4920
|
self,
|
@@ -7594,6 +7688,66 @@ class CreateTicketResponse(TeaModel):
|
|
7594
7688
|
return self
|
7595
7689
|
|
7596
7690
|
|
7691
|
+
class DeleteAgentInstanceConfigRequest(TeaModel):
|
7692
|
+
def __init__(
|
7693
|
+
self,
|
7694
|
+
is_gray: bool = None,
|
7695
|
+
):
|
7696
|
+
self.is_gray = is_gray
|
7697
|
+
|
7698
|
+
def validate(self):
|
7699
|
+
pass
|
7700
|
+
|
7701
|
+
def to_map(self):
|
7702
|
+
_map = super().to_map()
|
7703
|
+
if _map is not None:
|
7704
|
+
return _map
|
7705
|
+
|
7706
|
+
result = dict()
|
7707
|
+
if self.is_gray is not None:
|
7708
|
+
result['isGray'] = self.is_gray
|
7709
|
+
return result
|
7710
|
+
|
7711
|
+
def from_map(self, m: dict = None):
|
7712
|
+
m = m or dict()
|
7713
|
+
if m.get('isGray') is not None:
|
7714
|
+
self.is_gray = m.get('isGray')
|
7715
|
+
return self
|
7716
|
+
|
7717
|
+
|
7718
|
+
class DeleteAgentInstanceConfigResponse(TeaModel):
|
7719
|
+
def __init__(
|
7720
|
+
self,
|
7721
|
+
headers: Dict[str, str] = None,
|
7722
|
+
status_code: int = None,
|
7723
|
+
):
|
7724
|
+
self.headers = headers
|
7725
|
+
self.status_code = status_code
|
7726
|
+
|
7727
|
+
def validate(self):
|
7728
|
+
pass
|
7729
|
+
|
7730
|
+
def to_map(self):
|
7731
|
+
_map = super().to_map()
|
7732
|
+
if _map is not None:
|
7733
|
+
return _map
|
7734
|
+
|
7735
|
+
result = dict()
|
7736
|
+
if self.headers is not None:
|
7737
|
+
result['headers'] = self.headers
|
7738
|
+
if self.status_code is not None:
|
7739
|
+
result['statusCode'] = self.status_code
|
7740
|
+
return result
|
7741
|
+
|
7742
|
+
def from_map(self, m: dict = None):
|
7743
|
+
m = m or dict()
|
7744
|
+
if m.get('headers') is not None:
|
7745
|
+
self.headers = m.get('headers')
|
7746
|
+
if m.get('statusCode') is not None:
|
7747
|
+
self.status_code = m.get('statusCode')
|
7748
|
+
return self
|
7749
|
+
|
7750
|
+
|
7597
7751
|
class DeleteAlertResponse(TeaModel):
|
7598
7752
|
def __init__(
|
7599
7753
|
self,
|
@@ -8765,6 +8919,104 @@ class EnableScheduledSQLResponse(TeaModel):
|
|
8765
8919
|
return self
|
8766
8920
|
|
8767
8921
|
|
8922
|
+
class GetAgentInstanceConfigResponseBody(TeaModel):
|
8923
|
+
def __init__(
|
8924
|
+
self,
|
8925
|
+
config: str = None,
|
8926
|
+
config_matcher: str = None,
|
8927
|
+
config_name: str = None,
|
8928
|
+
create_time: int = None,
|
8929
|
+
is_gray: bool = None,
|
8930
|
+
last_modify_time: int = None,
|
8931
|
+
):
|
8932
|
+
self.config = config
|
8933
|
+
self.config_matcher = config_matcher
|
8934
|
+
self.config_name = config_name
|
8935
|
+
self.create_time = create_time
|
8936
|
+
self.is_gray = is_gray
|
8937
|
+
self.last_modify_time = last_modify_time
|
8938
|
+
|
8939
|
+
def validate(self):
|
8940
|
+
pass
|
8941
|
+
|
8942
|
+
def to_map(self):
|
8943
|
+
_map = super().to_map()
|
8944
|
+
if _map is not None:
|
8945
|
+
return _map
|
8946
|
+
|
8947
|
+
result = dict()
|
8948
|
+
if self.config is not None:
|
8949
|
+
result['config'] = self.config
|
8950
|
+
if self.config_matcher is not None:
|
8951
|
+
result['configMatcher'] = self.config_matcher
|
8952
|
+
if self.config_name is not None:
|
8953
|
+
result['configName'] = self.config_name
|
8954
|
+
if self.create_time is not None:
|
8955
|
+
result['createTime'] = self.create_time
|
8956
|
+
if self.is_gray is not None:
|
8957
|
+
result['isGray'] = self.is_gray
|
8958
|
+
if self.last_modify_time is not None:
|
8959
|
+
result['lastModifyTime'] = self.last_modify_time
|
8960
|
+
return result
|
8961
|
+
|
8962
|
+
def from_map(self, m: dict = None):
|
8963
|
+
m = m or dict()
|
8964
|
+
if m.get('config') is not None:
|
8965
|
+
self.config = m.get('config')
|
8966
|
+
if m.get('configMatcher') is not None:
|
8967
|
+
self.config_matcher = m.get('configMatcher')
|
8968
|
+
if m.get('configName') is not None:
|
8969
|
+
self.config_name = m.get('configName')
|
8970
|
+
if m.get('createTime') is not None:
|
8971
|
+
self.create_time = m.get('createTime')
|
8972
|
+
if m.get('isGray') is not None:
|
8973
|
+
self.is_gray = m.get('isGray')
|
8974
|
+
if m.get('lastModifyTime') is not None:
|
8975
|
+
self.last_modify_time = m.get('lastModifyTime')
|
8976
|
+
return self
|
8977
|
+
|
8978
|
+
|
8979
|
+
class GetAgentInstanceConfigResponse(TeaModel):
|
8980
|
+
def __init__(
|
8981
|
+
self,
|
8982
|
+
headers: Dict[str, str] = None,
|
8983
|
+
status_code: int = None,
|
8984
|
+
body: GetAgentInstanceConfigResponseBody = None,
|
8985
|
+
):
|
8986
|
+
self.headers = headers
|
8987
|
+
self.status_code = status_code
|
8988
|
+
self.body = body
|
8989
|
+
|
8990
|
+
def validate(self):
|
8991
|
+
if self.body:
|
8992
|
+
self.body.validate()
|
8993
|
+
|
8994
|
+
def to_map(self):
|
8995
|
+
_map = super().to_map()
|
8996
|
+
if _map is not None:
|
8997
|
+
return _map
|
8998
|
+
|
8999
|
+
result = dict()
|
9000
|
+
if self.headers is not None:
|
9001
|
+
result['headers'] = self.headers
|
9002
|
+
if self.status_code is not None:
|
9003
|
+
result['statusCode'] = self.status_code
|
9004
|
+
if self.body is not None:
|
9005
|
+
result['body'] = self.body.to_map()
|
9006
|
+
return result
|
9007
|
+
|
9008
|
+
def from_map(self, m: dict = None):
|
9009
|
+
m = m or dict()
|
9010
|
+
if m.get('headers') is not None:
|
9011
|
+
self.headers = m.get('headers')
|
9012
|
+
if m.get('statusCode') is not None:
|
9013
|
+
self.status_code = m.get('statusCode')
|
9014
|
+
if m.get('body') is not None:
|
9015
|
+
temp_model = GetAgentInstanceConfigResponseBody()
|
9016
|
+
self.body = temp_model.from_map(m['body'])
|
9017
|
+
return self
|
9018
|
+
|
9019
|
+
|
8768
9020
|
class GetAlertResponse(TeaModel):
|
8769
9021
|
def __init__(
|
8770
9022
|
self,
|
@@ -10143,6 +10395,7 @@ class GetDownloadJobResponseBodyExecutionDetails(TeaModel):
|
|
10143
10395
|
file_path: str = None,
|
10144
10396
|
file_size: int = None,
|
10145
10397
|
log_count: int = None,
|
10398
|
+
notice: str = None,
|
10146
10399
|
progress: int = None,
|
10147
10400
|
):
|
10148
10401
|
self.check_sum = check_sum
|
@@ -10156,6 +10409,7 @@ class GetDownloadJobResponseBodyExecutionDetails(TeaModel):
|
|
10156
10409
|
self.file_size = file_size
|
10157
10410
|
# 下载日志条数
|
10158
10411
|
self.log_count = log_count
|
10412
|
+
self.notice = notice
|
10159
10413
|
# 下载进度
|
10160
10414
|
self.progress = progress
|
10161
10415
|
|
@@ -10180,6 +10434,8 @@ class GetDownloadJobResponseBodyExecutionDetails(TeaModel):
|
|
10180
10434
|
result['fileSize'] = self.file_size
|
10181
10435
|
if self.log_count is not None:
|
10182
10436
|
result['logCount'] = self.log_count
|
10437
|
+
if self.notice is not None:
|
10438
|
+
result['notice'] = self.notice
|
10183
10439
|
if self.progress is not None:
|
10184
10440
|
result['progress'] = self.progress
|
10185
10441
|
return result
|
@@ -10198,6 +10454,8 @@ class GetDownloadJobResponseBodyExecutionDetails(TeaModel):
|
|
10198
10454
|
self.file_size = m.get('fileSize')
|
10199
10455
|
if m.get('logCount') is not None:
|
10200
10456
|
self.log_count = m.get('logCount')
|
10457
|
+
if m.get('notice') is not None:
|
10458
|
+
self.notice = m.get('notice')
|
10201
10459
|
if m.get('progress') is not None:
|
10202
10460
|
self.progress = m.get('progress')
|
10203
10461
|
return self
|
@@ -12640,6 +12898,119 @@ class GetStoreViewIndexResponse(TeaModel):
|
|
12640
12898
|
return self
|
12641
12899
|
|
12642
12900
|
|
12901
|
+
class ListAgentInstanceConfigsRequest(TeaModel):
|
12902
|
+
def __init__(
|
12903
|
+
self,
|
12904
|
+
offset: int = None,
|
12905
|
+
size: int = None,
|
12906
|
+
):
|
12907
|
+
self.offset = offset
|
12908
|
+
self.size = size
|
12909
|
+
|
12910
|
+
def validate(self):
|
12911
|
+
pass
|
12912
|
+
|
12913
|
+
def to_map(self):
|
12914
|
+
_map = super().to_map()
|
12915
|
+
if _map is not None:
|
12916
|
+
return _map
|
12917
|
+
|
12918
|
+
result = dict()
|
12919
|
+
if self.offset is not None:
|
12920
|
+
result['offset'] = self.offset
|
12921
|
+
if self.size is not None:
|
12922
|
+
result['size'] = self.size
|
12923
|
+
return result
|
12924
|
+
|
12925
|
+
def from_map(self, m: dict = None):
|
12926
|
+
m = m or dict()
|
12927
|
+
if m.get('offset') is not None:
|
12928
|
+
self.offset = m.get('offset')
|
12929
|
+
if m.get('size') is not None:
|
12930
|
+
self.size = m.get('size')
|
12931
|
+
return self
|
12932
|
+
|
12933
|
+
|
12934
|
+
class ListAgentInstanceConfigsResponseBody(TeaModel):
|
12935
|
+
def __init__(
|
12936
|
+
self,
|
12937
|
+
configs: List[str] = None,
|
12938
|
+
size: int = None,
|
12939
|
+
total: int = None,
|
12940
|
+
):
|
12941
|
+
self.configs = configs
|
12942
|
+
self.size = size
|
12943
|
+
self.total = total
|
12944
|
+
|
12945
|
+
def validate(self):
|
12946
|
+
pass
|
12947
|
+
|
12948
|
+
def to_map(self):
|
12949
|
+
_map = super().to_map()
|
12950
|
+
if _map is not None:
|
12951
|
+
return _map
|
12952
|
+
|
12953
|
+
result = dict()
|
12954
|
+
if self.configs is not None:
|
12955
|
+
result['configs'] = self.configs
|
12956
|
+
if self.size is not None:
|
12957
|
+
result['size'] = self.size
|
12958
|
+
if self.total is not None:
|
12959
|
+
result['total'] = self.total
|
12960
|
+
return result
|
12961
|
+
|
12962
|
+
def from_map(self, m: dict = None):
|
12963
|
+
m = m or dict()
|
12964
|
+
if m.get('configs') is not None:
|
12965
|
+
self.configs = m.get('configs')
|
12966
|
+
if m.get('size') is not None:
|
12967
|
+
self.size = m.get('size')
|
12968
|
+
if m.get('total') is not None:
|
12969
|
+
self.total = m.get('total')
|
12970
|
+
return self
|
12971
|
+
|
12972
|
+
|
12973
|
+
class ListAgentInstanceConfigsResponse(TeaModel):
|
12974
|
+
def __init__(
|
12975
|
+
self,
|
12976
|
+
headers: Dict[str, str] = None,
|
12977
|
+
status_code: int = None,
|
12978
|
+
body: ListAgentInstanceConfigsResponseBody = None,
|
12979
|
+
):
|
12980
|
+
self.headers = headers
|
12981
|
+
self.status_code = status_code
|
12982
|
+
self.body = body
|
12983
|
+
|
12984
|
+
def validate(self):
|
12985
|
+
if self.body:
|
12986
|
+
self.body.validate()
|
12987
|
+
|
12988
|
+
def to_map(self):
|
12989
|
+
_map = super().to_map()
|
12990
|
+
if _map is not None:
|
12991
|
+
return _map
|
12992
|
+
|
12993
|
+
result = dict()
|
12994
|
+
if self.headers is not None:
|
12995
|
+
result['headers'] = self.headers
|
12996
|
+
if self.status_code is not None:
|
12997
|
+
result['statusCode'] = self.status_code
|
12998
|
+
if self.body is not None:
|
12999
|
+
result['body'] = self.body.to_map()
|
13000
|
+
return result
|
13001
|
+
|
13002
|
+
def from_map(self, m: dict = None):
|
13003
|
+
m = m or dict()
|
13004
|
+
if m.get('headers') is not None:
|
13005
|
+
self.headers = m.get('headers')
|
13006
|
+
if m.get('statusCode') is not None:
|
13007
|
+
self.status_code = m.get('statusCode')
|
13008
|
+
if m.get('body') is not None:
|
13009
|
+
temp_model = ListAgentInstanceConfigsResponseBody()
|
13010
|
+
self.body = temp_model.from_map(m['body'])
|
13011
|
+
return self
|
13012
|
+
|
13013
|
+
|
12643
13014
|
class ListAlertsRequest(TeaModel):
|
12644
13015
|
def __init__(
|
12645
13016
|
self,
|
@@ -14268,6 +14639,7 @@ class ListDownloadJobsResponseBodyResultsExecutionDetails(TeaModel):
|
|
14268
14639
|
file_path: str = None,
|
14269
14640
|
file_size: int = None,
|
14270
14641
|
log_count: int = None,
|
14642
|
+
notice: str = None,
|
14271
14643
|
progress: int = None,
|
14272
14644
|
):
|
14273
14645
|
self.check_sum = check_sum
|
@@ -14281,6 +14653,7 @@ class ListDownloadJobsResponseBodyResultsExecutionDetails(TeaModel):
|
|
14281
14653
|
self.file_size = file_size
|
14282
14654
|
# 下载日志条数
|
14283
14655
|
self.log_count = log_count
|
14656
|
+
self.notice = notice
|
14284
14657
|
# 下载进度
|
14285
14658
|
self.progress = progress
|
14286
14659
|
|
@@ -14305,6 +14678,8 @@ class ListDownloadJobsResponseBodyResultsExecutionDetails(TeaModel):
|
|
14305
14678
|
result['fileSize'] = self.file_size
|
14306
14679
|
if self.log_count is not None:
|
14307
14680
|
result['logCount'] = self.log_count
|
14681
|
+
if self.notice is not None:
|
14682
|
+
result['notice'] = self.notice
|
14308
14683
|
if self.progress is not None:
|
14309
14684
|
result['progress'] = self.progress
|
14310
14685
|
return result
|
@@ -14323,6 +14698,8 @@ class ListDownloadJobsResponseBodyResultsExecutionDetails(TeaModel):
|
|
14323
14698
|
self.file_size = m.get('fileSize')
|
14324
14699
|
if m.get('logCount') is not None:
|
14325
14700
|
self.log_count = m.get('logCount')
|
14701
|
+
if m.get('notice') is not None:
|
14702
|
+
self.notice = m.get('notice')
|
14326
14703
|
if m.get('progress') is not None:
|
14327
14704
|
self.progress = m.get('progress')
|
14328
14705
|
return self
|
@@ -17841,6 +18218,80 @@ class UntagResourcesResponse(TeaModel):
|
|
17841
18218
|
return self
|
17842
18219
|
|
17843
18220
|
|
18221
|
+
class UpdateAgentInstanceConfigRequest(TeaModel):
|
18222
|
+
def __init__(
|
18223
|
+
self,
|
18224
|
+
config: str = None,
|
18225
|
+
config_matcher: str = None,
|
18226
|
+
is_gray: bool = None,
|
18227
|
+
):
|
18228
|
+
# This parameter is required.
|
18229
|
+
self.config = config
|
18230
|
+
# This parameter is required.
|
18231
|
+
self.config_matcher = config_matcher
|
18232
|
+
self.is_gray = is_gray
|
18233
|
+
|
18234
|
+
def validate(self):
|
18235
|
+
pass
|
18236
|
+
|
18237
|
+
def to_map(self):
|
18238
|
+
_map = super().to_map()
|
18239
|
+
if _map is not None:
|
18240
|
+
return _map
|
18241
|
+
|
18242
|
+
result = dict()
|
18243
|
+
if self.config is not None:
|
18244
|
+
result['config'] = self.config
|
18245
|
+
if self.config_matcher is not None:
|
18246
|
+
result['configMatcher'] = self.config_matcher
|
18247
|
+
if self.is_gray is not None:
|
18248
|
+
result['isGray'] = self.is_gray
|
18249
|
+
return result
|
18250
|
+
|
18251
|
+
def from_map(self, m: dict = None):
|
18252
|
+
m = m or dict()
|
18253
|
+
if m.get('config') is not None:
|
18254
|
+
self.config = m.get('config')
|
18255
|
+
if m.get('configMatcher') is not None:
|
18256
|
+
self.config_matcher = m.get('configMatcher')
|
18257
|
+
if m.get('isGray') is not None:
|
18258
|
+
self.is_gray = m.get('isGray')
|
18259
|
+
return self
|
18260
|
+
|
18261
|
+
|
18262
|
+
class UpdateAgentInstanceConfigResponse(TeaModel):
|
18263
|
+
def __init__(
|
18264
|
+
self,
|
18265
|
+
headers: Dict[str, str] = None,
|
18266
|
+
status_code: int = None,
|
18267
|
+
):
|
18268
|
+
self.headers = headers
|
18269
|
+
self.status_code = status_code
|
18270
|
+
|
18271
|
+
def validate(self):
|
18272
|
+
pass
|
18273
|
+
|
18274
|
+
def to_map(self):
|
18275
|
+
_map = super().to_map()
|
18276
|
+
if _map is not None:
|
18277
|
+
return _map
|
18278
|
+
|
18279
|
+
result = dict()
|
18280
|
+
if self.headers is not None:
|
18281
|
+
result['headers'] = self.headers
|
18282
|
+
if self.status_code is not None:
|
18283
|
+
result['statusCode'] = self.status_code
|
18284
|
+
return result
|
18285
|
+
|
18286
|
+
def from_map(self, m: dict = None):
|
18287
|
+
m = m or dict()
|
18288
|
+
if m.get('headers') is not None:
|
18289
|
+
self.headers = m.get('headers')
|
18290
|
+
if m.get('statusCode') is not None:
|
18291
|
+
self.status_code = m.get('statusCode')
|
18292
|
+
return self
|
18293
|
+
|
18294
|
+
|
17844
18295
|
class UpdateAlertRequest(TeaModel):
|
17845
18296
|
def __init__(
|
17846
18297
|
self,
|
@@ -1 +0,0 @@
|
|
1
|
-
__version__ = '5.5.0'
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|