alibabacloud-sls20201230 5.6.0__py3-none-any.whl → 5.7.1__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -21,6 +21,7 @@ class Client(OpenApiClient):
21
21
  config: open_api_models.Config,
22
22
  ):
23
23
  super().__init__(config)
24
+ self._product_id = 'Sls'
24
25
  gateway_client = GatewayClientClient()
25
26
  self._spi = gateway_client
26
27
  self._endpoint_rule = 'central'
@@ -137,6 +138,118 @@ class Client(OpenApiClient):
137
138
  headers = {}
138
139
  return await self.apply_config_to_machine_group_with_options_async(project, machine_group, config_name, headers, runtime)
139
140
 
141
+ def call_ai_tools_with_options(
142
+ self,
143
+ request: sls_20201230_models.CallAiToolsRequest,
144
+ headers: Dict[str, str],
145
+ runtime: util_models.RuntimeOptions,
146
+ ) -> sls_20201230_models.CallAiToolsResponse:
147
+ """
148
+ @summary 调用 ai 工具
149
+
150
+ @param request: CallAiToolsRequest
151
+ @param headers: map
152
+ @param runtime: runtime options for this request RuntimeOptions
153
+ @return: CallAiToolsResponse
154
+ """
155
+ UtilClient.validate_model(request)
156
+ body = {}
157
+ if not UtilClient.is_unset(request.params):
158
+ body['params'] = request.params
159
+ if not UtilClient.is_unset(request.region_id):
160
+ body['regionId'] = request.region_id
161
+ if not UtilClient.is_unset(request.tool_name):
162
+ body['toolName'] = request.tool_name
163
+ req = open_api_models.OpenApiRequest(
164
+ headers=headers,
165
+ body=OpenApiUtilClient.parse_to_map(body)
166
+ )
167
+ params = open_api_models.Params(
168
+ action='CallAiTools',
169
+ version='2020-12-30',
170
+ protocol='HTTPS',
171
+ pathname=f'/ml/tool/call',
172
+ method='POST',
173
+ auth_type='AK',
174
+ style='ROA',
175
+ req_body_type='json',
176
+ body_type='string'
177
+ )
178
+ return TeaCore.from_map(
179
+ sls_20201230_models.CallAiToolsResponse(),
180
+ self.execute(params, req, runtime)
181
+ )
182
+
183
+ async def call_ai_tools_with_options_async(
184
+ self,
185
+ request: sls_20201230_models.CallAiToolsRequest,
186
+ headers: Dict[str, str],
187
+ runtime: util_models.RuntimeOptions,
188
+ ) -> sls_20201230_models.CallAiToolsResponse:
189
+ """
190
+ @summary 调用 ai 工具
191
+
192
+ @param request: CallAiToolsRequest
193
+ @param headers: map
194
+ @param runtime: runtime options for this request RuntimeOptions
195
+ @return: CallAiToolsResponse
196
+ """
197
+ UtilClient.validate_model(request)
198
+ body = {}
199
+ if not UtilClient.is_unset(request.params):
200
+ body['params'] = request.params
201
+ if not UtilClient.is_unset(request.region_id):
202
+ body['regionId'] = request.region_id
203
+ if not UtilClient.is_unset(request.tool_name):
204
+ body['toolName'] = request.tool_name
205
+ req = open_api_models.OpenApiRequest(
206
+ headers=headers,
207
+ body=OpenApiUtilClient.parse_to_map(body)
208
+ )
209
+ params = open_api_models.Params(
210
+ action='CallAiTools',
211
+ version='2020-12-30',
212
+ protocol='HTTPS',
213
+ pathname=f'/ml/tool/call',
214
+ method='POST',
215
+ auth_type='AK',
216
+ style='ROA',
217
+ req_body_type='json',
218
+ body_type='string'
219
+ )
220
+ return TeaCore.from_map(
221
+ sls_20201230_models.CallAiToolsResponse(),
222
+ await self.execute_async(params, req, runtime)
223
+ )
224
+
225
+ def call_ai_tools(
226
+ self,
227
+ request: sls_20201230_models.CallAiToolsRequest,
228
+ ) -> sls_20201230_models.CallAiToolsResponse:
229
+ """
230
+ @summary 调用 ai 工具
231
+
232
+ @param request: CallAiToolsRequest
233
+ @return: CallAiToolsResponse
234
+ """
235
+ runtime = util_models.RuntimeOptions()
236
+ headers = {}
237
+ return self.call_ai_tools_with_options(request, headers, runtime)
238
+
239
+ async def call_ai_tools_async(
240
+ self,
241
+ request: sls_20201230_models.CallAiToolsRequest,
242
+ ) -> sls_20201230_models.CallAiToolsResponse:
243
+ """
244
+ @summary 调用 ai 工具
245
+
246
+ @param request: CallAiToolsRequest
247
+ @return: CallAiToolsResponse
248
+ """
249
+ runtime = util_models.RuntimeOptions()
250
+ headers = {}
251
+ return await self.call_ai_tools_with_options_async(request, headers, runtime)
252
+
140
253
  def change_resource_group_with_options(
141
254
  self,
142
255
  project: str,
@@ -445,7 +558,7 @@ class Client(OpenApiClient):
445
558
  runtime: util_models.RuntimeOptions,
446
559
  ) -> sls_20201230_models.ConsumerGroupUpdateCheckPointResponse:
447
560
  """
448
- @summary Updates the data consumption progress.
561
+ @summary Updates the checkpoint of a shard for a consumer group.
449
562
 
450
563
  @description If you do not specify a consumer, you must set **forceSuccess** to **true**. Otherwise, the checkpoint cannot be updated.
451
564
  Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
@@ -503,7 +616,7 @@ class Client(OpenApiClient):
503
616
  runtime: util_models.RuntimeOptions,
504
617
  ) -> sls_20201230_models.ConsumerGroupUpdateCheckPointResponse:
505
618
  """
506
- @summary Updates the data consumption progress.
619
+ @summary Updates the checkpoint of a shard for a consumer group.
507
620
 
508
621
  @description If you do not specify a consumer, you must set **forceSuccess** to **true**. Otherwise, the checkpoint cannot be updated.
509
622
  Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
@@ -559,7 +672,7 @@ class Client(OpenApiClient):
559
672
  request: sls_20201230_models.ConsumerGroupUpdateCheckPointRequest,
560
673
  ) -> sls_20201230_models.ConsumerGroupUpdateCheckPointResponse:
561
674
  """
562
- @summary Updates the data consumption progress.
675
+ @summary Updates the checkpoint of a shard for a consumer group.
563
676
 
564
677
  @description If you do not specify a consumer, you must set **forceSuccess** to **true**. Otherwise, the checkpoint cannot be updated.
565
678
  Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
@@ -582,7 +695,7 @@ class Client(OpenApiClient):
582
695
  request: sls_20201230_models.ConsumerGroupUpdateCheckPointRequest,
583
696
  ) -> sls_20201230_models.ConsumerGroupUpdateCheckPointResponse:
584
697
  """
585
- @summary Updates the data consumption progress.
698
+ @summary Updates the checkpoint of a shard for a consumer group.
586
699
 
587
700
  @description If you do not specify a consumer, you must set **forceSuccess** to **true**. Otherwise, the checkpoint cannot be updated.
588
701
  Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
@@ -2619,6 +2732,152 @@ class Client(OpenApiClient):
2619
2732
  headers = {}
2620
2733
  return await self.create_machine_group_with_options_async(project, request, headers, runtime)
2621
2734
 
