Skip to content

Commit 7359527

Browse files
author
SDKAuto
committed
CodeGen from PR 18230 in Azure/azure-rest-api-specs
Merge e391ee627007d598e3fff71001858711d6db15f0 into 2abe647120f14bb145968a5543ead8ed51394498
1 parent a38203f commit 7359527

File tree

14 files changed

+669
-32
lines changed

14 files changed

+669
-32
lines changed

sdk/maps/arm-maps/CHANGELOG.md

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

3+
## 3.1.0-beta.1 (2022-03-15)
4+
5+
**Features**
6+
7+
- Added operation Accounts.listSas
8+
- Added Interface AccountSasParameters
9+
- Added Interface AccountsListSasOptionalParams
10+
- Added Interface Components1Jq1T4ISchemasManagedserviceidentityPropertiesUserassignedidentitiesAdditionalproperties
11+
- Added Interface CorsRule
12+
- Added Interface CorsRules
13+
- Added Interface LinkedResource
14+
- Added Interface ManagedServiceIdentity
15+
- Added Interface MapsAccountSasToken
16+
- Added Type Alias AccountsListSasResponse
17+
- Added Type Alias ResourceIdentityType
18+
- Added Type Alias SigningKey
19+
- Interface MapsAccountProperties has a new optional parameter cors
20+
- Interface MapsAccountProperties has a new optional parameter linkedResources
21+
- Interface MapsAccountUpdateParameters has a new optional parameter cors
22+
- Interface MapsAccountUpdateParameters has a new optional parameter identity
23+
- Interface MapsAccountUpdateParameters has a new optional parameter linkedResources
24+
- Interface MetricSpecification has a new optional parameter internalMetricName
25+
- Interface MetricSpecification has a new optional parameter sourceMdmAccount
26+
- Type Alias Creator has a new parameter systemData
27+
- Type Alias MapsAccount has a new parameter identity
28+
- Added Enum KnownSigningKey
29+
30+
331
## 3.0.0 (2022-01-19)
432

533
The package of @azure/arm-maps is using our next generation design principles since version 3.0.0, which contains breaking changes.

sdk/maps/arm-maps/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Azure Maps
66

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

1212
## Getting started

sdk/maps/arm-maps/_meta.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
{
2-
"commit": "184b23b63ee3a79fb41ca3aa55a31a8d9e636772",
2+
"commit": "85eb3e7dbe23e025b9c838bef309f11a05768f10",
33
"readme": "specification/maps/resource-manager/readme.md",
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=D:\\mydev\\azure-sdk-for-js ../azure-rest-api-specs/specification/maps/resource-manager/readme.md --use=@autorest/[email protected].20220114.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/maps/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]"
6+
"release_tool": "@azure-tools/[email protected]",
7+
"use": "@autorest/[email protected]"
78
}

sdk/maps/arm-maps/api-extractor.json

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-maps.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/maps/arm-maps/package.json

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,24 @@
33
"sdk-type": "mgmt",
44
"author": "Microsoft Corporation",
55
"description": "A generated SDK for AzureMapsManagementClient.",
6-
"version": "3.0.0",
7-
"engines": { "node": ">=12.0.0" },
6+
"version": "3.1.0-beta.1",
7+
"engines": {
8+
"node": ">=12.0.0"
9+
},
810
"dependencies": {
911
"@azure/core-paging": "^1.2.0",
1012
"@azure/core-client": "^1.0.0",
1113
"@azure/core-auth": "^1.3.0",
1214
"@azure/core-rest-pipeline": "^1.1.0",
1315
"tslib": "^2.2.0"
1416
},
15-
"keywords": ["node", "azure", "typescript", "browser", "isomorphic"],
17+
"keywords": [
18+
"node",
19+
"azure",
20+
"typescript",
21+
"browser",
22+
"isomorphic"
23+
],
1624
"license": "MIT",
1725
"main": "./dist/index.js",
1826
"module": "./dist-esm/src/index.js",
@@ -39,7 +47,9 @@
3947
"type": "git",
4048
"url": "https://github.com/Azure/azure-sdk-for-js.git"
4149
},
42-
"bugs": { "url": "https://github.com/Azure/azure-sdk-for-js/issues" },
50+
"bugs": {
51+
"url": "https://github.com/Azure/azure-sdk-for-js/issues"
52+
},
4353
"files": [
4454
"dist/**/*.js",
4555
"dist/**/*.js.map",
@@ -86,10 +96,5 @@
8696
"docs": "echo skipped"
8797
},
8898
"sideEffects": false,
89-
"//metadata": {
90-
"constantPaths": [
91-
{ "path": "src/AzureMapsManagementClient.ts", "prefix": "packageDetails" }
92-
]
93-
},
9499
"autoPublish": true
95-
}
100+
}

