@azure/arm-notificationhubs 3.0.0-beta.1 → 3.0.0-beta.2

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 (482) hide show
  1. package/CHANGELOG.md +15 -5
  2. package/LICENSE +4 -4
  3. package/README.md +25 -18
  4. package/dist/browser/index.d.ts +5 -0
  5. package/dist/browser/index.d.ts.map +1 -0
  6. package/{src/index.ts → dist/browser/index.js} +5 -6
  7. package/dist/browser/index.js.map +1 -0
  8. package/{dist-esm/src → dist/browser}/lroImpl.d.ts +1 -1
  9. package/dist/browser/lroImpl.d.ts.map +1 -0
  10. package/dist/browser/lroImpl.js +18 -0
  11. package/dist/browser/lroImpl.js.map +1 -0
  12. package/{dist-esm/src → dist/browser}/models/index.d.ts +1 -1
  13. package/dist/browser/models/index.d.ts.map +1 -0
  14. package/dist/browser/models/index.js.map +1 -0
  15. package/{dist-esm/src → dist/browser}/models/mappers.d.ts +1 -1
  16. package/dist/browser/models/mappers.d.ts.map +1 -0
  17. package/{dist-esm/src → dist/browser}/models/mappers.js +170 -80
  18. package/dist/browser/models/mappers.js.map +1 -0
  19. package/{dist-esm/src → dist/browser}/models/parameters.d.ts +1 -1
  20. package/dist/browser/models/parameters.d.ts.map +1 -0
  21. package/{dist-esm/src → dist/browser}/models/parameters.js +1 -1
  22. package/dist/browser/models/parameters.js.map +1 -0
  23. package/{dist-esm/src → dist/browser}/notificationHubsManagementClient.d.ts +3 -3
  24. package/dist/browser/notificationHubsManagementClient.d.ts.map +1 -0
  25. package/{dist-esm/src → dist/browser}/notificationHubsManagementClient.js +33 -26
  26. package/dist/browser/notificationHubsManagementClient.js.map +1 -0
  27. package/dist/browser/operations/index.d.ts +5 -0
  28. package/{dist-esm/src → dist/browser}/operations/index.d.ts.map +1 -1
  29. package/{dist-esm/src → dist/browser}/operations/index.js +4 -4
  30. package/dist/browser/operations/index.js.map +1 -0
  31. package/{dist-esm/src → dist/browser}/operations/namespaces.d.ts +5 -5
  32. package/dist/browser/operations/namespaces.d.ts.map +1 -0
  33. package/{dist-esm/src → dist/browser}/operations/namespaces.js +118 -184
  34. package/dist/browser/operations/namespaces.js.map +1 -0
  35. package/{dist-esm/src → dist/browser}/operations/notificationHubs.d.ts +4 -4
  36. package/dist/browser/operations/notificationHubs.d.ts.map +1 -0
  37. package/{dist-esm/src → dist/browser}/operations/notificationHubs.js +49 -87
  38. package/dist/browser/operations/notificationHubs.js.map +1 -0
  39. package/{dist-esm/src → dist/browser}/operations/operations.d.ts +4 -4
  40. package/dist/browser/operations/operations.d.ts.map +1 -0
  41. package/{dist-esm/src → dist/browser}/operations/operations.js +26 -43
  42. package/dist/browser/operations/operations.js.map +1 -0
  43. package/{dist-esm/src → dist/browser}/operations/privateEndpointConnections.d.ts +5 -5
  44. package/dist/browser/operations/privateEndpointConnections.d.ts.map +1 -0
  45. package/{dist-esm/src → dist/browser}/operations/privateEndpointConnections.js +116 -148
  46. package/dist/browser/operations/privateEndpointConnections.js.map +1 -0
  47. package/dist/browser/operationsInterfaces/index.d.ts +5 -0
  48. package/{dist-esm/src → dist/browser}/operationsInterfaces/index.d.ts.map +1 -1
  49. package/{dist-esm/src → dist/browser}/operationsInterfaces/index.js +4 -4
  50. package/dist/browser/operationsInterfaces/index.js.map +1 -0
  51. package/{dist-esm/src → dist/browser}/operationsInterfaces/namespaces.d.ts +3 -3
  52. package/dist/browser/operationsInterfaces/namespaces.d.ts.map +1 -0
  53. package/dist/browser/operationsInterfaces/namespaces.js.map +1 -0
  54. package/{dist-esm/src → dist/browser}/operationsInterfaces/notificationHubs.d.ts +2 -2
  55. package/dist/browser/operationsInterfaces/notificationHubs.d.ts.map +1 -0
  56. package/dist/browser/operationsInterfaces/notificationHubs.js.map +1 -0
  57. package/{dist-esm/src → dist/browser}/operationsInterfaces/operations.d.ts +2 -2
  58. package/dist/browser/operationsInterfaces/operations.d.ts.map +1 -0
  59. package/dist/browser/operationsInterfaces/operations.js.map +1 -0
  60. package/{dist-esm/src → dist/browser}/operationsInterfaces/privateEndpointConnections.d.ts +3 -3
  61. package/dist/browser/operationsInterfaces/privateEndpointConnections.d.ts.map +1 -0
  62. package/dist/browser/operationsInterfaces/privateEndpointConnections.js.map +1 -0
  63. package/dist/browser/package.json +3 -0
  64. package/{dist-esm/src → dist/browser}/pagingHelper.d.ts.map +1 -1
  65. package/{dist-esm/src → dist/browser}/pagingHelper.js +2 -4
  66. package/dist/browser/pagingHelper.js.map +1 -0
  67. package/dist/commonjs/index.d.ts +5 -0
  68. package/dist/commonjs/index.d.ts.map +1 -0
  69. package/dist/commonjs/index.js +18 -0
  70. package/dist/commonjs/index.js.map +1 -0
  71. package/dist/commonjs/lroImpl.d.ts +11 -0
  72. package/dist/commonjs/lroImpl.d.ts.map +1 -0
  73. package/dist/commonjs/lroImpl.js +21 -0
  74. package/dist/commonjs/lroImpl.js.map +1 -0
  75. package/{types/arm-notificationhubs.d.ts → dist/commonjs/models/index.d.ts} +1606 -2131
  76. package/dist/commonjs/models/index.d.ts.map +1 -0
  77. package/dist/commonjs/models/index.js +157 -0
  78. package/dist/commonjs/models/index.js.map +1 -0
  79. package/dist/commonjs/models/mappers.d.ts +60 -0
  80. package/dist/commonjs/models/mappers.d.ts.map +1 -0
  81. package/dist/commonjs/models/mappers.js +2509 -0
  82. package/dist/commonjs/models/mappers.js.map +1 -0
  83. package/dist/commonjs/models/parameters.d.ts +24 -0
  84. package/dist/commonjs/models/parameters.d.ts.map +1 -0
  85. package/dist/commonjs/models/parameters.js +215 -0
  86. package/dist/commonjs/models/parameters.js.map +1 -0
  87. package/dist/commonjs/notificationHubsManagementClient.d.ts +23 -0
  88. package/dist/commonjs/notificationHubsManagementClient.d.ts.map +1 -0
  89. package/dist/commonjs/notificationHubsManagementClient.js +115 -0
  90. package/dist/commonjs/notificationHubsManagementClient.js.map +1 -0
  91. package/dist/commonjs/operations/index.d.ts +5 -0
  92. package/dist/commonjs/operations/index.d.ts.map +1 -0
  93. package/dist/commonjs/operations/index.js +15 -0
  94. package/dist/commonjs/operations/index.js.map +1 -0
  95. package/dist/commonjs/operations/namespaces.d.ts +173 -0
  96. package/dist/commonjs/operations/namespaces.d.ts.map +1 -0
  97. package/dist/commonjs/operations/namespaces.js +749 -0
  98. package/dist/commonjs/operations/namespaces.js.map +1 -0
  99. package/dist/commonjs/operations/notificationHubs.d.ts +170 -0
  100. package/dist/commonjs/operations/notificationHubs.d.ts.map +1 -0
  101. package/dist/commonjs/operations/notificationHubs.js +711 -0
  102. package/dist/commonjs/operations/notificationHubs.js.map +1 -0
  103. package/dist/commonjs/operations/operations.d.ts +32 -0
  104. package/dist/commonjs/operations/operations.d.ts.map +1 -0
  105. package/dist/commonjs/operations/operations.js +121 -0
  106. package/dist/commonjs/operations/operations.js.map +1 -0
  107. package/dist/commonjs/operations/privateEndpointConnections.d.ts +114 -0
  108. package/dist/commonjs/operations/privateEndpointConnections.d.ts.map +1 -0
  109. package/dist/commonjs/operations/privateEndpointConnections.js +439 -0
  110. package/dist/commonjs/operations/privateEndpointConnections.js.map +1 -0
  111. package/dist/commonjs/operationsInterfaces/index.d.ts +5 -0
  112. package/dist/commonjs/operationsInterfaces/index.d.ts.map +1 -0
  113. package/dist/commonjs/operationsInterfaces/index.js +15 -0
  114. package/dist/commonjs/operationsInterfaces/index.js.map +1 -0
  115. package/dist/commonjs/operationsInterfaces/namespaces.d.ts +120 -0
  116. package/dist/commonjs/operationsInterfaces/namespaces.d.ts.map +1 -0
  117. package/dist/commonjs/operationsInterfaces/namespaces.js +10 -0
  118. package/dist/commonjs/operationsInterfaces/namespaces.js.map +1 -0
  119. package/dist/commonjs/operationsInterfaces/notificationHubs.d.ts +126 -0
  120. package/dist/commonjs/operationsInterfaces/notificationHubs.d.ts.map +1 -0
  121. package/dist/commonjs/operationsInterfaces/notificationHubs.js +10 -0
  122. package/dist/commonjs/operationsInterfaces/notificationHubs.js.map +1 -0
  123. package/dist/commonjs/operationsInterfaces/operations.d.ts +11 -0
  124. package/dist/commonjs/operationsInterfaces/operations.d.ts.map +1 -0
  125. package/dist/commonjs/operationsInterfaces/operations.js +10 -0
  126. package/dist/commonjs/operationsInterfaces/operations.js.map +1 -0
  127. package/dist/commonjs/operationsInterfaces/privateEndpointConnections.d.ts +84 -0
  128. package/dist/commonjs/operationsInterfaces/privateEndpointConnections.d.ts.map +1 -0
  129. package/dist/commonjs/operationsInterfaces/privateEndpointConnections.js +10 -0
  130. package/dist/commonjs/operationsInterfaces/privateEndpointConnections.js.map +1 -0
  131. package/dist/commonjs/package.json +3 -0
  132. package/dist/commonjs/pagingHelper.d.ts +13 -0
  133. package/dist/commonjs/pagingHelper.d.ts.map +1 -0
  134. package/dist/commonjs/pagingHelper.js +34 -0
  135. package/dist/commonjs/pagingHelper.js.map +1 -0
  136. package/{types → dist/commonjs}/tsdoc-metadata.json +11 -11
  137. package/dist/esm/index.d.ts +5 -0
  138. package/dist/esm/index.d.ts.map +1 -0
  139. package/{dist-esm/src → dist/esm}/index.js +4 -5
  140. package/dist/esm/index.js.map +1 -0
  141. package/dist/esm/lroImpl.d.ts +11 -0
  142. package/dist/esm/lroImpl.d.ts.map +1 -0
  143. package/dist/esm/lroImpl.js +18 -0
  144. package/dist/esm/lroImpl.js.map +1 -0
  145. package/dist/esm/models/index.d.ts +1606 -0
  146. package/dist/esm/models/index.d.ts.map +1 -0
  147. package/dist/esm/models/index.js +154 -0
  148. package/dist/esm/models/index.js.map +1 -0
  149. package/dist/esm/models/mappers.d.ts +60 -0
  150. package/dist/esm/models/mappers.d.ts.map +1 -0
  151. package/dist/esm/models/mappers.js +2505 -0
  152. package/dist/esm/models/mappers.js.map +1 -0
  153. package/dist/esm/models/parameters.d.ts +24 -0
  154. package/dist/esm/models/parameters.d.ts.map +1 -0
  155. package/dist/esm/models/parameters.js +212 -0
  156. package/dist/esm/models/parameters.js.map +1 -0
  157. package/dist/esm/notificationHubsManagementClient.d.ts +23 -0
  158. package/dist/esm/notificationHubsManagementClient.d.ts.map +1 -0
  159. package/dist/esm/notificationHubsManagementClient.js +110 -0
  160. package/dist/esm/notificationHubsManagementClient.js.map +1 -0
  161. package/dist/esm/operations/index.d.ts +5 -0
  162. package/dist/esm/operations/index.d.ts.map +1 -0
  163. package/dist/esm/operations/index.js +12 -0
  164. package/dist/esm/operations/index.js.map +1 -0
  165. package/dist/esm/operations/namespaces.d.ts +173 -0
  166. package/dist/esm/operations/namespaces.d.ts.map +1 -0
  167. package/dist/esm/operations/namespaces.js +744 -0
  168. package/dist/esm/operations/namespaces.js.map +1 -0
  169. package/dist/esm/operations/notificationHubs.d.ts +170 -0
  170. package/dist/esm/operations/notificationHubs.d.ts.map +1 -0
  171. package/dist/esm/operations/notificationHubs.js +706 -0
  172. package/dist/esm/operations/notificationHubs.js.map +1 -0
  173. package/dist/esm/operations/operations.d.ts +32 -0
  174. package/dist/esm/operations/operations.d.ts.map +1 -0
  175. package/dist/esm/operations/operations.js +116 -0
  176. package/dist/esm/operations/operations.js.map +1 -0
  177. package/dist/esm/operations/privateEndpointConnections.d.ts +114 -0
  178. package/dist/esm/operations/privateEndpointConnections.d.ts.map +1 -0
  179. package/dist/esm/operations/privateEndpointConnections.js +434 -0
  180. package/dist/esm/operations/privateEndpointConnections.js.map +1 -0
  181. package/dist/esm/operationsInterfaces/index.d.ts +5 -0
  182. package/dist/esm/operationsInterfaces/index.d.ts.map +1 -0
  183. package/dist/esm/operationsInterfaces/index.js +12 -0
  184. package/dist/esm/operationsInterfaces/index.js.map +1 -0
  185. package/dist/esm/operationsInterfaces/namespaces.d.ts +120 -0
  186. package/dist/esm/operationsInterfaces/namespaces.d.ts.map +1 -0
  187. package/dist/esm/operationsInterfaces/namespaces.js +9 -0
  188. package/dist/esm/operationsInterfaces/namespaces.js.map +1 -0
  189. package/dist/esm/operationsInterfaces/notificationHubs.d.ts +126 -0
  190. package/dist/esm/operationsInterfaces/notificationHubs.d.ts.map +1 -0
  191. package/dist/esm/operationsInterfaces/notificationHubs.js +9 -0
  192. package/dist/esm/operationsInterfaces/notificationHubs.js.map +1 -0
  193. package/dist/esm/operationsInterfaces/operations.d.ts +11 -0
  194. package/dist/esm/operationsInterfaces/operations.d.ts.map +1 -0
  195. package/dist/esm/operationsInterfaces/operations.js +9 -0
  196. package/dist/esm/operationsInterfaces/operations.js.map +1 -0
  197. package/dist/esm/operationsInterfaces/privateEndpointConnections.d.ts +84 -0
  198. package/dist/esm/operationsInterfaces/privateEndpointConnections.d.ts.map +1 -0
  199. package/dist/esm/operationsInterfaces/privateEndpointConnections.js +9 -0
  200. package/dist/esm/operationsInterfaces/privateEndpointConnections.js.map +1 -0
  201. package/dist/esm/package.json +3 -0
  202. package/dist/esm/pagingHelper.d.ts +13 -0
  203. package/dist/esm/pagingHelper.d.ts.map +1 -0
  204. package/dist/esm/pagingHelper.js +30 -0
  205. package/dist/esm/pagingHelper.js.map +1 -0
  206. package/dist/react-native/index.d.ts +5 -0
  207. package/dist/react-native/index.d.ts.map +1 -0
  208. package/dist/react-native/index.js +12 -0
  209. package/dist/react-native/index.js.map +1 -0
  210. package/dist/react-native/lroImpl.d.ts +11 -0
  211. package/dist/react-native/lroImpl.d.ts.map +1 -0
  212. package/dist/react-native/lroImpl.js +18 -0
  213. package/dist/react-native/lroImpl.js.map +1 -0
  214. package/dist/react-native/models/index.d.ts +1606 -0
  215. package/dist/react-native/models/index.d.ts.map +1 -0
  216. package/dist/react-native/models/index.js +154 -0
  217. package/dist/react-native/models/index.js.map +1 -0
  218. package/dist/react-native/models/mappers.d.ts +60 -0
  219. package/dist/react-native/models/mappers.d.ts.map +1 -0
  220. package/dist/react-native/models/mappers.js +2505 -0
  221. package/dist/react-native/models/mappers.js.map +1 -0
  222. package/dist/react-native/models/parameters.d.ts +24 -0
  223. package/dist/react-native/models/parameters.d.ts.map +1 -0
  224. package/dist/react-native/models/parameters.js +212 -0
  225. package/dist/react-native/models/parameters.js.map +1 -0
  226. package/dist/react-native/notificationHubsManagementClient.d.ts +23 -0
  227. package/dist/react-native/notificationHubsManagementClient.d.ts.map +1 -0
  228. package/dist/react-native/notificationHubsManagementClient.js +110 -0
  229. package/dist/react-native/notificationHubsManagementClient.js.map +1 -0
  230. package/dist/react-native/operations/index.d.ts +5 -0
  231. package/dist/react-native/operations/index.d.ts.map +1 -0
  232. package/dist/react-native/operations/index.js +12 -0
  233. package/dist/react-native/operations/index.js.map +1 -0
  234. package/dist/react-native/operations/namespaces.d.ts +173 -0
  235. package/dist/react-native/operations/namespaces.d.ts.map +1 -0
  236. package/dist/react-native/operations/namespaces.js +744 -0
  237. package/dist/react-native/operations/namespaces.js.map +1 -0
  238. package/dist/react-native/operations/notificationHubs.d.ts +170 -0
  239. package/dist/react-native/operations/notificationHubs.d.ts.map +1 -0
  240. package/dist/react-native/operations/notificationHubs.js +706 -0
  241. package/dist/react-native/operations/notificationHubs.js.map +1 -0
  242. package/dist/react-native/operations/operations.d.ts +32 -0
  243. package/dist/react-native/operations/operations.d.ts.map +1 -0
  244. package/dist/react-native/operations/operations.js +116 -0
  245. package/dist/react-native/operations/operations.js.map +1 -0
  246. package/dist/react-native/operations/privateEndpointConnections.d.ts +114 -0
  247. package/dist/react-native/operations/privateEndpointConnections.d.ts.map +1 -0
  248. package/dist/react-native/operations/privateEndpointConnections.js +434 -0
  249. package/dist/react-native/operations/privateEndpointConnections.js.map +1 -0
  250. package/dist/react-native/operationsInterfaces/index.d.ts +5 -0
  251. package/dist/react-native/operationsInterfaces/index.d.ts.map +1 -0
  252. package/dist/react-native/operationsInterfaces/index.js +12 -0
  253. package/dist/react-native/operationsInterfaces/index.js.map +1 -0
  254. package/dist/react-native/operationsInterfaces/namespaces.d.ts +120 -0
  255. package/dist/react-native/operationsInterfaces/namespaces.d.ts.map +1 -0
  256. package/dist/react-native/operationsInterfaces/namespaces.js +9 -0
  257. package/dist/react-native/operationsInterfaces/namespaces.js.map +1 -0
  258. package/dist/react-native/operationsInterfaces/notificationHubs.d.ts +126 -0
  259. package/dist/react-native/operationsInterfaces/notificationHubs.d.ts.map +1 -0
  260. package/dist/react-native/operationsInterfaces/notificationHubs.js +9 -0
  261. package/dist/react-native/operationsInterfaces/notificationHubs.js.map +1 -0
  262. package/dist/react-native/operationsInterfaces/operations.d.ts +11 -0
  263. package/dist/react-native/operationsInterfaces/operations.d.ts.map +1 -0
  264. package/dist/react-native/operationsInterfaces/operations.js +9 -0
  265. package/dist/react-native/operationsInterfaces/operations.js.map +1 -0
  266. package/dist/react-native/operationsInterfaces/privateEndpointConnections.d.ts +84 -0
  267. package/dist/react-native/operationsInterfaces/privateEndpointConnections.d.ts.map +1 -0
  268. package/dist/react-native/operationsInterfaces/privateEndpointConnections.js +9 -0
  269. package/dist/react-native/operationsInterfaces/privateEndpointConnections.js.map +1 -0
  270. package/dist/react-native/package.json +3 -0
  271. package/dist/react-native/pagingHelper.d.ts +13 -0
  272. package/dist/react-native/pagingHelper.d.ts.map +1 -0
  273. package/dist/react-native/pagingHelper.js +30 -0
  274. package/dist/react-native/pagingHelper.js.map +1 -0
  275. package/package.json +88 -72
  276. package/review/{arm-notificationhubs.api.md → arm-notificationhubs-node.api.md} +4 -4
  277. package/dist/index.js +0 -5155
  278. package/dist/index.js.map +0 -1
  279. package/dist/index.min.js +0 -1
  280. package/dist/index.min.js.map +0 -1
  281. package/dist-esm/samples-dev/namespacesCheckAvailabilitySample.d.ts +0 -2
  282. package/dist-esm/samples-dev/namespacesCheckAvailabilitySample.d.ts.map +0 -1
  283. package/dist-esm/samples-dev/namespacesCheckAvailabilitySample.js +0 -40
  284. package/dist-esm/samples-dev/namespacesCheckAvailabilitySample.js.map +0 -1
  285. package/dist-esm/samples-dev/namespacesCreateOrUpdateAuthorizationRuleSample.d.ts +0 -2
  286. package/dist-esm/samples-dev/namespacesCreateOrUpdateAuthorizationRuleSample.d.ts.map +0 -1
  287. package/dist-esm/samples-dev/namespacesCreateOrUpdateAuthorizationRuleSample.js +0 -43
  288. package/dist-esm/samples-dev/namespacesCreateOrUpdateAuthorizationRuleSample.js.map +0 -1
  289. package/dist-esm/samples-dev/namespacesCreateOrUpdateSample.d.ts +0 -2
  290. package/dist-esm/samples-dev/namespacesCreateOrUpdateSample.d.ts.map +0 -1
  291. package/dist-esm/samples-dev/namespacesCreateOrUpdateSample.js +0 -51
  292. package/dist-esm/samples-dev/namespacesCreateOrUpdateSample.js.map +0 -1
  293. package/dist-esm/samples-dev/namespacesDeleteAuthorizationRuleSample.d.ts +0 -2
  294. package/dist-esm/samples-dev/namespacesDeleteAuthorizationRuleSample.d.ts.map +0 -1
  295. package/dist-esm/samples-dev/namespacesDeleteAuthorizationRuleSample.js +0 -40
  296. package/dist-esm/samples-dev/namespacesDeleteAuthorizationRuleSample.js.map +0 -1
  297. package/dist-esm/samples-dev/namespacesDeleteSample.d.ts +0 -2
  298. package/dist-esm/samples-dev/namespacesDeleteSample.d.ts.map +0 -1
  299. package/dist-esm/samples-dev/namespacesDeleteSample.js +0 -39
  300. package/dist-esm/samples-dev/namespacesDeleteSample.js.map +0 -1
  301. package/dist-esm/samples-dev/namespacesGetAuthorizationRuleSample.d.ts +0 -2
  302. package/dist-esm/samples-dev/namespacesGetAuthorizationRuleSample.d.ts.map +0 -1
  303. package/dist-esm/samples-dev/namespacesGetAuthorizationRuleSample.js +0 -40
  304. package/dist-esm/samples-dev/namespacesGetAuthorizationRuleSample.js.map +0 -1
  305. package/dist-esm/samples-dev/namespacesGetPnsCredentialsSample.d.ts +0 -2
  306. package/dist-esm/samples-dev/namespacesGetPnsCredentialsSample.d.ts.map +0 -1
  307. package/dist-esm/samples-dev/namespacesGetPnsCredentialsSample.js +0 -39
  308. package/dist-esm/samples-dev/namespacesGetPnsCredentialsSample.js.map +0 -1
  309. package/dist-esm/samples-dev/namespacesGetSample.d.ts +0 -2
  310. package/dist-esm/samples-dev/namespacesGetSample.d.ts.map +0 -1
  311. package/dist-esm/samples-dev/namespacesGetSample.js +0 -39
  312. package/dist-esm/samples-dev/namespacesGetSample.js.map +0 -1
  313. package/dist-esm/samples-dev/namespacesListAllSample.d.ts +0 -2
  314. package/dist-esm/samples-dev/namespacesListAllSample.d.ts.map +0 -1
  315. package/dist-esm/samples-dev/namespacesListAllSample.js +0 -53
  316. package/dist-esm/samples-dev/namespacesListAllSample.js.map +0 -1
  317. package/dist-esm/samples-dev/namespacesListAuthorizationRulesSample.d.ts +0 -2
  318. package/dist-esm/samples-dev/namespacesListAuthorizationRulesSample.d.ts.map +0 -1
  319. package/dist-esm/samples-dev/namespacesListAuthorizationRulesSample.js +0 -55
  320. package/dist-esm/samples-dev/namespacesListAuthorizationRulesSample.js.map +0 -1
  321. package/dist-esm/samples-dev/namespacesListKeysSample.d.ts +0 -2
  322. package/dist-esm/samples-dev/namespacesListKeysSample.d.ts.map +0 -1
  323. package/dist-esm/samples-dev/namespacesListKeysSample.js +0 -40
  324. package/dist-esm/samples-dev/namespacesListKeysSample.js.map +0 -1
  325. package/dist-esm/samples-dev/namespacesListSample.d.ts +0 -2
  326. package/dist-esm/samples-dev/namespacesListSample.d.ts.map +0 -1
  327. package/dist-esm/samples-dev/namespacesListSample.js +0 -54
  328. package/dist-esm/samples-dev/namespacesListSample.js.map +0 -1
  329. package/dist-esm/samples-dev/namespacesRegenerateKeysSample.d.ts +0 -2
  330. package/dist-esm/samples-dev/namespacesRegenerateKeysSample.d.ts.map +0 -1
  331. package/dist-esm/samples-dev/namespacesRegenerateKeysSample.js +0 -41
  332. package/dist-esm/samples-dev/namespacesRegenerateKeysSample.js.map +0 -1
  333. package/dist-esm/samples-dev/namespacesUpdateSample.d.ts +0 -2
  334. package/dist-esm/samples-dev/namespacesUpdateSample.d.ts.map +0 -1
  335. package/dist-esm/samples-dev/namespacesUpdateSample.js +0 -51
  336. package/dist-esm/samples-dev/namespacesUpdateSample.js.map +0 -1
  337. package/dist-esm/samples-dev/notificationHubsCheckNotificationHubAvailabilitySample.d.ts +0 -2
  338. package/dist-esm/samples-dev/notificationHubsCheckNotificationHubAvailabilitySample.d.ts.map +0 -1
  339. package/dist-esm/samples-dev/notificationHubsCheckNotificationHubAvailabilitySample.js +0 -43
  340. package/dist-esm/samples-dev/notificationHubsCheckNotificationHubAvailabilitySample.js.map +0 -1
  341. package/dist-esm/samples-dev/notificationHubsCreateOrUpdateAuthorizationRuleSample.d.ts +0 -2
  342. package/dist-esm/samples-dev/notificationHubsCreateOrUpdateAuthorizationRuleSample.d.ts.map +0 -1
  343. package/dist-esm/samples-dev/notificationHubsCreateOrUpdateAuthorizationRuleSample.js +0 -44
  344. package/dist-esm/samples-dev/notificationHubsCreateOrUpdateAuthorizationRuleSample.js.map +0 -1
  345. package/dist-esm/samples-dev/notificationHubsCreateOrUpdateSample.d.ts +0 -2
  346. package/dist-esm/samples-dev/notificationHubsCreateOrUpdateSample.d.ts.map +0 -1
  347. package/dist-esm/samples-dev/notificationHubsCreateOrUpdateSample.js +0 -41
  348. package/dist-esm/samples-dev/notificationHubsCreateOrUpdateSample.js.map +0 -1
  349. package/dist-esm/samples-dev/notificationHubsDebugSendSample.d.ts +0 -2
  350. package/dist-esm/samples-dev/notificationHubsDebugSendSample.d.ts.map +0 -1
  351. package/dist-esm/samples-dev/notificationHubsDebugSendSample.js +0 -40
  352. package/dist-esm/samples-dev/notificationHubsDebugSendSample.js.map +0 -1
  353. package/dist-esm/samples-dev/notificationHubsDeleteAuthorizationRuleSample.d.ts +0 -2
  354. package/dist-esm/samples-dev/notificationHubsDeleteAuthorizationRuleSample.d.ts.map +0 -1
  355. package/dist-esm/samples-dev/notificationHubsDeleteAuthorizationRuleSample.js +0 -41
  356. package/dist-esm/samples-dev/notificationHubsDeleteAuthorizationRuleSample.js.map +0 -1
  357. package/dist-esm/samples-dev/notificationHubsDeleteSample.d.ts +0 -2
  358. package/dist-esm/samples-dev/notificationHubsDeleteSample.d.ts.map +0 -1
  359. package/dist-esm/samples-dev/notificationHubsDeleteSample.js +0 -40
  360. package/dist-esm/samples-dev/notificationHubsDeleteSample.js.map +0 -1
  361. package/dist-esm/samples-dev/notificationHubsGetAuthorizationRuleSample.d.ts +0 -2
  362. package/dist-esm/samples-dev/notificationHubsGetAuthorizationRuleSample.d.ts.map +0 -1
  363. package/dist-esm/samples-dev/notificationHubsGetAuthorizationRuleSample.js +0 -41
  364. package/dist-esm/samples-dev/notificationHubsGetAuthorizationRuleSample.js.map +0 -1
  365. package/dist-esm/samples-dev/notificationHubsGetPnsCredentialsSample.d.ts +0 -2
  366. package/dist-esm/samples-dev/notificationHubsGetPnsCredentialsSample.d.ts.map +0 -1
  367. package/dist-esm/samples-dev/notificationHubsGetPnsCredentialsSample.js +0 -40
  368. package/dist-esm/samples-dev/notificationHubsGetPnsCredentialsSample.js.map +0 -1
  369. package/dist-esm/samples-dev/notificationHubsGetSample.d.ts +0 -2
  370. package/dist-esm/samples-dev/notificationHubsGetSample.d.ts.map +0 -1
  371. package/dist-esm/samples-dev/notificationHubsGetSample.js +0 -40
  372. package/dist-esm/samples-dev/notificationHubsGetSample.js.map +0 -1
  373. package/dist-esm/samples-dev/notificationHubsListAuthorizationRulesSample.d.ts +0 -2
  374. package/dist-esm/samples-dev/notificationHubsListAuthorizationRulesSample.d.ts.map +0 -1
  375. package/dist-esm/samples-dev/notificationHubsListAuthorizationRulesSample.js +0 -56
  376. package/dist-esm/samples-dev/notificationHubsListAuthorizationRulesSample.js.map +0 -1
  377. package/dist-esm/samples-dev/notificationHubsListKeysSample.d.ts +0 -2
  378. package/dist-esm/samples-dev/notificationHubsListKeysSample.d.ts.map +0 -1
  379. package/dist-esm/samples-dev/notificationHubsListKeysSample.js +0 -41
  380. package/dist-esm/samples-dev/notificationHubsListKeysSample.js.map +0 -1
  381. package/dist-esm/samples-dev/notificationHubsListSample.d.ts +0 -2
  382. package/dist-esm/samples-dev/notificationHubsListSample.d.ts.map +0 -1
  383. package/dist-esm/samples-dev/notificationHubsListSample.js +0 -55
  384. package/dist-esm/samples-dev/notificationHubsListSample.js.map +0 -1
  385. package/dist-esm/samples-dev/notificationHubsRegenerateKeysSample.d.ts +0 -2
  386. package/dist-esm/samples-dev/notificationHubsRegenerateKeysSample.d.ts.map +0 -1
  387. package/dist-esm/samples-dev/notificationHubsRegenerateKeysSample.js +0 -42
  388. package/dist-esm/samples-dev/notificationHubsRegenerateKeysSample.js.map +0 -1
  389. package/dist-esm/samples-dev/notificationHubsUpdateSample.d.ts +0 -2
  390. package/dist-esm/samples-dev/notificationHubsUpdateSample.d.ts.map +0 -1
  391. package/dist-esm/samples-dev/notificationHubsUpdateSample.js +0 -47
  392. package/dist-esm/samples-dev/notificationHubsUpdateSample.js.map +0 -1
  393. package/dist-esm/samples-dev/operationsListSample.d.ts +0 -2
  394. package/dist-esm/samples-dev/operationsListSample.d.ts.map +0 -1
  395. package/dist-esm/samples-dev/operationsListSample.js +0 -53
  396. package/dist-esm/samples-dev/operationsListSample.js.map +0 -1
  397. package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.d.ts +0 -2
  398. package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.d.ts.map +0 -1
  399. package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.js +0 -42
  400. package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.js.map +0 -1
  401. package/dist-esm/samples-dev/privateEndpointConnectionsGetGroupIdSample.d.ts +0 -2
  402. package/dist-esm/samples-dev/privateEndpointConnectionsGetGroupIdSample.d.ts.map +0 -1
  403. package/dist-esm/samples-dev/privateEndpointConnectionsGetGroupIdSample.js +0 -42
  404. package/dist-esm/samples-dev/privateEndpointConnectionsGetGroupIdSample.js.map +0 -1
  405. package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.d.ts +0 -2
  406. package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.d.ts.map +0 -1
  407. package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.js +0 -42
  408. package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.js.map +0 -1
  409. package/dist-esm/samples-dev/privateEndpointConnectionsListGroupIdsSample.d.ts +0 -2
  410. package/dist-esm/samples-dev/privateEndpointConnectionsListGroupIdsSample.d.ts.map +0 -1
  411. package/dist-esm/samples-dev/privateEndpointConnectionsListGroupIdsSample.js +0 -57
  412. package/dist-esm/samples-dev/privateEndpointConnectionsListGroupIdsSample.js.map +0 -1
  413. package/dist-esm/samples-dev/privateEndpointConnectionsListSample.d.ts +0 -2
  414. package/dist-esm/samples-dev/privateEndpointConnectionsListSample.d.ts.map +0 -1
  415. package/dist-esm/samples-dev/privateEndpointConnectionsListSample.js +0 -57
  416. package/dist-esm/samples-dev/privateEndpointConnectionsListSample.js.map +0 -1
  417. package/dist-esm/samples-dev/privateEndpointConnectionsUpdateSample.d.ts +0 -2
  418. package/dist-esm/samples-dev/privateEndpointConnectionsUpdateSample.d.ts.map +0 -1
  419. package/dist-esm/samples-dev/privateEndpointConnectionsUpdateSample.js +0 -48
  420. package/dist-esm/samples-dev/privateEndpointConnectionsUpdateSample.js.map +0 -1
  421. package/dist-esm/src/index.d.ts +0 -6
  422. package/dist-esm/src/index.d.ts.map +0 -1
  423. package/dist-esm/src/index.js.map +0 -1
  424. package/dist-esm/src/lroImpl.d.ts.map +0 -1
  425. package/dist-esm/src/lroImpl.js +0 -21
  426. package/dist-esm/src/lroImpl.js.map +0 -1
  427. package/dist-esm/src/models/index.d.ts.map +0 -1
  428. package/dist-esm/src/models/index.js.map +0 -1
  429. package/dist-esm/src/models/mappers.d.ts.map +0 -1
  430. package/dist-esm/src/models/mappers.js.map +0 -1
  431. package/dist-esm/src/models/parameters.d.ts.map +0 -1
  432. package/dist-esm/src/models/parameters.js.map +0 -1
  433. package/dist-esm/src/notificationHubsManagementClient.d.ts.map +0 -1
  434. package/dist-esm/src/notificationHubsManagementClient.js.map +0 -1
  435. package/dist-esm/src/operations/index.d.ts +0 -5
  436. package/dist-esm/src/operations/index.js.map +0 -1
  437. package/dist-esm/src/operations/namespaces.d.ts.map +0 -1
  438. package/dist-esm/src/operations/namespaces.js.map +0 -1
  439. package/dist-esm/src/operations/notificationHubs.d.ts.map +0 -1
  440. package/dist-esm/src/operations/notificationHubs.js.map +0 -1
  441. package/dist-esm/src/operations/operations.d.ts.map +0 -1
  442. package/dist-esm/src/operations/operations.js.map +0 -1
  443. package/dist-esm/src/operations/privateEndpointConnections.d.ts.map +0 -1
  444. package/dist-esm/src/operations/privateEndpointConnections.js.map +0 -1
  445. package/dist-esm/src/operationsInterfaces/index.d.ts +0 -5
  446. package/dist-esm/src/operationsInterfaces/index.js.map +0 -1
  447. package/dist-esm/src/operationsInterfaces/namespaces.d.ts.map +0 -1
  448. package/dist-esm/src/operationsInterfaces/namespaces.js.map +0 -1
  449. package/dist-esm/src/operationsInterfaces/notificationHubs.d.ts.map +0 -1
  450. package/dist-esm/src/operationsInterfaces/notificationHubs.js.map +0 -1
  451. package/dist-esm/src/operationsInterfaces/operations.d.ts.map +0 -1
  452. package/dist-esm/src/operationsInterfaces/operations.js.map +0 -1
  453. package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts.map +0 -1
  454. package/dist-esm/src/operationsInterfaces/privateEndpointConnections.js.map +0 -1
  455. package/dist-esm/src/pagingHelper.js.map +0 -1
  456. package/dist-esm/test/notificationhubs_examples.d.ts +0 -4
  457. package/dist-esm/test/notificationhubs_examples.d.ts.map +0 -1
  458. package/dist-esm/test/notificationhubs_examples.js +0 -139
  459. package/dist-esm/test/notificationhubs_examples.js.map +0 -1
  460. package/src/lroImpl.ts +0 -42
  461. package/src/models/index.ts +0 -1778
  462. package/src/models/mappers.ts +0 -2570
  463. package/src/models/parameters.ts +0 -248
  464. package/src/notificationHubsManagementClient.ts +0 -157
  465. package/src/operations/index.ts +0 -12
  466. package/src/operations/namespaces.ts +0 -1039
  467. package/src/operations/notificationHubs.ts +0 -983
  468. package/src/operations/operations.ts +0 -149
  469. package/src/operations/privateEndpointConnections.ts +0 -629
  470. package/src/operationsInterfaces/index.ts +0 -12
  471. package/src/operationsInterfaces/namespaces.ts +0 -229
  472. package/src/operationsInterfaces/notificationHubs.ts +0 -243
  473. package/src/operationsInterfaces/operations.ts +0 -22
  474. package/src/operationsInterfaces/privateEndpointConnections.ts +0 -156
  475. package/src/pagingHelper.ts +0 -39
  476. package/tsconfig.json +0 -33
  477. /package/{dist-esm/src → dist/browser}/models/index.js +0 -0
  478. /package/{dist-esm/src → dist/browser}/operationsInterfaces/namespaces.js +0 -0
  479. /package/{dist-esm/src → dist/browser}/operationsInterfaces/notificationHubs.js +0 -0
  480. /package/{dist-esm/src → dist/browser}/operationsInterfaces/operations.js +0 -0
  481. /package/{dist-esm/src → dist/browser}/operationsInterfaces/privateEndpointConnections.js +0 -0
  482. /package/{dist-esm/src → dist/browser}/pagingHelper.d.ts +0 -0
