@azure/arm-dataprotection 1.1.1-alpha.20230630.1 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +26 -10
- package/dist/index.js +215 -12
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/dist-esm/samples-dev/backupInstancesAdhocBackupSample.js +1 -1
- package/dist-esm/samples-dev/backupInstancesCreateOrUpdateSample.js +1 -1
- package/dist-esm/samples-dev/backupInstancesDeleteSample.js +1 -1
- package/dist-esm/samples-dev/backupInstancesGetBackupInstanceOperationResultSample.js +1 -1
- package/dist-esm/samples-dev/backupInstancesGetSample.js +1 -1
- package/dist-esm/samples-dev/backupInstancesListSample.js +1 -1
- package/dist-esm/samples-dev/backupInstancesResumeBackupsSample.js +1 -1
- package/dist-esm/samples-dev/backupInstancesResumeProtectionSample.js +1 -1
- package/dist-esm/samples-dev/backupInstancesStopProtectionSample.js +1 -1
- package/dist-esm/samples-dev/backupInstancesSuspendBackupsSample.js +1 -1
- package/dist-esm/samples-dev/backupInstancesSyncBackupInstanceSample.js +1 -1
- package/dist-esm/samples-dev/backupInstancesTriggerRehydrateSample.js +1 -1
- package/dist-esm/samples-dev/backupInstancesTriggerRestoreSample.js +3 -3
- package/dist-esm/samples-dev/backupInstancesValidateForBackupSample.js +1 -1
- package/dist-esm/samples-dev/backupInstancesValidateForRestoreSample.js +1 -1
- package/dist-esm/samples-dev/backupPoliciesCreateOrUpdateSample.js +1 -1
- package/dist-esm/samples-dev/backupPoliciesDeleteSample.js +1 -1
- package/dist-esm/samples-dev/backupPoliciesGetSample.js +1 -1
- package/dist-esm/samples-dev/backupPoliciesListSample.js +1 -1
- package/dist-esm/samples-dev/backupVaultOperationResultsGetSample.js +1 -1
- package/dist-esm/samples-dev/backupVaultsCheckNameAvailabilitySample.js +1 -1
- package/dist-esm/samples-dev/backupVaultsCreateOrUpdateSample.js +10 -2
- package/dist-esm/samples-dev/backupVaultsCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/backupVaultsDeleteSample.js +1 -1
- package/dist-esm/samples-dev/backupVaultsGetInResourceGroupSample.js +1 -1
- package/dist-esm/samples-dev/backupVaultsGetInSubscriptionSample.js +1 -1
- package/dist-esm/samples-dev/backupVaultsGetSample.js +2 -2
- package/dist-esm/samples-dev/backupVaultsUpdateSample.js +1 -1
- package/dist-esm/samples-dev/dataProtectionCheckFeatureSupportSample.js +1 -1
- package/dist-esm/samples-dev/dataProtectionOperationsListSample.js +2 -4
- package/dist-esm/samples-dev/dataProtectionOperationsListSample.js.map +1 -1
- package/dist-esm/samples-dev/deletedBackupInstancesGetSample.js +1 -1
- package/dist-esm/samples-dev/deletedBackupInstancesListSample.js +1 -1
- package/dist-esm/samples-dev/deletedBackupInstancesUndeleteSample.js +1 -1
- package/dist-esm/samples-dev/dppResourceGuardProxyCreateOrUpdateSample.js +1 -1
- package/dist-esm/samples-dev/dppResourceGuardProxyDeleteSample.js +1 -1
- package/dist-esm/samples-dev/dppResourceGuardProxyGetSample.js +1 -1
- package/dist-esm/samples-dev/dppResourceGuardProxyListSample.js +1 -1
- package/dist-esm/samples-dev/dppResourceGuardProxyUnlockDeleteSample.js +1 -1
- package/dist-esm/samples-dev/exportJobsOperationResultGetSample.js +1 -1
- package/dist-esm/samples-dev/exportJobsTriggerSample.js +1 -1
- package/dist-esm/samples-dev/jobsGetSample.js +1 -1
- package/dist-esm/samples-dev/jobsListSample.js +1 -1
- package/dist-esm/samples-dev/operationResultGetSample.js +1 -1
- package/dist-esm/samples-dev/operationStatusBackupVaultContextGetSample.js +1 -1
- package/dist-esm/samples-dev/operationStatusGetSample.js +1 -1
- package/dist-esm/samples-dev/operationStatusResourceGroupContextGetSample.js +1 -1
- package/dist-esm/samples-dev/recoveryPointsGetSample.js +1 -1
- package/dist-esm/samples-dev/recoveryPointsListSample.js +1 -1
- package/dist-esm/samples-dev/resourceGuardsDeleteSample.js +1 -1
- package/dist-esm/samples-dev/resourceGuardsGetBackupSecurityPinRequestsObjectsSample.js +1 -1
- package/dist-esm/samples-dev/resourceGuardsGetDefaultBackupSecurityPinRequestsObjectSample.js +1 -1
- package/dist-esm/samples-dev/resourceGuardsGetDefaultDeleteProtectedItemRequestsObjectSample.js +1 -1
- package/dist-esm/samples-dev/resourceGuardsGetDefaultDeleteResourceGuardProxyRequestsObjectSample.js +1 -1
- package/dist-esm/samples-dev/resourceGuardsGetDefaultDisableSoftDeleteRequestsObjectSample.js +1 -1
- package/dist-esm/samples-dev/resourceGuardsGetDefaultUpdateProtectedItemRequestsObjectSample.js +1 -1
- package/dist-esm/samples-dev/resourceGuardsGetDefaultUpdateProtectionPolicyRequestsObjectSample.js +1 -1
- package/dist-esm/samples-dev/resourceGuardsGetDeleteProtectedItemRequestsObjectsSample.js +1 -1
- package/dist-esm/samples-dev/resourceGuardsGetDeleteResourceGuardProxyRequestsObjectsSample.js +1 -1
- package/dist-esm/samples-dev/resourceGuardsGetDisableSoftDeleteRequestsObjectsSample.js +1 -1
- package/dist-esm/samples-dev/resourceGuardsGetResourcesInResourceGroupSample.js +1 -1
- package/dist-esm/samples-dev/resourceGuardsGetResourcesInSubscriptionSample.js +1 -1
- package/dist-esm/samples-dev/resourceGuardsGetSample.js +1 -1
- package/dist-esm/samples-dev/resourceGuardsGetUpdateProtectedItemRequestsObjectsSample.js +1 -1
- package/dist-esm/samples-dev/resourceGuardsGetUpdateProtectionPolicyRequestsObjectsSample.js +1 -1
- package/dist-esm/samples-dev/resourceGuardsPatchSample.js +1 -1
- package/dist-esm/samples-dev/resourceGuardsPutSample.js +1 -1
- package/dist-esm/samples-dev/restorableTimeRangesFindSample.js +1 -1
- package/dist-esm/src/dataProtectionClient.d.ts +2 -1
- package/dist-esm/src/dataProtectionClient.d.ts.map +1 -1
- package/dist-esm/src/dataProtectionClient.js +9 -11
- package/dist-esm/src/dataProtectionClient.js.map +1 -1
- package/dist-esm/src/models/index.d.ts +117 -8
- package/dist-esm/src/models/index.d.ts.map +1 -1
- package/dist-esm/src/models/index.js +22 -0
- package/dist-esm/src/models/index.js.map +1 -1
- package/dist-esm/src/models/mappers.d.ts +6 -0
- package/dist-esm/src/models/mappers.d.ts.map +1 -1
- package/dist-esm/src/models/mappers.js +178 -0
- package/dist-esm/src/models/mappers.js.map +1 -1
- package/dist-esm/src/models/parameters.js +1 -1
- package/package.json +2 -2
- package/review/arm-dataprotection.api.md +64 -1
- package/src/dataProtectionClient.ts +19 -5
- package/src/models/index.ts +124 -8
- package/src/models/mappers.ts +185 -0
- package/src/models/parameters.ts +1 -1
- package/types/arm-dataprotection.d.ts +128 -9
- package/types/tsdoc-metadata.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,15 +1,31 @@
|
|
|
1
1
|
# Release History
|
|
2
|
+
|
|
3
|
+
## 1.2.0 (2023-07-10)
|
|
4
|
+
|
|
5
|
+
**Features**
|
|
2
6
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
7
|
+
- Added Interface BaseResourceProperties
|
|
8
|
+
- Added Interface CrossRegionRestoreSettings
|
|
9
|
+
- Added Interface IdentityDetails
|
|
10
|
+
- Added Interface NamespacedNameResource
|
|
11
|
+
- Added Interface UserAssignedIdentity
|
|
12
|
+
- Added Type Alias CrossRegionRestoreState
|
|
13
|
+
- Added Type Alias SecureScoreLevel
|
|
14
|
+
- Interface AzureBackupJob has a new optional parameter rehydrationPriority
|
|
15
|
+
- Interface AzureBackupRestoreRequest has a new optional parameter identityDetails
|
|
16
|
+
- Interface BackupInstance has a new optional parameter identityDetails
|
|
17
|
+
- Interface BackupVault has a new optional parameter secureScore
|
|
18
|
+
- Interface Datasource has a new optional parameter resourceProperties
|
|
19
|
+
- Interface DatasourceSet has a new optional parameter resourceProperties
|
|
20
|
+
- Interface DppIdentityDetails has a new optional parameter userAssignedIdentities
|
|
21
|
+
- Interface FeatureSettings has a new optional parameter crossRegionRestoreSettings
|
|
22
|
+
- Interface KubernetesClusterBackupDatasourceParameters has a new optional parameter backupHookReferences
|
|
23
|
+
- Interface KubernetesClusterRestoreCriteria has a new optional parameter restoreHookReferences
|
|
24
|
+
- Added Enum KnownCrossRegionRestoreState
|
|
25
|
+
- Added Enum KnownSecureScoreLevel
|
|
26
|
+
- Class DataProtectionClient has a new signature
|
|
27
|
+
|
|
28
|
+
|
|
13
29
|
## 1.1.0 (2023-06-12)
|
|
14
30
|
|
|
15
31
|
**Features**
|
package/dist/index.js
CHANGED
|
@@ -163,6 +163,28 @@ exports.KnownCrossSubscriptionRestoreState = void 0;
|
|
|
163
163
|
/** Enabled */
|
|
164
164
|
KnownCrossSubscriptionRestoreState["Enabled"] = "Enabled";
|
|
165
165
|
})(exports.KnownCrossSubscriptionRestoreState || (exports.KnownCrossSubscriptionRestoreState = {}));
|
|
166
|
+
/** Known values of {@link CrossRegionRestoreState} that the service accepts. */
|
|
167
|
+
exports.KnownCrossRegionRestoreState = void 0;
|
|
168
|
+
(function (KnownCrossRegionRestoreState) {
|
|
169
|
+
/** Disabled */
|
|
170
|
+
KnownCrossRegionRestoreState["Disabled"] = "Disabled";
|
|
171
|
+
/** Enabled */
|
|
172
|
+
KnownCrossRegionRestoreState["Enabled"] = "Enabled";
|
|
173
|
+
})(exports.KnownCrossRegionRestoreState || (exports.KnownCrossRegionRestoreState = {}));
|
|
174
|
+
/** Known values of {@link SecureScoreLevel} that the service accepts. */
|
|
175
|
+
exports.KnownSecureScoreLevel = void 0;
|
|
176
|
+
(function (KnownSecureScoreLevel) {
|
|
177
|
+
/** None */
|
|
178
|
+
KnownSecureScoreLevel["None"] = "None";
|
|
179
|
+
/** Minimum */
|
|
180
|
+
KnownSecureScoreLevel["Minimum"] = "Minimum";
|
|
181
|
+
/** Adequate */
|
|
182
|
+
KnownSecureScoreLevel["Adequate"] = "Adequate";
|
|
183
|
+
/** Maximum */
|
|
184
|
+
KnownSecureScoreLevel["Maximum"] = "Maximum";
|
|
185
|
+
/** NotSupported */
|
|
186
|
+
KnownSecureScoreLevel["NotSupported"] = "NotSupported";
|
|
187
|
+
})(exports.KnownSecureScoreLevel || (exports.KnownSecureScoreLevel = {}));
|
|
166
188
|
/** Known values of {@link CreatedByType} that the service accepts. */
|
|
167
189
|
exports.KnownCreatedByType = void 0;
|
|
168
190
|
(function (KnownCreatedByType) {
|
|
@@ -503,6 +525,13 @@ const BackupVault = {
|
|
|
503
525
|
name: "Composite",
|
|
504
526
|
className: "FeatureSettings"
|
|
505
527
|
}
|
|
528
|
+
},
|
|
529
|
+
secureScore: {
|
|
530
|
+
serializedName: "secureScore",
|
|
531
|
+
readOnly: true,
|
|
532
|
+
type: {
|
|
533
|
+
name: "String"
|
|
534
|
+
}
|
|
506
535
|
}
|
|
507
536
|
}
|
|
508
537
|
}
|
|
@@ -661,6 +690,13 @@ const FeatureSettings = {
|
|
|
661
690
|
name: "Composite",
|
|
662
691
|
className: "CrossSubscriptionRestoreSettings"
|
|
663
692
|
}
|
|
693
|
+
},
|
|
694
|
+
crossRegionRestoreSettings: {
|
|
695
|
+
serializedName: "crossRegionRestoreSettings",
|
|
696
|
+
type: {
|
|
697
|
+
name: "Composite",
|
|
698
|
+
className: "CrossRegionRestoreSettings"
|
|
699
|
+
}
|
|
664
700
|
}
|
|
665
701
|
}
|
|
666
702
|
}
|
|
@@ -679,6 +715,20 @@ const CrossSubscriptionRestoreSettings = {
|
|
|
679
715
|
}
|
|
680
716
|
}
|
|
681
717
|
};
|
|
718
|
+
const CrossRegionRestoreSettings = {
|
|
719
|
+
type: {
|
|
720
|
+
name: "Composite",
|
|
721
|
+
className: "CrossRegionRestoreSettings",
|
|
722
|
+
modelProperties: {
|
|
723
|
+
state: {
|
|
724
|
+
serializedName: "state",
|
|
725
|
+
type: {
|
|
726
|
+
name: "String"
|
|
727
|
+
}
|
|
728
|
+
}
|
|
729
|
+
}
|
|
730
|
+
}
|
|
731
|
+
};
|
|
682
732
|
const DppIdentityDetails = {
|
|
683
733
|
type: {
|
|
684
734
|
name: "Composite",
|
|
@@ -703,6 +753,37 @@ const DppIdentityDetails = {
|
|
|
703
753
|
type: {
|
|
704
754
|
name: "String"
|
|
705
755
|
}
|
|
756
|
+
},
|
|
757
|
+
userAssignedIdentities: {
|
|
758
|
+
serializedName: "userAssignedIdentities",
|
|
759
|
+
type: {
|
|
760
|
+
name: "Dictionary",
|
|
761
|
+
value: {
|
|
762
|
+
type: { name: "Composite", className: "UserAssignedIdentity" }
|
|
763
|
+
}
|
|
764
|
+
}
|
|
765
|
+
}
|
|
766
|
+
}
|
|
767
|
+
}
|
|
768
|
+
};
|
|
769
|
+
const UserAssignedIdentity = {
|
|
770
|
+
type: {
|
|
771
|
+
name: "Composite",
|
|
772
|
+
className: "UserAssignedIdentity",
|
|
773
|
+
modelProperties: {
|
|
774
|
+
principalId: {
|
|
775
|
+
serializedName: "principalId",
|
|
776
|
+
readOnly: true,
|
|
777
|
+
type: {
|
|
778
|
+
name: "Uuid"
|
|
779
|
+
}
|
|
780
|
+
},
|
|
781
|
+
clientId: {
|
|
782
|
+
serializedName: "clientId",
|
|
783
|
+
readOnly: true,
|
|
784
|
+
type: {
|
|
785
|
+
name: "Uuid"
|
|
786
|
+
}
|
|
706
787
|
}
|
|
707
788
|
}
|
|
708
789
|
}
|
|
@@ -1429,6 +1510,13 @@ const BackupInstance = {
|
|
|
1429
1510
|
name: "String"
|
|
1430
1511
|
}
|
|
1431
1512
|
},
|
|
1513
|
+
identityDetails: {
|
|
1514
|
+
serializedName: "identityDetails",
|
|
1515
|
+
type: {
|
|
1516
|
+
name: "Composite",
|
|
1517
|
+
className: "IdentityDetails"
|
|
1518
|
+
}
|
|
1519
|
+
},
|
|
1432
1520
|
objectType: {
|
|
1433
1521
|
serializedName: "objectType",
|
|
1434
1522
|
required: true,
|
|
@@ -1486,6 +1574,34 @@ const Datasource = {
|
|
|
1486
1574
|
type: {
|
|
1487
1575
|
name: "String"
|
|
1488
1576
|
}
|
|
1577
|
+
},
|
|
1578
|
+
resourceProperties: {
|
|
1579
|
+
serializedName: "resourceProperties",
|
|
1580
|
+
type: {
|
|
1581
|
+
name: "Composite",
|
|
1582
|
+
className: "BaseResourceProperties"
|
|
1583
|
+
}
|
|
1584
|
+
}
|
|
1585
|
+
}
|
|
1586
|
+
}
|
|
1587
|
+
};
|
|
1588
|
+
const BaseResourceProperties = {
|
|
1589
|
+
serializedName: "BaseResourceProperties",
|
|
1590
|
+
type: {
|
|
1591
|
+
name: "Composite",
|
|
1592
|
+
className: "BaseResourceProperties",
|
|
1593
|
+
uberParent: "BaseResourceProperties",
|
|
1594
|
+
polymorphicDiscriminator: {
|
|
1595
|
+
serializedName: "objectType",
|
|
1596
|
+
clientName: "objectType"
|
|
1597
|
+
},
|
|
1598
|
+
modelProperties: {
|
|
1599
|
+
objectType: {
|
|
1600
|
+
serializedName: "objectType",
|
|
1601
|
+
required: true,
|
|
1602
|
+
type: {
|
|
1603
|
+
name: "String"
|
|
1604
|
+
}
|
|
1489
1605
|
}
|
|
1490
1606
|
}
|
|
1491
1607
|
}
|
|
@@ -1537,6 +1653,13 @@ const DatasourceSet = {
|
|
|
1537
1653
|
type: {
|
|
1538
1654
|
name: "String"
|
|
1539
1655
|
}
|
|
1656
|
+
},
|
|
1657
|
+
resourceProperties: {
|
|
1658
|
+
serializedName: "resourceProperties",
|
|
1659
|
+
type: {
|
|
1660
|
+
name: "Composite",
|
|
1661
|
+
className: "BaseResourceProperties"
|
|
1662
|
+
}
|
|
1540
1663
|
}
|
|
1541
1664
|
}
|
|
1542
1665
|
}
|
|
@@ -1793,6 +1916,26 @@ const AuthCredentials = {
|
|
|
1793
1916
|
}
|
|
1794
1917
|
}
|
|
1795
1918
|
};
|
|
1919
|
+
const IdentityDetails = {
|
|
1920
|
+
type: {
|
|
1921
|
+
name: "Composite",
|
|
1922
|
+
className: "IdentityDetails",
|
|
1923
|
+
modelProperties: {
|
|
1924
|
+
useSystemAssignedIdentity: {
|
|
1925
|
+
serializedName: "useSystemAssignedIdentity",
|
|
1926
|
+
type: {
|
|
1927
|
+
name: "Boolean"
|
|
1928
|
+
}
|
|
1929
|
+
},
|
|
1930
|
+
userAssignedIdentityArmUrl: {
|
|
1931
|
+
serializedName: "userAssignedIdentityArmUrl",
|
|
1932
|
+
type: {
|
|
1933
|
+
name: "String"
|
|
1934
|
+
}
|
|
1935
|
+
}
|
|
1936
|
+
}
|
|
1937
|
+
}
|
|
1938
|
+
};
|
|
1796
1939
|
const DppProxyResource = {
|
|
1797
1940
|
type: {
|
|
1798
1941
|
name: "Composite",
|
|
@@ -1986,6 +2129,13 @@ const AzureBackupRestoreRequest = {
|
|
|
1986
2129
|
type: {
|
|
1987
2130
|
name: "String"
|
|
1988
2131
|
}
|
|
2132
|
+
},
|
|
2133
|
+
identityDetails: {
|
|
2134
|
+
serializedName: "identityDetails",
|
|
2135
|
+
type: {
|
|
2136
|
+
name: "Composite",
|
|
2137
|
+
className: "IdentityDetails"
|
|
2138
|
+
}
|
|
1989
2139
|
}
|
|
1990
2140
|
}
|
|
1991
2141
|
}
|
|
@@ -2194,6 +2344,13 @@ const AzureBackupJob = {
|
|
|
2194
2344
|
name: "String"
|
|
2195
2345
|
}
|
|
2196
2346
|
},
|
|
2347
|
+
rehydrationPriority: {
|
|
2348
|
+
serializedName: "rehydrationPriority",
|
|
2349
|
+
readOnly: true,
|
|
2350
|
+
type: {
|
|
2351
|
+
name: "String"
|
|
2352
|
+
}
|
|
2353
|
+
},
|
|
2197
2354
|
restoreType: {
|
|
2198
2355
|
serializedName: "restoreType",
|
|
2199
2356
|
readOnly: true,
|
|
@@ -3138,6 +3295,26 @@ const BasePolicyRule = {
|
|
|
3138
3295
|
}
|
|
3139
3296
|
}
|
|
3140
3297
|
};
|
|
3298
|
+
const NamespacedNameResource = {
|
|
3299
|
+
type: {
|
|
3300
|
+
name: "Composite",
|
|
3301
|
+
className: "NamespacedNameResource",
|
|
3302
|
+
modelProperties: {
|
|
3303
|
+
name: {
|
|
3304
|
+
serializedName: "name",
|
|
3305
|
+
type: {
|
|
3306
|
+
name: "String"
|
|
3307
|
+
}
|
|
3308
|
+
},
|
|
3309
|
+
namespace: {
|
|
3310
|
+
serializedName: "namespace",
|
|
3311
|
+
type: {
|
|
3312
|
+
name: "String"
|
|
3313
|
+
}
|
|
3314
|
+
}
|
|
3315
|
+
}
|
|
3316
|
+
}
|
|
3317
|
+
};
|
|
3141
3318
|
const SourceLifeCycle = {
|
|
3142
3319
|
type: {
|
|
3143
3320
|
name: "Composite",
|
|
@@ -3846,6 +4023,17 @@ const KubernetesClusterBackupDatasourceParameters = {
|
|
|
3846
4023
|
}
|
|
3847
4024
|
}
|
|
3848
4025
|
}
|
|
4026
|
+
}, backupHookReferences: {
|
|
4027
|
+
serializedName: "backupHookReferences",
|
|
4028
|
+
type: {
|
|
4029
|
+
name: "Sequence",
|
|
4030
|
+
element: {
|
|
4031
|
+
type: {
|
|
4032
|
+
name: "Composite",
|
|
4033
|
+
className: "NamespacedNameResource"
|
|
4034
|
+
}
|
|
4035
|
+
}
|
|
4036
|
+
}
|
|
3849
4037
|
} })
|
|
3850
4038
|
}
|
|
3851
4039
|
};
|
|
@@ -4520,6 +4708,17 @@ const KubernetesClusterRestoreCriteria = {
|
|
|
4520
4708
|
name: "Dictionary",
|
|
4521
4709
|
value: { type: { name: "String" } }
|
|
4522
4710
|
}
|
|
4711
|
+
}, restoreHookReferences: {
|
|
4712
|
+
serializedName: "restoreHookReferences",
|
|
4713
|
+
type: {
|
|
4714
|
+
name: "Sequence",
|
|
4715
|
+
element: {
|
|
4716
|
+
type: {
|
|
4717
|
+
name: "Composite",
|
|
4718
|
+
className: "NamespacedNameResource"
|
|
4719
|
+
}
|
|
4720
|
+
}
|
|
4721
|
+
}
|
|
4523
4722
|
} })
|
|
4524
4723
|
}
|
|
4525
4724
|
};
|
|
@@ -4941,6 +5140,7 @@ let discriminators = {
|
|
|
4941
5140
|
FeatureValidationRequestBase: FeatureValidationRequestBase,
|
|
4942
5141
|
FeatureValidationResponseBase: FeatureValidationResponseBase,
|
|
4943
5142
|
BaseBackupPolicy: BaseBackupPolicy,
|
|
5143
|
+
"BaseResourceProperties.BaseResourceProperties": BaseResourceProperties,
|
|
4944
5144
|
DataStoreParameters: DataStoreParameters,
|
|
4945
5145
|
BackupDatasourceParameters: BackupDatasourceParameters,
|
|
4946
5146
|
AuthCredentials: AuthCredentials,
|
|
@@ -4998,7 +5198,9 @@ var Mappers = /*#__PURE__*/Object.freeze({
|
|
|
4998
5198
|
StorageSetting: StorageSetting,
|
|
4999
5199
|
FeatureSettings: FeatureSettings,
|
|
5000
5200
|
CrossSubscriptionRestoreSettings: CrossSubscriptionRestoreSettings,
|
|
5201
|
+
CrossRegionRestoreSettings: CrossRegionRestoreSettings,
|
|
5001
5202
|
DppIdentityDetails: DppIdentityDetails,
|
|
5203
|
+
UserAssignedIdentity: UserAssignedIdentity,
|
|
5002
5204
|
DppBaseTrackedResource: DppBaseTrackedResource,
|
|
5003
5205
|
SystemData: SystemData,
|
|
5004
5206
|
DppResourceList: DppResourceList,
|
|
@@ -5023,6 +5225,7 @@ var Mappers = /*#__PURE__*/Object.freeze({
|
|
|
5023
5225
|
DppResource: DppResource,
|
|
5024
5226
|
BackupInstance: BackupInstance,
|
|
5025
5227
|
Datasource: Datasource,
|
|
5228
|
+
BaseResourceProperties: BaseResourceProperties,
|
|
5026
5229
|
DatasourceSet: DatasourceSet,
|
|
5027
5230
|
PolicyInfo: PolicyInfo,
|
|
5028
5231
|
PolicyParameters: PolicyParameters,
|
|
@@ -5032,6 +5235,7 @@ var Mappers = /*#__PURE__*/Object.freeze({
|
|
|
5032
5235
|
UserFacingError: UserFacingError,
|
|
5033
5236
|
InnerError: InnerError,
|
|
5034
5237
|
AuthCredentials: AuthCredentials,
|
|
5238
|
+
IdentityDetails: IdentityDetails,
|
|
5035
5239
|
DppProxyResource: DppProxyResource,
|
|
5036
5240
|
TriggerBackupRequest: TriggerBackupRequest,
|
|
5037
5241
|
AdHocBackupRuleOptions: AdHocBackupRuleOptions,
|
|
@@ -5072,6 +5276,7 @@ var Mappers = /*#__PURE__*/Object.freeze({
|
|
|
5072
5276
|
BackupParameters: BackupParameters,
|
|
5073
5277
|
DataStoreInfoBase: DataStoreInfoBase,
|
|
5074
5278
|
BasePolicyRule: BasePolicyRule,
|
|
5279
|
+
NamespacedNameResource: NamespacedNameResource,
|
|
5075
5280
|
SourceLifeCycle: SourceLifeCycle,
|
|
5076
5281
|
TargetCopySetting: TargetCopySetting,
|
|
5077
5282
|
CopyOption: CopyOption,
|
|
@@ -5183,7 +5388,7 @@ const $host = {
|
|
|
5183
5388
|
const apiVersion = {
|
|
5184
5389
|
parameterPath: "apiVersion",
|
|
5185
5390
|
mapper: {
|
|
5186
|
-
defaultValue: "2023-
|
|
5391
|
+
defaultValue: "2023-05-01",
|
|
5187
5392
|
isConstant: true,
|
|
5188
5393
|
serializedName: "api-version",
|
|
5189
5394
|
type: {
|
|
@@ -10558,19 +10763,17 @@ const listNextOperationSpec = {
|
|
|
10558
10763
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
10559
10764
|
*/
|
|
10560
10765
|
class DataProtectionClient extends coreClient__namespace.ServiceClient {
|
|
10561
|
-
|
|
10562
|
-
* Initializes a new instance of the DataProtectionClient class.
|
|
10563
|
-
* @param credentials Subscription credentials which uniquely identify client subscription.
|
|
10564
|
-
* @param subscriptionId The ID of the target subscription. The value must be an UUID.
|
|
10565
|
-
* @param options The parameter options
|
|
10566
|
-
*/
|
|
10567
|
-
constructor(credentials, subscriptionId, options) {
|
|
10766
|
+
constructor(credentials, subscriptionIdOrOptions, options) {
|
|
10568
10767
|
var _a, _b, _c;
|
|
10569
10768
|
if (credentials === undefined) {
|
|
10570
10769
|
throw new Error("'credentials' cannot be null");
|
|
10571
10770
|
}
|
|
10572
|
-
|
|
10573
|
-
|
|
10771
|
+
let subscriptionId;
|
|
10772
|
+
if (typeof subscriptionIdOrOptions === "string") {
|
|
10773
|
+
subscriptionId = subscriptionIdOrOptions;
|
|
10774
|
+
}
|
|
10775
|
+
else if (typeof subscriptionIdOrOptions === "object") {
|
|
10776
|
+
options = subscriptionIdOrOptions;
|
|
10574
10777
|
}
|
|
10575
10778
|
// Initializing default values for options
|
|
10576
10779
|
if (!options) {
|
|
@@ -10580,7 +10783,7 @@ class DataProtectionClient extends coreClient__namespace.ServiceClient {
|
|
|
10580
10783
|
requestContentType: "application/json; charset=utf-8",
|
|
10581
10784
|
credential: credentials
|
|
10582
10785
|
};
|
|
10583
|
-
const packageDetails = `azsdk-js-arm-dataprotection/1.
|
|
10786
|
+
const packageDetails = `azsdk-js-arm-dataprotection/1.2.0`;
|
|
10584
10787
|
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
10585
10788
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
10586
10789
|
: `${packageDetails}`;
|
|
@@ -10613,7 +10816,7 @@ class DataProtectionClient extends coreClient__namespace.ServiceClient {
|
|
|
10613
10816
|
this.subscriptionId = subscriptionId;
|
|
10614
10817
|
// Assigning values to Constant parameters
|
|
10615
10818
|
this.$host = options.$host || "https://management.azure.com";
|
|
10616
|
-
this.apiVersion = options.apiVersion || "2023-
|
|
10819
|
+
this.apiVersion = options.apiVersion || "2023-05-01";
|
|
10617
10820
|
this.backupVaults = new BackupVaultsImpl(this);
|
|
10618
10821
|
this.operationResult = new OperationResultImpl(this);
|
|
10619
10822
|
this.operationStatus = new OperationStatusImpl(this);
|