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..cba63f35cc5b 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 diff --git a/sdk/cosmosdb/arm-cosmosdb/src/cosmosDBManagementClientContext.ts b/sdk/cosmosdb/arm-cosmosdb/src/cosmosDBManagementClientContext.ts index b836eb829e8f..c6e01c6971a9 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 diff --git a/sdk/cosmosdb/arm-cosmosdb/src/models/cassandraResourcesMappers.ts b/sdk/cosmosdb/arm-cosmosdb/src/models/cassandraResourcesMappers.ts index 82a9fd18b4e2..2994f2394bca 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,6 +79,8 @@ export { NotebookWorkspace, NotebookWorkspaceCreateUpdateParameters, OptionsResource, + PeriodicModeBackupPolicy, + PeriodicModeProperties, PrivateEndpointConnection, PrivateEndpointProperty, PrivateLinkResource, 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..b6c351ad21c2 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,6 +94,8 @@ export { PartitionMetric, PartitionUsage, PercentileMetricValue, + PeriodicModeBackupPolicy, + PeriodicModeProperties, PrivateEndpointConnection, PrivateEndpointProperty, PrivateLinkResource, 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..9e6e5c65cf88 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,6 +79,8 @@ export { NotebookWorkspace, NotebookWorkspaceCreateUpdateParameters, OptionsResource, + PeriodicModeBackupPolicy, + PeriodicModeProperties, PrivateEndpointConnection, PrivateEndpointProperty, PrivateLinkResource, diff --git a/sdk/cosmosdb/arm-cosmosdb/src/models/index.ts b/sdk/cosmosdb/arm-cosmosdb/src/models/index.ts index db47da64995a..9d358ec67315 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. @@ -158,11 +158,12 @@ export interface PrivateLinkServiceConnectionStateProperty { } /** - * 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 +174,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 { } @@ -219,6 +221,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 +401,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 +428,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 +686,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 +730,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 +767,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 +813,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 +846,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 +936,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 +976,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 +1016,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 +1124,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 +1164,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 +1227,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 +1264,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 +1327,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 +1414,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 +1509,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 +1597,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 +1760,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 +1812,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 +1841,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 +1870,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 +1908,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 +1933,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 +1970,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 +1995,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 +2020,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 +2057,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 +2082,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 +2130,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 +2446,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 +2500,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 { /** @@ -2879,6 +2956,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. */ diff --git a/sdk/cosmosdb/arm-cosmosdb/src/models/mappers.ts b/sdk/cosmosdb/arm-cosmosdb/src/models/mappers.ts index ca81adfe92c1..3a08f0aa61ff 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. @@ -333,6 +333,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 +660,13 @@ export const DatabaseAccountGetResults: msRest.CompositeMapper = { name: "Boolean" } }, + backupPolicy: { + serializedName: "properties.backupPolicy", + type: { + name: "Composite", + className: "BackupPolicy" + } + }, cors: { serializedName: "properties.cors", type: { @@ -678,7 +707,7 @@ export const SqlDatabaseGetPropertiesResource: msRest.CompositeMapper = { readOnly: true, serializedName: "_ts", type: { - name: "Object" + name: "Number" } }, _etag: { @@ -1136,7 +1165,7 @@ export const SqlContainerGetPropertiesResource: msRest.CompositeMapper = { readOnly: true, serializedName: "_ts", type: { - name: "Object" + name: "Number" } }, _etag: { @@ -1216,7 +1245,7 @@ export const SqlStoredProcedureGetPropertiesResource: msRest.CompositeMapper = { readOnly: true, serializedName: "_ts", type: { - name: "Object" + name: "Number" } }, _etag: { @@ -1278,7 +1307,7 @@ export const SqlUserDefinedFunctionGetPropertiesResource: msRest.CompositeMapper readOnly: true, serializedName: "_ts", type: { - name: "Object" + name: "Number" } }, _etag: { @@ -1352,7 +1381,7 @@ export const SqlTriggerGetPropertiesResource: msRest.CompositeMapper = { readOnly: true, serializedName: "_ts", type: { - name: "Object" + name: "Number" } }, _etag: { @@ -1408,7 +1437,7 @@ export const MongoDBDatabaseGetPropertiesResource: msRest.CompositeMapper = { readOnly: true, serializedName: "_ts", type: { - name: "Object" + name: "Number" } }, _etag: { @@ -1578,7 +1607,7 @@ export const MongoDBCollectionGetPropertiesResource: msRest.CompositeMapper = { readOnly: true, serializedName: "_ts", type: { - name: "Object" + name: "Number" } }, _etag: { @@ -1652,7 +1681,7 @@ export const TableGetPropertiesResource: msRest.CompositeMapper = { readOnly: true, serializedName: "_ts", type: { - name: "Object" + name: "Number" } }, _etag: { @@ -1726,7 +1755,7 @@ export const CassandraKeyspaceGetPropertiesResource: msRest.CompositeMapper = { readOnly: true, serializedName: "_ts", type: { - name: "Object" + name: "Number" } }, _etag: { @@ -1925,7 +1954,7 @@ export const CassandraTableGetPropertiesResource: msRest.CompositeMapper = { readOnly: true, serializedName: "_ts", type: { - name: "Object" + name: "Number" } }, _etag: { @@ -1999,7 +2028,7 @@ export const GremlinDatabaseGetPropertiesResource: msRest.CompositeMapper = { readOnly: true, serializedName: "_ts", type: { - name: "Object" + name: "Number" } }, _etag: { @@ -2107,7 +2136,7 @@ export const GremlinGraphGetPropertiesResource: msRest.CompositeMapper = { readOnly: true, serializedName: "_ts", type: { - name: "Object" + name: "Number" } }, _etag: { @@ -2179,6 +2208,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 +2313,7 @@ export const ExtendedResourceProperties: msRest.CompositeMapper = { readOnly: true, serializedName: "_ts", type: { - name: "Object" + name: "Number" } }, _etag: { @@ -2395,7 +2441,7 @@ export const ThroughputSettingsGetPropertiesResource: msRest.CompositeMapper = { readOnly: true, serializedName: "_ts", type: { - name: "Object" + name: "Number" } }, _etag: { @@ -2573,6 +2619,13 @@ export const DatabaseAccountCreateUpdateParameters: msRest.CompositeMapper = { name: "Boolean" } }, + backupPolicy: { + serializedName: "properties.backupPolicy", + type: { + name: "Composite", + className: "BackupPolicy" + } + }, cors: { serializedName: "properties.cors", type: { @@ -2734,6 +2787,13 @@ export const DatabaseAccountUpdateParameters: msRest.CompositeMapper = { name: "Boolean" } }, + backupPolicy: { + serializedName: "properties.backupPolicy", + type: { + name: "Composite", + className: "BackupPolicy" + } + }, cors: { serializedName: "properties.cors", type: { @@ -2990,7 +3050,6 @@ export const SqlDatabaseCreateUpdateParameters: msRest.CompositeMapper = { } }, options: { - required: true, serializedName: "properties.options", type: { name: "Composite", @@ -3074,7 +3133,6 @@ export const SqlContainerCreateUpdateParameters: msRest.CompositeMapper = { } }, options: { - required: true, serializedName: "properties.options", type: { name: "Composite", @@ -3124,7 +3182,6 @@ export const SqlStoredProcedureCreateUpdateParameters: msRest.CompositeMapper = } }, options: { - required: true, serializedName: "properties.options", type: { name: "Composite", @@ -3174,7 +3231,6 @@ export const SqlUserDefinedFunctionCreateUpdateParameters: msRest.CompositeMappe } }, options: { - required: true, serializedName: "properties.options", type: { name: "Composite", @@ -3236,7 +3292,6 @@ export const SqlTriggerCreateUpdateParameters: msRest.CompositeMapper = { } }, options: { - required: true, serializedName: "properties.options", type: { name: "Composite", @@ -3280,7 +3335,6 @@ export const MongoDBDatabaseCreateUpdateParameters: msRest.CompositeMapper = { } }, options: { - required: true, serializedName: "properties.options", type: { name: "Composite", @@ -3353,7 +3407,6 @@ export const MongoDBCollectionCreateUpdateParameters: msRest.CompositeMapper = { } }, options: { - required: true, serializedName: "properties.options", type: { name: "Composite", @@ -3397,7 +3450,6 @@ export const TableCreateUpdateParameters: msRest.CompositeMapper = { } }, options: { - required: true, serializedName: "properties.options", type: { name: "Composite", @@ -3441,7 +3493,6 @@ export const CassandraKeyspaceCreateUpdateParameters: msRest.CompositeMapper = { } }, options: { - required: true, serializedName: "properties.options", type: { name: "Composite", @@ -3504,7 +3555,6 @@ export const CassandraTableCreateUpdateParameters: msRest.CompositeMapper = { } }, options: { - required: true, serializedName: "properties.options", type: { name: "Composite", @@ -3548,7 +3598,6 @@ export const GremlinDatabaseCreateUpdateParameters: msRest.CompositeMapper = { } }, options: { - required: true, serializedName: "properties.options", type: { name: "Composite", @@ -3626,7 +3675,6 @@ export const GremlinGraphCreateUpdateParameters: msRest.CompositeMapper = { } }, options: { - required: true, serializedName: "properties.options", type: { name: "Composite", @@ -4116,6 +4164,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: { @@ -4795,3 +4904,10 @@ export const PrivateEndpointConnectionListResult: msRest.CompositeMapper = { } } }; + +export const discriminators = { + 'BackupPolicy' : BackupPolicy, + 'BackupPolicy.Periodic' : PeriodicModeBackupPolicy, + 'BackupPolicy.Continuous' : ContinuousModeBackupPolicy + +}; diff --git a/sdk/cosmosdb/arm-cosmosdb/src/models/mongoDBResourcesMappers.ts b/sdk/cosmosdb/arm-cosmosdb/src/models/mongoDBResourcesMappers.ts index 891bde7252db..22717df5404d 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,6 +79,8 @@ export { NotebookWorkspace, NotebookWorkspaceCreateUpdateParameters, OptionsResource, + PeriodicModeBackupPolicy, + PeriodicModeProperties, PrivateEndpointConnection, PrivateEndpointProperty, PrivateLinkResource, diff --git a/sdk/cosmosdb/arm-cosmosdb/src/models/notebookWorkspacesMappers.ts b/sdk/cosmosdb/arm-cosmosdb/src/models/notebookWorkspacesMappers.ts index 30281fd37a99..775ab6d3cf57 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,6 +77,8 @@ export { NotebookWorkspaceCreateUpdateParameters, NotebookWorkspaceListResult, OptionsResource, + PeriodicModeBackupPolicy, + PeriodicModeProperties, PrivateEndpointConnection, PrivateEndpointProperty, PrivateLinkResource, 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..97cfb62b11ac 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 @@ -41,7 +40,7 @@ export const apiVersion0: msRest.OperationQueryParameter = { required: true, isConstant: true, serializedName: "api-version", - defaultValue: '2020-04-01', + defaultValue: '2020-09-01', constraints: { MinLength: 1 }, 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/privateEndpointConnectionsMappers.ts b/sdk/cosmosdb/arm-cosmosdb/src/models/privateEndpointConnectionsMappers.ts index 124b903874eb..1750f86b66bf 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/models/privateEndpointConnectionsMappers.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/models/privateEndpointConnectionsMappers.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, DatabaseAccountCreateUpdateParameters, @@ -73,6 +76,8 @@ export { NotebookWorkspace, NotebookWorkspaceCreateUpdateParameters, OptionsResource, + PeriodicModeBackupPolicy, + PeriodicModeProperties, PrivateEndpointConnection, PrivateEndpointConnectionListResult, PrivateEndpointProperty, diff --git a/sdk/cosmosdb/arm-cosmosdb/src/models/privateLinkResourcesMappers.ts b/sdk/cosmosdb/arm-cosmosdb/src/models/privateLinkResourcesMappers.ts index 581b05750533..0c89c46eef79 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/models/privateLinkResourcesMappers.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/models/privateLinkResourcesMappers.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, DatabaseAccountCreateUpdateParameters, @@ -72,6 +75,8 @@ export { NotebookWorkspace, NotebookWorkspaceCreateUpdateParameters, OptionsResource, + PeriodicModeBackupPolicy, + PeriodicModeProperties, PrivateEndpointConnection, PrivateEndpointProperty, PrivateLinkResource, diff --git a/sdk/cosmosdb/arm-cosmosdb/src/models/sqlResourcesMappers.ts b/sdk/cosmosdb/arm-cosmosdb/src/models/sqlResourcesMappers.ts index 03d52a4ee24d..917369690130 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,6 +77,8 @@ export { NotebookWorkspace, NotebookWorkspaceCreateUpdateParameters, OptionsResource, + PeriodicModeBackupPolicy, + PeriodicModeProperties, PrivateEndpointConnection, PrivateEndpointProperty, PrivateLinkResource, diff --git a/sdk/cosmosdb/arm-cosmosdb/src/models/tableResourcesMappers.ts b/sdk/cosmosdb/arm-cosmosdb/src/models/tableResourcesMappers.ts index 7856ac56e806..4d7688bedecb 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,6 +77,8 @@ export { NotebookWorkspace, NotebookWorkspaceCreateUpdateParameters, OptionsResource, + PeriodicModeBackupPolicy, + PeriodicModeProperties, PrivateEndpointConnection, PrivateEndpointProperty, PrivateLinkResource, diff --git a/sdk/cosmosdb/arm-cosmosdb/src/operations/cassandraResources.ts b/sdk/cosmosdb/arm-cosmosdb/src/operations/cassandraResources.ts index 1d0d92ad1cad..bc9549489514 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 @@ -889,7 +888,7 @@ const beginMigrateCassandraKeyspaceToAutoscaleOperationSpec: msRest.OperationSpe }, 202: {}, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponseUpdatedFormat } }, serializer @@ -916,7 +915,7 @@ const beginMigrateCassandraKeyspaceToManualThroughputOperationSpec: msRest.Opera }, 202: {}, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponseUpdatedFormat } }, serializer @@ -1040,7 +1039,7 @@ const beginMigrateCassandraTableToAutoscaleOperationSpec: msRest.OperationSpec = }, 202: {}, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponseUpdatedFormat } }, serializer @@ -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..5a418e6ee32f 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 diff --git a/sdk/cosmosdb/arm-cosmosdb/src/operations/collectionPartition.ts b/sdk/cosmosdb/arm-cosmosdb/src/operations/collectionPartition.ts index 2afa0fb70e0f..542ce6de9a6d 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 diff --git a/sdk/cosmosdb/arm-cosmosdb/src/operations/collectionPartitionRegion.ts b/sdk/cosmosdb/arm-cosmosdb/src/operations/collectionPartitionRegion.ts index a706ba8f74c8..3aab4cbe8c8d 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 diff --git a/sdk/cosmosdb/arm-cosmosdb/src/operations/collectionRegion.ts b/sdk/cosmosdb/arm-cosmosdb/src/operations/collectionRegion.ts index d28c819736a1..330498221a5d 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 diff --git a/sdk/cosmosdb/arm-cosmosdb/src/operations/database.ts b/sdk/cosmosdb/arm-cosmosdb/src/operations/database.ts index b511c67bf98a..bdb009e1d421 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 diff --git a/sdk/cosmosdb/arm-cosmosdb/src/operations/databaseAccountRegion.ts b/sdk/cosmosdb/arm-cosmosdb/src/operations/databaseAccountRegion.ts index c08745c91ecb..4ae7174d9ee6 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 diff --git a/sdk/cosmosdb/arm-cosmosdb/src/operations/databaseAccounts.ts b/sdk/cosmosdb/arm-cosmosdb/src/operations/databaseAccounts.ts index 9a59a1044f14..acbfdcc7d642 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 diff --git a/sdk/cosmosdb/arm-cosmosdb/src/operations/gremlinResources.ts b/sdk/cosmosdb/arm-cosmosdb/src/operations/gremlinResources.ts index 3ddcd62ef302..8db10e2d5845 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 @@ -889,7 +888,7 @@ const beginMigrateGremlinDatabaseToAutoscaleOperationSpec: msRest.OperationSpec }, 202: {}, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponseUpdatedFormat } }, serializer @@ -916,7 +915,7 @@ const beginMigrateGremlinDatabaseToManualThroughputOperationSpec: msRest.Operati }, 202: {}, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponseUpdatedFormat } }, serializer @@ -1040,7 +1039,7 @@ const beginMigrateGremlinGraphToAutoscaleOperationSpec: msRest.OperationSpec = { }, 202: {}, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponseUpdatedFormat } }, serializer @@ -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..d5736137864a 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 diff --git a/sdk/cosmosdb/arm-cosmosdb/src/operations/mongoDBResources.ts b/sdk/cosmosdb/arm-cosmosdb/src/operations/mongoDBResources.ts index 2f14b65c840e..5fa558154408 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 @@ -862,7 +861,7 @@ const beginUpdateMongoDBDatabaseThroughputOperationSpec: msRest.OperationSpec = }, 202: {}, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponseUpdatedFormat } }, serializer @@ -889,7 +888,7 @@ const beginMigrateMongoDBDatabaseToAutoscaleOperationSpec: msRest.OperationSpec }, 202: {}, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponseUpdatedFormat } }, serializer @@ -916,7 +915,7 @@ const beginMigrateMongoDBDatabaseToManualThroughputOperationSpec: msRest.Operati }, 202: {}, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponseUpdatedFormat } }, serializer @@ -1040,7 +1039,7 @@ const beginMigrateMongoDBCollectionToAutoscaleOperationSpec: msRest.OperationSpe }, 202: {}, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponseUpdatedFormat } }, serializer @@ -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..bcba640d808e 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 diff --git a/sdk/cosmosdb/arm-cosmosdb/src/operations/operations.ts b/sdk/cosmosdb/arm-cosmosdb/src/operations/operations.ts index 84b39aa28019..fea7ac337798 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 @@ -108,6 +107,9 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion0 + ], 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..ccdc4ee3e93a 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 diff --git a/sdk/cosmosdb/arm-cosmosdb/src/operations/partitionKeyRangeIdRegion.ts b/sdk/cosmosdb/arm-cosmosdb/src/operations/partitionKeyRangeIdRegion.ts index 662145522e25..5ad8617c60e0 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 diff --git a/sdk/cosmosdb/arm-cosmosdb/src/operations/percentile.ts b/sdk/cosmosdb/arm-cosmosdb/src/operations/percentile.ts index 6c2c22bd6808..7538be8240ae 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 diff --git a/sdk/cosmosdb/arm-cosmosdb/src/operations/percentileSourceTarget.ts b/sdk/cosmosdb/arm-cosmosdb/src/operations/percentileSourceTarget.ts index b4d812787248..456ce4fa7b58 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 diff --git a/sdk/cosmosdb/arm-cosmosdb/src/operations/percentileTarget.ts b/sdk/cosmosdb/arm-cosmosdb/src/operations/percentileTarget.ts index 6535d0f90660..98b52c320f30 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 diff --git a/sdk/cosmosdb/arm-cosmosdb/src/operations/privateEndpointConnections.ts b/sdk/cosmosdb/arm-cosmosdb/src/operations/privateEndpointConnections.ts index 89392e52ce95..5ad65921e9c8 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/operations/privateEndpointConnections.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/operations/privateEndpointConnections.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 diff --git a/sdk/cosmosdb/arm-cosmosdb/src/operations/privateLinkResources.ts b/sdk/cosmosdb/arm-cosmosdb/src/operations/privateLinkResources.ts index 76a931a235fa..cb031543e6ba 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/operations/privateLinkResources.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/operations/privateLinkResources.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 diff --git a/sdk/cosmosdb/arm-cosmosdb/src/operations/sqlResources.ts b/sdk/cosmosdb/arm-cosmosdb/src/operations/sqlResources.ts index 3392930254a7..163620d4c8dd 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 @@ -1291,7 +1290,7 @@ const listSqlStoredProceduresOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.SqlStoredProcedureListResult }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponseUpdatedFormat } }, serializer @@ -1549,7 +1548,7 @@ const beginMigrateSqlDatabaseToAutoscaleOperationSpec: msRest.OperationSpec = { }, 202: {}, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponseUpdatedFormat } }, serializer @@ -1576,7 +1575,7 @@ const beginMigrateSqlDatabaseToManualThroughputOperationSpec: msRest.OperationSp }, 202: {}, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponseUpdatedFormat } }, serializer @@ -1700,7 +1699,7 @@ const beginMigrateSqlContainerToAutoscaleOperationSpec: msRest.OperationSpec = { }, 202: {}, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponseUpdatedFormat } }, serializer @@ -1728,7 +1727,7 @@ const beginMigrateSqlContainerToManualThroughputOperationSpec: msRest.OperationS }, 202: {}, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponseUpdatedFormat } }, serializer diff --git a/sdk/cosmosdb/arm-cosmosdb/src/operations/tableResources.ts b/sdk/cosmosdb/arm-cosmosdb/src/operations/tableResources.ts index a94d2af9ed93..b2e06f95eff9 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 @@ -499,7 +498,7 @@ const beginMigrateTableToAutoscaleOperationSpec: msRest.OperationSpec = { }, 202: {}, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponseUpdatedFormat } }, serializer @@ -526,7 +525,7 @@ const beginMigrateTableToManualThroughputOperationSpec: msRest.OperationSpec = { }, 202: {}, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponseUpdatedFormat } }, serializer