@azure/arm-maps 3.1.0-beta.1 → 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.
Files changed (91) hide show
  1. package/CHANGELOG.md +42 -27
  2. package/LICENSE +1 -1
  3. package/README.md +2 -2
  4. package/dist/index.js +399 -113
  5. package/dist/index.js.map +1 -1
  6. package/dist/index.min.js +1 -1
  7. package/dist/index.min.js.map +1 -1
  8. package/dist-esm/samples-dev/accountsCreateOrUpdateSample.js +63 -12
  9. package/dist-esm/samples-dev/accountsCreateOrUpdateSample.js.map +1 -1
  10. package/dist-esm/samples-dev/accountsDeleteSample.js +12 -4
  11. package/dist-esm/samples-dev/accountsDeleteSample.js.map +1 -1
  12. package/dist-esm/samples-dev/accountsGetSample.js +12 -4
  13. package/dist-esm/samples-dev/accountsGetSample.js.map +1 -1
  14. package/dist-esm/samples-dev/accountsListByResourceGroupSample.js +24 -9
  15. package/dist-esm/samples-dev/accountsListByResourceGroupSample.js.map +1 -1
  16. package/dist-esm/samples-dev/accountsListBySubscriptionSample.js +23 -8
  17. package/dist-esm/samples-dev/accountsListBySubscriptionSample.js.map +1 -1
  18. package/dist-esm/samples-dev/accountsListKeysSample.js +12 -4
  19. package/dist-esm/samples-dev/accountsListKeysSample.js.map +1 -1
  20. package/dist-esm/samples-dev/accountsListSasSample.js +12 -4
  21. package/dist-esm/samples-dev/accountsListSasSample.js.map +1 -1
  22. package/dist-esm/samples-dev/accountsRegenerateKeysSample.js +12 -4
  23. package/dist-esm/samples-dev/accountsRegenerateKeysSample.js.map +1 -1
  24. package/dist-esm/samples-dev/accountsUpdateSample.js +63 -16
  25. package/dist-esm/samples-dev/accountsUpdateSample.js.map +1 -1
  26. package/dist-esm/samples-dev/creatorsCreateOrUpdateSample.js +12 -4
  27. package/dist-esm/samples-dev/creatorsCreateOrUpdateSample.js.map +1 -1
  28. package/dist-esm/samples-dev/creatorsDeleteSample.js +12 -4
  29. package/dist-esm/samples-dev/creatorsDeleteSample.js.map +1 -1
  30. package/dist-esm/samples-dev/creatorsGetSample.js +12 -4
  31. package/dist-esm/samples-dev/creatorsGetSample.js.map +1 -1
  32. package/dist-esm/samples-dev/creatorsListByAccountSample.js +24 -9
  33. package/dist-esm/samples-dev/creatorsListByAccountSample.js.map +1 -1
  34. package/dist-esm/samples-dev/creatorsUpdateSample.js +12 -4
  35. package/dist-esm/samples-dev/creatorsUpdateSample.js.map +1 -1
  36. package/dist-esm/samples-dev/mapsListOperationsSample.js +22 -9
  37. package/dist-esm/samples-dev/mapsListOperationsSample.js.map +1 -1
  38. package/dist-esm/samples-dev/mapsListSubscriptionOperationsSample.js +23 -8
  39. package/dist-esm/samples-dev/mapsListSubscriptionOperationsSample.js.map +1 -1
  40. package/dist-esm/src/azureMapsManagementClient.d.ts +4 -1
  41. package/dist-esm/src/azureMapsManagementClient.d.ts.map +1 -1
  42. package/dist-esm/src/azureMapsManagementClient.js +57 -28
  43. package/dist-esm/src/azureMapsManagementClient.js.map +1 -1
  44. package/dist-esm/src/index.d.ts +1 -0
  45. package/dist-esm/src/index.d.ts.map +1 -1
  46. package/dist-esm/src/index.js +1 -0
  47. package/dist-esm/src/index.js.map +1 -1
  48. package/dist-esm/src/models/index.d.ts +161 -56
  49. package/dist-esm/src/models/index.d.ts.map +1 -1
  50. package/dist-esm/src/models/index.js +45 -0
  51. package/dist-esm/src/models/index.js.map +1 -1
  52. package/dist-esm/src/models/mappers.d.ts +4 -1
  53. package/dist-esm/src/models/mappers.d.ts.map +1 -1
  54. package/dist-esm/src/models/mappers.js +109 -17
  55. package/dist-esm/src/models/mappers.js.map +1 -1
  56. package/dist-esm/src/models/parameters.js +1 -1
  57. package/dist-esm/src/models/parameters.js.map +1 -1
  58. package/dist-esm/src/operations/accounts.d.ts.map +1 -1
  59. package/dist-esm/src/operations/accounts.js +61 -26
  60. package/dist-esm/src/operations/accounts.js.map +1 -1
  61. package/dist-esm/src/operations/creators.d.ts.map +1 -1
  62. package/dist-esm/src/operations/creators.js +31 -13
  63. package/dist-esm/src/operations/creators.js.map +1 -1
  64. package/dist-esm/src/operations/maps.d.ts.map +1 -1
  65. package/dist-esm/src/operations/maps.js +61 -26
  66. package/dist-esm/src/operations/maps.js.map +1 -1
  67. package/dist-esm/src/pagingHelper.d.ts +13 -0
  68. package/dist-esm/src/pagingHelper.d.ts.map +1 -0
  69. package/dist-esm/src/pagingHelper.js +32 -0
  70. package/dist-esm/src/pagingHelper.js.map +1 -0
  71. package/dist-esm/test/maps_operations_test.spec.d.ts +4 -0
  72. package/dist-esm/test/maps_operations_test.spec.d.ts.map +1 -0
  73. package/dist-esm/test/maps_operations_test.spec.js +140 -0
  74. package/dist-esm/test/maps_operations_test.spec.js.map +1 -0
  75. package/package.json +20 -15
  76. package/review/arm-maps.api.md +78 -35
  77. package/src/azureMapsManagementClient.ts +78 -24
  78. package/src/index.ts +1 -0
  79. package/src/models/index.ts +146 -38
  80. package/src/models/mappers.ts +112 -19
  81. package/src/models/parameters.ts +1 -1
  82. package/src/operations/accounts.ts +46 -19
  83. package/src/operations/creators.ts +26 -13
  84. package/src/operations/maps.ts +41 -18
  85. package/src/pagingHelper.ts +39 -0
  86. package/types/arm-maps.d.ts +169 -44
  87. package/types/tsdoc-metadata.json +1 -1
  88. package/dist-esm/test/sampleTest.d.ts +0 -2
  89. package/dist-esm/test/sampleTest.d.ts.map +0 -1
  90. package/dist-esm/test/sampleTest.js +0 -40
  91. package/dist-esm/test/sampleTest.js.map +0 -1
