@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
@@ -25,11 +25,11 @@ export interface Operation {
25
25
  name?: string;
26
26
  /** If the operation is a data action. (for data plane rbac) */
27
27
  isDataAction?: boolean;
28
- /** The object that describes the operation. */
28
+ /** The object that describes a operation. */
29
29
  display?: OperationDisplay;
30
30
  /** Optional. The intended executor of the operation; governs the display of the operation in the RBAC UX and the audit logs UX. */
31
31
  origin?: string;
32
- /** Extra properties for the operation. */
32
+ /** Extra Operation properties. */
33
33
  properties?: OperationProperties;
34
34
  }
35
35
 
@@ -47,7 +47,7 @@ export interface OperationDisplay {
47
47
 
48
48
  /** Extra Operation properties. */
49
49
  export interface OperationProperties {
50
- /** The service specifications. */
50
+ /** An object that describes a specification. */
51
51
  serviceSpecification?: ServiceSpecification;
52
52
  }
53
53
 
@@ -214,25 +214,6 @@ export interface WebPubSubResourceList {
214
214
  nextLink?: string;
215
215
  }
216
216
 
217
- /** The core properties of ARM resources. */
218
- export interface Resource {
219
- /**
220
- * Fully qualified resource Id for the resource.
221
- * NOTE: This property will not be serialized. It can only be populated by the server.
222
- */
223
- readonly id?: string;
224
- /**
225
- * The name of the resource.
226
- * NOTE: This property will not be serialized. It can only be populated by the server.
227
- */
228
- readonly name?: string;
229
- /**
230
- * The type of the resource - e.g. "Microsoft.SignalRService/SignalR"
231
- * NOTE: This property will not be serialized. It can only be populated by the server.
232
- */
233
- readonly type?: string;
234
- }
235
-
236
217
  /** The billing information of the resource. */
237
218
  export interface ResourceSku {
238
219
  /**
@@ -299,89 +280,88 @@ export interface PrivateLinkServiceConnectionState {
299
280
  actionsRequired?: string;
300
281
  }
301
282
 
283
+ /** The core properties of ARM resources. */
284
+ export interface Resource {
285
+ /**
286
+ * Fully qualified resource Id for the resource.
287
+ * NOTE: This property will not be serialized. It can only be populated by the server.
288
+ */
289
+ readonly id?: string;
290
+ /**
291
+ * The name of the resource.
292
+ * NOTE: This property will not be serialized. It can only be populated by the server.
293
+ */
294
+ readonly name?: string;
295
+ /**
296
+ * The type of the resource - e.g. "Microsoft.SignalRService/SignalR"
297
+ * NOTE: This property will not be serialized. It can only be populated by the server.
298
+ */
299
+ readonly type?: string;
300
+ }
301
+
302
302
  /** TLS settings for the resource */
303
303
  export interface WebPubSubTlsSettings {
304
304
  /** Request client certificate during TLS handshake if enabled */
305
305
  clientCertEnabled?: boolean;
306
306
  }
307
307
 
308
- /** Diagnostic configuration of a Microsoft.SignalRService resource. Used together with Azure monitor DiagnosticSettings. */
309
- export interface DiagnosticConfiguration {
308
+ /** Live trace configuration of a Microsoft.SignalRService resource. */
309
+ export interface LiveTraceConfiguration {
310
310
  /**
311
- * Indicate whether or not enable Connectivity logs.
312
- * Available values: Enabled, Disabled.
311
+ * Indicates whether or not enable live trace.
312
+ * When it's set to true, live trace client can connect to the service.
313
+ * Otherwise, live trace client can't connect to the service, so that you are unable to receive any log, no matter what you configure in "categories".
314
+ * Available values: true, false.
313
315
  * Case insensitive.
314
316
  */
315
- enableConnectivityLogs?: string;
317
+ enabled?: string;
318
+ /** Gets or sets the list of category configurations. */
319
+ categories?: LiveTraceCategory[];
320
+ }
321
+
322
+ /** Live trace category configuration of a Microsoft.SignalRService resource. */
323
+ export interface LiveTraceCategory {
316
324
  /**
317
- * Indicate whether or not enable Messaging logs.
318
- * Available values: Enabled, Disabled.
325
+ * Gets or sets the live trace category's name.
326
+ * Available values: ConnectivityLogs, MessagingLogs.
319
327
  * Case insensitive.
320
328
  */
321
- enableMessagingLogs?: string;
329
+ name?: string;
322
330
  /**
323
- * Indicate whether or not enable Live Trace.
324
- * Available values: Enabled, Disabled.
331
+ * Indicates whether or the live trace category is enabled.
332
+ * Available values: true, false.
325
333
  * Case insensitive.
326
- * Live Trace allows you to know what's happening inside Azure SignalR service, it will give you live traces in real time, it will be helpful when you developing your own Azure SignalR based web application or self-troubleshooting some issues.
327
334
  */
328
- enableLiveTrace?: string;
335
+ enabled?: string;
329
336
  }
330
337
 
331
- /** The settings for event handler in webpubsub service */
332
- export interface EventHandlerSettings {
333
- /** Get or set the EventHandler items. The key is the hub name and the value is the corresponding EventHandlerTemplate. */
334
- items?: { [propertyName: string]: EventHandlerTemplate[] };
338
+ /** Resource log configuration of a Microsoft.SignalRService resource. */
339
+ export interface ResourceLogConfiguration {
340
+ /** Gets or sets the list of category configurations. */
341
+ categories?: ResourceLogCategory[];
335
342
  }
336
343
 
337
- /** EventHandler template item settings. */
338
- export interface EventHandlerTemplate {
344
+ /** Resource log category configuration of a Microsoft.SignalRService resource. */
345
+ export interface ResourceLogCategory {
339
346
  /**
340
- * Gets or sets the EventHandler URL template. You can use a predefined parameter {hub} and {event} inside the template, the value of the EventHandler URL is dynamically calculated when the client request comes in.
341
- * For example, UrlTemplate can be `http://example.com/api/{hub}/{event}`. The host part can't contains parameters.
342
- */
343
- urlTemplate: string;
344
- /**
345
- * Gets or sets the matching pattern for event names.
346
- * There are 3 kind of patterns supported:
347
- * 1. "*", it to matches any event name
348
- * 2. Combine multiple events with ",", for example "event1,event2", it matches event "event1" and "event2"
349
- * 3. The single event name, for example, "event1", it matches "event1"
350
- */
351
- userEventPattern?: string;
352
- /**
353
- * Gets ot sets the system event pattern.
354
- * There are 2 kind of patterns supported:
355
- * 1. The single event name, for example, "connect", it matches "connect"
356
- * 2. Combine multiple events with ",", for example "connect,disconnected", it matches event "connect" and "disconnected"
347
+ * Gets or sets the resource log category's name.
348
+ * Available values: ConnectivityLogs, MessagingLogs.
349
+ * Case insensitive.
357
350
  */
358
- systemEventPattern?: string;
359
- /** Gets or sets the auth settings for an event handler. If not set, no auth is used. */
360
- auth?: UpstreamAuthSettings;
361
- }
362
-
363
- /** Upstream auth settings. */
364
- export interface UpstreamAuthSettings {
365
- /** Gets or sets the type of auth. None or ManagedIdentity is supported now. */
366
- type?: UpstreamAuthType;
367
- /** Gets or sets the managed identity settings. It's required if the auth type is set to ManagedIdentity. */
368
- managedIdentity?: ManagedIdentitySettings;
369
- }
370
-
371
- /** Managed identity settings for upstream. */
372
- export interface ManagedIdentitySettings {
351
+ name?: string;
373
352
  /**
374
- * The Resource indicating the App ID URI of the target resource.
375
- * It also appears in the aud (audience) claim of the issued token.
353
+ * Indicates whether or the resource log category is enabled.
354
+ * Available values: true, false.
355
+ * Case insensitive.
376
356
  */
377
- resource?: string;
357
+ enabled?: string;
378
358
  }
379
359
 
380
360
  /** Network ACLs for the resource */
381
361
  export interface WebPubSubNetworkACLs {
382
- /** Default action when no other rule matches */
362
+ /** Azure Networking ACL Action. */
383
363
  defaultAction?: ACLAction;
384
- /** ACL for requests from public network */
364
+ /** Network ACL */
385
365
  publicNetwork?: NetworkACL;
386
366
  /** ACLs for requests from private endpoints */
387
367
  privateEndpoints?: PrivateEndpointACL[];
@@ -397,7 +377,7 @@ export interface NetworkACL {
397
377
 
398
378
  /** A class represent managed identities used for request and response */
399
379
  export interface ManagedIdentity {
400
- /** Represent the identity type: systemAssigned, userAssigned, None */
380
+ /** Represents the identity type: systemAssigned, userAssigned, None */
401
381
  type?: ManagedIdentityType;
402
382
  /** Get or set the user assigned identities */
403
383
  userAssignedIdentities?: {
@@ -431,6 +411,64 @@ export interface UserAssignedIdentityProperty {
431
411
  readonly clientId?: string;
432
412
  }
433
413
 
414
+ /** Hub setting list */
415
+ export interface WebPubSubHubList {
416
+ /** List of hub settings to this resource. */
417
+ value?: WebPubSubHub[];
418
+ /**
419
+ * The URL the client should use to fetch the next page (per server side paging).
420
+ * It's null for now, added for future use.
421
+ * NOTE: This property will not be serialized. It can only be populated by the server.
422
+ */
423
+ readonly nextLink?: string;
424
+ }
425
+
426
+ /** Properties of a hub. */
427
+ export interface WebPubSubHubProperties {
428
+ /** Event handler of a hub. */
429
+ eventHandlers?: EventHandler[];
430
+ /** The settings for configuring if anonymous connections are allowed for this hub: "allow" or "deny". Default to "deny". */
431
+ anonymousConnectPolicy?: string;
432
+ }
433
+
434
+ /** Properties of event handler. */
435
+ export interface EventHandler {
436
+ /**
437
+ * Gets or sets the EventHandler URL template. You can use a predefined parameter {hub} and {event} inside the template, the value of the EventHandler URL is dynamically calculated when the client request comes in.
438
+ * For example, UrlTemplate can be `http://example.com/api/{hub}/{event}`. The host part can't contains parameters.
439
+ */
440
+ urlTemplate: string;
441
+ /**
442
+ * Gets or sets the matching pattern for event names.
443
+ * There are 3 kind of patterns supported:
444
+ * 1. "*", it to matches any event name
445
+ * 2. Combine multiple events with ",", for example "event1,event2", it matches event "event1" and "event2"
446
+ * 3. The single event name, for example, "event1", it matches "event1"
447
+ */
448
+ userEventPattern?: string;
449
+ /** Gets ot sets the list of system events. */
450
+ systemEvents?: string[];
451
+ /** Upstream auth settings. If not set, no auth is used for upstream messages. */
452
+ auth?: UpstreamAuthSettings;
453
+ }
454
+
455
+ /** Upstream auth settings. If not set, no auth is used for upstream messages. */
456
+ export interface UpstreamAuthSettings {
457
+ /** Upstream auth type enum. */
458
+ type?: UpstreamAuthType;
459
+ /** Managed identity settings for upstream. */
460
+ managedIdentity?: ManagedIdentitySettings;
461
+ }
462
+
463
+ /** Managed identity settings for upstream. */
464
+ export interface ManagedIdentitySettings {
465
+ /**
466
+ * The Resource indicating the App ID URI of the target resource.
467
+ * It also appears in the aud (audience) claim of the issued token.
468
+ */
469
+ resource?: string;
470
+ }
471
+
434
472
  /** A class represents the access keys of the resource. */
435
473
  export interface WebPubSubKeys {
436
474
  /** The primary access key. */
@@ -482,7 +520,7 @@ export interface ShareablePrivateLinkResourceProperties {
482
520
 
483
521
  /** Parameters describes the request to regenerate access keys */
484
522
  export interface RegenerateKeyParameters {
485
- /** The keyType to regenerate. Must be either 'primary' or 'secondary'(case-insensitive). */
523
+ /** The type of access key. */
486
524
  keyType?: KeyType;
487
525
  }
488
526
 
@@ -494,6 +532,72 @@ export interface SharedPrivateLinkResourceList {
494
532
  nextLink?: string;
495
533
  }
496
534
 
535
+ /** The list skus operation response */
536
+ export interface SkuList {
537
+ /**
538
+ * The list of skus available for the resource.
539
+ * NOTE: This property will not be serialized. It can only be populated by the server.
540
+ */
541
+ readonly value?: Sku[];
542
+ /**
543
+ * The URL the client should use to fetch the next page (per server side paging).
544
+ * It's null for now, added for future use.
545
+ * NOTE: This property will not be serialized. It can only be populated by the server.
546
+ */
547
+ readonly nextLink?: string;
548
+ }
549
+
550
+ /** Describes an available sku." */
551
+ export interface Sku {
552
+ /**
553
+ * The resource type that this object applies to
554
+ * NOTE: This property will not be serialized. It can only be populated by the server.
555
+ */
556
+ readonly resourceType?: string;
557
+ /**
558
+ * The billing information of the resource.
559
+ * NOTE: This property will not be serialized. It can only be populated by the server.
560
+ */
561
+ readonly sku?: ResourceSku;
562
+ /**
563
+ * Describes scaling information of a sku.
564
+ * NOTE: This property will not be serialized. It can only be populated by the server.
565
+ */
566
+ readonly capacity?: SkuCapacity;
567
+ }
568
+
569
+ /** Describes scaling information of a sku. */
570
+ export interface SkuCapacity {
571
+ /**
572
+ * The lowest permitted capacity for this resource
573
+ * NOTE: This property will not be serialized. It can only be populated by the server.
574
+ */
575
+ readonly minimum?: number;
576
+ /**
577
+ * The highest permitted capacity for this resource
578
+ * NOTE: This property will not be serialized. It can only be populated by the server.
579
+ */
580
+ readonly maximum?: number;
581
+ /**
582
+ * The default capacity.
583
+ * NOTE: This property will not be serialized. It can only be populated by the server.
584
+ */
585
+ readonly default?: number;
586
+ /**
587
+ * Allows capacity value list.
588
+ * NOTE: This property will not be serialized. It can only be populated by the server.
589
+ */
590
+ readonly allowedValues?: number[];
591
+ /**
592
+ * The scale type applicable to the sku.
593
+ * NOTE: This property will not be serialized. It can only be populated by the server.
594
+ */
595
+ readonly scaleType?: ScaleType;
596
+ }
597
+
598
+ /** The resource model definition for a ARM proxy resource. It will have everything other than required location and tags */
599
+ export type ProxyResource = Resource & {};
600
+
497
601
  /** The resource model definition for a ARM tracked top level resource. */
498
602
  export type TrackedResource = Resource & {
499
603
  /** The GEO location of the resource. e.g. West US | East US | North Central US | South Central US. */
@@ -502,20 +606,88 @@ export type TrackedResource = Resource & {
502
606
  tags?: { [propertyName: string]: string };
503
607
  };
504
608
 
505
- /** The resource model definition for a ARM proxy resource. It will have everything other than required location and tags */
506
- export type ProxyResource = Resource & {};
507
-
508
609
  /** ACL for a private endpoint */
509
610
  export type PrivateEndpointACL = NetworkACL & {
510
611
  /** Name of the private endpoint connection */
511
612
  name: string;
512
613
  };
513
614
 
615
+ /** A private endpoint connection to an azure resource */
616
+ export type PrivateEndpointConnection = ProxyResource & {
617
+ /**
618
+ * Metadata pertaining to creation and last modification of the resource.
619
+ * NOTE: This property will not be serialized. It can only be populated by the server.
620
+ */
621
+ readonly systemData?: SystemData;
622
+ /**
623
+ * Provisioning state of the resource.
624
+ * NOTE: This property will not be serialized. It can only be populated by the server.
625
+ */
626
+ readonly provisioningState?: ProvisioningState;
627
+ /** Private endpoint */
628
+ privateEndpoint?: PrivateEndpoint;
629
+ /**
630
+ * Group IDs
631
+ * NOTE: This property will not be serialized. It can only be populated by the server.
632
+ */
633
+ readonly groupIds?: string[];
634
+ /** Connection state of the private endpoint connection */
635
+ privateLinkServiceConnectionState?: PrivateLinkServiceConnectionState;
636
+ };
637
+
638
+ /** Describes a Shared Private Link Resource */
639
+ export type SharedPrivateLinkResource = ProxyResource & {
640
+ /**
641
+ * Metadata pertaining to creation and last modification of the resource.
642
+ * NOTE: This property will not be serialized. It can only be populated by the server.
643
+ */
644
+ readonly systemData?: SystemData;
645
+ /** The group id from the provider of resource the shared private link resource is for */
646
+ groupId?: string;
647
+ /** The resource id of the resource the shared private link resource is for */
648
+ privateLinkResourceId?: string;
649
+ /**
650
+ * Provisioning state of the resource.
651
+ * NOTE: This property will not be serialized. It can only be populated by the server.
652
+ */
653
+ readonly provisioningState?: ProvisioningState;
654
+ /** The request message for requesting approval of the shared private link resource */
655
+ requestMessage?: string;
656
+ /**
657
+ * Status of the shared private link resource
658
+ * NOTE: This property will not be serialized. It can only be populated by the server.
659
+ */
660
+ readonly status?: SharedPrivateLinkResourceStatus;
661
+ };
662
+
663
+ /** A hub setting */
664
+ export type WebPubSubHub = ProxyResource & {
665
+ /**
666
+ * Metadata pertaining to creation and last modification of the resource.
667
+ * NOTE: This property will not be serialized. It can only be populated by the server.
668
+ */
669
+ readonly systemData?: SystemData;
670
+ /** Properties of a hub. */
671
+ properties: WebPubSubHubProperties;
672
+ };
673
+
674
+ /** Private link resource */
675
+ export type PrivateLinkResource = ProxyResource & {
676
+ /** Group Id of the private link resource */
677
+ groupId?: string;
678
+ /** Required members of the private link resource */
679
+ requiredMembers?: string[];
680
+ /** Required private DNS zone names */
681
+ requiredZoneNames?: string[];
682
+ /** The list of resources that are onboarded to private link service */
683
+ shareablePrivateLinkResourceTypes?: ShareablePrivateLinkResourceType[];
684
+ };
685
+
514
686
  /** A class represent a resource. */
515
687
  export type WebPubSubResource = TrackedResource & {
516
- /** The billing information of the resource.(e.g. Free, Standard) */
688
+ /** The billing information of the resource. */
517
689
  sku?: ResourceSku;
518
- /** The managed identity response */
690
+ /** A class represent managed identities used for request and response */
519
691
  identity?: ManagedIdentity;
520
692
  /**
521
693
  * Metadata pertaining to creation and last modification of the resource.
@@ -562,13 +734,18 @@ export type WebPubSubResource = TrackedResource & {
562
734
  * NOTE: This property will not be serialized. It can only be populated by the server.
563
735
  */
564
736
  readonly sharedPrivateLinkResources?: SharedPrivateLinkResource[];
565
- /** TLS settings. */
737
+ /** TLS settings for the resource */
566
738
  tls?: WebPubSubTlsSettings;
567
- /** Diagnostic configuration of a Microsoft.SignalRService resource. Used together with Azure monitor DiagnosticSettings. */
568
- diagnosticConfiguration?: DiagnosticConfiguration;
569
- /** The settings for event handler in webpubsub service. */
570
- eventHandler?: EventHandlerSettings;
571
- /** Network ACLs */
739
+ /**
740
+ * Deprecated.
741
+ * NOTE: This property will not be serialized. It can only be populated by the server.
742
+ */
743
+ readonly hostNamePrefix?: string;
744
+ /** Live trace configuration of a Microsoft.SignalRService resource. */
745
+ liveTraceConfiguration?: LiveTraceConfiguration;
746
+ /** Resource log configuration of a Microsoft.SignalRService resource. */
747
+ resourceLogConfiguration?: ResourceLogConfiguration;
748
+ /** Network ACLs for the resource */
572
749
  networkACLs?: WebPubSubNetworkACLs;
573
750
  /**
574
751
  * Enable or disable public network access. Default to "Enabled".
@@ -590,61 +767,6 @@ export type WebPubSubResource = TrackedResource & {
590
767
  disableAadAuth?: boolean;
591
768
  };
592
769
 
593
- /** A private endpoint connection to an azure resource */
594
- export type PrivateEndpointConnection = ProxyResource & {
595
- /**
596
- * Metadata pertaining to creation and last modification of the resource.
597
- * NOTE: This property will not be serialized. It can only be populated by the server.
598
- */
599
- readonly systemData?: SystemData;
600
- /**
601
- * Provisioning state of the private endpoint connection
602
- * NOTE: This property will not be serialized. It can only be populated by the server.
603
- */
604
- readonly provisioningState?: ProvisioningState;
605
- /** Private endpoint associated with the private endpoint connection */
606
- privateEndpoint?: PrivateEndpoint;
607
- /** Connection state */
608
- privateLinkServiceConnectionState?: PrivateLinkServiceConnectionState;
609
- };
610
-
611
- /** Describes a Shared Private Link Resource */
612
- export type SharedPrivateLinkResource = ProxyResource & {
613
- /**
614
- * Metadata pertaining to creation and last modification of the resource.
615
- * NOTE: This property will not be serialized. It can only be populated by the server.
616
- */
617
- readonly systemData?: SystemData;
618
- /** The group id from the provider of resource the shared private link resource is for */
619
- groupId?: string;
620
- /** The resource id of the resource the shared private link resource is for */
621
- privateLinkResourceId?: string;
622
- /**
623
- * Provisioning state of the shared private link resource
624
- * NOTE: This property will not be serialized. It can only be populated by the server.
625
- */
626
- readonly provisioningState?: ProvisioningState;
627
- /** The request message for requesting approval of the shared private link resource */
628
- requestMessage?: string;
629
- /**
630
- * Status of the shared private link resource
631
- * NOTE: This property will not be serialized. It can only be populated by the server.
632
- */
633
- readonly status?: SharedPrivateLinkResourceStatus;
634
- };
635
-
636
- /** Private link resource */
637
- export type PrivateLinkResource = ProxyResource & {
638
- /** Group Id of the private link resource */
639
- groupId?: string;
640
- /** Required members of the private link resource */
641
- requiredMembers?: string[];
642
- /** Required private DNS zone names */
643
- requiredZoneNames?: string[];
644
- /** The list of resources that are onboarded to private link service */
645
- shareablePrivateLinkResourceTypes?: ShareablePrivateLinkResourceType[];
646
- };
647
-
648
770
  /** Known values of {@link WebPubSubSkuTier} that the service accepts. */
649
771
  export enum KnownWebPubSubSkuTier {
650
772
  Free = "Free",
@@ -757,22 +879,6 @@ export enum KnownSharedPrivateLinkResourceStatus {
757
879
  */
758
880
  export type SharedPrivateLinkResourceStatus = string;
759
881
 
760
- /** Known values of {@link UpstreamAuthType} that the service accepts. */
761
- export enum KnownUpstreamAuthType {
762
- None = "None",
763
- ManagedIdentity = "ManagedIdentity"
764
- }
765
-
766
- /**
767
- * Defines values for UpstreamAuthType. \
768
- * {@link KnownUpstreamAuthType} can be used interchangeably with UpstreamAuthType,
769
- * this enum contains the known values that the service supports.
770
- * ### Known values supported by the service
771
- * **None** \
772
- * **ManagedIdentity**
773
- */
774
- export type UpstreamAuthType = string;
775
-
776
882
  /** Known values of {@link ACLAction} that the service accepts. */
777
883
  export enum KnownACLAction {
778
884
  Allow = "Allow",
@@ -827,10 +933,27 @@ export enum KnownManagedIdentityType {
827
933
  */
828
934
  export type ManagedIdentityType = string;
829
935
 
936
+ /** Known values of {@link UpstreamAuthType} that the service accepts. */
937
+ export enum KnownUpstreamAuthType {
938
+ None = "None",
939
+ ManagedIdentity = "ManagedIdentity"
940
+ }
941
+
942
+ /**
943
+ * Defines values for UpstreamAuthType. \
944
+ * {@link KnownUpstreamAuthType} can be used interchangeably with UpstreamAuthType,
945
+ * this enum contains the known values that the service supports.
946
+ * ### Known values supported by the service
947
+ * **None** \
948
+ * **ManagedIdentity**
949
+ */
950
+ export type UpstreamAuthType = string;
951
+
830
952
  /** Known values of {@link KeyType} that the service accepts. */
831
953
  export enum KnownKeyType {
832
954
  Primary = "Primary",
833
- Secondary = "Secondary"
955
+ Secondary = "Secondary",
956
+ Salt = "Salt"
834
957
  }
835
958
 
836
959
  /**
@@ -839,10 +962,29 @@ export enum KnownKeyType {
839
962
  * this enum contains the known values that the service supports.
840
963
  * ### Known values supported by the service
841
964
  * **Primary** \
842
- * **Secondary**
965
+ * **Secondary** \
966
+ * **Salt**
843
967
  */
844
968
  export type KeyType = string;
845
969
 
970
+ /** Known values of {@link ScaleType} that the service accepts. */
971
+ export enum KnownScaleType {
972
+ None = "None",
973
+ Manual = "Manual",
974
+ Automatic = "Automatic"
975
+ }
976
+
977
+ /**
978
+ * Defines values for ScaleType. \
979
+ * {@link KnownScaleType} can be used interchangeably with ScaleType,
980
+ * this enum contains the known values that the service supports.
981
+ * ### Known values supported by the service
982
+ * **None** \
983
+ * **Manual** \
984
+ * **Automatic**
985
+ */
986
+ export type ScaleType = string;
987
+
846
988
  /** Optional parameters. */
847
989
  export interface OperationsListOptionalParams
848
990
  extends coreClient.OperationOptions {}
@@ -946,6 +1088,13 @@ export interface WebPubSubRestartOptionalParams
946
1088
  resumeFrom?: string;
947
1089
  }
948
1090
 
1091
+ /** Optional parameters. */
1092
+ export interface WebPubSubListSkusOptionalParams
1093
+ extends coreClient.OperationOptions {}
1094
+
1095
+ /** Contains response data for the listSkus operation. */
1096
+ export type WebPubSubListSkusResponse = SkuList;
1097
+
949
1098
  /** Optional parameters. */
950
1099
  export interface WebPubSubListBySubscriptionNextOptionalParams
951
1100
  extends coreClient.OperationOptions {}
@@ -973,6 +1122,48 @@ export interface UsagesListNextOptionalParams
973
1122
  /** Contains response data for the listNext operation. */
974
1123
  export type UsagesListNextResponse = SignalRServiceUsageList;
975
1124
 
1125
+ /** Optional parameters. */
1126
+ export interface WebPubSubHubsListOptionalParams
1127
+ extends coreClient.OperationOptions {}
1128
+
1129
+ /** Contains response data for the list operation. */
1130
+ export type WebPubSubHubsListResponse = WebPubSubHubList;
1131
+
1132
+ /** Optional parameters. */
1133
+ export interface WebPubSubHubsGetOptionalParams
1134
+ extends coreClient.OperationOptions {}
1135
+
1136
+ /** Contains response data for the get operation. */
1137
+ export type WebPubSubHubsGetResponse = WebPubSubHub;
1138
+
1139
+ /** Optional parameters. */
1140
+ export interface WebPubSubHubsCreateOrUpdateOptionalParams
1141
+ extends coreClient.OperationOptions {
1142
+ /** Delay to wait until next poll, in milliseconds. */
1143
+ updateIntervalInMs?: number;
1144
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
1145
+ resumeFrom?: string;
1146
+ }
1147
+
1148
+ /** Contains response data for the createOrUpdate operation. */
1149
+ export type WebPubSubHubsCreateOrUpdateResponse = WebPubSubHub;
1150
+
1151
+ /** Optional parameters. */
1152
+ export interface WebPubSubHubsDeleteOptionalParams
1153
+ extends coreClient.OperationOptions {
1154
+ /** Delay to wait until next poll, in milliseconds. */
1155
+ updateIntervalInMs?: number;
1156
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
1157
+ resumeFrom?: string;
1158
+ }
1159
+
1160
+ /** Optional parameters. */
1161
+ export interface WebPubSubHubsListNextOptionalParams
1162
+ extends coreClient.OperationOptions {}
1163
+
1164
+ /** Contains response data for the listNext operation. */
1165
+ export type WebPubSubHubsListNextResponse = WebPubSubHubList;
1166
+
976
1167
  /** Optional parameters. */
977
1168
  export interface WebPubSubPrivateEndpointConnectionsListOptionalParams
978
1169
  extends coreClient.OperationOptions {}