Skip to content

Commit d7e2897

Browse files
author
SDKAuto
committed
CodeGen from PR 16153 in Azure/azure-rest-api-specs
Merge 1fbd69858b9ad9ad00d63c2630bb018d89f89214 into b49af808cba06f45b01193623ce1ff9e2e017777
1 parent 3c7a547 commit d7e2897

File tree

13 files changed

+1261
-731
lines changed

13 files changed

+1261
-731
lines changed

sdk/maps/arm-maps/README.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
## Azure AzureMapsManagementClient SDK for JavaScript
22

3-
This package contains an isomorphic SDK (runs both in Node.js and in browsers) for AzureMapsManagementClient.
3+
This package contains an isomorphic SDK (runs both in node.js and in browsers) for AzureMapsManagementClient.
44

55
### Currently supported environments
66

77
- [LTS versions of Node.js](https://nodejs.org/about/releases/)
8-
- Latest versions of Safari, Chrome, Edge, and Firefox.
8+
- Latest versions of Safari, Chrome, Edge and Firefox.
99

1010
### Prerequisites
1111

@@ -21,7 +21,6 @@ Install both packages using the below command:
2121
```bash
2222
npm install --save @azure/arm-maps @azure/identity
2323
```
24-
2524
> **Note**: You may have used either `@azure/ms-rest-nodeauth` or `@azure/ms-rest-browserauth` in the past. These packages are in maintenance mode receiving critical bug fixes, but no new features.
2625
If you are on a [Node.js that has LTS status](https://nodejs.org/about/releases/), or are writing a client side browser application, we strongly encourage you to upgrade to `@azure/identity` which uses the latest versions of Azure Active Directory and MSAL APIs and provides more authentication options.
2726

@@ -37,7 +36,6 @@ If you are on a [Node.js that has LTS status](https://nodejs.org/about/releases/
3736

3837
In the below samples, we pass the credential and the Azure subscription id to instantiate the client.
3938
Once the client is created, explore the operations on it either in your favorite editor or in our [API reference documentation](https://docs.microsoft.com/javascript/api) to get started.
40-
4139
#### nodejs - Authentication, client creation, and get accounts as an example written in JavaScript.
4240

4341
##### Sample code
@@ -87,7 +85,7 @@ In browser applications, we recommend using the `InteractiveBrowserCredential` t
8785
const credential = new InteractiveBrowserCredential(
8886
{
8987
clientId: "<client id for your Azure AD app>",
90-
tenantId: "<optional tenant for your organization>"
88+
tenant: "<optional tenant for your organization>"
9189
});
9290
const client = new Azure.ArmMaps.AzureMapsManagementClient(creds, subscriptionId);
9391
const resourceGroupName = "testresourceGroupName";

sdk/maps/arm-maps/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"rollup-plugin-sourcemaps": "^0.4.2",
2828
"uglify-js": "^3.6.0"
2929
},
30-
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/feature/v4/sdk/maps/arm-maps",
30+
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/maps/arm-maps",
3131
"repository": {
3232
"type": "git",
3333
"url": "https://github.com/Azure/azure-sdk-for-js.git"

sdk/maps/arm-maps/rollup.config.js

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,10 @@ import sourcemaps from "rollup-plugin-sourcemaps";
77
*/
88
const config = {
99
input: "./esm/azureMapsManagementClient.js",
10-
external: ["@azure/ms-rest-js", "@azure/ms-rest-azure-js"],
10+
external: [
11+
"@azure/ms-rest-js",
12+
"@azure/ms-rest-azure-js"
13+
],
1114
output: {
1215
file: "./dist/arm-maps.js",
1316
format: "umd",
@@ -25,7 +28,10 @@ const config = {
2528
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
2629
*/`
2730
},
28-
plugins: [nodeResolve({ mainFields: ["module", "main"] }), sourcemaps()]
31+
plugins: [
32+
nodeResolve({ mainFields: ['module', 'main'] }),
33+
sourcemaps()
34+
]
2935
};
3036

3137
export default config;

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

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ import * as Mappers from "./models/mappers";
1414
import * as operations from "./operations";
1515
import { AzureMapsManagementClientContext } from "./azureMapsManagementClientContext";
1616

17+
1718
class AzureMapsManagementClient extends AzureMapsManagementClientContext {
1819
// Operation groups
1920
accounts: operations.Accounts;
@@ -31,11 +32,7 @@ class AzureMapsManagementClient extends AzureMapsManagementClientContext {
3132
* @param subscriptionId The ID of the target subscription.
3233
* @param [options] The parameter options
3334
*/
34-
constructor(
35-
credentials: msRest.ServiceClientCredentials | TokenCredential,
36-
subscriptionId: string,
37-
options?: Models.AzureMapsManagementClientOptions
38-
) {
35+
constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.AzureMapsManagementClientOptions) {
3936
super(credentials, subscriptionId, options);
4037
this.accounts = new operations.Accounts(this);
4138
this.maps = new operations.Maps(this);

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

Lines changed: 7 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99

1010
import * as Models from "./models";
1111
import * as msRest from "@azure/ms-rest-js";
12-
import { TokenCredential } from "@azure/core-auth";
1312
import * as msRestAzure from "@azure/ms-rest-azure-js";
13+
import { TokenCredential } from "@azure/core-auth";
1414

1515
const packageName = "@azure/arm-maps";
1616
const packageVersion = "2.1.1";
@@ -31,16 +31,12 @@ export class AzureMapsManagementClientContext extends msRestAzure.AzureServiceCl
3131
* @param subscriptionId The ID of the target subscription.
3232
* @param [options] The parameter options
3333
*/
34-
constructor(
35-
credentials: msRest.ServiceClientCredentials | TokenCredential,
36-
subscriptionId: string,
37-
options?: Models.AzureMapsManagementClientOptions
38-
) {
34+
constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.AzureMapsManagementClientOptions) {
3935
if (credentials == undefined) {
40-
throw new Error("'credentials' cannot be null.");
36+
throw new Error('\'credentials\' cannot be null.');
4137
}
4238
if (subscriptionId == undefined) {
43-
throw new Error("'subscriptionId' cannot be null.");
39+
throw new Error('\'subscriptionId\' cannot be null.');
4440
}
4541

4642
if (!options) {
@@ -53,8 +49,8 @@ export class AzureMapsManagementClientContext extends msRestAzure.AzureServiceCl
5349

5450
super(credentials, options);
5551

56-
this.apiVersion = "2021-02-01";
57-
this.acceptLanguage = "en-US";
52+
this.apiVersion = '2021-12-01-preview';
53+
this.acceptLanguage = 'en-US';
5854
this.longRunningOperationRetryTimeout = 30;
5955
this.baseUri = options.baseUri || this.baseUri || "https://management.azure.com";
6056
this.requestContentType = "application/json; charset=utf-8";
@@ -64,10 +60,7 @@ export class AzureMapsManagementClientContext extends msRestAzure.AzureServiceCl
6460
if (options.acceptLanguage !== null && options.acceptLanguage !== undefined) {
6561
this.acceptLanguage = options.acceptLanguage;
6662
}
67-
if (
68-
options.longRunningOperationRetryTimeout !== null &&
69-
options.longRunningOperationRetryTimeout !== undefined
70-
) {
63+
if (options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) {
7164
this.longRunningOperationRetryTimeout = options.longRunningOperationRetryTimeout;
7265
}
7366
}

sdk/maps/arm-maps/src/models/accountsMappers.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,24 @@
77
*/
88

99
export {
10+
AccountSasParameters,
1011
AzureEntityResource,
1112
BaseResource,
13+
CorsRule,
14+
CorsRules,
1215
Creator,
1316
CreatorProperties,
1417
ErrorAdditionalInfo,
1518
ErrorDetail,
1619
ErrorResponse,
20+
LinkedResource,
21+
ManagedServiceIdentity,
22+
ManagedServiceIdentityUserAssignedIdentitiesValue,
1723
MapsAccount,
1824
MapsAccountKeys,
1925
MapsAccountProperties,
2026
MapsAccounts,
27+
MapsAccountSasToken,
2128
MapsAccountUpdateParameters,
2229
MapsKeySpecification,
2330
ProxyResource,

sdk/maps/arm-maps/src/models/creatorsMappers.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,18 @@
99
export {
1010
AzureEntityResource,
1111
BaseResource,
12+
CorsRule,
13+
CorsRules,
1214
Creator,
1315
CreatorList,
1416
CreatorProperties,
1517
CreatorUpdateParameters,
1618
ErrorAdditionalInfo,
1719
ErrorDetail,
1820
ErrorResponse,
21+
LinkedResource,
22+
ManagedServiceIdentity,
23+
ManagedServiceIdentityUserAssignedIdentitiesValue,
1924
MapsAccount,
2025
MapsAccountProperties,
2126
ProxyResource,

0 commit comments

Comments
 (0)