@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.
Files changed (104) hide show
  1. package/CHANGELOG.md +28 -0
  2. package/README.md +12 -1
  3. package/dist/index.js +426 -40
  4. package/dist/index.js.map +1 -1
  5. package/dist/index.min.js +1 -1
  6. package/dist/index.min.js.map +1 -1
  7. package/dist-esm/samples-dev/accountsCreateOrUpdateSample.d.ts +2 -0
  8. package/dist-esm/samples-dev/accountsCreateOrUpdateSample.d.ts.map +1 -0
  9. package/dist-esm/samples-dev/accountsCreateOrUpdateSample.js +130 -0
  10. package/dist-esm/samples-dev/accountsCreateOrUpdateSample.js.map +1 -0
  11. package/dist-esm/samples-dev/accountsDeleteSample.d.ts +2 -0
  12. package/dist-esm/samples-dev/accountsDeleteSample.d.ts.map +1 -0
  13. package/dist-esm/samples-dev/accountsDeleteSample.js +31 -0
  14. package/dist-esm/samples-dev/accountsDeleteSample.js.map +1 -0
  15. package/dist-esm/samples-dev/accountsGetSample.d.ts +2 -0
  16. package/dist-esm/samples-dev/accountsGetSample.d.ts.map +1 -0
  17. package/dist-esm/samples-dev/accountsGetSample.js +31 -0
  18. package/dist-esm/samples-dev/accountsGetSample.js.map +1 -0
  19. package/dist-esm/samples-dev/accountsListByResourceGroupSample.d.ts +2 -0
  20. package/dist-esm/samples-dev/accountsListByResourceGroupSample.d.ts.map +1 -0
  21. package/dist-esm/samples-dev/accountsListByResourceGroupSample.js +44 -0
  22. package/dist-esm/samples-dev/accountsListByResourceGroupSample.js.map +1 -0
  23. package/dist-esm/samples-dev/accountsListBySubscriptionSample.d.ts +2 -0
  24. package/dist-esm/samples-dev/accountsListBySubscriptionSample.d.ts.map +1 -0
  25. package/dist-esm/samples-dev/accountsListBySubscriptionSample.js +43 -0
  26. package/dist-esm/samples-dev/accountsListBySubscriptionSample.js.map +1 -0
  27. package/dist-esm/samples-dev/accountsListKeysSample.d.ts +2 -0
  28. package/dist-esm/samples-dev/accountsListKeysSample.d.ts.map +1 -0
  29. package/dist-esm/samples-dev/accountsListKeysSample.js +31 -0
  30. package/dist-esm/samples-dev/accountsListKeysSample.js.map +1 -0
  31. package/dist-esm/samples-dev/accountsListSasSample.d.ts +2 -0
  32. package/dist-esm/samples-dev/accountsListSasSample.d.ts.map +1 -0
  33. package/dist-esm/samples-dev/accountsListSasSample.js +47 -0
  34. package/dist-esm/samples-dev/accountsListSasSample.js.map +1 -0
  35. package/dist-esm/samples-dev/accountsRegenerateKeysSample.d.ts +2 -0
  36. package/dist-esm/samples-dev/accountsRegenerateKeysSample.d.ts.map +1 -0
  37. package/dist-esm/samples-dev/accountsRegenerateKeysSample.js +32 -0
  38. package/dist-esm/samples-dev/accountsRegenerateKeysSample.js.map +1 -0
  39. package/dist-esm/samples-dev/accountsUpdateSample.d.ts +2 -0
  40. package/dist-esm/samples-dev/accountsUpdateSample.d.ts.map +1 -0
  41. package/dist-esm/samples-dev/accountsUpdateSample.js +112 -0
  42. package/dist-esm/samples-dev/accountsUpdateSample.js.map +1 -0
  43. package/dist-esm/samples-dev/creatorsCreateOrUpdateSample.d.ts +2 -0
  44. package/dist-esm/samples-dev/creatorsCreateOrUpdateSample.d.ts.map +1 -0
  45. package/dist-esm/samples-dev/creatorsCreateOrUpdateSample.js +37 -0
  46. package/dist-esm/samples-dev/creatorsCreateOrUpdateSample.js.map +1 -0
  47. package/dist-esm/samples-dev/creatorsDeleteSample.d.ts +2 -0
  48. package/dist-esm/samples-dev/creatorsDeleteSample.d.ts.map +1 -0
  49. package/dist-esm/samples-dev/creatorsDeleteSample.js +32 -0
  50. package/dist-esm/samples-dev/creatorsDeleteSample.js.map +1 -0
  51. package/dist-esm/samples-dev/creatorsGetSample.d.ts +2 -0
  52. package/dist-esm/samples-dev/creatorsGetSample.d.ts.map +1 -0
  53. package/dist-esm/samples-dev/creatorsGetSample.js +32 -0
  54. package/dist-esm/samples-dev/creatorsGetSample.js.map +1 -0
  55. package/dist-esm/samples-dev/creatorsListByAccountSample.d.ts +2 -0
  56. package/dist-esm/samples-dev/creatorsListByAccountSample.d.ts.map +1 -0
  57. package/dist-esm/samples-dev/creatorsListByAccountSample.js +45 -0
  58. package/dist-esm/samples-dev/creatorsListByAccountSample.js.map +1 -0
  59. package/dist-esm/samples-dev/creatorsUpdateSample.d.ts +2 -0
  60. package/dist-esm/samples-dev/creatorsUpdateSample.d.ts.map +1 -0
  61. package/dist-esm/samples-dev/creatorsUpdateSample.js +36 -0
  62. package/dist-esm/samples-dev/creatorsUpdateSample.js.map +1 -0
  63. package/dist-esm/samples-dev/mapsListOperationsSample.d.ts +2 -0
  64. package/dist-esm/samples-dev/mapsListOperationsSample.d.ts.map +1 -0
  65. package/dist-esm/samples-dev/mapsListOperationsSample.js +43 -0
  66. package/dist-esm/samples-dev/mapsListOperationsSample.js.map +1 -0
  67. package/dist-esm/samples-dev/mapsListSubscriptionOperationsSample.d.ts +2 -0
  68. package/dist-esm/samples-dev/mapsListSubscriptionOperationsSample.d.ts.map +1 -0
  69. package/dist-esm/samples-dev/mapsListSubscriptionOperationsSample.js +43 -0
  70. package/dist-esm/samples-dev/mapsListSubscriptionOperationsSample.js.map +1 -0
  71. package/dist-esm/src/azureMapsManagementClient.d.ts.map +1 -1
  72. package/dist-esm/src/azureMapsManagementClient.js +21 -3
  73. package/dist-esm/src/azureMapsManagementClient.js.map +1 -1
  74. package/dist-esm/src/models/index.d.ts +115 -2
  75. package/dist-esm/src/models/index.d.ts.map +1 -1
  76. package/dist-esm/src/models/index.js +6 -0
  77. package/dist-esm/src/models/index.js.map +1 -1
  78. package/dist-esm/src/models/mappers.d.ts +7 -0
  79. package/dist-esm/src/models/mappers.d.ts.map +1 -1
  80. package/dist-esm/src/models/mappers.js +282 -0
  81. package/dist-esm/src/models/mappers.js.map +1 -1
  82. package/dist-esm/src/models/parameters.d.ts +1 -0
  83. package/dist-esm/src/models/parameters.d.ts.map +1 -1
  84. package/dist-esm/src/models/parameters.js +6 -2
  85. package/dist-esm/src/models/parameters.js.map +1 -1
  86. package/dist-esm/src/operations/accounts.d.ts +16 -1
  87. package/dist-esm/src/operations/accounts.d.ts.map +1 -1
  88. package/dist-esm/src/operations/accounts.js +40 -0
  89. package/dist-esm/src/operations/accounts.js.map +1 -1
  90. package/dist-esm/src/operationsInterfaces/accounts.d.ts +16 -1
  91. package/dist-esm/src/operationsInterfaces/accounts.d.ts.map +1 -1
  92. package/package.json +36 -15
  93. package/review/arm-maps.api.md +78 -0
  94. package/rollup.config.js +6 -72
  95. package/src/azureMapsManagementClient.ts +28 -3
  96. package/src/models/index.ts +130 -2
  97. package/src/models/mappers.ts +293 -0
  98. package/src/models/parameters.ts +7 -1
  99. package/src/operations/accounts.ts +53 -0
  100. package/src/operationsInterfaces/accounts.ts +23 -0
  101. package/tsconfig.json +19 -5
  102. package/types/arm-maps.d.ts +142 -2
  103. package/types/tsdoc-metadata.json +1 -1
  104. package/LICENSE.txt +0 -21
