@azure/arm-webpubsub 1.1.1-alpha.20230718.1 → 2.0.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (173) hide show
  1. package/CHANGELOG.md +43 -8
  2. package/README.md +1 -1
  3. package/dist/index.js +1025 -397
  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/operationsListSample.js +1 -1
  8. package/dist-esm/samples-dev/usagesListSample.js +1 -1
  9. package/dist-esm/samples-dev/webPubSubCheckNameAvailabilitySample.js +1 -1
  10. package/dist-esm/samples-dev/webPubSubCreateOrUpdateSample.js +2 -1
  11. package/dist-esm/samples-dev/webPubSubCreateOrUpdateSample.js.map +1 -1
  12. package/dist-esm/samples-dev/webPubSubCustomCertificatesCreateOrUpdateSample.js +1 -1
  13. package/dist-esm/samples-dev/webPubSubCustomCertificatesDeleteSample.js +1 -1
  14. package/dist-esm/samples-dev/webPubSubCustomCertificatesGetSample.js +1 -1
  15. package/dist-esm/samples-dev/webPubSubCustomCertificatesListSample.js +1 -1
  16. package/dist-esm/samples-dev/webPubSubCustomDomainsCreateOrUpdateSample.js +1 -1
  17. package/dist-esm/samples-dev/webPubSubCustomDomainsDeleteSample.js +1 -1
  18. package/dist-esm/samples-dev/webPubSubCustomDomainsGetSample.js +1 -1
  19. package/dist-esm/samples-dev/webPubSubCustomDomainsListSample.js +1 -1
  20. package/dist-esm/samples-dev/webPubSubDeleteSample.js +1 -1
  21. package/dist-esm/samples-dev/webPubSubGetSample.js +1 -1
  22. package/dist-esm/samples-dev/webPubSubHubsCreateOrUpdateSample.js +1 -1
  23. package/dist-esm/samples-dev/webPubSubHubsDeleteSample.js +1 -1
  24. package/dist-esm/samples-dev/webPubSubHubsGetSample.js +1 -1
  25. package/dist-esm/samples-dev/webPubSubHubsListSample.js +1 -1
  26. package/dist-esm/samples-dev/webPubSubListByResourceGroupSample.js +1 -1
  27. package/dist-esm/samples-dev/webPubSubListBySubscriptionSample.js +1 -1
  28. package/dist-esm/samples-dev/webPubSubListKeysSample.js +1 -1
  29. package/dist-esm/samples-dev/webPubSubListReplicaSkusSample.d.ts +2 -0
  30. package/dist-esm/samples-dev/webPubSubListReplicaSkusSample.d.ts.map +1 -0
  31. package/dist-esm/samples-dev/webPubSubListReplicaSkusSample.js +40 -0
  32. package/dist-esm/samples-dev/webPubSubListReplicaSkusSample.js.map +1 -0
  33. package/dist-esm/samples-dev/webPubSubListSkusSample.js +1 -1
  34. package/dist-esm/samples-dev/webPubSubPrivateEndpointConnectionsDeleteSample.js +1 -1
  35. package/dist-esm/samples-dev/webPubSubPrivateEndpointConnectionsGetSample.js +1 -1
  36. package/dist-esm/samples-dev/webPubSubPrivateEndpointConnectionsListSample.js +1 -1
  37. package/dist-esm/samples-dev/webPubSubPrivateEndpointConnectionsUpdateSample.js +2 -4
  38. package/dist-esm/samples-dev/webPubSubPrivateEndpointConnectionsUpdateSample.js.map +1 -1
  39. package/dist-esm/samples-dev/webPubSubPrivateLinkResourcesListSample.js +1 -1
  40. package/dist-esm/samples-dev/webPubSubRegenerateKeySample.js +1 -1
  41. package/dist-esm/samples-dev/webPubSubReplicasCreateOrUpdateSample.d.ts +2 -0
  42. package/dist-esm/samples-dev/webPubSubReplicasCreateOrUpdateSample.d.ts.map +1 -0
  43. package/dist-esm/samples-dev/webPubSubReplicasCreateOrUpdateSample.js +45 -0
  44. package/dist-esm/samples-dev/webPubSubReplicasCreateOrUpdateSample.js.map +1 -0
  45. package/dist-esm/samples-dev/webPubSubReplicasDeleteSample.d.ts +2 -0
  46. package/dist-esm/samples-dev/webPubSubReplicasDeleteSample.d.ts.map +1 -0
  47. package/dist-esm/samples-dev/webPubSubReplicasDeleteSample.js +40 -0
  48. package/dist-esm/samples-dev/webPubSubReplicasDeleteSample.js.map +1 -0
  49. package/dist-esm/samples-dev/webPubSubReplicasGetSample.d.ts +2 -0
  50. package/dist-esm/samples-dev/webPubSubReplicasGetSample.d.ts.map +1 -0
  51. package/dist-esm/samples-dev/webPubSubReplicasGetSample.js +40 -0
  52. package/dist-esm/samples-dev/webPubSubReplicasGetSample.js.map +1 -0
  53. package/dist-esm/samples-dev/webPubSubReplicasListSample.d.ts +2 -0
  54. package/dist-esm/samples-dev/webPubSubReplicasListSample.d.ts.map +1 -0
  55. package/dist-esm/samples-dev/webPubSubReplicasListSample.js +60 -0
  56. package/dist-esm/samples-dev/webPubSubReplicasListSample.js.map +1 -0
  57. package/dist-esm/samples-dev/webPubSubReplicasRestartSample.d.ts +2 -0
  58. package/dist-esm/samples-dev/webPubSubReplicasRestartSample.d.ts.map +1 -0
  59. package/dist-esm/samples-dev/webPubSubReplicasRestartSample.js +40 -0
  60. package/dist-esm/samples-dev/webPubSubReplicasRestartSample.js.map +1 -0
  61. package/dist-esm/samples-dev/webPubSubReplicasUpdateSample.d.ts +2 -0
  62. package/dist-esm/samples-dev/webPubSubReplicasUpdateSample.d.ts.map +1 -0
  63. package/dist-esm/samples-dev/webPubSubReplicasUpdateSample.js +45 -0
  64. package/dist-esm/samples-dev/webPubSubReplicasUpdateSample.js.map +1 -0
  65. package/dist-esm/samples-dev/webPubSubRestartSample.js +1 -1
  66. package/dist-esm/samples-dev/webPubSubSharedPrivateLinkResourcesCreateOrUpdateSample.js +1 -1
  67. package/dist-esm/samples-dev/webPubSubSharedPrivateLinkResourcesDeleteSample.js +1 -1
  68. package/dist-esm/samples-dev/webPubSubSharedPrivateLinkResourcesGetSample.js +1 -1
  69. package/dist-esm/samples-dev/webPubSubSharedPrivateLinkResourcesListSample.js +1 -1
  70. package/dist-esm/samples-dev/webPubSubUpdateSample.js +2 -1
  71. package/dist-esm/samples-dev/webPubSubUpdateSample.js.map +1 -1
  72. package/dist-esm/src/models/index.d.ts +167 -83
  73. package/dist-esm/src/models/index.d.ts.map +1 -1
  74. package/dist-esm/src/models/index.js +20 -12
  75. package/dist-esm/src/models/index.js.map +1 -1
  76. package/dist-esm/src/models/mappers.d.ts +9 -2
  77. package/dist-esm/src/models/mappers.d.ts.map +1 -1
  78. package/dist-esm/src/models/mappers.js +187 -95
  79. package/dist-esm/src/models/mappers.js.map +1 -1
  80. package/dist-esm/src/models/parameters.d.ts +3 -1
  81. package/dist-esm/src/models/parameters.d.ts.map +1 -1
  82. package/dist-esm/src/models/parameters.js +32 -4
  83. package/dist-esm/src/models/parameters.js.map +1 -1
  84. package/dist-esm/src/operations/index.d.ts +1 -0
  85. package/dist-esm/src/operations/index.d.ts.map +1 -1
  86. package/dist-esm/src/operations/index.js +1 -0
  87. package/dist-esm/src/operations/index.js.map +1 -1
  88. package/dist-esm/src/operations/webPubSub.d.ts +27 -35
  89. package/dist-esm/src/operations/webPubSub.d.ts.map +1 -1
  90. package/dist-esm/src/operations/webPubSub.js +66 -40
  91. package/dist-esm/src/operations/webPubSub.js.map +1 -1
  92. package/dist-esm/src/operations/webPubSubCustomCertificates.d.ts +7 -14
  93. package/dist-esm/src/operations/webPubSubCustomCertificates.d.ts.map +1 -1
  94. package/dist-esm/src/operations/webPubSubCustomCertificates.js +9 -15
  95. package/dist-esm/src/operations/webPubSubCustomCertificates.js.map +1 -1
  96. package/dist-esm/src/operations/webPubSubCustomDomains.d.ts +8 -16
  97. package/dist-esm/src/operations/webPubSubCustomDomains.d.ts.map +1 -1
  98. package/dist-esm/src/operations/webPubSubCustomDomains.js +10 -17
  99. package/dist-esm/src/operations/webPubSubCustomDomains.js.map +1 -1
  100. package/dist-esm/src/operations/webPubSubHubs.d.ts +8 -16
  101. package/dist-esm/src/operations/webPubSubHubs.d.ts.map +1 -1
  102. package/dist-esm/src/operations/webPubSubHubs.js +10 -17
  103. package/dist-esm/src/operations/webPubSubHubs.js.map +1 -1
  104. package/dist-esm/src/operations/webPubSubPrivateEndpointConnections.d.ts +15 -18
  105. package/dist-esm/src/operations/webPubSubPrivateEndpointConnections.d.ts.map +1 -1
  106. package/dist-esm/src/operations/webPubSubPrivateEndpointConnections.js +15 -18
  107. package/dist-esm/src/operations/webPubSubPrivateEndpointConnections.js.map +1 -1
  108. package/dist-esm/src/operations/webPubSubPrivateLinkResources.d.ts +3 -6
  109. package/dist-esm/src/operations/webPubSubPrivateLinkResources.d.ts.map +1 -1
  110. package/dist-esm/src/operations/webPubSubPrivateLinkResources.js +3 -6
  111. package/dist-esm/src/operations/webPubSubPrivateLinkResources.js.map +1 -1
  112. package/dist-esm/src/operations/webPubSubReplicas.d.ts +107 -0
  113. package/dist-esm/src/operations/webPubSubReplicas.d.ts.map +1 -0
  114. package/dist-esm/src/operations/webPubSubReplicas.js +507 -0
  115. package/dist-esm/src/operations/webPubSubReplicas.js.map +1 -0
  116. package/dist-esm/src/operations/webPubSubSharedPrivateLinkResources.d.ts +8 -16
  117. package/dist-esm/src/operations/webPubSubSharedPrivateLinkResources.d.ts.map +1 -1
  118. package/dist-esm/src/operations/webPubSubSharedPrivateLinkResources.js +11 -18
  119. package/dist-esm/src/operations/webPubSubSharedPrivateLinkResources.js.map +1 -1
  120. package/dist-esm/src/operationsInterfaces/index.d.ts +1 -0
  121. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -1
  122. package/dist-esm/src/operationsInterfaces/index.js +1 -0
  123. package/dist-esm/src/operationsInterfaces/index.js.map +1 -1
  124. package/dist-esm/src/operationsInterfaces/webPubSub.d.ts +25 -31
  125. package/dist-esm/src/operationsInterfaces/webPubSub.d.ts.map +1 -1
  126. package/dist-esm/src/operationsInterfaces/webPubSubCustomCertificates.d.ts +5 -10
  127. package/dist-esm/src/operationsInterfaces/webPubSubCustomCertificates.d.ts.map +1 -1
  128. package/dist-esm/src/operationsInterfaces/webPubSubCustomDomains.d.ts +6 -12
  129. package/dist-esm/src/operationsInterfaces/webPubSubCustomDomains.d.ts.map +1 -1
  130. package/dist-esm/src/operationsInterfaces/webPubSubHubs.d.ts +6 -12
  131. package/dist-esm/src/operationsInterfaces/webPubSubHubs.d.ts.map +1 -1
  132. package/dist-esm/src/operationsInterfaces/webPubSubPrivateEndpointConnections.d.ts +13 -14
  133. package/dist-esm/src/operationsInterfaces/webPubSubPrivateEndpointConnections.d.ts.map +1 -1
  134. package/dist-esm/src/operationsInterfaces/webPubSubPrivateLinkResources.d.ts +1 -2
  135. package/dist-esm/src/operationsInterfaces/webPubSubPrivateLinkResources.d.ts.map +1 -1
  136. package/dist-esm/src/operationsInterfaces/webPubSubReplicas.d.ts +82 -0
  137. package/dist-esm/src/operationsInterfaces/webPubSubReplicas.d.ts.map +1 -0
  138. package/dist-esm/src/operationsInterfaces/webPubSubReplicas.js +9 -0
  139. package/dist-esm/src/operationsInterfaces/webPubSubReplicas.js.map +1 -0
  140. package/dist-esm/src/operationsInterfaces/webPubSubSharedPrivateLinkResources.d.ts +6 -12
  141. package/dist-esm/src/operationsInterfaces/webPubSubSharedPrivateLinkResources.d.ts.map +1 -1
  142. package/dist-esm/src/webPubSubManagementClient.d.ts +3 -3
  143. package/dist-esm/src/webPubSubManagementClient.d.ts.map +1 -1
  144. package/dist-esm/src/webPubSubManagementClient.js +5 -5
  145. package/dist-esm/src/webPubSubManagementClient.js.map +1 -1
  146. package/dist-esm/test/webpubsub_examples.spec.js +1 -1
  147. package/dist-esm/test/webpubsub_examples.spec.js.map +1 -1
  148. package/package.json +4 -4
  149. package/review/arm-webpubsub.api.md +134 -9
  150. package/src/models/index.ts +198 -86
  151. package/src/models/mappers.ts +195 -97
  152. package/src/models/parameters.ts +34 -3
  153. package/src/operations/index.ts +1 -0
  154. package/src/operations/webPubSub.ts +91 -44
  155. package/src/operations/webPubSubCustomCertificates.ts +9 -15
  156. package/src/operations/webPubSubCustomDomains.ts +10 -17
  157. package/src/operations/webPubSubHubs.ts +10 -17
  158. package/src/operations/webPubSubPrivateEndpointConnections.ts +15 -18
  159. package/src/operations/webPubSubPrivateLinkResources.ts +3 -6
  160. package/src/operations/webPubSubReplicas.ts +702 -0
  161. package/src/operations/webPubSubSharedPrivateLinkResources.ts +11 -18
  162. package/src/operationsInterfaces/index.ts +1 -0
  163. package/src/operationsInterfaces/webPubSub.ts +37 -30
  164. package/src/operationsInterfaces/webPubSubCustomCertificates.ts +5 -10
  165. package/src/operationsInterfaces/webPubSubCustomDomains.ts +6 -12
  166. package/src/operationsInterfaces/webPubSubHubs.ts +6 -12
  167. package/src/operationsInterfaces/webPubSubPrivateEndpointConnections.ts +13 -14
  168. package/src/operationsInterfaces/webPubSubPrivateLinkResources.ts +1 -2
  169. package/src/operationsInterfaces/webPubSubReplicas.ts +166 -0
  170. package/src/operationsInterfaces/webPubSubSharedPrivateLinkResources.ts +6 -12
  171. package/src/webPubSubManagementClient.ts +7 -4
  172. package/types/arm-webpubsub.d.ts +292 -135
  173. package/types/tsdoc-metadata.json +1 -1
package/dist/index.js CHANGED
@@ -101,18 +101,6 @@ exports.KnownProvisioningState = void 0;
101
101
  /** Moving */
102
102
  KnownProvisioningState["Moving"] = "Moving";
103
103
  })(exports.KnownProvisioningState || (exports.KnownProvisioningState = {}));
