diff --git a/sdk/cosmosdb/arm-cosmosdb/README.md b/sdk/cosmosdb/arm-cosmosdb/README.md index 22071a204a41..49e09733ceb6 100644 --- a/sdk/cosmosdb/arm-cosmosdb/README.md +++ b/sdk/cosmosdb/arm-cosmosdb/README.md @@ -15,7 +15,7 @@ npm install @azure/arm-cosmosdb ### How to use -#### nodejs - Authentication, client creation and get databaseAccounts as an example written in TypeScript. +#### nodejs - client creation and get databaseAccounts as an example written in TypeScript. ##### Install @azure/ms-rest-nodeauth @@ -26,11 +26,10 @@ npm install @azure/ms-rest-nodeauth@"^3.0.0" ##### Sample code +While the below sample uses the interactive login, other authentication options can be found in the [README.md file of @azure/ms-rest-nodeauth](https://www.npmjs.com/package/@azure/ms-rest-nodeauth) package ```typescript -import * as msRest from "@azure/ms-rest-js"; -import * as msRestAzure from "@azure/ms-rest-azure-js"; -import * as msRestNodeAuth from "@azure/ms-rest-nodeauth"; -import { CosmosDBManagementClient, CosmosDBManagementModels, CosmosDBManagementMappers } from "@azure/arm-cosmosdb"; +const msRestNodeAuth = require("@azure/ms-rest-nodeauth"); +const { CosmosDBManagementClient } = require("@azure/arm-cosmosdb"); const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"]; msRestNodeAuth.interactiveLogin().then((creds) => { diff --git a/sdk/cosmosdb/arm-cosmosdb/rollup.config.js b/sdk/cosmosdb/arm-cosmosdb/rollup.config.js index d73934d96103..97be5c8f16cf 100644 --- a/sdk/cosmosdb/arm-cosmosdb/rollup.config.js +++ b/sdk/cosmosdb/arm-cosmosdb/rollup.config.js @@ -21,8 +21,8 @@ const config = { "@azure/ms-rest-azure-js": "msRestAzure" }, banner: `/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * 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. diff --git a/sdk/cosmosdb/arm-cosmosdb/src/cosmosDBManagementClient.ts b/sdk/cosmosdb/arm-cosmosdb/src/cosmosDBManagementClient.ts index 4440e5e7d65d..d98a7537a30e 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/cosmosDBManagementClient.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/cosmosDBManagementClient.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * 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 @@ -36,8 +35,6 @@ class CosmosDBManagementClient extends CosmosDBManagementClientContext { cassandraResources: operations.CassandraResources; gremlinResources: operations.GremlinResources; notebookWorkspaces: operations.NotebookWorkspaces; - privateLinkResources: operations.PrivateLinkResources; - privateEndpointConnections: operations.PrivateEndpointConnections; /** * Initializes a new instance of the CosmosDBManagementClient class. @@ -66,8 +63,6 @@ class CosmosDBManagementClient extends CosmosDBManagementClientContext { this.cassandraResources = new operations.CassandraResources(this); this.gremlinResources = new operations.GremlinResources(this); this.notebookWorkspaces = new operations.NotebookWorkspaces(this); - this.privateLinkResources = new operations.PrivateLinkResources(this); - this.privateEndpointConnections = new operations.PrivateEndpointConnections(this); } } diff --git a/sdk/cosmosdb/arm-cosmosdb/src/cosmosDBManagementClientContext.ts b/sdk/cosmosdb/arm-cosmosdb/src/cosmosDBManagementClientContext.ts index b836eb829e8f..585371d6a104 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/cosmosDBManagementClientContext.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/cosmosDBManagementClientContext.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * 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 @@ -17,6 +16,7 @@ const packageVersion = "9.1.0"; export class CosmosDBManagementClientContext extends msRestAzure.AzureServiceClient { credentials: msRest.ServiceClientCredentials; + apiVersion?: string; subscriptionId: string; /** @@ -43,6 +43,7 @@ export class CosmosDBManagementClientContext extends msRestAzure.AzureServiceCli super(credentials, options); + this.apiVersion = '2020-09-01'; this.acceptLanguage = 'en-US'; this.longRunningOperationRetryTimeout = 30; this.baseUri = options.baseUri || this.baseUri || "https://management.azure.com"; diff --git a/sdk/cosmosdb/arm-cosmosdb/src/models/cassandraResourcesMappers.ts b/sdk/cosmosdb/arm-cosmosdb/src/models/cassandraResourcesMappers.ts index 82a9fd18b4e2..bb8b038604bd 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/models/cassandraResourcesMappers.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/models/cassandraResourcesMappers.ts @@ -1,12 +1,13 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * 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, @@ -14,6 +15,7 @@ export { AutoscaleSettingsResource, AutoUpgradePolicyResource, AzureEntityResource, + BackupPolicy, BaseResource, Capability, CassandraKeyspaceCreateUpdateParameters, @@ -37,10 +39,13 @@ export { ConflictResolutionPolicy, ConsistencyPolicy, ContainerPartitionKey, + ContinuousModeBackupPolicy, CorsPolicy, CreateUpdateOptions, DatabaseAccountCreateUpdateParameters, DatabaseAccountGetResults, + ErrorResponse, + ErrorResponseUpdatedFormat, ExcludedPath, FailoverPolicy, GremlinDatabaseCreateUpdateParameters, @@ -74,9 +79,10 @@ export { NotebookWorkspace, NotebookWorkspaceCreateUpdateParameters, OptionsResource, + PeriodicModeBackupPolicy, + PeriodicModeProperties, PrivateEndpointConnection, PrivateEndpointProperty, - PrivateLinkResource, PrivateLinkServiceConnectionStateProperty, ProxyResource, Resource, diff --git a/sdk/cosmosdb/arm-cosmosdb/src/models/collectionMappers.ts b/sdk/cosmosdb/arm-cosmosdb/src/models/collectionMappers.ts index 944586670c79..e3c8bc0fe4e1 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/models/collectionMappers.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/models/collectionMappers.ts @@ -1,12 +1,13 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * 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, Metric, MetricAvailability, diff --git a/sdk/cosmosdb/arm-cosmosdb/src/models/collectionPartitionMappers.ts b/sdk/cosmosdb/arm-cosmosdb/src/models/collectionPartitionMappers.ts index 8a50f863252d..9dab38a0efe3 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/models/collectionPartitionMappers.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/models/collectionPartitionMappers.ts @@ -1,12 +1,13 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * 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, Metric, MetricName, diff --git a/sdk/cosmosdb/arm-cosmosdb/src/models/collectionPartitionRegionMappers.ts b/sdk/cosmosdb/arm-cosmosdb/src/models/collectionPartitionRegionMappers.ts index c901f39fec5e..aa909665a156 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/models/collectionPartitionRegionMappers.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/models/collectionPartitionRegionMappers.ts @@ -1,12 +1,13 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * 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, Metric, MetricName, diff --git a/sdk/cosmosdb/arm-cosmosdb/src/models/collectionRegionMappers.ts b/sdk/cosmosdb/arm-cosmosdb/src/models/collectionRegionMappers.ts index 357a24d97955..9720d80ef314 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/models/collectionRegionMappers.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/models/collectionRegionMappers.ts @@ -1,12 +1,13 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * 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, Metric, MetricListResult, diff --git a/sdk/cosmosdb/arm-cosmosdb/src/models/databaseAccountRegionMappers.ts b/sdk/cosmosdb/arm-cosmosdb/src/models/databaseAccountRegionMappers.ts index 357a24d97955..9720d80ef314 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/models/databaseAccountRegionMappers.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/models/databaseAccountRegionMappers.ts @@ -1,12 +1,13 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * 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, Metric, MetricListResult, diff --git a/sdk/cosmosdb/arm-cosmosdb/src/models/databaseAccountsMappers.ts b/sdk/cosmosdb/arm-cosmosdb/src/models/databaseAccountsMappers.ts index e39dae4bd613..db0bb5739b0a 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/models/databaseAccountsMappers.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/models/databaseAccountsMappers.ts @@ -1,12 +1,13 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * 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, @@ -14,6 +15,7 @@ export { AutoscaleSettingsResource, AutoUpgradePolicyResource, AzureEntityResource, + BackupPolicy, BaseResource, Capability, CassandraKeyspaceCreateUpdateParameters, @@ -35,6 +37,7 @@ export { ConflictResolutionPolicy, ConsistencyPolicy, ContainerPartitionKey, + ContinuousModeBackupPolicy, CorsPolicy, CreateUpdateOptions, DatabaseAccountConnectionString, @@ -91,9 +94,10 @@ export { PartitionMetric, PartitionUsage, PercentileMetricValue, + PeriodicModeBackupPolicy, + PeriodicModeProperties, PrivateEndpointConnection, PrivateEndpointProperty, - PrivateLinkResource, PrivateLinkServiceConnectionStateProperty, ProxyResource, RegionForOnlineOffline, diff --git a/sdk/cosmosdb/arm-cosmosdb/src/models/databaseMappers.ts b/sdk/cosmosdb/arm-cosmosdb/src/models/databaseMappers.ts index 944586670c79..e3c8bc0fe4e1 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/models/databaseMappers.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/models/databaseMappers.ts @@ -1,12 +1,13 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * 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, Metric, MetricAvailability, diff --git a/sdk/cosmosdb/arm-cosmosdb/src/models/gremlinResourcesMappers.ts b/sdk/cosmosdb/arm-cosmosdb/src/models/gremlinResourcesMappers.ts index bedc97f02dcf..e1437ed49798 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/models/gremlinResourcesMappers.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/models/gremlinResourcesMappers.ts @@ -1,12 +1,13 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * 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, @@ -14,6 +15,7 @@ export { AutoscaleSettingsResource, AutoUpgradePolicyResource, AzureEntityResource, + BackupPolicy, BaseResource, Capability, CassandraKeyspaceCreateUpdateParameters, @@ -35,10 +37,13 @@ export { ConflictResolutionPolicy, ConsistencyPolicy, ContainerPartitionKey, + ContinuousModeBackupPolicy, CorsPolicy, CreateUpdateOptions, DatabaseAccountCreateUpdateParameters, DatabaseAccountGetResults, + ErrorResponse, + ErrorResponseUpdatedFormat, ExcludedPath, FailoverPolicy, GremlinDatabaseCreateUpdateParameters, @@ -74,9 +79,10 @@ export { NotebookWorkspace, NotebookWorkspaceCreateUpdateParameters, OptionsResource, + PeriodicModeBackupPolicy, + PeriodicModeProperties, PrivateEndpointConnection, PrivateEndpointProperty, - PrivateLinkResource, PrivateLinkServiceConnectionStateProperty, ProxyResource, Resource, diff --git a/sdk/cosmosdb/arm-cosmosdb/src/models/index.ts b/sdk/cosmosdb/arm-cosmosdb/src/models/index.ts index db47da64995a..d238df9b340f 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/models/index.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/models/index.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * 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. @@ -151,18 +151,15 @@ export interface PrivateLinkServiceConnectionStateProperty { * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly actionsRequired?: string; - /** - * The private link service connection description. - */ - description?: string; } /** - * An interface representing Resource. + * Common fields that are returned in the response for all Azure Resource Manager resources + * @summary Resource */ export interface Resource extends BaseResource { /** - * Fully qualified resource Id for the resource. Ex - + * Fully qualified resource ID for the resource. Ex - * /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} * **NOTE: This property will not be serialized. It can only be populated by the server.** */ @@ -173,16 +170,17 @@ export interface Resource extends BaseResource { */ readonly name?: string; /** - * The type of the resource. Ex- Microsoft.Compute/virtualMachines or - * Microsoft.Storage/storageAccounts. + * The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or + * "Microsoft.Storage/storageAccounts" * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly type?: string; } /** - * The resource model definition for a ARM proxy resource. It will have everything other than - * required location and tags + * The resource model definition for a Azure Resource Manager proxy resource. It will not have tags + * and a location + * @summary Proxy Resource */ export interface ProxyResource extends Resource { } @@ -199,14 +197,6 @@ export interface PrivateEndpointConnection extends ProxyResource { * Connection State of the Private Endpoint Connection. */ privateLinkServiceConnectionState?: PrivateLinkServiceConnectionStateProperty; - /** - * Group id of the private endpoint. - */ - groupId?: string; - /** - * Provisioning state of the private endpoint. - */ - provisioningState?: string; } /** @@ -219,6 +209,21 @@ export interface ApiProperties { serverVersion?: ServerVersion; } +/** + * Contains the possible cases for BackupPolicy. + */ +export type BackupPolicyUnion = BackupPolicy | PeriodicModeBackupPolicy | ContinuousModeBackupPolicy; + +/** + * The object representing the policy for taking backups on an account. + */ +export interface BackupPolicy { + /** + * Polymorphic Discriminator + */ + type: "BackupPolicy"; +} + /** * The CORS policy for the Cosmos DB database account. */ @@ -384,6 +389,10 @@ export interface DatabaseAccountGetResults extends ARMResourceProperties { * 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. */ @@ -407,7 +416,7 @@ export interface SqlDatabaseGetPropertiesResource { * 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?: any; + readonly _ts?: number; /** * A system generated property representing the resource etag required for optimistic concurrency * control. @@ -665,7 +674,7 @@ export interface SqlContainerGetPropertiesResource { * 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?: any; + readonly _ts?: number; /** * A system generated property representing the resource etag required for optimistic concurrency * control. @@ -709,7 +718,7 @@ export interface SqlStoredProcedureGetPropertiesResource { * 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?: any; + readonly _ts?: number; /** * A system generated property representing the resource etag required for optimistic concurrency * control. @@ -746,7 +755,7 @@ export interface SqlUserDefinedFunctionGetPropertiesResource { * 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?: any; + readonly _ts?: number; /** * A system generated property representing the resource etag required for optimistic concurrency * control. @@ -792,7 +801,7 @@ export interface SqlTriggerGetPropertiesResource { * 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?: any; + readonly _ts?: number; /** * A system generated property representing the resource etag required for optimistic concurrency * control. @@ -825,7 +834,7 @@ export interface MongoDBDatabaseGetPropertiesResource { * 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?: any; + readonly _ts?: number; /** * A system generated property representing the resource etag required for optimistic concurrency * control. @@ -915,7 +924,7 @@ export interface MongoDBCollectionGetPropertiesResource { * 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?: any; + readonly _ts?: number; /** * A system generated property representing the resource etag required for optimistic concurrency * control. @@ -955,7 +964,7 @@ export interface TableGetPropertiesResource { * 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?: any; + readonly _ts?: number; /** * A system generated property representing the resource etag required for optimistic concurrency * control. @@ -995,7 +1004,7 @@ export interface CassandraKeyspaceGetPropertiesResource { * 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?: any; + readonly _ts?: number; /** * A system generated property representing the resource etag required for optimistic concurrency * control. @@ -1103,7 +1112,7 @@ export interface CassandraTableGetPropertiesResource { * 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?: any; + readonly _ts?: number; /** * A system generated property representing the resource etag required for optimistic concurrency * control. @@ -1143,7 +1152,7 @@ export interface GremlinDatabaseGetPropertiesResource { * 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?: any; + readonly _ts?: number; /** * A system generated property representing the resource etag required for optimistic concurrency * control. @@ -1206,7 +1215,7 @@ export interface GremlinGraphGetPropertiesResource { * 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?: any; + readonly _ts?: number; /** * A system generated property representing the resource etag required for optimistic concurrency * control. @@ -1243,6 +1252,13 @@ 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. */ @@ -1299,7 +1315,7 @@ export interface ExtendedResourceProperties { * 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?: any; + readonly _ts?: number; /** * A system generated property representing the resource etag required for optimistic concurrency * control. @@ -1386,7 +1402,7 @@ export interface ThroughputSettingsGetPropertiesResource { * 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?: any; + readonly _ts?: number; /** * A system generated property representing the resource etag required for optimistic concurrency * control. @@ -1481,6 +1497,10 @@ export interface DatabaseAccountCreateUpdateParameters extends ARMResourceProper * 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. */ @@ -1565,6 +1585,10 @@ export interface DatabaseAccountUpdateParameters { * 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. */ @@ -1724,7 +1748,7 @@ export interface SqlDatabaseCreateUpdateParameters extends ARMResourceProperties * A key-value pair of options to be applied for the request. This corresponds to the headers * sent with the request. */ - options: CreateUpdateOptions; + options?: CreateUpdateOptions; } /** @@ -1776,7 +1800,7 @@ export interface SqlContainerCreateUpdateParameters extends ARMResourcePropertie * A key-value pair of options to be applied for the request. This corresponds to the headers * sent with the request. */ - options: CreateUpdateOptions; + options?: CreateUpdateOptions; } /** @@ -1805,7 +1829,7 @@ export interface SqlStoredProcedureCreateUpdateParameters extends ARMResourcePro * A key-value pair of options to be applied for the request. This corresponds to the headers * sent with the request. */ - options: CreateUpdateOptions; + options?: CreateUpdateOptions; } /** @@ -1834,7 +1858,7 @@ export interface SqlUserDefinedFunctionCreateUpdateParameters extends ARMResourc * A key-value pair of options to be applied for the request. This corresponds to the headers * sent with the request. */ - options: CreateUpdateOptions; + options?: CreateUpdateOptions; } /** @@ -1872,7 +1896,7 @@ export interface SqlTriggerCreateUpdateParameters extends ARMResourceProperties * A key-value pair of options to be applied for the request. This corresponds to the headers * sent with the request. */ - options: CreateUpdateOptions; + options?: CreateUpdateOptions; } /** @@ -1897,7 +1921,7 @@ export interface MongoDBDatabaseCreateUpdateParameters extends ARMResourceProper * A key-value pair of options to be applied for the request. This corresponds to the headers * sent with the request. */ - options: CreateUpdateOptions; + options?: CreateUpdateOptions; } /** @@ -1934,7 +1958,7 @@ export interface MongoDBCollectionCreateUpdateParameters extends ARMResourceProp * A key-value pair of options to be applied for the request. This corresponds to the headers * sent with the request. */ - options: CreateUpdateOptions; + options?: CreateUpdateOptions; } /** @@ -1959,7 +1983,7 @@ export interface TableCreateUpdateParameters extends ARMResourceProperties { * A key-value pair of options to be applied for the request. This corresponds to the headers * sent with the request. */ - options: CreateUpdateOptions; + options?: CreateUpdateOptions; } /** @@ -1984,7 +2008,7 @@ export interface CassandraKeyspaceCreateUpdateParameters extends ARMResourceProp * A key-value pair of options to be applied for the request. This corresponds to the headers * sent with the request. */ - options: CreateUpdateOptions; + options?: CreateUpdateOptions; } /** @@ -2021,7 +2045,7 @@ export interface CassandraTableCreateUpdateParameters extends ARMResourcePropert * A key-value pair of options to be applied for the request. This corresponds to the headers * sent with the request. */ - options: CreateUpdateOptions; + options?: CreateUpdateOptions; } /** @@ -2046,7 +2070,7 @@ export interface GremlinDatabaseCreateUpdateParameters extends ARMResourceProper * A key-value pair of options to be applied for the request. This corresponds to the headers * sent with the request. */ - options: CreateUpdateOptions; + options?: CreateUpdateOptions; } /** @@ -2094,7 +2118,7 @@ export interface GremlinGraphCreateUpdateParameters extends ARMResourcePropertie * A key-value pair of options to be applied for the request. This corresponds to the headers * sent with the request. */ - options: CreateUpdateOptions; + options?: CreateUpdateOptions; } /** @@ -2410,7 +2434,47 @@ export interface PartitionMetric extends Metric { } /** - * The resource model definition for a ARM tracked top level resource + * Configuration values for periodic mode backup + */ +export interface PeriodicModeProperties { + /** + * An integer representing the interval in minutes between two backups + */ + backupIntervalInMinutes?: number; + /** + * An integer representing the time (in hours) that each backup is retained + */ + backupRetentionIntervalInHours?: number; +} + +/** + * The object representing periodic mode backup policy. + */ +export interface PeriodicModeBackupPolicy { + /** + * Polymorphic Discriminator + */ + type: "Periodic"; + /** + * Configuration values for periodic mode backup + */ + periodicModeProperties?: PeriodicModeProperties; +} + +/** + * The object representing continuous mode backup policy. + */ +export interface ContinuousModeBackupPolicy { + /** + * Polymorphic Discriminator + */ + type: "Continuous"; +} + +/** + * 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 { /** @@ -2424,7 +2488,8 @@ export interface TrackedResource extends Resource { } /** - * The resource model definition for a Azure Resource Manager resource with an etag. + * The resource model definition for an Azure Resource Manager resource with an etag. + * @summary Entity Resource */ export interface AzureEntityResource extends Resource { /** @@ -2473,27 +2538,6 @@ export interface NotebookWorkspaceConnectionInfoResult { readonly notebookServerEndpoint?: string; } -/** - * A private link resource - */ -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[]; -} - /** * Optional Parameters. */ @@ -2718,22 +2762,6 @@ export interface GremlinGraphListResult extends Array { export interface NotebookWorkspaceListResult 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' @@ -2879,6 +2907,14 @@ export type UnitType = 'Count' | 'Bytes' | 'Seconds' | 'Percent' | 'CountPerSeco */ 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'; + /** * Contains response data for the get operation. */ @@ -5863,123 +5899,3 @@ export type NotebookWorkspacesBeginCreateOrUpdateResponse = NotebookWorkspace & parsedBody: NotebookWorkspace; }; }; - -/** - * Contains response data for the listByDatabaseAccount operation. - */ -export type PrivateLinkResourcesListByDatabaseAccountResponse = PrivateLinkResourceListResult & { - /** - * 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: PrivateLinkResourceListResult; - }; -}; - -/** - * Contains response data for the get operation. - */ -export type PrivateLinkResourcesGetResponse = PrivateLinkResource & { - /** - * 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: PrivateLinkResource; - }; -}; - -/** - * Contains response data for the listByDatabaseAccount operation. - */ -export type PrivateEndpointConnectionsListByDatabaseAccountResponse = PrivateEndpointConnectionListResult & { - /** - * 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: PrivateEndpointConnectionListResult; - }; -}; - -/** - * Contains response data for the get operation. - */ -export type PrivateEndpointConnectionsGetResponse = PrivateEndpointConnection & { - /** - * 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: PrivateEndpointConnection; - }; -}; - -/** - * Contains response data for the createOrUpdate operation. - */ -export type PrivateEndpointConnectionsCreateOrUpdateResponse = PrivateEndpointConnection & { - /** - * 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: PrivateEndpointConnection; - }; -}; - -/** - * Contains response data for the beginCreateOrUpdate operation. - */ -export type PrivateEndpointConnectionsBeginCreateOrUpdateResponse = PrivateEndpointConnection & { - /** - * 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: PrivateEndpointConnection; - }; -}; diff --git a/sdk/cosmosdb/arm-cosmosdb/src/models/mappers.ts b/sdk/cosmosdb/arm-cosmosdb/src/models/mappers.ts index ca81adfe92c1..cc9dbb0b1f05 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/models/mappers.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/models/mappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * 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. @@ -227,12 +227,6 @@ export const PrivateLinkServiceConnectionStateProperty: msRest.CompositeMapper = type: { name: "String" } - }, - description: { - serializedName: "description", - type: { - name: "String" - } } } } @@ -300,18 +294,6 @@ export const PrivateEndpointConnection: msRest.CompositeMapper = { name: "Composite", className: "PrivateLinkServiceConnectionStateProperty" } - }, - groupId: { - serializedName: "properties.groupId", - type: { - name: "String" - } - }, - provisioningState: { - serializedName: "properties.provisioningState", - type: { - name: "String" - } } } } @@ -333,6 +315,28 @@ export const ApiProperties: msRest.CompositeMapper = { } }; +export const BackupPolicy: msRest.CompositeMapper = { + serializedName: "BackupPolicy", + type: { + name: "Composite", + polymorphicDiscriminator: { + serializedName: "type", + clientName: "type" + }, + uberParent: "BackupPolicy", + className: "BackupPolicy", + modelProperties: { + type: { + required: true, + serializedName: "type", + type: { + name: "String" + } + } + } + } +}; + export const CorsPolicy: msRest.CompositeMapper = { serializedName: "CorsPolicy", type: { @@ -638,6 +642,13 @@ export const DatabaseAccountGetResults: msRest.CompositeMapper = { name: "Boolean" } }, + backupPolicy: { + serializedName: "properties.backupPolicy", + type: { + name: "Composite", + className: "BackupPolicy" + } + }, cors: { serializedName: "properties.cors", type: { @@ -678,7 +689,7 @@ export const SqlDatabaseGetPropertiesResource: msRest.CompositeMapper = { readOnly: true, serializedName: "_ts", type: { - name: "Object" + name: "Number" } }, _etag: { @@ -1136,7 +1147,7 @@ export const SqlContainerGetPropertiesResource: msRest.CompositeMapper = { readOnly: true, serializedName: "_ts", type: { - name: "Object" + name: "Number" } }, _etag: { @@ -1216,7 +1227,7 @@ export const SqlStoredProcedureGetPropertiesResource: msRest.CompositeMapper = { readOnly: true, serializedName: "_ts", type: { - name: "Object" + name: "Number" } }, _etag: { @@ -1278,7 +1289,7 @@ export const SqlUserDefinedFunctionGetPropertiesResource: msRest.CompositeMapper readOnly: true, serializedName: "_ts", type: { - name: "Object" + name: "Number" } }, _etag: { @@ -1352,7 +1363,7 @@ export const SqlTriggerGetPropertiesResource: msRest.CompositeMapper = { readOnly: true, serializedName: "_ts", type: { - name: "Object" + name: "Number" } }, _etag: { @@ -1408,7 +1419,7 @@ export const MongoDBDatabaseGetPropertiesResource: msRest.CompositeMapper = { readOnly: true, serializedName: "_ts", type: { - name: "Object" + name: "Number" } }, _etag: { @@ -1578,7 +1589,7 @@ export const MongoDBCollectionGetPropertiesResource: msRest.CompositeMapper = { readOnly: true, serializedName: "_ts", type: { - name: "Object" + name: "Number" } }, _etag: { @@ -1652,7 +1663,7 @@ export const TableGetPropertiesResource: msRest.CompositeMapper = { readOnly: true, serializedName: "_ts", type: { - name: "Object" + name: "Number" } }, _etag: { @@ -1726,7 +1737,7 @@ export const CassandraKeyspaceGetPropertiesResource: msRest.CompositeMapper = { readOnly: true, serializedName: "_ts", type: { - name: "Object" + name: "Number" } }, _etag: { @@ -1925,7 +1936,7 @@ export const CassandraTableGetPropertiesResource: msRest.CompositeMapper = { readOnly: true, serializedName: "_ts", type: { - name: "Object" + name: "Number" } }, _etag: { @@ -1999,7 +2010,7 @@ export const GremlinDatabaseGetPropertiesResource: msRest.CompositeMapper = { readOnly: true, serializedName: "_ts", type: { - name: "Object" + name: "Number" } }, _etag: { @@ -2107,7 +2118,7 @@ export const GremlinGraphGetPropertiesResource: msRest.CompositeMapper = { readOnly: true, serializedName: "_ts", type: { - name: "Object" + name: "Number" } }, _etag: { @@ -2179,6 +2190,23 @@ 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: { @@ -2267,7 +2295,7 @@ export const ExtendedResourceProperties: msRest.CompositeMapper = { readOnly: true, serializedName: "_ts", type: { - name: "Object" + name: "Number" } }, _etag: { @@ -2395,7 +2423,7 @@ export const ThroughputSettingsGetPropertiesResource: msRest.CompositeMapper = { readOnly: true, serializedName: "_ts", type: { - name: "Object" + name: "Number" } }, _etag: { @@ -2573,6 +2601,13 @@ export const DatabaseAccountCreateUpdateParameters: msRest.CompositeMapper = { name: "Boolean" } }, + backupPolicy: { + serializedName: "properties.backupPolicy", + type: { + name: "Composite", + className: "BackupPolicy" + } + }, cors: { serializedName: "properties.cors", type: { @@ -2734,6 +2769,13 @@ export const DatabaseAccountUpdateParameters: msRest.CompositeMapper = { name: "Boolean" } }, + backupPolicy: { + serializedName: "properties.backupPolicy", + type: { + name: "Composite", + className: "BackupPolicy" + } + }, cors: { serializedName: "properties.cors", type: { @@ -2990,7 +3032,6 @@ export const SqlDatabaseCreateUpdateParameters: msRest.CompositeMapper = { } }, options: { - required: true, serializedName: "properties.options", type: { name: "Composite", @@ -3074,7 +3115,6 @@ export const SqlContainerCreateUpdateParameters: msRest.CompositeMapper = { } }, options: { - required: true, serializedName: "properties.options", type: { name: "Composite", @@ -3124,7 +3164,6 @@ export const SqlStoredProcedureCreateUpdateParameters: msRest.CompositeMapper = } }, options: { - required: true, serializedName: "properties.options", type: { name: "Composite", @@ -3174,7 +3213,6 @@ export const SqlUserDefinedFunctionCreateUpdateParameters: msRest.CompositeMappe } }, options: { - required: true, serializedName: "properties.options", type: { name: "Composite", @@ -3236,7 +3274,6 @@ export const SqlTriggerCreateUpdateParameters: msRest.CompositeMapper = { } }, options: { - required: true, serializedName: "properties.options", type: { name: "Composite", @@ -3280,7 +3317,6 @@ export const MongoDBDatabaseCreateUpdateParameters: msRest.CompositeMapper = { } }, options: { - required: true, serializedName: "properties.options", type: { name: "Composite", @@ -3353,7 +3389,6 @@ export const MongoDBCollectionCreateUpdateParameters: msRest.CompositeMapper = { } }, options: { - required: true, serializedName: "properties.options", type: { name: "Composite", @@ -3397,7 +3432,6 @@ export const TableCreateUpdateParameters: msRest.CompositeMapper = { } }, options: { - required: true, serializedName: "properties.options", type: { name: "Composite", @@ -3441,7 +3475,6 @@ export const CassandraKeyspaceCreateUpdateParameters: msRest.CompositeMapper = { } }, options: { - required: true, serializedName: "properties.options", type: { name: "Composite", @@ -3504,7 +3537,6 @@ export const CassandraTableCreateUpdateParameters: msRest.CompositeMapper = { } }, options: { - required: true, serializedName: "properties.options", type: { name: "Composite", @@ -3548,7 +3580,6 @@ export const GremlinDatabaseCreateUpdateParameters: msRest.CompositeMapper = { } }, options: { - required: true, serializedName: "properties.options", type: { name: "Composite", @@ -3626,7 +3657,6 @@ export const GremlinGraphCreateUpdateParameters: msRest.CompositeMapper = { } }, options: { - required: true, serializedName: "properties.options", type: { name: "Composite", @@ -4116,6 +4146,67 @@ export const PartitionMetric: msRest.CompositeMapper = { } }; +export const PeriodicModeProperties: msRest.CompositeMapper = { + serializedName: "PeriodicModeProperties", + type: { + name: "Composite", + className: "PeriodicModeProperties", + modelProperties: { + backupIntervalInMinutes: { + serializedName: "backupIntervalInMinutes", + constraints: { + InclusiveMinimum: 0 + }, + type: { + name: "Number" + } + }, + backupRetentionIntervalInHours: { + serializedName: "backupRetentionIntervalInHours", + constraints: { + InclusiveMinimum: 0 + }, + type: { + name: "Number" + } + } + } + } +}; + +export const PeriodicModeBackupPolicy: msRest.CompositeMapper = { + serializedName: "Periodic", + type: { + name: "Composite", + polymorphicDiscriminator: BackupPolicy.type.polymorphicDiscriminator, + uberParent: "BackupPolicy", + className: "PeriodicModeBackupPolicy", + modelProperties: { + ...BackupPolicy.type.modelProperties, + periodicModeProperties: { + serializedName: "periodicModeProperties", + type: { + name: "Composite", + className: "PeriodicModeProperties" + } + } + } + } +}; + +export const ContinuousModeBackupPolicy: msRest.CompositeMapper = { + serializedName: "Continuous", + type: { + name: "Composite", + polymorphicDiscriminator: BackupPolicy.type.polymorphicDiscriminator, + uberParent: "BackupPolicy", + className: "ContinuousModeBackupPolicy", + modelProperties: { + ...BackupPolicy.type.modelProperties + } + } +}; + export const TrackedResource: msRest.CompositeMapper = { serializedName: "TrackedResource", type: { @@ -4223,48 +4314,6 @@ export const NotebookWorkspaceConnectionInfoResult: msRest.CompositeMapper = { } }; -export const PrivateLinkResource: msRest.CompositeMapper = { - serializedName: "PrivateLinkResource", - type: { - name: "Composite", - className: "PrivateLinkResource", - modelProperties: { - ...ARMProxyResource.type.modelProperties, - groupId: { - readOnly: true, - serializedName: "properties.groupId", - type: { - name: "String" - } - }, - requiredMembers: { - readOnly: true, - serializedName: "properties.requiredMembers", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - requiredZoneNames: { - readOnly: true, - serializedName: "properties.requiredZoneNames", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - } - } - } -}; - export const DatabaseAccountsListResult: msRest.CompositeMapper = { serializedName: "DatabaseAccountsListResult", type: { @@ -4752,46 +4801,9 @@ export const NotebookWorkspaceListResult: msRest.CompositeMapper = { } }; -export const PrivateLinkResourceListResult: msRest.CompositeMapper = { - serializedName: "PrivateLinkResourceListResult", - type: { - name: "Composite", - className: "PrivateLinkResourceListResult", - modelProperties: { - value: { - serializedName: "", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "PrivateLinkResource" - } - } - } - } - } - } -}; +export const discriminators = { + 'BackupPolicy' : BackupPolicy, + 'BackupPolicy.Periodic' : PeriodicModeBackupPolicy, + 'BackupPolicy.Continuous' : ContinuousModeBackupPolicy -export const PrivateEndpointConnectionListResult: msRest.CompositeMapper = { - serializedName: "PrivateEndpointConnectionListResult", - type: { - name: "Composite", - className: "PrivateEndpointConnectionListResult", - modelProperties: { - value: { - serializedName: "", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "PrivateEndpointConnection" - } - } - } - } - } - } }; diff --git a/sdk/cosmosdb/arm-cosmosdb/src/models/mongoDBResourcesMappers.ts b/sdk/cosmosdb/arm-cosmosdb/src/models/mongoDBResourcesMappers.ts index 891bde7252db..92ea4a56ce75 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/models/mongoDBResourcesMappers.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/models/mongoDBResourcesMappers.ts @@ -1,12 +1,13 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * 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, @@ -14,6 +15,7 @@ export { AutoscaleSettingsResource, AutoUpgradePolicyResource, AzureEntityResource, + BackupPolicy, BaseResource, Capability, CassandraKeyspaceCreateUpdateParameters, @@ -35,10 +37,13 @@ export { ConflictResolutionPolicy, ConsistencyPolicy, ContainerPartitionKey, + ContinuousModeBackupPolicy, CorsPolicy, CreateUpdateOptions, DatabaseAccountCreateUpdateParameters, DatabaseAccountGetResults, + ErrorResponse, + ErrorResponseUpdatedFormat, ExcludedPath, FailoverPolicy, GremlinDatabaseCreateUpdateParameters, @@ -74,9 +79,10 @@ export { NotebookWorkspace, NotebookWorkspaceCreateUpdateParameters, OptionsResource, + PeriodicModeBackupPolicy, + PeriodicModeProperties, PrivateEndpointConnection, PrivateEndpointProperty, - PrivateLinkResource, PrivateLinkServiceConnectionStateProperty, ProxyResource, Resource, diff --git a/sdk/cosmosdb/arm-cosmosdb/src/models/notebookWorkspacesMappers.ts b/sdk/cosmosdb/arm-cosmosdb/src/models/notebookWorkspacesMappers.ts index 30281fd37a99..e69925639a5e 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/models/notebookWorkspacesMappers.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/models/notebookWorkspacesMappers.ts @@ -1,12 +1,13 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * 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, @@ -14,6 +15,7 @@ export { AutoscaleSettingsResource, AutoUpgradePolicyResource, AzureEntityResource, + BackupPolicy, BaseResource, Capability, CassandraKeyspaceCreateUpdateParameters, @@ -34,6 +36,7 @@ export { ConflictResolutionPolicy, ConsistencyPolicy, ContainerPartitionKey, + ContinuousModeBackupPolicy, CorsPolicy, CreateUpdateOptions, DatabaseAccountCreateUpdateParameters, @@ -74,9 +77,10 @@ export { NotebookWorkspaceCreateUpdateParameters, NotebookWorkspaceListResult, OptionsResource, + PeriodicModeBackupPolicy, + PeriodicModeProperties, PrivateEndpointConnection, PrivateEndpointProperty, - PrivateLinkResource, PrivateLinkServiceConnectionStateProperty, ProxyResource, Resource, diff --git a/sdk/cosmosdb/arm-cosmosdb/src/models/operationsMappers.ts b/sdk/cosmosdb/arm-cosmosdb/src/models/operationsMappers.ts index 689688180be7..1cf01eeef205 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/models/operationsMappers.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/models/operationsMappers.ts @@ -1,12 +1,13 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * 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, Operation, OperationDisplay, diff --git a/sdk/cosmosdb/arm-cosmosdb/src/models/parameters.ts b/sdk/cosmosdb/arm-cosmosdb/src/models/parameters.ts index cb68a8368400..b1e6dfd6de89 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/models/parameters.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/models/parameters.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * 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 @@ -35,28 +34,11 @@ export const accountName: msRest.OperationURLParameter = { } } }; -export const apiVersion0: msRest.OperationQueryParameter = { +export const apiVersion: msRest.OperationQueryParameter = { parameterPath: "apiVersion", mapper: { required: true, - isConstant: true, - serializedName: "api-version", - defaultValue: '2020-04-01', - constraints: { - MinLength: 1 - }, - type: { - name: "String" - } - } -}; -export const apiVersion1: msRest.OperationQueryParameter = { - parameterPath: "apiVersion", - mapper: { - required: true, - isConstant: true, serializedName: "api-version", - defaultValue: '2019-08-01-preview', constraints: { MinLength: 1 }, @@ -147,16 +129,6 @@ export const graphName: msRest.OperationURLParameter = { } } }; -export const groupName: msRest.OperationURLParameter = { - parameterPath: "groupName", - mapper: { - required: true, - serializedName: "groupName", - type: { - name: "String" - } - } -}; export const keyspaceName: msRest.OperationURLParameter = { parameterPath: "keyspaceName", mapper: { @@ -200,16 +172,6 @@ export const partitionKeyRangeId: msRest.OperationURLParameter = { } } }; -export const privateEndpointConnectionName: msRest.OperationURLParameter = { - parameterPath: "privateEndpointConnectionName", - mapper: { - required: true, - serializedName: "privateEndpointConnectionName", - type: { - name: "String" - } - } -}; export const region: msRest.OperationURLParameter = { parameterPath: "region", mapper: { diff --git a/sdk/cosmosdb/arm-cosmosdb/src/models/partitionKeyRangeIdMappers.ts b/sdk/cosmosdb/arm-cosmosdb/src/models/partitionKeyRangeIdMappers.ts index c901f39fec5e..aa909665a156 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/models/partitionKeyRangeIdMappers.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/models/partitionKeyRangeIdMappers.ts @@ -1,12 +1,13 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * 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, Metric, MetricName, diff --git a/sdk/cosmosdb/arm-cosmosdb/src/models/partitionKeyRangeIdRegionMappers.ts b/sdk/cosmosdb/arm-cosmosdb/src/models/partitionKeyRangeIdRegionMappers.ts index c901f39fec5e..aa909665a156 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/models/partitionKeyRangeIdRegionMappers.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/models/partitionKeyRangeIdRegionMappers.ts @@ -1,12 +1,13 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * 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, Metric, MetricName, diff --git a/sdk/cosmosdb/arm-cosmosdb/src/models/percentileMappers.ts b/sdk/cosmosdb/arm-cosmosdb/src/models/percentileMappers.ts index 969936d1541a..6a74068ca1a5 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/models/percentileMappers.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/models/percentileMappers.ts @@ -1,12 +1,13 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * 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, MetricName, MetricValue, diff --git a/sdk/cosmosdb/arm-cosmosdb/src/models/percentileSourceTargetMappers.ts b/sdk/cosmosdb/arm-cosmosdb/src/models/percentileSourceTargetMappers.ts index 969936d1541a..6a74068ca1a5 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/models/percentileSourceTargetMappers.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/models/percentileSourceTargetMappers.ts @@ -1,12 +1,13 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * 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, MetricName, MetricValue, diff --git a/sdk/cosmosdb/arm-cosmosdb/src/models/percentileTargetMappers.ts b/sdk/cosmosdb/arm-cosmosdb/src/models/percentileTargetMappers.ts index 969936d1541a..6a74068ca1a5 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/models/percentileTargetMappers.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/models/percentileTargetMappers.ts @@ -1,12 +1,13 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * 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, MetricName, MetricValue, diff --git a/sdk/cosmosdb/arm-cosmosdb/src/models/sqlResourcesMappers.ts b/sdk/cosmosdb/arm-cosmosdb/src/models/sqlResourcesMappers.ts index 03d52a4ee24d..64f2a61df0fe 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/models/sqlResourcesMappers.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/models/sqlResourcesMappers.ts @@ -1,12 +1,13 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * 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, @@ -14,6 +15,7 @@ export { AutoscaleSettingsResource, AutoUpgradePolicyResource, AzureEntityResource, + BackupPolicy, BaseResource, Capability, CassandraKeyspaceCreateUpdateParameters, @@ -35,10 +37,13 @@ export { ConflictResolutionPolicy, ConsistencyPolicy, ContainerPartitionKey, + ContinuousModeBackupPolicy, CorsPolicy, CreateUpdateOptions, DatabaseAccountCreateUpdateParameters, DatabaseAccountGetResults, + ErrorResponse, + ErrorResponseUpdatedFormat, ExcludedPath, FailoverPolicy, GremlinDatabaseCreateUpdateParameters, @@ -72,9 +77,10 @@ export { NotebookWorkspace, NotebookWorkspaceCreateUpdateParameters, OptionsResource, + PeriodicModeBackupPolicy, + PeriodicModeProperties, PrivateEndpointConnection, PrivateEndpointProperty, - PrivateLinkResource, PrivateLinkServiceConnectionStateProperty, ProxyResource, Resource, diff --git a/sdk/cosmosdb/arm-cosmosdb/src/models/tableResourcesMappers.ts b/sdk/cosmosdb/arm-cosmosdb/src/models/tableResourcesMappers.ts index 7856ac56e806..10bb8f8dcf5b 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/models/tableResourcesMappers.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/models/tableResourcesMappers.ts @@ -1,12 +1,13 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * 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, @@ -14,6 +15,7 @@ export { AutoscaleSettingsResource, AutoUpgradePolicyResource, AzureEntityResource, + BackupPolicy, BaseResource, Capability, CassandraKeyspaceCreateUpdateParameters, @@ -35,10 +37,13 @@ export { ConflictResolutionPolicy, ConsistencyPolicy, ContainerPartitionKey, + ContinuousModeBackupPolicy, CorsPolicy, CreateUpdateOptions, DatabaseAccountCreateUpdateParameters, DatabaseAccountGetResults, + ErrorResponse, + ErrorResponseUpdatedFormat, ExcludedPath, FailoverPolicy, GremlinDatabaseCreateUpdateParameters, @@ -72,9 +77,10 @@ export { NotebookWorkspace, NotebookWorkspaceCreateUpdateParameters, OptionsResource, + PeriodicModeBackupPolicy, + PeriodicModeProperties, PrivateEndpointConnection, PrivateEndpointProperty, - PrivateLinkResource, PrivateLinkServiceConnectionStateProperty, ProxyResource, Resource, diff --git a/sdk/cosmosdb/arm-cosmosdb/src/operations/cassandraResources.ts b/sdk/cosmosdb/arm-cosmosdb/src/operations/cassandraResources.ts index 1d0d92ad1cad..c00e66340523 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/operations/cassandraResources.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/operations/cassandraResources.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * 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 @@ -627,7 +626,7 @@ const listCassandraKeyspacesOperationSpec: msRest.OperationSpec = { Parameters.accountName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -653,7 +652,7 @@ const getCassandraKeyspaceOperationSpec: msRest.OperationSpec = { Parameters.keyspaceName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -679,7 +678,7 @@ const getCassandraKeyspaceThroughputOperationSpec: msRest.OperationSpec = { Parameters.keyspaceName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -705,7 +704,7 @@ const listCassandraTablesOperationSpec: msRest.OperationSpec = { Parameters.keyspaceName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -732,7 +731,7 @@ const getCassandraTableOperationSpec: msRest.OperationSpec = { Parameters.tableName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -759,7 +758,7 @@ const getCassandraTableThroughputOperationSpec: msRest.OperationSpec = { Parameters.tableName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -785,7 +784,7 @@ const beginCreateUpdateCassandraKeyspaceOperationSpec: msRest.OperationSpec = { Parameters.keyspaceName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -819,7 +818,7 @@ const beginDeleteCassandraKeyspaceOperationSpec: msRest.OperationSpec = { Parameters.keyspaceName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -844,7 +843,7 @@ const beginUpdateCassandraKeyspaceThroughputOperationSpec: msRest.OperationSpec Parameters.keyspaceName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -878,7 +877,7 @@ const beginMigrateCassandraKeyspaceToAutoscaleOperationSpec: msRest.OperationSpe Parameters.keyspaceName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -889,7 +888,7 @@ const beginMigrateCassandraKeyspaceToAutoscaleOperationSpec: msRest.OperationSpe }, 202: {}, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponseUpdatedFormat } }, serializer @@ -905,7 +904,7 @@ const beginMigrateCassandraKeyspaceToManualThroughputOperationSpec: msRest.Opera Parameters.keyspaceName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -916,7 +915,7 @@ const beginMigrateCassandraKeyspaceToManualThroughputOperationSpec: msRest.Opera }, 202: {}, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponseUpdatedFormat } }, serializer @@ -933,7 +932,7 @@ const beginCreateUpdateCassandraTableOperationSpec: msRest.OperationSpec = { Parameters.tableName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -968,7 +967,7 @@ const beginDeleteCassandraTableOperationSpec: msRest.OperationSpec = { Parameters.tableName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -994,7 +993,7 @@ const beginUpdateCassandraTableThroughputOperationSpec: msRest.OperationSpec = { Parameters.tableName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -1029,7 +1028,7 @@ const beginMigrateCassandraTableToAutoscaleOperationSpec: msRest.OperationSpec = Parameters.tableName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -1040,7 +1039,7 @@ const beginMigrateCassandraTableToAutoscaleOperationSpec: msRest.OperationSpec = }, 202: {}, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponseUpdatedFormat } }, serializer @@ -1057,7 +1056,7 @@ const beginMigrateCassandraTableToManualThroughputOperationSpec: msRest.Operatio Parameters.tableName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -1068,7 +1067,7 @@ const beginMigrateCassandraTableToManualThroughputOperationSpec: msRest.Operatio }, 202: {}, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponseUpdatedFormat } }, serializer diff --git a/sdk/cosmosdb/arm-cosmosdb/src/operations/collection.ts b/sdk/cosmosdb/arm-cosmosdb/src/operations/collection.ts index 556de099ad8a..eff2a26bbaba 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/operations/collection.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/operations/collection.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * 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 @@ -171,7 +170,7 @@ const listMetricsOperationSpec: msRest.OperationSpec = { Parameters.collectionRid ], queryParameters: [ - Parameters.apiVersion0, + Parameters.apiVersion, Parameters.filter0 ], headerParameters: [ @@ -199,7 +198,7 @@ const listUsagesOperationSpec: msRest.OperationSpec = { Parameters.collectionRid ], queryParameters: [ - Parameters.apiVersion0, + Parameters.apiVersion, Parameters.filter1 ], headerParameters: [ @@ -227,7 +226,7 @@ const listMetricDefinitionsOperationSpec: msRest.OperationSpec = { Parameters.collectionRid ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage diff --git a/sdk/cosmosdb/arm-cosmosdb/src/operations/collectionPartition.ts b/sdk/cosmosdb/arm-cosmosdb/src/operations/collectionPartition.ts index 2afa0fb70e0f..61333d0d2676 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/operations/collectionPartition.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/operations/collectionPartition.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * 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 @@ -131,7 +130,7 @@ const listMetricsOperationSpec: msRest.OperationSpec = { Parameters.collectionRid ], queryParameters: [ - Parameters.apiVersion0, + Parameters.apiVersion, Parameters.filter0 ], headerParameters: [ @@ -159,7 +158,7 @@ const listUsagesOperationSpec: msRest.OperationSpec = { Parameters.collectionRid ], queryParameters: [ - Parameters.apiVersion0, + Parameters.apiVersion, Parameters.filter1 ], headerParameters: [ diff --git a/sdk/cosmosdb/arm-cosmosdb/src/operations/collectionPartitionRegion.ts b/sdk/cosmosdb/arm-cosmosdb/src/operations/collectionPartitionRegion.ts index a706ba8f74c8..e721b76a61f8 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/operations/collectionPartitionRegion.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/operations/collectionPartitionRegion.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * 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 @@ -96,7 +95,7 @@ const listMetricsOperationSpec: msRest.OperationSpec = { Parameters.collectionRid ], queryParameters: [ - Parameters.apiVersion0, + Parameters.apiVersion, Parameters.filter0 ], headerParameters: [ diff --git a/sdk/cosmosdb/arm-cosmosdb/src/operations/collectionRegion.ts b/sdk/cosmosdb/arm-cosmosdb/src/operations/collectionRegion.ts index d28c819736a1..3dbffb3f549a 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/operations/collectionRegion.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/operations/collectionRegion.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * 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 @@ -96,7 +95,7 @@ const listMetricsOperationSpec: msRest.OperationSpec = { Parameters.collectionRid ], queryParameters: [ - Parameters.apiVersion0, + Parameters.apiVersion, Parameters.filter0 ], headerParameters: [ diff --git a/sdk/cosmosdb/arm-cosmosdb/src/operations/database.ts b/sdk/cosmosdb/arm-cosmosdb/src/operations/database.ts index b511c67bf98a..b54aa6819fcf 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/operations/database.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/operations/database.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * 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 @@ -158,7 +157,7 @@ const listMetricsOperationSpec: msRest.OperationSpec = { Parameters.databaseRid ], queryParameters: [ - Parameters.apiVersion0, + Parameters.apiVersion, Parameters.filter0 ], headerParameters: [ @@ -185,7 +184,7 @@ const listUsagesOperationSpec: msRest.OperationSpec = { Parameters.databaseRid ], queryParameters: [ - Parameters.apiVersion0, + Parameters.apiVersion, Parameters.filter1 ], headerParameters: [ @@ -212,7 +211,7 @@ const listMetricDefinitionsOperationSpec: msRest.OperationSpec = { Parameters.databaseRid ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage diff --git a/sdk/cosmosdb/arm-cosmosdb/src/operations/databaseAccountRegion.ts b/sdk/cosmosdb/arm-cosmosdb/src/operations/databaseAccountRegion.ts index c08745c91ecb..d79cfb9ca547 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/operations/databaseAccountRegion.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/operations/databaseAccountRegion.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * 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 @@ -85,7 +84,7 @@ const listMetricsOperationSpec: msRest.OperationSpec = { Parameters.region ], queryParameters: [ - Parameters.apiVersion0, + Parameters.apiVersion, Parameters.filter0 ], headerParameters: [ diff --git a/sdk/cosmosdb/arm-cosmosdb/src/operations/databaseAccounts.ts b/sdk/cosmosdb/arm-cosmosdb/src/operations/databaseAccounts.ts index 9a59a1044f14..1b999e7a4533 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/operations/databaseAccounts.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/operations/databaseAccounts.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * 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 @@ -622,7 +621,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.accountName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -645,7 +644,7 @@ const listOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -669,7 +668,7 @@ const listByResourceGroupOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -694,7 +693,7 @@ const listKeysOperationSpec: msRest.OperationSpec = { Parameters.accountName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -719,7 +718,7 @@ const listConnectionStringsOperationSpec: msRest.OperationSpec = { Parameters.accountName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -744,7 +743,7 @@ const getReadOnlyKeysOperationSpec: msRest.OperationSpec = { Parameters.accountName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -769,7 +768,7 @@ const listReadOnlyKeysOperationSpec: msRest.OperationSpec = { Parameters.accountName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -792,7 +791,7 @@ const checkNameExistsOperationSpec: msRest.OperationSpec = { Parameters.accountName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -816,7 +815,7 @@ const listMetricsOperationSpec: msRest.OperationSpec = { Parameters.accountName ], queryParameters: [ - Parameters.apiVersion0, + Parameters.apiVersion, Parameters.filter0 ], headerParameters: [ @@ -842,7 +841,7 @@ const listUsagesOperationSpec: msRest.OperationSpec = { Parameters.accountName ], queryParameters: [ - Parameters.apiVersion0, + Parameters.apiVersion, Parameters.filter1 ], headerParameters: [ @@ -868,7 +867,7 @@ const listMetricDefinitionsOperationSpec: msRest.OperationSpec = { Parameters.accountName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -893,7 +892,7 @@ const beginUpdateOperationSpec: msRest.OperationSpec = { Parameters.accountName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -925,7 +924,7 @@ const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { Parameters.accountName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -957,7 +956,7 @@ const beginDeleteMethodOperationSpec: msRest.OperationSpec = { Parameters.accountName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -981,7 +980,7 @@ const beginFailoverPriorityChangeOperationSpec: msRest.OperationSpec = { Parameters.accountName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -1012,7 +1011,7 @@ const beginOfflineRegionOperationSpec: msRest.OperationSpec = { Parameters.accountName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -1043,7 +1042,7 @@ const beginOnlineRegionOperationSpec: msRest.OperationSpec = { Parameters.accountName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -1074,7 +1073,7 @@ const beginRegenerateKeyOperationSpec: msRest.OperationSpec = { Parameters.accountName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage diff --git a/sdk/cosmosdb/arm-cosmosdb/src/operations/gremlinResources.ts b/sdk/cosmosdb/arm-cosmosdb/src/operations/gremlinResources.ts index 3ddcd62ef302..1b8eeab4ef71 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/operations/gremlinResources.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/operations/gremlinResources.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * 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 @@ -627,7 +626,7 @@ const listGremlinDatabasesOperationSpec: msRest.OperationSpec = { Parameters.accountName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -653,7 +652,7 @@ const getGremlinDatabaseOperationSpec: msRest.OperationSpec = { Parameters.databaseName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -679,7 +678,7 @@ const getGremlinDatabaseThroughputOperationSpec: msRest.OperationSpec = { Parameters.databaseName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -705,7 +704,7 @@ const listGremlinGraphsOperationSpec: msRest.OperationSpec = { Parameters.databaseName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -732,7 +731,7 @@ const getGremlinGraphOperationSpec: msRest.OperationSpec = { Parameters.graphName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -759,7 +758,7 @@ const getGremlinGraphThroughputOperationSpec: msRest.OperationSpec = { Parameters.graphName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -785,7 +784,7 @@ const beginCreateUpdateGremlinDatabaseOperationSpec: msRest.OperationSpec = { Parameters.databaseName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -819,7 +818,7 @@ const beginDeleteGremlinDatabaseOperationSpec: msRest.OperationSpec = { Parameters.databaseName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -844,7 +843,7 @@ const beginUpdateGremlinDatabaseThroughputOperationSpec: msRest.OperationSpec = Parameters.databaseName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -878,7 +877,7 @@ const beginMigrateGremlinDatabaseToAutoscaleOperationSpec: msRest.OperationSpec Parameters.databaseName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -889,7 +888,7 @@ const beginMigrateGremlinDatabaseToAutoscaleOperationSpec: msRest.OperationSpec }, 202: {}, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponseUpdatedFormat } }, serializer @@ -905,7 +904,7 @@ const beginMigrateGremlinDatabaseToManualThroughputOperationSpec: msRest.Operati Parameters.databaseName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -916,7 +915,7 @@ const beginMigrateGremlinDatabaseToManualThroughputOperationSpec: msRest.Operati }, 202: {}, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponseUpdatedFormat } }, serializer @@ -933,7 +932,7 @@ const beginCreateUpdateGremlinGraphOperationSpec: msRest.OperationSpec = { Parameters.graphName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -968,7 +967,7 @@ const beginDeleteGremlinGraphOperationSpec: msRest.OperationSpec = { Parameters.graphName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -994,7 +993,7 @@ const beginUpdateGremlinGraphThroughputOperationSpec: msRest.OperationSpec = { Parameters.graphName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -1029,7 +1028,7 @@ const beginMigrateGremlinGraphToAutoscaleOperationSpec: msRest.OperationSpec = { Parameters.graphName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -1040,7 +1039,7 @@ const beginMigrateGremlinGraphToAutoscaleOperationSpec: msRest.OperationSpec = { }, 202: {}, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponseUpdatedFormat } }, serializer @@ -1057,7 +1056,7 @@ const beginMigrateGremlinGraphToManualThroughputOperationSpec: msRest.OperationS Parameters.graphName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -1068,7 +1067,7 @@ const beginMigrateGremlinGraphToManualThroughputOperationSpec: msRest.OperationS }, 202: {}, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponseUpdatedFormat } }, serializer diff --git a/sdk/cosmosdb/arm-cosmosdb/src/operations/index.ts b/sdk/cosmosdb/arm-cosmosdb/src/operations/index.ts index d5983c59eca5..aed7e233ae54 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/operations/index.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/operations/index.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * 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 @@ -27,5 +26,3 @@ export * from "./tableResources"; export * from "./cassandraResources"; export * from "./gremlinResources"; export * from "./notebookWorkspaces"; -export * from "./privateLinkResources"; -export * from "./privateEndpointConnections"; diff --git a/sdk/cosmosdb/arm-cosmosdb/src/operations/mongoDBResources.ts b/sdk/cosmosdb/arm-cosmosdb/src/operations/mongoDBResources.ts index 2f14b65c840e..c4d218dd4636 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/operations/mongoDBResources.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/operations/mongoDBResources.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * 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 @@ -627,7 +626,7 @@ const listMongoDBDatabasesOperationSpec: msRest.OperationSpec = { Parameters.accountName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -653,7 +652,7 @@ const getMongoDBDatabaseOperationSpec: msRest.OperationSpec = { Parameters.databaseName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -679,7 +678,7 @@ const getMongoDBDatabaseThroughputOperationSpec: msRest.OperationSpec = { Parameters.databaseName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -705,7 +704,7 @@ const listMongoDBCollectionsOperationSpec: msRest.OperationSpec = { Parameters.databaseName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -732,7 +731,7 @@ const getMongoDBCollectionOperationSpec: msRest.OperationSpec = { Parameters.collectionName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -759,7 +758,7 @@ const getMongoDBCollectionThroughputOperationSpec: msRest.OperationSpec = { Parameters.collectionName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -785,7 +784,7 @@ const beginCreateUpdateMongoDBDatabaseOperationSpec: msRest.OperationSpec = { Parameters.databaseName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -819,7 +818,7 @@ const beginDeleteMongoDBDatabaseOperationSpec: msRest.OperationSpec = { Parameters.databaseName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -844,7 +843,7 @@ const beginUpdateMongoDBDatabaseThroughputOperationSpec: msRest.OperationSpec = Parameters.databaseName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -862,7 +861,7 @@ const beginUpdateMongoDBDatabaseThroughputOperationSpec: msRest.OperationSpec = }, 202: {}, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponseUpdatedFormat } }, serializer @@ -878,7 +877,7 @@ const beginMigrateMongoDBDatabaseToAutoscaleOperationSpec: msRest.OperationSpec Parameters.databaseName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -889,7 +888,7 @@ const beginMigrateMongoDBDatabaseToAutoscaleOperationSpec: msRest.OperationSpec }, 202: {}, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponseUpdatedFormat } }, serializer @@ -905,7 +904,7 @@ const beginMigrateMongoDBDatabaseToManualThroughputOperationSpec: msRest.Operati Parameters.databaseName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -916,7 +915,7 @@ const beginMigrateMongoDBDatabaseToManualThroughputOperationSpec: msRest.Operati }, 202: {}, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponseUpdatedFormat } }, serializer @@ -933,7 +932,7 @@ const beginCreateUpdateMongoDBCollectionOperationSpec: msRest.OperationSpec = { Parameters.collectionName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -968,7 +967,7 @@ const beginDeleteMongoDBCollectionOperationSpec: msRest.OperationSpec = { Parameters.collectionName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -994,7 +993,7 @@ const beginUpdateMongoDBCollectionThroughputOperationSpec: msRest.OperationSpec Parameters.collectionName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -1029,7 +1028,7 @@ const beginMigrateMongoDBCollectionToAutoscaleOperationSpec: msRest.OperationSpe Parameters.collectionName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -1040,7 +1039,7 @@ const beginMigrateMongoDBCollectionToAutoscaleOperationSpec: msRest.OperationSpe }, 202: {}, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponseUpdatedFormat } }, serializer @@ -1057,7 +1056,7 @@ const beginMigrateMongoDBCollectionToManualThroughputOperationSpec: msRest.Opera Parameters.collectionName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -1068,7 +1067,7 @@ const beginMigrateMongoDBCollectionToManualThroughputOperationSpec: msRest.Opera }, 202: {}, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponseUpdatedFormat } }, serializer diff --git a/sdk/cosmosdb/arm-cosmosdb/src/operations/notebookWorkspaces.ts b/sdk/cosmosdb/arm-cosmosdb/src/operations/notebookWorkspaces.ts index 1d22daf2fb67..b3e092a289d8 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/operations/notebookWorkspaces.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/operations/notebookWorkspaces.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * 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 @@ -255,7 +254,7 @@ const listByDatabaseAccountOperationSpec: msRest.OperationSpec = { Parameters.accountName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -281,7 +280,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.notebookWorkspaceName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -307,7 +306,7 @@ const listConnectionInfoOperationSpec: msRest.OperationSpec = { Parameters.notebookWorkspaceName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -333,7 +332,7 @@ const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { Parameters.notebookWorkspaceName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -366,7 +365,7 @@ const beginDeleteMethodOperationSpec: msRest.OperationSpec = { Parameters.notebookWorkspaceName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -391,7 +390,7 @@ const beginRegenerateAuthTokenOperationSpec: msRest.OperationSpec = { Parameters.notebookWorkspaceName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -416,7 +415,7 @@ const beginStartOperationSpec: msRest.OperationSpec = { Parameters.notebookWorkspaceName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage diff --git a/sdk/cosmosdb/arm-cosmosdb/src/operations/operations.ts b/sdk/cosmosdb/arm-cosmosdb/src/operations/operations.ts index 84b39aa28019..330dca158fe1 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/operations/operations.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/operations/operations.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * 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 @@ -85,7 +84,7 @@ const listOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "providers/Microsoft.DocumentDB/operations", queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -108,6 +107,9 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/cosmosdb/arm-cosmosdb/src/operations/partitionKeyRangeId.ts b/sdk/cosmosdb/arm-cosmosdb/src/operations/partitionKeyRangeId.ts index a2bdebdb6cf4..2e9d1b7f4dfc 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/operations/partitionKeyRangeId.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/operations/partitionKeyRangeId.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * 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 @@ -95,7 +94,7 @@ const listMetricsOperationSpec: msRest.OperationSpec = { Parameters.partitionKeyRangeId ], queryParameters: [ - Parameters.apiVersion0, + Parameters.apiVersion, Parameters.filter0 ], headerParameters: [ diff --git a/sdk/cosmosdb/arm-cosmosdb/src/operations/partitionKeyRangeIdRegion.ts b/sdk/cosmosdb/arm-cosmosdb/src/operations/partitionKeyRangeIdRegion.ts index 662145522e25..3b48e6818121 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/operations/partitionKeyRangeIdRegion.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/operations/partitionKeyRangeIdRegion.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * 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 @@ -101,7 +100,7 @@ const listMetricsOperationSpec: msRest.OperationSpec = { Parameters.partitionKeyRangeId ], queryParameters: [ - Parameters.apiVersion0, + Parameters.apiVersion, Parameters.filter0 ], headerParameters: [ diff --git a/sdk/cosmosdb/arm-cosmosdb/src/operations/percentile.ts b/sdk/cosmosdb/arm-cosmosdb/src/operations/percentile.ts index 6c2c22bd6808..88b580dc2a71 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/operations/percentile.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/operations/percentile.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * 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 @@ -81,7 +80,7 @@ const listMetricsOperationSpec: msRest.OperationSpec = { Parameters.accountName ], queryParameters: [ - Parameters.apiVersion0, + Parameters.apiVersion, Parameters.filter0 ], headerParameters: [ diff --git a/sdk/cosmosdb/arm-cosmosdb/src/operations/percentileSourceTarget.ts b/sdk/cosmosdb/arm-cosmosdb/src/operations/percentileSourceTarget.ts index b4d812787248..d21bb63e7081 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/operations/percentileSourceTarget.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/operations/percentileSourceTarget.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * 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 @@ -97,7 +96,7 @@ const listMetricsOperationSpec: msRest.OperationSpec = { Parameters.targetRegion ], queryParameters: [ - Parameters.apiVersion0, + Parameters.apiVersion, Parameters.filter0 ], headerParameters: [ diff --git a/sdk/cosmosdb/arm-cosmosdb/src/operations/percentileTarget.ts b/sdk/cosmosdb/arm-cosmosdb/src/operations/percentileTarget.ts index 6535d0f90660..2a2a4af8af0e 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/operations/percentileTarget.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/operations/percentileTarget.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * 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 @@ -89,7 +88,7 @@ const listMetricsOperationSpec: msRest.OperationSpec = { Parameters.targetRegion ], queryParameters: [ - Parameters.apiVersion0, + Parameters.apiVersion, Parameters.filter0 ], headerParameters: [ diff --git a/sdk/cosmosdb/arm-cosmosdb/src/operations/sqlResources.ts b/sdk/cosmosdb/arm-cosmosdb/src/operations/sqlResources.ts index 3392930254a7..6854cff3534d 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/operations/sqlResources.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/operations/sqlResources.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * 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 @@ -1122,7 +1121,7 @@ const listSqlDatabasesOperationSpec: msRest.OperationSpec = { Parameters.accountName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -1148,7 +1147,7 @@ const getSqlDatabaseOperationSpec: msRest.OperationSpec = { Parameters.databaseName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -1174,7 +1173,7 @@ const getSqlDatabaseThroughputOperationSpec: msRest.OperationSpec = { Parameters.databaseName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -1200,7 +1199,7 @@ const listSqlContainersOperationSpec: msRest.OperationSpec = { Parameters.databaseName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -1227,7 +1226,7 @@ const getSqlContainerOperationSpec: msRest.OperationSpec = { Parameters.containerName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -1254,7 +1253,7 @@ const getSqlContainerThroughputOperationSpec: msRest.OperationSpec = { Parameters.containerName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -1281,7 +1280,7 @@ const listSqlStoredProceduresOperationSpec: msRest.OperationSpec = { Parameters.containerName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -1291,7 +1290,7 @@ const listSqlStoredProceduresOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.SqlStoredProcedureListResult }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponseUpdatedFormat } }, serializer @@ -1309,7 +1308,7 @@ const getSqlStoredProcedureOperationSpec: msRest.OperationSpec = { Parameters.storedProcedureName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -1336,7 +1335,7 @@ const listSqlUserDefinedFunctionsOperationSpec: msRest.OperationSpec = { Parameters.containerName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -1364,7 +1363,7 @@ const getSqlUserDefinedFunctionOperationSpec: msRest.OperationSpec = { Parameters.userDefinedFunctionName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -1391,7 +1390,7 @@ const listSqlTriggersOperationSpec: msRest.OperationSpec = { Parameters.containerName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -1419,7 +1418,7 @@ const getSqlTriggerOperationSpec: msRest.OperationSpec = { Parameters.triggerName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -1445,7 +1444,7 @@ const beginCreateUpdateSqlDatabaseOperationSpec: msRest.OperationSpec = { Parameters.databaseName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -1479,7 +1478,7 @@ const beginDeleteSqlDatabaseOperationSpec: msRest.OperationSpec = { Parameters.databaseName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -1504,7 +1503,7 @@ const beginUpdateSqlDatabaseThroughputOperationSpec: msRest.OperationSpec = { Parameters.databaseName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -1538,7 +1537,7 @@ const beginMigrateSqlDatabaseToAutoscaleOperationSpec: msRest.OperationSpec = { Parameters.databaseName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -1549,7 +1548,7 @@ const beginMigrateSqlDatabaseToAutoscaleOperationSpec: msRest.OperationSpec = { }, 202: {}, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponseUpdatedFormat } }, serializer @@ -1565,7 +1564,7 @@ const beginMigrateSqlDatabaseToManualThroughputOperationSpec: msRest.OperationSp Parameters.databaseName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -1576,7 +1575,7 @@ const beginMigrateSqlDatabaseToManualThroughputOperationSpec: msRest.OperationSp }, 202: {}, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponseUpdatedFormat } }, serializer @@ -1593,7 +1592,7 @@ const beginCreateUpdateSqlContainerOperationSpec: msRest.OperationSpec = { Parameters.containerName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -1628,7 +1627,7 @@ const beginDeleteSqlContainerOperationSpec: msRest.OperationSpec = { Parameters.containerName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -1654,7 +1653,7 @@ const beginUpdateSqlContainerThroughputOperationSpec: msRest.OperationSpec = { Parameters.containerName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -1689,7 +1688,7 @@ const beginMigrateSqlContainerToAutoscaleOperationSpec: msRest.OperationSpec = { Parameters.containerName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -1700,7 +1699,7 @@ const beginMigrateSqlContainerToAutoscaleOperationSpec: msRest.OperationSpec = { }, 202: {}, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponseUpdatedFormat } }, serializer @@ -1717,7 +1716,7 @@ const beginMigrateSqlContainerToManualThroughputOperationSpec: msRest.OperationS Parameters.containerName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -1728,7 +1727,7 @@ const beginMigrateSqlContainerToManualThroughputOperationSpec: msRest.OperationS }, 202: {}, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponseUpdatedFormat } }, serializer @@ -1746,7 +1745,7 @@ const beginCreateUpdateSqlStoredProcedureOperationSpec: msRest.OperationSpec = { Parameters.storedProcedureName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -1782,7 +1781,7 @@ const beginDeleteSqlStoredProcedureOperationSpec: msRest.OperationSpec = { Parameters.storedProcedureName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -1809,7 +1808,7 @@ const beginCreateUpdateSqlUserDefinedFunctionOperationSpec: msRest.OperationSpec Parameters.userDefinedFunctionName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -1845,7 +1844,7 @@ const beginDeleteSqlUserDefinedFunctionOperationSpec: msRest.OperationSpec = { Parameters.userDefinedFunctionName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -1872,7 +1871,7 @@ const beginCreateUpdateSqlTriggerOperationSpec: msRest.OperationSpec = { Parameters.triggerName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -1908,7 +1907,7 @@ const beginDeleteSqlTriggerOperationSpec: msRest.OperationSpec = { Parameters.triggerName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage diff --git a/sdk/cosmosdb/arm-cosmosdb/src/operations/tableResources.ts b/sdk/cosmosdb/arm-cosmosdb/src/operations/tableResources.ts index a94d2af9ed93..984ac69af484 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/operations/tableResources.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/operations/tableResources.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * 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 @@ -317,7 +316,7 @@ const listTablesOperationSpec: msRest.OperationSpec = { Parameters.accountName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -343,7 +342,7 @@ const getTableOperationSpec: msRest.OperationSpec = { Parameters.tableName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -369,7 +368,7 @@ const getTableThroughputOperationSpec: msRest.OperationSpec = { Parameters.tableName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -395,7 +394,7 @@ const beginCreateUpdateTableOperationSpec: msRest.OperationSpec = { Parameters.tableName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -429,7 +428,7 @@ const beginDeleteTableOperationSpec: msRest.OperationSpec = { Parameters.tableName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -454,7 +453,7 @@ const beginUpdateTableThroughputOperationSpec: msRest.OperationSpec = { Parameters.tableName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -488,7 +487,7 @@ const beginMigrateTableToAutoscaleOperationSpec: msRest.OperationSpec = { Parameters.tableName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -499,7 +498,7 @@ const beginMigrateTableToAutoscaleOperationSpec: msRest.OperationSpec = { }, 202: {}, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponseUpdatedFormat } }, serializer @@ -515,7 +514,7 @@ const beginMigrateTableToManualThroughputOperationSpec: msRest.OperationSpec = { Parameters.tableName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -526,7 +525,7 @@ const beginMigrateTableToManualThroughputOperationSpec: msRest.OperationSpec = { }, 202: {}, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponseUpdatedFormat } }, serializer