@@ -47,6 +47,21 @@ export declare interface Accounts {
47
47
  * @param options The options parameters.
48
48
  */
49
49
  get(resourceGroupName: string, accountName: string, options?: AccountsGetOptionalParams): Promise<AccountsGetResponse>;
50
+ /**
51
+ * Create and list an account shared access signature token. Use this SAS token for authentication to
52
+ * Azure Maps REST APIs through various Azure Maps SDKs. As prerequisite to create a SAS Token.
53
+ *
54
+ * Prerequisites:
55
+ * 1. Create or have an existing User Assigned Managed Identity in the same Azure region as the
56
+ * account.
57
+ * 2. Create or update an Azure Map account with the same Azure region as the User Assigned Managed
58
+ * Identity is placed.
59
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
60
+ * @param accountName The name of the Maps Account.
61
+ * @param mapsAccountSasParameters The updated parameters for the Maps Account.
62
+ * @param options The options parameters.
63
+ */
64
+ listSas(resourceGroupName: string, accountName: string, mapsAccountSasParameters: AccountSasParameters, options?: AccountsListSasOptionalParams): Promise<AccountsListSasResponse>;
50
65
  /**
51
66
  * Get the keys to use with the Maps APIs. A key is used to authenticate and authorize access to the
52
67
  * Maps REST APIs. Only one key is needed at a time; two are given to provide seamless key
@@ -67,6 +82,22 @@ export declare interface Accounts {
67
82
  regenerateKeys(resourceGroupName: string, accountName: string, keySpecification: MapsKeySpecification, options?: AccountsRegenerateKeysOptionalParams): Promise<AccountsRegenerateKeysResponse>;
68
83
  }
69
84
 
85
+ /** Parameters used to create an account Shared Access Signature (SAS) token. The REST API access control is provided by Azure Maps Role Based Access (RBAC) identity and access. */
86
+ export declare interface AccountSasParameters {
87
+ /** The Map account key to use for signing. */
88
+ signingKey: SigningKey;
89
+ /** The principal Id also known as the object Id of a User Assigned Managed Identity currently assigned to the Map Account. To assign a Managed Identity of the account, use operation Create or Update an assign a User Assigned Identity resource Id. */
90
+ principalId: string;
91
+ /** Optional, allows control of which region locations are permitted access to Azure Maps REST APIs with the SAS token. Example: "eastus", "westus2". Omitting this parameter will allow all region locations to be accessible. */
92
+ regions?: string[];
93
+ /** Required parameter which represents the desired maximum request per second to allowed for the given SAS token. This does not guarantee perfect accuracy in measurements but provides application safe guards of abuse with eventual enforcement. */
94
+ maxRatePerSecond: number;
95
+ /** The date time offset of when the token validity begins. For example "2017-05-24T10:42:03.1567373Z". */
96
+ start: string;
97
+ /** The date time offset of when the token validity expires. For example "2017-05-24T10:42:03.1567373Z" */
98
+ expiry: string;
99
+ }
100
+
70
101
  /** Optional parameters. */
71
102
  export declare interface AccountsCreateOrUpdateOptionalParams extends coreClient.OperationOptions {
72
103
  }
@@ -120,6 +151,13 @@ export declare interface AccountsListKeysOptionalParams extends coreClient.Opera
120
151
  /** Contains response data for the listKeys operation. */
121
152
  export declare type AccountsListKeysResponse = MapsAccountKeys;
122
153
 
154
+ /** Optional parameters. */
155
+ export declare interface AccountsListSasOptionalParams extends coreClient.OperationOptions {
156
+ }
157
+
158
+ /** Contains response data for the listSas operation. */
159
+ export declare type AccountsListSasResponse = MapsAccountSasToken;
160
+
123
161
  /** Optional parameters. */
124
162
  export declare interface AccountsRegenerateKeysOptionalParams extends coreClient.OperationOptions {
125
163
  }
@@ -160,6 +198,31 @@ export declare interface AzureMapsManagementClientOptionalParams extends coreCli
160
198
  endpoint?: string;
161
199
  }
