@azure/arm-maps 3.1.0-beta.2 → 3.1.0
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 +42 -28
- package/LICENSE +1 -1
- package/README.md +1 -1
- package/dist/index.js +219 -64
- 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.js +63 -12
- package/dist-esm/samples-dev/accountsCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/accountsDeleteSample.js +12 -4
- package/dist-esm/samples-dev/accountsDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/accountsGetSample.js +12 -4
- package/dist-esm/samples-dev/accountsGetSample.js.map +1 -1
- package/dist-esm/samples-dev/accountsListByResourceGroupSample.js +24 -9
- package/dist-esm/samples-dev/accountsListByResourceGroupSample.js.map +1 -1
- package/dist-esm/samples-dev/accountsListBySubscriptionSample.js +23 -8
- package/dist-esm/samples-dev/accountsListBySubscriptionSample.js.map +1 -1
- package/dist-esm/samples-dev/accountsListKeysSample.js +12 -4
- package/dist-esm/samples-dev/accountsListKeysSample.js.map +1 -1
- package/dist-esm/samples-dev/accountsListSasSample.js +12 -4
- package/dist-esm/samples-dev/accountsListSasSample.js.map +1 -1
- package/dist-esm/samples-dev/accountsRegenerateKeysSample.js +12 -4
- package/dist-esm/samples-dev/accountsRegenerateKeysSample.js.map +1 -1
- package/dist-esm/samples-dev/accountsUpdateSample.js +63 -16
- package/dist-esm/samples-dev/accountsUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/creatorsCreateOrUpdateSample.js +12 -4
- package/dist-esm/samples-dev/creatorsCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/creatorsDeleteSample.js +12 -4
- package/dist-esm/samples-dev/creatorsDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/creatorsGetSample.js +12 -4
- package/dist-esm/samples-dev/creatorsGetSample.js.map +1 -1
- package/dist-esm/samples-dev/creatorsListByAccountSample.js +24 -9
- package/dist-esm/samples-dev/creatorsListByAccountSample.js.map +1 -1
- package/dist-esm/samples-dev/creatorsUpdateSample.js +12 -4
- package/dist-esm/samples-dev/creatorsUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/mapsListOperationsSample.js +22 -9
- package/dist-esm/samples-dev/mapsListOperationsSample.js.map +1 -1
- package/dist-esm/samples-dev/mapsListSubscriptionOperationsSample.js +23 -8
- package/dist-esm/samples-dev/mapsListSubscriptionOperationsSample.js.map +1 -1
- package/dist-esm/src/azureMapsManagementClient.d.ts +2 -1
- package/dist-esm/src/azureMapsManagementClient.d.ts.map +1 -1
- package/dist-esm/src/azureMapsManagementClient.js +9 -11
- package/dist-esm/src/azureMapsManagementClient.js.map +1 -1
- package/dist-esm/src/models/index.d.ts +142 -50
- package/dist-esm/src/models/index.d.ts.map +1 -1
- package/dist-esm/src/models/index.js +32 -0
- package/dist-esm/src/models/index.js.map +1 -1
- package/dist-esm/src/models/mappers.d.ts +4 -1
- package/dist-esm/src/models/mappers.d.ts.map +1 -1
- package/dist-esm/src/models/mappers.js +109 -17
- package/dist-esm/src/models/mappers.js.map +1 -1
- package/dist-esm/src/models/parameters.js +1 -1
- package/dist-esm/src/models/parameters.js.map +1 -1
- package/dist-esm/src/operations/accounts.js +24 -12
- package/dist-esm/src/operations/accounts.js.map +1 -1
- package/dist-esm/src/operations/creators.js +12 -6
- package/dist-esm/src/operations/creators.js.map +1 -1
- package/dist-esm/src/operations/maps.js +24 -12
- package/dist-esm/src/operations/maps.js.map +1 -1
- package/dist-esm/src/pagingHelper.d.ts +4 -4
- package/dist-esm/src/pagingHelper.js +4 -4
- package/dist-esm/test/maps_operations_test.spec.d.ts +4 -0
- package/dist-esm/test/maps_operations_test.spec.d.ts.map +1 -0
- package/dist-esm/test/maps_operations_test.spec.js +140 -0
- package/dist-esm/test/maps_operations_test.spec.js.map +1 -0
- package/package.json +11 -10
- package/review/arm-maps.api.md +65 -12
- package/src/azureMapsManagementClient.ts +19 -5
- package/src/models/index.ts +127 -32
- package/src/models/mappers.ts +112 -19
- package/src/models/parameters.ts +1 -1
- package/src/operations/accounts.ts +0 -2
- package/src/operations/creators.ts +0 -1
- package/src/operations/maps.ts +0 -2
- package/src/pagingHelper.ts +4 -4
- package/types/arm-maps.d.ts +143 -42
- package/types/tsdoc-metadata.json +1 -1
- package/dist-esm/test/sampleTest.d.ts +0 -2
- package/dist-esm/test/sampleTest.d.ts.map +0 -1
- package/dist-esm/test/sampleTest.js +0 -38
- package/dist-esm/test/sampleTest.js.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"maps_operations_test.spec.d.ts","sourceRoot":"","sources":["../../test/maps_operations_test.spec.ts"],"names":[],"mappings":"AA+BA,eAAO,MAAM,kBAAkB;;CAE9B,CAAC"}
|
|
@@ -0,0 +1,140 @@
|
|
|
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
|
+
import { env, Recorder, isPlaybackMode, } from "@azure-tools/test-recorder";
|
|
10
|
+
import { createTestCredential } from "@azure-tools/test-credential";
|
|
11
|
+
import { assert } from "chai";
|
|
12
|
+
import { AzureMapsManagementClient } from "../src/azureMapsManagementClient";
|
|
13
|
+
const replaceableVariables = {
|
|
14
|
+
AZURE_CLIENT_ID: "azure_client_id",
|
|
15
|
+
AZURE_CLIENT_SECRET: "azure_client_secret",
|
|
16
|
+
AZURE_TENANT_ID: "88888888-8888-8888-8888-888888888888",
|
|
17
|
+
SUBSCRIPTION_ID: "azure_subscription_id"
|
|
18
|
+
};
|
|
19
|
+
const recorderOptions = {
|
|
20
|
+
envSetupForPlayback: replaceableVariables
|
|
21
|
+
};
|
|
22
|
+
export const testPollingOptions = {
|
|
23
|
+
updateIntervalInMs: isPlaybackMode() ? 0 : undefined,
|
|
24
|
+
};
|
|
25
|
+
describe("maps test", () => {
|
|
26
|
+
let recorder;
|
|
27
|
+
let subscriptionId;
|
|
28
|
+
let client;
|
|
29
|
+
let location;
|
|
30
|
+
let resourceGroup;
|
|
31
|
+
let resourcename;
|
|
32
|
+
beforeEach(function () {
|
|
33
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
34
|
+
recorder = new Recorder(this.currentTest);
|
|
35
|
+
yield recorder.start(recorderOptions);
|
|
36
|
+
subscriptionId = env.SUBSCRIPTION_ID || '';
|
|
37
|
+
// This is an example of how the environment variables are used
|
|
38
|
+
const credential = createTestCredential();
|
|
39
|
+
client = new AzureMapsManagementClient(credential, subscriptionId, recorder.configureClientOptions({}));
|
|
40
|
+
location = "eastus";
|
|
41
|
+
resourceGroup = "myjstest";
|
|
42
|
+
resourcename = "resourcetest";
|
|
43
|
+
});
|
|
44
|
+
});
|
|
45
|
+
afterEach(function () {
|
|
46
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
47
|
+
yield recorder.stop();
|
|
48
|
+
});
|
|
49
|
+
});
|
|
50
|
+
it("accounts create test", function () {
|
|
51
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
52
|
+
const res = yield client.accounts.createOrUpdate(resourceGroup, resourcename, {
|
|
53
|
+
identity: {
|
|
54
|
+
type: "SystemAssigned"
|
|
55
|
+
},
|
|
56
|
+
kind: "Gen2",
|
|
57
|
+
location,
|
|
58
|
+
properties: {
|
|
59
|
+
disableLocalAuth: false,
|
|
60
|
+
linkedResources: [
|
|
61
|
+
{
|
|
62
|
+
id: "/subscriptions/" + subscriptionId + "/resourceGroups/" + resourceGroup + "/providers/Microsoft.Storage/storageAccounts/czwtestaccount230808",
|
|
63
|
+
uniqueName: "myBatchStorageAccount"
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
id: "/subscriptions/" + subscriptionId + "/resourceGroups/" + resourceGroup + "/providers/Microsoft.Storage/storageAccounts/czwtestaccount230808",
|
|
67
|
+
uniqueName: "myBlobDataSource"
|
|
68
|
+
}
|
|
69
|
+
]
|
|
70
|
+
},
|
|
71
|
+
sku: { name: "G2" },
|
|
72
|
+
tags: { test: "true" }
|
|
73
|
+
});
|
|
74
|
+
assert.equal(res.name, resourcename);
|
|
75
|
+
});
|
|
76
|
+
});
|
|
77
|
+
it("accounts get test", function () {
|
|
78
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
79
|
+
const res = yield client.accounts.get(resourceGroup, resourcename);
|
|
80
|
+
assert.equal(res.name, resourcename);
|
|
81
|
+
});
|
|
82
|
+
});
|
|
83
|
+
it("accounts list test", function () {
|
|
84
|
+
var _a, e_1, _b, _c;
|
|
85
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
86
|
+
const resArray = new Array();
|
|
87
|
+
try {
|
|
88
|
+
for (var _d = true, _e = __asyncValues(client.accounts.listByResourceGroup(resourceGroup)), _f; _f = yield _e.next(), _a = _f.done, !_a;) {
|
|
89
|
+
_c = _f.value;
|
|
90
|
+
_d = false;
|
|
91
|
+
try {
|
|
92
|
+
let item = _c;
|
|
93
|
+
resArray.push(item);
|
|
94
|
+
}
|
|
95
|
+
finally {
|
|
96
|
+
_d = true;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
101
|
+
finally {
|
|
102
|
+
try {
|
|
103
|
+
if (!_d && !_a && (_b = _e.return)) yield _b.call(_e);
|
|
104
|
+
}
|
|
105
|
+
finally { if (e_1) throw e_1.error; }
|
|
106
|
+
}
|
|
107
|
+
assert.equal(resArray.length, 1);
|
|
108
|
+
});
|
|
109
|
+
});
|
|
110
|
+
//should run this case several minutes later
|
|
111
|
+
it("accounts delete test", function () {
|
|
112
|
+
var _a, e_2, _b, _c;
|
|
113
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
114
|
+
const resArray = new Array();
|
|
115
|
+
const res = yield client.accounts.delete(resourceGroup, resourcename);
|
|
116
|
+
try {
|
|
117
|
+
for (var _d = true, _e = __asyncValues(client.accounts.listByResourceGroup(resourceGroup)), _f; _f = yield _e.next(), _a = _f.done, !_a;) {
|
|
118
|
+
_c = _f.value;
|
|
119
|
+
_d = false;
|
|
120
|
+
try {
|
|
121
|
+
let item = _c;
|
|
122
|
+
resArray.push(item);
|
|
123
|
+
}
|
|
124
|
+
finally {
|
|
125
|
+
_d = true;
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
130
|
+
finally {
|
|
131
|
+
try {
|
|
132
|
+
if (!_d && !_a && (_b = _e.return)) yield _b.call(_e);
|
|
133
|
+
}
|
|
134
|
+
finally { if (e_2) throw e_2.error; }
|
|
135
|
+
}
|
|
136
|
+
assert.equal(resArray.length, 0);
|
|
137
|
+
});
|
|
138
|
+
});
|
|
139
|
+
});
|
|
140
|
+
//# sourceMappingURL=maps_operations_test.spec.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"maps_operations_test.spec.js","sourceRoot":"","sources":["../../test/maps_operations_test.spec.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,OAAO,EACL,GAAG,EACH,QAAQ,EAGR,cAAc,GACf,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AACpE,OAAO,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAE9B,OAAO,EAAE,yBAAyB,EAAE,MAAM,kCAAkC,CAAC;AAE7E,MAAM,oBAAoB,GAA2B;IACnD,eAAe,EAAE,iBAAiB;IAClC,mBAAmB,EAAE,qBAAqB;IAC1C,eAAe,EAAE,sCAAsC;IACvD,eAAe,EAAE,uBAAuB;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AG,IAAI,KAAK,EAAE,CAAC;YAC7B,MAAM,GAAG,GAAG,MAAM,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,aAAa,EAAE,YAAY,CACvE,CAAA;;gBACG,KAAuB,eAAA,KAAA,cAAA,MAAM,CAAC,QAAQ,CAAC,mBAAmB,CAAC,aAAa,CAAC,CAAA,IAAA;oBAAlD,cAAkD;oBAAlD,WAAkD;;wBAA9D,IAAI,IAAI,KAAA,CAAA;wBACjB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;;;;;iBACrB;;;;;;;;;YACD,MAAM,CAAC,KAAK,CAAC,QAAQ,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC;;KAClC,CAAC,CAAC;AACL,CAAC,CAAC,CAAA"}
|
package/package.json
CHANGED
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
"sdk-type": "mgmt",
|
|
4
4
|
"author": "Microsoft Corporation",
|
|
5
5
|
"description": "A generated SDK for AzureMapsManagementClient.",
|
|
6
|
-
"version": "3.1.0
|
|
6
|
+
"version": "3.1.0",
|
|
7
7
|
"engines": {
|
|
8
8
|
"node": ">=14.0.0"
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|
|
11
11
|
"@azure/core-paging": "^1.2.0",
|
|
12
|
-
"@azure/core-client": "^1.
|
|
12
|
+
"@azure/core-client": "^1.7.0",
|
|
13
13
|
"@azure/core-auth": "^1.3.0",
|
|
14
14
|
"@azure/core-rest-pipeline": "^1.8.0",
|
|
15
15
|
"tslib": "^2.2.0"
|
|
@@ -27,18 +27,19 @@
|
|
|
27
27
|
"types": "./types/arm-maps.d.ts",
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"@microsoft/api-extractor": "^7.31.1",
|
|
30
|
-
"@rollup/plugin-commonjs": "^
|
|
31
|
-
"@rollup/plugin-json": "^
|
|
32
|
-
"@rollup/plugin-multi-entry": "^
|
|
30
|
+
"@rollup/plugin-commonjs": "^24.0.0",
|
|
31
|
+
"@rollup/plugin-json": "^6.0.0",
|
|
32
|
+
"@rollup/plugin-multi-entry": "^6.0.0",
|
|
33
33
|
"@rollup/plugin-node-resolve": "^13.1.3",
|
|
34
|
-
"mkdirp": "^1.
|
|
34
|
+
"mkdirp": "^2.1.2",
|
|
35
35
|
"rollup": "^2.66.1",
|
|
36
36
|
"rollup-plugin-sourcemaps": "^0.6.3",
|
|
37
|
-
"typescript": "~
|
|
37
|
+
"typescript": "~5.0.0",
|
|
38
38
|
"uglify-js": "^3.4.9",
|
|
39
39
|
"rimraf": "^3.0.0",
|
|
40
|
+
"dotenv": "^16.0.0",
|
|
40
41
|
"@azure/identity": "^2.0.1",
|
|
41
|
-
"@azure-tools/test-recorder": "^
|
|
42
|
+
"@azure-tools/test-recorder": "^3.0.0",
|
|
42
43
|
"@azure-tools/test-credential": "^1.0.0",
|
|
43
44
|
"mocha": "^7.1.1",
|
|
44
45
|
"@types/chai": "^4.2.8",
|
|
@@ -47,7 +48,6 @@
|
|
|
47
48
|
"@types/node": "^14.0.0",
|
|
48
49
|
"@azure/dev-tool": "^1.0.0"
|
|
49
50
|
},
|
|
50
|
-
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/maps/arm-maps",
|
|
51
51
|
"repository": {
|
|
52
52
|
"type": "git",
|
|
53
53
|
"url": "https://github.com/Azure/azure-sdk-for-js.git"
|
|
@@ -109,6 +109,7 @@
|
|
|
109
109
|
]
|
|
110
110
|
},
|
|
111
111
|
"autoPublish": true,
|
|
112
|
+
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/maps/arm-maps",
|
|
112
113
|
"//sampleConfiguration": {
|
|
113
114
|
"productName": "",
|
|
114
115
|
"productSlugs": [
|
|
@@ -117,4 +118,4 @@
|
|
|
117
118
|
"disableDocsMs": true,
|
|
118
119
|
"apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-maps?view=azure-node-preview"
|
|
119
120
|
}
|
|
120
|
-
}
|
|
121
|
+
}
|
package/review/arm-maps.api.md
CHANGED
|
@@ -110,6 +110,7 @@ export class AzureMapsManagementClient extends coreClient.ServiceClient {
|
|
|
110
110
|
// (undocumented)
|
|
111
111
|
$host: string;
|
|
112
112
|
constructor(credentials: coreAuth.TokenCredential, subscriptionId: string, options?: AzureMapsManagementClientOptionalParams);
|
|
113
|
+
constructor(credentials: coreAuth.TokenCredential, options?: AzureMapsManagementClientOptionalParams);
|
|
113
114
|
// (undocumented)
|
|
114
115
|
accounts: Accounts;
|
|
115
116
|
// (undocumented)
|
|
@@ -119,7 +120,7 @@ export class AzureMapsManagementClient extends coreClient.ServiceClient {
|
|
|
119
120
|
// (undocumented)
|
|
120
121
|
maps: Maps;
|
|
121
122
|
// (undocumented)
|
|
122
|
-
subscriptionId
|
|
123
|
+
subscriptionId?: string;
|
|
123
124
|
}
|
|
124
125
|
|
|
125
126
|
// @public
|
|
@@ -129,12 +130,6 @@ export interface AzureMapsManagementClientOptionalParams extends coreClient.Serv
|
|
|
129
130
|
endpoint?: string;
|
|
130
131
|
}
|
|
131
132
|
|
|
132
|
-
// @public (undocumented)
|
|
133
|
-
export interface Components1Jq1T4ISchemasManagedserviceidentityPropertiesUserassignedidentitiesAdditionalproperties {
|
|
134
|
-
readonly clientId?: string;
|
|
135
|
-
readonly principalId?: string;
|
|
136
|
-
}
|
|
137
|
-
|
|
138
133
|
// @public
|
|
139
134
|
export interface CorsRule {
|
|
140
135
|
allowedOrigins: string[];
|
|
@@ -223,6 +218,19 @@ export interface CreatorUpdateParameters {
|
|
|
223
218
|
};
|
|
224
219
|
}
|
|
225
220
|
|
|
221
|
+
// @public
|
|
222
|
+
export interface CustomerManagedKeyEncryption {
|
|
223
|
+
keyEncryptionKeyIdentity?: CustomerManagedKeyEncryptionKeyIdentity;
|
|
224
|
+
keyEncryptionKeyUrl?: string;
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
// @public
|
|
228
|
+
export interface CustomerManagedKeyEncryptionKeyIdentity {
|
|
229
|
+
delegatedIdentityClientId?: string;
|
|
230
|
+
identityType?: IdentityType;
|
|
231
|
+
userAssignedIdentityResourceId?: string;
|
|
232
|
+
}
|
|
233
|
+
|
|
226
234
|
// @public
|
|
227
235
|
export interface Dimension {
|
|
228
236
|
displayName?: string;
|
|
@@ -233,6 +241,12 @@ export interface Dimension {
|
|
|
233
241
|
toBeExportedToShoebox?: boolean;
|
|
234
242
|
}
|
|
235
243
|
|
|
244
|
+
// @public
|
|
245
|
+
export interface Encryption {
|
|
246
|
+
customerManagedKeyEncryption?: CustomerManagedKeyEncryption;
|
|
247
|
+
infrastructureEncryption?: InfrastructureEncryption;
|
|
248
|
+
}
|
|
249
|
+
|
|
236
250
|
// @public
|
|
237
251
|
export interface ErrorAdditionalInfo {
|
|
238
252
|
readonly info?: Record<string, unknown>;
|
|
@@ -256,6 +270,12 @@ export interface ErrorResponse {
|
|
|
256
270
|
// @public
|
|
257
271
|
export function getContinuationToken(page: unknown): string | undefined;
|
|
258
272
|
|
|
273
|
+
// @public
|
|
274
|
+
export type IdentityType = string;
|
|
275
|
+
|
|
276
|
+
// @public
|
|
277
|
+
export type InfrastructureEncryption = string;
|
|
278
|
+
|
|
259
279
|
// @public
|
|
260
280
|
type KeyType_2 = string;
|
|
261
281
|
export { KeyType_2 as KeyType }
|
|
@@ -271,6 +291,19 @@ export enum KnownCreatedByType {
|
|
|
271
291
|
User = "User"
|
|
272
292
|
}
|
|
273
293
|
|
|
294
|
+
// @public
|
|
295
|
+
export enum KnownIdentityType {
|
|
296
|
+
DelegatedResourceIdentity = "delegatedResourceIdentity",
|
|
297
|
+
SystemAssignedIdentity = "systemAssignedIdentity",
|
|
298
|
+
UserAssignedIdentity = "userAssignedIdentity"
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
// @public
|
|
302
|
+
export enum KnownInfrastructureEncryption {
|
|
303
|
+
Disabled = "disabled",
|
|
304
|
+
Enabled = "enabled"
|
|
305
|
+
}
|
|
306
|
+
|
|
274
307
|
// @public
|
|
275
308
|
export enum KnownKeyType {
|
|
276
309
|
Primary = "primary",
|
|
@@ -283,6 +316,14 @@ export enum KnownKind {
|
|
|
283
316
|
Gen2 = "Gen2"
|
|
284
317
|
}
|
|
285
318
|
|
|
319
|
+
// @public
|
|
320
|
+
export enum KnownManagedServiceIdentityType {
|
|
321
|
+
None = "None",
|
|
322
|
+
SystemAssigned = "SystemAssigned",
|
|
323
|
+
SystemAssignedUserAssigned = "SystemAssigned, UserAssigned",
|
|
324
|
+
UserAssigned = "UserAssigned"
|
|
325
|
+
}
|
|
326
|
+
|
|
286
327
|
// @public
|
|
287
328
|
export enum KnownName {
|
|
288
329
|
G2 = "G2",
|
|
@@ -292,6 +333,7 @@ export enum KnownName {
|
|
|
292
333
|
|
|
293
334
|
// @public
|
|
294
335
|
export enum KnownSigningKey {
|
|
336
|
+
ManagedIdentity = "managedIdentity",
|
|
295
337
|
PrimaryKey = "primaryKey",
|
|
296
338
|
SecondaryKey = "secondaryKey"
|
|
297
339
|
}
|
|
@@ -306,12 +348,15 @@ export interface LinkedResource {
|
|
|
306
348
|
export interface ManagedServiceIdentity {
|
|
307
349
|
readonly principalId?: string;
|
|
308
350
|
readonly tenantId?: string;
|
|
309
|
-
type
|
|
351
|
+
type: ManagedServiceIdentityType;
|
|
310
352
|
userAssignedIdentities?: {
|
|
311
|
-
[propertyName: string]:
|
|
353
|
+
[propertyName: string]: UserAssignedIdentity;
|
|
312
354
|
};
|
|
313
355
|
}
|
|
314
356
|
|
|
357
|
+
// @public
|
|
358
|
+
export type ManagedServiceIdentityType = string;
|
|
359
|
+
|
|
315
360
|
// @public
|
|
316
361
|
export interface Maps {
|
|
317
362
|
listOperations(options?: MapsListOperationsOptionalParams): PagedAsyncIterableIterator<OperationDetail>;
|
|
@@ -339,6 +384,7 @@ export interface MapsAccountKeys {
|
|
|
339
384
|
export interface MapsAccountProperties {
|
|
340
385
|
cors?: CorsRules;
|
|
341
386
|
disableLocalAuth?: boolean;
|
|
387
|
+
encryption?: Encryption;
|
|
342
388
|
linkedResources?: LinkedResource[];
|
|
343
389
|
readonly provisioningState?: string;
|
|
344
390
|
readonly uniqueId?: string;
|
|
@@ -359,6 +405,7 @@ export interface MapsAccountSasToken {
|
|
|
359
405
|
export interface MapsAccountUpdateParameters {
|
|
360
406
|
cors?: CorsRules;
|
|
361
407
|
disableLocalAuth?: boolean;
|
|
408
|
+
encryption?: Encryption;
|
|
362
409
|
identity?: ManagedServiceIdentity;
|
|
363
410
|
kind?: Kind;
|
|
364
411
|
linkedResources?: LinkedResource[];
|
|
@@ -418,9 +465,12 @@ export interface MetricSpecification {
|
|
|
418
465
|
displayName?: string;
|
|
419
466
|
fillGapWithZero?: boolean;
|
|
420
467
|
internalMetricName?: string;
|
|
468
|
+
lockAggregationType?: string;
|
|
421
469
|
name?: string;
|
|
422
470
|
resourceIdDimensionNameOverride?: string;
|
|
423
471
|
sourceMdmAccount?: string;
|
|
472
|
+
sourceMdmNamespace?: string;
|
|
473
|
+
supportedAggregationTypes?: string;
|
|
424
474
|
unit?: string;
|
|
425
475
|
}
|
|
426
476
|
|
|
@@ -451,9 +501,6 @@ export interface Resource {
|
|
|
451
501
|
readonly type?: string;
|
|
452
502
|
}
|
|
453
503
|
|
|
454
|
-
// @public
|
|
455
|
-
export type ResourceIdentityType = "SystemAssigned" | "UserAssigned" | "SystemAssigned, UserAssigned" | "None";
|
|
456
|
-
|
|
457
504
|
// @public
|
|
458
505
|
export interface ServiceSpecification {
|
|
459
506
|
metricSpecifications?: MetricSpecification[];
|
|
@@ -486,6 +533,12 @@ export interface TrackedResource extends Resource {
|
|
|
486
533
|
};
|
|
487
534
|
}
|
|
488
535
|
|
|
536
|
+
// @public
|
|
537
|
+
export interface UserAssignedIdentity {
|
|
538
|
+
readonly clientId?: string;
|
|
539
|
+
readonly principalId?: string;
|
|
540
|
+
}
|
|
541
|
+
|
|
489
542
|
// (No @packageDocumentation comment for this package)
|
|
490
543
|
|
|
491
544
|
```
|
|
@@ -21,7 +21,7 @@ import { AzureMapsManagementClientOptionalParams } from "./models";
|
|
|
21
21
|
export class AzureMapsManagementClient extends coreClient.ServiceClient {
|
|
22
22
|
$host: string;
|
|
23
23
|
apiVersion: string;
|
|
24
|
-
subscriptionId
|
|
24
|
+
subscriptionId?: string;
|
|
25
25
|
|
|
26
26
|
/**
|
|
27
27
|
* Initializes a new instance of the AzureMapsManagementClient class.
|
|
@@ -33,12 +33,26 @@ export class AzureMapsManagementClient extends coreClient.ServiceClient {
|
|
|
33
33
|
credentials: coreAuth.TokenCredential,
|
|
34
34
|
subscriptionId: string,
|
|
35
35
|
options?: AzureMapsManagementClientOptionalParams
|
|
36
|
+
);
|
|
37
|
+
constructor(
|
|
38
|
+
credentials: coreAuth.TokenCredential,
|
|
39
|
+
options?: AzureMapsManagementClientOptionalParams
|
|
40
|
+
);
|
|
41
|
+
constructor(
|
|
42
|
+
credentials: coreAuth.TokenCredential,
|
|
43
|
+
subscriptionIdOrOptions?: AzureMapsManagementClientOptionalParams | string,
|
|
44
|
+
options?: AzureMapsManagementClientOptionalParams
|
|
36
45
|
) {
|
|
37
46
|
if (credentials === undefined) {
|
|
38
47
|
throw new Error("'credentials' cannot be null");
|
|
39
48
|
}
|
|
40
|
-
|
|
41
|
-
|
|
49
|
+
|
|
50
|
+
let subscriptionId: string | undefined;
|
|
51
|
+
|
|
52
|
+
if (typeof subscriptionIdOrOptions === "string") {
|
|
53
|
+
subscriptionId = subscriptionIdOrOptions;
|
|
54
|
+
} else if (typeof subscriptionIdOrOptions === "object") {
|
|
55
|
+
options = subscriptionIdOrOptions;
|
|
42
56
|
}
|
|
43
57
|
|
|
44
58
|
// Initializing default values for options
|
|
@@ -50,7 +64,7 @@ export class AzureMapsManagementClient extends coreClient.ServiceClient {
|
|
|
50
64
|
credential: credentials
|
|
51
65
|
};
|
|
52
66
|
|
|
53
|
-
const packageDetails = `azsdk-js-arm-maps/3.1.0
|
|
67
|
+
const packageDetails = `azsdk-js-arm-maps/3.1.0`;
|
|
54
68
|
const userAgentPrefix =
|
|
55
69
|
options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
56
70
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
@@ -103,7 +117,7 @@ export class AzureMapsManagementClient extends coreClient.ServiceClient {
|
|
|
103
117
|
|
|
104
118
|
// Assigning values to Constant parameters
|
|
105
119
|
this.$host = options.$host || "https://management.azure.com";
|
|
106
|
-
this.apiVersion = options.apiVersion || "
|
|
120
|
+
this.apiVersion = options.apiVersion || "2023-06-01";
|
|
107
121
|
this.accounts = new AccountsImpl(this);
|
|
108
122
|
this.maps = new MapsImpl(this);
|
|
109
123
|
this.creators = new CreatorsImpl(this);
|