Skip to content

Commit 92ef453

Browse files
committed
Update API DescribeClients: update response param.
1 parent fbb7365 commit 92ef453

File tree

4 files changed

+33
-9
lines changed

4 files changed

+33
-9
lines changed

hbr-20170908/ChangeLog.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
2025-03-06 Version: 2.1.5
2+
- Update API DescribeClients: update response param.
3+
- Update API UpdatePolicyV2: update param Rules.
4+
5+
16
2025-03-02 Version: 2.1.4
27
- Update API DescribeVaults: add param VaultName.
38

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = '2.1.4'
1+
__version__ = '2.1.5'

hbr-20170908/alibabacloud_hbr20170908/models.py

Lines changed: 26 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3851,11 +3851,11 @@ def __init__(
38513851
self.data_source_ids = data_source_ids
38523852
# The type of the data source. Valid value:
38533853
#
3854-
# * **UDM_ECS**: Elastic Compute Service (ECS) instance This type of data source is supported only if the **RuleType** parameter is set to **UDM_ECS_ONLY**.
3855-
# * **OSS**: Object Storage Service (OSS) bucket This type of data source is supported only if the **RuleType** parameter is set to **STANDARD**.
3856-
# * **NAS**: File Storage NAS (NAS) file system This type of data source is supported only if the **RuleType** parameter is set to **STANDARD**.
3857-
# * **ECS_FILE**: ECS file This type of data source is supported only if the **RuleType** parameter is set to **STANDARD**.
3858-
# * **OTS**: Tablestore instance This type of data source is supported only if the **RuleType** parameter is set to **STANDARD**.
3854+
# * **UDM_ECS**: Elastic Compute Service (ECS) instance This type of data source is supported only if the **PolicyType** parameter is set to **UDM_ECS_ONLY**.
3855+
# * **OSS**: Object Storage Service (OSS) bucket This type of data source is supported only if the **PolicyType** parameter is set to **STANDARD**.
3856+
# * **NAS**: File Storage NAS (NAS) file system This type of data source is supported only if the **PolicyType** parameter is set to **STANDARD**.
3857+
# * **ECS_FILE**: ECS file This type of data source is supported only if the **PolicyType** parameter is set to **STANDARD**.
3858+
# * **OTS**: Tablestore instance This type of data source is supported only if the **PolicyType** parameter is set to **STANDARD**.
38593859
self.source_type = source_type
38603860

38613861
def validate(self):
@@ -4002,8 +4002,9 @@ def __init__(
40024002
self.keep_latest_snapshots = keep_latest_snapshots
40034003
# This parameter is required only if the **RuleType** parameter is set to **REPLICATION**. This parameter specifies the ID of the destination region.
40044004
self.replication_region_id = replication_region_id
4005-
# This parameter is required only if the **RuleType** parameter is set to **TRANSITION** or **REPLICATION**.
4005+
# This parameter is required only if the **RuleType** parameter is set to **BACKUP**, **TRANSITION** or **REPLICATION**.
40064006
#
4007+
# * If the **RuleType** parameter is set to **BACKUP**, this parameter specifies the retention period of the backup data. The priority is lower than the Retention field of the rule with RuleType=TRANSITION. Minimum value: 1. Maximum value: 364635. Unit: days.
40074008
# * If the **RuleType** parameter is set to **TRANSITION**, this parameter specifies the retention period of the backup data. Minimum value: 1. Maximum value: 364635. Unit: days.
40084009
# * If the **RuleType** parameter is set to **REPLICATION**, this parameter specifies the retention period of remote backups. Minimum value: 1. Maximum value: 364635. Unit: days.
40094010
self.retention = retention
@@ -4014,6 +4015,7 @@ def __init__(
40144015
# * **BACKUP**: backup rule
40154016
# * **TRANSITION**: lifecycle rule
40164017
# * **REPLICATION**: replication rule
4018+
# * **TAG**: tag rule
40174019
#
40184020
# This parameter is required.
40194021
self.rule_type = rule_type
@@ -5294,7 +5296,11 @@ def __init__(
52945296
#
52955297
# This parameter is required.
52965298
self.vault_region_id = vault_region_id
5297-
# The storage type of the backup vault. Valid value: **STANDARD**, which indicates standard storage.
5299+
# The storage type of the backup vault. Valid value:
5300+
# - **STANDARD**: standard storage.
5301+
# - **ARCHIVE**: deprected.
5302+
# - **COLD_ARCHIVE**: deprected.
5303+
# - **IA**: deprected.
52985304
self.vault_storage_class = vault_storage_class
52995305
# The type of the backup vault. Valid values:
53005306
#
@@ -10171,6 +10177,7 @@ def __init__(
1017110177
client_version: str = None,
1017210178
cluster_id: str = None,
1017310179
created_time: int = None,
10180+
heart_beat_time: int = None,
1017410181
instance_id: str = None,
1017510182
instance_name: str = None,
1017610183
max_version: str = None,
@@ -10195,6 +10202,7 @@ def __init__(
1019510202
self.cluster_id = cluster_id
1019610203
# The time when the Cloud Backup client was created.
1019710204
self.created_time = created_time
10205+
self.heart_beat_time = heart_beat_time
1019810206
# The instance ID.
1019910207
self.instance_id = instance_id
1020010208
# The name of the ECS instance.
@@ -10256,6 +10264,8 @@ def to_map(self):
1025610264
result['ClusterId'] = self.cluster_id
1025710265
if self.created_time is not None:
1025810266
result['CreatedTime'] = self.created_time
10267+
if self.heart_beat_time is not None:
10268+
result['HeartBeatTime'] = self.heart_beat_time
1025910269
if self.instance_id is not None:
1026010270
result['InstanceId'] = self.instance_id
1026110271
if self.instance_name is not None:
@@ -10292,6 +10302,8 @@ def from_map(self, m: dict = None):
1029210302
self.cluster_id = m.get('ClusterId')
1029310303
if m.get('CreatedTime') is not None:
1029410304
self.created_time = m.get('CreatedTime')
10305+
if m.get('HeartBeatTime') is not None:
10306+
self.heart_beat_time = m.get('HeartBeatTime')
1029510307
if m.get('InstanceId') is not None:
1029610308
self.instance_id = m.get('InstanceId')
1029710309
if m.get('InstanceName') is not None:
@@ -23866,6 +23878,7 @@ def __init__(
2386623878
rule_type: str = None,
2386723879
schedule: str = None,
2386823880
tag_filters: List[UpdatePolicyV2RequestRulesTagFilters] = None,
23881+
vault_id: str = None,
2386923882
):
2387023883
# This parameter is required only if the **RuleType** parameter is set to **TRANSITION**. This parameter specifies the time when data is dumped from a backup vault to an archive vault. Unit: days.
2387123884
self.archive_days = archive_days
@@ -23906,6 +23919,8 @@ def __init__(
2390623919
self.schedule = schedule
2390723920
# This parameter is required only if the **RuleType** parameter is set to **TAG**. This parameter specifies the resource tag filter rule.
2390823921
self.tag_filters = tag_filters
23922+
# This parameter is required only if the RuleType parameter is set to BACKUP. The ID of the backup vault.
23923+
self.vault_id = vault_id
2390923924

2391023925
def validate(self):
2391123926
if self.data_source_filters:
@@ -23959,6 +23974,8 @@ def to_map(self):
2395923974
if self.tag_filters is not None:
2396023975
for k in self.tag_filters:
2396123976
result['TagFilters'].append(k.to_map() if k else None)
23977+
if self.vault_id is not None:
23978+
result['VaultId'] = self.vault_id
2396223979
return result
2396323980

2396423981
def from_map(self, m: dict = None):
@@ -23998,6 +24015,8 @@ def from_map(self, m: dict = None):
2399824015
for k in m.get('TagFilters'):
2399924016
temp_model = UpdatePolicyV2RequestRulesTagFilters()
2400024017
self.tag_filters.append(temp_model.from_map(k))
24018+
if m.get('VaultId') is not None:
24019+
self.vault_id = m.get('VaultId')
2400124020
return self
2400224021

2400324022

hbr-20170908/setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"""
2525
setup module for alibabacloud_hbr20170908.
2626
27-
Created on 02/03/2025
27+
Created on 06/03/2025
2828
2929
@author: Alibaba Cloud SDK
3030
"""

0 commit comments

Comments
 (0)