@azure/arm-maps 3.1.0-beta.2 → 3.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (81) hide show
  1. package/CHANGELOG.md +42 -28
  2. package/LICENSE +1 -1
  3. package/README.md +1 -1
  4. package/dist/index.js +219 -64
  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 +2 -1
  41. package/dist-esm/src/azureMapsManagementClient.d.ts.map +1 -1
  42. package/dist-esm/src/azureMapsManagementClient.js +9 -11
  43. package/dist-esm/src/azureMapsManagementClient.js.map +1 -1
  44. package/dist-esm/src/models/index.d.ts +142 -50
  45. package/dist-esm/src/models/index.d.ts.map +1 -1
  46. package/dist-esm/src/models/index.js +32 -0
  47. package/dist-esm/src/models/index.js.map +1 -1
  48. package/dist-esm/src/models/mappers.d.ts +4 -1
  49. package/dist-esm/src/models/mappers.d.ts.map +1 -1
  50. package/dist-esm/src/models/mappers.js +109 -17
  51. package/dist-esm/src/models/mappers.js.map +1 -1
  52. package/dist-esm/src/models/parameters.js +1 -1
  53. package/dist-esm/src/models/parameters.js.map +1 -1
  54. package/dist-esm/src/operations/accounts.js +24 -12
  55. package/dist-esm/src/operations/accounts.js.map +1 -1
  56. package/dist-esm/src/operations/creators.js +12 -6
  57. package/dist-esm/src/operations/creators.js.map +1 -1
  58. package/dist-esm/src/operations/maps.js +24 -12
  59. package/dist-esm/src/operations/maps.js.map +1 -1
  60. package/dist-esm/src/pagingHelper.d.ts +4 -4
  61. package/dist-esm/src/pagingHelper.js +4 -4
  62. package/dist-esm/test/maps_operations_test.spec.d.ts +4 -0
  63. package/dist-esm/test/maps_operations_test.spec.d.ts.map +1 -0
  64. package/dist-esm/test/maps_operations_test.spec.js +140 -0
  65. package/dist-esm/test/maps_operations_test.spec.js.map +1 -0
  66. package/package.json +11 -10
  67. package/review/arm-maps.api.md +65 -12
  68. package/src/azureMapsManagementClient.ts +19 -5
  69. package/src/models/index.ts +127 -32
  70. package/src/models/mappers.ts +112 -19
  71. package/src/models/parameters.ts +1 -1
  72. package/src/operations/accounts.ts +0 -2
  73. package/src/operations/creators.ts +0 -1
  74. package/src/operations/maps.ts +0 -2
  75. package/src/pagingHelper.ts +4 -4
  76. package/types/arm-maps.d.ts +143 -42
  77. package/types/tsdoc-metadata.json +1 -1
  78. package/dist-esm/test/sampleTest.d.ts +0 -2
  79. package/dist-esm/test/sampleTest.d.ts.map +0 -1
  80. package/dist-esm/test/sampleTest.js +0 -38
  81. package/dist-esm/test/sampleTest.js.map +0 -1
@@ -35,34 +35,33 @@ export interface SystemData {
35
35
  lastModifiedAt?: Date;
36
36
  }
37
37
 
38
- /** Identity for the resource. */
38
+ /** Managed service identity (system assigned and/or user assigned identities) */
39
39
  export interface ManagedServiceIdentity {
40
40
  /**
41
- * The principal ID of resource identity.
41
+ * The service principal ID of the system assigned identity. This property will only be provided for a system assigned identity.
42
42
  * NOTE: This property will not be serialized. It can only be populated by the server.
43
43
  */
44
44
  readonly principalId?: string;
45
45
  /**
46
- * The tenant ID of resource.
46
+ * The tenant ID of the system assigned identity. This property will only be provided for a system assigned identity.
47
47
  * NOTE: This property will not be serialized. It can only be populated by the server.
48
48
  */
49
49
  readonly tenantId?: string;
50
- /** The identity type. */
51
- type?: ResourceIdentityType;
52
- /** 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}'. */
53
- userAssignedIdentities?: {
54
- [propertyName: string]: Components1Jq1T4ISchemasManagedserviceidentityPropertiesUserassignedidentitiesAdditionalproperties;
55
- };
50
+ /** Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed). */
51
+ type: ManagedServiceIdentityType;
52
+ /** 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. */
53
+ userAssignedIdentities?: { [propertyName: string]: UserAssignedIdentity };
56
54
  }
