@azure/arm-notificationhubs 2.1.1-alpha.20240312.1 → 3.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 (179) hide show
  1. package/CHANGELOG.md +170 -9
  2. package/LICENSE +1 -1
  3. package/README.md +2 -2
  4. package/dist/index.js +3826 -1755
  5. package/dist/index.js.map +1 -1
  6. package/dist/index.min.js +1 -1
  7. package/dist/index.min.js.map +1 -1
  8. package/dist-esm/samples-dev/namespacesCheckAvailabilitySample.js +14 -6
  9. package/dist-esm/samples-dev/namespacesCheckAvailabilitySample.js.map +1 -1
  10. package/dist-esm/samples-dev/namespacesCreateOrUpdateAuthorizationRuleSample.js +15 -7
  11. package/dist-esm/samples-dev/namespacesCreateOrUpdateAuthorizationRuleSample.js.map +1 -1
  12. package/dist-esm/samples-dev/namespacesCreateOrUpdateSample.js +25 -10
  13. package/dist-esm/samples-dev/namespacesCreateOrUpdateSample.js.map +1 -1
  14. package/dist-esm/samples-dev/namespacesDeleteAuthorizationRuleSample.js +13 -5
  15. package/dist-esm/samples-dev/namespacesDeleteAuthorizationRuleSample.js.map +1 -1
  16. package/dist-esm/samples-dev/namespacesDeleteSample.js +14 -6
  17. package/dist-esm/samples-dev/namespacesDeleteSample.js.map +1 -1
  18. package/dist-esm/samples-dev/namespacesGetAuthorizationRuleSample.js +13 -5
  19. package/dist-esm/samples-dev/namespacesGetAuthorizationRuleSample.js.map +1 -1
  20. package/dist-esm/samples-dev/namespacesGetPnsCredentialsSample.d.ts +2 -0
  21. package/dist-esm/samples-dev/namespacesGetPnsCredentialsSample.d.ts.map +1 -0
  22. package/dist-esm/samples-dev/namespacesGetPnsCredentialsSample.js +39 -0
  23. package/dist-esm/samples-dev/namespacesGetPnsCredentialsSample.js.map +1 -0
  24. package/dist-esm/samples-dev/namespacesGetSample.js +15 -7
  25. package/dist-esm/samples-dev/namespacesGetSample.js.map +1 -1
  26. package/dist-esm/samples-dev/namespacesListAllSample.js +14 -6
  27. package/dist-esm/samples-dev/namespacesListAllSample.js.map +1 -1
  28. package/dist-esm/samples-dev/namespacesListAuthorizationRulesSample.js +13 -5
  29. package/dist-esm/samples-dev/namespacesListAuthorizationRulesSample.js.map +1 -1
  30. package/dist-esm/samples-dev/namespacesListKeysSample.js +15 -7
  31. package/dist-esm/samples-dev/namespacesListKeysSample.js.map +1 -1
  32. package/dist-esm/samples-dev/namespacesListSample.js +15 -7
  33. package/dist-esm/samples-dev/namespacesListSample.js.map +1 -1
  34. package/dist-esm/samples-dev/namespacesRegenerateKeysSample.js +14 -6
  35. package/dist-esm/samples-dev/namespacesRegenerateKeysSample.js.map +1 -1
  36. package/dist-esm/samples-dev/namespacesUpdateSample.d.ts +2 -0
  37. package/dist-esm/samples-dev/namespacesUpdateSample.d.ts.map +1 -0
  38. package/dist-esm/samples-dev/namespacesUpdateSample.js +51 -0
  39. package/dist-esm/samples-dev/namespacesUpdateSample.js.map +1 -0
  40. package/dist-esm/samples-dev/notificationHubsCheckNotificationHubAvailabilitySample.js +15 -7
  41. package/dist-esm/samples-dev/notificationHubsCheckNotificationHubAvailabilitySample.js.map +1 -1
  42. package/dist-esm/samples-dev/notificationHubsCreateOrUpdateAuthorizationRuleSample.js +16 -8
  43. package/dist-esm/samples-dev/notificationHubsCreateOrUpdateAuthorizationRuleSample.js.map +1 -1
  44. package/dist-esm/samples-dev/notificationHubsCreateOrUpdateSample.js +15 -9
  45. package/dist-esm/samples-dev/notificationHubsCreateOrUpdateSample.js.map +1 -1
  46. package/dist-esm/samples-dev/notificationHubsDebugSendSample.js +16 -10
  47. package/dist-esm/samples-dev/notificationHubsDebugSendSample.js.map +1 -1
  48. package/dist-esm/samples-dev/notificationHubsDeleteAuthorizationRuleSample.js +13 -5
  49. package/dist-esm/samples-dev/notificationHubsDeleteAuthorizationRuleSample.js.map +1 -1
  50. package/dist-esm/samples-dev/notificationHubsDeleteSample.js +13 -5
  51. package/dist-esm/samples-dev/notificationHubsDeleteSample.js.map +1 -1
  52. package/dist-esm/samples-dev/notificationHubsGetAuthorizationRuleSample.js +13 -5
  53. package/dist-esm/samples-dev/notificationHubsGetAuthorizationRuleSample.js.map +1 -1
  54. package/dist-esm/samples-dev/notificationHubsGetPnsCredentialsSample.js +15 -7
  55. package/dist-esm/samples-dev/notificationHubsGetPnsCredentialsSample.js.map +1 -1
  56. package/dist-esm/samples-dev/notificationHubsGetSample.js +15 -7
  57. package/dist-esm/samples-dev/notificationHubsGetSample.js.map +1 -1
  58. package/dist-esm/samples-dev/notificationHubsListAuthorizationRulesSample.js +13 -5
  59. package/dist-esm/samples-dev/notificationHubsListAuthorizationRulesSample.js.map +1 -1
  60. package/dist-esm/samples-dev/notificationHubsListKeysSample.js +13 -5
  61. package/dist-esm/samples-dev/notificationHubsListKeysSample.js.map +1 -1
  62. package/dist-esm/samples-dev/notificationHubsListSample.js +13 -5
  63. package/dist-esm/samples-dev/notificationHubsListSample.js.map +1 -1
  64. package/dist-esm/samples-dev/notificationHubsRegenerateKeysSample.js +14 -6
  65. package/dist-esm/samples-dev/notificationHubsRegenerateKeysSample.js.map +1 -1
  66. package/dist-esm/samples-dev/notificationHubsUpdateSample.d.ts +2 -0
  67. package/dist-esm/samples-dev/notificationHubsUpdateSample.d.ts.map +1 -0
  68. package/dist-esm/samples-dev/notificationHubsUpdateSample.js +47 -0
  69. package/dist-esm/samples-dev/notificationHubsUpdateSample.js.map +1 -0
  70. package/dist-esm/samples-dev/operationsListSample.js +13 -5
  71. package/dist-esm/samples-dev/operationsListSample.js.map +1 -1
  72. package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.d.ts +2 -0
  73. package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.d.ts.map +1 -0
  74. package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.js +42 -0
  75. package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.js.map +1 -0
  76. package/dist-esm/samples-dev/privateEndpointConnectionsGetGroupIdSample.d.ts +2 -0
  77. package/dist-esm/samples-dev/privateEndpointConnectionsGetGroupIdSample.d.ts.map +1 -0
  78. package/dist-esm/samples-dev/privateEndpointConnectionsGetGroupIdSample.js +42 -0
  79. package/dist-esm/samples-dev/privateEndpointConnectionsGetGroupIdSample.js.map +1 -0
  80. package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.d.ts +2 -0
  81. package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.d.ts.map +1 -0
  82. package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.js +42 -0
  83. package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.js.map +1 -0
  84. package/dist-esm/samples-dev/privateEndpointConnectionsListGroupIdsSample.d.ts +2 -0
  85. package/dist-esm/samples-dev/privateEndpointConnectionsListGroupIdsSample.d.ts.map +1 -0
  86. package/dist-esm/samples-dev/privateEndpointConnectionsListGroupIdsSample.js +57 -0
  87. package/dist-esm/samples-dev/privateEndpointConnectionsListGroupIdsSample.js.map +1 -0
  88. package/dist-esm/samples-dev/privateEndpointConnectionsListSample.d.ts +2 -0
  89. package/dist-esm/samples-dev/privateEndpointConnectionsListSample.d.ts.map +1 -0
  90. package/dist-esm/samples-dev/privateEndpointConnectionsListSample.js +57 -0
  91. package/dist-esm/samples-dev/privateEndpointConnectionsListSample.js.map +1 -0
  92. package/dist-esm/samples-dev/privateEndpointConnectionsUpdateSample.d.ts +2 -0
  93. package/dist-esm/samples-dev/privateEndpointConnectionsUpdateSample.d.ts.map +1 -0
  94. package/dist-esm/samples-dev/privateEndpointConnectionsUpdateSample.js +48 -0
  95. package/dist-esm/samples-dev/privateEndpointConnectionsUpdateSample.js.map +1 -0
  96. package/dist-esm/src/lroImpl.d.ts +6 -11
  97. package/dist-esm/src/lroImpl.d.ts.map +1 -1
  98. package/dist-esm/src/lroImpl.js +12 -20
  99. package/dist-esm/src/lroImpl.js.map +1 -1
  100. package/dist-esm/src/models/index.d.ts +1377 -455
  101. package/dist-esm/src/models/index.d.ts.map +1 -1
  102. package/dist-esm/src/models/index.js +136 -0
  103. package/dist-esm/src/models/index.js.map +1 -1
  104. package/dist-esm/src/models/mappers.d.ts +44 -17
  105. package/dist-esm/src/models/mappers.d.ts.map +1 -1
  106. package/dist-esm/src/models/mappers.js +1972 -738
  107. package/dist-esm/src/models/mappers.js.map +1 -1
  108. package/dist-esm/src/models/parameters.d.ts +10 -6
  109. package/dist-esm/src/models/parameters.d.ts.map +1 -1
  110. package/dist-esm/src/models/parameters.js +140 -80
  111. package/dist-esm/src/models/parameters.js.map +1 -1
  112. package/dist-esm/src/notificationHubsManagementClient.d.ts +6 -6
  113. package/dist-esm/src/notificationHubsManagementClient.d.ts.map +1 -1
  114. package/dist-esm/src/notificationHubsManagementClient.js +13 -13
  115. package/dist-esm/src/notificationHubsManagementClient.js.map +1 -1
  116. package/dist-esm/src/operations/index.d.ts +3 -2
  117. package/dist-esm/src/operations/index.d.ts.map +1 -1
  118. package/dist-esm/src/operations/index.js +3 -2
  119. package/dist-esm/src/operations/index.js.map +1 -1
  120. package/dist-esm/src/operations/namespaces.d.ts +82 -81
  121. package/dist-esm/src/operations/namespaces.d.ts.map +1 -1
  122. package/dist-esm/src/operations/namespaces.js +323 -224
  123. package/dist-esm/src/operations/namespaces.js.map +1 -1
  124. package/dist-esm/src/operations/notificationHubs.d.ts +73 -74
  125. package/dist-esm/src/operations/notificationHubs.d.ts.map +1 -1
  126. package/dist-esm/src/operations/notificationHubs.js +249 -185
  127. package/dist-esm/src/operations/notificationHubs.js.map +1 -1
  128. package/dist-esm/src/operations/operations.d.ts +2 -2
  129. package/dist-esm/src/operations/operations.js +11 -12
  130. package/dist-esm/src/operations/operations.js.map +1 -1
  131. package/dist-esm/src/operations/privateEndpointConnections.d.ts +114 -0
  132. package/dist-esm/src/operations/privateEndpointConnections.d.ts.map +1 -0
  133. package/dist-esm/src/operations/privateEndpointConnections.js +466 -0
  134. package/dist-esm/src/operations/privateEndpointConnections.js.map +1 -0
  135. package/dist-esm/src/operationsInterfaces/index.d.ts +3 -2
  136. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -1
  137. package/dist-esm/src/operationsInterfaces/index.js +3 -2
  138. package/dist-esm/src/operationsInterfaces/index.js.map +1 -1
  139. package/dist-esm/src/operationsInterfaces/namespaces.d.ts +61 -58
  140. package/dist-esm/src/operationsInterfaces/namespaces.d.ts.map +1 -1
  141. package/dist-esm/src/operationsInterfaces/notificationHubs.d.ts +62 -63
  142. package/dist-esm/src/operationsInterfaces/notificationHubs.d.ts.map +1 -1
  143. package/dist-esm/src/operationsInterfaces/operations.d.ts +1 -1
  144. package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts +84 -0
  145. package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts.map +1 -0
  146. package/dist-esm/src/operationsInterfaces/privateEndpointConnections.js +9 -0
  147. package/dist-esm/src/operationsInterfaces/privateEndpointConnections.js.map +1 -0
  148. package/dist-esm/src/pagingHelper.d.ts +4 -4
  149. package/dist-esm/src/pagingHelper.js +4 -4
  150. package/dist-esm/test/notificationhubs_examples.js +16 -4
  151. package/dist-esm/test/notificationhubs_examples.js.map +1 -1
  152. package/package.json +14 -13
  153. package/review/arm-notificationhubs.api.md +548 -121
  154. package/src/lroImpl.ts +31 -23
  155. package/src/models/index.ts +1458 -467
  156. package/src/models/mappers.ts +2054 -789
  157. package/src/models/parameters.ts +152 -87
  158. package/src/notificationHubsManagementClient.ts +30 -26
  159. package/src/operations/index.ts +3 -2
  160. package/src/operations/namespaces.ts +444 -341
  161. package/src/operations/notificationHubs.ts +326 -275
  162. package/src/operations/operations.ts +18 -19
  163. package/src/operations/privateEndpointConnections.ts +629 -0
  164. package/src/operationsInterfaces/index.ts +3 -2
  165. package/src/operationsInterfaces/namespaces.ts +101 -88
  166. package/src/operationsInterfaces/notificationHubs.ts +88 -89
  167. package/src/operationsInterfaces/operations.ts +2 -2
  168. package/src/operationsInterfaces/privateEndpointConnections.ts +156 -0
  169. package/src/pagingHelper.ts +5 -5
  170. package/types/arm-notificationhubs.d.ts +1615 -549
  171. package/types/tsdoc-metadata.json +1 -1
  172. package/dist-esm/samples-dev/namespacesPatchSample.d.ts +0 -2
  173. package/dist-esm/samples-dev/namespacesPatchSample.d.ts.map +0 -1
  174. package/dist-esm/samples-dev/namespacesPatchSample.js +0 -35
  175. package/dist-esm/samples-dev/namespacesPatchSample.js.map +0 -1
  176. package/dist-esm/samples-dev/notificationHubsPatchSample.d.ts +0 -2
  177. package/dist-esm/samples-dev/notificationHubsPatchSample.d.ts.map +0 -1
  178. package/dist-esm/samples-dev/notificationHubsPatchSample.js +0 -34
  179. package/dist-esm/samples-dev/notificationHubsPatchSample.js.map +0 -1
