@azure/arm-confidentialledger 1.2.1-alpha.20230303.1 → 1.3.0-alpha.20230410.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.
Files changed (94) hide show
  1. package/CHANGELOG.md +33 -10
  2. package/README.md +1 -1
  3. package/dist/index.js +839 -90
  4. package/dist/index.js.map +1 -1
  5. package/dist/index.min.js +1 -1
  6. package/dist/index.min.js.map +1 -1
  7. package/dist-esm/samples-dev/checkNameAvailabilitySample.js +1 -1
  8. package/dist-esm/samples-dev/ledgerCreateSample.js +1 -1
  9. package/dist-esm/samples-dev/ledgerDeleteSample.js +1 -1
  10. package/dist-esm/samples-dev/ledgerGetSample.js +1 -1
  11. package/dist-esm/samples-dev/ledgerListByResourceGroupSample.js +1 -1
  12. package/dist-esm/samples-dev/ledgerListBySubscriptionSample.js +1 -1
  13. package/dist-esm/samples-dev/ledgerUpdateSample.js +1 -1
  14. package/dist-esm/samples-dev/managedCcfCreateSample.d.ts +2 -0
  15. package/dist-esm/samples-dev/managedCcfCreateSample.d.ts.map +1 -0
  16. package/dist-esm/samples-dev/managedCcfCreateSample.js +58 -0
  17. package/dist-esm/samples-dev/managedCcfCreateSample.js.map +1 -0
  18. package/dist-esm/samples-dev/managedCcfDeleteSample.d.ts +2 -0
  19. package/dist-esm/samples-dev/managedCcfDeleteSample.d.ts.map +1 -0
  20. package/dist-esm/samples-dev/managedCcfDeleteSample.js +40 -0
  21. package/dist-esm/samples-dev/managedCcfDeleteSample.js.map +1 -0
  22. package/dist-esm/samples-dev/managedCcfGetSample.d.ts +2 -0
  23. package/dist-esm/samples-dev/managedCcfGetSample.d.ts.map +1 -0
  24. package/dist-esm/samples-dev/managedCcfGetSample.js +40 -0
  25. package/dist-esm/samples-dev/managedCcfGetSample.js.map +1 -0
  26. package/dist-esm/samples-dev/managedCcfListByResourceGroupSample.d.ts +2 -0
  27. package/dist-esm/samples-dev/managedCcfListByResourceGroupSample.d.ts.map +1 -0
  28. package/dist-esm/samples-dev/managedCcfListByResourceGroupSample.js +53 -0
  29. package/dist-esm/samples-dev/managedCcfListByResourceGroupSample.js.map +1 -0
  30. package/dist-esm/samples-dev/managedCcfListBySubscriptionSample.d.ts +2 -0
  31. package/dist-esm/samples-dev/managedCcfListBySubscriptionSample.d.ts.map +1 -0
  32. package/dist-esm/samples-dev/managedCcfListBySubscriptionSample.js +51 -0
  33. package/dist-esm/samples-dev/managedCcfListBySubscriptionSample.js.map +1 -0
  34. package/dist-esm/samples-dev/managedCcfUpdateSample.d.ts +2 -0
  35. package/dist-esm/samples-dev/managedCcfUpdateSample.d.ts.map +1 -0
  36. package/dist-esm/samples-dev/managedCcfUpdateSample.js +50 -0
  37. package/dist-esm/samples-dev/managedCcfUpdateSample.js.map +1 -0
  38. package/dist-esm/samples-dev/operationsListSample.js +1 -1
  39. package/dist-esm/src/confidentialLedgerClient.d.ts +3 -3
  40. package/dist-esm/src/confidentialLedgerClient.d.ts.map +1 -1
  41. package/dist-esm/src/confidentialLedgerClient.js +5 -5
  42. package/dist-esm/src/confidentialLedgerClient.js.map +1 -1
  43. package/dist-esm/src/lroImpl.d.ts +6 -11
  44. package/dist-esm/src/lroImpl.d.ts.map +1 -1
  45. package/dist-esm/src/lroImpl.js +12 -20
  46. package/dist-esm/src/lroImpl.js.map +1 -1
  47. package/dist-esm/src/models/index.d.ts +176 -13
  48. package/dist-esm/src/models/index.d.ts.map +1 -1
  49. package/dist-esm/src/models/index.js +22 -0
  50. package/dist-esm/src/models/index.js.map +1 -1
  51. package/dist-esm/src/models/mappers.d.ts +7 -1
  52. package/dist-esm/src/models/mappers.d.ts.map +1 -1
  53. package/dist-esm/src/models/mappers.js +188 -16
  54. package/dist-esm/src/models/mappers.js.map +1 -1
  55. package/dist-esm/src/models/parameters.d.ts +2 -0
  56. package/dist-esm/src/models/parameters.d.ts.map +1 -1
  57. package/dist-esm/src/models/parameters.js +23 -3
  58. package/dist-esm/src/models/parameters.js.map +1 -1
  59. package/dist-esm/src/operations/index.d.ts +1 -0
  60. package/dist-esm/src/operations/index.d.ts.map +1 -1
  61. package/dist-esm/src/operations/index.js +1 -0
  62. package/dist-esm/src/operations/index.js.map +1 -1
  63. package/dist-esm/src/operations/ledger.d.ts +14 -14
  64. package/dist-esm/src/operations/ledger.d.ts.map +1 -1
  65. package/dist-esm/src/operations/ledger.js +37 -25
  66. package/dist-esm/src/operations/ledger.js.map +1 -1
  67. package/dist-esm/src/operations/managedCCFOperations.d.ts +107 -0
  68. package/dist-esm/src/operations/managedCCFOperations.d.ts.map +1 -0
  69. package/dist-esm/src/operations/managedCCFOperations.js +532 -0
  70. package/dist-esm/src/operations/managedCCFOperations.js.map +1 -0
  71. package/dist-esm/src/operationsInterfaces/index.d.ts +1 -0
  72. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -1
  73. package/dist-esm/src/operationsInterfaces/index.js +1 -0
  74. package/dist-esm/src/operationsInterfaces/index.js.map +1 -1
  75. package/dist-esm/src/operationsInterfaces/ledger.d.ts +12 -12
  76. package/dist-esm/src/operationsInterfaces/ledger.d.ts.map +1 -1
  77. package/dist-esm/src/operationsInterfaces/managedCCFOperations.d.ts +71 -0
  78. package/dist-esm/src/operationsInterfaces/managedCCFOperations.d.ts.map +1 -0
  79. package/dist-esm/src/operationsInterfaces/managedCCFOperations.js +9 -0
  80. package/dist-esm/src/operationsInterfaces/managedCCFOperations.js.map +1 -0
  81. package/package.json +6 -6
  82. package/review/arm-confidentialledger.api.md +151 -11
  83. package/src/confidentialLedgerClient.ts +15 -6
  84. package/src/lroImpl.ts +31 -23
  85. package/src/models/index.ts +202 -14
  86. package/src/models/mappers.ts +202 -17
  87. package/src/models/parameters.ts +26 -3
  88. package/src/operations/index.ts +1 -0
  89. package/src/operations/ledger.ts +50 -40
  90. package/src/operations/managedCCFOperations.ts +696 -0
  91. package/src/operationsInterfaces/index.ts +1 -0
  92. package/src/operationsInterfaces/ledger.ts +12 -12
  93. package/src/operationsInterfaces/managedCCFOperations.ts +132 -0
  94. 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