162
200
 
201
+ export declare interface Components1Jq1T4ISchemasManagedserviceidentityPropertiesUserassignedidentitiesAdditionalproperties {
202
+ /**
203
+ * The principal id of user assigned identity.
204
+ * NOTE: This property will not be serialized. It can only be populated by the server.
205
+ */
206
+ readonly principalId?: string;
207
+ /**
208
+ * The client id of user assigned identity.
209
+ * NOTE: This property will not be serialized. It can only be populated by the server.
210
+ */
211
+ readonly clientId?: string;
212
+ }
213
+
214
+ /** Specifies a CORS rule for the Map Account. */
215
+ export declare interface CorsRule {
216
+ /** Required if CorsRule element is present. A list of origin domains that will be allowed via CORS, or "*" to allow all domains */
217
+ allowedOrigins: string[];
218
+ }
219
+
220
+ /** Sets the CORS rules. You can include up to five CorsRule elements in the request. */
221
+ export declare interface CorsRules {
222
+ /** The list of CORS rules. You can include up to five CorsRule elements in the request. */
223
+ corsRules?: CorsRule[];
224
+ }
225
+
163
226
  /**
164
227
  * Defines values for CreatedByType. \
165
228
  * {@link KnownCreatedByType} can be used interchangeably with CreatedByType,
@@ -176,6 +239,11 @@ export declare type CreatedByType = string;
176
239
  export declare type Creator = TrackedResource & {
177
240
  /** The Creator resource properties. */
