@azure/arm-recoveryservicesbackup 11.0.1-alpha.20231113.1 → 12.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.
Files changed (185) hide show
  1. package/CHANGELOG.md +55 -9
  2. package/dist/index.js +974 -237
  3. package/dist/index.js.map +1 -1
  4. package/dist/index.min.js +1 -1
  5. package/dist/index.min.js.map +1 -1
  6. package/dist-esm/samples-dev/backupEnginesGetSample.js +1 -1
  7. package/dist-esm/samples-dev/backupEnginesListSample.js +1 -1
  8. package/dist-esm/samples-dev/backupJobsListSample.js +3 -3
  9. package/dist-esm/samples-dev/backupOperationResultsGetSample.js +1 -1
  10. package/dist-esm/samples-dev/backupOperationStatusesGetSample.js +1 -1
  11. package/dist-esm/samples-dev/backupPoliciesListSample.js +3 -3
  12. package/dist-esm/samples-dev/backupProtectableItemsListSample.js +1 -1
  13. package/dist-esm/samples-dev/backupProtectedItemsListSample.js +1 -1
  14. package/dist-esm/samples-dev/backupProtectionContainersListSample.js +1 -1
  15. package/dist-esm/samples-dev/backupProtectionIntentListSample.js +1 -1
  16. package/dist-esm/samples-dev/backupResourceEncryptionConfigsGetSample.js +1 -1
  17. package/dist-esm/samples-dev/backupResourceEncryptionConfigsUpdateSample.js +1 -1
  18. package/dist-esm/samples-dev/backupResourceStorageConfigsNonCrrGetSample.js +1 -1
  19. package/dist-esm/samples-dev/backupResourceStorageConfigsNonCrrPatchSample.js +1 -1
  20. package/dist-esm/samples-dev/backupResourceStorageConfigsNonCrrUpdateSample.js +1 -1
  21. package/dist-esm/samples-dev/backupResourceVaultConfigsGetSample.js +1 -1
  22. package/dist-esm/samples-dev/backupResourceVaultConfigsPutSample.js +1 -1
  23. package/dist-esm/samples-dev/backupResourceVaultConfigsUpdateSample.js +1 -1
  24. package/dist-esm/samples-dev/backupStatusGetSample.js +1 -1
  25. package/dist-esm/samples-dev/backupUsageSummariesListSample.js +2 -2
  26. package/dist-esm/samples-dev/backupWorkloadItemsListSample.js +1 -1
  27. package/dist-esm/samples-dev/backupsTriggerSample.js +1 -1
  28. package/dist-esm/samples-dev/bmsPrepareDataMoveOperationResultGetSample.js +1 -1
  29. package/dist-esm/samples-dev/bmsPrepareDataMoveSample.js +1 -1
  30. package/dist-esm/samples-dev/bmsTriggerDataMoveSample.js +1 -1
  31. package/dist-esm/samples-dev/deletedProtectionContainersListSample.js +1 -1
  32. package/dist-esm/samples-dev/exportJobsOperationResultsGetSample.js +1 -1
  33. package/dist-esm/samples-dev/featureSupportValidateSample.js +1 -1
  34. package/dist-esm/samples-dev/fetchTieringCostPostSample.d.ts +2 -0
  35. package/dist-esm/samples-dev/fetchTieringCostPostSample.d.ts.map +1 -0
  36. package/dist-esm/samples-dev/fetchTieringCostPostSample.js +131 -0
  37. package/dist-esm/samples-dev/fetchTieringCostPostSample.js.map +1 -0
  38. package/dist-esm/samples-dev/getOperationStatusSample.js +1 -1
  39. package/dist-esm/samples-dev/getTieringCostOperationResultGetSample.d.ts +2 -0
  40. package/dist-esm/samples-dev/getTieringCostOperationResultGetSample.d.ts.map +1 -0
  41. package/dist-esm/samples-dev/getTieringCostOperationResultGetSample.js +40 -0
  42. package/dist-esm/samples-dev/getTieringCostOperationResultGetSample.js.map +1 -0
  43. package/dist-esm/samples-dev/itemLevelRecoveryConnectionsProvisionSample.js +1 -1
  44. package/dist-esm/samples-dev/itemLevelRecoveryConnectionsRevokeSample.js +1 -1
  45. package/dist-esm/samples-dev/jobCancellationsTriggerSample.js +1 -1
  46. package/dist-esm/samples-dev/jobDetailsGetSample.js +1 -1
  47. package/dist-esm/samples-dev/jobOperationResultsGetSample.js +1 -1
  48. package/dist-esm/samples-dev/jobsExportSample.js +1 -1
  49. package/dist-esm/samples-dev/moveRecoveryPointSample.js +1 -1
  50. package/dist-esm/samples-dev/operationValidateSample.js +40 -34
  51. package/dist-esm/samples-dev/operationValidateSample.js.map +1 -1
  52. package/dist-esm/samples-dev/operationsListSample.js +1 -1
  53. package/dist-esm/samples-dev/privateEndpointConnectionDeleteSample.js +1 -1
  54. package/dist-esm/samples-dev/privateEndpointConnectionGetSample.js +1 -1
  55. package/dist-esm/samples-dev/privateEndpointConnectionPutSample.js +1 -1
  56. package/dist-esm/samples-dev/privateEndpointGetOperationStatusSample.js +1 -1
  57. package/dist-esm/samples-dev/protectableContainersListSample.js +1 -1
  58. package/dist-esm/samples-dev/protectedItemOperationResultsGetSample.js +1 -1
  59. package/dist-esm/samples-dev/protectedItemOperationStatusesGetSample.js +1 -1
  60. package/dist-esm/samples-dev/protectedItemsCreateOrUpdateSample.js +2 -2
  61. package/dist-esm/samples-dev/protectedItemsDeleteSample.js +1 -1
  62. package/dist-esm/samples-dev/protectedItemsGetSample.js +2 -2
  63. package/dist-esm/samples-dev/protectionContainerOperationResultsGetSample.js +1 -1
  64. package/dist-esm/samples-dev/protectionContainerRefreshOperationResultsGetSample.js +1 -1
  65. package/dist-esm/samples-dev/protectionContainersGetSample.js +1 -1
  66. package/dist-esm/samples-dev/protectionContainersInquireSample.js +1 -1
  67. package/dist-esm/samples-dev/protectionContainersRefreshSample.js +1 -1
  68. package/dist-esm/samples-dev/protectionContainersRegisterSample.js +2 -2
  69. package/dist-esm/samples-dev/protectionContainersRegisterSample.js.map +1 -1
  70. package/dist-esm/samples-dev/protectionContainersUnregisterSample.js +1 -1
  71. package/dist-esm/samples-dev/protectionIntentCreateOrUpdateSample.js +1 -1
  72. package/dist-esm/samples-dev/protectionIntentDeleteSample.js +1 -1
  73. package/dist-esm/samples-dev/protectionIntentGetSample.js +1 -1
  74. package/dist-esm/samples-dev/protectionIntentValidateSample.js +1 -1
  75. package/dist-esm/samples-dev/protectionPoliciesCreateOrUpdateSample.js +77 -7
  76. package/dist-esm/samples-dev/protectionPoliciesCreateOrUpdateSample.js.map +1 -1
  77. package/dist-esm/samples-dev/protectionPoliciesDeleteSample.js +1 -1
  78. package/dist-esm/samples-dev/protectionPoliciesGetSample.js +2 -2
  79. package/dist-esm/samples-dev/protectionPolicyOperationResultsGetSample.js +1 -1
  80. package/dist-esm/samples-dev/protectionPolicyOperationStatusesGetSample.js +1 -1
  81. package/dist-esm/samples-dev/recoveryPointsGetSample.js +1 -1
  82. package/dist-esm/samples-dev/recoveryPointsListSample.js +1 -1
  83. package/dist-esm/samples-dev/recoveryPointsRecommendedForMoveListSample.js +1 -1
  84. package/dist-esm/samples-dev/resourceGuardProxiesGetSample.js +1 -1
  85. package/dist-esm/samples-dev/resourceGuardProxyDeleteSample.js +1 -1
  86. package/dist-esm/samples-dev/resourceGuardProxyGetSample.js +1 -1
  87. package/dist-esm/samples-dev/resourceGuardProxyPutSample.js +1 -1
  88. package/dist-esm/samples-dev/resourceGuardProxyUnlockDeleteSample.js +1 -1
  89. package/dist-esm/samples-dev/restoresTriggerSample.js +6 -6
  90. package/dist-esm/samples-dev/securityPiNsGetSample.js +1 -1
  91. package/dist-esm/samples-dev/tieringCostOperationStatusGetSample.d.ts +2 -0
  92. package/dist-esm/samples-dev/tieringCostOperationStatusGetSample.d.ts.map +1 -0
  93. package/dist-esm/samples-dev/tieringCostOperationStatusGetSample.js +40 -0
  94. package/dist-esm/samples-dev/tieringCostOperationStatusGetSample.js.map +1 -0
  95. package/dist-esm/samples-dev/validateOperationResultsGetSample.js +1 -1
  96. package/dist-esm/samples-dev/validateOperationStatusesGetSample.js +1 -1
  97. package/dist-esm/samples-dev/validateOperationTriggerSample.js +19 -16
  98. package/dist-esm/samples-dev/validateOperationTriggerSample.js.map +1 -1
  99. package/dist-esm/src/models/index.d.ts +203 -19
  100. package/dist-esm/src/models/index.d.ts.map +1 -1
  101. package/dist-esm/src/models/index.js +14 -8
  102. package/dist-esm/src/models/index.js.map +1 -1
  103. package/dist-esm/src/models/mappers.d.ts +23 -0
  104. package/dist-esm/src/models/mappers.d.ts.map +1 -1
  105. package/dist-esm/src/models/mappers.js +412 -0
  106. package/dist-esm/src/models/mappers.js.map +1 -1
  107. package/dist-esm/src/models/parameters.d.ts +2 -0
  108. package/dist-esm/src/models/parameters.d.ts.map +1 -1
  109. package/dist-esm/src/models/parameters.js +22 -3
  110. package/dist-esm/src/models/parameters.js.map +1 -1
  111. package/dist-esm/src/operations/fetchTieringCost.d.ts +36 -0
  112. package/dist-esm/src/operations/fetchTieringCost.d.ts.map +1 -0
  113. package/dist-esm/src/operations/fetchTieringCost.js +121 -0
  114. package/dist-esm/src/operations/fetchTieringCost.js.map +1 -0
  115. package/dist-esm/src/operations/getTieringCostOperationResult.d.ts +22 -0
  116. package/dist-esm/src/operations/getTieringCostOperationResult.d.ts.map +1 -0
  117. package/dist-esm/src/operations/getTieringCostOperationResult.js +56 -0
  118. package/dist-esm/src/operations/getTieringCostOperationResult.js.map +1 -0
  119. package/dist-esm/src/operations/index.d.ts +3 -0
  120. package/dist-esm/src/operations/index.d.ts.map +1 -1
  121. package/dist-esm/src/operations/index.js +3 -0
  122. package/dist-esm/src/operations/index.js.map +1 -1
  123. package/dist-esm/src/operations/operation.d.ts +2 -2
  124. package/dist-esm/src/operations/operation.d.ts.map +1 -1
  125. package/dist-esm/src/operations/operation.js.map +1 -1
  126. package/dist-esm/src/operations/protectionContainers.d.ts +16 -1
  127. package/dist-esm/src/operations/protectionContainers.d.ts.map +1 -1
  128. package/dist-esm/src/operations/protectionContainers.js +74 -10
  129. package/dist-esm/src/operations/protectionContainers.js.map +1 -1
  130. package/dist-esm/src/operations/tieringCostOperationStatus.d.ts +22 -0
  131. package/dist-esm/src/operations/tieringCostOperationStatus.d.ts.map +1 -0
  132. package/dist-esm/src/operations/tieringCostOperationStatus.js +56 -0
  133. package/dist-esm/src/operations/tieringCostOperationStatus.js.map +1 -0
  134. package/dist-esm/src/operations/validateOperation.d.ts +3 -3
  135. package/dist-esm/src/operations/validateOperation.d.ts.map +1 -1
  136. package/dist-esm/src/operations/validateOperation.js.map +1 -1
  137. package/dist-esm/src/operationsInterfaces/fetchTieringCost.d.ts +28 -0
  138. package/dist-esm/src/operationsInterfaces/fetchTieringCost.d.ts.map +1 -0
  139. package/dist-esm/src/operationsInterfaces/fetchTieringCost.js +9 -0
  140. package/dist-esm/src/operationsInterfaces/fetchTieringCost.js.map +1 -0
  141. package/dist-esm/src/operationsInterfaces/getTieringCostOperationResult.d.ts +14 -0
  142. package/dist-esm/src/operationsInterfaces/getTieringCostOperationResult.d.ts.map +1 -0
  143. package/dist-esm/src/operationsInterfaces/getTieringCostOperationResult.js +9 -0
  144. package/dist-esm/src/operationsInterfaces/getTieringCostOperationResult.js.map +1 -0
  145. package/dist-esm/src/operationsInterfaces/index.d.ts +3 -0
  146. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -1
  147. package/dist-esm/src/operationsInterfaces/index.js +3 -0
  148. package/dist-esm/src/operationsInterfaces/index.js.map +1 -1
  149. package/dist-esm/src/operationsInterfaces/operation.d.ts +2 -2
  150. package/dist-esm/src/operationsInterfaces/operation.d.ts.map +1 -1
  151. package/dist-esm/src/operationsInterfaces/protectionContainers.d.ts +16 -1
  152. package/dist-esm/src/operationsInterfaces/protectionContainers.d.ts.map +1 -1
  153. package/dist-esm/src/operationsInterfaces/tieringCostOperationStatus.d.ts +14 -0
  154. package/dist-esm/src/operationsInterfaces/tieringCostOperationStatus.d.ts.map +1 -0
  155. package/dist-esm/src/operationsInterfaces/tieringCostOperationStatus.js +9 -0
  156. package/dist-esm/src/operationsInterfaces/tieringCostOperationStatus.js.map +1 -0
  157. package/dist-esm/src/operationsInterfaces/validateOperation.d.ts +3 -3
  158. package/dist-esm/src/operationsInterfaces/validateOperation.d.ts.map +1 -1
  159. package/dist-esm/src/recoveryServicesBackupClient.d.ts +4 -1
  160. package/dist-esm/src/recoveryServicesBackupClient.d.ts.map +1 -1
  161. package/dist-esm/src/recoveryServicesBackupClient.js +6 -3
  162. package/dist-esm/src/recoveryServicesBackupClient.js.map +1 -1
  163. package/dist-esm/test/recoveryservicesbackup_operations_test.spec.js +1 -1
  164. package/dist-esm/test/recoveryservicesbackup_operations_test.spec.js.map +1 -1
  165. package/package.json +6 -4
  166. package/review/arm-recoveryservicesbackup.api.md +178 -5
  167. package/src/models/index.ts +245 -22
  168. package/src/models/mappers.ts +461 -0
  169. package/src/models/parameters.ts +26 -4
  170. package/src/operations/fetchTieringCost.ts +174 -0
  171. package/src/operations/getTieringCostOperationResult.ts +77 -0
  172. package/src/operations/index.ts +3 -0
  173. package/src/operations/operation.ts +2 -2
  174. package/src/operations/protectionContainers.ts +106 -6
  175. package/src/operations/tieringCostOperationStatus.ts +77 -0
  176. package/src/operations/validateOperation.ts +3 -3
  177. package/src/operationsInterfaces/fetchTieringCost.ts +55 -0
  178. package/src/operationsInterfaces/getTieringCostOperationResult.ts +30 -0
  179. package/src/operationsInterfaces/index.ts +3 -0
  180. package/src/operationsInterfaces/operation.ts +2 -2
  181. package/src/operationsInterfaces/protectionContainers.ts +28 -1
  182. package/src/operationsInterfaces/tieringCostOperationStatus.ts +30 -0
  183. package/src/operationsInterfaces/validateOperation.ts +3 -3
  184. package/src/recoveryServicesBackupClient.ts +18 -4
  185. package/types/arm-recoveryservicesbackup.d.ts +283 -7
