alibabacloud-sls20201230 5.9.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(
@@ -4862,38 +5134,31 @@ class Client(OpenApiClient):
4862
5134
  headers = {}
4863
5135
  return await self.delete_annotation_label_with_options_async(label_id, headers, runtime)
4864
5136
 
4865
- def delete_collection_policy_with_options(
5137
+ def delete_azure_blob_ingestion_with_options(
4866
5138
  self,
4867
- policy_name: str,
4868
- request: sls_20201230_models.DeleteCollectionPolicyRequest,
5139
+ project: str,
5140
+ azure_blob_ingestion_name: str,
4869
5141
  headers: Dict[str, str],
4870
5142
  runtime: util_models.RuntimeOptions,
4871
- ) -> sls_20201230_models.DeleteCollectionPolicyResponse:
5143
+ ) -> sls_20201230_models.DeleteAzureBlobIngestionResponse:
4872
5144
  """
4873
- @summary Deletes a log collection policy from a cloud service.
4874
-
4875
- @description You must use the Simple Log Service endpoint for the China (Shanghai), Singapore, or Heyuan ACDR Auto region to call the operation.
5145
+ @summary 创建Azure blob文件导入任务
4876
5146
 
4877
- @param request: DeleteCollectionPolicyRequest
4878
5147
  @param headers: map
4879
5148
  @param runtime: runtime options for this request RuntimeOptions
4880
- @return: DeleteCollectionPolicyResponse
5149
+ @return: DeleteAzureBlobIngestionResponse
4881
5150
  """
4882
- UtilClient.validate_model(request)
4883
- query = {}
4884
- if not UtilClient.is_unset(request.data_code):
4885
- query['dataCode'] = request.data_code
4886
- if not UtilClient.is_unset(request.product_code):
4887
- query['productCode'] = request.product_code
5151
+ host_map = {}
5152
+ host_map['project'] = project
4888
5153
  req = open_api_models.OpenApiRequest(
4889
- headers=headers,
4890
- query=OpenApiUtilClient.query(query)
5154
+ host_map=host_map,
5155
+ headers=headers
4891
5156
  )
4892
5157
  params = open_api_models.Params(
4893
- action='DeleteCollectionPolicy',
5158
+ action='DeleteAzureBlobIngestion',
4894
5159
  version='2020-12-30',
4895
5160
  protocol='HTTPS',
4896
- pathname=f'/collectionpolicy/{policy_name}',
5161
+ pathname=f'/azureblobingestions/{azure_blob_ingestion_name}',
4897
5162
  method='DELETE',
4898
5163
  auth_type='AK',
4899
5164
  style='ROA',
@@ -4901,42 +5166,35 @@ class Client(OpenApiClient):
4901
5166
  body_type='none'
4902
5167
  )
4903
5168
  return TeaCore.from_map(
4904
- sls_20201230_models.DeleteCollectionPolicyResponse(),
5169
+ sls_20201230_models.DeleteAzureBlobIngestionResponse(),
4905
5170
  self.execute(params, req, runtime)
4906
5171
  )
4907
5172
 
4908
- async def delete_collection_policy_with_options_async(
5173
+ async def delete_azure_blob_ingestion_with_options_async(
4909
5174
  self,
4910
- policy_name: str,
4911
- request: sls_20201230_models.DeleteCollectionPolicyRequest,
5175
+ project: str,
5176
+ azure_blob_ingestion_name: str,
4912
5177
  headers: Dict[str, str],
4913
5178
  runtime: util_models.RuntimeOptions,
4914
- ) -> sls_20201230_models.DeleteCollectionPolicyResponse:
5179
+ ) -> sls_20201230_models.DeleteAzureBlobIngestionResponse:
4915
5180
  """
4916
- @summary Deletes a log collection policy from a cloud service.
4917
-
4918
- @description You must use the Simple Log Service endpoint for the China (Shanghai), Singapore, or Heyuan ACDR Auto region to call the operation.
5181
+ @summary 创建Azure blob文件导入任务
4919
5182
 
4920
- @param request: DeleteCollectionPolicyRequest
4921
5183
  @param headers: map
4922
5184
  @param runtime: runtime options for this request RuntimeOptions
4923
- @return: DeleteCollectionPolicyResponse
5185
+ @return: DeleteAzureBlobIngestionResponse
4924
5186
  """
4925
- UtilClient.validate_model(request)
4926
- query = {}
4927
- if not UtilClient.is_unset(request.data_code):
4928
- query['dataCode'] = request.data_code
4929
- if not UtilClient.is_unset(request.product_code):
4930
- query['productCode'] = request.product_code
5187
+ host_map = {}
5188
+ host_map['project'] = project
4931
5189
  req = open_api_models.OpenApiRequest(
4932
- headers=headers,
4933
- query=OpenApiUtilClient.query(query)
5190
+ host_map=host_map,
5191
+ headers=headers
4934
5192
  )
4935
5193
  params = open_api_models.Params(
4936
- action='DeleteCollectionPolicy',
5194
+ action='DeleteAzureBlobIngestion',
4937
5195
  version='2020-12-30',
4938
5196
  protocol='HTTPS',
4939
- pathname=f'/collectionpolicy/{policy_name}',
5197
+ pathname=f'/azureblobingestions/{azure_blob_ingestion_name}',
4940
5198
  method='DELETE',
4941
5199
  auth_type='AK',
4942
5200
  style='ROA',
@@ -4944,17 +5202,131 @@ class Client(OpenApiClient):
4944
5202
  body_type='none'
4945
5203
  )
4946
5204
  return TeaCore.from_map(
4947
- sls_20201230_models.DeleteCollectionPolicyResponse(),
5205
+ sls_20201230_models.DeleteAzureBlobIngestionResponse(),
4948
5206
  await self.execute_async(params, req, runtime)
4949
5207
  )
4950
5208
 
4951
- def delete_collection_policy(
5209
+ def delete_azure_blob_ingestion(
4952
5210
  self,
4953
- policy_name: str,
4954
- request: sls_20201230_models.DeleteCollectionPolicyRequest,
4955
- ) -> sls_20201230_models.DeleteCollectionPolicyResponse:
5211
+ project: str,
5212
+ azure_blob_ingestion_name: str,
5213
+ ) -> sls_20201230_models.DeleteAzureBlobIngestionResponse:
4956
5214
  """
4957
- @summary Deletes a log collection policy from a cloud service.
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
+
5237
+ def delete_collection_policy_with_options(
5238
+ self,
5239
+ policy_name: str,
5240
+ request: sls_20201230_models.DeleteCollectionPolicyRequest,
5241
+ headers: Dict[str, str],
5242
+ runtime: util_models.RuntimeOptions,
5243
+ ) -> sls_20201230_models.DeleteCollectionPolicyResponse:
5244
+ """
5245
+ @summary Deletes a log collection policy from a cloud service.
5246
+
5247
+ @description You must use the Simple Log Service endpoint for the China (Shanghai), Singapore, or Heyuan ACDR Auto region to call the operation.
5248
+
5249
+ @param request: DeleteCollectionPolicyRequest
5250
+ @param headers: map
5251
+ @param runtime: runtime options for this request RuntimeOptions
5252
+ @return: DeleteCollectionPolicyResponse
5253
+ """
5254
+ UtilClient.validate_model(request)
5255
+ query = {}
5256
+ if not UtilClient.is_unset(request.data_code):
5257
+ query['dataCode'] = request.data_code
5258
+ if not UtilClient.is_unset(request.product_code):
5259
+ query['productCode'] = request.product_code
5260
+ req = open_api_models.OpenApiRequest(
5261
+ headers=headers,
5262
+ query=OpenApiUtilClient.query(query)
5263
+ )
5264
+ params = open_api_models.Params(
5265
+ action='DeleteCollectionPolicy',
5266
+ version='2020-12-30',
5267
+ protocol='HTTPS',
5268
+ pathname=f'/collectionpolicy/{policy_name}',
5269
+ method='DELETE',
5270
+ auth_type='AK',
5271
+ style='ROA',
5272
+ req_body_type='json',
5273
+ body_type='none'
5274
+ )
5275
+ return TeaCore.from_map(
5276
+ sls_20201230_models.DeleteCollectionPolicyResponse(),
5277
+ self.execute(params, req, runtime)
5278
+ )
5279
+
5280
+ async def delete_collection_policy_with_options_async(
5281
+ self,
5282
+ policy_name: str,
5283
+ request: sls_20201230_models.DeleteCollectionPolicyRequest,
5284
+ headers: Dict[str, str],
5285
+ runtime: util_models.RuntimeOptions,
5286
+ ) -> sls_20201230_models.DeleteCollectionPolicyResponse:
5287
+ """
5288
+ @summary Deletes a log collection policy from a cloud service.
5289
+
5290
+ @description You must use the Simple Log Service endpoint for the China (Shanghai), Singapore, or Heyuan ACDR Auto region to call the operation.
5291
+
5292
+ @param request: DeleteCollectionPolicyRequest
5293
+ @param headers: map
5294
+ @param runtime: runtime options for this request RuntimeOptions
5295
+ @return: DeleteCollectionPolicyResponse
5296
+ """
5297
+ UtilClient.validate_model(request)
5298
+ query = {}
5299
+ if not UtilClient.is_unset(request.data_code):
5300
+ query['dataCode'] = request.data_code
5301
+ if not UtilClient.is_unset(request.product_code):
5302
+ query['productCode'] = request.product_code
5303
+ req = open_api_models.OpenApiRequest(
5304
+ headers=headers,
5305
+ query=OpenApiUtilClient.query(query)
5306
+ )
5307
+ params = open_api_models.Params(
5308
+ action='DeleteCollectionPolicy',
5309
+ version='2020-12-30',
5310
+ protocol='HTTPS',
5311
+ pathname=f'/collectionpolicy/{policy_name}',
5312
+ method='DELETE',
5313
+ auth_type='AK',
5314
+ style='ROA',
5315
+ req_body_type='json',
5316
+ body_type='none'
5317
+ )
5318
+ return TeaCore.from_map(
5319
+ sls_20201230_models.DeleteCollectionPolicyResponse(),
5320
+ await self.execute_async(params, req, runtime)
5321
+ )
5322
+
5323
+ def delete_collection_policy(
5324
+ self,
5325
+ policy_name: str,
5326
+ request: sls_20201230_models.DeleteCollectionPolicyRequest,
5327
+ ) -> sls_20201230_models.DeleteCollectionPolicyResponse:
5328
+ """
5329
+ @summary Deletes a log collection policy from a cloud service.
4958
5330
 
4959
5331
  @description You must use the Simple Log Service endpoint for the China (Shanghai), Singapore, or Heyuan ACDR Auto region to call the operation.
4960
5332
 
@@ -5798,6 +6170,106 @@ class Client(OpenApiClient):
5798
6170
  headers = {}
5799
6171
  return await self.delete_etlwith_options_async(project, etl_name, headers, runtime)
5800
6172
 
6173
+ def delete_elasticsearch_ingestion_with_options(
6174
+ self,
6175
+ project: str,
6176
+ es_ingestion_name: str,
6177
+ headers: Dict[str, str],
6178
+ runtime: util_models.RuntimeOptions,
6179
+ ) -> sls_20201230_models.DeleteElasticsearchIngestionResponse:
6180
+ """
6181
+ @summary 删除ES导入任务
6182
+
6183
+ @param headers: map
6184
+ @param runtime: runtime options for this request RuntimeOptions
6185
+ @return: DeleteElasticsearchIngestionResponse
6186
+ """
6187
+ host_map = {}
6188
+ host_map['project'] = project
6189
+ req = open_api_models.OpenApiRequest(
6190
+ host_map=host_map,
6191
+ headers=headers
6192
+ )
6193
+ params = open_api_models.Params(
6194
+ action='DeleteElasticsearchIngestion',
6195
+ version='2020-12-30',
6196
+ protocol='HTTPS',
6197
+ pathname=f'/elasticsearchingestions/{es_ingestion_name}',
6198
+ method='DELETE',
6199
+ auth_type='AK',
6200
+ style='ROA',
6201
+ req_body_type='json',
6202
+ body_type='none'
6203
+ )
6204
+ return TeaCore.from_map(
6205
+ sls_20201230_models.DeleteElasticsearchIngestionResponse(),
6206
+ self.execute(params, req, runtime)
6207
+ )
6208
+
6209
+ async def delete_elasticsearch_ingestion_with_options_async(
6210
+ self,
6211
+ project: str,
6212
+ es_ingestion_name: str,
6213
+ headers: Dict[str, str],
6214
+ runtime: util_models.RuntimeOptions,
6215
+ ) -> sls_20201230_models.DeleteElasticsearchIngestionResponse:
6216
+ """
6217
+ @summary 删除ES导入任务
6218
+
6219
+ @param headers: map
6220
+ @param runtime: runtime options for this request RuntimeOptions
6221
+ @return: DeleteElasticsearchIngestionResponse
6222
+ """
6223
+ host_map = {}
6224
+ host_map['project'] = project
6225
+ req = open_api_models.OpenApiRequest(
6226
+ host_map=host_map,
6227
+ headers=headers
6228
+ )
6229
+ params = open_api_models.Params(
6230
+ action='DeleteElasticsearchIngestion',
6231
+ version='2020-12-30',
6232
+ protocol='HTTPS',
6233
+ pathname=f'/elasticsearchingestions/{es_ingestion_name}',
6234
+ method='DELETE',
6235
+ auth_type='AK',
6236
+ style='ROA',
6237
+ req_body_type='json',
6238
+ body_type='none'
6239
+ )
6240
+ return TeaCore.from_map(
6241
+ sls_20201230_models.DeleteElasticsearchIngestionResponse(),
6242
+ await self.execute_async(params, req, runtime)
6243
+ )
6244
+
6245
+ def delete_elasticsearch_ingestion(
6246
+ self,
6247
+ project: str,
6248
+ es_ingestion_name: str,
6249
+ ) -> sls_20201230_models.DeleteElasticsearchIngestionResponse:
6250
+ """
6251
+ @summary 删除ES导入任务
6252
+
6253
+ @return: DeleteElasticsearchIngestionResponse
6254
+ """
6255
+ runtime = util_models.RuntimeOptions()
6256
+ headers = {}
6257
+ return self.delete_elasticsearch_ingestion_with_options(project, es_ingestion_name, headers, runtime)
6258
+
6259
+ async def delete_elasticsearch_ingestion_async(
6260
+ self,
6261
+ project: str,
6262
+ es_ingestion_name: str,
6263
+ ) -> sls_20201230_models.DeleteElasticsearchIngestionResponse:
6264
+ """
6265
+ @summary 删除ES导入任务
6266
+
6267
+ @return: DeleteElasticsearchIngestionResponse
6268
+ """
6269
+ runtime = util_models.RuntimeOptions()
6270
+ headers = {}
6271
+ return await self.delete_elasticsearch_ingestion_with_options_async(project, es_ingestion_name, headers, runtime)
6272
+
5801
6273
  def delete_index_with_options(
5802
6274
  self,
5803
6275
  project: str,
@@ -8930,6 +9402,106 @@ class Client(OpenApiClient):
8930
9402
  headers = {}
8931
9403
  return await self.get_applied_machine_groups_with_options_async(project, config_name, headers, runtime)
8932
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
+
8933
9505
  def get_check_point_with_options(
8934
9506
  self,
8935
9507
  project: str,
@@ -10190,18 +10762,118 @@ class Client(OpenApiClient):
10190
10762
  headers = {}
10191
10763
  return await self.get_etlwith_options_async(project, etl_name, headers, runtime)
10192
10764
 
10193
- def get_histograms_with_options(
10765
+ def get_elasticsearch_ingestion_with_options(
10194
10766
  self,
10195
10767
  project: str,
10196
- logstore: str,
10197
- request: sls_20201230_models.GetHistogramsRequest,
10768
+ es_ingestion_name: str,
10198
10769
  headers: Dict[str, str],
10199
10770
  runtime: util_models.RuntimeOptions,
10200
- ) -> sls_20201230_models.GetHistogramsResponse:
10771
+ ) -> sls_20201230_models.GetElasticsearchIngestionResponse:
10201
10772
  """
10202
- @summary Queries the distribution of logs that meet the specified search conditions in a Logstore.
10773
+ @summary 获取ElasticSearch导入任务信息
10203
10774
 
10204
- @description ### Usage notes
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
+
10865
+ def get_histograms_with_options(
10866
+ self,
10867
+ project: str,
10868
+ logstore: str,
10869
+ request: sls_20201230_models.GetHistogramsRequest,
10870
+ headers: Dict[str, str],
10871
+ runtime: util_models.RuntimeOptions,
10872
+ ) -> sls_20201230_models.GetHistogramsResponse:
10873
+ """
10874
+ @summary Queries the distribution of logs that meet the specified search conditions in a Logstore.
10875
+
10876
+ @description ### Usage notes
10205
10877
  Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
10206
10878
  The time range is evenly divided into subintervals in the responses. If the time range that is specified in the request remains unchanged, the subintervals in the responses also remain unchanged.
10207
10879
  If the number of logs in a Logstore significantly changes, Simple Log Service cannot predict the number of times that you must call this operation to obtain the complete result. In this case, you must check the value of the progress parameter in the response of each request and determine whether to call this operation one more time to obtain the complete result. Each time you call this operation, the same number of charge units (CUs) are consumed.
@@ -14152,6 +14824,128 @@ class Client(OpenApiClient):
14152
14824
  headers = {}
14153
14825
  return await self.list_annotation_labels_with_options_async(request, headers, runtime)
14154
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
+
14155
14949
  def list_collection_policies_with_options(
14156
14950
  self,
14157
14951
  request: sls_20201230_models.ListCollectionPoliciesRequest,
@@ -15248,31 +16042,29 @@ class Client(OpenApiClient):
15248
16042
  headers = {}
15249
16043
  return await self.list_etls_with_options_async(project, request, headers, runtime)
15250
16044
 
15251
- def list_ingest_processors_with_options(
16045
+ def list_elasticsearch_ingestions_with_options(
15252
16046
  self,
15253
16047
  project: str,
15254
- request: sls_20201230_models.ListIngestProcessorsRequest,
16048
+ request: sls_20201230_models.ListElasticsearchIngestionsRequest,
15255
16049
  headers: Dict[str, str],
15256
16050
  runtime: util_models.RuntimeOptions,
15257
- ) -> sls_20201230_models.ListIngestProcessorsResponse:
16051
+ ) -> sls_20201230_models.ListElasticsearchIngestionsResponse:
15258
16052
  """
15259
- @summary Queries a list of ingest processors that meet specific conditions.
16053
+ @summary 创建ES导入任务
15260
16054
 
15261
- @param request: ListIngestProcessorsRequest
16055
+ @param request: ListElasticsearchIngestionsRequest
15262
16056
  @param headers: map
15263
16057
  @param runtime: runtime options for this request RuntimeOptions
15264
- @return: ListIngestProcessorsResponse
16058
+ @return: ListElasticsearchIngestionsResponse
15265
16059
  """
15266
16060
  UtilClient.validate_model(request)
15267
16061
  host_map = {}
15268
16062
  host_map['project'] = project
15269
16063
  query = {}
15270
- if not UtilClient.is_unset(request.display_name):
15271
- query['displayName'] = request.display_name
16064
+ if not UtilClient.is_unset(request.logstore):
16065
+ query['logstore'] = request.logstore
15272
16066
  if not UtilClient.is_unset(request.offset):
15273
16067
  query['offset'] = request.offset
15274
- if not UtilClient.is_unset(request.processor_name):
15275
- query['processorName'] = request.processor_name
15276
16068
  if not UtilClient.is_unset(request.size):
15277
16069
  query['size'] = request.size
15278
16070
  req = open_api_models.OpenApiRequest(
@@ -15281,10 +16073,10 @@ class Client(OpenApiClient):
15281
16073
  query=OpenApiUtilClient.query(query)
15282
16074
  )
15283
16075
  params = open_api_models.Params(
15284
- action='ListIngestProcessors',
16076
+ action='ListElasticsearchIngestions',
15285
16077
  version='2020-12-30',
15286
16078
  protocol='HTTPS',
15287
- pathname=f'/ingestprocessors',
16079
+ pathname=f'/elasticsearchingestions',
15288
16080
  method='GET',
15289
16081
  auth_type='AK',
15290
16082
  style='ROA',
@@ -15292,35 +16084,33 @@ class Client(OpenApiClient):
15292
16084
  body_type='json'
15293
16085
  )
15294
16086
  return TeaCore.from_map(
15295
- sls_20201230_models.ListIngestProcessorsResponse(),
16087
+ sls_20201230_models.ListElasticsearchIngestionsResponse(),
15296
16088
  self.execute(params, req, runtime)
15297
16089
  )
15298
16090
 
15299
- async def list_ingest_processors_with_options_async(
16091
+ async def list_elasticsearch_ingestions_with_options_async(
15300
16092
  self,
15301
16093
  project: str,
15302
- request: sls_20201230_models.ListIngestProcessorsRequest,
16094
+ request: sls_20201230_models.ListElasticsearchIngestionsRequest,
15303
16095
  headers: Dict[str, str],
15304
16096
  runtime: util_models.RuntimeOptions,
15305
- ) -> sls_20201230_models.ListIngestProcessorsResponse:
16097
+ ) -> sls_20201230_models.ListElasticsearchIngestionsResponse:
15306
16098
  """
15307
- @summary Queries a list of ingest processors that meet specific conditions.
16099
+ @summary 创建ES导入任务
15308
16100
 
15309
- @param request: ListIngestProcessorsRequest
16101
+ @param request: ListElasticsearchIngestionsRequest
15310
16102
  @param headers: map
15311
16103
  @param runtime: runtime options for this request RuntimeOptions
15312
- @return: ListIngestProcessorsResponse
16104
+ @return: ListElasticsearchIngestionsResponse
15313
16105
  """
15314
16106
  UtilClient.validate_model(request)
15315
16107
  host_map = {}
15316
16108
  host_map['project'] = project
15317
16109
  query = {}
15318
- if not UtilClient.is_unset(request.display_name):
15319
- query['displayName'] = request.display_name
16110
+ if not UtilClient.is_unset(request.logstore):
16111
+ query['logstore'] = request.logstore
15320
16112
  if not UtilClient.is_unset(request.offset):
15321
16113
  query['offset'] = request.offset
15322
- if not UtilClient.is_unset(request.processor_name):
15323
- query['processorName'] = request.processor_name
15324
16114
  if not UtilClient.is_unset(request.size):
15325
16115
  query['size'] = request.size
15326
16116
  req = open_api_models.OpenApiRequest(
@@ -15329,10 +16119,10 @@ class Client(OpenApiClient):
15329
16119
  query=OpenApiUtilClient.query(query)
15330
16120
  )
15331
16121
  params = open_api_models.Params(
15332
- action='ListIngestProcessors',
16122
+ action='ListElasticsearchIngestions',
15333
16123
  version='2020-12-30',
15334
16124
  protocol='HTTPS',
15335
- pathname=f'/ingestprocessors',
16125
+ pathname=f'/elasticsearchingestions',
15336
16126
  method='GET',
15337
16127
  auth_type='AK',
15338
16128
  style='ROA',
@@ -15340,90 +16130,77 @@ class Client(OpenApiClient):
15340
16130
  body_type='json'
15341
16131
  )
15342
16132
  return TeaCore.from_map(
15343
- sls_20201230_models.ListIngestProcessorsResponse(),
16133
+ sls_20201230_models.ListElasticsearchIngestionsResponse(),
15344
16134
  await self.execute_async(params, req, runtime)
15345
16135
  )
15346
16136
 
15347
- def list_ingest_processors(
16137
+ def list_elasticsearch_ingestions(
15348
16138
  self,
15349
16139
  project: str,
15350
- request: sls_20201230_models.ListIngestProcessorsRequest,
15351
- ) -> sls_20201230_models.ListIngestProcessorsResponse:
16140
+ request: sls_20201230_models.ListElasticsearchIngestionsRequest,
16141
+ ) -> sls_20201230_models.ListElasticsearchIngestionsResponse:
15352
16142
  """
15353
- @summary Queries a list of ingest processors that meet specific conditions.
16143
+ @summary 创建ES导入任务
15354
16144
 
15355
- @param request: ListIngestProcessorsRequest
15356
- @return: ListIngestProcessorsResponse
16145
+ @param request: ListElasticsearchIngestionsRequest
16146
+ @return: ListElasticsearchIngestionsResponse
15357
16147
  """
15358
16148
  runtime = util_models.RuntimeOptions()
15359
16149
  headers = {}
15360
- return self.list_ingest_processors_with_options(project, request, headers, runtime)
16150
+ return self.list_elasticsearch_ingestions_with_options(project, request, headers, runtime)
15361
16151
 
15362
- async def list_ingest_processors_async(
16152
+ async def list_elasticsearch_ingestions_async(
15363
16153
  self,
15364
16154
  project: str,
15365
- request: sls_20201230_models.ListIngestProcessorsRequest,
15366
- ) -> sls_20201230_models.ListIngestProcessorsResponse:
16155
+ request: sls_20201230_models.ListElasticsearchIngestionsRequest,
16156
+ ) -> sls_20201230_models.ListElasticsearchIngestionsResponse:
15367
16157
  """
15368
- @summary Queries a list of ingest processors that meet specific conditions.
16158
+ @summary 创建ES导入任务
15369
16159
 
15370
- @param request: ListIngestProcessorsRequest
15371
- @return: ListIngestProcessorsResponse
16160
+ @param request: ListElasticsearchIngestionsRequest
16161
+ @return: ListElasticsearchIngestionsResponse
15372
16162
  """
15373
16163
  runtime = util_models.RuntimeOptions()
15374
16164
  headers = {}
15375
- return await self.list_ingest_processors_with_options_async(project, request, headers, runtime)
16165
+ return await self.list_elasticsearch_ingestions_with_options_async(project, request, headers, runtime)
15376
16166
 
15377
- def list_log_stores_with_options(
16167
+ def list_ingest_processors_with_options(
15378
16168
  self,
15379
16169
  project: str,
15380
- request: sls_20201230_models.ListLogStoresRequest,
16170
+ request: sls_20201230_models.ListIngestProcessorsRequest,
15381
16171
  headers: Dict[str, str],
15382
16172
  runtime: util_models.RuntimeOptions,
15383
- ) -> sls_20201230_models.ListLogStoresResponse:
16173
+ ) -> sls_20201230_models.ListIngestProcessorsResponse:
15384
16174
  """
15385
- @summary Queries all Logstores or Logstores that match specific conditions in a project.
15386
-
15387
- @description ### Usage notes
15388
- Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
15389
- An AccessKey pair is created and obtained. For more information, see [AccessKey pair](https://help.aliyun.com/document_detail/29009.html).
15390
- The AccessKey pair of an Alibaba Cloud account has permissions on all API operations. Using these credentials to perform operations in Simple Log Service is a high-risk operation. We recommend that you use a RAM user to call API operations or perform routine O&M. To create a RAM user, log on to the RAM console. Make sure that the RAM user has the management permissions on Simple Log Service resources. For more information, see [Create a RAM user and authorize the RAM user to access Simple Log Service](https://help.aliyun.com/document_detail/47664.html).
15391
- 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).
15392
- ### Authentication resources
15393
- 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.
15394
- |Action|Resource|
15395
- |:---|:---|
15396
- |`log:ListLogStores`|`acs:log:{#regionId}:{#accountId}:project/{#ProjectName}/logstore/`|
16175
+ @summary Queries a list of ingest processors that meet specific conditions.
15397
16176
 
15398
- @param request: ListLogStoresRequest
16177
+ @param request: ListIngestProcessorsRequest
15399
16178
  @param headers: map
15400
16179
  @param runtime: runtime options for this request RuntimeOptions
15401
- @return: ListLogStoresResponse
16180
+ @return: ListIngestProcessorsResponse
15402
16181
  """
15403
16182
  UtilClient.validate_model(request)
15404
16183
  host_map = {}
15405
16184
  host_map['project'] = project
15406
16185
  query = {}
15407
- if not UtilClient.is_unset(request.logstore_name):
15408
- query['logstoreName'] = request.logstore_name
15409
- if not UtilClient.is_unset(request.mode):
15410
- query['mode'] = request.mode
16186
+ if not UtilClient.is_unset(request.display_name):
16187
+ query['displayName'] = request.display_name
15411
16188
  if not UtilClient.is_unset(request.offset):
15412
16189
  query['offset'] = request.offset
16190
+ if not UtilClient.is_unset(request.processor_name):
16191
+ query['processorName'] = request.processor_name
15413
16192
  if not UtilClient.is_unset(request.size):
15414
16193
  query['size'] = request.size
15415
- if not UtilClient.is_unset(request.telemetry_type):
15416
- query['telemetryType'] = request.telemetry_type
15417
16194
  req = open_api_models.OpenApiRequest(
15418
16195
  host_map=host_map,
15419
16196
  headers=headers,
15420
16197
  query=OpenApiUtilClient.query(query)
15421
16198
  )
15422
16199
  params = open_api_models.Params(
15423
- action='ListLogStores',
16200
+ action='ListIngestProcessors',
15424
16201
  version='2020-12-30',
15425
16202
  protocol='HTTPS',
15426
- pathname=f'/logstores',
16203
+ pathname=f'/ingestprocessors',
15427
16204
  method='GET',
15428
16205
  auth_type='AK',
15429
16206
  style='ROA',
@@ -15431,17 +16208,156 @@ class Client(OpenApiClient):
15431
16208
  body_type='json'
15432
16209
  )
15433
16210
  return TeaCore.from_map(
15434
- sls_20201230_models.ListLogStoresResponse(),
16211
+ sls_20201230_models.ListIngestProcessorsResponse(),
15435
16212
  self.execute(params, req, runtime)
15436
16213
  )
15437
16214
 
15438
- async def list_log_stores_with_options_async(
16215
+ async def list_ingest_processors_with_options_async(
15439
16216
  self,
15440
16217
  project: str,
15441
- request: sls_20201230_models.ListLogStoresRequest,
16218
+ request: sls_20201230_models.ListIngestProcessorsRequest,
15442
16219
  headers: Dict[str, str],
15443
16220
  runtime: util_models.RuntimeOptions,
15444
- ) -> sls_20201230_models.ListLogStoresResponse:
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):
16235
+ query['displayName'] = request.display_name
16236
+ if not UtilClient.is_unset(request.offset):
16237
+ query['offset'] = request.offset
16238
+ if not UtilClient.is_unset(request.processor_name):
16239
+ query['processorName'] = request.processor_name
16240
+ if not UtilClient.is_unset(request.size):
16241
+ query['size'] = request.size
16242
+ req = open_api_models.OpenApiRequest(
16243
+ host_map=host_map,
16244
+ headers=headers,
16245
+ query=OpenApiUtilClient.query(query)
16246
+ )
16247
+ params = open_api_models.Params(
16248
+ action='ListIngestProcessors',
16249
+ version='2020-12-30',
16250
+ protocol='HTTPS',
16251
+ pathname=f'/ingestprocessors',
16252
+ method='GET',
16253
+ auth_type='AK',
16254
+ style='ROA',
16255
+ req_body_type='json',
16256
+ body_type='json'
16257
+ )
16258
+ return TeaCore.from_map(
16259
+ sls_20201230_models.ListIngestProcessorsResponse(),
16260
+ await self.execute_async(params, req, runtime)
16261
+ )
16262
+
16263
+ def list_ingest_processors(
16264
+ self,
16265
+ project: str,
16266
+ request: sls_20201230_models.ListIngestProcessorsRequest,
16267
+ ) -> sls_20201230_models.ListIngestProcessorsResponse:
16268
+ """
16269
+ @summary Queries a list of ingest processors that meet specific conditions.
16270
+
16271
+ @param request: ListIngestProcessorsRequest
16272
+ @return: ListIngestProcessorsResponse
16273
+ """
16274
+ runtime = util_models.RuntimeOptions()
16275
+ headers = {}
16276
+ return self.list_ingest_processors_with_options(project, request, headers, runtime)
16277
+
16278
+ async def list_ingest_processors_async(
16279
+ self,
16280
+ project: str,
16281
+ request: sls_20201230_models.ListIngestProcessorsRequest,
16282
+ ) -> sls_20201230_models.ListIngestProcessorsResponse:
16283
+ """
16284
+ @summary Queries a list of ingest processors that meet specific conditions.
16285
+
16286
+ @param request: ListIngestProcessorsRequest
16287
+ @return: ListIngestProcessorsResponse
16288
+ """
16289
+ runtime = util_models.RuntimeOptions()
16290
+ headers = {}
16291
+ return await self.list_ingest_processors_with_options_async(project, request, headers, runtime)
16292
+
16293
+ def list_log_stores_with_options(
16294
+ self,
16295
+ project: str,
16296
+ request: sls_20201230_models.ListLogStoresRequest,
16297
+ headers: Dict[str, str],
16298
+ runtime: util_models.RuntimeOptions,
16299
+ ) -> sls_20201230_models.ListLogStoresResponse:
16300
+ """
16301
+ @summary Queries all Logstores or Logstores that match specific conditions in a project.
16302
+
16303
+ @description ### Usage notes
16304
+ Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
16305
+ An AccessKey pair is created and obtained. For more information, see [AccessKey pair](https://help.aliyun.com/document_detail/29009.html).
16306
+ The AccessKey pair of an Alibaba Cloud account has permissions on all API operations. Using these credentials to perform operations in Simple Log Service is a high-risk operation. We recommend that you use a RAM user to call API operations or perform routine O&M. To create a RAM user, log on to the RAM console. Make sure that the RAM user has the management permissions on Simple Log Service resources. For more information, see [Create a RAM user and authorize the RAM user to access Simple Log Service](https://help.aliyun.com/document_detail/47664.html).
16307
+ 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).
16308
+ ### Authentication resources
16309
+ 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.
16310
+ |Action|Resource|
16311
+ |:---|:---|
16312
+ |`log:ListLogStores`|`acs:log:{#regionId}:{#accountId}:project/{#ProjectName}/logstore/`|
16313
+
16314
+ @param request: ListLogStoresRequest
16315
+ @param headers: map
16316
+ @param runtime: runtime options for this request RuntimeOptions
16317
+ @return: ListLogStoresResponse
16318
+ """
16319
+ UtilClient.validate_model(request)
16320
+ host_map = {}
16321
+ host_map['project'] = project
16322
+ query = {}
16323
+ if not UtilClient.is_unset(request.logstore_name):
16324
+ query['logstoreName'] = request.logstore_name
16325
+ if not UtilClient.is_unset(request.mode):
16326
+ query['mode'] = request.mode
16327
+ if not UtilClient.is_unset(request.offset):
16328
+ query['offset'] = request.offset
16329
+ if not UtilClient.is_unset(request.size):
16330
+ query['size'] = request.size
16331
+ if not UtilClient.is_unset(request.telemetry_type):
16332
+ query['telemetryType'] = request.telemetry_type
16333
+ req = open_api_models.OpenApiRequest(
16334
+ host_map=host_map,
16335
+ headers=headers,
16336
+ query=OpenApiUtilClient.query(query)
16337
+ )
16338
+ params = open_api_models.Params(
16339
+ action='ListLogStores',
16340
+ version='2020-12-30',
16341
+ protocol='HTTPS',
16342
+ pathname=f'/logstores',
16343
+ method='GET',
16344
+ auth_type='AK',
16345
+ style='ROA',
16346
+ req_body_type='json',
16347
+ body_type='json'
16348
+ )
16349
+ return TeaCore.from_map(
16350
+ sls_20201230_models.ListLogStoresResponse(),
16351
+ self.execute(params, req, runtime)
16352
+ )
16353
+
16354
+ async def list_log_stores_with_options_async(
16355
+ self,
16356
+ project: str,
16357
+ request: sls_20201230_models.ListLogStoresRequest,
16358
+ headers: Dict[str, str],
16359
+ runtime: util_models.RuntimeOptions,
16360
+ ) -> sls_20201230_models.ListLogStoresResponse:
15445
16361
  """
15446
16362
  @summary Queries all Logstores or Logstores that match specific conditions in a project.
15447
16363
 
@@ -16619,6 +17535,8 @@ class Client(OpenApiClient):
16619
17535
  """
16620
17536
  UtilClient.validate_model(request)
16621
17537
  query = {}
17538
+ if not UtilClient.is_unset(request.description):
17539
+ query['description'] = request.description
16622
17540
  if not UtilClient.is_unset(request.fetch_quota):
16623
17541
  query['fetchQuota'] = request.fetch_quota
16624
17542
  if not UtilClient.is_unset(request.offset):
@@ -16668,6 +17586,8 @@ class Client(OpenApiClient):
16668
17586
  """
16669
17587
  UtilClient.validate_model(request)
16670
17588
  query = {}
17589
+ if not UtilClient.is_unset(request.description):
17590
+ query['description'] = request.description
16671
17591
  if not UtilClient.is_unset(request.fetch_quota):
16672
17592
  query['fetchQuota'] = request.fetch_quota
16673
17593
  if not UtilClient.is_unset(request.offset):
@@ -17714,6 +18634,8 @@ class Client(OpenApiClient):
17714
18634
  @return: PullLogsResponse
17715
18635
  """
17716
18636
  UtilClient.validate_model(request)
18637
+ host_map = {}
18638
+ host_map['project'] = project
17717
18639
  query = {}
17718
18640
  if not UtilClient.is_unset(request.count):
17719
18641
  query['count'] = request.count
@@ -17729,6 +18651,7 @@ class Client(OpenApiClient):
17729
18651
  if not UtilClient.is_unset(headers.accept_encoding):
17730
18652
  real_headers['Accept-Encoding'] = UtilClient.to_jsonstring(headers.accept_encoding)
17731
18653
  req = open_api_models.OpenApiRequest(
18654
+ host_map=host_map,
17732
18655
  headers=real_headers,
17733
18656
  query=OpenApiUtilClient.query(query)
17734
18657
  )
@@ -17772,6 +18695,8 @@ class Client(OpenApiClient):
17772
18695
  @return: PullLogsResponse
17773
18696
  """
17774
18697
  UtilClient.validate_model(request)
18698
+ host_map = {}
18699
+ host_map['project'] = project
17775
18700
  query = {}
17776
18701
  if not UtilClient.is_unset(request.count):
17777
18702
  query['count'] = request.count
@@ -17787,6 +18712,7 @@ class Client(OpenApiClient):
17787
18712
  if not UtilClient.is_unset(headers.accept_encoding):
17788
18713
  real_headers['Accept-Encoding'] = UtilClient.to_jsonstring(headers.accept_encoding)
17789
18714
  req = open_api_models.OpenApiRequest(
18715
+ host_map=host_map,
17790
18716
  headers=real_headers,
17791
18717
  query=OpenApiUtilClient.query(query)
17792
18718
  )
@@ -19164,6 +20090,106 @@ class Client(OpenApiClient):
19164
20090
  headers = {}
19165
20091
  return await self.split_shard_with_options_async(project, logstore, shard, request, headers, runtime)
19166
20092
 
20093
+ def start_azure_blob_ingestion_with_options(
20094
+ self,
20095
+ project: str,
20096
+ azure_blob_ingestion_name: str,
20097
+ headers: Dict[str, str],
20098
+ runtime: util_models.RuntimeOptions,
20099
+ ) -> sls_20201230_models.StartAzureBlobIngestionResponse:
20100
+ """
20101
+ @summary 启动Azure blob文件导入任务
20102
+
20103
+ @param headers: map
20104
+ @param runtime: runtime options for this request RuntimeOptions
20105
+ @return: StartAzureBlobIngestionResponse
20106
+ """
20107
+ host_map = {}
20108
+ host_map['project'] = project
20109
+ req = open_api_models.OpenApiRequest(
20110
+ host_map=host_map,
20111
+ headers=headers
20112
+ )
20113
+ params = open_api_models.Params(
20114
+ action='StartAzureBlobIngestion',
20115
+ version='2020-12-30',
20116
+ protocol='HTTPS',
20117
+ pathname=f'/azureblobingestions/{azure_blob_ingestion_name}?action=START',
20118
+ method='PUT',
20119
+ auth_type='AK',
20120
+ style='ROA',
20121
+ req_body_type='json',
20122
+ body_type='none'
20123
+ )
20124
+ return TeaCore.from_map(
20125
+ sls_20201230_models.StartAzureBlobIngestionResponse(),
20126
+ self.execute(params, req, runtime)
20127
+ )
20128
+
20129
+ async def start_azure_blob_ingestion_with_options_async(
20130
+ self,
20131
+ project: str,
20132
+ azure_blob_ingestion_name: str,
20133
+ headers: Dict[str, str],
20134
+ runtime: util_models.RuntimeOptions,
20135
+ ) -> sls_20201230_models.StartAzureBlobIngestionResponse:
20136
+ """
20137
+ @summary 启动Azure blob文件导入任务
20138
+
20139
+ @param headers: map
20140
+ @param runtime: runtime options for this request RuntimeOptions
20141
+ @return: StartAzureBlobIngestionResponse
20142
+ """
20143
+ host_map = {}
20144
+ host_map['project'] = project
20145
+ req = open_api_models.OpenApiRequest(
20146
+ host_map=host_map,
20147
+ headers=headers
20148
+ )
20149
+ params = open_api_models.Params(
20150
+ action='StartAzureBlobIngestion',
20151
+ version='2020-12-30',
20152
+ protocol='HTTPS',
20153
+ pathname=f'/azureblobingestions/{azure_blob_ingestion_name}?action=START',
20154
+ method='PUT',
20155
+ auth_type='AK',
20156
+ style='ROA',
20157
+ req_body_type='json',
20158
+ body_type='none'
20159
+ )
20160
+ return TeaCore.from_map(
20161
+ sls_20201230_models.StartAzureBlobIngestionResponse(),
20162
+ await self.execute_async(params, req, runtime)
20163
+ )
20164
+
20165
+ def start_azure_blob_ingestion(
20166
+ self,
20167
+ project: str,
20168
+ azure_blob_ingestion_name: str,
20169
+ ) -> sls_20201230_models.StartAzureBlobIngestionResponse:
20170
+ """
20171
+ @summary 启动Azure blob文件导入任务
20172
+
20173
+ @return: StartAzureBlobIngestionResponse
20174
+ """
20175
+ runtime = util_models.RuntimeOptions()
20176
+ headers = {}
20177
+ return self.start_azure_blob_ingestion_with_options(project, azure_blob_ingestion_name, headers, runtime)
20178
+
20179
+ async def start_azure_blob_ingestion_async(
20180
+ self,
20181
+ project: str,
20182
+ azure_blob_ingestion_name: str,
20183
+ ) -> sls_20201230_models.StartAzureBlobIngestionResponse:
20184
+ """
20185
+ @summary 启动Azure blob文件导入任务
20186
+
20187
+ @return: StartAzureBlobIngestionResponse
20188
+ """
20189
+ runtime = util_models.RuntimeOptions()
20190
+ headers = {}
20191
+ return await self.start_azure_blob_ingestion_with_options_async(project, azure_blob_ingestion_name, headers, runtime)
20192
+
19167
20193
  def start_etlwith_options(
19168
20194
  self,
19169
20195
  project: str,
@@ -19264,24 +20290,19 @@ class Client(OpenApiClient):
19264
20290
  headers = {}
19265
20291
  return await self.start_etlwith_options_async(project, etl_name, headers, runtime)
19266
20292
 
19267
- def start_max_compute_export_with_options(
20293
+ def start_elasticsearch_ingestion_with_options(
19268
20294
  self,
19269
20295
  project: str,
19270
- mc_export_name: str,
20296
+ elasticsearch_ingestion_name: str,
19271
20297
  headers: Dict[str, str],
19272
20298
  runtime: util_models.RuntimeOptions,
19273
- ) -> sls_20201230_models.StartMaxComputeExportResponse:
20299
+ ) -> sls_20201230_models.StartElasticsearchIngestionResponse:
19274
20300
  """
19275
- @summary Starts a MaxCompute data shipping job.
19276
-
19277
- @description Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
19278
- An AccessKey pair is created and obtained. For more information, see [AccessKey pair](https://help.aliyun.com/document_detail/29009.html).
19279
- 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).
19280
- 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).
20301
+ @summary 启动ES导入任务
19281
20302
 
19282
20303
  @param headers: map
19283
20304
  @param runtime: runtime options for this request RuntimeOptions
19284
- @return: StartMaxComputeExportResponse
20305
+ @return: StartElasticsearchIngestionResponse
19285
20306
  """
19286
20307
  host_map = {}
19287
20308
  host_map['project'] = project
@@ -19290,10 +20311,10 @@ class Client(OpenApiClient):
19290
20311
  headers=headers
19291
20312
  )
19292
20313
  params = open_api_models.Params(
19293
- action='StartMaxComputeExport',
20314
+ action='StartElasticsearchIngestion',
19294
20315
  version='2020-12-30',
19295
20316
  protocol='HTTPS',
19296
- pathname=f'/maxcomputeexports/{mc_export_name}?action=START',
20317
+ pathname=f'/elasticsearchingestions/{elasticsearch_ingestion_name}',
19297
20318
  method='PUT',
19298
20319
  auth_type='AK',
19299
20320
  style='ROA',
@@ -19301,28 +20322,23 @@ class Client(OpenApiClient):
19301
20322
  body_type='none'
19302
20323
  )
19303
20324
  return TeaCore.from_map(
19304
- sls_20201230_models.StartMaxComputeExportResponse(),
20325
+ sls_20201230_models.StartElasticsearchIngestionResponse(),
19305
20326
  self.execute(params, req, runtime)
19306
20327
  )
19307
20328
 
19308
- async def start_max_compute_export_with_options_async(
20329
+ async def start_elasticsearch_ingestion_with_options_async(
19309
20330
  self,
19310
20331
  project: str,
19311
- mc_export_name: str,
20332
+ elasticsearch_ingestion_name: str,
19312
20333
  headers: Dict[str, str],
19313
20334
  runtime: util_models.RuntimeOptions,
19314
- ) -> sls_20201230_models.StartMaxComputeExportResponse:
20335
+ ) -> sls_20201230_models.StartElasticsearchIngestionResponse:
19315
20336
  """
19316
- @summary Starts a MaxCompute data shipping job.
19317
-
19318
- @description Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
19319
- An AccessKey pair is created and obtained. For more information, see [AccessKey pair](https://help.aliyun.com/document_detail/29009.html).
19320
- 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).
19321
- 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).
20337
+ @summary 启动ES导入任务
19322
20338
 
19323
20339
  @param headers: map
19324
20340
  @param runtime: runtime options for this request RuntimeOptions
19325
- @return: StartMaxComputeExportResponse
20341
+ @return: StartElasticsearchIngestionResponse
19326
20342
  """
19327
20343
  host_map = {}
19328
20344
  host_map['project'] = project
@@ -19331,10 +20347,10 @@ class Client(OpenApiClient):
19331
20347
  headers=headers
19332
20348
  )
19333
20349
  params = open_api_models.Params(
19334
- action='StartMaxComputeExport',
20350
+ action='StartElasticsearchIngestion',
19335
20351
  version='2020-12-30',
19336
20352
  protocol='HTTPS',
19337
- pathname=f'/maxcomputeexports/{mc_export_name}?action=START',
20353
+ pathname=f'/elasticsearchingestions/{elasticsearch_ingestion_name}',
19338
20354
  method='PUT',
19339
20355
  auth_type='AK',
19340
20356
  style='ROA',
@@ -19342,24 +20358,134 @@ class Client(OpenApiClient):
19342
20358
  body_type='none'
19343
20359
  )
19344
20360
  return TeaCore.from_map(
19345
- sls_20201230_models.StartMaxComputeExportResponse(),
20361
+ sls_20201230_models.StartElasticsearchIngestionResponse(),
19346
20362
  await self.execute_async(params, req, runtime)
19347
20363
  )
19348
20364
 
19349
- def start_max_compute_export(
20365
+ def start_elasticsearch_ingestion(
19350
20366
  self,
19351
20367
  project: str,
19352
- mc_export_name: str,
19353
- ) -> sls_20201230_models.StartMaxComputeExportResponse:
20368
+ elasticsearch_ingestion_name: str,
20369
+ ) -> sls_20201230_models.StartElasticsearchIngestionResponse:
19354
20370
  """
19355
- @summary Starts a MaxCompute data shipping job.
19356
-
19357
- @description Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
19358
- An AccessKey pair is created and obtained. For more information, see [AccessKey pair](https://help.aliyun.com/document_detail/29009.html).
19359
- 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).
19360
- 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).
20371
+ @summary 启动ES导入任务
19361
20372
 
19362
- @return: StartMaxComputeExportResponse
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(
20435
+ self,
20436
+ project: str,
20437
+ mc_export_name: str,
20438
+ headers: Dict[str, str],
20439
+ runtime: util_models.RuntimeOptions,
20440
+ ) -> sls_20201230_models.StartMaxComputeExportResponse:
20441
+ """
20442
+ @summary Starts a MaxCompute data shipping job.
20443
+
20444
+ @description Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
20445
+ An AccessKey pair is created and obtained. For more information, see [AccessKey pair](https://help.aliyun.com/document_detail/29009.html).
20446
+ 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).
20447
+ 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).
20448
+
20449
+ @param headers: map
20450
+ @param runtime: runtime options for this request RuntimeOptions
20451
+ @return: StartMaxComputeExportResponse
20452
+ """
20453
+ host_map = {}
20454
+ host_map['project'] = project
20455
+ req = open_api_models.OpenApiRequest(
20456
+ host_map=host_map,
20457
+ headers=headers
20458
+ )
20459
+ params = open_api_models.Params(
20460
+ action='StartMaxComputeExport',
20461
+ version='2020-12-30',
20462
+ protocol='HTTPS',
20463
+ pathname=f'/maxcomputeexports/{mc_export_name}?action=START',
20464
+ method='PUT',
20465
+ auth_type='AK',
20466
+ style='ROA',
20467
+ req_body_type='json',
20468
+ body_type='none'
20469
+ )
20470
+ return TeaCore.from_map(
20471
+ sls_20201230_models.StartMaxComputeExportResponse(),
20472
+ await self.execute_async(params, req, runtime)
20473
+ )
20474
+
20475
+ def start_max_compute_export(
20476
+ self,
20477
+ project: str,
20478
+ mc_export_name: str,
20479
+ ) -> sls_20201230_models.StartMaxComputeExportResponse:
20480
+ """
20481
+ @summary Starts a MaxCompute data shipping job.
20482
+
20483
+ @description Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
20484
+ An AccessKey pair is created and obtained. For more information, see [AccessKey pair](https://help.aliyun.com/document_detail/29009.html).
20485
+ 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).
20486
+ 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).
20487
+
20488
+ @return: StartMaxComputeExportResponse
19363
20489
  """
19364
20490
  runtime = util_models.RuntimeOptions()
19365
20491
  headers = {}
@@ -19684,6 +20810,106 @@ class Client(OpenApiClient):
19684
20810
  headers = {}
19685
20811
  return await self.start_ossingestion_with_options_async(project, oss_ingestion_name, headers, runtime)
19686
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
+
19687
20913
  def stop_etlwith_options(
19688
20914
  self,
19689
20915
  project: str,
@@ -19784,6 +21010,106 @@ class Client(OpenApiClient):
19784
21010
  headers = {}
19785
21011
  return await self.stop_etlwith_options_async(project, etl_name, headers, runtime)
19786
21012
 
21013
+ def stop_elasticsearch_ingestion_with_options(
21014
+ self,
21015
+ project: str,
21016
+ elasticsearch_ingestion_name: str,
21017
+ headers: Dict[str, str],
21018
+ runtime: util_models.RuntimeOptions,
21019
+ ) -> sls_20201230_models.StopElasticsearchIngestionResponse:
21020
+ """
21021
+ @summary 停止ES导入任务
21022
+
21023
+ @param headers: map
21024
+ @param runtime: runtime options for this request RuntimeOptions
21025
+ @return: StopElasticsearchIngestionResponse
21026
+ """
21027
+ host_map = {}
21028
+ host_map['project'] = project
21029
+ req = open_api_models.OpenApiRequest(
21030
+ host_map=host_map,
21031
+ headers=headers
21032
+ )
21033
+ params = open_api_models.Params(
21034
+ action='StopElasticsearchIngestion',
21035
+ version='2020-12-30',
21036
+ protocol='HTTPS',
21037
+ pathname=f'/elasticsearchingestion/{elasticsearch_ingestion_name}?action=STOP',
21038
+ method='PUT',
21039
+ auth_type='AK',
21040
+ style='ROA',
21041
+ req_body_type='json',
21042
+ body_type='none'
21043
+ )
21044
+ return TeaCore.from_map(
21045
+ sls_20201230_models.StopElasticsearchIngestionResponse(),
21046
+ self.execute(params, req, runtime)
21047
+ )
21048
+
21049
+ async def stop_elasticsearch_ingestion_with_options_async(
21050
+ self,
21051
+ project: str,
21052
+ elasticsearch_ingestion_name: str,
21053
+ headers: Dict[str, str],
21054
+ runtime: util_models.RuntimeOptions,
21055
+ ) -> sls_20201230_models.StopElasticsearchIngestionResponse:
21056
+ """
21057
+ @summary 停止ES导入任务
21058
+
21059
+ @param headers: map
21060
+ @param runtime: runtime options for this request RuntimeOptions
21061
+ @return: StopElasticsearchIngestionResponse
21062
+ """
21063
+ host_map = {}
21064
+ host_map['project'] = project
21065
+ req = open_api_models.OpenApiRequest(
21066
+ host_map=host_map,
21067
+ headers=headers
21068
+ )
21069
+ params = open_api_models.Params(
21070
+ action='StopElasticsearchIngestion',
21071
+ version='2020-12-30',
21072
+ protocol='HTTPS',
21073
+ pathname=f'/elasticsearchingestion/{elasticsearch_ingestion_name}?action=STOP',
21074
+ method='PUT',
21075
+ auth_type='AK',
21076
+ style='ROA',
21077
+ req_body_type='json',
21078
+ body_type='none'
21079
+ )
21080
+ return TeaCore.from_map(
21081
+ sls_20201230_models.StopElasticsearchIngestionResponse(),
21082
+ await self.execute_async(params, req, runtime)
21083
+ )
21084
+
21085
+ def stop_elasticsearch_ingestion(
21086
+ self,
21087
+ project: str,
21088
+ elasticsearch_ingestion_name: str,
21089
+ ) -> sls_20201230_models.StopElasticsearchIngestionResponse:
21090
+ """
21091
+ @summary 停止ES导入任务
21092
+
21093
+ @return: StopElasticsearchIngestionResponse
21094
+ """
21095
+ runtime = util_models.RuntimeOptions()
21096
+ headers = {}
21097
+ return self.stop_elasticsearch_ingestion_with_options(project, elasticsearch_ingestion_name, headers, runtime)
21098
+
21099
+ async def stop_elasticsearch_ingestion_async(
21100
+ self,
21101
+ project: str,
21102
+ elasticsearch_ingestion_name: str,
21103
+ ) -> sls_20201230_models.StopElasticsearchIngestionResponse:
21104
+ """
21105
+ @summary 停止ES导入任务
21106
+
21107
+ @return: StopElasticsearchIngestionResponse
21108
+ """
21109
+ runtime = util_models.RuntimeOptions()
21110
+ headers = {}
21111
+ return await self.stop_elasticsearch_ingestion_with_options_async(project, elasticsearch_ingestion_name, headers, runtime)
21112
+
19787
21113
  def stop_max_compute_export_with_options(
19788
21114
  self,
19789
21115
  project: str,
@@ -20990,6 +22316,136 @@ class Client(OpenApiClient):
20990
22316
  headers = {}
20991
22317
  return await self.update_annotation_label_with_options_async(request, headers, runtime)
20992
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
+
20993
22449
  def update_config_with_options(
20994
22450
  self,
20995
22451
  project: str,
@@ -21576,6 +23032,136 @@ class Client(OpenApiClient):
21576
23032
  headers = {}
21577
23033
  return await self.update_etlwith_options_async(project, etl_name, request, headers, runtime)
21578
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
+
21579
23165
  def update_index_with_options(
21580
23166
  self,
21581
23167
  project: str,
@@ -21744,6 +23330,8 @@ class Client(OpenApiClient):
21744
23330
  body['mode'] = request.mode
21745
23331
  if not UtilClient.is_unset(request.shard_count):
21746
23332
  body['shardCount'] = request.shard_count
23333
+ if not UtilClient.is_unset(request.sharding_policy):
23334
+ body['shardingPolicy'] = request.sharding_policy
21747
23335
  if not UtilClient.is_unset(request.telemetry_type):
21748
23336
  body['telemetryType'] = request.telemetry_type
21749
23337
  if not UtilClient.is_unset(request.ttl):
@@ -21813,6 +23401,8 @@ class Client(OpenApiClient):
21813
23401
  body['mode'] = request.mode
21814
23402
  if not UtilClient.is_unset(request.shard_count):
21815
23403
  body['shardCount'] = request.shard_count
23404
+ if not UtilClient.is_unset(request.sharding_policy):
23405
+ body['shardingPolicy'] = request.sharding_policy
21816
23406
  if not UtilClient.is_unset(request.telemetry_type):
21817
23407
  body['telemetryType'] = request.telemetry_type
21818
23408
  if not UtilClient.is_unset(request.ttl):
@@ -23005,6 +24595,8 @@ class Client(OpenApiClient):
23005
24595
  host_map = {}
23006
24596
  host_map['project'] = project
23007
24597
  body = {}
24598
+ if not UtilClient.is_unset(request.append_meta):
24599
+ body['appendMeta'] = request.append_meta
23008
24600
  if not UtilClient.is_unset(request.auto_split):
23009
24601
  body['autoSplit'] = request.auto_split
23010
24602
  if not UtilClient.is_unset(request.hot_ttl):
@@ -23015,6 +24607,8 @@ class Client(OpenApiClient):
23015
24607
  body['maxSplitShard'] = request.max_split_shard
23016
24608
  if not UtilClient.is_unset(request.mode):
23017
24609
  body['mode'] = request.mode
24610
+ if not UtilClient.is_unset(request.sharding_policy):
24611
+ body['shardingPolicy'] = request.sharding_policy
23018
24612
  if not UtilClient.is_unset(request.ttl):
23019
24613
  body['ttl'] = request.ttl
23020
24614
  req = open_api_models.OpenApiRequest(
@@ -23067,6 +24661,8 @@ class Client(OpenApiClient):
23067
24661
  host_map = {}
23068
24662
  host_map['project'] = project
23069
24663
  body = {}
24664
+ if not UtilClient.is_unset(request.append_meta):
24665
+ body['appendMeta'] = request.append_meta
23070
24666
  if not UtilClient.is_unset(request.auto_split):
23071
24667
  body['autoSplit'] = request.auto_split
23072
24668
  if not UtilClient.is_unset(request.hot_ttl):
@@ -23077,6 +24673,8 @@ class Client(OpenApiClient):
23077
24673
  body['maxSplitShard'] = request.max_split_shard
23078
24674
  if not UtilClient.is_unset(request.mode):
23079
24675
  body['mode'] = request.mode
24676
+ if not UtilClient.is_unset(request.sharding_policy):
24677
+ body['shardingPolicy'] = request.sharding_policy
23080
24678
  if not UtilClient.is_unset(request.ttl):
23081
24679
  body['ttl'] = request.ttl
23082
24680
  req = open_api_models.OpenApiRequest(