104
- /** Known values of {@link CreatedByType} that the service accepts. */
105
- exports.KnownCreatedByType = void 0;
106
- (function (KnownCreatedByType) {
107
- /** User */
108
- KnownCreatedByType["User"] = "User";
109
- /** Application */
110
- KnownCreatedByType["Application"] = "Application";
111
- /** ManagedIdentity */
112
- KnownCreatedByType["ManagedIdentity"] = "ManagedIdentity";
113
- /** Key */
114
- KnownCreatedByType["Key"] = "Key";
115
- })(exports.KnownCreatedByType || (exports.KnownCreatedByType = {}));
116
104
  /** Known values of {@link PrivateLinkServiceConnectionStatus} that the service accepts. */
117
105
  exports.KnownPrivateLinkServiceConnectionStatus = void 0;
118
106
  (function (KnownPrivateLinkServiceConnectionStatus) {
@@ -125,6 +113,18 @@ exports.KnownPrivateLinkServiceConnectionStatus = void 0;
125
113
  /** Disconnected */
126
114
  KnownPrivateLinkServiceConnectionStatus["Disconnected"] = "Disconnected";
127
115
  })(exports.KnownPrivateLinkServiceConnectionStatus || (exports.KnownPrivateLinkServiceConnectionStatus = {}));
116
+ /** Known values of {@link CreatedByType} that the service accepts. */
117
+ exports.KnownCreatedByType = void 0;
118
+ (function (KnownCreatedByType) {
119
+ /** User */
120
+ KnownCreatedByType["User"] = "User";
121
+ /** Application */
122
+ KnownCreatedByType["Application"] = "Application";
123
+ /** ManagedIdentity */
124
+ KnownCreatedByType["ManagedIdentity"] = "ManagedIdentity";
125
+ /** Key */
126
+ KnownCreatedByType["Key"] = "Key";
127
+ })(exports.KnownCreatedByType || (exports.KnownCreatedByType = {}));
128
128
  /** Known values of {@link SharedPrivateLinkResourceStatus} that the service accepts. */
129
129
  exports.KnownSharedPrivateLinkResourceStatus = void 0;
130
130
  (function (KnownSharedPrivateLinkResourceStatus) {
@@ -159,6 +159,14 @@ exports.KnownWebPubSubRequestType = void 0;
159
159
  /** Trace */
160
160
  KnownWebPubSubRequestType["Trace"] = "Trace";
161
161
  })(exports.KnownWebPubSubRequestType || (exports.KnownWebPubSubRequestType = {}));
162
+ /** Known values of {@link ServiceKind} that the service accepts. */
163
+ exports.KnownServiceKind = void 0;
164
+ (function (KnownServiceKind) {
165
+ /** WebPubSub */
166
+ KnownServiceKind["WebPubSub"] = "WebPubSub";
167
+ /** SocketIO */
168
+ KnownServiceKind["SocketIO"] = "SocketIO";
169
+ })(exports.KnownServiceKind || (exports.KnownServiceKind = {}));
162
170
  /** Known values of {@link ManagedIdentityType} that the service accepts. */
163
171
  exports.KnownManagedIdentityType = void 0;
164
172
  (function (KnownManagedIdentityType) {
@@ -769,50 +777,6 @@ const ResourceSku = {
769
777
  }
770
778
  }
771
779
  };
