@azure/arm-signalr 5.2.1-alpha.20230824.1 → 6.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 (158) hide show
  1. package/CHANGELOG.md +74 -52
  2. package/README.md +1 -1
  3. package/dist/index.js +1064 -436
  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/signalRCheckNameAvailabilitySample.js +1 -1
  9. package/dist-esm/samples-dev/signalRCreateOrUpdateSample.js +1 -1
  10. package/dist-esm/samples-dev/signalRCustomCertificatesCreateOrUpdateSample.js +1 -1
  11. package/dist-esm/samples-dev/signalRCustomCertificatesDeleteSample.js +1 -1
  12. package/dist-esm/samples-dev/signalRCustomCertificatesGetSample.js +1 -1
  13. package/dist-esm/samples-dev/signalRCustomCertificatesListSample.js +1 -1
  14. package/dist-esm/samples-dev/signalRCustomDomainsCreateOrUpdateSample.js +1 -1
  15. package/dist-esm/samples-dev/signalRCustomDomainsDeleteSample.js +1 -1
  16. package/dist-esm/samples-dev/signalRCustomDomainsGetSample.js +1 -1
  17. package/dist-esm/samples-dev/signalRCustomDomainsListSample.js +1 -1
  18. package/dist-esm/samples-dev/signalRDeleteSample.js +1 -1
  19. package/dist-esm/samples-dev/signalRGetSample.js +1 -1
  20. package/dist-esm/samples-dev/signalRListByResourceGroupSample.js +1 -1
  21. package/dist-esm/samples-dev/signalRListBySubscriptionSample.js +1 -1
  22. package/dist-esm/samples-dev/signalRListKeysSample.js +1 -1
  23. package/dist-esm/samples-dev/signalRListReplicaSkusSample.d.ts +2 -0
  24. package/dist-esm/samples-dev/signalRListReplicaSkusSample.d.ts.map +1 -0
  25. package/dist-esm/samples-dev/signalRListReplicaSkusSample.js +40 -0
  26. package/dist-esm/samples-dev/signalRListReplicaSkusSample.js.map +1 -0
  27. package/dist-esm/samples-dev/signalRListSkusSample.js +1 -1
  28. package/dist-esm/samples-dev/signalRPrivateEndpointConnectionsDeleteSample.js +1 -1
  29. package/dist-esm/samples-dev/signalRPrivateEndpointConnectionsGetSample.js +1 -1
  30. package/dist-esm/samples-dev/signalRPrivateEndpointConnectionsListSample.js +1 -1
  31. package/dist-esm/samples-dev/signalRPrivateEndpointConnectionsUpdateSample.js +2 -4
  32. package/dist-esm/samples-dev/signalRPrivateEndpointConnectionsUpdateSample.js.map +1 -1
  33. package/dist-esm/samples-dev/signalRPrivateLinkResourcesListSample.js +1 -1
  34. package/dist-esm/samples-dev/signalRRegenerateKeySample.js +1 -1
  35. package/dist-esm/samples-dev/signalRReplicasCreateOrUpdateSample.d.ts +2 -0
  36. package/dist-esm/samples-dev/signalRReplicasCreateOrUpdateSample.d.ts.map +1 -0
  37. package/dist-esm/samples-dev/signalRReplicasCreateOrUpdateSample.js +45 -0
  38. package/dist-esm/samples-dev/signalRReplicasCreateOrUpdateSample.js.map +1 -0
  39. package/dist-esm/samples-dev/signalRReplicasDeleteSample.d.ts +2 -0
  40. package/dist-esm/samples-dev/signalRReplicasDeleteSample.d.ts.map +1 -0
  41. package/dist-esm/samples-dev/signalRReplicasDeleteSample.js +40 -0
  42. package/dist-esm/samples-dev/signalRReplicasDeleteSample.js.map +1 -0
  43. package/dist-esm/samples-dev/signalRReplicasGetSample.d.ts +2 -0
  44. package/dist-esm/samples-dev/signalRReplicasGetSample.d.ts.map +1 -0
  45. package/dist-esm/samples-dev/signalRReplicasGetSample.js +40 -0
  46. package/dist-esm/samples-dev/signalRReplicasGetSample.js.map +1 -0
  47. package/dist-esm/samples-dev/signalRReplicasListSample.d.ts +2 -0
  48. package/dist-esm/samples-dev/signalRReplicasListSample.d.ts.map +1 -0
  49. package/dist-esm/samples-dev/signalRReplicasListSample.js +60 -0
  50. package/dist-esm/samples-dev/signalRReplicasListSample.js.map +1 -0
  51. package/dist-esm/samples-dev/signalRReplicasRestartSample.d.ts +2 -0
  52. package/dist-esm/samples-dev/signalRReplicasRestartSample.d.ts.map +1 -0
  53. package/dist-esm/samples-dev/signalRReplicasRestartSample.js +40 -0
  54. package/dist-esm/samples-dev/signalRReplicasRestartSample.js.map +1 -0
  55. package/dist-esm/samples-dev/signalRReplicasUpdateSample.d.ts +2 -0
  56. package/dist-esm/samples-dev/signalRReplicasUpdateSample.d.ts.map +1 -0
  57. package/dist-esm/samples-dev/signalRReplicasUpdateSample.js +45 -0
  58. package/dist-esm/samples-dev/signalRReplicasUpdateSample.js.map +1 -0
  59. package/dist-esm/samples-dev/signalRRestartSample.js +1 -1
  60. package/dist-esm/samples-dev/signalRSharedPrivateLinkResourcesCreateOrUpdateSample.js +1 -1
  61. package/dist-esm/samples-dev/signalRSharedPrivateLinkResourcesDeleteSample.js +1 -1
  62. package/dist-esm/samples-dev/signalRSharedPrivateLinkResourcesGetSample.js +1 -1
  63. package/dist-esm/samples-dev/signalRSharedPrivateLinkResourcesListSample.js +1 -1
  64. package/dist-esm/samples-dev/signalRUpdateSample.js +1 -1
  65. package/dist-esm/samples-dev/usagesListSample.js +1 -1
  66. package/dist-esm/src/models/index.d.ts +150 -79
  67. package/dist-esm/src/models/index.d.ts.map +1 -1
  68. package/dist-esm/src/models/index.js +12 -12
  69. package/dist-esm/src/models/index.js.map +1 -1
  70. package/dist-esm/src/models/mappers.d.ts +9 -2
  71. package/dist-esm/src/models/mappers.d.ts.map +1 -1
  72. package/dist-esm/src/models/mappers.js +181 -88
  73. package/dist-esm/src/models/mappers.js.map +1 -1
  74. package/dist-esm/src/models/parameters.d.ts +3 -1
  75. package/dist-esm/src/models/parameters.d.ts.map +1 -1
  76. package/dist-esm/src/models/parameters.js +32 -4
  77. package/dist-esm/src/models/parameters.js.map +1 -1
  78. package/dist-esm/src/operations/index.d.ts +1 -0
  79. package/dist-esm/src/operations/index.d.ts.map +1 -1
  80. package/dist-esm/src/operations/index.js +1 -0
  81. package/dist-esm/src/operations/index.js.map +1 -1
  82. package/dist-esm/src/operations/signalR.d.ts +27 -35
  83. package/dist-esm/src/operations/signalR.d.ts.map +1 -1
  84. package/dist-esm/src/operations/signalR.js +66 -40
  85. package/dist-esm/src/operations/signalR.js.map +1 -1
  86. package/dist-esm/src/operations/signalRCustomCertificates.d.ts +7 -14
  87. package/dist-esm/src/operations/signalRCustomCertificates.d.ts.map +1 -1
  88. package/dist-esm/src/operations/signalRCustomCertificates.js +9 -15
  89. package/dist-esm/src/operations/signalRCustomCertificates.js.map +1 -1
  90. package/dist-esm/src/operations/signalRCustomDomains.d.ts +8 -16
  91. package/dist-esm/src/operations/signalRCustomDomains.d.ts.map +1 -1
  92. package/dist-esm/src/operations/signalRCustomDomains.js +10 -17
  93. package/dist-esm/src/operations/signalRCustomDomains.js.map +1 -1
  94. package/dist-esm/src/operations/signalRPrivateEndpointConnections.d.ts +15 -18
  95. package/dist-esm/src/operations/signalRPrivateEndpointConnections.d.ts.map +1 -1
  96. package/dist-esm/src/operations/signalRPrivateEndpointConnections.js +15 -18
  97. package/dist-esm/src/operations/signalRPrivateEndpointConnections.js.map +1 -1
  98. package/dist-esm/src/operations/signalRPrivateLinkResources.d.ts +3 -6
  99. package/dist-esm/src/operations/signalRPrivateLinkResources.d.ts.map +1 -1
  100. package/dist-esm/src/operations/signalRPrivateLinkResources.js +3 -6
  101. package/dist-esm/src/operations/signalRPrivateLinkResources.js.map +1 -1
  102. package/dist-esm/src/operations/signalRReplicas.d.ts +107 -0
  103. package/dist-esm/src/operations/signalRReplicas.d.ts.map +1 -0
  104. package/dist-esm/src/operations/signalRReplicas.js +507 -0
  105. package/dist-esm/src/operations/signalRReplicas.js.map +1 -0
  106. package/dist-esm/src/operations/signalRSharedPrivateLinkResources.d.ts +8 -16
  107. package/dist-esm/src/operations/signalRSharedPrivateLinkResources.d.ts.map +1 -1
  108. package/dist-esm/src/operations/signalRSharedPrivateLinkResources.js +11 -18
  109. package/dist-esm/src/operations/signalRSharedPrivateLinkResources.js.map +1 -1
  110. package/dist-esm/src/operationsInterfaces/index.d.ts +1 -0
  111. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -1
  112. package/dist-esm/src/operationsInterfaces/index.js +1 -0
  113. package/dist-esm/src/operationsInterfaces/index.js.map +1 -1
  114. package/dist-esm/src/operationsInterfaces/signalR.d.ts +25 -31
  115. package/dist-esm/src/operationsInterfaces/signalR.d.ts.map +1 -1
  116. package/dist-esm/src/operationsInterfaces/signalRCustomCertificates.d.ts +5 -10
  117. package/dist-esm/src/operationsInterfaces/signalRCustomCertificates.d.ts.map +1 -1
  118. package/dist-esm/src/operationsInterfaces/signalRCustomDomains.d.ts +6 -12
  119. package/dist-esm/src/operationsInterfaces/signalRCustomDomains.d.ts.map +1 -1
  120. package/dist-esm/src/operationsInterfaces/signalRPrivateEndpointConnections.d.ts +13 -14
  121. package/dist-esm/src/operationsInterfaces/signalRPrivateEndpointConnections.d.ts.map +1 -1
  122. package/dist-esm/src/operationsInterfaces/signalRPrivateLinkResources.d.ts +1 -2
  123. package/dist-esm/src/operationsInterfaces/signalRPrivateLinkResources.d.ts.map +1 -1
  124. package/dist-esm/src/operationsInterfaces/signalRReplicas.d.ts +82 -0
  125. package/dist-esm/src/operationsInterfaces/signalRReplicas.d.ts.map +1 -0
  126. package/dist-esm/src/operationsInterfaces/signalRReplicas.js +9 -0
  127. package/dist-esm/src/operationsInterfaces/signalRReplicas.js.map +1 -0
  128. package/dist-esm/src/operationsInterfaces/signalRSharedPrivateLinkResources.d.ts +6 -12
  129. package/dist-esm/src/operationsInterfaces/signalRSharedPrivateLinkResources.d.ts.map +1 -1
  130. package/dist-esm/src/signalRManagementClient.d.ts +3 -3
  131. package/dist-esm/src/signalRManagementClient.d.ts.map +1 -1
  132. package/dist-esm/src/signalRManagementClient.js +5 -5
  133. package/dist-esm/src/signalRManagementClient.js.map +1 -1
  134. package/dist-esm/test/signalr_examples.spec.js +1 -1
  135. package/dist-esm/test/signalr_examples.spec.js.map +1 -1
  136. package/package.json +6 -6
  137. package/review/arm-signalr.api.md +124 -8
  138. package/src/models/index.ts +179 -82
  139. package/src/models/mappers.ts +189 -90
  140. package/src/models/parameters.ts +34 -3
  141. package/src/operations/index.ts +1 -0
  142. package/src/operations/signalR.ts +91 -44
  143. package/src/operations/signalRCustomCertificates.ts +9 -15
  144. package/src/operations/signalRCustomDomains.ts +10 -17
  145. package/src/operations/signalRPrivateEndpointConnections.ts +15 -18
  146. package/src/operations/signalRPrivateLinkResources.ts +3 -6
  147. package/src/operations/signalRReplicas.ts +702 -0
  148. package/src/operations/signalRSharedPrivateLinkResources.ts +11 -18
  149. package/src/operationsInterfaces/index.ts +1 -0
  150. package/src/operationsInterfaces/signalR.ts +37 -30
  151. package/src/operationsInterfaces/signalRCustomCertificates.ts +5 -10
  152. package/src/operationsInterfaces/signalRCustomDomains.ts +6 -12
  153. package/src/operationsInterfaces/signalRPrivateEndpointConnections.ts +13 -14
  154. package/src/operationsInterfaces/signalRPrivateLinkResources.ts +1 -2
  155. package/src/operationsInterfaces/signalRReplicas.ts +166 -0
  156. package/src/operationsInterfaces/signalRSharedPrivateLinkResources.ts +6 -12
  157. package/src/signalRManagementClient.ts +7 -4
  158. package/types/arm-signalr.d.ts +267 -119
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) {
@@ -777,50 +777,6 @@ const ResourceSku = {
777
777
  }
778
778
  }
779
779
  };
780
- const SystemData = {
781
- type: {
782
- name: "Composite",
783
- className: "SystemData",
784
- modelProperties: {
785
- createdBy: {
786
- serializedName: "createdBy",
787
- type: {
788
- name: "String"
789
- }
790
- },
791
- createdByType: {
792
- serializedName: "createdByType",
793
- type: {
794
- name: "String"
795
- }
796
- },
797
- createdAt: {
798
- serializedName: "createdAt",
799
- type: {
800
- name: "DateTime"
801
- }
802
- },
803
- lastModifiedBy: {
804
- serializedName: "lastModifiedBy",
805
- type: {
806
- name: "String"
807
- }
808
- },
809
- lastModifiedByType: {
810
- serializedName: "lastModifiedByType",
811
- type: {
812
- name: "String"
813
- }
814
- },
815
- lastModifiedAt: {
816
- serializedName: "lastModifiedAt",
817
- type: {
818
- name: "DateTime"
819
- }
820
- }
821
- }
822
- }
823
- };
824
780
  const PrivateEndpoint = {
825
781
  type: {
826
782
  name: "Composite",
@@ -886,6 +842,57 @@ const Resource = {
886
842
  type: {
887
843
  name: "String"
888
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
+ }
889
896
  }
890
897
  }
891
898
  }
