diff --git a/sdk/cosmosdb/arm-cosmosdb/src/cosmosDBManagementClient.ts b/sdk/cosmosdb/arm-cosmosdb/src/cosmosDBManagementClient.ts index 22062350c374..4440e5e7d65d 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/cosmosDBManagementClient.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/cosmosDBManagementClient.ts @@ -35,7 +35,6 @@ class CosmosDBManagementClient extends CosmosDBManagementClientContext { tableResources: operations.TableResources; cassandraResources: operations.CassandraResources; gremlinResources: operations.GremlinResources; - restorableDatabaseAccounts: operations.RestorableDatabaseAccounts; notebookWorkspaces: operations.NotebookWorkspaces; privateLinkResources: operations.PrivateLinkResources; privateEndpointConnections: operations.PrivateEndpointConnections; @@ -66,7 +65,6 @@ class CosmosDBManagementClient extends CosmosDBManagementClientContext { this.tableResources = new operations.TableResources(this); this.cassandraResources = new operations.CassandraResources(this); this.gremlinResources = new operations.GremlinResources(this); - this.restorableDatabaseAccounts = new operations.RestorableDatabaseAccounts(this); this.notebookWorkspaces = new operations.NotebookWorkspaces(this); this.privateLinkResources = new operations.PrivateLinkResources(this); this.privateEndpointConnections = new operations.PrivateEndpointConnections(this); diff --git a/sdk/cosmosdb/arm-cosmosdb/src/models/cassandraResourcesMappers.ts b/sdk/cosmosdb/arm-cosmosdb/src/models/cassandraResourcesMappers.ts index e4abe6963717..82a9fd18b4e2 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/models/cassandraResourcesMappers.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/models/cassandraResourcesMappers.ts @@ -7,7 +7,6 @@ */ export { - discriminators, ApiProperties, ARMProxyResource, ARMResourceProperties, @@ -15,7 +14,6 @@ export { AutoscaleSettingsResource, AutoUpgradePolicyResource, AzureEntityResource, - BackupPolicy, BaseResource, Capability, CassandraKeyspaceCreateUpdateParameters, @@ -39,14 +37,10 @@ export { ConflictResolutionPolicy, ConsistencyPolicy, ContainerPartitionKey, - ContinuousModeBackupPolicy, CorsPolicy, CreateUpdateOptions, DatabaseAccountCreateUpdateParameters, - DatabaseAccountCreateUpdateProperties, DatabaseAccountGetResults, - DatabaseRestoreResource, - DefaultRequestDatabaseAccountCreateUpdateProperties, ExcludedPath, FailoverPolicy, GremlinDatabaseCreateUpdateParameters, @@ -64,7 +58,6 @@ export { IndexingPolicy, IpAddressOrRange, Location, - ManagedServiceIdentity, MongoDBCollectionCreateUpdateParameters, MongoDBCollectionGetPropertiesOptions, MongoDBCollectionGetPropertiesResource, @@ -81,17 +74,12 @@ export { NotebookWorkspace, NotebookWorkspaceCreateUpdateParameters, OptionsResource, - PeriodicModeBackupPolicy, - PeriodicModeProperties, PrivateEndpointConnection, PrivateEndpointProperty, PrivateLinkResource, PrivateLinkServiceConnectionStateProperty, ProxyResource, Resource, - RestorableDatabaseAccountGetResult, - RestoreParameters, - RestoreReqeustDatabaseAccountCreateUpdateProperties, SpatialSpec, SqlContainerCreateUpdateParameters, SqlContainerGetPropertiesOptions, @@ -115,7 +103,6 @@ export { SqlUserDefinedFunctionGetPropertiesResource, SqlUserDefinedFunctionGetResults, SqlUserDefinedFunctionResource, - SystemData, TableCreateUpdateParameters, TableGetPropertiesOptions, TableGetPropertiesResource, diff --git a/sdk/cosmosdb/arm-cosmosdb/src/models/collectionMappers.ts b/sdk/cosmosdb/arm-cosmosdb/src/models/collectionMappers.ts index 47fa7a69dbb1..944586670c79 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/models/collectionMappers.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/models/collectionMappers.ts @@ -7,7 +7,6 @@ */ export { - discriminators, CloudError, Metric, MetricAvailability, diff --git a/sdk/cosmosdb/arm-cosmosdb/src/models/collectionPartitionMappers.ts b/sdk/cosmosdb/arm-cosmosdb/src/models/collectionPartitionMappers.ts index dc9314fde7b3..8a50f863252d 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/models/collectionPartitionMappers.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/models/collectionPartitionMappers.ts @@ -7,7 +7,6 @@ */ export { - discriminators, CloudError, Metric, MetricName, diff --git a/sdk/cosmosdb/arm-cosmosdb/src/models/collectionPartitionRegionMappers.ts b/sdk/cosmosdb/arm-cosmosdb/src/models/collectionPartitionRegionMappers.ts index ad4eec5bb57b..c901f39fec5e 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/models/collectionPartitionRegionMappers.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/models/collectionPartitionRegionMappers.ts @@ -7,7 +7,6 @@ */ export { - discriminators, CloudError, Metric, MetricName, diff --git a/sdk/cosmosdb/arm-cosmosdb/src/models/collectionRegionMappers.ts b/sdk/cosmosdb/arm-cosmosdb/src/models/collectionRegionMappers.ts index 9db5e4fd94cc..357a24d97955 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/models/collectionRegionMappers.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/models/collectionRegionMappers.ts @@ -7,7 +7,6 @@ */ export { - discriminators, CloudError, Metric, MetricListResult, diff --git a/sdk/cosmosdb/arm-cosmosdb/src/models/databaseAccountRegionMappers.ts b/sdk/cosmosdb/arm-cosmosdb/src/models/databaseAccountRegionMappers.ts index 9db5e4fd94cc..357a24d97955 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/models/databaseAccountRegionMappers.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/models/databaseAccountRegionMappers.ts @@ -7,7 +7,6 @@ */ export { - discriminators, CloudError, Metric, MetricListResult, diff --git a/sdk/cosmosdb/arm-cosmosdb/src/models/databaseAccountsMappers.ts b/sdk/cosmosdb/arm-cosmosdb/src/models/databaseAccountsMappers.ts index 886bcd8894f0..e39dae4bd613 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/models/databaseAccountsMappers.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/models/databaseAccountsMappers.ts @@ -7,7 +7,6 @@ */ export { - discriminators, ApiProperties, ARMProxyResource, ARMResourceProperties, @@ -15,7 +14,6 @@ export { AutoscaleSettingsResource, AutoUpgradePolicyResource, AzureEntityResource, - BackupPolicy, BaseResource, Capability, CassandraKeyspaceCreateUpdateParameters, @@ -37,12 +35,10 @@ export { ConflictResolutionPolicy, ConsistencyPolicy, ContainerPartitionKey, - ContinuousModeBackupPolicy, CorsPolicy, CreateUpdateOptions, DatabaseAccountConnectionString, DatabaseAccountCreateUpdateParameters, - DatabaseAccountCreateUpdateProperties, DatabaseAccountGetResults, DatabaseAccountListConnectionStringsResult, DatabaseAccountListKeysResult, @@ -50,8 +46,6 @@ export { DatabaseAccountRegenerateKeyParameters, DatabaseAccountsListResult, DatabaseAccountUpdateParameters, - DatabaseRestoreResource, - DefaultRequestDatabaseAccountCreateUpdateProperties, ErrorResponse, ExcludedPath, FailoverPolicies, @@ -71,7 +65,6 @@ export { IndexingPolicy, IpAddressOrRange, Location, - ManagedServiceIdentity, Metric, MetricAvailability, MetricDefinition, @@ -98,8 +91,6 @@ export { PartitionMetric, PartitionUsage, PercentileMetricValue, - PeriodicModeBackupPolicy, - PeriodicModeProperties, PrivateEndpointConnection, PrivateEndpointProperty, PrivateLinkResource, @@ -107,9 +98,6 @@ export { ProxyResource, RegionForOnlineOffline, Resource, - RestorableDatabaseAccountGetResult, - RestoreParameters, - RestoreReqeustDatabaseAccountCreateUpdateProperties, SpatialSpec, SqlContainerCreateUpdateParameters, SqlContainerGetPropertiesOptions, @@ -133,7 +121,6 @@ export { SqlUserDefinedFunctionGetPropertiesResource, SqlUserDefinedFunctionGetResults, SqlUserDefinedFunctionResource, - SystemData, TableCreateUpdateParameters, TableGetPropertiesOptions, TableGetPropertiesResource, diff --git a/sdk/cosmosdb/arm-cosmosdb/src/models/databaseMappers.ts b/sdk/cosmosdb/arm-cosmosdb/src/models/databaseMappers.ts index 47fa7a69dbb1..944586670c79 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/models/databaseMappers.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/models/databaseMappers.ts @@ -7,7 +7,6 @@ */ export { - discriminators, CloudError, Metric, MetricAvailability, diff --git a/sdk/cosmosdb/arm-cosmosdb/src/models/gremlinResourcesMappers.ts b/sdk/cosmosdb/arm-cosmosdb/src/models/gremlinResourcesMappers.ts index 66428bf55eca..bedc97f02dcf 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/models/gremlinResourcesMappers.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/models/gremlinResourcesMappers.ts @@ -7,7 +7,6 @@ */ export { - discriminators, ApiProperties, ARMProxyResource, ARMResourceProperties, @@ -15,7 +14,6 @@ export { AutoscaleSettingsResource, AutoUpgradePolicyResource, AzureEntityResource, - BackupPolicy, BaseResource, Capability, CassandraKeyspaceCreateUpdateParameters, @@ -37,14 +35,10 @@ export { ConflictResolutionPolicy, ConsistencyPolicy, ContainerPartitionKey, - ContinuousModeBackupPolicy, CorsPolicy, CreateUpdateOptions, DatabaseAccountCreateUpdateParameters, - DatabaseAccountCreateUpdateProperties, DatabaseAccountGetResults, - DatabaseRestoreResource, - DefaultRequestDatabaseAccountCreateUpdateProperties, ExcludedPath, FailoverPolicy, GremlinDatabaseCreateUpdateParameters, @@ -64,7 +58,6 @@ export { IndexingPolicy, IpAddressOrRange, Location, - ManagedServiceIdentity, MongoDBCollectionCreateUpdateParameters, MongoDBCollectionGetPropertiesOptions, MongoDBCollectionGetPropertiesResource, @@ -81,17 +74,12 @@ export { NotebookWorkspace, NotebookWorkspaceCreateUpdateParameters, OptionsResource, - PeriodicModeBackupPolicy, - PeriodicModeProperties, PrivateEndpointConnection, PrivateEndpointProperty, PrivateLinkResource, PrivateLinkServiceConnectionStateProperty, ProxyResource, Resource, - RestorableDatabaseAccountGetResult, - RestoreParameters, - RestoreReqeustDatabaseAccountCreateUpdateProperties, SpatialSpec, SqlContainerCreateUpdateParameters, SqlContainerGetPropertiesOptions, @@ -115,7 +103,6 @@ export { SqlUserDefinedFunctionGetPropertiesResource, SqlUserDefinedFunctionGetResults, SqlUserDefinedFunctionResource, - SystemData, TableCreateUpdateParameters, TableGetPropertiesOptions, TableGetPropertiesResource, diff --git a/sdk/cosmosdb/arm-cosmosdb/src/models/index.ts b/sdk/cosmosdb/arm-cosmosdb/src/models/index.ts index 5f5daa63e789..db47da64995a 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/models/index.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/models/index.ts @@ -219,57 +219,6 @@ export interface ApiProperties { serverVersion?: ServerVersion; } -/** - * Specific Databases to restore. - */ -export interface DatabaseRestoreResource { - /** - * The name of the database to restore. - */ - databaseName?: string; - /** - * The names of the collections to restore. - */ - collectionNames?: string[]; -} - -/** - * Parameters to indicate the information about the restore. - */ -export interface RestoreParameters { - /** - * Describes the mode of the restore. Possible values include: 'PointInTime' - */ - restoreMode?: RestoreMode; - /** - * Path of the source account from which the restore has to be initiated - */ - restoreSource?: string; - /** - * Time to which the account has to be restored (ISO-8601 format). - */ - restoreTimestampInUtc?: Date; - /** - * List of specific databases to restore. - */ - databasesToRestore?: DatabaseRestoreResource[]; -} - -/** - * Contains the possible cases for BackupPolicy. - */ -export type BackupPolicyUnion = BackupPolicy | PeriodicModeBackupPolicy | ContinuousModeBackupPolicy; - -/** - * The object representing the policy for taking backups on an account. - */ -export interface BackupPolicy { - /** - * Polymorphic Discriminator - */ - type: "BackupPolicy"; -} - /** * The CORS policy for the Cosmos DB database account. */ @@ -297,38 +246,6 @@ export interface CorsPolicy { maxAgeInSeconds?: number; } -/** - * Metadata pertaining to creation and last modification of the resource. - */ -export interface SystemData { - /** - * The identity that created the resource. - */ - createdBy?: string; - /** - * The type of identity that created the resource. Possible values include: 'User', - * 'Application', 'ManagedIdentity', 'Key' - */ - createdByType?: CreatedByType; - /** - * The timestamp of resource creation (UTC). - */ - createdAt?: Date; - /** - * The identity that last modified the resource. - */ - lastModifiedBy?: string; - /** - * The type of identity that last modified the resource. Possible values include: 'User', - * 'Application', 'ManagedIdentity', 'Key' - */ - lastModifiedByType?: CreatedByType; - /** - * The type of identity that last modified the resource. - */ - lastModifiedAt?: Date; -} - /** * The core properties of ARM resources. */ @@ -353,7 +270,6 @@ export interface ARMResourceProperties extends BaseResource { */ location?: string; tags?: { [propertyName: string]: string }; - identity?: ManagedServiceIdentity; } /** @@ -468,33 +384,10 @@ export interface DatabaseAccountGetResults extends ARMResourceProperties { * Flag to indicate whether to enable storage analytics. */ enableAnalyticalStorage?: boolean; - /** - * A unique identifier assigned to the database account - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly instanceId?: string; - /** - * Enum to indicate the mode of account creation. Possible values include: 'Default', 'Restore'. - * Default value: 'Default'. - */ - createMode?: CreateMode; - /** - * Parameters to indicate the information about the restore. - */ - restoreParameters?: RestoreParameters; - /** - * The object representing the policy for taking backups on an account. - */ - backupPolicy?: BackupPolicyUnion; /** * The CORS policy for the Cosmos DB database account. */ cors?: CorsPolicy[]; - /** - * The system meta data relating to this resource. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly systemData?: SystemData; } /** @@ -759,6 +652,10 @@ export interface SqlContainerGetPropertiesResource { * The conflict resolution policy for the container. */ conflictResolutionPolicy?: ConflictResolutionPolicy; + /** + * Analytical TTL. + */ + analyticalStorageTtl?: number; /** * A system generated property. A unique identifier. * **NOTE: This property will not be serialized. It can only be populated by the server.** @@ -1346,13 +1243,6 @@ export interface ErrorResponse { message?: string; } -/** - * An error response from the service. - */ -export interface ErrorResponseUpdatedFormat { - error?: ErrorResponse; -} - /** * The list of new failover policies for the failover priority change. */ @@ -1373,31 +1263,6 @@ export interface RegionForOnlineOffline { region: string; } -/** - * Identity for the resource. - */ -export interface ManagedServiceIdentity { - /** - * The principal id of the system assigned identity. This property will only be provided for a - * system assigned identity. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly principalId?: string; - /** - * The tenant id of the system assigned identity. This property will only be provided for a - * system assigned identity. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly tenantId?: string; - /** - * The type of identity used for the resource. The type 'SystemAssigned, UserAssigned' includes - * both an implicitly created identity and a set of user assigned identities. The type 'None' - * will remove any identities from the service. Possible values include: 'SystemAssigned', - * 'UserAssigned', 'SystemAssigned, UserAssigned', 'None' - */ - type?: ResourceIdentityType; -} - /** * The resource model definition for a ARM proxy resource. It will have everything other than * required location and tags @@ -1538,18 +1403,15 @@ export interface ThroughputSettingsGetResults extends ARMResourceProperties { } /** - * Contains the possible cases for DatabaseAccountCreateUpdateProperties. - */ -export type DatabaseAccountCreateUpdatePropertiesUnion = DatabaseAccountCreateUpdateProperties | DefaultRequestDatabaseAccountCreateUpdateProperties | RestoreReqeustDatabaseAccountCreateUpdateProperties; - -/** - * Properties to create and update Azure Cosmos DB database accounts. + * Parameters to create and update Cosmos DB database accounts. */ -export interface DatabaseAccountCreateUpdateProperties { +export interface DatabaseAccountCreateUpdateParameters extends ARMResourceProperties { /** - * Polymorphic Discriminator + * Indicates the type of database account. This can only be set at database account creation. + * Possible values include: 'GlobalDocumentDB', 'MongoDB', 'Parse'. Default value: + * 'GlobalDocumentDB'. */ - createMode: "DatabaseAccountCreateUpdateProperties"; + kind?: DatabaseAccountKind; /** * The consistency policy for the Cosmos DB account. */ @@ -1619,10 +1481,6 @@ export interface DatabaseAccountCreateUpdateProperties { * Flag to indicate whether to enable storage analytics. */ enableAnalyticalStorage?: boolean; - /** - * The object representing the policy for taking backups on an account. - */ - backupPolicy?: BackupPolicyUnion; /** * The CORS policy for the Cosmos DB database account. */ @@ -1630,13 +1488,14 @@ export interface DatabaseAccountCreateUpdateProperties { } /** - * Properties for non-restore Azure Cosmos DB database account requests. + * Parameters for patching Azure Cosmos DB database account properties. */ -export interface DefaultRequestDatabaseAccountCreateUpdateProperties { +export interface DatabaseAccountUpdateParameters { + tags?: { [propertyName: string]: string }; /** - * Polymorphic Discriminator + * The location of the resource group to which the resource belongs. */ - createMode: "Default"; + location?: string; /** * The consistency policy for the Cosmos DB account. */ @@ -1644,7 +1503,7 @@ export interface DefaultRequestDatabaseAccountCreateUpdateProperties { /** * An array that contains the georeplication locations enabled for the Cosmos DB account. */ - locations: Location[]; + locations?: Location[]; /** * List of IpRules. */ @@ -1706,10 +1565,6 @@ export interface DefaultRequestDatabaseAccountCreateUpdateProperties { * Flag to indicate whether to enable storage analytics. */ enableAnalyticalStorage?: boolean; - /** - * The object representing the policy for taking backups on an account. - */ - backupPolicy?: BackupPolicyUnion; /** * The CORS policy for the Cosmos DB database account. */ @@ -1717,346 +1572,364 @@ export interface DefaultRequestDatabaseAccountCreateUpdateProperties { } /** - * Properties to restore Azure Cosmos DB database account. + * The read-only access keys for the given database account. */ -export interface RestoreReqeustDatabaseAccountCreateUpdateProperties { - /** - * Polymorphic Discriminator - */ - createMode: "Restore"; +export interface DatabaseAccountListReadOnlyKeysResult { /** - * The consistency policy for the Cosmos DB account. + * Base 64 encoded value of the primary read-only key. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - consistencyPolicy?: ConsistencyPolicy; + readonly primaryReadonlyMasterKey?: string; /** - * An array that contains the georeplication locations enabled for the Cosmos DB account. + * Base 64 encoded value of the secondary read-only key. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - locations: Location[]; + readonly secondaryReadonlyMasterKey?: string; +} + +/** + * The access keys for the given database account. + */ +export interface DatabaseAccountListKeysResult extends DatabaseAccountListReadOnlyKeysResult { /** - * List of IpRules. + * Base 64 encoded value of the primary read-write key. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - ipRules?: IpAddressOrRange[]; + readonly primaryMasterKey?: string; /** - * Flag to indicate whether to enable/disable Virtual Network ACL rules. + * Base 64 encoded value of the secondary read-write key. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - isVirtualNetworkFilterEnabled?: boolean; + readonly secondaryMasterKey?: string; +} + +/** + * Connection string for the Cosmos DB account + */ +export interface DatabaseAccountConnectionString { /** - * Enables automatic failover of the write region in the rare event that the region is - * unavailable due to an outage. Automatic failover will result in a new write region for the - * account and is chosen based on the failover priorities configured for the account. + * Value of the connection string + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - enableAutomaticFailover?: boolean; + readonly connectionString?: string; /** - * List of Cosmos DB capabilities for the account + * Description of the connection string + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - capabilities?: Capability[]; + readonly description?: string; +} + +/** + * The connection strings for the given database account. + */ +export interface DatabaseAccountListConnectionStringsResult { /** - * List of Virtual Network ACL rules configured for the Cosmos DB account. + * An array that contains the connection strings for the Cosmos DB account. */ - virtualNetworkRules?: VirtualNetworkRule[]; + connectionStrings?: DatabaseAccountConnectionString[]; +} + +/** + * Parameters to regenerate the keys within the database account. + */ +export interface DatabaseAccountRegenerateKeyParameters { /** - * Enables the account to write in multiple locations + * The access key to regenerate. Possible values include: 'primary', 'secondary', + * 'primaryReadonly', 'secondaryReadonly' */ - enableMultipleWriteLocations?: boolean; + keyKind: KeyKind; +} + +/** + * Cosmos DB resource throughput object. Either throughput is required or autoscaleSettings is + * required, but not both. + */ +export interface ThroughputSettingsResource { /** - * Enables the cassandra connector on the Cosmos DB C* account + * Value of the Cosmos DB resource throughput. Either throughput is required or autoscaleSettings + * is required, but not both. */ - enableCassandraConnector?: boolean; + throughput?: number; /** - * The cassandra connector offer type for the Cosmos DB database C* account. Possible values - * include: 'Small' + * Cosmos DB resource for autoscale settings. Either throughput is required or autoscaleSettings + * is required, but not both. */ - connectorOffer?: ConnectorOffer; + autoscaleSettings?: AutoscaleSettingsResource; /** - * Disable write operations on metadata resources (databases, containers, throughput) via account - * keys + * The minimum throughput of the resource + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - disableKeyBasedMetadataWriteAccess?: boolean; + readonly minimumThroughput?: string; /** - * The URI of the key vault + * The throughput replace is pending + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - keyVaultKeyUri?: string; + readonly offerReplacePending?: string; +} + +/** + * Parameters to update Cosmos DB resource throughput. + */ +export interface ThroughputSettingsUpdateParameters extends ARMResourceProperties { /** - * Whether requests from Public Network are allowed. Possible values include: 'Enabled', - * 'Disabled' + * The standard JSON format of a resource throughput */ - publicNetworkAccess?: PublicNetworkAccess; + resource: ThroughputSettingsResource; +} + +/** + * Cosmos DB SQL database resource object + */ +export interface SqlDatabaseResource { /** - * Flag to indicate whether Free Tier is enabled. + * Name of the Cosmos DB SQL database */ - enableFreeTier?: boolean; + id: string; +} + +/** + * An interface representing AutoscaleSettings. + */ +export interface AutoscaleSettings { /** - * API specific properties. Currently, supported only for MongoDB API. + * Represents maximum throughput, the resource can scale up to. */ - apiProperties?: ApiProperties; + maxThroughput?: number; +} + +/** + * 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 { /** - * Flag to indicate whether to enable storage analytics. + * Request Units per second. For example, "throughput": 10000. */ - enableAnalyticalStorage?: boolean; + throughput?: number; /** - * The object representing the policy for taking backups on an account. + * Specifies the Autoscale settings. */ - backupPolicy?: BackupPolicyUnion; + autoscaleSettings?: AutoscaleSettings; +} + +/** + * Parameters to create and update Cosmos DB SQL database. + */ +export interface SqlDatabaseCreateUpdateParameters extends ARMResourceProperties { /** - * The CORS policy for the Cosmos DB database account. + * The standard JSON format of a SQL database */ - cors?: CorsPolicy[]; + resource: SqlDatabaseResource; /** - * Parameters to indicate the information about the restore. + * A key-value pair of options to be applied for the request. This corresponds to the headers + * sent with the request. */ - restoreParameters?: RestoreParameters; + options: CreateUpdateOptions; } /** - * Parameters to create and update Cosmos DB database accounts. + * Cosmos DB SQL container resource object */ -export interface DatabaseAccountCreateUpdateParameters extends ARMResourceProperties { +export interface SqlContainerResource { /** - * Indicates the type of database account. This can only be set at database account creation. - * Possible values include: 'GlobalDocumentDB', 'MongoDB', 'Parse'. Default value: - * 'GlobalDocumentDB'. - */ - kind?: DatabaseAccountKind; - properties: DatabaseAccountCreateUpdatePropertiesUnion; -} - -/** - * Parameters for patching Azure Cosmos DB database account properties. - */ -export interface DatabaseAccountUpdateParameters { - tags?: { [propertyName: string]: string }; - /** - * The location of the resource group to which the resource belongs. - */ - location?: string; - /** - * The consistency policy for the Cosmos DB account. - */ - consistencyPolicy?: ConsistencyPolicy; - /** - * An array that contains the georeplication locations enabled for the Cosmos DB account. - */ - locations?: Location[]; - /** - * List of IpRules. - */ - ipRules?: IpAddressOrRange[]; - /** - * Flag to indicate whether to enable/disable Virtual Network ACL rules. - */ - isVirtualNetworkFilterEnabled?: boolean; - /** - * Enables automatic failover of the write region in the rare event that the region is - * unavailable due to an outage. Automatic failover will result in a new write region for the - * account and is chosen based on the failover priorities configured for the account. - */ - enableAutomaticFailover?: boolean; - /** - * List of Cosmos DB capabilities for the account - */ - capabilities?: Capability[]; - /** - * List of Virtual Network ACL rules configured for the Cosmos DB account. - */ - virtualNetworkRules?: VirtualNetworkRule[]; - /** - * Enables the account to write in multiple locations - */ - enableMultipleWriteLocations?: boolean; - /** - * Enables the cassandra connector on the Cosmos DB C* account - */ - enableCassandraConnector?: boolean; - /** - * The cassandra connector offer type for the Cosmos DB database C* account. Possible values - * include: 'Small' - */ - connectorOffer?: ConnectorOffer; - /** - * Disable write operations on metadata resources (databases, containers, throughput) via account - * keys - */ - disableKeyBasedMetadataWriteAccess?: boolean; - /** - * The URI of the key vault + * Name of the Cosmos DB SQL container */ - keyVaultKeyUri?: string; + id: string; /** - * Whether requests from Public Network are allowed. Possible values include: 'Enabled', - * 'Disabled' + * The configuration of the indexing policy. By default, the indexing is automatic for all + * document paths within the container */ - publicNetworkAccess?: PublicNetworkAccess; + indexingPolicy?: IndexingPolicy; /** - * Flag to indicate whether Free Tier is enabled. + * The configuration of the partition key to be used for partitioning data into multiple + * partitions */ - enableFreeTier?: boolean; + partitionKey?: ContainerPartitionKey; /** - * API specific properties. Currently, supported only for MongoDB API. + * Default time to live */ - apiProperties?: ApiProperties; + defaultTtl?: number; /** - * Flag to indicate whether to enable storage analytics. + * The unique key policy configuration for specifying uniqueness constraints on documents in the + * collection in the Azure Cosmos DB service. */ - enableAnalyticalStorage?: boolean; + uniqueKeyPolicy?: UniqueKeyPolicy; /** - * The object representing the policy for taking backups on an account. + * The conflict resolution policy for the container. */ - backupPolicy?: BackupPolicyUnion; + conflictResolutionPolicy?: ConflictResolutionPolicy; /** - * The CORS policy for the Cosmos DB database account. + * Analytical TTL. */ - cors?: CorsPolicy[]; + analyticalStorageTtl?: number; } /** - * The read-only access keys for the given database account. + * Parameters to create and update Cosmos DB container. */ -export interface DatabaseAccountListReadOnlyKeysResult { +export interface SqlContainerCreateUpdateParameters extends ARMResourceProperties { /** - * Base 64 encoded value of the primary read-only key. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The standard JSON format of a container */ - readonly primaryReadonlyMasterKey?: string; + resource: SqlContainerResource; /** - * Base 64 encoded value of the secondary read-only key. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * A key-value pair of options to be applied for the request. This corresponds to the headers + * sent with the request. */ - readonly secondaryReadonlyMasterKey?: string; + options: CreateUpdateOptions; } /** - * The access keys for the given database account. + * Cosmos DB SQL storedProcedure resource object */ -export interface DatabaseAccountListKeysResult extends DatabaseAccountListReadOnlyKeysResult { +export interface SqlStoredProcedureResource { /** - * Base 64 encoded value of the primary read-write key. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Name of the Cosmos DB SQL storedProcedure */ - readonly primaryMasterKey?: string; + id: string; /** - * Base 64 encoded value of the secondary read-write key. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Body of the Stored Procedure */ - readonly secondaryMasterKey?: string; + body?: string; } /** - * Connection string for the Cosmos DB account + * Parameters to create and update Cosmos DB storedProcedure. */ -export interface DatabaseAccountConnectionString { +export interface SqlStoredProcedureCreateUpdateParameters extends ARMResourceProperties { /** - * Value of the connection string - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The standard JSON format of a storedProcedure */ - readonly connectionString?: string; + resource: SqlStoredProcedureResource; /** - * Description of the connection string - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * A key-value pair of options to be applied for the request. This corresponds to the headers + * sent with the request. */ - readonly description?: string; + options: CreateUpdateOptions; } /** - * The connection strings for the given database account. + * Cosmos DB SQL userDefinedFunction resource object */ -export interface DatabaseAccountListConnectionStringsResult { +export interface SqlUserDefinedFunctionResource { /** - * An array that contains the connection strings for the Cosmos DB account. + * Name of the Cosmos DB SQL userDefinedFunction */ - connectionStrings?: DatabaseAccountConnectionString[]; + id: string; + /** + * Body of the User Defined Function + */ + body?: string; } /** - * Parameters to regenerate the keys within the database account. + * Parameters to create and update Cosmos DB userDefinedFunction. */ -export interface DatabaseAccountRegenerateKeyParameters { +export interface SqlUserDefinedFunctionCreateUpdateParameters extends ARMResourceProperties { /** - * The access key to regenerate. Possible values include: 'primary', 'secondary', - * 'primaryReadonly', 'secondaryReadonly' + * The standard JSON format of a userDefinedFunction */ - keyKind: KeyKind; + resource: SqlUserDefinedFunctionResource; + /** + * A key-value pair of options to be applied for the request. This corresponds to the headers + * sent with the request. + */ + options: CreateUpdateOptions; } /** - * Cosmos DB resource throughput object. Either throughput is required or autoscaleSettings is - * required, but not both. + * Cosmos DB SQL trigger resource object */ -export interface ThroughputSettingsResource { +export interface SqlTriggerResource { /** - * Value of the Cosmos DB resource throughput. Either throughput is required or autoscaleSettings - * is required, but not both. + * Name of the Cosmos DB SQL trigger */ - throughput?: number; + id: string; /** - * Cosmos DB resource for autoscale settings. Either throughput is required or autoscaleSettings - * is required, but not both. + * Body of the Trigger */ - autoscaleSettings?: AutoscaleSettingsResource; + body?: string; /** - * The minimum throughput of the resource - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Type of the Trigger. Possible values include: 'Pre', 'Post' */ - readonly minimumThroughput?: string; + triggerType?: TriggerType; /** - * The throughput replace is pending - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The operation the trigger is associated with. Possible values include: 'All', 'Create', + * 'Update', 'Delete', 'Replace' */ - readonly offerReplacePending?: string; + triggerOperation?: TriggerOperation; } /** - * Parameters to update Cosmos DB resource throughput. + * Parameters to create and update Cosmos DB trigger. */ -export interface ThroughputSettingsUpdateParameters extends ARMResourceProperties { +export interface SqlTriggerCreateUpdateParameters extends ARMResourceProperties { /** - * The standard JSON format of a resource throughput + * The standard JSON format of a trigger */ - resource: ThroughputSettingsResource; + resource: SqlTriggerResource; + /** + * A key-value pair of options to be applied for the request. This corresponds to the headers + * sent with the request. + */ + options: CreateUpdateOptions; } /** - * Cosmos DB SQL database resource object + * Cosmos DB MongoDB database resource object */ -export interface SqlDatabaseResource { +export interface MongoDBDatabaseResource { /** - * Name of the Cosmos DB SQL database + * Name of the Cosmos DB MongoDB database */ id: string; } /** - * An interface representing AutoscaleSettings. + * Parameters to create and update Cosmos DB MongoDB database. */ -export interface AutoscaleSettings { +export interface MongoDBDatabaseCreateUpdateParameters extends ARMResourceProperties { /** - * Represents maximum throughput, the resource can scale up to. + * The standard JSON format of a MongoDB database */ - maxThroughput?: number; + resource: MongoDBDatabaseResource; + /** + * A key-value pair of options to be applied for the request. This corresponds to the headers + * sent with the request. + */ + options: CreateUpdateOptions; } /** - * CreateUpdateOptions are a list of key-value pairs that describe the resource. Supported keys are - * "If-Match", "If-None-Match", "Session-Token" and "Throughput" + * Cosmos DB MongoDB collection resource object */ -export interface CreateUpdateOptions { +export interface MongoDBCollectionResource { /** - * Request Units per second. For example, "throughput": 10000. + * Name of the Cosmos DB MongoDB collection */ - throughput?: number; + id: string; /** - * Specifies the Autoscale settings. + * A key-value pair of shard keys to be applied for the request. */ - autoscaleSettings?: AutoscaleSettings; + shardKey?: { [propertyName: string]: string }; + /** + * List of index keys + */ + indexes?: MongoIndex[]; + /** + * Analytical TTL. + */ + analyticalStorageTtl?: number; } /** - * Parameters to create and update Cosmos DB SQL database. + * Parameters to create and update Cosmos DB MongoDB collection. */ -export interface SqlDatabaseCreateUpdateParameters extends ARMResourceProperties { +export interface MongoDBCollectionCreateUpdateParameters extends ARMResourceProperties { /** - * The standard JSON format of a SQL database + * The standard JSON format of a MongoDB collection */ - resource: SqlDatabaseResource; + resource: MongoDBCollectionResource; /** * A key-value pair of options to be applied for the request. This corresponds to the headers * sent with the request. @@ -2065,215 +1938,9 @@ export interface SqlDatabaseCreateUpdateParameters extends ARMResourceProperties } /** - * Cosmos DB SQL container resource object + * Cosmos DB table resource object */ -export interface SqlContainerResource { - /** - * Name of the Cosmos DB SQL container - */ - id: string; - /** - * The configuration of the indexing policy. By default, the indexing is automatic for all - * document paths within the container - */ - indexingPolicy?: IndexingPolicy; - /** - * The configuration of the partition key to be used for partitioning data into multiple - * partitions - */ - partitionKey?: ContainerPartitionKey; - /** - * Default time to live - */ - defaultTtl?: number; - /** - * The unique key policy configuration for specifying uniqueness constraints on documents in the - * collection in the Azure Cosmos DB service. - */ - uniqueKeyPolicy?: UniqueKeyPolicy; - /** - * The conflict resolution policy for the container. - */ - conflictResolutionPolicy?: ConflictResolutionPolicy; -} - -/** - * Parameters to create and update Cosmos DB container. - */ -export interface SqlContainerCreateUpdateParameters extends ARMResourceProperties { - /** - * The standard JSON format of a container - */ - resource: SqlContainerResource; - /** - * A key-value pair of options to be applied for the request. This corresponds to the headers - * sent with the request. - */ - options: CreateUpdateOptions; -} - -/** - * Cosmos DB SQL storedProcedure resource object - */ -export interface SqlStoredProcedureResource { - /** - * Name of the Cosmos DB SQL storedProcedure - */ - id: string; - /** - * Body of the Stored Procedure - */ - body?: string; -} - -/** - * Parameters to create and update Cosmos DB storedProcedure. - */ -export interface SqlStoredProcedureCreateUpdateParameters extends ARMResourceProperties { - /** - * The standard JSON format of a storedProcedure - */ - resource: SqlStoredProcedureResource; - /** - * A key-value pair of options to be applied for the request. This corresponds to the headers - * sent with the request. - */ - options: CreateUpdateOptions; -} - -/** - * Cosmos DB SQL userDefinedFunction resource object - */ -export interface SqlUserDefinedFunctionResource { - /** - * Name of the Cosmos DB SQL userDefinedFunction - */ - id: string; - /** - * Body of the User Defined Function - */ - body?: string; -} - -/** - * Parameters to create and update Cosmos DB userDefinedFunction. - */ -export interface SqlUserDefinedFunctionCreateUpdateParameters extends ARMResourceProperties { - /** - * The standard JSON format of a userDefinedFunction - */ - resource: SqlUserDefinedFunctionResource; - /** - * A key-value pair of options to be applied for the request. This corresponds to the headers - * sent with the request. - */ - options: CreateUpdateOptions; -} - -/** - * Cosmos DB SQL trigger resource object - */ -export interface SqlTriggerResource { - /** - * Name of the Cosmos DB SQL trigger - */ - id: string; - /** - * Body of the Trigger - */ - body?: string; - /** - * Type of the Trigger. Possible values include: 'Pre', 'Post' - */ - triggerType?: TriggerType; - /** - * The operation the trigger is associated with. Possible values include: 'All', 'Create', - * 'Update', 'Delete', 'Replace' - */ - triggerOperation?: TriggerOperation; -} - -/** - * Parameters to create and update Cosmos DB trigger. - */ -export interface SqlTriggerCreateUpdateParameters extends ARMResourceProperties { - /** - * The standard JSON format of a trigger - */ - resource: SqlTriggerResource; - /** - * A key-value pair of options to be applied for the request. This corresponds to the headers - * sent with the request. - */ - options: CreateUpdateOptions; -} - -/** - * Cosmos DB MongoDB database resource object - */ -export interface MongoDBDatabaseResource { - /** - * Name of the Cosmos DB MongoDB database - */ - id: string; -} - -/** - * Parameters to create and update Cosmos DB MongoDB database. - */ -export interface MongoDBDatabaseCreateUpdateParameters extends ARMResourceProperties { - /** - * The standard JSON format of a MongoDB database - */ - resource: MongoDBDatabaseResource; - /** - * A key-value pair of options to be applied for the request. This corresponds to the headers - * sent with the request. - */ - options: CreateUpdateOptions; -} - -/** - * Cosmos DB MongoDB collection resource object - */ -export interface MongoDBCollectionResource { - /** - * Name of the Cosmos DB MongoDB collection - */ - id: string; - /** - * A key-value pair of shard keys to be applied for the request. - */ - shardKey?: { [propertyName: string]: string }; - /** - * List of index keys - */ - indexes?: MongoIndex[]; - /** - * Analytical TTL. - */ - analyticalStorageTtl?: number; -} - -/** - * Parameters to create and update Cosmos DB MongoDB collection. - */ -export interface MongoDBCollectionCreateUpdateParameters extends ARMResourceProperties { - /** - * The standard JSON format of a MongoDB collection - */ - resource: MongoDBCollectionResource; - /** - * A key-value pair of options to be applied for the request. This corresponds to the headers - * sent with the request. - */ - options: CreateUpdateOptions; -} - -/** - * Cosmos DB table resource object - */ -export interface TableResource { +export interface TableResource { /** * Name of the Cosmos DB table */ @@ -2742,62 +2409,6 @@ export interface PartitionMetric extends Metric { readonly partitionKeyRangeId?: string; } -/** - * Configuration values for periodic mode backup - */ -export interface PeriodicModeProperties { - /** - * An integer representing the interval in minutes between two backups - */ - backupIntervalInMinutes?: number; - /** - * An integer representing the time (in hours) that each backup is retained - */ - backupRetentionIntervalInHours?: number; -} - -/** - * The object representing periodic mode backup policy. - */ -export interface PeriodicModeBackupPolicy { - /** - * Polymorphic Discriminator - */ - type: "Periodic"; - /** - * Configuration values for periodic mode backup - */ - periodicModeProperties?: PeriodicModeProperties; -} - -/** - * The object representing continuous mode backup policy. - */ -export interface ContinuousModeBackupPolicy { - /** - * Polymorphic Discriminator - */ - type: "Continuous"; -} - -/** - * A Azure Cosmos DB restorable database account. - */ -export interface RestorableDatabaseAccountGetResult extends ARMResourceProperties { - /** - * The name of the global database account - */ - accountName?: string; - /** - * The creation time of the restorable database account (ISO-8601 format). - */ - creationTime?: Date; - /** - * The time at which the restorable database account has been deleted (ISO-8601 format). - */ - deletionTime?: Date; -} - /** * The resource model definition for a ARM tracked top level resource */ @@ -3099,15 +2710,6 @@ export interface GremlinDatabaseListResult extends Array { } -/** - * @interface - * The List operation response, that contains the restorable database accounts and their - * properties. - * @extends Array - */ -export interface RestorableDatabaseAccountsListResult extends Array { -} - /** * @interface * A list of notebook workspace resources @@ -3181,139 +2783,731 @@ export type PublicNetworkAccess = 'Enabled' | 'Disabled'; export type ServerVersion = '3.2' | '3.6'; /** - * Defines values for CreateMode. - * Possible values include: 'Default', 'Restore' + * Defines values for IndexingMode. + * Possible values include: 'Consistent', 'Lazy', 'None' * @readonly * @enum {string} */ -export type CreateMode = 'Default' | 'Restore'; +export type IndexingMode = 'Consistent' | 'Lazy' | 'None'; /** - * Defines values for RestoreMode. - * Possible values include: 'PointInTime' + * Defines values for DataType. + * Possible values include: 'String', 'Number', 'Point', 'Polygon', 'LineString', 'MultiPolygon' * @readonly * @enum {string} */ -export type RestoreMode = 'PointInTime'; +export type DataType = 'String' | 'Number' | 'Point' | 'Polygon' | 'LineString' | 'MultiPolygon'; /** - * Defines values for CreatedByType. - * Possible values include: 'User', 'Application', 'ManagedIdentity', 'Key' + * Defines values for IndexKind. + * Possible values include: 'Hash', 'Range', 'Spatial' * @readonly * @enum {string} */ -export type CreatedByType = 'User' | 'Application' | 'ManagedIdentity' | 'Key'; +export type IndexKind = 'Hash' | 'Range' | 'Spatial'; + +/** + * Defines values for CompositePathSortOrder. + * Possible values include: 'Ascending', 'Descending' + * @readonly + * @enum {string} + */ +export type CompositePathSortOrder = 'Ascending' | 'Descending'; + +/** + * Defines values for SpatialType. + * Possible values include: 'Point', 'LineString', 'Polygon', 'MultiPolygon' + * @readonly + * @enum {string} + */ +export type SpatialType = 'Point' | 'LineString' | 'Polygon' | 'MultiPolygon'; + +/** + * Defines values for PartitionKind. + * Possible values include: 'Hash', 'Range' + * @readonly + * @enum {string} + */ +export type PartitionKind = 'Hash' | 'Range'; + +/** + * Defines values for ConflictResolutionMode. + * Possible values include: 'LastWriterWins', 'Custom' + * @readonly + * @enum {string} + */ +export type ConflictResolutionMode = 'LastWriterWins' | 'Custom'; + +/** + * Defines values for TriggerType. + * Possible values include: 'Pre', 'Post' + * @readonly + * @enum {string} + */ +export type TriggerType = 'Pre' | 'Post'; + +/** + * Defines values for TriggerOperation. + * Possible values include: 'All', 'Create', 'Update', 'Delete', 'Replace' + * @readonly + * @enum {string} + */ +export type TriggerOperation = 'All' | 'Create' | 'Update' | 'Delete' | 'Replace'; + +/** + * Defines values for KeyKind. + * Possible values include: 'primary', 'secondary', 'primaryReadonly', 'secondaryReadonly' + * @readonly + * @enum {string} + */ +export type KeyKind = 'primary' | 'secondary' | 'primaryReadonly' | 'secondaryReadonly'; + +/** + * Defines values for UnitType. + * Possible values include: 'Count', 'Bytes', 'Seconds', 'Percent', 'CountPerSecond', + * 'BytesPerSecond', 'Milliseconds' + * @readonly + * @enum {string} + */ +export type UnitType = 'Count' | 'Bytes' | 'Seconds' | 'Percent' | 'CountPerSecond' | 'BytesPerSecond' | 'Milliseconds'; + +/** + * Defines values for PrimaryAggregationType. + * Possible values include: 'None', 'Average', 'Total', 'Minimum', 'Maximum', 'Last' + * @readonly + * @enum {string} + */ +export type PrimaryAggregationType = 'None' | 'Average' | 'Total' | 'Minimum' | 'Maximum' | 'Last'; + +/** + * Contains response data for the get operation. + */ +export type DatabaseAccountsGetResponse = DatabaseAccountGetResults & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: DatabaseAccountGetResults; + }; +}; + +/** + * Contains response data for the update operation. + */ +export type DatabaseAccountsUpdateResponse = DatabaseAccountGetResults & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: DatabaseAccountGetResults; + }; +}; + +/** + * Contains response data for the createOrUpdate operation. + */ +export type DatabaseAccountsCreateOrUpdateResponse = DatabaseAccountGetResults & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: DatabaseAccountGetResults; + }; +}; + +/** + * Contains response data for the list operation. + */ +export type DatabaseAccountsListResponse = DatabaseAccountsListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: DatabaseAccountsListResult; + }; +}; + +/** + * Contains response data for the listByResourceGroup operation. + */ +export type DatabaseAccountsListByResourceGroupResponse = DatabaseAccountsListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: DatabaseAccountsListResult; + }; +}; + +/** + * Contains response data for the listKeys operation. + */ +export type DatabaseAccountsListKeysResponse = DatabaseAccountListKeysResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: DatabaseAccountListKeysResult; + }; +}; + +/** + * Contains response data for the listConnectionStrings operation. + */ +export type DatabaseAccountsListConnectionStringsResponse = DatabaseAccountListConnectionStringsResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: DatabaseAccountListConnectionStringsResult; + }; +}; + +/** + * Contains response data for the getReadOnlyKeys operation. + */ +export type DatabaseAccountsGetReadOnlyKeysResponse = DatabaseAccountListReadOnlyKeysResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: DatabaseAccountListReadOnlyKeysResult; + }; +}; + +/** + * Contains response data for the listReadOnlyKeys operation. + */ +export type DatabaseAccountsListReadOnlyKeysResponse = DatabaseAccountListReadOnlyKeysResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: DatabaseAccountListReadOnlyKeysResult; + }; +}; + +/** + * Contains response data for the checkNameExists operation. + */ +export type DatabaseAccountsCheckNameExistsResponse = { + /** + * The parsed response body. + */ + body: boolean; + + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: boolean; + }; +}; + +/** + * Contains response data for the listMetrics operation. + */ +export type DatabaseAccountsListMetricsResponse = MetricListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: MetricListResult; + }; +}; + +/** + * Contains response data for the listUsages operation. + */ +export type DatabaseAccountsListUsagesResponse = UsagesResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: UsagesResult; + }; +}; + +/** + * Contains response data for the listMetricDefinitions operation. + */ +export type DatabaseAccountsListMetricDefinitionsResponse = MetricDefinitionsListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: MetricDefinitionsListResult; + }; +}; + +/** + * Contains response data for the beginUpdate operation. + */ +export type DatabaseAccountsBeginUpdateResponse = DatabaseAccountGetResults & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: DatabaseAccountGetResults; + }; +}; + +/** + * Contains response data for the beginCreateOrUpdate operation. + */ +export type DatabaseAccountsBeginCreateOrUpdateResponse = DatabaseAccountGetResults & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: DatabaseAccountGetResults; + }; +}; + +/** + * Contains response data for the list operation. + */ +export type OperationsListResponse = OperationListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: OperationListResult; + }; +}; + +/** + * Contains response data for the listNext operation. + */ +export type OperationsListNextResponse = OperationListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: OperationListResult; + }; +}; + +/** + * Contains response data for the listMetrics operation. + */ +export type DatabaseListMetricsResponse = MetricListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: MetricListResult; + }; +}; + +/** + * Contains response data for the listUsages operation. + */ +export type DatabaseListUsagesResponse = UsagesResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: UsagesResult; + }; +}; + +/** + * Contains response data for the listMetricDefinitions operation. + */ +export type DatabaseListMetricDefinitionsResponse = MetricDefinitionsListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: MetricDefinitionsListResult; + }; +}; + +/** + * Contains response data for the listMetrics operation. + */ +export type CollectionListMetricsResponse = MetricListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: MetricListResult; + }; +}; + +/** + * Contains response data for the listUsages operation. + */ +export type CollectionListUsagesResponse = UsagesResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: UsagesResult; + }; +}; + +/** + * Contains response data for the listMetricDefinitions operation. + */ +export type CollectionListMetricDefinitionsResponse = MetricDefinitionsListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: MetricDefinitionsListResult; + }; +}; + +/** + * Contains response data for the listMetrics operation. + */ +export type CollectionRegionListMetricsResponse = MetricListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: MetricListResult; + }; +}; /** - * Defines values for IndexingMode. - * Possible values include: 'Consistent', 'Lazy', 'None' - * @readonly - * @enum {string} + * Contains response data for the listMetrics operation. */ -export type IndexingMode = 'Consistent' | 'Lazy' | 'None'; +export type DatabaseAccountRegionListMetricsResponse = MetricListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; -/** - * Defines values for DataType. - * Possible values include: 'String', 'Number', 'Point', 'Polygon', 'LineString', 'MultiPolygon' - * @readonly - * @enum {string} - */ -export type DataType = 'String' | 'Number' | 'Point' | 'Polygon' | 'LineString' | 'MultiPolygon'; + /** + * The response body as parsed JSON or XML + */ + parsedBody: MetricListResult; + }; +}; /** - * Defines values for IndexKind. - * Possible values include: 'Hash', 'Range', 'Spatial' - * @readonly - * @enum {string} + * Contains response data for the listMetrics operation. */ -export type IndexKind = 'Hash' | 'Range' | 'Spatial'; +export type PercentileSourceTargetListMetricsResponse = PercentileMetricListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; -/** - * Defines values for CompositePathSortOrder. - * Possible values include: 'Ascending', 'Descending' - * @readonly - * @enum {string} - */ -export type CompositePathSortOrder = 'Ascending' | 'Descending'; + /** + * The response body as parsed JSON or XML + */ + parsedBody: PercentileMetricListResult; + }; +}; /** - * Defines values for SpatialType. - * Possible values include: 'Point', 'LineString', 'Polygon', 'MultiPolygon' - * @readonly - * @enum {string} + * Contains response data for the listMetrics operation. */ -export type SpatialType = 'Point' | 'LineString' | 'Polygon' | 'MultiPolygon'; +export type PercentileTargetListMetricsResponse = PercentileMetricListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; -/** - * Defines values for PartitionKind. - * Possible values include: 'Hash', 'Range' - * @readonly - * @enum {string} - */ -export type PartitionKind = 'Hash' | 'Range'; + /** + * The response body as parsed JSON or XML + */ + parsedBody: PercentileMetricListResult; + }; +}; /** - * Defines values for ConflictResolutionMode. - * Possible values include: 'LastWriterWins', 'Custom' - * @readonly - * @enum {string} + * Contains response data for the listMetrics operation. */ -export type ConflictResolutionMode = 'LastWriterWins' | 'Custom'; +export type PercentileListMetricsResponse = PercentileMetricListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; -/** - * Defines values for TriggerType. - * Possible values include: 'Pre', 'Post' - * @readonly - * @enum {string} - */ -export type TriggerType = 'Pre' | 'Post'; + /** + * The response body as parsed JSON or XML + */ + parsedBody: PercentileMetricListResult; + }; +}; /** - * Defines values for TriggerOperation. - * Possible values include: 'All', 'Create', 'Update', 'Delete', 'Replace' - * @readonly - * @enum {string} + * Contains response data for the listMetrics operation. */ -export type TriggerOperation = 'All' | 'Create' | 'Update' | 'Delete' | 'Replace'; +export type CollectionPartitionRegionListMetricsResponse = PartitionMetricListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; -/** - * Defines values for ResourceIdentityType. - * Possible values include: 'SystemAssigned', 'UserAssigned', 'SystemAssigned, UserAssigned', - * 'None' - * @readonly - * @enum {string} - */ -export type ResourceIdentityType = 'SystemAssigned' | 'UserAssigned' | 'SystemAssigned, UserAssigned' | 'None'; + /** + * The response body as parsed JSON or XML + */ + parsedBody: PartitionMetricListResult; + }; +}; /** - * Defines values for KeyKind. - * Possible values include: 'primary', 'secondary', 'primaryReadonly', 'secondaryReadonly' - * @readonly - * @enum {string} + * Contains response data for the listMetrics operation. */ -export type KeyKind = 'primary' | 'secondary' | 'primaryReadonly' | 'secondaryReadonly'; +export type CollectionPartitionListMetricsResponse = PartitionMetricListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; -/** - * Defines values for UnitType. - * Possible values include: 'Count', 'Bytes', 'Seconds', 'Percent', 'CountPerSecond', - * 'BytesPerSecond', 'Milliseconds' - * @readonly - * @enum {string} - */ -export type UnitType = 'Count' | 'Bytes' | 'Seconds' | 'Percent' | 'CountPerSecond' | 'BytesPerSecond' | 'Milliseconds'; + /** + * The response body as parsed JSON or XML + */ + parsedBody: PartitionMetricListResult; + }; +}; /** - * Defines values for PrimaryAggregationType. - * Possible values include: 'None', 'Average', 'Total', 'Minimum', 'Maximum', 'Last' - * @readonly - * @enum {string} + * Contains response data for the listUsages operation. */ -export type PrimaryAggregationType = 'None' | 'Average' | 'Total' | 'Minimum' | 'Maximum' | 'Last'; +export type CollectionPartitionListUsagesResponse = PartitionUsagesResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: PartitionUsagesResult; + }; +}; /** - * Contains response data for the get operation. + * Contains response data for the listMetrics operation. */ -export type DatabaseAccountsGetResponse = DatabaseAccountGetResults & { +export type PartitionKeyRangeIdListMetricsResponse = PartitionMetricListResult & { /** * The underlying HTTP response. */ @@ -3326,14 +3520,14 @@ export type DatabaseAccountsGetResponse = DatabaseAccountGetResults & { /** * The response body as parsed JSON or XML */ - parsedBody: DatabaseAccountGetResults; + parsedBody: PartitionMetricListResult; }; }; /** - * Contains response data for the update operation. + * Contains response data for the listMetrics operation. */ -export type DatabaseAccountsUpdateResponse = DatabaseAccountGetResults & { +export type PartitionKeyRangeIdRegionListMetricsResponse = PartitionMetricListResult & { /** * The underlying HTTP response. */ @@ -3346,14 +3540,14 @@ export type DatabaseAccountsUpdateResponse = DatabaseAccountGetResults & { /** * The response body as parsed JSON or XML */ - parsedBody: DatabaseAccountGetResults; + parsedBody: PartitionMetricListResult; }; }; /** - * Contains response data for the createOrUpdate operation. + * Contains response data for the listSqlDatabases operation. */ -export type DatabaseAccountsCreateOrUpdateResponse = DatabaseAccountGetResults & { +export type SqlResourcesListSqlDatabasesResponse = SqlDatabaseListResult & { /** * The underlying HTTP response. */ @@ -3366,14 +3560,14 @@ export type DatabaseAccountsCreateOrUpdateResponse = DatabaseAccountGetResults & /** * The response body as parsed JSON or XML */ - parsedBody: DatabaseAccountGetResults; + parsedBody: SqlDatabaseListResult; }; }; /** - * Contains response data for the list operation. + * Contains response data for the getSqlDatabase operation. */ -export type DatabaseAccountsListResponse = DatabaseAccountsListResult & { +export type SqlResourcesGetSqlDatabaseResponse = SqlDatabaseGetResults & { /** * The underlying HTTP response. */ @@ -3386,14 +3580,14 @@ export type DatabaseAccountsListResponse = DatabaseAccountsListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: DatabaseAccountsListResult; + parsedBody: SqlDatabaseGetResults; }; }; /** - * Contains response data for the listByResourceGroup operation. + * Contains response data for the createUpdateSqlDatabase operation. */ -export type DatabaseAccountsListByResourceGroupResponse = DatabaseAccountsListResult & { +export type SqlResourcesCreateUpdateSqlDatabaseResponse = SqlDatabaseGetResults & { /** * The underlying HTTP response. */ @@ -3406,14 +3600,14 @@ export type DatabaseAccountsListByResourceGroupResponse = DatabaseAccountsListRe /** * The response body as parsed JSON or XML */ - parsedBody: DatabaseAccountsListResult; + parsedBody: SqlDatabaseGetResults; }; }; /** - * Contains response data for the listKeys operation. + * Contains response data for the getSqlDatabaseThroughput operation. */ -export type DatabaseAccountsListKeysResponse = DatabaseAccountListKeysResult & { +export type SqlResourcesGetSqlDatabaseThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -3426,14 +3620,14 @@ export type DatabaseAccountsListKeysResponse = DatabaseAccountListKeysResult & { /** * The response body as parsed JSON or XML */ - parsedBody: DatabaseAccountListKeysResult; + parsedBody: ThroughputSettingsGetResults; }; }; /** - * Contains response data for the listConnectionStrings operation. + * Contains response data for the updateSqlDatabaseThroughput operation. */ -export type DatabaseAccountsListConnectionStringsResponse = DatabaseAccountListConnectionStringsResult & { +export type SqlResourcesUpdateSqlDatabaseThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -3446,14 +3640,14 @@ export type DatabaseAccountsListConnectionStringsResponse = DatabaseAccountListC /** * The response body as parsed JSON or XML */ - parsedBody: DatabaseAccountListConnectionStringsResult; + parsedBody: ThroughputSettingsGetResults; }; }; /** - * Contains response data for the getReadOnlyKeys operation. + * Contains response data for the migrateSqlDatabaseToAutoscale operation. */ -export type DatabaseAccountsGetReadOnlyKeysResponse = DatabaseAccountListReadOnlyKeysResult & { +export type SqlResourcesMigrateSqlDatabaseToAutoscaleResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -3466,14 +3660,14 @@ export type DatabaseAccountsGetReadOnlyKeysResponse = DatabaseAccountListReadOnl /** * The response body as parsed JSON or XML */ - parsedBody: DatabaseAccountListReadOnlyKeysResult; + parsedBody: ThroughputSettingsGetResults; }; }; /** - * Contains response data for the listReadOnlyKeys operation. + * Contains response data for the migrateSqlDatabaseToManualThroughput operation. */ -export type DatabaseAccountsListReadOnlyKeysResponse = DatabaseAccountListReadOnlyKeysResult & { +export type SqlResourcesMigrateSqlDatabaseToManualThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -3486,19 +3680,34 @@ export type DatabaseAccountsListReadOnlyKeysResponse = DatabaseAccountListReadOn /** * The response body as parsed JSON or XML */ - parsedBody: DatabaseAccountListReadOnlyKeysResult; + parsedBody: ThroughputSettingsGetResults; }; }; /** - * Contains response data for the checkNameExists operation. + * Contains response data for the listSqlContainers operation. */ -export type DatabaseAccountsCheckNameExistsResponse = { +export type SqlResourcesListSqlContainersResponse = SqlContainerListResult & { /** - * The parsed response body. + * The underlying HTTP response. */ - body: boolean; + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: SqlContainerListResult; + }; +}; +/** + * Contains response data for the getSqlContainer operation. + */ +export type SqlResourcesGetSqlContainerResponse = SqlContainerGetResults & { /** * The underlying HTTP response. */ @@ -3511,14 +3720,14 @@ export type DatabaseAccountsCheckNameExistsResponse = { /** * The response body as parsed JSON or XML */ - parsedBody: boolean; + parsedBody: SqlContainerGetResults; }; }; /** - * Contains response data for the listMetrics operation. + * Contains response data for the createUpdateSqlContainer operation. */ -export type DatabaseAccountsListMetricsResponse = MetricListResult & { +export type SqlResourcesCreateUpdateSqlContainerResponse = SqlContainerGetResults & { /** * The underlying HTTP response. */ @@ -3531,14 +3740,14 @@ export type DatabaseAccountsListMetricsResponse = MetricListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: MetricListResult; + parsedBody: SqlContainerGetResults; }; }; /** - * Contains response data for the listUsages operation. + * Contains response data for the getSqlContainerThroughput operation. */ -export type DatabaseAccountsListUsagesResponse = UsagesResult & { +export type SqlResourcesGetSqlContainerThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -3551,14 +3760,14 @@ export type DatabaseAccountsListUsagesResponse = UsagesResult & { /** * The response body as parsed JSON or XML */ - parsedBody: UsagesResult; + parsedBody: ThroughputSettingsGetResults; }; }; /** - * Contains response data for the listMetricDefinitions operation. + * Contains response data for the updateSqlContainerThroughput operation. */ -export type DatabaseAccountsListMetricDefinitionsResponse = MetricDefinitionsListResult & { +export type SqlResourcesUpdateSqlContainerThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -3571,14 +3780,14 @@ export type DatabaseAccountsListMetricDefinitionsResponse = MetricDefinitionsLis /** * The response body as parsed JSON or XML */ - parsedBody: MetricDefinitionsListResult; + parsedBody: ThroughputSettingsGetResults; }; }; /** - * Contains response data for the beginUpdate operation. + * Contains response data for the migrateSqlContainerToAutoscale operation. */ -export type DatabaseAccountsBeginUpdateResponse = DatabaseAccountGetResults & { +export type SqlResourcesMigrateSqlContainerToAutoscaleResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -3591,14 +3800,14 @@ export type DatabaseAccountsBeginUpdateResponse = DatabaseAccountGetResults & { /** * The response body as parsed JSON or XML */ - parsedBody: DatabaseAccountGetResults; + parsedBody: ThroughputSettingsGetResults; }; }; /** - * Contains response data for the beginCreateOrUpdate operation. + * Contains response data for the migrateSqlContainerToManualThroughput operation. */ -export type DatabaseAccountsBeginCreateOrUpdateResponse = DatabaseAccountGetResults & { +export type SqlResourcesMigrateSqlContainerToManualThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -3611,14 +3820,14 @@ export type DatabaseAccountsBeginCreateOrUpdateResponse = DatabaseAccountGetResu /** * The response body as parsed JSON or XML */ - parsedBody: DatabaseAccountGetResults; + parsedBody: ThroughputSettingsGetResults; }; }; /** - * Contains response data for the list operation. + * Contains response data for the listSqlStoredProcedures operation. */ -export type OperationsListResponse = OperationListResult & { +export type SqlResourcesListSqlStoredProceduresResponse = SqlStoredProcedureListResult & { /** * The underlying HTTP response. */ @@ -3631,14 +3840,14 @@ export type OperationsListResponse = OperationListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: OperationListResult; + parsedBody: SqlStoredProcedureListResult; }; }; /** - * Contains response data for the listNext operation. + * Contains response data for the getSqlStoredProcedure operation. */ -export type OperationsListNextResponse = OperationListResult & { +export type SqlResourcesGetSqlStoredProcedureResponse = SqlStoredProcedureGetResults & { /** * The underlying HTTP response. */ @@ -3651,14 +3860,14 @@ export type OperationsListNextResponse = OperationListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: OperationListResult; + parsedBody: SqlStoredProcedureGetResults; }; }; /** - * Contains response data for the listMetrics operation. + * Contains response data for the createUpdateSqlStoredProcedure operation. */ -export type DatabaseListMetricsResponse = MetricListResult & { +export type SqlResourcesCreateUpdateSqlStoredProcedureResponse = SqlStoredProcedureGetResults & { /** * The underlying HTTP response. */ @@ -3671,14 +3880,14 @@ export type DatabaseListMetricsResponse = MetricListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: MetricListResult; + parsedBody: SqlStoredProcedureGetResults; }; }; /** - * Contains response data for the listUsages operation. + * Contains response data for the listSqlUserDefinedFunctions operation. */ -export type DatabaseListUsagesResponse = UsagesResult & { +export type SqlResourcesListSqlUserDefinedFunctionsResponse = SqlUserDefinedFunctionListResult & { /** * The underlying HTTP response. */ @@ -3691,14 +3900,14 @@ export type DatabaseListUsagesResponse = UsagesResult & { /** * The response body as parsed JSON or XML */ - parsedBody: UsagesResult; + parsedBody: SqlUserDefinedFunctionListResult; }; }; /** - * Contains response data for the listMetricDefinitions operation. + * Contains response data for the getSqlUserDefinedFunction operation. */ -export type DatabaseListMetricDefinitionsResponse = MetricDefinitionsListResult & { +export type SqlResourcesGetSqlUserDefinedFunctionResponse = SqlUserDefinedFunctionGetResults & { /** * The underlying HTTP response. */ @@ -3711,14 +3920,14 @@ export type DatabaseListMetricDefinitionsResponse = MetricDefinitionsListResult /** * The response body as parsed JSON or XML */ - parsedBody: MetricDefinitionsListResult; + parsedBody: SqlUserDefinedFunctionGetResults; }; }; /** - * Contains response data for the listMetrics operation. + * Contains response data for the createUpdateSqlUserDefinedFunction operation. */ -export type CollectionListMetricsResponse = MetricListResult & { +export type SqlResourcesCreateUpdateSqlUserDefinedFunctionResponse = SqlUserDefinedFunctionGetResults & { /** * The underlying HTTP response. */ @@ -3731,14 +3940,14 @@ export type CollectionListMetricsResponse = MetricListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: MetricListResult; + parsedBody: SqlUserDefinedFunctionGetResults; }; }; /** - * Contains response data for the listUsages operation. + * Contains response data for the listSqlTriggers operation. */ -export type CollectionListUsagesResponse = UsagesResult & { +export type SqlResourcesListSqlTriggersResponse = SqlTriggerListResult & { /** * The underlying HTTP response. */ @@ -3751,14 +3960,14 @@ export type CollectionListUsagesResponse = UsagesResult & { /** * The response body as parsed JSON or XML */ - parsedBody: UsagesResult; + parsedBody: SqlTriggerListResult; }; }; /** - * Contains response data for the listMetricDefinitions operation. + * Contains response data for the getSqlTrigger operation. */ -export type CollectionListMetricDefinitionsResponse = MetricDefinitionsListResult & { +export type SqlResourcesGetSqlTriggerResponse = SqlTriggerGetResults & { /** * The underlying HTTP response. */ @@ -3771,14 +3980,14 @@ export type CollectionListMetricDefinitionsResponse = MetricDefinitionsListResul /** * The response body as parsed JSON or XML */ - parsedBody: MetricDefinitionsListResult; + parsedBody: SqlTriggerGetResults; }; }; /** - * Contains response data for the listMetrics operation. + * Contains response data for the createUpdateSqlTrigger operation. */ -export type CollectionRegionListMetricsResponse = MetricListResult & { +export type SqlResourcesCreateUpdateSqlTriggerResponse = SqlTriggerGetResults & { /** * The underlying HTTP response. */ @@ -3791,14 +4000,14 @@ export type CollectionRegionListMetricsResponse = MetricListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: MetricListResult; + parsedBody: SqlTriggerGetResults; }; }; /** - * Contains response data for the listMetrics operation. + * Contains response data for the beginCreateUpdateSqlDatabase operation. */ -export type DatabaseAccountRegionListMetricsResponse = MetricListResult & { +export type SqlResourcesBeginCreateUpdateSqlDatabaseResponse = SqlDatabaseGetResults & { /** * The underlying HTTP response. */ @@ -3811,14 +4020,14 @@ export type DatabaseAccountRegionListMetricsResponse = MetricListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: MetricListResult; + parsedBody: SqlDatabaseGetResults; }; }; /** - * Contains response data for the listMetrics operation. + * Contains response data for the beginUpdateSqlDatabaseThroughput operation. */ -export type PercentileSourceTargetListMetricsResponse = PercentileMetricListResult & { +export type SqlResourcesBeginUpdateSqlDatabaseThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -3831,14 +4040,14 @@ export type PercentileSourceTargetListMetricsResponse = PercentileMetricListResu /** * The response body as parsed JSON or XML */ - parsedBody: PercentileMetricListResult; + parsedBody: ThroughputSettingsGetResults; }; }; /** - * Contains response data for the listMetrics operation. + * Contains response data for the beginMigrateSqlDatabaseToAutoscale operation. */ -export type PercentileTargetListMetricsResponse = PercentileMetricListResult & { +export type SqlResourcesBeginMigrateSqlDatabaseToAutoscaleResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -3851,14 +4060,14 @@ export type PercentileTargetListMetricsResponse = PercentileMetricListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: PercentileMetricListResult; + parsedBody: ThroughputSettingsGetResults; }; }; /** - * Contains response data for the listMetrics operation. + * Contains response data for the beginMigrateSqlDatabaseToManualThroughput operation. */ -export type PercentileListMetricsResponse = PercentileMetricListResult & { +export type SqlResourcesBeginMigrateSqlDatabaseToManualThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -3871,14 +4080,14 @@ export type PercentileListMetricsResponse = PercentileMetricListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: PercentileMetricListResult; + parsedBody: ThroughputSettingsGetResults; }; }; /** - * Contains response data for the listMetrics operation. + * Contains response data for the beginCreateUpdateSqlContainer operation. */ -export type CollectionPartitionRegionListMetricsResponse = PartitionMetricListResult & { +export type SqlResourcesBeginCreateUpdateSqlContainerResponse = SqlContainerGetResults & { /** * The underlying HTTP response. */ @@ -3891,14 +4100,14 @@ export type CollectionPartitionRegionListMetricsResponse = PartitionMetricListRe /** * The response body as parsed JSON or XML */ - parsedBody: PartitionMetricListResult; + parsedBody: SqlContainerGetResults; }; }; /** - * Contains response data for the listMetrics operation. + * Contains response data for the beginUpdateSqlContainerThroughput operation. */ -export type CollectionPartitionListMetricsResponse = PartitionMetricListResult & { +export type SqlResourcesBeginUpdateSqlContainerThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -3911,14 +4120,14 @@ export type CollectionPartitionListMetricsResponse = PartitionMetricListResult & /** * The response body as parsed JSON or XML */ - parsedBody: PartitionMetricListResult; + parsedBody: ThroughputSettingsGetResults; }; }; /** - * Contains response data for the listUsages operation. + * Contains response data for the beginMigrateSqlContainerToAutoscale operation. */ -export type CollectionPartitionListUsagesResponse = PartitionUsagesResult & { +export type SqlResourcesBeginMigrateSqlContainerToAutoscaleResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -3931,14 +4140,14 @@ export type CollectionPartitionListUsagesResponse = PartitionUsagesResult & { /** * The response body as parsed JSON or XML */ - parsedBody: PartitionUsagesResult; + parsedBody: ThroughputSettingsGetResults; }; }; /** - * Contains response data for the listMetrics operation. + * Contains response data for the beginMigrateSqlContainerToManualThroughput operation. */ -export type PartitionKeyRangeIdListMetricsResponse = PartitionMetricListResult & { +export type SqlResourcesBeginMigrateSqlContainerToManualThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -3951,14 +4160,14 @@ export type PartitionKeyRangeIdListMetricsResponse = PartitionMetricListResult & /** * The response body as parsed JSON or XML */ - parsedBody: PartitionMetricListResult; + parsedBody: ThroughputSettingsGetResults; }; }; /** - * Contains response data for the listMetrics operation. + * Contains response data for the beginCreateUpdateSqlStoredProcedure operation. */ -export type PartitionKeyRangeIdRegionListMetricsResponse = PartitionMetricListResult & { +export type SqlResourcesBeginCreateUpdateSqlStoredProcedureResponse = SqlStoredProcedureGetResults & { /** * The underlying HTTP response. */ @@ -3971,14 +4180,14 @@ export type PartitionKeyRangeIdRegionListMetricsResponse = PartitionMetricListRe /** * The response body as parsed JSON or XML */ - parsedBody: PartitionMetricListResult; + parsedBody: SqlStoredProcedureGetResults; }; }; /** - * Contains response data for the listSqlDatabases operation. + * Contains response data for the beginCreateUpdateSqlUserDefinedFunction operation. */ -export type SqlResourcesListSqlDatabasesResponse = SqlDatabaseListResult & { +export type SqlResourcesBeginCreateUpdateSqlUserDefinedFunctionResponse = SqlUserDefinedFunctionGetResults & { /** * The underlying HTTP response. */ @@ -3991,14 +4200,14 @@ export type SqlResourcesListSqlDatabasesResponse = SqlDatabaseListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: SqlDatabaseListResult; + parsedBody: SqlUserDefinedFunctionGetResults; }; }; /** - * Contains response data for the getSqlDatabase operation. + * Contains response data for the beginCreateUpdateSqlTrigger operation. */ -export type SqlResourcesGetSqlDatabaseResponse = SqlDatabaseGetResults & { +export type SqlResourcesBeginCreateUpdateSqlTriggerResponse = SqlTriggerGetResults & { /** * The underlying HTTP response. */ @@ -4011,14 +4220,14 @@ export type SqlResourcesGetSqlDatabaseResponse = SqlDatabaseGetResults & { /** * The response body as parsed JSON or XML */ - parsedBody: SqlDatabaseGetResults; + parsedBody: SqlTriggerGetResults; }; }; /** - * Contains response data for the createUpdateSqlDatabase operation. + * Contains response data for the listMongoDBDatabases operation. */ -export type SqlResourcesCreateUpdateSqlDatabaseResponse = SqlDatabaseGetResults & { +export type MongoDBResourcesListMongoDBDatabasesResponse = MongoDBDatabaseListResult & { /** * The underlying HTTP response. */ @@ -4031,14 +4240,14 @@ export type SqlResourcesCreateUpdateSqlDatabaseResponse = SqlDatabaseGetResults /** * The response body as parsed JSON or XML */ - parsedBody: SqlDatabaseGetResults; + parsedBody: MongoDBDatabaseListResult; }; }; /** - * Contains response data for the getSqlDatabaseThroughput operation. + * Contains response data for the getMongoDBDatabase operation. */ -export type SqlResourcesGetSqlDatabaseThroughputResponse = ThroughputSettingsGetResults & { +export type MongoDBResourcesGetMongoDBDatabaseResponse = MongoDBDatabaseGetResults & { /** * The underlying HTTP response. */ @@ -4051,14 +4260,14 @@ export type SqlResourcesGetSqlDatabaseThroughputResponse = ThroughputSettingsGet /** * The response body as parsed JSON or XML */ - parsedBody: ThroughputSettingsGetResults; + parsedBody: MongoDBDatabaseGetResults; }; }; /** - * Contains response data for the updateSqlDatabaseThroughput operation. + * Contains response data for the createUpdateMongoDBDatabase operation. */ -export type SqlResourcesUpdateSqlDatabaseThroughputResponse = ThroughputSettingsGetResults & { +export type MongoDBResourcesCreateUpdateMongoDBDatabaseResponse = MongoDBDatabaseGetResults & { /** * The underlying HTTP response. */ @@ -4071,14 +4280,14 @@ export type SqlResourcesUpdateSqlDatabaseThroughputResponse = ThroughputSettings /** * The response body as parsed JSON or XML */ - parsedBody: ThroughputSettingsGetResults; + parsedBody: MongoDBDatabaseGetResults; }; }; /** - * Contains response data for the listSqlContainers operation. + * Contains response data for the getMongoDBDatabaseThroughput operation. */ -export type SqlResourcesListSqlContainersResponse = SqlContainerListResult & { +export type MongoDBResourcesGetMongoDBDatabaseThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -4091,14 +4300,14 @@ export type SqlResourcesListSqlContainersResponse = SqlContainerListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: SqlContainerListResult; + parsedBody: ThroughputSettingsGetResults; }; }; /** - * Contains response data for the getSqlContainer operation. + * Contains response data for the updateMongoDBDatabaseThroughput operation. */ -export type SqlResourcesGetSqlContainerResponse = SqlContainerGetResults & { +export type MongoDBResourcesUpdateMongoDBDatabaseThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -4111,14 +4320,14 @@ export type SqlResourcesGetSqlContainerResponse = SqlContainerGetResults & { /** * The response body as parsed JSON or XML */ - parsedBody: SqlContainerGetResults; + parsedBody: ThroughputSettingsGetResults; }; }; /** - * Contains response data for the createUpdateSqlContainer operation. + * Contains response data for the migrateMongoDBDatabaseToAutoscale operation. */ -export type SqlResourcesCreateUpdateSqlContainerResponse = SqlContainerGetResults & { +export type MongoDBResourcesMigrateMongoDBDatabaseToAutoscaleResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -4131,14 +4340,14 @@ export type SqlResourcesCreateUpdateSqlContainerResponse = SqlContainerGetResult /** * The response body as parsed JSON or XML */ - parsedBody: SqlContainerGetResults; + parsedBody: ThroughputSettingsGetResults; }; }; /** - * Contains response data for the getSqlContainerThroughput operation. + * Contains response data for the migrateMongoDBDatabaseToManualThroughput operation. */ -export type SqlResourcesGetSqlContainerThroughputResponse = ThroughputSettingsGetResults & { +export type MongoDBResourcesMigrateMongoDBDatabaseToManualThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -4156,9 +4365,9 @@ export type SqlResourcesGetSqlContainerThroughputResponse = ThroughputSettingsGe }; /** - * Contains response data for the updateSqlContainerThroughput operation. + * Contains response data for the listMongoDBCollections operation. */ -export type SqlResourcesUpdateSqlContainerThroughputResponse = ThroughputSettingsGetResults & { +export type MongoDBResourcesListMongoDBCollectionsResponse = MongoDBCollectionListResult & { /** * The underlying HTTP response. */ @@ -4171,14 +4380,14 @@ export type SqlResourcesUpdateSqlContainerThroughputResponse = ThroughputSetting /** * The response body as parsed JSON or XML */ - parsedBody: ThroughputSettingsGetResults; + parsedBody: MongoDBCollectionListResult; }; }; /** - * Contains response data for the listSqlStoredProcedures operation. + * Contains response data for the getMongoDBCollection operation. */ -export type SqlResourcesListSqlStoredProceduresResponse = SqlStoredProcedureListResult & { +export type MongoDBResourcesGetMongoDBCollectionResponse = MongoDBCollectionGetResults & { /** * The underlying HTTP response. */ @@ -4191,14 +4400,14 @@ export type SqlResourcesListSqlStoredProceduresResponse = SqlStoredProcedureList /** * The response body as parsed JSON or XML */ - parsedBody: SqlStoredProcedureListResult; + parsedBody: MongoDBCollectionGetResults; }; }; /** - * Contains response data for the getSqlStoredProcedure operation. + * Contains response data for the createUpdateMongoDBCollection operation. */ -export type SqlResourcesGetSqlStoredProcedureResponse = SqlStoredProcedureGetResults & { +export type MongoDBResourcesCreateUpdateMongoDBCollectionResponse = MongoDBCollectionGetResults & { /** * The underlying HTTP response. */ @@ -4211,14 +4420,14 @@ export type SqlResourcesGetSqlStoredProcedureResponse = SqlStoredProcedureGetRes /** * The response body as parsed JSON or XML */ - parsedBody: SqlStoredProcedureGetResults; + parsedBody: MongoDBCollectionGetResults; }; }; /** - * Contains response data for the createUpdateSqlStoredProcedure operation. + * Contains response data for the getMongoDBCollectionThroughput operation. */ -export type SqlResourcesCreateUpdateSqlStoredProcedureResponse = SqlStoredProcedureGetResults & { +export type MongoDBResourcesGetMongoDBCollectionThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -4231,14 +4440,14 @@ export type SqlResourcesCreateUpdateSqlStoredProcedureResponse = SqlStoredProced /** * The response body as parsed JSON or XML */ - parsedBody: SqlStoredProcedureGetResults; + parsedBody: ThroughputSettingsGetResults; }; }; /** - * Contains response data for the listSqlUserDefinedFunctions operation. + * Contains response data for the updateMongoDBCollectionThroughput operation. */ -export type SqlResourcesListSqlUserDefinedFunctionsResponse = SqlUserDefinedFunctionListResult & { +export type MongoDBResourcesUpdateMongoDBCollectionThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -4251,14 +4460,14 @@ export type SqlResourcesListSqlUserDefinedFunctionsResponse = SqlUserDefinedFunc /** * The response body as parsed JSON or XML */ - parsedBody: SqlUserDefinedFunctionListResult; + parsedBody: ThroughputSettingsGetResults; }; }; /** - * Contains response data for the getSqlUserDefinedFunction operation. + * Contains response data for the migrateMongoDBCollectionToAutoscale operation. */ -export type SqlResourcesGetSqlUserDefinedFunctionResponse = SqlUserDefinedFunctionGetResults & { +export type MongoDBResourcesMigrateMongoDBCollectionToAutoscaleResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -4271,14 +4480,14 @@ export type SqlResourcesGetSqlUserDefinedFunctionResponse = SqlUserDefinedFuncti /** * The response body as parsed JSON or XML */ - parsedBody: SqlUserDefinedFunctionGetResults; + parsedBody: ThroughputSettingsGetResults; }; }; /** - * Contains response data for the createUpdateSqlUserDefinedFunction operation. + * Contains response data for the migrateMongoDBCollectionToManualThroughput operation. */ -export type SqlResourcesCreateUpdateSqlUserDefinedFunctionResponse = SqlUserDefinedFunctionGetResults & { +export type MongoDBResourcesMigrateMongoDBCollectionToManualThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -4291,14 +4500,14 @@ export type SqlResourcesCreateUpdateSqlUserDefinedFunctionResponse = SqlUserDefi /** * The response body as parsed JSON or XML */ - parsedBody: SqlUserDefinedFunctionGetResults; + parsedBody: ThroughputSettingsGetResults; }; }; /** - * Contains response data for the listSqlTriggers operation. + * Contains response data for the beginCreateUpdateMongoDBDatabase operation. */ -export type SqlResourcesListSqlTriggersResponse = SqlTriggerListResult & { +export type MongoDBResourcesBeginCreateUpdateMongoDBDatabaseResponse = MongoDBDatabaseGetResults & { /** * The underlying HTTP response. */ @@ -4311,14 +4520,14 @@ export type SqlResourcesListSqlTriggersResponse = SqlTriggerListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: SqlTriggerListResult; + parsedBody: MongoDBDatabaseGetResults; }; }; /** - * Contains response data for the getSqlTrigger operation. + * Contains response data for the beginUpdateMongoDBDatabaseThroughput operation. */ -export type SqlResourcesGetSqlTriggerResponse = SqlTriggerGetResults & { +export type MongoDBResourcesBeginUpdateMongoDBDatabaseThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -4331,14 +4540,14 @@ export type SqlResourcesGetSqlTriggerResponse = SqlTriggerGetResults & { /** * The response body as parsed JSON or XML */ - parsedBody: SqlTriggerGetResults; + parsedBody: ThroughputSettingsGetResults; }; }; /** - * Contains response data for the createUpdateSqlTrigger operation. + * Contains response data for the beginMigrateMongoDBDatabaseToAutoscale operation. */ -export type SqlResourcesCreateUpdateSqlTriggerResponse = SqlTriggerGetResults & { +export type MongoDBResourcesBeginMigrateMongoDBDatabaseToAutoscaleResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -4351,14 +4560,14 @@ export type SqlResourcesCreateUpdateSqlTriggerResponse = SqlTriggerGetResults & /** * The response body as parsed JSON or XML */ - parsedBody: SqlTriggerGetResults; + parsedBody: ThroughputSettingsGetResults; }; }; /** - * Contains response data for the beginCreateUpdateSqlDatabase operation. + * Contains response data for the beginMigrateMongoDBDatabaseToManualThroughput operation. */ -export type SqlResourcesBeginCreateUpdateSqlDatabaseResponse = SqlDatabaseGetResults & { +export type MongoDBResourcesBeginMigrateMongoDBDatabaseToManualThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -4371,14 +4580,14 @@ export type SqlResourcesBeginCreateUpdateSqlDatabaseResponse = SqlDatabaseGetRes /** * The response body as parsed JSON or XML */ - parsedBody: SqlDatabaseGetResults; + parsedBody: ThroughputSettingsGetResults; }; }; /** - * Contains response data for the beginUpdateSqlDatabaseThroughput operation. + * Contains response data for the beginCreateUpdateMongoDBCollection operation. */ -export type SqlResourcesBeginUpdateSqlDatabaseThroughputResponse = ThroughputSettingsGetResults & { +export type MongoDBResourcesBeginCreateUpdateMongoDBCollectionResponse = MongoDBCollectionGetResults & { /** * The underlying HTTP response. */ @@ -4391,14 +4600,14 @@ export type SqlResourcesBeginUpdateSqlDatabaseThroughputResponse = ThroughputSet /** * The response body as parsed JSON or XML */ - parsedBody: ThroughputSettingsGetResults; + parsedBody: MongoDBCollectionGetResults; }; }; /** - * Contains response data for the beginCreateUpdateSqlContainer operation. + * Contains response data for the beginUpdateMongoDBCollectionThroughput operation. */ -export type SqlResourcesBeginCreateUpdateSqlContainerResponse = SqlContainerGetResults & { +export type MongoDBResourcesBeginUpdateMongoDBCollectionThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -4411,14 +4620,14 @@ export type SqlResourcesBeginCreateUpdateSqlContainerResponse = SqlContainerGetR /** * The response body as parsed JSON or XML */ - parsedBody: SqlContainerGetResults; + parsedBody: ThroughputSettingsGetResults; }; }; /** - * Contains response data for the beginUpdateSqlContainerThroughput operation. + * Contains response data for the beginMigrateMongoDBCollectionToAutoscale operation. */ -export type SqlResourcesBeginUpdateSqlContainerThroughputResponse = ThroughputSettingsGetResults & { +export type MongoDBResourcesBeginMigrateMongoDBCollectionToAutoscaleResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -4436,9 +4645,9 @@ export type SqlResourcesBeginUpdateSqlContainerThroughputResponse = ThroughputSe }; /** - * Contains response data for the beginCreateUpdateSqlStoredProcedure operation. + * Contains response data for the beginMigrateMongoDBCollectionToManualThroughput operation. */ -export type SqlResourcesBeginCreateUpdateSqlStoredProcedureResponse = SqlStoredProcedureGetResults & { +export type MongoDBResourcesBeginMigrateMongoDBCollectionToManualThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -4451,14 +4660,14 @@ export type SqlResourcesBeginCreateUpdateSqlStoredProcedureResponse = SqlStoredP /** * The response body as parsed JSON or XML */ - parsedBody: SqlStoredProcedureGetResults; + parsedBody: ThroughputSettingsGetResults; }; }; /** - * Contains response data for the beginCreateUpdateSqlUserDefinedFunction operation. + * Contains response data for the listTables operation. */ -export type SqlResourcesBeginCreateUpdateSqlUserDefinedFunctionResponse = SqlUserDefinedFunctionGetResults & { +export type TableResourcesListTablesResponse = TableListResult & { /** * The underlying HTTP response. */ @@ -4471,14 +4680,14 @@ export type SqlResourcesBeginCreateUpdateSqlUserDefinedFunctionResponse = SqlUse /** * The response body as parsed JSON or XML */ - parsedBody: SqlUserDefinedFunctionGetResults; + parsedBody: TableListResult; }; }; /** - * Contains response data for the beginCreateUpdateSqlTrigger operation. + * Contains response data for the getTable operation. */ -export type SqlResourcesBeginCreateUpdateSqlTriggerResponse = SqlTriggerGetResults & { +export type TableResourcesGetTableResponse = TableGetResults & { /** * The underlying HTTP response. */ @@ -4491,14 +4700,14 @@ export type SqlResourcesBeginCreateUpdateSqlTriggerResponse = SqlTriggerGetResul /** * The response body as parsed JSON or XML */ - parsedBody: SqlTriggerGetResults; + parsedBody: TableGetResults; }; }; /** - * Contains response data for the listMongoDBDatabases operation. + * Contains response data for the createUpdateTable operation. */ -export type MongoDBResourcesListMongoDBDatabasesResponse = MongoDBDatabaseListResult & { +export type TableResourcesCreateUpdateTableResponse = TableGetResults & { /** * The underlying HTTP response. */ @@ -4511,14 +4720,14 @@ export type MongoDBResourcesListMongoDBDatabasesResponse = MongoDBDatabaseListRe /** * The response body as parsed JSON or XML */ - parsedBody: MongoDBDatabaseListResult; + parsedBody: TableGetResults; }; }; /** - * Contains response data for the getMongoDBDatabase operation. + * Contains response data for the getTableThroughput operation. */ -export type MongoDBResourcesGetMongoDBDatabaseResponse = MongoDBDatabaseGetResults & { +export type TableResourcesGetTableThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -4531,14 +4740,14 @@ export type MongoDBResourcesGetMongoDBDatabaseResponse = MongoDBDatabaseGetResul /** * The response body as parsed JSON or XML */ - parsedBody: MongoDBDatabaseGetResults; + parsedBody: ThroughputSettingsGetResults; }; }; /** - * Contains response data for the createUpdateMongoDBDatabase operation. + * Contains response data for the updateTableThroughput operation. */ -export type MongoDBResourcesCreateUpdateMongoDBDatabaseResponse = MongoDBDatabaseGetResults & { +export type TableResourcesUpdateTableThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -4551,14 +4760,14 @@ export type MongoDBResourcesCreateUpdateMongoDBDatabaseResponse = MongoDBDatabas /** * The response body as parsed JSON or XML */ - parsedBody: MongoDBDatabaseGetResults; + parsedBody: ThroughputSettingsGetResults; }; }; /** - * Contains response data for the getMongoDBDatabaseThroughput operation. + * Contains response data for the migrateTableToAutoscale operation. */ -export type MongoDBResourcesGetMongoDBDatabaseThroughputResponse = ThroughputSettingsGetResults & { +export type TableResourcesMigrateTableToAutoscaleResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -4576,9 +4785,9 @@ export type MongoDBResourcesGetMongoDBDatabaseThroughputResponse = ThroughputSet }; /** - * Contains response data for the updateMongoDBDatabaseThroughput operation. + * Contains response data for the migrateTableToManualThroughput operation. */ -export type MongoDBResourcesUpdateMongoDBDatabaseThroughputResponse = ThroughputSettingsGetResults & { +export type TableResourcesMigrateTableToManualThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -4596,9 +4805,9 @@ export type MongoDBResourcesUpdateMongoDBDatabaseThroughputResponse = Throughput }; /** - * Contains response data for the listMongoDBCollections operation. + * Contains response data for the beginCreateUpdateTable operation. */ -export type MongoDBResourcesListMongoDBCollectionsResponse = MongoDBCollectionListResult & { +export type TableResourcesBeginCreateUpdateTableResponse = TableGetResults & { /** * The underlying HTTP response. */ @@ -4611,14 +4820,14 @@ export type MongoDBResourcesListMongoDBCollectionsResponse = MongoDBCollectionLi /** * The response body as parsed JSON or XML */ - parsedBody: MongoDBCollectionListResult; + parsedBody: TableGetResults; }; }; /** - * Contains response data for the getMongoDBCollection operation. + * Contains response data for the beginUpdateTableThroughput operation. */ -export type MongoDBResourcesGetMongoDBCollectionResponse = MongoDBCollectionGetResults & { +export type TableResourcesBeginUpdateTableThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -4631,14 +4840,14 @@ export type MongoDBResourcesGetMongoDBCollectionResponse = MongoDBCollectionGetR /** * The response body as parsed JSON or XML */ - parsedBody: MongoDBCollectionGetResults; + parsedBody: ThroughputSettingsGetResults; }; }; /** - * Contains response data for the createUpdateMongoDBCollection operation. + * Contains response data for the beginMigrateTableToAutoscale operation. */ -export type MongoDBResourcesCreateUpdateMongoDBCollectionResponse = MongoDBCollectionGetResults & { +export type TableResourcesBeginMigrateTableToAutoscaleResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -4651,14 +4860,14 @@ export type MongoDBResourcesCreateUpdateMongoDBCollectionResponse = MongoDBColle /** * The response body as parsed JSON or XML */ - parsedBody: MongoDBCollectionGetResults; + parsedBody: ThroughputSettingsGetResults; }; }; /** - * Contains response data for the getMongoDBCollectionThroughput operation. + * Contains response data for the beginMigrateTableToManualThroughput operation. */ -export type MongoDBResourcesGetMongoDBCollectionThroughputResponse = ThroughputSettingsGetResults & { +export type TableResourcesBeginMigrateTableToManualThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -4676,9 +4885,9 @@ export type MongoDBResourcesGetMongoDBCollectionThroughputResponse = ThroughputS }; /** - * Contains response data for the updateMongoDBCollectionThroughput operation. + * Contains response data for the listCassandraKeyspaces operation. */ -export type MongoDBResourcesUpdateMongoDBCollectionThroughputResponse = ThroughputSettingsGetResults & { +export type CassandraResourcesListCassandraKeyspacesResponse = CassandraKeyspaceListResult & { /** * The underlying HTTP response. */ @@ -4691,14 +4900,14 @@ export type MongoDBResourcesUpdateMongoDBCollectionThroughputResponse = Throughp /** * The response body as parsed JSON or XML */ - parsedBody: ThroughputSettingsGetResults; + parsedBody: CassandraKeyspaceListResult; }; }; /** - * Contains response data for the beginCreateUpdateMongoDBDatabase operation. + * Contains response data for the getCassandraKeyspace operation. */ -export type MongoDBResourcesBeginCreateUpdateMongoDBDatabaseResponse = MongoDBDatabaseGetResults & { +export type CassandraResourcesGetCassandraKeyspaceResponse = CassandraKeyspaceGetResults & { /** * The underlying HTTP response. */ @@ -4711,14 +4920,14 @@ export type MongoDBResourcesBeginCreateUpdateMongoDBDatabaseResponse = MongoDBDa /** * The response body as parsed JSON or XML */ - parsedBody: MongoDBDatabaseGetResults; + parsedBody: CassandraKeyspaceGetResults; }; }; /** - * Contains response data for the beginUpdateMongoDBDatabaseThroughput operation. + * Contains response data for the createUpdateCassandraKeyspace operation. */ -export type MongoDBResourcesBeginUpdateMongoDBDatabaseThroughputResponse = ThroughputSettingsGetResults & { +export type CassandraResourcesCreateUpdateCassandraKeyspaceResponse = CassandraKeyspaceGetResults & { /** * The underlying HTTP response. */ @@ -4731,14 +4940,14 @@ export type MongoDBResourcesBeginUpdateMongoDBDatabaseThroughputResponse = Throu /** * The response body as parsed JSON or XML */ - parsedBody: ThroughputSettingsGetResults; + parsedBody: CassandraKeyspaceGetResults; }; }; /** - * Contains response data for the beginCreateUpdateMongoDBCollection operation. + * Contains response data for the getCassandraKeyspaceThroughput operation. */ -export type MongoDBResourcesBeginCreateUpdateMongoDBCollectionResponse = MongoDBCollectionGetResults & { +export type CassandraResourcesGetCassandraKeyspaceThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -4751,14 +4960,14 @@ export type MongoDBResourcesBeginCreateUpdateMongoDBCollectionResponse = MongoDB /** * The response body as parsed JSON or XML */ - parsedBody: MongoDBCollectionGetResults; + parsedBody: ThroughputSettingsGetResults; }; }; /** - * Contains response data for the beginUpdateMongoDBCollectionThroughput operation. + * Contains response data for the updateCassandraKeyspaceThroughput operation. */ -export type MongoDBResourcesBeginUpdateMongoDBCollectionThroughputResponse = ThroughputSettingsGetResults & { +export type CassandraResourcesUpdateCassandraKeyspaceThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -4776,9 +4985,9 @@ export type MongoDBResourcesBeginUpdateMongoDBCollectionThroughputResponse = Thr }; /** - * Contains response data for the listTables operation. + * Contains response data for the migrateCassandraKeyspaceToAutoscale operation. */ -export type TableResourcesListTablesResponse = TableListResult & { +export type CassandraResourcesMigrateCassandraKeyspaceToAutoscaleResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -4791,14 +5000,14 @@ export type TableResourcesListTablesResponse = TableListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: TableListResult; + parsedBody: ThroughputSettingsGetResults; }; }; /** - * Contains response data for the getTable operation. + * Contains response data for the migrateCassandraKeyspaceToManualThroughput operation. */ -export type TableResourcesGetTableResponse = TableGetResults & { +export type CassandraResourcesMigrateCassandraKeyspaceToManualThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -4811,14 +5020,14 @@ export type TableResourcesGetTableResponse = TableGetResults & { /** * The response body as parsed JSON or XML */ - parsedBody: TableGetResults; + parsedBody: ThroughputSettingsGetResults; }; }; /** - * Contains response data for the createUpdateTable operation. + * Contains response data for the listCassandraTables operation. */ -export type TableResourcesCreateUpdateTableResponse = TableGetResults & { +export type CassandraResourcesListCassandraTablesResponse = CassandraTableListResult & { /** * The underlying HTTP response. */ @@ -4831,14 +5040,14 @@ export type TableResourcesCreateUpdateTableResponse = TableGetResults & { /** * The response body as parsed JSON or XML */ - parsedBody: TableGetResults; + parsedBody: CassandraTableListResult; }; }; /** - * Contains response data for the getTableThroughput operation. + * Contains response data for the getCassandraTable operation. */ -export type TableResourcesGetTableThroughputResponse = ThroughputSettingsGetResults & { +export type CassandraResourcesGetCassandraTableResponse = CassandraTableGetResults & { /** * The underlying HTTP response. */ @@ -4851,14 +5060,14 @@ export type TableResourcesGetTableThroughputResponse = ThroughputSettingsGetResu /** * The response body as parsed JSON or XML */ - parsedBody: ThroughputSettingsGetResults; + parsedBody: CassandraTableGetResults; }; }; /** - * Contains response data for the updateTableThroughput operation. + * Contains response data for the createUpdateCassandraTable operation. */ -export type TableResourcesUpdateTableThroughputResponse = ThroughputSettingsGetResults & { +export type CassandraResourcesCreateUpdateCassandraTableResponse = CassandraTableGetResults & { /** * The underlying HTTP response. */ @@ -4871,14 +5080,14 @@ export type TableResourcesUpdateTableThroughputResponse = ThroughputSettingsGetR /** * The response body as parsed JSON or XML */ - parsedBody: ThroughputSettingsGetResults; + parsedBody: CassandraTableGetResults; }; }; /** - * Contains response data for the beginCreateUpdateTable operation. + * Contains response data for the getCassandraTableThroughput operation. */ -export type TableResourcesBeginCreateUpdateTableResponse = TableGetResults & { +export type CassandraResourcesGetCassandraTableThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -4891,14 +5100,14 @@ export type TableResourcesBeginCreateUpdateTableResponse = TableGetResults & { /** * The response body as parsed JSON or XML */ - parsedBody: TableGetResults; + parsedBody: ThroughputSettingsGetResults; }; }; /** - * Contains response data for the beginUpdateTableThroughput operation. + * Contains response data for the updateCassandraTableThroughput operation. */ -export type TableResourcesBeginUpdateTableThroughputResponse = ThroughputSettingsGetResults & { +export type CassandraResourcesUpdateCassandraTableThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -4916,9 +5125,9 @@ export type TableResourcesBeginUpdateTableThroughputResponse = ThroughputSetting }; /** - * Contains response data for the listCassandraKeyspaces operation. + * Contains response data for the migrateCassandraTableToAutoscale operation. */ -export type CassandraResourcesListCassandraKeyspacesResponse = CassandraKeyspaceListResult & { +export type CassandraResourcesMigrateCassandraTableToAutoscaleResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -4931,14 +5140,14 @@ export type CassandraResourcesListCassandraKeyspacesResponse = CassandraKeyspace /** * The response body as parsed JSON or XML */ - parsedBody: CassandraKeyspaceListResult; + parsedBody: ThroughputSettingsGetResults; }; }; /** - * Contains response data for the getCassandraKeyspace operation. + * Contains response data for the migrateCassandraTableToManualThroughput operation. */ -export type CassandraResourcesGetCassandraKeyspaceResponse = CassandraKeyspaceGetResults & { +export type CassandraResourcesMigrateCassandraTableToManualThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -4951,14 +5160,14 @@ export type CassandraResourcesGetCassandraKeyspaceResponse = CassandraKeyspaceGe /** * The response body as parsed JSON or XML */ - parsedBody: CassandraKeyspaceGetResults; + parsedBody: ThroughputSettingsGetResults; }; }; /** - * Contains response data for the createUpdateCassandraKeyspace operation. + * Contains response data for the beginCreateUpdateCassandraKeyspace operation. */ -export type CassandraResourcesCreateUpdateCassandraKeyspaceResponse = CassandraKeyspaceGetResults & { +export type CassandraResourcesBeginCreateUpdateCassandraKeyspaceResponse = CassandraKeyspaceGetResults & { /** * The underlying HTTP response. */ @@ -4976,9 +5185,9 @@ export type CassandraResourcesCreateUpdateCassandraKeyspaceResponse = CassandraK }; /** - * Contains response data for the getCassandraKeyspaceThroughput operation. + * Contains response data for the beginUpdateCassandraKeyspaceThroughput operation. */ -export type CassandraResourcesGetCassandraKeyspaceThroughputResponse = ThroughputSettingsGetResults & { +export type CassandraResourcesBeginUpdateCassandraKeyspaceThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -4996,9 +5205,9 @@ export type CassandraResourcesGetCassandraKeyspaceThroughputResponse = Throughpu }; /** - * Contains response data for the updateCassandraKeyspaceThroughput operation. + * Contains response data for the beginMigrateCassandraKeyspaceToAutoscale operation. */ -export type CassandraResourcesUpdateCassandraKeyspaceThroughputResponse = ThroughputSettingsGetResults & { +export type CassandraResourcesBeginMigrateCassandraKeyspaceToAutoscaleResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -5016,9 +5225,9 @@ export type CassandraResourcesUpdateCassandraKeyspaceThroughputResponse = Throug }; /** - * Contains response data for the listCassandraTables operation. + * Contains response data for the beginMigrateCassandraKeyspaceToManualThroughput operation. */ -export type CassandraResourcesListCassandraTablesResponse = CassandraTableListResult & { +export type CassandraResourcesBeginMigrateCassandraKeyspaceToManualThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -5031,14 +5240,14 @@ export type CassandraResourcesListCassandraTablesResponse = CassandraTableListRe /** * The response body as parsed JSON or XML */ - parsedBody: CassandraTableListResult; + parsedBody: ThroughputSettingsGetResults; }; }; /** - * Contains response data for the getCassandraTable operation. + * Contains response data for the beginCreateUpdateCassandraTable operation. */ -export type CassandraResourcesGetCassandraTableResponse = CassandraTableGetResults & { +export type CassandraResourcesBeginCreateUpdateCassandraTableResponse = CassandraTableGetResults & { /** * The underlying HTTP response. */ @@ -5056,9 +5265,9 @@ export type CassandraResourcesGetCassandraTableResponse = CassandraTableGetResul }; /** - * Contains response data for the createUpdateCassandraTable operation. + * Contains response data for the beginUpdateCassandraTableThroughput operation. */ -export type CassandraResourcesCreateUpdateCassandraTableResponse = CassandraTableGetResults & { +export type CassandraResourcesBeginUpdateCassandraTableThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -5071,14 +5280,14 @@ export type CassandraResourcesCreateUpdateCassandraTableResponse = CassandraTabl /** * The response body as parsed JSON or XML */ - parsedBody: CassandraTableGetResults; + parsedBody: ThroughputSettingsGetResults; }; }; /** - * Contains response data for the getCassandraTableThroughput operation. + * Contains response data for the beginMigrateCassandraTableToAutoscale operation. */ -export type CassandraResourcesGetCassandraTableThroughputResponse = ThroughputSettingsGetResults & { +export type CassandraResourcesBeginMigrateCassandraTableToAutoscaleResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -5096,9 +5305,9 @@ export type CassandraResourcesGetCassandraTableThroughputResponse = ThroughputSe }; /** - * Contains response data for the updateCassandraTableThroughput operation. + * Contains response data for the beginMigrateCassandraTableToManualThroughput operation. */ -export type CassandraResourcesUpdateCassandraTableThroughputResponse = ThroughputSettingsGetResults & { +export type CassandraResourcesBeginMigrateCassandraTableToManualThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -5116,9 +5325,9 @@ export type CassandraResourcesUpdateCassandraTableThroughputResponse = Throughpu }; /** - * Contains response data for the beginCreateUpdateCassandraKeyspace operation. + * Contains response data for the listGremlinDatabases operation. */ -export type CassandraResourcesBeginCreateUpdateCassandraKeyspaceResponse = CassandraKeyspaceGetResults & { +export type GremlinResourcesListGremlinDatabasesResponse = GremlinDatabaseListResult & { /** * The underlying HTTP response. */ @@ -5131,14 +5340,14 @@ export type CassandraResourcesBeginCreateUpdateCassandraKeyspaceResponse = Cassa /** * The response body as parsed JSON or XML */ - parsedBody: CassandraKeyspaceGetResults; + parsedBody: GremlinDatabaseListResult; }; }; /** - * Contains response data for the beginUpdateCassandraKeyspaceThroughput operation. + * Contains response data for the getGremlinDatabase operation. */ -export type CassandraResourcesBeginUpdateCassandraKeyspaceThroughputResponse = ThroughputSettingsGetResults & { +export type GremlinResourcesGetGremlinDatabaseResponse = GremlinDatabaseGetResults & { /** * The underlying HTTP response. */ @@ -5151,14 +5360,14 @@ export type CassandraResourcesBeginUpdateCassandraKeyspaceThroughputResponse = T /** * The response body as parsed JSON or XML */ - parsedBody: ThroughputSettingsGetResults; + parsedBody: GremlinDatabaseGetResults; }; }; /** - * Contains response data for the beginCreateUpdateCassandraTable operation. + * Contains response data for the createUpdateGremlinDatabase operation. */ -export type CassandraResourcesBeginCreateUpdateCassandraTableResponse = CassandraTableGetResults & { +export type GremlinResourcesCreateUpdateGremlinDatabaseResponse = GremlinDatabaseGetResults & { /** * The underlying HTTP response. */ @@ -5171,14 +5380,14 @@ export type CassandraResourcesBeginCreateUpdateCassandraTableResponse = Cassandr /** * The response body as parsed JSON or XML */ - parsedBody: CassandraTableGetResults; + parsedBody: GremlinDatabaseGetResults; }; }; /** - * Contains response data for the beginUpdateCassandraTableThroughput operation. + * Contains response data for the getGremlinDatabaseThroughput operation. */ -export type CassandraResourcesBeginUpdateCassandraTableThroughputResponse = ThroughputSettingsGetResults & { +export type GremlinResourcesGetGremlinDatabaseThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -5196,9 +5405,9 @@ export type CassandraResourcesBeginUpdateCassandraTableThroughputResponse = Thro }; /** - * Contains response data for the listGremlinDatabases operation. + * Contains response data for the updateGremlinDatabaseThroughput operation. */ -export type GremlinResourcesListGremlinDatabasesResponse = GremlinDatabaseListResult & { +export type GremlinResourcesUpdateGremlinDatabaseThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -5211,14 +5420,14 @@ export type GremlinResourcesListGremlinDatabasesResponse = GremlinDatabaseListRe /** * The response body as parsed JSON or XML */ - parsedBody: GremlinDatabaseListResult; + parsedBody: ThroughputSettingsGetResults; }; }; /** - * Contains response data for the getGremlinDatabase operation. + * Contains response data for the migrateGremlinDatabaseToAutoscale operation. */ -export type GremlinResourcesGetGremlinDatabaseResponse = GremlinDatabaseGetResults & { +export type GremlinResourcesMigrateGremlinDatabaseToAutoscaleResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -5231,14 +5440,14 @@ export type GremlinResourcesGetGremlinDatabaseResponse = GremlinDatabaseGetResul /** * The response body as parsed JSON or XML */ - parsedBody: GremlinDatabaseGetResults; + parsedBody: ThroughputSettingsGetResults; }; }; /** - * Contains response data for the createUpdateGremlinDatabase operation. + * Contains response data for the migrateGremlinDatabaseToManualThroughput operation. */ -export type GremlinResourcesCreateUpdateGremlinDatabaseResponse = GremlinDatabaseGetResults & { +export type GremlinResourcesMigrateGremlinDatabaseToManualThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -5251,14 +5460,14 @@ export type GremlinResourcesCreateUpdateGremlinDatabaseResponse = GremlinDatabas /** * The response body as parsed JSON or XML */ - parsedBody: GremlinDatabaseGetResults; + parsedBody: ThroughputSettingsGetResults; }; }; /** - * Contains response data for the getGremlinDatabaseThroughput operation. + * Contains response data for the listGremlinGraphs operation. */ -export type GremlinResourcesGetGremlinDatabaseThroughputResponse = ThroughputSettingsGetResults & { +export type GremlinResourcesListGremlinGraphsResponse = GremlinGraphListResult & { /** * The underlying HTTP response. */ @@ -5271,14 +5480,14 @@ export type GremlinResourcesGetGremlinDatabaseThroughputResponse = ThroughputSet /** * The response body as parsed JSON or XML */ - parsedBody: ThroughputSettingsGetResults; + parsedBody: GremlinGraphListResult; }; }; /** - * Contains response data for the updateGremlinDatabaseThroughput operation. + * Contains response data for the getGremlinGraph operation. */ -export type GremlinResourcesUpdateGremlinDatabaseThroughputResponse = ThroughputSettingsGetResults & { +export type GremlinResourcesGetGremlinGraphResponse = GremlinGraphGetResults & { /** * The underlying HTTP response. */ @@ -5291,14 +5500,14 @@ export type GremlinResourcesUpdateGremlinDatabaseThroughputResponse = Throughput /** * The response body as parsed JSON or XML */ - parsedBody: ThroughputSettingsGetResults; + parsedBody: GremlinGraphGetResults; }; }; /** - * Contains response data for the listGremlinGraphs operation. + * Contains response data for the createUpdateGremlinGraph operation. */ -export type GremlinResourcesListGremlinGraphsResponse = GremlinGraphListResult & { +export type GremlinResourcesCreateUpdateGremlinGraphResponse = GremlinGraphGetResults & { /** * The underlying HTTP response. */ @@ -5311,14 +5520,14 @@ export type GremlinResourcesListGremlinGraphsResponse = GremlinGraphListResult & /** * The response body as parsed JSON or XML */ - parsedBody: GremlinGraphListResult; + parsedBody: GremlinGraphGetResults; }; }; /** - * Contains response data for the getGremlinGraph operation. + * Contains response data for the getGremlinGraphThroughput operation. */ -export type GremlinResourcesGetGremlinGraphResponse = GremlinGraphGetResults & { +export type GremlinResourcesGetGremlinGraphThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -5331,14 +5540,14 @@ export type GremlinResourcesGetGremlinGraphResponse = GremlinGraphGetResults & { /** * The response body as parsed JSON or XML */ - parsedBody: GremlinGraphGetResults; + parsedBody: ThroughputSettingsGetResults; }; }; /** - * Contains response data for the createUpdateGremlinGraph operation. + * Contains response data for the updateGremlinGraphThroughput operation. */ -export type GremlinResourcesCreateUpdateGremlinGraphResponse = GremlinGraphGetResults & { +export type GremlinResourcesUpdateGremlinGraphThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -5351,14 +5560,14 @@ export type GremlinResourcesCreateUpdateGremlinGraphResponse = GremlinGraphGetRe /** * The response body as parsed JSON or XML */ - parsedBody: GremlinGraphGetResults; + parsedBody: ThroughputSettingsGetResults; }; }; /** - * Contains response data for the getGremlinGraphThroughput operation. + * Contains response data for the migrateGremlinGraphToAutoscale operation. */ -export type GremlinResourcesGetGremlinGraphThroughputResponse = ThroughputSettingsGetResults & { +export type GremlinResourcesMigrateGremlinGraphToAutoscaleResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -5376,9 +5585,9 @@ export type GremlinResourcesGetGremlinGraphThroughputResponse = ThroughputSettin }; /** - * Contains response data for the updateGremlinGraphThroughput operation. + * Contains response data for the migrateGremlinGraphToManualThroughput operation. */ -export type GremlinResourcesUpdateGremlinGraphThroughputResponse = ThroughputSettingsGetResults & { +export type GremlinResourcesMigrateGremlinGraphToManualThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -5436,9 +5645,9 @@ export type GremlinResourcesBeginUpdateGremlinDatabaseThroughputResponse = Throu }; /** - * Contains response data for the beginCreateUpdateGremlinGraph operation. + * Contains response data for the beginMigrateGremlinDatabaseToAutoscale operation. */ -export type GremlinResourcesBeginCreateUpdateGremlinGraphResponse = GremlinGraphGetResults & { +export type GremlinResourcesBeginMigrateGremlinDatabaseToAutoscaleResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -5451,14 +5660,14 @@ export type GremlinResourcesBeginCreateUpdateGremlinGraphResponse = GremlinGraph /** * The response body as parsed JSON or XML */ - parsedBody: GremlinGraphGetResults; + parsedBody: ThroughputSettingsGetResults; }; }; /** - * Contains response data for the beginUpdateGremlinGraphThroughput operation. + * Contains response data for the beginMigrateGremlinDatabaseToManualThroughput operation. */ -export type GremlinResourcesBeginUpdateGremlinGraphThroughputResponse = ThroughputSettingsGetResults & { +export type GremlinResourcesBeginMigrateGremlinDatabaseToManualThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -5476,9 +5685,9 @@ export type GremlinResourcesBeginUpdateGremlinGraphThroughputResponse = Throughp }; /** - * Contains response data for the listByLocation operation. + * Contains response data for the beginCreateUpdateGremlinGraph operation. */ -export type RestorableDatabaseAccountsListByLocationResponse = RestorableDatabaseAccountsListResult & { +export type GremlinResourcesBeginCreateUpdateGremlinGraphResponse = GremlinGraphGetResults & { /** * The underlying HTTP response. */ @@ -5491,14 +5700,34 @@ export type RestorableDatabaseAccountsListByLocationResponse = RestorableDatabas /** * The response body as parsed JSON or XML */ - parsedBody: RestorableDatabaseAccountsListResult; + parsedBody: GremlinGraphGetResults; }; }; /** - * Contains response data for the list operation. + * Contains response data for the beginUpdateGremlinGraphThroughput operation. + */ +export type GremlinResourcesBeginUpdateGremlinGraphThroughputResponse = ThroughputSettingsGetResults & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: ThroughputSettingsGetResults; + }; +}; + +/** + * Contains response data for the beginMigrateGremlinGraphToAutoscale operation. */ -export type RestorableDatabaseAccountsListResponse = RestorableDatabaseAccountsListResult & { +export type GremlinResourcesBeginMigrateGremlinGraphToAutoscaleResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -5511,14 +5740,14 @@ export type RestorableDatabaseAccountsListResponse = RestorableDatabaseAccountsL /** * The response body as parsed JSON or XML */ - parsedBody: RestorableDatabaseAccountsListResult; + parsedBody: ThroughputSettingsGetResults; }; }; /** - * Contains response data for the getByLocation operation. + * Contains response data for the beginMigrateGremlinGraphToManualThroughput operation. */ -export type RestorableDatabaseAccountsGetByLocationResponse = RestorableDatabaseAccountGetResult & { +export type GremlinResourcesBeginMigrateGremlinGraphToManualThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -5531,7 +5760,7 @@ export type RestorableDatabaseAccountsGetByLocationResponse = RestorableDatabase /** * The response body as parsed JSON or XML */ - parsedBody: RestorableDatabaseAccountGetResult; + parsedBody: ThroughputSettingsGetResults; }; }; diff --git a/sdk/cosmosdb/arm-cosmosdb/src/models/mappers.ts b/sdk/cosmosdb/arm-cosmosdb/src/models/mappers.ts index 2d46ea0ecbc2..ca81adfe92c1 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/models/mappers.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/models/mappers.ts @@ -333,95 +333,6 @@ export const ApiProperties: msRest.CompositeMapper = { } }; -export const DatabaseRestoreResource: msRest.CompositeMapper = { - serializedName: "DatabaseRestoreResource", - type: { - name: "Composite", - className: "DatabaseRestoreResource", - modelProperties: { - databaseName: { - serializedName: "databaseName", - type: { - name: "String" - } - }, - collectionNames: { - serializedName: "collectionNames", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - } - } - } -}; - -export const RestoreParameters: msRest.CompositeMapper = { - serializedName: "RestoreParameters", - type: { - name: "Composite", - className: "RestoreParameters", - modelProperties: { - restoreMode: { - serializedName: "restoreMode", - type: { - name: "String" - } - }, - restoreSource: { - serializedName: "restoreSource", - type: { - name: "String" - } - }, - restoreTimestampInUtc: { - serializedName: "restoreTimestampInUtc", - type: { - name: "DateTime" - } - }, - databasesToRestore: { - serializedName: "databasesToRestore", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "DatabaseRestoreResource" - } - } - } - } - } - } -}; - -export const BackupPolicy: msRest.CompositeMapper = { - serializedName: "BackupPolicy", - type: { - name: "Composite", - polymorphicDiscriminator: { - serializedName: "type", - clientName: "type" - }, - uberParent: "BackupPolicy", - className: "BackupPolicy", - modelProperties: { - type: { - required: true, - serializedName: "type", - type: { - name: "String" - } - } - } - } -}; - export const CorsPolicy: msRest.CompositeMapper = { serializedName: "CorsPolicy", type: { @@ -467,52 +378,6 @@ export const CorsPolicy: msRest.CompositeMapper = { } }; -export const SystemData: msRest.CompositeMapper = { - serializedName: "systemData", - type: { - name: "Composite", - className: "SystemData", - modelProperties: { - createdBy: { - serializedName: "createdBy", - type: { - name: "String" - } - }, - createdByType: { - serializedName: "createdByType", - type: { - name: "String" - } - }, - createdAt: { - serializedName: "createdAt", - type: { - name: "DateTime" - } - }, - lastModifiedBy: { - serializedName: "lastModifiedBy", - type: { - name: "String" - } - }, - lastModifiedByType: { - serializedName: "lastModifiedByType", - type: { - name: "String" - } - }, - lastModifiedAt: { - serializedName: "lastModifiedAt", - type: { - name: "DateTime" - } - } - } - } -}; - export const ARMResourceProperties: msRest.CompositeMapper = { serializedName: "ARMResourceProperties", type: { @@ -556,13 +421,6 @@ export const ARMResourceProperties: msRest.CompositeMapper = { } } } - }, - identity: { - serializedName: "identity", - type: { - name: "Composite", - className: "ManagedServiceIdentity" - } } } } @@ -780,34 +638,6 @@ export const DatabaseAccountGetResults: msRest.CompositeMapper = { name: "Boolean" } }, - instanceId: { - readOnly: true, - serializedName: "properties.instanceId", - type: { - name: "String" - } - }, - createMode: { - serializedName: "properties.createMode", - defaultValue: 'Default', - type: { - name: "String" - } - }, - restoreParameters: { - serializedName: "properties.restoreParameters", - type: { - name: "Composite", - className: "RestoreParameters" - } - }, - backupPolicy: { - serializedName: "properties.backupPolicy", - type: { - name: "Composite", - className: "BackupPolicy" - } - }, cors: { serializedName: "properties.cors", type: { @@ -819,14 +649,6 @@ export const DatabaseAccountGetResults: msRest.CompositeMapper = { } } } - }, - systemData: { - readOnly: true, - serializedName: "systemData", - type: { - name: "Composite", - className: "SystemData" - } } } } @@ -1297,6 +1119,12 @@ export const SqlContainerGetPropertiesResource: msRest.CompositeMapper = { className: "ConflictResolutionPolicy" } }, + analyticalStorageTtl: { + serializedName: "analyticalStorageTtl", + type: { + name: "Number" + } + }, _rid: { readOnly: true, serializedName: "_rid", @@ -2351,23 +2179,6 @@ export const ErrorResponse: msRest.CompositeMapper = { } }; -export const ErrorResponseUpdatedFormat: msRest.CompositeMapper = { - serializedName: "ErrorResponseUpdatedFormat", - type: { - name: "Composite", - className: "ErrorResponseUpdatedFormat", - modelProperties: { - error: { - serializedName: "error", - type: { - name: "Composite", - className: "ErrorResponse" - } - } - } - } -}; - export const FailoverPolicies: msRest.CompositeMapper = { serializedName: "FailoverPolicies", type: { @@ -2408,42 +2219,6 @@ export const RegionForOnlineOffline: msRest.CompositeMapper = { } }; -export const ManagedServiceIdentity: msRest.CompositeMapper = { - serializedName: "ManagedServiceIdentity", - type: { - name: "Composite", - className: "ManagedServiceIdentity", - modelProperties: { - principalId: { - readOnly: true, - serializedName: "principalId", - type: { - name: "String" - } - }, - tenantId: { - readOnly: true, - serializedName: "tenantId", - type: { - name: "String" - } - }, - type: { - serializedName: "type", - type: { - name: "Enum", - allowedValues: [ - "SystemAssigned", - "UserAssigned", - "SystemAssigned, UserAssigned", - "None" - ] - } - } - } - } -}; - export const ARMProxyResource: msRest.CompositeMapper = { serializedName: "ARMProxyResource", type: { @@ -2652,19 +2427,22 @@ export const ThroughputSettingsGetResults: msRest.CompositeMapper = { } }; -export const DatabaseAccountCreateUpdateProperties: msRest.CompositeMapper = { - serializedName: "DatabaseAccountCreateUpdateProperties", +export const DatabaseAccountCreateUpdateParameters: msRest.CompositeMapper = { + serializedName: "DatabaseAccountCreateUpdateParameters", type: { name: "Composite", - polymorphicDiscriminator: { - serializedName: "createMode", - clientName: "createMode" - }, - uberParent: "DatabaseAccountCreateUpdateProperties", - className: "DatabaseAccountCreateUpdateProperties", + className: "DatabaseAccountCreateUpdateParameters", modelProperties: { + ...ARMResourceProperties.type.modelProperties, + kind: { + serializedName: "kind", + defaultValue: 'GlobalDocumentDB', + type: { + name: "String" + } + }, consistencyPolicy: { - serializedName: "consistencyPolicy", + serializedName: "properties.consistencyPolicy", type: { name: "Composite", className: "ConsistencyPolicy" @@ -2672,7 +2450,7 @@ export const DatabaseAccountCreateUpdateProperties: msRest.CompositeMapper = { }, locations: { required: true, - serializedName: "locations", + serializedName: "properties.locations", type: { name: "Sequence", element: { @@ -2686,14 +2464,14 @@ export const DatabaseAccountCreateUpdateProperties: msRest.CompositeMapper = { databaseAccountOfferType: { required: true, isConstant: true, - serializedName: "databaseAccountOfferType", + serializedName: "properties.databaseAccountOfferType", defaultValue: 'Standard', type: { name: "String" } }, ipRules: { - serializedName: "ipRules", + serializedName: "properties.ipRules", type: { name: "Sequence", element: { @@ -2705,19 +2483,19 @@ export const DatabaseAccountCreateUpdateProperties: msRest.CompositeMapper = { } }, isVirtualNetworkFilterEnabled: { - serializedName: "isVirtualNetworkFilterEnabled", + serializedName: "properties.isVirtualNetworkFilterEnabled", type: { name: "Boolean" } }, enableAutomaticFailover: { - serializedName: "enableAutomaticFailover", + serializedName: "properties.enableAutomaticFailover", type: { name: "Boolean" } }, capabilities: { - serializedName: "capabilities", + serializedName: "properties.capabilities", type: { name: "Sequence", element: { @@ -2729,7 +2507,7 @@ export const DatabaseAccountCreateUpdateProperties: msRest.CompositeMapper = { } }, virtualNetworkRules: { - serializedName: "virtualNetworkRules", + serializedName: "properties.virtualNetworkRules", type: { name: "Sequence", element: { @@ -2741,69 +2519,62 @@ export const DatabaseAccountCreateUpdateProperties: msRest.CompositeMapper = { } }, enableMultipleWriteLocations: { - serializedName: "enableMultipleWriteLocations", + serializedName: "properties.enableMultipleWriteLocations", type: { name: "Boolean" } }, enableCassandraConnector: { - serializedName: "enableCassandraConnector", + serializedName: "properties.enableCassandraConnector", type: { name: "Boolean" } }, connectorOffer: { - serializedName: "connectorOffer", + serializedName: "properties.connectorOffer", type: { name: "String" } }, disableKeyBasedMetadataWriteAccess: { - serializedName: "disableKeyBasedMetadataWriteAccess", + serializedName: "properties.disableKeyBasedMetadataWriteAccess", type: { name: "Boolean" } }, keyVaultKeyUri: { - serializedName: "keyVaultKeyUri", + serializedName: "properties.keyVaultKeyUri", type: { name: "String" } }, publicNetworkAccess: { - serializedName: "publicNetworkAccess", + serializedName: "properties.publicNetworkAccess", type: { name: "String" } }, enableFreeTier: { - serializedName: "enableFreeTier", + serializedName: "properties.enableFreeTier", type: { name: "Boolean" } }, apiProperties: { - serializedName: "apiProperties", + serializedName: "properties.apiProperties", type: { name: "Composite", className: "ApiProperties" } }, enableAnalyticalStorage: { - serializedName: "enableAnalyticalStorage", + serializedName: "properties.enableAnalyticalStorage", type: { name: "Boolean" } }, - backupPolicy: { - serializedName: "backupPolicy", - type: { - name: "Composite", - className: "BackupPolicy" - } - }, cors: { - serializedName: "cors", + serializedName: "properties.cors", type: { name: "Sequence", element: { @@ -2813,73 +2584,6 @@ export const DatabaseAccountCreateUpdateProperties: msRest.CompositeMapper = { } } } - }, - createMode: { - required: true, - serializedName: "createMode", - type: { - name: "String" - } - } - } - } -}; - -export const DefaultRequestDatabaseAccountCreateUpdateProperties: msRest.CompositeMapper = { - serializedName: "Default", - type: { - name: "Composite", - polymorphicDiscriminator: DatabaseAccountCreateUpdateProperties.type.polymorphicDiscriminator, - uberParent: "DatabaseAccountCreateUpdateProperties", - className: "DefaultRequestDatabaseAccountCreateUpdateProperties", - modelProperties: { - ...DatabaseAccountCreateUpdateProperties.type.modelProperties - } - } -}; - -export const RestoreReqeustDatabaseAccountCreateUpdateProperties: msRest.CompositeMapper = { - serializedName: "Restore", - type: { - name: "Composite", - polymorphicDiscriminator: DatabaseAccountCreateUpdateProperties.type.polymorphicDiscriminator, - uberParent: "DatabaseAccountCreateUpdateProperties", - className: "RestoreReqeustDatabaseAccountCreateUpdateProperties", - modelProperties: { - ...DatabaseAccountCreateUpdateProperties.type.modelProperties, - restoreParameters: { - serializedName: "restoreParameters", - type: { - name: "Composite", - className: "RestoreParameters" - } - } - } - } -}; - -export const DatabaseAccountCreateUpdateParameters: msRest.CompositeMapper = { - serializedName: "DatabaseAccountCreateUpdateParameters", - type: { - name: "Composite", - className: "DatabaseAccountCreateUpdateParameters", - modelProperties: { - ...ARMResourceProperties.type.modelProperties, - kind: { - serializedName: "kind", - defaultValue: 'GlobalDocumentDB', - type: { - name: "String" - } - }, - properties: { - required: true, - serializedName: "properties", - defaultValue: {}, - type: { - name: "Composite", - className: "DatabaseAccountCreateUpdateProperties" - } } } } @@ -3030,13 +2734,6 @@ export const DatabaseAccountUpdateParameters: msRest.CompositeMapper = { name: "Boolean" } }, - backupPolicy: { - serializedName: "properties.backupPolicy", - type: { - name: "Composite", - className: "BackupPolicy" - } - }, cors: { serializedName: "properties.cors", type: { @@ -3350,6 +3047,12 @@ export const SqlContainerResource: msRest.CompositeMapper = { name: "Composite", className: "ConflictResolutionPolicy" } + }, + analyticalStorageTtl: { + serializedName: "analyticalStorageTtl", + type: { + name: "Number" + } } } } @@ -4413,96 +4116,6 @@ export const PartitionMetric: msRest.CompositeMapper = { } }; -export const PeriodicModeProperties: msRest.CompositeMapper = { - serializedName: "PeriodicModeProperties", - type: { - name: "Composite", - className: "PeriodicModeProperties", - modelProperties: { - backupIntervalInMinutes: { - serializedName: "backupIntervalInMinutes", - constraints: { - InclusiveMinimum: 0 - }, - type: { - name: "Number" - } - }, - backupRetentionIntervalInHours: { - serializedName: "backupRetentionIntervalInHours", - constraints: { - InclusiveMinimum: 0 - }, - type: { - name: "Number" - } - } - } - } -}; - -export const PeriodicModeBackupPolicy: msRest.CompositeMapper = { - serializedName: "Periodic", - type: { - name: "Composite", - polymorphicDiscriminator: BackupPolicy.type.polymorphicDiscriminator, - uberParent: "BackupPolicy", - className: "PeriodicModeBackupPolicy", - modelProperties: { - ...BackupPolicy.type.modelProperties, - periodicModeProperties: { - serializedName: "periodicModeProperties", - type: { - name: "Composite", - className: "PeriodicModeProperties" - } - } - } - } -}; - -export const ContinuousModeBackupPolicy: msRest.CompositeMapper = { - serializedName: "Continuous", - type: { - name: "Composite", - polymorphicDiscriminator: BackupPolicy.type.polymorphicDiscriminator, - uberParent: "BackupPolicy", - className: "ContinuousModeBackupPolicy", - modelProperties: { - ...BackupPolicy.type.modelProperties - } - } -}; - -export const RestorableDatabaseAccountGetResult: msRest.CompositeMapper = { - serializedName: "RestorableDatabaseAccountGetResult", - type: { - name: "Composite", - className: "RestorableDatabaseAccountGetResult", - modelProperties: { - ...ARMResourceProperties.type.modelProperties, - accountName: { - serializedName: "properties.accountName", - type: { - name: "String" - } - }, - creationTime: { - serializedName: "properties.creationTime", - type: { - name: "DateTime" - } - }, - deletionTime: { - serializedName: "properties.deletionTime", - type: { - name: "DateTime" - } - } - } - } -}; - export const TrackedResource: msRest.CompositeMapper = { serializedName: "TrackedResource", type: { @@ -5117,29 +4730,6 @@ export const GremlinGraphListResult: msRest.CompositeMapper = { } }; -export const RestorableDatabaseAccountsListResult: msRest.CompositeMapper = { - serializedName: "RestorableDatabaseAccountsListResult", - type: { - name: "Composite", - className: "RestorableDatabaseAccountsListResult", - modelProperties: { - value: { - readOnly: true, - serializedName: "", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "RestorableDatabaseAccountGetResult" - } - } - } - } - } - } -}; - export const NotebookWorkspaceListResult: msRest.CompositeMapper = { serializedName: "NotebookWorkspaceListResult", type: { @@ -5205,13 +4795,3 @@ export const PrivateEndpointConnectionListResult: msRest.CompositeMapper = { } } }; - -export const discriminators = { - 'BackupPolicy' : BackupPolicy, - 'DatabaseAccountCreateUpdateProperties' : DatabaseAccountCreateUpdateProperties, - 'DatabaseAccountCreateUpdateProperties.Default' : DefaultRequestDatabaseAccountCreateUpdateProperties, - 'DatabaseAccountCreateUpdateProperties.Restore' : RestoreReqeustDatabaseAccountCreateUpdateProperties, - 'BackupPolicy.Periodic' : PeriodicModeBackupPolicy, - 'BackupPolicy.Continuous' : ContinuousModeBackupPolicy - -}; diff --git a/sdk/cosmosdb/arm-cosmosdb/src/models/mongoDBResourcesMappers.ts b/sdk/cosmosdb/arm-cosmosdb/src/models/mongoDBResourcesMappers.ts index 1030d2914a4c..891bde7252db 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/models/mongoDBResourcesMappers.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/models/mongoDBResourcesMappers.ts @@ -7,7 +7,6 @@ */ export { - discriminators, ApiProperties, ARMProxyResource, ARMResourceProperties, @@ -15,7 +14,6 @@ export { AutoscaleSettingsResource, AutoUpgradePolicyResource, AzureEntityResource, - BackupPolicy, BaseResource, Capability, CassandraKeyspaceCreateUpdateParameters, @@ -37,14 +35,10 @@ export { ConflictResolutionPolicy, ConsistencyPolicy, ContainerPartitionKey, - ContinuousModeBackupPolicy, CorsPolicy, CreateUpdateOptions, DatabaseAccountCreateUpdateParameters, - DatabaseAccountCreateUpdateProperties, DatabaseAccountGetResults, - DatabaseRestoreResource, - DefaultRequestDatabaseAccountCreateUpdateProperties, ExcludedPath, FailoverPolicy, GremlinDatabaseCreateUpdateParameters, @@ -62,7 +56,6 @@ export { IndexingPolicy, IpAddressOrRange, Location, - ManagedServiceIdentity, MongoDBCollectionCreateUpdateParameters, MongoDBCollectionGetPropertiesOptions, MongoDBCollectionGetPropertiesResource, @@ -81,17 +74,12 @@ export { NotebookWorkspace, NotebookWorkspaceCreateUpdateParameters, OptionsResource, - PeriodicModeBackupPolicy, - PeriodicModeProperties, PrivateEndpointConnection, PrivateEndpointProperty, PrivateLinkResource, PrivateLinkServiceConnectionStateProperty, ProxyResource, Resource, - RestorableDatabaseAccountGetResult, - RestoreParameters, - RestoreReqeustDatabaseAccountCreateUpdateProperties, SpatialSpec, SqlContainerCreateUpdateParameters, SqlContainerGetPropertiesOptions, @@ -115,7 +103,6 @@ export { SqlUserDefinedFunctionGetPropertiesResource, SqlUserDefinedFunctionGetResults, SqlUserDefinedFunctionResource, - SystemData, TableCreateUpdateParameters, TableGetPropertiesOptions, TableGetPropertiesResource, diff --git a/sdk/cosmosdb/arm-cosmosdb/src/models/notebookWorkspacesMappers.ts b/sdk/cosmosdb/arm-cosmosdb/src/models/notebookWorkspacesMappers.ts index 8f156868b2b8..30281fd37a99 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/models/notebookWorkspacesMappers.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/models/notebookWorkspacesMappers.ts @@ -7,7 +7,6 @@ */ export { - discriminators, ApiProperties, ARMProxyResource, ARMResourceProperties, @@ -15,7 +14,6 @@ export { AutoscaleSettingsResource, AutoUpgradePolicyResource, AzureEntityResource, - BackupPolicy, BaseResource, Capability, CassandraKeyspaceCreateUpdateParameters, @@ -36,14 +34,10 @@ export { ConflictResolutionPolicy, ConsistencyPolicy, ContainerPartitionKey, - ContinuousModeBackupPolicy, CorsPolicy, CreateUpdateOptions, DatabaseAccountCreateUpdateParameters, - DatabaseAccountCreateUpdateProperties, DatabaseAccountGetResults, - DatabaseRestoreResource, - DefaultRequestDatabaseAccountCreateUpdateProperties, ErrorResponse, ExcludedPath, FailoverPolicy, @@ -62,7 +56,6 @@ export { IndexingPolicy, IpAddressOrRange, Location, - ManagedServiceIdentity, MongoDBCollectionCreateUpdateParameters, MongoDBCollectionGetPropertiesOptions, MongoDBCollectionGetPropertiesResource, @@ -81,17 +74,12 @@ export { NotebookWorkspaceCreateUpdateParameters, NotebookWorkspaceListResult, OptionsResource, - PeriodicModeBackupPolicy, - PeriodicModeProperties, PrivateEndpointConnection, PrivateEndpointProperty, PrivateLinkResource, PrivateLinkServiceConnectionStateProperty, ProxyResource, Resource, - RestorableDatabaseAccountGetResult, - RestoreParameters, - RestoreReqeustDatabaseAccountCreateUpdateProperties, SpatialSpec, SqlContainerCreateUpdateParameters, SqlContainerGetPropertiesOptions, @@ -115,7 +103,6 @@ export { SqlUserDefinedFunctionGetPropertiesResource, SqlUserDefinedFunctionGetResults, SqlUserDefinedFunctionResource, - SystemData, TableCreateUpdateParameters, TableGetPropertiesOptions, TableGetPropertiesResource, diff --git a/sdk/cosmosdb/arm-cosmosdb/src/models/operationsMappers.ts b/sdk/cosmosdb/arm-cosmosdb/src/models/operationsMappers.ts index 65fc7dd1800a..689688180be7 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/models/operationsMappers.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/models/operationsMappers.ts @@ -7,7 +7,6 @@ */ export { - discriminators, CloudError, Operation, OperationDisplay, diff --git a/sdk/cosmosdb/arm-cosmosdb/src/models/parameters.ts b/sdk/cosmosdb/arm-cosmosdb/src/models/parameters.ts index 290eae43870e..cb68a8368400 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: '2020-06-01-preview', + defaultValue: '2020-04-01', constraints: { MinLength: 1 }, @@ -157,16 +157,6 @@ export const groupName: msRest.OperationURLParameter = { } } }; -export const instanceId: msRest.OperationURLParameter = { - parameterPath: "instanceId", - mapper: { - required: true, - serializedName: "instanceId", - type: { - name: "String" - } - } -}; export const keyspaceName: msRest.OperationURLParameter = { parameterPath: "keyspaceName", mapper: { @@ -177,16 +167,6 @@ export const keyspaceName: msRest.OperationURLParameter = { } } }; -export const location: msRest.OperationURLParameter = { - parameterPath: "location", - mapper: { - required: true, - serializedName: "location", - type: { - name: "String" - } - } -}; export const nextPageLink: msRest.OperationURLParameter = { parameterPath: "nextPageLink", mapper: { diff --git a/sdk/cosmosdb/arm-cosmosdb/src/models/partitionKeyRangeIdMappers.ts b/sdk/cosmosdb/arm-cosmosdb/src/models/partitionKeyRangeIdMappers.ts index ad4eec5bb57b..c901f39fec5e 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/models/partitionKeyRangeIdMappers.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/models/partitionKeyRangeIdMappers.ts @@ -7,7 +7,6 @@ */ export { - discriminators, CloudError, Metric, MetricName, diff --git a/sdk/cosmosdb/arm-cosmosdb/src/models/partitionKeyRangeIdRegionMappers.ts b/sdk/cosmosdb/arm-cosmosdb/src/models/partitionKeyRangeIdRegionMappers.ts index ad4eec5bb57b..c901f39fec5e 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/models/partitionKeyRangeIdRegionMappers.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/models/partitionKeyRangeIdRegionMappers.ts @@ -7,7 +7,6 @@ */ export { - discriminators, CloudError, Metric, MetricName, diff --git a/sdk/cosmosdb/arm-cosmosdb/src/models/percentileMappers.ts b/sdk/cosmosdb/arm-cosmosdb/src/models/percentileMappers.ts index 0b7dd679f5f9..969936d1541a 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/models/percentileMappers.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/models/percentileMappers.ts @@ -7,7 +7,6 @@ */ export { - discriminators, CloudError, MetricName, MetricValue, diff --git a/sdk/cosmosdb/arm-cosmosdb/src/models/percentileSourceTargetMappers.ts b/sdk/cosmosdb/arm-cosmosdb/src/models/percentileSourceTargetMappers.ts index 0b7dd679f5f9..969936d1541a 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/models/percentileSourceTargetMappers.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/models/percentileSourceTargetMappers.ts @@ -7,7 +7,6 @@ */ export { - discriminators, CloudError, MetricName, MetricValue, diff --git a/sdk/cosmosdb/arm-cosmosdb/src/models/percentileTargetMappers.ts b/sdk/cosmosdb/arm-cosmosdb/src/models/percentileTargetMappers.ts index 0b7dd679f5f9..969936d1541a 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/models/percentileTargetMappers.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/models/percentileTargetMappers.ts @@ -7,7 +7,6 @@ */ export { - discriminators, CloudError, MetricName, MetricValue, diff --git a/sdk/cosmosdb/arm-cosmosdb/src/models/privateEndpointConnectionsMappers.ts b/sdk/cosmosdb/arm-cosmosdb/src/models/privateEndpointConnectionsMappers.ts index 55f1381804ab..124b903874eb 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/models/privateEndpointConnectionsMappers.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/models/privateEndpointConnectionsMappers.ts @@ -7,7 +7,6 @@ */ export { - discriminators, ApiProperties, ARMProxyResource, ARMResourceProperties, @@ -15,7 +14,6 @@ export { AutoscaleSettingsResource, AutoUpgradePolicyResource, AzureEntityResource, - BackupPolicy, BaseResource, Capability, CassandraKeyspaceCreateUpdateParameters, @@ -37,14 +35,10 @@ export { ConflictResolutionPolicy, ConsistencyPolicy, ContainerPartitionKey, - ContinuousModeBackupPolicy, CorsPolicy, CreateUpdateOptions, DatabaseAccountCreateUpdateParameters, - DatabaseAccountCreateUpdateProperties, DatabaseAccountGetResults, - DatabaseRestoreResource, - DefaultRequestDatabaseAccountCreateUpdateProperties, ErrorResponse, ExcludedPath, FailoverPolicy, @@ -63,7 +57,6 @@ export { IndexingPolicy, IpAddressOrRange, Location, - ManagedServiceIdentity, MongoDBCollectionCreateUpdateParameters, MongoDBCollectionGetPropertiesOptions, MongoDBCollectionGetPropertiesResource, @@ -80,8 +73,6 @@ export { NotebookWorkspace, NotebookWorkspaceCreateUpdateParameters, OptionsResource, - PeriodicModeBackupPolicy, - PeriodicModeProperties, PrivateEndpointConnection, PrivateEndpointConnectionListResult, PrivateEndpointProperty, @@ -89,9 +80,6 @@ export { PrivateLinkServiceConnectionStateProperty, ProxyResource, Resource, - RestorableDatabaseAccountGetResult, - RestoreParameters, - RestoreReqeustDatabaseAccountCreateUpdateProperties, SpatialSpec, SqlContainerCreateUpdateParameters, SqlContainerGetPropertiesOptions, @@ -115,7 +103,6 @@ export { SqlUserDefinedFunctionGetPropertiesResource, SqlUserDefinedFunctionGetResults, SqlUserDefinedFunctionResource, - SystemData, TableCreateUpdateParameters, TableGetPropertiesOptions, TableGetPropertiesResource, diff --git a/sdk/cosmosdb/arm-cosmosdb/src/models/privateLinkResourcesMappers.ts b/sdk/cosmosdb/arm-cosmosdb/src/models/privateLinkResourcesMappers.ts index 53add600bd9c..581b05750533 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/models/privateLinkResourcesMappers.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/models/privateLinkResourcesMappers.ts @@ -7,7 +7,6 @@ */ export { - discriminators, ApiProperties, ARMProxyResource, ARMResourceProperties, @@ -15,7 +14,6 @@ export { AutoscaleSettingsResource, AutoUpgradePolicyResource, AzureEntityResource, - BackupPolicy, BaseResource, Capability, CassandraKeyspaceCreateUpdateParameters, @@ -37,14 +35,10 @@ export { ConflictResolutionPolicy, ConsistencyPolicy, ContainerPartitionKey, - ContinuousModeBackupPolicy, CorsPolicy, CreateUpdateOptions, DatabaseAccountCreateUpdateParameters, - DatabaseAccountCreateUpdateProperties, DatabaseAccountGetResults, - DatabaseRestoreResource, - DefaultRequestDatabaseAccountCreateUpdateProperties, ExcludedPath, FailoverPolicy, GremlinDatabaseCreateUpdateParameters, @@ -62,7 +56,6 @@ export { IndexingPolicy, IpAddressOrRange, Location, - ManagedServiceIdentity, MongoDBCollectionCreateUpdateParameters, MongoDBCollectionGetPropertiesOptions, MongoDBCollectionGetPropertiesResource, @@ -79,8 +72,6 @@ export { NotebookWorkspace, NotebookWorkspaceCreateUpdateParameters, OptionsResource, - PeriodicModeBackupPolicy, - PeriodicModeProperties, PrivateEndpointConnection, PrivateEndpointProperty, PrivateLinkResource, @@ -88,9 +79,6 @@ export { PrivateLinkServiceConnectionStateProperty, ProxyResource, Resource, - RestorableDatabaseAccountGetResult, - RestoreParameters, - RestoreReqeustDatabaseAccountCreateUpdateProperties, SpatialSpec, SqlContainerCreateUpdateParameters, SqlContainerGetPropertiesOptions, @@ -114,7 +102,6 @@ export { SqlUserDefinedFunctionGetPropertiesResource, SqlUserDefinedFunctionGetResults, SqlUserDefinedFunctionResource, - SystemData, TableCreateUpdateParameters, TableGetPropertiesOptions, TableGetPropertiesResource, diff --git a/sdk/cosmosdb/arm-cosmosdb/src/models/restorableDatabaseAccountsMappers.ts b/sdk/cosmosdb/arm-cosmosdb/src/models/restorableDatabaseAccountsMappers.ts deleted file mode 100644 index 93a880d61ad8..000000000000 --- a/sdk/cosmosdb/arm-cosmosdb/src/models/restorableDatabaseAccountsMappers.ts +++ /dev/null @@ -1,133 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -export { - discriminators, - ApiProperties, - ARMProxyResource, - ARMResourceProperties, - AutoscaleSettings, - AutoscaleSettingsResource, - AutoUpgradePolicyResource, - AzureEntityResource, - BackupPolicy, - BaseResource, - Capability, - CassandraKeyspaceCreateUpdateParameters, - CassandraKeyspaceGetPropertiesOptions, - CassandraKeyspaceGetPropertiesResource, - CassandraKeyspaceGetResults, - CassandraKeyspaceResource, - CassandraPartitionKey, - CassandraSchema, - CassandraTableCreateUpdateParameters, - CassandraTableGetPropertiesOptions, - CassandraTableGetPropertiesResource, - CassandraTableGetResults, - CassandraTableResource, - ClusterKey, - Column, - CompositePath, - ConflictResolutionPolicy, - ConsistencyPolicy, - ContainerPartitionKey, - ContinuousModeBackupPolicy, - CorsPolicy, - CreateUpdateOptions, - DatabaseAccountCreateUpdateParameters, - DatabaseAccountCreateUpdateProperties, - DatabaseAccountGetResults, - DatabaseRestoreResource, - DefaultRequestDatabaseAccountCreateUpdateProperties, - ErrorResponse, - ErrorResponseUpdatedFormat, - ExcludedPath, - FailoverPolicy, - GremlinDatabaseCreateUpdateParameters, - GremlinDatabaseGetPropertiesOptions, - GremlinDatabaseGetPropertiesResource, - GremlinDatabaseGetResults, - GremlinDatabaseResource, - GremlinGraphCreateUpdateParameters, - GremlinGraphGetPropertiesOptions, - GremlinGraphGetPropertiesResource, - GremlinGraphGetResults, - GremlinGraphResource, - IncludedPath, - Indexes, - IndexingPolicy, - IpAddressOrRange, - Location, - ManagedServiceIdentity, - MongoDBCollectionCreateUpdateParameters, - MongoDBCollectionGetPropertiesOptions, - MongoDBCollectionGetPropertiesResource, - MongoDBCollectionGetResults, - MongoDBCollectionResource, - MongoDBDatabaseCreateUpdateParameters, - MongoDBDatabaseGetPropertiesOptions, - MongoDBDatabaseGetPropertiesResource, - MongoDBDatabaseGetResults, - MongoDBDatabaseResource, - MongoIndex, - MongoIndexKeys, - MongoIndexOptions, - NotebookWorkspace, - NotebookWorkspaceCreateUpdateParameters, - OptionsResource, - PeriodicModeBackupPolicy, - PeriodicModeProperties, - PrivateEndpointConnection, - PrivateEndpointProperty, - PrivateLinkResource, - PrivateLinkServiceConnectionStateProperty, - ProxyResource, - Resource, - RestorableDatabaseAccountGetResult, - RestorableDatabaseAccountsListResult, - RestoreParameters, - RestoreReqeustDatabaseAccountCreateUpdateProperties, - SpatialSpec, - SqlContainerCreateUpdateParameters, - SqlContainerGetPropertiesOptions, - SqlContainerGetPropertiesResource, - SqlContainerGetResults, - SqlContainerResource, - SqlDatabaseCreateUpdateParameters, - SqlDatabaseGetPropertiesOptions, - SqlDatabaseGetPropertiesResource, - SqlDatabaseGetResults, - SqlDatabaseResource, - SqlStoredProcedureCreateUpdateParameters, - SqlStoredProcedureGetPropertiesResource, - SqlStoredProcedureGetResults, - SqlStoredProcedureResource, - SqlTriggerCreateUpdateParameters, - SqlTriggerGetPropertiesResource, - SqlTriggerGetResults, - SqlTriggerResource, - SqlUserDefinedFunctionCreateUpdateParameters, - SqlUserDefinedFunctionGetPropertiesResource, - SqlUserDefinedFunctionGetResults, - SqlUserDefinedFunctionResource, - SystemData, - TableCreateUpdateParameters, - TableGetPropertiesOptions, - TableGetPropertiesResource, - TableGetResults, - TableResource, - ThroughputPolicyResource, - ThroughputSettingsGetPropertiesResource, - ThroughputSettingsGetResults, - ThroughputSettingsResource, - ThroughputSettingsUpdateParameters, - TrackedResource, - UniqueKey, - UniqueKeyPolicy, - VirtualNetworkRule -} from "../models/mappers"; diff --git a/sdk/cosmosdb/arm-cosmosdb/src/models/sqlResourcesMappers.ts b/sdk/cosmosdb/arm-cosmosdb/src/models/sqlResourcesMappers.ts index 5e0d98d6bed9..03d52a4ee24d 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/models/sqlResourcesMappers.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/models/sqlResourcesMappers.ts @@ -7,7 +7,6 @@ */ export { - discriminators, ApiProperties, ARMProxyResource, ARMResourceProperties, @@ -15,7 +14,6 @@ export { AutoscaleSettingsResource, AutoUpgradePolicyResource, AzureEntityResource, - BackupPolicy, BaseResource, Capability, CassandraKeyspaceCreateUpdateParameters, @@ -37,14 +35,10 @@ export { ConflictResolutionPolicy, ConsistencyPolicy, ContainerPartitionKey, - ContinuousModeBackupPolicy, CorsPolicy, CreateUpdateOptions, DatabaseAccountCreateUpdateParameters, - DatabaseAccountCreateUpdateProperties, DatabaseAccountGetResults, - DatabaseRestoreResource, - DefaultRequestDatabaseAccountCreateUpdateProperties, ExcludedPath, FailoverPolicy, GremlinDatabaseCreateUpdateParameters, @@ -62,7 +56,6 @@ export { IndexingPolicy, IpAddressOrRange, Location, - ManagedServiceIdentity, MongoDBCollectionCreateUpdateParameters, MongoDBCollectionGetPropertiesOptions, MongoDBCollectionGetPropertiesResource, @@ -79,17 +72,12 @@ export { NotebookWorkspace, NotebookWorkspaceCreateUpdateParameters, OptionsResource, - PeriodicModeBackupPolicy, - PeriodicModeProperties, PrivateEndpointConnection, PrivateEndpointProperty, PrivateLinkResource, PrivateLinkServiceConnectionStateProperty, ProxyResource, Resource, - RestorableDatabaseAccountGetResult, - RestoreParameters, - RestoreReqeustDatabaseAccountCreateUpdateProperties, SpatialSpec, SqlContainerCreateUpdateParameters, SqlContainerGetPropertiesOptions, @@ -118,7 +106,6 @@ export { SqlUserDefinedFunctionGetResults, SqlUserDefinedFunctionListResult, SqlUserDefinedFunctionResource, - SystemData, TableCreateUpdateParameters, TableGetPropertiesOptions, TableGetPropertiesResource, diff --git a/sdk/cosmosdb/arm-cosmosdb/src/models/tableResourcesMappers.ts b/sdk/cosmosdb/arm-cosmosdb/src/models/tableResourcesMappers.ts index 1207a40c9953..7856ac56e806 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/models/tableResourcesMappers.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/models/tableResourcesMappers.ts @@ -7,7 +7,6 @@ */ export { - discriminators, ApiProperties, ARMProxyResource, ARMResourceProperties, @@ -15,7 +14,6 @@ export { AutoscaleSettingsResource, AutoUpgradePolicyResource, AzureEntityResource, - BackupPolicy, BaseResource, Capability, CassandraKeyspaceCreateUpdateParameters, @@ -37,14 +35,10 @@ export { ConflictResolutionPolicy, ConsistencyPolicy, ContainerPartitionKey, - ContinuousModeBackupPolicy, CorsPolicy, CreateUpdateOptions, DatabaseAccountCreateUpdateParameters, - DatabaseAccountCreateUpdateProperties, DatabaseAccountGetResults, - DatabaseRestoreResource, - DefaultRequestDatabaseAccountCreateUpdateProperties, ExcludedPath, FailoverPolicy, GremlinDatabaseCreateUpdateParameters, @@ -62,7 +56,6 @@ export { IndexingPolicy, IpAddressOrRange, Location, - ManagedServiceIdentity, MongoDBCollectionCreateUpdateParameters, MongoDBCollectionGetPropertiesOptions, MongoDBCollectionGetPropertiesResource, @@ -79,17 +72,12 @@ export { NotebookWorkspace, NotebookWorkspaceCreateUpdateParameters, OptionsResource, - PeriodicModeBackupPolicy, - PeriodicModeProperties, PrivateEndpointConnection, PrivateEndpointProperty, PrivateLinkResource, PrivateLinkServiceConnectionStateProperty, ProxyResource, Resource, - RestorableDatabaseAccountGetResult, - RestoreParameters, - RestoreReqeustDatabaseAccountCreateUpdateProperties, SpatialSpec, SqlContainerCreateUpdateParameters, SqlContainerGetPropertiesOptions, @@ -113,7 +101,6 @@ export { SqlUserDefinedFunctionGetPropertiesResource, SqlUserDefinedFunctionGetResults, SqlUserDefinedFunctionResource, - SystemData, TableCreateUpdateParameters, TableGetPropertiesOptions, TableGetPropertiesResource, diff --git a/sdk/cosmosdb/arm-cosmosdb/src/operations/cassandraResources.ts b/sdk/cosmosdb/arm-cosmosdb/src/operations/cassandraResources.ts index 7ab389e8b87b..1d0d92ad1cad 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/operations/cassandraResources.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/operations/cassandraResources.ts @@ -176,6 +176,32 @@ export class CassandraResources { .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } + /** + * Migrate an Azure Cosmos DB Cassandra Keyspace from manual throughput to autoscale + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName Cosmos DB database account name. + * @param keyspaceName Cosmos DB keyspace name. + * @param [options] The optional parameters + * @returns Promise + */ + migrateCassandraKeyspaceToAutoscale(resourceGroupName: string, accountName: string, keyspaceName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginMigrateCassandraKeyspaceToAutoscale(resourceGroupName,accountName,keyspaceName,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * Migrate an Azure Cosmos DB Cassandra Keyspace from autoscale to manual throughput + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName Cosmos DB database account name. + * @param keyspaceName Cosmos DB keyspace name. + * @param [options] The optional parameters + * @returns Promise + */ + migrateCassandraKeyspaceToManualThroughput(resourceGroupName: string, accountName: string, keyspaceName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginMigrateCassandraKeyspaceToManualThroughput(resourceGroupName,accountName,keyspaceName,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + /** * Lists the Cassandra table under an existing Azure Cosmos DB database account. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -339,6 +365,34 @@ export class CassandraResources { .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } + /** + * Migrate an Azure Cosmos DB Cassandra table from manual throughput to autoscale + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName Cosmos DB database account name. + * @param keyspaceName Cosmos DB keyspace name. + * @param tableName Cosmos DB table name. + * @param [options] The optional parameters + * @returns Promise + */ + migrateCassandraTableToAutoscale(resourceGroupName: string, accountName: string, keyspaceName: string, tableName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginMigrateCassandraTableToAutoscale(resourceGroupName,accountName,keyspaceName,tableName,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * Migrate an Azure Cosmos DB Cassandra table from autoscale to manual throughput + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName Cosmos DB database account name. + * @param keyspaceName Cosmos DB keyspace name. + * @param tableName Cosmos DB table name. + * @param [options] The optional parameters + * @returns Promise + */ + migrateCassandraTableToManualThroughput(resourceGroupName: string, accountName: string, keyspaceName: string, tableName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginMigrateCassandraTableToManualThroughput(resourceGroupName,accountName,keyspaceName,tableName,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + /** * Create or update an Azure Cosmos DB Cassandra keyspace * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -405,6 +459,46 @@ export class CassandraResources { options); } + /** + * Migrate an Azure Cosmos DB Cassandra Keyspace from manual throughput to autoscale + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName Cosmos DB database account name. + * @param keyspaceName Cosmos DB keyspace name. + * @param [options] The optional parameters + * @returns Promise + */ + beginMigrateCassandraKeyspaceToAutoscale(resourceGroupName: string, accountName: string, keyspaceName: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + accountName, + keyspaceName, + options + }, + beginMigrateCassandraKeyspaceToAutoscaleOperationSpec, + options); + } + + /** + * Migrate an Azure Cosmos DB Cassandra Keyspace from autoscale to manual throughput + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName Cosmos DB database account name. + * @param keyspaceName Cosmos DB keyspace name. + * @param [options] The optional parameters + * @returns Promise + */ + beginMigrateCassandraKeyspaceToManualThroughput(resourceGroupName: string, accountName: string, keyspaceName: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + accountName, + keyspaceName, + options + }, + beginMigrateCassandraKeyspaceToManualThroughputOperationSpec, + options); + } + /** * Create or update an Azure Cosmos DB Cassandra Table * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -476,6 +570,50 @@ export class CassandraResources { beginUpdateCassandraTableThroughputOperationSpec, options); } + + /** + * Migrate an Azure Cosmos DB Cassandra table from manual throughput to autoscale + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName Cosmos DB database account name. + * @param keyspaceName Cosmos DB keyspace name. + * @param tableName Cosmos DB table name. + * @param [options] The optional parameters + * @returns Promise + */ + beginMigrateCassandraTableToAutoscale(resourceGroupName: string, accountName: string, keyspaceName: string, tableName: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + accountName, + keyspaceName, + tableName, + options + }, + beginMigrateCassandraTableToAutoscaleOperationSpec, + options); + } + + /** + * Migrate an Azure Cosmos DB Cassandra table from autoscale to manual throughput + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName Cosmos DB database account name. + * @param keyspaceName Cosmos DB keyspace name. + * @param tableName Cosmos DB table name. + * @param [options] The optional parameters + * @returns Promise + */ + beginMigrateCassandraTableToManualThroughput(resourceGroupName: string, accountName: string, keyspaceName: string, tableName: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + accountName, + keyspaceName, + tableName, + options + }, + beginMigrateCassandraTableToManualThroughputOperationSpec, + options); + } } // Operation Specifications @@ -730,6 +868,60 @@ const beginUpdateCassandraKeyspaceThroughputOperationSpec: msRest.OperationSpec serializer }; +const beginMigrateCassandraKeyspaceToAutoscaleOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/cassandraKeyspaces/{keyspaceName}/throughputSettings/default/migrateToAutoscale", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.accountName, + Parameters.keyspaceName + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ThroughputSettingsGetResults + }, + 202: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginMigrateCassandraKeyspaceToManualThroughputOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/cassandraKeyspaces/{keyspaceName}/throughputSettings/default/migrateToManualThroughput", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.accountName, + Parameters.keyspaceName + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ThroughputSettingsGetResults + }, + 202: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + const beginCreateUpdateCassandraTableOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/cassandraKeyspaces/{keyspaceName}/tables/{tableName}", @@ -825,3 +1017,59 @@ const beginUpdateCassandraTableThroughputOperationSpec: msRest.OperationSpec = { }, serializer }; + +const beginMigrateCassandraTableToAutoscaleOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/cassandraKeyspaces/{keyspaceName}/tables/{tableName}/throughputSettings/default/migrateToAutoscale", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.accountName, + Parameters.keyspaceName, + Parameters.tableName + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ThroughputSettingsGetResults + }, + 202: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginMigrateCassandraTableToManualThroughputOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/cassandraKeyspaces/{keyspaceName}/tables/{tableName}/throughputSettings/default/migrateToManualThroughput", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.accountName, + Parameters.keyspaceName, + Parameters.tableName + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ThroughputSettingsGetResults + }, + 202: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/cosmosdb/arm-cosmosdb/src/operations/gremlinResources.ts b/sdk/cosmosdb/arm-cosmosdb/src/operations/gremlinResources.ts index 7b2f57d67e7a..3ddcd62ef302 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/operations/gremlinResources.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/operations/gremlinResources.ts @@ -176,6 +176,32 @@ export class GremlinResources { .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } + /** + * Migrate an Azure Cosmos DB Gremlin database from manual throughput to autoscale + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName Cosmos DB database account name. + * @param databaseName Cosmos DB database name. + * @param [options] The optional parameters + * @returns Promise + */ + migrateGremlinDatabaseToAutoscale(resourceGroupName: string, accountName: string, databaseName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginMigrateGremlinDatabaseToAutoscale(resourceGroupName,accountName,databaseName,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * Migrate an Azure Cosmos DB Gremlin database from autoscale to manual throughput + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName Cosmos DB database account name. + * @param databaseName Cosmos DB database name. + * @param [options] The optional parameters + * @returns Promise + */ + migrateGremlinDatabaseToManualThroughput(resourceGroupName: string, accountName: string, databaseName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginMigrateGremlinDatabaseToManualThroughput(resourceGroupName,accountName,databaseName,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + /** * Lists the Gremlin graph under an existing Azure Cosmos DB database account. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -339,6 +365,34 @@ export class GremlinResources { .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } + /** + * Migrate an Azure Cosmos DB Gremlin graph from manual throughput to autoscale + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName Cosmos DB database account name. + * @param databaseName Cosmos DB database name. + * @param graphName Cosmos DB graph name. + * @param [options] The optional parameters + * @returns Promise + */ + migrateGremlinGraphToAutoscale(resourceGroupName: string, accountName: string, databaseName: string, graphName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginMigrateGremlinGraphToAutoscale(resourceGroupName,accountName,databaseName,graphName,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * Migrate an Azure Cosmos DB Gremlin graph from autoscale to manual throughput + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName Cosmos DB database account name. + * @param databaseName Cosmos DB database name. + * @param graphName Cosmos DB graph name. + * @param [options] The optional parameters + * @returns Promise + */ + migrateGremlinGraphToManualThroughput(resourceGroupName: string, accountName: string, databaseName: string, graphName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginMigrateGremlinGraphToManualThroughput(resourceGroupName,accountName,databaseName,graphName,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + /** * Create or update an Azure Cosmos DB Gremlin database * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -405,6 +459,46 @@ export class GremlinResources { options); } + /** + * Migrate an Azure Cosmos DB Gremlin database from manual throughput to autoscale + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName Cosmos DB database account name. + * @param databaseName Cosmos DB database name. + * @param [options] The optional parameters + * @returns Promise + */ + beginMigrateGremlinDatabaseToAutoscale(resourceGroupName: string, accountName: string, databaseName: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + accountName, + databaseName, + options + }, + beginMigrateGremlinDatabaseToAutoscaleOperationSpec, + options); + } + + /** + * Migrate an Azure Cosmos DB Gremlin database from autoscale to manual throughput + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName Cosmos DB database account name. + * @param databaseName Cosmos DB database name. + * @param [options] The optional parameters + * @returns Promise + */ + beginMigrateGremlinDatabaseToManualThroughput(resourceGroupName: string, accountName: string, databaseName: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + accountName, + databaseName, + options + }, + beginMigrateGremlinDatabaseToManualThroughputOperationSpec, + options); + } + /** * Create or update an Azure Cosmos DB Gremlin graph * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -476,6 +570,50 @@ export class GremlinResources { beginUpdateGremlinGraphThroughputOperationSpec, options); } + + /** + * Migrate an Azure Cosmos DB Gremlin graph from manual throughput to autoscale + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName Cosmos DB database account name. + * @param databaseName Cosmos DB database name. + * @param graphName Cosmos DB graph name. + * @param [options] The optional parameters + * @returns Promise + */ + beginMigrateGremlinGraphToAutoscale(resourceGroupName: string, accountName: string, databaseName: string, graphName: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + accountName, + databaseName, + graphName, + options + }, + beginMigrateGremlinGraphToAutoscaleOperationSpec, + options); + } + + /** + * Migrate an Azure Cosmos DB Gremlin graph from autoscale to manual throughput + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName Cosmos DB database account name. + * @param databaseName Cosmos DB database name. + * @param graphName Cosmos DB graph name. + * @param [options] The optional parameters + * @returns Promise + */ + beginMigrateGremlinGraphToManualThroughput(resourceGroupName: string, accountName: string, databaseName: string, graphName: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + accountName, + databaseName, + graphName, + options + }, + beginMigrateGremlinGraphToManualThroughputOperationSpec, + options); + } } // Operation Specifications @@ -730,6 +868,60 @@ const beginUpdateGremlinDatabaseThroughputOperationSpec: msRest.OperationSpec = serializer }; +const beginMigrateGremlinDatabaseToAutoscaleOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/gremlinDatabases/{databaseName}/throughputSettings/default/migrateToAutoscale", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.accountName, + Parameters.databaseName + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ThroughputSettingsGetResults + }, + 202: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginMigrateGremlinDatabaseToManualThroughputOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/gremlinDatabases/{databaseName}/throughputSettings/default/migrateToManualThroughput", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.accountName, + Parameters.databaseName + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ThroughputSettingsGetResults + }, + 202: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + const beginCreateUpdateGremlinGraphOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/gremlinDatabases/{databaseName}/graphs/{graphName}", @@ -825,3 +1017,59 @@ const beginUpdateGremlinGraphThroughputOperationSpec: msRest.OperationSpec = { }, serializer }; + +const beginMigrateGremlinGraphToAutoscaleOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/gremlinDatabases/{databaseName}/graphs/{graphName}/throughputSettings/default/migrateToAutoscale", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.accountName, + Parameters.databaseName, + Parameters.graphName + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ThroughputSettingsGetResults + }, + 202: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginMigrateGremlinGraphToManualThroughputOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/gremlinDatabases/{databaseName}/graphs/{graphName}/throughputSettings/default/migrateToManualThroughput", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.accountName, + Parameters.databaseName, + Parameters.graphName + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ThroughputSettingsGetResults + }, + 202: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/cosmosdb/arm-cosmosdb/src/operations/index.ts b/sdk/cosmosdb/arm-cosmosdb/src/operations/index.ts index e64020460889..d5983c59eca5 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/operations/index.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/operations/index.ts @@ -26,7 +26,6 @@ export * from "./mongoDBResources"; export * from "./tableResources"; export * from "./cassandraResources"; export * from "./gremlinResources"; -export * from "./restorableDatabaseAccounts"; export * from "./notebookWorkspaces"; export * from "./privateLinkResources"; export * from "./privateEndpointConnections"; diff --git a/sdk/cosmosdb/arm-cosmosdb/src/operations/mongoDBResources.ts b/sdk/cosmosdb/arm-cosmosdb/src/operations/mongoDBResources.ts index b0ad885dacde..2f14b65c840e 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/operations/mongoDBResources.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/operations/mongoDBResources.ts @@ -176,6 +176,32 @@ export class MongoDBResources { .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } + /** + * Migrate an Azure Cosmos DB MongoDB database from manual throughput to autoscale + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName Cosmos DB database account name. + * @param databaseName Cosmos DB database name. + * @param [options] The optional parameters + * @returns Promise + */ + migrateMongoDBDatabaseToAutoscale(resourceGroupName: string, accountName: string, databaseName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginMigrateMongoDBDatabaseToAutoscale(resourceGroupName,accountName,databaseName,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * Migrate an Azure Cosmos DB MongoDB database from autoscale to manual throughput + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName Cosmos DB database account name. + * @param databaseName Cosmos DB database name. + * @param [options] The optional parameters + * @returns Promise + */ + migrateMongoDBDatabaseToManualThroughput(resourceGroupName: string, accountName: string, databaseName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginMigrateMongoDBDatabaseToManualThroughput(resourceGroupName,accountName,databaseName,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + /** * Lists the MongoDB collection under an existing Azure Cosmos DB database account. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -339,6 +365,34 @@ export class MongoDBResources { .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } + /** + * Migrate an Azure Cosmos DB MongoDB collection from manual throughput to autoscale + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName Cosmos DB database account name. + * @param databaseName Cosmos DB database name. + * @param collectionName Cosmos DB collection name. + * @param [options] The optional parameters + * @returns Promise + */ + migrateMongoDBCollectionToAutoscale(resourceGroupName: string, accountName: string, databaseName: string, collectionName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginMigrateMongoDBCollectionToAutoscale(resourceGroupName,accountName,databaseName,collectionName,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * Migrate an Azure Cosmos DB MongoDB collection from autoscale to manual throughput + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName Cosmos DB database account name. + * @param databaseName Cosmos DB database name. + * @param collectionName Cosmos DB collection name. + * @param [options] The optional parameters + * @returns Promise + */ + migrateMongoDBCollectionToManualThroughput(resourceGroupName: string, accountName: string, databaseName: string, collectionName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginMigrateMongoDBCollectionToManualThroughput(resourceGroupName,accountName,databaseName,collectionName,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + /** * Create or updates Azure Cosmos DB MongoDB database * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -405,6 +459,46 @@ export class MongoDBResources { options); } + /** + * Migrate an Azure Cosmos DB MongoDB database from manual throughput to autoscale + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName Cosmos DB database account name. + * @param databaseName Cosmos DB database name. + * @param [options] The optional parameters + * @returns Promise + */ + beginMigrateMongoDBDatabaseToAutoscale(resourceGroupName: string, accountName: string, databaseName: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + accountName, + databaseName, + options + }, + beginMigrateMongoDBDatabaseToAutoscaleOperationSpec, + options); + } + + /** + * Migrate an Azure Cosmos DB MongoDB database from autoscale to manual throughput + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName Cosmos DB database account name. + * @param databaseName Cosmos DB database name. + * @param [options] The optional parameters + * @returns Promise + */ + beginMigrateMongoDBDatabaseToManualThroughput(resourceGroupName: string, accountName: string, databaseName: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + accountName, + databaseName, + options + }, + beginMigrateMongoDBDatabaseToManualThroughputOperationSpec, + options); + } + /** * Create or update an Azure Cosmos DB MongoDB Collection * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -476,6 +570,50 @@ export class MongoDBResources { beginUpdateMongoDBCollectionThroughputOperationSpec, options); } + + /** + * Migrate an Azure Cosmos DB MongoDB collection from manual throughput to autoscale + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName Cosmos DB database account name. + * @param databaseName Cosmos DB database name. + * @param collectionName Cosmos DB collection name. + * @param [options] The optional parameters + * @returns Promise + */ + beginMigrateMongoDBCollectionToAutoscale(resourceGroupName: string, accountName: string, databaseName: string, collectionName: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + accountName, + databaseName, + collectionName, + options + }, + beginMigrateMongoDBCollectionToAutoscaleOperationSpec, + options); + } + + /** + * Migrate an Azure Cosmos DB MongoDB collection from autoscale to manual throughput + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName Cosmos DB database account name. + * @param databaseName Cosmos DB database name. + * @param collectionName Cosmos DB collection name. + * @param [options] The optional parameters + * @returns Promise + */ + beginMigrateMongoDBCollectionToManualThroughput(resourceGroupName: string, accountName: string, databaseName: string, collectionName: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + accountName, + databaseName, + collectionName, + options + }, + beginMigrateMongoDBCollectionToManualThroughputOperationSpec, + options); + } } // Operation Specifications @@ -730,6 +868,60 @@ const beginUpdateMongoDBDatabaseThroughputOperationSpec: msRest.OperationSpec = serializer }; +const beginMigrateMongoDBDatabaseToAutoscaleOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/mongodbDatabases/{databaseName}/throughputSettings/default/migrateToAutoscale", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.accountName, + Parameters.databaseName + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ThroughputSettingsGetResults + }, + 202: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginMigrateMongoDBDatabaseToManualThroughputOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/mongodbDatabases/{databaseName}/throughputSettings/default/migrateToManualThroughput", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.accountName, + Parameters.databaseName + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ThroughputSettingsGetResults + }, + 202: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + const beginCreateUpdateMongoDBCollectionOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/mongodbDatabases/{databaseName}/collections/{collectionName}", @@ -825,3 +1017,59 @@ const beginUpdateMongoDBCollectionThroughputOperationSpec: msRest.OperationSpec }, serializer }; + +const beginMigrateMongoDBCollectionToAutoscaleOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/mongodbDatabases/{databaseName}/collections/{collectionName}/throughputSettings/default/migrateToAutoscale", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.accountName, + Parameters.databaseName, + Parameters.collectionName + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ThroughputSettingsGetResults + }, + 202: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginMigrateMongoDBCollectionToManualThroughputOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/mongodbDatabases/{databaseName}/collections/{collectionName}/throughputSettings/default/migrateToManualThroughput", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.accountName, + Parameters.databaseName, + Parameters.collectionName + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ThroughputSettingsGetResults + }, + 202: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/cosmosdb/arm-cosmosdb/src/operations/restorableDatabaseAccounts.ts b/sdk/cosmosdb/arm-cosmosdb/src/operations/restorableDatabaseAccounts.ts deleted file mode 100644 index 9dd498620a36..000000000000 --- a/sdk/cosmosdb/arm-cosmosdb/src/operations/restorableDatabaseAccounts.ts +++ /dev/null @@ -1,187 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. - */ - -import * as msRest from "@azure/ms-rest-js"; -import * as Models from "../models"; -import * as Mappers from "../models/restorableDatabaseAccountsMappers"; -import * as Parameters from "../models/parameters"; -import { CosmosDBManagementClientContext } from "../cosmosDBManagementClientContext"; - -/** Class representing a RestorableDatabaseAccounts. */ -export class RestorableDatabaseAccounts { - private readonly client: CosmosDBManagementClientContext; - - /** - * Create a RestorableDatabaseAccounts. - * @param {CosmosDBManagementClientContext} client Reference to the service client. - */ - constructor(client: CosmosDBManagementClientContext) { - this.client = client; - } - - /** - * Lists all the restorable Azure Cosmos DB database accounts available under the subscription and - * in a region. - * @param location Cosmos DB region, with spaces between words and each word capitalized. - * @param [options] The optional parameters - * @returns Promise - */ - listByLocation(location: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param location Cosmos DB region, with spaces between words and each word capitalized. - * @param callback The callback - */ - listByLocation(location: string, callback: msRest.ServiceCallback): void; - /** - * @param location Cosmos DB region, with spaces between words and each word capitalized. - * @param options The optional parameters - * @param callback The callback - */ - listByLocation(location: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByLocation(location: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - location, - options - }, - listByLocationOperationSpec, - callback) as Promise; - } - - /** - * Lists all the restorable Azure Cosmos DB database accounts available under the subscription. - * @param [options] The optional parameters - * @returns Promise - */ - list(options?: msRest.RequestOptionsBase): Promise; - /** - * @param callback The callback - */ - list(callback: msRest.ServiceCallback): void; - /** - * @param options The optional parameters - * @param callback The callback - */ - list(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - list(options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - options - }, - listOperationSpec, - callback) as Promise; - } - - /** - * Retrieves the properties of an existing Azure Cosmos DB restorable database account. - * @param location Cosmos DB region, with spaces between words and each word capitalized. - * @param instanceId The instanceId GUID of a restorable database account. - * @param [options] The optional parameters - * @returns Promise - */ - getByLocation(location: string, instanceId: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param location Cosmos DB region, with spaces between words and each word capitalized. - * @param instanceId The instanceId GUID of a restorable database account. - * @param callback The callback - */ - getByLocation(location: string, instanceId: string, callback: msRest.ServiceCallback): void; - /** - * @param location Cosmos DB region, with spaces between words and each word capitalized. - * @param instanceId The instanceId GUID of a restorable database account. - * @param options The optional parameters - * @param callback The callback - */ - getByLocation(location: string, instanceId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - getByLocation(location: string, instanceId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - location, - instanceId, - options - }, - getByLocationOperationSpec, - callback) as Promise; - } -} - -// Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const listByLocationOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/providers/Microsoft.DocumentDB/locations/{location}/restorableDatabaseAccounts", - urlParameters: [ - Parameters.subscriptionId, - Parameters.location - ], - queryParameters: [ - Parameters.apiVersion0 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.RestorableDatabaseAccountsListResult - }, - default: { - bodyMapper: Mappers.ErrorResponseUpdatedFormat - } - }, - serializer -}; - -const listOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/providers/Microsoft.DocumentDB/restorableDatabaseAccounts", - urlParameters: [ - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion0 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.RestorableDatabaseAccountsListResult - }, - default: { - bodyMapper: Mappers.ErrorResponseUpdatedFormat - } - }, - serializer -}; - -const getByLocationOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/providers/Microsoft.DocumentDB/locations/{location}/restorableDatabaseAccounts/{instanceId}", - urlParameters: [ - Parameters.subscriptionId, - Parameters.location, - Parameters.instanceId - ], - queryParameters: [ - Parameters.apiVersion0 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.RestorableDatabaseAccountGetResult - }, - default: { - bodyMapper: Mappers.ErrorResponseUpdatedFormat - } - }, - serializer -}; diff --git a/sdk/cosmosdb/arm-cosmosdb/src/operations/sqlResources.ts b/sdk/cosmosdb/arm-cosmosdb/src/operations/sqlResources.ts index 6f9978440405..3392930254a7 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/operations/sqlResources.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/operations/sqlResources.ts @@ -174,6 +174,32 @@ export class SqlResources { .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } + /** + * Migrate an Azure Cosmos DB SQL database from manual throughput to autoscale + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName Cosmos DB database account name. + * @param databaseName Cosmos DB database name. + * @param [options] The optional parameters + * @returns Promise + */ + migrateSqlDatabaseToAutoscale(resourceGroupName: string, accountName: string, databaseName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginMigrateSqlDatabaseToAutoscale(resourceGroupName,accountName,databaseName,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * Migrate an Azure Cosmos DB SQL database from autoscale to manual throughput + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName Cosmos DB database account name. + * @param databaseName Cosmos DB database name. + * @param [options] The optional parameters + * @returns Promise + */ + migrateSqlDatabaseToManualThroughput(resourceGroupName: string, accountName: string, databaseName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginMigrateSqlDatabaseToManualThroughput(resourceGroupName,accountName,databaseName,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + /** * Lists the SQL container under an existing Azure Cosmos DB database account. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -336,6 +362,34 @@ export class SqlResources { .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } + /** + * Migrate an Azure Cosmos DB SQL container from manual throughput to autoscale + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName Cosmos DB database account name. + * @param databaseName Cosmos DB database name. + * @param containerName Cosmos DB container name. + * @param [options] The optional parameters + * @returns Promise + */ + migrateSqlContainerToAutoscale(resourceGroupName: string, accountName: string, databaseName: string, containerName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginMigrateSqlContainerToAutoscale(resourceGroupName,accountName,databaseName,containerName,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * Migrate an Azure Cosmos DB SQL container from autoscale to manual throughput + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName Cosmos DB database account name. + * @param databaseName Cosmos DB database name. + * @param containerName Cosmos DB container name. + * @param [options] The optional parameters + * @returns Promise + */ + migrateSqlContainerToManualThroughput(resourceGroupName: string, accountName: string, databaseName: string, containerName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginMigrateSqlContainerToManualThroughput(resourceGroupName,accountName,databaseName,containerName,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + /** * Lists the SQL storedProcedure under an existing Azure Cosmos DB database account. * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -748,6 +802,46 @@ export class SqlResources { options); } + /** + * Migrate an Azure Cosmos DB SQL database from manual throughput to autoscale + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName Cosmos DB database account name. + * @param databaseName Cosmos DB database name. + * @param [options] The optional parameters + * @returns Promise + */ + beginMigrateSqlDatabaseToAutoscale(resourceGroupName: string, accountName: string, databaseName: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + accountName, + databaseName, + options + }, + beginMigrateSqlDatabaseToAutoscaleOperationSpec, + options); + } + + /** + * Migrate an Azure Cosmos DB SQL database from autoscale to manual throughput + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName Cosmos DB database account name. + * @param databaseName Cosmos DB database name. + * @param [options] The optional parameters + * @returns Promise + */ + beginMigrateSqlDatabaseToManualThroughput(resourceGroupName: string, accountName: string, databaseName: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + accountName, + databaseName, + options + }, + beginMigrateSqlDatabaseToManualThroughputOperationSpec, + options); + } + /** * Create or update an Azure Cosmos DB SQL container * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -820,6 +914,50 @@ export class SqlResources { options); } + /** + * Migrate an Azure Cosmos DB SQL container from manual throughput to autoscale + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName Cosmos DB database account name. + * @param databaseName Cosmos DB database name. + * @param containerName Cosmos DB container name. + * @param [options] The optional parameters + * @returns Promise + */ + beginMigrateSqlContainerToAutoscale(resourceGroupName: string, accountName: string, databaseName: string, containerName: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + accountName, + databaseName, + containerName, + options + }, + beginMigrateSqlContainerToAutoscaleOperationSpec, + options); + } + + /** + * Migrate an Azure Cosmos DB SQL container from autoscale to manual throughput + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName Cosmos DB database account name. + * @param databaseName Cosmos DB database name. + * @param containerName Cosmos DB container name. + * @param [options] The optional parameters + * @returns Promise + */ + beginMigrateSqlContainerToManualThroughput(resourceGroupName: string, accountName: string, databaseName: string, containerName: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + accountName, + databaseName, + containerName, + options + }, + beginMigrateSqlContainerToManualThroughputOperationSpec, + options); + } + /** * Create or update an Azure Cosmos DB SQL storedProcedure * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -1390,6 +1528,60 @@ const beginUpdateSqlDatabaseThroughputOperationSpec: msRest.OperationSpec = { serializer }; +const beginMigrateSqlDatabaseToAutoscaleOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/throughputSettings/default/migrateToAutoscale", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.accountName, + Parameters.databaseName + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ThroughputSettingsGetResults + }, + 202: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginMigrateSqlDatabaseToManualThroughputOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/throughputSettings/default/migrateToManualThroughput", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.accountName, + Parameters.databaseName + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ThroughputSettingsGetResults + }, + 202: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + const beginCreateUpdateSqlContainerOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/containers/{containerName}", @@ -1486,6 +1678,62 @@ const beginUpdateSqlContainerThroughputOperationSpec: msRest.OperationSpec = { serializer }; +const beginMigrateSqlContainerToAutoscaleOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/containers/{containerName}/throughputSettings/default/migrateToAutoscale", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.accountName, + Parameters.databaseName, + Parameters.containerName + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ThroughputSettingsGetResults + }, + 202: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginMigrateSqlContainerToManualThroughputOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/containers/{containerName}/throughputSettings/default/migrateToManualThroughput", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.accountName, + Parameters.databaseName, + Parameters.containerName + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ThroughputSettingsGetResults + }, + 202: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + const beginCreateUpdateSqlStoredProcedureOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/containers/{containerName}/storedProcedures/{storedProcedureName}", diff --git a/sdk/cosmosdb/arm-cosmosdb/src/operations/tableResources.ts b/sdk/cosmosdb/arm-cosmosdb/src/operations/tableResources.ts index a23fc4eb04ac..a94d2af9ed93 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/operations/tableResources.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/operations/tableResources.ts @@ -174,6 +174,32 @@ export class TableResources { .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } + /** + * Migrate an Azure Cosmos DB Table from manual throughput to autoscale + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName Cosmos DB database account name. + * @param tableName Cosmos DB table name. + * @param [options] The optional parameters + * @returns Promise + */ + migrateTableToAutoscale(resourceGroupName: string, accountName: string, tableName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginMigrateTableToAutoscale(resourceGroupName,accountName,tableName,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * Migrate an Azure Cosmos DB Table from autoscale to manual throughput + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName Cosmos DB database account name. + * @param tableName Cosmos DB table name. + * @param [options] The optional parameters + * @returns Promise + */ + migrateTableToManualThroughput(resourceGroupName: string, accountName: string, tableName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginMigrateTableToManualThroughput(resourceGroupName,accountName,tableName,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + /** * Create or update an Azure Cosmos DB Table * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -238,6 +264,46 @@ export class TableResources { beginUpdateTableThroughputOperationSpec, options); } + + /** + * Migrate an Azure Cosmos DB Table from manual throughput to autoscale + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName Cosmos DB database account name. + * @param tableName Cosmos DB table name. + * @param [options] The optional parameters + * @returns Promise + */ + beginMigrateTableToAutoscale(resourceGroupName: string, accountName: string, tableName: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + accountName, + tableName, + options + }, + beginMigrateTableToAutoscaleOperationSpec, + options); + } + + /** + * Migrate an Azure Cosmos DB Table from autoscale to manual throughput + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName Cosmos DB database account name. + * @param tableName Cosmos DB table name. + * @param [options] The optional parameters + * @returns Promise + */ + beginMigrateTableToManualThroughput(resourceGroupName: string, accountName: string, tableName: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + accountName, + tableName, + options + }, + beginMigrateTableToManualThroughputOperationSpec, + options); + } } // Operation Specifications @@ -411,3 +477,57 @@ const beginUpdateTableThroughputOperationSpec: msRest.OperationSpec = { }, serializer }; + +const beginMigrateTableToAutoscaleOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/tables/{tableName}/throughputSettings/default/migrateToAutoscale", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.accountName, + Parameters.tableName + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ThroughputSettingsGetResults + }, + 202: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginMigrateTableToManualThroughputOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/tables/{tableName}/throughputSettings/default/migrateToManualThroughput", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.accountName, + Parameters.tableName + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ThroughputSettingsGetResults + }, + 202: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +};