alibabacloud-sls20201230 5.7.1__py3-none-any.whl → 5.7.3__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.
@@ -726,14 +726,14 @@ class Client(OpenApiClient):
726
726
  """
727
727
  UtilClient.validate_model(request)
728
728
  body = {}
729
+ if not UtilClient.is_unset(request.attributes):
730
+ body['attributes'] = request.attributes
729
731
  if not UtilClient.is_unset(request.config):
730
732
  body['config'] = request.config
731
- if not UtilClient.is_unset(request.config_matcher):
732
- body['configMatcher'] = request.config_matcher
733
- if not UtilClient.is_unset(request.config_name):
734
- body['configName'] = request.config_name
735
- if not UtilClient.is_unset(request.is_gray):
736
- body['isGray'] = request.is_gray
733
+ if not UtilClient.is_unset(request.config_type):
734
+ body['configType'] = request.config_type
735
+ if not UtilClient.is_unset(request.gray_configs):
736
+ body['grayConfigs'] = request.gray_configs
737
737
  req = open_api_models.OpenApiRequest(
738
738
  headers=headers,
739
739
  body=OpenApiUtilClient.parse_to_map(body)
@@ -770,14 +770,14 @@ class Client(OpenApiClient):
770
770
  """
771
771
  UtilClient.validate_model(request)
772
772
  body = {}
773
+ if not UtilClient.is_unset(request.attributes):
774
+ body['attributes'] = request.attributes
773
775
  if not UtilClient.is_unset(request.config):
774
776
  body['config'] = request.config
775
- if not UtilClient.is_unset(request.config_matcher):
776
- body['configMatcher'] = request.config_matcher
777
- if not UtilClient.is_unset(request.config_name):
778
- body['configName'] = request.config_name
779
- if not UtilClient.is_unset(request.is_gray):
780
- body['isGray'] = request.is_gray
777
+ if not UtilClient.is_unset(request.config_type):
778
+ body['configType'] = request.config_type
779
+ if not UtilClient.is_unset(request.gray_configs):
780
+ body['grayConfigs'] = request.gray_configs
781
781
  req = open_api_models.OpenApiRequest(
782
782
  headers=headers,
783
783
  body=OpenApiUtilClient.parse_to_map(body)
@@ -1866,7 +1866,7 @@ class Client(OpenApiClient):
1866
1866
  runtime: util_models.RuntimeOptions,
1867
1867
  ) -> sls_20201230_models.CreateETLResponse:
1868
1868
  """
1869
- @summary 创建数据加工任务
1869
+ @summary Creates a data transformation job in a project.
1870
1870
 
1871
1871
  @param request: CreateETLRequest
1872
1872
  @param headers: map
@@ -1914,7 +1914,7 @@ class Client(OpenApiClient):
1914
1914
  runtime: util_models.RuntimeOptions,
1915
1915
  ) -> sls_20201230_models.CreateETLResponse:
1916
1916
  """
1917
- @summary 创建数据加工任务
1917
+ @summary Creates a data transformation job in a project.
1918
1918
 
1919
1919
  @param request: CreateETLRequest
1920
1920
  @param headers: map
@@ -1960,7 +1960,7 @@ class Client(OpenApiClient):
1960
1960
  request: sls_20201230_models.CreateETLRequest,
1961
1961
  ) -> sls_20201230_models.CreateETLResponse:
1962
1962
  """
1963
- @summary 创建数据加工任务
1963
+ @summary Creates a data transformation job in a project.
1964
1964
 
1965
1965
  @param request: CreateETLRequest
1966
1966
  @return: CreateETLResponse
@@ -1975,7 +1975,7 @@ class Client(OpenApiClient):
1975
1975
  request: sls_20201230_models.CreateETLRequest,
1976
1976
  ) -> sls_20201230_models.CreateETLResponse:
1977
1977
  """
1978
- @summary 创建数据加工任务
1978
+ @summary Creates a data transformation job in a project.
1979
1979
 
1980
1980
  @param request: CreateETLRequest
1981
1981
  @return: CreateETLResponse
@@ -3438,140 +3438,6 @@ class Client(OpenApiClient):
3438
3438
  headers = {}
3439
3439
  return await self.create_ossingestion_with_options_async(project, request, headers, runtime)
3440
3440
 
