@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.
- package/CHANGELOG.md +170 -9
- package/LICENSE +1 -1
- package/README.md +2 -2
- package/dist/index.js +3826 -1755
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/dist-esm/samples-dev/namespacesCheckAvailabilitySample.js +14 -6
- package/dist-esm/samples-dev/namespacesCheckAvailabilitySample.js.map +1 -1
- package/dist-esm/samples-dev/namespacesCreateOrUpdateAuthorizationRuleSample.js +15 -7
- package/dist-esm/samples-dev/namespacesCreateOrUpdateAuthorizationRuleSample.js.map +1 -1
- package/dist-esm/samples-dev/namespacesCreateOrUpdateSample.js +25 -10
- package/dist-esm/samples-dev/namespacesCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/namespacesDeleteAuthorizationRuleSample.js +13 -5
- package/dist-esm/samples-dev/namespacesDeleteAuthorizationRuleSample.js.map +1 -1
- package/dist-esm/samples-dev/namespacesDeleteSample.js +14 -6
- package/dist-esm/samples-dev/namespacesDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/namespacesGetAuthorizationRuleSample.js +13 -5
- package/dist-esm/samples-dev/namespacesGetAuthorizationRuleSample.js.map +1 -1
- package/dist-esm/samples-dev/namespacesGetPnsCredentialsSample.d.ts +2 -0
- package/dist-esm/samples-dev/namespacesGetPnsCredentialsSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/namespacesGetPnsCredentialsSample.js +39 -0
- package/dist-esm/samples-dev/namespacesGetPnsCredentialsSample.js.map +1 -0
- package/dist-esm/samples-dev/namespacesGetSample.js +15 -7
- package/dist-esm/samples-dev/namespacesGetSample.js.map +1 -1
- package/dist-esm/samples-dev/namespacesListAllSample.js +14 -6
- package/dist-esm/samples-dev/namespacesListAllSample.js.map +1 -1
- package/dist-esm/samples-dev/namespacesListAuthorizationRulesSample.js +13 -5
- package/dist-esm/samples-dev/namespacesListAuthorizationRulesSample.js.map +1 -1
- package/dist-esm/samples-dev/namespacesListKeysSample.js +15 -7
- package/dist-esm/samples-dev/namespacesListKeysSample.js.map +1 -1
- package/dist-esm/samples-dev/namespacesListSample.js +15 -7
- package/dist-esm/samples-dev/namespacesListSample.js.map +1 -1
- package/dist-esm/samples-dev/namespacesRegenerateKeysSample.js +14 -6
- package/dist-esm/samples-dev/namespacesRegenerateKeysSample.js.map +1 -1
- package/dist-esm/samples-dev/namespacesUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/namespacesUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/namespacesUpdateSample.js +51 -0
- package/dist-esm/samples-dev/namespacesUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/notificationHubsCheckNotificationHubAvailabilitySample.js +15 -7
- package/dist-esm/samples-dev/notificationHubsCheckNotificationHubAvailabilitySample.js.map +1 -1
- package/dist-esm/samples-dev/notificationHubsCreateOrUpdateAuthorizationRuleSample.js +16 -8
- package/dist-esm/samples-dev/notificationHubsCreateOrUpdateAuthorizationRuleSample.js.map +1 -1
- package/dist-esm/samples-dev/notificationHubsCreateOrUpdateSample.js +15 -9
- package/dist-esm/samples-dev/notificationHubsCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/notificationHubsDebugSendSample.js +16 -10
- package/dist-esm/samples-dev/notificationHubsDebugSendSample.js.map +1 -1
- package/dist-esm/samples-dev/notificationHubsDeleteAuthorizationRuleSample.js +13 -5
- package/dist-esm/samples-dev/notificationHubsDeleteAuthorizationRuleSample.js.map +1 -1
- package/dist-esm/samples-dev/notificationHubsDeleteSample.js +13 -5
- package/dist-esm/samples-dev/notificationHubsDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/notificationHubsGetAuthorizationRuleSample.js +13 -5
- package/dist-esm/samples-dev/notificationHubsGetAuthorizationRuleSample.js.map +1 -1
- package/dist-esm/samples-dev/notificationHubsGetPnsCredentialsSample.js +15 -7
- package/dist-esm/samples-dev/notificationHubsGetPnsCredentialsSample.js.map +1 -1
- package/dist-esm/samples-dev/notificationHubsGetSample.js +15 -7
- package/dist-esm/samples-dev/notificationHubsGetSample.js.map +1 -1
- package/dist-esm/samples-dev/notificationHubsListAuthorizationRulesSample.js +13 -5
- package/dist-esm/samples-dev/notificationHubsListAuthorizationRulesSample.js.map +1 -1
- package/dist-esm/samples-dev/notificationHubsListKeysSample.js +13 -5
- package/dist-esm/samples-dev/notificationHubsListKeysSample.js.map +1 -1
- package/dist-esm/samples-dev/notificationHubsListSample.js +13 -5
- package/dist-esm/samples-dev/notificationHubsListSample.js.map +1 -1
- package/dist-esm/samples-dev/notificationHubsRegenerateKeysSample.js +14 -6
- package/dist-esm/samples-dev/notificationHubsRegenerateKeysSample.js.map +1 -1
- package/dist-esm/samples-dev/notificationHubsUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/notificationHubsUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/notificationHubsUpdateSample.js +47 -0
- package/dist-esm/samples-dev/notificationHubsUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/operationsListSample.js +13 -5
- package/dist-esm/samples-dev/operationsListSample.js.map +1 -1
- package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.d.ts +2 -0
- package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.js +42 -0
- package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.js.map +1 -0
- package/dist-esm/samples-dev/privateEndpointConnectionsGetGroupIdSample.d.ts +2 -0
- package/dist-esm/samples-dev/privateEndpointConnectionsGetGroupIdSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/privateEndpointConnectionsGetGroupIdSample.js +42 -0
- package/dist-esm/samples-dev/privateEndpointConnectionsGetGroupIdSample.js.map +1 -0
- package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.js +42 -0
- package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.js.map +1 -0
- package/dist-esm/samples-dev/privateEndpointConnectionsListGroupIdsSample.d.ts +2 -0
- package/dist-esm/samples-dev/privateEndpointConnectionsListGroupIdsSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/privateEndpointConnectionsListGroupIdsSample.js +57 -0
- package/dist-esm/samples-dev/privateEndpointConnectionsListGroupIdsSample.js.map +1 -0
- package/dist-esm/samples-dev/privateEndpointConnectionsListSample.d.ts +2 -0
- package/dist-esm/samples-dev/privateEndpointConnectionsListSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/privateEndpointConnectionsListSample.js +57 -0
- package/dist-esm/samples-dev/privateEndpointConnectionsListSample.js.map +1 -0
- package/dist-esm/samples-dev/privateEndpointConnectionsUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/privateEndpointConnectionsUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/privateEndpointConnectionsUpdateSample.js +48 -0
- package/dist-esm/samples-dev/privateEndpointConnectionsUpdateSample.js.map +1 -0
- package/dist-esm/src/lroImpl.d.ts +6 -11
- package/dist-esm/src/lroImpl.d.ts.map +1 -1
- package/dist-esm/src/lroImpl.js +12 -20
- package/dist-esm/src/lroImpl.js.map +1 -1
- package/dist-esm/src/models/index.d.ts +1377 -455
- package/dist-esm/src/models/index.d.ts.map +1 -1
- package/dist-esm/src/models/index.js +136 -0
- package/dist-esm/src/models/index.js.map +1 -1
- package/dist-esm/src/models/mappers.d.ts +44 -17
- package/dist-esm/src/models/mappers.d.ts.map +1 -1
- package/dist-esm/src/models/mappers.js +1972 -738
- package/dist-esm/src/models/mappers.js.map +1 -1
- package/dist-esm/src/models/parameters.d.ts +10 -6
- package/dist-esm/src/models/parameters.d.ts.map +1 -1
- package/dist-esm/src/models/parameters.js +140 -80
- package/dist-esm/src/models/parameters.js.map +1 -1
- package/dist-esm/src/notificationHubsManagementClient.d.ts +6 -6
- package/dist-esm/src/notificationHubsManagementClient.d.ts.map +1 -1
- package/dist-esm/src/notificationHubsManagementClient.js +13 -13
- package/dist-esm/src/notificationHubsManagementClient.js.map +1 -1
- package/dist-esm/src/operations/index.d.ts +3 -2
- package/dist-esm/src/operations/index.d.ts.map +1 -1
- package/dist-esm/src/operations/index.js +3 -2
- package/dist-esm/src/operations/index.js.map +1 -1
- package/dist-esm/src/operations/namespaces.d.ts +82 -81
- package/dist-esm/src/operations/namespaces.d.ts.map +1 -1
- package/dist-esm/src/operations/namespaces.js +323 -224
- package/dist-esm/src/operations/namespaces.js.map +1 -1
- package/dist-esm/src/operations/notificationHubs.d.ts +73 -74
- package/dist-esm/src/operations/notificationHubs.d.ts.map +1 -1
- package/dist-esm/src/operations/notificationHubs.js +249 -185
- package/dist-esm/src/operations/notificationHubs.js.map +1 -1
- package/dist-esm/src/operations/operations.d.ts +2 -2
- package/dist-esm/src/operations/operations.js +11 -12
- package/dist-esm/src/operations/operations.js.map +1 -1
- package/dist-esm/src/operations/privateEndpointConnections.d.ts +114 -0
- package/dist-esm/src/operations/privateEndpointConnections.d.ts.map +1 -0
- package/dist-esm/src/operations/privateEndpointConnections.js +466 -0
- package/dist-esm/src/operations/privateEndpointConnections.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts +3 -2
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/index.js +3 -2
- package/dist-esm/src/operationsInterfaces/index.js.map +1 -1
- package/dist-esm/src/operationsInterfaces/namespaces.d.ts +61 -58
- package/dist-esm/src/operationsInterfaces/namespaces.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/notificationHubs.d.ts +62 -63
- package/dist-esm/src/operationsInterfaces/notificationHubs.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/operations.d.ts +1 -1
- package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts +84 -0
- package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/privateEndpointConnections.js +9 -0
- package/dist-esm/src/operationsInterfaces/privateEndpointConnections.js.map +1 -0
- package/dist-esm/src/pagingHelper.d.ts +4 -4
- package/dist-esm/src/pagingHelper.js +4 -4
- package/dist-esm/test/notificationhubs_examples.js +16 -4
- package/dist-esm/test/notificationhubs_examples.js.map +1 -1
- package/package.json +14 -13
- package/review/arm-notificationhubs.api.md +548 -121
- package/src/lroImpl.ts +31 -23
- package/src/models/index.ts +1458 -467
- package/src/models/mappers.ts +2054 -789
- package/src/models/parameters.ts +152 -87
- package/src/notificationHubsManagementClient.ts +30 -26
- package/src/operations/index.ts +3 -2
- package/src/operations/namespaces.ts +444 -341
- package/src/operations/notificationHubs.ts +326 -275
- package/src/operations/operations.ts +18 -19
- package/src/operations/privateEndpointConnections.ts +629 -0
- package/src/operationsInterfaces/index.ts +3 -2
- package/src/operationsInterfaces/namespaces.ts +101 -88
- package/src/operationsInterfaces/notificationHubs.ts +88 -89
- package/src/operationsInterfaces/operations.ts +2 -2
- package/src/operationsInterfaces/privateEndpointConnections.ts +156 -0
- package/src/pagingHelper.ts +5 -5
- package/types/arm-notificationhubs.d.ts +1615 -549
- package/types/tsdoc-metadata.json +1 -1
- package/dist-esm/samples-dev/namespacesPatchSample.d.ts +0 -2
- package/dist-esm/samples-dev/namespacesPatchSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/namespacesPatchSample.js +0 -35
- package/dist-esm/samples-dev/namespacesPatchSample.js.map +0 -1
- package/dist-esm/samples-dev/notificationHubsPatchSample.d.ts +0 -2
- package/dist-esm/samples-dev/notificationHubsPatchSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/notificationHubsPatchSample.js +0 -34
- package/dist-esm/samples-dev/notificationHubsPatchSample.js.map +0 -1
|
@@ -22,8 +22,8 @@ export class NotificationHubsImpl {
|
|
|
22
22
|
}
|
|
23
23
|
/**
|
|
24
24
|
* Lists the notification hubs associated with a namespace.
|
|
25
|
-
* @param resourceGroupName The name of the resource group.
|
|
26
|
-
* @param namespaceName
|
|
25
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
26
|
+
* @param namespaceName Namespace name
|
|
27
27
|
* @param options The options parameters.
|
|
28
28
|
*/
|
|
29
29
|
list(resourceGroupName, namespaceName, options) {
|
|
@@ -40,7 +40,7 @@ export class NotificationHubsImpl {
|
|
|
40
40
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
41
41
|
}
|
|
42
42
|
return this.listPagingPage(resourceGroupName, namespaceName, options, settings);
|
|
43
|
-
}
|
|
43
|
+
},
|
|
44
44
|
};
|
|
45
45
|
}
|
|
46
46
|
listPagingPage(resourceGroupName, namespaceName, options, settings) {
|
|
@@ -85,9 +85,9 @@ export class NotificationHubsImpl {
|
|
|
85
85
|
}
|
|
86
86
|
/**
|
|
87
87
|
* Gets the authorization rules for a NotificationHub.
|
|
88
|
-
* @param resourceGroupName The name of the resource group.
|
|
89
|
-
* @param namespaceName
|
|
90
|
-
* @param notificationHubName
|
|
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
91
|
* @param options The options parameters.
|
|
92
92
|
*/
|
|
93
93
|
listAuthorizationRules(resourceGroupName, namespaceName, notificationHubName, options) {
|
|
@@ -104,7 +104,7 @@ export class NotificationHubsImpl {
|
|
|
104
104
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
105
105
|
}
|
|
106
106
|
return this.listAuthorizationRulesPagingPage(resourceGroupName, namespaceName, notificationHubName, options, settings);
|
|
107
|
-
}
|
|
107
|
+
},
|
|
108
108
|
};
|
|
109
109
|
}
|
|
110
110
|
listAuthorizationRulesPagingPage(resourceGroupName, namespaceName, notificationHubName, options, settings) {
|
|
@@ -149,20 +149,30 @@ export class NotificationHubsImpl {
|
|
|
149
149
|
}
|
|
150
150
|
/**
|
|
151
151
|
* Checks the availability of the given notificationHub in a namespace.
|
|
152
|
-
* @param resourceGroupName The name of the resource group.
|
|
153
|
-
* @param namespaceName
|
|
154
|
-
* @param parameters
|
|
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
155
|
* @param options The options parameters.
|
|
156
156
|
*/
|
|
157
157
|
checkNotificationHubAvailability(resourceGroupName, namespaceName, parameters, options) {
|
|
158
158
|
return this.client.sendOperationRequest({ resourceGroupName, namespaceName, parameters, options }, checkNotificationHubAvailabilityOperationSpec);
|
|
159
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
|
+
}
|
|
160
170
|
/**
|
|
161
171
|
* Creates/Update a NotificationHub in a namespace.
|
|
162
|
-
* @param resourceGroupName The name of the resource group.
|
|
163
|
-
* @param namespaceName
|
|
164
|
-
* @param notificationHubName
|
|
165
|
-
* @param parameters
|
|
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.
|
|
166
176
|
* @param options The options parameters.
|
|
167
177
|
*/
|
|
168
178
|
createOrUpdate(resourceGroupName, namespaceName, notificationHubName, parameters, options) {
|
|
@@ -171,24 +181,31 @@ export class NotificationHubsImpl {
|
|
|
171
181
|
namespaceName,
|
|
172
182
|
notificationHubName,
|
|
173
183
|
parameters,
|
|
174
|
-
options
|
|
184
|
+
options,
|
|
175
185
|
}, createOrUpdateOperationSpec);
|
|
176
186
|
}
|
|
177
187
|
/**
|
|
178
188
|
* Patch a NotificationHub in a namespace.
|
|
179
|
-
* @param resourceGroupName The name of the resource group.
|
|
180
|
-
* @param namespaceName
|
|
181
|
-
* @param notificationHubName
|
|
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.
|
|
182
193
|
* @param options The options parameters.
|
|
183
194
|
*/
|
|
184
|
-
|
|
185
|
-
return this.client.sendOperationRequest({
|
|
195
|
+
update(resourceGroupName, namespaceName, notificationHubName, parameters, options) {
|
|
196
|
+
return this.client.sendOperationRequest({
|
|
197
|
+
resourceGroupName,
|
|
198
|
+
namespaceName,
|
|
199
|
+
notificationHubName,
|
|
200
|
+
parameters,
|
|
201
|
+
options,
|
|
202
|
+
}, updateOperationSpec);
|
|
186
203
|
}
|
|
187
204
|
/**
|
|
188
205
|
* Deletes a notification hub associated with a namespace.
|
|
189
|
-
* @param resourceGroupName The name of the resource group.
|
|
190
|
-
* @param namespaceName
|
|
191
|
-
* @param notificationHubName
|
|
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
|
|
192
209
|
* @param options The options parameters.
|
|
193
210
|
*/
|
|
194
211
|
delete(resourceGroupName, namespaceName, notificationHubName, options) {
|
|
@@ -196,19 +213,18 @@ export class NotificationHubsImpl {
|
|
|
196
213
|
}
|
|
197
214
|
/**
|
|
198
215
|
* Lists the notification hubs associated with a namespace.
|
|
199
|
-
* @param resourceGroupName The name of the resource group.
|
|
200
|
-
* @param namespaceName
|
|
201
|
-
* @param notificationHubName The notification hub name.
|
|
216
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
217
|
+
* @param namespaceName Namespace name
|
|
202
218
|
* @param options The options parameters.
|
|
203
219
|
*/
|
|
204
|
-
|
|
205
|
-
return this.client.sendOperationRequest({ resourceGroupName, namespaceName,
|
|
220
|
+
_list(resourceGroupName, namespaceName, options) {
|
|
221
|
+
return this.client.sendOperationRequest({ resourceGroupName, namespaceName, options }, listOperationSpec);
|
|
206
222
|
}
|
|
207
223
|
/**
|
|
208
|
-
*
|
|
209
|
-
* @param resourceGroupName The name of the resource group.
|
|
210
|
-
* @param namespaceName
|
|
211
|
-
* @param notificationHubName
|
|
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
|
|
212
228
|
* @param options The options parameters.
|
|
213
229
|
*/
|
|
214
230
|
debugSend(resourceGroupName, namespaceName, notificationHubName, options) {
|
|
@@ -216,11 +232,11 @@ export class NotificationHubsImpl {
|
|
|
216
232
|
}
|
|
217
233
|
/**
|
|
218
234
|
* Creates/Updates an authorization rule for a NotificationHub
|
|
219
|
-
* @param resourceGroupName The name of the resource group.
|
|
220
|
-
* @param namespaceName
|
|
221
|
-
* @param notificationHubName
|
|
222
|
-
* @param authorizationRuleName Authorization Rule Name
|
|
223
|
-
* @param parameters
|
|
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.
|
|
224
240
|
* @param options The options parameters.
|
|
225
241
|
*/
|
|
226
242
|
createOrUpdateAuthorizationRule(resourceGroupName, namespaceName, notificationHubName, authorizationRuleName, parameters, options) {
|
|
@@ -230,15 +246,15 @@ export class NotificationHubsImpl {
|
|
|
230
246
|
notificationHubName,
|
|
231
247
|
authorizationRuleName,
|
|
232
248
|
parameters,
|
|
233
|
-
options
|
|
249
|
+
options,
|
|
234
250
|
}, createOrUpdateAuthorizationRuleOperationSpec);
|
|
235
251
|
}
|
|
236
252
|
/**
|
|
237
253
|
* Deletes a notificationHub authorization rule
|
|
238
|
-
* @param resourceGroupName The name of the resource group.
|
|
239
|
-
* @param namespaceName
|
|
240
|
-
* @param notificationHubName
|
|
241
|
-
* @param authorizationRuleName Authorization Rule Name
|
|
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
|
|
242
258
|
* @param options The options parameters.
|
|
243
259
|
*/
|
|
244
260
|
deleteAuthorizationRule(resourceGroupName, namespaceName, notificationHubName, authorizationRuleName, options) {
|
|
@@ -247,15 +263,15 @@ export class NotificationHubsImpl {
|
|
|
247
263
|
namespaceName,
|
|
248
264
|
notificationHubName,
|
|
249
265
|
authorizationRuleName,
|
|
250
|
-
options
|
|
266
|
+
options,
|
|
251
267
|
}, deleteAuthorizationRuleOperationSpec);
|
|
252
268
|
}
|
|
253
269
|
/**
|
|
254
270
|
* Gets an authorization rule for a NotificationHub by name.
|
|
255
|
-
* @param resourceGroupName The name of the resource group.
|
|
256
|
-
* @param namespaceName
|
|
257
|
-
* @param notificationHubName
|
|
258
|
-
* @param authorizationRuleName
|
|
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
|
|
259
275
|
* @param options The options parameters.
|
|
260
276
|
*/
|
|
261
277
|
getAuthorizationRule(resourceGroupName, namespaceName, notificationHubName, authorizationRuleName, options) {
|
|
@@ -264,23 +280,14 @@ export class NotificationHubsImpl {
|
|
|
264
280
|
namespaceName,
|
|
265
281
|
notificationHubName,
|
|
266
282
|
authorizationRuleName,
|
|
267
|
-
options
|
|
283
|
+
options,
|
|
268
284
|
}, getAuthorizationRuleOperationSpec);
|
|
269
285
|
}
|
|
270
|
-
/**
|
|
271
|
-
* Lists the notification hubs associated with a namespace.
|
|
272
|
-
* @param resourceGroupName The name of the resource group.
|
|
273
|
-
* @param namespaceName The namespace name.
|
|
274
|
-
* @param options The options parameters.
|
|
275
|
-
*/
|
|
276
|
-
_list(resourceGroupName, namespaceName, options) {
|
|
277
|
-
return this.client.sendOperationRequest({ resourceGroupName, namespaceName, options }, listOperationSpec);
|
|
278
|
-
}
|
|
279
286
|
/**
|
|
280
287
|
* Gets the authorization rules for a NotificationHub.
|
|
281
|
-
* @param resourceGroupName The name of the resource group.
|
|
282
|
-
* @param namespaceName
|
|
283
|
-
* @param notificationHubName
|
|
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
|
|
284
291
|
* @param options The options parameters.
|
|
285
292
|
*/
|
|
286
293
|
_listAuthorizationRules(resourceGroupName, namespaceName, notificationHubName, options) {
|
|
@@ -288,11 +295,10 @@ export class NotificationHubsImpl {
|
|
|
288
295
|
}
|
|
289
296
|
/**
|
|
290
297
|
* Gets the Primary and Secondary ConnectionStrings to the NotificationHub
|
|
291
|
-
* @param resourceGroupName The name of the resource group.
|
|
292
|
-
* @param namespaceName
|
|
293
|
-
* @param notificationHubName
|
|
294
|
-
* @param authorizationRuleName
|
|
295
|
-
* authorizationRule.
|
|
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
|
|
296
302
|
* @param options The options parameters.
|
|
297
303
|
*/
|
|
298
304
|
listKeys(resourceGroupName, namespaceName, notificationHubName, authorizationRuleName, options) {
|
|
@@ -301,17 +307,16 @@ export class NotificationHubsImpl {
|
|
|
301
307
|
namespaceName,
|
|
302
308
|
notificationHubName,
|
|
303
309
|
authorizationRuleName,
|
|
304
|
-
options
|
|
310
|
+
options,
|
|
305
311
|
}, listKeysOperationSpec);
|
|
306
312
|
}
|
|
307
313
|
/**
|
|
308
314
|
* Regenerates the Primary/Secondary Keys to the NotificationHub Authorization Rule
|
|
309
|
-
* @param resourceGroupName The name of the resource group.
|
|
310
|
-
* @param namespaceName
|
|
311
|
-
* @param notificationHubName
|
|
312
|
-
* @param authorizationRuleName
|
|
313
|
-
*
|
|
314
|
-
* @param parameters Parameters supplied to regenerate the NotificationHub Authorization Rule Key.
|
|
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.
|
|
315
320
|
* @param options The options parameters.
|
|
316
321
|
*/
|
|
317
322
|
regenerateKeys(resourceGroupName, namespaceName, notificationHubName, authorizationRuleName, parameters, options) {
|
|
@@ -321,14 +326,14 @@ export class NotificationHubsImpl {
|
|
|
321
326
|
notificationHubName,
|
|
322
327
|
authorizationRuleName,
|
|
323
328
|
parameters,
|
|
324
|
-
options
|
|
329
|
+
options,
|
|
325
330
|
}, regenerateKeysOperationSpec);
|
|
326
331
|
}
|
|
327
332
|
/**
|
|
328
|
-
* Lists the PNS Credentials associated with a notification hub
|
|
329
|
-
* @param resourceGroupName The name of the resource group.
|
|
330
|
-
* @param namespaceName
|
|
331
|
-
* @param notificationHubName
|
|
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
|
|
332
337
|
* @param options The options parameters.
|
|
333
338
|
*/
|
|
334
339
|
getPnsCredentials(resourceGroupName, namespaceName, notificationHubName, options) {
|
|
@@ -336,8 +341,8 @@ export class NotificationHubsImpl {
|
|
|
336
341
|
}
|
|
337
342
|
/**
|
|
338
343
|
* ListNext
|
|
339
|
-
* @param resourceGroupName The name of the resource group.
|
|
340
|
-
* @param namespaceName
|
|
344
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
345
|
+
* @param namespaceName Namespace name
|
|
341
346
|
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
342
347
|
* @param options The options parameters.
|
|
343
348
|
*/
|
|
@@ -346,9 +351,9 @@ export class NotificationHubsImpl {
|
|
|
346
351
|
}
|
|
347
352
|
/**
|
|
348
353
|
* ListAuthorizationRulesNext
|
|
349
|
-
* @param resourceGroupName The name of the resource group.
|
|
350
|
-
* @param namespaceName
|
|
351
|
-
* @param notificationHubName
|
|
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
|
|
352
357
|
* @param nextLink The nextLink from the previous successful call to the ListAuthorizationRules method.
|
|
353
358
|
* @param options The options parameters.
|
|
354
359
|
*/
|
|
@@ -358,7 +363,7 @@ export class NotificationHubsImpl {
|
|
|
358
363
|
namespaceName,
|
|
359
364
|
notificationHubName,
|
|
360
365
|
nextLink,
|
|
361
|
-
options
|
|
366
|
+
options,
|
|
362
367
|
}, listAuthorizationRulesNextOperationSpec);
|
|
363
368
|
}
|
|
364
369
|
}
|
|
@@ -369,8 +374,11 @@ const checkNotificationHubAvailabilityOperationSpec = {
|
|
|
369
374
|
httpMethod: "POST",
|
|
370
375
|
responses: {
|
|
371
376
|
200: {
|
|
372
|
-
bodyMapper: Mappers.CheckAvailabilityResult
|
|
373
|
-
}
|
|
377
|
+
bodyMapper: Mappers.CheckAvailabilityResult,
|
|
378
|
+
},
|
|
379
|
+
default: {
|
|
380
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
381
|
+
},
|
|
374
382
|
},
|
|
375
383
|
requestBody: Parameters.parameters,
|
|
376
384
|
queryParameters: [Parameters.apiVersion],
|
|
@@ -378,118 +386,166 @@ const checkNotificationHubAvailabilityOperationSpec = {
|
|
|
378
386
|
Parameters.$host,
|
|
379
387
|
Parameters.subscriptionId,
|
|
380
388
|
Parameters.resourceGroupName,
|
|
381
|
-
Parameters.namespaceName
|
|
389
|
+
Parameters.namespaceName,
|
|
382
390
|
],
|
|
383
|
-
headerParameters: [Parameters.
|
|
391
|
+
headerParameters: [Parameters.contentType, Parameters.accept],
|
|
384
392
|
mediaType: "json",
|
|
385
|
-
serializer
|
|
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,
|
|
386
416
|
};
|
|
387
417
|
const createOrUpdateOperationSpec = {
|
|
388
418
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}",
|
|
389
419
|
httpMethod: "PUT",
|
|
390
420
|
responses: {
|
|
391
421
|
200: {
|
|
392
|
-
bodyMapper: Mappers.NotificationHubResource
|
|
422
|
+
bodyMapper: Mappers.NotificationHubResource,
|
|
393
423
|
},
|
|
394
424
|
201: {
|
|
395
|
-
bodyMapper: Mappers.NotificationHubResource
|
|
396
|
-
}
|
|
425
|
+
bodyMapper: Mappers.NotificationHubResource,
|
|
426
|
+
},
|
|
427
|
+
default: {
|
|
428
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
429
|
+
},
|
|
397
430
|
},
|
|
398
|
-
requestBody: Parameters.
|
|
431
|
+
requestBody: Parameters.parameters1,
|
|
399
432
|
queryParameters: [Parameters.apiVersion],
|
|
400
433
|
urlParameters: [
|
|
401
434
|
Parameters.$host,
|
|
402
435
|
Parameters.subscriptionId,
|
|
403
436
|
Parameters.resourceGroupName,
|
|
404
437
|
Parameters.namespaceName,
|
|
405
|
-
Parameters.notificationHubName
|
|
438
|
+
Parameters.notificationHubName,
|
|
406
439
|
],
|
|
407
|
-
headerParameters: [Parameters.
|
|
440
|
+
headerParameters: [Parameters.contentType, Parameters.accept],
|
|
408
441
|
mediaType: "json",
|
|
409
|
-
serializer
|
|
442
|
+
serializer,
|
|
410
443
|
};
|
|
411
|
-
const
|
|
444
|
+
const updateOperationSpec = {
|
|
412
445
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}",
|
|
413
446
|
httpMethod: "PATCH",
|
|
414
447
|
responses: {
|
|
415
448
|
200: {
|
|
416
|
-
bodyMapper: Mappers.NotificationHubResource
|
|
417
|
-
}
|
|
449
|
+
bodyMapper: Mappers.NotificationHubResource,
|
|
450
|
+
},
|
|
451
|
+
default: {
|
|
452
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
453
|
+
},
|
|
418
454
|
},
|
|
419
|
-
requestBody: Parameters.
|
|
455
|
+
requestBody: Parameters.parameters2,
|
|
420
456
|
queryParameters: [Parameters.apiVersion],
|
|
421
457
|
urlParameters: [
|
|
422
458
|
Parameters.$host,
|
|
423
459
|
Parameters.subscriptionId,
|
|
424
460
|
Parameters.resourceGroupName,
|
|
425
461
|
Parameters.namespaceName,
|
|
426
|
-
Parameters.notificationHubName
|
|
462
|
+
Parameters.notificationHubName,
|
|
427
463
|
],
|
|
428
|
-
headerParameters: [Parameters.
|
|
464
|
+
headerParameters: [Parameters.contentType, Parameters.accept],
|
|
429
465
|
mediaType: "json",
|
|
430
|
-
serializer
|
|
466
|
+
serializer,
|
|
431
467
|
};
|
|
432
468
|
const deleteOperationSpec = {
|
|
433
469
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}",
|
|
434
470
|
httpMethod: "DELETE",
|
|
435
|
-
responses: {
|
|
471
|
+
responses: {
|
|
472
|
+
200: {},
|
|
473
|
+
204: {},
|
|
474
|
+
default: {
|
|
475
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
476
|
+
},
|
|
477
|
+
},
|
|
436
478
|
queryParameters: [Parameters.apiVersion],
|
|
437
479
|
urlParameters: [
|
|
438
480
|
Parameters.$host,
|
|
439
481
|
Parameters.subscriptionId,
|
|
440
482
|
Parameters.resourceGroupName,
|
|
441
483
|
Parameters.namespaceName,
|
|
442
|
-
Parameters.notificationHubName
|
|
484
|
+
Parameters.notificationHubName,
|
|
443
485
|
],
|
|
444
|
-
|
|
486
|
+
headerParameters: [Parameters.accept],
|
|
487
|
+
serializer,
|
|
445
488
|
};
|
|
446
|
-
const
|
|
447
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs
|
|
489
|
+
const listOperationSpec = {
|
|
490
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs",
|
|
448
491
|
httpMethod: "GET",
|
|
449
492
|
responses: {
|
|
450
493
|
200: {
|
|
451
|
-
bodyMapper: Mappers.
|
|
452
|
-
}
|
|
494
|
+
bodyMapper: Mappers.NotificationHubListResult,
|
|
495
|
+
},
|
|
496
|
+
default: {
|
|
497
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
498
|
+
},
|
|
453
499
|
},
|
|
454
|
-
queryParameters: [
|
|
500
|
+
queryParameters: [
|
|
501
|
+
Parameters.apiVersion,
|
|
502
|
+
Parameters.skipToken,
|
|
503
|
+
Parameters.top,
|
|
504
|
+
],
|
|
455
505
|
urlParameters: [
|
|
456
506
|
Parameters.$host,
|
|
457
507
|
Parameters.subscriptionId,
|
|
458
508
|
Parameters.resourceGroupName,
|
|
459
509
|
Parameters.namespaceName,
|
|
460
|
-
Parameters.notificationHubName
|
|
461
510
|
],
|
|
462
511
|
headerParameters: [Parameters.accept],
|
|
463
|
-
serializer
|
|
512
|
+
serializer,
|
|
464
513
|
};
|
|
465
514
|
const debugSendOperationSpec = {
|
|
466
515
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}/debugsend",
|
|
467
516
|
httpMethod: "POST",
|
|
468
517
|
responses: {
|
|
469
|
-
|
|
470
|
-
bodyMapper: Mappers.DebugSendResponse
|
|
471
|
-
}
|
|
518
|
+
200: {
|
|
519
|
+
bodyMapper: Mappers.DebugSendResponse,
|
|
520
|
+
},
|
|
521
|
+
default: {
|
|
522
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
523
|
+
},
|
|
472
524
|
},
|
|
473
|
-
requestBody: Parameters.parameters7,
|
|
474
525
|
queryParameters: [Parameters.apiVersion],
|
|
475
526
|
urlParameters: [
|
|
476
527
|
Parameters.$host,
|
|
477
528
|
Parameters.subscriptionId,
|
|
478
529
|
Parameters.resourceGroupName,
|
|
479
530
|
Parameters.namespaceName,
|
|
480
|
-
Parameters.notificationHubName
|
|
531
|
+
Parameters.notificationHubName,
|
|
481
532
|
],
|
|
482
|
-
headerParameters: [Parameters.accept
|
|
483
|
-
|
|
484
|
-
serializer
|
|
533
|
+
headerParameters: [Parameters.accept],
|
|
534
|
+
serializer,
|
|
485
535
|
};
|
|
486
536
|
const createOrUpdateAuthorizationRuleOperationSpec = {
|
|
487
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}/
|
|
537
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}/authorizationRules/{authorizationRuleName}",
|
|
488
538
|
httpMethod: "PUT",
|
|
489
539
|
responses: {
|
|
490
540
|
200: {
|
|
491
|
-
bodyMapper: Mappers.SharedAccessAuthorizationRuleResource
|
|
492
|
-
}
|
|
541
|
+
bodyMapper: Mappers.SharedAccessAuthorizationRuleResource,
|
|
542
|
+
},
|
|
543
|
+
201: {
|
|
544
|
+
bodyMapper: Mappers.SharedAccessAuthorizationRuleResource,
|
|
545
|
+
},
|
|
546
|
+
default: {
|
|
547
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
548
|
+
},
|
|
493
549
|
},
|
|
494
550
|
requestBody: Parameters.parameters3,
|
|
495
551
|
queryParameters: [Parameters.apiVersion],
|
|
@@ -498,35 +554,22 @@ const createOrUpdateAuthorizationRuleOperationSpec = {
|
|
|
498
554
|
Parameters.subscriptionId,
|
|
499
555
|
Parameters.resourceGroupName,
|
|
500
556
|
Parameters.namespaceName,
|
|
557
|
+
Parameters.notificationHubName,
|
|
501
558
|
Parameters.authorizationRuleName,
|
|
502
|
-
Parameters.notificationHubName
|
|
503
559
|
],
|
|
504
|
-
headerParameters: [Parameters.
|
|
560
|
+
headerParameters: [Parameters.contentType, Parameters.accept],
|
|
505
561
|
mediaType: "json",
|
|
506
|
-
serializer
|
|
562
|
+
serializer,
|
|
507
563
|
};
|
|
508
564
|
const deleteAuthorizationRuleOperationSpec = {
|
|
509
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}/
|
|
565
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}/authorizationRules/{authorizationRuleName}",
|
|
510
566
|
httpMethod: "DELETE",
|
|
511
|
-
responses: { 200: {}, 204: {} },
|
|
512
|
-
queryParameters: [Parameters.apiVersion],
|
|
513
|
-
urlParameters: [
|
|
514
|
-
Parameters.$host,
|
|
515
|
-
Parameters.subscriptionId,
|
|
516
|
-
Parameters.resourceGroupName,
|
|
517
|
-
Parameters.namespaceName,
|
|
518
|
-
Parameters.authorizationRuleName,
|
|
519
|
-
Parameters.notificationHubName
|
|
520
|
-
],
|
|
521
|
-
serializer
|
|
522
|
-
};
|
|
523
|
-
const getAuthorizationRuleOperationSpec = {
|
|
524
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}/AuthorizationRules/{authorizationRuleName}",
|
|
525
|
-
httpMethod: "GET",
|
|
526
567
|
responses: {
|
|
527
|
-
200: {
|
|
528
|
-
|
|
529
|
-
|
|
568
|
+
200: {},
|
|
569
|
+
204: {},
|
|
570
|
+
default: {
|
|
571
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
572
|
+
},
|
|
530
573
|
},
|
|
531
574
|
queryParameters: [Parameters.apiVersion],
|
|
532
575
|
urlParameters: [
|
|
@@ -534,37 +577,45 @@ const getAuthorizationRuleOperationSpec = {
|
|
|
534
577
|
Parameters.subscriptionId,
|
|
535
578
|
Parameters.resourceGroupName,
|
|
536
579
|
Parameters.namespaceName,
|
|
580
|
+
Parameters.notificationHubName,
|
|
537
581
|
Parameters.authorizationRuleName,
|
|
538
|
-
Parameters.notificationHubName
|
|
539
582
|
],
|
|
540
583
|
headerParameters: [Parameters.accept],
|
|
541
|
-
serializer
|
|
584
|
+
serializer,
|
|
542
585
|
};
|
|
543
|
-
const
|
|
544
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs",
|
|
586
|
+
const getAuthorizationRuleOperationSpec = {
|
|
587
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}/authorizationRules/{authorizationRuleName}",
|
|
545
588
|
httpMethod: "GET",
|
|
546
589
|
responses: {
|
|
547
590
|
200: {
|
|
548
|
-
bodyMapper: Mappers.
|
|
549
|
-
}
|
|
591
|
+
bodyMapper: Mappers.SharedAccessAuthorizationRuleResource,
|
|
592
|
+
},
|
|
593
|
+
default: {
|
|
594
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
595
|
+
},
|
|
550
596
|
},
|
|
551
597
|
queryParameters: [Parameters.apiVersion],
|
|
552
598
|
urlParameters: [
|
|
553
599
|
Parameters.$host,
|
|
554
600
|
Parameters.subscriptionId,
|
|
555
601
|
Parameters.resourceGroupName,
|
|
556
|
-
Parameters.namespaceName
|
|
602
|
+
Parameters.namespaceName,
|
|
603
|
+
Parameters.notificationHubName,
|
|
604
|
+
Parameters.authorizationRuleName,
|
|
557
605
|
],
|
|
558
606
|
headerParameters: [Parameters.accept],
|
|
559
|
-
serializer
|
|
607
|
+
serializer,
|
|
560
608
|
};
|
|
561
609
|
const listAuthorizationRulesOperationSpec = {
|
|
562
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}/
|
|
610
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}/authorizationRules",
|
|
563
611
|
httpMethod: "GET",
|
|
564
612
|
responses: {
|
|
565
613
|
200: {
|
|
566
|
-
bodyMapper: Mappers.SharedAccessAuthorizationRuleListResult
|
|
567
|
-
}
|
|
614
|
+
bodyMapper: Mappers.SharedAccessAuthorizationRuleListResult,
|
|
615
|
+
},
|
|
616
|
+
default: {
|
|
617
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
618
|
+
},
|
|
568
619
|
},
|
|
569
620
|
queryParameters: [Parameters.apiVersion],
|
|
570
621
|
urlParameters: [
|
|
@@ -572,18 +623,21 @@ const listAuthorizationRulesOperationSpec = {
|
|
|
572
623
|
Parameters.subscriptionId,
|
|
573
624
|
Parameters.resourceGroupName,
|
|
574
625
|
Parameters.namespaceName,
|
|
575
|
-
Parameters.notificationHubName
|
|
626
|
+
Parameters.notificationHubName,
|
|
576
627
|
],
|
|
577
628
|
headerParameters: [Parameters.accept],
|
|
578
|
-
serializer
|
|
629
|
+
serializer,
|
|
579
630
|
};
|
|
580
631
|
const listKeysOperationSpec = {
|
|
581
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}/
|
|
632
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}/authorizationRules/{authorizationRuleName}/listKeys",
|
|
582
633
|
httpMethod: "POST",
|
|
583
634
|
responses: {
|
|
584
635
|
200: {
|
|
585
|
-
bodyMapper: Mappers.ResourceListKeys
|
|
586
|
-
}
|
|
636
|
+
bodyMapper: Mappers.ResourceListKeys,
|
|
637
|
+
},
|
|
638
|
+
default: {
|
|
639
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
640
|
+
},
|
|
587
641
|
},
|
|
588
642
|
queryParameters: [Parameters.apiVersion],
|
|
589
643
|
urlParameters: [
|
|
@@ -591,19 +645,22 @@ const listKeysOperationSpec = {
|
|
|
591
645
|
Parameters.subscriptionId,
|
|
592
646
|
Parameters.resourceGroupName,
|
|
593
647
|
Parameters.namespaceName,
|
|
648
|
+
Parameters.notificationHubName,
|
|
594
649
|
Parameters.authorizationRuleName,
|
|
595
|
-
Parameters.notificationHubName
|
|
596
650
|
],
|
|
597
651
|
headerParameters: [Parameters.accept],
|
|
598
|
-
serializer
|
|
652
|
+
serializer,
|
|
599
653
|
};
|
|
600
654
|
const regenerateKeysOperationSpec = {
|
|
601
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}/
|
|
655
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}/authorizationRules/{authorizationRuleName}/regenerateKeys",
|
|
602
656
|
httpMethod: "POST",
|
|
603
657
|
responses: {
|
|
604
658
|
200: {
|
|
605
|
-
bodyMapper: Mappers.ResourceListKeys
|
|
606
|
-
}
|
|
659
|
+
bodyMapper: Mappers.ResourceListKeys,
|
|
660
|
+
},
|
|
661
|
+
default: {
|
|
662
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
663
|
+
},
|
|
607
664
|
},
|
|
608
665
|
requestBody: Parameters.parameters4,
|
|
609
666
|
queryParameters: [Parameters.apiVersion],
|
|
@@ -612,20 +669,23 @@ const regenerateKeysOperationSpec = {
|
|
|
612
669
|
Parameters.subscriptionId,
|
|
613
670
|
Parameters.resourceGroupName,
|
|
614
671
|
Parameters.namespaceName,
|
|
672
|
+
Parameters.notificationHubName,
|
|
615
673
|
Parameters.authorizationRuleName,
|
|
616
|
-
Parameters.notificationHubName
|
|
617
674
|
],
|
|
618
|
-
headerParameters: [Parameters.
|
|
675
|
+
headerParameters: [Parameters.contentType, Parameters.accept],
|
|
619
676
|
mediaType: "json",
|
|
620
|
-
serializer
|
|
677
|
+
serializer,
|
|
621
678
|
};
|
|
622
679
|
const getPnsCredentialsOperationSpec = {
|
|
623
680
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}/pnsCredentials",
|
|
624
681
|
httpMethod: "POST",
|
|
625
682
|
responses: {
|
|
626
683
|
200: {
|
|
627
|
-
bodyMapper: Mappers.PnsCredentialsResource
|
|
628
|
-
}
|
|
684
|
+
bodyMapper: Mappers.PnsCredentialsResource,
|
|
685
|
+
},
|
|
686
|
+
default: {
|
|
687
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
688
|
+
},
|
|
629
689
|
},
|
|
630
690
|
queryParameters: [Parameters.apiVersion],
|
|
631
691
|
urlParameters: [
|
|
@@ -633,48 +693,52 @@ const getPnsCredentialsOperationSpec = {
|
|
|
633
693
|
Parameters.subscriptionId,
|
|
634
694
|
Parameters.resourceGroupName,
|
|
635
695
|
Parameters.namespaceName,
|
|
636
|
-
Parameters.notificationHubName
|
|
696
|
+
Parameters.notificationHubName,
|
|
637
697
|
],
|
|
638
698
|
headerParameters: [Parameters.accept],
|
|
639
|
-
serializer
|
|
699
|
+
serializer,
|
|
640
700
|
};
|
|
641
701
|
const listNextOperationSpec = {
|
|
642
702
|
path: "{nextLink}",
|
|
643
703
|
httpMethod: "GET",
|
|
644
704
|
responses: {
|
|
645
705
|
200: {
|
|
646
|
-
bodyMapper: Mappers.NotificationHubListResult
|
|
647
|
-
}
|
|
706
|
+
bodyMapper: Mappers.NotificationHubListResult,
|
|
707
|
+
},
|
|
708
|
+
default: {
|
|
709
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
710
|
+
},
|
|
648
711
|
},
|
|
649
|
-
queryParameters: [Parameters.apiVersion],
|
|
650
712
|
urlParameters: [
|
|
651
713
|
Parameters.$host,
|
|
652
|
-
Parameters.nextLink,
|
|
653
714
|
Parameters.subscriptionId,
|
|
654
715
|
Parameters.resourceGroupName,
|
|
655
|
-
Parameters.namespaceName
|
|
716
|
+
Parameters.namespaceName,
|
|
717
|
+
Parameters.nextLink,
|
|
656
718
|
],
|
|
657
719
|
headerParameters: [Parameters.accept],
|
|
658
|
-
serializer
|
|
720
|
+
serializer,
|
|
659
721
|
};
|
|
660
722
|
const listAuthorizationRulesNextOperationSpec = {
|
|
661
723
|
path: "{nextLink}",
|
|
662
724
|
httpMethod: "GET",
|
|
663
725
|
responses: {
|
|
664
726
|
200: {
|
|
665
|
-
bodyMapper: Mappers.SharedAccessAuthorizationRuleListResult
|
|
666
|
-
}
|
|
727
|
+
bodyMapper: Mappers.SharedAccessAuthorizationRuleListResult,
|
|
728
|
+
},
|
|
729
|
+
default: {
|
|
730
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
731
|
+
},
|
|
667
732
|
},
|
|
668
|
-
queryParameters: [Parameters.apiVersion],
|
|
669
733
|
urlParameters: [
|
|
670
734
|
Parameters.$host,
|
|
671
|
-
Parameters.nextLink,
|
|
672
735
|
Parameters.subscriptionId,
|
|
673
736
|
Parameters.resourceGroupName,
|
|
674
737
|
Parameters.namespaceName,
|
|
675
|
-
Parameters.notificationHubName
|
|
738
|
+
Parameters.notificationHubName,
|
|
739
|
+
Parameters.nextLink,
|
|
676
740
|
],
|
|
677
741
|
headerParameters: [Parameters.accept],
|
|
678
|
-
serializer
|
|
742
|
+
serializer,
|
|
679
743
|
};
|
|
680
744
|
//# sourceMappingURL=notificationHubs.js.map
|