@azure/arm-dataprotection 1.0.0-beta.1 → 1.0.0-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (219) hide show
  1. package/CHANGELOG.md +1 -1
  2. package/README.md +1 -1
  3. package/dist/index.js +536 -979
  4. package/dist/index.js.map +1 -1
  5. package/dist/index.min.js +1 -1
  6. package/dist/index.min.js.map +1 -1
  7. package/dist-esm/samples-dev/backupInstancesAdhocBackupSample.js +1 -1
  8. package/dist-esm/samples-dev/backupInstancesCreateOrUpdateSample.js +1 -1
  9. package/dist-esm/samples-dev/backupInstancesDeleteSample.js +1 -1
  10. package/dist-esm/samples-dev/backupInstancesGetBackupInstanceOperationResultSample.js +1 -1
  11. package/dist-esm/samples-dev/backupInstancesGetSample.js +1 -1
  12. package/dist-esm/samples-dev/backupInstancesListSample.js +1 -1
  13. package/dist-esm/samples-dev/backupInstancesResumeBackupsSample.js +1 -1
  14. package/dist-esm/samples-dev/backupInstancesResumeProtectionSample.js +1 -1
  15. package/dist-esm/samples-dev/backupInstancesStopProtectionSample.js +1 -1
  16. package/dist-esm/samples-dev/backupInstancesSuspendBackupsSample.js +1 -1
  17. package/dist-esm/samples-dev/backupInstancesSyncBackupInstanceSample.js +1 -1
  18. package/dist-esm/samples-dev/backupInstancesTriggerRehydrateSample.js +1 -1
  19. package/dist-esm/samples-dev/backupInstancesTriggerRestoreSample.js +3 -3
  20. package/dist-esm/samples-dev/backupInstancesValidateForBackupSample.js +1 -1
  21. package/dist-esm/samples-dev/backupInstancesValidateForRestoreSample.js +1 -1
  22. package/dist-esm/samples-dev/backupPoliciesCreateOrUpdateSample.js +1 -1
  23. package/dist-esm/samples-dev/backupPoliciesDeleteSample.js +1 -1
  24. package/dist-esm/samples-dev/backupPoliciesGetSample.js +1 -1
  25. package/dist-esm/samples-dev/backupPoliciesListSample.js +1 -1
  26. package/dist-esm/samples-dev/backupVaultOperationResultsGetSample.js +1 -1
  27. package/dist-esm/samples-dev/backupVaultsCheckNameAvailabilitySample.js +1 -1
  28. package/dist-esm/samples-dev/backupVaultsCreateOrUpdateSample.js +2 -2
  29. package/dist-esm/samples-dev/backupVaultsDeleteSample.js +2 -2
  30. package/dist-esm/samples-dev/backupVaultsDeleteSample.js.map +1 -1
  31. package/dist-esm/samples-dev/backupVaultsGetInResourceGroupSample.js +1 -1
  32. package/dist-esm/samples-dev/backupVaultsGetInSubscriptionSample.js +1 -1
  33. package/dist-esm/samples-dev/backupVaultsGetSample.js +2 -2
  34. package/dist-esm/samples-dev/backupVaultsUpdateSample.js +1 -1
  35. package/dist-esm/samples-dev/dataProtectionCheckFeatureSupportSample.js +1 -1
  36. package/dist-esm/samples-dev/dataProtectionOperationsListSample.js +1 -1
  37. package/dist-esm/samples-dev/deletedBackupInstancesGetSample.js +1 -1
  38. package/dist-esm/samples-dev/deletedBackupInstancesListSample.js +1 -1
  39. package/dist-esm/samples-dev/deletedBackupInstancesUndeleteSample.js +1 -1
  40. package/dist-esm/samples-dev/exportJobsOperationResultGetSample.js +1 -1
  41. package/dist-esm/samples-dev/exportJobsTriggerSample.js +1 -1
  42. package/dist-esm/samples-dev/jobsGetSample.js +1 -1
  43. package/dist-esm/samples-dev/jobsListSample.js +1 -1
  44. package/dist-esm/samples-dev/operationResultGetSample.js +1 -1
  45. package/dist-esm/samples-dev/operationStatusBackupVaultContextGetSample.js +1 -1
  46. package/dist-esm/samples-dev/operationStatusGetSample.js +1 -1
  47. package/dist-esm/samples-dev/operationStatusResourceGroupContextGetSample.js +1 -1
  48. package/dist-esm/samples-dev/recoveryPointsGetSample.js +1 -1
  49. package/dist-esm/samples-dev/recoveryPointsListSample.js +1 -1
  50. package/dist-esm/samples-dev/resourceGuardsDeleteSample.js +1 -1
  51. package/dist-esm/samples-dev/resourceGuardsGetBackupSecurityPinRequestsObjectsSample.js +1 -1
  52. package/dist-esm/samples-dev/resourceGuardsGetDefaultBackupSecurityPinRequestsObjectSample.js +1 -1
  53. package/dist-esm/samples-dev/resourceGuardsGetDefaultDeleteProtectedItemRequestsObjectSample.js +1 -1
  54. package/dist-esm/samples-dev/resourceGuardsGetDefaultDeleteResourceGuardProxyRequestsObjectSample.js +1 -1
  55. package/dist-esm/samples-dev/resourceGuardsGetDefaultDisableSoftDeleteRequestsObjectSample.js +1 -1
  56. package/dist-esm/samples-dev/resourceGuardsGetDefaultUpdateProtectedItemRequestsObjectSample.js +1 -1
  57. package/dist-esm/samples-dev/resourceGuardsGetDefaultUpdateProtectionPolicyRequestsObjectSample.js +1 -1
  58. package/dist-esm/samples-dev/resourceGuardsGetDeleteProtectedItemRequestsObjectsSample.js +1 -1
  59. package/dist-esm/samples-dev/resourceGuardsGetDeleteResourceGuardProxyRequestsObjectsSample.js +1 -1
  60. package/dist-esm/samples-dev/resourceGuardsGetDisableSoftDeleteRequestsObjectsSample.js +1 -1
  61. package/dist-esm/samples-dev/resourceGuardsGetResourcesInResourceGroupSample.js +1 -1
  62. package/dist-esm/samples-dev/resourceGuardsGetResourcesInSubscriptionSample.js +1 -1
  63. package/dist-esm/samples-dev/resourceGuardsGetSample.js +1 -1
  64. package/dist-esm/samples-dev/resourceGuardsGetUpdateProtectedItemRequestsObjectsSample.js +1 -1
  65. package/dist-esm/samples-dev/resourceGuardsGetUpdateProtectionPolicyRequestsObjectsSample.js +1 -1
  66. package/dist-esm/samples-dev/resourceGuardsPatchSample.js +1 -1
  67. package/dist-esm/samples-dev/resourceGuardsPatchSample.js.map +1 -1
  68. package/dist-esm/samples-dev/resourceGuardsPutSample.js +1 -1
  69. package/dist-esm/samples-dev/restorableTimeRangesFindSample.js +1 -1
  70. package/dist-esm/src/dataProtectionClient.d.ts +2 -4
  71. package/dist-esm/src/dataProtectionClient.d.ts.map +1 -1
  72. package/dist-esm/src/dataProtectionClient.js +4 -6
  73. package/dist-esm/src/dataProtectionClient.js.map +1 -1
  74. package/dist-esm/src/models/index.d.ts +86 -121
  75. package/dist-esm/src/models/index.d.ts.map +1 -1
  76. package/dist-esm/src/models/index.js +14 -16
  77. package/dist-esm/src/models/index.js.map +1 -1
  78. package/dist-esm/src/models/mappers.d.ts +6 -8
  79. package/dist-esm/src/models/mappers.d.ts.map +1 -1
  80. package/dist-esm/src/models/mappers.js +119 -171
  81. package/dist-esm/src/models/mappers.js.map +1 -1
  82. package/dist-esm/src/models/parameters.d.ts +1 -4
  83. package/dist-esm/src/models/parameters.d.ts.map +1 -1
  84. package/dist-esm/src/models/parameters.js +11 -31
  85. package/dist-esm/src/models/parameters.js.map +1 -1
  86. package/dist-esm/src/operations/backupInstances.d.ts +53 -53
  87. package/dist-esm/src/operations/backupInstances.js +53 -53
  88. package/dist-esm/src/operations/backupPolicies.d.ts +6 -6
  89. package/dist-esm/src/operations/backupPolicies.js +6 -6
  90. package/dist-esm/src/operations/backupVaultOperationResults.d.ts +1 -1
  91. package/dist-esm/src/operations/backupVaultOperationResults.js +1 -1
  92. package/dist-esm/src/operations/backupVaults.d.ts +18 -11
  93. package/dist-esm/src/operations/backupVaults.d.ts.map +1 -1
  94. package/dist-esm/src/operations/backupVaults.js +55 -12
  95. package/dist-esm/src/operations/backupVaults.js.map +1 -1
  96. package/dist-esm/src/operations/deletedBackupInstances.d.ts +6 -6
  97. package/dist-esm/src/operations/deletedBackupInstances.js +6 -6
  98. package/dist-esm/src/operations/exportJobs.d.ts +2 -2
  99. package/dist-esm/src/operations/exportJobs.js +2 -2
  100. package/dist-esm/src/operations/exportJobsOperationResult.d.ts +1 -1
  101. package/dist-esm/src/operations/exportJobsOperationResult.js +1 -1
  102. package/dist-esm/src/operations/index.d.ts +0 -2
  103. package/dist-esm/src/operations/index.d.ts.map +1 -1
  104. package/dist-esm/src/operations/index.js +0 -2
  105. package/dist-esm/src/operations/index.js.map +1 -1
  106. package/dist-esm/src/operations/jobs.d.ts +4 -4
  107. package/dist-esm/src/operations/jobs.js +4 -4
  108. package/dist-esm/src/operations/operationStatusBackupVaultContext.d.ts +1 -1
  109. package/dist-esm/src/operations/operationStatusBackupVaultContext.js +1 -1
  110. package/dist-esm/src/operations/operationStatusResourceGroupContext.d.ts +1 -1
  111. package/dist-esm/src/operations/operationStatusResourceGroupContext.js +1 -1
  112. package/dist-esm/src/operations/recoveryPoints.d.ts +8 -8
  113. package/dist-esm/src/operations/recoveryPoints.js +8 -8
  114. package/dist-esm/src/operations/resourceGuards.d.ts +33 -33
  115. package/dist-esm/src/operations/resourceGuards.d.ts.map +1 -1
  116. package/dist-esm/src/operations/resourceGuards.js +35 -32
  117. package/dist-esm/src/operations/resourceGuards.js.map +1 -1
  118. package/dist-esm/src/operations/restorableTimeRanges.d.ts +2 -2
  119. package/dist-esm/src/operations/restorableTimeRanges.js +2 -2
  120. package/dist-esm/src/operationsInterfaces/backupInstances.d.ts +51 -51
  121. package/dist-esm/src/operationsInterfaces/backupPolicies.d.ts +4 -4
  122. package/dist-esm/src/operationsInterfaces/backupVaultOperationResults.d.ts +1 -1
  123. package/dist-esm/src/operationsInterfaces/backupVaults.d.ts +16 -9
  124. package/dist-esm/src/operationsInterfaces/backupVaults.d.ts.map +1 -1
  125. package/dist-esm/src/operationsInterfaces/deletedBackupInstances.d.ts +4 -4
  126. package/dist-esm/src/operationsInterfaces/exportJobs.d.ts +2 -2
  127. package/dist-esm/src/operationsInterfaces/exportJobsOperationResult.d.ts +1 -1
  128. package/dist-esm/src/operationsInterfaces/index.d.ts +0 -2
  129. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -1
  130. package/dist-esm/src/operationsInterfaces/index.js +0 -2
  131. package/dist-esm/src/operationsInterfaces/index.js.map +1 -1
  132. package/dist-esm/src/operationsInterfaces/jobs.d.ts +2 -2
  133. package/dist-esm/src/operationsInterfaces/operationStatusBackupVaultContext.d.ts +1 -1
  134. package/dist-esm/src/operationsInterfaces/operationStatusResourceGroupContext.d.ts +1 -1
  135. package/dist-esm/src/operationsInterfaces/recoveryPoints.d.ts +4 -4
  136. package/dist-esm/src/operationsInterfaces/resourceGuards.d.ts +19 -19
  137. package/dist-esm/src/operationsInterfaces/resourceGuards.d.ts.map +1 -1
  138. package/dist-esm/src/operationsInterfaces/restorableTimeRanges.d.ts +2 -2
  139. package/dist-esm/test/dataprotection_operations_test.spec.js +3 -3
  140. package/dist-esm/test/dataprotection_operations_test.spec.js.map +1 -1
  141. package/package.json +5 -5
  142. package/review/arm-dataprotection.api.md +54 -146
  143. package/src/dataProtectionClient.ts +5 -15
  144. package/src/models/index.ts +93 -146
  145. package/src/models/mappers.ts +129 -185
  146. package/src/models/parameters.ts +12 -36
  147. package/src/operations/backupInstances.ts +53 -53
  148. package/src/operations/backupPolicies.ts +6 -6
  149. package/src/operations/backupVaultOperationResults.ts +1 -1
  150. package/src/operations/backupVaults.ts +79 -13
  151. package/src/operations/deletedBackupInstances.ts +6 -6
  152. package/src/operations/exportJobs.ts +2 -2
  153. package/src/operations/exportJobsOperationResult.ts +1 -1
  154. package/src/operations/index.ts +0 -2
  155. package/src/operations/jobs.ts +4 -4
  156. package/src/operations/operationStatusBackupVaultContext.ts +1 -1
  157. package/src/operations/operationStatusResourceGroupContext.ts +1 -1
  158. package/src/operations/recoveryPoints.ts +8 -8
  159. package/src/operations/resourceGuards.ts +37 -34
  160. package/src/operations/restorableTimeRanges.ts +2 -2
  161. package/src/operationsInterfaces/backupInstances.ts +51 -51
  162. package/src/operationsInterfaces/backupPolicies.ts +4 -4
  163. package/src/operationsInterfaces/backupVaultOperationResults.ts +1 -1
  164. package/src/operationsInterfaces/backupVaults.ts +20 -9
  165. package/src/operationsInterfaces/deletedBackupInstances.ts +4 -4
  166. package/src/operationsInterfaces/exportJobs.ts +2 -2
  167. package/src/operationsInterfaces/exportJobsOperationResult.ts +1 -1
  168. package/src/operationsInterfaces/index.ts +0 -2
  169. package/src/operationsInterfaces/jobs.ts +2 -2
  170. package/src/operationsInterfaces/operationStatusBackupVaultContext.ts +1 -1
  171. package/src/operationsInterfaces/operationStatusResourceGroupContext.ts +1 -1
  172. package/src/operationsInterfaces/recoveryPoints.ts +4 -4
  173. package/src/operationsInterfaces/resourceGuards.ts +19 -19
  174. package/src/operationsInterfaces/restorableTimeRanges.ts +2 -2
  175. package/types/arm-dataprotection.d.ts +207 -304
  176. package/dist-esm/samples-dev/backupInstancesExtensionRoutingListSample.d.ts +0 -2
  177. package/dist-esm/samples-dev/backupInstancesExtensionRoutingListSample.d.ts.map +0 -1
  178. package/dist-esm/samples-dev/backupInstancesExtensionRoutingListSample.js +0 -52
  179. package/dist-esm/samples-dev/backupInstancesExtensionRoutingListSample.js.map +0 -1
  180. package/dist-esm/samples-dev/dppResourceGuardProxyDeleteSample.d.ts +0 -2
  181. package/dist-esm/samples-dev/dppResourceGuardProxyDeleteSample.d.ts.map +0 -1
  182. package/dist-esm/samples-dev/dppResourceGuardProxyDeleteSample.js +0 -40
  183. package/dist-esm/samples-dev/dppResourceGuardProxyDeleteSample.js.map +0 -1
  184. package/dist-esm/samples-dev/dppResourceGuardProxyGetSample.d.ts +0 -2
  185. package/dist-esm/samples-dev/dppResourceGuardProxyGetSample.d.ts.map +0 -1
  186. package/dist-esm/samples-dev/dppResourceGuardProxyGetSample.js +0 -40
  187. package/dist-esm/samples-dev/dppResourceGuardProxyGetSample.js.map +0 -1
  188. package/dist-esm/samples-dev/dppResourceGuardProxyListSample.d.ts +0 -2
  189. package/dist-esm/samples-dev/dppResourceGuardProxyListSample.d.ts.map +0 -1
  190. package/dist-esm/samples-dev/dppResourceGuardProxyListSample.js +0 -53
  191. package/dist-esm/samples-dev/dppResourceGuardProxyListSample.js.map +0 -1
  192. package/dist-esm/samples-dev/dppResourceGuardProxyPutSample.d.ts +0 -2
  193. package/dist-esm/samples-dev/dppResourceGuardProxyPutSample.d.ts.map +0 -1
  194. package/dist-esm/samples-dev/dppResourceGuardProxyPutSample.js +0 -45
  195. package/dist-esm/samples-dev/dppResourceGuardProxyPutSample.js.map +0 -1
  196. package/dist-esm/samples-dev/dppResourceGuardProxyUnlockDeleteSample.d.ts +0 -2
  197. package/dist-esm/samples-dev/dppResourceGuardProxyUnlockDeleteSample.d.ts.map +0 -1
  198. package/dist-esm/samples-dev/dppResourceGuardProxyUnlockDeleteSample.js +0 -46
  199. package/dist-esm/samples-dev/dppResourceGuardProxyUnlockDeleteSample.js.map +0 -1
  200. package/dist-esm/src/operations/backupInstancesExtensionRouting.d.ts +0 -35
  201. package/dist-esm/src/operations/backupInstancesExtensionRouting.d.ts.map +0 -1
  202. package/dist-esm/src/operations/backupInstancesExtensionRouting.js +0 -134
  203. package/dist-esm/src/operations/backupInstancesExtensionRouting.js.map +0 -1
  204. package/dist-esm/src/operations/dppResourceGuardProxy.d.ts +0 -66
  205. package/dist-esm/src/operations/dppResourceGuardProxy.d.ts.map +0 -1
  206. package/dist-esm/src/operations/dppResourceGuardProxy.js +0 -287
  207. package/dist-esm/src/operations/dppResourceGuardProxy.js.map +0 -1
  208. package/dist-esm/src/operationsInterfaces/backupInstancesExtensionRouting.d.ts +0 -12
  209. package/dist-esm/src/operationsInterfaces/backupInstancesExtensionRouting.d.ts.map +0 -1
  210. package/dist-esm/src/operationsInterfaces/backupInstancesExtensionRouting.js +0 -9
  211. package/dist-esm/src/operationsInterfaces/backupInstancesExtensionRouting.js.map +0 -1
  212. package/dist-esm/src/operationsInterfaces/dppResourceGuardProxy.d.ts +0 -42
  213. package/dist-esm/src/operationsInterfaces/dppResourceGuardProxy.d.ts.map +0 -1
  214. package/dist-esm/src/operationsInterfaces/dppResourceGuardProxy.js +0 -9
  215. package/dist-esm/src/operationsInterfaces/dppResourceGuardProxy.js.map +0 -1
  216. package/src/operations/backupInstancesExtensionRouting.ts +0 -161
  217. package/src/operations/dppResourceGuardProxy.ts +0 -383
  218. package/src/operationsInterfaces/backupInstancesExtensionRouting.ts +0 -27
  219. package/src/operationsInterfaces/dppResourceGuardProxy.ts +0 -88
@@ -16,7 +16,7 @@ dotenv.config();
16
16
  * This sample demonstrates how to Trigger adhoc backup
17
17
  *
18
18
  * @summary Trigger adhoc backup
19
- * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/BackupInstanceOperations/TriggerBackup.json
19
+ * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/BackupInstanceOperations/TriggerBackup.json
20
20
  */
21
21
  function triggerAdhocBackup() {
22
22
  return __awaiter(this, void 0, void 0, function* () {
@@ -16,7 +16,7 @@ dotenv.config();
16
16
  * This sample demonstrates how to Create or update a backup instance in a backup vault
17
17
  *
18
18
  * @summary Create or update a backup instance in a backup vault
19
- * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/BackupInstanceOperations/PutBackupInstance.json
19
+ * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/BackupInstanceOperations/PutBackupInstance.json
20
20
  */
21
21
  function createBackupInstance() {
22
22
  return __awaiter(this, void 0, void 0, function* () {
@@ -16,7 +16,7 @@ dotenv.config();
16
16
  * This sample demonstrates how to Delete a backup instance in a backup vault
17
17
  *
18
18
  * @summary Delete a backup instance in a backup vault
19
- * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/BackupInstanceOperations/DeleteBackupInstance.json
19
+ * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/BackupInstanceOperations/DeleteBackupInstance.json
20
20
  */
21
21
  function deleteBackupInstance() {
22
22
  return __awaiter(this, void 0, void 0, function* () {
@@ -16,7 +16,7 @@ dotenv.config();
16
16
  * This sample demonstrates how to Get result of backup instance creation operation
17
17
  *
18
18
  * @summary Get result of backup instance creation operation
19
- * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/BackupInstanceOperations/GetBackupInstanceOperationResult.json
19
+ * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/BackupInstanceOperations/GetBackupInstanceOperationResult.json
20
20
  */
21
21
  function getBackupInstanceOperationResult() {
22
22
  return __awaiter(this, void 0, void 0, function* () {
@@ -16,7 +16,7 @@ dotenv.config();
16
16
  * This sample demonstrates how to Gets a backup instance with name in a backup vault
17
17
  *
18
18
  * @summary Gets a backup instance with name in a backup vault
19
- * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/BackupInstanceOperations/GetBackupInstance.json
19
+ * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/BackupInstanceOperations/GetBackupInstance.json
20
20
  */
21
21
  function getBackupInstance() {
22
22
  return __awaiter(this, void 0, void 0, function* () {
@@ -16,7 +16,7 @@ dotenv.config();
16
16
  * This sample demonstrates how to Gets a backup instances belonging to a backup vault
17
17
  *
18
18
  * @summary Gets a backup instances belonging to a backup vault
19
- * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/BackupInstanceOperations/ListBackupInstances.json
19
+ * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/BackupInstanceOperations/ListBackupInstances.json
20
20
  */
21
21
  function listBackupInstancesInAVault() {
22
22
  var e_1, _a;
@@ -16,7 +16,7 @@ dotenv.config();
16
16
  * This sample demonstrates how to This operation will resume backups for backup instance
17
17
  *
18
18
  * @summary This operation will resume backups for backup instance
19
- * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/BackupInstanceOperations/ResumeBackups.json
19
+ * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/BackupInstanceOperations/ResumeBackups.json
20
20
  */
21
21
  function resumeBackups() {
22
22
  return __awaiter(this, void 0, void 0, function* () {
@@ -16,7 +16,7 @@ dotenv.config();
16
16
  * This sample demonstrates how to This operation will resume protection for a stopped backup instance
17
17
  *
18
18
  * @summary This operation will resume protection for a stopped backup instance
19
- * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/BackupInstanceOperations/ResumeProtection.json
19
+ * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/BackupInstanceOperations/ResumeProtection.json
20
20
  */
21
21
  function resumeProtection() {
22
22
  return __awaiter(this, void 0, void 0, function* () {
@@ -16,7 +16,7 @@ dotenv.config();
16
16
  * This sample demonstrates how to This operation will stop protection of a backup instance and data will be held forever
17
17
  *
18
18
  * @summary This operation will stop protection of a backup instance and data will be held forever
19
- * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/BackupInstanceOperations/StopProtection.json
19
+ * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/BackupInstanceOperations/StopProtection.json
20
20
  */
21
21
  function stopProtection() {
22
22
  return __awaiter(this, void 0, void 0, function* () {
@@ -16,7 +16,7 @@ dotenv.config();
16
16
  * This sample demonstrates how to This operation will stop backup for a backup instance and retains the backup data as per the policy (except latest Recovery point, which will be retained forever)
17
17
  *
18
18
  * @summary This operation will stop backup for a backup instance and retains the backup data as per the policy (except latest Recovery point, which will be retained forever)
19
- * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/BackupInstanceOperations/SuspendBackups.json
19
+ * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/BackupInstanceOperations/SuspendBackups.json
20
20
  */
21
21
  function suspendBackups() {
22
22
  return __awaiter(this, void 0, void 0, function* () {
@@ -18,7 +18,7 @@ This action will retry last failed operation and will bring backup instance to v
18
18
  *
19
19
  * @summary Sync backup instance again in case of failure
20
20
  This action will retry last failed operation and will bring backup instance to valid state
21
- * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/BackupInstanceOperations/SyncBackupInstance.json
21
+ * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/BackupInstanceOperations/SyncBackupInstance.json
22
22
  */
23
23
  function syncBackupInstance() {
24
24
  return __awaiter(this, void 0, void 0, function* () {
@@ -16,7 +16,7 @@ dotenv.config();
16
16
  * This sample demonstrates how to rehydrate recovery point for restore for a BackupInstance
17
17
  *
18
18
  * @summary rehydrate recovery point for restore for a BackupInstance
19
- * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/BackupInstanceOperations/TriggerRehydrate.json
19
+ * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/BackupInstanceOperations/TriggerRehydrate.json
20
20
  */
21
21
  function triggerRehydrate() {
22
22
  return __awaiter(this, void 0, void 0, function* () {
@@ -16,7 +16,7 @@ dotenv.config();
16
16
  * This sample demonstrates how to Triggers restore for a BackupInstance
17
17
  *
18
18
  * @summary Triggers restore for a BackupInstance
19
- * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/BackupInstanceOperations/TriggerRestore.json
19
+ * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/BackupInstanceOperations/TriggerRestore.json
20
20
  */
21
21
  function triggerRestore() {
22
22
  return __awaiter(this, void 0, void 0, function* () {
@@ -71,7 +71,7 @@ function triggerRestore() {
71
71
  * This sample demonstrates how to Triggers restore for a BackupInstance
72
72
  *
73
73
  * @summary Triggers restore for a BackupInstance
74
- * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/BackupInstanceOperations/TriggerRestoreAsFiles.json
74
+ * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/BackupInstanceOperations/TriggerRestoreAsFiles.json
75
75
  */
76
76
  function triggerRestoreAsFiles() {
77
77
  return __awaiter(this, void 0, void 0, function* () {
@@ -106,7 +106,7 @@ function triggerRestoreAsFiles() {
106
106
  * This sample demonstrates how to Triggers restore for a BackupInstance
107
107
  *
108
108
  * @summary Triggers restore for a BackupInstance
109
- * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/BackupInstanceOperations/TriggerRestoreWithRehydration.json
109
+ * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/BackupInstanceOperations/TriggerRestoreWithRehydration.json
110
110
  */
111
111
  function triggerRestoreWithRehydration() {
112
112
  return __awaiter(this, void 0, void 0, function* () {
@@ -16,7 +16,7 @@ dotenv.config();
16
16
  * This sample demonstrates how to Validate whether adhoc backup will be successful or not
17
17
  *
18
18
  * @summary Validate whether adhoc backup will be successful or not
19
- * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/BackupInstanceOperations/ValidateForBackup.json
19
+ * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/BackupInstanceOperations/ValidateForBackup.json
20
20
  */
21
21
  function validateForBackup() {
22
22
  return __awaiter(this, void 0, void 0, function* () {
@@ -16,7 +16,7 @@ dotenv.config();
16
16
  * This sample demonstrates how to Validates if Restore can be triggered for a DataSource
17
17
  *
18
18
  * @summary Validates if Restore can be triggered for a DataSource
19
- * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/BackupInstanceOperations/ValidateRestore.json
19
+ * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/BackupInstanceOperations/ValidateRestore.json
20
20
  */
21
21
  function validateRestore() {
22
22
  return __awaiter(this, void 0, void 0, function* () {
@@ -16,7 +16,7 @@ dotenv.config();
16
16
  * This sample demonstrates how to Creates or Updates a backup policy belonging to a backup vault
17
17
  *
18
18
  * @summary Creates or Updates a backup policy belonging to a backup vault
19
- * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/PolicyCRUD/CreateOrUpdateBackupPolicy.json
19
+ * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/PolicyCRUD/CreateOrUpdateBackupPolicy.json
20
20
  */
21
21
  function createOrUpdateBackupPolicy() {
22
22
  return __awaiter(this, void 0, void 0, function* () {
@@ -16,7 +16,7 @@ dotenv.config();
16
16
  * This sample demonstrates how to Deletes a backup policy belonging to a backup vault
17
17
  *
18
18
  * @summary Deletes a backup policy belonging to a backup vault
19
- * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/PolicyCRUD/DeleteBackupPolicy.json
19
+ * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/PolicyCRUD/DeleteBackupPolicy.json
20
20
  */
21
21
  function deleteBackupPolicy() {
22
22
  return __awaiter(this, void 0, void 0, function* () {
@@ -16,7 +16,7 @@ dotenv.config();
16
16
  * This sample demonstrates how to Gets a backup policy belonging to a backup vault
17
17
  *
18
18
  * @summary Gets a backup policy belonging to a backup vault
19
- * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/PolicyCRUD/GetBackupPolicy.json
19
+ * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/PolicyCRUD/GetBackupPolicy.json
20
20
  */
21
21
  function getBackupPolicy() {
22
22
  return __awaiter(this, void 0, void 0, function* () {
@@ -16,7 +16,7 @@ dotenv.config();
16
16
  * This sample demonstrates how to Returns list of backup policies belonging to a backup vault
17
17
  *
18
18
  * @summary Returns list of backup policies belonging to a backup vault
19
- * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/PolicyCRUD/ListBackupPolicy.json
19
+ * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/PolicyCRUD/ListBackupPolicy.json
20
20
  */
21
21
  function listBackupPolicy() {
22
22
  var e_1, _a;
@@ -16,7 +16,7 @@ dotenv.config();
16
16
  * This sample demonstrates how to
17
17
  *
18
18
  * @summary
19
- * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/VaultCRUD/GetOperationResultPatch.json
19
+ * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/VaultCRUD/GetOperationResultPatch.json
20
20
  */
21
21
  function getOperationResultPatch() {
22
22
  return __awaiter(this, void 0, void 0, function* () {
@@ -16,7 +16,7 @@ dotenv.config();
16
16
  * This sample demonstrates how to API to check for resource name availability
17
17
  *
18
18
  * @summary API to check for resource name availability
19
- * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/VaultCRUD/CheckBackupVaultsNameAvailability.json
19
+ * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/VaultCRUD/CheckBackupVaultsNameAvailability.json
20
20
  */
21
21
  function checkBackupVaultsNameAvailability() {
22
22
  return __awaiter(this, void 0, void 0, function* () {
@@ -16,7 +16,7 @@ dotenv.config();
16
16
  * This sample demonstrates how to Creates or updates a BackupVault resource belonging to a resource group.
17
17
  *
18
18
  * @summary Creates or updates a BackupVault resource belonging to a resource group.
19
- * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/VaultCRUD/PutBackupVault.json
19
+ * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/VaultCRUD/PutBackupVault.json
20
20
  */
21
21
  function createBackupVault() {
22
22
  return __awaiter(this, void 0, void 0, function* () {
@@ -47,7 +47,7 @@ function createBackupVault() {
47
47
  * This sample demonstrates how to Creates or updates a BackupVault resource belonging to a resource group.
48
48
  *
49
49
  * @summary Creates or updates a BackupVault resource belonging to a resource group.
50
- * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/VaultCRUD/PutBackupVaultWithMSI.json
50
+ * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/VaultCRUD/PutBackupVaultWithMSI.json
51
51
  */
52
52
  function createBackupVaultWithMsi() {
53
53
  return __awaiter(this, void 0, void 0, function* () {
@@ -16,7 +16,7 @@ dotenv.config();
16
16
  * This sample demonstrates how to Deletes a BackupVault resource from the resource group.
17
17
  *
18
18
  * @summary Deletes a BackupVault resource from the resource group.
19
- * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/VaultCRUD/DeleteBackupVault.json
19
+ * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/VaultCRUD/DeleteBackupVault.json
20
20
  */
21
21
  function deleteBackupVault() {
22
22
  return __awaiter(this, void 0, void 0, function* () {
@@ -26,7 +26,7 @@ function deleteBackupVault() {
26
26
  const vaultName = "swaggerExample";
27
27
  const credential = new DefaultAzureCredential();
28
28
  const client = new DataProtectionClient(credential, subscriptionId);
29
- const result = yield client.backupVaults.delete(resourceGroupName, vaultName);
29
+ const result = yield client.backupVaults.beginDeleteAndWait(resourceGroupName, vaultName);
30
30
  console.log(result);
31
31
  });
32
32
  }
@@ -1 +1 @@
1
- {"version":3,"file":"backupVaultsDeleteSample.js","sourceRoot":"","sources":["../../samples-dev/backupVaultsDeleteSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AACjE,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,gCAAgC,CAAC;YAC7C,sCAAsC,CAAC;QACzC,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,+BAA+B,CAAC,IAAI,qBAAqB,CAAC;QACxE,MAAM,SAAS,GAAG,gBAAgB,CAAC;QACnC,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,oBAAoB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACpE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,YAAY,CAAC,MAAM,CAAC,iBAAiB,EAAE,SAAS,CAAC,CAAC;QAC9E,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,iBAAiB,EAAE,CAAC;IACtB,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
1
+ {"version":3,"file":"backupVaultsDeleteSample.js","sourceRoot":"","sources":["../../samples-dev/backupVaultsDeleteSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AACjE,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,gCAAgC,CAAC;YAC7C,sCAAsC,CAAC;QACzC,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,+BAA+B,CAAC,IAAI,qBAAqB,CAAC;QACxE,MAAM,SAAS,GAAG,gBAAgB,CAAC;QACnC,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,oBAAoB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACpE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,YAAY,CAAC,kBAAkB,CACzD,iBAAiB,EACjB,SAAS,CACV,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,iBAAiB,EAAE,CAAC;IACtB,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 resource collection belonging to a resource group.
17
17
  *
18
18
  * @summary Returns resource collection belonging to a resource group.
19
- * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/VaultCRUD/GetBackupVaultsInResourceGroup.json
19
+ * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/VaultCRUD/GetBackupVaultsInResourceGroup.json
20
20
  */
21
21
  function getBackupVaultsInResourceGroup() {
22
22
  var e_1, _a;
@@ -16,7 +16,7 @@ dotenv.config();
16
16
  * This sample demonstrates how to Returns resource collection belonging to a subscription.
17
17
  *
18
18
  * @summary Returns resource collection belonging to a subscription.
19
- * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/VaultCRUD/GetBackupVaultsInSubscription.json
19
+ * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/VaultCRUD/GetBackupVaultsInSubscription.json
20
20
  */
21
21
  function getBackupVaultsInSubscription() {
22
22
  var e_1, _a;
@@ -16,7 +16,7 @@ dotenv.config();
16
16
  * This sample demonstrates how to Returns a resource belonging to a resource group.
17
17
  *
18
18
  * @summary Returns a resource belonging to a resource group.
19
- * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/VaultCRUD/GetBackupVault.json
19
+ * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/VaultCRUD/GetBackupVault.json
20
20
  */
21
21
  function getBackupVault() {
22
22
  return __awaiter(this, void 0, void 0, function* () {
@@ -34,7 +34,7 @@ function getBackupVault() {
34
34
  * This sample demonstrates how to Returns a resource belonging to a resource group.
35
35
  *
36
36
  * @summary Returns a resource belonging to a resource group.
37
- * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/VaultCRUD/GetBackupVaultWithMSI.json
37
+ * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/VaultCRUD/GetBackupVaultWithMSI.json
38
38
  */
39
39
  function getBackupVaultWithMsi() {
40
40
  return __awaiter(this, void 0, void 0, function* () {
@@ -16,7 +16,7 @@ dotenv.config();
16
16
  * This sample demonstrates how to Updates a BackupVault resource belonging to a resource group. For example, updating tags for a resource.
17
17
  *
18
18
  * @summary Updates a BackupVault resource belonging to a resource group. For example, updating tags for a resource.
19
- * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/VaultCRUD/PatchBackupVault.json
19
+ * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/VaultCRUD/PatchBackupVault.json
20
20
  */
21
21
  function patchBackupVault() {
22
22
  return __awaiter(this, void 0, void 0, function* () {
@@ -16,7 +16,7 @@ dotenv.config();
16
16
  * This sample demonstrates how to Validates if a feature is supported
17
17
  *
18
18
  * @summary Validates if a feature is supported
19
- * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/CheckfeatureSupport.json
19
+ * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/CheckfeatureSupport.json
20
20
  */
21
21
  function checkAzureVMBackupFeatureSupport() {
22
22
  return __awaiter(this, void 0, void 0, function* () {
@@ -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/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/Operations/List.json
19
+ * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/Operations/List.json
20
20
  */
21
21
  function returnsTheListOfSupportedRestOperations() {
22
22
  var e_1, _a;
@@ -16,7 +16,7 @@ dotenv.config();
16
16
  * This sample demonstrates how to Gets a deleted backup instance with name in a backup vault
17
17
  *
18
18
  * @summary Gets a deleted backup instance with name in a backup vault
19
- * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/DeletedBackupInstanceOperations/GetDeletedBackupInstance.json
19
+ * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/DeletedBackupInstanceOperations/GetDeletedBackupInstance.json
20
20
  */
21
21
  function getDeletedBackupInstance() {
22
22
  return __awaiter(this, void 0, void 0, function* () {
@@ -16,7 +16,7 @@ dotenv.config();
16
16
  * This sample demonstrates how to Gets deleted backup instances belonging to a backup vault
17
17
  *
18
18
  * @summary Gets deleted backup instances belonging to a backup vault
19
- * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/DeletedBackupInstanceOperations/ListDeletedBackupInstances.json
19
+ * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/DeletedBackupInstanceOperations/ListDeletedBackupInstances.json
20
20
  */
21
21
  function listDeletedBackupInstancesInAVault() {
22
22
  var e_1, _a;
@@ -16,7 +16,7 @@ dotenv.config();
16
16
  * This sample demonstrates how to
17
17
  *
18
18
  * @summary
19
- * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/DeletedBackupInstanceOperations/UndeleteDeletedBackupInstance.json
19
+ * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/DeletedBackupInstanceOperations/UndeleteDeletedBackupInstance.json
20
20
  */
21
21
  function undeleteDeletedBackupInstance() {
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 result of operation triggered by Export Jobs API. If the operation is successful, then it also contains URL of a Blob and a SAS key to access the same. The blob contains exported jobs in JSON serialized format.
17
17
  *
18
18
  * @summary Gets the operation result of operation triggered by Export Jobs API. If the operation is successful, then it also contains URL of a Blob and a SAS key to access the same. The blob contains exported jobs in JSON serialized format.
19
- * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/JobCRUD/GetExportJobsOperationResult.json
19
+ * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/JobCRUD/GetExportJobsOperationResult.json
20
20
  */
21
21
  function getExportJobsOperationResult() {
22
22
  return __awaiter(this, void 0, void 0, function* () {
@@ -16,7 +16,7 @@ dotenv.config();
16
16
  * This sample demonstrates how to Triggers export of jobs and returns an OperationID to track.
17
17
  *
18
18
  * @summary Triggers export of jobs and returns an OperationID to track.
19
- * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/JobCRUD/TriggerExportJobs.json
19
+ * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/JobCRUD/TriggerExportJobs.json
20
20
  */
21
21
  function triggerExportJobs() {
22
22
  return __awaiter(this, void 0, void 0, function* () {
@@ -16,7 +16,7 @@ dotenv.config();
16
16
  * This sample demonstrates how to Gets a job with id in a backup vault
17
17
  *
18
18
  * @summary Gets a job with id in a backup vault
19
- * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/JobCRUD/GetJob.json
19
+ * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/JobCRUD/GetJob.json
20
20
  */
21
21
  function getJob() {
22
22
  return __awaiter(this, void 0, void 0, function* () {
@@ -16,7 +16,7 @@ dotenv.config();
16
16
  * This sample demonstrates how to Returns list of jobs belonging to a backup vault
17
17
  *
18
18
  * @summary Returns list of jobs belonging to a backup vault
19
- * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/JobCRUD/ListJobs.json
19
+ * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/JobCRUD/ListJobs.json
20
20
  */
21
21
  function getJobs() {
22
22
  var e_1, _a;
@@ -16,7 +16,7 @@ dotenv.config();
16
16
  * This sample demonstrates how to Gets the operation result for a resource
17
17
  *
18
18
  * @summary Gets the operation result for a resource
19
- * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/GetOperationResult.json
19
+ * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/GetOperationResult.json
20
20
  */
21
21
  function getOperationResult() {
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 an operation over a BackupVault's context.
17
17
  *
18
18
  * @summary Gets the operation status for an operation over a BackupVault's context.
19
- * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/GetOperationStatusVaultContext.json
19
+ * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/GetOperationStatusVaultContext.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 Gets the operation status for a resource.
17
17
  *
18
18
  * @summary Gets the operation status for a resource.
19
- * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/GetOperationStatus.json
19
+ * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/GetOperationStatus.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 Gets the operation status for an operation over a ResourceGroup's context.
17
17
  *
18
18
  * @summary Gets the operation status for an operation over a ResourceGroup's context.
19
- * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/GetOperationStatusRGContext.json
19
+ * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/GetOperationStatusRGContext.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 Gets a Recovery Point using recoveryPointId for a Datasource.
17
17
  *
18
18
  * @summary Gets a Recovery Point using recoveryPointId for a Datasource.
19
- * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/BackupInstanceOperations/GetRecoveryPoint.json
19
+ * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/BackupInstanceOperations/GetRecoveryPoint.json
20
20
  */
21
21
  function getRecoveryPoint() {
22
22
  return __awaiter(this, void 0, void 0, function* () {
@@ -16,7 +16,7 @@ dotenv.config();
16
16
  * This sample demonstrates how to Returns a list of Recovery Points for a DataSource in a vault.
17
17
  *
18
18
  * @summary Returns a list of Recovery Points for a DataSource in a vault.
19
- * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/BackupInstanceOperations/ListRecoveryPoints.json
19
+ * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/BackupInstanceOperations/ListRecoveryPoints.json
20
20
  */
21
21
  function listRecoveryPointsInAVault() {
22
22
  var e_1, _a;
@@ -16,7 +16,7 @@ dotenv.config();
16
16
  * This sample demonstrates how to Deletes a ResourceGuard resource from the resource group.
17
17
  *
18
18
  * @summary Deletes a ResourceGuard resource from the resource group.
19
- * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/ResourceGuardCRUD/DeleteResourceGuard.json
19
+ * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/ResourceGuardCRUD/DeleteResourceGuard.json
20
20
  */
21
21
  function deleteResourceGuard() {
22
22
  return __awaiter(this, void 0, void 0, function* () {
@@ -16,7 +16,7 @@ dotenv.config();
16
16
  * This sample demonstrates how to Returns collection of operation request objects for a critical operation protected by the given ResourceGuard resource.
17
17
  *
18
18
  * @summary Returns collection of operation request objects for a critical operation protected by the given ResourceGuard resource.
19
- * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/ResourceGuardCRUD/ListBackupSecurityPINRequests.json
19
+ * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/ResourceGuardCRUD/ListBackupSecurityPINRequests.json
20
20
  */
21
21
  function listOperationsRequestObject() {
22
22
  var e_1, _a;
@@ -16,7 +16,7 @@ dotenv.config();
16
16
  * This sample demonstrates how to Returns collection of operation request objects for a critical operation protected by the given ResourceGuard resource.
17
17
  *
18
18
  * @summary Returns collection of operation request objects for a critical operation protected by the given ResourceGuard resource.
19
- * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/ResourceGuardCRUD/GetDefaultBackupSecurityPINRequests.json
19
+ * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/ResourceGuardCRUD/GetDefaultBackupSecurityPINRequests.json
20
20
  */
21
21
  function getDefaultOperationsRequestObject() {
22
22
  return __awaiter(this, void 0, void 0, function* () {
@@ -16,7 +16,7 @@ dotenv.config();
16
16
  * This sample demonstrates how to Returns collection of operation request objects for a critical operation protected by the given ResourceGuard resource.
17
17
  *
18
18
  * @summary Returns collection of operation request objects for a critical operation protected by the given ResourceGuard resource.
19
- * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/ResourceGuardCRUD/GetDefaultDeleteProtectedItemRequests.json
19
+ * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/ResourceGuardCRUD/GetDefaultDeleteProtectedItemRequests.json
20
20
  */
21
21
  function getDefaultOperationsRequestObject() {
22
22
  return __awaiter(this, void 0, void 0, function* () {
@@ -16,7 +16,7 @@ dotenv.config();
16
16
  * This sample demonstrates how to Returns collection of operation request objects for a critical operation protected by the given ResourceGuard resource.
17
17
  *
18
18
  * @summary Returns collection of operation request objects for a critical operation protected by the given ResourceGuard resource.
19
- * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/ResourceGuardCRUD/GetDefaultDeleteResourceGuardProxyRequests.json
19
+ * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/ResourceGuardCRUD/GetDefaultDeleteResourceGuardProxyRequests.json
20
20
  */
21
21
  function getDefaultOperationsRequestObject() {
22
22
  return __awaiter(this, void 0, void 0, function* () {
@@ -16,7 +16,7 @@ dotenv.config();
16
16
  * This sample demonstrates how to Returns collection of operation request objects for a critical operation protected by the given ResourceGuard resource.
17
17
  *
18
18
  * @summary Returns collection of operation request objects for a critical operation protected by the given ResourceGuard resource.
19
- * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/ResourceGuardCRUD/GetDefaultDisableSoftDeleteRequests.json
19
+ * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/ResourceGuardCRUD/GetDefaultDisableSoftDeleteRequests.json
20
20
  */
21
21
  function getDefaultOperationsRequestObject() {
22
22
  return __awaiter(this, void 0, void 0, function* () {
@@ -16,7 +16,7 @@ dotenv.config();
16
16
  * This sample demonstrates how to Returns collection of operation request objects for a critical operation protected by the given ResourceGuard resource.
17
17
  *
18
18
  * @summary Returns collection of operation request objects for a critical operation protected by the given ResourceGuard resource.
19
- * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/ResourceGuardCRUD/GetDefaultUpdateProtectedItemRequests.json
19
+ * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/ResourceGuardCRUD/GetDefaultUpdateProtectedItemRequests.json
20
20
  */
21
21
  function getDefaultOperationsRequestObject() {
22
22
  return __awaiter(this, void 0, void 0, function* () {
@@ -16,7 +16,7 @@ dotenv.config();
16
16
  * This sample demonstrates how to Returns collection of operation request objects for a critical operation protected by the given ResourceGuard resource.
17
17
  *
18
18
  * @summary Returns collection of operation request objects for a critical operation protected by the given ResourceGuard resource.
19
- * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/ResourceGuardCRUD/GetDefaultUpdateProtectionPolicyRequests.json
19
+ * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/ResourceGuardCRUD/GetDefaultUpdateProtectionPolicyRequests.json
20
20
  */
21
21
  function getDefaultOperationsRequestObject() {
22
22
  return __awaiter(this, void 0, void 0, function* () {
@@ -16,7 +16,7 @@ dotenv.config();
16
16
  * This sample demonstrates how to Returns collection of operation request objects for a critical operation protected by the given ResourceGuard resource.
17
17
  *
18
18
  * @summary Returns collection of operation request objects for a critical operation protected by the given ResourceGuard resource.
19
- * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/ResourceGuardCRUD/ListDeleteProtectedItemRequests.json
19
+ * x-ms-original-file: specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/ResourceGuardCRUD/ListDeleteProtectedItemRequests.json
20
20
  */
21
21
  function listOperationsRequestObject() {
22
22
  var e_1, _a;