@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
package/dist/index.js CHANGED
@@ -138,8 +138,8 @@ exports.KnownStorageSettingStoreTypes = void 0;
138
138
  (function (KnownStorageSettingStoreTypes) {
139
139
  /** ArchiveStore */
140
140
  KnownStorageSettingStoreTypes["ArchiveStore"] = "ArchiveStore";
141
- /** SnapshotStore */
142
- KnownStorageSettingStoreTypes["SnapshotStore"] = "SnapshotStore";
141
+ /** OperationalStore */
142
+ KnownStorageSettingStoreTypes["OperationalStore"] = "OperationalStore";
143
143
  /** VaultStore */
144
144
  KnownStorageSettingStoreTypes["VaultStore"] = "VaultStore";
145
145
  })(exports.KnownStorageSettingStoreTypes || (exports.KnownStorageSettingStoreTypes = {}));
@@ -153,6 +153,16 @@ exports.KnownStorageSettingTypes = void 0;
153
153
  /** ZoneRedundant */
154
154
  KnownStorageSettingTypes["ZoneRedundant"] = "ZoneRedundant";
155
155
  })(exports.KnownStorageSettingTypes || (exports.KnownStorageSettingTypes = {}));
156
+ /** Known values of {@link CrossSubscriptionRestoreState} that the service accepts. */
157
+ exports.KnownCrossSubscriptionRestoreState = void 0;
158
+ (function (KnownCrossSubscriptionRestoreState) {
159
+ /** Disabled */
160
+ KnownCrossSubscriptionRestoreState["Disabled"] = "Disabled";
161
+ /** PermanentlyDisabled */
162
+ KnownCrossSubscriptionRestoreState["PermanentlyDisabled"] = "PermanentlyDisabled";
163
+ /** Enabled */
164
+ KnownCrossSubscriptionRestoreState["Enabled"] = "Enabled";
165
+ })(exports.KnownCrossSubscriptionRestoreState || (exports.KnownCrossSubscriptionRestoreState = {}));
156
166
  /** Known values of {@link CreatedByType} that the service accepts. */
157
167
  exports.KnownCreatedByType = void 0;
158
168
  (function (KnownCreatedByType) {
@@ -250,6 +260,8 @@ exports.KnownSourceDataStoreType = void 0;
250
260
  KnownSourceDataStoreType["ArchiveStore"] = "ArchiveStore";
251
261
  /** SnapshotStore */
252
262
  KnownSourceDataStoreType["SnapshotStore"] = "SnapshotStore";
263
+ /** OperationalStore */
264
+ KnownSourceDataStoreType["OperationalStore"] = "OperationalStore";
253
265
  /** VaultStore */
254
266
  KnownSourceDataStoreType["VaultStore"] = "VaultStore";
255
267
  })(exports.KnownSourceDataStoreType || (exports.KnownSourceDataStoreType = {}));
@@ -271,20 +283,6 @@ exports.KnownRestoreSourceDataStoreType = void 0;
271
283
  /** ArchiveStore */
272
284
  KnownRestoreSourceDataStoreType["ArchiveStore"] = "ArchiveStore";
273
285
  })(exports.KnownRestoreSourceDataStoreType || (exports.KnownRestoreSourceDataStoreType = {}));
274
- /** Known values of {@link ResourceGuardProvisioningState} that the service accepts. */
275
- exports.KnownResourceGuardProvisioningState = void 0;
276
- (function (KnownResourceGuardProvisioningState) {
277
- /** Failed */
278
- KnownResourceGuardProvisioningState["Failed"] = "Failed";
279
- /** Provisioning */
280
- KnownResourceGuardProvisioningState["Provisioning"] = "Provisioning";
281
- /** Succeeded */
282
- KnownResourceGuardProvisioningState["Succeeded"] = "Succeeded";
283
- /** Unknown */
284
- KnownResourceGuardProvisioningState["Unknown"] = "Unknown";
285
- /** Updating */
286
- KnownResourceGuardProvisioningState["Updating"] = "Updating";
287
- })(exports.KnownResourceGuardProvisioningState || (exports.KnownResourceGuardProvisioningState = {}));
288
286
  /** Known values of {@link RehydrationStatus} that the service accepts. */
289
287
  exports.KnownRehydrationStatus = void 0;
290
288
  (function (KnownRehydrationStatus) {
@@ -498,6 +496,13 @@ const BackupVault = {
498
496
  type: {
499
497
  name: "Boolean"
500
498
  }
499
+ },
500
+ featureSettings: {
501
+ serializedName: "featureSettings",
502
+ type: {
503
+ name: "Composite",
504
+ className: "FeatureSettings"
505
+ }
501
506
  }
502
507
  }
503
508
  }
@@ -645,10 +650,67 @@ const StorageSetting = {
645
650
  }
646
651
  }
647
652
  };
648
- const DppTrackedResource = {
653
+ const FeatureSettings = {
649
654
  type: {
650
655
  name: "Composite",
651
- className: "DppTrackedResource",
656
+ className: "FeatureSettings",
657
+ modelProperties: {
658
+ crossSubscriptionRestoreSettings: {
659
+ serializedName: "crossSubscriptionRestoreSettings",
660
+ type: {
661
+ name: "Composite",
662
+ className: "CrossSubscriptionRestoreSettings"
663
+ }
664
+ }
665
+ }
666
+ }
667
+ };
668
+ const CrossSubscriptionRestoreSettings = {
669
+ type: {
670
+ name: "Composite",
671
+ className: "CrossSubscriptionRestoreSettings",
672
+ modelProperties: {
673
+ state: {
674
+ serializedName: "state",
675
+ type: {
676
+ name: "String"
677
+ }
678
+ }
679
+ }
680
+ }
681
+ };
682
+ const DppIdentityDetails = {
683
+ type: {
684
+ name: "Composite",
685
+ className: "DppIdentityDetails",
686
+ modelProperties: {
687
+ principalId: {
688
+ serializedName: "principalId",
689
+ readOnly: true,
690
+ type: {
691
+ name: "String"
692
+ }
693
+ },
694
+ tenantId: {
695
+ serializedName: "tenantId",
696
+ readOnly: true,
697
+ type: {
698
+ name: "String"
699
+ }
700
+ },
701
+ type: {
702
+ serializedName: "type",
703
+ type: {
704
+ name: "String"
705
+ }
706
+ }
707
+ }
708
+ }
709
+ };
710
+ const DppBaseTrackedResource = {
711
+ type: {
712
+ name: "Composite",
713
+ className: "DppBaseTrackedResource",
652
714
  modelProperties: {
653
715
  eTag: {
654
716
  serializedName: "eTag",
@@ -663,13 +725,6 @@ const DppTrackedResource = {
663
725
  name: "String"
664
726
  }
665
727
  },
666
- identity: {
667
- serializedName: "identity",
668
- type: {
669
- name: "Composite",
670
- className: "DppIdentityDetails"
671
- }
672
- },
673
728
  location: {
674
729
  serializedName: "location",
675
730
  type: {
@@ -707,34 +762,6 @@ const DppTrackedResource = {
707
762
  }
708
763
  }
709
764
  };
710
- const DppIdentityDetails = {
711
- type: {
712
- name: "Composite",
713
- className: "DppIdentityDetails",
714
- modelProperties: {
715
- principalId: {
716
- serializedName: "principalId",
717
- readOnly: true,
718
- type: {
719
- name: "String"
720
- }
721
- },
722
- tenantId: {
723
- serializedName: "tenantId",
724
- readOnly: true,
725
- type: {
726
- name: "String"
727
- }
728
- },
729
- type: {
730
- serializedName: "type",
731
- type: {
732
- name: "String"
733
- }
734
- }
735
- }
736
- }
737
- };
738
765
  const SystemData = {
739
766
  type: {
740
767
  name: "Composite",
@@ -1005,6 +1032,13 @@ const PatchBackupVaultInput = {
1005
1032
  name: "Composite",
1006
1033
  className: "SecuritySettings"
1007
1034
  }
1035
+ },
1036
+ featureSettings: {
1037
+ serializedName: "featureSettings",
1038
+ type: {
1039
+ name: "Composite",
1040
+ className: "FeatureSettings"
1041
+ }
1008
1042
  }
1009
1043
  }
1010
1044
  }
@@ -2610,6 +2644,21 @@ const DppTrackedResourceList = {
2610
2644
  }
2611
2645
  }
2612
2646
  };
2647
+ const PatchResourceGuardInput = {
2648
+ type: {
2649
+ name: "Composite",
2650
+ className: "PatchResourceGuardInput",
2651
+ modelProperties: {
2652
+ tags: {
2653
+ serializedName: "tags",
2654
+ type: {
2655
+ name: "Dictionary",
2656
+ value: { type: { name: "String" } }
2657
+ }
2658
+ }
2659
+ }
2660
+ }
2661
+ };
2613
2662
  const DppBaseResourceList = {
2614
2663
  type: {
2615
2664
  name: "Composite",
@@ -2665,103 +2714,6 @@ const DppBaseResource = {
2665
2714
  }
2666
2715
  }
2667
2716
  };
2668
- const ResourceGuardProxyBase = {
2669
- type: {
2670
- name: "Composite",
2671
- className: "ResourceGuardProxyBase",
2672
- modelProperties: {
2673
- resourceGuardResourceId: {
2674
- serializedName: "resourceGuardResourceId",
2675
- type: {
2676
- name: "String"
2677
- }
2678
- },
2679
- resourceGuardOperationDetails: {
2680
- serializedName: "resourceGuardOperationDetails",
2681
- type: {
2682
- name: "Sequence",
2683
- element: {
2684
- type: {
2685
- name: "Composite",
2686
- className: "ResourceGuardOperationDetail"
2687
- }
2688
- }
2689
- }
2690
- },
2691
- lastUpdatedTime: {
2692
- serializedName: "lastUpdatedTime",
2693
- type: {
2694
- name: "String"
2695
- }
2696
- },
2697
- description: {
2698
- serializedName: "description",
2699
- type: {
2700
- name: "String"
2701
- }
2702
- }
2703
- }
2704
- }
2705
- };
2706
- const ResourceGuardOperationDetail = {
2707
- type: {
2708
- name: "Composite",
2709
- className: "ResourceGuardOperationDetail",
2710
- modelProperties: {
2711
- vaultCriticalOperation: {
2712
- serializedName: "vaultCriticalOperation",
2713
- type: {
2714
- name: "String"
2715
- }
2716
- },
2717
- defaultResourceRequest: {
2718
- serializedName: "defaultResourceRequest",
2719
- type: {
2720
- name: "String"
2721
- }
2722
- }
2723
- }
2724
- }
2725
- };
2726
- const UnlockDeleteRequest = {
2727
- type: {
2728
- name: "Composite",
2729
- className: "UnlockDeleteRequest",
2730
- modelProperties: {
2731
- resourceGuardOperationRequests: {
2732
- serializedName: "resourceGuardOperationRequests",
2733
- type: {
2734
- name: "Sequence",
2735
- element: {
2736
- type: {
2737
- name: "String"
2738
- }
2739
- }
2740
- }
2741
- },
2742
- resourceToBeDeleted: {
2743
- serializedName: "resourceToBeDeleted",
2744
- type: {
2745
- name: "String"
2746
- }
2747
- }
2748
- }
2749
- }
2750
- };
2751
- const UnlockDeleteResponse = {
2752
- type: {
2753
- name: "Composite",
2754
- className: "UnlockDeleteResponse",
2755
- modelProperties: {
2756
- unlockDeleteExpiryTime: {
2757
- serializedName: "unlockDeleteExpiryTime",
2758
- type: {
2759
- name: "String"
2760
- }
2761
- }
2762
- }
2763
- }
2764
- };
2765
2717
  const DeleteOption = {
2766
2718
  type: {
2767
2719
  name: "Composite",
@@ -3307,6 +3259,12 @@ const TargetDetails = {
3307
3259
  type: {
3308
3260
  name: "String"
3309
3261
  }
3262
+ },
3263
+ targetResourceArmId: {
3264
+ serializedName: "targetResourceArmId",
3265
+ type: {
3266
+ name: "String"
3267
+ }
3310
3268
  }
3311
3269
  }
3312
3270
  }
@@ -3379,15 +3337,15 @@ const SecretStoreResource = {
3379
3337
  }
3380
3338
  }
3381
3339
  };
