@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
package/src/models/parameters.ts
CHANGED
|
@@ -3,100 +3,169 @@
|
|
|
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
|
|
9
|
+
import {
|
|
10
|
+
OperationParameter,
|
|
11
|
+
OperationURLParameter,
|
|
12
|
+
OperationQueryParameter
|
|
13
|
+
} from "@azure/core-client";
|
|
14
|
+
import {
|
|
15
|
+
NameAvailabilityParameters as NameAvailabilityParametersMapper,
|
|
16
|
+
SignalRResource as SignalRResourceMapper,
|
|
17
|
+
RegenerateKeyParameters as RegenerateKeyParametersMapper,
|
|
18
|
+
PrivateEndpointConnection as PrivateEndpointConnectionMapper,
|
|
19
|
+
SharedPrivateLinkResource as SharedPrivateLinkResourceMapper
|
|
20
|
+
} from "../models/mappers";
|
|
11
21
|
|
|
12
|
-
export const
|
|
13
|
-
parameterPath: "
|
|
22
|
+
export const accept: OperationParameter = {
|
|
23
|
+
parameterPath: "accept",
|
|
14
24
|
mapper: {
|
|
15
|
-
|
|
16
|
-
|
|
25
|
+
defaultValue: "application/json",
|
|
26
|
+
isConstant: true,
|
|
27
|
+
serializedName: "Accept",
|
|
17
28
|
type: {
|
|
18
29
|
name: "String"
|
|
19
30
|
}
|
|
20
31
|
}
|
|
21
32
|
};
|
|
22
|
-
|
|
23
|
-
|
|
33
|
+
|
|
34
|
+
export const $host: OperationURLParameter = {
|
|
35
|
+
parameterPath: "$host",
|
|
24
36
|
mapper: {
|
|
37
|
+
serializedName: "$host",
|
|
25
38
|
required: true,
|
|
39
|
+
type: {
|
|
40
|
+
name: "String"
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
skipEncoding: true
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
export const apiVersion: OperationQueryParameter = {
|
|
47
|
+
parameterPath: "apiVersion",
|
|
48
|
+
mapper: {
|
|
49
|
+
defaultValue: "2021-10-01",
|
|
50
|
+
isConstant: true,
|
|
26
51
|
serializedName: "api-version",
|
|
27
52
|
type: {
|
|
28
53
|
name: "String"
|
|
29
54
|
}
|
|
30
55
|
}
|
|
31
56
|
};
|
|
32
|
-
|
|
33
|
-
|
|
57
|
+
|
|
58
|
+
export const nextLink: OperationURLParameter = {
|
|
59
|
+
parameterPath: "nextLink",
|
|
34
60
|
mapper: {
|
|
61
|
+
serializedName: "nextLink",
|
|
35
62
|
required: true,
|
|
36
|
-
|
|
63
|
+
type: {
|
|
64
|
+
name: "String"
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
skipEncoding: true
|
|
68
|
+
};
|
|
69
|
+
|
|
70
|
+
export const contentType: OperationParameter = {
|
|
71
|
+
parameterPath: ["options", "contentType"],
|
|
72
|
+
mapper: {
|
|
73
|
+
defaultValue: "application/json",
|
|
74
|
+
isConstant: true,
|
|
75
|
+
serializedName: "Content-Type",
|
|
37
76
|
type: {
|
|
38
77
|
name: "String"
|
|
39
78
|
}
|
|
40
79
|
}
|
|
41
80
|
};
|
|
42
|
-
|
|
43
|
-
|
|
81
|
+
|
|
82
|
+
export const parameters: OperationParameter = {
|
|
83
|
+
parameterPath: "parameters",
|
|
84
|
+
mapper: NameAvailabilityParametersMapper
|
|
85
|
+
};
|
|
86
|
+
|
|
87
|
+
export const location: OperationURLParameter = {
|
|
88
|
+
parameterPath: "location",
|
|
44
89
|
mapper: {
|
|
90
|
+
serializedName: "location",
|
|
45
91
|
required: true,
|
|
46
|
-
serializedName: "nextLink",
|
|
47
92
|
type: {
|
|
48
93
|
name: "String"
|
|
49
94
|
}
|
|
50
|
-
}
|
|
51
|
-
skipEncoding: true
|
|
95
|
+
}
|
|
52
96
|
};
|
|
53
|
-
|
|
54
|
-
|
|
97
|
+
|
|
98
|
+
export const subscriptionId: OperationURLParameter = {
|
|
99
|
+
parameterPath: "subscriptionId",
|
|
55
100
|
mapper: {
|
|
101
|
+
serializedName: "subscriptionId",
|
|
56
102
|
required: true,
|
|
57
|
-
serializedName: "privateEndpointConnectionName",
|
|
58
103
|
type: {
|
|
59
104
|
name: "String"
|
|
60
105
|
}
|
|
61
106
|
}
|
|
62
107
|
};
|
|
63
|
-
|
|
108
|
+
|
|
109
|
+
export const resourceGroupName: OperationURLParameter = {
|
|
64
110
|
parameterPath: "resourceGroupName",
|
|
65
111
|
mapper: {
|
|
66
|
-
required: true,
|
|
67
112
|
serializedName: "resourceGroupName",
|
|
113
|
+
required: true,
|
|
68
114
|
type: {
|
|
69
115
|
name: "String"
|
|
70
116
|
}
|
|
71
117
|
}
|
|
72
118
|
};
|
|
73
|
-
|
|
119
|
+
|
|
120
|
+
export const resourceName: OperationURLParameter = {
|
|
74
121
|
parameterPath: "resourceName",
|
|
75
122
|
mapper: {
|
|
76
|
-
required: true,
|
|
77
123
|
serializedName: "resourceName",
|
|
124
|
+
required: true,
|
|
78
125
|
type: {
|
|
79
126
|
name: "String"
|
|
80
127
|
}
|
|
81
128
|
}
|
|
82
129
|
};
|
|
83
|
-
|
|
84
|
-
|
|
130
|
+
|
|
131
|
+
export const parameters1: OperationParameter = {
|
|
132
|
+
parameterPath: "parameters",
|
|
133
|
+
mapper: SignalRResourceMapper
|
|
134
|
+
};
|
|
135
|
+
|
|
136
|
+
export const parameters2: OperationParameter = {
|
|
137
|
+
parameterPath: "parameters",
|
|
138
|
+
mapper: RegenerateKeyParametersMapper
|
|
139
|
+
};
|
|
140
|
+
|
|
141
|
+
export const privateEndpointConnectionName: OperationURLParameter = {
|
|
142
|
+
parameterPath: "privateEndpointConnectionName",
|
|
85
143
|
mapper: {
|
|
144
|
+
serializedName: "privateEndpointConnectionName",
|
|
86
145
|
required: true,
|
|
87
|
-
serializedName: "sharedPrivateLinkResourceName",
|
|
88
146
|
type: {
|
|
89
147
|
name: "String"
|
|
90
148
|
}
|
|
91
149
|
}
|
|
92
150
|
};
|
|
93
|
-
|
|
94
|
-
|
|
151
|
+
|
|
152
|
+
export const parameters3: OperationParameter = {
|
|
153
|
+
parameterPath: "parameters",
|
|
154
|
+
mapper: PrivateEndpointConnectionMapper
|
|
155
|
+
};
|
|
156
|
+
|
|
157
|
+
export const sharedPrivateLinkResourceName: OperationURLParameter = {
|
|
158
|
+
parameterPath: "sharedPrivateLinkResourceName",
|
|
95
159
|
mapper: {
|
|
160
|
+
serializedName: "sharedPrivateLinkResourceName",
|
|
96
161
|
required: true,
|
|
97
|
-
serializedName: "subscriptionId",
|
|
98
162
|
type: {
|
|
99
163
|
name: "String"
|
|
100
164
|
}
|
|
101
165
|
}
|
|
102
166
|
};
|
|
167
|
+
|
|
168
|
+
export const parameters4: OperationParameter = {
|
|
169
|
+
parameterPath: "parameters",
|
|
170
|
+
mapper: SharedPrivateLinkResourceMapper
|
|
171
|
+
};
|
package/src/operations/index.ts
CHANGED
|
@@ -3,8 +3,7 @@
|
|
|
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
9
|
export * from "./operations";
|
|
@@ -3,92 +3,109 @@
|
|
|
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
|
|
9
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
10
|
+
import { Operations } from "../operationsInterfaces";
|
|
11
|
+
import * as coreClient from "@azure/core-client";
|
|
12
|
+
import * as Mappers from "../models/mappers";
|
|
13
13
|
import * as Parameters from "../models/parameters";
|
|
14
|
-
import {
|
|
14
|
+
import { SignalRManagementClient } from "../signalRManagementClient";
|
|
15
|
+
import {
|
|
16
|
+
Operation,
|
|
17
|
+
OperationsListNextOptionalParams,
|
|
18
|
+
OperationsListOptionalParams,
|
|
19
|
+
OperationsListResponse,
|
|
20
|
+
OperationsListNextResponse
|
|
21
|
+
} from "../models";
|
|
15
22
|
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
23
|
+
/// <reference lib="esnext.asynciterable" />
|
|
24
|
+
/** Class containing Operations operations. */
|
|
25
|
+
export class OperationsImpl implements Operations {
|
|
26
|
+
private readonly client: SignalRManagementClient;
|
|
19
27
|
|
|
20
28
|
/**
|
|
21
|
-
*
|
|
22
|
-
* @param
|
|
29
|
+
* Initialize a new instance of the class Operations class.
|
|
30
|
+
* @param client Reference to the service client
|
|
23
31
|
*/
|
|
24
|
-
constructor(client:
|
|
32
|
+
constructor(client: SignalRManagementClient) {
|
|
25
33
|
this.client = client;
|
|
26
34
|
}
|
|
27
35
|
|
|
28
36
|
/**
|
|
29
37
|
* Lists all of the available REST API operations of the Microsoft.SignalRService provider.
|
|
30
|
-
* @param
|
|
31
|
-
* @returns Promise<Models.OperationsListResponse>
|
|
38
|
+
* @param options The options parameters.
|
|
32
39
|
*/
|
|
33
|
-
list(
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
list(options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.OperationList>, callback?: msRest.ServiceCallback<Models.OperationList>): Promise<Models.OperationsListResponse> {
|
|
44
|
-
return this.client.sendOperationRequest(
|
|
45
|
-
{
|
|
46
|
-
options
|
|
40
|
+
public list(
|
|
41
|
+
options?: OperationsListOptionalParams
|
|
42
|
+
): PagedAsyncIterableIterator<Operation> {
|
|
43
|
+
const iter = this.listPagingAll(options);
|
|
44
|
+
return {
|
|
45
|
+
next() {
|
|
46
|
+
return iter.next();
|
|
47
|
+
},
|
|
48
|
+
[Symbol.asyncIterator]() {
|
|
49
|
+
return this;
|
|
47
50
|
},
|
|
48
|
-
|
|
49
|
-
|
|
51
|
+
byPage: () => {
|
|
52
|
+
return this.listPagingPage(options);
|
|
53
|
+
}
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
private async *listPagingPage(
|
|
58
|
+
options?: OperationsListOptionalParams
|
|
59
|
+
): AsyncIterableIterator<Operation[]> {
|
|
60
|
+
let result = await this._list(options);
|
|
61
|
+
yield result.value || [];
|
|
62
|
+
let continuationToken = result.nextLink;
|
|
63
|
+
while (continuationToken) {
|
|
64
|
+
result = await this._listNext(continuationToken, options);
|
|
65
|
+
continuationToken = result.nextLink;
|
|
66
|
+
yield result.value || [];
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
private async *listPagingAll(
|
|
71
|
+
options?: OperationsListOptionalParams
|
|
72
|
+
): AsyncIterableIterator<Operation> {
|
|
73
|
+
for await (const page of this.listPagingPage(options)) {
|
|
74
|
+
yield* page;
|
|
75
|
+
}
|
|
50
76
|
}
|
|
51
77
|
|
|
52
78
|
/**
|
|
53
79
|
* Lists all of the available REST API operations of the Microsoft.SignalRService provider.
|
|
54
|
-
* @param
|
|
55
|
-
* @param [options] The optional parameters
|
|
56
|
-
* @returns Promise<Models.OperationsListNextResponse>
|
|
57
|
-
*/
|
|
58
|
-
listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise<Models.OperationsListNextResponse>;
|
|
59
|
-
/**
|
|
60
|
-
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
|
61
|
-
* @param callback The callback
|
|
80
|
+
* @param options The options parameters.
|
|
62
81
|
*/
|
|
63
|
-
|
|
82
|
+
private _list(
|
|
83
|
+
options?: OperationsListOptionalParams
|
|
84
|
+
): Promise<OperationsListResponse> {
|
|
85
|
+
return this.client.sendOperationRequest({ options }, listOperationSpec);
|
|
86
|
+
}
|
|
87
|
+
|
|
64
88
|
/**
|
|
65
|
-
*
|
|
66
|
-
* @param
|
|
67
|
-
* @param
|
|
89
|
+
* ListNext
|
|
90
|
+
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
91
|
+
* @param options The options parameters.
|
|
68
92
|
*/
|
|
69
|
-
|
|
70
|
-
|
|
93
|
+
private _listNext(
|
|
94
|
+
nextLink: string,
|
|
95
|
+
options?: OperationsListNextOptionalParams
|
|
96
|
+
): Promise<OperationsListNextResponse> {
|
|
71
97
|
return this.client.sendOperationRequest(
|
|
72
|
-
{
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
},
|
|
76
|
-
listNextOperationSpec,
|
|
77
|
-
callback) as Promise<Models.OperationsListNextResponse>;
|
|
98
|
+
{ nextLink, options },
|
|
99
|
+
listNextOperationSpec
|
|
100
|
+
);
|
|
78
101
|
}
|
|
79
102
|
}
|
|
80
|
-
|
|
81
103
|
// Operation Specifications
|
|
82
|
-
const serializer =
|
|
83
|
-
|
|
104
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
105
|
+
|
|
106
|
+
const listOperationSpec: coreClient.OperationSpec = {
|
|
107
|
+
path: "/providers/Microsoft.SignalRService/operations",
|
|
84
108
|
httpMethod: "GET",
|
|
85
|
-
path: "providers/Microsoft.SignalRService/operations",
|
|
86
|
-
queryParameters: [
|
|
87
|
-
Parameters.apiVersion
|
|
88
|
-
],
|
|
89
|
-
headerParameters: [
|
|
90
|
-
Parameters.acceptLanguage
|
|
91
|
-
],
|
|
92
109
|
responses: {
|
|
93
110
|
200: {
|
|
94
111
|
bodyMapper: Mappers.OperationList
|
|
@@ -97,22 +114,14 @@ const listOperationSpec: msRest.OperationSpec = {
|
|
|
97
114
|
bodyMapper: Mappers.ErrorResponse
|
|
98
115
|
}
|
|
99
116
|
},
|
|
117
|
+
queryParameters: [Parameters.apiVersion],
|
|
118
|
+
urlParameters: [Parameters.$host],
|
|
119
|
+
headerParameters: [Parameters.accept],
|
|
100
120
|
serializer
|
|
101
121
|
};
|
|
102
|
-
|
|
103
|
-
const listNextOperationSpec: msRest.OperationSpec = {
|
|
104
|
-
httpMethod: "GET",
|
|
105
|
-
baseUrl: "https://management.azure.com",
|
|
122
|
+
const listNextOperationSpec: coreClient.OperationSpec = {
|
|
106
123
|
path: "{nextLink}",
|
|
107
|
-
|
|
108
|
-
Parameters.nextPageLink
|
|
109
|
-
],
|
|
110
|
-
queryParameters: [
|
|
111
|
-
Parameters.apiVersion
|
|
112
|
-
],
|
|
113
|
-
headerParameters: [
|
|
114
|
-
Parameters.acceptLanguage
|
|
115
|
-
],
|
|
124
|
+
httpMethod: "GET",
|
|
116
125
|
responses: {
|
|
117
126
|
200: {
|
|
118
127
|
bodyMapper: Mappers.OperationList
|
|
@@ -121,5 +130,8 @@ const listNextOperationSpec: msRest.OperationSpec = {
|
|
|
121
130
|
bodyMapper: Mappers.ErrorResponse
|
|
122
131
|
}
|
|
123
132
|
},
|
|
133
|
+
queryParameters: [Parameters.apiVersion],
|
|
134
|
+
urlParameters: [Parameters.$host, Parameters.nextLink],
|
|
135
|
+
headerParameters: [Parameters.accept],
|
|
124
136
|
serializer
|
|
125
137
|
};
|