@azure/arm-recoveryservicesbackup 10.0.0-alpha.20221214.1 → 10.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 +44 -1
- package/LICENSE +1 -1
- package/dist/index.js +615 -220
- 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 +12 -4
- package/dist-esm/samples-dev/backupEnginesGetSample.js.map +1 -1
- package/dist-esm/samples-dev/backupEnginesListSample.js +12 -4
- package/dist-esm/samples-dev/backupEnginesListSample.js.map +1 -1
- package/dist-esm/samples-dev/backupJobsListSample.js +22 -12
- package/dist-esm/samples-dev/backupJobsListSample.js.map +1 -1
- package/dist-esm/samples-dev/backupOperationResultsGetSample.js +13 -4
- package/dist-esm/samples-dev/backupOperationResultsGetSample.js.map +1 -1
- package/dist-esm/samples-dev/backupOperationStatusesGetSample.js +13 -4
- package/dist-esm/samples-dev/backupOperationStatusesGetSample.js.map +1 -1
- package/dist-esm/samples-dev/backupPoliciesListSample.js +22 -12
- package/dist-esm/samples-dev/backupPoliciesListSample.js.map +1 -1
- package/dist-esm/samples-dev/backupProtectableItemsListSample.js +12 -4
- package/dist-esm/samples-dev/backupProtectableItemsListSample.js.map +1 -1
- package/dist-esm/samples-dev/backupProtectedItemsListSample.js +12 -4
- package/dist-esm/samples-dev/backupProtectedItemsListSample.js.map +1 -1
- package/dist-esm/samples-dev/backupProtectionContainersListSample.js +12 -4
- package/dist-esm/samples-dev/backupProtectionContainersListSample.js.map +1 -1
- package/dist-esm/samples-dev/backupProtectionIntentListSample.js +12 -4
- package/dist-esm/samples-dev/backupProtectionIntentListSample.js.map +1 -1
- package/dist-esm/samples-dev/backupResourceEncryptionConfigsGetSample.js +12 -4
- package/dist-esm/samples-dev/backupResourceEncryptionConfigsGetSample.js.map +1 -1
- package/dist-esm/samples-dev/backupResourceEncryptionConfigsUpdateSample.js +12 -4
- package/dist-esm/samples-dev/backupResourceEncryptionConfigsUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/backupResourceStorageConfigsNonCrrGetSample.js +13 -4
- package/dist-esm/samples-dev/backupResourceStorageConfigsNonCrrGetSample.js.map +1 -1
- package/dist-esm/samples-dev/backupResourceStorageConfigsNonCrrPatchSample.js +13 -4
- package/dist-esm/samples-dev/backupResourceStorageConfigsNonCrrPatchSample.js.map +1 -1
- package/dist-esm/samples-dev/backupResourceStorageConfigsNonCrrUpdateSample.js +13 -4
- package/dist-esm/samples-dev/backupResourceStorageConfigsNonCrrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/backupResourceVaultConfigsGetSample.js +12 -4
- package/dist-esm/samples-dev/backupResourceVaultConfigsGetSample.js.map +1 -1
- package/dist-esm/samples-dev/backupResourceVaultConfigsPutSample.js +12 -4
- package/dist-esm/samples-dev/backupResourceVaultConfigsPutSample.js.map +1 -1
- package/dist-esm/samples-dev/backupResourceVaultConfigsUpdateSample.js +12 -4
- package/dist-esm/samples-dev/backupResourceVaultConfigsUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/backupStatusGetSample.js +11 -3
- package/dist-esm/samples-dev/backupStatusGetSample.js.map +1 -1
- package/dist-esm/samples-dev/backupUsageSummariesListSample.js +17 -8
- package/dist-esm/samples-dev/backupUsageSummariesListSample.js.map +1 -1
- package/dist-esm/samples-dev/backupWorkloadItemsListSample.js +12 -4
- package/dist-esm/samples-dev/backupWorkloadItemsListSample.js.map +1 -1
- package/dist-esm/samples-dev/backupsTriggerSample.js +12 -4
- package/dist-esm/samples-dev/backupsTriggerSample.js.map +1 -1
- package/dist-esm/samples-dev/bmsPrepareDataMoveOperationResultGetSample.js +12 -4
- package/dist-esm/samples-dev/bmsPrepareDataMoveOperationResultGetSample.js.map +1 -1
- package/dist-esm/samples-dev/bmsPrepareDataMoveSample.js +12 -4
- package/dist-esm/samples-dev/bmsPrepareDataMoveSample.js.map +1 -1
- package/dist-esm/samples-dev/bmsTriggerDataMoveSample.js +12 -4
- package/dist-esm/samples-dev/bmsTriggerDataMoveSample.js.map +1 -1
- package/dist-esm/samples-dev/deletedProtectionContainersListSample.d.ts +2 -0
- package/dist-esm/samples-dev/deletedProtectionContainersListSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/deletedProtectionContainersListSample.js +55 -0
- package/dist-esm/samples-dev/deletedProtectionContainersListSample.js.map +1 -0
- package/dist-esm/samples-dev/exportJobsOperationResultsGetSample.js +12 -4
- package/dist-esm/samples-dev/exportJobsOperationResultsGetSample.js.map +1 -1
- package/dist-esm/samples-dev/featureSupportValidateSample.js +11 -3
- package/dist-esm/samples-dev/featureSupportValidateSample.js.map +1 -1
- package/dist-esm/samples-dev/getOperationStatusSample.js +12 -4
- package/dist-esm/samples-dev/getOperationStatusSample.js.map +1 -1
- package/dist-esm/samples-dev/itemLevelRecoveryConnectionsProvisionSample.js +13 -4
- package/dist-esm/samples-dev/itemLevelRecoveryConnectionsProvisionSample.js.map +1 -1
- package/dist-esm/samples-dev/itemLevelRecoveryConnectionsRevokeSample.js +13 -4
- package/dist-esm/samples-dev/itemLevelRecoveryConnectionsRevokeSample.js.map +1 -1
- package/dist-esm/samples-dev/jobCancellationsTriggerSample.js +12 -4
- package/dist-esm/samples-dev/jobCancellationsTriggerSample.js.map +1 -1
- package/dist-esm/samples-dev/jobDetailsGetSample.js +12 -4
- package/dist-esm/samples-dev/jobDetailsGetSample.js.map +1 -1
- package/dist-esm/samples-dev/jobOperationResultsGetSample.js +12 -4
- package/dist-esm/samples-dev/jobOperationResultsGetSample.js.map +1 -1
- package/dist-esm/samples-dev/jobsExportSample.js +12 -4
- package/dist-esm/samples-dev/jobsExportSample.js.map +1 -1
- package/dist-esm/samples-dev/moveRecoveryPointSample.js +12 -4
- package/dist-esm/samples-dev/moveRecoveryPointSample.js.map +1 -1
- package/dist-esm/samples-dev/operationValidateSample.js +17 -8
- package/dist-esm/samples-dev/operationValidateSample.js.map +1 -1
- package/dist-esm/samples-dev/operationsListSample.js +11 -3
- package/dist-esm/samples-dev/operationsListSample.js.map +1 -1
- package/dist-esm/samples-dev/privateEndpointConnectionDeleteSample.js +12 -4
- package/dist-esm/samples-dev/privateEndpointConnectionDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/privateEndpointConnectionGetSample.js +12 -4
- package/dist-esm/samples-dev/privateEndpointConnectionGetSample.js.map +1 -1
- package/dist-esm/samples-dev/privateEndpointConnectionPutSample.js +12 -4
- package/dist-esm/samples-dev/privateEndpointConnectionPutSample.js.map +1 -1
- package/dist-esm/samples-dev/privateEndpointGetOperationStatusSample.js +12 -4
- package/dist-esm/samples-dev/privateEndpointGetOperationStatusSample.js.map +1 -1
- package/dist-esm/samples-dev/protectableContainersListSample.js +12 -4
- package/dist-esm/samples-dev/protectableContainersListSample.js.map +1 -1
- package/dist-esm/samples-dev/protectedItemOperationResultsGetSample.js +12 -4
- package/dist-esm/samples-dev/protectedItemOperationResultsGetSample.js.map +1 -1
- package/dist-esm/samples-dev/protectedItemOperationStatusesGetSample.js +12 -4
- package/dist-esm/samples-dev/protectedItemOperationStatusesGetSample.js.map +1 -1
- package/dist-esm/samples-dev/protectedItemsCreateOrUpdateSample.js +17 -8
- package/dist-esm/samples-dev/protectedItemsCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/protectedItemsDeleteSample.js +13 -4
- package/dist-esm/samples-dev/protectedItemsDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/protectedItemsGetSample.js +19 -8
- package/dist-esm/samples-dev/protectedItemsGetSample.js.map +1 -1
- package/dist-esm/samples-dev/protectionContainerOperationResultsGetSample.js +12 -4
- package/dist-esm/samples-dev/protectionContainerOperationResultsGetSample.js.map +1 -1
- package/dist-esm/samples-dev/protectionContainerRefreshOperationResultsGetSample.js +12 -4
- package/dist-esm/samples-dev/protectionContainerRefreshOperationResultsGetSample.js.map +1 -1
- package/dist-esm/samples-dev/protectionContainersGetSample.js +12 -4
- package/dist-esm/samples-dev/protectionContainersGetSample.js.map +1 -1
- package/dist-esm/samples-dev/protectionContainersInquireSample.js +12 -4
- package/dist-esm/samples-dev/protectionContainersInquireSample.js.map +1 -1
- package/dist-esm/samples-dev/protectionContainersRefreshSample.js +12 -4
- package/dist-esm/samples-dev/protectionContainersRefreshSample.js.map +1 -1
- package/dist-esm/samples-dev/protectionContainersRegisterSample.js +12 -4
- package/dist-esm/samples-dev/protectionContainersRegisterSample.js.map +1 -1
- package/dist-esm/samples-dev/protectionContainersUnregisterSample.js +12 -4
- package/dist-esm/samples-dev/protectionContainersUnregisterSample.js.map +1 -1
- package/dist-esm/samples-dev/protectionIntentCreateOrUpdateSample.js +12 -4
- package/dist-esm/samples-dev/protectionIntentCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/protectionIntentDeleteSample.js +12 -4
- package/dist-esm/samples-dev/protectionIntentDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/protectionIntentGetSample.js +12 -4
- package/dist-esm/samples-dev/protectionIntentGetSample.js.map +1 -1
- package/dist-esm/samples-dev/protectionIntentValidateSample.js +11 -3
- package/dist-esm/samples-dev/protectionIntentValidateSample.js.map +1 -1
- package/dist-esm/samples-dev/protectionPoliciesCreateOrUpdateSample.js +42 -28
- package/dist-esm/samples-dev/protectionPoliciesCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/protectionPoliciesDeleteSample.js +12 -4
- package/dist-esm/samples-dev/protectionPoliciesDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/protectionPoliciesGetSample.js +17 -8
- package/dist-esm/samples-dev/protectionPoliciesGetSample.js.map +1 -1
- package/dist-esm/samples-dev/protectionPolicyOperationResultsGetSample.js +12 -4
- package/dist-esm/samples-dev/protectionPolicyOperationResultsGetSample.js.map +1 -1
- package/dist-esm/samples-dev/protectionPolicyOperationStatusesGetSample.js +12 -4
- package/dist-esm/samples-dev/protectionPolicyOperationStatusesGetSample.js.map +1 -1
- package/dist-esm/samples-dev/recoveryPointsGetSample.js +12 -4
- package/dist-esm/samples-dev/recoveryPointsGetSample.js.map +1 -1
- package/dist-esm/samples-dev/recoveryPointsListSample.js +12 -4
- package/dist-esm/samples-dev/recoveryPointsListSample.js.map +1 -1
- package/dist-esm/samples-dev/recoveryPointsRecommendedForMoveListSample.js +12 -4
- package/dist-esm/samples-dev/recoveryPointsRecommendedForMoveListSample.js.map +1 -1
- package/dist-esm/samples-dev/resourceGuardProxiesGetSample.js +13 -4
- package/dist-esm/samples-dev/resourceGuardProxiesGetSample.js.map +1 -1
- package/dist-esm/samples-dev/resourceGuardProxyDeleteSample.js +13 -4
- package/dist-esm/samples-dev/resourceGuardProxyDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/resourceGuardProxyGetSample.js +13 -4
- package/dist-esm/samples-dev/resourceGuardProxyGetSample.js.map +1 -1
- package/dist-esm/samples-dev/resourceGuardProxyPutSample.js +13 -6
- package/dist-esm/samples-dev/resourceGuardProxyPutSample.js.map +1 -1
- package/dist-esm/samples-dev/resourceGuardProxyUnlockDeleteSample.js +13 -4
- package/dist-esm/samples-dev/resourceGuardProxyUnlockDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/restoresTriggerSample.js +37 -24
- package/dist-esm/samples-dev/restoresTriggerSample.js.map +1 -1
- package/dist-esm/samples-dev/securityPiNsGetSample.js +12 -4
- package/dist-esm/samples-dev/securityPiNsGetSample.js.map +1 -1
- package/dist-esm/samples-dev/validateOperationResultsGetSample.js +12 -4
- package/dist-esm/samples-dev/validateOperationResultsGetSample.js.map +1 -1
- package/dist-esm/samples-dev/validateOperationStatusesGetSample.js +12 -4
- package/dist-esm/samples-dev/validateOperationStatusesGetSample.js.map +1 -1
- package/dist-esm/samples-dev/validateOperationTriggerSample.js +12 -4
- package/dist-esm/samples-dev/validateOperationTriggerSample.js.map +1 -1
- package/dist-esm/src/models/index.d.ts +317 -136
- package/dist-esm/src/models/index.d.ts.map +1 -1
- package/dist-esm/src/models/index.js +90 -54
- package/dist-esm/src/models/index.js.map +1 -1
- package/dist-esm/src/models/mappers.d.ts +8 -0
- package/dist-esm/src/models/mappers.d.ts.map +1 -1
- package/dist-esm/src/models/mappers.js +209 -2
- package/dist-esm/src/models/mappers.js.map +1 -1
- package/dist-esm/src/models/parameters.js +1 -1
- package/dist-esm/src/operations/deletedProtectionContainers.d.ts +41 -0
- package/dist-esm/src/operations/deletedProtectionContainers.d.ts.map +1 -0
- package/dist-esm/src/operations/deletedProtectionContainers.js +151 -0
- package/dist-esm/src/operations/deletedProtectionContainers.js.map +1 -0
- package/dist-esm/src/operations/index.d.ts +1 -0
- package/dist-esm/src/operations/index.d.ts.map +1 -1
- package/dist-esm/src/operations/index.js +1 -0
- package/dist-esm/src/operations/index.js.map +1 -1
- package/dist-esm/src/operationsInterfaces/deletedProtectionContainers.d.ts +14 -0
- package/dist-esm/src/operationsInterfaces/deletedProtectionContainers.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/deletedProtectionContainers.js +9 -0
- package/dist-esm/src/operationsInterfaces/deletedProtectionContainers.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts +1 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/index.js +1 -0
- package/dist-esm/src/operationsInterfaces/index.js.map +1 -1
- package/dist-esm/src/recoveryServicesBackupClient.d.ts +2 -1
- package/dist-esm/src/recoveryServicesBackupClient.d.ts.map +1 -1
- package/dist-esm/src/recoveryServicesBackupClient.js +3 -2
- package/dist-esm/src/recoveryServicesBackupClient.js.map +1 -1
- package/package.json +6 -5
- package/review/arm-recoveryservicesbackup.api.md +116 -22
- package/src/models/index.ts +353 -134
- package/src/models/mappers.ts +228 -2
- package/src/models/parameters.ts +1 -1
- package/src/operations/deletedProtectionContainers.ts +198 -0
- package/src/operations/index.ts +1 -0
- package/src/operationsInterfaces/deletedProtectionContainers.ts +30 -0
- package/src/operationsInterfaces/index.ts +1 -0
- package/src/recoveryServicesBackupClient.ts +7 -1
- package/types/arm-recoveryservicesbackup.d.ts +262 -56
- package/types/tsdoc-metadata.json +1 -1
package/src/models/mappers.ts
CHANGED
|
@@ -1189,12 +1189,14 @@ export const ProtectedItem: coreClient.CompositeMapper = {
|
|
|
1189
1189
|
},
|
|
1190
1190
|
backupManagementType: {
|
|
1191
1191
|
serializedName: "backupManagementType",
|
|
1192
|
+
readOnly: true,
|
|
1192
1193
|
type: {
|
|
1193
1194
|
name: "String"
|
|
1194
1195
|
}
|
|
1195
1196
|
},
|
|
1196
1197
|
workloadType: {
|
|
1197
1198
|
serializedName: "workloadType",
|
|
1199
|
+
readOnly: true,
|
|
1198
1200
|
type: {
|
|
1199
1201
|
name: "String"
|
|
1200
1202
|
}
|
|
@@ -1287,6 +1289,12 @@ export const ProtectedItem: coreClient.CompositeMapper = {
|
|
|
1287
1289
|
type: {
|
|
1288
1290
|
name: "String"
|
|
1289
1291
|
}
|
|
1292
|
+
},
|
|
1293
|
+
softDeleteRetentionPeriod: {
|
|
1294
|
+
serializedName: "softDeleteRetentionPeriod",
|
|
1295
|
+
type: {
|
|
1296
|
+
name: "Number"
|
|
1297
|
+
}
|
|
1290
1298
|
}
|
|
1291
1299
|
}
|
|
1292
1300
|
}
|
|
@@ -1799,7 +1807,27 @@ export const ProtectableContainer: coreClient.CompositeMapper = {
|
|
|
1799
1807
|
serializedName: "protectableContainerType",
|
|
1800
1808
|
required: true,
|
|
1801
1809
|
type: {
|
|
1802
|
-
name: "
|
|
1810
|
+
name: "Enum",
|
|
1811
|
+
allowedValues: [
|
|
1812
|
+
"Invalid",
|
|
1813
|
+
"Unknown",
|
|
1814
|
+
"IaasVMContainer",
|
|
1815
|
+
"IaasVMServiceContainer",
|
|
1816
|
+
"DPMContainer",
|
|
1817
|
+
"AzureBackupServerContainer",
|
|
1818
|
+
"MABContainer",
|
|
1819
|
+
"Cluster",
|
|
1820
|
+
"AzureSqlContainer",
|
|
1821
|
+
"Windows",
|
|
1822
|
+
"VCenter",
|
|
1823
|
+
"VMAppContainer",
|
|
1824
|
+
"SQLAGWorkLoadContainer",
|
|
1825
|
+
"StorageContainer",
|
|
1826
|
+
"GenericContainer",
|
|
1827
|
+
"Microsoft.ClassicCompute/virtualMachines",
|
|
1828
|
+
"Microsoft.Compute/virtualMachines",
|
|
1829
|
+
"AzureWorkloadContainer"
|
|
1830
|
+
]
|
|
1803
1831
|
}
|
|
1804
1832
|
},
|
|
1805
1833
|
healthStatus: {
|
|
@@ -1856,7 +1884,27 @@ export const ProtectionContainer: coreClient.CompositeMapper = {
|
|
|
1856
1884
|
serializedName: "containerType",
|
|
1857
1885
|
required: true,
|
|
1858
1886
|
type: {
|
|
1859
|
-
name: "
|
|
1887
|
+
name: "Enum",
|
|
1888
|
+
allowedValues: [
|
|
1889
|
+
"Invalid",
|
|
1890
|
+
"Unknown",
|
|
1891
|
+
"IaasVMContainer",
|
|
1892
|
+
"IaasVMServiceContainer",
|
|
1893
|
+
"DPMContainer",
|
|
1894
|
+
"AzureBackupServerContainer",
|
|
1895
|
+
"MABContainer",
|
|
1896
|
+
"Cluster",
|
|
1897
|
+
"AzureSqlContainer",
|
|
1898
|
+
"Windows",
|
|
1899
|
+
"VCenter",
|
|
1900
|
+
"VMAppContainer",
|
|
1901
|
+
"SQLAGWorkLoadContainer",
|
|
1902
|
+
"StorageContainer",
|
|
1903
|
+
"GenericContainer",
|
|
1904
|
+
"Microsoft.ClassicCompute/virtualMachines",
|
|
1905
|
+
"Microsoft.Compute/virtualMachines",
|
|
1906
|
+
"AzureWorkloadContainer"
|
|
1907
|
+
]
|
|
1860
1908
|
}
|
|
1861
1909
|
},
|
|
1862
1910
|
protectableObjectType: {
|
|
@@ -2314,6 +2362,27 @@ export const AzureFileshareProtectedItemExtendedInfo: coreClient.CompositeMapper
|
|
|
2314
2362
|
}
|
|
2315
2363
|
};
|
|
2316
2364
|
|
|
2365
|
+
export const RecoveryPointProperties: coreClient.CompositeMapper = {
|
|
2366
|
+
type: {
|
|
2367
|
+
name: "Composite",
|
|
2368
|
+
className: "RecoveryPointProperties",
|
|
2369
|
+
modelProperties: {
|
|
2370
|
+
expiryTime: {
|
|
2371
|
+
serializedName: "expiryTime",
|
|
2372
|
+
type: {
|
|
2373
|
+
name: "String"
|
|
2374
|
+
}
|
|
2375
|
+
},
|
|
2376
|
+
ruleName: {
|
|
2377
|
+
serializedName: "ruleName",
|
|
2378
|
+
type: {
|
|
2379
|
+
name: "String"
|
|
2380
|
+
}
|
|
2381
|
+
}
|
|
2382
|
+
}
|
|
2383
|
+
}
|
|
2384
|
+
};
|
|
2385
|
+
|
|
2317
2386
|
export const RestoreFileSpecs: coreClient.CompositeMapper = {
|
|
2318
2387
|
type: {
|
|
2319
2388
|
name: "Composite",
|
|
@@ -2413,6 +2482,13 @@ export const SubProtectionPolicy: coreClient.CompositeMapper = {
|
|
|
2413
2482
|
name: "Composite",
|
|
2414
2483
|
className: "RetentionPolicy"
|
|
2415
2484
|
}
|
|
2485
|
+
},
|
|
2486
|
+
tieringPolicy: {
|
|
2487
|
+
serializedName: "tieringPolicy",
|
|
2488
|
+
type: {
|
|
2489
|
+
name: "Dictionary",
|
|
2490
|
+
value: { type: { name: "Composite", className: "TieringPolicy" } }
|
|
2491
|
+
}
|
|
2416
2492
|
}
|
|
2417
2493
|
}
|
|
2418
2494
|
}
|
|
@@ -2460,6 +2536,33 @@ export const RetentionPolicy: coreClient.CompositeMapper = {
|
|
|
2460
2536
|
}
|
|
2461
2537
|
};
|
|
2462
2538
|
|
|
2539
|
+
export const TieringPolicy: coreClient.CompositeMapper = {
|
|
2540
|
+
type: {
|
|
2541
|
+
name: "Composite",
|
|
2542
|
+
className: "TieringPolicy",
|
|
2543
|
+
modelProperties: {
|
|
2544
|
+
tieringMode: {
|
|
2545
|
+
serializedName: "tieringMode",
|
|
2546
|
+
type: {
|
|
2547
|
+
name: "String"
|
|
2548
|
+
}
|
|
2549
|
+
},
|
|
2550
|
+
duration: {
|
|
2551
|
+
serializedName: "duration",
|
|
2552
|
+
type: {
|
|
2553
|
+
name: "Number"
|
|
2554
|
+
}
|
|
2555
|
+
},
|
|
2556
|
+
durationType: {
|
|
2557
|
+
serializedName: "durationType",
|
|
2558
|
+
type: {
|
|
2559
|
+
name: "String"
|
|
2560
|
+
}
|
|
2561
|
+
}
|
|
2562
|
+
}
|
|
2563
|
+
}
|
|
2564
|
+
};
|
|
2565
|
+
|
|
2463
2566
|
export const AzureIaaSVMProtectedItemExtendedInfo: coreClient.CompositeMapper = {
|
|
2464
2567
|
type: {
|
|
2465
2568
|
name: "Composite",
|
|
@@ -2471,6 +2574,24 @@ export const AzureIaaSVMProtectedItemExtendedInfo: coreClient.CompositeMapper =
|
|
|
2471
2574
|
name: "DateTime"
|
|
2472
2575
|
}
|
|
2473
2576
|
},
|
|
2577
|
+
oldestRecoveryPointInVault: {
|
|
2578
|
+
serializedName: "oldestRecoveryPointInVault",
|
|
2579
|
+
type: {
|
|
2580
|
+
name: "DateTime"
|
|
2581
|
+
}
|
|
2582
|
+
},
|
|
2583
|
+
oldestRecoveryPointInArchive: {
|
|
2584
|
+
serializedName: "oldestRecoveryPointInArchive",
|
|
2585
|
+
type: {
|
|
2586
|
+
name: "DateTime"
|
|
2587
|
+
}
|
|
2588
|
+
},
|
|
2589
|
+
newestRecoveryPointInArchive: {
|
|
2590
|
+
serializedName: "newestRecoveryPointInArchive",
|
|
2591
|
+
type: {
|
|
2592
|
+
name: "DateTime"
|
|
2593
|
+
}
|
|
2594
|
+
},
|
|
2474
2595
|
recoveryPointCount: {
|
|
2475
2596
|
serializedName: "recoveryPointCount",
|
|
2476
2597
|
type: {
|
|
@@ -2833,6 +2954,24 @@ export const AzureVmWorkloadProtectedItemExtendedInfo: coreClient.CompositeMappe
|
|
|
2833
2954
|
name: "DateTime"
|
|
2834
2955
|
}
|
|
2835
2956
|
},
|
|
2957
|
+
oldestRecoveryPointInVault: {
|
|
2958
|
+
serializedName: "oldestRecoveryPointInVault",
|
|
2959
|
+
type: {
|
|
2960
|
+
name: "DateTime"
|
|
2961
|
+
}
|
|
2962
|
+
},
|
|
2963
|
+
oldestRecoveryPointInArchive: {
|
|
2964
|
+
serializedName: "oldestRecoveryPointInArchive",
|
|
2965
|
+
type: {
|
|
2966
|
+
name: "DateTime"
|
|
2967
|
+
}
|
|
2968
|
+
},
|
|
2969
|
+
newestRecoveryPointInArchive: {
|
|
2970
|
+
serializedName: "newestRecoveryPointInArchive",
|
|
2971
|
+
type: {
|
|
2972
|
+
name: "DateTime"
|
|
2973
|
+
}
|
|
2974
|
+
},
|
|
2836
2975
|
recoveryPointCount: {
|
|
2837
2976
|
serializedName: "recoveryPointCount",
|
|
2838
2977
|
type: {
|
|
@@ -5865,12 +6004,14 @@ export const AzureIaaSVMProtectedItem: coreClient.CompositeMapper = {
|
|
|
5865
6004
|
...ProtectedItem.type.modelProperties,
|
|
5866
6005
|
friendlyName: {
|
|
5867
6006
|
serializedName: "friendlyName",
|
|
6007
|
+
readOnly: true,
|
|
5868
6008
|
type: {
|
|
5869
6009
|
name: "String"
|
|
5870
6010
|
}
|
|
5871
6011
|
},
|
|
5872
6012
|
virtualMachineId: {
|
|
5873
6013
|
serializedName: "virtualMachineId",
|
|
6014
|
+
readOnly: true,
|
|
5874
6015
|
type: {
|
|
5875
6016
|
name: "String"
|
|
5876
6017
|
}
|
|
@@ -5889,6 +6030,7 @@ export const AzureIaaSVMProtectedItem: coreClient.CompositeMapper = {
|
|
|
5889
6030
|
},
|
|
5890
6031
|
healthStatus: {
|
|
5891
6032
|
serializedName: "healthStatus",
|
|
6033
|
+
readOnly: true,
|
|
5892
6034
|
type: {
|
|
5893
6035
|
name: "String"
|
|
5894
6036
|
}
|
|
@@ -5922,12 +6064,14 @@ export const AzureIaaSVMProtectedItem: coreClient.CompositeMapper = {
|
|
|
5922
6064
|
},
|
|
5923
6065
|
lastBackupTime: {
|
|
5924
6066
|
serializedName: "lastBackupTime",
|
|
6067
|
+
readOnly: true,
|
|
5925
6068
|
type: {
|
|
5926
6069
|
name: "DateTime"
|
|
5927
6070
|
}
|
|
5928
6071
|
},
|
|
5929
6072
|
protectedItemDataId: {
|
|
5930
6073
|
serializedName: "protectedItemDataId",
|
|
6074
|
+
readOnly: true,
|
|
5931
6075
|
type: {
|
|
5932
6076
|
name: "String"
|
|
5933
6077
|
}
|
|
@@ -5996,6 +6140,7 @@ export const AzureVmWorkloadProtectedItem: coreClient.CompositeMapper = {
|
|
|
5996
6140
|
...ProtectedItem.type.modelProperties,
|
|
5997
6141
|
friendlyName: {
|
|
5998
6142
|
serializedName: "friendlyName",
|
|
6143
|
+
readOnly: true,
|
|
5999
6144
|
type: {
|
|
6000
6145
|
name: "String"
|
|
6001
6146
|
}
|
|
@@ -6020,6 +6165,7 @@ export const AzureVmWorkloadProtectedItem: coreClient.CompositeMapper = {
|
|
|
6020
6165
|
},
|
|
6021
6166
|
protectionStatus: {
|
|
6022
6167
|
serializedName: "protectionStatus",
|
|
6168
|
+
readOnly: true,
|
|
6023
6169
|
type: {
|
|
6024
6170
|
name: "String"
|
|
6025
6171
|
}
|
|
@@ -6257,6 +6403,13 @@ export const AzureFileShareRecoveryPoint: coreClient.CompositeMapper = {
|
|
|
6257
6403
|
type: {
|
|
6258
6404
|
name: "Number"
|
|
6259
6405
|
}
|
|
6406
|
+
},
|
|
6407
|
+
recoveryPointProperties: {
|
|
6408
|
+
serializedName: "recoveryPointProperties",
|
|
6409
|
+
type: {
|
|
6410
|
+
name: "Composite",
|
|
6411
|
+
className: "RecoveryPointProperties"
|
|
6412
|
+
}
|
|
6260
6413
|
}
|
|
6261
6414
|
}
|
|
6262
6415
|
}
|
|
@@ -6309,6 +6462,13 @@ export const AzureWorkloadRecoveryPoint: coreClient.CompositeMapper = {
|
|
|
6309
6462
|
}
|
|
6310
6463
|
}
|
|
6311
6464
|
}
|
|
6465
|
+
},
|
|
6466
|
+
recoveryPointProperties: {
|
|
6467
|
+
serializedName: "recoveryPointProperties",
|
|
6468
|
+
type: {
|
|
6469
|
+
name: "Composite",
|
|
6470
|
+
className: "RecoveryPointProperties"
|
|
6471
|
+
}
|
|
6312
6472
|
}
|
|
6313
6473
|
}
|
|
6314
6474
|
}
|
|
@@ -6346,6 +6506,13 @@ export const GenericRecoveryPoint: coreClient.CompositeMapper = {
|
|
|
6346
6506
|
type: {
|
|
6347
6507
|
name: "String"
|
|
6348
6508
|
}
|
|
6509
|
+
},
|
|
6510
|
+
recoveryPointProperties: {
|
|
6511
|
+
serializedName: "recoveryPointProperties",
|
|
6512
|
+
type: {
|
|
6513
|
+
name: "Composite",
|
|
6514
|
+
className: "RecoveryPointProperties"
|
|
6515
|
+
}
|
|
6349
6516
|
}
|
|
6350
6517
|
}
|
|
6351
6518
|
}
|
|
@@ -6468,6 +6635,13 @@ export const IaasVMRecoveryPoint: coreClient.CompositeMapper = {
|
|
|
6468
6635
|
}
|
|
6469
6636
|
}
|
|
6470
6637
|
}
|
|
6638
|
+
},
|
|
6639
|
+
recoveryPointProperties: {
|
|
6640
|
+
serializedName: "recoveryPointProperties",
|
|
6641
|
+
type: {
|
|
6642
|
+
name: "Composite",
|
|
6643
|
+
className: "RecoveryPointProperties"
|
|
6644
|
+
}
|
|
6471
6645
|
}
|
|
6472
6646
|
}
|
|
6473
6647
|
}
|
|
@@ -6845,6 +7019,13 @@ export const AzureIaaSVMProtectionPolicy: coreClient.CompositeMapper = {
|
|
|
6845
7019
|
className: "RetentionPolicy"
|
|
6846
7020
|
}
|
|
6847
7021
|
},
|
|
7022
|
+
tieringPolicy: {
|
|
7023
|
+
serializedName: "tieringPolicy",
|
|
7024
|
+
type: {
|
|
7025
|
+
name: "Dictionary",
|
|
7026
|
+
value: { type: { name: "Composite", className: "TieringPolicy" } }
|
|
7027
|
+
}
|
|
7028
|
+
},
|
|
6848
7029
|
instantRpRetentionRangeInDays: {
|
|
6849
7030
|
serializedName: "instantRpRetentionRangeInDays",
|
|
6850
7031
|
type: {
|
|
@@ -8445,6 +8626,20 @@ export const AzureVmWorkloadSAPHanaDatabaseProtectedItem: coreClient.CompositeMa
|
|
|
8445
8626
|
}
|
|
8446
8627
|
};
|
|
8447
8628
|
|
|
8629
|
+
export const AzureVmWorkloadSAPHanaDBInstanceProtectedItem: coreClient.CompositeMapper = {
|
|
8630
|
+
serializedName: "AzureVmWorkloadSAPHanaDBInstance",
|
|
8631
|
+
type: {
|
|
8632
|
+
name: "Composite",
|
|
8633
|
+
className: "AzureVmWorkloadSAPHanaDBInstanceProtectedItem",
|
|
8634
|
+
uberParent: "AzureVmWorkloadProtectedItem",
|
|
8635
|
+
polymorphicDiscriminator:
|
|
8636
|
+
AzureVmWorkloadProtectedItem.type.polymorphicDiscriminator,
|
|
8637
|
+
modelProperties: {
|
|
8638
|
+
...AzureVmWorkloadProtectedItem.type.modelProperties
|
|
8639
|
+
}
|
|
8640
|
+
}
|
|
8641
|
+
};
|
|
8642
|
+
|
|
8448
8643
|
export const AzureVmWorkloadSQLDatabaseProtectedItem: coreClient.CompositeMapper = {
|
|
8449
8644
|
serializedName: "AzureVmWorkloadSQLDatabase",
|
|
8450
8645
|
type: {
|
|
@@ -8862,6 +9057,34 @@ export const AzureVmWorkloadSAPHanaSystemProtectableItem: coreClient.CompositeMa
|
|
|
8862
9057
|
}
|
|
8863
9058
|
};
|
|
8864
9059
|
|
|
9060
|
+
export const AzureVmWorkloadSAPHanaDBInstance: coreClient.CompositeMapper = {
|
|
9061
|
+
serializedName: "SAPHanaDBInstance",
|
|
9062
|
+
type: {
|
|
9063
|
+
name: "Composite",
|
|
9064
|
+
className: "AzureVmWorkloadSAPHanaDBInstance",
|
|
9065
|
+
uberParent: "AzureVmWorkloadProtectableItem",
|
|
9066
|
+
polymorphicDiscriminator:
|
|
9067
|
+
AzureVmWorkloadProtectableItem.type.polymorphicDiscriminator,
|
|
9068
|
+
modelProperties: {
|
|
9069
|
+
...AzureVmWorkloadProtectableItem.type.modelProperties
|
|
9070
|
+
}
|
|
9071
|
+
}
|
|
9072
|
+
};
|
|
9073
|
+
|
|
9074
|
+
export const AzureVmWorkloadSAPHanaHSR: coreClient.CompositeMapper = {
|
|
9075
|
+
serializedName: "SAPHanaHSR",
|
|
9076
|
+
type: {
|
|
9077
|
+
name: "Composite",
|
|
9078
|
+
className: "AzureVmWorkloadSAPHanaHSR",
|
|
9079
|
+
uberParent: "AzureVmWorkloadProtectableItem",
|
|
9080
|
+
polymorphicDiscriminator:
|
|
9081
|
+
AzureVmWorkloadProtectableItem.type.polymorphicDiscriminator,
|
|
9082
|
+
modelProperties: {
|
|
9083
|
+
...AzureVmWorkloadProtectableItem.type.modelProperties
|
|
9084
|
+
}
|
|
9085
|
+
}
|
|
9086
|
+
};
|
|
9087
|
+
|
|
8865
9088
|
export const AzureVmWorkloadSQLAvailabilityGroupProtectableItem: coreClient.CompositeMapper = {
|
|
8866
9089
|
serializedName: "SQLAvailabilityGroupContainer",
|
|
8867
9090
|
type: {
|
|
@@ -9185,6 +9408,7 @@ export let discriminators = {
|
|
|
9185
9408
|
"AzureIaaSVMProtectedItem.Microsoft.Compute/virtualMachines": AzureIaaSComputeVMProtectedItem,
|
|
9186
9409
|
"AzureVmWorkloadProtectedItem.AzureVmWorkloadSAPAseDatabase": AzureVmWorkloadSAPAseDatabaseProtectedItem,
|
|
9187
9410
|
"AzureVmWorkloadProtectedItem.AzureVmWorkloadSAPHanaDatabase": AzureVmWorkloadSAPHanaDatabaseProtectedItem,
|
|
9411
|
+
"AzureVmWorkloadProtectedItem.AzureVmWorkloadSAPHanaDBInstance": AzureVmWorkloadSAPHanaDBInstanceProtectedItem,
|
|
9188
9412
|
"AzureVmWorkloadProtectedItem.AzureVmWorkloadSQLDatabase": AzureVmWorkloadSQLDatabaseProtectedItem,
|
|
9189
9413
|
"AzureWorkloadRecoveryPoint.AzureWorkloadPointInTimeRecoveryPoint": AzureWorkloadPointInTimeRecoveryPoint,
|
|
9190
9414
|
"AzureWorkloadRecoveryPoint.AzureWorkloadSAPHanaRecoveryPoint": AzureWorkloadSAPHanaRecoveryPoint,
|
|
@@ -9210,6 +9434,8 @@ export let discriminators = {
|
|
|
9210
9434
|
"AzureVmWorkloadProtectableItem.SAPAseSystem": AzureVmWorkloadSAPAseSystemProtectableItem,
|
|
9211
9435
|
"AzureVmWorkloadProtectableItem.SAPHanaDatabase": AzureVmWorkloadSAPHanaDatabaseProtectableItem,
|
|
9212
9436
|
"AzureVmWorkloadProtectableItem.SAPHanaSystem": AzureVmWorkloadSAPHanaSystemProtectableItem,
|
|
9437
|
+
"AzureVmWorkloadProtectableItem.SAPHanaDBInstance": AzureVmWorkloadSAPHanaDBInstance,
|
|
9438
|
+
"AzureVmWorkloadProtectableItem.SAPHanaHSR": AzureVmWorkloadSAPHanaHSR,
|
|
9213
9439
|
"AzureVmWorkloadProtectableItem.SQLAvailabilityGroupContainer": AzureVmWorkloadSQLAvailabilityGroupProtectableItem,
|
|
9214
9440
|
"AzureVmWorkloadProtectableItem.SQLDataBase": AzureVmWorkloadSQLDatabaseProtectableItem,
|
|
9215
9441
|
"AzureVmWorkloadProtectableItem.SQLInstance": AzureVmWorkloadSQLInstanceProtectableItem,
|
package/src/models/parameters.ts
CHANGED
|
@@ -63,7 +63,7 @@ export const $host: OperationURLParameter = {
|
|
|
63
63
|
export const apiVersion: OperationQueryParameter = {
|
|
64
64
|
parameterPath: "apiVersion",
|
|
65
65
|
mapper: {
|
|
66
|
-
defaultValue: "
|
|
66
|
+
defaultValue: "2023-01-01",
|
|
67
67
|
isConstant: true,
|
|
68
68
|
serializedName: "api-version",
|
|
69
69
|
type: {
|
|
@@ -0,0 +1,198 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
|
|
10
|
+
import { setContinuationToken } from "../pagingHelper";
|
|
11
|
+
import { DeletedProtectionContainers } from "../operationsInterfaces";
|
|
12
|
+
import * as coreClient from "@azure/core-client";
|
|
13
|
+
import * as Mappers from "../models/mappers";
|
|
14
|
+
import * as Parameters from "../models/parameters";
|
|
15
|
+
import { RecoveryServicesBackupClient } from "../recoveryServicesBackupClient";
|
|
16
|
+
import {
|
|
17
|
+
ProtectionContainerResource,
|
|
18
|
+
DeletedProtectionContainersListNextOptionalParams,
|
|
19
|
+
DeletedProtectionContainersListOptionalParams,
|
|
20
|
+
DeletedProtectionContainersListResponse,
|
|
21
|
+
DeletedProtectionContainersListNextResponse
|
|
22
|
+
} from "../models";
|
|
23
|
+
|
|
24
|
+
/// <reference lib="esnext.asynciterable" />
|
|
25
|
+
/** Class containing DeletedProtectionContainers operations. */
|
|
26
|
+
export class DeletedProtectionContainersImpl
|
|
27
|
+
implements DeletedProtectionContainers {
|
|
28
|
+
private readonly client: RecoveryServicesBackupClient;
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Initialize a new instance of the class DeletedProtectionContainers class.
|
|
32
|
+
* @param client Reference to the service client
|
|
33
|
+
*/
|
|
34
|
+
constructor(client: RecoveryServicesBackupClient) {
|
|
35
|
+
this.client = client;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Lists the soft deleted containers registered to Recovery Services Vault.
|
|
40
|
+
* @param resourceGroupName The name of the resource group where the recovery services vault is
|
|
41
|
+
* present.
|
|
42
|
+
* @param vaultName The name of the recovery services vault.
|
|
43
|
+
* @param options The options parameters.
|
|
44
|
+
*/
|
|
45
|
+
public list(
|
|
46
|
+
resourceGroupName: string,
|
|
47
|
+
vaultName: string,
|
|
48
|
+
options?: DeletedProtectionContainersListOptionalParams
|
|
49
|
+
): PagedAsyncIterableIterator<ProtectionContainerResource> {
|
|
50
|
+
const iter = this.listPagingAll(resourceGroupName, vaultName, options);
|
|
51
|
+
return {
|
|
52
|
+
next() {
|
|
53
|
+
return iter.next();
|
|
54
|
+
},
|
|
55
|
+
[Symbol.asyncIterator]() {
|
|
56
|
+
return this;
|
|
57
|
+
},
|
|
58
|
+
byPage: (settings?: PageSettings) => {
|
|
59
|
+
if (settings?.maxPageSize) {
|
|
60
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
61
|
+
}
|
|
62
|
+
return this.listPagingPage(
|
|
63
|
+
resourceGroupName,
|
|
64
|
+
vaultName,
|
|
65
|
+
options,
|
|
66
|
+
settings
|
|
67
|
+
);
|
|
68
|
+
}
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
private async *listPagingPage(
|
|
73
|
+
resourceGroupName: string,
|
|
74
|
+
vaultName: string,
|
|
75
|
+
options?: DeletedProtectionContainersListOptionalParams,
|
|
76
|
+
settings?: PageSettings
|
|
77
|
+
): AsyncIterableIterator<ProtectionContainerResource[]> {
|
|
78
|
+
let result: DeletedProtectionContainersListResponse;
|
|
79
|
+
let continuationToken = settings?.continuationToken;
|
|
80
|
+
if (!continuationToken) {
|
|
81
|
+
result = await this._list(resourceGroupName, vaultName, options);
|
|
82
|
+
let page = result.value || [];
|
|
83
|
+
continuationToken = result.nextLink;
|
|
84
|
+
setContinuationToken(page, continuationToken);
|
|
85
|
+
yield page;
|
|
86
|
+
}
|
|
87
|
+
while (continuationToken) {
|
|
88
|
+
result = await this._listNext(
|
|
89
|
+
resourceGroupName,
|
|
90
|
+
vaultName,
|
|
91
|
+
continuationToken,
|
|
92
|
+
options
|
|
93
|
+
);
|
|
94
|
+
continuationToken = result.nextLink;
|
|
95
|
+
let page = result.value || [];
|
|
96
|
+
setContinuationToken(page, continuationToken);
|
|
97
|
+
yield page;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
private async *listPagingAll(
|
|
102
|
+
resourceGroupName: string,
|
|
103
|
+
vaultName: string,
|
|
104
|
+
options?: DeletedProtectionContainersListOptionalParams
|
|
105
|
+
): AsyncIterableIterator<ProtectionContainerResource> {
|
|
106
|
+
for await (const page of this.listPagingPage(
|
|
107
|
+
resourceGroupName,
|
|
108
|
+
vaultName,
|
|
109
|
+
options
|
|
110
|
+
)) {
|
|
111
|
+
yield* page;
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
/**
|
|
116
|
+
* Lists the soft deleted containers registered to Recovery Services Vault.
|
|
117
|
+
* @param resourceGroupName The name of the resource group where the recovery services vault is
|
|
118
|
+
* present.
|
|
119
|
+
* @param vaultName The name of the recovery services vault.
|
|
120
|
+
* @param options The options parameters.
|
|
121
|
+
*/
|
|
122
|
+
private _list(
|
|
123
|
+
resourceGroupName: string,
|
|
124
|
+
vaultName: string,
|
|
125
|
+
options?: DeletedProtectionContainersListOptionalParams
|
|
126
|
+
): Promise<DeletedProtectionContainersListResponse> {
|
|
127
|
+
return this.client.sendOperationRequest(
|
|
128
|
+
{ resourceGroupName, vaultName, options },
|
|
129
|
+
listOperationSpec
|
|
130
|
+
);
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
/**
|
|
134
|
+
* ListNext
|
|
135
|
+
* @param resourceGroupName The name of the resource group where the recovery services vault is
|
|
136
|
+
* present.
|
|
137
|
+
* @param vaultName The name of the recovery services vault.
|
|
138
|
+
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
139
|
+
* @param options The options parameters.
|
|
140
|
+
*/
|
|
141
|
+
private _listNext(
|
|
142
|
+
resourceGroupName: string,
|
|
143
|
+
vaultName: string,
|
|
144
|
+
nextLink: string,
|
|
145
|
+
options?: DeletedProtectionContainersListNextOptionalParams
|
|
146
|
+
): Promise<DeletedProtectionContainersListNextResponse> {
|
|
147
|
+
return this.client.sendOperationRequest(
|
|
148
|
+
{ resourceGroupName, vaultName, nextLink, options },
|
|
149
|
+
listNextOperationSpec
|
|
150
|
+
);
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
// Operation Specifications
|
|
154
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
155
|
+
|
|
156
|
+
const listOperationSpec: coreClient.OperationSpec = {
|
|
157
|
+
path:
|
|
158
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupDeletedProtectionContainers",
|
|
159
|
+
httpMethod: "GET",
|
|
160
|
+
responses: {
|
|
161
|
+
200: {
|
|
162
|
+
bodyMapper: Mappers.ProtectionContainerResourceList
|
|
163
|
+
},
|
|
164
|
+
default: {
|
|
165
|
+
bodyMapper: Mappers.CloudError
|
|
166
|
+
}
|
|
167
|
+
},
|
|
168
|
+
queryParameters: [Parameters.apiVersion, Parameters.filter],
|
|
169
|
+
urlParameters: [
|
|
170
|
+
Parameters.$host,
|
|
171
|
+
Parameters.vaultName,
|
|
172
|
+
Parameters.resourceGroupName,
|
|
173
|
+
Parameters.subscriptionId
|
|
174
|
+
],
|
|
175
|
+
headerParameters: [Parameters.accept],
|
|
176
|
+
serializer
|
|
177
|
+
};
|
|
178
|
+
const listNextOperationSpec: coreClient.OperationSpec = {
|
|
179
|
+
path: "{nextLink}",
|
|
180
|
+
httpMethod: "GET",
|
|
181
|
+
responses: {
|
|
182
|
+
200: {
|
|
183
|
+
bodyMapper: Mappers.ProtectionContainerResourceList
|
|
184
|
+
},
|
|
185
|
+
default: {
|
|
186
|
+
bodyMapper: Mappers.CloudError
|
|
187
|
+
}
|
|
188
|
+
},
|
|
189
|
+
urlParameters: [
|
|
190
|
+
Parameters.$host,
|
|
191
|
+
Parameters.vaultName,
|
|
192
|
+
Parameters.resourceGroupName,
|
|
193
|
+
Parameters.subscriptionId,
|
|
194
|
+
Parameters.nextLink
|
|
195
|
+
],
|
|
196
|
+
headerParameters: [Parameters.accept],
|
|
197
|
+
serializer
|
|
198
|
+
};
|
package/src/operations/index.ts
CHANGED
|
@@ -50,6 +50,7 @@ export * from "./backupOperationStatuses";
|
|
|
50
50
|
export * from "./protectionPolicyOperationStatuses";
|
|
51
51
|
export * from "./backupProtectableItems";
|
|
52
52
|
export * from "./backupProtectionContainers";
|
|
53
|
+
export * from "./deletedProtectionContainers";
|
|
53
54
|
export * from "./securityPINs";
|
|
54
55
|
export * from "./recoveryPointsRecommendedForMove";
|
|
55
56
|
export * from "./resourceGuardProxies";
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
10
|
+
import {
|
|
11
|
+
ProtectionContainerResource,
|
|
12
|
+
DeletedProtectionContainersListOptionalParams
|
|
13
|
+
} from "../models";
|
|
14
|
+
|
|
15
|
+
/// <reference lib="esnext.asynciterable" />
|
|
16
|
+
/** Interface representing a DeletedProtectionContainers. */
|
|
17
|
+
export interface DeletedProtectionContainers {
|
|
18
|
+
/**
|
|
19
|
+
* Lists the soft deleted containers registered to Recovery Services Vault.
|
|
20
|
+
* @param resourceGroupName The name of the resource group where the recovery services vault is
|
|
21
|
+
* present.
|
|
22
|
+
* @param vaultName The name of the recovery services vault.
|
|
23
|
+
* @param options The options parameters.
|
|
24
|
+
*/
|
|
25
|
+
list(
|
|
26
|
+
resourceGroupName: string,
|
|
27
|
+
vaultName: string,
|
|
28
|
+
options?: DeletedProtectionContainersListOptionalParams
|
|
29
|
+
): PagedAsyncIterableIterator<ProtectionContainerResource>;
|
|
30
|
+
}
|
|
@@ -50,6 +50,7 @@ export * from "./backupOperationStatuses";
|
|
|
50
50
|
export * from "./protectionPolicyOperationStatuses";
|
|
51
51
|
export * from "./backupProtectableItems";
|
|
52
52
|
export * from "./backupProtectionContainers";
|
|
53
|
+
export * from "./deletedProtectionContainers";
|
|
53
54
|
export * from "./securityPINs";
|
|
54
55
|
export * from "./recoveryPointsRecommendedForMove";
|
|
55
56
|
export * from "./resourceGuardProxies";
|
|
@@ -61,6 +61,7 @@ import {
|
|
|
61
61
|
ProtectionPolicyOperationStatusesImpl,
|
|
62
62
|
BackupProtectableItemsImpl,
|
|
63
63
|
BackupProtectionContainersImpl,
|
|
64
|
+
DeletedProtectionContainersImpl,
|
|
64
65
|
SecurityPINsImpl,
|
|
65
66
|
RecoveryPointsRecommendedForMoveImpl,
|
|
66
67
|
ResourceGuardProxiesImpl,
|
|
@@ -111,6 +112,7 @@ import {
|
|
|
111
112
|
ProtectionPolicyOperationStatuses,
|
|
112
113
|
BackupProtectableItems,
|
|
113
114
|
BackupProtectionContainers,
|
|
115
|
+
DeletedProtectionContainers,
|
|
114
116
|
SecurityPINs,
|
|
115
117
|
RecoveryPointsRecommendedForMove,
|
|
116
118
|
ResourceGuardProxies,
|
|
@@ -215,7 +217,7 @@ export class RecoveryServicesBackupClient extends coreClient.ServiceClient {
|
|
|
215
217
|
|
|
216
218
|
// Assigning values to Constant parameters
|
|
217
219
|
this.$host = options.$host || "https://management.azure.com";
|
|
218
|
-
this.apiVersion = options.apiVersion || "
|
|
220
|
+
this.apiVersion = options.apiVersion || "2023-01-01";
|
|
219
221
|
this.backupResourceStorageConfigsNonCRR = new BackupResourceStorageConfigsNonCRRImpl(
|
|
220
222
|
this
|
|
221
223
|
);
|
|
@@ -282,6 +284,9 @@ export class RecoveryServicesBackupClient extends coreClient.ServiceClient {
|
|
|
282
284
|
);
|
|
283
285
|
this.backupProtectableItems = new BackupProtectableItemsImpl(this);
|
|
284
286
|
this.backupProtectionContainers = new BackupProtectionContainersImpl(this);
|
|
287
|
+
this.deletedProtectionContainers = new DeletedProtectionContainersImpl(
|
|
288
|
+
this
|
|
289
|
+
);
|
|
285
290
|
this.securityPINs = new SecurityPINsImpl(this);
|
|
286
291
|
this.recoveryPointsRecommendedForMove = new RecoveryPointsRecommendedForMoveImpl(
|
|
287
292
|
this
|
|
@@ -679,6 +684,7 @@ export class RecoveryServicesBackupClient extends coreClient.ServiceClient {
|
|
|
679
684
|
protectionPolicyOperationStatuses: ProtectionPolicyOperationStatuses;
|
|
680
685
|
backupProtectableItems: BackupProtectableItems;
|
|
681
686
|
backupProtectionContainers: BackupProtectionContainers;
|
|
687
|
+
deletedProtectionContainers: DeletedProtectionContainers;
|
|
682
688
|
securityPINs: SecurityPINs;
|
|
683
689
|
recoveryPointsRecommendedForMove: RecoveryPointsRecommendedForMove;
|
|
684
690
|
resourceGuardProxies: ResourceGuardProxies;
|