alibabacloud-sls20201230 5.2.1__py3-none-any.whl → 5.2.3__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.
- alibabacloud_sls20201230/__init__.py +1 -1
- alibabacloud_sls20201230/client.py +240 -621
- alibabacloud_sls20201230/models.py +610 -1340
- {alibabacloud_sls20201230-5.2.1.dist-info → alibabacloud_sls20201230-5.2.3.dist-info}/METADATA +6 -8
- alibabacloud_sls20201230-5.2.3.dist-info/RECORD +8 -0
- {alibabacloud_sls20201230-5.2.1.dist-info → alibabacloud_sls20201230-5.2.3.dist-info}/WHEEL +1 -1
- alibabacloud_sls20201230-5.2.1.dist-info/RECORD +0 -8
- {alibabacloud_sls20201230-5.2.1.dist-info → alibabacloud_sls20201230-5.2.3.dist-info}/LICENSE +0 -0
- {alibabacloud_sls20201230-5.2.1.dist-info → alibabacloud_sls20201230-5.2.3.dist-info}/top_level.txt +0 -0
@@ -3,7 +3,6 @@
|
|
3
3
|
from typing import Dict
|
4
4
|
from Tea.core import TeaCore
|
5
5
|
|
6
|
-
from alibabacloud_gateway_spi.client import Client as SPIClient
|
7
6
|
from alibabacloud_tea_openapi.client import Client as OpenApiClient
|
8
7
|
from alibabacloud_tea_openapi import models as open_api_models
|
9
8
|
from alibabacloud_gateway_sls.client import Client as GatewayClientClient
|
@@ -17,15 +16,13 @@ class Client(OpenApiClient):
|
|
17
16
|
"""
|
18
17
|
*\
|
19
18
|
"""
|
20
|
-
_client: SPIClient = None
|
21
|
-
|
22
19
|
def __init__(
|
23
20
|
self,
|
24
21
|
config: open_api_models.Config,
|
25
22
|
):
|
26
23
|
super().__init__(config)
|
27
|
-
|
28
|
-
self._spi =
|
24
|
+
gateway_client = GatewayClientClient()
|
25
|
+
self._spi = gateway_client
|
29
26
|
self._signature_algorithm = 'v2'
|
30
27
|
self._endpoint_rule = 'central'
|
31
28
|
|
@@ -413,7 +410,13 @@ class Client(OpenApiClient):
|
|
413
410
|
runtime: util_models.RuntimeOptions,
|
414
411
|
) -> sls_20201230_models.ConsumerGroupUpdateCheckPointResponse:
|
415
412
|
"""
|
416
|
-
@summary
|
413
|
+
@summary Updates the data consumption progress.
|
414
|
+
|
415
|
+
@description If you do not specify a consumer, you must set **forceSuccess** to **true**. Otherwise, the checkpoint cannot be updated.
|
416
|
+
Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
|
417
|
+
An AccessKey pair is created and obtained. For more information, see [AccessKey pair](https://help.aliyun.com/document_detail/29009.html).
|
418
|
+
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).
|
419
|
+
The information that is required to query logs is obtained. The information includes the name of the project to which the logs belong, the region of the project, and the name of the Logstore to which the logs belong. For more information, see [Manage a project](https://help.aliyun.com/document_detail/48984.html) and [Manage a Logstore](https://help.aliyun.com/document_detail/48990.html).
|
417
420
|
|
418
421
|
@param request: ConsumerGroupUpdateCheckPointRequest
|
419
422
|
@param headers: map
|
@@ -428,11 +431,16 @@ class Client(OpenApiClient):
|
|
428
431
|
query['consumer'] = request.consumer
|
429
432
|
if not UtilClient.is_unset(request.force_success):
|
430
433
|
query['forceSuccess'] = request.force_success
|
434
|
+
body = {}
|
435
|
+
if not UtilClient.is_unset(request.checkpoint):
|
436
|
+
body['checkpoint'] = request.checkpoint
|
437
|
+
if not UtilClient.is_unset(request.shard):
|
438
|
+
body['shard'] = request.shard
|
431
439
|
req = open_api_models.OpenApiRequest(
|
432
440
|
host_map=host_map,
|
433
441
|
headers=headers,
|
434
442
|
query=OpenApiUtilClient.query(query),
|
435
|
-
body=
|
443
|
+
body=OpenApiUtilClient.parse_to_map(body)
|
436
444
|
)
|
437
445
|
params = open_api_models.Params(
|
438
446
|
action='ConsumerGroupUpdateCheckPoint',
|
@@ -460,7 +468,13 @@ class Client(OpenApiClient):
|
|
460
468
|
runtime: util_models.RuntimeOptions,
|
461
469
|
) -> sls_20201230_models.ConsumerGroupUpdateCheckPointResponse:
|
462
470
|
"""
|
463
|
-
@summary
|
471
|
+
@summary Updates the data consumption progress.
|
472
|
+
|
473
|
+
@description If you do not specify a consumer, you must set **forceSuccess** to **true**. Otherwise, the checkpoint cannot be updated.
|
474
|
+
Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
|
475
|
+
An AccessKey pair is created and obtained. For more information, see [AccessKey pair](https://help.aliyun.com/document_detail/29009.html).
|
476
|
+
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).
|
477
|
+
The information that is required to query logs is obtained. The information includes the name of the project to which the logs belong, the region of the project, and the name of the Logstore to which the logs belong. For more information, see [Manage a project](https://help.aliyun.com/document_detail/48984.html) and [Manage a Logstore](https://help.aliyun.com/document_detail/48990.html).
|
464
478
|
|
465
479
|
@param request: ConsumerGroupUpdateCheckPointRequest
|
466
480
|
@param headers: map
|
@@ -475,11 +489,16 @@ class Client(OpenApiClient):
|
|
475
489
|
query['consumer'] = request.consumer
|
476
490
|
if not UtilClient.is_unset(request.force_success):
|
477
491
|
query['forceSuccess'] = request.force_success
|
492
|
+
body = {}
|
493
|
+
if not UtilClient.is_unset(request.checkpoint):
|
494
|
+
body['checkpoint'] = request.checkpoint
|
495
|
+
if not UtilClient.is_unset(request.shard):
|
496
|
+
body['shard'] = request.shard
|
478
497
|
req = open_api_models.OpenApiRequest(
|
479
498
|
host_map=host_map,
|
480
499
|
headers=headers,
|
481
500
|
query=OpenApiUtilClient.query(query),
|
482
|
-
body=
|
501
|
+
body=OpenApiUtilClient.parse_to_map(body)
|
483
502
|
)
|
484
503
|
params = open_api_models.Params(
|
485
504
|
action='ConsumerGroupUpdateCheckPoint',
|
@@ -505,7 +524,13 @@ class Client(OpenApiClient):
|
|
505
524
|
request: sls_20201230_models.ConsumerGroupUpdateCheckPointRequest,
|
506
525
|
) -> sls_20201230_models.ConsumerGroupUpdateCheckPointResponse:
|
507
526
|
"""
|
508
|
-
@summary
|
527
|
+
@summary Updates the data consumption progress.
|
528
|
+
|
529
|
+
@description If you do not specify a consumer, you must set **forceSuccess** to **true**. Otherwise, the checkpoint cannot be updated.
|
530
|
+
Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
|
531
|
+
An AccessKey pair is created and obtained. For more information, see [AccessKey pair](https://help.aliyun.com/document_detail/29009.html).
|
532
|
+
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).
|
533
|
+
The information that is required to query logs is obtained. The information includes the name of the project to which the logs belong, the region of the project, and the name of the Logstore to which the logs belong. For more information, see [Manage a project](https://help.aliyun.com/document_detail/48984.html) and [Manage a Logstore](https://help.aliyun.com/document_detail/48990.html).
|
509
534
|
|
510
535
|
@param request: ConsumerGroupUpdateCheckPointRequest
|
511
536
|
@return: ConsumerGroupUpdateCheckPointResponse
|
@@ -522,7 +547,13 @@ class Client(OpenApiClient):
|
|
522
547
|
request: sls_20201230_models.ConsumerGroupUpdateCheckPointRequest,
|
523
548
|
) -> sls_20201230_models.ConsumerGroupUpdateCheckPointResponse:
|
524
549
|
"""
|
525
|
-
@summary
|
550
|
+
@summary Updates the data consumption progress.
|
551
|
+
|
552
|
+
@description If you do not specify a consumer, you must set **forceSuccess** to **true**. Otherwise, the checkpoint cannot be updated.
|
553
|
+
Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
|
554
|
+
An AccessKey pair is created and obtained. For more information, see [AccessKey pair](https://help.aliyun.com/document_detail/29009.html).
|
555
|
+
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).
|
556
|
+
The information that is required to query logs is obtained. The information includes the name of the project to which the logs belong, the region of the project, and the name of the Logstore to which the logs belong. For more information, see [Manage a project](https://help.aliyun.com/document_detail/48984.html) and [Manage a Logstore](https://help.aliyun.com/document_detail/48990.html).
|
526
557
|
|
527
558
|
@param request: ConsumerGroupUpdateCheckPointRequest
|
528
559
|
@return: ConsumerGroupUpdateCheckPointResponse
|
@@ -1014,7 +1045,7 @@ class Client(OpenApiClient):
|
|
1014
1045
|
runtime: util_models.RuntimeOptions,
|
1015
1046
|
) -> sls_20201230_models.CreateConsumerGroupResponse:
|
1016
1047
|
"""
|
1017
|
-
@summary Creates a consumer group for a Logstore.
|
1048
|
+
@summary Creates a consumer group for a specified Logstore.
|
1018
1049
|
|
1019
1050
|
@description ### Usage notes
|
1020
1051
|
Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
|
@@ -1066,7 +1097,7 @@ class Client(OpenApiClient):
|
|
1066
1097
|
runtime: util_models.RuntimeOptions,
|
1067
1098
|
) -> sls_20201230_models.CreateConsumerGroupResponse:
|
1068
1099
|
"""
|
1069
|
-
@summary Creates a consumer group for a Logstore.
|
1100
|
+
@summary Creates a consumer group for a specified Logstore.
|
1070
1101
|
|
1071
1102
|
@description ### Usage notes
|
1072
1103
|
Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
|
@@ -1116,7 +1147,7 @@ class Client(OpenApiClient):
|
|
1116
1147
|
request: sls_20201230_models.CreateConsumerGroupRequest,
|
1117
1148
|
) -> sls_20201230_models.CreateConsumerGroupResponse:
|
1118
1149
|
"""
|
1119
|
-
@summary Creates a consumer group for a Logstore.
|
1150
|
+
@summary Creates a consumer group for a specified Logstore.
|
1120
1151
|
|
1121
1152
|
@description ### Usage notes
|
1122
1153
|
Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
|
@@ -1137,7 +1168,7 @@ class Client(OpenApiClient):
|
|
1137
1168
|
request: sls_20201230_models.CreateConsumerGroupRequest,
|
1138
1169
|
) -> sls_20201230_models.CreateConsumerGroupResponse:
|
1139
1170
|
"""
|
1140
|
-
@summary Creates a consumer group for a Logstore.
|
1171
|
+
@summary Creates a consumer group for a specified Logstore.
|
1141
1172
|
|
1142
1173
|
@description ### Usage notes
|
1143
1174
|
Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
|
@@ -4047,6 +4078,8 @@ class Client(OpenApiClient):
|
|
4047
4078
|
"""
|
4048
4079
|
@summary 通过调用DeleteCollectionPolicy删除配置的日志采集规则
|
4049
4080
|
|
4081
|
+
@description You must use the Simple Log Service endpoint for the China (Shanghai) or Singapore region to call the operation.
|
4082
|
+
|
4050
4083
|
@param request: DeleteCollectionPolicyRequest
|
4051
4084
|
@param headers: map
|
4052
4085
|
@param runtime: runtime options for this request RuntimeOptions
|
@@ -4071,7 +4104,7 @@ class Client(OpenApiClient):
|
|
4071
4104
|
auth_type='AK',
|
4072
4105
|
style='ROA',
|
4073
4106
|
req_body_type='json',
|
4074
|
-
body_type='
|
4107
|
+
body_type='none'
|
4075
4108
|
)
|
4076
4109
|
return TeaCore.from_map(
|
4077
4110
|
sls_20201230_models.DeleteCollectionPolicyResponse(),
|
@@ -4088,6 +4121,8 @@ class Client(OpenApiClient):
|
|
4088
4121
|
"""
|
4089
4122
|
@summary 通过调用DeleteCollectionPolicy删除配置的日志采集规则
|
4090
4123
|
|
4124
|
+
@description You must use the Simple Log Service endpoint for the China (Shanghai) or Singapore region to call the operation.
|
4125
|
+
|
4091
4126
|
@param request: DeleteCollectionPolicyRequest
|
4092
4127
|
@param headers: map
|
4093
4128
|
@param runtime: runtime options for this request RuntimeOptions
|
@@ -4112,7 +4147,7 @@ class Client(OpenApiClient):
|
|
4112
4147
|
auth_type='AK',
|
4113
4148
|
style='ROA',
|
4114
4149
|
req_body_type='json',
|
4115
|
-
body_type='
|
4150
|
+
body_type='none'
|
4116
4151
|
)
|
4117
4152
|
return TeaCore.from_map(
|
4118
4153
|
sls_20201230_models.DeleteCollectionPolicyResponse(),
|
@@ -4127,6 +4162,8 @@ class Client(OpenApiClient):
|
|
4127
4162
|
"""
|
4128
4163
|
@summary 通过调用DeleteCollectionPolicy删除配置的日志采集规则
|
4129
4164
|
|
4165
|
+
@description You must use the Simple Log Service endpoint for the China (Shanghai) or Singapore region to call the operation.
|
4166
|
+
|
4130
4167
|
@param request: DeleteCollectionPolicyRequest
|
4131
4168
|
@return: DeleteCollectionPolicyResponse
|
4132
4169
|
"""
|
@@ -4142,6 +4179,8 @@ class Client(OpenApiClient):
|
|
4142
4179
|
"""
|
4143
4180
|
@summary 通过调用DeleteCollectionPolicy删除配置的日志采集规则
|
4144
4181
|
|
4182
|
+
@description You must use the Simple Log Service endpoint for the China (Shanghai) or Singapore region to call the operation.
|
4183
|
+
|
4145
4184
|
@param request: DeleteCollectionPolicyRequest
|
4146
4185
|
@return: DeleteCollectionPolicyResponse
|
4147
4186
|
"""
|
@@ -5381,7 +5420,7 @@ class Client(OpenApiClient):
|
|
5381
5420
|
runtime: util_models.RuntimeOptions,
|
5382
5421
|
) -> sls_20201230_models.DeleteOSSExportResponse:
|
5383
5422
|
"""
|
5384
|
-
@summary
|
5423
|
+
@summary Deletes an Object Storage Service (OSS) data shipping job.
|
5385
5424
|
|
5386
5425
|
@param headers: map
|
5387
5426
|
@param runtime: runtime options for this request RuntimeOptions
|
@@ -5417,7 +5456,7 @@ class Client(OpenApiClient):
|
|
5417
5456
|
runtime: util_models.RuntimeOptions,
|
5418
5457
|
) -> sls_20201230_models.DeleteOSSExportResponse:
|
5419
5458
|
"""
|
5420
|
-
@summary
|
5459
|
+
@summary Deletes an Object Storage Service (OSS) data shipping job.
|
5421
5460
|
|
5422
5461
|
@param headers: map
|
5423
5462
|
@param runtime: runtime options for this request RuntimeOptions
|
@@ -5451,7 +5490,7 @@ class Client(OpenApiClient):
|
|
5451
5490
|
oss_export_name: str,
|
5452
5491
|
) -> sls_20201230_models.DeleteOSSExportResponse:
|
5453
5492
|
"""
|
5454
|
-
@summary
|
5493
|
+
@summary Deletes an Object Storage Service (OSS) data shipping job.
|
5455
5494
|
|
5456
5495
|
@return: DeleteOSSExportResponse
|
5457
5496
|
"""
|
@@ -5465,7 +5504,7 @@ class Client(OpenApiClient):
|
|
5465
5504
|
oss_export_name: str,
|
5466
5505
|
) -> sls_20201230_models.DeleteOSSExportResponse:
|
5467
5506
|
"""
|
5468
|
-
@summary
|
5507
|
+
@summary Deletes an Object Storage Service (OSS) data shipping job.
|
5469
5508
|
|
5470
5509
|
@return: DeleteOSSExportResponse
|
5471
5510
|
"""
|
@@ -6089,130 +6128,6 @@ class Client(OpenApiClient):
|
|
6089
6128
|
headers = {}
|
6090
6129
|
return await self.delete_scheduled_sqlwith_options_async(project, scheduled_sqlname, headers, runtime)
|
6091
6130
|
|
6092
|
-
def delete_shipper_with_options(
|
6093
|
-
self,
|
6094
|
-
project: str,
|
6095
|
-
logstore: str,
|
6096
|
-
shipper_name: str,
|
6097
|
-
headers: Dict[str, str],
|
6098
|
-
runtime: util_models.RuntimeOptions,
|
6099
|
-
) -> sls_20201230_models.DeleteShipperResponse:
|
6100
|
-
"""
|
6101
|
-
@deprecated OpenAPI DeleteShipper is deprecated
|
6102
|
-
|
6103
|
-
@summary Deletes the log shipping job of a Logstore.
|
6104
|
-
|
6105
|
-
@description Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
|
6106
|
-
|
6107
|
-
@param headers: map
|
6108
|
-
@param runtime: runtime options for this request RuntimeOptions
|
6109
|
-
@return: DeleteShipperResponse
|
6110
|
-
Deprecated
|
6111
|
-
"""
|
6112
|
-
host_map = {}
|
6113
|
-
host_map['project'] = project
|
6114
|
-
req = open_api_models.OpenApiRequest(
|
6115
|
-
host_map=host_map,
|
6116
|
-
headers=headers
|
6117
|
-
)
|
6118
|
-
params = open_api_models.Params(
|
6119
|
-
action='DeleteShipper',
|
6120
|
-
version='2020-12-30',
|
6121
|
-
protocol='HTTPS',
|
6122
|
-
pathname=f'/logstores/{logstore}/shipper/{shipper_name}',
|
6123
|
-
method='DELETE',
|
6124
|
-
auth_type='AK',
|
6125
|
-
style='ROA',
|
6126
|
-
req_body_type='json',
|
6127
|
-
body_type='none'
|
6128
|
-
)
|
6129
|
-
return TeaCore.from_map(
|
6130
|
-
sls_20201230_models.DeleteShipperResponse(),
|
6131
|
-
self.execute(params, req, runtime)
|
6132
|
-
)
|
6133
|
-
|
6134
|
-
async def delete_shipper_with_options_async(
|
6135
|
-
self,
|
6136
|
-
project: str,
|
6137
|
-
logstore: str,
|
6138
|
-
shipper_name: str,
|
6139
|
-
headers: Dict[str, str],
|
6140
|
-
runtime: util_models.RuntimeOptions,
|
6141
|
-
) -> sls_20201230_models.DeleteShipperResponse:
|
6142
|
-
"""
|
6143
|
-
@deprecated OpenAPI DeleteShipper is deprecated
|
6144
|
-
|
6145
|
-
@summary Deletes the log shipping job of a Logstore.
|
6146
|
-
|
6147
|
-
@description Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
|
6148
|
-
|
6149
|
-
@param headers: map
|
6150
|
-
@param runtime: runtime options for this request RuntimeOptions
|
6151
|
-
@return: DeleteShipperResponse
|
6152
|
-
Deprecated
|
6153
|
-
"""
|
6154
|
-
host_map = {}
|
6155
|
-
host_map['project'] = project
|
6156
|
-
req = open_api_models.OpenApiRequest(
|
6157
|
-
host_map=host_map,
|
6158
|
-
headers=headers
|
6159
|
-
)
|
6160
|
-
params = open_api_models.Params(
|
6161
|
-
action='DeleteShipper',
|
6162
|
-
version='2020-12-30',
|
6163
|
-
protocol='HTTPS',
|
6164
|
-
pathname=f'/logstores/{logstore}/shipper/{shipper_name}',
|
6165
|
-
method='DELETE',
|
6166
|
-
auth_type='AK',
|
6167
|
-
style='ROA',
|
6168
|
-
req_body_type='json',
|
6169
|
-
body_type='none'
|
6170
|
-
)
|
6171
|
-
return TeaCore.from_map(
|
6172
|
-
sls_20201230_models.DeleteShipperResponse(),
|
6173
|
-
await self.execute_async(params, req, runtime)
|
6174
|
-
)
|
6175
|
-
|
6176
|
-
def delete_shipper(
|
6177
|
-
self,
|
6178
|
-
project: str,
|
6179
|
-
logstore: str,
|
6180
|
-
shipper_name: str,
|
6181
|
-
) -> sls_20201230_models.DeleteShipperResponse:
|
6182
|
-
"""
|
6183
|
-
@deprecated OpenAPI DeleteShipper is deprecated
|
6184
|
-
|
6185
|
-
@summary Deletes the log shipping job of a Logstore.
|
6186
|
-
|
6187
|
-
@description Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
|
6188
|
-
|
6189
|
-
@return: DeleteShipperResponse
|
6190
|
-
Deprecated
|
6191
|
-
"""
|
6192
|
-
runtime = util_models.RuntimeOptions()
|
6193
|
-
headers = {}
|
6194
|
-
return self.delete_shipper_with_options(project, logstore, shipper_name, headers, runtime)
|
6195
|
-
|
6196
|
-
async def delete_shipper_async(
|
6197
|
-
self,
|
6198
|
-
project: str,
|
6199
|
-
logstore: str,
|
6200
|
-
shipper_name: str,
|
6201
|
-
) -> sls_20201230_models.DeleteShipperResponse:
|
6202
|
-
"""
|
6203
|
-
@deprecated OpenAPI DeleteShipper is deprecated
|
6204
|
-
|
6205
|
-
@summary Deletes the log shipping job of a Logstore.
|
6206
|
-
|
6207
|
-
@description Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
|
6208
|
-
|
6209
|
-
@return: DeleteShipperResponse
|
6210
|
-
Deprecated
|
6211
|
-
"""
|
6212
|
-
runtime = util_models.RuntimeOptions()
|
6213
|
-
headers = {}
|
6214
|
-
return await self.delete_shipper_with_options_async(project, logstore, shipper_name, headers, runtime)
|
6215
|
-
|
6216
6131
|
def delete_store_view_with_options(
|
6217
6132
|
self,
|
6218
6133
|
project: str,
|
@@ -7004,7 +6919,7 @@ class Client(OpenApiClient):
|
|
7004
6919
|
runtime: util_models.RuntimeOptions,
|
7005
6920
|
) -> sls_20201230_models.GetAnnotationLabelResponse:
|
7006
6921
|
"""
|
7007
|
-
@summary Queries a tag table by using a label
|
6922
|
+
@summary Queries a tag table by using a label ID.
|
7008
6923
|
|
7009
6924
|
@param headers: map
|
7010
6925
|
@param runtime: runtime options for this request RuntimeOptions
|
@@ -7036,7 +6951,7 @@ class Client(OpenApiClient):
|
|
7036
6951
|
runtime: util_models.RuntimeOptions,
|
7037
6952
|
) -> sls_20201230_models.GetAnnotationLabelResponse:
|
7038
6953
|
"""
|
7039
|
-
@summary Queries a tag table by using a label
|
6954
|
+
@summary Queries a tag table by using a label ID.
|
7040
6955
|
|
7041
6956
|
@param headers: map
|
7042
6957
|
@param runtime: runtime options for this request RuntimeOptions
|
@@ -7066,7 +6981,7 @@ class Client(OpenApiClient):
|
|
7066
6981
|
label_id: str,
|
7067
6982
|
) -> sls_20201230_models.GetAnnotationLabelResponse:
|
7068
6983
|
"""
|
7069
|
-
@summary Queries a tag table by using a label
|
6984
|
+
@summary Queries a tag table by using a label ID.
|
7070
6985
|
|
7071
6986
|
@return: GetAnnotationLabelResponse
|
7072
6987
|
"""
|
@@ -7079,7 +6994,7 @@ class Client(OpenApiClient):
|
|
7079
6994
|
label_id: str,
|
7080
6995
|
) -> sls_20201230_models.GetAnnotationLabelResponse:
|
7081
6996
|
"""
|
7082
|
-
@summary Queries a tag table by using a label
|
6997
|
+
@summary Queries a tag table by using a label ID.
|
7083
6998
|
|
7084
6999
|
@return: GetAnnotationLabelResponse
|
7085
7000
|
"""
|
@@ -10404,8 +10319,11 @@ class Client(OpenApiClient):
|
|
10404
10319
|
"""
|
10405
10320
|
@summary Queries a project policy.
|
10406
10321
|
|
10407
|
-
@description ### Usage notes
|
10322
|
+
@description ### [](#)Usage notes
|
10408
10323
|
Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
|
10324
|
+
An AccessKey pair is created and obtained. For more information, see [AccessKey pair](https://help.aliyun.com/document_detail/29009.html).
|
10325
|
+
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).
|
10326
|
+
The information that is required to query logs is obtained. The information includes the name of the project to which the logs belong and the region of the project. For more information, see [Manage a project](https://help.aliyun.com/document_detail/48984.html)
|
10409
10327
|
|
10410
10328
|
@param headers: map
|
10411
10329
|
@param runtime: runtime options for this request RuntimeOptions
|
@@ -10442,8 +10360,11 @@ class Client(OpenApiClient):
|
|
10442
10360
|
"""
|
10443
10361
|
@summary Queries a project policy.
|
10444
10362
|
|
10445
|
-
@description ### Usage notes
|
10363
|
+
@description ### [](#)Usage notes
|
10446
10364
|
Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
|
10365
|
+
An AccessKey pair is created and obtained. For more information, see [AccessKey pair](https://help.aliyun.com/document_detail/29009.html).
|
10366
|
+
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).
|
10367
|
+
The information that is required to query logs is obtained. The information includes the name of the project to which the logs belong and the region of the project. For more information, see [Manage a project](https://help.aliyun.com/document_detail/48984.html)
|
10447
10368
|
|
10448
10369
|
@param headers: map
|
10449
10370
|
@param runtime: runtime options for this request RuntimeOptions
|
@@ -10478,8 +10399,11 @@ class Client(OpenApiClient):
|
|
10478
10399
|
"""
|
10479
10400
|
@summary Queries a project policy.
|
10480
10401
|
|
10481
|
-
@description ### Usage notes
|
10402
|
+
@description ### [](#)Usage notes
|
10482
10403
|
Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
|
10404
|
+
An AccessKey pair is created and obtained. For more information, see [AccessKey pair](https://help.aliyun.com/document_detail/29009.html).
|
10405
|
+
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).
|
10406
|
+
The information that is required to query logs is obtained. The information includes the name of the project to which the logs belong and the region of the project. For more information, see [Manage a project](https://help.aliyun.com/document_detail/48984.html)
|
10483
10407
|
|
10484
10408
|
@return: GetProjectPolicyResponse
|
10485
10409
|
"""
|
@@ -10494,8 +10418,11 @@ class Client(OpenApiClient):
|
|
10494
10418
|
"""
|
10495
10419
|
@summary Queries a project policy.
|
10496
10420
|
|
10497
|
-
@description ### Usage notes
|
10421
|
+
@description ### [](#)Usage notes
|
10498
10422
|
Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
|
10423
|
+
An AccessKey pair is created and obtained. For more information, see [AccessKey pair](https://help.aliyun.com/document_detail/29009.html).
|
10424
|
+
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).
|
10425
|
+
The information that is required to query logs is obtained. The information includes the name of the project to which the logs belong and the region of the project. For more information, see [Manage a project](https://help.aliyun.com/document_detail/48984.html)
|
10499
10426
|
|
10500
10427
|
@return: GetProjectPolicyResponse
|
10501
10428
|
"""
|
@@ -10715,164 +10642,6 @@ class Client(OpenApiClient):
|
|
10715
10642
|
headers = {}
|
10716
10643
|
return await self.get_scheduled_sqlwith_options_async(project, scheduled_sqlname, headers, runtime)
|
10717
10644
|
|
10718
|
-
def get_shipper_status_with_options(
|
10719
|
-
self,
|
10720
|
-
project: str,
|
10721
|
-
logstore: str,
|
10722
|
-
shipper_name: str,
|
10723
|
-
request: sls_20201230_models.GetShipperStatusRequest,
|
10724
|
-
headers: Dict[str, str],
|
10725
|
-
runtime: util_models.RuntimeOptions,
|
10726
|
-
) -> sls_20201230_models.GetShipperStatusResponse:
|
10727
|
-
"""
|
10728
|
-
@deprecated OpenAPI GetShipperStatus is deprecated
|
10729
|
-
|
10730
|
-
@summary Queries the status of a log shipping job.
|
10731
|
-
|
10732
|
-
@description Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
|
10733
|
-
|
10734
|
-
@param request: GetShipperStatusRequest
|
10735
|
-
@param headers: map
|
10736
|
-
@param runtime: runtime options for this request RuntimeOptions
|
10737
|
-
@return: GetShipperStatusResponse
|
10738
|
-
Deprecated
|
10739
|
-
"""
|
10740
|
-
UtilClient.validate_model(request)
|
10741
|
-
host_map = {}
|
10742
|
-
host_map['project'] = project
|
10743
|
-
query = {}
|
10744
|
-
if not UtilClient.is_unset(request.from_):
|
10745
|
-
query['from'] = request.from_
|
10746
|
-
if not UtilClient.is_unset(request.offset):
|
10747
|
-
query['offset'] = request.offset
|
10748
|
-
if not UtilClient.is_unset(request.size):
|
10749
|
-
query['size'] = request.size
|
10750
|
-
if not UtilClient.is_unset(request.status):
|
10751
|
-
query['status'] = request.status
|
10752
|
-
if not UtilClient.is_unset(request.to):
|
10753
|
-
query['to'] = request.to
|
10754
|
-
req = open_api_models.OpenApiRequest(
|
10755
|
-
host_map=host_map,
|
10756
|
-
headers=headers,
|
10757
|
-
query=OpenApiUtilClient.query(query)
|
10758
|
-
)
|
10759
|
-
params = open_api_models.Params(
|
10760
|
-
action='GetShipperStatus',
|
10761
|
-
version='2020-12-30',
|
10762
|
-
protocol='HTTPS',
|
10763
|
-
pathname=f'/logstores/{logstore}/shipper/{shipper_name}/tasks',
|
10764
|
-
method='GET',
|
10765
|
-
auth_type='AK',
|
10766
|
-
style='ROA',
|
10767
|
-
req_body_type='json',
|
10768
|
-
body_type='json'
|
10769
|
-
)
|
10770
|
-
return TeaCore.from_map(
|
10771
|
-
sls_20201230_models.GetShipperStatusResponse(),
|
10772
|
-
self.execute(params, req, runtime)
|
10773
|
-
)
|
10774
|
-
|
10775
|
-
async def get_shipper_status_with_options_async(
|
10776
|
-
self,
|
10777
|
-
project: str,
|
10778
|
-
logstore: str,
|
10779
|
-
shipper_name: str,
|
10780
|
-
request: sls_20201230_models.GetShipperStatusRequest,
|
10781
|
-
headers: Dict[str, str],
|
10782
|
-
runtime: util_models.RuntimeOptions,
|
10783
|
-
) -> sls_20201230_models.GetShipperStatusResponse:
|
10784
|
-
"""
|
10785
|
-
@deprecated OpenAPI GetShipperStatus is deprecated
|
10786
|
-
|
10787
|
-
@summary Queries the status of a log shipping job.
|
10788
|
-
|
10789
|
-
@description Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
|
10790
|
-
|
10791
|
-
@param request: GetShipperStatusRequest
|
10792
|
-
@param headers: map
|
10793
|
-
@param runtime: runtime options for this request RuntimeOptions
|
10794
|
-
@return: GetShipperStatusResponse
|
10795
|
-
Deprecated
|
10796
|
-
"""
|
10797
|
-
UtilClient.validate_model(request)
|
10798
|
-
host_map = {}
|
10799
|
-
host_map['project'] = project
|
10800
|
-
query = {}
|
10801
|
-
if not UtilClient.is_unset(request.from_):
|
10802
|
-
query['from'] = request.from_
|
10803
|
-
if not UtilClient.is_unset(request.offset):
|
10804
|
-
query['offset'] = request.offset
|
10805
|
-
if not UtilClient.is_unset(request.size):
|
10806
|
-
query['size'] = request.size
|
10807
|
-
if not UtilClient.is_unset(request.status):
|
10808
|
-
query['status'] = request.status
|
10809
|
-
if not UtilClient.is_unset(request.to):
|
10810
|
-
query['to'] = request.to
|
10811
|
-
req = open_api_models.OpenApiRequest(
|
10812
|
-
host_map=host_map,
|
10813
|
-
headers=headers,
|
10814
|
-
query=OpenApiUtilClient.query(query)
|
10815
|
-
)
|
10816
|
-
params = open_api_models.Params(
|
10817
|
-
action='GetShipperStatus',
|
10818
|
-
version='2020-12-30',
|
10819
|
-
protocol='HTTPS',
|
10820
|
-
pathname=f'/logstores/{logstore}/shipper/{shipper_name}/tasks',
|
10821
|
-
method='GET',
|
10822
|
-
auth_type='AK',
|
10823
|
-
style='ROA',
|
10824
|
-
req_body_type='json',
|
10825
|
-
body_type='json'
|
10826
|
-
)
|
10827
|
-
return TeaCore.from_map(
|
10828
|
-
sls_20201230_models.GetShipperStatusResponse(),
|
10829
|
-
await self.execute_async(params, req, runtime)
|
10830
|
-
)
|
10831
|
-
|
10832
|
-
def get_shipper_status(
|
10833
|
-
self,
|
10834
|
-
project: str,
|
10835
|
-
logstore: str,
|
10836
|
-
shipper_name: str,
|
10837
|
-
request: sls_20201230_models.GetShipperStatusRequest,
|
10838
|
-
) -> sls_20201230_models.GetShipperStatusResponse:
|
10839
|
-
"""
|
10840
|
-
@deprecated OpenAPI GetShipperStatus is deprecated
|
10841
|
-
|
10842
|
-
@summary Queries the status of a log shipping job.
|
10843
|
-
|
10844
|
-
@description Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
|
10845
|
-
|
10846
|
-
@param request: GetShipperStatusRequest
|
10847
|
-
@return: GetShipperStatusResponse
|
10848
|
-
Deprecated
|
10849
|
-
"""
|
10850
|
-
runtime = util_models.RuntimeOptions()
|
10851
|
-
headers = {}
|
10852
|
-
return self.get_shipper_status_with_options(project, logstore, shipper_name, request, headers, runtime)
|
10853
|
-
|
10854
|
-
async def get_shipper_status_async(
|
10855
|
-
self,
|
10856
|
-
project: str,
|
10857
|
-
logstore: str,
|
10858
|
-
shipper_name: str,
|
10859
|
-
request: sls_20201230_models.GetShipperStatusRequest,
|
10860
|
-
) -> sls_20201230_models.GetShipperStatusResponse:
|
10861
|
-
"""
|
10862
|
-
@deprecated OpenAPI GetShipperStatus is deprecated
|
10863
|
-
|
10864
|
-
@summary Queries the status of a log shipping job.
|
10865
|
-
|
10866
|
-
@description Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
|
10867
|
-
|
10868
|
-
@param request: GetShipperStatusRequest
|
10869
|
-
@return: GetShipperStatusResponse
|
10870
|
-
Deprecated
|
10871
|
-
"""
|
10872
|
-
runtime = util_models.RuntimeOptions()
|
10873
|
-
headers = {}
|
10874
|
-
return await self.get_shipper_status_with_options_async(project, logstore, shipper_name, request, headers, runtime)
|
10875
|
-
|
10876
10645
|
def get_sls_service_with_options(
|
10877
10646
|
self,
|
10878
10647
|
headers: Dict[str, str],
|
@@ -11381,7 +11150,7 @@ class Client(OpenApiClient):
|
|
11381
11150
|
runtime: util_models.RuntimeOptions,
|
11382
11151
|
) -> sls_20201230_models.ListAnnotationDataResponse:
|
11383
11152
|
"""
|
11384
|
-
@summary Queries data in
|
11153
|
+
@summary Queries data in datasets.
|
11385
11154
|
|
11386
11155
|
@param request: ListAnnotationDataRequest
|
11387
11156
|
@param headers: map
|
@@ -11422,7 +11191,7 @@ class Client(OpenApiClient):
|
|
11422
11191
|
runtime: util_models.RuntimeOptions,
|
11423
11192
|
) -> sls_20201230_models.ListAnnotationDataResponse:
|
11424
11193
|
"""
|
11425
|
-
@summary Queries data in
|
11194
|
+
@summary Queries data in datasets.
|
11426
11195
|
|
11427
11196
|
@param request: ListAnnotationDataRequest
|
11428
11197
|
@param headers: map
|
@@ -11461,7 +11230,7 @@ class Client(OpenApiClient):
|
|
11461
11230
|
request: sls_20201230_models.ListAnnotationDataRequest,
|
11462
11231
|
) -> sls_20201230_models.ListAnnotationDataResponse:
|
11463
11232
|
"""
|
11464
|
-
@summary Queries data in
|
11233
|
+
@summary Queries data in datasets.
|
11465
11234
|
|
11466
11235
|
@param request: ListAnnotationDataRequest
|
11467
11236
|
@return: ListAnnotationDataResponse
|
@@ -11476,7 +11245,7 @@ class Client(OpenApiClient):
|
|
11476
11245
|
request: sls_20201230_models.ListAnnotationDataRequest,
|
11477
11246
|
) -> sls_20201230_models.ListAnnotationDataResponse:
|
11478
11247
|
"""
|
11479
|
-
@summary Queries data in
|
11248
|
+
@summary Queries data in datasets.
|
11480
11249
|
|
11481
11250
|
@param request: ListAnnotationDataRequest
|
11482
11251
|
@return: ListAnnotationDataResponse
|
@@ -11703,38 +11472,34 @@ class Client(OpenApiClient):
|
|
11703
11472
|
|
11704
11473
|
def list_collection_policies_with_options(
|
11705
11474
|
self,
|
11706
|
-
|
11475
|
+
request: sls_20201230_models.ListCollectionPoliciesRequest,
|
11707
11476
|
headers: Dict[str, str],
|
11708
11477
|
runtime: util_models.RuntimeOptions,
|
11709
11478
|
) -> sls_20201230_models.ListCollectionPoliciesResponse:
|
11710
11479
|
"""
|
11711
11480
|
@summary 通过调用ListCollectionPolicies接口查看配置的日志采集规则
|
11712
11481
|
|
11713
|
-
@param
|
11482
|
+
@param request: ListCollectionPoliciesRequest
|
11714
11483
|
@param headers: map
|
11715
11484
|
@param runtime: runtime options for this request RuntimeOptions
|
11716
11485
|
@return: ListCollectionPoliciesResponse
|
11717
11486
|
"""
|
11718
|
-
UtilClient.validate_model(
|
11719
|
-
request = sls_20201230_models.ListCollectionPoliciesShrinkRequest()
|
11720
|
-
OpenApiUtilClient.convert(tmp_req, request)
|
11721
|
-
if not UtilClient.is_unset(tmp_req.attribute):
|
11722
|
-
request.attribute_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.attribute, 'attribute', 'json')
|
11487
|
+
UtilClient.validate_model(request)
|
11723
11488
|
query = {}
|
11724
|
-
if not UtilClient.is_unset(request.
|
11725
|
-
query['
|
11489
|
+
if not UtilClient.is_unset(request.central_project):
|
11490
|
+
query['centralProject'] = request.central_project
|
11726
11491
|
if not UtilClient.is_unset(request.data_code):
|
11727
11492
|
query['dataCode'] = request.data_code
|
11728
11493
|
if not UtilClient.is_unset(request.instance_id):
|
11729
11494
|
query['instanceId'] = request.instance_id
|
11730
|
-
if not UtilClient.is_unset(request.
|
11731
|
-
query['
|
11732
|
-
if not UtilClient.is_unset(request.page_size):
|
11733
|
-
query['pageSize'] = request.page_size
|
11495
|
+
if not UtilClient.is_unset(request.offset):
|
11496
|
+
query['offset'] = request.offset
|
11734
11497
|
if not UtilClient.is_unset(request.policy_name):
|
11735
11498
|
query['policyName'] = request.policy_name
|
11736
11499
|
if not UtilClient.is_unset(request.product_code):
|
11737
11500
|
query['productCode'] = request.product_code
|
11501
|
+
if not UtilClient.is_unset(request.size):
|
11502
|
+
query['size'] = request.size
|
11738
11503
|
req = open_api_models.OpenApiRequest(
|
11739
11504
|
headers=headers,
|
11740
11505
|
query=OpenApiUtilClient.query(query)
|
@@ -11757,38 +11522,34 @@ class Client(OpenApiClient):
|
|
11757
11522
|
|
11758
11523
|
async def list_collection_policies_with_options_async(
|
11759
11524
|
self,
|
11760
|
-
|
11525
|
+
request: sls_20201230_models.ListCollectionPoliciesRequest,
|
11761
11526
|
headers: Dict[str, str],
|
11762
11527
|
runtime: util_models.RuntimeOptions,
|
11763
11528
|
) -> sls_20201230_models.ListCollectionPoliciesResponse:
|
11764
11529
|
"""
|
11765
11530
|
@summary 通过调用ListCollectionPolicies接口查看配置的日志采集规则
|
11766
11531
|
|
11767
|
-
@param
|
11532
|
+
@param request: ListCollectionPoliciesRequest
|
11768
11533
|
@param headers: map
|
11769
11534
|
@param runtime: runtime options for this request RuntimeOptions
|
11770
11535
|
@return: ListCollectionPoliciesResponse
|
11771
11536
|
"""
|
11772
|
-
UtilClient.validate_model(
|
11773
|
-
request = sls_20201230_models.ListCollectionPoliciesShrinkRequest()
|
11774
|
-
OpenApiUtilClient.convert(tmp_req, request)
|
11775
|
-
if not UtilClient.is_unset(tmp_req.attribute):
|
11776
|
-
request.attribute_shrink = OpenApiUtilClient.array_to_string_with_specified_style(tmp_req.attribute, 'attribute', 'json')
|
11537
|
+
UtilClient.validate_model(request)
|
11777
11538
|
query = {}
|
11778
|
-
if not UtilClient.is_unset(request.
|
11779
|
-
query['
|
11539
|
+
if not UtilClient.is_unset(request.central_project):
|
11540
|
+
query['centralProject'] = request.central_project
|
11780
11541
|
if not UtilClient.is_unset(request.data_code):
|
11781
11542
|
query['dataCode'] = request.data_code
|
11782
11543
|
if not UtilClient.is_unset(request.instance_id):
|
11783
11544
|
query['instanceId'] = request.instance_id
|
11784
|
-
if not UtilClient.is_unset(request.
|
11785
|
-
query['
|
11786
|
-
if not UtilClient.is_unset(request.page_size):
|
11787
|
-
query['pageSize'] = request.page_size
|
11545
|
+
if not UtilClient.is_unset(request.offset):
|
11546
|
+
query['offset'] = request.offset
|
11788
11547
|
if not UtilClient.is_unset(request.policy_name):
|
11789
11548
|
query['policyName'] = request.policy_name
|
11790
11549
|
if not UtilClient.is_unset(request.product_code):
|
11791
11550
|
query['productCode'] = request.product_code
|
11551
|
+
if not UtilClient.is_unset(request.size):
|
11552
|
+
query['size'] = request.size
|
11792
11553
|
req = open_api_models.OpenApiRequest(
|
11793
11554
|
headers=headers,
|
11794
11555
|
query=OpenApiUtilClient.query(query)
|
@@ -12497,136 +12258,6 @@ class Client(OpenApiClient):
|
|
12497
12258
|
headers = {}
|
12498
12259
|
return await self.list_etls_with_options_async(project, request, headers, runtime)
|
12499
12260
|
|
12500
|
-
def list_external_store_with_options(
|
12501
|
-
self,
|
12502
|
-
project: str,
|
12503
|
-
request: sls_20201230_models.ListExternalStoreRequest,
|
12504
|
-
headers: Dict[str, str],
|
12505
|
-
runtime: util_models.RuntimeOptions,
|
12506
|
-
) -> sls_20201230_models.ListExternalStoreResponse:
|
12507
|
-
"""
|
12508
|
-
@summary Queries a list of external stores.
|
12509
|
-
|
12510
|
-
@description Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
|
12511
|
-
|
12512
|
-
@param request: ListExternalStoreRequest
|
12513
|
-
@param headers: map
|
12514
|
-
@param runtime: runtime options for this request RuntimeOptions
|
12515
|
-
@return: ListExternalStoreResponse
|
12516
|
-
"""
|
12517
|
-
UtilClient.validate_model(request)
|
12518
|
-
host_map = {}
|
12519
|
-
host_map['project'] = project
|
12520
|
-
query = {}
|
12521
|
-
if not UtilClient.is_unset(request.external_store_name):
|
12522
|
-
query['externalStoreName'] = request.external_store_name
|
12523
|
-
if not UtilClient.is_unset(request.offset):
|
12524
|
-
query['offset'] = request.offset
|
12525
|
-
if not UtilClient.is_unset(request.sizs):
|
12526
|
-
query['sizs'] = request.sizs
|
12527
|
-
req = open_api_models.OpenApiRequest(
|
12528
|
-
host_map=host_map,
|
12529
|
-
headers=headers,
|
12530
|
-
query=OpenApiUtilClient.query(query)
|
12531
|
-
)
|
12532
|
-
params = open_api_models.Params(
|
12533
|
-
action='ListExternalStore',
|
12534
|
-
version='2020-12-30',
|
12535
|
-
protocol='HTTPS',
|
12536
|
-
pathname=f'/externalstores',
|
12537
|
-
method='GET',
|
12538
|
-
auth_type='AK',
|
12539
|
-
style='ROA',
|
12540
|
-
req_body_type='json',
|
12541
|
-
body_type='json'
|
12542
|
-
)
|
12543
|
-
return TeaCore.from_map(
|
12544
|
-
sls_20201230_models.ListExternalStoreResponse(),
|
12545
|
-
self.execute(params, req, runtime)
|
12546
|
-
)
|
12547
|
-
|
12548
|
-
async def list_external_store_with_options_async(
|
12549
|
-
self,
|
12550
|
-
project: str,
|
12551
|
-
request: sls_20201230_models.ListExternalStoreRequest,
|
12552
|
-
headers: Dict[str, str],
|
12553
|
-
runtime: util_models.RuntimeOptions,
|
12554
|
-
) -> sls_20201230_models.ListExternalStoreResponse:
|
12555
|
-
"""
|
12556
|
-
@summary Queries a list of external stores.
|
12557
|
-
|
12558
|
-
@description Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
|
12559
|
-
|
12560
|
-
@param request: ListExternalStoreRequest
|
12561
|
-
@param headers: map
|
12562
|
-
@param runtime: runtime options for this request RuntimeOptions
|
12563
|
-
@return: ListExternalStoreResponse
|
12564
|
-
"""
|
12565
|
-
UtilClient.validate_model(request)
|
12566
|
-
host_map = {}
|
12567
|
-
host_map['project'] = project
|
12568
|
-
query = {}
|
12569
|
-
if not UtilClient.is_unset(request.external_store_name):
|
12570
|
-
query['externalStoreName'] = request.external_store_name
|
12571
|
-
if not UtilClient.is_unset(request.offset):
|
12572
|
-
query['offset'] = request.offset
|
12573
|
-
if not UtilClient.is_unset(request.sizs):
|
12574
|
-
query['sizs'] = request.sizs
|
12575
|
-
req = open_api_models.OpenApiRequest(
|
12576
|
-
host_map=host_map,
|
12577
|
-
headers=headers,
|
12578
|
-
query=OpenApiUtilClient.query(query)
|
12579
|
-
)
|
12580
|
-
params = open_api_models.Params(
|
12581
|
-
action='ListExternalStore',
|
12582
|
-
version='2020-12-30',
|
12583
|
-
protocol='HTTPS',
|
12584
|
-
pathname=f'/externalstores',
|
12585
|
-
method='GET',
|
12586
|
-
auth_type='AK',
|
12587
|
-
style='ROA',
|
12588
|
-
req_body_type='json',
|
12589
|
-
body_type='json'
|
12590
|
-
)
|
12591
|
-
return TeaCore.from_map(
|
12592
|
-
sls_20201230_models.ListExternalStoreResponse(),
|
12593
|
-
await self.execute_async(params, req, runtime)
|
12594
|
-
)
|
12595
|
-
|
12596
|
-
def list_external_store(
|
12597
|
-
self,
|
12598
|
-
project: str,
|
12599
|
-
request: sls_20201230_models.ListExternalStoreRequest,
|
12600
|
-
) -> sls_20201230_models.ListExternalStoreResponse:
|
12601
|
-
"""
|
12602
|
-
@summary Queries a list of external stores.
|
12603
|
-
|
12604
|
-
@description Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
|
12605
|
-
|
12606
|
-
@param request: ListExternalStoreRequest
|
12607
|
-
@return: ListExternalStoreResponse
|
12608
|
-
"""
|
12609
|
-
runtime = util_models.RuntimeOptions()
|
12610
|
-
headers = {}
|
12611
|
-
return self.list_external_store_with_options(project, request, headers, runtime)
|
12612
|
-
|
12613
|
-
async def list_external_store_async(
|
12614
|
-
self,
|
12615
|
-
project: str,
|
12616
|
-
request: sls_20201230_models.ListExternalStoreRequest,
|
12617
|
-
) -> sls_20201230_models.ListExternalStoreResponse:
|
12618
|
-
"""
|
12619
|
-
@summary Queries a list of external stores.
|
12620
|
-
|
12621
|
-
@description Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
|
12622
|
-
|
12623
|
-
@param request: ListExternalStoreRequest
|
12624
|
-
@return: ListExternalStoreResponse
|
12625
|
-
"""
|
12626
|
-
runtime = util_models.RuntimeOptions()
|
12627
|
-
headers = {}
|
12628
|
-
return await self.list_external_store_with_options_async(project, request, headers, runtime)
|
12629
|
-
|
12630
12261
|
def list_log_stores_with_options(
|
12631
12262
|
self,
|
12632
12263
|
project: str,
|
@@ -14045,126 +13676,6 @@ class Client(OpenApiClient):
|
|
14045
13676
|
headers = {}
|
14046
13677
|
return await self.list_shards_with_options_async(project, logstore, headers, runtime)
|
14047
13678
|
|
14048
|
-
def list_shipper_with_options(
|
14049
|
-
self,
|
14050
|
-
project: str,
|
14051
|
-
logstore: str,
|
14052
|
-
headers: Dict[str, str],
|
14053
|
-
runtime: util_models.RuntimeOptions,
|
14054
|
-
) -> sls_20201230_models.ListShipperResponse:
|
14055
|
-
"""
|
14056
|
-
@deprecated OpenAPI ListShipper is deprecated
|
14057
|
-
|
14058
|
-
@summary Queries a list of log shipping jobs in a Logstore.
|
14059
|
-
|
14060
|
-
@description Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
|
14061
|
-
|
14062
|
-
@param headers: map
|
14063
|
-
@param runtime: runtime options for this request RuntimeOptions
|
14064
|
-
@return: ListShipperResponse
|
14065
|
-
Deprecated
|
14066
|
-
"""
|
14067
|
-
host_map = {}
|
14068
|
-
host_map['project'] = project
|
14069
|
-
req = open_api_models.OpenApiRequest(
|
14070
|
-
host_map=host_map,
|
14071
|
-
headers=headers
|
14072
|
-
)
|
14073
|
-
params = open_api_models.Params(
|
14074
|
-
action='ListShipper',
|
14075
|
-
version='2020-12-30',
|
14076
|
-
protocol='HTTPS',
|
14077
|
-
pathname=f'/logstores/{logstore}/shipper',
|
14078
|
-
method='GET',
|
14079
|
-
auth_type='AK',
|
14080
|
-
style='ROA',
|
14081
|
-
req_body_type='json',
|
14082
|
-
body_type='json'
|
14083
|
-
)
|
14084
|
-
return TeaCore.from_map(
|
14085
|
-
sls_20201230_models.ListShipperResponse(),
|
14086
|
-
self.execute(params, req, runtime)
|
14087
|
-
)
|
14088
|
-
|
14089
|
-
async def list_shipper_with_options_async(
|
14090
|
-
self,
|
14091
|
-
project: str,
|
14092
|
-
logstore: str,
|
14093
|
-
headers: Dict[str, str],
|
14094
|
-
runtime: util_models.RuntimeOptions,
|
14095
|
-
) -> sls_20201230_models.ListShipperResponse:
|
14096
|
-
"""
|
14097
|
-
@deprecated OpenAPI ListShipper is deprecated
|
14098
|
-
|
14099
|
-
@summary Queries a list of log shipping jobs in a Logstore.
|
14100
|
-
|
14101
|
-
@description Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
|
14102
|
-
|
14103
|
-
@param headers: map
|
14104
|
-
@param runtime: runtime options for this request RuntimeOptions
|
14105
|
-
@return: ListShipperResponse
|
14106
|
-
Deprecated
|
14107
|
-
"""
|
14108
|
-
host_map = {}
|
14109
|
-
host_map['project'] = project
|
14110
|
-
req = open_api_models.OpenApiRequest(
|
14111
|
-
host_map=host_map,
|
14112
|
-
headers=headers
|
14113
|
-
)
|
14114
|
-
params = open_api_models.Params(
|
14115
|
-
action='ListShipper',
|
14116
|
-
version='2020-12-30',
|
14117
|
-
protocol='HTTPS',
|
14118
|
-
pathname=f'/logstores/{logstore}/shipper',
|
14119
|
-
method='GET',
|
14120
|
-
auth_type='AK',
|
14121
|
-
style='ROA',
|
14122
|
-
req_body_type='json',
|
14123
|
-
body_type='json'
|
14124
|
-
)
|
14125
|
-
return TeaCore.from_map(
|
14126
|
-
sls_20201230_models.ListShipperResponse(),
|
14127
|
-
await self.execute_async(params, req, runtime)
|
14128
|
-
)
|
14129
|
-
|
14130
|
-
def list_shipper(
|
14131
|
-
self,
|
14132
|
-
project: str,
|
14133
|
-
logstore: str,
|
14134
|
-
) -> sls_20201230_models.ListShipperResponse:
|
14135
|
-
"""
|
14136
|
-
@deprecated OpenAPI ListShipper is deprecated
|
14137
|
-
|
14138
|
-
@summary Queries a list of log shipping jobs in a Logstore.
|
14139
|
-
|
14140
|
-
@description Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
|
14141
|
-
|
14142
|
-
@return: ListShipperResponse
|
14143
|
-
Deprecated
|
14144
|
-
"""
|
14145
|
-
runtime = util_models.RuntimeOptions()
|
14146
|
-
headers = {}
|
14147
|
-
return self.list_shipper_with_options(project, logstore, headers, runtime)
|
14148
|
-
|
14149
|
-
async def list_shipper_async(
|
14150
|
-
self,
|
14151
|
-
project: str,
|
14152
|
-
logstore: str,
|
14153
|
-
) -> sls_20201230_models.ListShipperResponse:
|
14154
|
-
"""
|
14155
|
-
@deprecated OpenAPI ListShipper is deprecated
|
14156
|
-
|
14157
|
-
@summary Queries a list of log shipping jobs in a Logstore.
|
14158
|
-
|
14159
|
-
@description Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
|
14160
|
-
|
14161
|
-
@return: ListShipperResponse
|
14162
|
-
Deprecated
|
14163
|
-
"""
|
14164
|
-
runtime = util_models.RuntimeOptions()
|
14165
|
-
headers = {}
|
14166
|
-
return await self.list_shipper_with_options_async(project, logstore, headers, runtime)
|
14167
|
-
|
14168
13679
|
def list_store_views_with_options(
|
14169
13680
|
self,
|
14170
13681
|
project: str,
|
@@ -14302,6 +13813,15 @@ class Client(OpenApiClient):
|
|
14302
13813
|
|
14303
13814
|
@description ### Usage notes
|
14304
13815
|
Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
|
13816
|
+
An AccessKey pair is created and obtained. For more information, see [AccessKey pair](https://help.aliyun.com/document_detail/29009.html).
|
13817
|
+
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).
|
13818
|
+
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)
|
13819
|
+
For more information, see [Authorization rules](https://help.aliyun.com/document_detail/29049.html). The following types of resources are supported: project, Logstore, dashboard, machine group, and Logtail configuration.
|
13820
|
+
### Authentication resources
|
13821
|
+
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.
|
13822
|
+
|Action|Resource|
|
13823
|
+
|:---|:---|
|
13824
|
+
|`log:ListTagResources`|The resource format varies based on the resource type.\\-`acs:log:{#regionId}:{#accountId}:project/{#ProjectName}`\\-`acs:log:${regionName}:${accountId}:project/${projectName}/logstore/${logstoreName}`\\-`acs:log:${regionName}:${accountId}:project/${projectName}/dashboard/${dashboardName}`\\-`acs:log:${regionName}:${accountId}:project/${projectName}/machinegroup/${machineGroupName}`\\-`acs:log:${regionName}:${accountId}:project/${projectName}/logtailconfig/${logtailConfigName}`|
|
14305
13825
|
|
14306
13826
|
@param tmp_req: ListTagResourcesRequest
|
14307
13827
|
@param headers: map
|
@@ -14353,6 +13873,15 @@ class Client(OpenApiClient):
|
|
14353
13873
|
|
14354
13874
|
@description ### Usage notes
|
14355
13875
|
Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
|
13876
|
+
An AccessKey pair is created and obtained. For more information, see [AccessKey pair](https://help.aliyun.com/document_detail/29009.html).
|
13877
|
+
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).
|
13878
|
+
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)
|
13879
|
+
For more information, see [Authorization rules](https://help.aliyun.com/document_detail/29049.html). The following types of resources are supported: project, Logstore, dashboard, machine group, and Logtail configuration.
|
13880
|
+
### Authentication resources
|
13881
|
+
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.
|
13882
|
+
|Action|Resource|
|
13883
|
+
|:---|:---|
|
13884
|
+
|`log:ListTagResources`|The resource format varies based on the resource type.\\-`acs:log:{#regionId}:{#accountId}:project/{#ProjectName}`\\-`acs:log:${regionName}:${accountId}:project/${projectName}/logstore/${logstoreName}`\\-`acs:log:${regionName}:${accountId}:project/${projectName}/dashboard/${dashboardName}`\\-`acs:log:${regionName}:${accountId}:project/${projectName}/machinegroup/${machineGroupName}`\\-`acs:log:${regionName}:${accountId}:project/${projectName}/logtailconfig/${logtailConfigName}`|
|
14356
13885
|
|
14357
13886
|
@param tmp_req: ListTagResourcesRequest
|
14358
13887
|
@param headers: map
|
@@ -14402,6 +13931,15 @@ class Client(OpenApiClient):
|
|
14402
13931
|
|
14403
13932
|
@description ### Usage notes
|
14404
13933
|
Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
|
13934
|
+
An AccessKey pair is created and obtained. For more information, see [AccessKey pair](https://help.aliyun.com/document_detail/29009.html).
|
13935
|
+
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).
|
13936
|
+
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)
|
13937
|
+
For more information, see [Authorization rules](https://help.aliyun.com/document_detail/29049.html). The following types of resources are supported: project, Logstore, dashboard, machine group, and Logtail configuration.
|
13938
|
+
### Authentication resources
|
13939
|
+
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.
|
13940
|
+
|Action|Resource|
|
13941
|
+
|:---|:---|
|
13942
|
+
|`log:ListTagResources`|The resource format varies based on the resource type.\\-`acs:log:{#regionId}:{#accountId}:project/{#ProjectName}`\\-`acs:log:${regionName}:${accountId}:project/${projectName}/logstore/${logstoreName}`\\-`acs:log:${regionName}:${accountId}:project/${projectName}/dashboard/${dashboardName}`\\-`acs:log:${regionName}:${accountId}:project/${projectName}/machinegroup/${machineGroupName}`\\-`acs:log:${regionName}:${accountId}:project/${projectName}/logtailconfig/${logtailConfigName}`|
|
14405
13943
|
|
14406
13944
|
@param request: ListTagResourcesRequest
|
14407
13945
|
@return: ListTagResourcesResponse
|
@@ -14419,6 +13957,15 @@ class Client(OpenApiClient):
|
|
14419
13957
|
|
14420
13958
|
@description ### Usage notes
|
14421
13959
|
Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
|
13960
|
+
An AccessKey pair is created and obtained. For more information, see [AccessKey pair](https://help.aliyun.com/document_detail/29009.html).
|
13961
|
+
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).
|
13962
|
+
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)
|
13963
|
+
For more information, see [Authorization rules](https://help.aliyun.com/document_detail/29049.html). The following types of resources are supported: project, Logstore, dashboard, machine group, and Logtail configuration.
|
13964
|
+
### Authentication resources
|
13965
|
+
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.
|
13966
|
+
|Action|Resource|
|
13967
|
+
|:---|:---|
|
13968
|
+
|`log:ListTagResources`|The resource format varies based on the resource type.\\-`acs:log:{#regionId}:{#accountId}:project/{#ProjectName}`\\-`acs:log:${regionName}:${accountId}:project/${projectName}/logstore/${logstoreName}`\\-`acs:log:${regionName}:${accountId}:project/${projectName}/dashboard/${dashboardName}`\\-`acs:log:${regionName}:${accountId}:project/${projectName}/machinegroup/${machineGroupName}`\\-`acs:log:${regionName}:${accountId}:project/${projectName}/logtailconfig/${logtailConfigName}`|
|
14422
13969
|
|
14423
13970
|
@param request: ListTagResourcesRequest
|
14424
13971
|
@return: ListTagResourcesResponse
|
@@ -16440,10 +15987,19 @@ class Client(OpenApiClient):
|
|
16440
15987
|
runtime: util_models.RuntimeOptions,
|
16441
15988
|
) -> sls_20201230_models.TagResourcesResponse:
|
16442
15989
|
"""
|
16443
|
-
@summary Creates and adds
|
15990
|
+
@summary Creates and adds tags to a resource. You can add tags only to projects.
|
16444
15991
|
|
16445
15992
|
@description ### Usage notes
|
16446
|
-
Host consists of a project name and a Log Service endpoint. You must specify a project in Host.
|
15993
|
+
Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
|
15994
|
+
An AccessKey pair is created and obtained. For more information, see [AccessKey pair](https://help.aliyun.com/document_detail/29009.html).
|
15995
|
+
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).
|
15996
|
+
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)
|
15997
|
+
For more information, see [Authorization rules](https://help.aliyun.com/document_detail/29049.html). The following types of resources are supported: project, Logstore, dashboard, machine group, and Logtail configuration.
|
15998
|
+
### Authentication resources
|
15999
|
+
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.
|
16000
|
+
|Action|Resource|
|
16001
|
+
|:---|:---|
|
16002
|
+
|`log:TagResources`|The resource format varies based on the resource type.\\-`acs:log:{#regionId}:{#accountId}:project/{#ProjectName}`\\-`acs:log:${regionName}:${accountId}:project/${projectName}/logstore/${logstoreName}`\\-`acs:log:${regionName}:${accountId}:project/${projectName}/dashboard/${dashboardName}`\\-`acs:log:${regionName}:${accountId}:project/${projectName}/machinegroup/${machineGroupName}`\\-`acs:log:${regionName}:${accountId}:project/${projectName}/logtailconfig/${logtailConfigName}`|
|
16447
16003
|
|
16448
16004
|
@param request: TagResourcesRequest
|
16449
16005
|
@param headers: map
|
@@ -16485,10 +16041,19 @@ class Client(OpenApiClient):
|
|
16485
16041
|
runtime: util_models.RuntimeOptions,
|
16486
16042
|
) -> sls_20201230_models.TagResourcesResponse:
|
16487
16043
|
"""
|
16488
|
-
@summary Creates and adds
|
16044
|
+
@summary Creates and adds tags to a resource. You can add tags only to projects.
|
16489
16045
|
|
16490
16046
|
@description ### Usage notes
|
16491
|
-
Host consists of a project name and a Log Service endpoint. You must specify a project in Host.
|
16047
|
+
Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
|
16048
|
+
An AccessKey pair is created and obtained. For more information, see [AccessKey pair](https://help.aliyun.com/document_detail/29009.html).
|
16049
|
+
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).
|
16050
|
+
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)
|
16051
|
+
For more information, see [Authorization rules](https://help.aliyun.com/document_detail/29049.html). The following types of resources are supported: project, Logstore, dashboard, machine group, and Logtail configuration.
|
16052
|
+
### Authentication resources
|
16053
|
+
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.
|
16054
|
+
|Action|Resource|
|
16055
|
+
|:---|:---|
|
16056
|
+
|`log:TagResources`|The resource format varies based on the resource type.\\-`acs:log:{#regionId}:{#accountId}:project/{#ProjectName}`\\-`acs:log:${regionName}:${accountId}:project/${projectName}/logstore/${logstoreName}`\\-`acs:log:${regionName}:${accountId}:project/${projectName}/dashboard/${dashboardName}`\\-`acs:log:${regionName}:${accountId}:project/${projectName}/machinegroup/${machineGroupName}`\\-`acs:log:${regionName}:${accountId}:project/${projectName}/logtailconfig/${logtailConfigName}`|
|
16492
16057
|
|
16493
16058
|
@param request: TagResourcesRequest
|
16494
16059
|
@param headers: map
|
@@ -16528,10 +16093,19 @@ class Client(OpenApiClient):
|
|
16528
16093
|
request: sls_20201230_models.TagResourcesRequest,
|
16529
16094
|
) -> sls_20201230_models.TagResourcesResponse:
|
16530
16095
|
"""
|
16531
|
-
@summary Creates and adds
|
16096
|
+
@summary Creates and adds tags to a resource. You can add tags only to projects.
|
16532
16097
|
|
16533
16098
|
@description ### Usage notes
|
16534
|
-
Host consists of a project name and a Log Service endpoint. You must specify a project in Host.
|
16099
|
+
Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
|
16100
|
+
An AccessKey pair is created and obtained. For more information, see [AccessKey pair](https://help.aliyun.com/document_detail/29009.html).
|
16101
|
+
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).
|
16102
|
+
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)
|
16103
|
+
For more information, see [Authorization rules](https://help.aliyun.com/document_detail/29049.html). The following types of resources are supported: project, Logstore, dashboard, machine group, and Logtail configuration.
|
16104
|
+
### Authentication resources
|
16105
|
+
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.
|
16106
|
+
|Action|Resource|
|
16107
|
+
|:---|:---|
|
16108
|
+
|`log:TagResources`|The resource format varies based on the resource type.\\-`acs:log:{#regionId}:{#accountId}:project/{#ProjectName}`\\-`acs:log:${regionName}:${accountId}:project/${projectName}/logstore/${logstoreName}`\\-`acs:log:${regionName}:${accountId}:project/${projectName}/dashboard/${dashboardName}`\\-`acs:log:${regionName}:${accountId}:project/${projectName}/machinegroup/${machineGroupName}`\\-`acs:log:${regionName}:${accountId}:project/${projectName}/logtailconfig/${logtailConfigName}`|
|
16535
16109
|
|
16536
16110
|
@param request: TagResourcesRequest
|
16537
16111
|
@return: TagResourcesResponse
|
@@ -16545,10 +16119,19 @@ class Client(OpenApiClient):
|
|
16545
16119
|
request: sls_20201230_models.TagResourcesRequest,
|
16546
16120
|
) -> sls_20201230_models.TagResourcesResponse:
|
16547
16121
|
"""
|
16548
|
-
@summary Creates and adds
|
16122
|
+
@summary Creates and adds tags to a resource. You can add tags only to projects.
|
16549
16123
|
|
16550
16124
|
@description ### Usage notes
|
16551
|
-
Host consists of a project name and a Log Service endpoint. You must specify a project in Host.
|
16125
|
+
Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
|
16126
|
+
An AccessKey pair is created and obtained. For more information, see [AccessKey pair](https://help.aliyun.com/document_detail/29009.html).
|
16127
|
+
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).
|
16128
|
+
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)
|
16129
|
+
For more information, see [Authorization rules](https://help.aliyun.com/document_detail/29049.html). The following types of resources are supported: project, Logstore, dashboard, machine group, and Logtail configuration.
|
16130
|
+
### Authentication resources
|
16131
|
+
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.
|
16132
|
+
|Action|Resource|
|
16133
|
+
|:---|:---|
|
16134
|
+
|`log:TagResources`|The resource format varies based on the resource type.\\-`acs:log:{#regionId}:{#accountId}:project/{#ProjectName}`\\-`acs:log:${regionName}:${accountId}:project/${projectName}/logstore/${logstoreName}`\\-`acs:log:${regionName}:${accountId}:project/${projectName}/dashboard/${dashboardName}`\\-`acs:log:${regionName}:${accountId}:project/${projectName}/machinegroup/${machineGroupName}`\\-`acs:log:${regionName}:${accountId}:project/${projectName}/logtailconfig/${logtailConfigName}`|
|
16552
16135
|
|
16553
16136
|
@param request: TagResourcesRequest
|
16554
16137
|
@return: TagResourcesResponse
|
@@ -16567,7 +16150,15 @@ class Client(OpenApiClient):
|
|
16567
16150
|
@summary Detaches one or more tags from a resource. You can detach tags only from Simple Log Service projects. You can detach multiple or all tags from a Simple Log Service project at a time.
|
16568
16151
|
|
16569
16152
|
@description ### Usage notes
|
16570
|
-
Host consists of a project name and a Log Service endpoint. You must specify a project in Host.
|
16153
|
+
Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
|
16154
|
+
An AccessKey pair is created and obtained. For more information, see [AccessKey pair](https://help.aliyun.com/document_detail/29009.html).
|
16155
|
+
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).
|
16156
|
+
The information that is required to query logs is obtained. The information includes the name of the project to which the logs belong and the region of the project. For more information, see [Manage a project](https://help.aliyun.com/document_detail/48984.html) For more information, see [Authorization rules](https://help.aliyun.com/document_detail/29049.html). The following types of resources are supported: project, Logstore, dashboard, machine group, and Logtail configuration.
|
16157
|
+
### Authentication resources
|
16158
|
+
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.
|
16159
|
+
|Action|Resource|
|
16160
|
+
|:---|:---|
|
16161
|
+
|`log:UntagResources`|The resource format varies based on the resource type.\\-`acs:log:{#regionId}:{#accountId}:project/{#ProjectName}`\\-`acs:log:${regionName}:${accountId}:project/${projectName}/logstore/${logstoreName}`\\-`acs:log:${regionName}:${accountId}:project/${projectName}/dashboard/${dashboardName}`\\-`acs:log:${regionName}:${accountId}:project/${projectName}/machinegroup/${machineGroupName}`\\-`acs:log:${regionName}:${accountId}:project/${projectName}/logtailconfig/${logtailConfigName}`|
|
16571
16162
|
|
16572
16163
|
@param request: UntagResourcesRequest
|
16573
16164
|
@param headers: map
|
@@ -16614,7 +16205,15 @@ class Client(OpenApiClient):
|
|
16614
16205
|
@summary Detaches one or more tags from a resource. You can detach tags only from Simple Log Service projects. You can detach multiple or all tags from a Simple Log Service project at a time.
|
16615
16206
|
|
16616
16207
|
@description ### Usage notes
|
16617
|
-
Host consists of a project name and a Log Service endpoint. You must specify a project in Host.
|
16208
|
+
Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
|
16209
|
+
An AccessKey pair is created and obtained. For more information, see [AccessKey pair](https://help.aliyun.com/document_detail/29009.html).
|
16210
|
+
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).
|
16211
|
+
The information that is required to query logs is obtained. The information includes the name of the project to which the logs belong and the region of the project. For more information, see [Manage a project](https://help.aliyun.com/document_detail/48984.html) For more information, see [Authorization rules](https://help.aliyun.com/document_detail/29049.html). The following types of resources are supported: project, Logstore, dashboard, machine group, and Logtail configuration.
|
16212
|
+
### Authentication resources
|
16213
|
+
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.
|
16214
|
+
|Action|Resource|
|
16215
|
+
|:---|:---|
|
16216
|
+
|`log:UntagResources`|The resource format varies based on the resource type.\\-`acs:log:{#regionId}:{#accountId}:project/{#ProjectName}`\\-`acs:log:${regionName}:${accountId}:project/${projectName}/logstore/${logstoreName}`\\-`acs:log:${regionName}:${accountId}:project/${projectName}/dashboard/${dashboardName}`\\-`acs:log:${regionName}:${accountId}:project/${projectName}/machinegroup/${machineGroupName}`\\-`acs:log:${regionName}:${accountId}:project/${projectName}/logtailconfig/${logtailConfigName}`|
|
16618
16217
|
|
16619
16218
|
@param request: UntagResourcesRequest
|
16620
16219
|
@param headers: map
|
@@ -16659,7 +16258,15 @@ class Client(OpenApiClient):
|
|
16659
16258
|
@summary Detaches one or more tags from a resource. You can detach tags only from Simple Log Service projects. You can detach multiple or all tags from a Simple Log Service project at a time.
|
16660
16259
|
|
16661
16260
|
@description ### Usage notes
|
16662
|
-
Host consists of a project name and a Log Service endpoint. You must specify a project in Host.
|
16261
|
+
Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
|
16262
|
+
An AccessKey pair is created and obtained. For more information, see [AccessKey pair](https://help.aliyun.com/document_detail/29009.html).
|
16263
|
+
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).
|
16264
|
+
The information that is required to query logs is obtained. The information includes the name of the project to which the logs belong and the region of the project. For more information, see [Manage a project](https://help.aliyun.com/document_detail/48984.html) For more information, see [Authorization rules](https://help.aliyun.com/document_detail/29049.html). The following types of resources are supported: project, Logstore, dashboard, machine group, and Logtail configuration.
|
16265
|
+
### Authentication resources
|
16266
|
+
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.
|
16267
|
+
|Action|Resource|
|
16268
|
+
|:---|:---|
|
16269
|
+
|`log:UntagResources`|The resource format varies based on the resource type.\\-`acs:log:{#regionId}:{#accountId}:project/{#ProjectName}`\\-`acs:log:${regionName}:${accountId}:project/${projectName}/logstore/${logstoreName}`\\-`acs:log:${regionName}:${accountId}:project/${projectName}/dashboard/${dashboardName}`\\-`acs:log:${regionName}:${accountId}:project/${projectName}/machinegroup/${machineGroupName}`\\-`acs:log:${regionName}:${accountId}:project/${projectName}/logtailconfig/${logtailConfigName}`|
|
16663
16270
|
|
16664
16271
|
@param request: UntagResourcesRequest
|
16665
16272
|
@return: UntagResourcesResponse
|
@@ -16676,7 +16283,15 @@ class Client(OpenApiClient):
|
|
16676
16283
|
@summary Detaches one or more tags from a resource. You can detach tags only from Simple Log Service projects. You can detach multiple or all tags from a Simple Log Service project at a time.
|
16677
16284
|
|
16678
16285
|
@description ### Usage notes
|
16679
|
-
Host consists of a project name and a Log Service endpoint. You must specify a project in Host.
|
16286
|
+
Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
|
16287
|
+
An AccessKey pair is created and obtained. For more information, see [AccessKey pair](https://help.aliyun.com/document_detail/29009.html).
|
16288
|
+
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).
|
16289
|
+
The information that is required to query logs is obtained. The information includes the name of the project to which the logs belong and the region of the project. For more information, see [Manage a project](https://help.aliyun.com/document_detail/48984.html) For more information, see [Authorization rules](https://help.aliyun.com/document_detail/29049.html). The following types of resources are supported: project, Logstore, dashboard, machine group, and Logtail configuration.
|
16290
|
+
### Authentication resources
|
16291
|
+
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.
|
16292
|
+
|Action|Resource|
|
16293
|
+
|:---|:---|
|
16294
|
+
|`log:UntagResources`|The resource format varies based on the resource type.\\-`acs:log:{#regionId}:{#accountId}:project/{#ProjectName}`\\-`acs:log:${regionName}:${accountId}:project/${projectName}/logstore/${logstoreName}`\\-`acs:log:${regionName}:${accountId}:project/${projectName}/dashboard/${dashboardName}`\\-`acs:log:${regionName}:${accountId}:project/${projectName}/machinegroup/${machineGroupName}`\\-`acs:log:${regionName}:${accountId}:project/${projectName}/logtailconfig/${logtailConfigName}`|
|
16680
16295
|
|
16681
16296
|
@param request: UntagResourcesRequest
|
16682
16297
|
@return: UntagResourcesResponse
|
@@ -17032,7 +16647,7 @@ class Client(OpenApiClient):
|
|
17032
16647
|
runtime: util_models.RuntimeOptions,
|
17033
16648
|
) -> sls_20201230_models.UpdateConfigResponse:
|
17034
16649
|
"""
|
17035
|
-
@summary
|
16650
|
+
@summary Modifies a Logtail configuration.
|
17036
16651
|
|
17037
16652
|
@description ### [](#)Usage notes
|
17038
16653
|
Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
|
@@ -17080,7 +16695,7 @@ class Client(OpenApiClient):
|
|
17080
16695
|
runtime: util_models.RuntimeOptions,
|
17081
16696
|
) -> sls_20201230_models.UpdateConfigResponse:
|
17082
16697
|
"""
|
17083
|
-
@summary
|
16698
|
+
@summary Modifies a Logtail configuration.
|
17084
16699
|
|
17085
16700
|
@description ### [](#)Usage notes
|
17086
16701
|
Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
|
@@ -17126,7 +16741,7 @@ class Client(OpenApiClient):
|
|
17126
16741
|
request: sls_20201230_models.UpdateConfigRequest,
|
17127
16742
|
) -> sls_20201230_models.UpdateConfigResponse:
|
17128
16743
|
"""
|
17129
|
-
@summary
|
16744
|
+
@summary Modifies a Logtail configuration.
|
17130
16745
|
|
17131
16746
|
@description ### [](#)Usage notes
|
17132
16747
|
Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
|
@@ -17150,7 +16765,7 @@ class Client(OpenApiClient):
|
|
17150
16765
|
request: sls_20201230_models.UpdateConfigRequest,
|
17151
16766
|
) -> sls_20201230_models.UpdateConfigResponse:
|
17152
16767
|
"""
|
17153
|
-
@summary
|
16768
|
+
@summary Modifies a Logtail configuration.
|
17154
16769
|
|
17155
16770
|
@description ### [](#)Usage notes
|
17156
16771
|
Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
|
@@ -17918,7 +17533,7 @@ class Client(OpenApiClient):
|
|
17918
17533
|
runtime: util_models.RuntimeOptions,
|
17919
17534
|
) -> sls_20201230_models.UpdateLogStoreMeteringModeResponse:
|
17920
17535
|
"""
|
17921
|
-
@summary
|
17536
|
+
@summary Changes the billing mode of a Logstore.
|
17922
17537
|
|
17923
17538
|
@param request: UpdateLogStoreMeteringModeRequest
|
17924
17539
|
@param headers: map
|
@@ -17961,7 +17576,7 @@ class Client(OpenApiClient):
|
|
17961
17576
|
runtime: util_models.RuntimeOptions,
|
17962
17577
|
) -> sls_20201230_models.UpdateLogStoreMeteringModeResponse:
|
17963
17578
|
"""
|
17964
|
-
@summary
|
17579
|
+
@summary Changes the billing mode of a Logstore.
|
17965
17580
|
|
17966
17581
|
@param request: UpdateLogStoreMeteringModeRequest
|
17967
17582
|
@param headers: map
|
@@ -18002,7 +17617,7 @@ class Client(OpenApiClient):
|
|
18002
17617
|
request: sls_20201230_models.UpdateLogStoreMeteringModeRequest,
|
18003
17618
|
) -> sls_20201230_models.UpdateLogStoreMeteringModeResponse:
|
18004
17619
|
"""
|
18005
|
-
@summary
|
17620
|
+
@summary Changes the billing mode of a Logstore.
|
18006
17621
|
|
18007
17622
|
@param request: UpdateLogStoreMeteringModeRequest
|
18008
17623
|
@return: UpdateLogStoreMeteringModeResponse
|
@@ -18018,7 +17633,7 @@ class Client(OpenApiClient):
|
|
18018
17633
|
request: sls_20201230_models.UpdateLogStoreMeteringModeRequest,
|
18019
17634
|
) -> sls_20201230_models.UpdateLogStoreMeteringModeResponse:
|
18020
17635
|
"""
|
18021
|
-
@summary
|
17636
|
+
@summary Changes the billing mode of a Logstore.
|
18022
17637
|
|
18023
17638
|
@param request: UpdateLogStoreMeteringModeRequest
|
18024
17639
|
@return: UpdateLogStoreMeteringModeResponse
|
@@ -19982,7 +19597,7 @@ class Client(OpenApiClient):
|
|
19982
19597
|
runtime: util_models.RuntimeOptions,
|
19983
19598
|
) -> sls_20201230_models.UpsertCollectionPolicyResponse:
|
19984
19599
|
"""
|
19985
|
-
@summary 调用UpsertCollectionPolicy
|
19600
|
+
@summary 调用UpsertCollectionPolicy接口创建或更新日志采集规则
|
19986
19601
|
|
19987
19602
|
@param request: UpsertCollectionPolicyRequest
|
19988
19603
|
@param headers: map
|
@@ -19991,14 +19606,14 @@ class Client(OpenApiClient):
|
|
19991
19606
|
"""
|
19992
19607
|
UtilClient.validate_model(request)
|
19993
19608
|
body = {}
|
19994
|
-
if not UtilClient.is_unset(request.attribute):
|
19995
|
-
body['attribute'] = request.attribute
|
19996
19609
|
if not UtilClient.is_unset(request.centralize_config):
|
19997
19610
|
body['centralizeConfig'] = request.centralize_config
|
19998
19611
|
if not UtilClient.is_unset(request.centralize_enabled):
|
19999
19612
|
body['centralizeEnabled'] = request.centralize_enabled
|
20000
19613
|
if not UtilClient.is_unset(request.data_code):
|
20001
19614
|
body['dataCode'] = request.data_code
|
19615
|
+
if not UtilClient.is_unset(request.data_config):
|
19616
|
+
body['dataConfig'] = request.data_config
|
20002
19617
|
if not UtilClient.is_unset(request.enabled):
|
20003
19618
|
body['enabled'] = request.enabled
|
20004
19619
|
if not UtilClient.is_unset(request.policy_config):
|
@@ -20007,6 +19622,8 @@ class Client(OpenApiClient):
|
|
20007
19622
|
body['policyName'] = request.policy_name
|
20008
19623
|
if not UtilClient.is_unset(request.product_code):
|
20009
19624
|
body['productCode'] = request.product_code
|
19625
|
+
if not UtilClient.is_unset(request.resource_directory):
|
19626
|
+
body['resourceDirectory'] = request.resource_directory
|
20010
19627
|
req = open_api_models.OpenApiRequest(
|
20011
19628
|
headers=headers,
|
20012
19629
|
body=OpenApiUtilClient.parse_to_map(body)
|
@@ -20020,7 +19637,7 @@ class Client(OpenApiClient):
|
|
20020
19637
|
auth_type='AK',
|
20021
19638
|
style='ROA',
|
20022
19639
|
req_body_type='json',
|
20023
|
-
body_type='
|
19640
|
+
body_type='none'
|
20024
19641
|
)
|
20025
19642
|
return TeaCore.from_map(
|
20026
19643
|
sls_20201230_models.UpsertCollectionPolicyResponse(),
|
@@ -20034,7 +19651,7 @@ class Client(OpenApiClient):
|
|
20034
19651
|
runtime: util_models.RuntimeOptions,
|
20035
19652
|
) -> sls_20201230_models.UpsertCollectionPolicyResponse:
|
20036
19653
|
"""
|
20037
|
-
@summary 调用UpsertCollectionPolicy
|
19654
|
+
@summary 调用UpsertCollectionPolicy接口创建或更新日志采集规则
|
20038
19655
|
|
20039
19656
|
@param request: UpsertCollectionPolicyRequest
|
20040
19657
|
@param headers: map
|
@@ -20043,14 +19660,14 @@ class Client(OpenApiClient):
|
|
20043
19660
|
"""
|
20044
19661
|
UtilClient.validate_model(request)
|
20045
19662
|
body = {}
|
20046
|
-
if not UtilClient.is_unset(request.attribute):
|
20047
|
-
body['attribute'] = request.attribute
|
20048
19663
|
if not UtilClient.is_unset(request.centralize_config):
|
20049
19664
|
body['centralizeConfig'] = request.centralize_config
|
20050
19665
|
if not UtilClient.is_unset(request.centralize_enabled):
|
20051
19666
|
body['centralizeEnabled'] = request.centralize_enabled
|
20052
19667
|
if not UtilClient.is_unset(request.data_code):
|
20053
19668
|
body['dataCode'] = request.data_code
|
19669
|
+
if not UtilClient.is_unset(request.data_config):
|
19670
|
+
body['dataConfig'] = request.data_config
|
20054
19671
|
if not UtilClient.is_unset(request.enabled):
|
20055
19672
|
body['enabled'] = request.enabled
|
20056
19673
|
if not UtilClient.is_unset(request.policy_config):
|
@@ -20059,6 +19676,8 @@ class Client(OpenApiClient):
|
|
20059
19676
|
body['policyName'] = request.policy_name
|
20060
19677
|
if not UtilClient.is_unset(request.product_code):
|
20061
19678
|
body['productCode'] = request.product_code
|
19679
|
+
if not UtilClient.is_unset(request.resource_directory):
|
19680
|
+
body['resourceDirectory'] = request.resource_directory
|
20062
19681
|
req = open_api_models.OpenApiRequest(
|
20063
19682
|
headers=headers,
|
20064
19683
|
body=OpenApiUtilClient.parse_to_map(body)
|
@@ -20072,7 +19691,7 @@ class Client(OpenApiClient):
|
|
20072
19691
|
auth_type='AK',
|
20073
19692
|
style='ROA',
|
20074
19693
|
req_body_type='json',
|
20075
|
-
body_type='
|
19694
|
+
body_type='none'
|
20076
19695
|
)
|
20077
19696
|
return TeaCore.from_map(
|
20078
19697
|
sls_20201230_models.UpsertCollectionPolicyResponse(),
|
@@ -20084,7 +19703,7 @@ class Client(OpenApiClient):
|
|
20084
19703
|
request: sls_20201230_models.UpsertCollectionPolicyRequest,
|
20085
19704
|
) -> sls_20201230_models.UpsertCollectionPolicyResponse:
|
20086
19705
|
"""
|
20087
|
-
@summary 调用UpsertCollectionPolicy
|
19706
|
+
@summary 调用UpsertCollectionPolicy接口创建或更新日志采集规则
|
20088
19707
|
|
20089
19708
|
@param request: UpsertCollectionPolicyRequest
|
20090
19709
|
@return: UpsertCollectionPolicyResponse
|
@@ -20098,7 +19717,7 @@ class Client(OpenApiClient):
|
|
20098
19717
|
request: sls_20201230_models.UpsertCollectionPolicyRequest,
|
20099
19718
|
) -> sls_20201230_models.UpsertCollectionPolicyResponse:
|
20100
19719
|
"""
|
20101
|
-
@summary 调用UpsertCollectionPolicy
|
19720
|
+
@summary 调用UpsertCollectionPolicy接口创建或更新日志采集规则
|
20102
19721
|
|
20103
19722
|
@param request: UpsertCollectionPolicyRequest
|
20104
19723
|
@return: UpsertCollectionPolicyResponse
|