Skip to content

Commit ca939b4

Browse files
committed
Update API CreateBackupPlan: add param ClusterId.
1 parent dcfb92c commit ca939b4

File tree

2 files changed

+177
-16
lines changed

2 files changed

+177
-16
lines changed

hbr-20170908/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@alicloud/hbr20170908",
3-
"version": "2.1.3",
3+
"version": "2.1.4",
44
"description": "",
55
"main": "dist/client.js",
66
"scripts": {

hbr-20170908/src/client.ts

Lines changed: 176 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1828,6 +1828,23 @@ export class DescribeBackupJobs2ResponseBodyBackupJobsBackupJobDetail extends $d
18281828
/**
18291829
* @remarks
18301830
* The ecs instance infos.
1831+
*
1832+
* @example
1833+
* {
1834+
* "i-xxxxxxxx": {
1835+
* "hostName": "test",
1836+
* "instanceName": "test",
1837+
* "instanceType": "ecs.c7.xlarge",
1838+
* "osType": "linux",
1839+
* "diskIds": [
1840+
* "d-xxxxxxxx01",
1841+
* "d-xxxxxxxx02"
1842+
* ],
1843+
* "osNameEn": "Rocky Linux 8.8 64 bit",
1844+
* "osName": "Rocky Linux 8.8 64位",
1845+
* "platform": "Rocky Linux"
1846+
* }
1847+
* }
18311848
*/
18321849
instanceInfos?: { [key: string]: any };
18331850
/**
@@ -1965,6 +1982,76 @@ export class DescribeBackupJobs2ResponseBodyBackupJobsBackupJobPaths extends $da
19651982
}
19661983
}
19671984

1985+
export class DescribeBackupJobs2ResponseBodyBackupJobsBackupJobReport extends $dara.Model {
1986+
/**
1987+
* @remarks
1988+
* List of failed files
1989+
*
1990+
* @example
1991+
* /temp/report/158975xxxxxx4625/r-0001hfxxxxxymsspjjtl/job-0001hfxxxxxymsspjjtl_failed.zip
1992+
*/
1993+
failedFiles?: string;
1994+
/**
1995+
* @remarks
1996+
* Report generation status.
1997+
*
1998+
* @example
1999+
* COMPLETE
2000+
*/
2001+
reportTaskStatus?: string;
2002+
/**
2003+
* @remarks
2004+
* List of skipped files
2005+
*
2006+
* @example
2007+
* /temp/report/158975xxxxxx4625/r-0001hfxxxxxymsspjjtl/job-0001hfxxxxxymsspjjtl_skipped.zip
2008+
*/
2009+
skippedFiles?: string;
2010+
/**
2011+
* @remarks
2012+
* List of successful files.
2013+
*
2014+
* @example
2015+
* /temp/report/158975xxxxxx4625/r-0001hfxxxxxymsspjjtl/job-0001hfxxxxxymsspjjtl_success.zip
2016+
*/
2017+
successFiles?: string;
2018+
/**
2019+
* @remarks
2020+
* List of all files. (This field is not returned for data synchronization)
2021+
*
2022+
* @example
2023+
* /temp/report/158975xxxxxx4625/job-0001hfxxxxxymsspjjtl/job-0001hfxxxxxymsspjjtl_total.csv
2024+
*/
2025+
totalFiles?: string;
2026+
static names(): { [key: string]: string } {
2027+
return {
2028+
failedFiles: 'FailedFiles',
2029+
reportTaskStatus: 'ReportTaskStatus',
2030+
skippedFiles: 'SkippedFiles',
2031+
successFiles: 'SuccessFiles',
2032+
totalFiles: 'TotalFiles',
2033+
};
2034+
}
2035+
2036+
static types(): { [key: string]: any } {
2037+
return {
2038+
failedFiles: 'string',
2039+
reportTaskStatus: 'string',
2040+
skippedFiles: 'string',
2041+
successFiles: 'string',
2042+
totalFiles: 'string',
2043+
};
2044+
}
2045+
2046+
validate() {
2047+
super.validate();
2048+
}
2049+
2050+
constructor(map?: { [key: string]: any }) {
2051+
super(map);
2052+
}
2053+
}
2054+
19682055
export class DescribeBackupJobs2ResponseBodyBackupJobsBackupJob extends $dara.Model {
19692056
/**
19702057
* @remarks
@@ -2268,6 +2355,11 @@ export class DescribeBackupJobs2ResponseBodyBackupJobsBackupJob extends $dara.Mo
22682355
* 10000
22692356
*/
22702357
progress?: number;
2358+
/**
2359+
* @remarks
2360+
* Task Report
2361+
*/
2362+
report?: DescribeBackupJobs2ResponseBodyBackupJobsBackupJobReport;
22712363
/**
22722364
* @remarks
22732365
* The type of the data source. Valid values:
@@ -2384,6 +2476,7 @@ export class DescribeBackupJobs2ResponseBodyBackupJobsBackupJob extends $dara.Mo
23842476
planId: 'PlanId',
23852477
prefix: 'Prefix',
23862478
progress: 'Progress',
2479+
report: 'Report',
23872480
sourceType: 'SourceType',
23882481
speed: 'Speed',
23892482
speedLimit: 'SpeedLimit',
@@ -2435,6 +2528,7 @@ export class DescribeBackupJobs2ResponseBodyBackupJobsBackupJob extends $dara.Mo
24352528
planId: 'string',
24362529
prefix: 'string',
24372530
progress: 'number',
2531+
report: DescribeBackupJobs2ResponseBodyBackupJobsBackupJobReport,
24382532
sourceType: 'string',
24392533
speed: 'number',
24402534
speedLimit: 'string',
@@ -2456,6 +2550,9 @@ export class DescribeBackupJobs2ResponseBodyBackupJobsBackupJob extends $dara.Mo
24562550
if(this.paths && typeof (this.paths as any).validate === 'function') {
24572551
(this.paths as any).validate();
24582552
}
2553+
if(this.report && typeof (this.report as any).validate === 'function') {
2554+
(this.report as any).validate();
2555+
}
24592556
super.validate();
24602557
}
24612558

@@ -7555,6 +7652,17 @@ export class DescribeUdmSnapshotsResponseBodySnapshots extends $dara.Model {
75557652
* 1000
75567653
*/
75577654
bytesTotal?: number;
7655+
/**
7656+
* @remarks
7657+
* Indicates whether the disk backup point can be deleted. This parameter is valid only if the value of SourceType is UDM_ECS_DISK.
7658+
*
7659+
* @example
7660+
* false
7661+
*
7662+
* **if can be null:**
7663+
* true
7664+
*/
7665+
canBeDeleted?: boolean;
75587666
/**
75597667
* @remarks
75607668
* The time when the backup snapshot was completed. The value is a UNIX timestamp. Unit: seconds.
@@ -7752,6 +7860,7 @@ export class DescribeUdmSnapshotsResponseBodySnapshots extends $dara.Model {
77527860
advancedRetentionType: 'AdvancedRetentionType',
77537861
backupType: 'BackupType',
77547862
bytesTotal: 'BytesTotal',
7863+
canBeDeleted: 'CanBeDeleted',
77557864
completeTime: 'CompleteTime',
77567865
createTime: 'CreateTime',
77577866
createdTime: 'CreatedTime',
@@ -7781,6 +7890,7 @@ export class DescribeUdmSnapshotsResponseBodySnapshots extends $dara.Model {
77817890
advancedRetentionType: 'string',
77827891
backupType: 'string',
77837892
bytesTotal: 'number',
7893+
canBeDeleted: 'boolean',
77847894
completeTime: 'number',
77857895
createTime: 'number',
77867896
createdTime: 'number',
@@ -11791,6 +11901,13 @@ export class CreateBackupPlanRequest extends $dara.Model {
1179111901
* {"dataSourceId": "ds-123456789", "path": "/changelist"}
1179211902
*/
1179311903
changeListPath?: string;
11904+
/**
11905+
* @remarks
11906+
* The ID of the client group that executes the data synchronization plan. This parameter is required only for data synchronization.
11907+
*
11908+
* @example
11909+
* cl-***************
11910+
*/
1179411911
clusterId?: string;
1179511912
/**
1179611913
* @remarks
@@ -11826,6 +11943,13 @@ export class CreateBackupPlanRequest extends $dara.Model {
1182611943
* 15897534xxxx4625
1182711944
*/
1182811945
crossAccountUserId?: number;
11946+
/**
11947+
* @remarks
11948+
* The ID of the data source. This parameter is required only for data synchronization.
11949+
*
11950+
* @example
11951+
* ds-****************
11952+
*/
1182911953
dataSourceId?: string;
1183011954
/**
1183111955
* @remarks
@@ -11936,7 +12060,7 @@ export class CreateBackupPlanRequest extends $dara.Model {
1193612060
options?: string;
1193712061
/**
1193812062
* @remarks
11939-
* Table store instance details.
12063+
* The details about the Tablestore instance.
1194012064
*/
1194112065
otsDetail?: OtsDetail;
1194212066
/**
@@ -11990,13 +12114,14 @@ export class CreateBackupPlanRequest extends $dara.Model {
1199012114
schedule?: string;
1199112115
/**
1199212116
* @remarks
11993-
* Data source type, with the following options:
12117+
* The type of the data source. Valid values:
1199412118
*
11995-
* - **ECS_FILE**: Backs up ECS files
11996-
* - **OSS**: Backs up Alibaba Cloud OSS
11997-
* - **NAS**: Backs up Alibaba Cloud NAS
11998-
* - **OTS**: Backs up Alibaba Cloud OTS
11999-
* - **UDM_ECS**: Backs up the entire ECS instance
12119+
* * **ECS_FILE**: Elastic Compute Service (ECS) files
12120+
* * **OSS**: Object Storage Service (OSS) buckets
12121+
* * **NAS**: File Storage NAS (NAS) file systems
12122+
* * **OTS**: Tablestore instances
12123+
* * **UDM_ECS**: ECS instances
12124+
* * **SYNC**: data synchronization
1200012125
*
1200112126
* This parameter is required.
1200212127
*
@@ -12157,6 +12282,13 @@ export class CreateBackupPlanShrinkRequest extends $dara.Model {
1215712282
* {"dataSourceId": "ds-123456789", "path": "/changelist"}
1215812283
*/
1215912284
changeListPath?: string;
12285+
/**
12286+
* @remarks
12287+
* The ID of the client group that executes the data synchronization plan. This parameter is required only for data synchronization.
12288+
*
12289+
* @example
12290+
* cl-***************
12291+
*/
1216012292
clusterId?: string;
1216112293
/**
1216212294
* @remarks
@@ -12192,6 +12324,13 @@ export class CreateBackupPlanShrinkRequest extends $dara.Model {
1219212324
* 15897534xxxx4625
1219312325
*/
1219412326
crossAccountUserId?: number;
12327+
/**
12328+
* @remarks
12329+
* The ID of the data source. This parameter is required only for data synchronization.
12330+
*
12331+
* @example
12332+
* ds-****************
12333+
*/
1219512334
dataSourceId?: string;
1219612335
/**
1219712336
* @remarks
@@ -12302,7 +12441,7 @@ export class CreateBackupPlanShrinkRequest extends $dara.Model {
1230212441
options?: string;
1230312442
/**
1230412443
* @remarks
12305-
* Table store instance details.
12444+
* The details about the Tablestore instance.
1230612445
*/
1230712446
otsDetailShrink?: string;
1230812447
/**
@@ -12356,13 +12495,14 @@ export class CreateBackupPlanShrinkRequest extends $dara.Model {
1235612495
schedule?: string;
1235712496
/**
1235812497
* @remarks
12359-
* Data source type, with the following options:
12498+
* The type of the data source. Valid values:
1236012499
*
12361-
* - **ECS_FILE**: Backs up ECS files
12362-
* - **OSS**: Backs up Alibaba Cloud OSS
12363-
* - **NAS**: Backs up Alibaba Cloud NAS
12364-
* - **OTS**: Backs up Alibaba Cloud OTS
12365-
* - **UDM_ECS**: Backs up the entire ECS instance
12500+
* * **ECS_FILE**: Elastic Compute Service (ECS) files
12501+
* * **OSS**: Object Storage Service (OSS) buckets
12502+
* * **NAS**: File Storage NAS (NAS) file systems
12503+
* * **OTS**: Tablestore instances
12504+
* * **UDM_ECS**: ECS instances
12505+
* * **SYNC**: data synchronization
1236612506
*
1236712507
* This parameter is required.
1236812508
*
@@ -15276,7 +15416,7 @@ export class CreateVaultRequest extends $dara.Model {
1527615416
vaultRegionId?: string;
1527715417
/**
1527815418
* @remarks
15279-
* The storage class of the backup vault. Valid value: **STANDARD**, which indicates standard storage.
15419+
* The storage type of the backup vault. Valid value: **STANDARD**, which indicates standard storage.
1528015420
*
1528115421
* @example
1528215422
* STANDARD
@@ -15293,6 +15433,13 @@ export class CreateVaultRequest extends $dara.Model {
1529315433
* STANDARD
1529415434
*/
1529515435
vaultType?: string;
15436+
/**
15437+
* @remarks
15438+
* 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.
15439+
*
15440+
* @example
15441+
* false
15442+
*/
1529615443
wormEnabled?: boolean;
1529715444
static names(): { [key: string]: string } {
1529815445
return {
@@ -22535,6 +22682,7 @@ export class DescribeVaultsRequest extends $dara.Model {
2253522682
* v-*********************
2253622683
*/
2253722684
vaultId?: string;
22685+
vaultName?: string;
2253822686
/**
2253922687
* @remarks
2254022688
* The region ID to which the backup vault belongs.
@@ -22561,6 +22709,7 @@ export class DescribeVaultsRequest extends $dara.Model {
2256122709
status: 'Status',
2256222710
tag: 'Tag',
2256322711
vaultId: 'VaultId',
22712+
vaultName: 'VaultName',
2256422713
vaultRegionId: 'VaultRegionId',
2256522714
vaultType: 'VaultType',
2256622715
};
@@ -22574,6 +22723,7 @@ export class DescribeVaultsRequest extends $dara.Model {
2257422723
status: 'string',
2257522724
tag: { 'type': 'array', 'itemType': DescribeVaultsRequestTag },
2257622725
vaultId: 'string',
22726+
vaultName: 'string',
2257722727
vaultRegionId: 'string',
2257822728
vaultType: 'string',
2257922729
};
@@ -28212,6 +28362,13 @@ export class UpdateVaultRequest extends $dara.Model {
2821228362
* vaultname
2821328363
*/
2821428364
vaultName?: string;
28365+
/**
28366+
* @remarks
28367+
* 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.
28368+
*
28369+
* @example
28370+
* true
28371+
*/
2821528372
wormEnabled?: boolean;
2821628373
static names(): { [key: string]: string } {
2821728374
return {
@@ -32670,6 +32827,10 @@ export default class Client extends OpenApi {
3267032827
query["VaultId"] = request.vaultId;
3267132828
}
3267232829

32830+
if (!$dara.isNull(request.vaultName)) {
32831+
query["VaultName"] = request.vaultName;
32832+
}
32833+
3267332834
if (!$dara.isNull(request.vaultRegionId)) {
3267432835
query["VaultRegionId"] = request.vaultRegionId;
3267532836
}

0 commit comments

Comments
 (0)