Skip to content

Commit 2f365fb

Browse files
author
SDKAuto
committed
CodeGen from PR 17469 in Azure/azure-rest-api-specs
Merge f38c9b9dc092669971fc5abf3094268869bfd0da into 0e23c192cdbcb623f97d685567e118f9ef6a724f
1 parent 3944197 commit 2f365fb

File tree

13 files changed

+447
-42
lines changed

13 files changed

+447
-42
lines changed

sdk/resources-subscriptions/arm-resources-subscriptions/CHANGELOG.md

Lines changed: 16 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,20 @@
11
# Release History
2-
3-
## 2.0.1 (Unreleased)
4-
5-
### Features Added
6-
7-
### Breaking Changes
8-
9-
### Bugs Fixed
10-
11-
### Other Changes
12-
2+
3+
## 2.1.0 (2022-01-24)
4+
5+
**Features**
6+
7+
- Added operation Subscriptions.checkZonePeers
8+
- Added Interface AvailabilityZonePeers
9+
- Added Interface CheckZonePeersRequest
10+
- Added Interface CheckZonePeersResult
11+
- Added Interface ErrorDetail
12+
- Added Interface ErrorResponseAutoGenerated
13+
- Added Interface Peers
14+
- Added Interface SubscriptionsCheckZonePeersOptionalParams
15+
- Added Type Alias SubscriptionsCheckZonePeersResponse
16+
17+
1318
## 2.0.0 (2021-12-16)
1419

1520
The package of @azure/arm-resources-subscriptions is using our next generation design principles since version 2.0.0, which contains breaking changes.

sdk/resources-subscriptions/arm-resources-subscriptions/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) 2021 Microsoft
3+
Copyright (c) 2022 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: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
2-
"commit": "ea0f7b072ad3aaff203ea9003246b9e584b819ff",
2+
"commit": "3b57fec8154d5269919485ec3f308fa60f1b5772",
33
"readme": "specification/resources/resource-manager/readme.md",
4-
"autorest_command": "autorest --version=3.1.3 --typescript --modelerfour.lenient-model-deduplication --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\mydev\\azure-sdk-for-js ../azure-rest-api-specs/specification/resources/resource-manager/readme.md --use=@autorest/[email protected].20211207.1",
4+
"autorest_command": "autorest --version=3.7.3 --typescript --modelerfour.lenient-model-deduplication --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-js ../azure-rest-api-specs/specification/resources/resource-manager/readme.md --use=@autorest/[email protected].20220105.1",
55
"repository_url": "https://github.com/Azure/azure-rest-api-specs.git",
6-
"use": "@autorest/[email protected].20211207.1"
6+
"use": "@autorest/[email protected].20220105.1"
77
}
Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,31 @@
11
{
22
"$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json",
33
"mainEntryPointFilePath": "./dist-esm/src/index.d.ts",
4-
"docModel": { "enabled": true },
5-
"apiReport": { "enabled": true, "reportFolder": "./review" },
4+
"docModel": {
5+
"enabled": true
6+
},
7+
"apiReport": {
8+
"enabled": true,
9+
"reportFolder": "./review"
10+
},
611
"dtsRollup": {
712
"enabled": true,
813
"untrimmedFilePath": "",
914
"publicTrimmedFilePath": "./types/arm-resources-subscriptions.d.ts"
1015
},
1116
"messages": {
12-
"tsdocMessageReporting": { "default": { "logLevel": "none" } },
17+
"tsdocMessageReporting": {
18+
"default": {
19+
"logLevel": "none"
20+
}
21+
},
1322
"extractorMessageReporting": {
14-
"ae-missing-release-tag": { "logLevel": "none" },
15-
"ae-unresolved-link": { "logLevel": "none" }
23+
"ae-missing-release-tag": {
24+
"logLevel": "none"
25+
},
26+
"ae-unresolved-link": {
27+
"logLevel": "none"
28+
}
1629
}
1730
}
18-
}
31+
}

