@azure/arm-maps 3.0.0 → 3.1.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +28 -0
- package/README.md +12 -1
- package/dist/index.js +426 -40
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/dist-esm/samples-dev/accountsCreateOrUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/accountsCreateOrUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/accountsCreateOrUpdateSample.js +130 -0
- package/dist-esm/samples-dev/accountsCreateOrUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/accountsDeleteSample.d.ts +2 -0
- package/dist-esm/samples-dev/accountsDeleteSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/accountsDeleteSample.js +31 -0
- package/dist-esm/samples-dev/accountsDeleteSample.js.map +1 -0
- package/dist-esm/samples-dev/accountsGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/accountsGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/accountsGetSample.js +31 -0
- package/dist-esm/samples-dev/accountsGetSample.js.map +1 -0
- package/dist-esm/samples-dev/accountsListByResourceGroupSample.d.ts +2 -0
- package/dist-esm/samples-dev/accountsListByResourceGroupSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/accountsListByResourceGroupSample.js +44 -0
- package/dist-esm/samples-dev/accountsListByResourceGroupSample.js.map +1 -0
- package/dist-esm/samples-dev/accountsListBySubscriptionSample.d.ts +2 -0
- package/dist-esm/samples-dev/accountsListBySubscriptionSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/accountsListBySubscriptionSample.js +43 -0
- package/dist-esm/samples-dev/accountsListBySubscriptionSample.js.map +1 -0
- package/dist-esm/samples-dev/accountsListKeysSample.d.ts +2 -0
- package/dist-esm/samples-dev/accountsListKeysSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/accountsListKeysSample.js +31 -0
- package/dist-esm/samples-dev/accountsListKeysSample.js.map +1 -0
- package/dist-esm/samples-dev/accountsListSasSample.d.ts +2 -0
- package/dist-esm/samples-dev/accountsListSasSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/accountsListSasSample.js +47 -0
- package/dist-esm/samples-dev/accountsListSasSample.js.map +1 -0
- package/dist-esm/samples-dev/accountsRegenerateKeysSample.d.ts +2 -0
- package/dist-esm/samples-dev/accountsRegenerateKeysSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/accountsRegenerateKeysSample.js +32 -0
- package/dist-esm/samples-dev/accountsRegenerateKeysSample.js.map +1 -0
- package/dist-esm/samples-dev/accountsUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/accountsUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/accountsUpdateSample.js +112 -0
- package/dist-esm/samples-dev/accountsUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/creatorsCreateOrUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/creatorsCreateOrUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/creatorsCreateOrUpdateSample.js +37 -0
- package/dist-esm/samples-dev/creatorsCreateOrUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/creatorsDeleteSample.d.ts +2 -0
- package/dist-esm/samples-dev/creatorsDeleteSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/creatorsDeleteSample.js +32 -0
- package/dist-esm/samples-dev/creatorsDeleteSample.js.map +1 -0
- package/dist-esm/samples-dev/creatorsGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/creatorsGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/creatorsGetSample.js +32 -0
- package/dist-esm/samples-dev/creatorsGetSample.js.map +1 -0
- package/dist-esm/samples-dev/creatorsListByAccountSample.d.ts +2 -0
- package/dist-esm/samples-dev/creatorsListByAccountSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/creatorsListByAccountSample.js +45 -0
- package/dist-esm/samples-dev/creatorsListByAccountSample.js.map +1 -0
- package/dist-esm/samples-dev/creatorsUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/creatorsUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/creatorsUpdateSample.js +36 -0
- package/dist-esm/samples-dev/creatorsUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/mapsListOperationsSample.d.ts +2 -0
- package/dist-esm/samples-dev/mapsListOperationsSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/mapsListOperationsSample.js +43 -0
- package/dist-esm/samples-dev/mapsListOperationsSample.js.map +1 -0
- package/dist-esm/samples-dev/mapsListSubscriptionOperationsSample.d.ts +2 -0
- package/dist-esm/samples-dev/mapsListSubscriptionOperationsSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/mapsListSubscriptionOperationsSample.js +43 -0
- package/dist-esm/samples-dev/mapsListSubscriptionOperationsSample.js.map +1 -0
- package/dist-esm/src/azureMapsManagementClient.d.ts.map +1 -1
- package/dist-esm/src/azureMapsManagementClient.js +21 -3
- package/dist-esm/src/azureMapsManagementClient.js.map +1 -1
- package/dist-esm/src/models/index.d.ts +115 -2
- package/dist-esm/src/models/index.d.ts.map +1 -1
- package/dist-esm/src/models/index.js +6 -0
- package/dist-esm/src/models/index.js.map +1 -1
- package/dist-esm/src/models/mappers.d.ts +7 -0
- package/dist-esm/src/models/mappers.d.ts.map +1 -1
- package/dist-esm/src/models/mappers.js +282 -0
- package/dist-esm/src/models/mappers.js.map +1 -1
- package/dist-esm/src/models/parameters.d.ts +1 -0
- package/dist-esm/src/models/parameters.d.ts.map +1 -1
- package/dist-esm/src/models/parameters.js +6 -2
- package/dist-esm/src/models/parameters.js.map +1 -1
- package/dist-esm/src/operations/accounts.d.ts +16 -1
- package/dist-esm/src/operations/accounts.d.ts.map +1 -1
- package/dist-esm/src/operations/accounts.js +40 -0
- package/dist-esm/src/operations/accounts.js.map +1 -1
- package/dist-esm/src/operationsInterfaces/accounts.d.ts +16 -1
- package/dist-esm/src/operationsInterfaces/accounts.d.ts.map +1 -1
- package/package.json +36 -15
- package/review/arm-maps.api.md +78 -0
- package/rollup.config.js +6 -72
- package/src/azureMapsManagementClient.ts +28 -3
- package/src/models/index.ts +130 -2
- package/src/models/mappers.ts +293 -0
- package/src/models/parameters.ts +7 -1
- package/src/operations/accounts.ts +53 -0
- package/src/operationsInterfaces/accounts.ts +23 -0
- package/tsconfig.json +19 -5
- package/types/arm-maps.d.ts +142 -2
- package/types/tsdoc-metadata.json +1 -1
- package/LICENSE.txt +0 -21
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
import { __asyncValues, __awaiter } from "tslib";
|
|
9
|
+
// Copyright (c) Microsoft Corporation.
|
|
10
|
+
// Licensed under the MIT License.
|
|
11
|
+
import { AzureMapsManagementClient } from "@azure/arm-maps";
|
|
12
|
+
import { DefaultAzureCredential } from "@azure/identity";
|
|
13
|
+
/**
|
|
14
|
+
* This sample demonstrates how to Get all Maps Accounts in a Subscription
|
|
15
|
+
*
|
|
16
|
+
* @summary Get all Maps Accounts in a Subscription
|
|
17
|
+
* x-ms-original-file: specification/maps/resource-manager/Microsoft.Maps/preview/2021-12-01-preview/examples/ListAccountsBySubscription.json
|
|
18
|
+
*/
|
|
19
|
+
function listAccountsBySubscription() {
|
|
20
|
+
var e_1, _a;
|
|
21
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
22
|
+
const subscriptionId = "21a9967a-e8a9-4656-a70b-96ff1c4d05a0";
|
|
23
|
+
const credential = new DefaultAzureCredential();
|
|
24
|
+
const client = new AzureMapsManagementClient(credential, subscriptionId);
|
|
25
|
+
const resArray = new Array();
|
|
26
|
+
try {
|
|
27
|
+
for (var _b = __asyncValues(client.accounts.listBySubscription()), _c; _c = yield _b.next(), !_c.done;) {
|
|
28
|
+
let item = _c.value;
|
|
29
|
+
resArray.push(item);
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
33
|
+
finally {
|
|
34
|
+
try {
|
|
35
|
+
if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
|
|
36
|
+
}
|
|
37
|
+
finally { if (e_1) throw e_1.error; }
|
|
38
|
+
}
|
|
39
|
+
console.log(resArray);
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
listAccountsBySubscription().catch(console.error);
|
|
43
|
+
//# sourceMappingURL=accountsListBySubscriptionSample.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"accountsListBySubscriptionSample.js","sourceRoot":"","sources":["../../samples-dev/accountsListBySubscriptionSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,yBAAyB,EAAE,MAAM,iBAAiB,CAAC;AAC5D,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,0BAA0B;;;QACvC,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,yBAAyB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACzE,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;;YAC7B,KAAuB,IAAA,KAAA,cAAA,MAAM,CAAC,QAAQ,CAAC,kBAAkB,EAAE,CAAA,IAAA;gBAAhD,IAAI,IAAI,WAAA,CAAA;gBACjB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;aACrB;;;;;;;;;QACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;;CACvB;AAED,0BAA0B,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"accountsListKeysSample.d.ts","sourceRoot":"","sources":["../../samples-dev/accountsListKeysSample.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
import { __awaiter } from "tslib";
|
|
9
|
+
// Copyright (c) Microsoft Corporation.
|
|
10
|
+
// Licensed under the MIT License.
|
|
11
|
+
import { AzureMapsManagementClient } from "@azure/arm-maps";
|
|
12
|
+
import { DefaultAzureCredential } from "@azure/identity";
|
|
13
|
+
/**
|
|
14
|
+
* This sample demonstrates how to Get the keys to use with the Maps APIs. A key is used to authenticate and authorize access to the Maps REST APIs. Only one key is needed at a time; two are given to provide seamless key regeneration.
|
|
15
|
+
*
|
|
16
|
+
* @summary Get the keys to use with the Maps APIs. A key is used to authenticate and authorize access to the Maps REST APIs. Only one key is needed at a time; two are given to provide seamless key regeneration.
|
|
17
|
+
* x-ms-original-file: specification/maps/resource-manager/Microsoft.Maps/preview/2021-12-01-preview/examples/ListKeys.json
|
|
18
|
+
*/
|
|
19
|
+
function listKeys() {
|
|
20
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
21
|
+
const subscriptionId = "21a9967a-e8a9-4656-a70b-96ff1c4d05a0";
|
|
22
|
+
const resourceGroupName = "myResourceGroup";
|
|
23
|
+
const accountName = "myMapsAccount";
|
|
24
|
+
const credential = new DefaultAzureCredential();
|
|
25
|
+
const client = new AzureMapsManagementClient(credential, subscriptionId);
|
|
26
|
+
const result = yield client.accounts.listKeys(resourceGroupName, accountName);
|
|
27
|
+
console.log(result);
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
listKeys().catch(console.error);
|
|
31
|
+
//# sourceMappingURL=accountsListKeysSample.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"accountsListKeysSample.js","sourceRoot":"","sources":["../../samples-dev/accountsListKeysSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,yBAAyB,EAAE,MAAM,iBAAiB,CAAC;AAC5D,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,QAAQ;;QACrB,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,iBAAiB,GAAG,iBAAiB,CAAC;QAC5C,MAAM,WAAW,GAAG,eAAe,CAAC;QACpC,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,yBAAyB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACzE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,QAAQ,CAAC,QAAQ,CAAC,iBAAiB,EAAE,WAAW,CAAC,CAAC;QAC9E,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,QAAQ,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"accountsListSasSample.d.ts","sourceRoot":"","sources":["../../samples-dev/accountsListSasSample.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
import { __awaiter } from "tslib";
|
|
9
|
+
// Copyright (c) Microsoft Corporation.
|
|
10
|
+
// Licensed under the MIT License.
|
|
11
|
+
import { AzureMapsManagementClient } from "@azure/arm-maps";
|
|
12
|
+
import { DefaultAzureCredential } from "@azure/identity";
|
|
13
|
+
/**
|
|
14
|
+
* This sample demonstrates how to Create and list an account shared access signature token. Use this SAS token for authentication to Azure Maps REST APIs through various Azure Maps SDKs. As prerequisite to create a SAS Token.
|
|
15
|
+
|
|
16
|
+
Prerequisites:
|
|
17
|
+
1. Create or have an existing User Assigned Managed Identity in the same Azure region as the account.
|
|
18
|
+
2. Create or update an Azure Map account with the same Azure region as the User Assigned Managed Identity is placed.
|
|
19
|
+
*
|
|
20
|
+
* @summary Create and list an account shared access signature token. Use this SAS token for authentication to Azure Maps REST APIs through various Azure Maps SDKs. As prerequisite to create a SAS Token.
|
|
21
|
+
|
|
22
|
+
Prerequisites:
|
|
23
|
+
1. Create or have an existing User Assigned Managed Identity in the same Azure region as the account.
|
|
24
|
+
2. Create or update an Azure Map account with the same Azure region as the User Assigned Managed Identity is placed.
|
|
25
|
+
* x-ms-original-file: specification/maps/resource-manager/Microsoft.Maps/preview/2021-12-01-preview/examples/AccountListSAS.json
|
|
26
|
+
*/
|
|
27
|
+
function listAccountSas() {
|
|
28
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
29
|
+
const subscriptionId = "21a9967a-e8a9-4656-a70b-96ff1c4d05a0";
|
|
30
|
+
const resourceGroupName = "myResourceGroup";
|
|
31
|
+
const accountName = "myMapsAccount";
|
|
32
|
+
const mapsAccountSasParameters = {
|
|
33
|
+
expiry: "2017-05-24T11:42:03.1567373Z",
|
|
34
|
+
maxRatePerSecond: 500,
|
|
35
|
+
principalId: "e917f87b-324d-4728-98ed-e31d311a7d65",
|
|
36
|
+
regions: ["eastus"],
|
|
37
|
+
signingKey: "primaryKey",
|
|
38
|
+
start: "2017-05-24T10:42:03.1567373Z"
|
|
39
|
+
};
|
|
40
|
+
const credential = new DefaultAzureCredential();
|
|
41
|
+
const client = new AzureMapsManagementClient(credential, subscriptionId);
|
|
42
|
+
const result = yield client.accounts.listSas(resourceGroupName, accountName, mapsAccountSasParameters);
|
|
43
|
+
console.log(result);
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
listAccountSas().catch(console.error);
|
|
47
|
+
//# sourceMappingURL=accountsListSasSample.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"accountsListSasSample.js","sourceRoot":"","sources":["../../samples-dev/accountsListSasSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAEL,yBAAyB,EAC1B,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;;;;;;;;;GAaG;AACH,SAAe,cAAc;;QAC3B,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,iBAAiB,GAAG,iBAAiB,CAAC;QAC5C,MAAM,WAAW,GAAG,eAAe,CAAC;QACpC,MAAM,wBAAwB,GAAyB;YACrD,MAAM,EAAE,8BAA8B;YACtC,gBAAgB,EAAE,GAAG;YACrB,WAAW,EAAE,sCAAsC;YACnD,OAAO,EAAE,CAAC,QAAQ,CAAC;YACnB,UAAU,EAAE,YAAY;YACxB,KAAK,EAAE,8BAA8B;SACtC,CAAC;QACF,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,yBAAyB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACzE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,QAAQ,CAAC,OAAO,CAC1C,iBAAiB,EACjB,WAAW,EACX,wBAAwB,CACzB,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,cAAc,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"accountsRegenerateKeysSample.d.ts","sourceRoot":"","sources":["../../samples-dev/accountsRegenerateKeysSample.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
import { __awaiter } from "tslib";
|
|
9
|
+
// Copyright (c) Microsoft Corporation.
|
|
10
|
+
// Licensed under the MIT License.
|
|
11
|
+
import { AzureMapsManagementClient } from "@azure/arm-maps";
|
|
12
|
+
import { DefaultAzureCredential } from "@azure/identity";
|
|
13
|
+
/**
|
|
14
|
+
* This sample demonstrates how to Regenerate either the primary or secondary key for use with the Maps APIs. The old key will stop working immediately.
|
|
15
|
+
*
|
|
16
|
+
* @summary Regenerate either the primary or secondary key for use with the Maps APIs. The old key will stop working immediately.
|
|
17
|
+
* x-ms-original-file: specification/maps/resource-manager/Microsoft.Maps/preview/2021-12-01-preview/examples/RegenerateKey.json
|
|
18
|
+
*/
|
|
19
|
+
function regenerateKey() {
|
|
20
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
21
|
+
const subscriptionId = "21a9967a-e8a9-4656-a70b-96ff1c4d05a0";
|
|
22
|
+
const resourceGroupName = "myResourceGroup";
|
|
23
|
+
const accountName = "myMapsAccount";
|
|
24
|
+
const keySpecification = { keyType: "primary" };
|
|
25
|
+
const credential = new DefaultAzureCredential();
|
|
26
|
+
const client = new AzureMapsManagementClient(credential, subscriptionId);
|
|
27
|
+
const result = yield client.accounts.regenerateKeys(resourceGroupName, accountName, keySpecification);
|
|
28
|
+
console.log(result);
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
regenerateKey().catch(console.error);
|
|
32
|
+
//# sourceMappingURL=accountsRegenerateKeysSample.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"accountsRegenerateKeysSample.js","sourceRoot":"","sources":["../../samples-dev/accountsRegenerateKeysSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAEL,yBAAyB,EAC1B,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,aAAa;;QAC1B,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,iBAAiB,GAAG,iBAAiB,CAAC;QAC5C,MAAM,WAAW,GAAG,eAAe,CAAC;QACpC,MAAM,gBAAgB,GAAyB,EAAE,OAAO,EAAE,SAAS,EAAE,CAAC;QACtE,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,yBAAyB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACzE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,QAAQ,CAAC,cAAc,CACjD,iBAAiB,EACjB,WAAW,EACX,gBAAgB,CACjB,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,aAAa,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"accountsUpdateSample.d.ts","sourceRoot":"","sources":["../../samples-dev/accountsUpdateSample.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
import { __awaiter } from "tslib";
|
|
9
|
+
// Copyright (c) Microsoft Corporation.
|
|
10
|
+
// Licensed under the MIT License.
|
|
11
|
+
import { AzureMapsManagementClient } from "@azure/arm-maps";
|
|
12
|
+
import { DefaultAzureCredential } from "@azure/identity";
|
|
13
|
+
/**
|
|
14
|
+
* This sample demonstrates how to Updates a Maps Account. Only a subset of the parameters may be updated after creation, such as Sku, Tags, Properties.
|
|
15
|
+
*
|
|
16
|
+
* @summary Updates a Maps Account. Only a subset of the parameters may be updated after creation, such as Sku, Tags, Properties.
|
|
17
|
+
* x-ms-original-file: specification/maps/resource-manager/Microsoft.Maps/preview/2021-12-01-preview/examples/UpdateAccountManagedIdentity.json
|
|
18
|
+
*/
|
|
19
|
+
function updateAccountManagedIdentities() {
|
|
20
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
21
|
+
const subscriptionId = "21a9967a-e8a9-4656-a70b-96ff1c4d05a0";
|
|
22
|
+
const resourceGroupName = "myResourceGroup";
|
|
23
|
+
const accountName = "myMapsAccount";
|
|
24
|
+
const mapsAccountUpdateParameters = {
|
|
25
|
+
identity: {
|
|
26
|
+
type: "SystemAssigned, UserAssigned",
|
|
27
|
+
userAssignedIdentities: {
|
|
28
|
+
"/subscriptions/21a9967aE8a94656A70b96ff1c4d05a0/resourceGroups/myResourceGroup/providers/MicrosoftManagedIdentity/userAssignedIdentities/identityName": {}
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
kind: "Gen2",
|
|
32
|
+
linkedResources: [
|
|
33
|
+
{
|
|
34
|
+
id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/accounts/{storageName}",
|
|
35
|
+
uniqueName: "myBatchStorageAccount"
|
|
36
|
+
}
|
|
37
|
+
],
|
|
38
|
+
sku: { name: "G2" }
|
|
39
|
+
};
|
|
40
|
+
const credential = new DefaultAzureCredential();
|
|
41
|
+
const client = new AzureMapsManagementClient(credential, subscriptionId);
|
|
42
|
+
const result = yield client.accounts.update(resourceGroupName, accountName, mapsAccountUpdateParameters);
|
|
43
|
+
console.log(result);
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
updateAccountManagedIdentities().catch(console.error);
|
|
47
|
+
/**
|
|
48
|
+
* This sample demonstrates how to Updates a Maps Account. Only a subset of the parameters may be updated after creation, such as Sku, Tags, Properties.
|
|
49
|
+
*
|
|
50
|
+
* @summary Updates a Maps Account. Only a subset of the parameters may be updated after creation, such as Sku, Tags, Properties.
|
|
51
|
+
* x-ms-original-file: specification/maps/resource-manager/Microsoft.Maps/preview/2021-12-01-preview/examples/UpdateAccount.json
|
|
52
|
+
*/
|
|
53
|
+
function updateAccountTags() {
|
|
54
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
55
|
+
const subscriptionId = "21a9967a-e8a9-4656-a70b-96ff1c4d05a0";
|
|
56
|
+
const resourceGroupName = "myResourceGroup";
|
|
57
|
+
const accountName = "myMapsAccount";
|
|
58
|
+
const mapsAccountUpdateParameters = {
|
|
59
|
+
tags: { specialTag: "true" }
|
|
60
|
+
};
|
|
61
|
+
const credential = new DefaultAzureCredential();
|
|
62
|
+
const client = new AzureMapsManagementClient(credential, subscriptionId);
|
|
63
|
+
const result = yield client.accounts.update(resourceGroupName, accountName, mapsAccountUpdateParameters);
|
|
64
|
+
console.log(result);
|
|
65
|
+
});
|
|
66
|
+
}
|
|
67
|
+
updateAccountTags().catch(console.error);
|
|
68
|
+
/**
|
|
69
|
+
* This sample demonstrates how to Updates a Maps Account. Only a subset of the parameters may be updated after creation, such as Sku, Tags, Properties.
|
|
70
|
+
*
|
|
71
|
+
* @summary Updates a Maps Account. Only a subset of the parameters may be updated after creation, such as Sku, Tags, Properties.
|
|
72
|
+
* x-ms-original-file: specification/maps/resource-manager/Microsoft.Maps/preview/2021-12-01-preview/examples/UpdateAccountGen1.json
|
|
73
|
+
*/
|
|
74
|
+
function updateToGen1Account() {
|
|
75
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
76
|
+
const subscriptionId = "21a9967a-e8a9-4656-a70b-96ff1c4d05a0";
|
|
77
|
+
const resourceGroupName = "myResourceGroup";
|
|
78
|
+
const accountName = "myMapsAccount";
|
|
79
|
+
const mapsAccountUpdateParameters = {
|
|
80
|
+
kind: "Gen1",
|
|
81
|
+
sku: { name: "S1" }
|
|
82
|
+
};
|
|
83
|
+
const credential = new DefaultAzureCredential();
|
|
84
|
+
const client = new AzureMapsManagementClient(credential, subscriptionId);
|
|
85
|
+
const result = yield client.accounts.update(resourceGroupName, accountName, mapsAccountUpdateParameters);
|
|
86
|
+
console.log(result);
|
|
87
|
+
});
|
|
88
|
+
}
|
|
89
|
+
updateToGen1Account().catch(console.error);
|
|
90
|
+
/**
|
|
91
|
+
* This sample demonstrates how to Updates a Maps Account. Only a subset of the parameters may be updated after creation, such as Sku, Tags, Properties.
|
|
92
|
+
*
|
|
93
|
+
* @summary Updates a Maps Account. Only a subset of the parameters may be updated after creation, such as Sku, Tags, Properties.
|
|
94
|
+
* x-ms-original-file: specification/maps/resource-manager/Microsoft.Maps/preview/2021-12-01-preview/examples/UpdateAccountGen2.json
|
|
95
|
+
*/
|
|
96
|
+
function updateToGen2Account() {
|
|
97
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
98
|
+
const subscriptionId = "21a9967a-e8a9-4656-a70b-96ff1c4d05a0";
|
|
99
|
+
const resourceGroupName = "myResourceGroup";
|
|
100
|
+
const accountName = "myMapsAccount";
|
|
101
|
+
const mapsAccountUpdateParameters = {
|
|
102
|
+
kind: "Gen2",
|
|
103
|
+
sku: { name: "G2" }
|
|
104
|
+
};
|
|
105
|
+
const credential = new DefaultAzureCredential();
|
|
106
|
+
const client = new AzureMapsManagementClient(credential, subscriptionId);
|
|
107
|
+
const result = yield client.accounts.update(resourceGroupName, accountName, mapsAccountUpdateParameters);
|
|
108
|
+
console.log(result);
|
|
109
|
+
});
|
|
110
|
+
}
|
|
111
|
+
updateToGen2Account().catch(console.error);
|
|
112
|
+
//# sourceMappingURL=accountsUpdateSample.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"accountsUpdateSample.js","sourceRoot":"","sources":["../../samples-dev/accountsUpdateSample.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"creatorsCreateOrUpdateSample.d.ts","sourceRoot":"","sources":["../../samples-dev/creatorsCreateOrUpdateSample.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
import { __awaiter } from "tslib";
|
|
9
|
+
// Copyright (c) Microsoft Corporation.
|
|
10
|
+
// Licensed under the MIT License.
|
|
11
|
+
import { AzureMapsManagementClient } from "@azure/arm-maps";
|
|
12
|
+
import { DefaultAzureCredential } from "@azure/identity";
|
|
13
|
+
/**
|
|
14
|
+
* This sample demonstrates how to Create or update a Maps Creator resource. Creator resource will manage Azure resources required to populate a custom set of mapping data. It requires an account to exist before it can be created.
|
|
15
|
+
*
|
|
16
|
+
* @summary Create or update a Maps Creator resource. Creator resource will manage Azure resources required to populate a custom set of mapping data. It requires an account to exist before it can be created.
|
|
17
|
+
* x-ms-original-file: specification/maps/resource-manager/Microsoft.Maps/preview/2021-12-01-preview/examples/CreateMapsCreator.json
|
|
18
|
+
*/
|
|
19
|
+
function createCreatorResource() {
|
|
20
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
21
|
+
const subscriptionId = "21a9967a-e8a9-4656-a70b-96ff1c4d05a0";
|
|
22
|
+
const resourceGroupName = "myResourceGroup";
|
|
23
|
+
const accountName = "myMapsAccount";
|
|
24
|
+
const creatorName = "myCreator";
|
|
25
|
+
const creatorResource = {
|
|
26
|
+
location: "eastus2",
|
|
27
|
+
properties: { storageUnits: 5 },
|
|
28
|
+
tags: { test: "true" }
|
|
29
|
+
};
|
|
30
|
+
const credential = new DefaultAzureCredential();
|
|
31
|
+
const client = new AzureMapsManagementClient(credential, subscriptionId);
|
|
32
|
+
const result = yield client.creators.createOrUpdate(resourceGroupName, accountName, creatorName, creatorResource);
|
|
33
|
+
console.log(result);
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
createCreatorResource().catch(console.error);
|
|
37
|
+
//# sourceMappingURL=creatorsCreateOrUpdateSample.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"creatorsCreateOrUpdateSample.js","sourceRoot":"","sources":["../../samples-dev/creatorsCreateOrUpdateSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAW,yBAAyB,EAAE,MAAM,iBAAiB,CAAC;AACrE,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,qBAAqB;;QAClC,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,iBAAiB,GAAG,iBAAiB,CAAC;QAC5C,MAAM,WAAW,GAAG,eAAe,CAAC;QACpC,MAAM,WAAW,GAAG,WAAW,CAAC;QAChC,MAAM,eAAe,GAAY;YAC/B,QAAQ,EAAE,SAAS;YACnB,UAAU,EAAE,EAAE,YAAY,EAAE,CAAC,EAAE;YAC/B,IAAI,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE;SACvB,CAAC;QACF,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,yBAAyB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACzE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,QAAQ,CAAC,cAAc,CACjD,iBAAiB,EACjB,WAAW,EACX,WAAW,EACX,eAAe,CAChB,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,qBAAqB,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"creatorsDeleteSample.d.ts","sourceRoot":"","sources":["../../samples-dev/creatorsDeleteSample.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
import { __awaiter } from "tslib";
|
|
9
|
+
// Copyright (c) Microsoft Corporation.
|
|
10
|
+
// Licensed under the MIT License.
|
|
11
|
+
import { AzureMapsManagementClient } from "@azure/arm-maps";
|
|
12
|
+
import { DefaultAzureCredential } from "@azure/identity";
|
|
13
|
+
/**
|
|
14
|
+
* This sample demonstrates how to Delete a Maps Creator resource.
|
|
15
|
+
*
|
|
16
|
+
* @summary Delete a Maps Creator resource.
|
|
17
|
+
* x-ms-original-file: specification/maps/resource-manager/Microsoft.Maps/preview/2021-12-01-preview/examples/DeleteMapsCreator.json
|
|
18
|
+
*/
|
|
19
|
+
function deleteCreatorResource() {
|
|
20
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
21
|
+
const subscriptionId = "21a9967a-e8a9-4656-a70b-96ff1c4d05a0";
|
|
22
|
+
const resourceGroupName = "myResourceGroup";
|
|
23
|
+
const accountName = "myMapsAccount";
|
|
24
|
+
const creatorName = "myCreator";
|
|
25
|
+
const credential = new DefaultAzureCredential();
|
|
26
|
+
const client = new AzureMapsManagementClient(credential, subscriptionId);
|
|
27
|
+
const result = yield client.creators.delete(resourceGroupName, accountName, creatorName);
|
|
28
|
+
console.log(result);
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
deleteCreatorResource().catch(console.error);
|
|
32
|
+
//# sourceMappingURL=creatorsDeleteSample.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"creatorsDeleteSample.js","sourceRoot":"","sources":["../../samples-dev/creatorsDeleteSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,yBAAyB,EAAE,MAAM,iBAAiB,CAAC;AAC5D,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,qBAAqB;;QAClC,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,iBAAiB,GAAG,iBAAiB,CAAC;QAC5C,MAAM,WAAW,GAAG,eAAe,CAAC;QACpC,MAAM,WAAW,GAAG,WAAW,CAAC;QAChC,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,yBAAyB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACzE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,QAAQ,CAAC,MAAM,CACzC,iBAAiB,EACjB,WAAW,EACX,WAAW,CACZ,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,qBAAqB,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"creatorsGetSample.d.ts","sourceRoot":"","sources":["../../samples-dev/creatorsGetSample.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
import { __awaiter } from "tslib";
|
|
9
|
+
// Copyright (c) Microsoft Corporation.
|
|
10
|
+
// Licensed under the MIT License.
|
|
11
|
+
import { AzureMapsManagementClient } from "@azure/arm-maps";
|
|
12
|
+
import { DefaultAzureCredential } from "@azure/identity";
|
|
13
|
+
/**
|
|
14
|
+
* This sample demonstrates how to Get a Maps Creator resource.
|
|
15
|
+
*
|
|
16
|
+
* @summary Get a Maps Creator resource.
|
|
17
|
+
* x-ms-original-file: specification/maps/resource-manager/Microsoft.Maps/preview/2021-12-01-preview/examples/GetMapsCreator.json
|
|
18
|
+
*/
|
|
19
|
+
function getCreatorResource() {
|
|
20
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
21
|
+
const subscriptionId = "21a9967a-e8a9-4656-a70b-96ff1c4d05a0";
|
|
22
|
+
const resourceGroupName = "myResourceGroup";
|
|
23
|
+
const accountName = "myMapsAccount";
|
|
24
|
+
const creatorName = "myCreator";
|
|
25
|
+
const credential = new DefaultAzureCredential();
|
|
26
|
+
const client = new AzureMapsManagementClient(credential, subscriptionId);
|
|
27
|
+
const result = yield client.creators.get(resourceGroupName, accountName, creatorName);
|
|
28
|
+
console.log(result);
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
getCreatorResource().catch(console.error);
|
|
32
|
+
//# sourceMappingURL=creatorsGetSample.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"creatorsGetSample.js","sourceRoot":"","sources":["../../samples-dev/creatorsGetSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,yBAAyB,EAAE,MAAM,iBAAiB,CAAC;AAC5D,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,kBAAkB;;QAC/B,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,iBAAiB,GAAG,iBAAiB,CAAC;QAC5C,MAAM,WAAW,GAAG,eAAe,CAAC;QACpC,MAAM,WAAW,GAAG,WAAW,CAAC;QAChC,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,yBAAyB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACzE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,QAAQ,CAAC,GAAG,CACtC,iBAAiB,EACjB,WAAW,EACX,WAAW,CACZ,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,kBAAkB,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"creatorsListByAccountSample.d.ts","sourceRoot":"","sources":["../../samples-dev/creatorsListByAccountSample.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
import { __asyncValues, __awaiter } from "tslib";
|
|
9
|
+
// Copyright (c) Microsoft Corporation.
|
|
10
|
+
// Licensed under the MIT License.
|
|
11
|
+
import { AzureMapsManagementClient } from "@azure/arm-maps";
|
|
12
|
+
import { DefaultAzureCredential } from "@azure/identity";
|
|
13
|
+
/**
|
|
14
|
+
* This sample demonstrates how to Get all Creator instances for an Azure Maps Account
|
|
15
|
+
*
|
|
16
|
+
* @summary Get all Creator instances for an Azure Maps Account
|
|
17
|
+
* x-ms-original-file: specification/maps/resource-manager/Microsoft.Maps/preview/2021-12-01-preview/examples/ListMapsCreatorsByAccount.json
|
|
18
|
+
*/
|
|
19
|
+
function listCreatorResourcesByAccount() {
|
|
20
|
+
var e_1, _a;
|
|
21
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
22
|
+
const subscriptionId = "21a9967a-e8a9-4656-a70b-96ff1c4d05a0";
|
|
23
|
+
const resourceGroupName = "myResourceGroup";
|
|
24
|
+
const accountName = "myMapsAccount";
|
|
25
|
+
const credential = new DefaultAzureCredential();
|
|
26
|
+
const client = new AzureMapsManagementClient(credential, subscriptionId);
|
|
27
|
+
const resArray = new Array();
|
|
28
|
+
try {
|
|
29
|
+
for (var _b = __asyncValues(client.creators.listByAccount(resourceGroupName, accountName)), _c; _c = yield _b.next(), !_c.done;) {
|
|
30
|
+
let item = _c.value;
|
|
31
|
+
resArray.push(item);
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
35
|
+
finally {
|
|
36
|
+
try {
|
|
37
|
+
if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
|
|
38
|
+
}
|
|
39
|
+
finally { if (e_1) throw e_1.error; }
|
|
40
|
+
}
|
|
41
|
+
console.log(resArray);
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
listCreatorResourcesByAccount().catch(console.error);
|
|
45
|
+
//# sourceMappingURL=creatorsListByAccountSample.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"creatorsListByAccountSample.js","sourceRoot":"","sources":["../../samples-dev/creatorsListByAccountSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,yBAAyB,EAAE,MAAM,iBAAiB,CAAC;AAC5D,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,6BAA6B;;;QAC1C,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,iBAAiB,GAAG,iBAAiB,CAAC;QAC5C,MAAM,WAAW,GAAG,eAAe,CAAC;QACpC,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,yBAAyB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACzE,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;;YAC7B,KAAuB,IAAA,KAAA,cAAA,MAAM,CAAC,QAAQ,CAAC,aAAa,CAClD,iBAAiB,EACjB,WAAW,CACZ,CAAA,IAAA;gBAHU,IAAI,IAAI,WAAA,CAAA;gBAIjB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;aACrB;;;;;;;;;QACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;;CACvB;AAED,6BAA6B,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"creatorsUpdateSample.d.ts","sourceRoot":"","sources":["../../samples-dev/creatorsUpdateSample.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
import { __awaiter } from "tslib";
|
|
9
|
+
// Copyright (c) Microsoft Corporation.
|
|
10
|
+
// Licensed under the MIT License.
|
|
11
|
+
import { AzureMapsManagementClient } from "@azure/arm-maps";
|
|
12
|
+
import { DefaultAzureCredential } from "@azure/identity";
|
|
13
|
+
/**
|
|
14
|
+
* This sample demonstrates how to Updates the Maps Creator resource. Only a subset of the parameters may be updated after creation, such as Tags.
|
|
15
|
+
*
|
|
16
|
+
* @summary Updates the Maps Creator resource. Only a subset of the parameters may be updated after creation, such as Tags.
|
|
17
|
+
* x-ms-original-file: specification/maps/resource-manager/Microsoft.Maps/preview/2021-12-01-preview/examples/UpdateMapsCreator.json
|
|
18
|
+
*/
|
|
19
|
+
function updateCreatorResource() {
|
|
20
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
21
|
+
const subscriptionId = "21a9967a-e8a9-4656-a70b-96ff1c4d05a0";
|
|
22
|
+
const resourceGroupName = "myResourceGroup";
|
|
23
|
+
const accountName = "myMapsAccount";
|
|
24
|
+
const creatorName = "myCreator";
|
|
25
|
+
const creatorUpdateParameters = {
|
|
26
|
+
storageUnits: 10,
|
|
27
|
+
tags: { specialTag: "true" }
|
|
28
|
+
};
|
|
29
|
+
const credential = new DefaultAzureCredential();
|
|
30
|
+
const client = new AzureMapsManagementClient(credential, subscriptionId);
|
|
31
|
+
const result = yield client.creators.update(resourceGroupName, accountName, creatorName, creatorUpdateParameters);
|
|
32
|
+
console.log(result);
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
updateCreatorResource().catch(console.error);
|
|
36
|
+
//# sourceMappingURL=creatorsUpdateSample.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"creatorsUpdateSample.js","sourceRoot":"","sources":["../../samples-dev/creatorsUpdateSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAEL,yBAAyB,EAC1B,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,qBAAqB;;QAClC,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,iBAAiB,GAAG,iBAAiB,CAAC;QAC5C,MAAM,WAAW,GAAG,eAAe,CAAC;QACpC,MAAM,WAAW,GAAG,WAAW,CAAC;QAChC,MAAM,uBAAuB,GAA4B;YACvD,YAAY,EAAE,EAAE;YAChB,IAAI,EAAE,EAAE,UAAU,EAAE,MAAM,EAAE;SAC7B,CAAC;QACF,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,yBAAyB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACzE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,QAAQ,CAAC,MAAM,CACzC,iBAAiB,EACjB,WAAW,EACX,WAAW,EACX,uBAAuB,CACxB,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,qBAAqB,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mapsListOperationsSample.d.ts","sourceRoot":"","sources":["../../samples-dev/mapsListOperationsSample.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
import { __asyncValues, __awaiter } from "tslib";
|
|
9
|
+
// Copyright (c) Microsoft Corporation.
|
|
10
|
+
// Licensed under the MIT License.
|
|
11
|
+
import { AzureMapsManagementClient } from "@azure/arm-maps";
|
|
12
|
+
import { DefaultAzureCredential } from "@azure/identity";
|
|
13
|
+
/**
|
|
14
|
+
* This sample demonstrates how to List operations available for the Maps Resource Provider
|
|
15
|
+
*
|
|
16
|
+
* @summary List operations available for the Maps Resource Provider
|
|
17
|
+
* x-ms-original-file: specification/maps/resource-manager/Microsoft.Maps/preview/2021-12-01-preview/examples/GetOperations.json
|
|
18
|
+
*/
|
|
19
|
+
function getOperations() {
|
|
20
|
+
var e_1, _a;
|
|
21
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
22
|
+
const subscriptionId = "00000000-0000-0000-0000-000000000000";
|
|
23
|
+
const credential = new DefaultAzureCredential();
|
|
24
|
+
const client = new AzureMapsManagementClient(credential, subscriptionId);
|
|
25
|
+
const resArray = new Array();
|
|
26
|
+
try {
|
|
27
|
+
for (var _b = __asyncValues(client.maps.listOperations()), _c; _c = yield _b.next(), !_c.done;) {
|
|
28
|
+
let item = _c.value;
|
|
29
|
+
resArray.push(item);
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
33
|
+
finally {
|
|
34
|
+
try {
|
|
35
|
+
if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
|
|
36
|
+
}
|
|
37
|
+
finally { if (e_1) throw e_1.error; }
|
|
38
|
+
}
|
|
39
|
+
console.log(resArray);
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
getOperations().catch(console.error);
|
|
43
|
+
//# sourceMappingURL=mapsListOperationsSample.js.map
|