@@ -25,17 +25,16 @@ import {
25
25
  CheckAvailabilityParameters,
26
26
  NotificationHubsCheckNotificationHubAvailabilityOptionalParams,
27
27
  NotificationHubsCheckNotificationHubAvailabilityResponse,
28
- NotificationHubCreateOrUpdateParameters,
28
+ NotificationHubsGetOptionalParams,
29
+ NotificationHubsGetResponse,
29
30
  NotificationHubsCreateOrUpdateOptionalParams,
30
31
  NotificationHubsCreateOrUpdateResponse,
31
- NotificationHubsPatchOptionalParams,
32
- NotificationHubsPatchResponse,
32
+ NotificationHubPatchParameters,
33
+ NotificationHubsUpdateOptionalParams,
34
+ NotificationHubsUpdateResponse,
33
35
  NotificationHubsDeleteOptionalParams,
34
- NotificationHubsGetOptionalParams,
35
- NotificationHubsGetResponse,
36
36
  NotificationHubsDebugSendOptionalParams,
37
37
  NotificationHubsDebugSendResponse,
38
- SharedAccessAuthorizationRuleCreateOrUpdateParameters,
39
38
  NotificationHubsCreateOrUpdateAuthorizationRuleOptionalParams,
40
39
  NotificationHubsCreateOrUpdateAuthorizationRuleResponse,
41
40
  NotificationHubsDeleteAuthorizationRuleOptionalParams,
@@ -43,13 +42,13 @@ import {
43
42
  NotificationHubsGetAuthorizationRuleResponse,
44
43
  NotificationHubsListKeysOptionalParams,
45
44
  NotificationHubsListKeysResponse,
46
- PolicykeyResource,
45
+ PolicyKeyResource,
47
46
  NotificationHubsRegenerateKeysOptionalParams,
48
47
  NotificationHubsRegenerateKeysResponse,
49
48
  NotificationHubsGetPnsCredentialsOptionalParams,
50
49
  NotificationHubsGetPnsCredentialsResponse,
51
50
  NotificationHubsListNextResponse,
52
- NotificationHubsListAuthorizationRulesNextResponse
51
+ NotificationHubsListAuthorizationRulesNextResponse,
53
52
  } from "../models";
54
53
 
55
54
  /// <reference lib="esnext.asynciterable" />
@@ -67,14 +66,14 @@ export class NotificationHubsImpl implements NotificationHubs {
67
66
 
68
67
  /**
69
68
  * Lists the notification hubs associated with a namespace.
70
- * @param resourceGroupName The name of the resource group.
71
- * @param namespaceName The namespace name.
69
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
70
+ * @param namespaceName Namespace name
72
71
  * @param options The options parameters.
73
72
  */
74
73
  public list(
75
74
  resourceGroupName: string,
76
75
  namespaceName: string,
77
- options?: NotificationHubsListOptionalParams
76
+ options?: NotificationHubsListOptionalParams,
78
77
  ): PagedAsyncIterableIterator<NotificationHubResource> {
79
78
  const iter = this.listPagingAll(resourceGroupName, namespaceName, options);
80
79
  return {
@@ -92,9 +91,9 @@ export class NotificationHubsImpl implements NotificationHubs {
92
91
  resourceGroupName,
93
92
  namespaceName,
94
93
  options,
95
- settings
94
+ settings,
96
95
  );
97
- }
96
+ },
98
97
  };
99
98
  }