2735
+ def create_max_compute_export_with_options(
2736
+ self,
2737
+ project: str,
2738
+ request: sls_20201230_models.CreateMaxComputeExportRequest,
2739
+ headers: Dict[str, str],
2740
+ runtime: util_models.RuntimeOptions,
2741
+ ) -> sls_20201230_models.CreateMaxComputeExportResponse:
2742
+ """
2743
+ @summary Creates a MaxCompute data shipping job.
2744
+
2745
+ @description Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
2746
+ An AccessKey pair is created and obtained. For more information, see [AccessKey pair](https://help.aliyun.com/document_detail/29009.html).
2747
+ 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).
2748
+ 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).
2749
+
2750
+ @param request: CreateMaxComputeExportRequest
2751
+ @param headers: map
2752
+ @param runtime: runtime options for this request RuntimeOptions
2753
+ @return: CreateMaxComputeExportResponse
2754
+ """
2755
+ UtilClient.validate_model(request)
2756
+ host_map = {}
2757
+ host_map['project'] = project
2758
+ body = {}
2759
+ if not UtilClient.is_unset(request.configuration):
2760
+ body['configuration'] = request.configuration
2761
+ if not UtilClient.is_unset(request.description):
2762
+ body['description'] = request.description
2763
+ if not UtilClient.is_unset(request.display_name):
2764
+ body['displayName'] = request.display_name
2765
+ if not UtilClient.is_unset(request.name):
2766
+ body['name'] = request.name
2767
+ req = open_api_models.OpenApiRequest(
2768
+ host_map=host_map,
2769
+ headers=headers,
2770
+ body=OpenApiUtilClient.parse_to_map(body)
2771
+ )
2772
+ params = open_api_models.Params(
2773
+ action='CreateMaxComputeExport',
2774
+ version='2020-12-30',
2775
+ protocol='HTTPS',
2776
+ pathname=f'/maxcomputeexports',
2777
+ method='POST',
2778
+ auth_type='AK',
2779
+ style='ROA',
2780
+ req_body_type='json',
2781
+ body_type='none'
2782
+ )
2783
+ return TeaCore.from_map(
2784
+ sls_20201230_models.CreateMaxComputeExportResponse(),
2785
+ self.execute(params, req, runtime)
2786
+ )
2787
+
2788
+ async def create_max_compute_export_with_options_async(
2789
+ self,
2790
+ project: str,
2791
+ request: sls_20201230_models.CreateMaxComputeExportRequest,
2792
+ headers: Dict[str, str],
2793
+ runtime: util_models.RuntimeOptions,
2794
+ ) -> sls_20201230_models.CreateMaxComputeExportResponse:
2795
+ """
2796
+ @summary Creates a MaxCompute data shipping job.
2797
+
2798
+ @description Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
2799
+ An AccessKey pair is created and obtained. For more information, see [AccessKey pair](https://help.aliyun.com/document_detail/29009.html).
2800
+ 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).
2801
+ 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).
2802
+
2803
+ @param request: CreateMaxComputeExportRequest
2804
+ @param headers: map
2805
+ @param runtime: runtime options for this request RuntimeOptions
2806
+ @return: CreateMaxComputeExportResponse
2807
+ """
2808
+ UtilClient.validate_model(request)
2809
+ host_map = {}
2810
+ host_map['project'] = project
2811
+ body = {}
2812
+ if not UtilClient.is_unset(request.configuration):
2813
+ body['configuration'] = request.configuration
2814
+ if not UtilClient.is_unset(request.description):
2815
+ body['description'] = request.description
2816
+ if not UtilClient.is_unset(request.display_name):
2817
+ body['displayName'] = request.display_name
2818
+ if not UtilClient.is_unset(request.name):
2819
+ body['name'] = request.name
2820
+ req = open_api_models.OpenApiRequest(
2821
+ host_map=host_map,
2822
+ headers=headers,
2823
+ body=OpenApiUtilClient.parse_to_map(body)
2824
+ )
2825
+ params = open_api_models.Params(
2826
+ action='CreateMaxComputeExport',
2827
+ version='2020-12-30',
2828
+ protocol='HTTPS',
2829
+ pathname=f'/maxcomputeexports',
2830
+ method='POST',
2831
+ auth_type='AK',
2832
+ style='ROA',
2833
+ req_body_type='json',
2834
+ body_type='none'
2835
+ )
2836
+ return TeaCore.from_map(
2837
+ sls_20201230_models.CreateMaxComputeExportResponse(),
2838
+ await self.execute_async(params, req, runtime)
2839
+ )
2840
+
2841
+ def create_max_compute_export(
2842
+ self,
2843
+ project: str,
2844
+ request: sls_20201230_models.CreateMaxComputeExportRequest,
2845
+ ) -> sls_20201230_models.CreateMaxComputeExportResponse:
2846
+ """
2847
+ @summary Creates a MaxCompute data shipping job.
2848
+
2849
+ @description Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
2850
+ An AccessKey pair is created and obtained. For more information, see [AccessKey pair](https://help.aliyun.com/document_detail/29009.html).
2851
+ 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).
2852
+ 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).
2853
+
2854
+ @param request: CreateMaxComputeExportRequest
2855
+ @return: CreateMaxComputeExportResponse
2856
+ """
2857
+ runtime = util_models.RuntimeOptions()
2858
+ headers = {}
2859
+ return self.create_max_compute_export_with_options(project, request, headers, runtime)
2860
+
2861
+ async def create_max_compute_export_async(
2862
+ self,
2863
+ project: str,
2864
+ request: sls_20201230_models.CreateMaxComputeExportRequest,
2865
+ ) -> sls_20201230_models.CreateMaxComputeExportResponse:
2866
+ """
2867
+ @summary Creates a MaxCompute data shipping job.
2868
+
2869
+ @description Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
2870
+ An AccessKey pair is created and obtained. For more information, see [AccessKey pair](https://help.aliyun.com/document_detail/29009.html).
2871
+ 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).
2872
+ 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).
2873
+
2874
+ @param request: CreateMaxComputeExportRequest
2875
+ @return: CreateMaxComputeExportResponse
2876
+ """
2877
+ runtime = util_models.RuntimeOptions()
2878
+ headers = {}
2879
+ return await self.create_max_compute_export_with_options_async(project, request, headers, runtime)
2880
+
2622
2881
  def create_metric_store_with_options(
2623
2882
  self,
2624
2883
  project: str,
@@ -2648,6 +2907,10 @@ class Client(OpenApiClient):
2648
2907
  body = {}
2649
2908
  if not UtilClient.is_unset(request.auto_split):
2650
2909
  body['autoSplit'] = request.auto_split
2910
+ if not UtilClient.is_unset(request.hot_ttl):
2911
+ body['hot_ttl'] = request.hot_ttl
2912
+ if not UtilClient.is_unset(request.infrequent_access_ttl):
2913
+ body['infrequentAccessTTL'] = request.infrequent_access_ttl
2651
2914
  if not UtilClient.is_unset(request.max_split_shard):
2652
2915
  body['maxSplitShard'] = request.max_split_shard
2653
2916
  if not UtilClient.is_unset(request.metric_type):
@@ -2710,6 +2973,10 @@ class Client(OpenApiClient):
2710
2973
  body = {}
2711
2974
  if not UtilClient.is_unset(request.auto_split):
2712
2975
  body['autoSplit'] = request.auto_split
2976
+ if not UtilClient.is_unset(request.hot_ttl):
2977
+ body['hot_ttl'] = request.hot_ttl
2978
+ if not UtilClient.is_unset(request.infrequent_access_ttl):
2979
+ body['infrequentAccessTTL'] = request.infrequent_access_ttl
2713
2980
  if not UtilClient.is_unset(request.max_split_shard):
2714
2981
  body['maxSplitShard'] = request.max_split_shard
2715
2982
  if not UtilClient.is_unset(request.metric_type):
@@ -3327,6 +3594,8 @@ class Client(OpenApiClient):
3327
3594
  body['description'] = request.description
3328
3595
  if not UtilClient.is_unset(request.project_name):
3329
3596
  body['projectName'] = request.project_name
3597
+ if not UtilClient.is_unset(request.recycle_bin_enabled):
3598
+ body['recycleBinEnabled'] = request.recycle_bin_enabled
3330
3599
  if not UtilClient.is_unset(request.resource_group_id):
3331
3600
  body['resourceGroupId'] = request.resource_group_id
3332
3601
  req = open_api_models.OpenApiRequest(
@@ -3371,6 +3640,8 @@ class Client(OpenApiClient):
3371
3640
  body['description'] = request.description
3372
3641
  if not UtilClient.is_unset(request.project_name):
3373
3642
  body['projectName'] = request.project_name
3643
+ if not UtilClient.is_unset(request.recycle_bin_enabled):
3644
+ body['recycleBinEnabled'] = request.recycle_bin_enabled
3374
3645
  if not UtilClient.is_unset(request.resource_group_id):
3375
3646
  body['resourceGroupId'] = request.resource_group_id
3376
3647
  req = open_api_models.OpenApiRequest(
@@ -3563,6 +3834,15 @@ class Client(OpenApiClient):
3563
3834
 
3564
3835
  @description ### Usage notes
3565
3836
  Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
3837
+ An AccessKey pair is created and obtained. For more information, see [AccessKey pair](https://help.aliyun.com/document_detail/29009.html).
3838
+ 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).
3839
+ The information that is required to query logs is obtained. The information includes the name of the project to which the logs belong, the region of the project, and the name of the Logstore to which the logs belong. For more information, see [Manage a project](https://help.aliyun.com/document_detail/48984.html) and [Manage a Logstore](https://help.aliyun.com/document_detail/48990.html).
3840
+ Limits are imposed when you use Simple Log Service to query logs. We recommend that you specify query statements and query time ranges based on the limits. For more information, see [Log search overview](https://help.aliyun.com/document_detail/43772.html) and [Log analysis overview](https://help.aliyun.com/document_detail/53608.html).
3841
+ ### Authentication resources
3842
+ 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.
3843
+ |Action|Resource|
3844
+ |:---|:---|
3845
+ |`log:CreateSavedSearch`|`acs:log:{#regionId}:{#accountId}:project/{#ProjectName}/savedsearch/{#SavedSearchName}`|
3566
3846
 
3567
3847
  @param request: CreateSavedSearchRequest
3568
3848
  @param headers: map
@@ -3616,6 +3896,15 @@ class Client(OpenApiClient):
3616
3896
 
3617
3897
  @description ### Usage notes
3618
3898
  Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
3899
+ An AccessKey pair is created and obtained. For more information, see [AccessKey pair](https://help.aliyun.com/document_detail/29009.html).
3900
+ 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).
3901
+ The information that is required to query logs is obtained. The information includes the name of the project to which the logs belong, the region of the project, and the name of the Logstore to which the logs belong. For more information, see [Manage a project](https://help.aliyun.com/document_detail/48984.html) and [Manage a Logstore](https://help.aliyun.com/document_detail/48990.html).
3902
+ Limits are imposed when you use Simple Log Service to query logs. We recommend that you specify query statements and query time ranges based on the limits. For more information, see [Log search overview](https://help.aliyun.com/document_detail/43772.html) and [Log analysis overview](https://help.aliyun.com/document_detail/53608.html).
3903
+ ### Authentication resources
3904
+ 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.
3905
+ |Action|Resource|
3906
+ |:---|:---|
3907
+ |`log:CreateSavedSearch`|`acs:log:{#regionId}:{#accountId}:project/{#ProjectName}/savedsearch/{#SavedSearchName}`|
3619
3908
 
3620
3909
  @param request: CreateSavedSearchRequest
3621
3910
  @param headers: map
@@ -3667,6 +3956,15 @@ class Client(OpenApiClient):
3667
3956
 
3668
3957
  @description ### Usage notes
3669
3958
  Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
3959
+ An AccessKey pair is created and obtained. For more information, see [AccessKey pair](https://help.aliyun.com/document_detail/29009.html).
3960
+ 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).
3961
+ The information that is required to query logs is obtained. The information includes the name of the project to which the logs belong, the region of the project, and the name of the Logstore to which the logs belong. For more information, see [Manage a project](https://help.aliyun.com/document_detail/48984.html) and [Manage a Logstore](https://help.aliyun.com/document_detail/48990.html).
3962
+ Limits are imposed when you use Simple Log Service to query logs. We recommend that you specify query statements and query time ranges based on the limits. For more information, see [Log search overview](https://help.aliyun.com/document_detail/43772.html) and [Log analysis overview](https://help.aliyun.com/document_detail/53608.html).
3963
+ ### Authentication resources
3964
+ 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.
3965
+ |Action|Resource|
3966
+ |:---|:---|
3967
+ |`log:CreateSavedSearch`|`acs:log:{#regionId}:{#accountId}:project/{#ProjectName}/savedsearch/{#SavedSearchName}`|
3670
3968
 
3671
3969
  @param request: CreateSavedSearchRequest
3672
3970
  @return: CreateSavedSearchResponse
@@ -3685,6 +3983,15 @@ class Client(OpenApiClient):
3685
3983
 
3686
3984
  @description ### Usage notes
3687
3985
  Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
3986
+ An AccessKey pair is created and obtained. For more information, see [AccessKey pair](https://help.aliyun.com/document_detail/29009.html).
3987
+ 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).
3988
+ The information that is required to query logs is obtained. The information includes the name of the project to which the logs belong, the region of the project, and the name of the Logstore to which the logs belong. For more information, see [Manage a project](https://help.aliyun.com/document_detail/48984.html) and [Manage a Logstore](https://help.aliyun.com/document_detail/48990.html).
3989
+ Limits are imposed when you use Simple Log Service to query logs. We recommend that you specify query statements and query time ranges based on the limits. For more information, see [Log search overview](https://help.aliyun.com/document_detail/43772.html) and [Log analysis overview](https://help.aliyun.com/document_detail/53608.html).
3990
+ ### Authentication resources
3991
+ 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.
3992
+ |Action|Resource|
3993
+ |:---|:---|
3994
+ |`log:CreateSavedSearch`|`acs:log:{#regionId}:{#accountId}:project/{#ProjectName}/savedsearch/{#SavedSearchName}`|
3688
3995
 
3689
3996
  @param request: CreateSavedSearchRequest
3690
3997
  @return: CreateSavedSearchResponse
@@ -4078,7 +4385,7 @@ class Client(OpenApiClient):
4078
4385
  runtime: util_models.RuntimeOptions,
4079
4386
  ) -> sls_20201230_models.CreateTicketResponse:
4080
4387
  """
4081
- @summary Creates a ticket to enable logon-free access to the Simple Log Service console or embed console pages into a third-party system.
4388
+ @summary Obtains a ticket. Simple Log Service allows you to share the query and analysis pages and dashboard pages with other users and embed the console pages into third-party systems. This way, other users can view your logs in password-free mode. The URLs of the shared pages are referred to as password-free URLs. You can call the CreateTicket operation to obtain a ticket and generate a password-free URL based on the ticket and the URL of the console page that you want to share.
4082
4389
 
4083
4390
  @param request: CreateTicketRequest
4084
4391
  @param headers: map
@@ -4118,7 +4425,7 @@ class Client(OpenApiClient):
4118
4425
  runtime: util_models.RuntimeOptions,
4119
4426
  ) -> sls_20201230_models.CreateTicketResponse:
4120
4427
  """
4121
- @summary Creates a ticket to enable logon-free access to the Simple Log Service console or embed console pages into a third-party system.
4428
+ @summary Obtains a ticket. Simple Log Service allows you to share the query and analysis pages and dashboard pages with other users and embed the console pages into third-party systems. This way, other users can view your logs in password-free mode. The URLs of the shared pages are referred to as password-free URLs. You can call the CreateTicket operation to obtain a ticket and generate a password-free URL based on the ticket and the URL of the console page that you want to share.
4122
4429
 
4123
4430
  @param request: CreateTicketRequest
4124
4431
  @param headers: map
@@ -4156,7 +4463,7 @@ class Client(OpenApiClient):
4156
4463
  request: sls_20201230_models.CreateTicketRequest,
4157
4464
  ) -> sls_20201230_models.CreateTicketResponse:
4158
4465
  """
4159
- @summary Creates a ticket to enable logon-free access to the Simple Log Service console or embed console pages into a third-party system.
4466
+ @summary Obtains a ticket. Simple Log Service allows you to share the query and analysis pages and dashboard pages with other users and embed the console pages into third-party systems. This way, other users can view your logs in password-free mode. The URLs of the shared pages are referred to as password-free URLs. You can call the CreateTicket operation to obtain a ticket and generate a password-free URL based on the ticket and the URL of the console page that you want to share.
4160
4467
 
4161
4468
  @param request: CreateTicketRequest
4162
4469
  @return: CreateTicketResponse
@@ -4170,7 +4477,7 @@ class Client(OpenApiClient):
4170
4477
  request: sls_20201230_models.CreateTicketRequest,
4171
4478
  ) -> sls_20201230_models.CreateTicketResponse:
4172
4479
  """
4173
- @summary Creates a ticket to enable logon-free access to the Simple Log Service console or embed console pages into a third-party system.
4480
+ @summary Obtains a ticket. Simple Log Service allows you to share the query and analysis pages and dashboard pages with other users and embed the console pages into third-party systems. This way, other users can view your logs in password-free mode. The URLs of the shared pages are referred to as password-free URLs. You can call the CreateTicket operation to obtain a ticket and generate a password-free URL based on the ticket and the URL of the console page that you want to share.
4174
4481
 
4175
4482
  @param request: CreateTicketRequest
4176
4483
  @return: CreateTicketResponse
@@ -4687,7 +4994,7 @@ class Client(OpenApiClient):
4687
4994
  """
4688
4995
  @summary Deletes a log collection policy from a cloud service.
4689
4996
 
4690
- @description You must use the Simple Log Service endpoint for the China (Shanghai) or Singapore region to call the operation.
4997
+ @description You must use the Simple Log Service endpoint for the China (Shanghai), Singapore, or Heyuan ACDR Auto region to call the operation.
4691
4998
 
4692
4999
  @param request: DeleteCollectionPolicyRequest
4693
5000
  @param headers: map
@@ -4730,7 +5037,7 @@ class Client(OpenApiClient):
4730
5037
  """
4731
5038
  @summary Deletes a log collection policy from a cloud service.
4732
5039
 
4733
- @description You must use the Simple Log Service endpoint for the China (Shanghai) or Singapore region to call the operation.
5040
+ @description You must use the Simple Log Service endpoint for the China (Shanghai), Singapore, or Heyuan ACDR Auto region to call the operation.
4734
5041
 
4735
5042
  @param request: DeleteCollectionPolicyRequest
4736
5043
  @param headers: map
@@ -4771,7 +5078,7 @@ class Client(OpenApiClient):
4771
5078
  """
4772
5079
  @summary Deletes a log collection policy from a cloud service.
4773
5080
 
4774
- @description You must use the Simple Log Service endpoint for the China (Shanghai) or Singapore region to call the operation.
5081
+ @description You must use the Simple Log Service endpoint for the China (Shanghai), Singapore, or Heyuan ACDR Auto region to call the operation.
4775
5082
 
4776
5083
  @param request: DeleteCollectionPolicyRequest
4777
5084
  @return: DeleteCollectionPolicyResponse
@@ -4788,7 +5095,7 @@ class Client(OpenApiClient):
4788
5095
  """
4789
5096
  @summary Deletes a log collection policy from a cloud service.
4790
5097
 
4791
- @description You must use the Simple Log Service endpoint for the China (Shanghai) or Singapore region to call the operation.
5098
+ @description You must use the Simple Log Service endpoint for the China (Shanghai), Singapore, or Heyuan ACDR Auto region to call the operation.
4792
5099
 
4793
5100
  @param request: DeleteCollectionPolicyRequest
4794
5101
  @return: DeleteCollectionPolicyResponse
@@ -5521,7 +5828,7 @@ class Client(OpenApiClient):
5521
5828
  runtime: util_models.RuntimeOptions,
5522
5829
  ) -> sls_20201230_models.DeleteExternalStoreResponse:
5523
5830
  """
5524
- @summary Deletes an external store.
5831
+ @summary Deletes an external storage configuration.
5525
5832
 
5526
5833
  @description Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
5527
5834
 
@@ -5559,7 +5866,7 @@ class Client(OpenApiClient):
5559
5866
  runtime: util_models.RuntimeOptions,
5560
5867
  ) -> sls_20201230_models.DeleteExternalStoreResponse:
5561
5868
  """
5562
- @summary Deletes an external store.
5869
+ @summary Deletes an external storage configuration.
5563
5870
 
5564
5871
  @description Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
5565
5872
 
@@ -5595,7 +5902,7 @@ class Client(OpenApiClient):
5595
5902
  external_store_name: str,
5596
5903
  ) -> sls_20201230_models.DeleteExternalStoreResponse:
5597
5904
  """
5598
- @summary Deletes an external store.
5905
+ @summary Deletes an external storage configuration.
5599
5906
 
5600
5907
  @description Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
5601
5908
 
@@ -5611,7 +5918,7 @@ class Client(OpenApiClient):
5611
5918
  external_store_name: str,
5612
5919
  ) -> sls_20201230_models.DeleteExternalStoreResponse:
5613
5920
  """
5614
- @summary Deletes an external store.
5921
+ @summary Deletes an external storage configuration.
5615
5922
 
5616
5923
  @description Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
5617
5924
 
@@ -5733,22 +6040,19 @@ class Client(OpenApiClient):
5733
6040
  headers = {}
5734
6041
  return await self.delete_index_with_options_async(project, logstore, headers, runtime)
5735
6042
 
5736
- def delete_log_store_with_options(
6043
+ def delete_ingest_processor_with_options(
5737
6044
  self,
5738
6045
  project: str,
5739
- logstore: str,
6046
+ processor_name: str,
5740
6047
  headers: Dict[str, str],
5741
6048
  runtime: util_models.RuntimeOptions,
5742
- ) -> sls_20201230_models.DeleteLogStoreResponse:
6049
+ ) -> sls_20201230_models.DeleteIngestProcessorResponse:
5743
6050
  """
5744
- @summary Deletes a Logstore, including all shards and indexes in the Logstore.
5745
-
5746
- @description ### Usage notes
5747
- Host consists of a project name and a Log Service endpoint. You must specify a project in Host.
6051
+ @summary Deletes an ingest processor.
5748
6052
 
5749
6053
  @param headers: map
5750
6054
  @param runtime: runtime options for this request RuntimeOptions
5751
- @return: DeleteLogStoreResponse
6055
+ @return: DeleteIngestProcessorResponse
5752
6056
  """
5753
6057
  host_map = {}
5754
6058
  host_map['project'] = project
@@ -5757,10 +6061,10 @@ class Client(OpenApiClient):
5757
6061
  headers=headers
5758
6062
  )
5759
6063
  params = open_api_models.Params(
5760
- action='DeleteLogStore',
6064
+ action='DeleteIngestProcessor',
5761
6065
  version='2020-12-30',
5762
6066
  protocol='HTTPS',
5763
- pathname=f'/logstores/{logstore}',
6067
+ pathname=f'/ingestprocessors/{processor_name}',
5764
6068
  method='DELETE',
5765
6069
  auth_type='AK',
5766
6070
  style='ROA',
@@ -5768,26 +6072,23 @@ class Client(OpenApiClient):
5768
6072
  body_type='none'
5769
6073
  )
5770
6074
  return TeaCore.from_map(
5771
- sls_20201230_models.DeleteLogStoreResponse(),
6075
+ sls_20201230_models.DeleteIngestProcessorResponse(),
5772
6076
  self.execute(params, req, runtime)
5773
6077
  )
5774
6078
 
5775
- async def delete_log_store_with_options_async(
6079
+ async def delete_ingest_processor_with_options_async(
5776
6080
  self,
5777
6081
  project: str,
5778
- logstore: str,
6082
+ processor_name: str,
5779
6083
  headers: Dict[str, str],
5780
6084
  runtime: util_models.RuntimeOptions,
5781
- ) -> sls_20201230_models.DeleteLogStoreResponse:
6085
+ ) -> sls_20201230_models.DeleteIngestProcessorResponse:
5782
6086
  """
5783
- @summary Deletes a Logstore, including all shards and indexes in the Logstore.
5784
-
5785
- @description ### Usage notes
5786
- Host consists of a project name and a Log Service endpoint. You must specify a project in Host.
6087
+ @summary Deletes an ingest processor.
5787
6088
 
5788
6089
  @param headers: map
5789
6090
  @param runtime: runtime options for this request RuntimeOptions
5790
- @return: DeleteLogStoreResponse
6091
+ @return: DeleteIngestProcessorResponse
5791
6092
  """
5792
6093
  host_map = {}
5793
6094
  host_map['project'] = project
@@ -5796,10 +6097,10 @@ class Client(OpenApiClient):
5796
6097
  headers=headers
5797
6098
  )
5798
6099
  params = open_api_models.Params(
5799
- action='DeleteLogStore',
6100
+ action='DeleteIngestProcessor',
5800
6101
  version='2020-12-30',
5801
6102
  protocol='HTTPS',
5802
- pathname=f'/logstores/{logstore}',
6103
+ pathname=f'/ingestprocessors/{processor_name}',
5803
6104
  method='DELETE',
5804
6105
  auth_type='AK',
5805
6106
  style='ROA',
@@ -5807,32 +6108,138 @@ class Client(OpenApiClient):
5807
6108
  body_type='none'
5808
6109
  )
5809
6110
  return TeaCore.from_map(
5810
- sls_20201230_models.DeleteLogStoreResponse(),
6111
+ sls_20201230_models.DeleteIngestProcessorResponse(),
5811
6112
  await self.execute_async(params, req, runtime)
5812
6113
  )
5813
6114
 
5814
- def delete_log_store(
6115
+ def delete_ingest_processor(
5815
6116
  self,
5816
6117
  project: str,
5817
- logstore: str,
5818
- ) -> sls_20201230_models.DeleteLogStoreResponse:
6118
+ processor_name: str,
6119
+ ) -> sls_20201230_models.DeleteIngestProcessorResponse:
5819
6120
  """
5820
- @summary Deletes a Logstore, including all shards and indexes in the Logstore.
6121
+ @summary Deletes an ingest processor.
5821
6122
 
5822
- @description ### Usage notes
5823
- Host consists of a project name and a Log Service endpoint. You must specify a project in Host.
5824
-
5825
- @return: DeleteLogStoreResponse
6123
+ @return: DeleteIngestProcessorResponse
5826
6124
  """
5827
6125
  runtime = util_models.RuntimeOptions()
5828
6126
  headers = {}
5829
- return self.delete_log_store_with_options(project, logstore, headers, runtime)
6127
+ return self.delete_ingest_processor_with_options(project, processor_name, headers, runtime)
5830
6128
 
5831
- async def delete_log_store_async(
6129
+ async def delete_ingest_processor_async(
5832
6130
  self,
5833
6131
  project: str,
5834
- logstore: str,
5835
- ) -> sls_20201230_models.DeleteLogStoreResponse:
6132
+ processor_name: str,
6133
+ ) -> sls_20201230_models.DeleteIngestProcessorResponse:
6134
+ """
6135
+ @summary Deletes an ingest processor.
6136
+
6137
+ @return: DeleteIngestProcessorResponse
6138
+ """
6139
+ runtime = util_models.RuntimeOptions()
6140
+ headers = {}
6141
+ return await self.delete_ingest_processor_with_options_async(project, processor_name, headers, runtime)
6142
+
6143
+ def delete_log_store_with_options(
6144
+ self,
6145
+ project: str,
6146
+ logstore: str,
6147
+ headers: Dict[str, str],
6148
+ runtime: util_models.RuntimeOptions,
6149
+ ) -> sls_20201230_models.DeleteLogStoreResponse:
6150
+ """
6151
+ @summary Deletes a Logstore, including all shards and indexes in the Logstore.
6152
+
6153
+ @description ### Usage notes
6154
+ Host consists of a project name and a Log Service endpoint. You must specify a project in Host.
6155
+
6156
+ @param headers: map
6157
+ @param runtime: runtime options for this request RuntimeOptions
6158
+ @return: DeleteLogStoreResponse
6159
+ """
6160
+ host_map = {}
6161
+ host_map['project'] = project
6162
+ req = open_api_models.OpenApiRequest(
6163
+ host_map=host_map,
6164
+ headers=headers
6165
+ )
6166
+ params = open_api_models.Params(
6167
+ action='DeleteLogStore',
6168
+ version='2020-12-30',
6169
+ protocol='HTTPS',
6170
+ pathname=f'/logstores/{logstore}',
6171
+ method='DELETE',
6172
+ auth_type='AK',
6173
+ style='ROA',
6174
+ req_body_type='json',
6175
+ body_type='none'
6176
+ )
6177
+ return TeaCore.from_map(
6178
+ sls_20201230_models.DeleteLogStoreResponse(),
6179
+ self.execute(params, req, runtime)
6180
+ )
6181
+
6182
+ async def delete_log_store_with_options_async(
6183
+ self,
6184
+ project: str,
6185
+ logstore: str,
6186
+ headers: Dict[str, str],
6187
+ runtime: util_models.RuntimeOptions,
6188
+ ) -> sls_20201230_models.DeleteLogStoreResponse:
6189
+ """
6190
+ @summary Deletes a Logstore, including all shards and indexes in the Logstore.
6191
+
6192
+ @description ### Usage notes
6193
+ Host consists of a project name and a Log Service endpoint. You must specify a project in Host.
6194
+
6195
+ @param headers: map
6196
+ @param runtime: runtime options for this request RuntimeOptions
6197
+ @return: DeleteLogStoreResponse
6198
+ """
6199
+ host_map = {}
6200
+ host_map['project'] = project
6201
+ req = open_api_models.OpenApiRequest(
6202
+ host_map=host_map,
6203
+ headers=headers
6204
+ )
6205
+ params = open_api_models.Params(
6206
+ action='DeleteLogStore',
6207
+ version='2020-12-30',
6208
+ protocol='HTTPS',
6209
+ pathname=f'/logstores/{logstore}',
6210
+ method='DELETE',
6211
+ auth_type='AK',
6212
+ style='ROA',
6213
+ req_body_type='json',
6214
+ body_type='none'
6215
+ )
6216
+ return TeaCore.from_map(
6217
+ sls_20201230_models.DeleteLogStoreResponse(),
6218
+ await self.execute_async(params, req, runtime)
6219
+ )
6220
+
6221
+ def delete_log_store(
6222
+ self,
6223
+ project: str,
6224
+ logstore: str,
6225
+ ) -> sls_20201230_models.DeleteLogStoreResponse:
6226
+ """
6227
+ @summary Deletes a Logstore, including all shards and indexes in the Logstore.
6228
+
6229
+ @description ### Usage notes
6230
+ Host consists of a project name and a Log Service endpoint. You must specify a project in Host.
6231
+
6232
+ @return: DeleteLogStoreResponse
6233
+ """
6234
+ runtime = util_models.RuntimeOptions()
6235
+ headers = {}
6236
+ return self.delete_log_store_with_options(project, logstore, headers, runtime)
6237
+
6238
+ async def delete_log_store_async(
6239
+ self,
6240
+ project: str,
6241
+ logstore: str,
6242
+ ) -> sls_20201230_models.DeleteLogStoreResponse:
5836
6243
  """
5837
6244
  @summary Deletes a Logstore, including all shards and indexes in the Logstore.
5838
6245
 
@@ -6161,6 +6568,126 @@ class Client(OpenApiClient):
6161
6568
  headers = {}
6162
6569
  return await self.delete_machine_group_with_options_async(project, machine_group, headers, runtime)
6163
6570
 
6571
+ def delete_max_compute_export_with_options(
6572
+ self,
6573
+ project: str,
6574
+ mc_export_name: str,
6575
+ headers: Dict[str, str],
6576
+ runtime: util_models.RuntimeOptions,
6577
+ ) -> sls_20201230_models.DeleteMaxComputeExportResponse:
6578
+ """
6579
+ @summary Deletes a MaxCompute data shipping job.
6580
+
6581
+ @description Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
6582
+ An AccessKey pair is created and obtained. For more information, see [AccessKey pair](https://help.aliyun.com/document_detail/29009.html).
6583
+ 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).
6584
+ 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)
6585
+
6586
+ @param headers: map
6587
+ @param runtime: runtime options for this request RuntimeOptions
6588
+ @return: DeleteMaxComputeExportResponse
6589
+ """
6590
+ host_map = {}
6591
+ host_map['project'] = project
6592
+ req = open_api_models.OpenApiRequest(
6593
+ host_map=host_map,
6594
+ headers=headers
6595
+ )
6596
+ params = open_api_models.Params(
6597
+ action='DeleteMaxComputeExport',
6598
+ version='2020-12-30',
6599
+ protocol='HTTPS',
6600
+ pathname=f'/maxcomputeexports/{mc_export_name}',
6601
+ method='DELETE',
6602
+ auth_type='AK',
6603
+ style='ROA',
6604
+ req_body_type='json',
6605
+ body_type='none'
6606
+ )
6607
+ return TeaCore.from_map(
6608
+ sls_20201230_models.DeleteMaxComputeExportResponse(),
6609
+ self.execute(params, req, runtime)
6610
+ )
6611
+
6612
+ async def delete_max_compute_export_with_options_async(
6613
+ self,
6614
+ project: str,
6615
+ mc_export_name: str,
6616
+ headers: Dict[str, str],
6617
+ runtime: util_models.RuntimeOptions,
6618
+ ) -> sls_20201230_models.DeleteMaxComputeExportResponse:
6619
+ """
6620
+ @summary Deletes a MaxCompute data shipping job.
6621
+
6622
+ @description Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
6623
+ An AccessKey pair is created and obtained. For more information, see [AccessKey pair](https://help.aliyun.com/document_detail/29009.html).
6624
+ 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).
6625
+ 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)
6626
+
6627
+ @param headers: map
6628
+ @param runtime: runtime options for this request RuntimeOptions
6629
+ @return: DeleteMaxComputeExportResponse
6630
+ """
6631
+ host_map = {}
6632
+ host_map['project'] = project
6633
+ req = open_api_models.OpenApiRequest(
6634
+ host_map=host_map,
6635
+ headers=headers
6636
+ )
6637
+ params = open_api_models.Params(
6638
+ action='DeleteMaxComputeExport',
6639
+ version='2020-12-30',
6640
+ protocol='HTTPS',
6641
+ pathname=f'/maxcomputeexports/{mc_export_name}',
6642
+ method='DELETE',
6643
+ auth_type='AK',
6644
+ style='ROA',
6645
+ req_body_type='json',
6646
+ body_type='none'
6647
+ )
6648
+ return TeaCore.from_map(
6649
+ sls_20201230_models.DeleteMaxComputeExportResponse(),
6650
+ await self.execute_async(params, req, runtime)
6651
+ )
6652
+
6653
+ def delete_max_compute_export(
6654
+ self,
6655
+ project: str,
6656
+ mc_export_name: str,
6657
+ ) -> sls_20201230_models.DeleteMaxComputeExportResponse:
6658
+ """
6659
+ @summary Deletes a MaxCompute data shipping job.
6660
+
6661
+ @description Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
6662
+ An AccessKey pair is created and obtained. For more information, see [AccessKey pair](https://help.aliyun.com/document_detail/29009.html).
6663
+ 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).
6664
+ 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)
6665
+
6666
+ @return: DeleteMaxComputeExportResponse
6667
+ """
6668
+ runtime = util_models.RuntimeOptions()
6669
+ headers = {}
6670
+ return self.delete_max_compute_export_with_options(project, mc_export_name, headers, runtime)
6671
+
6672
+ async def delete_max_compute_export_async(
6673
+ self,
6674
+ project: str,
6675
+ mc_export_name: str,
6676
+ ) -> sls_20201230_models.DeleteMaxComputeExportResponse:
6677
+ """
6678
+ @summary Deletes a MaxCompute data shipping job.
6679
+
6680
+ @description Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
6681
+ An AccessKey pair is created and obtained. For more information, see [AccessKey pair](https://help.aliyun.com/document_detail/29009.html).
6682
+ 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).
6683
+ 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)
6684
+
6685
+ @return: DeleteMaxComputeExportResponse
6686
+ """
6687
+ runtime = util_models.RuntimeOptions()
6688
+ headers = {}
6689
+ return await self.delete_max_compute_export_with_options_async(project, mc_export_name, headers, runtime)
6690
+
6164
6691
  def delete_metric_store_with_options(
6165
6692
  self,
6166
6693
  project: str,
@@ -6600,6 +7127,7 @@ class Client(OpenApiClient):
6600
7127
  def delete_project_with_options(
6601
7128
  self,
6602
7129
  project: str,
7130
+ request: sls_20201230_models.DeleteProjectRequest,
6603
7131
  headers: Dict[str, str],
6604
7132
  runtime: util_models.RuntimeOptions,
6605
7133
  ) -> sls_20201230_models.DeleteProjectResponse:
@@ -6617,15 +7145,21 @@ class Client(OpenApiClient):
6617
7145
  |:---|:---|
6618
7146
  |`log:DeleteProject`|`acs:log:{#regionId}:{#accountId}:project/{#ProjectName}`|
6619
7147
 
7148
+ @param request: DeleteProjectRequest
6620
7149
  @param headers: map
6621
7150
  @param runtime: runtime options for this request RuntimeOptions
6622
7151
  @return: DeleteProjectResponse
6623
7152
  """
7153
+ UtilClient.validate_model(request)
6624
7154
  host_map = {}
6625
7155
  host_map['project'] = project
7156
+ query = {}
7157
+ if not UtilClient.is_unset(request.force_delete):
7158
+ query['forceDelete'] = request.force_delete
6626
7159
  req = open_api_models.OpenApiRequest(
6627
7160
  host_map=host_map,
6628
- headers=headers
7161
+ headers=headers,
7162
+ query=OpenApiUtilClient.query(query)
6629
7163
  )
6630
7164
  params = open_api_models.Params(
6631
7165
  action='DeleteProject',
@@ -6646,6 +7180,7 @@ class Client(OpenApiClient):
6646
7180
  async def delete_project_with_options_async(
6647
7181
  self,
6648
7182
  project: str,
7183
+ request: sls_20201230_models.DeleteProjectRequest,
6649
7184
  headers: Dict[str, str],
6650
7185
  runtime: util_models.RuntimeOptions,
6651
7186
  ) -> sls_20201230_models.DeleteProjectResponse:
@@ -6663,15 +7198,21 @@ class Client(OpenApiClient):
6663
7198
  |:---|:---|
6664
7199
  |`log:DeleteProject`|`acs:log:{#regionId}:{#accountId}:project/{#ProjectName}`|
6665
7200
 
7201
+ @param request: DeleteProjectRequest
6666
7202
  @param headers: map
6667
7203
  @param runtime: runtime options for this request RuntimeOptions
6668
7204
  @return: DeleteProjectResponse
6669
7205
  """
7206
+ UtilClient.validate_model(request)
6670
7207
  host_map = {}
6671
7208
  host_map['project'] = project
7209
+ query = {}
7210
+ if not UtilClient.is_unset(request.force_delete):
7211
+ query['forceDelete'] = request.force_delete
6672
7212
  req = open_api_models.OpenApiRequest(
6673
7213
  host_map=host_map,
6674
- headers=headers
7214
+ headers=headers,
7215
+ query=OpenApiUtilClient.query(query)
6675
7216
  )
6676
7217
  params = open_api_models.Params(
6677
7218
  action='DeleteProject',
@@ -6692,6 +7233,7 @@ class Client(OpenApiClient):
6692
7233
  def delete_project(
6693
7234
  self,
6694
7235
  project: str,
7236
+ request: sls_20201230_models.DeleteProjectRequest,
6695
7237
  ) -> sls_20201230_models.DeleteProjectResponse:
6696
7238
  """
6697
7239
  @summary Deletes a project.
@@ -6707,15 +7249,17 @@ class Client(OpenApiClient):
6707
7249
  |:---|:---|
6708
7250
  |`log:DeleteProject`|`acs:log:{#regionId}:{#accountId}:project/{#ProjectName}`|
6709
7251
 
7252
+ @param request: DeleteProjectRequest
6710
7253
  @return: DeleteProjectResponse
6711
7254
  """
6712
7255
  runtime = util_models.RuntimeOptions()
6713
7256
  headers = {}
6714
- return self.delete_project_with_options(project, headers, runtime)
7257
+ return self.delete_project_with_options(project, request, headers, runtime)
6715
7258
 
6716
7259
  async def delete_project_async(
6717
7260
  self,
6718
7261
  project: str,
7262
+ request: sls_20201230_models.DeleteProjectRequest,
6719
7263
  ) -> sls_20201230_models.DeleteProjectResponse:
6720
7264
  """
6721
7265
  @summary Deletes a project.
@@ -6731,11 +7275,12 @@ class Client(OpenApiClient):
6731
7275
  |:---|:---|
6732
7276
  |`log:DeleteProject`|`acs:log:{#regionId}:{#accountId}:project/{#ProjectName}`|
6733
7277
 
7278
+ @param request: DeleteProjectRequest
6734
7279
  @return: DeleteProjectResponse
6735
7280
  """
6736
7281
  runtime = util_models.RuntimeOptions()
6737
7282
  headers = {}
6738
- return await self.delete_project_with_options_async(project, headers, runtime)
7283
+ return await self.delete_project_with_options_async(project, request, headers, runtime)
6739
7284
 
6740
7285
  def delete_project_policy_with_options(
6741
7286
  self,
@@ -7212,7 +7757,7 @@ class Client(OpenApiClient):
7212
7757
  runtime: util_models.RuntimeOptions,
7213
7758
  ) -> sls_20201230_models.DescribeRegionsResponse:
7214
7759
  """
7215
- @summary 查询可用的区域
7760
+ @summary Queries supported regions.
7216
7761
 
7217
7762
  @param request: DescribeRegionsRequest
7218
7763
  @param headers: map
@@ -7250,7 +7795,7 @@ class Client(OpenApiClient):
7250
7795
  runtime: util_models.RuntimeOptions,
7251
7796
  ) -> sls_20201230_models.DescribeRegionsResponse:
7252
7797
  """
7253
- @summary 查询可用的区域
7798
+ @summary Queries supported regions.
7254
7799
 
7255
7800
  @param request: DescribeRegionsRequest
7256
7801
  @param headers: map
@@ -7286,7 +7831,7 @@ class Client(OpenApiClient):
7286
7831
  request: sls_20201230_models.DescribeRegionsRequest,
7287
7832
  ) -> sls_20201230_models.DescribeRegionsResponse:
7288
7833
  """
7289
- @summary 查询可用的区域
7834
+ @summary Queries supported regions.
7290
7835
 
7291
7836
  @param request: DescribeRegionsRequest
7292
7837
  @return: DescribeRegionsResponse
@@ -7300,7 +7845,7 @@ class Client(OpenApiClient):
7300
7845
  request: sls_20201230_models.DescribeRegionsRequest,
7301
7846
  ) -> sls_20201230_models.DescribeRegionsResponse:
7302
7847
  """
7303
- @summary 查询可用的区域
7848
+ @summary Queries supported regions.
7304
7849
 
7305
7850
  @param request: DescribeRegionsRequest
7306
7851
  @return: DescribeRegionsResponse
@@ -7417,7 +7962,7 @@ class Client(OpenApiClient):
7417
7962
  runtime: util_models.RuntimeOptions,
7418
7963
  ) -> sls_20201230_models.DisableScheduledSQLResponse:
7419
7964
  """
7420
- @summary 禁用定时SQL任务
7965
+ @summary Disables the Scheduled SQL feature.
7421
7966
 
7422
7967
  @param headers: map
7423
7968
  @param runtime: runtime options for this request RuntimeOptions
@@ -7453,7 +7998,7 @@ class Client(OpenApiClient):
7453
7998
  runtime: util_models.RuntimeOptions,
7454
7999
  ) -> sls_20201230_models.DisableScheduledSQLResponse:
7455
8000
  """
7456
- @summary 禁用定时SQL任务
8001
+ @summary Disables the Scheduled SQL feature.
7457
8002
 
7458
8003
  @param headers: map
7459
8004
  @param runtime: runtime options for this request RuntimeOptions
@@ -7487,7 +8032,7 @@ class Client(OpenApiClient):
7487
8032
  scheduled_sqlname: str,
7488
8033
  ) -> sls_20201230_models.DisableScheduledSQLResponse:
7489
8034
  """
7490
- @summary 禁用定时SQL任务
8035
+ @summary Disables the Scheduled SQL feature.
7491
8036
 
7492
8037
  @return: DisableScheduledSQLResponse
7493
8038
  """
@@ -7501,7 +8046,7 @@ class Client(OpenApiClient):
7501
8046
  scheduled_sqlname: str,
7502
8047
  ) -> sls_20201230_models.DisableScheduledSQLResponse:
7503
8048
  """
7504
- @summary 禁用定时SQL任务
8049
+ @summary Disables the Scheduled SQL feature.
7505
8050
 
7506
8051
  @return: DisableScheduledSQLResponse
7507
8052
  """
@@ -8529,6 +9074,8 @@ class Client(OpenApiClient):
8529
9074
  """
8530
9075
  @summary 调用GetCollectionPolicy获取对应的规则
8531
9076
 
9077
+ @description You must use the Simple Log Service endpoint for the China (Shanghai), Singapore, or Heyuan ACDR Auto region to call the operation.
9078
+
8532
9079
  @param request: GetCollectionPolicyRequest
8533
9080
  @param headers: map
8534
9081
  @param runtime: runtime options for this request RuntimeOptions
@@ -8570,6 +9117,8 @@ class Client(OpenApiClient):
8570
9117
  """
8571
9118
  @summary 调用GetCollectionPolicy获取对应的规则
8572
9119
 
9120
+ @description You must use the Simple Log Service endpoint for the China (Shanghai), Singapore, or Heyuan ACDR Auto region to call the operation.
9121
+
8573
9122
  @param request: GetCollectionPolicyRequest
8574
9123
  @param headers: map
8575
9124
  @param runtime: runtime options for this request RuntimeOptions
@@ -8609,6 +9158,8 @@ class Client(OpenApiClient):
8609
9158
  """
8610
9159
  @summary 调用GetCollectionPolicy获取对应的规则
8611
9160
 
9161
+ @description You must use the Simple Log Service endpoint for the China (Shanghai), Singapore, or Heyuan ACDR Auto region to call the operation.
9162
+
8612
9163
  @param request: GetCollectionPolicyRequest
8613
9164
  @return: GetCollectionPolicyResponse
8614
9165
  """
@@ -8624,6 +9175,8 @@ class Client(OpenApiClient):
8624
9175
  """
8625
9176
  @summary 调用GetCollectionPolicy获取对应的规则
8626
9177
 
9178
+ @description You must use the Simple Log Service endpoint for the China (Shanghai), Singapore, or Heyuan ACDR Auto region to call the operation.
9179
+
8627
9180
  @param request: GetCollectionPolicyRequest
8628
9181
  @return: GetCollectionPolicyResponse
8629
9182
  """
@@ -9939,22 +10492,19 @@ class Client(OpenApiClient):
9939
10492
  headers = {}
9940
10493
  return await self.get_index_with_options_async(project, logstore, headers, runtime)
9941
10494
 
9942
- def get_log_store_with_options(
10495
+ def get_ingest_processor_with_options(
9943
10496
  self,
9944
10497
  project: str,
9945
- logstore: str,
10498
+ processor_name: str,
9946
10499
  headers: Dict[str, str],
9947
10500
  runtime: util_models.RuntimeOptions,
9948
- ) -> sls_20201230_models.GetLogStoreResponse:
10501
+ ) -> sls_20201230_models.GetIngestProcessorResponse:
9949
10502
  """
9950
- @summary Queries the details of a Logstore.
9951
-
9952
- @description ### Usage notes
9953
- Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
10503
+ @summary Queries an ingest processor.
9954
10504
 
9955
10505
  @param headers: map
9956
10506
  @param runtime: runtime options for this request RuntimeOptions
9957
- @return: GetLogStoreResponse
10507
+ @return: GetIngestProcessorResponse
9958
10508
  """
9959
10509
  host_map = {}
9960
10510
  host_map['project'] = project
@@ -9963,10 +10513,10 @@ class Client(OpenApiClient):
9963
10513
  headers=headers
9964
10514
  )
9965
10515
  params = open_api_models.Params(
9966
- action='GetLogStore',
10516
+ action='GetIngestProcessor',
9967
10517
  version='2020-12-30',
9968
10518
  protocol='HTTPS',
9969
- pathname=f'/logstores/{logstore}',
10519
+ pathname=f'/ingestprocessors/{processor_name}',
9970
10520
  method='GET',
9971
10521
  auth_type='AK',
9972
10522
  style='ROA',
@@ -9974,26 +10524,23 @@ class Client(OpenApiClient):
9974
10524
  body_type='json'
9975
10525
  )
9976
10526
  return TeaCore.from_map(
9977
- sls_20201230_models.GetLogStoreResponse(),
10527
+ sls_20201230_models.GetIngestProcessorResponse(),
9978
10528
  self.execute(params, req, runtime)
9979
10529
  )
9980
10530
 
9981
- async def get_log_store_with_options_async(
10531
+ async def get_ingest_processor_with_options_async(
9982
10532
  self,
9983
10533
  project: str,
9984
- logstore: str,
10534
+ processor_name: str,
9985
10535
  headers: Dict[str, str],
9986
10536
  runtime: util_models.RuntimeOptions,
9987
- ) -> sls_20201230_models.GetLogStoreResponse:
10537
+ ) -> sls_20201230_models.GetIngestProcessorResponse:
9988
10538
  """
9989
- @summary Queries the details of a Logstore.
9990
-
9991
- @description ### Usage notes
9992
- Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
10539
+ @summary Queries an ingest processor.
9993
10540
 
9994
10541
  @param headers: map
9995
10542
  @param runtime: runtime options for this request RuntimeOptions
9996
- @return: GetLogStoreResponse
10543
+ @return: GetIngestProcessorResponse
9997
10544
  """
9998
10545
  host_map = {}
9999
10546
  host_map['project'] = project
@@ -10002,10 +10549,10 @@ class Client(OpenApiClient):
10002
10549
  headers=headers
10003
10550
  )
10004
10551
  params = open_api_models.Params(
10005
- action='GetLogStore',
10552
+ action='GetIngestProcessor',
10006
10553
  version='2020-12-30',
10007
10554
  protocol='HTTPS',
10008
- pathname=f'/logstores/{logstore}',
10555
+ pathname=f'/ingestprocessors/{processor_name}',
10009
10556
  method='GET',
10010
10557
  auth_type='AK',
10011
10558
  style='ROA',
@@ -10013,51 +10560,157 @@ class Client(OpenApiClient):
10013
10560
  body_type='json'
10014
10561
  )
10015
10562
  return TeaCore.from_map(
10016
- sls_20201230_models.GetLogStoreResponse(),
10563
+ sls_20201230_models.GetIngestProcessorResponse(),
10017
10564
  await self.execute_async(params, req, runtime)
10018
10565
  )
10019
10566
 
10020
- def get_log_store(
10567
+ def get_ingest_processor(
10021
10568
  self,
10022
10569
  project: str,
10023
- logstore: str,
10024
- ) -> sls_20201230_models.GetLogStoreResponse:
10570
+ processor_name: str,
10571
+ ) -> sls_20201230_models.GetIngestProcessorResponse:
10025
10572
  """
10026
- @summary Queries the details of a Logstore.
10027
-
10028
- @description ### Usage notes
10029
- Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
10573
+ @summary Queries an ingest processor.
10030
10574
 
10031
- @return: GetLogStoreResponse
10575
+ @return: GetIngestProcessorResponse
10032
10576
  """
10033
10577
  runtime = util_models.RuntimeOptions()
10034
10578
  headers = {}
10035
- return self.get_log_store_with_options(project, logstore, headers, runtime)
10579
+ return self.get_ingest_processor_with_options(project, processor_name, headers, runtime)
10036
10580
 
10037
- async def get_log_store_async(
10581
+ async def get_ingest_processor_async(
10038
10582
  self,
10039
10583
  project: str,
10040
- logstore: str,
10041
- ) -> sls_20201230_models.GetLogStoreResponse:
10584
+ processor_name: str,
10585
+ ) -> sls_20201230_models.GetIngestProcessorResponse:
10042
10586
  """
10043
- @summary Queries the details of a Logstore.
10044
-
10045
- @description ### Usage notes
10046
- Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
10587
+ @summary Queries an ingest processor.
10047
10588
 
10048
- @return: GetLogStoreResponse
10589
+ @return: GetIngestProcessorResponse
10049
10590
  """
10050
10591
  runtime = util_models.RuntimeOptions()
10051
10592
  headers = {}
10052
- return await self.get_log_store_with_options_async(project, logstore, headers, runtime)
10593
+ return await self.get_ingest_processor_with_options_async(project, processor_name, headers, runtime)
10053
10594
 
10054
- def get_log_store_metering_mode_with_options(
10595
+ def get_log_store_with_options(
10055
10596
  self,
10056
10597
  project: str,
10057
10598
  logstore: str,
10058
10599
  headers: Dict[str, str],
10059
10600
  runtime: util_models.RuntimeOptions,
10060
- ) -> sls_20201230_models.GetLogStoreMeteringModeResponse:
10601
+ ) -> sls_20201230_models.GetLogStoreResponse:
10602
+ """
10603
+ @summary Queries the details of a Logstore.
10604
+
10605
+ @description ### Usage notes
10606
+ Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
10607
+
10608
+ @param headers: map
10609
+ @param runtime: runtime options for this request RuntimeOptions
10610
+ @return: GetLogStoreResponse
10611
+ """
10612
+ host_map = {}
10613
+ host_map['project'] = project
10614
+ req = open_api_models.OpenApiRequest(
10615
+ host_map=host_map,
10616
+ headers=headers
10617
+ )
10618
+ params = open_api_models.Params(
10619
+ action='GetLogStore',
10620
+ version='2020-12-30',
10621
+ protocol='HTTPS',
10622
+ pathname=f'/logstores/{logstore}',
10623
+ method='GET',
10624
+ auth_type='AK',
10625
+ style='ROA',
10626
+ req_body_type='json',
10627
+ body_type='json'
10628
+ )
10629
+ return TeaCore.from_map(
10630
+ sls_20201230_models.GetLogStoreResponse(),
10631
+ self.execute(params, req, runtime)
10632
+ )
10633
+
10634
+ async def get_log_store_with_options_async(
10635
+ self,
10636
+ project: str,
10637
+ logstore: str,
10638
+ headers: Dict[str, str],
10639
+ runtime: util_models.RuntimeOptions,
10640
+ ) -> sls_20201230_models.GetLogStoreResponse:
10641
+ """
10642
+ @summary Queries the details of a Logstore.
10643
+
10644
+ @description ### Usage notes
10645
+ Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
10646
+
10647
+ @param headers: map
10648
+ @param runtime: runtime options for this request RuntimeOptions
10649
+ @return: GetLogStoreResponse
10650
+ """
10651
+ host_map = {}
10652
+ host_map['project'] = project
10653
+ req = open_api_models.OpenApiRequest(
10654
+ host_map=host_map,
10655
+ headers=headers
10656
+ )
10657
+ params = open_api_models.Params(
10658
+ action='GetLogStore',
10659
+ version='2020-12-30',
10660
+ protocol='HTTPS',
10661
+ pathname=f'/logstores/{logstore}',
10662
+ method='GET',
10663
+ auth_type='AK',
10664
+ style='ROA',
10665
+ req_body_type='json',
10666
+ body_type='json'
10667
+ )
10668
+ return TeaCore.from_map(
10669
+ sls_20201230_models.GetLogStoreResponse(),
10670
+ await self.execute_async(params, req, runtime)
10671
+ )
10672
+
10673
+ def get_log_store(
10674
+ self,
10675
+ project: str,
10676
+ logstore: str,
10677
+ ) -> sls_20201230_models.GetLogStoreResponse:
10678
+ """
10679
+ @summary Queries the details of a Logstore.
10680
+
10681
+ @description ### Usage notes
10682
+ Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
10683
+
10684
+ @return: GetLogStoreResponse
10685
+ """
10686
+ runtime = util_models.RuntimeOptions()
10687
+ headers = {}
10688
+ return self.get_log_store_with_options(project, logstore, headers, runtime)
10689
+
10690
+ async def get_log_store_async(
10691
+ self,
10692
+ project: str,
10693
+ logstore: str,
10694
+ ) -> sls_20201230_models.GetLogStoreResponse:
10695
+ """
10696
+ @summary Queries the details of a Logstore.
10697
+
10698
+ @description ### Usage notes
10699
+ Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
10700
+
10701
+ @return: GetLogStoreResponse
10702
+ """
10703
+ runtime = util_models.RuntimeOptions()
10704
+ headers = {}
10705
+ return await self.get_log_store_with_options_async(project, logstore, headers, runtime)
10706
+
10707
+ def get_log_store_metering_mode_with_options(
10708
+ self,
10709
+ project: str,
10710
+ logstore: str,
10711
+ headers: Dict[str, str],
10712
+ runtime: util_models.RuntimeOptions,
10713
+ ) -> sls_20201230_models.GetLogStoreMeteringModeResponse:
10061
10714
  """
10062
10715
  @summary Queries the billing mode of a Logstore.
10063
10716
 
@@ -10673,7 +11326,7 @@ class Client(OpenApiClient):
10673
11326
  runtime: util_models.RuntimeOptions,
10674
11327
  ) -> sls_20201230_models.GetLogtailPipelineConfigResponse:
10675
11328
  """
10676
- @summary Queries the details of a Logtail pipeline configuration.
11329
+ @summary Queries the information about a Logtail pipeline configuration.
10677
11330
 
10678
11331
  @description The UK (London) region is supported. Supported regions are constantly updated.
10679
11332
 
@@ -10711,7 +11364,7 @@ class Client(OpenApiClient):
10711
11364
  runtime: util_models.RuntimeOptions,
10712
11365
  ) -> sls_20201230_models.GetLogtailPipelineConfigResponse:
10713
11366
  """
10714
- @summary Queries the details of a Logtail pipeline configuration.
11367
+ @summary Queries the information about a Logtail pipeline configuration.
10715
11368
 
10716
11369
  @description The UK (London) region is supported. Supported regions are constantly updated.
10717
11370
 