sdk/maps/arm-maps/review/arm-maps.api.md

Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,21 @@ export interface Accounts {
1616
listByResourceGroup(resourceGroupName: string, options?: AccountsListByResourceGroupOptionalParams): PagedAsyncIterableIterator<MapsAccount>;
1717
listBySubscription(options?: AccountsListBySubscriptionOptionalParams): PagedAsyncIterableIterator<MapsAccount>;
1818
listKeys(resourceGroupName: string, accountName: string, options?: AccountsListKeysOptionalParams): Promise<AccountsListKeysResponse>;
19+
listSas(resourceGroupName: string, accountName: string, mapsAccountSasParameters: AccountSasParameters, options?: AccountsListSasOptionalParams): Promise<AccountsListSasResponse>;
1920
regenerateKeys(resourceGroupName: string, accountName: string, keySpecification: MapsKeySpecification, options?: AccountsRegenerateKeysOptionalParams): Promise<AccountsRegenerateKeysResponse>;
2021
update(resourceGroupName: string, accountName: string, mapsAccountUpdateParameters: MapsAccountUpdateParameters, options?: AccountsUpdateOptionalParams): Promise<AccountsUpdateResponse>;
2122
}
2223

24+
// @public
25+
export interface AccountSasParameters {
26+
expiry: string;
27+
maxRatePerSecond: number;
28+
principalId: string;
29+
regions?: string[];
30+
signingKey: SigningKey;
31+
start: string;
32+
}
33+
2334
// @public
2435
export interface AccountsCreateOrUpdateOptionalParams extends coreClient.OperationOptions {
2536
}
@@ -73,6 +84,13 @@ export interface AccountsListKeysOptionalParams extends coreClient.OperationOpti
7384
// @public
7485
export type AccountsListKeysResponse = MapsAccountKeys;
7586

87+
// @public
88+
export interface AccountsListSasOptionalParams extends coreClient.OperationOptions {
89+
}
90+
91+
// @public
92+
export type AccountsListSasResponse = MapsAccountSasToken;
93+
7694
// @public
7795
export interface AccountsRegenerateKeysOptionalParams extends coreClient.OperationOptions {
7896
}
@@ -111,12 +129,29 @@ export interface AzureMapsManagementClientOptionalParams extends coreClient.Serv
111129
endpoint?: string;
112130
}
113131

132+
// @public (undocumented)
133+
export interface Components1Jq1T4ISchemasManagedserviceidentityPropertiesUserassignedidentitiesAdditionalproperties {
134+
readonly clientId?: string;
135+
readonly principalId?: string;
136+
}
137+
138+
// @public
139+
export interface CorsRule {
140+
allowedOrigins: string[];
141+
}
142+
143+
// @public
144+
export interface CorsRules {
145+
corsRules?: CorsRule[];
146+
}
147+
114148
// @public
115149
export type CreatedByType = string;
116150

117151
// @public
118152
export type Creator = TrackedResource & {
119153
properties: CreatorProperties;
154+
readonly systemData?: SystemData;
120155
};
121156

122157
// @public
@@ -263,6 +298,30 @@ export enum KnownName {
263298
S1 = "S1"
264299
}
265300

