@azure/arm-recoveryservicesbackup 11.0.1-alpha.20231113.1 → 12.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (185) hide show
  1. package/CHANGELOG.md +55 -9
  2. package/dist/index.js +974 -237
  3. package/dist/index.js.map +1 -1
  4. package/dist/index.min.js +1 -1
  5. package/dist/index.min.js.map +1 -1
  6. package/dist-esm/samples-dev/backupEnginesGetSample.js +1 -1
  7. package/dist-esm/samples-dev/backupEnginesListSample.js +1 -1
  8. package/dist-esm/samples-dev/backupJobsListSample.js +3 -3
  9. package/dist-esm/samples-dev/backupOperationResultsGetSample.js +1 -1
  10. package/dist-esm/samples-dev/backupOperationStatusesGetSample.js +1 -1
  11. package/dist-esm/samples-dev/backupPoliciesListSample.js +3 -3
  12. package/dist-esm/samples-dev/backupProtectableItemsListSample.js +1 -1
  13. package/dist-esm/samples-dev/backupProtectedItemsListSample.js +1 -1
  14. package/dist-esm/samples-dev/backupProtectionContainersListSample.js +1 -1
  15. package/dist-esm/samples-dev/backupProtectionIntentListSample.js +1 -1
  16. package/dist-esm/samples-dev/backupResourceEncryptionConfigsGetSample.js +1 -1
  17. package/dist-esm/samples-dev/backupResourceEncryptionConfigsUpdateSample.js +1 -1
  18. package/dist-esm/samples-dev/backupResourceStorageConfigsNonCrrGetSample.js +1 -1
  19. package/dist-esm/samples-dev/backupResourceStorageConfigsNonCrrPatchSample.js +1 -1
  20. package/dist-esm/samples-dev/backupResourceStorageConfigsNonCrrUpdateSample.js +1 -1
  21. package/dist-esm/samples-dev/backupResourceVaultConfigsGetSample.js +1 -1
  22. package/dist-esm/samples-dev/backupResourceVaultConfigsPutSample.js +1 -1
  23. package/dist-esm/samples-dev/backupResourceVaultConfigsUpdateSample.js +1 -1
  24. package/dist-esm/samples-dev/backupStatusGetSample.js +1 -1
  25. package/dist-esm/samples-dev/backupUsageSummariesListSample.js +2 -2
  26. package/dist-esm/samples-dev/backupWorkloadItemsListSample.js +1 -1
  27. package/dist-esm/samples-dev/backupsTriggerSample.js +1 -1
  28. package/dist-esm/samples-dev/bmsPrepareDataMoveOperationResultGetSample.js +1 -1
  29. package/dist-esm/samples-dev/bmsPrepareDataMoveSample.js +1 -1
  30. package/dist-esm/samples-dev/bmsTriggerDataMoveSample.js +1 -1
  31. package/dist-esm/samples-dev/deletedProtectionContainersListSample.js +1 -1
  32. package/dist-esm/samples-dev/exportJobsOperationResultsGetSample.js +1 -1
  33. package/dist-esm/samples-dev/featureSupportValidateSample.js +1 -1
  34. package/dist-esm/samples-dev/fetchTieringCostPostSample.d.ts +2 -0
  35. package/dist-esm/samples-dev/fetchTieringCostPostSample.d.ts.map +1 -0
  36. package/dist-esm/samples-dev/fetchTieringCostPostSample.js +131 -0
  37. package/dist-esm/samples-dev/fetchTieringCostPostSample.js.map +1 -0
  38. package/dist-esm/samples-dev/getOperationStatusSample.js +1 -1
  39. package/dist-esm/samples-dev/getTieringCostOperationResultGetSample.d.ts +2 -0
  40. package/dist-esm/samples-dev/getTieringCostOperationResultGetSample.d.ts.map +1 -0
  41. package/dist-esm/samples-dev/getTieringCostOperationResultGetSample.js +40 -0
  42. package/dist-esm/samples-dev/getTieringCostOperationResultGetSample.js.map +1 -0
  43. package/dist-esm/samples-dev/itemLevelRecoveryConnectionsProvisionSample.js +1 -1
  44. package/dist-esm/samples-dev/itemLevelRecoveryConnectionsRevokeSample.js +1 -1
  45. package/dist-esm/samples-dev/jobCancellationsTriggerSample.js +1 -1
  46. package/dist-esm/samples-dev/jobDetailsGetSample.js +1 -1
  47. package/dist-esm/samples-dev/jobOperationResultsGetSample.js +1 -1
  48. package/dist-esm/samples-dev/jobsExportSample.js +1 -1
  49. package/dist-esm/samples-dev/moveRecoveryPointSample.js +1 -1
  50. package/dist-esm/samples-dev/operationValidateSample.js +40 -34
  51. package/dist-esm/samples-dev/operationValidateSample.js.map +1 -1
  52. package/dist-esm/samples-dev/operationsListSample.js +1 -1
  53. package/dist-esm/samples-dev/privateEndpointConnectionDeleteSample.js +1 -1
  54. package/dist-esm/samples-dev/privateEndpointConnectionGetSample.js +1 -1
  55. package/dist-esm/samples-dev/privateEndpointConnectionPutSample.js +1 -1
  56. package/dist-esm/samples-dev/privateEndpointGetOperationStatusSample.js +1 -1
  57. package/dist-esm/samples-dev/protectableContainersListSample.js +1 -1
  58. package/dist-esm/samples-dev/protectedItemOperationResultsGetSample.js +1 -1
  59. package/dist-esm/samples-dev/protectedItemOperationStatusesGetSample.js +1 -1
  60. package/dist-esm/samples-dev/protectedItemsCreateOrUpdateSample.js +2 -2
  61. package/dist-esm/samples-dev/protectedItemsDeleteSample.js +1 -1
  62. package/dist-esm/samples-dev/protectedItemsGetSample.js +2 -2
  63. package/dist-esm/samples-dev/protectionContainerOperationResultsGetSample.js +1 -1
  64. package/dist-esm/samples-dev/protectionContainerRefreshOperationResultsGetSample.js +1 -1
  65. package/dist-esm/samples-dev/protectionContainersGetSample.js +1 -1
  66. package/dist-esm/samples-dev/protectionContainersInquireSample.js +1 -1
  67. package/dist-esm/samples-dev/protectionContainersRefreshSample.js +1 -1
  68. package/dist-esm/samples-dev/protectionContainersRegisterSample.js +2 -2
  69. package/dist-esm/samples-dev/protectionContainersRegisterSample.js.map +1 -1
  70. package/dist-esm/samples-dev/protectionContainersUnregisterSample.js +1 -1
  71. package/dist-esm/samples-dev/protectionIntentCreateOrUpdateSample.js +1 -1
  72. package/dist-esm/samples-dev/protectionIntentDeleteSample.js +1 -1
  73. package/dist-esm/samples-dev/protectionIntentGetSample.js +1 -1
  74. package/dist-esm/samples-dev/protectionIntentValidateSample.js +1 -1
  75. package/dist-esm/samples-dev/protectionPoliciesCreateOrUpdateSample.js +77 -7
  76. package/dist-esm/samples-dev/protectionPoliciesCreateOrUpdateSample.js.map +1 -1
  77. package/dist-esm/samples-dev/protectionPoliciesDeleteSample.js +1 -1
  78. package/dist-esm/samples-dev/protectionPoliciesGetSample.js +2 -2
  79. package/dist-esm/samples-dev/protectionPolicyOperationResultsGetSample.js +1 -1
  80. package/dist-esm/samples-dev/protectionPolicyOperationStatusesGetSample.js +1 -1
  81. package/dist-esm/samples-dev/recoveryPointsGetSample.js +1 -1
  82. package/dist-esm/samples-dev/recoveryPointsListSample.js +1 -1
  83. package/dist-esm/samples-dev/recoveryPointsRecommendedForMoveListSample.js +1 -1
  84. package/dist-esm/samples-dev/resourceGuardProxiesGetSample.js +1 -1
  85. package/dist-esm/samples-dev/resourceGuardProxyDeleteSample.js +1 -1
  86. package/dist-esm/samples-dev/resourceGuardProxyGetSample.js +1 -1
  87. package/dist-esm/samples-dev/resourceGuardProxyPutSample.js +1 -1
  88. package/dist-esm/samples-dev/resourceGuardProxyUnlockDeleteSample.js +1 -1
  89. package/dist-esm/samples-dev/restoresTriggerSample.js +6 -6
  90. package/dist-esm/samples-dev/securityPiNsGetSample.js +1 -1
  91. package/dist-esm/samples-dev/tieringCostOperationStatusGetSample.d.ts +2 -0
  92. package/dist-esm/samples-dev/tieringCostOperationStatusGetSample.d.ts.map +1 -0
  93. package/dist-esm/samples-dev/tieringCostOperationStatusGetSample.js +40 -0
  94. package/dist-esm/samples-dev/tieringCostOperationStatusGetSample.js.map +1 -0
  95. package/dist-esm/samples-dev/validateOperationResultsGetSample.js +1 -1
  96. package/dist-esm/samples-dev/validateOperationStatusesGetSample.js +1 -1
  97. package/dist-esm/samples-dev/validateOperationTriggerSample.js +19 -16
  98. package/dist-esm/samples-dev/validateOperationTriggerSample.js.map +1 -1
  99. package/dist-esm/src/models/index.d.ts +203 -19
  100. package/dist-esm/src/models/index.d.ts.map +1 -1
  101. package/dist-esm/src/models/index.js +14 -8
  102. package/dist-esm/src/models/index.js.map +1 -1
  103. package/dist-esm/src/models/mappers.d.ts +23 -0
  104. package/dist-esm/src/models/mappers.d.ts.map +1 -1
  105. package/dist-esm/src/models/mappers.js +412 -0
  106. package/dist-esm/src/models/mappers.js.map +1 -1
  107. package/dist-esm/src/models/parameters.d.ts +2 -0
  108. package/dist-esm/src/models/parameters.d.ts.map +1 -1
  109. package/dist-esm/src/models/parameters.js +22 -3
  110. package/dist-esm/src/models/parameters.js.map +1 -1
  111. package/dist-esm/src/operations/fetchTieringCost.d.ts +36 -0
  112. package/dist-esm/src/operations/fetchTieringCost.d.ts.map +1 -0
  113. package/dist-esm/src/operations/fetchTieringCost.js +121 -0
  114. package/dist-esm/src/operations/fetchTieringCost.js.map +1 -0
  115. package/dist-esm/src/operations/getTieringCostOperationResult.d.ts +22 -0
  116. package/dist-esm/src/operations/getTieringCostOperationResult.d.ts.map +1 -0
  117. package/dist-esm/src/operations/getTieringCostOperationResult.js +56 -0
  118. package/dist-esm/src/operations/getTieringCostOperationResult.js.map +1 -0
  119. package/dist-esm/src/operations/index.d.ts +3 -0
  120. package/dist-esm/src/operations/index.d.ts.map +1 -1
  121. package/dist-esm/src/operations/index.js +3 -0
  122. package/dist-esm/src/operations/index.js.map +1 -1
  123. package/dist-esm/src/operations/operation.d.ts +2 -2
  124. package/dist-esm/src/operations/operation.d.ts.map +1 -1
  125. package/dist-esm/src/operations/operation.js.map +1 -1
  126. package/dist-esm/src/operations/protectionContainers.d.ts +16 -1
  127. package/dist-esm/src/operations/protectionContainers.d.ts.map +1 -1
  128. package/dist-esm/src/operations/protectionContainers.js +74 -10
  129. package/dist-esm/src/operations/protectionContainers.js.map +1 -1
  130. package/dist-esm/src/operations/tieringCostOperationStatus.d.ts +22 -0
  131. package/dist-esm/src/operations/tieringCostOperationStatus.d.ts.map +1 -0
  132. package/dist-esm/src/operations/tieringCostOperationStatus.js +56 -0
  133. package/dist-esm/src/operations/tieringCostOperationStatus.js.map +1 -0
  134. package/dist-esm/src/operations/validateOperation.d.ts +3 -3
  135. package/dist-esm/src/operations/validateOperation.d.ts.map +1 -1
  136. package/dist-esm/src/operations/validateOperation.js.map +1 -1
  137. package/dist-esm/src/operationsInterfaces/fetchTieringCost.d.ts +28 -0
  138. package/dist-esm/src/operationsInterfaces/fetchTieringCost.d.ts.map +1 -0
  139. package/dist-esm/src/operationsInterfaces/fetchTieringCost.js +9 -0
  140. package/dist-esm/src/operationsInterfaces/fetchTieringCost.js.map +1 -0
  141. package/dist-esm/src/operationsInterfaces/getTieringCostOperationResult.d.ts +14 -0
  142. package/dist-esm/src/operationsInterfaces/getTieringCostOperationResult.d.ts.map +1 -0
  143. package/dist-esm/src/operationsInterfaces/getTieringCostOperationResult.js +9 -0
  144. package/dist-esm/src/operationsInterfaces/getTieringCostOperationResult.js.map +1 -0
  145. package/dist-esm/src/operationsInterfaces/index.d.ts +3 -0
  146. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -1
  147. package/dist-esm/src/operationsInterfaces/index.js +3 -0
  148. package/dist-esm/src/operationsInterfaces/index.js.map +1 -1
  149. package/dist-esm/src/operationsInterfaces/operation.d.ts +2 -2
  150. package/dist-esm/src/operationsInterfaces/operation.d.ts.map +1 -1
  151. package/dist-esm/src/operationsInterfaces/protectionContainers.d.ts +16 -1
  152. package/dist-esm/src/operationsInterfaces/protectionContainers.d.ts.map +1 -1
  153. package/dist-esm/src/operationsInterfaces/tieringCostOperationStatus.d.ts +14 -0
  154. package/dist-esm/src/operationsInterfaces/tieringCostOperationStatus.d.ts.map +1 -0
  155. package/dist-esm/src/operationsInterfaces/tieringCostOperationStatus.js +9 -0
  156. package/dist-esm/src/operationsInterfaces/tieringCostOperationStatus.js.map +1 -0
  157. package/dist-esm/src/operationsInterfaces/validateOperation.d.ts +3 -3
  158. package/dist-esm/src/operationsInterfaces/validateOperation.d.ts.map +1 -1
  159. package/dist-esm/src/recoveryServicesBackupClient.d.ts +4 -1
  160. package/dist-esm/src/recoveryServicesBackupClient.d.ts.map +1 -1
  161. package/dist-esm/src/recoveryServicesBackupClient.js +6 -3
  162. package/dist-esm/src/recoveryServicesBackupClient.js.map +1 -1
  163. package/dist-esm/test/recoveryservicesbackup_operations_test.spec.js +1 -1
  164. package/dist-esm/test/recoveryservicesbackup_operations_test.spec.js.map +1 -1
  165. package/package.json +6 -4
  166. package/review/arm-recoveryservicesbackup.api.md +178 -5
  167. package/src/models/index.ts +245 -22
  168. package/src/models/mappers.ts +461 -0
  169. package/src/models/parameters.ts +26 -4
  170. package/src/operations/fetchTieringCost.ts +174 -0
  171. package/src/operations/getTieringCostOperationResult.ts +77 -0
  172. package/src/operations/index.ts +3 -0
  173. package/src/operations/operation.ts +2 -2
  174. package/src/operations/protectionContainers.ts +106 -6
  175. package/src/operations/tieringCostOperationStatus.ts +77 -0
  176. package/src/operations/validateOperation.ts +3 -3
  177. package/src/operationsInterfaces/fetchTieringCost.ts +55 -0
  178. package/src/operationsInterfaces/getTieringCostOperationResult.ts +30 -0
  179. package/src/operationsInterfaces/index.ts +3 -0
  180. package/src/operationsInterfaces/operation.ts +2 -2
  181. package/src/operationsInterfaces/protectionContainers.ts +28 -1
  182. package/src/operationsInterfaces/tieringCostOperationStatus.ts +30 -0
  183. package/src/operationsInterfaces/validateOperation.ts +3 -3
  184. package/src/recoveryServicesBackupClient.ts +18 -4
  185. package/types/arm-recoveryservicesbackup.d.ts +283 -7