@@ -0,0 +1,706 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ import { setContinuationToken } from "../pagingHelper.js";
9
+ import * as coreClient from "@azure/core-client";
10
+ import * as Mappers from "../models/mappers.js";
11
+ import * as Parameters from "../models/parameters.js";
12
+ /// <reference lib="esnext.asynciterable" />
13
+ /** Class containing NotificationHubs operations. */
14
+ export class NotificationHubsImpl {
15
+ client;
16
+ /**
17
+ * Initialize a new instance of the class NotificationHubs class.
18
+ * @param client Reference to the service client
19
+ */
20
+ constructor(client) {
21
+ this.client = client;
22
+ }
23
+ /**
24
+ * Lists the notification hubs associated with a namespace.
25
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
26
+ * @param namespaceName Namespace name
27
+ * @param options The options parameters.
28
+ */
29
+ list(resourceGroupName, namespaceName, options) {
30
+ const iter = this.listPagingAll(resourceGroupName, namespaceName, options);
31
+ return {
32
+ next() {
33
+ return iter.next();
34
+ },
35
+ [Symbol.asyncIterator]() {
36
+ return this;
37
+ },
38
+ byPage: (settings) => {
39
+ if (settings?.maxPageSize) {
40
+ throw new Error("maxPageSize is not supported by this operation.");
41
+ }
42
+ return this.listPagingPage(resourceGroupName, namespaceName, options, settings);
43
+ },
44
+ };
45
+ }
46
+ async *listPagingPage(resourceGroupName, namespaceName, options, settings) {
47
+ let result;
48
+ let continuationToken = settings?.continuationToken;
49
+ if (!continuationToken) {
50
+ result = await this._list(resourceGroupName, namespaceName, options);
51
+ const page = result.value || [];
52
+ continuationToken = result.nextLink;
53
+ setContinuationToken(page, continuationToken);
54
+ yield page;
55
+ }
56
+ while (continuationToken) {
57
+ result = await this._listNext(resourceGroupName, namespaceName, continuationToken, options);
58
+ continuationToken = result.nextLink;
59
+ const page = result.value || [];
60
+ setContinuationToken(page, continuationToken);
61
+ yield page;
62
+ }
63
+ }
64
+ async *listPagingAll(resourceGroupName, namespaceName, options) {
65
+ for await (const page of this.listPagingPage(resourceGroupName, namespaceName, options)) {
66
+ yield* page;
67
+ }
68
+ }
69
+ /**
70
+ * Gets the authorization rules for a NotificationHub.
71
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
72
+ * @param namespaceName Namespace name
73
+ * @param notificationHubName Notification Hub name
74
+ * @param options The options parameters.
75
+ */
76
+ listAuthorizationRules(resourceGroupName, namespaceName, notificationHubName, options) {
77
+ const iter = this.listAuthorizationRulesPagingAll(resourceGroupName, namespaceName, notificationHubName, options);
78
+ return {
79
+ next() {
80
+ return iter.next();
81
+ },
82
+ [Symbol.asyncIterator]() {
83
+ return this;
84
+ },
85
+ byPage: (settings) => {
86
+ if (settings?.maxPageSize) {
87
+ throw new Error("maxPageSize is not supported by this operation.");
88
+ }
89
+ return this.listAuthorizationRulesPagingPage(resourceGroupName, namespaceName, notificationHubName, options, settings);
90
+ },
91
+ };
92
+ }
93
+ async *listAuthorizationRulesPagingPage(resourceGroupName, namespaceName, notificationHubName, options, settings) {
94
+ let result;
95
+ let continuationToken = settings?.continuationToken;
96
+ if (!continuationToken) {
97
+ result = await this._listAuthorizationRules(resourceGroupName, namespaceName, notificationHubName, options);
98
+ const page = result.value || [];
99
+ continuationToken = result.nextLink;
100
+ setContinuationToken(page, continuationToken);
101
+ yield page;
102
+ }
103
+ while (continuationToken) {
104
+ result = await this._listAuthorizationRulesNext(resourceGroupName, namespaceName, notificationHubName, continuationToken, options);
105
+ continuationToken = result.nextLink;
106
+ const page = result.value || [];
107
+ setContinuationToken(page, continuationToken);
108
+ yield page;
109
+ }
110
+ }
111
+ async *listAuthorizationRulesPagingAll(resourceGroupName, namespaceName, notificationHubName, options) {
112
+ for await (const page of this.listAuthorizationRulesPagingPage(resourceGroupName, namespaceName, notificationHubName, options)) {
113
+ yield* page;
114
+ }
115
+ }
116
+ /**
117
+ * Checks the availability of the given notificationHub in a namespace.
118
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
119
+ * @param namespaceName Namespace name
120
+ * @param parameters Request content.
121
+ * @param options The options parameters.
122
+ */
123
+ checkNotificationHubAvailability(resourceGroupName, namespaceName, parameters, options) {
124
+ return this.client.sendOperationRequest({ resourceGroupName, namespaceName, parameters, options }, checkNotificationHubAvailabilityOperationSpec);
125
+ }
126
+ /**
127
+ * Gets the notification hub.
128
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
129
+ * @param namespaceName Namespace name
130
+ * @param notificationHubName Notification Hub name
131
+ * @param options The options parameters.
132
+ */
133
+ get(resourceGroupName, namespaceName, notificationHubName, options) {
134
+ return this.client.sendOperationRequest({ resourceGroupName, namespaceName, notificationHubName, options }, getOperationSpec);
135
+ }
136
+ /**
137
+ * Creates/Update a NotificationHub in a namespace.
138
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
139
+ * @param namespaceName Namespace name
140
+ * @param notificationHubName Notification Hub name
141
+ * @param parameters Request content.
142
+ * @param options The options parameters.
143
+ */
144
+ createOrUpdate(resourceGroupName, namespaceName, notificationHubName, parameters, options) {
145
+ return this.client.sendOperationRequest({
146
+ resourceGroupName,
147
+ namespaceName,
148
+ notificationHubName,
149
+ parameters,
150
+ options,
151
+ }, createOrUpdateOperationSpec);
152
+ }
153
+ /**
154
+ * Patch a NotificationHub in a namespace.
155
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
156
+ * @param namespaceName Namespace name
157
+ * @param notificationHubName Notification Hub name
158
+ * @param parameters Request content.
159
+ * @param options The options parameters.
160
+ */
161
+ update(resourceGroupName, namespaceName, notificationHubName, parameters, options) {
162
+ return this.client.sendOperationRequest({
163
+ resourceGroupName,
164
+ namespaceName,
165
+ notificationHubName,
166
+ parameters,
167
+ options,
168
+ }, updateOperationSpec);
169
+ }
170
+ /**
171
+ * Deletes a notification hub associated with a namespace.
172
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
173
+ * @param namespaceName Namespace name
174
+ * @param notificationHubName Notification Hub name
175
+ * @param options The options parameters.
176
+ */
177
+ delete(resourceGroupName, namespaceName, notificationHubName, options) {
178
+ return this.client.sendOperationRequest({ resourceGroupName, namespaceName, notificationHubName, options }, deleteOperationSpec);
179
+ }
180
+ /**
181
+ * Lists the notification hubs associated with a namespace.
182
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
183
+ * @param namespaceName Namespace name
184
+ * @param options The options parameters.
185
+ */
186
+ _list(resourceGroupName, namespaceName, options) {
187
+ return this.client.sendOperationRequest({ resourceGroupName, namespaceName, options }, listOperationSpec);
188
+ }
189
+ /**
190
+ * Test send a push notification.
191
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
192
+ * @param namespaceName Namespace name
193
+ * @param notificationHubName Notification Hub name
194
+ * @param options The options parameters.
195
+ */
196
+ debugSend(resourceGroupName, namespaceName, notificationHubName, options) {
197
+ return this.client.sendOperationRequest({ resourceGroupName, namespaceName, notificationHubName, options }, debugSendOperationSpec);
198
+ }
199
+ /**
200
+ * Creates/Updates an authorization rule for a NotificationHub
201
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
202
+ * @param namespaceName Namespace name
203
+ * @param notificationHubName Notification Hub name
204
+ * @param authorizationRuleName Authorization Rule Name
205
+ * @param parameters Request content.
206
+ * @param options The options parameters.
207
+ */
208
+ createOrUpdateAuthorizationRule(resourceGroupName, namespaceName, notificationHubName, authorizationRuleName, parameters, options) {
209
+ return this.client.sendOperationRequest({
210
+ resourceGroupName,
211
+ namespaceName,
212
+ notificationHubName,
213
+ authorizationRuleName,
214
+ parameters,
215
+ options,
216
+ }, createOrUpdateAuthorizationRuleOperationSpec);
217
+ }
218
+ /**
219
+ * Deletes a notificationHub authorization rule
220
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
221
+ * @param namespaceName Namespace name
222
+ * @param notificationHubName Notification Hub name
223
+ * @param authorizationRuleName Authorization Rule Name
224
+ * @param options The options parameters.
225
+ */
226
+ deleteAuthorizationRule(resourceGroupName, namespaceName, notificationHubName, authorizationRuleName, options) {
227
+ return this.client.sendOperationRequest({
228
+ resourceGroupName,
229
+ namespaceName,
230
+ notificationHubName,
231
+ authorizationRuleName,
232
+ options,
233
+ }, deleteAuthorizationRuleOperationSpec);
234
+ }
235
+ /**
236
+ * Gets an authorization rule for a NotificationHub by name.
237
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
238
+ * @param namespaceName Namespace name
239
+ * @param notificationHubName Notification Hub name
240
+ * @param authorizationRuleName Authorization Rule Name
241
+ * @param options The options parameters.
242
+ */
243
+ getAuthorizationRule(resourceGroupName, namespaceName, notificationHubName, authorizationRuleName, options) {
244
+ return this.client.sendOperationRequest({
245
+ resourceGroupName,
246
+ namespaceName,
247
+ notificationHubName,
248
+ authorizationRuleName,
249
+ options,
250
+ }, getAuthorizationRuleOperationSpec);
251
+ }
252
+ /**
253
+ * Gets the authorization rules for a NotificationHub.
254
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
255
+ * @param namespaceName Namespace name
256
+ * @param notificationHubName Notification Hub name
257
+ * @param options The options parameters.
258
+ */
259
+ _listAuthorizationRules(resourceGroupName, namespaceName, notificationHubName, options) {
260
+ return this.client.sendOperationRequest({ resourceGroupName, namespaceName, notificationHubName, options }, listAuthorizationRulesOperationSpec);
261
+ }
262
+ /**
263
+ * Gets the Primary and Secondary ConnectionStrings to the NotificationHub
264
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
265
+ * @param namespaceName Namespace name
266
+ * @param notificationHubName Notification Hub name
267
+ * @param authorizationRuleName Authorization Rule Name
268
+ * @param options The options parameters.
269
+ */
270
+ listKeys(resourceGroupName, namespaceName, notificationHubName, authorizationRuleName, options) {
271
+ return this.client.sendOperationRequest({
272
+ resourceGroupName,
273
+ namespaceName,
274
+ notificationHubName,
275
+ authorizationRuleName,
276
+ options,
277
+ }, listKeysOperationSpec);
278
+ }
279
+ /**
280
+ * Regenerates the Primary/Secondary Keys to the NotificationHub Authorization Rule
281
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
282
+ * @param namespaceName Namespace name
283
+ * @param notificationHubName Notification Hub name
284
+ * @param authorizationRuleName Authorization Rule Name
285
+ * @param parameters Request content.
286
+ * @param options The options parameters.
287
+ */
288
+ regenerateKeys(resourceGroupName, namespaceName, notificationHubName, authorizationRuleName, parameters, options) {
289
+ return this.client.sendOperationRequest({
290
+ resourceGroupName,
291
+ namespaceName,
292
+ notificationHubName,
293
+ authorizationRuleName,
294
+ parameters,
295
+ options,
296
+ }, regenerateKeysOperationSpec);
297
+ }
298
+ /**
299
+ * Lists the PNS Credentials associated with a notification hub.
300
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
301
+ * @param namespaceName Namespace name
302
+ * @param notificationHubName Notification Hub name
303
+ * @param options The options parameters.
304
+ */
305
+ getPnsCredentials(resourceGroupName, namespaceName, notificationHubName, options) {
306
+ return this.client.sendOperationRequest({ resourceGroupName, namespaceName, notificationHubName, options }, getPnsCredentialsOperationSpec);
307
+ }
308
+ /**
309
+ * ListNext
310
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
311
+ * @param namespaceName Namespace name
312
+ * @param nextLink The nextLink from the previous successful call to the List method.
313
+ * @param options The options parameters.
314
+ */
315
+ _listNext(resourceGroupName, namespaceName, nextLink, options) {
316
+ return this.client.sendOperationRequest({ resourceGroupName, namespaceName, nextLink, options }, listNextOperationSpec);
317
+ }
318
+ /**
319
+ * ListAuthorizationRulesNext
320
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
321
+ * @param namespaceName Namespace name
322
+ * @param notificationHubName Notification Hub name
323
+ * @param nextLink The nextLink from the previous successful call to the ListAuthorizationRules method.
324
+ * @param options The options parameters.
325
+ */
326
+ _listAuthorizationRulesNext(resourceGroupName, namespaceName, notificationHubName, nextLink, options) {
327
+ return this.client.sendOperationRequest({
328
+ resourceGroupName,
329
+ namespaceName,
330
+ notificationHubName,
331
+ nextLink,
332
+ options,
333
+ }, listAuthorizationRulesNextOperationSpec);
334
+ }
335
+ }
336
+ // Operation Specifications
337
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
338
+ const checkNotificationHubAvailabilityOperationSpec = {
339
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/checkNotificationHubAvailability",
340
+ httpMethod: "POST",
341
+ responses: {
342
+ 200: {
343
+ bodyMapper: Mappers.CheckAvailabilityResult,
344
+ },
345
+ default: {
346
+ bodyMapper: Mappers.ErrorResponse,
347
+ },
348
+ },
349
+ requestBody: Parameters.parameters,
350
+ queryParameters: [Parameters.apiVersion],
351
+ urlParameters: [
352
+ Parameters.$host,
353
+ Parameters.subscriptionId,
354
+ Parameters.resourceGroupName,
355
+ Parameters.namespaceName,
356
+ ],
357
+ headerParameters: [Parameters.contentType, Parameters.accept],
358
+ mediaType: "json",
359
+ serializer,
360
+ };
361
+ const getOperationSpec = {
362
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}",
363
+ httpMethod: "GET",
364
+ responses: {
365
+ 200: {
366
+ bodyMapper: Mappers.NotificationHubResource,
367
+ },
368
+ default: {
369
+ bodyMapper: Mappers.ErrorResponse,
370
+ },
371
+ },
372
+ queryParameters: [Parameters.apiVersion],
373
+ urlParameters: [
374
+ Parameters.$host,
375
+ Parameters.subscriptionId,
376
+ Parameters.resourceGroupName,
377
+ Parameters.namespaceName,
378
+ Parameters.notificationHubName,
379
+ ],
380
+ headerParameters: [Parameters.accept],
381
+ serializer,
382
+ };
383
+ const createOrUpdateOperationSpec = {
384
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}",
385
+ httpMethod: "PUT",
386
+ responses: {
387
+ 200: {
388
+ bodyMapper: Mappers.NotificationHubResource,
389
+ },
390
+ 201: {
391
+ bodyMapper: Mappers.NotificationHubResource,
392
+ },
393
+ default: {
394
+ bodyMapper: Mappers.ErrorResponse,
395
+ },
396
+ },
397
+ requestBody: Parameters.parameters1,
398
+ queryParameters: [Parameters.apiVersion],
399
+ urlParameters: [
400
+ Parameters.$host,
401
+ Parameters.subscriptionId,
402
+ Parameters.resourceGroupName,
403
+ Parameters.namespaceName,
404
+ Parameters.notificationHubName,
405
+ ],
406
+ headerParameters: [Parameters.contentType, Parameters.accept],
407
+ mediaType: "json",
408
+ serializer,
409
+ };
410
+ const updateOperationSpec = {
411
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}",
412
+ httpMethod: "PATCH",
413
+ responses: {
414
+ 200: {
415
+ bodyMapper: Mappers.NotificationHubResource,
416
+ },
417
+ default: {
418
+ bodyMapper: Mappers.ErrorResponse,
419
+ },
420
+ },
421
+ requestBody: Parameters.parameters2,
422
+ queryParameters: [Parameters.apiVersion],
423
+ urlParameters: [
424
+ Parameters.$host,
425
+ Parameters.subscriptionId,
426
+ Parameters.resourceGroupName,
427
+ Parameters.namespaceName,
428
+ Parameters.notificationHubName,
429
+ ],
430
+ headerParameters: [Parameters.contentType, Parameters.accept],
431
+ mediaType: "json",
432
+ serializer,
433
+ };
434
+ const deleteOperationSpec = {
435
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}",
436
+ httpMethod: "DELETE",
437
+ responses: {
438
+ 200: {},
439
+ 204: {},
440
+ default: {
441
+ bodyMapper: Mappers.ErrorResponse,
442
+ },
443
+ },
444
+ queryParameters: [Parameters.apiVersion],
445
+ urlParameters: [
446
+ Parameters.$host,
447
+ Parameters.subscriptionId,
448
+ Parameters.resourceGroupName,
449
+ Parameters.namespaceName,
450
+ Parameters.notificationHubName,
451
+ ],
452
+ headerParameters: [Parameters.accept],
453
+ serializer,
454
+ };
455
+ const listOperationSpec = {
456
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs",
457
+ httpMethod: "GET",
458
+ responses: {
459
+ 200: {
460
+ bodyMapper: Mappers.NotificationHubListResult,
461
+ },
462
+ default: {
463
+ bodyMapper: Mappers.ErrorResponse,
464
+ },
465
+ },
466
+ queryParameters: [Parameters.apiVersion, Parameters.skipToken, Parameters.top],
467
+ urlParameters: [
468
+ Parameters.$host,
469
+ Parameters.subscriptionId,
470
+ Parameters.resourceGroupName,
471
+ Parameters.namespaceName,
472
+ ],
473
+ headerParameters: [Parameters.accept],
474
+ serializer,
475
+ };
476
+ const debugSendOperationSpec = {
477
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}/debugsend",
478
+ httpMethod: "POST",
479
+ responses: {
480
+ 200: {
481
+ bodyMapper: Mappers.DebugSendResponse,
482
+ },
483
+ default: {
484
+ bodyMapper: Mappers.ErrorResponse,
485
+ },
486
+ },
487
+ queryParameters: [Parameters.apiVersion],
488
+ urlParameters: [
489
+ Parameters.$host,
490
+ Parameters.subscriptionId,
491
+ Parameters.resourceGroupName,
492
+ Parameters.namespaceName,
493
+ Parameters.notificationHubName,
494
+ ],
495
+ headerParameters: [Parameters.accept],
496
+ serializer,
497
+ };
498
+ const createOrUpdateAuthorizationRuleOperationSpec = {
499
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}/authorizationRules/{authorizationRuleName}",
500
+ httpMethod: "PUT",
501
+ responses: {
502
+ 200: {
503
+ bodyMapper: Mappers.SharedAccessAuthorizationRuleResource,
504
+ },
505
+ 201: {
506
+ bodyMapper: Mappers.SharedAccessAuthorizationRuleResource,
507
+ },
508
+ default: {
509
+ bodyMapper: Mappers.ErrorResponse,
510
+ },
511
+ },
512
+ requestBody: Parameters.parameters3,
513
+ queryParameters: [Parameters.apiVersion],
514
+ urlParameters: [
515
+ Parameters.$host,
516
+ Parameters.subscriptionId,
517
+ Parameters.resourceGroupName,
518
+ Parameters.namespaceName,
519
+ Parameters.notificationHubName,
520
+ Parameters.authorizationRuleName,
521
+ ],
522
+ headerParameters: [Parameters.contentType, Parameters.accept],
523
+ mediaType: "json",
524
+ serializer,
525
+ };
526
+ const deleteAuthorizationRuleOperationSpec = {
527
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}/authorizationRules/{authorizationRuleName}",
528
+ httpMethod: "DELETE",
529
+ responses: {
530
+ 200: {},
531
+ 204: {},
532
+ default: {
533
+ bodyMapper: Mappers.ErrorResponse,
534
+ },
535
+ },
536
+ queryParameters: [Parameters.apiVersion],
537
+ urlParameters: [
538
+ Parameters.$host,
539
+ Parameters.subscriptionId,
540
+ Parameters.resourceGroupName,
541
+ Parameters.namespaceName,
542
+ Parameters.notificationHubName,
543
+ Parameters.authorizationRuleName,
544
+ ],
545
+ headerParameters: [Parameters.accept],
546
+ serializer,
547
+ };
548
+ const getAuthorizationRuleOperationSpec = {
549
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}/authorizationRules/{authorizationRuleName}",
550
+ httpMethod: "GET",
551
+ responses: {
552
+ 200: {
553
+ bodyMapper: Mappers.SharedAccessAuthorizationRuleResource,
554
+ },
555
+ default: {
556
+ bodyMapper: Mappers.ErrorResponse,
557
+ },
558
+ },
559
+ queryParameters: [Parameters.apiVersion],
560
+ urlParameters: [
561
+ Parameters.$host,
562
+ Parameters.subscriptionId,
563
+ Parameters.resourceGroupName,
564
+ Parameters.namespaceName,
565
+ Parameters.notificationHubName,
566
+ Parameters.authorizationRuleName,
567
+ ],
568
+ headerParameters: [Parameters.accept],
569
+ serializer,
570
+ };
571
+ const listAuthorizationRulesOperationSpec = {
572
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}/authorizationRules",
573
+ httpMethod: "GET",
574
+ responses: {
575
+ 200: {
576
+ bodyMapper: Mappers.SharedAccessAuthorizationRuleListResult,
577
+ },
578
+ default: {
579
+ bodyMapper: Mappers.ErrorResponse,
580
+ },
581
+ },
582
+ queryParameters: [Parameters.apiVersion],
583
+ urlParameters: [
584
+ Parameters.$host,
585
+ Parameters.subscriptionId,
586
+ Parameters.resourceGroupName,
587
+ Parameters.namespaceName,
588
+ Parameters.notificationHubName,
589
+ ],
590
+ headerParameters: [Parameters.accept],
591
+ serializer,
592
+ };
593
+ const listKeysOperationSpec = {
594
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}/authorizationRules/{authorizationRuleName}/listKeys",
595
+ httpMethod: "POST",
596
+ responses: {
597
+ 200: {
598
+ bodyMapper: Mappers.ResourceListKeys,
599
+ },
600
+ default: {
601
+ bodyMapper: Mappers.ErrorResponse,
602
+ },
603
+ },
604
+ queryParameters: [Parameters.apiVersion],
605
+ urlParameters: [
606
+ Parameters.$host,
607
+ Parameters.subscriptionId,
608
+ Parameters.resourceGroupName,
609
+ Parameters.namespaceName,
610
+ Parameters.notificationHubName,
611
+ Parameters.authorizationRuleName,
612
+ ],
613
+ headerParameters: [Parameters.accept],
614
+ serializer,
615
+ };
616
+ const regenerateKeysOperationSpec = {
617
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}/authorizationRules/{authorizationRuleName}/regenerateKeys",
618
+ httpMethod: "POST",
619
+ responses: {
620
+ 200: {
621
+ bodyMapper: Mappers.ResourceListKeys,
622
+ },
623
+ default: {
624
+ bodyMapper: Mappers.ErrorResponse,
625
+ },
626
+ },
627
+ requestBody: Parameters.parameters4,
628
+ queryParameters: [Parameters.apiVersion],
629
+ urlParameters: [
630
+ Parameters.$host,
631
+ Parameters.subscriptionId,
632
+ Parameters.resourceGroupName,
633
+ Parameters.namespaceName,
634
+ Parameters.notificationHubName,
635
+ Parameters.authorizationRuleName,
636
+ ],
637
+ headerParameters: [Parameters.contentType, Parameters.accept],
638
+ mediaType: "json",
639
+ serializer,
640
+ };
641
+ const getPnsCredentialsOperationSpec = {
642
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}/pnsCredentials",
643
+ httpMethod: "POST",
644
+ responses: {
645
+ 200: {
646
+ bodyMapper: Mappers.PnsCredentialsResource,
647
+ },
648
+ default: {
649
+ bodyMapper: Mappers.ErrorResponse,
650
+ },
651
+ },
652
+ queryParameters: [Parameters.apiVersion],
653
+ urlParameters: [
654
+ Parameters.$host,
655
+ Parameters.subscriptionId,
656
+ Parameters.resourceGroupName,
657
+ Parameters.namespaceName,
658
+ Parameters.notificationHubName,
659
+ ],
660
+ headerParameters: [Parameters.accept],
661
+ serializer,
662
+ };
663
+ const listNextOperationSpec = {
664
+ path: "{nextLink}",
665
+ httpMethod: "GET",
666
+ responses: {
667
+ 200: {
668
+ bodyMapper: Mappers.NotificationHubListResult,
669
+ },
670
+ default: {
671
+ bodyMapper: Mappers.ErrorResponse,
672
+ },
673
+ },
674
+ urlParameters: [
675
+ Parameters.$host,
676
+ Parameters.subscriptionId,
677
+ Parameters.resourceGroupName,
678
+ Parameters.namespaceName,
679
+ Parameters.nextLink,
680
+ ],
681
+ headerParameters: [Parameters.accept],
682
+ serializer,
683
+ };
684
+ const listAuthorizationRulesNextOperationSpec = {
685
+ path: "{nextLink}",
686
+ httpMethod: "GET",
687
+ responses: {
688
+ 200: {
689
+ bodyMapper: Mappers.SharedAccessAuthorizationRuleListResult,
690
+ },
691
+ default: {
692
+ bodyMapper: Mappers.ErrorResponse,
693
+ },
694
+ },
695
+ urlParameters: [
696
+ Parameters.$host,
697
+ Parameters.subscriptionId,
698
+ Parameters.resourceGroupName,
699
+ Parameters.namespaceName,
700
+ Parameters.notificationHubName,
701
+ Parameters.nextLink,
702
+ ],
703
+ headerParameters: [Parameters.accept],
704
+ serializer,
705
+ };
706
+ //# sourceMappingURL=notificationHubs.js.map