Skip to content

Commit 6aa0c9b

Browse files
authored
[mgmt] webpubsub release (#31073)
Azure/sdk-release-request#5448 breaking caused by Azure/azure-rest-api-specs#29086
1 parent f732e63 commit 6aa0c9b

File tree

179 files changed

+3457
-2316
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

179 files changed

+3457
-2316
lines changed

sdk/web-pubsub/arm-webpubsub/CHANGELOG.md

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,63 @@
11
# Release History
22

3+
## 1.2.0 (2024-09-11)
4+
5+
### Features Added
6+
7+
- Added operation group WebPubSubReplicas
8+
- Added operation group WebPubSubReplicaSharedPrivateLinkResources
9+
- Added operation WebPubSub.listReplicaSkus
10+
- Added Interface IPRule
11+
- Added Interface Replica
12+
- Added Interface ReplicaList
13+
- Added Interface WebPubSubListReplicaSkusOptionalParams
14+
- Added Interface WebPubSubRegenerateKeyHeaders
15+
- Added Interface WebPubSubReplicasCreateOrUpdateOptionalParams
16+
- Added Interface WebPubSubReplicasDeleteOptionalParams
17+
- Added Interface WebPubSubReplicasGetOptionalParams
18+
- Added Interface WebPubSubReplicaSharedPrivateLinkResourcesCreateOrUpdateOptionalParams
19+
- Added Interface WebPubSubReplicaSharedPrivateLinkResourcesGetOptionalParams
20+
- Added Interface WebPubSubReplicaSharedPrivateLinkResourcesListNextOptionalParams
21+
- Added Interface WebPubSubReplicaSharedPrivateLinkResourcesListOptionalParams
22+
- Added Interface WebPubSubReplicasListNextOptionalParams
23+
- Added Interface WebPubSubReplicasListOptionalParams
24+
- Added Interface WebPubSubReplicasRestartHeaders
25+
- Added Interface WebPubSubReplicasRestartOptionalParams
26+
- Added Interface WebPubSubReplicasUpdateHeaders
27+
- Added Interface WebPubSubReplicasUpdateOptionalParams
28+
- Added Interface WebPubSubRestartHeaders
29+
- Added Interface WebPubSubSocketIOSettings
30+
- Added Interface WebPubSubUpdateHeaders
31+
- Added Type Alias ServiceKind
32+
- Added Type Alias WebPubSubListReplicaSkusResponse
33+
- Added Type Alias WebPubSubReplicasCreateOrUpdateResponse
34+
- Added Type Alias WebPubSubReplicasGetResponse
35+
- Added Type Alias WebPubSubReplicaSharedPrivateLinkResourcesCreateOrUpdateResponse
36+
- Added Type Alias WebPubSubReplicaSharedPrivateLinkResourcesGetResponse
37+
- Added Type Alias WebPubSubReplicaSharedPrivateLinkResourcesListNextResponse
38+
- Added Type Alias WebPubSubReplicaSharedPrivateLinkResourcesListResponse
39+
- Added Type Alias WebPubSubReplicasListNextResponse
40+
- Added Type Alias WebPubSubReplicasListResponse
41+
- Added Type Alias WebPubSubReplicasRestartResponse
42+
- Added Type Alias WebPubSubReplicasUpdateResponse
43+
- Added Type Alias WebPubSubRestartResponse
44+
- Interface Resource has a new optional parameter systemData
45+
- Interface WebPubSubHubProperties has a new optional parameter webSocketKeepAliveIntervalInSeconds
46+
- Interface WebPubSubNetworkACLs has a new optional parameter ipRules
47+
- Interface WebPubSubResource has a new optional parameter kind
48+
- Interface WebPubSubResource has a new optional parameter regionEndpointEnabled
49+
- Interface WebPubSubResource has a new optional parameter resourceStopped
50+
- Interface WebPubSubResource has a new optional parameter socketIO
51+
- Added Enum KnownServiceKind
52+
- Interface CustomCertificate no longer has parameter systemData
53+
- Interface CustomDomain no longer has parameter systemData
54+
- Interface PrivateEndpointConnection no longer has parameter systemData
55+
- Interface SharedPrivateLinkResource no longer has parameter systemData
56+
- Interface WebPubSubHub no longer has parameter systemData
57+
- Interface WebPubSubResource no longer has parameter systemData
58+
- Parameter location of interface TrackedResource is now required
59+
60+
361
## 2.0.0-beta.2 (2023-10-10)
462

563
### Features Added

sdk/web-pubsub/arm-webpubsub/LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2023 Microsoft
3+
Copyright (c) 2024 Microsoft
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

sdk/web-pubsub/arm-webpubsub/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ REST API for Azure WebPubSub Service
66

77
[Source code](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/web-pubsub/arm-webpubsub) |
88
[Package (NPM)](https://www.npmjs.com/package/@azure/arm-webpubsub) |
9-
[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-webpubsub?view=azure-node-preview) |
9+
[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-webpubsub) |
1010
[Samples](https://github.com/Azure-Samples/azure-samples-js-management)
1111

1212
## Getting started
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
2-
"commit": "e1017d9ab49f41296177b4f4c9ac741fb7de044d",
2+
"commit": "3519c80fe510a268f6e59a29ccac8a53fdec15b6",
33
"readme": "specification/webpubsub/resource-manager/readme.md",
4-
"autorest_command": "autorest --version=3.9.7 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\Git\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\webpubsub\\resource-manager\\readme.md --use=@autorest/[email protected].9 --generate-sample=true",
4+
"autorest_command": "autorest --version=3.9.7 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\Git\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\webpubsub\\resource-manager\\readme.md --use=@autorest/[email protected].27 --generate-sample=true",
55
"repository_url": "https://github.com/Azure/azure-rest-api-specs.git",
6-
"release_tool": "@azure-tools/[email protected].2",
7-
"use": "@autorest/[email protected].9"
6+
"release_tool": "@azure-tools/[email protected].13",
7+
"use": "@autorest/[email protected].27"
88
}

sdk/web-pubsub/arm-webpubsub/assets.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
"AssetsRepo": "Azure/azure-sdk-assets",
33
"AssetsRepoPrefixPath": "js",
44
"TagPrefix": "js/web-pubsub/arm-webpubsub",
5-
"Tag": "js/web-pubsub/arm-webpubsub_33e23101b1"
5+
"Tag": "js/web-pubsub/arm-webpubsub_3a173487ab"
66
}

sdk/web-pubsub/arm-webpubsub/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"sdk-type": "mgmt",
44
"author": "Microsoft Corporation",
55
"description": "A generated SDK for WebPubSubManagementClient.",
6-
"version": "2.0.0-beta.2",
6+
"version": "1.2.0",
77
"engines": {
88
"node": ">=18.0.0"
99
},
@@ -116,4 +116,4 @@
116116
"disableDocsMs": true,
117117
"apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-webpubsub?view=azure-node-preview"
118118
}
119-
}
119+
}

