@azure/arm-webpubsub 1.0.0-beta.1 → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (171) hide show
  1. package/CHANGELOG.md +4 -18
  2. package/README.md +16 -9
  3. package/dist/index.js +1092 -480
  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/src/index.d.ts +5 -0
  8. package/dist-esm/src/index.d.ts.map +1 -0
  9. package/{esm → dist-esm/src}/index.js +0 -1
  10. package/dist-esm/src/index.js.map +1 -0
  11. package/{esm → dist-esm/src}/lroImpl.d.ts +0 -0
  12. package/dist-esm/src/lroImpl.d.ts.map +1 -0
  13. package/{esm → dist-esm/src}/lroImpl.js +0 -0
  14. package/dist-esm/src/lroImpl.js.map +1 -0
  15. package/{esm → dist-esm/src}/models/index.d.ts +322 -156
  16. package/dist-esm/src/models/index.d.ts.map +1 -0
  17. package/{esm → dist-esm/src}/models/index.js +14 -6
  18. package/dist-esm/src/models/index.js.map +1 -0
  19. package/{esm → dist-esm/src}/models/mappers.d.ts +16 -8
  20. package/dist-esm/src/models/mappers.d.ts.map +1 -0
  21. package/{esm → dist-esm/src}/models/mappers.js +447 -206
  22. package/dist-esm/src/models/mappers.js.map +1 -0
  23. package/{esm → dist-esm/src}/models/parameters.d.ts +4 -2
  24. package/dist-esm/src/models/parameters.d.ts.map +1 -0
  25. package/{esm → dist-esm/src}/models/parameters.js +18 -4
  26. package/dist-esm/src/models/parameters.js.map +1 -0
  27. package/{esm/operationsInterfaces → dist-esm/src/operations}/index.d.ts +1 -0
  28. package/dist-esm/src/operations/index.d.ts.map +1 -0
  29. package/{esm/operationsInterfaces → dist-esm/src/operations}/index.js +1 -0
  30. package/dist-esm/src/operations/index.js.map +1 -0
  31. package/{esm → dist-esm/src}/operations/operations.d.ts +3 -4
  32. package/dist-esm/src/operations/operations.d.ts.map +1 -0
  33. package/{esm → dist-esm/src}/operations/operations.js +1 -2
  34. package/dist-esm/src/operations/operations.js.map +1 -0
  35. package/{esm → dist-esm/src}/operations/usages.d.ts +3 -4
  36. package/dist-esm/src/operations/usages.d.ts.map +1 -0
  37. package/{esm → dist-esm/src}/operations/usages.js +1 -2
  38. package/dist-esm/src/operations/usages.js.map +1 -0
  39. package/{esm → dist-esm/src}/operations/webPubSub.d.ts +12 -5
  40. package/dist-esm/src/operations/webPubSub.d.ts.map +1 -0
  41. package/{esm → dist-esm/src}/operations/webPubSub.js +32 -2
  42. package/dist-esm/src/operations/webPubSub.js.map +1 -0
  43. package/dist-esm/src/operations/webPubSubHubs.d.ts +89 -0
  44. package/dist-esm/src/operations/webPubSubHubs.d.ts.map +1 -0
  45. package/dist-esm/src/operations/webPubSubHubs.js +339 -0
  46. package/dist-esm/src/operations/webPubSubHubs.js.map +1 -0
  47. package/{esm → dist-esm/src}/operations/webPubSubPrivateEndpointConnections.d.ts +3 -4
  48. package/dist-esm/src/operations/webPubSubPrivateEndpointConnections.d.ts.map +1 -0
  49. package/{esm → dist-esm/src}/operations/webPubSubPrivateEndpointConnections.js +2 -3
  50. package/dist-esm/src/operations/webPubSubPrivateEndpointConnections.js.map +1 -0
  51. package/{esm → dist-esm/src}/operations/webPubSubPrivateLinkResources.d.ts +3 -4
  52. package/dist-esm/src/operations/webPubSubPrivateLinkResources.d.ts.map +1 -0
  53. package/{esm → dist-esm/src}/operations/webPubSubPrivateLinkResources.js +1 -2
  54. package/dist-esm/src/operations/webPubSubPrivateLinkResources.js.map +1 -0
  55. package/{esm → dist-esm/src}/operations/webPubSubSharedPrivateLinkResources.d.ts +3 -4
  56. package/dist-esm/src/operations/webPubSubSharedPrivateLinkResources.d.ts.map +1 -0
  57. package/{esm → dist-esm/src}/operations/webPubSubSharedPrivateLinkResources.js +2 -3
  58. package/dist-esm/src/operations/webPubSubSharedPrivateLinkResources.js.map +1 -0
  59. package/{esm/operations → dist-esm/src/operationsInterfaces}/index.d.ts +1 -0
  60. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
  61. package/{esm/operations → dist-esm/src/operationsInterfaces}/index.js +1 -0
  62. package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
  63. package/{esm → dist-esm/src}/operationsInterfaces/operations.d.ts +0 -1
  64. package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -0
  65. package/{esm → dist-esm/src}/operationsInterfaces/operations.js +1 -1
  66. package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
  67. package/{esm → dist-esm/src}/operationsInterfaces/usages.d.ts +0 -1
  68. package/dist-esm/src/operationsInterfaces/usages.d.ts.map +1 -0
  69. package/{esm → dist-esm/src}/operationsInterfaces/usages.js +1 -1
  70. package/dist-esm/src/operationsInterfaces/usages.js.map +1 -0
  71. package/{esm → dist-esm/src}/operationsInterfaces/webPubSub.d.ts +9 -2
  72. package/dist-esm/src/operationsInterfaces/webPubSub.d.ts.map +1 -0
  73. package/{esm → dist-esm/src}/operationsInterfaces/webPubSub.js +1 -1
  74. package/dist-esm/src/operationsInterfaces/webPubSub.js.map +1 -0
  75. package/dist-esm/src/operationsInterfaces/webPubSubHubs.d.ts +62 -0
  76. package/dist-esm/src/operationsInterfaces/webPubSubHubs.d.ts.map +1 -0
  77. package/dist-esm/src/operationsInterfaces/webPubSubHubs.js +9 -0
  78. package/dist-esm/src/operationsInterfaces/webPubSubHubs.js.map +1 -0
  79. package/{esm → dist-esm/src}/operationsInterfaces/webPubSubPrivateEndpointConnections.d.ts +0 -1
  80. package/dist-esm/src/operationsInterfaces/webPubSubPrivateEndpointConnections.d.ts.map +1 -0
  81. package/dist-esm/src/operationsInterfaces/webPubSubPrivateEndpointConnections.js +9 -0
  82. package/dist-esm/src/operationsInterfaces/webPubSubPrivateEndpointConnections.js.map +1 -0
  83. package/{esm → dist-esm/src}/operationsInterfaces/webPubSubPrivateLinkResources.d.ts +0 -1
  84. package/dist-esm/src/operationsInterfaces/webPubSubPrivateLinkResources.d.ts.map +1 -0
  85. package/{esm → dist-esm/src}/operationsInterfaces/webPubSubPrivateLinkResources.js +1 -1
  86. package/dist-esm/src/operationsInterfaces/webPubSubPrivateLinkResources.js.map +1 -0
  87. package/{esm → dist-esm/src}/operationsInterfaces/webPubSubSharedPrivateLinkResources.d.ts +0 -1
  88. package/dist-esm/src/operationsInterfaces/webPubSubSharedPrivateLinkResources.d.ts.map +1 -0
  89. package/dist-esm/src/operationsInterfaces/webPubSubSharedPrivateLinkResources.js +9 -0
  90. package/dist-esm/src/operationsInterfaces/webPubSubSharedPrivateLinkResources.js.map +1 -0
  91. package/{esm → dist-esm/src}/webPubSubManagementClient.d.ts +7 -3
  92. package/dist-esm/src/webPubSubManagementClient.d.ts.map +1 -0
  93. package/{esm/webPubSubManagementClientContext.js → dist-esm/src/webPubSubManagementClient.js} +13 -5
  94. package/dist-esm/src/webPubSubManagementClient.js.map +1 -0
  95. package/dist-esm/test/sampleTest.d.ts +2 -0
  96. package/dist-esm/test/sampleTest.d.ts.map +1 -0
  97. package/dist-esm/test/sampleTest.js +40 -0
  98. package/dist-esm/test/sampleTest.js.map +1 -0
  99. package/package.json +27 -33
  100. package/review/arm-webpubsub.api.md +150 -33
  101. package/src/index.ts +0 -1
  102. package/src/models/index.ts +354 -163
  103. package/src/models/mappers.ts +484 -229
  104. package/src/models/parameters.ts +20 -3
  105. package/src/operations/index.ts +1 -0
  106. package/src/operations/operations.ts +4 -5
  107. package/src/operations/usages.ts +4 -5
  108. package/src/operations/webPubSub.ts +46 -5
  109. package/src/operations/webPubSubHubs.ts +472 -0
  110. package/src/operations/webPubSubPrivateEndpointConnections.ts +5 -6
  111. package/src/operations/webPubSubPrivateLinkResources.ts +4 -5
  112. package/src/operations/webPubSubSharedPrivateLinkResources.ts +5 -6
  113. package/src/operationsInterfaces/index.ts +1 -0
  114. package/src/operationsInterfaces/operations.ts +0 -1
  115. package/src/operationsInterfaces/usages.ts +0 -1
  116. package/src/operationsInterfaces/webPubSub.ts +15 -2
  117. package/src/operationsInterfaces/webPubSubHubs.ts +115 -0
  118. package/src/operationsInterfaces/webPubSubPrivateEndpointConnections.ts +0 -1
  119. package/src/operationsInterfaces/webPubSubPrivateLinkResources.ts +0 -1
  120. package/src/operationsInterfaces/webPubSubSharedPrivateLinkResources.ts +0 -1
  121. package/src/webPubSubManagementClient.ts +50 -3
  122. package/tsconfig.json +2 -2
  123. package/{esm/index.d.ts → types/arm-webpubsub.d.ts} +327 -82
  124. package/types/tsdoc-metadata.json +11 -0
  125. package/esm/index.d.ts.map +0 -1
  126. package/esm/index.js.map +0 -1
  127. package/esm/lroImpl.d.ts.map +0 -1
  128. package/esm/lroImpl.js.map +0 -1
  129. package/esm/models/index.d.ts.map +0 -1
  130. package/esm/models/index.js.map +0 -1
  131. package/esm/models/mappers.d.ts.map +0 -1
  132. package/esm/models/mappers.js.map +0 -1
  133. package/esm/models/parameters.d.ts.map +0 -1
  134. package/esm/models/parameters.js.map +0 -1
  135. package/esm/operations/index.d.ts.map +0 -1
  136. package/esm/operations/index.js.map +0 -1
  137. package/esm/operations/operations.d.ts.map +0 -1
  138. package/esm/operations/operations.js.map +0 -1
  139. package/esm/operations/usages.d.ts.map +0 -1
  140. package/esm/operations/usages.js.map +0 -1
  141. package/esm/operations/webPubSub.d.ts.map +0 -1
  142. package/esm/operations/webPubSub.js.map +0 -1
  143. package/esm/operations/webPubSubPrivateEndpointConnections.d.ts.map +0 -1
  144. package/esm/operations/webPubSubPrivateEndpointConnections.js.map +0 -1
  145. package/esm/operations/webPubSubPrivateLinkResources.d.ts.map +0 -1
  146. package/esm/operations/webPubSubPrivateLinkResources.js.map +0 -1
  147. package/esm/operations/webPubSubSharedPrivateLinkResources.d.ts.map +0 -1
  148. package/esm/operations/webPubSubSharedPrivateLinkResources.js.map +0 -1
  149. package/esm/operationsInterfaces/index.d.ts.map +0 -1
  150. package/esm/operationsInterfaces/index.js.map +0 -1
  151. package/esm/operationsInterfaces/operations.d.ts.map +0 -1
  152. package/esm/operationsInterfaces/operations.js.map +0 -1
  153. package/esm/operationsInterfaces/usages.d.ts.map +0 -1
  154. package/esm/operationsInterfaces/usages.js.map +0 -1
  155. package/esm/operationsInterfaces/webPubSub.d.ts.map +0 -1
  156. package/esm/operationsInterfaces/webPubSub.js.map +0 -1
  157. package/esm/operationsInterfaces/webPubSubPrivateEndpointConnections.d.ts.map +0 -1
  158. package/esm/operationsInterfaces/webPubSubPrivateEndpointConnections.js +0 -9
  159. package/esm/operationsInterfaces/webPubSubPrivateEndpointConnections.js.map +0 -1
  160. package/esm/operationsInterfaces/webPubSubPrivateLinkResources.d.ts.map +0 -1
  161. package/esm/operationsInterfaces/webPubSubPrivateLinkResources.js.map +0 -1
  162. package/esm/operationsInterfaces/webPubSubSharedPrivateLinkResources.d.ts.map +0 -1
  163. package/esm/operationsInterfaces/webPubSubSharedPrivateLinkResources.js +0 -9
  164. package/esm/operationsInterfaces/webPubSubSharedPrivateLinkResources.js.map +0 -1
  165. package/esm/webPubSubManagementClient.d.ts.map +0 -1
  166. package/esm/webPubSubManagementClient.js +0 -28
  167. package/esm/webPubSubManagementClient.js.map +0 -1
  168. package/esm/webPubSubManagementClientContext.d.ts +0 -17
  169. package/esm/webPubSubManagementClientContext.d.ts.map +0 -1
  170. package/esm/webPubSubManagementClientContext.js.map +0 -1
  171. package/src/webPubSubManagementClientContext.ts +0 -71
