alibabacloud-sls20201230 5.2.0__py3-none-any.whl → 5.2.2__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 +206 -615
- alibabacloud_sls20201230/models.py +619 -1341
- {alibabacloud_sls20201230-5.2.0.dist-info → alibabacloud_sls20201230-5.2.2.dist-info}/METADATA +3 -4
- alibabacloud_sls20201230-5.2.2.dist-info/RECORD +8 -0
- alibabacloud_sls20201230-5.2.0.dist-info/RECORD +0 -8
- {alibabacloud_sls20201230-5.2.0.dist-info → alibabacloud_sls20201230-5.2.2.dist-info}/LICENSE +0 -0
- {alibabacloud_sls20201230-5.2.0.dist-info → alibabacloud_sls20201230-5.2.2.dist-info}/WHEEL +0 -0
- {alibabacloud_sls20201230-5.2.0.dist-info → alibabacloud_sls20201230-5.2.2.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
|
|
@@ -428,11 +425,16 @@ class Client(OpenApiClient):
|
|
428
425
|
query['consumer'] = request.consumer
|
429
426
|
if not UtilClient.is_unset(request.force_success):
|
430
427
|
query['forceSuccess'] = request.force_success
|
428
|
+
body = {}
|
429
|
+
if not UtilClient.is_unset(request.checkpoint):
|
430
|
+
body['checkpoint'] = request.checkpoint
|
431
|
+
if not UtilClient.is_unset(request.shard):
|
432
|
+
body['shard'] = request.shard
|
431
433
|
req = open_api_models.OpenApiRequest(
|
432
434
|
host_map=host_map,
|
433
435
|
headers=headers,
|
434
436
|
query=OpenApiUtilClient.query(query),
|
435
|
-
body=
|
437
|
+
body=OpenApiUtilClient.parse_to_map(body)
|
436
438
|
)
|
437
439
|
params = open_api_models.Params(
|
438
440
|
action='ConsumerGroupUpdateCheckPoint',
|
@@ -475,11 +477,16 @@ class Client(OpenApiClient):
|
|
475
477
|
query['consumer'] = request.consumer
|
476
478
|
if not UtilClient.is_unset(request.force_success):
|
477
479
|
query['forceSuccess'] = request.force_success
|
480
|
+
body = {}
|
481
|
+
if not UtilClient.is_unset(request.checkpoint):
|
482
|
+
body['checkpoint'] = request.checkpoint
|
483
|
+
if not UtilClient.is_unset(request.shard):
|
484
|
+
body['shard'] = request.shard
|
478
485
|
req = open_api_models.OpenApiRequest(
|
479
486
|
host_map=host_map,
|
480
487
|
headers=headers,
|
481
488
|
query=OpenApiUtilClient.query(query),
|
482
|
-
body=
|
489
|
+
body=OpenApiUtilClient.parse_to_map(body)
|
483
490
|
)
|
484
491
|
params = open_api_models.Params(
|
485
492
|
action='ConsumerGroupUpdateCheckPoint',
|
@@ -1014,7 +1021,7 @@ class Client(OpenApiClient):
|
|
1014
1021
|
runtime: util_models.RuntimeOptions,
|
1015
1022
|
) -> sls_20201230_models.CreateConsumerGroupResponse:
|
1016
1023
|
"""
|
1017
|
-
@summary Creates a consumer group for a Logstore.
|
1024
|
+
@summary Creates a consumer group for a specified Logstore.
|
1018
1025
|
|
1019
1026
|
@description ### Usage notes
|
1020
1027
|
Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
|
@@ -1066,7 +1073,7 @@ class Client(OpenApiClient):
|
|
1066
1073
|
runtime: util_models.RuntimeOptions,
|
1067
1074
|
) -> sls_20201230_models.CreateConsumerGroupResponse:
|
1068
1075
|
"""
|
1069
|
-
@summary Creates a consumer group for a Logstore.
|
1076
|
+
@summary Creates a consumer group for a specified Logstore.
|
1070
1077
|
|
1071
1078
|
@description ### Usage notes
|
1072
1079
|
Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
|
@@ -1116,7 +1123,7 @@ class Client(OpenApiClient):
|
|
1116
1123
|
request: sls_20201230_models.CreateConsumerGroupRequest,
|
1117
1124
|
) -> sls_20201230_models.CreateConsumerGroupResponse:
|
1118
1125
|
"""
|
1119
|
-
@summary Creates a consumer group for a Logstore.
|
1126
|
+
@summary Creates a consumer group for a specified Logstore.
|
1120
1127
|
|
1121
1128
|
@description ### Usage notes
|
1122
1129
|
Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
|
@@ -1137,7 +1144,7 @@ class Client(OpenApiClient):
|
|
1137
1144
|
request: sls_20201230_models.CreateConsumerGroupRequest,
|
1138
1145
|
) -> sls_20201230_models.CreateConsumerGroupResponse:
|
1139
1146
|
"""
|
1140
|
-
@summary Creates a consumer group for a Logstore.
|
1147
|
+
@summary Creates a consumer group for a specified Logstore.
|
1141
1148
|
|
1142
1149
|
@description ### Usage notes
|
1143
1150
|
Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
|
@@ -4071,7 +4078,7 @@ class Client(OpenApiClient):
|
|
4071
4078
|
auth_type='AK',
|
4072
4079
|
style='ROA',
|
4073
4080
|
req_body_type='json',
|
4074
|
-
body_type='
|
4081
|
+
body_type='none'
|
4075
4082
|
)
|
4076
4083
|
return TeaCore.from_map(
|
4077
4084
|
sls_20201230_models.DeleteCollectionPolicyResponse(),
|
@@ -4112,7 +4119,7 @@ class Client(OpenApiClient):
|
|
4112
4119
|
auth_type='AK',
|
4113
4120
|
style='ROA',
|
4114
4121
|
req_body_type='json',
|
4115
|
-
body_type='
|
4122
|
+
body_type='none'
|
4116
4123
|
)
|
4117
4124
|
return TeaCore.from_map(
|
4118
4125
|
sls_20201230_models.DeleteCollectionPolicyResponse(),
|
@@ -5381,7 +5388,7 @@ class Client(OpenApiClient):
|
|
5381
5388
|
runtime: util_models.RuntimeOptions,
|
5382
5389
|
) -> sls_20201230_models.DeleteOSSExportResponse:
|
5383
5390
|
"""
|
5384
|
-
@summary
|
5391
|
+
@summary Deletes an Object Storage Service (OSS) data shipping job.
|
5385
5392
|
|
5386
5393
|
@param headers: map
|
5387
5394
|
@param runtime: runtime options for this request RuntimeOptions
|
@@ -5417,7 +5424,7 @@ class Client(OpenApiClient):
|
|
5417
5424
|
runtime: util_models.RuntimeOptions,
|
5418
5425
|
) -> sls_20201230_models.DeleteOSSExportResponse:
|
5419
5426
|
"""
|
5420
|
-
@summary
|
5427
|
+
@summary Deletes an Object Storage Service (OSS) data shipping job.
|
5421
5428
|
|
5422
5429
|
@param headers: map
|
5423
5430
|
@param runtime: runtime options for this request RuntimeOptions
|
@@ -5451,7 +5458,7 @@ class Client(OpenApiClient):
|
|
5451
5458
|
oss_export_name: str,
|
5452
5459
|
) -> sls_20201230_models.DeleteOSSExportResponse:
|
5453
5460
|
"""
|
5454
|
-
@summary
|
5461
|
+
@summary Deletes an Object Storage Service (OSS) data shipping job.
|
5455
5462
|
|
5456
5463
|
@return: DeleteOSSExportResponse
|
5457
5464
|
"""
|
@@ -5465,7 +5472,7 @@ class Client(OpenApiClient):
|
|
5465
5472
|
oss_export_name: str,
|
5466
5473
|
) -> sls_20201230_models.DeleteOSSExportResponse:
|
5467
5474
|
"""
|
5468
|
-
@summary
|
5475
|
+
@summary Deletes an Object Storage Service (OSS) data shipping job.
|
5469
5476
|
|
5470
5477
|
@return: DeleteOSSExportResponse
|
5471
5478
|
"""
|
@@ -6089,130 +6096,6 @@ class Client(OpenApiClient):
|
|
6089
6096
|
headers = {}
|
6090
6097
|
return await self.delete_scheduled_sqlwith_options_async(project, scheduled_sqlname, headers, runtime)
|
6091
6098
|
|
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
6099
|
def delete_store_view_with_options(
|
6217
6100
|
self,
|
6218
6101
|
project: str,
|
@@ -10404,8 +10287,11 @@ class Client(OpenApiClient):
|
|
10404
10287
|
"""
|
10405
10288
|
@summary Queries a project policy.
|
10406
10289
|
|
10407
|
-
@description ### Usage notes
|
10290
|
+
@description ### [](#)Usage notes
|
10408
10291
|
Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
|
10292
|
+
An AccessKey pair is created and obtained. For more information, see [AccessKey pair](https://help.aliyun.com/document_detail/29009.html).
|
10293
|
+
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).
|
10294
|
+
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
10295
|
|
10410
10296
|
@param headers: map
|
10411
10297
|
@param runtime: runtime options for this request RuntimeOptions
|
@@ -10442,8 +10328,11 @@ class Client(OpenApiClient):
|
|
10442
10328
|
"""
|
10443
10329
|
@summary Queries a project policy.
|
10444
10330
|
|
10445
|
-
@description ### Usage notes
|
10331
|
+
@description ### [](#)Usage notes
|
10446
10332
|
Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
|
10333
|
+
An AccessKey pair is created and obtained. For more information, see [AccessKey pair](https://help.aliyun.com/document_detail/29009.html).
|
10334
|
+
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).
|
10335
|
+
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
10336
|
|
10448
10337
|
@param headers: map
|
10449
10338
|
@param runtime: runtime options for this request RuntimeOptions
|
@@ -10478,8 +10367,11 @@ class Client(OpenApiClient):
|
|
10478
10367
|
"""
|
10479
10368
|
@summary Queries a project policy.
|
10480
10369
|
|
10481
|
-
@description ### Usage notes
|
10370
|
+
@description ### [](#)Usage notes
|
10482
10371
|
Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
|
10372
|
+
An AccessKey pair is created and obtained. For more information, see [AccessKey pair](https://help.aliyun.com/document_detail/29009.html).
|
10373
|
+
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).
|
10374
|
+
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
10375
|
|
10484
10376
|
@return: GetProjectPolicyResponse
|
10485
10377
|
"""
|
@@ -10494,8 +10386,11 @@ class Client(OpenApiClient):
|
|
10494
10386
|
"""
|
10495
10387
|
@summary Queries a project policy.
|
10496
10388
|
|
10497
|
-
@description ### Usage notes
|
10389
|
+
@description ### [](#)Usage notes
|
10498
10390
|
Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
|
10391
|
+
An AccessKey pair is created and obtained. For more information, see [AccessKey pair](https://help.aliyun.com/document_detail/29009.html).
|
10392
|
+
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).
|
10393
|
+
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
10394
|
|
10500
10395
|
@return: GetProjectPolicyResponse
|
10501
10396
|
"""
|
@@ -10715,164 +10610,6 @@ class Client(OpenApiClient):
|
|
10715
10610
|
headers = {}
|
10716
10611
|
return await self.get_scheduled_sqlwith_options_async(project, scheduled_sqlname, headers, runtime)
|
10717
10612
|
|
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
10613
|
def get_sls_service_with_options(
|
10877
10614
|
self,
|
10878
10615
|
headers: Dict[str, str],
|
@@ -11703,38 +11440,34 @@ class Client(OpenApiClient):
|
|
11703
11440
|
|
11704
11441
|
def list_collection_policies_with_options(
|
11705
11442
|
self,
|
11706
|
-
|
11443
|
+
request: sls_20201230_models.ListCollectionPoliciesRequest,
|
11707
11444
|
headers: Dict[str, str],
|
11708
11445
|
runtime: util_models.RuntimeOptions,
|
11709
11446
|
) -> sls_20201230_models.ListCollectionPoliciesResponse:
|
11710
11447
|
"""
|
11711
11448
|
@summary 通过调用ListCollectionPolicies接口查看配置的日志采集规则
|
11712
11449
|
|
11713
|
-
@param
|
11450
|
+
@param request: ListCollectionPoliciesRequest
|
11714
11451
|
@param headers: map
|
11715
11452
|
@param runtime: runtime options for this request RuntimeOptions
|
11716
11453
|
@return: ListCollectionPoliciesResponse
|
11717
11454
|
"""
|
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')
|
11455
|
+
UtilClient.validate_model(request)
|
11723
11456
|
query = {}
|
11724
|
-
if not UtilClient.is_unset(request.
|
11725
|
-
query['
|
11457
|
+
if not UtilClient.is_unset(request.central_project):
|
11458
|
+
query['centralProject'] = request.central_project
|
11726
11459
|
if not UtilClient.is_unset(request.data_code):
|
11727
11460
|
query['dataCode'] = request.data_code
|
11728
11461
|
if not UtilClient.is_unset(request.instance_id):
|
11729
11462
|
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
|
11463
|
+
if not UtilClient.is_unset(request.offset):
|
11464
|
+
query['offset'] = request.offset
|
11734
11465
|
if not UtilClient.is_unset(request.policy_name):
|
11735
11466
|
query['policyName'] = request.policy_name
|
11736
11467
|
if not UtilClient.is_unset(request.product_code):
|
11737
11468
|
query['productCode'] = request.product_code
|
11469
|
+
if not UtilClient.is_unset(request.size):
|
11470
|
+
query['size'] = request.size
|
11738
11471
|
req = open_api_models.OpenApiRequest(
|
11739
11472
|
headers=headers,
|
11740
11473
|
query=OpenApiUtilClient.query(query)
|
@@ -11757,38 +11490,34 @@ class Client(OpenApiClient):
|
|
11757
11490
|
|
11758
11491
|
async def list_collection_policies_with_options_async(
|
11759
11492
|
self,
|
11760
|
-
|
11493
|
+
request: sls_20201230_models.ListCollectionPoliciesRequest,
|
11761
11494
|
headers: Dict[str, str],
|
11762
11495
|
runtime: util_models.RuntimeOptions,
|
11763
11496
|
) -> sls_20201230_models.ListCollectionPoliciesResponse:
|
11764
11497
|
"""
|
11765
11498
|
@summary 通过调用ListCollectionPolicies接口查看配置的日志采集规则
|
11766
11499
|
|
11767
|
-
@param
|
11500
|
+
@param request: ListCollectionPoliciesRequest
|
11768
11501
|
@param headers: map
|
11769
11502
|
@param runtime: runtime options for this request RuntimeOptions
|
11770
11503
|
@return: ListCollectionPoliciesResponse
|
11771
11504
|
"""
|
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')
|
11505
|
+
UtilClient.validate_model(request)
|
11777
11506
|
query = {}
|
11778
|
-
if not UtilClient.is_unset(request.
|
11779
|
-
query['
|
11507
|
+
if not UtilClient.is_unset(request.central_project):
|
11508
|
+
query['centralProject'] = request.central_project
|
11780
11509
|
if not UtilClient.is_unset(request.data_code):
|
11781
11510
|
query['dataCode'] = request.data_code
|
11782
11511
|
if not UtilClient.is_unset(request.instance_id):
|
11783
11512
|
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
|
11513
|
+
if not UtilClient.is_unset(request.offset):
|
11514
|
+
query['offset'] = request.offset
|
11788
11515
|
if not UtilClient.is_unset(request.policy_name):
|
11789
11516
|
query['policyName'] = request.policy_name
|
11790
11517
|
if not UtilClient.is_unset(request.product_code):
|
11791
11518
|
query['productCode'] = request.product_code
|
11519
|
+
if not UtilClient.is_unset(request.size):
|
11520
|
+
query['size'] = request.size
|
11792
11521
|
req = open_api_models.OpenApiRequest(
|
11793
11522
|
headers=headers,
|
11794
11523
|
query=OpenApiUtilClient.query(query)
|
@@ -12497,145 +12226,15 @@ class Client(OpenApiClient):
|
|
12497
12226
|
headers = {}
|
12498
12227
|
return await self.list_etls_with_options_async(project, request, headers, runtime)
|
12499
12228
|
|
12500
|
-
def
|
12229
|
+
def list_log_stores_with_options(
|
12501
12230
|
self,
|
12502
12231
|
project: str,
|
12503
|
-
request: sls_20201230_models.
|
12232
|
+
request: sls_20201230_models.ListLogStoresRequest,
|
12504
12233
|
headers: Dict[str, str],
|
12505
12234
|
runtime: util_models.RuntimeOptions,
|
12506
|
-
) -> sls_20201230_models.
|
12235
|
+
) -> sls_20201230_models.ListLogStoresResponse:
|
12507
12236
|
"""
|
12508
|
-
@summary Queries
|
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
|
-
def list_log_stores_with_options(
|
12631
|
-
self,
|
12632
|
-
project: str,
|
12633
|
-
request: sls_20201230_models.ListLogStoresRequest,
|
12634
|
-
headers: Dict[str, str],
|
12635
|
-
runtime: util_models.RuntimeOptions,
|
12636
|
-
) -> sls_20201230_models.ListLogStoresResponse:
|
12637
|
-
"""
|
12638
|
-
@summary Queries all Logstores or Logstores that match specific conditions in a project.
|
12237
|
+
@summary Queries all Logstores or Logstores that match specific conditions in a project.
|
12639
12238
|
|
12640
12239
|
@description ### Usage notes
|
12641
12240
|
Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
|
@@ -13580,6 +13179,8 @@ class Client(OpenApiClient):
|
|
13580
13179
|
"""
|
13581
13180
|
UtilClient.validate_model(request)
|
13582
13181
|
query = {}
|
13182
|
+
if not UtilClient.is_unset(request.fetch_quota):
|
13183
|
+
query['fetchQuota'] = request.fetch_quota
|
13583
13184
|
if not UtilClient.is_unset(request.offset):
|
13584
13185
|
query['offset'] = request.offset
|
13585
13186
|
if not UtilClient.is_unset(request.project_name):
|
@@ -13627,6 +13228,8 @@ class Client(OpenApiClient):
|
|
13627
13228
|
"""
|
13628
13229
|
UtilClient.validate_model(request)
|
13629
13230
|
query = {}
|
13231
|
+
if not UtilClient.is_unset(request.fetch_quota):
|
13232
|
+
query['fetchQuota'] = request.fetch_quota
|
13630
13233
|
if not UtilClient.is_unset(request.offset):
|
13631
13234
|
query['offset'] = request.offset
|
13632
13235
|
if not UtilClient.is_unset(request.project_name):
|
@@ -14041,126 +13644,6 @@ class Client(OpenApiClient):
|
|
14041
13644
|
headers = {}
|
14042
13645
|
return await self.list_shards_with_options_async(project, logstore, headers, runtime)
|
14043
13646
|
|
14044
|
-
def list_shipper_with_options(
|
14045
|
-
self,
|
14046
|
-
project: str,
|
14047
|
-
logstore: str,
|
14048
|
-
headers: Dict[str, str],
|
14049
|
-
runtime: util_models.RuntimeOptions,
|
14050
|
-
) -> sls_20201230_models.ListShipperResponse:
|
14051
|
-
"""
|
14052
|
-
@deprecated OpenAPI ListShipper is deprecated
|
14053
|
-
|
14054
|
-
@summary Queries a list of log shipping jobs in a Logstore.
|
14055
|
-
|
14056
|
-
@description Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
|
14057
|
-
|
14058
|
-
@param headers: map
|
14059
|
-
@param runtime: runtime options for this request RuntimeOptions
|
14060
|
-
@return: ListShipperResponse
|
14061
|
-
Deprecated
|
14062
|
-
"""
|
14063
|
-
host_map = {}
|
14064
|
-
host_map['project'] = project
|
14065
|
-
req = open_api_models.OpenApiRequest(
|
14066
|
-
host_map=host_map,
|
14067
|
-
headers=headers
|
14068
|
-
)
|
14069
|
-
params = open_api_models.Params(
|
14070
|
-
action='ListShipper',
|
14071
|
-
version='2020-12-30',
|
14072
|
-
protocol='HTTPS',
|
14073
|
-
pathname=f'/logstores/{logstore}/shipper',
|
14074
|
-
method='GET',
|
14075
|
-
auth_type='AK',
|
14076
|
-
style='ROA',
|
14077
|
-
req_body_type='json',
|
14078
|
-
body_type='json'
|
14079
|
-
)
|
14080
|
-
return TeaCore.from_map(
|
14081
|
-
sls_20201230_models.ListShipperResponse(),
|
14082
|
-
self.execute(params, req, runtime)
|
14083
|
-
)
|
14084
|
-
|
14085
|
-
async def list_shipper_with_options_async(
|
14086
|
-
self,
|
14087
|
-
project: str,
|
14088
|
-
logstore: str,
|
14089
|
-
headers: Dict[str, str],
|
14090
|
-
runtime: util_models.RuntimeOptions,
|
14091
|
-
) -> sls_20201230_models.ListShipperResponse:
|
14092
|
-
"""
|
14093
|
-
@deprecated OpenAPI ListShipper is deprecated
|
14094
|
-
|
14095
|
-
@summary Queries a list of log shipping jobs in a Logstore.
|
14096
|
-
|
14097
|
-
@description Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
|
14098
|
-
|
14099
|
-
@param headers: map
|
14100
|
-
@param runtime: runtime options for this request RuntimeOptions
|
14101
|
-
@return: ListShipperResponse
|
14102
|
-
Deprecated
|
14103
|
-
"""
|
14104
|
-
host_map = {}
|
14105
|
-
host_map['project'] = project
|
14106
|
-
req = open_api_models.OpenApiRequest(
|
14107
|
-
host_map=host_map,
|
14108
|
-
headers=headers
|
14109
|
-
)
|
14110
|
-
params = open_api_models.Params(
|
14111
|
-
action='ListShipper',
|
14112
|
-
version='2020-12-30',
|
14113
|
-
protocol='HTTPS',
|
14114
|
-
pathname=f'/logstores/{logstore}/shipper',
|
14115
|
-
method='GET',
|
14116
|
-
auth_type='AK',
|
14117
|
-
style='ROA',
|
14118
|
-
req_body_type='json',
|
14119
|
-
body_type='json'
|
14120
|
-
)
|
14121
|
-
return TeaCore.from_map(
|
14122
|
-
sls_20201230_models.ListShipperResponse(),
|
14123
|
-
await self.execute_async(params, req, runtime)
|
14124
|
-
)
|
14125
|
-
|
14126
|
-
def list_shipper(
|
14127
|
-
self,
|
14128
|
-
project: str,
|
14129
|
-
logstore: str,
|
14130
|
-
) -> sls_20201230_models.ListShipperResponse:
|
14131
|
-
"""
|
14132
|
-
@deprecated OpenAPI ListShipper is deprecated
|
14133
|
-
|
14134
|
-
@summary Queries a list of log shipping jobs in a Logstore.
|
14135
|
-
|
14136
|
-
@description Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
|
14137
|
-
|
14138
|
-
@return: ListShipperResponse
|
14139
|
-
Deprecated
|
14140
|
-
"""
|
14141
|
-
runtime = util_models.RuntimeOptions()
|
14142
|
-
headers = {}
|
14143
|
-
return self.list_shipper_with_options(project, logstore, headers, runtime)
|
14144
|
-
|
14145
|
-
async def list_shipper_async(
|
14146
|
-
self,
|
14147
|
-
project: str,
|
14148
|
-
logstore: str,
|
14149
|
-
) -> sls_20201230_models.ListShipperResponse:
|
14150
|
-
"""
|
14151
|
-
@deprecated OpenAPI ListShipper is deprecated
|
14152
|
-
|
14153
|
-
@summary Queries a list of log shipping jobs in a Logstore.
|
14154
|
-
|
14155
|
-
@description Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
|
14156
|
-
|
14157
|
-
@return: ListShipperResponse
|
14158
|
-
Deprecated
|
14159
|
-
"""
|
14160
|
-
runtime = util_models.RuntimeOptions()
|
14161
|
-
headers = {}
|
14162
|
-
return await self.list_shipper_with_options_async(project, logstore, headers, runtime)
|
14163
|
-
|
14164
13647
|
def list_store_views_with_options(
|
14165
13648
|
self,
|
14166
13649
|
project: str,
|
@@ -14298,6 +13781,15 @@ class Client(OpenApiClient):
|
|
14298
13781
|
|
14299
13782
|
@description ### Usage notes
|
14300
13783
|
Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
|
13784
|
+
An AccessKey pair is created and obtained. For more information, see [AccessKey pair](https://help.aliyun.com/document_detail/29009.html).
|
13785
|
+
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).
|
13786
|
+
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)
|
13787
|
+
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.
|
13788
|
+
### Authentication resources
|
13789
|
+
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.
|
13790
|
+
|Action|Resource|
|
13791
|
+
|:---|:---|
|
13792
|
+
|`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}`|
|
14301
13793
|
|
14302
13794
|
@param tmp_req: ListTagResourcesRequest
|
14303
13795
|
@param headers: map
|
@@ -14349,6 +13841,15 @@ class Client(OpenApiClient):
|
|
14349
13841
|
|
14350
13842
|
@description ### Usage notes
|
14351
13843
|
Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
|
13844
|
+
An AccessKey pair is created and obtained. For more information, see [AccessKey pair](https://help.aliyun.com/document_detail/29009.html).
|
13845
|
+
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).
|
13846
|
+
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)
|
13847
|
+
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.
|
13848
|
+
### Authentication resources
|
13849
|
+
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.
|
13850
|
+
|Action|Resource|
|
13851
|
+
|:---|:---|
|
13852
|
+
|`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}`|
|
14352
13853
|
|
14353
13854
|
@param tmp_req: ListTagResourcesRequest
|
14354
13855
|
@param headers: map
|
@@ -14398,6 +13899,15 @@ class Client(OpenApiClient):
|
|
14398
13899
|
|
14399
13900
|
@description ### Usage notes
|
14400
13901
|
Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
|
13902
|
+
An AccessKey pair is created and obtained. For more information, see [AccessKey pair](https://help.aliyun.com/document_detail/29009.html).
|
13903
|
+
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).
|
13904
|
+
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)
|
13905
|
+
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.
|
13906
|
+
### Authentication resources
|
13907
|
+
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.
|
13908
|
+
|Action|Resource|
|
13909
|
+
|:---|:---|
|
13910
|
+
|`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}`|
|
14401
13911
|
|
14402
13912
|
@param request: ListTagResourcesRequest
|
14403
13913
|
@return: ListTagResourcesResponse
|
@@ -14415,6 +13925,15 @@ class Client(OpenApiClient):
|
|
14415
13925
|
|
14416
13926
|
@description ### Usage notes
|
14417
13927
|
Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
|
13928
|
+
An AccessKey pair is created and obtained. For more information, see [AccessKey pair](https://help.aliyun.com/document_detail/29009.html).
|
13929
|
+
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).
|
13930
|
+
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)
|
13931
|
+
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.
|
13932
|
+
### Authentication resources
|
13933
|
+
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.
|
13934
|
+
|Action|Resource|
|
13935
|
+
|:---|:---|
|
13936
|
+
|`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}`|
|
14418
13937
|
|
14419
13938
|
@param request: ListTagResourcesRequest
|
14420
13939
|
@return: ListTagResourcesResponse
|
@@ -15176,7 +14695,7 @@ class Client(OpenApiClient):
|
|
15176
14695
|
action='QueryMLServiceResults',
|
15177
14696
|
version='2020-12-30',
|
15178
14697
|
protocol='HTTPS',
|
15179
|
-
pathname=f'/ml/service/{service_name}/analysis',
|
14698
|
+
pathname=f'/ml/v2/service/{service_name}/analysis',
|
15180
14699
|
method='POST',
|
15181
14700
|
auth_type='AK',
|
15182
14701
|
style='ROA',
|
@@ -15219,7 +14738,7 @@ class Client(OpenApiClient):
|
|
15219
14738
|
action='QueryMLServiceResults',
|
15220
14739
|
version='2020-12-30',
|
15221
14740
|
protocol='HTTPS',
|
15222
|
-
pathname=f'/ml/service/{service_name}/analysis',
|
14741
|
+
pathname=f'/ml/v2/service/{service_name}/analysis',
|
15223
14742
|
method='POST',
|
15224
14743
|
auth_type='AK',
|
15225
14744
|
style='ROA',
|
@@ -16436,10 +15955,19 @@ class Client(OpenApiClient):
|
|
16436
15955
|
runtime: util_models.RuntimeOptions,
|
16437
15956
|
) -> sls_20201230_models.TagResourcesResponse:
|
16438
15957
|
"""
|
16439
|
-
@summary Creates and adds
|
15958
|
+
@summary Creates and adds tags to a resource. You can add tags only to projects.
|
16440
15959
|
|
16441
15960
|
@description ### Usage notes
|
16442
|
-
Host consists of a project name and a Log Service endpoint. You must specify a project in Host.
|
15961
|
+
Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
|
15962
|
+
An AccessKey pair is created and obtained. For more information, see [AccessKey pair](https://help.aliyun.com/document_detail/29009.html).
|
15963
|
+
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).
|
15964
|
+
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)
|
15965
|
+
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.
|
15966
|
+
### Authentication resources
|
15967
|
+
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.
|
15968
|
+
|Action|Resource|
|
15969
|
+
|:---|:---|
|
15970
|
+
|`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}`|
|
16443
15971
|
|
16444
15972
|
@param request: TagResourcesRequest
|
16445
15973
|
@param headers: map
|
@@ -16481,10 +16009,19 @@ class Client(OpenApiClient):
|
|
16481
16009
|
runtime: util_models.RuntimeOptions,
|
16482
16010
|
) -> sls_20201230_models.TagResourcesResponse:
|
16483
16011
|
"""
|
16484
|
-
@summary Creates and adds
|
16012
|
+
@summary Creates and adds tags to a resource. You can add tags only to projects.
|
16485
16013
|
|
16486
16014
|
@description ### Usage notes
|
16487
|
-
Host consists of a project name and a Log Service endpoint. You must specify a project in Host.
|
16015
|
+
Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
|
16016
|
+
An AccessKey pair is created and obtained. For more information, see [AccessKey pair](https://help.aliyun.com/document_detail/29009.html).
|
16017
|
+
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).
|
16018
|
+
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)
|
16019
|
+
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.
|
16020
|
+
### Authentication resources
|
16021
|
+
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.
|
16022
|
+
|Action|Resource|
|
16023
|
+
|:---|:---|
|
16024
|
+
|`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}`|
|
16488
16025
|
|
16489
16026
|
@param request: TagResourcesRequest
|
16490
16027
|
@param headers: map
|
@@ -16524,10 +16061,19 @@ class Client(OpenApiClient):
|
|
16524
16061
|
request: sls_20201230_models.TagResourcesRequest,
|
16525
16062
|
) -> sls_20201230_models.TagResourcesResponse:
|
16526
16063
|
"""
|
16527
|
-
@summary Creates and adds
|
16064
|
+
@summary Creates and adds tags to a resource. You can add tags only to projects.
|
16528
16065
|
|
16529
16066
|
@description ### Usage notes
|
16530
|
-
Host consists of a project name and a Log Service endpoint. You must specify a project in Host.
|
16067
|
+
Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
|
16068
|
+
An AccessKey pair is created and obtained. For more information, see [AccessKey pair](https://help.aliyun.com/document_detail/29009.html).
|
16069
|
+
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).
|
16070
|
+
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)
|
16071
|
+
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.
|
16072
|
+
### Authentication resources
|
16073
|
+
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.
|
16074
|
+
|Action|Resource|
|
16075
|
+
|:---|:---|
|
16076
|
+
|`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}`|
|
16531
16077
|
|
16532
16078
|
@param request: TagResourcesRequest
|
16533
16079
|
@return: TagResourcesResponse
|
@@ -16541,10 +16087,19 @@ class Client(OpenApiClient):
|
|
16541
16087
|
request: sls_20201230_models.TagResourcesRequest,
|
16542
16088
|
) -> sls_20201230_models.TagResourcesResponse:
|
16543
16089
|
"""
|
16544
|
-
@summary Creates and adds
|
16090
|
+
@summary Creates and adds tags to a resource. You can add tags only to projects.
|
16545
16091
|
|
16546
16092
|
@description ### Usage notes
|
16547
|
-
Host consists of a project name and a Log Service endpoint. You must specify a project in Host.
|
16093
|
+
Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
|
16094
|
+
An AccessKey pair is created and obtained. For more information, see [AccessKey pair](https://help.aliyun.com/document_detail/29009.html).
|
16095
|
+
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).
|
16096
|
+
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)
|
16097
|
+
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.
|
16098
|
+
### Authentication resources
|
16099
|
+
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.
|
16100
|
+
|Action|Resource|
|
16101
|
+
|:---|:---|
|
16102
|
+
|`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}`|
|
16548
16103
|
|
16549
16104
|
@param request: TagResourcesRequest
|
16550
16105
|
@return: TagResourcesResponse
|
@@ -16563,7 +16118,15 @@ class Client(OpenApiClient):
|
|
16563
16118
|
@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.
|
16564
16119
|
|
16565
16120
|
@description ### Usage notes
|
16566
|
-
Host consists of a project name and a Log Service endpoint. You must specify a project in Host.
|
16121
|
+
Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
|
16122
|
+
An AccessKey pair is created and obtained. For more information, see [AccessKey pair](https://help.aliyun.com/document_detail/29009.html).
|
16123
|
+
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).
|
16124
|
+
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.
|
16125
|
+
### Authentication resources
|
16126
|
+
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.
|
16127
|
+
|Action|Resource|
|
16128
|
+
|:---|:---|
|
16129
|
+
|`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}`|
|
16567
16130
|
|
16568
16131
|
@param request: UntagResourcesRequest
|
16569
16132
|
@param headers: map
|
@@ -16610,7 +16173,15 @@ class Client(OpenApiClient):
|
|
16610
16173
|
@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.
|
16611
16174
|
|
16612
16175
|
@description ### Usage notes
|
16613
|
-
Host consists of a project name and a Log Service endpoint. You must specify a project in Host.
|
16176
|
+
Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
|
16177
|
+
An AccessKey pair is created and obtained. For more information, see [AccessKey pair](https://help.aliyun.com/document_detail/29009.html).
|
16178
|
+
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).
|
16179
|
+
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.
|
16180
|
+
### Authentication resources
|
16181
|
+
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.
|
16182
|
+
|Action|Resource|
|
16183
|
+
|:---|:---|
|
16184
|
+
|`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}`|
|
16614
16185
|
|
16615
16186
|
@param request: UntagResourcesRequest
|
16616
16187
|
@param headers: map
|
@@ -16655,7 +16226,15 @@ class Client(OpenApiClient):
|
|
16655
16226
|
@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.
|
16656
16227
|
|
16657
16228
|
@description ### Usage notes
|
16658
|
-
Host consists of a project name and a Log Service endpoint. You must specify a project in Host.
|
16229
|
+
Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
|
16230
|
+
An AccessKey pair is created and obtained. For more information, see [AccessKey pair](https://help.aliyun.com/document_detail/29009.html).
|
16231
|
+
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).
|
16232
|
+
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.
|
16233
|
+
### Authentication resources
|
16234
|
+
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.
|
16235
|
+
|Action|Resource|
|
16236
|
+
|:---|:---|
|
16237
|
+
|`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}`|
|
16659
16238
|
|
16660
16239
|
@param request: UntagResourcesRequest
|
16661
16240
|
@return: UntagResourcesResponse
|
@@ -16672,7 +16251,15 @@ class Client(OpenApiClient):
|
|
16672
16251
|
@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.
|
16673
16252
|
|
16674
16253
|
@description ### Usage notes
|
16675
|
-
Host consists of a project name and a Log Service endpoint. You must specify a project in Host.
|
16254
|
+
Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
|
16255
|
+
An AccessKey pair is created and obtained. For more information, see [AccessKey pair](https://help.aliyun.com/document_detail/29009.html).
|
16256
|
+
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).
|
16257
|
+
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.
|
16258
|
+
### Authentication resources
|
16259
|
+
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.
|
16260
|
+
|Action|Resource|
|
16261
|
+
|:---|:---|
|
16262
|
+
|`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}`|
|
16676
16263
|
|
16677
16264
|
@param request: UntagResourcesRequest
|
16678
16265
|
@return: UntagResourcesResponse
|
@@ -17028,7 +16615,7 @@ class Client(OpenApiClient):
|
|
17028
16615
|
runtime: util_models.RuntimeOptions,
|
17029
16616
|
) -> sls_20201230_models.UpdateConfigResponse:
|
17030
16617
|
"""
|
17031
|
-
@summary
|
16618
|
+
@summary Modifies a Logtail configuration.
|
17032
16619
|
|
17033
16620
|
@description ### [](#)Usage notes
|
17034
16621
|
Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
|
@@ -17076,7 +16663,7 @@ class Client(OpenApiClient):
|
|
17076
16663
|
runtime: util_models.RuntimeOptions,
|
17077
16664
|
) -> sls_20201230_models.UpdateConfigResponse:
|
17078
16665
|
"""
|
17079
|
-
@summary
|
16666
|
+
@summary Modifies a Logtail configuration.
|
17080
16667
|
|
17081
16668
|
@description ### [](#)Usage notes
|
17082
16669
|
Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
|
@@ -17122,7 +16709,7 @@ class Client(OpenApiClient):
|
|
17122
16709
|
request: sls_20201230_models.UpdateConfigRequest,
|
17123
16710
|
) -> sls_20201230_models.UpdateConfigResponse:
|
17124
16711
|
"""
|
17125
|
-
@summary
|
16712
|
+
@summary Modifies a Logtail configuration.
|
17126
16713
|
|
17127
16714
|
@description ### [](#)Usage notes
|
17128
16715
|
Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
|
@@ -17146,7 +16733,7 @@ class Client(OpenApiClient):
|
|
17146
16733
|
request: sls_20201230_models.UpdateConfigRequest,
|
17147
16734
|
) -> sls_20201230_models.UpdateConfigResponse:
|
17148
16735
|
"""
|
17149
|
-
@summary
|
16736
|
+
@summary Modifies a Logtail configuration.
|
17150
16737
|
|
17151
16738
|
@description ### [](#)Usage notes
|
17152
16739
|
Host consists of a project name and a Simple Log Service endpoint. You must specify a project in Host.
|
@@ -17914,7 +17501,7 @@ class Client(OpenApiClient):
|
|
17914
17501
|
runtime: util_models.RuntimeOptions,
|
17915
17502
|
) -> sls_20201230_models.UpdateLogStoreMeteringModeResponse:
|
17916
17503
|
"""
|
17917
|
-
@summary
|
17504
|
+
@summary Changes the billing mode of a Logstore.
|
17918
17505
|
|
17919
17506
|
@param request: UpdateLogStoreMeteringModeRequest
|
17920
17507
|
@param headers: map
|
@@ -17957,7 +17544,7 @@ class Client(OpenApiClient):
|
|
17957
17544
|
runtime: util_models.RuntimeOptions,
|
17958
17545
|
) -> sls_20201230_models.UpdateLogStoreMeteringModeResponse:
|
17959
17546
|
"""
|
17960
|
-
@summary
|
17547
|
+
@summary Changes the billing mode of a Logstore.
|
17961
17548
|
|
17962
17549
|
@param request: UpdateLogStoreMeteringModeRequest
|
17963
17550
|
@param headers: map
|
@@ -17998,7 +17585,7 @@ class Client(OpenApiClient):
|
|
17998
17585
|
request: sls_20201230_models.UpdateLogStoreMeteringModeRequest,
|
17999
17586
|
) -> sls_20201230_models.UpdateLogStoreMeteringModeResponse:
|
18000
17587
|
"""
|
18001
|
-
@summary
|
17588
|
+
@summary Changes the billing mode of a Logstore.
|
18002
17589
|
|
18003
17590
|
@param request: UpdateLogStoreMeteringModeRequest
|
18004
17591
|
@return: UpdateLogStoreMeteringModeResponse
|
@@ -18014,7 +17601,7 @@ class Client(OpenApiClient):
|
|
18014
17601
|
request: sls_20201230_models.UpdateLogStoreMeteringModeRequest,
|
18015
17602
|
) -> sls_20201230_models.UpdateLogStoreMeteringModeResponse:
|
18016
17603
|
"""
|
18017
|
-
@summary
|
17604
|
+
@summary Changes the billing mode of a Logstore.
|
18018
17605
|
|
18019
17606
|
@param request: UpdateLogStoreMeteringModeRequest
|
18020
17607
|
@return: UpdateLogStoreMeteringModeResponse
|
@@ -19978,7 +19565,7 @@ class Client(OpenApiClient):
|
|
19978
19565
|
runtime: util_models.RuntimeOptions,
|
19979
19566
|
) -> sls_20201230_models.UpsertCollectionPolicyResponse:
|
19980
19567
|
"""
|
19981
|
-
@summary 调用UpsertCollectionPolicy
|
19568
|
+
@summary 调用UpsertCollectionPolicy接口创建或更新日志采集规则
|
19982
19569
|
|
19983
19570
|
@param request: UpsertCollectionPolicyRequest
|
19984
19571
|
@param headers: map
|
@@ -19987,14 +19574,14 @@ class Client(OpenApiClient):
|
|
19987
19574
|
"""
|
19988
19575
|
UtilClient.validate_model(request)
|
19989
19576
|
body = {}
|
19990
|
-
if not UtilClient.is_unset(request.attribute):
|
19991
|
-
body['attribute'] = request.attribute
|
19992
19577
|
if not UtilClient.is_unset(request.centralize_config):
|
19993
19578
|
body['centralizeConfig'] = request.centralize_config
|
19994
19579
|
if not UtilClient.is_unset(request.centralize_enabled):
|
19995
19580
|
body['centralizeEnabled'] = request.centralize_enabled
|
19996
19581
|
if not UtilClient.is_unset(request.data_code):
|
19997
19582
|
body['dataCode'] = request.data_code
|
19583
|
+
if not UtilClient.is_unset(request.data_config):
|
19584
|
+
body['dataConfig'] = request.data_config
|
19998
19585
|
if not UtilClient.is_unset(request.enabled):
|
19999
19586
|
body['enabled'] = request.enabled
|
20000
19587
|
if not UtilClient.is_unset(request.policy_config):
|
@@ -20003,6 +19590,8 @@ class Client(OpenApiClient):
|
|
20003
19590
|
body['policyName'] = request.policy_name
|
20004
19591
|
if not UtilClient.is_unset(request.product_code):
|
20005
19592
|
body['productCode'] = request.product_code
|
19593
|
+
if not UtilClient.is_unset(request.resource_directory):
|
19594
|
+
body['resourceDirectory'] = request.resource_directory
|
20006
19595
|
req = open_api_models.OpenApiRequest(
|
20007
19596
|
headers=headers,
|
20008
19597
|
body=OpenApiUtilClient.parse_to_map(body)
|
@@ -20016,7 +19605,7 @@ class Client(OpenApiClient):
|
|
20016
19605
|
auth_type='AK',
|
20017
19606
|
style='ROA',
|
20018
19607
|
req_body_type='json',
|
20019
|
-
body_type='
|
19608
|
+
body_type='none'
|
20020
19609
|
)
|
20021
19610
|
return TeaCore.from_map(
|
20022
19611
|
sls_20201230_models.UpsertCollectionPolicyResponse(),
|
@@ -20030,7 +19619,7 @@ class Client(OpenApiClient):
|
|
20030
19619
|
runtime: util_models.RuntimeOptions,
|
20031
19620
|
) -> sls_20201230_models.UpsertCollectionPolicyResponse:
|
20032
19621
|
"""
|
20033
|
-
@summary 调用UpsertCollectionPolicy
|
19622
|
+
@summary 调用UpsertCollectionPolicy接口创建或更新日志采集规则
|
20034
19623
|
|
20035
19624
|
@param request: UpsertCollectionPolicyRequest
|
20036
19625
|
@param headers: map
|
@@ -20039,14 +19628,14 @@ class Client(OpenApiClient):
|
|
20039
19628
|
"""
|
20040
19629
|
UtilClient.validate_model(request)
|
20041
19630
|
body = {}
|
20042
|
-
if not UtilClient.is_unset(request.attribute):
|
20043
|
-
body['attribute'] = request.attribute
|
20044
19631
|
if not UtilClient.is_unset(request.centralize_config):
|
20045
19632
|
body['centralizeConfig'] = request.centralize_config
|
20046
19633
|
if not UtilClient.is_unset(request.centralize_enabled):
|
20047
19634
|
body['centralizeEnabled'] = request.centralize_enabled
|
20048
19635
|
if not UtilClient.is_unset(request.data_code):
|
20049
19636
|
body['dataCode'] = request.data_code
|
19637
|
+
if not UtilClient.is_unset(request.data_config):
|
19638
|
+
body['dataConfig'] = request.data_config
|
20050
19639
|
if not UtilClient.is_unset(request.enabled):
|
20051
19640
|
body['enabled'] = request.enabled
|
20052
19641
|
if not UtilClient.is_unset(request.policy_config):
|
@@ -20055,6 +19644,8 @@ class Client(OpenApiClient):
|
|
20055
19644
|
body['policyName'] = request.policy_name
|
20056
19645
|
if not UtilClient.is_unset(request.product_code):
|
20057
19646
|
body['productCode'] = request.product_code
|
19647
|
+
if not UtilClient.is_unset(request.resource_directory):
|
19648
|
+
body['resourceDirectory'] = request.resource_directory
|
20058
19649
|
req = open_api_models.OpenApiRequest(
|
20059
19650
|
headers=headers,
|
20060
19651
|
body=OpenApiUtilClient.parse_to_map(body)
|
@@ -20068,7 +19659,7 @@ class Client(OpenApiClient):
|
|
20068
19659
|
auth_type='AK',
|
20069
19660
|
style='ROA',
|
20070
19661
|
req_body_type='json',
|
20071
|
-
body_type='
|
19662
|
+
body_type='none'
|
20072
19663
|
)
|
20073
19664
|
return TeaCore.from_map(
|
20074
19665
|
sls_20201230_models.UpsertCollectionPolicyResponse(),
|
@@ -20080,7 +19671,7 @@ class Client(OpenApiClient):
|
|
20080
19671
|
request: sls_20201230_models.UpsertCollectionPolicyRequest,
|
20081
19672
|
) -> sls_20201230_models.UpsertCollectionPolicyResponse:
|
20082
19673
|
"""
|
20083
|
-
@summary 调用UpsertCollectionPolicy
|
19674
|
+
@summary 调用UpsertCollectionPolicy接口创建或更新日志采集规则
|
20084
19675
|
|
20085
19676
|
@param request: UpsertCollectionPolicyRequest
|
20086
19677
|
@return: UpsertCollectionPolicyResponse
|
@@ -20094,7 +19685,7 @@ class Client(OpenApiClient):
|
|
20094
19685
|
request: sls_20201230_models.UpsertCollectionPolicyRequest,
|
20095
19686
|
) -> sls_20201230_models.UpsertCollectionPolicyResponse:
|
20096
19687
|
"""
|
20097
|
-
@summary 调用UpsertCollectionPolicy
|
19688
|
+
@summary 调用UpsertCollectionPolicy接口创建或更新日志采集规则
|
20098
19689
|
|
20099
19690
|
@param request: UpsertCollectionPolicyRequest
|
20100
19691
|
@return: UpsertCollectionPolicyResponse
|