3441
- def create_oss_external_store_with_options(
3442
- self,
3443
- project: str,
3444
- request: sls_20201230_models.CreateOssExternalStoreRequest,
3445
- headers: Dict[str, str],
3446
- runtime: util_models.RuntimeOptions,
3447
- ) -> sls_20201230_models.CreateOssExternalStoreResponse:
3448
- """
3449
- @summary Creates an Object Storage Service (OSS) external store.
3450
-
3451
- @description ### [](#)Usage notes
3452
- Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
3453
-
3454
- @param request: CreateOssExternalStoreRequest
3455
- @param headers: map
3456
- @param runtime: runtime options for this request RuntimeOptions
3457
- @return: CreateOssExternalStoreResponse
3458
- """
3459
- UtilClient.validate_model(request)
3460
- host_map = {}
3461
- host_map['project'] = project
3462
- body = {}
3463
- if not UtilClient.is_unset(request.external_store_name):
3464
- body['externalStoreName'] = request.external_store_name
3465
- if not UtilClient.is_unset(request.parameter):
3466
- body['parameter'] = request.parameter
3467
- if not UtilClient.is_unset(request.store_type):
3468
- body['storeType'] = request.store_type
3469
- req = open_api_models.OpenApiRequest(
3470
- host_map=host_map,
3471
- headers=headers,
3472
- body=OpenApiUtilClient.parse_to_map(body)
3473
- )
3474
- params = open_api_models.Params(
3475
- action='CreateOssExternalStore',
3476
- version='2020-12-30',
3477
- protocol='HTTPS',
3478
- pathname=f'/externalstores',
3479
- method='POST',
3480
- auth_type='AK',
3481
- style='ROA',
3482
- req_body_type='json',
3483
- body_type='none'
3484
- )
3485
- return TeaCore.from_map(
3486
- sls_20201230_models.CreateOssExternalStoreResponse(),
3487
- self.execute(params, req, runtime)
3488
- )
3489
-
3490
- async def create_oss_external_store_with_options_async(
3491
- self,
3492
- project: str,
3493
- request: sls_20201230_models.CreateOssExternalStoreRequest,
3494
- headers: Dict[str, str],
3495
- runtime: util_models.RuntimeOptions,
3496
- ) -> sls_20201230_models.CreateOssExternalStoreResponse:
3497
- """
3498
- @summary Creates an Object Storage Service (OSS) external store.
3499
-
3500
- @description ### [](#)Usage notes
3501
- Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
3502
-
3503
- @param request: CreateOssExternalStoreRequest
3504
- @param headers: map
3505
- @param runtime: runtime options for this request RuntimeOptions
3506
- @return: CreateOssExternalStoreResponse
3507
- """
3508
- UtilClient.validate_model(request)
3509
- host_map = {}
3510
- host_map['project'] = project
3511
- body = {}
3512
- if not UtilClient.is_unset(request.external_store_name):
3513
- body['externalStoreName'] = request.external_store_name
3514
- if not UtilClient.is_unset(request.parameter):
3515
- body['parameter'] = request.parameter
3516
- if not UtilClient.is_unset(request.store_type):
3517
- body['storeType'] = request.store_type
3518
- req = open_api_models.OpenApiRequest(
3519
- host_map=host_map,
3520
- headers=headers,
3521
- body=OpenApiUtilClient.parse_to_map(body)
3522
- )
3523
- params = open_api_models.Params(
3524
- action='CreateOssExternalStore',
3525
- version='2020-12-30',
3526
- protocol='HTTPS',
3527
- pathname=f'/externalstores',
3528
- method='POST',
3529
- auth_type='AK',
3530
- style='ROA',
3531
- req_body_type='json',
3532
- body_type='none'
3533
- )
3534
- return TeaCore.from_map(
3535
- sls_20201230_models.CreateOssExternalStoreResponse(),
3536
- await self.execute_async(params, req, runtime)
3537
- )
3538
-
3539
- def create_oss_external_store(
3540
- self,
3541
- project: str,
3542
- request: sls_20201230_models.CreateOssExternalStoreRequest,
3543
- ) -> sls_20201230_models.CreateOssExternalStoreResponse:
3544
- """
3545
- @summary Creates an Object Storage Service (OSS) external store.
3546
-
3547
- @description ### [](#)Usage notes
3548
- Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
3549
-
3550
- @param request: CreateOssExternalStoreRequest
3551
- @return: CreateOssExternalStoreResponse
3552
- """
3553
- runtime = util_models.RuntimeOptions()
3554
- headers = {}
3555
- return self.create_oss_external_store_with_options(project, request, headers, runtime)
3556
-
3557
- async def create_oss_external_store_async(
3558
- self,
3559
- project: str,
3560
- request: sls_20201230_models.CreateOssExternalStoreRequest,
3561
- ) -> sls_20201230_models.CreateOssExternalStoreResponse:
3562
- """
3563
- @summary Creates an Object Storage Service (OSS) external store.
3564
-
3565
- @description ### [](#)Usage notes
3566
- Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
3567
-
3568
- @param request: CreateOssExternalStoreRequest
3569
- @return: CreateOssExternalStoreResponse
3570
- """
3571
- runtime = util_models.RuntimeOptions()
3572
- headers = {}
3573
- return await self.create_oss_external_store_with_options_async(project, request, headers, runtime)
3574
-
3575
3441
  def create_project_with_options(
3576
3442
  self,
3577
3443
  request: sls_20201230_models.CreateProjectRequest,
@@ -3692,136 +3558,6 @@ class Client(OpenApiClient):
3692
3558
  headers = {}
3693
3559
  return await self.create_project_with_options_async(request, headers, runtime)
3694
3560
 
3695
- def create_rds_external_store_with_options(
3696
- self,
3697
- project: str,
3698
- request: sls_20201230_models.CreateRdsExternalStoreRequest,
3699
- headers: Dict[str, str],
3700
- runtime: util_models.RuntimeOptions,
3701
- ) -> sls_20201230_models.CreateRdsExternalStoreResponse:
3702
- """
3703
- @summary Creates an ApsaraDB RDS external store.
3704
-
3705
- @description Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
3706
-
3707
- @param request: CreateRdsExternalStoreRequest
3708
- @param headers: map
3709
- @param runtime: runtime options for this request RuntimeOptions
3710
- @return: CreateRdsExternalStoreResponse
3711
- """
3712
- UtilClient.validate_model(request)
3713
- host_map = {}
3714
- host_map['project'] = project
3715
- body = {}
3716
- if not UtilClient.is_unset(request.external_store_name):
3717
- body['externalStoreName'] = request.external_store_name
3718
- if not UtilClient.is_unset(request.parameter):
3719
- body['parameter'] = request.parameter
3720
- if not UtilClient.is_unset(request.store_type):
3721
- body['storeType'] = request.store_type
3722
- req = open_api_models.OpenApiRequest(
3723
- host_map=host_map,
3724
- headers=headers,
3725
- body=OpenApiUtilClient.parse_to_map(body)
3726
- )
3727
- params = open_api_models.Params(
3728
- action='CreateRdsExternalStore',
3729
- version='2020-12-30',
3730
- protocol='HTTPS',
3731
- pathname=f'/externalstores',
3732
- method='POST',
3733
- auth_type='AK',
3734
- style='ROA',
3735
- req_body_type='json',
3736
- body_type='none'
3737
- )
3738
- return TeaCore.from_map(
3739
- sls_20201230_models.CreateRdsExternalStoreResponse(),
3740
- self.execute(params, req, runtime)
3741
- )
3742
-
3743
- async def create_rds_external_store_with_options_async(
3744
- self,
3745
- project: str,
3746
- request: sls_20201230_models.CreateRdsExternalStoreRequest,
3747
- headers: Dict[str, str],
3748
- runtime: util_models.RuntimeOptions,
3749
- ) -> sls_20201230_models.CreateRdsExternalStoreResponse:
3750
- """
3751
- @summary Creates an ApsaraDB RDS external store.
3752
-
3753
- @description Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
3754
-
3755
- @param request: CreateRdsExternalStoreRequest
3756
- @param headers: map
3757
- @param runtime: runtime options for this request RuntimeOptions
3758
- @return: CreateRdsExternalStoreResponse
3759
- """
3760
- UtilClient.validate_model(request)
3761
- host_map = {}
3762
- host_map['project'] = project
3763
- body = {}
3764
- if not UtilClient.is_unset(request.external_store_name):
3765
- body['externalStoreName'] = request.external_store_name
3766
- if not UtilClient.is_unset(request.parameter):
3767
- body['parameter'] = request.parameter
3768
- if not UtilClient.is_unset(request.store_type):
3769
- body['storeType'] = request.store_type
3770
- req = open_api_models.OpenApiRequest(
3771
- host_map=host_map,
3772
- headers=headers,
3773
- body=OpenApiUtilClient.parse_to_map(body)
3774
- )
3775
- params = open_api_models.Params(
3776
- action='CreateRdsExternalStore',
3777
- version='2020-12-30',
3778
- protocol='HTTPS',
3779
- pathname=f'/externalstores',
3780
- method='POST',
3781
- auth_type='AK',
3782
- style='ROA',
3783
- req_body_type='json',
3784
- body_type='none'
3785
- )
3786
- return TeaCore.from_map(
3787
- sls_20201230_models.CreateRdsExternalStoreResponse(),
3788
- await self.execute_async(params, req, runtime)
3789
- )
3790
-
3791
- def create_rds_external_store(
3792
- self,
3793
- project: str,
3794
- request: sls_20201230_models.CreateRdsExternalStoreRequest,
3795
- ) -> sls_20201230_models.CreateRdsExternalStoreResponse:
3796
- """
3797
- @summary Creates an ApsaraDB RDS external store.
3798
-
3799
- @description Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
3800
-
3801
- @param request: CreateRdsExternalStoreRequest
3802
- @return: CreateRdsExternalStoreResponse
3803
- """
3804
- runtime = util_models.RuntimeOptions()
3805
- headers = {}
3806
- return self.create_rds_external_store_with_options(project, request, headers, runtime)
3807
-
3808
- async def create_rds_external_store_async(
3809
- self,
3810
- project: str,
3811
- request: sls_20201230_models.CreateRdsExternalStoreRequest,
3812
- ) -> sls_20201230_models.CreateRdsExternalStoreResponse:
3813
- """
3814
- @summary Creates an ApsaraDB RDS external store.
3815
-
3816
- @description Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
3817
-
3818
- @param request: CreateRdsExternalStoreRequest
3819
- @return: CreateRdsExternalStoreResponse
3820
- """
3821
- runtime = util_models.RuntimeOptions()
3822
- headers = {}
3823
- return await self.create_rds_external_store_with_options_async(project, request, headers, runtime)
3824
-
3825
3561
  def create_saved_search_with_options(
3826
3562
  self,
3827
3563
  project: str,
@@ -4488,23 +4224,27 @@ class Client(OpenApiClient):
4488
4224
 
4489
4225
  def delete_agent_instance_config_with_options(
4490
4226
  self,
4491
- config_name: str,
4492
- request: sls_20201230_models.DeleteAgentInstanceConfigRequest,
4227
+ config_type: str,
4228
+ tmp_req: sls_20201230_models.DeleteAgentInstanceConfigRequest,
4493
4229
  headers: Dict[str, str],
4494
4230
  runtime: util_models.RuntimeOptions,
4495
4231
  ) -> sls_20201230_models.DeleteAgentInstanceConfigResponse:
4496
4232
  """
4497
4233
  @summary DeleteAgentInstanceConfig
4498
4234
 
4499
- @param request: DeleteAgentInstanceConfigRequest
4235
+ @param tmp_req: DeleteAgentInstanceConfigRequest
4500
4236
  @param headers: map
4501
4237
  @param runtime: runtime options for this request RuntimeOptions
4502
4238
  @return: DeleteAgentInstanceConfigResponse
4503
4239
  """
4504
- UtilClient.validate_model(request)
4240
+ UtilClient.validate_model(tmp_req)
4241
+ request = sls_20201230_models.DeleteAgentInstanceConfigShrinkRequest()
4242
+ OpenApiUtilClient.convert(tmp_req, request)
4243
+ if not UtilClient.is_unset(tmp_req.attributes):
4244
+ request.attributes_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.attributes, 'attributes', 'json')
4505
4245
  query = {}
4506
- if not UtilClient.is_unset(request.is_gray):
4507
- query['isGray'] = request.is_gray
4246
+ if not UtilClient.is_unset(request.attributes_shrink):
4247
+ query['attributes'] = request.attributes_shrink
4508
4248
  req = open_api_models.OpenApiRequest(
4509
4249
  headers=headers,
4510
4250
  query=OpenApiUtilClient.query(query)
@@ -4513,7 +4253,7 @@ class Client(OpenApiClient):
4513
4253
  action='DeleteAgentInstanceConfig',
4514
4254
  version='2020-12-30',
4515
4255
  protocol='HTTPS',
4516
- pathname=f'/agentinstanceconfigs/{config_name}',
4256
+ pathname=f'/agentinstanceconfigs/{config_type}',
4517
4257
  method='DELETE',
4518
4258
  auth_type='AK',
4519
4259
  style='ROA',
@@ -4527,23 +4267,27 @@ class Client(OpenApiClient):
4527
4267
 
4528
4268
  async def delete_agent_instance_config_with_options_async(
4529
4269
  self,
4530
- config_name: str,
4531
- request: sls_20201230_models.DeleteAgentInstanceConfigRequest,
4270
+ config_type: str,
4271
+ tmp_req: sls_20201230_models.DeleteAgentInstanceConfigRequest,
4532
4272
  headers: Dict[str, str],
4533
4273
  runtime: util_models.RuntimeOptions,
4534
4274
  ) -> sls_20201230_models.DeleteAgentInstanceConfigResponse:
4535
4275
  """
4536
4276
  @summary DeleteAgentInstanceConfig
4537
4277
 
4538
- @param request: DeleteAgentInstanceConfigRequest
4278
+ @param tmp_req: DeleteAgentInstanceConfigRequest
4539
4279
  @param headers: map
4540
4280
  @param runtime: runtime options for this request RuntimeOptions
4541
4281
  @return: DeleteAgentInstanceConfigResponse
4542
4282
  """
4543
- UtilClient.validate_model(request)
4283
+ UtilClient.validate_model(tmp_req)
4284
+ request = sls_20201230_models.DeleteAgentInstanceConfigShrinkRequest()
4285
+ OpenApiUtilClient.convert(tmp_req, request)
4286
+ if not UtilClient.is_unset(tmp_req.attributes):
4287
+ request.attributes_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.attributes, 'attributes', 'json')
4544
4288
  query = {}
4545
- if not UtilClient.is_unset(request.is_gray):
4546
- query['isGray'] = request.is_gray
4289
+ if not UtilClient.is_unset(request.attributes_shrink):
4290
+ query['attributes'] = request.attributes_shrink
4547
4291
  req = open_api_models.OpenApiRequest(
4548
4292
  headers=headers,
4549
4293
  query=OpenApiUtilClient.query(query)
@@ -4552,7 +4296,7 @@ class Client(OpenApiClient):
4552
4296
  action='DeleteAgentInstanceConfig',
4553
4297
  version='2020-12-30',
4554
4298
  protocol='HTTPS',
4555
- pathname=f'/agentinstanceconfigs/{config_name}',
4299
+ pathname=f'/agentinstanceconfigs/{config_type}',
4556
4300
  method='DELETE',
4557
4301
  auth_type='AK',
4558
4302
  style='ROA',
@@ -4566,7 +4310,7 @@ class Client(OpenApiClient):
4566
4310
 
4567
4311
  def delete_agent_instance_config(
4568
4312
  self,
4569
- config_name: str,
4313
+ config_type: str,
4570
4314
  request: sls_20201230_models.DeleteAgentInstanceConfigRequest,
4571
4315
  ) -> sls_20201230_models.DeleteAgentInstanceConfigResponse:
4572
4316
  """
@@ -4577,11 +4321,11 @@ class Client(OpenApiClient):
4577
4321
  """
4578
4322
  runtime = util_models.RuntimeOptions()
4579
4323
  headers = {}
4580
- return self.delete_agent_instance_config_with_options(config_name, request, headers, runtime)
4324
+ return self.delete_agent_instance_config_with_options(config_type, request, headers, runtime)
4581
4325
 
4582
4326
  async def delete_agent_instance_config_async(
4583
4327
  self,
4584
- config_name: str,
4328
+ config_type: str,
4585
4329
  request: sls_20201230_models.DeleteAgentInstanceConfigRequest,
4586
4330
  ) -> sls_20201230_models.DeleteAgentInstanceConfigResponse:
4587
4331
  """
@@ -4592,7 +4336,7 @@ class Client(OpenApiClient):
4592
4336
  """
4593
4337
  runtime = util_models.RuntimeOptions()
4594
4338
  headers = {}
4595
- return await self.delete_agent_instance_config_with_options_async(config_name, request, headers, runtime)
4339
+ return await self.delete_agent_instance_config_with_options_async(config_type, request, headers, runtime)
4596
4340
 
4597
4341
  def delete_alert_with_options(
4598
4342
  self,
@@ -5728,7 +5472,7 @@ class Client(OpenApiClient):
5728
5472
  runtime: util_models.RuntimeOptions,
5729
5473
  ) -> sls_20201230_models.DeleteETLResponse:
5730
5474
  """
5731
- @summary 删除数据加工任务
5475
+ @summary Deletes a data transformation job.
5732
5476
 
5733
5477
  @param headers: map
5734
5478
  @param runtime: runtime options for this request RuntimeOptions
@@ -5764,7 +5508,7 @@ class Client(OpenApiClient):
5764
5508
  runtime: util_models.RuntimeOptions,
5765
5509
  ) -> sls_20201230_models.DeleteETLResponse:
5766
5510
  """
5767
- @summary 删除数据加工任务
5511
+ @summary Deletes a data transformation job.
5768
5512
 
5769
5513
  @param headers: map
5770
5514
  @param runtime: runtime options for this request RuntimeOptions
@@ -5798,7 +5542,7 @@ class Client(OpenApiClient):
5798
5542
  etl_name: str,
5799
5543
  ) -> sls_20201230_models.DeleteETLResponse:
5800
5544
  """
5801
- @summary 删除数据加工任务
5545
+ @summary Deletes a data transformation job.
5802
5546
 
5803
5547
  @return: DeleteETLResponse
5804
5548
  """
@@ -5812,7 +5556,7 @@ class Client(OpenApiClient):
5812
5556
  etl_name: str,
5813
5557
  ) -> sls_20201230_models.DeleteETLResponse:
5814
5558
  """
5815
- @summary 删除数据加工任务
5559
+ @summary Deletes a data transformation job.
5816
5560
 
5817
5561
  @return: DeleteETLResponse
5818
5562
  """
@@ -5820,114 +5564,6 @@ class Client(OpenApiClient):
5820
5564
  headers = {}
5821
5565
  return await self.delete_etlwith_options_async(project, etl_name, headers, runtime)
5822
5566
 
5823
- def delete_external_store_with_options(
5824
- self,
5825
- project: str,
5826
- external_store_name: str,
5827
- headers: Dict[str, str],
5828
- runtime: util_models.RuntimeOptions,
5829
- ) -> sls_20201230_models.DeleteExternalStoreResponse:
5830
- """
5831
- @summary Deletes an external storage configuration.
5832
-
5833
- @description Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
5834
-
5835
- @param headers: map
5836
- @param runtime: runtime options for this request RuntimeOptions
5837
- @return: DeleteExternalStoreResponse
5838
- """
5839
- host_map = {}
5840
- host_map['project'] = project
5841
- req = open_api_models.OpenApiRequest(
5842
- host_map=host_map,
5843
- headers=headers
5844
- )
5845
- params = open_api_models.Params(
5846
- action='DeleteExternalStore',
5847
- version='2020-12-30',
5848
- protocol='HTTPS',
5849
- pathname=f'/externalstores/{external_store_name}',
5850
- method='DELETE',
5851
- auth_type='AK',
5852
- style='ROA',
5853
- req_body_type='json',
5854
- body_type='none'
5855
- )
5856
- return TeaCore.from_map(
5857
- sls_20201230_models.DeleteExternalStoreResponse(),
5858
- self.execute(params, req, runtime)
5859
- )
5860
-
5861
- async def delete_external_store_with_options_async(
5862
- self,
5863
- project: str,
5864
- external_store_name: str,
5865
- headers: Dict[str, str],
5866
- runtime: util_models.RuntimeOptions,
5867
- ) -> sls_20201230_models.DeleteExternalStoreResponse:
5868
- """
5869
- @summary Deletes an external storage configuration.
5870
-
5871
- @description Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
5872
-
5873
- @param headers: map
5874
- @param runtime: runtime options for this request RuntimeOptions
5875
- @return: DeleteExternalStoreResponse
5876
- """
5877
- host_map = {}
5878
- host_map['project'] = project
5879
- req = open_api_models.OpenApiRequest(
5880
- host_map=host_map,
5881
- headers=headers
5882
- )
5883
- params = open_api_models.Params(
5884
- action='DeleteExternalStore',
5885
- version='2020-12-30',
5886
- protocol='HTTPS',
5887
- pathname=f'/externalstores/{external_store_name}',
5888
- method='DELETE',
5889
- auth_type='AK',
5890
- style='ROA',
5891
- req_body_type='json',
5892
- body_type='none'
5893
- )
5894
- return TeaCore.from_map(
5895
- sls_20201230_models.DeleteExternalStoreResponse(),
5896
- await self.execute_async(params, req, runtime)
5897
- )
5898
-
5899
- def delete_external_store(
5900
- self,
5901
- project: str,
5902
- external_store_name: str,
5903
- ) -> sls_20201230_models.DeleteExternalStoreResponse:
5904
- """
5905
- @summary Deletes an external storage configuration.
5906
-
5907
- @description Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
5908
-
5909
- @return: DeleteExternalStoreResponse
5910
- """
5911
- runtime = util_models.RuntimeOptions()
5912
- headers = {}
5913
- return self.delete_external_store_with_options(project, external_store_name, headers, runtime)
5914
-
5915
- async def delete_external_store_async(
5916
- self,
5917
- project: str,
5918
- external_store_name: str,
5919
- ) -> sls_20201230_models.DeleteExternalStoreResponse:
5920
- """
5921
- @summary Deletes an external storage configuration.
5922
-
5923
- @description Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
5924
-
5925
- @return: DeleteExternalStoreResponse
5926
- """
5927
- runtime = util_models.RuntimeOptions()
5928
- headers = {}
5929
- return await self.delete_external_store_with_options_async(project, external_store_name, headers, runtime)
5930
-
5931
5567
  def delete_index_with_options(
5932
5568
  self,
5933
5569
  project: str,
@@ -8256,25 +7892,36 @@ class Client(OpenApiClient):
8256
7892
 
8257
7893
  def get_agent_instance_config_with_options(
8258
7894
  self,
8259
- config_name: str,
7895
+ config_type: str,
7896
+ tmp_req: sls_20201230_models.GetAgentInstanceConfigRequest,
8260
7897
  headers: Dict[str, str],
8261
7898
  runtime: util_models.RuntimeOptions,
8262
7899
  ) -> sls_20201230_models.GetAgentInstanceConfigResponse:
8263
7900
  """
8264
7901
  @summary GetAgentInstanceConfig
8265
7902
 
7903
+ @param tmp_req: GetAgentInstanceConfigRequest
8266
7904
  @param headers: map
8267
7905
  @param runtime: runtime options for this request RuntimeOptions
8268
7906
  @return: GetAgentInstanceConfigResponse
8269
7907
  """
7908
+ UtilClient.validate_model(tmp_req)
7909
+ request = sls_20201230_models.GetAgentInstanceConfigShrinkRequest()
7910
+ OpenApiUtilClient.convert(tmp_req, request)
7911
+ if not UtilClient.is_unset(tmp_req.attributes):
7912
+ request.attributes_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.attributes, 'attributes', 'json')
7913
+ query = {}
7914
+ if not UtilClient.is_unset(request.attributes_shrink):
7915
+ query['attributes'] = request.attributes_shrink
8270
7916
  req = open_api_models.OpenApiRequest(
8271
- headers=headers
7917
+ headers=headers,
7918
+ query=OpenApiUtilClient.query(query)
8272
7919
  )
