@azure/arm-signalr 4.2.0 → 5.0.0
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 +11 -0
- package/LICENSE +21 -0
- package/README.md +70 -78
- package/dist/index.js +3754 -0
- package/dist/index.js.map +1 -0
- package/dist/index.min.js +1 -0
- package/dist/index.min.js.map +1 -0
- package/dist-esm/samples-dev/operationsList.d.ts +2 -0
- package/dist-esm/samples-dev/operationsList.d.ts.map +1 -0
- package/dist-esm/samples-dev/operationsList.js +43 -0
- package/dist-esm/samples-dev/operationsList.js.map +1 -0
- package/dist-esm/samples-dev/signalRCheckNameAvailability.d.ts +2 -0
- package/dist-esm/samples-dev/signalRCheckNameAvailability.d.ts.map +1 -0
- package/dist-esm/samples-dev/signalRCheckNameAvailability.js +34 -0
- package/dist-esm/samples-dev/signalRCheckNameAvailability.js.map +1 -0
- package/dist-esm/samples-dev/signalRCreateOrUpdate.d.ts +2 -0
- package/dist-esm/samples-dev/signalRCreateOrUpdate.d.ts.map +1 -0
- package/dist-esm/samples-dev/signalRCreateOrUpdate.js +73 -0
- package/dist-esm/samples-dev/signalRCreateOrUpdate.js.map +1 -0
- package/dist-esm/samples-dev/signalRDelete.d.ts +2 -0
- package/dist-esm/samples-dev/signalRDelete.d.ts.map +1 -0
- package/dist-esm/samples-dev/signalRDelete.js +31 -0
- package/dist-esm/samples-dev/signalRDelete.js.map +1 -0
- package/dist-esm/samples-dev/signalRGet.d.ts +2 -0
- package/dist-esm/samples-dev/signalRGet.d.ts.map +1 -0
- package/dist-esm/samples-dev/signalRGet.js +31 -0
- package/dist-esm/samples-dev/signalRGet.js.map +1 -0
- package/dist-esm/samples-dev/signalRListByResourceGroup.d.ts +2 -0
- package/dist-esm/samples-dev/signalRListByResourceGroup.d.ts.map +1 -0
- package/dist-esm/samples-dev/signalRListByResourceGroup.js +44 -0
- package/dist-esm/samples-dev/signalRListByResourceGroup.js.map +1 -0
- package/dist-esm/samples-dev/signalRListBySubscription.d.ts +2 -0
- package/dist-esm/samples-dev/signalRListBySubscription.d.ts.map +1 -0
- package/dist-esm/samples-dev/signalRListBySubscription.js +43 -0
- package/dist-esm/samples-dev/signalRListBySubscription.js.map +1 -0
- package/dist-esm/samples-dev/signalRListKeys.d.ts +2 -0
- package/dist-esm/samples-dev/signalRListKeys.d.ts.map +1 -0
- package/dist-esm/samples-dev/signalRListKeys.js +31 -0
- package/dist-esm/samples-dev/signalRListKeys.js.map +1 -0
- package/dist-esm/samples-dev/signalRListSkus.d.ts +2 -0
- package/dist-esm/samples-dev/signalRListSkus.d.ts.map +1 -0
- package/dist-esm/samples-dev/signalRListSkus.js +31 -0
- package/dist-esm/samples-dev/signalRListSkus.js.map +1 -0
- package/dist-esm/samples-dev/signalRPrivateEndpointConnectionsDelete.d.ts +2 -0
- package/dist-esm/samples-dev/signalRPrivateEndpointConnectionsDelete.d.ts.map +1 -0
- package/dist-esm/samples-dev/signalRPrivateEndpointConnectionsDelete.js +32 -0
- package/dist-esm/samples-dev/signalRPrivateEndpointConnectionsDelete.js.map +1 -0
- package/dist-esm/samples-dev/signalRPrivateEndpointConnectionsGet.d.ts +2 -0
- package/dist-esm/samples-dev/signalRPrivateEndpointConnectionsGet.d.ts.map +1 -0
- package/dist-esm/samples-dev/signalRPrivateEndpointConnectionsGet.js +32 -0
- package/dist-esm/samples-dev/signalRPrivateEndpointConnectionsGet.js.map +1 -0
- package/dist-esm/samples-dev/signalRPrivateEndpointConnectionsList.d.ts +2 -0
- package/dist-esm/samples-dev/signalRPrivateEndpointConnectionsList.d.ts.map +1 -0
- package/dist-esm/samples-dev/signalRPrivateEndpointConnectionsList.js +45 -0
- package/dist-esm/samples-dev/signalRPrivateEndpointConnectionsList.js.map +1 -0
- package/dist-esm/samples-dev/signalRPrivateEndpointConnectionsUpdate.d.ts +2 -0
- package/dist-esm/samples-dev/signalRPrivateEndpointConnectionsUpdate.d.ts.map +1 -0
- package/dist-esm/samples-dev/signalRPrivateEndpointConnectionsUpdate.js +41 -0
- package/dist-esm/samples-dev/signalRPrivateEndpointConnectionsUpdate.js.map +1 -0
- package/dist-esm/samples-dev/signalRPrivateLinkResourcesList.d.ts +2 -0
- package/dist-esm/samples-dev/signalRPrivateLinkResourcesList.d.ts.map +1 -0
- package/dist-esm/samples-dev/signalRPrivateLinkResourcesList.js +45 -0
- package/dist-esm/samples-dev/signalRPrivateLinkResourcesList.js.map +1 -0
- package/dist-esm/samples-dev/signalRRegenerateKey.d.ts +2 -0
- package/dist-esm/samples-dev/signalRRegenerateKey.d.ts.map +1 -0
- package/dist-esm/samples-dev/signalRRegenerateKey.js +32 -0
- package/dist-esm/samples-dev/signalRRegenerateKey.js.map +1 -0
- package/dist-esm/samples-dev/signalRRestart.d.ts +2 -0
- package/dist-esm/samples-dev/signalRRestart.d.ts.map +1 -0
- package/dist-esm/samples-dev/signalRRestart.js +31 -0
- package/dist-esm/samples-dev/signalRRestart.js.map +1 -0
- package/dist-esm/samples-dev/signalRSharedPrivateLinkResourcesCreateOrUpdate.d.ts +2 -0
- package/dist-esm/samples-dev/signalRSharedPrivateLinkResourcesCreateOrUpdate.d.ts.map +1 -0
- package/dist-esm/samples-dev/signalRSharedPrivateLinkResourcesCreateOrUpdate.js +37 -0
- package/dist-esm/samples-dev/signalRSharedPrivateLinkResourcesCreateOrUpdate.js.map +1 -0
- package/dist-esm/samples-dev/signalRSharedPrivateLinkResourcesDelete.d.ts +2 -0
- package/dist-esm/samples-dev/signalRSharedPrivateLinkResourcesDelete.d.ts.map +1 -0
- package/dist-esm/samples-dev/signalRSharedPrivateLinkResourcesDelete.js +32 -0
- package/dist-esm/samples-dev/signalRSharedPrivateLinkResourcesDelete.js.map +1 -0
- package/dist-esm/samples-dev/signalRSharedPrivateLinkResourcesGet.d.ts +2 -0
- package/dist-esm/samples-dev/signalRSharedPrivateLinkResourcesGet.d.ts.map +1 -0
- package/dist-esm/samples-dev/signalRSharedPrivateLinkResourcesGet.js +32 -0
- package/dist-esm/samples-dev/signalRSharedPrivateLinkResourcesGet.js.map +1 -0
- package/dist-esm/samples-dev/signalRSharedPrivateLinkResourcesList.d.ts +2 -0
- package/dist-esm/samples-dev/signalRSharedPrivateLinkResourcesList.d.ts.map +1 -0
- package/dist-esm/samples-dev/signalRSharedPrivateLinkResourcesList.js +45 -0
- package/dist-esm/samples-dev/signalRSharedPrivateLinkResourcesList.js.map +1 -0
- package/dist-esm/samples-dev/signalRUpdate.d.ts +2 -0
- package/dist-esm/samples-dev/signalRUpdate.d.ts.map +1 -0
- package/dist-esm/samples-dev/signalRUpdate.js +73 -0
- package/dist-esm/samples-dev/signalRUpdate.js.map +1 -0
- package/dist-esm/samples-dev/usagesList.d.ts +2 -0
- package/dist-esm/samples-dev/usagesList.d.ts.map +1 -0
- package/dist-esm/samples-dev/usagesList.js +44 -0
- package/dist-esm/samples-dev/usagesList.js.map +1 -0
- package/dist-esm/src/index.d.ts +5 -0
- package/dist-esm/src/index.d.ts.map +1 -0
- package/dist-esm/src/index.js +12 -0
- package/dist-esm/src/index.js.map +1 -0
- package/dist-esm/src/lroImpl.d.ts +16 -0
- package/dist-esm/src/lroImpl.d.ts.map +1 -0
- package/dist-esm/src/lroImpl.js +29 -0
- package/dist-esm/src/lroImpl.js.map +1 -0
- package/dist-esm/src/models/index.d.ts +1116 -0
- package/dist-esm/src/models/index.d.ts.map +1 -0
- package/dist-esm/src/models/index.js +109 -0
- package/dist-esm/src/models/index.js.map +1 -0
- package/dist-esm/src/models/mappers.d.ts +54 -0
- package/dist-esm/src/models/mappers.d.ts.map +1 -0
- package/{esm → dist-esm/src}/models/mappers.js +831 -726
- package/dist-esm/src/models/mappers.js.map +1 -0
- package/dist-esm/src/models/parameters.d.ts +18 -0
- package/dist-esm/src/models/parameters.d.ts.map +1 -0
- package/dist-esm/src/models/parameters.js +144 -0
- package/dist-esm/src/models/parameters.js.map +1 -0
- package/{esm → dist-esm/src}/operations/index.d.ts +0 -0
- package/dist-esm/src/operations/index.d.ts.map +1 -0
- package/{esm → dist-esm/src}/operations/index.js +1 -2
- package/dist-esm/src/operations/index.js.map +1 -0
- package/dist-esm/src/operations/operations.d.ts +32 -0
- package/dist-esm/src/operations/operations.d.ts.map +1 -0
- package/dist-esm/src/operations/operations.js +120 -0
- package/dist-esm/src/operations/operations.js.map +1 -0
- package/dist-esm/src/operations/signalR.d.ts +176 -0
- package/dist-esm/src/operations/signalR.d.ts.map +1 -0
- package/dist-esm/src/operations/signalR.js +765 -0
- package/dist-esm/src/operations/signalR.js.map +1 -0
- package/dist-esm/src/operations/signalRPrivateEndpointConnections.d.ts +79 -0
- package/dist-esm/src/operations/signalRPrivateEndpointConnections.d.ts.map +1 -0
- package/dist-esm/src/operations/signalRPrivateEndpointConnections.js +303 -0
- package/dist-esm/src/operations/signalRPrivateEndpointConnections.js.map +1 -0
- package/dist-esm/src/operations/signalRPrivateLinkResources.d.ts +41 -0
- package/dist-esm/src/operations/signalRPrivateLinkResources.d.ts.map +1 -0
- package/dist-esm/src/operations/signalRPrivateLinkResources.js +140 -0
- package/dist-esm/src/operations/signalRPrivateLinkResources.js.map +1 -0
- package/dist-esm/src/operations/signalRSharedPrivateLinkResources.d.ts +89 -0
- package/dist-esm/src/operations/signalRSharedPrivateLinkResources.d.ts.map +1 -0
- package/dist-esm/src/operations/signalRSharedPrivateLinkResources.js +355 -0
- package/dist-esm/src/operations/signalRSharedPrivateLinkResources.js.map +1 -0
- package/dist-esm/src/operations/usages.d.ts +35 -0
- package/dist-esm/src/operations/usages.d.ts.map +1 -0
- package/dist-esm/src/operations/usages.js +132 -0
- package/dist-esm/src/operations/usages.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts +7 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.js +14 -0
- package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/operations.d.ts +11 -0
- package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -0
- package/{src/models/usagesMappers.ts → dist-esm/src/operationsInterfaces/operations.js} +2 -9
- package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/signalR.d.ts +138 -0
- package/dist-esm/src/operationsInterfaces/signalR.d.ts.map +1 -0
- package/{esm/models/usagesMappers.js → dist-esm/src/operationsInterfaces/signalR.js} +2 -2
- package/dist-esm/src/operationsInterfaces/signalR.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/signalRPrivateEndpointConnections.d.ts +52 -0
- package/dist-esm/src/operationsInterfaces/signalRPrivateEndpointConnections.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/signalRPrivateEndpointConnections.js +9 -0
- package/dist-esm/src/operationsInterfaces/signalRPrivateEndpointConnections.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/signalRPrivateLinkResources.d.ts +14 -0
- package/dist-esm/src/operationsInterfaces/signalRPrivateLinkResources.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/signalRPrivateLinkResources.js +9 -0
- package/dist-esm/src/operationsInterfaces/signalRPrivateLinkResources.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/signalRSharedPrivateLinkResources.d.ts +62 -0
- package/dist-esm/src/operationsInterfaces/signalRSharedPrivateLinkResources.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/signalRSharedPrivateLinkResources.js +9 -0
- package/dist-esm/src/operationsInterfaces/signalRSharedPrivateLinkResources.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/usages.d.ts +12 -0
- package/dist-esm/src/operationsInterfaces/usages.d.ts.map +1 -0
- package/{esm/models/index.js → dist-esm/src/operationsInterfaces/usages.js} +2 -1
- package/dist-esm/src/operationsInterfaces/usages.js.map +1 -0
- package/dist-esm/src/signalRManagementClient.d.ts +24 -0
- package/dist-esm/src/signalRManagementClient.d.ts.map +1 -0
- package/dist-esm/src/signalRManagementClient.js +57 -0
- package/dist-esm/src/signalRManagementClient.js.map +1 -0
- package/dist-esm/test/sampleTest.d.ts +2 -0
- package/dist-esm/test/sampleTest.d.ts.map +1 -0
- package/dist-esm/test/sampleTest.js +40 -0
- package/dist-esm/test/sampleTest.js.map +1 -0
- package/package.json +77 -33
- package/review/arm-signalr.api.md +873 -0
- package/rollup.config.js +181 -30
- package/src/index.ts +12 -0
- package/src/lroImpl.ts +34 -0
- package/src/models/index.ts +938 -1349
- package/src/models/mappers.ts +844 -731
- package/src/models/parameters.ts +99 -30
- package/src/operations/index.ts +1 -2
- package/src/operations/operations.ts +85 -73
- package/src/operations/signalR.ts +789 -484
- package/src/operations/signalRPrivateEndpointConnections.ts +269 -208
- package/src/operations/signalRPrivateLinkResources.ts +126 -86
- package/src/operations/signalRSharedPrivateLinkResources.ts +350 -201
- package/src/operations/usages.ts +105 -80
- package/src/operationsInterfaces/index.ts +14 -0
- package/src/operationsInterfaces/operations.ts +22 -0
- package/src/operationsInterfaces/signalR.ts +248 -0
- package/src/operationsInterfaces/signalRPrivateEndpointConnections.ts +94 -0
- package/src/operationsInterfaces/signalRPrivateLinkResources.ts +30 -0
- package/src/operationsInterfaces/signalRSharedPrivateLinkResources.ts +117 -0
- package/src/operationsInterfaces/usages.ts +24 -0
- package/src/signalRManagementClient.ts +92 -44
- package/tsconfig.json +5 -4
- package/types/arm-signalr.d.ts +1549 -0
- package/types/tsdoc-metadata.json +11 -0
- package/dist/arm-signalr.js +0 -3220
- package/dist/arm-signalr.js.map +0 -1
- package/dist/arm-signalr.min.js +0 -1
- package/dist/arm-signalr.min.js.map +0 -1
- package/esm/models/index.d.ts +0 -1552
- package/esm/models/index.d.ts.map +0 -1
- package/esm/models/index.js.map +0 -1
- package/esm/models/mappers.d.ts +0 -51
- package/esm/models/mappers.d.ts.map +0 -1
- package/esm/models/mappers.js.map +0 -1
- package/esm/models/operationsMappers.d.ts +0 -2
- package/esm/models/operationsMappers.d.ts.map +0 -1
- package/esm/models/operationsMappers.js +0 -9
- package/esm/models/operationsMappers.js.map +0 -1
- package/esm/models/parameters.d.ts +0 -11
- package/esm/models/parameters.d.ts.map +0 -1
- package/esm/models/parameters.js +0 -100
- package/esm/models/parameters.js.map +0 -1
- package/esm/models/signalRMappers.d.ts +0 -2
- package/esm/models/signalRMappers.d.ts.map +0 -1
- package/esm/models/signalRMappers.js +0 -9
- package/esm/models/signalRMappers.js.map +0 -1
- package/esm/models/signalRPrivateEndpointConnectionsMappers.d.ts +0 -2
- package/esm/models/signalRPrivateEndpointConnectionsMappers.d.ts.map +0 -1
- package/esm/models/signalRPrivateEndpointConnectionsMappers.js +0 -9
- package/esm/models/signalRPrivateEndpointConnectionsMappers.js.map +0 -1
- package/esm/models/signalRPrivateLinkResourcesMappers.d.ts +0 -2
- package/esm/models/signalRPrivateLinkResourcesMappers.d.ts.map +0 -1
- package/esm/models/signalRPrivateLinkResourcesMappers.js +0 -9
- package/esm/models/signalRPrivateLinkResourcesMappers.js.map +0 -1
- package/esm/models/signalRSharedPrivateLinkResourcesMappers.d.ts +0 -2
- package/esm/models/signalRSharedPrivateLinkResourcesMappers.d.ts.map +0 -1
- package/esm/models/signalRSharedPrivateLinkResourcesMappers.js +0 -9
- package/esm/models/signalRSharedPrivateLinkResourcesMappers.js.map +0 -1
- package/esm/models/usagesMappers.d.ts +0 -2
- package/esm/models/usagesMappers.d.ts.map +0 -1
- package/esm/models/usagesMappers.js.map +0 -1
- package/esm/operations/index.d.ts.map +0 -1
- package/esm/operations/index.js.map +0 -1
- package/esm/operations/operations.d.ts +0 -46
- package/esm/operations/operations.d.ts.map +0 -1
- package/esm/operations/operations.js +0 -79
- package/esm/operations/operations.js.map +0 -1
- package/esm/operations/signalR.d.ts +0 -253
- package/esm/operations/signalR.d.ts.map +0 -1
- package/esm/operations/signalR.js +0 -519
- package/esm/operations/signalR.js.map +0 -1
- package/esm/operations/signalRPrivateEndpointConnections.d.ts +0 -133
- package/esm/operations/signalRPrivateEndpointConnections.d.ts.map +0 -1
- package/esm/operations/signalRPrivateEndpointConnections.js +0 -213
- package/esm/operations/signalRPrivateEndpointConnections.js.map +0 -1
- package/esm/operations/signalRPrivateLinkResources.d.ts +0 -55
- package/esm/operations/signalRPrivateLinkResources.d.ts.map +0 -1
- package/esm/operations/signalRPrivateLinkResources.js +0 -86
- package/esm/operations/signalRPrivateLinkResources.js.map +0 -1
- package/esm/operations/signalRSharedPrivateLinkResources.d.ts +0 -125
- package/esm/operations/signalRSharedPrivateLinkResources.d.ts.map +0 -1
- package/esm/operations/signalRSharedPrivateLinkResources.js +0 -240
- package/esm/operations/signalRSharedPrivateLinkResources.js.map +0 -1
- package/esm/operations/usages.d.ts +0 -49
- package/esm/operations/usages.d.ts.map +0 -1
- package/esm/operations/usages.js +0 -84
- package/esm/operations/usages.js.map +0 -1
- package/esm/signalRManagementClient.d.ts +0 -30
- package/esm/signalRManagementClient.d.ts.map +0 -1
- package/esm/signalRManagementClient.js +0 -43
- package/esm/signalRManagementClient.js.map +0 -1
- package/esm/signalRManagementClientContext.d.ts +0 -23
- package/esm/signalRManagementClientContext.d.ts.map +0 -1
- package/esm/signalRManagementClientContext.js +0 -61
- package/esm/signalRManagementClientContext.js.map +0 -1
- package/src/models/operationsMappers.ts +0 -21
- package/src/models/signalRMappers.ts +0 -44
- package/src/models/signalRPrivateEndpointConnectionsMappers.ts +0 -40
- package/src/models/signalRPrivateLinkResourcesMappers.ts +0 -40
- package/src/models/signalRSharedPrivateLinkResourcesMappers.ts +0 -40
- package/src/signalRManagementClientContext.ts +0 -68
|
@@ -3,436 +3,737 @@
|
|
|
3
3
|
* Licensed under the MIT License.
|
|
4
4
|
*
|
|
5
5
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
-
* Changes may cause incorrect behavior and will be lost if the code is
|
|
7
|
-
* regenerated.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
8
7
|
*/
|
|
9
8
|
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import * as
|
|
13
|
-
import * as Mappers from "../models/
|
|
9
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
10
|
+
import { SignalR } from "../operationsInterfaces";
|
|
11
|
+
import * as coreClient from "@azure/core-client";
|
|
12
|
+
import * as Mappers from "../models/mappers";
|
|
14
13
|
import * as Parameters from "../models/parameters";
|
|
15
|
-
import {
|
|
14
|
+
import { SignalRManagementClient } from "../signalRManagementClient";
|
|
15
|
+
import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro";
|
|
16
|
+
import { LroImpl } from "../lroImpl";
|
|
17
|
+
import {
|
|
18
|
+
SignalRResource,
|
|
19
|
+
SignalRListBySubscriptionNextOptionalParams,
|
|
20
|
+
SignalRListBySubscriptionOptionalParams,
|
|
21
|
+
SignalRListByResourceGroupNextOptionalParams,
|
|
22
|
+
SignalRListByResourceGroupOptionalParams,
|
|
23
|
+
NameAvailabilityParameters,
|
|
24
|
+
SignalRCheckNameAvailabilityOptionalParams,
|
|
25
|
+
SignalRCheckNameAvailabilityResponse,
|
|
26
|
+
SignalRListBySubscriptionResponse,
|
|
27
|
+
SignalRListByResourceGroupResponse,
|
|
28
|
+
SignalRGetOptionalParams,
|
|
29
|
+
SignalRGetResponse,
|
|
30
|
+
SignalRCreateOrUpdateOptionalParams,
|
|
31
|
+
SignalRCreateOrUpdateResponse,
|
|
32
|
+
SignalRDeleteOptionalParams,
|
|
33
|
+
SignalRUpdateOptionalParams,
|
|
34
|
+
SignalRUpdateResponse,
|
|
35
|
+
SignalRListKeysOptionalParams,
|
|
36
|
+
SignalRListKeysResponse,
|
|
37
|
+
RegenerateKeyParameters,
|
|
38
|
+
SignalRRegenerateKeyOptionalParams,
|
|
39
|
+
SignalRRegenerateKeyResponse,
|
|
40
|
+
SignalRRestartOptionalParams,
|
|
41
|
+
SignalRListSkusOptionalParams,
|
|
42
|
+
SignalRListSkusResponse,
|
|
43
|
+
SignalRListBySubscriptionNextResponse,
|
|
44
|
+
SignalRListByResourceGroupNextResponse
|
|
45
|
+
} from "../models";
|
|
16
46
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
47
|
+
/// <reference lib="esnext.asynciterable" />
|
|
48
|
+
/** Class containing SignalR operations. */
|
|
49
|
+
export class SignalRImpl implements SignalR {
|
|
50
|
+
private readonly client: SignalRManagementClient;
|
|
20
51
|
|
|
21
52
|
/**
|
|
22
|
-
*
|
|
23
|
-
* @param
|
|
53
|
+
* Initialize a new instance of the class SignalR class.
|
|
54
|
+
* @param client Reference to the service client
|
|
24
55
|
*/
|
|
25
|
-
constructor(client:
|
|
56
|
+
constructor(client: SignalRManagementClient) {
|
|
26
57
|
this.client = client;
|
|
27
58
|
}
|
|
28
59
|
|
|
29
60
|
/**
|
|
30
|
-
*
|
|
31
|
-
* @param
|
|
32
|
-
* @param parameters Parameters supplied to the operation.
|
|
33
|
-
* @param [options] The optional parameters
|
|
34
|
-
* @returns Promise<Models.SignalRCheckNameAvailabilityResponse>
|
|
61
|
+
* Handles requests to list all resources in a subscription.
|
|
62
|
+
* @param options The options parameters.
|
|
35
63
|
*/
|
|
36
|
-
|
|
64
|
+
public listBySubscription(
|
|
65
|
+
options?: SignalRListBySubscriptionOptionalParams
|
|
66
|
+
): PagedAsyncIterableIterator<SignalRResource> {
|
|
67
|
+
const iter = this.listBySubscriptionPagingAll(options);
|
|
68
|
+
return {
|
|
69
|
+
next() {
|
|
70
|
+
return iter.next();
|
|
71
|
+
},
|
|
72
|
+
[Symbol.asyncIterator]() {
|
|
73
|
+
return this;
|
|
74
|
+
},
|
|
75
|
+
byPage: () => {
|
|
76
|
+
return this.listBySubscriptionPagingPage(options);
|
|
77
|
+
}
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
private async *listBySubscriptionPagingPage(
|
|
82
|
+
options?: SignalRListBySubscriptionOptionalParams
|
|
83
|
+
): AsyncIterableIterator<SignalRResource[]> {
|
|
84
|
+
let result = await this._listBySubscription(options);
|
|
85
|
+
yield result.value || [];
|
|
86
|
+
let continuationToken = result.nextLink;
|
|
87
|
+
while (continuationToken) {
|
|
88
|
+
result = await this._listBySubscriptionNext(continuationToken, options);
|
|
89
|
+
continuationToken = result.nextLink;
|
|
90
|
+
yield result.value || [];
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
private async *listBySubscriptionPagingAll(
|
|
95
|
+
options?: SignalRListBySubscriptionOptionalParams
|
|
96
|
+
): AsyncIterableIterator<SignalRResource> {
|
|
97
|
+
for await (const page of this.listBySubscriptionPagingPage(options)) {
|
|
98
|
+
yield* page;
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
|
|
37
102
|
/**
|
|
38
|
-
*
|
|
39
|
-
* @param
|
|
40
|
-
*
|
|
103
|
+
* Handles requests to list all resources in a resource group.
|
|
104
|
+
* @param resourceGroupName The name of the resource group that contains the resource. You can obtain
|
|
105
|
+
* this value from the Azure Resource Manager API or the portal.
|
|
106
|
+
* @param options The options parameters.
|
|
41
107
|
*/
|
|
42
|
-
|
|
108
|
+
public listByResourceGroup(
|
|
109
|
+
resourceGroupName: string,
|
|
110
|
+
options?: SignalRListByResourceGroupOptionalParams
|
|
111
|
+
): PagedAsyncIterableIterator<SignalRResource> {
|
|
112
|
+
const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
|
|
113
|
+
return {
|
|
114
|
+
next() {
|
|
115
|
+
return iter.next();
|
|
116
|
+
},
|
|
117
|
+
[Symbol.asyncIterator]() {
|
|
118
|
+
return this;
|
|
119
|
+
},
|
|
120
|
+
byPage: () => {
|
|
121
|
+
return this.listByResourceGroupPagingPage(resourceGroupName, options);
|
|
122
|
+
}
|
|
123
|
+
};
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
private async *listByResourceGroupPagingPage(
|
|
127
|
+
resourceGroupName: string,
|
|
128
|
+
options?: SignalRListByResourceGroupOptionalParams
|
|
129
|
+
): AsyncIterableIterator<SignalRResource[]> {
|
|
130
|
+
let result = await this._listByResourceGroup(resourceGroupName, options);
|
|
131
|
+
yield result.value || [];
|
|
132
|
+
let continuationToken = result.nextLink;
|
|
133
|
+
while (continuationToken) {
|
|
134
|
+
result = await this._listByResourceGroupNext(
|
|
135
|
+
resourceGroupName,
|
|
136
|
+
continuationToken,
|
|
137
|
+
options
|
|
138
|
+
);
|
|
139
|
+
continuationToken = result.nextLink;
|
|
140
|
+
yield result.value || [];
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
private async *listByResourceGroupPagingAll(
|
|
145
|
+
resourceGroupName: string,
|
|
146
|
+
options?: SignalRListByResourceGroupOptionalParams
|
|
147
|
+
): AsyncIterableIterator<SignalRResource> {
|
|
148
|
+
for await (const page of this.listByResourceGroupPagingPage(
|
|
149
|
+
resourceGroupName,
|
|
150
|
+
options
|
|
151
|
+
)) {
|
|
152
|
+
yield* page;
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
|
|
43
156
|
/**
|
|
157
|
+
* Checks that the resource name is valid and is not already in use.
|
|
44
158
|
* @param location the region
|
|
45
159
|
* @param parameters Parameters supplied to the operation.
|
|
46
|
-
* @param options The
|
|
47
|
-
* @param callback The callback
|
|
160
|
+
* @param options The options parameters.
|
|
48
161
|
*/
|
|
49
|
-
checkNameAvailability(
|
|
50
|
-
|
|
162
|
+
checkNameAvailability(
|
|
163
|
+
location: string,
|
|
164
|
+
parameters: NameAvailabilityParameters,
|
|
165
|
+
options?: SignalRCheckNameAvailabilityOptionalParams
|
|
166
|
+
): Promise<SignalRCheckNameAvailabilityResponse> {
|
|
51
167
|
return this.client.sendOperationRequest(
|
|
52
|
-
{
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
options
|
|
56
|
-
},
|
|
57
|
-
checkNameAvailabilityOperationSpec,
|
|
58
|
-
callback) as Promise<Models.SignalRCheckNameAvailabilityResponse>;
|
|
168
|
+
{ location, parameters, options },
|
|
169
|
+
checkNameAvailabilityOperationSpec
|
|
170
|
+
);
|
|
59
171
|
}
|
|
60
172
|
|
|
61
173
|
/**
|
|
62
174
|
* Handles requests to list all resources in a subscription.
|
|
63
|
-
* @param
|
|
64
|
-
* @returns Promise<Models.SignalRListBySubscriptionResponse>
|
|
65
|
-
*/
|
|
66
|
-
listBySubscription(options?: msRest.RequestOptionsBase): Promise<Models.SignalRListBySubscriptionResponse>;
|
|
67
|
-
/**
|
|
68
|
-
* @param callback The callback
|
|
175
|
+
* @param options The options parameters.
|
|
69
176
|
*/
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
* @param callback The callback
|
|
74
|
-
*/
|
|
75
|
-
listBySubscription(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.SignalRResourceList>): void;
|
|
76
|
-
listBySubscription(options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.SignalRResourceList>, callback?: msRest.ServiceCallback<Models.SignalRResourceList>): Promise<Models.SignalRListBySubscriptionResponse> {
|
|
177
|
+
private _listBySubscription(
|
|
178
|
+
options?: SignalRListBySubscriptionOptionalParams
|
|
179
|
+
): Promise<SignalRListBySubscriptionResponse> {
|
|
77
180
|
return this.client.sendOperationRequest(
|
|
78
|
-
{
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
listBySubscriptionOperationSpec,
|
|
82
|
-
callback) as Promise<Models.SignalRListBySubscriptionResponse>;
|
|
181
|
+
{ options },
|
|
182
|
+
listBySubscriptionOperationSpec
|
|
183
|
+
);
|
|
83
184
|
}
|
|
84
185
|
|
|
85
186
|
/**
|
|
86
187
|
* Handles requests to list all resources in a resource group.
|
|
87
|
-
* @param resourceGroupName The name of the resource group that contains the resource. You can
|
|
88
|
-
*
|
|
89
|
-
* @param
|
|
90
|
-
* @returns Promise<Models.SignalRListByResourceGroupResponse>
|
|
188
|
+
* @param resourceGroupName The name of the resource group that contains the resource. You can obtain
|
|
189
|
+
* this value from the Azure Resource Manager API or the portal.
|
|
190
|
+
* @param options The options parameters.
|
|
91
191
|
*/
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
* @param callback The callback
|
|
97
|
-
*/
|
|
98
|
-
listByResourceGroup(resourceGroupName: string, callback: msRest.ServiceCallback<Models.SignalRResourceList>): void;
|
|
99
|
-
/**
|
|
100
|
-
* @param resourceGroupName The name of the resource group that contains the resource. You can
|
|
101
|
-
* obtain this value from the Azure Resource Manager API or the portal.
|
|
102
|
-
* @param options The optional parameters
|
|
103
|
-
* @param callback The callback
|
|
104
|
-
*/
|
|
105
|
-
listByResourceGroup(resourceGroupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.SignalRResourceList>): void;
|
|
106
|
-
listByResourceGroup(resourceGroupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.SignalRResourceList>, callback?: msRest.ServiceCallback<Models.SignalRResourceList>): Promise<Models.SignalRListByResourceGroupResponse> {
|
|
192
|
+
private _listByResourceGroup(
|
|
193
|
+
resourceGroupName: string,
|
|
194
|
+
options?: SignalRListByResourceGroupOptionalParams
|
|
195
|
+
): Promise<SignalRListByResourceGroupResponse> {
|
|
107
196
|
return this.client.sendOperationRequest(
|
|
108
|
-
{
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
},
|
|
112
|
-
listByResourceGroupOperationSpec,
|
|
113
|
-
callback) as Promise<Models.SignalRListByResourceGroupResponse>;
|
|
197
|
+
{ resourceGroupName, options },
|
|
198
|
+
listByResourceGroupOperationSpec
|
|
199
|
+
);
|
|
114
200
|
}
|
|
115
201
|
|
|
116
202
|
/**
|
|
117
203
|
* Get the resource and its properties.
|
|
118
|
-
* @param resourceGroupName The name of the resource group that contains the resource. You can
|
|
119
|
-
*
|
|
120
|
-
* @param resourceName The name of the resource.
|
|
121
|
-
* @param [options] The optional parameters
|
|
122
|
-
* @returns Promise<Models.SignalRGetResponse>
|
|
123
|
-
*/
|
|
124
|
-
get(resourceGroupName: string, resourceName: string, options?: msRest.RequestOptionsBase): Promise<Models.SignalRGetResponse>;
|
|
125
|
-
/**
|
|
126
|
-
* @param resourceGroupName The name of the resource group that contains the resource. You can
|
|
127
|
-
* obtain this value from the Azure Resource Manager API or the portal.
|
|
204
|
+
* @param resourceGroupName The name of the resource group that contains the resource. You can obtain
|
|
205
|
+
* this value from the Azure Resource Manager API or the portal.
|
|
128
206
|
* @param resourceName The name of the resource.
|
|
129
|
-
* @param
|
|
207
|
+
* @param options The options parameters.
|
|
130
208
|
*/
|
|
131
|
-
get(
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
* @param options The optional parameters
|
|
137
|
-
* @param callback The callback
|
|
138
|
-
*/
|
|
139
|
-
get(resourceGroupName: string, resourceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.SignalRResource>): void;
|
|
140
|
-
get(resourceGroupName: string, resourceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.SignalRResource>, callback?: msRest.ServiceCallback<Models.SignalRResource>): Promise<Models.SignalRGetResponse> {
|
|
209
|
+
get(
|
|
210
|
+
resourceGroupName: string,
|
|
211
|
+
resourceName: string,
|
|
212
|
+
options?: SignalRGetOptionalParams
|
|
213
|
+
): Promise<SignalRGetResponse> {
|
|
141
214
|
return this.client.sendOperationRequest(
|
|
142
|
-
{
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
options
|
|
146
|
-
},
|
|
147
|
-
getOperationSpec,
|
|
148
|
-
callback) as Promise<Models.SignalRGetResponse>;
|
|
215
|
+
{ resourceGroupName, resourceName, options },
|
|
216
|
+
getOperationSpec
|
|
217
|
+
);
|
|
149
218
|
}
|
|
150
219
|
|
|
151
220
|
/**
|
|
152
221
|
* Create or update a resource.
|
|
153
|
-
* @param
|
|
154
|
-
*
|
|
155
|
-
* obtain this value from the Azure Resource Manager API or the portal.
|
|
222
|
+
* @param resourceGroupName The name of the resource group that contains the resource. You can obtain
|
|
223
|
+
* this value from the Azure Resource Manager API or the portal.
|
|
156
224
|
* @param resourceName The name of the resource.
|
|
157
|
-
* @param
|
|
158
|
-
* @
|
|
225
|
+
* @param parameters Parameters for the create or update operation
|
|
226
|
+
* @param options The options parameters.
|
|
159
227
|
*/
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
228
|
+
async beginCreateOrUpdate(
|
|
229
|
+
resourceGroupName: string,
|
|
230
|
+
resourceName: string,
|
|
231
|
+
parameters: SignalRResource,
|
|
232
|
+
options?: SignalRCreateOrUpdateOptionalParams
|
|
233
|
+
): Promise<
|
|
234
|
+
PollerLike<
|
|
235
|
+
PollOperationState<SignalRCreateOrUpdateResponse>,
|
|
236
|
+
SignalRCreateOrUpdateResponse
|
|
237
|
+
>
|
|
238
|
+
> {
|
|
239
|
+
const directSendOperation = async (
|
|
240
|
+
args: coreClient.OperationArguments,
|
|
241
|
+
spec: coreClient.OperationSpec
|
|
242
|
+
): Promise<SignalRCreateOrUpdateResponse> => {
|
|
243
|
+
return this.client.sendOperationRequest(args, spec);
|
|
244
|
+
};
|
|
245
|
+
const sendOperation = async (
|
|
246
|
+
args: coreClient.OperationArguments,
|
|
247
|
+
spec: coreClient.OperationSpec
|
|
248
|
+
) => {
|
|
249
|
+
let currentRawResponse:
|
|
250
|
+
| coreClient.FullOperationResponse
|
|
251
|
+
| undefined = undefined;
|
|
252
|
+
const providedCallback = args.options?.onResponse;
|
|
253
|
+
const callback: coreClient.RawResponseCallback = (
|
|
254
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
255
|
+
flatResponse: unknown
|
|
256
|
+
) => {
|
|
257
|
+
currentRawResponse = rawResponse;
|
|
258
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
259
|
+
};
|
|
260
|
+
const updatedArgs = {
|
|
261
|
+
...args,
|
|
262
|
+
options: {
|
|
263
|
+
...args.options,
|
|
264
|
+
onResponse: callback
|
|
265
|
+
}
|
|
266
|
+
};
|
|
267
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
268
|
+
return {
|
|
269
|
+
flatResponse,
|
|
270
|
+
rawResponse: {
|
|
271
|
+
statusCode: currentRawResponse!.status,
|
|
272
|
+
body: currentRawResponse!.parsedBody,
|
|
273
|
+
headers: currentRawResponse!.headers.toJSON()
|
|
274
|
+
}
|
|
275
|
+
};
|
|
276
|
+
};
|
|
277
|
+
|
|
278
|
+
const lro = new LroImpl(
|
|
279
|
+
sendOperation,
|
|
280
|
+
{ resourceGroupName, resourceName, parameters, options },
|
|
281
|
+
createOrUpdateOperationSpec
|
|
282
|
+
);
|
|
283
|
+
return new LroEngine(lro, {
|
|
284
|
+
resumeFrom: options?.resumeFrom,
|
|
285
|
+
intervalInMs: options?.updateIntervalInMs
|
|
286
|
+
});
|
|
163
287
|
}
|
|
164
288
|
|
|
165
289
|
/**
|
|
166
|
-
*
|
|
167
|
-
* @param resourceGroupName The name of the resource group that contains the resource. You can
|
|
168
|
-
*
|
|
290
|
+
* Create or update a resource.
|
|
291
|
+
* @param resourceGroupName The name of the resource group that contains the resource. You can obtain
|
|
292
|
+
* this value from the Azure Resource Manager API or the portal.
|
|
169
293
|
* @param resourceName The name of the resource.
|
|
170
|
-
* @param
|
|
171
|
-
* @
|
|
294
|
+
* @param parameters Parameters for the create or update operation
|
|
295
|
+
* @param options The options parameters.
|
|
172
296
|
*/
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
297
|
+
async beginCreateOrUpdateAndWait(
|
|
298
|
+
resourceGroupName: string,
|
|
299
|
+
resourceName: string,
|
|
300
|
+
parameters: SignalRResource,
|
|
301
|
+
options?: SignalRCreateOrUpdateOptionalParams
|
|
302
|
+
): Promise<SignalRCreateOrUpdateResponse> {
|
|
303
|
+
const poller = await this.beginCreateOrUpdate(
|
|
304
|
+
resourceGroupName,
|
|
305
|
+
resourceName,
|
|
306
|
+
parameters,
|
|
307
|
+
options
|
|
308
|
+
);
|
|
309
|
+
return poller.pollUntilDone();
|
|
176
310
|
}
|
|
177
311
|
|
|
178
312
|
/**
|
|
179
|
-
* Operation to
|
|
180
|
-
* @param
|
|
181
|
-
*
|
|
182
|
-
* obtain this value from the Azure Resource Manager API or the portal.
|
|
313
|
+
* Operation to delete a resource.
|
|
314
|
+
* @param resourceGroupName The name of the resource group that contains the resource. You can obtain
|
|
315
|
+
* this value from the Azure Resource Manager API or the portal.
|
|
183
316
|
* @param resourceName The name of the resource.
|
|
184
|
-
* @param
|
|
185
|
-
* @returns Promise<Models.SignalRUpdateResponse>
|
|
317
|
+
* @param options The options parameters.
|
|
186
318
|
*/
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
319
|
+
async beginDelete(
|
|
320
|
+
resourceGroupName: string,
|
|
321
|
+
resourceName: string,
|
|
322
|
+
options?: SignalRDeleteOptionalParams
|
|
323
|
+
): Promise<PollerLike<PollOperationState<void>, void>> {
|
|
324
|
+
const directSendOperation = async (
|
|
325
|
+
args: coreClient.OperationArguments,
|
|
326
|
+
spec: coreClient.OperationSpec
|
|
327
|
+
): Promise<void> => {
|
|
328
|
+
return this.client.sendOperationRequest(args, spec);
|
|
329
|
+
};
|
|
330
|
+
const sendOperation = async (
|
|
331
|
+
args: coreClient.OperationArguments,
|
|
332
|
+
spec: coreClient.OperationSpec
|
|
333
|
+
) => {
|
|
334
|
+
let currentRawResponse:
|
|
335
|
+
| coreClient.FullOperationResponse
|
|
336
|
+
| undefined = undefined;
|
|
337
|
+
const providedCallback = args.options?.onResponse;
|
|
338
|
+
const callback: coreClient.RawResponseCallback = (
|
|
339
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
340
|
+
flatResponse: unknown
|
|
341
|
+
) => {
|
|
342
|
+
currentRawResponse = rawResponse;
|
|
343
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
344
|
+
};
|
|
345
|
+
const updatedArgs = {
|
|
346
|
+
...args,
|
|
347
|
+
options: {
|
|
348
|
+
...args.options,
|
|
349
|
+
onResponse: callback
|
|
350
|
+
}
|
|
351
|
+
};
|
|
352
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
353
|
+
return {
|
|
354
|
+
flatResponse,
|
|
355
|
+
rawResponse: {
|
|
356
|
+
statusCode: currentRawResponse!.status,
|
|
357
|
+
body: currentRawResponse!.parsedBody,
|
|
358
|
+
headers: currentRawResponse!.headers.toJSON()
|
|
359
|
+
}
|
|
360
|
+
};
|
|
361
|
+
};
|
|
362
|
+
|
|
363
|
+
const lro = new LroImpl(
|
|
364
|
+
sendOperation,
|
|
365
|
+
{ resourceGroupName, resourceName, options },
|
|
366
|
+
deleteOperationSpec
|
|
367
|
+
);
|
|
368
|
+
return new LroEngine(lro, {
|
|
369
|
+
resumeFrom: options?.resumeFrom,
|
|
370
|
+
intervalInMs: options?.updateIntervalInMs
|
|
371
|
+
});
|
|
190
372
|
}
|
|
191
373
|
|
|
192
374
|
/**
|
|
193
|
-
*
|
|
194
|
-
* @param resourceGroupName The name of the resource group that contains the resource. You can
|
|
195
|
-
*
|
|
196
|
-
* @param resourceName The name of the resource.
|
|
197
|
-
* @param [options] The optional parameters
|
|
198
|
-
* @returns Promise<Models.SignalRListKeysResponse>
|
|
199
|
-
*/
|
|
200
|
-
listKeys(resourceGroupName: string, resourceName: string, options?: msRest.RequestOptionsBase): Promise<Models.SignalRListKeysResponse>;
|
|
201
|
-
/**
|
|
202
|
-
* @param resourceGroupName The name of the resource group that contains the resource. You can
|
|
203
|
-
* obtain this value from the Azure Resource Manager API or the portal.
|
|
204
|
-
* @param resourceName The name of the resource.
|
|
205
|
-
* @param callback The callback
|
|
206
|
-
*/
|
|
207
|
-
listKeys(resourceGroupName: string, resourceName: string, callback: msRest.ServiceCallback<Models.SignalRKeys>): void;
|
|
208
|
-
/**
|
|
209
|
-
* @param resourceGroupName The name of the resource group that contains the resource. You can
|
|
210
|
-
* obtain this value from the Azure Resource Manager API or the portal.
|
|
375
|
+
* Operation to delete a resource.
|
|
376
|
+
* @param resourceGroupName The name of the resource group that contains the resource. You can obtain
|
|
377
|
+
* this value from the Azure Resource Manager API or the portal.
|
|
211
378
|
* @param resourceName The name of the resource.
|
|
212
|
-
* @param options The
|
|
213
|
-
* @param callback The callback
|
|
379
|
+
* @param options The options parameters.
|
|
214
380
|
*/
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
381
|
+
async beginDeleteAndWait(
|
|
382
|
+
resourceGroupName: string,
|
|
383
|
+
resourceName: string,
|
|
384
|
+
options?: SignalRDeleteOptionalParams
|
|
385
|
+
): Promise<void> {
|
|
386
|
+
const poller = await this.beginDelete(
|
|
387
|
+
resourceGroupName,
|
|
388
|
+
resourceName,
|
|
389
|
+
options
|
|
390
|
+
);
|
|
391
|
+
return poller.pollUntilDone();
|
|
225
392
|
}
|
|
226
393
|
|
|
227
394
|
/**
|
|
228
|
-
*
|
|
229
|
-
* the
|
|
230
|
-
*
|
|
231
|
-
* @param resourceGroupName The name of the resource group that contains the resource. You can
|
|
232
|
-
* obtain this value from the Azure Resource Manager API or the portal.
|
|
395
|
+
* Operation to update an exiting resource.
|
|
396
|
+
* @param resourceGroupName The name of the resource group that contains the resource. You can obtain
|
|
397
|
+
* this value from the Azure Resource Manager API or the portal.
|
|
233
398
|
* @param resourceName The name of the resource.
|
|
234
|
-
* @param
|
|
235
|
-
* @
|
|
399
|
+
* @param parameters Parameters for the update operation
|
|
400
|
+
* @param options The options parameters.
|
|
236
401
|
*/
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
402
|
+
async beginUpdate(
|
|
403
|
+
resourceGroupName: string,
|
|
404
|
+
resourceName: string,
|
|
405
|
+
parameters: SignalRResource,
|
|
406
|
+
options?: SignalRUpdateOptionalParams
|
|
407
|
+
): Promise<
|
|
408
|
+
PollerLike<PollOperationState<SignalRUpdateResponse>, SignalRUpdateResponse>
|
|
409
|
+
> {
|
|
410
|
+
const directSendOperation = async (
|
|
411
|
+
args: coreClient.OperationArguments,
|
|
412
|
+
spec: coreClient.OperationSpec
|
|
413
|
+
): Promise<SignalRUpdateResponse> => {
|
|
414
|
+
return this.client.sendOperationRequest(args, spec);
|
|
415
|
+
};
|
|
416
|
+
const sendOperation = async (
|
|
417
|
+
args: coreClient.OperationArguments,
|
|
418
|
+
spec: coreClient.OperationSpec
|
|
419
|
+
) => {
|
|
420
|
+
let currentRawResponse:
|
|
421
|
+
| coreClient.FullOperationResponse
|
|
422
|
+
| undefined = undefined;
|
|
423
|
+
const providedCallback = args.options?.onResponse;
|
|
424
|
+
const callback: coreClient.RawResponseCallback = (
|
|
425
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
426
|
+
flatResponse: unknown
|
|
427
|
+
) => {
|
|
428
|
+
currentRawResponse = rawResponse;
|
|
429
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
430
|
+
};
|
|
431
|
+
const updatedArgs = {
|
|
432
|
+
...args,
|
|
433
|
+
options: {
|
|
434
|
+
...args.options,
|
|
435
|
+
onResponse: callback
|
|
436
|
+
}
|
|
437
|
+
};
|
|
438
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
439
|
+
return {
|
|
440
|
+
flatResponse,
|
|
441
|
+
rawResponse: {
|
|
442
|
+
statusCode: currentRawResponse!.status,
|
|
443
|
+
body: currentRawResponse!.parsedBody,
|
|
444
|
+
headers: currentRawResponse!.headers.toJSON()
|
|
445
|
+
}
|
|
446
|
+
};
|
|
447
|
+
};
|
|
448
|
+
|
|
449
|
+
const lro = new LroImpl(
|
|
450
|
+
sendOperation,
|
|
451
|
+
{ resourceGroupName, resourceName, parameters, options },
|
|
452
|
+
updateOperationSpec
|
|
453
|
+
);
|
|
454
|
+
return new LroEngine(lro, {
|
|
455
|
+
resumeFrom: options?.resumeFrom,
|
|
456
|
+
intervalInMs: options?.updateIntervalInMs
|
|
457
|
+
});
|
|
240
458
|
}
|
|
241
459
|
|
|
242
460
|
/**
|
|
243
|
-
* Operation to
|
|
244
|
-
* @param resourceGroupName The name of the resource group that contains the resource. You can
|
|
245
|
-
*
|
|
461
|
+
* Operation to update an exiting resource.
|
|
462
|
+
* @param resourceGroupName The name of the resource group that contains the resource. You can obtain
|
|
463
|
+
* this value from the Azure Resource Manager API or the portal.
|
|
246
464
|
* @param resourceName The name of the resource.
|
|
247
|
-
* @param
|
|
248
|
-
* @
|
|
465
|
+
* @param parameters Parameters for the update operation
|
|
466
|
+
* @param options The options parameters.
|
|
249
467
|
*/
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
468
|
+
async beginUpdateAndWait(
|
|
469
|
+
resourceGroupName: string,
|
|
470
|
+
resourceName: string,
|
|
471
|
+
parameters: SignalRResource,
|
|
472
|
+
options?: SignalRUpdateOptionalParams
|
|
473
|
+
): Promise<SignalRUpdateResponse> {
|
|
474
|
+
const poller = await this.beginUpdate(
|
|
475
|
+
resourceGroupName,
|
|
476
|
+
resourceName,
|
|
477
|
+
parameters,
|
|
478
|
+
options
|
|
479
|
+
);
|
|
480
|
+
return poller.pollUntilDone();
|
|
253
481
|
}
|
|
254
482
|
|
|
255
483
|
/**
|
|
256
|
-
*
|
|
257
|
-
* @param
|
|
258
|
-
*
|
|
259
|
-
* obtain this value from the Azure Resource Manager API or the portal.
|
|
484
|
+
* Get the access keys of the resource.
|
|
485
|
+
* @param resourceGroupName The name of the resource group that contains the resource. You can obtain
|
|
486
|
+
* this value from the Azure Resource Manager API or the portal.
|
|
260
487
|
* @param resourceName The name of the resource.
|
|
261
|
-
* @param
|
|
262
|
-
* @returns Promise<msRestAzure.LROPoller>
|
|
488
|
+
* @param options The options parameters.
|
|
263
489
|
*/
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
options);
|
|
490
|
+
listKeys(
|
|
491
|
+
resourceGroupName: string,
|
|
492
|
+
resourceName: string,
|
|
493
|
+
options?: SignalRListKeysOptionalParams
|
|
494
|
+
): Promise<SignalRListKeysResponse> {
|
|
495
|
+
return this.client.sendOperationRequest(
|
|
496
|
+
{ resourceGroupName, resourceName, options },
|
|
497
|
+
listKeysOperationSpec
|
|
498
|
+
);
|
|
274
499
|
}
|
|
275
500
|
|
|
276
501
|
/**
|
|
277
|
-
*
|
|
278
|
-
*
|
|
279
|
-
*
|
|
502
|
+
* Regenerate the access key for the resource. PrimaryKey and SecondaryKey cannot be regenerated at the
|
|
503
|
+
* same time.
|
|
504
|
+
* @param resourceGroupName The name of the resource group that contains the resource. You can obtain
|
|
505
|
+
* this value from the Azure Resource Manager API or the portal.
|
|
280
506
|
* @param resourceName The name of the resource.
|
|
281
|
-
* @param
|
|
282
|
-
* @
|
|
507
|
+
* @param parameters Parameter that describes the Regenerate Key Operation.
|
|
508
|
+
* @param options The options parameters.
|
|
283
509
|
*/
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
510
|
+
async beginRegenerateKey(
|
|
511
|
+
resourceGroupName: string,
|
|
512
|
+
resourceName: string,
|
|
513
|
+
parameters: RegenerateKeyParameters,
|
|
514
|
+
options?: SignalRRegenerateKeyOptionalParams
|
|
515
|
+
): Promise<
|
|
516
|
+
PollerLike<
|
|
517
|
+
PollOperationState<SignalRRegenerateKeyResponse>,
|
|
518
|
+
SignalRRegenerateKeyResponse
|
|
519
|
+
>
|
|
520
|
+
> {
|
|
521
|
+
const directSendOperation = async (
|
|
522
|
+
args: coreClient.OperationArguments,
|
|
523
|
+
spec: coreClient.OperationSpec
|
|
524
|
+
): Promise<SignalRRegenerateKeyResponse> => {
|
|
525
|
+
return this.client.sendOperationRequest(args, spec);
|
|
526
|
+
};
|
|
527
|
+
const sendOperation = async (
|
|
528
|
+
args: coreClient.OperationArguments,
|
|
529
|
+
spec: coreClient.OperationSpec
|
|
530
|
+
) => {
|
|
531
|
+
let currentRawResponse:
|
|
532
|
+
| coreClient.FullOperationResponse
|
|
533
|
+
| undefined = undefined;
|
|
534
|
+
const providedCallback = args.options?.onResponse;
|
|
535
|
+
const callback: coreClient.RawResponseCallback = (
|
|
536
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
537
|
+
flatResponse: unknown
|
|
538
|
+
) => {
|
|
539
|
+
currentRawResponse = rawResponse;
|
|
540
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
541
|
+
};
|
|
542
|
+
const updatedArgs = {
|
|
543
|
+
...args,
|
|
544
|
+
options: {
|
|
545
|
+
...args.options,
|
|
546
|
+
onResponse: callback
|
|
547
|
+
}
|
|
548
|
+
};
|
|
549
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
550
|
+
return {
|
|
551
|
+
flatResponse,
|
|
552
|
+
rawResponse: {
|
|
553
|
+
statusCode: currentRawResponse!.status,
|
|
554
|
+
body: currentRawResponse!.parsedBody,
|
|
555
|
+
headers: currentRawResponse!.headers.toJSON()
|
|
556
|
+
}
|
|
557
|
+
};
|
|
558
|
+
};
|
|
559
|
+
|
|
560
|
+
const lro = new LroImpl(
|
|
561
|
+
sendOperation,
|
|
562
|
+
{ resourceGroupName, resourceName, parameters, options },
|
|
563
|
+
regenerateKeyOperationSpec
|
|
564
|
+
);
|
|
565
|
+
return new LroEngine(lro, {
|
|
566
|
+
resumeFrom: options?.resumeFrom,
|
|
567
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
568
|
+
lroResourceLocationConfig: "azure-async-operation"
|
|
569
|
+
});
|
|
293
570
|
}
|
|
294
571
|
|
|
295
572
|
/**
|
|
296
|
-
*
|
|
297
|
-
*
|
|
298
|
-
* @param resourceGroupName The name of the resource group that contains the resource. You can
|
|
299
|
-
*
|
|
573
|
+
* Regenerate the access key for the resource. PrimaryKey and SecondaryKey cannot be regenerated at the
|
|
574
|
+
* same time.
|
|
575
|
+
* @param resourceGroupName The name of the resource group that contains the resource. You can obtain
|
|
576
|
+
* this value from the Azure Resource Manager API or the portal.
|
|
300
577
|
* @param resourceName The name of the resource.
|
|
301
|
-
* @param
|
|
302
|
-
* @
|
|
578
|
+
* @param parameters Parameter that describes the Regenerate Key Operation.
|
|
579
|
+
* @param options The options parameters.
|
|
303
580
|
*/
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
581
|
+
async beginRegenerateKeyAndWait(
|
|
582
|
+
resourceGroupName: string,
|
|
583
|
+
resourceName: string,
|
|
584
|
+
parameters: RegenerateKeyParameters,
|
|
585
|
+
options?: SignalRRegenerateKeyOptionalParams
|
|
586
|
+
): Promise<SignalRRegenerateKeyResponse> {
|
|
587
|
+
const poller = await this.beginRegenerateKey(
|
|
588
|
+
resourceGroupName,
|
|
589
|
+
resourceName,
|
|
590
|
+
parameters,
|
|
591
|
+
options
|
|
592
|
+
);
|
|
593
|
+
return poller.pollUntilDone();
|
|
314
594
|
}
|
|
315
595
|
|
|
316
596
|
/**
|
|
317
|
-
*
|
|
318
|
-
* the
|
|
319
|
-
*
|
|
320
|
-
* @param resourceGroupName The name of the resource group that contains the resource. You can
|
|
321
|
-
* obtain this value from the Azure Resource Manager API or the portal.
|
|
597
|
+
* Operation to restart a resource.
|
|
598
|
+
* @param resourceGroupName The name of the resource group that contains the resource. You can obtain
|
|
599
|
+
* this value from the Azure Resource Manager API or the portal.
|
|
322
600
|
* @param resourceName The name of the resource.
|
|
323
|
-
* @param
|
|
324
|
-
* @returns Promise<msRestAzure.LROPoller>
|
|
601
|
+
* @param options The options parameters.
|
|
325
602
|
*/
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
603
|
+
async beginRestart(
|
|
604
|
+
resourceGroupName: string,
|
|
605
|
+
resourceName: string,
|
|
606
|
+
options?: SignalRRestartOptionalParams
|
|
607
|
+
): Promise<PollerLike<PollOperationState<void>, void>> {
|
|
608
|
+
const directSendOperation = async (
|
|
609
|
+
args: coreClient.OperationArguments,
|
|
610
|
+
spec: coreClient.OperationSpec
|
|
611
|
+
): Promise<void> => {
|
|
612
|
+
return this.client.sendOperationRequest(args, spec);
|
|
613
|
+
};
|
|
614
|
+
const sendOperation = async (
|
|
615
|
+
args: coreClient.OperationArguments,
|
|
616
|
+
spec: coreClient.OperationSpec
|
|
617
|
+
) => {
|
|
618
|
+
let currentRawResponse:
|
|
619
|
+
| coreClient.FullOperationResponse
|
|
620
|
+
| undefined = undefined;
|
|
621
|
+
const providedCallback = args.options?.onResponse;
|
|
622
|
+
const callback: coreClient.RawResponseCallback = (
|
|
623
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
624
|
+
flatResponse: unknown
|
|
625
|
+
) => {
|
|
626
|
+
currentRawResponse = rawResponse;
|
|
627
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
628
|
+
};
|
|
629
|
+
const updatedArgs = {
|
|
630
|
+
...args,
|
|
631
|
+
options: {
|
|
632
|
+
...args.options,
|
|
633
|
+
onResponse: callback
|
|
634
|
+
}
|
|
635
|
+
};
|
|
636
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
637
|
+
return {
|
|
638
|
+
flatResponse,
|
|
639
|
+
rawResponse: {
|
|
640
|
+
statusCode: currentRawResponse!.status,
|
|
641
|
+
body: currentRawResponse!.parsedBody,
|
|
642
|
+
headers: currentRawResponse!.headers.toJSON()
|
|
643
|
+
}
|
|
644
|
+
};
|
|
645
|
+
};
|
|
646
|
+
|
|
647
|
+
const lro = new LroImpl(
|
|
648
|
+
sendOperation,
|
|
649
|
+
{ resourceGroupName, resourceName, options },
|
|
650
|
+
restartOperationSpec
|
|
651
|
+
);
|
|
652
|
+
return new LroEngine(lro, {
|
|
653
|
+
resumeFrom: options?.resumeFrom,
|
|
654
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
655
|
+
lroResourceLocationConfig: "azure-async-operation"
|
|
656
|
+
});
|
|
336
657
|
}
|
|
337
658
|
|
|
338
659
|
/**
|
|
339
660
|
* Operation to restart a resource.
|
|
340
|
-
* @param resourceGroupName The name of the resource group that contains the resource. You can
|
|
341
|
-
*
|
|
661
|
+
* @param resourceGroupName The name of the resource group that contains the resource. You can obtain
|
|
662
|
+
* this value from the Azure Resource Manager API or the portal.
|
|
342
663
|
* @param resourceName The name of the resource.
|
|
343
|
-
* @param
|
|
344
|
-
* @returns Promise<msRestAzure.LROPoller>
|
|
664
|
+
* @param options The options parameters.
|
|
345
665
|
*/
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
options
|
|
666
|
+
async beginRestartAndWait(
|
|
667
|
+
resourceGroupName: string,
|
|
668
|
+
resourceName: string,
|
|
669
|
+
options?: SignalRRestartOptionalParams
|
|
670
|
+
): Promise<void> {
|
|
671
|
+
const poller = await this.beginRestart(
|
|
672
|
+
resourceGroupName,
|
|
673
|
+
resourceName,
|
|
674
|
+
options
|
|
675
|
+
);
|
|
676
|
+
return poller.pollUntilDone();
|
|
355
677
|
}
|
|
356
678
|
|
|
357
679
|
/**
|
|
358
|
-
*
|
|
359
|
-
* @param
|
|
360
|
-
*
|
|
361
|
-
* @
|
|
362
|
-
|
|
363
|
-
listBySubscriptionNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise<Models.SignalRListBySubscriptionNextResponse>;
|
|
364
|
-
/**
|
|
365
|
-
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
|
366
|
-
* @param callback The callback
|
|
367
|
-
*/
|
|
368
|
-
listBySubscriptionNext(nextPageLink: string, callback: msRest.ServiceCallback<Models.SignalRResourceList>): void;
|
|
369
|
-
/**
|
|
370
|
-
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
|
371
|
-
* @param options The optional parameters
|
|
372
|
-
* @param callback The callback
|
|
680
|
+
* List all available skus of the resource.
|
|
681
|
+
* @param resourceGroupName The name of the resource group that contains the resource. You can obtain
|
|
682
|
+
* this value from the Azure Resource Manager API or the portal.
|
|
683
|
+
* @param resourceName The name of the resource.
|
|
684
|
+
* @param options The options parameters.
|
|
373
685
|
*/
|
|
374
|
-
|
|
375
|
-
|
|
686
|
+
listSkus(
|
|
687
|
+
resourceGroupName: string,
|
|
688
|
+
resourceName: string,
|
|
689
|
+
options?: SignalRListSkusOptionalParams
|
|
690
|
+
): Promise<SignalRListSkusResponse> {
|
|
376
691
|
return this.client.sendOperationRequest(
|
|
377
|
-
{
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
},
|
|
381
|
-
listBySubscriptionNextOperationSpec,
|
|
382
|
-
callback) as Promise<Models.SignalRListBySubscriptionNextResponse>;
|
|
692
|
+
{ resourceGroupName, resourceName, options },
|
|
693
|
+
listSkusOperationSpec
|
|
694
|
+
);
|
|
383
695
|
}
|
|
384
696
|
|
|
385
697
|
/**
|
|
386
|
-
*
|
|
387
|
-
* @param
|
|
388
|
-
* @param
|
|
389
|
-
* @returns Promise<Models.SignalRListByResourceGroupNextResponse>
|
|
390
|
-
*/
|
|
391
|
-
listByResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise<Models.SignalRListByResourceGroupNextResponse>;
|
|
392
|
-
/**
|
|
393
|
-
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
|
394
|
-
* @param callback The callback
|
|
698
|
+
* ListBySubscriptionNext
|
|
699
|
+
* @param nextLink The nextLink from the previous successful call to the ListBySubscription method.
|
|
700
|
+
* @param options The options parameters.
|
|
395
701
|
*/
|
|
396
|
-
|
|
702
|
+
private _listBySubscriptionNext(
|
|
703
|
+
nextLink: string,
|
|
704
|
+
options?: SignalRListBySubscriptionNextOptionalParams
|
|
705
|
+
): Promise<SignalRListBySubscriptionNextResponse> {
|
|
706
|
+
return this.client.sendOperationRequest(
|
|
707
|
+
{ nextLink, options },
|
|
708
|
+
listBySubscriptionNextOperationSpec
|
|
709
|
+
);
|
|
710
|
+
}
|
|
711
|
+
|
|
397
712
|
/**
|
|
398
|
-
*
|
|
399
|
-
* @param
|
|
400
|
-
*
|
|
713
|
+
* ListByResourceGroupNext
|
|
714
|
+
* @param resourceGroupName The name of the resource group that contains the resource. You can obtain
|
|
715
|
+
* this value from the Azure Resource Manager API or the portal.
|
|
716
|
+
* @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
|
|
717
|
+
* @param options The options parameters.
|
|
401
718
|
*/
|
|
402
|
-
|
|
403
|
-
|
|
719
|
+
private _listByResourceGroupNext(
|
|
720
|
+
resourceGroupName: string,
|
|
721
|
+
nextLink: string,
|
|
722
|
+
options?: SignalRListByResourceGroupNextOptionalParams
|
|
723
|
+
): Promise<SignalRListByResourceGroupNextResponse> {
|
|
404
724
|
return this.client.sendOperationRequest(
|
|
405
|
-
{
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
},
|
|
409
|
-
listByResourceGroupNextOperationSpec,
|
|
410
|
-
callback) as Promise<Models.SignalRListByResourceGroupNextResponse>;
|
|
725
|
+
{ resourceGroupName, nextLink, options },
|
|
726
|
+
listByResourceGroupNextOperationSpec
|
|
727
|
+
);
|
|
411
728
|
}
|
|
412
729
|
}
|
|
413
|
-
|
|
414
730
|
// Operation Specifications
|
|
415
|
-
const serializer =
|
|
416
|
-
|
|
731
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
732
|
+
|
|
733
|
+
const checkNameAvailabilityOperationSpec: coreClient.OperationSpec = {
|
|
734
|
+
path:
|
|
735
|
+
"/subscriptions/{subscriptionId}/providers/Microsoft.SignalRService/locations/{location}/checkNameAvailability",
|
|
417
736
|
httpMethod: "POST",
|
|
418
|
-
path: "subscriptions/{subscriptionId}/providers/Microsoft.SignalRService/locations/{location}/checkNameAvailability",
|
|
419
|
-
urlParameters: [
|
|
420
|
-
Parameters.location,
|
|
421
|
-
Parameters.subscriptionId
|
|
422
|
-
],
|
|
423
|
-
queryParameters: [
|
|
424
|
-
Parameters.apiVersion
|
|
425
|
-
],
|
|
426
|
-
headerParameters: [
|
|
427
|
-
Parameters.acceptLanguage
|
|
428
|
-
],
|
|
429
|
-
requestBody: {
|
|
430
|
-
parameterPath: "parameters",
|
|
431
|
-
mapper: {
|
|
432
|
-
...Mappers.NameAvailabilityParameters,
|
|
433
|
-
required: true
|
|
434
|
-
}
|
|
435
|
-
},
|
|
436
737
|
responses: {
|
|
437
738
|
200: {
|
|
438
739
|
bodyMapper: Mappers.NameAvailability
|
|
@@ -441,21 +742,21 @@ const checkNameAvailabilityOperationSpec: msRest.OperationSpec = {
|
|
|
441
742
|
bodyMapper: Mappers.ErrorResponse
|
|
442
743
|
}
|
|
443
744
|
},
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
const listBySubscriptionOperationSpec: msRest.OperationSpec = {
|
|
448
|
-
httpMethod: "GET",
|
|
449
|
-
path: "subscriptions/{subscriptionId}/providers/Microsoft.SignalRService/signalR",
|
|
745
|
+
requestBody: Parameters.parameters,
|
|
746
|
+
queryParameters: [Parameters.apiVersion],
|
|
450
747
|
urlParameters: [
|
|
748
|
+
Parameters.$host,
|
|
749
|
+
Parameters.location,
|
|
451
750
|
Parameters.subscriptionId
|
|
452
751
|
],
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
752
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
753
|
+
mediaType: "json",
|
|
754
|
+
serializer
|
|
755
|
+
};
|
|
756
|
+
const listBySubscriptionOperationSpec: coreClient.OperationSpec = {
|
|
757
|
+
path:
|
|
758
|
+
"/subscriptions/{subscriptionId}/providers/Microsoft.SignalRService/signalR",
|
|
759
|
+
httpMethod: "GET",
|
|
459
760
|
responses: {
|
|
460
761
|
200: {
|
|
461
762
|
bodyMapper: Mappers.SignalRResourceList
|
|
@@ -464,22 +765,15 @@ const listBySubscriptionOperationSpec: msRest.OperationSpec = {
|
|
|
464
765
|
bodyMapper: Mappers.ErrorResponse
|
|
465
766
|
}
|
|
466
767
|
},
|
|
768
|
+
queryParameters: [Parameters.apiVersion],
|
|
769
|
+
urlParameters: [Parameters.$host, Parameters.subscriptionId],
|
|
770
|
+
headerParameters: [Parameters.accept],
|
|
467
771
|
serializer
|
|
468
772
|
};
|
|
469
|
-
|
|
470
|
-
|
|
773
|
+
const listByResourceGroupOperationSpec: coreClient.OperationSpec = {
|
|
774
|
+
path:
|
|
775
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/signalR",
|
|
471
776
|
httpMethod: "GET",
|
|
472
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/signalR",
|
|
473
|
-
urlParameters: [
|
|
474
|
-
Parameters.subscriptionId,
|
|
475
|
-
Parameters.resourceGroupName
|
|
476
|
-
],
|
|
477
|
-
queryParameters: [
|
|
478
|
-
Parameters.apiVersion
|
|
479
|
-
],
|
|
480
|
-
headerParameters: [
|
|
481
|
-
Parameters.acceptLanguage
|
|
482
|
-
],
|
|
483
777
|
responses: {
|
|
484
778
|
200: {
|
|
485
779
|
bodyMapper: Mappers.SignalRResourceList
|
|
@@ -488,23 +782,19 @@ const listByResourceGroupOperationSpec: msRest.OperationSpec = {
|
|
|
488
782
|
bodyMapper: Mappers.ErrorResponse
|
|
489
783
|
}
|
|
490
784
|
},
|
|
491
|
-
|
|
492
|
-
};
|
|
493
|
-
|
|
494
|
-
const getOperationSpec: msRest.OperationSpec = {
|
|
495
|
-
httpMethod: "GET",
|
|
496
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/signalR/{resourceName}",
|
|
785
|
+
queryParameters: [Parameters.apiVersion],
|
|
497
786
|
urlParameters: [
|
|
787
|
+
Parameters.$host,
|
|
498
788
|
Parameters.subscriptionId,
|
|
499
|
-
Parameters.resourceGroupName
|
|
500
|
-
Parameters.resourceName
|
|
501
|
-
],
|
|
502
|
-
queryParameters: [
|
|
503
|
-
Parameters.apiVersion
|
|
504
|
-
],
|
|
505
|
-
headerParameters: [
|
|
506
|
-
Parameters.acceptLanguage
|
|
789
|
+
Parameters.resourceGroupName
|
|
507
790
|
],
|
|
791
|
+
headerParameters: [Parameters.accept],
|
|
792
|
+
serializer
|
|
793
|
+
};
|
|
794
|
+
const getOperationSpec: coreClient.OperationSpec = {
|
|
795
|
+
path:
|
|
796
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/signalR/{resourceName}",
|
|
797
|
+
httpMethod: "GET",
|
|
508
798
|
responses: {
|
|
509
799
|
200: {
|
|
510
800
|
bodyMapper: Mappers.SignalRResource
|
|
@@ -513,55 +803,20 @@ const getOperationSpec: msRest.OperationSpec = {
|
|
|
513
803
|
bodyMapper: Mappers.ErrorResponse
|
|
514
804
|
}
|
|
515
805
|
},
|
|
516
|
-
|
|
517
|
-
};
|
|
518
|
-
|
|
519
|
-
const listKeysOperationSpec: msRest.OperationSpec = {
|
|
520
|
-
httpMethod: "POST",
|
|
521
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/signalR/{resourceName}/listKeys",
|
|
806
|
+
queryParameters: [Parameters.apiVersion],
|
|
522
807
|
urlParameters: [
|
|
808
|
+
Parameters.$host,
|
|
523
809
|
Parameters.subscriptionId,
|
|
524
810
|
Parameters.resourceGroupName,
|
|
525
811
|
Parameters.resourceName
|
|
526
812
|
],
|
|
527
|
-
|
|
528
|
-
Parameters.apiVersion
|
|
529
|
-
],
|
|
530
|
-
headerParameters: [
|
|
531
|
-
Parameters.acceptLanguage
|
|
532
|
-
],
|
|
533
|
-
responses: {
|
|
534
|
-
200: {
|
|
535
|
-
bodyMapper: Mappers.SignalRKeys
|
|
536
|
-
},
|
|
537
|
-
default: {
|
|
538
|
-
bodyMapper: Mappers.ErrorResponse
|
|
539
|
-
}
|
|
540
|
-
},
|
|
813
|
+
headerParameters: [Parameters.accept],
|
|
541
814
|
serializer
|
|
542
815
|
};
|
|
543
|
-
|
|
544
|
-
|
|
816
|
+
const createOrUpdateOperationSpec: coreClient.OperationSpec = {
|
|
817
|
+
path:
|
|
818
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/signalR/{resourceName}",
|
|
545
819
|
httpMethod: "PUT",
|
|
546
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/signalR/{resourceName}",
|
|
547
|
-
urlParameters: [
|
|
548
|
-
Parameters.subscriptionId,
|
|
549
|
-
Parameters.resourceGroupName,
|
|
550
|
-
Parameters.resourceName
|
|
551
|
-
],
|
|
552
|
-
queryParameters: [
|
|
553
|
-
Parameters.apiVersion
|
|
554
|
-
],
|
|
555
|
-
headerParameters: [
|
|
556
|
-
Parameters.acceptLanguage
|
|
557
|
-
],
|
|
558
|
-
requestBody: {
|
|
559
|
-
parameterPath: "parameters",
|
|
560
|
-
mapper: {
|
|
561
|
-
...Mappers.SignalRResource,
|
|
562
|
-
required: true
|
|
563
|
-
}
|
|
564
|
-
},
|
|
565
820
|
responses: {
|
|
566
821
|
200: {
|
|
567
822
|
bodyMapper: Mappers.SignalRResource
|
|
@@ -569,141 +824,187 @@ const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = {
|
|
|
569
824
|
201: {
|
|
570
825
|
bodyMapper: Mappers.SignalRResource
|
|
571
826
|
},
|
|
572
|
-
202: {
|
|
827
|
+
202: {
|
|
828
|
+
bodyMapper: Mappers.SignalRResource
|
|
829
|
+
},
|
|
830
|
+
204: {
|
|
831
|
+
bodyMapper: Mappers.SignalRResource
|
|
832
|
+
},
|
|
573
833
|
default: {
|
|
574
834
|
bodyMapper: Mappers.ErrorResponse
|
|
575
835
|
}
|
|
576
836
|
},
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
const beginDeleteMethodOperationSpec: msRest.OperationSpec = {
|
|
581
|
-
httpMethod: "DELETE",
|
|
582
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/signalR/{resourceName}",
|
|
837
|
+
requestBody: Parameters.parameters1,
|
|
838
|
+
queryParameters: [Parameters.apiVersion],
|
|
583
839
|
urlParameters: [
|
|
840
|
+
Parameters.$host,
|
|
584
841
|
Parameters.subscriptionId,
|
|
585
842
|
Parameters.resourceGroupName,
|
|
586
843
|
Parameters.resourceName
|
|
587
844
|
],
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
845
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
846
|
+
mediaType: "json",
|
|
847
|
+
serializer
|
|
848
|
+
};
|
|
849
|
+
const deleteOperationSpec: coreClient.OperationSpec = {
|
|
850
|
+
path:
|
|
851
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/signalR/{resourceName}",
|
|
852
|
+
httpMethod: "DELETE",
|
|
594
853
|
responses: {
|
|
595
854
|
200: {},
|
|
855
|
+
201: {},
|
|
596
856
|
202: {},
|
|
597
857
|
204: {},
|
|
598
858
|
default: {
|
|
599
859
|
bodyMapper: Mappers.ErrorResponse
|
|
600
860
|
}
|
|
601
861
|
},
|
|
602
|
-
|
|
603
|
-
};
|
|
604
|
-
|
|
605
|
-
const beginUpdateOperationSpec: msRest.OperationSpec = {
|
|
606
|
-
httpMethod: "PATCH",
|
|
607
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/signalR/{resourceName}",
|
|
862
|
+
queryParameters: [Parameters.apiVersion],
|
|
608
863
|
urlParameters: [
|
|
864
|
+
Parameters.$host,
|
|
609
865
|
Parameters.subscriptionId,
|
|
610
866
|
Parameters.resourceGroupName,
|
|
611
867
|
Parameters.resourceName
|
|
612
868
|
],
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
parameterPath: "parameters",
|
|
621
|
-
mapper: {
|
|
622
|
-
...Mappers.SignalRResource,
|
|
623
|
-
required: true
|
|
624
|
-
}
|
|
625
|
-
},
|
|
869
|
+
headerParameters: [Parameters.accept],
|
|
870
|
+
serializer
|
|
871
|
+
};
|
|
872
|
+
const updateOperationSpec: coreClient.OperationSpec = {
|
|
873
|
+
path:
|
|
874
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/signalR/{resourceName}",
|
|
875
|
+
httpMethod: "PATCH",
|
|
626
876
|
responses: {
|
|
627
877
|
200: {
|
|
628
878
|
bodyMapper: Mappers.SignalRResource
|
|
629
879
|
},
|
|
630
|
-
|
|
880
|
+
201: {
|
|
881
|
+
bodyMapper: Mappers.SignalRResource
|
|
882
|
+
},
|
|
883
|
+
202: {
|
|
884
|
+
bodyMapper: Mappers.SignalRResource
|
|
885
|
+
},
|
|
886
|
+
204: {
|
|
887
|
+
bodyMapper: Mappers.SignalRResource
|
|
888
|
+
},
|
|
631
889
|
default: {
|
|
632
890
|
bodyMapper: Mappers.ErrorResponse
|
|
633
891
|
}
|
|
634
892
|
},
|
|
893
|
+
requestBody: Parameters.parameters1,
|
|
894
|
+
queryParameters: [Parameters.apiVersion],
|
|
895
|
+
urlParameters: [
|
|
896
|
+
Parameters.$host,
|
|
897
|
+
Parameters.subscriptionId,
|
|
898
|
+
Parameters.resourceGroupName,
|
|
899
|
+
Parameters.resourceName
|
|
900
|
+
],
|
|
901
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
902
|
+
mediaType: "json",
|
|
635
903
|
serializer
|
|
636
904
|
};
|
|
637
|
-
|
|
638
|
-
|
|
905
|
+
const listKeysOperationSpec: coreClient.OperationSpec = {
|
|
906
|
+
path:
|
|
907
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/signalR/{resourceName}/listKeys",
|
|
639
908
|
httpMethod: "POST",
|
|
640
|
-
|
|
909
|
+
responses: {
|
|
910
|
+
200: {
|
|
911
|
+
bodyMapper: Mappers.SignalRKeys
|
|
912
|
+
},
|
|
913
|
+
default: {
|
|
914
|
+
bodyMapper: Mappers.ErrorResponse
|
|
915
|
+
}
|
|
916
|
+
},
|
|
917
|
+
queryParameters: [Parameters.apiVersion],
|
|
641
918
|
urlParameters: [
|
|
919
|
+
Parameters.$host,
|
|
642
920
|
Parameters.subscriptionId,
|
|
643
921
|
Parameters.resourceGroupName,
|
|
644
922
|
Parameters.resourceName
|
|
645
923
|
],
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
parameterPath: "parameters",
|
|
654
|
-
mapper: {
|
|
655
|
-
...Mappers.RegenerateKeyParameters,
|
|
656
|
-
required: true
|
|
657
|
-
}
|
|
658
|
-
},
|
|
924
|
+
headerParameters: [Parameters.accept],
|
|
925
|
+
serializer
|
|
926
|
+
};
|
|
927
|
+
const regenerateKeyOperationSpec: coreClient.OperationSpec = {
|
|
928
|
+
path:
|
|
929
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/signalR/{resourceName}/regenerateKey",
|
|
930
|
+
httpMethod: "POST",
|
|
659
931
|
responses: {
|
|
932
|
+
200: {
|
|
933
|
+
bodyMapper: Mappers.SignalRKeys
|
|
934
|
+
},
|
|
935
|
+
201: {
|
|
936
|
+
bodyMapper: Mappers.SignalRKeys
|
|
937
|
+
},
|
|
660
938
|
202: {
|
|
661
939
|
bodyMapper: Mappers.SignalRKeys
|
|
662
940
|
},
|
|
941
|
+
204: {
|
|
942
|
+
bodyMapper: Mappers.SignalRKeys
|
|
943
|
+
},
|
|
663
944
|
default: {
|
|
664
945
|
bodyMapper: Mappers.ErrorResponse
|
|
665
946
|
}
|
|
666
947
|
},
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
const beginRestartOperationSpec: msRest.OperationSpec = {
|
|
671
|
-
httpMethod: "POST",
|
|
672
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/signalR/{resourceName}/restart",
|
|
948
|
+
requestBody: Parameters.parameters2,
|
|
949
|
+
queryParameters: [Parameters.apiVersion],
|
|
673
950
|
urlParameters: [
|
|
951
|
+
Parameters.$host,
|
|
674
952
|
Parameters.subscriptionId,
|
|
675
953
|
Parameters.resourceGroupName,
|
|
676
954
|
Parameters.resourceName
|
|
677
955
|
],
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
956
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
957
|
+
mediaType: "json",
|
|
958
|
+
serializer
|
|
959
|
+
};
|
|
960
|
+
const restartOperationSpec: coreClient.OperationSpec = {
|
|
961
|
+
path:
|
|
962
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/signalR/{resourceName}/restart",
|
|
963
|
+
httpMethod: "POST",
|
|
684
964
|
responses: {
|
|
965
|
+
200: {},
|
|
966
|
+
201: {},
|
|
685
967
|
202: {},
|
|
686
968
|
204: {},
|
|
687
969
|
default: {
|
|
688
970
|
bodyMapper: Mappers.ErrorResponse
|
|
689
971
|
}
|
|
690
972
|
},
|
|
973
|
+
queryParameters: [Parameters.apiVersion],
|
|
974
|
+
urlParameters: [
|
|
975
|
+
Parameters.$host,
|
|
976
|
+
Parameters.subscriptionId,
|
|
977
|
+
Parameters.resourceGroupName,
|
|
978
|
+
Parameters.resourceName
|
|
979
|
+
],
|
|
980
|
+
headerParameters: [Parameters.accept],
|
|
691
981
|
serializer
|
|
692
982
|
};
|
|
693
|
-
|
|
694
|
-
|
|
983
|
+
const listSkusOperationSpec: coreClient.OperationSpec = {
|
|
984
|
+
path:
|
|
985
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/signalR/{resourceName}/skus",
|
|
695
986
|
httpMethod: "GET",
|
|
696
|
-
|
|
697
|
-
|
|
987
|
+
responses: {
|
|
988
|
+
200: {
|
|
989
|
+
bodyMapper: Mappers.SkuList
|
|
990
|
+
},
|
|
991
|
+
default: {
|
|
992
|
+
bodyMapper: Mappers.ErrorResponse
|
|
993
|
+
}
|
|
994
|
+
},
|
|
995
|
+
queryParameters: [Parameters.apiVersion],
|
|
698
996
|
urlParameters: [
|
|
699
|
-
Parameters
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
Parameters.
|
|
703
|
-
],
|
|
704
|
-
headerParameters: [
|
|
705
|
-
Parameters.acceptLanguage
|
|
997
|
+
Parameters.$host,
|
|
998
|
+
Parameters.subscriptionId,
|
|
999
|
+
Parameters.resourceGroupName,
|
|
1000
|
+
Parameters.resourceName
|
|
706
1001
|
],
|
|
1002
|
+
headerParameters: [Parameters.accept],
|
|
1003
|
+
serializer
|
|
1004
|
+
};
|
|
1005
|
+
const listBySubscriptionNextOperationSpec: coreClient.OperationSpec = {
|
|
1006
|
+
path: "{nextLink}",
|
|
1007
|
+
httpMethod: "GET",
|
|
707
1008
|
responses: {
|
|
708
1009
|
200: {
|
|
709
1010
|
bodyMapper: Mappers.SignalRResourceList
|
|
@@ -712,22 +1013,18 @@ const listBySubscriptionNextOperationSpec: msRest.OperationSpec = {
|
|
|
712
1013
|
bodyMapper: Mappers.ErrorResponse
|
|
713
1014
|
}
|
|
714
1015
|
},
|
|
1016
|
+
queryParameters: [Parameters.apiVersion],
|
|
1017
|
+
urlParameters: [
|
|
1018
|
+
Parameters.$host,
|
|
1019
|
+
Parameters.nextLink,
|
|
1020
|
+
Parameters.subscriptionId
|
|
1021
|
+
],
|
|
1022
|
+
headerParameters: [Parameters.accept],
|
|
715
1023
|
serializer
|
|
716
1024
|
};
|
|
717
|
-
|
|
718
|
-
const listByResourceGroupNextOperationSpec: msRest.OperationSpec = {
|
|
719
|
-
httpMethod: "GET",
|
|
720
|
-
baseUrl: "https://management.azure.com",
|
|
1025
|
+
const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = {
|
|
721
1026
|
path: "{nextLink}",
|
|
722
|
-
|
|
723
|
-
Parameters.nextPageLink
|
|
724
|
-
],
|
|
725
|
-
queryParameters: [
|
|
726
|
-
Parameters.apiVersion
|
|
727
|
-
],
|
|
728
|
-
headerParameters: [
|
|
729
|
-
Parameters.acceptLanguage
|
|
730
|
-
],
|
|
1027
|
+
httpMethod: "GET",
|
|
731
1028
|
responses: {
|
|
732
1029
|
200: {
|
|
733
1030
|
bodyMapper: Mappers.SignalRResourceList
|
|
@@ -736,5 +1033,13 @@ const listByResourceGroupNextOperationSpec: msRest.OperationSpec = {
|
|
|
736
1033
|
bodyMapper: Mappers.ErrorResponse
|
|
737
1034
|
}
|
|
738
1035
|
},
|
|
1036
|
+
queryParameters: [Parameters.apiVersion],
|
|
1037
|
+
urlParameters: [
|
|
1038
|
+
Parameters.$host,
|
|
1039
|
+
Parameters.nextLink,
|
|
1040
|
+
Parameters.subscriptionId,
|
|
1041
|
+
Parameters.resourceGroupName
|
|
1042
|
+
],
|
|
1043
|
+
headerParameters: [Parameters.accept],
|
|
739
1044
|
serializer
|
|
740
1045
|
};
|