Skip to content

Commit d2cd1f2

Browse files
author
SDKAuto
committed
CodeGen from PR 24268 in Azure/azure-rest-api-specs
Merge 69df78fe51252adb2dc6135d0dc3ef95cf94f638 into 4aa4e842c6821ff7ca76e80fd8229cd3c7873681
1 parent 8b30711 commit d2cd1f2

29 files changed

+1758
-459
lines changed

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

Lines changed: 43 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,50 @@
11
# Release History
2+
3+
## 2.0.0-beta.1 (2023-06-28)
4+
5+
**Features**
26

3-
## 1.1.1 (Unreleased)
4-
5-
### Features Added
6-
7-
### Breaking Changes
8-
9-
### Bugs Fixed
7+
- Added operation group WebPubSubReplicas
8+
- Added operation WebPubSub.listReplicaSkus
9+
- Added Interface Replica
10+
- Added Interface ReplicaList
11+
- Added Interface WebPubSubListReplicaSkusOptionalParams
12+
- Added Interface WebPubSubRegenerateKeyHeaders
13+
- Added Interface WebPubSubReplicasCreateOrUpdateOptionalParams
14+
- Added Interface WebPubSubReplicasDeleteOptionalParams
15+
- Added Interface WebPubSubReplicasGetOptionalParams
16+
- Added Interface WebPubSubReplicasListNextOptionalParams
17+
- Added Interface WebPubSubReplicasListOptionalParams
18+
- Added Interface WebPubSubReplicasRestartHeaders
19+
- Added Interface WebPubSubReplicasRestartOptionalParams
20+
- Added Interface WebPubSubReplicasUpdateHeaders
21+
- Added Interface WebPubSubReplicasUpdateOptionalParams
22+
- Added Interface WebPubSubRestartHeaders
23+
- Added Interface WebPubSubUpdateHeaders
24+
- Added Type Alias ServiceKind
25+
- Added Type Alias WebPubSubListReplicaSkusResponse
26+
- Added Type Alias WebPubSubReplicasCreateOrUpdateResponse
27+
- Added Type Alias WebPubSubReplicasGetResponse
28+
- Added Type Alias WebPubSubReplicasListNextResponse
29+
- Added Type Alias WebPubSubReplicasListResponse
30+
- Added Type Alias WebPubSubReplicasRestartResponse
31+
- Added Type Alias WebPubSubReplicasUpdateResponse
32+
- Added Type Alias WebPubSubRestartResponse
33+
- Interface Resource has a new optional parameter systemData
34+
- Interface WebPubSubResource has a new optional parameter kind
35+
- Added Enum KnownServiceKind
1036

11-
### Other Changes
37+
**Breaking Changes**
1238

39+
- Interface CustomCertificate no longer has parameter systemData
40+
- Interface CustomDomain no longer has parameter systemData
41+
- Interface PrivateEndpointConnection no longer has parameter systemData
42+
- Interface SharedPrivateLinkResource no longer has parameter systemData
43+
- Interface WebPubSubHub no longer has parameter systemData
44+
- Interface WebPubSubResource no longer has parameter systemData
45+
- Parameter location of interface TrackedResource is now required
46+
47+
1348
## 1.1.0 (2023-03-09)
1449