@@ -0,0 +1,30 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+
9
+ import {
10
+ TieringCostOperationStatusGetOptionalParams,
11
+ TieringCostOperationStatusGetResponse
12
+ } from "../models";
13
+
14
+ /** Interface representing a TieringCostOperationStatus. */
15
+ export interface TieringCostOperationStatus {
16
+ /**
17
+ * Gets the status of async operations of tiering cost
18
+ * @param resourceGroupName The name of the resource group where the recovery services vault is
19
+ * present.
20
+ * @param vaultName The name of the recovery services vault.
21
+ * @param operationId
22
+ * @param options The options parameters.
23
+ */
24
+ get(
25
+ resourceGroupName: string,
26
+ vaultName: string,
27
+ operationId: string,
28
+ options?: TieringCostOperationStatusGetOptionalParams
29
+ ): Promise<TieringCostOperationStatusGetResponse>;
30
+ }
@@ -8,7 +8,7 @@
8
8
 
9
9
  import { SimplePollerLike, OperationState } from "@azure/core-lro";
10
10
  import {
11
- ValidateOperationRequestUnion,
11
+ ValidateOperationRequestResource,
12
12
  ValidateOperationTriggerOptionalParams
13
13
  } from "../models";
14
14
 
@@ -26,7 +26,7 @@ export interface ValidateOperation {
26
26
  beginTrigger(
27
27
  vaultName: string,
28
28
  resourceGroupName: string,
29
- parameters: ValidateOperationRequestUnion,
29
+ parameters: ValidateOperationRequestResource,
30
30
  options?: ValidateOperationTriggerOptionalParams
31
31
  ): Promise<SimplePollerLike<OperationState<void>, void>>;
32
32
  /**
@@ -41,7 +41,7 @@ export interface ValidateOperation {
41
41
  beginTriggerAndWait(
42
42
  vaultName: string,
43
43
  resourceGroupName: string,
44
- parameters: ValidateOperationRequestUnion,
44
+ parameters: ValidateOperationRequestResource,
45
45
  options?: ValidateOperationTriggerOptionalParams
46
46
  ): Promise<void>;
47
47
  }
@@ -69,7 +69,10 @@ import {
69
69
  SecurityPINsImpl,
70
70
  RecoveryPointsRecommendedForMoveImpl,
71
71
  ResourceGuardProxiesImpl,
72
- ResourceGuardProxyImpl
72
+ ResourceGuardProxyImpl,
73
+ FetchTieringCostImpl,
74
+ GetTieringCostOperationResultImpl,
75
+ TieringCostOperationStatusImpl
73
76
  } from "./operations";
74
77
  import {
75
78
  BackupResourceStorageConfigsNonCRR,
@@ -120,7 +123,10 @@ import {
120
123
  SecurityPINs,
121
124
  RecoveryPointsRecommendedForMove,
122
125
  ResourceGuardProxies,
123
- ResourceGuardProxy
126
+ ResourceGuardProxy,
127
+ FetchTieringCost,
128
+ GetTieringCostOperationResult,
129
+ TieringCostOperationStatus
124
130
  } from "./operationsInterfaces";
125
131
  import * as Parameters from "./models/parameters";
126
132
  import * as Mappers from "./models/mappers";
@@ -168,7 +174,7 @@ export class RecoveryServicesBackupClient extends coreClient.ServiceClient {
168
174
  credential: credentials
169
175
  };
170
176
 
171
- const packageDetails = `azsdk-js-arm-recoveryservicesbackup/11.0.1`;
177
+ const packageDetails = `azsdk-js-arm-recoveryservicesbackup/12.0.0`;
172
178
  const userAgentPrefix =
173
179
  options.userAgentOptions && options.userAgentOptions.userAgentPrefix
174
180
  ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
@@ -221,7 +227,7 @@ export class RecoveryServicesBackupClient extends coreClient.ServiceClient {
221
227
 
222
228
  // Assigning values to Constant parameters
223
229
  this.$host = options.$host || "https://management.azure.com";
224
- this.apiVersion = options.apiVersion || "2023-04-01";
230
+ this.apiVersion = options.apiVersion || "2023-06-01";
225
231
  this.backupResourceStorageConfigsNonCRR = new BackupResourceStorageConfigsNonCRRImpl(
226
232
  this
227
233
  );
@@ -297,6 +303,11 @@ export class RecoveryServicesBackupClient extends coreClient.ServiceClient {
297
303
  );
298
304
  this.resourceGuardProxies = new ResourceGuardProxiesImpl(this);
299
305
  this.resourceGuardProxy = new ResourceGuardProxyImpl(this);
306
+ this.fetchTieringCost = new FetchTieringCostImpl(this);
307
+ this.getTieringCostOperationResult = new GetTieringCostOperationResultImpl(
308
+ this
309
+ );
310
+ this.tieringCostOperationStatus = new TieringCostOperationStatusImpl(this);
300
311
  this.addCustomApiVersionPolicy(options.apiVersion);
301
312
  }
302
313
 
@@ -693,6 +704,9 @@ export class RecoveryServicesBackupClient extends coreClient.ServiceClient {
693
704
  recoveryPointsRecommendedForMove: RecoveryPointsRecommendedForMove;
694
705
  resourceGuardProxies: ResourceGuardProxies;
695
706
  resourceGuardProxy: ResourceGuardProxy;
707
+ fetchTieringCost: FetchTieringCost;
708
+ getTieringCostOperationResult: GetTieringCostOperationResult;
709
+ tieringCostOperationStatus: TieringCostOperationStatus;
696
710
  }
697
711
  // Operation Specifications
698
712
  const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
@@ -104,6 +104,8 @@ export declare interface AzureFileShareProtectionPolicy extends ProtectionPolicy
104
104
  schedulePolicy?: SchedulePolicyUnion;
105
105
  /** Retention policy with the details on backup copy retention ranges. */
106
106
  retentionPolicy?: RetentionPolicyUnion;
107
+ /** Retention policy with the details on hardened backup copy retention ranges. */
108
+ vaultRetentionPolicy?: VaultRetentionPolicy;
107
109
  /** TimeZone optional input as string. For example: TimeZone = "Pacific Standard Time". */
108
110
  timeZone?: string;
109
111
  }
