Skip to content

Commit 22e32c4

Browse files
committed
Update API DescribeVaults: add param VaultName.
1 parent 5b6e948 commit 22e32c4

File tree

5 files changed

+46
-17
lines changed

5 files changed

+46
-17
lines changed

hbr-20170908/ChangeLog.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
2025-03-02 Version: 2.1.4
2+
- Update API DescribeVaults: add param VaultName.
3+
4+
15
2025-02-20 Version: 2.1.3
26
- Update API CreateBackupPlan: add param ClusterId.
37
- Update API CreateBackupPlan: add param DataSourceId.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = '2.1.3'
1+
__version__ = '2.1.4'

hbr-20170908/alibabacloud_hbr20170908/client.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7211,6 +7211,8 @@ def describe_vaults_with_options(
72117211
query['Status'] = request.status
72127212
if not UtilClient.is_unset(request.vault_id):
72137213
query['VaultId'] = request.vault_id
7214+
if not UtilClient.is_unset(request.vault_name):
7215+
query['VaultName'] = request.vault_name
72147216
if not UtilClient.is_unset(request.vault_region_id):
72157217
query['VaultRegionId'] = request.vault_region_id
72167218
if not UtilClient.is_unset(request.vault_type):
@@ -7268,6 +7270,8 @@ async def describe_vaults_with_options_async(
72687270
query['Status'] = request.status
72697271
if not UtilClient.is_unset(request.vault_id):
72707272
query['VaultId'] = request.vault_id
7273+
if not UtilClient.is_unset(request.vault_name):
7274+
query['VaultName'] = request.vault_name
72717275
if not UtilClient.is_unset(request.vault_region_id):
72727276
query['VaultRegionId'] = request.vault_region_id
72737277
if not UtilClient.is_unset(request.vault_type):

hbr-20170908/alibabacloud_hbr20170908/models.py

Lines changed: 36 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1527,6 +1527,7 @@ def __init__(
15271527
self.bucket = bucket
15281528
# Configuration for the incremental file synchronization list. (Required only for synchronization)
15291529
self.change_list_path = change_list_path
1530+
# The ID of the client group that executes the data synchronization plan. This parameter is required only for data synchronization.
15301531
self.cluster_id = cluster_id
15311532
# This parameter is required when **SourceType** is set to **NAS**. It represents the creation time of the file system, in UNIX timestamp, in seconds.
15321533
self.create_time = create_time
@@ -1538,6 +1539,7 @@ def __init__(
15381539
self.cross_account_type = cross_account_type
15391540
# The original account ID used for cross-account backup.
15401541
self.cross_account_user_id = cross_account_user_id
1542+
# The ID of the data source. This parameter is required only for data synchronization.
15411543
self.data_source_id = data_source_id
15421544
# Destination data source details. (Required only for synchronization)
15431545
self.dest_data_source_detail = dest_data_source_detail
@@ -1574,7 +1576,7 @@ def __init__(
15741576
# - If there are data changes in the backup source and you need to ensure consistency between the backup data and the source data, you can configure it as `["UseVSS":true]`.
15751577
# - After choosing to use VSS, multiple file directories cannot be backed up simultaneously.
15761578
self.options = options
1577-
# Table store instance details.
1579+
# The details about the Tablestore instance.
15781580
self.ots_detail = ots_detail
15791581
# Backup paths.
15801582
self.path = path
@@ -1595,13 +1597,14 @@ def __init__(
15951597
#
15961598
# This parameter is required.
15971599
self.schedule = schedule
1598-
# Data source type, with the following options:
1600+
# The type of the data source. Valid values:
15991601
#
1600-
# - **ECS_FILE**: Backs up ECS files
1601-
# - **OSS**: Backs up Alibaba Cloud OSS
1602-
# - **NAS**: Backs up Alibaba Cloud NAS
1603-
# - **OTS**: Backs up Alibaba Cloud OTS
1604-
# - **UDM_ECS**: Backs up the entire ECS instance
1602+
# * **ECS_FILE**: Elastic Compute Service (ECS) files
1603+
# * **OSS**: Object Storage Service (OSS) buckets
1604+
# * **NAS**: File Storage NAS (NAS) file systems
1605+
# * **OTS**: Tablestore instances
1606+
# * **UDM_ECS**: ECS instances
1607+
# * **SYNC**: data synchronization
16051608
#
16061609
# This parameter is required.
16071610
self.source_type = source_type
@@ -1895,6 +1898,7 @@ def __init__(
18951898
self.bucket = bucket
18961899
# Configuration for the incremental file synchronization list. (Required only for synchronization)
18971900
self.change_list_path = change_list_path
1901+
# The ID of the client group that executes the data synchronization plan. This parameter is required only for data synchronization.
18981902
self.cluster_id = cluster_id
18991903
# This parameter is required when **SourceType** is set to **NAS**. It represents the creation time of the file system, in UNIX timestamp, in seconds.
19001904
self.create_time = create_time
@@ -1906,6 +1910,7 @@ def __init__(
19061910
self.cross_account_type = cross_account_type
19071911
# The original account ID used for cross-account backup.
19081912
self.cross_account_user_id = cross_account_user_id
1913+
# The ID of the data source. This parameter is required only for data synchronization.
19091914
self.data_source_id = data_source_id
19101915
# Destination data source details. (Required only for synchronization)
19111916
self.dest_data_source_detail_shrink = dest_data_source_detail_shrink
@@ -1942,7 +1947,7 @@ def __init__(
19421947
# - If there are data changes in the backup source and you need to ensure consistency between the backup data and the source data, you can configure it as `["UseVSS":true]`.
19431948
# - After choosing to use VSS, multiple file directories cannot be backed up simultaneously.
19441949
self.options = options
1945-
# Table store instance details.
1950+
# The details about the Tablestore instance.
19461951
self.ots_detail_shrink = ots_detail_shrink
19471952
# Backup paths.
19481953
self.path = path
@@ -1963,13 +1968,14 @@ def __init__(
19631968
#
19641969
# This parameter is required.
19651970
self.schedule = schedule
1966-
# Data source type, with the following options:
1971+
# The type of the data source. Valid values:
19671972
#
1968-
# - **ECS_FILE**: Backs up ECS files
1969-
# - **OSS**: Backs up Alibaba Cloud OSS
1970-
# - **NAS**: Backs up Alibaba Cloud NAS
1971-
# - **OTS**: Backs up Alibaba Cloud OTS
1972-
# - **UDM_ECS**: Backs up the entire ECS instance
1973+
# * **ECS_FILE**: Elastic Compute Service (ECS) files
1974+
# * **OSS**: Object Storage Service (OSS) buckets
1975+
# * **NAS**: File Storage NAS (NAS) file systems
1976+
# * **OTS**: Tablestore instances
1977+
# * **UDM_ECS**: ECS instances
1978+
# * **SYNC**: data synchronization
19731979
#
19741980
# This parameter is required.
19751981
self.source_type = source_type
@@ -5288,13 +5294,14 @@ def __init__(
52885294
#
52895295
# This parameter is required.
52905296
self.vault_region_id = vault_region_id
5291-
# The storage class of the backup vault. Valid value: **STANDARD**, which indicates standard storage.
5297+
# The storage type of the backup vault. Valid value: **STANDARD**, which indicates standard storage.
52925298
self.vault_storage_class = vault_storage_class
52935299
# The type of the backup vault. Valid values:
52945300
#
52955301
# * **STANDARD**: standard backup vault
52965302
# * **OTS_BACKUP**: backup vault for Tablestore
52975303
self.vault_type = vault_type
5304+
# Whether to enable the vault worm feature. Once the worm feature is enabled, the vault and all its backup data cannot be deleted before they automatically expire. After enabling the worm feature, it is not supported to disable it. The worm feature is only effective for standard and archive backup vault.
52985305
self.worm_enabled = worm_enabled
52995306

53005307
def validate(self):
@@ -8462,10 +8469,15 @@ def __init__(
84628469
success_files: str = None,
84638470
total_files: str = None,
84648471
):
8472+
# List of failed files
84658473
self.failed_files = failed_files
8474+
# Report generation status.
84668475
self.report_task_status = report_task_status
8476+
# List of skipped files
84678477
self.skipped_files = skipped_files
8478+
# List of successful files.
84688479
self.success_files = success_files
8480+
# List of all files. (This field is not returned for data synchronization)
84698481
self.total_files = total_files
84708482

84718483
def validate(self):
@@ -8638,6 +8650,7 @@ def __init__(
86388650
self.prefix = prefix
86398651
# The backup progress. For example, 10000 indicates that the progress is 100%.
86408652
self.progress = progress
8653+
# Task Report
86418654
self.report = report
86428655
# The type of the data source. Valid values:
86438656
#
@@ -16847,6 +16860,7 @@ def __init__(
1684716860
self.backup_type = backup_type
1684816861
# The total amount of data. Unit: bytes.
1684916862
self.bytes_total = bytes_total
16863+
# Indicates whether the disk backup point can be deleted. This parameter is valid only if the value of SourceType is UDM_ECS_DISK.
1685016864
self.can_be_deleted = can_be_deleted
1685116865
# The time when the backup snapshot was completed. The value is a UNIX timestamp. Unit: seconds.
1685216866
self.complete_time = complete_time
@@ -17338,6 +17352,7 @@ def __init__(
1733817352
status: str = None,
1733917353
tag: List[DescribeVaultsRequestTag] = None,
1734017354
vault_id: str = None,
17355+
vault_name: str = None,
1734117356
vault_region_id: str = None,
1734217357
vault_type: str = None,
1734317358
):
@@ -17358,6 +17373,7 @@ def __init__(
1735817373
self.tag = tag
1735917374
# Backup vault ID.
1736017375
self.vault_id = vault_id
17376+
self.vault_name = vault_name
1736117377
# The region ID to which the backup vault belongs.
1736217378
self.vault_region_id = vault_region_id
1736317379
# Backup repository type. The values are as follows:
@@ -17391,6 +17407,8 @@ def to_map(self):
1739117407
result['Tag'].append(k.to_map() if k else None)
1739217408
if self.vault_id is not None:
1739317409
result['VaultId'] = self.vault_id
17410+
if self.vault_name is not None:
17411+
result['VaultName'] = self.vault_name
1739417412
if self.vault_region_id is not None:
1739517413
result['VaultRegionId'] = self.vault_region_id
1739617414
if self.vault_type is not None:
@@ -17414,6 +17432,8 @@ def from_map(self, m: dict = None):
1741417432
self.tag.append(temp_model.from_map(k))
1741517433
if m.get('VaultId') is not None:
1741617434
self.vault_id = m.get('VaultId')
17435+
if m.get('VaultName') is not None:
17436+
self.vault_name = m.get('VaultName')
1741717437
if m.get('VaultRegionId') is not None:
1741817438
self.vault_region_id = m.get('VaultRegionId')
1741917439
if m.get('VaultType') is not None:
@@ -24199,6 +24219,7 @@ def __init__(
2419924219
self.vault_id = vault_id
2420024220
# The name of the backup vault. The name must be 1 to 64 characters in length.
2420124221
self.vault_name = vault_name
24222+
# Whether to enable the vault worm feature. Once the worm feature is enabled, the vault and all its backup data cannot be deleted before they automatically expire. After enabling the worm feature, it is not supported to disable it. The worm feature is only effective for standard and archive backup vault.
2420224223
self.worm_enabled = worm_enabled
2420324224

2420424225
def validate(self):

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 20/02/2025
27+
Created on 02/03/2025
2828
2929
@author: Alibaba Cloud SDK
3030
"""

0 commit comments

Comments
 (0)