1550
**Features**

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) |
9+
[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-webpubsub?view=azure-node-preview) |
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": "4f4044394791773e6e7e82a9bd90d3935caaca1b",
2+
"commit": "ca5279e5bd89efefc4e531d1ba56e6f153e39f72",
33
"readme": "specification/webpubsub/resource-manager/readme.md",
4-
"autorest_command": "autorest --version=3.9.3 --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].0-rc.9 --generate-sample=true",
4+
"autorest_command": "autorest --version=3.9.3 --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.4",
55
"repository_url": "https://github.com/Azure/azure-rest-api-specs.git",
6-
"release_tool": "@azure-tools/js-sdk-release-tools@2.6.2",
7-
"use": "@autorest/[email protected].0-rc.9"
6+
"release_tool": "@azure-tools/js-sdk-release-tools@2.7.1",
7+
"use": "@autorest/typescript@^6.0.4"
88
}

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

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33
"sdk-type": "mgmt",
44
"author": "Microsoft Corporation",
55
"description": "A generated SDK for WebPubSubManagementClient.",
6-
"version": "1.1.1",
6+
"version": "2.0.0-beta.1",
77
"engines": {
88
"node": ">=14.0.0"
99
},
1010
"dependencies": {
11-
"@azure/core-lro": "^2.5.0",
11+
"@azure/core-lro": "^2.5.3",
1212
"@azure/abort-controller": "^1.0.0",
1313
"@azure/core-paging": "^1.2.0",
1414
"@azure/core-client": "^1.7.0",
@@ -111,13 +111,5 @@
111111
]
112112
},
113113
"autoPublish": true,
114-
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/web-pubsub/arm-webpubsub",
115-
"//sampleConfiguration": {
116-
"productName": "",
117-
"productSlugs": [
118-
"azure"
119-
],
120-
"disableDocsMs": true,
121-
"apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-webpubsub?view=azure-node-preview"
122-
}
123-
}
114+
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/web-pubsub/arm-webpubsub"
115+
}

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

Lines changed: 134 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ export interface CustomCertificate extends ProxyResource {
2222
keyVaultSecretName: string;
2323
keyVaultSecretVersion?: string;
2424
readonly provisioningState?: ProvisioningState;
25-
readonly systemData?: SystemData;
2625
}
2726

2827
// @public
@@ -36,7 +35,6 @@ export interface CustomDomain extends ProxyResource {
3635
customCertificate: ResourceReference;
3736
domainName: string;
3837
readonly provisioningState?: ProvisioningState;
39-
readonly systemData?: SystemData;
4038
}
4139

4240
// @public
@@ -197,6 +195,12 @@ export enum KnownScaleType {
197195
None = "None"
198196
}
199197