@@ -948,6 +950,18 @@ export declare interface AzureWorkloadRestoreRequest extends RestoreRequest {
948
950
  targetInfo?: TargetRestoreInfo;
949
951
  /** Defines whether the current recovery mode is file restore or database restore */
950
952
  recoveryMode?: RecoveryMode;
953
+ /** Defines the Resource group of the Target VM */
954
+ targetResourceGroupName?: string;
955
+ /**
956
+ * User Assigned managed identity details
957
+ * Currently used for snapshot.
958
+ */
959
+ userAssignedManagedIdentityDetails?: UserAssignedManagedIdentityDetails;
960
+ /**
961
+ * Additional details for snapshot recovery
962
+ * Currently used for snapshot for SAP Hana.
963
+ */
964
+ snapshotRestoreParameters?: SnapshotRestoreParameters;
951
965
  /**
952
966
  * This is the complete ARM Id of the target VM
953
967
  * For e.g. /subscriptions/{subId}/resourcegroups/{rg}/provider/Microsoft.Compute/virtualmachines/{vm}
@@ -1783,6 +1797,10 @@ export declare interface BackupStatusResponse {
1783
1797
  policyName?: string;
1784
1798
  /** Container registration status */
1785
1799
  registrationStatus?: string;
1800
+ /** Number of protected items */
1801
+ protectedItemsCount?: number;
1802
+ /** Specifies whether the storage account lock has been acquired or not */
1803
+ acquireStorageAccountLock?: AcquireStorageAccountLock;
1786
1804
  }
