alibabacloud-sls20201230 5.5.1__py3-none-any.whl → 5.7.0__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.
@@ -597,6 +710,122 @@ class Client(OpenApiClient):
597
710
  headers = {}
598
711
  return await self.consumer_group_update_check_point_with_options_async(project, logstore, consumer_group, request, headers, runtime)
599
712
 
713
+ def create_agent_instance_config_with_options(
714
+ self,
715
+ request: sls_20201230_models.CreateAgentInstanceConfigRequest,
716
+ headers: Dict[str, str],
717
+ runtime: util_models.RuntimeOptions,
718
+ ) -> sls_20201230_models.CreateAgentInstanceConfigResponse:
719
+ """
720
+ @summary CreateAgentInstanceConfig
721
+
722
+ @param request: CreateAgentInstanceConfigRequest
723
+ @param headers: map
724
+ @param runtime: runtime options for this request RuntimeOptions
725
+ @return: CreateAgentInstanceConfigResponse
726
+ """
727
+ UtilClient.validate_model(request)
728
+ body = {}
729
+ if not UtilClient.is_unset(request.config):
730
+ body['config'] = request.config
731
+ if not UtilClient.is_unset(request.config_matcher):
732
+ body['configMatcher'] = request.config_matcher
733
+ if not UtilClient.is_unset(request.config_name):
734
+ body['configName'] = request.config_name
735
+ if not UtilClient.is_unset(request.is_gray):
736
+ body['isGray'] = request.is_gray
737
+ req = open_api_models.OpenApiRequest(
738
+ headers=headers,
739
+ body=OpenApiUtilClient.parse_to_map(body)
740
+ )
741
+ params = open_api_models.Params(
742
+ action='CreateAgentInstanceConfig',
743
+ version='2020-12-30',
744
+ protocol='HTTPS',
745
+ pathname=f'/agentinstanceconfigs',
746
+ method='POST',
747
+ auth_type='AK',
748
+ style='ROA',
749
+ req_body_type='json',
750
+ body_type='none'
751
+ )
752
+ return TeaCore.from_map(
753
+ sls_20201230_models.CreateAgentInstanceConfigResponse(),
754
+ self.execute(params, req, runtime)
755
+ )
756
+
757
+ async def create_agent_instance_config_with_options_async(
758
+ self,
759
+ request: sls_20201230_models.CreateAgentInstanceConfigRequest,
760
+ headers: Dict[str, str],
761
+ runtime: util_models.RuntimeOptions,
762
+ ) -> sls_20201230_models.CreateAgentInstanceConfigResponse:
763
+ """
764
+ @summary CreateAgentInstanceConfig
765
+
766
+ @param request: CreateAgentInstanceConfigRequest
767
+ @param headers: map
768
+ @param runtime: runtime options for this request RuntimeOptions
769
+ @return: CreateAgentInstanceConfigResponse
770
+ """
771
+ UtilClient.validate_model(request)
772
+ body = {}
773
+ if not UtilClient.is_unset(request.config):
774
+ body['config'] = request.config
775
+ if not UtilClient.is_unset(request.config_matcher):
776
+ body['configMatcher'] = request.config_matcher
777
+ if not UtilClient.is_unset(request.config_name):
778
+ body['configName'] = request.config_name
779
+ if not UtilClient.is_unset(request.is_gray):
780
+ body['isGray'] = request.is_gray
781
+ req = open_api_models.OpenApiRequest(
782
+ headers=headers,
783
+ body=OpenApiUtilClient.parse_to_map(body)
784
+ )
785
+ params = open_api_models.Params(
786
+ action='CreateAgentInstanceConfig',
787
+ version='2020-12-30',
788
+ protocol='HTTPS',
789
+ pathname=f'/agentinstanceconfigs',
790
+ method='POST',
791
+ auth_type='AK',
792
+ style='ROA',
793
+ req_body_type='json',
794
+ body_type='none'
795
+ )
796
+ return TeaCore.from_map(
797
+ sls_20201230_models.CreateAgentInstanceConfigResponse(),
798
+ await self.execute_async(params, req, runtime)
799
+ )
800
+
801
+ def create_agent_instance_config(
802
+ self,
803
+ request: sls_20201230_models.CreateAgentInstanceConfigRequest,
804
+ ) -> sls_20201230_models.CreateAgentInstanceConfigResponse:
805
+ """
806
+ @summary CreateAgentInstanceConfig
807
+
808
+ @param request: CreateAgentInstanceConfigRequest
809
+ @return: CreateAgentInstanceConfigResponse
810
+ """
811
+ runtime = util_models.RuntimeOptions()
812
+ headers = {}
813
+ return self.create_agent_instance_config_with_options(request, headers, runtime)
814
+
815
+ async def create_agent_instance_config_async(
816
+ self,
817
+ request: sls_20201230_models.CreateAgentInstanceConfigRequest,
818
+ ) -> sls_20201230_models.CreateAgentInstanceConfigResponse:
819
+ """
820
+ @summary CreateAgentInstanceConfig
821
+
822
+ @param request: CreateAgentInstanceConfigRequest
823
+ @return: CreateAgentInstanceConfigResponse
824
+ """
825
+ runtime = util_models.RuntimeOptions()
826
+ headers = {}
827
+ return await self.create_agent_instance_config_with_options_async(request, headers, runtime)
828
+
600
829
  def create_alert_with_options(
601
830
  self,
602
831
  project: str,
@@ -2503,57 +2732,48 @@ class Client(OpenApiClient):
2503
2732
  headers = {}
2504
2733
  return await self.create_machine_group_with_options_async(project, request, headers, runtime)
2505
2734
 
2506
- def create_metric_store_with_options(
2735
+ def create_max_compute_export_with_options(
2507
2736
  self,
2508
2737
  project: str,
2509
- request: sls_20201230_models.CreateMetricStoreRequest,
2738
+ request: sls_20201230_models.CreateMaxComputeExportRequest,
2510
2739
  headers: Dict[str, str],
2511
2740
  runtime: util_models.RuntimeOptions,
2512
- ) -> sls_20201230_models.CreateMetricStoreResponse:
2741
+ ) -> sls_20201230_models.CreateMaxComputeExportResponse:
2513
2742
  """
2514
- @summary Creates a Metricstore to store metric data.
2743
+ @summary Creates a MaxCompute data shipping job.
2515
2744
 
2516
- @description Metricstores are used to store metric data. For more information, see [Metric data](https://help.aliyun.com/document_detail/174965.html).
2517
- Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
2745
+ @description Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
2518
2746
  An AccessKey pair is created and obtained. For more information, see [AccessKey pair](https://help.aliyun.com/document_detail/29009.html).
2519
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).
2520
- 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).
2521
- You can create up to 200 Logstores or Metricstores in a project.
2522
- Metric data is automatically deleted when the retention period of the metric data ends.
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).
2523
2749
 
2524
- @param request: CreateMetricStoreRequest
2750
+ @param request: CreateMaxComputeExportRequest
2525
2751
  @param headers: map
2526
2752
  @param runtime: runtime options for this request RuntimeOptions
2527
- @return: CreateMetricStoreResponse
2753
+ @return: CreateMaxComputeExportResponse
2528
2754
  """
2529
2755
  UtilClient.validate_model(request)
2530
2756
  host_map = {}
2531
2757
  host_map['project'] = project
2532
2758
  body = {}
2533
- if not UtilClient.is_unset(request.auto_split):
2534
- body['autoSplit'] = request.auto_split
2535
- if not UtilClient.is_unset(request.max_split_shard):
2536
- body['maxSplitShard'] = request.max_split_shard
2537
- if not UtilClient.is_unset(request.metric_type):
2538
- body['metricType'] = request.metric_type
2539
- if not UtilClient.is_unset(request.mode):
2540
- body['mode'] = request.mode
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
2541
2765
  if not UtilClient.is_unset(request.name):
2542
2766
  body['name'] = request.name
2543
- if not UtilClient.is_unset(request.shard_count):
2544
- body['shardCount'] = request.shard_count
2545
- if not UtilClient.is_unset(request.ttl):
2546
- body['ttl'] = request.ttl
2547
2767
  req = open_api_models.OpenApiRequest(
2548
2768
  host_map=host_map,
2549
2769
  headers=headers,
2550
2770
  body=OpenApiUtilClient.parse_to_map(body)
2551
2771
  )
2552
2772
  params = open_api_models.Params(
2553
- action='CreateMetricStore',
2773
+ action='CreateMaxComputeExport',
2554
2774
  version='2020-12-30',
2555
2775
  protocol='HTTPS',
2556
- pathname=f'/metricstores',
2776
+ pathname=f'/maxcomputeexports',
2557
2777
  method='POST',
2558
2778
  auth_type='AK',
2559
2779
  style='ROA',
@@ -2561,11 +2781,104 @@ class Client(OpenApiClient):
2561
2781
  body_type='none'
2562
2782
  )
2563
2783
  return TeaCore.from_map(
2564
- sls_20201230_models.CreateMetricStoreResponse(),
2784
+ sls_20201230_models.CreateMaxComputeExportResponse(),
2565
2785
  self.execute(params, req, runtime)
2566
2786
  )
2567
2787
 
2568
- async def create_metric_store_with_options_async(
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
+
2881
+ def create_metric_store_with_options(
2569
2882
  self,
2570
2883
  project: str,
2571
2884
  request: sls_20201230_models.CreateMetricStoreRequest,
@@ -2594,6 +2907,10 @@ class Client(OpenApiClient):
2594
2907
  body = {}
2595
2908
  if not UtilClient.is_unset(request.auto_split):
2596
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
2597
2914
  if not UtilClient.is_unset(request.max_split_shard):
2598
2915
  body['maxSplitShard'] = request.max_split_shard
2599
2916
  if not UtilClient.is_unset(request.metric_type):
@@ -2624,10 +2941,76 @@ class Client(OpenApiClient):
2624
2941
  )
2625
2942
  return TeaCore.from_map(
2626
2943
  sls_20201230_models.CreateMetricStoreResponse(),
2627
- await self.execute_async(params, req, runtime)
2944
+ self.execute(params, req, runtime)
2628
2945
  )
2629
2946
 
2630
- def create_metric_store(
2947
+ async def create_metric_store_with_options_async(
2948
+ self,
2949
+ project: str,
2950
+ request: sls_20201230_models.CreateMetricStoreRequest,
2951
+ headers: Dict[str, str],
2952
+ runtime: util_models.RuntimeOptions,
2953
+ ) -> sls_20201230_models.CreateMetricStoreResponse:
2954
+ """
2955
+ @summary Creates a Metricstore to store metric data.
2956
+
2957
+ @description Metricstores are used to store metric data. For more information, see [Metric data](https://help.aliyun.com/document_detail/174965.html).
2958
+ Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
2959
+ An AccessKey pair is created and obtained. For more information, see [AccessKey pair](https://help.aliyun.com/document_detail/29009.html).
2960
+ 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).
2961
+ 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).
2962
+ You can create up to 200 Logstores or Metricstores in a project.
2963
+ Metric data is automatically deleted when the retention period of the metric data ends.
2964
+
2965
+ @param request: CreateMetricStoreRequest
2966
+ @param headers: map
2967
+ @param runtime: runtime options for this request RuntimeOptions
2968
+ @return: CreateMetricStoreResponse
2969
+ """
2970
+ UtilClient.validate_model(request)
2971
+ host_map = {}
2972
+ host_map['project'] = project
2973
+ body = {}
2974
+ if not UtilClient.is_unset(request.auto_split):
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
2980
+ if not UtilClient.is_unset(request.max_split_shard):
2981
+ body['maxSplitShard'] = request.max_split_shard
2982
+ if not UtilClient.is_unset(request.metric_type):
2983
+ body['metricType'] = request.metric_type
2984
+ if not UtilClient.is_unset(request.mode):
2985
+ body['mode'] = request.mode
2986
+ if not UtilClient.is_unset(request.name):
2987
+ body['name'] = request.name
2988
+ if not UtilClient.is_unset(request.shard_count):
2989
+ body['shardCount'] = request.shard_count
2990
+ if not UtilClient.is_unset(request.ttl):
2991
+ body['ttl'] = request.ttl
2992
+ req = open_api_models.OpenApiRequest(
2993
+ host_map=host_map,
2994
+ headers=headers,
2995
+ body=OpenApiUtilClient.parse_to_map(body)
2996
+ )
2997
+ params = open_api_models.Params(
2998
+ action='CreateMetricStore',
2999
+ version='2020-12-30',
3000
+ protocol='HTTPS',
3001
+ pathname=f'/metricstores',
3002
+ method='POST',
3003
+ auth_type='AK',
3004
+ style='ROA',
3005
+ req_body_type='json',
3006
+ body_type='none'
3007
+ )
3008
+ return TeaCore.from_map(
3009
+ sls_20201230_models.CreateMetricStoreResponse(),
3010
+ await self.execute_async(params, req, runtime)
3011
+ )
3012
+
3013
+ def create_metric_store(
2631
3014
  self,
2632
3015
  project: str,
2633
3016
  request: sls_20201230_models.CreateMetricStoreRequest,
@@ -3211,6 +3594,8 @@ class Client(OpenApiClient):
3211
3594
  body['description'] = request.description
3212
3595
  if not UtilClient.is_unset(request.project_name):
3213
3596
  body['projectName'] = request.project_name
3597
+ if not UtilClient.is_unset(request.recycle_bin_enabled):
3598
+ body['recycleBinEnabled'] = request.recycle_bin_enabled
3214
3599
  if not UtilClient.is_unset(request.resource_group_id):
3215
3600
  body['resourceGroupId'] = request.resource_group_id
3216
3601
  req = open_api_models.OpenApiRequest(
@@ -3255,6 +3640,8 @@ class Client(OpenApiClient):
3255
3640
  body['description'] = request.description
3256
3641
  if not UtilClient.is_unset(request.project_name):
3257
3642
  body['projectName'] = request.project_name
3643
+ if not UtilClient.is_unset(request.recycle_bin_enabled):
3644
+ body['recycleBinEnabled'] = request.recycle_bin_enabled
3258
3645
  if not UtilClient.is_unset(request.resource_group_id):
3259
3646
  body['resourceGroupId'] = request.resource_group_id
3260
3647
  req = open_api_models.OpenApiRequest(
@@ -3447,6 +3834,15 @@ class Client(OpenApiClient):
3447
3834
 
3448
3835
  @description ### Usage notes
3449
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}`|
3450
3846
 
3451
3847
  @param request: CreateSavedSearchRequest
3452
3848
  @param headers: map
@@ -3500,6 +3896,15 @@ class Client(OpenApiClient):
3500
3896
 
3501
3897
  @description ### Usage notes
3502
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}`|
3503
3908
 
3504
3909
  @param request: CreateSavedSearchRequest
3505
3910
  @param headers: map
@@ -3551,6 +3956,15 @@ class Client(OpenApiClient):
3551
3956
 
3552
3957
  @description ### Usage notes
3553
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}`|
3554
3968
 
3555
3969
  @param request: CreateSavedSearchRequest
3556
3970
  @return: CreateSavedSearchResponse
@@ -3569,6 +3983,15 @@ class Client(OpenApiClient):
3569
3983
 
3570
3984
  @description ### Usage notes
3571
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}`|
3572
3995
 
3573
3996
  @param request: CreateSavedSearchRequest
3574
3997
  @return: CreateSavedSearchResponse
@@ -3962,7 +4385,7 @@ class Client(OpenApiClient):
3962
4385
  runtime: util_models.RuntimeOptions,
3963
4386
  ) -> sls_20201230_models.CreateTicketResponse:
3964
4387
  """
3965
- @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.
3966
4389
 
3967
4390
  @param request: CreateTicketRequest
3968
4391
  @param headers: map
@@ -4002,7 +4425,7 @@ class Client(OpenApiClient):
4002
4425
  runtime: util_models.RuntimeOptions,
4003
4426
  ) -> sls_20201230_models.CreateTicketResponse:
4004
4427
  """
4005
- @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.
4006
4429
 
4007
4430
  @param request: CreateTicketRequest
4008
4431
  @param headers: map
@@ -4040,7 +4463,7 @@ class Client(OpenApiClient):
4040
4463
  request: sls_20201230_models.CreateTicketRequest,
4041
4464
  ) -> sls_20201230_models.CreateTicketResponse:
4042
4465
  """
4043
- @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.
4044
4467
 
4045
4468
  @param request: CreateTicketRequest
4046
4469
  @return: CreateTicketResponse
@@ -4054,7 +4477,7 @@ class Client(OpenApiClient):
4054
4477
  request: sls_20201230_models.CreateTicketRequest,
4055
4478
  ) -> sls_20201230_models.CreateTicketResponse:
4056
4479
  """
4057
- @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.
4058
4481
 
4059
4482
  @param request: CreateTicketRequest
4060
4483
  @return: CreateTicketResponse
@@ -4063,6 +4486,114 @@ class Client(OpenApiClient):
4063
4486
  headers = {}
4064
4487
  return await self.create_ticket_with_options_async(request, headers, runtime)
4065
4488
 
4489
+ def delete_agent_instance_config_with_options(
4490
+ self,
4491
+ config_name: str,
4492
+ request: sls_20201230_models.DeleteAgentInstanceConfigRequest,
4493
+ headers: Dict[str, str],
4494
+ runtime: util_models.RuntimeOptions,
4495
+ ) -> sls_20201230_models.DeleteAgentInstanceConfigResponse:
4496
+ """
4497
+ @summary DeleteAgentInstanceConfig
4498
+
4499
+ @param request: DeleteAgentInstanceConfigRequest
4500
+ @param headers: map
4501
+ @param runtime: runtime options for this request RuntimeOptions
4502
+ @return: DeleteAgentInstanceConfigResponse
4503
+ """
4504
+ UtilClient.validate_model(request)
4505
+ query = {}
4506
+ if not UtilClient.is_unset(request.is_gray):
4507
+ query['isGray'] = request.is_gray
4508
+ req = open_api_models.OpenApiRequest(
4509
+ headers=headers,
4510
+ query=OpenApiUtilClient.query(query)
4511
+ )
4512
+ params = open_api_models.Params(
4513
+ action='DeleteAgentInstanceConfig',
4514
+ version='2020-12-30',
4515
+ protocol='HTTPS',
4516
+ pathname=f'/agentinstanceconfigs/{config_name}',
4517
+ method='DELETE',
4518
+ auth_type='AK',
4519
+ style='ROA',
4520
+ req_body_type='json',
4521
+ body_type='none'
4522
+ )
4523
+ return TeaCore.from_map(
4524
+ sls_20201230_models.DeleteAgentInstanceConfigResponse(),
4525
+ self.execute(params, req, runtime)
4526
+ )
4527
+
4528
+ async def delete_agent_instance_config_with_options_async(
4529
+ self,
4530
+ config_name: str,
4531
+ request: sls_20201230_models.DeleteAgentInstanceConfigRequest,
4532
+ headers: Dict[str, str],
4533
+ runtime: util_models.RuntimeOptions,
4534
+ ) -> sls_20201230_models.DeleteAgentInstanceConfigResponse:
4535
+ """
4536
+ @summary DeleteAgentInstanceConfig
4537
+
4538
+ @param request: DeleteAgentInstanceConfigRequest
4539
+ @param headers: map
4540
+ @param runtime: runtime options for this request RuntimeOptions
4541
+ @return: DeleteAgentInstanceConfigResponse
4542
+ """
4543
+ UtilClient.validate_model(request)
4544
+ query = {}
4545
+ if not UtilClient.is_unset(request.is_gray):
4546
+ query['isGray'] = request.is_gray
4547
+ req = open_api_models.OpenApiRequest(
4548
+ headers=headers,
4549
+ query=OpenApiUtilClient.query(query)
4550
+ )
4551
+ params = open_api_models.Params(
4552
+ action='DeleteAgentInstanceConfig',
4553
+ version='2020-12-30',
4554
+ protocol='HTTPS',
4555
+ pathname=f'/agentinstanceconfigs/{config_name}',
4556
+ method='DELETE',
4557
+ auth_type='AK',
4558
+ style='ROA',
4559
+ req_body_type='json',
4560
+ body_type='none'
4561
+ )
4562
+ return TeaCore.from_map(
4563
+ sls_20201230_models.DeleteAgentInstanceConfigResponse(),
4564
+ await self.execute_async(params, req, runtime)
4565
+ )
4566
+
4567
+ def delete_agent_instance_config(
4568
+ self,
4569
+ config_name: str,
4570
+ request: sls_20201230_models.DeleteAgentInstanceConfigRequest,
4571
+ ) -> sls_20201230_models.DeleteAgentInstanceConfigResponse:
4572
+ """
4573
+ @summary DeleteAgentInstanceConfig
4574
+
4575
+ @param request: DeleteAgentInstanceConfigRequest
4576
+ @return: DeleteAgentInstanceConfigResponse
4577
+ """
4578
+ runtime = util_models.RuntimeOptions()
4579
+ headers = {}
4580
+ return self.delete_agent_instance_config_with_options(config_name, request, headers, runtime)
4581
+
4582
+ async def delete_agent_instance_config_async(
4583
+ self,
4584
+ config_name: str,
4585
+ request: sls_20201230_models.DeleteAgentInstanceConfigRequest,
4586
+ ) -> sls_20201230_models.DeleteAgentInstanceConfigResponse:
4587
+ """
4588
+ @summary DeleteAgentInstanceConfig
4589
+
4590
+ @param request: DeleteAgentInstanceConfigRequest
4591
+ @return: DeleteAgentInstanceConfigResponse
4592
+ """
4593
+ runtime = util_models.RuntimeOptions()
4594
+ headers = {}
4595
+ return await self.delete_agent_instance_config_with_options_async(config_name, request, headers, runtime)
4596
+
4066
4597
  def delete_alert_with_options(
4067
4598
  self,
4068
4599
  project: str,
@@ -4463,7 +4994,7 @@ class Client(OpenApiClient):
4463
4994
  """
4464
4995
  @summary Deletes a log collection policy from a cloud service.
4465
4996
 
4466
- @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.
4467
4998
 
4468
4999
  @param request: DeleteCollectionPolicyRequest
4469
5000
  @param headers: map
@@ -4506,7 +5037,7 @@ class Client(OpenApiClient):
4506
5037
  """
4507
5038
  @summary Deletes a log collection policy from a cloud service.
4508
5039
 
4509
- @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.
4510
5041
 
4511
5042
  @param request: DeleteCollectionPolicyRequest
4512
5043
  @param headers: map
@@ -4547,7 +5078,7 @@ class Client(OpenApiClient):
4547
5078
  """
4548
5079
  @summary Deletes a log collection policy from a cloud service.
4549
5080
 
4550
- @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.
4551
5082
 
4552
5083
  @param request: DeleteCollectionPolicyRequest
4553
5084
  @return: DeleteCollectionPolicyResponse
@@ -4564,7 +5095,7 @@ class Client(OpenApiClient):
4564
5095
  """
4565
5096
  @summary Deletes a log collection policy from a cloud service.
4566
5097
 
4567
- @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.
4568
5099
 
4569
5100
  @param request: DeleteCollectionPolicyRequest
4570
5101
  @return: DeleteCollectionPolicyResponse
@@ -5509,6 +6040,106 @@ class Client(OpenApiClient):
5509
6040
  headers = {}
5510
6041
  return await self.delete_index_with_options_async(project, logstore, headers, runtime)
5511
6042
 
6043
+ def delete_ingest_processor_with_options(
6044
+ self,
6045
+ project: str,
6046
+ processor_name: str,
6047
+ headers: Dict[str, str],
6048
+ runtime: util_models.RuntimeOptions,
6049
+ ) -> sls_20201230_models.DeleteIngestProcessorResponse:
6050
+ """
6051
+ @summary Deletes an ingest processor.
6052
+
6053
+ @param headers: map
6054
+ @param runtime: runtime options for this request RuntimeOptions
6055
+ @return: DeleteIngestProcessorResponse
6056
+ """
6057
+ host_map = {}
6058
+ host_map['project'] = project
6059
+ req = open_api_models.OpenApiRequest(
6060
+ host_map=host_map,
6061
+ headers=headers
6062
+ )
6063
+ params = open_api_models.Params(
6064
+ action='DeleteIngestProcessor',
6065
+ version='2020-12-30',
6066
+ protocol='HTTPS',
6067
+ pathname=f'/ingestprocessors/{processor_name}',
6068
+ method='DELETE',
6069
+ auth_type='AK',
6070
+ style='ROA',
6071
+ req_body_type='json',
6072
+ body_type='none'
6073
+ )
6074
+ return TeaCore.from_map(
6075
+ sls_20201230_models.DeleteIngestProcessorResponse(),
6076
+ self.execute(params, req, runtime)
6077
+ )
6078
+
6079
+ async def delete_ingest_processor_with_options_async(
6080
+ self,
6081
+ project: str,
6082
+ processor_name: str,
6083
+ headers: Dict[str, str],
6084
+ runtime: util_models.RuntimeOptions,
6085
+ ) -> sls_20201230_models.DeleteIngestProcessorResponse:
6086
+ """
6087
+ @summary Deletes an ingest processor.
6088
+
6089
+ @param headers: map
6090
+ @param runtime: runtime options for this request RuntimeOptions
6091
+ @return: DeleteIngestProcessorResponse
6092
+ """
6093
+ host_map = {}
6094
+ host_map['project'] = project
6095
+ req = open_api_models.OpenApiRequest(
6096
+ host_map=host_map,
6097
+ headers=headers
6098
+ )
6099
+ params = open_api_models.Params(
6100
+ action='DeleteIngestProcessor',
6101
+ version='2020-12-30',
6102
+ protocol='HTTPS',
6103
+ pathname=f'/ingestprocessors/{processor_name}',
6104
+ method='DELETE',
6105
+ auth_type='AK',
6106
+ style='ROA',
6107
+ req_body_type='json',
6108
+ body_type='none'
6109
+ )
6110
+ return TeaCore.from_map(
6111
+ sls_20201230_models.DeleteIngestProcessorResponse(),
6112
+ await self.execute_async(params, req, runtime)
6113
+ )
6114
+
6115
+ def delete_ingest_processor(
6116
+ self,
6117
+ project: str,
6118
+ processor_name: str,
6119
+ ) -> sls_20201230_models.DeleteIngestProcessorResponse:
6120
+ """
6121
+ @summary Deletes an ingest processor.
6122
+
6123
+ @return: DeleteIngestProcessorResponse
6124
+ """
6125
+ runtime = util_models.RuntimeOptions()
6126
+ headers = {}
6127
+ return self.delete_ingest_processor_with_options(project, processor_name, headers, runtime)
6128
+
6129
+ async def delete_ingest_processor_async(
6130
+ self,
6131
+ project: str,
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
+
5512
6143
  def delete_log_store_with_options(
5513
6144
  self,
5514
6145
  project: str,
@@ -5937,28 +6568,24 @@ class Client(OpenApiClient):
5937
6568
  headers = {}
5938
6569
  return await self.delete_machine_group_with_options_async(project, machine_group, headers, runtime)
5939
6570
 
5940
- def delete_metric_store_with_options(
6571
+ def delete_max_compute_export_with_options(
5941
6572
  self,
5942
6573
  project: str,
5943
- name: str,
6574
+ mc_export_name: str,
5944
6575
  headers: Dict[str, str],
5945
6576
  runtime: util_models.RuntimeOptions,
5946
- ) -> sls_20201230_models.DeleteMetricStoreResponse:
6577
+ ) -> sls_20201230_models.DeleteMaxComputeExportResponse:
5947
6578
  """
5948
- @summary Deletes an existing Metricstore. When you delete a Metricstore, the metric data stored in the Metricstore and associated resources such as associated collection settings and transformation settings are also deleted.
6579
+ @summary Deletes a MaxCompute data shipping job.
5949
6580
 
5950
- @description Metricstores are used to store metric data. For more information, see [Metric data](https://help.aliyun.com/document_detail/174965.html).
5951
- You must specify an existing Metricstore.
5952
- Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
6581
+ @description Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
5953
6582
  An AccessKey pair is created and obtained. For more information, see [AccessKey pair](https://help.aliyun.com/document_detail/29009.html).
5954
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).
5955
- 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).
5956
- You can create up to 200 Logstores or Metricstores in a project.
5957
- Metric data is automatically deleted when the retention period of the metric data ends.
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)
5958
6585
 
5959
6586
  @param headers: map
5960
6587
  @param runtime: runtime options for this request RuntimeOptions
5961
- @return: DeleteMetricStoreResponse
6588
+ @return: DeleteMaxComputeExportResponse
5962
6589
  """
5963
6590
  host_map = {}
5964
6591
  host_map['project'] = project
@@ -5967,14 +6594,138 @@ class Client(OpenApiClient):
5967
6594
  headers=headers
5968
6595
  )
5969
6596
  params = open_api_models.Params(
5970
- action='DeleteMetricStore',
6597
+ action='DeleteMaxComputeExport',
5971
6598
  version='2020-12-30',
5972
6599
  protocol='HTTPS',
5973
- pathname=f'/metricstores/{name}',
6600
+ pathname=f'/maxcomputeexports/{mc_export_name}',
5974
6601
  method='DELETE',
5975
6602
  auth_type='AK',
5976
6603
  style='ROA',
5977
- req_body_type='none',
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
+
6691
+ def delete_metric_store_with_options(
6692
+ self,
6693
+ project: str,
6694
+ name: str,
6695
+ headers: Dict[str, str],
6696
+ runtime: util_models.RuntimeOptions,
6697
+ ) -> sls_20201230_models.DeleteMetricStoreResponse:
6698
+ """
6699
+ @summary Deletes an existing Metricstore. When you delete a Metricstore, the metric data stored in the Metricstore and associated resources such as associated collection settings and transformation settings are also deleted.
6700
+
6701
+ @description Metricstores are used to store metric data. For more information, see [Metric data](https://help.aliyun.com/document_detail/174965.html).
6702
+ You must specify an existing Metricstore.
6703
+ Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
6704
+ An AccessKey pair is created and obtained. For more information, see [AccessKey pair](https://help.aliyun.com/document_detail/29009.html).
6705
+ 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).
6706
+ 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).
6707
+ You can create up to 200 Logstores or Metricstores in a project.
6708
+ Metric data is automatically deleted when the retention period of the metric data ends.
6709
+
6710
+ @param headers: map
6711
+ @param runtime: runtime options for this request RuntimeOptions
6712
+ @return: DeleteMetricStoreResponse
6713
+ """
6714
+ host_map = {}
6715
+ host_map['project'] = project
6716
+ req = open_api_models.OpenApiRequest(
6717
+ host_map=host_map,
6718
+ headers=headers
6719
+ )
6720
+ params = open_api_models.Params(
6721
+ action='DeleteMetricStore',
6722
+ version='2020-12-30',
6723
+ protocol='HTTPS',
6724
+ pathname=f'/metricstores/{name}',
6725
+ method='DELETE',
6726
+ auth_type='AK',
6727
+ style='ROA',
6728
+ req_body_type='none',
5978
6729
  body_type='none'
5979
6730
  )
5980
6731
  return TeaCore.from_map(
@@ -6376,6 +7127,7 @@ class Client(OpenApiClient):
6376
7127
  def delete_project_with_options(
6377
7128
  self,
6378
7129
  project: str,
7130
+ request: sls_20201230_models.DeleteProjectRequest,
6379
7131
  headers: Dict[str, str],
6380
7132
  runtime: util_models.RuntimeOptions,
6381
7133
  ) -> sls_20201230_models.DeleteProjectResponse:
@@ -6393,15 +7145,21 @@ class Client(OpenApiClient):
6393
7145
  |:---|:---|
6394
7146
  |`log:DeleteProject`|`acs:log:{#regionId}:{#accountId}:project/{#ProjectName}`|
6395
7147
 
7148
+ @param request: DeleteProjectRequest
6396
7149
  @param headers: map
6397
7150
  @param runtime: runtime options for this request RuntimeOptions
6398
7151
  @return: DeleteProjectResponse
6399
7152
  """
7153
+ UtilClient.validate_model(request)
6400
7154
  host_map = {}
6401
7155
  host_map['project'] = project
7156
+ query = {}
7157
+ if not UtilClient.is_unset(request.force_delete):
7158
+ query['forceDelete'] = request.force_delete
6402
7159
  req = open_api_models.OpenApiRequest(
6403
7160
  host_map=host_map,
6404
- headers=headers
7161
+ headers=headers,
7162
+ query=OpenApiUtilClient.query(query)
6405
7163
  )
6406
7164
  params = open_api_models.Params(
6407
7165
  action='DeleteProject',
@@ -6422,6 +7180,7 @@ class Client(OpenApiClient):
6422
7180
  async def delete_project_with_options_async(
6423
7181
  self,
6424
7182
  project: str,
7183
+ request: sls_20201230_models.DeleteProjectRequest,
6425
7184
  headers: Dict[str, str],
6426
7185
  runtime: util_models.RuntimeOptions,
6427
7186
  ) -> sls_20201230_models.DeleteProjectResponse:
@@ -6439,15 +7198,21 @@ class Client(OpenApiClient):
6439
7198
  |:---|:---|
6440
7199
  |`log:DeleteProject`|`acs:log:{#regionId}:{#accountId}:project/{#ProjectName}`|
6441
7200
 
7201
+ @param request: DeleteProjectRequest
6442
7202
  @param headers: map
6443
7203
  @param runtime: runtime options for this request RuntimeOptions
6444
7204
  @return: DeleteProjectResponse
6445
7205
  """
7206
+ UtilClient.validate_model(request)
6446
7207
  host_map = {}
6447
7208
  host_map['project'] = project
7209
+ query = {}
7210
+ if not UtilClient.is_unset(request.force_delete):
7211
+ query['forceDelete'] = request.force_delete
6448
7212
  req = open_api_models.OpenApiRequest(
6449
7213
  host_map=host_map,
6450
- headers=headers
7214
+ headers=headers,
7215
+ query=OpenApiUtilClient.query(query)
6451
7216
  )
6452
7217
  params = open_api_models.Params(
6453
7218
  action='DeleteProject',
@@ -6468,6 +7233,7 @@ class Client(OpenApiClient):
6468
7233
  def delete_project(
6469
7234
  self,
6470
7235
  project: str,
7236
+ request: sls_20201230_models.DeleteProjectRequest,
6471
7237
  ) -> sls_20201230_models.DeleteProjectResponse:
6472
7238
  """
6473
7239
  @summary Deletes a project.
@@ -6483,15 +7249,17 @@ class Client(OpenApiClient):
6483
7249
  |:---|:---|
6484
7250
  |`log:DeleteProject`|`acs:log:{#regionId}:{#accountId}:project/{#ProjectName}`|
6485
7251
 
7252
+ @param request: DeleteProjectRequest
6486
7253
  @return: DeleteProjectResponse
6487
7254
  """
6488
7255
  runtime = util_models.RuntimeOptions()
6489
7256
  headers = {}
6490
- return self.delete_project_with_options(project, headers, runtime)
7257
+ return self.delete_project_with_options(project, request, headers, runtime)
6491
7258
 
6492
7259
  async def delete_project_async(
6493
7260
  self,
6494
7261
  project: str,
7262
+ request: sls_20201230_models.DeleteProjectRequest,
6495
7263
  ) -> sls_20201230_models.DeleteProjectResponse:
6496
7264
  """
6497
7265
  @summary Deletes a project.
@@ -6507,11 +7275,12 @@ class Client(OpenApiClient):
6507
7275
  |:---|:---|
6508
7276
  |`log:DeleteProject`|`acs:log:{#regionId}:{#accountId}:project/{#ProjectName}`|
6509
7277
 
7278
+ @param request: DeleteProjectRequest
6510
7279
  @return: DeleteProjectResponse
6511
7280
  """
6512
7281
  runtime = util_models.RuntimeOptions()
6513
7282
  headers = {}
6514
- return await self.delete_project_with_options_async(project, headers, runtime)
7283
+ return await self.delete_project_with_options_async(project, request, headers, runtime)
6515
7284
 
6516
7285
  def delete_project_policy_with_options(
6517
7286
  self,
@@ -6988,7 +7757,7 @@ class Client(OpenApiClient):
6988
7757
  runtime: util_models.RuntimeOptions,
6989
7758
  ) -> sls_20201230_models.DescribeRegionsResponse:
6990
7759
  """
6991
- @summary 查询可用的区域
7760
+ @summary Queries supported regions.
6992
7761
 
6993
7762
  @param request: DescribeRegionsRequest
6994
7763
  @param headers: map
@@ -7026,7 +7795,7 @@ class Client(OpenApiClient):
7026
7795
  runtime: util_models.RuntimeOptions,
7027
7796
  ) -> sls_20201230_models.DescribeRegionsResponse:
7028
7797
  """
7029
- @summary 查询可用的区域
7798
+ @summary Queries supported regions.
7030
7799
 
7031
7800
  @param request: DescribeRegionsRequest
7032
7801
  @param headers: map
@@ -7062,7 +7831,7 @@ class Client(OpenApiClient):
7062
7831
  request: sls_20201230_models.DescribeRegionsRequest,
7063
7832
  ) -> sls_20201230_models.DescribeRegionsResponse:
7064
7833
  """
7065
- @summary 查询可用的区域
7834
+ @summary Queries supported regions.
7066
7835
 
7067
7836
  @param request: DescribeRegionsRequest
7068
7837
  @return: DescribeRegionsResponse
@@ -7076,7 +7845,7 @@ class Client(OpenApiClient):
7076
7845
  request: sls_20201230_models.DescribeRegionsRequest,
7077
7846
  ) -> sls_20201230_models.DescribeRegionsResponse:
7078
7847
  """
7079
- @summary 查询可用的区域
7848
+ @summary Queries supported regions.
7080
7849
 
7081
7850
  @param request: DescribeRegionsRequest
7082
7851
  @return: DescribeRegionsResponse
@@ -7193,7 +7962,7 @@ class Client(OpenApiClient):
7193
7962
  runtime: util_models.RuntimeOptions,
7194
7963
  ) -> sls_20201230_models.DisableScheduledSQLResponse:
7195
7964
  """
7196
- @summary 禁用定时SQL任务
7965
+ @summary Disables the Scheduled SQL feature.
7197
7966
 
7198
7967
  @param headers: map
7199
7968
  @param runtime: runtime options for this request RuntimeOptions
@@ -7229,7 +7998,7 @@ class Client(OpenApiClient):
7229
7998
  runtime: util_models.RuntimeOptions,
7230
7999
  ) -> sls_20201230_models.DisableScheduledSQLResponse:
7231
8000
  """
7232
- @summary 禁用定时SQL任务
8001
+ @summary Disables the Scheduled SQL feature.
7233
8002
 
7234
8003
  @param headers: map
7235
8004
  @param runtime: runtime options for this request RuntimeOptions
@@ -7263,7 +8032,7 @@ class Client(OpenApiClient):
7263
8032
  scheduled_sqlname: str,
7264
8033
  ) -> sls_20201230_models.DisableScheduledSQLResponse:
7265
8034
  """
7266
- @summary 禁用定时SQL任务
8035
+ @summary Disables the Scheduled SQL feature.
7267
8036
 
7268
8037
  @return: DisableScheduledSQLResponse
7269
8038
  """
@@ -7277,7 +8046,7 @@ class Client(OpenApiClient):
7277
8046
  scheduled_sqlname: str,
7278
8047
  ) -> sls_20201230_models.DisableScheduledSQLResponse:
7279
8048
  """
7280
- @summary 禁用定时SQL任务
8049
+ @summary Disables the Scheduled SQL feature.
7281
8050
 
7282
8051
  @return: DisableScheduledSQLResponse
7283
8052
  """
@@ -7485,6 +8254,96 @@ class Client(OpenApiClient):
7485
8254
  headers = {}
7486
8255
  return await self.enable_scheduled_sqlwith_options_async(project, scheduled_sqlname, headers, runtime)
7487
8256
 
8257
+ def get_agent_instance_config_with_options(
8258
+ self,
8259
+ config_name: str,
8260
+ headers: Dict[str, str],
8261
+ runtime: util_models.RuntimeOptions,
8262
+ ) -> sls_20201230_models.GetAgentInstanceConfigResponse:
8263
+ """
8264
+ @summary GetAgentInstanceConfig
8265
+
8266
+ @param headers: map
8267
+ @param runtime: runtime options for this request RuntimeOptions
8268
+ @return: GetAgentInstanceConfigResponse
8269
+ """
8270
+ req = open_api_models.OpenApiRequest(
8271
+ headers=headers
8272
+ )
8273
+ params = open_api_models.Params(
8274
+ action='GetAgentInstanceConfig',
8275
+ version='2020-12-30',
8276
+ protocol='HTTPS',
8277
+ pathname=f'/agentinstanceconfigs/{config_name}',
8278
+ method='GET',
8279
+ auth_type='AK',
8280
+ style='ROA',
8281
+ req_body_type='json',
8282
+ body_type='json'
8283
+ )
8284
+ return TeaCore.from_map(
8285
+ sls_20201230_models.GetAgentInstanceConfigResponse(),
8286
+ self.execute(params, req, runtime)
8287
+ )
8288
+
8289
+ async def get_agent_instance_config_with_options_async(
8290
+ self,
8291
+ config_name: str,
8292
+ headers: Dict[str, str],
8293
+ runtime: util_models.RuntimeOptions,
8294
+ ) -> sls_20201230_models.GetAgentInstanceConfigResponse:
8295
+ """
8296
+ @summary GetAgentInstanceConfig
8297
+
8298
+ @param headers: map
8299
+ @param runtime: runtime options for this request RuntimeOptions
8300
+ @return: GetAgentInstanceConfigResponse
8301
+ """
8302
+ req = open_api_models.OpenApiRequest(
8303
+ headers=headers
8304
+ )
8305
+ params = open_api_models.Params(
8306
+ action='GetAgentInstanceConfig',
8307
+ version='2020-12-30',
8308
+ protocol='HTTPS',
8309
+ pathname=f'/agentinstanceconfigs/{config_name}',
8310
+ method='GET',
8311
+ auth_type='AK',
8312
+ style='ROA',
8313
+ req_body_type='json',
8314
+ body_type='json'
8315
+ )
8316
+ return TeaCore.from_map(
8317
+ sls_20201230_models.GetAgentInstanceConfigResponse(),
8318
+ await self.execute_async(params, req, runtime)
8319
+ )
8320
+
8321
+ def get_agent_instance_config(
8322
+ self,
8323
+ config_name: str,
8324
+ ) -> sls_20201230_models.GetAgentInstanceConfigResponse:
8325
+ """
8326
+ @summary GetAgentInstanceConfig
8327
+
8328
+ @return: GetAgentInstanceConfigResponse
8329
+ """
8330
+ runtime = util_models.RuntimeOptions()
8331
+ headers = {}
8332
+ return self.get_agent_instance_config_with_options(config_name, headers, runtime)
8333
+
8334
+ async def get_agent_instance_config_async(
8335
+ self,
8336
+ config_name: str,
8337
+ ) -> sls_20201230_models.GetAgentInstanceConfigResponse:
8338
+ """
8339
+ @summary GetAgentInstanceConfig
8340
+
8341
+ @return: GetAgentInstanceConfigResponse
8342
+ """
8343
+ runtime = util_models.RuntimeOptions()
8344
+ headers = {}
8345
+ return await self.get_agent_instance_config_with_options_async(config_name, headers, runtime)
8346
+
7488
8347
  def get_alert_with_options(
7489
8348
  self,
7490
8349
  project: str,
@@ -8215,6 +9074,8 @@ class Client(OpenApiClient):
8215
9074
  """
8216
9075
  @summary 调用GetCollectionPolicy获取对应的规则
8217
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
+
8218
9079
  @param request: GetCollectionPolicyRequest
8219
9080
  @param headers: map
8220
9081
  @param runtime: runtime options for this request RuntimeOptions
@@ -8256,6 +9117,8 @@ class Client(OpenApiClient):
8256
9117
  """
8257
9118
  @summary 调用GetCollectionPolicy获取对应的规则
8258
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
+
8259
9122
  @param request: GetCollectionPolicyRequest
8260
9123
  @param headers: map
8261
9124
  @param runtime: runtime options for this request RuntimeOptions
@@ -8295,6 +9158,8 @@ class Client(OpenApiClient):
8295
9158
  """
8296
9159
  @summary 调用GetCollectionPolicy获取对应的规则
8297
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
+
8298
9163
  @param request: GetCollectionPolicyRequest
8299
9164
  @return: GetCollectionPolicyResponse
8300
9165
  """
@@ -8310,6 +9175,8 @@ class Client(OpenApiClient):
8310
9175
  """
8311
9176
  @summary 调用GetCollectionPolicy获取对应的规则
8312
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
+
8313
9180
  @param request: GetCollectionPolicyRequest
8314
9181
  @return: GetCollectionPolicyResponse
8315
9182
  """
@@ -9625,6 +10492,106 @@ class Client(OpenApiClient):
9625
10492
  headers = {}
9626
10493
  return await self.get_index_with_options_async(project, logstore, headers, runtime)
9627
10494
 
10495
+ def get_ingest_processor_with_options(
10496
+ self,
10497
+ project: str,
10498
+ processor_name: str,
10499
+ headers: Dict[str, str],
10500
+ runtime: util_models.RuntimeOptions,
10501
+ ) -> sls_20201230_models.GetIngestProcessorResponse:
10502
+ """
10503
+ @summary Queries an ingest processor.
10504
+
10505
+ @param headers: map
10506
+ @param runtime: runtime options for this request RuntimeOptions
10507
+ @return: GetIngestProcessorResponse
10508
+ """
10509
+ host_map = {}
10510
+ host_map['project'] = project
10511
+ req = open_api_models.OpenApiRequest(
10512
+ host_map=host_map,
10513
+ headers=headers
10514
+ )
10515
+ params = open_api_models.Params(
10516
+ action='GetIngestProcessor',
10517
+ version='2020-12-30',
10518
+ protocol='HTTPS',
10519
+ pathname=f'/ingestprocessors/{processor_name}',
10520
+ method='GET',
10521
+ auth_type='AK',
10522
+ style='ROA',
10523
+ req_body_type='json',
10524
+ body_type='json'
10525
+ )
10526
+ return TeaCore.from_map(
10527
+ sls_20201230_models.GetIngestProcessorResponse(),
10528
+ self.execute(params, req, runtime)
10529
+ )
10530
+
10531
+ async def get_ingest_processor_with_options_async(
10532
+ self,
10533
+ project: str,
10534
+ processor_name: str,
10535
+ headers: Dict[str, str],
10536
+ runtime: util_models.RuntimeOptions,
10537
+ ) -> sls_20201230_models.GetIngestProcessorResponse:
10538
+ """
10539
+ @summary Queries an ingest processor.
10540
+
10541
+ @param headers: map
10542
+ @param runtime: runtime options for this request RuntimeOptions
10543
+ @return: GetIngestProcessorResponse
10544
+ """
10545
+ host_map = {}
10546
+ host_map['project'] = project
10547
+ req = open_api_models.OpenApiRequest(
10548
+ host_map=host_map,
10549
+ headers=headers
10550
+ )
10551
+ params = open_api_models.Params(
10552
+ action='GetIngestProcessor',
10553
+ version='2020-12-30',
10554
+ protocol='HTTPS',
10555
+ pathname=f'/ingestprocessors/{processor_name}',
10556
+ method='GET',
10557
+ auth_type='AK',
10558
+ style='ROA',
10559
+ req_body_type='json',
10560
+ body_type='json'
10561
+ )
10562
+ return TeaCore.from_map(
10563
+ sls_20201230_models.GetIngestProcessorResponse(),
10564
+ await self.execute_async(params, req, runtime)
10565
+ )
10566
+
10567
+ def get_ingest_processor(
10568
+ self,
10569
+ project: str,
10570
+ processor_name: str,
10571
+ ) -> sls_20201230_models.GetIngestProcessorResponse:
10572
+ """
10573
+ @summary Queries an ingest processor.
10574
+
10575
+ @return: GetIngestProcessorResponse
10576
+ """
10577
+ runtime = util_models.RuntimeOptions()
10578
+ headers = {}
10579
+ return self.get_ingest_processor_with_options(project, processor_name, headers, runtime)
10580
+
10581
+ async def get_ingest_processor_async(
10582
+ self,
10583
+ project: str,
10584
+ processor_name: str,
10585
+ ) -> sls_20201230_models.GetIngestProcessorResponse:
10586
+ """
10587
+ @summary Queries an ingest processor.
10588
+
10589
+ @return: GetIngestProcessorResponse
10590
+ """
10591
+ runtime = util_models.RuntimeOptions()
10592
+ headers = {}
10593
+ return await self.get_ingest_processor_with_options_async(project, processor_name, headers, runtime)
10594
+
9628
10595
  def get_log_store_with_options(
9629
10596
  self,
9630
10597
  project: str,
@@ -10359,7 +11326,7 @@ class Client(OpenApiClient):
10359
11326
  runtime: util_models.RuntimeOptions,
10360
11327
  ) -> sls_20201230_models.GetLogtailPipelineConfigResponse:
10361
11328
  """
10362
- @summary Queries the details of a Logtail pipeline configuration.
11329
+ @summary Queries the information about a Logtail pipeline configuration.
10363
11330
 
10364
11331
  @description The UK (London) region is supported. Supported regions are constantly updated.
10365
11332
 
@@ -10397,7 +11364,7 @@ class Client(OpenApiClient):
10397
11364
  runtime: util_models.RuntimeOptions,
10398
11365
  ) -> sls_20201230_models.GetLogtailPipelineConfigResponse:
10399
11366
  """
10400
- @summary Queries the details of a Logtail pipeline configuration.
11367
+ @summary Queries the information about a Logtail pipeline configuration.
10401
11368
 
10402
11369
  @description The UK (London) region is supported. Supported regions are constantly updated.
10403
11370
 
@@ -10433,7 +11400,7 @@ class Client(OpenApiClient):
10433
11400
  config_name: str,
10434
11401
  ) -> sls_20201230_models.GetLogtailPipelineConfigResponse:
10435
11402
  """
10436
- @summary Queries the details of a Logtail pipeline configuration.
11403
+ @summary Queries the information about a Logtail pipeline configuration.
10437
11404
 
10438
11405
  @description The UK (London) region is supported. Supported regions are constantly updated.
10439
11406
 
@@ -10449,7 +11416,7 @@ class Client(OpenApiClient):
10449
11416
  config_name: str,
10450
11417
  ) -> sls_20201230_models.GetLogtailPipelineConfigResponse:
10451
11418
  """
10452
- @summary Queries the details of a Logtail pipeline configuration.
11419
+ @summary Queries the information about a Logtail pipeline configuration.
10453
11420
 
10454
11421
  @description The UK (London) region is supported. Supported regions are constantly updated.
10455
11422
 
@@ -10469,6 +11436,22 @@ class Client(OpenApiClient):
10469
11436
  """
10470
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.
10471
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
+
10472
11455
  @param request: GetMLServiceResultsRequest
10473
11456
  @param headers: map
10474
11457
  @param runtime: runtime options for this request RuntimeOptions
@@ -10511,6 +11494,22 @@ class Client(OpenApiClient):
10511
11494
  """
10512
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.
10513
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
+
10514
11513
  @param request: GetMLServiceResultsRequest
10515
11514
  @param headers: map
10516
11515
  @param runtime: runtime options for this request RuntimeOptions
@@ -10551,6 +11550,22 @@ class Client(OpenApiClient):
10551
11550
  """
10552
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.
10553
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
+
10554
11569
  @param request: GetMLServiceResultsRequest
10555
11570
  @return: GetMLServiceResultsResponse
10556
11571
  """
@@ -10566,6 +11581,22 @@ class Client(OpenApiClient):
10566
11581
  """
10567
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.
10568
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
+
10569
11600
  @param request: GetMLServiceResultsRequest
10570
11601
  @return: GetMLServiceResultsResponse
10571
11602
  """
@@ -10681,6 +11712,126 @@ class Client(OpenApiClient):
10681
11712
  headers = {}
10682
11713
  return await self.get_machine_group_with_options_async(project, machine_group, headers, runtime)
10683
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
+
10684
11835
  def get_metric_store_with_options(
10685
11836
  self,
10686
11837
  project: str,
@@ -12253,6 +13404,196 @@ class Client(OpenApiClient):
12253
13404
  headers = {}
12254
13405
  return await self.get_store_view_index_with_options_async(project, name, headers, runtime)
12255
13406
 
13407
+ def list_agent_instance_configs_with_options(
13408
+ self,
13409
+ request: sls_20201230_models.ListAgentInstanceConfigsRequest,
13410
+ headers: Dict[str, str],
13411
+ runtime: util_models.RuntimeOptions,
13412
+ ) -> sls_20201230_models.ListAgentInstanceConfigsResponse:
13413
+ """
13414
+ @summary ListAgentInstanceConfigs
13415
+
13416
+ @param request: ListAgentInstanceConfigsRequest
13417
+ @param headers: map
13418
+ @param runtime: runtime options for this request RuntimeOptions
13419
+ @return: ListAgentInstanceConfigsResponse
13420
+ """
13421
+ UtilClient.validate_model(request)
13422
+ query = {}
13423
+ if not UtilClient.is_unset(request.offset):
13424
+ query['offset'] = request.offset
13425
+ if not UtilClient.is_unset(request.size):
13426
+ query['size'] = request.size
13427
+ req = open_api_models.OpenApiRequest(
13428
+ headers=headers,
13429
+ query=OpenApiUtilClient.query(query)
13430
+ )
13431
+ params = open_api_models.Params(
13432
+ action='ListAgentInstanceConfigs',
13433
+ version='2020-12-30',
13434
+ protocol='HTTPS',
13435
+ pathname=f'/agentinstanceconfigs',
13436
+ method='GET',
13437
+ auth_type='AK',
13438
+ style='ROA',
13439
+ req_body_type='json',
13440
+ body_type='json'
13441
+ )
13442
+ return TeaCore.from_map(
13443
+ sls_20201230_models.ListAgentInstanceConfigsResponse(),
13444
+ self.execute(params, req, runtime)
13445
+ )
13446
+
13447
+ async def list_agent_instance_configs_with_options_async(
13448
+ self,
13449
+ request: sls_20201230_models.ListAgentInstanceConfigsRequest,
13450
+ headers: Dict[str, str],
13451
+ runtime: util_models.RuntimeOptions,
13452
+ ) -> sls_20201230_models.ListAgentInstanceConfigsResponse:
13453
+ """
13454
+ @summary ListAgentInstanceConfigs
13455
+
13456
+ @param request: ListAgentInstanceConfigsRequest
13457
+ @param headers: map
13458
+ @param runtime: runtime options for this request RuntimeOptions
13459
+ @return: ListAgentInstanceConfigsResponse
13460
+ """
13461
+ UtilClient.validate_model(request)
13462
+ query = {}
13463
+ if not UtilClient.is_unset(request.offset):
13464
+ query['offset'] = request.offset
13465
+ if not UtilClient.is_unset(request.size):
13466
+ query['size'] = request.size
13467
+ req = open_api_models.OpenApiRequest(
13468
+ headers=headers,
13469
+ query=OpenApiUtilClient.query(query)
13470
+ )
13471
+ params = open_api_models.Params(
13472
+ action='ListAgentInstanceConfigs',
13473
+ version='2020-12-30',
13474
+ protocol='HTTPS',
13475
+ pathname=f'/agentinstanceconfigs',
13476
+ method='GET',
13477
+ auth_type='AK',
13478
+ style='ROA',
13479
+ req_body_type='json',
13480
+ body_type='json'
13481
+ )
13482
+ return TeaCore.from_map(
13483
+ sls_20201230_models.ListAgentInstanceConfigsResponse(),
13484
+ await self.execute_async(params, req, runtime)
13485
+ )
13486
+
13487
+ def list_agent_instance_configs(
13488
+ self,
13489
+ request: sls_20201230_models.ListAgentInstanceConfigsRequest,
13490
+ ) -> sls_20201230_models.ListAgentInstanceConfigsResponse:
13491
+ """
13492
+ @summary ListAgentInstanceConfigs
13493
+
13494
+ @param request: ListAgentInstanceConfigsRequest
13495
+ @return: ListAgentInstanceConfigsResponse
13496
+ """
13497
+ runtime = util_models.RuntimeOptions()
13498
+ headers = {}
13499
+ return self.list_agent_instance_configs_with_options(request, headers, runtime)
13500
+
13501
+ async def list_agent_instance_configs_async(
13502
+ self,
13503
+ request: sls_20201230_models.ListAgentInstanceConfigsRequest,
13504
+ ) -> sls_20201230_models.ListAgentInstanceConfigsResponse:
13505
+ """
13506
+ @summary ListAgentInstanceConfigs
13507
+
13508
+ @param request: ListAgentInstanceConfigsRequest
13509
+ @return: ListAgentInstanceConfigsResponse
13510
+ """
13511
+ runtime = util_models.RuntimeOptions()
13512
+ headers = {}
13513
+ return await self.list_agent_instance_configs_with_options_async(request, headers, runtime)
13514
+
13515
+ def list_ai_tools_with_options(
13516
+ self,
13517
+ headers: Dict[str, str],
13518
+ runtime: util_models.RuntimeOptions,
13519
+ ) -> sls_20201230_models.ListAiToolsResponse:
13520
+ """
13521
+ @summary 获取 ai 工具列表
13522
+
13523
+ @param headers: map
13524
+ @param runtime: runtime options for this request RuntimeOptions
13525
+ @return: ListAiToolsResponse
13526
+ """
13527
+ req = open_api_models.OpenApiRequest(
13528
+ headers=headers
13529
+ )
13530
+ params = open_api_models.Params(
13531
+ action='ListAiTools',
13532
+ version='2020-12-30',
13533
+ protocol='HTTPS',
13534
+ pathname=f'/ml/tool/list',
13535
+ method='GET',
13536
+ auth_type='AK',
13537
+ style='ROA',
13538
+ req_body_type='json',
13539
+ body_type='array'
13540
+ )
13541
+ return TeaCore.from_map(
13542
+ sls_20201230_models.ListAiToolsResponse(),
13543
+ self.execute(params, req, runtime)
13544
+ )
13545
+
13546
+ async def list_ai_tools_with_options_async(
13547
+ self,
13548
+ headers: Dict[str, str],
13549
+ runtime: util_models.RuntimeOptions,
13550
+ ) -> sls_20201230_models.ListAiToolsResponse:
13551
+ """
13552
+ @summary 获取 ai 工具列表
13553
+
13554
+ @param headers: map
13555
+ @param runtime: runtime options for this request RuntimeOptions
13556
+ @return: ListAiToolsResponse
13557
+ """
13558
+ req = open_api_models.OpenApiRequest(
13559
+ headers=headers
13560
+ )
13561
+ params = open_api_models.Params(
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
+
12256
13597
  def list_alerts_with_options(
12257
13598
  self,
12258
13599
  project: str,
@@ -12712,7 +14053,7 @@ class Client(OpenApiClient):
12712
14053
  """
12713
14054
  @summary Queries a list of log collection policies for cloud services.
12714
14055
 
12715
- @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.
12716
14057
 
12717
14058
  @param request: ListCollectionPoliciesRequest
12718
14059
  @param headers: map
@@ -12764,7 +14105,7 @@ class Client(OpenApiClient):
12764
14105
  """
12765
14106
  @summary Queries a list of log collection policies for cloud services.
12766
14107
 
12767
- @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.
12768
14109
 
12769
14110
  @param request: ListCollectionPoliciesRequest
12770
14111
  @param headers: map
@@ -12814,7 +14155,7 @@ class Client(OpenApiClient):
12814
14155
  """
12815
14156
  @summary Queries a list of log collection policies for cloud services.
12816
14157
 
12817
- @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.
12818
14159
 
12819
14160
  @param request: ListCollectionPoliciesRequest
12820
14161
  @return: ListCollectionPoliciesResponse
@@ -12830,7 +14171,7 @@ class Client(OpenApiClient):
12830
14171
  """
12831
14172
  @summary Queries a list of log collection policies for cloud services.
12832
14173
 
12833
- @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.
12834
14175
 
12835
14176
  @param request: ListCollectionPoliciesRequest
12836
14177
  @return: ListCollectionPoliciesResponse
@@ -13653,46 +14994,172 @@ class Client(OpenApiClient):
13653
14994
  headers = {}
13654
14995
  return await self.list_etls_with_options_async(project, request, headers, runtime)
13655
14996
 
13656
- def list_log_stores_with_options(
14997
+ def list_ingest_processors_with_options(
13657
14998
  self,
13658
14999
  project: str,
13659
- request: sls_20201230_models.ListLogStoresRequest,
15000
+ request: sls_20201230_models.ListIngestProcessorsRequest,
13660
15001
  headers: Dict[str, str],
13661
15002
  runtime: util_models.RuntimeOptions,
13662
- ) -> sls_20201230_models.ListLogStoresResponse:
15003
+ ) -> sls_20201230_models.ListIngestProcessorsResponse:
13663
15004
  """
13664
- @summary Queries all Logstores or Logstores that match specific conditions in a project.
13665
-
13666
- @description ### Usage notes
13667
- Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
13668
- An AccessKey pair is created and obtained. For more information, see [AccessKey pair](https://help.aliyun.com/document_detail/29009.html).
13669
- The AccessKey pair of an Alibaba Cloud account has permissions on all API operations. Using these credentials to perform operations in Simple Log Service is a high-risk operation. We recommend that you use a RAM user to call API operations or perform routine O&M. To create a RAM user, log on to the RAM console. Make sure that the RAM user has the management permissions on Simple Log Service resources. For more information, see [Create a RAM user and authorize the RAM user to access Simple Log Service](https://help.aliyun.com/document_detail/47664.html).
13670
- 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).
13671
- ### Authentication resources
13672
- 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.
13673
- |Action|Resource|
13674
- |:---|:---|
13675
- |`log:ListLogStores`|`acs:log:{#regionId}:{#accountId}:project/{#ProjectName}/logstore/`|
15005
+ @summary Queries a list of ingest processors that meet specific conditions.
13676
15006
 
13677
- @param request: ListLogStoresRequest
15007
+ @param request: ListIngestProcessorsRequest
13678
15008
  @param headers: map
13679
15009
  @param runtime: runtime options for this request RuntimeOptions
13680
- @return: ListLogStoresResponse
15010
+ @return: ListIngestProcessorsResponse
13681
15011
  """
13682
15012
  UtilClient.validate_model(request)
13683
15013
  host_map = {}
13684
15014
  host_map['project'] = project
13685
15015
  query = {}
13686
- if not UtilClient.is_unset(request.logstore_name):
13687
- query['logstoreName'] = request.logstore_name
13688
- if not UtilClient.is_unset(request.mode):
13689
- query['mode'] = request.mode
15016
+ if not UtilClient.is_unset(request.display_name):
15017
+ query['displayName'] = request.display_name
13690
15018
  if not UtilClient.is_unset(request.offset):
13691
15019
  query['offset'] = request.offset
15020
+ if not UtilClient.is_unset(request.processor_name):
15021
+ query['processorName'] = request.processor_name
13692
15022
  if not UtilClient.is_unset(request.size):
13693
15023
  query['size'] = request.size
13694
- if not UtilClient.is_unset(request.telemetry_type):
13695
- query['telemetryType'] = request.telemetry_type
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
+
15123
+ def list_log_stores_with_options(
15124
+ self,
15125
+ project: str,
15126
+ request: sls_20201230_models.ListLogStoresRequest,
15127
+ headers: Dict[str, str],
15128
+ runtime: util_models.RuntimeOptions,
15129
+ ) -> sls_20201230_models.ListLogStoresResponse:
15130
+ """
15131
+ @summary Queries all Logstores or Logstores that match specific conditions in a project.
15132
+
15133
+ @description ### Usage notes
15134
+ Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
15135
+ An AccessKey pair is created and obtained. For more information, see [AccessKey pair](https://help.aliyun.com/document_detail/29009.html).
15136
+ The AccessKey pair of an Alibaba Cloud account has permissions on all API operations. Using these credentials to perform operations in Simple Log Service is a high-risk operation. We recommend that you use a RAM user to call API operations or perform routine O&M. To create a RAM user, log on to the RAM console. Make sure that the RAM user has the management permissions on Simple Log Service resources. For more information, see [Create a RAM user and authorize the RAM user to access Simple Log Service](https://help.aliyun.com/document_detail/47664.html).
15137
+ 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).
15138
+ ### Authentication resources
15139
+ 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.
15140
+ |Action|Resource|
15141
+ |:---|:---|
15142
+ |`log:ListLogStores`|`acs:log:{#regionId}:{#accountId}:project/{#ProjectName}/logstore/`|
15143
+
15144
+ @param request: ListLogStoresRequest
15145
+ @param headers: map
15146
+ @param runtime: runtime options for this request RuntimeOptions
15147
+ @return: ListLogStoresResponse
15148
+ """
15149
+ UtilClient.validate_model(request)
15150
+ host_map = {}
15151
+ host_map['project'] = project
15152
+ query = {}
15153
+ if not UtilClient.is_unset(request.logstore_name):
15154
+ query['logstoreName'] = request.logstore_name
15155
+ if not UtilClient.is_unset(request.mode):
15156
+ query['mode'] = request.mode
15157
+ if not UtilClient.is_unset(request.offset):
15158
+ query['offset'] = request.offset
15159
+ if not UtilClient.is_unset(request.size):
15160
+ query['size'] = request.size
15161
+ if not UtilClient.is_unset(request.telemetry_type):
15162
+ query['telemetryType'] = request.telemetry_type
13696
15163
  req = open_api_models.OpenApiRequest(
13697
15164
  host_map=host_map,
13698
15165
  headers=headers,
@@ -14221,6 +15688,148 @@ class Client(OpenApiClient):
14221
15688
  headers = {}
14222
15689
  return await self.list_machines_with_options_async(project, machine_group, request, headers, runtime)
14223
15690
 
15691
+ def list_max_compute_exports_with_options(
15692
+ self,
15693
+ project: str,
15694
+ request: sls_20201230_models.ListMaxComputeExportsRequest,
15695
+ headers: Dict[str, str],
15696
+ runtime: util_models.RuntimeOptions,
15697
+ ) -> sls_20201230_models.ListMaxComputeExportsResponse:
15698
+ """
15699
+ @summary Queries a list of MaxCompute data shipping jobs.
15700
+
15701
+ @description Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
15702
+ An AccessKey pair is created and obtained. For more information, see [AccessKey pair](https://help.aliyun.com/document_detail/29009.html).
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).
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)
15705
+
15706
+ @param request: ListMaxComputeExportsRequest
15707
+ @param headers: map
15708
+ @param runtime: runtime options for this request RuntimeOptions
15709
+ @return: ListMaxComputeExportsResponse
15710
+ """
15711
+ UtilClient.validate_model(request)
15712
+ host_map = {}
15713
+ host_map['project'] = project
15714
+ query = {}
15715
+ if not UtilClient.is_unset(request.logstore):
15716
+ query['logstore'] = request.logstore
15717
+ if not UtilClient.is_unset(request.offset):
15718
+ query['offset'] = request.offset
15719
+ if not UtilClient.is_unset(request.size):
15720
+ query['size'] = request.size
15721
+ req = open_api_models.OpenApiRequest(
15722
+ host_map=host_map,
15723
+ headers=headers,
15724
+ query=OpenApiUtilClient.query(query)
15725
+ )
15726
+ params = open_api_models.Params(
15727
+ action='ListMaxComputeExports',
15728
+ version='2020-12-30',
15729
+ protocol='HTTPS',
15730
+ pathname=f'/maxcomputeexports',
15731
+ method='GET',
15732
+ auth_type='AK',
15733
+ style='ROA',
15734
+ req_body_type='json',
15735
+ body_type='json'
15736
+ )
15737
+ return TeaCore.from_map(
15738
+ sls_20201230_models.ListMaxComputeExportsResponse(),
15739
+ self.execute(params, req, runtime)
15740
+ )
15741
+
15742
+ async def list_max_compute_exports_with_options_async(
15743
+ self,
15744
+ project: str,
15745
+ request: sls_20201230_models.ListMaxComputeExportsRequest,
15746
+ headers: Dict[str, str],
15747
+ runtime: util_models.RuntimeOptions,
15748
+ ) -> sls_20201230_models.ListMaxComputeExportsResponse:
15749
+ """
15750
+ @summary Queries a list of MaxCompute data shipping jobs.
15751
+
15752
+ @description Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
15753
+ An AccessKey pair is created and obtained. For more information, see [AccessKey pair](https://help.aliyun.com/document_detail/29009.html).
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).
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)
15756
+
15757
+ @param request: ListMaxComputeExportsRequest
15758
+ @param headers: map
15759
+ @param runtime: runtime options for this request RuntimeOptions
15760
+ @return: ListMaxComputeExportsResponse
15761
+ """
15762
+ UtilClient.validate_model(request)
15763
+ host_map = {}
15764
+ host_map['project'] = project
15765
+ query = {}
15766
+ if not UtilClient.is_unset(request.logstore):
15767
+ query['logstore'] = request.logstore
15768
+ if not UtilClient.is_unset(request.offset):
15769
+ query['offset'] = request.offset
15770
+ if not UtilClient.is_unset(request.size):
15771
+ query['size'] = request.size
15772
+ req = open_api_models.OpenApiRequest(
15773
+ host_map=host_map,
15774
+ headers=headers,
15775
+ query=OpenApiUtilClient.query(query)
15776
+ )
15777
+ params = open_api_models.Params(
15778
+ action='ListMaxComputeExports',
15779
+ version='2020-12-30',
15780
+ protocol='HTTPS',
15781
+ pathname=f'/maxcomputeexports',
15782
+ method='GET',
15783
+ auth_type='AK',
15784
+ style='ROA',
15785
+ req_body_type='json',
15786
+ body_type='json'
15787
+ )
15788
+ return TeaCore.from_map(
15789
+ sls_20201230_models.ListMaxComputeExportsResponse(),
15790
+ await self.execute_async(params, req, runtime)
15791
+ )
15792
+
15793
+ def list_max_compute_exports(
15794
+ self,
15795
+ project: str,
15796
+ request: sls_20201230_models.ListMaxComputeExportsRequest,
15797
+ ) -> sls_20201230_models.ListMaxComputeExportsResponse:
15798
+ """
15799
+ @summary Queries a list of MaxCompute data shipping jobs.
15800
+
15801
+ @description Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
15802
+ An AccessKey pair is created and obtained. For more information, see [AccessKey pair](https://help.aliyun.com/document_detail/29009.html).
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).
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)
15805
+
15806
+ @param request: ListMaxComputeExportsRequest
15807
+ @return: ListMaxComputeExportsResponse
15808
+ """
15809
+ runtime = util_models.RuntimeOptions()
15810
+ headers = {}
15811
+ return self.list_max_compute_exports_with_options(project, request, headers, runtime)
15812
+
15813
+ async def list_max_compute_exports_async(
15814
+ self,
15815
+ project: str,
15816
+ request: sls_20201230_models.ListMaxComputeExportsRequest,
15817
+ ) -> sls_20201230_models.ListMaxComputeExportsResponse:
15818
+ """
15819
+ @summary Queries a list of MaxCompute data shipping jobs.
15820
+
15821
+ @description Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
15822
+ An AccessKey pair is created and obtained. For more information, see [AccessKey pair](https://help.aliyun.com/document_detail/29009.html).
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).
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)
15825
+
15826
+ @param request: ListMaxComputeExportsRequest
15827
+ @return: ListMaxComputeExportsResponse
15828
+ """
15829
+ runtime = util_models.RuntimeOptions()
15830
+ headers = {}
15831
+ return await self.list_max_compute_exports_with_options_async(project, request, headers, runtime)
15832
+
14224
15833
  def list_metric_stores_with_options(
14225
15834
  self,
14226
15835
  project: str,
@@ -15625,7 +17234,7 @@ class Client(OpenApiClient):
15625
17234
  runtime: util_models.RuntimeOptions,
15626
17235
  ) -> sls_20201230_models.OpenSlsServiceResponse:
15627
17236
  """
15628
- @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.
15629
17238
 
15630
17239
  @param headers: map
15631
17240
  @param runtime: runtime options for this request RuntimeOptions
@@ -15656,7 +17265,7 @@ class Client(OpenApiClient):
15656
17265
  runtime: util_models.RuntimeOptions,
15657
17266
  ) -> sls_20201230_models.OpenSlsServiceResponse:
15658
17267
  """
15659
- @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.
15660
17269
 
15661
17270
  @param headers: map
15662
17271
  @param runtime: runtime options for this request RuntimeOptions
@@ -15683,7 +17292,7 @@ class Client(OpenApiClient):
15683
17292
 
15684
17293
  def open_sls_service(self) -> sls_20201230_models.OpenSlsServiceResponse:
15685
17294
  """
15686
- @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.
15687
17296
 
15688
17297
  @return: OpenSlsServiceResponse
15689
17298
  """
@@ -15693,7 +17302,7 @@ class Client(OpenApiClient):
15693
17302
 
15694
17303
  async def open_sls_service_async(self) -> sls_20201230_models.OpenSlsServiceResponse:
15695
17304
  """
15696
- @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.
15697
17306
 
15698
17307
  @return: OpenSlsServiceResponse
15699
17308
  """
@@ -15713,7 +17322,11 @@ class Client(OpenApiClient):
15713
17322
  """
15714
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.
15715
17324
 
15716
- @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.
15717
17330
 
15718
17331
  @param request: PullLogsRequest
15719
17332
  @param headers: PullLogsHeaders
@@ -15767,7 +17380,11 @@ class Client(OpenApiClient):
15767
17380
  """
15768
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.
15769
17382
 
15770
- @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.
15771
17388
 
15772
17389
  @param request: PullLogsRequest
15773
17390
  @param headers: PullLogsHeaders
@@ -15819,7 +17436,11 @@ class Client(OpenApiClient):
15819
17436
  """
15820
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.
15821
17438
 
15822
- @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.
15823
17444
 
15824
17445
  @param request: PullLogsRequest
15825
17446
  @return: PullLogsResponse
@@ -15838,7 +17459,11 @@ class Client(OpenApiClient):
15838
17459
  """
15839
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.
15840
17461
 
15841
- @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.
15842
17467
 
15843
17468
  @param request: PullLogsRequest
15844
17469
  @return: PullLogsResponse
@@ -15967,46 +17592,180 @@ class Client(OpenApiClient):
15967
17592
  headers = {}
15968
17593
  return await self.put_annotation_data_with_options_async(dataset_id, request, headers, runtime)
15969
17594
 
15970
- def put_logs_with_options(
17595
+ def put_ingest_processor_with_options(
15971
17596
  self,
15972
17597
  project: str,
15973
- logstore: str,
15974
- request: sls_20201230_models.PutLogsRequest,
15975
- headers: sls_20201230_models.PutLogsHeaders,
17598
+ processor_name: str,
17599
+ request: sls_20201230_models.PutIngestProcessorRequest,
17600
+ headers: Dict[str, str],
15976
17601
  runtime: util_models.RuntimeOptions,
15977
- ) -> sls_20201230_models.PutLogsResponse:
17602
+ ) -> sls_20201230_models.PutIngestProcessorResponse:
15978
17603
  """
15979
- @summary Sends logs to Simple Log Service.
17604
+ @summary Creates or modifies an ingest processor.
15980
17605
 
15981
- @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).
15982
-
15983
- @param request: PutLogsRequest
15984
- @param headers: PutLogsHeaders
17606
+ @param request: PutIngestProcessorRequest
17607
+ @param headers: map
15985
17608
  @param runtime: runtime options for this request RuntimeOptions
15986
- @return: PutLogsResponse
17609
+ @return: PutIngestProcessorResponse
15987
17610
  """
15988
17611
  UtilClient.validate_model(request)
15989
17612
  host_map = {}
15990
17613
  host_map['project'] = project
15991
- real_headers = {}
15992
- if not UtilClient.is_unset(headers.common_headers):
15993
- real_headers = headers.common_headers
15994
- if not UtilClient.is_unset(headers.x_log_compresstype):
15995
- real_headers['x-log-compresstype'] = UtilClient.to_jsonstring(headers.x_log_compresstype)
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
15996
17621
  req = open_api_models.OpenApiRequest(
15997
17622
  host_map=host_map,
15998
- headers=real_headers,
15999
- body=OpenApiUtilClient.parse_to_map(request.body)
17623
+ headers=headers,
17624
+ body=OpenApiUtilClient.parse_to_map(body)
16000
17625
  )
16001
17626
  params = open_api_models.Params(
16002
- action='PutLogs',
17627
+ action='PutIngestProcessor',
16003
17628
  version='2020-12-30',
16004
17629
  protocol='HTTPS',
16005
- pathname=f'/logstores/{logstore}/shards/lb',
16006
- method='POST',
17630
+ pathname=f'/ingestprocessors/{processor_name}',
17631
+ method='PUT',
16007
17632
  auth_type='AK',
16008
17633
  style='ROA',
16009
- req_body_type='protobuf',
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
+
17721
+ def put_logs_with_options(
17722
+ self,
17723
+ project: str,
17724
+ logstore: str,
17725
+ request: sls_20201230_models.PutLogsRequest,
17726
+ headers: sls_20201230_models.PutLogsHeaders,
17727
+ runtime: util_models.RuntimeOptions,
17728
+ ) -> sls_20201230_models.PutLogsResponse:
17729
+ """
17730
+ @summary Writes logs to a Logstore.
17731
+
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).
17741
+
17742
+ @param request: PutLogsRequest
17743
+ @param headers: PutLogsHeaders
17744
+ @param runtime: runtime options for this request RuntimeOptions
17745
+ @return: PutLogsResponse
17746
+ """
17747
+ UtilClient.validate_model(request)
17748
+ host_map = {}
17749
+ host_map['project'] = project
17750
+ real_headers = {}
17751
+ if not UtilClient.is_unset(headers.common_headers):
17752
+ real_headers = headers.common_headers
17753
+ if not UtilClient.is_unset(headers.x_log_compresstype):
17754
+ real_headers['x-log-compresstype'] = UtilClient.to_jsonstring(headers.x_log_compresstype)
17755
+ req = open_api_models.OpenApiRequest(
17756
+ host_map=host_map,
17757
+ headers=real_headers,
17758
+ body=OpenApiUtilClient.parse_to_map(request.body)
17759
+ )
17760
+ params = open_api_models.Params(
17761
+ action='PutLogs',
17762
+ version='2020-12-30',
17763
+ protocol='HTTPS',
17764
+ pathname=f'/logstores/{logstore}/shards/lb',
17765
+ method='POST',
17766
+ auth_type='AK',
17767
+ style='ROA',
17768
+ req_body_type='protobuf',
16010
17769
  body_type='none'
16011
17770
  )
16012
17771
  return TeaCore.from_map(
@@ -16023,9 +17782,17 @@ class Client(OpenApiClient):
16023
17782
  runtime: util_models.RuntimeOptions,
16024
17783
  ) -> sls_20201230_models.PutLogsResponse:
16025
17784
  """
16026
- @summary Sends logs to Simple Log Service.
17785
+ @summary Writes logs to a Logstore.
16027
17786
 
16028
- @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).
16029
17796
 
16030
17797
  @param request: PutLogsRequest
16031
17798
  @param headers: PutLogsHeaders
@@ -16068,9 +17835,17 @@ class Client(OpenApiClient):
16068
17835
  request: sls_20201230_models.PutLogsRequest,
16069
17836
  ) -> sls_20201230_models.PutLogsResponse:
16070
17837
  """
16071
- @summary Sends logs to Simple Log Service.
17838
+ @summary Writes logs to a Logstore.
16072
17839
 
16073
- @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).
16074
17849
 
16075
17850
  @param request: PutLogsRequest
16076
17851
  @return: PutLogsResponse
@@ -16086,9 +17861,17 @@ class Client(OpenApiClient):
16086
17861
  request: sls_20201230_models.PutLogsRequest,
16087
17862
  ) -> sls_20201230_models.PutLogsResponse:
16088
17863
  """
16089
- @summary Sends logs to Simple Log Service.
17864
+ @summary Writes logs to a Logstore.
16090
17865
 
16091
- @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).
16092
17875
 
16093
17876
  @param request: PutLogsRequest
16094
17877
  @return: PutLogsResponse
@@ -16975,6 +18758,126 @@ class Client(OpenApiClient):
16975
18758
  headers = {}
16976
18759
  return await self.start_etlwith_options_async(project, etl_name, headers, runtime)
16977
18760
 
18761
+ def start_max_compute_export_with_options(
18762
+ self,
18763
+ project: str,
18764
+ mc_export_name: str,
18765
+ headers: Dict[str, str],
18766
+ runtime: util_models.RuntimeOptions,
18767
+ ) -> sls_20201230_models.StartMaxComputeExportResponse:
18768
+ """
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).
18775
+
18776
+ @param headers: map
18777
+ @param runtime: runtime options for this request RuntimeOptions
18778
+ @return: StartMaxComputeExportResponse
18779
+ """
18780
+ host_map = {}
18781
+ host_map['project'] = project
18782
+ req = open_api_models.OpenApiRequest(
18783
+ host_map=host_map,
18784
+ headers=headers
18785
+ )
18786
+ params = open_api_models.Params(
18787
+ action='StartMaxComputeExport',
18788
+ version='2020-12-30',
18789
+ protocol='HTTPS',
18790
+ pathname=f'/maxcomputeexports/{mc_export_name}?action=START',
18791
+ method='PUT',
18792
+ auth_type='AK',
18793
+ style='ROA',
18794
+ req_body_type='json',
18795
+ body_type='none'
18796
+ )
18797
+ return TeaCore.from_map(
18798
+ sls_20201230_models.StartMaxComputeExportResponse(),
18799
+ self.execute(params, req, runtime)
18800
+ )
18801
+
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
+
16978
18881
  def start_ossexport_with_options(
16979
18882
  self,
16980
18883
  project: str,
@@ -17375,19 +19278,24 @@ class Client(OpenApiClient):
17375
19278
  headers = {}
17376
19279
  return await self.stop_etlwith_options_async(project, etl_name, headers, runtime)
17377
19280
 
17378
- def stop_ossexport_with_options(
19281
+ def stop_max_compute_export_with_options(
17379
19282
  self,
17380
19283
  project: str,
17381
- oss_export_name: str,
19284
+ mc_export_name: str,
17382
19285
  headers: Dict[str, str],
17383
19286
  runtime: util_models.RuntimeOptions,
17384
- ) -> sls_20201230_models.StopOSSExportResponse:
19287
+ ) -> sls_20201230_models.StopMaxComputeExportResponse:
17385
19288
  """
17386
- @summary 停止OSS投递任务
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)
17387
19295
 
17388
19296
  @param headers: map
17389
19297
  @param runtime: runtime options for this request RuntimeOptions
17390
- @return: StopOSSExportResponse
19298
+ @return: StopMaxComputeExportResponse
17391
19299
  """
17392
19300
  host_map = {}
17393
19301
  host_map['project'] = project
@@ -17396,10 +19304,10 @@ class Client(OpenApiClient):
17396
19304
  headers=headers
17397
19305
  )
17398
19306
  params = open_api_models.Params(
17399
- action='StopOSSExport',
19307
+ action='StopMaxComputeExport',
17400
19308
  version='2020-12-30',
17401
19309
  protocol='HTTPS',
17402
- pathname=f'/ossexports/{oss_export_name}?action=STOP',
19310
+ pathname=f'/maxcomputeexports/{mc_export_name}?action=STOP',
17403
19311
  method='PUT',
17404
19312
  auth_type='AK',
17405
19313
  style='ROA',
@@ -17407,23 +19315,28 @@ class Client(OpenApiClient):
17407
19315
  body_type='none'
17408
19316
  )
17409
19317
  return TeaCore.from_map(
17410
- sls_20201230_models.StopOSSExportResponse(),
19318
+ sls_20201230_models.StopMaxComputeExportResponse(),
17411
19319
  self.execute(params, req, runtime)
17412
19320
  )
17413
19321
 
17414
- async def stop_ossexport_with_options_async(
19322
+ async def stop_max_compute_export_with_options_async(
17415
19323
  self,
17416
19324
  project: str,
17417
- oss_export_name: str,
19325
+ mc_export_name: str,
17418
19326
  headers: Dict[str, str],
17419
19327
  runtime: util_models.RuntimeOptions,
17420
- ) -> sls_20201230_models.StopOSSExportResponse:
19328
+ ) -> sls_20201230_models.StopMaxComputeExportResponse:
17421
19329
  """
17422
- @summary 停止OSS投递任务
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)
17423
19336
 
17424
19337
  @param headers: map
17425
19338
  @param runtime: runtime options for this request RuntimeOptions
17426
- @return: StopOSSExportResponse
19339
+ @return: StopMaxComputeExportResponse
17427
19340
  """
17428
19341
  host_map = {}
17429
19342
  host_map['project'] = project
@@ -17432,10 +19345,10 @@ class Client(OpenApiClient):
17432
19345
  headers=headers
17433
19346
  )
17434
19347
  params = open_api_models.Params(
17435
- action='StopOSSExport',
19348
+ action='StopMaxComputeExport',
17436
19349
  version='2020-12-30',
17437
19350
  protocol='HTTPS',
17438
- pathname=f'/ossexports/{oss_export_name}?action=STOP',
19351
+ pathname=f'/maxcomputeexports/{mc_export_name}?action=STOP',
17439
19352
  method='PUT',
17440
19353
  auth_type='AK',
17441
19354
  style='ROA',
@@ -17443,51 +19356,61 @@ class Client(OpenApiClient):
17443
19356
  body_type='none'
17444
19357
  )
17445
19358
  return TeaCore.from_map(
17446
- sls_20201230_models.StopOSSExportResponse(),
19359
+ sls_20201230_models.StopMaxComputeExportResponse(),
17447
19360
  await self.execute_async(params, req, runtime)
17448
19361
  )
17449
19362
 
17450
- def stop_ossexport(
19363
+ def stop_max_compute_export(
17451
19364
  self,
17452
19365
  project: str,
17453
- oss_export_name: str,
17454
- ) -> sls_20201230_models.StopOSSExportResponse:
19366
+ mc_export_name: str,
19367
+ ) -> sls_20201230_models.StopMaxComputeExportResponse:
17455
19368
  """
17456
- @summary 停止OSS投递任务
19369
+ @summary Stops a MaxCompute data shipping job.
17457
19370
 
17458
- @return: StopOSSExportResponse
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
17459
19377
  """
17460
19378
  runtime = util_models.RuntimeOptions()
17461
19379
  headers = {}
17462
- return self.stop_ossexport_with_options(project, oss_export_name, headers, runtime)
19380
+ return self.stop_max_compute_export_with_options(project, mc_export_name, headers, runtime)
17463
19381
 
17464
- async def stop_ossexport_async(
19382
+ async def stop_max_compute_export_async(
17465
19383
  self,
17466
19384
  project: str,
17467
- oss_export_name: str,
17468
- ) -> sls_20201230_models.StopOSSExportResponse:
19385
+ mc_export_name: str,
19386
+ ) -> sls_20201230_models.StopMaxComputeExportResponse:
17469
19387
  """
17470
- @summary 停止OSS投递任务
19388
+ @summary Stops a MaxCompute data shipping job.
17471
19389
 
17472
- @return: StopOSSExportResponse
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
17473
19396
  """
17474
19397
  runtime = util_models.RuntimeOptions()
17475
19398
  headers = {}
17476
- return await self.stop_ossexport_with_options_async(project, oss_export_name, headers, runtime)
19399
+ return await self.stop_max_compute_export_with_options_async(project, mc_export_name, headers, runtime)
17477
19400
 
17478
- def stop_osshdfsexport_with_options(
19401
+ def stop_ossexport_with_options(
17479
19402
  self,
17480
19403
  project: str,
17481
19404
  oss_export_name: str,
17482
19405
  headers: Dict[str, str],
17483
19406
  runtime: util_models.RuntimeOptions,
17484
- ) -> sls_20201230_models.StopOSSHDFSExportResponse:
19407
+ ) -> sls_20201230_models.StopOSSExportResponse:
17485
19408
  """
17486
- @summary 停止OSSHDFS投递任务
19409
+ @summary 停止OSS投递任务
17487
19410
 
17488
19411
  @param headers: map
17489
19412
  @param runtime: runtime options for this request RuntimeOptions
17490
- @return: StopOSSHDFSExportResponse
19413
+ @return: StopOSSExportResponse
17491
19414
  """
17492
19415
  host_map = {}
17493
19416
  host_map['project'] = project
@@ -17496,10 +19419,10 @@ class Client(OpenApiClient):
17496
19419
  headers=headers
17497
19420
  )
17498
19421
  params = open_api_models.Params(
17499
- action='StopOSSHDFSExport',
19422
+ action='StopOSSExport',
17500
19423
  version='2020-12-30',
17501
19424
  protocol='HTTPS',
17502
- pathname=f'/osshdfsexports/{oss_export_name}?action=STOP',
19425
+ pathname=f'/ossexports/{oss_export_name}?action=STOP',
17503
19426
  method='PUT',
17504
19427
  auth_type='AK',
17505
19428
  style='ROA',
@@ -17507,17 +19430,117 @@ class Client(OpenApiClient):
17507
19430
  body_type='none'
17508
19431
  )
17509
19432
  return TeaCore.from_map(
17510
- sls_20201230_models.StopOSSHDFSExportResponse(),
19433
+ sls_20201230_models.StopOSSExportResponse(),
17511
19434
  self.execute(params, req, runtime)
17512
19435
  )
17513
19436
 
17514
- async def stop_osshdfsexport_with_options_async(
19437
+ async def stop_ossexport_with_options_async(
17515
19438
  self,
17516
19439
  project: str,
17517
19440
  oss_export_name: str,
17518
19441
  headers: Dict[str, str],
17519
19442
  runtime: util_models.RuntimeOptions,
17520
- ) -> sls_20201230_models.StopOSSHDFSExportResponse:
19443
+ ) -> sls_20201230_models.StopOSSExportResponse:
19444
+ """
19445
+ @summary 停止OSS投递任务
19446
+
19447
+ @param headers: map
19448
+ @param runtime: runtime options for this request RuntimeOptions
19449
+ @return: StopOSSExportResponse
19450
+ """
19451
+ host_map = {}
19452
+ host_map['project'] = project
19453
+ req = open_api_models.OpenApiRequest(
19454
+ host_map=host_map,
19455
+ headers=headers
19456
+ )
19457
+ params = open_api_models.Params(
19458
+ action='StopOSSExport',
19459
+ version='2020-12-30',
19460
+ protocol='HTTPS',
19461
+ pathname=f'/ossexports/{oss_export_name}?action=STOP',
19462
+ method='PUT',
19463
+ auth_type='AK',
19464
+ style='ROA',
19465
+ req_body_type='json',
19466
+ body_type='none'
19467
+ )
19468
+ return TeaCore.from_map(
19469
+ sls_20201230_models.StopOSSExportResponse(),
19470
+ await self.execute_async(params, req, runtime)
19471
+ )
19472
+
19473
+ def stop_ossexport(
19474
+ self,
19475
+ project: str,
19476
+ oss_export_name: str,
19477
+ ) -> sls_20201230_models.StopOSSExportResponse:
19478
+ """
19479
+ @summary 停止OSS投递任务
19480
+
19481
+ @return: StopOSSExportResponse
19482
+ """
19483
+ runtime = util_models.RuntimeOptions()
19484
+ headers = {}
19485
+ return self.stop_ossexport_with_options(project, oss_export_name, headers, runtime)
19486
+
19487
+ async def stop_ossexport_async(
19488
+ self,
19489
+ project: str,
19490
+ oss_export_name: str,
19491
+ ) -> sls_20201230_models.StopOSSExportResponse:
19492
+ """
19493
+ @summary 停止OSS投递任务
19494
+
19495
+ @return: StopOSSExportResponse
19496
+ """
19497
+ runtime = util_models.RuntimeOptions()
19498
+ headers = {}
19499
+ return await self.stop_ossexport_with_options_async(project, oss_export_name, headers, runtime)
19500
+
19501
+ def stop_osshdfsexport_with_options(
19502
+ self,
19503
+ project: str,
19504
+ oss_export_name: str,
19505
+ headers: Dict[str, str],
19506
+ runtime: util_models.RuntimeOptions,
19507
+ ) -> sls_20201230_models.StopOSSHDFSExportResponse:
19508
+ """
19509
+ @summary 停止OSSHDFS投递任务
19510
+
19511
+ @param headers: map
19512
+ @param runtime: runtime options for this request RuntimeOptions
19513
+ @return: StopOSSHDFSExportResponse
19514
+ """
19515
+ host_map = {}
19516
+ host_map['project'] = project
19517
+ req = open_api_models.OpenApiRequest(
19518
+ host_map=host_map,
19519
+ headers=headers
19520
+ )
19521
+ params = open_api_models.Params(
19522
+ action='StopOSSHDFSExport',
19523
+ version='2020-12-30',
19524
+ protocol='HTTPS',
19525
+ pathname=f'/osshdfsexports/{oss_export_name}?action=STOP',
19526
+ method='PUT',
19527
+ auth_type='AK',
19528
+ style='ROA',
19529
+ req_body_type='json',
19530
+ body_type='none'
19531
+ )
19532
+ return TeaCore.from_map(
19533
+ sls_20201230_models.StopOSSHDFSExportResponse(),
19534
+ self.execute(params, req, runtime)
19535
+ )
19536
+
19537
+ async def stop_osshdfsexport_with_options_async(
19538
+ self,
19539
+ project: str,
19540
+ oss_export_name: str,
19541
+ headers: Dict[str, str],
19542
+ runtime: util_models.RuntimeOptions,
19543
+ ) -> sls_20201230_models.StopOSSHDFSExportResponse:
17521
19544
  """
17522
19545
  @summary 停止OSSHDFS投递任务
17523
19546
 
@@ -17995,6 +20018,122 @@ class Client(OpenApiClient):
17995
20018
  headers = {}
17996
20019
  return await self.untag_resources_with_options_async(request, headers, runtime)
17997
20020
 
20021
+ def update_agent_instance_config_with_options(
20022
+ self,
20023
+ config_name: str,
20024
+ request: sls_20201230_models.UpdateAgentInstanceConfigRequest,
20025
+ headers: Dict[str, str],
20026
+ runtime: util_models.RuntimeOptions,
20027
+ ) -> sls_20201230_models.UpdateAgentInstanceConfigResponse:
20028
+ """
20029
+ @summary UpdateAgentInstanceConfig
20030
+
20031
+ @param request: UpdateAgentInstanceConfigRequest
20032
+ @param headers: map
20033
+ @param runtime: runtime options for this request RuntimeOptions
20034
+ @return: UpdateAgentInstanceConfigResponse
20035
+ """
20036
+ UtilClient.validate_model(request)
20037
+ body = {}
20038
+ if not UtilClient.is_unset(request.config):
20039
+ body['config'] = request.config
20040
+ if not UtilClient.is_unset(request.config_matcher):
20041
+ body['configMatcher'] = request.config_matcher
20042
+ if not UtilClient.is_unset(request.is_gray):
20043
+ body['isGray'] = request.is_gray
20044
+ req = open_api_models.OpenApiRequest(
20045
+ headers=headers,
20046
+ body=OpenApiUtilClient.parse_to_map(body)
20047
+ )
20048
+ params = open_api_models.Params(
20049
+ action='UpdateAgentInstanceConfig',
20050
+ version='2020-12-30',
20051
+ protocol='HTTPS',
20052
+ pathname=f'/agentinstanceconfigs/{config_name}',
20053
+ method='PUT',
20054
+ auth_type='AK',
20055
+ style='ROA',
20056
+ req_body_type='json',
20057
+ body_type='none'
20058
+ )
20059
+ return TeaCore.from_map(
20060
+ sls_20201230_models.UpdateAgentInstanceConfigResponse(),
20061
+ self.execute(params, req, runtime)
20062
+ )
20063
+
20064
+ async def update_agent_instance_config_with_options_async(
20065
+ self,
20066
+ config_name: str,
20067
+ request: sls_20201230_models.UpdateAgentInstanceConfigRequest,
20068
+ headers: Dict[str, str],
20069
+ runtime: util_models.RuntimeOptions,
20070
+ ) -> sls_20201230_models.UpdateAgentInstanceConfigResponse:
20071
+ """
20072
+ @summary UpdateAgentInstanceConfig
20073
+
20074
+ @param request: UpdateAgentInstanceConfigRequest
20075
+ @param headers: map
20076
+ @param runtime: runtime options for this request RuntimeOptions
20077
+ @return: UpdateAgentInstanceConfigResponse
20078
+ """
20079
+ UtilClient.validate_model(request)
20080
+ body = {}
20081
+ if not UtilClient.is_unset(request.config):
20082
+ body['config'] = request.config
20083
+ if not UtilClient.is_unset(request.config_matcher):
20084
+ body['configMatcher'] = request.config_matcher
20085
+ if not UtilClient.is_unset(request.is_gray):
20086
+ body['isGray'] = request.is_gray
20087
+ req = open_api_models.OpenApiRequest(
20088
+ headers=headers,
20089
+ body=OpenApiUtilClient.parse_to_map(body)
20090
+ )
20091
+ params = open_api_models.Params(
20092
+ action='UpdateAgentInstanceConfig',
20093
+ version='2020-12-30',
20094
+ protocol='HTTPS',
20095
+ pathname=f'/agentinstanceconfigs/{config_name}',
20096
+ method='PUT',
20097
+ auth_type='AK',
20098
+ style='ROA',
20099
+ req_body_type='json',
20100
+ body_type='none'
20101
+ )
20102
+ return TeaCore.from_map(
20103
+ sls_20201230_models.UpdateAgentInstanceConfigResponse(),
20104
+ await self.execute_async(params, req, runtime)
20105
+ )
20106
+
20107
+ def update_agent_instance_config(
20108
+ self,
20109
+ config_name: str,
20110
+ request: sls_20201230_models.UpdateAgentInstanceConfigRequest,
20111
+ ) -> sls_20201230_models.UpdateAgentInstanceConfigResponse:
20112
+ """
20113
+ @summary UpdateAgentInstanceConfig
20114
+
20115
+ @param request: UpdateAgentInstanceConfigRequest
20116
+ @return: UpdateAgentInstanceConfigResponse
20117
+ """
20118
+ runtime = util_models.RuntimeOptions()
20119
+ headers = {}
20120
+ return self.update_agent_instance_config_with_options(config_name, request, headers, runtime)
20121
+
20122
+ async def update_agent_instance_config_async(
20123
+ self,
20124
+ config_name: str,
20125
+ request: sls_20201230_models.UpdateAgentInstanceConfigRequest,
20126
+ ) -> sls_20201230_models.UpdateAgentInstanceConfigResponse:
20127
+ """
20128
+ @summary UpdateAgentInstanceConfig
20129
+
20130
+ @param request: UpdateAgentInstanceConfigRequest
20131
+ @return: UpdateAgentInstanceConfigResponse
20132
+ """
20133
+ runtime = util_models.RuntimeOptions()
20134
+ headers = {}
20135
+ return await self.update_agent_instance_config_with_options_async(config_name, request, headers, runtime)
20136
+
17998
20137
  def update_alert_with_options(
17999
20138
  self,
18000
20139
  project: str,
@@ -19230,7 +21369,17 @@ class Client(OpenApiClient):
19230
21369
  runtime: util_models.RuntimeOptions,
19231
21370
  ) -> sls_20201230_models.UpdateLogStoreEncryptionResponse:
19232
21371
  """
19233
- @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.
19234
21383
 
19235
21384
  @param request: UpdateLogStoreEncryptionRequest
19236
21385
  @param headers: map
@@ -19277,7 +21426,17 @@ class Client(OpenApiClient):
19277
21426
  runtime: util_models.RuntimeOptions,
19278
21427
  ) -> sls_20201230_models.UpdateLogStoreEncryptionResponse:
19279
21428
  """
19280
- @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.
19281
21440
 
19282
21441
  @param request: UpdateLogStoreEncryptionRequest
19283
21442
  @param headers: map
@@ -19322,7 +21481,17 @@ class Client(OpenApiClient):
19322
21481
  request: sls_20201230_models.UpdateLogStoreEncryptionRequest,
19323
21482
  ) -> sls_20201230_models.UpdateLogStoreEncryptionResponse:
19324
21483
  """
19325
- @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.
19326
21495
 
19327
21496
  @param request: UpdateLogStoreEncryptionRequest
19328
21497
  @return: UpdateLogStoreEncryptionResponse
@@ -19338,7 +21507,17 @@ class Client(OpenApiClient):
19338
21507
  request: sls_20201230_models.UpdateLogStoreEncryptionRequest,
19339
21508
  ) -> sls_20201230_models.UpdateLogStoreEncryptionResponse:
19340
21509
  """
19341
- @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.
19342
21521
 
19343
21522
  @param request: UpdateLogStoreEncryptionRequest
19344
21523
  @return: UpdateLogStoreEncryptionResponse
@@ -19465,6 +21644,124 @@ class Client(OpenApiClient):
19465
21644
  headers = {}
19466
21645
  return await self.update_log_store_metering_mode_with_options_async(project, logstore, request, headers, runtime)
19467
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
+
19468
21765
  def update_logging_with_options(
19469
21766
  self,
19470
21767
  project: str,
@@ -20011,6 +22308,152 @@ class Client(OpenApiClient):
20011
22308
  headers = {}
20012
22309
  return await self.update_machine_group_machine_with_options_async(project, machine_group, request, headers, runtime)
20013
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
+
20014
22457
  def update_metric_store_with_options(
20015
22458
  self,
20016
22459
  project: str,
@@ -20042,6 +22485,10 @@ class Client(OpenApiClient):
20042
22485
  body = {}
20043
22486
  if not UtilClient.is_unset(request.auto_split):
20044
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
20045
22492
  if not UtilClient.is_unset(request.max_split_shard):
20046
22493
  body['maxSplitShard'] = request.max_split_shard
20047
22494
  if not UtilClient.is_unset(request.mode):
@@ -20100,6 +22547,10 @@ class Client(OpenApiClient):
20100
22547
  body = {}
20101
22548
  if not UtilClient.is_unset(request.auto_split):
20102
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
20103
22554
  if not UtilClient.is_unset(request.max_split_shard):
20104
22555
  body['maxSplitShard'] = request.max_split_shard
20105
22556
  if not UtilClient.is_unset(request.mode):
@@ -20295,6 +22746,124 @@ class Client(OpenApiClient):
20295
22746
  headers = {}
20296
22747
  return await self.update_metric_store_metering_mode_with_options_async(project, metric_store, request, headers, runtime)
20297
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
+
20298
22867
  def update_ossexport_with_options(
20299
22868
  self,
20300
22869
  project: str,
@@ -20556,7 +23125,7 @@ class Client(OpenApiClient):
20556
23125
  runtime: util_models.RuntimeOptions,
20557
23126
  ) -> sls_20201230_models.UpdateOSSIngestionResponse:
20558
23127
  """
20559
- @summary 更新oss导入任务
23128
+ @summary Updates an Object Storage Service (OSS) data import job.
20560
23129
 
20561
23130
  @param request: UpdateOSSIngestionRequest
20562
23131
  @param headers: map
@@ -20605,7 +23174,7 @@ class Client(OpenApiClient):
20605
23174
  runtime: util_models.RuntimeOptions,
20606
23175
  ) -> sls_20201230_models.UpdateOSSIngestionResponse:
20607
23176
  """
20608
- @summary 更新oss导入任务
23177
+ @summary Updates an Object Storage Service (OSS) data import job.
20609
23178
 
20610
23179
  @param request: UpdateOSSIngestionRequest
20611
23180
  @param headers: map
@@ -20652,7 +23221,7 @@ class Client(OpenApiClient):
20652
23221
  request: sls_20201230_models.UpdateOSSIngestionRequest,
20653
23222
  ) -> sls_20201230_models.UpdateOSSIngestionResponse:
20654
23223
  """
20655
- @summary 更新oss导入任务
23224
+ @summary Updates an Object Storage Service (OSS) data import job.
20656
23225
 
20657
23226
  @param request: UpdateOSSIngestionRequest
20658
23227
  @return: UpdateOSSIngestionResponse
@@ -20668,7 +23237,7 @@ class Client(OpenApiClient):
20668
23237
  request: sls_20201230_models.UpdateOSSIngestionRequest,
20669
23238
  ) -> sls_20201230_models.UpdateOSSIngestionResponse:
20670
23239
  """
20671
- @summary 更新oss导入任务
23240
+ @summary Updates an Object Storage Service (OSS) data import job.
20672
23241
 
20673
23242
  @param request: UpdateOSSIngestionRequest
20674
23243
  @return: UpdateOSSIngestionResponse
@@ -20846,6 +23415,8 @@ class Client(OpenApiClient):
20846
23415
  body = {}
20847
23416
  if not UtilClient.is_unset(request.description):
20848
23417
  body['description'] = request.description
23418
+ if not UtilClient.is_unset(request.recycle_bin_enabled):
23419
+ body['recycleBinEnabled'] = request.recycle_bin_enabled
20849
23420
  req = open_api_models.OpenApiRequest(
20850
23421
  host_map=host_map,
20851
23422
  headers=headers,
@@ -20898,6 +23469,8 @@ class Client(OpenApiClient):
20898
23469
  body = {}
20899
23470
  if not UtilClient.is_unset(request.description):
20900
23471
  body['description'] = request.description
23472
+ if not UtilClient.is_unset(request.recycle_bin_enabled):
23473
+ body['recycleBinEnabled'] = request.recycle_bin_enabled
20901
23474
  req = open_api_models.OpenApiRequest(
20902
23475
  host_map=host_map,
20903
23476
  headers=headers,