100
99
 
@@ -102,7 +101,7 @@ export class NotificationHubsImpl implements NotificationHubs {
102
101
  resourceGroupName: string,
103
102
  namespaceName: string,
104
103
  options?: NotificationHubsListOptionalParams,
105
- settings?: PageSettings
104
+ settings?: PageSettings,
106
105
  ): AsyncIterableIterator<NotificationHubResource[]> {
107
106
  let result: NotificationHubsListResponse;
108
107
  let continuationToken = settings?.continuationToken;
@@ -118,7 +117,7 @@ export class NotificationHubsImpl implements NotificationHubs {
118
117
  resourceGroupName,
119
118
  namespaceName,
120
119
  continuationToken,
121
- options
120
+ options,
122
121
  );
123
122
  continuationToken = result.nextLink;
124
123
  let page = result.value || [];
@@ -130,12 +129,12 @@ export class NotificationHubsImpl implements NotificationHubs {
130
129
  private async *listPagingAll(
131
130
  resourceGroupName: string,
132
131
  namespaceName: string,
133
- options?: NotificationHubsListOptionalParams
132
+ options?: NotificationHubsListOptionalParams,
134
133
  ): AsyncIterableIterator<NotificationHubResource> {
135
134
  for await (const page of this.listPagingPage(
136
135
  resourceGroupName,
137
136
  namespaceName,
138
- options
137
+ options,
139
138
  )) {
140
139
  yield* page;
141
140
  }
@@ -143,22 +142,22 @@ export class NotificationHubsImpl implements NotificationHubs {
143
142
 
144
143
  /**
145
144
  * Gets the authorization rules for a NotificationHub.
146
- * @param resourceGroupName The name of the resource group.
147
- * @param namespaceName The namespace name
148
- * @param notificationHubName The notification hub name.
145
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
146
+ * @param namespaceName Namespace name
147
+ * @param notificationHubName Notification Hub name
149
148
  * @param options The options parameters.
150
149
  */
151
150
  public listAuthorizationRules(
152
151
  resourceGroupName: string,
153
152
  namespaceName: string,
154
153
  notificationHubName: string,
155
- options?: NotificationHubsListAuthorizationRulesOptionalParams
154
+ options?: NotificationHubsListAuthorizationRulesOptionalParams,
156
155
  ): PagedAsyncIterableIterator<SharedAccessAuthorizationRuleResource> {
157
156
  const iter = this.listAuthorizationRulesPagingAll(
158
157
  resourceGroupName,
159
158
  namespaceName,
160
159
  notificationHubName,
161
- options
160
+ options,
162
161
  );
163
162
  return {
164
163
  next() {
@@ -176,9 +175,9 @@ export class NotificationHubsImpl implements NotificationHubs {
176
175
  namespaceName,
177
176
  notificationHubName,
178
177
  options,
179
- settings
178
+ settings,
180
179
  );
181
- }
180
+ },
182
181
  };
183
182
  }
184
183
 
@@ -187,7 +186,7 @@ export class NotificationHubsImpl implements NotificationHubs {
187
186
  namespaceName: string,
188
187
  notificationHubName: string,
189
188
  options?: NotificationHubsListAuthorizationRulesOptionalParams,
190
- settings?: PageSettings
189
+ settings?: PageSettings,
191
190
  ): AsyncIterableIterator<SharedAccessAuthorizationRuleResource[]> {
192
191
  let result: NotificationHubsListAuthorizationRulesResponse;
193
192
  let continuationToken = settings?.continuationToken;
@@ -196,7 +195,7 @@ export class NotificationHubsImpl implements NotificationHubs {
196
195
  resourceGroupName,
197
196
  namespaceName,
198
197
  notificationHubName,
199
- options
198
+ options,
200
199
  );
201
200
  let page = result.value || [];
202
201
  continuationToken = result.nextLink;
@@ -209,7 +208,7 @@ export class NotificationHubsImpl implements NotificationHubs {
209
208
  namespaceName,
210
209
  notificationHubName,
211
210
  continuationToken,
212
- options
211
+ options,
213
212
  );
214
213
  continuationToken = result.nextLink;
215
214
  let page = result.value || [];
@@ -222,13 +221,13 @@ export class NotificationHubsImpl implements NotificationHubs {
222
221
  resourceGroupName: string,
223
222
  namespaceName: string,
224
223
  notificationHubName: string,
225
- options?: NotificationHubsListAuthorizationRulesOptionalParams
224
+ options?: NotificationHubsListAuthorizationRulesOptionalParams,
226
225
  ): AsyncIterableIterator<SharedAccessAuthorizationRuleResource> {
227
226
  for await (const page of this.listAuthorizationRulesPagingPage(
228
227
  resourceGroupName,
229
228
  namespaceName,
230
229
  notificationHubName,
231
- options
230
+ options,
232
231
  )) {
233
232
  yield* page;
234
233
  }
@@ -236,37 +235,56 @@ export class NotificationHubsImpl implements NotificationHubs {
236
235
 
237
236
  /**
238
237
  * Checks the availability of the given notificationHub in a namespace.
239
- * @param resourceGroupName The name of the resource group.
240
- * @param namespaceName The namespace name.
241
- * @param parameters The notificationHub name.
238
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
239
+ * @param namespaceName Namespace name
240
+ * @param parameters Request content.
242
241
  * @param options The options parameters.
243
242
  */
244
243
  checkNotificationHubAvailability(
245
244
  resourceGroupName: string,
246
245
  namespaceName: string,
247
246
  parameters: CheckAvailabilityParameters,
248
- options?: NotificationHubsCheckNotificationHubAvailabilityOptionalParams
247
+ options?: NotificationHubsCheckNotificationHubAvailabilityOptionalParams,
249
248
  ): Promise<NotificationHubsCheckNotificationHubAvailabilityResponse> {
250
249
  return this.client.sendOperationRequest(
251
250
  { resourceGroupName, namespaceName, parameters, options },
252
- checkNotificationHubAvailabilityOperationSpec
251
+ checkNotificationHubAvailabilityOperationSpec,
252
+ );
253
+ }
254
+
255
+ /**
256
+ * Gets the notification hub.
257
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
258
+ * @param namespaceName Namespace name
259
+ * @param notificationHubName Notification Hub name
260
+ * @param options The options parameters.
261
+ */
262
+ get(
263
+ resourceGroupName: string,
264
+ namespaceName: string,
265
+ notificationHubName: string,
266
+ options?: NotificationHubsGetOptionalParams,
267
+ ): Promise<NotificationHubsGetResponse> {
268
+ return this.client.sendOperationRequest(
269
+ { resourceGroupName, namespaceName, notificationHubName, options },
270
+ getOperationSpec,
253
271
  );
254
272
  }
255
273
 
256
274
  /**
257
275
  * Creates/Update a NotificationHub in a namespace.
258
- * @param resourceGroupName The name of the resource group.
259
- * @param namespaceName The namespace name.
260
- * @param notificationHubName The notification hub name.
261
- * @param parameters Parameters supplied to the create/update a NotificationHub Resource.
276
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
277
+ * @param namespaceName Namespace name
278
+ * @param notificationHubName Notification Hub name
279
+ * @param parameters Request content.
262
280
  * @param options The options parameters.
263
281
  */
264
282
  createOrUpdate(
265
283
  resourceGroupName: string,
266
284
  namespaceName: string,
267
285
  notificationHubName: string,
268
- parameters: NotificationHubCreateOrUpdateParameters,
269
- options?: NotificationHubsCreateOrUpdateOptionalParams
286
+ parameters: NotificationHubResource,
287
+ options?: NotificationHubsCreateOrUpdateOptionalParams,
270
288
  ): Promise<NotificationHubsCreateOrUpdateResponse> {
271
289
  return this.client.sendOperationRequest(
272
290
  {
@@ -274,95 +292,101 @@ export class NotificationHubsImpl implements NotificationHubs {
274
292
  namespaceName,
275
293
  notificationHubName,
276
294
  parameters,
277
- options
295
+ options,
278
296
  },
279
- createOrUpdateOperationSpec
297
+ createOrUpdateOperationSpec,
280
298
  );
281
299
  }
282
300
 
283
301
  /**
284
302
  * Patch a NotificationHub in a namespace.
285
- * @param resourceGroupName The name of the resource group.
286
- * @param namespaceName The namespace name.
287
- * @param notificationHubName The notification hub name.
303
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
304
+ * @param namespaceName Namespace name
305
+ * @param notificationHubName Notification Hub name
306
+ * @param parameters Request content.
288
307
  * @param options The options parameters.
289
308
  */
290
- patch(
309
+ update(
291
310
  resourceGroupName: string,
292
311
  namespaceName: string,
293
312
  notificationHubName: string,
294
- options?: NotificationHubsPatchOptionalParams
295
- ): Promise<NotificationHubsPatchResponse> {
313
+ parameters: NotificationHubPatchParameters,
314
+ options?: NotificationHubsUpdateOptionalParams,
315
+ ): Promise<NotificationHubsUpdateResponse> {
296
316
  return this.client.sendOperationRequest(
297
- { resourceGroupName, namespaceName, notificationHubName, options },
298
- patchOperationSpec
317
+ {
318
+ resourceGroupName,
319
+ namespaceName,
320
+ notificationHubName,
321
+ parameters,
322
+ options,
323
+ },
324
+ updateOperationSpec,
299
325
  );
300
326
  }
301
327
 
302
328
  /**
303
329
  * Deletes a notification hub associated with a namespace.
304
- * @param resourceGroupName The name of the resource group.
305
- * @param namespaceName The namespace name.
306
- * @param notificationHubName The notification hub name.
330
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
331
+ * @param namespaceName Namespace name
332
+ * @param notificationHubName Notification Hub name
307
333
  * @param options The options parameters.
308
334
  */
309
335
  delete(
310
336
  resourceGroupName: string,
311
337
  namespaceName: string,
312
338
  notificationHubName: string,
313
- options?: NotificationHubsDeleteOptionalParams
339
+ options?: NotificationHubsDeleteOptionalParams,
314
340
  ): Promise<void> {
315
341
  return this.client.sendOperationRequest(
316
342
  { resourceGroupName, namespaceName, notificationHubName, options },
317
- deleteOperationSpec
343
+ deleteOperationSpec,
318
344
  );
319
345
  }
320
346
 
321
347
  /**
322
348
  * Lists the notification hubs associated with a namespace.
323
- * @param resourceGroupName The name of the resource group.
324
- * @param namespaceName The namespace name.
325
- * @param notificationHubName The notification hub name.
349
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
350
+ * @param namespaceName Namespace name
326
351
  * @param options The options parameters.
327
352
  */
328
- get(
353
+ private _list(
329
354
  resourceGroupName: string,
330
355
  namespaceName: string,
331
- notificationHubName: string,
332
- options?: NotificationHubsGetOptionalParams
333
- ): Promise<NotificationHubsGetResponse> {
356
+ options?: NotificationHubsListOptionalParams,
357
+ ): Promise<NotificationHubsListResponse> {
334
358
  return this.client.sendOperationRequest(
335
- { resourceGroupName, namespaceName, notificationHubName, options },
336
- getOperationSpec
359
+ { resourceGroupName, namespaceName, options },
360
+ listOperationSpec,
337
361
  );
338
362
  }
339
363
 
340
364
  /**
341
- * test send a push notification
342
- * @param resourceGroupName The name of the resource group.
343
- * @param namespaceName The namespace name.
344
- * @param notificationHubName The notification hub name.
365
+ * Test send a push notification.
366
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
367
+ * @param namespaceName Namespace name
368
+ * @param notificationHubName Notification Hub name
345
369
  * @param options The options parameters.
346
370
  */
347
371
  debugSend(
348
372
  resourceGroupName: string,
349
373
  namespaceName: string,
350
374
  notificationHubName: string,
351
- options?: NotificationHubsDebugSendOptionalParams
375
+ options?: NotificationHubsDebugSendOptionalParams,
352
376
  ): Promise<NotificationHubsDebugSendResponse> {
353
377
  return this.client.sendOperationRequest(
354
378
  { resourceGroupName, namespaceName, notificationHubName, options },
355
- debugSendOperationSpec
379
+ debugSendOperationSpec,
356
380
  );
357
381
  }
358
382
 
359
383
  /**
360
384
  * Creates/Updates an authorization rule for a NotificationHub
361
- * @param resourceGroupName The name of the resource group.
362
- * @param namespaceName The namespace name.
363
- * @param notificationHubName The notification hub name.
364
- * @param authorizationRuleName Authorization Rule Name.
365
- * @param parameters The shared access authorization rule.
385
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
386
+ * @param namespaceName Namespace name
387
+ * @param notificationHubName Notification Hub name
388
+ * @param authorizationRuleName Authorization Rule Name
389
+ * @param parameters Request content.
366
390
  * @param options The options parameters.
367
391
  */
368
392
  createOrUpdateAuthorizationRule(
@@ -370,8 +394,8 @@ export class NotificationHubsImpl implements NotificationHubs {
370
394
  namespaceName: string,
371
395
  notificationHubName: string,
372
396
  authorizationRuleName: string,
373
- parameters: SharedAccessAuthorizationRuleCreateOrUpdateParameters,
374
- options?: NotificationHubsCreateOrUpdateAuthorizationRuleOptionalParams
397
+ parameters: SharedAccessAuthorizationRuleResource,
398
+ options?: NotificationHubsCreateOrUpdateAuthorizationRuleOptionalParams,
375
399
  ): Promise<NotificationHubsCreateOrUpdateAuthorizationRuleResponse> {
376
400
  return this.client.sendOperationRequest(
377
401
  {
@@ -380,18 +404,18 @@ export class NotificationHubsImpl implements NotificationHubs {
380
404
  notificationHubName,
381
405
  authorizationRuleName,
382
406
  parameters,
383
- options
407
+ options,
384
408
  },
385
- createOrUpdateAuthorizationRuleOperationSpec
409
+ createOrUpdateAuthorizationRuleOperationSpec,
386
410
  );
387
411
  }
388
412
 
389
413
  /**
390
414
  * Deletes a notificationHub authorization rule
391
- * @param resourceGroupName The name of the resource group.
392
- * @param namespaceName The namespace name.
393
- * @param notificationHubName The notification hub name.
394
- * @param authorizationRuleName Authorization Rule Name.
415
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
416
+ * @param namespaceName Namespace name
417
+ * @param notificationHubName Notification Hub name
418
+ * @param authorizationRuleName Authorization Rule Name
395
419
  * @param options The options parameters.
396
420
  */
397
421
  deleteAuthorizationRule(
@@ -399,7 +423,7 @@ export class NotificationHubsImpl implements NotificationHubs {
399
423
  namespaceName: string,
400
424
  notificationHubName: string,
401
425
  authorizationRuleName: string,
402
- options?: NotificationHubsDeleteAuthorizationRuleOptionalParams
426
+ options?: NotificationHubsDeleteAuthorizationRuleOptionalParams,
403
427
  ): Promise<void> {
404
428
  return this.client.sendOperationRequest(
405
429
  {
@@ -407,18 +431,18 @@ export class NotificationHubsImpl implements NotificationHubs {
407
431
  namespaceName,
408
432
  notificationHubName,
409
433
  authorizationRuleName,
410
- options
434
+ options,
411
435
  },
412
- deleteAuthorizationRuleOperationSpec
436
+ deleteAuthorizationRuleOperationSpec,
413
437
  );
414
438
  }
415
439
 
416
440
  /**
417
441
  * Gets an authorization rule for a NotificationHub by name.
418
- * @param resourceGroupName The name of the resource group.
419
- * @param namespaceName The namespace name
420
- * @param notificationHubName The notification hub name.
421
- * @param authorizationRuleName authorization rule name.
442
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
443
+ * @param namespaceName Namespace name
444
+ * @param notificationHubName Notification Hub name
445
+ * @param authorizationRuleName Authorization Rule Name
422
446
  * @param options The options parameters.
423
447
  */
424
448
  getAuthorizationRule(
@@ -426,7 +450,7 @@ export class NotificationHubsImpl implements NotificationHubs {
426
450
  namespaceName: string,
427
451
  notificationHubName: string,
428
452
  authorizationRuleName: string,
429
- options?: NotificationHubsGetAuthorizationRuleOptionalParams
453
+ options?: NotificationHubsGetAuthorizationRuleOptionalParams,
430
454
  ): Promise<NotificationHubsGetAuthorizationRuleResponse> {
431
455
  return this.client.sendOperationRequest(
432
456
  {
@@ -434,55 +458,37 @@ export class NotificationHubsImpl implements NotificationHubs {
434
458
  namespaceName,
435
459
  notificationHubName,
436
460
  authorizationRuleName,
437
- options
461
+ options,
438
462
  },
439
- getAuthorizationRuleOperationSpec
440
- );
441
- }
442
-
443
- /**
444
- * Lists the notification hubs associated with a namespace.
445
- * @param resourceGroupName The name of the resource group.
446
- * @param namespaceName The namespace name.
447
- * @param options The options parameters.
448
- */
449
- private _list(
450
- resourceGroupName: string,
451
- namespaceName: string,
452
- options?: NotificationHubsListOptionalParams
453
- ): Promise<NotificationHubsListResponse> {
454
- return this.client.sendOperationRequest(
455
- { resourceGroupName, namespaceName, options },
456
- listOperationSpec
463
+ getAuthorizationRuleOperationSpec,
457
464
  );
458
465
  }
459
466
 
460
467
  /**
461
468
  * Gets the authorization rules for a NotificationHub.
462
- * @param resourceGroupName The name of the resource group.
463
- * @param namespaceName The namespace name
464
- * @param notificationHubName The notification hub name.
469
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
470
+ * @param namespaceName Namespace name
471
+ * @param notificationHubName Notification Hub name
465
472
  * @param options The options parameters.
466
473
  */
467
474
  private _listAuthorizationRules(
468
475
  resourceGroupName: string,
469
476
  namespaceName: string,
470
477
  notificationHubName: string,
471
- options?: NotificationHubsListAuthorizationRulesOptionalParams
478
+ options?: NotificationHubsListAuthorizationRulesOptionalParams,
472
479
  ): Promise<NotificationHubsListAuthorizationRulesResponse> {
473
480
  return this.client.sendOperationRequest(
474
481
  { resourceGroupName, namespaceName, notificationHubName, options },
475
- listAuthorizationRulesOperationSpec
482
+ listAuthorizationRulesOperationSpec,
476
483
  );
477
484
  }
478
485
 
479
486
  /**
480
487
  * Gets the Primary and Secondary ConnectionStrings to the NotificationHub
481
- * @param resourceGroupName The name of the resource group.
482
- * @param namespaceName The namespace name.
483
- * @param notificationHubName The notification hub name.
484
- * @param authorizationRuleName The connection string of the NotificationHub for the specified
485
- * authorizationRule.
488
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
489
+ * @param namespaceName Namespace name
490
+ * @param notificationHubName Notification Hub name
491
+ * @param authorizationRuleName Authorization Rule Name
486
492
  * @param options The options parameters.
487
493
  */
488
494
  listKeys(
@@ -490,7 +496,7 @@ export class NotificationHubsImpl implements NotificationHubs {
490
496
  namespaceName: string,
491
497
  notificationHubName: string,
492
498
  authorizationRuleName: string,
493
- options?: NotificationHubsListKeysOptionalParams
499
+ options?: NotificationHubsListKeysOptionalParams,
494
500
  ): Promise<NotificationHubsListKeysResponse> {
495
501
  return this.client.sendOperationRequest(
496
502
  {
@@ -498,20 +504,19 @@ export class NotificationHubsImpl implements NotificationHubs {
498
504
  namespaceName,
499
505
  notificationHubName,
500
506
  authorizationRuleName,
501
- options
507
+ options,
502
508
  },
503
- listKeysOperationSpec
509
+ listKeysOperationSpec,
504
510
  );
505
511
  }
506
512
 
507
513
  /**
508
514
  * Regenerates the Primary/Secondary Keys to the NotificationHub Authorization Rule
509
- * @param resourceGroupName The name of the resource group.
510
- * @param namespaceName The namespace name.
511
- * @param notificationHubName The notification hub name.
512
- * @param authorizationRuleName The connection string of the NotificationHub for the specified
513
- * authorizationRule.
514
- * @param parameters Parameters supplied to regenerate the NotificationHub Authorization Rule Key.
515
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
516
+ * @param namespaceName Namespace name
517
+ * @param notificationHubName Notification Hub name
518
+ * @param authorizationRuleName Authorization Rule Name
519
+ * @param parameters Request content.
515
520
  * @param options The options parameters.
516
521
  */
517
522
  regenerateKeys(
@@ -519,8 +524,8 @@ export class NotificationHubsImpl implements NotificationHubs {
519
524
  namespaceName: string,
520
525
  notificationHubName: string,
521
526
  authorizationRuleName: string,
522
- parameters: PolicykeyResource,
523
- options?: NotificationHubsRegenerateKeysOptionalParams
527
+ parameters: PolicyKeyResource,
528
+ options?: NotificationHubsRegenerateKeysOptionalParams,
524
529
  ): Promise<NotificationHubsRegenerateKeysResponse> {
525
530
  return this.client.sendOperationRequest(
526
531
  {
@@ -529,35 +534,35 @@ export class NotificationHubsImpl implements NotificationHubs {
529
534
  notificationHubName,
530
535
  authorizationRuleName,
531
536
  parameters,
532
- options
537
+ options,
533
538
  },
534
- regenerateKeysOperationSpec
539
+ regenerateKeysOperationSpec,
535
540
  );
536
541
  }
537
542
 
538
543
  /**
539
- * Lists the PNS Credentials associated with a notification hub .
540
- * @param resourceGroupName The name of the resource group.
541
- * @param namespaceName The namespace name.
542
- * @param notificationHubName The notification hub name.
544
+ * Lists the PNS Credentials associated with a notification hub.
545
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
546
+ * @param namespaceName Namespace name
547
+ * @param notificationHubName Notification Hub name
543
548
  * @param options The options parameters.
544
549
  */
545
550
  getPnsCredentials(
546
551
  resourceGroupName: string,
547
552
  namespaceName: string,
548
553
  notificationHubName: string,
549
- options?: NotificationHubsGetPnsCredentialsOptionalParams
554
+ options?: NotificationHubsGetPnsCredentialsOptionalParams,
550
555
  ): Promise<NotificationHubsGetPnsCredentialsResponse> {
551
556
  return this.client.sendOperationRequest(
552
557
  { resourceGroupName, namespaceName, notificationHubName, options },
553
- getPnsCredentialsOperationSpec
558
+ getPnsCredentialsOperationSpec,
554
559
  );
555
560
  }
556
561
 
557
562
  /**
558
563
  * ListNext
559
- * @param resourceGroupName The name of the resource group.
560
- * @param namespaceName The namespace name.
564
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
565
+ * @param namespaceName Namespace name
561
566
  * @param nextLink The nextLink from the previous successful call to the List method.
562
567
  * @param options The options parameters.
563
568
  */
@@ -565,19 +570,19 @@ export class NotificationHubsImpl implements NotificationHubs {
565
570
  resourceGroupName: string,
566
571
  namespaceName: string,
567
572
  nextLink: string,
568
- options?: NotificationHubsListNextOptionalParams
573
+ options?: NotificationHubsListNextOptionalParams,
569
574
  ): Promise<NotificationHubsListNextResponse> {
570
575
  return this.client.sendOperationRequest(
571
576
  { resourceGroupName, namespaceName, nextLink, options },
572
- listNextOperationSpec
577
+ listNextOperationSpec,
573
578
  );
574
579
  }
575
580
 
576
581
  /**
577
582
  * ListAuthorizationRulesNext
578
- * @param resourceGroupName The name of the resource group.
579
- * @param namespaceName The namespace name
580
- * @param notificationHubName The notification hub name.
583
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
584
+ * @param namespaceName Namespace name
585
+ * @param notificationHubName Notification Hub name
581
586
  * @param nextLink The nextLink from the previous successful call to the ListAuthorizationRules method.
582
587
  * @param options The options parameters.
583
588
  */
@@ -586,7 +591,7 @@ export class NotificationHubsImpl implements NotificationHubs {
586
591
  namespaceName: string,
587
592
  notificationHubName: string,
588
593
  nextLink: string,
589
- options?: NotificationHubsListAuthorizationRulesNextOptionalParams
594
+ options?: NotificationHubsListAuthorizationRulesNextOptionalParams,
590
595
  ): Promise<NotificationHubsListAuthorizationRulesNextResponse> {
591
596
  return this.client.sendOperationRequest(
592
597
  {
@@ -594,148 +599,193 @@ export class NotificationHubsImpl implements NotificationHubs {
594
599
  namespaceName,
595
600
  notificationHubName,
596
601
  nextLink,
597
- options
602
+ options,
598
603
  },
599
- listAuthorizationRulesNextOperationSpec
604
+ listAuthorizationRulesNextOperationSpec,
600
605
  );
601
606
  }
602
607
  }
603
608
  // Operation Specifications
604
609
  const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
605
610
 
606
- const checkNotificationHubAvailabilityOperationSpec: coreClient.OperationSpec = {
607
- path:
608
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/checkNotificationHubAvailability",
609
- httpMethod: "POST",
611
+ const checkNotificationHubAvailabilityOperationSpec: coreClient.OperationSpec =
612
+ {
613
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/checkNotificationHubAvailability",
614
+ httpMethod: "POST",
615
+ responses: {
616
+ 200: {
617
+ bodyMapper: Mappers.CheckAvailabilityResult,
618
+ },
619
+ default: {
620
+ bodyMapper: Mappers.ErrorResponse,
621
+ },
622
+ },
623
+ requestBody: Parameters.parameters,
624
+ queryParameters: [Parameters.apiVersion],
625
+ urlParameters: [
626
+ Parameters.$host,
627
+ Parameters.subscriptionId,
628
+ Parameters.resourceGroupName,
629
+ Parameters.namespaceName,
630
+ ],
631
+ headerParameters: [Parameters.contentType, Parameters.accept],
632
+ mediaType: "json",
633
+ serializer,
634
+ };
635
+ const getOperationSpec: coreClient.OperationSpec = {
636
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}",
637
+ httpMethod: "GET",
610
638
  responses: {
611
639
  200: {
612
- bodyMapper: Mappers.CheckAvailabilityResult
613
- }
640
+ bodyMapper: Mappers.NotificationHubResource,
641
+ },
642
+ default: {
643
+ bodyMapper: Mappers.ErrorResponse,
644
+ },
614
645
  },
615
- requestBody: Parameters.parameters,
616
646
  queryParameters: [Parameters.apiVersion],
617
647
  urlParameters: [
618
648
  Parameters.$host,
619
649
  Parameters.subscriptionId,
620
650
  Parameters.resourceGroupName,
621
- Parameters.namespaceName
651
+ Parameters.namespaceName,
652
+ Parameters.notificationHubName,
622
653
  ],
623
- headerParameters: [Parameters.accept, Parameters.contentType],
624
- mediaType: "json",
625
- serializer
654
+ headerParameters: [Parameters.accept],
655
+ serializer,
626
656
  };
627
657
  const createOrUpdateOperationSpec: coreClient.OperationSpec = {
628
- path:
629
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}",
658
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}",
630
659
  httpMethod: "PUT",
631
660
  responses: {
632
661
  200: {
633
- bodyMapper: Mappers.NotificationHubResource
662
+ bodyMapper: Mappers.NotificationHubResource,
634
663
  },
635
664
  201: {
636
- bodyMapper: Mappers.NotificationHubResource
637
- }
665
+ bodyMapper: Mappers.NotificationHubResource,
666
+ },
667
+ default: {
668
+ bodyMapper: Mappers.ErrorResponse,
669
+ },
638
670
  },
639
- requestBody: Parameters.parameters5,
671
+ requestBody: Parameters.parameters1,
640
672
  queryParameters: [Parameters.apiVersion],
641
673
  urlParameters: [
642
674
  Parameters.$host,
643
675
  Parameters.subscriptionId,
644
676
  Parameters.resourceGroupName,
645
677
  Parameters.namespaceName,
646
- Parameters.notificationHubName
678
+ Parameters.notificationHubName,
647
679
  ],
648
- headerParameters: [Parameters.accept, Parameters.contentType],
680
+ headerParameters: [Parameters.contentType, Parameters.accept],
649
681
  mediaType: "json",
650
- serializer
682
+ serializer,
651
683
  };
652
- const patchOperationSpec: coreClient.OperationSpec = {
653
- path:
654
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}",
684
+ const updateOperationSpec: coreClient.OperationSpec = {
685
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}",
655
686
  httpMethod: "PATCH",
656
687
  responses: {
657
688
  200: {
658
- bodyMapper: Mappers.NotificationHubResource
659
- }
689
+ bodyMapper: Mappers.NotificationHubResource,
690
+ },
691
+ default: {
692
+ bodyMapper: Mappers.ErrorResponse,
693
+ },
660
694
  },
661
- requestBody: Parameters.parameters6,
695
+ requestBody: Parameters.parameters2,
662
696
  queryParameters: [Parameters.apiVersion],
663
697
  urlParameters: [
664
698
  Parameters.$host,
665
699
  Parameters.subscriptionId,
666
700
  Parameters.resourceGroupName,
667
701
  Parameters.namespaceName,
668
- Parameters.notificationHubName
702
+ Parameters.notificationHubName,
669
703
  ],
670
- headerParameters: [Parameters.accept, Parameters.contentType],
704
+ headerParameters: [Parameters.contentType, Parameters.accept],
671
705
  mediaType: "json",
672
- serializer
706
+ serializer,
673
707
  };
674
708
  const deleteOperationSpec: coreClient.OperationSpec = {
675
- path:
676
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}",
709
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}",
677
710
  httpMethod: "DELETE",
678
- responses: { 200: {} },
711
+ responses: {
712
+ 200: {},
713
+ 204: {},
714
+ default: {
715
+ bodyMapper: Mappers.ErrorResponse,
716
+ },
717
+ },
679
718
  queryParameters: [Parameters.apiVersion],
680
719
  urlParameters: [
681
720
  Parameters.$host,
682
721
  Parameters.subscriptionId,
683
722
  Parameters.resourceGroupName,
684
723
  Parameters.namespaceName,
685
- Parameters.notificationHubName
724
+ Parameters.notificationHubName,
686
725
  ],
687
- serializer
726
+ headerParameters: [Parameters.accept],
727
+ serializer,
688
728
  };
689
- const getOperationSpec: coreClient.OperationSpec = {
690
- path:
691
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}",
729
+ const listOperationSpec: coreClient.OperationSpec = {
730
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs",
692
731
  httpMethod: "GET",
693
732
  responses: {
694
733
  200: {
695
- bodyMapper: Mappers.NotificationHubResource
696
- }
734
+ bodyMapper: Mappers.NotificationHubListResult,
735
+ },
736
+ default: {
737
+ bodyMapper: Mappers.ErrorResponse,
738
+ },
697
739
  },
698
- queryParameters: [Parameters.apiVersion],
740
+ queryParameters: [
741
+ Parameters.apiVersion,
742
+ Parameters.skipToken,
743
+ Parameters.top,
744
+ ],
699
745
  urlParameters: [
700
746
  Parameters.$host,
701
747
  Parameters.subscriptionId,
702
748
  Parameters.resourceGroupName,
703
749
  Parameters.namespaceName,
704
- Parameters.notificationHubName
705
750
  ],
706
751
  headerParameters: [Parameters.accept],
707
- serializer
752
+ serializer,
708
753
  };
709
754
  const debugSendOperationSpec: coreClient.OperationSpec = {
710
- path:
711
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}/debugsend",
755
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}/debugsend",
712
756
  httpMethod: "POST",
713
757
  responses: {
714
- 201: {
715
- bodyMapper: Mappers.DebugSendResponse
716
- }
758
+ 200: {
759
+ bodyMapper: Mappers.DebugSendResponse,
760
+ },
761
+ default: {
762
+ bodyMapper: Mappers.ErrorResponse,
763
+ },
717
764
  },
718
- requestBody: Parameters.parameters7,
719
765
  queryParameters: [Parameters.apiVersion],
720
766
  urlParameters: [
721
767
  Parameters.$host,
722
768
  Parameters.subscriptionId,
723
769
  Parameters.resourceGroupName,
724
770
  Parameters.namespaceName,
725
- Parameters.notificationHubName
771
+ Parameters.notificationHubName,
726
772
  ],
727
- headerParameters: [Parameters.accept, Parameters.contentType],
728
- mediaType: "json",
729
- serializer
773
+ headerParameters: [Parameters.accept],
774
+ serializer,
730
775
  };
731
776
  const createOrUpdateAuthorizationRuleOperationSpec: coreClient.OperationSpec = {
732
- path:
733
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}/AuthorizationRules/{authorizationRuleName}",
777
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}/authorizationRules/{authorizationRuleName}",
734
778
  httpMethod: "PUT",
735
779
  responses: {
736
780
  200: {
737
- bodyMapper: Mappers.SharedAccessAuthorizationRuleResource
738
- }
781
+ bodyMapper: Mappers.SharedAccessAuthorizationRuleResource,
782
+ },
783
+ 201: {
784
+ bodyMapper: Mappers.SharedAccessAuthorizationRuleResource,
785
+ },
786
+ default: {
787
+ bodyMapper: Mappers.ErrorResponse,
788
+ },
739
789
  },
740
790
  requestBody: Parameters.parameters3,
741
791
  queryParameters: [Parameters.apiVersion],
@@ -744,37 +794,22 @@ const createOrUpdateAuthorizationRuleOperationSpec: coreClient.OperationSpec = {
744
794
  Parameters.subscriptionId,
745
795
  Parameters.resourceGroupName,
746
796
  Parameters.namespaceName,
797
+ Parameters.notificationHubName,
747
798
  Parameters.authorizationRuleName,
748
- Parameters.notificationHubName
749
799
  ],
750
- headerParameters: [Parameters.accept, Parameters.contentType],
800
+ headerParameters: [Parameters.contentType, Parameters.accept],
751
801
  mediaType: "json",
752
- serializer
802
+ serializer,
753
803
  };
754
804
  const deleteAuthorizationRuleOperationSpec: coreClient.OperationSpec = {
755
- path:
756
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}/AuthorizationRules/{authorizationRuleName}",
805
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}/authorizationRules/{authorizationRuleName}",
757
806
  httpMethod: "DELETE",
758
- responses: { 200: {}, 204: {} },
759
- queryParameters: [Parameters.apiVersion],
760
- urlParameters: [
761
- Parameters.$host,
762
- Parameters.subscriptionId,
763
- Parameters.resourceGroupName,
764
- Parameters.namespaceName,
765
- Parameters.authorizationRuleName,
766
- Parameters.notificationHubName
767
- ],
768
- serializer
769
- };
770
- const getAuthorizationRuleOperationSpec: coreClient.OperationSpec = {
771
- path:
772
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}/AuthorizationRules/{authorizationRuleName}",
773
- httpMethod: "GET",
774
807
  responses: {
775
- 200: {
776
- bodyMapper: Mappers.SharedAccessAuthorizationRuleResource
777
- }
808
+ 200: {},
809
+ 204: {},
810
+ default: {
811
+ bodyMapper: Mappers.ErrorResponse,
812
+ },
778
813
  },
779
814
  queryParameters: [Parameters.apiVersion],
780
815
  urlParameters: [
@@ -782,39 +817,45 @@ const getAuthorizationRuleOperationSpec: coreClient.OperationSpec = {
782
817
  Parameters.subscriptionId,
783
818
  Parameters.resourceGroupName,
784
819
  Parameters.namespaceName,
820
+ Parameters.notificationHubName,
785
821
  Parameters.authorizationRuleName,
786
- Parameters.notificationHubName
787
822
  ],
788
823
  headerParameters: [Parameters.accept],
789
- serializer
824
+ serializer,
790
825
  };
791
- const listOperationSpec: coreClient.OperationSpec = {
792
- path:
793
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs",
826
+ const getAuthorizationRuleOperationSpec: coreClient.OperationSpec = {
827
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}/authorizationRules/{authorizationRuleName}",
794
828
  httpMethod: "GET",
795
829
  responses: {
796
830
  200: {
797
- bodyMapper: Mappers.NotificationHubListResult
798
- }
831
+ bodyMapper: Mappers.SharedAccessAuthorizationRuleResource,
832
+ },
833
+ default: {
834
+ bodyMapper: Mappers.ErrorResponse,
835
+ },
799
836
  },
800
837
  queryParameters: [Parameters.apiVersion],
801
838
  urlParameters: [
802
839
  Parameters.$host,
803
840
  Parameters.subscriptionId,
804
841
  Parameters.resourceGroupName,
805
- Parameters.namespaceName
842
+ Parameters.namespaceName,
843
+ Parameters.notificationHubName,
844
+ Parameters.authorizationRuleName,
806
845
  ],
807
846
  headerParameters: [Parameters.accept],
808
- serializer
847
+ serializer,
809
848
  };
810
849
  const listAuthorizationRulesOperationSpec: coreClient.OperationSpec = {
811
- path:
812
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}/AuthorizationRules",
850
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}/authorizationRules",
813
851
  httpMethod: "GET",
814
852
  responses: {
815
853
  200: {
816
- bodyMapper: Mappers.SharedAccessAuthorizationRuleListResult
817
- }
854
+ bodyMapper: Mappers.SharedAccessAuthorizationRuleListResult,
855
+ },
856
+ default: {
857
+ bodyMapper: Mappers.ErrorResponse,
858
+ },
818
859
  },
