Skip to content

Commit 1a8f366

Browse files
author
SDKAuto
committed
CodeGen from PR 28259 in Azure/azure-rest-api-specs
Merge bca9ac1e9d40cafbd1d878b70d88bc05692f00d3 into 8d6f30424e2667112c888118ac6facc2f639370e
1 parent 268d56f commit 1a8f366

38 files changed

+2768
-2148
lines changed

common/config/rush/pnpm-lock.yaml

Lines changed: 382 additions & 381 deletions
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: 15 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
# Release History
22

3-
## 2.0.0-beta.2 (2023-10-10)
3+
## 2.0.0-beta.3 (2024-03-20)
44

55
**Features**
66

77
- Added operation group WebPubSubReplicas
8+
- Added operation group WebPubSubReplicaSharedPrivateLinkResources
89
- Added operation WebPubSub.listReplicaSkus
910
- Added Interface IPRule
1011
- Added Interface Replica
@@ -14,80 +15,52 @@
1415
- Added Interface WebPubSubReplicasCreateOrUpdateOptionalParams
1516
- Added Interface WebPubSubReplicasDeleteOptionalParams
1617
- Added Interface WebPubSubReplicasGetOptionalParams
18+
- Added Interface WebPubSubReplicaSharedPrivateLinkResourcesCreateOrUpdateOptionalParams
19+
- Added Interface WebPubSubReplicaSharedPrivateLinkResourcesGetOptionalParams
20+
- Added Interface WebPubSubReplicaSharedPrivateLinkResourcesListNextOptionalParams
21+
- Added Interface WebPubSubReplicaSharedPrivateLinkResourcesListOptionalParams
1722
- Added Interface WebPubSubReplicasListNextOptionalParams
1823
- Added Interface WebPubSubReplicasListOptionalParams
1924
- Added Interface WebPubSubReplicasRestartHeaders
2025
- Added Interface WebPubSubReplicasRestartOptionalParams
2126
- Added Interface WebPubSubReplicasUpdateHeaders
2227
- Added Interface WebPubSubReplicasUpdateOptionalParams
2328
- Added Interface WebPubSubRestartHeaders
29+
- Added Interface WebPubSubSocketIOSettings
2430
- Added Interface WebPubSubUpdateHeaders
2531
- Added Type Alias ServiceKind
2632
- Added Type Alias WebPubSubListReplicaSkusResponse
2733
- Added Type Alias WebPubSubReplicasCreateOrUpdateResponse
2834
- Added Type Alias WebPubSubReplicasGetResponse
35+
- Added Type Alias WebPubSubReplicaSharedPrivateLinkResourcesCreateOrUpdateResponse
36+
- Added Type Alias WebPubSubReplicaSharedPrivateLinkResourcesGetResponse
37+
- Added Type Alias WebPubSubReplicaSharedPrivateLinkResourcesListNextResponse
38+
- Added Type Alias WebPubSubReplicaSharedPrivateLinkResourcesListResponse
2939
- Added Type Alias WebPubSubReplicasListNextResponse
3040
- Added Type Alias WebPubSubReplicasListResponse
3141
- Added Type Alias WebPubSubReplicasRestartResponse
3242
- Added Type Alias WebPubSubReplicasUpdateResponse
3343
- Added Type Alias WebPubSubRestartResponse
3444
- Interface Resource has a new optional parameter systemData
45+
- Interface WebPubSubHubProperties has a new optional parameter webSocketKeepAliveIntervalInSeconds
3546
- Interface WebPubSubNetworkACLs has a new optional parameter ipRules
3647
- Interface WebPubSubResource has a new optional parameter kind
3748
- Interface WebPubSubResource has a new optional parameter regionEndpointEnabled
3849
- Interface WebPubSubResource has a new optional parameter resourceStopped
50+
- Interface WebPubSubResource has a new optional parameter socketIO
3951
- Added Enum KnownServiceKind
4052

4153
**Breaking Changes**
4254

43-
- Parameter location of interface TrackedResource is now required
44-
45-
46-
## 2.0.0-beta.1 (2023-07-11)
47-
48-
**Features**
49-
50-
- Added operation group WebPubSubReplicas
51-
- Added operation WebPubSub.listReplicaSkus
52-
- Added Interface Replica
53-
- Added Interface ReplicaList
54-
- Added Interface WebPubSubListReplicaSkusOptionalParams
55-
- Added Interface WebPubSubRegenerateKeyHeaders
56-
- Added Interface WebPubSubReplicasCreateOrUpdateOptionalParams
57-
- Added Interface WebPubSubReplicasDeleteOptionalParams
58-
- Added Interface WebPubSubReplicasGetOptionalParams
59-
- Added Interface WebPubSubReplicasListNextOptionalParams
60-
- Added Interface WebPubSubReplicasListOptionalParams
61-
- Added Interface WebPubSubReplicasRestartHeaders
62-
- Added Interface WebPubSubReplicasRestartOptionalParams
63-
- Added Interface WebPubSubReplicasUpdateHeaders
64-
- Added Interface WebPubSubReplicasUpdateOptionalParams
65-
- Added Interface WebPubSubRestartHeaders
66-
- Added Interface WebPubSubUpdateHeaders
67-
- Added Type Alias ServiceKind
68-
- Added Type Alias WebPubSubListReplicaSkusResponse
69-
- Added Type Alias WebPubSubReplicasCreateOrUpdateResponse
70-
- Added Type Alias WebPubSubReplicasGetResponse
71-
- Added Type Alias WebPubSubReplicasListNextResponse
72-
- Added Type Alias WebPubSubReplicasListResponse
73-
- Added Type Alias WebPubSubReplicasRestartResponse
74-
- Added Type Alias WebPubSubReplicasUpdateResponse
75-
- Added Type Alias WebPubSubRestartResponse
76-
- Interface Resource has a new optional parameter systemData
77-
- Interface WebPubSubResource has a new optional parameter kind
78-
- Added Enum KnownServiceKind
7955
- Interface CustomCertificate no longer has parameter systemData
8056
- Interface CustomDomain no longer has parameter systemData
8157
- Interface PrivateEndpointConnection no longer has parameter systemData
8258
- Interface SharedPrivateLinkResource no longer has parameter systemData
8359
- Interface WebPubSubHub no longer has parameter systemData
8460
- Interface WebPubSubResource no longer has parameter systemData
85-
86-
**Breaking Changes**
87-
8861
- Parameter location of interface TrackedResource is now required
8962

90-
63+
9164
## 1.1.0 (2023-03-09)
9265

9366
**Features**
@@ -142,4 +115,4 @@
142115

143116
## 1.0.0 (2021-12-16)
144117

145-
- The package of @azure/arm-webpubsub is using our next generation design principles. To learn more, please refer to our documentation [Quick Start](https://aka.ms/azsdk/js/mgmt/quickstart ).
118+
- The package of @azure/arm-webpubsub is using our next generation design principles. To learn more, please refer to our documentation [Quick Start](https://aka.ms/js-track2-quickstart).

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
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
2-
"commit": "e1017d9ab49f41296177b4f4c9ac741fb7de044d",
2+
"commit": "c3985feb70215da9f7fcac44b2a2b6bb5b8d0171",
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].4",
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-beta.3",
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+
"esm": "^3.2.18",
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": "api-extractor run --local",
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)