1787
1805
 
1788
1806
  /** Optional parameters. */
@@ -2598,6 +2616,101 @@ export declare interface FeatureSupportValidateOptionalParams extends coreClient
2598
2616
  /** Contains response data for the validate operation. */
2599
2617
  export declare type FeatureSupportValidateResponse = AzureVMResourceFeatureSupportResponse;
2600
2618
 
2619
+ /** Interface representing a FetchTieringCost. */
2620
+ export declare interface FetchTieringCost {
2621
+ /**
2622
+ * Provides the details of the tiering related sizes and cost.
2623
+ * Status of the operation can be fetched using GetTieringCostOperationStatus API and result using
2624
+ * GetTieringCostOperationResult API.
2625
+ * @param resourceGroupName The name of the resource group where the recovery services vault is
2626
+ * present.
2627
+ * @param vaultName The name of the recovery services vault.
2628
+ * @param parameters Fetch Tiering Cost Request
2629
+ * @param options The options parameters.
2630
+ */
2631
+ beginPost(resourceGroupName: string, vaultName: string, parameters: FetchTieringCostInfoRequestUnion, options?: FetchTieringCostPostOptionalParams): Promise<SimplePollerLike<OperationState<FetchTieringCostPostResponse>, FetchTieringCostPostResponse>>;
2632
+ /**
2633
+ * Provides the details of the tiering related sizes and cost.
2634
+ * Status of the operation can be fetched using GetTieringCostOperationStatus API and result using
2635
+ * GetTieringCostOperationResult API.
2636
+ * @param resourceGroupName The name of the resource group where the recovery services vault is
2637
+ * present.
2638
+ * @param vaultName The name of the recovery services vault.
2639
+ * @param parameters Fetch Tiering Cost Request
2640
+ * @param options The options parameters.
2641
+ */
2642
+ beginPostAndWait(resourceGroupName: string, vaultName: string, parameters: FetchTieringCostInfoRequestUnion, options?: FetchTieringCostPostOptionalParams): Promise<FetchTieringCostPostResponse>;
2643
+ }
2644
+
2645
+ /** Request parameters for fetching cost info of rehydration */
2646
+ export declare interface FetchTieringCostInfoForRehydrationRequest extends FetchTieringCostInfoRequest {
2647
+ /** Polymorphic discriminator, which specifies the different types this object can be */
2648
+ objectType: "FetchTieringCostInfoForRehydrationRequest";
2649
+ /** Name of the protected item container */
2650
+ containerName: string;
2651
+ /** Name of the protectedItemName */
2652
+ protectedItemName: string;
2653
+ /** ID of the backup copy for rehydration cost info needs to be fetched. */
2654
+ recoveryPointId: string;
2655
+ /** Rehydration Priority */
2656
+ rehydrationPriority: RehydrationPriority;
2657
+ }
2658
+
2659
+ /**
2660
+ * Base class for tiering cost request.
2661
+ * Specific cost request types are derived from this class.
2662
+ */
2663
+ export declare interface FetchTieringCostInfoRequest {
2664
+ /** Polymorphic discriminator, which specifies the different types this object can be */
2665
+ objectType: "FetchTieringCostInfoForRehydrationRequest" | "FetchTieringCostSavingsInfoForPolicyRequest" | "FetchTieringCostSavingsInfoForProtectedItemRequest" | "FetchTieringCostSavingsInfoForVaultRequest";
2666
+ /** Source tier for the request */
2667
+ sourceTierType: RecoveryPointTierType;
2668
+ /** target tier for the request */
2669
+ targetTierType: RecoveryPointTierType;
2670
+ }
2671
+
2672
+ export declare type FetchTieringCostInfoRequestUnion = FetchTieringCostInfoRequest | FetchTieringCostInfoForRehydrationRequest | FetchTieringCostSavingsInfoForPolicyRequest | FetchTieringCostSavingsInfoForProtectedItemRequest | FetchTieringCostSavingsInfoForVaultRequest;
2673
+
2674
+ /** Defines headers for FetchTieringCost_post operation. */
2675
+ export declare interface FetchTieringCostPostHeaders {
2676
+ location?: string;
2677
+ }
2678
+
2679
+ /** Optional parameters. */
2680
+ export declare interface FetchTieringCostPostOptionalParams extends coreClient.OperationOptions {
2681
+ /** Delay to wait until next poll, in milliseconds. */
2682
+ updateIntervalInMs?: number;
2683
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
2684
+ resumeFrom?: string;
2685
+ }
2686
+
2687
+ /** Contains response data for the post operation. */
2688
+ export declare type FetchTieringCostPostResponse = TieringCostInfoUnion;
2689
+
2690
+ /** Request parameters for tiering cost info for policy */
2691
+ export declare interface FetchTieringCostSavingsInfoForPolicyRequest extends FetchTieringCostInfoRequest {
2692
+ /** Polymorphic discriminator, which specifies the different types this object can be */
2693
+ objectType: "FetchTieringCostSavingsInfoForPolicyRequest";
2694
+ /** Name of the backup policy for which the cost savings information is requested */
2695
+ policyName: string;
2696
+ }
2697
+
2698
+ /** Request parameters for tiering cost info for protected item */
2699
+ export declare interface FetchTieringCostSavingsInfoForProtectedItemRequest extends FetchTieringCostInfoRequest {
2700
+ /** Polymorphic discriminator, which specifies the different types this object can be */
2701
+ objectType: "FetchTieringCostSavingsInfoForProtectedItemRequest";
2702
+ /** Name of the protected item container */
2703
+ containerName: string;
2704
+ /** Name of the protectedItemName */
2705
+ protectedItemName: string;
2706
+ }
2707
+
2708
+ /** Request parameters for tiering cost info for vault */
2709
+ export declare interface FetchTieringCostSavingsInfoForVaultRequest extends FetchTieringCostInfoRequest {
2710
+ /** Polymorphic discriminator, which specifies the different types this object can be */
2711
+ objectType: "FetchTieringCostSavingsInfoForVaultRequest";
2712
+ }
2713
+
2601
2714
  /** Base class for generic container of backup items */