sdk/web-pubsub/arm-webpubsub/review/arm-webpubsub.api.md

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -752,6 +752,7 @@ export interface WebPubSubHubProperties {
752752
anonymousConnectPolicy?: string;
753753
eventHandlers?: EventHandler[];
754754
eventListeners?: EventListener_2[];
755+
webSocketKeepAliveIntervalInSeconds?: number;
755756
}
756757

757758
// @public
@@ -885,6 +886,8 @@ export class WebPubSubManagementClient extends coreClient.ServiceClient {
885886
// (undocumented)
886887
webPubSubReplicas: WebPubSubReplicas;
887888
// (undocumented)
889+
webPubSubReplicaSharedPrivateLinkResources: WebPubSubReplicaSharedPrivateLinkResources;
890+
// (undocumented)
888891
webPubSubSharedPrivateLinkResources: WebPubSubSharedPrivateLinkResources;
889892
}
890893

@@ -1013,6 +1016,44 @@ export interface WebPubSubReplicasGetOptionalParams extends coreClient.Operation
10131016
// @public
10141017
export type WebPubSubReplicasGetResponse = Replica;
10151018

1019+
// @public
1020+
export interface WebPubSubReplicaSharedPrivateLinkResources {
1021+
beginCreateOrUpdate(resourceGroupName: string, resourceName: string, replicaName: string, sharedPrivateLinkResourceName: string, parameters: SharedPrivateLinkResource, options?: WebPubSubReplicaSharedPrivateLinkResourcesCreateOrUpdateOptionalParams): Promise<SimplePollerLike<OperationState<WebPubSubReplicaSharedPrivateLinkResourcesCreateOrUpdateResponse>, WebPubSubReplicaSharedPrivateLinkResourcesCreateOrUpdateResponse>>;
1022+
beginCreateOrUpdateAndWait(resourceGroupName: string, resourceName: string, replicaName: string, sharedPrivateLinkResourceName: string, parameters: SharedPrivateLinkResource, options?: WebPubSubReplicaSharedPrivateLinkResourcesCreateOrUpdateOptionalParams): Promise<WebPubSubReplicaSharedPrivateLinkResourcesCreateOrUpdateResponse>;
1023+
get(resourceGroupName: string, resourceName: string, replicaName: string, sharedPrivateLinkResourceName: string, options?: WebPubSubReplicaSharedPrivateLinkResourcesGetOptionalParams): Promise<WebPubSubReplicaSharedPrivateLinkResourcesGetResponse>;
1024+
list(resourceGroupName: string, resourceName: string, replicaName: string, options?: WebPubSubReplicaSharedPrivateLinkResourcesListOptionalParams): PagedAsyncIterableIterator<SharedPrivateLinkResource>;
1025+
}
1026+
1027+
// @public
1028+
export interface WebPubSubReplicaSharedPrivateLinkResourcesCreateOrUpdateOptionalParams extends coreClient.OperationOptions {
1029+
resumeFrom?: string;
1030+
updateIntervalInMs?: number;
1031+
}
1032+
1033+
// @public
1034+
export type WebPubSubReplicaSharedPrivateLinkResourcesCreateOrUpdateResponse = SharedPrivateLinkResource;
1035+
1036+
// @public
1037+
export interface WebPubSubReplicaSharedPrivateLinkResourcesGetOptionalParams extends coreClient.OperationOptions {
1038+
}
1039+
1040+
// @public
1041+
export type WebPubSubReplicaSharedPrivateLinkResourcesGetResponse = SharedPrivateLinkResource;
1042+
1043+
// @public
1044+
export interface WebPubSubReplicaSharedPrivateLinkResourcesListNextOptionalParams extends coreClient.OperationOptions {
1045+
}
1046+
1047+
// @public
1048+
export type WebPubSubReplicaSharedPrivateLinkResourcesListNextResponse = SharedPrivateLinkResourceList;
1049+
1050+
// @public
1051+
export interface WebPubSubReplicaSharedPrivateLinkResourcesListOptionalParams extends coreClient.OperationOptions {
1052+
}
1053+
1054+
// @public
1055+
export type WebPubSubReplicaSharedPrivateLinkResourcesListResponse = SharedPrivateLinkResourceList;
1056+
10161057
// @public
10171058
export interface WebPubSubReplicasListNextOptionalParams extends coreClient.OperationOptions {
10181059
}
@@ -1081,6 +1122,7 @@ export interface WebPubSubResource extends TrackedResource {
10811122
readonly serverPort?: number;
10821123
readonly sharedPrivateLinkResources?: SharedPrivateLinkResource[];
10831124
sku?: ResourceSku;
1125+
socketIO?: WebPubSubSocketIOSettings;
10841126
tls?: WebPubSubTlsSettings;
10851127
readonly version?: string;
10861128
}
@@ -1155,6 +1197,11 @@ export type WebPubSubSharedPrivateLinkResourcesListResponse = SharedPrivateLinkR
11551197
// @public
11561198
export type WebPubSubSkuTier = string;
11571199

