@azure/arm-recoveryservicesbackup 8.2.0 → 9.0.0
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 +14 -0
- package/dist/index.js +12 -96
- 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/samples-dev/backupEnginesGetSample.js +1 -1
- package/dist-esm/samples-dev/backupEnginesListSample.js +1 -1
- package/dist-esm/samples-dev/backupJobsListSample.js +3 -3
- package/dist-esm/samples-dev/backupOperationResultsGetSample.js +1 -1
- package/dist-esm/samples-dev/backupOperationStatusesGetSample.js +1 -1
- package/dist-esm/samples-dev/backupPoliciesListSample.js +3 -3
- package/dist-esm/samples-dev/backupProtectableItemsListSample.js +1 -1
- package/dist-esm/samples-dev/backupProtectedItemsListSample.js +1 -1
- package/dist-esm/samples-dev/backupProtectionContainersListSample.js +1 -1
- package/dist-esm/samples-dev/backupProtectionIntentListSample.js +1 -1
- package/dist-esm/samples-dev/backupResourceEncryptionConfigsGetSample.js +1 -1
- package/dist-esm/samples-dev/backupResourceEncryptionConfigsUpdateSample.js +1 -1
- package/dist-esm/samples-dev/backupResourceStorageConfigsNonCrrGetSample.js +1 -1
- package/dist-esm/samples-dev/backupResourceStorageConfigsNonCrrPatchSample.js +1 -1
- package/dist-esm/samples-dev/backupResourceStorageConfigsNonCrrUpdateSample.js +1 -1
- package/dist-esm/samples-dev/backupResourceVaultConfigsGetSample.js +1 -1
- package/dist-esm/samples-dev/backupResourceVaultConfigsPutSample.js +1 -1
- package/dist-esm/samples-dev/backupResourceVaultConfigsUpdateSample.js +1 -1
- package/dist-esm/samples-dev/backupStatusGetSample.js +1 -1
- package/dist-esm/samples-dev/backupUsageSummariesListSample.js +2 -2
- package/dist-esm/samples-dev/backupWorkloadItemsListSample.js +1 -1
- package/dist-esm/samples-dev/backupsTriggerSample.js +1 -1
- package/dist-esm/samples-dev/bmsPrepareDataMoveOperationResultGetSample.js +1 -1
- package/dist-esm/samples-dev/bmsPrepareDataMoveSample.js +1 -1
- package/dist-esm/samples-dev/bmsTriggerDataMoveSample.js +1 -1
- package/dist-esm/samples-dev/exportJobsOperationResultsGetSample.js +1 -1
- package/dist-esm/samples-dev/featureSupportValidateSample.js +1 -1
- package/dist-esm/samples-dev/getOperationStatusSample.js +1 -1
- package/dist-esm/samples-dev/itemLevelRecoveryConnectionsProvisionSample.js +1 -1
- package/dist-esm/samples-dev/itemLevelRecoveryConnectionsRevokeSample.js +1 -1
- package/dist-esm/samples-dev/jobCancellationsTriggerSample.js +1 -1
- package/dist-esm/samples-dev/jobDetailsGetSample.js +1 -1
- package/dist-esm/samples-dev/jobOperationResultsGetSample.js +1 -1
- package/dist-esm/samples-dev/jobsExportSample.js +1 -1
- package/dist-esm/samples-dev/moveRecoveryPointSample.js +1 -1
- package/dist-esm/samples-dev/operationValidateSample.js +2 -2
- package/dist-esm/samples-dev/operationsListSample.js +1 -1
- package/dist-esm/samples-dev/privateEndpointConnectionDeleteSample.js +1 -1
- package/dist-esm/samples-dev/privateEndpointConnectionGetSample.js +1 -1
- package/dist-esm/samples-dev/privateEndpointConnectionPutSample.js +1 -1
- package/dist-esm/samples-dev/privateEndpointGetOperationStatusSample.js +1 -1
- package/dist-esm/samples-dev/protectableContainersListSample.js +1 -1
- package/dist-esm/samples-dev/protectedItemOperationResultsGetSample.js +1 -1
- package/dist-esm/samples-dev/protectedItemOperationStatusesGetSample.js +1 -1
- package/dist-esm/samples-dev/protectedItemsCreateOrUpdateSample.js +2 -2
- package/dist-esm/samples-dev/protectedItemsDeleteSample.js +1 -1
- package/dist-esm/samples-dev/protectedItemsGetSample.js +2 -2
- package/dist-esm/samples-dev/protectionContainerOperationResultsGetSample.js +1 -1
- package/dist-esm/samples-dev/protectionContainerRefreshOperationResultsGetSample.js +1 -1
- package/dist-esm/samples-dev/protectionContainersGetSample.js +1 -1
- package/dist-esm/samples-dev/protectionContainersInquireSample.js +1 -1
- package/dist-esm/samples-dev/protectionContainersRefreshSample.js +1 -1
- package/dist-esm/samples-dev/protectionContainersRegisterSample.js +1 -1
- package/dist-esm/samples-dev/protectionContainersUnregisterSample.js +1 -1
- package/dist-esm/samples-dev/protectionIntentCreateOrUpdateSample.js +1 -1
- package/dist-esm/samples-dev/protectionIntentDeleteSample.js +1 -1
- package/dist-esm/samples-dev/protectionIntentGetSample.js +1 -1
- package/dist-esm/samples-dev/protectionIntentValidateSample.js +1 -1
- package/dist-esm/samples-dev/protectionPoliciesCreateOrUpdateSample.js +7 -7
- package/dist-esm/samples-dev/protectionPoliciesDeleteSample.js +1 -1
- package/dist-esm/samples-dev/protectionPoliciesGetSample.js +2 -2
- package/dist-esm/samples-dev/protectionPolicyOperationResultsGetSample.js +1 -1
- package/dist-esm/samples-dev/protectionPolicyOperationStatusesGetSample.js +1 -1
- package/dist-esm/samples-dev/recoveryPointsGetSample.js +1 -1
- package/dist-esm/samples-dev/recoveryPointsListSample.js +1 -1
- package/dist-esm/samples-dev/recoveryPointsRecommendedForMoveListSample.js +1 -1
- package/dist-esm/samples-dev/resourceGuardProxiesGetSample.js +1 -1
- package/dist-esm/samples-dev/resourceGuardProxyDeleteSample.js +1 -1
- package/dist-esm/samples-dev/resourceGuardProxyGetSample.js +1 -1
- package/dist-esm/samples-dev/resourceGuardProxyPutSample.js +1 -1
- package/dist-esm/samples-dev/resourceGuardProxyUnlockDeleteSample.js +1 -1
- package/dist-esm/samples-dev/restoresTriggerSample.js +6 -6
- package/dist-esm/samples-dev/securityPiNsGetSample.js +1 -1
- package/dist-esm/samples-dev/validateOperationResultsGetSample.js +1 -1
- package/dist-esm/samples-dev/validateOperationStatusesGetSample.js +1 -1
- package/dist-esm/samples-dev/validateOperationTriggerSample.js +1 -1
- package/dist-esm/src/models/index.d.ts +22 -91
- package/dist-esm/src/models/index.d.ts.map +1 -1
- package/dist-esm/src/models/index.js +9 -17
- package/dist-esm/src/models/index.js.map +1 -1
- package/dist-esm/src/models/mappers.d.ts +0 -1
- package/dist-esm/src/models/mappers.d.ts.map +1 -1
- package/dist-esm/src/models/mappers.js +0 -75
- package/dist-esm/src/models/mappers.js.map +1 -1
- package/dist-esm/src/models/parameters.js +1 -1
- package/dist-esm/src/recoveryServicesBackupClient.js +2 -2
- package/package.json +1 -1
- package/review/arm-recoveryservicesbackup.api.md +0 -34
- package/src/models/index.ts +24 -92
- package/src/models/mappers.ts +0 -77
- package/src/models/parameters.ts +1 -1
- package/src/recoveryServicesBackupClient.ts +2 -2
- package/types/arm-recoveryservicesbackup.d.ts +2 -74
|
@@ -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/
|
|
39
|
+
const packageDetails = `azsdk-js-arm-recoveryservicesbackup/9.0.0`;
|
|
40
40
|
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
41
41
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
42
42
|
: `${packageDetails}`;
|
|
@@ -67,7 +67,7 @@ export class RecoveryServicesBackupClient extends coreClient.ServiceClient {
|
|
|
67
67
|
this.subscriptionId = subscriptionId;
|
|
68
68
|
// Assigning values to Constant parameters
|
|
69
69
|
this.$host = options.$host || "https://management.azure.com";
|
|
70
|
-
this.apiVersion = options.apiVersion || "
|
|
70
|
+
this.apiVersion = options.apiVersion || "2022-03-01";
|
|
71
71
|
this.backupResourceStorageConfigsNonCRR = new BackupResourceStorageConfigsNonCRRImpl(this);
|
|
72
72
|
this.protectionIntentOperations = new ProtectionIntentOperationsImpl(this);
|
|
73
73
|
this.backupStatus = new BackupStatusImpl(this);
|
package/package.json
CHANGED
|
@@ -215,10 +215,7 @@ export type AzureIaaSVMProtectedItem = ProtectedItem & {
|
|
|
215
215
|
|
|
216
216
|
// @public
|
|
217
217
|
export interface AzureIaaSVMProtectedItemExtendedInfo {
|
|
218
|
-
newestRecoveryPointInArchive?: Date;
|
|
219
218
|
oldestRecoveryPoint?: Date;
|
|
220
|
-
oldestRecoveryPointInArchive?: Date;
|
|
221
|
-
oldestRecoveryPointInVault?: Date;
|
|
222
219
|
policyInconsistent?: boolean;
|
|
223
220
|
recoveryPointCount?: number;
|
|
224
221
|
}
|
|
@@ -232,9 +229,6 @@ export type AzureIaaSVMProtectionPolicy = ProtectionPolicy & {
|
|
|
232
229
|
instantRPDetails?: InstantRPAdditionalDetails;
|
|
233
230
|
schedulePolicy?: SchedulePolicyUnion;
|
|
234
231
|
retentionPolicy?: RetentionPolicyUnion;
|
|
235
|
-
tieringPolicy?: {
|
|
236
|
-
[propertyName: string]: TieringPolicy;
|
|
237
|
-
};
|
|
238
232
|
instantRpRetentionRangeInDays?: number;
|
|
239
233
|
timeZone?: string;
|
|
240
234
|
policyType?: IaasvmPolicyType;
|
|
@@ -407,10 +401,7 @@ export type AzureVmWorkloadProtectedItem = ProtectedItem & {
|
|
|
407
401
|
|
|
408
402
|
// @public
|
|
409
403
|
export interface AzureVmWorkloadProtectedItemExtendedInfo {
|
|
410
|
-
newestRecoveryPointInArchive?: Date;
|
|
411
404
|
oldestRecoveryPoint?: Date;
|
|
412
|
-
oldestRecoveryPointInArchive?: Date;
|
|
413
|
-
oldestRecoveryPointInVault?: Date;
|
|
414
405
|
policyState?: string;
|
|
415
406
|
recoveryModel?: string;
|
|
416
407
|
recoveryPointCount?: number;
|
|
@@ -2694,18 +2685,6 @@ export enum KnownSupportStatus {
|
|
|
2694
2685
|
Supported = "Supported"
|
|
2695
2686
|
}
|
|
2696
2687
|
|
|
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
|
-
|
|
2709
2688
|
// @public
|
|
2710
2689
|
export enum KnownType {
|
|
2711
2690
|
// (undocumented)
|
|
@@ -4104,9 +4083,6 @@ export interface SubProtectionPolicy {
|
|
|
4104
4083
|
policyType?: PolicyType;
|
|
4105
4084
|
retentionPolicy?: RetentionPolicyUnion;
|
|
4106
4085
|
schedulePolicy?: SchedulePolicyUnion;
|
|
4107
|
-
tieringPolicy?: {
|
|
4108
|
-
[propertyName: string]: TieringPolicy;
|
|
4109
|
-
};
|
|
4110
4086
|
}
|
|
4111
4087
|
|
|
4112
4088
|
// @public
|
|
@@ -4126,16 +4102,6 @@ export interface TargetRestoreInfo {
|
|
|
4126
4102
|
targetDirectoryForFileRestore?: string;
|
|
4127
4103
|
}
|
|
4128
4104
|
|
|
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
|
-
|
|
4139
4105
|
// @public
|
|
4140
4106
|
export interface TokenInformation {
|
|
4141
4107
|
expiryTimeInUtcTicks?: number;
|
package/src/models/index.ts
CHANGED
|
@@ -1122,12 +1122,6 @@ 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 };
|
|
1131
1125
|
}
|
|
1132
1126
|
|
|
1133
1127
|
/** Base class for backup schedule. */
|
|
@@ -1146,40 +1140,10 @@ export interface RetentionPolicy {
|
|
|
1146
1140
|
retentionPolicyType: "LongTermRetentionPolicy" | "SimpleRetentionPolicy";
|
|
1147
1141
|
}
|
|
1148
1142
|
|
|
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
|
-
|
|
1173
1143
|
/** Additional information on Azure IaaS VM specific backup item. */
|
|
1174
1144
|
export interface AzureIaaSVMProtectedItemExtendedInfo {
|
|
1175
|
-
/** The oldest backup copy available for this backup item
|
|
1145
|
+
/** The oldest backup copy available for this backup item. */
|
|
1176
1146
|
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;
|
|
1183
1147
|
/** Number of backup copies available for this backup item. */
|
|
1184
1148
|
recoveryPointCount?: number;
|
|
1185
1149
|
/** Specifies if backup policy associated with the backup item is inconsistent. */
|
|
@@ -1309,14 +1273,8 @@ export interface AzureStorageJobTaskDetails {
|
|
|
1309
1273
|
|
|
1310
1274
|
/** Additional information on Azure Workload for SQL specific backup item. */
|
|
1311
1275
|
export interface AzureVmWorkloadProtectedItemExtendedInfo {
|
|
1312
|
-
/** The oldest backup copy available for this backup item
|
|
1276
|
+
/** The oldest backup copy available for this backup item. */
|
|
1313
1277
|
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;
|
|
1320
1278
|
/** Number of backup copies available for this backup item. */
|
|
1321
1279
|
recoveryPointCount?: number;
|
|
1322
1280
|
/** Indicates consistency of policy object and policy applied to this backup item. */
|
|
@@ -2720,12 +2678,6 @@ export type AzureIaaSVMProtectionPolicy = ProtectionPolicy & {
|
|
|
2720
2678
|
schedulePolicy?: SchedulePolicyUnion;
|
|
2721
2679
|
/** Retention policy with the details on backup copy retention ranges. */
|
|
2722
2680
|
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 };
|
|
2729
2681
|
/** Instant RP retention policy range in days */
|
|
2730
2682
|
instantRpRetentionRangeInDays?: number;
|
|
2731
2683
|
/** TimeZone optional input as string. For example: TimeZone = "Pacific Standard Time". */
|
|
@@ -4289,48 +4241,6 @@ export enum KnownPolicyType {
|
|
|
4289
4241
|
*/
|
|
4290
4242
|
export type PolicyType = string;
|
|
4291
4243
|
|
|
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
|
-
|
|
4334
4244
|
/** Known values of {@link HealthStatus} that the service accepts. */
|
|
4335
4245
|
export enum KnownHealthStatus {
|
|
4336
4246
|
Passed = "Passed",
|
|
@@ -4537,6 +4447,28 @@ export enum KnownRestorePointQueryType {
|
|
|
4537
4447
|
*/
|
|
4538
4448
|
export type RestorePointQueryType = string;
|
|
4539
4449
|
|
|
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
|
+
|
|
4540
4472
|
/** Known values of {@link JobStatus} that the service accepts. */
|
|
4541
4473
|
export enum KnownJobStatus {
|
|
4542
4474
|
Invalid = "Invalid",
|
package/src/models/mappers.ts
CHANGED
|
@@ -2413,13 +2413,6 @@ 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
|
-
}
|
|
2423
2416
|
}
|
|
2424
2417
|
}
|
|
2425
2418
|
}
|
|
@@ -2467,33 +2460,6 @@ export const RetentionPolicy: coreClient.CompositeMapper = {
|
|
|
2467
2460
|
}
|
|
2468
2461
|
};
|
|
2469
2462
|
|
|
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
|
-
|
|
2497
2463
|
export const AzureIaaSVMProtectedItemExtendedInfo: coreClient.CompositeMapper = {
|
|
2498
2464
|
type: {
|
|
2499
2465
|
name: "Composite",
|
|
@@ -2505,24 +2471,6 @@ export const AzureIaaSVMProtectedItemExtendedInfo: coreClient.CompositeMapper =
|
|
|
2505
2471
|
name: "DateTime"
|
|
2506
2472
|
}
|
|
2507
2473
|
},
|
|
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
|
-
},
|
|
2526
2474
|
recoveryPointCount: {
|
|
2527
2475
|
serializedName: "recoveryPointCount",
|
|
2528
2476
|
type: {
|
|
@@ -2885,24 +2833,6 @@ export const AzureVmWorkloadProtectedItemExtendedInfo: coreClient.CompositeMappe
|
|
|
2885
2833
|
name: "DateTime"
|
|
2886
2834
|
}
|
|
2887
2835
|
},
|
|
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
|
-
},
|
|
2906
2836
|
recoveryPointCount: {
|
|
2907
2837
|
serializedName: "recoveryPointCount",
|
|
2908
2838
|
type: {
|
|
@@ -6915,13 +6845,6 @@ export const AzureIaaSVMProtectionPolicy: coreClient.CompositeMapper = {
|
|
|
6915
6845
|
className: "RetentionPolicy"
|
|
6916
6846
|
}
|
|
6917
6847
|
},
|
|
6918
|
-
tieringPolicy: {
|
|
6919
|
-
serializedName: "tieringPolicy",
|
|
6920
|
-
type: {
|
|
6921
|
-
name: "Dictionary",
|
|
6922
|
-
value: { type: { name: "Composite", className: "TieringPolicy" } }
|
|
6923
|
-
}
|
|
6924
|
-
},
|
|
6925
6848
|
instantRpRetentionRangeInDays: {
|
|
6926
6849
|
serializedName: "instantRpRetentionRangeInDays",
|
|
6927
6850
|
type: {
|
package/src/models/parameters.ts
CHANGED
|
@@ -62,7 +62,7 @@ export const $host: OperationURLParameter = {
|
|
|
62
62
|
export const apiVersion: OperationQueryParameter = {
|
|
63
63
|
parameterPath: "apiVersion",
|
|
64
64
|
mapper: {
|
|
65
|
-
defaultValue: "
|
|
65
|
+
defaultValue: "2022-03-01",
|
|
66
66
|
isConstant: true,
|
|
67
67
|
serializedName: "api-version",
|
|
68
68
|
type: {
|
|
@@ -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/
|
|
160
|
+
const packageDetails = `azsdk-js-arm-recoveryservicesbackup/9.0.0`;
|
|
161
161
|
const userAgentPrefix =
|
|
162
162
|
options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
163
163
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
@@ -204,7 +204,7 @@ export class RecoveryServicesBackupClient extends coreClient.ServiceClient {
|
|
|
204
204
|
|
|
205
205
|
// Assigning values to Constant parameters
|
|
206
206
|
this.$host = options.$host || "https://management.azure.com";
|
|
207
|
-
this.apiVersion = options.apiVersion || "
|
|
207
|
+
this.apiVersion = options.apiVersion || "2022-03-01";
|
|
208
208
|
this.backupResourceStorageConfigsNonCRR = new BackupResourceStorageConfigsNonCRRImpl(
|
|
209
209
|
this
|
|
210
210
|
);
|
|
@@ -339,14 +339,8 @@ 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. */
|
|
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;
|
|
350
344
|
/** Number of backup copies available for this backup item. */
|
|
351
345
|
recoveryPointCount?: number;
|
|
352
346
|
/** Specifies if backup policy associated with the backup item is inconsistent. */
|
|
@@ -364,14 +358,6 @@ export declare type AzureIaaSVMProtectionPolicy = ProtectionPolicy & {
|
|
|
364
358
|
schedulePolicy?: SchedulePolicyUnion;
|
|
365
359
|
/** Retention policy with the details on backup copy retention ranges. */
|
|
366
360
|
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
|
-
};
|
|
375
361
|
/** Instant RP retention policy range in days */
|
|
376
362
|
instantRpRetentionRangeInDays?: number;
|
|
377
363
|
/** TimeZone optional input as string. For example: TimeZone = "Pacific Standard Time". */
|
|
@@ -618,14 +604,8 @@ export declare type AzureVmWorkloadProtectedItem = ProtectedItem & {
|
|
|
618
604
|
|
|
619
605
|
/** Additional information on Azure Workload for SQL specific backup item. */
|
|
620
606
|
export declare interface AzureVmWorkloadProtectedItemExtendedInfo {
|
|
621
|
-
/** The oldest backup copy available for this backup item
|
|
607
|
+
/** The oldest backup copy available for this backup item. */
|
|
622
608
|
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;
|
|
629
609
|
/** Number of backup copies available for this backup item. */
|
|
630
610
|
recoveryPointCount?: number;
|
|
631
611
|
/** Indicates consistency of policy object and policy applied to this backup item. */
|
|
@@ -3649,14 +3629,6 @@ export declare enum KnownSupportStatus {
|
|
|
3649
3629
|
NotSupported = "NotSupported"
|
|
3650
3630
|
}
|
|
3651
3631
|
|
|
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
|
-
|
|
3660
3632
|
/** Known values of {@link Type} that the service accepts. */
|
|
3661
3633
|
export declare enum KnownType {
|
|
3662
3634
|
Invalid = "Invalid",
|
|
@@ -6050,14 +6022,6 @@ export declare interface SubProtectionPolicy {
|
|
|
6050
6022
|
schedulePolicy?: SchedulePolicyUnion;
|
|
6051
6023
|
/** Retention policy with the details on backup copy retention ranges. */
|
|
6052
6024
|
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
|
-
};
|
|
6061
6025
|
}
|
|
6062
6026
|
|
|
6063
6027
|
/**
|
|
@@ -6093,42 +6057,6 @@ export declare interface TargetRestoreInfo {
|
|
|
6093
6057
|
targetDirectoryForFileRestore?: string;
|
|
6094
6058
|
}
|
|
6095
6059
|
|
|
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
|
-
|
|
6132
6060
|
/** The token information details. */
|
|
6133
6061
|
export declare interface TokenInformation {
|
|
6134
6062
|
/** Token value. */
|