3382
- const BackupVaultResource = {
3340
+ const DppTrackedResource = {
3383
3341
  type: {
3384
3342
  name: "Composite",
3385
- className: "BackupVaultResource",
3386
- modelProperties: Object.assign(Object.assign({}, DppTrackedResource.type.modelProperties), { properties: {
3387
- serializedName: "properties",
3343
+ className: "DppTrackedResource",
3344
+ modelProperties: Object.assign(Object.assign({}, DppBaseTrackedResource.type.modelProperties), { identity: {
3345
+ serializedName: "identity",
3388
3346
  type: {
3389
3347
  name: "Composite",
3390
- className: "BackupVault"
3348
+ className: "DppIdentityDetails"
3391
3349
  }
3392
3350
  } })
3393
3351
  }
@@ -3396,7 +3354,7 @@ const ResourceGuardResource = {
3396
3354
  type: {
3397
3355
  name: "Composite",
3398
3356
  className: "ResourceGuardResource",
3399
- modelProperties: Object.assign(Object.assign({}, DppTrackedResource.type.modelProperties), { properties: {
3357
+ modelProperties: Object.assign(Object.assign({}, DppBaseTrackedResource.type.modelProperties), { properties: {
3400
3358
  serializedName: "properties",
3401
3359
  type: {
3402
3360
  name: "Composite",
@@ -3513,24 +3471,6 @@ const DeletedBackupInstanceResourceList = {
3513
3471
  } })
3514
3472
  }
3515
3473
  };
3516
- const ResourceGuardProxyBaseResourceList = {
3517
- type: {
3518
- name: "Composite",
3519
- className: "ResourceGuardProxyBaseResourceList",
3520
- modelProperties: Object.assign(Object.assign({}, DppResourceList.type.modelProperties), { value: {
3521
- serializedName: "value",
3522
- type: {
3523
- name: "Sequence",
3524
- element: {
3525
- type: {
3526
- name: "Composite",
3527
- className: "ResourceGuardProxyBaseResource"
3528
- }
3529
- }
3530
- }
3531
- } })
3532
- }
3533
- };
3534
3474
  const OperationJobExtendedInfo = {
3535
3475
  serializedName: "OperationJobExtendedInfo",
3536
3476
  type: {
@@ -3681,19 +3621,6 @@ const DeletedBackupInstanceResource = {
3681
3621
  } })
3682
3622
  }
3683
3623
  };
3684
- const ResourceGuardProxyBaseResource = {
3685
- type: {
3686
- name: "Composite",
3687
- className: "ResourceGuardProxyBaseResource",
3688
- modelProperties: Object.assign(Object.assign({}, DppResource.type.modelProperties), { properties: {
3689
- serializedName: "properties",
3690
- type: {
3691
- name: "Composite",
3692
- className: "ResourceGuardProxyBase"
3693
- }
3694
- } })
3695
- }
3696
- };
3697
3624
  const DeletedBackupInstance = {
3698
3625
  type: {
3699
3626
  name: "Composite",
@@ -3903,6 +3830,12 @@ const AzureBackupDiscreteRecoveryPoint = {
3903
3830
  type: {
3904
3831
  name: "String"
3905
3832
  }
3833
+ }, expiryTime: {
3834
+ serializedName: "expiryTime",
3835
+ readOnly: true,
3836
+ type: {
3837
+ name: "DateTime"
3838
+ }
3906
3839
  } })
3907
3840
  }
3908
3841
  };
@@ -4462,6 +4395,19 @@ const KubernetesClusterRestoreCriteria = {
4462
4395
  } })
4463
4396
  }
4464
4397
  };
4398
+ const BackupVaultResource = {
4399
+ type: {
4400
+ name: "Composite",
4401
+ className: "BackupVaultResource",
4402
+ modelProperties: Object.assign(Object.assign({}, DppTrackedResource.type.modelProperties), { properties: {
4403
+ serializedName: "properties",
4404
+ type: {
4405
+ name: "Composite",
4406
+ className: "BackupVault"
4407
+ }
4408
+ } })
4409
+ }
4410
+ };
4465
4411
  const AzureBackupRestoreWithRehydrationRequest = {
4466
4412
  serializedName: "AzureBackupRestoreWithRehydrationRequest",
4467
4413
  type: {
@@ -4922,8 +4868,10 @@ var Mappers = /*#__PURE__*/Object.freeze({
4922
4868
  SoftDeleteSettings: SoftDeleteSettings,
4923
4869
  ImmutabilitySettings: ImmutabilitySettings,
4924
4870
  StorageSetting: StorageSetting,
4925
- DppTrackedResource: DppTrackedResource,
4871
+ FeatureSettings: FeatureSettings,
4872
+ CrossSubscriptionRestoreSettings: CrossSubscriptionRestoreSettings,
4926
4873
  DppIdentityDetails: DppIdentityDetails,
4874
+ DppBaseTrackedResource: DppBaseTrackedResource,
4927
4875
  SystemData: SystemData,
4928
4876
  DppResourceList: DppResourceList,
4929
4877
  CloudError: CloudError,
@@ -4979,12 +4927,9 @@ var Mappers = /*#__PURE__*/Object.freeze({
4979
4927
  ResourceGuard: ResourceGuard,
4980
4928
  ResourceGuardOperation: ResourceGuardOperation,
4981
4929
  DppTrackedResourceList: DppTrackedResourceList,
4930
+ PatchResourceGuardInput: PatchResourceGuardInput,
4982
4931
  DppBaseResourceList: DppBaseResourceList,
4983
4932
  DppBaseResource: DppBaseResource,
4984
- ResourceGuardProxyBase: ResourceGuardProxyBase,
4985
- ResourceGuardOperationDetail: ResourceGuardOperationDetail,
4986
- UnlockDeleteRequest: UnlockDeleteRequest,
4987
- UnlockDeleteResponse: UnlockDeleteResponse,
4988
4933
  DeleteOption: DeleteOption,
4989
4934
  RecoveryPointsFilters: RecoveryPointsFilters,
4990
4935
  AdhocBasedTaggingCriteria: AdhocBasedTaggingCriteria,
@@ -5006,7 +4951,7 @@ var Mappers = /*#__PURE__*/Object.freeze({
5006
4951
  TargetDetails: TargetDetails,
5007
4952
  TaggingCriteria: TaggingCriteria,
5008
4953
  SecretStoreResource: SecretStoreResource,
5009
- BackupVaultResource: BackupVaultResource,
4954
+ DppTrackedResource: DppTrackedResource,
5010
4955
  ResourceGuardResource: ResourceGuardResource,
5011
4956
  BackupVaultResourceList: BackupVaultResourceList,
5012
4957
  BaseBackupPolicyResourceList: BaseBackupPolicyResourceList,
@@ -5014,7 +4959,6 @@ var Mappers = /*#__PURE__*/Object.freeze({
5014
4959
  AzureBackupRecoveryPointResourceList: AzureBackupRecoveryPointResourceList,
5015
4960
  AzureBackupJobResourceList: AzureBackupJobResourceList,
5016
4961
  DeletedBackupInstanceResourceList: DeletedBackupInstanceResourceList,
5017
- ResourceGuardProxyBaseResourceList: ResourceGuardProxyBaseResourceList,
5018
4962
  OperationJobExtendedInfo: OperationJobExtendedInfo,
5019
4963
  FeatureValidationRequest: FeatureValidationRequest,
5020
4964
  FeatureValidationResponse: FeatureValidationResponse,
@@ -5024,7 +4968,6 @@ var Mappers = /*#__PURE__*/Object.freeze({
5024
4968
  AzureBackupJobResource: AzureBackupJobResource,
5025
4969
  AzureBackupFindRestorableTimeRangesResponseResource: AzureBackupFindRestorableTimeRangesResponseResource,
5026
4970
  DeletedBackupInstanceResource: DeletedBackupInstanceResource,
5027
- ResourceGuardProxyBaseResource: ResourceGuardProxyBaseResource,
5028
4971
  DeletedBackupInstance: DeletedBackupInstance,
5029
4972
  AzureOperationalStoreParameters: AzureOperationalStoreParameters,
5030
4973
  KubernetesClusterBackupDatasourceParameters: KubernetesClusterBackupDatasourceParameters,
@@ -5054,6 +4997,7 @@ var Mappers = /*#__PURE__*/Object.freeze({
5054
4997
  KubernetesStorageClassRestoreCriteria: KubernetesStorageClassRestoreCriteria,
5055
4998
  KubernetesPVRestoreCriteria: KubernetesPVRestoreCriteria,
5056
4999
  KubernetesClusterRestoreCriteria: KubernetesClusterRestoreCriteria,
5000
+ BackupVaultResource: BackupVaultResource,
5057
5001
  AzureBackupRestoreWithRehydrationRequest: AzureBackupRestoreWithRehydrationRequest,
5058
5002
  OperationResultGetHeaders: OperationResultGetHeaders,
5059
5003
  BackupVaultOperationResultsGetHeaders: BackupVaultOperationResultsGetHeaders,
@@ -5105,7 +5049,7 @@ const $host = {
5105
5049
  const apiVersion = {
5106
5050
  parameterPath: "apiVersion",
5107
5051
  mapper: {
5108
- defaultValue: "2022-11-01-preview",
5052
+ defaultValue: "2023-01-01",
5109
5053
  isConstant: true,
5110
5054
  serializedName: "api-version",
5111
5055
  type: {
@@ -5119,13 +5063,17 @@ const subscriptionId = {
5119
5063
  serializedName: "subscriptionId",
5120
5064
  required: true,
5121
5065
  type: {
5122
- name: "String"
5066
+ name: "Uuid"
5123
5067
  }
5124
5068
  }
5125
5069
  };
5126
5070
  const resourceGroupName = {
5127
5071
  parameterPath: "resourceGroupName",
5128
5072
  mapper: {
5073
+ constraints: {
5074
+ MaxLength: 90,
5075
+ MinLength: 1
5076
+ },
5129
5077
  serializedName: "resourceGroupName",
5130
5078
  required: true,
5131
5079
  type: {
@@ -5253,16 +5201,6 @@ const parameters11 = {
5253
5201
  parameterPath: "parameters",
5254
5202
  mapper: ValidateRestoreRequestObject
5255
5203
  };
5256
- const resourceId = {
5257
- parameterPath: "resourceId",
5258
- mapper: {
5259
- serializedName: "resourceId",
5260
- required: true,
5261
- type: {
5262
- name: "String"
5263
- }
5264
- }
5265
- };
5266
5204
  const filter = {
5267
5205
  parameterPath: ["options", "filter"],
5268
5206
  mapper: {
@@ -5319,6 +5257,10 @@ const resourceGuardsName = {
5319
5257
  }
5320
5258
  }
5321
5259
  };
5260
+ const parameters14 = {
5261
+ parameterPath: "parameters",
5262
+ mapper: PatchResourceGuardInput
5263
+ };
5322
5264
  const requestName = {
5323
5265
  parameterPath: "requestName",
5324
5266
  mapper: {
@@ -5329,24 +5271,6 @@ const requestName = {
5329
5271
  }
5330
5272
  }
5331
5273
  };
5332
- const resourceGuardProxyName = {
5333
- parameterPath: "resourceGuardProxyName",
5334
- mapper: {
5335
- serializedName: "resourceGuardProxyName",
5336
- required: true,
5337
- type: {
5338
- name: "String"
5339
- }
5340
- }
5341
- };
5342
- const parameters14 = {
5343
- parameterPath: "parameters",
5344
- mapper: ResourceGuardProxyBaseResource
5345
- };
5346
- const parameters15 = {
5347
- parameterPath: "parameters",
5348
- mapper: UnlockDeleteRequest
5349
- };
5350
5274
 
5351
5275
  /*
5352
5276
  * Copyright (c) Microsoft Corporation.
@@ -5454,7 +5378,7 @@ class BackupVaultsImpl {
5454
5378
  }
5455
5379
  /**
5456
5380
  * Returns resource collection belonging to a resource group.
5457
- * @param resourceGroupName The name of the resource group where the backup vault is present.
5381
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
5458
5382
  * @param options The options parameters.
5459
5383
  */
5460
5384
  listInResourceGroup(resourceGroupName, options) {
@@ -5521,7 +5445,7 @@ class BackupVaultsImpl {
5521
5445
  }
5522
5446
  /**
5523
5447
  * Returns resource collection belonging to a resource group.
5524
- * @param resourceGroupName The name of the resource group where the backup vault is present.
5448
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
5525
5449
  * @param options The options parameters.
5526
5450
  */
5527
5451
  _getInResourceGroup(resourceGroupName, options) {
@@ -5529,16 +5453,16 @@ class BackupVaultsImpl {
5529
5453
  }
5530
5454
  /**
5531
5455
  * Returns a resource belonging to a resource group.
5532
- * @param resourceGroupName The name of the resource group where the backup vault is present.
5456
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
5533
5457
  * @param vaultName The name of the backup vault.
5534
5458
  * @param options The options parameters.
5535
5459
  */
5536
5460
  get(resourceGroupName, vaultName, options) {
5537
- return this.client.sendOperationRequest({ resourceGroupName, vaultName, options }, getOperationSpec$d);
5461
+ return this.client.sendOperationRequest({ resourceGroupName, vaultName, options }, getOperationSpec$c);
5538
5462
  }
5539
5463
  /**
5540
5464
  * Creates or updates a BackupVault resource belonging to a resource group.
5541
- * @param resourceGroupName The name of the resource group where the backup vault is present.
5465
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
5542
5466
  * @param vaultName The name of the backup vault.
5543
5467
  * @param parameters Request body for operation
5544
5468
  * @param options The options parameters.
@@ -5578,7 +5502,7 @@ class BackupVaultsImpl {
5578
5502
  }
5579
5503
  /**
5580
5504
  * Creates or updates a BackupVault resource belonging to a resource group.
5581
- * @param resourceGroupName The name of the resource group where the backup vault is present.
5505
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
5582
5506
  * @param vaultName The name of the backup vault.
5583
5507
  * @param parameters Request body for operation
5584
5508
  * @param options The options parameters.
@@ -5591,17 +5515,59 @@ class BackupVaultsImpl {
5591
5515
  }
5592
5516
  /**
5593
5517
  * Deletes a BackupVault resource from the resource group.
5594
- * @param resourceGroupName The name of the resource group where the backup vault is present.
5518
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
5519
+ * @param vaultName The name of the backup vault.
5520
+ * @param options The options parameters.
5521
+ */
5522
+ beginDelete(resourceGroupName, vaultName, options) {
5523
+ return tslib.__awaiter(this, void 0, void 0, function* () {
5524
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
5525
+ return this.client.sendOperationRequest(args, spec);
5526
+ });
5527
+ const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
5528
+ var _a;
5529
+ let currentRawResponse = undefined;
5530
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
5531
+ const callback = (rawResponse, flatResponse) => {
5532
+ currentRawResponse = rawResponse;
5533
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
5534
+ };
5535
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
5536
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
5537
+ return {
5538
+ flatResponse,
5539
+ rawResponse: {
5540
+ statusCode: currentRawResponse.status,
5541
+ body: currentRawResponse.parsedBody,
5542
+ headers: currentRawResponse.headers.toJSON()
5543
+ }
5544
+ };
5545
+ });
5546
+ const lro = new LroImpl(sendOperation, { resourceGroupName, vaultName, options }, deleteOperationSpec$3);
5547
+ const poller = new coreLro.LroEngine(lro, {
5548
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
5549
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
5550
+ });
5551
+ yield poller.poll();
5552
+ return poller;
5553
+ });
5554
+ }
5555
+ /**
5556
+ * Deletes a BackupVault resource from the resource group.
5557
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
5595
5558
  * @param vaultName The name of the backup vault.
5596
5559
  * @param options The options parameters.
5597
5560
  */
5598
- delete(resourceGroupName, vaultName, options) {
5599
- return this.client.sendOperationRequest({ resourceGroupName, vaultName, options }, deleteOperationSpec$4);
5561
+ beginDeleteAndWait(resourceGroupName, vaultName, options) {
5562
+ return tslib.__awaiter(this, void 0, void 0, function* () {
5563
+ const poller = yield this.beginDelete(resourceGroupName, vaultName, options);
5564
+ return poller.pollUntilDone();
5565
+ });
5600
5566
  }
5601
5567
  /**
5602
5568
  * Updates a BackupVault resource belonging to a resource group. For example, updating tags for a
5603
5569
  * resource.
5604
- * @param resourceGroupName The name of the resource group where the backup vault is present.
5570
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
5605
5571
  * @param vaultName The name of the backup vault.
5606
5572
  * @param parameters Request body for operation
5607
5573
  * @param options The options parameters.
@@ -5642,7 +5608,7 @@ class BackupVaultsImpl {
5642
5608
  /**
5643
5609
  * Updates a BackupVault resource belonging to a resource group. For example, updating tags for a
5644
5610
  * resource.
5645
- * @param resourceGroupName The name of the resource group where the backup vault is present.
5611
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
5646
5612
  * @param vaultName The name of the backup vault.
5647
5613
  * @param parameters Request body for operation
5648
5614
  * @param options The options parameters.
@@ -5655,7 +5621,7 @@ class BackupVaultsImpl {
5655
5621
  }
5656
5622
  /**
5657
5623
  * API to check for resource name availability
5658
- * @param resourceGroupName The name of the resource group where the backup vault is present.
5624
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
5659
5625
  * @param location The location in which uniqueness will be verified.
5660
5626
  * @param parameters Check name availability request
5661
5627
  * @param options The options parameters.
@@ -5673,7 +5639,7 @@ class BackupVaultsImpl {
5673
5639
  }
5674
5640
  /**
5675
5641
  * GetInResourceGroupNext
5676
- * @param resourceGroupName The name of the resource group where the backup vault is present.
5642
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
5677
5643
  * @param nextLink The nextLink from the previous successful call to the GetInResourceGroup method.
5678
5644
  * @param options The options parameters.
5679
5645
  */
@@ -5682,7 +5648,7 @@ class BackupVaultsImpl {
5682
5648
  }
5683
5649
  }
5684
5650
  // Operation Specifications
5685
- const serializer$i = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
5651
+ const serializer$g = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
5686
5652
  const getInSubscriptionOperationSpec = {
5687
5653
  path: "/subscriptions/{subscriptionId}/providers/Microsoft.DataProtection/backupVaults",
5688
5654
  httpMethod: "GET",
@@ -5697,7 +5663,7 @@ const getInSubscriptionOperationSpec = {
5697
5663
  queryParameters: [apiVersion],
5698
5664
  urlParameters: [$host, subscriptionId],
5699
5665
  headerParameters: [accept],
5700
- serializer: serializer$i
5666
+ serializer: serializer$g
5701
5667
  };
5702
5668
  const getInResourceGroupOperationSpec = {
5703
5669
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults",
@@ -5717,9 +5683,9 @@ const getInResourceGroupOperationSpec = {
5717
5683
  resourceGroupName
5718
5684
  ],
5719
5685
  headerParameters: [accept],
5720
- serializer: serializer$i
5686
+ serializer: serializer$g
5721
5687
  };
5722
- const getOperationSpec$d = {
5688
+ const getOperationSpec$c = {
5723
5689
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}",
5724
5690
  httpMethod: "GET",
5725
5691
  responses: {
@@ -5738,7 +5704,7 @@ const getOperationSpec$d = {
5738
5704
  vaultName
5739
5705
  ],
5740
5706
  headerParameters: [accept],
5741
- serializer: serializer$i
5707
+ serializer: serializer$g
5742
5708
  };
5743
5709
  const createOrUpdateOperationSpec$2 = {
5744
5710
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}",
@@ -5770,13 +5736,14 @@ const createOrUpdateOperationSpec$2 = {
5770
5736
  ],
5771
5737
  headerParameters: [accept, contentType],
5772
5738
  mediaType: "json",
5773
- serializer: serializer$i
5739
+ serializer: serializer$g
5774
5740
  };
5775
- const deleteOperationSpec$4 = {
5741
+ const deleteOperationSpec$3 = {
5776
5742
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}",
5777
5743
  httpMethod: "DELETE",
5778
5744
  responses: {
5779
5745
  200: {},
5746
+ 201: {},
5780
5747
  202: {},
5781
5748
  204: {},
5782
5749
  default: {
@@ -5791,7 +5758,7 @@ const deleteOperationSpec$4 = {
5791
5758
  vaultName
5792
5759
  ],
5793
5760
  headerParameters: [accept],
5794
- serializer: serializer$i
5761
+ serializer: serializer$g
5795
5762
  };
5796
5763
  const updateOperationSpec = {
5797
5764
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}",
@@ -5823,7 +5790,7 @@ const updateOperationSpec = {
5823
5790
  ],
5824
5791
  headerParameters: [accept, contentType],
5825
5792
  mediaType: "json",
5826
- serializer: serializer$i
5793
+ serializer: serializer$g
5827
5794
  };
5828
5795
  const checkNameAvailabilityOperationSpec = {
5829
5796
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/locations/{location}/checkNameAvailability",
@@ -5846,7 +5813,7 @@ const checkNameAvailabilityOperationSpec = {
5846
5813
  ],
5847
5814
  headerParameters: [accept, contentType],
5848
5815
  mediaType: "json",
5849
- serializer: serializer$i
5816
+ serializer: serializer$g
5850
5817
  };
5851
5818
  const getInSubscriptionNextOperationSpec = {
5852
5819
  path: "{nextLink}",
@@ -5865,7 +5832,7 @@ const getInSubscriptionNextOperationSpec = {
5865
5832
  nextLink
5866
5833
  ],
5867
5834
  headerParameters: [accept],
5868
- serializer: serializer$i
5835
+ serializer: serializer$g
5869
5836
  };
5870
5837
  const getInResourceGroupNextOperationSpec = {
5871
5838
  path: "{nextLink}",
@@ -5885,7 +5852,7 @@ const getInResourceGroupNextOperationSpec = {
5885
5852
  nextLink
5886
5853
  ],
5887
5854
  headerParameters: [accept],
5888
- serializer: serializer$i
5855
+ serializer: serializer$g
5889
5856
  };
5890
5857
 
5891
5858
  /*
@@ -5911,12 +5878,12 @@ class OperationResultImpl {
5911
5878
  * @param options The options parameters.
5912
5879
  */
5913
5880
  get(operationId, location, options) {
5914
- return this.client.sendOperationRequest({ operationId, location, options }, getOperationSpec$c);
5881
+ return this.client.sendOperationRequest({ operationId, location, options }, getOperationSpec$b);
5915
5882
  }
5916
5883
  }
5917
5884
  // Operation Specifications
5918
- const serializer$h = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
5919
- const getOperationSpec$c = {
5885
+ const serializer$f = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
5886
+ const getOperationSpec$b = {
5920
5887
  path: "/subscriptions/{subscriptionId}/providers/Microsoft.DataProtection/locations/{location}/operationResults/{operationId}",
5921
5888
  httpMethod: "GET",
5922
5889
  responses: {
@@ -5938,7 +5905,7 @@ const getOperationSpec$c = {
5938
5905
  operationId
5939
5906
  ],
5940
5907
  headerParameters: [accept],
5941
- serializer: serializer$h
5908
+ serializer: serializer$f
5942
5909
  };
5943
5910
 
5944
5911
  /*
@@ -5964,12 +5931,12 @@ class OperationStatusImpl {
5964
5931
  * @param options The options parameters.
5965
5932
  */
5966
5933
  get(location, operationId, options) {
5967
- return this.client.sendOperationRequest({ location, operationId, options }, getOperationSpec$b);
5934
+ return this.client.sendOperationRequest({ location, operationId, options }, getOperationSpec$a);
5968
5935
  }
5969
5936
  }
5970
5937
  // Operation Specifications
5971
- const serializer$g = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
5972
- const getOperationSpec$b = {
5938
+ const serializer$e = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
5939
+ const getOperationSpec$a = {
5973
5940
  path: "/subscriptions/{subscriptionId}/providers/Microsoft.DataProtection/locations/{location}/operationStatus/{operationId}",
5974
5941
  httpMethod: "GET",
5975
5942
  responses: {
@@ -5988,7 +5955,7 @@ const getOperationSpec$b = {
5988
5955
  operationId
5989
5956
  ],
5990
5957
  headerParameters: [accept],
5991
- serializer: serializer$g
5958
+ serializer: serializer$e
5992
5959
  };
5993
5960
 
5994
5961
  /*
@@ -6009,18 +5976,18 @@ class OperationStatusBackupVaultContextImpl {
6009
5976
  }
6010
5977
  /**
6011
5978
  * Gets the operation status for an operation over a BackupVault's context.
6012
- * @param resourceGroupName The name of the resource group where the backup vault is present.
5979
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
6013
5980
  * @param vaultName The name of the backup vault.
6014
5981
  * @param operationId
6015
5982
  * @param options The options parameters.
6016
5983
  */
6017
5984
  get(resourceGroupName, vaultName, operationId, options) {
6018
- return this.client.sendOperationRequest({ resourceGroupName, vaultName, operationId, options }, getOperationSpec$a);
5985
+ return this.client.sendOperationRequest({ resourceGroupName, vaultName, operationId, options }, getOperationSpec$9);
6019
5986
  }
6020
5987
  }
6021
5988
  // Operation Specifications
6022
- const serializer$f = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
6023
- const getOperationSpec$a = {
5989
+ const serializer$d = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
5990
+ const getOperationSpec$9 = {
6024
5991
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/operationStatus/{operationId}",
6025
5992
  httpMethod: "GET",
6026
5993
  responses: {
@@ -6040,7 +6007,7 @@ const getOperationSpec$a = {
6040
6007
  operationId
6041
6008
  ],
6042
6009
  headerParameters: [accept],
6043
- serializer: serializer$f
6010
+ serializer: serializer$d
6044
6011
  };
6045
6012
 
6046
6013
  /*
@@ -6061,17 +6028,17 @@ class OperationStatusResourceGroupContextImpl {
6061
6028
  }
6062
6029
  /**
6063
6030
  * Gets the operation status for an operation over a ResourceGroup's context.
6064
- * @param resourceGroupName The name of the resource group where the backup vault is present.
6031
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
6065
6032
  * @param operationId
6066
6033
  * @param options The options parameters.
6067
6034
  */
6068
6035
  get(resourceGroupName, operationId, options) {
6069
- return this.client.sendOperationRequest({ resourceGroupName, operationId, options }, getOperationSpec$9);
6036
+ return this.client.sendOperationRequest({ resourceGroupName, operationId, options }, getOperationSpec$8);
6070
6037
  }
6071
6038
  }
6072
6039
  // Operation Specifications
6073
- const serializer$e = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
6074
- const getOperationSpec$9 = {
6040
+ const serializer$c = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
6041
+ const getOperationSpec$8 = {
6075
6042
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/operationStatus/{operationId}",
6076
6043
  httpMethod: "GET",
6077
6044
  responses: {
@@ -6090,7 +6057,7 @@ const getOperationSpec$9 = {
6090
6057
  operationId
6091
6058
  ],
6092
6059
  headerParameters: [accept],
6093
- serializer: serializer$e
6060
+ serializer: serializer$c
6094
6061
  };
6095
6062
 
6096
6063
  /*
@@ -6110,18 +6077,18 @@ class BackupVaultOperationResultsImpl {
6110
6077
  this.client = client;
6111
6078
  }
6112
6079
  /**
6113
- * @param resourceGroupName The name of the resource group where the backup vault is present.
6080
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
6114
6081
  * @param vaultName The name of the backup vault.
6115
6082
  * @param operationId
6116
6083
  * @param options The options parameters.
6117
6084
  */
6118
6085
  get(resourceGroupName, vaultName, operationId, options) {
6119
- return this.client.sendOperationRequest({ resourceGroupName, vaultName, operationId, options }, getOperationSpec$8);
6086
+ return this.client.sendOperationRequest({ resourceGroupName, vaultName, operationId, options }, getOperationSpec$7);
6120
6087
  }
6121
6088
  }
6122
6089
  // Operation Specifications
6123
- const serializer$d = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
6124
- const getOperationSpec$8 = {
6090
+ const serializer$b = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
6091
+ const getOperationSpec$7 = {
6125
6092
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/operationResults/{operationId}",
6126
6093
  httpMethod: "GET",
6127
6094
  responses: {
@@ -6144,7 +6111,7 @@ const getOperationSpec$8 = {
6144
6111
  operationId
6145
6112
  ],
6146
6113
  headerParameters: [accept],
6147
- serializer: serializer$d
6114
+ serializer: serializer$b
6148
6115
  };
6149
6116
 
6150
6117
  /*
@@ -6174,7 +6141,7 @@ class DataProtectionImpl {
6174
6141
  }
6175
6142
  }
6176
6143
  // Operation Specifications
6177
- const serializer$c = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
6144
+ const serializer$a = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
6178
6145
  const checkFeatureSupportOperationSpec = {
6179
6146
  path: "/subscriptions/{subscriptionId}/providers/Microsoft.DataProtection/locations/{location}/checkFeatureSupport",
6180
6147
  httpMethod: "POST",
@@ -6195,7 +6162,7 @@ const checkFeatureSupportOperationSpec = {
6195
6162
  ],
6196
6163
  headerParameters: [accept, contentType],
6197
6164
  mediaType: "json",
6198
- serializer: serializer$c
6165
+ serializer: serializer$a
6199
6166
  };
6200
6167
 
6201
6168
  /*
@@ -6279,7 +6246,7 @@ class DataProtectionOperationsImpl {
6279
6246
  * @param options The options parameters.
6280
6247
  */
6281
6248
  _list(options) {
6282
- return this.client.sendOperationRequest({ options }, listOperationSpec$7);
6249
+ return this.client.sendOperationRequest({ options }, listOperationSpec$5);
6283
6250
  }
6284
6251
  /**
6285
6252
  * ListNext
@@ -6287,12 +6254,12 @@ class DataProtectionOperationsImpl {
6287
6254
  * @param options The options parameters.
6288
6255
  */
6289
6256
  _listNext(nextLink, options) {
6290
- return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec$7);
6257
+ return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec$5);
6291
6258
  }
6292
6259
  }
6293
6260
  // Operation Specifications
6294
- const serializer$b = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
6295
- const listOperationSpec$7 = {
6261
+ const serializer$9 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
6262
+ const listOperationSpec$5 = {
6296
6263
  path: "/providers/Microsoft.DataProtection/operations",
6297
6264
  httpMethod: "GET",
6298
6265
  responses: {
@@ -6306,9 +6273,9 @@ const listOperationSpec$7 = {
6306
6273
  queryParameters: [apiVersion],
6307
6274
  urlParameters: [$host],
6308
6275
  headerParameters: [accept],
6309
- serializer: serializer$b
6276
+ serializer: serializer$9
6310
6277
  };
6311
- const listNextOperationSpec$7 = {
6278
+ const listNextOperationSpec$5 = {
6312
6279
  path: "{nextLink}",
6313
6280
  httpMethod: "GET",
6314
6281
  responses: {
@@ -6321,7 +6288,7 @@ const listNextOperationSpec$7 = {
6321
6288
  },
6322
6289
  urlParameters: [$host, nextLink],
6323
6290
  headerParameters: [accept],
6324
- serializer: serializer$b
6291
+ serializer: serializer$9
6325
6292
  };
6326
6293
 
6327
6294
  /*
@@ -6343,7 +6310,7 @@ class BackupPoliciesImpl {
6343
6310
  }
6344
6311
  /**
6345
6312
  * Returns list of backup policies belonging to a backup vault
6346
- * @param resourceGroupName The name of the resource group where the backup vault is present.
6313
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
6347
6314
  * @param vaultName The name of the backup vault.
6348
6315
  * @param options The options parameters.
6349
6316
  */
@@ -6404,26 +6371,26 @@ class BackupPoliciesImpl {
6404
6371
  }
6405
6372
  /**
6406
6373
  * Returns list of backup policies belonging to a backup vault
6407
- * @param resourceGroupName The name of the resource group where the backup vault is present.
6374
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
6408
6375
  * @param vaultName The name of the backup vault.
6409
6376
  * @param options The options parameters.
6410
6377
  */
6411
6378
  _list(resourceGroupName, vaultName, options) {
6412
- return this.client.sendOperationRequest({ resourceGroupName, vaultName, options }, listOperationSpec$6);
6379
+ return this.client.sendOperationRequest({ resourceGroupName, vaultName, options }, listOperationSpec$4);
6413
6380
  }
6414
6381
  /**
6415
6382
  * Gets a backup policy belonging to a backup vault
6416
- * @param resourceGroupName The name of the resource group where the backup vault is present.
6383
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
6417
6384
  * @param vaultName The name of the backup vault.
6418
6385
  * @param backupPolicyName
6419
6386
  * @param options The options parameters.
6420
6387
  */
6421
6388
  get(resourceGroupName, vaultName, backupPolicyName, options) {
6422
- return this.client.sendOperationRequest({ resourceGroupName, vaultName, backupPolicyName, options }, getOperationSpec$7);
6389
+ return this.client.sendOperationRequest({ resourceGroupName, vaultName, backupPolicyName, options }, getOperationSpec$6);
6423
6390
  }
6424
6391
  /**
6425
6392
  * Creates or Updates a backup policy belonging to a backup vault
6426
- * @param resourceGroupName The name of the resource group where the backup vault is present.
6393
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
6427
6394
  * @param vaultName The name of the backup vault.
6428
6395
  * @param backupPolicyName Name of the policy
6429
6396
  * @param parameters Request body for operation
@@ -6434,28 +6401,28 @@ class BackupPoliciesImpl {
6434
6401
  }
6435
6402
  /**
6436
6403
  * Deletes a backup policy belonging to a backup vault
6437
- * @param resourceGroupName The name of the resource group where the backup vault is present.
6404
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
6438
6405
  * @param vaultName The name of the backup vault.
6439
6406
  * @param backupPolicyName
6440
6407
  * @param options The options parameters.
6441
6408
  */
6442
6409
  delete(resourceGroupName, vaultName, backupPolicyName, options) {
6443
- return this.client.sendOperationRequest({ resourceGroupName, vaultName, backupPolicyName, options }, deleteOperationSpec$3);
6410
+ return this.client.sendOperationRequest({ resourceGroupName, vaultName, backupPolicyName, options }, deleteOperationSpec$2);
6444
6411
  }
6445
6412
  /**
6446
6413
  * ListNext
6447
- * @param resourceGroupName The name of the resource group where the backup vault is present.
6414
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
6448
6415
  * @param vaultName The name of the backup vault.
6449
6416
  * @param nextLink The nextLink from the previous successful call to the List method.
6450
6417
  * @param options The options parameters.
6451
6418
  */
6452
6419
  _listNext(resourceGroupName, vaultName, nextLink, options) {
6453
- return this.client.sendOperationRequest({ resourceGroupName, vaultName, nextLink, options }, listNextOperationSpec$6);
6420
+ return this.client.sendOperationRequest({ resourceGroupName, vaultName, nextLink, options }, listNextOperationSpec$4);
6454
6421
  }
6455
6422
  }
6456
6423
  // Operation Specifications
6457
- const serializer$a = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
6458
- const listOperationSpec$6 = {
6424
+ const serializer$8 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
6425
+ const listOperationSpec$4 = {
6459
6426
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupPolicies",
6460
6427
  httpMethod: "GET",
6461
6428
  responses: {
@@ -6474,9 +6441,9 @@ const listOperationSpec$6 = {
6474
6441
  vaultName
6475
6442
  ],
6476
6443
  headerParameters: [accept],
6477
- serializer: serializer$a
6444
+ serializer: serializer$8
6478
6445
  };
6479
- const getOperationSpec$7 = {
6446
+ const getOperationSpec$6 = {
6480
6447
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupPolicies/{backupPolicyName}",
6481
6448
  httpMethod: "GET",
6482
6449
  responses: {
@@ -6496,7 +6463,7 @@ const getOperationSpec$7 = {
6496
6463
  backupPolicyName
6497
6464
  ],
6498
6465
  headerParameters: [accept],
6499
- serializer: serializer$a
6466
+ serializer: serializer$8
6500
6467
  };
6501
6468
  const createOrUpdateOperationSpec$1 = {
6502
6469
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupPolicies/{backupPolicyName}",
@@ -6520,9 +6487,9 @@ const createOrUpdateOperationSpec$1 = {
6520
6487
  ],
6521
6488
  headerParameters: [accept, contentType],
6522
6489
  mediaType: "json",
6523
- serializer: serializer$a
6490
+ serializer: serializer$8
6524
6491
  };
6525
- const deleteOperationSpec$3 = {
6492
+ const deleteOperationSpec$2 = {
6526
6493
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupPolicies/{backupPolicyName}",
6527
6494
  httpMethod: "DELETE",
6528
6495
  responses: {
@@ -6541,9 +6508,9 @@ const deleteOperationSpec$3 = {
6541
6508
  backupPolicyName
6542
6509
  ],
6543
6510
  headerParameters: [accept],
6544
- serializer: serializer$a
6511
+ serializer: serializer$8
6545
6512
  };
6546
- const listNextOperationSpec$6 = {
6513
+ const listNextOperationSpec$4 = {
6547
6514
  path: "{nextLink}",
6548
6515
  httpMethod: "GET",
6549
6516
  responses: {
@@ -6562,7 +6529,7 @@ const listNextOperationSpec$6 = {
6562
6529
  nextLink
6563
6530
  ],
6564
6531
  headerParameters: [accept],
6565
- serializer: serializer$a
6532
+ serializer: serializer$8
6566
6533
  };
6567
6534
 
6568
6535
  /*
@@ -6584,7 +6551,7 @@ class BackupInstancesImpl {
6584
6551
  }
6585
6552
  /**
6586
6553
  * Gets a backup instances belonging to a backup vault
6587
- * @param resourceGroupName The name of the resource group where the backup vault is present.
6554
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
6588
6555
  * @param vaultName The name of the backup vault.
6589
6556
  * @param options The options parameters.
6590
6557
  */
@@ -6645,28 +6612,28 @@ class BackupInstancesImpl {
6645
6612
  }
6646
6613
  /**
6647
6614
  * Gets a backup instances belonging to a backup vault
6648
- * @param resourceGroupName The name of the resource group where the backup vault is present.
6615
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
6649
6616
  * @param vaultName The name of the backup vault.
6650
6617
  * @param options The options parameters.
6651
6618
  */
6652
6619
  _list(resourceGroupName, vaultName, options) {
6653
- return this.client.sendOperationRequest({ resourceGroupName, vaultName, options }, listOperationSpec$5);
6620
+ return this.client.sendOperationRequest({ resourceGroupName, vaultName, options }, listOperationSpec$3);
6654
6621
  }
6655
6622
  /**
6656
6623
  * Gets a backup instance with name in a backup vault
6657
- * @param resourceGroupName The name of the resource group where the backup vault is present.
6624
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
6658
6625
  * @param vaultName The name of the backup vault.
6659
- * @param backupInstanceName The name of the backup instance
6626
+ * @param backupInstanceName The name of the backup instance.
6660
6627
  * @param options The options parameters.
6661
6628
  */
6662
6629
  get(resourceGroupName, vaultName, backupInstanceName, options) {
6663
- return this.client.sendOperationRequest({ resourceGroupName, vaultName, backupInstanceName, options }, getOperationSpec$6);
6630
+ return this.client.sendOperationRequest({ resourceGroupName, vaultName, backupInstanceName, options }, getOperationSpec$5);
6664
6631
  }
6665
6632
  /**
6666
6633
  * Create or update a backup instance in a backup vault
6667
- * @param resourceGroupName The name of the resource group where the backup vault is present.
6634
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
6668
6635
  * @param vaultName The name of the backup vault.
6669
- * @param backupInstanceName The name of the backup instance
6636
+ * @param backupInstanceName The name of the backup instance.
6670
6637
  * @param parameters Request body for operation
6671
6638
  * @param options The options parameters.
6672
6639
  */
@@ -6705,9 +6672,9 @@ class BackupInstancesImpl {
6705
6672
  }
6706
6673
  /**
6707
6674
  * Create or update a backup instance in a backup vault
6708
- * @param resourceGroupName The name of the resource group where the backup vault is present.
6675
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
6709
6676
  * @param vaultName The name of the backup vault.
6710
- * @param backupInstanceName The name of the backup instance
6677
+ * @param backupInstanceName The name of the backup instance.
6711
6678
  * @param parameters Request body for operation
6712
6679
  * @param options The options parameters.
6713
6680
  */
@@ -6719,9 +6686,9 @@ class BackupInstancesImpl {
6719
6686
  }
6720
6687
  /**
6721
6688
  * Delete a backup instance in a backup vault
6722
- * @param resourceGroupName The name of the resource group where the backup vault is present.
6689
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
6723
6690
  * @param vaultName The name of the backup vault.
6724
- * @param backupInstanceName The name of the backup instance
6691
+ * @param backupInstanceName The name of the backup instance.
6725
6692
  * @param options The options parameters.
6726
6693
  */
6727
6694
  beginDelete(resourceGroupName, vaultName, backupInstanceName, options) {
@@ -6748,7 +6715,7 @@ class BackupInstancesImpl {
6748
6715
  }
6749
6716
  };
6750
6717
  });
6751
- const lro = new LroImpl(sendOperation, { resourceGroupName, vaultName, backupInstanceName, options }, deleteOperationSpec$2);
6718
+ const lro = new LroImpl(sendOperation, { resourceGroupName, vaultName, backupInstanceName, options }, deleteOperationSpec$1);
6752
6719
  const poller = new coreLro.LroEngine(lro, {
6753
6720
  resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
6754
6721
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
@@ -6759,9 +6726,9 @@ class BackupInstancesImpl {
6759
6726
  }
6760
6727
  /**
6761
6728
  * Delete a backup instance in a backup vault
6762
- * @param resourceGroupName The name of the resource group where the backup vault is present.
6729
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
6763
6730
  * @param vaultName The name of the backup vault.
6764
- * @param backupInstanceName The name of the backup instance
6731
+ * @param backupInstanceName The name of the backup instance.
6765
6732
  * @param options The options parameters.
6766
6733
  */
6767
6734
  beginDeleteAndWait(resourceGroupName, vaultName, backupInstanceName, options) {
@@ -6772,9 +6739,9 @@ class BackupInstancesImpl {
6772
6739
  }
6773
6740
  /**
6774
6741
  * Trigger adhoc backup
6775
- * @param resourceGroupName The name of the resource group where the backup vault is present.
6742
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
6776
6743
  * @param vaultName The name of the backup vault.
6777
- * @param backupInstanceName The name of the backup instance
6744
+ * @param backupInstanceName The name of the backup instance.
6778
6745
  * @param parameters Request body for operation
6779
6746
  * @param options The options parameters.
6780
6747
  */
@@ -6813,9 +6780,9 @@ class BackupInstancesImpl {
6813
6780
  }
6814
6781
  /**
6815
6782
  * Trigger adhoc backup
6816
- * @param resourceGroupName The name of the resource group where the backup vault is present.
6783
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
6817
6784
  * @param vaultName The name of the backup vault.
6818
- * @param backupInstanceName The name of the backup instance
6785
+ * @param backupInstanceName The name of the backup instance.
6819
6786
  * @param parameters Request body for operation
6820
6787
  * @param options The options parameters.
6821
6788
  */
@@ -6827,7 +6794,7 @@ class BackupInstancesImpl {
6827
6794
  }
6828
6795
  /**
6829
6796
  * Validate whether adhoc backup will be successful or not
6830
- * @param resourceGroupName The name of the resource group where the backup vault is present.
6797
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
6831
6798
  * @param vaultName The name of the backup vault.
6832
6799
  * @param parameters Request body for operation
6833
6800
  * @param options The options parameters.
@@ -6867,7 +6834,7 @@ class BackupInstancesImpl {
6867
6834
  }
6868
6835
  /**
6869
6836
  * Validate whether adhoc backup will be successful or not
6870
- * @param resourceGroupName The name of the resource group where the backup vault is present.
6837
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
6871
6838
  * @param vaultName The name of the backup vault.
6872
6839
  * @param parameters Request body for operation
6873
6840
  * @param options The options parameters.
@@ -6880,9 +6847,9 @@ class BackupInstancesImpl {
6880
6847
  }
6881
6848
  /**
6882
6849
  * Get result of backup instance creation operation
6883
- * @param resourceGroupName The name of the resource group where the backup vault is present.
6850
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
6884
6851
  * @param vaultName The name of the backup vault.
6885
- * @param backupInstanceName
6852
+ * @param backupInstanceName The name of the backup instance.
6886
6853
  * @param operationId
6887
6854
  * @param options The options parameters.
6888
6855
  */
@@ -6897,9 +6864,9 @@ class BackupInstancesImpl {
6897
6864
  }
6898
6865
  /**
6899
6866
  * rehydrate recovery point for restore for a BackupInstance
6900
- * @param resourceGroupName The name of the resource group where the backup vault is present.
6867
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
6901
6868
  * @param vaultName The name of the backup vault.
6902
- * @param backupInstanceName
6869
+ * @param backupInstanceName The name of the backup instance.
6903
6870
  * @param parameters Request body for operation
6904
6871
  * @param options The options parameters.
6905
6872
  */
@@ -6938,9 +6905,9 @@ class BackupInstancesImpl {
6938
6905
  }
6939
6906
  /**
6940
6907
  * rehydrate recovery point for restore for a BackupInstance
6941
- * @param resourceGroupName The name of the resource group where the backup vault is present.
6908
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
6942
6909
  * @param vaultName The name of the backup vault.
6943
- * @param backupInstanceName
6910
+ * @param backupInstanceName The name of the backup instance.
6944
6911
  * @param parameters Request body for operation
6945
6912
  * @param options The options parameters.
6946
6913
  */
@@ -6952,9 +6919,9 @@ class BackupInstancesImpl {
6952
6919
  }
6953
6920
  /**
6954
6921
  * Triggers restore for a BackupInstance
6955
- * @param resourceGroupName The name of the resource group where the backup vault is present.
6922
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
6956
6923
  * @param vaultName The name of the backup vault.
6957
- * @param backupInstanceName The name of the backup instance
6924
+ * @param backupInstanceName The name of the backup instance.
6958
6925
  * @param parameters Request body for operation
6959
6926
  * @param options The options parameters.
6960
6927
  */
@@ -6993,9 +6960,9 @@ class BackupInstancesImpl {
6993
6960
  }
6994
6961
  /**
6995
6962
  * Triggers restore for a BackupInstance
6996
- * @param resourceGroupName The name of the resource group where the backup vault is present.
6963
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
6997
6964
  * @param vaultName The name of the backup vault.
6998
- * @param backupInstanceName The name of the backup instance
6965
+ * @param backupInstanceName The name of the backup instance.
6999
6966
  * @param parameters Request body for operation
7000
6967
  * @param options The options parameters.
7001
6968
  */
@@ -7007,9 +6974,9 @@ class BackupInstancesImpl {
7007
6974
  }
7008
6975
  /**
7009
6976
  * This operation will resume backups for backup instance
7010
- * @param resourceGroupName The name of the resource group where the backup vault is present.
6977
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
7011
6978
  * @param vaultName The name of the backup vault.
7012
- * @param backupInstanceName
6979
+ * @param backupInstanceName The name of the backup instance.
7013
6980
  * @param options The options parameters.
7014
6981
  */
7015
6982
  beginResumeBackups(resourceGroupName, vaultName, backupInstanceName, options) {
@@ -7047,9 +7014,9 @@ class BackupInstancesImpl {
7047
7014
  }
7048
7015
  /**
7049
7016
  * This operation will resume backups for backup instance
7050
- * @param resourceGroupName The name of the resource group where the backup vault is present.
7017
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
7051
7018
  * @param vaultName The name of the backup vault.
7052
- * @param backupInstanceName
7019
+ * @param backupInstanceName The name of the backup instance.
7053
7020
  * @param options The options parameters.
7054
7021
  */
7055
7022
  beginResumeBackupsAndWait(resourceGroupName, vaultName, backupInstanceName, options) {
@@ -7060,9 +7027,9 @@ class BackupInstancesImpl {
7060
7027
  }
7061
7028
  /**
7062
7029
  * This operation will resume protection for a stopped backup instance
7063
- * @param resourceGroupName The name of the resource group where the backup vault is present.
7030
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
7064
7031
  * @param vaultName The name of the backup vault.
7065
- * @param backupInstanceName
7032
+ * @param backupInstanceName The name of the backup instance.
7066
7033
  * @param options The options parameters.
7067
7034
  */
7068
7035
  beginResumeProtection(resourceGroupName, vaultName, backupInstanceName, options) {
@@ -7100,9 +7067,9 @@ class BackupInstancesImpl {
7100
7067
  }
7101
7068
  /**
7102
7069
  * This operation will resume protection for a stopped backup instance
7103
- * @param resourceGroupName The name of the resource group where the backup vault is present.
7070
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
7104
7071
  * @param vaultName The name of the backup vault.
7105
- * @param backupInstanceName
7072
+ * @param backupInstanceName The name of the backup instance.
7106
7073
  * @param options The options parameters.
7107
7074
  */
7108
7075
  beginResumeProtectionAndWait(resourceGroupName, vaultName, backupInstanceName, options) {
@@ -7113,9 +7080,9 @@ class BackupInstancesImpl {
7113
7080
  }
7114
7081
  /**
7115
7082
  * This operation will stop protection of a backup instance and data will be held forever
7116
- * @param resourceGroupName The name of the resource group where the backup vault is present.
7083
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
7117
7084
  * @param vaultName The name of the backup vault.
7118
- * @param backupInstanceName
7085
+ * @param backupInstanceName The name of the backup instance.
7119
7086
  * @param options The options parameters.
7120
7087
  */
7121
7088
  beginStopProtection(resourceGroupName, vaultName, backupInstanceName, options) {
@@ -7153,9 +7120,9 @@ class BackupInstancesImpl {
7153
7120
  }
7154
7121
  /**
7155
7122
  * This operation will stop protection of a backup instance and data will be held forever
7156
- * @param resourceGroupName The name of the resource group where the backup vault is present.
7123
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
7157
7124
  * @param vaultName The name of the backup vault.
7158
- * @param backupInstanceName
7125
+ * @param backupInstanceName The name of the backup instance.
7159
7126
  * @param options The options parameters.
7160
7127
  */
7161
7128
  beginStopProtectionAndWait(resourceGroupName, vaultName, backupInstanceName, options) {
@@ -7167,9 +7134,9 @@ class BackupInstancesImpl {
7167
7134
  /**
7168
7135
  * This operation will stop backup for a backup instance and retains the backup data as per the policy
7169
7136
  * (except latest Recovery point, which will be retained forever)
7170
- * @param resourceGroupName The name of the resource group where the backup vault is present.
7137
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
7171
7138
  * @param vaultName The name of the backup vault.
7172
- * @param backupInstanceName
7139
+ * @param backupInstanceName The name of the backup instance.
7173
7140
  * @param options The options parameters.
7174
7141
  */
7175
7142
  beginSuspendBackups(resourceGroupName, vaultName, backupInstanceName, options) {
@@ -7208,9 +7175,9 @@ class BackupInstancesImpl {
7208
7175
  /**
7209
7176
  * This operation will stop backup for a backup instance and retains the backup data as per the policy
7210
7177
  * (except latest Recovery point, which will be retained forever)
7211
- * @param resourceGroupName The name of the resource group where the backup vault is present.
7178
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
7212
7179
  * @param vaultName The name of the backup vault.
7213
- * @param backupInstanceName
7180
+ * @param backupInstanceName The name of the backup instance.
7214
7181
  * @param options The options parameters.
7215
7182
  */
7216
7183
  beginSuspendBackupsAndWait(resourceGroupName, vaultName, backupInstanceName, options) {
@@ -7222,9 +7189,9 @@ class BackupInstancesImpl {
7222
7189
  /**
7223
7190
  * Sync backup instance again in case of failure
7224
7191
  * This action will retry last failed operation and will bring backup instance to valid state
7225
- * @param resourceGroupName The name of the resource group where the backup vault is present.
7192
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
7226
7193
  * @param vaultName The name of the backup vault.
7227
- * @param backupInstanceName
7194
+ * @param backupInstanceName The name of the backup instance.
7228
7195
  * @param parameters Request body for operation
7229
7196
  * @param options The options parameters.
7230
7197
  */
@@ -7264,9 +7231,9 @@ class BackupInstancesImpl {
7264
7231
  /**
7265
7232
  * Sync backup instance again in case of failure
7266
7233
  * This action will retry last failed operation and will bring backup instance to valid state
7267
- * @param resourceGroupName The name of the resource group where the backup vault is present.
7234
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
7268
7235
  * @param vaultName The name of the backup vault.
7269
- * @param backupInstanceName
7236
+ * @param backupInstanceName The name of the backup instance.
7270
7237
  * @param parameters Request body for operation
7271
7238
  * @param options The options parameters.
7272
7239
  */
@@ -7278,9 +7245,9 @@ class BackupInstancesImpl {
7278
7245
  }
7279
7246
  /**
7280
7247
  * Validates if Restore can be triggered for a DataSource
7281
- * @param resourceGroupName The name of the resource group where the backup vault is present.
7248
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
7282
7249
  * @param vaultName The name of the backup vault.
7283
- * @param backupInstanceName The name of the backup instance
7250
+ * @param backupInstanceName The name of the backup instance.
7284
7251
  * @param parameters Request body for operation
7285
7252
  * @param options The options parameters.
7286
7253
  */
@@ -7319,9 +7286,9 @@ class BackupInstancesImpl {
7319
7286
  }
7320
7287
  /**
7321
7288
  * Validates if Restore can be triggered for a DataSource
7322
- * @param resourceGroupName The name of the resource group where the backup vault is present.
7289
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
7323
7290
  * @param vaultName The name of the backup vault.
7324
- * @param backupInstanceName The name of the backup instance
7291
+ * @param backupInstanceName The name of the backup instance.
7325
7292
  * @param parameters Request body for operation
7326
7293
  * @param options The options parameters.
7327
7294
  */
@@ -7333,18 +7300,18 @@ class BackupInstancesImpl {
7333
7300
  }
7334
7301
  /**
7335
7302
  * ListNext
7336
- * @param resourceGroupName The name of the resource group where the backup vault is present.
7303
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
7337
7304
  * @param vaultName The name of the backup vault.
7338
7305
  * @param nextLink The nextLink from the previous successful call to the List method.
7339
7306
  * @param options The options parameters.
7340
7307
  */
7341
7308
  _listNext(resourceGroupName, vaultName, nextLink, options) {
7342
- return this.client.sendOperationRequest({ resourceGroupName, vaultName, nextLink, options }, listNextOperationSpec$5);
7309
+ return this.client.sendOperationRequest({ resourceGroupName, vaultName, nextLink, options }, listNextOperationSpec$3);
7343
7310
  }
7344
7311
  }
7345
7312
  // Operation Specifications
7346
- const serializer$9 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
7347
- const listOperationSpec$5 = {
7313
+ const serializer$7 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
7314
+ const listOperationSpec$3 = {
7348
7315
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupInstances",
7349
7316
  httpMethod: "GET",
7350
7317
  responses: {
@@ -7363,9 +7330,9 @@ const listOperationSpec$5 = {
7363
7330
  vaultName
7364
7331
  ],
7365
7332
  headerParameters: [accept],
7366
- serializer: serializer$9
7333
+ serializer: serializer$7
7367
7334
  };
7368
- const getOperationSpec$6 = {
7335
+ const getOperationSpec$5 = {
7369
7336
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupInstances/{backupInstanceName}",
7370
7337
  httpMethod: "GET",
7371
7338
  responses: {
@@ -7385,7 +7352,7 @@ const getOperationSpec$6 = {
7385
7352
  backupInstanceName
7386
7353
  ],
7387
7354
  headerParameters: [accept],
7388
- serializer: serializer$9
7355
+ serializer: serializer$7
7389
7356
  };
7390
7357
  const createOrUpdateOperationSpec = {
7391
7358
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupInstances/{backupInstanceName}",
@@ -7418,9 +7385,9 @@ const createOrUpdateOperationSpec = {
7418
7385
  ],
7419
7386
  headerParameters: [accept, contentType],
7420
7387
  mediaType: "json",
7421
- serializer: serializer$9
7388
+ serializer: serializer$7
7422
7389
  };
7423
- const deleteOperationSpec$2 = {
7390
+ const deleteOperationSpec$1 = {
7424
7391
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupInstances/{backupInstanceName}",
7425
7392
  httpMethod: "DELETE",
7426
7393
  responses: {
@@ -7441,7 +7408,7 @@ const deleteOperationSpec$2 = {
7441
7408
  backupInstanceName
7442
7409
  ],
7443
7410
  headerParameters: [accept],
7444
- serializer: serializer$9
7411
+ serializer: serializer$7
7445
7412
  };
7446
7413
  const adhocBackupOperationSpec = {
7447
7414
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupInstances/{backupInstanceName}/backup",
@@ -7474,7 +7441,7 @@ const adhocBackupOperationSpec = {
7474
7441
  ],
7475
7442
  headerParameters: [accept, contentType],
7476
7443
  mediaType: "json",
7477
- serializer: serializer$9
7444
+ serializer: serializer$7
7478
7445
  };
7479
7446
  const validateForBackupOperationSpec = {
7480
7447
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/validateForBackup",
@@ -7506,7 +7473,7 @@ const validateForBackupOperationSpec = {
7506
7473
  ],
7507
7474
  headerParameters: [accept, contentType],
7508
7475
  mediaType: "json",
7509
- serializer: serializer$9
7476
+ serializer: serializer$7
7510
7477
  };
7511
7478
  const getBackupInstanceOperationResultOperationSpec = {
7512
7479
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupInstances/{backupInstanceName}/operationResults/{operationId}",
@@ -7530,7 +7497,7 @@ const getBackupInstanceOperationResultOperationSpec = {
7530
7497
  backupInstanceName
7531
7498
  ],
7532
7499
  headerParameters: [accept],
7533
- serializer: serializer$9
7500
+ serializer: serializer$7
7534
7501
  };
7535
7502
  const triggerRehydrateOperationSpec = {
7536
7503
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupInstances/{backupInstanceName}/rehydrate",
@@ -7563,7 +7530,7 @@ const triggerRehydrateOperationSpec = {
7563
7530
  ],
7564
7531
  headerParameters: [accept, contentType],
7565
7532
  mediaType: "json",
7566
- serializer: serializer$9
7533
+ serializer: serializer$7
7567
7534
  };
7568
7535
  const triggerRestoreOperationSpec = {
7569
7536
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupInstances/{backupInstanceName}/restore",
@@ -7596,7 +7563,7 @@ const triggerRestoreOperationSpec = {
7596
7563
  ],
7597
7564
  headerParameters: [accept, contentType],
7598
7565
  mediaType: "json",
7599
- serializer: serializer$9
7566
+ serializer: serializer$7
7600
7567
  };
7601
7568
  const resumeBackupsOperationSpec = {
7602
7569
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupInstances/{backupInstanceName}/resumeBackups",
@@ -7619,7 +7586,7 @@ const resumeBackupsOperationSpec = {
7619
7586
  backupInstanceName
7620
7587
  ],
7621
7588
  headerParameters: [accept],
7622
- serializer: serializer$9
7589
+ serializer: serializer$7
7623
7590
  };
7624
7591
  const resumeProtectionOperationSpec = {
7625
7592
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupInstances/{backupInstanceName}/resumeProtection",
@@ -7642,7 +7609,7 @@ const resumeProtectionOperationSpec = {
7642
7609
  backupInstanceName
7643
7610
  ],
7644
7611
  headerParameters: [accept],
7645
- serializer: serializer$9
7612
+ serializer: serializer$7
7646
7613
  };
7647
7614
  const stopProtectionOperationSpec = {
7648
7615
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupInstances/{backupInstanceName}/stopProtection",
@@ -7665,7 +7632,7 @@ const stopProtectionOperationSpec = {
7665
7632
  backupInstanceName
7666
7633
  ],
7667
7634
  headerParameters: [accept],
7668
- serializer: serializer$9
7635
+ serializer: serializer$7
7669
7636
  };
7670
7637
  const suspendBackupsOperationSpec = {
7671
7638
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupInstances/{backupInstanceName}/suspendBackups",
@@ -7688,7 +7655,7 @@ const suspendBackupsOperationSpec = {
7688
7655
  backupInstanceName
7689
7656
  ],
7690
7657
  headerParameters: [accept],
7691
- serializer: serializer$9
7658
+ serializer: serializer$7
7692
7659
  };
7693
7660
  const syncBackupInstanceOperationSpec = {
7694
7661
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupInstances/{backupInstanceName}/sync",
@@ -7713,7 +7680,7 @@ const syncBackupInstanceOperationSpec = {
7713
7680
  ],
7714
7681
  headerParameters: [accept, contentType],
7715
7682
  mediaType: "json",
7716
- serializer: serializer$9
7683
+ serializer: serializer$7
7717
7684
  };
7718
7685
  const validateForRestoreOperationSpec = {
7719
7686
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupInstances/{backupInstanceName}/validateRestore",
@@ -7746,9 +7713,9 @@ const validateForRestoreOperationSpec = {
7746
7713
  ],
7747
7714
  headerParameters: [accept, contentType],
7748
7715
  mediaType: "json",
7749
- serializer: serializer$9
7716
+ serializer: serializer$7
7750
7717
  };
7751
- const listNextOperationSpec$5 = {
7718
+ const listNextOperationSpec$3 = {
7752
7719
  path: "{nextLink}",
7753
7720
  httpMethod: "GET",
7754
7721
  responses: {
@@ -7767,7 +7734,7 @@ const listNextOperationSpec$5 = {
7767
7734
  nextLink
7768
7735
  ],
7769
7736
  headerParameters: [accept],
7770
- serializer: serializer$9
7737
+ serializer: serializer$7
7771
7738
  };
7772
7739
 
7773
7740
  /*
@@ -7778,22 +7745,24 @@ const listNextOperationSpec$5 = {
7778
7745
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7779
7746
  */
7780
7747
  /// <reference lib="esnext.asynciterable" />
7781
- /** Class containing BackupInstancesExtensionRouting operations. */
7782
- class BackupInstancesExtensionRoutingImpl {
7748
+ /** Class containing RecoveryPoints operations. */
7749
+ class RecoveryPointsImpl {
7783
7750
  /**
7784
- * Initialize a new instance of the class BackupInstancesExtensionRouting class.
7751
+ * Initialize a new instance of the class RecoveryPoints class.
7785
7752
  * @param client Reference to the service client
7786
7753
  */
7787
7754
  constructor(client) {
7788
7755
  this.client = client;
7789
7756
  }
7790
7757
  /**
7791
- * Gets a list backup instances associated with a tracked resource
7792
- * @param resourceId ARM path of the resource to be protected using Microsoft.DataProtection
7758
+ * Returns a list of Recovery Points for a DataSource in a vault.
7759
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
7760
+ * @param vaultName The name of the backup vault.
7761
+ * @param backupInstanceName The name of the backup instance.
7793
7762
  * @param options The options parameters.
7794
7763
  */
7795
- list(resourceId, options) {
7796
- const iter = this.listPagingAll(resourceId, options);
7764
+ list(resourceGroupName, vaultName, backupInstanceName, options) {
7765
+ const iter = this.listPagingAll(resourceGroupName, vaultName, backupInstanceName, options);
7797
7766
  return {
7798
7767
  next() {
7799
7768
  return iter.next();
@@ -7805,23 +7774,23 @@ class BackupInstancesExtensionRoutingImpl {
7805
7774
  if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
7806
7775
  throw new Error("maxPageSize is not supported by this operation.");
7807
7776
  }
7808
- return this.listPagingPage(resourceId, options, settings);
7777
+ return this.listPagingPage(resourceGroupName, vaultName, backupInstanceName, options, settings);
7809
7778
  }
7810
7779
  };
7811
7780
  }
7812
- listPagingPage(resourceId, options, settings) {
7781
+ listPagingPage(resourceGroupName, vaultName, backupInstanceName, options, settings) {
7813
7782
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
7814
7783
  let result;
7815
7784
  let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
7816
7785
  if (!continuationToken) {
7817
- result = yield tslib.__await(this._list(resourceId, options));
7786
+ result = yield tslib.__await(this._list(resourceGroupName, vaultName, backupInstanceName, options));
7818
7787
  let page = result.value || [];
7819
7788
  continuationToken = result.nextLink;
7820
7789
  setContinuationToken(page, continuationToken);
7821
7790
  yield yield tslib.__await(page);
7822
7791
  }
7823
7792
  while (continuationToken) {
7824
- result = yield tslib.__await(this._listNext(resourceId, continuationToken, options));
7793
+ result = yield tslib.__await(this._listNext(resourceGroupName, vaultName, backupInstanceName, continuationToken, options));
7825
7794
  continuationToken = result.nextLink;
7826
7795
  let page = result.value || [];
7827
7796
  setContinuationToken(page, continuationToken);
@@ -7829,11 +7798,11 @@ class BackupInstancesExtensionRoutingImpl {
7829
7798
  }
7830
7799
  });
7831
7800
  }
7832
- listPagingAll(resourceId, options) {
7801
+ listPagingAll(resourceGroupName, vaultName, backupInstanceName, options) {
7833
7802
  return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
7834
7803
  var e_1, _a;
7835
7804
  try {
7836
- for (var _b = tslib.__asyncValues(this.listPagingPage(resourceId, options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
7805
+ for (var _b = tslib.__asyncValues(this.listPagingPage(resourceGroupName, vaultName, backupInstanceName, options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
7837
7806
  const page = _c.value;
7838
7807
  yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
7839
7808
  }
@@ -7848,227 +7817,96 @@ class BackupInstancesExtensionRoutingImpl {
7848
7817
  });
7849
7818
  }
7850
7819
  /**
7851
- * Gets a list backup instances associated with a tracked resource
7852
- * @param resourceId ARM path of the resource to be protected using Microsoft.DataProtection
7820
+ * Returns a list of Recovery Points for a DataSource in a vault.
7821
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
7822
+ * @param vaultName The name of the backup vault.
7823
+ * @param backupInstanceName The name of the backup instance.
7824
+ * @param options The options parameters.
7825
+ */
7826
+ _list(resourceGroupName, vaultName, backupInstanceName, options) {
7827
+ return this.client.sendOperationRequest({ resourceGroupName, vaultName, backupInstanceName, options }, listOperationSpec$2);
7828
+ }
7829
+ /**
7830
+ * Gets a Recovery Point using recoveryPointId for a Datasource.
7831
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
7832
+ * @param vaultName The name of the backup vault.
7833
+ * @param backupInstanceName The name of the backup instance.
7834
+ * @param recoveryPointId
7853
7835
  * @param options The options parameters.
7854
7836
  */
7855
- _list(resourceId, options) {
7856
- return this.client.sendOperationRequest({ resourceId, options }, listOperationSpec$4);
7837
+ get(resourceGroupName, vaultName, backupInstanceName, recoveryPointId, options) {
7838
+ return this.client.sendOperationRequest({
7839
+ resourceGroupName,
7840
+ vaultName,
7841
+ backupInstanceName,
7842
+ recoveryPointId,
7843
+ options
7844
+ }, getOperationSpec$4);
7857
7845
  }
7858
7846
  /**
7859
7847
  * ListNext
7860
- * @param resourceId ARM path of the resource to be protected using Microsoft.DataProtection
7848
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
7849
+ * @param vaultName The name of the backup vault.
7850
+ * @param backupInstanceName The name of the backup instance.
7861
7851
  * @param nextLink The nextLink from the previous successful call to the List method.
7862
7852
  * @param options The options parameters.
7863
7853
  */
7864
- _listNext(resourceId, nextLink, options) {
7865
- return this.client.sendOperationRequest({ resourceId, nextLink, options }, listNextOperationSpec$4);
7854
+ _listNext(resourceGroupName, vaultName, backupInstanceName, nextLink, options) {
7855
+ return this.client.sendOperationRequest({ resourceGroupName, vaultName, backupInstanceName, nextLink, options }, listNextOperationSpec$2);
7866
7856
  }
7867
7857
  }
7868
7858
  // Operation Specifications
7869
- const serializer$8 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
7870
- const listOperationSpec$4 = {
7871
- path: "/{resourceId}/providers/Microsoft.DataProtection/backupInstances",
7859
+ const serializer$6 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
7860
+ const listOperationSpec$2 = {
7861
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupInstances/{backupInstanceName}/recoveryPoints",
7872
7862
  httpMethod: "GET",
7873
7863
  responses: {
7874
7864
  200: {
7875
- bodyMapper: BackupInstanceResourceList
7865
+ bodyMapper: AzureBackupRecoveryPointResourceList
7876
7866
  },
7877
7867
  default: {
7878
7868
  bodyMapper: CloudError
7879
7869
  }
7880
7870
  },
7881
- queryParameters: [apiVersion],
7882
- urlParameters: [$host, resourceId],
7871
+ queryParameters: [
7872
+ apiVersion,
7873
+ filter,
7874
+ skipToken
7875
+ ],
7876
+ urlParameters: [
7877
+ $host,
7878
+ subscriptionId,
7879
+ resourceGroupName,
7880
+ vaultName,
7881
+ backupInstanceName
7882
+ ],
7883
7883
  headerParameters: [accept],
7884
- serializer: serializer$8
7884
+ serializer: serializer$6
7885
7885
  };
7886
- const listNextOperationSpec$4 = {
7887
- path: "{nextLink}",
7886
+ const getOperationSpec$4 = {
7887
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupInstances/{backupInstanceName}/recoveryPoints/{recoveryPointId}",
7888
7888
  httpMethod: "GET",
7889
7889
  responses: {
7890
7890
  200: {
7891
- bodyMapper: BackupInstanceResourceList
7891
+ bodyMapper: AzureBackupRecoveryPointResource
7892
7892
  },
7893
7893
  default: {
7894
7894
  bodyMapper: CloudError
7895
7895
  }
7896
7896
  },
7897
- urlParameters: [$host, nextLink, resourceId],
7897
+ queryParameters: [apiVersion],
7898
+ urlParameters: [
7899
+ $host,
7900
+ subscriptionId,
7901
+ resourceGroupName,
7902
+ vaultName,
7903
+ backupInstanceName,
7904
+ recoveryPointId
7905
+ ],
7898
7906
  headerParameters: [accept],
7899
- serializer: serializer$8
7907
+ serializer: serializer$6
7900
7908
  };
7901
-
7902
- /*
7903
- * Copyright (c) Microsoft Corporation.
7904
- * Licensed under the MIT License.
7905
- *
7906
- * Code generated by Microsoft (R) AutoRest Code Generator.
7907
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7908
- */
7909
- /// <reference lib="esnext.asynciterable" />
7910
- /** Class containing RecoveryPoints operations. */
7911
- class RecoveryPointsImpl {
7912
- /**
7913
- * Initialize a new instance of the class RecoveryPoints class.
7914
- * @param client Reference to the service client
7915
- */
7916
- constructor(client) {
7917
- this.client = client;
7918
- }
7919
- /**
7920
- * Returns a list of Recovery Points for a DataSource in a vault.
7921
- * @param resourceGroupName The name of the resource group where the backup vault is present.
7922
- * @param vaultName The name of the backup vault.
7923
- * @param backupInstanceName The name of the backup instance
7924
- * @param options The options parameters.
7925
- */
7926
- list(resourceGroupName, vaultName, backupInstanceName, options) {
7927
- const iter = this.listPagingAll(resourceGroupName, vaultName, backupInstanceName, options);
7928
- return {
7929
- next() {
7930
- return iter.next();
7931
- },
7932
- [Symbol.asyncIterator]() {
7933
- return this;
7934
- },
7935
- byPage: (settings) => {
7936
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
7937
- throw new Error("maxPageSize is not supported by this operation.");
7938
- }
7939
- return this.listPagingPage(resourceGroupName, vaultName, backupInstanceName, options, settings);
7940
- }
7941
- };
7942
- }
7943
- listPagingPage(resourceGroupName, vaultName, backupInstanceName, options, settings) {
7944
- return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
7945
- let result;
7946
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
7947
- if (!continuationToken) {
7948
- result = yield tslib.__await(this._list(resourceGroupName, vaultName, backupInstanceName, options));
7949
- let page = result.value || [];
7950
- continuationToken = result.nextLink;
7951
- setContinuationToken(page, continuationToken);
7952
- yield yield tslib.__await(page);
7953
- }
7954
- while (continuationToken) {
7955
- result = yield tslib.__await(this._listNext(resourceGroupName, vaultName, backupInstanceName, continuationToken, options));
7956
- continuationToken = result.nextLink;
7957
- let page = result.value || [];
7958
- setContinuationToken(page, continuationToken);
7959
- yield yield tslib.__await(page);
7960
- }
7961
- });
7962
- }
7963
- listPagingAll(resourceGroupName, vaultName, backupInstanceName, options) {
7964
- return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
7965
- var e_1, _a;
7966
- try {
7967
- for (var _b = tslib.__asyncValues(this.listPagingPage(resourceGroupName, vaultName, backupInstanceName, options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
7968
- const page = _c.value;
7969
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
7970
- }
7971
- }
7972
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
7973
- finally {
7974
- try {
7975
- if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
7976
- }
7977
- finally { if (e_1) throw e_1.error; }
7978
- }
7979
- });
7980
- }
7981
- /**
7982
- * Returns a list of Recovery Points for a DataSource in a vault.
7983
- * @param resourceGroupName The name of the resource group where the backup vault is present.
7984
- * @param vaultName The name of the backup vault.
7985
- * @param backupInstanceName The name of the backup instance
7986
- * @param options The options parameters.
7987
- */
7988
- _list(resourceGroupName, vaultName, backupInstanceName, options) {
7989
- return this.client.sendOperationRequest({ resourceGroupName, vaultName, backupInstanceName, options }, listOperationSpec$3);
7990
- }
7991
- /**
7992
- * Gets a Recovery Point using recoveryPointId for a Datasource.
7993
- * @param resourceGroupName The name of the resource group where the backup vault is present.
7994
- * @param vaultName The name of the backup vault.
7995
- * @param backupInstanceName The name of the backup instance
7996
- * @param recoveryPointId
7997
- * @param options The options parameters.
7998
- */
7999
- get(resourceGroupName, vaultName, backupInstanceName, recoveryPointId, options) {
8000
- return this.client.sendOperationRequest({
8001
- resourceGroupName,
8002
- vaultName,
8003
- backupInstanceName,
8004
- recoveryPointId,
8005
- options
8006
- }, getOperationSpec$5);
8007
- }
8008
- /**
8009
- * ListNext
8010
- * @param resourceGroupName The name of the resource group where the backup vault is present.
8011
- * @param vaultName The name of the backup vault.
8012
- * @param backupInstanceName The name of the backup instance
8013
- * @param nextLink The nextLink from the previous successful call to the List method.
8014
- * @param options The options parameters.
8015
- */
8016
- _listNext(resourceGroupName, vaultName, backupInstanceName, nextLink, options) {
8017
- return this.client.sendOperationRequest({ resourceGroupName, vaultName, backupInstanceName, nextLink, options }, listNextOperationSpec$3);
8018
- }
8019
- }
8020
- // Operation Specifications
8021
- const serializer$7 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
8022
- const listOperationSpec$3 = {
8023
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupInstances/{backupInstanceName}/recoveryPoints",
8024
- httpMethod: "GET",
8025
- responses: {
8026
- 200: {
8027
- bodyMapper: AzureBackupRecoveryPointResourceList
8028
- },
8029
- default: {
8030
- bodyMapper: CloudError
8031
- }
8032
- },
8033
- queryParameters: [
8034
- apiVersion,
8035
- filter,
8036
- skipToken
8037
- ],
8038
- urlParameters: [
8039
- $host,
8040
- subscriptionId,
8041
- resourceGroupName,
8042
- vaultName,
8043
- backupInstanceName
8044
- ],
8045
- headerParameters: [accept],
8046
- serializer: serializer$7
8047
- };
8048
- const getOperationSpec$5 = {
8049
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupInstances/{backupInstanceName}/recoveryPoints/{recoveryPointId}",
8050
- httpMethod: "GET",
8051
- responses: {
8052
- 200: {
8053
- bodyMapper: AzureBackupRecoveryPointResource
8054
- },
8055
- default: {
8056
- bodyMapper: CloudError
8057
- }
8058
- },
8059
- queryParameters: [apiVersion],
8060
- urlParameters: [
8061
- $host,
8062
- subscriptionId,
8063
- resourceGroupName,
8064
- vaultName,
8065
- backupInstanceName,
8066
- recoveryPointId
8067
- ],
8068
- headerParameters: [accept],
8069
- serializer: serializer$7
8070
- };
8071
- const listNextOperationSpec$3 = {
7909
+ const listNextOperationSpec$2 = {
8072
7910
  path: "{nextLink}",
8073
7911
  httpMethod: "GET",
8074
7912
  responses: {
@@ -8088,7 +7926,7 @@ const listNextOperationSpec$3 = {
8088
7926
  backupInstanceName
8089
7927
  ],
8090
7928
  headerParameters: [accept],
8091
- serializer: serializer$7
7929
+ serializer: serializer$6
8092
7930
  };
8093
7931
 
8094
7932
  /*
@@ -8110,7 +7948,7 @@ class JobsImpl {
8110
7948
  }
8111
7949
  /**
8112
7950
  * Returns list of jobs belonging to a backup vault
8113
- * @param resourceGroupName The name of the resource group where the backup vault is present.
7951
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
8114
7952
  * @param vaultName The name of the backup vault.
8115
7953
  * @param options The options parameters.
8116
7954
  */
@@ -8171,38 +8009,38 @@ class JobsImpl {
8171
8009
  }
8172
8010
  /**
8173
8011
  * Returns list of jobs belonging to a backup vault
8174
- * @param resourceGroupName The name of the resource group where the backup vault is present.
8012
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
8175
8013
  * @param vaultName The name of the backup vault.
8176
8014
  * @param options The options parameters.
8177
8015
  */
8178
8016
  _list(resourceGroupName, vaultName, options) {
8179
- return this.client.sendOperationRequest({ resourceGroupName, vaultName, options }, listOperationSpec$2);
8017
+ return this.client.sendOperationRequest({ resourceGroupName, vaultName, options }, listOperationSpec$1);
8180
8018
  }
8181
8019
  /**
8182
8020
  * Gets a job with id in a backup vault
8183
- * @param resourceGroupName The name of the resource group where the backup vault is present.
8021
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
8184
8022
  * @param vaultName The name of the backup vault.
8185
8023
  * @param jobId The Job ID. This is a GUID-formatted string (e.g.
8186
8024
  * 00000000-0000-0000-0000-000000000000).
8187
8025
  * @param options The options parameters.
8188
8026
  */
8189
8027
  get(resourceGroupName, vaultName, jobId, options) {
8190
- return this.client.sendOperationRequest({ resourceGroupName, vaultName, jobId, options }, getOperationSpec$4);
8028
+ return this.client.sendOperationRequest({ resourceGroupName, vaultName, jobId, options }, getOperationSpec$3);
8191
8029
  }
8192
8030
  /**
8193
8031
  * ListNext
8194
- * @param resourceGroupName The name of the resource group where the backup vault is present.
8032
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
8195
8033
  * @param vaultName The name of the backup vault.
8196
8034
  * @param nextLink The nextLink from the previous successful call to the List method.
8197
8035
  * @param options The options parameters.
8198
8036
  */
8199
8037
  _listNext(resourceGroupName, vaultName, nextLink, options) {
8200
- return this.client.sendOperationRequest({ resourceGroupName, vaultName, nextLink, options }, listNextOperationSpec$2);
8038
+ return this.client.sendOperationRequest({ resourceGroupName, vaultName, nextLink, options }, listNextOperationSpec$1);
8201
8039
  }
8202
8040
  }
8203
8041
  // Operation Specifications
8204
- const serializer$6 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
8205
- const listOperationSpec$2 = {
8042
+ const serializer$5 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
8043
+ const listOperationSpec$1 = {
8206
8044
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupJobs",
8207
8045
  httpMethod: "GET",
8208
8046
  responses: {
@@ -8221,9 +8059,9 @@ const listOperationSpec$2 = {
8221
8059
  vaultName
8222
8060
  ],
8223
8061
  headerParameters: [accept],
8224
- serializer: serializer$6
8062
+ serializer: serializer$5
8225
8063
  };
8226
- const getOperationSpec$4 = {
8064
+ const getOperationSpec$3 = {
8227
8065
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupJobs/{jobId}",
8228
8066
  httpMethod: "GET",
8229
8067
  responses: {
@@ -8243,9 +8081,9 @@ const getOperationSpec$4 = {
8243
8081
  jobId
8244
8082
  ],
8245
8083
  headerParameters: [accept],
8246
- serializer: serializer$6
8084
+ serializer: serializer$5
8247
8085
  };
8248
- const listNextOperationSpec$2 = {
8086
+ const listNextOperationSpec$1 = {
8249
8087
  path: "{nextLink}",
8250
8088
  httpMethod: "GET",
8251
8089
  responses: {
@@ -8264,7 +8102,7 @@ const listNextOperationSpec$2 = {
8264
8102
  nextLink
8265
8103
  ],
8266
8104
  headerParameters: [accept],
8267
- serializer: serializer$6
8105
+ serializer: serializer$5
8268
8106
  };
8269
8107
 
8270
8108
  /*
@@ -8284,9 +8122,9 @@ class RestorableTimeRangesImpl {
8284
8122
  this.client = client;
8285
8123
  }
8286
8124
  /**
8287
- * @param resourceGroupName The name of the resource group where the backup vault is present.
8125
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
8288
8126
  * @param vaultName The name of the backup vault.
8289
- * @param backupInstanceName The name of the backup instance
8127
+ * @param backupInstanceName The name of the backup instance.
8290
8128
  * @param parameters Request body for operation
8291
8129
  * @param options The options parameters.
8292
8130
  */
@@ -8295,7 +8133,7 @@ class RestorableTimeRangesImpl {
8295
8133
  }
8296
8134
  }
8297
8135
  // Operation Specifications
8298
- const serializer$5 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
8136
+ const serializer$4 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
8299
8137
  const findOperationSpec = {
8300
8138
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupInstances/{backupInstanceName}/findRestorableTimeRanges",
8301
8139
  httpMethod: "POST",
@@ -8318,7 +8156,7 @@ const findOperationSpec = {
8318
8156
  ],
8319
8157
  headerParameters: [accept, contentType],
8320
8158
  mediaType: "json",
8321
- serializer: serializer$5
8159
+ serializer: serializer$4
8322
8160
  };
8323
8161
 
8324
8162
  /*
@@ -8339,7 +8177,7 @@ class ExportJobsImpl {
8339
8177
  }
8340
8178
  /**
8341
8179
  * Triggers export of jobs and returns an OperationID to track.
8342
- * @param resourceGroupName The name of the resource group where the backup vault is present.
8180
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
8343
8181
  * @param vaultName The name of the backup vault.
8344
8182
  * @param options The options parameters.
8345
8183
  */
@@ -8379,7 +8217,7 @@ class ExportJobsImpl {
8379
8217
  }
8380
8218
  /**
8381
8219
  * Triggers export of jobs and returns an OperationID to track.
8382
- * @param resourceGroupName The name of the resource group where the backup vault is present.
8220
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
8383
8221
  * @param vaultName The name of the backup vault.
8384
8222
  * @param options The options parameters.
8385
8223
  */
@@ -8391,7 +8229,7 @@ class ExportJobsImpl {
8391
8229
  }
8392
8230
  }
8393
8231
  // Operation Specifications
8394
- const serializer$4 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
8232
+ const serializer$3 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
8395
8233
  const triggerOperationSpec = {
8396
8234
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/exportBackupJobs",
8397
8235
  httpMethod: "POST",
@@ -8420,7 +8258,7 @@ const triggerOperationSpec = {
8420
8258
  vaultName
8421
8259
  ],
8422
8260
  headerParameters: [accept],
8423
- serializer: serializer$4
8261
+ serializer: serializer$3
8424
8262
  };
8425
8263
 
8426
8264
  /*
@@ -8443,18 +8281,18 @@ class ExportJobsOperationResultImpl {
8443
8281
  * Gets the operation result of operation triggered by Export Jobs API. If the operation is successful,
8444
8282
  * then it also contains URL of a Blob and a SAS key to access the same. The blob contains exported
8445
8283
  * jobs in JSON serialized format.
8446
- * @param resourceGroupName The name of the resource group where the backup vault is present.
8284
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
8447
8285
  * @param vaultName The name of the backup vault.
8448
8286
  * @param operationId OperationID which represents the export job.
8449
8287
  * @param options The options parameters.
8450
8288
  */
8451
8289
  get(resourceGroupName, vaultName, operationId, options) {
8452
- return this.client.sendOperationRequest({ resourceGroupName, vaultName, operationId, options }, getOperationSpec$3);
8290
+ return this.client.sendOperationRequest({ resourceGroupName, vaultName, operationId, options }, getOperationSpec$2);
8453
8291
  }
8454
8292
  }
8455
8293
  // Operation Specifications
8456
- const serializer$3 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
8457
- const getOperationSpec$3 = {
8294
+ const serializer$2 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
8295
+ const getOperationSpec$2 = {
8458
8296
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupJobs/operations/{operationId}",
8459
8297
  httpMethod: "GET",
8460
8298
  responses: {
@@ -8475,7 +8313,7 @@ const getOperationSpec$3 = {
8475
8313
  operationId
8476
8314
  ],
8477
8315
  headerParameters: [accept],
8478
- serializer: serializer$3
8316
+ serializer: serializer$2
8479
8317
  };
8480
8318
 
8481
8319
  /*
@@ -8497,7 +8335,7 @@ class DeletedBackupInstancesImpl {
8497
8335
  }
8498
8336
  /**
8499
8337
  * Gets deleted backup instances belonging to a backup vault
8500
- * @param resourceGroupName The name of the resource group where the backup vault is present.
8338
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
8501
8339
  * @param vaultName The name of the backup vault.
8502
8340
  * @param options The options parameters.
8503
8341
  */
@@ -8558,25 +8396,25 @@ class DeletedBackupInstancesImpl {
8558
8396
  }
8559
8397
  /**
8560
8398
  * Gets deleted backup instances belonging to a backup vault
8561
- * @param resourceGroupName The name of the resource group where the backup vault is present.
8399
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
8562
8400
  * @param vaultName The name of the backup vault.
8563
8401
  * @param options The options parameters.
8564
8402
  */
8565
8403
  _list(resourceGroupName, vaultName, options) {
8566
- return this.client.sendOperationRequest({ resourceGroupName, vaultName, options }, listOperationSpec$1);
8404
+ return this.client.sendOperationRequest({ resourceGroupName, vaultName, options }, listOperationSpec);
8567
8405
  }
8568
8406
  /**
8569
8407
  * Gets a deleted backup instance with name in a backup vault
8570
- * @param resourceGroupName The name of the resource group where the backup vault is present.
8408
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
8571
8409
  * @param vaultName The name of the backup vault.
8572
8410
  * @param backupInstanceName The name of the deleted backup instance
8573
8411
  * @param options The options parameters.
8574
8412
  */
8575
8413
  get(resourceGroupName, vaultName, backupInstanceName, options) {
8576
- return this.client.sendOperationRequest({ resourceGroupName, vaultName, backupInstanceName, options }, getOperationSpec$2);
8414
+ return this.client.sendOperationRequest({ resourceGroupName, vaultName, backupInstanceName, options }, getOperationSpec$1);
8577
8415
  }
8578
8416
  /**
8579
- * @param resourceGroupName The name of the resource group where the backup vault is present.
8417
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
8580
8418
  * @param vaultName The name of the backup vault.
8581
8419
  * @param backupInstanceName The name of the deleted backup instance
8582
8420
  * @param options The options parameters.
@@ -8615,7 +8453,7 @@ class DeletedBackupInstancesImpl {
8615
8453
  });
8616
8454
  }
8617
8455
  /**
8618
- * @param resourceGroupName The name of the resource group where the backup vault is present.
8456
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
8619
8457
  * @param vaultName The name of the backup vault.
8620
8458
  * @param backupInstanceName The name of the deleted backup instance
8621
8459
  * @param options The options parameters.
@@ -8628,18 +8466,18 @@ class DeletedBackupInstancesImpl {
8628
8466
  }
8629
8467
  /**
8630
8468
  * ListNext
8631
- * @param resourceGroupName The name of the resource group where the backup vault is present.
8469
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
8632
8470
  * @param vaultName The name of the backup vault.
8633
8471
  * @param nextLink The nextLink from the previous successful call to the List method.
8634
8472
  * @param options The options parameters.
8635
8473
  */
8636
8474
  _listNext(resourceGroupName, vaultName, nextLink, options) {
8637
- return this.client.sendOperationRequest({ resourceGroupName, vaultName, nextLink, options }, listNextOperationSpec$1);
8475
+ return this.client.sendOperationRequest({ resourceGroupName, vaultName, nextLink, options }, listNextOperationSpec);
8638
8476
  }
8639
8477
  }
8640
8478
  // Operation Specifications
8641
- const serializer$2 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
8642
- const listOperationSpec$1 = {
8479
+ const serializer$1 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
8480
+ const listOperationSpec = {
8643
8481
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/deletedBackupInstances",
8644
8482
  httpMethod: "GET",
8645
8483
  responses: {
@@ -8658,9 +8496,9 @@ const listOperationSpec$1 = {
8658
8496
  vaultName
8659
8497
  ],
8660
8498
  headerParameters: [accept],
8661
- serializer: serializer$2
8499
+ serializer: serializer$1
8662
8500
  };
8663
- const getOperationSpec$2 = {
8501
+ const getOperationSpec$1 = {
8664
8502
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/deletedBackupInstances/{backupInstanceName}",
8665
8503
  httpMethod: "GET",
8666
8504
  responses: {
@@ -8680,7 +8518,7 @@ const getOperationSpec$2 = {
8680
8518
  backupInstanceName
8681
8519
  ],
8682
8520
  headerParameters: [accept],
8683
- serializer: serializer$2
8521
+ serializer: serializer$1
8684
8522
  };
8685
8523
  const undeleteOperationSpec = {
8686
8524
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/deletedBackupInstances/{backupInstanceName}/undelete",
@@ -8703,9 +8541,9 @@ const undeleteOperationSpec = {
8703
8541
  backupInstanceName
8704
8542
  ],
8705
8543
  headerParameters: [accept],
8706
- serializer: serializer$2
8544
+ serializer: serializer$1
8707
8545
  };
8708
- const listNextOperationSpec$1 = {
8546
+ const listNextOperationSpec = {
8709
8547
  path: "{nextLink}",
8710
8548
  httpMethod: "GET",
8711
8549
  responses: {
@@ -8724,7 +8562,7 @@ const listNextOperationSpec$1 = {
8724
8562
  nextLink
8725
8563
  ],
8726
8564
  headerParameters: [accept],
8727
- serializer: serializer$2
8565
+ serializer: serializer$1
8728
8566
  };
8729
8567
 
8730
8568
  /*
@@ -8805,7 +8643,7 @@ class ResourceGuardsImpl {
8805
8643
  }
8806
8644
  /**
8807
8645
  * Returns ResourceGuards collection belonging to a ResourceGroup.
8808
- * @param resourceGroupName The name of the resource group where the backup vault is present.
8646
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
8809
8647
  * @param options The options parameters.
8810
8648
  */
8811
8649
  listResourcesInResourceGroup(resourceGroupName, options) {
@@ -8866,7 +8704,7 @@ class ResourceGuardsImpl {
8866
8704
  /**
8867
8705
  * Returns collection of operation request objects for a critical operation protected by the given
8868
8706
  * ResourceGuard resource.
8869
- * @param resourceGroupName The name of the resource group where the backup vault is present.
8707
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
8870
8708
  * @param resourceGuardsName
8871
8709
  * @param options The options parameters.
8872
8710
  */
@@ -8928,7 +8766,7 @@ class ResourceGuardsImpl {
8928
8766
  /**
8929
8767
  * Returns collection of operation request objects for a critical operation protected by the given
8930
8768
  * ResourceGuard resource.
8931
- * @param resourceGroupName The name of the resource group where the backup vault is present.
8769
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
8932
8770
  * @param resourceGuardsName
8933
8771
  * @param options The options parameters.
8934
8772
  */
@@ -8990,7 +8828,7 @@ class ResourceGuardsImpl {
8990
8828
  /**
8991
8829
  * Returns collection of operation request objects for a critical operation protected by the given
8992
8830
  * ResourceGuard resource.
8993
- * @param resourceGroupName The name of the resource group where the backup vault is present.
8831
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
8994
8832
  * @param resourceGuardsName
8995
8833
  * @param options The options parameters.
8996
8834
  */
@@ -9052,7 +8890,7 @@ class ResourceGuardsImpl {
9052
8890
  /**
9053
8891
  * Returns collection of operation request objects for a critical operation protected by the given
9054
8892
  * ResourceGuard resource.
9055
- * @param resourceGroupName The name of the resource group where the backup vault is present.
8893
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
9056
8894
  * @param resourceGuardsName
9057
8895
  * @param options The options parameters.
9058
8896
  */
@@ -9114,7 +8952,7 @@ class ResourceGuardsImpl {
9114
8952
  /**
9115
8953
  * Returns collection of operation request objects for a critical operation protected by the given
9116
8954
  * ResourceGuard resource.
9117
- * @param resourceGroupName The name of the resource group where the backup vault is present.
8955
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
9118
8956
  * @param resourceGuardsName
9119
8957
  * @param options The options parameters.
9120
8958
  */
@@ -9176,7 +9014,7 @@ class ResourceGuardsImpl {
9176
9014
  /**
9177
9015
  * Returns collection of operation request objects for a critical operation protected by the given
9178
9016
  * ResourceGuard resource.
9179
- * @param resourceGroupName The name of the resource group where the backup vault is present.
9017
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
9180
9018
  * @param resourceGuardsName
9181
9019
  * @param options The options parameters.
9182
9020
  */
@@ -9244,7 +9082,7 @@ class ResourceGuardsImpl {
9244
9082
  }
9245
9083
  /**
9246
9084
  * Returns ResourceGuards collection belonging to a ResourceGroup.
9247
- * @param resourceGroupName The name of the resource group where the backup vault is present.
9085
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
9248
9086
  * @param options The options parameters.
9249
9087
  */
9250
9088
  _getResourcesInResourceGroup(resourceGroupName, options) {
@@ -9252,36 +9090,36 @@ class ResourceGuardsImpl {
9252
9090
  }
9253
9091
  /**
9254
9092
  * Creates or updates a ResourceGuard resource belonging to a resource group.
9255
- * @param resourceGroupName The name of the resource group where the backup vault is present.
9093
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
9256
9094
  * @param resourceGuardsName The name of ResourceGuard
9257
9095
  * @param parameters Request body for operation
9258
9096
  * @param options The options parameters.
9259
9097
  */
9260
9098
  put(resourceGroupName, resourceGuardsName, parameters, options) {
9261
- return this.client.sendOperationRequest({ resourceGroupName, resourceGuardsName, parameters, options }, putOperationSpec$1);
9099
+ return this.client.sendOperationRequest({ resourceGroupName, resourceGuardsName, parameters, options }, putOperationSpec);
9262
9100
  }
9263
9101
  /**
9264
9102
  * Returns a ResourceGuard belonging to a resource group.
9265
- * @param resourceGroupName The name of the resource group where the backup vault is present.
9103
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
9266
9104
  * @param resourceGuardsName The name of ResourceGuard
9267
9105
  * @param options The options parameters.
9268
9106
  */
9269
9107
  get(resourceGroupName, resourceGuardsName, options) {
9270
- return this.client.sendOperationRequest({ resourceGroupName, resourceGuardsName, options }, getOperationSpec$1);
9108
+ return this.client.sendOperationRequest({ resourceGroupName, resourceGuardsName, options }, getOperationSpec);
9271
9109
  }
9272
9110
  /**
9273
9111
  * Deletes a ResourceGuard resource from the resource group.
9274
- * @param resourceGroupName The name of the resource group where the backup vault is present.
9112
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
9275
9113
  * @param resourceGuardsName The name of ResourceGuard
9276
9114
  * @param options The options parameters.
9277
9115
  */
9278
9116
  delete(resourceGroupName, resourceGuardsName, options) {
9279
- return this.client.sendOperationRequest({ resourceGroupName, resourceGuardsName, options }, deleteOperationSpec$1);
9117
+ return this.client.sendOperationRequest({ resourceGroupName, resourceGuardsName, options }, deleteOperationSpec);
9280
9118
  }
9281
9119
  /**
9282
9120
  * Updates a ResourceGuard resource belonging to a resource group. For example, updating tags for a
9283
9121
  * resource.
9284
- * @param resourceGroupName The name of the resource group where the backup vault is present.
9122
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
9285
9123
  * @param resourceGuardsName The name of ResourceGuard
9286
9124
  * @param parameters Request body for operation
9287
9125
  * @param options The options parameters.
@@ -9292,7 +9130,7 @@ class ResourceGuardsImpl {
9292
9130
  /**
9293
9131
  * Returns collection of operation request objects for a critical operation protected by the given
9294
9132
  * ResourceGuard resource.
9295
- * @param resourceGroupName The name of the resource group where the backup vault is present.
9133
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
9296
9134
  * @param resourceGuardsName
9297
9135
  * @param options The options parameters.
9298
9136
  */
@@ -9302,7 +9140,7 @@ class ResourceGuardsImpl {
9302
9140
  /**
9303
9141
  * Returns collection of operation request objects for a critical operation protected by the given
9304
9142
  * ResourceGuard resource.
9305
- * @param resourceGroupName The name of the resource group where the backup vault is present.
9143
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
9306
9144
  * @param resourceGuardsName
9307
9145
  * @param options The options parameters.
9308
9146
  */
@@ -9312,7 +9150,7 @@ class ResourceGuardsImpl {
9312
9150
  /**
9313
9151
  * Returns collection of operation request objects for a critical operation protected by the given
9314
9152
  * ResourceGuard resource.
9315
- * @param resourceGroupName The name of the resource group where the backup vault is present.
9153
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
9316
9154
  * @param resourceGuardsName
9317
9155
  * @param options The options parameters.
9318
9156
  */
@@ -9322,7 +9160,7 @@ class ResourceGuardsImpl {
9322
9160
  /**
9323
9161
  * Returns collection of operation request objects for a critical operation protected by the given
9324
9162
  * ResourceGuard resource.
9325
- * @param resourceGroupName The name of the resource group where the backup vault is present.
9163
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
9326
9164
  * @param resourceGuardsName
9327
9165
  * @param options The options parameters.
9328
9166
  */
@@ -9332,7 +9170,7 @@ class ResourceGuardsImpl {
9332
9170
  /**
9333
9171
  * Returns collection of operation request objects for a critical operation protected by the given
9334
9172
  * ResourceGuard resource.
9335
- * @param resourceGroupName The name of the resource group where the backup vault is present.
9173
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
9336
9174
  * @param resourceGuardsName
9337
9175
  * @param options The options parameters.
9338
9176
  */
@@ -9342,7 +9180,7 @@ class ResourceGuardsImpl {
9342
9180
  /**
9343
9181
  * Returns collection of operation request objects for a critical operation protected by the given
9344
9182
  * ResourceGuard resource.
9345
- * @param resourceGroupName The name of the resource group where the backup vault is present.
9183
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
9346
9184
  * @param resourceGuardsName
9347
9185
  * @param options The options parameters.
9348
9186
  */
@@ -9352,7 +9190,7 @@ class ResourceGuardsImpl {
9352
9190
  /**
9353
9191
  * Returns collection of operation request objects for a critical operation protected by the given
9354
9192
  * ResourceGuard resource.
9355
- * @param resourceGroupName The name of the resource group where the backup vault is present.
9193
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
9356
9194
  * @param resourceGuardsName
9357
9195
  * @param requestName
9358
9196
  * @param options The options parameters.
@@ -9363,7 +9201,7 @@ class ResourceGuardsImpl {
9363
9201
  /**
9364
9202
  * Returns collection of operation request objects for a critical operation protected by the given
9365
9203
  * ResourceGuard resource.
9366
- * @param resourceGroupName The name of the resource group where the backup vault is present.
9204
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
9367
9205
  * @param resourceGuardsName
9368
9206
  * @param requestName
9369
9207
  * @param options The options parameters.
@@ -9374,7 +9212,7 @@ class ResourceGuardsImpl {
9374
9212
  /**
9375
9213
  * Returns collection of operation request objects for a critical operation protected by the given
9376
9214
  * ResourceGuard resource.
9377
- * @param resourceGroupName The name of the resource group where the backup vault is present.
9215
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
9378
9216
  * @param resourceGuardsName
9379
9217
  * @param requestName
9380
9218
  * @param options The options parameters.
@@ -9385,7 +9223,7 @@ class ResourceGuardsImpl {
9385
9223
  /**
9386
9224
  * Returns collection of operation request objects for a critical operation protected by the given
9387
9225
  * ResourceGuard resource.
9388
- * @param resourceGroupName The name of the resource group where the backup vault is present.
9226
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
9389
9227
  * @param resourceGuardsName
9390
9228
  * @param requestName
9391
9229
  * @param options The options parameters.
@@ -9396,7 +9234,7 @@ class ResourceGuardsImpl {
9396
9234
  /**
9397
9235
  * Returns collection of operation request objects for a critical operation protected by the given
9398
9236
  * ResourceGuard resource.
9399
- * @param resourceGroupName The name of the resource group where the backup vault is present.
9237
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
9400
9238
  * @param resourceGuardsName
9401
9239
  * @param requestName
9402
9240
  * @param options The options parameters.
@@ -9407,7 +9245,7 @@ class ResourceGuardsImpl {
9407
9245
  /**
9408
9246
  * Returns collection of operation request objects for a critical operation protected by the given
9409
9247
  * ResourceGuard resource.
9410
- * @param resourceGroupName The name of the resource group where the backup vault is present.
9248
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
9411
9249
  * @param resourceGuardsName
9412
9250
  * @param requestName
9413
9251
  * @param options The options parameters.
@@ -9426,7 +9264,7 @@ class ResourceGuardsImpl {
9426
9264
  }
9427
9265
  /**
9428
9266
  * GetResourcesInResourceGroupNext
9429
- * @param resourceGroupName The name of the resource group where the backup vault is present.
9267
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
9430
9268
  * @param nextLink The nextLink from the previous successful call to the GetResourcesInResourceGroup
9431
9269
  * method.
9432
9270
  * @param options The options parameters.
@@ -9436,7 +9274,7 @@ class ResourceGuardsImpl {
9436
9274
  }
9437
9275
  /**
9438
9276
  * GetDisableSoftDeleteRequestsObjectsNext
9439
- * @param resourceGroupName The name of the resource group where the backup vault is present.
9277
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
9440
9278
  * @param resourceGuardsName
9441
9279
  * @param nextLink The nextLink from the previous successful call to the
9442
9280
  * GetDisableSoftDeleteRequestsObjects method.
@@ -9447,7 +9285,7 @@ class ResourceGuardsImpl {
9447
9285
  }
9448
9286
  /**
9449
9287
  * GetDeleteResourceGuardProxyRequestsObjectsNext
9450
- * @param resourceGroupName The name of the resource group where the backup vault is present.
9288
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
9451
9289
  * @param resourceGuardsName
9452
9290
  * @param nextLink The nextLink from the previous successful call to the
9453
9291
  * GetDeleteResourceGuardProxyRequestsObjects method.
@@ -9458,7 +9296,7 @@ class ResourceGuardsImpl {
9458
9296
  }
9459
9297
  /**
9460
9298
  * GetBackupSecurityPINRequestsObjectsNext
9461
- * @param resourceGroupName The name of the resource group where the backup vault is present.
9299
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
9462
9300
  * @param resourceGuardsName
9463
9301
  * @param nextLink The nextLink from the previous successful call to the
9464
9302
  * GetBackupSecurityPINRequestsObjects method.
@@ -9469,7 +9307,7 @@ class ResourceGuardsImpl {
9469
9307
  }
9470
9308
  /**
9471
9309
  * GetDeleteProtectedItemRequestsObjectsNext
9472
- * @param resourceGroupName The name of the resource group where the backup vault is present.
9310
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
9473
9311
  * @param resourceGuardsName
9474
9312
  * @param nextLink The nextLink from the previous successful call to the
9475
9313
  * GetDeleteProtectedItemRequestsObjects method.
@@ -9480,7 +9318,7 @@ class ResourceGuardsImpl {
9480
9318
  }
9481
9319
  /**
9482
9320
  * GetUpdateProtectionPolicyRequestsObjectsNext
9483
- * @param resourceGroupName The name of the resource group where the backup vault is present.
9321
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
9484
9322
  * @param resourceGuardsName
9485
9323
  * @param nextLink The nextLink from the previous successful call to the
9486
9324
  * GetUpdateProtectionPolicyRequestsObjects method.
@@ -9491,7 +9329,7 @@ class ResourceGuardsImpl {
9491
9329
  }
9492
9330
  /**
9493
9331
  * GetUpdateProtectedItemRequestsObjectsNext
9494
- * @param resourceGroupName The name of the resource group where the backup vault is present.
9332
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
9495
9333
  * @param resourceGuardsName
9496
9334
  * @param nextLink The nextLink from the previous successful call to the
9497
9335
  * GetUpdateProtectedItemRequestsObjects method.
@@ -9502,7 +9340,7 @@ class ResourceGuardsImpl {
9502
9340
  }
9503
9341
  }
9504
9342
  // Operation Specifications
9505
- const serializer$1 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
9343
+ const serializer = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
9506
9344
  const getResourcesInSubscriptionOperationSpec = {
9507
9345
  path: "/subscriptions/{subscriptionId}/providers/Microsoft.DataProtection/resourceGuards",
9508
9346
  httpMethod: "GET",
@@ -9517,7 +9355,7 @@ const getResourcesInSubscriptionOperationSpec = {
9517
9355
  queryParameters: [apiVersion],
9518
9356
  urlParameters: [$host, subscriptionId],
9519
9357
  headerParameters: [accept],
9520
- serializer: serializer$1
9358
+ serializer
9521
9359
  };
9522
9360
  const getResourcesInResourceGroupOperationSpec = {
9523
9361
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/resourceGuards",
@@ -9537,15 +9375,18 @@ const getResourcesInResourceGroupOperationSpec = {
9537
9375
  resourceGroupName
9538
9376
  ],
9539
9377
  headerParameters: [accept],
9540
- serializer: serializer$1
9378
+ serializer
9541
9379
  };
9542
- const putOperationSpec$1 = {
9380
+ const putOperationSpec = {
9543
9381
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/resourceGuards/{resourceGuardsName}",
9544
9382
  httpMethod: "PUT",
9545
9383
  responses: {
9546
9384
  200: {
9547
9385
  bodyMapper: ResourceGuardResource
9548
9386
  },
9387
+ 201: {
9388
+ bodyMapper: ResourceGuardResource
9389
+ },
9549
9390
  default: {
9550
9391
  bodyMapper: CloudError
9551
9392
  }
@@ -9560,9 +9401,9 @@ const putOperationSpec$1 = {
9560
9401
  ],
9561
9402
  headerParameters: [accept, contentType],
9562
9403
  mediaType: "json",
9563
- serializer: serializer$1
9404
+ serializer
9564
9405
  };
9565
- const getOperationSpec$1 = {
9406
+ const getOperationSpec = {
9566
9407
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/resourceGuards/{resourceGuardsName}",
9567
9408
  httpMethod: "GET",
9568
9409
  responses: {
@@ -9581,9 +9422,9 @@ const getOperationSpec$1 = {
9581
9422
  resourceGuardsName
9582
9423
  ],
9583
9424
  headerParameters: [accept],
9584
- serializer: serializer$1
9425
+ serializer
9585
9426
  };
9586
- const deleteOperationSpec$1 = {
9427
+ const deleteOperationSpec = {
9587
9428
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/resourceGuards/{resourceGuardsName}",
9588
9429
  httpMethod: "DELETE",
9589
9430
  responses: {
@@ -9601,7 +9442,7 @@ const deleteOperationSpec$1 = {
9601
9442
  resourceGuardsName
9602
9443
  ],
9603
9444
  headerParameters: [accept],
9604
- serializer: serializer$1
9445
+ serializer
9605
9446
  };
9606
9447
  const patchOperationSpec = {
9607
9448
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/resourceGuards/{resourceGuardsName}",
@@ -9614,7 +9455,7 @@ const patchOperationSpec = {
9614
9455
  bodyMapper: CloudError
9615
9456
  }
9616
9457
  },
9617
- requestBody: parameters1,
9458
+ requestBody: parameters14,
9618
9459
  queryParameters: [apiVersion],
9619
9460
  urlParameters: [
9620
9461
  $host,
@@ -9624,7 +9465,7 @@ const patchOperationSpec = {
9624
9465
  ],
9625
9466
  headerParameters: [accept, contentType],
9626
9467
  mediaType: "json",
9627
- serializer: serializer$1
9468
+ serializer
9628
9469
  };
9629
9470
  const getDisableSoftDeleteRequestsObjectsOperationSpec = {
9630
9471
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/resourceGuards/{resourceGuardsName}/disableSoftDeleteRequests",
@@ -9645,7 +9486,7 @@ const getDisableSoftDeleteRequestsObjectsOperationSpec = {
9645
9486
  resourceGuardsName
9646
9487
  ],
9647
9488
  headerParameters: [accept],
9648
- serializer: serializer$1
9489
+ serializer
9649
9490
  };
9650
9491
  const getDeleteResourceGuardProxyRequestsObjectsOperationSpec = {
9651
9492
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/resourceGuards/{resourceGuardsName}/deleteResourceGuardProxyRequests",
@@ -9666,7 +9507,7 @@ const getDeleteResourceGuardProxyRequestsObjectsOperationSpec = {
9666
9507
  resourceGuardsName
9667
9508
  ],
9668
9509
  headerParameters: [accept],
9669
- serializer: serializer$1
9510
+ serializer
9670
9511
  };
9671
9512
  const getBackupSecurityPINRequestsObjectsOperationSpec = {
9672
9513
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/resourceGuards/{resourceGuardsName}/getBackupSecurityPINRequests",
@@ -9687,7 +9528,7 @@ const getBackupSecurityPINRequestsObjectsOperationSpec = {
9687
9528
  resourceGuardsName
9688
9529
  ],
9689
9530
  headerParameters: [accept],
9690
- serializer: serializer$1
9531
+ serializer
9691
9532
  };
9692
9533
  const getDeleteProtectedItemRequestsObjectsOperationSpec = {
9693
9534
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/resourceGuards/{resourceGuardsName}/deleteProtectedItemRequests",
@@ -9708,7 +9549,7 @@ const getDeleteProtectedItemRequestsObjectsOperationSpec = {
9708
9549
  resourceGuardsName
9709
9550
  ],
9710
9551
  headerParameters: [accept],
9711
- serializer: serializer$1
9552
+ serializer
9712
9553
  };
9713
9554
  const getUpdateProtectionPolicyRequestsObjectsOperationSpec = {
9714
9555
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/resourceGuards/{resourceGuardsName}/updateProtectionPolicyRequests",
@@ -9729,7 +9570,7 @@ const getUpdateProtectionPolicyRequestsObjectsOperationSpec = {
9729
9570
  resourceGuardsName
9730
9571
  ],
9731
9572
  headerParameters: [accept],
9732
- serializer: serializer$1
9573
+ serializer
9733
9574
  };
9734
9575
  const getUpdateProtectedItemRequestsObjectsOperationSpec = {
9735
9576
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/resourceGuards/{resourceGuardsName}/updateProtectedItemRequests",
@@ -9750,7 +9591,7 @@ const getUpdateProtectedItemRequestsObjectsOperationSpec = {
9750
9591
  resourceGuardsName
9751
9592
  ],
9752
9593
  headerParameters: [accept],
9753
- serializer: serializer$1
9594
+ serializer
9754
9595
  };
9755
9596
  const getDefaultDisableSoftDeleteRequestsObjectOperationSpec = {
9756
9597
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/resourceGuards/{resourceGuardsName}/disableSoftDeleteRequests/{requestName}",
@@ -9772,7 +9613,7 @@ const getDefaultDisableSoftDeleteRequestsObjectOperationSpec = {
9772
9613
  requestName
9773
9614
  ],
9774
9615
  headerParameters: [accept],
9775
- serializer: serializer$1
9616
+ serializer
9776
9617
  };
9777
9618
  const getDefaultDeleteResourceGuardProxyRequestsObjectOperationSpec = {
9778
9619
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/resourceGuards/{resourceGuardsName}/deleteResourceGuardProxyRequests/{requestName}",
@@ -9794,7 +9635,7 @@ const getDefaultDeleteResourceGuardProxyRequestsObjectOperationSpec = {
9794
9635
  requestName
9795
9636
  ],
9796
9637
  headerParameters: [accept],
9797
- serializer: serializer$1
9638
+ serializer
9798
9639
  };
9799
9640
  const getDefaultBackupSecurityPINRequestsObjectOperationSpec = {
9800
9641
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/resourceGuards/{resourceGuardsName}/getBackupSecurityPINRequests/{requestName}",
@@ -9816,7 +9657,7 @@ const getDefaultBackupSecurityPINRequestsObjectOperationSpec = {
9816
9657
  requestName
9817
9658
  ],
9818
9659
  headerParameters: [accept],
9819
- serializer: serializer$1
9660
+ serializer
9820
9661
  };
9821
9662
  const getDefaultDeleteProtectedItemRequestsObjectOperationSpec = {
9822
9663
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/resourceGuards/{resourceGuardsName}/deleteProtectedItemRequests/{requestName}",
@@ -9838,7 +9679,7 @@ const getDefaultDeleteProtectedItemRequestsObjectOperationSpec = {
9838
9679
  requestName
9839
9680
  ],
9840
9681
  headerParameters: [accept],
9841
- serializer: serializer$1
9682
+ serializer
9842
9683
  };
9843
9684
  const getDefaultUpdateProtectionPolicyRequestsObjectOperationSpec = {
9844
9685
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/resourceGuards/{resourceGuardsName}/updateProtectionPolicyRequests/{requestName}",
@@ -9860,7 +9701,7 @@ const getDefaultUpdateProtectionPolicyRequestsObjectOperationSpec = {
9860
9701
  requestName
9861
9702
  ],
9862
9703
  headerParameters: [accept],
9863
- serializer: serializer$1
9704
+ serializer
9864
9705
  };
9865
9706
  const getDefaultUpdateProtectedItemRequestsObjectOperationSpec = {
9866
9707
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/resourceGuards/{resourceGuardsName}/updateProtectedItemRequests/{requestName}",
@@ -9882,7 +9723,7 @@ const getDefaultUpdateProtectedItemRequestsObjectOperationSpec = {
9882
9723
  requestName
9883
9724
  ],
9884
9725
  headerParameters: [accept],
9885
- serializer: serializer$1
9726
+ serializer
9886
9727
  };
9887
9728
  const getResourcesInSubscriptionNextOperationSpec = {
9888
9729
  path: "{nextLink}",
@@ -9901,7 +9742,7 @@ const getResourcesInSubscriptionNextOperationSpec = {
9901
9742
  nextLink
9902
9743
  ],
9903
9744
  headerParameters: [accept],
9904
- serializer: serializer$1
9745
+ serializer
9905
9746
  };
9906
9747
  const getResourcesInResourceGroupNextOperationSpec = {
9907
9748
  path: "{nextLink}",
@@ -9921,7 +9762,7 @@ const getResourcesInResourceGroupNextOperationSpec = {
9921
9762
  nextLink
9922
9763
  ],
9923
9764
  headerParameters: [accept],
9924
- serializer: serializer$1
9765
+ serializer
9925
9766
  };
9926
9767
  const getDisableSoftDeleteRequestsObjectsNextOperationSpec = {
9927
9768
  path: "{nextLink}",
@@ -9942,7 +9783,7 @@ const getDisableSoftDeleteRequestsObjectsNextOperationSpec = {
9942
9783
  resourceGuardsName
9943
9784
  ],
9944
9785
  headerParameters: [accept],
9945
- serializer: serializer$1
9786
+ serializer
9946
9787
  };
9947
9788
  const getDeleteResourceGuardProxyRequestsObjectsNextOperationSpec = {
9948
9789
  path: "{nextLink}",
@@ -9963,7 +9804,7 @@ const getDeleteResourceGuardProxyRequestsObjectsNextOperationSpec = {
9963
9804
  resourceGuardsName
9964
9805
  ],
9965
9806
  headerParameters: [accept],
9966
- serializer: serializer$1
9807
+ serializer
9967
9808
  };
9968
9809
  const getBackupSecurityPINRequestsObjectsNextOperationSpec = {
9969
9810
  path: "{nextLink}",
@@ -9984,7 +9825,7 @@ const getBackupSecurityPINRequestsObjectsNextOperationSpec = {
9984
9825
  resourceGuardsName
9985
9826
  ],
9986
9827
  headerParameters: [accept],
9987
- serializer: serializer$1
9828
+ serializer
9988
9829
  };
9989
9830
  const getDeleteProtectedItemRequestsObjectsNextOperationSpec = {
9990
9831
  path: "{nextLink}",
@@ -10005,7 +9846,7 @@ const getDeleteProtectedItemRequestsObjectsNextOperationSpec = {
10005
9846
  resourceGuardsName
10006
9847
  ],
10007
9848
  headerParameters: [accept],
10008
- serializer: serializer$1
9849
+ serializer
10009
9850
  };
10010
9851
  const getUpdateProtectionPolicyRequestsObjectsNextOperationSpec = {
10011
9852
  path: "{nextLink}",
@@ -10026,7 +9867,7 @@ const getUpdateProtectionPolicyRequestsObjectsNextOperationSpec = {
10026
9867
  resourceGuardsName
10027
9868
  ],
10028
9869
  headerParameters: [accept],
10029
- serializer: serializer$1
9870
+ serializer
10030
9871
  };
10031
9872
  const getUpdateProtectedItemRequestsObjectsNextOperationSpec = {
10032
9873
  path: "{nextLink}",
@@ -10047,288 +9888,6 @@ const getUpdateProtectedItemRequestsObjectsNextOperationSpec = {
10047
9888
  resourceGuardsName
10048
9889
  ],
10049
9890
  headerParameters: [accept],
10050
- serializer: serializer$1
10051
- };
10052
-
10053
- /*
10054
- * Copyright (c) Microsoft Corporation.
10055
- * Licensed under the MIT License.
10056
- *
10057
- * Code generated by Microsoft (R) AutoRest Code Generator.
10058
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
10059
- */
10060
- /// <reference lib="esnext.asynciterable" />
10061
- /** Class containing DppResourceGuardProxy operations. */
10062
- class DppResourceGuardProxyImpl {
10063
- /**
10064
- * Initialize a new instance of the class DppResourceGuardProxy class.
10065
- * @param client Reference to the service client
10066
- */
10067
- constructor(client) {
10068
- this.client = client;
10069
- }
10070
- /**
10071
- * @param resourceGroupName The name of the resource group where the backup vault is present.
10072
- * @param vaultName The name of the backup vault.
10073
- * @param options The options parameters.
10074
- */
10075
- list(resourceGroupName, vaultName, options) {
10076
- const iter = this.listPagingAll(resourceGroupName, vaultName, options);
10077
- return {
10078
- next() {
10079
- return iter.next();
10080
- },
10081
- [Symbol.asyncIterator]() {
10082
- return this;
10083
- },
10084
- byPage: (settings) => {
10085
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
10086
- throw new Error("maxPageSize is not supported by this operation.");
10087
- }
10088
- return this.listPagingPage(resourceGroupName, vaultName, options, settings);
10089
- }
10090
- };
10091
- }
10092
- listPagingPage(resourceGroupName, vaultName, options, settings) {
10093
- return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
10094
- let result;
10095
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
10096
- if (!continuationToken) {
10097
- result = yield tslib.__await(this._list(resourceGroupName, vaultName, options));
10098
- let page = result.value || [];
10099
- continuationToken = result.nextLink;
10100
- setContinuationToken(page, continuationToken);
10101
- yield yield tslib.__await(page);
10102
- }
10103
- while (continuationToken) {
10104
- result = yield tslib.__await(this._listNext(resourceGroupName, vaultName, continuationToken, options));
10105
- continuationToken = result.nextLink;
10106
- let page = result.value || [];
10107
- setContinuationToken(page, continuationToken);
10108
- yield yield tslib.__await(page);
10109
- }
10110
- });
10111
- }
10112
- listPagingAll(resourceGroupName, vaultName, options) {
10113
- return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
10114
- var e_1, _a;
10115
- try {
10116
- for (var _b = tslib.__asyncValues(this.listPagingPage(resourceGroupName, vaultName, options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
10117
- const page = _c.value;
10118
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
10119
- }
10120
- }
10121
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
10122
- finally {
10123
- try {
10124
- if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
10125
- }
10126
- finally { if (e_1) throw e_1.error; }
10127
- }
10128
- });
10129
- }
10130
- /**
10131
- * @param resourceGroupName The name of the resource group where the backup vault is present.
10132
- * @param vaultName The name of the backup vault.
10133
- * @param options The options parameters.
10134
- */
10135
- _list(resourceGroupName, vaultName, options) {
10136
- return this.client.sendOperationRequest({ resourceGroupName, vaultName, options }, listOperationSpec);
10137
- }
10138
- /**
10139
- * @param resourceGroupName The name of the resource group where the backup vault is present.
10140
- * @param vaultName The name of the backup vault.
10141
- * @param resourceGuardProxyName
10142
- * @param options The options parameters.
10143
- */
10144
- get(resourceGroupName, vaultName, resourceGuardProxyName, options) {
10145
- return this.client.sendOperationRequest({ resourceGroupName, vaultName, resourceGuardProxyName, options }, getOperationSpec);
10146
- }
10147
- /**
10148
- * @param resourceGroupName The name of the resource group where the backup vault is present.
10149
- * @param vaultName The name of the backup vault.
10150
- * @param resourceGuardProxyName
10151
- * @param parameters Request body for operation
10152
- * @param options The options parameters.
10153
- */
10154
- put(resourceGroupName, vaultName, resourceGuardProxyName, parameters, options) {
10155
- return this.client.sendOperationRequest({
10156
- resourceGroupName,
10157
- vaultName,
10158
- resourceGuardProxyName,
10159
- parameters,
10160
- options
10161
- }, putOperationSpec);
10162
- }
10163
- /**
10164
- * @param resourceGroupName The name of the resource group where the backup vault is present.
10165
- * @param vaultName The name of the backup vault.
10166
- * @param resourceGuardProxyName
10167
- * @param options The options parameters.
10168
- */
10169
- delete(resourceGroupName, vaultName, resourceGuardProxyName, options) {
10170
- return this.client.sendOperationRequest({ resourceGroupName, vaultName, resourceGuardProxyName, options }, deleteOperationSpec);
10171
- }
10172
- /**
10173
- * @param resourceGroupName The name of the resource group where the backup vault is present.
10174
- * @param vaultName The name of the backup vault.
10175
- * @param resourceGuardProxyName
10176
- * @param parameters Request body for operation
10177
- * @param options The options parameters.
10178
- */
10179
- unlockDelete(resourceGroupName, vaultName, resourceGuardProxyName, parameters, options) {
10180
- return this.client.sendOperationRequest({
10181
- resourceGroupName,
10182
- vaultName,
10183
- resourceGuardProxyName,
10184
- parameters,
10185
- options
10186
- }, unlockDeleteOperationSpec);
10187
- }
10188
- /**
10189
- * ListNext
10190
- * @param resourceGroupName The name of the resource group where the backup vault is present.
10191
- * @param vaultName The name of the backup vault.
10192
- * @param nextLink The nextLink from the previous successful call to the List method.
10193
- * @param options The options parameters.
10194
- */
10195
- _listNext(resourceGroupName, vaultName, nextLink, options) {
10196
- return this.client.sendOperationRequest({ resourceGroupName, vaultName, nextLink, options }, listNextOperationSpec);
10197
- }
10198
- }
10199
- // Operation Specifications
10200
- const serializer = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
10201
- const listOperationSpec = {
10202
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupResourceGuardProxies",
10203
- httpMethod: "GET",
10204
- responses: {
10205
- 200: {
10206
- bodyMapper: ResourceGuardProxyBaseResourceList
10207
- },
10208
- default: {
10209
- bodyMapper: CloudError
10210
- }
10211
- },
10212
- queryParameters: [apiVersion],
10213
- urlParameters: [
10214
- $host,
10215
- subscriptionId,
10216
- resourceGroupName,
10217
- vaultName
10218
- ],
10219
- headerParameters: [accept],
10220
- serializer
10221
- };
10222
- const getOperationSpec = {
10223
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupResourceGuardProxies/{resourceGuardProxyName}",
10224
- httpMethod: "GET",
10225
- responses: {
10226
- 200: {
10227
- bodyMapper: ResourceGuardProxyBaseResource
10228
- },
10229
- default: {
10230
- bodyMapper: CloudError
10231
- }
10232
- },
10233
- queryParameters: [apiVersion],
10234
- urlParameters: [
10235
- $host,
10236
- subscriptionId,
10237
- resourceGroupName,
10238
- vaultName,
10239
- resourceGuardProxyName
10240
- ],
10241
- headerParameters: [accept],
10242
- serializer
10243
- };
10244
- const putOperationSpec = {
10245
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupResourceGuardProxies/{resourceGuardProxyName}",
10246
- httpMethod: "PUT",
10247
- responses: {
10248
- 200: {
10249
- bodyMapper: ResourceGuardProxyBaseResource
10250
- },
10251
- default: {
10252
- bodyMapper: CloudError
10253
- }
10254
- },
10255
- requestBody: parameters14,
10256
- queryParameters: [apiVersion],
10257
- urlParameters: [
10258
- $host,
10259
- subscriptionId,
10260
- resourceGroupName,
10261
- vaultName,
10262
- resourceGuardProxyName
10263
- ],
10264
- headerParameters: [accept, contentType],
10265
- mediaType: "json",
10266
- serializer
10267
- };
10268
- const deleteOperationSpec = {
10269
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupResourceGuardProxies/{resourceGuardProxyName}",
10270
- httpMethod: "DELETE",
10271
- responses: {
10272
- 200: {},
10273
- 204: {},
10274
- default: {
10275
- bodyMapper: CloudError
10276
- }
10277
- },
10278
- queryParameters: [apiVersion],
10279
- urlParameters: [
10280
- $host,
10281
- subscriptionId,
10282
- resourceGroupName,
10283
- vaultName,
10284
- resourceGuardProxyName
10285
- ],
10286
- headerParameters: [accept],
10287
- serializer
10288
- };
10289
- const unlockDeleteOperationSpec = {
10290
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupResourceGuardProxies/{resourceGuardProxyName}/unlockDelete",
10291
- httpMethod: "POST",
10292
- responses: {
10293
- 200: {
10294
- bodyMapper: UnlockDeleteResponse
10295
- },
10296
- default: {
10297
- bodyMapper: CloudError
10298
- }
10299
- },
10300
- requestBody: parameters15,
10301
- queryParameters: [apiVersion],
10302
- urlParameters: [
10303
- $host,
10304
- subscriptionId,
10305
- resourceGroupName,
10306
- vaultName,
10307
- resourceGuardProxyName
10308
- ],
10309
- headerParameters: [accept, contentType],
10310
- mediaType: "json",
10311
- serializer
10312
- };
10313
- const listNextOperationSpec = {
10314
- path: "{nextLink}",
10315
- httpMethod: "GET",
10316
- responses: {
10317
- 200: {
10318
- bodyMapper: ResourceGuardProxyBaseResourceList
10319
- },
10320
- default: {
10321
- bodyMapper: CloudError
10322
- }
10323
- },
10324
- urlParameters: [
10325
- $host,
10326
- subscriptionId,
10327
- resourceGroupName,
10328
- vaultName,
10329
- nextLink
10330
- ],
10331
- headerParameters: [accept],
10332
9891
  serializer
10333
9892
  };
10334
9893
 
@@ -10343,7 +9902,7 @@ class DataProtectionClient extends coreClient__namespace.ServiceClient {
10343
9902
  /**
10344
9903
  * Initializes a new instance of the DataProtectionClient class.
10345
9904
  * @param credentials Subscription credentials which uniquely identify client subscription.
10346
- * @param subscriptionId The subscription Id.
9905
+ * @param subscriptionId The ID of the target subscription. The value must be an UUID.
10347
9906
  * @param options The parameter options
10348
9907
  */
10349
9908
  constructor(credentials, subscriptionId, options) {
@@ -10362,7 +9921,7 @@ class DataProtectionClient extends coreClient__namespace.ServiceClient {
10362
9921
  requestContentType: "application/json; charset=utf-8",
10363
9922
  credential: credentials
10364
9923
  };
10365
- const packageDetails = `azsdk-js-arm-dataprotection/1.0.0-beta.1`;
9924
+ const packageDetails = `azsdk-js-arm-dataprotection/1.0.0-beta.2`;
10366
9925
  const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
10367
9926
  ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
10368
9927
  : `${packageDetails}`;
@@ -10395,7 +9954,7 @@ class DataProtectionClient extends coreClient__namespace.ServiceClient {
10395
9954
  this.subscriptionId = subscriptionId;
10396
9955
  // Assigning values to Constant parameters
10397
9956
  this.$host = options.$host || "https://management.azure.com";
10398
- this.apiVersion = options.apiVersion || "2022-11-01-preview";
9957
+ this.apiVersion = options.apiVersion || "2023-01-01";
10399
9958
  this.backupVaults = new BackupVaultsImpl(this);
10400
9959
  this.operationResult = new OperationResultImpl(this);
10401
9960
  this.operationStatus = new OperationStatusImpl(this);
@@ -10406,7 +9965,6 @@ class DataProtectionClient extends coreClient__namespace.ServiceClient {
10406
9965
  this.dataProtectionOperations = new DataProtectionOperationsImpl(this);
10407
9966
  this.backupPolicies = new BackupPoliciesImpl(this);
10408
9967
  this.backupInstances = new BackupInstancesImpl(this);
10409
- this.backupInstancesExtensionRouting = new BackupInstancesExtensionRoutingImpl(this);
10410
9968
  this.recoveryPoints = new RecoveryPointsImpl(this);
10411
9969
  this.jobs = new JobsImpl(this);
10412
9970
  this.restorableTimeRanges = new RestorableTimeRangesImpl(this);
@@ -10414,7 +9972,6 @@ class DataProtectionClient extends coreClient__namespace.ServiceClient {
10414
9972
  this.exportJobsOperationResult = new ExportJobsOperationResultImpl(this);
10415
9973
  this.deletedBackupInstances = new DeletedBackupInstancesImpl(this);
10416
9974
  this.resourceGuards = new ResourceGuardsImpl(this);
10417
- this.dppResourceGuardProxy = new DppResourceGuardProxyImpl(this);
10418
9975
  this.addCustomApiVersionPolicy(options.apiVersion);
10419
9976
  }
10420
9977
  /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */