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