57
55
 
58
- export interface Components1Jq1T4ISchemasManagedserviceidentityPropertiesUserassignedidentitiesAdditionalproperties {
56
+ /** User assigned identity properties */
57
+ export interface UserAssignedIdentity {
59
58
  /**
60
- * The principal id of user assigned identity.
59
+ * The principal ID of the assigned identity.
61
60
  * NOTE: This property will not be serialized. It can only be populated by the server.
62
61
  */
63
62
  readonly principalId?: string;
64
63
  /**
65
- * The client id of user assigned identity.
64
+ * The client ID of the assigned identity.
66
65
  * NOTE: This property will not be serialized. It can only be populated by the server.
67
66
  */
68
67
  readonly clientId?: string;
@@ -75,17 +74,19 @@ export interface MapsAccountProperties {
75
74
  * NOTE: This property will not be serialized. It can only be populated by the server.
76
75
  */
77
76
  readonly uniqueId?: string;
78
- /** Allows toggle functionality on Azure Policy to disable Azure Maps local authentication support. This will disable Shared Keys authentication from any usage. */
77
+ /** 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. */
79
78
  disableLocalAuth?: boolean;
80
79
  /**
81
- * The provisioning state of the Map account resource.
80
+ * The provisioning state of the Map account resource, Account updates can only be performed on terminal states. Terminal states: `Succeeded` and `Failed`
82
81
  * NOTE: This property will not be serialized. It can only be populated by the server.
83
82
  */
84
83
  readonly provisioningState?: string;
85
- /** Sets the resources to be used for Managed Identities based operations for the Map account resource. */
84
+ /** 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). */
86
85
  linkedResources?: LinkedResource[];
87
86
  /** 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. */
88
87
  cors?: CorsRules;
88
+ /** (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. */
89
+ encryption?: Encryption;
89
90
  }
90
91
 
91
92
  /** 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. */
@@ -108,6 +109,32 @@ export interface CorsRule {
108
109
  allowedOrigins: string[];
109
110
  }
110
111
 
112
+ /** (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. */
113
+ export interface Encryption {
114
+ /** Values are enabled and disabled. */
115
+ infrastructureEncryption?: InfrastructureEncryption;
116
+ /** All Customer-managed key encryption properties for the resource. */
117
+ customerManagedKeyEncryption?: CustomerManagedKeyEncryption;
118
+ }
119
+
120
+ /** All Customer-managed key encryption properties for the resource. */
121
+ export interface CustomerManagedKeyEncryption {
122
+ /** All identity configuration for Customer-managed key settings defining which identity should be used to auth to Key Vault. */
123
+ keyEncryptionKeyIdentity?: CustomerManagedKeyEncryptionKeyIdentity;
124
+ /** 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. */
125
+ keyEncryptionKeyUrl?: string;
126
+ }
127
+
128
+ /** All identity configuration for Customer-managed key settings defining which identity should be used to auth to Key Vault. */
129
+ export interface CustomerManagedKeyEncryptionKeyIdentity {
130
+ /** Values can be systemAssignedIdentity or userAssignedIdentity */
131
+ identityType?: IdentityType;
132
+ /** 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. */
133
+ userAssignedIdentityResourceId?: string;
134
+ /** 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. */
135
+ delegatedIdentityClientId?: string;
136
+ }
137
+
111
138
  /** Common fields that are returned in the response for all Azure Resource Manager resources */
112
139
  export interface Resource {
113
140
  /**
@@ -184,24 +211,26 @@ export interface MapsAccountUpdateParameters {
184
211
  kind?: Kind;
185
212
  /** The SKU of this account. */
186
213
  sku?: Sku;
187
- /** Sets the identity property for maps account. */
214
+ /** Managed service identity (system assigned and/or user assigned identities) */
188
215
  identity?: ManagedServiceIdentity;
189
216
  /**
190
217
  * A unique identifier for the maps account
191
218
  * NOTE: This property will not be serialized. It can only be populated by the server.
192
219
  */
193
220
  readonly uniqueId?: string;
194
- /** Allows toggle functionality on Azure Policy to disable Azure Maps local authentication support. This will disable Shared Keys authentication from any usage. */
221
+ /** 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. */
195
222
  disableLocalAuth?: boolean;
196
223
  /**
197
- * The provisioning state of the Map account resource.
224
+ * The provisioning state of the Map account resource, Account updates can only be performed on terminal states. Terminal states: `Succeeded` and `Failed`
198
225
  * NOTE: This property will not be serialized. It can only be populated by the server.
199
226
  */
200
227
  readonly provisioningState?: string;
201
- /** Sets the resources to be used for Managed Identities based operations for the Map account resource. */
228
+ /** 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). */
202
229
  linkedResources?: LinkedResource[];
203
230
  /** 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. */
204
231
  cors?: CorsRules;
232
+ /** (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. */
233
+ encryption?: Encryption;
205
234
  }
206
235
 
207
236
  /** A list of Maps Accounts. */
@@ -220,7 +249,7 @@ export interface MapsAccounts {
220
249
 
221
250
  /** 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. */
222
251
  export interface AccountSasParameters {
223
- /** The Map account key to use for signing. */
252
+ /** 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. */
224
253
  signingKey: SigningKey;
225
254
  /** 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. */
226
255
  principalId: string;
@@ -228,9 +257,9 @@ export interface AccountSasParameters {
228
257
  regions?: string[];
229
258
  /** 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. */
230
259
  maxRatePerSecond: number;
231
- /** The date time offset of when the token validity begins. For example "2017-05-24T10:42:03.1567373Z". */
260
+ /** 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`. */
232
261
  start: string;
233
- /** The date time offset of when the token validity expires. For example "2017-05-24T10:42:03.1567373Z" */
262
+ /** 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`. */
234
263
  expiry: string;
235
264
  }
236
265
 
@@ -343,6 +372,12 @@ export interface MetricSpecification {
343
372
  sourceMdmAccount?: string;
344
373
  /** Internal metric name. */
345
374
  internalMetricName?: string;
375
+ /** Lock aggregation type for metrics. */
376
+ lockAggregationType?: string;
377
+ /** Metrics namespace. */
378
+ sourceMdmNamespace?: string;
379
+ /** Allowed aggregation types for metrics. */
380
+ supportedAggregationTypes?: string;
346
381
  }
347
382
 
348
383
  /** Dimension of map account, for example API Category, Api Name, Result Type, and Response Code. */
@@ -414,11 +449,11 @@ export interface MapsAccount extends TrackedResource {
414
449
  /** Get or Set Kind property. */
415
450
  kind?: Kind;
416
451
  /**
417
- * The system meta data relating to this resource.
452
+ * Metadata pertaining to creation and last modification of the resource.
418
453
  * NOTE: This property will not be serialized. It can only be populated by the server.
419
454
  */
420
455
  readonly systemData?: SystemData;
421
- /** Sets the identity property for maps account. */
456
+ /** Managed service identity (system assigned and/or user assigned identities) */
422
457
  identity?: ManagedServiceIdentity;
423
458
  /** The map account properties. */
424
459
  properties?: MapsAccountProperties;
@@ -498,12 +533,77 @@ export enum KnownCreatedByType {
498
533
  */
499
534
  export type CreatedByType = string;
500
535
 
536
+ /** Known values of {@link ManagedServiceIdentityType} that the service accepts. */
537
+ export enum KnownManagedServiceIdentityType {
538
+ /** None */
539
+ None = "None",
540
+ /** SystemAssigned */
541
+ SystemAssigned = "SystemAssigned",
542
+ /** UserAssigned */
543
+ UserAssigned = "UserAssigned",
544
+ /** SystemAssignedUserAssigned */
545
+ SystemAssignedUserAssigned = "SystemAssigned, UserAssigned"
546
+ }
547
+
548
+ /**
549
+ * Defines values for ManagedServiceIdentityType. \
550
+ * {@link KnownManagedServiceIdentityType} can be used interchangeably with ManagedServiceIdentityType,
551
+ * this enum contains the known values that the service supports.
552
+ * ### Known values supported by the service
553
+ * **None** \
554
+ * **SystemAssigned** \
555
+ * **UserAssigned** \
556
+ * **SystemAssigned, UserAssigned**
557
+ */
558
+ export type ManagedServiceIdentityType = string;
559
+
560
+ /** Known values of {@link InfrastructureEncryption} that the service accepts. */
561
+ export enum KnownInfrastructureEncryption {
562
+ /** Enabled */
563
+ Enabled = "enabled",
564
+ /** Disabled */
565
+ Disabled = "disabled"
566
+ }
567
+
568
+ /**
569
+ * Defines values for InfrastructureEncryption. \
570
+ * {@link KnownInfrastructureEncryption} can be used interchangeably with InfrastructureEncryption,
571
+ * this enum contains the known values that the service supports.
572
+ * ### Known values supported by the service
573
+ * **enabled** \
574
+ * **disabled**
575
+ */
576
+ export type InfrastructureEncryption = string;
577
+
578
+ /** Known values of {@link IdentityType} that the service accepts. */
579
+ export enum KnownIdentityType {
580
+ /** SystemAssignedIdentity */
581
+ SystemAssignedIdentity = "systemAssignedIdentity",
582
+ /** UserAssignedIdentity */
583
+ UserAssignedIdentity = "userAssignedIdentity",
584
+ /** DelegatedResourceIdentity */
585
+ DelegatedResourceIdentity = "delegatedResourceIdentity"
586
+ }
587
+
588
+ /**
589
+ * Defines values for IdentityType. \
590
+ * {@link KnownIdentityType} can be used interchangeably with IdentityType,
591
+ * this enum contains the known values that the service supports.
592
+ * ### Known values supported by the service
593
+ * **systemAssignedIdentity** \
594
+ * **userAssignedIdentity** \
595
+ * **delegatedResourceIdentity**
596
+ */
597
+ export type IdentityType = string;
598
+
501
599
  /** Known values of {@link SigningKey} that the service accepts. */
502
600
  export enum KnownSigningKey {
503
601
  /** PrimaryKey */
504
602
  PrimaryKey = "primaryKey",
505
603
  /** SecondaryKey */
506
- SecondaryKey = "secondaryKey"
604
+ SecondaryKey = "secondaryKey",
605
+ /** ManagedIdentity */
606
+ ManagedIdentity = "managedIdentity"
507
607
  }
508
608
 
509
609
  /**
@@ -512,7 +612,8 @@ export enum KnownSigningKey {
512
612
  * this enum contains the known values that the service supports.
513
613
  * ### Known values supported by the service
514
614
  * **primaryKey** \
515
- * **secondaryKey**
615
+ * **secondaryKey** \
616
+ * **managedIdentity**
516
617
  */
517
618
  export type SigningKey = string;
518
619
 
@@ -533,12 +634,6 @@ export enum KnownKeyType {
533
634
  * **secondary**
534
635
  */
535
636
  export type KeyType = string;
536
- /** Defines values for ResourceIdentityType. */
537
- export type ResourceIdentityType =
538
- | "SystemAssigned"
539
- | "UserAssigned"
540
- | "SystemAssigned, UserAssigned"
541
- | "None";
542
637
 
543
638
  /** Optional parameters. */
544
639
  export interface AccountsCreateOrUpdateOptionalParams
@@ -85,26 +85,21 @@ export const ManagedServiceIdentity: coreClient.CompositeMapper = {
85
85
  serializedName: "principalId",
86
86
  readOnly: true,
87
87
  type: {
88
- name: "String"
88
+ name: "Uuid"
89
89
  }
90
90
  },
91
91
  tenantId: {
92
92
  serializedName: "tenantId",
93
93
  readOnly: true,
94
94
  type: {
95
- name: "String"
95
+ name: "Uuid"
96
96
  }
97
97
  },
98
98
  type: {
99
99
  serializedName: "type",
100
+ required: true,
100
101
  type: {
101
- name: "Enum",
102
- allowedValues: [
103
- "SystemAssigned",
104
- "UserAssigned",
105
- "SystemAssigned, UserAssigned",
106
- "None"
107
- ]
102
+ name: "String"
108
103
  }
109
104
  },
110
105
  userAssignedIdentities: {
@@ -112,11 +107,7 @@ export const ManagedServiceIdentity: coreClient.CompositeMapper = {
112
107
  type: {
113
108
  name: "Dictionary",
114
109
  value: {
115
- type: {
116
- name: "Composite",
117
- className:
118
- "Components1Jq1T4ISchemasManagedserviceidentityPropertiesUserassignedidentitiesAdditionalproperties"
119
- }
110
+ type: { name: "Composite", className: "UserAssignedIdentity" }
120
111
  }
121
112
  }
122
113
  }
@@ -124,24 +115,23 @@ export const ManagedServiceIdentity: coreClient.CompositeMapper = {
124
115
  }
125
116
  };
126
117
 
127
- export const Components1Jq1T4ISchemasManagedserviceidentityPropertiesUserassignedidentitiesAdditionalproperties: coreClient.CompositeMapper = {
118
+ export const UserAssignedIdentity: coreClient.CompositeMapper = {
128
119
  type: {
129
120
  name: "Composite",
130
- className:
131
- "Components1Jq1T4ISchemasManagedserviceidentityPropertiesUserassignedidentitiesAdditionalproperties",
121
+ className: "UserAssignedIdentity",
132
122
  modelProperties: {
133
123
  principalId: {
134
124
  serializedName: "principalId",
135
125
  readOnly: true,
136
126
  type: {
137
- name: "String"
127
+ name: "Uuid"
138
128
  }
139
129
  },
140
130
  clientId: {
141
131
  serializedName: "clientId",
142
132
  readOnly: true,
143
133
  type: {
144
- name: "String"
134
+ name: "Uuid"
145
135
  }
146
136
  }
147
137
  }
@@ -195,6 +185,13 @@ export const MapsAccountProperties: coreClient.CompositeMapper = {
195
185
  name: "Composite",
196
186
  className: "CorsRules"
197
187
  }
188
+ },
189
+ encryption: {
190
+ serializedName: "encryption",
191
+ type: {
192
+ name: "Composite",
193
+ className: "Encryption"
194
+ }
198
195
  }
199
196
  }
200
197
  }
@@ -268,6 +265,77 @@ export const CorsRule: coreClient.CompositeMapper = {
268
265
  }
269
266
  };
270
267
 
268
+ export const Encryption: coreClient.CompositeMapper = {
269
+ type: {
270
+ name: "Composite",
271
+ className: "Encryption",
272
+ modelProperties: {
273
+ infrastructureEncryption: {
274
+ serializedName: "infrastructureEncryption",
275
+ type: {
276
+ name: "String"
277
+ }
278
+ },
279
+ customerManagedKeyEncryption: {
280
+ serializedName: "customerManagedKeyEncryption",
281
+ type: {
282
+ name: "Composite",
283
+ className: "CustomerManagedKeyEncryption"
284
+ }
285
+ }
286
+ }
287
+ }
288
+ };
289
+
290
+ export const CustomerManagedKeyEncryption: coreClient.CompositeMapper = {
291
+ type: {
292
+ name: "Composite",
293
+ className: "CustomerManagedKeyEncryption",
294
+ modelProperties: {
295
+ keyEncryptionKeyIdentity: {
296
+ serializedName: "keyEncryptionKeyIdentity",
297
+ type: {
298
+ name: "Composite",
299
+ className: "CustomerManagedKeyEncryptionKeyIdentity"
300
+ }
301
+ },
302
+ keyEncryptionKeyUrl: {
303
+ serializedName: "keyEncryptionKeyUrl",
304
+ type: {
305
+ name: "String"
306
+ }
307
+ }
308
+ }
309
+ }
310
+ };
311
+
312
+ export const CustomerManagedKeyEncryptionKeyIdentity: coreClient.CompositeMapper = {
313
+ type: {
314
+ name: "Composite",
315
+ className: "CustomerManagedKeyEncryptionKeyIdentity",
316
+ modelProperties: {
317
+ identityType: {
318
+ serializedName: "identityType",
319
+ type: {
320
+ name: "String"
321
+ }
322
+ },
323
+ userAssignedIdentityResourceId: {
324
+ serializedName: "userAssignedIdentityResourceId",
325
+ type: {
326
+ name: "String"
327
+ }
328
+ },
329
+ delegatedIdentityClientId: {
330
+ serializedName: "delegatedIdentityClientId",
331
+ type: {
332
+ name: "Uuid"
333
+ }
334
+ }
335
+ }
336
+ }
337
+ };
338
+
271
339
  export const Resource: coreClient.CompositeMapper = {
272
340
  type: {
273
341
  name: "Composite",
@@ -469,6 +537,13 @@ export const MapsAccountUpdateParameters: coreClient.CompositeMapper = {
469
537
  name: "Composite",
470
538
  className: "CorsRules"
471
539
  }
540
+ },
541
+ encryption: {
542
+ serializedName: "properties.encryption",
543
+ type: {
544
+ name: "Composite",
545
+ className: "Encryption"
546
+ }
472
547
  }
473
548
  }
474
549
  }
@@ -830,6 +905,24 @@ export const MetricSpecification: coreClient.CompositeMapper = {
830
905
  type: {
831
906
  name: "String"
832
907
  }
908
+ },
909
+ lockAggregationType: {
910
+ serializedName: "lockAggregationType",
911
+ type: {
912
+ name: "String"
913
+ }
914
+ },
915
+ sourceMdmNamespace: {
916
+ serializedName: "sourceMdmNamespace",
917
+ type: {
918
+ name: "String"
919
+ }
920
+ },
921
+ supportedAggregationTypes: {
922
+ serializedName: "supportedAggregationTypes",
923
+ type: {
924
+ name: "String"
925
+ }
833
926
  }
834
927
  }
835
928
  }
@@ -64,7 +64,7 @@ export const $host: OperationURLParameter = {
64
64
  export const apiVersion: OperationQueryParameter = {
65
65
  parameterPath: "apiVersion",
66
66
  mapper: {
67
- defaultValue: "2021-12-01-preview",
67
+ defaultValue: "2023-06-01",
68
68
  isConstant: true,
69
69
  serializedName: "api-version",
70
70
  type: {
@@ -591,7 +591,6 @@ const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = {
591
591
  bodyMapper: Mappers.ErrorResponse
592
592
  }
593
593
  },
594
- queryParameters: [Parameters.apiVersion],
595
594
  urlParameters: [
596
595
  Parameters.$host,
597
596
  Parameters.subscriptionId,
@@ -612,7 +611,6 @@ const listBySubscriptionNextOperationSpec: coreClient.OperationSpec = {
612
611
  bodyMapper: Mappers.ErrorResponse
613
612
  }
614
613
  },
615
- queryParameters: [Parameters.apiVersion],
616
614
  urlParameters: [
617
615
  Parameters.$host,
618
616
  Parameters.subscriptionId,
@@ -384,7 +384,6 @@ const listByAccountNextOperationSpec: coreClient.OperationSpec = {
384
384
  bodyMapper: Mappers.ErrorResponse
385
385
  }
386
386
  },
387
- queryParameters: [Parameters.apiVersion],
388
387
  urlParameters: [
389
388
  Parameters.$host,
390
389
  Parameters.subscriptionId,
@@ -254,7 +254,6 @@ const listOperationsNextOperationSpec: coreClient.OperationSpec = {
254
254
  bodyMapper: Mappers.ErrorResponse
255
255
  }
256
256
  },
257
- queryParameters: [Parameters.apiVersion],
258
257
  urlParameters: [Parameters.$host, Parameters.nextLink],
259
258
  headerParameters: [Parameters.accept],
260
259
  serializer
@@ -270,7 +269,6 @@ const listSubscriptionOperationsNextOperationSpec: coreClient.OperationSpec = {
270
269
  bodyMapper: Mappers.ErrorResponse
271
270
  }
272
271
  },
273
- queryParameters: [Parameters.apiVersion],
274
272
  urlParameters: [
275
273
  Parameters.$host,
276
274
  Parameters.subscriptionId,
@@ -13,11 +13,11 @@ export interface PageInfo {
13
13
  const pageMap = new WeakMap<object, PageInfo>();
14
14
 
15
15
  /**
16
- * Given a result page from a pageable operation, returns a
17
- * continuation token that can be used to begin paging from
16
+ * Given the last `.value` produced by the `byPage` iterator,
17
+ * returns a continuation token that can be used to begin paging from
18
18
  * that point later.
19
- * @param page A result object from calling .byPage() on a paged operation.
20
- * @returns The continuation token that can be passed into byPage().
19
+ * @param page An object from accessing `value` on the IteratorResult from a `byPage` iterator.
20
+ * @returns The continuation token that can be passed into byPage() during future calls.
21
21
  */
22
22
  export function getContinuationToken(page: unknown): string | undefined {
23
23
  if (typeof page !== "object" || page === null) {