alibabacloud-sls20201230 5.2.1__py3-none-any.whl → 5.2.2__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.
@@ -3,7 +3,6 @@
3
3
  from typing import Dict
4
4
  from Tea.core import TeaCore
5
5
 
6
- from alibabacloud_gateway_spi.client import Client as SPIClient
7
6
  from alibabacloud_tea_openapi.client import Client as OpenApiClient
8
7
  from alibabacloud_tea_openapi import models as open_api_models
9
8
  from alibabacloud_gateway_sls.client import Client as GatewayClientClient
@@ -17,15 +16,13 @@ class Client(OpenApiClient):
17
16
  """
18
17
  *\
19
18
  """
20
- _client: SPIClient = None
21
-
22
19
  def __init__(
23
20
  self,
24
21
  config: open_api_models.Config,
25
22
  ):
26
23
  super().__init__(config)
27
- self._client = GatewayClientClient()
28
- self._spi = self._client
24
+ gateway_client = GatewayClientClient()
25
+ self._spi = gateway_client
29
26
  self._signature_algorithm = 'v2'
30
27
  self._endpoint_rule = 'central'
31
28
 
@@ -428,11 +425,16 @@ class Client(OpenApiClient):
428
425
  query['consumer'] = request.consumer
429
426
  if not UtilClient.is_unset(request.force_success):
430
427
  query['forceSuccess'] = request.force_success
428
+ body = {}
429
+ if not UtilClient.is_unset(request.checkpoint):
430
+ body['checkpoint'] = request.checkpoint
431
+ if not UtilClient.is_unset(request.shard):
432
+ body['shard'] = request.shard
431
433
  req = open_api_models.OpenApiRequest(
432
434
  host_map=host_map,
433
435
  headers=headers,
434
436
  query=OpenApiUtilClient.query(query),
435
- body=UtilClient.to_array(request.body)
437
+ body=OpenApiUtilClient.parse_to_map(body)
436
438
  )
437
439
  params = open_api_models.Params(
438
440
  action='ConsumerGroupUpdateCheckPoint',
@@ -475,11 +477,16 @@ class Client(OpenApiClient):
475
477
  query['consumer'] = request.consumer
476
478
  if not UtilClient.is_unset(request.force_success):
477
479
  query['forceSuccess'] = request.force_success
480
+ body = {}
481
+ if not UtilClient.is_unset(request.checkpoint):
482
+ body['checkpoint'] = request.checkpoint
483
+ if not UtilClient.is_unset(request.shard):
484
+ body['shard'] = request.shard
478
485
  req = open_api_models.OpenApiRequest(
479
486
  host_map=host_map,
480
487
  headers=headers,
481
488
  query=OpenApiUtilClient.query(query),
482
- body=UtilClient.to_array(request.body)
489
+ body=OpenApiUtilClient.parse_to_map(body)
483
490
  )
484
491
  params = open_api_models.Params(
485
492
  action='ConsumerGroupUpdateCheckPoint',
@@ -1014,7 +1021,7 @@ class Client(OpenApiClient):
1014
1021
  runtime: util_models.RuntimeOptions,
1015
1022
  ) -> sls_20201230_models.CreateConsumerGroupResponse:
1016
1023
  """
1017
- @summary Creates a consumer group for a Logstore.
1024
+ @summary Creates a consumer group for a specified Logstore.
1018
1025
 
1019
1026
  @description ### Usage notes
1020
1027
  Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
@@ -1066,7 +1073,7 @@ class Client(OpenApiClient):
1066
1073
  runtime: util_models.RuntimeOptions,
1067
1074
  ) -> sls_20201230_models.CreateConsumerGroupResponse:
1068
1075
  """
1069
- @summary Creates a consumer group for a Logstore.
1076
+ @summary Creates a consumer group for a specified Logstore.
1070
1077
 
1071
1078
  @description ### Usage notes
1072
1079
  Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
@@ -1116,7 +1123,7 @@ class Client(OpenApiClient):
1116
1123
  request: sls_20201230_models.CreateConsumerGroupRequest,
1117
1124
  ) -> sls_20201230_models.CreateConsumerGroupResponse:
1118
1125
  """
1119
- @summary Creates a consumer group for a Logstore.
1126
+ @summary Creates a consumer group for a specified Logstore.
1120
1127
 
1121
1128
  @description ### Usage notes
1122
1129
  Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
@@ -1137,7 +1144,7 @@ class Client(OpenApiClient):
1137
1144
  request: sls_20201230_models.CreateConsumerGroupRequest,
1138
1145
  ) -> sls_20201230_models.CreateConsumerGroupResponse:
1139
1146
  """
1140
- @summary Creates a consumer group for a Logstore.
1147
+ @summary Creates a consumer group for a specified Logstore.
1141
1148
 
1142
1149
  @description ### Usage notes
1143
1150
  Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
@@ -4071,7 +4078,7 @@ class Client(OpenApiClient):
4071
4078
  auth_type='AK',
4072
4079
  style='ROA',
4073
4080
  req_body_type='json',
4074
- body_type='json'
4081
+ body_type='none'
4075
4082
  )
4076
4083
  return TeaCore.from_map(
4077
4084
  sls_20201230_models.DeleteCollectionPolicyResponse(),
@@ -4112,7 +4119,7 @@ class Client(OpenApiClient):
4112
4119
  auth_type='AK',
4113
4120
  style='ROA',
4114
4121
  req_body_type='json',
4115
- body_type='json'
4122
+ body_type='none'
4116
4123
  )
4117
4124
  return TeaCore.from_map(
4118
4125
  sls_20201230_models.DeleteCollectionPolicyResponse(),
@@ -5381,7 +5388,7 @@ class Client(OpenApiClient):
5381
5388
  runtime: util_models.RuntimeOptions,
5382
5389
  ) -> sls_20201230_models.DeleteOSSExportResponse:
5383
5390
  """
5384
- @summary 删除OSS投递任务
5391
+ @summary Deletes an Object Storage Service (OSS) data shipping job.
5385
5392
 
5386
5393
  @param headers: map
5387
5394
  @param runtime: runtime options for this request RuntimeOptions
@@ -5417,7 +5424,7 @@ class Client(OpenApiClient):
5417
5424
  runtime: util_models.RuntimeOptions,
5418
5425
  ) -> sls_20201230_models.DeleteOSSExportResponse:
5419
5426
  """
5420
- @summary 删除OSS投递任务
5427
+ @summary Deletes an Object Storage Service (OSS) data shipping job.
5421
5428
 
5422
5429
  @param headers: map
5423
5430
  @param runtime: runtime options for this request RuntimeOptions
@@ -5451,7 +5458,7 @@ class Client(OpenApiClient):
5451
5458
  oss_export_name: str,
5452
5459
  ) -> sls_20201230_models.DeleteOSSExportResponse:
5453
5460
  """
5454
- @summary 删除OSS投递任务
5461
+ @summary Deletes an Object Storage Service (OSS) data shipping job.
5455
5462
 
5456
5463
  @return: DeleteOSSExportResponse
5457
5464
  """
@@ -5465,7 +5472,7 @@ class Client(OpenApiClient):
5465
5472
  oss_export_name: str,
5466
5473
  ) -> sls_20201230_models.DeleteOSSExportResponse:
5467
5474
  """
5468
- @summary 删除OSS投递任务
5475
+ @summary Deletes an Object Storage Service (OSS) data shipping job.
5469
5476
 
5470
5477
  @return: DeleteOSSExportResponse
5471
5478
  """
@@ -6089,130 +6096,6 @@ class Client(OpenApiClient):
6089
6096
  headers = {}
6090
6097
  return await self.delete_scheduled_sqlwith_options_async(project, scheduled_sqlname, headers, runtime)
6091
6098
 
6092
- def delete_shipper_with_options(
6093
- self,
6094
- project: str,
6095
- logstore: str,
6096
- shipper_name: str,
6097
- headers: Dict[str, str],
6098
- runtime: util_models.RuntimeOptions,
6099
- ) -> sls_20201230_models.DeleteShipperResponse:
6100
- """
6101
- @deprecated OpenAPI DeleteShipper is deprecated
6102
-
6103
- @summary Deletes the log shipping job of a Logstore.
6104
-
6105
- @description Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
6106
-
6107
- @param headers: map
6108
- @param runtime: runtime options for this request RuntimeOptions
6109
- @return: DeleteShipperResponse
6110
- Deprecated
6111
- """
6112
- host_map = {}
6113
- host_map['project'] = project
6114
- req = open_api_models.OpenApiRequest(
6115
- host_map=host_map,
6116
- headers=headers
6117
- )
6118
- params = open_api_models.Params(
6119
- action='DeleteShipper',
6120
- version='2020-12-30',
6121
- protocol='HTTPS',
6122
- pathname=f'/logstores/{logstore}/shipper/{shipper_name}',
6123
- method='DELETE',
6124
- auth_type='AK',
6125
- style='ROA',
6126
- req_body_type='json',
6127
- body_type='none'
6128
- )
6129
- return TeaCore.from_map(
6130
- sls_20201230_models.DeleteShipperResponse(),
6131
- self.execute(params, req, runtime)
6132
- )
6133
-
6134
- async def delete_shipper_with_options_async(
6135
- self,
6136
- project: str,
6137
- logstore: str,
6138
- shipper_name: str,
6139
- headers: Dict[str, str],
6140
- runtime: util_models.RuntimeOptions,
6141
- ) -> sls_20201230_models.DeleteShipperResponse:
6142
- """
6143
- @deprecated OpenAPI DeleteShipper is deprecated
6144
-
6145
- @summary Deletes the log shipping job of a Logstore.
6146
-
6147
- @description Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
6148
-
6149
- @param headers: map
6150
- @param runtime: runtime options for this request RuntimeOptions
6151
- @return: DeleteShipperResponse
6152
- Deprecated
6153
- """
6154
- host_map = {}
6155
- host_map['project'] = project
6156
- req = open_api_models.OpenApiRequest(
6157
- host_map=host_map,
6158
- headers=headers
6159
- )
6160
- params = open_api_models.Params(
6161
- action='DeleteShipper',
6162
- version='2020-12-30',
6163
- protocol='HTTPS',
6164
- pathname=f'/logstores/{logstore}/shipper/{shipper_name}',
6165
- method='DELETE',
6166
- auth_type='AK',
6167
- style='ROA',
6168
- req_body_type='json',
6169
- body_type='none'
6170
- )
6171
- return TeaCore.from_map(
6172
- sls_20201230_models.DeleteShipperResponse(),
6173
- await self.execute_async(params, req, runtime)
6174
- )
6175
-
6176
- def delete_shipper(
6177
- self,
6178
- project: str,
6179
- logstore: str,
6180
- shipper_name: str,
6181
- ) -> sls_20201230_models.DeleteShipperResponse:
6182
- """
6183
- @deprecated OpenAPI DeleteShipper is deprecated
6184
-
6185
- @summary Deletes the log shipping job of a Logstore.
6186
-
6187
- @description Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
6188
-
6189
- @return: DeleteShipperResponse
6190
- Deprecated
6191
- """
6192
- runtime = util_models.RuntimeOptions()
6193
- headers = {}
6194
- return self.delete_shipper_with_options(project, logstore, shipper_name, headers, runtime)
6195
-
6196
- async def delete_shipper_async(
6197
- self,
6198
- project: str,
6199
- logstore: str,
6200
- shipper_name: str,
6201
- ) -> sls_20201230_models.DeleteShipperResponse:
6202
- """
6203
- @deprecated OpenAPI DeleteShipper is deprecated
6204
-
6205
- @summary Deletes the log shipping job of a Logstore.
6206
-
6207
- @description Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
6208
-
6209
- @return: DeleteShipperResponse
6210
- Deprecated
6211
- """
6212
- runtime = util_models.RuntimeOptions()
6213
- headers = {}
6214
- return await self.delete_shipper_with_options_async(project, logstore, shipper_name, headers, runtime)
6215
-
6216
6099
  def delete_store_view_with_options(
6217
6100
  self,
6218
6101
  project: str,
@@ -10404,8 +10287,11 @@ class Client(OpenApiClient):
10404
10287
  """
10405
10288
  @summary Queries a project policy.
10406
10289
 
10407
- @description ### Usage notes
10290
+ @description ### [](#)Usage notes
10408
10291
  Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
10292
+ An AccessKey pair is created and obtained. For more information, see [AccessKey pair](https://help.aliyun.com/document_detail/29009.html).
10293
+ 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 Resource Access Management (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).
10294
+ 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)
10409
10295
 
10410
10296
  @param headers: map
10411
10297
  @param runtime: runtime options for this request RuntimeOptions
@@ -10442,8 +10328,11 @@ class Client(OpenApiClient):
10442
10328
  """
10443
10329
  @summary Queries a project policy.
10444
10330
 
10445
- @description ### Usage notes
10331
+ @description ### [](#)Usage notes
10446
10332
  Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
10333
+ An AccessKey pair is created and obtained. For more information, see [AccessKey pair](https://help.aliyun.com/document_detail/29009.html).
10334
+ 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 Resource Access Management (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).
10335
+ 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)
10447
10336
 
10448
10337
  @param headers: map
10449
10338
  @param runtime: runtime options for this request RuntimeOptions
@@ -10478,8 +10367,11 @@ class Client(OpenApiClient):
10478
10367
  """
10479
10368
  @summary Queries a project policy.
10480
10369
 
10481
- @description ### Usage notes
10370
+ @description ### [](#)Usage notes
10482
10371
  Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
10372
+ An AccessKey pair is created and obtained. For more information, see [AccessKey pair](https://help.aliyun.com/document_detail/29009.html).
10373
+ 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 Resource Access Management (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).
10374
+ 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)
10483
10375
 
10484
10376
  @return: GetProjectPolicyResponse
10485
10377
  """
@@ -10494,8 +10386,11 @@ class Client(OpenApiClient):
10494
10386
  """
10495
10387
  @summary Queries a project policy.
10496
10388
 
10497
- @description ### Usage notes
10389
+ @description ### [](#)Usage notes
10498
10390
  Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
10391
+ An AccessKey pair is created and obtained. For more information, see [AccessKey pair](https://help.aliyun.com/document_detail/29009.html).
10392
+ 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 Resource Access Management (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).
10393
+ 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)
10499
10394
 
10500
10395
  @return: GetProjectPolicyResponse
10501
10396
  """
@@ -10715,164 +10610,6 @@ class Client(OpenApiClient):
10715
10610
  headers = {}
10716
10611
  return await self.get_scheduled_sqlwith_options_async(project, scheduled_sqlname, headers, runtime)
10717
10612
 
10718
- def get_shipper_status_with_options(
10719
- self,
10720
- project: str,
10721
- logstore: str,
10722
- shipper_name: str,
10723
- request: sls_20201230_models.GetShipperStatusRequest,
10724
- headers: Dict[str, str],
10725
- runtime: util_models.RuntimeOptions,
10726
- ) -> sls_20201230_models.GetShipperStatusResponse:
10727
- """
10728
- @deprecated OpenAPI GetShipperStatus is deprecated
10729
-
10730
- @summary Queries the status of a log shipping job.
10731
-
10732
- @description Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
10733
-
10734
- @param request: GetShipperStatusRequest
10735
- @param headers: map
10736
- @param runtime: runtime options for this request RuntimeOptions
10737
- @return: GetShipperStatusResponse
10738
- Deprecated
10739
- """
10740
- UtilClient.validate_model(request)
10741
- host_map = {}
10742
- host_map['project'] = project
10743
- query = {}
10744
- if not UtilClient.is_unset(request.from_):
10745
- query['from'] = request.from_
10746
- if not UtilClient.is_unset(request.offset):
10747
- query['offset'] = request.offset
10748
- if not UtilClient.is_unset(request.size):
10749
- query['size'] = request.size
10750
- if not UtilClient.is_unset(request.status):
10751
- query['status'] = request.status
10752
- if not UtilClient.is_unset(request.to):
10753
- query['to'] = request.to
10754
- req = open_api_models.OpenApiRequest(
10755
- host_map=host_map,
10756
- headers=headers,
10757
- query=OpenApiUtilClient.query(query)
10758
- )
10759
- params = open_api_models.Params(
10760
- action='GetShipperStatus',
10761
- version='2020-12-30',
10762
- protocol='HTTPS',
10763
- pathname=f'/logstores/{logstore}/shipper/{shipper_name}/tasks',
10764
- method='GET',
10765
- auth_type='AK',
10766
- style='ROA',
10767
- req_body_type='json',
10768
- body_type='json'
10769
- )
10770
- return TeaCore.from_map(
10771
- sls_20201230_models.GetShipperStatusResponse(),
10772
- self.execute(params, req, runtime)
10773
- )
10774
-
10775
- async def get_shipper_status_with_options_async(
10776
- self,
10777
- project: str,
10778
- logstore: str,
10779
- shipper_name: str,
10780
- request: sls_20201230_models.GetShipperStatusRequest,
10781
- headers: Dict[str, str],
10782
- runtime: util_models.RuntimeOptions,
10783
- ) -> sls_20201230_models.GetShipperStatusResponse:
10784
- """
10785
- @deprecated OpenAPI GetShipperStatus is deprecated
10786
-
10787
- @summary Queries the status of a log shipping job.
10788
-
10789
- @description Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
10790
-
10791
- @param request: GetShipperStatusRequest
10792
- @param headers: map
10793
- @param runtime: runtime options for this request RuntimeOptions
10794
- @return: GetShipperStatusResponse
10795
- Deprecated
10796
- """
10797
- UtilClient.validate_model(request)
10798
- host_map = {}
10799
- host_map['project'] = project
10800
- query = {}
10801
- if not UtilClient.is_unset(request.from_):
10802
- query['from'] = request.from_
10803
- if not UtilClient.is_unset(request.offset):
10804
- query['offset'] = request.offset
10805
- if not UtilClient.is_unset(request.size):
10806
- query['size'] = request.size
10807
- if not UtilClient.is_unset(request.status):
10808
- query['status'] = request.status
10809
- if not UtilClient.is_unset(request.to):
10810
- query['to'] = request.to
10811
- req = open_api_models.OpenApiRequest(
10812
- host_map=host_map,
10813
- headers=headers,
10814
- query=OpenApiUtilClient.query(query)
10815
- )
10816
- params = open_api_models.Params(
10817
- action='GetShipperStatus',
10818
- version='2020-12-30',
10819
- protocol='HTTPS',
10820
- pathname=f'/logstores/{logstore}/shipper/{shipper_name}/tasks',
10821
- method='GET',
10822
- auth_type='AK',
10823
- style='ROA',
10824
- req_body_type='json',
10825
- body_type='json'
10826
- )
10827
- return TeaCore.from_map(
10828
- sls_20201230_models.GetShipperStatusResponse(),
10829
- await self.execute_async(params, req, runtime)
10830
- )
10831
-
10832
- def get_shipper_status(
10833
- self,
10834
- project: str,
10835
- logstore: str,
10836
- shipper_name: str,
10837
- request: sls_20201230_models.GetShipperStatusRequest,
10838
- ) -> sls_20201230_models.GetShipperStatusResponse:
10839
- """
10840
- @deprecated OpenAPI GetShipperStatus is deprecated
10841
-
10842
- @summary Queries the status of a log shipping job.
10843
-
10844
- @description Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
10845
-
10846
- @param request: GetShipperStatusRequest
10847
- @return: GetShipperStatusResponse
10848
- Deprecated
10849
- """
10850
- runtime = util_models.RuntimeOptions()
10851
- headers = {}
10852
- return self.get_shipper_status_with_options(project, logstore, shipper_name, request, headers, runtime)
10853
-
10854
- async def get_shipper_status_async(
10855
- self,
10856
- project: str,
10857
- logstore: str,
10858
- shipper_name: str,
10859
- request: sls_20201230_models.GetShipperStatusRequest,
10860
- ) -> sls_20201230_models.GetShipperStatusResponse:
10861
- """
10862
- @deprecated OpenAPI GetShipperStatus is deprecated
10863
-
10864
- @summary Queries the status of a log shipping job.
10865
-
10866
- @description Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
10867
-
10868
- @param request: GetShipperStatusRequest
10869
- @return: GetShipperStatusResponse
10870
- Deprecated
10871
- """
10872
- runtime = util_models.RuntimeOptions()
10873
- headers = {}
10874
- return await self.get_shipper_status_with_options_async(project, logstore, shipper_name, request, headers, runtime)
10875
-
10876
10613
  def get_sls_service_with_options(
10877
10614
  self,
10878
10615
  headers: Dict[str, str],
@@ -11703,38 +11440,34 @@ class Client(OpenApiClient):
11703
11440
 
11704
11441
  def list_collection_policies_with_options(
11705
11442
  self,
11706
- tmp_req: sls_20201230_models.ListCollectionPoliciesRequest,
11443
+ request: sls_20201230_models.ListCollectionPoliciesRequest,
11707
11444
  headers: Dict[str, str],
11708
11445
  runtime: util_models.RuntimeOptions,
11709
11446
  ) -> sls_20201230_models.ListCollectionPoliciesResponse:
11710
11447
  """
11711
11448
  @summary 通过调用ListCollectionPolicies接口查看配置的日志采集规则
11712
11449
 
11713
- @param tmp_req: ListCollectionPoliciesRequest
11450
+ @param request: ListCollectionPoliciesRequest
11714
11451
  @param headers: map
11715
11452
  @param runtime: runtime options for this request RuntimeOptions
11716
11453
  @return: ListCollectionPoliciesResponse
11717
11454
  """
11718
- UtilClient.validate_model(tmp_req)
11719
- request = sls_20201230_models.ListCollectionPoliciesShrinkRequest()
11720
- OpenApiUtilClient.convert(tmp_req, request)
11721
- if not UtilClient.is_unset(tmp_req.attribute):
11722
- request.attribute_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.attribute, 'attribute', 'json')
11455
+ UtilClient.validate_model(request)
11723
11456
  query = {}
11724
- if not UtilClient.is_unset(request.attribute_shrink):
11725
- query['attribute'] = request.attribute_shrink
11457
+ if not UtilClient.is_unset(request.central_project):
11458
+ query['centralProject'] = request.central_project
11726
11459
  if not UtilClient.is_unset(request.data_code):
11727
11460
  query['dataCode'] = request.data_code
11728
11461
  if not UtilClient.is_unset(request.instance_id):
11729
11462
  query['instanceId'] = request.instance_id
11730
- if not UtilClient.is_unset(request.page_num):
11731
- query['pageNum'] = request.page_num
11732
- if not UtilClient.is_unset(request.page_size):
11733
- query['pageSize'] = request.page_size
11463
+ if not UtilClient.is_unset(request.offset):
11464
+ query['offset'] = request.offset
11734
11465
  if not UtilClient.is_unset(request.policy_name):
11735
11466
  query['policyName'] = request.policy_name
11736
11467
  if not UtilClient.is_unset(request.product_code):
11737
11468
  query['productCode'] = request.product_code
11469
+ if not UtilClient.is_unset(request.size):
11470
+ query['size'] = request.size
11738
11471
  req = open_api_models.OpenApiRequest(
11739
11472
  headers=headers,
11740
11473
  query=OpenApiUtilClient.query(query)
@@ -11757,38 +11490,34 @@ class Client(OpenApiClient):
11757
11490
 
11758
11491
  async def list_collection_policies_with_options_async(
11759
11492
  self,
11760
- tmp_req: sls_20201230_models.ListCollectionPoliciesRequest,
11493
+ request: sls_20201230_models.ListCollectionPoliciesRequest,
11761
11494
  headers: Dict[str, str],
11762
11495
  runtime: util_models.RuntimeOptions,
11763
11496
  ) -> sls_20201230_models.ListCollectionPoliciesResponse:
11764
11497
  """
11765
11498
  @summary 通过调用ListCollectionPolicies接口查看配置的日志采集规则
11766
11499
 
11767
- @param tmp_req: ListCollectionPoliciesRequest
11500
+ @param request: ListCollectionPoliciesRequest
11768
11501
  @param headers: map
11769
11502
  @param runtime: runtime options for this request RuntimeOptions
11770
11503
  @return: ListCollectionPoliciesResponse
11771
11504
  """
11772
- UtilClient.validate_model(tmp_req)
11773
- request = sls_20201230_models.ListCollectionPoliciesShrinkRequest()
11774
- OpenApiUtilClient.convert(tmp_req, request)
11775
- if not UtilClient.is_unset(tmp_req.attribute):
11776
- request.attribute_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.attribute, 'attribute', 'json')
11505
+ UtilClient.validate_model(request)
11777
11506
  query = {}
11778
- if not UtilClient.is_unset(request.attribute_shrink):
11779
- query['attribute'] = request.attribute_shrink
11507
+ if not UtilClient.is_unset(request.central_project):
11508
+ query['centralProject'] = request.central_project
11780
11509
  if not UtilClient.is_unset(request.data_code):
11781
11510
  query['dataCode'] = request.data_code
11782
11511
  if not UtilClient.is_unset(request.instance_id):
11783
11512
  query['instanceId'] = request.instance_id
11784
- if not UtilClient.is_unset(request.page_num):
11785
- query['pageNum'] = request.page_num
11786
- if not UtilClient.is_unset(request.page_size):
11787
- query['pageSize'] = request.page_size
11513
+ if not UtilClient.is_unset(request.offset):
11514
+ query['offset'] = request.offset
11788
11515
  if not UtilClient.is_unset(request.policy_name):
11789
11516
  query['policyName'] = request.policy_name
11790
11517
  if not UtilClient.is_unset(request.product_code):
11791
11518
  query['productCode'] = request.product_code
11519
+ if not UtilClient.is_unset(request.size):
11520
+ query['size'] = request.size
11792
11521
  req = open_api_models.OpenApiRequest(
11793
11522
  headers=headers,
11794
11523
  query=OpenApiUtilClient.query(query)
@@ -12497,145 +12226,15 @@ class Client(OpenApiClient):
12497
12226
  headers = {}
12498
12227
  return await self.list_etls_with_options_async(project, request, headers, runtime)
12499
12228
 
12500
- def list_external_store_with_options(
12229
+ def list_log_stores_with_options(
12501
12230
  self,
12502
12231
  project: str,
12503
- request: sls_20201230_models.ListExternalStoreRequest,
12232
+ request: sls_20201230_models.ListLogStoresRequest,
12504
12233
  headers: Dict[str, str],
12505
12234
  runtime: util_models.RuntimeOptions,
12506
- ) -> sls_20201230_models.ListExternalStoreResponse:
12235
+ ) -> sls_20201230_models.ListLogStoresResponse:
12507
12236
  """
12508
- @summary Queries a list of external stores.
12509
-
12510
- @description Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
12511
-
12512
- @param request: ListExternalStoreRequest
12513
- @param headers: map
12514
- @param runtime: runtime options for this request RuntimeOptions
12515
- @return: ListExternalStoreResponse
12516
- """
12517
- UtilClient.validate_model(request)
12518
- host_map = {}
12519
- host_map['project'] = project
12520
- query = {}
12521
- if not UtilClient.is_unset(request.external_store_name):
12522
- query['externalStoreName'] = request.external_store_name
12523
- if not UtilClient.is_unset(request.offset):
12524
- query['offset'] = request.offset
12525
- if not UtilClient.is_unset(request.sizs):
12526
- query['sizs'] = request.sizs
12527
- req = open_api_models.OpenApiRequest(
12528
- host_map=host_map,
12529
- headers=headers,
12530
- query=OpenApiUtilClient.query(query)
12531
- )
12532
- params = open_api_models.Params(
12533
- action='ListExternalStore',
12534
- version='2020-12-30',
12535
- protocol='HTTPS',
12536
- pathname=f'/externalstores',
12537
- method='GET',
12538
- auth_type='AK',
12539
- style='ROA',
12540
- req_body_type='json',
12541
- body_type='json'
12542
- )
12543
- return TeaCore.from_map(
12544
- sls_20201230_models.ListExternalStoreResponse(),
12545
- self.execute(params, req, runtime)
12546
- )
12547
-
12548
- async def list_external_store_with_options_async(
12549
- self,
12550
- project: str,
12551
- request: sls_20201230_models.ListExternalStoreRequest,
12552
- headers: Dict[str, str],
12553
- runtime: util_models.RuntimeOptions,
12554
- ) -> sls_20201230_models.ListExternalStoreResponse:
12555
- """
12556
- @summary Queries a list of external stores.
12557
-
12558
- @description Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
12559
-
12560
- @param request: ListExternalStoreRequest
12561
- @param headers: map
12562
- @param runtime: runtime options for this request RuntimeOptions
12563
- @return: ListExternalStoreResponse
12564
- """
12565
- UtilClient.validate_model(request)
12566
- host_map = {}
12567
- host_map['project'] = project
12568
- query = {}
12569
- if not UtilClient.is_unset(request.external_store_name):
12570
- query['externalStoreName'] = request.external_store_name
12571
- if not UtilClient.is_unset(request.offset):
12572
- query['offset'] = request.offset
12573
- if not UtilClient.is_unset(request.sizs):
12574
- query['sizs'] = request.sizs
12575
- req = open_api_models.OpenApiRequest(
12576
- host_map=host_map,
12577
- headers=headers,
12578
- query=OpenApiUtilClient.query(query)
12579
- )
12580
- params = open_api_models.Params(
12581
- action='ListExternalStore',
12582
- version='2020-12-30',
12583
- protocol='HTTPS',
12584
- pathname=f'/externalstores',
12585
- method='GET',
12586
- auth_type='AK',
12587
- style='ROA',
12588
- req_body_type='json',
12589
- body_type='json'
12590
- )
12591
- return TeaCore.from_map(
12592
- sls_20201230_models.ListExternalStoreResponse(),
12593
- await self.execute_async(params, req, runtime)
12594
- )
12595
-
12596
- def list_external_store(
12597
- self,
12598
- project: str,
12599
- request: sls_20201230_models.ListExternalStoreRequest,
12600
- ) -> sls_20201230_models.ListExternalStoreResponse:
12601
- """
12602
- @summary Queries a list of external stores.
12603
-
12604
- @description Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
12605
-
12606
- @param request: ListExternalStoreRequest
12607
- @return: ListExternalStoreResponse
12608
- """
12609
- runtime = util_models.RuntimeOptions()
12610
- headers = {}
12611
- return self.list_external_store_with_options(project, request, headers, runtime)
12612
-
12613
- async def list_external_store_async(
12614
- self,
12615
- project: str,
12616
- request: sls_20201230_models.ListExternalStoreRequest,
12617
- ) -> sls_20201230_models.ListExternalStoreResponse:
12618
- """
12619
- @summary Queries a list of external stores.
12620
-
12621
- @description Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
12622
-
12623
- @param request: ListExternalStoreRequest
12624
- @return: ListExternalStoreResponse
12625
- """
12626
- runtime = util_models.RuntimeOptions()
12627
- headers = {}
12628
- return await self.list_external_store_with_options_async(project, request, headers, runtime)
12629
-
12630
- def list_log_stores_with_options(
12631
- self,
12632
- project: str,
12633
- request: sls_20201230_models.ListLogStoresRequest,
12634
- headers: Dict[str, str],
12635
- runtime: util_models.RuntimeOptions,
12636
- ) -> sls_20201230_models.ListLogStoresResponse:
12637
- """
12638
- @summary Queries all Logstores or Logstores that match specific conditions in a project.
12237
+ @summary Queries all Logstores or Logstores that match specific conditions in a project.
12639
12238
 
12640
12239
  @description ### Usage notes
12641
12240
  Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
@@ -14045,126 +13644,6 @@ class Client(OpenApiClient):
14045
13644
  headers = {}
14046
13645
  return await self.list_shards_with_options_async(project, logstore, headers, runtime)
14047
13646
 
14048
- def list_shipper_with_options(
14049
- self,
14050
- project: str,
14051
- logstore: str,
14052
- headers: Dict[str, str],
14053
- runtime: util_models.RuntimeOptions,
14054
- ) -> sls_20201230_models.ListShipperResponse:
14055
- """
14056
- @deprecated OpenAPI ListShipper is deprecated
14057
-
14058
- @summary Queries a list of log shipping jobs in a Logstore.
14059
-
14060
- @description Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
14061
-
14062
- @param headers: map
14063
- @param runtime: runtime options for this request RuntimeOptions
14064
- @return: ListShipperResponse
14065
- Deprecated
14066
- """
14067
- host_map = {}
14068
- host_map['project'] = project
14069
- req = open_api_models.OpenApiRequest(
14070
- host_map=host_map,
14071
- headers=headers
14072
- )
14073
- params = open_api_models.Params(
14074
- action='ListShipper',
14075
- version='2020-12-30',
14076
- protocol='HTTPS',
14077
- pathname=f'/logstores/{logstore}/shipper',
14078
- method='GET',
14079
- auth_type='AK',
14080
- style='ROA',
14081
- req_body_type='json',
14082
- body_type='json'
14083
- )
14084
- return TeaCore.from_map(
14085
- sls_20201230_models.ListShipperResponse(),
14086
- self.execute(params, req, runtime)
14087
- )
14088
-
14089
- async def list_shipper_with_options_async(
14090
- self,
14091
- project: str,
14092
- logstore: str,
14093
- headers: Dict[str, str],
14094
- runtime: util_models.RuntimeOptions,
14095
- ) -> sls_20201230_models.ListShipperResponse:
14096
- """
14097
- @deprecated OpenAPI ListShipper is deprecated
14098
-
14099
- @summary Queries a list of log shipping jobs in a Logstore.
14100
-
14101
- @description Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
14102
-
14103
- @param headers: map
14104
- @param runtime: runtime options for this request RuntimeOptions
14105
- @return: ListShipperResponse
14106
- Deprecated
14107
- """
14108
- host_map = {}
14109
- host_map['project'] = project
14110
- req = open_api_models.OpenApiRequest(
14111
- host_map=host_map,
14112
- headers=headers
14113
- )
14114
- params = open_api_models.Params(
14115
- action='ListShipper',
14116
- version='2020-12-30',
14117
- protocol='HTTPS',
14118
- pathname=f'/logstores/{logstore}/shipper',
14119
- method='GET',
14120
- auth_type='AK',
14121
- style='ROA',
14122
- req_body_type='json',
14123
- body_type='json'
14124
- )
14125
- return TeaCore.from_map(
14126
- sls_20201230_models.ListShipperResponse(),
14127
- await self.execute_async(params, req, runtime)
14128
- )
14129
-
14130
- def list_shipper(
14131
- self,
14132
- project: str,
14133
- logstore: str,
14134
- ) -> sls_20201230_models.ListShipperResponse:
14135
- """
14136
- @deprecated OpenAPI ListShipper is deprecated
14137
-
14138
- @summary Queries a list of log shipping jobs in a Logstore.
14139
-
14140
- @description Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
14141
-
14142
- @return: ListShipperResponse
14143
- Deprecated
14144
- """
14145
- runtime = util_models.RuntimeOptions()
14146
- headers = {}
14147
- return self.list_shipper_with_options(project, logstore, headers, runtime)
14148
-
14149
- async def list_shipper_async(
14150
- self,
14151
- project: str,
14152
- logstore: str,
14153
- ) -> sls_20201230_models.ListShipperResponse:
14154
- """
14155
- @deprecated OpenAPI ListShipper is deprecated
14156
-
14157
- @summary Queries a list of log shipping jobs in a Logstore.
14158
-
14159
- @description Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
14160
-
14161
- @return: ListShipperResponse
14162
- Deprecated
14163
- """
14164
- runtime = util_models.RuntimeOptions()
14165
- headers = {}
14166
- return await self.list_shipper_with_options_async(project, logstore, headers, runtime)
14167
-
14168
13647
  def list_store_views_with_options(
14169
13648
  self,
14170
13649
  project: str,
@@ -14302,6 +13781,15 @@ class Client(OpenApiClient):
14302
13781
 
14303
13782
  @description ### Usage notes
14304
13783
  Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
13784
+ An AccessKey pair is created and obtained. For more information, see [AccessKey pair](https://help.aliyun.com/document_detail/29009.html).
13785
+ 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 Resource Access Management (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).
13786
+ 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)
13787
+ For more information, see [Authorization rules](https://help.aliyun.com/document_detail/29049.html). The following types of resources are supported: project, Logstore, dashboard, machine group, and Logtail configuration.
13788
+ ### Authentication resources
13789
+ The following table describes the authorization information that is required for this operation. You can add the information to the Action element of a RAM policy statement to grant a RAM user or a RAM role the permissions to call this operation.
13790
+ |Action|Resource|
13791
+ |:---|:---|
13792
+ |`log:ListTagResources`|The resource format varies based on the resource type.\\-`acs:log:{#regionId}:{#accountId}:project/{#ProjectName}`\\-`acs:log:${regionName}:${accountId}:project/${projectName}/logstore/${logstoreName}`\\-`acs:log:${regionName}:${accountId}:project/${projectName}/dashboard/${dashboardName}`\\-`acs:log:${regionName}:${accountId}:project/${projectName}/machinegroup/${machineGroupName}`\\-`acs:log:${regionName}:${accountId}:project/${projectName}/logtailconfig/${logtailConfigName}`|
14305
13793
 
14306
13794
  @param tmp_req: ListTagResourcesRequest
14307
13795
  @param headers: map
@@ -14353,6 +13841,15 @@ class Client(OpenApiClient):
14353
13841
 
14354
13842
  @description ### Usage notes
14355
13843
  Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
13844
+ An AccessKey pair is created and obtained. For more information, see [AccessKey pair](https://help.aliyun.com/document_detail/29009.html).
13845
+ 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 Resource Access Management (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).
13846
+ 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)
13847
+ For more information, see [Authorization rules](https://help.aliyun.com/document_detail/29049.html). The following types of resources are supported: project, Logstore, dashboard, machine group, and Logtail configuration.
13848
+ ### Authentication resources
13849
+ The following table describes the authorization information that is required for this operation. You can add the information to the Action element of a RAM policy statement to grant a RAM user or a RAM role the permissions to call this operation.
13850
+ |Action|Resource|
13851
+ |:---|:---|
13852
+ |`log:ListTagResources`|The resource format varies based on the resource type.\\-`acs:log:{#regionId}:{#accountId}:project/{#ProjectName}`\\-`acs:log:${regionName}:${accountId}:project/${projectName}/logstore/${logstoreName}`\\-`acs:log:${regionName}:${accountId}:project/${projectName}/dashboard/${dashboardName}`\\-`acs:log:${regionName}:${accountId}:project/${projectName}/machinegroup/${machineGroupName}`\\-`acs:log:${regionName}:${accountId}:project/${projectName}/logtailconfig/${logtailConfigName}`|
14356
13853
 
14357
13854
  @param tmp_req: ListTagResourcesRequest
14358
13855
  @param headers: map
@@ -14402,6 +13899,15 @@ class Client(OpenApiClient):
14402
13899
 
14403
13900
  @description ### Usage notes
14404
13901
  Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
13902
+ An AccessKey pair is created and obtained. For more information, see [AccessKey pair](https://help.aliyun.com/document_detail/29009.html).
13903
+ 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 Resource Access Management (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).
13904
+ 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)
13905
+ For more information, see [Authorization rules](https://help.aliyun.com/document_detail/29049.html). The following types of resources are supported: project, Logstore, dashboard, machine group, and Logtail configuration.
13906
+ ### Authentication resources
13907
+ The following table describes the authorization information that is required for this operation. You can add the information to the Action element of a RAM policy statement to grant a RAM user or a RAM role the permissions to call this operation.
13908
+ |Action|Resource|
13909
+ |:---|:---|
13910
+ |`log:ListTagResources`|The resource format varies based on the resource type.\\-`acs:log:{#regionId}:{#accountId}:project/{#ProjectName}`\\-`acs:log:${regionName}:${accountId}:project/${projectName}/logstore/${logstoreName}`\\-`acs:log:${regionName}:${accountId}:project/${projectName}/dashboard/${dashboardName}`\\-`acs:log:${regionName}:${accountId}:project/${projectName}/machinegroup/${machineGroupName}`\\-`acs:log:${regionName}:${accountId}:project/${projectName}/logtailconfig/${logtailConfigName}`|
14405
13911
 
14406
13912
  @param request: ListTagResourcesRequest
14407
13913
  @return: ListTagResourcesResponse
@@ -14419,6 +13925,15 @@ class Client(OpenApiClient):
14419
13925
 
14420
13926
  @description ### Usage notes
14421
13927
  Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
13928
+ An AccessKey pair is created and obtained. For more information, see [AccessKey pair](https://help.aliyun.com/document_detail/29009.html).
13929
+ 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 Resource Access Management (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).
13930
+ 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)
13931
+ For more information, see [Authorization rules](https://help.aliyun.com/document_detail/29049.html). The following types of resources are supported: project, Logstore, dashboard, machine group, and Logtail configuration.
13932
+ ### Authentication resources
13933
+ The following table describes the authorization information that is required for this operation. You can add the information to the Action element of a RAM policy statement to grant a RAM user or a RAM role the permissions to call this operation.
13934
+ |Action|Resource|
13935
+ |:---|:---|
13936
+ |`log:ListTagResources`|The resource format varies based on the resource type.\\-`acs:log:{#regionId}:{#accountId}:project/{#ProjectName}`\\-`acs:log:${regionName}:${accountId}:project/${projectName}/logstore/${logstoreName}`\\-`acs:log:${regionName}:${accountId}:project/${projectName}/dashboard/${dashboardName}`\\-`acs:log:${regionName}:${accountId}:project/${projectName}/machinegroup/${machineGroupName}`\\-`acs:log:${regionName}:${accountId}:project/${projectName}/logtailconfig/${logtailConfigName}`|
14422
13937
 
14423
13938
  @param request: ListTagResourcesRequest
14424
13939
  @return: ListTagResourcesResponse
@@ -15180,7 +14695,7 @@ class Client(OpenApiClient):
15180
14695
  action='QueryMLServiceResults',
15181
14696
  version='2020-12-30',
15182
14697
  protocol='HTTPS',
15183
- pathname=f'/ml/service/{service_name}/analysis',
14698
+ pathname=f'/ml/v2/service/{service_name}/analysis',
15184
14699
  method='POST',
15185
14700
  auth_type='AK',
15186
14701
  style='ROA',
@@ -15223,7 +14738,7 @@ class Client(OpenApiClient):
15223
14738
  action='QueryMLServiceResults',
15224
14739
  version='2020-12-30',
15225
14740
  protocol='HTTPS',
15226
- pathname=f'/ml/service/{service_name}/analysis',
14741
+ pathname=f'/ml/v2/service/{service_name}/analysis',
15227
14742
  method='POST',
15228
14743
  auth_type='AK',
15229
14744
  style='ROA',
@@ -16440,10 +15955,19 @@ class Client(OpenApiClient):
16440
15955
  runtime: util_models.RuntimeOptions,
16441
15956
  ) -> sls_20201230_models.TagResourcesResponse:
16442
15957
  """
16443
- @summary Creates and adds one or more tags to a specified resource. You can add tags only to projects.
15958
+ @summary Creates and adds tags to a resource. You can add tags only to projects.
16444
15959
 
16445
15960
  @description ### Usage notes
16446
- Host consists of a project name and a Log Service endpoint. You must specify a project in Host.
15961
+ Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
15962
+ An AccessKey pair is created and obtained. For more information, see [AccessKey pair](https://help.aliyun.com/document_detail/29009.html).
15963
+ 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 Resource Access Management (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).
15964
+ 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)
15965
+ For more information, see [Authorization rules](https://help.aliyun.com/document_detail/29049.html). The following types of resources are supported: project, Logstore, dashboard, machine group, and Logtail configuration.
15966
+ ### Authentication resources
15967
+ The following table describes the authorization information that is required for this operation. You can add the information to the Action element of a RAM policy statement to grant a RAM user or a RAM role the permissions to call this operation.
15968
+ |Action|Resource|
15969
+ |:---|:---|
15970
+ |`log:TagResources`|The resource format varies based on the resource type.\\-`acs:log:{#regionId}:{#accountId}:project/{#ProjectName}`\\-`acs:log:${regionName}:${accountId}:project/${projectName}/logstore/${logstoreName}`\\-`acs:log:${regionName}:${accountId}:project/${projectName}/dashboard/${dashboardName}`\\-`acs:log:${regionName}:${accountId}:project/${projectName}/machinegroup/${machineGroupName}`\\-`acs:log:${regionName}:${accountId}:project/${projectName}/logtailconfig/${logtailConfigName}`|
16447
15971
 
16448
15972
  @param request: TagResourcesRequest
16449
15973
  @param headers: map
@@ -16485,10 +16009,19 @@ class Client(OpenApiClient):
16485
16009
  runtime: util_models.RuntimeOptions,
16486
16010
  ) -> sls_20201230_models.TagResourcesResponse:
16487
16011
  """
16488
- @summary Creates and adds one or more tags to a specified resource. You can add tags only to projects.
16012
+ @summary Creates and adds tags to a resource. You can add tags only to projects.
16489
16013
 
16490
16014
  @description ### Usage notes
16491
- Host consists of a project name and a Log Service endpoint. You must specify a project in Host.
16015
+ Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
16016
+ An AccessKey pair is created and obtained. For more information, see [AccessKey pair](https://help.aliyun.com/document_detail/29009.html).
16017
+ 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 Resource Access Management (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).
16018
+ 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)
16019
+ For more information, see [Authorization rules](https://help.aliyun.com/document_detail/29049.html). The following types of resources are supported: project, Logstore, dashboard, machine group, and Logtail configuration.
16020
+ ### Authentication resources
16021
+ The following table describes the authorization information that is required for this operation. You can add the information to the Action element of a RAM policy statement to grant a RAM user or a RAM role the permissions to call this operation.
16022
+ |Action|Resource|
16023
+ |:---|:---|
16024
+ |`log:TagResources`|The resource format varies based on the resource type.\\-`acs:log:{#regionId}:{#accountId}:project/{#ProjectName}`\\-`acs:log:${regionName}:${accountId}:project/${projectName}/logstore/${logstoreName}`\\-`acs:log:${regionName}:${accountId}:project/${projectName}/dashboard/${dashboardName}`\\-`acs:log:${regionName}:${accountId}:project/${projectName}/machinegroup/${machineGroupName}`\\-`acs:log:${regionName}:${accountId}:project/${projectName}/logtailconfig/${logtailConfigName}`|
16492
16025
 
16493
16026
  @param request: TagResourcesRequest
16494
16027
  @param headers: map
@@ -16528,10 +16061,19 @@ class Client(OpenApiClient):
16528
16061
  request: sls_20201230_models.TagResourcesRequest,
16529
16062
  ) -> sls_20201230_models.TagResourcesResponse:
16530
16063
  """
16531
- @summary Creates and adds one or more tags to a specified resource. You can add tags only to projects.
16064
+ @summary Creates and adds tags to a resource. You can add tags only to projects.
16532
16065
 
16533
16066
  @description ### Usage notes
16534
- Host consists of a project name and a Log Service endpoint. You must specify a project in Host.
16067
+ Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
16068
+ An AccessKey pair is created and obtained. For more information, see [AccessKey pair](https://help.aliyun.com/document_detail/29009.html).
16069
+ 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 Resource Access Management (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).
16070
+ 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)
16071
+ For more information, see [Authorization rules](https://help.aliyun.com/document_detail/29049.html). The following types of resources are supported: project, Logstore, dashboard, machine group, and Logtail configuration.
16072
+ ### Authentication resources
16073
+ The following table describes the authorization information that is required for this operation. You can add the information to the Action element of a RAM policy statement to grant a RAM user or a RAM role the permissions to call this operation.
16074
+ |Action|Resource|
16075
+ |:---|:---|
16076
+ |`log:TagResources`|The resource format varies based on the resource type.\\-`acs:log:{#regionId}:{#accountId}:project/{#ProjectName}`\\-`acs:log:${regionName}:${accountId}:project/${projectName}/logstore/${logstoreName}`\\-`acs:log:${regionName}:${accountId}:project/${projectName}/dashboard/${dashboardName}`\\-`acs:log:${regionName}:${accountId}:project/${projectName}/machinegroup/${machineGroupName}`\\-`acs:log:${regionName}:${accountId}:project/${projectName}/logtailconfig/${logtailConfigName}`|
16535
16077
 
16536
16078
  @param request: TagResourcesRequest
16537
16079
  @return: TagResourcesResponse
@@ -16545,10 +16087,19 @@ class Client(OpenApiClient):
16545
16087
  request: sls_20201230_models.TagResourcesRequest,
16546
16088
  ) -> sls_20201230_models.TagResourcesResponse:
16547
16089
  """
16548
- @summary Creates and adds one or more tags to a specified resource. You can add tags only to projects.
16090
+ @summary Creates and adds tags to a resource. You can add tags only to projects.
16549
16091
 
16550
16092
  @description ### Usage notes
16551
- Host consists of a project name and a Log Service endpoint. You must specify a project in Host.
16093
+ Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
16094
+ An AccessKey pair is created and obtained. For more information, see [AccessKey pair](https://help.aliyun.com/document_detail/29009.html).
16095
+ 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 Resource Access Management (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).
16096
+ 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)
16097
+ For more information, see [Authorization rules](https://help.aliyun.com/document_detail/29049.html). The following types of resources are supported: project, Logstore, dashboard, machine group, and Logtail configuration.
16098
+ ### Authentication resources
16099
+ The following table describes the authorization information that is required for this operation. You can add the information to the Action element of a RAM policy statement to grant a RAM user or a RAM role the permissions to call this operation.
16100
+ |Action|Resource|
16101
+ |:---|:---|
16102
+ |`log:TagResources`|The resource format varies based on the resource type.\\-`acs:log:{#regionId}:{#accountId}:project/{#ProjectName}`\\-`acs:log:${regionName}:${accountId}:project/${projectName}/logstore/${logstoreName}`\\-`acs:log:${regionName}:${accountId}:project/${projectName}/dashboard/${dashboardName}`\\-`acs:log:${regionName}:${accountId}:project/${projectName}/machinegroup/${machineGroupName}`\\-`acs:log:${regionName}:${accountId}:project/${projectName}/logtailconfig/${logtailConfigName}`|
16552
16103
 
16553
16104
  @param request: TagResourcesRequest
16554
16105
  @return: TagResourcesResponse
@@ -16567,7 +16118,15 @@ class Client(OpenApiClient):
16567
16118
  @summary Detaches one or more tags from a resource. You can detach tags only from Simple Log Service projects. You can detach multiple or all tags from a Simple Log Service project at a time.
16568
16119
 
16569
16120
  @description ### Usage notes
16570
- Host consists of a project name and a Log Service endpoint. You must specify a project in Host.
16121
+ Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
16122
+ An AccessKey pair is created and obtained. For more information, see [AccessKey pair](https://help.aliyun.com/document_detail/29009.html).
16123
+ 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 Resource Access Management (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).
16124
+ 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) For more information, see [Authorization rules](https://help.aliyun.com/document_detail/29049.html). The following types of resources are supported: project, Logstore, dashboard, machine group, and Logtail configuration.
16125
+ ### Authentication resources
16126
+ The following table describes the authorization information that is required for this operation. You can add the information to the Action element of a RAM policy statement to grant a RAM user or a RAM role the permissions to call this operation.
16127
+ |Action|Resource|
16128
+ |:---|:---|
16129
+ |`log:UntagResources`|The resource format varies based on the resource type.\\-`acs:log:{#regionId}:{#accountId}:project/{#ProjectName}`\\-`acs:log:${regionName}:${accountId}:project/${projectName}/logstore/${logstoreName}`\\-`acs:log:${regionName}:${accountId}:project/${projectName}/dashboard/${dashboardName}`\\-`acs:log:${regionName}:${accountId}:project/${projectName}/machinegroup/${machineGroupName}`\\-`acs:log:${regionName}:${accountId}:project/${projectName}/logtailconfig/${logtailConfigName}`|
16571
16130
 
16572
16131
  @param request: UntagResourcesRequest
16573
16132
  @param headers: map
@@ -16614,7 +16173,15 @@ class Client(OpenApiClient):
16614
16173
  @summary Detaches one or more tags from a resource. You can detach tags only from Simple Log Service projects. You can detach multiple or all tags from a Simple Log Service project at a time.
16615
16174
 
16616
16175
  @description ### Usage notes
16617
- Host consists of a project name and a Log Service endpoint. You must specify a project in Host.
16176
+ Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
16177
+ An AccessKey pair is created and obtained. For more information, see [AccessKey pair](https://help.aliyun.com/document_detail/29009.html).
16178
+ 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 Resource Access Management (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).
16179
+ 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) For more information, see [Authorization rules](https://help.aliyun.com/document_detail/29049.html). The following types of resources are supported: project, Logstore, dashboard, machine group, and Logtail configuration.
16180
+ ### Authentication resources
16181
+ The following table describes the authorization information that is required for this operation. You can add the information to the Action element of a RAM policy statement to grant a RAM user or a RAM role the permissions to call this operation.
16182
+ |Action|Resource|
16183
+ |:---|:---|
16184
+ |`log:UntagResources`|The resource format varies based on the resource type.\\-`acs:log:{#regionId}:{#accountId}:project/{#ProjectName}`\\-`acs:log:${regionName}:${accountId}:project/${projectName}/logstore/${logstoreName}`\\-`acs:log:${regionName}:${accountId}:project/${projectName}/dashboard/${dashboardName}`\\-`acs:log:${regionName}:${accountId}:project/${projectName}/machinegroup/${machineGroupName}`\\-`acs:log:${regionName}:${accountId}:project/${projectName}/logtailconfig/${logtailConfigName}`|
16618
16185
 
16619
16186
  @param request: UntagResourcesRequest
16620
16187
  @param headers: map
@@ -16659,7 +16226,15 @@ class Client(OpenApiClient):
16659
16226
  @summary Detaches one or more tags from a resource. You can detach tags only from Simple Log Service projects. You can detach multiple or all tags from a Simple Log Service project at a time.
16660
16227
 
16661
16228
  @description ### Usage notes
16662
- Host consists of a project name and a Log Service endpoint. You must specify a project in Host.
16229
+ Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
16230
+ An AccessKey pair is created and obtained. For more information, see [AccessKey pair](https://help.aliyun.com/document_detail/29009.html).
16231
+ 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 Resource Access Management (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).
16232
+ 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) For more information, see [Authorization rules](https://help.aliyun.com/document_detail/29049.html). The following types of resources are supported: project, Logstore, dashboard, machine group, and Logtail configuration.
16233
+ ### Authentication resources
16234
+ The following table describes the authorization information that is required for this operation. You can add the information to the Action element of a RAM policy statement to grant a RAM user or a RAM role the permissions to call this operation.
16235
+ |Action|Resource|
16236
+ |:---|:---|
16237
+ |`log:UntagResources`|The resource format varies based on the resource type.\\-`acs:log:{#regionId}:{#accountId}:project/{#ProjectName}`\\-`acs:log:${regionName}:${accountId}:project/${projectName}/logstore/${logstoreName}`\\-`acs:log:${regionName}:${accountId}:project/${projectName}/dashboard/${dashboardName}`\\-`acs:log:${regionName}:${accountId}:project/${projectName}/machinegroup/${machineGroupName}`\\-`acs:log:${regionName}:${accountId}:project/${projectName}/logtailconfig/${logtailConfigName}`|
16663
16238
 
16664
16239
  @param request: UntagResourcesRequest
16665
16240
  @return: UntagResourcesResponse
@@ -16676,7 +16251,15 @@ class Client(OpenApiClient):
16676
16251
  @summary Detaches one or more tags from a resource. You can detach tags only from Simple Log Service projects. You can detach multiple or all tags from a Simple Log Service project at a time.
16677
16252
 
16678
16253
  @description ### Usage notes
16679
- Host consists of a project name and a Log Service endpoint. You must specify a project in Host.
16254
+ Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
16255
+ An AccessKey pair is created and obtained. For more information, see [AccessKey pair](https://help.aliyun.com/document_detail/29009.html).
16256
+ 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 Resource Access Management (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).
16257
+ 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) For more information, see [Authorization rules](https://help.aliyun.com/document_detail/29049.html). The following types of resources are supported: project, Logstore, dashboard, machine group, and Logtail configuration.
16258
+ ### Authentication resources
16259
+ The following table describes the authorization information that is required for this operation. You can add the information to the Action element of a RAM policy statement to grant a RAM user or a RAM role the permissions to call this operation.
16260
+ |Action|Resource|
16261
+ |:---|:---|
16262
+ |`log:UntagResources`|The resource format varies based on the resource type.\\-`acs:log:{#regionId}:{#accountId}:project/{#ProjectName}`\\-`acs:log:${regionName}:${accountId}:project/${projectName}/logstore/${logstoreName}`\\-`acs:log:${regionName}:${accountId}:project/${projectName}/dashboard/${dashboardName}`\\-`acs:log:${regionName}:${accountId}:project/${projectName}/machinegroup/${machineGroupName}`\\-`acs:log:${regionName}:${accountId}:project/${projectName}/logtailconfig/${logtailConfigName}`|
16680
16263
 
16681
16264
  @param request: UntagResourcesRequest
16682
16265
  @return: UntagResourcesResponse
@@ -17032,7 +16615,7 @@ class Client(OpenApiClient):
17032
16615
  runtime: util_models.RuntimeOptions,
17033
16616
  ) -> sls_20201230_models.UpdateConfigResponse:
17034
16617
  """
17035
- @summary Updates a Logtail configuration.
16618
+ @summary Modifies a Logtail configuration.
17036
16619
 
17037
16620
  @description ### [](#)Usage notes
17038
16621
  Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
@@ -17080,7 +16663,7 @@ class Client(OpenApiClient):
17080
16663
  runtime: util_models.RuntimeOptions,
17081
16664
  ) -> sls_20201230_models.UpdateConfigResponse:
17082
16665
  """
17083
- @summary Updates a Logtail configuration.
16666
+ @summary Modifies a Logtail configuration.
17084
16667
 
17085
16668
  @description ### [](#)Usage notes
17086
16669
  Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
@@ -17126,7 +16709,7 @@ class Client(OpenApiClient):
17126
16709
  request: sls_20201230_models.UpdateConfigRequest,
17127
16710
  ) -> sls_20201230_models.UpdateConfigResponse:
17128
16711
  """
17129
- @summary Updates a Logtail configuration.
16712
+ @summary Modifies a Logtail configuration.
17130
16713
 
17131
16714
  @description ### [](#)Usage notes
17132
16715
  Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
@@ -17150,7 +16733,7 @@ class Client(OpenApiClient):
17150
16733
  request: sls_20201230_models.UpdateConfigRequest,
17151
16734
  ) -> sls_20201230_models.UpdateConfigResponse:
17152
16735
  """
17153
- @summary Updates a Logtail configuration.
16736
+ @summary Modifies a Logtail configuration.
17154
16737
 
17155
16738
  @description ### [](#)Usage notes
17156
16739
  Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
@@ -17918,7 +17501,7 @@ class Client(OpenApiClient):
17918
17501
  runtime: util_models.RuntimeOptions,
17919
17502
  ) -> sls_20201230_models.UpdateLogStoreMeteringModeResponse:
17920
17503
  """
17921
- @summary 更新LogStore计量模式
17504
+ @summary Changes the billing mode of a Logstore.
17922
17505
 
17923
17506
  @param request: UpdateLogStoreMeteringModeRequest
17924
17507
  @param headers: map
@@ -17961,7 +17544,7 @@ class Client(OpenApiClient):
17961
17544
  runtime: util_models.RuntimeOptions,
17962
17545
  ) -> sls_20201230_models.UpdateLogStoreMeteringModeResponse:
17963
17546
  """
17964
- @summary 更新LogStore计量模式
17547
+ @summary Changes the billing mode of a Logstore.
17965
17548
 
17966
17549
  @param request: UpdateLogStoreMeteringModeRequest
17967
17550
  @param headers: map
@@ -18002,7 +17585,7 @@ class Client(OpenApiClient):
18002
17585
  request: sls_20201230_models.UpdateLogStoreMeteringModeRequest,
18003
17586
  ) -> sls_20201230_models.UpdateLogStoreMeteringModeResponse:
18004
17587
  """
18005
- @summary 更新LogStore计量模式
17588
+ @summary Changes the billing mode of a Logstore.
18006
17589
 
18007
17590
  @param request: UpdateLogStoreMeteringModeRequest
18008
17591
  @return: UpdateLogStoreMeteringModeResponse
@@ -18018,7 +17601,7 @@ class Client(OpenApiClient):
18018
17601
  request: sls_20201230_models.UpdateLogStoreMeteringModeRequest,
18019
17602
  ) -> sls_20201230_models.UpdateLogStoreMeteringModeResponse:
18020
17603
  """
18021
- @summary 更新LogStore计量模式
17604
+ @summary Changes the billing mode of a Logstore.
18022
17605
 
18023
17606
  @param request: UpdateLogStoreMeteringModeRequest
18024
17607
  @return: UpdateLogStoreMeteringModeResponse
@@ -19982,7 +19565,7 @@ class Client(OpenApiClient):
19982
19565
  runtime: util_models.RuntimeOptions,
19983
19566
  ) -> sls_20201230_models.UpsertCollectionPolicyResponse:
19984
19567
  """
19985
- @summary 调用UpsertCollectionPolicy接口更新采集策略的属性信息
19568
+ @summary 调用UpsertCollectionPolicy接口创建或更新日志采集规则
19986
19569
 
19987
19570
  @param request: UpsertCollectionPolicyRequest
19988
19571
  @param headers: map
@@ -19991,14 +19574,14 @@ class Client(OpenApiClient):
19991
19574
  """
19992
19575
  UtilClient.validate_model(request)
19993
19576
  body = {}
19994
- if not UtilClient.is_unset(request.attribute):
19995
- body['attribute'] = request.attribute
19996
19577
  if not UtilClient.is_unset(request.centralize_config):
19997
19578
  body['centralizeConfig'] = request.centralize_config
19998
19579
  if not UtilClient.is_unset(request.centralize_enabled):
19999
19580
  body['centralizeEnabled'] = request.centralize_enabled
20000
19581
  if not UtilClient.is_unset(request.data_code):
20001
19582
  body['dataCode'] = request.data_code
19583
+ if not UtilClient.is_unset(request.data_config):
19584
+ body['dataConfig'] = request.data_config
20002
19585
  if not UtilClient.is_unset(request.enabled):
20003
19586
  body['enabled'] = request.enabled
20004
19587
  if not UtilClient.is_unset(request.policy_config):
@@ -20007,6 +19590,8 @@ class Client(OpenApiClient):
20007
19590
  body['policyName'] = request.policy_name
20008
19591
  if not UtilClient.is_unset(request.product_code):
20009
19592
  body['productCode'] = request.product_code
19593
+ if not UtilClient.is_unset(request.resource_directory):
19594
+ body['resourceDirectory'] = request.resource_directory
20010
19595
  req = open_api_models.OpenApiRequest(
20011
19596
  headers=headers,
20012
19597
  body=OpenApiUtilClient.parse_to_map(body)
@@ -20020,7 +19605,7 @@ class Client(OpenApiClient):
20020
19605
  auth_type='AK',
20021
19606
  style='ROA',
20022
19607
  req_body_type='json',
20023
- body_type='json'
19608
+ body_type='none'
20024
19609
  )
20025
19610
  return TeaCore.from_map(
20026
19611
  sls_20201230_models.UpsertCollectionPolicyResponse(),
@@ -20034,7 +19619,7 @@ class Client(OpenApiClient):
20034
19619
  runtime: util_models.RuntimeOptions,
20035
19620
  ) -> sls_20201230_models.UpsertCollectionPolicyResponse:
20036
19621
  """
20037
- @summary 调用UpsertCollectionPolicy接口更新采集策略的属性信息
19622
+ @summary 调用UpsertCollectionPolicy接口创建或更新日志采集规则
20038
19623
 
20039
19624
  @param request: UpsertCollectionPolicyRequest
20040
19625
  @param headers: map
@@ -20043,14 +19628,14 @@ class Client(OpenApiClient):
20043
19628
  """
20044
19629
  UtilClient.validate_model(request)
20045
19630
  body = {}
20046
- if not UtilClient.is_unset(request.attribute):
20047
- body['attribute'] = request.attribute
20048
19631
  if not UtilClient.is_unset(request.centralize_config):
20049
19632
  body['centralizeConfig'] = request.centralize_config
20050
19633
  if not UtilClient.is_unset(request.centralize_enabled):
20051
19634
  body['centralizeEnabled'] = request.centralize_enabled
20052
19635
  if not UtilClient.is_unset(request.data_code):
20053
19636
  body['dataCode'] = request.data_code
19637
+ if not UtilClient.is_unset(request.data_config):
19638
+ body['dataConfig'] = request.data_config
20054
19639
  if not UtilClient.is_unset(request.enabled):
20055
19640
  body['enabled'] = request.enabled
20056
19641
  if not UtilClient.is_unset(request.policy_config):
@@ -20059,6 +19644,8 @@ class Client(OpenApiClient):
20059
19644
  body['policyName'] = request.policy_name
20060
19645
  if not UtilClient.is_unset(request.product_code):
20061
19646
  body['productCode'] = request.product_code
19647
+ if not UtilClient.is_unset(request.resource_directory):
19648
+ body['resourceDirectory'] = request.resource_directory
20062
19649
  req = open_api_models.OpenApiRequest(
20063
19650
  headers=headers,
20064
19651
  body=OpenApiUtilClient.parse_to_map(body)
@@ -20072,7 +19659,7 @@ class Client(OpenApiClient):
20072
19659
  auth_type='AK',
20073
19660
  style='ROA',
20074
19661
  req_body_type='json',
20075
- body_type='json'
19662
+ body_type='none'
20076
19663
  )
20077
19664
  return TeaCore.from_map(
20078
19665
  sls_20201230_models.UpsertCollectionPolicyResponse(),
@@ -20084,7 +19671,7 @@ class Client(OpenApiClient):
20084
19671
  request: sls_20201230_models.UpsertCollectionPolicyRequest,
20085
19672
  ) -> sls_20201230_models.UpsertCollectionPolicyResponse:
20086
19673
  """
20087
- @summary 调用UpsertCollectionPolicy接口更新采集策略的属性信息
19674
+ @summary 调用UpsertCollectionPolicy接口创建或更新日志采集规则
20088
19675
 
20089
19676
  @param request: UpsertCollectionPolicyRequest
20090
19677
  @return: UpsertCollectionPolicyResponse
@@ -20098,7 +19685,7 @@ class Client(OpenApiClient):
20098
19685
  request: sls_20201230_models.UpsertCollectionPolicyRequest,
20099
19686
  ) -> sls_20201230_models.UpsertCollectionPolicyResponse:
20100
19687
  """
20101
- @summary 调用UpsertCollectionPolicy接口更新采集策略的属性信息
19688
+ @summary 调用UpsertCollectionPolicy接口创建或更新日志采集规则
20102
19689
 
20103
19690
  @param request: UpsertCollectionPolicyRequest
20104
19691
  @return: UpsertCollectionPolicyResponse