1200+
// @public
1201+
export interface WebPubSubSocketIOSettings {
1202+
serviceMode?: string;
1203+
}
1204+
11581205
// @public
11591206
export interface WebPubSubTlsSettings {
11601207
clientCertEnabled?: boolean;

sdk/web-pubsub/arm-webpubsub/samples-dev/operationsListSample.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ dotenv.config();
1818
* This sample demonstrates how to Lists all of the available REST API operations of the Microsoft.SignalRService provider.
1919
*
2020
* @summary Lists all of the available REST API operations of the Microsoft.SignalRService provider.
21-
* x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/Operations_List.json
21+
* x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/Operations_List.json
2222
*/
2323
async function operationsList() {
2424
const subscriptionId =

sdk/web-pubsub/arm-webpubsub/samples-dev/usagesListSample.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ dotenv.config();
1818
* This sample demonstrates how to List resource usage quotas by location.
1919
*
2020
* @summary List resource usage quotas by location.
21-
* x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/Usages_List.json
21+
* x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/Usages_List.json
2222
*/
2323
async function usagesList() {
2424
const subscriptionId =

sdk/web-pubsub/arm-webpubsub/samples-dev/webPubSubCheckNameAvailabilitySample.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
// Licensed under the MIT License.
1111
import {
1212
NameAvailabilityParameters,
13-
WebPubSubManagementClient
13+
WebPubSubManagementClient,
1414
} from "@azure/arm-webpubsub";
1515
import { DefaultAzureCredential } from "@azure/identity";
1616
import * as dotenv from "dotenv";
@@ -21,7 +21,7 @@ dotenv.config();
2121
* This sample demonstrates how to Checks that the resource name is valid and is not already in use.
2222
*
2323
* @summary Checks that the resource name is valid and is not already in use.
24-
* x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/preview/2023-08-01-preview/examples/WebPubSub_CheckNameAvailability.json
24+
* x-ms-original-file: specification/webpubsub/resource-manager/Microsoft.SignalRService/stable/2024-03-01/examples/WebPubSub_CheckNameAvailability.json
2525
*/
2626
async function webPubSubCheckNameAvailability() {
2727
const subscriptionId =
@@ -30,13 +30,13 @@ async function webPubSubCheckNameAvailability() {
3030
const location = "eastus";
3131
const parameters: NameAvailabilityParameters = {
3232
name: "myWebPubSubService",
33-
type: "Microsoft.SignalRService/WebPubSub"
33+
type: "Microsoft.SignalRService/WebPubSub",
3434
};
3535
const credential = new DefaultAzureCredential();
3636
const client = new WebPubSubManagementClient(credential, subscriptionId);
3737
const result = await client.webPubSub.checkNameAvailability(
3838
location,
39-
parameters
39+
parameters,
4040
);
4141
console.log(result);
4242
}

0 commit comments

Comments
 (0)