sdk/resources-subscriptions/arm-resources-subscriptions/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 SubscriptionClient.",
6-
"version": "2.0.1",
6+
"version": "2.1.0",
77
"engines": {
88
"node": ">=12.0.0"
99
},
@@ -97,4 +97,4 @@
9797
},
9898
"sideEffects": false,
9999
"autoPublish": true
100-
}
100+
}

sdk/resources-subscriptions/arm-resources-subscriptions/review/arm-resources-subscriptions.api.md

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,12 @@ import * as coreAuth from '@azure/core-auth';
88
import * as coreClient from '@azure/core-client';
99
import { PagedAsyncIterableIterator } from '@azure/core-paging';
1010

11+
// @public
12+
export interface AvailabilityZonePeers {
13+
readonly availabilityZone?: string;
14+
peers?: Peers[];
15+
}
16+
1117
// @public
1218
export interface CheckResourceNameOptionalParams extends coreClient.OperationOptions {
1319
resourceNameDefinition?: ResourceName;
@@ -23,6 +29,19 @@ export interface CheckResourceNameResult {
2329
type?: string;
2430
}
2531

32+
// @public
33+
export interface CheckZonePeersRequest {
34+
location?: string;
35+
subscriptionIds?: string[];
36+
}
37+
38+
// @public
39+
export interface CheckZonePeersResult {
40+
availabilityZonePeers?: AvailabilityZonePeers[];
41+
location?: string;
42+
readonly subscriptionId?: string;
43+
}
44+
2645
// @public
2746
export interface CloudError {
2847
error?: ErrorResponse;
@@ -34,6 +53,15 @@ export interface ErrorAdditionalInfo {
3453
readonly type?: string;
3554
}
3655

56+
// @public
57+
export interface ErrorDetail {
58+
readonly additionalInfo?: ErrorAdditionalInfo[];
59+
readonly code?: string;
60+
readonly details?: ErrorDetail[];
61+
readonly message?: string;
62+
readonly target?: string;
63+
}
64+
3765
// @public
3866
export interface ErrorResponse {
3967
readonly additionalInfo?: ErrorAdditionalInfo[];
@@ -43,6 +71,11 @@ export interface ErrorResponse {
4371
readonly target?: string;
4472
}
4573

74+
// @public
75+
export interface ErrorResponseAutoGenerated {
76+
error?: ErrorDetail;
77+
}
78+
4679
// @public
4780
export enum KnownRegionCategory {
4881
// (undocumented)
@@ -133,6 +166,12 @@ export interface PairedRegion {
133166
readonly subscriptionId?: string;
134167
}
135168

169+
// @public
170+
export interface Peers {
171+
readonly availabilityZone?: string;
172+
readonly subscriptionId?: string;
173+
}
174+
136175
// @public
137176
export type RegionCategory = string;
138177

@@ -202,11 +241,19 @@ export interface SubscriptionPolicies {
202241

203242
// @public
204243
export interface Subscriptions {
244+
checkZonePeers(subscriptionId: string, parameters: CheckZonePeersRequest, options?: SubscriptionsCheckZonePeersOptionalParams): Promise<SubscriptionsCheckZonePeersResponse>;
205245
get(subscriptionId: string, options?: SubscriptionsGetOptionalParams): Promise<SubscriptionsGetResponse>;
206246
list(options?: SubscriptionsListOptionalParams): PagedAsyncIterableIterator<Subscription>;
207247
listLocations(subscriptionId: string, options?: SubscriptionsListLocationsOptionalParams): PagedAsyncIterableIterator<Location_2>;
208248
}
209249

250+
// @public
251+
export interface SubscriptionsCheckZonePeersOptionalParams extends coreClient.OperationOptions {
252+
}
253+
254+
// @public
255+
export type SubscriptionsCheckZonePeersResponse = CheckZonePeersResult;
256+
210257
// @public
211258
export interface SubscriptionsGetOptionalParams extends coreClient.OperationOptions {
212259
}

sdk/resources-subscriptions/arm-resources-subscriptions/src/models/index.ts

Lines changed: 88 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -294,6 +294,87 @@ export interface TenantIdDescription {
294294
readonly tenantBrandingLogoUrl?: string;
295295
}
296296

297+
/** Check zone peers request parameters. */
298+
export interface CheckZonePeersRequest {
299+
/** The Microsoft location. */
300+
location?: string;
301+
/** The peer Microsoft Azure subscription ID. */
302+
subscriptionIds?: string[];
303+
}
304+
305+
/** Result of the Check zone peers operation. */
306+
export interface CheckZonePeersResult {
307+
/**
308+
* The subscription ID.
309+
* NOTE: This property will not be serialized. It can only be populated by the server.
310+
*/
311+
readonly subscriptionId?: string;
312+
/** the location of the subscription. */
313+
location?: string;
314+
/** The Availability Zones shared by the subscriptions. */
315+
availabilityZonePeers?: AvailabilityZonePeers[];
316+
}
317+
318+
/** List of availability zones shared by the subscriptions. */
319+
export interface AvailabilityZonePeers {
320+
/**
321+
* The availabilityZone.
322+
* NOTE: This property will not be serialized. It can only be populated by the server.
323+
*/
324+
readonly availabilityZone?: string;
325+
/** Details of shared availability zone. */
326+
peers?: Peers[];
327+
}
328+
329+
/** Information about shared availability zone. */
330+
export interface Peers {
331+
/**
332+
* The subscription ID.
333+
* NOTE: This property will not be serialized. It can only be populated by the server.
334+
*/
335+
readonly subscriptionId?: string;
336+
/**
337+
* The availabilityZone.
338+
* NOTE: This property will not be serialized. It can only be populated by the server.
339+
*/
340+
readonly availabilityZone?: string;
341+
}
342+
343+
/** Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.). */
344+
export interface ErrorResponseAutoGenerated {
345+
/** The error object. */
346+
error?: ErrorDetail;
347+
}
348+
349+
/** The error detail. */
350+
export interface ErrorDetail {
351+
/**
352+
* The error code.
353+
* NOTE: This property will not be serialized. It can only be populated by the server.
354+
*/
355+
readonly code?: string;
356+
/**
357+
* The error message.
358+
* NOTE: This property will not be serialized. It can only be populated by the server.
359+
*/
360+
readonly message?: string;
361+
/**
362+
* The error target.
363+
* NOTE: This property will not be serialized. It can only be populated by the server.
364+
*/
365+
readonly target?: string;
366+
/**
367+
* The error details.
368+
* NOTE: This property will not be serialized. It can only be populated by the server.
369+
*/
370+
readonly details?: ErrorDetail[];
371+
/**
372+
* The error additional info.
373+
* NOTE: This property will not be serialized. It can only be populated by the server.
374+
*/
375+
readonly additionalInfo?: ErrorAdditionalInfo[];
376+
}
377+
297378
/** Name and Type of the Resource */
298379
export interface ResourceName {
299380
/** Name of the resource */
@@ -427,6 +508,13 @@ export interface SubscriptionsListOptionalParams
427508
/** Contains response data for the list operation. */
428509
export type SubscriptionsListResponse = SubscriptionListResult;
429510

511+
/** Optional parameters. */
512+
export interface SubscriptionsCheckZonePeersOptionalParams
513+
extends coreClient.OperationOptions {}
514+
515+
/** Contains response data for the checkZonePeers operation. */
516+
export type SubscriptionsCheckZonePeersResponse = CheckZonePeersResult;
517+
430518
/** Optional parameters. */
431519
export interface SubscriptionsListNextOptionalParams
432520
extends coreClient.OperationOptions {}

0 commit comments

Comments
 (0)