819
860
  queryParameters: [Parameters.apiVersion],
820
861
  urlParameters: [
@@ -822,19 +863,21 @@ const listAuthorizationRulesOperationSpec: coreClient.OperationSpec = {
822
863
  Parameters.subscriptionId,
823
864
  Parameters.resourceGroupName,
824
865
  Parameters.namespaceName,
825
- Parameters.notificationHubName
866
+ Parameters.notificationHubName,
826
867
  ],
827
868
  headerParameters: [Parameters.accept],
828
- serializer
869
+ serializer,
829
870
  };
830
871
  const listKeysOperationSpec: coreClient.OperationSpec = {
831
- path:
832
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}/AuthorizationRules/{authorizationRuleName}/listKeys",
872
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}/authorizationRules/{authorizationRuleName}/listKeys",
833
873
  httpMethod: "POST",
834
874
  responses: {
835
875
  200: {
836
- bodyMapper: Mappers.ResourceListKeys
837
- }
876
+ bodyMapper: Mappers.ResourceListKeys,
877
+ },
878
+ default: {
879
+ bodyMapper: Mappers.ErrorResponse,
880
+ },
838
881
  },
839
882
  queryParameters: [Parameters.apiVersion],
840
883
  urlParameters: [
@@ -842,20 +885,22 @@ const listKeysOperationSpec: coreClient.OperationSpec = {
842
885
  Parameters.subscriptionId,
843
886
  Parameters.resourceGroupName,
844
887
  Parameters.namespaceName,
888
+ Parameters.notificationHubName,
845
889
  Parameters.authorizationRuleName,
846
- Parameters.notificationHubName
847
890
  ],
848
891
  headerParameters: [Parameters.accept],
849
- serializer
892
+ serializer,
850
893
  };
