@@ -11,6 +11,53 @@ import * as msRest from "@azure/ms-rest-js";
1111
1212export { BaseResource , CloudError } ;
1313
14+ /**
15+ * An interface representing ManagedServiceIdentityUserAssignedIdentitiesValue.
16+ */
17+ export interface ManagedServiceIdentityUserAssignedIdentitiesValue {
18+ /**
19+ * The principal id of user assigned identity.
20+ * **NOTE: This property will not be serialized. It can only be populated by the server.**
21+ */
22+ readonly principalId ?: string ;
23+ /**
24+ * The client id of user assigned identity.
25+ * **NOTE: This property will not be serialized. It can only be populated by the server.**
26+ */
27+ readonly clientId ?: string ;
28+ }
29+
30+ /**
31+ * Identity for the resource.
32+ */
33+ export interface ManagedServiceIdentity {
34+ /**
35+ * The principal id of the system assigned identity. This property will only be provided for a
36+ * system assigned identity.
37+ * **NOTE: This property will not be serialized. It can only be populated by the server.**
38+ */
39+ readonly principalId ?: string ;
40+ /**
41+ * The tenant id of the system assigned identity. This property will only be provided for a
42+ * system assigned identity.
43+ * **NOTE: This property will not be serialized. It can only be populated by the server.**
44+ */
45+ readonly tenantId ?: string ;
46+ /**
47+ * The type of identity used for the resource. The type 'SystemAssigned,UserAssigned' includes
48+ * both an implicitly created identity and a set of user assigned identities. The type 'None'
49+ * will remove any identities from the service. Possible values include: 'SystemAssigned',
50+ * 'UserAssigned', 'SystemAssigned,UserAssigned', 'None'
51+ */
52+ type ?: ResourceIdentityType ;
53+ /**
54+ * The list of user identities associated with resource. The user identity dictionary key
55+ * references will be ARM resource ids in the form:
56+ * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'.
57+ */
58+ userAssignedIdentities ?: { [ propertyName : string ] : ManagedServiceIdentityUserAssignedIdentitiesValue } ;
59+ }
60+
1461/**
1562 * IpAddressOrRange object
1663 */
@@ -146,15 +193,15 @@ export interface PrivateLinkServiceConnectionStateProperty {
146193 * The private link service connection status.
147194 */
148195 status ?: string ;
196+ /**
197+ * The private link service connection description.
198+ */
199+ description ?: string ;
149200 /**
150201 * Any action that is required beyond basic workflow (approve/ reject/ disconnect)
151202 * **NOTE: This property will not be serialized. It can only be populated by the server.**
152203 */
153204 readonly actionsRequired ?: string ;
154- /**
155- * The private link service connection description.
156- */
157- description ?: string ;
158205}
159206
160207/**
@@ -216,7 +263,8 @@ export interface PrivateEndpointConnection extends ProxyResource {
216263 */
217264export interface ApiProperties {
218265 /**
219- * Describes the ServerVersion of an a MongoDB account. Possible values include: '3.2', '3.6'
266+ * Describes the ServerVersion of an a MongoDB account. Possible values include: '3.2', '3.6',
267+ * '4.0'
220268 */
221269 serverVersion ?: ServerVersion ;
222270}
@@ -299,6 +347,7 @@ export interface DatabaseAccountGetResults extends ARMResourceProperties {
299347 * 'GlobalDocumentDB'.
300348 */
301349 kind ?: DatabaseAccountKind ;
350+ identity ?: ManagedServiceIdentity ;
302351 provisioningState ?: string ;
303352 /**
304353 * The connection endpoint for the Cosmos DB database account.
@@ -409,6 +458,15 @@ export interface DatabaseAccountGetResults extends ARMResourceProperties {
409458 * The CORS policy for the Cosmos DB database account.
410459 */
411460 cors ?: CorsPolicy [ ] ;
461+ /**
462+ * Indicates what services are allowed to bypass firewall checks. Possible values include:
463+ * 'None', 'AzureServices'
464+ */
465+ networkAclBypass ?: NetworkAclBypass ;
466+ /**
467+ * An array that contains the Resource Ids for Network Acl Bypass for the Cosmos DB account.
468+ */
469+ networkAclBypassResourceIds ?: string [ ] ;
412470}
413471
414472/**
@@ -530,7 +588,7 @@ export interface CompositePath {
530588 */
531589 path ?: string ;
532590 /**
533- * Sort order for composite paths. Possible values include: 'Ascending ', 'Descending '
591+ * Sort order for composite paths. Possible values include: 'ascending ', 'descending '
534592 */
535593 order ?: CompositePathSortOrder ;
536594}
@@ -559,8 +617,8 @@ export interface IndexingPolicy {
559617 */
560618 automatic ?: boolean ;
561619 /**
562- * Indicates the indexing mode. Possible values include: 'Consistent ', 'Lazy ', 'None '. Default
563- * value: 'Consistent '.
620+ * Indicates the indexing mode. Possible values include: 'consistent ', 'lazy ', 'none '. Default
621+ * value: 'consistent '.
564622 */
565623 indexingMode ?: IndexingMode ;
566624 /**
@@ -590,14 +648,20 @@ export interface ContainerPartitionKey {
590648 */
591649 paths ?: string [ ] ;
592650 /**
593- * Indicates the kind of algorithm used for partitioning. Possible values include: 'Hash',
594- * 'Range'. Default value: 'Hash'.
651+ * Indicates the kind of algorithm used for partitioning. For MultiHash, multiple partition keys
652+ * (upto three maximum) are supported for container create. Possible values include: 'Hash',
653+ * 'Range', 'MultiHash'. Default value: 'Hash'.
595654 */
596655 kind ?: PartitionKind ;
597656 /**
598657 * Indicates the version of the partition key definition
599658 */
600659 version ?: number ;
660+ /**
661+ * Indicates if the container is using a system generated partition key
662+ * **NOTE: This property will not be serialized. It can only be populated by the server.**
663+ */
664+ readonly systemKey ?: boolean ;
601665}
602666
603667/**
@@ -1440,6 +1504,7 @@ export interface DatabaseAccountCreateUpdateParameters extends ARMResourceProper
14401504 * 'GlobalDocumentDB'.
14411505 */
14421506 kind ?: DatabaseAccountKind ;
1507+ identity ?: ManagedServiceIdentity ;
14431508 /**
14441509 * The consistency policy for the Cosmos DB account.
14451510 */
@@ -1517,6 +1582,15 @@ export interface DatabaseAccountCreateUpdateParameters extends ARMResourceProper
15171582 * The CORS policy for the Cosmos DB database account.
15181583 */
15191584 cors ?: CorsPolicy [ ] ;
1585+ /**
1586+ * Indicates what services are allowed to bypass firewall checks. Possible values include:
1587+ * 'None', 'AzureServices'
1588+ */
1589+ networkAclBypass ?: NetworkAclBypass ;
1590+ /**
1591+ * An array that contains the Resource Ids for Network Acl Bypass for the Cosmos DB account.
1592+ */
1593+ networkAclBypassResourceIds ?: string [ ] ;
15201594}
15211595
15221596/**
@@ -1528,6 +1602,7 @@ export interface DatabaseAccountUpdateParameters {
15281602 * The location of the resource group to which the resource belongs.
15291603 */
15301604 location ?: string ;
1605+ identity ?: ManagedServiceIdentity ;
15311606 /**
15321607 * The consistency policy for the Cosmos DB account.
15331608 */
@@ -1605,6 +1680,15 @@ export interface DatabaseAccountUpdateParameters {
16051680 * The CORS policy for the Cosmos DB database account.
16061681 */
16071682 cors ?: CorsPolicy [ ] ;
1683+ /**
1684+ * Indicates what services are allowed to bypass firewall checks. Possible values include:
1685+ * 'None', 'AzureServices'
1686+ */
1687+ networkAclBypass ?: NetworkAclBypass ;
1688+ /**
1689+ * An array that contains the Resource Ids for Network Acl Bypass for the Cosmos DB account.
1690+ */
1691+ networkAclBypassResourceIds ?: string [ ] ;
16081692}
16091693
16101694/**
@@ -2819,6 +2903,14 @@ export interface PrivateEndpointConnectionListResult extends Array<PrivateEndpoi
28192903 */
28202904export type DatabaseAccountKind = 'GlobalDocumentDB' | 'MongoDB' | 'Parse' ;
28212905
2906+ /**
2907+ * Defines values for ResourceIdentityType.
2908+ * Possible values include: 'SystemAssigned', 'UserAssigned', 'SystemAssigned,UserAssigned', 'None'
2909+ * @readonly
2910+ * @enum {string}
2911+ */
2912+ export type ResourceIdentityType = 'SystemAssigned' | 'UserAssigned' | 'SystemAssigned,UserAssigned' | 'None' ;
2913+
28222914/**
28232915 * Defines values for DatabaseAccountOfferType.
28242916 * Possible values include: 'Standard'
@@ -2853,19 +2945,27 @@ export type PublicNetworkAccess = 'Enabled' | 'Disabled';
28532945
28542946/**
28552947 * Defines values for ServerVersion.
2856- * Possible values include: '3.2', '3.6'
2948+ * Possible values include: '3.2', '3.6', '4.0'
2949+ * @readonly
2950+ * @enum {string}
2951+ */
2952+ export type ServerVersion = '3.2' | '3.6' | '4.0' ;
2953+
2954+ /**
2955+ * Defines values for NetworkAclBypass.
2956+ * Possible values include: 'None', 'AzureServices'
28572957 * @readonly
28582958 * @enum {string}
28592959 */
2860- export type ServerVersion = '3.2 ' | '3.6 ' ;
2960+ export type NetworkAclBypass = 'None ' | 'AzureServices ' ;
28612961
28622962/**
28632963 * Defines values for IndexingMode.
2864- * Possible values include: 'Consistent ', 'Lazy ', 'None '
2964+ * Possible values include: 'consistent ', 'lazy ', 'none '
28652965 * @readonly
28662966 * @enum {string}
28672967 */
2868- export type IndexingMode = 'Consistent ' | 'Lazy ' | 'None ' ;
2968+ export type IndexingMode = 'consistent ' | 'lazy ' | 'none ' ;
28692969
28702970/**
28712971 * Defines values for DataType.
@@ -2885,11 +2985,11 @@ export type IndexKind = 'Hash' | 'Range' | 'Spatial';
28852985
28862986/**
28872987 * Defines values for CompositePathSortOrder.
2888- * Possible values include: 'Ascending ', 'Descending '
2988+ * Possible values include: 'ascending ', 'descending '
28892989 * @readonly
28902990 * @enum {string}
28912991 */
2892- export type CompositePathSortOrder = 'Ascending ' | 'Descending ' ;
2992+ export type CompositePathSortOrder = 'ascending ' | 'descending ' ;
28932993
28942994/**
28952995 * Defines values for SpatialType.
@@ -2901,11 +3001,11 @@ export type SpatialType = 'Point' | 'LineString' | 'Polygon' | 'MultiPolygon';
29013001
29023002/**
29033003 * Defines values for PartitionKind.
2904- * Possible values include: 'Hash', 'Range'
3004+ * Possible values include: 'Hash', 'Range', 'MultiHash'
29053005 * @readonly
29063006 * @enum {string}
29073007 */
2908- export type PartitionKind = 'Hash' | 'Range' ;
3008+ export type PartitionKind = 'Hash' | 'Range' | 'MultiHash' ;
29093009
29103010/**
29113011 * Defines values for ConflictResolutionMode.
0 commit comments