@azure/arm-notificationhubs 2.1.1-alpha.20240312.1 → 3.0.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (179) hide show
  1. package/CHANGELOG.md +170 -9
  2. package/LICENSE +1 -1
  3. package/README.md +2 -2
  4. package/dist/index.js +3826 -1755
  5. package/dist/index.js.map +1 -1
  6. package/dist/index.min.js +1 -1
  7. package/dist/index.min.js.map +1 -1
  8. package/dist-esm/samples-dev/namespacesCheckAvailabilitySample.js +14 -6
  9. package/dist-esm/samples-dev/namespacesCheckAvailabilitySample.js.map +1 -1
  10. package/dist-esm/samples-dev/namespacesCreateOrUpdateAuthorizationRuleSample.js +15 -7
  11. package/dist-esm/samples-dev/namespacesCreateOrUpdateAuthorizationRuleSample.js.map +1 -1
  12. package/dist-esm/samples-dev/namespacesCreateOrUpdateSample.js +25 -10
  13. package/dist-esm/samples-dev/namespacesCreateOrUpdateSample.js.map +1 -1
  14. package/dist-esm/samples-dev/namespacesDeleteAuthorizationRuleSample.js +13 -5
  15. package/dist-esm/samples-dev/namespacesDeleteAuthorizationRuleSample.js.map +1 -1
  16. package/dist-esm/samples-dev/namespacesDeleteSample.js +14 -6
  17. package/dist-esm/samples-dev/namespacesDeleteSample.js.map +1 -1
  18. package/dist-esm/samples-dev/namespacesGetAuthorizationRuleSample.js +13 -5
  19. package/dist-esm/samples-dev/namespacesGetAuthorizationRuleSample.js.map +1 -1
  20. package/dist-esm/samples-dev/namespacesGetPnsCredentialsSample.d.ts +2 -0
  21. package/dist-esm/samples-dev/namespacesGetPnsCredentialsSample.d.ts.map +1 -0
  22. package/dist-esm/samples-dev/namespacesGetPnsCredentialsSample.js +39 -0
  23. package/dist-esm/samples-dev/namespacesGetPnsCredentialsSample.js.map +1 -0
  24. package/dist-esm/samples-dev/namespacesGetSample.js +15 -7
  25. package/dist-esm/samples-dev/namespacesGetSample.js.map +1 -1
  26. package/dist-esm/samples-dev/namespacesListAllSample.js +14 -6
  27. package/dist-esm/samples-dev/namespacesListAllSample.js.map +1 -1
  28. package/dist-esm/samples-dev/namespacesListAuthorizationRulesSample.js +13 -5
  29. package/dist-esm/samples-dev/namespacesListAuthorizationRulesSample.js.map +1 -1
  30. package/dist-esm/samples-dev/namespacesListKeysSample.js +15 -7
  31. package/dist-esm/samples-dev/namespacesListKeysSample.js.map +1 -1
  32. package/dist-esm/samples-dev/namespacesListSample.js +15 -7
  33. package/dist-esm/samples-dev/namespacesListSample.js.map +1 -1
  34. package/dist-esm/samples-dev/namespacesRegenerateKeysSample.js +14 -6
  35. package/dist-esm/samples-dev/namespacesRegenerateKeysSample.js.map +1 -1
  36. package/dist-esm/samples-dev/namespacesUpdateSample.d.ts +2 -0
  37. package/dist-esm/samples-dev/namespacesUpdateSample.d.ts.map +1 -0
  38. package/dist-esm/samples-dev/namespacesUpdateSample.js +51 -0
  39. package/dist-esm/samples-dev/namespacesUpdateSample.js.map +1 -0
  40. package/dist-esm/samples-dev/notificationHubsCheckNotificationHubAvailabilitySample.js +15 -7
  41. package/dist-esm/samples-dev/notificationHubsCheckNotificationHubAvailabilitySample.js.map +1 -1
  42. package/dist-esm/samples-dev/notificationHubsCreateOrUpdateAuthorizationRuleSample.js +16 -8
  43. package/dist-esm/samples-dev/notificationHubsCreateOrUpdateAuthorizationRuleSample.js.map +1 -1
  44. package/dist-esm/samples-dev/notificationHubsCreateOrUpdateSample.js +15 -9
  45. package/dist-esm/samples-dev/notificationHubsCreateOrUpdateSample.js.map +1 -1
  46. package/dist-esm/samples-dev/notificationHubsDebugSendSample.js +16 -10
  47. package/dist-esm/samples-dev/notificationHubsDebugSendSample.js.map +1 -1
  48. package/dist-esm/samples-dev/notificationHubsDeleteAuthorizationRuleSample.js +13 -5
  49. package/dist-esm/samples-dev/notificationHubsDeleteAuthorizationRuleSample.js.map +1 -1
  50. package/dist-esm/samples-dev/notificationHubsDeleteSample.js +13 -5
  51. package/dist-esm/samples-dev/notificationHubsDeleteSample.js.map +1 -1
  52. package/dist-esm/samples-dev/notificationHubsGetAuthorizationRuleSample.js +13 -5
  53. package/dist-esm/samples-dev/notificationHubsGetAuthorizationRuleSample.js.map +1 -1
  54. package/dist-esm/samples-dev/notificationHubsGetPnsCredentialsSample.js +15 -7
  55. package/dist-esm/samples-dev/notificationHubsGetPnsCredentialsSample.js.map +1 -1
  56. package/dist-esm/samples-dev/notificationHubsGetSample.js +15 -7
  57. package/dist-esm/samples-dev/notificationHubsGetSample.js.map +1 -1
  58. package/dist-esm/samples-dev/notificationHubsListAuthorizationRulesSample.js +13 -5
  59. package/dist-esm/samples-dev/notificationHubsListAuthorizationRulesSample.js.map +1 -1
  60. package/dist-esm/samples-dev/notificationHubsListKeysSample.js +13 -5
  61. package/dist-esm/samples-dev/notificationHubsListKeysSample.js.map +1 -1
  62. package/dist-esm/samples-dev/notificationHubsListSample.js +13 -5
  63. package/dist-esm/samples-dev/notificationHubsListSample.js.map +1 -1
  64. package/dist-esm/samples-dev/notificationHubsRegenerateKeysSample.js +14 -6
  65. package/dist-esm/samples-dev/notificationHubsRegenerateKeysSample.js.map +1 -1
  66. package/dist-esm/samples-dev/notificationHubsUpdateSample.d.ts +2 -0
  67. package/dist-esm/samples-dev/notificationHubsUpdateSample.d.ts.map +1 -0
  68. package/dist-esm/samples-dev/notificationHubsUpdateSample.js +47 -0
  69. package/dist-esm/samples-dev/notificationHubsUpdateSample.js.map +1 -0
  70. package/dist-esm/samples-dev/operationsListSample.js +13 -5
  71. package/dist-esm/samples-dev/operationsListSample.js.map +1 -1
  72. package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.d.ts +2 -0
  73. package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.d.ts.map +1 -0
  74. package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.js +42 -0
  75. package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.js.map +1 -0
  76. package/dist-esm/samples-dev/privateEndpointConnectionsGetGroupIdSample.d.ts +2 -0
  77. package/dist-esm/samples-dev/privateEndpointConnectionsGetGroupIdSample.d.ts.map +1 -0
  78. package/dist-esm/samples-dev/privateEndpointConnectionsGetGroupIdSample.js +42 -0
  79. package/dist-esm/samples-dev/privateEndpointConnectionsGetGroupIdSample.js.map +1 -0
  80. package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.d.ts +2 -0
  81. package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.d.ts.map +1 -0
  82. package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.js +42 -0
  83. package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.js.map +1 -0
  84. package/dist-esm/samples-dev/privateEndpointConnectionsListGroupIdsSample.d.ts +2 -0
  85. package/dist-esm/samples-dev/privateEndpointConnectionsListGroupIdsSample.d.ts.map +1 -0
  86. package/dist-esm/samples-dev/privateEndpointConnectionsListGroupIdsSample.js +57 -0
  87. package/dist-esm/samples-dev/privateEndpointConnectionsListGroupIdsSample.js.map +1 -0
  88. package/dist-esm/samples-dev/privateEndpointConnectionsListSample.d.ts +2 -0
  89. package/dist-esm/samples-dev/privateEndpointConnectionsListSample.d.ts.map +1 -0
  90. package/dist-esm/samples-dev/privateEndpointConnectionsListSample.js +57 -0
  91. package/dist-esm/samples-dev/privateEndpointConnectionsListSample.js.map +1 -0
  92. package/dist-esm/samples-dev/privateEndpointConnectionsUpdateSample.d.ts +2 -0
  93. package/dist-esm/samples-dev/privateEndpointConnectionsUpdateSample.d.ts.map +1 -0
  94. package/dist-esm/samples-dev/privateEndpointConnectionsUpdateSample.js +48 -0
  95. package/dist-esm/samples-dev/privateEndpointConnectionsUpdateSample.js.map +1 -0
  96. package/dist-esm/src/lroImpl.d.ts +6 -11
  97. package/dist-esm/src/lroImpl.d.ts.map +1 -1
  98. package/dist-esm/src/lroImpl.js +12 -20
  99. package/dist-esm/src/lroImpl.js.map +1 -1
  100. package/dist-esm/src/models/index.d.ts +1377 -455
  101. package/dist-esm/src/models/index.d.ts.map +1 -1
  102. package/dist-esm/src/models/index.js +136 -0
  103. package/dist-esm/src/models/index.js.map +1 -1
  104. package/dist-esm/src/models/mappers.d.ts +44 -17
  105. package/dist-esm/src/models/mappers.d.ts.map +1 -1
  106. package/dist-esm/src/models/mappers.js +1972 -738
  107. package/dist-esm/src/models/mappers.js.map +1 -1
  108. package/dist-esm/src/models/parameters.d.ts +10 -6
  109. package/dist-esm/src/models/parameters.d.ts.map +1 -1
  110. package/dist-esm/src/models/parameters.js +140 -80
  111. package/dist-esm/src/models/parameters.js.map +1 -1
  112. package/dist-esm/src/notificationHubsManagementClient.d.ts +6 -6
  113. package/dist-esm/src/notificationHubsManagementClient.d.ts.map +1 -1
  114. package/dist-esm/src/notificationHubsManagementClient.js +13 -13
  115. package/dist-esm/src/notificationHubsManagementClient.js.map +1 -1
  116. package/dist-esm/src/operations/index.d.ts +3 -2
  117. package/dist-esm/src/operations/index.d.ts.map +1 -1
  118. package/dist-esm/src/operations/index.js +3 -2
  119. package/dist-esm/src/operations/index.js.map +1 -1
  120. package/dist-esm/src/operations/namespaces.d.ts +82 -81
  121. package/dist-esm/src/operations/namespaces.d.ts.map +1 -1
  122. package/dist-esm/src/operations/namespaces.js +323 -224
  123. package/dist-esm/src/operations/namespaces.js.map +1 -1
  124. package/dist-esm/src/operations/notificationHubs.d.ts +73 -74
  125. package/dist-esm/src/operations/notificationHubs.d.ts.map +1 -1
  126. package/dist-esm/src/operations/notificationHubs.js +249 -185
  127. package/dist-esm/src/operations/notificationHubs.js.map +1 -1
  128. package/dist-esm/src/operations/operations.d.ts +2 -2
  129. package/dist-esm/src/operations/operations.js +11 -12
  130. package/dist-esm/src/operations/operations.js.map +1 -1
  131. package/dist-esm/src/operations/privateEndpointConnections.d.ts +114 -0
  132. package/dist-esm/src/operations/privateEndpointConnections.d.ts.map +1 -0
  133. package/dist-esm/src/operations/privateEndpointConnections.js +466 -0
  134. package/dist-esm/src/operations/privateEndpointConnections.js.map +1 -0
  135. package/dist-esm/src/operationsInterfaces/index.d.ts +3 -2
  136. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -1
  137. package/dist-esm/src/operationsInterfaces/index.js +3 -2
  138. package/dist-esm/src/operationsInterfaces/index.js.map +1 -1
  139. package/dist-esm/src/operationsInterfaces/namespaces.d.ts +61 -58
  140. package/dist-esm/src/operationsInterfaces/namespaces.d.ts.map +1 -1
  141. package/dist-esm/src/operationsInterfaces/notificationHubs.d.ts +62 -63
  142. package/dist-esm/src/operationsInterfaces/notificationHubs.d.ts.map +1 -1
  143. package/dist-esm/src/operationsInterfaces/operations.d.ts +1 -1
  144. package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts +84 -0
  145. package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts.map +1 -0
  146. package/dist-esm/src/operationsInterfaces/privateEndpointConnections.js +9 -0
  147. package/dist-esm/src/operationsInterfaces/privateEndpointConnections.js.map +1 -0
  148. package/dist-esm/src/pagingHelper.d.ts +4 -4
  149. package/dist-esm/src/pagingHelper.js +4 -4
  150. package/dist-esm/test/notificationhubs_examples.js +16 -4
  151. package/dist-esm/test/notificationhubs_examples.js.map +1 -1
  152. package/package.json +14 -13
  153. package/review/arm-notificationhubs.api.md +548 -121
  154. package/src/lroImpl.ts +31 -23
  155. package/src/models/index.ts +1458 -467
  156. package/src/models/mappers.ts +2054 -789
  157. package/src/models/parameters.ts +152 -87
  158. package/src/notificationHubsManagementClient.ts +30 -26
  159. package/src/operations/index.ts +3 -2
  160. package/src/operations/namespaces.ts +444 -341
  161. package/src/operations/notificationHubs.ts +326 -275
  162. package/src/operations/operations.ts +18 -19
  163. package/src/operations/privateEndpointConnections.ts +629 -0
  164. package/src/operationsInterfaces/index.ts +3 -2
  165. package/src/operationsInterfaces/namespaces.ts +101 -88
  166. package/src/operationsInterfaces/notificationHubs.ts +88 -89
  167. package/src/operationsInterfaces/operations.ts +2 -2
  168. package/src/operationsInterfaces/privateEndpointConnections.ts +156 -0
  169. package/src/pagingHelper.ts +5 -5
  170. package/types/arm-notificationhubs.d.ts +1615 -549
  171. package/types/tsdoc-metadata.json +1 -1
  172. package/dist-esm/samples-dev/namespacesPatchSample.d.ts +0 -2
  173. package/dist-esm/samples-dev/namespacesPatchSample.d.ts.map +0 -1
  174. package/dist-esm/samples-dev/namespacesPatchSample.js +0 -35
  175. package/dist-esm/samples-dev/namespacesPatchSample.js.map +0 -1
  176. package/dist-esm/samples-dev/notificationHubsPatchSample.d.ts +0 -2
  177. package/dist-esm/samples-dev/notificationHubsPatchSample.d.ts.map +0 -1
  178. package/dist-esm/samples-dev/notificationHubsPatchSample.js +0 -34
  179. package/dist-esm/samples-dev/notificationHubsPatchSample.js.map +0 -1
@@ -10,8 +10,8 @@ import { setContinuationToken } from "../pagingHelper";
10
10
  import * as coreClient from "@azure/core-client";
11
11
  import * as Mappers from "../models/mappers";
12
12
  import * as Parameters from "../models/parameters";
13
- import { LroEngine } from "@azure/core-lro";
14
- import { LroImpl } from "../lroImpl";
13
+ import { createHttpPoller, } from "@azure/core-lro";
14
+ import { createLroSpec } from "../lroImpl";
15
15
  /// <reference lib="esnext.asynciterable" />
16
16
  /** Class containing Namespaces operations. */
17
17
  export class NamespacesImpl {
@@ -23,13 +23,11 @@ export class NamespacesImpl {
23
23
  this.client = client;
24
24
  }
25
25
  /**
26
- * Lists the available namespaces within a resourceGroup.
27
- * @param resourceGroupName The name of the resource group. If resourceGroupName value is null the
28
- * method lists all the namespaces within subscription
26
+ * Lists all the available namespaces within the subscription.
29
27
  * @param options The options parameters.
30
28
  */
31
- list(resourceGroupName, options) {
32
- const iter = this.listPagingAll(resourceGroupName, options);
29
+ listAll(options) {
30
+ const iter = this.listAllPagingAll(options);
33
31
  return {
34
32
  next() {
35
33
  return iter.next();
@@ -41,23 +39,23 @@ export class NamespacesImpl {
41
39
  if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
42
40
  throw new Error("maxPageSize is not supported by this operation.");
43
41
  }
44
- return this.listPagingPage(resourceGroupName, options, settings);
45
- }
42
+ return this.listAllPagingPage(options, settings);
43
+ },
46
44
  };
47
45
  }
48
- listPagingPage(resourceGroupName, options, settings) {
49
- return __asyncGenerator(this, arguments, function* listPagingPage_1() {
46
+ listAllPagingPage(options, settings) {
47
+ return __asyncGenerator(this, arguments, function* listAllPagingPage_1() {
50
48
  let result;
51
49
  let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
52
50
  if (!continuationToken) {
53
- result = yield __await(this._list(resourceGroupName, options));
51
+ result = yield __await(this._listAll(options));
54
52
  let page = result.value || [];
55
53
  continuationToken = result.nextLink;
56
54
  setContinuationToken(page, continuationToken);
57
55
  yield yield __await(page);
58
56
  }
59
57
  while (continuationToken) {
60
- result = yield __await(this._listNext(resourceGroupName, continuationToken, options));
58
+ result = yield __await(this._listAllNext(continuationToken, options));
61
59
  continuationToken = result.nextLink;
62
60
  let page = result.value || [];
63
61
  setContinuationToken(page, continuationToken);
@@ -65,11 +63,11 @@ export class NamespacesImpl {
65
63
  }
66
64
  });
67
65
  }
68
- listPagingAll(resourceGroupName, options) {
69
- return __asyncGenerator(this, arguments, function* listPagingAll_1() {
66
+ listAllPagingAll(options) {
67
+ return __asyncGenerator(this, arguments, function* listAllPagingAll_1() {
70
68
  var _a, e_1, _b, _c;
71
69
  try {
72
- for (var _d = true, _e = __asyncValues(this.listPagingPage(resourceGroupName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
70
+ for (var _d = true, _e = __asyncValues(this.listAllPagingPage(options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
73
71
  _c = _f.value;
74
72
  _d = false;
75
73
  const page = _c;
@@ -86,11 +84,12 @@ export class NamespacesImpl {
86
84
  });
87
85
  }
88
86
  /**
89
- * Lists all the available namespaces within the subscription irrespective of the resourceGroups.
87
+ * Lists the available namespaces within a resource group.
88
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
90
89
  * @param options The options parameters.
91
90
  */
92
- listAll(options) {
93
- const iter = this.listAllPagingAll(options);
91
+ list(resourceGroupName, options) {
92
+ const iter = this.listPagingAll(resourceGroupName, options);
94
93
  return {
95
94
  next() {
96
95
  return iter.next();
@@ -102,23 +101,23 @@ export class NamespacesImpl {
102
101
  if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
103
102
  throw new Error("maxPageSize is not supported by this operation.");
104
103
  }
105
- return this.listAllPagingPage(options, settings);
106
- }
104
+ return this.listPagingPage(resourceGroupName, options, settings);
105
+ },
107
106
  };
108
107
  }
109
- listAllPagingPage(options, settings) {
110
- return __asyncGenerator(this, arguments, function* listAllPagingPage_1() {
108
+ listPagingPage(resourceGroupName, options, settings) {
109
+ return __asyncGenerator(this, arguments, function* listPagingPage_1() {
111
110
  let result;
112
111
  let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
113
112
  if (!continuationToken) {
114
- result = yield __await(this._listAll(options));
113
+ result = yield __await(this._list(resourceGroupName, options));
115
114
  let page = result.value || [];
116
115
  continuationToken = result.nextLink;
117
116
  setContinuationToken(page, continuationToken);
118
117
  yield yield __await(page);
119
118
  }
120
119
  while (continuationToken) {
121
- result = yield __await(this._listAllNext(continuationToken, options));
120
+ result = yield __await(this._listNext(resourceGroupName, continuationToken, options));
122
121
  continuationToken = result.nextLink;
123
122
  let page = result.value || [];
124
123
  setContinuationToken(page, continuationToken);
@@ -126,11 +125,11 @@ export class NamespacesImpl {
126
125
  }
127
126
  });
128
127
  }
129
- listAllPagingAll(options) {
130
- return __asyncGenerator(this, arguments, function* listAllPagingAll_1() {
128
+ listPagingAll(resourceGroupName, options) {
129
+ return __asyncGenerator(this, arguments, function* listPagingAll_1() {
131
130
  var _a, e_2, _b, _c;
132
131
  try {
133
- for (var _d = true, _e = __asyncValues(this.listAllPagingPage(options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
132
+ for (var _d = true, _e = __asyncValues(this.listPagingPage(resourceGroupName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
134
133
  _c = _f.value;
135
134
  _d = false;
136
135
  const page = _c;
@@ -148,8 +147,8 @@ export class NamespacesImpl {
148
147
  }
149
148
  /**
150
149
  * Gets the authorization rules for a namespace.
151
- * @param resourceGroupName The name of the resource group.
152
- * @param namespaceName The namespace name
150
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
151
+ * @param namespaceName Namespace name
153
152
  * @param options The options parameters.
154
153
  */
155
154
  listAuthorizationRules(resourceGroupName, namespaceName, options) {
@@ -166,7 +165,7 @@ export class NamespacesImpl {
166
165
  throw new Error("maxPageSize is not supported by this operation.");
167
166
  }
168
167
  return this.listAuthorizationRulesPagingPage(resourceGroupName, namespaceName, options, settings);
169
- }
168
+ },
170
169
  };
171
170
  }
172
171
  listAuthorizationRulesPagingPage(resourceGroupName, namespaceName, options, settings) {
@@ -212,46 +211,34 @@ export class NamespacesImpl {
212
211
  /**
213
212
  * Checks the availability of the given service namespace across all Azure subscriptions. This is
214
213
  * useful because the domain name is created based on the service namespace name.
215
- * @param parameters The namespace name.
214
+ * @param parameters Request content.
216
215
  * @param options The options parameters.
217
216
  */
218
217
  checkAvailability(parameters, options) {
219
218
  return this.client.sendOperationRequest({ parameters, options }, checkAvailabilityOperationSpec);
220
219
  }
221
220
  /**
222
- * Creates/Updates a service namespace. Once created, this namespace's resource manifest is immutable.
223
- * This operation is idempotent.
224
- * @param resourceGroupName The name of the resource group.
225
- * @param namespaceName The namespace name.
226
- * @param parameters Parameters supplied to create a Namespace Resource.
221
+ * Returns the given namespace.
222
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
223
+ * @param namespaceName Namespace name
227
224
  * @param options The options parameters.
228
225
  */
229
- createOrUpdate(resourceGroupName, namespaceName, parameters, options) {
230
- return this.client.sendOperationRequest({ resourceGroupName, namespaceName, parameters, options }, createOrUpdateOperationSpec);
231
- }
232
- /**
233
- * Patches the existing namespace
234
- * @param resourceGroupName The name of the resource group.
235
- * @param namespaceName The namespace name.
236
- * @param parameters Parameters supplied to patch a Namespace Resource.
237
- * @param options The options parameters.
238
- */
239
- patch(resourceGroupName, namespaceName, parameters, options) {
240
- return this.client.sendOperationRequest({ resourceGroupName, namespaceName, parameters, options }, patchOperationSpec);
226
+ get(resourceGroupName, namespaceName, options) {
227
+ return this.client.sendOperationRequest({ resourceGroupName, namespaceName, options }, getOperationSpec);
241
228
  }
242
229
  /**
243
- * Deletes an existing namespace. This operation also removes all associated notificationHubs under the
244
- * namespace.
245
- * @param resourceGroupName The name of the resource group.
246
- * @param namespaceName The namespace name.
230
+ * Creates / Updates a Notification Hub namespace. This operation is idempotent.
231
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
232
+ * @param namespaceName Namespace name
233
+ * @param parameters Request content.
247
234
  * @param options The options parameters.
248
235
  */
249
- beginDelete(resourceGroupName, namespaceName, options) {
236
+ beginCreateOrUpdate(resourceGroupName, namespaceName, parameters, options) {
250
237
  return __awaiter(this, void 0, void 0, function* () {
251
238
  const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
252
239
  return this.client.sendOperationRequest(args, spec);
253
240
  });
254
- const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
241
+ const sendOperationFn = (args, spec) => __awaiter(this, void 0, void 0, function* () {
255
242
  var _a;
256
243
  let currentRawResponse = undefined;
257
244
  const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
@@ -266,47 +253,78 @@ export class NamespacesImpl {
266
253
  rawResponse: {
267
254
  statusCode: currentRawResponse.status,
268
255
  body: currentRawResponse.parsedBody,
269
- headers: currentRawResponse.headers.toJSON()
270
- }
256
+ headers: currentRawResponse.headers.toJSON(),
257
+ },
271
258
  };
272
259
  });
273
- const lro = new LroImpl(sendOperation, { resourceGroupName, namespaceName, options }, deleteOperationSpec);
274
- const poller = new LroEngine(lro, {
275
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
276
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
260
+ const lro = createLroSpec({
261
+ sendOperationFn,
262
+ args: { resourceGroupName, namespaceName, parameters, options },
263
+ spec: createOrUpdateOperationSpec,
264
+ });
265
+ const poller = yield createHttpPoller(lro, {
266
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
267
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
268
+ resourceLocationConfig: "azure-async-operation",
277
269
  });
278
270
  yield poller.poll();
279
271
  return poller;
280
272
  });
281
273
  }
282
274
  /**
283
- * Deletes an existing namespace. This operation also removes all associated notificationHubs under the
284
- * namespace.
285
- * @param resourceGroupName The name of the resource group.
286
- * @param namespaceName The namespace name.
275
+ * Creates / Updates a Notification Hub namespace. This operation is idempotent.
276
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
277
+ * @param namespaceName Namespace name
278
+ * @param parameters Request content.
287
279
  * @param options The options parameters.
288
280
  */
289
- beginDeleteAndWait(resourceGroupName, namespaceName, options) {
281
+ beginCreateOrUpdateAndWait(resourceGroupName, namespaceName, parameters, options) {
290
282
  return __awaiter(this, void 0, void 0, function* () {
291
- const poller = yield this.beginDelete(resourceGroupName, namespaceName, options);
283
+ const poller = yield this.beginCreateOrUpdate(resourceGroupName, namespaceName, parameters, options);
292
284
  return poller.pollUntilDone();
293
285
  });
294
286
  }
295
287
  /**
296
- * Returns the description for the specified namespace.
297
- * @param resourceGroupName The name of the resource group.
298
- * @param namespaceName The namespace name.
288
+ * Patches the existing namespace.
289
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
290
+ * @param namespaceName Namespace name
291
+ * @param parameters Request content.
299
292
  * @param options The options parameters.
300
293
  */
301
- get(resourceGroupName, namespaceName, options) {
302
- return this.client.sendOperationRequest({ resourceGroupName, namespaceName, options }, getOperationSpec);
294
+ update(resourceGroupName, namespaceName, parameters, options) {
295
+ return this.client.sendOperationRequest({ resourceGroupName, namespaceName, parameters, options }, updateOperationSpec);
296
+ }
297
+ /**
298
+ * Deletes an existing namespace. This operation also removes all associated notificationHubs under the
299
+ * namespace.
300
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
301
+ * @param namespaceName Namespace name
302
+ * @param options The options parameters.
303
+ */
304
+ delete(resourceGroupName, namespaceName, options) {
305
+ return this.client.sendOperationRequest({ resourceGroupName, namespaceName, options }, deleteOperationSpec);
306
+ }
307
+ /**
308
+ * Lists all the available namespaces within the subscription.
309
+ * @param options The options parameters.
310
+ */
311
+ _listAll(options) {
312
+ return this.client.sendOperationRequest({ options }, listAllOperationSpec);
313
+ }
314
+ /**
315
+ * Lists the available namespaces within a resource group.
316
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
317
+ * @param options The options parameters.
318
+ */
319
+ _list(resourceGroupName, options) {
320
+ return this.client.sendOperationRequest({ resourceGroupName, options }, listOperationSpec);
303
321
  }
304
322
  /**
305
323
  * Creates an authorization rule for a namespace
306
- * @param resourceGroupName The name of the resource group.
307
- * @param namespaceName The namespace name.
308
- * @param authorizationRuleName Authorization Rule Name.
309
- * @param parameters The shared access authorization rule.
324
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
325
+ * @param namespaceName Namespace name
326
+ * @param authorizationRuleName Authorization Rule Name
327
+ * @param parameters Request content.
310
328
  * @param options The options parameters.
311
329
  */
312
330
  createOrUpdateAuthorizationRule(resourceGroupName, namespaceName, authorizationRuleName, parameters, options) {
@@ -315,14 +333,14 @@ export class NamespacesImpl {
315
333
  namespaceName,
316
334
  authorizationRuleName,
317
335
  parameters,
318
- options
336
+ options,
319
337
  }, createOrUpdateAuthorizationRuleOperationSpec);
320
338
  }
321
339
  /**
322
340
  * Deletes a namespace authorization rule
323
- * @param resourceGroupName The name of the resource group.
324
- * @param namespaceName The namespace name.
325
- * @param authorizationRuleName Authorization Rule Name.
341
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
342
+ * @param namespaceName Namespace name
343
+ * @param authorizationRuleName Authorization Rule Name
326
344
  * @param options The options parameters.
327
345
  */
328
346
  deleteAuthorizationRule(resourceGroupName, namespaceName, authorizationRuleName, options) {
@@ -330,45 +348,28 @@ export class NamespacesImpl {
330
348
  }
331
349
  /**
332
350
  * Gets an authorization rule for a namespace by name.
333
- * @param resourceGroupName The name of the resource group.
334
- * @param namespaceName The namespace name
335
- * @param authorizationRuleName Authorization rule name.
351
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
352
+ * @param namespaceName Namespace name
353
+ * @param authorizationRuleName Authorization Rule Name
336
354
  * @param options The options parameters.
337
355
  */
338
356
  getAuthorizationRule(resourceGroupName, namespaceName, authorizationRuleName, options) {
339
357
  return this.client.sendOperationRequest({ resourceGroupName, namespaceName, authorizationRuleName, options }, getAuthorizationRuleOperationSpec);
340
358
  }
341
- /**
342
- * Lists the available namespaces within a resourceGroup.
343
- * @param resourceGroupName The name of the resource group. If resourceGroupName value is null the
344
- * method lists all the namespaces within subscription
345
- * @param options The options parameters.
346
- */
347
- _list(resourceGroupName, options) {
348
- return this.client.sendOperationRequest({ resourceGroupName, options }, listOperationSpec);
349
- }
350
- /**
351
- * Lists all the available namespaces within the subscription irrespective of the resourceGroups.
352
- * @param options The options parameters.
353
- */
354
- _listAll(options) {
355
- return this.client.sendOperationRequest({ options }, listAllOperationSpec);
356
- }
357
359
  /**
358
360
  * Gets the authorization rules for a namespace.
359
- * @param resourceGroupName The name of the resource group.
360
- * @param namespaceName The namespace name
361
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
362
+ * @param namespaceName Namespace name
361
363
  * @param options The options parameters.
362
364
  */
363
365
  _listAuthorizationRules(resourceGroupName, namespaceName, options) {
364
366
  return this.client.sendOperationRequest({ resourceGroupName, namespaceName, options }, listAuthorizationRulesOperationSpec);
365
367
  }
366
368
  /**
367
- * Gets the Primary and Secondary ConnectionStrings to the namespace
368
- * @param resourceGroupName The name of the resource group.
369
- * @param namespaceName The namespace name.
370
- * @param authorizationRuleName The connection string of the namespace for the specified
371
- * authorizationRule.
369
+ * Gets the Primary and Secondary ConnectionStrings to the namespace.
370
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
371
+ * @param namespaceName Namespace name
372
+ * @param authorizationRuleName Authorization Rule Name
372
373
  * @param options The options parameters.
373
374
  */
374
375
  listKeys(resourceGroupName, namespaceName, authorizationRuleName, options) {
@@ -376,11 +377,10 @@ export class NamespacesImpl {
376
377
  }
377
378
  /**
378
379
  * Regenerates the Primary/Secondary Keys to the Namespace Authorization Rule
379
- * @param resourceGroupName The name of the resource group.
380
- * @param namespaceName The namespace name.
381
- * @param authorizationRuleName The connection string of the namespace for the specified
382
- * authorizationRule.
383
- * @param parameters Parameters supplied to regenerate the Namespace Authorization Rule Key.
380
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
381
+ * @param namespaceName Namespace name
382
+ * @param authorizationRuleName Authorization Rule Name
383
+ * @param parameters Request content.
384
384
  * @param options The options parameters.
385
385
  */
386
386
  regenerateKeys(resourceGroupName, namespaceName, authorizationRuleName, parameters, options) {
@@ -389,18 +389,17 @@ export class NamespacesImpl {
389
389
  namespaceName,
390
390
  authorizationRuleName,
391
391
  parameters,
392
- options
392
+ options,
393
393
  }, regenerateKeysOperationSpec);
394
394
  }
395
395
  /**
396
- * ListNext
397
- * @param resourceGroupName The name of the resource group. If resourceGroupName value is null the
398
- * method lists all the namespaces within subscription
399
- * @param nextLink The nextLink from the previous successful call to the List method.
396
+ * Lists the PNS credentials associated with a namespace.
397
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
398
+ * @param namespaceName Namespace name
400
399
  * @param options The options parameters.
401
400
  */
402
- _listNext(resourceGroupName, nextLink, options) {
403
- return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listNextOperationSpec);
401
+ getPnsCredentials(resourceGroupName, namespaceName, options) {
402
+ return this.client.sendOperationRequest({ resourceGroupName, namespaceName, options }, getPnsCredentialsOperationSpec);
404
403
  }
405
404
  /**
406
405
  * ListAllNext
@@ -410,10 +409,19 @@ export class NamespacesImpl {
410
409
  _listAllNext(nextLink, options) {
411
410
  return this.client.sendOperationRequest({ nextLink, options }, listAllNextOperationSpec);
412
411
  }
412
+ /**
413
+ * ListNext
414
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
415
+ * @param nextLink The nextLink from the previous successful call to the List method.
416
+ * @param options The options parameters.
417
+ */
418
+ _listNext(resourceGroupName, nextLink, options) {
419
+ return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listNextOperationSpec);
420
+ }
413
421
  /**
414
422
  * ListAuthorizationRulesNext
415
- * @param resourceGroupName The name of the resource group.
416
- * @param namespaceName The namespace name
423
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
424
+ * @param namespaceName Namespace name
417
425
  * @param nextLink The nextLink from the previous successful call to the ListAuthorizationRules method.
418
426
  * @param options The options parameters.
419
427
  */
@@ -428,97 +436,172 @@ const checkAvailabilityOperationSpec = {
428
436
  httpMethod: "POST",
429
437
  responses: {
430
438
  200: {
431
- bodyMapper: Mappers.CheckAvailabilityResult
432
- }
439
+ bodyMapper: Mappers.CheckAvailabilityResult,
440
+ },
441
+ default: {
442
+ bodyMapper: Mappers.ErrorResponse,
443
+ },
433
444
  },
434
445
  requestBody: Parameters.parameters,
435
446
  queryParameters: [Parameters.apiVersion],
436
447
  urlParameters: [Parameters.$host, Parameters.subscriptionId],
437
- headerParameters: [Parameters.accept, Parameters.contentType],
448
+ headerParameters: [Parameters.contentType, Parameters.accept],
438
449
  mediaType: "json",
439
- serializer
450
+ serializer,
451
+ };
452
+ const getOperationSpec = {
453
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}",
454
+ httpMethod: "GET",
455
+ responses: {
456
+ 200: {
457
+ bodyMapper: Mappers.NamespaceResource,
458
+ },
459
+ default: {
460
+ bodyMapper: Mappers.ErrorResponse,
461
+ },
462
+ },
463
+ queryParameters: [Parameters.apiVersion],
464
+ urlParameters: [
465
+ Parameters.$host,
466
+ Parameters.subscriptionId,
467
+ Parameters.resourceGroupName,
468
+ Parameters.namespaceName,
469
+ ],
470
+ headerParameters: [Parameters.accept],
471
+ serializer,
440
472
  };
441
473
  const createOrUpdateOperationSpec = {
442
474
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}",
443
475
  httpMethod: "PUT",
444
476
  responses: {
445
477
  200: {
446
- bodyMapper: Mappers.NamespaceResource
478
+ bodyMapper: Mappers.NamespaceResource,
447
479
  },
448
480
  201: {
449
- bodyMapper: Mappers.NamespaceResource
450
- }
481
+ bodyMapper: Mappers.NamespaceResource,
482
+ },
483
+ 202: {
484
+ bodyMapper: Mappers.NamespaceResource,
485
+ },
486
+ 204: {
487
+ bodyMapper: Mappers.NamespaceResource,
488
+ },
489
+ default: {
490
+ bodyMapper: Mappers.ErrorResponse,
491
+ },
451
492
  },
452
- requestBody: Parameters.parameters1,
493
+ requestBody: Parameters.parameters5,
453
494
  queryParameters: [Parameters.apiVersion],
454
495
  urlParameters: [
455
496
  Parameters.$host,
456
497
  Parameters.subscriptionId,
457
498
  Parameters.resourceGroupName,
458
- Parameters.namespaceName
499
+ Parameters.namespaceName,
459
500
  ],
460
- headerParameters: [Parameters.accept, Parameters.contentType],
501
+ headerParameters: [Parameters.contentType, Parameters.accept],
461
502
  mediaType: "json",
462
- serializer
503
+ serializer,
463
504
  };
464
- const patchOperationSpec = {
505
+ const updateOperationSpec = {
465
506
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}",
466
507
  httpMethod: "PATCH",
467
508
  responses: {
468
509
  200: {
469
- bodyMapper: Mappers.NamespaceResource
470
- }
510
+ bodyMapper: Mappers.NamespaceResource,
511
+ },
512
+ default: {
513
+ bodyMapper: Mappers.ErrorResponse,
514
+ },
471
515
  },
472
- requestBody: Parameters.parameters2,
516
+ requestBody: Parameters.parameters6,
473
517
  queryParameters: [Parameters.apiVersion],
474
518
  urlParameters: [
475
519
  Parameters.$host,
476
520
  Parameters.subscriptionId,
477
521
  Parameters.resourceGroupName,
478
- Parameters.namespaceName
522
+ Parameters.namespaceName,
479
523
  ],
480
- headerParameters: [Parameters.accept, Parameters.contentType],
524
+ headerParameters: [Parameters.contentType, Parameters.accept],
481
525
  mediaType: "json",
482
- serializer
526
+ serializer,
483
527
  };
484
528
  const deleteOperationSpec = {
485
529
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}",
486
530
  httpMethod: "DELETE",
487
- responses: { 200: {}, 201: {}, 202: {}, 204: {} },
531
+ responses: {
532
+ 200: {},
533
+ 204: {},
534
+ default: {
535
+ bodyMapper: Mappers.ErrorResponse,
536
+ },
537
+ },
488
538
  queryParameters: [Parameters.apiVersion],
489
539
  urlParameters: [
490
540
  Parameters.$host,
491
541
  Parameters.subscriptionId,
492
542
  Parameters.resourceGroupName,
493
- Parameters.namespaceName
543
+ Parameters.namespaceName,
494
544
  ],
495
- serializer
545
+ headerParameters: [Parameters.accept],
546
+ serializer,
496
547
  };
497
- const getOperationSpec = {
498
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}",
548
+ const listAllOperationSpec = {
549
+ path: "/subscriptions/{subscriptionId}/providers/Microsoft.NotificationHubs/namespaces",
499
550
  httpMethod: "GET",
500
551
  responses: {
501
552
  200: {
502
- bodyMapper: Mappers.NamespaceResource
503
- }
553
+ bodyMapper: Mappers.NamespaceListResult,
554
+ },
555
+ default: {
556
+ bodyMapper: Mappers.ErrorResponse,
557
+ },
504
558
  },
505
- queryParameters: [Parameters.apiVersion],
559
+ queryParameters: [
560
+ Parameters.apiVersion,
561
+ Parameters.skipToken,
562
+ Parameters.top,
563
+ ],
564
+ urlParameters: [Parameters.$host, Parameters.subscriptionId],
565
+ headerParameters: [Parameters.accept],
566
+ serializer,
567
+ };
568
+ const listOperationSpec = {
569
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces",
570
+ httpMethod: "GET",
571
+ responses: {
572
+ 200: {
573
+ bodyMapper: Mappers.NamespaceListResult,
574
+ },
575
+ default: {
576
+ bodyMapper: Mappers.ErrorResponse,
577
+ },
578
+ },
579
+ queryParameters: [
580
+ Parameters.apiVersion,
581
+ Parameters.skipToken,
582
+ Parameters.top,
583
+ ],
506
584
  urlParameters: [
507
585
  Parameters.$host,
508
586
  Parameters.subscriptionId,
509
587
  Parameters.resourceGroupName,
510
- Parameters.namespaceName
511
588
  ],
512
589
  headerParameters: [Parameters.accept],
513
- serializer
590
+ serializer,
514
591
  };
515
592
  const createOrUpdateAuthorizationRuleOperationSpec = {
516
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/AuthorizationRules/{authorizationRuleName}",
593
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/authorizationRules/{authorizationRuleName}",
517
594
  httpMethod: "PUT",
518
595
  responses: {
519
596
  200: {
520
- bodyMapper: Mappers.SharedAccessAuthorizationRuleResource
521
- }
597
+ bodyMapper: Mappers.SharedAccessAuthorizationRuleResource,
598
+ },
599
+ 201: {
600
+ bodyMapper: Mappers.SharedAccessAuthorizationRuleResource,
601
+ },
602
+ default: {
603
+ bodyMapper: Mappers.ErrorResponse,
604
+ },
522
605
  },
523
606
  requestBody: Parameters.parameters3,
524
607
  queryParameters: [Parameters.apiVersion],
@@ -527,33 +610,43 @@ const createOrUpdateAuthorizationRuleOperationSpec = {
527
610
  Parameters.subscriptionId,
528
611
  Parameters.resourceGroupName,
529
612
  Parameters.namespaceName,
530
- Parameters.authorizationRuleName
613
+ Parameters.authorizationRuleName,
531
614
  ],
532
- headerParameters: [Parameters.accept, Parameters.contentType],
615
+ headerParameters: [Parameters.contentType, Parameters.accept],
533
616
  mediaType: "json",
534
- serializer
617
+ serializer,
535
618
  };
536
619
  const deleteAuthorizationRuleOperationSpec = {
537
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/AuthorizationRules/{authorizationRuleName}",
620
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/authorizationRules/{authorizationRuleName}",
538
621
  httpMethod: "DELETE",
539
- responses: { 200: {}, 204: {} },
622
+ responses: {
623
+ 200: {},
624
+ 204: {},
625
+ default: {
626
+ bodyMapper: Mappers.ErrorResponse,
627
+ },
628
+ },
540
629
  queryParameters: [Parameters.apiVersion],
541
630
  urlParameters: [
542
631
  Parameters.$host,
543
632
  Parameters.subscriptionId,
544
633
  Parameters.resourceGroupName,
545
634
  Parameters.namespaceName,
546
- Parameters.authorizationRuleName
635
+ Parameters.authorizationRuleName,
547
636
  ],
548
- serializer
637
+ headerParameters: [Parameters.accept],
638
+ serializer,
549
639
  };
550
640
  const getAuthorizationRuleOperationSpec = {
551
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/AuthorizationRules/{authorizationRuleName}",
641
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/authorizationRules/{authorizationRuleName}",
552
642
  httpMethod: "GET",
553
643
  responses: {
554
644
  200: {
555
- bodyMapper: Mappers.SharedAccessAuthorizationRuleResource
556
- }
645
+ bodyMapper: Mappers.SharedAccessAuthorizationRuleResource,
646
+ },
647
+ default: {
648
+ bodyMapper: Mappers.ErrorResponse,
649
+ },
557
650
  },
558
651
  queryParameters: [Parameters.apiVersion],
559
652
  urlParameters: [
@@ -561,151 +654,157 @@ const getAuthorizationRuleOperationSpec = {
561
654
  Parameters.subscriptionId,
562
655
  Parameters.resourceGroupName,
563
656
  Parameters.namespaceName,
564
- Parameters.authorizationRuleName
657
+ Parameters.authorizationRuleName,
565
658
  ],
566
659
  headerParameters: [Parameters.accept],
567
- serializer
660
+ serializer,
568
661
  };
569
- const listOperationSpec = {
570
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces",
662
+ const listAuthorizationRulesOperationSpec = {
663
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/authorizationRules",
571
664
  httpMethod: "GET",
572
665
  responses: {
573
666
  200: {
574
- bodyMapper: Mappers.NamespaceListResult
575
- }
667
+ bodyMapper: Mappers.SharedAccessAuthorizationRuleListResult,
668
+ },
669
+ default: {
670
+ bodyMapper: Mappers.ErrorResponse,
671
+ },
576
672
  },
577
673
  queryParameters: [Parameters.apiVersion],
578
674
  urlParameters: [
579
675
  Parameters.$host,
580
676
  Parameters.subscriptionId,
581
- Parameters.resourceGroupName
677
+ Parameters.resourceGroupName,
678
+ Parameters.namespaceName,
582
679
  ],
583
680
  headerParameters: [Parameters.accept],
584
- serializer
585
- };
586
- const listAllOperationSpec = {
587
- path: "/subscriptions/{subscriptionId}/providers/Microsoft.NotificationHubs/namespaces",
588
- httpMethod: "GET",
589
- responses: {
590
- 200: {
591
- bodyMapper: Mappers.NamespaceListResult
592
- }
593
- },
594
- queryParameters: [Parameters.apiVersion],
595
- urlParameters: [Parameters.$host, Parameters.subscriptionId],
596
- headerParameters: [Parameters.accept],
597
- serializer
681
+ serializer,
598
682
  };
599
- const listAuthorizationRulesOperationSpec = {
600
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/AuthorizationRules",
601
- httpMethod: "GET",
683
+ const listKeysOperationSpec = {
684
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/authorizationRules/{authorizationRuleName}/listKeys",
685
+ httpMethod: "POST",
602
686
  responses: {
603
687
  200: {
604
- bodyMapper: Mappers.SharedAccessAuthorizationRuleListResult
605
- }
688
+ bodyMapper: Mappers.ResourceListKeys,
689
+ },
690
+ default: {
691
+ bodyMapper: Mappers.ErrorResponse,
692
+ },
606
693
  },
607
694
  queryParameters: [Parameters.apiVersion],
608
695
  urlParameters: [
609
696
  Parameters.$host,
610
697
  Parameters.subscriptionId,
611
698
  Parameters.resourceGroupName,
612
- Parameters.namespaceName
699
+ Parameters.namespaceName,
700
+ Parameters.authorizationRuleName,
613
701
  ],
614
702
  headerParameters: [Parameters.accept],
615
- serializer
703
+ serializer,
616
704
  };
617
- const listKeysOperationSpec = {
618
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/AuthorizationRules/{authorizationRuleName}/listKeys",
705
+ const regenerateKeysOperationSpec = {
706
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/authorizationRules/{authorizationRuleName}/regenerateKeys",
619
707
  httpMethod: "POST",
620
708
  responses: {
621
709
  200: {
622
- bodyMapper: Mappers.ResourceListKeys
623
- }
710
+ bodyMapper: Mappers.ResourceListKeys,
711
+ },
712
+ default: {
713
+ bodyMapper: Mappers.ErrorResponse,
714
+ },
624
715
  },
716
+ requestBody: Parameters.parameters4,
625
717
  queryParameters: [Parameters.apiVersion],
626
718
  urlParameters: [
627
719
  Parameters.$host,
628
720
  Parameters.subscriptionId,
629
721
  Parameters.resourceGroupName,
630
722
  Parameters.namespaceName,
631
- Parameters.authorizationRuleName
723
+ Parameters.authorizationRuleName,
632
724
  ],
633
- headerParameters: [Parameters.accept],
634
- serializer
725
+ headerParameters: [Parameters.contentType, Parameters.accept],
726
+ mediaType: "json",
727
+ serializer,
635
728
  };
636
- const regenerateKeysOperationSpec = {
637
- path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/AuthorizationRules/{authorizationRuleName}/regenerateKeys",
729
+ const getPnsCredentialsOperationSpec = {
730
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/pnsCredentials",
638
731
  httpMethod: "POST",
639
732
  responses: {
640
733
  200: {
641
- bodyMapper: Mappers.ResourceListKeys
642
- }
734
+ bodyMapper: Mappers.PnsCredentialsResource,
735
+ },
736
+ default: {
737
+ bodyMapper: Mappers.ErrorResponse,
738
+ },
643
739
  },
644
- requestBody: Parameters.parameters4,
645
740
  queryParameters: [Parameters.apiVersion],
646
741
  urlParameters: [
647
742
  Parameters.$host,
648
743
  Parameters.subscriptionId,
649
744
  Parameters.resourceGroupName,
650
745
  Parameters.namespaceName,
651
- Parameters.authorizationRuleName
652
746
  ],
653
- headerParameters: [Parameters.accept, Parameters.contentType],
654
- mediaType: "json",
655
- serializer
747
+ headerParameters: [Parameters.accept],
748
+ serializer,
656
749
  };
657
- const listNextOperationSpec = {
750
+ const listAllNextOperationSpec = {
658
751
  path: "{nextLink}",
659
752
  httpMethod: "GET",
660
753
  responses: {
661
754
  200: {
662
- bodyMapper: Mappers.NamespaceListResult
663
- }
755
+ bodyMapper: Mappers.NamespaceListResult,
756
+ },
757
+ default: {
758
+ bodyMapper: Mappers.ErrorResponse,
759
+ },
664
760
  },
665
- queryParameters: [Parameters.apiVersion],
666
761
  urlParameters: [
667
762
  Parameters.$host,
668
- Parameters.nextLink,
669
763
  Parameters.subscriptionId,
670
- Parameters.resourceGroupName
764
+ Parameters.nextLink,
671
765
  ],
672
766
  headerParameters: [Parameters.accept],
673
- serializer
767
+ serializer,
674
768
  };
675
- const listAllNextOperationSpec = {
769
+ const listNextOperationSpec = {
676
770
  path: "{nextLink}",
677
771
  httpMethod: "GET",
678
772
  responses: {
679
773
  200: {
680
- bodyMapper: Mappers.NamespaceListResult
681
- }
774
+ bodyMapper: Mappers.NamespaceListResult,
775
+ },
776
+ default: {
777
+ bodyMapper: Mappers.ErrorResponse,
778
+ },
682
779
  },
683
- queryParameters: [Parameters.apiVersion],
684
780
  urlParameters: [
685
781
  Parameters.$host,
782
+ Parameters.subscriptionId,
783
+ Parameters.resourceGroupName,
686
784
  Parameters.nextLink,
687
- Parameters.subscriptionId
688
785
  ],
689
786
  headerParameters: [Parameters.accept],
690
- serializer
787
+ serializer,
691
788
  };
692
789
  const listAuthorizationRulesNextOperationSpec = {
693
790
  path: "{nextLink}",
694
791
  httpMethod: "GET",
695
792
  responses: {
696
793
  200: {
697
- bodyMapper: Mappers.SharedAccessAuthorizationRuleListResult
698
- }
794
+ bodyMapper: Mappers.SharedAccessAuthorizationRuleListResult,
795
+ },
796
+ default: {
797
+ bodyMapper: Mappers.ErrorResponse,
798
+ },
699
799
  },
700
- queryParameters: [Parameters.apiVersion],
701
800
  urlParameters: [
702
801
  Parameters.$host,
703
- Parameters.nextLink,
704
802
  Parameters.subscriptionId,
705
803
  Parameters.resourceGroupName,
706
- Parameters.namespaceName
804
+ Parameters.namespaceName,
805
+ Parameters.nextLink,
707
806
  ],
708
807
  headerParameters: [Parameters.accept],
709
- serializer
808
+ serializer,
710
809
  };
711
810
  //# sourceMappingURL=namespaces.js.map