@@ -84,7 +84,7 @@ export declare interface Accounts {
84
84
 
85
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
86
  export declare interface AccountSasParameters {
87
- /** The Map account key to use for signing. */
87
+ /** The Map account key to use for signing. Picking `primaryKey` or `secondaryKey` will use the Map account Shared Keys, and using `managedIdentity` will use the auto-renewed private key to sign the SAS. */
88
88
  signingKey: SigningKey;
89
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
90
  principalId: string;
@@ -92,9 +92,9 @@ export declare interface AccountSasParameters {
92
92
  regions?: string[];
93
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
94
  maxRatePerSecond: number;
95
- /** The date time offset of when the token validity begins. For example "2017-05-24T10:42:03.1567373Z". */
95
+ /** The date time offset of when the token validity begins. For example "2017-05-24T10:42:03.1567373Z". Maximum duration allowed is 24 hours between `start` and `expiry`. */
96
96
  start: string;
97
- /** The date time offset of when the token validity expires. For example "2017-05-24T10:42:03.1567373Z" */
97
+ /** The date time offset of when the token validity expires. For example "2017-05-24T10:42:03.1567373Z". Maximum duration allowed is 24 hours between `start` and `expiry`. */
98
98
  expiry: string;
99
99
  }
100
100
 
@@ -175,7 +175,7 @@ export declare type AccountsUpdateResponse = MapsAccount;
175
175
  export declare class AzureMapsManagementClient extends coreClient.ServiceClient {
176
176
  $host: string;
177
177
  apiVersion: string;
178
- subscriptionId: string;
178
+ subscriptionId?: string;
179
179
  /**
180
180
  * Initializes a new instance of the AzureMapsManagementClient class.
181
181
  * @param credentials Subscription credentials which uniquely identify client subscription.
@@ -183,6 +183,9 @@ export declare class AzureMapsManagementClient extends coreClient.ServiceClient
183
183
  * @param options The parameter options
184
184
  */
185
185
  constructor(credentials: coreAuth.TokenCredential, subscriptionId: string, options?: AzureMapsManagementClientOptionalParams);
186
+ constructor(credentials: coreAuth.TokenCredential, options?: AzureMapsManagementClientOptionalParams);
187
+ /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
188
+ private addCustomApiVersionPolicy;
186
189
  accounts: Accounts;
187
190
  maps: Maps;
188
191
  creators: Creators;
@@ -198,19 +201,6 @@ export declare interface AzureMapsManagementClientOptionalParams extends coreCli
198
201
  endpoint?: string;
199
202
  }
200
203
 
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
204
  /** Specifies a CORS rule for the Map Account. */
215
205
  export declare interface CorsRule {
216
206
  /** Required if CorsRule element is present. A list of origin domains that will be allowed via CORS, or "*" to allow all domains */
@@ -236,7 +226,7 @@ export declare interface CorsRules {
236
226
  export declare type CreatedByType = string;
237
227
 
238
228
  /** An Azure resource which represents Maps Creator product and provides ability to manage private location data. */
239
- export declare type Creator = TrackedResource & {
229
+ export declare interface Creator extends TrackedResource {
240
230
  /** The Creator resource properties. */
241
231
  properties: CreatorProperties;
242
232
  /**
@@ -244,7 +234,7 @@ export declare type Creator = TrackedResource & {
244
234
  * NOTE: This property will not be serialized. It can only be populated by the server.
245
235
  */
246
236
  readonly systemData?: SystemData;
247
- };
237
+ }
248
238
 
249
239
  /** A list of Creator resources. */
250
240
  export declare interface CreatorList {
@@ -372,6 +362,24 @@ export declare interface CreatorUpdateParameters {
372
362
  storageUnits?: number;
373
363
  }
374
364
 
365
+ /** All Customer-managed key encryption properties for the resource. */
366
+ export declare interface CustomerManagedKeyEncryption {
367
+ /** All identity configuration for Customer-managed key settings defining which identity should be used to auth to Key Vault. */
368
+ keyEncryptionKeyIdentity?: CustomerManagedKeyEncryptionKeyIdentity;
369
+ /** key encryption key Url, versioned or non-versioned. Ex: https://contosovault.vault.azure.net/keys/contosokek/562a4bb76b524a1493a6afe8e536ee78 or https://contosovault.vault.azure.net/keys/contosokek. */
370
+ keyEncryptionKeyUrl?: string;
371
+ }
372
+
373
+ /** All identity configuration for Customer-managed key settings defining which identity should be used to auth to Key Vault. */
374
+ export declare interface CustomerManagedKeyEncryptionKeyIdentity {
375
+ /** Values can be systemAssignedIdentity or userAssignedIdentity */
376
+ identityType?: IdentityType;
377
+ /** user assigned identity to use for accessing key encryption key Url. Ex: /subscriptions/fa5fc227-a624-475e-b696-cdd604c735bc/resourceGroups/<resource group>/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myId. Mutually exclusive with identityType systemAssignedIdentity and delegatedResourceIdentity. */
378
+ userAssignedIdentityResourceId?: string;
379
+ /** delegated identity to use for accessing key encryption key Url. Ex: /subscriptions/fa5fc227-a624-475e-b696-cdd604c735bc/resourceGroups/<resource group>/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myId. Mutually exclusive with identityType systemAssignedIdentity and userAssignedIdentity - internal use only. */
380
+ delegatedIdentityClientId?: string;
381
+ }
382
+
375
383
  /** Dimension of map account, for example API Category, Api Name, Result Type, and Response Code. */
376
384
  export declare interface Dimension {
377
385
  /** Display name of dimension. */
@@ -388,6 +396,14 @@ export declare interface Dimension {
388
396
  toBeExportedToShoebox?: boolean;
389
397
  }
390
398
 
399
+ /** (Optional) Discouraged to include in resource definition. Only needed where it is possible to disable platform (AKA infrastructure) encryption. Azure SQL TDE is an example of this. Values are enabled and disabled. */
400
+ export declare interface Encryption {
401
+ /** Values are enabled and disabled. */
402
+ infrastructureEncryption?: InfrastructureEncryption;
403
+ /** All Customer-managed key encryption properties for the resource. */
404
+ customerManagedKeyEncryption?: CustomerManagedKeyEncryption;
405
+ }
406
+
391
407
  /** The resource management error additional info. */
392
408
  export declare interface ErrorAdditionalInfo {
393
409
  /**
@@ -437,6 +453,36 @@ export declare interface ErrorResponse {
437
453
  error?: ErrorDetail;
438
454
  }
439
455
 
456
+ /**
457
+ * Given the last `.value` produced by the `byPage` iterator,
458
+ * returns a continuation token that can be used to begin paging from
459
+ * that point later.
460
+ * @param page An object from accessing `value` on the IteratorResult from a `byPage` iterator.
461
+ * @returns The continuation token that can be passed into byPage() during future calls.
462
+ */
463
+ export declare function getContinuationToken(page: unknown): string | undefined;
464
+
465
+ /**
466
+ * Defines values for IdentityType. \
467
+ * {@link KnownIdentityType} can be used interchangeably with IdentityType,
468
+ * this enum contains the known values that the service supports.
469
+ * ### Known values supported by the service
470
+ * **systemAssignedIdentity** \
471
+ * **userAssignedIdentity** \
472
+ * **delegatedResourceIdentity**
473
+ */
474
+ export declare type IdentityType = string;
475
+
476
+ /**
477
+ * Defines values for InfrastructureEncryption. \
478
+ * {@link KnownInfrastructureEncryption} can be used interchangeably with InfrastructureEncryption,
479
+ * this enum contains the known values that the service supports.
480
+ * ### Known values supported by the service
481
+ * **enabled** \
482
+ * **disabled**
483
+ */
484
+ export declare type InfrastructureEncryption = string;
485
+
440
486
  /**
441
487
  * Defines values for KeyType. \
442
488
  * {@link KnownKeyType} can be used interchangeably with KeyType,
@@ -460,35 +506,80 @@ export declare type Kind = string;
460
506
 
461
507
  /** Known values of {@link CreatedByType} that the service accepts. */
462
508
  export declare enum KnownCreatedByType {
509
+ /** User */
463
510
  User = "User",
511
+ /** Application */
464
512
  Application = "Application",
513
+ /** ManagedIdentity */
465
514
  ManagedIdentity = "ManagedIdentity",
515
+ /** Key */
466
516
  Key = "Key"
467
517
  }
468
518
 
519
+ /** Known values of {@link IdentityType} that the service accepts. */
520
+ export declare enum KnownIdentityType {
521
+ /** SystemAssignedIdentity */
522
+ SystemAssignedIdentity = "systemAssignedIdentity",
523
+ /** UserAssignedIdentity */
524
+ UserAssignedIdentity = "userAssignedIdentity",
525
+ /** DelegatedResourceIdentity */
526
+ DelegatedResourceIdentity = "delegatedResourceIdentity"
527
+ }
528
+
529
+ /** Known values of {@link InfrastructureEncryption} that the service accepts. */
530
+ export declare enum KnownInfrastructureEncryption {
531
+ /** Enabled */
532
+ Enabled = "enabled",
533
+ /** Disabled */
534
+ Disabled = "disabled"
535
+ }
536
+
469
537
  /** Known values of {@link KeyType} that the service accepts. */
470
538
  export declare enum KnownKeyType {
539
+ /** Primary */
471
540
  Primary = "primary",
541
+ /** Secondary */
472
542
  Secondary = "secondary"
473
543
  }
474
544
 
475
545
  /** Known values of {@link Kind} that the service accepts. */
476
546
  export declare enum KnownKind {
547
+ /** Gen1 */
477
548
  Gen1 = "Gen1",
549
+ /** Gen2 */
478
550
  Gen2 = "Gen2"
479
551
  }
480
552
 
553
+ /** Known values of {@link ManagedServiceIdentityType} that the service accepts. */
554
+ export declare enum KnownManagedServiceIdentityType {
555
+ /** None */
556
+ None = "None",
557
+ /** SystemAssigned */
558
+ SystemAssigned = "SystemAssigned",
559
+ /** UserAssigned */
560
+ UserAssigned = "UserAssigned",
561
+ /** SystemAssignedUserAssigned */
562
+ SystemAssignedUserAssigned = "SystemAssigned, UserAssigned"
563
+ }
564
+
481
565
  /** Known values of {@link Name} that the service accepts. */
482
566
  export declare enum KnownName {
567
+ /** S0 */
483
568
  S0 = "S0",
569
+ /** S1 */
484
570
  S1 = "S1",
571
+ /** G2 */
485
572
  G2 = "G2"
486
573
  }
487
574
 
488
575
  /** Known values of {@link SigningKey} that the service accepts. */
489
576
  export declare enum KnownSigningKey {
577
+ /** PrimaryKey */
490
578
  PrimaryKey = "primaryKey",
491
- SecondaryKey = "secondaryKey"
579
+ /** SecondaryKey */
580
+ SecondaryKey = "secondaryKey",
581
+ /** ManagedIdentity */
582
+ ManagedIdentity = "managedIdentity"
492
583
  }
493
584
 
494
585
  /** 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. */
@@ -499,26 +590,38 @@ export declare interface LinkedResource {
499
590
  id: string;
500
591
  }
501
592
 
502
- /** Identity for the resource. */
593
+ /** Managed service identity (system assigned and/or user assigned identities) */
503
594
  export declare interface ManagedServiceIdentity {
504
595
  /**
505
- * The principal ID of resource identity.
596
+ * The service principal ID of the system assigned identity. This property will only be provided for a system assigned identity.
506
597
  * NOTE: This property will not be serialized. It can only be populated by the server.
507
598
  */
508
599
  readonly principalId?: string;
509
600
  /**
510
- * The tenant ID of resource.
601
+ * The tenant ID of the system assigned identity. This property will only be provided for a system assigned identity.
511
602
  * NOTE: This property will not be serialized. It can only be populated by the server.
512
603
  */
513
604
  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}'. */
605
+ /** Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed). */
606
+ type: ManagedServiceIdentityType;
607
+ /** The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. The dictionary values can be empty objects ({}) in requests. */
517
608
  userAssignedIdentities?: {
518
- [propertyName: string]: Components1Jq1T4ISchemasManagedserviceidentityPropertiesUserassignedidentitiesAdditionalproperties;
609
+ [propertyName: string]: UserAssignedIdentity;
519
610
  };
520
611
  }
521
612
 
613
+ /**
614
+ * Defines values for ManagedServiceIdentityType. \
615
+ * {@link KnownManagedServiceIdentityType} can be used interchangeably with ManagedServiceIdentityType,
616
+ * this enum contains the known values that the service supports.
617
+ * ### Known values supported by the service
618
+ * **None** \
619
+ * **SystemAssigned** \
620
+ * **UserAssigned** \
621
+ * **SystemAssigned, UserAssigned**
622
+ */
623
+ export declare type ManagedServiceIdentityType = string;
624
+
522
625
  /** Interface representing a Maps. */
523
626
  export declare interface Maps {
524
627
  /**
@@ -534,21 +637,21 @@ export declare interface Maps {
534
637
  }
535
638
 
536
639
  /** An Azure resource which represents access to a suite of Maps REST APIs. */
537
- export declare type MapsAccount = TrackedResource & {
640
+ export declare interface MapsAccount extends TrackedResource {
538
641
  /** The SKU of this account. */
539
642
  sku: Sku;
540
643
  /** Get or Set Kind property. */
541
644
  kind?: Kind;
542
645
  /**
543
- * The system meta data relating to this resource.
646
+ * Metadata pertaining to creation and last modification of the resource.
544
647
  * NOTE: This property will not be serialized. It can only be populated by the server.
545
648
  */
546
649
  readonly systemData?: SystemData;
547
- /** Sets the identity property for maps account. */
650
+ /** Managed service identity (system assigned and/or user assigned identities) */
548
651
  identity?: ManagedServiceIdentity;
549
652
  /** The map account properties. */
550
653
  properties?: MapsAccountProperties;
551
- };
654
+ }
552
655
 
553
656
  /** The set of keys which can be used to access the Maps REST APIs. Two keys are provided for key rotation without interruption. */
554
657
  export declare interface MapsAccountKeys {
@@ -581,17 +684,19 @@ export declare interface MapsAccountProperties {
581
684
  * NOTE: This property will not be serialized. It can only be populated by the server.
582
685
  */
583
686
  readonly uniqueId?: string;
584
- /** Allows toggle functionality on Azure Policy to disable Azure Maps local authentication support. This will disable Shared Keys authentication from any usage. */
687
+ /** Allows toggle functionality on Azure Policy to disable Azure Maps local authentication support. This will disable Shared Keys and Shared Access Signature Token authentication from any usage. */
585
688
  disableLocalAuth?: boolean;
586
689
  /**
587
- * The provisioning state of the Map account resource.
690
+ * The provisioning state of the Map account resource, Account updates can only be performed on terminal states. Terminal states: `Succeeded` and `Failed`
588
691
  * NOTE: This property will not be serialized. It can only be populated by the server.
589
692
  */
590
693
  readonly provisioningState?: string;
591
- /** Sets the resources to be used for Managed Identities based operations for the Map account resource. */
694
+ /** The array of associated resources to the Map account. Linked resource in the array cannot individually update, you must update all linked resources in the array together. These resources may be used on operations on the Azure Maps REST API. Access is controlled by the Map Account Managed Identity(s) permissions to those resource(s). */
592
695
  linkedResources?: LinkedResource[];
593
696
  /** 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
697
  cors?: CorsRules;
698
+ /** (Optional) Discouraged to include in resource definition. Only needed where it is possible to disable platform (AKA infrastructure) encryption. Azure SQL TDE is an example of this. Values are enabled and disabled. */
699
+ encryption?: Encryption;
595
700
  }
596
701
 
597
702
  /** A list of Maps Accounts. */
@@ -627,24 +732,26 @@ export declare interface MapsAccountUpdateParameters {
627
732
  kind?: Kind;
628
733
  /** The SKU of this account. */
629
734
  sku?: Sku;
630
- /** Sets the identity property for maps account. */
735
+ /** Managed service identity (system assigned and/or user assigned identities) */
631
736
  identity?: ManagedServiceIdentity;
632
737
  /**
633
738
  * A unique identifier for the maps account
634
739
  * NOTE: This property will not be serialized. It can only be populated by the server.
635
740
  */
636
741
  readonly uniqueId?: string;
637
- /** Allows toggle functionality on Azure Policy to disable Azure Maps local authentication support. This will disable Shared Keys authentication from any usage. */
742
+ /** Allows toggle functionality on Azure Policy to disable Azure Maps local authentication support. This will disable Shared Keys and Shared Access Signature Token authentication from any usage. */
638
743
  disableLocalAuth?: boolean;
639
744
  /**
640
- * The provisioning state of the Map account resource.
745
+ * The provisioning state of the Map account resource, Account updates can only be performed on terminal states. Terminal states: `Succeeded` and `Failed`
641
746
  * NOTE: This property will not be serialized. It can only be populated by the server.
642
747
  */
643
748
  readonly provisioningState?: string;
644
- /** Sets the resources to be used for Managed Identities based operations for the Map account resource. */
749
+ /** The array of associated resources to the Map account. Linked resource in the array cannot individually update, you must update all linked resources in the array together. These resources may be used on operations on the Azure Maps REST API. Access is controlled by the Map Account Managed Identity(s) permissions to those resource(s). */
645
750
  linkedResources?: LinkedResource[];
646
751
  /** 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
752
  cors?: CorsRules;
753
+ /** (Optional) Discouraged to include in resource definition. Only needed where it is possible to disable platform (AKA infrastructure) encryption. Azure SQL TDE is an example of this. Values are enabled and disabled. */
754
+ encryption?: Encryption;
648
755
  }
649
756
 
650
757
  /** Whether the operation refers to the primary or secondary key. */
@@ -719,6 +826,12 @@ export declare interface MetricSpecification {
719
826
  sourceMdmAccount?: string;
720
827
  /** Internal metric name. */
721
828
  internalMetricName?: string;
829
+ /** Lock aggregation type for metrics. */
830
+ lockAggregationType?: string;
831
+ /** Metrics namespace. */
832
+ sourceMdmNamespace?: string;
833
+ /** Allowed aggregation types for metrics. */
834
+ supportedAggregationTypes?: string;
722
835
  }
723
836
 
724
837
  /**
@@ -777,9 +890,6 @@ export declare interface Resource {
777
890
  readonly type?: string;
778
891
  }
779
892
 
780
- /** Defines values for ResourceIdentityType. */
781
- export declare type ResourceIdentityType = "SystemAssigned" | "UserAssigned" | "SystemAssigned, UserAssigned" | "None";
782
-
783
893
  /** One property of operation, include metric specifications. */
784
894
  export declare interface ServiceSpecification {
785
895
  /** Metric specifications of operation. */
@@ -792,7 +902,8 @@ export declare interface ServiceSpecification {
792
902
  * this enum contains the known values that the service supports.
793
903
  * ### Known values supported by the service
794
904
  * **primaryKey** \
795
- * **secondaryKey**
905
+ * **secondaryKey** \
906
+ * **managedIdentity**
796
907
  */
797
908
  export declare type SigningKey = string;
798
909
 
@@ -824,13 +935,27 @@ export declare interface SystemData {
824
935
  }
825
936
 
826
937
  /** The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location' */
827
- export declare type TrackedResource = Resource & {
938
+ export declare interface TrackedResource extends Resource {
828
939
  /** Resource tags. */
829
940
  tags?: {
830
941
  [propertyName: string]: string;
831
942
  };
832
943
  /** The geo-location where the resource lives */
833
944
  location: string;
834
- };
945
+ }
946
+
947
+ /** User assigned identity properties */
948
+ export declare interface UserAssignedIdentity {
949
+ /**
950
+ * The principal ID of the assigned identity.
951
+ * NOTE: This property will not be serialized. It can only be populated by the server.
952
+ */
953
+ readonly principalId?: string;
954
+ /**
955
+ * The client ID of the assigned identity.
956
+ * NOTE: This property will not be serialized. It can only be populated by the server.
957
+ */
958
+ readonly clientId?: string;
959
+ }
835
960
 
836
961
  export { }
@@ -5,7 +5,7 @@
5
5
  "toolPackages": [
6
6
  {
7
7
  "packageName": "@microsoft/api-extractor",
8
- "packageVersion": "7.18.11"
8
+ "packageVersion": "7.36.4"
9
9
  }
10
10
  ]
11
11
  }
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=sampleTest.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"sampleTest.d.ts","sourceRoot":"","sources":["../../test/sampleTest.ts"],"names":[],"mappings":""}
@@ -1,40 +0,0 @@
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
- import { record } from "@azure-tools/test-recorder";
10
- const recorderEnvSetup = {
11
- replaceableVariables: {
12
- AZURE_CLIENT_ID: "azure_client_id",
13
- AZURE_CLIENT_SECRET: "azure_client_secret",
14
- AZURE_TENANT_ID: "88888888-8888-8888-8888-888888888888",
15
- SUBSCRIPTION_ID: "azure_subscription_id"
16
- },
17
- customizationsOnRecordings: [
18
- (recording) => recording.replace(/"access_token":"[^"]*"/g, `"access_token":"access_token"`)
19
- ],
20
- queryParametersToSkip: []
21
- };
22
- describe("My test", () => {
23
- let recorder;
24
- beforeEach(function () {
25
- return __awaiter(this, void 0, void 0, function* () {
26
- recorder = record(this, recorderEnvSetup);
27
- });
28
- });
29
- afterEach(function () {
30
- return __awaiter(this, void 0, void 0, function* () {
31
- yield recorder.stop();
32
- });
33
- });
34
- it("sample test", function () {
35
- return __awaiter(this, void 0, void 0, function* () {
36
- console.log("Hi, I'm a test!");
37
- });
38
- });
39
- });
40
- //# sourceMappingURL=sampleTest.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"sampleTest.js","sourceRoot":"","sources":["../../test/sampleTest.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,OAAO,EAEL,MAAM,EAGP,MAAM,4BAA4B,CAAC;AAGpC,MAAM,gBAAgB,GAA6B;IACjD,oBAAoB,EAAE;QACpB,eAAe,EAAE,iBAAiB;QAClC,mBAAmB,EAAE,qBAAqB;QAC1C,eAAe,EAAE,sCAAsC;QACvD,eAAe,EAAE,uBAAuB;KACzC;IACD,0BAA0B,EAAE;QAC1B,CAAC,SAAc,EAAO,EAAE,CACtB,SAAS,CAAC,OAAO,CACf,yBAAyB,EACzB,+BAA+B,CAChC;KACJ;IACD,qBAAqB,EAAE,EAAE;CAC1B,CAAC;AAEF,QAAQ,CAAC,SAAS,EAAE,GAAG,EAAE;IACvB,IAAI,QAAkB,CAAC;IAEvB,UAAU,CAAC;;YACT,QAAQ,GAAG,MAAM,CAAC,IAAI,EAAE,gBAAgB,CAAC,CAAC;QAC5C,CAAC;KAAA,CAAC,CAAC;IAEH,SAAS,CAAC;;YACR,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAC;QACxB,CAAC;KAAA,CAAC,CAAC;IAEH,EAAE,CAAC,aAAa,EAAE;;YAChB,OAAO,CAAC,GAAG,CAAC,iBAAiB,CAAC,CAAC;QACjC,CAAC;KAAA,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}