301+
// @public
302+
export enum KnownSigningKey {
303+
// (undocumented)
304+
PrimaryKey = "primaryKey",
305+
// (undocumented)
306+
SecondaryKey = "secondaryKey"
307+
}
308+
309+
// @public
310+
export interface LinkedResource {
311+
id: string;
312+
uniqueName: string;
313+
}
314+
315+
// @public
316+
export interface ManagedServiceIdentity {
317+
readonly principalId?: string;
318+
readonly tenantId?: string;
319+
type?: ResourceIdentityType;
320+
userAssignedIdentities?: {
321+
[propertyName: string]: Components1Jq1T4ISchemasManagedserviceidentityPropertiesUserassignedidentitiesAdditionalproperties;
322+
};
323+
}
324+
266325
// @public
267326
export interface Maps {
268327
listOperations(options?: MapsListOperationsOptionalParams): PagedAsyncIterableIterator<OperationDetail>;
@@ -274,6 +333,7 @@ export type MapsAccount = TrackedResource & {
274333
sku: Sku;
275334
kind?: Kind;
276335
readonly systemData?: SystemData;
336+
identity?: ManagedServiceIdentity;
277337
properties?: MapsAccountProperties;
278338
};
279339

@@ -287,7 +347,9 @@ export interface MapsAccountKeys {
287347

288348
// @public
289349
export interface MapsAccountProperties {
350+
cors?: CorsRules;
290351
disableLocalAuth?: boolean;
352+
linkedResources?: LinkedResource[];
291353
readonly provisioningState?: string;
292354
readonly uniqueId?: string;
293355
}
@@ -298,10 +360,18 @@ export interface MapsAccounts {
298360
readonly value?: MapsAccount[];
299361
}
300362

363+
// @public
364+
export interface MapsAccountSasToken {
365+
readonly accountSasToken?: string;
366+
}
367+
301368
// @public
302369
export interface MapsAccountUpdateParameters {
370+
cors?: CorsRules;
303371
disableLocalAuth?: boolean;
372+
identity?: ManagedServiceIdentity;
304373
kind?: Kind;
374+
linkedResources?: LinkedResource[];
305375
readonly provisioningState?: string;
306376
sku?: Sku;
307377
tags?: {
@@ -357,8 +427,10 @@ export interface MetricSpecification {
357427
displayDescription?: string;
358428
displayName?: string;
359429
fillGapWithZero?: boolean;
430+
internalMetricName?: string;
360431
name?: string;
361432
resourceIdDimensionNameOverride?: string;
433+
sourceMdmAccount?: string;
362434
unit?: string;
363435
}
364436

@@ -389,11 +461,17 @@ export interface Resource {
389461
readonly type?: string;
390462
}
391463

464+
// @public
465+
export type ResourceIdentityType = "SystemAssigned" | "UserAssigned" | "SystemAssigned, UserAssigned" | "None";
466+
392467
// @public
393468
export interface ServiceSpecification {
394469
metricSpecifications?: MetricSpecification[];
395470
}
396471

472+
// @public
473+
export type SigningKey = string;
474+
397475
// @public
398476
export interface Sku {
399477
name: Name;

sdk/maps/arm-maps/src/azureMapsManagementClient.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ export class AzureMapsManagementClient extends coreClient.ServiceClient {
4444
credential: credentials
4545
};
4646

47-
const packageDetails = `azsdk-js-arm-maps/3.0.0`;
47+
const packageDetails = `azsdk-js-arm-maps/3.1.0-beta.1`;
4848
const userAgentPrefix =
4949
options.userAgentOptions && options.userAgentOptions.userAgentPrefix
5050
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
@@ -67,7 +67,7 @@ export class AzureMapsManagementClient extends coreClient.ServiceClient {
6767

6868
// Assigning values to Constant parameters
6969
this.$host = options.$host || "https://management.azure.com";
70-
this.apiVersion = options.apiVersion || "2021-02-01";
70+
this.apiVersion = options.apiVersion || "2021-12-01-preview";
7171
this.accounts = new AccountsImpl(this);
7272
this.maps = new MapsImpl(this);
7373
this.creators = new CreatorsImpl(this);

0 commit comments

Comments
 (0)