Skip to content

Commit 35d4f77

Browse files
author
SDKAuto
committed
CodeGen from PR 29086 in Azure/azure-rest-api-specs
Merge bcd6b6d50466b2ff9ec8d499ad52afaf28ff9657 into f2b603440c0c890cbaf6ddb1e6976bfcf14aa495
1 parent 5415d4d commit 35d4f77

39 files changed

+2435
-1727
lines changed

common/config/rush/pnpm-lock.yaml

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

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

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

3+
## 2.0.0 (2024-05-23)
4+
5+
**Features**
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+
53+
**Breaking Changes**
54+
55+
- Interface CustomCertificate no longer has parameter systemData
56+
- Interface CustomDomain no longer has parameter systemData
57+
- Interface PrivateEndpointConnection no longer has parameter systemData
58+
- Interface SharedPrivateLinkResource no longer has parameter systemData
59+
- Interface WebPubSubHub no longer has parameter systemData
60+
- Interface WebPubSubResource no longer has parameter systemData
61+
- Parameter location of interface TrackedResource is now required
62+
63+
364
## 2.0.0-beta.2 (2023-10-10)
465

566
**Features**

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": "6e7ff2b8178aa73a8f2edaefaccf3c8af9cc3df8",
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=/mnt/vss/_work/1/s/azure-sdk-for-js ../azure-rest-api-specs/specification/webpubsub/resource-manager/readme.md --use=@autorest/typescript@^6.0.12",
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].9",
7+
"use": "@autorest/typescript@^6.0.12"
88
}

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

Lines changed: 9 additions & 17 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": "2.0.0",
77
"engines": {
88
"node": ">=18.0.0"
99
},
@@ -12,8 +12,8 @@
1212
"@azure/abort-controller": "^1.0.0",
1313
"@azure/core-paging": "^1.2.0",
1414
"@azure/core-client": "^1.7.0",
15-
"@azure/core-auth": "^1.3.0",
16-
"@azure/core-rest-pipeline": "^1.12.0",
15+
"@azure/core-auth": "^1.6.0",
16+
"@azure/core-rest-pipeline": "^1.14.0",
1717
"tslib": "^2.2.0"
1818
},
1919
"keywords": [
@@ -34,17 +34,18 @@
3434
"uglify-js": "^3.4.9",
3535
"rimraf": "^5.0.0",
3636
"dotenv": "^16.0.0",
37+
"@azure/dev-tool": "^1.0.0",
3738
"@azure/identity": "^4.0.1",
3839
"@azure-tools/test-recorder": "^3.0.0",
3940
"@azure-tools/test-credential": "^1.0.0",
4041
"mocha": "^10.0.0",
42+
"@types/mocha": "^10.0.0",
43+
"tsx": "^4.7.1",
4144
"@types/chai": "^4.2.8",
4245
"chai": "^4.2.0",
4346
"cross-env": "^7.0.2",
4447
"@types/node": "^18.0.0",
45-
"ts-node": "^10.0.0",
46-
"@azure/dev-tool": "^1.0.0",
47-
"@types/mocha": "^10.0.0"
48+
"ts-node": "^10.0.0"
4849
},
4950
"repository": {
5051
"type": "git",
@@ -77,7 +78,6 @@
7778
"pack": "npm pack 2>&1",
7879
"extract-api": "dev-tool run extract-api",
7980
"lint": "echo skipped",
80-
"audit": "echo skipped",
8181
"clean": "rimraf --glob dist dist-browser dist-esm test-dist temp types *.tgz *.log",
8282
"build:node": "echo skipped",
8383
"build:browser": "echo skipped",
@@ -106,13 +106,5 @@
106106
]
107107
},
108108
"autoPublish": true,
109-
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/web-pubsub/arm-webpubsub",
110-
"//sampleConfiguration": {
111-
"productName": "",
112-
"productSlugs": [
113-
"azure"
114-
],
115-
"disableDocsMs": true,
116-
"apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-webpubsub?view=azure-node-preview"
117-
}
118-
}
109+
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/web-pubsub/arm-webpubsub"
110+
}

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/src/lroImpl.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,15 @@ export function createLroSpec<T>(inputs: {
2828
sendInitialRequest: () => sendOperationFn(args, spec),
2929
sendPollRequest: (
3030
path: string,
31-
options?: { abortSignal?: AbortSignalLike }
31+
options?: { abortSignal?: AbortSignalLike },
3232
) => {
3333
const { requestBody, ...restSpec } = spec;
3434
return sendOperationFn(args, {
3535
...restSpec,
3636
httpMethod: "GET",
3737
path,
38-
abortSignal: options?.abortSignal
38+
abortSignal: options?.abortSignal,
3939
});
40-
}
40+
},
4141
};
4242
}

0 commit comments

Comments
 (0)