2602
2715
  export declare interface GenericContainer extends ProtectionContainer {
2603
2716
  /** Polymorphic discriminator, which specifies the different types this object can be */
@@ -2690,6 +2803,26 @@ export declare interface GetProtectedItemQueryObject {
2690
2803
  expand?: string;
2691
2804
  }
2692
2805
 
2806
+ /** Interface representing a GetTieringCostOperationResult. */
2807
+ export declare interface GetTieringCostOperationResult {
2808
+ /**
2809
+ * Gets the result of async operation for tiering cost
2810
+ * @param resourceGroupName The name of the resource group where the recovery services vault is
2811
+ * present.
2812
+ * @param vaultName The name of the recovery services vault.
2813
+ * @param operationId
2814
+ * @param options The options parameters.
2815
+ */
2816
+ get(resourceGroupName: string, vaultName: string, operationId: string, options?: GetTieringCostOperationResultGetOptionalParams): Promise<GetTieringCostOperationResultGetResponse>;
2817
+ }
2818
+
2819
+ /** Optional parameters. */
2820
+ export declare interface GetTieringCostOperationResultGetOptionalParams extends coreClient.OperationOptions {
2821
+ }
2822
+
2823
+ /** Contains response data for the get operation. */
2824
+ export declare type GetTieringCostOperationResultGetResponse = TieringCostInfoUnion;
2825
+
2693
2826
  /**
2694
2827
  * Defines values for HealthState. \
2695
2828
  * {@link KnownHealthState} can be used interchangeably with HealthState,
@@ -2832,6 +2965,11 @@ export declare interface IaasVMRecoveryPoint extends RecoveryPoint {
2832
2965
  recoveryPointProperties?: RecoveryPointProperties;
2833
2966
  /** This flag denotes if any of the disks in the VM are using Private access network setting */
2834
2967
  isPrivateAccessEnabledOnAnyDisk?: boolean;
2968
+ /**
2969
+ * Extended location of the VM recovery point,
2970
+ * should be null if VM is in public cloud
2971
+ */
2972
+ extendedLocation?: ExtendedLocation;
2835
2973
  }
