@azure/arm-webpubsub 1.0.0-beta.1 → 1.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 +4 -18
- package/README.md +16 -9
- package/dist/index.js +1092 -480
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/dist-esm/src/index.d.ts +5 -0
- package/dist-esm/src/index.d.ts.map +1 -0
- package/{esm → dist-esm/src}/index.js +0 -1
- package/dist-esm/src/index.js.map +1 -0
- package/{esm → dist-esm/src}/lroImpl.d.ts +0 -0
- package/dist-esm/src/lroImpl.d.ts.map +1 -0
- package/{esm → dist-esm/src}/lroImpl.js +0 -0
- package/dist-esm/src/lroImpl.js.map +1 -0
- package/{esm → dist-esm/src}/models/index.d.ts +322 -156
- package/dist-esm/src/models/index.d.ts.map +1 -0
- package/{esm → dist-esm/src}/models/index.js +14 -6
- package/dist-esm/src/models/index.js.map +1 -0
- package/{esm → dist-esm/src}/models/mappers.d.ts +16 -8
- package/dist-esm/src/models/mappers.d.ts.map +1 -0
- package/{esm → dist-esm/src}/models/mappers.js +447 -206
- package/dist-esm/src/models/mappers.js.map +1 -0
- package/{esm → dist-esm/src}/models/parameters.d.ts +4 -2
- package/dist-esm/src/models/parameters.d.ts.map +1 -0
- package/{esm → dist-esm/src}/models/parameters.js +18 -4
- package/dist-esm/src/models/parameters.js.map +1 -0
- package/{esm/operationsInterfaces → dist-esm/src/operations}/index.d.ts +1 -0
- package/dist-esm/src/operations/index.d.ts.map +1 -0
- package/{esm/operationsInterfaces → dist-esm/src/operations}/index.js +1 -0
- package/dist-esm/src/operations/index.js.map +1 -0
- package/{esm → dist-esm/src}/operations/operations.d.ts +3 -4
- package/dist-esm/src/operations/operations.d.ts.map +1 -0
- package/{esm → dist-esm/src}/operations/operations.js +1 -2
- package/dist-esm/src/operations/operations.js.map +1 -0
- package/{esm → dist-esm/src}/operations/usages.d.ts +3 -4
- package/dist-esm/src/operations/usages.d.ts.map +1 -0
- package/{esm → dist-esm/src}/operations/usages.js +1 -2
- package/dist-esm/src/operations/usages.js.map +1 -0
- package/{esm → dist-esm/src}/operations/webPubSub.d.ts +12 -5
- package/dist-esm/src/operations/webPubSub.d.ts.map +1 -0
- package/{esm → dist-esm/src}/operations/webPubSub.js +32 -2
- package/dist-esm/src/operations/webPubSub.js.map +1 -0
- package/dist-esm/src/operations/webPubSubHubs.d.ts +89 -0
- package/dist-esm/src/operations/webPubSubHubs.d.ts.map +1 -0
- package/dist-esm/src/operations/webPubSubHubs.js +339 -0
- package/dist-esm/src/operations/webPubSubHubs.js.map +1 -0
- package/{esm → dist-esm/src}/operations/webPubSubPrivateEndpointConnections.d.ts +3 -4
- package/dist-esm/src/operations/webPubSubPrivateEndpointConnections.d.ts.map +1 -0
- package/{esm → dist-esm/src}/operations/webPubSubPrivateEndpointConnections.js +2 -3
- package/dist-esm/src/operations/webPubSubPrivateEndpointConnections.js.map +1 -0
- package/{esm → dist-esm/src}/operations/webPubSubPrivateLinkResources.d.ts +3 -4
- package/dist-esm/src/operations/webPubSubPrivateLinkResources.d.ts.map +1 -0
- package/{esm → dist-esm/src}/operations/webPubSubPrivateLinkResources.js +1 -2
- package/dist-esm/src/operations/webPubSubPrivateLinkResources.js.map +1 -0
- package/{esm → dist-esm/src}/operations/webPubSubSharedPrivateLinkResources.d.ts +3 -4
- package/dist-esm/src/operations/webPubSubSharedPrivateLinkResources.d.ts.map +1 -0
- package/{esm → dist-esm/src}/operations/webPubSubSharedPrivateLinkResources.js +2 -3
- package/dist-esm/src/operations/webPubSubSharedPrivateLinkResources.js.map +1 -0
- package/{esm/operations → dist-esm/src/operationsInterfaces}/index.d.ts +1 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
- package/{esm/operations → dist-esm/src/operationsInterfaces}/index.js +1 -0
- package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
- package/{esm → dist-esm/src}/operationsInterfaces/operations.d.ts +0 -1
- package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -0
- package/{esm → dist-esm/src}/operationsInterfaces/operations.js +1 -1
- package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
- package/{esm → dist-esm/src}/operationsInterfaces/usages.d.ts +0 -1
- package/dist-esm/src/operationsInterfaces/usages.d.ts.map +1 -0
- package/{esm → dist-esm/src}/operationsInterfaces/usages.js +1 -1
- package/dist-esm/src/operationsInterfaces/usages.js.map +1 -0
- package/{esm → dist-esm/src}/operationsInterfaces/webPubSub.d.ts +9 -2
- package/dist-esm/src/operationsInterfaces/webPubSub.d.ts.map +1 -0
- package/{esm → dist-esm/src}/operationsInterfaces/webPubSub.js +1 -1
- package/dist-esm/src/operationsInterfaces/webPubSub.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/webPubSubHubs.d.ts +62 -0
- package/dist-esm/src/operationsInterfaces/webPubSubHubs.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/webPubSubHubs.js +9 -0
- package/dist-esm/src/operationsInterfaces/webPubSubHubs.js.map +1 -0
- package/{esm → dist-esm/src}/operationsInterfaces/webPubSubPrivateEndpointConnections.d.ts +0 -1
- package/dist-esm/src/operationsInterfaces/webPubSubPrivateEndpointConnections.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/webPubSubPrivateEndpointConnections.js +9 -0
- package/dist-esm/src/operationsInterfaces/webPubSubPrivateEndpointConnections.js.map +1 -0
- package/{esm → dist-esm/src}/operationsInterfaces/webPubSubPrivateLinkResources.d.ts +0 -1
- package/dist-esm/src/operationsInterfaces/webPubSubPrivateLinkResources.d.ts.map +1 -0
- package/{esm → dist-esm/src}/operationsInterfaces/webPubSubPrivateLinkResources.js +1 -1
- package/dist-esm/src/operationsInterfaces/webPubSubPrivateLinkResources.js.map +1 -0
- package/{esm → dist-esm/src}/operationsInterfaces/webPubSubSharedPrivateLinkResources.d.ts +0 -1
- package/dist-esm/src/operationsInterfaces/webPubSubSharedPrivateLinkResources.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/webPubSubSharedPrivateLinkResources.js +9 -0
- package/dist-esm/src/operationsInterfaces/webPubSubSharedPrivateLinkResources.js.map +1 -0
- package/{esm → dist-esm/src}/webPubSubManagementClient.d.ts +7 -3
- package/dist-esm/src/webPubSubManagementClient.d.ts.map +1 -0
- package/{esm/webPubSubManagementClientContext.js → dist-esm/src/webPubSubManagementClient.js} +13 -5
- package/dist-esm/src/webPubSubManagementClient.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 +27 -33
- package/review/arm-webpubsub.api.md +150 -33
- package/src/index.ts +0 -1
- package/src/models/index.ts +354 -163
- package/src/models/mappers.ts +484 -229
- package/src/models/parameters.ts +20 -3
- package/src/operations/index.ts +1 -0
- package/src/operations/operations.ts +4 -5
- package/src/operations/usages.ts +4 -5
- package/src/operations/webPubSub.ts +46 -5
- package/src/operations/webPubSubHubs.ts +472 -0
- package/src/operations/webPubSubPrivateEndpointConnections.ts +5 -6
- package/src/operations/webPubSubPrivateLinkResources.ts +4 -5
- package/src/operations/webPubSubSharedPrivateLinkResources.ts +5 -6
- package/src/operationsInterfaces/index.ts +1 -0
- package/src/operationsInterfaces/operations.ts +0 -1
- package/src/operationsInterfaces/usages.ts +0 -1
- package/src/operationsInterfaces/webPubSub.ts +15 -2
- package/src/operationsInterfaces/webPubSubHubs.ts +115 -0
- package/src/operationsInterfaces/webPubSubPrivateEndpointConnections.ts +0 -1
- package/src/operationsInterfaces/webPubSubPrivateLinkResources.ts +0 -1
- package/src/operationsInterfaces/webPubSubSharedPrivateLinkResources.ts +0 -1
- package/src/webPubSubManagementClient.ts +50 -3
- package/tsconfig.json +2 -2
- package/{esm/index.d.ts → types/arm-webpubsub.d.ts} +327 -82
- package/types/tsdoc-metadata.json +11 -0
- package/esm/index.d.ts.map +0 -1
- package/esm/index.js.map +0 -1
- package/esm/lroImpl.d.ts.map +0 -1
- package/esm/lroImpl.js.map +0 -1
- package/esm/models/index.d.ts.map +0 -1
- package/esm/models/index.js.map +0 -1
- package/esm/models/mappers.d.ts.map +0 -1
- package/esm/models/mappers.js.map +0 -1
- package/esm/models/parameters.d.ts.map +0 -1
- package/esm/models/parameters.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.map +0 -1
- package/esm/operations/operations.js.map +0 -1
- package/esm/operations/usages.d.ts.map +0 -1
- package/esm/operations/usages.js.map +0 -1
- package/esm/operations/webPubSub.d.ts.map +0 -1
- package/esm/operations/webPubSub.js.map +0 -1
- package/esm/operations/webPubSubPrivateEndpointConnections.d.ts.map +0 -1
- package/esm/operations/webPubSubPrivateEndpointConnections.js.map +0 -1
- package/esm/operations/webPubSubPrivateLinkResources.d.ts.map +0 -1
- package/esm/operations/webPubSubPrivateLinkResources.js.map +0 -1
- package/esm/operations/webPubSubSharedPrivateLinkResources.d.ts.map +0 -1
- package/esm/operations/webPubSubSharedPrivateLinkResources.js.map +0 -1
- package/esm/operationsInterfaces/index.d.ts.map +0 -1
- package/esm/operationsInterfaces/index.js.map +0 -1
- package/esm/operationsInterfaces/operations.d.ts.map +0 -1
- package/esm/operationsInterfaces/operations.js.map +0 -1
- package/esm/operationsInterfaces/usages.d.ts.map +0 -1
- package/esm/operationsInterfaces/usages.js.map +0 -1
- package/esm/operationsInterfaces/webPubSub.d.ts.map +0 -1
- package/esm/operationsInterfaces/webPubSub.js.map +0 -1
- package/esm/operationsInterfaces/webPubSubPrivateEndpointConnections.d.ts.map +0 -1
- package/esm/operationsInterfaces/webPubSubPrivateEndpointConnections.js +0 -9
- package/esm/operationsInterfaces/webPubSubPrivateEndpointConnections.js.map +0 -1
- package/esm/operationsInterfaces/webPubSubPrivateLinkResources.d.ts.map +0 -1
- package/esm/operationsInterfaces/webPubSubPrivateLinkResources.js.map +0 -1
- package/esm/operationsInterfaces/webPubSubSharedPrivateLinkResources.d.ts.map +0 -1
- package/esm/operationsInterfaces/webPubSubSharedPrivateLinkResources.js +0 -9
- package/esm/operationsInterfaces/webPubSubSharedPrivateLinkResources.js.map +0 -1
- package/esm/webPubSubManagementClient.d.ts.map +0 -1
- package/esm/webPubSubManagementClient.js +0 -28
- package/esm/webPubSubManagementClient.js.map +0 -1
- package/esm/webPubSubManagementClientContext.d.ts +0 -17
- package/esm/webPubSubManagementClientContext.d.ts.map +0 -1
- package/esm/webPubSubManagementClientContext.js.map +0 -1
- package/src/webPubSubManagementClientContext.ts +0 -71
|
@@ -6,13 +6,12 @@
|
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
import "@azure/core-paging";
|
|
10
9
|
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
11
10
|
import { WebPubSubPrivateEndpointConnections } from "../operationsInterfaces";
|
|
12
11
|
import * as coreClient from "@azure/core-client";
|
|
13
12
|
import * as Mappers from "../models/mappers";
|
|
14
13
|
import * as Parameters from "../models/parameters";
|
|
15
|
-
import {
|
|
14
|
+
import { WebPubSubManagementClient } from "../webPubSubManagementClient";
|
|
16
15
|
import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro";
|
|
17
16
|
import { LroImpl } from "../lroImpl";
|
|
18
17
|
import {
|
|
@@ -29,16 +28,16 @@ import {
|
|
|
29
28
|
} from "../models";
|
|
30
29
|
|
|
31
30
|
/// <reference lib="esnext.asynciterable" />
|
|
32
|
-
/** Class
|
|
31
|
+
/** Class containing WebPubSubPrivateEndpointConnections operations. */
|
|
33
32
|
export class WebPubSubPrivateEndpointConnectionsImpl
|
|
34
33
|
implements WebPubSubPrivateEndpointConnections {
|
|
35
|
-
private readonly client:
|
|
34
|
+
private readonly client: WebPubSubManagementClient;
|
|
36
35
|
|
|
37
36
|
/**
|
|
38
37
|
* Initialize a new instance of the class WebPubSubPrivateEndpointConnections class.
|
|
39
38
|
* @param client Reference to the service client
|
|
40
39
|
*/
|
|
41
|
-
constructor(client:
|
|
40
|
+
constructor(client: WebPubSubManagementClient) {
|
|
42
41
|
this.client = client;
|
|
43
42
|
}
|
|
44
43
|
|
|
@@ -345,7 +344,7 @@ const updateOperationSpec: coreClient.OperationSpec = {
|
|
|
345
344
|
bodyMapper: Mappers.ErrorResponse
|
|
346
345
|
}
|
|
347
346
|
},
|
|
348
|
-
requestBody: Parameters.
|
|
347
|
+
requestBody: Parameters.parameters4,
|
|
349
348
|
queryParameters: [Parameters.apiVersion],
|
|
350
349
|
urlParameters: [
|
|
351
350
|
Parameters.$host,
|
|
@@ -6,13 +6,12 @@
|
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
import "@azure/core-paging";
|
|
10
9
|
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
11
10
|
import { WebPubSubPrivateLinkResources } from "../operationsInterfaces";
|
|
12
11
|
import * as coreClient from "@azure/core-client";
|
|
13
12
|
import * as Mappers from "../models/mappers";
|
|
14
13
|
import * as Parameters from "../models/parameters";
|
|
15
|
-
import {
|
|
14
|
+
import { WebPubSubManagementClient } from "../webPubSubManagementClient";
|
|
16
15
|
import {
|
|
17
16
|
PrivateLinkResource,
|
|
18
17
|
WebPubSubPrivateLinkResourcesListNextOptionalParams,
|
|
@@ -22,16 +21,16 @@ import {
|
|
|
22
21
|
} from "../models";
|
|
23
22
|
|
|
24
23
|
/// <reference lib="esnext.asynciterable" />
|
|
25
|
-
/** Class
|
|
24
|
+
/** Class containing WebPubSubPrivateLinkResources operations. */
|
|
26
25
|
export class WebPubSubPrivateLinkResourcesImpl
|
|
27
26
|
implements WebPubSubPrivateLinkResources {
|
|
28
|
-
private readonly client:
|
|
27
|
+
private readonly client: WebPubSubManagementClient;
|
|
29
28
|
|
|
30
29
|
/**
|
|
31
30
|
* Initialize a new instance of the class WebPubSubPrivateLinkResources class.
|
|
32
31
|
* @param client Reference to the service client
|
|
33
32
|
*/
|
|
34
|
-
constructor(client:
|
|
33
|
+
constructor(client: WebPubSubManagementClient) {
|
|
35
34
|
this.client = client;
|
|
36
35
|
}
|
|
37
36
|
|
|
@@ -6,13 +6,12 @@
|
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
import "@azure/core-paging";
|
|
10
9
|
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
11
10
|
import { WebPubSubSharedPrivateLinkResources } from "../operationsInterfaces";
|
|
12
11
|
import * as coreClient from "@azure/core-client";
|
|
13
12
|
import * as Mappers from "../models/mappers";
|
|
14
13
|
import * as Parameters from "../models/parameters";
|
|
15
|
-
import {
|
|
14
|
+
import { WebPubSubManagementClient } from "../webPubSubManagementClient";
|
|
16
15
|
import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro";
|
|
17
16
|
import { LroImpl } from "../lroImpl";
|
|
18
17
|
import {
|
|
@@ -29,16 +28,16 @@ import {
|
|
|
29
28
|
} from "../models";
|
|
30
29
|
|
|
31
30
|
/// <reference lib="esnext.asynciterable" />
|
|
32
|
-
/** Class
|
|
31
|
+
/** Class containing WebPubSubSharedPrivateLinkResources operations. */
|
|
33
32
|
export class WebPubSubSharedPrivateLinkResourcesImpl
|
|
34
33
|
implements WebPubSubSharedPrivateLinkResources {
|
|
35
|
-
private readonly client:
|
|
34
|
+
private readonly client: WebPubSubManagementClient;
|
|
36
35
|
|
|
37
36
|
/**
|
|
38
37
|
* Initialize a new instance of the class WebPubSubSharedPrivateLinkResources class.
|
|
39
38
|
* @param client Reference to the service client
|
|
40
39
|
*/
|
|
41
|
-
constructor(client:
|
|
40
|
+
constructor(client: WebPubSubManagementClient) {
|
|
42
41
|
this.client = client;
|
|
43
42
|
}
|
|
44
43
|
|
|
@@ -431,7 +430,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = {
|
|
|
431
430
|
bodyMapper: Mappers.ErrorResponse
|
|
432
431
|
}
|
|
433
432
|
},
|
|
434
|
-
requestBody: Parameters.
|
|
433
|
+
requestBody: Parameters.parameters5,
|
|
435
434
|
queryParameters: [Parameters.apiVersion],
|
|
436
435
|
urlParameters: [
|
|
437
436
|
Parameters.$host,
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
export * from "./operations";
|
|
10
10
|
export * from "./webPubSub";
|
|
11
11
|
export * from "./usages";
|
|
12
|
+
export * from "./webPubSubHubs";
|
|
12
13
|
export * from "./webPubSubPrivateEndpointConnections";
|
|
13
14
|
export * from "./webPubSubPrivateLinkResources";
|
|
14
15
|
export * from "./webPubSubSharedPrivateLinkResources";
|
|
@@ -6,7 +6,6 @@
|
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
import "@azure/core-paging";
|
|
10
9
|
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
11
10
|
import { SignalRServiceUsage, UsagesListOptionalParams } from "../models";
|
|
12
11
|
|
|
@@ -6,7 +6,6 @@
|
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
import "@azure/core-paging";
|
|
10
9
|
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
11
10
|
import { PollerLike, PollOperationState } from "@azure/core-lro";
|
|
12
11
|
import {
|
|
@@ -28,7 +27,9 @@ import {
|
|
|
28
27
|
RegenerateKeyParameters,
|
|
29
28
|
WebPubSubRegenerateKeyOptionalParams,
|
|
30
29
|
WebPubSubRegenerateKeyResponse,
|
|
31
|
-
WebPubSubRestartOptionalParams
|
|
30
|
+
WebPubSubRestartOptionalParams,
|
|
31
|
+
WebPubSubListSkusOptionalParams,
|
|
32
|
+
WebPubSubListSkusResponse
|
|
32
33
|
} from "../models";
|
|
33
34
|
|
|
34
35
|
/// <reference lib="esnext.asynciterable" />
|
|
@@ -235,4 +236,16 @@ export interface WebPubSub {
|
|
|
235
236
|
resourceName: string,
|
|
236
237
|
options?: WebPubSubRestartOptionalParams
|
|
237
238
|
): Promise<void>;
|
|
239
|
+
/**
|
|
240
|
+
* List all available skus of the resource.
|
|
241
|
+
* @param resourceGroupName The name of the resource group that contains the resource. You can obtain
|
|
242
|
+
* this value from the Azure Resource Manager API or the portal.
|
|
243
|
+
* @param resourceName The name of the resource.
|
|
244
|
+
* @param options The options parameters.
|
|
245
|
+
*/
|
|
246
|
+
listSkus(
|
|
247
|
+
resourceGroupName: string,
|
|
248
|
+
resourceName: string,
|
|
249
|
+
options?: WebPubSubListSkusOptionalParams
|
|
250
|
+
): Promise<WebPubSubListSkusResponse>;
|
|
238
251
|
}
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
10
|
+
import { PollerLike, PollOperationState } from "@azure/core-lro";
|
|
11
|
+
import {
|
|
12
|
+
WebPubSubHub,
|
|
13
|
+
WebPubSubHubsListOptionalParams,
|
|
14
|
+
WebPubSubHubsGetOptionalParams,
|
|
15
|
+
WebPubSubHubsGetResponse,
|
|
16
|
+
WebPubSubHubsCreateOrUpdateOptionalParams,
|
|
17
|
+
WebPubSubHubsCreateOrUpdateResponse,
|
|
18
|
+
WebPubSubHubsDeleteOptionalParams
|
|
19
|
+
} from "../models";
|
|
20
|
+
|
|
21
|
+
/// <reference lib="esnext.asynciterable" />
|
|
22
|
+
/** Interface representing a WebPubSubHubs. */
|
|
23
|
+
export interface WebPubSubHubs {
|
|
24
|
+
/**
|
|
25
|
+
* List hub settings.
|
|
26
|
+
* @param resourceGroupName The name of the resource group that contains the resource. You can obtain
|
|
27
|
+
* this value from the Azure Resource Manager API or the portal.
|
|
28
|
+
* @param resourceName The name of the resource.
|
|
29
|
+
* @param options The options parameters.
|
|
30
|
+
*/
|
|
31
|
+
list(
|
|
32
|
+
resourceGroupName: string,
|
|
33
|
+
resourceName: string,
|
|
34
|
+
options?: WebPubSubHubsListOptionalParams
|
|
35
|
+
): PagedAsyncIterableIterator<WebPubSubHub>;
|
|
36
|
+
/**
|
|
37
|
+
* Get a hub setting.
|
|
38
|
+
* @param hubName The hub name.
|
|
39
|
+
* @param resourceGroupName The name of the resource group that contains the resource. You can obtain
|
|
40
|
+
* this value from the Azure Resource Manager API or the portal.
|
|
41
|
+
* @param resourceName The name of the resource.
|
|
42
|
+
* @param options The options parameters.
|
|
43
|
+
*/
|
|
44
|
+
get(
|
|
45
|
+
hubName: string,
|
|
46
|
+
resourceGroupName: string,
|
|
47
|
+
resourceName: string,
|
|
48
|
+
options?: WebPubSubHubsGetOptionalParams
|
|
49
|
+
): Promise<WebPubSubHubsGetResponse>;
|
|
50
|
+
/**
|
|
51
|
+
* Create or update a hub setting.
|
|
52
|
+
* @param hubName The hub name.
|
|
53
|
+
* @param resourceGroupName The name of the resource group that contains the resource. You can obtain
|
|
54
|
+
* this value from the Azure Resource Manager API or the portal.
|
|
55
|
+
* @param resourceName The name of the resource.
|
|
56
|
+
* @param parameters The resource of WebPubSubHub and its properties
|
|
57
|
+
* @param options The options parameters.
|
|
58
|
+
*/
|
|
59
|
+
beginCreateOrUpdate(
|
|
60
|
+
hubName: string,
|
|
61
|
+
resourceGroupName: string,
|
|
62
|
+
resourceName: string,
|
|
63
|
+
parameters: WebPubSubHub,
|
|
64
|
+
options?: WebPubSubHubsCreateOrUpdateOptionalParams
|
|
65
|
+
): Promise<
|
|
66
|
+
PollerLike<
|
|
67
|
+
PollOperationState<WebPubSubHubsCreateOrUpdateResponse>,
|
|
68
|
+
WebPubSubHubsCreateOrUpdateResponse
|
|
69
|
+
>
|
|
70
|
+
>;
|
|
71
|
+
/**
|
|
72
|
+
* Create or update a hub setting.
|
|
73
|
+
* @param hubName The hub name.
|
|
74
|
+
* @param resourceGroupName The name of the resource group that contains the resource. You can obtain
|
|
75
|
+
* this value from the Azure Resource Manager API or the portal.
|
|
76
|
+
* @param resourceName The name of the resource.
|
|
77
|
+
* @param parameters The resource of WebPubSubHub and its properties
|
|
78
|
+
* @param options The options parameters.
|
|
79
|
+
*/
|
|
80
|
+
beginCreateOrUpdateAndWait(
|
|
81
|
+
hubName: string,
|
|
82
|
+
resourceGroupName: string,
|
|
83
|
+
resourceName: string,
|
|
84
|
+
parameters: WebPubSubHub,
|
|
85
|
+
options?: WebPubSubHubsCreateOrUpdateOptionalParams
|
|
86
|
+
): Promise<WebPubSubHubsCreateOrUpdateResponse>;
|
|
87
|
+
/**
|
|
88
|
+
* Delete a hub setting.
|
|
89
|
+
* @param hubName The hub name.
|
|
90
|
+
* @param resourceGroupName The name of the resource group that contains the resource. You can obtain
|
|
91
|
+
* this value from the Azure Resource Manager API or the portal.
|
|
92
|
+
* @param resourceName The name of the resource.
|
|
93
|
+
* @param options The options parameters.
|
|
94
|
+
*/
|
|
95
|
+
beginDelete(
|
|
96
|
+
hubName: string,
|
|
97
|
+
resourceGroupName: string,
|
|
98
|
+
resourceName: string,
|
|
99
|
+
options?: WebPubSubHubsDeleteOptionalParams
|
|
100
|
+
): Promise<PollerLike<PollOperationState<void>, void>>;
|
|
101
|
+
/**
|
|
102
|
+
* Delete a hub setting.
|
|
103
|
+
* @param hubName The hub name.
|
|
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 resourceName The name of the resource.
|
|
107
|
+
* @param options The options parameters.
|
|
108
|
+
*/
|
|
109
|
+
beginDeleteAndWait(
|
|
110
|
+
hubName: string,
|
|
111
|
+
resourceGroupName: string,
|
|
112
|
+
resourceName: string,
|
|
113
|
+
options?: WebPubSubHubsDeleteOptionalParams
|
|
114
|
+
): Promise<void>;
|
|
115
|
+
}
|
|
@@ -6,7 +6,6 @@
|
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
import "@azure/core-paging";
|
|
10
9
|
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
11
10
|
import { PollerLike, PollOperationState } from "@azure/core-lro";
|
|
12
11
|
import {
|
|
@@ -6,7 +6,6 @@
|
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
import "@azure/core-paging";
|
|
10
9
|
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
11
10
|
import { PollerLike, PollOperationState } from "@azure/core-lro";
|
|
12
11
|
import {
|
|
@@ -6,11 +6,13 @@
|
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
+
import * as coreClient from "@azure/core-client";
|
|
9
10
|
import * as coreAuth from "@azure/core-auth";
|
|
10
11
|
import {
|
|
11
12
|
OperationsImpl,
|
|
12
13
|
WebPubSubImpl,
|
|
13
14
|
UsagesImpl,
|
|
15
|
+
WebPubSubHubsImpl,
|
|
14
16
|
WebPubSubPrivateEndpointConnectionsImpl,
|
|
15
17
|
WebPubSubPrivateLinkResourcesImpl,
|
|
16
18
|
WebPubSubSharedPrivateLinkResourcesImpl
|
|
@@ -19,14 +21,18 @@ import {
|
|
|
19
21
|
Operations,
|
|
20
22
|
WebPubSub,
|
|
21
23
|
Usages,
|
|
24
|
+
WebPubSubHubs,
|
|
22
25
|
WebPubSubPrivateEndpointConnections,
|
|
23
26
|
WebPubSubPrivateLinkResources,
|
|
24
27
|
WebPubSubSharedPrivateLinkResources
|
|
25
28
|
} from "./operationsInterfaces";
|
|
26
|
-
import { WebPubSubManagementClientContext } from "./webPubSubManagementClientContext";
|
|
27
29
|
import { WebPubSubManagementClientOptionalParams } from "./models";
|
|
28
30
|
|
|
29
|
-
export class WebPubSubManagementClient extends
|
|
31
|
+
export class WebPubSubManagementClient extends coreClient.ServiceClient {
|
|
32
|
+
$host: string;
|
|
33
|
+
apiVersion: string;
|
|
34
|
+
subscriptionId: string;
|
|
35
|
+
|
|
30
36
|
/**
|
|
31
37
|
* Initializes a new instance of the WebPubSubManagementClient class.
|
|
32
38
|
* @param credentials Subscription credentials which uniquely identify client subscription.
|
|
@@ -39,10 +45,50 @@ export class WebPubSubManagementClient extends WebPubSubManagementClientContext
|
|
|
39
45
|
subscriptionId: string,
|
|
40
46
|
options?: WebPubSubManagementClientOptionalParams
|
|
41
47
|
) {
|
|
42
|
-
|
|
48
|
+
if (credentials === undefined) {
|
|
49
|
+
throw new Error("'credentials' cannot be null");
|
|
50
|
+
}
|
|
51
|
+
if (subscriptionId === undefined) {
|
|
52
|
+
throw new Error("'subscriptionId' cannot be null");
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
// Initializing default values for options
|
|
56
|
+
if (!options) {
|
|
57
|
+
options = {};
|
|
58
|
+
}
|
|
59
|
+
const defaults: WebPubSubManagementClientOptionalParams = {
|
|
60
|
+
requestContentType: "application/json; charset=utf-8",
|
|
61
|
+
credential: credentials
|
|
62
|
+
};
|
|
63
|
+
|
|
64
|
+
const packageDetails = `azsdk-js-arm-webpubsub/1.0.0`;
|
|
65
|
+
const userAgentPrefix =
|
|
66
|
+
options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
67
|
+
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
68
|
+
: `${packageDetails}`;
|
|
69
|
+
|
|
70
|
+
if (!options.credentialScopes) {
|
|
71
|
+
options.credentialScopes = ["https://management.azure.com/.default"];
|
|
72
|
+
}
|
|
73
|
+
const optionsWithDefaults = {
|
|
74
|
+
...defaults,
|
|
75
|
+
...options,
|
|
76
|
+
userAgentOptions: {
|
|
77
|
+
userAgentPrefix
|
|
78
|
+
},
|
|
79
|
+
baseUri: options.endpoint || "https://management.azure.com"
|
|
80
|
+
};
|
|
81
|
+
super(optionsWithDefaults);
|
|
82
|
+
// Parameter assignments
|
|
83
|
+
this.subscriptionId = subscriptionId;
|
|
84
|
+
|
|
85
|
+
// Assigning values to Constant parameters
|
|
86
|
+
this.$host = options.$host || "https://management.azure.com";
|
|
87
|
+
this.apiVersion = options.apiVersion || "2021-10-01";
|
|
43
88
|
this.operations = new OperationsImpl(this);
|
|
44
89
|
this.webPubSub = new WebPubSubImpl(this);
|
|
45
90
|
this.usages = new UsagesImpl(this);
|
|
91
|
+
this.webPubSubHubs = new WebPubSubHubsImpl(this);
|
|
46
92
|
this.webPubSubPrivateEndpointConnections = new WebPubSubPrivateEndpointConnectionsImpl(
|
|
47
93
|
this
|
|
48
94
|
);
|
|
@@ -57,6 +103,7 @@ export class WebPubSubManagementClient extends WebPubSubManagementClientContext
|
|
|
57
103
|
operations: Operations;
|
|
58
104
|
webPubSub: WebPubSub;
|
|
59
105
|
usages: Usages;
|
|
106
|
+
webPubSubHubs: WebPubSubHubs;
|
|
60
107
|
webPubSubPrivateEndpointConnections: WebPubSubPrivateEndpointConnections;
|
|
61
108
|
webPubSubPrivateLinkResources: WebPubSubPrivateLinkResources;
|
|
62
109
|
webPubSubSharedPrivateLinkResources: WebPubSubSharedPrivateLinkResources;
|
package/tsconfig.json
CHANGED
|
@@ -11,9 +11,9 @@
|
|
|
11
11
|
"forceConsistentCasingInFileNames": true,
|
|
12
12
|
"lib": ["es6", "dom"],
|
|
13
13
|
"declaration": true,
|
|
14
|
-
"outDir": "./esm",
|
|
14
|
+
"outDir": "./dist-esm",
|
|
15
15
|
"importHelpers": true
|
|
16
16
|
},
|
|
17
|
-
"include": ["./src/**/*.ts"],
|
|
17
|
+
"include": ["./src/**/*.ts", "./test/**/*.ts"],
|
|
18
18
|
"exclude": ["node_modules"]
|
|
19
19
|
}
|