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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (171) hide show
  1. package/CHANGELOG.md +4 -18
  2. package/README.md +16 -9
  3. package/dist/index.js +1092 -480
  4. package/dist/index.js.map +1 -1
  5. package/dist/index.min.js +1 -1
  6. package/dist/index.min.js.map +1 -1
  7. package/dist-esm/src/index.d.ts +5 -0
  8. package/dist-esm/src/index.d.ts.map +1 -0
  9. package/{esm → dist-esm/src}/index.js +0 -1
  10. package/dist-esm/src/index.js.map +1 -0
  11. package/{esm → dist-esm/src}/lroImpl.d.ts +0 -0
  12. package/dist-esm/src/lroImpl.d.ts.map +1 -0
  13. package/{esm → dist-esm/src}/lroImpl.js +0 -0
  14. package/dist-esm/src/lroImpl.js.map +1 -0
  15. package/{esm → dist-esm/src}/models/index.d.ts +322 -156
  16. package/dist-esm/src/models/index.d.ts.map +1 -0
  17. package/{esm → dist-esm/src}/models/index.js +14 -6
  18. package/dist-esm/src/models/index.js.map +1 -0
  19. package/{esm → dist-esm/src}/models/mappers.d.ts +16 -8
  20. package/dist-esm/src/models/mappers.d.ts.map +1 -0
  21. package/{esm → dist-esm/src}/models/mappers.js +447 -206
  22. package/dist-esm/src/models/mappers.js.map +1 -0
  23. package/{esm → dist-esm/src}/models/parameters.d.ts +4 -2
  24. package/dist-esm/src/models/parameters.d.ts.map +1 -0
  25. package/{esm → dist-esm/src}/models/parameters.js +18 -4
  26. package/dist-esm/src/models/parameters.js.map +1 -0
  27. package/{esm/operationsInterfaces → dist-esm/src/operations}/index.d.ts +1 -0
  28. package/dist-esm/src/operations/index.d.ts.map +1 -0
  29. package/{esm/operationsInterfaces → dist-esm/src/operations}/index.js +1 -0
  30. package/dist-esm/src/operations/index.js.map +1 -0
  31. package/{esm → dist-esm/src}/operations/operations.d.ts +3 -4
  32. package/dist-esm/src/operations/operations.d.ts.map +1 -0
  33. package/{esm → dist-esm/src}/operations/operations.js +1 -2
  34. package/dist-esm/src/operations/operations.js.map +1 -0
  35. package/{esm → dist-esm/src}/operations/usages.d.ts +3 -4
  36. package/dist-esm/src/operations/usages.d.ts.map +1 -0
  37. package/{esm → dist-esm/src}/operations/usages.js +1 -2
  38. package/dist-esm/src/operations/usages.js.map +1 -0
  39. package/{esm → dist-esm/src}/operations/webPubSub.d.ts +12 -5
  40. package/dist-esm/src/operations/webPubSub.d.ts.map +1 -0
  41. package/{esm → dist-esm/src}/operations/webPubSub.js +32 -2
  42. package/dist-esm/src/operations/webPubSub.js.map +1 -0
  43. package/dist-esm/src/operations/webPubSubHubs.d.ts +89 -0
  44. package/dist-esm/src/operations/webPubSubHubs.d.ts.map +1 -0
  45. package/dist-esm/src/operations/webPubSubHubs.js +339 -0
  46. package/dist-esm/src/operations/webPubSubHubs.js.map +1 -0
  47. package/{esm → dist-esm/src}/operations/webPubSubPrivateEndpointConnections.d.ts +3 -4
  48. package/dist-esm/src/operations/webPubSubPrivateEndpointConnections.d.ts.map +1 -0
  49. package/{esm → dist-esm/src}/operations/webPubSubPrivateEndpointConnections.js +2 -3
  50. package/dist-esm/src/operations/webPubSubPrivateEndpointConnections.js.map +1 -0
  51. package/{esm → dist-esm/src}/operations/webPubSubPrivateLinkResources.d.ts +3 -4
  52. package/dist-esm/src/operations/webPubSubPrivateLinkResources.d.ts.map +1 -0
  53. package/{esm → dist-esm/src}/operations/webPubSubPrivateLinkResources.js +1 -2
  54. package/dist-esm/src/operations/webPubSubPrivateLinkResources.js.map +1 -0
  55. package/{esm → dist-esm/src}/operations/webPubSubSharedPrivateLinkResources.d.ts +3 -4
  56. package/dist-esm/src/operations/webPubSubSharedPrivateLinkResources.d.ts.map +1 -0
  57. package/{esm → dist-esm/src}/operations/webPubSubSharedPrivateLinkResources.js +2 -3
  58. package/dist-esm/src/operations/webPubSubSharedPrivateLinkResources.js.map +1 -0
  59. package/{esm/operations → dist-esm/src/operationsInterfaces}/index.d.ts +1 -0
  60. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
  61. package/{esm/operations → dist-esm/src/operationsInterfaces}/index.js +1 -0
  62. package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
  63. package/{esm → dist-esm/src}/operationsInterfaces/operations.d.ts +0 -1
  64. package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -0
  65. package/{esm → dist-esm/src}/operationsInterfaces/operations.js +1 -1
  66. package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
  67. package/{esm → dist-esm/src}/operationsInterfaces/usages.d.ts +0 -1
  68. package/dist-esm/src/operationsInterfaces/usages.d.ts.map +1 -0
  69. package/{esm → dist-esm/src}/operationsInterfaces/usages.js +1 -1
  70. package/dist-esm/src/operationsInterfaces/usages.js.map +1 -0
  71. package/{esm → dist-esm/src}/operationsInterfaces/webPubSub.d.ts +9 -2
  72. package/dist-esm/src/operationsInterfaces/webPubSub.d.ts.map +1 -0
  73. package/{esm → dist-esm/src}/operationsInterfaces/webPubSub.js +1 -1
  74. package/dist-esm/src/operationsInterfaces/webPubSub.js.map +1 -0
  75. package/dist-esm/src/operationsInterfaces/webPubSubHubs.d.ts +62 -0
  76. package/dist-esm/src/operationsInterfaces/webPubSubHubs.d.ts.map +1 -0
  77. package/dist-esm/src/operationsInterfaces/webPubSubHubs.js +9 -0
  78. package/dist-esm/src/operationsInterfaces/webPubSubHubs.js.map +1 -0
  79. package/{esm → dist-esm/src}/operationsInterfaces/webPubSubPrivateEndpointConnections.d.ts +0 -1
  80. package/dist-esm/src/operationsInterfaces/webPubSubPrivateEndpointConnections.d.ts.map +1 -0
  81. package/dist-esm/src/operationsInterfaces/webPubSubPrivateEndpointConnections.js +9 -0
  82. package/dist-esm/src/operationsInterfaces/webPubSubPrivateEndpointConnections.js.map +1 -0
  83. package/{esm → dist-esm/src}/operationsInterfaces/webPubSubPrivateLinkResources.d.ts +0 -1
  84. package/dist-esm/src/operationsInterfaces/webPubSubPrivateLinkResources.d.ts.map +1 -0
  85. package/{esm → dist-esm/src}/operationsInterfaces/webPubSubPrivateLinkResources.js +1 -1
  86. package/dist-esm/src/operationsInterfaces/webPubSubPrivateLinkResources.js.map +1 -0
  87. package/{esm → dist-esm/src}/operationsInterfaces/webPubSubSharedPrivateLinkResources.d.ts +0 -1
  88. package/dist-esm/src/operationsInterfaces/webPubSubSharedPrivateLinkResources.d.ts.map +1 -0
  89. package/dist-esm/src/operationsInterfaces/webPubSubSharedPrivateLinkResources.js +9 -0
  90. package/dist-esm/src/operationsInterfaces/webPubSubSharedPrivateLinkResources.js.map +1 -0
  91. package/{esm → dist-esm/src}/webPubSubManagementClient.d.ts +7 -3
  92. package/dist-esm/src/webPubSubManagementClient.d.ts.map +1 -0
  93. package/{esm/webPubSubManagementClientContext.js → dist-esm/src/webPubSubManagementClient.js} +13 -5
  94. package/dist-esm/src/webPubSubManagementClient.js.map +1 -0
  95. package/dist-esm/test/sampleTest.d.ts +2 -0
  96. package/dist-esm/test/sampleTest.d.ts.map +1 -0
  97. package/dist-esm/test/sampleTest.js +40 -0
  98. package/dist-esm/test/sampleTest.js.map +1 -0
  99. package/package.json +27 -33
  100. package/review/arm-webpubsub.api.md +150 -33
  101. package/src/index.ts +0 -1
  102. package/src/models/index.ts +354 -163
  103. package/src/models/mappers.ts +484 -229
  104. package/src/models/parameters.ts +20 -3
  105. package/src/operations/index.ts +1 -0
  106. package/src/operations/operations.ts +4 -5
  107. package/src/operations/usages.ts +4 -5
  108. package/src/operations/webPubSub.ts +46 -5
  109. package/src/operations/webPubSubHubs.ts +472 -0
  110. package/src/operations/webPubSubPrivateEndpointConnections.ts +5 -6
  111. package/src/operations/webPubSubPrivateLinkResources.ts +4 -5
  112. package/src/operations/webPubSubSharedPrivateLinkResources.ts +5 -6
  113. package/src/operationsInterfaces/index.ts +1 -0
  114. package/src/operationsInterfaces/operations.ts +0 -1
  115. package/src/operationsInterfaces/usages.ts +0 -1
  116. package/src/operationsInterfaces/webPubSub.ts +15 -2
  117. package/src/operationsInterfaces/webPubSubHubs.ts +115 -0
  118. package/src/operationsInterfaces/webPubSubPrivateEndpointConnections.ts +0 -1
  119. package/src/operationsInterfaces/webPubSubPrivateLinkResources.ts +0 -1
  120. package/src/operationsInterfaces/webPubSubSharedPrivateLinkResources.ts +0 -1
  121. package/src/webPubSubManagementClient.ts +50 -3
  122. package/tsconfig.json +2 -2
  123. package/{esm/index.d.ts → types/arm-webpubsub.d.ts} +327 -82
  124. package/types/tsdoc-metadata.json +11 -0
  125. package/esm/index.d.ts.map +0 -1
  126. package/esm/index.js.map +0 -1
  127. package/esm/lroImpl.d.ts.map +0 -1
  128. package/esm/lroImpl.js.map +0 -1
  129. package/esm/models/index.d.ts.map +0 -1
  130. package/esm/models/index.js.map +0 -1
  131. package/esm/models/mappers.d.ts.map +0 -1
  132. package/esm/models/mappers.js.map +0 -1
  133. package/esm/models/parameters.d.ts.map +0 -1
  134. package/esm/models/parameters.js.map +0 -1
  135. package/esm/operations/index.d.ts.map +0 -1
  136. package/esm/operations/index.js.map +0 -1
  137. package/esm/operations/operations.d.ts.map +0 -1
  138. package/esm/operations/operations.js.map +0 -1
  139. package/esm/operations/usages.d.ts.map +0 -1
  140. package/esm/operations/usages.js.map +0 -1
  141. package/esm/operations/webPubSub.d.ts.map +0 -1
  142. package/esm/operations/webPubSub.js.map +0 -1
  143. package/esm/operations/webPubSubPrivateEndpointConnections.d.ts.map +0 -1
  144. package/esm/operations/webPubSubPrivateEndpointConnections.js.map +0 -1
  145. package/esm/operations/webPubSubPrivateLinkResources.d.ts.map +0 -1
  146. package/esm/operations/webPubSubPrivateLinkResources.js.map +0 -1
  147. package/esm/operations/webPubSubSharedPrivateLinkResources.d.ts.map +0 -1
  148. package/esm/operations/webPubSubSharedPrivateLinkResources.js.map +0 -1
  149. package/esm/operationsInterfaces/index.d.ts.map +0 -1
  150. package/esm/operationsInterfaces/index.js.map +0 -1
  151. package/esm/operationsInterfaces/operations.d.ts.map +0 -1
  152. package/esm/operationsInterfaces/operations.js.map +0 -1
  153. package/esm/operationsInterfaces/usages.d.ts.map +0 -1
  154. package/esm/operationsInterfaces/usages.js.map +0 -1
  155. package/esm/operationsInterfaces/webPubSub.d.ts.map +0 -1
  156. package/esm/operationsInterfaces/webPubSub.js.map +0 -1
  157. package/esm/operationsInterfaces/webPubSubPrivateEndpointConnections.d.ts.map +0 -1
  158. package/esm/operationsInterfaces/webPubSubPrivateEndpointConnections.js +0 -9
  159. package/esm/operationsInterfaces/webPubSubPrivateEndpointConnections.js.map +0 -1
  160. package/esm/operationsInterfaces/webPubSubPrivateLinkResources.d.ts.map +0 -1
  161. package/esm/operationsInterfaces/webPubSubPrivateLinkResources.js.map +0 -1
  162. package/esm/operationsInterfaces/webPubSubSharedPrivateLinkResources.d.ts.map +0 -1
  163. package/esm/operationsInterfaces/webPubSubSharedPrivateLinkResources.js +0 -9
  164. package/esm/operationsInterfaces/webPubSubSharedPrivateLinkResources.js.map +0 -1
  165. package/esm/webPubSubManagementClient.d.ts.map +0 -1
  166. package/esm/webPubSubManagementClient.js +0 -28
  167. package/esm/webPubSubManagementClient.js.map +0 -1
  168. package/esm/webPubSubManagementClientContext.d.ts +0 -17
  169. package/esm/webPubSubManagementClientContext.d.ts.map +0 -1
  170. package/esm/webPubSubManagementClientContext.js.map +0 -1
  171. package/src/webPubSubManagementClientContext.ts +0 -71
