@azure/arm-maps 3.1.0-beta.2 → 3.1.1-alpha.20230825.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +52 -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 +13 -11
- 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
package/types/arm-maps.d.ts
CHANGED
|
@@ -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
|
|
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,7 @@ 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);
|
|
186
187
|
/** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
|
|
187
188
|
private addCustomApiVersionPolicy;
|
|
188
189
|
accounts: Accounts;
|
|
@@ -200,19 +201,6 @@ export declare interface AzureMapsManagementClientOptionalParams extends coreCli
|
|
|
200
201
|
endpoint?: string;
|
|
201
202
|
}
|
|
202
203
|
|
|
203
|
-
export declare interface Components1Jq1T4ISchemasManagedserviceidentityPropertiesUserassignedidentitiesAdditionalproperties {
|
|
204
|
-
/**
|
|
205
|
-
* The principal id of user assigned identity.
|
|
206
|
-
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
207
|
-
*/
|
|
208
|
-
readonly principalId?: string;
|
|
209
|
-
/**
|
|
210
|
-
* The client id of user assigned identity.
|
|
211
|
-
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
212
|
-
*/
|
|
213
|
-
readonly clientId?: string;
|
|
214
|
-
}
|
|
215
|
-
|
|
216
204
|
/** Specifies a CORS rule for the Map Account. */
|
|
217
205
|
export declare interface CorsRule {
|
|
218
206
|
/** Required if CorsRule element is present. A list of origin domains that will be allowed via CORS, or "*" to allow all domains */
|
|
@@ -374,6 +362,24 @@ export declare interface CreatorUpdateParameters {
|
|
|
374
362
|
storageUnits?: number;
|
|
375
363
|
}
|
|
376
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
|
+
|
|
377
383
|
/** Dimension of map account, for example API Category, Api Name, Result Type, and Response Code. */
|
|
378
384
|
export declare interface Dimension {
|
|
379
385
|
/** Display name of dimension. */
|
|
@@ -390,6 +396,14 @@ export declare interface Dimension {
|
|
|
390
396
|
toBeExportedToShoebox?: boolean;
|
|
391
397
|
}
|
|
392
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
|
+
|
|
393
407
|
/** The resource management error additional info. */
|
|
394
408
|
export declare interface ErrorAdditionalInfo {
|
|
395
409
|
/**
|
|
@@ -440,14 +454,35 @@ export declare interface ErrorResponse {
|
|
|
440
454
|
}
|
|
441
455
|
|
|
442
456
|
/**
|
|
443
|
-
* Given
|
|
444
|
-
* continuation token that can be used to begin paging from
|
|
457
|
+
* Given the last `.value` produced by the `byPage` iterator,
|
|
458
|
+
* returns a continuation token that can be used to begin paging from
|
|
445
459
|
* that point later.
|
|
446
|
-
* @param page
|
|
447
|
-
* @returns The continuation token that can be passed into byPage().
|
|
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.
|
|
448
462
|
*/
|
|
449
463
|
export declare function getContinuationToken(page: unknown): string | undefined;
|
|
450
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
|
+
|
|
451
486
|
/**
|
|
452
487
|
* Defines values for KeyType. \
|
|
453
488
|
* {@link KnownKeyType} can be used interchangeably with KeyType,
|
|
@@ -481,6 +516,24 @@ export declare enum KnownCreatedByType {
|
|
|
481
516
|
Key = "Key"
|
|
482
517
|
}
|
|
483
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
|
+
|
|
484
537
|
/** Known values of {@link KeyType} that the service accepts. */
|
|
485
538
|
export declare enum KnownKeyType {
|
|
486
539
|
/** Primary */
|
|
@@ -497,6 +550,18 @@ export declare enum KnownKind {
|
|
|
497
550
|
Gen2 = "Gen2"
|
|
498
551
|
}
|
|
499
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
|
+
|
|
500
565
|
/** Known values of {@link Name} that the service accepts. */
|
|
501
566
|
export declare enum KnownName {
|
|
502
567
|
/** S0 */
|
|
@@ -512,7 +577,9 @@ export declare enum KnownSigningKey {
|
|
|
512
577
|
/** PrimaryKey */
|
|
513
578
|
PrimaryKey = "primaryKey",
|
|
514
579
|
/** SecondaryKey */
|
|
515
|
-
SecondaryKey = "secondaryKey"
|
|
580
|
+
SecondaryKey = "secondaryKey",
|
|
581
|
+
/** ManagedIdentity */
|
|
582
|
+
ManagedIdentity = "managedIdentity"
|
|
516
583
|
}
|
|
517
584
|
|
|
518
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. */
|
|
@@ -523,26 +590,38 @@ export declare interface LinkedResource {
|
|
|
523
590
|
id: string;
|
|
524
591
|
}
|
|
525
592
|
|
|
526
|
-
/**
|
|
593
|
+
/** Managed service identity (system assigned and/or user assigned identities) */
|
|
527
594
|
export declare interface ManagedServiceIdentity {
|
|
528
595
|
/**
|
|
529
|
-
* The principal ID of
|
|
596
|
+
* The service principal ID of the system assigned identity. This property will only be provided for a system assigned identity.
|
|
530
597
|
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
531
598
|
*/
|
|
532
599
|
readonly principalId?: string;
|
|
533
600
|
/**
|
|
534
|
-
* The tenant ID of
|
|
601
|
+
* The tenant ID of the system assigned identity. This property will only be provided for a system assigned identity.
|
|
535
602
|
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
536
603
|
*/
|
|
537
604
|
readonly tenantId?: string;
|
|
538
|
-
/**
|
|
539
|
-
type
|
|
540
|
-
/** The
|
|
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. */
|
|
541
608
|
userAssignedIdentities?: {
|
|
542
|
-
[propertyName: string]:
|
|
609
|
+
[propertyName: string]: UserAssignedIdentity;
|
|
543
610
|
};
|
|
544
611
|
}
|
|
545
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
|
+
|
|
546
625
|
/** Interface representing a Maps. */
|
|
547
626
|
export declare interface Maps {
|
|
548
627
|
/**
|
|
@@ -564,11 +643,11 @@ export declare interface MapsAccount extends TrackedResource {
|
|
|
564
643
|
/** Get or Set Kind property. */
|
|
565
644
|
kind?: Kind;
|
|
566
645
|
/**
|
|
567
|
-
*
|
|
646
|
+
* Metadata pertaining to creation and last modification of the resource.
|
|
568
647
|
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
569
648
|
*/
|
|
570
649
|
readonly systemData?: SystemData;
|
|
571
|
-
/**
|
|
650
|
+
/** Managed service identity (system assigned and/or user assigned identities) */
|
|
572
651
|
identity?: ManagedServiceIdentity;
|
|
573
652
|
/** The map account properties. */
|
|
574
653
|
properties?: MapsAccountProperties;
|
|
@@ -605,17 +684,19 @@ export declare interface MapsAccountProperties {
|
|
|
605
684
|
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
606
685
|
*/
|
|
607
686
|
readonly uniqueId?: string;
|
|
608
|
-
/** 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. */
|
|
609
688
|
disableLocalAuth?: boolean;
|
|
610
689
|
/**
|
|
611
|
-
* 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`
|
|
612
691
|
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
613
692
|
*/
|
|
614
693
|
readonly provisioningState?: string;
|
|
615
|
-
/**
|
|
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). */
|
|
616
695
|
linkedResources?: LinkedResource[];
|
|
617
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. */
|
|
618
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;
|
|
619
700
|
}
|
|
620
701
|
|
|
621
702
|
/** A list of Maps Accounts. */
|
|
@@ -651,24 +732,26 @@ export declare interface MapsAccountUpdateParameters {
|
|
|
651
732
|
kind?: Kind;
|
|
652
733
|
/** The SKU of this account. */
|
|
653
734
|
sku?: Sku;
|
|
654
|
-
/**
|
|
735
|
+
/** Managed service identity (system assigned and/or user assigned identities) */
|
|
655
736
|
identity?: ManagedServiceIdentity;
|
|
656
737
|
/**
|
|
657
738
|
* A unique identifier for the maps account
|
|
658
739
|
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
659
740
|
*/
|
|
660
741
|
readonly uniqueId?: string;
|
|
661
|
-
/** 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. */
|
|
662
743
|
disableLocalAuth?: boolean;
|
|
663
744
|
/**
|
|
664
|
-
* 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`
|
|
665
746
|
* NOTE: This property will not be serialized. It can only be populated by the server.
|
|
666
747
|
*/
|
|
667
748
|
readonly provisioningState?: string;
|
|
668
|
-
/**
|
|
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). */
|
|
669
750
|
linkedResources?: LinkedResource[];
|
|
670
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. */
|
|
671
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;
|
|
672
755
|
}
|
|
673
756
|
|
|
674
757
|
/** Whether the operation refers to the primary or secondary key. */
|
|
@@ -743,6 +826,12 @@ export declare interface MetricSpecification {
|
|
|
743
826
|
sourceMdmAccount?: string;
|
|
744
827
|
/** Internal metric name. */
|
|
745
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;
|
|
746
835
|
}
|
|
747
836
|
|
|
748
837
|
/**
|
|
@@ -801,9 +890,6 @@ export declare interface Resource {
|
|
|
801
890
|
readonly type?: string;
|
|
802
891
|
}
|
|
803
892
|
|
|
804
|
-
/** Defines values for ResourceIdentityType. */
|
|
805
|
-
export declare type ResourceIdentityType = "SystemAssigned" | "UserAssigned" | "SystemAssigned, UserAssigned" | "None";
|
|
806
|
-
|
|
807
893
|
/** One property of operation, include metric specifications. */
|
|
808
894
|
export declare interface ServiceSpecification {
|
|
809
895
|
/** Metric specifications of operation. */
|
|
@@ -816,7 +902,8 @@ export declare interface ServiceSpecification {
|
|
|
816
902
|
* this enum contains the known values that the service supports.
|
|
817
903
|
* ### Known values supported by the service
|
|
818
904
|
* **primaryKey** \
|
|
819
|
-
* **secondaryKey**
|
|
905
|
+
* **secondaryKey** \
|
|
906
|
+
* **managedIdentity**
|
|
820
907
|
*/
|
|
821
908
|
export declare type SigningKey = string;
|
|
822
909
|
|
|
@@ -857,4 +944,18 @@ export declare interface TrackedResource extends Resource {
|
|
|
857
944
|
location: string;
|
|
858
945
|
}
|
|
859
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
|
+
}
|
|
960
|
+
|
|
860
961
|
export { }
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"sampleTest.d.ts","sourceRoot":"","sources":["../../test/sampleTest.ts"],"names":[],"mappings":""}
|
|
@@ -1,38 +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 { Recorder } from "@azure-tools/test-recorder";
|
|
10
|
-
const replaceableVariables = {
|
|
11
|
-
AZURE_CLIENT_ID: "azure_client_id",
|
|
12
|
-
AZURE_CLIENT_SECRET: "azure_client_secret",
|
|
13
|
-
AZURE_TENANT_ID: "88888888-8888-8888-8888-888888888888",
|
|
14
|
-
SUBSCRIPTION_ID: "azure_subscription_id"
|
|
15
|
-
};
|
|
16
|
-
const recorderOptions = {
|
|
17
|
-
envSetupForPlayback: replaceableVariables
|
|
18
|
-
};
|
|
19
|
-
describe("My test", () => {
|
|
20
|
-
let recorder;
|
|
21
|
-
beforeEach(function () {
|
|
22
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
23
|
-
recorder = new Recorder(this.currentTest);
|
|
24
|
-
yield recorder.start(recorderOptions);
|
|
25
|
-
});
|
|
26
|
-
});
|
|
27
|
-
afterEach(function () {
|
|
28
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
29
|
-
yield recorder.stop();
|
|
30
|
-
});
|
|
31
|
-
});
|
|
32
|
-
it("sample test", function () {
|
|
33
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
34
|
-
console.log("Hi, I'm a test!");
|
|
35
|
-
});
|
|
36
|
-
});
|
|
37
|
-
});
|
|
38
|
-
//# sourceMappingURL=sampleTest.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"sampleTest.js","sourceRoot":"","sources":["../../test/sampleTest.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,OAAO,EACL,QAAQ,EAGT,MAAM,4BAA4B,CAAC;AAIpC,MAAM,oBAAoB,GAA2B;IACnD,eAAe,EAAE,iBAAiB;IAClC,mBAAmB,EAAE,qBAAqB;IAC1C,eAAe,EAAE,sCAAsC;IACvD,eAAe,EAAE,uBAAuB;CACzC,CAAC;AAEF,MAAM,eAAe,GAAyB;IAC5C,mBAAmB,EAAE,oBAAoB;CAC1C,CAAC;AAEF,QAAQ,CAAC,SAAS,EAAE,GAAG,EAAE;IACvB,IAAI,QAAkB,CAAC;IAEvB,UAAU,CAAC;;YACT,QAAQ,GAAG,IAAI,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;YAC1C,MAAM,QAAQ,CAAC,KAAK,CAAC,eAAe,CAAC,CAAC;QACxC,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"}
|