851
894
  const regenerateKeysOperationSpec: coreClient.OperationSpec = {
852
- path:
853
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}/AuthorizationRules/{authorizationRuleName}/regenerateKeys",
895
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}/authorizationRules/{authorizationRuleName}/regenerateKeys",
854
896
  httpMethod: "POST",
855
897
  responses: {
856
898
  200: {
857
- bodyMapper: Mappers.ResourceListKeys
858
- }
899
+ bodyMapper: Mappers.ResourceListKeys,
900
+ },
901
+ default: {
902
+ bodyMapper: Mappers.ErrorResponse,
903
+ },
859
904
  },
860
905
  requestBody: Parameters.parameters4,
861
906
  queryParameters: [Parameters.apiVersion],
@@ -864,21 +909,23 @@ const regenerateKeysOperationSpec: coreClient.OperationSpec = {
864
909
  Parameters.subscriptionId,
865
910
  Parameters.resourceGroupName,
866
911
  Parameters.namespaceName,
912
+ Parameters.notificationHubName,
867
913
  Parameters.authorizationRuleName,
868
- Parameters.notificationHubName
869
914
  ],
870
- headerParameters: [Parameters.accept, Parameters.contentType],
915
+ headerParameters: [Parameters.contentType, Parameters.accept],
871
916
  mediaType: "json",