198+
// @public
199+
export enum KnownServiceKind {
200+
SocketIO = "SocketIO",
201+
WebPubSub = "WebPubSub"
202+
}
203+
200204
// @public
201205
export enum KnownSharedPrivateLinkResourceStatus {
202206
Approved = "Approved",
@@ -358,7 +362,6 @@ export interface PrivateEndpointConnection extends ProxyResource {
358362
privateEndpoint?: PrivateEndpoint;
359363
privateLinkServiceConnectionState?: PrivateLinkServiceConnectionState;
360364
readonly provisioningState?: ProvisioningState;
361-
readonly systemData?: SystemData;
362365
}
363366

364367
// @public
@@ -403,10 +406,23 @@ export interface RegenerateKeyParameters {
403406
keyType?: KeyType_2;
404407
}
405408

409+
// @public
410+
export interface Replica extends TrackedResource {
411+
readonly provisioningState?: ProvisioningState;
412+
sku?: ResourceSku;
413+
}
414+
415+
// @public (undocumented)
416+
export interface ReplicaList {
417+
nextLink?: string;
418+
value?: Replica[];
419+
}
420+
406421
// @public
407422
export interface Resource {
408423
readonly id?: string;
409424
readonly name?: string;
425+
readonly systemData?: SystemData;
410426
readonly type?: string;
411427
}
412428

@@ -438,6 +454,9 @@ export interface ResourceSku {
438454
// @public
439455
export type ScaleType = string;
440456

457+
// @public
458+
export type ServiceKind = string;
459+
441460
// @public
442461
export interface ServiceSpecification {
443462
logSpecifications?: LogSpecification[];
@@ -464,7 +483,6 @@ export interface SharedPrivateLinkResource extends ProxyResource {
464483
readonly provisioningState?: ProvisioningState;
465484
requestMessage?: string;
466485
readonly status?: SharedPrivateLinkResourceStatus;
467-
readonly systemData?: SystemData;
468486
}
469487

470488
// @public
@@ -531,7 +549,7 @@ export interface SystemData {
531549

532550
// @public
533551
export interface TrackedResource extends Resource {
534-
location?: string;
552+
location: string;
535553
tags?: {
536554
[propertyName: string]: string;
537555
};
@@ -579,15 +597,16 @@ export interface WebPubSub {
579597
beginDeleteAndWait(resourceGroupName: string, resourceName: string, options?: WebPubSubDeleteOptionalParams): Promise<void>;
580598
beginRegenerateKey(resourceGroupName: string, resourceName: string, parameters: RegenerateKeyParameters, options?: WebPubSubRegenerateKeyOptionalParams): Promise<SimplePollerLike<OperationState<WebPubSubRegenerateKeyResponse>, WebPubSubRegenerateKeyResponse>>;
581599
beginRegenerateKeyAndWait(resourceGroupName: string, resourceName: string, parameters: RegenerateKeyParameters, options?: WebPubSubRegenerateKeyOptionalParams): Promise<WebPubSubRegenerateKeyResponse>;
582-
beginRestart(resourceGroupName: string, resourceName: string, options?: WebPubSubRestartOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>;
583-
beginRestartAndWait(resourceGroupName: string, resourceName: string, options?: WebPubSubRestartOptionalParams): Promise<void>;
600+
beginRestart(resourceGroupName: string, resourceName: string, options?: WebPubSubRestartOptionalParams): Promise<SimplePollerLike<OperationState<WebPubSubRestartResponse>, WebPubSubRestartResponse>>;
601+
beginRestartAndWait(resourceGroupName: string, resourceName: string, options?: WebPubSubRestartOptionalParams): Promise<WebPubSubRestartResponse>;
584602
beginUpdate(resourceGroupName: string, resourceName: string, parameters: WebPubSubResource, options?: WebPubSubUpdateOptionalParams): Promise<SimplePollerLike<OperationState<WebPubSubUpdateResponse>, WebPubSubUpdateResponse>>;
585603
beginUpdateAndWait(resourceGroupName: string, resourceName: string, parameters: WebPubSubResource, options?: WebPubSubUpdateOptionalParams): Promise<WebPubSubUpdateResponse>;
586604
checkNameAvailability(location: string, parameters: NameAvailabilityParameters, options?: WebPubSubCheckNameAvailabilityOptionalParams): Promise<WebPubSubCheckNameAvailabilityResponse>;
587605
get(resourceGroupName: string, resourceName: string, options?: WebPubSubGetOptionalParams): Promise<WebPubSubGetResponse>;
588606
listByResourceGroup(resourceGroupName: string, options?: WebPubSubListByResourceGroupOptionalParams): PagedAsyncIterableIterator<WebPubSubResource>;
589607
listBySubscription(options?: WebPubSubListBySubscriptionOptionalParams): PagedAsyncIterableIterator<WebPubSubResource>;
590608
listKeys(resourceGroupName: string, resourceName: string, options?: WebPubSubListKeysOptionalParams): Promise<WebPubSubListKeysResponse>;
609+
listReplicaSkus(resourceGroupName: string, resourceName: string, replicaName: string, options?: WebPubSubListReplicaSkusOptionalParams): Promise<WebPubSubListReplicaSkusResponse>;
591610
listSkus(resourceGroupName: string, resourceName: string, options?: WebPubSubListSkusOptionalParams): Promise<WebPubSubListSkusResponse>;
592611
}
593612

@@ -712,7 +731,6 @@ export type WebPubSubGetResponse = WebPubSubResource;
712731
// @public
713732
export interface WebPubSubHub extends ProxyResource {
714733
properties: WebPubSubHubProperties;
715-
readonly systemData?: SystemData;
716734
}
717735

718736
// @public
@@ -817,6 +835,13 @@ export interface WebPubSubListKeysOptionalParams extends coreClient.OperationOpt
817835
// @public
818836
export type WebPubSubListKeysResponse = WebPubSubKeys;
819837

838+
// @public
839+
export interface WebPubSubListReplicaSkusOptionalParams extends coreClient.OperationOptions {
840+
}
841+
842+
// @public
843+
export type WebPubSubListReplicaSkusResponse = SkuList;
844+
820845
// @public
821846
export interface WebPubSubListSkusOptionalParams extends coreClient.OperationOptions {
822847
}
@@ -850,6 +875,8 @@ export class WebPubSubManagementClient extends coreClient.ServiceClient {
850875
// (undocumented)
851876
webPubSubPrivateLinkResources: WebPubSubPrivateLinkResources;
852877
// (undocumented)
878+
webPubSubReplicas: WebPubSubReplicas;
879+
// (undocumented)
853880
webPubSubSharedPrivateLinkResources: WebPubSubSharedPrivateLinkResources;
854881
}
855882

@@ -929,6 +956,12 @@ export interface WebPubSubPrivateLinkResourcesListOptionalParams extends coreCli
929956
// @public
930957
export type WebPubSubPrivateLinkResourcesListResponse = PrivateLinkResourceList;
931958

959+
// @public
960+
export interface WebPubSubRegenerateKeyHeaders {
961+
// (undocumented)
962+
location?: string;
963+
}
964+
932965
// @public
933966
export interface WebPubSubRegenerateKeyOptionalParams extends coreClient.OperationOptions {
934967
resumeFrom?: string;
@@ -938,6 +971,83 @@ export interface WebPubSubRegenerateKeyOptionalParams extends coreClient.Operati
938971
// @public
939972
export type WebPubSubRegenerateKeyResponse = WebPubSubKeys;
940973

974+
// @public
975+
export interface WebPubSubReplicas {
976+
beginCreateOrUpdate(resourceGroupName: string, resourceName: string, replicaName: string, parameters: Replica, options?: WebPubSubReplicasCreateOrUpdateOptionalParams): Promise<SimplePollerLike<OperationState<WebPubSubReplicasCreateOrUpdateResponse>, WebPubSubReplicasCreateOrUpdateResponse>>;
977+
beginCreateOrUpdateAndWait(resourceGroupName: string, resourceName: string, replicaName: string, parameters: Replica, options?: WebPubSubReplicasCreateOrUpdateOptionalParams): Promise<WebPubSubReplicasCreateOrUpdateResponse>;
978+
beginRestart(resourceGroupName: string, resourceName: string, replicaName: string, options?: WebPubSubReplicasRestartOptionalParams): Promise<SimplePollerLike<OperationState<WebPubSubReplicasRestartResponse>, WebPubSubReplicasRestartResponse>>;
979+
beginRestartAndWait(resourceGroupName: string, resourceName: string, replicaName: string, options?: WebPubSubReplicasRestartOptionalParams): Promise<WebPubSubReplicasRestartResponse>;
980+
beginUpdate(resourceGroupName: string, resourceName: string, replicaName: string, parameters: Replica, options?: WebPubSubReplicasUpdateOptionalParams): Promise<SimplePollerLike<OperationState<WebPubSubReplicasUpdateResponse>, WebPubSubReplicasUpdateResponse>>;
981+
beginUpdateAndWait(resourceGroupName: string, resourceName: string, replicaName: string, parameters: Replica, options?: WebPubSubReplicasUpdateOptionalParams): Promise<WebPubSubReplicasUpdateResponse>;
982+
delete(resourceGroupName: string, resourceName: string, replicaName: string, options?: WebPubSubReplicasDeleteOptionalParams): Promise<void>;
983+
get(resourceGroupName: string, resourceName: string, replicaName: string, options?: WebPubSubReplicasGetOptionalParams): Promise<WebPubSubReplicasGetResponse>;
984+
list(resourceGroupName: string, resourceName: string, options?: WebPubSubReplicasListOptionalParams): PagedAsyncIterableIterator<Replica>;
985+
}
986+
987+
// @public
988+
export interface WebPubSubReplicasCreateOrUpdateOptionalParams extends coreClient.OperationOptions {
989+
resumeFrom?: string;
990+
updateIntervalInMs?: number;
991+
}
992+
993+
// @public
994+
export type WebPubSubReplicasCreateOrUpdateResponse = Replica;
995+
996+
// @public
997+
export interface WebPubSubReplicasDeleteOptionalParams extends coreClient.OperationOptions {
998+
}
999+
1000+
// @public
1001+
export interface WebPubSubReplicasGetOptionalParams extends coreClient.OperationOptions {
1002+
}
1003+
1004+
// @public
1005+
export type WebPubSubReplicasGetResponse = Replica;
1006+
1007+
// @public
1008+
export interface WebPubSubReplicasListNextOptionalParams extends coreClient.OperationOptions {
1009+
}
1010+
1011+
// @public
1012+
export type WebPubSubReplicasListNextResponse = ReplicaList;
1013+
1014+
// @public
1015+
export interface WebPubSubReplicasListOptionalParams extends coreClient.OperationOptions {
1016+
}
1017+
1018+
// @public
1019+
export type WebPubSubReplicasListResponse = ReplicaList;
1020+
1021+
// @public
1022+
export interface WebPubSubReplicasRestartHeaders {
1023+
// (undocumented)
1024+
location?: string;
1025+
}
1026+
1027+
// @public
1028+
export interface WebPubSubReplicasRestartOptionalParams extends coreClient.OperationOptions {
1029+
resumeFrom?: string;
1030+
updateIntervalInMs?: number;
1031+
}
1032+
1033+
// @public
1034+
export type WebPubSubReplicasRestartResponse = WebPubSubReplicasRestartHeaders;
1035+
1036+
// @public
1037+
export interface WebPubSubReplicasUpdateHeaders {
1038+
// (undocumented)
1039+
location?: string;
1040+
}
1041+
1042+
// @public
1043+
export interface WebPubSubReplicasUpdateOptionalParams extends coreClient.OperationOptions {
1044+
resumeFrom?: string;
1045+
updateIntervalInMs?: number;
1046+
}
1047+
1048+
// @public
1049+
export type WebPubSubReplicasUpdateResponse = Replica;
1050+
9411051
// @public
9421052
export type WebPubSubRequestType = string;
9431053

@@ -949,6 +1059,7 @@ export interface WebPubSubResource extends TrackedResource {
9491059
readonly hostName?: string;
9501060
readonly hostNamePrefix?: string;
9511061
identity?: ManagedIdentity;
1062+
kind?: ServiceKind;
9521063
liveTraceConfiguration?: LiveTraceConfiguration;
9531064
networkACLs?: WebPubSubNetworkACLs;
9541065
readonly privateEndpointConnections?: PrivateEndpointConnection[];
@@ -959,7 +1070,6 @@ export interface WebPubSubResource extends TrackedResource {
9591070
readonly serverPort?: number;
9601071
readonly sharedPrivateLinkResources?: SharedPrivateLinkResource[];
9611072
sku?: ResourceSku;
962-
readonly systemData?: SystemData;
9631073
tls?: WebPubSubTlsSettings;
9641074
readonly version?: string;
9651075
}
@@ -970,12 +1080,21 @@ export interface WebPubSubResourceList {
9701080
value?: WebPubSubResource[];
9711081
}
9721082

1083+
// @public
1084+
export interface WebPubSubRestartHeaders {
1085+
// (undocumented)
1086+
location?: string;
1087+
}
1088+
9731089
// @public
9741090
export interface WebPubSubRestartOptionalParams extends coreClient.OperationOptions {
9751091
resumeFrom?: string;
9761092
updateIntervalInMs?: number;
9771093
}
9781094

1095+
// @public
1096+
export type WebPubSubRestartResponse = WebPubSubRestartHeaders;
1097+
9791098
// @public
9801099
export interface WebPubSubSharedPrivateLinkResources {
9811100
beginCreateOrUpdate(sharedPrivateLinkResourceName: string, resourceGroupName: string, resourceName: string, parameters: SharedPrivateLinkResource, options?: WebPubSubSharedPrivateLinkResourcesCreateOrUpdateOptionalParams): Promise<SimplePollerLike<OperationState<WebPubSubSharedPrivateLinkResourcesCreateOrUpdateResponse>, WebPubSubSharedPrivateLinkResourcesCreateOrUpdateResponse>>;
@@ -1030,6 +1149,12 @@ export interface WebPubSubTlsSettings {
10301149
clientCertEnabled?: boolean;
10311150
}
10321151

1152+
// @public
1153+
export interface WebPubSubUpdateHeaders {
1154+
// (undocumented)
1155+
location?: string;
1156+
}
1157+
10331158
// @public
10341159
export interface WebPubSubUpdateOptionalParams extends coreClient.OperationOptions {
10351160
resumeFrom?: string;

0 commit comments

Comments
 (0)