From 5534055b563faf3cb1cb3acdf9106a3321921c1a Mon Sep 17 00:00:00 2001 From: SDK Automation Date: Thu, 22 Oct 2020 05:46:47 +0000 Subject: [PATCH] Generated from e0713c36960661579b09ab1e073456565f285931 --- .../src/cosmosDBManagementClient.ts | 4 - .../src/cosmosDBManagementClientContext.ts | 2 + .../src/models/cassandraResourcesMappers.ts | 8 +- .../src/models/collectionMappers.ts | 1 + .../src/models/collectionPartitionMappers.ts | 1 + .../collectionPartitionRegionMappers.ts | 1 + .../src/models/collectionRegionMappers.ts | 1 + .../models/databaseAccountRegionMappers.ts | 1 + .../src/models/databaseAccountsMappers.ts | 6 +- .../src/models/databaseMappers.ts | 1 + .../src/models/gremlinResourcesMappers.ts | 8 +- sdk/cosmosdb/arm-cosmosdb/src/models/index.ts | 301 ++++++------------ .../arm-cosmosdb/src/models/mappers.ts | 266 ++++++++-------- .../src/models/mongoDBResourcesMappers.ts | 8 +- .../src/models/notebookWorkspacesMappers.ts | 6 +- .../src/models/operationsMappers.ts | 1 + .../arm-cosmosdb/src/models/parameters.ts | 39 +-- .../src/models/partitionKeyRangeIdMappers.ts | 1 + .../partitionKeyRangeIdRegionMappers.ts | 1 + .../src/models/percentileMappers.ts | 1 + .../models/percentileSourceTargetMappers.ts | 1 + .../src/models/percentileTargetMappers.ts | 1 + .../privateEndpointConnectionsMappers.ts | 120 ------- .../src/models/privateLinkResourcesMappers.ts | 119 ------- .../src/models/sqlResourcesMappers.ts | 8 +- .../src/models/tableResourcesMappers.ts | 8 +- .../src/operations/cassandraResources.ts | 40 +-- .../arm-cosmosdb/src/operations/collection.ts | 6 +- .../src/operations/collectionPartition.ts | 4 +- .../operations/collectionPartitionRegion.ts | 2 +- .../src/operations/collectionRegion.ts | 2 +- .../arm-cosmosdb/src/operations/database.ts | 6 +- .../src/operations/databaseAccountRegion.ts | 2 +- .../src/operations/databaseAccounts.ts | 36 +-- .../src/operations/gremlinResources.ts | 40 +-- .../arm-cosmosdb/src/operations/index.ts | 2 - .../src/operations/mongoDBResources.ts | 42 +-- .../src/operations/notebookWorkspaces.ts | 14 +- .../arm-cosmosdb/src/operations/operations.ts | 2 +- .../src/operations/partitionKeyRangeId.ts | 2 +- .../operations/partitionKeyRangeIdRegion.ts | 2 +- .../arm-cosmosdb/src/operations/percentile.ts | 2 +- .../src/operations/percentileSourceTarget.ts | 2 +- .../src/operations/percentileTarget.ts | 2 +- .../operations/privateEndpointConnections.ts | 278 ---------------- .../src/operations/privateLinkResources.ts | 149 --------- .../src/operations/sqlResources.ts | 66 ++-- .../src/operations/tableResources.ts | 20 +- 48 files changed, 451 insertions(+), 1185 deletions(-) delete mode 100644 sdk/cosmosdb/arm-cosmosdb/src/models/privateEndpointConnectionsMappers.ts delete mode 100644 sdk/cosmosdb/arm-cosmosdb/src/models/privateLinkResourcesMappers.ts delete mode 100644 sdk/cosmosdb/arm-cosmosdb/src/operations/privateEndpointConnections.ts delete mode 100644 sdk/cosmosdb/arm-cosmosdb/src/operations/privateLinkResources.ts diff --git a/sdk/cosmosdb/arm-cosmosdb/src/cosmosDBManagementClient.ts b/sdk/cosmosdb/arm-cosmosdb/src/cosmosDBManagementClient.ts index 4440e5e7d65d..9cf58ddf808c 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/cosmosDBManagementClient.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/cosmosDBManagementClient.ts @@ -36,8 +36,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 +64,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..1acbba2096af 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/cosmosDBManagementClientContext.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/cosmosDBManagementClientContext.ts @@ -17,6 +17,7 @@ const packageVersion = "9.1.0"; export class CosmosDBManagementClientContext extends msRestAzure.AzureServiceClient { credentials: msRest.ServiceClientCredentials; + apiVersion?: string; subscriptionId: string; /** @@ -43,6 +44,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..d015e58d57e1 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/models/cassandraResourcesMappers.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/models/cassandraResourcesMappers.ts @@ -7,6 +7,7 @@ */ 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..47fa7a69dbb1 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/models/collectionMappers.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/models/collectionMappers.ts @@ -7,6 +7,7 @@ */ 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..dc9314fde7b3 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/models/collectionPartitionMappers.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/models/collectionPartitionMappers.ts @@ -7,6 +7,7 @@ */ 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..ad4eec5bb57b 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/models/collectionPartitionRegionMappers.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/models/collectionPartitionRegionMappers.ts @@ -7,6 +7,7 @@ */ 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..9db5e4fd94cc 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/models/collectionRegionMappers.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/models/collectionRegionMappers.ts @@ -7,6 +7,7 @@ */ 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..9db5e4fd94cc 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/models/databaseAccountRegionMappers.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/models/databaseAccountRegionMappers.ts @@ -7,6 +7,7 @@ */ 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..ffe8c0c7b69f 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/models/databaseAccountsMappers.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/models/databaseAccountsMappers.ts @@ -7,6 +7,7 @@ */ 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..47fa7a69dbb1 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/models/databaseMappers.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/models/databaseMappers.ts @@ -7,6 +7,7 @@ */ 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..aa4921cf2a5a 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/models/gremlinResourcesMappers.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/models/gremlinResourcesMappers.ts @@ -7,6 +7,7 @@ */ 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..0d7299581777 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/models/index.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/models/index.ts @@ -151,10 +151,6 @@ 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; } /** @@ -199,14 +195,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 +207,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 +387,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 +414,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 +672,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 +716,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 +753,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 +799,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 +832,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 +922,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 +962,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 +1002,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 +1110,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 +1150,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 +1213,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 +1250,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 +1313,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 +1400,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 +1495,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 +1583,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 +1746,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 +1798,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 +1827,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 +1856,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 +1894,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 +1919,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 +1956,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 +1981,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 +2006,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 +2043,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 +2068,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 +2116,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; } /** @@ -2409,6 +2431,44 @@ export interface PartitionMetric extends Metric { readonly partitionKeyRangeId?: string; } +/** + * 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 a ARM tracked top level resource */ @@ -2473,27 +2533,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 +2757,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 +2902,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 +5894,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..fadbdf224e5d 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/models/mappers.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/models/mappers.ts @@ -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..17523a9efec4 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/models/mongoDBResourcesMappers.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/models/mongoDBResourcesMappers.ts @@ -7,6 +7,7 @@ */ 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..0296e75ab81e 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/models/notebookWorkspacesMappers.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/models/notebookWorkspacesMappers.ts @@ -7,6 +7,7 @@ */ 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..65fc7dd1800a 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/models/operationsMappers.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/models/operationsMappers.ts @@ -7,6 +7,7 @@ */ 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..dc28db2b2d56 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/models/parameters.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/models/parameters.ts @@ -35,28 +35,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 +130,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 +173,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..ad4eec5bb57b 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/models/partitionKeyRangeIdMappers.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/models/partitionKeyRangeIdMappers.ts @@ -7,6 +7,7 @@ */ 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..ad4eec5bb57b 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/models/partitionKeyRangeIdRegionMappers.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/models/partitionKeyRangeIdRegionMappers.ts @@ -7,6 +7,7 @@ */ 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..0b7dd679f5f9 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/models/percentileMappers.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/models/percentileMappers.ts @@ -7,6 +7,7 @@ */ 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..0b7dd679f5f9 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/models/percentileSourceTargetMappers.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/models/percentileSourceTargetMappers.ts @@ -7,6 +7,7 @@ */ 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..0b7dd679f5f9 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/models/percentileTargetMappers.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/models/percentileTargetMappers.ts @@ -7,6 +7,7 @@ */ 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 deleted file mode 100644 index 124b903874eb..000000000000 --- a/sdk/cosmosdb/arm-cosmosdb/src/models/privateEndpointConnectionsMappers.ts +++ /dev/null @@ -1,120 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -export { - ApiProperties, - ARMProxyResource, - ARMResourceProperties, - AutoscaleSettings, - AutoscaleSettingsResource, - AutoUpgradePolicyResource, - AzureEntityResource, - BaseResource, - Capability, - CassandraKeyspaceCreateUpdateParameters, - CassandraKeyspaceGetPropertiesOptions, - CassandraKeyspaceGetPropertiesResource, - CassandraKeyspaceGetResults, - CassandraKeyspaceResource, - CassandraPartitionKey, - CassandraSchema, - CassandraTableCreateUpdateParameters, - CassandraTableGetPropertiesOptions, - CassandraTableGetPropertiesResource, - CassandraTableGetResults, - CassandraTableResource, - CloudError, - ClusterKey, - Column, - CompositePath, - ConflictResolutionPolicy, - ConsistencyPolicy, - ContainerPartitionKey, - CorsPolicy, - CreateUpdateOptions, - DatabaseAccountCreateUpdateParameters, - DatabaseAccountGetResults, - ErrorResponse, - ExcludedPath, - FailoverPolicy, - GremlinDatabaseCreateUpdateParameters, - GremlinDatabaseGetPropertiesOptions, - GremlinDatabaseGetPropertiesResource, - GremlinDatabaseGetResults, - GremlinDatabaseResource, - GremlinGraphCreateUpdateParameters, - GremlinGraphGetPropertiesOptions, - GremlinGraphGetPropertiesResource, - GremlinGraphGetResults, - GremlinGraphResource, - IncludedPath, - Indexes, - IndexingPolicy, - IpAddressOrRange, - Location, - MongoDBCollectionCreateUpdateParameters, - MongoDBCollectionGetPropertiesOptions, - MongoDBCollectionGetPropertiesResource, - MongoDBCollectionGetResults, - MongoDBCollectionResource, - MongoDBDatabaseCreateUpdateParameters, - MongoDBDatabaseGetPropertiesOptions, - MongoDBDatabaseGetPropertiesResource, - MongoDBDatabaseGetResults, - MongoDBDatabaseResource, - MongoIndex, - MongoIndexKeys, - MongoIndexOptions, - NotebookWorkspace, - NotebookWorkspaceCreateUpdateParameters, - OptionsResource, - PrivateEndpointConnection, - PrivateEndpointConnectionListResult, - PrivateEndpointProperty, - PrivateLinkResource, - PrivateLinkServiceConnectionStateProperty, - ProxyResource, - Resource, - SpatialSpec, - SqlContainerCreateUpdateParameters, - SqlContainerGetPropertiesOptions, - SqlContainerGetPropertiesResource, - SqlContainerGetResults, - SqlContainerResource, - SqlDatabaseCreateUpdateParameters, - SqlDatabaseGetPropertiesOptions, - SqlDatabaseGetPropertiesResource, - SqlDatabaseGetResults, - SqlDatabaseResource, - SqlStoredProcedureCreateUpdateParameters, - SqlStoredProcedureGetPropertiesResource, - SqlStoredProcedureGetResults, - SqlStoredProcedureResource, - SqlTriggerCreateUpdateParameters, - SqlTriggerGetPropertiesResource, - SqlTriggerGetResults, - SqlTriggerResource, - SqlUserDefinedFunctionCreateUpdateParameters, - SqlUserDefinedFunctionGetPropertiesResource, - SqlUserDefinedFunctionGetResults, - SqlUserDefinedFunctionResource, - TableCreateUpdateParameters, - TableGetPropertiesOptions, - TableGetPropertiesResource, - TableGetResults, - TableResource, - ThroughputPolicyResource, - ThroughputSettingsGetPropertiesResource, - ThroughputSettingsGetResults, - ThroughputSettingsResource, - ThroughputSettingsUpdateParameters, - TrackedResource, - UniqueKey, - UniqueKeyPolicy, - VirtualNetworkRule -} from "../models/mappers"; diff --git a/sdk/cosmosdb/arm-cosmosdb/src/models/privateLinkResourcesMappers.ts b/sdk/cosmosdb/arm-cosmosdb/src/models/privateLinkResourcesMappers.ts deleted file mode 100644 index 581b05750533..000000000000 --- a/sdk/cosmosdb/arm-cosmosdb/src/models/privateLinkResourcesMappers.ts +++ /dev/null @@ -1,119 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -export { - ApiProperties, - ARMProxyResource, - ARMResourceProperties, - AutoscaleSettings, - AutoscaleSettingsResource, - AutoUpgradePolicyResource, - AzureEntityResource, - BaseResource, - Capability, - CassandraKeyspaceCreateUpdateParameters, - CassandraKeyspaceGetPropertiesOptions, - CassandraKeyspaceGetPropertiesResource, - CassandraKeyspaceGetResults, - CassandraKeyspaceResource, - CassandraPartitionKey, - CassandraSchema, - CassandraTableCreateUpdateParameters, - CassandraTableGetPropertiesOptions, - CassandraTableGetPropertiesResource, - CassandraTableGetResults, - CassandraTableResource, - CloudError, - ClusterKey, - Column, - CompositePath, - ConflictResolutionPolicy, - ConsistencyPolicy, - ContainerPartitionKey, - CorsPolicy, - CreateUpdateOptions, - DatabaseAccountCreateUpdateParameters, - DatabaseAccountGetResults, - ExcludedPath, - FailoverPolicy, - GremlinDatabaseCreateUpdateParameters, - GremlinDatabaseGetPropertiesOptions, - GremlinDatabaseGetPropertiesResource, - GremlinDatabaseGetResults, - GremlinDatabaseResource, - GremlinGraphCreateUpdateParameters, - GremlinGraphGetPropertiesOptions, - GremlinGraphGetPropertiesResource, - GremlinGraphGetResults, - GremlinGraphResource, - IncludedPath, - Indexes, - IndexingPolicy, - IpAddressOrRange, - Location, - MongoDBCollectionCreateUpdateParameters, - MongoDBCollectionGetPropertiesOptions, - MongoDBCollectionGetPropertiesResource, - MongoDBCollectionGetResults, - MongoDBCollectionResource, - MongoDBDatabaseCreateUpdateParameters, - MongoDBDatabaseGetPropertiesOptions, - MongoDBDatabaseGetPropertiesResource, - MongoDBDatabaseGetResults, - MongoDBDatabaseResource, - MongoIndex, - MongoIndexKeys, - MongoIndexOptions, - NotebookWorkspace, - NotebookWorkspaceCreateUpdateParameters, - OptionsResource, - PrivateEndpointConnection, - PrivateEndpointProperty, - PrivateLinkResource, - PrivateLinkResourceListResult, - PrivateLinkServiceConnectionStateProperty, - ProxyResource, - Resource, - SpatialSpec, - SqlContainerCreateUpdateParameters, - SqlContainerGetPropertiesOptions, - SqlContainerGetPropertiesResource, - SqlContainerGetResults, - SqlContainerResource, - SqlDatabaseCreateUpdateParameters, - SqlDatabaseGetPropertiesOptions, - SqlDatabaseGetPropertiesResource, - SqlDatabaseGetResults, - SqlDatabaseResource, - SqlStoredProcedureCreateUpdateParameters, - SqlStoredProcedureGetPropertiesResource, - SqlStoredProcedureGetResults, - SqlStoredProcedureResource, - SqlTriggerCreateUpdateParameters, - SqlTriggerGetPropertiesResource, - SqlTriggerGetResults, - SqlTriggerResource, - SqlUserDefinedFunctionCreateUpdateParameters, - SqlUserDefinedFunctionGetPropertiesResource, - SqlUserDefinedFunctionGetResults, - SqlUserDefinedFunctionResource, - TableCreateUpdateParameters, - TableGetPropertiesOptions, - TableGetPropertiesResource, - TableGetResults, - TableResource, - ThroughputPolicyResource, - ThroughputSettingsGetPropertiesResource, - ThroughputSettingsGetResults, - ThroughputSettingsResource, - ThroughputSettingsUpdateParameters, - TrackedResource, - UniqueKey, - UniqueKeyPolicy, - VirtualNetworkRule -} from "../models/mappers"; diff --git a/sdk/cosmosdb/arm-cosmosdb/src/models/sqlResourcesMappers.ts b/sdk/cosmosdb/arm-cosmosdb/src/models/sqlResourcesMappers.ts index 03d52a4ee24d..99b29f3c59ce 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/models/sqlResourcesMappers.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/models/sqlResourcesMappers.ts @@ -7,6 +7,7 @@ */ 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..885910715b4f 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/models/tableResourcesMappers.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/models/tableResourcesMappers.ts @@ -7,6 +7,7 @@ */ 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..fc2f863c4de8 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/operations/cassandraResources.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/operations/cassandraResources.ts @@ -627,7 +627,7 @@ const listCassandraKeyspacesOperationSpec: msRest.OperationSpec = { Parameters.accountName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -653,7 +653,7 @@ const getCassandraKeyspaceOperationSpec: msRest.OperationSpec = { Parameters.keyspaceName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -679,7 +679,7 @@ const getCassandraKeyspaceThroughputOperationSpec: msRest.OperationSpec = { Parameters.keyspaceName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -705,7 +705,7 @@ const listCassandraTablesOperationSpec: msRest.OperationSpec = { Parameters.keyspaceName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -732,7 +732,7 @@ const getCassandraTableOperationSpec: msRest.OperationSpec = { Parameters.tableName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -759,7 +759,7 @@ const getCassandraTableThroughputOperationSpec: msRest.OperationSpec = { Parameters.tableName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -785,7 +785,7 @@ const beginCreateUpdateCassandraKeyspaceOperationSpec: msRest.OperationSpec = { Parameters.keyspaceName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -819,7 +819,7 @@ const beginDeleteCassandraKeyspaceOperationSpec: msRest.OperationSpec = { Parameters.keyspaceName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -844,7 +844,7 @@ const beginUpdateCassandraKeyspaceThroughputOperationSpec: msRest.OperationSpec Parameters.keyspaceName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -878,7 +878,7 @@ const beginMigrateCassandraKeyspaceToAutoscaleOperationSpec: msRest.OperationSpe Parameters.keyspaceName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -889,7 +889,7 @@ const beginMigrateCassandraKeyspaceToAutoscaleOperationSpec: msRest.OperationSpe }, 202: {}, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponseUpdatedFormat } }, serializer @@ -905,7 +905,7 @@ const beginMigrateCassandraKeyspaceToManualThroughputOperationSpec: msRest.Opera Parameters.keyspaceName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -916,7 +916,7 @@ const beginMigrateCassandraKeyspaceToManualThroughputOperationSpec: msRest.Opera }, 202: {}, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponseUpdatedFormat } }, serializer @@ -933,7 +933,7 @@ const beginCreateUpdateCassandraTableOperationSpec: msRest.OperationSpec = { Parameters.tableName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -968,7 +968,7 @@ const beginDeleteCassandraTableOperationSpec: msRest.OperationSpec = { Parameters.tableName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -994,7 +994,7 @@ const beginUpdateCassandraTableThroughputOperationSpec: msRest.OperationSpec = { Parameters.tableName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -1029,7 +1029,7 @@ const beginMigrateCassandraTableToAutoscaleOperationSpec: msRest.OperationSpec = Parameters.tableName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -1040,7 +1040,7 @@ const beginMigrateCassandraTableToAutoscaleOperationSpec: msRest.OperationSpec = }, 202: {}, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponseUpdatedFormat } }, serializer @@ -1057,7 +1057,7 @@ const beginMigrateCassandraTableToManualThroughputOperationSpec: msRest.Operatio Parameters.tableName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -1068,7 +1068,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..d05adbee199f 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/operations/collection.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/operations/collection.ts @@ -171,7 +171,7 @@ const listMetricsOperationSpec: msRest.OperationSpec = { Parameters.collectionRid ], queryParameters: [ - Parameters.apiVersion0, + Parameters.apiVersion, Parameters.filter0 ], headerParameters: [ @@ -199,7 +199,7 @@ const listUsagesOperationSpec: msRest.OperationSpec = { Parameters.collectionRid ], queryParameters: [ - Parameters.apiVersion0, + Parameters.apiVersion, Parameters.filter1 ], headerParameters: [ @@ -227,7 +227,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..d5755d351c6b 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/operations/collectionPartition.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/operations/collectionPartition.ts @@ -131,7 +131,7 @@ const listMetricsOperationSpec: msRest.OperationSpec = { Parameters.collectionRid ], queryParameters: [ - Parameters.apiVersion0, + Parameters.apiVersion, Parameters.filter0 ], headerParameters: [ @@ -159,7 +159,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..695f1d9f6827 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/operations/collectionPartitionRegion.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/operations/collectionPartitionRegion.ts @@ -96,7 +96,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..1f9a7bfb99d1 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/operations/collectionRegion.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/operations/collectionRegion.ts @@ -96,7 +96,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..95b335c01097 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/operations/database.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/operations/database.ts @@ -158,7 +158,7 @@ const listMetricsOperationSpec: msRest.OperationSpec = { Parameters.databaseRid ], queryParameters: [ - Parameters.apiVersion0, + Parameters.apiVersion, Parameters.filter0 ], headerParameters: [ @@ -185,7 +185,7 @@ const listUsagesOperationSpec: msRest.OperationSpec = { Parameters.databaseRid ], queryParameters: [ - Parameters.apiVersion0, + Parameters.apiVersion, Parameters.filter1 ], headerParameters: [ @@ -212,7 +212,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..88398b5e0230 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/operations/databaseAccountRegion.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/operations/databaseAccountRegion.ts @@ -85,7 +85,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..bf5137a9c2a2 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/operations/databaseAccounts.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/operations/databaseAccounts.ts @@ -622,7 +622,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.accountName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -645,7 +645,7 @@ const listOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -669,7 +669,7 @@ const listByResourceGroupOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -694,7 +694,7 @@ const listKeysOperationSpec: msRest.OperationSpec = { Parameters.accountName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -719,7 +719,7 @@ const listConnectionStringsOperationSpec: msRest.OperationSpec = { Parameters.accountName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -744,7 +744,7 @@ const getReadOnlyKeysOperationSpec: msRest.OperationSpec = { Parameters.accountName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -769,7 +769,7 @@ const listReadOnlyKeysOperationSpec: msRest.OperationSpec = { Parameters.accountName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -792,7 +792,7 @@ const checkNameExistsOperationSpec: msRest.OperationSpec = { Parameters.accountName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -816,7 +816,7 @@ const listMetricsOperationSpec: msRest.OperationSpec = { Parameters.accountName ], queryParameters: [ - Parameters.apiVersion0, + Parameters.apiVersion, Parameters.filter0 ], headerParameters: [ @@ -842,7 +842,7 @@ const listUsagesOperationSpec: msRest.OperationSpec = { Parameters.accountName ], queryParameters: [ - Parameters.apiVersion0, + Parameters.apiVersion, Parameters.filter1 ], headerParameters: [ @@ -868,7 +868,7 @@ const listMetricDefinitionsOperationSpec: msRest.OperationSpec = { Parameters.accountName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -893,7 +893,7 @@ const beginUpdateOperationSpec: msRest.OperationSpec = { Parameters.accountName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -925,7 +925,7 @@ const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { Parameters.accountName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -957,7 +957,7 @@ const beginDeleteMethodOperationSpec: msRest.OperationSpec = { Parameters.accountName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -981,7 +981,7 @@ const beginFailoverPriorityChangeOperationSpec: msRest.OperationSpec = { Parameters.accountName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -1012,7 +1012,7 @@ const beginOfflineRegionOperationSpec: msRest.OperationSpec = { Parameters.accountName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -1043,7 +1043,7 @@ const beginOnlineRegionOperationSpec: msRest.OperationSpec = { Parameters.accountName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -1074,7 +1074,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..9aebdc9acd85 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/operations/gremlinResources.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/operations/gremlinResources.ts @@ -627,7 +627,7 @@ const listGremlinDatabasesOperationSpec: msRest.OperationSpec = { Parameters.accountName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -653,7 +653,7 @@ const getGremlinDatabaseOperationSpec: msRest.OperationSpec = { Parameters.databaseName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -679,7 +679,7 @@ const getGremlinDatabaseThroughputOperationSpec: msRest.OperationSpec = { Parameters.databaseName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -705,7 +705,7 @@ const listGremlinGraphsOperationSpec: msRest.OperationSpec = { Parameters.databaseName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -732,7 +732,7 @@ const getGremlinGraphOperationSpec: msRest.OperationSpec = { Parameters.graphName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -759,7 +759,7 @@ const getGremlinGraphThroughputOperationSpec: msRest.OperationSpec = { Parameters.graphName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -785,7 +785,7 @@ const beginCreateUpdateGremlinDatabaseOperationSpec: msRest.OperationSpec = { Parameters.databaseName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -819,7 +819,7 @@ const beginDeleteGremlinDatabaseOperationSpec: msRest.OperationSpec = { Parameters.databaseName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -844,7 +844,7 @@ const beginUpdateGremlinDatabaseThroughputOperationSpec: msRest.OperationSpec = Parameters.databaseName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -878,7 +878,7 @@ const beginMigrateGremlinDatabaseToAutoscaleOperationSpec: msRest.OperationSpec Parameters.databaseName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -889,7 +889,7 @@ const beginMigrateGremlinDatabaseToAutoscaleOperationSpec: msRest.OperationSpec }, 202: {}, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponseUpdatedFormat } }, serializer @@ -905,7 +905,7 @@ const beginMigrateGremlinDatabaseToManualThroughputOperationSpec: msRest.Operati Parameters.databaseName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -916,7 +916,7 @@ const beginMigrateGremlinDatabaseToManualThroughputOperationSpec: msRest.Operati }, 202: {}, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponseUpdatedFormat } }, serializer @@ -933,7 +933,7 @@ const beginCreateUpdateGremlinGraphOperationSpec: msRest.OperationSpec = { Parameters.graphName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -968,7 +968,7 @@ const beginDeleteGremlinGraphOperationSpec: msRest.OperationSpec = { Parameters.graphName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -994,7 +994,7 @@ const beginUpdateGremlinGraphThroughputOperationSpec: msRest.OperationSpec = { Parameters.graphName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -1029,7 +1029,7 @@ const beginMigrateGremlinGraphToAutoscaleOperationSpec: msRest.OperationSpec = { Parameters.graphName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -1040,7 +1040,7 @@ const beginMigrateGremlinGraphToAutoscaleOperationSpec: msRest.OperationSpec = { }, 202: {}, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponseUpdatedFormat } }, serializer @@ -1057,7 +1057,7 @@ const beginMigrateGremlinGraphToManualThroughputOperationSpec: msRest.OperationS Parameters.graphName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -1068,7 +1068,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..a7686ae9b7cd 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/operations/index.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/operations/index.ts @@ -27,5 +27,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..dbd6a6c6dd48 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/operations/mongoDBResources.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/operations/mongoDBResources.ts @@ -627,7 +627,7 @@ const listMongoDBDatabasesOperationSpec: msRest.OperationSpec = { Parameters.accountName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -653,7 +653,7 @@ const getMongoDBDatabaseOperationSpec: msRest.OperationSpec = { Parameters.databaseName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -679,7 +679,7 @@ const getMongoDBDatabaseThroughputOperationSpec: msRest.OperationSpec = { Parameters.databaseName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -705,7 +705,7 @@ const listMongoDBCollectionsOperationSpec: msRest.OperationSpec = { Parameters.databaseName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -732,7 +732,7 @@ const getMongoDBCollectionOperationSpec: msRest.OperationSpec = { Parameters.collectionName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -759,7 +759,7 @@ const getMongoDBCollectionThroughputOperationSpec: msRest.OperationSpec = { Parameters.collectionName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -785,7 +785,7 @@ const beginCreateUpdateMongoDBDatabaseOperationSpec: msRest.OperationSpec = { Parameters.databaseName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -819,7 +819,7 @@ const beginDeleteMongoDBDatabaseOperationSpec: msRest.OperationSpec = { Parameters.databaseName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -844,7 +844,7 @@ const beginUpdateMongoDBDatabaseThroughputOperationSpec: msRest.OperationSpec = Parameters.databaseName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -862,7 +862,7 @@ const beginUpdateMongoDBDatabaseThroughputOperationSpec: msRest.OperationSpec = }, 202: {}, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponseUpdatedFormat } }, serializer @@ -878,7 +878,7 @@ const beginMigrateMongoDBDatabaseToAutoscaleOperationSpec: msRest.OperationSpec Parameters.databaseName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -889,7 +889,7 @@ const beginMigrateMongoDBDatabaseToAutoscaleOperationSpec: msRest.OperationSpec }, 202: {}, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponseUpdatedFormat } }, serializer @@ -905,7 +905,7 @@ const beginMigrateMongoDBDatabaseToManualThroughputOperationSpec: msRest.Operati Parameters.databaseName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -916,7 +916,7 @@ const beginMigrateMongoDBDatabaseToManualThroughputOperationSpec: msRest.Operati }, 202: {}, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponseUpdatedFormat } }, serializer @@ -933,7 +933,7 @@ const beginCreateUpdateMongoDBCollectionOperationSpec: msRest.OperationSpec = { Parameters.collectionName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -968,7 +968,7 @@ const beginDeleteMongoDBCollectionOperationSpec: msRest.OperationSpec = { Parameters.collectionName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -994,7 +994,7 @@ const beginUpdateMongoDBCollectionThroughputOperationSpec: msRest.OperationSpec Parameters.collectionName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -1029,7 +1029,7 @@ const beginMigrateMongoDBCollectionToAutoscaleOperationSpec: msRest.OperationSpe Parameters.collectionName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -1040,7 +1040,7 @@ const beginMigrateMongoDBCollectionToAutoscaleOperationSpec: msRest.OperationSpe }, 202: {}, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponseUpdatedFormat } }, serializer @@ -1057,7 +1057,7 @@ const beginMigrateMongoDBCollectionToManualThroughputOperationSpec: msRest.Opera Parameters.collectionName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -1068,7 +1068,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..38d54373f2f8 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/operations/notebookWorkspaces.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/operations/notebookWorkspaces.ts @@ -255,7 +255,7 @@ const listByDatabaseAccountOperationSpec: msRest.OperationSpec = { Parameters.accountName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -281,7 +281,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.notebookWorkspaceName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -307,7 +307,7 @@ const listConnectionInfoOperationSpec: msRest.OperationSpec = { Parameters.notebookWorkspaceName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -333,7 +333,7 @@ const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { Parameters.notebookWorkspaceName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -366,7 +366,7 @@ const beginDeleteMethodOperationSpec: msRest.OperationSpec = { Parameters.notebookWorkspaceName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -391,7 +391,7 @@ const beginRegenerateAuthTokenOperationSpec: msRest.OperationSpec = { Parameters.notebookWorkspaceName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -416,7 +416,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..29d658a52ea0 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/operations/operations.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/operations/operations.ts @@ -85,7 +85,7 @@ const listOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "providers/Microsoft.DocumentDB/operations", queryParameters: [ - Parameters.apiVersion0 + 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..07d1eca07b1d 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/operations/partitionKeyRangeId.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/operations/partitionKeyRangeId.ts @@ -95,7 +95,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..3b2dfe094f59 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/operations/partitionKeyRangeIdRegion.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/operations/partitionKeyRangeIdRegion.ts @@ -101,7 +101,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..a8c281403387 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/operations/percentile.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/operations/percentile.ts @@ -81,7 +81,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..5cde2132f996 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/operations/percentileSourceTarget.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/operations/percentileSourceTarget.ts @@ -97,7 +97,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..69ea0dabf44c 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/operations/percentileTarget.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/operations/percentileTarget.ts @@ -89,7 +89,7 @@ const listMetricsOperationSpec: msRest.OperationSpec = { Parameters.targetRegion ], queryParameters: [ - Parameters.apiVersion0, + Parameters.apiVersion, Parameters.filter0 ], headerParameters: [ diff --git a/sdk/cosmosdb/arm-cosmosdb/src/operations/privateEndpointConnections.ts b/sdk/cosmosdb/arm-cosmosdb/src/operations/privateEndpointConnections.ts deleted file mode 100644 index 89392e52ce95..000000000000 --- a/sdk/cosmosdb/arm-cosmosdb/src/operations/privateEndpointConnections.ts +++ /dev/null @@ -1,278 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. - */ - -import * as msRest from "@azure/ms-rest-js"; -import * as msRestAzure from "@azure/ms-rest-azure-js"; -import * as Models from "../models"; -import * as Mappers from "../models/privateEndpointConnectionsMappers"; -import * as Parameters from "../models/parameters"; -import { CosmosDBManagementClientContext } from "../cosmosDBManagementClientContext"; - -/** Class representing a PrivateEndpointConnections. */ -export class PrivateEndpointConnections { - private readonly client: CosmosDBManagementClientContext; - - /** - * Create a PrivateEndpointConnections. - * @param {CosmosDBManagementClientContext} client Reference to the service client. - */ - constructor(client: CosmosDBManagementClientContext) { - this.client = client; - } - - /** - * List all private endpoint connections on a Cosmos DB account. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName Cosmos DB database account name. - * @param [options] The optional parameters - * @returns Promise - */ - listByDatabaseAccount(resourceGroupName: string, accountName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName Cosmos DB database account name. - * @param callback The callback - */ - listByDatabaseAccount(resourceGroupName: string, accountName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName Cosmos DB database account name. - * @param options The optional parameters - * @param callback The callback - */ - listByDatabaseAccount(resourceGroupName: string, accountName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByDatabaseAccount(resourceGroupName: string, accountName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - accountName, - options - }, - listByDatabaseAccountOperationSpec, - callback) as Promise; - } - - /** - * Gets a private endpoint connection. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName Cosmos DB database account name. - * @param privateEndpointConnectionName The name of the private endpoint connection. - * @param [options] The optional parameters - * @returns Promise - */ - get(resourceGroupName: string, accountName: string, privateEndpointConnectionName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName Cosmos DB database account name. - * @param privateEndpointConnectionName The name of the private endpoint connection. - * @param callback The callback - */ - get(resourceGroupName: string, accountName: string, privateEndpointConnectionName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName Cosmos DB database account name. - * @param privateEndpointConnectionName The name of the private endpoint connection. - * @param options The optional parameters - * @param callback The callback - */ - get(resourceGroupName: string, accountName: string, privateEndpointConnectionName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, accountName: string, privateEndpointConnectionName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - accountName, - privateEndpointConnectionName, - options - }, - getOperationSpec, - callback) as Promise; - } - - /** - * Approve or reject a private endpoint connection with a given name. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName Cosmos DB database account name. - * @param privateEndpointConnectionName The name of the private endpoint connection. - * @param parameters - * @param [options] The optional parameters - * @returns Promise - */ - createOrUpdate(resourceGroupName: string, accountName: string, privateEndpointConnectionName: string, parameters: Models.PrivateEndpointConnection, options?: msRest.RequestOptionsBase): Promise { - return this.beginCreateOrUpdate(resourceGroupName,accountName,privateEndpointConnectionName,parameters,options) - .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; - } - - /** - * Deletes a private endpoint connection with a given name. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName Cosmos DB database account name. - * @param privateEndpointConnectionName The name of the private endpoint connection. - * @param [options] The optional parameters - * @returns Promise - */ - deleteMethod(resourceGroupName: string, accountName: string, privateEndpointConnectionName: string, options?: msRest.RequestOptionsBase): Promise { - return this.beginDeleteMethod(resourceGroupName,accountName,privateEndpointConnectionName,options) - .then(lroPoller => lroPoller.pollUntilFinished()); - } - - /** - * Approve or reject a private endpoint connection with a given name. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName Cosmos DB database account name. - * @param privateEndpointConnectionName The name of the private endpoint connection. - * @param parameters - * @param [options] The optional parameters - * @returns Promise - */ - beginCreateOrUpdate(resourceGroupName: string, accountName: string, privateEndpointConnectionName: string, parameters: Models.PrivateEndpointConnection, options?: msRest.RequestOptionsBase): Promise { - return this.client.sendLRORequest( - { - resourceGroupName, - accountName, - privateEndpointConnectionName, - parameters, - options - }, - beginCreateOrUpdateOperationSpec, - options); - } - - /** - * Deletes a private endpoint connection with a given name. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName Cosmos DB database account name. - * @param privateEndpointConnectionName The name of the private endpoint connection. - * @param [options] The optional parameters - * @returns Promise - */ - beginDeleteMethod(resourceGroupName: string, accountName: string, privateEndpointConnectionName: string, options?: msRest.RequestOptionsBase): Promise { - return this.client.sendLRORequest( - { - resourceGroupName, - accountName, - privateEndpointConnectionName, - options - }, - beginDeleteMethodOperationSpec, - options); - } -} - -// Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const listByDatabaseAccountOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/privateEndpointConnections", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.accountName - ], - queryParameters: [ - Parameters.apiVersion1 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.PrivateEndpointConnectionListResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const getOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/privateEndpointConnections/{privateEndpointConnectionName}", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.accountName, - Parameters.privateEndpointConnectionName - ], - queryParameters: [ - Parameters.apiVersion1 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.PrivateEndpointConnection - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { - httpMethod: "PUT", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/privateEndpointConnections/{privateEndpointConnectionName}", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.accountName, - Parameters.privateEndpointConnectionName - ], - queryParameters: [ - Parameters.apiVersion1 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - requestBody: { - parameterPath: "parameters", - mapper: { - ...Mappers.PrivateEndpointConnection, - required: true - } - }, - responses: { - 200: { - bodyMapper: Mappers.PrivateEndpointConnection - }, - 202: {}, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - serializer -}; - -const beginDeleteMethodOperationSpec: msRest.OperationSpec = { - httpMethod: "DELETE", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/privateEndpointConnections/{privateEndpointConnectionName}", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.accountName, - Parameters.privateEndpointConnectionName - ], - queryParameters: [ - Parameters.apiVersion1 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 202: {}, - 204: {}, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - serializer -}; diff --git a/sdk/cosmosdb/arm-cosmosdb/src/operations/privateLinkResources.ts b/sdk/cosmosdb/arm-cosmosdb/src/operations/privateLinkResources.ts deleted file mode 100644 index 76a931a235fa..000000000000 --- a/sdk/cosmosdb/arm-cosmosdb/src/operations/privateLinkResources.ts +++ /dev/null @@ -1,149 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. - */ - -import * as msRest from "@azure/ms-rest-js"; -import * as Models from "../models"; -import * as Mappers from "../models/privateLinkResourcesMappers"; -import * as Parameters from "../models/parameters"; -import { CosmosDBManagementClientContext } from "../cosmosDBManagementClientContext"; - -/** Class representing a PrivateLinkResources. */ -export class PrivateLinkResources { - private readonly client: CosmosDBManagementClientContext; - - /** - * Create a PrivateLinkResources. - * @param {CosmosDBManagementClientContext} client Reference to the service client. - */ - constructor(client: CosmosDBManagementClientContext) { - this.client = client; - } - - /** - * Gets the private link resources that need to be created for a Cosmos DB account. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName Cosmos DB database account name. - * @param [options] The optional parameters - * @returns Promise - */ - listByDatabaseAccount(resourceGroupName: string, accountName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName Cosmos DB database account name. - * @param callback The callback - */ - listByDatabaseAccount(resourceGroupName: string, accountName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName Cosmos DB database account name. - * @param options The optional parameters - * @param callback The callback - */ - listByDatabaseAccount(resourceGroupName: string, accountName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByDatabaseAccount(resourceGroupName: string, accountName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - accountName, - options - }, - listByDatabaseAccountOperationSpec, - callback) as Promise; - } - - /** - * Gets the private link resources that need to be created for a Cosmos DB account. - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName Cosmos DB database account name. - * @param groupName The name of the private link resource. - * @param [options] The optional parameters - * @returns Promise - */ - get(resourceGroupName: string, accountName: string, groupName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName Cosmos DB database account name. - * @param groupName The name of the private link resource. - * @param callback The callback - */ - get(resourceGroupName: string, accountName: string, groupName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName Cosmos DB database account name. - * @param groupName The name of the private link resource. - * @param options The optional parameters - * @param callback The callback - */ - get(resourceGroupName: string, accountName: string, groupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, accountName: string, groupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - accountName, - groupName, - options - }, - getOperationSpec, - callback) as Promise; - } -} - -// Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const listByDatabaseAccountOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/privateLinkResources", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.accountName - ], - queryParameters: [ - Parameters.apiVersion1 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.PrivateLinkResourceListResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const getOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/privateLinkResources/{groupName}", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.accountName, - Parameters.groupName - ], - queryParameters: [ - Parameters.apiVersion1 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.PrivateLinkResource - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; diff --git a/sdk/cosmosdb/arm-cosmosdb/src/operations/sqlResources.ts b/sdk/cosmosdb/arm-cosmosdb/src/operations/sqlResources.ts index 3392930254a7..841249194782 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/operations/sqlResources.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/operations/sqlResources.ts @@ -1122,7 +1122,7 @@ const listSqlDatabasesOperationSpec: msRest.OperationSpec = { Parameters.accountName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -1148,7 +1148,7 @@ const getSqlDatabaseOperationSpec: msRest.OperationSpec = { Parameters.databaseName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -1174,7 +1174,7 @@ const getSqlDatabaseThroughputOperationSpec: msRest.OperationSpec = { Parameters.databaseName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -1200,7 +1200,7 @@ const listSqlContainersOperationSpec: msRest.OperationSpec = { Parameters.databaseName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -1227,7 +1227,7 @@ const getSqlContainerOperationSpec: msRest.OperationSpec = { Parameters.containerName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -1254,7 +1254,7 @@ const getSqlContainerThroughputOperationSpec: msRest.OperationSpec = { Parameters.containerName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -1281,7 +1281,7 @@ const listSqlStoredProceduresOperationSpec: msRest.OperationSpec = { Parameters.containerName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -1291,7 +1291,7 @@ const listSqlStoredProceduresOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.SqlStoredProcedureListResult }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponseUpdatedFormat } }, serializer @@ -1309,7 +1309,7 @@ const getSqlStoredProcedureOperationSpec: msRest.OperationSpec = { Parameters.storedProcedureName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -1336,7 +1336,7 @@ const listSqlUserDefinedFunctionsOperationSpec: msRest.OperationSpec = { Parameters.containerName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -1364,7 +1364,7 @@ const getSqlUserDefinedFunctionOperationSpec: msRest.OperationSpec = { Parameters.userDefinedFunctionName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -1391,7 +1391,7 @@ const listSqlTriggersOperationSpec: msRest.OperationSpec = { Parameters.containerName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -1419,7 +1419,7 @@ const getSqlTriggerOperationSpec: msRest.OperationSpec = { Parameters.triggerName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -1445,7 +1445,7 @@ const beginCreateUpdateSqlDatabaseOperationSpec: msRest.OperationSpec = { Parameters.databaseName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -1479,7 +1479,7 @@ const beginDeleteSqlDatabaseOperationSpec: msRest.OperationSpec = { Parameters.databaseName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -1504,7 +1504,7 @@ const beginUpdateSqlDatabaseThroughputOperationSpec: msRest.OperationSpec = { Parameters.databaseName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -1538,7 +1538,7 @@ const beginMigrateSqlDatabaseToAutoscaleOperationSpec: msRest.OperationSpec = { Parameters.databaseName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -1549,7 +1549,7 @@ const beginMigrateSqlDatabaseToAutoscaleOperationSpec: msRest.OperationSpec = { }, 202: {}, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponseUpdatedFormat } }, serializer @@ -1565,7 +1565,7 @@ const beginMigrateSqlDatabaseToManualThroughputOperationSpec: msRest.OperationSp Parameters.databaseName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -1576,7 +1576,7 @@ const beginMigrateSqlDatabaseToManualThroughputOperationSpec: msRest.OperationSp }, 202: {}, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponseUpdatedFormat } }, serializer @@ -1593,7 +1593,7 @@ const beginCreateUpdateSqlContainerOperationSpec: msRest.OperationSpec = { Parameters.containerName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -1628,7 +1628,7 @@ const beginDeleteSqlContainerOperationSpec: msRest.OperationSpec = { Parameters.containerName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -1654,7 +1654,7 @@ const beginUpdateSqlContainerThroughputOperationSpec: msRest.OperationSpec = { Parameters.containerName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -1689,7 +1689,7 @@ const beginMigrateSqlContainerToAutoscaleOperationSpec: msRest.OperationSpec = { Parameters.containerName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -1700,7 +1700,7 @@ const beginMigrateSqlContainerToAutoscaleOperationSpec: msRest.OperationSpec = { }, 202: {}, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponseUpdatedFormat } }, serializer @@ -1717,7 +1717,7 @@ const beginMigrateSqlContainerToManualThroughputOperationSpec: msRest.OperationS Parameters.containerName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -1728,7 +1728,7 @@ const beginMigrateSqlContainerToManualThroughputOperationSpec: msRest.OperationS }, 202: {}, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponseUpdatedFormat } }, serializer @@ -1746,7 +1746,7 @@ const beginCreateUpdateSqlStoredProcedureOperationSpec: msRest.OperationSpec = { Parameters.storedProcedureName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -1782,7 +1782,7 @@ const beginDeleteSqlStoredProcedureOperationSpec: msRest.OperationSpec = { Parameters.storedProcedureName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -1809,7 +1809,7 @@ const beginCreateUpdateSqlUserDefinedFunctionOperationSpec: msRest.OperationSpec Parameters.userDefinedFunctionName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -1845,7 +1845,7 @@ const beginDeleteSqlUserDefinedFunctionOperationSpec: msRest.OperationSpec = { Parameters.userDefinedFunctionName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -1872,7 +1872,7 @@ const beginCreateUpdateSqlTriggerOperationSpec: msRest.OperationSpec = { Parameters.triggerName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -1908,7 +1908,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..0ee66e625cc9 100644 --- a/sdk/cosmosdb/arm-cosmosdb/src/operations/tableResources.ts +++ b/sdk/cosmosdb/arm-cosmosdb/src/operations/tableResources.ts @@ -317,7 +317,7 @@ const listTablesOperationSpec: msRest.OperationSpec = { Parameters.accountName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -343,7 +343,7 @@ const getTableOperationSpec: msRest.OperationSpec = { Parameters.tableName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -369,7 +369,7 @@ const getTableThroughputOperationSpec: msRest.OperationSpec = { Parameters.tableName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -395,7 +395,7 @@ const beginCreateUpdateTableOperationSpec: msRest.OperationSpec = { Parameters.tableName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -429,7 +429,7 @@ const beginDeleteTableOperationSpec: msRest.OperationSpec = { Parameters.tableName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -454,7 +454,7 @@ const beginUpdateTableThroughputOperationSpec: msRest.OperationSpec = { Parameters.tableName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -488,7 +488,7 @@ const beginMigrateTableToAutoscaleOperationSpec: msRest.OperationSpec = { Parameters.tableName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -499,7 +499,7 @@ const beginMigrateTableToAutoscaleOperationSpec: msRest.OperationSpec = { }, 202: {}, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponseUpdatedFormat } }, serializer @@ -515,7 +515,7 @@ const beginMigrateTableToManualThroughputOperationSpec: msRest.OperationSpec = { Parameters.tableName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage @@ -526,7 +526,7 @@ const beginMigrateTableToManualThroughputOperationSpec: msRest.OperationSpec = { }, 202: {}, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponseUpdatedFormat } }, serializer