872
- serializer
917
+ serializer,
873
918
  };
874
919
  const getPnsCredentialsOperationSpec: coreClient.OperationSpec = {
875
- path:
876
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}/pnsCredentials",
920
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}/pnsCredentials",
877
921
  httpMethod: "POST",
878
922
  responses: {
879
923
  200: {
880
- bodyMapper: Mappers.PnsCredentialsResource
881
- }
924
+ bodyMapper: Mappers.PnsCredentialsResource,
925
+ },
926
+ default: {
927
+ bodyMapper: Mappers.ErrorResponse,
928
+ },
882
929
  },
883
930
  queryParameters: [Parameters.apiVersion],
884
931
  urlParameters: [
@@ -886,47 +933,51 @@ const getPnsCredentialsOperationSpec: coreClient.OperationSpec = {
886
933
  Parameters.subscriptionId,
887
934
  Parameters.resourceGroupName,
888
935
  Parameters.namespaceName,
889
- Parameters.notificationHubName
936
+ Parameters.notificationHubName,
890
937
  ],
891
938
  headerParameters: [Parameters.accept],
892
- serializer
939
+ serializer,
893
940
  };
894
941
  const listNextOperationSpec: coreClient.OperationSpec = {
895
942
  path: "{nextLink}",
896
943
  httpMethod: "GET",
897
944
  responses: {
898
945
  200: {
899
- bodyMapper: Mappers.NotificationHubListResult
900
- }
946
+ bodyMapper: Mappers.NotificationHubListResult,
947
+ },
948
+ default: {
949
+ bodyMapper: Mappers.ErrorResponse,
950
+ },
901
951
  },