@@ -896,7 +903,7 @@ const SignalRTlsSettings = {
896
903
  className: "SignalRTlsSettings",
897
904
  modelProperties: {
898
905
  clientCertEnabled: {
899
- defaultValue: true,
906
+ defaultValue: false,
900
907
  serializedName: "clientCertEnabled",
901
908
  type: {
902
909
  name: "Boolean"
@@ -1494,10 +1501,10 @@ const RegenerateKeyParameters = {
1494
1501
  }
1495
1502
  }
1496
1503
  };
1497
- const SharedPrivateLinkResourceList = {
1504
+ const ReplicaList = {
1498
1505
  type: {
1499
1506
  name: "Composite",
1500
- className: "SharedPrivateLinkResourceList",
1507
+ className: "ReplicaList",
1501
1508
  modelProperties: {
1502
1509
  value: {
1503
1510
  serializedName: "value",
@@ -1506,7 +1513,7 @@ const SharedPrivateLinkResourceList = {
1506
1513
  element: {
1507
1514
  type: {
1508
1515
  name: "Composite",
1509
- className: "SharedPrivateLinkResource"
1516
+ className: "Replica"
1510
1517
  }
1511
1518
  }
1512
1519
  }
@@ -1625,6 +1632,32 @@ const SkuCapacity = {
1625
1632
  }
1626
1633
  }
1627
1634
  };
1635
+ const SharedPrivateLinkResourceList = {
1636
+ type: {
1637
+ name: "Composite",
1638
+ className: "SharedPrivateLinkResourceList",
1639
+ modelProperties: {
1640
+ value: {
1641
+ serializedName: "value",
1642
+ type: {
1643
+ name: "Sequence",
1644
+ element: {
1645
+ type: {
1646
+ name: "Composite",
1647
+ className: "SharedPrivateLinkResource"
1648
+ }
1649
+ }
1650
+ }
1651
+ },
1652
+ nextLink: {
1653
+ serializedName: "nextLink",
1654
+ type: {
1655
+ name: "String"
1656
+ }
1657
+ }
1658
+ }
1659
+ }
1660
+ };
1628
1661
  const ProxyResource = {
1629
1662
  type: {
1630
1663
  name: "Composite",
@@ -1636,17 +1669,18 @@ const TrackedResource = {
1636
1669
  type: {
1637
1670
  name: "Composite",
1638
1671
  className: "TrackedResource",
1639
- modelProperties: Object.assign(Object.assign({}, Resource.type.modelProperties), { location: {
1640
- serializedName: "location",
1641
- type: {
1642
- name: "String"
1643
- }
1644
- }, tags: {
1672
+ modelProperties: Object.assign(Object.assign({}, Resource.type.modelProperties), { tags: {
1645
1673
  serializedName: "tags",
1646
1674
  type: {
1647
1675
  name: "Dictionary",
1648
1676
  value: { type: { name: "String" } }
1649
1677
  }
1678
+ }, location: {
1679
+ serializedName: "location",
1680
+ required: true,
1681
+ type: {
1682
+ name: "String"
1683
+ }
1650
1684
  } })
1651
1685
  }
1652
1686
  };
@@ -1667,13 +1701,7 @@ const PrivateEndpointConnection = {
1667
1701
  type: {
1668
1702
  name: "Composite",
1669
1703
  className: "PrivateEndpointConnection",
1670
- modelProperties: Object.assign(Object.assign({}, ProxyResource.type.modelProperties), { systemData: {
1671
- serializedName: "systemData",
1672
- type: {
1673
- name: "Composite",
1674
- className: "SystemData"
1675
- }
1676
- }, provisioningState: {
1704
+ modelProperties: Object.assign(Object.assign({}, ProxyResource.type.modelProperties), { provisioningState: {
1677
1705
  serializedName: "properties.provisioningState",
1678
1706
  readOnly: true,
1679
1707
  type: {
@@ -1709,13 +1737,7 @@ const SharedPrivateLinkResource = {
1709
1737
  type: {
1710
1738
  name: "Composite",
1711
1739
  className: "SharedPrivateLinkResource",
1712
- modelProperties: Object.assign(Object.assign({}, ProxyResource.type.modelProperties), { systemData: {
1713
- serializedName: "systemData",
1714
- type: {
1715
- name: "Composite",
1716
- className: "SystemData"
1717
- }
1718
- }, groupId: {
1740
+ modelProperties: Object.assign(Object.assign({}, ProxyResource.type.modelProperties), { groupId: {
1719
1741
  serializedName: "properties.groupId",
1720
1742
  type: {
1721
1743
  name: "String"
@@ -1749,13 +1771,7 @@ const CustomCertificate = {
1749
1771
  type: {
1750
1772
  name: "Composite",
1751
1773
  className: "CustomCertificate",
1752
- modelProperties: Object.assign(Object.assign({}, ProxyResource.type.modelProperties), { systemData: {
1753
- serializedName: "systemData",
1754
- type: {
1755
- name: "Composite",
1756
- className: "SystemData"
1757
- }
1758
- }, provisioningState: {
1774
+ modelProperties: Object.assign(Object.assign({}, ProxyResource.type.modelProperties), { provisioningState: {
1759
1775
  serializedName: "properties.provisioningState",
1760
1776
  readOnly: true,
1761
1777
  type: {
@@ -1785,13 +1801,7 @@ const CustomDomain = {
1785
1801
  type: {
1786
1802
  name: "Composite",
1787
1803
  className: "CustomDomain",
1788
- modelProperties: Object.assign(Object.assign({}, ProxyResource.type.modelProperties), { systemData: {
1789
- serializedName: "systemData",
1790
- type: {
1791
- name: "Composite",
1792
- className: "SystemData"
1793
- }
1794
- }, provisioningState: {
1804
+ modelProperties: Object.assign(Object.assign({}, ProxyResource.type.modelProperties), { provisioningState: {
1795
1805
  serializedName: "properties.provisioningState",
1796
1806
  readOnly: true,
1797
1807
  type: {
@@ -1876,12 +1886,6 @@ const SignalRResource = {
1876
1886
  name: "Composite",
1877
1887
  className: "ManagedIdentity"
1878
1888
  }
1879
- }, systemData: {
1880
- serializedName: "systemData",
1881
- type: {
1882
- name: "Composite",
1883
- className: "SystemData"
1884
- }
1885
1889
  }, provisioningState: {
1886
1890
  serializedName: "properties.provisioningState",
1887
1891
  readOnly: true,
@@ -2022,77 +2026,173 @@ const SignalRResource = {
2022
2026
  } })
2023
2027
  }
2024
2028
  };
2025
-
2026
- var Mappers = /*#__PURE__*/Object.freeze({
2027
- __proto__: null,
2028
- OperationList: OperationList,
2029
- Operation: Operation,
2030
- OperationDisplay: OperationDisplay,
2031
- OperationProperties: OperationProperties,
2032
- ServiceSpecification: ServiceSpecification,
2033
- MetricSpecification: MetricSpecification,
2034
- Dimension: Dimension,
2035
- LogSpecification: LogSpecification,
2036
- ErrorResponse: ErrorResponse,
2037
- ErrorDetail: ErrorDetail,
2038
- ErrorAdditionalInfo: ErrorAdditionalInfo,
2039
- NameAvailabilityParameters: NameAvailabilityParameters,
2040
- NameAvailability: NameAvailability,
2041
- SignalRUsageList: SignalRUsageList,
2042
- SignalRUsage: SignalRUsage,
2043
- SignalRUsageName: SignalRUsageName,
2044
- SignalRResourceList: SignalRResourceList,
2045
- ResourceSku: ResourceSku,
2046
- SystemData: SystemData,
2047
- PrivateEndpoint: PrivateEndpoint,
2048
- PrivateLinkServiceConnectionState: PrivateLinkServiceConnectionState,
2049
- Resource: Resource,
2050
- SignalRTlsSettings: SignalRTlsSettings,
2051
- SignalRFeature: SignalRFeature,
2052
- LiveTraceConfiguration: LiveTraceConfiguration,
2053
- LiveTraceCategory: LiveTraceCategory,
2054
- ResourceLogConfiguration: ResourceLogConfiguration,
2055
- ResourceLogCategory: ResourceLogCategory,
2056
- SignalRCorsSettings: SignalRCorsSettings,
2057
- ServerlessSettings: ServerlessSettings,
2058
- ServerlessUpstreamSettings: ServerlessUpstreamSettings,
2059
- UpstreamTemplate: UpstreamTemplate,
2060
- UpstreamAuthSettings: UpstreamAuthSettings,
2061
- ManagedIdentitySettings: ManagedIdentitySettings,
2062
- SignalRNetworkACLs: SignalRNetworkACLs,
2063
- NetworkACL: NetworkACL,
2064
- ManagedIdentity: ManagedIdentity,
2065
- UserAssignedIdentityProperty: UserAssignedIdentityProperty,
2066
- CustomCertificateList: CustomCertificateList,
2067
- CustomDomainList: CustomDomainList,
2068
- ResourceReference: ResourceReference,
2069
- SignalRKeys: SignalRKeys,
2070
- PrivateEndpointConnectionList: PrivateEndpointConnectionList,
2071
- PrivateLinkResourceList: PrivateLinkResourceList,
2072
- ShareablePrivateLinkResourceType: ShareablePrivateLinkResourceType,
2073
- ShareablePrivateLinkResourceProperties: ShareablePrivateLinkResourceProperties,
2074
- RegenerateKeyParameters: RegenerateKeyParameters,
2075
- SharedPrivateLinkResourceList: SharedPrivateLinkResourceList,
2076
- SkuList: SkuList,
2077
- Sku: Sku,
2078
- SkuCapacity: SkuCapacity,
2079
- ProxyResource: ProxyResource,
2080
- TrackedResource: TrackedResource,
2081
- PrivateEndpointACL: PrivateEndpointACL,
2082
- PrivateEndpointConnection: PrivateEndpointConnection,
2083
- SharedPrivateLinkResource: SharedPrivateLinkResource,
2084
- CustomCertificate: CustomCertificate,
2085
- CustomDomain: CustomDomain,
2086
- PrivateLinkResource: PrivateLinkResource,
2087
- SignalRResource: SignalRResource
2088
- });
2089
-
2090
- /*
2091
- * Copyright (c) Microsoft Corporation.
2092
- * Licensed under the MIT License.
2093
- *
2094
- * Code generated by Microsoft (R) AutoRest Code Generator.
2095
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
2029
+ const Replica = {
2030
+ type: {
2031
+ name: "Composite",
2032
+ className: "Replica",
2033
+ modelProperties: Object.assign(Object.assign({}, TrackedResource.type.modelProperties), { sku: {
2034
+ serializedName: "sku",
2035
+ type: {
2036
+ name: "Composite",
2037
+ className: "ResourceSku"
2038
+ }
2039
+ }, provisioningState: {
2040
+ serializedName: "properties.provisioningState",
2041
+ readOnly: true,
2042
+ type: {
2043
+ name: "String"
2044
+ }
2045
+ } })
2046
+ }
2047
+ };
2048
+ const SignalRUpdateHeaders = {
2049
+ type: {
2050
+ name: "Composite",
2051
+ className: "SignalRUpdateHeaders",
2052
+ modelProperties: {
2053
+ location: {
2054
+ serializedName: "location",
2055
+ type: {
2056
+ name: "String"
2057
+ }
2058
+ }
2059
+ }
2060
+ }
2061
+ };
2062
+ const SignalRRegenerateKeyHeaders = {
2063
+ type: {
2064
+ name: "Composite",
2065
+ className: "SignalRRegenerateKeyHeaders",
2066
+ modelProperties: {
2067
+ location: {
2068
+ serializedName: "location",
2069
+ type: {
2070
+ name: "String"
2071
+ }
2072
+ }
2073
+ }
2074
+ }
2075
+ };
2076
+ const SignalRRestartHeaders = {
2077
+ type: {
2078
+ name: "Composite",
2079
+ className: "SignalRRestartHeaders",
2080
+ modelProperties: {
2081
+ location: {
2082
+ serializedName: "location",
2083
+ type: {
2084
+ name: "String"
2085
+ }
2086
+ }
2087
+ }
2088
+ }
2089
+ };
2090
+ const SignalRReplicasUpdateHeaders = {
2091
+ type: {
2092
+ name: "Composite",
2093
+ className: "SignalRReplicasUpdateHeaders",
2094
+ modelProperties: {
2095
+ location: {
2096
+ serializedName: "location",
2097
+ type: {
2098
+ name: "String"
2099
+ }
2100
+ }
2101
+ }
2102
+ }
2103
+ };
2104
+ const SignalRReplicasRestartHeaders = {
2105
+ type: {
2106
+ name: "Composite",
2107
+ className: "SignalRReplicasRestartHeaders",
2108
+ modelProperties: {
2109
+ location: {
2110
+ serializedName: "location",
2111
+ type: {
2112
+ name: "String"
2113
+ }
2114
+ }
2115
+ }
2116
+ }
2117
+ };
2118
+
2119
+ var Mappers = /*#__PURE__*/Object.freeze({
2120
+ __proto__: null,
2121
+ OperationList: OperationList,
2122
+ Operation: Operation,
2123
+ OperationDisplay: OperationDisplay,
2124
+ OperationProperties: OperationProperties,
2125
+ ServiceSpecification: ServiceSpecification,
2126
+ MetricSpecification: MetricSpecification,
2127
+ Dimension: Dimension,
2128
+ LogSpecification: LogSpecification,
2129
+ ErrorResponse: ErrorResponse,
2130
+ ErrorDetail: ErrorDetail,
2131
+ ErrorAdditionalInfo: ErrorAdditionalInfo,
2132
+ NameAvailabilityParameters: NameAvailabilityParameters,
2133
+ NameAvailability: NameAvailability,
2134
+ SignalRUsageList: SignalRUsageList,
2135
+ SignalRUsage: SignalRUsage,
2136
+ SignalRUsageName: SignalRUsageName,
2137
+ SignalRResourceList: SignalRResourceList,
2138
+ ResourceSku: ResourceSku,
2139
+ PrivateEndpoint: PrivateEndpoint,
2140
+ PrivateLinkServiceConnectionState: PrivateLinkServiceConnectionState,
2141
+ Resource: Resource,
2142
+ SystemData: SystemData,
2143
+ SignalRTlsSettings: SignalRTlsSettings,
2144
+ SignalRFeature: SignalRFeature,
2145
+ LiveTraceConfiguration: LiveTraceConfiguration,
2146
+ LiveTraceCategory: LiveTraceCategory,
2147
+ ResourceLogConfiguration: ResourceLogConfiguration,
2148
+ ResourceLogCategory: ResourceLogCategory,
2149
+ SignalRCorsSettings: SignalRCorsSettings,
2150
+ ServerlessSettings: ServerlessSettings,
2151
+ ServerlessUpstreamSettings: ServerlessUpstreamSettings,
2152
+ UpstreamTemplate: UpstreamTemplate,
2153
+ UpstreamAuthSettings: UpstreamAuthSettings,
2154
+ ManagedIdentitySettings: ManagedIdentitySettings,
2155
+ SignalRNetworkACLs: SignalRNetworkACLs,
2156
+ NetworkACL: NetworkACL,
2157
+ ManagedIdentity: ManagedIdentity,
2158
+ UserAssignedIdentityProperty: UserAssignedIdentityProperty,
2159
+ CustomCertificateList: CustomCertificateList,
2160
+ CustomDomainList: CustomDomainList,
2161
+ ResourceReference: ResourceReference,
2162
+ SignalRKeys: SignalRKeys,
2163
+ PrivateEndpointConnectionList: PrivateEndpointConnectionList,
2164
+ PrivateLinkResourceList: PrivateLinkResourceList,
2165
+ ShareablePrivateLinkResourceType: ShareablePrivateLinkResourceType,
2166
+ ShareablePrivateLinkResourceProperties: ShareablePrivateLinkResourceProperties,
2167
+ RegenerateKeyParameters: RegenerateKeyParameters,
2168
+ ReplicaList: ReplicaList,
2169
+ SkuList: SkuList,
2170
+ Sku: Sku,
2171
+ SkuCapacity: SkuCapacity,
2172
+ SharedPrivateLinkResourceList: SharedPrivateLinkResourceList,
2173
+ ProxyResource: ProxyResource,
2174
+ TrackedResource: TrackedResource,
2175
+ PrivateEndpointACL: PrivateEndpointACL,
2176
+ PrivateEndpointConnection: PrivateEndpointConnection,
2177
+ SharedPrivateLinkResource: SharedPrivateLinkResource,
2178
+ CustomCertificate: CustomCertificate,
2179
+ CustomDomain: CustomDomain,
2180
+ PrivateLinkResource: PrivateLinkResource,
2181
+ SignalRResource: SignalRResource,
2182
+ Replica: Replica,
2183
+ SignalRUpdateHeaders: SignalRUpdateHeaders,
2184
+ SignalRRegenerateKeyHeaders: SignalRRegenerateKeyHeaders,
2185
+ SignalRRestartHeaders: SignalRRestartHeaders,
2186
+ SignalRReplicasUpdateHeaders: SignalRReplicasUpdateHeaders,
2187
+ SignalRReplicasRestartHeaders: SignalRReplicasRestartHeaders
2188
+ });
2189
+
2190
+ /*
2191
+ * Copyright (c) Microsoft Corporation.
2192
+ * Licensed under the MIT License.
2193
+ *
2194
+ * Code generated by Microsoft (R) AutoRest Code Generator.
2195
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
2096
2196
  */
2097
2197
  const accept = {
2098
2198
  parameterPath: "accept",
@@ -2119,7 +2219,7 @@ const $host = {
2119
2219
  const apiVersion = {
2120
2220
  parameterPath: "apiVersion",
2121
2221
  mapper: {
2122
- defaultValue: "2023-02-01",
2222
+ defaultValue: "2023-06-01-preview",
2123
2223
  isConstant: true,
2124
2224
  serializedName: "api-version",
2125
2225
  type: {
@@ -2169,13 +2269,17 @@ const subscriptionId = {
2169
2269
  serializedName: "subscriptionId",
2170
2270
  required: true,
2171
2271
  type: {
2172
- name: "String"
2272
+ name: "Uuid"
2173
2273
  }
2174
2274
  }
2175
2275
  };
2176
2276
  const resourceGroupName = {
2177
2277
  parameterPath: "resourceGroupName",
2178
2278
  mapper: {
2279
+ constraints: {
2280
+ MaxLength: 90,
2281
+ MinLength: 1
2282
+ },
2179
2283
  serializedName: "resourceGroupName",
2180
2284
  required: true,
2181
2285
  type: {
@@ -2186,6 +2290,11 @@ const resourceGroupName = {
2186
2290
  const resourceName = {
2187
2291
  parameterPath: "resourceName",
2188
2292
  mapper: {
2293
+ constraints: {
2294
+ Pattern: new RegExp("^[a-zA-Z][a-zA-Z0-9-]{1,61}[a-zA-Z0-9]$"),
2295
+ MaxLength: 63,
2296
+ MinLength: 3
2297
+ },
2189
2298
  serializedName: "resourceName",
2190
2299
  required: true,
2191
2300
  type: {
@@ -2201,6 +2310,21 @@ const parameters2 = {
2201
2310
  parameterPath: "parameters",
2202
2311
  mapper: RegenerateKeyParameters
2203
2312
  };
2313
+ const replicaName = {
2314
+ parameterPath: "replicaName",
2315
+ mapper: {
2316
+ constraints: {
2317
+ Pattern: new RegExp("^[a-zA-Z][a-zA-Z0-9-]{1,61}[a-zA-Z0-9]$"),
2318
+ MaxLength: 63,
2319
+ MinLength: 3
2320
+ },
2321
+ serializedName: "replicaName",
2322
+ required: true,
2323
+ type: {
2324
+ name: "String"
2325
+ }
2326
+ }
2327
+ };
2204
2328
  const certificateName = {
2205
2329
  parameterPath: "certificateName",
2206
2330
  mapper: {
@@ -2243,6 +2367,10 @@ const parameters5 = {
2243
2367
  parameterPath: "parameters",
2244
2368
  mapper: PrivateEndpointConnection
2245
2369
  };
2370
+ const parameters6 = {
2371
+ parameterPath: "parameters",
2372
+ mapper: Replica
2373
+ };
2246
2374
  const sharedPrivateLinkResourceName = {
2247
2375
  parameterPath: "sharedPrivateLinkResourceName",
2248
2376
  mapper: {
@@ -2253,7 +2381,7 @@ const sharedPrivateLinkResourceName = {
2253
2381
  }
2254
2382
  }
2255
2383
  };
2256
- const parameters6 = {
2384
+ const parameters7 = {
2257
2385
  parameterPath: "parameters",
2258
2386
  mapper: SharedPrivateLinkResource
2259
2387
  };
@@ -2346,7 +2474,7 @@ class OperationsImpl {
2346
2474
  * @param options The options parameters.
2347
2475
  */
2348
2476
  _list(options) {
2349
- return this.client.sendOperationRequest({ options }, listOperationSpec$6);
2477
+ return this.client.sendOperationRequest({ options }, listOperationSpec$7);
2350
2478
  }
2351
2479
  /**
2352
2480
  * ListNext
@@ -2354,12 +2482,12 @@ class OperationsImpl {
2354
2482
  * @param options The options parameters.
2355
2483
  */
2356
2484
  _listNext(nextLink, options) {
2357
- return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec$6);
2485
+ return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec$7);
2358
2486
  }
2359
2487
  }
2360
2488
  // Operation Specifications
2361
- const serializer$7 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
2362
- const listOperationSpec$6 = {
2489
+ const serializer$8 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
2490
+ const listOperationSpec$7 = {
2363
2491
  path: "/providers/Microsoft.SignalRService/operations",
2364
2492
  httpMethod: "GET",
2365
2493
  responses: {
@@ -2373,9 +2501,9 @@ const listOperationSpec$6 = {
2373
2501
  queryParameters: [apiVersion],
2374
2502
  urlParameters: [$host],
2375
2503
  headerParameters: [accept],
2376
- serializer: serializer$7
2504
+ serializer: serializer$8
2377
2505
  };
2378
- const listNextOperationSpec$6 = {
2506
+ const listNextOperationSpec$7 = {
2379
2507
  path: "{nextLink}",
2380
2508
  httpMethod: "GET",
2381
2509
  responses: {
@@ -2388,7 +2516,7 @@ const listNextOperationSpec$6 = {
2388
2516
  },
2389
2517
  urlParameters: [$host, nextLink],
2390
2518
  headerParameters: [accept],
2391
- serializer: serializer$7
2519
+ serializer: serializer$8
2392
2520
  };
2393
2521
 
2394
2522
  /*
@@ -2496,8 +2624,7 @@ class SignalRImpl {
2496
2624
  }
2497
2625
  /**
2498
2626
  * Handles requests to list all resources in a resource group.
2499
- * @param resourceGroupName The name of the resource group that contains the resource. You can obtain
2500
- * this value from the Azure Resource Manager API or the portal.
2627
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
2501
2628
  * @param options The options parameters.
2502
2629
  */
2503
2630
  listByResourceGroup(resourceGroupName, options) {
@@ -2580,8 +2707,7 @@ class SignalRImpl {
2580
2707
  }
2581
2708
  /**
2582
2709
  * Handles requests to list all resources in a resource group.
2583
- * @param resourceGroupName The name of the resource group that contains the resource. You can obtain
2584
- * this value from the Azure Resource Manager API or the portal.
2710
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
2585
2711
  * @param options The options parameters.
2586
2712
  */
2587
2713
  _listByResourceGroup(resourceGroupName, options) {
@@ -2589,18 +2715,16 @@ class SignalRImpl {
2589
2715
  }
2590
2716
  /**
2591
2717
  * Get the resource and its properties.
2592
- * @param resourceGroupName The name of the resource group that contains the resource. You can obtain
2593
- * this value from the Azure Resource Manager API or the portal.
2718
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
2594
2719
  * @param resourceName The name of the resource.
2595
2720
  * @param options The options parameters.
2596
2721
  */
2597
2722
  get(resourceGroupName, resourceName, options) {
2598
- return this.client.sendOperationRequest({ resourceGroupName, resourceName, options }, getOperationSpec$4);
2723
+ return this.client.sendOperationRequest({ resourceGroupName, resourceName, options }, getOperationSpec$5);
2599
2724
  }
2600
2725
  /**
2601
2726
  * Create or update a resource.
2602
- * @param resourceGroupName The name of the resource group that contains the resource. You can obtain
2603
- * this value from the Azure Resource Manager API or the portal.
2727
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
2604
2728
  * @param resourceName The name of the resource.
2605
2729
  * @param parameters Parameters for the create or update operation
2606
2730
  * @param options The options parameters.
@@ -2632,11 +2756,12 @@ class SignalRImpl {
2632
2756
  const lro = createLroSpec({
2633
2757
  sendOperationFn,
2634
2758
  args: { resourceGroupName, resourceName, parameters, options },
2635
- spec: createOrUpdateOperationSpec$3
2759
+ spec: createOrUpdateOperationSpec$4
2636
2760
  });
2637
2761
  const poller = yield coreLro.createHttpPoller(lro, {
2638
2762
  restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
2639
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
2763
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
2764
+ resourceLocationConfig: "azure-async-operation"
2640
2765
  });
2641
2766
  yield poller.poll();
2642
2767
  return poller;
@@ -2644,8 +2769,7 @@ class SignalRImpl {
2644
2769
  }
2645
2770
  /**
2646
2771
  * Create or update a resource.
2647
- * @param resourceGroupName The name of the resource group that contains the resource. You can obtain
2648
- * this value from the Azure Resource Manager API or the portal.
2772
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
2649
2773
  * @param resourceName The name of the resource.
2650
2774
  * @param parameters Parameters for the create or update operation
2651
2775
  * @param options The options parameters.
@@ -2658,8 +2782,7 @@ class SignalRImpl {
2658
2782
  }
2659
2783
  /**
2660
2784
  * Operation to delete a resource.
2661
- * @param resourceGroupName The name of the resource group that contains the resource. You can obtain
2662
- * this value from the Azure Resource Manager API or the portal.
2785
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
2663
2786
  * @param resourceName The name of the resource.
2664
2787
  * @param options The options parameters.
2665
2788
  */
@@ -2690,7 +2813,7 @@ class SignalRImpl {
2690
2813
  const lro = createLroSpec({
2691
2814
  sendOperationFn,
2692
2815
  args: { resourceGroupName, resourceName, options },
2693
- spec: deleteOperationSpec$4
2816
+ spec: deleteOperationSpec$5
2694
2817
  });
2695
2818
  const poller = yield coreLro.createHttpPoller(lro, {
2696
2819
  restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
@@ -2703,8 +2826,7 @@ class SignalRImpl {
2703
2826
  }
2704
2827
  /**
2705
2828
  * Operation to delete a resource.
2706
- * @param resourceGroupName The name of the resource group that contains the resource. You can obtain
2707
- * this value from the Azure Resource Manager API or the portal.
2829
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
2708
2830
  * @param resourceName The name of the resource.
2709
2831
  * @param options The options parameters.
2710
2832
  */
@@ -2716,8 +2838,7 @@ class SignalRImpl {
2716
2838
  }
2717
2839
  /**
2718
2840
  * Operation to update an exiting resource.
2719
- * @param resourceGroupName The name of the resource group that contains the resource. You can obtain
2720
- * this value from the Azure Resource Manager API or the portal.
2841
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
2721
2842
  * @param resourceName The name of the resource.
2722
2843
  * @param parameters Parameters for the update operation
2723
2844
  * @param options The options parameters.
@@ -2749,11 +2870,12 @@ class SignalRImpl {
2749
2870
  const lro = createLroSpec({
2750
2871
  sendOperationFn,
2751
2872
  args: { resourceGroupName, resourceName, parameters, options },
2752
- spec: updateOperationSpec$1
2873
+ spec: updateOperationSpec$2
2753
2874
  });
2754
2875
  const poller = yield coreLro.createHttpPoller(lro, {
2755
2876
  restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
2756
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
2877
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
2878
+ resourceLocationConfig: "location"
2757
2879
  });
2758
2880
  yield poller.poll();
2759
2881
  return poller;
@@ -2761,8 +2883,7 @@ class SignalRImpl {
2761
2883
  }
2762
2884
  /**
2763
2885
  * Operation to update an exiting resource.
2764
- * @param resourceGroupName The name of the resource group that contains the resource. You can obtain
2765
- * this value from the Azure Resource Manager API or the portal.
2886
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
2766
2887
  * @param resourceName The name of the resource.
2767
2888
  * @param parameters Parameters for the update operation
2768
2889
  * @param options The options parameters.
@@ -2775,8 +2896,7 @@ class SignalRImpl {
2775
2896
  }
2776
2897
  /**
2777
2898
  * Get the access keys of the resource.
2778
- * @param resourceGroupName The name of the resource group that contains the resource. You can obtain
2779
- * this value from the Azure Resource Manager API or the portal.
2899
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
2780
2900
  * @param resourceName The name of the resource.
2781
2901
  * @param options The options parameters.
2782
2902
  */
@@ -2786,8 +2906,7 @@ class SignalRImpl {
2786
2906
  /**
2787
2907
  * Regenerate the access key for the resource. PrimaryKey and SecondaryKey cannot be regenerated at the
2788
2908
  * same time.
2789
- * @param resourceGroupName The name of the resource group that contains the resource. You can obtain
2790
- * this value from the Azure Resource Manager API or the portal.
2909
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
2791
2910
  * @param resourceName The name of the resource.
2792
2911
  * @param parameters Parameter that describes the Regenerate Key Operation.
2793
2912
  * @param options The options parameters.
@@ -2824,7 +2943,7 @@ class SignalRImpl {
2824
2943
  const poller = yield coreLro.createHttpPoller(lro, {
2825
2944
  restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
2826
2945
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
2827
- resourceLocationConfig: "azure-async-operation"
2946
+ resourceLocationConfig: "location"
2828
2947
  });
2829
2948
  yield poller.poll();
2830
2949
  return poller;
@@ -2833,8 +2952,7 @@ class SignalRImpl {
2833
2952
  /**
2834
2953
  * Regenerate the access key for the resource. PrimaryKey and SecondaryKey cannot be regenerated at the
2835
2954
  * same time.
2836
- * @param resourceGroupName The name of the resource group that contains the resource. You can obtain
2837
- * this value from the Azure Resource Manager API or the portal.
2955
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
2838
2956
  * @param resourceName The name of the resource.
2839
2957
  * @param parameters Parameter that describes the Regenerate Key Operation.
2840
2958
  * @param options The options parameters.
@@ -2845,10 +2963,19 @@ class SignalRImpl {
2845
2963
  return poller.pollUntilDone();
2846
2964
  });
2847
2965
  }
2966
+ /**
2967
+ * List all available skus of the replica resource.
2968
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
2969
+ * @param resourceName The name of the resource.
2970
+ * @param replicaName The name of the replica.
2971
+ * @param options The options parameters.
2972
+ */
2973
+ listReplicaSkus(resourceGroupName, resourceName, replicaName, options) {
2974
+ return this.client.sendOperationRequest({ resourceGroupName, resourceName, replicaName, options }, listReplicaSkusOperationSpec);
2975
+ }
2848
2976
  /**
2849
2977
  * Operation to restart a resource.
2850
- * @param resourceGroupName The name of the resource group that contains the resource. You can obtain
2851
- * 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.
2852
2979
  * @param resourceName The name of the resource.
2853
2980
  * @param options The options parameters.
2854
2981
  */
@@ -2879,12 +3006,12 @@ class SignalRImpl {
2879
3006
  const lro = createLroSpec({
2880
3007
  sendOperationFn,
2881
3008
  args: { resourceGroupName, resourceName, options },
2882
- spec: restartOperationSpec
3009
+ spec: restartOperationSpec$1
2883
3010
  });
2884
3011
  const poller = yield coreLro.createHttpPoller(lro, {
2885
3012
  restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
2886
3013
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
2887
- resourceLocationConfig: "azure-async-operation"
3014
+ resourceLocationConfig: "location"
2888
3015
  });
2889
3016
  yield poller.poll();
2890
3017
  return poller;
@@ -2892,8 +3019,7 @@ class SignalRImpl {
2892
3019
  }
2893
3020
  /**
2894
3021
  * Operation to restart a resource.
2895
- * @param resourceGroupName The name of the resource group that contains the resource. You can obtain
2896
- * this value from the Azure Resource Manager API or the portal.
3022
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
2897
3023
  * @param resourceName The name of the resource.
2898
3024
  * @param options The options parameters.
2899
3025
  */
@@ -2905,8 +3031,7 @@ class SignalRImpl {
2905
3031
  }
2906
3032
  /**
2907
3033
  * List all available skus of the resource.
2908
- * @param resourceGroupName The name of the resource group that contains the resource. You can obtain
2909
- * this value from the Azure Resource Manager API or the portal.
3034
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
2910
3035
  * @param resourceName The name of the resource.
2911
3036
  * @param options The options parameters.
2912
3037
  */
@@ -2923,8 +3048,7 @@ class SignalRImpl {
2923
3048
  }
2924
3049
  /**
2925
3050
  * ListByResourceGroupNext
2926
- * @param resourceGroupName The name of the resource group that contains the resource. You can obtain
2927
- * this value from the Azure Resource Manager API or the portal.
3051
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
2928
3052
  * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
2929
3053
  * @param options The options parameters.
2930
3054
  */
@@ -2933,7 +3057,7 @@ class SignalRImpl {
2933
3057
  }
2934
3058
  }
2935
3059
  // Operation Specifications
2936
- const serializer$6 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
3060
+ const serializer$7 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
2937
3061
  const checkNameAvailabilityOperationSpec = {
2938
3062
  path: "/subscriptions/{subscriptionId}/providers/Microsoft.SignalRService/locations/{location}/checkNameAvailability",
2939
3063
  httpMethod: "POST",
@@ -2954,7 +3078,7 @@ const checkNameAvailabilityOperationSpec = {
2954
3078
  ],
2955
3079
  headerParameters: [accept, contentType],
2956
3080
  mediaType: "json",
2957
- serializer: serializer$6
3081
+ serializer: serializer$7
2958
3082
  };
2959
3083
  const listBySubscriptionOperationSpec = {
2960
3084
  path: "/subscriptions/{subscriptionId}/providers/Microsoft.SignalRService/signalR",
@@ -2970,7 +3094,7 @@ const listBySubscriptionOperationSpec = {
2970
3094
  queryParameters: [apiVersion],
2971
3095
  urlParameters: [$host, subscriptionId],
2972
3096
  headerParameters: [accept],
2973
- serializer: serializer$6
3097
+ serializer: serializer$7
2974
3098
  };
2975
3099
  const listByResourceGroupOperationSpec = {
2976
3100
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/signalR",
@@ -2990,9 +3114,9 @@ const listByResourceGroupOperationSpec = {
2990
3114
  resourceGroupName
2991
3115
  ],
2992
3116
  headerParameters: [accept],
2993
- serializer: serializer$6
3117
+ serializer: serializer$7
2994
3118
  };
2995
- const getOperationSpec$4 = {
3119
+ const getOperationSpec$5 = {
2996
3120
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/signalR/{resourceName}",
2997
3121
  httpMethod: "GET",
2998
3122
  responses: {
@@ -3011,9 +3135,9 @@ const getOperationSpec$4 = {
3011
3135
  resourceName
3012
3136
  ],
3013
3137
  headerParameters: [accept],
3014
- serializer: serializer$6
3138
+ serializer: serializer$7
3015
3139
  };
3016
- const createOrUpdateOperationSpec$3 = {
3140
+ const createOrUpdateOperationSpec$4 = {
3017
3141
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/signalR/{resourceName}",
3018
3142
  httpMethod: "PUT",
3019
3143
  responses: {
@@ -3043,9 +3167,9 @@ const createOrUpdateOperationSpec$3 = {
3043
3167
  ],
3044
3168
  headerParameters: [accept, contentType],
3045
3169
  mediaType: "json",
3046
- serializer: serializer$6
3170
+ serializer: serializer$7
3047
3171
  };
3048
- const deleteOperationSpec$4 = {
3172
+ const deleteOperationSpec$5 = {
3049
3173
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/signalR/{resourceName}",
3050
3174
  httpMethod: "DELETE",
3051
3175
  responses: {
@@ -3065,9 +3189,9 @@ const deleteOperationSpec$4 = {
3065
3189
  resourceName
3066
3190
  ],
3067
3191
  headerParameters: [accept],
3068
- serializer: serializer$6
3192
+ serializer: serializer$7
3069
3193
  };
3070
- const updateOperationSpec$1 = {
3194
+ const updateOperationSpec$2 = {
3071
3195
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/signalR/{resourceName}",
3072
3196
  httpMethod: "PATCH",
3073
3197
  responses: {
@@ -3097,7 +3221,7 @@ const updateOperationSpec$1 = {
3097
3221
  ],
3098
3222
  headerParameters: [accept, contentType],
3099
3223
  mediaType: "json",
3100
- serializer: serializer$6
3224
+ serializer: serializer$7
3101
3225
  };
3102
3226
  const listKeysOperationSpec = {
3103
3227
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/signalR/{resourceName}/listKeys",
@@ -3118,7 +3242,7 @@ const listKeysOperationSpec = {
3118
3242
  resourceName
3119
3243
  ],
3120
3244
  headerParameters: [accept],
3121
- serializer: serializer$6
3245
+ serializer: serializer$7
3122
3246
  };
3123
3247
  const regenerateKeyOperationSpec = {
3124
3248
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/signalR/{resourceName}/regenerateKey",
@@ -3150,16 +3274,46 @@ const regenerateKeyOperationSpec = {
3150
3274
  ],
3151
3275
  headerParameters: [accept, contentType],
3152
3276
  mediaType: "json",
3153
- serializer: serializer$6
3277
+ serializer: serializer$7
3154
3278
  };
3155
- const restartOperationSpec = {
3279
+ const listReplicaSkusOperationSpec = {
3280
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/signalR/{resourceName}/replicas/{replicaName}/skus",
3281
+ httpMethod: "GET",
3282
+ responses: {
3283
+ 200: {
3284
+ bodyMapper: SkuList
3285
+ },
3286
+ default: {
3287
+ bodyMapper: ErrorResponse
3288
+ }
3289
+ },
3290
+ queryParameters: [apiVersion],
3291
+ urlParameters: [
3292
+ $host,
3293
+ subscriptionId,
3294
+ resourceGroupName,
3295
+ resourceName,
3296
+ replicaName
3297
+ ],
3298
+ headerParameters: [accept],
3299
+ serializer: serializer$7
3300
+ };
3301
+ const restartOperationSpec$1 = {
3156
3302
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/signalR/{resourceName}/restart",
3157
3303
  httpMethod: "POST",
3158
3304
  responses: {
3159
- 200: {},
3160
- 201: {},
3161
- 202: {},
3162
- 204: {},
3305
+ 200: {
3306
+ headersMapper: SignalRRestartHeaders
3307
+ },
3308
+ 201: {
3309
+ headersMapper: SignalRRestartHeaders
3310
+ },
3311
+ 202: {
3312
+ headersMapper: SignalRRestartHeaders
3313
+ },
3314
+ 204: {
3315
+ headersMapper: SignalRRestartHeaders
3316
+ },
3163
3317
  default: {
3164
3318
  bodyMapper: ErrorResponse
3165
3319
  }
@@ -3172,7 +3326,7 @@ const restartOperationSpec = {
3172
3326
  resourceName
3173
3327
  ],
3174
3328
  headerParameters: [accept],
3175
- serializer: serializer$6
3329
+ serializer: serializer$7
3176
3330
  };
3177
3331
  const listSkusOperationSpec = {
3178
3332
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/signalR/{resourceName}/skus",
@@ -3193,7 +3347,7 @@ const listSkusOperationSpec = {
3193
3347
  resourceName
3194
3348
  ],
3195
3349
  headerParameters: [accept],
3196
- serializer: serializer$6
3350
+ serializer: serializer$7
3197
3351
  };
3198
3352
  const listBySubscriptionNextOperationSpec = {
3199
3353
  path: "{nextLink}",
@@ -3212,7 +3366,7 @@ const listBySubscriptionNextOperationSpec = {
3212
3366
  subscriptionId
3213
3367
  ],
3214
3368
  headerParameters: [accept],
3215
- serializer: serializer$6
3369
+ serializer: serializer$7
3216
3370
  };
3217
3371
  const listByResourceGroupNextOperationSpec = {
3218
3372
  path: "{nextLink}",
@@ -3232,7 +3386,7 @@ const listByResourceGroupNextOperationSpec = {
3232
3386
  resourceGroupName
3233
3387
  ],
3234
3388
  headerParameters: [accept],
3235
- serializer: serializer$6
3389
+ serializer: serializer$7
3236
3390
  };
3237
3391
 
3238
3392
  /*
@@ -3325,7 +3479,7 @@ class UsagesImpl {
3325
3479
  * @param options The options parameters.
3326
3480
  */
3327
3481
  _list(location, options) {
3328
- return this.client.sendOperationRequest({ location, options }, listOperationSpec$5);
3482
+ return this.client.sendOperationRequest({ location, options }, listOperationSpec$6);
3329
3483
  }
3330
3484
  /**
3331
3485
  * ListNext
@@ -3334,12 +3488,12 @@ class UsagesImpl {
3334
3488
  * @param options The options parameters.
3335
3489
  */
3336
3490
  _listNext(location, nextLink, options) {
3337
- return this.client.sendOperationRequest({ location, nextLink, options }, listNextOperationSpec$5);
3491
+ return this.client.sendOperationRequest({ location, nextLink, options }, listNextOperationSpec$6);
3338
3492
  }
3339
3493
  }
3340
3494
  // Operation Specifications
3341
- const serializer$5 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
3342
- const listOperationSpec$5 = {
3495
+ const serializer$6 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
3496
+ const listOperationSpec$6 = {
3343
3497
  path: "/subscriptions/{subscriptionId}/providers/Microsoft.SignalRService/locations/{location}/usages",
3344
3498
  httpMethod: "GET",
3345
3499
  responses: {
@@ -3357,9 +3511,9 @@ const listOperationSpec$5 = {
3357
3511
  subscriptionId
3358
3512
  ],
3359
3513
  headerParameters: [accept],
3360
- serializer: serializer$5
3514
+ serializer: serializer$6
3361
3515
  };
3362
- const listNextOperationSpec$5 = {
3516
+ const listNextOperationSpec$6 = {
3363
3517
  path: "{nextLink}",
3364
3518
  httpMethod: "GET",
3365
3519
  responses: {
@@ -3377,7 +3531,7 @@ const listNextOperationSpec$5 = {
3377
3531
  subscriptionId
3378
3532
  ],
3379
3533
  headerParameters: [accept],
3380
- serializer: serializer$5
3534
+ serializer: serializer$6
3381
3535
  };
3382
3536
 
3383
3537
  /*
@@ -3399,8 +3553,7 @@ class SignalRCustomCertificatesImpl {
3399
3553
  }
3400
3554
  /**
3401
3555
  * List all custom certificates.
3402
- * @param resourceGroupName The name of the resource group that contains the resource. You can obtain
3403
- * this value from the Azure Resource Manager API or the portal.
3556
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
3404
3557
  * @param resourceName The name of the resource.
3405
3558
  * @param options The options parameters.
3406
3559
  */
@@ -3468,29 +3621,26 @@ class SignalRCustomCertificatesImpl {
3468
3621
  }
3469
3622
  /**
3470
3623
  * List all custom certificates.
3471
- * @param resourceGroupName The name of the resource group that contains the resource. You can obtain
3472
- * this value from the Azure Resource Manager API or the portal.
3624
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
3473
3625
  * @param resourceName The name of the resource.
3474
3626
  * @param options The options parameters.
3475
3627
  */
3476
3628
  _list(resourceGroupName, resourceName, options) {
3477
- return this.client.sendOperationRequest({ resourceGroupName, resourceName, options }, listOperationSpec$4);
3629
+ return this.client.sendOperationRequest({ resourceGroupName, resourceName, options }, listOperationSpec$5);
3478
3630
  }
3479
3631
  /**
3480
3632
  * Get a custom certificate.
3481
- * @param resourceGroupName The name of the resource group that contains the resource. You can obtain
3482
- * this value from the Azure Resource Manager API or the portal.
3633
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
3483
3634
  * @param resourceName The name of the resource.
3484
3635
  * @param certificateName Custom certificate name
3485
3636
  * @param options The options parameters.
3486
3637
  */
3487
3638
  get(resourceGroupName, resourceName, certificateName, options) {
3488
- return this.client.sendOperationRequest({ resourceGroupName, resourceName, certificateName, options }, getOperationSpec$3);
3639
+ return this.client.sendOperationRequest({ resourceGroupName, resourceName, certificateName, options }, getOperationSpec$4);
3489
3640
  }
3490
3641
  /**
3491
3642
  * Create or update a custom certificate.
3492
- * @param resourceGroupName The name of the resource group that contains the resource. You can obtain
3493
- * this value from the Azure Resource Manager API or the portal.
3643
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
3494
3644
  * @param resourceName The name of the resource.
3495
3645
  * @param certificateName Custom certificate name
3496
3646
  * @param parameters A custom certificate.
@@ -3529,11 +3679,12 @@ class SignalRCustomCertificatesImpl {
3529
3679
  parameters,
3530
3680
  options
3531
3681
  },
3532
- spec: createOrUpdateOperationSpec$2
3682
+ spec: createOrUpdateOperationSpec$3
3533
3683
  });
3534
3684
  const poller = yield coreLro.createHttpPoller(lro, {
3535
3685
  restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
3536
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
3686
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
3687
+ resourceLocationConfig: "azure-async-operation"
3537
3688
  });
3538
3689
  yield poller.poll();
3539
3690
  return poller;
@@ -3541,8 +3692,7 @@ class SignalRCustomCertificatesImpl {
3541
3692
  }
3542
3693
  /**
3543
3694
  * Create or update a custom certificate.
3544
- * @param resourceGroupName The name of the resource group that contains the resource. You can obtain
3545
- * this value from the Azure Resource Manager API or the portal.
3695
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
3546
3696
  * @param resourceName The name of the resource.
3547
3697
  * @param certificateName Custom certificate name
3548
3698
  * @param parameters A custom certificate.
@@ -3556,30 +3706,28 @@ class SignalRCustomCertificatesImpl {
3556
3706
  }
3557
3707
  /**
3558
3708
  * Delete a custom certificate.
3559
- * @param resourceGroupName The name of the resource group that contains the resource. You can obtain
3560
- * this value from the Azure Resource Manager API or the portal.
3709
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
3561
3710
  * @param resourceName The name of the resource.
3562
3711
  * @param certificateName Custom certificate name
3563
3712
  * @param options The options parameters.
3564
3713
  */
3565
3714
  delete(resourceGroupName, resourceName, certificateName, options) {
3566
- return this.client.sendOperationRequest({ resourceGroupName, resourceName, certificateName, options }, deleteOperationSpec$3);
3715
+ return this.client.sendOperationRequest({ resourceGroupName, resourceName, certificateName, options }, deleteOperationSpec$4);
3567
3716
  }
3568
3717
  /**
3569
3718
  * ListNext
3570
- * @param resourceGroupName The name of the resource group that contains the resource. You can obtain
3571
- * this value from the Azure Resource Manager API or the portal.
3719
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
3572
3720
  * @param resourceName The name of the resource.
3573
3721
  * @param nextLink The nextLink from the previous successful call to the List method.
3574
3722
  * @param options The options parameters.
3575
3723
  */
3576
3724
  _listNext(resourceGroupName, resourceName, nextLink, options) {
3577
- return this.client.sendOperationRequest({ resourceGroupName, resourceName, nextLink, options }, listNextOperationSpec$4);
3725
+ return this.client.sendOperationRequest({ resourceGroupName, resourceName, nextLink, options }, listNextOperationSpec$5);
3578
3726
  }
3579
3727
  }
3580
3728
  // Operation Specifications
3581
- const serializer$4 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
3582
- const listOperationSpec$4 = {
3729
+ const serializer$5 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
3730
+ const listOperationSpec$5 = {
3583
3731
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/signalR/{resourceName}/customCertificates",
3584
3732
  httpMethod: "GET",
3585
3733
  responses: {
@@ -3598,9 +3746,9 @@ const listOperationSpec$4 = {
3598
3746
  resourceName
3599
3747
  ],
3600
3748
  headerParameters: [accept],
3601
- serializer: serializer$4
3749
+ serializer: serializer$5
3602
3750
  };
3603
- const getOperationSpec$3 = {
3751
+ const getOperationSpec$4 = {
3604
3752
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/signalR/{resourceName}/customCertificates/{certificateName}",
3605
3753
  httpMethod: "GET",
3606
3754
  responses: {
@@ -3620,9 +3768,9 @@ const getOperationSpec$3 = {
3620
3768
  certificateName
3621
3769
  ],
3622
3770
  headerParameters: [accept],
3623
- serializer: serializer$4
3771
+ serializer: serializer$5
3624
3772
  };
3625
- const createOrUpdateOperationSpec$2 = {
3773
+ const createOrUpdateOperationSpec$3 = {
3626
3774
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/signalR/{resourceName}/customCertificates/{certificateName}",
3627
3775
  httpMethod: "PUT",
3628
3776
  responses: {
@@ -3653,9 +3801,9 @@ const createOrUpdateOperationSpec$2 = {
3653
3801
  ],
3654
3802
  headerParameters: [accept, contentType],
3655
3803
  mediaType: "json",
3656
- serializer: serializer$4
3804
+ serializer: serializer$5
3657
3805
  };
3658
- const deleteOperationSpec$3 = {
3806
+ const deleteOperationSpec$4 = {
3659
3807
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/signalR/{resourceName}/customCertificates/{certificateName}",
3660
3808
  httpMethod: "DELETE",
3661
3809
  responses: {
@@ -3674,9 +3822,9 @@ const deleteOperationSpec$3 = {
3674
3822
  certificateName
3675
3823
  ],
3676
3824
  headerParameters: [accept],
3677
- serializer: serializer$4
3825
+ serializer: serializer$5
3678
3826
  };
3679
- const listNextOperationSpec$4 = {
3827
+ const listNextOperationSpec$5 = {
3680
3828
  path: "{nextLink}",
3681
3829
  httpMethod: "GET",
3682
3830
  responses: {
@@ -3695,7 +3843,7 @@ const listNextOperationSpec$4 = {
3695
3843
  resourceName
3696
3844
  ],
3697
3845
  headerParameters: [accept],
3698
- serializer: serializer$4
3846
+ serializer: serializer$5
3699
3847
  };
3700
3848
 
3701
3849
  /*
@@ -3717,8 +3865,7 @@ class SignalRCustomDomainsImpl {
3717
3865
  }
3718
3866
  /**
3719
3867
  * List all custom domains.
3720
- * @param resourceGroupName The name of the resource group that contains the resource. You can obtain
3721
- * this value from the Azure Resource Manager API or the portal.
3868
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
3722
3869
  * @param resourceName The name of the resource.
3723
3870
  * @param options The options parameters.
3724
3871
  */
@@ -3786,29 +3933,26 @@ class SignalRCustomDomainsImpl {
3786
3933
  }
3787
3934
  /**
3788
3935
  * List all custom domains.
3789
- * @param resourceGroupName The name of the resource group that contains the resource. You can obtain
3790
- * this value from the Azure Resource Manager API or the portal.
3936
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
3791
3937
  * @param resourceName The name of the resource.
3792
3938
  * @param options The options parameters.
3793
3939
  */
3794
3940
  _list(resourceGroupName, resourceName, options) {
3795
- return this.client.sendOperationRequest({ resourceGroupName, resourceName, options }, listOperationSpec$3);
3941
+ return this.client.sendOperationRequest({ resourceGroupName, resourceName, options }, listOperationSpec$4);
3796
3942
  }
3797
3943
  /**
3798
3944
  * Get a custom domain.
3799
- * @param resourceGroupName The name of the resource group that contains the resource. You can obtain
3800
- * this value from the Azure Resource Manager API or the portal.
3945
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
3801
3946
  * @param resourceName The name of the resource.
3802
3947
  * @param name Custom domain name.
3803
3948
  * @param options The options parameters.
3804
3949
  */
3805
3950
  get(resourceGroupName, resourceName, name, options) {
3806
- return this.client.sendOperationRequest({ resourceGroupName, resourceName, name, options }, getOperationSpec$2);
3951
+ return this.client.sendOperationRequest({ resourceGroupName, resourceName, name, options }, getOperationSpec$3);
3807
3952
  }
3808
3953
  /**
3809
3954
  * Create or update a custom domain.
3810
- * @param resourceGroupName The name of the resource group that contains the resource. You can obtain
3811
- * this value from the Azure Resource Manager API or the portal.
3955
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
3812
3956
  * @param resourceName The name of the resource.
3813
3957
  * @param name Custom domain name.
3814
3958
  * @param parameters A custom domain
@@ -3841,11 +3985,12 @@ class SignalRCustomDomainsImpl {
3841
3985
  const lro = createLroSpec({
3842
3986
  sendOperationFn,
3843
3987
  args: { resourceGroupName, resourceName, name, parameters, options },
3844
- spec: createOrUpdateOperationSpec$1
3988
+ spec: createOrUpdateOperationSpec$2
3845
3989
  });
3846
3990
  const poller = yield coreLro.createHttpPoller(lro, {
3847
3991
  restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
3848
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
3992
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
3993
+ resourceLocationConfig: "azure-async-operation"
3849
3994
  });
3850
3995
  yield poller.poll();
3851
3996
  return poller;
@@ -3853,8 +3998,7 @@ class SignalRCustomDomainsImpl {
3853
3998
  }
3854
3999
  /**
3855
4000
  * Create or update a custom domain.
3856
- * @param resourceGroupName The name of the resource group that contains the resource. You can obtain
3857
- * this value from the Azure Resource Manager API or the portal.
4001
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
3858
4002
  * @param resourceName The name of the resource.
3859
4003
  * @param name Custom domain name.
3860
4004
  * @param parameters A custom domain
@@ -3868,8 +4012,7 @@ class SignalRCustomDomainsImpl {
3868
4012
  }
3869
4013
  /**
3870
4014
  * Delete a custom domain.
3871
- * @param resourceGroupName The name of the resource group that contains the resource. You can obtain
3872
- * this value from the Azure Resource Manager API or the portal.
4015
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
3873
4016
  * @param resourceName The name of the resource.
3874
4017
  * @param name Custom domain name.
3875
4018
  * @param options The options parameters.
@@ -3901,7 +4044,7 @@ class SignalRCustomDomainsImpl {
3901
4044
  const lro = createLroSpec({
3902
4045
  sendOperationFn,
3903
4046
  args: { resourceGroupName, resourceName, name, options },
3904
- spec: deleteOperationSpec$2
4047
+ spec: deleteOperationSpec$3
3905
4048
  });
3906
4049
  const poller = yield coreLro.createHttpPoller(lro, {
3907
4050
  restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
@@ -3914,8 +4057,7 @@ class SignalRCustomDomainsImpl {
3914
4057
  }
3915
4058
  /**
3916
4059
  * Delete a custom domain.
3917
- * @param resourceGroupName The name of the resource group that contains the resource. You can obtain
3918
- * this value from the Azure Resource Manager API or the portal.
4060
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
3919
4061
  * @param resourceName The name of the resource.
3920
4062
  * @param name Custom domain name.
3921
4063
  * @param options The options parameters.
@@ -3928,19 +4070,18 @@ class SignalRCustomDomainsImpl {
3928
4070
  }
3929
4071
  /**
3930
4072
  * ListNext
3931
- * @param resourceGroupName The name of the resource group that contains the resource. You can obtain
3932
- * this value from the Azure Resource Manager API or the portal.
4073
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
3933
4074
  * @param resourceName The name of the resource.
3934
4075
  * @param nextLink The nextLink from the previous successful call to the List method.
3935
4076
  * @param options The options parameters.
3936
4077
  */
3937
4078
  _listNext(resourceGroupName, resourceName, nextLink, options) {
3938
- return this.client.sendOperationRequest({ resourceGroupName, resourceName, nextLink, options }, listNextOperationSpec$3);
4079
+ return this.client.sendOperationRequest({ resourceGroupName, resourceName, nextLink, options }, listNextOperationSpec$4);
3939
4080
  }
3940
4081
  }
3941
4082
  // Operation Specifications
3942
- const serializer$3 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
3943
- const listOperationSpec$3 = {
4083
+ const serializer$4 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
4084
+ const listOperationSpec$4 = {
3944
4085
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/signalR/{resourceName}/customDomains",
3945
4086
  httpMethod: "GET",
3946
4087
  responses: {
@@ -3959,9 +4100,9 @@ const listOperationSpec$3 = {
3959
4100
  resourceName
3960
4101
  ],
3961
4102
  headerParameters: [accept],
3962
- serializer: serializer$3
4103
+ serializer: serializer$4
3963
4104
  };
3964
- const getOperationSpec$2 = {
4105
+ const getOperationSpec$3 = {
3965
4106
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/signalR/{resourceName}/customDomains/{name}",
3966
4107
  httpMethod: "GET",
3967
4108
  responses: {
@@ -3981,9 +4122,9 @@ const getOperationSpec$2 = {
3981
4122
  name
3982
4123
  ],
3983
4124
  headerParameters: [accept],
3984
- serializer: serializer$3
4125
+ serializer: serializer$4
3985
4126
  };
3986
- const createOrUpdateOperationSpec$1 = {
4127
+ const createOrUpdateOperationSpec$2 = {
3987
4128
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/signalR/{resourceName}/customDomains/{name}",
3988
4129
  httpMethod: "PUT",
3989
4130
  responses: {
@@ -4014,9 +4155,9 @@ const createOrUpdateOperationSpec$1 = {
4014
4155
  ],
4015
4156
  headerParameters: [accept, contentType],
4016
4157
  mediaType: "json",
4017
- serializer: serializer$3
4158
+ serializer: serializer$4
4018
4159
  };
4019
- const deleteOperationSpec$2 = {
4160
+ const deleteOperationSpec$3 = {
4020
4161
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/signalR/{resourceName}/customDomains/{name}",
4021
4162
  httpMethod: "DELETE",
4022
4163
  responses: {
@@ -4037,9 +4178,9 @@ const deleteOperationSpec$2 = {
4037
4178
  name
4038
4179
  ],
4039
4180
  headerParameters: [accept],
4040
- serializer: serializer$3
4181
+ serializer: serializer$4
4041
4182
  };
4042
- const listNextOperationSpec$3 = {
4183
+ const listNextOperationSpec$4 = {
4043
4184
  path: "{nextLink}",
4044
4185
  httpMethod: "GET",
4045
4186
  responses: {
@@ -4058,7 +4199,7 @@ const listNextOperationSpec$3 = {
4058
4199
  resourceName
4059
4200
  ],
4060
4201
  headerParameters: [accept],
4061
- serializer: serializer$3
4202
+ serializer: serializer$4
4062
4203
  };
4063
4204
 
4064
4205
  /*
@@ -4080,8 +4221,7 @@ class SignalRPrivateEndpointConnectionsImpl {
4080
4221
  }
4081
4222
  /**
4082
4223
  * List private endpoint connections
4083
- * @param resourceGroupName The name of the resource group that contains the resource. You can obtain
4084
- * this value from the Azure Resource Manager API or the portal.
4224
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
4085
4225
  * @param resourceName The name of the resource.
4086
4226
  * @param options The options parameters.
4087
4227
  */
@@ -4149,19 +4289,18 @@ class SignalRPrivateEndpointConnectionsImpl {
4149
4289
  }
4150
4290
  /**
4151
4291
  * List private endpoint connections
4152
- * @param resourceGroupName The name of the resource group that contains the resource. You can obtain
4153
- * this value from the Azure Resource Manager API or the portal.
4292
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
4154
4293
  * @param resourceName The name of the resource.
4155
4294
  * @param options The options parameters.
4156
4295
  */
4157
4296
  _list(resourceGroupName, resourceName, options) {
4158
- return this.client.sendOperationRequest({ resourceGroupName, resourceName, options }, listOperationSpec$2);
4297
+ return this.client.sendOperationRequest({ resourceGroupName, resourceName, options }, listOperationSpec$3);
4159
4298
  }
4160
4299
  /**
4161
4300
  * Get the specified private endpoint connection
4162
- * @param privateEndpointConnectionName The name of the private endpoint connection
4163
- * @param resourceGroupName The name of the resource group that contains the resource. You can obtain
4164
- * this value from the Azure Resource Manager API or the portal.
4301
+ * @param privateEndpointConnectionName The name of the private endpoint connection associated with the
4302
+ * Azure resource.
4303
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
4165
4304
  * @param resourceName The name of the resource.
4166
4305
  * @param options The options parameters.
4167
4306
  */
@@ -4171,13 +4310,13 @@ class SignalRPrivateEndpointConnectionsImpl {
4171
4310
  resourceGroupName,
4172
4311
  resourceName,
4173
4312
  options
4174
- }, getOperationSpec$1);
4313
+ }, getOperationSpec$2);
4175
4314
  }
4176
4315
  /**
4177
4316
  * Update the state of specified private endpoint connection
4178
- * @param privateEndpointConnectionName The name of the private endpoint connection
4179
- * @param resourceGroupName The name of the resource group that contains the resource. You can obtain
4180
- * this value from the Azure Resource Manager API or the portal.
4317
+ * @param privateEndpointConnectionName The name of the private endpoint connection associated with the
4318
+ * Azure resource.
4319
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
4181
4320
  * @param resourceName The name of the resource.
4182
4321
  * @param parameters The resource of private endpoint and its properties
4183
4322
  * @param options The options parameters.
@@ -4189,13 +4328,13 @@ class SignalRPrivateEndpointConnectionsImpl {
4189
4328
  resourceName,
4190
4329
  parameters,
4191
4330
  options
4192
- }, updateOperationSpec);
4331
+ }, updateOperationSpec$1);
4193
4332
  }
4194
4333
  /**
4195
4334
  * Delete the specified private endpoint connection
4196
- * @param privateEndpointConnectionName The name of the private endpoint connection
4197
- * @param resourceGroupName The name of the resource group that contains the resource. You can obtain
4198
- * this value from the Azure Resource Manager API or the portal.
4335
+ * @param privateEndpointConnectionName The name of the private endpoint connection associated with the
4336
+ * Azure resource.
4337
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
4199
4338
  * @param resourceName The name of the resource.
4200
4339
  * @param options The options parameters.
4201
4340
  */
@@ -4231,7 +4370,7 @@ class SignalRPrivateEndpointConnectionsImpl {
4231
4370
  resourceName,
4232
4371
  options
4233
4372
  },
4234
- spec: deleteOperationSpec$1
4373
+ spec: deleteOperationSpec$2
4235
4374
  });
4236
4375
  const poller = yield coreLro.createHttpPoller(lro, {
4237
4376
  restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
@@ -4244,9 +4383,9 @@ class SignalRPrivateEndpointConnectionsImpl {
4244
4383
  }
4245
4384
  /**
4246
4385
  * Delete the specified private endpoint connection
4247
- * @param privateEndpointConnectionName The name of the private endpoint connection
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.
4386
+ * @param privateEndpointConnectionName The name of the private endpoint connection associated with the
4387
+ * Azure resource.
4388
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
4250
4389
  * @param resourceName The name of the resource.
4251
4390
  * @param options The options parameters.
4252
4391
  */
@@ -4258,19 +4397,18 @@ class SignalRPrivateEndpointConnectionsImpl {
4258
4397
  }
4259
4398
  /**
4260
4399
  * ListNext
4261
- * @param resourceGroupName The name of the resource group that contains the resource. You can obtain
4262
- * this value from the Azure Resource Manager API or the portal.
4400
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
4263
4401
  * @param resourceName The name of the resource.
4264
4402
  * @param nextLink The nextLink from the previous successful call to the List method.
4265
4403
  * @param options The options parameters.
4266
4404
  */
4267
4405
  _listNext(resourceGroupName, resourceName, nextLink, options) {
4268
- return this.client.sendOperationRequest({ resourceGroupName, resourceName, nextLink, options }, listNextOperationSpec$2);
4406
+ return this.client.sendOperationRequest({ resourceGroupName, resourceName, nextLink, options }, listNextOperationSpec$3);
4269
4407
  }
4270
4408
  }
4271
4409
  // Operation Specifications
4272
- const serializer$2 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
4273
- const listOperationSpec$2 = {
4410
+ const serializer$3 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
4411
+ const listOperationSpec$3 = {
4274
4412
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/signalR/{resourceName}/privateEndpointConnections",
4275
4413
  httpMethod: "GET",
4276
4414
  responses: {
@@ -4289,9 +4427,9 @@ const listOperationSpec$2 = {
4289
4427
  resourceName
4290
4428
  ],
4291
4429
  headerParameters: [accept],
4292
- serializer: serializer$2
4430
+ serializer: serializer$3
4293
4431
  };
4294
- const getOperationSpec$1 = {
4432
+ const getOperationSpec$2 = {
4295
4433
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/signalR/{resourceName}/privateEndpointConnections/{privateEndpointConnectionName}",
4296
4434
  httpMethod: "GET",
4297
4435
  responses: {
@@ -4311,9 +4449,9 @@ const getOperationSpec$1 = {
4311
4449
  privateEndpointConnectionName
4312
4450
  ],
4313
4451
  headerParameters: [accept],
4314
- serializer: serializer$2
4452
+ serializer: serializer$3
4315
4453
  };
4316
- const updateOperationSpec = {
4454
+ const updateOperationSpec$1 = {
4317
4455
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/signalR/{resourceName}/privateEndpointConnections/{privateEndpointConnectionName}",
4318
4456
  httpMethod: "PUT",
4319
4457
  responses: {
@@ -4335,9 +4473,9 @@ const updateOperationSpec = {
4335
4473
  ],
4336
4474
  headerParameters: [accept, contentType],
4337
4475
  mediaType: "json",
4338
- serializer: serializer$2
4476
+ serializer: serializer$3
4339
4477
  };
4340
- const deleteOperationSpec$1 = {
4478
+ const deleteOperationSpec$2 = {
4341
4479
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/signalR/{resourceName}/privateEndpointConnections/{privateEndpointConnectionName}",
4342
4480
  httpMethod: "DELETE",
4343
4481
  responses: {
@@ -4358,9 +4496,9 @@ const deleteOperationSpec$1 = {
4358
4496
  privateEndpointConnectionName
4359
4497
  ],
4360
4498
  headerParameters: [accept],
4361
- serializer: serializer$2
4499
+ serializer: serializer$3
4362
4500
  };
4363
- const listNextOperationSpec$2 = {
4501
+ const listNextOperationSpec$3 = {
4364
4502
  path: "{nextLink}",
4365
4503
  httpMethod: "GET",
4366
4504
  responses: {
@@ -4379,7 +4517,7 @@ const listNextOperationSpec$2 = {
4379
4517
  resourceName
4380
4518
  ],
4381
4519
  headerParameters: [accept],
4382
- serializer: serializer$2
4520
+ serializer: serializer$3
4383
4521
  };
4384
4522
 
4385
4523
  /*
@@ -4401,8 +4539,7 @@ class SignalRPrivateLinkResourcesImpl {
4401
4539
  }
4402
4540
  /**
4403
4541
  * Get the private link resources that need to be created for a resource.
4404
- * @param resourceGroupName The name of the resource group that contains the resource. You can obtain
4405
- * this value from the Azure Resource Manager API or the portal.
4542
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
4406
4543
  * @param resourceName The name of the resource.
4407
4544
  * @param options The options parameters.
4408
4545
  */
@@ -4470,29 +4607,27 @@ class SignalRPrivateLinkResourcesImpl {
4470
4607
  }
4471
4608
  /**
4472
4609
  * Get the private link resources that need to be created for a resource.
4473
- * @param resourceGroupName The name of the resource group that contains the resource. You can obtain
4474
- * this value from the Azure Resource Manager API or the portal.
4610
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
4475
4611
  * @param resourceName The name of the resource.
4476
4612
  * @param options The options parameters.
4477
4613
  */
4478
4614
  _list(resourceGroupName, resourceName, options) {
4479
- return this.client.sendOperationRequest({ resourceGroupName, resourceName, options }, listOperationSpec$1);
4615
+ return this.client.sendOperationRequest({ resourceGroupName, resourceName, options }, listOperationSpec$2);
4480
4616
  }
4481
4617
  /**
4482
4618
  * ListNext
4483
- * @param resourceGroupName The name of the resource group that contains the resource. You can obtain
4484
- * this value from the Azure Resource Manager API or the portal.
4619
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
4485
4620
  * @param resourceName The name of the resource.
4486
4621
  * @param nextLink The nextLink from the previous successful call to the List method.
4487
4622
  * @param options The options parameters.
4488
4623
  */
4489
4624
  _listNext(resourceGroupName, resourceName, nextLink, options) {
4490
- return this.client.sendOperationRequest({ resourceGroupName, resourceName, nextLink, options }, listNextOperationSpec$1);
4625
+ return this.client.sendOperationRequest({ resourceGroupName, resourceName, nextLink, options }, listNextOperationSpec$2);
4491
4626
  }
4492
4627
  }
4493
4628
  // Operation Specifications
4494
- const serializer$1 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
4495
- const listOperationSpec$1 = {
4629
+ const serializer$2 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
4630
+ const listOperationSpec$2 = {
4496
4631
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/signalR/{resourceName}/privateLinkResources",
4497
4632
  httpMethod: "GET",
4498
4633
  responses: {
@@ -4511,9 +4646,9 @@ const listOperationSpec$1 = {
4511
4646
  resourceName
4512
4647
  ],
4513
4648
  headerParameters: [accept],
4514
- serializer: serializer$1
4649
+ serializer: serializer$2
4515
4650
  };
4516
- const listNextOperationSpec$1 = {
4651
+ const listNextOperationSpec$2 = {
4517
4652
  path: "{nextLink}",
4518
4653
  httpMethod: "GET",
4519
4654
  responses: {
@@ -4532,7 +4667,7 @@ const listNextOperationSpec$1 = {
4532
4667
  resourceName
4533
4668
  ],
4534
4669
  headerParameters: [accept],
4535
- serializer: serializer$1
4670
+ serializer: serializer$2
4536
4671
  };
4537
4672
 
4538
4673
  /*
@@ -4543,19 +4678,18 @@ const listNextOperationSpec$1 = {
4543
4678
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
4544
4679
  */
4545
4680
  /// <reference lib="esnext.asynciterable" />
4546
- /** Class containing SignalRSharedPrivateLinkResources operations. */
4547
- class SignalRSharedPrivateLinkResourcesImpl {
4681
+ /** Class containing SignalRReplicas operations. */
4682
+ class SignalRReplicasImpl {
4548
4683
  /**
4549
- * Initialize a new instance of the class SignalRSharedPrivateLinkResources class.
4684
+ * Initialize a new instance of the class SignalRReplicas class.
4550
4685
  * @param client Reference to the service client
4551
4686
  */
4552
4687
  constructor(client) {
4553
4688
  this.client = client;
4554
4689
  }
4555
4690
  /**
4556
- * List shared private link resources
4557
- * @param resourceGroupName The name of the resource group that contains the resource. You can obtain
4558
- * this value from the Azure Resource Manager API or the portal.
4691
+ * List all replicas belong to this resource
4692
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
4559
4693
  * @param resourceName The name of the resource.
4560
4694
  * @param options The options parameters.
4561
4695
  */
@@ -4622,41 +4756,33 @@ class SignalRSharedPrivateLinkResourcesImpl {
4622
4756
  });
4623
4757
  }
4624
4758
  /**
4625
- * List shared private link resources
4626
- * @param resourceGroupName The name of the resource group that contains the resource. You can obtain
4627
- * this value from the Azure Resource Manager API or the portal.
4759
+ * List all replicas belong to this resource
4760
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
4628
4761
  * @param resourceName The name of the resource.
4629
4762
  * @param options The options parameters.
4630
4763
  */
4631
4764
  _list(resourceGroupName, resourceName, options) {
4632
- return this.client.sendOperationRequest({ resourceGroupName, resourceName, options }, listOperationSpec);
4765
+ return this.client.sendOperationRequest({ resourceGroupName, resourceName, options }, listOperationSpec$1);
4633
4766
  }
4634
4767
  /**
4635
- * Get the specified shared private link resource
4636
- * @param sharedPrivateLinkResourceName The name of the shared private link resource
4637
- * @param resourceGroupName The name of the resource group that contains the resource. You can obtain
4638
- * this value from the Azure Resource Manager API or the portal.
4768
+ * Get the replica and its properties.
4769
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
4639
4770
  * @param resourceName The name of the resource.
4771
+ * @param replicaName The name of the replica.
4640
4772
  * @param options The options parameters.
4641
4773
  */
4642
- get(sharedPrivateLinkResourceName, resourceGroupName, resourceName, options) {
4643
- return this.client.sendOperationRequest({
4644
- sharedPrivateLinkResourceName,
4645
- resourceGroupName,
4646
- resourceName,
4647
- options
4648
- }, getOperationSpec);
4774
+ get(resourceGroupName, resourceName, replicaName, options) {
4775
+ return this.client.sendOperationRequest({ resourceGroupName, resourceName, replicaName, options }, getOperationSpec$1);
4649
4776
  }
4650
4777
  /**
4651
- * Create or update a shared private link resource
4652
- * @param sharedPrivateLinkResourceName The name of the shared private link resource
4653
- * @param resourceGroupName The name of the resource group that contains the resource. You can obtain
4654
- * this value from the Azure Resource Manager API or the portal.
4778
+ * Create or update a replica.
4779
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
4655
4780
  * @param resourceName The name of the resource.
4656
- * @param parameters The shared private link resource
4781
+ * @param replicaName The name of the replica.
4782
+ * @param parameters Parameters for the create or update operation
4657
4783
  * @param options The options parameters.
4658
4784
  */
4659
- beginCreateOrUpdate(sharedPrivateLinkResourceName, resourceGroupName, resourceName, parameters, options) {
4785
+ beginCreateOrUpdate(resourceGroupName, resourceName, replicaName, parameters, options) {
4660
4786
  return tslib.__awaiter(this, void 0, void 0, function* () {
4661
4787
  const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
4662
4788
  return this.client.sendOperationRequest(args, spec);
@@ -4683,46 +4809,56 @@ class SignalRSharedPrivateLinkResourcesImpl {
4683
4809
  const lro = createLroSpec({
4684
4810
  sendOperationFn,
4685
4811
  args: {
4686
- sharedPrivateLinkResourceName,
4687
4812
  resourceGroupName,
4688
4813
  resourceName,
4814
+ replicaName,
4689
4815
  parameters,
4690
4816
  options
4691
4817
  },
4692
- spec: createOrUpdateOperationSpec
4818
+ spec: createOrUpdateOperationSpec$1
4693
4819
  });
4694
4820
  const poller = yield coreLro.createHttpPoller(lro, {
4695
4821
  restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
4696
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
4822
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
4823
+ resourceLocationConfig: "azure-async-operation"
4697
4824
  });
4698
4825
  yield poller.poll();
4699
4826
  return poller;
4700
4827
  });
4701
4828
  }
4702
4829
  /**
4703
- * Create or update a shared private link resource
4704
- * @param sharedPrivateLinkResourceName The name of the shared private link resource
4705
- * @param resourceGroupName The name of the resource group that contains the resource. You can obtain
4706
- * this value from the Azure Resource Manager API or the portal.
4830
+ * Create or update a replica.
4831
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
4707
4832
  * @param resourceName The name of the resource.
4708
- * @param parameters The shared private link resource
4833
+ * @param replicaName The name of the replica.
4834
+ * @param parameters Parameters for the create or update operation
4709
4835
  * @param options The options parameters.
4710
4836
  */
4711
- beginCreateOrUpdateAndWait(sharedPrivateLinkResourceName, resourceGroupName, resourceName, parameters, options) {
4837
+ beginCreateOrUpdateAndWait(resourceGroupName, resourceName, replicaName, parameters, options) {
4712
4838
  return tslib.__awaiter(this, void 0, void 0, function* () {
4713
- const poller = yield this.beginCreateOrUpdate(sharedPrivateLinkResourceName, resourceGroupName, resourceName, parameters, options);
4839
+ const poller = yield this.beginCreateOrUpdate(resourceGroupName, resourceName, replicaName, parameters, options);
4714
4840
  return poller.pollUntilDone();
4715
4841
  });
4716
4842
  }
4717
4843
  /**
4718
- * Delete the specified shared private link resource
4719
- * @param sharedPrivateLinkResourceName The name of the shared private link resource
4720
- * @param resourceGroupName The name of the resource group that contains the resource. You can obtain
4721
- * this value from the Azure Resource Manager API or the portal.
4844
+ * Operation to delete a replica.
4845
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
4722
4846
  * @param resourceName The name of the resource.
4847
+ * @param replicaName The name of the replica.
4723
4848
  * @param options The options parameters.
4724
4849
  */
4725
- beginDelete(sharedPrivateLinkResourceName, resourceGroupName, resourceName, options) {
4850
+ delete(resourceGroupName, resourceName, replicaName, options) {
4851
+ return this.client.sendOperationRequest({ resourceGroupName, resourceName, replicaName, options }, deleteOperationSpec$1);
4852
+ }
4853
+ /**
4854
+ * Operation to update an exiting replica.
4855
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
4856
+ * @param resourceName The name of the resource.
4857
+ * @param replicaName The name of the replica.
4858
+ * @param parameters Parameters for the update operation
4859
+ * @param options The options parameters.
4860
+ */
4861
+ beginUpdate(resourceGroupName, resourceName, replicaName, parameters, options) {
4726
4862
  return tslib.__awaiter(this, void 0, void 0, function* () {
4727
4863
  const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
4728
4864
  return this.client.sendOperationRequest(args, spec);
@@ -4749,12 +4885,13 @@ class SignalRSharedPrivateLinkResourcesImpl {
4749
4885
  const lro = createLroSpec({
4750
4886
  sendOperationFn,
4751
4887
  args: {
4752
- sharedPrivateLinkResourceName,
4753
4888
  resourceGroupName,
4754
4889
  resourceName,
4890
+ replicaName,
4891
+ parameters,
4755
4892
  options
4756
4893
  },
4757
- spec: deleteOperationSpec
4894
+ spec: updateOperationSpec
4758
4895
  });
4759
4896
  const poller = yield coreLro.createHttpPoller(lro, {
4760
4897
  restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
@@ -4766,39 +4903,96 @@ class SignalRSharedPrivateLinkResourcesImpl {
4766
4903
  });
4767
4904
  }
4768
4905
  /**
4769
- * Delete the specified shared private link resource
4770
- * @param sharedPrivateLinkResourceName The name of the shared private link resource
4771
- * @param resourceGroupName The name of the resource group that contains the resource. You can obtain
4772
- * this value from the Azure Resource Manager API or the portal.
4906
+ * Operation to update an exiting replica.
4907
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
4773
4908
  * @param resourceName The name of the resource.
4909
+ * @param replicaName The name of the replica.
4910
+ * @param parameters Parameters for the update operation
4774
4911
  * @param options The options parameters.
4775
4912
  */
4776
- beginDeleteAndWait(sharedPrivateLinkResourceName, resourceGroupName, resourceName, options) {
4913
+ beginUpdateAndWait(resourceGroupName, resourceName, replicaName, parameters, options) {
4777
4914
  return tslib.__awaiter(this, void 0, void 0, function* () {
4778
- const poller = yield this.beginDelete(sharedPrivateLinkResourceName, resourceGroupName, resourceName, options);
4915
+ const poller = yield this.beginUpdate(resourceGroupName, resourceName, replicaName, parameters, options);
4916
+ return poller.pollUntilDone();
4917
+ });
4918
+ }
4919
+ /**
4920
+ * Operation to restart a replica.
4921
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
4922
+ * @param resourceName The name of the resource.
4923
+ * @param replicaName The name of the replica.
4924
+ * @param options The options parameters.
4925
+ */
4926
+ beginRestart(resourceGroupName, resourceName, replicaName, options) {
4927
+ return tslib.__awaiter(this, void 0, void 0, function* () {
4928
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
4929
+ return this.client.sendOperationRequest(args, spec);
4930
+ });
4931
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
4932
+ var _a;
4933
+ let currentRawResponse = undefined;
4934
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
4935
+ const callback = (rawResponse, flatResponse) => {
4936
+ currentRawResponse = rawResponse;
4937
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
4938
+ };
4939
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
4940
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
4941
+ return {
4942
+ flatResponse,
4943
+ rawResponse: {
4944
+ statusCode: currentRawResponse.status,
4945
+ body: currentRawResponse.parsedBody,
4946
+ headers: currentRawResponse.headers.toJSON()
4947
+ }
4948
+ };
4949
+ });
4950
+ const lro = createLroSpec({
4951
+ sendOperationFn,
4952
+ args: { resourceGroupName, resourceName, replicaName, options },
4953
+ spec: restartOperationSpec
4954
+ });
4955
+ const poller = yield coreLro.createHttpPoller(lro, {
4956
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
4957
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
4958
+ resourceLocationConfig: "location"
4959
+ });
4960
+ yield poller.poll();
4961
+ return poller;
4962
+ });
4963
+ }
4964
+ /**
4965
+ * Operation to restart a replica.
4966
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
4967
+ * @param resourceName The name of the resource.
4968
+ * @param replicaName The name of the replica.
4969
+ * @param options The options parameters.
4970
+ */
4971
+ beginRestartAndWait(resourceGroupName, resourceName, replicaName, options) {
4972
+ return tslib.__awaiter(this, void 0, void 0, function* () {
4973
+ const poller = yield this.beginRestart(resourceGroupName, resourceName, replicaName, options);
4779
4974
  return poller.pollUntilDone();
4780
4975
  });
4781
4976
  }
4782
4977
  /**
4783
4978
  * ListNext
4784
- * @param resourceGroupName The name of the resource group that contains the resource. You can obtain
4785
- * this value from the Azure Resource Manager API or the portal.
4979
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
4786
4980
  * @param resourceName The name of the resource.
4787
4981
  * @param nextLink The nextLink from the previous successful call to the List method.
4788
4982
  * @param options The options parameters.
4789
4983
  */
4790
4984
  _listNext(resourceGroupName, resourceName, nextLink, options) {
4791
- return this.client.sendOperationRequest({ resourceGroupName, resourceName, nextLink, options }, listNextOperationSpec);
4985
+ return this.client.sendOperationRequest({ resourceGroupName, resourceName, nextLink, options }, listNextOperationSpec$1);
4792
4986
  }
4793
4987
  }
4794
4988
  // Operation Specifications
4795
- const serializer = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
4796
- const listOperationSpec = {
4797
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/signalR/{resourceName}/sharedPrivateLinkResources",
4989
+ const serializer$1 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
4990
+ const listOperationSpec$1 = {
4991
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/signalR/{resourceName}/replicas",
4798
4992
  httpMethod: "GET",
4799
4993
  responses: {
4800
4994
  200: {
4801
- bodyMapper: SharedPrivateLinkResourceList
4995
+ bodyMapper: ReplicaList
4802
4996
  },
4803
4997
  default: {
4804
4998
  bodyMapper: ErrorResponse
@@ -4812,14 +5006,14 @@ const listOperationSpec = {
4812
5006
  resourceName
4813
5007
  ],
4814
5008
  headerParameters: [accept],
4815
- serializer
5009
+ serializer: serializer$1
4816
5010
  };
4817
- const getOperationSpec = {
4818
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/signalR/{resourceName}/sharedPrivateLinkResources/{sharedPrivateLinkResourceName}",
5011
+ const getOperationSpec$1 = {
5012
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/signalR/{resourceName}/replicas/{replicaName}",
4819
5013
  httpMethod: "GET",
4820
5014
  responses: {
4821
5015
  200: {
4822
- bodyMapper: SharedPrivateLinkResource
5016
+ bodyMapper: Replica
4823
5017
  },
4824
5018
  default: {
4825
5019
  bodyMapper: ErrorResponse
@@ -4831,26 +5025,26 @@ const getOperationSpec = {
4831
5025
  subscriptionId,
4832
5026
  resourceGroupName,
4833
5027
  resourceName,
4834
- sharedPrivateLinkResourceName
5028
+ replicaName
4835
5029
  ],
4836
5030
  headerParameters: [accept],
4837
- serializer
5031
+ serializer: serializer$1
4838
5032
  };
4839
- const createOrUpdateOperationSpec = {
4840
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/signalR/{resourceName}/sharedPrivateLinkResources/{sharedPrivateLinkResourceName}",
5033
+ const createOrUpdateOperationSpec$1 = {
5034
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/signalR/{resourceName}/replicas/{replicaName}",
4841
5035
  httpMethod: "PUT",
4842
5036
  responses: {
4843
5037
  200: {
4844
- bodyMapper: SharedPrivateLinkResource
5038
+ bodyMapper: Replica
4845
5039
  },
4846
5040
  201: {
4847
- bodyMapper: SharedPrivateLinkResource
5041
+ bodyMapper: Replica
4848
5042
  },
4849
5043
  202: {
4850
- bodyMapper: SharedPrivateLinkResource
5044
+ bodyMapper: Replica
4851
5045
  },
4852
5046
  204: {
4853
- bodyMapper: SharedPrivateLinkResource
5047
+ bodyMapper: Replica
4854
5048
  },
4855
5049
  default: {
4856
5050
  bodyMapper: ErrorResponse
@@ -4858,6 +5052,440 @@ const createOrUpdateOperationSpec = {
4858
5052
  },
4859
5053
  requestBody: parameters6,
4860
5054
  queryParameters: [apiVersion],
5055
+ urlParameters: [
5056
+ $host,
5057
+ subscriptionId,
5058
+ resourceGroupName,
5059
+ resourceName,
5060
+ replicaName
5061
+ ],
5062
+ headerParameters: [accept, contentType],
5063
+ mediaType: "json",
5064
+ serializer: serializer$1
5065
+ };
5066
+ const deleteOperationSpec$1 = {
5067
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/signalR/{resourceName}/replicas/{replicaName}",
5068
+ httpMethod: "DELETE",
5069
+ responses: {
5070
+ 200: {},
5071
+ 204: {},
5072
+ default: {
5073
+ bodyMapper: ErrorResponse
5074
+ }
5075
+ },
5076
+ queryParameters: [apiVersion],
5077
+ urlParameters: [
5078
+ $host,
5079
+ subscriptionId,
5080
+ resourceGroupName,
5081
+ resourceName,
5082
+ replicaName
5083
+ ],
5084
+ headerParameters: [accept],
5085
+ serializer: serializer$1
5086
+ };
5087
+ const updateOperationSpec = {
5088
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/signalR/{resourceName}/replicas/{replicaName}",
5089
+ httpMethod: "PATCH",
5090
+ responses: {
5091
+ 200: {
5092
+ bodyMapper: Replica
5093
+ },
5094
+ 201: {
5095
+ bodyMapper: Replica
5096
+ },
5097
+ 202: {
5098
+ bodyMapper: Replica
5099
+ },
5100
+ 204: {
5101
+ bodyMapper: Replica
5102
+ },
5103
+ default: {
5104
+ bodyMapper: ErrorResponse
5105
+ }
5106
+ },
5107
+ requestBody: parameters6,
5108
+ queryParameters: [apiVersion],
5109
+ urlParameters: [
5110
+ $host,
5111
+ subscriptionId,
5112
+ resourceGroupName,
5113
+ resourceName,
5114
+ replicaName
5115
+ ],
5116
+ headerParameters: [accept, contentType],
5117
+ mediaType: "json",
5118
+ serializer: serializer$1
5119
+ };
5120
+ const restartOperationSpec = {
5121
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/signalR/{resourceName}/replicas/{replicaName}/restart",
5122
+ httpMethod: "POST",
5123
+ responses: {
5124
+ 200: {
5125
+ headersMapper: SignalRReplicasRestartHeaders
5126
+ },
5127
+ 201: {
5128
+ headersMapper: SignalRReplicasRestartHeaders
5129
+ },
5130
+ 202: {
5131
+ headersMapper: SignalRReplicasRestartHeaders
5132
+ },
5133
+ 204: {
5134
+ headersMapper: SignalRReplicasRestartHeaders
5135
+ },
5136
+ default: {
5137
+ bodyMapper: ErrorResponse
5138
+ }
5139
+ },
5140
+ queryParameters: [apiVersion],
5141
+ urlParameters: [
5142
+ $host,
5143
+ subscriptionId,
5144
+ resourceGroupName,
5145
+ resourceName,
5146
+ replicaName
5147
+ ],
5148
+ headerParameters: [accept],
5149
+ serializer: serializer$1
5150
+ };
5151
+ const listNextOperationSpec$1 = {
5152
+ path: "{nextLink}",
5153
+ httpMethod: "GET",
5154
+ responses: {
5155
+ 200: {
5156
+ bodyMapper: ReplicaList
5157
+ },
5158
+ default: {
5159
+ bodyMapper: ErrorResponse
5160
+ }
5161
+ },
5162
+ urlParameters: [
5163
+ $host,
5164
+ nextLink,
5165
+ subscriptionId,
5166
+ resourceGroupName,
5167
+ resourceName
5168
+ ],
5169
+ headerParameters: [accept],
5170
+ serializer: serializer$1
5171
+ };
5172
+
5173
+ /*
5174
+ * Copyright (c) Microsoft Corporation.
5175
+ * Licensed under the MIT License.
5176
+ *
5177
+ * Code generated by Microsoft (R) AutoRest Code Generator.
5178
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
5179
+ */
5180
+ /// <reference lib="esnext.asynciterable" />
5181
+ /** Class containing SignalRSharedPrivateLinkResources operations. */
5182
+ class SignalRSharedPrivateLinkResourcesImpl {
5183
+ /**
5184
+ * Initialize a new instance of the class SignalRSharedPrivateLinkResources class.
5185
+ * @param client Reference to the service client
5186
+ */
5187
+ constructor(client) {
5188
+ this.client = client;
5189
+ }
5190
+ /**
5191
+ * List shared private link resources
5192
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
5193
+ * @param resourceName The name of the resource.
5194
+ * @param options The options parameters.
5195
+ */
5196
+ list(resourceGroupName, resourceName, options) {
5197
+ const iter = this.listPagingAll(resourceGroupName, resourceName, options);
5198
+ return {
5199
+ next() {
5200
+ return iter.next();
5201
+ },
5202
+ [Symbol.asyncIterator]() {
5203
+ return this;
5204
+ },
5205
+ byPage: (settings) => {
5206
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
5207
+ throw new Error("maxPageSize is not supported by this operation.");
5208
+ }
5209
+ return this.listPagingPage(resourceGroupName, resourceName, options, settings);
5210
+ }
5211
+ };
5212
+ }
5213
+ listPagingPage(resourceGroupName, resourceName, options, settings) {
5214
+ return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
5215
+ let result;
5216
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
5217
+ if (!continuationToken) {
5218
+ result = yield tslib.__await(this._list(resourceGroupName, resourceName, options));
5219
+ let page = result.value || [];
5220
+ continuationToken = result.nextLink;
5221
+ setContinuationToken(page, continuationToken);
5222
+ yield yield tslib.__await(page);
5223
+ }
5224
+ while (continuationToken) {
5225
+ result = yield tslib.__await(this._listNext(resourceGroupName, resourceName, continuationToken, options));
5226
+ continuationToken = result.nextLink;
5227
+ let page = result.value || [];
5228
+ setContinuationToken(page, continuationToken);
5229
+ yield yield tslib.__await(page);
5230
+ }
5231
+ });
5232
+ }
5233
+ listPagingAll(resourceGroupName, resourceName, options) {
5234
+ return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
5235
+ var _a, e_1, _b, _c;
5236
+ try {
5237
+ for (var _d = true, _e = tslib.__asyncValues(this.listPagingPage(resourceGroupName, resourceName, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a;) {
5238
+ _c = _f.value;
5239
+ _d = false;
5240
+ try {
5241
+ const page = _c;
5242
+ yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
5243
+ }
5244
+ finally {
5245
+ _d = true;
5246
+ }
5247
+ }
5248
+ }
5249
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
5250
+ finally {
5251
+ try {
5252
+ if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
5253
+ }
5254
+ finally { if (e_1) throw e_1.error; }
5255
+ }
5256
+ });
5257
+ }
5258
+ /**
5259
+ * List shared private link resources
5260
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
5261
+ * @param resourceName The name of the resource.
5262
+ * @param options The options parameters.
5263
+ */
5264
+ _list(resourceGroupName, resourceName, options) {
5265
+ return this.client.sendOperationRequest({ resourceGroupName, resourceName, options }, listOperationSpec);
5266
+ }
5267
+ /**
5268
+ * Get the specified shared private link resource
5269
+ * @param sharedPrivateLinkResourceName The name of the shared private link resource
5270
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
5271
+ * @param resourceName The name of the resource.
5272
+ * @param options The options parameters.
5273
+ */
5274
+ get(sharedPrivateLinkResourceName, resourceGroupName, resourceName, options) {
5275
+ return this.client.sendOperationRequest({
5276
+ sharedPrivateLinkResourceName,
5277
+ resourceGroupName,
5278
+ resourceName,
5279
+ options
5280
+ }, getOperationSpec);
5281
+ }
5282
+ /**
5283
+ * Create or update a shared private link resource
5284
+ * @param sharedPrivateLinkResourceName The name of the shared private link resource
5285
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
5286
+ * @param resourceName The name of the resource.
5287
+ * @param parameters The shared private link resource
5288
+ * @param options The options parameters.
5289
+ */
5290
+ beginCreateOrUpdate(sharedPrivateLinkResourceName, resourceGroupName, resourceName, parameters, options) {
5291
+ return tslib.__awaiter(this, void 0, void 0, function* () {
5292
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
5293
+ return this.client.sendOperationRequest(args, spec);
5294
+ });
5295
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
5296
+ var _a;
5297
+ let currentRawResponse = undefined;
5298
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
5299
+ const callback = (rawResponse, flatResponse) => {
5300
+ currentRawResponse = rawResponse;
5301
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
5302
+ };
5303
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
5304
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
5305
+ return {
5306
+ flatResponse,
5307
+ rawResponse: {
5308
+ statusCode: currentRawResponse.status,
5309
+ body: currentRawResponse.parsedBody,
5310
+ headers: currentRawResponse.headers.toJSON()
5311
+ }
5312
+ };
5313
+ });
5314
+ const lro = createLroSpec({
5315
+ sendOperationFn,
5316
+ args: {
5317
+ sharedPrivateLinkResourceName,
5318
+ resourceGroupName,
5319
+ resourceName,
5320
+ parameters,
5321
+ options
5322
+ },
5323
+ spec: createOrUpdateOperationSpec
5324
+ });
5325
+ const poller = yield coreLro.createHttpPoller(lro, {
5326
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
5327
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
5328
+ resourceLocationConfig: "azure-async-operation"
5329
+ });
5330
+ yield poller.poll();
5331
+ return poller;
5332
+ });
5333
+ }
5334
+ /**
5335
+ * Create or update a shared private link resource
5336
+ * @param sharedPrivateLinkResourceName The name of the shared private link resource
5337
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
5338
+ * @param resourceName The name of the resource.
5339
+ * @param parameters The shared private link resource
5340
+ * @param options The options parameters.
5341
+ */
5342
+ beginCreateOrUpdateAndWait(sharedPrivateLinkResourceName, resourceGroupName, resourceName, parameters, options) {
5343
+ return tslib.__awaiter(this, void 0, void 0, function* () {
5344
+ const poller = yield this.beginCreateOrUpdate(sharedPrivateLinkResourceName, resourceGroupName, resourceName, parameters, options);
5345
+ return poller.pollUntilDone();
5346
+ });
5347
+ }
5348
+ /**
5349
+ * Delete the specified shared private link resource
5350
+ * @param sharedPrivateLinkResourceName The name of the shared private link resource
5351
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
5352
+ * @param resourceName The name of the resource.
5353
+ * @param options The options parameters.
5354
+ */
5355
+ beginDelete(sharedPrivateLinkResourceName, resourceGroupName, resourceName, options) {
5356
+ return tslib.__awaiter(this, void 0, void 0, function* () {
5357
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
5358
+ return this.client.sendOperationRequest(args, spec);
5359
+ });
5360
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
5361
+ var _a;
5362
+ let currentRawResponse = undefined;
5363
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
5364
+ const callback = (rawResponse, flatResponse) => {
5365
+ currentRawResponse = rawResponse;
5366
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
5367
+ };
5368
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
5369
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
5370
+ return {
5371
+ flatResponse,
5372
+ rawResponse: {
5373
+ statusCode: currentRawResponse.status,
5374
+ body: currentRawResponse.parsedBody,
5375
+ headers: currentRawResponse.headers.toJSON()
5376
+ }
5377
+ };
5378
+ });
5379
+ const lro = createLroSpec({
5380
+ sendOperationFn,
5381
+ args: {
5382
+ sharedPrivateLinkResourceName,
5383
+ resourceGroupName,
5384
+ resourceName,
5385
+ options
5386
+ },
5387
+ spec: deleteOperationSpec
5388
+ });
5389
+ const poller = yield coreLro.createHttpPoller(lro, {
5390
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
5391
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
5392
+ resourceLocationConfig: "location"
5393
+ });
5394
+ yield poller.poll();
5395
+ return poller;
5396
+ });
5397
+ }
5398
+ /**
5399
+ * Delete the specified shared private link resource
5400
+ * @param sharedPrivateLinkResourceName The name of the shared private link resource
5401
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
5402
+ * @param resourceName The name of the resource.
5403
+ * @param options The options parameters.
5404
+ */
5405
+ beginDeleteAndWait(sharedPrivateLinkResourceName, resourceGroupName, resourceName, options) {
5406
+ return tslib.__awaiter(this, void 0, void 0, function* () {
5407
+ const poller = yield this.beginDelete(sharedPrivateLinkResourceName, resourceGroupName, resourceName, options);
5408
+ return poller.pollUntilDone();
5409
+ });
5410
+ }
5411
+ /**
5412
+ * ListNext
5413
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
5414
+ * @param resourceName The name of the resource.
5415
+ * @param nextLink The nextLink from the previous successful call to the List method.
5416
+ * @param options The options parameters.
5417
+ */
5418
+ _listNext(resourceGroupName, resourceName, nextLink, options) {
5419
+ return this.client.sendOperationRequest({ resourceGroupName, resourceName, nextLink, options }, listNextOperationSpec);
5420
+ }
5421
+ }
5422
+ // Operation Specifications
5423
+ const serializer = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
5424
+ const listOperationSpec = {
5425
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/signalR/{resourceName}/sharedPrivateLinkResources",
5426
+ httpMethod: "GET",
5427
+ responses: {
5428
+ 200: {
5429
+ bodyMapper: SharedPrivateLinkResourceList
5430
+ },
5431
+ default: {
5432
+ bodyMapper: ErrorResponse
5433
+ }
5434
+ },
5435
+ queryParameters: [apiVersion],
5436
+ urlParameters: [
5437
+ $host,
5438
+ subscriptionId,
5439
+ resourceGroupName,
5440
+ resourceName
5441
+ ],
5442
+ headerParameters: [accept],
5443
+ serializer
5444
+ };
5445
+ const getOperationSpec = {
5446
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/signalR/{resourceName}/sharedPrivateLinkResources/{sharedPrivateLinkResourceName}",
5447
+ httpMethod: "GET",
5448
+ responses: {
5449
+ 200: {
5450
+ bodyMapper: SharedPrivateLinkResource
5451
+ },
5452
+ default: {
5453
+ bodyMapper: ErrorResponse
5454
+ }
5455
+ },
5456
+ queryParameters: [apiVersion],
5457
+ urlParameters: [
5458
+ $host,
5459
+ subscriptionId,
5460
+ resourceGroupName,
5461
+ resourceName,
5462
+ sharedPrivateLinkResourceName
5463
+ ],
5464
+ headerParameters: [accept],
5465
+ serializer
5466
+ };
5467
+ const createOrUpdateOperationSpec = {
5468
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/signalR/{resourceName}/sharedPrivateLinkResources/{sharedPrivateLinkResourceName}",
5469
+ httpMethod: "PUT",
5470
+ responses: {
5471
+ 200: {
5472
+ bodyMapper: SharedPrivateLinkResource
5473
+ },
5474
+ 201: {
5475
+ bodyMapper: SharedPrivateLinkResource
5476
+ },
5477
+ 202: {
5478
+ bodyMapper: SharedPrivateLinkResource
5479
+ },
5480
+ 204: {
5481
+ bodyMapper: SharedPrivateLinkResource
5482
+ },
5483
+ default: {
5484
+ bodyMapper: ErrorResponse
5485
+ }
5486
+ },
5487
+ requestBody: parameters7,
5488
+ queryParameters: [apiVersion],
4861
5489
  urlParameters: [
4862
5490
  $host,
4863
5491
  subscriptionId,
@@ -4925,8 +5553,7 @@ class SignalRManagementClient extends coreClient__namespace.ServiceClient {
4925
5553
  /**
4926
5554
  * Initializes a new instance of the SignalRManagementClient class.
4927
5555
  * @param credentials Subscription credentials which uniquely identify client subscription.
4928
- * @param subscriptionId Gets subscription Id which uniquely identify the Microsoft Azure subscription.
4929
- * The subscription ID forms part of the URI for every service call.
5556
+ * @param subscriptionId The ID of the target subscription. The value must be an UUID.
4930
5557
  * @param options The parameter options
4931
5558
  */
4932
5559
  constructor(credentials, subscriptionId, options) {
@@ -4945,7 +5572,7 @@ class SignalRManagementClient extends coreClient__namespace.ServiceClient {
4945
5572
  requestContentType: "application/json; charset=utf-8",
4946
5573
  credential: credentials
4947
5574
  };
4948
- const packageDetails = `azsdk-js-arm-signalr/5.2.1`;
5575
+ const packageDetails = `azsdk-js-arm-signalr/6.0.0-beta.1`;
4949
5576
  const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
4950
5577
  ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
4951
5578
  : `${packageDetails}`;
@@ -4978,7 +5605,7 @@ class SignalRManagementClient extends coreClient__namespace.ServiceClient {
4978
5605
  this.subscriptionId = subscriptionId;
4979
5606
  // Assigning values to Constant parameters
4980
5607
  this.$host = options.$host || "https://management.azure.com";
4981
- this.apiVersion = options.apiVersion || "2023-02-01";
5608
+ this.apiVersion = options.apiVersion || "2023-06-01-preview";
4982
5609
  this.operations = new OperationsImpl(this);
4983
5610
  this.signalR = new SignalRImpl(this);
4984
5611
  this.usages = new UsagesImpl(this);
@@ -4986,6 +5613,7 @@ class SignalRManagementClient extends coreClient__namespace.ServiceClient {
4986
5613
  this.signalRCustomDomains = new SignalRCustomDomainsImpl(this);
4987
5614
  this.signalRPrivateEndpointConnections = new SignalRPrivateEndpointConnectionsImpl(this);
4988
5615
  this.signalRPrivateLinkResources = new SignalRPrivateLinkResourcesImpl(this);
5616
+ this.signalRReplicas = new SignalRReplicasImpl(this);
4989
5617
  this.signalRSharedPrivateLinkResources = new SignalRSharedPrivateLinkResourcesImpl(this);
4990
5618
  this.addCustomApiVersionPolicy(options.apiVersion);
4991
5619
  }