@azure/arm-recoveryservicesbackup 8.1.1 → 8.2.0-alpha.20220511.2
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.
- package/CHANGELOG.md +15 -0
- package/dist/index.js +96 -12
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/dist-esm/src/models/index.d.ts +93 -24
- package/dist-esm/src/models/index.d.ts.map +1 -1
- package/dist-esm/src/models/index.js +17 -9
- package/dist-esm/src/models/index.js.map +1 -1
- package/dist-esm/src/models/mappers.d.ts +2 -1
- package/dist-esm/src/models/mappers.d.ts.map +1 -1
- package/dist-esm/src/models/mappers.js +77 -2
- package/dist-esm/src/models/mappers.js.map +1 -1
- package/dist-esm/src/recoveryServicesBackupClient.js +1 -1
- package/package.json +1 -1
- package/review/arm-recoveryservicesbackup.api.md +36 -2
- package/src/models/index.ts +94 -26
- package/src/models/mappers.ts +79 -2
- package/src/recoveryServicesBackupClient.ts +1 -1
- package/types/arm-recoveryservicesbackup.d.ts +76 -4
|
@@ -36,7 +36,7 @@ export class RecoveryServicesBackupClient extends coreClient.ServiceClient {
|
|
|
36
36
|
requestContentType: "application/json; charset=utf-8",
|
|
37
37
|
credential: credentials
|
|
38
38
|
};
|
|
39
|
-
const packageDetails = `azsdk-js-arm-recoveryservicesbackup/8.
|
|
39
|
+
const packageDetails = `azsdk-js-arm-recoveryservicesbackup/8.2.0`;
|
|
40
40
|
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
41
41
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
42
42
|
: `${packageDetails}`;
|
package/package.json
CHANGED
|
@@ -215,7 +215,10 @@ export type AzureIaaSVMProtectedItem = ProtectedItem & {
|
|
|
215
215
|
|
|
216
216
|
// @public
|
|
217
217
|
export interface AzureIaaSVMProtectedItemExtendedInfo {
|
|
218
|
+
newestRecoveryPointInArchive?: Date;
|
|
218
219
|
oldestRecoveryPoint?: Date;
|
|
220
|
+
oldestRecoveryPointInArchive?: Date;
|
|
221
|
+
oldestRecoveryPointInVault?: Date;
|
|
219
222
|
policyInconsistent?: boolean;
|
|
220
223
|
recoveryPointCount?: number;
|
|
221
224
|
}
|
|
@@ -229,6 +232,9 @@ export type AzureIaaSVMProtectionPolicy = ProtectionPolicy & {
|
|
|
229
232
|
instantRPDetails?: InstantRPAdditionalDetails;
|
|
230
233
|
schedulePolicy?: SchedulePolicyUnion;
|
|
231
234
|
retentionPolicy?: RetentionPolicyUnion;
|
|
235
|
+
tieringPolicy?: {
|
|
236
|
+
[propertyName: string]: TieringPolicy;
|
|
237
|
+
};
|
|
232
238
|
instantRpRetentionRangeInDays?: number;
|
|
233
239
|
timeZone?: string;
|
|
234
240
|
policyType?: IaasvmPolicyType;
|
|
@@ -401,7 +407,10 @@ export type AzureVmWorkloadProtectedItem = ProtectedItem & {
|
|
|
401
407
|
|
|
402
408
|
// @public
|
|
403
409
|
export interface AzureVmWorkloadProtectedItemExtendedInfo {
|
|
410
|
+
newestRecoveryPointInArchive?: Date;
|
|
404
411
|
oldestRecoveryPoint?: Date;
|
|
412
|
+
oldestRecoveryPointInArchive?: Date;
|
|
413
|
+
oldestRecoveryPointInVault?: Date;
|
|
405
414
|
policyState?: string;
|
|
406
415
|
recoveryModel?: string;
|
|
407
416
|
recoveryPointCount?: number;
|
|
@@ -1670,7 +1679,7 @@ export type IaasVMBackupRequest = BackupRequest & {
|
|
|
1670
1679
|
|
|
1671
1680
|
// @public
|
|
1672
1681
|
export type IaaSVMContainer = ProtectionContainer & {
|
|
1673
|
-
containerType: "
|
|
1682
|
+
containerType: "IaasVMContainer" | "Microsoft.ClassicCompute/virtualMachines" | "Microsoft.Compute/virtualMachines";
|
|
1674
1683
|
virtualMachineId?: string;
|
|
1675
1684
|
virtualMachineVersion?: string;
|
|
1676
1685
|
resourceGroup?: string;
|
|
@@ -2685,6 +2694,18 @@ export enum KnownSupportStatus {
|
|
|
2685
2694
|
Supported = "Supported"
|
|
2686
2695
|
}
|
|
2687
2696
|
|
|
2697
|
+
// @public
|
|
2698
|
+
export enum KnownTieringMode {
|
|
2699
|
+
// (undocumented)
|
|
2700
|
+
DoNotTier = "DoNotTier",
|
|
2701
|
+
// (undocumented)
|
|
2702
|
+
Invalid = "Invalid",
|
|
2703
|
+
// (undocumented)
|
|
2704
|
+
TierAfter = "TierAfter",
|
|
2705
|
+
// (undocumented)
|
|
2706
|
+
TierRecommended = "TierRecommended"
|
|
2707
|
+
}
|
|
2708
|
+
|
|
2688
2709
|
// @public
|
|
2689
2710
|
export enum KnownType {
|
|
2690
2711
|
// (undocumented)
|
|
@@ -3350,7 +3371,7 @@ export type ProtectedItemUnion = ProtectedItem | AzureFileshareProtectedItem | A
|
|
|
3350
3371
|
// @public
|
|
3351
3372
|
export interface ProtectionContainer {
|
|
3352
3373
|
backupManagementType?: BackupManagementType;
|
|
3353
|
-
containerType: "DPMContainer" | "AzureBackupServerContainer" | "
|
|
3374
|
+
containerType: "DPMContainer" | "AzureBackupServerContainer" | "IaasVMContainer" | "Microsoft.ClassicCompute/virtualMachines" | "Microsoft.Compute/virtualMachines" | "AzureWorkloadContainer" | "SQLAGWorkLoadContainer" | "AzureSqlContainer" | "StorageContainer" | "VMAppContainer" | "GenericContainer" | "Windows";
|
|
3354
3375
|
friendlyName?: string;
|
|
3355
3376
|
healthStatus?: string;
|
|
3356
3377
|
protectableObjectType?: string;
|
|
@@ -4083,6 +4104,9 @@ export interface SubProtectionPolicy {
|
|
|
4083
4104
|
policyType?: PolicyType;
|
|
4084
4105
|
retentionPolicy?: RetentionPolicyUnion;
|
|
4085
4106
|
schedulePolicy?: SchedulePolicyUnion;
|
|
4107
|
+
tieringPolicy?: {
|
|
4108
|
+
[propertyName: string]: TieringPolicy;
|
|
4109
|
+
};
|
|
4086
4110
|
}
|
|
4087
4111
|
|
|
4088
4112
|
// @public
|
|
@@ -4102,6 +4126,16 @@ export interface TargetRestoreInfo {
|
|
|
4102
4126
|
targetDirectoryForFileRestore?: string;
|
|
4103
4127
|
}
|
|
4104
4128
|
|
|
4129
|
+
// @public
|
|
4130
|
+
export type TieringMode = string;
|
|
4131
|
+
|
|
4132
|
+
// @public
|
|
4133
|
+
export interface TieringPolicy {
|
|
4134
|
+
duration?: number;
|
|
4135
|
+
durationType?: RetentionDurationType;
|
|
4136
|
+
tieringMode?: TieringMode;
|
|
4137
|
+
}
|
|
4138
|
+
|
|
4105
4139
|
// @public
|
|
4106
4140
|
export interface TokenInformation {
|
|
4107
4141
|
expiryTimeInUtcTicks?: number;
|
package/src/models/index.ts
CHANGED
|
@@ -889,7 +889,7 @@ export interface ProtectionContainer {
|
|
|
889
889
|
containerType:
|
|
890
890
|
| "DPMContainer"
|
|
891
891
|
| "AzureBackupServerContainer"
|
|
892
|
-
| "
|
|
892
|
+
| "IaasVMContainer"
|
|
893
893
|
| "Microsoft.ClassicCompute/virtualMachines"
|
|
894
894
|
| "Microsoft.Compute/virtualMachines"
|
|
895
895
|
| "AzureWorkloadContainer"
|
|
@@ -1122,6 +1122,12 @@ export interface SubProtectionPolicy {
|
|
|
1122
1122
|
schedulePolicy?: SchedulePolicyUnion;
|
|
1123
1123
|
/** Retention policy with the details on backup copy retention ranges. */
|
|
1124
1124
|
retentionPolicy?: RetentionPolicyUnion;
|
|
1125
|
+
/**
|
|
1126
|
+
* Tiering policy to automatically move RPs to another tier.
|
|
1127
|
+
* Key is Target Tier, defined in RecoveryPointTierType enum.
|
|
1128
|
+
* Tiering policy specifies the criteria to move RP to the target tier.
|
|
1129
|
+
*/
|
|
1130
|
+
tieringPolicy?: { [propertyName: string]: TieringPolicy };
|
|
1125
1131
|
}
|
|
1126
1132
|
|
|
1127
1133
|
/** Base class for backup schedule. */
|
|
@@ -1140,10 +1146,40 @@ export interface RetentionPolicy {
|
|
|
1140
1146
|
retentionPolicyType: "LongTermRetentionPolicy" | "SimpleRetentionPolicy";
|
|
1141
1147
|
}
|
|
1142
1148
|
|
|
1149
|
+
/**
|
|
1150
|
+
* Tiering Policy for a target tier.
|
|
1151
|
+
* If the policy is not specified for a given target tier, service retains the existing configured tiering policy for that tier
|
|
1152
|
+
*/
|
|
1153
|
+
export interface TieringPolicy {
|
|
1154
|
+
/**
|
|
1155
|
+
* Tiering Mode to control automatic tiering of recovery points. Supported values are:
|
|
1156
|
+
* 1. TierRecommended: Tier all recovery points recommended to be tiered
|
|
1157
|
+
* 2. TierAfter: Tier all recovery points after a fixed period, as specified in duration + durationType below.
|
|
1158
|
+
* 3. DoNotTier: Do not tier any recovery points
|
|
1159
|
+
*/
|
|
1160
|
+
tieringMode?: TieringMode;
|
|
1161
|
+
/**
|
|
1162
|
+
* Number of days/weeks/months/years to retain backups in current tier before tiering.
|
|
1163
|
+
* Used only if TieringMode is set to TierAfter
|
|
1164
|
+
*/
|
|
1165
|
+
duration?: number;
|
|
1166
|
+
/**
|
|
1167
|
+
* Retention duration type: days/weeks/months/years
|
|
1168
|
+
* Used only if TieringMode is set to TierAfter
|
|
1169
|
+
*/
|
|
1170
|
+
durationType?: RetentionDurationType;
|
|
1171
|
+
}
|
|
1172
|
+
|
|
1143
1173
|
/** Additional information on Azure IaaS VM specific backup item. */
|
|
1144
1174
|
export interface AzureIaaSVMProtectedItemExtendedInfo {
|
|
1145
|
-
/** The oldest backup copy available for this backup item. */
|
|
1175
|
+
/** The oldest backup copy available for this backup item across all tiers. */
|
|
1146
1176
|
oldestRecoveryPoint?: Date;
|
|
1177
|
+
/** The oldest backup copy available for this backup item in vault tier */
|
|
1178
|
+
oldestRecoveryPointInVault?: Date;
|
|
1179
|
+
/** The oldest backup copy available for this backup item in archive tier */
|
|
1180
|
+
oldestRecoveryPointInArchive?: Date;
|
|
1181
|
+
/** The latest backup copy available for this backup item in archive tier */
|
|
1182
|
+
newestRecoveryPointInArchive?: Date;
|
|
1147
1183
|
/** Number of backup copies available for this backup item. */
|
|
1148
1184
|
recoveryPointCount?: number;
|
|
1149
1185
|
/** Specifies if backup policy associated with the backup item is inconsistent. */
|
|
@@ -1273,8 +1309,14 @@ export interface AzureStorageJobTaskDetails {
|
|
|
1273
1309
|
|
|
1274
1310
|
/** Additional information on Azure Workload for SQL specific backup item. */
|
|
1275
1311
|
export interface AzureVmWorkloadProtectedItemExtendedInfo {
|
|
1276
|
-
/** The oldest backup copy available for this backup item. */
|
|
1312
|
+
/** The oldest backup copy available for this backup item across all tiers. */
|
|
1277
1313
|
oldestRecoveryPoint?: Date;
|
|
1314
|
+
/** The oldest backup copy available for this backup item in vault tier */
|
|
1315
|
+
oldestRecoveryPointInVault?: Date;
|
|
1316
|
+
/** The oldest backup copy available for this backup item in archive tier */
|
|
1317
|
+
oldestRecoveryPointInArchive?: Date;
|
|
1318
|
+
/** The latest backup copy available for this backup item in archive tier */
|
|
1319
|
+
newestRecoveryPointInArchive?: Date;
|
|
1278
1320
|
/** Number of backup copies available for this backup item. */
|
|
1279
1321
|
recoveryPointCount?: number;
|
|
1280
1322
|
/** Indicates consistency of policy object and policy applied to this backup item. */
|
|
@@ -2678,6 +2720,12 @@ export type AzureIaaSVMProtectionPolicy = ProtectionPolicy & {
|
|
|
2678
2720
|
schedulePolicy?: SchedulePolicyUnion;
|
|
2679
2721
|
/** Retention policy with the details on backup copy retention ranges. */
|
|
2680
2722
|
retentionPolicy?: RetentionPolicyUnion;
|
|
2723
|
+
/**
|
|
2724
|
+
* Tiering policy to automatically move RPs to another tier
|
|
2725
|
+
* Key is Target Tier, defined in RecoveryPointTierType enum.
|
|
2726
|
+
* Tiering policy specifies the criteria to move RP to the target tier.
|
|
2727
|
+
*/
|
|
2728
|
+
tieringPolicy?: { [propertyName: string]: TieringPolicy };
|
|
2681
2729
|
/** Instant RP retention policy range in days */
|
|
2682
2730
|
instantRpRetentionRangeInDays?: number;
|
|
2683
2731
|
/** TimeZone optional input as string. For example: TimeZone = "Pacific Standard Time". */
|
|
@@ -2933,7 +2981,7 @@ export type DpmContainer = ProtectionContainer & {
|
|
|
2933
2981
|
export type IaaSVMContainer = ProtectionContainer & {
|
|
2934
2982
|
/** Polymorphic discriminator, which specifies the different types this object can be */
|
|
2935
2983
|
containerType:
|
|
2936
|
-
| "
|
|
2984
|
+
| "IaasVMContainer"
|
|
2937
2985
|
| "Microsoft.ClassicCompute/virtualMachines"
|
|
2938
2986
|
| "Microsoft.Compute/virtualMachines";
|
|
2939
2987
|
/** Fully qualified ARM url of the virtual machine represented by this Azure IaaS VM container. */
|
|
@@ -4241,6 +4289,48 @@ export enum KnownPolicyType {
|
|
|
4241
4289
|
*/
|
|
4242
4290
|
export type PolicyType = string;
|
|
4243
4291
|
|
|
4292
|
+
/** Known values of {@link TieringMode} that the service accepts. */
|
|
4293
|
+
export enum KnownTieringMode {
|
|
4294
|
+
Invalid = "Invalid",
|
|
4295
|
+
TierRecommended = "TierRecommended",
|
|
4296
|
+
TierAfter = "TierAfter",
|
|
4297
|
+
DoNotTier = "DoNotTier"
|
|
4298
|
+
}
|
|
4299
|
+
|
|
4300
|
+
/**
|
|
4301
|
+
* Defines values for TieringMode. \
|
|
4302
|
+
* {@link KnownTieringMode} can be used interchangeably with TieringMode,
|
|
4303
|
+
* this enum contains the known values that the service supports.
|
|
4304
|
+
* ### Known values supported by the service
|
|
4305
|
+
* **Invalid** \
|
|
4306
|
+
* **TierRecommended** \
|
|
4307
|
+
* **TierAfter** \
|
|
4308
|
+
* **DoNotTier**
|
|
4309
|
+
*/
|
|
4310
|
+
export type TieringMode = string;
|
|
4311
|
+
|
|
4312
|
+
/** Known values of {@link RetentionDurationType} that the service accepts. */
|
|
4313
|
+
export enum KnownRetentionDurationType {
|
|
4314
|
+
Invalid = "Invalid",
|
|
4315
|
+
Days = "Days",
|
|
4316
|
+
Weeks = "Weeks",
|
|
4317
|
+
Months = "Months",
|
|
4318
|
+
Years = "Years"
|
|
4319
|
+
}
|
|
4320
|
+
|
|
4321
|
+
/**
|
|
4322
|
+
* Defines values for RetentionDurationType. \
|
|
4323
|
+
* {@link KnownRetentionDurationType} can be used interchangeably with RetentionDurationType,
|
|
4324
|
+
* this enum contains the known values that the service supports.
|
|
4325
|
+
* ### Known values supported by the service
|
|
4326
|
+
* **Invalid** \
|
|
4327
|
+
* **Days** \
|
|
4328
|
+
* **Weeks** \
|
|
4329
|
+
* **Months** \
|
|
4330
|
+
* **Years**
|
|
4331
|
+
*/
|
|
4332
|
+
export type RetentionDurationType = string;
|
|
4333
|
+
|
|
4244
4334
|
/** Known values of {@link HealthStatus} that the service accepts. */
|
|
4245
4335
|
export enum KnownHealthStatus {
|
|
4246
4336
|
Passed = "Passed",
|
|
@@ -4447,28 +4537,6 @@ export enum KnownRestorePointQueryType {
|
|
|
4447
4537
|
*/
|
|
4448
4538
|
export type RestorePointQueryType = string;
|
|
4449
4539
|
|
|
4450
|
-
/** Known values of {@link RetentionDurationType} that the service accepts. */
|
|
4451
|
-
export enum KnownRetentionDurationType {
|
|
4452
|
-
Invalid = "Invalid",
|
|
4453
|
-
Days = "Days",
|
|
4454
|
-
Weeks = "Weeks",
|
|
4455
|
-
Months = "Months",
|
|
4456
|
-
Years = "Years"
|
|
4457
|
-
}
|
|
4458
|
-
|
|
4459
|
-
/**
|
|
4460
|
-
* Defines values for RetentionDurationType. \
|
|
4461
|
-
* {@link KnownRetentionDurationType} can be used interchangeably with RetentionDurationType,
|
|
4462
|
-
* this enum contains the known values that the service supports.
|
|
4463
|
-
* ### Known values supported by the service
|
|
4464
|
-
* **Invalid** \
|
|
4465
|
-
* **Days** \
|
|
4466
|
-
* **Weeks** \
|
|
4467
|
-
* **Months** \
|
|
4468
|
-
* **Years**
|
|
4469
|
-
*/
|
|
4470
|
-
export type RetentionDurationType = string;
|
|
4471
|
-
|
|
4472
4540
|
/** Known values of {@link JobStatus} that the service accepts. */
|
|
4473
4541
|
export enum KnownJobStatus {
|
|
4474
4542
|
Invalid = "Invalid",
|
package/src/models/mappers.ts
CHANGED
|
@@ -2413,6 +2413,13 @@ export const SubProtectionPolicy: coreClient.CompositeMapper = {
|
|
|
2413
2413
|
name: "Composite",
|
|
2414
2414
|
className: "RetentionPolicy"
|
|
2415
2415
|
}
|
|
2416
|
+
},
|
|
2417
|
+
tieringPolicy: {
|
|
2418
|
+
serializedName: "tieringPolicy",
|
|
2419
|
+
type: {
|
|
2420
|
+
name: "Dictionary",
|
|
2421
|
+
value: { type: { name: "Composite", className: "TieringPolicy" } }
|
|
2422
|
+
}
|
|
2416
2423
|
}
|
|
2417
2424
|
}
|
|
2418
2425
|
}
|
|
@@ -2460,6 +2467,33 @@ export const RetentionPolicy: coreClient.CompositeMapper = {
|
|
|
2460
2467
|
}
|
|
2461
2468
|
};
|
|
2462
2469
|
|
|
2470
|
+
export const TieringPolicy: coreClient.CompositeMapper = {
|
|
2471
|
+
type: {
|
|
2472
|
+
name: "Composite",
|
|
2473
|
+
className: "TieringPolicy",
|
|
2474
|
+
modelProperties: {
|
|
2475
|
+
tieringMode: {
|
|
2476
|
+
serializedName: "tieringMode",
|
|
2477
|
+
type: {
|
|
2478
|
+
name: "String"
|
|
2479
|
+
}
|
|
2480
|
+
},
|
|
2481
|
+
duration: {
|
|
2482
|
+
serializedName: "duration",
|
|
2483
|
+
type: {
|
|
2484
|
+
name: "Number"
|
|
2485
|
+
}
|
|
2486
|
+
},
|
|
2487
|
+
durationType: {
|
|
2488
|
+
serializedName: "durationType",
|
|
2489
|
+
type: {
|
|
2490
|
+
name: "String"
|
|
2491
|
+
}
|
|
2492
|
+
}
|
|
2493
|
+
}
|
|
2494
|
+
}
|
|
2495
|
+
};
|
|
2496
|
+
|
|
2463
2497
|
export const AzureIaaSVMProtectedItemExtendedInfo: coreClient.CompositeMapper = {
|
|
2464
2498
|
type: {
|
|
2465
2499
|
name: "Composite",
|
|
@@ -2471,6 +2505,24 @@ export const AzureIaaSVMProtectedItemExtendedInfo: coreClient.CompositeMapper =
|
|
|
2471
2505
|
name: "DateTime"
|
|
2472
2506
|
}
|
|
2473
2507
|
},
|
|
2508
|
+
oldestRecoveryPointInVault: {
|
|
2509
|
+
serializedName: "oldestRecoveryPointInVault",
|
|
2510
|
+
type: {
|
|
2511
|
+
name: "DateTime"
|
|
2512
|
+
}
|
|
2513
|
+
},
|
|
2514
|
+
oldestRecoveryPointInArchive: {
|
|
2515
|
+
serializedName: "oldestRecoveryPointInArchive",
|
|
2516
|
+
type: {
|
|
2517
|
+
name: "DateTime"
|
|
2518
|
+
}
|
|
2519
|
+
},
|
|
2520
|
+
newestRecoveryPointInArchive: {
|
|
2521
|
+
serializedName: "newestRecoveryPointInArchive",
|
|
2522
|
+
type: {
|
|
2523
|
+
name: "DateTime"
|
|
2524
|
+
}
|
|
2525
|
+
},
|
|
2474
2526
|
recoveryPointCount: {
|
|
2475
2527
|
serializedName: "recoveryPointCount",
|
|
2476
2528
|
type: {
|
|
@@ -2833,6 +2885,24 @@ export const AzureVmWorkloadProtectedItemExtendedInfo: coreClient.CompositeMappe
|
|
|
2833
2885
|
name: "DateTime"
|
|
2834
2886
|
}
|
|
2835
2887
|
},
|
|
2888
|
+
oldestRecoveryPointInVault: {
|
|
2889
|
+
serializedName: "oldestRecoveryPointInVault",
|
|
2890
|
+
type: {
|
|
2891
|
+
name: "DateTime"
|
|
2892
|
+
}
|
|
2893
|
+
},
|
|
2894
|
+
oldestRecoveryPointInArchive: {
|
|
2895
|
+
serializedName: "oldestRecoveryPointInArchive",
|
|
2896
|
+
type: {
|
|
2897
|
+
name: "DateTime"
|
|
2898
|
+
}
|
|
2899
|
+
},
|
|
2900
|
+
newestRecoveryPointInArchive: {
|
|
2901
|
+
serializedName: "newestRecoveryPointInArchive",
|
|
2902
|
+
type: {
|
|
2903
|
+
name: "DateTime"
|
|
2904
|
+
}
|
|
2905
|
+
},
|
|
2836
2906
|
recoveryPointCount: {
|
|
2837
2907
|
serializedName: "recoveryPointCount",
|
|
2838
2908
|
type: {
|
|
@@ -6845,6 +6915,13 @@ export const AzureIaaSVMProtectionPolicy: coreClient.CompositeMapper = {
|
|
|
6845
6915
|
className: "RetentionPolicy"
|
|
6846
6916
|
}
|
|
6847
6917
|
},
|
|
6918
|
+
tieringPolicy: {
|
|
6919
|
+
serializedName: "tieringPolicy",
|
|
6920
|
+
type: {
|
|
6921
|
+
name: "Dictionary",
|
|
6922
|
+
value: { type: { name: "Composite", className: "TieringPolicy" } }
|
|
6923
|
+
}
|
|
6924
|
+
},
|
|
6848
6925
|
instantRpRetentionRangeInDays: {
|
|
6849
6926
|
serializedName: "instantRpRetentionRangeInDays",
|
|
6850
6927
|
type: {
|
|
@@ -7625,7 +7702,7 @@ export const DpmContainer: coreClient.CompositeMapper = {
|
|
|
7625
7702
|
};
|
|
7626
7703
|
|
|
7627
7704
|
export const IaaSVMContainer: coreClient.CompositeMapper = {
|
|
7628
|
-
serializedName: "
|
|
7705
|
+
serializedName: "IaasVMContainer",
|
|
7629
7706
|
type: {
|
|
7630
7707
|
name: "Composite",
|
|
7631
7708
|
className: "IaaSVMContainer",
|
|
@@ -9141,7 +9218,7 @@ export let discriminators = {
|
|
|
9141
9218
|
"ProtectableContainer.StorageContainer": AzureStorageProtectableContainer,
|
|
9142
9219
|
"ProtectableContainer.VMAppContainer": AzureVMAppContainerProtectableContainer,
|
|
9143
9220
|
"ProtectionContainer.DPMContainer": DpmContainer,
|
|
9144
|
-
"ProtectionContainer.
|
|
9221
|
+
"ProtectionContainer.IaasVMContainer": IaaSVMContainer,
|
|
9145
9222
|
"ProtectionContainer.AzureWorkloadContainer": AzureWorkloadContainer,
|
|
9146
9223
|
"ProtectionContainer.AzureSqlContainer": AzureSqlContainer,
|
|
9147
9224
|
"ProtectionContainer.StorageContainer": AzureStorageContainer,
|
|
@@ -157,7 +157,7 @@ export class RecoveryServicesBackupClient extends coreClient.ServiceClient {
|
|
|
157
157
|
credential: credentials
|
|
158
158
|
};
|
|
159
159
|
|
|
160
|
-
const packageDetails = `azsdk-js-arm-recoveryservicesbackup/8.
|
|
160
|
+
const packageDetails = `azsdk-js-arm-recoveryservicesbackup/8.2.0`;
|
|
161
161
|
const userAgentPrefix =
|
|
162
162
|
options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
163
163
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
@@ -339,8 +339,14 @@ export declare type AzureIaaSVMProtectedItem = ProtectedItem & {
|
|
|
339
339
|
|
|
340
340
|
/** Additional information on Azure IaaS VM specific backup item. */
|
|
341
341
|
export declare interface AzureIaaSVMProtectedItemExtendedInfo {
|
|
342
|
-
/** The oldest backup copy available for this backup item. */
|
|
342
|
+
/** The oldest backup copy available for this backup item across all tiers. */
|
|
343
343
|
oldestRecoveryPoint?: Date;
|
|
344
|
+
/** The oldest backup copy available for this backup item in vault tier */
|
|
345
|
+
oldestRecoveryPointInVault?: Date;
|
|
346
|
+
/** The oldest backup copy available for this backup item in archive tier */
|
|
347
|
+
oldestRecoveryPointInArchive?: Date;
|
|
348
|
+
/** The latest backup copy available for this backup item in archive tier */
|
|
349
|
+
newestRecoveryPointInArchive?: Date;
|
|
344
350
|
/** Number of backup copies available for this backup item. */
|
|
345
351
|
recoveryPointCount?: number;
|
|
346
352
|
/** Specifies if backup policy associated with the backup item is inconsistent. */
|
|
@@ -358,6 +364,14 @@ export declare type AzureIaaSVMProtectionPolicy = ProtectionPolicy & {
|
|
|
358
364
|
schedulePolicy?: SchedulePolicyUnion;
|
|
359
365
|
/** Retention policy with the details on backup copy retention ranges. */
|
|
360
366
|
retentionPolicy?: RetentionPolicyUnion;
|
|
367
|
+
/**
|
|
368
|
+
* Tiering policy to automatically move RPs to another tier
|
|
369
|
+
* Key is Target Tier, defined in RecoveryPointTierType enum.
|
|
370
|
+
* Tiering policy specifies the criteria to move RP to the target tier.
|
|
371
|
+
*/
|
|
372
|
+
tieringPolicy?: {
|
|
373
|
+
[propertyName: string]: TieringPolicy;
|
|
374
|
+
};
|
|
361
375
|
/** Instant RP retention policy range in days */
|
|
362
376
|
instantRpRetentionRangeInDays?: number;
|
|
363
377
|
/** TimeZone optional input as string. For example: TimeZone = "Pacific Standard Time". */
|
|
@@ -604,8 +618,14 @@ export declare type AzureVmWorkloadProtectedItem = ProtectedItem & {
|
|
|
604
618
|
|
|
605
619
|
/** Additional information on Azure Workload for SQL specific backup item. */
|
|
606
620
|
export declare interface AzureVmWorkloadProtectedItemExtendedInfo {
|
|
607
|
-
/** The oldest backup copy available for this backup item. */
|
|
621
|
+
/** The oldest backup copy available for this backup item across all tiers. */
|
|
608
622
|
oldestRecoveryPoint?: Date;
|
|
623
|
+
/** The oldest backup copy available for this backup item in vault tier */
|
|
624
|
+
oldestRecoveryPointInVault?: Date;
|
|
625
|
+
/** The oldest backup copy available for this backup item in archive tier */
|
|
626
|
+
oldestRecoveryPointInArchive?: Date;
|
|
627
|
+
/** The latest backup copy available for this backup item in archive tier */
|
|
628
|
+
newestRecoveryPointInArchive?: Date;
|
|
609
629
|
/** Number of backup copies available for this backup item. */
|
|
610
630
|
recoveryPointCount?: number;
|
|
611
631
|
/** Indicates consistency of policy object and policy applied to this backup item. */
|
|
@@ -2643,7 +2663,7 @@ export declare type IaasVMBackupRequest = BackupRequest & {
|
|
|
2643
2663
|
/** IaaS VM workload-specific container. */
|
|
2644
2664
|
export declare type IaaSVMContainer = ProtectionContainer & {
|
|
2645
2665
|
/** Polymorphic discriminator, which specifies the different types this object can be */
|
|
2646
|
-
containerType: "
|
|
2666
|
+
containerType: "IaasVMContainer" | "Microsoft.ClassicCompute/virtualMachines" | "Microsoft.Compute/virtualMachines";
|
|
2647
2667
|
/** Fully qualified ARM url of the virtual machine represented by this Azure IaaS VM container. */
|
|
2648
2668
|
virtualMachineId?: string;
|
|
2649
2669
|
/** Specifies whether the container represents a Classic or an Azure Resource Manager VM. */
|
|
@@ -3629,6 +3649,14 @@ export declare enum KnownSupportStatus {
|
|
|
3629
3649
|
NotSupported = "NotSupported"
|
|
3630
3650
|
}
|
|
3631
3651
|
|
|
3652
|
+
/** Known values of {@link TieringMode} that the service accepts. */
|
|
3653
|
+
export declare enum KnownTieringMode {
|
|
3654
|
+
Invalid = "Invalid",
|
|
3655
|
+
TierRecommended = "TierRecommended",
|
|
3656
|
+
TierAfter = "TierAfter",
|
|
3657
|
+
DoNotTier = "DoNotTier"
|
|
3658
|
+
}
|
|
3659
|
+
|
|
3632
3660
|
/** Known values of {@link Type} that the service accepts. */
|
|
3633
3661
|
export declare enum KnownType {
|
|
3634
3662
|
Invalid = "Invalid",
|
|
@@ -4705,7 +4733,7 @@ export declare type ProtectedItemUnion = ProtectedItem | AzureFileshareProtected
|
|
|
4705
4733
|
/** Base class for container with backup items. Containers with specific workloads are derived from this class. */
|
|
4706
4734
|
export declare interface ProtectionContainer {
|
|
4707
4735
|
/** Polymorphic discriminator, which specifies the different types this object can be */
|
|
4708
|
-
containerType: "DPMContainer" | "AzureBackupServerContainer" | "
|
|
4736
|
+
containerType: "DPMContainer" | "AzureBackupServerContainer" | "IaasVMContainer" | "Microsoft.ClassicCompute/virtualMachines" | "Microsoft.Compute/virtualMachines" | "AzureWorkloadContainer" | "SQLAGWorkLoadContainer" | "AzureSqlContainer" | "StorageContainer" | "VMAppContainer" | "GenericContainer" | "Windows";
|
|
4709
4737
|
/** Friendly name of the container. */
|
|
4710
4738
|
friendlyName?: string;
|
|
4711
4739
|
/** Type of backup management for the container. */
|
|
@@ -6022,6 +6050,14 @@ export declare interface SubProtectionPolicy {
|
|
|
6022
6050
|
schedulePolicy?: SchedulePolicyUnion;
|
|
6023
6051
|
/** Retention policy with the details on backup copy retention ranges. */
|
|
6024
6052
|
retentionPolicy?: RetentionPolicyUnion;
|
|
6053
|
+
/**
|
|
6054
|
+
* Tiering policy to automatically move RPs to another tier.
|
|
6055
|
+
* Key is Target Tier, defined in RecoveryPointTierType enum.
|
|
6056
|
+
* Tiering policy specifies the criteria to move RP to the target tier.
|
|
6057
|
+
*/
|
|
6058
|
+
tieringPolicy?: {
|
|
6059
|
+
[propertyName: string]: TieringPolicy;
|
|
6060
|
+
};
|
|
6025
6061
|
}
|
|
6026
6062
|
|
|
6027
6063
|
/**
|
|
@@ -6057,6 +6093,42 @@ export declare interface TargetRestoreInfo {
|
|
|
6057
6093
|
targetDirectoryForFileRestore?: string;
|
|
6058
6094
|
}
|
|
6059
6095
|
|
|
6096
|
+
/**
|
|
6097
|
+
* Defines values for TieringMode. \
|
|
6098
|
+
* {@link KnownTieringMode} can be used interchangeably with TieringMode,
|
|
6099
|
+
* this enum contains the known values that the service supports.
|
|
6100
|
+
* ### Known values supported by the service
|
|
6101
|
+
* **Invalid** \
|
|
6102
|
+
* **TierRecommended** \
|
|
6103
|
+
* **TierAfter** \
|
|
6104
|
+
* **DoNotTier**
|
|
6105
|
+
*/
|
|
6106
|
+
export declare type TieringMode = string;
|
|
6107
|
+
|
|
6108
|
+
/**
|
|
6109
|
+
* Tiering Policy for a target tier.
|
|
6110
|
+
* If the policy is not specified for a given target tier, service retains the existing configured tiering policy for that tier
|
|
6111
|
+
*/
|
|
6112
|
+
export declare interface TieringPolicy {
|
|
6113
|
+
/**
|
|
6114
|
+
* Tiering Mode to control automatic tiering of recovery points. Supported values are:
|
|
6115
|
+
* 1. TierRecommended: Tier all recovery points recommended to be tiered
|
|
6116
|
+
* 2. TierAfter: Tier all recovery points after a fixed period, as specified in duration + durationType below.
|
|
6117
|
+
* 3. DoNotTier: Do not tier any recovery points
|
|
6118
|
+
*/
|
|
6119
|
+
tieringMode?: TieringMode;
|
|
6120
|
+
/**
|
|
6121
|
+
* Number of days/weeks/months/years to retain backups in current tier before tiering.
|
|
6122
|
+
* Used only if TieringMode is set to TierAfter
|
|
6123
|
+
*/
|
|
6124
|
+
duration?: number;
|
|
6125
|
+
/**
|
|
6126
|
+
* Retention duration type: days/weeks/months/years
|
|
6127
|
+
* Used only if TieringMode is set to TierAfter
|
|
6128
|
+
*/
|
|
6129
|
+
durationType?: RetentionDurationType;
|
|
6130
|
+
}
|
|
6131
|
+
|
|
6060
6132
|
/** The token information details. */
|
|
6061
6133
|
export declare interface TokenInformation {
|
|
6062
6134
|
/** Token value. */
|