@@ -6,13 +6,12 @@
6
6
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  */
8
8
 
9
- import "@azure/core-paging";
10
9
  import { PagedAsyncIterableIterator } from "@azure/core-paging";
11
10
  import { WebPubSubPrivateEndpointConnections } from "../operationsInterfaces";
12
11
  import * as coreClient from "@azure/core-client";
13
12
  import * as Mappers from "../models/mappers";
14
13
  import * as Parameters from "../models/parameters";
15
- import { WebPubSubManagementClientContext } from "../webPubSubManagementClientContext";
14
+ import { WebPubSubManagementClient } from "../webPubSubManagementClient";
16
15
  import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro";
17
16
  import { LroImpl } from "../lroImpl";
18
17
  import {
@@ -29,16 +28,16 @@ import {
29
28
  } from "../models";
30
29
 
31
30
  /// <reference lib="esnext.asynciterable" />
32
- /** Class representing a WebPubSubPrivateEndpointConnections. */
31
+ /** Class containing WebPubSubPrivateEndpointConnections operations. */
33
32
  export class WebPubSubPrivateEndpointConnectionsImpl
34
33
  implements WebPubSubPrivateEndpointConnections {
35
- private readonly client: WebPubSubManagementClientContext;
34
+ private readonly client: WebPubSubManagementClient;
36
35
 
37
36
  /**
38
37
  * Initialize a new instance of the class WebPubSubPrivateEndpointConnections class.
39
38
  * @param client Reference to the service client
40
39
  */
41
- constructor(client: WebPubSubManagementClientContext) {
40
+ constructor(client: WebPubSubManagementClient) {
42
41
  this.client = client;
43
42
  }
44
43
 
@@ -345,7 +344,7 @@ const updateOperationSpec: coreClient.OperationSpec = {
345
344
  bodyMapper: Mappers.ErrorResponse
346
345
  }
347
346
  },
348
- requestBody: Parameters.parameters3,
347
+ requestBody: Parameters.parameters4,
349
348
  queryParameters: [Parameters.apiVersion],
350
349
  urlParameters: [
351
350
  Parameters.$host,
@@ -6,13 +6,12 @@
6
6
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  */
8
8
 
9
- import "@azure/core-paging";
10
9
  import { PagedAsyncIterableIterator } from "@azure/core-paging";
11
10
  import { WebPubSubPrivateLinkResources } from "../operationsInterfaces";
12
11
  import * as coreClient from "@azure/core-client";
13
12
  import * as Mappers from "../models/mappers";
14
13
  import * as Parameters from "../models/parameters";
15
- import { WebPubSubManagementClientContext } from "../webPubSubManagementClientContext";
14
+ import { WebPubSubManagementClient } from "../webPubSubManagementClient";
16
15
  import {
17
16
  PrivateLinkResource,
18
17
  WebPubSubPrivateLinkResourcesListNextOptionalParams,
@@ -22,16 +21,16 @@ import {
22
21
  } from "../models";
23
22
 
24
23
  /// <reference lib="esnext.asynciterable" />
25
- /** Class representing a WebPubSubPrivateLinkResources. */
24
+ /** Class containing WebPubSubPrivateLinkResources operations. */
26
25
  export class WebPubSubPrivateLinkResourcesImpl
27
26
  implements WebPubSubPrivateLinkResources {
28
- private readonly client: WebPubSubManagementClientContext;
27
+ private readonly client: WebPubSubManagementClient;
29
28
 
30
29
  /**
31
30
  * Initialize a new instance of the class WebPubSubPrivateLinkResources class.
32
31
  * @param client Reference to the service client
33
32
  */
34
- constructor(client: WebPubSubManagementClientContext) {
33
+ constructor(client: WebPubSubManagementClient) {
35
34
  this.client = client;
36
35
  }
37
36
 
@@ -6,13 +6,12 @@
6
6
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  */
8
8
 
9
- import "@azure/core-paging";
10
9
  import { PagedAsyncIterableIterator } from "@azure/core-paging";
11
10
  import { WebPubSubSharedPrivateLinkResources } from "../operationsInterfaces";
12
11
  import * as coreClient from "@azure/core-client";
13
12
  import * as Mappers from "../models/mappers";
14
13
  import * as Parameters from "../models/parameters";
15
- import { WebPubSubManagementClientContext } from "../webPubSubManagementClientContext";
14
+ import { WebPubSubManagementClient } from "../webPubSubManagementClient";
16
15
  import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro";
17
16
  import { LroImpl } from "../lroImpl";
18
17
  import {
@@ -29,16 +28,16 @@ import {
29
28
  } from "../models";
30
29
 
31
30
  /// <reference lib="esnext.asynciterable" />
32
- /** Class representing a WebPubSubSharedPrivateLinkResources. */
31
+ /** Class containing WebPubSubSharedPrivateLinkResources operations. */
33
32
  export class WebPubSubSharedPrivateLinkResourcesImpl
34
33
  implements WebPubSubSharedPrivateLinkResources {
35
- private readonly client: WebPubSubManagementClientContext;
34
+ private readonly client: WebPubSubManagementClient;
36
35
 
37
36
  /**
38
37
  * Initialize a new instance of the class WebPubSubSharedPrivateLinkResources class.
39
38
  * @param client Reference to the service client
40
39
  */
41
- constructor(client: WebPubSubManagementClientContext) {
40
+ constructor(client: WebPubSubManagementClient) {
42
41
  this.client = client;
43
42
  }
44
43
 
@@ -431,7 +430,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = {
431
430
  bodyMapper: Mappers.ErrorResponse
432
431
  }
433
432
  },
434
- requestBody: Parameters.parameters4,
433
+ requestBody: Parameters.parameters5,
435
434
  queryParameters: [Parameters.apiVersion],
436
435
  urlParameters: [
437
436
  Parameters.$host,
@@ -9,6 +9,7 @@
9
9
  export * from "./operations";
10
10
  export * from "./webPubSub";
11
11
  export * from "./usages";
12
+ export * from "./webPubSubHubs";
12
13
  export * from "./webPubSubPrivateEndpointConnections";
13
14
  export * from "./webPubSubPrivateLinkResources";
14
15
  export * from "./webPubSubSharedPrivateLinkResources";
@@ -6,7 +6,6 @@
6
6
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  */
8
8
 
9
- import "@azure/core-paging";
10
9
  import { PagedAsyncIterableIterator } from "@azure/core-paging";
11
10
  import { Operation, OperationsListOptionalParams } from "../models";
12
11
 
@@ -6,7 +6,6 @@
6
6
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  */
8
8
 
9
- import "@azure/core-paging";
10
9
  import { PagedAsyncIterableIterator } from "@azure/core-paging";
11
10
  import { SignalRServiceUsage, UsagesListOptionalParams } from "../models";
12
11
 
@@ -6,7 +6,6 @@
6
6
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  */
8
8
 
9
- import "@azure/core-paging";
10
9
  import { PagedAsyncIterableIterator } from "@azure/core-paging";
11
10
  import { PollerLike, PollOperationState } from "@azure/core-lro";
12
11
  import {
@@ -28,7 +27,9 @@ import {
28
27
  RegenerateKeyParameters,
29
28
  WebPubSubRegenerateKeyOptionalParams,
30
29
  WebPubSubRegenerateKeyResponse,
31
- WebPubSubRestartOptionalParams
30
+ WebPubSubRestartOptionalParams,
31
+ WebPubSubListSkusOptionalParams,
32
+ WebPubSubListSkusResponse
32
33
  } from "../models";
33
34
 
34
35
  /// <reference lib="esnext.asynciterable" />
@@ -235,4 +236,16 @@ export interface WebPubSub {
235
236
  resourceName: string,
236
237
  options?: WebPubSubRestartOptionalParams
237
238
  ): Promise<void>;
239
+ /**
240
+ * List all available skus of the resource.
241
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain
242
+ * this value from the Azure Resource Manager API or the portal.
243
+ * @param resourceName The name of the resource.
244
+ * @param options The options parameters.
245
+ */
246
+ listSkus(
247
+ resourceGroupName: string,
248
+ resourceName: string,
249
+ options?: WebPubSubListSkusOptionalParams
250
+ ): Promise<WebPubSubListSkusResponse>;
238
251
  }
@@ -0,0 +1,115 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+
9
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
10
+ import { PollerLike, PollOperationState } from "@azure/core-lro";
11
+ import {
12
+ WebPubSubHub,
13
+ WebPubSubHubsListOptionalParams,
14
+ WebPubSubHubsGetOptionalParams,
15
+ WebPubSubHubsGetResponse,
16
+ WebPubSubHubsCreateOrUpdateOptionalParams,
17
+ WebPubSubHubsCreateOrUpdateResponse,
18
+ WebPubSubHubsDeleteOptionalParams
19
+ } from "../models";
20
+
21
+ /// <reference lib="esnext.asynciterable" />
22
+ /** Interface representing a WebPubSubHubs. */
23
+ export interface WebPubSubHubs {
24
+ /**
25
+ * List hub settings.
26
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain
27
+ * this value from the Azure Resource Manager API or the portal.
28
+ * @param resourceName The name of the resource.
29
+ * @param options The options parameters.
30
+ */
31
+ list(
32
+ resourceGroupName: string,
33
+ resourceName: string,
34
+ options?: WebPubSubHubsListOptionalParams
35
+ ): PagedAsyncIterableIterator<WebPubSubHub>;
36
+ /**
37
+ * Get a hub setting.
38
+ * @param hubName The hub name.
39
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain
40
+ * this value from the Azure Resource Manager API or the portal.
41
+ * @param resourceName The name of the resource.
42
+ * @param options The options parameters.
43
+ */
44
+ get(
45
+ hubName: string,
46
+ resourceGroupName: string,
47
+ resourceName: string,
48
+ options?: WebPubSubHubsGetOptionalParams
49
+ ): Promise<WebPubSubHubsGetResponse>;
50
+ /**
51
+ * Create or update a hub setting.
52
+ * @param hubName The hub name.
53
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain
54
+ * this value from the Azure Resource Manager API or the portal.
55
+ * @param resourceName The name of the resource.
56
+ * @param parameters The resource of WebPubSubHub and its properties
57
+ * @param options The options parameters.
58
+ */
59
+ beginCreateOrUpdate(
60
+ hubName: string,
61
+ resourceGroupName: string,
62
+ resourceName: string,
63
+ parameters: WebPubSubHub,
64
+ options?: WebPubSubHubsCreateOrUpdateOptionalParams
65
+ ): Promise<
66
+ PollerLike<
67
+ PollOperationState<WebPubSubHubsCreateOrUpdateResponse>,
68
+ WebPubSubHubsCreateOrUpdateResponse
69
+ >
70
+ >;
71
+ /**
72
+ * Create or update a hub setting.
73
+ * @param hubName The hub name.
74
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain
75
+ * this value from the Azure Resource Manager API or the portal.
76
+ * @param resourceName The name of the resource.
77
+ * @param parameters The resource of WebPubSubHub and its properties
78
+ * @param options The options parameters.
79
+ */
80
+ beginCreateOrUpdateAndWait(
81
+ hubName: string,
82
+ resourceGroupName: string,
83
+ resourceName: string,
84
+ parameters: WebPubSubHub,
85
+ options?: WebPubSubHubsCreateOrUpdateOptionalParams
86
+ ): Promise<WebPubSubHubsCreateOrUpdateResponse>;
87
+ /**
88
+ * Delete a hub setting.
89
+ * @param hubName The hub name.
90
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain
91
+ * this value from the Azure Resource Manager API or the portal.
92
+ * @param resourceName The name of the resource.
93
+ * @param options The options parameters.
94
+ */
95
+ beginDelete(
96
+ hubName: string,
97
+ resourceGroupName: string,
98
+ resourceName: string,
99
+ options?: WebPubSubHubsDeleteOptionalParams
100
+ ): Promise<PollerLike<PollOperationState<void>, void>>;
101
+ /**
102
+ * Delete a hub setting.
103
+ * @param hubName The hub name.
104
+ * @param resourceGroupName The name of the resource group that contains the resource. You can obtain
105
+ * this value from the Azure Resource Manager API or the portal.
106
+ * @param resourceName The name of the resource.
107
+ * @param options The options parameters.
108
+ */
109
+ beginDeleteAndWait(
110
+ hubName: string,
111
+ resourceGroupName: string,
112
+ resourceName: string,
113
+ options?: WebPubSubHubsDeleteOptionalParams
114
+ ): Promise<void>;
115
+ }
@@ -6,7 +6,6 @@
6
6
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  */
8
8
 
9
- import "@azure/core-paging";
10
9
  import { PagedAsyncIterableIterator } from "@azure/core-paging";
11
10
  import { PollerLike, PollOperationState } from "@azure/core-lro";
12
11
  import {
@@ -6,7 +6,6 @@
6
6
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  */
8
8
 
9
- import "@azure/core-paging";
10
9
  import { PagedAsyncIterableIterator } from "@azure/core-paging";
11
10
  import {
12
11
  PrivateLinkResource,
@@ -6,7 +6,6 @@
6
6
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  */
8
8
 
9
- import "@azure/core-paging";
10
9
  import { PagedAsyncIterableIterator } from "@azure/core-paging";
11
10
  import { PollerLike, PollOperationState } from "@azure/core-lro";
12
11
  import {
@@ -6,11 +6,13 @@
6
6
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  */
8
8
 
9
+ import * as coreClient from "@azure/core-client";
9
10
  import * as coreAuth from "@azure/core-auth";
10
11
  import {
11
12
  OperationsImpl,
12
13
  WebPubSubImpl,
13
14
  UsagesImpl,
15
+ WebPubSubHubsImpl,
14
16
  WebPubSubPrivateEndpointConnectionsImpl,
15
17
  WebPubSubPrivateLinkResourcesImpl,
16
18
  WebPubSubSharedPrivateLinkResourcesImpl
@@ -19,14 +21,18 @@ import {
19
21
  Operations,
20
22
  WebPubSub,
21
23
  Usages,
24
+ WebPubSubHubs,
22
25
  WebPubSubPrivateEndpointConnections,
23
26
  WebPubSubPrivateLinkResources,
24
27
  WebPubSubSharedPrivateLinkResources
25
28
  } from "./operationsInterfaces";
26
- import { WebPubSubManagementClientContext } from "./webPubSubManagementClientContext";
27
29
  import { WebPubSubManagementClientOptionalParams } from "./models";
28
30
 
29
- export class WebPubSubManagementClient extends WebPubSubManagementClientContext {
31
+ export class WebPubSubManagementClient extends coreClient.ServiceClient {
32
+ $host: string;
33
+ apiVersion: string;
34
+ subscriptionId: string;
35
+
30
36
  /**
31
37
  * Initializes a new instance of the WebPubSubManagementClient class.
32
38
  * @param credentials Subscription credentials which uniquely identify client subscription.
@@ -39,10 +45,50 @@ export class WebPubSubManagementClient extends WebPubSubManagementClientContext
39
45
  subscriptionId: string,
40
46
  options?: WebPubSubManagementClientOptionalParams
41
47
  ) {
42
- super(credentials, subscriptionId, options);
48
+ if (credentials === undefined) {
49
+ throw new Error("'credentials' cannot be null");
50
+ }
51
+ if (subscriptionId === undefined) {
52
+ throw new Error("'subscriptionId' cannot be null");
53
+ }
54
+
55
+ // Initializing default values for options
56
+ if (!options) {
57
+ options = {};
58
+ }
59
+ const defaults: WebPubSubManagementClientOptionalParams = {
60
+ requestContentType: "application/json; charset=utf-8",
61
+ credential: credentials
62
+ };
63
+
64
+ const packageDetails = `azsdk-js-arm-webpubsub/1.0.0`;
65
+ const userAgentPrefix =
66
+ options.userAgentOptions && options.userAgentOptions.userAgentPrefix
67
+ ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
68
+ : `${packageDetails}`;
69
+
70
+ if (!options.credentialScopes) {
71
+ options.credentialScopes = ["https://management.azure.com/.default"];
72
+ }
73
+ const optionsWithDefaults = {
74
+ ...defaults,
75
+ ...options,
76
+ userAgentOptions: {
77
+ userAgentPrefix
78
+ },
79
+ baseUri: options.endpoint || "https://management.azure.com"
80
+ };
81
+ super(optionsWithDefaults);
82
+ // Parameter assignments
83
+ this.subscriptionId = subscriptionId;
84
+
85
+ // Assigning values to Constant parameters
86
+ this.$host = options.$host || "https://management.azure.com";
87
+ this.apiVersion = options.apiVersion || "2021-10-01";
43
88
  this.operations = new OperationsImpl(this);
44
89
  this.webPubSub = new WebPubSubImpl(this);
45
90
  this.usages = new UsagesImpl(this);
91
+ this.webPubSubHubs = new WebPubSubHubsImpl(this);
46
92
  this.webPubSubPrivateEndpointConnections = new WebPubSubPrivateEndpointConnectionsImpl(
47
93
  this
48
94
  );
@@ -57,6 +103,7 @@ export class WebPubSubManagementClient extends WebPubSubManagementClientContext
57
103
  operations: Operations;
58
104
  webPubSub: WebPubSub;
59
105
  usages: Usages;
106
+ webPubSubHubs: WebPubSubHubs;
60
107
  webPubSubPrivateEndpointConnections: WebPubSubPrivateEndpointConnections;
61
108
  webPubSubPrivateLinkResources: WebPubSubPrivateLinkResources;
62
109
  webPubSubSharedPrivateLinkResources: WebPubSubSharedPrivateLinkResources;
package/tsconfig.json CHANGED
@@ -11,9 +11,9 @@
11
11
  "forceConsistentCasingInFileNames": true,
12
12
  "lib": ["es6", "dom"],
13
13
  "declaration": true,
14
- "outDir": "./esm",
14
+ "outDir": "./dist-esm",
15
15
  "importHelpers": true
16
16
  },
17
- "include": ["./src/**/*.ts"],
17
+ "include": ["./src/**/*.ts", "./test/**/*.ts"],
18
18
  "exclude": ["node_modules"]
19
19
  }