2836
2974
 
2837
2975
  /** IaaS VM workload-specific restore. */
@@ -3854,7 +3992,13 @@ export declare enum KnownRecoveryMode {
3854
3992
  /** FileRecovery */
3855
3993
  FileRecovery = "FileRecovery",
3856
3994
  /** WorkloadRecovery */
3857
- WorkloadRecovery = "WorkloadRecovery"
3995
+ WorkloadRecovery = "WorkloadRecovery",
3996
+ /** SnapshotAttach */
3997
+ SnapshotAttach = "SnapshotAttach",
3998
+ /** RecoveryUsingSnapshot */
3999
+ RecoveryUsingSnapshot = "RecoveryUsingSnapshot",
4000
+ /** SnapshotAttachAndRecover */
4001
+ SnapshotAttachAndRecover = "SnapshotAttachAndRecover"
3858
4002
  }
3859
4003
 
3860
4004
  /** Known values of {@link RecoveryType} that the service accepts. */
@@ -4493,7 +4637,7 @@ export declare interface Operation {
4493
4637
  * @param parameters resource validate operation request
4494
4638
  * @param options The options parameters.
4495
4639
  */
4496
- validate(vaultName: string, resourceGroupName: string, parameters: ValidateOperationRequestUnion, options?: OperationValidateOptionalParams): Promise<OperationValidateResponse>;
4640
+ validate(vaultName: string, resourceGroupName: string, parameters: ValidateOperationRequestResource, options?: OperationValidateOptionalParams): Promise<OperationValidateResponse>;
4497
4641
  }
4498
4642
 
4499
4643
  /** Operation result info. */
@@ -5011,6 +5155,11 @@ export declare interface ProtectedItem {
5011
5155
  policyName?: string;
5012
5156
  /** Soft delete retention period in days */
5013
5157
  softDeleteRetentionPeriodInDays?: number;
5158
+ /**
5159
+ * ID of the vault which protects this item
5160
+ * NOTE: This property will not be serialized. It can only be populated by the server.
5161
+ */
5162
+ readonly vaultId?: string;
5014
5163
  }
5015
5164
 
5016
5165
  /**
@@ -5284,7 +5433,21 @@ export declare interface ProtectionContainers {
5284
5433
  * @param parameters Request body for operation
5285
5434
  * @param options The options parameters.
5286
5435
  */
5287
- register(vaultName: string, resourceGroupName: string, fabricName: string, containerName: string, parameters: ProtectionContainerResource, options?: ProtectionContainersRegisterOptionalParams): Promise<ProtectionContainersRegisterResponse>;
5436
+ beginRegister(vaultName: string, resourceGroupName: string, fabricName: string, containerName: string, parameters: ProtectionContainerResource, options?: ProtectionContainersRegisterOptionalParams): Promise<SimplePollerLike<OperationState<ProtectionContainersRegisterResponse>, ProtectionContainersRegisterResponse>>;
5437
+ /**
5438
+ * Registers the container with Recovery Services vault.
5439
+ * This is an asynchronous operation. To track the operation status, use location header to call get
5440
+ * latest status of
5441
+ * the operation.
5442
+ * @param vaultName The name of the recovery services vault.
5443
+ * @param resourceGroupName The name of the resource group where the recovery services vault is
5444
+ * present.
5445
+ * @param fabricName Fabric name associated with the container.
5446
+ * @param containerName Name of the container to be registered.
5447
+ * @param parameters Request body for operation
5448
+ * @param options The options parameters.
5449
+ */
5450
+ beginRegisterAndWait(vaultName: string, resourceGroupName: string, fabricName: string, containerName: string, parameters: ProtectionContainerResource, options?: ProtectionContainersRegisterOptionalParams): Promise<ProtectionContainersRegisterResponse>;
5288
5451
  /**
5289
5452
  * Unregisters the given container from your Recovery Services Vault. This is an asynchronous
5290
5453
  * operation. To determine
@@ -5344,6 +5507,10 @@ export declare interface ProtectionContainersRefreshOptionalParams extends coreC
5344
5507
 
5345
5508
  /** Optional parameters. */
