From f8e8f647740c88c5d05546e5cfb01d5952f705ac Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Wed, 3 Mar 2021 00:20:34 +0000 Subject: [PATCH] CodeGen from PR 13244 in Azure/azure-rest-api-specs Merge 73e0f479f37a8a94037658c76f99b77e03525d15 into 0a7c908bd6b77bafe8f547116cc4da5b63a2aa2d --- .../src/cosmosDBManagementClient.ts | 18 + .../src/cosmosDBManagementClientContext.ts | 10 +- .../src/models/cassandraClustersMappers.ts | 146 + .../src/models/cassandraDataCentersMappers.ts | 142 + .../src/models/cassandraResourcesMappers.ts | 17 +- .../src/models/databaseAccountsMappers.ts | 15 + .../src/models/gremlinResourcesMappers.ts | 17 +- sdk/cosmosdb/arm-cosmosdb/src/models/index.ts | 3576 +++++++++++++---- .../arm-cosmosdb/src/models/mappers.ts | 2114 ++++++++-- .../src/models/mongoDBResourcesMappers.ts | 17 +- .../src/models/notebookWorkspacesMappers.ts | 15 + .../arm-cosmosdb/src/models/parameters.ts | 133 + .../privateEndpointConnectionsMappers.ts | 15 + .../src/models/privateLinkResourcesMappers.ts | 15 + .../restorableDatabaseAccountsMappers.ts | 16 + .../restorableMongodbCollectionsMappers.ts | 16 + .../restorableMongodbDatabasesMappers.ts | 16 + .../restorableMongodbResourcesMappers.ts | 15 + .../models/restorableSqlContainersMappers.ts | 27 + .../models/restorableSqlDatabasesMappers.ts | 17 + .../models/restorableSqlResourcesMappers.ts | 15 + .../src/models/sqlResourcesMappers.ts | 21 +- .../src/models/tableResourcesMappers.ts | 17 +- .../src/operations/cassandraClusters.ts | 616 +++ .../src/operations/cassandraDataCenters.ts | 353 ++ .../src/operations/cassandraResources.ts | 8 +- .../src/operations/gremlinResources.ts | 8 +- .../arm-cosmosdb/src/operations/index.ts | 9 + .../src/operations/mongoDBResources.ts | 10 +- .../operations/restorableDatabaseAccounts.ts | 189 + .../restorableMongodbCollections.ts | 89 + .../operations/restorableMongodbDatabases.ts | 89 + .../operations/restorableMongodbResources.ts | 91 + .../src/operations/restorableSqlContainers.ts | 89 + .../src/operations/restorableSqlDatabases.ts | 89 + .../src/operations/restorableSqlResources.ts | 91 + .../src/operations/sqlResources.ts | 510 ++- .../src/operations/tableResources.ts | 4 +- 38 files changed, 7575 insertions(+), 1080 deletions(-) create mode 100644 sdk/cosmosdb/arm-cosmosdb/src/models/cassandraClustersMappers.ts create mode 100644 sdk/cosmosdb/arm-cosmosdb/src/models/cassandraDataCentersMappers.ts create mode 100644 sdk/cosmosdb/arm-cosmosdb/src/models/restorableDatabaseAccountsMappers.ts create mode 100644 sdk/cosmosdb/arm-cosmosdb/src/models/restorableMongodbCollectionsMappers.ts create mode 100644 sdk/cosmosdb/arm-cosmosdb/src/models/restorableMongodbDatabasesMappers.ts create mode 100644 sdk/cosmosdb/arm-cosmosdb/src/models/restorableMongodbResourcesMappers.ts create mode 100644 sdk/cosmosdb/arm-cosmosdb/src/models/restorableSqlContainersMappers.ts create mode 100644 sdk/cosmosdb/arm-cosmosdb/src/models/restorableSqlDatabasesMappers.ts create mode 100644 sdk/cosmosdb/arm-cosmosdb/src/models/restorableSqlResourcesMappers.ts create mode 100644 sdk/cosmosdb/arm-cosmosdb/src/operations/cassandraClusters.ts create mode 100644 sdk/cosmosdb/arm-cosmosdb/src/operations/cassandraDataCenters.ts create mode 100644 sdk/cosmosdb/arm-cosmosdb/src/operations/restorableDatabaseAccounts.ts create mode 100644 sdk/cosmosdb/arm-cosmosdb/src/operations/restorableMongodbCollections.ts create mode 100644 sdk/cosmosdb/arm-cosmosdb/src/operations/restorableMongodbDatabases.ts create mode 100644 sdk/cosmosdb/arm-cosmosdb/src/operations/restorableMongodbResources.ts create mode 100644 sdk/cosmosdb/arm-cosmosdb/src/operations/restorableSqlContainers.ts create mode 100644 sdk/cosmosdb/arm-cosmosdb/src/operations/restorableSqlDatabases.ts create mode 100644 sdk/cosmosdb/arm-cosmosdb/src/operations/restorableSqlResources.ts diff --git a/sdk/cosmosdb/arm-cosmosdb/src/cosmosDBManagementClient.ts b/sdk/cosmosdb/arm-cosmosdb/src/cosmosDBManagementClient.ts index cba63f35cc5b..31748935042d 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/cosmosDBManagementClient.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/cosmosDBManagementClient.ts @@ -34,7 +34,16 @@ class CosmosDBManagementClient extends CosmosDBManagementClientContext { tableResources: operations.TableResources; cassandraResources: operations.CassandraResources; gremlinResources: operations.GremlinResources; + restorableDatabaseAccounts: operations.RestorableDatabaseAccounts; notebookWorkspaces: operations.NotebookWorkspaces; + restorableSqlDatabases: operations.RestorableSqlDatabases; + restorableSqlContainers: operations.RestorableSqlContainers; + restorableSqlResources: operations.RestorableSqlResources; + restorableMongodbDatabases: operations.RestorableMongodbDatabases; + restorableMongodbCollections: operations.RestorableMongodbCollections; + restorableMongodbResources: operations.RestorableMongodbResources; + cassandraClusters: operations.CassandraClusters; + cassandraDataCenters: operations.CassandraDataCenters; privateLinkResources: operations.PrivateLinkResources; privateEndpointConnections: operations.PrivateEndpointConnections; @@ -64,7 +73,16 @@ 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.restorableSqlDatabases = new operations.RestorableSqlDatabases(this); + this.restorableSqlContainers = new operations.RestorableSqlContainers(this); + this.restorableSqlResources = new operations.RestorableSqlResources(this); + this.restorableMongodbDatabases = new operations.RestorableMongodbDatabases(this); + this.restorableMongodbCollections = new operations.RestorableMongodbCollections(this); + this.restorableMongodbResources = new operations.RestorableMongodbResources(this); + this.cassandraClusters = new operations.CassandraClusters(this); + this.cassandraDataCenters = new operations.CassandraDataCenters(this); this.privateLinkResources = new operations.PrivateLinkResources(this); this.privateEndpointConnections = new operations.PrivateEndpointConnections(this); } diff --git a/sdk/cosmosdb/arm-cosmosdb/src/cosmosDBManagementClientContext.ts b/sdk/cosmosdb/arm-cosmosdb/src/cosmosDBManagementClientContext.ts index cb6b851a6558..9f8ec421bf22 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/cosmosDBManagementClientContext.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/cosmosDBManagementClientContext.ts @@ -16,8 +16,8 @@ const packageVersion = "12.0.0"; export class CosmosDBManagementClientContext extends msRestAzure.AzureServiceClient { credentials: msRest.ServiceClientCredentials; - apiVersion?: string; subscriptionId: string; + apiVersion?: string; /** * Initializes a new instance of the CosmosDBManagementClient class. @@ -36,14 +36,14 @@ export class CosmosDBManagementClientContext extends msRestAzure.AzureServiceCli if (!options) { options = {}; } - if (!options.userAgent) { + if(!options.userAgent) { const defaultUserAgent = msRestAzure.getDefaultUserAgentValue(); options.userAgent = `${packageName}/${packageVersion} ${defaultUserAgent}`; } super(credentials, options); - this.apiVersion = '2021-01-15'; + this.apiVersion = '2021-03-01-preview'; this.acceptLanguage = 'en-US'; this.longRunningOperationRetryTimeout = 30; this.baseUri = options.baseUri || this.baseUri || "https://management.azure.com"; @@ -51,10 +51,10 @@ export class CosmosDBManagementClientContext extends msRestAzure.AzureServiceCli this.credentials = credentials; this.subscriptionId = subscriptionId; - if (options.acceptLanguage !== null && options.acceptLanguage !== undefined) { + if(options.acceptLanguage !== null && options.acceptLanguage !== undefined) { this.acceptLanguage = options.acceptLanguage; } - if (options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) { + if(options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) { this.longRunningOperationRetryTimeout = options.longRunningOperationRetryTimeout; } } diff --git a/sdk/cosmosdb/arm-cosmosdb/src/models/cassandraClustersMappers.ts b/sdk/cosmosdb/arm-cosmosdb/src/models/cassandraClustersMappers.ts new file mode 100644 index 000000000000..36729fa8749d --- /dev/null +++ b/sdk/cosmosdb/arm-cosmosdb/src/models/cassandraClustersMappers.ts @@ -0,0 +1,146 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * 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, + BackupResource, + BackupResourceProperties, + BaseResource, + Capability, + CassandraKeyspaceCreateUpdateParameters, + CassandraKeyspaceGetPropertiesOptions, + CassandraKeyspaceGetPropertiesResource, + CassandraKeyspaceGetResults, + CassandraKeyspaceResource, + CassandraPartitionKey, + CassandraSchema, + CassandraTableCreateUpdateParameters, + CassandraTableGetPropertiesOptions, + CassandraTableGetPropertiesResource, + CassandraTableGetResults, + CassandraTableResource, + Certificate, + CloudError, + ClusterKey, + ClusterNodeStatus, + ClusterNodeStatusNodesItem, + ClusterResource, + Column, + CompositePath, + ConflictResolutionPolicy, + ConsistencyPolicy, + ContainerPartitionKey, + ContinuousModeBackupPolicy, + CorsPolicy, + CreateUpdateOptions, + DatabaseAccountCreateUpdateParameters, + DatabaseAccountCreateUpdateProperties, + DatabaseAccountGetResults, + DatabaseRestoreResource, + DataCenterResource, + DefaultRequestDatabaseAccountCreateUpdateProperties, + ErrorResponse, + ExcludedPath, + FailoverPolicy, + GremlinDatabaseCreateUpdateParameters, + GremlinDatabaseGetPropertiesOptions, + GremlinDatabaseGetPropertiesResource, + GremlinDatabaseGetResults, + GremlinDatabaseResource, + GremlinGraphCreateUpdateParameters, + GremlinGraphGetPropertiesOptions, + GremlinGraphGetPropertiesResource, + GremlinGraphGetResults, + GremlinGraphResource, + IncludedPath, + Indexes, + IndexingPolicy, + IpAddressOrRange, + ListBackups, + ListClusters, + Location, + ManagedServiceIdentity, + ManagedServiceIdentityUserAssignedIdentitiesValue, + MongoDBCollectionCreateUpdateParameters, + MongoDBCollectionGetPropertiesOptions, + MongoDBCollectionGetPropertiesResource, + MongoDBCollectionGetResults, + MongoDBCollectionResource, + MongoDBDatabaseCreateUpdateParameters, + MongoDBDatabaseGetPropertiesOptions, + MongoDBDatabaseGetPropertiesResource, + MongoDBDatabaseGetResults, + MongoDBDatabaseResource, + MongoIndex, + MongoIndexKeys, + MongoIndexOptions, + NotebookWorkspace, + NotebookWorkspaceCreateUpdateParameters, + OptionsResource, + PeriodicModeBackupPolicy, + PeriodicModeProperties, + Permission, + PrivateEndpointConnection, + PrivateEndpointProperty, + PrivateLinkResource, + PrivateLinkServiceConnectionStateProperty, + ProxyResource, + RepairPostBody, + Resource, + RestoreParameters, + RestoreReqeustDatabaseAccountCreateUpdateProperties, + SeedNode, + SpatialSpec, + SqlContainerCreateUpdateParameters, + SqlContainerGetPropertiesOptions, + SqlContainerGetPropertiesResource, + SqlContainerGetResults, + SqlContainerResource, + SqlDatabaseCreateUpdateParameters, + SqlDatabaseGetPropertiesOptions, + SqlDatabaseGetPropertiesResource, + SqlDatabaseGetResults, + SqlDatabaseResource, + SqlRoleAssignmentGetResults, + SqlRoleDefinitionGetResults, + 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/cassandraDataCentersMappers.ts b/sdk/cosmosdb/arm-cosmosdb/src/models/cassandraDataCentersMappers.ts new file mode 100644 index 000000000000..8f53fd712059 --- /dev/null +++ b/sdk/cosmosdb/arm-cosmosdb/src/models/cassandraDataCentersMappers.ts @@ -0,0 +1,142 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * 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, + BackupResource, + BackupResourceProperties, + BaseResource, + Capability, + CassandraKeyspaceCreateUpdateParameters, + CassandraKeyspaceGetPropertiesOptions, + CassandraKeyspaceGetPropertiesResource, + CassandraKeyspaceGetResults, + CassandraKeyspaceResource, + CassandraPartitionKey, + CassandraSchema, + CassandraTableCreateUpdateParameters, + CassandraTableGetPropertiesOptions, + CassandraTableGetPropertiesResource, + CassandraTableGetResults, + CassandraTableResource, + Certificate, + CloudError, + ClusterKey, + ClusterResource, + Column, + CompositePath, + ConflictResolutionPolicy, + ConsistencyPolicy, + ContainerPartitionKey, + ContinuousModeBackupPolicy, + CorsPolicy, + CreateUpdateOptions, + DatabaseAccountCreateUpdateParameters, + DatabaseAccountCreateUpdateProperties, + DatabaseAccountGetResults, + DatabaseRestoreResource, + DataCenterResource, + DefaultRequestDatabaseAccountCreateUpdateProperties, + ErrorResponse, + ExcludedPath, + FailoverPolicy, + GremlinDatabaseCreateUpdateParameters, + GremlinDatabaseGetPropertiesOptions, + GremlinDatabaseGetPropertiesResource, + GremlinDatabaseGetResults, + GremlinDatabaseResource, + GremlinGraphCreateUpdateParameters, + GremlinGraphGetPropertiesOptions, + GremlinGraphGetPropertiesResource, + GremlinGraphGetResults, + GremlinGraphResource, + IncludedPath, + Indexes, + IndexingPolicy, + IpAddressOrRange, + ListDataCenters, + Location, + ManagedServiceIdentity, + ManagedServiceIdentityUserAssignedIdentitiesValue, + MongoDBCollectionCreateUpdateParameters, + MongoDBCollectionGetPropertiesOptions, + MongoDBCollectionGetPropertiesResource, + MongoDBCollectionGetResults, + MongoDBCollectionResource, + MongoDBDatabaseCreateUpdateParameters, + MongoDBDatabaseGetPropertiesOptions, + MongoDBDatabaseGetPropertiesResource, + MongoDBDatabaseGetResults, + MongoDBDatabaseResource, + MongoIndex, + MongoIndexKeys, + MongoIndexOptions, + NotebookWorkspace, + NotebookWorkspaceCreateUpdateParameters, + OptionsResource, + PeriodicModeBackupPolicy, + PeriodicModeProperties, + Permission, + PrivateEndpointConnection, + PrivateEndpointProperty, + PrivateLinkResource, + PrivateLinkServiceConnectionStateProperty, + ProxyResource, + Resource, + RestoreParameters, + RestoreReqeustDatabaseAccountCreateUpdateProperties, + SeedNode, + SpatialSpec, + SqlContainerCreateUpdateParameters, + SqlContainerGetPropertiesOptions, + SqlContainerGetPropertiesResource, + SqlContainerGetResults, + SqlContainerResource, + SqlDatabaseCreateUpdateParameters, + SqlDatabaseGetPropertiesOptions, + SqlDatabaseGetPropertiesResource, + SqlDatabaseGetResults, + SqlDatabaseResource, + SqlRoleAssignmentGetResults, + SqlRoleDefinitionGetResults, + 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/cassandraResourcesMappers.ts b/sdk/cosmosdb/arm-cosmosdb/src/models/cassandraResourcesMappers.ts index a55e750b12d0..9412603c8a6c 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/models/cassandraResourcesMappers.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/models/cassandraResourcesMappers.ts @@ -16,6 +16,8 @@ export { AutoUpgradePolicyResource, AzureEntityResource, BackupPolicy, + BackupResource, + BackupResourceProperties, BaseResource, Capability, CassandraKeyspaceCreateUpdateParameters, @@ -32,8 +34,10 @@ export { CassandraTableGetResults, CassandraTableListResult, CassandraTableResource, + Certificate, CloudError, ClusterKey, + ClusterResource, Column, CompositePath, ConflictResolutionPolicy, @@ -43,9 +47,11 @@ export { CorsPolicy, CreateUpdateOptions, DatabaseAccountCreateUpdateParameters, + DatabaseAccountCreateUpdateProperties, DatabaseAccountGetResults, - ErrorResponse, - ErrorResponseUpdatedFormat, + DatabaseRestoreResource, + DataCenterResource, + DefaultRequestDatabaseAccountCreateUpdateProperties, ExcludedPath, FailoverPolicy, GremlinDatabaseCreateUpdateParameters, @@ -83,12 +89,16 @@ export { OptionsResource, PeriodicModeBackupPolicy, PeriodicModeProperties, + Permission, PrivateEndpointConnection, PrivateEndpointProperty, PrivateLinkResource, PrivateLinkServiceConnectionStateProperty, ProxyResource, Resource, + RestoreParameters, + RestoreReqeustDatabaseAccountCreateUpdateProperties, + SeedNode, SpatialSpec, SqlContainerCreateUpdateParameters, SqlContainerGetPropertiesOptions, @@ -100,6 +110,8 @@ export { SqlDatabaseGetPropertiesResource, SqlDatabaseGetResults, SqlDatabaseResource, + SqlRoleAssignmentGetResults, + SqlRoleDefinitionGetResults, SqlStoredProcedureCreateUpdateParameters, SqlStoredProcedureGetPropertiesResource, SqlStoredProcedureGetResults, @@ -112,6 +124,7 @@ export { SqlUserDefinedFunctionGetPropertiesResource, SqlUserDefinedFunctionGetResults, SqlUserDefinedFunctionResource, + SystemData, TableCreateUpdateParameters, TableGetPropertiesOptions, TableGetPropertiesResource, diff --git a/sdk/cosmosdb/arm-cosmosdb/src/models/databaseAccountsMappers.ts b/sdk/cosmosdb/arm-cosmosdb/src/models/databaseAccountsMappers.ts index 6348426e27d2..110dc138ad74 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/models/databaseAccountsMappers.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/models/databaseAccountsMappers.ts @@ -16,6 +16,8 @@ export { AutoUpgradePolicyResource, AzureEntityResource, BackupPolicy, + BackupResource, + BackupResourceProperties, BaseResource, Capability, CassandraKeyspaceCreateUpdateParameters, @@ -30,8 +32,10 @@ export { CassandraTableGetPropertiesResource, CassandraTableGetResults, CassandraTableResource, + Certificate, CloudError, ClusterKey, + ClusterResource, Column, CompositePath, ConflictResolutionPolicy, @@ -42,6 +46,7 @@ export { CreateUpdateOptions, DatabaseAccountConnectionString, DatabaseAccountCreateUpdateParameters, + DatabaseAccountCreateUpdateProperties, DatabaseAccountGetResults, DatabaseAccountListConnectionStringsResult, DatabaseAccountListKeysResult, @@ -49,6 +54,9 @@ export { DatabaseAccountRegenerateKeyParameters, DatabaseAccountsListResult, DatabaseAccountUpdateParameters, + DatabaseRestoreResource, + DataCenterResource, + DefaultRequestDatabaseAccountCreateUpdateProperties, ErrorResponse, ExcludedPath, FailoverPolicies, @@ -98,6 +106,7 @@ export { PercentileMetricValue, PeriodicModeBackupPolicy, PeriodicModeProperties, + Permission, PrivateEndpointConnection, PrivateEndpointProperty, PrivateLinkResource, @@ -105,6 +114,9 @@ export { ProxyResource, RegionForOnlineOffline, Resource, + RestoreParameters, + RestoreReqeustDatabaseAccountCreateUpdateProperties, + SeedNode, SpatialSpec, SqlContainerCreateUpdateParameters, SqlContainerGetPropertiesOptions, @@ -116,6 +128,8 @@ export { SqlDatabaseGetPropertiesResource, SqlDatabaseGetResults, SqlDatabaseResource, + SqlRoleAssignmentGetResults, + SqlRoleDefinitionGetResults, SqlStoredProcedureCreateUpdateParameters, SqlStoredProcedureGetPropertiesResource, SqlStoredProcedureGetResults, @@ -128,6 +142,7 @@ export { SqlUserDefinedFunctionGetPropertiesResource, SqlUserDefinedFunctionGetResults, SqlUserDefinedFunctionResource, + SystemData, TableCreateUpdateParameters, TableGetPropertiesOptions, TableGetPropertiesResource, diff --git a/sdk/cosmosdb/arm-cosmosdb/src/models/gremlinResourcesMappers.ts b/sdk/cosmosdb/arm-cosmosdb/src/models/gremlinResourcesMappers.ts index 9306efd19137..520fdd63d457 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/models/gremlinResourcesMappers.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/models/gremlinResourcesMappers.ts @@ -16,6 +16,8 @@ export { AutoUpgradePolicyResource, AzureEntityResource, BackupPolicy, + BackupResource, + BackupResourceProperties, BaseResource, Capability, CassandraKeyspaceCreateUpdateParameters, @@ -30,8 +32,10 @@ export { CassandraTableGetPropertiesResource, CassandraTableGetResults, CassandraTableResource, + Certificate, CloudError, ClusterKey, + ClusterResource, Column, CompositePath, ConflictResolutionPolicy, @@ -41,9 +45,11 @@ export { CorsPolicy, CreateUpdateOptions, DatabaseAccountCreateUpdateParameters, + DatabaseAccountCreateUpdateProperties, DatabaseAccountGetResults, - ErrorResponse, - ErrorResponseUpdatedFormat, + DatabaseRestoreResource, + DataCenterResource, + DefaultRequestDatabaseAccountCreateUpdateProperties, ExcludedPath, FailoverPolicy, GremlinDatabaseCreateUpdateParameters, @@ -83,12 +89,16 @@ export { OptionsResource, PeriodicModeBackupPolicy, PeriodicModeProperties, + Permission, PrivateEndpointConnection, PrivateEndpointProperty, PrivateLinkResource, PrivateLinkServiceConnectionStateProperty, ProxyResource, Resource, + RestoreParameters, + RestoreReqeustDatabaseAccountCreateUpdateProperties, + SeedNode, SpatialSpec, SqlContainerCreateUpdateParameters, SqlContainerGetPropertiesOptions, @@ -100,6 +110,8 @@ export { SqlDatabaseGetPropertiesResource, SqlDatabaseGetResults, SqlDatabaseResource, + SqlRoleAssignmentGetResults, + SqlRoleDefinitionGetResults, SqlStoredProcedureCreateUpdateParameters, SqlStoredProcedureGetPropertiesResource, SqlStoredProcedureGetResults, @@ -112,6 +124,7 @@ 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 c250f6f488df..c6c2bdf2b338 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/models/index.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/models/index.ts @@ -11,53 +11,6 @@ import * as msRest from "@azure/ms-rest-js"; export { BaseResource, CloudError }; -/** - * An interface representing ManagedServiceIdentityUserAssignedIdentitiesValue. - */ -export interface ManagedServiceIdentityUserAssignedIdentitiesValue { - /** - * The principal id of user assigned identity. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly principalId?: string; - /** - * The client id of user assigned identity. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly clientId?: 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 list of user identities associated with resource. The user identity dictionary key - * references will be ARM resource ids in the form: - * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'. - */ - userAssignedIdentities?: { [propertyName: string]: ManagedServiceIdentityUserAssignedIdentitiesValue }; -} - /** * IpAddressOrRange object */ @@ -269,6 +222,44 @@ export interface ApiProperties { serverVersion?: ServerVersion; } +/** + * Specific Databases to restore. + */ +export interface DatabaseRestoreResource { + /** + * The name of the database available for restore. + */ + databaseName?: string; + /** + * The names of the collections available for 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; + /** + * The id of the restorable database account from which the restore has to be initiated. For + * example: + * /subscriptions/{subscriptionId}/providers/Microsoft.DocumentDB/locations/{location}/restorableDatabaseAccounts/{restorableDatabaseAccountName} + */ + restoreSource?: string; + /** + * Time to which the account has to be restored (ISO-8601 format). + */ + restoreTimestampInUtc?: Date; + /** + * List of specific databases available for restore. + */ + databasesToRestore?: DatabaseRestoreResource[]; +} + /** * Contains the possible cases for BackupPolicy. */ @@ -311,6 +302,38 @@ 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 timestamp of resource last modification (UTC) + */ + lastModifiedAt?: Date; +} + /** * The core properties of ARM resources. */ @@ -335,6 +358,7 @@ export interface ARMResourceProperties extends BaseResource { */ location?: string; tags?: { [propertyName: string]: string }; + identity?: ManagedServiceIdentity; } /** @@ -347,7 +371,6 @@ export interface DatabaseAccountGetResults extends ARMResourceProperties { * 'GlobalDocumentDB'. */ kind?: DatabaseAccountKind; - identity?: ManagedServiceIdentity; provisioningState?: string; /** * The connection endpoint for the Cosmos DB database account. @@ -450,6 +473,20 @@ 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. */ @@ -467,6 +504,11 @@ export interface DatabaseAccountGetResults extends ARMResourceProperties { * An array that contains the Resource Ids for Network Acl Bypass for the Cosmos DB account. */ networkAclBypassResourceIds?: string[]; + /** + * 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; } /** @@ -1328,13 +1370,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. */ @@ -1355,6 +1390,53 @@ export interface RegionForOnlineOffline { region: string; } +/** + * An interface representing ManagedServiceIdentityUserAssignedIdentitiesValue. + */ +export interface ManagedServiceIdentityUserAssignedIdentitiesValue { + /** + * The principal id of user assigned identity. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly principalId?: string; + /** + * The client id of user assigned identity. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly clientId?: 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 list of user identities associated with resource. The user identity dictionary key + * references will be ARM resource ids in the form: + * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'. + */ + userAssignedIdentities?: { [propertyName: string]: ManagedServiceIdentityUserAssignedIdentitiesValue }; +} + /** * The resource model definition for a ARM proxy resource. It will have everything other than * required location and tags @@ -1495,16 +1577,18 @@ export interface ThroughputSettingsGetResults extends ARMResourceProperties { } /** - * Parameters to create and update Cosmos DB database accounts. + * Contains the possible cases for DatabaseAccountCreateUpdateProperties. */ -export interface DatabaseAccountCreateUpdateParameters extends ARMResourceProperties { +export type DatabaseAccountCreateUpdatePropertiesUnion = DatabaseAccountCreateUpdateProperties | DefaultRequestDatabaseAccountCreateUpdateProperties | RestoreReqeustDatabaseAccountCreateUpdateProperties; + +/** + * Properties to create and update Azure Cosmos DB database accounts. + */ +export interface DatabaseAccountCreateUpdateProperties { /** - * Indicates the type of database account. This can only be set at database account creation. - * Possible values include: 'GlobalDocumentDB', 'MongoDB', 'Parse'. Default value: - * 'GlobalDocumentDB'. + * Polymorphic Discriminator */ - kind?: DatabaseAccountKind; - identity?: ManagedServiceIdentity; + createMode: "DatabaseAccountCreateUpdateProperties"; /** * The consistency policy for the Cosmos DB account. */ @@ -1594,15 +1678,13 @@ export interface DatabaseAccountCreateUpdateParameters extends ARMResourceProper } /** - * Parameters for patching Azure Cosmos DB database account properties. + * Properties for non-restore Azure Cosmos DB database account requests. */ -export interface DatabaseAccountUpdateParameters { - tags?: { [propertyName: string]: string }; +export interface DefaultRequestDatabaseAccountCreateUpdateProperties { /** - * The location of the resource group to which the resource belongs. + * Polymorphic Discriminator */ - location?: string; - identity?: ManagedServiceIdentity; + createMode: "Default"; /** * The consistency policy for the Cosmos DB account. */ @@ -1610,7 +1692,7 @@ export interface DatabaseAccountUpdateParameters { /** * An array that contains the georeplication locations enabled for the Cosmos DB account. */ - locations?: Location[]; + locations: Location[]; /** * List of IpRules. */ @@ -1692,96 +1774,307 @@ export interface DatabaseAccountUpdateParameters { } /** - * The read-only access keys for the given database account. + * Properties to restore Azure Cosmos DB database account. */ -export interface DatabaseAccountListReadOnlyKeysResult { +export interface RestoreReqeustDatabaseAccountCreateUpdateProperties { /** - * 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.** + * Polymorphic Discriminator */ - readonly primaryReadonlyMasterKey?: string; + createMode: "Restore"; /** - * 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.** + * The consistency policy for the Cosmos DB account. */ - readonly secondaryReadonlyMasterKey?: string; -} - -/** - * The access keys for the given database account. - */ -export interface DatabaseAccountListKeysResult extends DatabaseAccountListReadOnlyKeysResult { + consistencyPolicy?: ConsistencyPolicy; /** - * 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.** + * An array that contains the georeplication locations enabled for the Cosmos DB account. */ - readonly primaryMasterKey?: string; + locations: Location[]; /** - * 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.** + * List of IpRules. */ - readonly secondaryMasterKey?: string; -} - -/** - * Connection string for the Cosmos DB account - */ -export interface DatabaseAccountConnectionString { + ipRules?: IpAddressOrRange[]; /** - * Value of the connection string - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Flag to indicate whether to enable/disable Virtual Network ACL rules. */ - readonly connectionString?: string; + isVirtualNetworkFilterEnabled?: boolean; /** - * Description of the connection string - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * 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. */ - readonly description?: string; -} - -/** - * The connection strings for the given database account. - */ -export interface DatabaseAccountListConnectionStringsResult { + enableAutomaticFailover?: boolean; /** - * An array that contains the connection strings for the Cosmos DB account. + * List of Cosmos DB capabilities for the account */ - connectionStrings?: DatabaseAccountConnectionString[]; -} - -/** - * Parameters to regenerate the keys within the database account. - */ -export interface DatabaseAccountRegenerateKeyParameters { + capabilities?: Capability[]; /** - * The access key to regenerate. Possible values include: 'primary', 'secondary', - * 'primaryReadonly', 'secondaryReadonly' + * List of Virtual Network ACL rules configured for the Cosmos DB account. */ - keyKind: KeyKind; -} - -/** - * Cosmos DB resource throughput object. Either throughput is required or autoscaleSettings is - * required, but not both. - */ -export interface ThroughputSettingsResource { + virtualNetworkRules?: VirtualNetworkRule[]; /** - * Value of the Cosmos DB resource throughput. Either throughput is required or autoscaleSettings - * is required, but not both. + * Enables the account to write in multiple locations */ - throughput?: number; + enableMultipleWriteLocations?: boolean; /** - * Cosmos DB resource for autoscale settings. Either throughput is required or autoscaleSettings - * is required, but not both. + * Enables the cassandra connector on the Cosmos DB C* account */ - autoscaleSettings?: AutoscaleSettingsResource; + enableCassandraConnector?: boolean; /** - * The minimum throughput of the resource - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The cassandra connector offer type for the Cosmos DB database C* account. Possible values + * include: 'Small' */ - readonly minimumThroughput?: string; + connectorOffer?: ConnectorOffer; /** - * The throughput replace is pending + * Disable write operations on metadata resources (databases, containers, throughput) via account + * keys + */ + disableKeyBasedMetadataWriteAccess?: boolean; + /** + * The URI of the key vault + */ + keyVaultKeyUri?: string; + /** + * Whether requests from Public Network are allowed. Possible values include: 'Enabled', + * 'Disabled' + */ + publicNetworkAccess?: PublicNetworkAccess; + /** + * Flag to indicate whether Free Tier is enabled. + */ + enableFreeTier?: boolean; + /** + * API specific properties. Currently, supported only for MongoDB API. + */ + apiProperties?: ApiProperties; + /** + * 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. + */ + cors?: CorsPolicy[]; + /** + * Indicates what services are allowed to bypass firewall checks. Possible values include: + * 'None', 'AzureServices' + */ + networkAclBypass?: NetworkAclBypass; + /** + * An array that contains the Resource Ids for Network Acl Bypass for the Cosmos DB account. + */ + networkAclBypassResourceIds?: string[]; + /** + * Parameters to indicate the information about the restore. + */ + restoreParameters?: RestoreParameters; +} + +/** + * Parameters to create and update Cosmos DB database accounts. + */ +export interface DatabaseAccountCreateUpdateParameters extends ARMResourceProperties { + /** + * 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 + */ + keyVaultKeyUri?: string; + /** + * Whether requests from Public Network are allowed. Possible values include: 'Enabled', + * 'Disabled' + */ + publicNetworkAccess?: PublicNetworkAccess; + /** + * Flag to indicate whether Free Tier is enabled. + */ + enableFreeTier?: boolean; + /** + * API specific properties. Currently, supported only for MongoDB API. + */ + apiProperties?: ApiProperties; + /** + * 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. + */ + cors?: CorsPolicy[]; + /** + * Indicates what services are allowed to bypass firewall checks. Possible values include: + * 'None', 'AzureServices' + */ + networkAclBypass?: NetworkAclBypass; + /** + * An array that contains the Resource Ids for Network Acl Bypass for the Cosmos DB account. + */ + networkAclBypassResourceIds?: string[]; + identity?: ManagedServiceIdentity; +} + +/** + * The read-only access keys for the given database account. + */ +export interface DatabaseAccountListReadOnlyKeysResult { + /** + * 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.** + */ + readonly primaryReadonlyMasterKey?: string; + /** + * 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.** + */ + readonly secondaryReadonlyMasterKey?: string; +} + +/** + * The access keys for the given database account. + */ +export interface DatabaseAccountListKeysResult extends DatabaseAccountListReadOnlyKeysResult { + /** + * 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.** + */ + readonly primaryMasterKey?: 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.** + */ + readonly secondaryMasterKey?: string; +} + +/** + * Connection string for the Cosmos DB account + */ +export interface DatabaseAccountConnectionString { + /** + * Value of the connection string + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly connectionString?: string; + /** + * Description of the connection string + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly description?: string; +} + +/** + * The connection strings for the given database account. + */ +export interface DatabaseAccountListConnectionStringsResult { + /** + * An array that contains the connection strings for the Cosmos DB account. + */ + connectionStrings?: DatabaseAccountConnectionString[]; +} + +/** + * Parameters to regenerate the keys within the database account. + */ +export interface DatabaseAccountRegenerateKeyParameters { + /** + * The access key to regenerate. Possible values include: 'primary', 'secondary', + * 'primaryReadonly', 'secondaryReadonly' + */ + keyKind: KeyKind; +} + +/** + * Cosmos DB resource throughput object. Either throughput is required or autoscaleSettings is + * required, but not both. + */ +export interface ThroughputSettingsResource { + /** + * Value of the Cosmos DB resource throughput. Either throughput is required or autoscaleSettings + * is required, but not both. + */ + throughput?: number; + /** + * Cosmos DB resource for autoscale settings. Either throughput is required or autoscaleSettings + * is required, but not both. + */ + autoscaleSettings?: AutoscaleSettingsResource; + /** + * The minimum throughput of the resource + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly minimumThroughput?: string; + /** + * The throughput replace is pending * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly offerReplacePending?: string; @@ -2541,6 +2834,10 @@ export interface PeriodicModeProperties { * An integer representing the time (in hours) that each backup is retained */ backupRetentionIntervalInHours?: number; + /** + * Enum to indicate type of backup residency. Possible values include: 'Geo', 'Local', 'Zone' + */ + backupStorageRedundancy?: BackupStorageRedundancy; } /** @@ -2568,15 +2865,89 @@ export interface ContinuousModeBackupPolicy { } /** - * The resource model definition for an Azure Resource Manager tracked top level resource which has - * 'tags' and a 'location' - * @summary Tracked Resource + * Properties of the regional restorable account. */ -export interface TrackedResource extends Resource { +export interface RestorableLocationResource { /** - * Resource tags. + * The location of the regional restorable account. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - tags?: { [propertyName: string]: string }; + readonly locationName?: string; + /** + * The instance id of the regional restorable account. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly regionalDatabaseAccountInstanceId?: string; + /** + * The creation time of the regional restorable database account (ISO-8601 format). + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly creationTime?: Date; + /** + * The time at which the regional restorable database account has been deleted (ISO-8601 format). + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly deletionTime?: Date; +} + +/** + * A Azure Cosmos DB restorable database account. + */ +export interface RestorableDatabaseAccountGetResult { + /** + * 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 API type of the restorable database account. Possible values include: 'MongoDB', + * 'Gremlin', 'Cassandra', 'Table', 'Sql', 'GremlinV2' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly apiType?: ApiType; + /** + * List of regions where the of the database account can be restored from. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly restorableLocations?: RestorableLocationResource[]; + /** + * The unique resource identifier of the ARM resource. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly id?: string; + /** + * The name of the ARM resource. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly name?: string; + /** + * The type of Azure resource. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly type?: string; + /** + * The location of the resource group to which the resource belongs. + */ + location?: string; +} + +/** + * The resource model definition for an Azure Resource Manager tracked top level resource which has + * 'tags' and a 'location' + * @summary Tracked Resource + */ +export interface TrackedResource extends Resource { + /** + * Resource tags. + */ + tags?: { [propertyName: string]: string }; /** * The geo-location where the resource lives */ @@ -2635,439 +3006,2023 @@ export interface NotebookWorkspaceConnectionInfoResult { } /** - * A private link resource + * The set of data plane operations permitted through this Role Definition. */ -export interface PrivateLinkResource extends ARMProxyResource { - /** - * The private link resource group id. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly groupId?: string; +export interface Permission { /** - * The private link resource required member names. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * An array of data actions that are allowed. */ - readonly requiredMembers?: string[]; + dataActions?: string[]; /** - * The private link resource required zone names. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * An array of data actions that are denied. */ - readonly requiredZoneNames?: string[]; + notDataActions?: string[]; } /** - * Optional Parameters. + * Parameters to create and update an Azure Cosmos DB SQL Role Definition. */ -export interface DatabaseAccountsListUsagesOptionalParams extends msRest.RequestOptionsBase { +export interface SqlRoleDefinitionCreateUpdateParameters { /** - * An OData filter expression that describes a subset of usages to return. The supported - * parameter is name.value (name of the metric, can have an or of multiple names). + * A user-friendly name for the Role Definition. Must be unique for the database account. */ - filter?: string; -} - -/** - * Optional Parameters. - */ -export interface DatabaseListUsagesOptionalParams extends msRest.RequestOptionsBase { + roleName?: string; /** - * An OData filter expression that describes a subset of usages to return. The supported - * parameter is name.value (name of the metric, can have an or of multiple names). + * Indicates whether the Role Definition was built-in or user created. Possible values include: + * 'BuiltInRole', 'CustomRole' */ - filter?: string; + type?: RoleDefinitionType; + /** + * A set of fully qualified Scopes at or below which Role Assignments may be created using this + * Role Definition. This will allow application of this Role Definition on the entire database + * account or any underlying Database / Collection. Must have at least one element. Scopes higher + * than Database account are not enforceable as assignable Scopes. Note that resources referenced + * in assignable Scopes need not exist. + */ + assignableScopes?: string[]; + /** + * The set of operations allowed through this Role Definition. + */ + permissions?: Permission[]; } /** - * Optional Parameters. + * An Azure Cosmos DB SQL Role Definition. */ -export interface CollectionListUsagesOptionalParams extends msRest.RequestOptionsBase { +export interface SqlRoleDefinitionGetResults extends ARMProxyResource { /** - * An OData filter expression that describes a subset of usages to return. The supported - * parameter is name.value (name of the metric, can have an or of multiple names). + * A user-friendly name for the Role Definition. Must be unique for the database account. */ - filter?: string; + roleName?: string; + /** + * Indicates whether the Role Definition was built-in or user created. Possible values include: + * 'BuiltInRole', 'CustomRole' + */ + sqlRoleDefinitionGetResultsType?: RoleDefinitionType; + /** + * A set of fully qualified Scopes at or below which Role Assignments may be created using this + * Role Definition. This will allow application of this Role Definition on the entire database + * account or any underlying Database / Collection. Must have at least one element. Scopes higher + * than Database account are not enforceable as assignable Scopes. Note that resources referenced + * in assignable Scopes need not exist. + */ + assignableScopes?: string[]; + /** + * The set of operations allowed through this Role Definition. + */ + permissions?: Permission[]; } /** - * Optional Parameters. + * Parameters to create and update an Azure Cosmos DB SQL Role Assignment. */ -export interface CollectionPartitionListUsagesOptionalParams extends msRest.RequestOptionsBase { +export interface SqlRoleAssignmentCreateUpdateParameters { /** - * An OData filter expression that describes a subset of usages to return. The supported - * parameter is name.value (name of the metric, can have an or of multiple names). + * The unique identifier for the associated Role Definition. */ - filter?: string; + roleDefinitionId?: string; + /** + * The data plane resource path for which access is being granted through this Role Assignment. + */ + scope?: string; + /** + * The unique identifier for the associated AAD principal in the AAD graph to which access is + * being granted through this Role Assignment. Tenant ID for the principal is inferred using the + * tenant associated with the subscription. + */ + principalId?: string; } /** - * An interface representing CosmosDBManagementClientOptions. + * An Azure Cosmos DB Role Assignment */ -export interface CosmosDBManagementClientOptions extends AzureServiceClientOptions { - baseUri?: string; +export interface SqlRoleAssignmentGetResults extends ARMProxyResource { + /** + * The unique identifier for the associated Role Definition. + */ + roleDefinitionId?: string; + /** + * The data plane resource path for which access is being granted through this Role Assignment. + */ + scope?: string; + /** + * The unique identifier for the associated AAD principal in the AAD graph to which access is + * being granted through this Role Assignment. Tenant ID for the principal is inferred using the + * tenant associated with the subscription. + */ + principalId?: string; } /** - * @interface - * The List operation response, that contains the database accounts and their properties. - * @extends Array + * Cosmos DB SQL database resource object */ -export interface DatabaseAccountsListResult extends Array { +export interface RestorableSqlDatabasePropertiesResourceDatabase { + /** + * Name of the Cosmos DB SQL database + */ + id: string; + /** + * A system generated property. A unique identifier. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly _rid?: string; + /** + * A system generated property that denotes the last updated timestamp of the resource. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly _ts?: number; + /** + * A system generated property representing the resource etag required for optimistic concurrency + * control. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly _etag?: string; + /** + * A system generated property that specified the addressable path of the collections resource. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly _colls?: string; + /** + * A system generated property that specifies the addressable path of the users resource. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly _users?: string; + /** + * A system generated property that specifies the addressable path of the database resource. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly _self?: string; } /** - * @interface - * The response to a list metrics request. - * @extends Array + * The resource of an Azure Cosmos DB SQL database event */ -export interface MetricListResult extends Array { +export interface RestorableSqlDatabasePropertiesResource { + /** + * A system generated property. A unique identifier. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly _rid?: string; + /** + * The operation type of this database event. Possible values include: 'Create', 'Replace', + * 'Delete', 'SystemOperation' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly operationType?: OperationType; + /** + * The time when this database event happened. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly eventTimestamp?: string; + /** + * The name of the SQL database. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly ownerId?: string; + /** + * The resource ID of the SQL database. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly ownerResourceId?: string; + /** + * Cosmos DB SQL database resource object + */ + database?: RestorableSqlDatabasePropertiesResourceDatabase; } /** - * @interface - * The response to a list usage request. - * @extends Array + * An Azure Cosmos DB SQL database event */ -export interface UsagesResult extends Array { +export interface RestorableSqlDatabaseGetResult { + /** + * The resource of an Azure Cosmos DB SQL database event + */ + resource?: RestorableSqlDatabasePropertiesResource; + /** + * The unique resource Identifier of the ARM resource. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly id?: string; + /** + * The name of the ARM resource. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly name?: string; + /** + * The type of Azure resource. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly type?: string; } /** - * @interface - * The response to a list metric definitions request. - * @extends Array + * Cosmos DB SQL container resource object */ -export interface MetricDefinitionsListResult extends Array { +export interface RestorableSqlContainerPropertiesResourceContainer { + /** + * 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; + /** + * 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.** + */ + readonly _rid?: string; + /** + * A system generated property that denotes the last updated timestamp of the resource. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly _ts?: number; + /** + * A system generated property representing the resource etag required for optimistic concurrency + * control. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly _etag?: string; + /** + * A system generated property that specifies the addressable path of the container resource. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly _self?: string; } /** - * @interface - * Result of the request to list Resource Provider operations. It contains a list of operations and - * a URL link to get the next set of results. - * @extends Array + * The resource of an Azure Cosmos DB SQL container event */ -export interface OperationListResult extends Array { +export interface RestorableSqlContainerPropertiesResource { /** - * URL to get the next set of operation list results if there are any. + * A system generated property. A unique identifier. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - nextLink?: string; + readonly _rid?: string; + /** + * The operation type of this container event. Possible values include: 'Create', 'Replace', + * 'Delete', 'SystemOperation' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly operationType?: OperationType; + /** + * The when this container event happened. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly eventTimestamp?: string; + /** + * The name of this SQL container. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly ownerId?: string; + /** + * The resource ID of this SQL container. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly ownerResourceId?: string; + /** + * Cosmos DB SQL container resource object + */ + container?: RestorableSqlContainerPropertiesResourceContainer; } /** - * @interface - * The response to a list percentile metrics request. - * @extends Array + * An Azure Cosmos DB SQL container event */ -export interface PercentileMetricListResult extends Array { +export interface RestorableSqlContainerGetResult { + /** + * The resource of an Azure Cosmos DB SQL container event + */ + resource?: RestorableSqlContainerPropertiesResource; + /** + * The unique resource Identifier of the ARM resource. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly id?: string; + /** + * The name of the ARM resource. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly name?: string; + /** + * The type of Azure resource. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly type?: string; } /** - * @interface - * The response to a list partition metrics request. - * @extends Array + * The resource of an Azure Cosmos DB MongoDB database event */ -export interface PartitionMetricListResult extends Array { +export interface RestorableMongodbDatabasePropertiesResource { + /** + * A system generated property. A unique identifier. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly _rid?: string; + /** + * The operation type of this database event. Possible values include: 'Create', 'Replace', + * 'Delete', 'SystemOperation' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly operationType?: OperationType; + /** + * The time when this database event happened. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly eventTimestamp?: string; + /** + * The name of this MongoDB database. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly ownerId?: string; + /** + * The resource ID of this MongoDB database. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly ownerResourceId?: string; } /** - * @interface - * The response to a list partition level usage request. - * @extends Array + * An Azure Cosmos DB MongoDB database event */ -export interface PartitionUsagesResult extends Array { +export interface RestorableMongodbDatabaseGetResult { + /** + * The resource of an Azure Cosmos DB MongoDB database event + */ + resource?: RestorableMongodbDatabasePropertiesResource; + /** + * The unique resource Identifier of the ARM resource. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly id?: string; + /** + * The name of the ARM resource. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly name?: string; + /** + * The type of Azure resource. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly type?: string; } /** - * @interface - * The List operation response, that contains the SQL databases and their properties. - * @extends Array + * The resource of an Azure Cosmos DB MongoDB collection event */ -export interface SqlDatabaseListResult extends Array { +export interface RestorableMongodbCollectionPropertiesResource { + /** + * A system generated property. A unique identifier. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly _rid?: string; + /** + * The operation type of this collection event. Possible values include: 'Create', 'Replace', + * 'Delete', 'SystemOperation' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly operationType?: OperationType; + /** + * The time when this collection event happened. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly eventTimestamp?: string; + /** + * The name of this MongoDB collection. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly ownerId?: string; + /** + * The resource ID of this MongoDB collection. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly ownerResourceId?: string; } /** - * @interface - * The List operation response, that contains the containers and their properties. - * @extends Array + * An Azure Cosmos DB MongoDB collection event */ -export interface SqlContainerListResult extends Array { +export interface RestorableMongodbCollectionGetResult { + /** + * The resource of an Azure Cosmos DB MongoDB collection event + */ + resource?: RestorableMongodbCollectionPropertiesResource; + /** + * The unique resource Identifier of the ARM resource. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly id?: string; + /** + * The name of the ARM resource. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly name?: string; + /** + * The type of Azure resource. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly type?: string; } /** - * @interface - * The List operation response, that contains the storedProcedures and their properties. - * @extends Array + * An interface representing SeedNode. */ -export interface SqlStoredProcedureListResult extends Array { +export interface SeedNode { + /** + * IP address of this seed node. + */ + ipAddress?: string; } /** - * @interface - * The List operation response, that contains the userDefinedFunctions and their properties. - * @extends Array + * An interface representing Certificate. */ -export interface SqlUserDefinedFunctionListResult extends Array { +export interface Certificate { + /** + * PEM formatted public key. + */ + pem?: string; } /** - * @interface - * The List operation response, that contains the triggers and their properties. - * @extends Array + * Representation of a managed Cassandra cluster. */ -export interface SqlTriggerListResult extends Array { +export interface ClusterResource extends ARMResourceProperties { + /** + * Possible values include: 'Creating', 'Updating', 'Deleting', 'Succeeded', 'Failed', 'Canceled' + */ + provisioningState?: ManagedCassandraProvisioningState; + /** + * To create an empty cluster, omit this field or set it to null. To restore a backup into a new + * cluster, set this field to the resource id of the backup. + */ + restoreFromBackupId?: string; + /** + * Resource id of a subnet that this cluster's management service should have its network + * interface attached to. The subnet must be routable to all subnets that will be delegated to + * data centers. The resource id must be of the form '/subscriptions//resourceGroups//providers/Microsoft.Network/virtualNetworks//subnets/' + */ + delegatedManagementSubnetId?: string; + /** + * Which version of Cassandra should this cluster converge to running (e.g., 3.11). When updated, + * the cluster may take some time to migrate to the new version. + */ + cassandraVersion?: string; + /** + * If you need to set the clusterName property in cassandra.yaml to something besides the + * resource name of the cluster, set the value to use on this property. + */ + clusterNameOverride?: string; + /** + * Which authentication method Cassandra should use to authenticate clients. 'None' turns off + * authentication, so should not be used except in emergencies. 'Cassandra' is the default + * password based authentication. The default is 'Cassandra'. Possible values include: 'None', + * 'Cassandra' + */ + authenticationMethod?: AuthenticationMethod; + /** + * Initial password for clients connecting as admin to the cluster. Should be changed after + * cluster creation. Returns null on GET. This field only applies when the authenticationMethod + * field is 'Cassandra'. + */ + initialCassandraAdminPassword?: string; + /** + * Number of hours to wait between taking a backup of the cluster. To disable backups, set this + * property to 0. + */ + hoursBetweenBackups?: number; + /** + * Hostname or IP address where the Prometheus endpoint containing data about the managed + * Cassandra nodes can be reached. + */ + prometheusEndpoint?: SeedNode; + /** + * Should automatic repairs run on this cluster? If omitted, this is true, and should stay true + * unless you are running a hybrid cluster where you are already doing your own repairs. + */ + repairEnabled?: boolean; + /** + * List of TLS certificates used to authorize clients connecting to the cluster. All connections + * are TLS encrypted whether clientCertificates is set or not, but if clientCertificates is set, + * the managed Cassandra cluster will reject all connections not bearing a TLS client certificate + * that can be validated from one or more of the public certificates in this property. + */ + clientCertificates?: Certificate[]; + /** + * List of TLS certificates used to authorize gossip from unmanaged data centers. The TLS + * certificates of all nodes in unmanaged data centers must be verifiable using one of the + * certificates provided in this property. + */ + externalGossipCertificates?: Certificate[]; + /** + * List of TLS certificates that unmanaged nodes must trust for gossip with managed nodes. All + * managed nodes will present TLS client certificates that are verifiable using one of the + * certificates provided in this property. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly gossipCertificates?: Certificate[]; + /** + * List of IP addresses of seed nodes in unmanaged data centers. These will be added to the seed + * node lists of all managed nodes. + */ + externalSeedNodes?: SeedNode[]; + /** + * List of IP addresses of seed nodes in the managed data centers. These should be added to the + * seed node lists of all unmanaged nodes. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly seedNodes?: SeedNode[]; } /** - * @interface - * The List operation response, that contains the MongoDB databases and their properties. - * @extends Array + * Specification of the keyspaces and tables to run repair on. */ -export interface MongoDBDatabaseListResult extends Array { +export interface RepairPostBody { + /** + * The name of the keyspace that repair should be run on. + */ + keyspace: string; + /** + * List of tables in the keyspace to repair. If omitted, repair all tables in the keyspace. + */ + tables?: string[]; } /** - * @interface - * The List operation response, that contains the MongoDB collections and their properties. - * @extends Array + * An interface representing ClusterNodeStatusNodesItem. */ -export interface MongoDBCollectionListResult extends Array { +export interface ClusterNodeStatusNodesItem { + /** + * The Cassandra data center this node resides in. + */ + datacenter?: string; + /** + * Indicates whether the node is functioning or not. Possible values include: 'Up', 'Down' + */ + status?: NodeStatus; + /** + * The state of the node in relation to the cluster. Possible values include: 'Normal', + * 'Leaving', 'Joining', 'Moving', 'Stopped' + */ + state?: NodeState; + /** + * The node's URL. + */ + address?: string; + /** + * The amount of file system data in the data directory (e.g., 47.66 KB), excluding all content + * in the snapshots subdirectories. Because all SSTable data files are included, any data that is + * not cleaned up (such as TTL-expired cell or tombstoned data) is counted. + */ + load?: string; + /** + * List of tokens. + */ + tokens?: string[]; + /** + * The percentage of the data owned by the node per datacenter times the replication factor + * (e.g., 33.3, or null if the data is not available). For example, a node can own 33% of the + * ring, but shows 100% if the replication factor is 3. For non-system keyspaces, the endpoint + * percentage ownership information is shown. + */ + owns?: number; + /** + * The network ID of the node. + */ + hostId?: string; + /** + * The rack this node is part of. + */ + rack?: string; } /** - * @interface - * The List operation response, that contains the Table and their properties. - * @extends Array + * The status of all nodes in the cluster (as returned by 'nodetool status'). */ -export interface TableListResult extends Array { +export interface ClusterNodeStatus { + /** + * Information about nodes in the cluster (corresponds to what is returned from nodetool info). + */ + nodes?: ClusterNodeStatusNodesItem[]; } /** - * @interface - * The List operation response, that contains the Cassandra keyspaces and their properties. - * @extends Array + * An interface representing BackupResourceProperties. */ -export interface CassandraKeyspaceListResult extends Array { +export interface BackupResourceProperties { + /** + * The time this backup was taken, formatted like 2021-01-21T17:35:21 + */ + timestamp?: Date; } /** - * @interface - * The List operation response, that contains the Cassandra tables and their properties. - * @extends Array + * A restorable backup of a Cassandra cluster. */ -export interface CassandraTableListResult extends Array { +export interface BackupResource extends ARMProxyResource { + properties?: BackupResourceProperties; } /** - * @interface - * The List operation response, that contains the Gremlin databases and their properties. - * @extends Array + * A managed Cassandra data center. */ -export interface GremlinDatabaseListResult extends Array { +export interface DataCenterResource extends ARMProxyResource { + /** + * Possible values include: 'Creating', 'Updating', 'Deleting', 'Succeeded', 'Failed', 'Canceled' + */ + provisioningState?: ManagedCassandraProvisioningState; + /** + * The region this data center should be created in. + */ + dataCenterLocation?: string; + /** + * Resource id of a subnet the nodes in this data center should have their network interfaces + * connected to. The subnet must be in the same region specified in 'dataCenterLocation' and must + * be able to route to the subnet specified in the cluster's 'delegatedManagementSubnetId' + * property. This resource id will be of the form '/subscriptions//resourceGroups//providers/Microsoft.Network/virtualNetworks//subnets/'. + */ + delegatedSubnetId?: string; + /** + * The number of nodes the data center should have. This is the desired number. After it is set, + * it may take some time for the data center to be scaled to match. To monitor the number of + * nodes and their status, use the fetchNodeStatus method on the cluster. + */ + nodeCount?: number; + /** + * IP addresses for seed nodes in this data center. This is for reference. Generally you will + * want to use the seedNodes property on the cluster, which aggregates the seed nodes from all + * data centers in the cluster. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly seedNodes?: SeedNode[]; + /** + * A fragment of a cassandra.yaml configuration file to be included in the cassandra.yaml for all + * nodes in this data center. The fragment should be Base64 encoded, and only a subset of keys + * are allowed. + */ + base64EncodedCassandraYamlFragment?: string; } /** - * @interface - * The List operation response, that contains the graphs and their properties. - * @extends Array + * A private link resource */ -export interface GremlinGraphListResult extends Array { +export interface PrivateLinkResource extends ARMProxyResource { + /** + * The private link resource group id. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly groupId?: string; + /** + * The private link resource required member names. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly requiredMembers?: string[]; + /** + * The private link resource required zone names. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly requiredZoneNames?: string[]; } /** - * @interface - * A list of notebook workspace resources - * @extends Array + * Optional Parameters. */ -export interface NotebookWorkspaceListResult extends Array { +export interface DatabaseAccountsListUsagesOptionalParams extends msRest.RequestOptionsBase { + /** + * An OData filter expression that describes a subset of usages to return. The supported + * parameter is name.value (name of the metric, can have an or of multiple names). + */ + filter?: string; } /** - * @interface - * A list of private link resources - * @extends Array + * Optional Parameters. */ -export interface PrivateLinkResourceListResult extends Array { +export interface DatabaseListUsagesOptionalParams extends msRest.RequestOptionsBase { + /** + * An OData filter expression that describes a subset of usages to return. The supported + * parameter is name.value (name of the metric, can have an or of multiple names). + */ + filter?: string; } /** - * @interface - * A list of private endpoint connections - * @extends Array + * Optional Parameters. */ -export interface PrivateEndpointConnectionListResult extends Array { +export interface CollectionListUsagesOptionalParams extends msRest.RequestOptionsBase { + /** + * An OData filter expression that describes a subset of usages to return. The supported + * parameter is name.value (name of the metric, can have an or of multiple names). + */ + filter?: string; } /** - * Defines values for DatabaseAccountKind. - * Possible values include: 'GlobalDocumentDB', 'MongoDB', 'Parse' - * @readonly - * @enum {string} + * Optional Parameters. */ -export type DatabaseAccountKind = 'GlobalDocumentDB' | 'MongoDB' | 'Parse'; +export interface CollectionPartitionListUsagesOptionalParams extends msRest.RequestOptionsBase { + /** + * An OData filter expression that describes a subset of usages to return. The supported + * parameter is name.value (name of the metric, can have an or of multiple names). + */ + filter?: string; +} /** - * Defines values for ResourceIdentityType. - * Possible values include: 'SystemAssigned', 'UserAssigned', 'SystemAssigned,UserAssigned', 'None' - * @readonly - * @enum {string} + * Optional Parameters. */ -export type ResourceIdentityType = 'SystemAssigned' | 'UserAssigned' | 'SystemAssigned,UserAssigned' | 'None'; +export interface RestorableSqlContainersListOptionalParams extends msRest.RequestOptionsBase { + /** + * The resource ID of the SQL database. + */ + restorableSqlDatabaseRid?: string; +} /** - * Defines values for DatabaseAccountOfferType. - * Possible values include: 'Standard' - * @readonly - * @enum {string} + * Optional Parameters. */ -export type DatabaseAccountOfferType = 'Standard'; +export interface RestorableSqlResourcesListOptionalParams extends msRest.RequestOptionsBase { + /** + * The location where the restorable resources are located. + */ + restoreLocation?: string; + /** + * The timestamp when the restorable resources existed. + */ + restoreTimestampInUtc?: string; +} /** - * Defines values for DefaultConsistencyLevel. - * Possible values include: 'Eventual', 'Session', 'BoundedStaleness', 'Strong', 'ConsistentPrefix' - * @readonly - * @enum {string} + * Optional Parameters. */ -export type DefaultConsistencyLevel = 'Eventual' | 'Session' | 'BoundedStaleness' | 'Strong' | 'ConsistentPrefix'; +export interface RestorableMongodbCollectionsListOptionalParams extends msRest.RequestOptionsBase { + /** + * The resource ID of the MongoDB database. + */ + restorableMongodbDatabaseRid?: string; +} /** - * Defines values for ConnectorOffer. - * Possible values include: 'Small' - * @readonly - * @enum {string} + * Optional Parameters. */ -export type ConnectorOffer = 'Small'; +export interface RestorableMongodbResourcesListOptionalParams extends msRest.RequestOptionsBase { + /** + * The location where the restorable resources are located. + */ + restoreLocation?: string; + /** + * The timestamp when the restorable resources existed. + */ + restoreTimestampInUtc?: string; +} /** - * Defines values for PublicNetworkAccess. - * Possible values include: 'Enabled', 'Disabled' - * @readonly - * @enum {string} + * An interface representing CosmosDBManagementClientOptions. */ -export type PublicNetworkAccess = 'Enabled' | 'Disabled'; +export interface CosmosDBManagementClientOptions extends AzureServiceClientOptions { + baseUri?: string; +} /** - * Defines values for ServerVersion. - * Possible values include: '3.2', '3.6', '4.0' - * @readonly - * @enum {string} + * @interface + * The List operation response, that contains the database accounts and their properties. + * @extends Array */ -export type ServerVersion = '3.2' | '3.6' | '4.0'; +export interface DatabaseAccountsListResult extends Array { +} /** - * Defines values for NetworkAclBypass. - * Possible values include: 'None', 'AzureServices' - * @readonly - * @enum {string} + * @interface + * The response to a list metrics request. + * @extends Array */ -export type NetworkAclBypass = 'None' | 'AzureServices'; +export interface MetricListResult extends Array { +} /** - * Defines values for IndexingMode. - * Possible values include: 'consistent', 'lazy', 'none' - * @readonly - * @enum {string} + * @interface + * The response to a list usage request. + * @extends Array */ -export type IndexingMode = 'consistent' | 'lazy' | 'none'; +export interface UsagesResult extends Array { +} /** - * Defines values for DataType. - * Possible values include: 'String', 'Number', 'Point', 'Polygon', 'LineString', 'MultiPolygon' - * @readonly - * @enum {string} + * @interface + * The response to a list metric definitions request. + * @extends Array */ -export type DataType = 'String' | 'Number' | 'Point' | 'Polygon' | 'LineString' | 'MultiPolygon'; +export interface MetricDefinitionsListResult extends Array { +} /** - * Defines values for IndexKind. - * Possible values include: 'Hash', 'Range', 'Spatial' - * @readonly - * @enum {string} + * @interface + * Result of the request to list Resource Provider operations. It contains a list of operations and + * a URL link to get the next set of results. + * @extends Array */ -export type IndexKind = 'Hash' | 'Range' | 'Spatial'; +export interface OperationListResult extends Array { + /** + * URL to get the next set of operation list results if there are any. + */ + nextLink?: string; +} /** - * Defines values for CompositePathSortOrder. - * Possible values include: 'ascending', 'descending' - * @readonly - * @enum {string} + * @interface + * The response to a list percentile metrics request. + * @extends Array */ -export type CompositePathSortOrder = 'ascending' | 'descending'; +export interface PercentileMetricListResult extends Array { +} /** - * Defines values for SpatialType. - * Possible values include: 'Point', 'LineString', 'Polygon', 'MultiPolygon' - * @readonly - * @enum {string} + * @interface + * The response to a list partition metrics request. + * @extends Array */ -export type SpatialType = 'Point' | 'LineString' | 'Polygon' | 'MultiPolygon'; +export interface PartitionMetricListResult extends Array { +} /** - * Defines values for PartitionKind. - * Possible values include: 'Hash', 'Range', 'MultiHash' - * @readonly - * @enum {string} + * @interface + * The response to a list partition level usage request. + * @extends Array */ -export type PartitionKind = 'Hash' | 'Range' | 'MultiHash'; +export interface PartitionUsagesResult extends Array { +} /** - * Defines values for ConflictResolutionMode. - * Possible values include: 'LastWriterWins', 'Custom' - * @readonly - * @enum {string} + * @interface + * The List operation response, that contains the SQL databases and their properties. + * @extends Array */ -export type ConflictResolutionMode = 'LastWriterWins' | 'Custom'; +export interface SqlDatabaseListResult extends Array { +} /** - * Defines values for TriggerType. - * Possible values include: 'Pre', 'Post' - * @readonly - * @enum {string} + * @interface + * The List operation response, that contains the containers and their properties. + * @extends Array */ -export type TriggerType = 'Pre' | 'Post'; +export interface SqlContainerListResult extends Array { +} /** - * Defines values for TriggerOperation. - * Possible values include: 'All', 'Create', 'Update', 'Delete', 'Replace' - * @readonly - * @enum {string} + * @interface + * The List operation response, that contains the storedProcedures and their properties. + * @extends Array */ -export type TriggerOperation = 'All' | 'Create' | 'Update' | 'Delete' | 'Replace'; +export interface SqlStoredProcedureListResult extends Array { +} /** - * Defines values for KeyKind. - * Possible values include: 'primary', 'secondary', 'primaryReadonly', 'secondaryReadonly' - * @readonly - * @enum {string} + * @interface + * The List operation response, that contains the userDefinedFunctions and their properties. + * @extends Array */ -export type KeyKind = 'primary' | 'secondary' | 'primaryReadonly' | 'secondaryReadonly'; +export interface SqlUserDefinedFunctionListResult extends Array { +} /** - * Defines values for UnitType. - * Possible values include: 'Count', 'Bytes', 'Seconds', 'Percent', 'CountPerSecond', - * 'BytesPerSecond', 'Milliseconds' - * @readonly - * @enum {string} + * @interface + * The List operation response, that contains the triggers and their properties. + * @extends Array */ -export type UnitType = 'Count' | 'Bytes' | 'Seconds' | 'Percent' | 'CountPerSecond' | 'BytesPerSecond' | 'Milliseconds'; +export interface SqlTriggerListResult extends Array { +} /** - * Defines values for PrimaryAggregationType. - * Possible values include: 'None', 'Average', 'Total', 'Minimum', 'Maximum', 'Last' - * @readonly - * @enum {string} + * @interface + * The relevant Role Definitions. + * @extends Array */ -export type PrimaryAggregationType = 'None' | 'Average' | 'Total' | 'Minimum' | 'Maximum' | 'Last'; +export interface SqlRoleDefinitionListResult extends Array { +} /** - * Defines values for BackupPolicyType. - * Possible values include: 'Periodic', 'Continuous' - * @readonly - * @enum {string} + * @interface + * The relevant Role Assignments. + * @extends Array */ -export type BackupPolicyType = 'Periodic' | 'Continuous'; +export interface SqlRoleAssignmentListResult extends Array { +} /** - * Contains response data for the get operation. + * @interface + * The List operation response, that contains the MongoDB databases and their properties. + * @extends Array + */ +export interface MongoDBDatabaseListResult extends Array { +} + +/** + * @interface + * The List operation response, that contains the MongoDB collections and their properties. + * @extends Array + */ +export interface MongoDBCollectionListResult extends Array { +} + +/** + * @interface + * The List operation response, that contains the Table and their properties. + * @extends Array + */ +export interface TableListResult extends Array { +} + +/** + * @interface + * The List operation response, that contains the Cassandra keyspaces and their properties. + * @extends Array + */ +export interface CassandraKeyspaceListResult extends Array { +} + +/** + * @interface + * The List operation response, that contains the Cassandra tables and their properties. + * @extends Array + */ +export interface CassandraTableListResult extends Array { +} + +/** + * @interface + * The List operation response, that contains the Gremlin databases and their properties. + * @extends Array + */ +export interface GremlinDatabaseListResult extends Array { +} + +/** + * @interface + * The List operation response, that contains the graphs and their properties. + * @extends Array + */ +export interface GremlinGraphListResult 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 + * @extends Array + */ +export interface NotebookWorkspaceListResult extends Array { +} + +/** + * @interface + * The List operation response, that contains the SQL database events and their properties. + * @extends Array + */ +export interface RestorableSqlDatabasesListResult extends Array { +} + +/** + * @interface + * The List operation response, that contains the SQL container events and their properties. + * @extends Array + */ +export interface RestorableSqlContainersListResult extends Array { +} + +/** + * @interface + * The List operation response, that contains the restorable SQL resources. + * @extends Array + */ +export interface RestorableSqlResourcesListResult extends Array { +} + +/** + * @interface + * The List operation response, that contains the MongoDB database events and their properties. + * @extends Array + */ +export interface RestorableMongodbDatabasesListResult extends Array { +} + +/** + * @interface + * The List operation response, that contains the MongoDB collection events and their properties. + * @extends Array + */ +export interface RestorableMongodbCollectionsListResult extends Array { +} + +/** + * @interface + * The List operation response, that contains the restorable MongoDB resources. + * @extends Array + */ +export interface RestorableMongodbResourcesListResult extends Array { +} + +/** + * @interface + * List of managed Cassandra clusters. + * @extends Array + */ +export interface ListClusters extends Array { +} + +/** + * @interface + * List of restorable backups for a Cassandra cluster. + * @extends Array + */ +export interface ListBackups extends Array { +} + +/** + * @interface + * List of managed Cassandra data centers and their properties. + * @extends Array + */ +export interface ListDataCenters extends Array { +} + +/** + * @interface + * A list of private link resources + * @extends Array + */ +export interface PrivateLinkResourceListResult extends Array { +} + +/** + * @interface + * A list of private endpoint connections + * @extends Array + */ +export interface PrivateEndpointConnectionListResult extends Array { +} + +/** + * Defines values for DatabaseAccountKind. + * Possible values include: 'GlobalDocumentDB', 'MongoDB', 'Parse' + * @readonly + * @enum {string} + */ +export type DatabaseAccountKind = 'GlobalDocumentDB' | 'MongoDB' | 'Parse'; + +/** + * Defines values for DatabaseAccountOfferType. + * Possible values include: 'Standard' + * @readonly + * @enum {string} + */ +export type DatabaseAccountOfferType = 'Standard'; + +/** + * Defines values for DefaultConsistencyLevel. + * Possible values include: 'Eventual', 'Session', 'BoundedStaleness', 'Strong', 'ConsistentPrefix' + * @readonly + * @enum {string} + */ +export type DefaultConsistencyLevel = 'Eventual' | 'Session' | 'BoundedStaleness' | 'Strong' | 'ConsistentPrefix'; + +/** + * Defines values for ConnectorOffer. + * Possible values include: 'Small' + * @readonly + * @enum {string} + */ +export type ConnectorOffer = 'Small'; + +/** + * Defines values for PublicNetworkAccess. + * Possible values include: 'Enabled', 'Disabled' + * @readonly + * @enum {string} + */ +export type PublicNetworkAccess = 'Enabled' | 'Disabled'; + +/** + * Defines values for ServerVersion. + * Possible values include: '3.2', '3.6', '4.0' + * @readonly + * @enum {string} + */ +export type ServerVersion = '3.2' | '3.6' | '4.0'; + +/** + * Defines values for CreateMode. + * Possible values include: 'Default', 'Restore' + * @readonly + * @enum {string} + */ +export type CreateMode = 'Default' | 'Restore'; + +/** + * Defines values for RestoreMode. + * Possible values include: 'PointInTime' + * @readonly + * @enum {string} + */ +export type RestoreMode = 'PointInTime'; + +/** + * Defines values for NetworkAclBypass. + * Possible values include: 'None', 'AzureServices' + * @readonly + * @enum {string} + */ +export type NetworkAclBypass = 'None' | 'AzureServices'; + +/** + * Defines values for CreatedByType. + * Possible values include: 'User', 'Application', 'ManagedIdentity', 'Key' + * @readonly + * @enum {string} + */ +export type CreatedByType = 'User' | 'Application' | 'ManagedIdentity' | 'Key'; + +/** + * Defines values for IndexingMode. + * Possible values include: 'consistent', 'lazy', 'none' + * @readonly + * @enum {string} + */ +export type IndexingMode = 'consistent' | 'lazy' | 'none'; + +/** + * 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'; + +/** + * Defines values for IndexKind. + * Possible values include: 'Hash', 'Range', 'Spatial' + * @readonly + * @enum {string} + */ +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', 'MultiHash' + * @readonly + * @enum {string} + */ +export type PartitionKind = 'Hash' | 'Range' | 'MultiHash'; + +/** + * 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 ResourceIdentityType. + * Possible values include: 'SystemAssigned', 'UserAssigned', 'SystemAssigned,UserAssigned', 'None' + * @readonly + * @enum {string} + */ +export type ResourceIdentityType = 'SystemAssigned' | 'UserAssigned' | 'SystemAssigned,UserAssigned' | 'None'; + +/** + * 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'; + +/** + * Defines values for BackupPolicyType. + * Possible values include: 'Periodic', 'Continuous' + * @readonly + * @enum {string} + */ +export type BackupPolicyType = 'Periodic' | 'Continuous'; + +/** + * Defines values for BackupStorageRedundancy. + * Possible values include: 'Geo', 'Local', 'Zone' + * @readonly + * @enum {string} + */ +export type BackupStorageRedundancy = 'Geo' | 'Local' | 'Zone'; + +/** + * Defines values for ApiType. + * Possible values include: 'MongoDB', 'Gremlin', 'Cassandra', 'Table', 'Sql', 'GremlinV2' + * @readonly + * @enum {string} + */ +export type ApiType = 'MongoDB' | 'Gremlin' | 'Cassandra' | 'Table' | 'Sql' | 'GremlinV2'; + +/** + * Defines values for RoleDefinitionType. + * Possible values include: 'BuiltInRole', 'CustomRole' + * @readonly + * @enum {string} + */ +export type RoleDefinitionType = 'BuiltInRole' | 'CustomRole'; + +/** + * Defines values for OperationType. + * Possible values include: 'Create', 'Replace', 'Delete', 'SystemOperation' + * @readonly + * @enum {string} + */ +export type OperationType = 'Create' | 'Replace' | 'Delete' | 'SystemOperation'; + +/** + * Defines values for ManagedCassandraProvisioningState. + * Possible values include: 'Creating', 'Updating', 'Deleting', 'Succeeded', 'Failed', 'Canceled' + * @readonly + * @enum {string} + */ +export type ManagedCassandraProvisioningState = 'Creating' | 'Updating' | 'Deleting' | 'Succeeded' | 'Failed' | 'Canceled'; + +/** + * Defines values for AuthenticationMethod. + * Possible values include: 'None', 'Cassandra' + * @readonly + * @enum {string} + */ +export type AuthenticationMethod = 'None' | 'Cassandra'; + +/** + * Defines values for NodeStatus. + * Possible values include: 'Up', 'Down' + * @readonly + * @enum {string} + */ +export type NodeStatus = 'Up' | 'Down'; + +/** + * Defines values for NodeState. + * Possible values include: 'Normal', 'Leaving', 'Joining', 'Moving', 'Stopped' + * @readonly + * @enum {string} + */ +export type NodeState = 'Normal' | 'Leaving' | 'Joining' | 'Moving' | 'Stopped'; + +/** + * 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; + }; +}; + +/** + * Contains response data for the listMetrics operation. + */ +export type DatabaseAccountRegionListMetricsResponse = 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 listMetrics operation. + */ +export type PercentileSourceTargetListMetricsResponse = PercentileMetricListResult & { + /** + * 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: PercentileMetricListResult; + }; +}; + +/** + * Contains response data for the listMetrics operation. + */ +export type PercentileTargetListMetricsResponse = PercentileMetricListResult & { + /** + * 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: PercentileMetricListResult; + }; +}; + +/** + * Contains response data for the listMetrics operation. + */ +export type PercentileListMetricsResponse = PercentileMetricListResult & { + /** + * 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: PercentileMetricListResult; + }; +}; + +/** + * Contains response data for the listMetrics operation. + */ +export type CollectionPartitionRegionListMetricsResponse = PartitionMetricListResult & { + /** + * 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: PartitionMetricListResult; + }; +}; + +/** + * Contains response data for the listMetrics operation. + */ +export type CollectionPartitionListMetricsResponse = PartitionMetricListResult & { + /** + * 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: PartitionMetricListResult; + }; +}; + +/** + * Contains response data for the listUsages operation. + */ +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 listMetrics operation. + */ +export type PartitionKeyRangeIdListMetricsResponse = PartitionMetricListResult & { + /** + * 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: PartitionMetricListResult; + }; +}; + +/** + * Contains response data for the listMetrics operation. + */ +export type PartitionKeyRangeIdRegionListMetricsResponse = PartitionMetricListResult & { + /** + * 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: PartitionMetricListResult; + }; +}; + +/** + * Contains response data for the listSqlDatabases operation. */ -export type DatabaseAccountsGetResponse = DatabaseAccountGetResults & { +export type SqlResourcesListSqlDatabasesResponse = SqlDatabaseListResult & { /** * The underlying HTTP response. */ @@ -3080,14 +5035,14 @@ export type DatabaseAccountsGetResponse = DatabaseAccountGetResults & { /** * The response body as parsed JSON or XML */ - parsedBody: DatabaseAccountGetResults; + parsedBody: SqlDatabaseListResult; }; }; /** - * Contains response data for the update operation. + * Contains response data for the getSqlDatabase operation. */ -export type DatabaseAccountsUpdateResponse = DatabaseAccountGetResults & { +export type SqlResourcesGetSqlDatabaseResponse = SqlDatabaseGetResults & { /** * The underlying HTTP response. */ @@ -3100,14 +5055,14 @@ export type DatabaseAccountsUpdateResponse = DatabaseAccountGetResults & { /** * The response body as parsed JSON or XML */ - parsedBody: DatabaseAccountGetResults; + parsedBody: SqlDatabaseGetResults; }; }; /** - * Contains response data for the createOrUpdate operation. + * Contains response data for the createUpdateSqlDatabase operation. */ -export type DatabaseAccountsCreateOrUpdateResponse = DatabaseAccountGetResults & { +export type SqlResourcesCreateUpdateSqlDatabaseResponse = SqlDatabaseGetResults & { /** * The underlying HTTP response. */ @@ -3120,14 +5075,14 @@ export type DatabaseAccountsCreateOrUpdateResponse = DatabaseAccountGetResults & /** * The response body as parsed JSON or XML */ - parsedBody: DatabaseAccountGetResults; + parsedBody: SqlDatabaseGetResults; }; }; /** - * Contains response data for the list operation. + * Contains response data for the getSqlDatabaseThroughput operation. */ -export type DatabaseAccountsListResponse = DatabaseAccountsListResult & { +export type SqlResourcesGetSqlDatabaseThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -3140,14 +5095,14 @@ export type DatabaseAccountsListResponse = DatabaseAccountsListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: DatabaseAccountsListResult; + parsedBody: ThroughputSettingsGetResults; }; }; /** - * Contains response data for the listByResourceGroup operation. + * Contains response data for the updateSqlDatabaseThroughput operation. */ -export type DatabaseAccountsListByResourceGroupResponse = DatabaseAccountsListResult & { +export type SqlResourcesUpdateSqlDatabaseThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -3160,14 +5115,14 @@ export type DatabaseAccountsListByResourceGroupResponse = DatabaseAccountsListRe /** * The response body as parsed JSON or XML */ - parsedBody: DatabaseAccountsListResult; + parsedBody: ThroughputSettingsGetResults; }; }; /** - * Contains response data for the listKeys operation. + * Contains response data for the migrateSqlDatabaseToAutoscale operation. */ -export type DatabaseAccountsListKeysResponse = DatabaseAccountListKeysResult & { +export type SqlResourcesMigrateSqlDatabaseToAutoscaleResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -3180,14 +5135,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 migrateSqlDatabaseToManualThroughput operation. */ -export type DatabaseAccountsListConnectionStringsResponse = DatabaseAccountListConnectionStringsResult & { +export type SqlResourcesMigrateSqlDatabaseToManualThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -3200,14 +5155,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 listSqlContainers operation. */ -export type DatabaseAccountsGetReadOnlyKeysResponse = DatabaseAccountListReadOnlyKeysResult & { +export type SqlResourcesListSqlContainersResponse = SqlContainerListResult & { /** * The underlying HTTP response. */ @@ -3220,14 +5175,14 @@ export type DatabaseAccountsGetReadOnlyKeysResponse = DatabaseAccountListReadOnl /** * The response body as parsed JSON or XML */ - parsedBody: DatabaseAccountListReadOnlyKeysResult; + parsedBody: SqlContainerListResult; }; }; /** - * Contains response data for the listReadOnlyKeys operation. + * Contains response data for the getSqlContainer operation. */ -export type DatabaseAccountsListReadOnlyKeysResponse = DatabaseAccountListReadOnlyKeysResult & { +export type SqlResourcesGetSqlContainerResponse = SqlContainerGetResults & { /** * The underlying HTTP response. */ @@ -3240,19 +5195,34 @@ export type DatabaseAccountsListReadOnlyKeysResponse = DatabaseAccountListReadOn /** * The response body as parsed JSON or XML */ - parsedBody: DatabaseAccountListReadOnlyKeysResult; + parsedBody: SqlContainerGetResults; }; }; /** - * Contains response data for the checkNameExists operation. + * Contains response data for the createUpdateSqlContainer operation. */ -export type DatabaseAccountsCheckNameExistsResponse = { +export type SqlResourcesCreateUpdateSqlContainerResponse = SqlContainerGetResults & { /** - * 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: SqlContainerGetResults; + }; +}; + +/** + * Contains response data for the getSqlContainerThroughput operation. + */ +export type SqlResourcesGetSqlContainerThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -3265,14 +5235,14 @@ export type DatabaseAccountsCheckNameExistsResponse = { /** * The response body as parsed JSON or XML */ - parsedBody: boolean; + parsedBody: ThroughputSettingsGetResults; }; }; /** - * Contains response data for the listMetrics operation. + * Contains response data for the updateSqlContainerThroughput operation. */ -export type DatabaseAccountsListMetricsResponse = MetricListResult & { +export type SqlResourcesUpdateSqlContainerThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -3285,14 +5255,14 @@ export type DatabaseAccountsListMetricsResponse = MetricListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: MetricListResult; + parsedBody: ThroughputSettingsGetResults; }; }; /** - * Contains response data for the listUsages operation. + * Contains response data for the migrateSqlContainerToAutoscale operation. */ -export type DatabaseAccountsListUsagesResponse = UsagesResult & { +export type SqlResourcesMigrateSqlContainerToAutoscaleResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -3305,14 +5275,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 migrateSqlContainerToManualThroughput operation. */ -export type DatabaseAccountsListMetricDefinitionsResponse = MetricDefinitionsListResult & { +export type SqlResourcesMigrateSqlContainerToManualThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -3325,14 +5295,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 listSqlStoredProcedures operation. */ -export type DatabaseAccountsBeginUpdateResponse = DatabaseAccountGetResults & { +export type SqlResourcesListSqlStoredProceduresResponse = SqlStoredProcedureListResult & { /** * The underlying HTTP response. */ @@ -3345,14 +5315,14 @@ export type DatabaseAccountsBeginUpdateResponse = DatabaseAccountGetResults & { /** * The response body as parsed JSON or XML */ - parsedBody: DatabaseAccountGetResults; + parsedBody: SqlStoredProcedureListResult; }; }; /** - * Contains response data for the beginCreateOrUpdate operation. + * Contains response data for the getSqlStoredProcedure operation. */ -export type DatabaseAccountsBeginCreateOrUpdateResponse = DatabaseAccountGetResults & { +export type SqlResourcesGetSqlStoredProcedureResponse = SqlStoredProcedureGetResults & { /** * The underlying HTTP response. */ @@ -3365,14 +5335,14 @@ export type DatabaseAccountsBeginCreateOrUpdateResponse = DatabaseAccountGetResu /** * The response body as parsed JSON or XML */ - parsedBody: DatabaseAccountGetResults; + parsedBody: SqlStoredProcedureGetResults; }; }; /** - * Contains response data for the list operation. + * Contains response data for the createUpdateSqlStoredProcedure operation. */ -export type OperationsListResponse = OperationListResult & { +export type SqlResourcesCreateUpdateSqlStoredProcedureResponse = SqlStoredProcedureGetResults & { /** * The underlying HTTP response. */ @@ -3385,14 +5355,14 @@ export type OperationsListResponse = OperationListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: OperationListResult; + parsedBody: SqlStoredProcedureGetResults; }; }; /** - * Contains response data for the listNext operation. + * Contains response data for the listSqlUserDefinedFunctions operation. */ -export type OperationsListNextResponse = OperationListResult & { +export type SqlResourcesListSqlUserDefinedFunctionsResponse = SqlUserDefinedFunctionListResult & { /** * The underlying HTTP response. */ @@ -3405,14 +5375,14 @@ export type OperationsListNextResponse = OperationListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: OperationListResult; + parsedBody: SqlUserDefinedFunctionListResult; }; }; /** - * Contains response data for the listMetrics operation. + * Contains response data for the getSqlUserDefinedFunction operation. */ -export type DatabaseListMetricsResponse = MetricListResult & { +export type SqlResourcesGetSqlUserDefinedFunctionResponse = SqlUserDefinedFunctionGetResults & { /** * The underlying HTTP response. */ @@ -3425,14 +5395,14 @@ export type DatabaseListMetricsResponse = 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 createUpdateSqlUserDefinedFunction operation. */ -export type DatabaseListUsagesResponse = UsagesResult & { +export type SqlResourcesCreateUpdateSqlUserDefinedFunctionResponse = SqlUserDefinedFunctionGetResults & { /** * The underlying HTTP response. */ @@ -3445,14 +5415,14 @@ export type DatabaseListUsagesResponse = UsagesResult & { /** * The response body as parsed JSON or XML */ - parsedBody: UsagesResult; + parsedBody: SqlUserDefinedFunctionGetResults; }; }; /** - * Contains response data for the listMetricDefinitions operation. + * Contains response data for the listSqlTriggers operation. */ -export type DatabaseListMetricDefinitionsResponse = MetricDefinitionsListResult & { +export type SqlResourcesListSqlTriggersResponse = SqlTriggerListResult & { /** * The underlying HTTP response. */ @@ -3465,14 +5435,14 @@ export type DatabaseListMetricDefinitionsResponse = MetricDefinitionsListResult /** * The response body as parsed JSON or XML */ - parsedBody: MetricDefinitionsListResult; + parsedBody: SqlTriggerListResult; }; }; /** - * Contains response data for the listMetrics operation. + * Contains response data for the getSqlTrigger operation. */ -export type CollectionListMetricsResponse = MetricListResult & { +export type SqlResourcesGetSqlTriggerResponse = SqlTriggerGetResults & { /** * The underlying HTTP response. */ @@ -3485,14 +5455,14 @@ export type CollectionListMetricsResponse = MetricListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: MetricListResult; + parsedBody: SqlTriggerGetResults; }; }; /** - * Contains response data for the listUsages operation. + * Contains response data for the createUpdateSqlTrigger operation. */ -export type CollectionListUsagesResponse = UsagesResult & { +export type SqlResourcesCreateUpdateSqlTriggerResponse = SqlTriggerGetResults & { /** * The underlying HTTP response. */ @@ -3505,14 +5475,14 @@ export type CollectionListUsagesResponse = UsagesResult & { /** * The response body as parsed JSON or XML */ - parsedBody: UsagesResult; + parsedBody: SqlTriggerGetResults; }; }; /** - * Contains response data for the listMetricDefinitions operation. + * Contains response data for the getSqlRoleDefinition operation. */ -export type CollectionListMetricDefinitionsResponse = MetricDefinitionsListResult & { +export type SqlResourcesGetSqlRoleDefinitionResponse = SqlRoleDefinitionGetResults & { /** * The underlying HTTP response. */ @@ -3525,14 +5495,14 @@ export type CollectionListMetricDefinitionsResponse = MetricDefinitionsListResul /** * The response body as parsed JSON or XML */ - parsedBody: MetricDefinitionsListResult; + parsedBody: SqlRoleDefinitionGetResults; }; }; /** - * Contains response data for the listMetrics operation. + * Contains response data for the createUpdateSqlRoleDefinition operation. */ -export type CollectionRegionListMetricsResponse = MetricListResult & { +export type SqlResourcesCreateUpdateSqlRoleDefinitionResponse = SqlRoleDefinitionGetResults & { /** * The underlying HTTP response. */ @@ -3545,14 +5515,14 @@ export type CollectionRegionListMetricsResponse = MetricListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: MetricListResult; + parsedBody: SqlRoleDefinitionGetResults; }; }; /** - * Contains response data for the listMetrics operation. + * Contains response data for the listSqlRoleDefinitions operation. */ -export type DatabaseAccountRegionListMetricsResponse = MetricListResult & { +export type SqlResourcesListSqlRoleDefinitionsResponse = SqlRoleDefinitionListResult & { /** * The underlying HTTP response. */ @@ -3565,14 +5535,14 @@ export type DatabaseAccountRegionListMetricsResponse = MetricListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: MetricListResult; + parsedBody: SqlRoleDefinitionListResult; }; }; /** - * Contains response data for the listMetrics operation. + * Contains response data for the getSqlRoleAssignment operation. */ -export type PercentileSourceTargetListMetricsResponse = PercentileMetricListResult & { +export type SqlResourcesGetSqlRoleAssignmentResponse = SqlRoleAssignmentGetResults & { /** * The underlying HTTP response. */ @@ -3585,14 +5555,14 @@ export type PercentileSourceTargetListMetricsResponse = PercentileMetricListResu /** * The response body as parsed JSON or XML */ - parsedBody: PercentileMetricListResult; + parsedBody: SqlRoleAssignmentGetResults; }; }; /** - * Contains response data for the listMetrics operation. + * Contains response data for the createUpdateSqlRoleAssignment operation. */ -export type PercentileTargetListMetricsResponse = PercentileMetricListResult & { +export type SqlResourcesCreateUpdateSqlRoleAssignmentResponse = SqlRoleAssignmentGetResults & { /** * The underlying HTTP response. */ @@ -3605,14 +5575,14 @@ export type PercentileTargetListMetricsResponse = PercentileMetricListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: PercentileMetricListResult; + parsedBody: SqlRoleAssignmentGetResults; }; }; /** - * Contains response data for the listMetrics operation. + * Contains response data for the listSqlRoleAssignments operation. */ -export type PercentileListMetricsResponse = PercentileMetricListResult & { +export type SqlResourcesListSqlRoleAssignmentsResponse = SqlRoleAssignmentListResult & { /** * The underlying HTTP response. */ @@ -3625,14 +5595,14 @@ export type PercentileListMetricsResponse = PercentileMetricListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: PercentileMetricListResult; + parsedBody: SqlRoleAssignmentListResult; }; }; /** - * Contains response data for the listMetrics operation. + * Contains response data for the beginCreateUpdateSqlDatabase operation. */ -export type CollectionPartitionRegionListMetricsResponse = PartitionMetricListResult & { +export type SqlResourcesBeginCreateUpdateSqlDatabaseResponse = SqlDatabaseGetResults & { /** * The underlying HTTP response. */ @@ -3645,14 +5615,14 @@ export type CollectionPartitionRegionListMetricsResponse = PartitionMetricListRe /** * The response body as parsed JSON or XML */ - parsedBody: PartitionMetricListResult; + parsedBody: SqlDatabaseGetResults; }; }; /** - * Contains response data for the listMetrics operation. + * Contains response data for the beginUpdateSqlDatabaseThroughput operation. */ -export type CollectionPartitionListMetricsResponse = PartitionMetricListResult & { +export type SqlResourcesBeginUpdateSqlDatabaseThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -3665,14 +5635,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 beginMigrateSqlDatabaseToAutoscale operation. */ -export type CollectionPartitionListUsagesResponse = PartitionUsagesResult & { +export type SqlResourcesBeginMigrateSqlDatabaseToAutoscaleResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -3685,14 +5655,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 beginMigrateSqlDatabaseToManualThroughput operation. */ -export type PartitionKeyRangeIdListMetricsResponse = PartitionMetricListResult & { +export type SqlResourcesBeginMigrateSqlDatabaseToManualThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -3705,14 +5675,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 beginCreateUpdateSqlContainer operation. */ -export type PartitionKeyRangeIdRegionListMetricsResponse = PartitionMetricListResult & { +export type SqlResourcesBeginCreateUpdateSqlContainerResponse = SqlContainerGetResults & { /** * The underlying HTTP response. */ @@ -3725,14 +5695,14 @@ export type PartitionKeyRangeIdRegionListMetricsResponse = PartitionMetricListRe /** * The response body as parsed JSON or XML */ - parsedBody: PartitionMetricListResult; + parsedBody: SqlContainerGetResults; }; }; /** - * Contains response data for the listSqlDatabases operation. + * Contains response data for the beginUpdateSqlContainerThroughput operation. */ -export type SqlResourcesListSqlDatabasesResponse = SqlDatabaseListResult & { +export type SqlResourcesBeginUpdateSqlContainerThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -3745,14 +5715,14 @@ export type SqlResourcesListSqlDatabasesResponse = SqlDatabaseListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: SqlDatabaseListResult; + parsedBody: ThroughputSettingsGetResults; }; }; /** - * Contains response data for the getSqlDatabase operation. + * Contains response data for the beginMigrateSqlContainerToAutoscale operation. */ -export type SqlResourcesGetSqlDatabaseResponse = SqlDatabaseGetResults & { +export type SqlResourcesBeginMigrateSqlContainerToAutoscaleResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -3765,14 +5735,14 @@ export type SqlResourcesGetSqlDatabaseResponse = SqlDatabaseGetResults & { /** * The response body as parsed JSON or XML */ - parsedBody: SqlDatabaseGetResults; + parsedBody: ThroughputSettingsGetResults; }; }; /** - * Contains response data for the createUpdateSqlDatabase operation. + * Contains response data for the beginMigrateSqlContainerToManualThroughput operation. */ -export type SqlResourcesCreateUpdateSqlDatabaseResponse = SqlDatabaseGetResults & { +export type SqlResourcesBeginMigrateSqlContainerToManualThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -3785,14 +5755,14 @@ export type SqlResourcesCreateUpdateSqlDatabaseResponse = SqlDatabaseGetResults /** * The response body as parsed JSON or XML */ - parsedBody: SqlDatabaseGetResults; + parsedBody: ThroughputSettingsGetResults; }; }; /** - * Contains response data for the getSqlDatabaseThroughput operation. + * Contains response data for the beginCreateUpdateSqlStoredProcedure operation. */ -export type SqlResourcesGetSqlDatabaseThroughputResponse = ThroughputSettingsGetResults & { +export type SqlResourcesBeginCreateUpdateSqlStoredProcedureResponse = SqlStoredProcedureGetResults & { /** * The underlying HTTP response. */ @@ -3805,14 +5775,14 @@ export type SqlResourcesGetSqlDatabaseThroughputResponse = ThroughputSettingsGet /** * The response body as parsed JSON or XML */ - parsedBody: ThroughputSettingsGetResults; + parsedBody: SqlStoredProcedureGetResults; }; }; /** - * Contains response data for the updateSqlDatabaseThroughput operation. + * Contains response data for the beginCreateUpdateSqlUserDefinedFunction operation. */ -export type SqlResourcesUpdateSqlDatabaseThroughputResponse = ThroughputSettingsGetResults & { +export type SqlResourcesBeginCreateUpdateSqlUserDefinedFunctionResponse = SqlUserDefinedFunctionGetResults & { /** * The underlying HTTP response. */ @@ -3825,14 +5795,14 @@ export type SqlResourcesUpdateSqlDatabaseThroughputResponse = ThroughputSettings /** * The response body as parsed JSON or XML */ - parsedBody: ThroughputSettingsGetResults; + parsedBody: SqlUserDefinedFunctionGetResults; }; }; /** - * Contains response data for the migrateSqlDatabaseToAutoscale operation. + * Contains response data for the beginCreateUpdateSqlTrigger operation. */ -export type SqlResourcesMigrateSqlDatabaseToAutoscaleResponse = ThroughputSettingsGetResults & { +export type SqlResourcesBeginCreateUpdateSqlTriggerResponse = SqlTriggerGetResults & { /** * The underlying HTTP response. */ @@ -3845,14 +5815,14 @@ export type SqlResourcesMigrateSqlDatabaseToAutoscaleResponse = ThroughputSettin /** * The response body as parsed JSON or XML */ - parsedBody: ThroughputSettingsGetResults; + parsedBody: SqlTriggerGetResults; }; }; /** - * Contains response data for the migrateSqlDatabaseToManualThroughput operation. + * Contains response data for the beginCreateUpdateSqlRoleDefinition operation. */ -export type SqlResourcesMigrateSqlDatabaseToManualThroughputResponse = ThroughputSettingsGetResults & { +export type SqlResourcesBeginCreateUpdateSqlRoleDefinitionResponse = SqlRoleDefinitionGetResults & { /** * The underlying HTTP response. */ @@ -3865,14 +5835,14 @@ export type SqlResourcesMigrateSqlDatabaseToManualThroughputResponse = Throughpu /** * The response body as parsed JSON or XML */ - parsedBody: ThroughputSettingsGetResults; + parsedBody: SqlRoleDefinitionGetResults; }; }; /** - * Contains response data for the listSqlContainers operation. + * Contains response data for the beginCreateUpdateSqlRoleAssignment operation. */ -export type SqlResourcesListSqlContainersResponse = SqlContainerListResult & { +export type SqlResourcesBeginCreateUpdateSqlRoleAssignmentResponse = SqlRoleAssignmentGetResults & { /** * The underlying HTTP response. */ @@ -3885,14 +5855,14 @@ export type SqlResourcesListSqlContainersResponse = SqlContainerListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: SqlContainerListResult; + parsedBody: SqlRoleAssignmentGetResults; }; }; /** - * Contains response data for the getSqlContainer operation. + * Contains response data for the listMongoDBDatabases operation. */ -export type SqlResourcesGetSqlContainerResponse = SqlContainerGetResults & { +export type MongoDBResourcesListMongoDBDatabasesResponse = MongoDBDatabaseListResult & { /** * The underlying HTTP response. */ @@ -3905,14 +5875,14 @@ export type SqlResourcesGetSqlContainerResponse = SqlContainerGetResults & { /** * The response body as parsed JSON or XML */ - parsedBody: SqlContainerGetResults; + parsedBody: MongoDBDatabaseListResult; }; }; /** - * Contains response data for the createUpdateSqlContainer operation. + * Contains response data for the getMongoDBDatabase operation. */ -export type SqlResourcesCreateUpdateSqlContainerResponse = SqlContainerGetResults & { +export type MongoDBResourcesGetMongoDBDatabaseResponse = MongoDBDatabaseGetResults & { /** * The underlying HTTP response. */ @@ -3925,14 +5895,14 @@ export type SqlResourcesCreateUpdateSqlContainerResponse = SqlContainerGetResult /** * The response body as parsed JSON or XML */ - parsedBody: SqlContainerGetResults; + parsedBody: MongoDBDatabaseGetResults; }; }; /** - * Contains response data for the getSqlContainerThroughput operation. + * Contains response data for the createUpdateMongoDBDatabase operation. */ -export type SqlResourcesGetSqlContainerThroughputResponse = ThroughputSettingsGetResults & { +export type MongoDBResourcesCreateUpdateMongoDBDatabaseResponse = MongoDBDatabaseGetResults & { /** * The underlying HTTP response. */ @@ -3945,14 +5915,14 @@ export type SqlResourcesGetSqlContainerThroughputResponse = ThroughputSettingsGe /** * The response body as parsed JSON or XML */ - parsedBody: ThroughputSettingsGetResults; + parsedBody: MongoDBDatabaseGetResults; }; }; /** - * Contains response data for the updateSqlContainerThroughput operation. + * Contains response data for the getMongoDBDatabaseThroughput operation. */ -export type SqlResourcesUpdateSqlContainerThroughputResponse = ThroughputSettingsGetResults & { +export type MongoDBResourcesGetMongoDBDatabaseThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -3970,9 +5940,9 @@ export type SqlResourcesUpdateSqlContainerThroughputResponse = ThroughputSetting }; /** - * Contains response data for the migrateSqlContainerToAutoscale operation. + * Contains response data for the updateMongoDBDatabaseThroughput operation. */ -export type SqlResourcesMigrateSqlContainerToAutoscaleResponse = ThroughputSettingsGetResults & { +export type MongoDBResourcesUpdateMongoDBDatabaseThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -3990,9 +5960,9 @@ export type SqlResourcesMigrateSqlContainerToAutoscaleResponse = ThroughputSetti }; /** - * Contains response data for the migrateSqlContainerToManualThroughput operation. + * Contains response data for the migrateMongoDBDatabaseToAutoscale operation. */ -export type SqlResourcesMigrateSqlContainerToManualThroughputResponse = ThroughputSettingsGetResults & { +export type MongoDBResourcesMigrateMongoDBDatabaseToAutoscaleResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -4010,9 +5980,9 @@ export type SqlResourcesMigrateSqlContainerToManualThroughputResponse = Throughp }; /** - * Contains response data for the listSqlStoredProcedures operation. + * Contains response data for the migrateMongoDBDatabaseToManualThroughput operation. */ -export type SqlResourcesListSqlStoredProceduresResponse = SqlStoredProcedureListResult & { +export type MongoDBResourcesMigrateMongoDBDatabaseToManualThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -4025,14 +5995,14 @@ export type SqlResourcesListSqlStoredProceduresResponse = SqlStoredProcedureList /** * The response body as parsed JSON or XML */ - parsedBody: SqlStoredProcedureListResult; + parsedBody: ThroughputSettingsGetResults; }; }; /** - * Contains response data for the getSqlStoredProcedure operation. + * Contains response data for the listMongoDBCollections operation. */ -export type SqlResourcesGetSqlStoredProcedureResponse = SqlStoredProcedureGetResults & { +export type MongoDBResourcesListMongoDBCollectionsResponse = MongoDBCollectionListResult & { /** * The underlying HTTP response. */ @@ -4045,14 +6015,14 @@ export type SqlResourcesGetSqlStoredProcedureResponse = SqlStoredProcedureGetRes /** * The response body as parsed JSON or XML */ - parsedBody: SqlStoredProcedureGetResults; + parsedBody: MongoDBCollectionListResult; }; }; /** - * Contains response data for the createUpdateSqlStoredProcedure operation. + * Contains response data for the getMongoDBCollection operation. */ -export type SqlResourcesCreateUpdateSqlStoredProcedureResponse = SqlStoredProcedureGetResults & { +export type MongoDBResourcesGetMongoDBCollectionResponse = MongoDBCollectionGetResults & { /** * The underlying HTTP response. */ @@ -4065,14 +6035,14 @@ export type SqlResourcesCreateUpdateSqlStoredProcedureResponse = SqlStoredProced /** * The response body as parsed JSON or XML */ - parsedBody: SqlStoredProcedureGetResults; + parsedBody: MongoDBCollectionGetResults; }; }; /** - * Contains response data for the listSqlUserDefinedFunctions operation. + * Contains response data for the createUpdateMongoDBCollection operation. */ -export type SqlResourcesListSqlUserDefinedFunctionsResponse = SqlUserDefinedFunctionListResult & { +export type MongoDBResourcesCreateUpdateMongoDBCollectionResponse = MongoDBCollectionGetResults & { /** * The underlying HTTP response. */ @@ -4085,14 +6055,14 @@ export type SqlResourcesListSqlUserDefinedFunctionsResponse = SqlUserDefinedFunc /** * The response body as parsed JSON or XML */ - parsedBody: SqlUserDefinedFunctionListResult; + parsedBody: MongoDBCollectionGetResults; }; }; /** - * Contains response data for the getSqlUserDefinedFunction operation. + * Contains response data for the getMongoDBCollectionThroughput operation. */ -export type SqlResourcesGetSqlUserDefinedFunctionResponse = SqlUserDefinedFunctionGetResults & { +export type MongoDBResourcesGetMongoDBCollectionThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -4105,14 +6075,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 updateMongoDBCollectionThroughput operation. */ -export type SqlResourcesCreateUpdateSqlUserDefinedFunctionResponse = SqlUserDefinedFunctionGetResults & { +export type MongoDBResourcesUpdateMongoDBCollectionThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -4125,14 +6095,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 migrateMongoDBCollectionToAutoscale operation. */ -export type SqlResourcesListSqlTriggersResponse = SqlTriggerListResult & { +export type MongoDBResourcesMigrateMongoDBCollectionToAutoscaleResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -4145,14 +6115,14 @@ export type SqlResourcesListSqlTriggersResponse = SqlTriggerListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: SqlTriggerListResult; + parsedBody: ThroughputSettingsGetResults; }; }; /** - * Contains response data for the getSqlTrigger operation. + * Contains response data for the migrateMongoDBCollectionToManualThroughput operation. */ -export type SqlResourcesGetSqlTriggerResponse = SqlTriggerGetResults & { +export type MongoDBResourcesMigrateMongoDBCollectionToManualThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -4165,14 +6135,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 beginCreateUpdateMongoDBDatabase operation. */ -export type SqlResourcesCreateUpdateSqlTriggerResponse = SqlTriggerGetResults & { +export type MongoDBResourcesBeginCreateUpdateMongoDBDatabaseResponse = MongoDBDatabaseGetResults & { /** * The underlying HTTP response. */ @@ -4185,14 +6155,14 @@ export type SqlResourcesCreateUpdateSqlTriggerResponse = SqlTriggerGetResults & /** * The response body as parsed JSON or XML */ - parsedBody: SqlTriggerGetResults; + parsedBody: MongoDBDatabaseGetResults; }; }; /** - * Contains response data for the beginCreateUpdateSqlDatabase operation. + * Contains response data for the beginUpdateMongoDBDatabaseThroughput operation. */ -export type SqlResourcesBeginCreateUpdateSqlDatabaseResponse = SqlDatabaseGetResults & { +export type MongoDBResourcesBeginUpdateMongoDBDatabaseThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -4205,14 +6175,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 beginMigrateMongoDBDatabaseToAutoscale operation. */ -export type SqlResourcesBeginUpdateSqlDatabaseThroughputResponse = ThroughputSettingsGetResults & { +export type MongoDBResourcesBeginMigrateMongoDBDatabaseToAutoscaleResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -4230,9 +6200,9 @@ export type SqlResourcesBeginUpdateSqlDatabaseThroughputResponse = ThroughputSet }; /** - * Contains response data for the beginMigrateSqlDatabaseToAutoscale operation. + * Contains response data for the beginMigrateMongoDBDatabaseToManualThroughput operation. */ -export type SqlResourcesBeginMigrateSqlDatabaseToAutoscaleResponse = ThroughputSettingsGetResults & { +export type MongoDBResourcesBeginMigrateMongoDBDatabaseToManualThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -4250,9 +6220,9 @@ export type SqlResourcesBeginMigrateSqlDatabaseToAutoscaleResponse = ThroughputS }; /** - * Contains response data for the beginMigrateSqlDatabaseToManualThroughput operation. + * Contains response data for the beginCreateUpdateMongoDBCollection operation. */ -export type SqlResourcesBeginMigrateSqlDatabaseToManualThroughputResponse = ThroughputSettingsGetResults & { +export type MongoDBResourcesBeginCreateUpdateMongoDBCollectionResponse = MongoDBCollectionGetResults & { /** * The underlying HTTP response. */ @@ -4265,14 +6235,14 @@ export type SqlResourcesBeginMigrateSqlDatabaseToManualThroughputResponse = Thro /** * 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. */ @@ -4285,14 +6255,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. */ @@ -4310,9 +6280,9 @@ export type SqlResourcesBeginUpdateSqlContainerThroughputResponse = ThroughputSe }; /** - * Contains response data for the beginMigrateSqlContainerToAutoscale operation. + * Contains response data for the beginMigrateMongoDBCollectionToManualThroughput operation. */ -export type SqlResourcesBeginMigrateSqlContainerToAutoscaleResponse = ThroughputSettingsGetResults & { +export type MongoDBResourcesBeginMigrateMongoDBCollectionToManualThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -4330,9 +6300,9 @@ export type SqlResourcesBeginMigrateSqlContainerToAutoscaleResponse = Throughput }; /** - * Contains response data for the beginMigrateSqlContainerToManualThroughput operation. + * Contains response data for the listTables operation. */ -export type SqlResourcesBeginMigrateSqlContainerToManualThroughputResponse = ThroughputSettingsGetResults & { +export type TableResourcesListTablesResponse = TableListResult & { /** * The underlying HTTP response. */ @@ -4345,14 +6315,14 @@ export type SqlResourcesBeginMigrateSqlContainerToManualThroughputResponse = Thr /** * The response body as parsed JSON or XML */ - parsedBody: ThroughputSettingsGetResults; + parsedBody: TableListResult; }; }; /** - * Contains response data for the beginCreateUpdateSqlStoredProcedure operation. + * Contains response data for the getTable operation. */ -export type SqlResourcesBeginCreateUpdateSqlStoredProcedureResponse = SqlStoredProcedureGetResults & { +export type TableResourcesGetTableResponse = TableGetResults & { /** * The underlying HTTP response. */ @@ -4365,14 +6335,14 @@ export type SqlResourcesBeginCreateUpdateSqlStoredProcedureResponse = SqlStoredP /** * The response body as parsed JSON or XML */ - parsedBody: SqlStoredProcedureGetResults; + parsedBody: TableGetResults; }; }; /** - * Contains response data for the beginCreateUpdateSqlUserDefinedFunction operation. + * Contains response data for the createUpdateTable operation. */ -export type SqlResourcesBeginCreateUpdateSqlUserDefinedFunctionResponse = SqlUserDefinedFunctionGetResults & { +export type TableResourcesCreateUpdateTableResponse = TableGetResults & { /** * The underlying HTTP response. */ @@ -4385,14 +6355,14 @@ export type SqlResourcesBeginCreateUpdateSqlUserDefinedFunctionResponse = SqlUse /** * The response body as parsed JSON or XML */ - parsedBody: SqlUserDefinedFunctionGetResults; + parsedBody: TableGetResults; }; }; /** - * Contains response data for the beginCreateUpdateSqlTrigger operation. + * Contains response data for the getTableThroughput operation. */ -export type SqlResourcesBeginCreateUpdateSqlTriggerResponse = SqlTriggerGetResults & { +export type TableResourcesGetTableThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -4405,14 +6375,14 @@ export type SqlResourcesBeginCreateUpdateSqlTriggerResponse = SqlTriggerGetResul /** * The response body as parsed JSON or XML */ - parsedBody: SqlTriggerGetResults; + parsedBody: ThroughputSettingsGetResults; }; }; /** - * Contains response data for the listMongoDBDatabases operation. + * Contains response data for the updateTableThroughput operation. */ -export type MongoDBResourcesListMongoDBDatabasesResponse = MongoDBDatabaseListResult & { +export type TableResourcesUpdateTableThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -4425,14 +6395,14 @@ export type MongoDBResourcesListMongoDBDatabasesResponse = MongoDBDatabaseListRe /** * The response body as parsed JSON or XML */ - parsedBody: MongoDBDatabaseListResult; + parsedBody: ThroughputSettingsGetResults; }; }; /** - * Contains response data for the getMongoDBDatabase operation. + * Contains response data for the migrateTableToAutoscale operation. */ -export type MongoDBResourcesGetMongoDBDatabaseResponse = MongoDBDatabaseGetResults & { +export type TableResourcesMigrateTableToAutoscaleResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -4445,14 +6415,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 migrateTableToManualThroughput operation. */ -export type MongoDBResourcesCreateUpdateMongoDBDatabaseResponse = MongoDBDatabaseGetResults & { +export type TableResourcesMigrateTableToManualThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -4465,14 +6435,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 beginCreateUpdateTable operation. */ -export type MongoDBResourcesGetMongoDBDatabaseThroughputResponse = ThroughputSettingsGetResults & { +export type TableResourcesBeginCreateUpdateTableResponse = TableGetResults & { /** * The underlying HTTP response. */ @@ -4485,14 +6455,14 @@ export type MongoDBResourcesGetMongoDBDatabaseThroughputResponse = ThroughputSet /** * The response body as parsed JSON or XML */ - parsedBody: ThroughputSettingsGetResults; + parsedBody: TableGetResults; }; }; /** - * Contains response data for the updateMongoDBDatabaseThroughput operation. + * Contains response data for the beginUpdateTableThroughput operation. */ -export type MongoDBResourcesUpdateMongoDBDatabaseThroughputResponse = ThroughputSettingsGetResults & { +export type TableResourcesBeginUpdateTableThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -4510,9 +6480,9 @@ export type MongoDBResourcesUpdateMongoDBDatabaseThroughputResponse = Throughput }; /** - * Contains response data for the migrateMongoDBDatabaseToAutoscale operation. + * Contains response data for the beginMigrateTableToAutoscale operation. */ -export type MongoDBResourcesMigrateMongoDBDatabaseToAutoscaleResponse = ThroughputSettingsGetResults & { +export type TableResourcesBeginMigrateTableToAutoscaleResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -4530,9 +6500,9 @@ export type MongoDBResourcesMigrateMongoDBDatabaseToAutoscaleResponse = Throughp }; /** - * Contains response data for the migrateMongoDBDatabaseToManualThroughput operation. + * Contains response data for the beginMigrateTableToManualThroughput operation. */ -export type MongoDBResourcesMigrateMongoDBDatabaseToManualThroughputResponse = ThroughputSettingsGetResults & { +export type TableResourcesBeginMigrateTableToManualThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -4550,9 +6520,9 @@ export type MongoDBResourcesMigrateMongoDBDatabaseToManualThroughputResponse = T }; /** - * Contains response data for the listMongoDBCollections operation. + * Contains response data for the listCassandraKeyspaces operation. */ -export type MongoDBResourcesListMongoDBCollectionsResponse = MongoDBCollectionListResult & { +export type CassandraResourcesListCassandraKeyspacesResponse = CassandraKeyspaceListResult & { /** * The underlying HTTP response. */ @@ -4565,14 +6535,14 @@ export type MongoDBResourcesListMongoDBCollectionsResponse = MongoDBCollectionLi /** * The response body as parsed JSON or XML */ - parsedBody: MongoDBCollectionListResult; + parsedBody: CassandraKeyspaceListResult; }; }; /** - * Contains response data for the getMongoDBCollection operation. + * Contains response data for the getCassandraKeyspace operation. */ -export type MongoDBResourcesGetMongoDBCollectionResponse = MongoDBCollectionGetResults & { +export type CassandraResourcesGetCassandraKeyspaceResponse = CassandraKeyspaceGetResults & { /** * The underlying HTTP response. */ @@ -4585,14 +6555,14 @@ export type MongoDBResourcesGetMongoDBCollectionResponse = MongoDBCollectionGetR /** * The response body as parsed JSON or XML */ - parsedBody: MongoDBCollectionGetResults; + parsedBody: CassandraKeyspaceGetResults; }; }; /** - * Contains response data for the createUpdateMongoDBCollection operation. + * Contains response data for the createUpdateCassandraKeyspace operation. */ -export type MongoDBResourcesCreateUpdateMongoDBCollectionResponse = MongoDBCollectionGetResults & { +export type CassandraResourcesCreateUpdateCassandraKeyspaceResponse = CassandraKeyspaceGetResults & { /** * The underlying HTTP response. */ @@ -4605,14 +6575,14 @@ export type MongoDBResourcesCreateUpdateMongoDBCollectionResponse = MongoDBColle /** * The response body as parsed JSON or XML */ - parsedBody: MongoDBCollectionGetResults; + parsedBody: CassandraKeyspaceGetResults; }; }; /** - * Contains response data for the getMongoDBCollectionThroughput operation. + * Contains response data for the getCassandraKeyspaceThroughput operation. */ -export type MongoDBResourcesGetMongoDBCollectionThroughputResponse = ThroughputSettingsGetResults & { +export type CassandraResourcesGetCassandraKeyspaceThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -4630,9 +6600,9 @@ export type MongoDBResourcesGetMongoDBCollectionThroughputResponse = ThroughputS }; /** - * Contains response data for the updateMongoDBCollectionThroughput operation. + * Contains response data for the updateCassandraKeyspaceThroughput operation. */ -export type MongoDBResourcesUpdateMongoDBCollectionThroughputResponse = ThroughputSettingsGetResults & { +export type CassandraResourcesUpdateCassandraKeyspaceThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -4650,9 +6620,9 @@ export type MongoDBResourcesUpdateMongoDBCollectionThroughputResponse = Throughp }; /** - * Contains response data for the migrateMongoDBCollectionToAutoscale operation. + * Contains response data for the migrateCassandraKeyspaceToAutoscale operation. */ -export type MongoDBResourcesMigrateMongoDBCollectionToAutoscaleResponse = ThroughputSettingsGetResults & { +export type CassandraResourcesMigrateCassandraKeyspaceToAutoscaleResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -4670,9 +6640,9 @@ export type MongoDBResourcesMigrateMongoDBCollectionToAutoscaleResponse = Throug }; /** - * Contains response data for the migrateMongoDBCollectionToManualThroughput operation. + * Contains response data for the migrateCassandraKeyspaceToManualThroughput operation. */ -export type MongoDBResourcesMigrateMongoDBCollectionToManualThroughputResponse = ThroughputSettingsGetResults & { +export type CassandraResourcesMigrateCassandraKeyspaceToManualThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -4690,9 +6660,9 @@ export type MongoDBResourcesMigrateMongoDBCollectionToManualThroughputResponse = }; /** - * Contains response data for the beginCreateUpdateMongoDBDatabase operation. + * Contains response data for the listCassandraTables operation. */ -export type MongoDBResourcesBeginCreateUpdateMongoDBDatabaseResponse = MongoDBDatabaseGetResults & { +export type CassandraResourcesListCassandraTablesResponse = CassandraTableListResult & { /** * The underlying HTTP response. */ @@ -4705,14 +6675,14 @@ export type MongoDBResourcesBeginCreateUpdateMongoDBDatabaseResponse = MongoDBDa /** * The response body as parsed JSON or XML */ - parsedBody: MongoDBDatabaseGetResults; + parsedBody: CassandraTableListResult; }; }; /** - * Contains response data for the beginUpdateMongoDBDatabaseThroughput operation. + * Contains response data for the getCassandraTable operation. */ -export type MongoDBResourcesBeginUpdateMongoDBDatabaseThroughputResponse = ThroughputSettingsGetResults & { +export type CassandraResourcesGetCassandraTableResponse = CassandraTableGetResults & { /** * The underlying HTTP response. */ @@ -4725,14 +6695,14 @@ export type MongoDBResourcesBeginUpdateMongoDBDatabaseThroughputResponse = Throu /** * The response body as parsed JSON or XML */ - parsedBody: ThroughputSettingsGetResults; + parsedBody: CassandraTableGetResults; }; }; /** - * Contains response data for the beginMigrateMongoDBDatabaseToAutoscale operation. + * Contains response data for the createUpdateCassandraTable operation. */ -export type MongoDBResourcesBeginMigrateMongoDBDatabaseToAutoscaleResponse = ThroughputSettingsGetResults & { +export type CassandraResourcesCreateUpdateCassandraTableResponse = CassandraTableGetResults & { /** * The underlying HTTP response. */ @@ -4745,14 +6715,14 @@ export type MongoDBResourcesBeginMigrateMongoDBDatabaseToAutoscaleResponse = Thr /** * The response body as parsed JSON or XML */ - parsedBody: ThroughputSettingsGetResults; + parsedBody: CassandraTableGetResults; }; }; /** - * Contains response data for the beginMigrateMongoDBDatabaseToManualThroughput operation. + * Contains response data for the getCassandraTableThroughput operation. */ -export type MongoDBResourcesBeginMigrateMongoDBDatabaseToManualThroughputResponse = ThroughputSettingsGetResults & { +export type CassandraResourcesGetCassandraTableThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -4770,9 +6740,9 @@ export type MongoDBResourcesBeginMigrateMongoDBDatabaseToManualThroughputRespons }; /** - * Contains response data for the beginCreateUpdateMongoDBCollection operation. + * Contains response data for the updateCassandraTableThroughput operation. */ -export type MongoDBResourcesBeginCreateUpdateMongoDBCollectionResponse = MongoDBCollectionGetResults & { +export type CassandraResourcesUpdateCassandraTableThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -4785,14 +6755,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 migrateCassandraTableToAutoscale operation. */ -export type MongoDBResourcesBeginUpdateMongoDBCollectionThroughputResponse = ThroughputSettingsGetResults & { +export type CassandraResourcesMigrateCassandraTableToAutoscaleResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -4810,9 +6780,9 @@ export type MongoDBResourcesBeginUpdateMongoDBCollectionThroughputResponse = Thr }; /** - * Contains response data for the beginMigrateMongoDBCollectionToAutoscale operation. + * Contains response data for the migrateCassandraTableToManualThroughput operation. */ -export type MongoDBResourcesBeginMigrateMongoDBCollectionToAutoscaleResponse = ThroughputSettingsGetResults & { +export type CassandraResourcesMigrateCassandraTableToManualThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -4830,9 +6800,9 @@ export type MongoDBResourcesBeginMigrateMongoDBCollectionToAutoscaleResponse = T }; /** - * Contains response data for the beginMigrateMongoDBCollectionToManualThroughput operation. + * Contains response data for the beginCreateUpdateCassandraKeyspace operation. */ -export type MongoDBResourcesBeginMigrateMongoDBCollectionToManualThroughputResponse = ThroughputSettingsGetResults & { +export type CassandraResourcesBeginCreateUpdateCassandraKeyspaceResponse = CassandraKeyspaceGetResults & { /** * The underlying HTTP response. */ @@ -4845,14 +6815,14 @@ export type MongoDBResourcesBeginMigrateMongoDBCollectionToManualThroughputRespo /** * The response body as parsed JSON or XML */ - parsedBody: ThroughputSettingsGetResults; + parsedBody: CassandraKeyspaceGetResults; }; }; /** - * Contains response data for the listTables operation. + * Contains response data for the beginUpdateCassandraKeyspaceThroughput operation. */ -export type TableResourcesListTablesResponse = TableListResult & { +export type CassandraResourcesBeginUpdateCassandraKeyspaceThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -4865,14 +6835,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 beginMigrateCassandraKeyspaceToAutoscale operation. */ -export type TableResourcesGetTableResponse = TableGetResults & { +export type CassandraResourcesBeginMigrateCassandraKeyspaceToAutoscaleResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -4885,14 +6855,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 beginMigrateCassandraKeyspaceToManualThroughput operation. */ -export type TableResourcesCreateUpdateTableResponse = TableGetResults & { +export type CassandraResourcesBeginMigrateCassandraKeyspaceToManualThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -4905,14 +6875,14 @@ export type TableResourcesCreateUpdateTableResponse = TableGetResults & { /** * The response body as parsed JSON or XML */ - parsedBody: TableGetResults; + parsedBody: ThroughputSettingsGetResults; }; }; /** - * Contains response data for the getTableThroughput operation. + * Contains response data for the beginCreateUpdateCassandraTable operation. */ -export type TableResourcesGetTableThroughputResponse = ThroughputSettingsGetResults & { +export type CassandraResourcesBeginCreateUpdateCassandraTableResponse = CassandraTableGetResults & { /** * The underlying HTTP response. */ @@ -4925,14 +6895,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 beginUpdateCassandraTableThroughput operation. */ -export type TableResourcesUpdateTableThroughputResponse = ThroughputSettingsGetResults & { +export type CassandraResourcesBeginUpdateCassandraTableThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -4950,9 +6920,9 @@ export type TableResourcesUpdateTableThroughputResponse = ThroughputSettingsGetR }; /** - * Contains response data for the migrateTableToAutoscale operation. + * Contains response data for the beginMigrateCassandraTableToAutoscale operation. */ -export type TableResourcesMigrateTableToAutoscaleResponse = ThroughputSettingsGetResults & { +export type CassandraResourcesBeginMigrateCassandraTableToAutoscaleResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -4970,9 +6940,9 @@ export type TableResourcesMigrateTableToAutoscaleResponse = ThroughputSettingsGe }; /** - * Contains response data for the migrateTableToManualThroughput operation. + * Contains response data for the beginMigrateCassandraTableToManualThroughput operation. */ -export type TableResourcesMigrateTableToManualThroughputResponse = ThroughputSettingsGetResults & { +export type CassandraResourcesBeginMigrateCassandraTableToManualThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -4990,9 +6960,9 @@ export type TableResourcesMigrateTableToManualThroughputResponse = ThroughputSet }; /** - * Contains response data for the beginCreateUpdateTable operation. + * Contains response data for the listGremlinDatabases operation. */ -export type TableResourcesBeginCreateUpdateTableResponse = TableGetResults & { +export type GremlinResourcesListGremlinDatabasesResponse = GremlinDatabaseListResult & { /** * The underlying HTTP response. */ @@ -5005,14 +6975,14 @@ export type TableResourcesBeginCreateUpdateTableResponse = TableGetResults & { /** * The response body as parsed JSON or XML */ - parsedBody: TableGetResults; + parsedBody: GremlinDatabaseListResult; }; }; /** - * Contains response data for the beginUpdateTableThroughput operation. + * Contains response data for the getGremlinDatabase operation. */ -export type TableResourcesBeginUpdateTableThroughputResponse = ThroughputSettingsGetResults & { +export type GremlinResourcesGetGremlinDatabaseResponse = GremlinDatabaseGetResults & { /** * The underlying HTTP response. */ @@ -5025,14 +6995,14 @@ export type TableResourcesBeginUpdateTableThroughputResponse = ThroughputSetting /** * The response body as parsed JSON or XML */ - parsedBody: ThroughputSettingsGetResults; + parsedBody: GremlinDatabaseGetResults; }; }; /** - * Contains response data for the beginMigrateTableToAutoscale operation. + * Contains response data for the createUpdateGremlinDatabase operation. */ -export type TableResourcesBeginMigrateTableToAutoscaleResponse = ThroughputSettingsGetResults & { +export type GremlinResourcesCreateUpdateGremlinDatabaseResponse = GremlinDatabaseGetResults & { /** * The underlying HTTP response. */ @@ -5045,14 +7015,14 @@ export type TableResourcesBeginMigrateTableToAutoscaleResponse = ThroughputSetti /** * The response body as parsed JSON or XML */ - parsedBody: ThroughputSettingsGetResults; + parsedBody: GremlinDatabaseGetResults; }; }; /** - * Contains response data for the beginMigrateTableToManualThroughput operation. + * Contains response data for the getGremlinDatabaseThroughput operation. */ -export type TableResourcesBeginMigrateTableToManualThroughputResponse = ThroughputSettingsGetResults & { +export type GremlinResourcesGetGremlinDatabaseThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -5070,9 +7040,9 @@ export type TableResourcesBeginMigrateTableToManualThroughputResponse = Throughp }; /** - * Contains response data for the listCassandraKeyspaces operation. + * Contains response data for the updateGremlinDatabaseThroughput operation. */ -export type CassandraResourcesListCassandraKeyspacesResponse = CassandraKeyspaceListResult & { +export type GremlinResourcesUpdateGremlinDatabaseThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -5085,14 +7055,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 migrateGremlinDatabaseToAutoscale operation. */ -export type CassandraResourcesGetCassandraKeyspaceResponse = CassandraKeyspaceGetResults & { +export type GremlinResourcesMigrateGremlinDatabaseToAutoscaleResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -5105,14 +7075,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 migrateGremlinDatabaseToManualThroughput operation. */ -export type CassandraResourcesCreateUpdateCassandraKeyspaceResponse = CassandraKeyspaceGetResults & { +export type GremlinResourcesMigrateGremlinDatabaseToManualThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -5125,14 +7095,14 @@ export type CassandraResourcesCreateUpdateCassandraKeyspaceResponse = CassandraK /** * The response body as parsed JSON or XML */ - parsedBody: CassandraKeyspaceGetResults; + parsedBody: ThroughputSettingsGetResults; }; }; /** - * Contains response data for the getCassandraKeyspaceThroughput operation. + * Contains response data for the listGremlinGraphs operation. */ -export type CassandraResourcesGetCassandraKeyspaceThroughputResponse = ThroughputSettingsGetResults & { +export type GremlinResourcesListGremlinGraphsResponse = GremlinGraphListResult & { /** * The underlying HTTP response. */ @@ -5145,14 +7115,14 @@ export type CassandraResourcesGetCassandraKeyspaceThroughputResponse = Throughpu /** * The response body as parsed JSON or XML */ - parsedBody: ThroughputSettingsGetResults; + parsedBody: GremlinGraphListResult; }; }; /** - * Contains response data for the updateCassandraKeyspaceThroughput operation. + * Contains response data for the getGremlinGraph operation. */ -export type CassandraResourcesUpdateCassandraKeyspaceThroughputResponse = ThroughputSettingsGetResults & { +export type GremlinResourcesGetGremlinGraphResponse = GremlinGraphGetResults & { /** * The underlying HTTP response. */ @@ -5165,14 +7135,14 @@ export type CassandraResourcesUpdateCassandraKeyspaceThroughputResponse = Throug /** * The response body as parsed JSON or XML */ - parsedBody: ThroughputSettingsGetResults; + parsedBody: GremlinGraphGetResults; }; }; /** - * Contains response data for the migrateCassandraKeyspaceToAutoscale operation. + * Contains response data for the createUpdateGremlinGraph operation. */ -export type CassandraResourcesMigrateCassandraKeyspaceToAutoscaleResponse = ThroughputSettingsGetResults & { +export type GremlinResourcesCreateUpdateGremlinGraphResponse = GremlinGraphGetResults & { /** * The underlying HTTP response. */ @@ -5185,14 +7155,14 @@ export type CassandraResourcesMigrateCassandraKeyspaceToAutoscaleResponse = Thro /** * The response body as parsed JSON or XML */ - parsedBody: ThroughputSettingsGetResults; + parsedBody: GremlinGraphGetResults; }; }; /** - * Contains response data for the migrateCassandraKeyspaceToManualThroughput operation. + * Contains response data for the getGremlinGraphThroughput operation. */ -export type CassandraResourcesMigrateCassandraKeyspaceToManualThroughputResponse = ThroughputSettingsGetResults & { +export type GremlinResourcesGetGremlinGraphThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -5210,9 +7180,9 @@ export type CassandraResourcesMigrateCassandraKeyspaceToManualThroughputResponse }; /** - * Contains response data for the listCassandraTables operation. + * Contains response data for the updateGremlinGraphThroughput operation. */ -export type CassandraResourcesListCassandraTablesResponse = CassandraTableListResult & { +export type GremlinResourcesUpdateGremlinGraphThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -5225,14 +7195,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 migrateGremlinGraphToAutoscale operation. */ -export type CassandraResourcesGetCassandraTableResponse = CassandraTableGetResults & { +export type GremlinResourcesMigrateGremlinGraphToAutoscaleResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -5245,14 +7215,14 @@ export type CassandraResourcesGetCassandraTableResponse = CassandraTableGetResul /** * The response body as parsed JSON or XML */ - parsedBody: CassandraTableGetResults; + parsedBody: ThroughputSettingsGetResults; }; }; /** - * Contains response data for the createUpdateCassandraTable operation. + * Contains response data for the migrateGremlinGraphToManualThroughput operation. */ -export type CassandraResourcesCreateUpdateCassandraTableResponse = CassandraTableGetResults & { +export type GremlinResourcesMigrateGremlinGraphToManualThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -5265,14 +7235,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 beginCreateUpdateGremlinDatabase operation. */ -export type CassandraResourcesGetCassandraTableThroughputResponse = ThroughputSettingsGetResults & { +export type GremlinResourcesBeginCreateUpdateGremlinDatabaseResponse = GremlinDatabaseGetResults & { /** * The underlying HTTP response. */ @@ -5285,14 +7255,14 @@ export type CassandraResourcesGetCassandraTableThroughputResponse = ThroughputSe /** * The response body as parsed JSON or XML */ - parsedBody: ThroughputSettingsGetResults; + parsedBody: GremlinDatabaseGetResults; }; }; /** - * Contains response data for the updateCassandraTableThroughput operation. + * Contains response data for the beginUpdateGremlinDatabaseThroughput operation. */ -export type CassandraResourcesUpdateCassandraTableThroughputResponse = ThroughputSettingsGetResults & { +export type GremlinResourcesBeginUpdateGremlinDatabaseThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -5310,9 +7280,9 @@ export type CassandraResourcesUpdateCassandraTableThroughputResponse = Throughpu }; /** - * Contains response data for the migrateCassandraTableToAutoscale operation. + * Contains response data for the beginMigrateGremlinDatabaseToAutoscale operation. */ -export type CassandraResourcesMigrateCassandraTableToAutoscaleResponse = ThroughputSettingsGetResults & { +export type GremlinResourcesBeginMigrateGremlinDatabaseToAutoscaleResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -5330,9 +7300,9 @@ export type CassandraResourcesMigrateCassandraTableToAutoscaleResponse = Through }; /** - * Contains response data for the migrateCassandraTableToManualThroughput operation. + * Contains response data for the beginMigrateGremlinDatabaseToManualThroughput operation. */ -export type CassandraResourcesMigrateCassandraTableToManualThroughputResponse = ThroughputSettingsGetResults & { +export type GremlinResourcesBeginMigrateGremlinDatabaseToManualThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -5350,9 +7320,9 @@ export type CassandraResourcesMigrateCassandraTableToManualThroughputResponse = }; /** - * Contains response data for the beginCreateUpdateCassandraKeyspace operation. + * Contains response data for the beginCreateUpdateGremlinGraph operation. */ -export type CassandraResourcesBeginCreateUpdateCassandraKeyspaceResponse = CassandraKeyspaceGetResults & { +export type GremlinResourcesBeginCreateUpdateGremlinGraphResponse = GremlinGraphGetResults & { /** * The underlying HTTP response. */ @@ -5365,14 +7335,14 @@ export type CassandraResourcesBeginCreateUpdateCassandraKeyspaceResponse = Cassa /** * The response body as parsed JSON or XML */ - parsedBody: CassandraKeyspaceGetResults; + parsedBody: GremlinGraphGetResults; }; }; /** - * Contains response data for the beginUpdateCassandraKeyspaceThroughput operation. + * Contains response data for the beginUpdateGremlinGraphThroughput operation. */ -export type CassandraResourcesBeginUpdateCassandraKeyspaceThroughputResponse = ThroughputSettingsGetResults & { +export type GremlinResourcesBeginUpdateGremlinGraphThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -5390,9 +7360,9 @@ export type CassandraResourcesBeginUpdateCassandraKeyspaceThroughputResponse = T }; /** - * Contains response data for the beginMigrateCassandraKeyspaceToAutoscale operation. + * Contains response data for the beginMigrateGremlinGraphToAutoscale operation. */ -export type CassandraResourcesBeginMigrateCassandraKeyspaceToAutoscaleResponse = ThroughputSettingsGetResults & { +export type GremlinResourcesBeginMigrateGremlinGraphToAutoscaleResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -5410,9 +7380,9 @@ export type CassandraResourcesBeginMigrateCassandraKeyspaceToAutoscaleResponse = }; /** - * Contains response data for the beginMigrateCassandraKeyspaceToManualThroughput operation. + * Contains response data for the beginMigrateGremlinGraphToManualThroughput operation. */ -export type CassandraResourcesBeginMigrateCassandraKeyspaceToManualThroughputResponse = ThroughputSettingsGetResults & { +export type GremlinResourcesBeginMigrateGremlinGraphToManualThroughputResponse = ThroughputSettingsGetResults & { /** * The underlying HTTP response. */ @@ -5430,9 +7400,9 @@ export type CassandraResourcesBeginMigrateCassandraKeyspaceToManualThroughputRes }; /** - * Contains response data for the beginCreateUpdateCassandraTable operation. + * Contains response data for the listByLocation operation. */ -export type CassandraResourcesBeginCreateUpdateCassandraTableResponse = CassandraTableGetResults & { +export type RestorableDatabaseAccountsListByLocationResponse = RestorableDatabaseAccountsListResult & { /** * The underlying HTTP response. */ @@ -5445,14 +7415,14 @@ export type CassandraResourcesBeginCreateUpdateCassandraTableResponse = Cassandr /** * The response body as parsed JSON or XML */ - parsedBody: CassandraTableGetResults; + parsedBody: RestorableDatabaseAccountsListResult; }; }; /** - * Contains response data for the beginUpdateCassandraTableThroughput operation. + * Contains response data for the list operation. */ -export type CassandraResourcesBeginUpdateCassandraTableThroughputResponse = ThroughputSettingsGetResults & { +export type RestorableDatabaseAccountsListResponse = RestorableDatabaseAccountsListResult & { /** * The underlying HTTP response. */ @@ -5465,14 +7435,14 @@ export type CassandraResourcesBeginUpdateCassandraTableThroughputResponse = Thro /** * The response body as parsed JSON or XML */ - parsedBody: ThroughputSettingsGetResults; + parsedBody: RestorableDatabaseAccountsListResult; }; }; /** - * Contains response data for the beginMigrateCassandraTableToAutoscale operation. + * Contains response data for the getByLocation operation. */ -export type CassandraResourcesBeginMigrateCassandraTableToAutoscaleResponse = ThroughputSettingsGetResults & { +export type RestorableDatabaseAccountsGetByLocationResponse = RestorableDatabaseAccountGetResult & { /** * The underlying HTTP response. */ @@ -5485,14 +7455,14 @@ export type CassandraResourcesBeginMigrateCassandraTableToAutoscaleResponse = Th /** * The response body as parsed JSON or XML */ - parsedBody: ThroughputSettingsGetResults; + parsedBody: RestorableDatabaseAccountGetResult; }; }; /** - * Contains response data for the beginMigrateCassandraTableToManualThroughput operation. + * Contains response data for the listByDatabaseAccount operation. */ -export type CassandraResourcesBeginMigrateCassandraTableToManualThroughputResponse = ThroughputSettingsGetResults & { +export type NotebookWorkspacesListByDatabaseAccountResponse = NotebookWorkspaceListResult & { /** * The underlying HTTP response. */ @@ -5505,14 +7475,14 @@ export type CassandraResourcesBeginMigrateCassandraTableToManualThroughputRespon /** * The response body as parsed JSON or XML */ - parsedBody: ThroughputSettingsGetResults; + parsedBody: NotebookWorkspaceListResult; }; }; /** - * Contains response data for the listGremlinDatabases operation. + * Contains response data for the get operation. */ -export type GremlinResourcesListGremlinDatabasesResponse = GremlinDatabaseListResult & { +export type NotebookWorkspacesGetResponse = NotebookWorkspace & { /** * The underlying HTTP response. */ @@ -5525,14 +7495,14 @@ export type GremlinResourcesListGremlinDatabasesResponse = GremlinDatabaseListRe /** * The response body as parsed JSON or XML */ - parsedBody: GremlinDatabaseListResult; + parsedBody: NotebookWorkspace; }; }; /** - * Contains response data for the getGremlinDatabase operation. + * Contains response data for the createOrUpdate operation. */ -export type GremlinResourcesGetGremlinDatabaseResponse = GremlinDatabaseGetResults & { +export type NotebookWorkspacesCreateOrUpdateResponse = NotebookWorkspace & { /** * The underlying HTTP response. */ @@ -5545,14 +7515,14 @@ export type GremlinResourcesGetGremlinDatabaseResponse = GremlinDatabaseGetResul /** * The response body as parsed JSON or XML */ - parsedBody: GremlinDatabaseGetResults; + parsedBody: NotebookWorkspace; }; }; /** - * Contains response data for the createUpdateGremlinDatabase operation. + * Contains response data for the listConnectionInfo operation. */ -export type GremlinResourcesCreateUpdateGremlinDatabaseResponse = GremlinDatabaseGetResults & { +export type NotebookWorkspacesListConnectionInfoResponse = NotebookWorkspaceConnectionInfoResult & { /** * The underlying HTTP response. */ @@ -5565,14 +7535,14 @@ export type GremlinResourcesCreateUpdateGremlinDatabaseResponse = GremlinDatabas /** * The response body as parsed JSON or XML */ - parsedBody: GremlinDatabaseGetResults; + parsedBody: NotebookWorkspaceConnectionInfoResult; }; }; /** - * Contains response data for the getGremlinDatabaseThroughput operation. + * Contains response data for the beginCreateOrUpdate operation. */ -export type GremlinResourcesGetGremlinDatabaseThroughputResponse = ThroughputSettingsGetResults & { +export type NotebookWorkspacesBeginCreateOrUpdateResponse = NotebookWorkspace & { /** * The underlying HTTP response. */ @@ -5585,14 +7555,14 @@ export type GremlinResourcesGetGremlinDatabaseThroughputResponse = ThroughputSet /** * The response body as parsed JSON or XML */ - parsedBody: ThroughputSettingsGetResults; + parsedBody: NotebookWorkspace; }; }; /** - * Contains response data for the updateGremlinDatabaseThroughput operation. + * Contains response data for the list operation. */ -export type GremlinResourcesUpdateGremlinDatabaseThroughputResponse = ThroughputSettingsGetResults & { +export type RestorableSqlDatabasesListResponse = RestorableSqlDatabasesListResult & { /** * The underlying HTTP response. */ @@ -5605,14 +7575,14 @@ export type GremlinResourcesUpdateGremlinDatabaseThroughputResponse = Throughput /** * The response body as parsed JSON or XML */ - parsedBody: ThroughputSettingsGetResults; + parsedBody: RestorableSqlDatabasesListResult; }; }; /** - * Contains response data for the migrateGremlinDatabaseToAutoscale operation. + * Contains response data for the list operation. */ -export type GremlinResourcesMigrateGremlinDatabaseToAutoscaleResponse = ThroughputSettingsGetResults & { +export type RestorableSqlContainersListResponse = RestorableSqlContainersListResult & { /** * The underlying HTTP response. */ @@ -5625,14 +7595,14 @@ export type GremlinResourcesMigrateGremlinDatabaseToAutoscaleResponse = Throughp /** * The response body as parsed JSON or XML */ - parsedBody: ThroughputSettingsGetResults; + parsedBody: RestorableSqlContainersListResult; }; }; /** - * Contains response data for the migrateGremlinDatabaseToManualThroughput operation. + * Contains response data for the list operation. */ -export type GremlinResourcesMigrateGremlinDatabaseToManualThroughputResponse = ThroughputSettingsGetResults & { +export type RestorableSqlResourcesListResponse = RestorableSqlResourcesListResult & { /** * The underlying HTTP response. */ @@ -5645,14 +7615,14 @@ export type GremlinResourcesMigrateGremlinDatabaseToManualThroughputResponse = T /** * The response body as parsed JSON or XML */ - parsedBody: ThroughputSettingsGetResults; + parsedBody: RestorableSqlResourcesListResult; }; }; /** - * Contains response data for the listGremlinGraphs operation. + * Contains response data for the list operation. */ -export type GremlinResourcesListGremlinGraphsResponse = GremlinGraphListResult & { +export type RestorableMongodbDatabasesListResponse = RestorableMongodbDatabasesListResult & { /** * The underlying HTTP response. */ @@ -5665,14 +7635,14 @@ export type GremlinResourcesListGremlinGraphsResponse = GremlinGraphListResult & /** * The response body as parsed JSON or XML */ - parsedBody: GremlinGraphListResult; + parsedBody: RestorableMongodbDatabasesListResult; }; }; /** - * Contains response data for the getGremlinGraph operation. + * Contains response data for the list operation. */ -export type GremlinResourcesGetGremlinGraphResponse = GremlinGraphGetResults & { +export type RestorableMongodbCollectionsListResponse = RestorableMongodbCollectionsListResult & { /** * The underlying HTTP response. */ @@ -5685,14 +7655,14 @@ export type GremlinResourcesGetGremlinGraphResponse = GremlinGraphGetResults & { /** * The response body as parsed JSON or XML */ - parsedBody: GremlinGraphGetResults; + parsedBody: RestorableMongodbCollectionsListResult; }; }; /** - * Contains response data for the createUpdateGremlinGraph operation. + * Contains response data for the list operation. */ -export type GremlinResourcesCreateUpdateGremlinGraphResponse = GremlinGraphGetResults & { +export type RestorableMongodbResourcesListResponse = RestorableMongodbResourcesListResult & { /** * The underlying HTTP response. */ @@ -5705,14 +7675,14 @@ export type GremlinResourcesCreateUpdateGremlinGraphResponse = GremlinGraphGetRe /** * The response body as parsed JSON or XML */ - parsedBody: GremlinGraphGetResults; + parsedBody: RestorableMongodbResourcesListResult; }; }; /** - * Contains response data for the getGremlinGraphThroughput operation. + * Contains response data for the listBySubscription operation. */ -export type GremlinResourcesGetGremlinGraphThroughputResponse = ThroughputSettingsGetResults & { +export type CassandraClustersListBySubscriptionResponse = ListClusters & { /** * The underlying HTTP response. */ @@ -5725,14 +7695,14 @@ export type GremlinResourcesGetGremlinGraphThroughputResponse = ThroughputSettin /** * The response body as parsed JSON or XML */ - parsedBody: ThroughputSettingsGetResults; + parsedBody: ListClusters; }; }; /** - * Contains response data for the updateGremlinGraphThroughput operation. + * Contains response data for the listByResourceGroup operation. */ -export type GremlinResourcesUpdateGremlinGraphThroughputResponse = ThroughputSettingsGetResults & { +export type CassandraClustersListByResourceGroupResponse = ListClusters & { /** * The underlying HTTP response. */ @@ -5745,14 +7715,14 @@ export type GremlinResourcesUpdateGremlinGraphThroughputResponse = ThroughputSet /** * The response body as parsed JSON or XML */ - parsedBody: ThroughputSettingsGetResults; + parsedBody: ListClusters; }; }; /** - * Contains response data for the migrateGremlinGraphToAutoscale operation. + * Contains response data for the get operation. */ -export type GremlinResourcesMigrateGremlinGraphToAutoscaleResponse = ThroughputSettingsGetResults & { +export type CassandraClustersGetResponse = ClusterResource & { /** * The underlying HTTP response. */ @@ -5765,14 +7735,14 @@ export type GremlinResourcesMigrateGremlinGraphToAutoscaleResponse = ThroughputS /** * The response body as parsed JSON or XML */ - parsedBody: ThroughputSettingsGetResults; + parsedBody: ClusterResource; }; }; /** - * Contains response data for the migrateGremlinGraphToManualThroughput operation. + * Contains response data for the createUpdate operation. */ -export type GremlinResourcesMigrateGremlinGraphToManualThroughputResponse = ThroughputSettingsGetResults & { +export type CassandraClustersCreateUpdateResponse = ClusterResource & { /** * The underlying HTTP response. */ @@ -5785,14 +7755,14 @@ export type GremlinResourcesMigrateGremlinGraphToManualThroughputResponse = Thro /** * The response body as parsed JSON or XML */ - parsedBody: ThroughputSettingsGetResults; + parsedBody: ClusterResource; }; }; /** - * Contains response data for the beginCreateUpdateGremlinDatabase operation. + * Contains response data for the update operation. */ -export type GremlinResourcesBeginCreateUpdateGremlinDatabaseResponse = GremlinDatabaseGetResults & { +export type CassandraClustersUpdateResponse = ClusterResource & { /** * The underlying HTTP response. */ @@ -5805,14 +7775,14 @@ export type GremlinResourcesBeginCreateUpdateGremlinDatabaseResponse = GremlinDa /** * The response body as parsed JSON or XML */ - parsedBody: GremlinDatabaseGetResults; + parsedBody: ClusterResource; }; }; /** - * Contains response data for the beginUpdateGremlinDatabaseThroughput operation. + * Contains response data for the fetchNodeStatus operation. */ -export type GremlinResourcesBeginUpdateGremlinDatabaseThroughputResponse = ThroughputSettingsGetResults & { +export type CassandraClustersFetchNodeStatusResponse = ClusterNodeStatus & { /** * The underlying HTTP response. */ @@ -5825,14 +7795,14 @@ export type GremlinResourcesBeginUpdateGremlinDatabaseThroughputResponse = Throu /** * The response body as parsed JSON or XML */ - parsedBody: ThroughputSettingsGetResults; + parsedBody: ClusterNodeStatus; }; }; /** - * Contains response data for the beginMigrateGremlinDatabaseToAutoscale operation. + * Contains response data for the listBackupsMethod operation. */ -export type GremlinResourcesBeginMigrateGremlinDatabaseToAutoscaleResponse = ThroughputSettingsGetResults & { +export type CassandraClustersListBackupsMethodResponse = ListBackups & { /** * The underlying HTTP response. */ @@ -5845,14 +7815,14 @@ export type GremlinResourcesBeginMigrateGremlinDatabaseToAutoscaleResponse = Thr /** * The response body as parsed JSON or XML */ - parsedBody: ThroughputSettingsGetResults; + parsedBody: ListBackups; }; }; /** - * Contains response data for the beginMigrateGremlinDatabaseToManualThroughput operation. + * Contains response data for the getBackup operation. */ -export type GremlinResourcesBeginMigrateGremlinDatabaseToManualThroughputResponse = ThroughputSettingsGetResults & { +export type CassandraClustersGetBackupResponse = BackupResource & { /** * The underlying HTTP response. */ @@ -5865,14 +7835,14 @@ export type GremlinResourcesBeginMigrateGremlinDatabaseToManualThroughputRespons /** * The response body as parsed JSON or XML */ - parsedBody: ThroughputSettingsGetResults; + parsedBody: BackupResource; }; }; /** - * Contains response data for the beginCreateUpdateGremlinGraph operation. + * Contains response data for the beginCreateUpdate operation. */ -export type GremlinResourcesBeginCreateUpdateGremlinGraphResponse = GremlinGraphGetResults & { +export type CassandraClustersBeginCreateUpdateResponse = ClusterResource & { /** * The underlying HTTP response. */ @@ -5885,14 +7855,14 @@ export type GremlinResourcesBeginCreateUpdateGremlinGraphResponse = GremlinGraph /** * The response body as parsed JSON or XML */ - parsedBody: GremlinGraphGetResults; + parsedBody: ClusterResource; }; }; /** - * Contains response data for the beginUpdateGremlinGraphThroughput operation. + * Contains response data for the beginUpdate operation. */ -export type GremlinResourcesBeginUpdateGremlinGraphThroughputResponse = ThroughputSettingsGetResults & { +export type CassandraClustersBeginUpdateResponse = ClusterResource & { /** * The underlying HTTP response. */ @@ -5905,14 +7875,14 @@ export type GremlinResourcesBeginUpdateGremlinGraphThroughputResponse = Throughp /** * The response body as parsed JSON or XML */ - parsedBody: ThroughputSettingsGetResults; + parsedBody: ClusterResource; }; }; /** - * Contains response data for the beginMigrateGremlinGraphToAutoscale operation. + * Contains response data for the beginFetchNodeStatus operation. */ -export type GremlinResourcesBeginMigrateGremlinGraphToAutoscaleResponse = ThroughputSettingsGetResults & { +export type CassandraClustersBeginFetchNodeStatusResponse = ClusterNodeStatus & { /** * The underlying HTTP response. */ @@ -5925,14 +7895,14 @@ export type GremlinResourcesBeginMigrateGremlinGraphToAutoscaleResponse = Throug /** * The response body as parsed JSON or XML */ - parsedBody: ThroughputSettingsGetResults; + parsedBody: ClusterNodeStatus; }; }; /** - * Contains response data for the beginMigrateGremlinGraphToManualThroughput operation. + * Contains response data for the list operation. */ -export type GremlinResourcesBeginMigrateGremlinGraphToManualThroughputResponse = ThroughputSettingsGetResults & { +export type CassandraDataCentersListResponse = ListDataCenters & { /** * The underlying HTTP response. */ @@ -5945,14 +7915,14 @@ export type GremlinResourcesBeginMigrateGremlinGraphToManualThroughputResponse = /** * The response body as parsed JSON or XML */ - parsedBody: ThroughputSettingsGetResults; + parsedBody: ListDataCenters; }; }; /** - * Contains response data for the listByDatabaseAccount operation. + * Contains response data for the get operation. */ -export type NotebookWorkspacesListByDatabaseAccountResponse = NotebookWorkspaceListResult & { +export type CassandraDataCentersGetResponse = DataCenterResource & { /** * The underlying HTTP response. */ @@ -5965,14 +7935,14 @@ export type NotebookWorkspacesListByDatabaseAccountResponse = NotebookWorkspaceL /** * The response body as parsed JSON or XML */ - parsedBody: NotebookWorkspaceListResult; + parsedBody: DataCenterResource; }; }; /** - * Contains response data for the get operation. + * Contains response data for the createUpdate operation. */ -export type NotebookWorkspacesGetResponse = NotebookWorkspace & { +export type CassandraDataCentersCreateUpdateResponse = DataCenterResource & { /** * The underlying HTTP response. */ @@ -5985,14 +7955,14 @@ export type NotebookWorkspacesGetResponse = NotebookWorkspace & { /** * The response body as parsed JSON or XML */ - parsedBody: NotebookWorkspace; + parsedBody: DataCenterResource; }; }; /** - * Contains response data for the createOrUpdate operation. + * Contains response data for the update operation. */ -export type NotebookWorkspacesCreateOrUpdateResponse = NotebookWorkspace & { +export type CassandraDataCentersUpdateResponse = DataCenterResource & { /** * The underlying HTTP response. */ @@ -6005,14 +7975,14 @@ export type NotebookWorkspacesCreateOrUpdateResponse = NotebookWorkspace & { /** * The response body as parsed JSON or XML */ - parsedBody: NotebookWorkspace; + parsedBody: DataCenterResource; }; }; /** - * Contains response data for the listConnectionInfo operation. + * Contains response data for the beginCreateUpdate operation. */ -export type NotebookWorkspacesListConnectionInfoResponse = NotebookWorkspaceConnectionInfoResult & { +export type CassandraDataCentersBeginCreateUpdateResponse = DataCenterResource & { /** * The underlying HTTP response. */ @@ -6025,14 +7995,14 @@ export type NotebookWorkspacesListConnectionInfoResponse = NotebookWorkspaceConn /** * The response body as parsed JSON or XML */ - parsedBody: NotebookWorkspaceConnectionInfoResult; + parsedBody: DataCenterResource; }; }; /** - * Contains response data for the beginCreateOrUpdate operation. + * Contains response data for the beginUpdate operation. */ -export type NotebookWorkspacesBeginCreateOrUpdateResponse = NotebookWorkspace & { +export type CassandraDataCentersBeginUpdateResponse = DataCenterResource & { /** * The underlying HTTP response. */ @@ -6045,7 +8015,7 @@ export type NotebookWorkspacesBeginCreateOrUpdateResponse = NotebookWorkspace & /** * The response body as parsed JSON or XML */ - parsedBody: NotebookWorkspace; + parsedBody: DataCenterResource; }; }; diff --git a/sdk/cosmosdb/arm-cosmosdb/src/models/mappers.ts b/sdk/cosmosdb/arm-cosmosdb/src/models/mappers.ts index 17bb1eb9e8d5..229ea38d4182 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/models/mappers.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/models/mappers.ts @@ -12,78 +12,6 @@ import * as msRest from "@azure/ms-rest-js"; export const CloudError = CloudErrorMapper; export const BaseResource = BaseResourceMapper; -export const ManagedServiceIdentityUserAssignedIdentitiesValue: msRest.CompositeMapper = { - serializedName: "ManagedServiceIdentity_userAssignedIdentitiesValue", - type: { - name: "Composite", - className: "ManagedServiceIdentityUserAssignedIdentitiesValue", - modelProperties: { - principalId: { - readOnly: true, - serializedName: "principalId", - type: { - name: "String" - } - }, - clientId: { - readOnly: true, - serializedName: "clientId", - type: { - name: "String" - } - } - } - } -}; - -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" - ] - } - }, - userAssignedIdentities: { - serializedName: "userAssignedIdentities", - type: { - name: "Dictionary", - value: { - type: { - name: "Composite", - className: "ManagedServiceIdentityUserAssignedIdentitiesValue" - } - } - } - } - } - } -}; - export const IpAddressOrRange: msRest.CompositeMapper = { serializedName: "IpAddressOrRange", type: { @@ -405,6 +333,73 @@ 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: { @@ -472,6 +467,52 @@ 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: { @@ -515,6 +556,13 @@ export const ARMResourceProperties: msRest.CompositeMapper = { } } } + }, + identity: { + serializedName: "identity", + type: { + name: "Composite", + className: "ManagedServiceIdentity" + } } } } @@ -534,13 +582,6 @@ export const DatabaseAccountGetResults: msRest.CompositeMapper = { name: "String" } }, - identity: { - serializedName: "identity", - type: { - name: "Composite", - className: "ManagedServiceIdentity" - } - }, provisioningState: { serializedName: "properties.provisioningState", type: { @@ -739,6 +780,27 @@ 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: { @@ -778,6 +840,14 @@ export const DatabaseAccountGetResults: msRest.CompositeMapper = { } } } + }, + systemData: { + readOnly: true, + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData" + } } } } @@ -2315,23 +2385,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: { @@ -2372,29 +2425,22 @@ export const RegionForOnlineOffline: msRest.CompositeMapper = { } }; -export const ARMProxyResource: msRest.CompositeMapper = { - serializedName: "ARMProxyResource", +export const ManagedServiceIdentityUserAssignedIdentitiesValue: msRest.CompositeMapper = { + serializedName: "ManagedServiceIdentity_userAssignedIdentitiesValue", type: { name: "Composite", - className: "ARMProxyResource", + className: "ManagedServiceIdentityUserAssignedIdentitiesValue", modelProperties: { - id: { - readOnly: true, - serializedName: "id", - type: { - name: "String" - } - }, - name: { + principalId: { readOnly: true, - serializedName: "name", + serializedName: "principalId", type: { name: "String" } }, - type: { + clientId: { readOnly: true, - serializedName: "type", + serializedName: "clientId", type: { name: "String" } @@ -2403,31 +2449,110 @@ export const ARMProxyResource: msRest.CompositeMapper = { } }; -export const ExtendedResourceProperties: msRest.CompositeMapper = { - serializedName: "ExtendedResourceProperties", +export const ManagedServiceIdentity: msRest.CompositeMapper = { + serializedName: "ManagedServiceIdentity", type: { name: "Composite", - className: "ExtendedResourceProperties", + className: "ManagedServiceIdentity", modelProperties: { - _rid: { + principalId: { readOnly: true, - serializedName: "_rid", + serializedName: "principalId", type: { name: "String" } }, - _ts: { + tenantId: { readOnly: true, - serializedName: "_ts", + serializedName: "tenantId", type: { - name: "Number" + name: "String" } }, - _etag: { - readOnly: true, - serializedName: "_etag", + type: { + serializedName: "type", type: { - name: "String" + name: "Enum", + allowedValues: [ + "SystemAssigned", + "UserAssigned", + "SystemAssigned,UserAssigned", + "None" + ] + } + }, + userAssignedIdentities: { + serializedName: "userAssignedIdentities", + type: { + name: "Dictionary", + value: { + type: { + name: "Composite", + className: "ManagedServiceIdentityUserAssignedIdentitiesValue" + } + } + } + } + } + } +}; + +export const ARMProxyResource: msRest.CompositeMapper = { + serializedName: "ARMProxyResource", + type: { + name: "Composite", + className: "ARMProxyResource", + modelProperties: { + id: { + readOnly: true, + serializedName: "id", + type: { + name: "String" + } + }, + name: { + readOnly: true, + serializedName: "name", + type: { + name: "String" + } + }, + type: { + readOnly: true, + serializedName: "type", + type: { + name: "String" + } + } + } + } +}; + +export const ExtendedResourceProperties: msRest.CompositeMapper = { + serializedName: "ExtendedResourceProperties", + type: { + name: "Composite", + className: "ExtendedResourceProperties", + modelProperties: { + _rid: { + readOnly: true, + serializedName: "_rid", + type: { + name: "String" + } + }, + _ts: { + readOnly: true, + serializedName: "_ts", + type: { + name: "Number" + } + }, + _etag: { + readOnly: true, + serializedName: "_etag", + type: { + name: "String" } } } @@ -2580,29 +2705,19 @@ export const ThroughputSettingsGetResults: msRest.CompositeMapper = { } }; -export const DatabaseAccountCreateUpdateParameters: msRest.CompositeMapper = { - serializedName: "DatabaseAccountCreateUpdateParameters", +export const DatabaseAccountCreateUpdateProperties: msRest.CompositeMapper = { + serializedName: "DatabaseAccountCreateUpdateProperties", type: { name: "Composite", - className: "DatabaseAccountCreateUpdateParameters", + polymorphicDiscriminator: { + serializedName: "createMode", + clientName: "createMode" + }, + uberParent: "DatabaseAccountCreateUpdateProperties", + className: "DatabaseAccountCreateUpdateProperties", modelProperties: { - ...ARMResourceProperties.type.modelProperties, - kind: { - serializedName: "kind", - defaultValue: 'GlobalDocumentDB', - type: { - name: "String" - } - }, - identity: { - serializedName: "identity", - type: { - name: "Composite", - className: "ManagedServiceIdentity" - } - }, consistencyPolicy: { - serializedName: "properties.consistencyPolicy", + serializedName: "consistencyPolicy", type: { name: "Composite", className: "ConsistencyPolicy" @@ -2610,7 +2725,7 @@ export const DatabaseAccountCreateUpdateParameters: msRest.CompositeMapper = { }, locations: { required: true, - serializedName: "properties.locations", + serializedName: "locations", type: { name: "Sequence", element: { @@ -2624,14 +2739,14 @@ export const DatabaseAccountCreateUpdateParameters: msRest.CompositeMapper = { databaseAccountOfferType: { required: true, isConstant: true, - serializedName: "properties.databaseAccountOfferType", + serializedName: "databaseAccountOfferType", defaultValue: 'Standard', type: { name: "String" } }, ipRules: { - serializedName: "properties.ipRules", + serializedName: "ipRules", type: { name: "Sequence", element: { @@ -2643,19 +2758,19 @@ export const DatabaseAccountCreateUpdateParameters: msRest.CompositeMapper = { } }, isVirtualNetworkFilterEnabled: { - serializedName: "properties.isVirtualNetworkFilterEnabled", + serializedName: "isVirtualNetworkFilterEnabled", type: { name: "Boolean" } }, enableAutomaticFailover: { - serializedName: "properties.enableAutomaticFailover", + serializedName: "enableAutomaticFailover", type: { name: "Boolean" } }, capabilities: { - serializedName: "properties.capabilities", + serializedName: "capabilities", type: { name: "Sequence", element: { @@ -2667,7 +2782,7 @@ export const DatabaseAccountCreateUpdateParameters: msRest.CompositeMapper = { } }, virtualNetworkRules: { - serializedName: "properties.virtualNetworkRules", + serializedName: "virtualNetworkRules", type: { name: "Sequence", element: { @@ -2679,69 +2794,69 @@ export const DatabaseAccountCreateUpdateParameters: msRest.CompositeMapper = { } }, enableMultipleWriteLocations: { - serializedName: "properties.enableMultipleWriteLocations", + serializedName: "enableMultipleWriteLocations", type: { name: "Boolean" } }, enableCassandraConnector: { - serializedName: "properties.enableCassandraConnector", + serializedName: "enableCassandraConnector", type: { name: "Boolean" } }, connectorOffer: { - serializedName: "properties.connectorOffer", + serializedName: "connectorOffer", type: { name: "String" } }, disableKeyBasedMetadataWriteAccess: { - serializedName: "properties.disableKeyBasedMetadataWriteAccess", + serializedName: "disableKeyBasedMetadataWriteAccess", type: { name: "Boolean" } }, keyVaultKeyUri: { - serializedName: "properties.keyVaultKeyUri", + serializedName: "keyVaultKeyUri", type: { name: "String" } }, publicNetworkAccess: { - serializedName: "properties.publicNetworkAccess", + serializedName: "publicNetworkAccess", type: { name: "String" } }, enableFreeTier: { - serializedName: "properties.enableFreeTier", + serializedName: "enableFreeTier", type: { name: "Boolean" } }, apiProperties: { - serializedName: "properties.apiProperties", + serializedName: "apiProperties", type: { name: "Composite", className: "ApiProperties" } }, enableAnalyticalStorage: { - serializedName: "properties.enableAnalyticalStorage", + serializedName: "enableAnalyticalStorage", type: { name: "Boolean" } }, backupPolicy: { - serializedName: "properties.backupPolicy", + serializedName: "backupPolicy", type: { name: "Composite", className: "BackupPolicy" } }, cors: { - serializedName: "properties.cors", + serializedName: "cors", type: { name: "Sequence", element: { @@ -2753,7 +2868,7 @@ export const DatabaseAccountCreateUpdateParameters: msRest.CompositeMapper = { } }, networkAclBypass: { - serializedName: "properties.networkAclBypass", + serializedName: "networkAclBypass", type: { name: "Enum", allowedValues: [ @@ -2763,7 +2878,7 @@ export const DatabaseAccountCreateUpdateParameters: msRest.CompositeMapper = { } }, networkAclBypassResourceIds: { - serializedName: "properties.networkAclBypassResourceIds", + serializedName: "networkAclBypassResourceIds", type: { name: "Sequence", element: { @@ -2772,6 +2887,73 @@ export const DatabaseAccountCreateUpdateParameters: 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" + } } } } @@ -2800,13 +2982,6 @@ export const DatabaseAccountUpdateParameters: msRest.CompositeMapper = { name: "String" } }, - identity: { - serializedName: "identity", - type: { - name: "Composite", - className: "ManagedServiceIdentity" - } - }, consistencyPolicy: { serializedName: "properties.consistencyPolicy", type: { @@ -2968,6 +3143,13 @@ export const DatabaseAccountUpdateParameters: msRest.CompositeMapper = { } } } + }, + identity: { + serializedName: "identity", + type: { + name: "Composite", + className: "ManagedServiceIdentity" + } } } } @@ -4350,6 +4532,12 @@ export const PeriodicModeProperties: msRest.CompositeMapper = { type: { name: "Number" } + }, + backupStorageRedundancy: { + serializedName: "backupStorageRedundancy", + type: { + name: "String" + } } } } @@ -4388,113 +4576,1277 @@ export const ContinuousModeBackupPolicy: msRest.CompositeMapper = { } }; -export const TrackedResource: msRest.CompositeMapper = { - serializedName: "TrackedResource", +export const RestorableLocationResource: msRest.CompositeMapper = { + serializedName: "RestorableLocationResource", type: { name: "Composite", - className: "TrackedResource", + className: "RestorableLocationResource", modelProperties: { - ...Resource.type.modelProperties, - tags: { - serializedName: "tags", - type: { - name: "Dictionary", - value: { - type: { - name: "String" - } - } - } - }, - location: { - required: true, - serializedName: "location", + locationName: { + readOnly: true, + serializedName: "locationName", type: { name: "String" } - } - } - } -}; - -export const AzureEntityResource: msRest.CompositeMapper = { - serializedName: "AzureEntityResource", - type: { - name: "Composite", - className: "AzureEntityResource", - modelProperties: { - ...Resource.type.modelProperties, - etag: { + }, + regionalDatabaseAccountInstanceId: { readOnly: true, - serializedName: "etag", + serializedName: "regionalDatabaseAccountInstanceId", type: { name: "String" } - } - } - } -}; - -export const NotebookWorkspaceCreateUpdateParameters: msRest.CompositeMapper = { - serializedName: "NotebookWorkspaceCreateUpdateParameters", - type: { - name: "Composite", - className: "NotebookWorkspaceCreateUpdateParameters", - modelProperties: { - ...ARMProxyResource.type.modelProperties - } - } -}; - -export const NotebookWorkspace: msRest.CompositeMapper = { - serializedName: "NotebookWorkspace", - type: { - name: "Composite", - className: "NotebookWorkspace", - modelProperties: { - ...ARMProxyResource.type.modelProperties, - notebookServerEndpoint: { + }, + creationTime: { readOnly: true, - serializedName: "properties.notebookServerEndpoint", + serializedName: "creationTime", type: { - name: "String" + name: "DateTime" } }, - status: { + deletionTime: { readOnly: true, - serializedName: "properties.status", + serializedName: "deletionTime", type: { - name: "String" + name: "DateTime" } } } } }; -export const NotebookWorkspaceConnectionInfoResult: msRest.CompositeMapper = { - serializedName: "NotebookWorkspaceConnectionInfoResult", +export const RestorableDatabaseAccountGetResult: msRest.CompositeMapper = { + serializedName: "RestorableDatabaseAccountGetResult", type: { name: "Composite", - className: "NotebookWorkspaceConnectionInfoResult", + className: "RestorableDatabaseAccountGetResult", modelProperties: { - authToken: { - readOnly: true, - serializedName: "authToken", + accountName: { + serializedName: "properties.accountName", type: { name: "String" } }, - notebookServerEndpoint: { + creationTime: { + serializedName: "properties.creationTime", + type: { + name: "DateTime" + } + }, + deletionTime: { + serializedName: "properties.deletionTime", + type: { + name: "DateTime" + } + }, + apiType: { readOnly: true, - serializedName: "notebookServerEndpoint", + serializedName: "properties.apiType", type: { name: "String" } - } - } - } -}; - + }, + restorableLocations: { + readOnly: true, + serializedName: "properties.restorableLocations", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "RestorableLocationResource" + } + } + } + }, + id: { + readOnly: true, + serializedName: "id", + type: { + name: "String" + } + }, + name: { + readOnly: true, + serializedName: "name", + type: { + name: "String" + } + }, + type: { + readOnly: true, + serializedName: "type", + type: { + name: "String" + } + }, + location: { + serializedName: "location", + type: { + name: "String" + } + } + } + } +}; + +export const TrackedResource: msRest.CompositeMapper = { + serializedName: "TrackedResource", + type: { + name: "Composite", + className: "TrackedResource", + modelProperties: { + ...Resource.type.modelProperties, + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + }, + location: { + required: true, + serializedName: "location", + type: { + name: "String" + } + } + } + } +}; + +export const AzureEntityResource: msRest.CompositeMapper = { + serializedName: "AzureEntityResource", + type: { + name: "Composite", + className: "AzureEntityResource", + modelProperties: { + ...Resource.type.modelProperties, + etag: { + readOnly: true, + serializedName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const NotebookWorkspaceCreateUpdateParameters: msRest.CompositeMapper = { + serializedName: "NotebookWorkspaceCreateUpdateParameters", + type: { + name: "Composite", + className: "NotebookWorkspaceCreateUpdateParameters", + modelProperties: { + ...ARMProxyResource.type.modelProperties + } + } +}; + +export const NotebookWorkspace: msRest.CompositeMapper = { + serializedName: "NotebookWorkspace", + type: { + name: "Composite", + className: "NotebookWorkspace", + modelProperties: { + ...ARMProxyResource.type.modelProperties, + notebookServerEndpoint: { + readOnly: true, + serializedName: "properties.notebookServerEndpoint", + type: { + name: "String" + } + }, + status: { + readOnly: true, + serializedName: "properties.status", + type: { + name: "String" + } + } + } + } +}; + +export const NotebookWorkspaceConnectionInfoResult: msRest.CompositeMapper = { + serializedName: "NotebookWorkspaceConnectionInfoResult", + type: { + name: "Composite", + className: "NotebookWorkspaceConnectionInfoResult", + modelProperties: { + authToken: { + readOnly: true, + serializedName: "authToken", + type: { + name: "String" + } + }, + notebookServerEndpoint: { + readOnly: true, + serializedName: "notebookServerEndpoint", + type: { + name: "String" + } + } + } + } +}; + +export const Permission: msRest.CompositeMapper = { + serializedName: "Permission", + type: { + name: "Composite", + className: "Permission", + modelProperties: { + dataActions: { + serializedName: "dataActions", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + notDataActions: { + serializedName: "notDataActions", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const SqlRoleDefinitionCreateUpdateParameters: msRest.CompositeMapper = { + serializedName: "SqlRoleDefinitionCreateUpdateParameters", + type: { + name: "Composite", + className: "SqlRoleDefinitionCreateUpdateParameters", + modelProperties: { + roleName: { + serializedName: "properties.roleName", + type: { + name: "String" + } + }, + type: { + serializedName: "properties.type", + type: { + name: "Enum", + allowedValues: [ + "BuiltInRole", + "CustomRole" + ] + } + }, + assignableScopes: { + serializedName: "properties.assignableScopes", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + permissions: { + serializedName: "properties.permissions", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Permission" + } + } + } + } + } + } +}; + +export const SqlRoleDefinitionGetResults: msRest.CompositeMapper = { + serializedName: "SqlRoleDefinitionGetResults", + type: { + name: "Composite", + className: "SqlRoleDefinitionGetResults", + modelProperties: { + ...ARMProxyResource.type.modelProperties, + roleName: { + serializedName: "properties.roleName", + type: { + name: "String" + } + }, + sqlRoleDefinitionGetResultsType: { + serializedName: "properties.type", + type: { + name: "Enum", + allowedValues: [ + "BuiltInRole", + "CustomRole" + ] + } + }, + assignableScopes: { + serializedName: "properties.assignableScopes", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + permissions: { + serializedName: "properties.permissions", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Permission" + } + } + } + } + } + } +}; + +export const SqlRoleAssignmentCreateUpdateParameters: msRest.CompositeMapper = { + serializedName: "SqlRoleAssignmentCreateUpdateParameters", + type: { + name: "Composite", + className: "SqlRoleAssignmentCreateUpdateParameters", + modelProperties: { + roleDefinitionId: { + serializedName: "properties.roleDefinitionId", + type: { + name: "String" + } + }, + scope: { + serializedName: "properties.scope", + type: { + name: "String" + } + }, + principalId: { + serializedName: "properties.principalId", + type: { + name: "String" + } + } + } + } +}; + +export const SqlRoleAssignmentGetResults: msRest.CompositeMapper = { + serializedName: "SqlRoleAssignmentGetResults", + type: { + name: "Composite", + className: "SqlRoleAssignmentGetResults", + modelProperties: { + ...ARMProxyResource.type.modelProperties, + roleDefinitionId: { + serializedName: "properties.roleDefinitionId", + type: { + name: "String" + } + }, + scope: { + serializedName: "properties.scope", + type: { + name: "String" + } + }, + principalId: { + serializedName: "properties.principalId", + type: { + name: "String" + } + } + } + } +}; + +export const RestorableSqlDatabasePropertiesResourceDatabase: msRest.CompositeMapper = { + serializedName: "RestorableSqlDatabaseProperties_resource_database", + type: { + name: "Composite", + className: "RestorableSqlDatabasePropertiesResourceDatabase", + modelProperties: { + id: { + required: true, + serializedName: "id", + type: { + name: "String" + } + }, + _rid: { + readOnly: true, + serializedName: "_rid", + type: { + name: "String" + } + }, + _ts: { + readOnly: true, + serializedName: "_ts", + type: { + name: "Number" + } + }, + _etag: { + readOnly: true, + serializedName: "_etag", + type: { + name: "String" + } + }, + _colls: { + readOnly: true, + serializedName: "_colls", + type: { + name: "String" + } + }, + _users: { + readOnly: true, + serializedName: "_users", + type: { + name: "String" + } + }, + _self: { + readOnly: true, + serializedName: "_self", + type: { + name: "String" + } + } + } + } +}; + +export const RestorableSqlDatabasePropertiesResource: msRest.CompositeMapper = { + serializedName: "RestorableSqlDatabaseProperties_resource", + type: { + name: "Composite", + className: "RestorableSqlDatabasePropertiesResource", + modelProperties: { + _rid: { + readOnly: true, + serializedName: "_rid", + type: { + name: "String" + } + }, + operationType: { + readOnly: true, + serializedName: "operationType", + type: { + name: "String" + } + }, + eventTimestamp: { + readOnly: true, + serializedName: "eventTimestamp", + type: { + name: "String" + } + }, + ownerId: { + readOnly: true, + serializedName: "ownerId", + type: { + name: "String" + } + }, + ownerResourceId: { + readOnly: true, + serializedName: "ownerResourceId", + type: { + name: "String" + } + }, + database: { + serializedName: "database", + type: { + name: "Composite", + className: "RestorableSqlDatabasePropertiesResourceDatabase" + } + } + } + } +}; + +export const RestorableSqlDatabaseGetResult: msRest.CompositeMapper = { + serializedName: "RestorableSqlDatabaseGetResult", + type: { + name: "Composite", + className: "RestorableSqlDatabaseGetResult", + modelProperties: { + resource: { + serializedName: "properties.resource", + type: { + name: "Composite", + className: "RestorableSqlDatabasePropertiesResource" + } + }, + id: { + readOnly: true, + serializedName: "id", + type: { + name: "String" + } + }, + name: { + readOnly: true, + serializedName: "name", + type: { + name: "String" + } + }, + type: { + readOnly: true, + serializedName: "type", + type: { + name: "String" + } + } + } + } +}; + +export const RestorableSqlContainerPropertiesResourceContainer: msRest.CompositeMapper = { + serializedName: "RestorableSqlContainerProperties_resource_container", + type: { + name: "Composite", + className: "RestorableSqlContainerPropertiesResourceContainer", + modelProperties: { + id: { + required: true, + serializedName: "id", + type: { + name: "String" + } + }, + indexingPolicy: { + serializedName: "indexingPolicy", + type: { + name: "Composite", + className: "IndexingPolicy" + } + }, + partitionKey: { + serializedName: "partitionKey", + type: { + name: "Composite", + className: "ContainerPartitionKey" + } + }, + defaultTtl: { + serializedName: "defaultTtl", + type: { + name: "Number" + } + }, + uniqueKeyPolicy: { + serializedName: "uniqueKeyPolicy", + type: { + name: "Composite", + className: "UniqueKeyPolicy" + } + }, + conflictResolutionPolicy: { + serializedName: "conflictResolutionPolicy", + type: { + name: "Composite", + className: "ConflictResolutionPolicy" + } + }, + analyticalStorageTtl: { + serializedName: "analyticalStorageTtl", + type: { + name: "Number" + } + }, + _rid: { + readOnly: true, + serializedName: "_rid", + type: { + name: "String" + } + }, + _ts: { + readOnly: true, + serializedName: "_ts", + type: { + name: "Number" + } + }, + _etag: { + readOnly: true, + serializedName: "_etag", + type: { + name: "String" + } + }, + _self: { + readOnly: true, + serializedName: "_self", + type: { + name: "String" + } + } + } + } +}; + +export const RestorableSqlContainerPropertiesResource: msRest.CompositeMapper = { + serializedName: "RestorableSqlContainerProperties_resource", + type: { + name: "Composite", + className: "RestorableSqlContainerPropertiesResource", + modelProperties: { + _rid: { + readOnly: true, + serializedName: "_rid", + type: { + name: "String" + } + }, + operationType: { + readOnly: true, + serializedName: "operationType", + type: { + name: "String" + } + }, + eventTimestamp: { + readOnly: true, + serializedName: "eventTimestamp", + type: { + name: "String" + } + }, + ownerId: { + readOnly: true, + serializedName: "ownerId", + type: { + name: "String" + } + }, + ownerResourceId: { + readOnly: true, + serializedName: "ownerResourceId", + type: { + name: "String" + } + }, + container: { + serializedName: "container", + type: { + name: "Composite", + className: "RestorableSqlContainerPropertiesResourceContainer" + } + } + } + } +}; + +export const RestorableSqlContainerGetResult: msRest.CompositeMapper = { + serializedName: "RestorableSqlContainerGetResult", + type: { + name: "Composite", + className: "RestorableSqlContainerGetResult", + modelProperties: { + resource: { + serializedName: "properties.resource", + type: { + name: "Composite", + className: "RestorableSqlContainerPropertiesResource" + } + }, + id: { + readOnly: true, + serializedName: "id", + type: { + name: "String" + } + }, + name: { + readOnly: true, + serializedName: "name", + type: { + name: "String" + } + }, + type: { + readOnly: true, + serializedName: "type", + type: { + name: "String" + } + } + } + } +}; + +export const RestorableMongodbDatabasePropertiesResource: msRest.CompositeMapper = { + serializedName: "RestorableMongodbDatabaseProperties_resource", + type: { + name: "Composite", + className: "RestorableMongodbDatabasePropertiesResource", + modelProperties: { + _rid: { + readOnly: true, + serializedName: "_rid", + type: { + name: "String" + } + }, + operationType: { + readOnly: true, + serializedName: "operationType", + type: { + name: "String" + } + }, + eventTimestamp: { + readOnly: true, + serializedName: "eventTimestamp", + type: { + name: "String" + } + }, + ownerId: { + readOnly: true, + serializedName: "ownerId", + type: { + name: "String" + } + }, + ownerResourceId: { + readOnly: true, + serializedName: "ownerResourceId", + type: { + name: "String" + } + } + } + } +}; + +export const RestorableMongodbDatabaseGetResult: msRest.CompositeMapper = { + serializedName: "RestorableMongodbDatabaseGetResult", + type: { + name: "Composite", + className: "RestorableMongodbDatabaseGetResult", + modelProperties: { + resource: { + serializedName: "properties.resource", + type: { + name: "Composite", + className: "RestorableMongodbDatabasePropertiesResource" + } + }, + id: { + readOnly: true, + serializedName: "id", + type: { + name: "String" + } + }, + name: { + readOnly: true, + serializedName: "name", + type: { + name: "String" + } + }, + type: { + readOnly: true, + serializedName: "type", + type: { + name: "String" + } + } + } + } +}; + +export const RestorableMongodbCollectionPropertiesResource: msRest.CompositeMapper = { + serializedName: "RestorableMongodbCollectionProperties_resource", + type: { + name: "Composite", + className: "RestorableMongodbCollectionPropertiesResource", + modelProperties: { + _rid: { + readOnly: true, + serializedName: "_rid", + type: { + name: "String" + } + }, + operationType: { + readOnly: true, + serializedName: "operationType", + type: { + name: "String" + } + }, + eventTimestamp: { + readOnly: true, + serializedName: "eventTimestamp", + type: { + name: "String" + } + }, + ownerId: { + readOnly: true, + serializedName: "ownerId", + type: { + name: "String" + } + }, + ownerResourceId: { + readOnly: true, + serializedName: "ownerResourceId", + type: { + name: "String" + } + } + } + } +}; + +export const RestorableMongodbCollectionGetResult: msRest.CompositeMapper = { + serializedName: "RestorableMongodbCollectionGetResult", + type: { + name: "Composite", + className: "RestorableMongodbCollectionGetResult", + modelProperties: { + resource: { + serializedName: "properties.resource", + type: { + name: "Composite", + className: "RestorableMongodbCollectionPropertiesResource" + } + }, + id: { + readOnly: true, + serializedName: "id", + type: { + name: "String" + } + }, + name: { + readOnly: true, + serializedName: "name", + type: { + name: "String" + } + }, + type: { + readOnly: true, + serializedName: "type", + type: { + name: "String" + } + } + } + } +}; + +export const SeedNode: msRest.CompositeMapper = { + serializedName: "SeedNode", + type: { + name: "Composite", + className: "SeedNode", + modelProperties: { + ipAddress: { + serializedName: "ipAddress", + type: { + name: "String" + } + } + } + } +}; + +export const Certificate: msRest.CompositeMapper = { + serializedName: "Certificate", + type: { + name: "Composite", + className: "Certificate", + modelProperties: { + pem: { + serializedName: "pem", + type: { + name: "String" + } + } + } + } +}; + +export const ClusterResource: msRest.CompositeMapper = { + serializedName: "ClusterResource", + type: { + name: "Composite", + className: "ClusterResource", + modelProperties: { + ...ARMResourceProperties.type.modelProperties, + provisioningState: { + serializedName: "properties.provisioningState", + type: { + name: "String" + } + }, + restoreFromBackupId: { + serializedName: "properties.restoreFromBackupId", + type: { + name: "String" + } + }, + delegatedManagementSubnetId: { + serializedName: "properties.delegatedManagementSubnetId", + type: { + name: "String" + } + }, + cassandraVersion: { + serializedName: "properties.cassandraVersion", + type: { + name: "String" + } + }, + clusterNameOverride: { + serializedName: "properties.clusterNameOverride", + type: { + name: "String" + } + }, + authenticationMethod: { + serializedName: "properties.authenticationMethod", + type: { + name: "String" + } + }, + initialCassandraAdminPassword: { + serializedName: "properties.initialCassandraAdminPassword", + type: { + name: "String" + } + }, + hoursBetweenBackups: { + serializedName: "properties.hoursBetweenBackups", + type: { + name: "Number" + } + }, + prometheusEndpoint: { + serializedName: "properties.prometheusEndpoint", + type: { + name: "Composite", + className: "SeedNode" + } + }, + repairEnabled: { + serializedName: "properties.repairEnabled", + type: { + name: "Boolean" + } + }, + clientCertificates: { + serializedName: "properties.clientCertificates", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Certificate" + } + } + } + }, + externalGossipCertificates: { + serializedName: "properties.externalGossipCertificates", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Certificate" + } + } + } + }, + gossipCertificates: { + readOnly: true, + serializedName: "properties.gossipCertificates", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Certificate" + } + } + } + }, + externalSeedNodes: { + serializedName: "properties.externalSeedNodes", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SeedNode" + } + } + } + }, + seedNodes: { + readOnly: true, + serializedName: "properties.seedNodes", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SeedNode" + } + } + } + } + } + } +}; + +export const RepairPostBody: msRest.CompositeMapper = { + serializedName: "RepairPostBody", + type: { + name: "Composite", + className: "RepairPostBody", + modelProperties: { + keyspace: { + required: true, + serializedName: "keyspace", + type: { + name: "String" + } + }, + tables: { + serializedName: "tables", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const ClusterNodeStatusNodesItem: msRest.CompositeMapper = { + serializedName: "ClusterNodeStatus_nodesItem", + type: { + name: "Composite", + className: "ClusterNodeStatusNodesItem", + modelProperties: { + datacenter: { + serializedName: "datacenter", + type: { + name: "String" + } + }, + status: { + serializedName: "status", + type: { + name: "String" + } + }, + state: { + serializedName: "state", + type: { + name: "String" + } + }, + address: { + serializedName: "address", + type: { + name: "String" + } + }, + load: { + serializedName: "load", + type: { + name: "String" + } + }, + tokens: { + serializedName: "tokens", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + owns: { + serializedName: "owns", + type: { + name: "Number" + } + }, + hostId: { + serializedName: "hostId", + type: { + name: "String" + } + }, + rack: { + serializedName: "rack", + type: { + name: "String" + } + } + } + } +}; + +export const ClusterNodeStatus: msRest.CompositeMapper = { + serializedName: "ClusterNodeStatus", + type: { + name: "Composite", + className: "ClusterNodeStatus", + modelProperties: { + nodes: { + serializedName: "nodes", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ClusterNodeStatusNodesItem" + } + } + } + } + } + } +}; + +export const BackupResourceProperties: msRest.CompositeMapper = { + serializedName: "BackupResource_properties", + type: { + name: "Composite", + className: "BackupResourceProperties", + modelProperties: { + timestamp: { + serializedName: "timestamp", + type: { + name: "DateTime" + } + } + } + } +}; + +export const BackupResource: msRest.CompositeMapper = { + serializedName: "BackupResource", + type: { + name: "Composite", + className: "BackupResource", + modelProperties: { + ...ARMProxyResource.type.modelProperties, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "BackupResourceProperties" + } + } + } + } +}; + +export const DataCenterResource: msRest.CompositeMapper = { + serializedName: "DataCenterResource", + type: { + name: "Composite", + className: "DataCenterResource", + modelProperties: { + ...ARMProxyResource.type.modelProperties, + provisioningState: { + serializedName: "properties.provisioningState", + type: { + name: "String" + } + }, + dataCenterLocation: { + serializedName: "properties.dataCenterLocation", + type: { + name: "String" + } + }, + delegatedSubnetId: { + serializedName: "properties.delegatedSubnetId", + type: { + name: "String" + } + }, + nodeCount: { + serializedName: "properties.nodeCount", + type: { + name: "Number" + } + }, + seedNodes: { + readOnly: true, + serializedName: "properties.seedNodes", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SeedNode" + } + } + } + }, + base64EncodedCassandraYamlFragment: { + serializedName: "properties.base64EncodedCassandraYamlFragment", + type: { + name: "String" + } + } + } + } +}; + export const PrivateLinkResource: msRest.CompositeMapper = { serializedName: "PrivateLinkResource", type: { @@ -4841,6 +6193,52 @@ export const SqlTriggerListResult: msRest.CompositeMapper = { } }; +export const SqlRoleDefinitionListResult: msRest.CompositeMapper = { + serializedName: "SqlRoleDefinitionListResult", + type: { + name: "Composite", + className: "SqlRoleDefinitionListResult", + modelProperties: { + value: { + readOnly: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SqlRoleDefinitionGetResults" + } + } + } + } + } + } +}; + +export const SqlRoleAssignmentListResult: msRest.CompositeMapper = { + serializedName: "SqlRoleAssignmentListResult", + type: { + name: "Composite", + className: "SqlRoleAssignmentListResult", + modelProperties: { + value: { + readOnly: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SqlRoleAssignmentGetResults" + } + } + } + } + } + } +}; + export const MongoDBDatabaseListResult: msRest.CompositeMapper = { serializedName: "MongoDBDatabaseListResult", type: { @@ -5002,6 +6400,29 @@ 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: { @@ -5024,6 +6445,212 @@ export const NotebookWorkspaceListResult: msRest.CompositeMapper = { } }; +export const RestorableSqlDatabasesListResult: msRest.CompositeMapper = { + serializedName: "RestorableSqlDatabasesListResult", + type: { + name: "Composite", + className: "RestorableSqlDatabasesListResult", + modelProperties: { + value: { + readOnly: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "RestorableSqlDatabaseGetResult" + } + } + } + } + } + } +}; + +export const RestorableSqlContainersListResult: msRest.CompositeMapper = { + serializedName: "RestorableSqlContainersListResult", + type: { + name: "Composite", + className: "RestorableSqlContainersListResult", + modelProperties: { + value: { + readOnly: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "RestorableSqlContainerGetResult" + } + } + } + } + } + } +}; + +export const RestorableSqlResourcesListResult: msRest.CompositeMapper = { + serializedName: "RestorableSqlResourcesListResult", + type: { + name: "Composite", + className: "RestorableSqlResourcesListResult", + modelProperties: { + value: { + readOnly: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DatabaseRestoreResource" + } + } + } + } + } + } +}; + +export const RestorableMongodbDatabasesListResult: msRest.CompositeMapper = { + serializedName: "RestorableMongodbDatabasesListResult", + type: { + name: "Composite", + className: "RestorableMongodbDatabasesListResult", + modelProperties: { + value: { + readOnly: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "RestorableMongodbDatabaseGetResult" + } + } + } + } + } + } +}; + +export const RestorableMongodbCollectionsListResult: msRest.CompositeMapper = { + serializedName: "RestorableMongodbCollectionsListResult", + type: { + name: "Composite", + className: "RestorableMongodbCollectionsListResult", + modelProperties: { + value: { + readOnly: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "RestorableMongodbCollectionGetResult" + } + } + } + } + } + } +}; + +export const RestorableMongodbResourcesListResult: msRest.CompositeMapper = { + serializedName: "RestorableMongodbResourcesListResult", + type: { + name: "Composite", + className: "RestorableMongodbResourcesListResult", + modelProperties: { + value: { + readOnly: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DatabaseRestoreResource" + } + } + } + } + } + } +}; + +export const ListClusters: msRest.CompositeMapper = { + serializedName: "ListClusters", + type: { + name: "Composite", + className: "ListClusters", + modelProperties: { + value: { + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ClusterResource" + } + } + } + } + } + } +}; + +export const ListBackups: msRest.CompositeMapper = { + serializedName: "ListBackups", + type: { + name: "Composite", + className: "ListBackups", + modelProperties: { + value: { + readOnly: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "BackupResource" + } + } + } + } + } + } +}; + +export const ListDataCenters: msRest.CompositeMapper = { + serializedName: "ListDataCenters", + type: { + name: "Composite", + className: "ListDataCenters", + modelProperties: { + value: { + readOnly: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DataCenterResource" + } + } + } + } + } + } +}; + export const PrivateLinkResourceListResult: msRest.CompositeMapper = { serializedName: "PrivateLinkResourceListResult", type: { @@ -5070,6 +6697,9 @@ 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 5248ef09a143..b53827774529 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/models/mongoDBResourcesMappers.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/models/mongoDBResourcesMappers.ts @@ -16,6 +16,8 @@ export { AutoUpgradePolicyResource, AzureEntityResource, BackupPolicy, + BackupResource, + BackupResourceProperties, BaseResource, Capability, CassandraKeyspaceCreateUpdateParameters, @@ -30,8 +32,10 @@ export { CassandraTableGetPropertiesResource, CassandraTableGetResults, CassandraTableResource, + Certificate, CloudError, ClusterKey, + ClusterResource, Column, CompositePath, ConflictResolutionPolicy, @@ -41,9 +45,11 @@ export { CorsPolicy, CreateUpdateOptions, DatabaseAccountCreateUpdateParameters, + DatabaseAccountCreateUpdateProperties, DatabaseAccountGetResults, - ErrorResponse, - ErrorResponseUpdatedFormat, + DatabaseRestoreResource, + DataCenterResource, + DefaultRequestDatabaseAccountCreateUpdateProperties, ExcludedPath, FailoverPolicy, GremlinDatabaseCreateUpdateParameters, @@ -83,12 +89,16 @@ export { OptionsResource, PeriodicModeBackupPolicy, PeriodicModeProperties, + Permission, PrivateEndpointConnection, PrivateEndpointProperty, PrivateLinkResource, PrivateLinkServiceConnectionStateProperty, ProxyResource, Resource, + RestoreParameters, + RestoreReqeustDatabaseAccountCreateUpdateProperties, + SeedNode, SpatialSpec, SqlContainerCreateUpdateParameters, SqlContainerGetPropertiesOptions, @@ -100,6 +110,8 @@ export { SqlDatabaseGetPropertiesResource, SqlDatabaseGetResults, SqlDatabaseResource, + SqlRoleAssignmentGetResults, + SqlRoleDefinitionGetResults, SqlStoredProcedureCreateUpdateParameters, SqlStoredProcedureGetPropertiesResource, SqlStoredProcedureGetResults, @@ -112,6 +124,7 @@ 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 79d079fb2ace..ec678bf5ca3e 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/models/notebookWorkspacesMappers.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/models/notebookWorkspacesMappers.ts @@ -16,6 +16,8 @@ export { AutoUpgradePolicyResource, AzureEntityResource, BackupPolicy, + BackupResource, + BackupResourceProperties, BaseResource, Capability, CassandraKeyspaceCreateUpdateParameters, @@ -30,7 +32,9 @@ export { CassandraTableGetPropertiesResource, CassandraTableGetResults, CassandraTableResource, + Certificate, ClusterKey, + ClusterResource, Column, CompositePath, ConflictResolutionPolicy, @@ -40,7 +44,11 @@ export { CorsPolicy, CreateUpdateOptions, DatabaseAccountCreateUpdateParameters, + DatabaseAccountCreateUpdateProperties, DatabaseAccountGetResults, + DatabaseRestoreResource, + DataCenterResource, + DefaultRequestDatabaseAccountCreateUpdateProperties, ErrorResponse, ExcludedPath, FailoverPolicy, @@ -81,12 +89,16 @@ export { OptionsResource, PeriodicModeBackupPolicy, PeriodicModeProperties, + Permission, PrivateEndpointConnection, PrivateEndpointProperty, PrivateLinkResource, PrivateLinkServiceConnectionStateProperty, ProxyResource, Resource, + RestoreParameters, + RestoreReqeustDatabaseAccountCreateUpdateProperties, + SeedNode, SpatialSpec, SqlContainerCreateUpdateParameters, SqlContainerGetPropertiesOptions, @@ -98,6 +110,8 @@ export { SqlDatabaseGetPropertiesResource, SqlDatabaseGetResults, SqlDatabaseResource, + SqlRoleAssignmentGetResults, + SqlRoleDefinitionGetResults, SqlStoredProcedureCreateUpdateParameters, SqlStoredProcedureGetPropertiesResource, SqlStoredProcedureGetResults, @@ -110,6 +124,7 @@ export { SqlUserDefinedFunctionGetPropertiesResource, SqlUserDefinedFunctionGetResults, SqlUserDefinedFunctionResource, + SystemData, TableCreateUpdateParameters, TableGetPropertiesOptions, TableGetPropertiesResource, diff --git a/sdk/cosmosdb/arm-cosmosdb/src/models/parameters.ts b/sdk/cosmosdb/arm-cosmosdb/src/models/parameters.ts index 955ccc3a8c0a..58ad66f510da 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/models/parameters.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/models/parameters.ts @@ -47,6 +47,36 @@ export const apiVersion: msRest.OperationQueryParameter = { } } }; +export const backupId: msRest.OperationURLParameter = { + parameterPath: "backupId", + mapper: { + required: true, + serializedName: "backupId", + constraints: { + MaxLength: 15, + MinLength: 1, + Pattern: /^[0-9]+$/ + }, + type: { + name: "String" + } + } +}; +export const clusterName: msRest.OperationURLParameter = { + parameterPath: "clusterName", + mapper: { + required: true, + serializedName: "clusterName", + constraints: { + MaxLength: 100, + MinLength: 1, + Pattern: /^[a-zA-Z0-9]+(-[a-zA-Z0-9]+)*/ + }, + type: { + name: "String" + } + } +}; export const collectionName: msRest.OperationURLParameter = { parameterPath: "collectionName", mapper: { @@ -97,6 +127,21 @@ export const databaseRid: msRest.OperationURLParameter = { } } }; +export const dataCenterName: msRest.OperationURLParameter = { + parameterPath: "dataCenterName", + mapper: { + required: true, + serializedName: "dataCenterName", + constraints: { + MaxLength: 100, + MinLength: 1, + Pattern: /^[a-zA-Z0-9]+(-[a-zA-Z0-9]+)*/ + }, + type: { + name: "String" + } + } +}; export const filter0: msRest.OperationQueryParameter = { parameterPath: "filter", mapper: { @@ -139,6 +184,16 @@ 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: { @@ -149,6 +204,16 @@ 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: { @@ -217,6 +282,74 @@ export const resourceGroupName: msRest.OperationURLParameter = { } } }; +export const restorableMongodbDatabaseRid: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "restorableMongodbDatabaseRid" + ], + mapper: { + serializedName: "restorableMongodbDatabaseRid", + type: { + name: "String" + } + } +}; +export const restorableSqlDatabaseRid: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "restorableSqlDatabaseRid" + ], + mapper: { + serializedName: "restorableSqlDatabaseRid", + type: { + name: "String" + } + } +}; +export const restoreLocation: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "restoreLocation" + ], + mapper: { + serializedName: "restoreLocation", + type: { + name: "String" + } + } +}; +export const restoreTimestampInUtc: msRest.OperationQueryParameter = { + parameterPath: [ + "options", + "restoreTimestampInUtc" + ], + mapper: { + serializedName: "restoreTimestampInUtc", + type: { + name: "String" + } + } +}; +export const roleAssignmentId: msRest.OperationURLParameter = { + parameterPath: "roleAssignmentId", + mapper: { + required: true, + serializedName: "roleAssignmentId", + type: { + name: "String" + } + } +}; +export const roleDefinitionId: msRest.OperationURLParameter = { + parameterPath: "roleDefinitionId", + mapper: { + required: true, + serializedName: "roleDefinitionId", + type: { + name: "String" + } + } +}; export const sourceRegion: msRest.OperationURLParameter = { parameterPath: "sourceRegion", mapper: { diff --git a/sdk/cosmosdb/arm-cosmosdb/src/models/privateEndpointConnectionsMappers.ts b/sdk/cosmosdb/arm-cosmosdb/src/models/privateEndpointConnectionsMappers.ts index aeef528e1d2a..8a5d49f72003 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/models/privateEndpointConnectionsMappers.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/models/privateEndpointConnectionsMappers.ts @@ -16,6 +16,8 @@ export { AutoUpgradePolicyResource, AzureEntityResource, BackupPolicy, + BackupResource, + BackupResourceProperties, BaseResource, Capability, CassandraKeyspaceCreateUpdateParameters, @@ -30,8 +32,10 @@ export { CassandraTableGetPropertiesResource, CassandraTableGetResults, CassandraTableResource, + Certificate, CloudError, ClusterKey, + ClusterResource, Column, CompositePath, ConflictResolutionPolicy, @@ -41,7 +45,11 @@ export { CorsPolicy, CreateUpdateOptions, DatabaseAccountCreateUpdateParameters, + DatabaseAccountCreateUpdateProperties, DatabaseAccountGetResults, + DatabaseRestoreResource, + DataCenterResource, + DefaultRequestDatabaseAccountCreateUpdateProperties, ErrorResponse, ExcludedPath, FailoverPolicy, @@ -80,6 +88,7 @@ export { OptionsResource, PeriodicModeBackupPolicy, PeriodicModeProperties, + Permission, PrivateEndpointConnection, PrivateEndpointConnectionListResult, PrivateEndpointProperty, @@ -87,6 +96,9 @@ export { PrivateLinkServiceConnectionStateProperty, ProxyResource, Resource, + RestoreParameters, + RestoreReqeustDatabaseAccountCreateUpdateProperties, + SeedNode, SpatialSpec, SqlContainerCreateUpdateParameters, SqlContainerGetPropertiesOptions, @@ -98,6 +110,8 @@ export { SqlDatabaseGetPropertiesResource, SqlDatabaseGetResults, SqlDatabaseResource, + SqlRoleAssignmentGetResults, + SqlRoleDefinitionGetResults, SqlStoredProcedureCreateUpdateParameters, SqlStoredProcedureGetPropertiesResource, SqlStoredProcedureGetResults, @@ -110,6 +124,7 @@ 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 3ff0ed3ab2e7..3e4b787384b6 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/models/privateLinkResourcesMappers.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/models/privateLinkResourcesMappers.ts @@ -16,6 +16,8 @@ export { AutoUpgradePolicyResource, AzureEntityResource, BackupPolicy, + BackupResource, + BackupResourceProperties, BaseResource, Capability, CassandraKeyspaceCreateUpdateParameters, @@ -30,8 +32,10 @@ export { CassandraTableGetPropertiesResource, CassandraTableGetResults, CassandraTableResource, + Certificate, CloudError, ClusterKey, + ClusterResource, Column, CompositePath, ConflictResolutionPolicy, @@ -41,7 +45,11 @@ export { CorsPolicy, CreateUpdateOptions, DatabaseAccountCreateUpdateParameters, + DatabaseAccountCreateUpdateProperties, DatabaseAccountGetResults, + DatabaseRestoreResource, + DataCenterResource, + DefaultRequestDatabaseAccountCreateUpdateProperties, ExcludedPath, FailoverPolicy, GremlinDatabaseCreateUpdateParameters, @@ -79,6 +87,7 @@ export { OptionsResource, PeriodicModeBackupPolicy, PeriodicModeProperties, + Permission, PrivateEndpointConnection, PrivateEndpointProperty, PrivateLinkResource, @@ -86,6 +95,9 @@ export { PrivateLinkServiceConnectionStateProperty, ProxyResource, Resource, + RestoreParameters, + RestoreReqeustDatabaseAccountCreateUpdateProperties, + SeedNode, SpatialSpec, SqlContainerCreateUpdateParameters, SqlContainerGetPropertiesOptions, @@ -97,6 +109,8 @@ export { SqlDatabaseGetPropertiesResource, SqlDatabaseGetResults, SqlDatabaseResource, + SqlRoleAssignmentGetResults, + SqlRoleDefinitionGetResults, SqlStoredProcedureCreateUpdateParameters, SqlStoredProcedureGetPropertiesResource, SqlStoredProcedureGetResults, @@ -109,6 +123,7 @@ 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 new file mode 100644 index 000000000000..0a96a80c157a --- /dev/null +++ b/sdk/cosmosdb/arm-cosmosdb/src/models/restorableDatabaseAccountsMappers.ts @@ -0,0 +1,16 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export { + discriminators, + CloudError, + ErrorResponse, + RestorableDatabaseAccountGetResult, + RestorableDatabaseAccountsListResult, + RestorableLocationResource +} from "../models/mappers"; diff --git a/sdk/cosmosdb/arm-cosmosdb/src/models/restorableMongodbCollectionsMappers.ts b/sdk/cosmosdb/arm-cosmosdb/src/models/restorableMongodbCollectionsMappers.ts new file mode 100644 index 000000000000..44c2c51f4a76 --- /dev/null +++ b/sdk/cosmosdb/arm-cosmosdb/src/models/restorableMongodbCollectionsMappers.ts @@ -0,0 +1,16 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export { + discriminators, + CloudError, + ErrorResponse, + RestorableMongodbCollectionGetResult, + RestorableMongodbCollectionPropertiesResource, + RestorableMongodbCollectionsListResult +} from "../models/mappers"; diff --git a/sdk/cosmosdb/arm-cosmosdb/src/models/restorableMongodbDatabasesMappers.ts b/sdk/cosmosdb/arm-cosmosdb/src/models/restorableMongodbDatabasesMappers.ts new file mode 100644 index 000000000000..17b169da89a7 --- /dev/null +++ b/sdk/cosmosdb/arm-cosmosdb/src/models/restorableMongodbDatabasesMappers.ts @@ -0,0 +1,16 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export { + discriminators, + CloudError, + ErrorResponse, + RestorableMongodbDatabaseGetResult, + RestorableMongodbDatabasePropertiesResource, + RestorableMongodbDatabasesListResult +} from "../models/mappers"; diff --git a/sdk/cosmosdb/arm-cosmosdb/src/models/restorableMongodbResourcesMappers.ts b/sdk/cosmosdb/arm-cosmosdb/src/models/restorableMongodbResourcesMappers.ts new file mode 100644 index 000000000000..e8cc50bfb74b --- /dev/null +++ b/sdk/cosmosdb/arm-cosmosdb/src/models/restorableMongodbResourcesMappers.ts @@ -0,0 +1,15 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export { + discriminators, + CloudError, + DatabaseRestoreResource, + ErrorResponse, + RestorableMongodbResourcesListResult +} from "../models/mappers"; diff --git a/sdk/cosmosdb/arm-cosmosdb/src/models/restorableSqlContainersMappers.ts b/sdk/cosmosdb/arm-cosmosdb/src/models/restorableSqlContainersMappers.ts new file mode 100644 index 000000000000..a85679017367 --- /dev/null +++ b/sdk/cosmosdb/arm-cosmosdb/src/models/restorableSqlContainersMappers.ts @@ -0,0 +1,27 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export { + discriminators, + CloudError, + CompositePath, + ConflictResolutionPolicy, + ContainerPartitionKey, + ErrorResponse, + ExcludedPath, + IncludedPath, + Indexes, + IndexingPolicy, + RestorableSqlContainerGetResult, + RestorableSqlContainerPropertiesResource, + RestorableSqlContainerPropertiesResourceContainer, + RestorableSqlContainersListResult, + SpatialSpec, + UniqueKey, + UniqueKeyPolicy +} from "../models/mappers"; diff --git a/sdk/cosmosdb/arm-cosmosdb/src/models/restorableSqlDatabasesMappers.ts b/sdk/cosmosdb/arm-cosmosdb/src/models/restorableSqlDatabasesMappers.ts new file mode 100644 index 000000000000..9e949616c3d9 --- /dev/null +++ b/sdk/cosmosdb/arm-cosmosdb/src/models/restorableSqlDatabasesMappers.ts @@ -0,0 +1,17 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export { + discriminators, + CloudError, + ErrorResponse, + RestorableSqlDatabaseGetResult, + RestorableSqlDatabasePropertiesResource, + RestorableSqlDatabasePropertiesResourceDatabase, + RestorableSqlDatabasesListResult +} from "../models/mappers"; diff --git a/sdk/cosmosdb/arm-cosmosdb/src/models/restorableSqlResourcesMappers.ts b/sdk/cosmosdb/arm-cosmosdb/src/models/restorableSqlResourcesMappers.ts new file mode 100644 index 000000000000..f9284b16f0e1 --- /dev/null +++ b/sdk/cosmosdb/arm-cosmosdb/src/models/restorableSqlResourcesMappers.ts @@ -0,0 +1,15 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export { + discriminators, + CloudError, + DatabaseRestoreResource, + ErrorResponse, + RestorableSqlResourcesListResult +} from "../models/mappers"; diff --git a/sdk/cosmosdb/arm-cosmosdb/src/models/sqlResourcesMappers.ts b/sdk/cosmosdb/arm-cosmosdb/src/models/sqlResourcesMappers.ts index 776fe06e2a93..dd1891d228fe 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/models/sqlResourcesMappers.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/models/sqlResourcesMappers.ts @@ -16,6 +16,8 @@ export { AutoUpgradePolicyResource, AzureEntityResource, BackupPolicy, + BackupResource, + BackupResourceProperties, BaseResource, Capability, CassandraKeyspaceCreateUpdateParameters, @@ -30,8 +32,10 @@ export { CassandraTableGetPropertiesResource, CassandraTableGetResults, CassandraTableResource, + Certificate, CloudError, ClusterKey, + ClusterResource, Column, CompositePath, ConflictResolutionPolicy, @@ -41,9 +45,11 @@ export { CorsPolicy, CreateUpdateOptions, DatabaseAccountCreateUpdateParameters, + DatabaseAccountCreateUpdateProperties, DatabaseAccountGetResults, - ErrorResponse, - ErrorResponseUpdatedFormat, + DatabaseRestoreResource, + DataCenterResource, + DefaultRequestDatabaseAccountCreateUpdateProperties, ExcludedPath, FailoverPolicy, GremlinDatabaseCreateUpdateParameters, @@ -81,12 +87,16 @@ export { OptionsResource, PeriodicModeBackupPolicy, PeriodicModeProperties, + Permission, PrivateEndpointConnection, PrivateEndpointProperty, PrivateLinkResource, PrivateLinkServiceConnectionStateProperty, ProxyResource, Resource, + RestoreParameters, + RestoreReqeustDatabaseAccountCreateUpdateProperties, + SeedNode, SpatialSpec, SqlContainerCreateUpdateParameters, SqlContainerGetPropertiesOptions, @@ -100,6 +110,12 @@ export { SqlDatabaseGetResults, SqlDatabaseListResult, SqlDatabaseResource, + SqlRoleAssignmentCreateUpdateParameters, + SqlRoleAssignmentGetResults, + SqlRoleAssignmentListResult, + SqlRoleDefinitionCreateUpdateParameters, + SqlRoleDefinitionGetResults, + SqlRoleDefinitionListResult, SqlStoredProcedureCreateUpdateParameters, SqlStoredProcedureGetPropertiesResource, SqlStoredProcedureGetResults, @@ -115,6 +131,7 @@ 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 92286d1a8eb1..5b2e30ccb444 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/models/tableResourcesMappers.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/models/tableResourcesMappers.ts @@ -16,6 +16,8 @@ export { AutoUpgradePolicyResource, AzureEntityResource, BackupPolicy, + BackupResource, + BackupResourceProperties, BaseResource, Capability, CassandraKeyspaceCreateUpdateParameters, @@ -30,8 +32,10 @@ export { CassandraTableGetPropertiesResource, CassandraTableGetResults, CassandraTableResource, + Certificate, CloudError, ClusterKey, + ClusterResource, Column, CompositePath, ConflictResolutionPolicy, @@ -41,9 +45,11 @@ export { CorsPolicy, CreateUpdateOptions, DatabaseAccountCreateUpdateParameters, + DatabaseAccountCreateUpdateProperties, DatabaseAccountGetResults, - ErrorResponse, - ErrorResponseUpdatedFormat, + DatabaseRestoreResource, + DataCenterResource, + DefaultRequestDatabaseAccountCreateUpdateProperties, ExcludedPath, FailoverPolicy, GremlinDatabaseCreateUpdateParameters, @@ -81,12 +87,16 @@ export { OptionsResource, PeriodicModeBackupPolicy, PeriodicModeProperties, + Permission, PrivateEndpointConnection, PrivateEndpointProperty, PrivateLinkResource, PrivateLinkServiceConnectionStateProperty, ProxyResource, Resource, + RestoreParameters, + RestoreReqeustDatabaseAccountCreateUpdateProperties, + SeedNode, SpatialSpec, SqlContainerCreateUpdateParameters, SqlContainerGetPropertiesOptions, @@ -98,6 +108,8 @@ export { SqlDatabaseGetPropertiesResource, SqlDatabaseGetResults, SqlDatabaseResource, + SqlRoleAssignmentGetResults, + SqlRoleDefinitionGetResults, SqlStoredProcedureCreateUpdateParameters, SqlStoredProcedureGetPropertiesResource, SqlStoredProcedureGetResults, @@ -110,6 +122,7 @@ export { SqlUserDefinedFunctionGetPropertiesResource, SqlUserDefinedFunctionGetResults, SqlUserDefinedFunctionResource, + SystemData, TableCreateUpdateParameters, TableGetPropertiesOptions, TableGetPropertiesResource, diff --git a/sdk/cosmosdb/arm-cosmosdb/src/operations/cassandraClusters.ts b/sdk/cosmosdb/arm-cosmosdb/src/operations/cassandraClusters.ts new file mode 100644 index 000000000000..40be501ddd67 --- /dev/null +++ b/sdk/cosmosdb/arm-cosmosdb/src/operations/cassandraClusters.ts @@ -0,0 +1,616 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * 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 msRestAzure from "@azure/ms-rest-azure-js"; +import * as Models from "../models"; +import * as Mappers from "../models/cassandraClustersMappers"; +import * as Parameters from "../models/parameters"; +import { CosmosDBManagementClientContext } from "../cosmosDBManagementClientContext"; + +/** Class representing a CassandraClusters. */ +export class CassandraClusters { + private readonly client: CosmosDBManagementClientContext; + + /** + * Create a CassandraClusters. + * @param {CosmosDBManagementClientContext} client Reference to the service client. + */ + constructor(client: CosmosDBManagementClientContext) { + this.client = client; + } + + /** + * List all managed Cassandra clusters in this subscription. + * @param [options] The optional parameters + * @returns Promise + */ + listBySubscription(options?: msRest.RequestOptionsBase): Promise; + /** + * @param callback The callback + */ + listBySubscription(callback: msRest.ServiceCallback): void; + /** + * @param options The optional parameters + * @param callback The callback + */ + listBySubscription(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listBySubscription(options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + options + }, + listBySubscriptionOperationSpec, + callback) as Promise; + } + + /** + * List all managed Cassandra clusters in this resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param [options] The optional parameters + * @returns Promise + */ + listByResourceGroup(resourceGroupName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param callback The callback + */ + listByResourceGroup(resourceGroupName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param options The optional parameters + * @param callback The callback + */ + listByResourceGroup(resourceGroupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByResourceGroup(resourceGroupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + options + }, + listByResourceGroupOperationSpec, + callback) as Promise; + } + + /** + * Get the properties of a managed Cassandra cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName Managed Cassandra cluster name. + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, clusterName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName Managed Cassandra cluster name. + * @param callback The callback + */ + get(resourceGroupName: string, clusterName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName Managed Cassandra cluster name. + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, clusterName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, clusterName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + clusterName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Deletes a managed Cassandra cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName Managed Cassandra cluster name. + * @param [options] The optional parameters + * @returns Promise + */ + deleteMethod(resourceGroupName: string, clusterName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginDeleteMethod(resourceGroupName,clusterName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); + } + + /** + * Create or update a managed Cassandra cluster. When updating, you must specify all writable + * properties. To update only some properties, use PATCH. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName Managed Cassandra cluster name. + * @param body The properties specifying the desired state of the managed Cassandra cluster. + * @param [options] The optional parameters + * @returns Promise + */ + createUpdate(resourceGroupName: string, clusterName: string, body: Models.ClusterResource, options?: msRest.RequestOptionsBase): Promise { + return this.beginCreateUpdate(resourceGroupName,clusterName,body,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * Updates some of the properties of a managed Cassandra cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName Managed Cassandra cluster name. + * @param body Parameters to provide for specifying the managed Cassandra cluster. + * @param [options] The optional parameters + * @returns Promise + */ + update(resourceGroupName: string, clusterName: string, body: Models.ClusterResource, options?: msRest.RequestOptionsBase): Promise { + return this.beginUpdate(resourceGroupName,clusterName,body,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * Request that repair begin on this cluster as soon as possible. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName Managed Cassandra cluster name. + * @param body Specification of what keyspaces and tables to run repair on. + * @param [options] The optional parameters + * @returns Promise + */ + requestRepair(resourceGroupName: string, clusterName: string, body: Models.RepairPostBody, options?: msRest.RequestOptionsBase): Promise { + return this.beginRequestRepair(resourceGroupName,clusterName,body,options) + .then(lroPoller => lroPoller.pollUntilFinished()); + } + + /** + * Request the status of all nodes in the cluster (as returned by 'nodetool status'). + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName Managed Cassandra cluster name. + * @param [options] The optional parameters + * @returns Promise + */ + fetchNodeStatus(resourceGroupName: string, clusterName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginFetchNodeStatus(resourceGroupName,clusterName,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * List the backups of this cluster that are available to restore. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName Managed Cassandra cluster name. + * @param [options] The optional parameters + * @returns Promise + */ + listBackupsMethod(resourceGroupName: string, clusterName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName Managed Cassandra cluster name. + * @param callback The callback + */ + listBackupsMethod(resourceGroupName: string, clusterName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName Managed Cassandra cluster name. + * @param options The optional parameters + * @param callback The callback + */ + listBackupsMethod(resourceGroupName: string, clusterName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listBackupsMethod(resourceGroupName: string, clusterName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + clusterName, + options + }, + listBackupsMethodOperationSpec, + callback) as Promise; + } + + /** + * Get the properties of an individual backup of this cluster that is available to restore. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName Managed Cassandra cluster name. + * @param backupId Id of a restorable backup of a Cassandra cluster. + * @param [options] The optional parameters + * @returns Promise + */ + getBackup(resourceGroupName: string, clusterName: string, backupId: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName Managed Cassandra cluster name. + * @param backupId Id of a restorable backup of a Cassandra cluster. + * @param callback The callback + */ + getBackup(resourceGroupName: string, clusterName: string, backupId: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName Managed Cassandra cluster name. + * @param backupId Id of a restorable backup of a Cassandra cluster. + * @param options The optional parameters + * @param callback The callback + */ + getBackup(resourceGroupName: string, clusterName: string, backupId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getBackup(resourceGroupName: string, clusterName: string, backupId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + clusterName, + backupId, + options + }, + getBackupOperationSpec, + callback) as Promise; + } + + /** + * Deletes a managed Cassandra cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName Managed Cassandra cluster name. + * @param [options] The optional parameters + * @returns Promise + */ + beginDeleteMethod(resourceGroupName: string, clusterName: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + clusterName, + options + }, + beginDeleteMethodOperationSpec, + options); + } + + /** + * Create or update a managed Cassandra cluster. When updating, you must specify all writable + * properties. To update only some properties, use PATCH. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName Managed Cassandra cluster name. + * @param body The properties specifying the desired state of the managed Cassandra cluster. + * @param [options] The optional parameters + * @returns Promise + */ + beginCreateUpdate(resourceGroupName: string, clusterName: string, body: Models.ClusterResource, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + clusterName, + body, + options + }, + beginCreateUpdateOperationSpec, + options); + } + + /** + * Updates some of the properties of a managed Cassandra cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName Managed Cassandra cluster name. + * @param body Parameters to provide for specifying the managed Cassandra cluster. + * @param [options] The optional parameters + * @returns Promise + */ + beginUpdate(resourceGroupName: string, clusterName: string, body: Models.ClusterResource, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + clusterName, + body, + options + }, + beginUpdateOperationSpec, + options); + } + + /** + * Request that repair begin on this cluster as soon as possible. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName Managed Cassandra cluster name. + * @param body Specification of what keyspaces and tables to run repair on. + * @param [options] The optional parameters + * @returns Promise + */ + beginRequestRepair(resourceGroupName: string, clusterName: string, body: Models.RepairPostBody, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + clusterName, + body, + options + }, + beginRequestRepairOperationSpec, + options); + } + + /** + * Request the status of all nodes in the cluster (as returned by 'nodetool status'). + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName Managed Cassandra cluster name. + * @param [options] The optional parameters + * @returns Promise + */ + beginFetchNodeStatus(resourceGroupName: string, clusterName: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + clusterName, + options + }, + beginFetchNodeStatusOperationSpec, + options); + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listBySubscriptionOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/providers/Microsoft.DocumentDB/cassandraClusters", + urlParameters: [ + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ListClusters + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listByResourceGroupOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/cassandraClusters", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ListClusters + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/cassandraClusters/{clusterName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.clusterName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ClusterResource + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listBackupsMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/cassandraClusters/{clusterName}/backups", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.clusterName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ListBackups + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const getBackupOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/cassandraClusters/{clusterName}/backups/{backupId}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.clusterName, + Parameters.backupId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.BackupResource + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginDeleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/cassandraClusters/{clusterName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.clusterName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginCreateUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/cassandraClusters/{clusterName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.clusterName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "body", + mapper: { + ...Mappers.ClusterResource, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.ClusterResource + }, + 201: { + bodyMapper: Mappers.ClusterResource + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PATCH", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/cassandraClusters/{clusterName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.clusterName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "body", + mapper: { + ...Mappers.ClusterResource, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.ClusterResource + }, + 202: { + bodyMapper: Mappers.ClusterResource + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginRequestRepairOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/cassandraClusters/{clusterName}/repair", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.clusterName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "body", + mapper: { + ...Mappers.RepairPostBody, + required: true + } + }, + responses: { + 200: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginFetchNodeStatusOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/cassandraClusters/{clusterName}/fetchNodeStatus", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.clusterName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ClusterNodeStatus + }, + 202: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/cosmosdb/arm-cosmosdb/src/operations/cassandraDataCenters.ts b/sdk/cosmosdb/arm-cosmosdb/src/operations/cassandraDataCenters.ts new file mode 100644 index 000000000000..3356998a5e46 --- /dev/null +++ b/sdk/cosmosdb/arm-cosmosdb/src/operations/cassandraDataCenters.ts @@ -0,0 +1,353 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * 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 msRestAzure from "@azure/ms-rest-azure-js"; +import * as Models from "../models"; +import * as Mappers from "../models/cassandraDataCentersMappers"; +import * as Parameters from "../models/parameters"; +import { CosmosDBManagementClientContext } from "../cosmosDBManagementClientContext"; + +/** Class representing a CassandraDataCenters. */ +export class CassandraDataCenters { + private readonly client: CosmosDBManagementClientContext; + + /** + * Create a CassandraDataCenters. + * @param {CosmosDBManagementClientContext} client Reference to the service client. + */ + constructor(client: CosmosDBManagementClientContext) { + this.client = client; + } + + /** + * List all data centers in a particular managed Cassandra cluster. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName Managed Cassandra cluster name. + * @param [options] The optional parameters + * @returns Promise + */ + list(resourceGroupName: string, clusterName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName Managed Cassandra cluster name. + * @param callback The callback + */ + list(resourceGroupName: string, clusterName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName Managed Cassandra cluster name. + * @param options The optional parameters + * @param callback The callback + */ + list(resourceGroupName: string, clusterName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + list(resourceGroupName: string, clusterName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + clusterName, + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * Get the properties of a managed Cassandra data center. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName Managed Cassandra cluster name. + * @param dataCenterName Data center name in a managed Cassandra cluster. + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, clusterName: string, dataCenterName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName Managed Cassandra cluster name. + * @param dataCenterName Data center name in a managed Cassandra cluster. + * @param callback The callback + */ + get(resourceGroupName: string, clusterName: string, dataCenterName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName Managed Cassandra cluster name. + * @param dataCenterName Data center name in a managed Cassandra cluster. + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, clusterName: string, dataCenterName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, clusterName: string, dataCenterName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + clusterName, + dataCenterName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Delete a managed Cassandra data center. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName Managed Cassandra cluster name. + * @param dataCenterName Data center name in a managed Cassandra cluster. + * @param [options] The optional parameters + * @returns Promise + */ + deleteMethod(resourceGroupName: string, clusterName: string, dataCenterName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginDeleteMethod(resourceGroupName,clusterName,dataCenterName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); + } + + /** + * Create or update a managed Cassandra data center. When updating, overwrite all properties. To + * update only some properties, use PATCH. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName Managed Cassandra cluster name. + * @param dataCenterName Data center name in a managed Cassandra cluster. + * @param body Parameters specifying the managed Cassandra data center. + * @param [options] The optional parameters + * @returns Promise + */ + createUpdate(resourceGroupName: string, clusterName: string, dataCenterName: string, body: Models.DataCenterResource, options?: msRest.RequestOptionsBase): Promise { + return this.beginCreateUpdate(resourceGroupName,clusterName,dataCenterName,body,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * Update some of the properties of a managed Cassandra data center. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName Managed Cassandra cluster name. + * @param dataCenterName Data center name in a managed Cassandra cluster. + * @param body Parameters to provide for specifying the managed Cassandra data center. + * @param [options] The optional parameters + * @returns Promise + */ + update(resourceGroupName: string, clusterName: string, dataCenterName: string, body: Models.DataCenterResource, options?: msRest.RequestOptionsBase): Promise { + return this.beginUpdate(resourceGroupName,clusterName,dataCenterName,body,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * Delete a managed Cassandra data center. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName Managed Cassandra cluster name. + * @param dataCenterName Data center name in a managed Cassandra cluster. + * @param [options] The optional parameters + * @returns Promise + */ + beginDeleteMethod(resourceGroupName: string, clusterName: string, dataCenterName: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + clusterName, + dataCenterName, + options + }, + beginDeleteMethodOperationSpec, + options); + } + + /** + * Create or update a managed Cassandra data center. When updating, overwrite all properties. To + * update only some properties, use PATCH. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName Managed Cassandra cluster name. + * @param dataCenterName Data center name in a managed Cassandra cluster. + * @param body Parameters specifying the managed Cassandra data center. + * @param [options] The optional parameters + * @returns Promise + */ + beginCreateUpdate(resourceGroupName: string, clusterName: string, dataCenterName: string, body: Models.DataCenterResource, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + clusterName, + dataCenterName, + body, + options + }, + beginCreateUpdateOperationSpec, + options); + } + + /** + * Update some of the properties of a managed Cassandra data center. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName Managed Cassandra cluster name. + * @param dataCenterName Data center name in a managed Cassandra cluster. + * @param body Parameters to provide for specifying the managed Cassandra data center. + * @param [options] The optional parameters + * @returns Promise + */ + beginUpdate(resourceGroupName: string, clusterName: string, dataCenterName: string, body: Models.DataCenterResource, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + clusterName, + dataCenterName, + body, + options + }, + beginUpdateOperationSpec, + options); + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/cassandraClusters/{clusterName}/dataCenters", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.clusterName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ListDataCenters + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/cassandraClusters/{clusterName}/dataCenters/{dataCenterName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.clusterName, + Parameters.dataCenterName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.DataCenterResource + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginDeleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/cassandraClusters/{clusterName}/dataCenters/{dataCenterName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.clusterName, + Parameters.dataCenterName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginCreateUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/cassandraClusters/{clusterName}/dataCenters/{dataCenterName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.clusterName, + Parameters.dataCenterName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "body", + mapper: { + ...Mappers.DataCenterResource, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.DataCenterResource + }, + 201: { + bodyMapper: Mappers.DataCenterResource + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PATCH", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/cassandraClusters/{clusterName}/dataCenters/{dataCenterName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.clusterName, + Parameters.dataCenterName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "body", + mapper: { + ...Mappers.DataCenterResource, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.DataCenterResource + }, + 202: { + bodyMapper: Mappers.DataCenterResource + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/cosmosdb/arm-cosmosdb/src/operations/cassandraResources.ts b/sdk/cosmosdb/arm-cosmosdb/src/operations/cassandraResources.ts index c00e66340523..cc3d315664f3 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/operations/cassandraResources.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/operations/cassandraResources.ts @@ -888,7 +888,7 @@ const beginMigrateCassandraKeyspaceToAutoscaleOperationSpec: msRest.OperationSpe }, 202: {}, default: { - bodyMapper: Mappers.ErrorResponseUpdatedFormat + bodyMapper: Mappers.CloudError } }, serializer @@ -915,7 +915,7 @@ const beginMigrateCassandraKeyspaceToManualThroughputOperationSpec: msRest.Opera }, 202: {}, default: { - bodyMapper: Mappers.ErrorResponseUpdatedFormat + bodyMapper: Mappers.CloudError } }, serializer @@ -1039,7 +1039,7 @@ const beginMigrateCassandraTableToAutoscaleOperationSpec: msRest.OperationSpec = }, 202: {}, default: { - bodyMapper: Mappers.ErrorResponseUpdatedFormat + bodyMapper: Mappers.CloudError } }, serializer @@ -1067,7 +1067,7 @@ const beginMigrateCassandraTableToManualThroughputOperationSpec: msRest.Operatio }, 202: {}, default: { - bodyMapper: Mappers.ErrorResponseUpdatedFormat + 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 1b8eeab4ef71..68c437ee319b 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/operations/gremlinResources.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/operations/gremlinResources.ts @@ -888,7 +888,7 @@ const beginMigrateGremlinDatabaseToAutoscaleOperationSpec: msRest.OperationSpec }, 202: {}, default: { - bodyMapper: Mappers.ErrorResponseUpdatedFormat + bodyMapper: Mappers.CloudError } }, serializer @@ -915,7 +915,7 @@ const beginMigrateGremlinDatabaseToManualThroughputOperationSpec: msRest.Operati }, 202: {}, default: { - bodyMapper: Mappers.ErrorResponseUpdatedFormat + bodyMapper: Mappers.CloudError } }, serializer @@ -1039,7 +1039,7 @@ const beginMigrateGremlinGraphToAutoscaleOperationSpec: msRest.OperationSpec = { }, 202: {}, default: { - bodyMapper: Mappers.ErrorResponseUpdatedFormat + bodyMapper: Mappers.CloudError } }, serializer @@ -1067,7 +1067,7 @@ const beginMigrateGremlinGraphToManualThroughputOperationSpec: msRest.OperationS }, 202: {}, default: { - bodyMapper: Mappers.ErrorResponseUpdatedFormat + 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 d5736137864a..5618d79d9877 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/operations/index.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/operations/index.ts @@ -25,6 +25,15 @@ export * from "./mongoDBResources"; export * from "./tableResources"; export * from "./cassandraResources"; export * from "./gremlinResources"; +export * from "./restorableDatabaseAccounts"; export * from "./notebookWorkspaces"; +export * from "./restorableSqlDatabases"; +export * from "./restorableSqlContainers"; +export * from "./restorableSqlResources"; +export * from "./restorableMongodbDatabases"; +export * from "./restorableMongodbCollections"; +export * from "./restorableMongodbResources"; +export * from "./cassandraClusters"; +export * from "./cassandraDataCenters"; 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 c4d218dd4636..11847cee69eb 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/operations/mongoDBResources.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/operations/mongoDBResources.ts @@ -861,7 +861,7 @@ const beginUpdateMongoDBDatabaseThroughputOperationSpec: msRest.OperationSpec = }, 202: {}, default: { - bodyMapper: Mappers.ErrorResponseUpdatedFormat + bodyMapper: Mappers.CloudError } }, serializer @@ -888,7 +888,7 @@ const beginMigrateMongoDBDatabaseToAutoscaleOperationSpec: msRest.OperationSpec }, 202: {}, default: { - bodyMapper: Mappers.ErrorResponseUpdatedFormat + bodyMapper: Mappers.CloudError } }, serializer @@ -915,7 +915,7 @@ const beginMigrateMongoDBDatabaseToManualThroughputOperationSpec: msRest.Operati }, 202: {}, default: { - bodyMapper: Mappers.ErrorResponseUpdatedFormat + bodyMapper: Mappers.CloudError } }, serializer @@ -1039,7 +1039,7 @@ const beginMigrateMongoDBCollectionToAutoscaleOperationSpec: msRest.OperationSpe }, 202: {}, default: { - bodyMapper: Mappers.ErrorResponseUpdatedFormat + bodyMapper: Mappers.CloudError } }, serializer @@ -1067,7 +1067,7 @@ const beginMigrateMongoDBCollectionToManualThroughputOperationSpec: msRest.Opera }, 202: {}, default: { - bodyMapper: Mappers.ErrorResponseUpdatedFormat + bodyMapper: Mappers.CloudError } }, serializer diff --git a/sdk/cosmosdb/arm-cosmosdb/src/operations/restorableDatabaseAccounts.ts b/sdk/cosmosdb/arm-cosmosdb/src/operations/restorableDatabaseAccounts.ts new file mode 100644 index 000000000000..196125de93ea --- /dev/null +++ b/sdk/cosmosdb/arm-cosmosdb/src/operations/restorableDatabaseAccounts.ts @@ -0,0 +1,189 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * 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. This call requires + * 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/read' permission. + * @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. + * This call requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/read' permission. + * @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. This call + * requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/read/*' permission. + * @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.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.RestorableDatabaseAccountsListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/providers/Microsoft.DocumentDB/restorableDatabaseAccounts", + urlParameters: [ + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.RestorableDatabaseAccountsListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + 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.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.RestorableDatabaseAccountGetResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/cosmosdb/arm-cosmosdb/src/operations/restorableMongodbCollections.ts b/sdk/cosmosdb/arm-cosmosdb/src/operations/restorableMongodbCollections.ts new file mode 100644 index 000000000000..0fe490a4c3e3 --- /dev/null +++ b/sdk/cosmosdb/arm-cosmosdb/src/operations/restorableMongodbCollections.ts @@ -0,0 +1,89 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * 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/restorableMongodbCollectionsMappers"; +import * as Parameters from "../models/parameters"; +import { CosmosDBManagementClientContext } from "../cosmosDBManagementClientContext"; + +/** Class representing a RestorableMongodbCollections. */ +export class RestorableMongodbCollections { + private readonly client: CosmosDBManagementClientContext; + + /** + * Create a RestorableMongodbCollections. + * @param {CosmosDBManagementClientContext} client Reference to the service client. + */ + constructor(client: CosmosDBManagementClientContext) { + this.client = client; + } + + /** + * Show the event feed of all mutations done on all the Azure Cosmos DB MongoDB collections under a + * specific database. This helps in scenario where container was accidentally deleted. This API + * requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/.../read' permission + * @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 + */ + list(location: string, instanceId: string, options?: Models.RestorableMongodbCollectionsListOptionalParams): 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 + */ + list(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 + */ + list(location: string, instanceId: string, options: Models.RestorableMongodbCollectionsListOptionalParams, callback: msRest.ServiceCallback): void; + list(location: string, instanceId: string, options?: Models.RestorableMongodbCollectionsListOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + location, + instanceId, + options + }, + listOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/providers/Microsoft.DocumentDB/locations/{location}/restorableDatabaseAccounts/{instanceId}/restorableMongodbCollections", + urlParameters: [ + Parameters.subscriptionId, + Parameters.location, + Parameters.instanceId + ], + queryParameters: [ + Parameters.apiVersion, + Parameters.restorableMongodbDatabaseRid + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.RestorableMongodbCollectionsListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/cosmosdb/arm-cosmosdb/src/operations/restorableMongodbDatabases.ts b/sdk/cosmosdb/arm-cosmosdb/src/operations/restorableMongodbDatabases.ts new file mode 100644 index 000000000000..5144f20e34df --- /dev/null +++ b/sdk/cosmosdb/arm-cosmosdb/src/operations/restorableMongodbDatabases.ts @@ -0,0 +1,89 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * 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/restorableMongodbDatabasesMappers"; +import * as Parameters from "../models/parameters"; +import { CosmosDBManagementClientContext } from "../cosmosDBManagementClientContext"; + +/** Class representing a RestorableMongodbDatabases. */ +export class RestorableMongodbDatabases { + private readonly client: CosmosDBManagementClientContext; + + /** + * Create a RestorableMongodbDatabases. + * @param {CosmosDBManagementClientContext} client Reference to the service client. + */ + constructor(client: CosmosDBManagementClientContext) { + this.client = client; + } + + /** + * Show the event feed of all mutations done on all the Azure Cosmos DB MongoDB databases under the + * restorable account. This helps in scenario where database was accidentally deleted to get the + * deletion time. This API requires + * 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/.../read' permission + * @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 + */ + list(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 + */ + list(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 + */ + list(location: string, instanceId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + list(location: string, instanceId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + location, + instanceId, + options + }, + listOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/providers/Microsoft.DocumentDB/locations/{location}/restorableDatabaseAccounts/{instanceId}/restorableMongodbDatabases", + urlParameters: [ + Parameters.subscriptionId, + Parameters.location, + Parameters.instanceId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.RestorableMongodbDatabasesListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/cosmosdb/arm-cosmosdb/src/operations/restorableMongodbResources.ts b/sdk/cosmosdb/arm-cosmosdb/src/operations/restorableMongodbResources.ts new file mode 100644 index 000000000000..5d4f07933664 --- /dev/null +++ b/sdk/cosmosdb/arm-cosmosdb/src/operations/restorableMongodbResources.ts @@ -0,0 +1,91 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * 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/restorableMongodbResourcesMappers"; +import * as Parameters from "../models/parameters"; +import { CosmosDBManagementClientContext } from "../cosmosDBManagementClientContext"; + +/** Class representing a RestorableMongodbResources. */ +export class RestorableMongodbResources { + private readonly client: CosmosDBManagementClientContext; + + /** + * Create a RestorableMongodbResources. + * @param {CosmosDBManagementClientContext} client Reference to the service client. + */ + constructor(client: CosmosDBManagementClientContext) { + this.client = client; + } + + /** + * Return a list of database and collection combo that exist on the account at the given timestamp + * and location. This helps in scenarios to validate what resources exist at given timestamp and + * location. This API requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/.../read' + * permission. + * @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 + */ + list(location: string, instanceId: string, options?: Models.RestorableMongodbResourcesListOptionalParams): 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 + */ + list(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 + */ + list(location: string, instanceId: string, options: Models.RestorableMongodbResourcesListOptionalParams, callback: msRest.ServiceCallback): void; + list(location: string, instanceId: string, options?: Models.RestorableMongodbResourcesListOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + location, + instanceId, + options + }, + listOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/providers/Microsoft.DocumentDB/locations/{location}/restorableDatabaseAccounts/{instanceId}/restorableMongodbResources", + urlParameters: [ + Parameters.subscriptionId, + Parameters.location, + Parameters.instanceId + ], + queryParameters: [ + Parameters.apiVersion, + Parameters.restoreLocation, + Parameters.restoreTimestampInUtc + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.RestorableMongodbResourcesListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/cosmosdb/arm-cosmosdb/src/operations/restorableSqlContainers.ts b/sdk/cosmosdb/arm-cosmosdb/src/operations/restorableSqlContainers.ts new file mode 100644 index 000000000000..a3ea3bbc78ae --- /dev/null +++ b/sdk/cosmosdb/arm-cosmosdb/src/operations/restorableSqlContainers.ts @@ -0,0 +1,89 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * 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/restorableSqlContainersMappers"; +import * as Parameters from "../models/parameters"; +import { CosmosDBManagementClientContext } from "../cosmosDBManagementClientContext"; + +/** Class representing a RestorableSqlContainers. */ +export class RestorableSqlContainers { + private readonly client: CosmosDBManagementClientContext; + + /** + * Create a RestorableSqlContainers. + * @param {CosmosDBManagementClientContext} client Reference to the service client. + */ + constructor(client: CosmosDBManagementClientContext) { + this.client = client; + } + + /** + * Show the event feed of all mutations done on all the Azure Cosmos DB SQL containers under a + * specific database. This helps in scenario where container was accidentally deleted. This API + * requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/.../read' permission + * @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 + */ + list(location: string, instanceId: string, options?: Models.RestorableSqlContainersListOptionalParams): 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 + */ + list(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 + */ + list(location: string, instanceId: string, options: Models.RestorableSqlContainersListOptionalParams, callback: msRest.ServiceCallback): void; + list(location: string, instanceId: string, options?: Models.RestorableSqlContainersListOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + location, + instanceId, + options + }, + listOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/providers/Microsoft.DocumentDB/locations/{location}/restorableDatabaseAccounts/{instanceId}/restorableSqlContainers", + urlParameters: [ + Parameters.subscriptionId, + Parameters.location, + Parameters.instanceId + ], + queryParameters: [ + Parameters.apiVersion, + Parameters.restorableSqlDatabaseRid + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.RestorableSqlContainersListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/cosmosdb/arm-cosmosdb/src/operations/restorableSqlDatabases.ts b/sdk/cosmosdb/arm-cosmosdb/src/operations/restorableSqlDatabases.ts new file mode 100644 index 000000000000..49eb4039b1d9 --- /dev/null +++ b/sdk/cosmosdb/arm-cosmosdb/src/operations/restorableSqlDatabases.ts @@ -0,0 +1,89 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * 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/restorableSqlDatabasesMappers"; +import * as Parameters from "../models/parameters"; +import { CosmosDBManagementClientContext } from "../cosmosDBManagementClientContext"; + +/** Class representing a RestorableSqlDatabases. */ +export class RestorableSqlDatabases { + private readonly client: CosmosDBManagementClientContext; + + /** + * Create a RestorableSqlDatabases. + * @param {CosmosDBManagementClientContext} client Reference to the service client. + */ + constructor(client: CosmosDBManagementClientContext) { + this.client = client; + } + + /** + * Show the event feed of all mutations done on all the Azure Cosmos DB SQL databases under the + * restorable account. This helps in scenario where database was accidentally deleted to get the + * deletion time. This API requires + * 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/.../read' permission + * @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 + */ + list(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 + */ + list(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 + */ + list(location: string, instanceId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + list(location: string, instanceId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + location, + instanceId, + options + }, + listOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/providers/Microsoft.DocumentDB/locations/{location}/restorableDatabaseAccounts/{instanceId}/restorableSqlDatabases", + urlParameters: [ + Parameters.subscriptionId, + Parameters.location, + Parameters.instanceId + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.RestorableSqlDatabasesListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/cosmosdb/arm-cosmosdb/src/operations/restorableSqlResources.ts b/sdk/cosmosdb/arm-cosmosdb/src/operations/restorableSqlResources.ts new file mode 100644 index 000000000000..da5a23fb80d4 --- /dev/null +++ b/sdk/cosmosdb/arm-cosmosdb/src/operations/restorableSqlResources.ts @@ -0,0 +1,91 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * 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/restorableSqlResourcesMappers"; +import * as Parameters from "../models/parameters"; +import { CosmosDBManagementClientContext } from "../cosmosDBManagementClientContext"; + +/** Class representing a RestorableSqlResources. */ +export class RestorableSqlResources { + private readonly client: CosmosDBManagementClientContext; + + /** + * Create a RestorableSqlResources. + * @param {CosmosDBManagementClientContext} client Reference to the service client. + */ + constructor(client: CosmosDBManagementClientContext) { + this.client = client; + } + + /** + * Return a list of database and container combo that exist on the account at the given timestamp + * and location. This helps in scenarios to validate what resources exist at given timestamp and + * location. This API requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/.../read' + * permission. + * @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 + */ + list(location: string, instanceId: string, options?: Models.RestorableSqlResourcesListOptionalParams): 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 + */ + list(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 + */ + list(location: string, instanceId: string, options: Models.RestorableSqlResourcesListOptionalParams, callback: msRest.ServiceCallback): void; + list(location: string, instanceId: string, options?: Models.RestorableSqlResourcesListOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + location, + instanceId, + options + }, + listOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/providers/Microsoft.DocumentDB/locations/{location}/restorableDatabaseAccounts/{instanceId}/restorableSqlResources", + urlParameters: [ + Parameters.subscriptionId, + Parameters.location, + Parameters.instanceId + ], + queryParameters: [ + Parameters.apiVersion, + Parameters.restoreLocation, + Parameters.restoreTimestampInUtc + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.RestorableSqlResourcesListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/cosmosdb/arm-cosmosdb/src/operations/sqlResources.ts b/sdk/cosmosdb/arm-cosmosdb/src/operations/sqlResources.ts index 6854cff3534d..e0bff1f7fb95 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/operations/sqlResources.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/operations/sqlResources.ts @@ -736,6 +736,198 @@ export class SqlResources { .then(lroPoller => lroPoller.pollUntilFinished()); } + /** + * Retrieves the properties of an existing Azure Cosmos DB SQL Role Definition with the given Id. + * @param roleDefinitionId The GUID for the Role Definition. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName Cosmos DB database account name. + * @param [options] The optional parameters + * @returns Promise + */ + getSqlRoleDefinition(roleDefinitionId: string, resourceGroupName: string, accountName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param roleDefinitionId The GUID for the Role Definition. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName Cosmos DB database account name. + * @param callback The callback + */ + getSqlRoleDefinition(roleDefinitionId: string, resourceGroupName: string, accountName: string, callback: msRest.ServiceCallback): void; + /** + * @param roleDefinitionId The GUID for the Role Definition. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName Cosmos DB database account name. + * @param options The optional parameters + * @param callback The callback + */ + getSqlRoleDefinition(roleDefinitionId: string, resourceGroupName: string, accountName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getSqlRoleDefinition(roleDefinitionId: string, resourceGroupName: string, accountName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + roleDefinitionId, + resourceGroupName, + accountName, + options + }, + getSqlRoleDefinitionOperationSpec, + callback) as Promise; + } + + /** + * Creates or updates an Azure Cosmos DB SQL Role Definition. + * @param roleDefinitionId The GUID for the Role Definition. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName Cosmos DB database account name. + * @param createUpdateSqlRoleDefinitionParameters The properties required to create or update a + * Role Definition. + * @param [options] The optional parameters + * @returns Promise + */ + createUpdateSqlRoleDefinition(roleDefinitionId: string, resourceGroupName: string, accountName: string, createUpdateSqlRoleDefinitionParameters: Models.SqlRoleDefinitionCreateUpdateParameters, options?: msRest.RequestOptionsBase): Promise { + return this.beginCreateUpdateSqlRoleDefinition(roleDefinitionId,resourceGroupName,accountName,createUpdateSqlRoleDefinitionParameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * Deletes an existing Azure Cosmos DB SQL Role Definition. + * @param roleDefinitionId The GUID for the Role Definition. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName Cosmos DB database account name. + * @param [options] The optional parameters + * @returns Promise + */ + deleteSqlRoleDefinition(roleDefinitionId: string, resourceGroupName: string, accountName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginDeleteSqlRoleDefinition(roleDefinitionId,resourceGroupName,accountName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); + } + + /** + * Retrieves the list of all Azure Cosmos DB SQL Role Definitions. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName Cosmos DB database account name. + * @param [options] The optional parameters + * @returns Promise + */ + listSqlRoleDefinitions(resourceGroupName: string, accountName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName Cosmos DB database account name. + * @param callback The callback + */ + listSqlRoleDefinitions(resourceGroupName: string, accountName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName Cosmos DB database account name. + * @param options The optional parameters + * @param callback The callback + */ + listSqlRoleDefinitions(resourceGroupName: string, accountName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listSqlRoleDefinitions(resourceGroupName: string, accountName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + accountName, + options + }, + listSqlRoleDefinitionsOperationSpec, + callback) as Promise; + } + + /** + * Retrieves the properties of an existing Azure Cosmos DB SQL Role Assignment with the given Id. + * @param roleAssignmentId The GUID for the Role Assignment. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName Cosmos DB database account name. + * @param [options] The optional parameters + * @returns Promise + */ + getSqlRoleAssignment(roleAssignmentId: string, resourceGroupName: string, accountName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param roleAssignmentId The GUID for the Role Assignment. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName Cosmos DB database account name. + * @param callback The callback + */ + getSqlRoleAssignment(roleAssignmentId: string, resourceGroupName: string, accountName: string, callback: msRest.ServiceCallback): void; + /** + * @param roleAssignmentId The GUID for the Role Assignment. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName Cosmos DB database account name. + * @param options The optional parameters + * @param callback The callback + */ + getSqlRoleAssignment(roleAssignmentId: string, resourceGroupName: string, accountName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getSqlRoleAssignment(roleAssignmentId: string, resourceGroupName: string, accountName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + roleAssignmentId, + resourceGroupName, + accountName, + options + }, + getSqlRoleAssignmentOperationSpec, + callback) as Promise; + } + + /** + * Creates or updates an Azure Cosmos DB SQL Role Assignment. + * @param roleAssignmentId The GUID for the Role Assignment. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName Cosmos DB database account name. + * @param createUpdateSqlRoleAssignmentParameters The properties required to create or update a + * Role Assignment. + * @param [options] The optional parameters + * @returns Promise + */ + createUpdateSqlRoleAssignment(roleAssignmentId: string, resourceGroupName: string, accountName: string, createUpdateSqlRoleAssignmentParameters: Models.SqlRoleAssignmentCreateUpdateParameters, options?: msRest.RequestOptionsBase): Promise { + return this.beginCreateUpdateSqlRoleAssignment(roleAssignmentId,resourceGroupName,accountName,createUpdateSqlRoleAssignmentParameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * Deletes an existing Azure Cosmos DB SQL Role Assignment. + * @param roleAssignmentId The GUID for the Role Assignment. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName Cosmos DB database account name. + * @param [options] The optional parameters + * @returns Promise + */ + deleteSqlRoleAssignment(roleAssignmentId: string, resourceGroupName: string, accountName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginDeleteSqlRoleAssignment(roleAssignmentId,resourceGroupName,accountName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); + } + + /** + * Retrieves the list of all Azure Cosmos DB SQL Role Assignments. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName Cosmos DB database account name. + * @param [options] The optional parameters + * @returns Promise + */ + listSqlRoleAssignments(resourceGroupName: string, accountName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName Cosmos DB database account name. + * @param callback The callback + */ + listSqlRoleAssignments(resourceGroupName: string, accountName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName Cosmos DB database account name. + * @param options The optional parameters + * @param callback The callback + */ + listSqlRoleAssignments(resourceGroupName: string, accountName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listSqlRoleAssignments(resourceGroupName: string, accountName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + accountName, + options + }, + listSqlRoleAssignmentsOperationSpec, + callback) as Promise; + } + /** * Create or update an Azure Cosmos DB SQL database * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -1108,6 +1300,92 @@ export class SqlResources { beginDeleteSqlTriggerOperationSpec, options); } + + /** + * Creates or updates an Azure Cosmos DB SQL Role Definition. + * @param roleDefinitionId The GUID for the Role Definition. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName Cosmos DB database account name. + * @param createUpdateSqlRoleDefinitionParameters The properties required to create or update a + * Role Definition. + * @param [options] The optional parameters + * @returns Promise + */ + beginCreateUpdateSqlRoleDefinition(roleDefinitionId: string, resourceGroupName: string, accountName: string, createUpdateSqlRoleDefinitionParameters: Models.SqlRoleDefinitionCreateUpdateParameters, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + roleDefinitionId, + resourceGroupName, + accountName, + createUpdateSqlRoleDefinitionParameters, + options + }, + beginCreateUpdateSqlRoleDefinitionOperationSpec, + options); + } + + /** + * Deletes an existing Azure Cosmos DB SQL Role Definition. + * @param roleDefinitionId The GUID for the Role Definition. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName Cosmos DB database account name. + * @param [options] The optional parameters + * @returns Promise + */ + beginDeleteSqlRoleDefinition(roleDefinitionId: string, resourceGroupName: string, accountName: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + roleDefinitionId, + resourceGroupName, + accountName, + options + }, + beginDeleteSqlRoleDefinitionOperationSpec, + options); + } + + /** + * Creates or updates an Azure Cosmos DB SQL Role Assignment. + * @param roleAssignmentId The GUID for the Role Assignment. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName Cosmos DB database account name. + * @param createUpdateSqlRoleAssignmentParameters The properties required to create or update a + * Role Assignment. + * @param [options] The optional parameters + * @returns Promise + */ + beginCreateUpdateSqlRoleAssignment(roleAssignmentId: string, resourceGroupName: string, accountName: string, createUpdateSqlRoleAssignmentParameters: Models.SqlRoleAssignmentCreateUpdateParameters, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + roleAssignmentId, + resourceGroupName, + accountName, + createUpdateSqlRoleAssignmentParameters, + options + }, + beginCreateUpdateSqlRoleAssignmentOperationSpec, + options); + } + + /** + * Deletes an existing Azure Cosmos DB SQL Role Assignment. + * @param roleAssignmentId The GUID for the Role Assignment. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName Cosmos DB database account name. + * @param [options] The optional parameters + * @returns Promise + */ + beginDeleteSqlRoleAssignment(roleAssignmentId: string, resourceGroupName: string, accountName: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + roleAssignmentId, + resourceGroupName, + accountName, + options + }, + beginDeleteSqlRoleAssignmentOperationSpec, + options); + } } // Operation Specifications @@ -1290,7 +1568,7 @@ const listSqlStoredProceduresOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.SqlStoredProcedureListResult }, default: { - bodyMapper: Mappers.ErrorResponseUpdatedFormat + bodyMapper: Mappers.CloudError } }, serializer @@ -1434,6 +1712,108 @@ const getSqlTriggerOperationSpec: msRest.OperationSpec = { serializer }; +const getSqlRoleDefinitionOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlRoleDefinitions/{roleDefinitionId}", + urlParameters: [ + Parameters.roleDefinitionId, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.accountName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.SqlRoleDefinitionGetResults + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listSqlRoleDefinitionsOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlRoleDefinitions", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.accountName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.SqlRoleDefinitionListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const getSqlRoleAssignmentOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlRoleAssignments/{roleAssignmentId}", + urlParameters: [ + Parameters.roleAssignmentId, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.accountName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.SqlRoleAssignmentGetResults + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listSqlRoleAssignmentsOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlRoleAssignments", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.accountName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.SqlRoleAssignmentListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + const beginCreateUpdateSqlDatabaseOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}", @@ -1548,7 +1928,7 @@ const beginMigrateSqlDatabaseToAutoscaleOperationSpec: msRest.OperationSpec = { }, 202: {}, default: { - bodyMapper: Mappers.ErrorResponseUpdatedFormat + bodyMapper: Mappers.CloudError } }, serializer @@ -1575,7 +1955,7 @@ const beginMigrateSqlDatabaseToManualThroughputOperationSpec: msRest.OperationSp }, 202: {}, default: { - bodyMapper: Mappers.ErrorResponseUpdatedFormat + bodyMapper: Mappers.CloudError } }, serializer @@ -1699,7 +2079,7 @@ const beginMigrateSqlContainerToAutoscaleOperationSpec: msRest.OperationSpec = { }, 202: {}, default: { - bodyMapper: Mappers.ErrorResponseUpdatedFormat + bodyMapper: Mappers.CloudError } }, serializer @@ -1727,7 +2107,7 @@ const beginMigrateSqlContainerToManualThroughputOperationSpec: msRest.OperationS }, 202: {}, default: { - bodyMapper: Mappers.ErrorResponseUpdatedFormat + bodyMapper: Mappers.CloudError } }, serializer @@ -1921,3 +2301,123 @@ const beginDeleteSqlTriggerOperationSpec: msRest.OperationSpec = { }, serializer }; + +const beginCreateUpdateSqlRoleDefinitionOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlRoleDefinitions/{roleDefinitionId}", + urlParameters: [ + Parameters.roleDefinitionId, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.accountName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "createUpdateSqlRoleDefinitionParameters", + mapper: { + ...Mappers.SqlRoleDefinitionCreateUpdateParameters, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.SqlRoleDefinitionGetResults + }, + 202: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginDeleteSqlRoleDefinitionOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlRoleDefinitions/{roleDefinitionId}", + urlParameters: [ + Parameters.roleDefinitionId, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.accountName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginCreateUpdateSqlRoleAssignmentOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlRoleAssignments/{roleAssignmentId}", + urlParameters: [ + Parameters.roleAssignmentId, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.accountName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "createUpdateSqlRoleAssignmentParameters", + mapper: { + ...Mappers.SqlRoleAssignmentCreateUpdateParameters, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.SqlRoleAssignmentGetResults + }, + 202: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginDeleteSqlRoleAssignmentOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlRoleAssignments/{roleAssignmentId}", + urlParameters: [ + Parameters.roleAssignmentId, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.accountName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/cosmosdb/arm-cosmosdb/src/operations/tableResources.ts b/sdk/cosmosdb/arm-cosmosdb/src/operations/tableResources.ts index 984ac69af484..b0ccec17248b 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/operations/tableResources.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/operations/tableResources.ts @@ -498,7 +498,7 @@ const beginMigrateTableToAutoscaleOperationSpec: msRest.OperationSpec = { }, 202: {}, default: { - bodyMapper: Mappers.ErrorResponseUpdatedFormat + bodyMapper: Mappers.CloudError } }, serializer @@ -525,7 +525,7 @@ const beginMigrateTableToManualThroughputOperationSpec: msRest.OperationSpec = { }, 202: {}, default: { - bodyMapper: Mappers.ErrorResponseUpdatedFormat + bodyMapper: Mappers.CloudError } }, serializer