From 44125c1c093a6aad2b3e563203e96d6a6d18f4c1 Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Sun, 28 Apr 2019 16:51:18 +0000 Subject: [PATCH 1/2] Generated from 6690d07ca931ea6321bdbacdf241528248a87caa Fixed broken Sku reference --- sdk/sql/arm-sql/lib/models/index.ts | 64 +++++++++++++++++++++++------ 1 file changed, 51 insertions(+), 13 deletions(-) diff --git a/sdk/sql/arm-sql/lib/models/index.ts b/sdk/sql/arm-sql/lib/models/index.ts index c511582ef1da..54346a78851a 100644 --- a/sdk/sql/arm-sql/lib/models/index.ts +++ b/sdk/sql/arm-sql/lib/models/index.ts @@ -694,9 +694,21 @@ export interface ImportRequest extends ExportRequest { databaseName: string; /** * @member {DatabaseEdition} edition The edition for the database being - * created. Possible values include: 'Web', 'Business', 'Basic', 'Standard', + * created. + * + * To determine the editions that are available to your subscription in an + * Azure location, use the `Capabilities_ListByLocation` REST API or one of + * the following commands: + * + * ```azurecli + * az sql db list-editions -l -o table + * ```` + * + * ```powershell + * Get-AzSqlServerServiceObjective -Location + * ````. Possible values include: 'Web', 'Business', 'Basic', 'Standard', * 'Premium', 'PremiumRS', 'Free', 'Stretch', 'DataWarehouse', 'System', - * 'System2' + * 'System2', 'GeneralPurpose', 'BusinessCritical', 'Hyperscale' */ edition: DatabaseEdition; /** @@ -937,7 +949,7 @@ export interface RecommendedElasticPool extends ProxyResource { * @member {ElasticPoolEdition} [databaseEdition] The edition of the * recommended elastic pool. The ElasticPoolEdition enumeration contains all * the valid editions. Possible values include: 'Basic', 'Standard', - * 'Premium' + * 'Premium', 'GeneralPurpose', 'BusinessCritical' * **NOTE: This property will not be serialized. It can only be populated by * the server.** */ @@ -6007,7 +6019,20 @@ export interface LocationCapabilities { */ export interface Database extends TrackedResource { /** - * @member {Sku} [sku] The name and tier of the SKU. + * @member {Sku} [sku] The database SKU. + * + * To determine the SKUs (including the SKU name, tier/edition, family, and + * capacity) that are available to your subscription in an Azure location, + * use the `Capabilities_ListByLocation` REST API or one of the following + * interfaces: + * + * ```azurecli + * az sql db list-editions -l -o table + * ```` + * + * ```powershell + * Get-AzSqlServerServiceObjective -Location + * ```` */ sku?: Sku; /** @@ -6093,7 +6118,8 @@ export interface Database extends TrackedResource { * values include: 'Online', 'Restoring', 'RecoveryPending', 'Recovering', * 'Suspect', 'Offline', 'Standby', 'Shutdown', 'EmergencyMode', * 'AutoClosed', 'Copying', 'Creating', 'Inaccessible', 'OfflineSecondary', - * 'Pausing', 'Paused', 'Resuming', 'Scaling' + * 'Pausing', 'Paused', 'Resuming', 'Scaling', + * 'OfflineChangingDwPerformanceTiers', 'OnlineChangingDwPerformanceTiers' * **NOTE: This property will not be serialized. It can only be populated by * the server.** */ @@ -6308,7 +6334,8 @@ export interface DatabaseUpdate { * values include: 'Online', 'Restoring', 'RecoveryPending', 'Recovering', * 'Suspect', 'Offline', 'Standby', 'Shutdown', 'EmergencyMode', * 'AutoClosed', 'Copying', 'Creating', 'Inaccessible', 'OfflineSecondary', - * 'Pausing', 'Paused', 'Resuming', 'Scaling' + * 'Pausing', 'Paused', 'Resuming', 'Scaling', + * 'OfflineChangingDwPerformanceTiers', 'OnlineChangingDwPerformanceTiers' * **NOTE: This property will not be serialized. It can only be populated by * the server.** */ @@ -6487,7 +6514,16 @@ export interface ElasticPoolPerDatabaseSettings { */ export interface ElasticPool extends TrackedResource { /** - * @member {Sku} [sku] + * @member {Sku} [sku] The elastic pool SKU. + * + * To determine the SKUs (including the SKU name, tier/edition, family, and + * capacity) that are available to your subscription in an Azure location, + * use the `Capabilities_ListByLocation` REST API or one of the following + * interfaces: + * + * ```azurecli + * az sql elastic-pool list-editions -l -o table + * ```` */ sku?: Sku; /** @@ -8433,11 +8469,12 @@ export type GeoBackupPolicyState = 'Disabled' | 'Enabled'; /** * Defines values for DatabaseEdition. * Possible values include: 'Web', 'Business', 'Basic', 'Standard', 'Premium', 'PremiumRS', 'Free', - * 'Stretch', 'DataWarehouse', 'System', 'System2' + * 'Stretch', 'DataWarehouse', 'System', 'System2', 'GeneralPurpose', 'BusinessCritical', + * 'Hyperscale' * @readonly * @enum {string} */ -export type DatabaseEdition = 'Web' | 'Business' | 'Basic' | 'Standard' | 'Premium' | 'PremiumRS' | 'Free' | 'Stretch' | 'DataWarehouse' | 'System' | 'System2'; +export type DatabaseEdition = 'Web' | 'Business' | 'Basic' | 'Standard' | 'Premium' | 'PremiumRS' | 'Free' | 'Stretch' | 'DataWarehouse' | 'System' | 'System2' | 'GeneralPurpose' | 'BusinessCritical' | 'Hyperscale'; /** * Defines values for ServiceObjectiveName. @@ -8497,11 +8534,11 @@ export type UnitDefinitionType = 'Count' | 'Bytes' | 'Seconds' | 'Percent' | 'Co /** * Defines values for ElasticPoolEdition. - * Possible values include: 'Basic', 'Standard', 'Premium' + * Possible values include: 'Basic', 'Standard', 'Premium', 'GeneralPurpose', 'BusinessCritical' * @readonly * @enum {string} */ -export type ElasticPoolEdition = 'Basic' | 'Standard' | 'Premium'; +export type ElasticPoolEdition = 'Basic' | 'Standard' | 'Premium' | 'GeneralPurpose' | 'BusinessCritical'; /** * Defines values for ReplicationRole. @@ -8927,11 +8964,12 @@ export type SampleName = 'AdventureWorksLT' | 'WideWorldImportersStd' | 'WideWor * Defines values for DatabaseStatus. * Possible values include: 'Online', 'Restoring', 'RecoveryPending', 'Recovering', 'Suspect', * 'Offline', 'Standby', 'Shutdown', 'EmergencyMode', 'AutoClosed', 'Copying', 'Creating', - * 'Inaccessible', 'OfflineSecondary', 'Pausing', 'Paused', 'Resuming', 'Scaling' + * 'Inaccessible', 'OfflineSecondary', 'Pausing', 'Paused', 'Resuming', 'Scaling', + * 'OfflineChangingDwPerformanceTiers', 'OnlineChangingDwPerformanceTiers' * @readonly * @enum {string} */ -export type DatabaseStatus = 'Online' | 'Restoring' | 'RecoveryPending' | 'Recovering' | 'Suspect' | 'Offline' | 'Standby' | 'Shutdown' | 'EmergencyMode' | 'AutoClosed' | 'Copying' | 'Creating' | 'Inaccessible' | 'OfflineSecondary' | 'Pausing' | 'Paused' | 'Resuming' | 'Scaling'; +export type DatabaseStatus = 'Online' | 'Restoring' | 'RecoveryPending' | 'Recovering' | 'Suspect' | 'Offline' | 'Standby' | 'Shutdown' | 'EmergencyMode' | 'AutoClosed' | 'Copying' | 'Creating' | 'Inaccessible' | 'OfflineSecondary' | 'Pausing' | 'Paused' | 'Resuming' | 'Scaling' | 'OfflineChangingDwPerformanceTiers' | 'OnlineChangingDwPerformanceTiers'; /** * Defines values for DatabaseLicenseType. From 7ef9268bcdb7b1136a7059f8bb5ea9626b61469d Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Mon, 29 Apr 2019 18:05:58 +0000 Subject: [PATCH 2/2] Generated from 20ffeb28a6971fd17d75c1fb94c561e3182c7e67 Additional doc tweaks --- sdk/sql/arm-sql/lib/models/index.ts | 26 ++++++++++++++------------ 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/sdk/sql/arm-sql/lib/models/index.ts b/sdk/sql/arm-sql/lib/models/index.ts index 54346a78851a..f90abc4c1cb6 100644 --- a/sdk/sql/arm-sql/lib/models/index.ts +++ b/sdk/sql/arm-sql/lib/models/index.ts @@ -696,9 +696,10 @@ export interface ImportRequest extends ExportRequest { * @member {DatabaseEdition} edition The edition for the database being * created. * - * To determine the editions that are available to your subscription in an - * Azure location, use the `Capabilities_ListByLocation` REST API or one of - * the following commands: + * The list of SKUs may vary by region and support offer. To determine the + * SKUs (including the SKU name, tier/edition, family, and capacity) that are + * available to your subscription in an Azure region, use the + * `Capabilities_ListByLocation` REST API or one of the following commands: * * ```azurecli * az sql db list-editions -l -o table @@ -706,7 +707,8 @@ export interface ImportRequest extends ExportRequest { * * ```powershell * Get-AzSqlServerServiceObjective -Location - * ````. Possible values include: 'Web', 'Business', 'Basic', 'Standard', + * ```` + * . Possible values include: 'Web', 'Business', 'Basic', 'Standard', * 'Premium', 'PremiumRS', 'Free', 'Stretch', 'DataWarehouse', 'System', * 'System2', 'GeneralPurpose', 'BusinessCritical', 'Hyperscale' */ @@ -6021,10 +6023,10 @@ export interface Database extends TrackedResource { /** * @member {Sku} [sku] The database SKU. * - * To determine the SKUs (including the SKU name, tier/edition, family, and - * capacity) that are available to your subscription in an Azure location, - * use the `Capabilities_ListByLocation` REST API or one of the following - * interfaces: + * The list of SKUs may vary by region and support offer. To determine the + * SKUs (including the SKU name, tier/edition, family, and capacity) that are + * available to your subscription in an Azure region, use the + * `Capabilities_ListByLocation` REST API or one of the following commands: * * ```azurecli * az sql db list-editions -l -o table @@ -6516,10 +6518,10 @@ export interface ElasticPool extends TrackedResource { /** * @member {Sku} [sku] The elastic pool SKU. * - * To determine the SKUs (including the SKU name, tier/edition, family, and - * capacity) that are available to your subscription in an Azure location, - * use the `Capabilities_ListByLocation` REST API or one of the following - * interfaces: + * The list of SKUs may vary by region and support offer. To determine the + * SKUs (including the SKU name, tier/edition, family, and capacity) that are + * available to your subscription in an Azure region, use the + * `Capabilities_ListByLocation` REST API or the following command: * * ```azurecli * az sql elastic-pool list-editions -l -o table