package/dist/index.js CHANGED
@@ -2,9 +2,8 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var tslib = require('tslib');
6
- require('@azure/core-paging');
7
5
  var coreClient = require('@azure/core-client');
6
+ var tslib = require('tslib');
8
7
  var coreLro = require('@azure/core-lro');
9
8
 
10
9
  /*
@@ -50,10 +49,6 @@ var coreLro = require('@azure/core-lro');
50
49
  KnownSharedPrivateLinkResourceStatus["Disconnected"] = "Disconnected";
51
50
  KnownSharedPrivateLinkResourceStatus["Timeout"] = "Timeout";
52
51
  })(exports.KnownSharedPrivateLinkResourceStatus || (exports.KnownSharedPrivateLinkResourceStatus = {}));
53
- (function (KnownUpstreamAuthType) {
54
- KnownUpstreamAuthType["None"] = "None";
55
- KnownUpstreamAuthType["ManagedIdentity"] = "ManagedIdentity";
56
- })(exports.KnownUpstreamAuthType || (exports.KnownUpstreamAuthType = {}));
57
52
  (function (KnownACLAction) {
58
53
  KnownACLAction["Allow"] = "Allow";
59
54
  KnownACLAction["Deny"] = "Deny";
@@ -69,10 +64,20 @@ var coreLro = require('@azure/core-lro');
69
64
  KnownManagedIdentityType["SystemAssigned"] = "SystemAssigned";
70
65
  KnownManagedIdentityType["UserAssigned"] = "UserAssigned";
71
66
  })(exports.KnownManagedIdentityType || (exports.KnownManagedIdentityType = {}));
67
+ (function (KnownUpstreamAuthType) {
68
+ KnownUpstreamAuthType["None"] = "None";
69
+ KnownUpstreamAuthType["ManagedIdentity"] = "ManagedIdentity";
70
+ })(exports.KnownUpstreamAuthType || (exports.KnownUpstreamAuthType = {}));
72
71
  (function (KnownKeyType) {
73
72
  KnownKeyType["Primary"] = "Primary";
74
73
  KnownKeyType["Secondary"] = "Secondary";
74
+ KnownKeyType["Salt"] = "Salt";
75
75
  })(exports.KnownKeyType || (exports.KnownKeyType = {}));
76
+ (function (KnownScaleType) {
77
+ KnownScaleType["None"] = "None";
78
+ KnownScaleType["Manual"] = "Manual";
79
+ KnownScaleType["Automatic"] = "Automatic";
80
+ })(exports.KnownScaleType || (exports.KnownScaleType = {}));
76
81
 
77
82
  /*
78
83
  * Copyright (c) Microsoft Corporation.
@@ -592,35 +597,6 @@ const WebPubSubResourceList = {
592
597
  }
593
598
  }
594
599
  };
595
- const Resource = {
596
- type: {
597
- name: "Composite",
598
- className: "Resource",
599
- modelProperties: {
600
- id: {
601
- serializedName: "id",
602
- readOnly: true,
603
- type: {
604
- name: "String"
605
- }
606
- },
607
- name: {
608
- serializedName: "name",
609
- readOnly: true,
610
- type: {
611
- name: "String"
612
- }
613
- },
614
- type: {
615
- serializedName: "type",
616
- readOnly: true,
617
- type: {
618
- name: "String"
619
- }
620
- }
621
- }
622
- }
623
- };
624
600
  const ResourceSku = {
625
601
  type: {
626
602
  name: "Composite",
@@ -746,40 +722,28 @@ const PrivateLinkServiceConnectionState = {
746
722
  }
747
723
  }
748
724
  };
749
- const WebPubSubTlsSettings = {
750
- type: {
751
- name: "Composite",
752
- className: "WebPubSubTlsSettings",
753
- modelProperties: {
754
- clientCertEnabled: {
755
- defaultValue: true,
756
- serializedName: "clientCertEnabled",
757
- type: {
758
- name: "Boolean"
759
- }
760
- }
761
- }
762
- }
763
- };
764
- const DiagnosticConfiguration = {
725
+ const Resource = {
765
726
  type: {
766
727
  name: "Composite",
767
- className: "DiagnosticConfiguration",
728
+ className: "Resource",
768
729
  modelProperties: {
769
- enableConnectivityLogs: {
770
- serializedName: "enableConnectivityLogs",
730
+ id: {
731
+ serializedName: "id",
732
+ readOnly: true,
771
733
  type: {
772
734
  name: "String"
773
735
  }
774
736
  },
775
- enableMessagingLogs: {
776
- serializedName: "enableMessagingLogs",
737
+ name: {
738
+ serializedName: "name",
739
+ readOnly: true,
777
740
  type: {
778
741
  name: "String"
779
742
  }
780
743
  },
781
- enableLiveTrace: {
782
- serializedName: "enableLiveTrace",
744
+ type: {
745
+ serializedName: "type",
746
+ readOnly: true,
783
747
  type: {
784
748
  name: "String"
785
749
  }
@@ -787,90 +751,101 @@ const DiagnosticConfiguration = {
787
751
  }
788
752
  }
789
753
  };
790
- const EventHandlerSettings = {
754
+ const WebPubSubTlsSettings = {
791
755
  type: {
792
756
  name: "Composite",
793
- className: "EventHandlerSettings",
757
+ className: "WebPubSubTlsSettings",
794
758
  modelProperties: {
795
- items: {
796
- serializedName: "items",
759
+ clientCertEnabled: {
760
+ defaultValue: true,
761
+ serializedName: "clientCertEnabled",
797
762
  type: {
798
- name: "Dictionary",
799
- value: {
800
- type: {
801
- name: "Sequence",
802
- element: {
803
- type: { name: "Composite", className: "EventHandlerTemplate" }
804
- }
805
- }
806
- }
763
+ name: "Boolean"
807
764
  }
808
765
  }
809
766
  }
810
767
  }
811
768
  };
812
- const EventHandlerTemplate = {
769
+ const LiveTraceConfiguration = {
813
770
  type: {
814
771
  name: "Composite",
815
- className: "EventHandlerTemplate",
772
+ className: "LiveTraceConfiguration",
816
773
  modelProperties: {
817
- urlTemplate: {
818
- serializedName: "urlTemplate",
819
- required: true,
774
+ enabled: {
775
+ defaultValue: "false",
776
+ serializedName: "enabled",
820
777
  type: {
821
778
  name: "String"
822
779
  }
823
780
  },
824
- userEventPattern: {
825
- serializedName: "userEventPattern",
781
+ categories: {
782
+ serializedName: "categories",
826
783
  type: {
827
- name: "String"
784
+ name: "Sequence",
785
+ element: {
786
+ type: {
787
+ name: "Composite",
788
+ className: "LiveTraceCategory"
789
+ }
790
+ }
828
791
  }
829
- },
830
- systemEventPattern: {
831
- serializedName: "systemEventPattern",
792
+ }
793
+ }
794
+ }
795
+ };
796
+ const LiveTraceCategory = {
797
+ type: {
798
+ name: "Composite",
799
+ className: "LiveTraceCategory",
800
+ modelProperties: {
801
+ name: {
802
+ serializedName: "name",
832
803
  type: {
833
804
  name: "String"
834
805
  }
835
806
  },
836
- auth: {
837
- serializedName: "auth",
807
+ enabled: {
808
+ serializedName: "enabled",
838
809
  type: {
839
- name: "Composite",
840
- className: "UpstreamAuthSettings"
810
+ name: "String"
841
811
  }
842
812
  }
843
813
  }
844
814
  }
845
815
  };
846
- const UpstreamAuthSettings = {
816
+ const ResourceLogConfiguration = {
847
817
  type: {
848
818
  name: "Composite",
849
- className: "UpstreamAuthSettings",
819
+ className: "ResourceLogConfiguration",
850
820
  modelProperties: {
851
- type: {
852
- serializedName: "type",
853
- type: {
854
- name: "String"
855
- }
856
- },
857
- managedIdentity: {
858
- serializedName: "managedIdentity",
821
+ categories: {
822
+ serializedName: "categories",
859
823
  type: {
860
- name: "Composite",
861
- className: "ManagedIdentitySettings"
824
+ name: "Sequence",
825
+ element: {
826
+ type: {
827
+ name: "Composite",
828
+ className: "ResourceLogCategory"
829
+ }
830
+ }
862
831
  }
863
832
  }
864
833
  }
865
834
  }
866
835
  };
867
- const ManagedIdentitySettings = {
836
+ const ResourceLogCategory = {
868
837
  type: {
869
838
  name: "Composite",
870
- className: "ManagedIdentitySettings",
839
+ className: "ResourceLogCategory",
871
840
  modelProperties: {
872
- resource: {
873
- serializedName: "resource",
841
+ name: {
842
+ serializedName: "name",
843
+ type: {
844
+ name: "String"
845
+ }
846
+ },
847
+ enabled: {
848
+ serializedName: "enabled",
874
849
  type: {
875
850
  name: "String"
876
851
  }
@@ -1003,6 +978,134 @@ const UserAssignedIdentityProperty = {
1003
978
  }
1004
979
  }
1005
980
  };
981
+ const WebPubSubHubList = {
982
+ type: {
983
+ name: "Composite",
984
+ className: "WebPubSubHubList",
985
+ modelProperties: {
986
+ value: {
987
+ serializedName: "value",
988
+ type: {
989
+ name: "Sequence",
990
+ element: {
991
+ type: {
992
+ name: "Composite",
993
+ className: "WebPubSubHub"
994
+ }
995
+ }
996
+ }
997
+ },
998
+ nextLink: {
999
+ serializedName: "nextLink",
1000
+ readOnly: true,
1001
+ type: {
1002
+ name: "String"
1003
+ }
1004
+ }
1005
+ }
1006
+ }
1007
+ };
1008
+ const WebPubSubHubProperties = {
1009
+ type: {
1010
+ name: "Composite",
1011
+ className: "WebPubSubHubProperties",
1012
+ modelProperties: {
1013
+ eventHandlers: {
1014
+ serializedName: "eventHandlers",
1015
+ type: {
1016
+ name: "Sequence",
1017
+ element: {
1018
+ type: {
1019
+ name: "Composite",
1020
+ className: "EventHandler"
1021
+ }
1022
+ }
1023
+ }
1024
+ },
1025
+ anonymousConnectPolicy: {
1026
+ defaultValue: "deny",
1027
+ serializedName: "anonymousConnectPolicy",
1028
+ type: {
1029
+ name: "String"
1030
+ }
1031
+ }
1032
+ }
1033
+ }
1034
+ };
1035
+ const EventHandler = {
1036
+ type: {
1037
+ name: "Composite",
1038
+ className: "EventHandler",
1039
+ modelProperties: {
1040
+ urlTemplate: {
1041
+ serializedName: "urlTemplate",
1042
+ required: true,
1043
+ type: {
1044
+ name: "String"
1045
+ }
1046
+ },
1047
+ userEventPattern: {
1048
+ serializedName: "userEventPattern",
1049
+ type: {
1050
+ name: "String"
1051
+ }
1052
+ },
1053
+ systemEvents: {
1054
+ serializedName: "systemEvents",
1055
+ type: {
1056
+ name: "Sequence",
1057
+ element: {
1058
+ type: {
1059
+ name: "String"
1060
+ }
1061
+ }
1062
+ }
1063
+ },
1064
+ auth: {
1065
+ serializedName: "auth",
1066
+ type: {
1067
+ name: "Composite",
1068
+ className: "UpstreamAuthSettings"
1069
+ }
1070
+ }
1071
+ }
1072
+ }
1073
+ };
1074
+ const UpstreamAuthSettings = {
1075
+ type: {
1076
+ name: "Composite",
1077
+ className: "UpstreamAuthSettings",
1078
+ modelProperties: {
1079
+ type: {
1080
+ serializedName: "type",
1081
+ type: {
1082
+ name: "String"
1083
+ }
1084
+ },
1085
+ managedIdentity: {
1086
+ serializedName: "managedIdentity",
1087
+ type: {
1088
+ name: "Composite",
1089
+ className: "ManagedIdentitySettings"
1090
+ }
1091
+ }
1092
+ }
1093
+ }
1094
+ };
1095
+ const ManagedIdentitySettings = {
1096
+ type: {
1097
+ name: "Composite",
1098
+ className: "ManagedIdentitySettings",
1099
+ modelProperties: {
1100
+ resource: {
1101
+ serializedName: "resource",
1102
+ type: {
1103
+ name: "String"
1104
+ }
1105
+ }
1106
+ }
1107
+ }
1108
+ };
1006
1109
  const WebPubSubKeys = {
1007
1110
  type: {
1008
1111
  name: "Composite",
@@ -1174,165 +1277,145 @@ const SharedPrivateLinkResourceList = {
1174
1277
  }
1175
1278
  }
1176
1279
  };
1177
- const TrackedResource = {
1280
+ const SkuList = {
1178
1281
  type: {
1179
1282
  name: "Composite",
1180
- className: "TrackedResource",
1181
- modelProperties: Object.assign(Object.assign({}, Resource.type.modelProperties), { location: {
1182
- serializedName: "location",
1283
+ className: "SkuList",
1284
+ modelProperties: {
1285
+ value: {
1286
+ serializedName: "value",
1287
+ readOnly: true,
1183
1288
  type: {
1184
- name: "String"
1185
- }
1186
- }, tags: {
1187
- serializedName: "tags",
1289
+ name: "Sequence",
1290
+ element: {
1291
+ type: {
1292
+ name: "Composite",
1293
+ className: "Sku"
1294
+ }
1295
+ }
1296
+ }
1297
+ },
1298
+ nextLink: {
1299
+ serializedName: "nextLink",
1300
+ readOnly: true,
1188
1301
  type: {
1189
- name: "Dictionary",
1190
- value: { type: { name: "String" } }
1302
+ name: "String"
1191
1303
  }
1192
- } })
1193
- }
1194
- };
1195
- const ProxyResource = {
1196
- type: {
1197
- name: "Composite",
1198
- className: "ProxyResource",
1199
- modelProperties: Object.assign({}, Resource.type.modelProperties)
1304
+ }
1305
+ }
1200
1306
  }
1201
1307
  };
1202
- const PrivateEndpointACL = {
1308
+ const Sku = {
1203
1309
  type: {
1204
1310
  name: "Composite",
1205
- className: "PrivateEndpointACL",
1206
- modelProperties: Object.assign(Object.assign({}, NetworkACL.type.modelProperties), { name: {
1207
- serializedName: "name",
1208
- required: true,
1311
+ className: "Sku",
1312
+ modelProperties: {
1313
+ resourceType: {
1314
+ serializedName: "resourceType",
1315
+ readOnly: true,
1209
1316
  type: {
1210
1317
  name: "String"
1211
1318
  }
1212
- } })
1213
- }
1214
- };
1215
- const WebPubSubResource = {
1216
- type: {
1217
- name: "Composite",
1218
- className: "WebPubSubResource",
1219
- modelProperties: Object.assign(Object.assign({}, TrackedResource.type.modelProperties), { sku: {
1319
+ },
1320
+ sku: {
1220
1321
  serializedName: "sku",
1221
1322
  type: {
1222
1323
  name: "Composite",
1223
1324
  className: "ResourceSku"
1224
1325
  }
1225
- }, identity: {
1226
- serializedName: "identity",
1227
- type: {
1228
- name: "Composite",
1229
- className: "ManagedIdentity"
1230
- }
1231
- }, systemData: {
1232
- serializedName: "systemData",
1326
+ },
1327
+ capacity: {
1328
+ serializedName: "capacity",
1233
1329
  type: {
1234
1330
  name: "Composite",
1235
- className: "SystemData"
1236
- }
1237
- }, provisioningState: {
1238
- serializedName: "properties.provisioningState",
1239
- readOnly: true,
1240
- type: {
1241
- name: "String"
1242
- }
1243
- }, externalIP: {
1244
- serializedName: "properties.externalIP",
1245
- readOnly: true,
1246
- type: {
1247
- name: "String"
1331
+ className: "SkuCapacity"
1248
1332
  }
1249
- }, hostName: {
1250
- serializedName: "properties.hostName",
1251
- readOnly: true,
1252
- type: {
1253
- name: "String"
1254
- }
1255
- }, publicPort: {
1256
- serializedName: "properties.publicPort",
1333
+ }
1334
+ }
1335
+ }
1336
+ };
1337
+ const SkuCapacity = {
1338
+ type: {
1339
+ name: "Composite",
1340
+ className: "SkuCapacity",
1341
+ modelProperties: {
1342
+ minimum: {
1343
+ serializedName: "minimum",
1257
1344
  readOnly: true,
1258
1345
  type: {
1259
1346
  name: "Number"
1260
1347
  }
1261
- }, serverPort: {
1262
- serializedName: "properties.serverPort",
1348
+ },
1349
+ maximum: {
1350
+ serializedName: "maximum",
1263
1351
  readOnly: true,
1264
1352
  type: {
1265
1353
  name: "Number"
1266
1354
  }
1267
- }, version: {
1268
- serializedName: "properties.version",
1355
+ },
1356
+ default: {
1357
+ serializedName: "default",
1269
1358
  readOnly: true,
1270
1359
  type: {
1271
- name: "String"
1360
+ name: "Number"
1272
1361
  }
1273
- }, privateEndpointConnections: {
1274
- serializedName: "properties.privateEndpointConnections",
1362
+ },
1363
+ allowedValues: {
1364
+ serializedName: "allowedValues",
1275
1365
  readOnly: true,
1276
1366
  type: {
1277
1367
  name: "Sequence",
1278
1368
  element: {
1279
1369
  type: {
1280
- name: "Composite",
1281
- className: "PrivateEndpointConnection"
1370
+ name: "Number"
1282
1371
  }
1283
1372
  }
1284
1373
  }
1285
- }, sharedPrivateLinkResources: {
1286
- serializedName: "properties.sharedPrivateLinkResources",
1374
+ },
1375
+ scaleType: {
1376
+ serializedName: "scaleType",
1287
1377
  readOnly: true,
1288
1378
  type: {
1289
- name: "Sequence",
1290
- element: {
1291
- type: {
1292
- name: "Composite",
1293
- className: "SharedPrivateLinkResource"
1294
- }
1295
- }
1296
- }
1297
- }, tls: {
1298
- serializedName: "properties.tls",
1299
- type: {
1300
- name: "Composite",
1301
- className: "WebPubSubTlsSettings"
1302
- }
1303
- }, diagnosticConfiguration: {
1304
- serializedName: "properties.diagnosticConfiguration",
1305
- type: {
1306
- name: "Composite",
1307
- className: "DiagnosticConfiguration"
1308
- }
1309
- }, eventHandler: {
1310
- serializedName: "properties.eventHandler",
1311
- type: {
1312
- name: "Composite",
1313
- className: "EventHandlerSettings"
1314
- }
1315
- }, networkACLs: {
1316
- serializedName: "properties.networkACLs",
1317
- type: {
1318
- name: "Composite",
1319
- className: "WebPubSubNetworkACLs"
1379
+ name: "String"
1320
1380
  }
1321
- }, publicNetworkAccess: {
1322
- defaultValue: "Enabled",
1323
- serializedName: "properties.publicNetworkAccess",
1381
+ }
1382
+ }
1383
+ }
1384
+ };
1385
+ const ProxyResource = {
1386
+ type: {
1387
+ name: "Composite",
1388
+ className: "ProxyResource",
1389
+ modelProperties: Object.assign({}, Resource.type.modelProperties)
1390
+ }
1391
+ };
1392
+ const TrackedResource = {
1393
+ type: {
1394
+ name: "Composite",
1395
+ className: "TrackedResource",
1396
+ modelProperties: Object.assign(Object.assign({}, Resource.type.modelProperties), { location: {
1397
+ serializedName: "location",
1324
1398
  type: {
1325
1399
  name: "String"
1326
1400
  }
1327
- }, disableLocalAuth: {
1328
- serializedName: "properties.disableLocalAuth",
1401
+ }, tags: {
1402
+ serializedName: "tags",
1329
1403
  type: {
1330
- name: "Boolean"
1404
+ name: "Dictionary",
1405
+ value: { type: { name: "String" } }
1331
1406
  }
1332
- }, disableAadAuth: {
1333
- serializedName: "properties.disableAadAuth",
1407
+ } })
1408
+ }
1409
+ };
1410
+ const PrivateEndpointACL = {
1411
+ type: {
1412
+ name: "Composite",
1413
+ className: "PrivateEndpointACL",
1414
+ modelProperties: Object.assign(Object.assign({}, NetworkACL.type.modelProperties), { name: {
1415
+ serializedName: "name",
1416
+ required: true,
1334
1417
  type: {
1335
- name: "Boolean"
1418
+ name: "String"
1336
1419
  }
1337
1420
  } })
1338
1421
  }
@@ -1359,6 +1442,17 @@ const PrivateEndpointConnection = {
1359
1442
  name: "Composite",
1360
1443
  className: "PrivateEndpoint"
1361
1444
  }
1445
+ }, groupIds: {
1446
+ serializedName: "properties.groupIds",
1447
+ readOnly: true,
1448
+ type: {
1449
+ name: "Sequence",
1450
+ element: {
1451
+ type: {
1452
+ name: "String"
1453
+ }
1454
+ }
1455
+ }
1362
1456
  }, privateLinkServiceConnectionState: {
1363
1457
  serializedName: "properties.privateLinkServiceConnectionState",
1364
1458
  type: {
@@ -1408,6 +1502,25 @@ const SharedPrivateLinkResource = {
1408
1502
  } })
1409
1503
  }
1410
1504
  };
1505
+ const WebPubSubHub = {
1506
+ type: {
1507
+ name: "Composite",
1508
+ className: "WebPubSubHub",
1509
+ modelProperties: Object.assign(Object.assign({}, ProxyResource.type.modelProperties), { systemData: {
1510
+ serializedName: "systemData",
1511
+ type: {
1512
+ name: "Composite",
1513
+ className: "SystemData"
1514
+ }
1515
+ }, properties: {
1516
+ serializedName: "properties",
1517
+ type: {
1518
+ name: "Composite",
1519
+ className: "WebPubSubHubProperties"
1520
+ }
1521
+ } })
1522
+ }
1523
+ };
1411
1524
  const PrivateLinkResource = {
1412
1525
  type: {
1413
1526
  name: "Composite",
@@ -1451,81 +1564,222 @@ const PrivateLinkResource = {
1451
1564
  } })
1452
1565
  }
1453
1566
  };
1454
-
1455
- var Mappers = /*#__PURE__*/Object.freeze({
1456
- __proto__: null,
1457
- OperationList: OperationList,
1458
- Operation: Operation,
1459
- OperationDisplay: OperationDisplay,
1460
- OperationProperties: OperationProperties,
1461
- ServiceSpecification: ServiceSpecification,
1462
- MetricSpecification: MetricSpecification,
1463
- Dimension: Dimension,
1464
- LogSpecification: LogSpecification,
1465
- ErrorResponse: ErrorResponse,
1466
- ErrorDetail: ErrorDetail,
1467
- ErrorAdditionalInfo: ErrorAdditionalInfo,
1468
- NameAvailabilityParameters: NameAvailabilityParameters,
1469
- NameAvailability: NameAvailability,
1470
- SignalRServiceUsageList: SignalRServiceUsageList,
1471
- SignalRServiceUsage: SignalRServiceUsage,
1472
- SignalRServiceUsageName: SignalRServiceUsageName,
1473
- WebPubSubResourceList: WebPubSubResourceList,
1474
- Resource: Resource,
1475
- ResourceSku: ResourceSku,
1476
- SystemData: SystemData,
1477
- PrivateEndpoint: PrivateEndpoint,
1478
- PrivateLinkServiceConnectionState: PrivateLinkServiceConnectionState,
1479
- WebPubSubTlsSettings: WebPubSubTlsSettings,
1480
- DiagnosticConfiguration: DiagnosticConfiguration,
1481
- EventHandlerSettings: EventHandlerSettings,
1482
- EventHandlerTemplate: EventHandlerTemplate,
1483
- UpstreamAuthSettings: UpstreamAuthSettings,
1484
- ManagedIdentitySettings: ManagedIdentitySettings,
1485
- WebPubSubNetworkACLs: WebPubSubNetworkACLs,
1486
- NetworkACL: NetworkACL,
1487
- ManagedIdentity: ManagedIdentity,
1488
- UserAssignedIdentityProperty: UserAssignedIdentityProperty,
1489
- WebPubSubKeys: WebPubSubKeys,
1490
- PrivateEndpointConnectionList: PrivateEndpointConnectionList,
1491
- PrivateLinkResourceList: PrivateLinkResourceList,
1492
- ShareablePrivateLinkResourceType: ShareablePrivateLinkResourceType,
1493
- ShareablePrivateLinkResourceProperties: ShareablePrivateLinkResourceProperties,
1494
- RegenerateKeyParameters: RegenerateKeyParameters,
1495
- SharedPrivateLinkResourceList: SharedPrivateLinkResourceList,
1496
- TrackedResource: TrackedResource,
1497
- ProxyResource: ProxyResource,
1498
- PrivateEndpointACL: PrivateEndpointACL,
1499
- WebPubSubResource: WebPubSubResource,
1500
- PrivateEndpointConnection: PrivateEndpointConnection,
1501
- SharedPrivateLinkResource: SharedPrivateLinkResource,
1502
- PrivateLinkResource: PrivateLinkResource
1503
- });
1504
-
1505
- /*
1506
- * Copyright (c) Microsoft Corporation.
1507
- * Licensed under the MIT License.
1508
- *
1509
- * Code generated by Microsoft (R) AutoRest Code Generator.
1510
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
1511
- */
1512
- const accept = {
1513
- parameterPath: "accept",
1514
- mapper: {
1515
- defaultValue: "application/json",
1516
- isConstant: true,
1517
- serializedName: "Accept",
1518
- type: {
1519
- name: "String"
1520
- }
1521
- }
1522
- };
1523
- const $host = {
1524
- parameterPath: "$host",
1525
- mapper: {
1526
- serializedName: "$host",
1527
- required: true,
1528
- type: {
1567
+ const WebPubSubResource = {
1568
+ type: {
1569
+ name: "Composite",
1570
+ className: "WebPubSubResource",
1571
+ modelProperties: Object.assign(Object.assign({}, TrackedResource.type.modelProperties), { sku: {
1572
+ serializedName: "sku",
1573
+ type: {
1574
+ name: "Composite",
1575
+ className: "ResourceSku"
1576
+ }
1577
+ }, identity: {
1578
+ serializedName: "identity",
1579
+ type: {
1580
+ name: "Composite",
1581
+ className: "ManagedIdentity"
1582
+ }
1583
+ }, systemData: {
1584
+ serializedName: "systemData",
1585
+ type: {
1586
+ name: "Composite",
1587
+ className: "SystemData"
1588
+ }
1589
+ }, provisioningState: {
1590
+ serializedName: "properties.provisioningState",
1591
+ readOnly: true,
1592
+ type: {
1593
+ name: "String"
1594
+ }
1595
+ }, externalIP: {
1596
+ serializedName: "properties.externalIP",
1597
+ readOnly: true,
1598
+ type: {
1599
+ name: "String"
1600
+ }
1601
+ }, hostName: {
1602
+ serializedName: "properties.hostName",
1603
+ readOnly: true,
1604
+ type: {
1605
+ name: "String"
1606
+ }
1607
+ }, publicPort: {
1608
+ serializedName: "properties.publicPort",
1609
+ readOnly: true,
1610
+ type: {
1611
+ name: "Number"
1612
+ }
1613
+ }, serverPort: {
1614
+ serializedName: "properties.serverPort",
1615
+ readOnly: true,
1616
+ type: {
1617
+ name: "Number"
1618
+ }
1619
+ }, version: {
1620
+ serializedName: "properties.version",
1621
+ readOnly: true,
1622
+ type: {
1623
+ name: "String"
1624
+ }
1625
+ }, privateEndpointConnections: {
1626
+ serializedName: "properties.privateEndpointConnections",
1627
+ readOnly: true,
1628
+ type: {
1629
+ name: "Sequence",
1630
+ element: {
1631
+ type: {
1632
+ name: "Composite",
1633
+ className: "PrivateEndpointConnection"
1634
+ }
1635
+ }
1636
+ }
1637
+ }, sharedPrivateLinkResources: {
1638
+ serializedName: "properties.sharedPrivateLinkResources",
1639
+ readOnly: true,
1640
+ type: {
1641
+ name: "Sequence",
1642
+ element: {
1643
+ type: {
1644
+ name: "Composite",
1645
+ className: "SharedPrivateLinkResource"
1646
+ }
1647
+ }
1648
+ }
1649
+ }, tls: {
1650
+ serializedName: "properties.tls",
1651
+ type: {
1652
+ name: "Composite",
1653
+ className: "WebPubSubTlsSettings"
1654
+ }
1655
+ }, hostNamePrefix: {
1656
+ serializedName: "properties.hostNamePrefix",
1657
+ readOnly: true,
1658
+ type: {
1659
+ name: "String"
1660
+ }
1661
+ }, liveTraceConfiguration: {
1662
+ serializedName: "properties.liveTraceConfiguration",
1663
+ type: {
1664
+ name: "Composite",
1665
+ className: "LiveTraceConfiguration"
1666
+ }
1667
+ }, resourceLogConfiguration: {
1668
+ serializedName: "properties.resourceLogConfiguration",
1669
+ type: {
1670
+ name: "Composite",
1671
+ className: "ResourceLogConfiguration"
1672
+ }
1673
+ }, networkACLs: {
1674
+ serializedName: "properties.networkACLs",
1675
+ type: {
1676
+ name: "Composite",
1677
+ className: "WebPubSubNetworkACLs"
1678
+ }
1679
+ }, publicNetworkAccess: {
1680
+ defaultValue: "Enabled",
1681
+ serializedName: "properties.publicNetworkAccess",
1682
+ type: {
1683
+ name: "String"
1684
+ }
1685
+ }, disableLocalAuth: {
1686
+ defaultValue: false,
1687
+ serializedName: "properties.disableLocalAuth",
1688
+ type: {
1689
+ name: "Boolean"
1690
+ }
1691
+ }, disableAadAuth: {
1692
+ defaultValue: false,
1693
+ serializedName: "properties.disableAadAuth",
1694
+ type: {
1695
+ name: "Boolean"
1696
+ }
1697
+ } })
1698
+ }
1699
+ };
1700
+
1701
+ var Mappers = /*#__PURE__*/Object.freeze({
1702
+ __proto__: null,
1703
+ OperationList: OperationList,
1704
+ Operation: Operation,
1705
+ OperationDisplay: OperationDisplay,
1706
+ OperationProperties: OperationProperties,
1707
+ ServiceSpecification: ServiceSpecification,
1708
+ MetricSpecification: MetricSpecification,
1709
+ Dimension: Dimension,
1710
+ LogSpecification: LogSpecification,
1711
+ ErrorResponse: ErrorResponse,
1712
+ ErrorDetail: ErrorDetail,
1713
+ ErrorAdditionalInfo: ErrorAdditionalInfo,
1714
+ NameAvailabilityParameters: NameAvailabilityParameters,
1715
+ NameAvailability: NameAvailability,
1716
+ SignalRServiceUsageList: SignalRServiceUsageList,
1717
+ SignalRServiceUsage: SignalRServiceUsage,
1718
+ SignalRServiceUsageName: SignalRServiceUsageName,
1719
+ WebPubSubResourceList: WebPubSubResourceList,
1720
+ ResourceSku: ResourceSku,
1721
+ SystemData: SystemData,
1722
+ PrivateEndpoint: PrivateEndpoint,
1723
+ PrivateLinkServiceConnectionState: PrivateLinkServiceConnectionState,
1724
+ Resource: Resource,
1725
+ WebPubSubTlsSettings: WebPubSubTlsSettings,
1726
+ LiveTraceConfiguration: LiveTraceConfiguration,
1727
+ LiveTraceCategory: LiveTraceCategory,
1728
+ ResourceLogConfiguration: ResourceLogConfiguration,
1729
+ ResourceLogCategory: ResourceLogCategory,
1730
+ WebPubSubNetworkACLs: WebPubSubNetworkACLs,
1731
+ NetworkACL: NetworkACL,
1732
+ ManagedIdentity: ManagedIdentity,
1733
+ UserAssignedIdentityProperty: UserAssignedIdentityProperty,
1734
+ WebPubSubHubList: WebPubSubHubList,
1735
+ WebPubSubHubProperties: WebPubSubHubProperties,
1736
+ EventHandler: EventHandler,
1737
+ UpstreamAuthSettings: UpstreamAuthSettings,
1738
+ ManagedIdentitySettings: ManagedIdentitySettings,
1739
+ WebPubSubKeys: WebPubSubKeys,
1740
+ PrivateEndpointConnectionList: PrivateEndpointConnectionList,
1741
+ PrivateLinkResourceList: PrivateLinkResourceList,
1742
+ ShareablePrivateLinkResourceType: ShareablePrivateLinkResourceType,
1743
+ ShareablePrivateLinkResourceProperties: ShareablePrivateLinkResourceProperties,
1744
+ RegenerateKeyParameters: RegenerateKeyParameters,
1745
+ SharedPrivateLinkResourceList: SharedPrivateLinkResourceList,
1746
+ SkuList: SkuList,
1747
+ Sku: Sku,
1748
+ SkuCapacity: SkuCapacity,
1749
+ ProxyResource: ProxyResource,
1750
+ TrackedResource: TrackedResource,
1751
+ PrivateEndpointACL: PrivateEndpointACL,
1752
+ PrivateEndpointConnection: PrivateEndpointConnection,
1753
+ SharedPrivateLinkResource: SharedPrivateLinkResource,
1754
+ WebPubSubHub: WebPubSubHub,
1755
+ PrivateLinkResource: PrivateLinkResource,
1756
+ WebPubSubResource: WebPubSubResource
1757
+ });
1758
+
1759
+ /*
1760
+ * Copyright (c) Microsoft Corporation.
1761
+ * Licensed under the MIT License.
1762
+ *
1763
+ * Code generated by Microsoft (R) AutoRest Code Generator.
1764
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
1765
+ */
1766
+ const accept = {
1767
+ parameterPath: "accept",
1768
+ mapper: {
1769
+ defaultValue: "application/json",
1770
+ isConstant: true,
1771
+ serializedName: "Accept",
1772
+ type: {
1773
+ name: "String"
1774
+ }
1775
+ }
1776
+ };
1777
+ const $host = {
1778
+ parameterPath: "$host",
1779
+ mapper: {
1780
+ serializedName: "$host",
1781
+ required: true,
1782
+ type: {
1529
1783
  name: "String"
1530
1784
  }
1531
1785
  },
@@ -1534,7 +1788,7 @@ const $host = {
1534
1788
  const apiVersion = {
1535
1789
  parameterPath: "apiVersion",
1536
1790
  mapper: {
1537
- defaultValue: "2021-06-01-preview",
1791
+ defaultValue: "2021-10-01",
1538
1792
  isConstant: true,
1539
1793
  serializedName: "api-version",
1540
1794
  type: {
@@ -1616,6 +1870,20 @@ const parameters2 = {
1616
1870
  parameterPath: "parameters",
1617
1871
  mapper: RegenerateKeyParameters
1618
1872
  };
1873
+ const hubName = {
1874
+ parameterPath: "hubName",
1875
+ mapper: {
1876
+ serializedName: "hubName",
1877
+ required: true,
1878
+ type: {
1879
+ name: "String"
1880
+ }
1881
+ }
1882
+ };
1883
+ const parameters3 = {
1884
+ parameterPath: "parameters",
1885
+ mapper: WebPubSubHub
1886
+ };
1619
1887
  const privateEndpointConnectionName = {
1620
1888
  parameterPath: "privateEndpointConnectionName",
1621
1889
  mapper: {
@@ -1626,7 +1894,7 @@ const privateEndpointConnectionName = {
1626
1894
  }
1627
1895
  }
1628
1896
  };
1629
- const parameters3 = {
1897
+ const parameters4 = {
1630
1898
  parameterPath: "parameters",
1631
1899
  mapper: PrivateEndpointConnection
1632
1900
  };
@@ -1640,7 +1908,7 @@ const sharedPrivateLinkResourceName = {
1640
1908
  }
1641
1909
  }
1642
1910
  };
1643
- const parameters4 = {
1911
+ const parameters5 = {
1644
1912
  parameterPath: "parameters",
1645
1913
  mapper: SharedPrivateLinkResource
1646
1914
  };
@@ -1653,7 +1921,7 @@ const parameters4 = {
1653
1921
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
1654
1922
  */
1655
1923
  /// <reference lib="esnext.asynciterable" />
1656
- /** Class representing a Operations. */
1924
+ /** Class containing Operations operations. */
1657
1925
  class OperationsImpl {
1658
1926
  /**
1659
1927
  * Initialize a new instance of the class Operations class.
@@ -1797,7 +2065,7 @@ class LroImpl {
1797
2065
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
1798
2066
  */
1799
2067
  /// <reference lib="esnext.asynciterable" />
1800
- /** Class representing a WebPubSub. */
2068
+ /** Class containing WebPubSub operations. */
1801
2069
  class WebPubSubImpl {
1802
2070
  /**
1803
2071
  * Initialize a new instance of the class WebPubSub class.
@@ -2214,6 +2482,16 @@ class WebPubSubImpl {
2214
2482
  return poller.pollUntilDone();
2215
2483
  });
2216
2484
  }
2485
+ /**
2486
+ * List all available skus of the resource.
2487
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain
2488
+ * this value from the Azure Resource Manager API or the portal.
2489
+ * @param resourceName The name of the resource.
2490
+ * @param options The options parameters.
2491
+ */
2492
+ listSkus(resourceGroupName, resourceName, options) {
2493
+ return this.client.sendOperationRequest({ resourceGroupName, resourceName, options }, listSkusOperationSpec);
2494
+ }
2217
2495
  /**
2218
2496
  * ListBySubscriptionNext
2219
2497
  * @param nextLink The nextLink from the previous successful call to the ListBySubscription method.
@@ -2457,10 +2735,433 @@ const restartOperationSpec = {
2457
2735
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/webPubSub/{resourceName}/restart",
2458
2736
  httpMethod: "POST",
2459
2737
  responses: {
2460
- 200: {},
2461
- 201: {},
2462
- 202: {},
2463
- 204: {},
2738
+ 200: {},
2739
+ 201: {},
2740
+ 202: {},
2741
+ 204: {},
2742
+ default: {
2743
+ bodyMapper: ErrorResponse
2744
+ }
2745
+ },
2746
+ queryParameters: [apiVersion],
2747
+ urlParameters: [
2748
+ $host,
2749
+ subscriptionId,
2750
+ resourceGroupName,
2751
+ resourceName
2752
+ ],
2753
+ headerParameters: [accept],
2754
+ serializer: serializer$1
2755
+ };
2756
+ const listSkusOperationSpec = {
2757
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/webPubSub/{resourceName}/skus",
2758
+ httpMethod: "GET",
2759
+ responses: {
2760
+ 200: {
2761
+ bodyMapper: SkuList
2762
+ },
2763
+ default: {
2764
+ bodyMapper: ErrorResponse
2765
+ }
2766
+ },
2767
+ queryParameters: [apiVersion],
2768
+ urlParameters: [
2769
+ $host,
2770
+ subscriptionId,
2771
+ resourceGroupName,
2772
+ resourceName
2773
+ ],
2774
+ headerParameters: [accept],
2775
+ serializer: serializer$1
2776
+ };
2777
+ const listBySubscriptionNextOperationSpec = {
2778
+ path: "{nextLink}",
2779
+ httpMethod: "GET",
2780
+ responses: {
2781
+ 200: {
2782
+ bodyMapper: WebPubSubResourceList
2783
+ },
2784
+ default: {
2785
+ bodyMapper: ErrorResponse
2786
+ }
2787
+ },
2788
+ queryParameters: [apiVersion],
2789
+ urlParameters: [
2790
+ $host,
2791
+ nextLink,
2792
+ subscriptionId
2793
+ ],
2794
+ headerParameters: [accept],
2795
+ serializer: serializer$1
2796
+ };
2797
+ const listByResourceGroupNextOperationSpec = {
2798
+ path: "{nextLink}",
2799
+ httpMethod: "GET",
2800
+ responses: {
2801
+ 200: {
2802
+ bodyMapper: WebPubSubResourceList
2803
+ },
2804
+ default: {
2805
+ bodyMapper: ErrorResponse
2806
+ }
2807
+ },
2808
+ queryParameters: [apiVersion],
2809
+ urlParameters: [
2810
+ $host,
2811
+ nextLink,
2812
+ subscriptionId,
2813
+ resourceGroupName
2814
+ ],
2815
+ headerParameters: [accept],
2816
+ serializer: serializer$1
2817
+ };
2818
+
2819
+ /*
2820
+ * Copyright (c) Microsoft Corporation.
2821
+ * Licensed under the MIT License.
2822
+ *
2823
+ * Code generated by Microsoft (R) AutoRest Code Generator.
2824
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
2825
+ */
2826
+ /// <reference lib="esnext.asynciterable" />
2827
+ /** Class containing Usages operations. */
2828
+ class UsagesImpl {
2829
+ /**
2830
+ * Initialize a new instance of the class Usages class.
2831
+ * @param client Reference to the service client
2832
+ */
2833
+ constructor(client) {
2834
+ this.client = client;
2835
+ }
2836
+ /**
2837
+ * List resource usage quotas by location.
2838
+ * @param location the location like "eastus"
2839
+ * @param options The options parameters.
2840
+ */
2841
+ list(location, options) {
2842
+ const iter = this.listPagingAll(location, options);
2843
+ return {
2844
+ next() {
2845
+ return iter.next();
2846
+ },
2847
+ [Symbol.asyncIterator]() {
2848
+ return this;
2849
+ },
2850
+ byPage: () => {
2851
+ return this.listPagingPage(location, options);
2852
+ }
2853
+ };
2854
+ }
2855
+ listPagingPage(location, options) {
2856
+ return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
2857
+ let result = yield tslib.__await(this._list(location, options));
2858
+ yield yield tslib.__await(result.value || []);
2859
+ let continuationToken = result.nextLink;
2860
+ while (continuationToken) {
2861
+ result = yield tslib.__await(this._listNext(location, continuationToken, options));
2862
+ continuationToken = result.nextLink;
2863
+ yield yield tslib.__await(result.value || []);
2864
+ }
2865
+ });
2866
+ }
2867
+ listPagingAll(location, options) {
2868
+ return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
2869
+ var e_1, _a;
2870
+ try {
2871
+ for (var _b = tslib.__asyncValues(this.listPagingPage(location, options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
2872
+ const page = _c.value;
2873
+ yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
2874
+ }
2875
+ }
2876
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
2877
+ finally {
2878
+ try {
2879
+ if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
2880
+ }
2881
+ finally { if (e_1) throw e_1.error; }
2882
+ }
2883
+ });
2884
+ }
2885
+ /**
2886
+ * List resource usage quotas by location.
2887
+ * @param location the location like "eastus"
2888
+ * @param options The options parameters.
2889
+ */
2890
+ _list(location, options) {
2891
+ return this.client.sendOperationRequest({ location, options }, listOperationSpec$1);
2892
+ }
2893
+ /**
2894
+ * ListNext
2895
+ * @param location the location like "eastus"
2896
+ * @param nextLink The nextLink from the previous successful call to the List method.
2897
+ * @param options The options parameters.
2898
+ */
2899
+ _listNext(location, nextLink, options) {
2900
+ return this.client.sendOperationRequest({ location, nextLink, options }, listNextOperationSpec$1);
2901
+ }
2902
+ }
2903
+ // Operation Specifications
2904
+ const serializer$2 = coreClient.createSerializer(Mappers, /* isXml */ false);
2905
+ const listOperationSpec$1 = {
2906
+ path: "/subscriptions/{subscriptionId}/providers/Microsoft.SignalRService/locations/{location}/usages",
2907
+ httpMethod: "GET",
2908
+ responses: {
2909
+ 200: {
2910
+ bodyMapper: SignalRServiceUsageList
2911
+ },
2912
+ default: {
2913
+ bodyMapper: ErrorResponse
2914
+ }
2915
+ },
2916
+ queryParameters: [apiVersion],
2917
+ urlParameters: [
2918
+ $host,
2919
+ location,
2920
+ subscriptionId
2921
+ ],
2922
+ headerParameters: [accept],
2923
+ serializer: serializer$2
2924
+ };
2925
+ const listNextOperationSpec$1 = {
2926
+ path: "{nextLink}",
2927
+ httpMethod: "GET",
2928
+ responses: {
2929
+ 200: {
2930
+ bodyMapper: SignalRServiceUsageList
2931
+ },
2932
+ default: {
2933
+ bodyMapper: ErrorResponse
2934
+ }
2935
+ },
2936
+ queryParameters: [apiVersion],
2937
+ urlParameters: [
2938
+ $host,
2939
+ nextLink,
2940
+ location,
2941
+ subscriptionId
2942
+ ],
2943
+ headerParameters: [accept],
2944
+ serializer: serializer$2
2945
+ };
2946
+
2947
+ /*
2948
+ * Copyright (c) Microsoft Corporation.
2949
+ * Licensed under the MIT License.
2950
+ *
2951
+ * Code generated by Microsoft (R) AutoRest Code Generator.
2952
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
2953
+ */
2954
+ /// <reference lib="esnext.asynciterable" />
2955
+ /** Class containing WebPubSubHubs operations. */
2956
+ class WebPubSubHubsImpl {
2957
+ /**
2958
+ * Initialize a new instance of the class WebPubSubHubs class.
2959
+ * @param client Reference to the service client
2960
+ */
2961
+ constructor(client) {
2962
+ this.client = client;
2963
+ }
2964
+ /**
2965
+ * List hub settings.
2966
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain
2967
+ * this value from the Azure Resource Manager API or the portal.
2968
+ * @param resourceName The name of the resource.
2969
+ * @param options The options parameters.
2970
+ */
2971
+ list(resourceGroupName, resourceName, options) {
2972
+ const iter = this.listPagingAll(resourceGroupName, resourceName, options);
2973
+ return {
2974
+ next() {
2975
+ return iter.next();
2976
+ },
2977
+ [Symbol.asyncIterator]() {
2978
+ return this;
2979
+ },
2980
+ byPage: () => {
2981
+ return this.listPagingPage(resourceGroupName, resourceName, options);
2982
+ }
2983
+ };
2984
+ }
2985
+ listPagingPage(resourceGroupName, resourceName, options) {
2986
+ return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
2987
+ let result = yield tslib.__await(this._list(resourceGroupName, resourceName, options));
2988
+ yield yield tslib.__await(result.value || []);
2989
+ let continuationToken = result.nextLink;
2990
+ while (continuationToken) {
2991
+ result = yield tslib.__await(this._listNext(resourceGroupName, resourceName, continuationToken, options));
2992
+ continuationToken = result.nextLink;
2993
+ yield yield tslib.__await(result.value || []);
2994
+ }
2995
+ });
2996
+ }
2997
+ listPagingAll(resourceGroupName, resourceName, options) {
2998
+ return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
2999
+ var e_1, _a;
3000
+ try {
3001
+ for (var _b = tslib.__asyncValues(this.listPagingPage(resourceGroupName, resourceName, options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
3002
+ const page = _c.value;
3003
+ yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
3004
+ }
3005
+ }
3006
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
3007
+ finally {
3008
+ try {
3009
+ if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
3010
+ }
3011
+ finally { if (e_1) throw e_1.error; }
3012
+ }
3013
+ });
3014
+ }
3015
+ /**
3016
+ * List hub settings.
3017
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain
3018
+ * this value from the Azure Resource Manager API or the portal.
3019
+ * @param resourceName The name of the resource.
3020
+ * @param options The options parameters.
3021
+ */
3022
+ _list(resourceGroupName, resourceName, options) {
3023
+ return this.client.sendOperationRequest({ resourceGroupName, resourceName, options }, listOperationSpec$2);
3024
+ }
3025
+ /**
3026
+ * Get a hub setting.
3027
+ * @param hubName The hub name.
3028
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain
3029
+ * this value from the Azure Resource Manager API or the portal.
3030
+ * @param resourceName The name of the resource.
3031
+ * @param options The options parameters.
3032
+ */
3033
+ get(hubName, resourceGroupName, resourceName, options) {
3034
+ return this.client.sendOperationRequest({ hubName, resourceGroupName, resourceName, options }, getOperationSpec$1);
3035
+ }
3036
+ /**
3037
+ * Create or update a hub setting.
3038
+ * @param hubName The hub name.
3039
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain
3040
+ * this value from the Azure Resource Manager API or the portal.
3041
+ * @param resourceName The name of the resource.
3042
+ * @param parameters The resource of WebPubSubHub and its properties
3043
+ * @param options The options parameters.
3044
+ */
3045
+ beginCreateOrUpdate(hubName, resourceGroupName, resourceName, parameters, options) {
3046
+ return tslib.__awaiter(this, void 0, void 0, function* () {
3047
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3048
+ return this.client.sendOperationRequest(args, spec);
3049
+ });
3050
+ const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3051
+ var _a;
3052
+ let currentRawResponse = undefined;
3053
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
3054
+ const callback = (rawResponse, flatResponse) => {
3055
+ currentRawResponse = rawResponse;
3056
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
3057
+ };
3058
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
3059
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
3060
+ return {
3061
+ flatResponse,
3062
+ rawResponse: {
3063
+ statusCode: currentRawResponse.status,
3064
+ body: currentRawResponse.parsedBody,
3065
+ headers: currentRawResponse.headers.toJSON()
3066
+ }
3067
+ };
3068
+ });
3069
+ const lro = new LroImpl(sendOperation, { hubName, resourceGroupName, resourceName, parameters, options }, createOrUpdateOperationSpec$1);
3070
+ return new coreLro.LroEngine(lro, {
3071
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
3072
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
3073
+ });
3074
+ });
3075
+ }
3076
+ /**
3077
+ * Create or update a hub setting.
3078
+ * @param hubName The hub name.
3079
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain
3080
+ * this value from the Azure Resource Manager API or the portal.
3081
+ * @param resourceName The name of the resource.
3082
+ * @param parameters The resource of WebPubSubHub and its properties
3083
+ * @param options The options parameters.
3084
+ */
3085
+ beginCreateOrUpdateAndWait(hubName, resourceGroupName, resourceName, parameters, options) {
3086
+ return tslib.__awaiter(this, void 0, void 0, function* () {
3087
+ const poller = yield this.beginCreateOrUpdate(hubName, resourceGroupName, resourceName, parameters, options);
3088
+ return poller.pollUntilDone();
3089
+ });
3090
+ }
3091
+ /**
3092
+ * Delete a hub setting.
3093
+ * @param hubName The hub name.
3094
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain
3095
+ * this value from the Azure Resource Manager API or the portal.
3096
+ * @param resourceName The name of the resource.
3097
+ * @param options The options parameters.
3098
+ */
3099
+ beginDelete(hubName, resourceGroupName, resourceName, options) {
3100
+ return tslib.__awaiter(this, void 0, void 0, function* () {
3101
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3102
+ return this.client.sendOperationRequest(args, spec);
3103
+ });
3104
+ const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3105
+ var _a;
3106
+ let currentRawResponse = undefined;
3107
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
3108
+ const callback = (rawResponse, flatResponse) => {
3109
+ currentRawResponse = rawResponse;
3110
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
3111
+ };
3112
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
3113
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
3114
+ return {
3115
+ flatResponse,
3116
+ rawResponse: {
3117
+ statusCode: currentRawResponse.status,
3118
+ body: currentRawResponse.parsedBody,
3119
+ headers: currentRawResponse.headers.toJSON()
3120
+ }
3121
+ };
3122
+ });
3123
+ const lro = new LroImpl(sendOperation, { hubName, resourceGroupName, resourceName, options }, deleteOperationSpec$1);
3124
+ return new coreLro.LroEngine(lro, {
3125
+ resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
3126
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
3127
+ });
3128
+ });
3129
+ }
3130
+ /**
3131
+ * Delete a hub setting.
3132
+ * @param hubName The hub name.
3133
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain
3134
+ * this value from the Azure Resource Manager API or the portal.
3135
+ * @param resourceName The name of the resource.
3136
+ * @param options The options parameters.
3137
+ */
3138
+ beginDeleteAndWait(hubName, resourceGroupName, resourceName, options) {
3139
+ return tslib.__awaiter(this, void 0, void 0, function* () {
3140
+ const poller = yield this.beginDelete(hubName, resourceGroupName, resourceName, options);
3141
+ return poller.pollUntilDone();
3142
+ });
3143
+ }
3144
+ /**
3145
+ * ListNext
3146
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain
3147
+ * this value from the Azure Resource Manager API or the portal.
3148
+ * @param resourceName The name of the resource.
3149
+ * @param nextLink The nextLink from the previous successful call to the List method.
3150
+ * @param options The options parameters.
3151
+ */
3152
+ _listNext(resourceGroupName, resourceName, nextLink, options) {
3153
+ return this.client.sendOperationRequest({ resourceGroupName, resourceName, nextLink, options }, listNextOperationSpec$2);
3154
+ }
3155
+ }
3156
+ // Operation Specifications
3157
+ const serializer$3 = coreClient.createSerializer(Mappers, /* isXml */ false);
3158
+ const listOperationSpec$2 = {
3159
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/webPubSub/{resourceName}/hubs",
3160
+ httpMethod: "GET",
3161
+ responses: {
3162
+ 200: {
3163
+ bodyMapper: WebPubSubHubList
3164
+ },
2464
3165
  default: {
2465
3166
  bodyMapper: ErrorResponse
2466
3167
  }
@@ -2473,14 +3174,14 @@ const restartOperationSpec = {
2473
3174
  resourceName
2474
3175
  ],
2475
3176
  headerParameters: [accept],
2476
- serializer: serializer$1
3177
+ serializer: serializer$3
2477
3178
  };
2478
- const listBySubscriptionNextOperationSpec = {
2479
- path: "{nextLink}",
3179
+ const getOperationSpec$1 = {
3180
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/webPubSub/{resourceName}/hubs/{hubName}",
2480
3181
  httpMethod: "GET",
2481
3182
  responses: {
2482
3183
  200: {
2483
- bodyMapper: WebPubSubResourceList
3184
+ bodyMapper: WebPubSubHub
2484
3185
  },
2485
3186
  default: {
2486
3187
  bodyMapper: ErrorResponse
@@ -2489,127 +3190,55 @@ const listBySubscriptionNextOperationSpec = {
2489
3190
  queryParameters: [apiVersion],
2490
3191
  urlParameters: [
2491
3192
  $host,
2492
- nextLink,
2493
- subscriptionId
3193
+ subscriptionId,
3194
+ resourceGroupName,
3195
+ resourceName,
3196
+ hubName
2494
3197
  ],
2495
3198
  headerParameters: [accept],
2496
- serializer: serializer$1
3199
+ serializer: serializer$3
2497
3200
  };
2498
- const listByResourceGroupNextOperationSpec = {
2499
- path: "{nextLink}",
2500
- httpMethod: "GET",
3201
+ const createOrUpdateOperationSpec$1 = {
3202
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/webPubSub/{resourceName}/hubs/{hubName}",
3203
+ httpMethod: "PUT",
2501
3204
  responses: {
2502
3205
  200: {
2503
- bodyMapper: WebPubSubResourceList
3206
+ bodyMapper: WebPubSubHub
3207
+ },
3208
+ 201: {
3209
+ bodyMapper: WebPubSubHub
3210
+ },
3211
+ 202: {
3212
+ bodyMapper: WebPubSubHub
3213
+ },
3214
+ 204: {
3215
+ bodyMapper: WebPubSubHub
2504
3216
  },
2505
3217
  default: {
2506
3218
  bodyMapper: ErrorResponse
2507
3219
  }
2508
3220
  },
3221
+ requestBody: parameters3,
2509
3222
  queryParameters: [apiVersion],
2510
3223
  urlParameters: [
2511
3224
  $host,
2512
- nextLink,
2513
3225
  subscriptionId,
2514
- resourceGroupName
3226
+ resourceGroupName,
3227
+ resourceName,
3228
+ hubName
2515
3229
  ],
2516
- headerParameters: [accept],
2517
- serializer: serializer$1
3230
+ headerParameters: [accept, contentType],
3231
+ mediaType: "json",
3232
+ serializer: serializer$3
2518
3233
  };
2519
-
2520
- /*
2521
- * Copyright (c) Microsoft Corporation.
2522
- * Licensed under the MIT License.
2523
- *
2524
- * Code generated by Microsoft (R) AutoRest Code Generator.
2525
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
2526
- */
2527
- /// <reference lib="esnext.asynciterable" />
2528
- /** Class representing a Usages. */
2529
- class UsagesImpl {
2530
- /**
2531
- * Initialize a new instance of the class Usages class.
2532
- * @param client Reference to the service client
2533
- */
2534
- constructor(client) {
2535
- this.client = client;
2536
- }
2537
- /**
2538
- * List resource usage quotas by location.
2539
- * @param location the location like "eastus"
2540
- * @param options The options parameters.
2541
- */
2542
- list(location, options) {
2543
- const iter = this.listPagingAll(location, options);
2544
- return {
2545
- next() {
2546
- return iter.next();
2547
- },
2548
- [Symbol.asyncIterator]() {
2549
- return this;
2550
- },
2551
- byPage: () => {
2552
- return this.listPagingPage(location, options);
2553
- }
2554
- };
2555
- }
2556
- listPagingPage(location, options) {
2557
- return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
2558
- let result = yield tslib.__await(this._list(location, options));
2559
- yield yield tslib.__await(result.value || []);
2560
- let continuationToken = result.nextLink;
2561
- while (continuationToken) {
2562
- result = yield tslib.__await(this._listNext(location, continuationToken, options));
2563
- continuationToken = result.nextLink;
2564
- yield yield tslib.__await(result.value || []);
2565
- }
2566
- });
2567
- }
2568
- listPagingAll(location, options) {
2569
- return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
2570
- var e_1, _a;
2571
- try {
2572
- for (var _b = tslib.__asyncValues(this.listPagingPage(location, options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
2573
- const page = _c.value;
2574
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
2575
- }
2576
- }
2577
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
2578
- finally {
2579
- try {
2580
- if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
2581
- }
2582
- finally { if (e_1) throw e_1.error; }
2583
- }
2584
- });
2585
- }
2586
- /**
2587
- * List resource usage quotas by location.
2588
- * @param location the location like "eastus"
2589
- * @param options The options parameters.
2590
- */
2591
- _list(location, options) {
2592
- return this.client.sendOperationRequest({ location, options }, listOperationSpec$1);
2593
- }
2594
- /**
2595
- * ListNext
2596
- * @param location the location like "eastus"
2597
- * @param nextLink The nextLink from the previous successful call to the List method.
2598
- * @param options The options parameters.
2599
- */
2600
- _listNext(location, nextLink, options) {
2601
- return this.client.sendOperationRequest({ location, nextLink, options }, listNextOperationSpec$1);
2602
- }
2603
- }
2604
- // Operation Specifications
2605
- const serializer$2 = coreClient.createSerializer(Mappers, /* isXml */ false);
2606
- const listOperationSpec$1 = {
2607
- path: "/subscriptions/{subscriptionId}/providers/Microsoft.SignalRService/locations/{location}/usages",
2608
- httpMethod: "GET",
3234
+ const deleteOperationSpec$1 = {
3235
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/webPubSub/{resourceName}/hubs/{hubName}",
3236
+ httpMethod: "DELETE",
2609
3237
  responses: {
2610
- 200: {
2611
- bodyMapper: SignalRServiceUsageList
2612
- },
3238
+ 200: {},
3239
+ 201: {},
3240
+ 202: {},
3241
+ 204: {},
2613
3242
  default: {
2614
3243
  bodyMapper: ErrorResponse
2615
3244
  }
@@ -2617,18 +3246,20 @@ const listOperationSpec$1 = {
2617
3246
  queryParameters: [apiVersion],
2618
3247
  urlParameters: [
2619
3248
  $host,
2620
- location,
2621
- subscriptionId
3249
+ subscriptionId,
3250
+ resourceGroupName,
3251
+ resourceName,
3252
+ hubName
2622
3253
  ],
2623
3254
  headerParameters: [accept],
2624
- serializer: serializer$2
3255
+ serializer: serializer$3
2625
3256
  };
2626
- const listNextOperationSpec$1 = {
3257
+ const listNextOperationSpec$2 = {
2627
3258
  path: "{nextLink}",
2628
3259
  httpMethod: "GET",
2629
3260
  responses: {
2630
3261
  200: {
2631
- bodyMapper: SignalRServiceUsageList
3262
+ bodyMapper: WebPubSubHubList
2632
3263
  },
2633
3264
  default: {
2634
3265
  bodyMapper: ErrorResponse
@@ -2638,11 +3269,12 @@ const listNextOperationSpec$1 = {
2638
3269
  urlParameters: [
2639
3270
  $host,
2640
3271
  nextLink,
2641
- location,
2642
- subscriptionId
3272
+ subscriptionId,
3273
+ resourceGroupName,
3274
+ resourceName
2643
3275
  ],
2644
3276
  headerParameters: [accept],
2645
- serializer: serializer$2
3277
+ serializer: serializer$3
2646
3278
  };
2647
3279
 
2648
3280
  /*
@@ -2653,7 +3285,7 @@ const listNextOperationSpec$1 = {
2653
3285
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
2654
3286
  */
2655
3287
  /// <reference lib="esnext.asynciterable" />
2656
- /** Class representing a WebPubSubPrivateEndpointConnections. */
3288
+ /** Class containing WebPubSubPrivateEndpointConnections operations. */
2657
3289
  class WebPubSubPrivateEndpointConnectionsImpl {
2658
3290
  /**
2659
3291
  * Initialize a new instance of the class WebPubSubPrivateEndpointConnections class.
@@ -2721,7 +3353,7 @@ class WebPubSubPrivateEndpointConnectionsImpl {
2721
3353
  * @param options The options parameters.
2722
3354
  */
2723
3355
  _list(resourceGroupName, resourceName, options) {
2724
- return this.client.sendOperationRequest({ resourceGroupName, resourceName, options }, listOperationSpec$2);
3356
+ return this.client.sendOperationRequest({ resourceGroupName, resourceName, options }, listOperationSpec$3);
2725
3357
  }
2726
3358
  /**
2727
3359
  * Get the specified private endpoint connection
@@ -2737,7 +3369,7 @@ class WebPubSubPrivateEndpointConnectionsImpl {
2737
3369
  resourceGroupName,
2738
3370
  resourceName,
2739
3371
  options
2740
- }, getOperationSpec$1);
3372
+ }, getOperationSpec$2);
2741
3373
  }
2742
3374
  /**
2743
3375
  * Update the state of specified private endpoint connection
@@ -2794,7 +3426,7 @@ class WebPubSubPrivateEndpointConnectionsImpl {
2794
3426
  resourceGroupName,
2795
3427
  resourceName,
2796
3428
  options
2797
- }, deleteOperationSpec$1);
3429
+ }, deleteOperationSpec$2);
2798
3430
  return new coreLro.LroEngine(lro, {
2799
3431
  resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
2800
3432
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
@@ -2824,12 +3456,12 @@ class WebPubSubPrivateEndpointConnectionsImpl {
2824
3456
  * @param options The options parameters.
2825
3457
  */
2826
3458
  _listNext(resourceGroupName, resourceName, nextLink, options) {
2827
- return this.client.sendOperationRequest({ resourceGroupName, resourceName, nextLink, options }, listNextOperationSpec$2);
3459
+ return this.client.sendOperationRequest({ resourceGroupName, resourceName, nextLink, options }, listNextOperationSpec$3);
2828
3460
  }
2829
3461
  }
2830
3462
  // Operation Specifications
2831
- const serializer$3 = coreClient.createSerializer(Mappers, /* isXml */ false);
2832
- const listOperationSpec$2 = {
3463
+ const serializer$4 = coreClient.createSerializer(Mappers, /* isXml */ false);
3464
+ const listOperationSpec$3 = {
2833
3465
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/webPubSub/{resourceName}/privateEndpointConnections",
2834
3466
  httpMethod: "GET",
2835
3467
  responses: {
@@ -2848,9 +3480,9 @@ const listOperationSpec$2 = {
2848
3480
  resourceName
2849
3481
  ],
2850
3482
  headerParameters: [accept],
2851
- serializer: serializer$3
3483
+ serializer: serializer$4
2852
3484
  };
2853
- const getOperationSpec$1 = {
3485
+ const getOperationSpec$2 = {
2854
3486
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/webPubSub/{resourceName}/privateEndpointConnections/{privateEndpointConnectionName}",
2855
3487
  httpMethod: "GET",
2856
3488
  responses: {
@@ -2870,7 +3502,7 @@ const getOperationSpec$1 = {
2870
3502
  privateEndpointConnectionName
2871
3503
  ],
2872
3504
  headerParameters: [accept],
2873
- serializer: serializer$3
3505
+ serializer: serializer$4
2874
3506
  };
2875
3507
  const updateOperationSpec$1 = {
2876
3508
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/webPubSub/{resourceName}/privateEndpointConnections/{privateEndpointConnectionName}",
@@ -2883,7 +3515,7 @@ const updateOperationSpec$1 = {
2883
3515
  bodyMapper: ErrorResponse
2884
3516
  }
2885
3517
  },
2886
- requestBody: parameters3,
3518
+ requestBody: parameters4,
2887
3519
  queryParameters: [apiVersion],
2888
3520
  urlParameters: [
2889
3521
  $host,
@@ -2894,9 +3526,9 @@ const updateOperationSpec$1 = {
2894
3526
  ],
2895
3527
  headerParameters: [accept, contentType],
2896
3528
  mediaType: "json",
2897
- serializer: serializer$3
3529
+ serializer: serializer$4
2898
3530
  };
2899
- const deleteOperationSpec$1 = {
3531
+ const deleteOperationSpec$2 = {
2900
3532
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/webPubSub/{resourceName}/privateEndpointConnections/{privateEndpointConnectionName}",
2901
3533
  httpMethod: "DELETE",
2902
3534
  responses: {
@@ -2917,9 +3549,9 @@ const deleteOperationSpec$1 = {
2917
3549
  privateEndpointConnectionName
2918
3550
  ],
2919
3551
  headerParameters: [accept],
2920
- serializer: serializer$3
3552
+ serializer: serializer$4
2921
3553
  };
2922
- const listNextOperationSpec$2 = {
3554
+ const listNextOperationSpec$3 = {
2923
3555
  path: "{nextLink}",
2924
3556
  httpMethod: "GET",
2925
3557
  responses: {
@@ -2939,7 +3571,7 @@ const listNextOperationSpec$2 = {
2939
3571
  resourceName
2940
3572
  ],
2941
3573
  headerParameters: [accept],
2942
- serializer: serializer$3
3574
+ serializer: serializer$4
2943
3575
  };
2944
3576
 
2945
3577
  /*
@@ -2950,7 +3582,7 @@ const listNextOperationSpec$2 = {
2950
3582
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
2951
3583
  */
2952
3584
  /// <reference lib="esnext.asynciterable" />
2953
- /** Class representing a WebPubSubPrivateLinkResources. */
3585
+ /** Class containing WebPubSubPrivateLinkResources operations. */
2954
3586
  class WebPubSubPrivateLinkResourcesImpl {
2955
3587
  /**
2956
3588
  * Initialize a new instance of the class WebPubSubPrivateLinkResources class.
@@ -3018,7 +3650,7 @@ class WebPubSubPrivateLinkResourcesImpl {
3018
3650
  * @param options The options parameters.
3019
3651
  */
3020
3652
  _list(resourceGroupName, resourceName, options) {
3021
- return this.client.sendOperationRequest({ resourceGroupName, resourceName, options }, listOperationSpec$3);
3653
+ return this.client.sendOperationRequest({ resourceGroupName, resourceName, options }, listOperationSpec$4);
3022
3654
  }
3023
3655
  /**
3024
3656
  * ListNext
@@ -3029,12 +3661,12 @@ class WebPubSubPrivateLinkResourcesImpl {
3029
3661
  * @param options The options parameters.
3030
3662
  */
3031
3663
  _listNext(resourceGroupName, resourceName, nextLink, options) {
3032
- return this.client.sendOperationRequest({ resourceGroupName, resourceName, nextLink, options }, listNextOperationSpec$3);
3664
+ return this.client.sendOperationRequest({ resourceGroupName, resourceName, nextLink, options }, listNextOperationSpec$4);
3033
3665
  }
3034
3666
  }
3035
3667
  // Operation Specifications
3036
- const serializer$4 = coreClient.createSerializer(Mappers, /* isXml */ false);
3037
- const listOperationSpec$3 = {
3668
+ const serializer$5 = coreClient.createSerializer(Mappers, /* isXml */ false);
3669
+ const listOperationSpec$4 = {
3038
3670
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/webPubSub/{resourceName}/privateLinkResources",
3039
3671
  httpMethod: "GET",
3040
3672
  responses: {
@@ -3053,9 +3685,9 @@ const listOperationSpec$3 = {
3053
3685
  resourceName
3054
3686
  ],
3055
3687
  headerParameters: [accept],
3056
- serializer: serializer$4
3688
+ serializer: serializer$5
3057
3689
  };
3058
- const listNextOperationSpec$3 = {
3690
+ const listNextOperationSpec$4 = {
3059
3691
  path: "{nextLink}",
3060
3692
  httpMethod: "GET",
3061
3693
  responses: {
@@ -3075,7 +3707,7 @@ const listNextOperationSpec$3 = {
3075
3707
  resourceName
3076
3708
  ],
3077
3709
  headerParameters: [accept],
3078
- serializer: serializer$4
3710
+ serializer: serializer$5
3079
3711
  };
3080
3712
 
3081
3713
  /*
@@ -3086,7 +3718,7 @@ const listNextOperationSpec$3 = {
3086
3718
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
3087
3719
  */
3088
3720
  /// <reference lib="esnext.asynciterable" />
3089
- /** Class representing a WebPubSubSharedPrivateLinkResources. */
3721
+ /** Class containing WebPubSubSharedPrivateLinkResources operations. */
3090
3722
  class WebPubSubSharedPrivateLinkResourcesImpl {
3091
3723
  /**
3092
3724
  * Initialize a new instance of the class WebPubSubSharedPrivateLinkResources class.
@@ -3154,7 +3786,7 @@ class WebPubSubSharedPrivateLinkResourcesImpl {
3154
3786
  * @param options The options parameters.
3155
3787
  */
3156
3788
  _list(resourceGroupName, resourceName, options) {
3157
- return this.client.sendOperationRequest({ resourceGroupName, resourceName, options }, listOperationSpec$4);
3789
+ return this.client.sendOperationRequest({ resourceGroupName, resourceName, options }, listOperationSpec$5);
3158
3790
  }
3159
3791
  /**
3160
3792
  * Get the specified shared private link resource
@@ -3170,7 +3802,7 @@ class WebPubSubSharedPrivateLinkResourcesImpl {
3170
3802
  resourceGroupName,
3171
3803
  resourceName,
3172
3804
  options
3173
- }, getOperationSpec$2);
3805
+ }, getOperationSpec$3);
3174
3806
  }
3175
3807
  /**
3176
3808
  * Create or update a shared private link resource
@@ -3211,7 +3843,7 @@ class WebPubSubSharedPrivateLinkResourcesImpl {
3211
3843
  resourceName,
3212
3844
  parameters,
3213
3845
  options
3214
- }, createOrUpdateOperationSpec$1);
3846
+ }, createOrUpdateOperationSpec$2);
3215
3847
  return new coreLro.LroEngine(lro, {
3216
3848
  resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
3217
3849
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
@@ -3270,7 +3902,7 @@ class WebPubSubSharedPrivateLinkResourcesImpl {
3270
3902
  resourceGroupName,
3271
3903
  resourceName,
3272
3904
  options
3273
- }, deleteOperationSpec$2);
3905
+ }, deleteOperationSpec$3);
3274
3906
  return new coreLro.LroEngine(lro, {
3275
3907
  resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
3276
3908
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
@@ -3300,12 +3932,12 @@ class WebPubSubSharedPrivateLinkResourcesImpl {
3300
3932
  * @param options The options parameters.
3301
3933
  */
3302
3934
  _listNext(resourceGroupName, resourceName, nextLink, options) {
3303
- return this.client.sendOperationRequest({ resourceGroupName, resourceName, nextLink, options }, listNextOperationSpec$4);
3935
+ return this.client.sendOperationRequest({ resourceGroupName, resourceName, nextLink, options }, listNextOperationSpec$5);
3304
3936
  }
3305
3937
  }
3306
3938
  // Operation Specifications
3307
- const serializer$5 = coreClient.createSerializer(Mappers, /* isXml */ false);
3308
- const listOperationSpec$4 = {
3939
+ const serializer$6 = coreClient.createSerializer(Mappers, /* isXml */ false);
3940
+ const listOperationSpec$5 = {
3309
3941
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/webPubSub/{resourceName}/sharedPrivateLinkResources",
3310
3942
  httpMethod: "GET",
3311
3943
  responses: {
@@ -3324,9 +3956,9 @@ const listOperationSpec$4 = {
3324
3956
  resourceName
3325
3957
  ],
3326
3958
  headerParameters: [accept],
3327
- serializer: serializer$5
3959
+ serializer: serializer$6
3328
3960
  };
3329
- const getOperationSpec$2 = {
3961
+ const getOperationSpec$3 = {
3330
3962
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/webPubSub/{resourceName}/sharedPrivateLinkResources/{sharedPrivateLinkResourceName}",
3331
3963
  httpMethod: "GET",
3332
3964
  responses: {
@@ -3346,9 +3978,9 @@ const getOperationSpec$2 = {
3346
3978
  sharedPrivateLinkResourceName
3347
3979
  ],
3348
3980
  headerParameters: [accept],
3349
- serializer: serializer$5
3981
+ serializer: serializer$6
3350
3982
  };
3351
- const createOrUpdateOperationSpec$1 = {
3983
+ const createOrUpdateOperationSpec$2 = {
3352
3984
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/webPubSub/{resourceName}/sharedPrivateLinkResources/{sharedPrivateLinkResourceName}",
3353
3985
  httpMethod: "PUT",
3354
3986
  responses: {
@@ -3368,7 +4000,7 @@ const createOrUpdateOperationSpec$1 = {
3368
4000
  bodyMapper: ErrorResponse
3369
4001
  }
3370
4002
  },
3371
- requestBody: parameters4,
4003
+ requestBody: parameters5,
3372
4004
  queryParameters: [apiVersion],
3373
4005
  urlParameters: [
3374
4006
  $host,
@@ -3379,9 +4011,9 @@ const createOrUpdateOperationSpec$1 = {
3379
4011
  ],
3380
4012
  headerParameters: [accept, contentType],
3381
4013
  mediaType: "json",
3382
- serializer: serializer$5
4014
+ serializer: serializer$6
3383
4015
  };
3384
- const deleteOperationSpec$2 = {
4016
+ const deleteOperationSpec$3 = {
3385
4017
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/webPubSub/{resourceName}/sharedPrivateLinkResources/{sharedPrivateLinkResourceName}",
3386
4018
  httpMethod: "DELETE",
3387
4019
  responses: {
@@ -3402,9 +4034,9 @@ const deleteOperationSpec$2 = {
3402
4034
  sharedPrivateLinkResourceName
3403
4035
  ],
3404
4036
  headerParameters: [accept],
3405
- serializer: serializer$5
4037
+ serializer: serializer$6
3406
4038
  };
3407
- const listNextOperationSpec$4 = {
4039
+ const listNextOperationSpec$5 = {
3408
4040
  path: "{nextLink}",
3409
4041
  httpMethod: "GET",
3410
4042
  responses: {
@@ -3424,7 +4056,7 @@ const listNextOperationSpec$4 = {
3424
4056
  resourceName
3425
4057
  ],
3426
4058
  headerParameters: [accept],
3427
- serializer: serializer$5
4059
+ serializer: serializer$6
3428
4060
  };
3429
4061
 
3430
4062
  /*
@@ -3434,9 +4066,9 @@ const listNextOperationSpec$4 = {
3434
4066
  * Code generated by Microsoft (R) AutoRest Code Generator.
3435
4067
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
3436
4068
  */
3437
- class WebPubSubManagementClientContext extends coreClient.ServiceClient {
4069
+ class WebPubSubManagementClient extends coreClient.ServiceClient {
3438
4070
  /**
3439
- * Initializes a new instance of the WebPubSubManagementClientContext class.
4071
+ * Initializes a new instance of the WebPubSubManagementClient class.
3440
4072
  * @param credentials Subscription credentials which uniquely identify client subscription.
3441
4073
  * @param subscriptionId Gets subscription Id which uniquely identify the Microsoft Azure subscription.
3442
4074
  * The subscription ID forms part of the URI for every service call.
@@ -3457,7 +4089,7 @@ class WebPubSubManagementClientContext extends coreClient.ServiceClient {
3457
4089
  requestContentType: "application/json; charset=utf-8",
3458
4090
  credential: credentials
3459
4091
  };
3460
- const packageDetails = `azsdk-js-arm-webpubsub/1.0.0-beta.1`;
4092
+ const packageDetails = `azsdk-js-arm-webpubsub/1.0.0`;
3461
4093
  const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
3462
4094
  ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
3463
4095
  : `${packageDetails}`;
@@ -3472,30 +4104,11 @@ class WebPubSubManagementClientContext extends coreClient.ServiceClient {
3472
4104
  this.subscriptionId = subscriptionId;
3473
4105
  // Assigning values to Constant parameters
3474
4106
  this.$host = options.$host || "https://management.azure.com";
3475
- this.apiVersion = options.apiVersion || "2021-06-01-preview";
3476
- }
3477
- }
3478
-
3479
- /*
3480
- * Copyright (c) Microsoft Corporation.
3481
- * Licensed under the MIT License.
3482
- *
3483
- * Code generated by Microsoft (R) AutoRest Code Generator.
3484
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
3485
- */
3486
- class WebPubSubManagementClient extends WebPubSubManagementClientContext {
3487
- /**
3488
- * Initializes a new instance of the WebPubSubManagementClient class.
3489
- * @param credentials Subscription credentials which uniquely identify client subscription.
3490
- * @param subscriptionId Gets subscription Id which uniquely identify the Microsoft Azure subscription.
3491
- * The subscription ID forms part of the URI for every service call.
3492
- * @param options The parameter options
3493
- */
3494
- constructor(credentials, subscriptionId, options) {
3495
- super(credentials, subscriptionId, options);
4107
+ this.apiVersion = options.apiVersion || "2021-10-01";
3496
4108
  this.operations = new OperationsImpl(this);
3497
4109
  this.webPubSub = new WebPubSubImpl(this);
3498
4110
  this.usages = new UsagesImpl(this);
4111
+ this.webPubSubHubs = new WebPubSubHubsImpl(this);
3499
4112
  this.webPubSubPrivateEndpointConnections = new WebPubSubPrivateEndpointConnectionsImpl(this);
3500
4113
  this.webPubSubPrivateLinkResources = new WebPubSubPrivateLinkResourcesImpl(this);
3501
4114
  this.webPubSubSharedPrivateLinkResources = new WebPubSubSharedPrivateLinkResourcesImpl(this);
@@ -3503,5 +4116,4 @@ class WebPubSubManagementClient extends WebPubSubManagementClientContext {
3503
4116
  }
3504
4117
 
3505
4118
  exports.WebPubSubManagementClient = WebPubSubManagementClient;
3506
- exports.WebPubSubManagementClientContext = WebPubSubManagementClientContext;
3507
4119
  //# sourceMappingURL=index.js.map