@azure/arm-confidentialledger 1.3.0-beta.1 → 1.3.0-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +58 -1
- package/LICENSE +1 -1
- package/dist/index.js +1013 -434
- 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/checkNameAvailabilitySample.js +3 -3
- package/dist-esm/samples-dev/checkNameAvailabilitySample.js.map +1 -1
- package/dist-esm/samples-dev/ledgerBackupSample.d.ts +2 -0
- package/dist-esm/samples-dev/ledgerBackupSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/ledgerBackupSample.js +44 -0
- package/dist-esm/samples-dev/ledgerBackupSample.js.map +1 -0
- package/dist-esm/samples-dev/ledgerCreateSample.js +9 -8
- package/dist-esm/samples-dev/ledgerCreateSample.js.map +1 -1
- package/dist-esm/samples-dev/ledgerDeleteSample.js +1 -1
- package/dist-esm/samples-dev/ledgerGetSample.js +1 -1
- package/dist-esm/samples-dev/ledgerListByResourceGroupSample.js +7 -5
- package/dist-esm/samples-dev/ledgerListByResourceGroupSample.js.map +1 -1
- package/dist-esm/samples-dev/ledgerListBySubscriptionSample.js +7 -5
- package/dist-esm/samples-dev/ledgerListBySubscriptionSample.js.map +1 -1
- package/dist-esm/samples-dev/ledgerRestoreSample.d.ts +2 -0
- package/dist-esm/samples-dev/ledgerRestoreSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/ledgerRestoreSample.js +45 -0
- package/dist-esm/samples-dev/ledgerRestoreSample.js.map +1 -0
- package/dist-esm/samples-dev/ledgerUpdateSample.js +9 -9
- package/dist-esm/samples-dev/ledgerUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/managedCcfBackupSample.d.ts +2 -0
- package/dist-esm/samples-dev/managedCcfBackupSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/managedCcfBackupSample.js +44 -0
- package/dist-esm/samples-dev/managedCcfBackupSample.js.map +1 -0
- package/dist-esm/samples-dev/managedCcfCreateSample.js +7 -7
- package/dist-esm/samples-dev/managedCcfCreateSample.js.map +1 -1
- package/dist-esm/samples-dev/managedCcfDeleteSample.js +1 -1
- package/dist-esm/samples-dev/managedCcfGetSample.js +1 -1
- package/dist-esm/samples-dev/managedCcfListByResourceGroupSample.js +7 -5
- package/dist-esm/samples-dev/managedCcfListByResourceGroupSample.js.map +1 -1
- package/dist-esm/samples-dev/managedCcfListBySubscriptionSample.js +7 -5
- package/dist-esm/samples-dev/managedCcfListBySubscriptionSample.js.map +1 -1
- package/dist-esm/samples-dev/managedCcfRestoreSample.d.ts +2 -0
- package/dist-esm/samples-dev/managedCcfRestoreSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/managedCcfRestoreSample.js +45 -0
- package/dist-esm/samples-dev/managedCcfRestoreSample.js.map +1 -0
- package/dist-esm/samples-dev/managedCcfUpdateSample.js +5 -5
- package/dist-esm/samples-dev/managedCcfUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/operationsListSample.js +7 -5
- package/dist-esm/samples-dev/operationsListSample.js.map +1 -1
- package/dist-esm/src/confidentialLedgerClient.d.ts.map +1 -1
- package/dist-esm/src/confidentialLedgerClient.js +13 -13
- package/dist-esm/src/confidentialLedgerClient.js.map +1 -1
- package/dist-esm/src/lroImpl.js +1 -1
- package/dist-esm/src/models/index.d.ts +149 -24
- package/dist-esm/src/models/index.d.ts.map +1 -1
- package/dist-esm/src/models/index.js +10 -0
- package/dist-esm/src/models/index.js.map +1 -1
- package/dist-esm/src/models/mappers.d.ts +8 -0
- package/dist-esm/src/models/mappers.d.ts.map +1 -1
- package/dist-esm/src/models/mappers.js +385 -213
- package/dist-esm/src/models/mappers.js.map +1 -1
- package/dist-esm/src/models/parameters.d.ts +4 -0
- package/dist-esm/src/models/parameters.d.ts.map +1 -1
- package/dist-esm/src/models/parameters.js +55 -39
- package/dist-esm/src/models/parameters.js.map +1 -1
- package/dist-esm/src/operations/ledger.d.ts +33 -1
- package/dist-esm/src/operations/ledger.d.ts.map +1 -1
- package/dist-esm/src/operations/ledger.js +249 -67
- package/dist-esm/src/operations/ledger.js.map +1 -1
- package/dist-esm/src/operations/managedCCFOperations.d.ts +35 -3
- package/dist-esm/src/operations/managedCCFOperations.d.ts.map +1 -1
- package/dist-esm/src/operations/managedCCFOperations.js +257 -67
- package/dist-esm/src/operations/managedCCFOperations.js.map +1 -1
- package/dist-esm/src/operations/operations.js +15 -13
- package/dist-esm/src/operations/operations.js.map +1 -1
- package/dist-esm/src/operationsInterfaces/ledger.d.ts +33 -1
- package/dist-esm/src/operationsInterfaces/ledger.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/managedCCFOperations.d.ts +35 -3
- package/dist-esm/src/operationsInterfaces/managedCCFOperations.d.ts.map +1 -1
- package/dist-esm/src/pagingHelper.js.map +1 -1
- package/dist-esm/test/confidentialledger_operations_test.spec.d.ts +4 -0
- package/dist-esm/test/confidentialledger_operations_test.spec.d.ts.map +1 -0
- package/dist-esm/test/confidentialledger_operations_test.spec.js +71 -0
- package/dist-esm/test/confidentialledger_operations_test.spec.js.map +1 -0
- package/package.json +17 -22
- package/review/arm-confidentialledger.api.md +107 -2
- package/src/confidentialLedgerClient.ts +26 -26
- package/src/lroImpl.ts +3 -3
- package/src/models/index.ts +158 -9
- package/src/models/mappers.ts +396 -216
- package/src/models/parameters.ts +64 -40
- package/src/operations/ledger.ts +370 -124
- package/src/operations/managedCCFOperations.ts +393 -127
- package/src/operations/operations.ts +16 -16
- package/src/operationsInterfaces/ledger.ts +75 -10
- package/src/operationsInterfaces/managedCCFOperations.ts +86 -12
- package/src/operationsInterfaces/operations.ts +2 -2
- package/src/pagingHelper.ts +1 -1
- package/types/arm-confidentialledger.d.ts +211 -3
- package/types/tsdoc-metadata.json +1 -1
- 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
- package/rollup.config.js +0 -122
@@ -71,6 +71,23 @@ export declare interface ConfidentialLedger extends TrackedResource {
|
|
71
71
|
properties?: LedgerProperties;
|
72
72
|
}
|
73
73
|
|
74
|
+
/** Object representing Backup properties of a Confidential Ledger Resource. */
|
75
|
+
export declare interface ConfidentialLedgerBackup {
|
76
|
+
/** The region where the backup of the ledger will eventually be restored to. */
|
77
|
+
restoreRegion?: string;
|
78
|
+
/** SAS URI used to access the backup Fileshare. */
|
79
|
+
uri: string;
|
80
|
+
}
|
81
|
+
|
82
|
+
/** Object representing the backup response of a Confidential Ledger Resource. */
|
83
|
+
export declare interface ConfidentialLedgerBackupResponse {
|
84
|
+
/**
|
85
|
+
* Response body stating if the ledger is being backed up.
|
86
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
87
|
+
*/
|
88
|
+
readonly message?: string;
|
89
|
+
}
|
90
|
+
|
74
91
|
export declare class ConfidentialLedgerClient extends coreClient.ServiceClient {
|
75
92
|
$host: string;
|
76
93
|
apiVersion: string;
|
@@ -113,6 +130,25 @@ export declare interface ConfidentialLedgerList {
|
|
113
130
|
nextLink?: string;
|
114
131
|
}
|
115
132
|
|
133
|
+
/** Object representing Restore properties of a Confidential Ledger Resource. */
|
134
|
+
export declare interface ConfidentialLedgerRestore {
|
135
|
+
/** Fileshare where the ledger backup is stored. */
|
136
|
+
fileShareName: string;
|
137
|
+
/** The region the ledger is being restored to. */
|
138
|
+
restoreRegion: string;
|
139
|
+
/** SAS URI used to access the backup fileshare. */
|
140
|
+
uri: string;
|
141
|
+
}
|
142
|
+
|
143
|
+
/** Object representing the restore response of a Confidential Ledger Resource. */
|
144
|
+
export declare interface ConfidentialLedgerRestoreResponse {
|
145
|
+
/**
|
146
|
+
* Response body stating if the ledger is being restored.
|
147
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
148
|
+
*/
|
149
|
+
readonly message?: string;
|
150
|
+
}
|
151
|
+
|
116
152
|
/**
|
117
153
|
* Defines values for CreatedByType. \
|
118
154
|
* {@link KnownCreatedByType} can be used interchangeably with CreatedByType,
|
@@ -229,6 +265,16 @@ export declare enum KnownLedgerRoleName {
|
|
229
265
|
Administrator = "Administrator"
|
230
266
|
}
|
231
267
|
|
268
|
+
/** Known values of {@link LedgerSku} that the service accepts. */
|
269
|
+
export declare enum KnownLedgerSku {
|
270
|
+
/** Standard */
|
271
|
+
Standard = "Standard",
|
272
|
+
/** Basic */
|
273
|
+
Basic = "Basic",
|
274
|
+
/** Unknown */
|
275
|
+
Unknown = "Unknown"
|
276
|
+
}
|
277
|
+
|
232
278
|
/** Known values of {@link LedgerType} that the service accepts. */
|
233
279
|
export declare enum KnownLedgerType {
|
234
280
|
/** Unknown */
|
@@ -347,8 +393,51 @@ export declare interface Ledger {
|
|
347
393
|
* @param options The options parameters.
|
348
394
|
*/
|
349
395
|
beginUpdateAndWait(resourceGroupName: string, ledgerName: string, confidentialLedger: ConfidentialLedger, options?: LedgerUpdateOptionalParams): Promise<LedgerUpdateResponse>;
|
396
|
+
/**
|
397
|
+
* Backs up a Confidential Ledger Resource.
|
398
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
399
|
+
* @param ledgerName Name of the Confidential Ledger
|
400
|
+
* @param confidentialLedger Confidential Ledger Backup Request Body
|
401
|
+
* @param options The options parameters.
|
402
|
+
*/
|
403
|
+
beginBackup(resourceGroupName: string, ledgerName: string, confidentialLedger: ConfidentialLedgerBackup, options?: LedgerBackupOptionalParams): Promise<SimplePollerLike<OperationState<LedgerBackupResponse>, LedgerBackupResponse>>;
|
404
|
+
/**
|
405
|
+
* Backs up a Confidential Ledger Resource.
|
406
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
407
|
+
* @param ledgerName Name of the Confidential Ledger
|
408
|
+
* @param confidentialLedger Confidential Ledger Backup Request Body
|
409
|
+
* @param options The options parameters.
|
410
|
+
*/
|
411
|
+
beginBackupAndWait(resourceGroupName: string, ledgerName: string, confidentialLedger: ConfidentialLedgerBackup, options?: LedgerBackupOptionalParams): Promise<LedgerBackupResponse>;
|
412
|
+
/**
|
413
|
+
* Restores a Confidential Ledger Resource.
|
414
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
415
|
+
* @param ledgerName Name of the Confidential Ledger
|
416
|
+
* @param confidentialLedger Confidential Ledger Restore Request Body
|
417
|
+
* @param options The options parameters.
|
418
|
+
*/
|
419
|
+
beginRestore(resourceGroupName: string, ledgerName: string, confidentialLedger: ConfidentialLedgerRestore, options?: LedgerRestoreOptionalParams): Promise<SimplePollerLike<OperationState<LedgerRestoreResponse>, LedgerRestoreResponse>>;
|
420
|
+
/**
|
421
|
+
* Restores a Confidential Ledger Resource.
|
422
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
423
|
+
* @param ledgerName Name of the Confidential Ledger
|
424
|
+
* @param confidentialLedger Confidential Ledger Restore Request Body
|
425
|
+
* @param options The options parameters.
|
426
|
+
*/
|
427
|
+
beginRestoreAndWait(resourceGroupName: string, ledgerName: string, confidentialLedger: ConfidentialLedgerRestore, options?: LedgerRestoreOptionalParams): Promise<LedgerRestoreResponse>;
|
350
428
|
}
|
351
429
|
|
430
|
+
/** Optional parameters. */
|
431
|
+
export declare interface LedgerBackupOptionalParams extends coreClient.OperationOptions {
|
432
|
+
/** Delay to wait until next poll, in milliseconds. */
|
433
|
+
updateIntervalInMs?: number;
|
434
|
+
/** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
|
435
|
+
resumeFrom?: string;
|
436
|
+
}
|
437
|
+
|
438
|
+
/** Contains response data for the backup operation. */
|
439
|
+
export declare type LedgerBackupResponse = ConfidentialLedgerBackupResponse;
|
440
|
+
|
352
441
|
/** Optional parameters. */
|
353
442
|
export declare interface LedgerCreateOptionalParams extends coreClient.OperationOptions {
|
354
443
|
/** Delay to wait until next poll, in milliseconds. */
|
@@ -438,12 +527,25 @@ export declare interface LedgerProperties {
|
|
438
527
|
* NOTE: This property will not be serialized. It can only be populated by the server.
|
439
528
|
*/
|
440
529
|
readonly provisioningState?: ProvisioningState;
|
530
|
+
/** SKU associated with the ledger */
|
531
|
+
ledgerSku?: LedgerSku;
|
441
532
|
/** Array of all AAD based Security Principals. */
|
442
533
|
aadBasedSecurityPrincipals?: AADBasedSecurityPrincipal[];
|
443
534
|
/** Array of all cert based Security Principals. */
|
444
535
|
certBasedSecurityPrincipals?: CertBasedSecurityPrincipal[];
|
445
536
|
}
|
446
537
|
|
538
|
+
/** Optional parameters. */
|
539
|
+
export declare interface LedgerRestoreOptionalParams extends coreClient.OperationOptions {
|
540
|
+
/** Delay to wait until next poll, in milliseconds. */
|
541
|
+
updateIntervalInMs?: number;
|
542
|
+
/** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
|
543
|
+
resumeFrom?: string;
|
544
|
+
}
|
545
|
+
|
546
|
+
/** Contains response data for the restore operation. */
|
547
|
+
export declare type LedgerRestoreResponse = ConfidentialLedgerRestoreResponse;
|
548
|
+
|
447
549
|
/**
|
448
550
|
* Defines values for LedgerRoleName. \
|
449
551
|
* {@link KnownLedgerRoleName} can be used interchangeably with LedgerRoleName,
|
@@ -455,6 +557,17 @@ export declare interface LedgerProperties {
|
|
455
557
|
*/
|
456
558
|
export declare type LedgerRoleName = string;
|
457
559
|
|
560
|
+
/**
|
561
|
+
* Defines values for LedgerSku. \
|
562
|
+
* {@link KnownLedgerSku} can be used interchangeably with LedgerSku,
|
563
|
+
* this enum contains the known values that the service supports.
|
564
|
+
* ### Known values supported by the service
|
565
|
+
* **Standard** \
|
566
|
+
* **Basic** \
|
567
|
+
* **Unknown**
|
568
|
+
*/
|
569
|
+
export declare type LedgerSku = string;
|
570
|
+
|
458
571
|
/**
|
459
572
|
* Defines values for LedgerType. \
|
460
573
|
* {@link KnownLedgerType} can be used interchangeably with LedgerType,
|
@@ -483,6 +596,34 @@ export declare interface ManagedCCF extends TrackedResource {
|
|
483
596
|
properties?: ManagedCCFProperties;
|
484
597
|
}
|
485
598
|
|
599
|
+
/** Object representing Backup properties of a Managed CCF Resource. */
|
600
|
+
export declare interface ManagedCCFBackup {
|
601
|
+
/** The region where the backup of the managed CCF resource will eventually be restored to. */
|
602
|
+
restoreRegion?: string;
|
603
|
+
/** SAS URI used to access the backup Fileshare. */
|
604
|
+
uri: string;
|
605
|
+
}
|
606
|
+
|
607
|
+
/** Contains response data for the backup operation. */
|
608
|
+
export declare type ManagedCCFBackupOperationResponse = ManagedCCFBackupResponse;
|
609
|
+
|
610
|
+
/** Optional parameters. */
|
611
|
+
export declare interface ManagedCCFBackupOptionalParams extends coreClient.OperationOptions {
|
612
|
+
/** Delay to wait until next poll, in milliseconds. */
|
613
|
+
updateIntervalInMs?: number;
|
614
|
+
/** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
|
615
|
+
resumeFrom?: string;
|
616
|
+
}
|
617
|
+
|
618
|
+
/** Object representing the backup response of a Managed CCF Resource. */
|
619
|
+
export declare interface ManagedCCFBackupResponse {
|
620
|
+
/**
|
621
|
+
* Response body stating if the managed CCF resource is being backed up.
|
622
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
623
|
+
*/
|
624
|
+
readonly message?: string;
|
625
|
+
}
|
626
|
+
|
486
627
|
/** Optional parameters. */
|
487
628
|
export declare interface ManagedCCFCreateOptionalParams extends coreClient.OperationOptions {
|
488
629
|
/** Delay to wait until next poll, in milliseconds. */
|
@@ -606,7 +747,7 @@ export declare interface ManagedCCFOperations {
|
|
606
747
|
* @param managedCCF Request body for Updating Managed CCF App
|
607
748
|
* @param options The options parameters.
|
608
749
|
*/
|
609
|
-
beginUpdate(resourceGroupName: string, appName: string, managedCCF: ManagedCCF, options?: ManagedCCFUpdateOptionalParams): Promise<SimplePollerLike<OperationState<
|
750
|
+
beginUpdate(resourceGroupName: string, appName: string, managedCCF: ManagedCCF, options?: ManagedCCFUpdateOptionalParams): Promise<SimplePollerLike<OperationState<ManagedCCFUpdateResponse>, ManagedCCFUpdateResponse>>;
|
610
751
|
/**
|
611
752
|
* Updates properties of Managed CCF
|
612
753
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
@@ -614,7 +755,39 @@ export declare interface ManagedCCFOperations {
|
|
614
755
|
* @param managedCCF Request body for Updating Managed CCF App
|
615
756
|
* @param options The options parameters.
|
616
757
|
*/
|
617
|
-
beginUpdateAndWait(resourceGroupName: string, appName: string, managedCCF: ManagedCCF, options?: ManagedCCFUpdateOptionalParams): Promise<
|
758
|
+
beginUpdateAndWait(resourceGroupName: string, appName: string, managedCCF: ManagedCCF, options?: ManagedCCFUpdateOptionalParams): Promise<ManagedCCFUpdateResponse>;
|
759
|
+
/**
|
760
|
+
* Backs up a Managed CCF Resource.
|
761
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
762
|
+
* @param appName Name of the Managed CCF
|
763
|
+
* @param managedCCF Managed CCF Backup Request Body
|
764
|
+
* @param options The options parameters.
|
765
|
+
*/
|
766
|
+
beginBackup(resourceGroupName: string, appName: string, managedCCF: ManagedCCFBackup, options?: ManagedCCFBackupOptionalParams): Promise<SimplePollerLike<OperationState<ManagedCCFBackupOperationResponse>, ManagedCCFBackupOperationResponse>>;
|
767
|
+
/**
|
768
|
+
* Backs up a Managed CCF Resource.
|
769
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
770
|
+
* @param appName Name of the Managed CCF
|
771
|
+
* @param managedCCF Managed CCF Backup Request Body
|
772
|
+
* @param options The options parameters.
|
773
|
+
*/
|
774
|
+
beginBackupAndWait(resourceGroupName: string, appName: string, managedCCF: ManagedCCFBackup, options?: ManagedCCFBackupOptionalParams): Promise<ManagedCCFBackupOperationResponse>;
|
775
|
+
/**
|
776
|
+
* Restores a Managed CCF Resource.
|
777
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
778
|
+
* @param appName Name of the Managed CCF
|
779
|
+
* @param managedCCF Managed CCF Restore Request Body
|
780
|
+
* @param options The options parameters.
|
781
|
+
*/
|
782
|
+
beginRestore(resourceGroupName: string, appName: string, managedCCF: ManagedCCFRestore, options?: ManagedCCFRestoreOptionalParams): Promise<SimplePollerLike<OperationState<ManagedCCFRestoreOperationResponse>, ManagedCCFRestoreOperationResponse>>;
|
783
|
+
/**
|
784
|
+
* Restores a Managed CCF Resource.
|
785
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
786
|
+
* @param appName Name of the Managed CCF
|
787
|
+
* @param managedCCF Managed CCF Restore Request Body
|
788
|
+
* @param options The options parameters.
|
789
|
+
*/
|
790
|
+
beginRestoreAndWait(resourceGroupName: string, appName: string, managedCCF: ManagedCCFRestore, options?: ManagedCCFRestoreOptionalParams): Promise<ManagedCCFRestoreOperationResponse>;
|
618
791
|
}
|
619
792
|
|
620
793
|
/** Additional Managed CCF properties. */
|
@@ -638,8 +811,10 @@ export declare interface ManagedCCFProperties {
|
|
638
811
|
memberIdentityCertificates?: MemberIdentityCertificate[];
|
639
812
|
/** Deployment Type of Managed CCF */
|
640
813
|
deploymentType?: DeploymentType;
|
814
|
+
/** Object representing RunningState for Managed CCF. */
|
815
|
+
runningState?: RunningState;
|
641
816
|
/**
|
642
|
-
* Provisioning state of
|
817
|
+
* Provisioning state of Managed CCF Resource
|
643
818
|
* NOTE: This property will not be serialized. It can only be populated by the server.
|
644
819
|
*/
|
645
820
|
readonly provisioningState?: ProvisioningState;
|
@@ -647,6 +822,36 @@ export declare interface ManagedCCFProperties {
|
|
647
822
|
nodeCount?: number;
|
648
823
|
}
|
649
824
|
|
825
|
+
/** Object representing Restore properties of Managed CCF Resource. */
|
826
|
+
export declare interface ManagedCCFRestore {
|
827
|
+
/** Fileshare where the managed CCF resource backup is stored. */
|
828
|
+
fileShareName: string;
|
829
|
+
/** The region the managed CCF resource is being restored to. */
|
830
|
+
restoreRegion: string;
|
831
|
+
/** SAS URI used to access the backup Fileshare. */
|
832
|
+
uri: string;
|
833
|
+
}
|
834
|
+
|
835
|
+
/** Contains response data for the restore operation. */
|
836
|
+
export declare type ManagedCCFRestoreOperationResponse = ManagedCCFRestoreResponse;
|
837
|
+
|
838
|
+
/** Optional parameters. */
|
839
|
+
export declare interface ManagedCCFRestoreOptionalParams extends coreClient.OperationOptions {
|
840
|
+
/** Delay to wait until next poll, in milliseconds. */
|
841
|
+
updateIntervalInMs?: number;
|
842
|
+
/** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
|
843
|
+
resumeFrom?: string;
|
844
|
+
}
|
845
|
+
|
846
|
+
/** Object representing the restore response of a Managed CCF Resource. */
|
847
|
+
export declare interface ManagedCCFRestoreResponse {
|
848
|
+
/**
|
849
|
+
* Response body stating if the managed CCF resource is being restored.
|
850
|
+
* NOTE: This property will not be serialized. It can only be populated by the server.
|
851
|
+
*/
|
852
|
+
readonly message?: string;
|
853
|
+
}
|
854
|
+
|
650
855
|
/** Optional parameters. */
|
651
856
|
export declare interface ManagedCCFUpdateOptionalParams extends coreClient.OperationOptions {
|
652
857
|
/** Delay to wait until next poll, in milliseconds. */
|
@@ -655,6 +860,9 @@ export declare interface ManagedCCFUpdateOptionalParams extends coreClient.Opera
|
|
655
860
|
resumeFrom?: string;
|
656
861
|
}
|
657
862
|
|
863
|
+
/** Contains response data for the update operation. */
|
864
|
+
export declare type ManagedCCFUpdateResponse = ManagedCCF;
|
865
|
+
|
658
866
|
/** Object representing MemberIdentityCertificate for Managed CCF. */
|
659
867
|
export declare interface MemberIdentityCertificate {
|
660
868
|
/** Member Identity Certificate */
|
@@ -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"}
|
package/rollup.config.js
DELETED
@@ -1,122 +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
|
-
|
9
|
-
import nodeResolve from "@rollup/plugin-node-resolve";
|
10
|
-
import cjs from "@rollup/plugin-commonjs";
|
11
|
-
import sourcemaps from "rollup-plugin-sourcemaps";
|
12
|
-
import multiEntry from "@rollup/plugin-multi-entry";
|
13
|
-
import json from "@rollup/plugin-json";
|
14
|
-
|
15
|
-
import nodeBuiltins from "builtin-modules";
|
16
|
-
|
17
|
-
// #region Warning Handler
|
18
|
-
|
19
|
-
/**
|
20
|
-
* A function that can determine whether a rollup warning should be ignored. If
|
21
|
-
* the function returns `true`, then the warning will not be displayed.
|
22
|
-
*/
|
23
|
-
|
24
|
-
function ignoreNiseSinonEval(warning) {
|
25
|
-
return (
|
26
|
-
warning.code === "EVAL" &&
|
27
|
-
warning.id &&
|
28
|
-
(warning.id.includes("node_modules/nise") ||
|
29
|
-
warning.id.includes("node_modules/sinon")) === true
|
30
|
-
);
|
31
|
-
}
|
32
|
-
|
33
|
-
function ignoreChaiCircularDependency(warning) {
|
34
|
-
return (
|
35
|
-
warning.code === "CIRCULAR_DEPENDENCY" &&
|
36
|
-
warning.importer && warning.importer.includes("node_modules/chai") === true
|
37
|
-
);
|
38
|
-
}
|
39
|
-
|
40
|
-
const warningInhibitors = [ignoreChaiCircularDependency, ignoreNiseSinonEval];
|
41
|
-
|
42
|
-
/**
|
43
|
-
* Construct a warning handler for the shared rollup configuration
|
44
|
-
* that ignores certain warnings that are not relevant to testing.
|
45
|
-
*/
|
46
|
-
function makeOnWarnForTesting() {
|
47
|
-
return (warning, warn) => {
|
48
|
-
// If every inhibitor returns false (i.e. no inhibitors), then show the warning
|
49
|
-
if (warningInhibitors.every((inhib) => !inhib(warning))) {
|
50
|
-
warn(warning);
|
51
|
-
}
|
52
|
-
};
|
53
|
-
}
|
54
|
-
|
55
|
-
// #endregion
|
56
|
-
|
57
|
-
function makeBrowserTestConfig() {
|
58
|
-
const config = {
|
59
|
-
input: {
|
60
|
-
include: ["dist-esm/test/**/*.spec.js"],
|
61
|
-
exclude: ["dist-esm/test/**/node/**"]
|
62
|
-
},
|
63
|
-
output: {
|
64
|
-
file: `dist-test/index.browser.js`,
|
65
|
-
format: "umd",
|
66
|
-
sourcemap: true
|
67
|
-
},
|
68
|
-
preserveSymlinks: false,
|
69
|
-
plugins: [
|
70
|
-
multiEntry({ exports: false }),
|
71
|
-
nodeResolve({
|
72
|
-
mainFields: ["module", "browser"]
|
73
|
-
}),
|
74
|
-
cjs(),
|
75
|
-
json(),
|
76
|
-
sourcemaps()
|
77
|
-
//viz({ filename: "dist-test/browser-stats.html", sourcemap: true })
|
78
|
-
],
|
79
|
-
onwarn: makeOnWarnForTesting(),
|
80
|
-
// Disable tree-shaking of test code. In rollup-plugin-node-resolve@5.0.0,
|
81
|
-
// rollup started respecting the "sideEffects" field in package.json. Since
|
82
|
-
// our package.json sets "sideEffects=false", this also applies to test
|
83
|
-
// code, which causes all tests to be removed by tree-shaking.
|
84
|
-
treeshake: false
|
85
|
-
};
|
86
|
-
|
87
|
-
return config;
|
88
|
-
}
|
89
|
-
|
90
|
-
const defaultConfigurationOptions = {
|
91
|
-
disableBrowserBundle: false
|
92
|
-
};
|
93
|
-
|
94
|
-
export function makeConfig(pkg, options) {
|
95
|
-
options = {
|
96
|
-
...defaultConfigurationOptions,
|
97
|
-
...(options || {})
|
98
|
-
};
|
99
|
-
|
100
|
-
const baseConfig = {
|
101
|
-
// Use the package's module field if it has one
|
102
|
-
input: pkg["module"] || "dist-esm/src/index.js",
|
103
|
-
external: [
|
104
|
-
...nodeBuiltins,
|
105
|
-
...Object.keys(pkg.dependencies),
|
106
|
-
...Object.keys(pkg.devDependencies)
|
107
|
-
],
|
108
|
-
output: { file: "dist/index.js", format: "cjs", sourcemap: true },
|
109
|
-
preserveSymlinks: false,
|
110
|
-
plugins: [sourcemaps(), nodeResolve()]
|
111
|
-
};
|
112
|
-
|
113
|
-
const config = [baseConfig];
|
114
|
-
|
115
|
-
if (!options.disableBrowserBundle) {
|
116
|
-
config.push(makeBrowserTestConfig());
|
117
|
-
}
|
118
|
-
|
119
|
-
return config;
|
120
|
-
}
|
121
|
-
|
122
|
-
export default makeConfig(require("./package.json"));
|