772
- const SystemData = {
773
- type: {
774
- name: "Composite",
775
- className: "SystemData",
776
- modelProperties: {
777
- createdBy: {
778
- serializedName: "createdBy",
779
- type: {
780
- name: "String"
781
- }
782
- },
783
- createdByType: {
784
- serializedName: "createdByType",
785
- type: {
786
- name: "String"
787
- }
788
- },
789
- createdAt: {
790
- serializedName: "createdAt",
791
- type: {
792
- name: "DateTime"
793
- }
794
- },
795
- lastModifiedBy: {
796
- serializedName: "lastModifiedBy",
797
- type: {
798
- name: "String"
799
- }
800
- },
801
- lastModifiedByType: {
802
- serializedName: "lastModifiedByType",
803
- type: {
804
- name: "String"
805
- }
806
- },
807
- lastModifiedAt: {
808
- serializedName: "lastModifiedAt",
809
- type: {
810
- name: "DateTime"
811
- }
812
- }
813
- }
814
- }
815
- };
816
780
  const PrivateEndpoint = {
817
781
  type: {
818
782
  name: "Composite",
@@ -878,6 +842,57 @@ const Resource = {
878
842
  type: {
879
843
  name: "String"
880
844
  }
845
+ },
846
+ systemData: {
847
+ serializedName: "systemData",
848
+ type: {
849
+ name: "Composite",
850
+ className: "SystemData"
851
+ }
852
+ }
853
+ }
854
+ }
855
+ };
856
+ const SystemData = {
857
+ type: {
858
+ name: "Composite",
859
+ className: "SystemData",
860
+ modelProperties: {
861
+ createdBy: {
862
+ serializedName: "createdBy",
863
+ type: {
864
+ name: "String"
865
+ }
866
+ },
867
+ createdByType: {
868
+ serializedName: "createdByType",
869
+ type: {
870
+ name: "String"
871
+ }
872
+ },
873
+ createdAt: {
874
+ serializedName: "createdAt",
875
+ type: {
876
+ name: "DateTime"
877
+ }
878
+ },
879
+ lastModifiedBy: {
880
+ serializedName: "lastModifiedBy",
881
+ type: {
882
+ name: "String"
883
+ }
884
+ },
885
+ lastModifiedByType: {
886
+ serializedName: "lastModifiedByType",
887
+ type: {
888
+ name: "String"
889
+ }
890
+ },
891
+ lastModifiedAt: {
892
+ serializedName: "lastModifiedAt",
893
+ type: {
894
+ name: "DateTime"
895
+ }
881
896
  }
882
897
  }
883
898
  }
@@ -888,7 +903,7 @@ const WebPubSubTlsSettings = {
888
903
  className: "WebPubSubTlsSettings",
889
904
  modelProperties: {
890
905
  clientCertEnabled: {
891
- defaultValue: true,
906
+ defaultValue: false,
892
907
  serializedName: "clientCertEnabled",
893
908
  type: {
894
909
  name: "Boolean"
@@ -1522,10 +1537,10 @@ const RegenerateKeyParameters = {
1522
1537
  }
1523
1538
  }
1524
1539
  };
1525
- const SharedPrivateLinkResourceList = {
1540
+ const ReplicaList = {
1526
1541
  type: {
1527
1542
  name: "Composite",
1528
- className: "SharedPrivateLinkResourceList",
1543
+ className: "ReplicaList",
1529
1544
  modelProperties: {
1530
1545
  value: {
1531
1546
  serializedName: "value",
@@ -1534,7 +1549,7 @@ const SharedPrivateLinkResourceList = {
1534
1549
  element: {
1535
1550
  type: {
1536
1551
  name: "Composite",
1537
- className: "SharedPrivateLinkResource"
1552
+ className: "Replica"
1538
1553
  }
1539
1554
  }
1540
1555
  }
@@ -1653,6 +1668,32 @@ const SkuCapacity = {
1653
1668
  }
1654
1669
  }
1655
1670
  };
1671
+ const SharedPrivateLinkResourceList = {
1672
+ type: {
1673
+ name: "Composite",
1674
+ className: "SharedPrivateLinkResourceList",
1675
+ modelProperties: {
1676
+ value: {
1677
+ serializedName: "value",
1678
+ type: {
1679
+ name: "Sequence",
1680
+ element: {
1681
+ type: {
1682
+ name: "Composite",
1683
+ className: "SharedPrivateLinkResource"
1684
+ }
1685
+ }
1686
+ }
1687
+ },
1688
+ nextLink: {
1689
+ serializedName: "nextLink",
1690
+ type: {
1691
+ name: "String"
1692
+ }
1693
+ }
1694
+ }
1695
+ }
1696
+ };
1656
1697
  const ProxyResource = {
1657
1698
  type: {
1658
1699
  name: "Composite",
@@ -1664,17 +1705,18 @@ const TrackedResource = {
1664
1705
  type: {
1665
1706
  name: "Composite",
1666
1707
  className: "TrackedResource",
1667
- modelProperties: Object.assign(Object.assign({}, Resource.type.modelProperties), { location: {
1668
- serializedName: "location",
1669
- type: {
1670
- name: "String"
1671
- }
1672
- }, tags: {
1708
+ modelProperties: Object.assign(Object.assign({}, Resource.type.modelProperties), { tags: {
1673
1709
  serializedName: "tags",
1674
1710
  type: {
1675
1711
  name: "Dictionary",
1676
1712
  value: { type: { name: "String" } }
1677
1713
  }
1714
+ }, location: {
1715
+ serializedName: "location",
1716
+ required: true,
1717
+ type: {
1718
+ name: "String"
1719
+ }
1678
1720
  } })
1679
1721
  }
1680
1722
  };
@@ -1742,13 +1784,7 @@ const PrivateEndpointConnection = {
1742
1784
  type: {
1743
1785
  name: "Composite",
1744
1786
  className: "PrivateEndpointConnection",
1745
- modelProperties: Object.assign(Object.assign({}, ProxyResource.type.modelProperties), { systemData: {
1746
- serializedName: "systemData",
1747
- type: {
1748
- name: "Composite",
1749
- className: "SystemData"
1750
- }
1751
- }, provisioningState: {
1787
+ modelProperties: Object.assign(Object.assign({}, ProxyResource.type.modelProperties), { provisioningState: {
1752
1788
  serializedName: "properties.provisioningState",
1753
1789
  readOnly: true,
1754
1790
  type: {
@@ -1784,13 +1820,7 @@ const SharedPrivateLinkResource = {
1784
1820
  type: {
1785
1821
  name: "Composite",
1786
1822
  className: "SharedPrivateLinkResource",
1787
- modelProperties: Object.assign(Object.assign({}, ProxyResource.type.modelProperties), { systemData: {
1788
- serializedName: "systemData",
1789
- type: {
1790
- name: "Composite",
1791
- className: "SystemData"
1792
- }
1793
- }, groupId: {
1823
+ modelProperties: Object.assign(Object.assign({}, ProxyResource.type.modelProperties), { groupId: {
1794
1824
  serializedName: "properties.groupId",
1795
1825
  type: {
1796
1826
  name: "String"
@@ -1824,13 +1854,7 @@ const CustomCertificate = {
1824
1854
  type: {
1825
1855
  name: "Composite",
1826
1856
  className: "CustomCertificate",
1827
- modelProperties: Object.assign(Object.assign({}, ProxyResource.type.modelProperties), { systemData: {
1828
- serializedName: "systemData",
1829
- type: {
1830
- name: "Composite",
1831
- className: "SystemData"
1832
- }
1833
- }, provisioningState: {
1857
+ modelProperties: Object.assign(Object.assign({}, ProxyResource.type.modelProperties), { provisioningState: {
1834
1858
  serializedName: "properties.provisioningState",
1835
1859
  readOnly: true,
1836
1860
  type: {
@@ -1860,13 +1884,7 @@ const CustomDomain = {
1860
1884
  type: {
1861
1885
  name: "Composite",
1862
1886
  className: "CustomDomain",
1863
- modelProperties: Object.assign(Object.assign({}, ProxyResource.type.modelProperties), { systemData: {
1864
- serializedName: "systemData",
1865
- type: {
1866
- name: "Composite",
1867
- className: "SystemData"
1868
- }
1869
- }, provisioningState: {
1887
+ modelProperties: Object.assign(Object.assign({}, ProxyResource.type.modelProperties), { provisioningState: {
1870
1888
  serializedName: "properties.provisioningState",
1871
1889
  readOnly: true,
1872
1890
  type: {
@@ -1891,13 +1909,7 @@ const WebPubSubHub = {
1891
1909
  type: {
1892
1910
  name: "Composite",
1893
1911
  className: "WebPubSubHub",
1894
- modelProperties: Object.assign(Object.assign({}, ProxyResource.type.modelProperties), { systemData: {
1895
- serializedName: "systemData",
1896
- type: {
1897
- name: "Composite",
1898
- className: "SystemData"
1899
- }
1900
- }, properties: {
1912
+ modelProperties: Object.assign(Object.assign({}, ProxyResource.type.modelProperties), { properties: {
1901
1913
  serializedName: "properties",
1902
1914
  type: {
1903
1915
  name: "Composite",
@@ -1959,18 +1971,17 @@ const WebPubSubResource = {
1959
1971
  name: "Composite",
1960
1972
  className: "ResourceSku"
1961
1973
  }
1974
+ }, kind: {
1975
+ serializedName: "kind",
1976
+ type: {
1977
+ name: "String"
1978
+ }
1962
1979
  }, identity: {
1963
1980
  serializedName: "identity",
1964
1981
  type: {
1965
1982
  name: "Composite",
1966
1983
  className: "ManagedIdentity"
1967
1984
  }
1968
- }, systemData: {
1969
- serializedName: "systemData",
1970
- type: {
1971
- name: "Composite",
1972
- className: "SystemData"
1973
- }
1974
1985
  }, provisioningState: {
1975
1986
  serializedName: "properties.provisioningState",
1976
1987
  readOnly: true,
@@ -2082,53 +2093,142 @@ const WebPubSubResource = {
2082
2093
  } })
2083
2094
  }
2084
2095
  };
2085
- let discriminators = {
2086
- EventListenerFilter: EventListenerFilter,
2087
- EventListenerEndpoint: EventListenerEndpoint,
2088
- "EventListenerFilter.EventName": EventNameFilter,
2089
- "EventListenerEndpoint.EventHub": EventHubEndpoint
2096
+ const Replica = {
2097
+ type: {
2098
+ name: "Composite",
2099
+ className: "Replica",
2100
+ modelProperties: Object.assign(Object.assign({}, TrackedResource.type.modelProperties), { sku: {
2101
+ serializedName: "sku",
2102
+ type: {
2103
+ name: "Composite",
2104
+ className: "ResourceSku"
2105
+ }
2106
+ }, provisioningState: {
2107
+ serializedName: "properties.provisioningState",
2108
+ readOnly: true,
2109
+ type: {
2110
+ name: "String"
2111
+ }
2112
+ } })
2113
+ }
2090
2114
  };
2091
-
2092
- var Mappers = /*#__PURE__*/Object.freeze({
2093
- __proto__: null,
2094
- OperationList: OperationList,
2095
- Operation: Operation,
2096
- OperationDisplay: OperationDisplay,
2097
- OperationProperties: OperationProperties,
2098
- ServiceSpecification: ServiceSpecification,
2099
- MetricSpecification: MetricSpecification,
2100
- Dimension: Dimension,
2101
- LogSpecification: LogSpecification,
2102
- ErrorResponse: ErrorResponse,
2103
- ErrorDetail: ErrorDetail,
2104
- ErrorAdditionalInfo: ErrorAdditionalInfo,
2105
- NameAvailabilityParameters: NameAvailabilityParameters,
2106
- NameAvailability: NameAvailability,
2107
- SignalRServiceUsageList: SignalRServiceUsageList,
2108
- SignalRServiceUsage: SignalRServiceUsage,
2109
- SignalRServiceUsageName: SignalRServiceUsageName,
2110
- WebPubSubResourceList: WebPubSubResourceList,
2111
- ResourceSku: ResourceSku,
2112
- SystemData: SystemData,
2113
- PrivateEndpoint: PrivateEndpoint,
2114
- PrivateLinkServiceConnectionState: PrivateLinkServiceConnectionState,
2115
- Resource: Resource,
2116
- WebPubSubTlsSettings: WebPubSubTlsSettings,
2117
- LiveTraceConfiguration: LiveTraceConfiguration,
2118
- LiveTraceCategory: LiveTraceCategory,
2119
- ResourceLogConfiguration: ResourceLogConfiguration,
2120
- ResourceLogCategory: ResourceLogCategory,
2121
- WebPubSubNetworkACLs: WebPubSubNetworkACLs,
2122
- NetworkACL: NetworkACL,
2123
- ManagedIdentity: ManagedIdentity,
2124
- UserAssignedIdentityProperty: UserAssignedIdentityProperty,
2125
- CustomCertificateList: CustomCertificateList,
2126
- CustomDomainList: CustomDomainList,
2127
- ResourceReference: ResourceReference,
2128
- WebPubSubHubList: WebPubSubHubList,
2129
- WebPubSubHubProperties: WebPubSubHubProperties,
2130
- EventHandler: EventHandler,
2131
- UpstreamAuthSettings: UpstreamAuthSettings,
2115
+ const WebPubSubUpdateHeaders = {
2116
+ type: {
2117
+ name: "Composite",
2118
+ className: "WebPubSubUpdateHeaders",
2119
+ modelProperties: {
2120
+ location: {
2121
+ serializedName: "location",
2122
+ type: {
2123
+ name: "String"
2124
+ }
2125
+ }
2126
+ }
2127
+ }
2128
+ };
2129
+ const WebPubSubRegenerateKeyHeaders = {
2130
+ type: {
2131
+ name: "Composite",
2132
+ className: "WebPubSubRegenerateKeyHeaders",
2133
+ modelProperties: {
2134
+ location: {
2135
+ serializedName: "location",
2136
+ type: {
2137
+ name: "String"
2138
+ }
2139
+ }
2140
+ }
2141
+ }
2142
+ };
2143
+ const WebPubSubRestartHeaders = {
2144
+ type: {
2145
+ name: "Composite",
2146
+ className: "WebPubSubRestartHeaders",
2147
+ modelProperties: {
2148
+ location: {
2149
+ serializedName: "location",
2150
+ type: {
2151
+ name: "String"
2152
+ }
2153
+ }
2154
+ }
2155
+ }
2156
+ };
2157
+ const WebPubSubReplicasUpdateHeaders = {
2158
+ type: {
2159
+ name: "Composite",
2160
+ className: "WebPubSubReplicasUpdateHeaders",
2161
+ modelProperties: {
2162
+ location: {
2163
+ serializedName: "location",
2164
+ type: {
2165
+ name: "String"
2166
+ }
2167
+ }
2168
+ }
2169
+ }
2170
+ };
2171
+ const WebPubSubReplicasRestartHeaders = {
2172
+ type: {
2173
+ name: "Composite",
2174
+ className: "WebPubSubReplicasRestartHeaders",
2175
+ modelProperties: {
2176
+ location: {
2177
+ serializedName: "location",
2178
+ type: {
2179
+ name: "String"
2180
+ }
2181
+ }
2182
+ }
2183
+ }
2184
+ };
2185
+ let discriminators = {
2186
+ EventListenerFilter: EventListenerFilter,
2187
+ EventListenerEndpoint: EventListenerEndpoint,
2188
+ "EventListenerFilter.EventName": EventNameFilter,
2189
+ "EventListenerEndpoint.EventHub": EventHubEndpoint
2190
+ };
2191
+
2192
+ var Mappers = /*#__PURE__*/Object.freeze({
2193
+ __proto__: null,
2194
+ OperationList: OperationList,
2195
+ Operation: Operation,
2196
+ OperationDisplay: OperationDisplay,
2197
+ OperationProperties: OperationProperties,
2198
+ ServiceSpecification: ServiceSpecification,
2199
+ MetricSpecification: MetricSpecification,
2200
+ Dimension: Dimension,
2201
+ LogSpecification: LogSpecification,
2202
+ ErrorResponse: ErrorResponse,
2203
+ ErrorDetail: ErrorDetail,
2204
+ ErrorAdditionalInfo: ErrorAdditionalInfo,
2205
+ NameAvailabilityParameters: NameAvailabilityParameters,
2206
+ NameAvailability: NameAvailability,
2207
+ SignalRServiceUsageList: SignalRServiceUsageList,
2208
+ SignalRServiceUsage: SignalRServiceUsage,
2209
+ SignalRServiceUsageName: SignalRServiceUsageName,
2210
+ WebPubSubResourceList: WebPubSubResourceList,
2211
+ ResourceSku: ResourceSku,
2212
+ PrivateEndpoint: PrivateEndpoint,
2213
+ PrivateLinkServiceConnectionState: PrivateLinkServiceConnectionState,
2214
+ Resource: Resource,
2215
+ SystemData: SystemData,
2216
+ WebPubSubTlsSettings: WebPubSubTlsSettings,
2217
+ LiveTraceConfiguration: LiveTraceConfiguration,
2218
+ LiveTraceCategory: LiveTraceCategory,
2219
+ ResourceLogConfiguration: ResourceLogConfiguration,
2220
+ ResourceLogCategory: ResourceLogCategory,
2221
+ WebPubSubNetworkACLs: WebPubSubNetworkACLs,
2222
+ NetworkACL: NetworkACL,
2223
+ ManagedIdentity: ManagedIdentity,
2224
+ UserAssignedIdentityProperty: UserAssignedIdentityProperty,
2225
+ CustomCertificateList: CustomCertificateList,
2226
+ CustomDomainList: CustomDomainList,
2227
+ ResourceReference: ResourceReference,
2228
+ WebPubSubHubList: WebPubSubHubList,
2229
+ WebPubSubHubProperties: WebPubSubHubProperties,
2230
+ EventHandler: EventHandler,
2231
+ UpstreamAuthSettings: UpstreamAuthSettings,
2132
2232
  ManagedIdentitySettings: ManagedIdentitySettings,
2133
2233
  EventListener: EventListener,
2134
2234
  EventListenerFilter: EventListenerFilter,
@@ -2139,10 +2239,11 @@ var Mappers = /*#__PURE__*/Object.freeze({
2139
2239
  ShareablePrivateLinkResourceType: ShareablePrivateLinkResourceType,
2140
2240
  ShareablePrivateLinkResourceProperties: ShareablePrivateLinkResourceProperties,
2141
2241
  RegenerateKeyParameters: RegenerateKeyParameters,
2142
- SharedPrivateLinkResourceList: SharedPrivateLinkResourceList,
2242
+ ReplicaList: ReplicaList,
2143
2243
  SkuList: SkuList,
2144
2244
  Sku: Sku,
2145
2245
  SkuCapacity: SkuCapacity,
2246
+ SharedPrivateLinkResourceList: SharedPrivateLinkResourceList,
2146
2247
  ProxyResource: ProxyResource,
2147
2248
  TrackedResource: TrackedResource,
2148
2249
  PrivateEndpointACL: PrivateEndpointACL,
@@ -2155,6 +2256,12 @@ var Mappers = /*#__PURE__*/Object.freeze({
2155
2256
  WebPubSubHub: WebPubSubHub,
2156
2257
  PrivateLinkResource: PrivateLinkResource,
2157
2258
  WebPubSubResource: WebPubSubResource,
2259
+ Replica: Replica,
2260
+ WebPubSubUpdateHeaders: WebPubSubUpdateHeaders,
2261
+ WebPubSubRegenerateKeyHeaders: WebPubSubRegenerateKeyHeaders,
2262
+ WebPubSubRestartHeaders: WebPubSubRestartHeaders,
2263
+ WebPubSubReplicasUpdateHeaders: WebPubSubReplicasUpdateHeaders,
2264
+ WebPubSubReplicasRestartHeaders: WebPubSubReplicasRestartHeaders,
2158
2265
  discriminators: discriminators
2159
2266
  });
2160
2267
 
@@ -2190,7 +2297,7 @@ const $host = {
2190
2297
  const apiVersion = {
2191
2298
  parameterPath: "apiVersion",
2192
2299
  mapper: {
2193
- defaultValue: "2023-02-01",
2300
+ defaultValue: "2023-06-01-preview",
2194
2301
  isConstant: true,
2195
2302
  serializedName: "api-version",
2196
2303
  type: {
@@ -2240,13 +2347,17 @@ const subscriptionId = {
2240
2347
  serializedName: "subscriptionId",
2241
2348
  required: true,
2242
2349
  type: {
2243
- name: "String"
2350
+ name: "Uuid"
2244
2351
  }
2245
2352
  }
2246
2353
  };
2247
2354
  const resourceGroupName = {
2248
2355
  parameterPath: "resourceGroupName",
2249
2356
  mapper: {
2357
+ constraints: {
2358
+ MaxLength: 90,
2359
+ MinLength: 1
2360
+ },
2250
2361
  serializedName: "resourceGroupName",
2251
2362
  required: true,
2252
2363
  type: {
@@ -2257,6 +2368,11 @@ const resourceGroupName = {
2257
2368
  const resourceName = {
2258
2369
  parameterPath: "resourceName",
2259
2370
  mapper: {
2371
+ constraints: {
2372
+ Pattern: new RegExp("^[a-zA-Z][a-zA-Z0-9-]{1,61}[a-zA-Z0-9]$"),
2373
+ MaxLength: 63,
2374
+ MinLength: 3
2375
+ },
2260
2376
  serializedName: "resourceName",
2261
2377
  required: true,
2262
2378
  type: {
@@ -2272,6 +2388,21 @@ const parameters2 = {
2272
2388
  parameterPath: "parameters",
2273
2389
  mapper: RegenerateKeyParameters
2274
2390
  };
2391
+ const replicaName = {
2392
+ parameterPath: "replicaName",
2393
+ mapper: {
2394
+ constraints: {
2395
+ Pattern: new RegExp("^[a-zA-Z][a-zA-Z0-9-]{1,61}[a-zA-Z0-9]$"),
2396
+ MaxLength: 63,
2397
+ MinLength: 3
2398
+ },
2399
+ serializedName: "replicaName",
2400
+ required: true,
2401
+ type: {
2402
+ name: "String"
2403
+ }
2404
+ }
2405
+ };
2275
2406
  const certificateName = {
2276
2407
  parameterPath: "certificateName",
2277
2408
  mapper: {
@@ -2328,6 +2459,10 @@ const parameters6 = {
2328
2459
  parameterPath: "parameters",
2329
2460
  mapper: PrivateEndpointConnection
2330
2461
  };
2462
+ const parameters7 = {
2463
+ parameterPath: "parameters",
2464
+ mapper: Replica
2465
+ };
2331
2466
  const sharedPrivateLinkResourceName = {
2332
2467
  parameterPath: "sharedPrivateLinkResourceName",
2333
2468
  mapper: {
@@ -2338,7 +2473,7 @@ const sharedPrivateLinkResourceName = {
2338
2473
  }
2339
2474
  }
2340
2475
  };
2341
- const parameters7 = {
2476
+ const parameters8 = {
2342
2477
  parameterPath: "parameters",
2343
2478
  mapper: SharedPrivateLinkResource
2344
2479
  };
@@ -2431,7 +2566,7 @@ class OperationsImpl {
2431
2566
  * @param options The options parameters.
2432
2567
  */
2433
2568
  _list(options) {
2434
- return this.client.sendOperationRequest({ options }, listOperationSpec$7);
2569
+ return this.client.sendOperationRequest({ options }, listOperationSpec$8);
2435
2570
  }
2436
2571
  /**
2437
2572
  * ListNext
@@ -2439,12 +2574,12 @@ class OperationsImpl {
2439
2574
  * @param options The options parameters.
2440
2575
  */
2441
2576
  _listNext(nextLink, options) {
2442
- return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec$7);
2577
+ return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec$8);
2443
2578
  }
2444
2579
  }
2445
2580
  // Operation Specifications
2446
- const serializer$8 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
2447
- const listOperationSpec$7 = {
2581
+ const serializer$9 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
2582
+ const listOperationSpec$8 = {
2448
2583
  path: "/providers/Microsoft.SignalRService/operations",
2449
2584
  httpMethod: "GET",
2450
2585
  responses: {
@@ -2458,9 +2593,9 @@ const listOperationSpec$7 = {
2458
2593
  queryParameters: [apiVersion],
2459
2594
  urlParameters: [$host],
2460
2595
  headerParameters: [accept],
2461
- serializer: serializer$8
2596
+ serializer: serializer$9
2462
2597
  };
2463
- const listNextOperationSpec$7 = {
2598
+ const listNextOperationSpec$8 = {
2464
2599
  path: "{nextLink}",
2465
2600
  httpMethod: "GET",
2466
2601
  responses: {
@@ -2473,7 +2608,7 @@ const listNextOperationSpec$7 = {
2473
2608
  },
2474
2609
  urlParameters: [$host, nextLink],
2475
2610
  headerParameters: [accept],
2476
- serializer: serializer$8
2611
+ serializer: serializer$9
2477
2612
  };
2478
2613
 
2479
2614
  /*
@@ -2581,8 +2716,7 @@ class WebPubSubImpl {
2581
2716
  }
2582
2717
  /**
2583
2718
  * Handles requests to list all resources in a resource group.
2584
- * @param resourceGroupName The name of the resource group that contains the resource. You can obtain
2585
- * this value from the Azure Resource Manager API or the portal.
2719
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
2586
2720
  * @param options The options parameters.
2587
2721
  */
2588
2722
  listByResourceGroup(resourceGroupName, options) {
@@ -2665,8 +2799,7 @@ class WebPubSubImpl {
2665
2799
  }
2666
2800
  /**
2667
2801
  * Handles requests to list all resources in a resource group.
2668
- * @param resourceGroupName The name of the resource group that contains the resource. You can obtain
2669
- * this value from the Azure Resource Manager API or the portal.
2802
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
2670
2803
  * @param options The options parameters.
2671
2804
  */
2672
2805
  _listByResourceGroup(resourceGroupName, options) {
@@ -2674,18 +2807,16 @@ class WebPubSubImpl {
2674
2807
  }
2675
2808
  /**
2676
2809
  * Get the resource and its properties.
2677
- * @param resourceGroupName The name of the resource group that contains the resource. You can obtain
2678
- * this value from the Azure Resource Manager API or the portal.
2810
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
2679
2811
  * @param resourceName The name of the resource.
2680
2812
  * @param options The options parameters.
2681
2813
  */
2682
2814
  get(resourceGroupName, resourceName, options) {
2683
- return this.client.sendOperationRequest({ resourceGroupName, resourceName, options }, getOperationSpec$5);
2815
+ return this.client.sendOperationRequest({ resourceGroupName, resourceName, options }, getOperationSpec$6);
2684
2816
  }
2685
2817
  /**
2686
2818
  * Create or update a resource.
2687
- * @param resourceGroupName The name of the resource group that contains the resource. You can obtain
2688
- * this value from the Azure Resource Manager API or the portal.
2819
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
2689
2820
  * @param resourceName The name of the resource.
2690
2821
  * @param parameters Parameters for the create or update operation
2691
2822
  * @param options The options parameters.
@@ -2717,11 +2848,12 @@ class WebPubSubImpl {
2717
2848
  const lro = createLroSpec({
2718
2849
  sendOperationFn,
2719
2850
  args: { resourceGroupName, resourceName, parameters, options },
2720
- spec: createOrUpdateOperationSpec$4
2851
+ spec: createOrUpdateOperationSpec$5
2721
2852
  });
2722
2853
  const poller = yield coreLro.createHttpPoller(lro, {
2723
2854
  restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
2724
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
2855
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
2856
+ resourceLocationConfig: "azure-async-operation"
2725
2857
  });
2726
2858
  yield poller.poll();
2727
2859
  return poller;
@@ -2729,8 +2861,7 @@ class WebPubSubImpl {
2729
2861
  }
2730
2862
  /**
2731
2863
  * Create or update a resource.
2732
- * @param resourceGroupName The name of the resource group that contains the resource. You can obtain
2733
- * this value from the Azure Resource Manager API or the portal.
2864
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
2734
2865
  * @param resourceName The name of the resource.
2735
2866
  * @param parameters Parameters for the create or update operation
2736
2867
  * @param options The options parameters.
@@ -2743,8 +2874,7 @@ class WebPubSubImpl {
2743
2874
  }
2744
2875
  /**
2745
2876
  * Operation to delete a resource.
2746
- * @param resourceGroupName The name of the resource group that contains the resource. You can obtain
2747
- * this value from the Azure Resource Manager API or the portal.
2877
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
2748
2878
  * @param resourceName The name of the resource.
2749
2879
  * @param options The options parameters.
2750
2880
  */
@@ -2775,7 +2905,7 @@ class WebPubSubImpl {
2775
2905
  const lro = createLroSpec({
2776
2906
  sendOperationFn,
2777
2907
  args: { resourceGroupName, resourceName, options },
2778
- spec: deleteOperationSpec$5
2908
+ spec: deleteOperationSpec$6
2779
2909
  });
2780
2910
  const poller = yield coreLro.createHttpPoller(lro, {
2781
2911
  restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
@@ -2788,8 +2918,7 @@ class WebPubSubImpl {
2788
2918
  }
2789
2919
  /**
2790
2920
  * Operation to delete a resource.
2791
- * @param resourceGroupName The name of the resource group that contains the resource. You can obtain
2792
- * this value from the Azure Resource Manager API or the portal.
2921
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
2793
2922
  * @param resourceName The name of the resource.
2794
2923
  * @param options The options parameters.
2795
2924
  */
@@ -2801,8 +2930,7 @@ class WebPubSubImpl {
2801
2930
  }
2802
2931
  /**
2803
2932
  * Operation to update an exiting resource.
2804
- * @param resourceGroupName The name of the resource group that contains the resource. You can obtain
2805
- * this value from the Azure Resource Manager API or the portal.
2933
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
2806
2934
  * @param resourceName The name of the resource.
2807
2935
  * @param parameters Parameters for the update operation
2808
2936
  * @param options The options parameters.
@@ -2834,11 +2962,12 @@ class WebPubSubImpl {
2834
2962
  const lro = createLroSpec({
2835
2963
  sendOperationFn,
2836
2964
  args: { resourceGroupName, resourceName, parameters, options },
2837
- spec: updateOperationSpec$1
2965
+ spec: updateOperationSpec$2
2838
2966
  });
2839
2967
  const poller = yield coreLro.createHttpPoller(lro, {
2840
2968
  restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
2841
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
2969
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
2970
+ resourceLocationConfig: "location"
2842
2971
  });
2843
2972
  yield poller.poll();
2844
2973
  return poller;
@@ -2846,8 +2975,7 @@ class WebPubSubImpl {
2846
2975
  }
2847
2976
  /**
2848
2977
  * Operation to update an exiting resource.
2849
- * @param resourceGroupName The name of the resource group that contains the resource. You can obtain
2850
- * this value from the Azure Resource Manager API or the portal.
2978
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
2851
2979
  * @param resourceName The name of the resource.
2852
2980
  * @param parameters Parameters for the update operation
2853
2981
  * @param options The options parameters.
@@ -2860,8 +2988,7 @@ class WebPubSubImpl {
2860
2988
  }
2861
2989
  /**
2862
2990
  * Get the access keys of the resource.
2863
- * @param resourceGroupName The name of the resource group that contains the resource. You can obtain
2864
- * this value from the Azure Resource Manager API or the portal.
2991
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
2865
2992
  * @param resourceName The name of the resource.
2866
2993
  * @param options The options parameters.
2867
2994
  */
@@ -2871,8 +2998,7 @@ class WebPubSubImpl {
2871
2998
  /**
2872
2999
  * Regenerate the access key for the resource. PrimaryKey and SecondaryKey cannot be regenerated at the
2873
3000
  * same time.
2874
- * @param resourceGroupName The name of the resource group that contains the resource. You can obtain
2875
- * this value from the Azure Resource Manager API or the portal.
3001
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
2876
3002
  * @param resourceName The name of the resource.
2877
3003
  * @param parameters Parameter that describes the Regenerate Key Operation.
2878
3004
  * @param options The options parameters.
@@ -2909,7 +3035,7 @@ class WebPubSubImpl {
2909
3035
  const poller = yield coreLro.createHttpPoller(lro, {
2910
3036
  restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
2911
3037
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
2912
- resourceLocationConfig: "azure-async-operation"
3038
+ resourceLocationConfig: "location"
2913
3039
  });
2914
3040
  yield poller.poll();
2915
3041
  return poller;
@@ -2918,8 +3044,7 @@ class WebPubSubImpl {
2918
3044
  /**
2919
3045
  * Regenerate the access key for the resource. PrimaryKey and SecondaryKey cannot be regenerated at the
2920
3046
  * same time.
2921
- * @param resourceGroupName The name of the resource group that contains the resource. You can obtain
2922
- * this value from the Azure Resource Manager API or the portal.
3047
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
2923
3048
  * @param resourceName The name of the resource.
2924
3049
  * @param parameters Parameter that describes the Regenerate Key Operation.
2925
3050
  * @param options The options parameters.
@@ -2930,10 +3055,19 @@ class WebPubSubImpl {
2930
3055
  return poller.pollUntilDone();
2931
3056
  });
2932
3057
  }
3058
+ /**
3059
+ * List all available skus of the replica resource.
3060
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
3061
+ * @param resourceName The name of the resource.
3062
+ * @param replicaName The name of the replica.
3063
+ * @param options The options parameters.
3064
+ */
3065
+ listReplicaSkus(resourceGroupName, resourceName, replicaName, options) {
3066
+ return this.client.sendOperationRequest({ resourceGroupName, resourceName, replicaName, options }, listReplicaSkusOperationSpec);
3067
+ }
2933
3068
  /**
2934
3069
  * Operation to restart a resource.
2935
- * @param resourceGroupName The name of the resource group that contains the resource. You can obtain
2936
- * this value from the Azure Resource Manager API or the portal.
3070
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
2937
3071
  * @param resourceName The name of the resource.
2938
3072
  * @param options The options parameters.
2939
3073
  */
@@ -2964,12 +3098,12 @@ class WebPubSubImpl {
2964
3098
  const lro = createLroSpec({
2965
3099
  sendOperationFn,
2966
3100
  args: { resourceGroupName, resourceName, options },
2967
- spec: restartOperationSpec
3101
+ spec: restartOperationSpec$1
2968
3102
  });
2969
3103
  const poller = yield coreLro.createHttpPoller(lro, {
2970
3104
  restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
2971
3105
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
2972
- resourceLocationConfig: "azure-async-operation"
3106
+ resourceLocationConfig: "location"
2973
3107
  });
2974
3108
  yield poller.poll();
2975
3109
  return poller;
@@ -2977,8 +3111,7 @@ class WebPubSubImpl {
2977
3111
  }
2978
3112
  /**
2979
3113
  * Operation to restart a resource.
2980
- * @param resourceGroupName The name of the resource group that contains the resource. You can obtain
2981
- * this value from the Azure Resource Manager API or the portal.
3114
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
2982
3115
  * @param resourceName The name of the resource.
2983
3116
  * @param options The options parameters.
2984
3117
  */
@@ -2990,8 +3123,7 @@ class WebPubSubImpl {
2990
3123
  }
2991
3124
  /**
2992
3125
  * List all available skus of the resource.
2993
- * @param resourceGroupName The name of the resource group that contains the resource. You can obtain
2994
- * this value from the Azure Resource Manager API or the portal.
3126
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
2995
3127
  * @param resourceName The name of the resource.
2996
3128
  * @param options The options parameters.
2997
3129
  */
@@ -3008,8 +3140,7 @@ class WebPubSubImpl {
3008
3140
  }
3009
3141
  /**
3010
3142
  * ListByResourceGroupNext
3011
- * @param resourceGroupName The name of the resource group that contains the resource. You can obtain
3012
- * this value from the Azure Resource Manager API or the portal.
3143
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
3013
3144
  * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
3014
3145
  * @param options The options parameters.
3015
3146
  */
@@ -3018,7 +3149,7 @@ class WebPubSubImpl {
3018
3149
  }
3019
3150
  }
3020
3151
  // Operation Specifications
3021
- const serializer$7 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
3152
+ const serializer$8 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
3022
3153
  const checkNameAvailabilityOperationSpec = {
3023
3154
  path: "/subscriptions/{subscriptionId}/providers/Microsoft.SignalRService/locations/{location}/checkNameAvailability",
3024
3155
  httpMethod: "POST",
@@ -3039,7 +3170,7 @@ const checkNameAvailabilityOperationSpec = {
3039
3170
  ],
3040
3171
  headerParameters: [accept, contentType],
3041
3172
  mediaType: "json",
3042
- serializer: serializer$7
3173
+ serializer: serializer$8
3043
3174
  };
3044
3175
  const listBySubscriptionOperationSpec = {
3045
3176
  path: "/subscriptions/{subscriptionId}/providers/Microsoft.SignalRService/webPubSub",
@@ -3055,7 +3186,7 @@ const listBySubscriptionOperationSpec = {
3055
3186
  queryParameters: [apiVersion],
3056
3187
  urlParameters: [$host, subscriptionId],
3057
3188
  headerParameters: [accept],
3058
- serializer: serializer$7
3189
+ serializer: serializer$8
3059
3190
  };
3060
3191
  const listByResourceGroupOperationSpec = {
3061
3192
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/webPubSub",
@@ -3075,9 +3206,9 @@ const listByResourceGroupOperationSpec = {
3075
3206
  resourceGroupName
3076
3207
  ],
3077
3208
  headerParameters: [accept],
3078
- serializer: serializer$7
3209
+ serializer: serializer$8
3079
3210
  };
3080
- const getOperationSpec$5 = {
3211
+ const getOperationSpec$6 = {
3081
3212
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/webPubSub/{resourceName}",
3082
3213
  httpMethod: "GET",
3083
3214
  responses: {
@@ -3096,9 +3227,9 @@ const getOperationSpec$5 = {
3096
3227
  resourceName
3097
3228
  ],
3098
3229
  headerParameters: [accept],
3099
- serializer: serializer$7
3230
+ serializer: serializer$8
3100
3231
  };
3101
- const createOrUpdateOperationSpec$4 = {
3232
+ const createOrUpdateOperationSpec$5 = {
3102
3233
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/webPubSub/{resourceName}",
3103
3234
  httpMethod: "PUT",
3104
3235
  responses: {
@@ -3128,9 +3259,9 @@ const createOrUpdateOperationSpec$4 = {
3128
3259
  ],
3129
3260
  headerParameters: [accept, contentType],
3130
3261
  mediaType: "json",
3131
- serializer: serializer$7
3262
+ serializer: serializer$8
3132
3263
  };
3133
- const deleteOperationSpec$5 = {
3264
+ const deleteOperationSpec$6 = {
3134
3265
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/webPubSub/{resourceName}",
3135
3266
  httpMethod: "DELETE",
3136
3267
  responses: {
@@ -3150,9 +3281,9 @@ const deleteOperationSpec$5 = {
3150
3281
  resourceName
3151
3282
  ],
3152
3283
  headerParameters: [accept],
3153
- serializer: serializer$7
3284
+ serializer: serializer$8
3154
3285
  };
3155
- const updateOperationSpec$1 = {
3286
+ const updateOperationSpec$2 = {
3156
3287
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/webPubSub/{resourceName}",
3157
3288
  httpMethod: "PATCH",
3158
3289
  responses: {
@@ -3182,7 +3313,7 @@ const updateOperationSpec$1 = {
3182
3313
  ],
3183
3314
  headerParameters: [accept, contentType],
3184
3315
  mediaType: "json",
3185
- serializer: serializer$7
3316
+ serializer: serializer$8
3186
3317
  };
3187
3318
  const listKeysOperationSpec = {
3188
3319
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/webPubSub/{resourceName}/listKeys",
@@ -3203,7 +3334,7 @@ const listKeysOperationSpec = {
3203
3334
  resourceName
3204
3335
  ],
3205
3336
  headerParameters: [accept],
3206
- serializer: serializer$7
3337
+ serializer: serializer$8
3207
3338
  };
3208
3339
  const regenerateKeyOperationSpec = {
3209
3340
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/webPubSub/{resourceName}/regenerateKey",
@@ -3235,16 +3366,46 @@ const regenerateKeyOperationSpec = {
3235
3366
  ],
3236
3367
  headerParameters: [accept, contentType],
3237
3368
  mediaType: "json",
3238
- serializer: serializer$7
3369
+ serializer: serializer$8
3239
3370
  };
3240
- const restartOperationSpec = {
3371
+ const listReplicaSkusOperationSpec = {
3372
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/webPubSub/{resourceName}/replicas/{replicaName}/skus",
3373
+ httpMethod: "GET",
3374
+ responses: {
3375
+ 200: {
3376
+ bodyMapper: SkuList
3377
+ },
3378
+ default: {
3379
+ bodyMapper: ErrorResponse
3380
+ }
3381
+ },
3382
+ queryParameters: [apiVersion],
3383
+ urlParameters: [
3384
+ $host,
3385
+ subscriptionId,
3386
+ resourceGroupName,
3387
+ resourceName,
3388
+ replicaName
3389
+ ],
3390
+ headerParameters: [accept],
3391
+ serializer: serializer$8
3392
+ };
3393
+ const restartOperationSpec$1 = {
3241
3394
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/webPubSub/{resourceName}/restart",
3242
3395
  httpMethod: "POST",
3243
3396
  responses: {
3244
- 200: {},
3245
- 201: {},
3246
- 202: {},
3247
- 204: {},
3397
+ 200: {
3398
+ headersMapper: WebPubSubRestartHeaders
3399
+ },
3400
+ 201: {
3401
+ headersMapper: WebPubSubRestartHeaders
3402
+ },
3403
+ 202: {
3404
+ headersMapper: WebPubSubRestartHeaders
3405
+ },
3406
+ 204: {
3407
+ headersMapper: WebPubSubRestartHeaders
3408
+ },
3248
3409
  default: {
3249
3410
  bodyMapper: ErrorResponse
3250
3411
  }
@@ -3257,7 +3418,7 @@ const restartOperationSpec = {
3257
3418
  resourceName
3258
3419
  ],
3259
3420
  headerParameters: [accept],
3260
- serializer: serializer$7
3421
+ serializer: serializer$8
3261
3422
  };
3262
3423
  const listSkusOperationSpec = {
3263
3424
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/webPubSub/{resourceName}/skus",
@@ -3278,7 +3439,7 @@ const listSkusOperationSpec = {
3278
3439
  resourceName
3279
3440
  ],
3280
3441
  headerParameters: [accept],
3281
- serializer: serializer$7
3442
+ serializer: serializer$8
3282
3443
  };
3283
3444
  const listBySubscriptionNextOperationSpec = {
3284
3445
  path: "{nextLink}",
@@ -3297,7 +3458,7 @@ const listBySubscriptionNextOperationSpec = {
3297
3458
  subscriptionId
3298
3459
  ],
3299
3460
  headerParameters: [accept],
3300
- serializer: serializer$7
3461
+ serializer: serializer$8
3301
3462
  };
3302
3463
  const listByResourceGroupNextOperationSpec = {
3303
3464
  path: "{nextLink}",
@@ -3317,7 +3478,7 @@ const listByResourceGroupNextOperationSpec = {
3317
3478
  resourceGroupName
3318
3479
  ],
3319
3480
  headerParameters: [accept],
3320
- serializer: serializer$7
3481
+ serializer: serializer$8
3321
3482
  };
3322
3483
 
3323
3484
  /*
@@ -3410,7 +3571,7 @@ class UsagesImpl {
3410
3571
  * @param options The options parameters.
3411
3572
  */
3412
3573
  _list(location, options) {
3413
- return this.client.sendOperationRequest({ location, options }, listOperationSpec$6);
3574
+ return this.client.sendOperationRequest({ location, options }, listOperationSpec$7);
3414
3575
  }
3415
3576
  /**
3416
3577
  * ListNext
@@ -3419,12 +3580,12 @@ class UsagesImpl {
3419
3580
  * @param options The options parameters.
3420
3581
  */
3421
3582
  _listNext(location, nextLink, options) {
3422
- return this.client.sendOperationRequest({ location, nextLink, options }, listNextOperationSpec$6);
3583
+ return this.client.sendOperationRequest({ location, nextLink, options }, listNextOperationSpec$7);
3423
3584
  }
3424
3585
  }
3425
3586
  // Operation Specifications
3426
- const serializer$6 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
3427
- const listOperationSpec$6 = {
3587
+ const serializer$7 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
3588
+ const listOperationSpec$7 = {
3428
3589
  path: "/subscriptions/{subscriptionId}/providers/Microsoft.SignalRService/locations/{location}/usages",
3429
3590
  httpMethod: "GET",
3430
3591
  responses: {
@@ -3442,9 +3603,9 @@ const listOperationSpec$6 = {
3442
3603
  subscriptionId
3443
3604
  ],
3444
3605
  headerParameters: [accept],
3445
- serializer: serializer$6
3606
+ serializer: serializer$7
3446
3607
  };
3447
- const listNextOperationSpec$6 = {
3608
+ const listNextOperationSpec$7 = {
3448
3609
  path: "{nextLink}",
3449
3610
  httpMethod: "GET",
3450
3611
  responses: {
@@ -3462,7 +3623,7 @@ const listNextOperationSpec$6 = {
3462
3623
  subscriptionId
3463
3624
  ],
3464
3625
  headerParameters: [accept],
3465
- serializer: serializer$6
3626
+ serializer: serializer$7
3466
3627
  };
3467
3628
 
3468
3629
  /*
@@ -3484,8 +3645,7 @@ class WebPubSubCustomCertificatesImpl {
3484
3645
  }
3485
3646
  /**
3486
3647
  * List all custom certificates.
3487
- * @param resourceGroupName The name of the resource group that contains the resource. You can obtain
3488
- * this value from the Azure Resource Manager API or the portal.
3648
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
3489
3649
  * @param resourceName The name of the resource.
3490
3650
  * @param options The options parameters.
3491
3651
  */
@@ -3553,29 +3713,26 @@ class WebPubSubCustomCertificatesImpl {
3553
3713
  }
3554
3714
  /**
3555
3715
  * List all custom certificates.
3556
- * @param resourceGroupName The name of the resource group that contains the resource. You can obtain
3557
- * this value from the Azure Resource Manager API or the portal.
3716
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
3558
3717
  * @param resourceName The name of the resource.
3559
3718
  * @param options The options parameters.
3560
3719
  */
3561
3720
  _list(resourceGroupName, resourceName, options) {
3562
- return this.client.sendOperationRequest({ resourceGroupName, resourceName, options }, listOperationSpec$5);
3721
+ return this.client.sendOperationRequest({ resourceGroupName, resourceName, options }, listOperationSpec$6);
3563
3722
  }
3564
3723
  /**
3565
3724
  * Get a custom certificate.
3566
- * @param resourceGroupName The name of the resource group that contains the resource. You can obtain
3567
- * this value from the Azure Resource Manager API or the portal.
3725
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
3568
3726
  * @param resourceName The name of the resource.
3569
3727
  * @param certificateName Custom certificate name
3570
3728
  * @param options The options parameters.
3571
3729
  */
3572
3730
  get(resourceGroupName, resourceName, certificateName, options) {
3573
- return this.client.sendOperationRequest({ resourceGroupName, resourceName, certificateName, options }, getOperationSpec$4);
3731
+ return this.client.sendOperationRequest({ resourceGroupName, resourceName, certificateName, options }, getOperationSpec$5);
3574
3732
  }
3575
3733
  /**
3576
3734
  * Create or update a custom certificate.
3577
- * @param resourceGroupName The name of the resource group that contains the resource. You can obtain
3578
- * this value from the Azure Resource Manager API or the portal.
3735
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
3579
3736
  * @param resourceName The name of the resource.
3580
3737
  * @param certificateName Custom certificate name
3581
3738
  * @param parameters A custom certificate.
@@ -3614,11 +3771,12 @@ class WebPubSubCustomCertificatesImpl {
3614
3771
  parameters,
3615
3772
  options
3616
3773
  },
3617
- spec: createOrUpdateOperationSpec$3
3774
+ spec: createOrUpdateOperationSpec$4
3618
3775
  });
3619
3776
  const poller = yield coreLro.createHttpPoller(lro, {
3620
3777
  restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
3621
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
3778
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
3779
+ resourceLocationConfig: "azure-async-operation"
3622
3780
  });
3623
3781
  yield poller.poll();
3624
3782
  return poller;
@@ -3626,8 +3784,7 @@ class WebPubSubCustomCertificatesImpl {
3626
3784
  }
3627
3785
  /**
3628
3786
  * Create or update a custom certificate.
3629
- * @param resourceGroupName The name of the resource group that contains the resource. You can obtain
3630
- * this value from the Azure Resource Manager API or the portal.
3787
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
3631
3788
  * @param resourceName The name of the resource.
3632
3789
  * @param certificateName Custom certificate name
3633
3790
  * @param parameters A custom certificate.
@@ -3641,30 +3798,28 @@ class WebPubSubCustomCertificatesImpl {
3641
3798
  }
3642
3799
  /**
3643
3800
  * Delete a custom certificate.
3644
- * @param resourceGroupName The name of the resource group that contains the resource. You can obtain
3645
- * this value from the Azure Resource Manager API or the portal.
3801
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
3646
3802
  * @param resourceName The name of the resource.
3647
3803
  * @param certificateName Custom certificate name
3648
3804
  * @param options The options parameters.
3649
3805
  */
3650
3806
  delete(resourceGroupName, resourceName, certificateName, options) {
3651
- return this.client.sendOperationRequest({ resourceGroupName, resourceName, certificateName, options }, deleteOperationSpec$4);
3807
+ return this.client.sendOperationRequest({ resourceGroupName, resourceName, certificateName, options }, deleteOperationSpec$5);
3652
3808
  }
3653
3809
  /**
3654
3810
  * ListNext
3655
- * @param resourceGroupName The name of the resource group that contains the resource. You can obtain
3656
- * this value from the Azure Resource Manager API or the portal.
3811
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
3657
3812
  * @param resourceName The name of the resource.
3658
3813
  * @param nextLink The nextLink from the previous successful call to the List method.
3659
3814
  * @param options The options parameters.
3660
3815
  */
3661
3816
  _listNext(resourceGroupName, resourceName, nextLink, options) {
3662
- return this.client.sendOperationRequest({ resourceGroupName, resourceName, nextLink, options }, listNextOperationSpec$5);
3817
+ return this.client.sendOperationRequest({ resourceGroupName, resourceName, nextLink, options }, listNextOperationSpec$6);
3663
3818
  }
3664
3819
  }
3665
3820
  // Operation Specifications
3666
- const serializer$5 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
3667
- const listOperationSpec$5 = {
3821
+ const serializer$6 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
3822
+ const listOperationSpec$6 = {
3668
3823
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/webPubSub/{resourceName}/customCertificates",
3669
3824
  httpMethod: "GET",
3670
3825
  responses: {
@@ -3683,9 +3838,9 @@ const listOperationSpec$5 = {
3683
3838
  resourceName
3684
3839
  ],
3685
3840
  headerParameters: [accept],
3686
- serializer: serializer$5
3841
+ serializer: serializer$6
3687
3842
  };
3688
- const getOperationSpec$4 = {
3843
+ const getOperationSpec$5 = {
3689
3844
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/webPubSub/{resourceName}/customCertificates/{certificateName}",
3690
3845
  httpMethod: "GET",
3691
3846
  responses: {
@@ -3705,9 +3860,9 @@ const getOperationSpec$4 = {
3705
3860
  certificateName
3706
3861
  ],
3707
3862
  headerParameters: [accept],
3708
- serializer: serializer$5
3863
+ serializer: serializer$6
3709
3864
  };
3710
- const createOrUpdateOperationSpec$3 = {
3865
+ const createOrUpdateOperationSpec$4 = {
3711
3866
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/webPubSub/{resourceName}/customCertificates/{certificateName}",
3712
3867
  httpMethod: "PUT",
3713
3868
  responses: {
@@ -3738,9 +3893,9 @@ const createOrUpdateOperationSpec$3 = {
3738
3893
  ],
3739
3894
  headerParameters: [accept, contentType],
3740
3895
  mediaType: "json",
3741
- serializer: serializer$5
3896
+ serializer: serializer$6
3742
3897
  };
3743
- const deleteOperationSpec$4 = {
3898
+ const deleteOperationSpec$5 = {
3744
3899
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/webPubSub/{resourceName}/customCertificates/{certificateName}",
3745
3900
  httpMethod: "DELETE",
3746
3901
  responses: {
@@ -3759,9 +3914,9 @@ const deleteOperationSpec$4 = {
3759
3914
  certificateName
3760
3915
  ],
3761
3916
  headerParameters: [accept],
3762
- serializer: serializer$5
3917
+ serializer: serializer$6
3763
3918
  };
3764
- const listNextOperationSpec$5 = {
3919
+ const listNextOperationSpec$6 = {
3765
3920
  path: "{nextLink}",
3766
3921
  httpMethod: "GET",
3767
3922
  responses: {
@@ -3780,7 +3935,7 @@ const listNextOperationSpec$5 = {
3780
3935
  resourceName
3781
3936
  ],
3782
3937
  headerParameters: [accept],
3783
- serializer: serializer$5
3938
+ serializer: serializer$6
3784
3939
  };
3785
3940
 
3786
3941
  /*
@@ -3802,8 +3957,7 @@ class WebPubSubCustomDomainsImpl {
3802
3957
  }
3803
3958
  /**
3804
3959
  * List all custom domains.
3805
- * @param resourceGroupName The name of the resource group that contains the resource. You can obtain
3806
- * this value from the Azure Resource Manager API or the portal.
3960
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
3807
3961
  * @param resourceName The name of the resource.
3808
3962
  * @param options The options parameters.
3809
3963
  */
@@ -3871,29 +4025,26 @@ class WebPubSubCustomDomainsImpl {
3871
4025
  }
3872
4026
  /**
3873
4027
  * List all custom domains.
3874
- * @param resourceGroupName The name of the resource group that contains the resource. You can obtain
3875
- * this value from the Azure Resource Manager API or the portal.
4028
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
3876
4029
  * @param resourceName The name of the resource.
3877
4030
  * @param options The options parameters.
3878
4031
  */
3879
4032
  _list(resourceGroupName, resourceName, options) {
3880
- return this.client.sendOperationRequest({ resourceGroupName, resourceName, options }, listOperationSpec$4);
4033
+ return this.client.sendOperationRequest({ resourceGroupName, resourceName, options }, listOperationSpec$5);
3881
4034
  }
3882
4035
  /**
3883
4036
  * Get a custom domain.
3884
- * @param resourceGroupName The name of the resource group that contains the resource. You can obtain
3885
- * this value from the Azure Resource Manager API or the portal.
4037
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
3886
4038
  * @param resourceName The name of the resource.
3887
4039
  * @param name Custom domain name.
3888
4040
  * @param options The options parameters.
3889
4041
  */
3890
4042
  get(resourceGroupName, resourceName, name, options) {
3891
- return this.client.sendOperationRequest({ resourceGroupName, resourceName, name, options }, getOperationSpec$3);
4043
+ return this.client.sendOperationRequest({ resourceGroupName, resourceName, name, options }, getOperationSpec$4);
3892
4044
  }
3893
4045
  /**
3894
4046
  * Create or update a custom domain.
3895
- * @param resourceGroupName The name of the resource group that contains the resource. You can obtain
3896
- * this value from the Azure Resource Manager API or the portal.
4047
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
3897
4048
  * @param resourceName The name of the resource.
3898
4049
  * @param name Custom domain name.
3899
4050
  * @param parameters A custom domain
@@ -3926,11 +4077,12 @@ class WebPubSubCustomDomainsImpl {
3926
4077
  const lro = createLroSpec({
3927
4078
  sendOperationFn,
3928
4079
  args: { resourceGroupName, resourceName, name, parameters, options },
3929
- spec: createOrUpdateOperationSpec$2
4080
+ spec: createOrUpdateOperationSpec$3
3930
4081
  });
3931
4082
  const poller = yield coreLro.createHttpPoller(lro, {
3932
4083
  restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
3933
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
4084
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
4085
+ resourceLocationConfig: "azure-async-operation"
3934
4086
  });
3935
4087
  yield poller.poll();
3936
4088
  return poller;
@@ -3938,8 +4090,7 @@ class WebPubSubCustomDomainsImpl {
3938
4090
  }
3939
4091
  /**
3940
4092
  * Create or update a custom domain.
3941
- * @param resourceGroupName The name of the resource group that contains the resource. You can obtain
3942
- * this value from the Azure Resource Manager API or the portal.
4093
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
3943
4094
  * @param resourceName The name of the resource.
3944
4095
  * @param name Custom domain name.
3945
4096
  * @param parameters A custom domain
@@ -3953,8 +4104,7 @@ class WebPubSubCustomDomainsImpl {
3953
4104
  }
3954
4105
  /**
3955
4106
  * Delete a custom domain.
3956
- * @param resourceGroupName The name of the resource group that contains the resource. You can obtain
3957
- * this value from the Azure Resource Manager API or the portal.
4107
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
3958
4108
  * @param resourceName The name of the resource.
3959
4109
  * @param name Custom domain name.
3960
4110
  * @param options The options parameters.
@@ -3986,7 +4136,7 @@ class WebPubSubCustomDomainsImpl {
3986
4136
  const lro = createLroSpec({
3987
4137
  sendOperationFn,
3988
4138
  args: { resourceGroupName, resourceName, name, options },
3989
- spec: deleteOperationSpec$3
4139
+ spec: deleteOperationSpec$4
3990
4140
  });
3991
4141
  const poller = yield coreLro.createHttpPoller(lro, {
3992
4142
  restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
@@ -3999,8 +4149,7 @@ class WebPubSubCustomDomainsImpl {
3999
4149
  }
4000
4150
  /**
4001
4151
  * Delete a custom domain.
4002
- * @param resourceGroupName The name of the resource group that contains the resource. You can obtain
4003
- * this value from the Azure Resource Manager API or the portal.
4152
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
4004
4153
  * @param resourceName The name of the resource.
4005
4154
  * @param name Custom domain name.
4006
4155
  * @param options The options parameters.
@@ -4013,19 +4162,18 @@ class WebPubSubCustomDomainsImpl {
4013
4162
  }
4014
4163
  /**
4015
4164
  * ListNext
4016
- * @param resourceGroupName The name of the resource group that contains the resource. You can obtain
4017
- * this value from the Azure Resource Manager API or the portal.
4165
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
4018
4166
  * @param resourceName The name of the resource.
4019
4167
  * @param nextLink The nextLink from the previous successful call to the List method.
4020
4168
  * @param options The options parameters.
4021
4169
  */
4022
4170
  _listNext(resourceGroupName, resourceName, nextLink, options) {
4023
- return this.client.sendOperationRequest({ resourceGroupName, resourceName, nextLink, options }, listNextOperationSpec$4);
4171
+ return this.client.sendOperationRequest({ resourceGroupName, resourceName, nextLink, options }, listNextOperationSpec$5);
4024
4172
  }
4025
4173
  }
4026
4174
  // Operation Specifications
4027
- const serializer$4 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
4028
- const listOperationSpec$4 = {
4175
+ const serializer$5 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
4176
+ const listOperationSpec$5 = {
4029
4177
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/webPubSub/{resourceName}/customDomains",
4030
4178
  httpMethod: "GET",
4031
4179
  responses: {
@@ -4044,9 +4192,9 @@ const listOperationSpec$4 = {
4044
4192
  resourceName
4045
4193
  ],
4046
4194
  headerParameters: [accept],
4047
- serializer: serializer$4
4195
+ serializer: serializer$5
4048
4196
  };
4049
- const getOperationSpec$3 = {
4197
+ const getOperationSpec$4 = {
4050
4198
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/webPubSub/{resourceName}/customDomains/{name}",
4051
4199
  httpMethod: "GET",
4052
4200
  responses: {
@@ -4066,9 +4214,9 @@ const getOperationSpec$3 = {
4066
4214
  name
4067
4215
  ],
4068
4216
  headerParameters: [accept],
4069
- serializer: serializer$4
4217
+ serializer: serializer$5
4070
4218
  };
4071
- const createOrUpdateOperationSpec$2 = {
4219
+ const createOrUpdateOperationSpec$3 = {
4072
4220
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/webPubSub/{resourceName}/customDomains/{name}",
4073
4221
  httpMethod: "PUT",
4074
4222
  responses: {
@@ -4099,9 +4247,9 @@ const createOrUpdateOperationSpec$2 = {
4099
4247
  ],
4100
4248
  headerParameters: [accept, contentType],
4101
4249
  mediaType: "json",
4102
- serializer: serializer$4
4250
+ serializer: serializer$5
4103
4251
  };
4104
- const deleteOperationSpec$3 = {
4252
+ const deleteOperationSpec$4 = {
4105
4253
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/webPubSub/{resourceName}/customDomains/{name}",
4106
4254
  httpMethod: "DELETE",
4107
4255
  responses: {
@@ -4122,9 +4270,9 @@ const deleteOperationSpec$3 = {
4122
4270
  name
4123
4271
  ],
4124
4272
  headerParameters: [accept],
4125
- serializer: serializer$4
4273
+ serializer: serializer$5
4126
4274
  };
4127
- const listNextOperationSpec$4 = {
4275
+ const listNextOperationSpec$5 = {
4128
4276
  path: "{nextLink}",
4129
4277
  httpMethod: "GET",
4130
4278
  responses: {
@@ -4143,7 +4291,7 @@ const listNextOperationSpec$4 = {
4143
4291
  resourceName
4144
4292
  ],
4145
4293
  headerParameters: [accept],
4146
- serializer: serializer$4
4294
+ serializer: serializer$5
4147
4295
  };
4148
4296
 
4149
4297
  /*
@@ -4165,8 +4313,7 @@ class WebPubSubHubsImpl {
4165
4313
  }
4166
4314
  /**
4167
4315
  * List hub settings.
4168
- * @param resourceGroupName The name of the resource group that contains the resource. You can obtain
4169
- * this value from the Azure Resource Manager API or the portal.
4316
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
4170
4317
  * @param resourceName The name of the resource.
4171
4318
  * @param options The options parameters.
4172
4319
  */
@@ -4234,30 +4381,27 @@ class WebPubSubHubsImpl {
4234
4381
  }
4235
4382
  /**
4236
4383
  * List hub settings.
4237
- * @param resourceGroupName The name of the resource group that contains the resource. You can obtain
4238
- * this value from the Azure Resource Manager API or the portal.
4384
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
4239
4385
  * @param resourceName The name of the resource.
4240
4386
  * @param options The options parameters.
4241
4387
  */
4242
4388
  _list(resourceGroupName, resourceName, options) {
4243
- return this.client.sendOperationRequest({ resourceGroupName, resourceName, options }, listOperationSpec$3);
4389
+ return this.client.sendOperationRequest({ resourceGroupName, resourceName, options }, listOperationSpec$4);
4244
4390
  }
4245
4391
  /**
4246
4392
  * Get a hub setting.
4247
4393
  * @param hubName The hub name.
4248
- * @param resourceGroupName The name of the resource group that contains the resource. You can obtain
4249
- * this value from the Azure Resource Manager API or the portal.
4394
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
4250
4395
  * @param resourceName The name of the resource.
4251
4396
  * @param options The options parameters.
4252
4397
  */
4253
4398
  get(hubName, resourceGroupName, resourceName, options) {
4254
- return this.client.sendOperationRequest({ hubName, resourceGroupName, resourceName, options }, getOperationSpec$2);
4399
+ return this.client.sendOperationRequest({ hubName, resourceGroupName, resourceName, options }, getOperationSpec$3);
4255
4400
  }
4256
4401
  /**
4257
4402
  * Create or update a hub setting.
4258
4403
  * @param hubName The hub name.
4259
- * @param resourceGroupName The name of the resource group that contains the resource. You can obtain
4260
- * this value from the Azure Resource Manager API or the portal.
4404
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
4261
4405
  * @param resourceName The name of the resource.
4262
4406
  * @param parameters The resource of WebPubSubHub and its properties
4263
4407
  * @param options The options parameters.
@@ -4289,11 +4433,12 @@ class WebPubSubHubsImpl {
4289
4433
  const lro = createLroSpec({
4290
4434
  sendOperationFn,
4291
4435
  args: { hubName, resourceGroupName, resourceName, parameters, options },
4292
- spec: createOrUpdateOperationSpec$1
4436
+ spec: createOrUpdateOperationSpec$2
4293
4437
  });
4294
4438
  const poller = yield coreLro.createHttpPoller(lro, {
4295
4439
  restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
4296
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
4440
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
4441
+ resourceLocationConfig: "azure-async-operation"
4297
4442
  });
4298
4443
  yield poller.poll();
4299
4444
  return poller;
@@ -4302,8 +4447,7 @@ class WebPubSubHubsImpl {
4302
4447
  /**
4303
4448
  * Create or update a hub setting.
4304
4449
  * @param hubName The hub name.
4305
- * @param resourceGroupName The name of the resource group that contains the resource. You can obtain
4306
- * this value from the Azure Resource Manager API or the portal.
4450
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
4307
4451
  * @param resourceName The name of the resource.
4308
4452
  * @param parameters The resource of WebPubSubHub and its properties
4309
4453
  * @param options The options parameters.
@@ -4317,8 +4461,7 @@ class WebPubSubHubsImpl {
4317
4461
  /**
4318
4462
  * Delete a hub setting.
4319
4463
  * @param hubName The hub name.
4320
- * @param resourceGroupName The name of the resource group that contains the resource. You can obtain
4321
- * this value from the Azure Resource Manager API or the portal.
4464
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
4322
4465
  * @param resourceName The name of the resource.
4323
4466
  * @param options The options parameters.
4324
4467
  */
@@ -4349,7 +4492,7 @@ class WebPubSubHubsImpl {
4349
4492
  const lro = createLroSpec({
4350
4493
  sendOperationFn,
4351
4494
  args: { hubName, resourceGroupName, resourceName, options },
4352
- spec: deleteOperationSpec$2
4495
+ spec: deleteOperationSpec$3
4353
4496
  });
4354
4497
  const poller = yield coreLro.createHttpPoller(lro, {
4355
4498
  restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
@@ -4363,8 +4506,7 @@ class WebPubSubHubsImpl {
4363
4506
  /**
4364
4507
  * Delete a hub setting.
4365
4508
  * @param hubName The hub name.
4366
- * @param resourceGroupName The name of the resource group that contains the resource. You can obtain
4367
- * this value from the Azure Resource Manager API or the portal.
4509
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
4368
4510
  * @param resourceName The name of the resource.
4369
4511
  * @param options The options parameters.
4370
4512
  */
@@ -4376,19 +4518,18 @@ class WebPubSubHubsImpl {
4376
4518
  }
4377
4519
  /**
4378
4520
  * ListNext
4379
- * @param resourceGroupName The name of the resource group that contains the resource. You can obtain
4380
- * this value from the Azure Resource Manager API or the portal.
4521
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
4381
4522
  * @param resourceName The name of the resource.
4382
4523
  * @param nextLink The nextLink from the previous successful call to the List method.
4383
4524
  * @param options The options parameters.
4384
4525
  */
4385
4526
  _listNext(resourceGroupName, resourceName, nextLink, options) {
4386
- return this.client.sendOperationRequest({ resourceGroupName, resourceName, nextLink, options }, listNextOperationSpec$3);
4527
+ return this.client.sendOperationRequest({ resourceGroupName, resourceName, nextLink, options }, listNextOperationSpec$4);
4387
4528
  }
4388
4529
  }
4389
4530
  // Operation Specifications
4390
- const serializer$3 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
4391
- const listOperationSpec$3 = {
4531
+ const serializer$4 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
4532
+ const listOperationSpec$4 = {
4392
4533
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/webPubSub/{resourceName}/hubs",
4393
4534
  httpMethod: "GET",
4394
4535
  responses: {
@@ -4407,9 +4548,9 @@ const listOperationSpec$3 = {
4407
4548
  resourceName
4408
4549
  ],
4409
4550
  headerParameters: [accept],
4410
- serializer: serializer$3
4551
+ serializer: serializer$4
4411
4552
  };
4412
- const getOperationSpec$2 = {
4553
+ const getOperationSpec$3 = {
4413
4554
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/webPubSub/{resourceName}/hubs/{hubName}",
4414
4555
  httpMethod: "GET",
4415
4556
  responses: {
@@ -4429,9 +4570,9 @@ const getOperationSpec$2 = {
4429
4570
  hubName
4430
4571
  ],
4431
4572
  headerParameters: [accept],
4432
- serializer: serializer$3
4573
+ serializer: serializer$4
4433
4574
  };
4434
- const createOrUpdateOperationSpec$1 = {
4575
+ const createOrUpdateOperationSpec$2 = {
4435
4576
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/webPubSub/{resourceName}/hubs/{hubName}",
4436
4577
  httpMethod: "PUT",
4437
4578
  responses: {
@@ -4462,9 +4603,9 @@ const createOrUpdateOperationSpec$1 = {
4462
4603
  ],
4463
4604
  headerParameters: [accept, contentType],
4464
4605
  mediaType: "json",
4465
- serializer: serializer$3
4606
+ serializer: serializer$4
4466
4607
  };
4467
- const deleteOperationSpec$2 = {
4608
+ const deleteOperationSpec$3 = {
4468
4609
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/webPubSub/{resourceName}/hubs/{hubName}",
4469
4610
  httpMethod: "DELETE",
4470
4611
  responses: {
@@ -4485,9 +4626,9 @@ const deleteOperationSpec$2 = {
4485
4626
  hubName
4486
4627
  ],
4487
4628
  headerParameters: [accept],
4488
- serializer: serializer$3
4629
+ serializer: serializer$4
4489
4630
  };
4490
- const listNextOperationSpec$3 = {
4631
+ const listNextOperationSpec$4 = {
4491
4632
  path: "{nextLink}",
4492
4633
  httpMethod: "GET",
4493
4634
  responses: {
@@ -4506,7 +4647,7 @@ const listNextOperationSpec$3 = {
4506
4647
  resourceName
4507
4648
  ],
4508
4649
  headerParameters: [accept],
4509
- serializer: serializer$3
4650
+ serializer: serializer$4
4510
4651
  };
4511
4652
 
4512
4653
  /*
@@ -4528,8 +4669,7 @@ class WebPubSubPrivateEndpointConnectionsImpl {
4528
4669
  }
4529
4670
  /**
4530
4671
  * List private endpoint connections
4531
- * @param resourceGroupName The name of the resource group that contains the resource. You can obtain
4532
- * this value from the Azure Resource Manager API or the portal.
4672
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
4533
4673
  * @param resourceName The name of the resource.
4534
4674
  * @param options The options parameters.
4535
4675
  */
@@ -4597,19 +4737,18 @@ class WebPubSubPrivateEndpointConnectionsImpl {
4597
4737
  }
4598
4738
  /**
4599
4739
  * List private endpoint connections
4600
- * @param resourceGroupName The name of the resource group that contains the resource. You can obtain
4601
- * this value from the Azure Resource Manager API or the portal.
4740
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
4602
4741
  * @param resourceName The name of the resource.
4603
4742
  * @param options The options parameters.
4604
4743
  */
4605
4744
  _list(resourceGroupName, resourceName, options) {
4606
- return this.client.sendOperationRequest({ resourceGroupName, resourceName, options }, listOperationSpec$2);
4745
+ return this.client.sendOperationRequest({ resourceGroupName, resourceName, options }, listOperationSpec$3);
4607
4746
  }
4608
4747
  /**
4609
4748
  * Get the specified private endpoint connection
4610
- * @param privateEndpointConnectionName The name of the private endpoint connection
4611
- * @param resourceGroupName The name of the resource group that contains the resource. You can obtain
4612
- * this value from the Azure Resource Manager API or the portal.
4749
+ * @param privateEndpointConnectionName The name of the private endpoint connection associated with the
4750
+ * Azure resource.
4751
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
4613
4752
  * @param resourceName The name of the resource.
4614
4753
  * @param options The options parameters.
4615
4754
  */
@@ -4619,13 +4758,13 @@ class WebPubSubPrivateEndpointConnectionsImpl {
4619
4758
  resourceGroupName,
4620
4759
  resourceName,
4621
4760
  options
4622
- }, getOperationSpec$1);
4761
+ }, getOperationSpec$2);
4623
4762
  }
4624
4763
  /**
4625
4764
  * Update the state of specified private endpoint connection
4626
- * @param privateEndpointConnectionName The name of the private endpoint connection
4627
- * @param resourceGroupName The name of the resource group that contains the resource. You can obtain
4628
- * this value from the Azure Resource Manager API or the portal.
4765
+ * @param privateEndpointConnectionName The name of the private endpoint connection associated with the
4766
+ * Azure resource.
4767
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
4629
4768
  * @param resourceName The name of the resource.
4630
4769
  * @param parameters The resource of private endpoint and its properties
4631
4770
  * @param options The options parameters.
@@ -4637,13 +4776,13 @@ class WebPubSubPrivateEndpointConnectionsImpl {
4637
4776
  resourceName,
4638
4777
  parameters,
4639
4778
  options
4640
- }, updateOperationSpec);
4779
+ }, updateOperationSpec$1);
4641
4780
  }
4642
4781
  /**
4643
4782
  * Delete the specified private endpoint connection
4644
- * @param privateEndpointConnectionName The name of the private endpoint connection
4645
- * @param resourceGroupName The name of the resource group that contains the resource. You can obtain
4646
- * this value from the Azure Resource Manager API or the portal.
4783
+ * @param privateEndpointConnectionName The name of the private endpoint connection associated with the
4784
+ * Azure resource.
4785
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
4647
4786
  * @param resourceName The name of the resource.
4648
4787
  * @param options The options parameters.
4649
4788
  */
@@ -4679,7 +4818,7 @@ class WebPubSubPrivateEndpointConnectionsImpl {
4679
4818
  resourceName,
4680
4819
  options
4681
4820
  },
4682
- spec: deleteOperationSpec$1
4821
+ spec: deleteOperationSpec$2
4683
4822
  });
4684
4823
  const poller = yield coreLro.createHttpPoller(lro, {
4685
4824
  restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
@@ -4692,9 +4831,9 @@ class WebPubSubPrivateEndpointConnectionsImpl {
4692
4831
  }
4693
4832
  /**
4694
4833
  * Delete the specified private endpoint connection
4695
- * @param privateEndpointConnectionName The name of the private endpoint connection
4696
- * @param resourceGroupName The name of the resource group that contains the resource. You can obtain
4697
- * this value from the Azure Resource Manager API or the portal.
4834
+ * @param privateEndpointConnectionName The name of the private endpoint connection associated with the
4835
+ * Azure resource.
4836
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
4698
4837
  * @param resourceName The name of the resource.
4699
4838
  * @param options The options parameters.
4700
4839
  */
@@ -4706,19 +4845,18 @@ class WebPubSubPrivateEndpointConnectionsImpl {
4706
4845
  }
4707
4846
  /**
4708
4847
  * ListNext
4709
- * @param resourceGroupName The name of the resource group that contains the resource. You can obtain
4710
- * this value from the Azure Resource Manager API or the portal.
4848
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
4711
4849
  * @param resourceName The name of the resource.
4712
4850
  * @param nextLink The nextLink from the previous successful call to the List method.
4713
4851
  * @param options The options parameters.
4714
4852
  */
4715
4853
  _listNext(resourceGroupName, resourceName, nextLink, options) {
4716
- return this.client.sendOperationRequest({ resourceGroupName, resourceName, nextLink, options }, listNextOperationSpec$2);
4854
+ return this.client.sendOperationRequest({ resourceGroupName, resourceName, nextLink, options }, listNextOperationSpec$3);
4717
4855
  }
4718
4856
  }
4719
4857
  // Operation Specifications
4720
- const serializer$2 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
4721
- const listOperationSpec$2 = {
4858
+ const serializer$3 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
4859
+ const listOperationSpec$3 = {
4722
4860
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/webPubSub/{resourceName}/privateEndpointConnections",
4723
4861
  httpMethod: "GET",
4724
4862
  responses: {
@@ -4737,9 +4875,9 @@ const listOperationSpec$2 = {
4737
4875
  resourceName
4738
4876
  ],
4739
4877
  headerParameters: [accept],
4740
- serializer: serializer$2
4878
+ serializer: serializer$3
4741
4879
  };
4742
- const getOperationSpec$1 = {
4880
+ const getOperationSpec$2 = {
4743
4881
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/webPubSub/{resourceName}/privateEndpointConnections/{privateEndpointConnectionName}",
4744
4882
  httpMethod: "GET",
4745
4883
  responses: {
@@ -4759,9 +4897,9 @@ const getOperationSpec$1 = {
4759
4897
  privateEndpointConnectionName
4760
4898
  ],
4761
4899
  headerParameters: [accept],
4762
- serializer: serializer$2
4900
+ serializer: serializer$3
4763
4901
  };
4764
- const updateOperationSpec = {
4902
+ const updateOperationSpec$1 = {
4765
4903
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/webPubSub/{resourceName}/privateEndpointConnections/{privateEndpointConnectionName}",
4766
4904
  httpMethod: "PUT",
4767
4905
  responses: {
@@ -4783,9 +4921,9 @@ const updateOperationSpec = {
4783
4921
  ],
4784
4922
  headerParameters: [accept, contentType],
4785
4923
  mediaType: "json",
4786
- serializer: serializer$2
4924
+ serializer: serializer$3
4787
4925
  };
4788
- const deleteOperationSpec$1 = {
4926
+ const deleteOperationSpec$2 = {
4789
4927
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/webPubSub/{resourceName}/privateEndpointConnections/{privateEndpointConnectionName}",
4790
4928
  httpMethod: "DELETE",
4791
4929
  responses: {
@@ -4806,9 +4944,9 @@ const deleteOperationSpec$1 = {
4806
4944
  privateEndpointConnectionName
4807
4945
  ],
4808
4946
  headerParameters: [accept],
4809
- serializer: serializer$2
4947
+ serializer: serializer$3
4810
4948
  };
4811
- const listNextOperationSpec$2 = {
4949
+ const listNextOperationSpec$3 = {
4812
4950
  path: "{nextLink}",
4813
4951
  httpMethod: "GET",
4814
4952
  responses: {
@@ -4827,7 +4965,7 @@ const listNextOperationSpec$2 = {
4827
4965
  resourceName
4828
4966
  ],
4829
4967
  headerParameters: [accept],
4830
- serializer: serializer$2
4968
+ serializer: serializer$3
4831
4969
  };
4832
4970
 
4833
4971
  /*
@@ -4849,8 +4987,7 @@ class WebPubSubPrivateLinkResourcesImpl {
4849
4987
  }
4850
4988
  /**
4851
4989
  * Get the private link resources that need to be created for a resource.
4852
- * @param resourceGroupName The name of the resource group that contains the resource. You can obtain
4853
- * this value from the Azure Resource Manager API or the portal.
4990
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
4854
4991
  * @param resourceName The name of the resource.
4855
4992
  * @param options The options parameters.
4856
4993
  */
@@ -4918,18 +5055,376 @@ class WebPubSubPrivateLinkResourcesImpl {
4918
5055
  }
4919
5056
  /**
4920
5057
  * Get the private link resources that need to be created for a resource.
4921
- * @param resourceGroupName The name of the resource group that contains the resource. You can obtain
4922
- * this value from the Azure Resource Manager API or the portal.
5058
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
5059
+ * @param resourceName The name of the resource.
5060
+ * @param options The options parameters.
5061
+ */
5062
+ _list(resourceGroupName, resourceName, options) {
5063
+ return this.client.sendOperationRequest({ resourceGroupName, resourceName, options }, listOperationSpec$2);
5064
+ }
5065
+ /**
5066
+ * ListNext
5067
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
5068
+ * @param resourceName The name of the resource.
5069
+ * @param nextLink The nextLink from the previous successful call to the List method.
5070
+ * @param options The options parameters.
5071
+ */
5072
+ _listNext(resourceGroupName, resourceName, nextLink, options) {
5073
+ return this.client.sendOperationRequest({ resourceGroupName, resourceName, nextLink, options }, listNextOperationSpec$2);
5074
+ }
5075
+ }
5076
+ // Operation Specifications
5077
+ const serializer$2 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
5078
+ const listOperationSpec$2 = {
5079
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/webPubSub/{resourceName}/privateLinkResources",
5080
+ httpMethod: "GET",
5081
+ responses: {
5082
+ 200: {
5083
+ bodyMapper: PrivateLinkResourceList
5084
+ },
5085
+ default: {
5086
+ bodyMapper: ErrorResponse
5087
+ }
5088
+ },
5089
+ queryParameters: [apiVersion],
5090
+ urlParameters: [
5091
+ $host,
5092
+ subscriptionId,
5093
+ resourceGroupName,
5094
+ resourceName
5095
+ ],
5096
+ headerParameters: [accept],
5097
+ serializer: serializer$2
5098
+ };
5099
+ const listNextOperationSpec$2 = {
5100
+ path: "{nextLink}",
5101
+ httpMethod: "GET",
5102
+ responses: {
5103
+ 200: {
5104
+ bodyMapper: PrivateLinkResourceList
5105
+ },
5106
+ default: {
5107
+ bodyMapper: ErrorResponse
5108
+ }
5109
+ },
5110
+ urlParameters: [
5111
+ $host,
5112
+ nextLink,
5113
+ subscriptionId,
5114
+ resourceGroupName,
5115
+ resourceName
5116
+ ],
5117
+ headerParameters: [accept],
5118
+ serializer: serializer$2
5119
+ };
5120
+
5121
+ /*
5122
+ * Copyright (c) Microsoft Corporation.
5123
+ * Licensed under the MIT License.
5124
+ *
5125
+ * Code generated by Microsoft (R) AutoRest Code Generator.
5126
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
5127
+ */
5128
+ /// <reference lib="esnext.asynciterable" />
5129
+ /** Class containing WebPubSubReplicas operations. */
5130
+ class WebPubSubReplicasImpl {
5131
+ /**
5132
+ * Initialize a new instance of the class WebPubSubReplicas class.
5133
+ * @param client Reference to the service client
5134
+ */
5135
+ constructor(client) {
5136
+ this.client = client;
5137
+ }
5138
+ /**
5139
+ * List all replicas belong to this resource
5140
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
5141
+ * @param resourceName The name of the resource.
5142
+ * @param options The options parameters.
5143
+ */
5144
+ list(resourceGroupName, resourceName, options) {
5145
+ const iter = this.listPagingAll(resourceGroupName, resourceName, options);
5146
+ return {
5147
+ next() {
5148
+ return iter.next();
5149
+ },
5150
+ [Symbol.asyncIterator]() {
5151
+ return this;
5152
+ },
5153
+ byPage: (settings) => {
5154
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
5155
+ throw new Error("maxPageSize is not supported by this operation.");
5156
+ }
5157
+ return this.listPagingPage(resourceGroupName, resourceName, options, settings);
5158
+ }
5159
+ };
5160
+ }
5161
+ listPagingPage(resourceGroupName, resourceName, options, settings) {
5162
+ return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
5163
+ let result;
5164
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
5165
+ if (!continuationToken) {
5166
+ result = yield tslib.__await(this._list(resourceGroupName, resourceName, options));
5167
+ let page = result.value || [];
5168
+ continuationToken = result.nextLink;
5169
+ setContinuationToken(page, continuationToken);
5170
+ yield yield tslib.__await(page);
5171
+ }
5172
+ while (continuationToken) {
5173
+ result = yield tslib.__await(this._listNext(resourceGroupName, resourceName, continuationToken, options));
5174
+ continuationToken = result.nextLink;
5175
+ let page = result.value || [];
5176
+ setContinuationToken(page, continuationToken);
5177
+ yield yield tslib.__await(page);
5178
+ }
5179
+ });
5180
+ }
5181
+ listPagingAll(resourceGroupName, resourceName, options) {
5182
+ return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
5183
+ var _a, e_1, _b, _c;
5184
+ try {
5185
+ for (var _d = true, _e = tslib.__asyncValues(this.listPagingPage(resourceGroupName, resourceName, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a;) {
5186
+ _c = _f.value;
5187
+ _d = false;
5188
+ try {
5189
+ const page = _c;
5190
+ yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
5191
+ }
5192
+ finally {
5193
+ _d = true;
5194
+ }
5195
+ }
5196
+ }
5197
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
5198
+ finally {
5199
+ try {
5200
+ if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
5201
+ }
5202
+ finally { if (e_1) throw e_1.error; }
5203
+ }
5204
+ });
5205
+ }
5206
+ /**
5207
+ * List all replicas belong to this resource
5208
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
4923
5209
  * @param resourceName The name of the resource.
4924
5210
  * @param options The options parameters.
4925
5211
  */
4926
5212
  _list(resourceGroupName, resourceName, options) {
4927
5213
  return this.client.sendOperationRequest({ resourceGroupName, resourceName, options }, listOperationSpec$1);
4928
5214
  }
5215
+ /**
5216
+ * Get the replica and its properties.
5217
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
5218
+ * @param resourceName The name of the resource.
5219
+ * @param replicaName The name of the replica.
5220
+ * @param options The options parameters.
5221
+ */
5222
+ get(resourceGroupName, resourceName, replicaName, options) {
5223
+ return this.client.sendOperationRequest({ resourceGroupName, resourceName, replicaName, options }, getOperationSpec$1);
5224
+ }
5225
+ /**
5226
+ * Create or update a replica.
5227
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
5228
+ * @param resourceName The name of the resource.
5229
+ * @param replicaName The name of the replica.
5230
+ * @param parameters Parameters for the create or update operation
5231
+ * @param options The options parameters.
5232
+ */
5233
+ beginCreateOrUpdate(resourceGroupName, resourceName, replicaName, parameters, options) {
5234
+ return tslib.__awaiter(this, void 0, void 0, function* () {
5235
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
5236
+ return this.client.sendOperationRequest(args, spec);
5237
+ });
5238
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
5239
+ var _a;
5240
+ let currentRawResponse = undefined;
5241
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
5242
+ const callback = (rawResponse, flatResponse) => {
5243
+ currentRawResponse = rawResponse;
5244
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
5245
+ };
5246
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
5247
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
5248
+ return {
5249
+ flatResponse,
5250
+ rawResponse: {
5251
+ statusCode: currentRawResponse.status,
5252
+ body: currentRawResponse.parsedBody,
5253
+ headers: currentRawResponse.headers.toJSON()
5254
+ }
5255
+ };
5256
+ });
5257
+ const lro = createLroSpec({
5258
+ sendOperationFn,
5259
+ args: {
5260
+ resourceGroupName,
5261
+ resourceName,
5262
+ replicaName,
5263
+ parameters,
5264
+ options
5265
+ },
5266
+ spec: createOrUpdateOperationSpec$1
5267
+ });
5268
+ const poller = yield coreLro.createHttpPoller(lro, {
5269
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
5270
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
5271
+ resourceLocationConfig: "azure-async-operation"
5272
+ });
5273
+ yield poller.poll();
5274
+ return poller;
5275
+ });
5276
+ }
5277
+ /**
5278
+ * Create or update a replica.
5279
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
5280
+ * @param resourceName The name of the resource.
5281
+ * @param replicaName The name of the replica.
5282
+ * @param parameters Parameters for the create or update operation
5283
+ * @param options The options parameters.
5284
+ */
5285
+ beginCreateOrUpdateAndWait(resourceGroupName, resourceName, replicaName, parameters, options) {
5286
+ return tslib.__awaiter(this, void 0, void 0, function* () {
5287
+ const poller = yield this.beginCreateOrUpdate(resourceGroupName, resourceName, replicaName, parameters, options);
5288
+ return poller.pollUntilDone();
5289
+ });
5290
+ }
5291
+ /**
5292
+ * Operation to delete a replica.
5293
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
5294
+ * @param resourceName The name of the resource.
5295
+ * @param replicaName The name of the replica.
5296
+ * @param options The options parameters.
5297
+ */
5298
+ delete(resourceGroupName, resourceName, replicaName, options) {
5299
+ return this.client.sendOperationRequest({ resourceGroupName, resourceName, replicaName, options }, deleteOperationSpec$1);
5300
+ }
5301
+ /**
5302
+ * Operation to update an exiting replica.
5303
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
5304
+ * @param resourceName The name of the resource.
5305
+ * @param replicaName The name of the replica.
5306
+ * @param parameters Parameters for the update operation
5307
+ * @param options The options parameters.
5308
+ */
5309
+ beginUpdate(resourceGroupName, resourceName, replicaName, parameters, options) {
5310
+ return tslib.__awaiter(this, void 0, void 0, function* () {
5311
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
5312
+ return this.client.sendOperationRequest(args, spec);
5313
+ });
5314
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
5315
+ var _a;
5316
+ let currentRawResponse = undefined;
5317
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
5318
+ const callback = (rawResponse, flatResponse) => {
5319
+ currentRawResponse = rawResponse;
5320
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
5321
+ };
5322
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
5323
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
5324
+ return {
5325
+ flatResponse,
5326
+ rawResponse: {
5327
+ statusCode: currentRawResponse.status,
5328
+ body: currentRawResponse.parsedBody,
5329
+ headers: currentRawResponse.headers.toJSON()
5330
+ }
5331
+ };
5332
+ });
5333
+ const lro = createLroSpec({
5334
+ sendOperationFn,
5335
+ args: {
5336
+ resourceGroupName,
5337
+ resourceName,
5338
+ replicaName,
5339
+ parameters,
5340
+ options
5341
+ },
5342
+ spec: updateOperationSpec
5343
+ });
5344
+ const poller = yield coreLro.createHttpPoller(lro, {
5345
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
5346
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
5347
+ resourceLocationConfig: "location"
5348
+ });
5349
+ yield poller.poll();
5350
+ return poller;
5351
+ });
5352
+ }
5353
+ /**
5354
+ * Operation to update an exiting replica.
5355
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
5356
+ * @param resourceName The name of the resource.
5357
+ * @param replicaName The name of the replica.
5358
+ * @param parameters Parameters for the update operation
5359
+ * @param options The options parameters.
5360
+ */
5361
+ beginUpdateAndWait(resourceGroupName, resourceName, replicaName, parameters, options) {
5362
+ return tslib.__awaiter(this, void 0, void 0, function* () {
5363
+ const poller = yield this.beginUpdate(resourceGroupName, resourceName, replicaName, parameters, options);
5364
+ return poller.pollUntilDone();
5365
+ });
5366
+ }
5367
+ /**
5368
+ * Operation to restart a replica.
5369
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
5370
+ * @param resourceName The name of the resource.
5371
+ * @param replicaName The name of the replica.
5372
+ * @param options The options parameters.
5373
+ */
5374
+ beginRestart(resourceGroupName, resourceName, replicaName, options) {
5375
+ return tslib.__awaiter(this, void 0, void 0, function* () {
5376
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
5377
+ return this.client.sendOperationRequest(args, spec);
5378
+ });
5379
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
5380
+ var _a;
5381
+ let currentRawResponse = undefined;
5382
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
5383
+ const callback = (rawResponse, flatResponse) => {
5384
+ currentRawResponse = rawResponse;
5385
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
5386
+ };
5387
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
5388
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
5389
+ return {
5390
+ flatResponse,
5391
+ rawResponse: {
5392
+ statusCode: currentRawResponse.status,
5393
+ body: currentRawResponse.parsedBody,
5394
+ headers: currentRawResponse.headers.toJSON()
5395
+ }
5396
+ };
5397
+ });
5398
+ const lro = createLroSpec({
5399
+ sendOperationFn,
5400
+ args: { resourceGroupName, resourceName, replicaName, options },
5401
+ spec: restartOperationSpec
5402
+ });
5403
+ const poller = yield coreLro.createHttpPoller(lro, {
5404
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
5405
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
5406
+ resourceLocationConfig: "location"
5407
+ });
5408
+ yield poller.poll();
5409
+ return poller;
5410
+ });
5411
+ }
5412
+ /**
5413
+ * Operation to restart a replica.
5414
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
5415
+ * @param resourceName The name of the resource.
5416
+ * @param replicaName The name of the replica.
5417
+ * @param options The options parameters.
5418
+ */
5419
+ beginRestartAndWait(resourceGroupName, resourceName, replicaName, options) {
5420
+ return tslib.__awaiter(this, void 0, void 0, function* () {
5421
+ const poller = yield this.beginRestart(resourceGroupName, resourceName, replicaName, options);
5422
+ return poller.pollUntilDone();
5423
+ });
5424
+ }
4929
5425
  /**
4930
5426
  * ListNext
4931
- * @param resourceGroupName The name of the resource group that contains the resource. You can obtain
4932
- * this value from the Azure Resource Manager API or the portal.
5427
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
4933
5428
  * @param resourceName The name of the resource.
4934
5429
  * @param nextLink The nextLink from the previous successful call to the List method.
4935
5430
  * @param options The options parameters.
@@ -4941,11 +5436,11 @@ class WebPubSubPrivateLinkResourcesImpl {
4941
5436
  // Operation Specifications
4942
5437
  const serializer$1 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
4943
5438
  const listOperationSpec$1 = {
4944
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/webPubSub/{resourceName}/privateLinkResources",
5439
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/webPubSub/{resourceName}/replicas",
4945
5440
  httpMethod: "GET",
4946
5441
  responses: {
4947
5442
  200: {
4948
- bodyMapper: PrivateLinkResourceList
5443
+ bodyMapper: ReplicaList
4949
5444
  },
4950
5445
  default: {
4951
5446
  bodyMapper: ErrorResponse
@@ -4961,12 +5456,152 @@ const listOperationSpec$1 = {
4961
5456
  headerParameters: [accept],
4962
5457
  serializer: serializer$1
4963
5458
  };
5459
+ const getOperationSpec$1 = {
5460
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/webPubSub/{resourceName}/replicas/{replicaName}",
5461
+ httpMethod: "GET",
5462
+ responses: {
5463
+ 200: {
5464
+ bodyMapper: Replica
5465
+ },
5466
+ default: {
5467
+ bodyMapper: ErrorResponse
5468
+ }
5469
+ },
5470
+ queryParameters: [apiVersion],
5471
+ urlParameters: [
5472
+ $host,
5473
+ subscriptionId,
5474
+ resourceGroupName,
5475
+ resourceName,
5476
+ replicaName
5477
+ ],
5478
+ headerParameters: [accept],
5479
+ serializer: serializer$1
5480
+ };
5481
+ const createOrUpdateOperationSpec$1 = {
5482
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/webPubSub/{resourceName}/replicas/{replicaName}",
5483
+ httpMethod: "PUT",
5484
+ responses: {
5485
+ 200: {
5486
+ bodyMapper: Replica
5487
+ },
5488
+ 201: {
5489
+ bodyMapper: Replica
5490
+ },
5491
+ 202: {
5492
+ bodyMapper: Replica
5493
+ },
5494
+ 204: {
5495
+ bodyMapper: Replica
5496
+ },
5497
+ default: {
5498
+ bodyMapper: ErrorResponse
5499
+ }
5500
+ },
5501
+ requestBody: parameters7,
5502
+ queryParameters: [apiVersion],
5503
+ urlParameters: [
5504
+ $host,
5505
+ subscriptionId,
5506
+ resourceGroupName,
5507
+ resourceName,
5508
+ replicaName
5509
+ ],
5510
+ headerParameters: [accept, contentType],
5511
+ mediaType: "json",
5512
+ serializer: serializer$1
5513
+ };
5514
+ const deleteOperationSpec$1 = {
5515
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/webPubSub/{resourceName}/replicas/{replicaName}",
5516
+ httpMethod: "DELETE",
5517
+ responses: {
5518
+ 200: {},
5519
+ 204: {},
5520
+ default: {
5521
+ bodyMapper: ErrorResponse
5522
+ }
5523
+ },
5524
+ queryParameters: [apiVersion],
5525
+ urlParameters: [
5526
+ $host,
5527
+ subscriptionId,
5528
+ resourceGroupName,
5529
+ resourceName,
5530
+ replicaName
5531
+ ],
5532
+ headerParameters: [accept],
5533
+ serializer: serializer$1
5534
+ };
5535
+ const updateOperationSpec = {
5536
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/webPubSub/{resourceName}/replicas/{replicaName}",
5537
+ httpMethod: "PATCH",
5538
+ responses: {
5539
+ 200: {
5540
+ bodyMapper: Replica
5541
+ },
5542
+ 201: {
5543
+ bodyMapper: Replica
5544
+ },
5545
+ 202: {
5546
+ bodyMapper: Replica
5547
+ },
5548
+ 204: {
5549
+ bodyMapper: Replica
5550
+ },
5551
+ default: {
5552
+ bodyMapper: ErrorResponse
5553
+ }
5554
+ },
5555
+ requestBody: parameters7,
5556
+ queryParameters: [apiVersion],
5557
+ urlParameters: [
5558
+ $host,
5559
+ subscriptionId,
5560
+ resourceGroupName,
5561
+ resourceName,
5562
+ replicaName
5563
+ ],
5564
+ headerParameters: [accept, contentType],
5565
+ mediaType: "json",
5566
+ serializer: serializer$1
5567
+ };
5568
+ const restartOperationSpec = {
5569
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/webPubSub/{resourceName}/replicas/{replicaName}/restart",
5570
+ httpMethod: "POST",
5571
+ responses: {
5572
+ 200: {
5573
+ headersMapper: WebPubSubReplicasRestartHeaders
5574
+ },
5575
+ 201: {
5576
+ headersMapper: WebPubSubReplicasRestartHeaders
5577
+ },
5578
+ 202: {
5579
+ headersMapper: WebPubSubReplicasRestartHeaders
5580
+ },
5581
+ 204: {
5582
+ headersMapper: WebPubSubReplicasRestartHeaders
5583
+ },
5584
+ default: {
5585
+ bodyMapper: ErrorResponse
5586
+ }
5587
+ },
5588
+ queryParameters: [apiVersion],
5589
+ urlParameters: [
5590
+ $host,
5591
+ subscriptionId,
5592
+ resourceGroupName,
5593
+ resourceName,
5594
+ replicaName
5595
+ ],
5596
+ headerParameters: [accept],
5597
+ serializer: serializer$1
5598
+ };
4964
5599
  const listNextOperationSpec$1 = {
4965
5600
  path: "{nextLink}",
4966
5601
  httpMethod: "GET",
4967
5602
  responses: {
4968
5603
  200: {
4969
- bodyMapper: PrivateLinkResourceList
5604
+ bodyMapper: ReplicaList
4970
5605
  },
4971
5606
  default: {
4972
5607
  bodyMapper: ErrorResponse
@@ -5002,8 +5637,7 @@ class WebPubSubSharedPrivateLinkResourcesImpl {
5002
5637
  }
5003
5638
  /**
5004
5639
  * List shared private link resources
5005
- * @param resourceGroupName The name of the resource group that contains the resource. You can obtain
5006
- * this value from the Azure Resource Manager API or the portal.
5640
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
5007
5641
  * @param resourceName The name of the resource.
5008
5642
  * @param options The options parameters.
5009
5643
  */
@@ -5071,8 +5705,7 @@ class WebPubSubSharedPrivateLinkResourcesImpl {
5071
5705
  }
5072
5706
  /**
5073
5707
  * List shared private link resources
5074
- * @param resourceGroupName The name of the resource group that contains the resource. You can obtain
5075
- * this value from the Azure Resource Manager API or the portal.
5708
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
5076
5709
  * @param resourceName The name of the resource.
5077
5710
  * @param options The options parameters.
5078
5711
  */
@@ -5082,8 +5715,7 @@ class WebPubSubSharedPrivateLinkResourcesImpl {
5082
5715
  /**
5083
5716
  * Get the specified shared private link resource
5084
5717
  * @param sharedPrivateLinkResourceName The name of the shared private link resource
5085
- * @param resourceGroupName The name of the resource group that contains the resource. You can obtain
5086
- * this value from the Azure Resource Manager API or the portal.
5718
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
5087
5719
  * @param resourceName The name of the resource.
5088
5720
  * @param options The options parameters.
5089
5721
  */
@@ -5098,8 +5730,7 @@ class WebPubSubSharedPrivateLinkResourcesImpl {
5098
5730
  /**
5099
5731
  * Create or update a shared private link resource
5100
5732
  * @param sharedPrivateLinkResourceName The name of the shared private link resource
5101
- * @param resourceGroupName The name of the resource group that contains the resource. You can obtain
5102
- * this value from the Azure Resource Manager API or the portal.
5733
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
5103
5734
  * @param resourceName The name of the resource.
5104
5735
  * @param parameters The shared private link resource
5105
5736
  * @param options The options parameters.
@@ -5141,7 +5772,8 @@ class WebPubSubSharedPrivateLinkResourcesImpl {
5141
5772
  });
5142
5773
  const poller = yield coreLro.createHttpPoller(lro, {
5143
5774
  restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
5144
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
5775
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
5776
+ resourceLocationConfig: "azure-async-operation"
5145
5777
  });
5146
5778
  yield poller.poll();
5147
5779
  return poller;
@@ -5150,8 +5782,7 @@ class WebPubSubSharedPrivateLinkResourcesImpl {
5150
5782
  /**
5151
5783
  * Create or update a shared private link resource
5152
5784
  * @param sharedPrivateLinkResourceName The name of the shared private link resource
5153
- * @param resourceGroupName The name of the resource group that contains the resource. You can obtain
5154
- * this value from the Azure Resource Manager API or the portal.
5785
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
5155
5786
  * @param resourceName The name of the resource.
5156
5787
  * @param parameters The shared private link resource
5157
5788
  * @param options The options parameters.
@@ -5165,8 +5796,7 @@ class WebPubSubSharedPrivateLinkResourcesImpl {
5165
5796
  /**
5166
5797
  * Delete the specified shared private link resource
5167
5798
  * @param sharedPrivateLinkResourceName The name of the shared private link resource
5168
- * @param resourceGroupName The name of the resource group that contains the resource. You can obtain
5169
- * this value from the Azure Resource Manager API or the portal.
5799
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
5170
5800
  * @param resourceName The name of the resource.
5171
5801
  * @param options The options parameters.
5172
5802
  */
@@ -5216,8 +5846,7 @@ class WebPubSubSharedPrivateLinkResourcesImpl {
5216
5846
  /**
5217
5847
  * Delete the specified shared private link resource
5218
5848
  * @param sharedPrivateLinkResourceName The name of the shared private link resource
5219
- * @param resourceGroupName The name of the resource group that contains the resource. You can obtain
5220
- * this value from the Azure Resource Manager API or the portal.
5849
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
5221
5850
  * @param resourceName The name of the resource.
5222
5851
  * @param options The options parameters.
5223
5852
  */
@@ -5229,8 +5858,7 @@ class WebPubSubSharedPrivateLinkResourcesImpl {
5229
5858
  }
5230
5859
  /**
5231
5860
  * ListNext
5232
- * @param resourceGroupName The name of the resource group that contains the resource. You can obtain
5233
- * this value from the Azure Resource Manager API or the portal.
5861
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
5234
5862
  * @param resourceName The name of the resource.
5235
5863
  * @param nextLink The nextLink from the previous successful call to the List method.
5236
5864
  * @param options The options parameters.
@@ -5304,7 +5932,7 @@ const createOrUpdateOperationSpec = {
5304
5932
  bodyMapper: ErrorResponse
5305
5933
  }
5306
5934
  },
5307
- requestBody: parameters7,
5935
+ requestBody: parameters8,
5308
5936
  queryParameters: [apiVersion],
5309
5937
  urlParameters: [
5310
5938
  $host,
@@ -5373,8 +6001,7 @@ class WebPubSubManagementClient extends coreClient__namespace.ServiceClient {
5373
6001
  /**
5374
6002
  * Initializes a new instance of the WebPubSubManagementClient class.
5375
6003
  * @param credentials Subscription credentials which uniquely identify client subscription.
5376
- * @param subscriptionId Gets subscription Id which uniquely identify the Microsoft Azure subscription.
5377
- * The subscription ID forms part of the URI for every service call.
6004
+ * @param subscriptionId The ID of the target subscription. The value must be an UUID.
5378
6005
  * @param options The parameter options
5379
6006
  */
5380
6007
  constructor(credentials, subscriptionId, options) {
@@ -5393,7 +6020,7 @@ class WebPubSubManagementClient extends coreClient__namespace.ServiceClient {
5393
6020
  requestContentType: "application/json; charset=utf-8",
5394
6021
  credential: credentials
5395
6022
  };
5396
- const packageDetails = `azsdk-js-arm-webpubsub/1.1.1`;
6023
+ const packageDetails = `azsdk-js-arm-webpubsub/2.0.0-beta.1`;
5397
6024
  const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
5398
6025
  ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
5399
6026
  : `${packageDetails}`;
@@ -5426,7 +6053,7 @@ class WebPubSubManagementClient extends coreClient__namespace.ServiceClient {
5426
6053
  this.subscriptionId = subscriptionId;
5427
6054
  // Assigning values to Constant parameters
5428
6055
  this.$host = options.$host || "https://management.azure.com";
5429
- this.apiVersion = options.apiVersion || "2023-02-01";
6056
+ this.apiVersion = options.apiVersion || "2023-06-01-preview";
5430
6057
  this.operations = new OperationsImpl(this);
5431
6058
  this.webPubSub = new WebPubSubImpl(this);
5432
6059
  this.usages = new UsagesImpl(this);
@@ -5435,6 +6062,7 @@ class WebPubSubManagementClient extends coreClient__namespace.ServiceClient {
5435
6062
  this.webPubSubHubs = new WebPubSubHubsImpl(this);
5436
6063
  this.webPubSubPrivateEndpointConnections = new WebPubSubPrivateEndpointConnectionsImpl(this);
5437
6064
  this.webPubSubPrivateLinkResources = new WebPubSubPrivateLinkResourcesImpl(this);
6065
+ this.webPubSubReplicas = new WebPubSubReplicasImpl(this);
5438
6066
  this.webPubSubSharedPrivateLinkResources = new WebPubSubSharedPrivateLinkResourcesImpl(this);
5439
6067
  this.addCustomApiVersionPolicy(options.apiVersion);
5440
6068
  }