8273
7920
  params = open_api_models.Params(
8274
7921
  action='GetAgentInstanceConfig',
8275
7922
  version='2020-12-30',
8276
7923
  protocol='HTTPS',
8277
- pathname=f'/agentinstanceconfigs/{config_name}',
7924
+ pathname=f'/agentinstanceconfigs/{config_type}',
8278
7925
  method='GET',
8279
7926
  auth_type='AK',
8280
7927
  style='ROA',
@@ -8288,25 +7935,36 @@ class Client(OpenApiClient):
8288
7935
 
8289
7936
  async def get_agent_instance_config_with_options_async(
8290
7937
  self,
8291
- config_name: str,
7938
+ config_type: str,
7939
+ tmp_req: sls_20201230_models.GetAgentInstanceConfigRequest,
8292
7940
  headers: Dict[str, str],
8293
7941
  runtime: util_models.RuntimeOptions,
8294
7942
  ) -> sls_20201230_models.GetAgentInstanceConfigResponse:
8295
7943
  """
8296
7944
  @summary GetAgentInstanceConfig
8297
7945
 
7946
+ @param tmp_req: GetAgentInstanceConfigRequest
8298
7947
  @param headers: map
8299
7948
  @param runtime: runtime options for this request RuntimeOptions
8300
7949
  @return: GetAgentInstanceConfigResponse
8301
7950
  """
7951
+ UtilClient.validate_model(tmp_req)
7952
+ request = sls_20201230_models.GetAgentInstanceConfigShrinkRequest()
7953
+ OpenApiUtilClient.convert(tmp_req, request)
7954
+ if not UtilClient.is_unset(tmp_req.attributes):
7955
+ request.attributes_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.attributes, 'attributes', 'json')
7956
+ query = {}
7957
+ if not UtilClient.is_unset(request.attributes_shrink):
7958
+ query['attributes'] = request.attributes_shrink
8302
7959
  req = open_api_models.OpenApiRequest(
8303
- headers=headers
7960
+ headers=headers,
7961
+ query=OpenApiUtilClient.query(query)
8304
7962
  )
8305
7963
  params = open_api_models.Params(
8306
7964
  action='GetAgentInstanceConfig',
8307
7965
  version='2020-12-30',
8308
7966
  protocol='HTTPS',
8309
- pathname=f'/agentinstanceconfigs/{config_name}',
7967
+ pathname=f'/agentinstanceconfigs/{config_type}',
8310
7968
  method='GET',
8311
7969
  auth_type='AK',
8312
7970
  style='ROA',
@@ -8320,29 +7978,33 @@ class Client(OpenApiClient):
8320
7978
 
8321
7979
  def get_agent_instance_config(
8322
7980
  self,
8323
- config_name: str,
7981
+ config_type: str,
7982
+ request: sls_20201230_models.GetAgentInstanceConfigRequest,
8324
7983
  ) -> sls_20201230_models.GetAgentInstanceConfigResponse:
8325
7984
  """
8326
7985
  @summary GetAgentInstanceConfig
8327
7986
 
7987
+ @param request: GetAgentInstanceConfigRequest
8328
7988
  @return: GetAgentInstanceConfigResponse
8329
7989
  """
8330
7990
  runtime = util_models.RuntimeOptions()
8331
7991
  headers = {}
8332
- return self.get_agent_instance_config_with_options(config_name, headers, runtime)
7992
+ return self.get_agent_instance_config_with_options(config_type, request, headers, runtime)
8333
7993
 
8334
7994
  async def get_agent_instance_config_async(
8335
7995
  self,
8336
- config_name: str,
7996
+ config_type: str,
7997
+ request: sls_20201230_models.GetAgentInstanceConfigRequest,
8337
7998
  ) -> sls_20201230_models.GetAgentInstanceConfigResponse:
8338
7999
  """
8339
8000
  @summary GetAgentInstanceConfig
8340
8001
 
8002
+ @param request: GetAgentInstanceConfigRequest
8341
8003
  @return: GetAgentInstanceConfigResponse
8342
8004
  """
8343
8005
  runtime = util_models.RuntimeOptions()
8344
8006
  headers = {}
8345
- return await self.get_agent_instance_config_with_options_async(config_name, headers, runtime)
8007
+ return await self.get_agent_instance_config_with_options_async(config_type, request, headers, runtime)
8346
8008
 
8347
8009
  def get_alert_with_options(
8348
8010
  self,
@@ -10002,7 +9664,7 @@ class Client(OpenApiClient):
10002
9664
  runtime: util_models.RuntimeOptions,
10003
9665
  ) -> sls_20201230_models.GetETLResponse:
10004
9666
  """
10005
- @summary 获取数据加工任务信息
9667
+ @summary Queries the configurations of a data transformation job.
10006
9668
 
10007
9669
  @param headers: map
10008
9670
  @param runtime: runtime options for this request RuntimeOptions
@@ -10015,113 +9677,10 @@ class Client(OpenApiClient):
10015
9677
  headers=headers
10016
9678
  )
10017
9679
  params = open_api_models.Params(
10018
- action='GetETL',
10019
- version='2020-12-30',
10020
- protocol='HTTPS',
10021
- pathname=f'/etls/{etl_name}',
10022
- method='GET',
10023
- auth_type='AK',
10024
- style='ROA',
10025
- req_body_type='json',
10026
- body_type='json'
10027
- )
10028
- return TeaCore.from_map(
10029
- sls_20201230_models.GetETLResponse(),
10030
- self.execute(params, req, runtime)
10031
- )
10032
-
10033
- async def get_etlwith_options_async(
10034
- self,
10035
- project: str,
10036
- etl_name: str,
10037
- headers: Dict[str, str],
10038
- runtime: util_models.RuntimeOptions,
10039
- ) -> sls_20201230_models.GetETLResponse:
10040
- """
10041
- @summary 获取数据加工任务信息
10042
-
10043
- @param headers: map
10044
- @param runtime: runtime options for this request RuntimeOptions
10045
- @return: GetETLResponse
10046
- """
10047
- host_map = {}
10048
- host_map['project'] = project
10049
- req = open_api_models.OpenApiRequest(
10050
- host_map=host_map,
10051
- headers=headers
10052
- )
10053
- params = open_api_models.Params(
10054
- action='GetETL',
10055
- version='2020-12-30',
10056
- protocol='HTTPS',
10057
- pathname=f'/etls/{etl_name}',
10058
- method='GET',
10059
- auth_type='AK',
10060
- style='ROA',
10061
- req_body_type='json',
10062
- body_type='json'
10063
- )
10064
- return TeaCore.from_map(
10065
- sls_20201230_models.GetETLResponse(),
10066
- await self.execute_async(params, req, runtime)
10067
- )
10068
-
10069
- def get_etl(
10070
- self,
10071
- project: str,
10072
- etl_name: str,
10073
- ) -> sls_20201230_models.GetETLResponse:
10074
- """
10075
- @summary 获取数据加工任务信息
10076
-
10077
- @return: GetETLResponse
10078
- """
10079
- runtime = util_models.RuntimeOptions()
10080
- headers = {}
10081
- return self.get_etlwith_options(project, etl_name, headers, runtime)
10082
-
10083
- async def get_etl_async(
10084
- self,
10085
- project: str,
10086
- etl_name: str,
10087
- ) -> sls_20201230_models.GetETLResponse:
10088
- """
10089
- @summary 获取数据加工任务信息
10090
-
10091
- @return: GetETLResponse
10092
- """
10093
- runtime = util_models.RuntimeOptions()
10094
- headers = {}
10095
- return await self.get_etlwith_options_async(project, etl_name, headers, runtime)
10096
-
10097
- def get_external_store_with_options(
10098
- self,
10099
- project: str,
10100
- external_store_name: str,
10101
- headers: Dict[str, str],
10102
- runtime: util_models.RuntimeOptions,
10103
- ) -> sls_20201230_models.GetExternalStoreResponse:
10104
- """
10105
- @summary Queries the details of an external store.
10106
-
10107
- @description The supported data sources of external stores include Object Storage Service (OSS) buckets and ApsaraDB RDS for MySQL databases in a virtual private cloud (VPC).
10108
- Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
10109
-
10110
- @param headers: map
10111
- @param runtime: runtime options for this request RuntimeOptions
10112
- @return: GetExternalStoreResponse
10113
- """
10114
- host_map = {}
10115
- host_map['project'] = project
10116
- req = open_api_models.OpenApiRequest(
10117
- host_map=host_map,
10118
- headers=headers
10119
- )
10120
- params = open_api_models.Params(
10121
- action='GetExternalStore',
9680
+ action='GetETL',
10122
9681
  version='2020-12-30',
10123
9682
  protocol='HTTPS',
10124
- pathname=f'/externalstores/{external_store_name}',
9683
+ pathname=f'/etls/{etl_name}',
10125
9684
  method='GET',
10126
9685
  auth_type='AK',
10127
9686
  style='ROA',
@@ -10129,26 +9688,23 @@ class Client(OpenApiClient):
10129
9688
  body_type='json'
10130
9689
  )
10131
9690
  return TeaCore.from_map(
10132
- sls_20201230_models.GetExternalStoreResponse(),
9691
+ sls_20201230_models.GetETLResponse(),
10133
9692
  self.execute(params, req, runtime)
10134
9693
  )
10135
9694
 
10136
- async def get_external_store_with_options_async(
9695
+ async def get_etlwith_options_async(
10137
9696
  self,
10138
9697
  project: str,
10139
- external_store_name: str,
9698
+ etl_name: str,
10140
9699
  headers: Dict[str, str],
10141
9700
  runtime: util_models.RuntimeOptions,
10142
- ) -> sls_20201230_models.GetExternalStoreResponse:
9701
+ ) -> sls_20201230_models.GetETLResponse:
10143
9702
  """
10144
- @summary Queries the details of an external store.
10145
-
10146
- @description The supported data sources of external stores include Object Storage Service (OSS) buckets and ApsaraDB RDS for MySQL databases in a virtual private cloud (VPC).
10147
- Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
9703
+ @summary Queries the configurations of a data transformation job.
10148
9704
 
10149
9705
  @param headers: map
10150
9706
  @param runtime: runtime options for this request RuntimeOptions
10151
- @return: GetExternalStoreResponse
9707
+ @return: GetETLResponse
10152
9708
  """
10153
9709
  host_map = {}
10154
9710
  host_map['project'] = project
@@ -10157,10 +9713,10 @@ class Client(OpenApiClient):
10157
9713
  headers=headers
10158
9714
  )
10159
9715
  params = open_api_models.Params(
10160
- action='GetExternalStore',
9716
+ action='GetETL',
10161
9717
  version='2020-12-30',
10162
9718
  protocol='HTTPS',
10163
- pathname=f'/externalstores/{external_store_name}',
9719
+ pathname=f'/etls/{etl_name}',
10164
9720
  method='GET',
10165
9721
  auth_type='AK',
10166
9722
  style='ROA',
@@ -10168,43 +9724,37 @@ class Client(OpenApiClient):
10168
9724
  body_type='json'
10169
9725
  )
10170
9726
  return TeaCore.from_map(
10171
- sls_20201230_models.GetExternalStoreResponse(),
9727
+ sls_20201230_models.GetETLResponse(),
10172
9728
  await self.execute_async(params, req, runtime)
10173
9729
  )
10174
9730
 
10175
- def get_external_store(
9731
+ def get_etl(
10176
9732
  self,
10177
9733
  project: str,
10178
- external_store_name: str,
10179
- ) -> sls_20201230_models.GetExternalStoreResponse:
9734
+ etl_name: str,
9735
+ ) -> sls_20201230_models.GetETLResponse:
10180
9736
  """
10181
- @summary Queries the details of an external store.
10182
-
10183
- @description The supported data sources of external stores include Object Storage Service (OSS) buckets and ApsaraDB RDS for MySQL databases in a virtual private cloud (VPC).
10184
- Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
9737
+ @summary Queries the configurations of a data transformation job.
10185
9738
 
10186
- @return: GetExternalStoreResponse
9739
+ @return: GetETLResponse
10187
9740
  """
10188
9741
  runtime = util_models.RuntimeOptions()
10189
9742
  headers = {}
10190
- return self.get_external_store_with_options(project, external_store_name, headers, runtime)
9743
+ return self.get_etlwith_options(project, etl_name, headers, runtime)
10191
9744
 
10192
- async def get_external_store_async(
9745
+ async def get_etl_async(
10193
9746
  self,
10194
9747
  project: str,
10195
- external_store_name: str,
10196
- ) -> sls_20201230_models.GetExternalStoreResponse:
9748
+ etl_name: str,
9749
+ ) -> sls_20201230_models.GetETLResponse:
10197
9750
  """
10198
- @summary Queries the details of an external store.
10199
-
10200
- @description The supported data sources of external stores include Object Storage Service (OSS) buckets and ApsaraDB RDS for MySQL databases in a virtual private cloud (VPC).
10201
- Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
9751
+ @summary Queries the configurations of a data transformation job.
10202
9752
 
10203
- @return: GetExternalStoreResponse
9753
+ @return: GetETLResponse
10204
9754
  """
10205
9755
  runtime = util_models.RuntimeOptions()
10206
9756
  headers = {}
10207
- return await self.get_external_store_with_options_async(project, external_store_name, headers, runtime)
9757
+ return await self.get_etlwith_options_async(project, etl_name, headers, runtime)
10208
9758
 
10209
9759
  def get_histograms_with_options(
10210
9760
  self,
@@ -13420,6 +12970,8 @@ class Client(OpenApiClient):
13420
12970
  """
13421
12971
  UtilClient.validate_model(request)
13422
12972
  query = {}
12973
+ if not UtilClient.is_unset(request.config_type):
12974
+ query['configType'] = request.config_type
13423
12975
  if not UtilClient.is_unset(request.offset):
13424
12976
  query['offset'] = request.offset
13425
12977
  if not UtilClient.is_unset(request.size):
@@ -13460,6 +13012,8 @@ class Client(OpenApiClient):
13460
13012
  """
13461
13013
  UtilClient.validate_model(request)
13462
13014
  query = {}
13015
+ if not UtilClient.is_unset(request.config_type):
13016
+ query['configType'] = request.config_type
13463
13017
  if not UtilClient.is_unset(request.offset):
13464
13018
  query['offset'] = request.offset
13465
13019
  if not UtilClient.is_unset(request.size):
@@ -14477,7 +14031,7 @@ class Client(OpenApiClient):
14477
14031
  def list_dashboard_with_options(
14478
14032
  self,
14479
14033
  project: str,
14480
- request: sls_20201230_models.ListDashboardRequest,
14034
+ tmp_req: sls_20201230_models.ListDashboardRequest,
14481
14035
  headers: Dict[str, str],
14482
14036
  runtime: util_models.RuntimeOptions,
14483
14037
  ) -> sls_20201230_models.ListDashboardResponse:
@@ -14490,19 +14044,29 @@ class Client(OpenApiClient):
14490
14044
  The AccessKey pair of an Alibaba Cloud account has permissions on all API operations. Using these credentials to perform operations in Simple Log Service is a high-risk operation. We recommend that you use a RAM user to call API operations or perform routine O\\&M. To create a RAM user, log on to the RAM console. Make sure that the RAM user has the management permissions on Simple Log Service resources. For more information, see [Create a RAM user and authorize the RAM user to access Simple Log Service](https://help.aliyun.com/document_detail/47664.html).
14491
14045
  The information that is required to query logs is obtained. The information includes the name of the project to which the logs belong and the region of the project. For more information, see [Manage a project](https://help.aliyun.com/document_detail/48984.html).
14492
14046
 
14493
- @param request: ListDashboardRequest
14047
+ @param tmp_req: ListDashboardRequest
14494
14048
  @param headers: map
14495
14049
  @param runtime: runtime options for this request RuntimeOptions
14496
14050
  @return: ListDashboardResponse
14497
14051
  """
14498
- UtilClient.validate_model(request)
14052
+ UtilClient.validate_model(tmp_req)
14499
14053
  host_map = {}
14500
14054
  host_map['project'] = project
14055
+ request = sls_20201230_models.ListDashboardShrinkRequest()
14056
+ OpenApiUtilClient.convert(tmp_req, request)
14057
+ if not UtilClient.is_unset(tmp_req.tags):
14058
+ request.tags_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.tags, 'tags', 'json')
14501
14059
  query = {}
14060
+ if not UtilClient.is_unset(request.dashboard_name):
14061
+ query['dashboardName'] = request.dashboard_name
14062
+ if not UtilClient.is_unset(request.display_name):
14063
+ query['displayName'] = request.display_name
14502
14064
  if not UtilClient.is_unset(request.offset):
14503
14065
  query['offset'] = request.offset
14504
14066
  if not UtilClient.is_unset(request.size):
14505
14067
  query['size'] = request.size
14068
+ if not UtilClient.is_unset(request.tags_shrink):
14069
+ query['tags'] = request.tags_shrink
14506
14070
  req = open_api_models.OpenApiRequest(
14507
14071
  host_map=host_map,
14508
14072
  headers=headers,
@@ -14527,7 +14091,7 @@ class Client(OpenApiClient):
14527
14091
  async def list_dashboard_with_options_async(
14528
14092
  self,
14529
14093
  project: str,
14530
- request: sls_20201230_models.ListDashboardRequest,
14094
+ tmp_req: sls_20201230_models.ListDashboardRequest,
14531
14095
  headers: Dict[str, str],
14532
14096
  runtime: util_models.RuntimeOptions,
14533
14097
  ) -> sls_20201230_models.ListDashboardResponse:
@@ -14540,19 +14104,29 @@ class Client(OpenApiClient):
14540
14104
  The AccessKey pair of an Alibaba Cloud account has permissions on all API operations. Using these credentials to perform operations in Simple Log Service is a high-risk operation. We recommend that you use a RAM user to call API operations or perform routine O\\&M. To create a RAM user, log on to the RAM console. Make sure that the RAM user has the management permissions on Simple Log Service resources. For more information, see [Create a RAM user and authorize the RAM user to access Simple Log Service](https://help.aliyun.com/document_detail/47664.html).
14541
14105
  The information that is required to query logs is obtained. The information includes the name of the project to which the logs belong and the region of the project. For more information, see [Manage a project](https://help.aliyun.com/document_detail/48984.html).
14542
14106
 
14543
- @param request: ListDashboardRequest
14107
+ @param tmp_req: ListDashboardRequest
14544
14108
  @param headers: map
14545
14109
  @param runtime: runtime options for this request RuntimeOptions
14546
14110
  @return: ListDashboardResponse
14547
14111
  """
14548
- UtilClient.validate_model(request)
14112
+ UtilClient.validate_model(tmp_req)
14549
14113
  host_map = {}
14550
14114
  host_map['project'] = project
14115
+ request = sls_20201230_models.ListDashboardShrinkRequest()
14116
+ OpenApiUtilClient.convert(tmp_req, request)
14117
+ if not UtilClient.is_unset(tmp_req.tags):
14118
+ request.tags_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.tags, 'tags', 'json')
14551
14119
  query = {}
14120
+ if not UtilClient.is_unset(request.dashboard_name):
14121
+ query['dashboardName'] = request.dashboard_name
14122
+ if not UtilClient.is_unset(request.display_name):
14123
+ query['displayName'] = request.display_name
14552
14124
  if not UtilClient.is_unset(request.offset):
14553
14125
  query['offset'] = request.offset
14554
14126
  if not UtilClient.is_unset(request.size):
14555
14127
  query['size'] = request.size
14128
+ if not UtilClient.is_unset(request.tags_shrink):
14129
+ query['tags'] = request.tags_shrink
14556
14130
  req = open_api_models.OpenApiRequest(
14557
14131
  host_map=host_map,
14558
14132
  headers=headers,
@@ -14758,7 +14332,7 @@ class Client(OpenApiClient):
14758
14332
  runtime: util_models.RuntimeOptions,
14759
14333
  ) -> sls_20201230_models.ListDownloadJobsResponse:
14760
14334
  """
14761
- @summary 列举下载任务
14335
+ @summary Queries a list of log download tasks in a project.
14762
14336
 
14763
14337
  @param request: ListDownloadJobsRequest
14764
14338
  @param headers: map
@@ -14804,7 +14378,7 @@ class Client(OpenApiClient):
14804
14378
  runtime: util_models.RuntimeOptions,
14805
14379
  ) -> sls_20201230_models.ListDownloadJobsResponse:
14806
14380
  """
14807
- @summary 列举下载任务
14381
+ @summary Queries a list of log download tasks in a project.
14808
14382
 
14809
14383
  @param request: ListDownloadJobsRequest
14810
14384
  @param headers: map
@@ -14848,7 +14422,7 @@ class Client(OpenApiClient):
14848
14422
  request: sls_20201230_models.ListDownloadJobsRequest,
14849
14423
  ) -> sls_20201230_models.ListDownloadJobsResponse:
14850
14424
  """
14851
- @summary 列举下载任务
14425
+ @summary Queries a list of log download tasks in a project.
14852
14426
 
14853
14427
  @param request: ListDownloadJobsRequest
14854
14428
  @return: ListDownloadJobsResponse
@@ -14863,7 +14437,7 @@ class Client(OpenApiClient):
14863
14437
  request: sls_20201230_models.ListDownloadJobsRequest,
14864
14438
  ) -> sls_20201230_models.ListDownloadJobsResponse:
14865
14439
  """
14866
- @summary 列举下载任务
14440
+ @summary Queries a list of log download tasks in a project.
14867
14441
 
14868
14442
  @param request: ListDownloadJobsRequest
14869
14443
  @return: ListDownloadJobsResponse
@@ -14880,7 +14454,7 @@ class Client(OpenApiClient):
14880
14454
  runtime: util_models.RuntimeOptions,
14881
14455
  ) -> sls_20201230_models.ListETLsResponse:
14882
14456
  """
14883
- @summary 列出数据加工任务
14457
+ @summary Queries a list of data transformation jobs in a project.
14884
14458
 
14885
14459
  @param request: ListETLsRequest
14886
14460
  @param headers: map
@@ -14926,7 +14500,7 @@ class Client(OpenApiClient):
14926
14500
  runtime: util_models.RuntimeOptions,
14927
14501
  ) -> sls_20201230_models.ListETLsResponse:
14928
14502
  """
14929
- @summary 列出数据加工任务
14503
+ @summary Queries a list of data transformation jobs in a project.
14930
14504
 
14931
14505
  @param request: ListETLsRequest
14932
14506
  @param headers: map
@@ -14970,7 +14544,7 @@ class Client(OpenApiClient):
14970
14544
  request: sls_20201230_models.ListETLsRequest,
14971
14545
  ) -> sls_20201230_models.ListETLsResponse:
14972
14546
  """
14973
- @summary 列出数据加工任务
14547
+ @summary Queries a list of data transformation jobs in a project.
14974
14548
 
14975
14549
  @param request: ListETLsRequest
14976
14550
  @return: ListETLsResponse
@@ -14985,7 +14559,7 @@ class Client(OpenApiClient):
14985
14559
  request: sls_20201230_models.ListETLsRequest,
14986
14560
  ) -> sls_20201230_models.ListETLsResponse:
14987
14561
  """
14988
- @summary 列出数据加工任务
14562
+ @summary Queries a list of data transformation jobs in a project.
14989
14563
 
14990
14564
  @param request: ListETLsRequest
14991
14565
  @return: ListETLsResponse
@@ -18666,7 +18240,7 @@ class Client(OpenApiClient):
18666
18240
  runtime: util_models.RuntimeOptions,
18667
18241
  ) -> sls_20201230_models.StartETLResponse:
18668
18242
  """
18669
- @summary 启动数据加工任务
18243
+ @summary Starts a data transformation job.
18670
18244
 
18671
18245
  @param headers: map
18672
18246
  @param runtime: runtime options for this request RuntimeOptions
@@ -18702,7 +18276,7 @@ class Client(OpenApiClient):
18702
18276
  runtime: util_models.RuntimeOptions,
18703
18277
  ) -> sls_20201230_models.StartETLResponse:
18704
18278
  """
18705
- @summary 启动数据加工任务
18279
+ @summary Starts a data transformation job.
18706
18280
 
18707
18281
  @param headers: map
18708
18282
  @param runtime: runtime options for this request RuntimeOptions
@@ -18736,7 +18310,7 @@ class Client(OpenApiClient):
18736
18310
  etl_name: str,
18737
18311
  ) -> sls_20201230_models.StartETLResponse:
18738
18312
  """
18739
- @summary 启动数据加工任务
18313
+ @summary Starts a data transformation job.
18740
18314
 
18741
18315
  @return: StartETLResponse
18742
18316
  """
@@ -18750,7 +18324,7 @@ class Client(OpenApiClient):
18750
18324
  etl_name: str,
18751
18325
  ) -> sls_20201230_models.StartETLResponse:
18752
18326
  """
18753
- @summary 启动数据加工任务
18327
+ @summary Starts a data transformation job.
18754
18328
 
18755
18329
  @return: StartETLResponse
18756
18330
  """
@@ -19186,7 +18760,7 @@ class Client(OpenApiClient):
19186
18760
  runtime: util_models.RuntimeOptions,
19187
18761
  ) -> sls_20201230_models.StopETLResponse:
19188
18762
  """
19189
- @summary 停止数据加工任务
18763
+ @summary Stops a data transformation job.
19190
18764
 
19191
18765
  @param headers: map
19192
18766
  @param runtime: runtime options for this request RuntimeOptions
@@ -19222,7 +18796,7 @@ class Client(OpenApiClient):
19222
18796
  runtime: util_models.RuntimeOptions,
19223
18797
  ) -> sls_20201230_models.StopETLResponse:
19224
18798
  """
19225
- @summary 停止数据加工任务
18799
+ @summary Stops a data transformation job.
19226
18800
 
19227
18801
  @param headers: map
19228
18802
  @param runtime: runtime options for this request RuntimeOptions
@@ -19256,7 +18830,7 @@ class Client(OpenApiClient):
19256
18830
  etl_name: str,
19257
18831
  ) -> sls_20201230_models.StopETLResponse:
19258
18832
  """
19259
- @summary 停止数据加工任务
18833
+ @summary Stops a data transformation job.
19260
18834
 
19261
18835
  @return: StopETLResponse
19262
18836
  """
@@ -19270,7 +18844,7 @@ class Client(OpenApiClient):
19270
18844
  etl_name: str,
19271
18845
  ) -> sls_20201230_models.StopETLResponse:
19272
18846
  """
19273
- @summary 停止数据加工任务
18847
+ @summary Stops a data transformation job.
19274
18848
 
19275
18849
  @return: StopETLResponse
19276
18850
  """
@@ -20020,36 +19594,42 @@ class Client(OpenApiClient):
20020
19594
 
20021
19595
  def update_agent_instance_config_with_options(
20022
19596
  self,
20023
- config_name: str,
20024
- request: sls_20201230_models.UpdateAgentInstanceConfigRequest,
19597
+ config_type: str,
19598
+ tmp_req: sls_20201230_models.UpdateAgentInstanceConfigRequest,
20025
19599
  headers: Dict[str, str],
20026
19600
  runtime: util_models.RuntimeOptions,
20027
19601
  ) -> sls_20201230_models.UpdateAgentInstanceConfigResponse:
20028
19602
  """
20029
19603
  @summary UpdateAgentInstanceConfig
20030
19604
 
20031
- @param request: UpdateAgentInstanceConfigRequest
19605
+ @param tmp_req: UpdateAgentInstanceConfigRequest
20032
19606
  @param headers: map
20033
19607
  @param runtime: runtime options for this request RuntimeOptions
20034
19608
  @return: UpdateAgentInstanceConfigResponse
20035
19609
  """
20036
- UtilClient.validate_model(request)
19610
+ UtilClient.validate_model(tmp_req)
19611
+ request = sls_20201230_models.UpdateAgentInstanceConfigShrinkRequest()
19612
+ OpenApiUtilClient.convert(tmp_req, request)
19613
+ if not UtilClient.is_unset(tmp_req.attributes):
19614
+ request.attributes_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.attributes, 'attributes', 'json')
19615
+ query = {}
19616
+ if not UtilClient.is_unset(request.attributes_shrink):
19617
+ query['attributes'] = request.attributes_shrink
20037
19618
  body = {}
20038
19619
  if not UtilClient.is_unset(request.config):
20039
19620
  body['config'] = request.config
20040
- if not UtilClient.is_unset(request.config_matcher):
20041
- body['configMatcher'] = request.config_matcher
20042
- if not UtilClient.is_unset(request.is_gray):
20043
- body['isGray'] = request.is_gray
19621
+ if not UtilClient.is_unset(request.gray_configs):
19622
+ body['grayConfigs'] = request.gray_configs
20044
19623
  req = open_api_models.OpenApiRequest(
20045
19624
  headers=headers,
19625
+ query=OpenApiUtilClient.query(query),
20046
19626
  body=OpenApiUtilClient.parse_to_map(body)
20047
19627
  )
20048
19628
  params = open_api_models.Params(
20049
19629
  action='UpdateAgentInstanceConfig',
20050
19630
  version='2020-12-30',
20051
19631
  protocol='HTTPS',
20052
- pathname=f'/agentinstanceconfigs/{config_name}',
19632
+ pathname=f'/agentinstanceconfigs/{config_type}',
20053
19633
  method='PUT',
20054
19634
  auth_type='AK',
20055
19635
  style='ROA',
@@ -20063,36 +19643,42 @@ class Client(OpenApiClient):
20063
19643
 
20064
19644
  async def update_agent_instance_config_with_options_async(
20065
19645
  self,
20066
- config_name: str,
20067
- request: sls_20201230_models.UpdateAgentInstanceConfigRequest,
19646
+ config_type: str,
19647
+ tmp_req: sls_20201230_models.UpdateAgentInstanceConfigRequest,
20068
19648
  headers: Dict[str, str],
20069
19649
  runtime: util_models.RuntimeOptions,
20070
19650
  ) -> sls_20201230_models.UpdateAgentInstanceConfigResponse:
20071
19651
  """
20072
19652
  @summary UpdateAgentInstanceConfig
20073
19653
 
20074
- @param request: UpdateAgentInstanceConfigRequest
19654
+ @param tmp_req: UpdateAgentInstanceConfigRequest
20075
19655
  @param headers: map
20076
19656
  @param runtime: runtime options for this request RuntimeOptions
20077
19657
  @return: UpdateAgentInstanceConfigResponse
20078
19658
  """
20079
- UtilClient.validate_model(request)
19659
+ UtilClient.validate_model(tmp_req)
19660
+ request = sls_20201230_models.UpdateAgentInstanceConfigShrinkRequest()
19661
+ OpenApiUtilClient.convert(tmp_req, request)
19662
+ if not UtilClient.is_unset(tmp_req.attributes):
19663
+ request.attributes_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.attributes, 'attributes', 'json')
19664
+ query = {}
19665
+ if not UtilClient.is_unset(request.attributes_shrink):
19666
+ query['attributes'] = request.attributes_shrink
20080
19667
  body = {}
20081
19668
  if not UtilClient.is_unset(request.config):
20082
19669
  body['config'] = request.config
20083
- if not UtilClient.is_unset(request.config_matcher):
20084
- body['configMatcher'] = request.config_matcher
20085
- if not UtilClient.is_unset(request.is_gray):
20086
- body['isGray'] = request.is_gray
19670
+ if not UtilClient.is_unset(request.gray_configs):
19671
+ body['grayConfigs'] = request.gray_configs
20087
19672
  req = open_api_models.OpenApiRequest(
20088
19673
  headers=headers,
19674
+ query=OpenApiUtilClient.query(query),
20089
19675
  body=OpenApiUtilClient.parse_to_map(body)
20090
19676
  )
20091
19677
  params = open_api_models.Params(
20092
19678
  action='UpdateAgentInstanceConfig',
20093
19679
  version='2020-12-30',
20094
19680
  protocol='HTTPS',
20095
- pathname=f'/agentinstanceconfigs/{config_name}',
19681
+ pathname=f'/agentinstanceconfigs/{config_type}',
20096
19682
  method='PUT',
20097
19683
  auth_type='AK',
20098
19684
  style='ROA',
@@ -20106,7 +19692,7 @@ class Client(OpenApiClient):
20106
19692
 
20107
19693
  def update_agent_instance_config(
20108
19694
  self,
20109
- config_name: str,
19695
+ config_type: str,
20110
19696
  request: sls_20201230_models.UpdateAgentInstanceConfigRequest,
20111
19697
  ) -> sls_20201230_models.UpdateAgentInstanceConfigResponse:
20112
19698
  """
@@ -20117,11 +19703,11 @@ class Client(OpenApiClient):
20117
19703
  """
20118
19704
  runtime = util_models.RuntimeOptions()
20119
19705
  headers = {}
20120
- return self.update_agent_instance_config_with_options(config_name, request, headers, runtime)
19706
+ return self.update_agent_instance_config_with_options(config_type, request, headers, runtime)
20121
19707
 
20122
19708
  async def update_agent_instance_config_async(
20123
19709
  self,
20124
- config_name: str,
19710
+ config_type: str,
20125
19711
  request: sls_20201230_models.UpdateAgentInstanceConfigRequest,
20126
19712
  ) -> sls_20201230_models.UpdateAgentInstanceConfigResponse:
20127
19713
  """
@@ -20132,7 +19718,7 @@ class Client(OpenApiClient):
20132
19718
  """
20133
19719
  runtime = util_models.RuntimeOptions()
20134
19720
  headers = {}
20135
- return await self.update_agent_instance_config_with_options_async(config_name, request, headers, runtime)
19721
+ return await self.update_agent_instance_config_with_options_async(config_type, request, headers, runtime)
20136
19722
 
20137
19723
  def update_alert_with_options(
20138
19724
  self,
@@ -20941,7 +20527,7 @@ class Client(OpenApiClient):
20941
20527
  runtime: util_models.RuntimeOptions,
20942
20528
  ) -> sls_20201230_models.UpdateETLResponse:
20943
20529
  """
20944
- @summary 更新数据加工任务
20530
+ @summary Updates a data transformation job.
20945
20531
 
20946
20532
  @param request: UpdateETLRequest
20947
20533
  @param headers: map
@@ -20988,7 +20574,7 @@ class Client(OpenApiClient):
20988
20574
  runtime: util_models.RuntimeOptions,
20989
20575
  ) -> sls_20201230_models.UpdateETLResponse:
20990
20576
  """
20991
- @summary 更新数据加工任务
20577
+ @summary Updates a data transformation job.
20992
20578
 
20993
20579
  @param request: UpdateETLRequest
20994
20580
  @param headers: map
@@ -21033,7 +20619,7 @@ class Client(OpenApiClient):
21033
20619
  request: sls_20201230_models.UpdateETLRequest,
21034
20620
  ) -> sls_20201230_models.UpdateETLResponse:
21035
20621
  """
21036
- @summary 更新数据加工任务
20622
+ @summary Updates a data transformation job.
21037
20623
 
21038
20624
  @param request: UpdateETLRequest
21039
20625
  @return: UpdateETLResponse
@@ -21049,7 +20635,7 @@ class Client(OpenApiClient):
21049
20635
  request: sls_20201230_models.UpdateETLRequest,
21050
20636
  ) -> sls_20201230_models.UpdateETLResponse:
21051
20637
  """
21052
- @summary 更新数据加工任务
20638
+ @summary Updates a data transformation job.
21053
20639
 
21054
20640
  @param request: UpdateETLRequest
21055
20641
  @return: UpdateETLResponse
@@ -23246,144 +22832,6 @@ class Client(OpenApiClient):
23246
22832
  headers = {}
23247
22833
  return await self.update_ossingestion_with_options_async(project, oss_ingestion_name, request, headers, runtime)
23248
22834
 
23249
- def update_oss_external_store_with_options(
23250
- self,
23251
- project: str,
23252
- external_store_name: str,
23253
- request: sls_20201230_models.UpdateOssExternalStoreRequest,
23254
- headers: Dict[str, str],
23255
- runtime: util_models.RuntimeOptions,
23256
- ) -> sls_20201230_models.UpdateOssExternalStoreResponse:
23257
- """
23258
- @summary Updates an Object Storage Service (OSS) external store.
23259
-
23260
- @description ### [](#)Usage notes
23261
- Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
23262
-
23263
- @param request: UpdateOssExternalStoreRequest
23264
- @param headers: map
23265
- @param runtime: runtime options for this request RuntimeOptions
23266
- @return: UpdateOssExternalStoreResponse
23267
- """
23268
- UtilClient.validate_model(request)
23269
- host_map = {}
23270
- host_map['project'] = project
23271
- body = {}
23272
- if not UtilClient.is_unset(request.external_store_name):
23273
- body['externalStoreName'] = request.external_store_name
23274
- if not UtilClient.is_unset(request.parameter):
23275
- body['parameter'] = request.parameter
23276
- if not UtilClient.is_unset(request.store_type):
23277
- body['storeType'] = request.store_type
23278
- req = open_api_models.OpenApiRequest(
23279
- host_map=host_map,
23280
- headers=headers,
23281
- body=OpenApiUtilClient.parse_to_map(body)
23282
- )
23283
- params = open_api_models.Params(
23284
- action='UpdateOssExternalStore',
23285
- version='2020-12-30',
23286
- protocol='HTTPS',
23287
- pathname=f'/externalstores/{external_store_name}',
23288
- method='PUT',
23289
- auth_type='AK',
23290
- style='ROA',
23291
- req_body_type='json',
23292
- body_type='none'
23293
- )
23294
- return TeaCore.from_map(
23295
- sls_20201230_models.UpdateOssExternalStoreResponse(),
23296
- self.execute(params, req, runtime)
23297
- )
23298
-
23299
- async def update_oss_external_store_with_options_async(
23300
- self,
23301
- project: str,
23302
- external_store_name: str,
23303
- request: sls_20201230_models.UpdateOssExternalStoreRequest,
23304
- headers: Dict[str, str],
23305
- runtime: util_models.RuntimeOptions,
23306
- ) -> sls_20201230_models.UpdateOssExternalStoreResponse:
23307
- """
23308
- @summary Updates an Object Storage Service (OSS) external store.
23309
-
23310
- @description ### [](#)Usage notes
23311
- Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
23312
-
23313
- @param request: UpdateOssExternalStoreRequest
23314
- @param headers: map
23315
- @param runtime: runtime options for this request RuntimeOptions
23316
- @return: UpdateOssExternalStoreResponse
23317
- """
23318
- UtilClient.validate_model(request)
23319
- host_map = {}
23320
- host_map['project'] = project
23321
- body = {}
23322
- if not UtilClient.is_unset(request.external_store_name):
23323
- body['externalStoreName'] = request.external_store_name
23324
- if not UtilClient.is_unset(request.parameter):
23325
- body['parameter'] = request.parameter
23326
- if not UtilClient.is_unset(request.store_type):
23327
- body['storeType'] = request.store_type
23328
- req = open_api_models.OpenApiRequest(
23329
- host_map=host_map,
23330
- headers=headers,
23331
- body=OpenApiUtilClient.parse_to_map(body)
23332
- )
23333
- params = open_api_models.Params(
23334
- action='UpdateOssExternalStore',
23335
- version='2020-12-30',
23336
- protocol='HTTPS',
23337
- pathname=f'/externalstores/{external_store_name}',
23338
- method='PUT',
23339
- auth_type='AK',
23340
- style='ROA',
23341
- req_body_type='json',
23342
- body_type='none'
23343
- )
23344
- return TeaCore.from_map(
23345
- sls_20201230_models.UpdateOssExternalStoreResponse(),
23346
- await self.execute_async(params, req, runtime)
23347
- )
23348
-
23349
- def update_oss_external_store(
23350
- self,
23351
- project: str,
23352
- external_store_name: str,
23353
- request: sls_20201230_models.UpdateOssExternalStoreRequest,
23354
- ) -> sls_20201230_models.UpdateOssExternalStoreResponse:
23355
- """
23356
- @summary Updates an Object Storage Service (OSS) external store.
23357
-
23358
- @description ### [](#)Usage notes
23359
- Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
23360
-
23361
- @param request: UpdateOssExternalStoreRequest
23362
- @return: UpdateOssExternalStoreResponse
23363
- """
23364
- runtime = util_models.RuntimeOptions()
23365
- headers = {}
23366
- return self.update_oss_external_store_with_options(project, external_store_name, request, headers, runtime)
23367
-
23368
- async def update_oss_external_store_async(
23369
- self,
23370
- project: str,
23371
- external_store_name: str,
23372
- request: sls_20201230_models.UpdateOssExternalStoreRequest,
23373
- ) -> sls_20201230_models.UpdateOssExternalStoreResponse:
23374
- """
23375
- @summary Updates an Object Storage Service (OSS) external store.
23376
-
23377
- @description ### [](#)Usage notes
23378
- Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
23379
-
23380
- @param request: UpdateOssExternalStoreRequest
23381
- @return: UpdateOssExternalStoreResponse
23382
- """
23383
- runtime = util_models.RuntimeOptions()
23384
- headers = {}
23385
- return await self.update_oss_external_store_with_options_async(project, external_store_name, request, headers, runtime)
23386
-
23387
22835
  def update_project_with_options(
23388
22836
  self,
23389
22837
  project: str,
@@ -23542,144 +22990,6 @@ class Client(OpenApiClient):
23542
22990
  headers = {}
23543
22991
  return await self.update_project_with_options_async(project, request, headers, runtime)
23544
22992
 
23545
- def update_rds_external_store_with_options(
23546
- self,
23547
- project: str,
23548
- external_store_name: str,
23549
- request: sls_20201230_models.UpdateRdsExternalStoreRequest,
23550
- headers: Dict[str, str],
23551
- runtime: util_models.RuntimeOptions,
23552
- ) -> sls_20201230_models.UpdateRdsExternalStoreResponse:
23553
- """
23554
- @summary Updates an ApsaraDB RDS external store.
23555
-
23556
- @description ### [](#)Usage notes
23557
- Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
23558
-
23559
- @param request: UpdateRdsExternalStoreRequest
23560
- @param headers: map
23561
- @param runtime: runtime options for this request RuntimeOptions
23562
- @return: UpdateRdsExternalStoreResponse
23563
- """
23564
- UtilClient.validate_model(request)
23565
- host_map = {}
23566
- host_map['project'] = project
23567
- body = {}
23568
- if not UtilClient.is_unset(request.external_store_name):
23569
- body['externalStoreName'] = request.external_store_name
23570
- if not UtilClient.is_unset(request.parameter):
23571
- body['parameter'] = request.parameter
23572
- if not UtilClient.is_unset(request.store_type):
23573
- body['storeType'] = request.store_type
23574
- req = open_api_models.OpenApiRequest(
23575
- host_map=host_map,
23576
- headers=headers,
23577
- body=OpenApiUtilClient.parse_to_map(body)
23578
- )
23579
- params = open_api_models.Params(
23580
- action='UpdateRdsExternalStore',
23581
- version='2020-12-30',
23582
- protocol='HTTPS',
23583
- pathname=f'/externalstores/{external_store_name}',
23584
- method='PUT',
23585
- auth_type='AK',
23586
- style='ROA',
23587
- req_body_type='json',
23588
- body_type='none'
23589
- )
23590
- return TeaCore.from_map(
23591
- sls_20201230_models.UpdateRdsExternalStoreResponse(),
23592
- self.execute(params, req, runtime)
23593
- )
23594
-
23595
- async def update_rds_external_store_with_options_async(
23596
- self,
23597
- project: str,
23598
- external_store_name: str,
23599
- request: sls_20201230_models.UpdateRdsExternalStoreRequest,
23600
- headers: Dict[str, str],
23601
- runtime: util_models.RuntimeOptions,
23602
- ) -> sls_20201230_models.UpdateRdsExternalStoreResponse:
23603
- """
23604
- @summary Updates an ApsaraDB RDS external store.
23605
-
23606
- @description ### [](#)Usage notes
23607
- Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
23608
-
23609
- @param request: UpdateRdsExternalStoreRequest
23610
- @param headers: map
23611
- @param runtime: runtime options for this request RuntimeOptions
23612
- @return: UpdateRdsExternalStoreResponse
23613
- """
23614
- UtilClient.validate_model(request)
23615
- host_map = {}
23616
- host_map['project'] = project
23617
- body = {}
23618
- if not UtilClient.is_unset(request.external_store_name):
23619
- body['externalStoreName'] = request.external_store_name
23620
- if not UtilClient.is_unset(request.parameter):
23621
- body['parameter'] = request.parameter
23622
- if not UtilClient.is_unset(request.store_type):
23623
- body['storeType'] = request.store_type
23624
- req = open_api_models.OpenApiRequest(
23625
- host_map=host_map,
23626
- headers=headers,
23627
- body=OpenApiUtilClient.parse_to_map(body)
23628
- )
23629
- params = open_api_models.Params(
23630
- action='UpdateRdsExternalStore',
23631
- version='2020-12-30',
23632
- protocol='HTTPS',
23633
- pathname=f'/externalstores/{external_store_name}',
23634
- method='PUT',
23635
- auth_type='AK',
23636
- style='ROA',
23637
- req_body_type='json',
23638
- body_type='none'
23639
- )
23640
- return TeaCore.from_map(
23641
- sls_20201230_models.UpdateRdsExternalStoreResponse(),
23642
- await self.execute_async(params, req, runtime)
23643
- )
23644
-
23645
- def update_rds_external_store(
23646
- self,
23647
- project: str,
23648
- external_store_name: str,
23649
- request: sls_20201230_models.UpdateRdsExternalStoreRequest,
23650
- ) -> sls_20201230_models.UpdateRdsExternalStoreResponse:
23651
- """
23652
- @summary Updates an ApsaraDB RDS external store.
23653
-
23654
- @description ### [](#)Usage notes
23655
- Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
23656
-
23657
- @param request: UpdateRdsExternalStoreRequest
23658
- @return: UpdateRdsExternalStoreResponse
23659
- """
23660
- runtime = util_models.RuntimeOptions()
23661
- headers = {}
23662
- return self.update_rds_external_store_with_options(project, external_store_name, request, headers, runtime)
23663
-
23664
- async def update_rds_external_store_async(
23665
- self,
23666
- project: str,
23667
- external_store_name: str,
23668
- request: sls_20201230_models.UpdateRdsExternalStoreRequest,
23669
- ) -> sls_20201230_models.UpdateRdsExternalStoreResponse:
23670
- """
23671
- @summary Updates an ApsaraDB RDS external store.
23672
-
23673
- @description ### [](#)Usage notes
23674
- Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
23675
-
23676
- @param request: UpdateRdsExternalStoreRequest
23677
- @return: UpdateRdsExternalStoreResponse
23678
- """
23679
- runtime = util_models.RuntimeOptions()
23680
- headers = {}
23681
- return await self.update_rds_external_store_with_options_async(project, external_store_name, request, headers, runtime)
23682
-
23683
22993
  def update_saved_search_with_options(
23684
22994
  self,
23685
22995
  project: str,