Skip to content

Commit 241aeb7

Browse files
authored
arm-cosmosdb-release (Azure#13870)
* arm-cosmosdb-release * arm-cosmosdb-release * arm-cosmosdb-release
1 parent 4a23046 commit 241aeb7

35 files changed

+443
-177
lines changed

sdk/cosmosdb/arm-cosmosdb/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "@azure/arm-cosmosdb",
33
"author": "Microsoft Corporation",
44
"description": "CosmosDBManagementClient Library with typescript type definitions for node.js and browser.",
5-
"version": "11.0.0",
5+
"version": "12.0.0",
66
"dependencies": {
77
"@azure/ms-rest-azure-js": "^2.0.1",
88
"@azure/ms-rest-js": "^2.0.4",

sdk/cosmosdb/arm-cosmosdb/src/cosmosDBManagementClientContext.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,11 @@ import * as msRest from "@azure/ms-rest-js";
1212
import * as msRestAzure from "@azure/ms-rest-azure-js";
1313

1414
const packageName = "@azure/arm-cosmosdb";
15-
const packageVersion = "11.0.0";
15+
const packageVersion = "12.0.0";
1616

1717
export class CosmosDBManagementClientContext extends msRestAzure.AzureServiceClient {
1818
credentials: msRest.ServiceClientCredentials;
19+
apiVersion?: string;
1920
subscriptionId: string;
2021

2122
/**
@@ -42,6 +43,7 @@ export class CosmosDBManagementClientContext extends msRestAzure.AzureServiceCli
4243

4344
super(credentials, options);
4445

46+
this.apiVersion = '2021-01-15';
4547
this.acceptLanguage = 'en-US';
4648
this.longRunningOperationRetryTimeout = 30;
4749
this.baseUri = options.baseUri || this.baseUri || "https://management.azure.com";

sdk/cosmosdb/arm-cosmosdb/src/models/cassandraResourcesMappers.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,8 @@ export {
6363
IndexingPolicy,
6464
IpAddressOrRange,
6565
Location,
66+
ManagedServiceIdentity,
67+
ManagedServiceIdentityUserAssignedIdentitiesValue,
6668
MongoDBCollectionCreateUpdateParameters,
6769
MongoDBCollectionGetPropertiesOptions,
6870
MongoDBCollectionGetPropertiesResource,

sdk/cosmosdb/arm-cosmosdb/src/models/databaseAccountsMappers.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,8 @@ export {
6868
IndexingPolicy,
6969
IpAddressOrRange,
7070
Location,
71+
ManagedServiceIdentity,
72+
ManagedServiceIdentityUserAssignedIdentitiesValue,
7173
Metric,
7274
MetricAvailability,
7375
MetricDefinition,

sdk/cosmosdb/arm-cosmosdb/src/models/gremlinResourcesMappers.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,8 @@ export {
6363
IndexingPolicy,
6464
IpAddressOrRange,
6565
Location,
66+
ManagedServiceIdentity,
67+
ManagedServiceIdentityUserAssignedIdentitiesValue,
6668
MongoDBCollectionCreateUpdateParameters,
6769
MongoDBCollectionGetPropertiesOptions,
6870
MongoDBCollectionGetPropertiesResource,

sdk/cosmosdb/arm-cosmosdb/src/models/index.ts

Lines changed: 118 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,53 @@ import * as msRest from "@azure/ms-rest-js";
1111

1212
export { 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
*/
217264
export 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
*/
28202904
export 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

Comments
 (0)