Skip to content

Commit

Permalink
cosmosdb-track1 (Azure#18390)
Browse files Browse the repository at this point in the history
  • Loading branch information
colawwj authored Oct 27, 2021
1 parent 01f2bbe commit d67a884
Show file tree
Hide file tree
Showing 23 changed files with 3,753 additions and 138 deletions.
2 changes: 1 addition & 1 deletion sdk/cosmosdb/arm-cosmosdb/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@azure/arm-cosmosdb",
"author": "Microsoft Corporation",
"description": "CosmosDBManagementClient Library with typescript type definitions for node.js and browser.",
"version": "14.1.1",
"version": "14.2.0",
"dependencies": {
"@azure/ms-rest-azure-js": "^2.1.0",
"@azure/ms-rest-js": "^2.2.0",
Expand Down
6 changes: 6 additions & 0 deletions sdk/cosmosdb/arm-cosmosdb/src/cosmosDBManagementClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ class CosmosDBManagementClient extends CosmosDBManagementClientContext {
tableResources: operations.TableResources;
cassandraResources: operations.CassandraResources;
gremlinResources: operations.GremlinResources;
locations: operations.Locations;
notebookWorkspaces: operations.NotebookWorkspaces;
privateEndpointConnections: operations.PrivateEndpointConnections;
privateLinkResources: operations.PrivateLinkResources;
Expand All @@ -45,6 +46,8 @@ class CosmosDBManagementClient extends CosmosDBManagementClientContext {
restorableMongodbDatabases: operations.RestorableMongodbDatabases;
restorableMongodbCollections: operations.RestorableMongodbCollections;
restorableMongodbResources: operations.RestorableMongodbResources;
cassandraClusters: operations.CassandraClusters;
cassandraDataCenters: operations.CassandraDataCenters;

/**
* Initializes a new instance of the CosmosDBManagementClient class.
Expand Down Expand Up @@ -77,6 +80,7 @@ class CosmosDBManagementClient extends CosmosDBManagementClientContext {
this.tableResources = new operations.TableResources(this);
this.cassandraResources = new operations.CassandraResources(this);
this.gremlinResources = new operations.GremlinResources(this);
this.locations = new operations.Locations(this);
this.notebookWorkspaces = new operations.NotebookWorkspaces(this);
this.privateEndpointConnections = new operations.PrivateEndpointConnections(this);
this.privateLinkResources = new operations.PrivateLinkResources(this);
Expand All @@ -87,6 +91,8 @@ class CosmosDBManagementClient extends CosmosDBManagementClientContext {
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);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ import * as msRestAzure from "@azure/ms-rest-azure-js";
import { TokenCredential } from "@azure/core-auth";

const packageName = "@azure/arm-cosmosdb";
const packageVersion = "14.1.1";
const packageVersion = "14.2.0";

export class CosmosDBManagementClientContext extends msRestAzure.AzureServiceClient {
credentials: msRest.ServiceClientCredentials | TokenCredential;
apiVersion?: string;
subscriptionId: string;
apiVersion?: string;

/**
* Initializes a new instance of the CosmosDBManagementClient class.
Expand Down Expand Up @@ -49,7 +49,7 @@ export class CosmosDBManagementClientContext extends msRestAzure.AzureServiceCli

super(credentials, options);

this.apiVersion = '2021-06-15';
this.apiVersion = '2021-10-15';
this.acceptLanguage = 'en-US';
this.longRunningOperationRetryTimeout = 30;
this.baseUri = options.baseUri || this.baseUri || "https://management.azure.com";
Expand Down
153 changes: 153 additions & 0 deletions sdk/cosmosdb/arm-cosmosdb/src/models/cassandraClustersMappers.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,153 @@
/*
* 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,
AnalyticalStorageConfiguration,
ApiProperties,
ARMProxyResource,
ARMResourceProperties,
AutoscaleSettings,
AutoscaleSettingsResource,
AutoUpgradePolicyResource,
AzureEntityResource,
BackupPolicy,
BackupPolicyMigrationState,
BaseResource,
Capability,
Capacity,
CassandraClusterPublicStatus,
CassandraClusterPublicStatusDataCentersItem,
CassandraClusterPublicStatusDataCentersItemNodesItem,
CassandraKeyspaceCreateUpdateParameters,
CassandraKeyspaceGetPropertiesOptions,
CassandraKeyspaceGetPropertiesResource,
CassandraKeyspaceGetResults,
CassandraKeyspaceResource,
CassandraPartitionKey,
CassandraSchema,
CassandraTableCreateUpdateParameters,
CassandraTableGetPropertiesOptions,
CassandraTableGetPropertiesResource,
CassandraTableGetResults,
CassandraTableResource,
Certificate,
CloudError,
ClusterKey,
ClusterResource,
ClusterResourceProperties,
Column,
CommandOutput,
CommandPostBody,
CompositePath,
ConflictResolutionPolicy,
ConnectionError,
ConsistencyPolicy,
ContainerPartitionKey,
ContinuousModeBackupPolicy,
CorsPolicy,
CreateUpdateOptions,
DatabaseAccountCreateUpdateParameters,
DatabaseAccountGetResults,
DatabaseRestoreResource,
DataCenterResource,
DataCenterResourceProperties,
ErrorResponse,
ExcludedPath,
FailoverPolicy,
GremlinDatabaseCreateUpdateParameters,
GremlinDatabaseGetPropertiesOptions,
GremlinDatabaseGetPropertiesResource,
GremlinDatabaseGetResults,
GremlinDatabaseResource,
GremlinGraphCreateUpdateParameters,
GremlinGraphGetPropertiesOptions,
GremlinGraphGetPropertiesResource,
GremlinGraphGetResults,
GremlinGraphResource,
IncludedPath,
Indexes,
IndexingPolicy,
IpAddressOrRange,
ListClusters,
Location,
LocationGetResult,
LocationProperties,
ManagedCassandraARMResourceProperties,
ManagedCassandraManagedServiceIdentity,
ManagedCassandraReaperStatus,
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,
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";
146 changes: 146 additions & 0 deletions sdk/cosmosdb/arm-cosmosdb/src/models/cassandraDataCentersMappers.ts
Original file line number Diff line number Diff line change
@@ -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,
AnalyticalStorageConfiguration,
ApiProperties,
ARMProxyResource,
ARMResourceProperties,
AutoscaleSettings,
AutoscaleSettingsResource,
AutoUpgradePolicyResource,
AzureEntityResource,
BackupPolicy,
BackupPolicyMigrationState,
BaseResource,
Capability,
Capacity,
CassandraKeyspaceCreateUpdateParameters,
CassandraKeyspaceGetPropertiesOptions,
CassandraKeyspaceGetPropertiesResource,
CassandraKeyspaceGetResults,
CassandraKeyspaceResource,
CassandraPartitionKey,
CassandraSchema,
CassandraTableCreateUpdateParameters,
CassandraTableGetPropertiesOptions,
CassandraTableGetPropertiesResource,
CassandraTableGetResults,
CassandraTableResource,
Certificate,
CloudError,
ClusterKey,
ClusterResource,
ClusterResourceProperties,
Column,
CompositePath,
ConflictResolutionPolicy,
ConsistencyPolicy,
ContainerPartitionKey,
ContinuousModeBackupPolicy,
CorsPolicy,
CreateUpdateOptions,
DatabaseAccountCreateUpdateParameters,
DatabaseAccountGetResults,
DatabaseRestoreResource,
DataCenterResource,
DataCenterResourceProperties,
ErrorResponse,
ExcludedPath,
FailoverPolicy,
GremlinDatabaseCreateUpdateParameters,
GremlinDatabaseGetPropertiesOptions,
GremlinDatabaseGetPropertiesResource,
GremlinDatabaseGetResults,
GremlinDatabaseResource,
GremlinGraphCreateUpdateParameters,
GremlinGraphGetPropertiesOptions,
GremlinGraphGetPropertiesResource,
GremlinGraphGetResults,
GremlinGraphResource,
IncludedPath,
Indexes,
IndexingPolicy,
IpAddressOrRange,
ListDataCenters,
Location,
LocationGetResult,
LocationProperties,
ManagedCassandraARMResourceProperties,
ManagedCassandraManagedServiceIdentity,
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,
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";
Loading

0 comments on commit d67a884

Please sign in to comment.