@@ -10747,7 +11400,7 @@ class Client(OpenApiClient):
10747
11400
  config_name: str,
10748
11401
  ) -> sls_20201230_models.GetLogtailPipelineConfigResponse:
10749
11402
  """
10750
- @summary Queries the details of a Logtail pipeline configuration.
11403
+ @summary Queries the information about a Logtail pipeline configuration.
10751
11404
 
10752
11405
  @description The UK (London) region is supported. Supported regions are constantly updated.
10753
11406
 
@@ -10763,7 +11416,7 @@ class Client(OpenApiClient):
10763
11416
  config_name: str,
10764
11417
  ) -> sls_20201230_models.GetLogtailPipelineConfigResponse:
10765
11418
  """
10766
- @summary Queries the details of a Logtail pipeline configuration.
11419
+ @summary Queries the information about a Logtail pipeline configuration.
10767
11420
 
10768
11421
  @description The UK (London) region is supported. Supported regions are constantly updated.
10769
11422
 
@@ -10783,6 +11436,22 @@ class Client(OpenApiClient):
10783
11436
  """
10784
11437
  @summary Simple Log Service provides intelligent analysis capabilities that can be used to analyze basic data such as logs, metrics, and traces. You can call the GetMLServiceResults operation to obtain the analysis results of a model. You can call the operation in the following scenarios: Named Entity Recognition (NER) tasks on logs, anomaly detection on time series, and root cause analysis on high-latency traces.
10785
11438
 
11439
+ @description You must obtain the following basic permissions before you call this operation:
11440
+ {
11441
+ "Version": "1",
11442
+ "Statement": [
11443
+ {
11444
+ "Action": [
11445
+ "log:Get"
11446
+ ],
11447
+ "Resource": [
11448
+ "acs:log::*:mlservice/sls_builtin_*"
11449
+ ],
11450
+ "Effect": "Allow"
11451
+ }
11452
+ ]
11453
+ }
11454
+
10786
11455
  @param request: GetMLServiceResultsRequest
10787
11456
  @param headers: map
10788
11457
  @param runtime: runtime options for this request RuntimeOptions
@@ -10825,6 +11494,22 @@ class Client(OpenApiClient):
10825
11494
  """
10826
11495
  @summary Simple Log Service provides intelligent analysis capabilities that can be used to analyze basic data such as logs, metrics, and traces. You can call the GetMLServiceResults operation to obtain the analysis results of a model. You can call the operation in the following scenarios: Named Entity Recognition (NER) tasks on logs, anomaly detection on time series, and root cause analysis on high-latency traces.
10827
11496
 
11497
+ @description You must obtain the following basic permissions before you call this operation:
11498
+ {
11499
+ "Version": "1",
11500
+ "Statement": [
11501
+ {
11502
+ "Action": [
11503
+ "log:Get"
11504
+ ],
11505
+ "Resource": [
11506
+ "acs:log::*:mlservice/sls_builtin_*"
11507
+ ],
11508
+ "Effect": "Allow"
11509
+ }
11510
+ ]
11511
+ }
11512
+
10828
11513
  @param request: GetMLServiceResultsRequest
10829
11514
  @param headers: map
10830
11515
  @param runtime: runtime options for this request RuntimeOptions
@@ -10865,6 +11550,22 @@ class Client(OpenApiClient):
10865
11550
  """
10866
11551
  @summary Simple Log Service provides intelligent analysis capabilities that can be used to analyze basic data such as logs, metrics, and traces. You can call the GetMLServiceResults operation to obtain the analysis results of a model. You can call the operation in the following scenarios: Named Entity Recognition (NER) tasks on logs, anomaly detection on time series, and root cause analysis on high-latency traces.
10867
11552
 
11553
+ @description You must obtain the following basic permissions before you call this operation:
11554
+ {
11555
+ "Version": "1",
11556
+ "Statement": [
11557
+ {
11558
+ "Action": [
11559
+ "log:Get"
11560
+ ],
11561
+ "Resource": [
11562
+ "acs:log::*:mlservice/sls_builtin_*"
11563
+ ],
11564
+ "Effect": "Allow"
11565
+ }
11566
+ ]
11567
+ }
11568
+
10868
11569
  @param request: GetMLServiceResultsRequest
10869
11570
  @return: GetMLServiceResultsResponse
10870
11571
  """
@@ -10880,6 +11581,22 @@ class Client(OpenApiClient):
10880
11581
  """
10881
11582
  @summary Simple Log Service provides intelligent analysis capabilities that can be used to analyze basic data such as logs, metrics, and traces. You can call the GetMLServiceResults operation to obtain the analysis results of a model. You can call the operation in the following scenarios: Named Entity Recognition (NER) tasks on logs, anomaly detection on time series, and root cause analysis on high-latency traces.
10882
11583
 
11584
+ @description You must obtain the following basic permissions before you call this operation:
11585
+ {
11586
+ "Version": "1",
11587
+ "Statement": [
11588
+ {
11589
+ "Action": [
11590
+ "log:Get"
11591
+ ],
11592
+ "Resource": [
11593
+ "acs:log::*:mlservice/sls_builtin_*"
11594
+ ],
11595
+ "Effect": "Allow"
11596
+ }
11597
+ ]
11598
+ }
11599
+
10883
11600
  @param request: GetMLServiceResultsRequest
10884
11601
  @return: GetMLServiceResultsResponse
10885
11602
  """
@@ -10995,6 +11712,126 @@ class Client(OpenApiClient):
10995
11712
  headers = {}
10996
11713
  return await self.get_machine_group_with_options_async(project, machine_group, headers, runtime)
10997
11714
 
