@azure/arm-confidentialledger 1.2.1-alpha.20230320.1 → 1.3.0-alpha.20230419.1
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 +33 -10
- package/README.md +1 -1
- package/dist/index.js +889 -105
- 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 +1 -1
- package/dist-esm/samples-dev/ledgerCreateSample.js +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 +13 -6
- package/dist-esm/samples-dev/ledgerListByResourceGroupSample.js.map +1 -1
- package/dist-esm/samples-dev/ledgerListBySubscriptionSample.js +13 -6
- package/dist-esm/samples-dev/ledgerListBySubscriptionSample.js.map +1 -1
- package/dist-esm/samples-dev/ledgerUpdateSample.js +1 -1
- package/dist-esm/samples-dev/managedCcfCreateSample.d.ts +2 -0
- package/dist-esm/samples-dev/managedCcfCreateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/managedCcfCreateSample.js +58 -0
- package/dist-esm/samples-dev/managedCcfCreateSample.js.map +1 -0
- package/dist-esm/samples-dev/managedCcfDeleteSample.d.ts +2 -0
- package/dist-esm/samples-dev/managedCcfDeleteSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/managedCcfDeleteSample.js +40 -0
- package/dist-esm/samples-dev/managedCcfDeleteSample.js.map +1 -0
- package/dist-esm/samples-dev/managedCcfGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/managedCcfGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/managedCcfGetSample.js +40 -0
- package/dist-esm/samples-dev/managedCcfGetSample.js.map +1 -0
- package/dist-esm/samples-dev/managedCcfListByResourceGroupSample.d.ts +2 -0
- package/dist-esm/samples-dev/managedCcfListByResourceGroupSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/managedCcfListByResourceGroupSample.js +60 -0
- package/dist-esm/samples-dev/managedCcfListByResourceGroupSample.js.map +1 -0
- package/dist-esm/samples-dev/managedCcfListBySubscriptionSample.d.ts +2 -0
- package/dist-esm/samples-dev/managedCcfListBySubscriptionSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/managedCcfListBySubscriptionSample.js +58 -0
- package/dist-esm/samples-dev/managedCcfListBySubscriptionSample.js.map +1 -0
- package/dist-esm/samples-dev/managedCcfUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/managedCcfUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/managedCcfUpdateSample.js +50 -0
- package/dist-esm/samples-dev/managedCcfUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/operationsListSample.js +13 -6
- package/dist-esm/samples-dev/operationsListSample.js.map +1 -1
- package/dist-esm/src/confidentialLedgerClient.d.ts +3 -3
- package/dist-esm/src/confidentialLedgerClient.d.ts.map +1 -1
- package/dist-esm/src/confidentialLedgerClient.js +5 -5
- package/dist-esm/src/confidentialLedgerClient.js.map +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 +191 -28
- 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 +7 -1
- package/dist-esm/src/models/mappers.d.ts.map +1 -1
- package/dist-esm/src/models/mappers.js +188 -16
- package/dist-esm/src/models/mappers.js.map +1 -1
- package/dist-esm/src/models/parameters.d.ts +2 -0
- package/dist-esm/src/models/parameters.d.ts.map +1 -1
- package/dist-esm/src/models/parameters.js +23 -3
- package/dist-esm/src/models/parameters.js.map +1 -1
- package/dist-esm/src/operations/index.d.ts +1 -0
- package/dist-esm/src/operations/index.d.ts.map +1 -1
- package/dist-esm/src/operations/index.js +1 -0
- package/dist-esm/src/operations/index.js.map +1 -1
- package/dist-esm/src/operations/ledger.d.ts +14 -14
- package/dist-esm/src/operations/ledger.d.ts.map +1 -1
- package/dist-esm/src/operations/ledger.js +61 -35
- package/dist-esm/src/operations/ledger.js.map +1 -1
- package/dist-esm/src/operations/managedCCFOperations.d.ts +107 -0
- package/dist-esm/src/operations/managedCCFOperations.d.ts.map +1 -0
- package/dist-esm/src/operations/managedCCFOperations.js +546 -0
- package/dist-esm/src/operations/managedCCFOperations.js.map +1 -0
- package/dist-esm/src/operations/operations.js +12 -5
- package/dist-esm/src/operations/operations.js.map +1 -1
- package/dist-esm/src/operationsInterfaces/index.d.ts +1 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/index.js +1 -0
- package/dist-esm/src/operationsInterfaces/index.js.map +1 -1
- package/dist-esm/src/operationsInterfaces/ledger.d.ts +12 -12
- package/dist-esm/src/operationsInterfaces/ledger.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/managedCCFOperations.d.ts +71 -0
- package/dist-esm/src/operationsInterfaces/managedCCFOperations.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/managedCCFOperations.js +9 -0
- package/dist-esm/src/operationsInterfaces/managedCCFOperations.js.map +1 -0
- package/package.json +6 -6
- package/review/arm-confidentialledger.api.md +151 -11
- package/src/confidentialLedgerClient.ts +15 -6
- package/src/lroImpl.ts +31 -23
- package/src/models/index.ts +202 -14
- package/src/models/mappers.ts +202 -17
- package/src/models/parameters.ts +26 -3
- package/src/operations/index.ts +1 -0
- package/src/operations/ledger.ts +50 -40
- package/src/operations/managedCCFOperations.ts +696 -0
- package/src/operationsInterfaces/index.ts +1 -0
- package/src/operationsInterfaces/ledger.ts +12 -12
- package/src/operationsInterfaces/managedCCFOperations.ts +132 -0
- package/types/arm-confidentialledger.d.ts +284 -29
package/dist/index.js
CHANGED
@@ -75,6 +75,20 @@ exports.KnownCheckNameAvailabilityReason = void 0;
|
|
75
75
|
/** AlreadyExists */
|
76
76
|
KnownCheckNameAvailabilityReason["AlreadyExists"] = "AlreadyExists";
|
77
77
|
})(exports.KnownCheckNameAvailabilityReason || (exports.KnownCheckNameAvailabilityReason = {}));
|
78
|
+
/** Known values of {@link RunningState} that the service accepts. */
|
79
|
+
exports.KnownRunningState = void 0;
|
80
|
+
(function (KnownRunningState) {
|
81
|
+
/** Active */
|
82
|
+
KnownRunningState["Active"] = "Active";
|
83
|
+
/** Paused */
|
84
|
+
KnownRunningState["Paused"] = "Paused";
|
85
|
+
/** Unknown */
|
86
|
+
KnownRunningState["Unknown"] = "Unknown";
|
87
|
+
/** Pausing */
|
88
|
+
KnownRunningState["Pausing"] = "Pausing";
|
89
|
+
/** Resuming */
|
90
|
+
KnownRunningState["Resuming"] = "Resuming";
|
91
|
+
})(exports.KnownRunningState || (exports.KnownRunningState = {}));
|
78
92
|
/** Known values of {@link LedgerType} that the service accepts. */
|
79
93
|
exports.KnownLedgerType = void 0;
|
80
94
|
(function (KnownLedgerType) {
|
@@ -125,6 +139,14 @@ exports.KnownCreatedByType = void 0;
|
|
125
139
|
/** Key */
|
126
140
|
KnownCreatedByType["Key"] = "Key";
|
127
141
|
})(exports.KnownCreatedByType || (exports.KnownCreatedByType = {}));
|
142
|
+
/** Known values of {@link LanguageRuntime} that the service accepts. */
|
143
|
+
exports.KnownLanguageRuntime = void 0;
|
144
|
+
(function (KnownLanguageRuntime) {
|
145
|
+
/** CPP */
|
146
|
+
KnownLanguageRuntime["CPP"] = "CPP";
|
147
|
+
/** JS */
|
148
|
+
KnownLanguageRuntime["JS"] = "JS";
|
149
|
+
})(exports.KnownLanguageRuntime || (exports.KnownLanguageRuntime = {}));
|
128
150
|
|
129
151
|
/*
|
130
152
|
* Copyright (c) Microsoft Corporation.
|
@@ -483,15 +505,15 @@ const Resource = {
|
|
483
505
|
name: "Composite",
|
484
506
|
className: "Resource",
|
485
507
|
modelProperties: {
|
486
|
-
|
487
|
-
serializedName: "
|
508
|
+
id: {
|
509
|
+
serializedName: "id",
|
488
510
|
readOnly: true,
|
489
511
|
type: {
|
490
512
|
name: "String"
|
491
513
|
}
|
492
514
|
},
|
493
|
-
|
494
|
-
serializedName: "
|
515
|
+
name: {
|
516
|
+
serializedName: "name",
|
495
517
|
readOnly: true,
|
496
518
|
type: {
|
497
519
|
name: "String"
|
@@ -558,13 +580,40 @@ const SystemData = {
|
|
558
580
|
}
|
559
581
|
}
|
560
582
|
};
|
561
|
-
const
|
583
|
+
const Tags = {
|
562
584
|
type: {
|
563
585
|
name: "Composite",
|
564
|
-
className: "
|
586
|
+
className: "Tags",
|
565
587
|
modelProperties: {
|
566
|
-
|
567
|
-
serializedName: "
|
588
|
+
tags: {
|
589
|
+
serializedName: "tags",
|
590
|
+
type: {
|
591
|
+
name: "Dictionary",
|
592
|
+
value: { type: { name: "String" } }
|
593
|
+
}
|
594
|
+
}
|
595
|
+
}
|
596
|
+
}
|
597
|
+
};
|
598
|
+
const ConfidentialLedgerList = {
|
599
|
+
type: {
|
600
|
+
name: "Composite",
|
601
|
+
className: "ConfidentialLedgerList",
|
602
|
+
modelProperties: {
|
603
|
+
value: {
|
604
|
+
serializedName: "value",
|
605
|
+
type: {
|
606
|
+
name: "Sequence",
|
607
|
+
element: {
|
608
|
+
type: {
|
609
|
+
name: "Composite",
|
610
|
+
className: "ConfidentialLedger"
|
611
|
+
}
|
612
|
+
}
|
613
|
+
}
|
614
|
+
},
|
615
|
+
nextLink: {
|
616
|
+
serializedName: "nextLink",
|
568
617
|
type: {
|
569
618
|
name: "String"
|
570
619
|
}
|
@@ -572,25 +621,118 @@ const ResourceLocation = {
|
|
572
621
|
}
|
573
622
|
}
|
574
623
|
};
|
575
|
-
const
|
624
|
+
const ManagedCCFProperties = {
|
576
625
|
type: {
|
577
626
|
name: "Composite",
|
578
|
-
className: "
|
627
|
+
className: "ManagedCCFProperties",
|
628
|
+
modelProperties: {
|
629
|
+
appName: {
|
630
|
+
serializedName: "appName",
|
631
|
+
readOnly: true,
|
632
|
+
type: {
|
633
|
+
name: "String"
|
634
|
+
}
|
635
|
+
},
|
636
|
+
appUri: {
|
637
|
+
serializedName: "appUri",
|
638
|
+
readOnly: true,
|
639
|
+
type: {
|
640
|
+
name: "String"
|
641
|
+
}
|
642
|
+
},
|
643
|
+
identityServiceUri: {
|
644
|
+
serializedName: "identityServiceUri",
|
645
|
+
readOnly: true,
|
646
|
+
type: {
|
647
|
+
name: "String"
|
648
|
+
}
|
649
|
+
},
|
650
|
+
memberIdentityCertificates: {
|
651
|
+
serializedName: "memberIdentityCertificates",
|
652
|
+
type: {
|
653
|
+
name: "Sequence",
|
654
|
+
element: {
|
655
|
+
type: {
|
656
|
+
name: "Composite",
|
657
|
+
className: "MemberIdentityCertificate"
|
658
|
+
}
|
659
|
+
}
|
660
|
+
}
|
661
|
+
},
|
662
|
+
deploymentType: {
|
663
|
+
serializedName: "deploymentType",
|
664
|
+
type: {
|
665
|
+
name: "Composite",
|
666
|
+
className: "DeploymentType"
|
667
|
+
}
|
668
|
+
},
|
669
|
+
provisioningState: {
|
670
|
+
serializedName: "provisioningState",
|
671
|
+
readOnly: true,
|
672
|
+
type: {
|
673
|
+
name: "String"
|
674
|
+
}
|
675
|
+
},
|
676
|
+
nodeCount: {
|
677
|
+
defaultValue: 3,
|
678
|
+
serializedName: "nodeCount",
|
679
|
+
type: {
|
680
|
+
name: "Number"
|
681
|
+
}
|
682
|
+
}
|
683
|
+
}
|
684
|
+
}
|
685
|
+
};
|
686
|
+
const MemberIdentityCertificate = {
|
687
|
+
type: {
|
688
|
+
name: "Composite",
|
689
|
+
className: "MemberIdentityCertificate",
|
579
690
|
modelProperties: {
|
691
|
+
certificate: {
|
692
|
+
serializedName: "certificate",
|
693
|
+
type: {
|
694
|
+
name: "String"
|
695
|
+
}
|
696
|
+
},
|
697
|
+
encryptionkey: {
|
698
|
+
serializedName: "encryptionkey",
|
699
|
+
type: {
|
700
|
+
name: "String"
|
701
|
+
}
|
702
|
+
},
|
580
703
|
tags: {
|
581
704
|
serializedName: "tags",
|
582
705
|
type: {
|
583
|
-
name: "
|
584
|
-
value: { type: { name: "String" } }
|
706
|
+
name: "any"
|
585
707
|
}
|
586
708
|
}
|
587
709
|
}
|
588
710
|
}
|
589
711
|
};
|
590
|
-
const
|
712
|
+
const DeploymentType = {
|
591
713
|
type: {
|
592
714
|
name: "Composite",
|
593
|
-
className: "
|
715
|
+
className: "DeploymentType",
|
716
|
+
modelProperties: {
|
717
|
+
languageRuntime: {
|
718
|
+
serializedName: "languageRuntime",
|
719
|
+
type: {
|
720
|
+
name: "String"
|
721
|
+
}
|
722
|
+
},
|
723
|
+
appSourceUri: {
|
724
|
+
serializedName: "appSourceUri",
|
725
|
+
type: {
|
726
|
+
name: "String"
|
727
|
+
}
|
728
|
+
}
|
729
|
+
}
|
730
|
+
}
|
731
|
+
};
|
732
|
+
const ManagedCCFList = {
|
733
|
+
type: {
|
734
|
+
name: "Composite",
|
735
|
+
className: "ManagedCCFList",
|
594
736
|
modelProperties: {
|
595
737
|
value: {
|
596
738
|
serializedName: "value",
|
@@ -599,7 +741,7 @@ const ConfidentialLedgerList = {
|
|
599
741
|
element: {
|
600
742
|
type: {
|
601
743
|
name: "Composite",
|
602
|
-
className: "
|
744
|
+
className: "ManagedCCF"
|
603
745
|
}
|
604
746
|
}
|
605
747
|
}
|
@@ -613,11 +755,50 @@ const ConfidentialLedgerList = {
|
|
613
755
|
}
|
614
756
|
}
|
615
757
|
};
|
758
|
+
const CertificateTags = {
|
759
|
+
type: {
|
760
|
+
name: "Composite",
|
761
|
+
className: "CertificateTags",
|
762
|
+
modelProperties: {
|
763
|
+
tags: {
|
764
|
+
serializedName: "tags",
|
765
|
+
type: {
|
766
|
+
name: "Dictionary",
|
767
|
+
value: { type: { name: "String" } }
|
768
|
+
}
|
769
|
+
}
|
770
|
+
}
|
771
|
+
}
|
772
|
+
};
|
773
|
+
const TrackedResource = {
|
774
|
+
type: {
|
775
|
+
name: "Composite",
|
776
|
+
className: "TrackedResource",
|
777
|
+
modelProperties: Object.assign(Object.assign({}, Resource.type.modelProperties), { tags: {
|
778
|
+
serializedName: "tags",
|
779
|
+
type: {
|
780
|
+
name: "Dictionary",
|
781
|
+
value: { type: { name: "String" } }
|
782
|
+
}
|
783
|
+
}, location: {
|
784
|
+
serializedName: "location",
|
785
|
+
required: true,
|
786
|
+
type: {
|
787
|
+
name: "String"
|
788
|
+
}
|
789
|
+
} })
|
790
|
+
}
|
791
|
+
};
|
616
792
|
const ConfidentialLedger = {
|
617
793
|
type: {
|
618
794
|
name: "Composite",
|
619
795
|
className: "ConfidentialLedger",
|
620
|
-
modelProperties: Object.assign(Object.assign(Object.assign(
|
796
|
+
modelProperties: Object.assign(Object.assign(Object.assign({}, TrackedResource.type.modelProperties), Tags.type.modelProperties), { runningState: {
|
797
|
+
serializedName: "runningState",
|
798
|
+
type: {
|
799
|
+
name: "String"
|
800
|
+
}
|
801
|
+
}, properties: {
|
621
802
|
serializedName: "properties",
|
622
803
|
type: {
|
623
804
|
name: "Composite",
|
@@ -626,6 +807,19 @@ const ConfidentialLedger = {
|
|
626
807
|
} })
|
627
808
|
}
|
628
809
|
};
|
810
|
+
const ManagedCCF = {
|
811
|
+
type: {
|
812
|
+
name: "Composite",
|
813
|
+
className: "ManagedCCF",
|
814
|
+
modelProperties: Object.assign(Object.assign({}, TrackedResource.type.modelProperties), { properties: {
|
815
|
+
serializedName: "properties",
|
816
|
+
type: {
|
817
|
+
name: "Composite",
|
818
|
+
className: "ManagedCCFProperties"
|
819
|
+
}
|
820
|
+
} })
|
821
|
+
}
|
822
|
+
};
|
629
823
|
|
630
824
|
var Mappers = /*#__PURE__*/Object.freeze({
|
631
825
|
__proto__: null,
|
@@ -642,10 +836,16 @@ var Mappers = /*#__PURE__*/Object.freeze({
|
|
642
836
|
CertBasedSecurityPrincipal: CertBasedSecurityPrincipal,
|
643
837
|
Resource: Resource,
|
644
838
|
SystemData: SystemData,
|
645
|
-
ResourceLocation: ResourceLocation,
|
646
839
|
Tags: Tags,
|
647
840
|
ConfidentialLedgerList: ConfidentialLedgerList,
|
648
|
-
|
841
|
+
ManagedCCFProperties: ManagedCCFProperties,
|
842
|
+
MemberIdentityCertificate: MemberIdentityCertificate,
|
843
|
+
DeploymentType: DeploymentType,
|
844
|
+
ManagedCCFList: ManagedCCFList,
|
845
|
+
CertificateTags: CertificateTags,
|
846
|
+
TrackedResource: TrackedResource,
|
847
|
+
ConfidentialLedger: ConfidentialLedger,
|
848
|
+
ManagedCCF: ManagedCCF
|
649
849
|
});
|
650
850
|
|
651
851
|
/*
|
@@ -680,7 +880,7 @@ const $host = {
|
|
680
880
|
const apiVersion = {
|
681
881
|
parameterPath: "apiVersion",
|
682
882
|
mapper: {
|
683
|
-
defaultValue: "
|
883
|
+
defaultValue: "2023-01-26-preview",
|
684
884
|
isConstant: true,
|
685
885
|
serializedName: "api-version",
|
686
886
|
type: {
|
@@ -717,6 +917,9 @@ const nameAvailabilityRequest = {
|
|
717
917
|
const subscriptionId = {
|
718
918
|
parameterPath: "subscriptionId",
|
719
919
|
mapper: {
|
920
|
+
constraints: {
|
921
|
+
MinLength: 1
|
922
|
+
},
|
720
923
|
serializedName: "subscriptionId",
|
721
924
|
required: true,
|
722
925
|
type: {
|
@@ -729,7 +932,7 @@ const resourceGroupName = {
|
|
729
932
|
mapper: {
|
730
933
|
constraints: {
|
731
934
|
MaxLength: 90,
|
732
|
-
MinLength:
|
935
|
+
MinLength: 1
|
733
936
|
},
|
734
937
|
serializedName: "resourceGroupName",
|
735
938
|
required: true,
|
@@ -764,6 +967,23 @@ const filter = {
|
|
764
967
|
}
|
765
968
|
}
|
766
969
|
};
|
970
|
+
const appName = {
|
971
|
+
parameterPath: "appName",
|
972
|
+
mapper: {
|
973
|
+
constraints: {
|
974
|
+
Pattern: new RegExp("^[a-zA-Z0-9]")
|
975
|
+
},
|
976
|
+
serializedName: "appName",
|
977
|
+
required: true,
|
978
|
+
type: {
|
979
|
+
name: "String"
|
980
|
+
}
|
981
|
+
}
|
982
|
+
};
|
983
|
+
const managedCCF = {
|
984
|
+
parameterPath: "managedCCF",
|
985
|
+
mapper: ManagedCCF
|
986
|
+
};
|
767
987
|
|
768
988
|
/*
|
769
989
|
* Copyright (c) Microsoft Corporation.
|
@@ -825,17 +1045,24 @@ class OperationsImpl {
|
|
825
1045
|
}
|
826
1046
|
listPagingAll(options) {
|
827
1047
|
return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
|
828
|
-
var e_1,
|
1048
|
+
var _a, e_1, _b, _c;
|
829
1049
|
try {
|
830
|
-
for (var
|
831
|
-
|
832
|
-
|
1050
|
+
for (var _d = true, _e = tslib.__asyncValues(this.listPagingPage(options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a;) {
|
1051
|
+
_c = _f.value;
|
1052
|
+
_d = false;
|
1053
|
+
try {
|
1054
|
+
const page = _c;
|
1055
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
1056
|
+
}
|
1057
|
+
finally {
|
1058
|
+
_d = true;
|
1059
|
+
}
|
833
1060
|
}
|
834
1061
|
}
|
835
1062
|
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
836
1063
|
finally {
|
837
1064
|
try {
|
838
|
-
if (
|
1065
|
+
if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
|
839
1066
|
}
|
840
1067
|
finally { if (e_1) throw e_1.error; }
|
841
1068
|
}
|
@@ -858,7 +1085,7 @@ class OperationsImpl {
|
|
858
1085
|
}
|
859
1086
|
}
|
860
1087
|
// Operation Specifications
|
861
|
-
const serializer$
|
1088
|
+
const serializer$3 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
862
1089
|
const listOperationSpec = {
|
863
1090
|
path: "/providers/Microsoft.ConfidentialLedger/operations",
|
864
1091
|
httpMethod: "GET",
|
@@ -873,7 +1100,7 @@ const listOperationSpec = {
|
|
873
1100
|
queryParameters: [apiVersion],
|
874
1101
|
urlParameters: [$host],
|
875
1102
|
headerParameters: [accept],
|
876
|
-
serializer: serializer$
|
1103
|
+
serializer: serializer$3
|
877
1104
|
};
|
878
1105
|
const listNextOperationSpec = {
|
879
1106
|
path: "{nextLink}",
|
@@ -888,7 +1115,7 @@ const listNextOperationSpec = {
|
|
888
1115
|
},
|
889
1116
|
urlParameters: [$host, nextLink],
|
890
1117
|
headerParameters: [accept],
|
891
|
-
serializer: serializer$
|
1118
|
+
serializer: serializer$3
|
892
1119
|
};
|
893
1120
|
|
894
1121
|
/*
|
@@ -898,25 +1125,17 @@ const listNextOperationSpec = {
|
|
898
1125
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
899
1126
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
900
1127
|
*/
|
901
|
-
|
902
|
-
|
903
|
-
|
904
|
-
|
905
|
-
|
906
|
-
|
907
|
-
|
908
|
-
|
909
|
-
|
910
|
-
|
911
|
-
|
912
|
-
});
|
913
|
-
}
|
914
|
-
sendPollRequest(path) {
|
915
|
-
return tslib.__awaiter(this, void 0, void 0, function* () {
|
916
|
-
const _a = this.spec, restSpec = tslib.__rest(_a, ["requestBody"]);
|
917
|
-
return this.sendOperationFn(this.args, Object.assign(Object.assign({}, restSpec), { path, httpMethod: "GET" }));
|
918
|
-
});
|
919
|
-
}
|
1128
|
+
function createLroSpec(inputs) {
|
1129
|
+
const { args, spec, sendOperationFn } = inputs;
|
1130
|
+
return {
|
1131
|
+
requestMethod: spec.httpMethod,
|
1132
|
+
requestPath: spec.path,
|
1133
|
+
sendInitialRequest: () => sendOperationFn(args, spec),
|
1134
|
+
sendPollRequest: (path, options) => {
|
1135
|
+
const restSpec = tslib.__rest(spec, ["requestBody"]);
|
1136
|
+
return sendOperationFn(args, Object.assign(Object.assign({}, restSpec), { httpMethod: "GET", path, abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal }));
|
1137
|
+
}
|
1138
|
+
};
|
920
1139
|
}
|
921
1140
|
|
922
1141
|
/*
|
@@ -938,7 +1157,7 @@ class LedgerImpl {
|
|
938
1157
|
}
|
939
1158
|
/**
|
940
1159
|
* Retrieves the properties of all Confidential Ledgers.
|
941
|
-
* @param resourceGroupName The name of the resource group.
|
1160
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
942
1161
|
* @param options The options parameters.
|
943
1162
|
*/
|
944
1163
|
listByResourceGroup(resourceGroupName, options) {
|
@@ -980,17 +1199,24 @@ class LedgerImpl {
|
|
980
1199
|
}
|
981
1200
|
listByResourceGroupPagingAll(resourceGroupName, options) {
|
982
1201
|
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingAll_1() {
|
983
|
-
var e_1,
|
1202
|
+
var _a, e_1, _b, _c;
|
984
1203
|
try {
|
985
|
-
for (var
|
986
|
-
|
987
|
-
|
1204
|
+
for (var _d = true, _e = tslib.__asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a;) {
|
1205
|
+
_c = _f.value;
|
1206
|
+
_d = false;
|
1207
|
+
try {
|
1208
|
+
const page = _c;
|
1209
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
1210
|
+
}
|
1211
|
+
finally {
|
1212
|
+
_d = true;
|
1213
|
+
}
|
988
1214
|
}
|
989
1215
|
}
|
990
1216
|
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
991
1217
|
finally {
|
992
1218
|
try {
|
993
|
-
if (
|
1219
|
+
if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
|
994
1220
|
}
|
995
1221
|
finally { if (e_1) throw e_1.error; }
|
996
1222
|
}
|
@@ -1039,17 +1265,24 @@ class LedgerImpl {
|
|
1039
1265
|
}
|
1040
1266
|
listBySubscriptionPagingAll(options) {
|
1041
1267
|
return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingAll_1() {
|
1042
|
-
var e_2,
|
1268
|
+
var _a, e_2, _b, _c;
|
1043
1269
|
try {
|
1044
|
-
for (var
|
1045
|
-
|
1046
|
-
|
1270
|
+
for (var _d = true, _e = tslib.__asyncValues(this.listBySubscriptionPagingPage(options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a;) {
|
1271
|
+
_c = _f.value;
|
1272
|
+
_d = false;
|
1273
|
+
try {
|
1274
|
+
const page = _c;
|
1275
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
1276
|
+
}
|
1277
|
+
finally {
|
1278
|
+
_d = true;
|
1279
|
+
}
|
1047
1280
|
}
|
1048
1281
|
}
|
1049
1282
|
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
1050
1283
|
finally {
|
1051
1284
|
try {
|
1052
|
-
if (
|
1285
|
+
if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
|
1053
1286
|
}
|
1054
1287
|
finally { if (e_2) throw e_2.error; }
|
1055
1288
|
}
|
@@ -1057,16 +1290,16 @@ class LedgerImpl {
|
|
1057
1290
|
}
|
1058
1291
|
/**
|
1059
1292
|
* Retrieves the properties of a Confidential Ledger.
|
1060
|
-
* @param resourceGroupName The name of the resource group.
|
1293
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
1061
1294
|
* @param ledgerName Name of the Confidential Ledger
|
1062
1295
|
* @param options The options parameters.
|
1063
1296
|
*/
|
1064
1297
|
get(resourceGroupName, ledgerName, options) {
|
1065
|
-
return this.client.sendOperationRequest({ resourceGroupName, ledgerName, options }, getOperationSpec);
|
1298
|
+
return this.client.sendOperationRequest({ resourceGroupName, ledgerName, options }, getOperationSpec$1);
|
1066
1299
|
}
|
1067
1300
|
/**
|
1068
1301
|
* Deletes an existing Confidential Ledger.
|
1069
|
-
* @param resourceGroupName The name of the resource group.
|
1302
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
1070
1303
|
* @param ledgerName Name of the Confidential Ledger
|
1071
1304
|
* @param options The options parameters.
|
1072
1305
|
*/
|
@@ -1075,7 +1308,7 @@ class LedgerImpl {
|
|
1075
1308
|
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
1076
1309
|
return this.client.sendOperationRequest(args, spec);
|
1077
1310
|
});
|
1078
|
-
const
|
1311
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
1079
1312
|
var _a;
|
1080
1313
|
let currentRawResponse = undefined;
|
1081
1314
|
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
@@ -1094,9 +1327,13 @@ class LedgerImpl {
|
|
1094
1327
|
}
|
1095
1328
|
};
|
1096
1329
|
});
|
1097
|
-
const lro =
|
1098
|
-
|
1099
|
-
|
1330
|
+
const lro = createLroSpec({
|
1331
|
+
sendOperationFn,
|
1332
|
+
args: { resourceGroupName, ledgerName, options },
|
1333
|
+
spec: deleteOperationSpec$1
|
1334
|
+
});
|
1335
|
+
const poller = yield coreLro.createHttpPoller(lro, {
|
1336
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
1100
1337
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
1101
1338
|
});
|
1102
1339
|
yield poller.poll();
|
@@ -1105,7 +1342,7 @@ class LedgerImpl {
|
|
1105
1342
|
}
|
1106
1343
|
/**
|
1107
1344
|
* Deletes an existing Confidential Ledger.
|
1108
|
-
* @param resourceGroupName The name of the resource group.
|
1345
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
1109
1346
|
* @param ledgerName Name of the Confidential Ledger
|
1110
1347
|
* @param options The options parameters.
|
1111
1348
|
*/
|
@@ -1117,7 +1354,7 @@ class LedgerImpl {
|
|
1117
1354
|
}
|
1118
1355
|
/**
|
1119
1356
|
* Creates a Confidential Ledger with the specified ledger parameters.
|
1120
|
-
* @param resourceGroupName The name of the resource group.
|
1357
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
1121
1358
|
* @param ledgerName Name of the Confidential Ledger
|
1122
1359
|
* @param confidentialLedger Confidential Ledger Create Request Body
|
1123
1360
|
* @param options The options parameters.
|
@@ -1127,7 +1364,7 @@ class LedgerImpl {
|
|
1127
1364
|
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
1128
1365
|
return this.client.sendOperationRequest(args, spec);
|
1129
1366
|
});
|
1130
|
-
const
|
1367
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
1131
1368
|
var _a;
|
1132
1369
|
let currentRawResponse = undefined;
|
1133
1370
|
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
@@ -1146,11 +1383,15 @@ class LedgerImpl {
|
|
1146
1383
|
}
|
1147
1384
|
};
|
1148
1385
|
});
|
1149
|
-
const lro =
|
1150
|
-
|
1151
|
-
|
1386
|
+
const lro = createLroSpec({
|
1387
|
+
sendOperationFn,
|
1388
|
+
args: { resourceGroupName, ledgerName, confidentialLedger, options },
|
1389
|
+
spec: createOperationSpec$1
|
1390
|
+
});
|
1391
|
+
const poller = yield coreLro.createHttpPoller(lro, {
|
1392
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
1152
1393
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
1153
|
-
|
1394
|
+
resourceLocationConfig: "azure-async-operation"
|
1154
1395
|
});
|
1155
1396
|
yield poller.poll();
|
1156
1397
|
return poller;
|
@@ -1158,7 +1399,7 @@ class LedgerImpl {
|
|
1158
1399
|
}
|
1159
1400
|
/**
|
1160
1401
|
* Creates a Confidential Ledger with the specified ledger parameters.
|
1161
|
-
* @param resourceGroupName The name of the resource group.
|
1402
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
1162
1403
|
* @param ledgerName Name of the Confidential Ledger
|
1163
1404
|
* @param confidentialLedger Confidential Ledger Create Request Body
|
1164
1405
|
* @param options The options parameters.
|
@@ -1171,7 +1412,7 @@ class LedgerImpl {
|
|
1171
1412
|
}
|
1172
1413
|
/**
|
1173
1414
|
* Updates properties of Confidential Ledger
|
1174
|
-
* @param resourceGroupName The name of the resource group.
|
1415
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
1175
1416
|
* @param ledgerName Name of the Confidential Ledger
|
1176
1417
|
* @param confidentialLedger Confidential Ledger request body for Updating Ledger
|
1177
1418
|
* @param options The options parameters.
|
@@ -1181,7 +1422,7 @@ class LedgerImpl {
|
|
1181
1422
|
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
1182
1423
|
return this.client.sendOperationRequest(args, spec);
|
1183
1424
|
});
|
1184
|
-
const
|
1425
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
1185
1426
|
var _a;
|
1186
1427
|
let currentRawResponse = undefined;
|
1187
1428
|
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
@@ -1200,9 +1441,13 @@ class LedgerImpl {
|
|
1200
1441
|
}
|
1201
1442
|
};
|
1202
1443
|
});
|
1203
|
-
const lro =
|
1204
|
-
|
1205
|
-
|
1444
|
+
const lro = createLroSpec({
|
1445
|
+
sendOperationFn,
|
1446
|
+
args: { resourceGroupName, ledgerName, confidentialLedger, options },
|
1447
|
+
spec: updateOperationSpec$1
|
1448
|
+
});
|
1449
|
+
const poller = yield coreLro.createHttpPoller(lro, {
|
1450
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
1206
1451
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
1207
1452
|
});
|
1208
1453
|
yield poller.poll();
|
@@ -1211,7 +1456,7 @@ class LedgerImpl {
|
|
1211
1456
|
}
|
1212
1457
|
/**
|
1213
1458
|
* Updates properties of Confidential Ledger
|
1214
|
-
* @param resourceGroupName The name of the resource group.
|
1459
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
1215
1460
|
* @param ledgerName Name of the Confidential Ledger
|
1216
1461
|
* @param confidentialLedger Confidential Ledger request body for Updating Ledger
|
1217
1462
|
* @param options The options parameters.
|
@@ -1224,27 +1469,27 @@ class LedgerImpl {
|
|
1224
1469
|
}
|
1225
1470
|
/**
|
1226
1471
|
* Retrieves the properties of all Confidential Ledgers.
|
1227
|
-
* @param resourceGroupName The name of the resource group.
|
1472
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
1228
1473
|
* @param options The options parameters.
|
1229
1474
|
*/
|
1230
1475
|
_listByResourceGroup(resourceGroupName, options) {
|
1231
|
-
return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec);
|
1476
|
+
return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec$1);
|
1232
1477
|
}
|
1233
1478
|
/**
|
1234
1479
|
* Retrieves the properties of all Confidential Ledgers.
|
1235
1480
|
* @param options The options parameters.
|
1236
1481
|
*/
|
1237
1482
|
_listBySubscription(options) {
|
1238
|
-
return this.client.sendOperationRequest({ options }, listBySubscriptionOperationSpec);
|
1483
|
+
return this.client.sendOperationRequest({ options }, listBySubscriptionOperationSpec$1);
|
1239
1484
|
}
|
1240
1485
|
/**
|
1241
1486
|
* ListByResourceGroupNext
|
1242
|
-
* @param resourceGroupName The name of the resource group.
|
1487
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
1243
1488
|
* @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
|
1244
1489
|
* @param options The options parameters.
|
1245
1490
|
*/
|
1246
1491
|
_listByResourceGroupNext(resourceGroupName, nextLink, options) {
|
1247
|
-
return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listByResourceGroupNextOperationSpec);
|
1492
|
+
return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listByResourceGroupNextOperationSpec$1);
|
1248
1493
|
}
|
1249
1494
|
/**
|
1250
1495
|
* ListBySubscriptionNext
|
@@ -1252,12 +1497,12 @@ class LedgerImpl {
|
|
1252
1497
|
* @param options The options parameters.
|
1253
1498
|
*/
|
1254
1499
|
_listBySubscriptionNext(nextLink, options) {
|
1255
|
-
return this.client.sendOperationRequest({ nextLink, options }, listBySubscriptionNextOperationSpec);
|
1500
|
+
return this.client.sendOperationRequest({ nextLink, options }, listBySubscriptionNextOperationSpec$1);
|
1256
1501
|
}
|
1257
1502
|
}
|
1258
1503
|
// Operation Specifications
|
1259
|
-
const serializer$
|
1260
|
-
const getOperationSpec = {
|
1504
|
+
const serializer$2 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
1505
|
+
const getOperationSpec$1 = {
|
1261
1506
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConfidentialLedger/ledgers/{ledgerName}",
|
1262
1507
|
httpMethod: "GET",
|
1263
1508
|
responses: {
|
@@ -1276,9 +1521,9 @@ const getOperationSpec = {
|
|
1276
1521
|
ledgerName
|
1277
1522
|
],
|
1278
1523
|
headerParameters: [accept],
|
1279
|
-
serializer: serializer$
|
1524
|
+
serializer: serializer$2
|
1280
1525
|
};
|
1281
|
-
const deleteOperationSpec = {
|
1526
|
+
const deleteOperationSpec$1 = {
|
1282
1527
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConfidentialLedger/ledgers/{ledgerName}",
|
1283
1528
|
httpMethod: "DELETE",
|
1284
1529
|
responses: {
|
@@ -1298,9 +1543,9 @@ const deleteOperationSpec = {
|
|
1298
1543
|
ledgerName
|
1299
1544
|
],
|
1300
1545
|
headerParameters: [accept],
|
1301
|
-
serializer: serializer$
|
1546
|
+
serializer: serializer$2
|
1302
1547
|
};
|
1303
|
-
const createOperationSpec = {
|
1548
|
+
const createOperationSpec$1 = {
|
1304
1549
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConfidentialLedger/ledgers/{ledgerName}",
|
1305
1550
|
httpMethod: "PUT",
|
1306
1551
|
responses: {
|
@@ -1330,9 +1575,9 @@ const createOperationSpec = {
|
|
1330
1575
|
],
|
1331
1576
|
headerParameters: [accept, contentType],
|
1332
1577
|
mediaType: "json",
|
1333
|
-
serializer: serializer$
|
1578
|
+
serializer: serializer$2
|
1334
1579
|
};
|
1335
|
-
const updateOperationSpec = {
|
1580
|
+
const updateOperationSpec$1 = {
|
1336
1581
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConfidentialLedger/ledgers/{ledgerName}",
|
1337
1582
|
httpMethod: "PATCH",
|
1338
1583
|
responses: {
|
@@ -1362,9 +1607,9 @@ const updateOperationSpec = {
|
|
1362
1607
|
],
|
1363
1608
|
headerParameters: [accept, contentType],
|
1364
1609
|
mediaType: "json",
|
1365
|
-
serializer: serializer$
|
1610
|
+
serializer: serializer$2
|
1366
1611
|
};
|
1367
|
-
const listByResourceGroupOperationSpec = {
|
1612
|
+
const listByResourceGroupOperationSpec$1 = {
|
1368
1613
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConfidentialLedger/ledgers",
|
1369
1614
|
httpMethod: "GET",
|
1370
1615
|
responses: {
|
@@ -1382,9 +1627,9 @@ const listByResourceGroupOperationSpec = {
|
|
1382
1627
|
resourceGroupName
|
1383
1628
|
],
|
1384
1629
|
headerParameters: [accept],
|
1385
|
-
serializer: serializer$
|
1630
|
+
serializer: serializer$2
|
1386
1631
|
};
|
1387
|
-
const listBySubscriptionOperationSpec = {
|
1632
|
+
const listBySubscriptionOperationSpec$1 = {
|
1388
1633
|
path: "/subscriptions/{subscriptionId}/providers/Microsoft.ConfidentialLedger/ledgers/",
|
1389
1634
|
httpMethod: "GET",
|
1390
1635
|
responses: {
|
@@ -1398,9 +1643,9 @@ const listBySubscriptionOperationSpec = {
|
|
1398
1643
|
queryParameters: [apiVersion, filter],
|
1399
1644
|
urlParameters: [$host, subscriptionId],
|
1400
1645
|
headerParameters: [accept],
|
1401
|
-
serializer: serializer$
|
1646
|
+
serializer: serializer$2
|
1402
1647
|
};
|
1403
|
-
const listByResourceGroupNextOperationSpec = {
|
1648
|
+
const listByResourceGroupNextOperationSpec$1 = {
|
1404
1649
|
path: "{nextLink}",
|
1405
1650
|
httpMethod: "GET",
|
1406
1651
|
responses: {
|
@@ -1418,9 +1663,9 @@ const listByResourceGroupNextOperationSpec = {
|
|
1418
1663
|
resourceGroupName
|
1419
1664
|
],
|
1420
1665
|
headerParameters: [accept],
|
1421
|
-
serializer: serializer$
|
1666
|
+
serializer: serializer$2
|
1422
1667
|
};
|
1423
|
-
const listBySubscriptionNextOperationSpec = {
|
1668
|
+
const listBySubscriptionNextOperationSpec$1 = {
|
1424
1669
|
path: "{nextLink}",
|
1425
1670
|
httpMethod: "GET",
|
1426
1671
|
responses: {
|
@@ -1437,6 +1682,545 @@ const listBySubscriptionNextOperationSpec = {
|
|
1437
1682
|
subscriptionId
|
1438
1683
|
],
|
1439
1684
|
headerParameters: [accept],
|
1685
|
+
serializer: serializer$2
|
1686
|
+
};
|
1687
|
+
|
1688
|
+
/*
|
1689
|
+
* Copyright (c) Microsoft Corporation.
|
1690
|
+
* Licensed under the MIT License.
|
1691
|
+
*
|
1692
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
1693
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
1694
|
+
*/
|
1695
|
+
/// <reference lib="esnext.asynciterable" />
|
1696
|
+
/** Class containing ManagedCCFOperations operations. */
|
1697
|
+
class ManagedCCFOperationsImpl {
|
1698
|
+
/**
|
1699
|
+
* Initialize a new instance of the class ManagedCCFOperations class.
|
1700
|
+
* @param client Reference to the service client
|
1701
|
+
*/
|
1702
|
+
constructor(client) {
|
1703
|
+
this.client = client;
|
1704
|
+
}
|
1705
|
+
/**
|
1706
|
+
* Retrieves the properties of all Managed CCF apps.
|
1707
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
1708
|
+
* @param options The options parameters.
|
1709
|
+
*/
|
1710
|
+
listByResourceGroup(resourceGroupName, options) {
|
1711
|
+
const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
|
1712
|
+
return {
|
1713
|
+
next() {
|
1714
|
+
return iter.next();
|
1715
|
+
},
|
1716
|
+
[Symbol.asyncIterator]() {
|
1717
|
+
return this;
|
1718
|
+
},
|
1719
|
+
byPage: (settings) => {
|
1720
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
1721
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
1722
|
+
}
|
1723
|
+
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
1724
|
+
}
|
1725
|
+
};
|
1726
|
+
}
|
1727
|
+
listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
1728
|
+
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
|
1729
|
+
let result;
|
1730
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
1731
|
+
if (!continuationToken) {
|
1732
|
+
result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
|
1733
|
+
let page = result.value || [];
|
1734
|
+
continuationToken = result.nextLink;
|
1735
|
+
setContinuationToken(page, continuationToken);
|
1736
|
+
yield yield tslib.__await(page);
|
1737
|
+
}
|
1738
|
+
while (continuationToken) {
|
1739
|
+
result = yield tslib.__await(this._listByResourceGroupNext(resourceGroupName, continuationToken, options));
|
1740
|
+
continuationToken = result.nextLink;
|
1741
|
+
let page = result.value || [];
|
1742
|
+
setContinuationToken(page, continuationToken);
|
1743
|
+
yield yield tslib.__await(page);
|
1744
|
+
}
|
1745
|
+
});
|
1746
|
+
}
|
1747
|
+
listByResourceGroupPagingAll(resourceGroupName, options) {
|
1748
|
+
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingAll_1() {
|
1749
|
+
var _a, e_1, _b, _c;
|
1750
|
+
try {
|
1751
|
+
for (var _d = true, _e = tslib.__asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a;) {
|
1752
|
+
_c = _f.value;
|
1753
|
+
_d = false;
|
1754
|
+
try {
|
1755
|
+
const page = _c;
|
1756
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
1757
|
+
}
|
1758
|
+
finally {
|
1759
|
+
_d = true;
|
1760
|
+
}
|
1761
|
+
}
|
1762
|
+
}
|
1763
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
1764
|
+
finally {
|
1765
|
+
try {
|
1766
|
+
if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
|
1767
|
+
}
|
1768
|
+
finally { if (e_1) throw e_1.error; }
|
1769
|
+
}
|
1770
|
+
});
|
1771
|
+
}
|
1772
|
+
/**
|
1773
|
+
* Retrieves the properties of all Managed CCF.
|
1774
|
+
* @param options The options parameters.
|
1775
|
+
*/
|
1776
|
+
listBySubscription(options) {
|
1777
|
+
const iter = this.listBySubscriptionPagingAll(options);
|
1778
|
+
return {
|
1779
|
+
next() {
|
1780
|
+
return iter.next();
|
1781
|
+
},
|
1782
|
+
[Symbol.asyncIterator]() {
|
1783
|
+
return this;
|
1784
|
+
},
|
1785
|
+
byPage: (settings) => {
|
1786
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
1787
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
1788
|
+
}
|
1789
|
+
return this.listBySubscriptionPagingPage(options, settings);
|
1790
|
+
}
|
1791
|
+
};
|
1792
|
+
}
|
1793
|
+
listBySubscriptionPagingPage(options, settings) {
|
1794
|
+
return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
|
1795
|
+
let result;
|
1796
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
1797
|
+
if (!continuationToken) {
|
1798
|
+
result = yield tslib.__await(this._listBySubscription(options));
|
1799
|
+
let page = result.value || [];
|
1800
|
+
continuationToken = result.nextLink;
|
1801
|
+
setContinuationToken(page, continuationToken);
|
1802
|
+
yield yield tslib.__await(page);
|
1803
|
+
}
|
1804
|
+
while (continuationToken) {
|
1805
|
+
result = yield tslib.__await(this._listBySubscriptionNext(continuationToken, options));
|
1806
|
+
continuationToken = result.nextLink;
|
1807
|
+
let page = result.value || [];
|
1808
|
+
setContinuationToken(page, continuationToken);
|
1809
|
+
yield yield tslib.__await(page);
|
1810
|
+
}
|
1811
|
+
});
|
1812
|
+
}
|
1813
|
+
listBySubscriptionPagingAll(options) {
|
1814
|
+
return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingAll_1() {
|
1815
|
+
var _a, e_2, _b, _c;
|
1816
|
+
try {
|
1817
|
+
for (var _d = true, _e = tslib.__asyncValues(this.listBySubscriptionPagingPage(options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a;) {
|
1818
|
+
_c = _f.value;
|
1819
|
+
_d = false;
|
1820
|
+
try {
|
1821
|
+
const page = _c;
|
1822
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
1823
|
+
}
|
1824
|
+
finally {
|
1825
|
+
_d = true;
|
1826
|
+
}
|
1827
|
+
}
|
1828
|
+
}
|
1829
|
+
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
1830
|
+
finally {
|
1831
|
+
try {
|
1832
|
+
if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
|
1833
|
+
}
|
1834
|
+
finally { if (e_2) throw e_2.error; }
|
1835
|
+
}
|
1836
|
+
});
|
1837
|
+
}
|
1838
|
+
/**
|
1839
|
+
* Retrieves the properties of a Managed CCF app.
|
1840
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
1841
|
+
* @param appName Name of the Managed CCF
|
1842
|
+
* @param options The options parameters.
|
1843
|
+
*/
|
1844
|
+
get(resourceGroupName, appName, options) {
|
1845
|
+
return this.client.sendOperationRequest({ resourceGroupName, appName, options }, getOperationSpec);
|
1846
|
+
}
|
1847
|
+
/**
|
1848
|
+
* Deletes an existing Managed CCF.
|
1849
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
1850
|
+
* @param appName Name of the Managed CCF
|
1851
|
+
* @param options The options parameters.
|
1852
|
+
*/
|
1853
|
+
beginDelete(resourceGroupName, appName, options) {
|
1854
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
1855
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
1856
|
+
return this.client.sendOperationRequest(args, spec);
|
1857
|
+
});
|
1858
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
1859
|
+
var _a;
|
1860
|
+
let currentRawResponse = undefined;
|
1861
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
1862
|
+
const callback = (rawResponse, flatResponse) => {
|
1863
|
+
currentRawResponse = rawResponse;
|
1864
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
1865
|
+
};
|
1866
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
1867
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
1868
|
+
return {
|
1869
|
+
flatResponse,
|
1870
|
+
rawResponse: {
|
1871
|
+
statusCode: currentRawResponse.status,
|
1872
|
+
body: currentRawResponse.parsedBody,
|
1873
|
+
headers: currentRawResponse.headers.toJSON()
|
1874
|
+
}
|
1875
|
+
};
|
1876
|
+
});
|
1877
|
+
const lro = createLroSpec({
|
1878
|
+
sendOperationFn,
|
1879
|
+
args: { resourceGroupName, appName, options },
|
1880
|
+
spec: deleteOperationSpec
|
1881
|
+
});
|
1882
|
+
const poller = yield coreLro.createHttpPoller(lro, {
|
1883
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
1884
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
1885
|
+
});
|
1886
|
+
yield poller.poll();
|
1887
|
+
return poller;
|
1888
|
+
});
|
1889
|
+
}
|
1890
|
+
/**
|
1891
|
+
* Deletes an existing Managed CCF.
|
1892
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
1893
|
+
* @param appName Name of the Managed CCF
|
1894
|
+
* @param options The options parameters.
|
1895
|
+
*/
|
1896
|
+
beginDeleteAndWait(resourceGroupName, appName, options) {
|
1897
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
1898
|
+
const poller = yield this.beginDelete(resourceGroupName, appName, options);
|
1899
|
+
return poller.pollUntilDone();
|
1900
|
+
});
|
1901
|
+
}
|
1902
|
+
/**
|
1903
|
+
* Creates a Managed CCF with the specified Managed CCF parameters.
|
1904
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
1905
|
+
* @param appName Name of the Managed CCF
|
1906
|
+
* @param managedCCF Managed CCF Create Request Body
|
1907
|
+
* @param options The options parameters.
|
1908
|
+
*/
|
1909
|
+
beginCreate(resourceGroupName, appName, managedCCF, options) {
|
1910
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
1911
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
1912
|
+
return this.client.sendOperationRequest(args, spec);
|
1913
|
+
});
|
1914
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
1915
|
+
var _a;
|
1916
|
+
let currentRawResponse = undefined;
|
1917
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
1918
|
+
const callback = (rawResponse, flatResponse) => {
|
1919
|
+
currentRawResponse = rawResponse;
|
1920
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
1921
|
+
};
|
1922
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
1923
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
1924
|
+
return {
|
1925
|
+
flatResponse,
|
1926
|
+
rawResponse: {
|
1927
|
+
statusCode: currentRawResponse.status,
|
1928
|
+
body: currentRawResponse.parsedBody,
|
1929
|
+
headers: currentRawResponse.headers.toJSON()
|
1930
|
+
}
|
1931
|
+
};
|
1932
|
+
});
|
1933
|
+
const lro = createLroSpec({
|
1934
|
+
sendOperationFn,
|
1935
|
+
args: { resourceGroupName, appName, managedCCF, options },
|
1936
|
+
spec: createOperationSpec
|
1937
|
+
});
|
1938
|
+
const poller = yield coreLro.createHttpPoller(lro, {
|
1939
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
1940
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
1941
|
+
resourceLocationConfig: "azure-async-operation"
|
1942
|
+
});
|
1943
|
+
yield poller.poll();
|
1944
|
+
return poller;
|
1945
|
+
});
|
1946
|
+
}
|
1947
|
+
/**
|
1948
|
+
* Creates a Managed CCF with the specified Managed CCF parameters.
|
1949
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
1950
|
+
* @param appName Name of the Managed CCF
|
1951
|
+
* @param managedCCF Managed CCF Create Request Body
|
1952
|
+
* @param options The options parameters.
|
1953
|
+
*/
|
1954
|
+
beginCreateAndWait(resourceGroupName, appName, managedCCF, options) {
|
1955
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
1956
|
+
const poller = yield this.beginCreate(resourceGroupName, appName, managedCCF, options);
|
1957
|
+
return poller.pollUntilDone();
|
1958
|
+
});
|
1959
|
+
}
|
1960
|
+
/**
|
1961
|
+
* Updates properties of Managed CCF
|
1962
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
1963
|
+
* @param appName Name of the Managed CCF
|
1964
|
+
* @param managedCCF Request body for Updating Managed CCF App
|
1965
|
+
* @param options The options parameters.
|
1966
|
+
*/
|
1967
|
+
beginUpdate(resourceGroupName, appName, managedCCF, options) {
|
1968
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
1969
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
1970
|
+
return this.client.sendOperationRequest(args, spec);
|
1971
|
+
});
|
1972
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
1973
|
+
var _a;
|
1974
|
+
let currentRawResponse = undefined;
|
1975
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
1976
|
+
const callback = (rawResponse, flatResponse) => {
|
1977
|
+
currentRawResponse = rawResponse;
|
1978
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
1979
|
+
};
|
1980
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
1981
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
1982
|
+
return {
|
1983
|
+
flatResponse,
|
1984
|
+
rawResponse: {
|
1985
|
+
statusCode: currentRawResponse.status,
|
1986
|
+
body: currentRawResponse.parsedBody,
|
1987
|
+
headers: currentRawResponse.headers.toJSON()
|
1988
|
+
}
|
1989
|
+
};
|
1990
|
+
});
|
1991
|
+
const lro = createLroSpec({
|
1992
|
+
sendOperationFn,
|
1993
|
+
args: { resourceGroupName, appName, managedCCF, options },
|
1994
|
+
spec: updateOperationSpec
|
1995
|
+
});
|
1996
|
+
const poller = yield coreLro.createHttpPoller(lro, {
|
1997
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
1998
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
1999
|
+
});
|
2000
|
+
yield poller.poll();
|
2001
|
+
return poller;
|
2002
|
+
});
|
2003
|
+
}
|
2004
|
+
/**
|
2005
|
+
* Updates properties of Managed CCF
|
2006
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
2007
|
+
* @param appName Name of the Managed CCF
|
2008
|
+
* @param managedCCF Request body for Updating Managed CCF App
|
2009
|
+
* @param options The options parameters.
|
2010
|
+
*/
|
2011
|
+
beginUpdateAndWait(resourceGroupName, appName, managedCCF, options) {
|
2012
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
2013
|
+
const poller = yield this.beginUpdate(resourceGroupName, appName, managedCCF, options);
|
2014
|
+
return poller.pollUntilDone();
|
2015
|
+
});
|
2016
|
+
}
|
2017
|
+
/**
|
2018
|
+
* Retrieves the properties of all Managed CCF apps.
|
2019
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
2020
|
+
* @param options The options parameters.
|
2021
|
+
*/
|
2022
|
+
_listByResourceGroup(resourceGroupName, options) {
|
2023
|
+
return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec);
|
2024
|
+
}
|
2025
|
+
/**
|
2026
|
+
* Retrieves the properties of all Managed CCF.
|
2027
|
+
* @param options The options parameters.
|
2028
|
+
*/
|
2029
|
+
_listBySubscription(options) {
|
2030
|
+
return this.client.sendOperationRequest({ options }, listBySubscriptionOperationSpec);
|
2031
|
+
}
|
2032
|
+
/**
|
2033
|
+
* ListByResourceGroupNext
|
2034
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
2035
|
+
* @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
|
2036
|
+
* @param options The options parameters.
|
2037
|
+
*/
|
2038
|
+
_listByResourceGroupNext(resourceGroupName, nextLink, options) {
|
2039
|
+
return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listByResourceGroupNextOperationSpec);
|
2040
|
+
}
|
2041
|
+
/**
|
2042
|
+
* ListBySubscriptionNext
|
2043
|
+
* @param nextLink The nextLink from the previous successful call to the ListBySubscription method.
|
2044
|
+
* @param options The options parameters.
|
2045
|
+
*/
|
2046
|
+
_listBySubscriptionNext(nextLink, options) {
|
2047
|
+
return this.client.sendOperationRequest({ nextLink, options }, listBySubscriptionNextOperationSpec);
|
2048
|
+
}
|
2049
|
+
}
|
2050
|
+
// Operation Specifications
|
2051
|
+
const serializer$1 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
2052
|
+
const getOperationSpec = {
|
2053
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConfidentialLedger/managedCCFs/{appName}",
|
2054
|
+
httpMethod: "GET",
|
2055
|
+
responses: {
|
2056
|
+
200: {
|
2057
|
+
bodyMapper: ManagedCCF
|
2058
|
+
},
|
2059
|
+
default: {
|
2060
|
+
bodyMapper: ErrorResponse
|
2061
|
+
}
|
2062
|
+
},
|
2063
|
+
queryParameters: [apiVersion],
|
2064
|
+
urlParameters: [
|
2065
|
+
$host,
|
2066
|
+
subscriptionId,
|
2067
|
+
resourceGroupName,
|
2068
|
+
appName
|
2069
|
+
],
|
2070
|
+
headerParameters: [accept],
|
2071
|
+
serializer: serializer$1
|
2072
|
+
};
|
2073
|
+
const deleteOperationSpec = {
|
2074
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConfidentialLedger/managedCCFs/{appName}",
|
2075
|
+
httpMethod: "DELETE",
|
2076
|
+
responses: {
|
2077
|
+
200: {},
|
2078
|
+
201: {},
|
2079
|
+
202: {},
|
2080
|
+
204: {},
|
2081
|
+
default: {
|
2082
|
+
bodyMapper: ErrorResponse
|
2083
|
+
}
|
2084
|
+
},
|
2085
|
+
queryParameters: [apiVersion],
|
2086
|
+
urlParameters: [
|
2087
|
+
$host,
|
2088
|
+
subscriptionId,
|
2089
|
+
resourceGroupName,
|
2090
|
+
appName
|
2091
|
+
],
|
2092
|
+
headerParameters: [accept],
|
2093
|
+
serializer: serializer$1
|
2094
|
+
};
|
2095
|
+
const createOperationSpec = {
|
2096
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConfidentialLedger/managedCCFs/{appName}",
|
2097
|
+
httpMethod: "PUT",
|
2098
|
+
responses: {
|
2099
|
+
200: {
|
2100
|
+
bodyMapper: ManagedCCF
|
2101
|
+
},
|
2102
|
+
201: {
|
2103
|
+
bodyMapper: ManagedCCF
|
2104
|
+
},
|
2105
|
+
202: {
|
2106
|
+
bodyMapper: ManagedCCF
|
2107
|
+
},
|
2108
|
+
204: {
|
2109
|
+
bodyMapper: ManagedCCF
|
2110
|
+
},
|
2111
|
+
default: {
|
2112
|
+
bodyMapper: ErrorResponse
|
2113
|
+
}
|
2114
|
+
},
|
2115
|
+
requestBody: managedCCF,
|
2116
|
+
queryParameters: [apiVersion],
|
2117
|
+
urlParameters: [
|
2118
|
+
$host,
|
2119
|
+
subscriptionId,
|
2120
|
+
resourceGroupName,
|
2121
|
+
appName
|
2122
|
+
],
|
2123
|
+
headerParameters: [accept, contentType],
|
2124
|
+
mediaType: "json",
|
2125
|
+
serializer: serializer$1
|
2126
|
+
};
|
2127
|
+
const updateOperationSpec = {
|
2128
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConfidentialLedger/managedCCFs/{appName}",
|
2129
|
+
httpMethod: "PATCH",
|
2130
|
+
responses: {
|
2131
|
+
200: {},
|
2132
|
+
201: {},
|
2133
|
+
202: {},
|
2134
|
+
204: {},
|
2135
|
+
default: {
|
2136
|
+
bodyMapper: ErrorResponse
|
2137
|
+
}
|
2138
|
+
},
|
2139
|
+
requestBody: managedCCF,
|
2140
|
+
queryParameters: [apiVersion],
|
2141
|
+
urlParameters: [
|
2142
|
+
$host,
|
2143
|
+
subscriptionId,
|
2144
|
+
resourceGroupName,
|
2145
|
+
appName
|
2146
|
+
],
|
2147
|
+
headerParameters: [accept, contentType],
|
2148
|
+
mediaType: "json",
|
2149
|
+
serializer: serializer$1
|
2150
|
+
};
|
2151
|
+
const listByResourceGroupOperationSpec = {
|
2152
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConfidentialLedger/managedCCFs",
|
2153
|
+
httpMethod: "GET",
|
2154
|
+
responses: {
|
2155
|
+
200: {
|
2156
|
+
bodyMapper: ManagedCCFList
|
2157
|
+
},
|
2158
|
+
default: {
|
2159
|
+
bodyMapper: ErrorResponse
|
2160
|
+
}
|
2161
|
+
},
|
2162
|
+
queryParameters: [apiVersion, filter],
|
2163
|
+
urlParameters: [
|
2164
|
+
$host,
|
2165
|
+
subscriptionId,
|
2166
|
+
resourceGroupName
|
2167
|
+
],
|
2168
|
+
headerParameters: [accept],
|
2169
|
+
serializer: serializer$1
|
2170
|
+
};
|
2171
|
+
const listBySubscriptionOperationSpec = {
|
2172
|
+
path: "/subscriptions/{subscriptionId}/providers/Microsoft.ConfidentialLedger/managedCCFs/",
|
2173
|
+
httpMethod: "GET",
|
2174
|
+
responses: {
|
2175
|
+
200: {
|
2176
|
+
bodyMapper: ManagedCCFList
|
2177
|
+
},
|
2178
|
+
default: {
|
2179
|
+
bodyMapper: ErrorResponse
|
2180
|
+
}
|
2181
|
+
},
|
2182
|
+
queryParameters: [apiVersion, filter],
|
2183
|
+
urlParameters: [$host, subscriptionId],
|
2184
|
+
headerParameters: [accept],
|
2185
|
+
serializer: serializer$1
|
2186
|
+
};
|
2187
|
+
const listByResourceGroupNextOperationSpec = {
|
2188
|
+
path: "{nextLink}",
|
2189
|
+
httpMethod: "GET",
|
2190
|
+
responses: {
|
2191
|
+
200: {
|
2192
|
+
bodyMapper: ManagedCCFList
|
2193
|
+
},
|
2194
|
+
default: {
|
2195
|
+
bodyMapper: ErrorResponse
|
2196
|
+
}
|
2197
|
+
},
|
2198
|
+
urlParameters: [
|
2199
|
+
$host,
|
2200
|
+
nextLink,
|
2201
|
+
subscriptionId,
|
2202
|
+
resourceGroupName
|
2203
|
+
],
|
2204
|
+
headerParameters: [accept],
|
2205
|
+
serializer: serializer$1
|
2206
|
+
};
|
2207
|
+
const listBySubscriptionNextOperationSpec = {
|
2208
|
+
path: "{nextLink}",
|
2209
|
+
httpMethod: "GET",
|
2210
|
+
responses: {
|
2211
|
+
200: {
|
2212
|
+
bodyMapper: ManagedCCFList
|
2213
|
+
},
|
2214
|
+
default: {
|
2215
|
+
bodyMapper: ErrorResponse
|
2216
|
+
}
|
2217
|
+
},
|
2218
|
+
urlParameters: [
|
2219
|
+
$host,
|
2220
|
+
nextLink,
|
2221
|
+
subscriptionId
|
2222
|
+
],
|
2223
|
+
headerParameters: [accept],
|
1440
2224
|
serializer: serializer$1
|
1441
2225
|
};
|
1442
2226
|
|
@@ -1451,8 +2235,7 @@ class ConfidentialLedgerClient extends coreClient__namespace.ServiceClient {
|
|
1451
2235
|
/**
|
1452
2236
|
* Initializes a new instance of the ConfidentialLedgerClient class.
|
1453
2237
|
* @param credentials Subscription credentials which uniquely identify client subscription.
|
1454
|
-
* @param subscriptionId The
|
1455
|
-
* 00000000-0000-0000-0000-000000000000)
|
2238
|
+
* @param subscriptionId The ID of the target subscription.
|
1456
2239
|
* @param options The parameter options
|
1457
2240
|
*/
|
1458
2241
|
constructor(credentials, subscriptionId, options) {
|
@@ -1471,7 +2254,7 @@ class ConfidentialLedgerClient extends coreClient__namespace.ServiceClient {
|
|
1471
2254
|
requestContentType: "application/json; charset=utf-8",
|
1472
2255
|
credential: credentials
|
1473
2256
|
};
|
1474
|
-
const packageDetails = `azsdk-js-arm-confidentialledger/1.
|
2257
|
+
const packageDetails = `azsdk-js-arm-confidentialledger/1.3.0-beta.1`;
|
1475
2258
|
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
1476
2259
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
1477
2260
|
: `${packageDetails}`;
|
@@ -1504,9 +2287,10 @@ class ConfidentialLedgerClient extends coreClient__namespace.ServiceClient {
|
|
1504
2287
|
this.subscriptionId = subscriptionId;
|
1505
2288
|
// Assigning values to Constant parameters
|
1506
2289
|
this.$host = options.$host || "https://management.azure.com";
|
1507
|
-
this.apiVersion = options.apiVersion || "
|
2290
|
+
this.apiVersion = options.apiVersion || "2023-01-26-preview";
|
1508
2291
|
this.operations = new OperationsImpl(this);
|
1509
2292
|
this.ledger = new LedgerImpl(this);
|
2293
|
+
this.managedCCFOperations = new ManagedCCFOperationsImpl(this);
|
1510
2294
|
this.addCustomApiVersionPolicy(options.apiVersion);
|
1511
2295
|
}
|
1512
2296
|
/** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
|