@@ -16,7 +16,7 @@ dotenv.config();
16
16
  * This sample demonstrates how to Triggers export of jobs specified by filters and returns an OperationID to track.
17
17
  *
18
18
  * @summary Triggers export of jobs specified by filters and returns an OperationID to track.
19
- * x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-04-01/examples/Common/TriggerExportJobs.json
19
+ * x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-06-01/examples/Common/TriggerExportJobs.json
20
20
  */
21
21
  function exportJobs() {
22
22
  return __awaiter(this, void 0, void 0, function* () {
@@ -16,7 +16,7 @@ dotenv.config();
16
16
  * This sample demonstrates how to Move recovery point from one datastore to another store.
17
17
  *
18
18
  * @summary Move recovery point from one datastore to another store.
19
- * x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-04-01/examples/TriggerRecoveryPointMove_Post.json
19
+ * x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-06-01/examples/TriggerRecoveryPointMove_Post.json
20
20
  */
21
21
  function triggerRpMoveOperation() {
22
22
  return __awaiter(this, void 0, void 0, function* () {
@@ -16,7 +16,7 @@ dotenv.config();
16
16
  * This sample demonstrates how to Validate operation for specified backed up item. This is a synchronous operation.
17
17
  *
18
18
  * @summary Validate operation for specified backed up item. This is a synchronous operation.
19
- * x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-04-01/examples/AzureIaasVm/ValidateOperation_RestoreDisk.json
19
+ * x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-06-01/examples/AzureIaasVm/ValidateOperation_RestoreDisk.json
20
20
  */
21
21
  function validateOperation() {
22
22
  return __awaiter(this, void 0, void 0, function* () {
@@ -25,21 +25,24 @@ function validateOperation() {
25
25
  const vaultName = "testVault";
26
26
  const resourceGroupName = process.env["RECOVERYSERVICESBACKUP_RESOURCE_GROUP"] || "testRG";
27
27
  const parameters = {
28
- objectType: "ValidateIaasVMRestoreOperationRequest",
29
- restoreRequest: {
30
- createNewCloudService: true,
31
- encryptionDetails: { encryptionEnabled: false },
32
- identityInfo: {
33
- isSystemAssignedIdentity: false,
34
- managedIdentityResourceId: "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/asmaskarRG1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/asmaskartestmsi"
35
- },
36
- objectType: "IaasVMRestoreRequest",
37
- originalStorageAccountOption: false,
38
- recoveryPointId: "348916168024334",
39
- recoveryType: "RestoreDisks",
40
- region: "southeastasia",
41
- sourceResourceId: "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/netsdktestrg/providers/Microsoft.Compute/virtualMachines/netvmtestv2vm1",
42
- storageAccountId: "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testingRg/providers/Microsoft.Storage/storageAccounts/testAccount"
28
+ id: "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testVault/providers/Microsoft.RecoveryServices/vaults/testVault/backupFabrics/Azure/protectionContainers/IaasVMContainer;iaasvmcontainerv2;testRG;testvmName/protectedItems/VM;iaasvmcontainerv2;testRG;testvmName/recoveryPoints/348916168024334",
29
+ properties: {
30
+ objectType: "ValidateIaasVMRestoreOperationRequest",
31
+ restoreRequest: {
32
+ createNewCloudService: true,
33
+ encryptionDetails: { encryptionEnabled: false },
34
+ identityInfo: {
35
+ isSystemAssignedIdentity: false,
36
+ managedIdentityResourceId: "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/asmaskarRG1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/asmaskartestmsi"
37
+ },
38
+ objectType: "IaasVMRestoreRequest",
39
+ originalStorageAccountOption: false,
40
+ recoveryPointId: "348916168024334",
41
+ recoveryType: "RestoreDisks",
42
+ region: "southeastasia",
43
+ sourceResourceId: "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/netsdktestrg/providers/Microsoft.Compute/virtualMachines/netvmtestv2vm1",
44
+ storageAccountId: "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testingRg/providers/Microsoft.Storage/storageAccounts/testAccount"
45
+ }
43
46
  }
44
47
  };
45
48
  const credential = new DefaultAzureCredential();
@@ -52,7 +55,7 @@ function validateOperation() {
52
55
  * This sample demonstrates how to Validate operation for specified backed up item. This is a synchronous operation.
53
56
  *
54
57
  * @summary Validate operation for specified backed up item. This is a synchronous operation.
55
- * x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-04-01/examples/AzureIaasVm/ValidateOperation_RestoreDisk_IdentityBasedRestoreDetails.json
58
+ * x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-06-01/examples/AzureIaasVm/ValidateOperation_RestoreDisk_IdentityBasedRestoreDetails.json
56
59
  */
57
60
  function validateOperationWithIdentityBasedRestoreDetails() {
58
61
  return __awaiter(this, void 0, void 0, function* () {
@@ -61,23 +64,26 @@ function validateOperationWithIdentityBasedRestoreDetails() {
61
64
  const vaultName = "testVault";
62
65
  const resourceGroupName = process.env["RECOVERYSERVICESBACKUP_RESOURCE_GROUP"] || "testRG";
63
66
  const parameters = {
64
- objectType: "ValidateIaasVMRestoreOperationRequest",
65
- restoreRequest: {
66
- createNewCloudService: true,
67
- encryptionDetails: { encryptionEnabled: false },
68
- identityBasedRestoreDetails: {
69
- targetStorageAccountId: "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testingRg/providers/Microsoft.Storage/storageAccounts/testAccount"
70
- },
71
- identityInfo: {
72
- isSystemAssignedIdentity: false,
73
- managedIdentityResourceId: "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/asmaskarRG1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/asmaskartestmsi"
74
- },
75
- objectType: "IaasVMRestoreRequest",
76
- originalStorageAccountOption: false,
77
- recoveryPointId: "348916168024334",
78
- recoveryType: "RestoreDisks",
79
- region: "southeastasia",
80
- sourceResourceId: "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/netsdktestrg/providers/Microsoft.Compute/virtualMachines/netvmtestv2vm1"
67
+ id: "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testVault/providers/Microsoft.RecoveryServices/vaults/testVault/backupFabrics/Azure/protectionContainers/IaasVMContainer;iaasvmcontainerv2;testRG;testvmName/protectedItems/VM;iaasvmcontainerv2;testRG;testvmName/recoveryPoints/348916168024334",
68
+ properties: {
69
+ objectType: "ValidateIaasVMRestoreOperationRequest",
70
+ restoreRequest: {
71
+ createNewCloudService: true,
72
+ encryptionDetails: { encryptionEnabled: false },
73
+ identityBasedRestoreDetails: {
74
+ targetStorageAccountId: "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testingRg/providers/Microsoft.Storage/storageAccounts/testAccount"
75
+ },
76
+ identityInfo: {
77
+ isSystemAssignedIdentity: false,
78
+ managedIdentityResourceId: "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/asmaskarRG1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/asmaskartestmsi"
79
+ },
80
+ objectType: "IaasVMRestoreRequest",
81
+ originalStorageAccountOption: false,
82
+ recoveryPointId: "348916168024334",
83
+ recoveryType: "RestoreDisks",
84
+ region: "southeastasia",
85
+ sourceResourceId: "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/netsdktestrg/providers/Microsoft.Compute/virtualMachines/netvmtestv2vm1"
86
+ }
81
87
  }
82
88
  };
83
89
  const credential = new DefaultAzureCredential();
@@ -1 +1 @@
1
- {"version":3,"file":"operationValidateSample.js","sourceRoot":"","sources":["../../samples-dev/operationValidateSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAEL,4BAA4B,EAC7B,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,iBAAiB;;QAC9B,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,wCAAwC,CAAC;YACrD,sCAAsC,CAAC;QACzC,MAAM,SAAS,GAAG,WAAW,CAAC;QAC9B,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,uCAAuC,CAAC,IAAI,QAAQ,CAAC;QACnE,MAAM,UAAU,GAA0C;YACxD,UAAU,EAAE,uCAAuC;YACnD,cAAc,EAAE;gBACd,qBAAqB,EAAE,IAAI;gBAC3B,iBAAiB,EAAE,EAAE,iBAAiB,EAAE,KAAK,EAAE;gBAC/C,YAAY,EAAE;oBACZ,wBAAwB,EAAE,KAAK;oBAC/B,yBAAyB,EACvB,2JAA2J;iBAC9J;gBACD,UAAU,EAA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GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,4BAA4B,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAC5E,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,SAAS,CAAC,QAAQ,CAC5C,SAAS,EACT,iBAAiB,EACjB,UAAU,CACX,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,iBAAiB,EAAE,CAAC;QACpB,gDAAgD,EAAE,CAAC;IACrD,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
1
+ {"version":3,"file":"operationValidateSample.js","sourceRoot":"","sources":["../../samples-dev/operationValidateSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAEL,4BAA4B,EAC7B,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,iBAAiB;;QAC9B,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,wCAAwC,CAAC;YACrD,sCAAsC,CAAC;QACzC,MAAM,SAAS,GAAG,WAAW,CAAC;QAC9B,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,uCAAuC,CAAC,IAAI,QAAQ,CAAC;QACnE,MAAM,UAAU,GAAqC;YACnD,EAAE,EACA,sTAAsT;YACxT,UAAU,EAAE;gBACV,UAAU,EAAE,uCAAuC;gBACnD,cAAc,EAAE;oBACd,qBAAqB,EAAE,IAAI;oBAC3B,iBAAiB,EAAE,EAAE,iBAAiB,EAAE,KAAK,EAAE;oBAC/C,YAAY,EAAE;wBACZ,wBAA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AAiB;oBAClC,YAAY,EAAE,cAAc;oBAC5B,MAAM,EAAE,eAAe;oBACvB,gBAAgB,EACd,4IAA4I;iBAC/I;aACF;SACF,CAAC;QACF,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,4BAA4B,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAC5E,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,SAAS,CAAC,QAAQ,CAC5C,SAAS,EACT,iBAAiB,EACjB,UAAU,CACX,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,iBAAiB,EAAE,CAAC;QACpB,gDAAgD,EAAE,CAAC;IACrD,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -16,7 +16,7 @@ dotenv.config();
16
16
  * This sample demonstrates how to Returns the list of available operations.
17
17
  *
18
18
  * @summary Returns the list of available operations.
19
- * x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-04-01/examples/ListOperations.json
19
+ * x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-06-01/examples/ListOperations.json
20
20
  */
21
21
  function listOperations() {
22
22
  var _a, e_1, _b, _c;
@@ -16,7 +16,7 @@ dotenv.config();
16
16
  * This sample demonstrates how to Delete Private Endpoint requests. This call is made by Backup Admin.
17
17
  *
18
18
  * @summary Delete Private Endpoint requests. This call is made by Backup Admin.
19
- * x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-04-01/examples/PrivateEndpointConnection/DeletePrivateEndpointConnection.json
19
+ * x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-06-01/examples/PrivateEndpointConnection/DeletePrivateEndpointConnection.json
20
20
  */
21
21
  function deletePrivateEndpointConnection() {
22
22
  return __awaiter(this, void 0, void 0, function* () {
@@ -16,7 +16,7 @@ dotenv.config();
16
16
  * This sample demonstrates how to Get Private Endpoint Connection. This call is made by Backup Admin.
17
17
  *
18
18
  * @summary Get Private Endpoint Connection. This call is made by Backup Admin.
19
- * x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-04-01/examples/PrivateEndpointConnection/GetPrivateEndpointConnection.json
19
+ * x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-06-01/examples/PrivateEndpointConnection/GetPrivateEndpointConnection.json
20
20
  */
21
21
  function getPrivateEndpointConnection() {
22
22
  return __awaiter(this, void 0, void 0, function* () {
@@ -16,7 +16,7 @@ dotenv.config();
16
16
  * This sample demonstrates how to Approve or Reject Private Endpoint requests. This call is made by Backup Admin.
17
17
  *
18
18
  * @summary Approve or Reject Private Endpoint requests. This call is made by Backup Admin.
19
- * x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-04-01/examples/PrivateEndpointConnection/PutPrivateEndpointConnection.json
19
+ * x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-06-01/examples/PrivateEndpointConnection/PutPrivateEndpointConnection.json
20
20
  */
21
21
  function updatePrivateEndpointConnection() {
22
22
  return __awaiter(this, void 0, void 0, function* () {
@@ -16,7 +16,7 @@ dotenv.config();
16
16
  * This sample demonstrates how to Gets the operation status for a private endpoint connection.
17
17
  *
18
18
  * @summary Gets the operation status for a private endpoint connection.
19
- * x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-04-01/examples/PrivateEndpointConnection/GetPrivateEndpointConnectionOperationStatus.json
19
+ * x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-06-01/examples/PrivateEndpointConnection/GetPrivateEndpointConnectionOperationStatus.json
20
20
  */
21
21
  function getOperationStatus() {
22
22
  return __awaiter(this, void 0, void 0, function* () {
@@ -16,7 +16,7 @@ dotenv.config();
16
16
  * This sample demonstrates how to Lists the containers that can be registered to Recovery Services Vault.
17
17
  *
18
18
  * @summary Lists the containers that can be registered to Recovery Services Vault.
19
- * x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-04-01/examples/AzureStorage/ProtectableContainers_List.json
19
+ * x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-06-01/examples/AzureStorage/ProtectableContainers_List.json
20
20
  */
21
21
  function listProtectableItemsWithBackupManagementTypeFilterAsAzureStorage() {
22
22
  var _a, e_1, _b, _c;
@@ -16,7 +16,7 @@ dotenv.config();
16
16
  * This sample demonstrates how to Fetches the result of any operation on the backup item.
17
17
  *
18
18
  * @summary Fetches the result of any operation on the backup item.
19
- * x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-04-01/examples/AzureIaasVm/ProtectedItemOperationResults.json
19
+ * x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-06-01/examples/AzureIaasVm/ProtectedItemOperationResults.json
20
20
  */
21
21
  function getOperationResultsOfProtectedVM() {
22
22
  return __awaiter(this, void 0, void 0, function* () {
@@ -20,7 +20,7 @@ create jobs. This method returns the list of jobs associated with the operation.
20
20
  * @summary Fetches the status of an operation such as triggering a backup, restore. The status can be in progress, completed
21
21
  or failed. You can refer to the OperationStatus enum for all the possible states of the operation. Some operations
22
22
  create jobs. This method returns the list of jobs associated with the operation.
23
- * x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-04-01/examples/AzureIaasVm/ProtectedItemOperationStatus.json
23
+ * x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-06-01/examples/AzureIaasVm/ProtectedItemOperationStatus.json
24
24
  */
25
25
  function getOperationStatusOfProtectedVM() {
26
26
  return __awaiter(this, void 0, void 0, function* () {
@@ -18,7 +18,7 @@ asynchronous operation. To know the status of the operation, call the GetItemOpe
18
18
  *
19
19
  * @summary Enables backup of an item or to modifies the backup policy information of an already backed up item. This is an
20
20
  asynchronous operation. To know the status of the operation, call the GetItemOperationResult API.
21
- * x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-04-01/examples/AzureIaasVm/ConfigureProtection.json
21
+ * x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-06-01/examples/AzureIaasVm/ConfigureProtection.json
22
22
  */
23
23
  function enableProtectionOnAzureIaasVM() {
24
24
  return __awaiter(this, void 0, void 0, function* () {
@@ -48,7 +48,7 @@ asynchronous operation. To know the status of the operation, call the GetItemOpe
48
48
  *
49
49
  * @summary Enables backup of an item or to modifies the backup policy information of an already backed up item. This is an
50
50
  asynchronous operation. To know the status of the operation, call the GetItemOperationResult API.
51
- * x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-04-01/examples/AzureIaasVm/StopProtection.json
51
+ * x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-06-01/examples/AzureIaasVm/StopProtection.json
52
52
  */
53
53
  function stopProtectionWithRetainDataOnAzureIaasVM() {
54
54
  return __awaiter(this, void 0, void 0, function* () {
@@ -18,7 +18,7 @@ request, call the GetItemOperationResult API.
18
18
  *
19
19
  * @summary Used to disable backup of an item within a container. This is an asynchronous operation. To know the status of the
20
20
  request, call the GetItemOperationResult API.
21
- * x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-04-01/examples/Common/ProtectedItem_Delete.json
21
+ * x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-06-01/examples/Common/ProtectedItem_Delete.json
22
22
  */
23
23
  function deleteProtectionFromAzureVirtualMachine() {
24
24
  return __awaiter(this, void 0, void 0, function* () {
@@ -18,7 +18,7 @@ call the GetItemOperationResult API.
18
18
  *
19
19
  * @summary Provides the details of the backed up item. This is an asynchronous operation. To know the status of the operation,
20
20
  call the GetItemOperationResult API.
21
- * x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-04-01/examples/AzureIaasVm/ClassicCompute_ProtectedItem_Get.json
21
+ * x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-06-01/examples/AzureIaasVm/ClassicCompute_ProtectedItem_Get.json
22
22
  */
23
23
  function getProtectedClassicVirtualMachineDetails() {
24
24
  return __awaiter(this, void 0, void 0, function* () {
@@ -42,7 +42,7 @@ call the GetItemOperationResult API.
42
42
  *
43
43
  * @summary Provides the details of the backed up item. This is an asynchronous operation. To know the status of the operation,
44
44
  call the GetItemOperationResult API.
45
- * x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-04-01/examples/AzureIaasVm/Compute_ProtectedItem_Get.json
45
+ * x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-06-01/examples/AzureIaasVm/Compute_ProtectedItem_Get.json
46
46
  */
47
47
  function getProtectedVirtualMachineDetails() {
48
48
  return __awaiter(this, void 0, void 0, function* () {
@@ -16,7 +16,7 @@ dotenv.config();
16
16
  * This sample demonstrates how to Fetches the result of any operation on the container.
17
17
  *
18
18
  * @summary Fetches the result of any operation on the container.
19
- * x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-04-01/examples/AzureStorage/ProtectionContainers_Inquire_Result.json
19
+ * x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-06-01/examples/AzureStorage/ProtectionContainers_Inquire_Result.json
20
20
  */
21
21
  function getAzureStorageProtectionContainerOperationResult() {
22
22
  return __awaiter(this, void 0, void 0, function* () {
@@ -16,7 +16,7 @@ dotenv.config();
16
16
  * This sample demonstrates how to Provides the result of the refresh operation triggered by the BeginRefresh operation.
17
17
  *
18
18
  * @summary Provides the result of the refresh operation triggered by the BeginRefresh operation.
19
- * x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-04-01/examples/Common/RefreshContainers_OperationResults.json
19
+ * x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-06-01/examples/Common/RefreshContainers_OperationResults.json
20
20
  */
21
21
  function azureVMDiscoveryOperationResult() {
22
22
  return __awaiter(this, void 0, void 0, function* () {
@@ -16,7 +16,7 @@ dotenv.config();
16
16
  * This sample demonstrates how to Gets details of the specific container registered to your Recovery Services Vault.
17
17
  *
18
18
  * @summary Gets details of the specific container registered to your Recovery Services Vault.
19
- * x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-04-01/examples/AzureWorkload/ProtectionContainers_Get.json
19
+ * x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-06-01/examples/AzureWorkload/ProtectionContainers_Get.json
20
20
  */
21
21
  function getProtectionContainerDetails() {
22
22
  return __awaiter(this, void 0, void 0, function* () {
@@ -16,7 +16,7 @@ dotenv.config();
16
16
  * This sample demonstrates how to This is an async operation and the results should be tracked using location header or Azure-async-url.
17
17
  *
18
18
  * @summary This is an async operation and the results should be tracked using location header or Azure-async-url.
19
- * x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-04-01/examples/AzureStorage/ProtectionContainers_Inquire.json
19
+ * x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-06-01/examples/AzureStorage/ProtectionContainers_Inquire.json
20
20
  */
21
21
  function inquireAzureStorageProtectionContainers() {
22
22
  return __awaiter(this, void 0, void 0, function* () {
@@ -18,7 +18,7 @@ asynchronous operation. To know the status of the operation, call GetRefreshOper
18
18
  *
19
19
  * @summary Discovers all the containers in the subscription that can be backed up to Recovery Services Vault. This is an
20
20
  asynchronous operation. To know the status of the operation, call GetRefreshOperationResult API.
21
- * x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-04-01/examples/Common/RefreshContainers.json
21
+ * x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-06-01/examples/Common/RefreshContainers.json
22
22
  */
23
23
  function triggerAzureVMDiscovery() {
24
24
  return __awaiter(this, void 0, void 0, function* () {
@@ -20,7 +20,7 @@ the operation.
20
20
  * @summary Registers the container with Recovery Services vault.
21
21
  This is an asynchronous operation. To track the operation status, use location header to call get latest status of
22
22
  the operation.
23
- * x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-04-01/examples/AzureStorage/ProtectionContainers_Register.json
23
+ * x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-06-01/examples/AzureStorage/ProtectionContainers_Register.json
24
24
  */
25
25
  function registerAzureStorageProtectionContainers() {
26
26
  return __awaiter(this, void 0, void 0, function* () {
@@ -41,7 +41,7 @@ function registerAzureStorageProtectionContainers() {
41
41
  };
42
42
  const credential = new DefaultAzureCredential();
43
43
  const client = new RecoveryServicesBackupClient(credential, subscriptionId);
44
- const result = yield client.protectionContainers.register(vaultName, resourceGroupName, fabricName, containerName, parameters);
44
+ const result = yield client.protectionContainers.beginRegisterAndWait(vaultName, resourceGroupName, fabricName, containerName, parameters);
45
45
  console.log(result);
46
46
  });
47
47
  }
@@ -1 +1 @@
1
- {"version":3,"file":"protectionContainersRegisterSample.js","sourceRoot":"","sources":["../../samples-dev/protectionContainersRegisterSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAEL,4BAA4B,EAC7B,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;;;;;GASG;AACH,SAAe,wCAAwC;;QACrD,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,wCAAwC,CAAC;YACrD,sCAAsC,CAAC;QACzC,MAAM,SAAS,GAAG,kBAAkB,CAAC;QACrC,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,uCAAuC,CAAC,IAAI,eAAe,CAAC;QAC1E,MAAM,UAAU,GAAG,OAAO,CAAC;QAC3B,MAAM,aAAa,GAAG,sDAAsD,CAAC;QAC7E,MAAM,UAAU,GAAgC;YAC9C,UAAU,EAAE;gBACV,yBAAyB,EAAE,SAAS;gBACpC,oBAAoB,EAAE,cAAc;gBACpC,aAAa,EAAE,kBAAkB;gBACjC,YAAY,EAAE,eAAe;gBAC7B,gBAAgB,EACd,4IAA4I;aAC/I;SACF,CAAC;QACF,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,4BAA4B,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAC5E,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,oBAAoB,CAAC,QAAQ,CACvD,SAAS,EACT,iBAAiB,EACjB,UAAU,EACV,aAAa,EACb,UAAU,CACX,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,wCAAwC,EAAE,CAAC;IAC7C,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
1
+ {"version":3,"file":"protectionContainersRegisterSample.js","sourceRoot":"","sources":["../../samples-dev/protectionContainersRegisterSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;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ary Unregisters the given container from your Recovery Services Vault. This is an asynchronous operation. To determine
20
20
  whether the backend service has finished processing the request, call Get Container Operation Result API.
21
- * x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-04-01/examples/AzureWorkload/ProtectionContainers_Unregister.json
21
+ * x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-06-01/examples/AzureWorkload/ProtectionContainers_Unregister.json
22
22
  */
23
23
  function unregisterProtectionContainer() {
24
24
  return __awaiter(this, void 0, void 0, function* () {
@@ -16,7 +16,7 @@ dotenv.config();
16
16
  * This sample demonstrates how to Create Intent for Enabling backup of an item. This is a synchronous operation.
17
17
  *
18
18
  * @summary Create Intent for Enabling backup of an item. This is a synchronous operation.
19
- * x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-04-01/examples/AzureIaasVm/ProtectionIntent_CreateOrUpdate.json
19
+ * x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-06-01/examples/AzureIaasVm/ProtectionIntent_CreateOrUpdate.json
20
20
  */
21
21
  function createOrUpdateAzureVMProtectionIntent() {
22
22
  return __awaiter(this, void 0, void 0, function* () {
@@ -16,7 +16,7 @@ dotenv.config();
16
16
  * This sample demonstrates how to Used to remove intent from an item
17
17
  *
18
18
  * @summary Used to remove intent from an item
19
- * x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-04-01/examples/AzureWorkload/BackupProtectionIntent_Delete.json
19
+ * x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-06-01/examples/AzureWorkload/BackupProtectionIntent_Delete.json
20
20
  */
21
21
  function deleteProtectionIntentFromItem() {
22
22
  return __awaiter(this, void 0, void 0, function* () {
@@ -18,7 +18,7 @@ call the GetItemOperationResult API.
18
18
  *
19
19
  * @summary Provides the details of the protection intent up item. This is an asynchronous operation. To know the status of the operation,
20
20
  call the GetItemOperationResult API.
21
- * x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-04-01/examples/AzureWorkload/BackupProtectionIntent_Get.json
21
+ * x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-06-01/examples/AzureWorkload/BackupProtectionIntent_Get.json
22
22
  */
23
23
  function getProtectionIntentForAnItem() {
24
24
  return __awaiter(this, void 0, void 0, function* () {
@@ -22,7 +22,7 @@ dotenv.config();
22
22
  1. Vault capacity
23
23
  2. VM is already protected
24
24
  3. Any VM related configuration passed in properties.
25
- * x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-04-01/examples/AzureIaasVm/ProtectionIntent_Validate.json
25
+ * x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-06-01/examples/AzureIaasVm/ProtectionIntent_Validate.json
26
26
  */
27
27
  function validateEnableProtectionOnAzureVM() {
28
28
  return __awaiter(this, void 0, void 0, function* () {
@@ -18,7 +18,76 @@ using GetPolicyOperationResult API.
18
18
  *
19
19
  * @summary Creates or modifies a backup policy. This is an asynchronous operation. Status of the operation can be fetched
20
20
  using GetPolicyOperationResult API.
21
- * x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-04-01/examples/AzureStorage/ProtectionPolicies_CreateOrUpdate_Daily.json
21
+ * x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-06-01/examples/AzureStorage/ProtectionPolicies_CreateOrUpdate_Hardened.json
22
+ */
23
+ function createOrUpdateAzureStorageVaultStandardProtectionPolicy() {
24
+ return __awaiter(this, void 0, void 0, function* () {
25
+ const subscriptionId = process.env["RECOVERYSERVICESBACKUP_SUBSCRIPTION_ID"] ||
26
+ "00000000-0000-0000-0000-000000000000";
27
+ const vaultName = "swaggertestvault";
28
+ const resourceGroupName = process.env["RECOVERYSERVICESBACKUP_RESOURCE_GROUP"] || "SwaggerTestRg";
29
+ const policyName = "newPolicyV2";
30
+ const parameters = {
31
+ properties: {
32
+ backupManagementType: "AzureStorage",
33
+ schedulePolicy: {
34
+ schedulePolicyType: "SimpleSchedulePolicy",
35
+ scheduleRunFrequency: "Daily",
36
+ scheduleRunTimes: [new Date("2023-07-18T09:30:00.000Z")]
37
+ },
38
+ timeZone: "UTC",
39
+ vaultRetentionPolicy: {
40
+ snapshotRetentionInDays: 5,
41
+ vaultRetention: {
42
+ dailySchedule: {
43
+ retentionDuration: { count: 30, durationType: "Days" },
44
+ retentionTimes: [new Date("2023-07-18T09:30:00.000Z")]
45
+ },
46
+ monthlySchedule: {
47
+ retentionDuration: { count: 60, durationType: "Months" },
48
+ retentionScheduleDaily: {},
49
+ retentionScheduleFormatType: "Weekly",
50
+ retentionScheduleWeekly: {
51
+ daysOfTheWeek: ["Sunday"],
52
+ weeksOfTheMonth: ["First"]
53
+ },
54
+ retentionTimes: [new Date("2023-07-18T09:30:00.000Z")]
55
+ },
56
+ retentionPolicyType: "LongTermRetentionPolicy",
57
+ weeklySchedule: {
58
+ daysOfTheWeek: ["Sunday"],
59
+ retentionDuration: { count: 12, durationType: "Weeks" },
60
+ retentionTimes: [new Date("2023-07-18T09:30:00.000Z")]
61
+ },
62
+ yearlySchedule: {
63
+ monthsOfYear: ["January"],
64
+ retentionDuration: { count: 10, durationType: "Years" },
65
+ retentionScheduleDaily: {},
66
+ retentionScheduleFormatType: "Weekly",
67
+ retentionScheduleWeekly: {
68
+ daysOfTheWeek: ["Sunday"],
69
+ weeksOfTheMonth: ["First"]
70
+ },
71
+ retentionTimes: [new Date("2023-07-18T09:30:00.000Z")]
72
+ }
73
+ }
74
+ },
75
+ workLoadType: "AzureFileShare"
76
+ }
77
+ };
78
+ const credential = new DefaultAzureCredential();
79
+ const client = new RecoveryServicesBackupClient(credential, subscriptionId);
80
+ const result = yield client.protectionPolicies.createOrUpdate(vaultName, resourceGroupName, policyName, parameters);
81
+ console.log(result);
82
+ });
83
+ }
84
+ /**
85
+ * This sample demonstrates how to Creates or modifies a backup policy. This is an asynchronous operation. Status of the operation can be fetched
86
+ using GetPolicyOperationResult API.
87
+ *
88
+ * @summary Creates or modifies a backup policy. This is an asynchronous operation. Status of the operation can be fetched
89
+ using GetPolicyOperationResult API.
90
+ * x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-06-01/examples/AzureStorage/ProtectionPolicies_CreateOrUpdate_Daily.json
22
91
  */
23
92
  function createOrUpdateDailyAzureStorageProtectionPolicy() {
24
93
  return __awaiter(this, void 0, void 0, function* () {
@@ -84,7 +153,7 @@ using GetPolicyOperationResult API.
84
153
  *
85
154
  * @summary Creates or modifies a backup policy. This is an asynchronous operation. Status of the operation can be fetched
86
155
  using GetPolicyOperationResult API.
87
- * x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-04-01/examples/AzureIaasVm/V2Policy/IaaS_v2_hourly.json
156
+ * x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-06-01/examples/AzureIaasVm/V2Policy/IaaS_v2_hourly.json
88
157
  */
89
158
  function createOrUpdateEnhancedAzureVMProtectionPolicyWithHourlyBackup() {
90
159
  return __awaiter(this, void 0, void 0, function* () {
@@ -155,7 +224,7 @@ using GetPolicyOperationResult API.
155
224
  *
156
225
  * @summary Creates or modifies a backup policy. This is an asynchronous operation. Status of the operation can be fetched
157
226
  using GetPolicyOperationResult API.
158
- * x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-04-01/examples/AzureIaasVm/V2Policy/IaaS_v2_daily.json
227
+ * x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-06-01/examples/AzureIaasVm/V2Policy/IaaS_v2_daily.json
159
228
  */
160
229
  function createOrUpdateEnhancedAzureVMProtectionPolicyWithDailyBackup() {
161
230
  return __awaiter(this, void 0, void 0, function* () {
@@ -222,7 +291,7 @@ using GetPolicyOperationResult API.
222
291
  *
223
292
  * @summary Creates or modifies a backup policy. This is an asynchronous operation. Status of the operation can be fetched
224
293
  using GetPolicyOperationResult API.
225
- * x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-04-01/examples/AzureIaasVm/ProtectionPolicies_CreateOrUpdate_Complex.json
294
+ * x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-06-01/examples/AzureIaasVm/ProtectionPolicies_CreateOrUpdate_Complex.json
226
295
  */
227
296
  function createOrUpdateFullAzureVMProtectionPolicy() {
228
297
  return __awaiter(this, void 0, void 0, function* () {
@@ -282,7 +351,7 @@ using GetPolicyOperationResult API.
282
351
  *
283
352
  * @summary Creates or modifies a backup policy. This is an asynchronous operation. Status of the operation can be fetched
284
353
  using GetPolicyOperationResult API.
285
- * x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-04-01/examples/AzureWorkload/ProtectionPolicies_CreateOrUpdate_Complex.json
354
+ * x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-06-01/examples/AzureWorkload/ProtectionPolicies_CreateOrUpdate_Complex.json
286
355
  */
287
356
  function createOrUpdateFullAzureWorkloadProtectionPolicy() {
288
357
  return __awaiter(this, void 0, void 0, function* () {
@@ -372,7 +441,7 @@ using GetPolicyOperationResult API.
372
441
  *
373
442
  * @summary Creates or modifies a backup policy. This is an asynchronous operation. Status of the operation can be fetched
374
443
  using GetPolicyOperationResult API.
375
- * x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-04-01/examples/AzureStorage/ProtectionPolicies_CreateOrUpdate_Hourly.json
444
+ * x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-06-01/examples/AzureStorage/ProtectionPolicies_CreateOrUpdate_Hourly.json
376
445
  */
377
446
  function createOrUpdateHourlyAzureStorageProtectionPolicy() {
378
447
  return __awaiter(this, void 0, void 0, function* () {
@@ -442,7 +511,7 @@ using GetPolicyOperationResult API.
442
511
  *
443
512
  * @summary Creates or modifies a backup policy. This is an asynchronous operation. Status of the operation can be fetched
444
513
  using GetPolicyOperationResult API.
445
- * x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-04-01/examples/AzureIaasVm/ProtectionPolicies_CreateOrUpdate_Simple.json
514
+ * x-ms-original-file: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/stable/2023-06-01/examples/AzureIaasVm/ProtectionPolicies_CreateOrUpdate_Simple.json
446
515
  */
447
516
  function createOrUpdateSimpleAzureVMProtectionPolicy() {
448
517
  return __awaiter(this, void 0, void 0, function* () {
@@ -477,6 +546,7 @@ function createOrUpdateSimpleAzureVMProtectionPolicy() {
477
546
  }
478
547
  function main() {
479
548
  return __awaiter(this, void 0, void 0, function* () {
549
+ createOrUpdateAzureStorageVaultStandardProtectionPolicy();
480
550
  createOrUpdateDailyAzureStorageProtectionPolicy();
481
551
  createOrUpdateEnhancedAzureVMProtectionPolicyWithHourlyBackup();
482
552
  createOrUpdateEnhancedAzureVMProtectionPolicyWithDailyBackup();