11715
+ def get_max_compute_export_with_options(
11716
+ self,
11717
+ project: str,
11718
+ mc_export_name: str,
11719
+ headers: Dict[str, str],
11720
+ runtime: util_models.RuntimeOptions,
11721
+ ) -> sls_20201230_models.GetMaxComputeExportResponse:
11722
+ """
11723
+ @summary Queries a MaxCompute data shipping job.
11724
+
11725
+ @description Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
11726
+ An AccessKey pair is created and obtained. For more information, see [AccessKey pair](https://help.aliyun.com/document_detail/29009.html).
11727
+ 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).
11728
+ 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)
11729
+
11730
+ @param headers: map
11731
+ @param runtime: runtime options for this request RuntimeOptions
11732
+ @return: GetMaxComputeExportResponse
11733
+ """
11734
+ host_map = {}
11735
+ host_map['project'] = project
11736
+ req = open_api_models.OpenApiRequest(
11737
+ host_map=host_map,
11738
+ headers=headers
11739
+ )
11740
+ params = open_api_models.Params(
11741
+ action='GetMaxComputeExport',
11742
+ version='2020-12-30',
11743
+ protocol='HTTPS',
11744
+ pathname=f'/maxcomputeexports/{mc_export_name}',
11745
+ method='GET',
11746
+ auth_type='AK',
11747
+ style='ROA',
11748
+ req_body_type='json',
11749
+ body_type='json'
11750
+ )
11751
+ return TeaCore.from_map(
11752
+ sls_20201230_models.GetMaxComputeExportResponse(),
11753
+ self.execute(params, req, runtime)
11754
+ )
11755
+
11756
+ async def get_max_compute_export_with_options_async(
11757
+ self,
11758
+ project: str,
11759
+ mc_export_name: str,
11760
+ headers: Dict[str, str],
11761
+ runtime: util_models.RuntimeOptions,
11762
+ ) -> sls_20201230_models.GetMaxComputeExportResponse:
11763
+ """
11764
+ @summary Queries a MaxCompute data shipping job.
11765
+
11766
+ @description Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
11767
+ An AccessKey pair is created and obtained. For more information, see [AccessKey pair](https://help.aliyun.com/document_detail/29009.html).
11768
+ 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).
11769
+ 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)
11770
+
11771
+ @param headers: map
11772
+ @param runtime: runtime options for this request RuntimeOptions
11773
+ @return: GetMaxComputeExportResponse
11774
+ """
11775
+ host_map = {}
11776
+ host_map['project'] = project
11777
+ req = open_api_models.OpenApiRequest(
11778
+ host_map=host_map,
11779
+ headers=headers
11780
+ )
11781
+ params = open_api_models.Params(
11782
+ action='GetMaxComputeExport',
11783
+ version='2020-12-30',
11784
+ protocol='HTTPS',
11785
+ pathname=f'/maxcomputeexports/{mc_export_name}',
11786
+ method='GET',
11787
+ auth_type='AK',
11788
+ style='ROA',
11789
+ req_body_type='json',
11790
+ body_type='json'
11791
+ )
11792
+ return TeaCore.from_map(
11793
+ sls_20201230_models.GetMaxComputeExportResponse(),
11794
+ await self.execute_async(params, req, runtime)
11795
+ )
11796
+
11797
+ def get_max_compute_export(
11798
+ self,
11799
+ project: str,
11800
+ mc_export_name: str,
11801
+ ) -> sls_20201230_models.GetMaxComputeExportResponse:
11802
+ """
11803
+ @summary Queries a MaxCompute data shipping job.
11804
+
11805
+ @description Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
11806
+ An AccessKey pair is created and obtained. For more information, see [AccessKey pair](https://help.aliyun.com/document_detail/29009.html).
11807
+ 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).
11808
+ 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)
11809
+
11810
+ @return: GetMaxComputeExportResponse
11811
+ """
11812
+ runtime = util_models.RuntimeOptions()
11813
+ headers = {}
11814
+ return self.get_max_compute_export_with_options(project, mc_export_name, headers, runtime)
11815
+
11816
+ async def get_max_compute_export_async(
11817
+ self,
11818
+ project: str,
11819
+ mc_export_name: str,
11820
+ ) -> sls_20201230_models.GetMaxComputeExportResponse:
11821
+ """
11822
+ @summary Queries a MaxCompute data shipping job.
11823
+
11824
+ @description Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
11825
+ An AccessKey pair is created and obtained. For more information, see [AccessKey pair](https://help.aliyun.com/document_detail/29009.html).
11826
+ 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).
11827
+ 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)
11828
+
11829
+ @return: GetMaxComputeExportResponse
11830
+ """
11831
+ runtime = util_models.RuntimeOptions()
11832
+ headers = {}
11833
+ return await self.get_max_compute_export_with_options_async(project, mc_export_name, headers, runtime)
11834
+
10998
11835
  def get_metric_store_with_options(
10999
11836
  self,
11000
11837
  project: str,
@@ -12675,84 +13512,166 @@ class Client(OpenApiClient):
12675
13512
  headers = {}
12676
13513
  return await self.list_agent_instance_configs_with_options_async(request, headers, runtime)
12677
13514
 
12678
- def list_alerts_with_options(
13515
+ def list_ai_tools_with_options(
12679
13516
  self,
12680
- project: str,
12681
- request: sls_20201230_models.ListAlertsRequest,
12682
13517
  headers: Dict[str, str],
12683
13518
  runtime: util_models.RuntimeOptions,
12684
- ) -> sls_20201230_models.ListAlertsResponse:
13519
+ ) -> sls_20201230_models.ListAiToolsResponse:
12685
13520
  """
12686
- @summary Queries a list of alert rules in a project.
13521
+ @summary 获取 ai 工具列表
12687
13522
 
12688
- @param request: ListAlertsRequest
12689
13523
  @param headers: map
12690
13524
  @param runtime: runtime options for this request RuntimeOptions
12691
- @return: ListAlertsResponse
13525
+ @return: ListAiToolsResponse
12692
13526
  """
12693
- UtilClient.validate_model(request)
12694
- host_map = {}
12695
- host_map['project'] = project
12696
- query = {}
12697
- if not UtilClient.is_unset(request.logstore):
12698
- query['logstore'] = request.logstore
12699
- if not UtilClient.is_unset(request.offset):
12700
- query['offset'] = request.offset
12701
- if not UtilClient.is_unset(request.size):
12702
- query['size'] = request.size
12703
13527
  req = open_api_models.OpenApiRequest(
12704
- host_map=host_map,
12705
- headers=headers,
12706
- query=OpenApiUtilClient.query(query)
13528
+ headers=headers
12707
13529
  )
12708
13530
  params = open_api_models.Params(
12709
- action='ListAlerts',
13531
+ action='ListAiTools',
12710
13532
  version='2020-12-30',
12711
13533
  protocol='HTTPS',
12712
- pathname=f'/alerts',
13534
+ pathname=f'/ml/tool/list',
12713
13535
  method='GET',
12714
13536
  auth_type='AK',
12715
13537
  style='ROA',
12716
13538
  req_body_type='json',
12717
- body_type='json'
13539
+ body_type='array'
12718
13540
  )
12719
13541
  return TeaCore.from_map(
12720
- sls_20201230_models.ListAlertsResponse(),
13542
+ sls_20201230_models.ListAiToolsResponse(),
12721
13543
  self.execute(params, req, runtime)
12722
13544
  )
12723
13545
 
12724
- async def list_alerts_with_options_async(
13546
+ async def list_ai_tools_with_options_async(
12725
13547
  self,
12726
- project: str,
12727
- request: sls_20201230_models.ListAlertsRequest,
12728
13548
  headers: Dict[str, str],
12729
13549
  runtime: util_models.RuntimeOptions,
12730
- ) -> sls_20201230_models.ListAlertsResponse:
13550
+ ) -> sls_20201230_models.ListAiToolsResponse:
12731
13551
  """
12732
- @summary Queries a list of alert rules in a project.
13552
+ @summary 获取 ai 工具列表
12733
13553
 
12734
- @param request: ListAlertsRequest
12735
13554
  @param headers: map
12736
13555
  @param runtime: runtime options for this request RuntimeOptions
12737
- @return: ListAlertsResponse
13556
+ @return: ListAiToolsResponse
12738
13557
  """
12739
- UtilClient.validate_model(request)
12740
- host_map = {}
12741
- host_map['project'] = project
12742
- query = {}
12743
- if not UtilClient.is_unset(request.logstore):
12744
- query['logstore'] = request.logstore
12745
- if not UtilClient.is_unset(request.offset):
12746
- query['offset'] = request.offset
12747
- if not UtilClient.is_unset(request.size):
12748
- query['size'] = request.size
12749
13558
  req = open_api_models.OpenApiRequest(
12750
- host_map=host_map,
12751
- headers=headers,
12752
- query=OpenApiUtilClient.query(query)
13559
+ headers=headers
12753
13560
  )
12754
13561
  params = open_api_models.Params(
12755
- action='ListAlerts',
13562
+ action='ListAiTools',
13563
+ version='2020-12-30',
13564
+ protocol='HTTPS',
13565
+ pathname=f'/ml/tool/list',
13566
+ method='GET',
13567
+ auth_type='AK',
13568
+ style='ROA',
13569
+ req_body_type='json',
13570
+ body_type='array'
13571
+ )
13572
+ return TeaCore.from_map(
13573
+ sls_20201230_models.ListAiToolsResponse(),
13574
+ await self.execute_async(params, req, runtime)
13575
+ )
13576
+
13577
+ def list_ai_tools(self) -> sls_20201230_models.ListAiToolsResponse:
13578
+ """
13579
+ @summary 获取 ai 工具列表
13580
+
13581
+ @return: ListAiToolsResponse
13582
+ """
13583
+ runtime = util_models.RuntimeOptions()
13584
+ headers = {}
13585
+ return self.list_ai_tools_with_options(headers, runtime)
13586
+
13587
+ async def list_ai_tools_async(self) -> sls_20201230_models.ListAiToolsResponse:
13588
+ """
13589
+ @summary 获取 ai 工具列表
13590
+
13591
+ @return: ListAiToolsResponse
13592
+ """
13593
+ runtime = util_models.RuntimeOptions()
13594
+ headers = {}
13595
+ return await self.list_ai_tools_with_options_async(headers, runtime)
13596
+
13597
+ def list_alerts_with_options(
13598
+ self,
13599
+ project: str,
13600
+ request: sls_20201230_models.ListAlertsRequest,
13601
+ headers: Dict[str, str],
13602
+ runtime: util_models.RuntimeOptions,
13603
+ ) -> sls_20201230_models.ListAlertsResponse:
13604
+ """
13605
+ @summary Queries a list of alert rules in a project.
13606
+
13607
+ @param request: ListAlertsRequest
13608
+ @param headers: map
13609
+ @param runtime: runtime options for this request RuntimeOptions
13610
+ @return: ListAlertsResponse
13611
+ """
13612
+ UtilClient.validate_model(request)
13613
+ host_map = {}
13614
+ host_map['project'] = project
13615
+ query = {}
13616
+ if not UtilClient.is_unset(request.logstore):
13617
+ query['logstore'] = request.logstore
13618
+ if not UtilClient.is_unset(request.offset):
13619
+ query['offset'] = request.offset
13620
+ if not UtilClient.is_unset(request.size):
13621
+ query['size'] = request.size
13622
+ req = open_api_models.OpenApiRequest(
13623
+ host_map=host_map,
13624
+ headers=headers,
13625
+ query=OpenApiUtilClient.query(query)
13626
+ )
13627
+ params = open_api_models.Params(
13628
+ action='ListAlerts',
13629
+ version='2020-12-30',
13630
+ protocol='HTTPS',
13631
+ pathname=f'/alerts',
13632
+ method='GET',
13633
+ auth_type='AK',
13634
+ style='ROA',
13635
+ req_body_type='json',
13636
+ body_type='json'
13637
+ )
13638
+ return TeaCore.from_map(
13639
+ sls_20201230_models.ListAlertsResponse(),
13640
+ self.execute(params, req, runtime)
13641
+ )
13642
+
13643
+ async def list_alerts_with_options_async(
13644
+ self,
13645
+ project: str,
13646
+ request: sls_20201230_models.ListAlertsRequest,
13647
+ headers: Dict[str, str],
13648
+ runtime: util_models.RuntimeOptions,
13649
+ ) -> sls_20201230_models.ListAlertsResponse:
13650
+ """
13651
+ @summary Queries a list of alert rules in a project.
13652
+
13653
+ @param request: ListAlertsRequest
13654
+ @param headers: map
13655
+ @param runtime: runtime options for this request RuntimeOptions
13656
+ @return: ListAlertsResponse
13657
+ """
13658
+ UtilClient.validate_model(request)
13659
+ host_map = {}
13660
+ host_map['project'] = project
13661
+ query = {}
13662
+ if not UtilClient.is_unset(request.logstore):
13663
+ query['logstore'] = request.logstore
13664
+ if not UtilClient.is_unset(request.offset):
13665
+ query['offset'] = request.offset
13666
+ if not UtilClient.is_unset(request.size):
13667
+ query['size'] = request.size
13668
+ req = open_api_models.OpenApiRequest(
13669
+ host_map=host_map,
13670
+ headers=headers,
13671
+ query=OpenApiUtilClient.query(query)
13672
+ )
13673
+ params = open_api_models.Params(
13674
+ action='ListAlerts',
12756
13675
  version='2020-12-30',
12757
13676
  protocol='HTTPS',
12758
13677
  pathname=f'/alerts',
@@ -13134,7 +14053,7 @@ class Client(OpenApiClient):
13134
14053
  """
13135
14054
  @summary Queries a list of log collection policies for cloud services.
13136
14055
 
13137
- @description You must use the Simple Log Service endpoint for the China (Shanghai) or Singapore region to call the operation.
14056
+ @description You must use the Simple Log Service endpoint for the China (Shanghai), Singapore, or Heyuan ACDR Auto region to call the operation.
13138
14057
 
13139
14058
  @param request: ListCollectionPoliciesRequest
13140
14059
  @param headers: map
@@ -13186,7 +14105,7 @@ class Client(OpenApiClient):
13186
14105
  """
13187
14106
  @summary Queries a list of log collection policies for cloud services.
13188
14107
 
13189
- @description You must use the Simple Log Service endpoint for the China (Shanghai) or Singapore region to call the operation.
14108
+ @description You must use the Simple Log Service endpoint for the China (Shanghai), Singapore, or Heyuan ACDR Auto region to call the operation.
13190
14109
 
13191
14110
  @param request: ListCollectionPoliciesRequest
13192
14111
  @param headers: map
@@ -13236,7 +14155,7 @@ class Client(OpenApiClient):
13236
14155
  """
13237
14156
  @summary Queries a list of log collection policies for cloud services.
13238
14157
 
13239
- @description You must use the Simple Log Service endpoint for the China (Shanghai) or Singapore region to call the operation.
14158
+ @description You must use the Simple Log Service endpoint for the China (Shanghai), Singapore, or Heyuan ACDR Auto region to call the operation.
13240
14159
 
13241
14160
  @param request: ListCollectionPoliciesRequest
13242
14161
  @return: ListCollectionPoliciesResponse
@@ -13252,7 +14171,7 @@ class Client(OpenApiClient):
13252
14171
  """
13253
14172
  @summary Queries a list of log collection policies for cloud services.
13254
14173
 
13255
- @description You must use the Simple Log Service endpoint for the China (Shanghai) or Singapore region to call the operation.
14174
+ @description You must use the Simple Log Service endpoint for the China (Shanghai), Singapore, or Heyuan ACDR Auto region to call the operation.
13256
14175
 
13257
14176
  @param request: ListCollectionPoliciesRequest
13258
14177
  @return: ListCollectionPoliciesResponse
@@ -14075,6 +14994,132 @@ class Client(OpenApiClient):
14075
14994
  headers = {}
14076
14995
  return await self.list_etls_with_options_async(project, request, headers, runtime)
14077
14996
 
14997
+ def list_ingest_processors_with_options(
14998
+ self,
14999
+ project: str,
15000
+ request: sls_20201230_models.ListIngestProcessorsRequest,
15001
+ headers: Dict[str, str],
15002
+ runtime: util_models.RuntimeOptions,
15003
+ ) -> sls_20201230_models.ListIngestProcessorsResponse:
15004
+ """
15005
+ @summary Queries a list of ingest processors that meet specific conditions.
15006
+
15007
+ @param request: ListIngestProcessorsRequest
15008
+ @param headers: map
15009
+ @param runtime: runtime options for this request RuntimeOptions
15010
+ @return: ListIngestProcessorsResponse
15011
+ """
15012
+ UtilClient.validate_model(request)
15013
+ host_map = {}
15014
+ host_map['project'] = project
15015
+ query = {}
15016
+ if not UtilClient.is_unset(request.display_name):
15017
+ query['displayName'] = request.display_name
15018
+ if not UtilClient.is_unset(request.offset):
15019
+ query['offset'] = request.offset
15020
+ if not UtilClient.is_unset(request.processor_name):
15021
+ query['processorName'] = request.processor_name
15022
+ if not UtilClient.is_unset(request.size):
15023
+ query['size'] = request.size
15024
+ req = open_api_models.OpenApiRequest(
15025
+ host_map=host_map,
15026
+ headers=headers,
15027
+ query=OpenApiUtilClient.query(query)
15028
+ )
15029
+ params = open_api_models.Params(
15030
+ action='ListIngestProcessors',
15031
+ version='2020-12-30',
15032
+ protocol='HTTPS',
15033
+ pathname=f'/ingestprocessors',
15034
+ method='GET',
15035
+ auth_type='AK',
15036
+ style='ROA',
15037
+ req_body_type='json',
15038
+ body_type='json'
15039
+ )
15040
+ return TeaCore.from_map(
15041
+ sls_20201230_models.ListIngestProcessorsResponse(),
15042
+ self.execute(params, req, runtime)
15043
+ )
15044
+
15045
+ async def list_ingest_processors_with_options_async(
15046
+ self,
15047
+ project: str,
15048
+ request: sls_20201230_models.ListIngestProcessorsRequest,
15049
+ headers: Dict[str, str],
15050
+ runtime: util_models.RuntimeOptions,
15051
+ ) -> sls_20201230_models.ListIngestProcessorsResponse:
15052
+ """
15053
+ @summary Queries a list of ingest processors that meet specific conditions.
15054
+
15055
+ @param request: ListIngestProcessorsRequest
15056
+ @param headers: map
15057
+ @param runtime: runtime options for this request RuntimeOptions
15058
+ @return: ListIngestProcessorsResponse
15059
+ """
15060
+ UtilClient.validate_model(request)
15061
+ host_map = {}
15062
+ host_map['project'] = project
15063
+ query = {}
15064
+ if not UtilClient.is_unset(request.display_name):
15065
+ query['displayName'] = request.display_name
15066
+ if not UtilClient.is_unset(request.offset):
15067
+ query['offset'] = request.offset
15068
+ if not UtilClient.is_unset(request.processor_name):
15069
+ query['processorName'] = request.processor_name
15070
+ if not UtilClient.is_unset(request.size):
15071
+ query['size'] = request.size
15072
+ req = open_api_models.OpenApiRequest(
15073
+ host_map=host_map,
15074
+ headers=headers,
15075
+ query=OpenApiUtilClient.query(query)
15076
+ )
15077
+ params = open_api_models.Params(
15078
+ action='ListIngestProcessors',
15079
+ version='2020-12-30',
15080
+ protocol='HTTPS',
15081
+ pathname=f'/ingestprocessors',
15082
+ method='GET',
15083
+ auth_type='AK',
15084
+ style='ROA',
15085
+ req_body_type='json',
15086
+ body_type='json'
15087
+ )
15088
+ return TeaCore.from_map(
15089
+ sls_20201230_models.ListIngestProcessorsResponse(),
15090
+ await self.execute_async(params, req, runtime)
15091
+ )
15092
+
15093
+ def list_ingest_processors(
15094
+ self,
15095
+ project: str,
15096
+ request: sls_20201230_models.ListIngestProcessorsRequest,
15097
+ ) -> sls_20201230_models.ListIngestProcessorsResponse:
15098
+ """
15099
+ @summary Queries a list of ingest processors that meet specific conditions.
15100
+
15101
+ @param request: ListIngestProcessorsRequest
15102
+ @return: ListIngestProcessorsResponse
15103
+ """
15104
+ runtime = util_models.RuntimeOptions()
15105
+ headers = {}
15106
+ return self.list_ingest_processors_with_options(project, request, headers, runtime)
15107
+
15108
+ async def list_ingest_processors_async(
15109
+ self,
15110
+ project: str,
15111
+ request: sls_20201230_models.ListIngestProcessorsRequest,
15112
+ ) -> sls_20201230_models.ListIngestProcessorsResponse:
15113
+ """
15114
+ @summary Queries a list of ingest processors that meet specific conditions.
15115
+
15116
+ @param request: ListIngestProcessorsRequest
15117
+ @return: ListIngestProcessorsResponse
15118
+ """
15119
+ runtime = util_models.RuntimeOptions()
15120
+ headers = {}
15121
+ return await self.list_ingest_processors_with_options_async(project, request, headers, runtime)
15122
+
14078
15123
  def list_log_stores_with_options(
14079
15124
  self,
14080
15125
  project: str,
@@ -14643,34 +15688,32 @@ class Client(OpenApiClient):
14643
15688
  headers = {}
14644
15689
  return await self.list_machines_with_options_async(project, machine_group, request, headers, runtime)
14645
15690
 
14646
- def list_metric_stores_with_options(
15691
+ def list_max_compute_exports_with_options(
14647
15692
  self,
14648
15693
  project: str,
14649
- request: sls_20201230_models.ListMetricStoresRequest,
15694
+ request: sls_20201230_models.ListMaxComputeExportsRequest,
14650
15695
  headers: Dict[str, str],
14651
15696
  runtime: util_models.RuntimeOptions,
14652
- ) -> sls_20201230_models.ListMetricStoresResponse:
15697
+ ) -> sls_20201230_models.ListMaxComputeExportsResponse:
14653
15698
  """
14654
- @summary Queries the list of Metricstores in a project. You can use fuzzy search to query the Metricstores by Metricstore name.
15699
+ @summary Queries a list of MaxCompute data shipping jobs.
14655
15700
 
14656
15701
  @description Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
14657
15702
  An AccessKey pair is created and obtained. For more information, see [AccessKey pair](https://help.aliyun.com/document_detail/29009.html).
14658
15703
  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).
14659
- The information that is required to query metric data is obtained. The information includes the name of the project to which the metric data belong and the region of the project. For more information, see [Manage a project](https://help.aliyun.com/document_detail/48984.html).
15704
+ 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)
14660
15705
 
14661
- @param request: ListMetricStoresRequest
15706
+ @param request: ListMaxComputeExportsRequest
14662
15707
  @param headers: map
14663
15708
  @param runtime: runtime options for this request RuntimeOptions
14664
- @return: ListMetricStoresResponse
15709
+ @return: ListMaxComputeExportsResponse
14665
15710
  """
14666
15711
  UtilClient.validate_model(request)
14667
15712
  host_map = {}
14668
15713
  host_map['project'] = project
14669
15714
  query = {}
14670
- if not UtilClient.is_unset(request.mode):
14671
- query['mode'] = request.mode
14672
- if not UtilClient.is_unset(request.name):
14673
- query['name'] = request.name
15715
+ if not UtilClient.is_unset(request.logstore):
15716
+ query['logstore'] = request.logstore
14674
15717
  if not UtilClient.is_unset(request.offset):
14675
15718
  query['offset'] = request.offset
14676
15719
  if not UtilClient.is_unset(request.size):
@@ -14681,49 +15724,47 @@ class Client(OpenApiClient):
14681
15724
  query=OpenApiUtilClient.query(query)
14682
15725
  )
14683
15726
  params = open_api_models.Params(
14684
- action='ListMetricStores',
15727
+ action='ListMaxComputeExports',
14685
15728
  version='2020-12-30',
14686
15729
  protocol='HTTPS',
14687
- pathname=f'/metricstores',
15730
+ pathname=f'/maxcomputeexports',
14688
15731
  method='GET',
14689
15732
  auth_type='AK',
14690
15733
  style='ROA',
14691
- req_body_type='none',
15734
+ req_body_type='json',
14692
15735
  body_type='json'
14693
15736
  )
14694
15737
  return TeaCore.from_map(
14695
- sls_20201230_models.ListMetricStoresResponse(),
15738
+ sls_20201230_models.ListMaxComputeExportsResponse(),
14696
15739
  self.execute(params, req, runtime)
14697
15740
  )
14698
15741
 
14699
- async def list_metric_stores_with_options_async(
15742
+ async def list_max_compute_exports_with_options_async(
14700
15743
  self,
14701
15744
  project: str,
14702
- request: sls_20201230_models.ListMetricStoresRequest,
15745
+ request: sls_20201230_models.ListMaxComputeExportsRequest,
14703
15746
  headers: Dict[str, str],
14704
15747
  runtime: util_models.RuntimeOptions,
14705
- ) -> sls_20201230_models.ListMetricStoresResponse:
15748
+ ) -> sls_20201230_models.ListMaxComputeExportsResponse:
14706
15749
  """
14707
- @summary Queries the list of Metricstores in a project. You can use fuzzy search to query the Metricstores by Metricstore name.
15750
+ @summary Queries a list of MaxCompute data shipping jobs.
14708
15751
 
14709
15752
  @description Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
14710
15753
  An AccessKey pair is created and obtained. For more information, see [AccessKey pair](https://help.aliyun.com/document_detail/29009.html).
14711
15754
  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).
14712
- The information that is required to query metric data is obtained. The information includes the name of the project to which the metric data belong and the region of the project. For more information, see [Manage a project](https://help.aliyun.com/document_detail/48984.html).
15755
+ 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)
14713
15756
 
14714
- @param request: ListMetricStoresRequest
15757
+ @param request: ListMaxComputeExportsRequest
14715
15758
  @param headers: map
14716
15759
  @param runtime: runtime options for this request RuntimeOptions
14717
- @return: ListMetricStoresResponse
15760
+ @return: ListMaxComputeExportsResponse
14718
15761
  """
14719
15762
  UtilClient.validate_model(request)
14720
15763
  host_map = {}
14721
15764
  host_map['project'] = project
14722
15765
  query = {}
14723
- if not UtilClient.is_unset(request.mode):
14724
- query['mode'] = request.mode
14725
- if not UtilClient.is_unset(request.name):
14726
- query['name'] = request.name
15766
+ if not UtilClient.is_unset(request.logstore):
15767
+ query['logstore'] = request.logstore
14727
15768
  if not UtilClient.is_unset(request.offset):
14728
15769
  query['offset'] = request.offset
14729
15770
  if not UtilClient.is_unset(request.size):
@@ -14734,73 +15775,219 @@ class Client(OpenApiClient):
14734
15775
  query=OpenApiUtilClient.query(query)
14735
15776
  )
14736
15777
  params = open_api_models.Params(
14737
- action='ListMetricStores',
15778
+ action='ListMaxComputeExports',
14738
15779
  version='2020-12-30',
14739
15780
  protocol='HTTPS',
14740
- pathname=f'/metricstores',
15781
+ pathname=f'/maxcomputeexports',
14741
15782
  method='GET',
14742
15783
  auth_type='AK',
14743
15784
  style='ROA',
14744
- req_body_type='none',
15785
+ req_body_type='json',
14745
15786
  body_type='json'
14746
15787
  )
14747
15788
  return TeaCore.from_map(
14748
- sls_20201230_models.ListMetricStoresResponse(),
15789
+ sls_20201230_models.ListMaxComputeExportsResponse(),
14749
15790
  await self.execute_async(params, req, runtime)
14750
15791
  )
14751
15792
 
14752
- def list_metric_stores(
15793
+ def list_max_compute_exports(
14753
15794
  self,
14754
15795
  project: str,
14755
- request: sls_20201230_models.ListMetricStoresRequest,
14756
- ) -> sls_20201230_models.ListMetricStoresResponse:
15796
+ request: sls_20201230_models.ListMaxComputeExportsRequest,
15797
+ ) -> sls_20201230_models.ListMaxComputeExportsResponse:
14757
15798
  """
14758
- @summary Queries the list of Metricstores in a project. You can use fuzzy search to query the Metricstores by Metricstore name.
15799
+ @summary Queries a list of MaxCompute data shipping jobs.
14759
15800
 
14760
15801
  @description Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
14761
15802
  An AccessKey pair is created and obtained. For more information, see [AccessKey pair](https://help.aliyun.com/document_detail/29009.html).
14762
15803
  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).
14763
- The information that is required to query metric data is obtained. The information includes the name of the project to which the metric data belong and the region of the project. For more information, see [Manage a project](https://help.aliyun.com/document_detail/48984.html).
15804
+ 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)
14764
15805
 
14765
- @param request: ListMetricStoresRequest
14766
- @return: ListMetricStoresResponse
15806
+ @param request: ListMaxComputeExportsRequest
15807
+ @return: ListMaxComputeExportsResponse
14767
15808
  """
14768
15809
  runtime = util_models.RuntimeOptions()
14769
15810
  headers = {}
14770
- return self.list_metric_stores_with_options(project, request, headers, runtime)
15811
+ return self.list_max_compute_exports_with_options(project, request, headers, runtime)
14771
15812
 
14772
- async def list_metric_stores_async(
15813
+ async def list_max_compute_exports_async(
14773
15814
  self,
14774
15815
  project: str,
14775
- request: sls_20201230_models.ListMetricStoresRequest,
14776
- ) -> sls_20201230_models.ListMetricStoresResponse:
15816
+ request: sls_20201230_models.ListMaxComputeExportsRequest,
15817
+ ) -> sls_20201230_models.ListMaxComputeExportsResponse:
14777
15818
  """
14778
- @summary Queries the list of Metricstores in a project. You can use fuzzy search to query the Metricstores by Metricstore name.
15819
+ @summary Queries a list of MaxCompute data shipping jobs.
14779
15820
 
14780
15821
  @description Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
14781
15822
  An AccessKey pair is created and obtained. For more information, see [AccessKey pair](https://help.aliyun.com/document_detail/29009.html).
14782
15823
  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).
14783
- The information that is required to query metric data is obtained. The information includes the name of the project to which the metric data belong and the region of the project. For more information, see [Manage a project](https://help.aliyun.com/document_detail/48984.html).
15824
+ 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)
14784
15825
 
14785
- @param request: ListMetricStoresRequest
14786
- @return: ListMetricStoresResponse
15826
+ @param request: ListMaxComputeExportsRequest
15827
+ @return: ListMaxComputeExportsResponse
14787
15828
  """
14788
15829
  runtime = util_models.RuntimeOptions()
14789
15830
  headers = {}
14790
- return await self.list_metric_stores_with_options_async(project, request, headers, runtime)
15831
+ return await self.list_max_compute_exports_with_options_async(project, request, headers, runtime)
14791
15832
 
14792
- def list_ossexports_with_options(
15833
+ def list_metric_stores_with_options(
14793
15834
  self,
14794
15835
  project: str,
14795
- request: sls_20201230_models.ListOSSExportsRequest,
15836
+ request: sls_20201230_models.ListMetricStoresRequest,
14796
15837
  headers: Dict[str, str],
14797
15838
  runtime: util_models.RuntimeOptions,
14798
- ) -> sls_20201230_models.ListOSSExportsResponse:
15839
+ ) -> sls_20201230_models.ListMetricStoresResponse:
14799
15840
  """
14800
- @summary 列出OSS投递任务
15841
+ @summary Queries the list of Metricstores in a project. You can use fuzzy search to query the Metricstores by Metricstore name.
14801
15842
 
14802
- @param request: ListOSSExportsRequest
14803
- @param headers: map
15843
+ @description Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
15844
+ An AccessKey pair is created and obtained. For more information, see [AccessKey pair](https://help.aliyun.com/document_detail/29009.html).
15845
+ 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).
15846
+ The information that is required to query metric data is obtained. The information includes the name of the project to which the metric data belong and the region of the project. For more information, see [Manage a project](https://help.aliyun.com/document_detail/48984.html).
15847
+
15848
+ @param request: ListMetricStoresRequest
15849
+ @param headers: map
15850
+ @param runtime: runtime options for this request RuntimeOptions
15851
+ @return: ListMetricStoresResponse
15852
+ """
15853
+ UtilClient.validate_model(request)
15854
+ host_map = {}
15855
+ host_map['project'] = project
15856
+ query = {}
15857
+ if not UtilClient.is_unset(request.mode):
15858
+ query['mode'] = request.mode
15859
+ if not UtilClient.is_unset(request.name):
15860
+ query['name'] = request.name
15861
+ if not UtilClient.is_unset(request.offset):
15862
+ query['offset'] = request.offset
15863
+ if not UtilClient.is_unset(request.size):
15864
+ query['size'] = request.size
15865
+ req = open_api_models.OpenApiRequest(
15866
+ host_map=host_map,
15867
+ headers=headers,
15868
+ query=OpenApiUtilClient.query(query)
15869
+ )
15870
+ params = open_api_models.Params(
15871
+ action='ListMetricStores',
15872
+ version='2020-12-30',
15873
+ protocol='HTTPS',
15874
+ pathname=f'/metricstores',
15875
+ method='GET',
15876
+ auth_type='AK',
15877
+ style='ROA',
15878
+ req_body_type='none',
15879
+ body_type='json'
15880
+ )
15881
+ return TeaCore.from_map(
15882
+ sls_20201230_models.ListMetricStoresResponse(),
15883
+ self.execute(params, req, runtime)
15884
+ )
15885
+
15886
+ async def list_metric_stores_with_options_async(
15887
+ self,
15888
+ project: str,
15889
+ request: sls_20201230_models.ListMetricStoresRequest,
15890
+ headers: Dict[str, str],
15891
+ runtime: util_models.RuntimeOptions,
15892
+ ) -> sls_20201230_models.ListMetricStoresResponse:
15893
+ """
15894
+ @summary Queries the list of Metricstores in a project. You can use fuzzy search to query the Metricstores by Metricstore name.
15895
+
15896
+ @description Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
15897
+ An AccessKey pair is created and obtained. For more information, see [AccessKey pair](https://help.aliyun.com/document_detail/29009.html).
15898
+ 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).
15899
+ The information that is required to query metric data is obtained. The information includes the name of the project to which the metric data belong and the region of the project. For more information, see [Manage a project](https://help.aliyun.com/document_detail/48984.html).
15900
+
15901
+ @param request: ListMetricStoresRequest
15902
+ @param headers: map
15903
+ @param runtime: runtime options for this request RuntimeOptions
15904
+ @return: ListMetricStoresResponse
15905
+ """
15906
+ UtilClient.validate_model(request)
15907
+ host_map = {}
15908
+ host_map['project'] = project
15909
+ query = {}
15910
+ if not UtilClient.is_unset(request.mode):
15911
+ query['mode'] = request.mode
15912
+ if not UtilClient.is_unset(request.name):
15913
+ query['name'] = request.name
15914
+ if not UtilClient.is_unset(request.offset):
15915
+ query['offset'] = request.offset
15916
+ if not UtilClient.is_unset(request.size):
15917
+ query['size'] = request.size
15918
+ req = open_api_models.OpenApiRequest(
15919
+ host_map=host_map,
15920
+ headers=headers,
15921
+ query=OpenApiUtilClient.query(query)
15922
+ )
15923
+ params = open_api_models.Params(
15924
+ action='ListMetricStores',
15925
+ version='2020-12-30',
15926
+ protocol='HTTPS',
15927
+ pathname=f'/metricstores',
15928
+ method='GET',
15929
+ auth_type='AK',
15930
+ style='ROA',
15931
+ req_body_type='none',
15932
+ body_type='json'
15933
+ )
15934
+ return TeaCore.from_map(
15935
+ sls_20201230_models.ListMetricStoresResponse(),
15936
+ await self.execute_async(params, req, runtime)
15937
+ )
15938
+
15939
+ def list_metric_stores(
15940
+ self,
15941
+ project: str,
15942
+ request: sls_20201230_models.ListMetricStoresRequest,
15943
+ ) -> sls_20201230_models.ListMetricStoresResponse:
15944
+ """
15945
+ @summary Queries the list of Metricstores in a project. You can use fuzzy search to query the Metricstores by Metricstore name.
15946
+
15947
+ @description Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
15948
+ An AccessKey pair is created and obtained. For more information, see [AccessKey pair](https://help.aliyun.com/document_detail/29009.html).
15949
+ 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).
15950
+ The information that is required to query metric data is obtained. The information includes the name of the project to which the metric data belong and the region of the project. For more information, see [Manage a project](https://help.aliyun.com/document_detail/48984.html).
15951
+
15952
+ @param request: ListMetricStoresRequest
15953
+ @return: ListMetricStoresResponse
15954
+ """
15955
+ runtime = util_models.RuntimeOptions()
15956
+ headers = {}
15957
+ return self.list_metric_stores_with_options(project, request, headers, runtime)
15958
+
15959
+ async def list_metric_stores_async(
15960
+ self,
15961
+ project: str,
15962
+ request: sls_20201230_models.ListMetricStoresRequest,
15963
+ ) -> sls_20201230_models.ListMetricStoresResponse:
15964
+ """
15965
+ @summary Queries the list of Metricstores in a project. You can use fuzzy search to query the Metricstores by Metricstore name.
15966
+
15967
+ @description Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
15968
+ An AccessKey pair is created and obtained. For more information, see [AccessKey pair](https://help.aliyun.com/document_detail/29009.html).
15969
+ 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).
15970
+ The information that is required to query metric data is obtained. The information includes the name of the project to which the metric data belong and the region of the project. For more information, see [Manage a project](https://help.aliyun.com/document_detail/48984.html).
15971
+
15972
+ @param request: ListMetricStoresRequest
15973
+ @return: ListMetricStoresResponse
15974
+ """
15975
+ runtime = util_models.RuntimeOptions()
15976
+ headers = {}
15977
+ return await self.list_metric_stores_with_options_async(project, request, headers, runtime)
15978
+
15979
+ def list_ossexports_with_options(
15980
+ self,
15981
+ project: str,
15982
+ request: sls_20201230_models.ListOSSExportsRequest,
15983
+ headers: Dict[str, str],
15984
+ runtime: util_models.RuntimeOptions,
15985
+ ) -> sls_20201230_models.ListOSSExportsResponse:
15986
+ """
15987
+ @summary 列出OSS投递任务
15988
+
15989
+ @param request: ListOSSExportsRequest
15990
+ @param headers: map
14804
15991
  @param runtime: runtime options for this request RuntimeOptions
14805
15992
  @return: ListOSSExportsResponse
14806
15993
  """
@@ -16047,7 +17234,7 @@ class Client(OpenApiClient):
16047
17234
  runtime: util_models.RuntimeOptions,
16048
17235
  ) -> sls_20201230_models.OpenSlsServiceResponse:
16049
17236
  """
16050
- @summary Activates Simple Log Service. You must activate Simple Log Service before you can use it to collect and manage logs.
17237
+ @summary Activates Simple Log Service. You must use the endpoint for Simple Log Service only in the China (Shanghai) or Singapore region.
16051
17238
 
16052
17239
  @param headers: map
16053
17240
  @param runtime: runtime options for this request RuntimeOptions
@@ -16078,7 +17265,7 @@ class Client(OpenApiClient):
16078
17265
  runtime: util_models.RuntimeOptions,
16079
17266
  ) -> sls_20201230_models.OpenSlsServiceResponse:
16080
17267
  """
16081
- @summary Activates Simple Log Service. You must activate Simple Log Service before you can use it to collect and manage logs.
17268
+ @summary Activates Simple Log Service. You must use the endpoint for Simple Log Service only in the China (Shanghai) or Singapore region.
16082
17269
 
16083
17270
  @param headers: map
16084
17271
  @param runtime: runtime options for this request RuntimeOptions
@@ -16105,7 +17292,7 @@ class Client(OpenApiClient):
16105
17292
 
16106
17293
  def open_sls_service(self) -> sls_20201230_models.OpenSlsServiceResponse:
16107
17294
  """
16108
- @summary Activates Simple Log Service. You must activate Simple Log Service before you can use it to collect and manage logs.
17295
+ @summary Activates Simple Log Service. You must use the endpoint for Simple Log Service only in the China (Shanghai) or Singapore region.
16109
17296
 
16110
17297
  @return: OpenSlsServiceResponse
16111
17298
  """
@@ -16115,7 +17302,7 @@ class Client(OpenApiClient):
16115
17302
 
16116
17303
  async def open_sls_service_async(self) -> sls_20201230_models.OpenSlsServiceResponse:
16117
17304
  """
16118
- @summary Activates Simple Log Service. You must activate Simple Log Service before you can use it to collect and manage logs.
17305
+ @summary Activates Simple Log Service. You must use the endpoint for Simple Log Service only in the China (Shanghai) or Singapore region.
16119
17306
 
16120
17307
  @return: OpenSlsServiceResponse
16121
17308
  """
@@ -16135,7 +17322,11 @@ class Client(OpenApiClient):
16135
17322
  """
16136
17323
  @summary Queries logs based on the specified cursors. You can call this operation to obtain raw logs. To query and analyze logs, you can call the GetLogsV2 operation.
16137
17324
 
16138
- @description You cannot call this operation in OpenAPI Explorer. You can use Simple Log Service SDK to call this operation. For more information, see [SLS SDK Reference](https://help.aliyun.com/document_detail/29063.html).
17325
+ @description *\
17326
+ *Warning** You cannot call this operation in OpenAPI Explorer. You can use Simple Log Service SDK to call this operation. For more information, see SLS SDK Reference.
17327
+ You must specify a shard when you query the logs.
17328
+ You can query only logs in the Protocol Buffers (protobuf) format. For more information, see [Data encoding](https://help.aliyun.com/document_detail/29055.html).
17329
+ Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
16139
17330
 
16140
17331
  @param request: PullLogsRequest
16141
17332
  @param headers: PullLogsHeaders
@@ -16189,7 +17380,11 @@ class Client(OpenApiClient):
16189
17380
  """
16190
17381
  @summary Queries logs based on the specified cursors. You can call this operation to obtain raw logs. To query and analyze logs, you can call the GetLogsV2 operation.
16191
17382
 
16192
- @description You cannot call this operation in OpenAPI Explorer. You can use Simple Log Service SDK to call this operation. For more information, see [SLS SDK Reference](https://help.aliyun.com/document_detail/29063.html).
17383
+ @description *\
17384
+ *Warning** You cannot call this operation in OpenAPI Explorer. You can use Simple Log Service SDK to call this operation. For more information, see SLS SDK Reference.
17385
+ You must specify a shard when you query the logs.
17386
+ You can query only logs in the Protocol Buffers (protobuf) format. For more information, see [Data encoding](https://help.aliyun.com/document_detail/29055.html).
17387
+ Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
16193
17388
 
16194
17389
  @param request: PullLogsRequest
16195
17390
  @param headers: PullLogsHeaders
@@ -16241,7 +17436,11 @@ class Client(OpenApiClient):
16241
17436
  """
16242
17437
  @summary Queries logs based on the specified cursors. You can call this operation to obtain raw logs. To query and analyze logs, you can call the GetLogsV2 operation.
16243
17438
 
16244
- @description You cannot call this operation in OpenAPI Explorer. You can use Simple Log Service SDK to call this operation. For more information, see [SLS SDK Reference](https://help.aliyun.com/document_detail/29063.html).
17439
+ @description *\
17440
+ *Warning** You cannot call this operation in OpenAPI Explorer. You can use Simple Log Service SDK to call this operation. For more information, see SLS SDK Reference.
17441
+ You must specify a shard when you query the logs.
17442
+ You can query only logs in the Protocol Buffers (protobuf) format. For more information, see [Data encoding](https://help.aliyun.com/document_detail/29055.html).
17443
+ Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
16245
17444
 
16246
17445
  @param request: PullLogsRequest
16247
17446
  @return: PullLogsResponse
@@ -16260,7 +17459,11 @@ class Client(OpenApiClient):
16260
17459
  """
16261
17460
  @summary Queries logs based on the specified cursors. You can call this operation to obtain raw logs. To query and analyze logs, you can call the GetLogsV2 operation.
16262
17461
 
16263
- @description You cannot call this operation in OpenAPI Explorer. You can use Simple Log Service SDK to call this operation. For more information, see [SLS SDK Reference](https://help.aliyun.com/document_detail/29063.html).
17462
+ @description *\
17463
+ *Warning** You cannot call this operation in OpenAPI Explorer. You can use Simple Log Service SDK to call this operation. For more information, see SLS SDK Reference.
17464
+ You must specify a shard when you query the logs.
17465
+ You can query only logs in the Protocol Buffers (protobuf) format. For more information, see [Data encoding](https://help.aliyun.com/document_detail/29055.html).
17466
+ Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
16264
17467
 
16265
17468
  @param request: PullLogsRequest
16266
17469
  @return: PullLogsResponse
@@ -16389,6 +17592,132 @@ class Client(OpenApiClient):
16389
17592
  headers = {}
16390
17593
  return await self.put_annotation_data_with_options_async(dataset_id, request, headers, runtime)
16391
17594
 
17595
+ def put_ingest_processor_with_options(
17596
+ self,
17597
+ project: str,
17598
+ processor_name: str,
17599
+ request: sls_20201230_models.PutIngestProcessorRequest,
17600
+ headers: Dict[str, str],
17601
+ runtime: util_models.RuntimeOptions,
17602
+ ) -> sls_20201230_models.PutIngestProcessorResponse:
17603
+ """
17604
+ @summary Creates or modifies an ingest processor.
17605
+
17606
+ @param request: PutIngestProcessorRequest
17607
+ @param headers: map
17608
+ @param runtime: runtime options for this request RuntimeOptions
17609
+ @return: PutIngestProcessorResponse
17610
+ """
17611
+ UtilClient.validate_model(request)
17612
+ host_map = {}
17613
+ host_map['project'] = project
17614
+ body = {}
17615
+ if not UtilClient.is_unset(request.configuration):
17616
+ body['configuration'] = request.configuration
17617
+ if not UtilClient.is_unset(request.description):
17618
+ body['description'] = request.description
17619
+ if not UtilClient.is_unset(request.display_name):
17620
+ body['displayName'] = request.display_name
17621
+ req = open_api_models.OpenApiRequest(
17622
+ host_map=host_map,
17623
+ headers=headers,
17624
+ body=OpenApiUtilClient.parse_to_map(body)
17625
+ )
17626
+ params = open_api_models.Params(
17627
+ action='PutIngestProcessor',
17628
+ version='2020-12-30',
17629
+ protocol='HTTPS',
17630
+ pathname=f'/ingestprocessors/{processor_name}',
17631
+ method='PUT',
17632
+ auth_type='AK',
17633
+ style='ROA',
17634
+ req_body_type='json',
17635
+ body_type='none'
17636
+ )
17637
+ return TeaCore.from_map(
17638
+ sls_20201230_models.PutIngestProcessorResponse(),
17639
+ self.execute(params, req, runtime)
17640
+ )
17641
+
17642
+ async def put_ingest_processor_with_options_async(
17643
+ self,
17644
+ project: str,
17645
+ processor_name: str,
17646
+ request: sls_20201230_models.PutIngestProcessorRequest,
17647
+ headers: Dict[str, str],
17648
+ runtime: util_models.RuntimeOptions,
17649
+ ) -> sls_20201230_models.PutIngestProcessorResponse:
17650
+ """
17651
+ @summary Creates or modifies an ingest processor.
17652
+
17653
+ @param request: PutIngestProcessorRequest
17654
+ @param headers: map
17655
+ @param runtime: runtime options for this request RuntimeOptions
17656
+ @return: PutIngestProcessorResponse
17657
+ """
17658
+ UtilClient.validate_model(request)
17659
+ host_map = {}
17660
+ host_map['project'] = project
17661
+ body = {}
17662
+ if not UtilClient.is_unset(request.configuration):
17663
+ body['configuration'] = request.configuration
17664
+ if not UtilClient.is_unset(request.description):
17665
+ body['description'] = request.description
17666
+ if not UtilClient.is_unset(request.display_name):
17667
+ body['displayName'] = request.display_name
17668
+ req = open_api_models.OpenApiRequest(
17669
+ host_map=host_map,
17670
+ headers=headers,
17671
+ body=OpenApiUtilClient.parse_to_map(body)
17672
+ )
17673
+ params = open_api_models.Params(
17674
+ action='PutIngestProcessor',
17675
+ version='2020-12-30',
17676
+ protocol='HTTPS',
17677
+ pathname=f'/ingestprocessors/{processor_name}',
17678
+ method='PUT',
17679
+ auth_type='AK',
17680
+ style='ROA',
17681
+ req_body_type='json',
17682
+ body_type='none'
17683
+ )
17684
+ return TeaCore.from_map(
17685
+ sls_20201230_models.PutIngestProcessorResponse(),
17686
+ await self.execute_async(params, req, runtime)
17687
+ )
17688
+
17689
+ def put_ingest_processor(
17690
+ self,
17691
+ project: str,
17692
+ processor_name: str,
17693
+ request: sls_20201230_models.PutIngestProcessorRequest,
17694
+ ) -> sls_20201230_models.PutIngestProcessorResponse:
17695
+ """
17696
+ @summary Creates or modifies an ingest processor.
17697
+
17698
+ @param request: PutIngestProcessorRequest
17699
+ @return: PutIngestProcessorResponse
17700
+ """
17701
+ runtime = util_models.RuntimeOptions()
17702
+ headers = {}
17703
+ return self.put_ingest_processor_with_options(project, processor_name, request, headers, runtime)
17704
+
17705
+ async def put_ingest_processor_async(
17706
+ self,
17707
+ project: str,
17708
+ processor_name: str,
17709
+ request: sls_20201230_models.PutIngestProcessorRequest,
17710
+ ) -> sls_20201230_models.PutIngestProcessorResponse:
17711
+ """
17712
+ @summary Creates or modifies an ingest processor.
17713
+
17714
+ @param request: PutIngestProcessorRequest
17715
+ @return: PutIngestProcessorResponse
17716
+ """
17717
+ runtime = util_models.RuntimeOptions()
17718
+ headers = {}
17719
+ return await self.put_ingest_processor_with_options_async(project, processor_name, request, headers, runtime)
17720
+
16392
17721
  def put_logs_with_options(
16393
17722
  self,
16394
17723
  project: str,
@@ -16398,9 +17727,17 @@ class Client(OpenApiClient):
16398
17727
  runtime: util_models.RuntimeOptions,
16399
17728
  ) -> sls_20201230_models.PutLogsResponse:
16400
17729
  """
16401
- @summary Sends logs to Simple Log Service.
17730
+ @summary Writes logs to a Logstore.
16402
17731
 
16403
- @description You cannot call this operation by using cloud service SDKs that are provided by Alibaba Cloud OpenAPI Portal. You can use Simple Log Service SDK to call this operation. For more information, see [SLS SDK Reference](https://help.aliyun.com/document_detail/29063.html).
17732
+ @description *\
17733
+ *Warning** You cannot call this operation in OpenAPI Explorer. You can use Simple Log Service SDK to call this operation. For more information, see SLS SDK Reference.
17734
+ When you call the PutLogs operation to write logs to Simple Log Service, Simple Log Servicechecks the format of the logs. If a log does not meet the format requirements, the request fails and no logs are written to Simple Log Service.
17735
+ You can write logs only in the Protocol Buffers (Protobuf) format as log groups. For more information, see [Data encoding](https://help.aliyun.com/document_detail/29055.html).
17736
+ You can write logs in one of the following modes:
17737
+ LoadBalance mode: In this mode, Log Service automatically writes logs to all writable shards in a Logstore. This mode delivers high availability for write operations and is suitable for data consumption scenarios in which you do not need to preserve the order of logs.
17738
+ KeyHash: In this mode, a key field is added in the URL parameter. Log Service writes logs to a shard based on the key field. The hash key is optional. If you do not configure the hash key, logs are written to shards in LoadBalance mode. For example, you can use the KeyHash mode to write data from a producer, such as an instance, to the shard whose hash value range includes the hash value of the producer name. This ensures that the data that is written to the shard is ordered and the data in the shard is consumed based on the order. This way, when a shard is split or when shards are merged, the data that is associated with the same hash key is stored only in one shard at a point in time. For more information, see [Shard](https://help.aliyun.com/document_detail/28976.html).
17739
+ You can call the PutLogs operation to write up to 10 MB of raw logs at a time. We recommend that you keep the total size of the values for each log in a log group to or below 1 MB. Historical versions of SDKs may have different limits. We recommend that you upgrade your SDK to the latest version.
17740
+ The references for Log Service SDK for Java and Log Service SDK for Python provide examples on how to call the PutLogs operation. For more information, see [Get started with Simple Log Service SDK for Java](https://help.aliyun.com/document_detail/279525.html) and [Get started with Simple Log Service SDK for Python](https://help.aliyun.com/document_detail/284638.html).
16404
17741
 
16405
17742
  @param request: PutLogsRequest
16406
17743
  @param headers: PutLogsHeaders
@@ -16445,9 +17782,17 @@ class Client(OpenApiClient):
16445
17782
  runtime: util_models.RuntimeOptions,
16446
17783
  ) -> sls_20201230_models.PutLogsResponse:
16447
17784
  """
16448
- @summary Sends logs to Simple Log Service.
17785
+ @summary Writes logs to a Logstore.
16449
17786
 
16450
- @description You cannot call this operation by using cloud service SDKs that are provided by Alibaba Cloud OpenAPI Portal. You can use Simple Log Service SDK to call this operation. For more information, see [SLS SDK Reference](https://help.aliyun.com/document_detail/29063.html).
17787
+ @description *\
17788
+ *Warning** You cannot call this operation in OpenAPI Explorer. You can use Simple Log Service SDK to call this operation. For more information, see SLS SDK Reference.
17789
+ When you call the PutLogs operation to write logs to Simple Log Service, Simple Log Servicechecks the format of the logs. If a log does not meet the format requirements, the request fails and no logs are written to Simple Log Service.
17790
+ You can write logs only in the Protocol Buffers (Protobuf) format as log groups. For more information, see [Data encoding](https://help.aliyun.com/document_detail/29055.html).
17791
+ You can write logs in one of the following modes:
17792
+ LoadBalance mode: In this mode, Log Service automatically writes logs to all writable shards in a Logstore. This mode delivers high availability for write operations and is suitable for data consumption scenarios in which you do not need to preserve the order of logs.
17793
+ KeyHash: In this mode, a key field is added in the URL parameter. Log Service writes logs to a shard based on the key field. The hash key is optional. If you do not configure the hash key, logs are written to shards in LoadBalance mode. For example, you can use the KeyHash mode to write data from a producer, such as an instance, to the shard whose hash value range includes the hash value of the producer name. This ensures that the data that is written to the shard is ordered and the data in the shard is consumed based on the order. This way, when a shard is split or when shards are merged, the data that is associated with the same hash key is stored only in one shard at a point in time. For more information, see [Shard](https://help.aliyun.com/document_detail/28976.html).
17794
+ You can call the PutLogs operation to write up to 10 MB of raw logs at a time. We recommend that you keep the total size of the values for each log in a log group to or below 1 MB. Historical versions of SDKs may have different limits. We recommend that you upgrade your SDK to the latest version.
17795
+ The references for Log Service SDK for Java and Log Service SDK for Python provide examples on how to call the PutLogs operation. For more information, see [Get started with Simple Log Service SDK for Java](https://help.aliyun.com/document_detail/279525.html) and [Get started with Simple Log Service SDK for Python](https://help.aliyun.com/document_detail/284638.html).
16451
17796
 
16452
17797
  @param request: PutLogsRequest
16453
17798
  @param headers: PutLogsHeaders
@@ -16490,9 +17835,17 @@ class Client(OpenApiClient):
16490
17835
  request: sls_20201230_models.PutLogsRequest,
16491
17836
  ) -> sls_20201230_models.PutLogsResponse:
16492
17837
  """
16493
- @summary Sends logs to Simple Log Service.
17838
+ @summary Writes logs to a Logstore.
16494
17839
 
16495
- @description You cannot call this operation by using cloud service SDKs that are provided by Alibaba Cloud OpenAPI Portal. You can use Simple Log Service SDK to call this operation. For more information, see [SLS SDK Reference](https://help.aliyun.com/document_detail/29063.html).
17840
+ @description *\
17841
+ *Warning** You cannot call this operation in OpenAPI Explorer. You can use Simple Log Service SDK to call this operation. For more information, see SLS SDK Reference.
17842
+ When you call the PutLogs operation to write logs to Simple Log Service, Simple Log Servicechecks the format of the logs. If a log does not meet the format requirements, the request fails and no logs are written to Simple Log Service.
17843
+ You can write logs only in the Protocol Buffers (Protobuf) format as log groups. For more information, see [Data encoding](https://help.aliyun.com/document_detail/29055.html).
17844
+ You can write logs in one of the following modes:
17845
+ LoadBalance mode: In this mode, Log Service automatically writes logs to all writable shards in a Logstore. This mode delivers high availability for write operations and is suitable for data consumption scenarios in which you do not need to preserve the order of logs.
17846
+ KeyHash: In this mode, a key field is added in the URL parameter. Log Service writes logs to a shard based on the key field. The hash key is optional. If you do not configure the hash key, logs are written to shards in LoadBalance mode. For example, you can use the KeyHash mode to write data from a producer, such as an instance, to the shard whose hash value range includes the hash value of the producer name. This ensures that the data that is written to the shard is ordered and the data in the shard is consumed based on the order. This way, when a shard is split or when shards are merged, the data that is associated with the same hash key is stored only in one shard at a point in time. For more information, see [Shard](https://help.aliyun.com/document_detail/28976.html).
17847
+ You can call the PutLogs operation to write up to 10 MB of raw logs at a time. We recommend that you keep the total size of the values for each log in a log group to or below 1 MB. Historical versions of SDKs may have different limits. We recommend that you upgrade your SDK to the latest version.
17848
+ The references for Log Service SDK for Java and Log Service SDK for Python provide examples on how to call the PutLogs operation. For more information, see [Get started with Simple Log Service SDK for Java](https://help.aliyun.com/document_detail/279525.html) and [Get started with Simple Log Service SDK for Python](https://help.aliyun.com/document_detail/284638.html).
16496
17849
 
16497
17850
  @param request: PutLogsRequest
16498
17851
  @return: PutLogsResponse
@@ -16508,9 +17861,17 @@ class Client(OpenApiClient):
16508
17861
  request: sls_20201230_models.PutLogsRequest,
16509
17862
  ) -> sls_20201230_models.PutLogsResponse:
16510
17863
  """
16511
- @summary Sends logs to Simple Log Service.
17864
+ @summary Writes logs to a Logstore.
16512
17865
 
16513
- @description You cannot call this operation by using cloud service SDKs that are provided by Alibaba Cloud OpenAPI Portal. You can use Simple Log Service SDK to call this operation. For more information, see [SLS SDK Reference](https://help.aliyun.com/document_detail/29063.html).
17866
+ @description *\
17867
+ *Warning** You cannot call this operation in OpenAPI Explorer. You can use Simple Log Service SDK to call this operation. For more information, see SLS SDK Reference.
17868
+ When you call the PutLogs operation to write logs to Simple Log Service, Simple Log Servicechecks the format of the logs. If a log does not meet the format requirements, the request fails and no logs are written to Simple Log Service.
17869
+ You can write logs only in the Protocol Buffers (Protobuf) format as log groups. For more information, see [Data encoding](https://help.aliyun.com/document_detail/29055.html).
17870
+ You can write logs in one of the following modes:
17871
+ LoadBalance mode: In this mode, Log Service automatically writes logs to all writable shards in a Logstore. This mode delivers high availability for write operations and is suitable for data consumption scenarios in which you do not need to preserve the order of logs.
17872
+ KeyHash: In this mode, a key field is added in the URL parameter. Log Service writes logs to a shard based on the key field. The hash key is optional. If you do not configure the hash key, logs are written to shards in LoadBalance mode. For example, you can use the KeyHash mode to write data from a producer, such as an instance, to the shard whose hash value range includes the hash value of the producer name. This ensures that the data that is written to the shard is ordered and the data in the shard is consumed based on the order. This way, when a shard is split or when shards are merged, the data that is associated with the same hash key is stored only in one shard at a point in time. For more information, see [Shard](https://help.aliyun.com/document_detail/28976.html).
17873
+ You can call the PutLogs operation to write up to 10 MB of raw logs at a time. We recommend that you keep the total size of the values for each log in a log group to or below 1 MB. Historical versions of SDKs may have different limits. We recommend that you upgrade your SDK to the latest version.
17874
+ The references for Log Service SDK for Java and Log Service SDK for Python provide examples on how to call the PutLogs operation. For more information, see [Get started with Simple Log Service SDK for Java](https://help.aliyun.com/document_detail/279525.html) and [Get started with Simple Log Service SDK for Python](https://help.aliyun.com/document_detail/284638.html).
16514
17875
 
16515
17876
  @param request: PutLogsRequest
16516
17877
  @return: PutLogsResponse
@@ -17397,19 +18758,24 @@ class Client(OpenApiClient):
17397
18758
  headers = {}
17398
18759
  return await self.start_etlwith_options_async(project, etl_name, headers, runtime)
17399
18760
 
17400
- def start_ossexport_with_options(
18761
+ def start_max_compute_export_with_options(
17401
18762
  self,
17402
18763
  project: str,
17403
- oss_export_name: str,
18764
+ mc_export_name: str,
17404
18765
  headers: Dict[str, str],
17405
18766
  runtime: util_models.RuntimeOptions,
17406
- ) -> sls_20201230_models.StartOSSExportResponse:
18767
+ ) -> sls_20201230_models.StartMaxComputeExportResponse:
17407
18768
  """
17408
- @summary 启动OSS投递任务
18769
+ @summary Starts a MaxCompute data shipping job.
18770
+
18771
+ @description Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
18772
+ An AccessKey pair is created and obtained. For more information, see [AccessKey pair](https://help.aliyun.com/document_detail/29009.html).
18773
+ 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).
18774
+ 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).
17409
18775
 
17410
18776
  @param headers: map
17411
18777
  @param runtime: runtime options for this request RuntimeOptions
17412
- @return: StartOSSExportResponse
18778
+ @return: StartMaxComputeExportResponse
17413
18779
  """
17414
18780
  host_map = {}
17415
18781
  host_map['project'] = project
@@ -17418,10 +18784,10 @@ class Client(OpenApiClient):
17418
18784
  headers=headers
17419
18785
  )
17420
18786
  params = open_api_models.Params(
17421
- action='StartOSSExport',
18787
+ action='StartMaxComputeExport',
17422
18788
  version='2020-12-30',
17423
18789
  protocol='HTTPS',
17424
- pathname=f'/ossexports/{oss_export_name}?action=START',
18790
+ pathname=f'/maxcomputeexports/{mc_export_name}?action=START',
17425
18791
  method='PUT',
17426
18792
  auth_type='AK',
17427
18793
  style='ROA',
@@ -17429,11 +18795,126 @@ class Client(OpenApiClient):
17429
18795
  body_type='none'
17430
18796
  )
17431
18797
  return TeaCore.from_map(
17432
- sls_20201230_models.StartOSSExportResponse(),
18798
+ sls_20201230_models.StartMaxComputeExportResponse(),
17433
18799
  self.execute(params, req, runtime)
17434
18800
  )
17435
18801
 
17436
- async def start_ossexport_with_options_async(
18802
+ async def start_max_compute_export_with_options_async(
18803
+ self,
18804
+ project: str,
18805
+ mc_export_name: str,
18806
+ headers: Dict[str, str],
18807
+ runtime: util_models.RuntimeOptions,
18808
+ ) -> sls_20201230_models.StartMaxComputeExportResponse:
18809
+ """
18810
+ @summary Starts a MaxCompute data shipping job.
18811
+
18812
+ @description Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
18813
+ An AccessKey pair is created and obtained. For more information, see [AccessKey pair](https://help.aliyun.com/document_detail/29009.html).
18814
+ 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).
18815
+ 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).
18816
+
18817
+ @param headers: map
18818
+ @param runtime: runtime options for this request RuntimeOptions
18819
+ @return: StartMaxComputeExportResponse
18820
+ """
18821
+ host_map = {}
18822
+ host_map['project'] = project
18823
+ req = open_api_models.OpenApiRequest(
18824
+ host_map=host_map,
18825
+ headers=headers
18826
+ )
18827
+ params = open_api_models.Params(
18828
+ action='StartMaxComputeExport',
18829
+ version='2020-12-30',
18830
+ protocol='HTTPS',
18831
+ pathname=f'/maxcomputeexports/{mc_export_name}?action=START',
18832
+ method='PUT',
18833
+ auth_type='AK',
18834
+ style='ROA',
18835
+ req_body_type='json',
18836
+ body_type='none'
18837
+ )
18838
+ return TeaCore.from_map(
18839
+ sls_20201230_models.StartMaxComputeExportResponse(),
18840
+ await self.execute_async(params, req, runtime)
18841
+ )
18842
+
18843
+ def start_max_compute_export(
18844
+ self,
18845
+ project: str,
18846
+ mc_export_name: str,
18847
+ ) -> sls_20201230_models.StartMaxComputeExportResponse:
18848
+ """
18849
+ @summary Starts a MaxCompute data shipping job.
18850
+
18851
+ @description Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
18852
+ An AccessKey pair is created and obtained. For more information, see [AccessKey pair](https://help.aliyun.com/document_detail/29009.html).
18853
+ 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).
18854
+ 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).
18855
+
18856
+ @return: StartMaxComputeExportResponse
18857
+ """
18858
+ runtime = util_models.RuntimeOptions()
18859
+ headers = {}
18860
+ return self.start_max_compute_export_with_options(project, mc_export_name, headers, runtime)
18861
+
18862
+ async def start_max_compute_export_async(
18863
+ self,
18864
+ project: str,
18865
+ mc_export_name: str,
18866
+ ) -> sls_20201230_models.StartMaxComputeExportResponse:
18867
+ """
18868
+ @summary Starts a MaxCompute data shipping job.
18869
+
18870
+ @description Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
18871
+ An AccessKey pair is created and obtained. For more information, see [AccessKey pair](https://help.aliyun.com/document_detail/29009.html).
18872
+ 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).
18873
+ 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).
18874
+
18875
+ @return: StartMaxComputeExportResponse
18876
+ """
18877
+ runtime = util_models.RuntimeOptions()
18878
+ headers = {}
18879
+ return await self.start_max_compute_export_with_options_async(project, mc_export_name, headers, runtime)
18880
+
18881
+ def start_ossexport_with_options(
18882
+ self,
18883
+ project: str,
18884
+ oss_export_name: str,
18885
+ headers: Dict[str, str],
18886
+ runtime: util_models.RuntimeOptions,
18887
+ ) -> sls_20201230_models.StartOSSExportResponse:
18888
+ """
18889
+ @summary 启动OSS投递任务
18890
+
18891
+ @param headers: map
18892
+ @param runtime: runtime options for this request RuntimeOptions
18893
+ @return: StartOSSExportResponse
18894
+ """
18895
+ host_map = {}
18896
+ host_map['project'] = project
18897
+ req = open_api_models.OpenApiRequest(
18898
+ host_map=host_map,
18899
+ headers=headers
18900
+ )
18901
+ params = open_api_models.Params(
18902
+ action='StartOSSExport',
18903
+ version='2020-12-30',
18904
+ protocol='HTTPS',
18905
+ pathname=f'/ossexports/{oss_export_name}?action=START',
18906
+ method='PUT',
18907
+ auth_type='AK',
18908
+ style='ROA',
18909
+ req_body_type='json',
18910
+ body_type='none'
18911
+ )
18912
+ return TeaCore.from_map(
18913
+ sls_20201230_models.StartOSSExportResponse(),
18914
+ self.execute(params, req, runtime)
18915
+ )
18916
+
18917
+ async def start_ossexport_with_options_async(
17437
18918
  self,
17438
18919
  project: str,
17439
18920
  oss_export_name: str,
@@ -17797,6 +19278,126 @@ class Client(OpenApiClient):
17797
19278
  headers = {}
17798
19279
  return await self.stop_etlwith_options_async(project, etl_name, headers, runtime)
17799
19280
 
19281
+ def stop_max_compute_export_with_options(
19282
+ self,
19283
+ project: str,
19284
+ mc_export_name: str,
19285
+ headers: Dict[str, str],
19286
+ runtime: util_models.RuntimeOptions,
19287
+ ) -> sls_20201230_models.StopMaxComputeExportResponse:
19288
+ """
19289
+ @summary Stops a MaxCompute data shipping job.
19290
+
19291
+ @description Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
19292
+ An AccessKey pair is created and obtained. For more information, see [AccessKey pair](https://help.aliyun.com/document_detail/29009.html).
19293
+ 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).
19294
+ 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)
19295
+
19296
+ @param headers: map
19297
+ @param runtime: runtime options for this request RuntimeOptions
19298
+ @return: StopMaxComputeExportResponse
19299
+ """
19300
+ host_map = {}
19301
+ host_map['project'] = project
19302
+ req = open_api_models.OpenApiRequest(
19303
+ host_map=host_map,
19304
+ headers=headers
19305
+ )
19306
+ params = open_api_models.Params(
19307
+ action='StopMaxComputeExport',
19308
+ version='2020-12-30',
19309
+ protocol='HTTPS',
19310
+ pathname=f'/maxcomputeexports/{mc_export_name}?action=STOP',
19311
+ method='PUT',
19312
+ auth_type='AK',
19313
+ style='ROA',
19314
+ req_body_type='json',
19315
+ body_type='none'
19316
+ )
19317
+ return TeaCore.from_map(
19318
+ sls_20201230_models.StopMaxComputeExportResponse(),
19319
+ self.execute(params, req, runtime)
19320
+ )
19321
+
19322
+ async def stop_max_compute_export_with_options_async(
19323
+ self,
19324
+ project: str,
19325
+ mc_export_name: str,
19326
+ headers: Dict[str, str],
19327
+ runtime: util_models.RuntimeOptions,
19328
+ ) -> sls_20201230_models.StopMaxComputeExportResponse:
19329
+ """
19330
+ @summary Stops a MaxCompute data shipping job.
19331
+
19332
+ @description Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
19333
+ An AccessKey pair is created and obtained. For more information, see [AccessKey pair](https://help.aliyun.com/document_detail/29009.html).
19334
+ 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).
19335
+ 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)
19336
+
19337
+ @param headers: map
19338
+ @param runtime: runtime options for this request RuntimeOptions
19339
+ @return: StopMaxComputeExportResponse
19340
+ """
19341
+ host_map = {}
19342
+ host_map['project'] = project
19343
+ req = open_api_models.OpenApiRequest(
19344
+ host_map=host_map,
19345
+ headers=headers
19346
+ )
19347
+ params = open_api_models.Params(
19348
+ action='StopMaxComputeExport',
19349
+ version='2020-12-30',
19350
+ protocol='HTTPS',
19351
+ pathname=f'/maxcomputeexports/{mc_export_name}?action=STOP',
19352
+ method='PUT',
19353
+ auth_type='AK',
19354
+ style='ROA',
19355
+ req_body_type='json',
19356
+ body_type='none'
19357
+ )
19358
+ return TeaCore.from_map(
19359
+ sls_20201230_models.StopMaxComputeExportResponse(),
19360
+ await self.execute_async(params, req, runtime)
19361
+ )
19362
+
19363
+ def stop_max_compute_export(
19364
+ self,
19365
+ project: str,
19366
+ mc_export_name: str,
19367
+ ) -> sls_20201230_models.StopMaxComputeExportResponse:
19368
+ """
19369
+ @summary Stops a MaxCompute data shipping job.
19370
+
19371
+ @description Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
19372
+ An AccessKey pair is created and obtained. For more information, see [AccessKey pair](https://help.aliyun.com/document_detail/29009.html).
19373
+ 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).
19374
+ 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)
19375
+
19376
+ @return: StopMaxComputeExportResponse
19377
+ """
19378
+ runtime = util_models.RuntimeOptions()
19379
+ headers = {}
19380
+ return self.stop_max_compute_export_with_options(project, mc_export_name, headers, runtime)
19381
+
19382
+ async def stop_max_compute_export_async(
19383
+ self,
19384
+ project: str,
19385
+ mc_export_name: str,
19386
+ ) -> sls_20201230_models.StopMaxComputeExportResponse:
19387
+ """
19388
+ @summary Stops a MaxCompute data shipping job.
19389
+
19390
+ @description Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
19391
+ An AccessKey pair is created and obtained. For more information, see [AccessKey pair](https://help.aliyun.com/document_detail/29009.html).
19392
+ 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).
19393
+ 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)
19394
+
19395
+ @return: StopMaxComputeExportResponse
19396
+ """
19397
+ runtime = util_models.RuntimeOptions()
19398
+ headers = {}
19399
+ return await self.stop_max_compute_export_with_options_async(project, mc_export_name, headers, runtime)
19400
+
17800
19401
  def stop_ossexport_with_options(
17801
19402
  self,
17802
19403
  project: str,
@@ -19768,7 +21369,17 @@ class Client(OpenApiClient):
19768
21369
  runtime: util_models.RuntimeOptions,
19769
21370
  ) -> sls_20201230_models.UpdateLogStoreEncryptionResponse:
19770
21371
  """
19771
- @summary 更新日志库的加密配置
21372
+ @summary Updates the encryption configuration of a Logstore. You can create encryption configurations for the Logstore and enable or disable the encryption feature.
21373
+
21374
+ @description ## [](#)Limits
21375
+ If you specify a data encryption method when you configure data encryption settings, you cannot switch to the other method after the configuration. In addition, you cannot change the encryption algorithm or the encryption type. You can only enable or disable the encryption feature by using the enable parameter. If you specify the encryption method by using the service key of Simple Log Service when you configure data encryption settings, you cannot switch to the encryption method by using Bring Your Own Key (BYOK) keys after the configuration.
21376
+ ## [](#)Create encryption configurations
21377
+ ### [](#)Encryption by using service keys
21378
+ Simple Log Service is fully responsible for data encryption and key management. No additional operations are required. When you create encryption configurations for the Logstore, you must specify the enable and encryptType parameters.
21379
+ ### [](#byok)Encryption by using BYOK keys
21380
+ You must create a customer master key (CMK) in Key Management Service (KMS). Then, Simple Log Service encrypts logs by using the CMK. When you create encryption configurations for the Logstore, you must specify the enable, encryptType, and userCmkInfo parameters.
21381
+ ## [](#)Enable or disable the encryption feature
21382
+ After you create encryption configurations for the Logstore, you cannot modify the encryptType or userCmkInfo parameters. However, you can enable and disable the encryption feature by using the enable parameter.
19772
21383
 
19773
21384
  @param request: UpdateLogStoreEncryptionRequest
19774
21385
  @param headers: map
@@ -19815,7 +21426,17 @@ class Client(OpenApiClient):
19815
21426
  runtime: util_models.RuntimeOptions,
19816
21427
  ) -> sls_20201230_models.UpdateLogStoreEncryptionResponse:
19817
21428
  """
19818
- @summary 更新日志库的加密配置
21429
+ @summary Updates the encryption configuration of a Logstore. You can create encryption configurations for the Logstore and enable or disable the encryption feature.
21430
+
21431
+ @description ## [](#)Limits
21432
+ If you specify a data encryption method when you configure data encryption settings, you cannot switch to the other method after the configuration. In addition, you cannot change the encryption algorithm or the encryption type. You can only enable or disable the encryption feature by using the enable parameter. If you specify the encryption method by using the service key of Simple Log Service when you configure data encryption settings, you cannot switch to the encryption method by using Bring Your Own Key (BYOK) keys after the configuration.
21433
+ ## [](#)Create encryption configurations
21434
+ ### [](#)Encryption by using service keys
21435
+ Simple Log Service is fully responsible for data encryption and key management. No additional operations are required. When you create encryption configurations for the Logstore, you must specify the enable and encryptType parameters.
21436
+ ### [](#byok)Encryption by using BYOK keys
21437
+ You must create a customer master key (CMK) in Key Management Service (KMS). Then, Simple Log Service encrypts logs by using the CMK. When you create encryption configurations for the Logstore, you must specify the enable, encryptType, and userCmkInfo parameters.
21438
+ ## [](#)Enable or disable the encryption feature
21439
+ After you create encryption configurations for the Logstore, you cannot modify the encryptType or userCmkInfo parameters. However, you can enable and disable the encryption feature by using the enable parameter.
19819
21440
 
19820
21441
  @param request: UpdateLogStoreEncryptionRequest
19821
21442
  @param headers: map
@@ -19860,7 +21481,17 @@ class Client(OpenApiClient):
19860
21481
  request: sls_20201230_models.UpdateLogStoreEncryptionRequest,
19861
21482
  ) -> sls_20201230_models.UpdateLogStoreEncryptionResponse:
19862
21483
  """
19863
- @summary 更新日志库的加密配置
21484
+ @summary Updates the encryption configuration of a Logstore. You can create encryption configurations for the Logstore and enable or disable the encryption feature.
21485
+
21486
+ @description ## [](#)Limits
21487
+ If you specify a data encryption method when you configure data encryption settings, you cannot switch to the other method after the configuration. In addition, you cannot change the encryption algorithm or the encryption type. You can only enable or disable the encryption feature by using the enable parameter. If you specify the encryption method by using the service key of Simple Log Service when you configure data encryption settings, you cannot switch to the encryption method by using Bring Your Own Key (BYOK) keys after the configuration.
21488
+ ## [](#)Create encryption configurations
21489
+ ### [](#)Encryption by using service keys
21490
+ Simple Log Service is fully responsible for data encryption and key management. No additional operations are required. When you create encryption configurations for the Logstore, you must specify the enable and encryptType parameters.
21491
+ ### [](#byok)Encryption by using BYOK keys
21492
+ You must create a customer master key (CMK) in Key Management Service (KMS). Then, Simple Log Service encrypts logs by using the CMK. When you create encryption configurations for the Logstore, you must specify the enable, encryptType, and userCmkInfo parameters.
21493
+ ## [](#)Enable or disable the encryption feature
21494
+ After you create encryption configurations for the Logstore, you cannot modify the encryptType or userCmkInfo parameters. However, you can enable and disable the encryption feature by using the enable parameter.
19864
21495
 
19865
21496
  @param request: UpdateLogStoreEncryptionRequest
19866
21497
  @return: UpdateLogStoreEncryptionResponse
@@ -19876,7 +21507,17 @@ class Client(OpenApiClient):
19876
21507
  request: sls_20201230_models.UpdateLogStoreEncryptionRequest,
19877
21508
  ) -> sls_20201230_models.UpdateLogStoreEncryptionResponse:
19878
21509
  """
19879
- @summary 更新日志库的加密配置
21510
+ @summary Updates the encryption configuration of a Logstore. You can create encryption configurations for the Logstore and enable or disable the encryption feature.
21511
+
21512
+ @description ## [](#)Limits
21513
+ If you specify a data encryption method when you configure data encryption settings, you cannot switch to the other method after the configuration. In addition, you cannot change the encryption algorithm or the encryption type. You can only enable or disable the encryption feature by using the enable parameter. If you specify the encryption method by using the service key of Simple Log Service when you configure data encryption settings, you cannot switch to the encryption method by using Bring Your Own Key (BYOK) keys after the configuration.
21514
+ ## [](#)Create encryption configurations
21515
+ ### [](#)Encryption by using service keys
21516
+ Simple Log Service is fully responsible for data encryption and key management. No additional operations are required. When you create encryption configurations for the Logstore, you must specify the enable and encryptType parameters.
21517
+ ### [](#byok)Encryption by using BYOK keys
21518
+ You must create a customer master key (CMK) in Key Management Service (KMS). Then, Simple Log Service encrypts logs by using the CMK. When you create encryption configurations for the Logstore, you must specify the enable, encryptType, and userCmkInfo parameters.
21519
+ ## [](#)Enable or disable the encryption feature
21520
+ After you create encryption configurations for the Logstore, you cannot modify the encryptType or userCmkInfo parameters. However, you can enable and disable the encryption feature by using the enable parameter.
19880
21521
 
19881
21522
  @param request: UpdateLogStoreEncryptionRequest
19882
21523
  @return: UpdateLogStoreEncryptionResponse
@@ -20003,6 +21644,124 @@ class Client(OpenApiClient):
20003
21644
  headers = {}
20004
21645
  return await self.update_log_store_metering_mode_with_options_async(project, logstore, request, headers, runtime)
20005
21646
 
21647
+ def update_log_store_processor_with_options(
21648
+ self,
21649
+ project: str,
21650
+ logstore: str,
21651
+ request: sls_20201230_models.UpdateLogStoreProcessorRequest,
21652
+ headers: Dict[str, str],
21653
+ runtime: util_models.RuntimeOptions,
21654
+ ) -> sls_20201230_models.UpdateLogStoreProcessorResponse:
21655
+ """
21656
+ @summary Modifies the ingest processor that is associated with a Logstore.
21657
+
21658
+ @param request: UpdateLogStoreProcessorRequest
21659
+ @param headers: map
21660
+ @param runtime: runtime options for this request RuntimeOptions
21661
+ @return: UpdateLogStoreProcessorResponse
21662
+ """
21663
+ UtilClient.validate_model(request)
21664
+ host_map = {}
21665
+ host_map['project'] = project
21666
+ body = {}
21667
+ if not UtilClient.is_unset(request.processor_name):
21668
+ body['processorName'] = request.processor_name
21669
+ req = open_api_models.OpenApiRequest(
21670
+ host_map=host_map,
21671
+ headers=headers,
21672
+ body=OpenApiUtilClient.parse_to_map(body)
21673
+ )
21674
+ params = open_api_models.Params(
21675
+ action='UpdateLogStoreProcessor',
21676
+ version='2020-12-30',
21677
+ protocol='HTTPS',
21678
+ pathname=f'/logstores/{logstore}/processor',
21679
+ method='POST',
21680
+ auth_type='AK',
21681
+ style='ROA',
21682
+ req_body_type='json',
21683
+ body_type='none'
21684
+ )
21685
+ return TeaCore.from_map(
21686
+ sls_20201230_models.UpdateLogStoreProcessorResponse(),
21687
+ self.execute(params, req, runtime)
21688
+ )
21689
+
21690
+ async def update_log_store_processor_with_options_async(
21691
+ self,
21692
+ project: str,
21693
+ logstore: str,
21694
+ request: sls_20201230_models.UpdateLogStoreProcessorRequest,
21695
+ headers: Dict[str, str],
21696
+ runtime: util_models.RuntimeOptions,
21697
+ ) -> sls_20201230_models.UpdateLogStoreProcessorResponse:
21698
+ """
21699
+ @summary Modifies the ingest processor that is associated with a Logstore.
21700
+
21701
+ @param request: UpdateLogStoreProcessorRequest
21702
+ @param headers: map
21703
+ @param runtime: runtime options for this request RuntimeOptions
21704
+ @return: UpdateLogStoreProcessorResponse
21705
+ """
21706
+ UtilClient.validate_model(request)
21707
+ host_map = {}
21708
+ host_map['project'] = project
21709
+ body = {}
21710
+ if not UtilClient.is_unset(request.processor_name):
21711
+ body['processorName'] = request.processor_name
21712
+ req = open_api_models.OpenApiRequest(
21713
+ host_map=host_map,
21714
+ headers=headers,
21715
+ body=OpenApiUtilClient.parse_to_map(body)
21716
+ )
21717
+ params = open_api_models.Params(
21718
+ action='UpdateLogStoreProcessor',
21719
+ version='2020-12-30',
21720
+ protocol='HTTPS',
21721
+ pathname=f'/logstores/{logstore}/processor',
21722
+ method='POST',
21723
+ auth_type='AK',
21724
+ style='ROA',
21725
+ req_body_type='json',
21726
+ body_type='none'
21727
+ )
21728
+ return TeaCore.from_map(
21729
+ sls_20201230_models.UpdateLogStoreProcessorResponse(),
21730
+ await self.execute_async(params, req, runtime)
21731
+ )
21732
+
21733
+ def update_log_store_processor(
21734
+ self,
21735
+ project: str,
21736
+ logstore: str,
21737
+ request: sls_20201230_models.UpdateLogStoreProcessorRequest,
21738
+ ) -> sls_20201230_models.UpdateLogStoreProcessorResponse:
21739
+ """
21740
+ @summary Modifies the ingest processor that is associated with a Logstore.
21741
+
21742
+ @param request: UpdateLogStoreProcessorRequest
21743
+ @return: UpdateLogStoreProcessorResponse
21744
+ """
21745
+ runtime = util_models.RuntimeOptions()
21746
+ headers = {}
21747
+ return self.update_log_store_processor_with_options(project, logstore, request, headers, runtime)
21748
+
21749
+ async def update_log_store_processor_async(
21750
+ self,
21751
+ project: str,
21752
+ logstore: str,
21753
+ request: sls_20201230_models.UpdateLogStoreProcessorRequest,
21754
+ ) -> sls_20201230_models.UpdateLogStoreProcessorResponse:
21755
+ """
21756
+ @summary Modifies the ingest processor that is associated with a Logstore.
21757
+
21758
+ @param request: UpdateLogStoreProcessorRequest
21759
+ @return: UpdateLogStoreProcessorResponse
21760
+ """
21761
+ runtime = util_models.RuntimeOptions()
21762
+ headers = {}
21763
+ return await self.update_log_store_processor_with_options_async(project, logstore, request, headers, runtime)
21764
+
20006
21765
  def update_logging_with_options(
20007
21766
  self,
20008
21767
  project: str,
@@ -20549,6 +22308,152 @@ class Client(OpenApiClient):
20549
22308
  headers = {}
20550
22309
  return await self.update_machine_group_machine_with_options_async(project, machine_group, request, headers, runtime)
20551
22310
 
22311
+ def update_max_compute_export_with_options(
22312
+ self,
22313
+ project: str,
22314
+ mc_export_name: str,
22315
+ request: sls_20201230_models.UpdateMaxComputeExportRequest,
22316
+ headers: Dict[str, str],
22317
+ runtime: util_models.RuntimeOptions,
22318
+ ) -> sls_20201230_models.UpdateMaxComputeExportResponse:
22319
+ """
22320
+ @summary Updates a MaxCompute data shipping job.
22321
+
22322
+ @description Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
22323
+ An AccessKey pair is created and obtained. For more information, see [AccessKey pair](https://help.aliyun.com/document_detail/29009.html).
22324
+ 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).
22325
+ 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)
22326
+
22327
+ @param request: UpdateMaxComputeExportRequest
22328
+ @param headers: map
22329
+ @param runtime: runtime options for this request RuntimeOptions
22330
+ @return: UpdateMaxComputeExportResponse
22331
+ """
22332
+ UtilClient.validate_model(request)
22333
+ host_map = {}
22334
+ host_map['project'] = project
22335
+ body = {}
22336
+ if not UtilClient.is_unset(request.configuration):
22337
+ body['configuration'] = request.configuration
22338
+ if not UtilClient.is_unset(request.description):
22339
+ body['description'] = request.description
22340
+ if not UtilClient.is_unset(request.display_name):
22341
+ body['displayName'] = request.display_name
22342
+ req = open_api_models.OpenApiRequest(
22343
+ host_map=host_map,
22344
+ headers=headers,
22345
+ body=OpenApiUtilClient.parse_to_map(body)
22346
+ )
22347
+ params = open_api_models.Params(
22348
+ action='UpdateMaxComputeExport',
22349
+ version='2020-12-30',
22350
+ protocol='HTTPS',
22351
+ pathname=f'/maxcomputeexports/{mc_export_name}',
22352
+ method='PUT',
22353
+ auth_type='AK',
22354
+ style='ROA',
22355
+ req_body_type='json',
22356
+ body_type='none'
22357
+ )
22358
+ return TeaCore.from_map(
22359
+ sls_20201230_models.UpdateMaxComputeExportResponse(),
22360
+ self.execute(params, req, runtime)
22361
+ )
22362
+
22363
+ async def update_max_compute_export_with_options_async(
22364
+ self,
22365
+ project: str,
22366
+ mc_export_name: str,
22367
+ request: sls_20201230_models.UpdateMaxComputeExportRequest,
22368
+ headers: Dict[str, str],
22369
+ runtime: util_models.RuntimeOptions,
22370
+ ) -> sls_20201230_models.UpdateMaxComputeExportResponse:
22371
+ """
22372
+ @summary Updates a MaxCompute data shipping job.
22373
+
22374
+ @description Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
22375
+ An AccessKey pair is created and obtained. For more information, see [AccessKey pair](https://help.aliyun.com/document_detail/29009.html).
22376
+ 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).
22377
+ 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)
22378
+
22379
+ @param request: UpdateMaxComputeExportRequest
22380
+ @param headers: map
22381
+ @param runtime: runtime options for this request RuntimeOptions
22382
+ @return: UpdateMaxComputeExportResponse
22383
+ """
22384
+ UtilClient.validate_model(request)
22385
+ host_map = {}
22386
+ host_map['project'] = project
22387
+ body = {}
22388
+ if not UtilClient.is_unset(request.configuration):
22389
+ body['configuration'] = request.configuration
22390
+ if not UtilClient.is_unset(request.description):
22391
+ body['description'] = request.description
22392
+ if not UtilClient.is_unset(request.display_name):
22393
+ body['displayName'] = request.display_name
22394
+ req = open_api_models.OpenApiRequest(
22395
+ host_map=host_map,
22396
+ headers=headers,
22397
+ body=OpenApiUtilClient.parse_to_map(body)
22398
+ )
22399
+ params = open_api_models.Params(
22400
+ action='UpdateMaxComputeExport',
22401
+ version='2020-12-30',
22402
+ protocol='HTTPS',
22403
+ pathname=f'/maxcomputeexports/{mc_export_name}',
22404
+ method='PUT',
22405
+ auth_type='AK',
22406
+ style='ROA',
22407
+ req_body_type='json',
22408
+ body_type='none'
22409
+ )
22410
+ return TeaCore.from_map(
22411
+ sls_20201230_models.UpdateMaxComputeExportResponse(),
22412
+ await self.execute_async(params, req, runtime)
22413
+ )
22414
+
22415
+ def update_max_compute_export(
22416
+ self,
22417
+ project: str,
22418
+ mc_export_name: str,
22419
+ request: sls_20201230_models.UpdateMaxComputeExportRequest,
22420
+ ) -> sls_20201230_models.UpdateMaxComputeExportResponse:
22421
+ """
22422
+ @summary Updates a MaxCompute data shipping job.
22423
+
22424
+ @description Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
22425
+ An AccessKey pair is created and obtained. For more information, see [AccessKey pair](https://help.aliyun.com/document_detail/29009.html).
22426
+ 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).
22427
+ 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)
22428
+
22429
+ @param request: UpdateMaxComputeExportRequest
22430
+ @return: UpdateMaxComputeExportResponse
22431
+ """
22432
+ runtime = util_models.RuntimeOptions()
22433
+ headers = {}
22434
+ return self.update_max_compute_export_with_options(project, mc_export_name, request, headers, runtime)
22435
+
22436
+ async def update_max_compute_export_async(
22437
+ self,
22438
+ project: str,
22439
+ mc_export_name: str,
22440
+ request: sls_20201230_models.UpdateMaxComputeExportRequest,
22441
+ ) -> sls_20201230_models.UpdateMaxComputeExportResponse:
22442
+ """
22443
+ @summary Updates a MaxCompute data shipping job.
22444
+
22445
+ @description Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
22446
+ An AccessKey pair is created and obtained. For more information, see [AccessKey pair](https://help.aliyun.com/document_detail/29009.html).
22447
+ 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).
22448
+ 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)
22449
+
22450
+ @param request: UpdateMaxComputeExportRequest
22451
+ @return: UpdateMaxComputeExportResponse
22452
+ """
22453
+ runtime = util_models.RuntimeOptions()
22454
+ headers = {}
22455
+ return await self.update_max_compute_export_with_options_async(project, mc_export_name, request, headers, runtime)
22456
+
20552
22457
  def update_metric_store_with_options(
20553
22458
  self,
20554
22459
  project: str,
@@ -20580,6 +22485,10 @@ class Client(OpenApiClient):
20580
22485
  body = {}
20581
22486
  if not UtilClient.is_unset(request.auto_split):
20582
22487
  body['autoSplit'] = request.auto_split
22488
+ if not UtilClient.is_unset(request.hot_ttl):
22489
+ body['hot_ttl'] = request.hot_ttl
22490
+ if not UtilClient.is_unset(request.infrequent_access_ttl):
22491
+ body['infrequentAccessTTL'] = request.infrequent_access_ttl
20583
22492
  if not UtilClient.is_unset(request.max_split_shard):
20584
22493
  body['maxSplitShard'] = request.max_split_shard
20585
22494
  if not UtilClient.is_unset(request.mode):
@@ -20638,6 +22547,10 @@ class Client(OpenApiClient):
20638
22547
  body = {}
20639
22548
  if not UtilClient.is_unset(request.auto_split):
20640
22549
  body['autoSplit'] = request.auto_split
22550
+ if not UtilClient.is_unset(request.hot_ttl):
22551
+ body['hot_ttl'] = request.hot_ttl
22552
+ if not UtilClient.is_unset(request.infrequent_access_ttl):
22553
+ body['infrequentAccessTTL'] = request.infrequent_access_ttl
20641
22554
  if not UtilClient.is_unset(request.max_split_shard):
20642
22555
  body['maxSplitShard'] = request.max_split_shard
20643
22556
  if not UtilClient.is_unset(request.mode):
@@ -20833,6 +22746,124 @@ class Client(OpenApiClient):
20833
22746
  headers = {}
20834
22747
  return await self.update_metric_store_metering_mode_with_options_async(project, metric_store, request, headers, runtime)
20835
22748
 
22749
+ def update_metric_store_processor_with_options(
22750
+ self,
22751
+ project: str,
22752
+ metricstore: str,
22753
+ request: sls_20201230_models.UpdateMetricStoreProcessorRequest,
22754
+ headers: Dict[str, str],
22755
+ runtime: util_models.RuntimeOptions,
22756
+ ) -> sls_20201230_models.UpdateMetricStoreProcessorResponse:
22757
+ """
22758
+ @summary Updates the ingest processor that is associated with a Metricstore.
22759
+
22760
+ @param request: UpdateMetricStoreProcessorRequest
22761
+ @param headers: map
22762
+ @param runtime: runtime options for this request RuntimeOptions
22763
+ @return: UpdateMetricStoreProcessorResponse
22764
+ """
22765
+ UtilClient.validate_model(request)
22766
+ host_map = {}
22767
+ host_map['project'] = project
22768
+ body = {}
22769
+ if not UtilClient.is_unset(request.processor_name):
22770
+ body['processorName'] = request.processor_name
22771
+ req = open_api_models.OpenApiRequest(
22772
+ host_map=host_map,
22773
+ headers=headers,
22774
+ body=OpenApiUtilClient.parse_to_map(body)
22775
+ )
22776
+ params = open_api_models.Params(
22777
+ action='UpdateMetricStoreProcessor',
22778
+ version='2020-12-30',
22779
+ protocol='HTTPS',
22780
+ pathname=f'/metricstores/{metricstore}/processor',
22781
+ method='POST',
22782
+ auth_type='AK',
22783
+ style='ROA',
22784
+ req_body_type='json',
22785
+ body_type='none'
22786
+ )
22787
+ return TeaCore.from_map(
22788
+ sls_20201230_models.UpdateMetricStoreProcessorResponse(),
22789
+ self.execute(params, req, runtime)
22790
+ )
22791
+
22792
+ async def update_metric_store_processor_with_options_async(
22793
+ self,
22794
+ project: str,
22795
+ metricstore: str,
22796
+ request: sls_20201230_models.UpdateMetricStoreProcessorRequest,
22797
+ headers: Dict[str, str],
22798
+ runtime: util_models.RuntimeOptions,
22799
+ ) -> sls_20201230_models.UpdateMetricStoreProcessorResponse:
22800
+ """
22801
+ @summary Updates the ingest processor that is associated with a Metricstore.
22802
+
22803
+ @param request: UpdateMetricStoreProcessorRequest
22804
+ @param headers: map
22805
+ @param runtime: runtime options for this request RuntimeOptions
22806
+ @return: UpdateMetricStoreProcessorResponse
22807
+ """
22808
+ UtilClient.validate_model(request)
22809
+ host_map = {}
22810
+ host_map['project'] = project
22811
+ body = {}
22812
+ if not UtilClient.is_unset(request.processor_name):
22813
+ body['processorName'] = request.processor_name
22814
+ req = open_api_models.OpenApiRequest(
22815
+ host_map=host_map,
22816
+ headers=headers,
22817
+ body=OpenApiUtilClient.parse_to_map(body)
22818
+ )
22819
+ params = open_api_models.Params(
22820
+ action='UpdateMetricStoreProcessor',
22821
+ version='2020-12-30',
22822
+ protocol='HTTPS',
22823
+ pathname=f'/metricstores/{metricstore}/processor',
22824
+ method='POST',
22825
+ auth_type='AK',
22826
+ style='ROA',
22827
+ req_body_type='json',
22828
+ body_type='none'
22829
+ )
22830
+ return TeaCore.from_map(
22831
+ sls_20201230_models.UpdateMetricStoreProcessorResponse(),
22832
+ await self.execute_async(params, req, runtime)
22833
+ )
22834
+
22835
+ def update_metric_store_processor(
22836
+ self,
22837
+ project: str,
22838
+ metricstore: str,
22839
+ request: sls_20201230_models.UpdateMetricStoreProcessorRequest,
22840
+ ) -> sls_20201230_models.UpdateMetricStoreProcessorResponse:
22841
+ """
22842
+ @summary Updates the ingest processor that is associated with a Metricstore.
22843
+
22844
+ @param request: UpdateMetricStoreProcessorRequest
22845
+ @return: UpdateMetricStoreProcessorResponse
22846
+ """
22847
+ runtime = util_models.RuntimeOptions()
22848
+ headers = {}
22849
+ return self.update_metric_store_processor_with_options(project, metricstore, request, headers, runtime)
22850
+
22851
+ async def update_metric_store_processor_async(
22852
+ self,
22853
+ project: str,
22854
+ metricstore: str,
22855
+ request: sls_20201230_models.UpdateMetricStoreProcessorRequest,
22856
+ ) -> sls_20201230_models.UpdateMetricStoreProcessorResponse:
22857
+ """
22858
+ @summary Updates the ingest processor that is associated with a Metricstore.
22859
+
22860
+ @param request: UpdateMetricStoreProcessorRequest
22861
+ @return: UpdateMetricStoreProcessorResponse
22862
+ """
22863
+ runtime = util_models.RuntimeOptions()
22864
+ headers = {}
22865
+ return await self.update_metric_store_processor_with_options_async(project, metricstore, request, headers, runtime)
22866
+
20836
22867
  def update_ossexport_with_options(
20837
22868
  self,
20838
22869
  project: str,
@@ -21094,7 +23125,7 @@ class Client(OpenApiClient):
21094
23125
  runtime: util_models.RuntimeOptions,
21095
23126
  ) -> sls_20201230_models.UpdateOSSIngestionResponse:
21096
23127
  """
21097
- @summary 更新oss导入任务
23128
+ @summary Updates an Object Storage Service (OSS) data import job.
21098
23129
 
21099
23130
  @param request: UpdateOSSIngestionRequest
21100
23131
  @param headers: map
@@ -21143,7 +23174,7 @@ class Client(OpenApiClient):
21143
23174
  runtime: util_models.RuntimeOptions,
21144
23175
  ) -> sls_20201230_models.UpdateOSSIngestionResponse:
21145
23176
  """
21146
- @summary 更新oss导入任务
23177
+ @summary Updates an Object Storage Service (OSS) data import job.
21147
23178
 
21148
23179
  @param request: UpdateOSSIngestionRequest
21149
23180
  @param headers: map
@@ -21190,7 +23221,7 @@ class Client(OpenApiClient):
21190
23221
  request: sls_20201230_models.UpdateOSSIngestionRequest,
21191
23222
  ) -> sls_20201230_models.UpdateOSSIngestionResponse:
21192
23223
  """
21193
- @summary 更新oss导入任务
23224
+ @summary Updates an Object Storage Service (OSS) data import job.
21194
23225
 
21195
23226
  @param request: UpdateOSSIngestionRequest
21196
23227
  @return: UpdateOSSIngestionResponse
@@ -21206,7 +23237,7 @@ class Client(OpenApiClient):
21206
23237
  request: sls_20201230_models.UpdateOSSIngestionRequest,
21207
23238
  ) -> sls_20201230_models.UpdateOSSIngestionResponse:
21208
23239
  """
21209
- @summary 更新oss导入任务
23240
+ @summary Updates an Object Storage Service (OSS) data import job.
21210
23241
 
21211
23242
  @param request: UpdateOSSIngestionRequest
21212
23243
  @return: UpdateOSSIngestionResponse
@@ -21384,6 +23415,8 @@ class Client(OpenApiClient):
21384
23415
  body = {}
21385
23416
  if not UtilClient.is_unset(request.description):
21386
23417
  body['description'] = request.description
23418
+ if not UtilClient.is_unset(request.recycle_bin_enabled):
23419
+ body['recycleBinEnabled'] = request.recycle_bin_enabled
21387
23420
  req = open_api_models.OpenApiRequest(
21388
23421
  host_map=host_map,
21389
23422
  headers=headers,
@@ -21436,6 +23469,8 @@ class Client(OpenApiClient):
21436
23469
  body = {}
21437
23470
  if not UtilClient.is_unset(request.description):
21438
23471
  body['description'] = request.description
23472
+ if not UtilClient.is_unset(request.recycle_bin_enabled):
23473
+ body['recycleBinEnabled'] = request.recycle_bin_enabled
21439
23474
  req = open_api_models.OpenApiRequest(
21440
23475
  host_map=host_map,
21441
23476
  headers=headers,
@@ -21518,7 +23553,8 @@ class Client(OpenApiClient):
21518
23553
  """
21519
23554
  @summary Updates an ApsaraDB RDS external store.
21520
23555
 
21521
- @description Host consists of a project name and a Log Service endpoint. You must specify a project in Host.
23556
+ @description ### [](#)Usage notes
23557
+ Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
21522
23558
 
21523
23559
  @param request: UpdateRdsExternalStoreRequest
21524
23560
  @param headers: map
@@ -21567,7 +23603,8 @@ class Client(OpenApiClient):
21567
23603
  """
21568
23604
  @summary Updates an ApsaraDB RDS external store.
21569
23605
 
21570
- @description Host consists of a project name and a Log Service endpoint. You must specify a project in Host.
23606
+ @description ### [](#)Usage notes
23607
+ Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
21571
23608
 
21572
23609
  @param request: UpdateRdsExternalStoreRequest
21573
23610
  @param headers: map
@@ -21614,7 +23651,8 @@ class Client(OpenApiClient):
21614
23651
  """
21615
23652
  @summary Updates an ApsaraDB RDS external store.
21616
23653
 
21617
- @description Host consists of a project name and a Log Service endpoint. You must specify a project in Host.
23654
+ @description ### [](#)Usage notes
23655
+ Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
21618
23656
 
21619
23657
  @param request: UpdateRdsExternalStoreRequest
21620
23658
  @return: UpdateRdsExternalStoreResponse
@@ -21632,7 +23670,8 @@ class Client(OpenApiClient):
21632
23670
  """
21633
23671
  @summary Updates an ApsaraDB RDS external store.
21634
23672
 
21635
- @description Host consists of a project name and a Log Service endpoint. You must specify a project in Host.
23673
+ @description ### [](#)Usage notes
23674
+ Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
21636
23675
 
21637
23676
  @param request: UpdateRdsExternalStoreRequest
21638
23677
  @return: UpdateRdsExternalStoreResponse