diff --git a/sdk/cosmosdb/arm-cosmosdb/LICENSE.txt b/sdk/cosmosdb/arm-cosmosdb/LICENSE.txt index b73b4a1293c3..ea8fb1516028 100644 --- a/sdk/cosmosdb/arm-cosmosdb/LICENSE.txt +++ b/sdk/cosmosdb/arm-cosmosdb/LICENSE.txt @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2019 Microsoft +Copyright (c) 2020 Microsoft Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/sdk/cosmosdb/arm-cosmosdb/src/models/cassandraResourcesMappers.ts b/sdk/cosmosdb/arm-cosmosdb/src/models/cassandraResourcesMappers.ts index 5a995513558c..17aaabf91154 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/models/cassandraResourcesMappers.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/models/cassandraResourcesMappers.ts @@ -9,6 +9,7 @@ export { ARMProxyResource, ARMResourceProperties, + AutoUpgradePolicyResource, AzureEntityResource, BaseResource, Capability, @@ -31,6 +32,7 @@ export { ConflictResolutionPolicy, ConsistencyPolicy, ContainerPartitionKey, + CreateUpdateOptions, DatabaseAccountCreateUpdateParameters, DatabaseAccountGetResults, ExcludedPath, @@ -62,6 +64,7 @@ export { PrivateEndpointProperty, PrivateLinkResource, PrivateLinkServiceConnectionStateProperty, + ProvisionedThroughputSettingsResource, ProxyResource, Resource, SpatialSpec, @@ -89,6 +92,7 @@ export { TableGetPropertiesResource, TableGetResults, TableResource, + ThroughputPolicyResource, ThroughputSettingsGetPropertiesResource, ThroughputSettingsGetResults, ThroughputSettingsResource, diff --git a/sdk/cosmosdb/arm-cosmosdb/src/models/databaseAccountsMappers.ts b/sdk/cosmosdb/arm-cosmosdb/src/models/databaseAccountsMappers.ts index 6b5fbd643bea..741317536ebb 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/models/databaseAccountsMappers.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/models/databaseAccountsMappers.ts @@ -9,6 +9,7 @@ export { ARMProxyResource, ARMResourceProperties, + AutoUpgradePolicyResource, AzureEntityResource, BaseResource, Capability, @@ -29,6 +30,7 @@ export { ConflictResolutionPolicy, ConsistencyPolicy, ContainerPartitionKey, + CreateUpdateOptions, DatabaseAccountConnectionString, DatabaseAccountCreateUpdateParameters, DatabaseAccountGetResults, @@ -79,6 +81,7 @@ export { PrivateEndpointProperty, PrivateLinkResource, PrivateLinkServiceConnectionStateProperty, + ProvisionedThroughputSettingsResource, ProxyResource, RegionForOnlineOffline, Resource, @@ -107,6 +110,7 @@ export { TableGetPropertiesResource, TableGetResults, TableResource, + ThroughputPolicyResource, ThroughputSettingsGetPropertiesResource, ThroughputSettingsGetResults, ThroughputSettingsResource, diff --git a/sdk/cosmosdb/arm-cosmosdb/src/models/gremlinResourcesMappers.ts b/sdk/cosmosdb/arm-cosmosdb/src/models/gremlinResourcesMappers.ts index 6a262c3627b7..28f9252066d1 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/models/gremlinResourcesMappers.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/models/gremlinResourcesMappers.ts @@ -9,6 +9,7 @@ export { ARMProxyResource, ARMResourceProperties, + AutoUpgradePolicyResource, AzureEntityResource, BaseResource, Capability, @@ -29,6 +30,7 @@ export { ConflictResolutionPolicy, ConsistencyPolicy, ContainerPartitionKey, + CreateUpdateOptions, DatabaseAccountCreateUpdateParameters, DatabaseAccountGetResults, ExcludedPath, @@ -62,6 +64,7 @@ export { PrivateEndpointProperty, PrivateLinkResource, PrivateLinkServiceConnectionStateProperty, + ProvisionedThroughputSettingsResource, ProxyResource, Resource, SpatialSpec, @@ -89,6 +92,7 @@ export { TableGetPropertiesResource, TableGetResults, TableResource, + ThroughputPolicyResource, ThroughputSettingsGetPropertiesResource, ThroughputSettingsGetResults, ThroughputSettingsResource, diff --git a/sdk/cosmosdb/arm-cosmosdb/src/models/index.ts b/sdk/cosmosdb/arm-cosmosdb/src/models/index.ts index 43005bca4dbe..42f9cd5f53d0 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/models/index.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/models/index.ts @@ -229,6 +229,10 @@ export interface DatabaseAccountGetResults extends ARMResourceProperties { * keys */ disableKeyBasedMetadataWriteAccess?: boolean; + /** + * The URI of the key vault + */ + keyVaultKeyUri?: string; } /** @@ -1059,14 +1063,65 @@ export interface ExtendedResourceProperties { readonly _etag?: string; } +/** + * Cosmos DB resource throughput policy + */ +export interface ThroughputPolicyResource { + /** + * Determines whether the ThroughputPolicy is active or not + */ + isEnabled?: boolean; + /** + * Represents the percentage by which throughput can increase every time throughput policy kicks + * in. + */ + incrementPercent?: number; +} + +/** + * Cosmos DB resource auto-upgrade policy + */ +export interface AutoUpgradePolicyResource { + /** + * Represents throughput policy which service must adhere to for auto-upgrade + */ + throughputPolicy?: ThroughputPolicyResource; +} + +/** + * Cosmos DB provisioned throughput settings object + */ +export interface ProvisionedThroughputSettingsResource { + /** + * Represents maximum throughput container can scale up to. + */ + maxThroughput: number; + /** + * Cosmos DB resource auto-upgrade policy + */ + autoUpgradePolicy?: AutoUpgradePolicyResource; + /** + * Represents target maximum throughput container can scale up to once offer is no longer in + * pending state. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly targetMaxThroughput?: number; +} + /** * An interface representing ThroughputSettingsGetPropertiesResource. */ export interface ThroughputSettingsGetPropertiesResource { /** - * Value of the Cosmos DB resource throughput + * Value of the Cosmos DB resource throughput. Either throughput is required or + * provisionedThroughputSettings is required, but not both. */ - throughput: number; + throughput?: number; + /** + * Cosmos DB resource for provisioned throughput settings. Either throughput is required or + * provisionedThroughputSettings is required, but not both. + */ + provisionedThroughputSettings?: ProvisionedThroughputSettingsResource; /** * The minimum throughput of the resource * **NOTE: This property will not be serialized. It can only be populated by the server.** @@ -1162,6 +1217,10 @@ export interface DatabaseAccountCreateUpdateParameters extends ARMResourceProper * keys */ disableKeyBasedMetadataWriteAccess?: boolean; + /** + * The URI of the key vault + */ + keyVaultKeyUri?: string; } /** @@ -1223,6 +1282,10 @@ export interface DatabaseAccountUpdateParameters { * keys */ disableKeyBasedMetadataWriteAccess?: boolean; + /** + * The URI of the key vault + */ + keyVaultKeyUri?: string; } /** @@ -1295,13 +1358,20 @@ export interface DatabaseAccountRegenerateKeyParameters { } /** - * Cosmos DB resource throughput object + * Cosmos DB resource throughput object. Either throughput is required or + * provisionedThroughputSettings is required, but not both. */ export interface ThroughputSettingsResource { /** - * Value of the Cosmos DB resource throughput + * Value of the Cosmos DB resource throughput. Either throughput is required or + * provisionedThroughputSettings is required, but not both. */ - throughput: number; + throughput?: number; + /** + * Cosmos DB resource for provisioned throughput settings. Either throughput is required or + * provisionedThroughputSettings is required, but not both. + */ + provisionedThroughputSettings?: ProvisionedThroughputSettingsResource; /** * The minimum throughput of the resource * **NOTE: This property will not be serialized. It can only be populated by the server.** @@ -1334,6 +1404,22 @@ export interface SqlDatabaseResource { id: string; } +/** + * CreateUpdateOptions are a list of key-value pairs that describe the resource. Supported keys are + * "If-Match", "If-None-Match", "Session-Token" and "Throughput" + */ +export interface CreateUpdateOptions { + /** + * Request Units per second. For example, "throughput": "10000". + */ + throughput?: string; + /** + * Describes unknown properties. The value of an unknown property MUST be of type "string". Due + * to valid TS constraints we have modeled this as a union of `string | any`. + */ + [property: string]: string | any; +} + /** * Parameters to create and update Cosmos DB SQL database. */ @@ -1346,7 +1432,7 @@ export interface SqlDatabaseCreateUpdateParameters extends ARMResourceProperties * A key-value pair of options to be applied for the request. This corresponds to the headers * sent with the request. */ - options: { [propertyName: string]: string }; + options: CreateUpdateOptions; } /** @@ -1394,7 +1480,7 @@ export interface SqlContainerCreateUpdateParameters extends ARMResourcePropertie * A key-value pair of options to be applied for the request. This corresponds to the headers * sent with the request. */ - options: { [propertyName: string]: string }; + options: CreateUpdateOptions; } /** @@ -1423,7 +1509,7 @@ export interface SqlStoredProcedureCreateUpdateParameters extends ARMResourcePro * A key-value pair of options to be applied for the request. This corresponds to the headers * sent with the request. */ - options: { [propertyName: string]: string }; + options: CreateUpdateOptions; } /** @@ -1452,7 +1538,7 @@ export interface SqlUserDefinedFunctionCreateUpdateParameters extends ARMResourc * A key-value pair of options to be applied for the request. This corresponds to the headers * sent with the request. */ - options: { [propertyName: string]: string }; + options: CreateUpdateOptions; } /** @@ -1490,7 +1576,7 @@ export interface SqlTriggerCreateUpdateParameters extends ARMResourceProperties * A key-value pair of options to be applied for the request. This corresponds to the headers * sent with the request. */ - options: { [propertyName: string]: string }; + options: CreateUpdateOptions; } /** @@ -1515,7 +1601,7 @@ export interface MongoDBDatabaseCreateUpdateParameters extends ARMResourceProper * A key-value pair of options to be applied for the request. This corresponds to the headers * sent with the request. */ - options: { [propertyName: string]: string }; + options: CreateUpdateOptions; } /** @@ -1548,7 +1634,7 @@ export interface MongoDBCollectionCreateUpdateParameters extends ARMResourceProp * A key-value pair of options to be applied for the request. This corresponds to the headers * sent with the request. */ - options: { [propertyName: string]: string }; + options: CreateUpdateOptions; } /** @@ -1573,7 +1659,7 @@ export interface TableCreateUpdateParameters extends ARMResourceProperties { * A key-value pair of options to be applied for the request. This corresponds to the headers * sent with the request. */ - options: { [propertyName: string]: string }; + options: CreateUpdateOptions; } /** @@ -1598,7 +1684,7 @@ export interface CassandraKeyspaceCreateUpdateParameters extends ARMResourceProp * A key-value pair of options to be applied for the request. This corresponds to the headers * sent with the request. */ - options: { [propertyName: string]: string }; + options: CreateUpdateOptions; } /** @@ -1631,7 +1717,7 @@ export interface CassandraTableCreateUpdateParameters extends ARMResourcePropert * A key-value pair of options to be applied for the request. This corresponds to the headers * sent with the request. */ - options: { [propertyName: string]: string }; + options: CreateUpdateOptions; } /** @@ -1656,7 +1742,7 @@ export interface GremlinDatabaseCreateUpdateParameters extends ARMResourceProper * A key-value pair of options to be applied for the request. This corresponds to the headers * sent with the request. */ - options: { [propertyName: string]: string }; + options: CreateUpdateOptions; } /** @@ -1704,7 +1790,7 @@ export interface GremlinGraphCreateUpdateParameters extends ARMResourcePropertie * A key-value pair of options to be applied for the request. This corresponds to the headers * sent with the request. */ - options: { [propertyName: string]: string }; + options: CreateUpdateOptions; } /** diff --git a/sdk/cosmosdb/arm-cosmosdb/src/models/mappers.ts b/sdk/cosmosdb/arm-cosmosdb/src/models/mappers.ts index 9ab9739e4fe8..70131943a542 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/models/mappers.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/models/mappers.ts @@ -386,6 +386,12 @@ export const DatabaseAccountGetResults: msRest.CompositeMapper = { type: { name: "Boolean" } + }, + keyVaultKeyUri: { + serializedName: "properties.keyVaultKeyUri", + type: { + name: "String" + } } } } @@ -1815,6 +1821,76 @@ export const ExtendedResourceProperties: msRest.CompositeMapper = { } }; +export const ThroughputPolicyResource: msRest.CompositeMapper = { + serializedName: "ThroughputPolicyResource", + type: { + name: "Composite", + className: "ThroughputPolicyResource", + modelProperties: { + isEnabled: { + serializedName: "isEnabled", + type: { + name: "Boolean" + } + }, + incrementPercent: { + serializedName: "incrementPercent", + type: { + name: "Number" + } + } + } + } +}; + +export const AutoUpgradePolicyResource: msRest.CompositeMapper = { + serializedName: "AutoUpgradePolicyResource", + type: { + name: "Composite", + className: "AutoUpgradePolicyResource", + modelProperties: { + throughputPolicy: { + serializedName: "throughputPolicy", + type: { + name: "Composite", + className: "ThroughputPolicyResource" + } + } + } + } +}; + +export const ProvisionedThroughputSettingsResource: msRest.CompositeMapper = { + serializedName: "ProvisionedThroughputSettingsResource", + type: { + name: "Composite", + className: "ProvisionedThroughputSettingsResource", + modelProperties: { + maxThroughput: { + required: true, + serializedName: "maxThroughput", + type: { + name: "Number" + } + }, + autoUpgradePolicy: { + serializedName: "autoUpgradePolicy", + type: { + name: "Composite", + className: "AutoUpgradePolicyResource" + } + }, + targetMaxThroughput: { + readOnly: true, + serializedName: "targetMaxThroughput", + type: { + name: "Number" + } + } + } + } +}; + export const ThroughputSettingsGetPropertiesResource: msRest.CompositeMapper = { serializedName: "ThroughputSettingsGetProperties_resource", type: { @@ -1822,12 +1898,18 @@ export const ThroughputSettingsGetPropertiesResource: msRest.CompositeMapper = { className: "ThroughputSettingsGetPropertiesResource", modelProperties: { throughput: { - required: true, serializedName: "throughput", type: { name: "Number" } }, + provisionedThroughputSettings: { + serializedName: "provisionedThroughputSettings", + type: { + name: "Composite", + className: "ProvisionedThroughputSettingsResource" + } + }, minimumThroughput: { readOnly: true, serializedName: "minimumThroughput", @@ -1993,6 +2075,12 @@ export const DatabaseAccountCreateUpdateParameters: msRest.CompositeMapper = { type: { name: "Boolean" } + }, + keyVaultKeyUri: { + serializedName: "properties.keyVaultKeyUri", + type: { + name: "String" + } } } } @@ -2105,6 +2193,12 @@ export const DatabaseAccountUpdateParameters: msRest.CompositeMapper = { type: { name: "Boolean" } + }, + keyVaultKeyUri: { + serializedName: "properties.keyVaultKeyUri", + type: { + name: "String" + } } } } @@ -2229,12 +2323,18 @@ export const ThroughputSettingsResource: msRest.CompositeMapper = { className: "ThroughputSettingsResource", modelProperties: { throughput: { - required: true, serializedName: "throughput", type: { name: "Number" } }, + provisionedThroughputSettings: { + serializedName: "provisionedThroughputSettings", + type: { + name: "Composite", + className: "ProvisionedThroughputSettingsResource" + } + }, minimumThroughput: { readOnly: true, serializedName: "minimumThroughput", @@ -2289,6 +2389,27 @@ export const SqlDatabaseResource: msRest.CompositeMapper = { } }; +export const CreateUpdateOptions: msRest.CompositeMapper = { + serializedName: "CreateUpdateOptions", + type: { + name: "Composite", + className: "CreateUpdateOptions", + modelProperties: { + throughput: { + serializedName: "throughput", + type: { + name: "String" + } + } + }, + additionalProperties: { + type: { + name: "String" + } + } + } +}; + export const SqlDatabaseCreateUpdateParameters: msRest.CompositeMapper = { serializedName: "SqlDatabaseCreateUpdateParameters", type: { @@ -2308,8 +2429,9 @@ export const SqlDatabaseCreateUpdateParameters: msRest.CompositeMapper = { required: true, serializedName: "properties.options", type: { - name: "Dictionary", - value: { + name: "Composite", + className: "CreateUpdateOptions", + additionalProperties: { type: { name: "String" } @@ -2390,8 +2512,9 @@ export const SqlContainerCreateUpdateParameters: msRest.CompositeMapper = { required: true, serializedName: "properties.options", type: { - name: "Dictionary", - value: { + name: "Composite", + className: "CreateUpdateOptions", + additionalProperties: { type: { name: "String" } @@ -2444,8 +2567,9 @@ export const SqlStoredProcedureCreateUpdateParameters: msRest.CompositeMapper = required: true, serializedName: "properties.options", type: { - name: "Dictionary", - value: { + name: "Composite", + className: "CreateUpdateOptions", + additionalProperties: { type: { name: "String" } @@ -2498,8 +2622,9 @@ export const SqlUserDefinedFunctionCreateUpdateParameters: msRest.CompositeMappe required: true, serializedName: "properties.options", type: { - name: "Dictionary", - value: { + name: "Composite", + className: "CreateUpdateOptions", + additionalProperties: { type: { name: "String" } @@ -2564,8 +2689,9 @@ export const SqlTriggerCreateUpdateParameters: msRest.CompositeMapper = { required: true, serializedName: "properties.options", type: { - name: "Dictionary", - value: { + name: "Composite", + className: "CreateUpdateOptions", + additionalProperties: { type: { name: "String" } @@ -2612,8 +2738,9 @@ export const MongoDBDatabaseCreateUpdateParameters: msRest.CompositeMapper = { required: true, serializedName: "properties.options", type: { - name: "Dictionary", - value: { + name: "Composite", + className: "CreateUpdateOptions", + additionalProperties: { type: { name: "String" } @@ -2683,8 +2810,9 @@ export const MongoDBCollectionCreateUpdateParameters: msRest.CompositeMapper = { required: true, serializedName: "properties.options", type: { - name: "Dictionary", - value: { + name: "Composite", + className: "CreateUpdateOptions", + additionalProperties: { type: { name: "String" } @@ -2731,8 +2859,9 @@ export const TableCreateUpdateParameters: msRest.CompositeMapper = { required: true, serializedName: "properties.options", type: { - name: "Dictionary", - value: { + name: "Composite", + className: "CreateUpdateOptions", + additionalProperties: { type: { name: "String" } @@ -2779,8 +2908,9 @@ export const CassandraKeyspaceCreateUpdateParameters: msRest.CompositeMapper = { required: true, serializedName: "properties.options", type: { - name: "Dictionary", - value: { + name: "Composite", + className: "CreateUpdateOptions", + additionalProperties: { type: { name: "String" } @@ -2840,8 +2970,9 @@ export const CassandraTableCreateUpdateParameters: msRest.CompositeMapper = { required: true, serializedName: "properties.options", type: { - name: "Dictionary", - value: { + name: "Composite", + className: "CreateUpdateOptions", + additionalProperties: { type: { name: "String" } @@ -2888,8 +3019,9 @@ export const GremlinDatabaseCreateUpdateParameters: msRest.CompositeMapper = { required: true, serializedName: "properties.options", type: { - name: "Dictionary", - value: { + name: "Composite", + className: "CreateUpdateOptions", + additionalProperties: { type: { name: "String" } @@ -2970,8 +3102,9 @@ export const GremlinGraphCreateUpdateParameters: msRest.CompositeMapper = { required: true, serializedName: "properties.options", type: { - name: "Dictionary", - value: { + name: "Composite", + className: "CreateUpdateOptions", + additionalProperties: { type: { name: "String" } diff --git a/sdk/cosmosdb/arm-cosmosdb/src/models/mongoDBResourcesMappers.ts b/sdk/cosmosdb/arm-cosmosdb/src/models/mongoDBResourcesMappers.ts index 34cb40c806ed..224631c635f3 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/models/mongoDBResourcesMappers.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/models/mongoDBResourcesMappers.ts @@ -9,6 +9,7 @@ export { ARMProxyResource, ARMResourceProperties, + AutoUpgradePolicyResource, AzureEntityResource, BaseResource, Capability, @@ -29,6 +30,7 @@ export { ConflictResolutionPolicy, ConsistencyPolicy, ContainerPartitionKey, + CreateUpdateOptions, DatabaseAccountCreateUpdateParameters, DatabaseAccountGetResults, ExcludedPath, @@ -62,6 +64,7 @@ export { PrivateEndpointProperty, PrivateLinkResource, PrivateLinkServiceConnectionStateProperty, + ProvisionedThroughputSettingsResource, ProxyResource, Resource, SpatialSpec, @@ -89,6 +92,7 @@ export { TableGetPropertiesResource, TableGetResults, TableResource, + ThroughputPolicyResource, ThroughputSettingsGetPropertiesResource, ThroughputSettingsGetResults, ThroughputSettingsResource, diff --git a/sdk/cosmosdb/arm-cosmosdb/src/models/parameters.ts b/sdk/cosmosdb/arm-cosmosdb/src/models/parameters.ts index 4314666f9ebf..8f1ff18a2e38 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/models/parameters.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/models/parameters.ts @@ -41,7 +41,7 @@ export const apiVersion0: msRest.OperationQueryParameter = { required: true, isConstant: true, serializedName: "api-version", - defaultValue: '2019-08-01', + defaultValue: '2019-12-12', type: { name: "String" } diff --git a/sdk/cosmosdb/arm-cosmosdb/src/models/privateEndpointConnectionsMappers.ts b/sdk/cosmosdb/arm-cosmosdb/src/models/privateEndpointConnectionsMappers.ts index 0470cbae2c82..93249c55d213 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/models/privateEndpointConnectionsMappers.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/models/privateEndpointConnectionsMappers.ts @@ -9,6 +9,7 @@ export { ARMProxyResource, ARMResourceProperties, + AutoUpgradePolicyResource, AzureEntityResource, BaseResource, Capability, @@ -29,6 +30,7 @@ export { ConflictResolutionPolicy, ConsistencyPolicy, ContainerPartitionKey, + CreateUpdateOptions, DatabaseAccountCreateUpdateParameters, DatabaseAccountGetResults, ErrorResponse, @@ -62,6 +64,7 @@ export { PrivateEndpointProperty, PrivateLinkResource, PrivateLinkServiceConnectionStateProperty, + ProvisionedThroughputSettingsResource, ProxyResource, Resource, SpatialSpec, @@ -89,6 +92,7 @@ export { TableGetPropertiesResource, TableGetResults, TableResource, + ThroughputPolicyResource, ThroughputSettingsGetPropertiesResource, ThroughputSettingsGetResults, ThroughputSettingsResource, diff --git a/sdk/cosmosdb/arm-cosmosdb/src/models/privateLinkResourcesMappers.ts b/sdk/cosmosdb/arm-cosmosdb/src/models/privateLinkResourcesMappers.ts index d882be342d42..f7b18e0f05cb 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/models/privateLinkResourcesMappers.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/models/privateLinkResourcesMappers.ts @@ -9,6 +9,7 @@ export { ARMProxyResource, ARMResourceProperties, + AutoUpgradePolicyResource, AzureEntityResource, BaseResource, Capability, @@ -29,6 +30,7 @@ export { ConflictResolutionPolicy, ConsistencyPolicy, ContainerPartitionKey, + CreateUpdateOptions, DatabaseAccountCreateUpdateParameters, DatabaseAccountGetResults, ExcludedPath, @@ -61,6 +63,7 @@ export { PrivateLinkResource, PrivateLinkResourceListResult, PrivateLinkServiceConnectionStateProperty, + ProvisionedThroughputSettingsResource, ProxyResource, Resource, SpatialSpec, @@ -88,6 +91,7 @@ export { TableGetPropertiesResource, TableGetResults, TableResource, + ThroughputPolicyResource, ThroughputSettingsGetPropertiesResource, ThroughputSettingsGetResults, ThroughputSettingsResource, diff --git a/sdk/cosmosdb/arm-cosmosdb/src/models/sqlResourcesMappers.ts b/sdk/cosmosdb/arm-cosmosdb/src/models/sqlResourcesMappers.ts index aef8c6637bbd..df529b6131d6 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/models/sqlResourcesMappers.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/models/sqlResourcesMappers.ts @@ -9,6 +9,7 @@ export { ARMProxyResource, ARMResourceProperties, + AutoUpgradePolicyResource, AzureEntityResource, BaseResource, Capability, @@ -29,6 +30,7 @@ export { ConflictResolutionPolicy, ConsistencyPolicy, ContainerPartitionKey, + CreateUpdateOptions, DatabaseAccountCreateUpdateParameters, DatabaseAccountGetResults, ExcludedPath, @@ -60,6 +62,7 @@ export { PrivateEndpointProperty, PrivateLinkResource, PrivateLinkServiceConnectionStateProperty, + ProvisionedThroughputSettingsResource, ProxyResource, Resource, SpatialSpec, @@ -92,6 +95,7 @@ export { TableGetPropertiesResource, TableGetResults, TableResource, + ThroughputPolicyResource, ThroughputSettingsGetPropertiesResource, ThroughputSettingsGetResults, ThroughputSettingsResource, diff --git a/sdk/cosmosdb/arm-cosmosdb/src/models/tableResourcesMappers.ts b/sdk/cosmosdb/arm-cosmosdb/src/models/tableResourcesMappers.ts index 83a5dcedc334..e41d2fbf8cb2 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/models/tableResourcesMappers.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/models/tableResourcesMappers.ts @@ -9,6 +9,7 @@ export { ARMProxyResource, ARMResourceProperties, + AutoUpgradePolicyResource, AzureEntityResource, BaseResource, Capability, @@ -29,6 +30,7 @@ export { ConflictResolutionPolicy, ConsistencyPolicy, ContainerPartitionKey, + CreateUpdateOptions, DatabaseAccountCreateUpdateParameters, DatabaseAccountGetResults, ExcludedPath, @@ -60,6 +62,7 @@ export { PrivateEndpointProperty, PrivateLinkResource, PrivateLinkServiceConnectionStateProperty, + ProvisionedThroughputSettingsResource, ProxyResource, Resource, SpatialSpec, @@ -88,6 +91,7 @@ export { TableGetResults, TableListResult, TableResource, + ThroughputPolicyResource, ThroughputSettingsGetPropertiesResource, ThroughputSettingsGetResults, ThroughputSettingsResource, diff --git a/sdk/cosmosdb/arm-cosmosdb/src/operations/sqlResources.ts b/sdk/cosmosdb/arm-cosmosdb/src/operations/sqlResources.ts index 60e2ad07b7be..95ef701f8ed4 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/operations/sqlResources.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/operations/sqlResources.ts @@ -1134,7 +1134,7 @@ const getSqlContainerThroughputOperationSpec: msRest.OperationSpec = { const listSqlStoredProceduresOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/containers/{containerName}/storedProcedures/", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/containers/{containerName}/storedProcedures", urlParameters: [ Parameters.subscriptionId0, Parameters.resourceGroupName, @@ -1189,7 +1189,7 @@ const getSqlStoredProcedureOperationSpec: msRest.OperationSpec = { const listSqlUserDefinedFunctionsOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/containers/{containerName}/userDefinedFunctions/", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/containers/{containerName}/userDefinedFunctions", urlParameters: [ Parameters.subscriptionId0, Parameters.resourceGroupName, @@ -1244,7 +1244,7 @@ const getSqlUserDefinedFunctionOperationSpec: msRest.OperationSpec = { const listSqlTriggersOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/containers/{containerName}/triggers/", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/containers/{containerName}/triggers", urlParameters: [ Parameters.subscriptionId0, Parameters.resourceGroupName,