alibabacloud-sls20201230 5.8.0__py3-none-any.whl → 5.10.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.
@@ -1160,6 +1160,136 @@ class Client(OpenApiClient):
1160
1160
  headers = {}
1161
1161
  return await self.create_annotation_label_with_options_async(request, headers, runtime)
1162
1162
 
1163
+ def create_azure_blob_ingestion_with_options(
1164
+ self,
1165
+ project: str,
1166
+ request: sls_20201230_models.CreateAzureBlobIngestionRequest,
1167
+ headers: Dict[str, str],
1168
+ runtime: util_models.RuntimeOptions,
1169
+ ) -> sls_20201230_models.CreateAzureBlobIngestionResponse:
1170
+ """
1171
+ @summary 创建Azure blob文件导入任务
1172
+
1173
+ @param request: CreateAzureBlobIngestionRequest
1174
+ @param headers: map
1175
+ @param runtime: runtime options for this request RuntimeOptions
1176
+ @return: CreateAzureBlobIngestionResponse
1177
+ """
1178
+ UtilClient.validate_model(request)
1179
+ host_map = {}
1180
+ host_map['project'] = project
1181
+ body = {}
1182
+ if not UtilClient.is_unset(request.configuration):
1183
+ body['configuration'] = request.configuration
1184
+ if not UtilClient.is_unset(request.description):
1185
+ body['description'] = request.description
1186
+ if not UtilClient.is_unset(request.display_name):
1187
+ body['displayName'] = request.display_name
1188
+ if not UtilClient.is_unset(request.name):
1189
+ body['name'] = request.name
1190
+ if not UtilClient.is_unset(request.schedule):
1191
+ body['schedule'] = request.schedule
1192
+ req = open_api_models.OpenApiRequest(
1193
+ host_map=host_map,
1194
+ headers=headers,
1195
+ body=OpenApiUtilClient.parse_to_map(body)
1196
+ )
1197
+ params = open_api_models.Params(
1198
+ action='CreateAzureBlobIngestion',
1199
+ version='2020-12-30',
1200
+ protocol='HTTPS',
1201
+ pathname=f'/azureblobingestions',
1202
+ method='POST',
1203
+ auth_type='AK',
1204
+ style='ROA',
1205
+ req_body_type='json',
1206
+ body_type='none'
1207
+ )
1208
+ return TeaCore.from_map(
1209
+ sls_20201230_models.CreateAzureBlobIngestionResponse(),
1210
+ self.execute(params, req, runtime)
1211
+ )
1212
+
1213
+ async def create_azure_blob_ingestion_with_options_async(
1214
+ self,
1215
+ project: str,
1216
+ request: sls_20201230_models.CreateAzureBlobIngestionRequest,
1217
+ headers: Dict[str, str],
1218
+ runtime: util_models.RuntimeOptions,
1219
+ ) -> sls_20201230_models.CreateAzureBlobIngestionResponse:
1220
+ """
1221
+ @summary 创建Azure blob文件导入任务
1222
+
1223
+ @param request: CreateAzureBlobIngestionRequest
1224
+ @param headers: map
1225
+ @param runtime: runtime options for this request RuntimeOptions
1226
+ @return: CreateAzureBlobIngestionResponse
1227
+ """
1228
+ UtilClient.validate_model(request)
1229
+ host_map = {}
1230
+ host_map['project'] = project
1231
+ body = {}
1232
+ if not UtilClient.is_unset(request.configuration):
1233
+ body['configuration'] = request.configuration
1234
+ if not UtilClient.is_unset(request.description):
1235
+ body['description'] = request.description
1236
+ if not UtilClient.is_unset(request.display_name):
1237
+ body['displayName'] = request.display_name
1238
+ if not UtilClient.is_unset(request.name):
1239
+ body['name'] = request.name
1240
+ if not UtilClient.is_unset(request.schedule):
1241
+ body['schedule'] = request.schedule
1242
+ req = open_api_models.OpenApiRequest(
1243
+ host_map=host_map,
1244
+ headers=headers,
1245
+ body=OpenApiUtilClient.parse_to_map(body)
1246
+ )
1247
+ params = open_api_models.Params(
1248
+ action='CreateAzureBlobIngestion',
1249
+ version='2020-12-30',
1250
+ protocol='HTTPS',
1251
+ pathname=f'/azureblobingestions',
1252
+ method='POST',
1253
+ auth_type='AK',
1254
+ style='ROA',
1255
+ req_body_type='json',
1256
+ body_type='none'
1257
+ )
1258
+ return TeaCore.from_map(
1259
+ sls_20201230_models.CreateAzureBlobIngestionResponse(),
1260
+ await self.execute_async(params, req, runtime)
1261
+ )
1262
+
1263
+ def create_azure_blob_ingestion(
1264
+ self,
1265
+ project: str,
1266
+ request: sls_20201230_models.CreateAzureBlobIngestionRequest,
1267
+ ) -> sls_20201230_models.CreateAzureBlobIngestionResponse:
1268
+ """
1269
+ @summary 创建Azure blob文件导入任务
1270
+
1271
+ @param request: CreateAzureBlobIngestionRequest
1272
+ @return: CreateAzureBlobIngestionResponse
1273
+ """
1274
+ runtime = util_models.RuntimeOptions()
1275
+ headers = {}
1276
+ return self.create_azure_blob_ingestion_with_options(project, request, headers, runtime)
1277
+
1278
+ async def create_azure_blob_ingestion_async(
1279
+ self,
1280
+ project: str,
1281
+ request: sls_20201230_models.CreateAzureBlobIngestionRequest,
1282
+ ) -> sls_20201230_models.CreateAzureBlobIngestionResponse:
1283
+ """
1284
+ @summary 创建Azure blob文件导入任务
1285
+
1286
+ @param request: CreateAzureBlobIngestionRequest
1287
+ @return: CreateAzureBlobIngestionResponse
1288
+ """
1289
+ runtime = util_models.RuntimeOptions()
1290
+ headers = {}
1291
+ return await self.create_azure_blob_ingestion_with_options_async(project, request, headers, runtime)
1292
+
1163
1293
  def create_config_with_options(
1164
1294
  self,
1165
1295
  project: str,
@@ -1984,6 +2114,136 @@ class Client(OpenApiClient):
1984
2114
  headers = {}
1985
2115
  return await self.create_etlwith_options_async(project, request, headers, runtime)
1986
2116
 
2117
+ def create_elasticsearch_ingestion_with_options(
2118
+ self,
2119
+ project: str,
2120
+ request: sls_20201230_models.CreateElasticsearchIngestionRequest,
2121
+ headers: Dict[str, str],
2122
+ runtime: util_models.RuntimeOptions,
2123
+ ) -> sls_20201230_models.CreateElasticsearchIngestionResponse:
2124
+ """
2125
+ @summary 创建ES导入任务
2126
+
2127
+ @param request: CreateElasticsearchIngestionRequest
2128
+ @param headers: map
2129
+ @param runtime: runtime options for this request RuntimeOptions
2130
+ @return: CreateElasticsearchIngestionResponse
2131
+ """
2132
+ UtilClient.validate_model(request)
2133
+ host_map = {}
2134
+ host_map['project'] = project
2135
+ body = {}
2136
+ if not UtilClient.is_unset(request.configuration):
2137
+ body['configuration'] = request.configuration
2138
+ if not UtilClient.is_unset(request.description):
2139
+ body['description'] = request.description
2140
+ if not UtilClient.is_unset(request.display_name):
2141
+ body['displayName'] = request.display_name
2142
+ if not UtilClient.is_unset(request.name):
2143
+ body['name'] = request.name
2144
+ if not UtilClient.is_unset(request.schedule):
2145
+ body['schedule'] = request.schedule
2146
+ req = open_api_models.OpenApiRequest(
2147
+ host_map=host_map,
2148
+ headers=headers,
2149
+ body=OpenApiUtilClient.parse_to_map(body)
2150
+ )
2151
+ params = open_api_models.Params(
2152
+ action='CreateElasticsearchIngestion',
2153
+ version='2020-12-30',
2154
+ protocol='HTTPS',
2155
+ pathname=f'/elasticsearchingestions',
2156
+ method='POST',
2157
+ auth_type='AK',
2158
+ style='ROA',
2159
+ req_body_type='json',
2160
+ body_type='none'
2161
+ )
2162
+ return TeaCore.from_map(
2163
+ sls_20201230_models.CreateElasticsearchIngestionResponse(),
2164
+ self.execute(params, req, runtime)
2165
+ )
2166
+
2167
+ async def create_elasticsearch_ingestion_with_options_async(
2168
+ self,
2169
+ project: str,
2170
+ request: sls_20201230_models.CreateElasticsearchIngestionRequest,
2171
+ headers: Dict[str, str],
2172
+ runtime: util_models.RuntimeOptions,
2173
+ ) -> sls_20201230_models.CreateElasticsearchIngestionResponse:
2174
+ """
2175
+ @summary 创建ES导入任务
2176
+
2177
+ @param request: CreateElasticsearchIngestionRequest
2178
+ @param headers: map
2179
+ @param runtime: runtime options for this request RuntimeOptions
2180
+ @return: CreateElasticsearchIngestionResponse
2181
+ """
2182
+ UtilClient.validate_model(request)
2183
+ host_map = {}
2184
+ host_map['project'] = project
2185
+ body = {}
2186
+ if not UtilClient.is_unset(request.configuration):
2187
+ body['configuration'] = request.configuration
2188
+ if not UtilClient.is_unset(request.description):
2189
+ body['description'] = request.description
2190
+ if not UtilClient.is_unset(request.display_name):
2191
+ body['displayName'] = request.display_name
2192
+ if not UtilClient.is_unset(request.name):
2193
+ body['name'] = request.name
2194
+ if not UtilClient.is_unset(request.schedule):
2195
+ body['schedule'] = request.schedule
2196
+ req = open_api_models.OpenApiRequest(
2197
+ host_map=host_map,
2198
+ headers=headers,
2199
+ body=OpenApiUtilClient.parse_to_map(body)
2200
+ )
2201
+ params = open_api_models.Params(
2202
+ action='CreateElasticsearchIngestion',
2203
+ version='2020-12-30',
2204
+ protocol='HTTPS',
2205
+ pathname=f'/elasticsearchingestions',
2206
+ method='POST',
2207
+ auth_type='AK',
2208
+ style='ROA',
2209
+ req_body_type='json',
2210
+ body_type='none'
2211
+ )
2212
+ return TeaCore.from_map(
2213
+ sls_20201230_models.CreateElasticsearchIngestionResponse(),
2214
+ await self.execute_async(params, req, runtime)
2215
+ )
2216
+
2217
+ def create_elasticsearch_ingestion(
2218
+ self,
2219
+ project: str,
2220
+ request: sls_20201230_models.CreateElasticsearchIngestionRequest,
2221
+ ) -> sls_20201230_models.CreateElasticsearchIngestionResponse:
2222
+ """
2223
+ @summary 创建ES导入任务
2224
+
2225
+ @param request: CreateElasticsearchIngestionRequest
2226
+ @return: CreateElasticsearchIngestionResponse
2227
+ """
2228
+ runtime = util_models.RuntimeOptions()
2229
+ headers = {}
2230
+ return self.create_elasticsearch_ingestion_with_options(project, request, headers, runtime)
2231
+
2232
+ async def create_elasticsearch_ingestion_async(
2233
+ self,
2234
+ project: str,
2235
+ request: sls_20201230_models.CreateElasticsearchIngestionRequest,
2236
+ ) -> sls_20201230_models.CreateElasticsearchIngestionResponse:
2237
+ """
2238
+ @summary 创建ES导入任务
2239
+
2240
+ @param request: CreateElasticsearchIngestionRequest
2241
+ @return: CreateElasticsearchIngestionResponse
2242
+ """
2243
+ runtime = util_models.RuntimeOptions()
2244
+ headers = {}
2245
+ return await self.create_elasticsearch_ingestion_with_options_async(project, request, headers, runtime)
2246
+
1987
2247
  def create_index_with_options(
1988
2248
  self,
1989
2249
  project: str,
@@ -2158,6 +2418,8 @@ class Client(OpenApiClient):
2158
2418
  body['processorId'] = request.processor_id
2159
2419
  if not UtilClient.is_unset(request.shard_count):
2160
2420
  body['shardCount'] = request.shard_count
2421
+ if not UtilClient.is_unset(request.sharding_policy):
2422
+ body['shardingPolicy'] = request.sharding_policy
2161
2423
  if not UtilClient.is_unset(request.telemetry_type):
2162
2424
  body['telemetryType'] = request.telemetry_type
2163
2425
  if not UtilClient.is_unset(request.ttl):
@@ -2237,6 +2499,8 @@ class Client(OpenApiClient):
2237
2499
  body['processorId'] = request.processor_id
2238
2500
  if not UtilClient.is_unset(request.shard_count):
2239
2501
  body['shardCount'] = request.shard_count
2502
+ if not UtilClient.is_unset(request.sharding_policy):
2503
+ body['shardingPolicy'] = request.sharding_policy
2240
2504
  if not UtilClient.is_unset(request.telemetry_type):
2241
2505
  body['telemetryType'] = request.telemetry_type
2242
2506
  if not UtilClient.is_unset(request.ttl):
@@ -2909,6 +3173,8 @@ class Client(OpenApiClient):
2909
3173
  host_map = {}
2910
3174
  host_map['project'] = project
2911
3175
  body = {}
3176
+ if not UtilClient.is_unset(request.append_meta):
3177
+ body['appendMeta'] = request.append_meta
2912
3178
  if not UtilClient.is_unset(request.auto_split):
2913
3179
  body['autoSplit'] = request.auto_split
2914
3180
  if not UtilClient.is_unset(request.hot_ttl):
@@ -2925,6 +3191,8 @@ class Client(OpenApiClient):
2925
3191
  body['name'] = request.name
2926
3192
  if not UtilClient.is_unset(request.shard_count):
2927
3193
  body['shardCount'] = request.shard_count
3194
+ if not UtilClient.is_unset(request.sharding_policy):
3195
+ body['shardingPolicy'] = request.sharding_policy
2928
3196
  if not UtilClient.is_unset(request.ttl):
2929
3197
  body['ttl'] = request.ttl
2930
3198
  req = open_api_models.OpenApiRequest(
@@ -2975,6 +3243,8 @@ class Client(OpenApiClient):
2975
3243
  host_map = {}
2976
3244
  host_map['project'] = project
2977
3245
  body = {}
3246
+ if not UtilClient.is_unset(request.append_meta):
3247
+ body['appendMeta'] = request.append_meta
2978
3248
  if not UtilClient.is_unset(request.auto_split):
2979
3249
  body['autoSplit'] = request.auto_split
2980
3250
  if not UtilClient.is_unset(request.hot_ttl):
@@ -2991,6 +3261,8 @@ class Client(OpenApiClient):
2991
3261
  body['name'] = request.name
2992
3262
  if not UtilClient.is_unset(request.shard_count):
2993
3263
  body['shardCount'] = request.shard_count
3264
+ if not UtilClient.is_unset(request.sharding_policy):
3265
+ body['shardingPolicy'] = request.sharding_policy
2994
3266
  if not UtilClient.is_unset(request.ttl):
2995
3267
  body['ttl'] = request.ttl
2996
3268
  req = open_api_models.OpenApiRequest(
@@ -3562,57 +3834,45 @@ class Client(OpenApiClient):
3562
3834
  headers = {}
3563
3835
  return await self.create_project_with_options_async(request, headers, runtime)
3564
3836
 
3565
- def create_saved_search_with_options(
3837
+ def create_s3ingestion_with_options(
3566
3838
  self,
3567
3839
  project: str,
3568
- request: sls_20201230_models.CreateSavedSearchRequest,
3840
+ request: sls_20201230_models.CreateS3IngestionRequest,
3569
3841
  headers: Dict[str, str],
3570
3842
  runtime: util_models.RuntimeOptions,
3571
- ) -> sls_20201230_models.CreateSavedSearchResponse:
3843
+ ) -> sls_20201230_models.CreateS3IngestionResponse:
3572
3844
  """
3573
- @summary Creates a saved search.
3574
-
3575
- @description ### Usage notes
3576
- Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
3577
- An AccessKey pair is created and obtained. For more information, see [AccessKey pair](https://help.aliyun.com/document_detail/29009.html).
3578
- 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).
3579
- 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).
3580
- 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).
3581
- ### Authentication resources
3582
- 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.
3583
- |Action|Resource|
3584
- |:---|:---|
3585
- |`log:CreateSavedSearch`|`acs:log:{#regionId}:{#accountId}:project/{#ProjectName}/savedsearch/{#SavedSearchName}`|
3845
+ @summary 创建S3文件导入任务
3586
3846
 
3587
- @param request: CreateSavedSearchRequest
3847
+ @param request: CreateS3IngestionRequest
3588
3848
  @param headers: map
3589
3849
  @param runtime: runtime options for this request RuntimeOptions
3590
- @return: CreateSavedSearchResponse
3850
+ @return: CreateS3IngestionResponse
3591
3851
  """
3592
3852
  UtilClient.validate_model(request)
3593
3853
  host_map = {}
3594
3854
  host_map['project'] = project
3595
3855
  body = {}
3856
+ if not UtilClient.is_unset(request.configuration):
3857
+ body['configuration'] = request.configuration
3858
+ if not UtilClient.is_unset(request.description):
3859
+ body['description'] = request.description
3596
3860
  if not UtilClient.is_unset(request.display_name):
3597
3861
  body['displayName'] = request.display_name
3598
- if not UtilClient.is_unset(request.logstore):
3599
- body['logstore'] = request.logstore
3600
- if not UtilClient.is_unset(request.savedsearch_name):
3601
- body['savedsearchName'] = request.savedsearch_name
3602
- if not UtilClient.is_unset(request.search_query):
3603
- body['searchQuery'] = request.search_query
3604
- if not UtilClient.is_unset(request.topic):
3605
- body['topic'] = request.topic
3862
+ if not UtilClient.is_unset(request.name):
3863
+ body['name'] = request.name
3864
+ if not UtilClient.is_unset(request.schedule):
3865
+ body['schedule'] = request.schedule
3606
3866
  req = open_api_models.OpenApiRequest(
3607
3867
  host_map=host_map,
3608
3868
  headers=headers,
3609
3869
  body=OpenApiUtilClient.parse_to_map(body)
3610
3870
  )
3611
3871
  params = open_api_models.Params(
3612
- action='CreateSavedSearch',
3872
+ action='CreateS3Ingestion',
3613
3873
  version='2020-12-30',
3614
3874
  protocol='HTTPS',
3615
- pathname=f'/savedsearches',
3875
+ pathname=f'/s3ingestions',
3616
3876
  method='POST',
3617
3877
  auth_type='AK',
3618
3878
  style='ROA',
@@ -3620,42 +3880,184 @@ class Client(OpenApiClient):
3620
3880
  body_type='none'
3621
3881
  )
3622
3882
  return TeaCore.from_map(
3623
- sls_20201230_models.CreateSavedSearchResponse(),
3883
+ sls_20201230_models.CreateS3IngestionResponse(),
3624
3884
  self.execute(params, req, runtime)
3625
3885
  )
3626
3886
 
3627
- async def create_saved_search_with_options_async(
3887
+ async def create_s3ingestion_with_options_async(
3628
3888
  self,
3629
3889
  project: str,
3630
- request: sls_20201230_models.CreateSavedSearchRequest,
3890
+ request: sls_20201230_models.CreateS3IngestionRequest,
3631
3891
  headers: Dict[str, str],
3632
3892
  runtime: util_models.RuntimeOptions,
3633
- ) -> sls_20201230_models.CreateSavedSearchResponse:
3893
+ ) -> sls_20201230_models.CreateS3IngestionResponse:
3634
3894
  """
3635
- @summary Creates a saved search.
3636
-
3637
- @description ### Usage notes
3638
- Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
3639
- An AccessKey pair is created and obtained. For more information, see [AccessKey pair](https://help.aliyun.com/document_detail/29009.html).
3640
- 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).
3641
- 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).
3642
- 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).
3643
- ### Authentication resources
3644
- 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.
3645
- |Action|Resource|
3646
- |:---|:---|
3647
- |`log:CreateSavedSearch`|`acs:log:{#regionId}:{#accountId}:project/{#ProjectName}/savedsearch/{#SavedSearchName}`|
3895
+ @summary 创建S3文件导入任务
3648
3896
 
3649
- @param request: CreateSavedSearchRequest
3897
+ @param request: CreateS3IngestionRequest
3650
3898
  @param headers: map
3651
3899
  @param runtime: runtime options for this request RuntimeOptions
3652
- @return: CreateSavedSearchResponse
3900
+ @return: CreateS3IngestionResponse
3653
3901
  """
3654
3902
  UtilClient.validate_model(request)
3655
3903
  host_map = {}
3656
3904
  host_map['project'] = project
3657
3905
  body = {}
3658
- if not UtilClient.is_unset(request.display_name):
3906
+ if not UtilClient.is_unset(request.configuration):
3907
+ body['configuration'] = request.configuration
3908
+ if not UtilClient.is_unset(request.description):
3909
+ body['description'] = request.description
3910
+ if not UtilClient.is_unset(request.display_name):
3911
+ body['displayName'] = request.display_name
3912
+ if not UtilClient.is_unset(request.name):
3913
+ body['name'] = request.name
3914
+ if not UtilClient.is_unset(request.schedule):
3915
+ body['schedule'] = request.schedule
3916
+ req = open_api_models.OpenApiRequest(
3917
+ host_map=host_map,
3918
+ headers=headers,
3919
+ body=OpenApiUtilClient.parse_to_map(body)
3920
+ )
3921
+ params = open_api_models.Params(
3922
+ action='CreateS3Ingestion',
3923
+ version='2020-12-30',
3924
+ protocol='HTTPS',
3925
+ pathname=f'/s3ingestions',
3926
+ method='POST',
3927
+ auth_type='AK',
3928
+ style='ROA',
3929
+ req_body_type='json',
3930
+ body_type='none'
3931
+ )
3932
+ return TeaCore.from_map(
3933
+ sls_20201230_models.CreateS3IngestionResponse(),
3934
+ await self.execute_async(params, req, runtime)
3935
+ )
3936
+
3937
+ def create_s3ingestion(
3938
+ self,
3939
+ project: str,
3940
+ request: sls_20201230_models.CreateS3IngestionRequest,
3941
+ ) -> sls_20201230_models.CreateS3IngestionResponse:
3942
+ """
3943
+ @summary 创建S3文件导入任务
3944
+
3945
+ @param request: CreateS3IngestionRequest
3946
+ @return: CreateS3IngestionResponse
3947
+ """
3948
+ runtime = util_models.RuntimeOptions()
3949
+ headers = {}
3950
+ return self.create_s3ingestion_with_options(project, request, headers, runtime)
3951
+
3952
+ async def create_s3ingestion_async(
3953
+ self,
3954
+ project: str,
3955
+ request: sls_20201230_models.CreateS3IngestionRequest,
3956
+ ) -> sls_20201230_models.CreateS3IngestionResponse:
3957
+ """
3958
+ @summary 创建S3文件导入任务
3959
+
3960
+ @param request: CreateS3IngestionRequest
3961
+ @return: CreateS3IngestionResponse
3962
+ """
3963
+ runtime = util_models.RuntimeOptions()
3964
+ headers = {}
3965
+ return await self.create_s3ingestion_with_options_async(project, request, headers, runtime)
3966
+
3967
+ def create_saved_search_with_options(
3968
+ self,
3969
+ project: str,
3970
+ request: sls_20201230_models.CreateSavedSearchRequest,
3971
+ headers: Dict[str, str],
3972
+ runtime: util_models.RuntimeOptions,
3973
+ ) -> sls_20201230_models.CreateSavedSearchResponse:
3974
+ """
3975
+ @summary Creates a saved search.
3976
+
3977
+ @description ### Usage notes
3978
+ Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
3979
+ An AccessKey pair is created and obtained. For more information, see [AccessKey pair](https://help.aliyun.com/document_detail/29009.html).
3980
+ 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).
3981
+ 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).
3982
+ 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).
3983
+ ### Authentication resources
3984
+ 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.
3985
+ |Action|Resource|
3986
+ |:---|:---|
3987
+ |`log:CreateSavedSearch`|`acs:log:{#regionId}:{#accountId}:project/{#ProjectName}/savedsearch/{#SavedSearchName}`|
3988
+
3989
+ @param request: CreateSavedSearchRequest
3990
+ @param headers: map
3991
+ @param runtime: runtime options for this request RuntimeOptions
3992
+ @return: CreateSavedSearchResponse
3993
+ """
3994
+ UtilClient.validate_model(request)
3995
+ host_map = {}
3996
+ host_map['project'] = project
3997
+ body = {}
3998
+ if not UtilClient.is_unset(request.display_name):
3999
+ body['displayName'] = request.display_name
4000
+ if not UtilClient.is_unset(request.logstore):
4001
+ body['logstore'] = request.logstore
4002
+ if not UtilClient.is_unset(request.savedsearch_name):
4003
+ body['savedsearchName'] = request.savedsearch_name
4004
+ if not UtilClient.is_unset(request.search_query):
4005
+ body['searchQuery'] = request.search_query
4006
+ if not UtilClient.is_unset(request.topic):
4007
+ body['topic'] = request.topic
4008
+ req = open_api_models.OpenApiRequest(
4009
+ host_map=host_map,
4010
+ headers=headers,
4011
+ body=OpenApiUtilClient.parse_to_map(body)
4012
+ )
4013
+ params = open_api_models.Params(
4014
+ action='CreateSavedSearch',
4015
+ version='2020-12-30',
4016
+ protocol='HTTPS',
4017
+ pathname=f'/savedsearches',
4018
+ method='POST',
4019
+ auth_type='AK',
4020
+ style='ROA',
4021
+ req_body_type='json',
4022
+ body_type='none'
4023
+ )
4024
+ return TeaCore.from_map(
4025
+ sls_20201230_models.CreateSavedSearchResponse(),
4026
+ self.execute(params, req, runtime)
4027
+ )
4028
+
4029
+ async def create_saved_search_with_options_async(
4030
+ self,
4031
+ project: str,
4032
+ request: sls_20201230_models.CreateSavedSearchRequest,
4033
+ headers: Dict[str, str],
4034
+ runtime: util_models.RuntimeOptions,
4035
+ ) -> sls_20201230_models.CreateSavedSearchResponse:
4036
+ """
4037
+ @summary Creates a saved search.
4038
+
4039
+ @description ### Usage notes
4040
+ Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
4041
+ An AccessKey pair is created and obtained. For more information, see [AccessKey pair](https://help.aliyun.com/document_detail/29009.html).
4042
+ 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).
4043
+ 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).
4044
+ 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).
4045
+ ### Authentication resources
4046
+ 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.
4047
+ |Action|Resource|
4048
+ |:---|:---|
4049
+ |`log:CreateSavedSearch`|`acs:log:{#regionId}:{#accountId}:project/{#ProjectName}/savedsearch/{#SavedSearchName}`|
4050
+
4051
+ @param request: CreateSavedSearchRequest
4052
+ @param headers: map
4053
+ @param runtime: runtime options for this request RuntimeOptions
4054
+ @return: CreateSavedSearchResponse
4055
+ """
4056
+ UtilClient.validate_model(request)
4057
+ host_map = {}
4058
+ host_map['project'] = project
4059
+ body = {}
4060
+ if not UtilClient.is_unset(request.display_name):
3659
4061
  body['displayName'] = request.display_name
3660
4062
  if not UtilClient.is_unset(request.logstore):
3661
4063
  body['logstore'] = request.logstore
@@ -4732,6 +5134,106 @@ class Client(OpenApiClient):
4732
5134
  headers = {}
4733
5135
  return await self.delete_annotation_label_with_options_async(label_id, headers, runtime)
4734
5136
 
5137
+ def delete_azure_blob_ingestion_with_options(
5138
+ self,
5139
+ project: str,
5140
+ azure_blob_ingestion_name: str,
5141
+ headers: Dict[str, str],
5142
+ runtime: util_models.RuntimeOptions,
5143
+ ) -> sls_20201230_models.DeleteAzureBlobIngestionResponse:
5144
+ """
5145
+ @summary 创建Azure blob文件导入任务
5146
+
5147
+ @param headers: map
5148
+ @param runtime: runtime options for this request RuntimeOptions
5149
+ @return: DeleteAzureBlobIngestionResponse
5150
+ """
5151
+ host_map = {}
5152
+ host_map['project'] = project
5153
+ req = open_api_models.OpenApiRequest(
5154
+ host_map=host_map,
5155
+ headers=headers
5156
+ )
5157
+ params = open_api_models.Params(
5158
+ action='DeleteAzureBlobIngestion',
5159
+ version='2020-12-30',
5160
+ protocol='HTTPS',
5161
+ pathname=f'/azureblobingestions/{azure_blob_ingestion_name}',
5162
+ method='DELETE',
5163
+ auth_type='AK',
5164
+ style='ROA',
5165
+ req_body_type='json',
5166
+ body_type='none'
5167
+ )
5168
+ return TeaCore.from_map(
5169
+ sls_20201230_models.DeleteAzureBlobIngestionResponse(),
5170
+ self.execute(params, req, runtime)
5171
+ )
5172
+
5173
+ async def delete_azure_blob_ingestion_with_options_async(
5174
+ self,
5175
+ project: str,
5176
+ azure_blob_ingestion_name: str,
5177
+ headers: Dict[str, str],
5178
+ runtime: util_models.RuntimeOptions,
5179
+ ) -> sls_20201230_models.DeleteAzureBlobIngestionResponse:
5180
+ """
5181
+ @summary 创建Azure blob文件导入任务
5182
+
5183
+ @param headers: map
5184
+ @param runtime: runtime options for this request RuntimeOptions
5185
+ @return: DeleteAzureBlobIngestionResponse
5186
+ """
5187
+ host_map = {}
5188
+ host_map['project'] = project
5189
+ req = open_api_models.OpenApiRequest(
5190
+ host_map=host_map,
5191
+ headers=headers
5192
+ )
5193
+ params = open_api_models.Params(
5194
+ action='DeleteAzureBlobIngestion',
5195
+ version='2020-12-30',
5196
+ protocol='HTTPS',
5197
+ pathname=f'/azureblobingestions/{azure_blob_ingestion_name}',
5198
+ method='DELETE',
5199
+ auth_type='AK',
5200
+ style='ROA',
5201
+ req_body_type='json',
5202
+ body_type='none'
5203
+ )
5204
+ return TeaCore.from_map(
5205
+ sls_20201230_models.DeleteAzureBlobIngestionResponse(),
5206
+ await self.execute_async(params, req, runtime)
5207
+ )
5208
+
5209
+ def delete_azure_blob_ingestion(
5210
+ self,
5211
+ project: str,
5212
+ azure_blob_ingestion_name: str,
5213
+ ) -> sls_20201230_models.DeleteAzureBlobIngestionResponse:
5214
+ """
5215
+ @summary 创建Azure blob文件导入任务
5216
+
5217
+ @return: DeleteAzureBlobIngestionResponse
5218
+ """
5219
+ runtime = util_models.RuntimeOptions()
5220
+ headers = {}
5221
+ return self.delete_azure_blob_ingestion_with_options(project, azure_blob_ingestion_name, headers, runtime)
5222
+
5223
+ async def delete_azure_blob_ingestion_async(
5224
+ self,
5225
+ project: str,
5226
+ azure_blob_ingestion_name: str,
5227
+ ) -> sls_20201230_models.DeleteAzureBlobIngestionResponse:
5228
+ """
5229
+ @summary 创建Azure blob文件导入任务
5230
+
5231
+ @return: DeleteAzureBlobIngestionResponse
5232
+ """
5233
+ runtime = util_models.RuntimeOptions()
5234
+ headers = {}
5235
+ return await self.delete_azure_blob_ingestion_with_options_async(project, azure_blob_ingestion_name, headers, runtime)
5236
+
4735
5237
  def delete_collection_policy_with_options(
4736
5238
  self,
4737
5239
  policy_name: str,
@@ -5668,22 +6170,19 @@ class Client(OpenApiClient):
5668
6170
  headers = {}
5669
6171
  return await self.delete_etlwith_options_async(project, etl_name, headers, runtime)
5670
6172
 
5671
- def delete_index_with_options(
6173
+ def delete_elasticsearch_ingestion_with_options(
5672
6174
  self,
5673
6175
  project: str,
5674
- logstore: str,
6176
+ es_ingestion_name: str,
5675
6177
  headers: Dict[str, str],
5676
6178
  runtime: util_models.RuntimeOptions,
5677
- ) -> sls_20201230_models.DeleteIndexResponse:
6179
+ ) -> sls_20201230_models.DeleteElasticsearchIngestionResponse:
5678
6180
  """
5679
- @summary Deletes an index of a Logstore.
5680
-
5681
- @description ### Usage notes
5682
- Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
6181
+ @summary 删除ES导入任务
5683
6182
 
5684
6183
  @param headers: map
5685
6184
  @param runtime: runtime options for this request RuntimeOptions
5686
- @return: DeleteIndexResponse
6185
+ @return: DeleteElasticsearchIngestionResponse
5687
6186
  """
5688
6187
  host_map = {}
5689
6188
  host_map['project'] = project
@@ -5692,10 +6191,10 @@ class Client(OpenApiClient):
5692
6191
  headers=headers
5693
6192
  )
5694
6193
  params = open_api_models.Params(
5695
- action='DeleteIndex',
6194
+ action='DeleteElasticsearchIngestion',
5696
6195
  version='2020-12-30',
5697
6196
  protocol='HTTPS',
5698
- pathname=f'/logstores/{logstore}/index',
6197
+ pathname=f'/elasticsearchingestions/{es_ingestion_name}',
5699
6198
  method='DELETE',
5700
6199
  auth_type='AK',
5701
6200
  style='ROA',
@@ -5703,26 +6202,23 @@ class Client(OpenApiClient):
5703
6202
  body_type='none'
5704
6203
  )
5705
6204
  return TeaCore.from_map(
5706
- sls_20201230_models.DeleteIndexResponse(),
6205
+ sls_20201230_models.DeleteElasticsearchIngestionResponse(),
5707
6206
  self.execute(params, req, runtime)
5708
6207
  )
5709
6208
 
5710
- async def delete_index_with_options_async(
6209
+ async def delete_elasticsearch_ingestion_with_options_async(
5711
6210
  self,
5712
6211
  project: str,
5713
- logstore: str,
6212
+ es_ingestion_name: str,
5714
6213
  headers: Dict[str, str],
5715
6214
  runtime: util_models.RuntimeOptions,
5716
- ) -> sls_20201230_models.DeleteIndexResponse:
6215
+ ) -> sls_20201230_models.DeleteElasticsearchIngestionResponse:
5717
6216
  """
5718
- @summary Deletes an index of a Logstore.
5719
-
5720
- @description ### Usage notes
5721
- Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
6217
+ @summary 删除ES导入任务
5722
6218
 
5723
6219
  @param headers: map
5724
6220
  @param runtime: runtime options for this request RuntimeOptions
5725
- @return: DeleteIndexResponse
6221
+ @return: DeleteElasticsearchIngestionResponse
5726
6222
  """
5727
6223
  host_map = {}
5728
6224
  host_map['project'] = project
@@ -5731,10 +6227,10 @@ class Client(OpenApiClient):
5731
6227
  headers=headers
5732
6228
  )
5733
6229
  params = open_api_models.Params(
5734
- action='DeleteIndex',
6230
+ action='DeleteElasticsearchIngestion',
5735
6231
  version='2020-12-30',
5736
6232
  protocol='HTTPS',
5737
- pathname=f'/logstores/{logstore}/index',
6233
+ pathname=f'/elasticsearchingestions/{es_ingestion_name}',
5738
6234
  method='DELETE',
5739
6235
  auth_type='AK',
5740
6236
  style='ROA',
@@ -5742,51 +6238,157 @@ class Client(OpenApiClient):
5742
6238
  body_type='none'
5743
6239
  )
5744
6240
  return TeaCore.from_map(
5745
- sls_20201230_models.DeleteIndexResponse(),
6241
+ sls_20201230_models.DeleteElasticsearchIngestionResponse(),
5746
6242
  await self.execute_async(params, req, runtime)
5747
6243
  )
5748
6244
 
5749
- def delete_index(
6245
+ def delete_elasticsearch_ingestion(
5750
6246
  self,
5751
6247
  project: str,
5752
- logstore: str,
5753
- ) -> sls_20201230_models.DeleteIndexResponse:
6248
+ es_ingestion_name: str,
6249
+ ) -> sls_20201230_models.DeleteElasticsearchIngestionResponse:
5754
6250
  """
5755
- @summary Deletes an index of a Logstore.
6251
+ @summary 删除ES导入任务
5756
6252
 
5757
- @description ### Usage notes
5758
- Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
5759
-
5760
- @return: DeleteIndexResponse
6253
+ @return: DeleteElasticsearchIngestionResponse
5761
6254
  """
5762
6255
  runtime = util_models.RuntimeOptions()
5763
6256
  headers = {}
5764
- return self.delete_index_with_options(project, logstore, headers, runtime)
6257
+ return self.delete_elasticsearch_ingestion_with_options(project, es_ingestion_name, headers, runtime)
5765
6258
 
5766
- async def delete_index_async(
6259
+ async def delete_elasticsearch_ingestion_async(
5767
6260
  self,
5768
6261
  project: str,
5769
- logstore: str,
5770
- ) -> sls_20201230_models.DeleteIndexResponse:
6262
+ es_ingestion_name: str,
6263
+ ) -> sls_20201230_models.DeleteElasticsearchIngestionResponse:
5771
6264
  """
5772
- @summary Deletes an index of a Logstore.
5773
-
5774
- @description ### Usage notes
5775
- Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
6265
+ @summary 删除ES导入任务
5776
6266
 
5777
- @return: DeleteIndexResponse
6267
+ @return: DeleteElasticsearchIngestionResponse
5778
6268
  """
5779
6269
  runtime = util_models.RuntimeOptions()
5780
6270
  headers = {}
5781
- return await self.delete_index_with_options_async(project, logstore, headers, runtime)
6271
+ return await self.delete_elasticsearch_ingestion_with_options_async(project, es_ingestion_name, headers, runtime)
5782
6272
 
5783
- def delete_ingest_processor_with_options(
6273
+ def delete_index_with_options(
5784
6274
  self,
5785
6275
  project: str,
5786
- processor_name: str,
6276
+ logstore: str,
5787
6277
  headers: Dict[str, str],
5788
6278
  runtime: util_models.RuntimeOptions,
5789
- ) -> sls_20201230_models.DeleteIngestProcessorResponse:
6279
+ ) -> sls_20201230_models.DeleteIndexResponse:
6280
+ """
6281
+ @summary Deletes an index of a Logstore.
6282
+
6283
+ @description ### Usage notes
6284
+ Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
6285
+
6286
+ @param headers: map
6287
+ @param runtime: runtime options for this request RuntimeOptions
6288
+ @return: DeleteIndexResponse
6289
+ """
6290
+ host_map = {}
6291
+ host_map['project'] = project
6292
+ req = open_api_models.OpenApiRequest(
6293
+ host_map=host_map,
6294
+ headers=headers
6295
+ )
6296
+ params = open_api_models.Params(
6297
+ action='DeleteIndex',
6298
+ version='2020-12-30',
6299
+ protocol='HTTPS',
6300
+ pathname=f'/logstores/{logstore}/index',
6301
+ method='DELETE',
6302
+ auth_type='AK',
6303
+ style='ROA',
6304
+ req_body_type='json',
6305
+ body_type='none'
6306
+ )
6307
+ return TeaCore.from_map(
6308
+ sls_20201230_models.DeleteIndexResponse(),
6309
+ self.execute(params, req, runtime)
6310
+ )
6311
+
6312
+ async def delete_index_with_options_async(
6313
+ self,
6314
+ project: str,
6315
+ logstore: str,
6316
+ headers: Dict[str, str],
6317
+ runtime: util_models.RuntimeOptions,
6318
+ ) -> sls_20201230_models.DeleteIndexResponse:
6319
+ """
6320
+ @summary Deletes an index of a Logstore.
6321
+
6322
+ @description ### Usage notes
6323
+ Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
6324
+
6325
+ @param headers: map
6326
+ @param runtime: runtime options for this request RuntimeOptions
6327
+ @return: DeleteIndexResponse
6328
+ """
6329
+ host_map = {}
6330
+ host_map['project'] = project
6331
+ req = open_api_models.OpenApiRequest(
6332
+ host_map=host_map,
6333
+ headers=headers
6334
+ )
6335
+ params = open_api_models.Params(
6336
+ action='DeleteIndex',
6337
+ version='2020-12-30',
6338
+ protocol='HTTPS',
6339
+ pathname=f'/logstores/{logstore}/index',
6340
+ method='DELETE',
6341
+ auth_type='AK',
6342
+ style='ROA',
6343
+ req_body_type='json',
6344
+ body_type='none'
6345
+ )
6346
+ return TeaCore.from_map(
6347
+ sls_20201230_models.DeleteIndexResponse(),
6348
+ await self.execute_async(params, req, runtime)
6349
+ )
6350
+
6351
+ def delete_index(
6352
+ self,
6353
+ project: str,
6354
+ logstore: str,
6355
+ ) -> sls_20201230_models.DeleteIndexResponse:
6356
+ """
6357
+ @summary Deletes an index of a Logstore.
6358
+
6359
+ @description ### Usage notes
6360
+ Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
6361
+
6362
+ @return: DeleteIndexResponse
6363
+ """
6364
+ runtime = util_models.RuntimeOptions()
6365
+ headers = {}
6366
+ return self.delete_index_with_options(project, logstore, headers, runtime)
6367
+
6368
+ async def delete_index_async(
6369
+ self,
6370
+ project: str,
6371
+ logstore: str,
6372
+ ) -> sls_20201230_models.DeleteIndexResponse:
6373
+ """
6374
+ @summary Deletes an index of a Logstore.
6375
+
6376
+ @description ### Usage notes
6377
+ Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
6378
+
6379
+ @return: DeleteIndexResponse
6380
+ """
6381
+ runtime = util_models.RuntimeOptions()
6382
+ headers = {}
6383
+ return await self.delete_index_with_options_async(project, logstore, headers, runtime)
6384
+
6385
+ def delete_ingest_processor_with_options(
6386
+ self,
6387
+ project: str,
6388
+ processor_name: str,
6389
+ headers: Dict[str, str],
6390
+ runtime: util_models.RuntimeOptions,
6391
+ ) -> sls_20201230_models.DeleteIngestProcessorResponse:
5790
6392
  """
5791
6393
  @summary Deletes an ingest processor.
5792
6394
 
@@ -7142,6 +7744,106 @@ class Client(OpenApiClient):
7142
7744
  headers = {}
7143
7745
  return await self.delete_project_policy_with_options_async(project, headers, runtime)
7144
7746
 
7747
+ def delete_s3ingestion_with_options(
7748
+ self,
7749
+ project: str,
7750
+ s_3ingestion_name: str,
7751
+ headers: Dict[str, str],
7752
+ runtime: util_models.RuntimeOptions,
7753
+ ) -> sls_20201230_models.DeleteS3IngestionResponse:
7754
+ """
7755
+ @summary 删除s3导入任务
7756
+
7757
+ @param headers: map
7758
+ @param runtime: runtime options for this request RuntimeOptions
7759
+ @return: DeleteS3IngestionResponse
7760
+ """
7761
+ host_map = {}
7762
+ host_map['project'] = project
7763
+ req = open_api_models.OpenApiRequest(
7764
+ host_map=host_map,
7765
+ headers=headers
7766
+ )
7767
+ params = open_api_models.Params(
7768
+ action='DeleteS3Ingestion',
7769
+ version='2020-12-30',
7770
+ protocol='HTTPS',
7771
+ pathname=f'/s3ingestions/{s_3ingestion_name}',
7772
+ method='DELETE',
7773
+ auth_type='AK',
7774
+ style='ROA',
7775
+ req_body_type='json',
7776
+ body_type='none'
7777
+ )
7778
+ return TeaCore.from_map(
7779
+ sls_20201230_models.DeleteS3IngestionResponse(),
7780
+ self.execute(params, req, runtime)
7781
+ )
7782
+
7783
+ async def delete_s3ingestion_with_options_async(
7784
+ self,
7785
+ project: str,
7786
+ s_3ingestion_name: str,
7787
+ headers: Dict[str, str],
7788
+ runtime: util_models.RuntimeOptions,
7789
+ ) -> sls_20201230_models.DeleteS3IngestionResponse:
7790
+ """
7791
+ @summary 删除s3导入任务
7792
+
7793
+ @param headers: map
7794
+ @param runtime: runtime options for this request RuntimeOptions
7795
+ @return: DeleteS3IngestionResponse
7796
+ """
7797
+ host_map = {}
7798
+ host_map['project'] = project
7799
+ req = open_api_models.OpenApiRequest(
7800
+ host_map=host_map,
7801
+ headers=headers
7802
+ )
7803
+ params = open_api_models.Params(
7804
+ action='DeleteS3Ingestion',
7805
+ version='2020-12-30',
7806
+ protocol='HTTPS',
7807
+ pathname=f'/s3ingestions/{s_3ingestion_name}',
7808
+ method='DELETE',
7809
+ auth_type='AK',
7810
+ style='ROA',
7811
+ req_body_type='json',
7812
+ body_type='none'
7813
+ )
7814
+ return TeaCore.from_map(
7815
+ sls_20201230_models.DeleteS3IngestionResponse(),
7816
+ await self.execute_async(params, req, runtime)
7817
+ )
7818
+
7819
+ def delete_s3ingestion(
7820
+ self,
7821
+ project: str,
7822
+ s_3ingestion_name: str,
7823
+ ) -> sls_20201230_models.DeleteS3IngestionResponse:
7824
+ """
7825
+ @summary 删除s3导入任务
7826
+
7827
+ @return: DeleteS3IngestionResponse
7828
+ """
7829
+ runtime = util_models.RuntimeOptions()
7830
+ headers = {}
7831
+ return self.delete_s3ingestion_with_options(project, s_3ingestion_name, headers, runtime)
7832
+
7833
+ async def delete_s3ingestion_async(
7834
+ self,
7835
+ project: str,
7836
+ s_3ingestion_name: str,
7837
+ ) -> sls_20201230_models.DeleteS3IngestionResponse:
7838
+ """
7839
+ @summary 删除s3导入任务
7840
+
7841
+ @return: DeleteS3IngestionResponse
7842
+ """
7843
+ runtime = util_models.RuntimeOptions()
7844
+ headers = {}
7845
+ return await self.delete_s3ingestion_with_options_async(project, s_3ingestion_name, headers, runtime)
7846
+
7145
7847
  def delete_saved_search_with_options(
7146
7848
  self,
7147
7849
  project: str,
@@ -8700,6 +9402,106 @@ class Client(OpenApiClient):
8700
9402
  headers = {}
8701
9403
  return await self.get_applied_machine_groups_with_options_async(project, config_name, headers, runtime)
8702
9404
 
9405
+ def get_azure_blob_ingestion_with_options(
9406
+ self,
9407
+ project: str,
9408
+ azure_blob_ingestion_name: str,
9409
+ headers: Dict[str, str],
9410
+ runtime: util_models.RuntimeOptions,
9411
+ ) -> sls_20201230_models.GetAzureBlobIngestionResponse:
9412
+ """
9413
+ @summary 获取Azure blob文件导入任务信息
9414
+
9415
+ @param headers: map
9416
+ @param runtime: runtime options for this request RuntimeOptions
9417
+ @return: GetAzureBlobIngestionResponse
9418
+ """
9419
+ host_map = {}
9420
+ host_map['project'] = project
9421
+ req = open_api_models.OpenApiRequest(
9422
+ host_map=host_map,
9423
+ headers=headers
9424
+ )
9425
+ params = open_api_models.Params(
9426
+ action='GetAzureBlobIngestion',
9427
+ version='2020-12-30',
9428
+ protocol='HTTPS',
9429
+ pathname=f'/azureblobingestions/{azure_blob_ingestion_name}',
9430
+ method='GET',
9431
+ auth_type='AK',
9432
+ style='ROA',
9433
+ req_body_type='json',
9434
+ body_type='json'
9435
+ )
9436
+ return TeaCore.from_map(
9437
+ sls_20201230_models.GetAzureBlobIngestionResponse(),
9438
+ self.execute(params, req, runtime)
9439
+ )
9440
+
9441
+ async def get_azure_blob_ingestion_with_options_async(
9442
+ self,
9443
+ project: str,
9444
+ azure_blob_ingestion_name: str,
9445
+ headers: Dict[str, str],
9446
+ runtime: util_models.RuntimeOptions,
9447
+ ) -> sls_20201230_models.GetAzureBlobIngestionResponse:
9448
+ """
9449
+ @summary 获取Azure blob文件导入任务信息
9450
+
9451
+ @param headers: map
9452
+ @param runtime: runtime options for this request RuntimeOptions
9453
+ @return: GetAzureBlobIngestionResponse
9454
+ """
9455
+ host_map = {}
9456
+ host_map['project'] = project
9457
+ req = open_api_models.OpenApiRequest(
9458
+ host_map=host_map,
9459
+ headers=headers
9460
+ )
9461
+ params = open_api_models.Params(
9462
+ action='GetAzureBlobIngestion',
9463
+ version='2020-12-30',
9464
+ protocol='HTTPS',
9465
+ pathname=f'/azureblobingestions/{azure_blob_ingestion_name}',
9466
+ method='GET',
9467
+ auth_type='AK',
9468
+ style='ROA',
9469
+ req_body_type='json',
9470
+ body_type='json'
9471
+ )
9472
+ return TeaCore.from_map(
9473
+ sls_20201230_models.GetAzureBlobIngestionResponse(),
9474
+ await self.execute_async(params, req, runtime)
9475
+ )
9476
+
9477
+ def get_azure_blob_ingestion(
9478
+ self,
9479
+ project: str,
9480
+ azure_blob_ingestion_name: str,
9481
+ ) -> sls_20201230_models.GetAzureBlobIngestionResponse:
9482
+ """
9483
+ @summary 获取Azure blob文件导入任务信息
9484
+
9485
+ @return: GetAzureBlobIngestionResponse
9486
+ """
9487
+ runtime = util_models.RuntimeOptions()
9488
+ headers = {}
9489
+ return self.get_azure_blob_ingestion_with_options(project, azure_blob_ingestion_name, headers, runtime)
9490
+
9491
+ async def get_azure_blob_ingestion_async(
9492
+ self,
9493
+ project: str,
9494
+ azure_blob_ingestion_name: str,
9495
+ ) -> sls_20201230_models.GetAzureBlobIngestionResponse:
9496
+ """
9497
+ @summary 获取Azure blob文件导入任务信息
9498
+
9499
+ @return: GetAzureBlobIngestionResponse
9500
+ """
9501
+ runtime = util_models.RuntimeOptions()
9502
+ headers = {}
9503
+ return await self.get_azure_blob_ingestion_with_options_async(project, azure_blob_ingestion_name, headers, runtime)
9504
+
8703
9505
  def get_check_point_with_options(
8704
9506
  self,
8705
9507
  project: str,
@@ -9960,6 +10762,106 @@ class Client(OpenApiClient):
9960
10762
  headers = {}
9961
10763
  return await self.get_etlwith_options_async(project, etl_name, headers, runtime)
9962
10764
 
10765
+ def get_elasticsearch_ingestion_with_options(
10766
+ self,
10767
+ project: str,
10768
+ es_ingestion_name: str,
10769
+ headers: Dict[str, str],
10770
+ runtime: util_models.RuntimeOptions,
10771
+ ) -> sls_20201230_models.GetElasticsearchIngestionResponse:
10772
+ """
10773
+ @summary 获取ElasticSearch导入任务信息
10774
+
10775
+ @param headers: map
10776
+ @param runtime: runtime options for this request RuntimeOptions
10777
+ @return: GetElasticsearchIngestionResponse
10778
+ """
10779
+ host_map = {}
10780
+ host_map['project'] = project
10781
+ req = open_api_models.OpenApiRequest(
10782
+ host_map=host_map,
10783
+ headers=headers
10784
+ )
10785
+ params = open_api_models.Params(
10786
+ action='GetElasticsearchIngestion',
10787
+ version='2020-12-30',
10788
+ protocol='HTTPS',
10789
+ pathname=f'/elasticsearchingestions/{es_ingestion_name}',
10790
+ method='GET',
10791
+ auth_type='AK',
10792
+ style='ROA',
10793
+ req_body_type='json',
10794
+ body_type='json'
10795
+ )
10796
+ return TeaCore.from_map(
10797
+ sls_20201230_models.GetElasticsearchIngestionResponse(),
10798
+ self.execute(params, req, runtime)
10799
+ )
10800
+
10801
+ async def get_elasticsearch_ingestion_with_options_async(
10802
+ self,
10803
+ project: str,
10804
+ es_ingestion_name: str,
10805
+ headers: Dict[str, str],
10806
+ runtime: util_models.RuntimeOptions,
10807
+ ) -> sls_20201230_models.GetElasticsearchIngestionResponse:
10808
+ """
10809
+ @summary 获取ElasticSearch导入任务信息
10810
+
10811
+ @param headers: map
10812
+ @param runtime: runtime options for this request RuntimeOptions
10813
+ @return: GetElasticsearchIngestionResponse
10814
+ """
10815
+ host_map = {}
10816
+ host_map['project'] = project
10817
+ req = open_api_models.OpenApiRequest(
10818
+ host_map=host_map,
10819
+ headers=headers
10820
+ )
10821
+ params = open_api_models.Params(
10822
+ action='GetElasticsearchIngestion',
10823
+ version='2020-12-30',
10824
+ protocol='HTTPS',
10825
+ pathname=f'/elasticsearchingestions/{es_ingestion_name}',
10826
+ method='GET',
10827
+ auth_type='AK',
10828
+ style='ROA',
10829
+ req_body_type='json',
10830
+ body_type='json'
10831
+ )
10832
+ return TeaCore.from_map(
10833
+ sls_20201230_models.GetElasticsearchIngestionResponse(),
10834
+ await self.execute_async(params, req, runtime)
10835
+ )
10836
+
10837
+ def get_elasticsearch_ingestion(
10838
+ self,
10839
+ project: str,
10840
+ es_ingestion_name: str,
10841
+ ) -> sls_20201230_models.GetElasticsearchIngestionResponse:
10842
+ """
10843
+ @summary 获取ElasticSearch导入任务信息
10844
+
10845
+ @return: GetElasticsearchIngestionResponse
10846
+ """
10847
+ runtime = util_models.RuntimeOptions()
10848
+ headers = {}
10849
+ return self.get_elasticsearch_ingestion_with_options(project, es_ingestion_name, headers, runtime)
10850
+
10851
+ async def get_elasticsearch_ingestion_async(
10852
+ self,
10853
+ project: str,
10854
+ es_ingestion_name: str,
10855
+ ) -> sls_20201230_models.GetElasticsearchIngestionResponse:
10856
+ """
10857
+ @summary 获取ElasticSearch导入任务信息
10858
+
10859
+ @return: GetElasticsearchIngestionResponse
10860
+ """
10861
+ runtime = util_models.RuntimeOptions()
10862
+ headers = {}
10863
+ return await self.get_elasticsearch_ingestion_with_options_async(project, es_ingestion_name, headers, runtime)
10864
+
9963
10865
  def get_histograms_with_options(
9964
10866
  self,
9965
10867
  project: str,
@@ -12552,6 +13454,106 @@ class Client(OpenApiClient):
12552
13454
  headers = {}
12553
13455
  return await self.get_project_policy_with_options_async(project, headers, runtime)
12554
13456
 
13457
+ def get_s3ingestion_with_options(
13458
+ self,
13459
+ project: str,
13460
+ s_3ingestion_name: str,
13461
+ headers: Dict[str, str],
13462
+ runtime: util_models.RuntimeOptions,
13463
+ ) -> sls_20201230_models.GetS3IngestionResponse:
13464
+ """
13465
+ @summary 获取s3导入任务信息
13466
+
13467
+ @param headers: map
13468
+ @param runtime: runtime options for this request RuntimeOptions
13469
+ @return: GetS3IngestionResponse
13470
+ """
13471
+ host_map = {}
13472
+ host_map['project'] = project
13473
+ req = open_api_models.OpenApiRequest(
13474
+ host_map=host_map,
13475
+ headers=headers
13476
+ )
13477
+ params = open_api_models.Params(
13478
+ action='GetS3Ingestion',
13479
+ version='2020-12-30',
13480
+ protocol='HTTPS',
13481
+ pathname=f'/s3ingestions/{s_3ingestion_name}',
13482
+ method='GET',
13483
+ auth_type='AK',
13484
+ style='ROA',
13485
+ req_body_type='json',
13486
+ body_type='json'
13487
+ )
13488
+ return TeaCore.from_map(
13489
+ sls_20201230_models.GetS3IngestionResponse(),
13490
+ self.execute(params, req, runtime)
13491
+ )
13492
+
13493
+ async def get_s3ingestion_with_options_async(
13494
+ self,
13495
+ project: str,
13496
+ s_3ingestion_name: str,
13497
+ headers: Dict[str, str],
13498
+ runtime: util_models.RuntimeOptions,
13499
+ ) -> sls_20201230_models.GetS3IngestionResponse:
13500
+ """
13501
+ @summary 获取s3导入任务信息
13502
+
13503
+ @param headers: map
13504
+ @param runtime: runtime options for this request RuntimeOptions
13505
+ @return: GetS3IngestionResponse
13506
+ """
13507
+ host_map = {}
13508
+ host_map['project'] = project
13509
+ req = open_api_models.OpenApiRequest(
13510
+ host_map=host_map,
13511
+ headers=headers
13512
+ )
13513
+ params = open_api_models.Params(
13514
+ action='GetS3Ingestion',
13515
+ version='2020-12-30',
13516
+ protocol='HTTPS',
13517
+ pathname=f'/s3ingestions/{s_3ingestion_name}',
13518
+ method='GET',
13519
+ auth_type='AK',
13520
+ style='ROA',
13521
+ req_body_type='json',
13522
+ body_type='json'
13523
+ )
13524
+ return TeaCore.from_map(
13525
+ sls_20201230_models.GetS3IngestionResponse(),
13526
+ await self.execute_async(params, req, runtime)
13527
+ )
13528
+
13529
+ def get_s3ingestion(
13530
+ self,
13531
+ project: str,
13532
+ s_3ingestion_name: str,
13533
+ ) -> sls_20201230_models.GetS3IngestionResponse:
13534
+ """
13535
+ @summary 获取s3导入任务信息
13536
+
13537
+ @return: GetS3IngestionResponse
13538
+ """
13539
+ runtime = util_models.RuntimeOptions()
13540
+ headers = {}
13541
+ return self.get_s3ingestion_with_options(project, s_3ingestion_name, headers, runtime)
13542
+
13543
+ async def get_s3ingestion_async(
13544
+ self,
13545
+ project: str,
13546
+ s_3ingestion_name: str,
13547
+ ) -> sls_20201230_models.GetS3IngestionResponse:
13548
+ """
13549
+ @summary 获取s3导入任务信息
13550
+
13551
+ @return: GetS3IngestionResponse
13552
+ """
13553
+ runtime = util_models.RuntimeOptions()
13554
+ headers = {}
13555
+ return await self.get_s3ingestion_with_options_async(project, s_3ingestion_name, headers, runtime)
13556
+
12555
13557
  def get_saved_search_with_options(
12556
13558
  self,
12557
13559
  project: str,
@@ -13822,6 +14824,128 @@ class Client(OpenApiClient):
13822
14824
  headers = {}
13823
14825
  return await self.list_annotation_labels_with_options_async(request, headers, runtime)
13824
14826
 
14827
+ def list_azure_blob_ingestion_with_options(
14828
+ self,
14829
+ project: str,
14830
+ request: sls_20201230_models.ListAzureBlobIngestionRequest,
14831
+ headers: Dict[str, str],
14832
+ runtime: util_models.RuntimeOptions,
14833
+ ) -> sls_20201230_models.ListAzureBlobIngestionResponse:
14834
+ """
14835
+ @summary 列出Azure blob文件导入任务
14836
+
14837
+ @param request: ListAzureBlobIngestionRequest
14838
+ @param headers: map
14839
+ @param runtime: runtime options for this request RuntimeOptions
14840
+ @return: ListAzureBlobIngestionResponse
14841
+ """
14842
+ UtilClient.validate_model(request)
14843
+ host_map = {}
14844
+ host_map['project'] = project
14845
+ query = {}
14846
+ if not UtilClient.is_unset(request.logstore):
14847
+ query['logstore'] = request.logstore
14848
+ if not UtilClient.is_unset(request.offset):
14849
+ query['offset'] = request.offset
14850
+ if not UtilClient.is_unset(request.size):
14851
+ query['size'] = request.size
14852
+ req = open_api_models.OpenApiRequest(
14853
+ host_map=host_map,
14854
+ headers=headers,
14855
+ query=OpenApiUtilClient.query(query)
14856
+ )
14857
+ params = open_api_models.Params(
14858
+ action='ListAzureBlobIngestion',
14859
+ version='2020-12-30',
14860
+ protocol='HTTPS',
14861
+ pathname=f'/azureblobingestions',
14862
+ method='GET',
14863
+ auth_type='AK',
14864
+ style='ROA',
14865
+ req_body_type='json',
14866
+ body_type='json'
14867
+ )
14868
+ return TeaCore.from_map(
14869
+ sls_20201230_models.ListAzureBlobIngestionResponse(),
14870
+ self.execute(params, req, runtime)
14871
+ )
14872
+
14873
+ async def list_azure_blob_ingestion_with_options_async(
14874
+ self,
14875
+ project: str,
14876
+ request: sls_20201230_models.ListAzureBlobIngestionRequest,
14877
+ headers: Dict[str, str],
14878
+ runtime: util_models.RuntimeOptions,
14879
+ ) -> sls_20201230_models.ListAzureBlobIngestionResponse:
14880
+ """
14881
+ @summary 列出Azure blob文件导入任务
14882
+
14883
+ @param request: ListAzureBlobIngestionRequest
14884
+ @param headers: map
14885
+ @param runtime: runtime options for this request RuntimeOptions
14886
+ @return: ListAzureBlobIngestionResponse
14887
+ """
14888
+ UtilClient.validate_model(request)
14889
+ host_map = {}
14890
+ host_map['project'] = project
14891
+ query = {}
14892
+ if not UtilClient.is_unset(request.logstore):
14893
+ query['logstore'] = request.logstore
14894
+ if not UtilClient.is_unset(request.offset):
14895
+ query['offset'] = request.offset
14896
+ if not UtilClient.is_unset(request.size):
14897
+ query['size'] = request.size
14898
+ req = open_api_models.OpenApiRequest(
14899
+ host_map=host_map,
14900
+ headers=headers,
14901
+ query=OpenApiUtilClient.query(query)
14902
+ )
14903
+ params = open_api_models.Params(
14904
+ action='ListAzureBlobIngestion',
14905
+ version='2020-12-30',
14906
+ protocol='HTTPS',
14907
+ pathname=f'/azureblobingestions',
14908
+ method='GET',
14909
+ auth_type='AK',
14910
+ style='ROA',
14911
+ req_body_type='json',
14912
+ body_type='json'
14913
+ )
14914
+ return TeaCore.from_map(
14915
+ sls_20201230_models.ListAzureBlobIngestionResponse(),
14916
+ await self.execute_async(params, req, runtime)
14917
+ )
14918
+
14919
+ def list_azure_blob_ingestion(
14920
+ self,
14921
+ project: str,
14922
+ request: sls_20201230_models.ListAzureBlobIngestionRequest,
14923
+ ) -> sls_20201230_models.ListAzureBlobIngestionResponse:
14924
+ """
14925
+ @summary 列出Azure blob文件导入任务
14926
+
14927
+ @param request: ListAzureBlobIngestionRequest
14928
+ @return: ListAzureBlobIngestionResponse
14929
+ """
14930
+ runtime = util_models.RuntimeOptions()
14931
+ headers = {}
14932
+ return self.list_azure_blob_ingestion_with_options(project, request, headers, runtime)
14933
+
14934
+ async def list_azure_blob_ingestion_async(
14935
+ self,
14936
+ project: str,
14937
+ request: sls_20201230_models.ListAzureBlobIngestionRequest,
14938
+ ) -> sls_20201230_models.ListAzureBlobIngestionResponse:
14939
+ """
14940
+ @summary 列出Azure blob文件导入任务
14941
+
14942
+ @param request: ListAzureBlobIngestionRequest
14943
+ @return: ListAzureBlobIngestionResponse
14944
+ """
14945
+ runtime = util_models.RuntimeOptions()
14946
+ headers = {}
14947
+ return await self.list_azure_blob_ingestion_with_options_async(project, request, headers, runtime)
14948
+
13825
14949
  def list_collection_policies_with_options(
13826
14950
  self,
13827
14951
  request: sls_20201230_models.ListCollectionPoliciesRequest,
@@ -14918,31 +16042,29 @@ class Client(OpenApiClient):
14918
16042
  headers = {}
14919
16043
  return await self.list_etls_with_options_async(project, request, headers, runtime)
14920
16044
 
14921
- def list_ingest_processors_with_options(
16045
+ def list_elasticsearch_ingestions_with_options(
14922
16046
  self,
14923
16047
  project: str,
14924
- request: sls_20201230_models.ListIngestProcessorsRequest,
16048
+ request: sls_20201230_models.ListElasticsearchIngestionsRequest,
14925
16049
  headers: Dict[str, str],
14926
16050
  runtime: util_models.RuntimeOptions,
14927
- ) -> sls_20201230_models.ListIngestProcessorsResponse:
16051
+ ) -> sls_20201230_models.ListElasticsearchIngestionsResponse:
14928
16052
  """
14929
- @summary Queries a list of ingest processors that meet specific conditions.
16053
+ @summary 创建ES导入任务
14930
16054
 
14931
- @param request: ListIngestProcessorsRequest
16055
+ @param request: ListElasticsearchIngestionsRequest
14932
16056
  @param headers: map
14933
16057
  @param runtime: runtime options for this request RuntimeOptions
14934
- @return: ListIngestProcessorsResponse
16058
+ @return: ListElasticsearchIngestionsResponse
14935
16059
  """
14936
16060
  UtilClient.validate_model(request)
14937
16061
  host_map = {}
14938
16062
  host_map['project'] = project
14939
16063
  query = {}
14940
- if not UtilClient.is_unset(request.display_name):
14941
- query['displayName'] = request.display_name
16064
+ if not UtilClient.is_unset(request.logstore):
16065
+ query['logstore'] = request.logstore
14942
16066
  if not UtilClient.is_unset(request.offset):
14943
16067
  query['offset'] = request.offset
14944
- if not UtilClient.is_unset(request.processor_name):
14945
- query['processorName'] = request.processor_name
14946
16068
  if not UtilClient.is_unset(request.size):
14947
16069
  query['size'] = request.size
14948
16070
  req = open_api_models.OpenApiRequest(
@@ -14951,10 +16073,10 @@ class Client(OpenApiClient):
14951
16073
  query=OpenApiUtilClient.query(query)
14952
16074
  )
14953
16075
  params = open_api_models.Params(
14954
- action='ListIngestProcessors',
16076
+ action='ListElasticsearchIngestions',
14955
16077
  version='2020-12-30',
14956
16078
  protocol='HTTPS',
14957
- pathname=f'/ingestprocessors',
16079
+ pathname=f'/elasticsearchingestions',
14958
16080
  method='GET',
14959
16081
  auth_type='AK',
14960
16082
  style='ROA',
@@ -14962,30 +16084,154 @@ class Client(OpenApiClient):
14962
16084
  body_type='json'
14963
16085
  )
14964
16086
  return TeaCore.from_map(
14965
- sls_20201230_models.ListIngestProcessorsResponse(),
16087
+ sls_20201230_models.ListElasticsearchIngestionsResponse(),
14966
16088
  self.execute(params, req, runtime)
14967
16089
  )
14968
16090
 
14969
- async def list_ingest_processors_with_options_async(
16091
+ async def list_elasticsearch_ingestions_with_options_async(
14970
16092
  self,
14971
16093
  project: str,
14972
- request: sls_20201230_models.ListIngestProcessorsRequest,
16094
+ request: sls_20201230_models.ListElasticsearchIngestionsRequest,
14973
16095
  headers: Dict[str, str],
14974
16096
  runtime: util_models.RuntimeOptions,
14975
- ) -> sls_20201230_models.ListIngestProcessorsResponse:
16097
+ ) -> sls_20201230_models.ListElasticsearchIngestionsResponse:
14976
16098
  """
14977
- @summary Queries a list of ingest processors that meet specific conditions.
16099
+ @summary 创建ES导入任务
14978
16100
 
14979
- @param request: ListIngestProcessorsRequest
16101
+ @param request: ListElasticsearchIngestionsRequest
14980
16102
  @param headers: map
14981
16103
  @param runtime: runtime options for this request RuntimeOptions
14982
- @return: ListIngestProcessorsResponse
16104
+ @return: ListElasticsearchIngestionsResponse
14983
16105
  """
14984
16106
  UtilClient.validate_model(request)
14985
16107
  host_map = {}
14986
16108
  host_map['project'] = project
14987
16109
  query = {}
14988
- if not UtilClient.is_unset(request.display_name):
16110
+ if not UtilClient.is_unset(request.logstore):
16111
+ query['logstore'] = request.logstore
16112
+ if not UtilClient.is_unset(request.offset):
16113
+ query['offset'] = request.offset
16114
+ if not UtilClient.is_unset(request.size):
16115
+ query['size'] = request.size
16116
+ req = open_api_models.OpenApiRequest(
16117
+ host_map=host_map,
16118
+ headers=headers,
16119
+ query=OpenApiUtilClient.query(query)
16120
+ )
16121
+ params = open_api_models.Params(
16122
+ action='ListElasticsearchIngestions',
16123
+ version='2020-12-30',
16124
+ protocol='HTTPS',
16125
+ pathname=f'/elasticsearchingestions',
16126
+ method='GET',
16127
+ auth_type='AK',
16128
+ style='ROA',
16129
+ req_body_type='json',
16130
+ body_type='json'
16131
+ )
16132
+ return TeaCore.from_map(
16133
+ sls_20201230_models.ListElasticsearchIngestionsResponse(),
16134
+ await self.execute_async(params, req, runtime)
16135
+ )
16136
+
16137
+ def list_elasticsearch_ingestions(
16138
+ self,
16139
+ project: str,
16140
+ request: sls_20201230_models.ListElasticsearchIngestionsRequest,
16141
+ ) -> sls_20201230_models.ListElasticsearchIngestionsResponse:
16142
+ """
16143
+ @summary 创建ES导入任务
16144
+
16145
+ @param request: ListElasticsearchIngestionsRequest
16146
+ @return: ListElasticsearchIngestionsResponse
16147
+ """
16148
+ runtime = util_models.RuntimeOptions()
16149
+ headers = {}
16150
+ return self.list_elasticsearch_ingestions_with_options(project, request, headers, runtime)
16151
+
16152
+ async def list_elasticsearch_ingestions_async(
16153
+ self,
16154
+ project: str,
16155
+ request: sls_20201230_models.ListElasticsearchIngestionsRequest,
16156
+ ) -> sls_20201230_models.ListElasticsearchIngestionsResponse:
16157
+ """
16158
+ @summary 创建ES导入任务
16159
+
16160
+ @param request: ListElasticsearchIngestionsRequest
16161
+ @return: ListElasticsearchIngestionsResponse
16162
+ """
16163
+ runtime = util_models.RuntimeOptions()
16164
+ headers = {}
16165
+ return await self.list_elasticsearch_ingestions_with_options_async(project, request, headers, runtime)
16166
+
16167
+ def list_ingest_processors_with_options(
16168
+ self,
16169
+ project: str,
16170
+ request: sls_20201230_models.ListIngestProcessorsRequest,
16171
+ headers: Dict[str, str],
16172
+ runtime: util_models.RuntimeOptions,
16173
+ ) -> sls_20201230_models.ListIngestProcessorsResponse:
16174
+ """
16175
+ @summary Queries a list of ingest processors that meet specific conditions.
16176
+
16177
+ @param request: ListIngestProcessorsRequest
16178
+ @param headers: map
16179
+ @param runtime: runtime options for this request RuntimeOptions
16180
+ @return: ListIngestProcessorsResponse
16181
+ """
16182
+ UtilClient.validate_model(request)
16183
+ host_map = {}
16184
+ host_map['project'] = project
16185
+ query = {}
16186
+ if not UtilClient.is_unset(request.display_name):
16187
+ query['displayName'] = request.display_name
16188
+ if not UtilClient.is_unset(request.offset):
16189
+ query['offset'] = request.offset
16190
+ if not UtilClient.is_unset(request.processor_name):
16191
+ query['processorName'] = request.processor_name
16192
+ if not UtilClient.is_unset(request.size):
16193
+ query['size'] = request.size
16194
+ req = open_api_models.OpenApiRequest(
16195
+ host_map=host_map,
16196
+ headers=headers,
16197
+ query=OpenApiUtilClient.query(query)
16198
+ )
16199
+ params = open_api_models.Params(
16200
+ action='ListIngestProcessors',
16201
+ version='2020-12-30',
16202
+ protocol='HTTPS',
16203
+ pathname=f'/ingestprocessors',
16204
+ method='GET',
16205
+ auth_type='AK',
16206
+ style='ROA',
16207
+ req_body_type='json',
16208
+ body_type='json'
16209
+ )
16210
+ return TeaCore.from_map(
16211
+ sls_20201230_models.ListIngestProcessorsResponse(),
16212
+ self.execute(params, req, runtime)
16213
+ )
16214
+
16215
+ async def list_ingest_processors_with_options_async(
16216
+ self,
16217
+ project: str,
16218
+ request: sls_20201230_models.ListIngestProcessorsRequest,
16219
+ headers: Dict[str, str],
16220
+ runtime: util_models.RuntimeOptions,
16221
+ ) -> sls_20201230_models.ListIngestProcessorsResponse:
16222
+ """
16223
+ @summary Queries a list of ingest processors that meet specific conditions.
16224
+
16225
+ @param request: ListIngestProcessorsRequest
16226
+ @param headers: map
16227
+ @param runtime: runtime options for this request RuntimeOptions
16228
+ @return: ListIngestProcessorsResponse
16229
+ """
16230
+ UtilClient.validate_model(request)
16231
+ host_map = {}
16232
+ host_map['project'] = project
16233
+ query = {}
16234
+ if not UtilClient.is_unset(request.display_name):
14989
16235
  query['displayName'] = request.display_name
14990
16236
  if not UtilClient.is_unset(request.offset):
14991
16237
  query['offset'] = request.offset
@@ -16289,6 +17535,8 @@ class Client(OpenApiClient):
16289
17535
  """
16290
17536
  UtilClient.validate_model(request)
16291
17537
  query = {}
17538
+ if not UtilClient.is_unset(request.description):
17539
+ query['description'] = request.description
16292
17540
  if not UtilClient.is_unset(request.fetch_quota):
16293
17541
  query['fetchQuota'] = request.fetch_quota
16294
17542
  if not UtilClient.is_unset(request.offset):
@@ -16338,6 +17586,8 @@ class Client(OpenApiClient):
16338
17586
  """
16339
17587
  UtilClient.validate_model(request)
16340
17588
  query = {}
17589
+ if not UtilClient.is_unset(request.description):
17590
+ query['description'] = request.description
16341
17591
  if not UtilClient.is_unset(request.fetch_quota):
16342
17592
  query['fetchQuota'] = request.fetch_quota
16343
17593
  if not UtilClient.is_unset(request.offset):
@@ -16402,6 +17652,128 @@ class Client(OpenApiClient):
16402
17652
  headers = {}
16403
17653
  return await self.list_project_with_options_async(request, headers, runtime)
16404
17654
 
17655
+ def list_s3ingestions_with_options(
17656
+ self,
17657
+ project: str,
17658
+ request: sls_20201230_models.ListS3IngestionsRequest,
17659
+ headers: Dict[str, str],
17660
+ runtime: util_models.RuntimeOptions,
17661
+ ) -> sls_20201230_models.ListS3IngestionsResponse:
17662
+ """
17663
+ @summary 列出s3导入任务
17664
+
17665
+ @param request: ListS3IngestionsRequest
17666
+ @param headers: map
17667
+ @param runtime: runtime options for this request RuntimeOptions
17668
+ @return: ListS3IngestionsResponse
17669
+ """
17670
+ UtilClient.validate_model(request)
17671
+ host_map = {}
17672
+ host_map['project'] = project
17673
+ query = {}
17674
+ if not UtilClient.is_unset(request.logstore):
17675
+ query['logstore'] = request.logstore
17676
+ if not UtilClient.is_unset(request.offset):
17677
+ query['offset'] = request.offset
17678
+ if not UtilClient.is_unset(request.size):
17679
+ query['size'] = request.size
17680
+ req = open_api_models.OpenApiRequest(
17681
+ host_map=host_map,
17682
+ headers=headers,
17683
+ query=OpenApiUtilClient.query(query)
17684
+ )
17685
+ params = open_api_models.Params(
17686
+ action='ListS3Ingestions',
17687
+ version='2020-12-30',
17688
+ protocol='HTTPS',
17689
+ pathname=f'/s3ingestions',
17690
+ method='GET',
17691
+ auth_type='AK',
17692
+ style='ROA',
17693
+ req_body_type='json',
17694
+ body_type='json'
17695
+ )
17696
+ return TeaCore.from_map(
17697
+ sls_20201230_models.ListS3IngestionsResponse(),
17698
+ self.execute(params, req, runtime)
17699
+ )
17700
+
17701
+ async def list_s3ingestions_with_options_async(
17702
+ self,
17703
+ project: str,
17704
+ request: sls_20201230_models.ListS3IngestionsRequest,
17705
+ headers: Dict[str, str],
17706
+ runtime: util_models.RuntimeOptions,
17707
+ ) -> sls_20201230_models.ListS3IngestionsResponse:
17708
+ """
17709
+ @summary 列出s3导入任务
17710
+
17711
+ @param request: ListS3IngestionsRequest
17712
+ @param headers: map
17713
+ @param runtime: runtime options for this request RuntimeOptions
17714
+ @return: ListS3IngestionsResponse
17715
+ """
17716
+ UtilClient.validate_model(request)
17717
+ host_map = {}
17718
+ host_map['project'] = project
17719
+ query = {}
17720
+ if not UtilClient.is_unset(request.logstore):
17721
+ query['logstore'] = request.logstore
17722
+ if not UtilClient.is_unset(request.offset):
17723
+ query['offset'] = request.offset
17724
+ if not UtilClient.is_unset(request.size):
17725
+ query['size'] = request.size
17726
+ req = open_api_models.OpenApiRequest(
17727
+ host_map=host_map,
17728
+ headers=headers,
17729
+ query=OpenApiUtilClient.query(query)
17730
+ )
17731
+ params = open_api_models.Params(
17732
+ action='ListS3Ingestions',
17733
+ version='2020-12-30',
17734
+ protocol='HTTPS',
17735
+ pathname=f'/s3ingestions',
17736
+ method='GET',
17737
+ auth_type='AK',
17738
+ style='ROA',
17739
+ req_body_type='json',
17740
+ body_type='json'
17741
+ )
17742
+ return TeaCore.from_map(
17743
+ sls_20201230_models.ListS3IngestionsResponse(),
17744
+ await self.execute_async(params, req, runtime)
17745
+ )
17746
+
17747
+ def list_s3ingestions(
17748
+ self,
17749
+ project: str,
17750
+ request: sls_20201230_models.ListS3IngestionsRequest,
17751
+ ) -> sls_20201230_models.ListS3IngestionsResponse:
17752
+ """
17753
+ @summary 列出s3导入任务
17754
+
17755
+ @param request: ListS3IngestionsRequest
17756
+ @return: ListS3IngestionsResponse
17757
+ """
17758
+ runtime = util_models.RuntimeOptions()
17759
+ headers = {}
17760
+ return self.list_s3ingestions_with_options(project, request, headers, runtime)
17761
+
17762
+ async def list_s3ingestions_async(
17763
+ self,
17764
+ project: str,
17765
+ request: sls_20201230_models.ListS3IngestionsRequest,
17766
+ ) -> sls_20201230_models.ListS3IngestionsResponse:
17767
+ """
17768
+ @summary 列出s3导入任务
17769
+
17770
+ @param request: ListS3IngestionsRequest
17771
+ @return: ListS3IngestionsResponse
17772
+ """
17773
+ runtime = util_models.RuntimeOptions()
17774
+ headers = {}
17775
+ return await self.list_s3ingestions_with_options_async(project, request, headers, runtime)
17776
+
16405
17777
  def list_saved_search_with_options(
16406
17778
  self,
16407
17779
  project: str,
@@ -17262,6 +18634,8 @@ class Client(OpenApiClient):
17262
18634
  @return: PullLogsResponse
17263
18635
  """
17264
18636
  UtilClient.validate_model(request)
18637
+ host_map = {}
18638
+ host_map['project'] = project
17265
18639
  query = {}
17266
18640
  if not UtilClient.is_unset(request.count):
17267
18641
  query['count'] = request.count
@@ -17277,6 +18651,7 @@ class Client(OpenApiClient):
17277
18651
  if not UtilClient.is_unset(headers.accept_encoding):
17278
18652
  real_headers['Accept-Encoding'] = UtilClient.to_jsonstring(headers.accept_encoding)
17279
18653
  req = open_api_models.OpenApiRequest(
18654
+ host_map=host_map,
17280
18655
  headers=real_headers,
17281
18656
  query=OpenApiUtilClient.query(query)
17282
18657
  )
@@ -17320,6 +18695,8 @@ class Client(OpenApiClient):
17320
18695
  @return: PullLogsResponse
17321
18696
  """
17322
18697
  UtilClient.validate_model(request)
18698
+ host_map = {}
18699
+ host_map['project'] = project
17323
18700
  query = {}
17324
18701
  if not UtilClient.is_unset(request.count):
17325
18702
  query['count'] = request.count
@@ -17335,6 +18712,7 @@ class Client(OpenApiClient):
17335
18712
  if not UtilClient.is_unset(headers.accept_encoding):
17336
18713
  real_headers['Accept-Encoding'] = UtilClient.to_jsonstring(headers.accept_encoding)
17337
18714
  req = open_api_models.OpenApiRequest(
18715
+ host_map=host_map,
17338
18716
  headers=real_headers,
17339
18717
  query=OpenApiUtilClient.query(query)
17340
18718
  )
@@ -18712,19 +20090,19 @@ class Client(OpenApiClient):
18712
20090
  headers = {}
18713
20091
  return await self.split_shard_with_options_async(project, logstore, shard, request, headers, runtime)
18714
20092
 
18715
- def start_etlwith_options(
20093
+ def start_azure_blob_ingestion_with_options(
18716
20094
  self,
18717
20095
  project: str,
18718
- etl_name: str,
20096
+ azure_blob_ingestion_name: str,
18719
20097
  headers: Dict[str, str],
18720
20098
  runtime: util_models.RuntimeOptions,
18721
- ) -> sls_20201230_models.StartETLResponse:
20099
+ ) -> sls_20201230_models.StartAzureBlobIngestionResponse:
18722
20100
  """
18723
- @summary Starts a data transformation job.
20101
+ @summary 启动Azure blob文件导入任务
18724
20102
 
18725
20103
  @param headers: map
18726
20104
  @param runtime: runtime options for this request RuntimeOptions
18727
- @return: StartETLResponse
20105
+ @return: StartAzureBlobIngestionResponse
18728
20106
  """
18729
20107
  host_map = {}
18730
20108
  host_map['project'] = project
@@ -18733,10 +20111,10 @@ class Client(OpenApiClient):
18733
20111
  headers=headers
18734
20112
  )
18735
20113
  params = open_api_models.Params(
18736
- action='StartETL',
20114
+ action='StartAzureBlobIngestion',
18737
20115
  version='2020-12-30',
18738
20116
  protocol='HTTPS',
18739
- pathname=f'/etls/{etl_name}?action=START',
20117
+ pathname=f'/azureblobingestions/{azure_blob_ingestion_name}?action=START',
18740
20118
  method='PUT',
18741
20119
  auth_type='AK',
18742
20120
  style='ROA',
@@ -18744,23 +20122,23 @@ class Client(OpenApiClient):
18744
20122
  body_type='none'
18745
20123
  )
18746
20124
  return TeaCore.from_map(
18747
- sls_20201230_models.StartETLResponse(),
20125
+ sls_20201230_models.StartAzureBlobIngestionResponse(),
18748
20126
  self.execute(params, req, runtime)
18749
20127
  )
18750
20128
 
18751
- async def start_etlwith_options_async(
20129
+ async def start_azure_blob_ingestion_with_options_async(
18752
20130
  self,
18753
20131
  project: str,
18754
- etl_name: str,
20132
+ azure_blob_ingestion_name: str,
18755
20133
  headers: Dict[str, str],
18756
20134
  runtime: util_models.RuntimeOptions,
18757
- ) -> sls_20201230_models.StartETLResponse:
20135
+ ) -> sls_20201230_models.StartAzureBlobIngestionResponse:
18758
20136
  """
18759
- @summary Starts a data transformation job.
20137
+ @summary 启动Azure blob文件导入任务
18760
20138
 
18761
20139
  @param headers: map
18762
20140
  @param runtime: runtime options for this request RuntimeOptions
18763
- @return: StartETLResponse
20141
+ @return: StartAzureBlobIngestionResponse
18764
20142
  """
18765
20143
  host_map = {}
18766
20144
  host_map['project'] = project
@@ -18769,10 +20147,10 @@ class Client(OpenApiClient):
18769
20147
  headers=headers
18770
20148
  )
18771
20149
  params = open_api_models.Params(
18772
- action='StartETL',
20150
+ action='StartAzureBlobIngestion',
18773
20151
  version='2020-12-30',
18774
20152
  protocol='HTTPS',
18775
- pathname=f'/etls/{etl_name}?action=START',
20153
+ pathname=f'/azureblobingestions/{azure_blob_ingestion_name}?action=START',
18776
20154
  method='PUT',
18777
20155
  auth_type='AK',
18778
20156
  style='ROA',
@@ -18780,56 +20158,51 @@ class Client(OpenApiClient):
18780
20158
  body_type='none'
18781
20159
  )
18782
20160
  return TeaCore.from_map(
18783
- sls_20201230_models.StartETLResponse(),
20161
+ sls_20201230_models.StartAzureBlobIngestionResponse(),
18784
20162
  await self.execute_async(params, req, runtime)
18785
20163
  )
18786
20164
 
18787
- def start_etl(
20165
+ def start_azure_blob_ingestion(
18788
20166
  self,
18789
20167
  project: str,
18790
- etl_name: str,
18791
- ) -> sls_20201230_models.StartETLResponse:
20168
+ azure_blob_ingestion_name: str,
20169
+ ) -> sls_20201230_models.StartAzureBlobIngestionResponse:
18792
20170
  """
18793
- @summary Starts a data transformation job.
20171
+ @summary 启动Azure blob文件导入任务
18794
20172
 
18795
- @return: StartETLResponse
20173
+ @return: StartAzureBlobIngestionResponse
18796
20174
  """
18797
20175
  runtime = util_models.RuntimeOptions()
18798
20176
  headers = {}
18799
- return self.start_etlwith_options(project, etl_name, headers, runtime)
20177
+ return self.start_azure_blob_ingestion_with_options(project, azure_blob_ingestion_name, headers, runtime)
18800
20178
 
18801
- async def start_etl_async(
20179
+ async def start_azure_blob_ingestion_async(
18802
20180
  self,
18803
20181
  project: str,
18804
- etl_name: str,
18805
- ) -> sls_20201230_models.StartETLResponse:
20182
+ azure_blob_ingestion_name: str,
20183
+ ) -> sls_20201230_models.StartAzureBlobIngestionResponse:
18806
20184
  """
18807
- @summary Starts a data transformation job.
20185
+ @summary 启动Azure blob文件导入任务
18808
20186
 
18809
- @return: StartETLResponse
20187
+ @return: StartAzureBlobIngestionResponse
18810
20188
  """
18811
20189
  runtime = util_models.RuntimeOptions()
18812
20190
  headers = {}
18813
- return await self.start_etlwith_options_async(project, etl_name, headers, runtime)
20191
+ return await self.start_azure_blob_ingestion_with_options_async(project, azure_blob_ingestion_name, headers, runtime)
18814
20192
 
18815
- def start_max_compute_export_with_options(
20193
+ def start_etlwith_options(
18816
20194
  self,
18817
20195
  project: str,
18818
- mc_export_name: str,
20196
+ etl_name: str,
18819
20197
  headers: Dict[str, str],
18820
20198
  runtime: util_models.RuntimeOptions,
18821
- ) -> sls_20201230_models.StartMaxComputeExportResponse:
20199
+ ) -> sls_20201230_models.StartETLResponse:
18822
20200
  """
18823
- @summary Starts a MaxCompute data shipping job.
18824
-
18825
- @description Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
18826
- An AccessKey pair is created and obtained. For more information, see [AccessKey pair](https://help.aliyun.com/document_detail/29009.html).
18827
- 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).
18828
- 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).
20201
+ @summary Starts a data transformation job.
18829
20202
 
18830
20203
  @param headers: map
18831
20204
  @param runtime: runtime options for this request RuntimeOptions
18832
- @return: StartMaxComputeExportResponse
20205
+ @return: StartETLResponse
18833
20206
  """
18834
20207
  host_map = {}
18835
20208
  host_map['project'] = project
@@ -18838,10 +20211,10 @@ class Client(OpenApiClient):
18838
20211
  headers=headers
18839
20212
  )
18840
20213
  params = open_api_models.Params(
18841
- action='StartMaxComputeExport',
20214
+ action='StartETL',
18842
20215
  version='2020-12-30',
18843
20216
  protocol='HTTPS',
18844
- pathname=f'/maxcomputeexports/{mc_export_name}?action=START',
20217
+ pathname=f'/etls/{etl_name}?action=START',
18845
20218
  method='PUT',
18846
20219
  auth_type='AK',
18847
20220
  style='ROA',
@@ -18849,11 +20222,216 @@ class Client(OpenApiClient):
18849
20222
  body_type='none'
18850
20223
  )
18851
20224
  return TeaCore.from_map(
18852
- sls_20201230_models.StartMaxComputeExportResponse(),
20225
+ sls_20201230_models.StartETLResponse(),
18853
20226
  self.execute(params, req, runtime)
18854
20227
  )
18855
20228
 
18856
- async def start_max_compute_export_with_options_async(
20229
+ async def start_etlwith_options_async(
20230
+ self,
20231
+ project: str,
20232
+ etl_name: str,
20233
+ headers: Dict[str, str],
20234
+ runtime: util_models.RuntimeOptions,
20235
+ ) -> sls_20201230_models.StartETLResponse:
20236
+ """
20237
+ @summary Starts a data transformation job.
20238
+
20239
+ @param headers: map
20240
+ @param runtime: runtime options for this request RuntimeOptions
20241
+ @return: StartETLResponse
20242
+ """
20243
+ host_map = {}
20244
+ host_map['project'] = project
20245
+ req = open_api_models.OpenApiRequest(
20246
+ host_map=host_map,
20247
+ headers=headers
20248
+ )
20249
+ params = open_api_models.Params(
20250
+ action='StartETL',
20251
+ version='2020-12-30',
20252
+ protocol='HTTPS',
20253
+ pathname=f'/etls/{etl_name}?action=START',
20254
+ method='PUT',
20255
+ auth_type='AK',
20256
+ style='ROA',
20257
+ req_body_type='json',
20258
+ body_type='none'
20259
+ )
20260
+ return TeaCore.from_map(
20261
+ sls_20201230_models.StartETLResponse(),
20262
+ await self.execute_async(params, req, runtime)
20263
+ )
20264
+
20265
+ def start_etl(
20266
+ self,
20267
+ project: str,
20268
+ etl_name: str,
20269
+ ) -> sls_20201230_models.StartETLResponse:
20270
+ """
20271
+ @summary Starts a data transformation job.
20272
+
20273
+ @return: StartETLResponse
20274
+ """
20275
+ runtime = util_models.RuntimeOptions()
20276
+ headers = {}
20277
+ return self.start_etlwith_options(project, etl_name, headers, runtime)
20278
+
20279
+ async def start_etl_async(
20280
+ self,
20281
+ project: str,
20282
+ etl_name: str,
20283
+ ) -> sls_20201230_models.StartETLResponse:
20284
+ """
20285
+ @summary Starts a data transformation job.
20286
+
20287
+ @return: StartETLResponse
20288
+ """
20289
+ runtime = util_models.RuntimeOptions()
20290
+ headers = {}
20291
+ return await self.start_etlwith_options_async(project, etl_name, headers, runtime)
20292
+
20293
+ def start_elasticsearch_ingestion_with_options(
20294
+ self,
20295
+ project: str,
20296
+ elasticsearch_ingestion_name: str,
20297
+ headers: Dict[str, str],
20298
+ runtime: util_models.RuntimeOptions,
20299
+ ) -> sls_20201230_models.StartElasticsearchIngestionResponse:
20300
+ """
20301
+ @summary 启动ES导入任务
20302
+
20303
+ @param headers: map
20304
+ @param runtime: runtime options for this request RuntimeOptions
20305
+ @return: StartElasticsearchIngestionResponse
20306
+ """
20307
+ host_map = {}
20308
+ host_map['project'] = project
20309
+ req = open_api_models.OpenApiRequest(
20310
+ host_map=host_map,
20311
+ headers=headers
20312
+ )
20313
+ params = open_api_models.Params(
20314
+ action='StartElasticsearchIngestion',
20315
+ version='2020-12-30',
20316
+ protocol='HTTPS',
20317
+ pathname=f'/elasticsearchingestions/{elasticsearch_ingestion_name}',
20318
+ method='PUT',
20319
+ auth_type='AK',
20320
+ style='ROA',
20321
+ req_body_type='json',
20322
+ body_type='none'
20323
+ )
20324
+ return TeaCore.from_map(
20325
+ sls_20201230_models.StartElasticsearchIngestionResponse(),
20326
+ self.execute(params, req, runtime)
20327
+ )
20328
+
20329
+ async def start_elasticsearch_ingestion_with_options_async(
20330
+ self,
20331
+ project: str,
20332
+ elasticsearch_ingestion_name: str,
20333
+ headers: Dict[str, str],
20334
+ runtime: util_models.RuntimeOptions,
20335
+ ) -> sls_20201230_models.StartElasticsearchIngestionResponse:
20336
+ """
20337
+ @summary 启动ES导入任务
20338
+
20339
+ @param headers: map
20340
+ @param runtime: runtime options for this request RuntimeOptions
20341
+ @return: StartElasticsearchIngestionResponse
20342
+ """
20343
+ host_map = {}
20344
+ host_map['project'] = project
20345
+ req = open_api_models.OpenApiRequest(
20346
+ host_map=host_map,
20347
+ headers=headers
20348
+ )
20349
+ params = open_api_models.Params(
20350
+ action='StartElasticsearchIngestion',
20351
+ version='2020-12-30',
20352
+ protocol='HTTPS',
20353
+ pathname=f'/elasticsearchingestions/{elasticsearch_ingestion_name}',
20354
+ method='PUT',
20355
+ auth_type='AK',
20356
+ style='ROA',
20357
+ req_body_type='json',
20358
+ body_type='none'
20359
+ )
20360
+ return TeaCore.from_map(
20361
+ sls_20201230_models.StartElasticsearchIngestionResponse(),
20362
+ await self.execute_async(params, req, runtime)
20363
+ )
20364
+
20365
+ def start_elasticsearch_ingestion(
20366
+ self,
20367
+ project: str,
20368
+ elasticsearch_ingestion_name: str,
20369
+ ) -> sls_20201230_models.StartElasticsearchIngestionResponse:
20370
+ """
20371
+ @summary 启动ES导入任务
20372
+
20373
+ @return: StartElasticsearchIngestionResponse
20374
+ """
20375
+ runtime = util_models.RuntimeOptions()
20376
+ headers = {}
20377
+ return self.start_elasticsearch_ingestion_with_options(project, elasticsearch_ingestion_name, headers, runtime)
20378
+
20379
+ async def start_elasticsearch_ingestion_async(
20380
+ self,
20381
+ project: str,
20382
+ elasticsearch_ingestion_name: str,
20383
+ ) -> sls_20201230_models.StartElasticsearchIngestionResponse:
20384
+ """
20385
+ @summary 启动ES导入任务
20386
+
20387
+ @return: StartElasticsearchIngestionResponse
20388
+ """
20389
+ runtime = util_models.RuntimeOptions()
20390
+ headers = {}
20391
+ return await self.start_elasticsearch_ingestion_with_options_async(project, elasticsearch_ingestion_name, headers, runtime)
20392
+
20393
+ def start_max_compute_export_with_options(
20394
+ self,
20395
+ project: str,
20396
+ mc_export_name: str,
20397
+ headers: Dict[str, str],
20398
+ runtime: util_models.RuntimeOptions,
20399
+ ) -> sls_20201230_models.StartMaxComputeExportResponse:
20400
+ """
20401
+ @summary Starts a MaxCompute data shipping job.
20402
+
20403
+ @description Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
20404
+ An AccessKey pair is created and obtained. For more information, see [AccessKey pair](https://help.aliyun.com/document_detail/29009.html).
20405
+ 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).
20406
+ 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).
20407
+
20408
+ @param headers: map
20409
+ @param runtime: runtime options for this request RuntimeOptions
20410
+ @return: StartMaxComputeExportResponse
20411
+ """
20412
+ host_map = {}
20413
+ host_map['project'] = project
20414
+ req = open_api_models.OpenApiRequest(
20415
+ host_map=host_map,
20416
+ headers=headers
20417
+ )
20418
+ params = open_api_models.Params(
20419
+ action='StartMaxComputeExport',
20420
+ version='2020-12-30',
20421
+ protocol='HTTPS',
20422
+ pathname=f'/maxcomputeexports/{mc_export_name}?action=START',
20423
+ method='PUT',
20424
+ auth_type='AK',
20425
+ style='ROA',
20426
+ req_body_type='json',
20427
+ body_type='none'
20428
+ )
20429
+ return TeaCore.from_map(
20430
+ sls_20201230_models.StartMaxComputeExportResponse(),
20431
+ self.execute(params, req, runtime)
20432
+ )
20433
+
20434
+ async def start_max_compute_export_with_options_async(
18857
20435
  self,
18858
20436
  project: str,
18859
20437
  mc_export_name: str,
@@ -19174,13 +20752,213 @@ class Client(OpenApiClient):
19174
20752
  oss_ingestion_name: str,
19175
20753
  headers: Dict[str, str],
19176
20754
  runtime: util_models.RuntimeOptions,
19177
- ) -> sls_20201230_models.StartOSSIngestionResponse:
20755
+ ) -> sls_20201230_models.StartOSSIngestionResponse:
20756
+ """
20757
+ @summary Starts an Object Storage Service (OSS) data import job.
20758
+
20759
+ @param headers: map
20760
+ @param runtime: runtime options for this request RuntimeOptions
20761
+ @return: StartOSSIngestionResponse
20762
+ """
20763
+ host_map = {}
20764
+ host_map['project'] = project
20765
+ req = open_api_models.OpenApiRequest(
20766
+ host_map=host_map,
20767
+ headers=headers
20768
+ )
20769
+ params = open_api_models.Params(
20770
+ action='StartOSSIngestion',
20771
+ version='2020-12-30',
20772
+ protocol='HTTPS',
20773
+ pathname=f'/ossingestions/{oss_ingestion_name}?action=START',
20774
+ method='PUT',
20775
+ auth_type='AK',
20776
+ style='ROA',
20777
+ req_body_type='json',
20778
+ body_type='none'
20779
+ )
20780
+ return TeaCore.from_map(
20781
+ sls_20201230_models.StartOSSIngestionResponse(),
20782
+ await self.execute_async(params, req, runtime)
20783
+ )
20784
+
20785
+ def start_ossingestion(
20786
+ self,
20787
+ project: str,
20788
+ oss_ingestion_name: str,
20789
+ ) -> sls_20201230_models.StartOSSIngestionResponse:
20790
+ """
20791
+ @summary Starts an Object Storage Service (OSS) data import job.
20792
+
20793
+ @return: StartOSSIngestionResponse
20794
+ """
20795
+ runtime = util_models.RuntimeOptions()
20796
+ headers = {}
20797
+ return self.start_ossingestion_with_options(project, oss_ingestion_name, headers, runtime)
20798
+
20799
+ async def start_ossingestion_async(
20800
+ self,
20801
+ project: str,
20802
+ oss_ingestion_name: str,
20803
+ ) -> sls_20201230_models.StartOSSIngestionResponse:
20804
+ """
20805
+ @summary Starts an Object Storage Service (OSS) data import job.
20806
+
20807
+ @return: StartOSSIngestionResponse
20808
+ """
20809
+ runtime = util_models.RuntimeOptions()
20810
+ headers = {}
20811
+ return await self.start_ossingestion_with_options_async(project, oss_ingestion_name, headers, runtime)
20812
+
20813
+ def stop_azure_blob_ingestion_with_options(
20814
+ self,
20815
+ project: str,
20816
+ azure_blob_ingestion_name: str,
20817
+ headers: Dict[str, str],
20818
+ runtime: util_models.RuntimeOptions,
20819
+ ) -> sls_20201230_models.StopAzureBlobIngestionResponse:
20820
+ """
20821
+ @summary 启动Azure blob文件导入任务
20822
+
20823
+ @param headers: map
20824
+ @param runtime: runtime options for this request RuntimeOptions
20825
+ @return: StopAzureBlobIngestionResponse
20826
+ """
20827
+ host_map = {}
20828
+ host_map['project'] = project
20829
+ req = open_api_models.OpenApiRequest(
20830
+ host_map=host_map,
20831
+ headers=headers
20832
+ )
20833
+ params = open_api_models.Params(
20834
+ action='StopAzureBlobIngestion',
20835
+ version='2020-12-30',
20836
+ protocol='HTTPS',
20837
+ pathname=f'/azureblobingestions/{azure_blob_ingestion_name}?action=STOP',
20838
+ method='PUT',
20839
+ auth_type='AK',
20840
+ style='ROA',
20841
+ req_body_type='json',
20842
+ body_type='none'
20843
+ )
20844
+ return TeaCore.from_map(
20845
+ sls_20201230_models.StopAzureBlobIngestionResponse(),
20846
+ self.execute(params, req, runtime)
20847
+ )
20848
+
20849
+ async def stop_azure_blob_ingestion_with_options_async(
20850
+ self,
20851
+ project: str,
20852
+ azure_blob_ingestion_name: str,
20853
+ headers: Dict[str, str],
20854
+ runtime: util_models.RuntimeOptions,
20855
+ ) -> sls_20201230_models.StopAzureBlobIngestionResponse:
20856
+ """
20857
+ @summary 启动Azure blob文件导入任务
20858
+
20859
+ @param headers: map
20860
+ @param runtime: runtime options for this request RuntimeOptions
20861
+ @return: StopAzureBlobIngestionResponse
20862
+ """
20863
+ host_map = {}
20864
+ host_map['project'] = project
20865
+ req = open_api_models.OpenApiRequest(
20866
+ host_map=host_map,
20867
+ headers=headers
20868
+ )
20869
+ params = open_api_models.Params(
20870
+ action='StopAzureBlobIngestion',
20871
+ version='2020-12-30',
20872
+ protocol='HTTPS',
20873
+ pathname=f'/azureblobingestions/{azure_blob_ingestion_name}?action=STOP',
20874
+ method='PUT',
20875
+ auth_type='AK',
20876
+ style='ROA',
20877
+ req_body_type='json',
20878
+ body_type='none'
20879
+ )
20880
+ return TeaCore.from_map(
20881
+ sls_20201230_models.StopAzureBlobIngestionResponse(),
20882
+ await self.execute_async(params, req, runtime)
20883
+ )
20884
+
20885
+ def stop_azure_blob_ingestion(
20886
+ self,
20887
+ project: str,
20888
+ azure_blob_ingestion_name: str,
20889
+ ) -> sls_20201230_models.StopAzureBlobIngestionResponse:
20890
+ """
20891
+ @summary 启动Azure blob文件导入任务
20892
+
20893
+ @return: StopAzureBlobIngestionResponse
20894
+ """
20895
+ runtime = util_models.RuntimeOptions()
20896
+ headers = {}
20897
+ return self.stop_azure_blob_ingestion_with_options(project, azure_blob_ingestion_name, headers, runtime)
20898
+
20899
+ async def stop_azure_blob_ingestion_async(
20900
+ self,
20901
+ project: str,
20902
+ azure_blob_ingestion_name: str,
20903
+ ) -> sls_20201230_models.StopAzureBlobIngestionResponse:
20904
+ """
20905
+ @summary 启动Azure blob文件导入任务
20906
+
20907
+ @return: StopAzureBlobIngestionResponse
20908
+ """
20909
+ runtime = util_models.RuntimeOptions()
20910
+ headers = {}
20911
+ return await self.stop_azure_blob_ingestion_with_options_async(project, azure_blob_ingestion_name, headers, runtime)
20912
+
20913
+ def stop_etlwith_options(
20914
+ self,
20915
+ project: str,
20916
+ etl_name: str,
20917
+ headers: Dict[str, str],
20918
+ runtime: util_models.RuntimeOptions,
20919
+ ) -> sls_20201230_models.StopETLResponse:
20920
+ """
20921
+ @summary Stops a data transformation job.
20922
+
20923
+ @param headers: map
20924
+ @param runtime: runtime options for this request RuntimeOptions
20925
+ @return: StopETLResponse
20926
+ """
20927
+ host_map = {}
20928
+ host_map['project'] = project
20929
+ req = open_api_models.OpenApiRequest(
20930
+ host_map=host_map,
20931
+ headers=headers
20932
+ )
20933
+ params = open_api_models.Params(
20934
+ action='StopETL',
20935
+ version='2020-12-30',
20936
+ protocol='HTTPS',
20937
+ pathname=f'/etls/{etl_name}?action=STOP',
20938
+ method='PUT',
20939
+ auth_type='AK',
20940
+ style='ROA',
20941
+ req_body_type='json',
20942
+ body_type='none'
20943
+ )
20944
+ return TeaCore.from_map(
20945
+ sls_20201230_models.StopETLResponse(),
20946
+ self.execute(params, req, runtime)
20947
+ )
20948
+
20949
+ async def stop_etlwith_options_async(
20950
+ self,
20951
+ project: str,
20952
+ etl_name: str,
20953
+ headers: Dict[str, str],
20954
+ runtime: util_models.RuntimeOptions,
20955
+ ) -> sls_20201230_models.StopETLResponse:
19178
20956
  """
19179
- @summary Starts an Object Storage Service (OSS) data import job.
20957
+ @summary Stops a data transformation job.
19180
20958
 
19181
20959
  @param headers: map
19182
20960
  @param runtime: runtime options for this request RuntimeOptions
19183
- @return: StartOSSIngestionResponse
20961
+ @return: StopETLResponse
19184
20962
  """
19185
20963
  host_map = {}
19186
20964
  host_map['project'] = project
@@ -19189,10 +20967,10 @@ class Client(OpenApiClient):
19189
20967
  headers=headers
19190
20968
  )
19191
20969
  params = open_api_models.Params(
19192
- action='StartOSSIngestion',
20970
+ action='StopETL',
19193
20971
  version='2020-12-30',
19194
20972
  protocol='HTTPS',
19195
- pathname=f'/ossingestions/{oss_ingestion_name}?action=START',
20973
+ pathname=f'/etls/{etl_name}?action=STOP',
19196
20974
  method='PUT',
19197
20975
  auth_type='AK',
19198
20976
  style='ROA',
@@ -19200,51 +20978,51 @@ class Client(OpenApiClient):
19200
20978
  body_type='none'
19201
20979
  )
19202
20980
  return TeaCore.from_map(
19203
- sls_20201230_models.StartOSSIngestionResponse(),
20981
+ sls_20201230_models.StopETLResponse(),
19204
20982
  await self.execute_async(params, req, runtime)
19205
20983
  )
19206
20984
 
19207
- def start_ossingestion(
20985
+ def stop_etl(
19208
20986
  self,
19209
20987
  project: str,
19210
- oss_ingestion_name: str,
19211
- ) -> sls_20201230_models.StartOSSIngestionResponse:
20988
+ etl_name: str,
20989
+ ) -> sls_20201230_models.StopETLResponse:
19212
20990
  """
19213
- @summary Starts an Object Storage Service (OSS) data import job.
20991
+ @summary Stops a data transformation job.
19214
20992
 
19215
- @return: StartOSSIngestionResponse
20993
+ @return: StopETLResponse
19216
20994
  """
19217
20995
  runtime = util_models.RuntimeOptions()
19218
20996
  headers = {}
19219
- return self.start_ossingestion_with_options(project, oss_ingestion_name, headers, runtime)
20997
+ return self.stop_etlwith_options(project, etl_name, headers, runtime)
19220
20998
 
19221
- async def start_ossingestion_async(
20999
+ async def stop_etl_async(
19222
21000
  self,
19223
21001
  project: str,
19224
- oss_ingestion_name: str,
19225
- ) -> sls_20201230_models.StartOSSIngestionResponse:
21002
+ etl_name: str,
21003
+ ) -> sls_20201230_models.StopETLResponse:
19226
21004
  """
19227
- @summary Starts an Object Storage Service (OSS) data import job.
21005
+ @summary Stops a data transformation job.
19228
21006
 
19229
- @return: StartOSSIngestionResponse
21007
+ @return: StopETLResponse
19230
21008
  """
19231
21009
  runtime = util_models.RuntimeOptions()
19232
21010
  headers = {}
19233
- return await self.start_ossingestion_with_options_async(project, oss_ingestion_name, headers, runtime)
21011
+ return await self.stop_etlwith_options_async(project, etl_name, headers, runtime)
19234
21012
 
19235
- def stop_etlwith_options(
21013
+ def stop_elasticsearch_ingestion_with_options(
19236
21014
  self,
19237
21015
  project: str,
19238
- etl_name: str,
21016
+ elasticsearch_ingestion_name: str,
19239
21017
  headers: Dict[str, str],
19240
21018
  runtime: util_models.RuntimeOptions,
19241
- ) -> sls_20201230_models.StopETLResponse:
21019
+ ) -> sls_20201230_models.StopElasticsearchIngestionResponse:
19242
21020
  """
19243
- @summary Stops a data transformation job.
21021
+ @summary 停止ES导入任务
19244
21022
 
19245
21023
  @param headers: map
19246
21024
  @param runtime: runtime options for this request RuntimeOptions
19247
- @return: StopETLResponse
21025
+ @return: StopElasticsearchIngestionResponse
19248
21026
  """
19249
21027
  host_map = {}
19250
21028
  host_map['project'] = project
@@ -19253,10 +21031,10 @@ class Client(OpenApiClient):
19253
21031
  headers=headers
19254
21032
  )
19255
21033
  params = open_api_models.Params(
19256
- action='StopETL',
21034
+ action='StopElasticsearchIngestion',
19257
21035
  version='2020-12-30',
19258
21036
  protocol='HTTPS',
19259
- pathname=f'/etls/{etl_name}?action=STOP',
21037
+ pathname=f'/elasticsearchingestion/{elasticsearch_ingestion_name}?action=STOP',
19260
21038
  method='PUT',
19261
21039
  auth_type='AK',
19262
21040
  style='ROA',
@@ -19264,23 +21042,23 @@ class Client(OpenApiClient):
19264
21042
  body_type='none'
19265
21043
  )
19266
21044
  return TeaCore.from_map(
19267
- sls_20201230_models.StopETLResponse(),
21045
+ sls_20201230_models.StopElasticsearchIngestionResponse(),
19268
21046
  self.execute(params, req, runtime)
19269
21047
  )
19270
21048
 
19271
- async def stop_etlwith_options_async(
21049
+ async def stop_elasticsearch_ingestion_with_options_async(
19272
21050
  self,
19273
21051
  project: str,
19274
- etl_name: str,
21052
+ elasticsearch_ingestion_name: str,
19275
21053
  headers: Dict[str, str],
19276
21054
  runtime: util_models.RuntimeOptions,
19277
- ) -> sls_20201230_models.StopETLResponse:
21055
+ ) -> sls_20201230_models.StopElasticsearchIngestionResponse:
19278
21056
  """
19279
- @summary Stops a data transformation job.
21057
+ @summary 停止ES导入任务
19280
21058
 
19281
21059
  @param headers: map
19282
21060
  @param runtime: runtime options for this request RuntimeOptions
19283
- @return: StopETLResponse
21061
+ @return: StopElasticsearchIngestionResponse
19284
21062
  """
19285
21063
  host_map = {}
19286
21064
  host_map['project'] = project
@@ -19289,10 +21067,10 @@ class Client(OpenApiClient):
19289
21067
  headers=headers
19290
21068
  )
19291
21069
  params = open_api_models.Params(
19292
- action='StopETL',
21070
+ action='StopElasticsearchIngestion',
19293
21071
  version='2020-12-30',
19294
21072
  protocol='HTTPS',
19295
- pathname=f'/etls/{etl_name}?action=STOP',
21073
+ pathname=f'/elasticsearchingestion/{elasticsearch_ingestion_name}?action=STOP',
19296
21074
  method='PUT',
19297
21075
  auth_type='AK',
19298
21076
  style='ROA',
@@ -19300,37 +21078,37 @@ class Client(OpenApiClient):
19300
21078
  body_type='none'
19301
21079
  )
19302
21080
  return TeaCore.from_map(
19303
- sls_20201230_models.StopETLResponse(),
21081
+ sls_20201230_models.StopElasticsearchIngestionResponse(),
19304
21082
  await self.execute_async(params, req, runtime)
19305
21083
  )
19306
21084
 
19307
- def stop_etl(
21085
+ def stop_elasticsearch_ingestion(
19308
21086
  self,
19309
21087
  project: str,
19310
- etl_name: str,
19311
- ) -> sls_20201230_models.StopETLResponse:
21088
+ elasticsearch_ingestion_name: str,
21089
+ ) -> sls_20201230_models.StopElasticsearchIngestionResponse:
19312
21090
  """
19313
- @summary Stops a data transformation job.
21091
+ @summary 停止ES导入任务
19314
21092
 
19315
- @return: StopETLResponse
21093
+ @return: StopElasticsearchIngestionResponse
19316
21094
  """
19317
21095
  runtime = util_models.RuntimeOptions()
19318
21096
  headers = {}
19319
- return self.stop_etlwith_options(project, etl_name, headers, runtime)
21097
+ return self.stop_elasticsearch_ingestion_with_options(project, elasticsearch_ingestion_name, headers, runtime)
19320
21098
 
19321
- async def stop_etl_async(
21099
+ async def stop_elasticsearch_ingestion_async(
19322
21100
  self,
19323
21101
  project: str,
19324
- etl_name: str,
19325
- ) -> sls_20201230_models.StopETLResponse:
21102
+ elasticsearch_ingestion_name: str,
21103
+ ) -> sls_20201230_models.StopElasticsearchIngestionResponse:
19326
21104
  """
19327
- @summary Stops a data transformation job.
21105
+ @summary 停止ES导入任务
19328
21106
 
19329
- @return: StopETLResponse
21107
+ @return: StopElasticsearchIngestionResponse
19330
21108
  """
19331
21109
  runtime = util_models.RuntimeOptions()
19332
21110
  headers = {}
19333
- return await self.stop_etlwith_options_async(project, etl_name, headers, runtime)
21111
+ return await self.stop_elasticsearch_ingestion_with_options_async(project, elasticsearch_ingestion_name, headers, runtime)
19334
21112
 
19335
21113
  def stop_max_compute_export_with_options(
19336
21114
  self,
@@ -20538,6 +22316,136 @@ class Client(OpenApiClient):
20538
22316
  headers = {}
20539
22317
  return await self.update_annotation_label_with_options_async(request, headers, runtime)
20540
22318
 
22319
+ def update_azure_blob_ingestion_with_options(
22320
+ self,
22321
+ project: str,
22322
+ azure_blob_ingestion_name: str,
22323
+ request: sls_20201230_models.UpdateAzureBlobIngestionRequest,
22324
+ headers: Dict[str, str],
22325
+ runtime: util_models.RuntimeOptions,
22326
+ ) -> sls_20201230_models.UpdateAzureBlobIngestionResponse:
22327
+ """
22328
+ @summary 更新Azure blob文件导入任务
22329
+
22330
+ @param request: UpdateAzureBlobIngestionRequest
22331
+ @param headers: map
22332
+ @param runtime: runtime options for this request RuntimeOptions
22333
+ @return: UpdateAzureBlobIngestionResponse
22334
+ """
22335
+ UtilClient.validate_model(request)
22336
+ host_map = {}
22337
+ host_map['project'] = project
22338
+ body = {}
22339
+ if not UtilClient.is_unset(request.configuration):
22340
+ body['configuration'] = request.configuration
22341
+ if not UtilClient.is_unset(request.description):
22342
+ body['description'] = request.description
22343
+ if not UtilClient.is_unset(request.display_name):
22344
+ body['displayName'] = request.display_name
22345
+ if not UtilClient.is_unset(request.schedule):
22346
+ body['schedule'] = request.schedule
22347
+ req = open_api_models.OpenApiRequest(
22348
+ host_map=host_map,
22349
+ headers=headers,
22350
+ body=OpenApiUtilClient.parse_to_map(body)
22351
+ )
22352
+ params = open_api_models.Params(
22353
+ action='UpdateAzureBlobIngestion',
22354
+ version='2020-12-30',
22355
+ protocol='HTTPS',
22356
+ pathname=f'/azureblobingestions/{azure_blob_ingestion_name}',
22357
+ method='PUT',
22358
+ auth_type='AK',
22359
+ style='ROA',
22360
+ req_body_type='json',
22361
+ body_type='none'
22362
+ )
22363
+ return TeaCore.from_map(
22364
+ sls_20201230_models.UpdateAzureBlobIngestionResponse(),
22365
+ self.execute(params, req, runtime)
22366
+ )
22367
+
22368
+ async def update_azure_blob_ingestion_with_options_async(
22369
+ self,
22370
+ project: str,
22371
+ azure_blob_ingestion_name: str,
22372
+ request: sls_20201230_models.UpdateAzureBlobIngestionRequest,
22373
+ headers: Dict[str, str],
22374
+ runtime: util_models.RuntimeOptions,
22375
+ ) -> sls_20201230_models.UpdateAzureBlobIngestionResponse:
22376
+ """
22377
+ @summary 更新Azure blob文件导入任务
22378
+
22379
+ @param request: UpdateAzureBlobIngestionRequest
22380
+ @param headers: map
22381
+ @param runtime: runtime options for this request RuntimeOptions
22382
+ @return: UpdateAzureBlobIngestionResponse
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
+ if not UtilClient.is_unset(request.schedule):
22395
+ body['schedule'] = request.schedule
22396
+ req = open_api_models.OpenApiRequest(
22397
+ host_map=host_map,
22398
+ headers=headers,
22399
+ body=OpenApiUtilClient.parse_to_map(body)
22400
+ )
22401
+ params = open_api_models.Params(
22402
+ action='UpdateAzureBlobIngestion',
22403
+ version='2020-12-30',
22404
+ protocol='HTTPS',
22405
+ pathname=f'/azureblobingestions/{azure_blob_ingestion_name}',
22406
+ method='PUT',
22407
+ auth_type='AK',
22408
+ style='ROA',
22409
+ req_body_type='json',
22410
+ body_type='none'
22411
+ )
22412
+ return TeaCore.from_map(
22413
+ sls_20201230_models.UpdateAzureBlobIngestionResponse(),
22414
+ await self.execute_async(params, req, runtime)
22415
+ )
22416
+
22417
+ def update_azure_blob_ingestion(
22418
+ self,
22419
+ project: str,
22420
+ azure_blob_ingestion_name: str,
22421
+ request: sls_20201230_models.UpdateAzureBlobIngestionRequest,
22422
+ ) -> sls_20201230_models.UpdateAzureBlobIngestionResponse:
22423
+ """
22424
+ @summary 更新Azure blob文件导入任务
22425
+
22426
+ @param request: UpdateAzureBlobIngestionRequest
22427
+ @return: UpdateAzureBlobIngestionResponse
22428
+ """
22429
+ runtime = util_models.RuntimeOptions()
22430
+ headers = {}
22431
+ return self.update_azure_blob_ingestion_with_options(project, azure_blob_ingestion_name, request, headers, runtime)
22432
+
22433
+ async def update_azure_blob_ingestion_async(
22434
+ self,
22435
+ project: str,
22436
+ azure_blob_ingestion_name: str,
22437
+ request: sls_20201230_models.UpdateAzureBlobIngestionRequest,
22438
+ ) -> sls_20201230_models.UpdateAzureBlobIngestionResponse:
22439
+ """
22440
+ @summary 更新Azure blob文件导入任务
22441
+
22442
+ @param request: UpdateAzureBlobIngestionRequest
22443
+ @return: UpdateAzureBlobIngestionResponse
22444
+ """
22445
+ runtime = util_models.RuntimeOptions()
22446
+ headers = {}
22447
+ return await self.update_azure_blob_ingestion_with_options_async(project, azure_blob_ingestion_name, request, headers, runtime)
22448
+
20541
22449
  def update_config_with_options(
20542
22450
  self,
20543
22451
  project: str,
@@ -21124,6 +23032,136 @@ class Client(OpenApiClient):
21124
23032
  headers = {}
21125
23033
  return await self.update_etlwith_options_async(project, etl_name, request, headers, runtime)
21126
23034
 
23035
+ def update_elasticsearch_ingestion_with_options(
23036
+ self,
23037
+ project: str,
23038
+ elasticsearch_ingestion_name: str,
23039
+ request: sls_20201230_models.UpdateElasticsearchIngestionRequest,
23040
+ headers: Dict[str, str],
23041
+ runtime: util_models.RuntimeOptions,
23042
+ ) -> sls_20201230_models.UpdateElasticsearchIngestionResponse:
23043
+ """
23044
+ @summary 更新ES导入任务
23045
+
23046
+ @param request: UpdateElasticsearchIngestionRequest
23047
+ @param headers: map
23048
+ @param runtime: runtime options for this request RuntimeOptions
23049
+ @return: UpdateElasticsearchIngestionResponse
23050
+ """
23051
+ UtilClient.validate_model(request)
23052
+ host_map = {}
23053
+ host_map['project'] = project
23054
+ body = {}
23055
+ if not UtilClient.is_unset(request.configuration):
23056
+ body['configuration'] = request.configuration
23057
+ if not UtilClient.is_unset(request.description):
23058
+ body['description'] = request.description
23059
+ if not UtilClient.is_unset(request.display_name):
23060
+ body['displayName'] = request.display_name
23061
+ if not UtilClient.is_unset(request.schedule):
23062
+ body['schedule'] = request.schedule
23063
+ req = open_api_models.OpenApiRequest(
23064
+ host_map=host_map,
23065
+ headers=headers,
23066
+ body=OpenApiUtilClient.parse_to_map(body)
23067
+ )
23068
+ params = open_api_models.Params(
23069
+ action='UpdateElasticsearchIngestion',
23070
+ version='2020-12-30',
23071
+ protocol='HTTPS',
23072
+ pathname=f'/elasticsearchingestions/{elasticsearch_ingestion_name}',
23073
+ method='PUT',
23074
+ auth_type='AK',
23075
+ style='ROA',
23076
+ req_body_type='json',
23077
+ body_type='none'
23078
+ )
23079
+ return TeaCore.from_map(
23080
+ sls_20201230_models.UpdateElasticsearchIngestionResponse(),
23081
+ self.execute(params, req, runtime)
23082
+ )
23083
+
23084
+ async def update_elasticsearch_ingestion_with_options_async(
23085
+ self,
23086
+ project: str,
23087
+ elasticsearch_ingestion_name: str,
23088
+ request: sls_20201230_models.UpdateElasticsearchIngestionRequest,
23089
+ headers: Dict[str, str],
23090
+ runtime: util_models.RuntimeOptions,
23091
+ ) -> sls_20201230_models.UpdateElasticsearchIngestionResponse:
23092
+ """
23093
+ @summary 更新ES导入任务
23094
+
23095
+ @param request: UpdateElasticsearchIngestionRequest
23096
+ @param headers: map
23097
+ @param runtime: runtime options for this request RuntimeOptions
23098
+ @return: UpdateElasticsearchIngestionResponse
23099
+ """
23100
+ UtilClient.validate_model(request)
23101
+ host_map = {}
23102
+ host_map['project'] = project
23103
+ body = {}
23104
+ if not UtilClient.is_unset(request.configuration):
23105
+ body['configuration'] = request.configuration
23106
+ if not UtilClient.is_unset(request.description):
23107
+ body['description'] = request.description
23108
+ if not UtilClient.is_unset(request.display_name):
23109
+ body['displayName'] = request.display_name
23110
+ if not UtilClient.is_unset(request.schedule):
23111
+ body['schedule'] = request.schedule
23112
+ req = open_api_models.OpenApiRequest(
23113
+ host_map=host_map,
23114
+ headers=headers,
23115
+ body=OpenApiUtilClient.parse_to_map(body)
23116
+ )
23117
+ params = open_api_models.Params(
23118
+ action='UpdateElasticsearchIngestion',
23119
+ version='2020-12-30',
23120
+ protocol='HTTPS',
23121
+ pathname=f'/elasticsearchingestions/{elasticsearch_ingestion_name}',
23122
+ method='PUT',
23123
+ auth_type='AK',
23124
+ style='ROA',
23125
+ req_body_type='json',
23126
+ body_type='none'
23127
+ )
23128
+ return TeaCore.from_map(
23129
+ sls_20201230_models.UpdateElasticsearchIngestionResponse(),
23130
+ await self.execute_async(params, req, runtime)
23131
+ )
23132
+
23133
+ def update_elasticsearch_ingestion(
23134
+ self,
23135
+ project: str,
23136
+ elasticsearch_ingestion_name: str,
23137
+ request: sls_20201230_models.UpdateElasticsearchIngestionRequest,
23138
+ ) -> sls_20201230_models.UpdateElasticsearchIngestionResponse:
23139
+ """
23140
+ @summary 更新ES导入任务
23141
+
23142
+ @param request: UpdateElasticsearchIngestionRequest
23143
+ @return: UpdateElasticsearchIngestionResponse
23144
+ """
23145
+ runtime = util_models.RuntimeOptions()
23146
+ headers = {}
23147
+ return self.update_elasticsearch_ingestion_with_options(project, elasticsearch_ingestion_name, request, headers, runtime)
23148
+
23149
+ async def update_elasticsearch_ingestion_async(
23150
+ self,
23151
+ project: str,
23152
+ elasticsearch_ingestion_name: str,
23153
+ request: sls_20201230_models.UpdateElasticsearchIngestionRequest,
23154
+ ) -> sls_20201230_models.UpdateElasticsearchIngestionResponse:
23155
+ """
23156
+ @summary 更新ES导入任务
23157
+
23158
+ @param request: UpdateElasticsearchIngestionRequest
23159
+ @return: UpdateElasticsearchIngestionResponse
23160
+ """
23161
+ runtime = util_models.RuntimeOptions()
23162
+ headers = {}
23163
+ return await self.update_elasticsearch_ingestion_with_options_async(project, elasticsearch_ingestion_name, request, headers, runtime)
23164
+
21127
23165
  def update_index_with_options(
21128
23166
  self,
21129
23167
  project: str,
@@ -21292,6 +23330,8 @@ class Client(OpenApiClient):
21292
23330
  body['mode'] = request.mode
21293
23331
  if not UtilClient.is_unset(request.shard_count):
21294
23332
  body['shardCount'] = request.shard_count
23333
+ if not UtilClient.is_unset(request.sharding_policy):
23334
+ body['shardingPolicy'] = request.sharding_policy
21295
23335
  if not UtilClient.is_unset(request.telemetry_type):
21296
23336
  body['telemetryType'] = request.telemetry_type
21297
23337
  if not UtilClient.is_unset(request.ttl):
@@ -21361,6 +23401,8 @@ class Client(OpenApiClient):
21361
23401
  body['mode'] = request.mode
21362
23402
  if not UtilClient.is_unset(request.shard_count):
21363
23403
  body['shardCount'] = request.shard_count
23404
+ if not UtilClient.is_unset(request.sharding_policy):
23405
+ body['shardingPolicy'] = request.sharding_policy
21364
23406
  if not UtilClient.is_unset(request.telemetry_type):
21365
23407
  body['telemetryType'] = request.telemetry_type
21366
23408
  if not UtilClient.is_unset(request.ttl):
@@ -22553,6 +24595,8 @@ class Client(OpenApiClient):
22553
24595
  host_map = {}
22554
24596
  host_map['project'] = project
22555
24597
  body = {}
24598
+ if not UtilClient.is_unset(request.append_meta):
24599
+ body['appendMeta'] = request.append_meta
22556
24600
  if not UtilClient.is_unset(request.auto_split):
22557
24601
  body['autoSplit'] = request.auto_split
22558
24602
  if not UtilClient.is_unset(request.hot_ttl):
@@ -22563,6 +24607,8 @@ class Client(OpenApiClient):
22563
24607
  body['maxSplitShard'] = request.max_split_shard
22564
24608
  if not UtilClient.is_unset(request.mode):
22565
24609
  body['mode'] = request.mode
24610
+ if not UtilClient.is_unset(request.sharding_policy):
24611
+ body['shardingPolicy'] = request.sharding_policy
22566
24612
  if not UtilClient.is_unset(request.ttl):
22567
24613
  body['ttl'] = request.ttl
22568
24614
  req = open_api_models.OpenApiRequest(
@@ -22615,6 +24661,8 @@ class Client(OpenApiClient):
22615
24661
  host_map = {}
22616
24662
  host_map['project'] = project
22617
24663
  body = {}
24664
+ if not UtilClient.is_unset(request.append_meta):
24665
+ body['appendMeta'] = request.append_meta
22618
24666
  if not UtilClient.is_unset(request.auto_split):
22619
24667
  body['autoSplit'] = request.auto_split
22620
24668
  if not UtilClient.is_unset(request.hot_ttl):
@@ -22625,6 +24673,8 @@ class Client(OpenApiClient):
22625
24673
  body['maxSplitShard'] = request.max_split_shard
22626
24674
  if not UtilClient.is_unset(request.mode):
22627
24675
  body['mode'] = request.mode
24676
+ if not UtilClient.is_unset(request.sharding_policy):
24677
+ body['shardingPolicy'] = request.sharding_policy
22628
24678
  if not UtilClient.is_unset(request.ttl):
22629
24679
  body['ttl'] = request.ttl
22630
24680
  req = open_api_models.OpenApiRequest(