902
- queryParameters: [Parameters.apiVersion],
903
952
  urlParameters: [
904
953
  Parameters.$host,
905
- Parameters.nextLink,
906
954
  Parameters.subscriptionId,
907
955
  Parameters.resourceGroupName,
908
- Parameters.namespaceName
956
+ Parameters.namespaceName,
957
+ Parameters.nextLink,
909
958
  ],
910
959
  headerParameters: [Parameters.accept],
911
- serializer
960
+ serializer,
912
961
  };
913
962
  const listAuthorizationRulesNextOperationSpec: coreClient.OperationSpec = {
914
963
  path: "{nextLink}",
915
964
  httpMethod: "GET",
916
965
  responses: {
917
966
  200: {
918
- bodyMapper: Mappers.SharedAccessAuthorizationRuleListResult
919
- }
967
+ bodyMapper: Mappers.SharedAccessAuthorizationRuleListResult,
968
+ },
969
+ default: {
970
+ bodyMapper: Mappers.ErrorResponse,
971
+ },
920
972
  },
921
- queryParameters: [Parameters.apiVersion],
922
973
  urlParameters: [
923
974
  Parameters.$host,
924
- Parameters.nextLink,
925
975
  Parameters.subscriptionId,
926
976
  Parameters.resourceGroupName,
927
977
  Parameters.namespaceName,
928
- Parameters.notificationHubName
978
+ Parameters.notificationHubName,
979
+ Parameters.nextLink,
929
980
  ],
930
981
  headerParameters: [Parameters.accept],
931
- serializer
982
+ serializer,
932
983
  };