178
241
  properties: CreatorProperties;
242
+ /**
243
+ * The system meta data relating to this resource.
244
+ * NOTE: This property will not be serialized. It can only be populated by the server.
245
+ */
246
+ readonly systemData?: SystemData;
179
247
  };
180
248
 
181
249
  /** A list of Creator resources. */
@@ -417,6 +485,40 @@ export declare enum KnownName {
417
485
  G2 = "G2"
418
486
  }
419
487
 
488
+ /** Known values of {@link SigningKey} that the service accepts. */
489
+ export declare enum KnownSigningKey {
490
+ PrimaryKey = "primaryKey",
491
+ SecondaryKey = "secondaryKey"
492
+ }
493
+
494
+ /** Linked resource is reference to a resource deployed in an Azure subscription, add the linked resource `uniqueName` value as an optional parameter for operations on Azure Maps Geospatial REST APIs. */
495
+ export declare interface LinkedResource {
496
+ /** A provided name which uniquely identifies the linked resource. */
497
+ uniqueName: string;
498
+ /** ARM resource id in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/accounts/{storageName}'. */
499
+ id: string;
500
+ }
501
+
502
+ /** Identity for the resource. */
503
+ export declare interface ManagedServiceIdentity {
504
+ /**
505
+ * The principal ID of resource identity.
506
+ * NOTE: This property will not be serialized. It can only be populated by the server.
507
+ */
508
+ readonly principalId?: string;
509
+ /**
510
+ * The tenant ID of resource.
511
+ * NOTE: This property will not be serialized. It can only be populated by the server.
512
+ */
513
+ readonly tenantId?: string;
514
+ /** The identity type. */
515
+ type?: ResourceIdentityType;
516
+ /** The list of user identities associated with the resource. The user identity dictionary key references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'. */
517
+ userAssignedIdentities?: {
518
+ [propertyName: string]: Components1Jq1T4ISchemasManagedserviceidentityPropertiesUserassignedidentitiesAdditionalproperties;
519
+ };
520
+ }
521
+
420
522
  /** Interface representing a Maps. */
421
523
  export declare interface Maps {
422
524
  /**
@@ -442,6 +544,8 @@ export declare type MapsAccount = TrackedResource & {
442
544
  * NOTE: This property will not be serialized. It can only be populated by the server.
443
545
  */
444
546
  readonly systemData?: SystemData;
547
+ /** Sets the identity property for maps account. */
548
+ identity?: ManagedServiceIdentity;
445
549
  /** The map account properties. */
446
550
  properties?: MapsAccountProperties;
447
551
  };
@@ -480,10 +584,14 @@ export declare interface MapsAccountProperties {
480
584
  /** Allows toggle functionality on Azure Policy to disable Azure Maps local authentication support. This will disable Shared Keys authentication from any usage. */
481
585
  disableLocalAuth?: boolean;
482
586
  /**
483
- * the state of the provisioning.
587
+ * The provisioning state of the Map account resource.
484
588
  * NOTE: This property will not be serialized. It can only be populated by the server.
485
589
  */
486
590
  readonly provisioningState?: string;
591
+ /** Sets the resources to be used for Managed Identities based operations for the Map account resource. */
592
+ linkedResources?: LinkedResource[];
593
+ /** Specifies CORS rules for the Blob service. You can include up to five CorsRule elements in the request. If no CorsRule elements are included in the request body, all CORS rules will be deleted, and CORS will be disabled for the Blob service. */
594
+ cors?: CorsRules;
487
595
  }
488
596
 
489
597
  /** A list of Maps Accounts. */
@@ -500,6 +608,15 @@ export declare interface MapsAccounts {
500
608
  nextLink?: string;
501
609
  }
502
610
 
611
+ /** A new Sas token which can be used to access the Maps REST APIs and is controlled by the specified Managed identity permissions on Azure (IAM) Role Based Access Control. */
612
+ export declare interface MapsAccountSasToken {
613
+ /**
614
+ * The shared access signature access token.
615
+ * NOTE: This property will not be serialized. It can only be populated by the server.
616
+ */
617
+ readonly accountSasToken?: string;
618
+ }
619
+
503
620
  /** Parameters used to update an existing Maps Account. */
504
621
  export declare interface MapsAccountUpdateParameters {
505
622
  /** 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. */
@@ -510,6 +627,8 @@ export declare interface MapsAccountUpdateParameters {
510
627
  kind?: Kind;
511
628
  /** The SKU of this account. */
512
629
  sku?: Sku;
630
+ /** Sets the identity property for maps account. */
631
+ identity?: ManagedServiceIdentity;
513
632
  /**
514
633
  * A unique identifier for the maps account
515
634
  * NOTE: This property will not be serialized. It can only be populated by the server.
@@ -518,10 +637,14 @@ export declare interface MapsAccountUpdateParameters {
518
637
  /** Allows toggle functionality on Azure Policy to disable Azure Maps local authentication support. This will disable Shared Keys authentication from any usage. */
519
638
  disableLocalAuth?: boolean;
520
639
  /**
521
- * the state of the provisioning.
640
+ * The provisioning state of the Map account resource.
522
641
  * NOTE: This property will not be serialized. It can only be populated by the server.
523
642
  */
524
643
  readonly provisioningState?: string;
644
+ /** Sets the resources to be used for Managed Identities based operations for the Map account resource. */
645
+ linkedResources?: LinkedResource[];
646
+ /** Specifies CORS rules for the Blob service. You can include up to five CorsRule elements in the request. If no CorsRule elements are included in the request body, all CORS rules will be deleted, and CORS will be disabled for the Blob service. */
647
+ cors?: CorsRules;
525
648
  }
526
649
 
527
650
  /** Whether the operation refers to the primary or secondary key. */
@@ -592,6 +715,10 @@ export declare interface MetricSpecification {
592
715
  category?: string;
593
716
  /** Account Resource Id. */
594
717
  resourceIdDimensionNameOverride?: string;
718
+ /** Source metrics account. */
719
+ sourceMdmAccount?: string;
720
+ /** Internal metric name. */
721
+ internalMetricName?: string;
595
722
  }
596
723
 
597
724
  /**
@@ -650,12 +777,25 @@ export declare interface Resource {
650
777
  readonly type?: string;
651
778
  }
652
779
 
780
+ /** Defines values for ResourceIdentityType. */
781
+ export declare type ResourceIdentityType = "SystemAssigned" | "UserAssigned" | "SystemAssigned, UserAssigned" | "None";
782
+
653
783
  /** One property of operation, include metric specifications. */
654
784
  export declare interface ServiceSpecification {
655
785
  /** Metric specifications of operation. */
656
786
  metricSpecifications?: MetricSpecification[];
657
787
  }
658
788
 
789
+ /**
790
+ * Defines values for SigningKey. \
791
+ * {@link KnownSigningKey} can be used interchangeably with SigningKey,
792
+ * this enum contains the known values that the service supports.
793
+ * ### Known values supported by the service
794
+ * **primaryKey** \
795
+ * **secondaryKey**
796
+ */
797
+ export declare type SigningKey = string;
798
+
659
799
  /** The SKU of the Maps Account. */
660
800
  export declare interface Sku {
661
801
  /** The name of the SKU, in standard format (such as S0). */
@@ -5,7 +5,7 @@
5
5
  "toolPackages": [
6
6
  {
7
7
  "packageName": "@microsoft/api-extractor",
8
- "packageVersion": "7.19.4"
8
+ "packageVersion": "7.18.11"
9
9
  }
10
10
  ]
11
11
  }
package/LICENSE.txt DELETED
@@ -1,21 +0,0 @@
1
- The MIT License (MIT)
2
-
3
- Copyright (c) 2021 Microsoft
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.