@azure/arm-recoveryservicesbackup 10.0.1-alpha.20230320.1 → 10.1.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 +17 -10
- package/dist/index.js +209 -78
- 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/backupEnginesGetSample.js +1 -1
- package/dist-esm/samples-dev/backupEnginesListSample.js +1 -1
- package/dist-esm/samples-dev/backupJobsListSample.js +3 -3
- package/dist-esm/samples-dev/backupOperationResultsGetSample.js +1 -1
- package/dist-esm/samples-dev/backupOperationStatusesGetSample.js +1 -1
- package/dist-esm/samples-dev/backupPoliciesListSample.js +3 -3
- package/dist-esm/samples-dev/backupProtectableItemsListSample.js +1 -1
- package/dist-esm/samples-dev/backupProtectedItemsListSample.js +1 -1
- package/dist-esm/samples-dev/backupProtectionContainersListSample.js +1 -1
- package/dist-esm/samples-dev/backupProtectionIntentListSample.js +1 -1
- package/dist-esm/samples-dev/backupResourceEncryptionConfigsGetSample.js +1 -1
- package/dist-esm/samples-dev/backupResourceEncryptionConfigsUpdateSample.js +1 -1
- package/dist-esm/samples-dev/backupResourceStorageConfigsNonCrrGetSample.js +1 -1
- package/dist-esm/samples-dev/backupResourceStorageConfigsNonCrrPatchSample.js +1 -1
- package/dist-esm/samples-dev/backupResourceStorageConfigsNonCrrUpdateSample.js +1 -1
- package/dist-esm/samples-dev/backupResourceVaultConfigsGetSample.js +1 -1
- package/dist-esm/samples-dev/backupResourceVaultConfigsPutSample.js +1 -1
- package/dist-esm/samples-dev/backupResourceVaultConfigsUpdateSample.js +1 -1
- package/dist-esm/samples-dev/backupStatusGetSample.js +1 -1
- package/dist-esm/samples-dev/backupUsageSummariesListSample.js +2 -2
- package/dist-esm/samples-dev/backupWorkloadItemsListSample.js +1 -1
- package/dist-esm/samples-dev/backupsTriggerSample.js +1 -1
- package/dist-esm/samples-dev/bmsPrepareDataMoveOperationResultGetSample.js +1 -1
- package/dist-esm/samples-dev/bmsPrepareDataMoveSample.js +1 -1
- package/dist-esm/samples-dev/bmsTriggerDataMoveSample.js +1 -1
- package/dist-esm/samples-dev/deletedProtectionContainersListSample.js +1 -1
- package/dist-esm/samples-dev/exportJobsOperationResultsGetSample.js +1 -1
- package/dist-esm/samples-dev/featureSupportValidateSample.js +1 -1
- package/dist-esm/samples-dev/getOperationStatusSample.js +1 -1
- package/dist-esm/samples-dev/itemLevelRecoveryConnectionsProvisionSample.js +1 -1
- package/dist-esm/samples-dev/itemLevelRecoveryConnectionsRevokeSample.js +1 -1
- package/dist-esm/samples-dev/jobCancellationsTriggerSample.js +1 -1
- package/dist-esm/samples-dev/jobDetailsGetSample.js +1 -1
- package/dist-esm/samples-dev/jobOperationResultsGetSample.js +1 -1
- package/dist-esm/samples-dev/jobsExportSample.js +1 -1
- package/dist-esm/samples-dev/moveRecoveryPointSample.js +1 -1
- package/dist-esm/samples-dev/operationValidateSample.js +2 -2
- package/dist-esm/samples-dev/operationsListSample.js +1 -1
- package/dist-esm/samples-dev/privateEndpointConnectionDeleteSample.js +1 -1
- package/dist-esm/samples-dev/privateEndpointConnectionGetSample.js +1 -1
- package/dist-esm/samples-dev/privateEndpointConnectionPutSample.js +1 -1
- package/dist-esm/samples-dev/privateEndpointGetOperationStatusSample.js +1 -1
- package/dist-esm/samples-dev/protectableContainersListSample.js +1 -1
- package/dist-esm/samples-dev/protectedItemOperationResultsGetSample.js +1 -1
- package/dist-esm/samples-dev/protectedItemOperationStatusesGetSample.js +1 -1
- package/dist-esm/samples-dev/protectedItemsCreateOrUpdateSample.js +2 -2
- package/dist-esm/samples-dev/protectedItemsDeleteSample.js +1 -1
- package/dist-esm/samples-dev/protectedItemsGetSample.js +2 -2
- package/dist-esm/samples-dev/protectionContainerOperationResultsGetSample.js +1 -1
- package/dist-esm/samples-dev/protectionContainerRefreshOperationResultsGetSample.js +1 -1
- package/dist-esm/samples-dev/protectionContainersGetSample.js +1 -1
- package/dist-esm/samples-dev/protectionContainersInquireSample.js +1 -1
- package/dist-esm/samples-dev/protectionContainersRefreshSample.js +1 -1
- package/dist-esm/samples-dev/protectionContainersRegisterSample.js +1 -1
- package/dist-esm/samples-dev/protectionContainersUnregisterSample.js +1 -1
- package/dist-esm/samples-dev/protectionIntentCreateOrUpdateSample.js +1 -1
- package/dist-esm/samples-dev/protectionIntentDeleteSample.js +1 -1
- package/dist-esm/samples-dev/protectionIntentGetSample.js +1 -1
- package/dist-esm/samples-dev/protectionIntentValidateSample.js +1 -1
- package/dist-esm/samples-dev/protectionPoliciesCreateOrUpdateSample.js +7 -7
- package/dist-esm/samples-dev/protectionPoliciesDeleteSample.js +1 -1
- package/dist-esm/samples-dev/protectionPoliciesGetSample.js +2 -2
- package/dist-esm/samples-dev/protectionPolicyOperationResultsGetSample.js +1 -1
- package/dist-esm/samples-dev/protectionPolicyOperationStatusesGetSample.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/recoveryPointsRecommendedForMoveListSample.js +1 -1
- package/dist-esm/samples-dev/resourceGuardProxiesGetSample.js +1 -1
- package/dist-esm/samples-dev/resourceGuardProxyDeleteSample.js +1 -1
- package/dist-esm/samples-dev/resourceGuardProxyGetSample.js +1 -1
- package/dist-esm/samples-dev/resourceGuardProxyPutSample.js +1 -1
- package/dist-esm/samples-dev/resourceGuardProxyUnlockDeleteSample.js +1 -1
- package/dist-esm/samples-dev/restoresTriggerSample.js +11 -7
- package/dist-esm/samples-dev/restoresTriggerSample.js.map +1 -1
- package/dist-esm/samples-dev/securityPiNsGetSample.js +1 -1
- package/dist-esm/samples-dev/validateOperationResultsGetSample.js +1 -1
- package/dist-esm/samples-dev/validateOperationStatusesGetSample.js +1 -1
- package/dist-esm/samples-dev/validateOperationTriggerSample.js +1 -1
- package/dist-esm/src/lroImpl.d.ts +6 -11
- package/dist-esm/src/lroImpl.d.ts.map +1 -1
- package/dist-esm/src/lroImpl.js +12 -20
- package/dist-esm/src/lroImpl.js.map +1 -1
- package/dist-esm/src/models/index.d.ts +38 -0
- package/dist-esm/src/models/index.d.ts.map +1 -1
- package/dist-esm/src/models/index.js.map +1 -1
- package/dist-esm/src/models/mappers.d.ts +3 -0
- package/dist-esm/src/models/mappers.d.ts.map +1 -1
- package/dist-esm/src/models/mappers.js +99 -0
- package/dist-esm/src/models/mappers.js.map +1 -1
- package/dist-esm/src/models/parameters.js +1 -1
- package/dist-esm/src/operations/privateEndpointConnectionOperations.d.ts +3 -3
- package/dist-esm/src/operations/privateEndpointConnectionOperations.d.ts.map +1 -1
- package/dist-esm/src/operations/privateEndpointConnectionOperations.js +29 -16
- package/dist-esm/src/operations/privateEndpointConnectionOperations.js.map +1 -1
- package/dist-esm/src/operations/protectionPolicies.d.ts +2 -2
- package/dist-esm/src/operations/protectionPolicies.d.ts.map +1 -1
- package/dist-esm/src/operations/protectionPolicies.js +10 -6
- package/dist-esm/src/operations/protectionPolicies.js.map +1 -1
- package/dist-esm/src/operations/restores.d.ts +2 -2
- package/dist-esm/src/operations/restores.d.ts.map +1 -1
- package/dist-esm/src/operations/restores.js +19 -15
- package/dist-esm/src/operations/restores.js.map +1 -1
- package/dist-esm/src/operations/validateOperation.d.ts +2 -2
- package/dist-esm/src/operations/validateOperation.d.ts.map +1 -1
- package/dist-esm/src/operations/validateOperation.js +10 -6
- package/dist-esm/src/operations/validateOperation.js.map +1 -1
- package/dist-esm/src/operationsInterfaces/privateEndpointConnectionOperations.d.ts +3 -3
- package/dist-esm/src/operationsInterfaces/privateEndpointConnectionOperations.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/protectionPolicies.d.ts +2 -2
- package/dist-esm/src/operationsInterfaces/protectionPolicies.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/restores.d.ts +2 -2
- package/dist-esm/src/operationsInterfaces/restores.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/validateOperation.d.ts +2 -2
- package/dist-esm/src/operationsInterfaces/validateOperation.d.ts.map +1 -1
- package/dist-esm/src/recoveryServicesBackupClient.d.ts +4 -4
- package/dist-esm/src/recoveryServicesBackupClient.d.ts.map +1 -1
- package/dist-esm/src/recoveryServicesBackupClient.js +37 -25
- package/dist-esm/src/recoveryServicesBackupClient.js.map +1 -1
- package/dist-esm/test/recoveryservicesbackup_operations_test.spec.d.ts +4 -0
- package/dist-esm/test/recoveryservicesbackup_operations_test.spec.d.ts.map +1 -0
- package/dist-esm/test/recoveryservicesbackup_operations_test.spec.js +142 -0
- package/dist-esm/test/recoveryservicesbackup_operations_test.spec.js.map +1 -0
- package/package.json +6 -5
- package/review/arm-recoveryservicesbackup.api.md +37 -10
- package/src/lroImpl.ts +31 -23
- package/src/models/index.ts +44 -0
- package/src/models/mappers.ts +107 -0
- package/src/models/parameters.ts +1 -1
- package/src/operations/privateEndpointConnectionOperations.ts +33 -21
- package/src/operations/protectionPolicies.ts +15 -11
- package/src/operations/restores.ts +15 -11
- package/src/operations/validateOperation.ts +15 -11
- package/src/operationsInterfaces/privateEndpointConnectionOperations.ts +4 -4
- package/src/operationsInterfaces/protectionPolicies.ts +2 -2
- package/src/operationsInterfaces/restores.ts +2 -2
- package/src/operationsInterfaces/validateOperation.ts +2 -2
- package/src/recoveryServicesBackupClient.ts +35 -31
- package/types/arm-recoveryservicesbackup.d.ts +52 -10
- package/dist-esm/test/sampleTest.d.ts +0 -2
- package/dist-esm/test/sampleTest.d.ts.map +0 -1
- package/dist-esm/test/sampleTest.js +0 -38
- package/dist-esm/test/sampleTest.js.map +0 -1
|
@@ -14,8 +14,12 @@ import {
|
|
|
14
14
|
SendRequest
|
|
15
15
|
} from "@azure/core-rest-pipeline";
|
|
16
16
|
import * as coreAuth from "@azure/core-auth";
|
|
17
|
-
import {
|
|
18
|
-
|
|
17
|
+
import {
|
|
18
|
+
SimplePollerLike,
|
|
19
|
+
OperationState,
|
|
20
|
+
createHttpPoller
|
|
21
|
+
} from "@azure/core-lro";
|
|
22
|
+
import { createLroSpec } from "./lroImpl";
|
|
19
23
|
import {
|
|
20
24
|
BackupResourceStorageConfigsNonCRRImpl,
|
|
21
25
|
ProtectionIntentOperationsImpl,
|
|
@@ -164,7 +168,7 @@ export class RecoveryServicesBackupClient extends coreClient.ServiceClient {
|
|
|
164
168
|
credential: credentials
|
|
165
169
|
};
|
|
166
170
|
|
|
167
|
-
const packageDetails = `azsdk-js-arm-recoveryservicesbackup/10.0
|
|
171
|
+
const packageDetails = `azsdk-js-arm-recoveryservicesbackup/10.1.0`;
|
|
168
172
|
const userAgentPrefix =
|
|
169
173
|
options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
170
174
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
@@ -217,7 +221,7 @@ export class RecoveryServicesBackupClient extends coreClient.ServiceClient {
|
|
|
217
221
|
|
|
218
222
|
// Assigning values to Constant parameters
|
|
219
223
|
this.$host = options.$host || "https://management.azure.com";
|
|
220
|
-
this.apiVersion = options.apiVersion || "2023-
|
|
224
|
+
this.apiVersion = options.apiVersion || "2023-02-01";
|
|
221
225
|
this.backupResourceStorageConfigsNonCRR = new BackupResourceStorageConfigsNonCRRImpl(
|
|
222
226
|
this
|
|
223
227
|
);
|
|
@@ -357,14 +361,14 @@ export class RecoveryServicesBackupClient extends coreClient.ServiceClient {
|
|
|
357
361
|
resourceGroupName: string,
|
|
358
362
|
parameters: PrepareDataMoveRequest,
|
|
359
363
|
options?: BMSPrepareDataMoveOptionalParams
|
|
360
|
-
): Promise<
|
|
364
|
+
): Promise<SimplePollerLike<OperationState<void>, void>> {
|
|
361
365
|
const directSendOperation = async (
|
|
362
366
|
args: coreClient.OperationArguments,
|
|
363
367
|
spec: coreClient.OperationSpec
|
|
364
368
|
): Promise<void> => {
|
|
365
369
|
return this.sendOperationRequest(args, spec);
|
|
366
370
|
};
|
|
367
|
-
const
|
|
371
|
+
const sendOperationFn = async (
|
|
368
372
|
args: coreClient.OperationArguments,
|
|
369
373
|
spec: coreClient.OperationSpec
|
|
370
374
|
) => {
|
|
@@ -397,13 +401,13 @@ export class RecoveryServicesBackupClient extends coreClient.ServiceClient {
|
|
|
397
401
|
};
|
|
398
402
|
};
|
|
399
403
|
|
|
400
|
-
const lro =
|
|
401
|
-
|
|
402
|
-
{ vaultName, resourceGroupName, parameters, options },
|
|
403
|
-
bMSPrepareDataMoveOperationSpec
|
|
404
|
-
);
|
|
405
|
-
const poller =
|
|
406
|
-
|
|
404
|
+
const lro = createLroSpec({
|
|
405
|
+
sendOperationFn,
|
|
406
|
+
args: { vaultName, resourceGroupName, parameters, options },
|
|
407
|
+
spec: bMSPrepareDataMoveOperationSpec
|
|
408
|
+
});
|
|
409
|
+
const poller = await createHttpPoller<void, OperationState<void>>(lro, {
|
|
410
|
+
restoreFrom: options?.resumeFrom,
|
|
407
411
|
intervalInMs: options?.updateIntervalInMs
|
|
408
412
|
});
|
|
409
413
|
await poller.poll();
|
|
@@ -446,14 +450,14 @@ export class RecoveryServicesBackupClient extends coreClient.ServiceClient {
|
|
|
446
450
|
resourceGroupName: string,
|
|
447
451
|
parameters: TriggerDataMoveRequest,
|
|
448
452
|
options?: BMSTriggerDataMoveOptionalParams
|
|
449
|
-
): Promise<
|
|
453
|
+
): Promise<SimplePollerLike<OperationState<void>, void>> {
|
|
450
454
|
const directSendOperation = async (
|
|
451
455
|
args: coreClient.OperationArguments,
|
|
452
456
|
spec: coreClient.OperationSpec
|
|
453
457
|
): Promise<void> => {
|
|
454
458
|
return this.sendOperationRequest(args, spec);
|
|
455
459
|
};
|
|
456
|
-
const
|
|
460
|
+
const sendOperationFn = async (
|
|
457
461
|
args: coreClient.OperationArguments,
|
|
458
462
|
spec: coreClient.OperationSpec
|
|
459
463
|
) => {
|
|
@@ -486,13 +490,13 @@ export class RecoveryServicesBackupClient extends coreClient.ServiceClient {
|
|
|
486
490
|
};
|
|
487
491
|
};
|
|
488
492
|
|
|
489
|
-
const lro =
|
|
490
|
-
|
|
491
|
-
{ vaultName, resourceGroupName, parameters, options },
|
|
492
|
-
bMSTriggerDataMoveOperationSpec
|
|
493
|
-
);
|
|
494
|
-
const poller =
|
|
495
|
-
|
|
493
|
+
const lro = createLroSpec({
|
|
494
|
+
sendOperationFn,
|
|
495
|
+
args: { vaultName, resourceGroupName, parameters, options },
|
|
496
|
+
spec: bMSTriggerDataMoveOperationSpec
|
|
497
|
+
});
|
|
498
|
+
const poller = await createHttpPoller<void, OperationState<void>>(lro, {
|
|
499
|
+
restoreFrom: options?.resumeFrom,
|
|
496
500
|
intervalInMs: options?.updateIntervalInMs
|
|
497
501
|
});
|
|
498
502
|
await poller.poll();
|
|
@@ -543,14 +547,14 @@ export class RecoveryServicesBackupClient extends coreClient.ServiceClient {
|
|
|
543
547
|
recoveryPointId: string,
|
|
544
548
|
parameters: MoveRPAcrossTiersRequest,
|
|
545
549
|
options?: MoveRecoveryPointOptionalParams
|
|
546
|
-
): Promise<
|
|
550
|
+
): Promise<SimplePollerLike<OperationState<void>, void>> {
|
|
547
551
|
const directSendOperation = async (
|
|
548
552
|
args: coreClient.OperationArguments,
|
|
549
553
|
spec: coreClient.OperationSpec
|
|
550
554
|
): Promise<void> => {
|
|
551
555
|
return this.sendOperationRequest(args, spec);
|
|
552
556
|
};
|
|
553
|
-
const
|
|
557
|
+
const sendOperationFn = async (
|
|
554
558
|
args: coreClient.OperationArguments,
|
|
555
559
|
spec: coreClient.OperationSpec
|
|
556
560
|
) => {
|
|
@@ -583,9 +587,9 @@ export class RecoveryServicesBackupClient extends coreClient.ServiceClient {
|
|
|
583
587
|
};
|
|
584
588
|
};
|
|
585
589
|
|
|
586
|
-
const lro =
|
|
587
|
-
|
|
588
|
-
{
|
|
590
|
+
const lro = createLroSpec({
|
|
591
|
+
sendOperationFn,
|
|
592
|
+
args: {
|
|
589
593
|
vaultName,
|
|
590
594
|
resourceGroupName,
|
|
591
595
|
fabricName,
|
|
@@ -595,10 +599,10 @@ export class RecoveryServicesBackupClient extends coreClient.ServiceClient {
|
|
|
595
599
|
parameters,
|
|
596
600
|
options
|
|
597
601
|
},
|
|
598
|
-
moveRecoveryPointOperationSpec
|
|
599
|
-
);
|
|
600
|
-
const poller =
|
|
601
|
-
|
|
602
|
+
spec: moveRecoveryPointOperationSpec
|
|
603
|
+
});
|
|
604
|
+
const poller = await createHttpPoller<void, OperationState<void>>(lro, {
|
|
605
|
+
restoreFrom: options?.resumeFrom,
|
|
602
606
|
intervalInMs: options?.updateIntervalInMs
|
|
603
607
|
});
|
|
604
608
|
await poller.poll();
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as coreAuth from '@azure/core-auth';
|
|
2
2
|
import * as coreClient from '@azure/core-client';
|
|
3
|
+
import { OperationState } from '@azure/core-lro';
|
|
3
4
|
import { PagedAsyncIterableIterator } from '@azure/core-paging';
|
|
4
|
-
import {
|
|
5
|
-
import { PollOperationState } from '@azure/core-lro';
|
|
5
|
+
import { SimplePollerLike } from '@azure/core-lro';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* Defines values for AcquireStorageAccountLock. \
|
|
@@ -1970,6 +1970,8 @@ export declare interface BmsrpQueryObject {
|
|
|
1970
1970
|
extendedInfo?: boolean;
|
|
1971
1971
|
/** Whether the RP can be moved to another tier */
|
|
1972
1972
|
moveReadyRPOnly?: boolean;
|
|
1973
|
+
/** Flag to indicate whether Soft Deleted RPs should be included/excluded from result. */
|
|
1974
|
+
includeSoftDeletedRP?: boolean;
|
|
1973
1975
|
}
|
|
1974
1976
|
|
|
1975
1977
|
/** Optional parameters. */
|
|
@@ -2534,6 +2536,14 @@ export declare interface ExportJobsOperationResultsGetOptionalParams extends cor
|
|
|
2534
2536
|
/** Contains response data for the get operation. */
|
|
2535
2537
|
export declare type ExportJobsOperationResultsGetResponse = OperationResultInfoBaseResource;
|
|
2536
2538
|
|
|
2539
|
+
/** The extended location of Recovery point where VM was present. */
|
|
2540
|
+
export declare interface ExtendedLocation {
|
|
2541
|
+
/** Name of the extended location. */
|
|
2542
|
+
name?: string;
|
|
2543
|
+
/** Type of the extended location. Possible values include: 'EdgeZone' */
|
|
2544
|
+
type?: string;
|
|
2545
|
+
}
|
|
2546
|
+
|
|
2537
2547
|
/** Extended Properties for Azure IaasVM Backup. */
|
|
2538
2548
|
export declare interface ExtendedProperties {
|
|
2539
2549
|
/** Extended Properties for Disk Exclusion. */
|
|
@@ -2806,8 +2816,12 @@ export declare interface IaasVMRecoveryPoint extends RecoveryPoint {
|
|
|
2806
2816
|
recoveryPointMoveReadinessInfo?: {
|
|
2807
2817
|
[propertyName: string]: RecoveryPointMoveReadinessInfo;
|
|
2808
2818
|
};
|
|
2819
|
+
/** Security Type of the Disk */
|
|
2820
|
+
securityType?: string;
|
|
2809
2821
|
/** Properties of Recovery Point */
|
|
2810
2822
|
recoveryPointProperties?: RecoveryPointProperties;
|
|
2823
|
+
/** This flag denotes if any of the disks in the VM are using Private access network setting */
|
|
2824
|
+
isPrivateAccessEnabledOnAnyDisk?: boolean;
|
|
2811
2825
|
}
|
|
2812
2826
|
|
|
2813
2827
|
/** IaaS VM workload-specific restore. */
|
|
@@ -2873,6 +2887,15 @@ export declare interface IaasVMRestoreRequest extends RestoreRequest {
|
|
|
2873
2887
|
identityInfo?: IdentityInfo;
|
|
2874
2888
|
/** IaaS VM workload specific restore details for restores using managed identity. */
|
|
2875
2889
|
identityBasedRestoreDetails?: IdentityBasedRestoreDetails;
|
|
2890
|
+
/**
|
|
2891
|
+
* Target extended location where the VM should be restored,
|
|
2892
|
+
* should be null if restore is to be done in public cloud
|
|
2893
|
+
*/
|
|
2894
|
+
extendedLocation?: ExtendedLocation;
|
|
2895
|
+
/** Stores Secured VM Details */
|
|
2896
|
+
securedVMDetails?: SecuredVMDetails;
|
|
2897
|
+
/** Specifies target network access settings for disks of VM to be restored, */
|
|
2898
|
+
targetDiskNetworkAccessSettings?: TargetDiskNetworkAccessSettings;
|
|
2876
2899
|
}
|
|
2877
2900
|
|
|
2878
2901
|
export declare type IaasVMRestoreRequestUnion = IaasVMRestoreRequest | IaasVMRestoreWithRehydrationRequest;
|
|
@@ -4764,7 +4787,7 @@ export declare interface PrivateEndpointConnectionOperations {
|
|
|
4764
4787
|
* @param parameters Request body for operation
|
|
4765
4788
|
* @param options The options parameters.
|
|
4766
4789
|
*/
|
|
4767
|
-
beginPut(vaultName: string, resourceGroupName: string, privateEndpointConnectionName: string, parameters: PrivateEndpointConnectionResource, options?: PrivateEndpointConnectionPutOptionalParams): Promise<
|
|
4790
|
+
beginPut(vaultName: string, resourceGroupName: string, privateEndpointConnectionName: string, parameters: PrivateEndpointConnectionResource, options?: PrivateEndpointConnectionPutOptionalParams): Promise<SimplePollerLike<OperationState<PrivateEndpointConnectionPutResponse>, PrivateEndpointConnectionPutResponse>>;
|
|
4768
4791
|
/**
|
|
4769
4792
|
* Approve or Reject Private Endpoint requests. This call is made by Backup Admin.
|
|
4770
4793
|
* @param vaultName The name of the recovery services vault.
|
|
@@ -4783,7 +4806,7 @@ export declare interface PrivateEndpointConnectionOperations {
|
|
|
4783
4806
|
* @param privateEndpointConnectionName The name of the private endpoint connection.
|
|
4784
4807
|
* @param options The options parameters.
|
|
4785
4808
|
*/
|
|
4786
|
-
beginDelete(vaultName: string, resourceGroupName: string, privateEndpointConnectionName: string, options?: PrivateEndpointConnectionDeleteOptionalParams): Promise<
|
|
4809
|
+
beginDelete(vaultName: string, resourceGroupName: string, privateEndpointConnectionName: string, options?: PrivateEndpointConnectionDeleteOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>;
|
|
4787
4810
|
/**
|
|
4788
4811
|
* Delete Private Endpoint requests. This call is made by Backup Admin.
|
|
4789
4812
|
* @param vaultName The name of the recovery services vault.
|
|
@@ -5466,7 +5489,7 @@ export declare interface ProtectionPolicies {
|
|
|
5466
5489
|
* @param policyName Backup policy to be deleted.
|
|
5467
5490
|
* @param options The options parameters.
|
|
5468
5491
|
*/
|
|
5469
|
-
beginDelete(vaultName: string, resourceGroupName: string, policyName: string, options?: ProtectionPoliciesDeleteOptionalParams): Promise<
|
|
5492
|
+
beginDelete(vaultName: string, resourceGroupName: string, policyName: string, options?: ProtectionPoliciesDeleteOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>;
|
|
5470
5493
|
/**
|
|
5471
5494
|
* Deletes specified backup policy from your Recovery Services Vault. This is an asynchronous
|
|
5472
5495
|
* operation. Status of the
|
|
@@ -5662,6 +5685,8 @@ export declare interface RecoveryPointProperties {
|
|
|
5662
5685
|
expiryTime?: string;
|
|
5663
5686
|
/** Rule name tagged on Recovery Point that governs life cycle */
|
|
5664
5687
|
ruleName?: string;
|
|
5688
|
+
/** Bool to indicate whether RP is in soft delete state or not */
|
|
5689
|
+
isSoftDeleted?: boolean;
|
|
5665
5690
|
}
|
|
5666
5691
|
|
|
5667
5692
|
/** RP Rehydration Info */
|
|
@@ -5823,7 +5848,7 @@ export declare class RecoveryServicesBackupClient extends coreClient.ServiceClie
|
|
|
5823
5848
|
* @param parameters Prepare data move request
|
|
5824
5849
|
* @param options The options parameters.
|
|
5825
5850
|
*/
|
|
5826
|
-
beginBMSPrepareDataMove(vaultName: string, resourceGroupName: string, parameters: PrepareDataMoveRequest, options?: BMSPrepareDataMoveOptionalParams): Promise<
|
|
5851
|
+
beginBMSPrepareDataMove(vaultName: string, resourceGroupName: string, parameters: PrepareDataMoveRequest, options?: BMSPrepareDataMoveOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>;
|
|
5827
5852
|
/**
|
|
5828
5853
|
* Prepares source vault for Data Move operation
|
|
5829
5854
|
* @param vaultName The name of the recovery services vault.
|
|
@@ -5841,7 +5866,7 @@ export declare class RecoveryServicesBackupClient extends coreClient.ServiceClie
|
|
|
5841
5866
|
* @param parameters Trigger data move request
|
|
5842
5867
|
* @param options The options parameters.
|
|
5843
5868
|
*/
|
|
5844
|
-
beginBMSTriggerDataMove(vaultName: string, resourceGroupName: string, parameters: TriggerDataMoveRequest, options?: BMSTriggerDataMoveOptionalParams): Promise<
|
|
5869
|
+
beginBMSTriggerDataMove(vaultName: string, resourceGroupName: string, parameters: TriggerDataMoveRequest, options?: BMSTriggerDataMoveOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>;
|
|
5845
5870
|
/**
|
|
5846
5871
|
* Triggers Data Move Operation on target vault
|
|
5847
5872
|
* @param vaultName The name of the recovery services vault.
|
|
@@ -5863,7 +5888,7 @@ export declare class RecoveryServicesBackupClient extends coreClient.ServiceClie
|
|
|
5863
5888
|
* @param parameters Move Resource Across Tiers Request
|
|
5864
5889
|
* @param options The options parameters.
|
|
5865
5890
|
*/
|
|
5866
|
-
beginMoveRecoveryPoint(vaultName: string, resourceGroupName: string, fabricName: string, containerName: string, protectedItemName: string, recoveryPointId: string, parameters: MoveRPAcrossTiersRequest, options?: MoveRecoveryPointOptionalParams): Promise<
|
|
5891
|
+
beginMoveRecoveryPoint(vaultName: string, resourceGroupName: string, fabricName: string, containerName: string, protectedItemName: string, recoveryPointId: string, parameters: MoveRPAcrossTiersRequest, options?: MoveRecoveryPointOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>;
|
|
5867
5892
|
/**
|
|
5868
5893
|
* Move recovery point from one datastore to another store.
|
|
5869
5894
|
* @param vaultName The name of the recovery services vault.
|
|
@@ -6232,7 +6257,7 @@ export declare interface Restores {
|
|
|
6232
6257
|
* @param parameters resource restore request
|
|
6233
6258
|
* @param options The options parameters.
|
|
6234
6259
|
*/
|
|
6235
|
-
beginTrigger(vaultName: string, resourceGroupName: string, fabricName: string, containerName: string, protectedItemName: string, recoveryPointId: string, parameters: RestoreRequestResource, options?: RestoresTriggerOptionalParams): Promise<
|
|
6260
|
+
beginTrigger(vaultName: string, resourceGroupName: string, fabricName: string, containerName: string, protectedItemName: string, recoveryPointId: string, parameters: RestoreRequestResource, options?: RestoresTriggerOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>;
|
|
6236
6261
|
/**
|
|
6237
6262
|
* Restores the specified backed up data. This is an asynchronous operation. To know the status of this
|
|
6238
6263
|
* API call, use
|
|
@@ -6321,6 +6346,12 @@ export declare type SchedulePolicyUnion = SchedulePolicy | LogSchedulePolicy | L
|
|
|
6321
6346
|
*/
|
|
6322
6347
|
export declare type ScheduleRunType = string;
|
|
6323
6348
|
|
|
6349
|
+
/** Restore request parameters for Secured VMs */
|
|
6350
|
+
export declare interface SecuredVMDetails {
|
|
6351
|
+
/** Gets or Sets Disk Encryption Set Id for Secured VM OS Disk */
|
|
6352
|
+
securedVMOsDiskEncryptionSetId?: string;
|
|
6353
|
+
}
|
|
6354
|
+
|
|
6324
6355
|
/** Base class for get security pin request body */
|
|
6325
6356
|
export declare interface SecurityPinBase {
|
|
6326
6357
|
/** ResourceGuard Operation Requests */
|
|
@@ -6506,6 +6537,17 @@ export declare interface TargetAFSRestoreInfo {
|
|
|
6506
6537
|
targetResourceId?: string;
|
|
6507
6538
|
}
|
|
6508
6539
|
|
|
6540
|
+
/** Defines values for TargetDiskNetworkAccessOption. */
|
|
6541
|
+
export declare type TargetDiskNetworkAccessOption = "SameAsOnSourceDisks" | "EnablePrivateAccessForAllDisks" | "EnablePublicAccessForAllDisks";
|
|
6542
|
+
|
|
6543
|
+
/** Specifies target network access settings for disks of VM to be restored. */
|
|
6544
|
+
export declare interface TargetDiskNetworkAccessSettings {
|
|
6545
|
+
/** Network access settings to be used for restored disks */
|
|
6546
|
+
targetDiskNetworkAccessOption?: TargetDiskNetworkAccessOption;
|
|
6547
|
+
/** Gets or sets the ARM resource ID of the target disk access to be used when TargetDiskNetworkAccessOption is set to TargetDiskNetworkAccessOption.UseNew */
|
|
6548
|
+
targetDiskAccessId?: string;
|
|
6549
|
+
}
|
|
6550
|
+
|
|
6509
6551
|
/** Details about target workload during restore operation. */
|
|
6510
6552
|
export declare interface TargetRestoreInfo {
|
|
6511
6553
|
/** Can Overwrite if Target DataBase already exists */
|
|
@@ -6634,7 +6676,7 @@ export declare interface ValidateOperation {
|
|
|
6634
6676
|
* @param parameters resource validate operation request
|
|
6635
6677
|
* @param options The options parameters.
|
|
6636
6678
|
*/
|
|
6637
|
-
beginTrigger(vaultName: string, resourceGroupName: string, parameters: ValidateOperationRequestUnion, options?: ValidateOperationTriggerOptionalParams): Promise<
|
|
6679
|
+
beginTrigger(vaultName: string, resourceGroupName: string, parameters: ValidateOperationRequestUnion, options?: ValidateOperationTriggerOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>;
|
|
6638
6680
|
/**
|
|
6639
6681
|
* Validate operation for specified backed up item in the form of an asynchronous operation. Returns
|
|
6640
6682
|
* tracking headers which can be tracked using GetValidateOperationResult API.
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"sampleTest.d.ts","sourceRoot":"","sources":["../../test/sampleTest.ts"],"names":[],"mappings":""}
|
|
@@ -1,38 +0,0 @@
|
|
|
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
|
-
import { __awaiter } from "tslib";
|
|
9
|
-
import { Recorder } from "@azure-tools/test-recorder";
|
|
10
|
-
const replaceableVariables = {
|
|
11
|
-
AZURE_CLIENT_ID: "azure_client_id",
|
|
12
|
-
AZURE_CLIENT_SECRET: "azure_client_secret",
|
|
13
|
-
AZURE_TENANT_ID: "88888888-8888-8888-8888-888888888888",
|
|
14
|
-
SUBSCRIPTION_ID: "azure_subscription_id"
|
|
15
|
-
};
|
|
16
|
-
const recorderOptions = {
|
|
17
|
-
envSetupForPlayback: replaceableVariables
|
|
18
|
-
};
|
|
19
|
-
describe("My test", () => {
|
|
20
|
-
let recorder;
|
|
21
|
-
beforeEach(function () {
|
|
22
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
23
|
-
recorder = new Recorder(this.currentTest);
|
|
24
|
-
yield recorder.start(recorderOptions);
|
|
25
|
-
});
|
|
26
|
-
});
|
|
27
|
-
afterEach(function () {
|
|
28
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
29
|
-
yield recorder.stop();
|
|
30
|
-
});
|
|
31
|
-
});
|
|
32
|
-
it("sample test", function () {
|
|
33
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
34
|
-
console.log("Hi, I'm a test!");
|
|
35
|
-
});
|
|
36
|
-
});
|
|
37
|
-
});
|
|
38
|
-
//# sourceMappingURL=sampleTest.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"sampleTest.js","sourceRoot":"","sources":["../../test/sampleTest.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,OAAO,EACL,QAAQ,EAGT,MAAM,4BAA4B,CAAC;AAIpC,MAAM,oBAAoB,GAA2B;IACnD,eAAe,EAAE,iBAAiB;IAClC,mBAAmB,EAAE,qBAAqB;IAC1C,eAAe,EAAE,sCAAsC;IACvD,eAAe,EAAE,uBAAuB;CACzC,CAAC;AAEF,MAAM,eAAe,GAAyB;IAC5C,mBAAmB,EAAE,oBAAoB;CAC1C,CAAC;AAEF,QAAQ,CAAC,SAAS,EAAE,GAAG,EAAE;IACvB,IAAI,QAAkB,CAAC;IAEvB,UAAU,CAAC;;YACT,QAAQ,GAAG,IAAI,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;YAC1C,MAAM,QAAQ,CAAC,KAAK,CAAC,eAAe,CAAC,CAAC;QACxC,CAAC;KAAA,CAAC,CAAC;IAEH,SAAS,CAAC;;YACR,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAC;QACxB,CAAC;KAAA,CAAC,CAAC;IAEH,EAAE,CAAC,aAAa,EAAE;;YAChB,OAAO,CAAC,GAAG,CAAC,iBAAiB,CAAC,CAAC;QACjC,CAAC;KAAA,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|