5346
5509
  export declare interface ProtectionContainersRegisterOptionalParams extends coreClient.OperationOptions {
5510
+ /** Delay to wait until next poll, in milliseconds. */
5511
+ updateIntervalInMs?: number;
5512
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
5513
+ resumeFrom?: string;
5347
5514
  }
5348
5515
 
5349
5516
  /** Contains response data for the register operation. */
@@ -5681,7 +5848,10 @@ export declare type ProvisioningState = string;
5681
5848
  * ### Known values supported by the service
5682
5849
  * **Invalid** \
5683
5850
  * **FileRecovery** \
5684
- * **WorkloadRecovery**
5851
+ * **WorkloadRecovery** \
5852
+ * **SnapshotAttach** \
5853
+ * **RecoveryUsingSnapshot** \
5854
+ * **SnapshotAttachAndRecover**
5685
5855
  */
5686
5856
  export declare type RecoveryMode = string;
5687
5857
 
@@ -5980,6 +6150,9 @@ export declare class RecoveryServicesBackupClient extends coreClient.ServiceClie
5980
6150
  recoveryPointsRecommendedForMove: RecoveryPointsRecommendedForMove;
5981
6151
  resourceGuardProxies: ResourceGuardProxies;
5982
6152
  resourceGuardProxy: ResourceGuardProxy;
6153
+ fetchTieringCost: FetchTieringCost;
6154
+ getTieringCostOperationResult: GetTieringCostOperationResult;
6155
+ tieringCostOperationStatus: TieringCostOperationStatus;
5983
6156
  }
5984
6157
 
5985
6158
  /** Optional parameters. */
@@ -6117,7 +6290,7 @@ export declare interface ResourceGuardProxy {
6117
6290
  }
6118
6291
 
6119
6292
  export declare interface ResourceGuardProxyBase {
6120
- resourceGuardResourceId?: string;
6293
+ resourceGuardResourceId: string;
6121
6294
  resourceGuardOperationDetails?: ResourceGuardOperationDetail[];
6122
6295
  lastUpdatedTime?: string;
6123
6296
  description?: string;
@@ -6459,6 +6632,19 @@ export declare interface SimpleSchedulePolicyV2 extends SchedulePolicy {
6459
6632
  weeklySchedule?: WeeklySchedule;
6460
6633
  }
6461
6634
 
6635
+ /** Snapshot Backup related fields for WorkloadType SaPHanaSystem */
6636
+ export declare interface SnapshotBackupAdditionalDetails {
6637
+ instantRpRetentionRangeInDays?: number;
6638
+ instantRPDetails?: string;
6639
+ userAssignedManagedIdentityDetails?: UserAssignedManagedIdentityDetails;
6640
+ }
6641
+
6642
+ /** Encapsulates information regarding snapshot recovery for SAP Hana */
6643
+ export declare interface SnapshotRestoreParameters {
6644
+ skipAttachAndMount?: boolean;
6645
+ logPointInTimeForDBRecovery?: string;
6646
+ }
6647
+
6462
6648
  /**
6463
6649
  * Defines values for SoftDeleteFeatureState. \
6464
6650
  * {@link KnownSoftDeleteFeatureState} can be used interchangeably with SoftDeleteFeatureState,
@@ -6544,6 +6730,8 @@ export declare interface SubProtectionPolicy {
6544
6730
  tieringPolicy?: {
6545
6731
  [propertyName: string]: TieringPolicy;
6546
6732
  };
6733
+ /** Snapshot Backup related fields for WorkloadType SaPHanaSystem */
6734
+ snapshotBackupAdditionalDetails?: SnapshotBackupAdditionalDetails;
6547
6735
  }
6548
6736
 
