@azure/arm-maps 2.1.1 → 3.0.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.
Files changed (132) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/LICENSE +21 -0
  3. package/README.md +69 -83
  4. package/dist/index.js +1892 -0
  5. package/dist/index.js.map +1 -0
  6. package/dist/index.min.js +1 -0
  7. package/dist/index.min.js.map +1 -0
  8. package/dist-esm/src/azureMapsManagementClient.d.ts +20 -0
  9. package/dist-esm/src/azureMapsManagementClient.d.ts.map +1 -0
  10. package/dist-esm/src/azureMapsManagementClient.js +53 -0
  11. package/dist-esm/src/azureMapsManagementClient.js.map +1 -0
  12. package/dist-esm/src/index.d.ts +5 -0
  13. package/dist-esm/src/index.d.ts.map +1 -0
  14. package/{esm/models/mapsMappers.js → dist-esm/src/index.js} +5 -2
  15. package/dist-esm/src/index.js.map +1 -0
  16. package/dist-esm/src/models/index.d.ts +480 -0
  17. package/dist-esm/src/models/index.d.ts.map +1 -0
  18. package/dist-esm/src/models/index.js +35 -0
  19. package/dist-esm/src/models/index.js.map +1 -0
  20. package/dist-esm/src/models/mappers.d.ts +25 -0
  21. package/dist-esm/src/models/mappers.d.ts.map +1 -0
  22. package/{esm → dist-esm/src}/models/mappers.js +332 -379
  23. package/dist-esm/src/models/mappers.js.map +1 -0
  24. package/dist-esm/src/models/parameters.d.ts +16 -0
  25. package/dist-esm/src/models/parameters.d.ts.map +1 -0
  26. package/dist-esm/src/models/parameters.js +131 -0
  27. package/dist-esm/src/models/parameters.js.map +1 -0
  28. package/dist-esm/src/operations/accounts.d.ts +103 -0
  29. package/dist-esm/src/operations/accounts.d.ts.map +1 -0
  30. package/dist-esm/src/operations/accounts.js +427 -0
  31. package/dist-esm/src/operations/accounts.js.map +1 -0
  32. package/dist-esm/src/operations/creators.d.ts +74 -0
  33. package/dist-esm/src/operations/creators.d.ts.map +1 -0
  34. package/dist-esm/src/operations/creators.js +281 -0
  35. package/dist-esm/src/operations/creators.js.map +1 -0
  36. package/{esm → dist-esm/src}/operations/index.d.ts +0 -0
  37. package/dist-esm/src/operations/index.d.ts.map +1 -0
  38. package/{esm → dist-esm/src}/operations/index.js +1 -2
  39. package/dist-esm/src/operations/index.js.map +1 -0
  40. package/dist-esm/src/operations/maps.d.ts +51 -0
  41. package/dist-esm/src/operations/maps.d.ts.map +1 -0
  42. package/dist-esm/src/operations/maps.js +220 -0
  43. package/dist-esm/src/operations/maps.js.map +1 -0
  44. package/dist-esm/src/operationsInterfaces/accounts.d.ts +67 -0
  45. package/dist-esm/src/operationsInterfaces/accounts.d.ts.map +1 -0
  46. package/dist-esm/src/operationsInterfaces/accounts.js +9 -0
  47. package/dist-esm/src/operationsInterfaces/accounts.js.map +1 -0
  48. package/dist-esm/src/operationsInterfaces/creators.d.ts +49 -0
  49. package/dist-esm/src/operationsInterfaces/creators.d.ts.map +1 -0
  50. package/dist-esm/src/operationsInterfaces/creators.js +9 -0
  51. package/dist-esm/src/operationsInterfaces/creators.js.map +1 -0
  52. package/dist-esm/src/operationsInterfaces/index.d.ts +4 -0
  53. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
  54. package/dist-esm/src/operationsInterfaces/index.js +11 -0
  55. package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
  56. package/dist-esm/src/operationsInterfaces/maps.d.ts +16 -0
  57. package/dist-esm/src/operationsInterfaces/maps.d.ts.map +1 -0
  58. package/{esm/models/index.js → dist-esm/src/operationsInterfaces/maps.js} +2 -1
  59. package/dist-esm/src/operationsInterfaces/maps.js.map +1 -0
  60. package/dist-esm/test/sampleTest.d.ts +2 -0
  61. package/dist-esm/test/sampleTest.d.ts.map +1 -0
  62. package/dist-esm/test/sampleTest.js +40 -0
  63. package/dist-esm/test/sampleTest.js.map +1 -0
  64. package/package.json +68 -32
  65. package/review/arm-maps.api.md +423 -0
  66. package/rollup.config.js +181 -24
  67. package/src/azureMapsManagementClient.ts +61 -36
  68. package/src/{models/mapsMappers.ts → index.ts} +4 -11
  69. package/src/models/index.ts +380 -684
  70. package/src/models/mappers.ts +333 -378
  71. package/src/models/parameters.ts +99 -36
  72. package/src/operations/accounts.ts +315 -502
  73. package/src/operations/creators.ts +202 -341
  74. package/src/operations/index.ts +1 -2
  75. package/src/operations/maps.ts +196 -77
  76. package/src/operationsInterfaces/accounts.ts +125 -0
  77. package/src/operationsInterfaces/creators.ts +95 -0
  78. package/src/operationsInterfaces/index.ts +11 -0
  79. package/src/operationsInterfaces/maps.ts +33 -0
  80. package/tsconfig.json +3 -3
  81. package/types/arm-maps.d.ts +696 -0
  82. package/types/tsdoc-metadata.json +11 -0
  83. package/dist/arm-maps.js +0 -1671
  84. package/dist/arm-maps.js.map +0 -1
  85. package/dist/arm-maps.min.js +0 -1
  86. package/dist/arm-maps.min.js.map +0 -1
  87. package/esm/azureMapsManagementClient.d.ts +0 -26
  88. package/esm/azureMapsManagementClient.d.ts.map +0 -1
  89. package/esm/azureMapsManagementClient.js +0 -39
  90. package/esm/azureMapsManagementClient.js.map +0 -1
  91. package/esm/azureMapsManagementClientContext.d.ts +0 -22
  92. package/esm/azureMapsManagementClientContext.d.ts.map +0 -1
  93. package/esm/azureMapsManagementClientContext.js +0 -61
  94. package/esm/azureMapsManagementClientContext.js.map +0 -1
  95. package/esm/models/accountsMappers.d.ts +0 -2
  96. package/esm/models/accountsMappers.d.ts.map +0 -1
  97. package/esm/models/accountsMappers.js +0 -9
  98. package/esm/models/accountsMappers.js.map +0 -1
  99. package/esm/models/creatorsMappers.d.ts +0 -2
  100. package/esm/models/creatorsMappers.d.ts.map +0 -1
  101. package/esm/models/creatorsMappers.js +0 -9
  102. package/esm/models/creatorsMappers.js.map +0 -1
  103. package/esm/models/index.d.ts +0 -793
  104. package/esm/models/index.d.ts.map +0 -1
  105. package/esm/models/index.js.map +0 -1
  106. package/esm/models/mappers.d.ts +0 -29
  107. package/esm/models/mappers.d.ts.map +0 -1
  108. package/esm/models/mappers.js.map +0 -1
  109. package/esm/models/mapsMappers.d.ts +0 -2
  110. package/esm/models/mapsMappers.d.ts.map +0 -1
  111. package/esm/models/mapsMappers.js.map +0 -1
  112. package/esm/models/parameters.d.ts +0 -9
  113. package/esm/models/parameters.d.ts.map +0 -1
  114. package/esm/models/parameters.js +0 -91
  115. package/esm/models/parameters.js.map +0 -1
  116. package/esm/operations/accounts.d.ts +0 -222
  117. package/esm/operations/accounts.d.ts.map +0 -1
  118. package/esm/operations/accounts.js +0 -271
  119. package/esm/operations/accounts.js.map +0 -1
  120. package/esm/operations/creators.d.ts +0 -157
  121. package/esm/operations/creators.d.ts.map +0 -1
  122. package/esm/operations/creators.js +0 -201
  123. package/esm/operations/creators.js.map +0 -1
  124. package/esm/operations/index.d.ts.map +0 -1
  125. package/esm/operations/index.js.map +0 -1
  126. package/esm/operations/maps.d.ts +0 -46
  127. package/esm/operations/maps.d.ts.map +0 -1
  128. package/esm/operations/maps.js +0 -69
  129. package/esm/operations/maps.js.map +0 -1
  130. package/src/azureMapsManagementClientContext.ts +0 -74
  131. package/src/models/accountsMappers.ts +0 -28
  132. package/src/models/creatorsMappers.ts +0 -26
@@ -0,0 +1,696 @@
1
+ import * as coreAuth from '@azure/core-auth';
2
+ import * as coreClient from '@azure/core-client';
3
+ import { PagedAsyncIterableIterator } from '@azure/core-paging';
4
+
5
+ /** Interface representing a Accounts. */
6
+ export declare interface Accounts {
7
+ /**
8
+ * Get all Maps Accounts in a Resource Group
9
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
10
+ * @param options The options parameters.
11
+ */
12
+ listByResourceGroup(resourceGroupName: string, options?: AccountsListByResourceGroupOptionalParams): PagedAsyncIterableIterator<MapsAccount>;
13
+ /**
14
+ * Get all Maps Accounts in a Subscription
15
+ * @param options The options parameters.
16
+ */
17
+ listBySubscription(options?: AccountsListBySubscriptionOptionalParams): PagedAsyncIterableIterator<MapsAccount>;
18
+ /**
19
+ * Create or update a Maps Account. A Maps Account holds the keys which allow access to the Maps REST
20
+ * APIs.
21
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
22
+ * @param accountName The name of the Maps Account.
23
+ * @param mapsAccount The new or updated parameters for the Maps Account.
24
+ * @param options The options parameters.
25
+ */
26
+ createOrUpdate(resourceGroupName: string, accountName: string, mapsAccount: MapsAccount, options?: AccountsCreateOrUpdateOptionalParams): Promise<AccountsCreateOrUpdateResponse>;
27
+ /**
28
+ * Updates a Maps Account. Only a subset of the parameters may be updated after creation, such as Sku,
29
+ * Tags, Properties.
30
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
31
+ * @param accountName The name of the Maps Account.
32
+ * @param mapsAccountUpdateParameters The updated parameters for the Maps Account.
33
+ * @param options The options parameters.
34
+ */
35
+ update(resourceGroupName: string, accountName: string, mapsAccountUpdateParameters: MapsAccountUpdateParameters, options?: AccountsUpdateOptionalParams): Promise<AccountsUpdateResponse>;
36
+ /**
37
+ * Delete a Maps Account.
38
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
39
+ * @param accountName The name of the Maps Account.
40
+ * @param options The options parameters.
41
+ */
42
+ delete(resourceGroupName: string, accountName: string, options?: AccountsDeleteOptionalParams): Promise<void>;
43
+ /**
44
+ * Get a Maps Account.
45
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
46
+ * @param accountName The name of the Maps Account.
47
+ * @param options The options parameters.
48
+ */
49
+ get(resourceGroupName: string, accountName: string, options?: AccountsGetOptionalParams): Promise<AccountsGetResponse>;
50
+ /**
51
+ * Get the keys to use with the Maps APIs. A key is used to authenticate and authorize access to the
52
+ * Maps REST APIs. Only one key is needed at a time; two are given to provide seamless key
53
+ * regeneration.
54
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
55
+ * @param accountName The name of the Maps Account.
56
+ * @param options The options parameters.
57
+ */
58
+ listKeys(resourceGroupName: string, accountName: string, options?: AccountsListKeysOptionalParams): Promise<AccountsListKeysResponse>;
59
+ /**
60
+ * Regenerate either the primary or secondary key for use with the Maps APIs. The old key will stop
61
+ * working immediately.
62
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
63
+ * @param accountName The name of the Maps Account.
64
+ * @param keySpecification Which key to regenerate: primary or secondary.
65
+ * @param options The options parameters.
66
+ */
67
+ regenerateKeys(resourceGroupName: string, accountName: string, keySpecification: MapsKeySpecification, options?: AccountsRegenerateKeysOptionalParams): Promise<AccountsRegenerateKeysResponse>;
68
+ }
69
+
70
+ /** Optional parameters. */
71
+ export declare interface AccountsCreateOrUpdateOptionalParams extends coreClient.OperationOptions {
72
+ }
73
+
74
+ /** Contains response data for the createOrUpdate operation. */
75
+ export declare type AccountsCreateOrUpdateResponse = MapsAccount;
76
+
77
+ /** Optional parameters. */
78
+ export declare interface AccountsDeleteOptionalParams extends coreClient.OperationOptions {
79
+ }
80
+
81
+ /** Optional parameters. */
82
+ export declare interface AccountsGetOptionalParams extends coreClient.OperationOptions {
83
+ }
84
+
85
+ /** Contains response data for the get operation. */
86
+ export declare type AccountsGetResponse = MapsAccount;
87
+
88
+ /** Optional parameters. */
89
+ export declare interface AccountsListByResourceGroupNextOptionalParams extends coreClient.OperationOptions {
90
+ }
91
+
92
+ /** Contains response data for the listByResourceGroupNext operation. */
93
+ export declare type AccountsListByResourceGroupNextResponse = MapsAccounts;
94
+
95
+ /** Optional parameters. */
96
+ export declare interface AccountsListByResourceGroupOptionalParams extends coreClient.OperationOptions {
97
+ }
98
+
99
+ /** Contains response data for the listByResourceGroup operation. */
100
+ export declare type AccountsListByResourceGroupResponse = MapsAccounts;
101
+
102
+ /** Optional parameters. */
103
+ export declare interface AccountsListBySubscriptionNextOptionalParams extends coreClient.OperationOptions {
104
+ }
105
+
106
+ /** Contains response data for the listBySubscriptionNext operation. */
107
+ export declare type AccountsListBySubscriptionNextResponse = MapsAccounts;
108
+
109
+ /** Optional parameters. */
110
+ export declare interface AccountsListBySubscriptionOptionalParams extends coreClient.OperationOptions {
111
+ }
112
+
113
+ /** Contains response data for the listBySubscription operation. */
114
+ export declare type AccountsListBySubscriptionResponse = MapsAccounts;
115
+
116
+ /** Optional parameters. */
117
+ export declare interface AccountsListKeysOptionalParams extends coreClient.OperationOptions {
118
+ }
119
+
120
+ /** Contains response data for the listKeys operation. */
121
+ export declare type AccountsListKeysResponse = MapsAccountKeys;
122
+
123
+ /** Optional parameters. */
124
+ export declare interface AccountsRegenerateKeysOptionalParams extends coreClient.OperationOptions {
125
+ }
126
+
127
+ /** Contains response data for the regenerateKeys operation. */
128
+ export declare type AccountsRegenerateKeysResponse = MapsAccountKeys;
129
+
130
+ /** Optional parameters. */
131
+ export declare interface AccountsUpdateOptionalParams extends coreClient.OperationOptions {
132
+ }
133
+
134
+ /** Contains response data for the update operation. */
135
+ export declare type AccountsUpdateResponse = MapsAccount;
136
+
137
+ export declare class AzureMapsManagementClient extends coreClient.ServiceClient {
138
+ $host: string;
139
+ apiVersion: string;
140
+ subscriptionId: string;
141
+ /**
142
+ * Initializes a new instance of the AzureMapsManagementClient class.
143
+ * @param credentials Subscription credentials which uniquely identify client subscription.
144
+ * @param subscriptionId The ID of the target subscription.
145
+ * @param options The parameter options
146
+ */
147
+ constructor(credentials: coreAuth.TokenCredential, subscriptionId: string, options?: AzureMapsManagementClientOptionalParams);
148
+ accounts: Accounts;
149
+ maps: Maps;
150
+ creators: Creators;
151
+ }
152
+
153
+ /** Optional parameters. */
154
+ export declare interface AzureMapsManagementClientOptionalParams extends coreClient.ServiceClientOptions {
155
+ /** server parameter */
156
+ $host?: string;
157
+ /** Api Version */
158
+ apiVersion?: string;
159
+ /** Overrides client endpoint. */
160
+ endpoint?: string;
161
+ }
162
+
163
+ /**
164
+ * Defines values for CreatedByType. \
165
+ * {@link KnownCreatedByType} can be used interchangeably with CreatedByType,
166
+ * this enum contains the known values that the service supports.
167
+ * ### Known values supported by the service
168
+ * **User** \
169
+ * **Application** \
170
+ * **ManagedIdentity** \
171
+ * **Key**
172
+ */
173
+ export declare type CreatedByType = string;
174
+
175
+ /** An Azure resource which represents Maps Creator product and provides ability to manage private location data. */
176
+ export declare type Creator = TrackedResource & {
177
+ /** The Creator resource properties. */
178
+ properties: CreatorProperties;
179
+ };
180
+
181
+ /** A list of Creator resources. */
182
+ export declare interface CreatorList {
183
+ /**
184
+ * a Creator account.
185
+ * NOTE: This property will not be serialized. It can only be populated by the server.
186
+ */
187
+ readonly value?: Creator[];
188
+ /**
189
+ * URL client should use to fetch the next page (per server side paging).
190
+ * It's null for now, added for future use.
191
+ */
192
+ nextLink?: string;
193
+ }
194
+
195
+ /** Creator resource properties */
196
+ export declare interface CreatorProperties {
197
+ /**
198
+ * The state of the resource provisioning, terminal states: Succeeded, Failed, Canceled
199
+ * NOTE: This property will not be serialized. It can only be populated by the server.
200
+ */
201
+ readonly provisioningState?: string;
202
+ /** The storage units to be allocated. Integer values from 1 to 100, inclusive. */
203
+ storageUnits: number;
204
+ }
205
+
206
+ /** Interface representing a Creators. */
207
+ export declare interface Creators {
208
+ /**
209
+ * Get all Creator instances for an Azure Maps Account
210
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
211
+ * @param accountName The name of the Maps Account.
212
+ * @param options The options parameters.
213
+ */
214
+ listByAccount(resourceGroupName: string, accountName: string, options?: CreatorsListByAccountOptionalParams): PagedAsyncIterableIterator<Creator>;
215
+ /**
216
+ * Create or update a Maps Creator resource. Creator resource will manage Azure resources required to
217
+ * populate a custom set of mapping data. It requires an account to exist before it can be created.
218
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
219
+ * @param accountName The name of the Maps Account.
220
+ * @param creatorName The name of the Maps Creator instance.
221
+ * @param creatorResource The new or updated parameters for the Creator resource.
222
+ * @param options The options parameters.
223
+ */
224
+ createOrUpdate(resourceGroupName: string, accountName: string, creatorName: string, creatorResource: Creator, options?: CreatorsCreateOrUpdateOptionalParams): Promise<CreatorsCreateOrUpdateResponse>;
225
+ /**
226
+ * Updates the Maps Creator resource. Only a subset of the parameters may be updated after creation,
227
+ * such as Tags.
228
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
229
+ * @param accountName The name of the Maps Account.
230
+ * @param creatorName The name of the Maps Creator instance.
231
+ * @param creatorUpdateParameters The update parameters for Maps Creator.
232
+ * @param options The options parameters.
233
+ */
234
+ update(resourceGroupName: string, accountName: string, creatorName: string, creatorUpdateParameters: CreatorUpdateParameters, options?: CreatorsUpdateOptionalParams): Promise<CreatorsUpdateResponse>;
235
+ /**
236
+ * Delete a Maps Creator resource.
237
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
238
+ * @param accountName The name of the Maps Account.
239
+ * @param creatorName The name of the Maps Creator instance.
240
+ * @param options The options parameters.
241
+ */
242
+ delete(resourceGroupName: string, accountName: string, creatorName: string, options?: CreatorsDeleteOptionalParams): Promise<void>;
243
+ /**
244
+ * Get a Maps Creator resource.
245
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
246
+ * @param accountName The name of the Maps Account.
247
+ * @param creatorName The name of the Maps Creator instance.
248
+ * @param options The options parameters.
249
+ */
250
+ get(resourceGroupName: string, accountName: string, creatorName: string, options?: CreatorsGetOptionalParams): Promise<CreatorsGetResponse>;
251
+ }
252
+
253
+ /** Optional parameters. */
254
+ export declare interface CreatorsCreateOrUpdateOptionalParams extends coreClient.OperationOptions {
255
+ }
256
+
257
+ /** Contains response data for the createOrUpdate operation. */
258
+ export declare type CreatorsCreateOrUpdateResponse = Creator;
259
+
260
+ /** Optional parameters. */
261
+ export declare interface CreatorsDeleteOptionalParams extends coreClient.OperationOptions {
262
+ }
263
+
264
+ /** Optional parameters. */
265
+ export declare interface CreatorsGetOptionalParams extends coreClient.OperationOptions {
266
+ }
267
+
268
+ /** Contains response data for the get operation. */
269
+ export declare type CreatorsGetResponse = Creator;
270
+
271
+ /** Optional parameters. */
272
+ export declare interface CreatorsListByAccountNextOptionalParams extends coreClient.OperationOptions {
273
+ }
274
+
275
+ /** Contains response data for the listByAccountNext operation. */
276
+ export declare type CreatorsListByAccountNextResponse = CreatorList;
277
+
278
+ /** Optional parameters. */
279
+ export declare interface CreatorsListByAccountOptionalParams extends coreClient.OperationOptions {
280
+ }
281
+
282
+ /** Contains response data for the listByAccount operation. */
283
+ export declare type CreatorsListByAccountResponse = CreatorList;
284
+
285
+ /** Optional parameters. */
286
+ export declare interface CreatorsUpdateOptionalParams extends coreClient.OperationOptions {
287
+ }
288
+
289
+ /** Contains response data for the update operation. */
290
+ export declare type CreatorsUpdateResponse = Creator;
291
+
292
+ /** Parameters used to update an existing Creator resource. */
293
+ export declare interface CreatorUpdateParameters {
294
+ /** Gets or sets a list of key value pairs that describe the resource. These tags can be used in viewing and grouping this resource (across resource groups). A maximum of 15 tags can be provided for a resource. Each tag must have a key no greater than 128 characters and value no greater than 256 characters. */
295
+ tags?: {
296
+ [propertyName: string]: string;
297
+ };
298
+ /**
299
+ * The state of the resource provisioning, terminal states: Succeeded, Failed, Canceled
300
+ * NOTE: This property will not be serialized. It can only be populated by the server.
301
+ */
302
+ readonly provisioningState?: string;
303
+ /** The storage units to be allocated. Integer values from 1 to 100, inclusive. */
304
+ storageUnits?: number;
305
+ }
306
+
307
+ /** Dimension of map account, for example API Category, Api Name, Result Type, and Response Code. */
308
+ export declare interface Dimension {
309
+ /** Display name of dimension. */
310
+ name?: string;
311
+ /** Display name of dimension. */
312
+ displayName?: string;
313
+ /** Internal name of the dimension. */
314
+ internalName?: string;
315
+ /** Internal metric name of the dimension. */
316
+ internalMetricName?: string;
317
+ /** Source Mdm Namespace of the dimension. */
318
+ sourceMdmNamespace?: string;
319
+ /** Flag to indicate exporting to Azure Monitor. */
320
+ toBeExportedToShoebox?: boolean;
321
+ }
322
+
323
+ /** The resource management error additional info. */
324
+ export declare interface ErrorAdditionalInfo {
325
+ /**
326
+ * The additional info type.
327
+ * NOTE: This property will not be serialized. It can only be populated by the server.
328
+ */
329
+ readonly type?: string;
330
+ /**
331
+ * The additional info.
332
+ * NOTE: This property will not be serialized. It can only be populated by the server.
333
+ */
334
+ readonly info?: Record<string, unknown>;
335
+ }
336
+
337
+ /** The error detail. */
338
+ export declare interface ErrorDetail {
339
+ /**
340
+ * The error code.
341
+ * NOTE: This property will not be serialized. It can only be populated by the server.
342
+ */
343
+ readonly code?: string;
344
+ /**
345
+ * The error message.
346
+ * NOTE: This property will not be serialized. It can only be populated by the server.
347
+ */
348
+ readonly message?: string;
349
+ /**
350
+ * The error target.
351
+ * NOTE: This property will not be serialized. It can only be populated by the server.
352
+ */
353
+ readonly target?: string;
354
+ /**
355
+ * The error details.
356
+ * NOTE: This property will not be serialized. It can only be populated by the server.
357
+ */
358
+ readonly details?: ErrorDetail[];
359
+ /**
360
+ * The error additional info.
361
+ * NOTE: This property will not be serialized. It can only be populated by the server.
362
+ */
363
+ readonly additionalInfo?: ErrorAdditionalInfo[];
364
+ }
365
+
366
+ /** Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.). */
367
+ export declare interface ErrorResponse {
368
+ /** The error object. */
369
+ error?: ErrorDetail;
370
+ }
371
+
372
+ /**
373
+ * Defines values for KeyType. \
374
+ * {@link KnownKeyType} can be used interchangeably with KeyType,
375
+ * this enum contains the known values that the service supports.
376
+ * ### Known values supported by the service
377
+ * **primary** \
378
+ * **secondary**
379
+ */
380
+ declare type KeyType_2 = string;
381
+ export { KeyType_2 as KeyType }
382
+
383
+ /**
384
+ * Defines values for Kind. \
385
+ * {@link KnownKind} can be used interchangeably with Kind,
386
+ * this enum contains the known values that the service supports.
387
+ * ### Known values supported by the service
388
+ * **Gen1** \
389
+ * **Gen2**
390
+ */
391
+ export declare type Kind = string;
392
+
393
+ /** Known values of {@link CreatedByType} that the service accepts. */
394
+ export declare enum KnownCreatedByType {
395
+ User = "User",
396
+ Application = "Application",
397
+ ManagedIdentity = "ManagedIdentity",
398
+ Key = "Key"
399
+ }
400
+
401
+ /** Known values of {@link KeyType} that the service accepts. */
402
+ export declare enum KnownKeyType {
403
+ Primary = "primary",
404
+ Secondary = "secondary"
405
+ }
406
+
407
+ /** Known values of {@link Kind} that the service accepts. */
408
+ export declare enum KnownKind {
409
+ Gen1 = "Gen1",
410
+ Gen2 = "Gen2"
411
+ }
412
+
413
+ /** Known values of {@link Name} that the service accepts. */
414
+ export declare enum KnownName {
415
+ S0 = "S0",
416
+ S1 = "S1",
417
+ G2 = "G2"
418
+ }
419
+
420
+ /** Interface representing a Maps. */
421
+ export declare interface Maps {
422
+ /**
423
+ * List operations available for the Maps Resource Provider
424
+ * @param options The options parameters.
425
+ */
426
+ listOperations(options?: MapsListOperationsOptionalParams): PagedAsyncIterableIterator<OperationDetail>;
427
+ /**
428
+ * List operations available for the Maps Resource Provider
429
+ * @param options The options parameters.
430
+ */
431
+ listSubscriptionOperations(options?: MapsListSubscriptionOperationsOptionalParams): PagedAsyncIterableIterator<OperationDetail>;
432
+ }
433
+
434
+ /** An Azure resource which represents access to a suite of Maps REST APIs. */
435
+ export declare type MapsAccount = TrackedResource & {
436
+ /** The SKU of this account. */
437
+ sku: Sku;
438
+ /** Get or Set Kind property. */
439
+ kind?: Kind;
440
+ /**
441
+ * The system meta data relating to this resource.
442
+ * NOTE: This property will not be serialized. It can only be populated by the server.
443
+ */
444
+ readonly systemData?: SystemData;
445
+ /** The map account properties. */
446
+ properties?: MapsAccountProperties;
447
+ };
448
+
449
+ /** The set of keys which can be used to access the Maps REST APIs. Two keys are provided for key rotation without interruption. */
450
+ export declare interface MapsAccountKeys {
451
+ /**
452
+ * The last updated date and time of the primary key.
453
+ * NOTE: This property will not be serialized. It can only be populated by the server.
454
+ */
455
+ readonly primaryKeyLastUpdated?: string;
456
+ /**
457
+ * The primary key for accessing the Maps REST APIs.
458
+ * NOTE: This property will not be serialized. It can only be populated by the server.
459
+ */
460
+ readonly primaryKey?: string;
461
+ /**
462
+ * The secondary key for accessing the Maps REST APIs.
463
+ * NOTE: This property will not be serialized. It can only be populated by the server.
464
+ */
465
+ readonly secondaryKey?: string;
466
+ /**
467
+ * The last updated date and time of the secondary key.
468
+ * NOTE: This property will not be serialized. It can only be populated by the server.
469
+ */
470
+ readonly secondaryKeyLastUpdated?: string;
471
+ }
472
+
473
+ /** Additional Map account properties */
474
+ export declare interface MapsAccountProperties {
475
+ /**
476
+ * A unique identifier for the maps account
477
+ * NOTE: This property will not be serialized. It can only be populated by the server.
478
+ */
479
+ readonly uniqueId?: string;
480
+ /** Allows toggle functionality on Azure Policy to disable Azure Maps local authentication support. This will disable Shared Keys authentication from any usage. */
481
+ disableLocalAuth?: boolean;
482
+ /**
483
+ * the state of the provisioning.
484
+ * NOTE: This property will not be serialized. It can only be populated by the server.
485
+ */
486
+ readonly provisioningState?: string;
487
+ }
488
+
489
+ /** A list of Maps Accounts. */
490
+ export declare interface MapsAccounts {
491
+ /**
492
+ * a Maps Account.
493
+ * NOTE: This property will not be serialized. It can only be populated by the server.
494
+ */
495
+ readonly value?: MapsAccount[];
496
+ /**
497
+ * URL client should use to fetch the next page (per server side paging).
498
+ * It's null for now, added for future use.
499
+ */
500
+ nextLink?: string;
501
+ }
502
+
503
+ /** Parameters used to update an existing Maps Account. */
504
+ export declare interface MapsAccountUpdateParameters {
505
+ /** Gets or sets a list of key value pairs that describe the resource. These tags can be used in viewing and grouping this resource (across resource groups). A maximum of 15 tags can be provided for a resource. Each tag must have a key no greater than 128 characters and value no greater than 256 characters. */
506
+ tags?: {
507
+ [propertyName: string]: string;
508
+ };
509
+ /** Get or Set Kind property. */
510
+ kind?: Kind;
511
+ /** The SKU of this account. */
512
+ sku?: Sku;
513
+ /**
514
+ * A unique identifier for the maps account
515
+ * NOTE: This property will not be serialized. It can only be populated by the server.
516
+ */
517
+ readonly uniqueId?: string;
518
+ /** Allows toggle functionality on Azure Policy to disable Azure Maps local authentication support. This will disable Shared Keys authentication from any usage. */
519
+ disableLocalAuth?: boolean;
520
+ /**
521
+ * the state of the provisioning.
522
+ * NOTE: This property will not be serialized. It can only be populated by the server.
523
+ */
524
+ readonly provisioningState?: string;
525
+ }
526
+
527
+ /** Whether the operation refers to the primary or secondary key. */
528
+ export declare interface MapsKeySpecification {
529
+ /** Whether the operation refers to the primary or secondary key. */
530
+ keyType: KeyType_2;
531
+ }
532
+
533
+ /** Optional parameters. */
534
+ export declare interface MapsListOperationsNextOptionalParams extends coreClient.OperationOptions {
535
+ }
536
+
537
+ /** Contains response data for the listOperationsNext operation. */
538
+ export declare type MapsListOperationsNextResponse = MapsOperations;
539
+
540
+ /** Optional parameters. */
541
+ export declare interface MapsListOperationsOptionalParams extends coreClient.OperationOptions {
542
+ }
543
+
544
+ /** Contains response data for the listOperations operation. */
545
+ export declare type MapsListOperationsResponse = MapsOperations;
546
+
547
+ /** Optional parameters. */
548
+ export declare interface MapsListSubscriptionOperationsNextOptionalParams extends coreClient.OperationOptions {
549
+ }
550
+
551
+ /** Contains response data for the listSubscriptionOperationsNext operation. */
552
+ export declare type MapsListSubscriptionOperationsNextResponse = MapsOperations;
553
+
554
+ /** Optional parameters. */
555
+ export declare interface MapsListSubscriptionOperationsOptionalParams extends coreClient.OperationOptions {
556
+ }
557
+
558
+ /** Contains response data for the listSubscriptionOperations operation. */
559
+ export declare type MapsListSubscriptionOperationsResponse = MapsOperations;
560
+
561
+ /** The set of operations available for Maps. */
562
+ export declare interface MapsOperations {
563
+ /**
564
+ * An operation available for Maps.
565
+ * NOTE: This property will not be serialized. It can only be populated by the server.
566
+ */
567
+ readonly value?: OperationDetail[];
568
+ /**
569
+ * URL client should use to fetch the next page (per server side paging).
570
+ * It's null for now, added for future use.
571
+ */
572
+ nextLink?: string;
573
+ }
574
+
575
+ /** Metric specification of operation. */
576
+ export declare interface MetricSpecification {
577
+ /** Name of metric specification. */
578
+ name?: string;
579
+ /** Display name of metric specification. */
580
+ displayName?: string;
581
+ /** Display description of metric specification. */
582
+ displayDescription?: string;
583
+ /** Unit could be Count. */
584
+ unit?: string;
585
+ /** Dimensions of map account. */
586
+ dimensions?: Dimension[];
587
+ /** Aggregation type could be Average. */
588
+ aggregationType?: string;
589
+ /** The property to decide fill gap with zero or not. */
590
+ fillGapWithZero?: boolean;
591
+ /** The category this metric specification belong to, could be Capacity. */
592
+ category?: string;
593
+ /** Account Resource Id. */
594
+ resourceIdDimensionNameOverride?: string;
595
+ }
596
+
597
+ /**
598
+ * Defines values for Name. \
599
+ * {@link KnownName} can be used interchangeably with Name,
600
+ * this enum contains the known values that the service supports.
601
+ * ### Known values supported by the service
602
+ * **S0** \
603
+ * **S1** \
604
+ * **G2**
605
+ */
606
+ export declare type Name = string;
607
+
608
+ /** Operation detail payload */
609
+ export declare interface OperationDetail {
610
+ /** Name of the operation */
611
+ name?: string;
612
+ /** Indicates whether the operation is a data action */
613
+ isDataAction?: boolean;
614
+ /** Display of the operation */
615
+ display?: OperationDisplay;
616
+ /** Origin of the operation */
617
+ origin?: string;
618
+ /** One property of operation, include metric specifications. */
619
+ serviceSpecification?: ServiceSpecification;
620
+ }
621
+
622
+ /** Operation display payload */
623
+ export declare interface OperationDisplay {
624
+ /** Resource provider of the operation */
625
+ provider?: string;
626
+ /** Resource of the operation */
627
+ resource?: string;
628
+ /** Localized friendly name for the operation */
629
+ operation?: string;
630
+ /** Localized friendly description for the operation */
631
+ description?: string;
632
+ }
633
+
634
+ /** Common fields that are returned in the response for all Azure Resource Manager resources */
635
+ export declare interface Resource {
636
+ /**
637
+ * Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
638
+ * NOTE: This property will not be serialized. It can only be populated by the server.
639
+ */
640
+ readonly id?: string;
641
+ /**
642
+ * The name of the resource
643
+ * NOTE: This property will not be serialized. It can only be populated by the server.
644
+ */
645
+ readonly name?: string;
646
+ /**
647
+ * The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
648
+ * NOTE: This property will not be serialized. It can only be populated by the server.
649
+ */
650
+ readonly type?: string;
651
+ }
652
+
653
+ /** One property of operation, include metric specifications. */
654
+ export declare interface ServiceSpecification {
655
+ /** Metric specifications of operation. */
656
+ metricSpecifications?: MetricSpecification[];
657
+ }
658
+
659
+ /** The SKU of the Maps Account. */
660
+ export declare interface Sku {
661
+ /** The name of the SKU, in standard format (such as S0). */
662
+ name: Name;
663
+ /**
664
+ * Gets the sku tier. This is based on the SKU name.
665
+ * NOTE: This property will not be serialized. It can only be populated by the server.
666
+ */
667
+ readonly tier?: string;
668
+ }
669
+
670
+ /** Metadata pertaining to creation and last modification of the resource. */
671
+ export declare interface SystemData {
672
+ /** The identity that created the resource. */
673
+ createdBy?: string;
674
+ /** The type of identity that created the resource. */
675
+ createdByType?: CreatedByType;
676
+ /** The timestamp of resource creation (UTC). */
677
+ createdAt?: Date;
678
+ /** The identity that last modified the resource. */
679
+ lastModifiedBy?: string;
680
+ /** The type of identity that last modified the resource. */
681
+ lastModifiedByType?: CreatedByType;
682
+ /** The timestamp of resource last modification (UTC) */
683
+ lastModifiedAt?: Date;
684
+ }
685
+
686
+ /** The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location' */
687
+ export declare type TrackedResource = Resource & {
688
+ /** Resource tags. */
689
+ tags?: {
690
+ [propertyName: string]: string;
691
+ };
692
+ /** The geo-location where the resource lives */
693
+ location: string;
694
+ };
695
+
696
+ export { }