alibabacloud-sls20201230 4.1.2__tar.gz → 4.2.1__tar.gz
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-4.1.2 → alibabacloud_sls20201230-4.2.1}/ChangeLog.md +6 -0
- {alibabacloud_sls20201230-4.1.2 → alibabacloud_sls20201230-4.2.1}/PKG-INFO +1 -1
- alibabacloud_sls20201230-4.2.1/alibabacloud_sls20201230/__init__.py +1 -0
- {alibabacloud_sls20201230-4.1.2 → alibabacloud_sls20201230-4.2.1}/alibabacloud_sls20201230/client.py +94 -0
- {alibabacloud_sls20201230-4.1.2 → alibabacloud_sls20201230-4.2.1}/alibabacloud_sls20201230/models.py +79 -0
- {alibabacloud_sls20201230-4.1.2 → alibabacloud_sls20201230-4.2.1}/alibabacloud_sls20201230.egg-info/PKG-INFO +1 -1
- {alibabacloud_sls20201230-4.1.2 → alibabacloud_sls20201230-4.2.1}/setup.py +1 -1
- alibabacloud_sls20201230-4.1.2/alibabacloud_sls20201230/__init__.py +0 -1
- {alibabacloud_sls20201230-4.1.2 → alibabacloud_sls20201230-4.2.1}/LICENSE +0 -0
- {alibabacloud_sls20201230-4.1.2 → alibabacloud_sls20201230-4.2.1}/MANIFEST.in +0 -0
- {alibabacloud_sls20201230-4.1.2 → alibabacloud_sls20201230-4.2.1}/README-CN.md +0 -0
- {alibabacloud_sls20201230-4.1.2 → alibabacloud_sls20201230-4.2.1}/README.md +0 -0
- {alibabacloud_sls20201230-4.1.2 → alibabacloud_sls20201230-4.2.1}/alibabacloud_sls20201230.egg-info/SOURCES.txt +0 -0
- {alibabacloud_sls20201230-4.1.2 → alibabacloud_sls20201230-4.2.1}/alibabacloud_sls20201230.egg-info/dependency_links.txt +0 -0
- {alibabacloud_sls20201230-4.1.2 → alibabacloud_sls20201230-4.2.1}/alibabacloud_sls20201230.egg-info/requires.txt +0 -0
- {alibabacloud_sls20201230-4.1.2 → alibabacloud_sls20201230-4.2.1}/alibabacloud_sls20201230.egg-info/top_level.txt +0 -0
- {alibabacloud_sls20201230-4.1.2 → alibabacloud_sls20201230-4.2.1}/setup.cfg +0 -0
@@ -0,0 +1 @@
|
|
1
|
+
__version__ = '4.2.1'
|
{alibabacloud_sls20201230-4.1.2 → alibabacloud_sls20201230-4.2.1}/alibabacloud_sls20201230/client.py
RENAMED
@@ -1054,6 +1054,8 @@ class Client(OpenApiClient):
|
|
1054
1054
|
body['encrypt_conf'] = request.encrypt_conf
|
1055
1055
|
if not UtilClient.is_unset(request.hot_ttl):
|
1056
1056
|
body['hot_ttl'] = request.hot_ttl
|
1057
|
+
if not UtilClient.is_unset(request.infrequent_access_ttl):
|
1058
|
+
body['infrequentAccessTTL'] = request.infrequent_access_ttl
|
1057
1059
|
if not UtilClient.is_unset(request.logstore_name):
|
1058
1060
|
body['logstoreName'] = request.logstore_name
|
1059
1061
|
if not UtilClient.is_unset(request.max_split_shard):
|
@@ -1117,6 +1119,8 @@ class Client(OpenApiClient):
|
|
1117
1119
|
body['encrypt_conf'] = request.encrypt_conf
|
1118
1120
|
if not UtilClient.is_unset(request.hot_ttl):
|
1119
1121
|
body['hot_ttl'] = request.hot_ttl
|
1122
|
+
if not UtilClient.is_unset(request.infrequent_access_ttl):
|
1123
|
+
body['infrequentAccessTTL'] = request.infrequent_access_ttl
|
1120
1124
|
if not UtilClient.is_unset(request.logstore_name):
|
1121
1125
|
body['logstoreName'] = request.logstore_name
|
1122
1126
|
if not UtilClient.is_unset(request.max_split_shard):
|
@@ -8714,6 +8718,92 @@ class Client(OpenApiClient):
|
|
8714
8718
|
headers = {}
|
8715
8719
|
return await self.put_project_policy_with_options_async(project, request, headers, runtime)
|
8716
8720
|
|
8721
|
+
def put_project_transfer_acceleration_with_options(
|
8722
|
+
self,
|
8723
|
+
project: str,
|
8724
|
+
request: sls_20201230_models.PutProjectTransferAccelerationRequest,
|
8725
|
+
headers: Dict[str, str],
|
8726
|
+
runtime: util_models.RuntimeOptions,
|
8727
|
+
) -> sls_20201230_models.PutProjectTransferAccelerationResponse:
|
8728
|
+
UtilClient.validate_model(request)
|
8729
|
+
host_map = {}
|
8730
|
+
host_map['project'] = project
|
8731
|
+
body = {}
|
8732
|
+
if not UtilClient.is_unset(request.enabled):
|
8733
|
+
body['enabled'] = request.enabled
|
8734
|
+
req = open_api_models.OpenApiRequest(
|
8735
|
+
host_map=host_map,
|
8736
|
+
headers=headers,
|
8737
|
+
body=OpenApiUtilClient.parse_to_map(body)
|
8738
|
+
)
|
8739
|
+
params = open_api_models.Params(
|
8740
|
+
action='PutProjectTransferAcceleration',
|
8741
|
+
version='2020-12-30',
|
8742
|
+
protocol='HTTPS',
|
8743
|
+
pathname=f'/transferacceleration',
|
8744
|
+
method='PUT',
|
8745
|
+
auth_type='AK',
|
8746
|
+
style='ROA',
|
8747
|
+
req_body_type='json',
|
8748
|
+
body_type='none'
|
8749
|
+
)
|
8750
|
+
return TeaCore.from_map(
|
8751
|
+
sls_20201230_models.PutProjectTransferAccelerationResponse(),
|
8752
|
+
self.execute(params, req, runtime)
|
8753
|
+
)
|
8754
|
+
|
8755
|
+
async def put_project_transfer_acceleration_with_options_async(
|
8756
|
+
self,
|
8757
|
+
project: str,
|
8758
|
+
request: sls_20201230_models.PutProjectTransferAccelerationRequest,
|
8759
|
+
headers: Dict[str, str],
|
8760
|
+
runtime: util_models.RuntimeOptions,
|
8761
|
+
) -> sls_20201230_models.PutProjectTransferAccelerationResponse:
|
8762
|
+
UtilClient.validate_model(request)
|
8763
|
+
host_map = {}
|
8764
|
+
host_map['project'] = project
|
8765
|
+
body = {}
|
8766
|
+
if not UtilClient.is_unset(request.enabled):
|
8767
|
+
body['enabled'] = request.enabled
|
8768
|
+
req = open_api_models.OpenApiRequest(
|
8769
|
+
host_map=host_map,
|
8770
|
+
headers=headers,
|
8771
|
+
body=OpenApiUtilClient.parse_to_map(body)
|
8772
|
+
)
|
8773
|
+
params = open_api_models.Params(
|
8774
|
+
action='PutProjectTransferAcceleration',
|
8775
|
+
version='2020-12-30',
|
8776
|
+
protocol='HTTPS',
|
8777
|
+
pathname=f'/transferacceleration',
|
8778
|
+
method='PUT',
|
8779
|
+
auth_type='AK',
|
8780
|
+
style='ROA',
|
8781
|
+
req_body_type='json',
|
8782
|
+
body_type='none'
|
8783
|
+
)
|
8784
|
+
return TeaCore.from_map(
|
8785
|
+
sls_20201230_models.PutProjectTransferAccelerationResponse(),
|
8786
|
+
await self.execute_async(params, req, runtime)
|
8787
|
+
)
|
8788
|
+
|
8789
|
+
def put_project_transfer_acceleration(
|
8790
|
+
self,
|
8791
|
+
project: str,
|
8792
|
+
request: sls_20201230_models.PutProjectTransferAccelerationRequest,
|
8793
|
+
) -> sls_20201230_models.PutProjectTransferAccelerationResponse:
|
8794
|
+
runtime = util_models.RuntimeOptions()
|
8795
|
+
headers = {}
|
8796
|
+
return self.put_project_transfer_acceleration_with_options(project, request, headers, runtime)
|
8797
|
+
|
8798
|
+
async def put_project_transfer_acceleration_async(
|
8799
|
+
self,
|
8800
|
+
project: str,
|
8801
|
+
request: sls_20201230_models.PutProjectTransferAccelerationRequest,
|
8802
|
+
) -> sls_20201230_models.PutProjectTransferAccelerationResponse:
|
8803
|
+
runtime = util_models.RuntimeOptions()
|
8804
|
+
headers = {}
|
8805
|
+
return await self.put_project_transfer_acceleration_with_options_async(project, request, headers, runtime)
|
8806
|
+
|
8717
8807
|
def put_webtracking_with_options(
|
8718
8808
|
self,
|
8719
8809
|
project: str,
|
@@ -10046,6 +10136,8 @@ class Client(OpenApiClient):
|
|
10046
10136
|
body['encrypt_conf'] = request.encrypt_conf
|
10047
10137
|
if not UtilClient.is_unset(request.hot_ttl):
|
10048
10138
|
body['hot_ttl'] = request.hot_ttl
|
10139
|
+
if not UtilClient.is_unset(request.infrequent_access_ttl):
|
10140
|
+
body['infrequentAccessTTL'] = request.infrequent_access_ttl
|
10049
10141
|
if not UtilClient.is_unset(request.logstore_name):
|
10050
10142
|
body['logstoreName'] = request.logstore_name
|
10051
10143
|
if not UtilClient.is_unset(request.max_split_shard):
|
@@ -10111,6 +10203,8 @@ class Client(OpenApiClient):
|
|
10111
10203
|
body['encrypt_conf'] = request.encrypt_conf
|
10112
10204
|
if not UtilClient.is_unset(request.hot_ttl):
|
10113
10205
|
body['hot_ttl'] = request.hot_ttl
|
10206
|
+
if not UtilClient.is_unset(request.infrequent_access_ttl):
|
10207
|
+
body['infrequentAccessTTL'] = request.infrequent_access_ttl
|
10114
10208
|
if not UtilClient.is_unset(request.logstore_name):
|
10115
10209
|
body['logstoreName'] = request.logstore_name
|
10116
10210
|
if not UtilClient.is_unset(request.max_split_shard):
|
{alibabacloud_sls20201230-4.1.2 → alibabacloud_sls20201230-4.2.1}/alibabacloud_sls20201230/models.py
RENAMED
@@ -1931,6 +1931,7 @@ class Logstore(TeaModel):
|
|
1931
1931
|
enable_tracking: bool = None,
|
1932
1932
|
encrypt_conf: EncryptConf = None,
|
1933
1933
|
hot_ttl: int = None,
|
1934
|
+
infrequent_access_ttl: int = None,
|
1934
1935
|
last_modify_time: int = None,
|
1935
1936
|
logstore_name: str = None,
|
1936
1937
|
max_split_shard: int = None,
|
@@ -1946,6 +1947,7 @@ class Logstore(TeaModel):
|
|
1946
1947
|
self.enable_tracking = enable_tracking
|
1947
1948
|
self.encrypt_conf = encrypt_conf
|
1948
1949
|
self.hot_ttl = hot_ttl
|
1950
|
+
self.infrequent_access_ttl = infrequent_access_ttl
|
1949
1951
|
self.last_modify_time = last_modify_time
|
1950
1952
|
self.logstore_name = logstore_name
|
1951
1953
|
self.max_split_shard = max_split_shard
|
@@ -1977,6 +1979,8 @@ class Logstore(TeaModel):
|
|
1977
1979
|
result['encrypt_conf'] = self.encrypt_conf.to_map()
|
1978
1980
|
if self.hot_ttl is not None:
|
1979
1981
|
result['hot_ttl'] = self.hot_ttl
|
1982
|
+
if self.infrequent_access_ttl is not None:
|
1983
|
+
result['infrequentAccessTTL'] = self.infrequent_access_ttl
|
1980
1984
|
if self.last_modify_time is not None:
|
1981
1985
|
result['lastModifyTime'] = self.last_modify_time
|
1982
1986
|
if self.logstore_name is not None:
|
@@ -2010,6 +2014,8 @@ class Logstore(TeaModel):
|
|
2010
2014
|
self.encrypt_conf = temp_model.from_map(m['encrypt_conf'])
|
2011
2015
|
if m.get('hot_ttl') is not None:
|
2012
2016
|
self.hot_ttl = m.get('hot_ttl')
|
2017
|
+
if m.get('infrequentAccessTTL') is not None:
|
2018
|
+
self.infrequent_access_ttl = m.get('infrequentAccessTTL')
|
2013
2019
|
if m.get('lastModifyTime') is not None:
|
2014
2020
|
self.last_modify_time = m.get('lastModifyTime')
|
2015
2021
|
if m.get('logstoreName') is not None:
|
@@ -3152,6 +3158,7 @@ class CreateLogStoreRequest(TeaModel):
|
|
3152
3158
|
enable_tracking: bool = None,
|
3153
3159
|
encrypt_conf: EncryptConf = None,
|
3154
3160
|
hot_ttl: int = None,
|
3161
|
+
infrequent_access_ttl: int = None,
|
3155
3162
|
logstore_name: str = None,
|
3156
3163
|
max_split_shard: int = None,
|
3157
3164
|
mode: str = None,
|
@@ -3180,6 +3187,7 @@ class CreateLogStoreRequest(TeaModel):
|
|
3180
3187
|
#
|
3181
3188
|
# Hot data that is stored for longer than the period specified by hot_ttl is converted to cold data. For more information, see [Enable hot and cold-tiered storage for a Logstore](~~308645~~).
|
3182
3189
|
self.hot_ttl = hot_ttl
|
3190
|
+
self.infrequent_access_ttl = infrequent_access_ttl
|
3183
3191
|
# The name of the Logstore. The name must meet the following requirements:
|
3184
3192
|
#
|
3185
3193
|
# * The name must be unique in a project.
|
@@ -3228,6 +3236,8 @@ class CreateLogStoreRequest(TeaModel):
|
|
3228
3236
|
result['encrypt_conf'] = self.encrypt_conf.to_map()
|
3229
3237
|
if self.hot_ttl is not None:
|
3230
3238
|
result['hot_ttl'] = self.hot_ttl
|
3239
|
+
if self.infrequent_access_ttl is not None:
|
3240
|
+
result['infrequentAccessTTL'] = self.infrequent_access_ttl
|
3231
3241
|
if self.logstore_name is not None:
|
3232
3242
|
result['logstoreName'] = self.logstore_name
|
3233
3243
|
if self.max_split_shard is not None:
|
@@ -3255,6 +3265,8 @@ class CreateLogStoreRequest(TeaModel):
|
|
3255
3265
|
self.encrypt_conf = temp_model.from_map(m['encrypt_conf'])
|
3256
3266
|
if m.get('hot_ttl') is not None:
|
3257
3267
|
self.hot_ttl = m.get('hot_ttl')
|
3268
|
+
if m.get('infrequentAccessTTL') is not None:
|
3269
|
+
self.infrequent_access_ttl = m.get('infrequentAccessTTL')
|
3258
3270
|
if m.get('logstoreName') is not None:
|
3259
3271
|
self.logstore_name = m.get('logstoreName')
|
3260
3272
|
if m.get('maxSplitShard') is not None:
|
@@ -10515,6 +10527,67 @@ class PutProjectPolicyResponse(TeaModel):
|
|
10515
10527
|
return self
|
10516
10528
|
|
10517
10529
|
|
10530
|
+
class PutProjectTransferAccelerationRequest(TeaModel):
|
10531
|
+
def __init__(
|
10532
|
+
self,
|
10533
|
+
enabled: bool = None,
|
10534
|
+
):
|
10535
|
+
self.enabled = enabled
|
10536
|
+
|
10537
|
+
def validate(self):
|
10538
|
+
pass
|
10539
|
+
|
10540
|
+
def to_map(self):
|
10541
|
+
_map = super().to_map()
|
10542
|
+
if _map is not None:
|
10543
|
+
return _map
|
10544
|
+
|
10545
|
+
result = dict()
|
10546
|
+
if self.enabled is not None:
|
10547
|
+
result['enabled'] = self.enabled
|
10548
|
+
return result
|
10549
|
+
|
10550
|
+
def from_map(self, m: dict = None):
|
10551
|
+
m = m or dict()
|
10552
|
+
if m.get('enabled') is not None:
|
10553
|
+
self.enabled = m.get('enabled')
|
10554
|
+
return self
|
10555
|
+
|
10556
|
+
|
10557
|
+
class PutProjectTransferAccelerationResponse(TeaModel):
|
10558
|
+
def __init__(
|
10559
|
+
self,
|
10560
|
+
headers: Dict[str, str] = None,
|
10561
|
+
status_code: int = None,
|
10562
|
+
):
|
10563
|
+
self.headers = headers
|
10564
|
+
self.status_code = status_code
|
10565
|
+
|
10566
|
+
def validate(self):
|
10567
|
+
self.validate_required(self.headers, 'headers')
|
10568
|
+
self.validate_required(self.status_code, 'status_code')
|
10569
|
+
|
10570
|
+
def to_map(self):
|
10571
|
+
_map = super().to_map()
|
10572
|
+
if _map is not None:
|
10573
|
+
return _map
|
10574
|
+
|
10575
|
+
result = dict()
|
10576
|
+
if self.headers is not None:
|
10577
|
+
result['headers'] = self.headers
|
10578
|
+
if self.status_code is not None:
|
10579
|
+
result['statusCode'] = self.status_code
|
10580
|
+
return result
|
10581
|
+
|
10582
|
+
def from_map(self, m: dict = None):
|
10583
|
+
m = m or dict()
|
10584
|
+
if m.get('headers') is not None:
|
10585
|
+
self.headers = m.get('headers')
|
10586
|
+
if m.get('statusCode') is not None:
|
10587
|
+
self.status_code = m.get('statusCode')
|
10588
|
+
return self
|
10589
|
+
|
10590
|
+
|
10518
10591
|
class PutWebtrackingRequest(TeaModel):
|
10519
10592
|
def __init__(
|
10520
10593
|
self,
|
@@ -11569,6 +11642,7 @@ class UpdateLogStoreRequest(TeaModel):
|
|
11569
11642
|
enable_tracking: bool = None,
|
11570
11643
|
encrypt_conf: EncryptConf = None,
|
11571
11644
|
hot_ttl: int = None,
|
11645
|
+
infrequent_access_ttl: int = None,
|
11572
11646
|
logstore_name: str = None,
|
11573
11647
|
max_split_shard: int = None,
|
11574
11648
|
mode: str = None,
|
@@ -11595,6 +11669,7 @@ class UpdateLogStoreRequest(TeaModel):
|
|
11595
11669
|
self.encrypt_conf = encrypt_conf
|
11596
11670
|
# The retention period of data in the hot storage tier of the Logstore. Minimum value: 30. Unit: day. You can specify a value that ranges from 30 to the value of ttl. Hot data that is stored for longer than the period specified by hot_ttl is converted to cold data. For more information, see [Enable hot and cold-tiered storage for a Logstore](~~308645~~).
|
11597
11671
|
self.hot_ttl = hot_ttl
|
11672
|
+
self.infrequent_access_ttl = infrequent_access_ttl
|
11598
11673
|
# The name of the Logstore.
|
11599
11674
|
self.logstore_name = logstore_name
|
11600
11675
|
# The maximum number of shards into which existing shards can be automatically split. Valid values: 1 to 64.
|
@@ -11638,6 +11713,8 @@ class UpdateLogStoreRequest(TeaModel):
|
|
11638
11713
|
result['encrypt_conf'] = self.encrypt_conf.to_map()
|
11639
11714
|
if self.hot_ttl is not None:
|
11640
11715
|
result['hot_ttl'] = self.hot_ttl
|
11716
|
+
if self.infrequent_access_ttl is not None:
|
11717
|
+
result['infrequentAccessTTL'] = self.infrequent_access_ttl
|
11641
11718
|
if self.logstore_name is not None:
|
11642
11719
|
result['logstoreName'] = self.logstore_name
|
11643
11720
|
if self.max_split_shard is not None:
|
@@ -11665,6 +11742,8 @@ class UpdateLogStoreRequest(TeaModel):
|
|
11665
11742
|
self.encrypt_conf = temp_model.from_map(m['encrypt_conf'])
|
11666
11743
|
if m.get('hot_ttl') is not None:
|
11667
11744
|
self.hot_ttl = m.get('hot_ttl')
|
11745
|
+
if m.get('infrequentAccessTTL') is not None:
|
11746
|
+
self.infrequent_access_ttl = m.get('infrequentAccessTTL')
|
11668
11747
|
if m.get('logstoreName') is not None:
|
11669
11748
|
self.logstore_name = m.get('logstoreName')
|
11670
11749
|
if m.get('maxSplitShard') is not None:
|
@@ -1 +0,0 @@
|
|
1
|
-
__version__ = '4.1.2'
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|