6549
6737
  /**
@@ -6590,6 +6778,58 @@ export declare interface TargetRestoreInfo {
6590
6778
  targetDirectoryForFileRestore?: string;
6591
6779
  }
6592
6780
 
6781
+ /** Base class for tiering cost response */
6782
+ export declare interface TieringCostInfo {
6783
+ /** Polymorphic discriminator, which specifies the different types this object can be */
6784
+ objectType: "TieringCostRehydrationInfo" | "TieringCostSavingInfo";
6785
+ }
6786
+
6787
+ export declare type TieringCostInfoUnion = TieringCostInfo | TieringCostRehydrationInfo | TieringCostSavingInfo;
6788
+
6789
+ /** Interface representing a TieringCostOperationStatus. */
6790
+ export declare interface TieringCostOperationStatus {
6791
+ /**
6792
+ * Gets the status of async operations of tiering cost
6793
+ * @param resourceGroupName The name of the resource group where the recovery services vault is
6794
+ * present.
6795
+ * @param vaultName The name of the recovery services vault.
6796
+ * @param operationId
6797
+ * @param options The options parameters.
6798
+ */
6799
+ get(resourceGroupName: string, vaultName: string, operationId: string, options?: TieringCostOperationStatusGetOptionalParams): Promise<TieringCostOperationStatusGetResponse>;
6800
+ }
6801
+
6802
+ /** Optional parameters. */
6803
+ export declare interface TieringCostOperationStatusGetOptionalParams extends coreClient.OperationOptions {
6804
+ }
6805
+
6806
+ /** Contains response data for the get operation. */
6807
+ export declare type TieringCostOperationStatusGetResponse = OperationStatus;
6808
+
6809
+ /** Response parameters for tiering cost info for rehydration */
6810
+ export declare interface TieringCostRehydrationInfo extends TieringCostInfo {
6811
+ /** Polymorphic discriminator, which specifies the different types this object can be */
6812
+ objectType: "TieringCostRehydrationInfo";
6813
+ /** Rehydration size in bytes */
6814
+ rehydrationSizeInBytes: number;
6815
+ /** Source tier to target tier rehydration cost per GB per month */
6816
+ retailRehydrationCostPerGBPerMonth: number;
6817
+ }
6818
+
6819
+ /** Response parameters for tiering cost info for savings */
6820
+ export declare interface TieringCostSavingInfo extends TieringCostInfo {
6821
+ /** Polymorphic discriminator, which specifies the different types this object can be */
6822
+ objectType: "TieringCostSavingInfo";
6823
+ /** Source tier size reduction in bytes after moving all the recommended backup points to target tier */
6824
+ sourceTierSizeReductionInBytes: number;
6825
+ /** Target tier size increase in bytes after moving all the recommended backup points to target tier */
6826
+ targetTierSizeIncreaseInBytes: number;
6827
+ /** Source tier retail cost per GB per month */
6828
+ retailSourceTierCostPerGBPerMonth: number;
6829
+ /** Target tier retail cost per GB per month */
6830
+ retailTargetTierCostPerGBPerMonth: number;
6831
+ }
6832
+
6593
6833
  /**
6594
6834
  * Defines values for TieringMode. \
6595
6835
  * {@link KnownTieringMode} can be used interchangeably with TieringMode,
@@ -6689,6 +6929,27 @@ export declare interface UnlockDeleteResponse {
6689
6929
  */
6690
6930
  export declare type UsagesUnit = string;
6691
6931
 
6932
+ /** User assigned identity properties */
6933
+ export declare interface UserAssignedIdentity {
6934
+ /**
6935
+ * The principal ID of the assigned identity.
6936
+ * NOTE: This property will not be serialized. It can only be populated by the server.
6937
+ */
6938
+ readonly principalId?: string;
6939
+ /**
6940
+ * The client ID of the assigned identity.
6941
+ * NOTE: This property will not be serialized. It can only be populated by the server.
6942
+ */
6943
+ readonly clientId?: string;
6944
+ }
6945
+
6946
+ export declare interface UserAssignedManagedIdentityDetails {
6947
+ identityArmId?: string;
6948
+ identityName?: string;
6949
+ /** User assigned identity properties */
6950
+ userAssignedIdentityProperties?: UserAssignedIdentity;
6951
+ }
6952
+
6692
6953
  /** AzureRestoreValidation request. */
6693
6954
  export declare interface ValidateIaasVMRestoreOperationRequest extends ValidateRestoreOperationRequest {
6694
6955
  /** Polymorphic discriminator, which specifies the different types this object can be */
@@ -6706,7 +6967,7 @@ export declare interface ValidateOperation {
6706
6967
  * @param parameters resource validate operation request
6707
6968
  * @param options The options parameters.
6708
6969
  */
6709
- beginTrigger(vaultName: string, resourceGroupName: string, parameters: ValidateOperationRequestUnion, options?: ValidateOperationTriggerOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>;
6970
+ beginTrigger(vaultName: string, resourceGroupName: string, parameters: ValidateOperationRequestResource, options?: ValidateOperationTriggerOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>;
6710
6971
  /**
6711
6972
  * Validate operation for specified backed up item in the form of an asynchronous operation. Returns
6712
6973
  * tracking headers which can be tracked using GetValidateOperationResult API.
@@ -6716,7 +6977,7 @@ export declare interface ValidateOperation {
6716
6977
  * @param parameters resource validate operation request
6717
6978
  * @param options The options parameters.
6718
6979
  */
6719
- beginTriggerAndWait(vaultName: string, resourceGroupName: string, parameters: ValidateOperationRequestUnion, options?: ValidateOperationTriggerOptionalParams): Promise<void>;
6980
+ beginTriggerAndWait(vaultName: string, resourceGroupName: string, parameters: ValidateOperationRequestResource, options?: ValidateOperationTriggerOptionalParams): Promise<void>;
6720
6981
  }
6721
6982
 
6722
6983
  /** Base class for validate operation request. */
@@ -6725,6 +6986,14 @@ export declare interface ValidateOperationRequest {
6725
6986
  objectType: "ValidateRestoreOperationRequest" | "ValidateIaasVMRestoreOperationRequest";
6726
6987
  }
6727
6988
 
6989
+ /** Base class for validate operation request. */
6990
+ export declare interface ValidateOperationRequestResource {
6991
+ /** Recovery point ID. */
6992
+ id: string;
6993
+ /** ValidateOperationRequestResource properties */
6994
+ properties: ValidateOperationRequestUnion;
6995
+ }
6996
+
6728
6997
  export declare type ValidateOperationRequestUnion = ValidateOperationRequest | ValidateRestoreOperationRequestUnion;
6729
6998
 
6730
6999
  /** Base class for validate operation response. */
@@ -6842,6 +7111,13 @@ export declare interface VaultJobExtendedInfo {
6842
7111
  };
6843
7112
  }
6844
7113
 
7114
+ /** Vault retention policy for AzureFileShare */
7115
+ export declare interface VaultRetentionPolicy {
7116
+ /** Base class for retention policy. */
7117
+ vaultRetention: RetentionPolicyUnion;
7118
+ snapshotRetentionInDays: number;
7119
+ }
7120
+
6845
7121
  /** Operation result response for Vault Storage Config */
6846
7122
  export declare interface VaultStorageConfigOperationResultResponse {
6847
7123
  /** Polymorphic discriminator, which specifies the different types this object can be */