- name: {
487
- serializedName: "name",
508
+ id: {
509
+ serializedName: "id",
488
510
  readOnly: true,
489
511
  type: {
490
512
  name: "String"
491
513
  }
492
514
  },
493
- id: {
494
- serializedName: "id",
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 ResourceLocation = {
583
+ const Tags = {
562
584
  type: {
563
585
  name: "Composite",
564
- className: "ResourceLocation",
586
+ className: "Tags",
565
587
  modelProperties: {
566
- location: {
567
- serializedName: "location",
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 Tags = {
624
+ const ManagedCCFProperties = {
576
625
  type: {
577
626
  name: "Composite",
578
- className: "Tags",
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: "Dictionary",
584
- value: { type: { name: "String" } }
706
+ name: "any"
585
707
  }
586
708
  }
587
709
  }
588
710
  }
589
711
  };
590
- const ConfidentialLedgerList = {
712
+ const DeploymentType = {
591
713
  type: {
592
714
  name: "Composite",
593
- className: "ConfidentialLedgerList",
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: "ConfidentialLedger"
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(Object.assign({}, Resource.type.modelProperties), ResourceLocation.type.modelProperties), Tags.type.modelProperties), { properties: {
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
- ConfidentialLedger: ConfidentialLedger
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: "2022-05-13",
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: 3
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.
@@ -858,7 +1078,7 @@ class OperationsImpl {
858
1078
  }
859
1079
  }
860
1080
  // Operation Specifications
861
- const serializer$2 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
1081
+ const serializer$3 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
862
1082
  const listOperationSpec = {
863
1083
  path: "/providers/Microsoft.ConfidentialLedger/operations",
864
1084
  httpMethod: "GET",
@@ -873,7 +1093,7 @@ const listOperationSpec = {
873
1093
  queryParameters: [apiVersion],
874
1094
  urlParameters: [$host],
875
1095
  headerParameters: [accept],
876
- serializer: serializer$2
1096
+ serializer: serializer$3
877
1097
  };
878
1098
  const listNextOperationSpec = {
879
1099
  path: "{nextLink}",
@@ -888,7 +1108,7 @@ const listNextOperationSpec = {
888
1108
  },
889
1109
  urlParameters: [$host, nextLink],
890
1110
  headerParameters: [accept],
891
- serializer: serializer$2
1111
+ serializer: serializer$3
892
1112
  };
893
1113
 
894
1114
  /*
@@ -898,25 +1118,17 @@ const listNextOperationSpec = {
898
1118
  * Code generated by Microsoft (R) AutoRest Code Generator.
899
1119
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
900
1120
  */
901
- class LroImpl {
902
- constructor(sendOperationFn, args, spec, requestPath = spec.path, requestMethod = spec.httpMethod) {
903
- this.sendOperationFn = sendOperationFn;
904
- this.args = args;
905
- this.spec = spec;
906
- this.requestPath = requestPath;
907
- this.requestMethod = requestMethod;
908
- }
909
- sendInitialRequest() {
910
- return tslib.__awaiter(this, void 0, void 0, function* () {
911
- return this.sendOperationFn(this.args, this.spec);
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
- }
1121
+ function createLroSpec(inputs) {
1122
+ const { args, spec, sendOperationFn } = inputs;
1123
+ return {
1124
+ requestMethod: spec.httpMethod,
1125
+ requestPath: spec.path,
1126
+ sendInitialRequest: () => sendOperationFn(args, spec),
1127
+ sendPollRequest: (path, options) => {
1128
+ const restSpec = tslib.__rest(spec, ["requestBody"]);
1129
+ return sendOperationFn(args, Object.assign(Object.assign({}, restSpec), { httpMethod: "GET", path, abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal }));
1130
+ }
1131
+ };
920
1132
  }
921
1133
 
922
1134
  /*
@@ -938,7 +1150,7 @@ class LedgerImpl {
938
1150
  }
939
1151
  /**
940
1152
  * Retrieves the properties of all Confidential Ledgers.
941
- * @param resourceGroupName The name of the resource group.
1153
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
942
1154
  * @param options The options parameters.
943
1155
  */
944
1156
  listByResourceGroup(resourceGroupName, options) {
@@ -1057,16 +1269,16 @@ class LedgerImpl {
1057
1269
  }
1058
1270
  /**
1059
1271
  * Retrieves the properties of a Confidential Ledger.
1060
- * @param resourceGroupName The name of the resource group.
1272
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
1061
1273
  * @param ledgerName Name of the Confidential Ledger
1062
1274
  * @param options The options parameters.
1063
1275
  */
1064
1276
  get(resourceGroupName, ledgerName, options) {
1065
- return this.client.sendOperationRequest({ resourceGroupName, ledgerName, options }, getOperationSpec);
1277
+ return this.client.sendOperationRequest({ resourceGroupName, ledgerName, options }, getOperationSpec$1);
1066
1278
  }
1067
1279
  /**
1068
1280
  * Deletes an existing Confidential Ledger.
1069
- * @param resourceGroupName The name of the resource group.
1281
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
1070
1282
  * @param ledgerName Name of the Confidential Ledger
1071
1283
  * @param options The options parameters.
1072
1284
  */
@@ -1075,7 +1287,7 @@ class LedgerImpl {
1075
1287
  const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
1076
1288
  return this.client.sendOperationRequest(args, spec);
1077
1289
  });
1078
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
1290
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
1079
1291
  var _a;
1080
1292
  let currentRawResponse = undefined;
1081
1293
  const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
@@ -1094,9 +1306,13 @@ class LedgerImpl {
1094
1306
  }
1095
1307
  };
1096
1308
  });
1097
- const lro = new LroImpl(sendOperation, { resourceGroupName, ledgerName, options }, deleteOperationSpec);
1098
- const poller = new coreLro.LroEngine(lro, {
1099
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
1309
+ const lro = createLroSpec({
1310
+ sendOperationFn,
1311
+ args: { resourceGroupName, ledgerName, options },
1312
+ spec: deleteOperationSpec$1
1313
+ });
1314
+ const poller = yield coreLro.createHttpPoller(lro, {
1315
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
1100
1316
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
1101
1317
  });
1102
1318
  yield poller.poll();
@@ -1105,7 +1321,7 @@ class LedgerImpl {
1105
1321
  }
1106
1322
  /**
1107
1323
  * Deletes an existing Confidential Ledger.
1108
- * @param resourceGroupName The name of the resource group.
1324
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
1109
1325
  * @param ledgerName Name of the Confidential Ledger
1110
1326
  * @param options The options parameters.
1111
1327
  */
@@ -1117,7 +1333,7 @@ class LedgerImpl {
1117
1333
  }
1118
1334
  /**
1119
1335
  * Creates a Confidential Ledger with the specified ledger parameters.
1120
- * @param resourceGroupName The name of the resource group.
1336
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
1121
1337
  * @param ledgerName Name of the Confidential Ledger
1122
1338
  * @param confidentialLedger Confidential Ledger Create Request Body
1123
1339
  * @param options The options parameters.
@@ -1127,7 +1343,7 @@ class LedgerImpl {
1127
1343
  const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
1128
1344
  return this.client.sendOperationRequest(args, spec);
1129
1345
  });
1130
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
1346
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
1131
1347
  var _a;
1132
1348
  let currentRawResponse = undefined;
1133
1349
  const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
@@ -1146,11 +1362,15 @@ class LedgerImpl {
1146
1362
  }
1147
1363
  };
1148
1364
  });
1149
- const lro = new LroImpl(sendOperation, { resourceGroupName, ledgerName, confidentialLedger, options }, createOperationSpec);
1150
- const poller = new coreLro.LroEngine(lro, {
1151
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
1365
+ const lro = createLroSpec({
1366
+ sendOperationFn,
1367
+ args: { resourceGroupName, ledgerName, confidentialLedger, options },
1368
+ spec: createOperationSpec$1
1369
+ });
1370
+ const poller = yield coreLro.createHttpPoller(lro, {
1371
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
1152
1372
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
1153
- lroResourceLocationConfig: "azure-async-operation"
1373
+ resourceLocationConfig: "azure-async-operation"
1154
1374
  });
1155
1375
  yield poller.poll();
1156
1376
  return poller;
@@ -1158,7 +1378,7 @@ class LedgerImpl {
1158
1378
  }
1159
1379
  /**
1160
1380
  * Creates a Confidential Ledger with the specified ledger parameters.
1161
- * @param resourceGroupName The name of the resource group.
1381
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
1162
1382
  * @param ledgerName Name of the Confidential Ledger
1163
1383
  * @param confidentialLedger Confidential Ledger Create Request Body
1164
1384
  * @param options The options parameters.
@@ -1171,7 +1391,7 @@ class LedgerImpl {
1171
1391
  }
1172
1392
  /**
1173
1393
  * Updates properties of Confidential Ledger
1174
- * @param resourceGroupName The name of the resource group.
1394
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
1175
1395
  * @param ledgerName Name of the Confidential Ledger
1176
1396
  * @param confidentialLedger Confidential Ledger request body for Updating Ledger
1177
1397
  * @param options The options parameters.
@@ -1181,7 +1401,7 @@ class LedgerImpl {
1181
1401
  const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
1182
1402
  return this.client.sendOperationRequest(args, spec);
1183
1403
  });
1184
- const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
1404
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
1185
1405
  var _a;
1186
1406
  let currentRawResponse = undefined;
1187
1407
  const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
@@ -1200,9 +1420,13 @@ class LedgerImpl {
1200
1420
  }
1201
1421
  };
1202
1422
  });
1203
- const lro = new LroImpl(sendOperation, { resourceGroupName, ledgerName, confidentialLedger, options }, updateOperationSpec);
1204
- const poller = new coreLro.LroEngine(lro, {
1205
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
1423
+ const lro = createLroSpec({
1424
+ sendOperationFn,
1425
+ args: { resourceGroupName, ledgerName, confidentialLedger, options },
1426
+ spec: updateOperationSpec$1
1427
+ });
1428
+ const poller = yield coreLro.createHttpPoller(lro, {
1429
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
1206
1430
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
1207
1431
  });
1208
1432
  yield poller.poll();
@@ -1211,7 +1435,7 @@ class LedgerImpl {
1211
1435
  }
1212
1436
  /**
1213
1437
  * Updates properties of Confidential Ledger
1214
- * @param resourceGroupName The name of the resource group.
1438
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
1215
1439
  * @param ledgerName Name of the Confidential Ledger
1216
1440
  * @param confidentialLedger Confidential Ledger request body for Updating Ledger
1217
1441
  * @param options The options parameters.
@@ -1224,27 +1448,27 @@ class LedgerImpl {
1224
1448
  }
1225
1449
  /**
1226
1450
  * Retrieves the properties of all Confidential Ledgers.
1227
- * @param resourceGroupName The name of the resource group.
1451
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
1228
1452
  * @param options The options parameters.
1229
1453
  */
1230
1454
  _listByResourceGroup(resourceGroupName, options) {
1231
- return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec);
1455
+ return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec$1);
1232
1456
  }
1233
1457
  /**
1234
1458
  * Retrieves the properties of all Confidential Ledgers.
1235
1459
  * @param options The options parameters.
1236
1460
  */
1237
1461
  _listBySubscription(options) {
1238
- return this.client.sendOperationRequest({ options }, listBySubscriptionOperationSpec);
1462
+ return this.client.sendOperationRequest({ options }, listBySubscriptionOperationSpec$1);
1239
1463
  }
1240
1464
  /**
1241
1465
  * ListByResourceGroupNext
1242
- * @param resourceGroupName The name of the resource group.
1466
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
1243
1467
  * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
1244
1468
  * @param options The options parameters.
1245
1469
  */
1246
1470
  _listByResourceGroupNext(resourceGroupName, nextLink, options) {
1247
- return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listByResourceGroupNextOperationSpec);
1471
+ return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listByResourceGroupNextOperationSpec$1);
1248
1472
  }
1249
1473
  /**
1250
1474
  * ListBySubscriptionNext
@@ -1252,12 +1476,12 @@ class LedgerImpl {
1252
1476
  * @param options The options parameters.
1253
1477
  */
1254
1478
  _listBySubscriptionNext(nextLink, options) {
1255
- return this.client.sendOperationRequest({ nextLink, options }, listBySubscriptionNextOperationSpec);
1479
+ return this.client.sendOperationRequest({ nextLink, options }, listBySubscriptionNextOperationSpec$1);
1256
1480
  }
1257
1481
  }
1258
1482
  // Operation Specifications
1259
- const serializer$1 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
1260
- const getOperationSpec = {
1483
+ const serializer$2 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
1484
+ const getOperationSpec$1 = {
1261
1485
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConfidentialLedger/ledgers/{ledgerName}",
1262
1486
  httpMethod: "GET",
1263
1487
  responses: {
@@ -1276,9 +1500,9 @@ const getOperationSpec = {
1276
1500
  ledgerName
1277
1501
  ],
1278
1502
  headerParameters: [accept],
1279
- serializer: serializer$1
1503
+ serializer: serializer$2
1280
1504
  };
1281
- const deleteOperationSpec = {
1505
+ const deleteOperationSpec$1 = {
1282
1506
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConfidentialLedger/ledgers/{ledgerName}",
1283
1507
  httpMethod: "DELETE",
1284
1508
  responses: {
@@ -1298,9 +1522,9 @@ const deleteOperationSpec = {
1298
1522
  ledgerName
1299
1523
  ],
1300
1524
  headerParameters: [accept],
1301
- serializer: serializer$1
1525
+ serializer: serializer$2
1302
1526
  };
1303
- const createOperationSpec = {
1527
+ const createOperationSpec$1 = {
1304
1528
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConfidentialLedger/ledgers/{ledgerName}",
1305
1529
  httpMethod: "PUT",
1306
1530
  responses: {
@@ -1330,9 +1554,9 @@ const createOperationSpec = {
1330
1554
  ],
1331
1555
  headerParameters: [accept, contentType],
1332
1556
  mediaType: "json",
1333
- serializer: serializer$1
1557
+ serializer: serializer$2
1334
1558
  };
1335
- const updateOperationSpec = {
1559
+ const updateOperationSpec$1 = {
1336
1560
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConfidentialLedger/ledgers/{ledgerName}",
1337
1561
  httpMethod: "PATCH",
1338
1562
  responses: {
@@ -1362,9 +1586,9 @@ const updateOperationSpec = {
1362
1586
  ],
1363
1587
  headerParameters: [accept, contentType],
1364
1588
  mediaType: "json",
1365
- serializer: serializer$1
1589
+ serializer: serializer$2
1366
1590
  };
1367
- const listByResourceGroupOperationSpec = {
1591
+ const listByResourceGroupOperationSpec$1 = {
1368
1592
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConfidentialLedger/ledgers",
1369
1593
  httpMethod: "GET",
1370
1594
  responses: {
@@ -1382,9 +1606,9 @@ const listByResourceGroupOperationSpec = {
1382
1606
  resourceGroupName
1383
1607
  ],
1384
1608
  headerParameters: [accept],
1385
- serializer: serializer$1
1609
+ serializer: serializer$2
1386
1610
  };
1387
- const listBySubscriptionOperationSpec = {
1611
+ const listBySubscriptionOperationSpec$1 = {
1388
1612
  path: "/subscriptions/{subscriptionId}/providers/Microsoft.ConfidentialLedger/ledgers/",
1389
1613
  httpMethod: "GET",
1390
1614
  responses: {
@@ -1398,9 +1622,9 @@ const listBySubscriptionOperationSpec = {
1398
1622
  queryParameters: [apiVersion, filter],
1399
1623
  urlParameters: [$host, subscriptionId],
1400
1624
  headerParameters: [accept],
1401
- serializer: serializer$1
1625
+ serializer: serializer$2
1402
1626
  };
1403
- const listByResourceGroupNextOperationSpec = {
1627
+ const listByResourceGroupNextOperationSpec$1 = {
1404
1628
  path: "{nextLink}",
1405
1629
  httpMethod: "GET",
1406
1630
  responses: {
@@ -1418,9 +1642,9 @@ const listByResourceGroupNextOperationSpec = {
1418
1642
  resourceGroupName
1419
1643
  ],
1420
1644
  headerParameters: [accept],
1421
- serializer: serializer$1
1645
+ serializer: serializer$2
1422
1646
  };
1423
- const listBySubscriptionNextOperationSpec = {
1647
+ const listBySubscriptionNextOperationSpec$1 = {
1424
1648
  path: "{nextLink}",
1425
1649
  httpMethod: "GET",
1426
1650
  responses: {
@@ -1437,6 +1661,531 @@ const listBySubscriptionNextOperationSpec = {
1437
1661
  subscriptionId
1438
1662
  ],
1439
1663
  headerParameters: [accept],
1664
+ serializer: serializer$2
1665
+ };
1666
+
1667
+ /*
1668
+ * Copyright (c) Microsoft Corporation.
1669
+ * Licensed under the MIT License.
1670
+ *
1671
+ * Code generated by Microsoft (R) AutoRest Code Generator.
1672
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
1673
+ */
1674
+ /// <reference lib="esnext.asynciterable" />
1675
+ /** Class containing ManagedCCFOperations operations. */
1676
+ class ManagedCCFOperationsImpl {
1677
+ /**
1678
+ * Initialize a new instance of the class ManagedCCFOperations class.
1679
+ * @param client Reference to the service client
1680
+ */
1681
+ constructor(client) {
1682
+ this.client = client;
1683
+ }
1684
+ /**
1685
+ * Retrieves the properties of all Managed CCF apps.
1686
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
1687
+ * @param options The options parameters.
1688
+ */
1689
+ listByResourceGroup(resourceGroupName, options) {
1690
+ const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
1691
+ return {
1692
+ next() {
1693
+ return iter.next();
1694
+ },
1695
+ [Symbol.asyncIterator]() {
1696
+ return this;
1697
+ },
1698
+ byPage: (settings) => {
1699
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
1700
+ throw new Error("maxPageSize is not supported by this operation.");
1701
+ }
1702
+ return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
1703
+ }
1704
+ };
1705
+ }
1706
+ listByResourceGroupPagingPage(resourceGroupName, options, settings) {
1707
+ return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
1708
+ let result;
1709
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
1710
+ if (!continuationToken) {
1711
+ result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
1712
+ let page = result.value || [];
1713
+ continuationToken = result.nextLink;
1714
+ setContinuationToken(page, continuationToken);
1715
+ yield yield tslib.__await(page);
1716
+ }
1717
+ while (continuationToken) {
1718
+ result = yield tslib.__await(this._listByResourceGroupNext(resourceGroupName, continuationToken, options));
1719
+ continuationToken = result.nextLink;
1720
+ let page = result.value || [];
1721
+ setContinuationToken(page, continuationToken);
1722
+ yield yield tslib.__await(page);
1723
+ }
1724
+ });
1725
+ }
1726
+ listByResourceGroupPagingAll(resourceGroupName, options) {
1727
+ return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingAll_1() {
1728
+ var e_1, _a;
1729
+ try {
1730
+ for (var _b = tslib.__asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
1731
+ const page = _c.value;
1732
+ yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
1733
+ }
1734
+ }
1735
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
1736
+ finally {
1737
+ try {
1738
+ if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
1739
+ }
1740
+ finally { if (e_1) throw e_1.error; }
1741
+ }
1742
+ });
1743
+ }
1744
+ /**
1745
+ * Retrieves the properties of all Managed CCF.
1746
+ * @param options The options parameters.
1747
+ */
1748
+ listBySubscription(options) {
1749
+ const iter = this.listBySubscriptionPagingAll(options);
1750
+ return {
1751
+ next() {
1752
+ return iter.next();
1753
+ },
1754
+ [Symbol.asyncIterator]() {
1755
+ return this;
1756
+ },
1757
+ byPage: (settings) => {
1758
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
1759
+ throw new Error("maxPageSize is not supported by this operation.");
1760
+ }
1761
+ return this.listBySubscriptionPagingPage(options, settings);
1762
+ }
1763
+ };
1764
+ }
1765
+ listBySubscriptionPagingPage(options, settings) {
1766
+ return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
1767
+ let result;
1768
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
1769
+ if (!continuationToken) {
1770
+ result = yield tslib.__await(this._listBySubscription(options));
1771
+ let page = result.value || [];
1772
+ continuationToken = result.nextLink;
1773
+ setContinuationToken(page, continuationToken);
1774
+ yield yield tslib.__await(page);
1775
+ }
1776
+ while (continuationToken) {
1777
+ result = yield tslib.__await(this._listBySubscriptionNext(continuationToken, options));
1778
+ continuationToken = result.nextLink;
1779
+ let page = result.value || [];
1780
+ setContinuationToken(page, continuationToken);
1781
+ yield yield tslib.__await(page);
1782
+ }
1783
+ });
1784
+ }
1785
+ listBySubscriptionPagingAll(options) {
1786
+ return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingAll_1() {
1787
+ var e_2, _a;
1788
+ try {
1789
+ for (var _b = tslib.__asyncValues(this.listBySubscriptionPagingPage(options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
1790
+ const page = _c.value;
1791
+ yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
1792
+ }
1793
+ }
1794
+ catch (e_2_1) { e_2 = { error: e_2_1 }; }
1795
+ finally {
1796
+ try {
1797
+ if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
1798
+ }
1799
+ finally { if (e_2) throw e_2.error; }
1800
+ }
1801
+ });
1802
+ }
1803
+ /**
1804
+ * Retrieves the properties of a Managed CCF app.
1805
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
1806
+ * @param appName Name of the Managed CCF
1807
+ * @param options The options parameters.
1808
+ */
1809
+ get(resourceGroupName, appName, options) {
1810
+ return this.client.sendOperationRequest({ resourceGroupName, appName, options }, getOperationSpec);
1811
+ }
1812
+ /**
1813
+ * Deletes an existing Managed CCF.
1814
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
1815
+ * @param appName Name of the Managed CCF
1816
+ * @param options The options parameters.
1817
+ */
1818
+ beginDelete(resourceGroupName, appName, options) {
1819
+ return tslib.__awaiter(this, void 0, void 0, function* () {
1820
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
1821
+ return this.client.sendOperationRequest(args, spec);
1822
+ });
1823
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
1824
+ var _a;
1825
+ let currentRawResponse = undefined;
1826
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
1827
+ const callback = (rawResponse, flatResponse) => {
1828
+ currentRawResponse = rawResponse;
1829
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
1830
+ };
1831
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
1832
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
1833
+ return {
1834
+ flatResponse,
1835
+ rawResponse: {
1836
+ statusCode: currentRawResponse.status,
1837
+ body: currentRawResponse.parsedBody,
1838
+ headers: currentRawResponse.headers.toJSON()
1839
+ }
1840
+ };
1841
+ });
1842
+ const lro = createLroSpec({
1843
+ sendOperationFn,
1844
+ args: { resourceGroupName, appName, options },
1845
+ spec: deleteOperationSpec
1846
+ });
1847
+ const poller = yield coreLro.createHttpPoller(lro, {
1848
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
1849
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
1850
+ });
1851
+ yield poller.poll();
1852
+ return poller;
1853
+ });
1854
+ }
1855
+ /**
1856
+ * Deletes an existing Managed CCF.
1857
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
1858
+ * @param appName Name of the Managed CCF
1859
+ * @param options The options parameters.
1860
+ */
1861
+ beginDeleteAndWait(resourceGroupName, appName, options) {
1862
+ return tslib.__awaiter(this, void 0, void 0, function* () {
1863
+ const poller = yield this.beginDelete(resourceGroupName, appName, options);
1864
+ return poller.pollUntilDone();
1865
+ });
1866
+ }
1867
+ /**
1868
+ * Creates a Managed CCF with the specified Managed CCF parameters.
1869
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
1870
+ * @param appName Name of the Managed CCF
1871
+ * @param managedCCF Managed CCF Create Request Body
1872
+ * @param options The options parameters.
1873
+ */
1874
+ beginCreate(resourceGroupName, appName, managedCCF, options) {
1875
+ return tslib.__awaiter(this, void 0, void 0, function* () {
1876
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
1877
+ return this.client.sendOperationRequest(args, spec);
1878
+ });
1879
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
1880
+ var _a;
1881
+ let currentRawResponse = undefined;
1882
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
1883
+ const callback = (rawResponse, flatResponse) => {
1884
+ currentRawResponse = rawResponse;
1885
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
1886
+ };
1887
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
1888
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
1889
+ return {
1890
+ flatResponse,
1891
+ rawResponse: {
1892
+ statusCode: currentRawResponse.status,
1893
+ body: currentRawResponse.parsedBody,
1894
+ headers: currentRawResponse.headers.toJSON()
1895
+ }
1896
+ };
1897
+ });
1898
+ const lro = createLroSpec({
1899
+ sendOperationFn,
1900
+ args: { resourceGroupName, appName, managedCCF, options },
1901
+ spec: createOperationSpec
1902
+ });
1903
+ const poller = yield coreLro.createHttpPoller(lro, {
1904
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
1905
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
1906
+ resourceLocationConfig: "azure-async-operation"
1907
+ });
1908
+ yield poller.poll();
1909
+ return poller;
1910
+ });
1911
+ }
1912
+ /**
1913
+ * Creates a Managed CCF with the specified Managed CCF parameters.
1914
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
1915
+ * @param appName Name of the Managed CCF
1916
+ * @param managedCCF Managed CCF Create Request Body
1917
+ * @param options The options parameters.
1918
+ */
1919
+ beginCreateAndWait(resourceGroupName, appName, managedCCF, options) {
1920
+ return tslib.__awaiter(this, void 0, void 0, function* () {
1921
+ const poller = yield this.beginCreate(resourceGroupName, appName, managedCCF, options);
1922
+ return poller.pollUntilDone();
1923
+ });
1924
+ }
1925
+ /**
1926
+ * Updates properties of Managed CCF
1927
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
1928
+ * @param appName Name of the Managed CCF
1929
+ * @param managedCCF Request body for Updating Managed CCF App
1930
+ * @param options The options parameters.
1931
+ */
1932
+ beginUpdate(resourceGroupName, appName, managedCCF, options) {
1933
+ return tslib.__awaiter(this, void 0, void 0, function* () {
1934
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
1935
+ return this.client.sendOperationRequest(args, spec);
1936
+ });
1937
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
1938
+ var _a;
1939
+ let currentRawResponse = undefined;
1940
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
1941
+ const callback = (rawResponse, flatResponse) => {
1942
+ currentRawResponse = rawResponse;
1943
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
1944
+ };
1945
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
1946
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
1947
+ return {
1948
+ flatResponse,
1949
+ rawResponse: {
1950
+ statusCode: currentRawResponse.status,
1951
+ body: currentRawResponse.parsedBody,
1952
+ headers: currentRawResponse.headers.toJSON()
1953
+ }
1954
+ };
1955
+ });
1956
+ const lro = createLroSpec({
1957
+ sendOperationFn,
1958
+ args: { resourceGroupName, appName, managedCCF, options },
1959
+ spec: updateOperationSpec
1960
+ });
1961
+ const poller = yield coreLro.createHttpPoller(lro, {
1962
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
1963
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
1964
+ });
1965
+ yield poller.poll();
1966
+ return poller;
1967
+ });
1968
+ }
1969
+ /**
1970
+ * Updates properties of Managed CCF
1971
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
1972
+ * @param appName Name of the Managed CCF
1973
+ * @param managedCCF Request body for Updating Managed CCF App
1974
+ * @param options The options parameters.
1975
+ */
1976
+ beginUpdateAndWait(resourceGroupName, appName, managedCCF, options) {
1977
+ return tslib.__awaiter(this, void 0, void 0, function* () {
1978
+ const poller = yield this.beginUpdate(resourceGroupName, appName, managedCCF, options);
1979
+ return poller.pollUntilDone();
1980
+ });
1981
+ }
1982
+ /**
1983
+ * Retrieves the properties of all Managed CCF apps.
1984
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
1985
+ * @param options The options parameters.
1986
+ */
1987
+ _listByResourceGroup(resourceGroupName, options) {
1988
+ return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec);
1989
+ }
1990
+ /**
1991
+ * Retrieves the properties of all Managed CCF.
1992
+ * @param options The options parameters.
1993
+ */
1994
+ _listBySubscription(options) {
1995
+ return this.client.sendOperationRequest({ options }, listBySubscriptionOperationSpec);
1996
+ }
1997
+ /**
1998
+ * ListByResourceGroupNext
1999
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
2000
+ * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
2001
+ * @param options The options parameters.
2002
+ */
2003
+ _listByResourceGroupNext(resourceGroupName, nextLink, options) {
2004
+ return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listByResourceGroupNextOperationSpec);
2005
+ }
2006
+ /**
2007
+ * ListBySubscriptionNext
2008
+ * @param nextLink The nextLink from the previous successful call to the ListBySubscription method.
2009
+ * @param options The options parameters.
2010
+ */
2011
+ _listBySubscriptionNext(nextLink, options) {
2012
+ return this.client.sendOperationRequest({ nextLink, options }, listBySubscriptionNextOperationSpec);
2013
+ }
2014
+ }
2015
+ // Operation Specifications
2016
+ const serializer$1 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
2017
+ const getOperationSpec = {
2018
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConfidentialLedger/managedCCFs/{appName}",
2019
+ httpMethod: "GET",
2020
+ responses: {
2021
+ 200: {
2022
+ bodyMapper: ManagedCCF
2023
+ },
2024
+ default: {
2025
+ bodyMapper: ErrorResponse
2026
+ }
2027
+ },
2028
+ queryParameters: [apiVersion],
2029
+ urlParameters: [
2030
+ $host,
2031
+ subscriptionId,
2032
+ resourceGroupName,
2033
+ appName
2034
+ ],
2035
+ headerParameters: [accept],
2036
+ serializer: serializer$1
2037
+ };
2038
+ const deleteOperationSpec = {
2039
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConfidentialLedger/managedCCFs/{appName}",
2040
+ httpMethod: "DELETE",
2041
+ responses: {
2042
+ 200: {},
2043
+ 201: {},
2044
+ 202: {},
2045
+ 204: {},
2046
+ default: {
2047
+ bodyMapper: ErrorResponse
2048
+ }
2049
+ },
2050
+ queryParameters: [apiVersion],
2051
+ urlParameters: [
2052
+ $host,
2053
+ subscriptionId,
2054
+ resourceGroupName,
2055
+ appName
2056
+ ],
2057
+ headerParameters: [accept],
2058
+ serializer: serializer$1
2059
+ };
2060
+ const createOperationSpec = {
2061
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConfidentialLedger/managedCCFs/{appName}",
2062
+ httpMethod: "PUT",
2063
+ responses: {
2064
+ 200: {
2065
+ bodyMapper: ManagedCCF
2066
+ },
2067
+ 201: {
2068
+ bodyMapper: ManagedCCF
2069
+ },
2070
+ 202: {
2071
+ bodyMapper: ManagedCCF
2072
+ },
2073
+ 204: {
2074
+ bodyMapper: ManagedCCF
2075
+ },
2076
+ default: {
2077
+ bodyMapper: ErrorResponse
2078
+ }
2079
+ },
2080
+ requestBody: managedCCF,
2081
+ queryParameters: [apiVersion],
2082
+ urlParameters: [
2083
+ $host,
2084
+ subscriptionId,
2085
+ resourceGroupName,
2086
+ appName
2087
+ ],
2088
+ headerParameters: [accept, contentType],
2089
+ mediaType: "json",
2090
+ serializer: serializer$1
2091
+ };
2092
+ const updateOperationSpec = {
2093
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConfidentialLedger/managedCCFs/{appName}",
2094
+ httpMethod: "PATCH",
2095
+ responses: {
2096
+ 200: {},
2097
+ 201: {},
2098
+ 202: {},
2099
+ 204: {},
2100
+ default: {
2101
+ bodyMapper: ErrorResponse
2102
+ }
2103
+ },
2104
+ requestBody: managedCCF,
2105
+ queryParameters: [apiVersion],
2106
+ urlParameters: [
2107
+ $host,
2108
+ subscriptionId,
2109
+ resourceGroupName,
2110
+ appName
2111
+ ],
2112
+ headerParameters: [accept, contentType],
2113
+ mediaType: "json",
2114
+ serializer: serializer$1
2115
+ };
2116
+ const listByResourceGroupOperationSpec = {
2117
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConfidentialLedger/managedCCFs",
2118
+ httpMethod: "GET",
2119
+ responses: {
2120
+ 200: {
2121
+ bodyMapper: ManagedCCFList
2122
+ },
2123
+ default: {
2124
+ bodyMapper: ErrorResponse
2125
+ }
2126
+ },
2127
+ queryParameters: [apiVersion, filter],
2128
+ urlParameters: [
2129
+ $host,
2130
+ subscriptionId,
2131
+ resourceGroupName
2132
+ ],
2133
+ headerParameters: [accept],
2134
+ serializer: serializer$1
2135
+ };
2136
+ const listBySubscriptionOperationSpec = {
2137
+ path: "/subscriptions/{subscriptionId}/providers/Microsoft.ConfidentialLedger/managedCCFs/",
2138
+ httpMethod: "GET",
2139
+ responses: {
2140
+ 200: {
2141
+ bodyMapper: ManagedCCFList
2142
+ },
2143
+ default: {
2144
+ bodyMapper: ErrorResponse
2145
+ }
2146
+ },
2147
+ queryParameters: [apiVersion, filter],
2148
+ urlParameters: [$host, subscriptionId],
2149
+ headerParameters: [accept],
2150
+ serializer: serializer$1
2151
+ };
2152
+ const listByResourceGroupNextOperationSpec = {
2153
+ path: "{nextLink}",
2154
+ httpMethod: "GET",
2155
+ responses: {
2156
+ 200: {
2157
+ bodyMapper: ManagedCCFList
2158
+ },
2159
+ default: {
2160
+ bodyMapper: ErrorResponse
2161
+ }
2162
+ },
2163
+ urlParameters: [
2164
+ $host,
2165
+ nextLink,
2166
+ subscriptionId,
2167
+ resourceGroupName
2168
+ ],
2169
+ headerParameters: [accept],
2170
+ serializer: serializer$1
2171
+ };
2172
+ const listBySubscriptionNextOperationSpec = {
2173
+ path: "{nextLink}",
2174
+ httpMethod: "GET",
2175
+ responses: {
2176
+ 200: {
2177
+ bodyMapper: ManagedCCFList
2178
+ },
2179
+ default: {
2180
+ bodyMapper: ErrorResponse
2181
+ }
2182
+ },
2183
+ urlParameters: [
2184
+ $host,
2185
+ nextLink,
2186
+ subscriptionId
2187
+ ],
2188
+ headerParameters: [accept],
1440
2189
  serializer: serializer$1
1441
2190
  };
1442
2191
 
@@ -1451,8 +2200,7 @@ class ConfidentialLedgerClient extends coreClient__namespace.ServiceClient {
1451
2200
  /**
1452
2201
  * Initializes a new instance of the ConfidentialLedgerClient class.
1453
2202
  * @param credentials Subscription credentials which uniquely identify client subscription.
1454
- * @param subscriptionId The Azure subscription ID. This is a GUID-formatted string (e.g.
1455
- * 00000000-0000-0000-0000-000000000000)
2203
+ * @param subscriptionId The ID of the target subscription.
1456
2204
  * @param options The parameter options
1457
2205
  */
1458
2206
  constructor(credentials, subscriptionId, options) {
@@ -1471,7 +2219,7 @@ class ConfidentialLedgerClient extends coreClient__namespace.ServiceClient {
1471
2219
  requestContentType: "application/json; charset=utf-8",
1472
2220
  credential: credentials
1473
2221
  };
1474
- const packageDetails = `azsdk-js-arm-confidentialledger/1.2.1`;
2222
+ const packageDetails = `azsdk-js-arm-confidentialledger/1.3.0-beta.1`;
1475
2223
  const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
1476
2224
  ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
1477
2225
  : `${packageDetails}`;
@@ -1504,9 +2252,10 @@ class ConfidentialLedgerClient extends coreClient__namespace.ServiceClient {
1504
2252
  this.subscriptionId = subscriptionId;
1505
2253
  // Assigning values to Constant parameters
1506
2254
  this.$host = options.$host || "https://management.azure.com";
1507
- this.apiVersion = options.apiVersion || "2022-05-13";
2255
+ this.apiVersion = options.apiVersion || "2023-01-26-preview";
1508
2256
  this.operations = new OperationsImpl(this);
1509
2257
  this.ledger = new LedgerImpl(this);
2258
+ this.managedCCFOperations = new ManagedCCFOperationsImpl(this);
1510
2259
  this.addCustomApiVersionPolicy(options.apiVersion);
1511
2260
  }
1512
2261
  /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */