Skip to content

Commit

Permalink
CodeGen from PR 12522 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Merge 4bb66b28e7ea3ac1ac8f6493e11f324ab547e997 into b9fb929f7823d54b94f85f39b0e79f38747828b1
  • Loading branch information
SDKAuto committed Jan 23, 2021
1 parent 9ee918e commit eca901e
Show file tree
Hide file tree
Showing 34 changed files with 2,285 additions and 5,178 deletions.
14 changes: 0 additions & 14 deletions sdk/cosmosdb/arm-cosmosdb/src/cosmosDBManagementClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,7 @@ 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;
privateLinkResources: operations.PrivateLinkResources;
privateEndpointConnections: operations.PrivateEndpointConnections;

Expand Down Expand Up @@ -71,14 +64,7 @@ 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.privateLinkResources = new operations.PrivateLinkResources(this);
this.privateEndpointConnections = new operations.PrivateEndpointConnections(this);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export class CosmosDBManagementClientContext extends msRestAzure.AzureServiceCli
if (!options) {
options = {};
}
if (!options.userAgent) {
if(!options.userAgent) {
const defaultUserAgent = msRestAzure.getDefaultUserAgentValue();
options.userAgent = `${packageName}/${packageVersion} ${defaultUserAgent}`;
}
Expand All @@ -49,10 +49,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;
}
}
Expand Down
25 changes: 2 additions & 23 deletions sdk/cosmosdb/arm-cosmosdb/src/models/cassandraResourcesMappers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,9 @@ export {
CorsPolicy,
CreateUpdateOptions,
DatabaseAccountCreateUpdateParameters,
DatabaseAccountCreateUpdateProperties,
DatabaseAccountGetResults,
DatabaseRestoreResource,
DefaultRequestDatabaseAccountCreateUpdateProperties,
ErrorResponse,
ErrorResponseUpdatedFormat,
ExcludedPath,
FailoverPolicy,
GremlinDatabaseCreateUpdateParameters,
Expand All @@ -64,8 +63,6 @@ export {
IndexingPolicy,
IpAddressOrRange,
Location,
ManagedServiceIdentity,
ManagedServiceIdentityUserAssignedIdentitiesValue,
MongoDBCollectionCreateUpdateParameters,
MongoDBCollectionGetPropertiesOptions,
MongoDBCollectionGetPropertiesResource,
Expand All @@ -84,27 +81,12 @@ export {
OptionsResource,
PeriodicModeBackupPolicy,
PeriodicModeProperties,
Permission,
PrivateEndpointConnection,
PrivateEndpointProperty,
PrivateLinkResource,
PrivateLinkServiceConnectionStateProperty,
ProxyResource,
Resource,
RestorableDatabaseAccountGetResult,
RestorableLocationResource,
RestorableMongodbCollectionGetResult,
RestorableMongodbCollectionPropertiesResource,
RestorableMongodbDatabaseGetResult,
RestorableMongodbDatabasePropertiesResource,
RestorableSqlContainerGetResult,
RestorableSqlContainerPropertiesResource,
RestorableSqlContainerPropertiesResourceContainer,
RestorableSqlDatabaseGetResult,
RestorableSqlDatabasePropertiesResource,
RestorableSqlDatabasePropertiesResourceDatabase,
RestoreParameters,
RestoreReqeustDatabaseAccountCreateUpdateProperties,
SpatialSpec,
SqlContainerCreateUpdateParameters,
SqlContainerGetPropertiesOptions,
Expand All @@ -116,8 +98,6 @@ export {
SqlDatabaseGetPropertiesResource,
SqlDatabaseGetResults,
SqlDatabaseResource,
SqlRoleAssignmentGetResults,
SqlRoleDefinitionGetResults,
SqlStoredProcedureCreateUpdateParameters,
SqlStoredProcedureGetPropertiesResource,
SqlStoredProcedureGetResults,
Expand All @@ -130,7 +110,6 @@ export {
SqlUserDefinedFunctionGetPropertiesResource,
SqlUserDefinedFunctionGetResults,
SqlUserDefinedFunctionResource,
SystemData,
TableCreateUpdateParameters,
TableGetPropertiesOptions,
TableGetPropertiesResource,
Expand Down
23 changes: 0 additions & 23 deletions sdk/cosmosdb/arm-cosmosdb/src/models/databaseAccountsMappers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,16 +42,13 @@ export {
CreateUpdateOptions,
DatabaseAccountConnectionString,
DatabaseAccountCreateUpdateParameters,
DatabaseAccountCreateUpdateProperties,
DatabaseAccountGetResults,
DatabaseAccountListConnectionStringsResult,
DatabaseAccountListKeysResult,
DatabaseAccountListReadOnlyKeysResult,
DatabaseAccountRegenerateKeyParameters,
DatabaseAccountsListResult,
DatabaseAccountUpdateParameters,
DatabaseRestoreResource,
DefaultRequestDatabaseAccountCreateUpdateProperties,
ErrorResponse,
ExcludedPath,
FailoverPolicies,
Expand All @@ -71,8 +68,6 @@ export {
IndexingPolicy,
IpAddressOrRange,
Location,
ManagedServiceIdentity,
ManagedServiceIdentityUserAssignedIdentitiesValue,
Metric,
MetricAvailability,
MetricDefinition,
Expand Down Expand Up @@ -101,28 +96,13 @@ export {
PercentileMetricValue,
PeriodicModeBackupPolicy,
PeriodicModeProperties,
Permission,
PrivateEndpointConnection,
PrivateEndpointProperty,
PrivateLinkResource,
PrivateLinkServiceConnectionStateProperty,
ProxyResource,
RegionForOnlineOffline,
Resource,
RestorableDatabaseAccountGetResult,
RestorableLocationResource,
RestorableMongodbCollectionGetResult,
RestorableMongodbCollectionPropertiesResource,
RestorableMongodbDatabaseGetResult,
RestorableMongodbDatabasePropertiesResource,
RestorableSqlContainerGetResult,
RestorableSqlContainerPropertiesResource,
RestorableSqlContainerPropertiesResourceContainer,
RestorableSqlDatabaseGetResult,
RestorableSqlDatabasePropertiesResource,
RestorableSqlDatabasePropertiesResourceDatabase,
RestoreParameters,
RestoreReqeustDatabaseAccountCreateUpdateProperties,
SpatialSpec,
SqlContainerCreateUpdateParameters,
SqlContainerGetPropertiesOptions,
Expand All @@ -134,8 +114,6 @@ export {
SqlDatabaseGetPropertiesResource,
SqlDatabaseGetResults,
SqlDatabaseResource,
SqlRoleAssignmentGetResults,
SqlRoleDefinitionGetResults,
SqlStoredProcedureCreateUpdateParameters,
SqlStoredProcedureGetPropertiesResource,
SqlStoredProcedureGetResults,
Expand All @@ -148,7 +126,6 @@ export {
SqlUserDefinedFunctionGetPropertiesResource,
SqlUserDefinedFunctionGetResults,
SqlUserDefinedFunctionResource,
SystemData,
TableCreateUpdateParameters,
TableGetPropertiesOptions,
TableGetPropertiesResource,
Expand Down
25 changes: 2 additions & 23 deletions sdk/cosmosdb/arm-cosmosdb/src/models/gremlinResourcesMappers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,9 @@ export {
CorsPolicy,
CreateUpdateOptions,
DatabaseAccountCreateUpdateParameters,
DatabaseAccountCreateUpdateProperties,
DatabaseAccountGetResults,
DatabaseRestoreResource,
DefaultRequestDatabaseAccountCreateUpdateProperties,
ErrorResponse,
ErrorResponseUpdatedFormat,
ExcludedPath,
FailoverPolicy,
GremlinDatabaseCreateUpdateParameters,
Expand All @@ -64,8 +63,6 @@ export {
IndexingPolicy,
IpAddressOrRange,
Location,
ManagedServiceIdentity,
ManagedServiceIdentityUserAssignedIdentitiesValue,
MongoDBCollectionCreateUpdateParameters,
MongoDBCollectionGetPropertiesOptions,
MongoDBCollectionGetPropertiesResource,
Expand All @@ -84,27 +81,12 @@ export {
OptionsResource,
PeriodicModeBackupPolicy,
PeriodicModeProperties,
Permission,
PrivateEndpointConnection,
PrivateEndpointProperty,
PrivateLinkResource,
PrivateLinkServiceConnectionStateProperty,
ProxyResource,
Resource,
RestorableDatabaseAccountGetResult,
RestorableLocationResource,
RestorableMongodbCollectionGetResult,
RestorableMongodbCollectionPropertiesResource,
RestorableMongodbDatabaseGetResult,
RestorableMongodbDatabasePropertiesResource,
RestorableSqlContainerGetResult,
RestorableSqlContainerPropertiesResource,
RestorableSqlContainerPropertiesResourceContainer,
RestorableSqlDatabaseGetResult,
RestorableSqlDatabasePropertiesResource,
RestorableSqlDatabasePropertiesResourceDatabase,
RestoreParameters,
RestoreReqeustDatabaseAccountCreateUpdateProperties,
SpatialSpec,
SqlContainerCreateUpdateParameters,
SqlContainerGetPropertiesOptions,
Expand All @@ -116,8 +98,6 @@ export {
SqlDatabaseGetPropertiesResource,
SqlDatabaseGetResults,
SqlDatabaseResource,
SqlRoleAssignmentGetResults,
SqlRoleDefinitionGetResults,
SqlStoredProcedureCreateUpdateParameters,
SqlStoredProcedureGetPropertiesResource,
SqlStoredProcedureGetResults,
Expand All @@ -130,7 +110,6 @@ export {
SqlUserDefinedFunctionGetPropertiesResource,
SqlUserDefinedFunctionGetResults,
SqlUserDefinedFunctionResource,
SystemData,
TableCreateUpdateParameters,
TableGetPropertiesOptions,
TableGetPropertiesResource,
Expand Down
Loading

0 comments on commit eca901e

Please sign in to comment.