Skip to content

Commit

Permalink
Generated from a406644e7e4884a29e15943f52956492dd1b5e92
Browse files Browse the repository at this point in the history
Update databases.json

Remove "Currently the only supported option is GRS (GeoRedundantStorage)" from databases 2019
  • Loading branch information
SDK Automation committed Sep 28, 2020
1 parent 846265f commit 467a089
Show file tree
Hide file tree
Showing 34 changed files with 1,627 additions and 285 deletions.
6 changes: 4 additions & 2 deletions sdk/sql/mgmt-v2017_10_01_preview/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
<parent>
<groupId>com.microsoft.azure</groupId>
<artifactId>azure-arm-parent</artifactId>
<version>1.2.0</version>
<relativePath>../../parents/azure-arm-parent</relativePath>
<version>1.1.0</version>
<relativePath>../../../pom.management.xml</relativePath>
</parent>
<artifactId>azure-mgmt-sql</artifactId>
<version>1.0.0-beta</version>
Expand Down Expand Up @@ -71,6 +71,8 @@
<artifactId>azure-arm-client-runtime</artifactId>
<type>test-jar</type>
<scope>test</scope>
<!--Below version for test jar needs to be removed, this will be done as part of v1-runtime 1.6.7-->
<version>1.6.5</version>
</dependency>
</dependencies>
<build>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@
* Type representing Database.
*/
public interface Database extends HasInner<DatabaseInner>, Indexable, Refreshable<Database>, Updatable<Database.Update>, HasManager<SqlManager> {
/**
* @return the autoPauseDelay value.
*/
Integer autoPauseDelay();

/**
* @return the catalogCollation value.
*/
Expand Down Expand Up @@ -120,11 +125,26 @@ public interface Database extends HasInner<DatabaseInner>, Indexable, Refreshabl
*/
Long maxSizeBytes();

/**
* @return the minCapacity value.
*/
Double minCapacity();

/**
* @return the name value.
*/
String name();

/**
* @return the pausedDate value.
*/
DateTime pausedDate();

/**
* @return the readReplicaCount value.
*/
Integer readReplicaCount();

/**
* @return the readScale value.
*/
Expand Down Expand Up @@ -155,6 +175,11 @@ public interface Database extends HasInner<DatabaseInner>, Indexable, Refreshabl
*/
DateTime restorePointInTime();

/**
* @return the resumedDate value.
*/
DateTime resumedDate();

/**
* @return the sampleName value.
*/
Expand Down Expand Up @@ -236,6 +261,18 @@ interface WithLocation {
WithCreate withLocation(String location);
}

/**
* The stage of the database definition allowing to specify AutoPauseDelay.
*/
interface WithAutoPauseDelay {
/**
* Specifies autoPauseDelay.
* @param autoPauseDelay Time in minutes after which database is automatically paused. A value of -1 means that automatic pause is disabled
* @return the next definition stage
*/
WithCreate withAutoPauseDelay(Integer autoPauseDelay);
}

/**
* The stage of the database definition allowing to specify CatalogCollation.
*/
Expand Down Expand Up @@ -298,7 +335,7 @@ interface WithElasticPoolId {
interface WithLicenseType {
/**
* Specifies licenseType.
* @param licenseType The license type to apply for this database. Possible values include: 'LicenseIncluded', 'BasePrice'
* @param licenseType The license type to apply for this database. `LicenseIncluded` if you need a license, or `BasePrice` if you have a license and are eligible for the Azure Hybrid Benefit. Possible values include: 'LicenseIncluded', 'BasePrice'
* @return the next definition stage
*/
WithCreate withLicenseType(DatabaseLicenseType licenseType);
Expand Down Expand Up @@ -328,13 +365,37 @@ interface WithMaxSizeBytes {
WithCreate withMaxSizeBytes(Long maxSizeBytes);
}

/**
* The stage of the database definition allowing to specify MinCapacity.
*/
interface WithMinCapacity {
/**
* Specifies minCapacity.
* @param minCapacity Minimal capacity that database will always have allocated, if not paused
* @return the next definition stage
*/
WithCreate withMinCapacity(Double minCapacity);
}

/**
* The stage of the database definition allowing to specify ReadReplicaCount.
*/
interface WithReadReplicaCount {
/**
* Specifies readReplicaCount.
* @param readReplicaCount The number of readonly secondary replicas associated with the database to which readonly application intent connections may be routed. This property is only settable for Hyperscale edition databases
* @return the next definition stage
*/
WithCreate withReadReplicaCount(Integer readReplicaCount);
}

/**
* The stage of the database definition allowing to specify ReadScale.
*/
interface WithReadScale {
/**
* Specifies readScale.
* @param readScale The state of read-only routing. If enabled, connections that have application intent set to readonly in their connection string may be routed to a readonly secondary replica in the same region. Possible values include: 'Enabled', 'Disabled'
* @param readScale If enabled, connections that have application intent set to readonly in their connection string may be routed to a readonly secondary replica. This property is only settable for Premium and Business Critical databases. Possible values include: 'Enabled', 'Disabled'
* @return the next definition stage
*/
WithCreate withReadScale(DatabaseReadScale readScale);
Expand Down Expand Up @@ -406,7 +467,14 @@ interface WithSampleName {
interface WithSku {
/**
* Specifies sku.
* @param sku The name and tier of the SKU
* @param sku The database SKU.
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 &lt;location&gt; -o table
````
```powershell
Get-AzSqlServerServiceObjective -Location &lt;location&gt;
````
* @return the next definition stage
*/
WithCreate withSku(Sku sku);
Expand Down Expand Up @@ -465,19 +533,31 @@ interface WithZoneRedundant {
* the resource to be created (via {@link WithCreate#create()}), but also allows
* for any other optional settings to be specified.
*/
interface WithCreate extends Creatable<Database>, DefinitionStages.WithCatalogCollation, DefinitionStages.WithCollation, DefinitionStages.WithCreateMode, DefinitionStages.WithElasticPoolId, DefinitionStages.WithLicenseType, DefinitionStages.WithLongTermRetentionBackupResourceId, DefinitionStages.WithMaxSizeBytes, DefinitionStages.WithReadScale, DefinitionStages.WithRecoverableDatabaseId, DefinitionStages.WithRecoveryServicesRecoveryPointId, DefinitionStages.WithRestorableDroppedDatabaseId, DefinitionStages.WithRestorePointInTime, DefinitionStages.WithSampleName, DefinitionStages.WithSku, DefinitionStages.WithSourceDatabaseDeletionDate, DefinitionStages.WithSourceDatabaseId, DefinitionStages.WithTags, DefinitionStages.WithZoneRedundant {
interface WithCreate extends Creatable<Database>, DefinitionStages.WithAutoPauseDelay, DefinitionStages.WithCatalogCollation, DefinitionStages.WithCollation, DefinitionStages.WithCreateMode, DefinitionStages.WithElasticPoolId, DefinitionStages.WithLicenseType, DefinitionStages.WithLongTermRetentionBackupResourceId, DefinitionStages.WithMaxSizeBytes, DefinitionStages.WithMinCapacity, DefinitionStages.WithReadReplicaCount, DefinitionStages.WithReadScale, DefinitionStages.WithRecoverableDatabaseId, DefinitionStages.WithRecoveryServicesRecoveryPointId, DefinitionStages.WithRestorableDroppedDatabaseId, DefinitionStages.WithRestorePointInTime, DefinitionStages.WithSampleName, DefinitionStages.WithSku, DefinitionStages.WithSourceDatabaseDeletionDate, DefinitionStages.WithSourceDatabaseId, DefinitionStages.WithTags, DefinitionStages.WithZoneRedundant {
}
}
/**
* The template for a Database update operation, containing all the settings that can be modified.
*/
interface Update extends Appliable<Database>, UpdateStages.WithCatalogCollation, UpdateStages.WithCollation, UpdateStages.WithCreateMode, UpdateStages.WithElasticPoolId, UpdateStages.WithLicenseType, UpdateStages.WithLongTermRetentionBackupResourceId, UpdateStages.WithMaxSizeBytes, UpdateStages.WithReadScale, UpdateStages.WithRecoverableDatabaseId, UpdateStages.WithRecoveryServicesRecoveryPointId, UpdateStages.WithRestorableDroppedDatabaseId, UpdateStages.WithRestorePointInTime, UpdateStages.WithSampleName, UpdateStages.WithSku, UpdateStages.WithSourceDatabaseDeletionDate, UpdateStages.WithSourceDatabaseId, UpdateStages.WithTags, UpdateStages.WithZoneRedundant {
interface Update extends Appliable<Database>, UpdateStages.WithAutoPauseDelay, UpdateStages.WithCatalogCollation, UpdateStages.WithCollation, UpdateStages.WithCreateMode, UpdateStages.WithElasticPoolId, UpdateStages.WithLicenseType, UpdateStages.WithLongTermRetentionBackupResourceId, UpdateStages.WithMaxSizeBytes, UpdateStages.WithMinCapacity, UpdateStages.WithReadReplicaCount, UpdateStages.WithReadScale, UpdateStages.WithRecoverableDatabaseId, UpdateStages.WithRecoveryServicesRecoveryPointId, UpdateStages.WithRestorableDroppedDatabaseId, UpdateStages.WithRestorePointInTime, UpdateStages.WithSampleName, UpdateStages.WithSku, UpdateStages.WithSourceDatabaseDeletionDate, UpdateStages.WithSourceDatabaseId, UpdateStages.WithTags, UpdateStages.WithZoneRedundant {
}

/**
* Grouping of Database update stages.
*/
interface UpdateStages {
/**
* The stage of the database update allowing to specify AutoPauseDelay.
*/
interface WithAutoPauseDelay {
/**
* Specifies autoPauseDelay.
* @param autoPauseDelay Time in minutes after which database is automatically paused. A value of -1 means that automatic pause is disabled
* @return the next update stage
*/
Update withAutoPauseDelay(Integer autoPauseDelay);
}

/**
* The stage of the database update allowing to specify CatalogCollation.
*/
Expand Down Expand Up @@ -540,7 +620,7 @@ interface WithElasticPoolId {
interface WithLicenseType {
/**
* Specifies licenseType.
* @param licenseType The license type to apply for this database. Possible values include: 'LicenseIncluded', 'BasePrice'
* @param licenseType The license type to apply for this database. `LicenseIncluded` if you need a license, or `BasePrice` if you have a license and are eligible for the Azure Hybrid Benefit. Possible values include: 'LicenseIncluded', 'BasePrice'
* @return the next update stage
*/
Update withLicenseType(DatabaseLicenseType licenseType);
Expand Down Expand Up @@ -570,13 +650,37 @@ interface WithMaxSizeBytes {
Update withMaxSizeBytes(Long maxSizeBytes);
}

/**
* The stage of the database update allowing to specify MinCapacity.
*/
interface WithMinCapacity {
/**
* Specifies minCapacity.
* @param minCapacity Minimal capacity that database will always have allocated, if not paused
* @return the next update stage
*/
Update withMinCapacity(Double minCapacity);
}

/**
* The stage of the database update allowing to specify ReadReplicaCount.
*/
interface WithReadReplicaCount {
/**
* Specifies readReplicaCount.
* @param readReplicaCount The number of readonly secondary replicas associated with the database to which readonly application intent connections may be routed. This property is only settable for Hyperscale edition databases
* @return the next update stage
*/
Update withReadReplicaCount(Integer readReplicaCount);
}

/**
* The stage of the database update allowing to specify ReadScale.
*/
interface WithReadScale {
/**
* Specifies readScale.
* @param readScale The state of read-only routing. If enabled, connections that have application intent set to readonly in their connection string may be routed to a readonly secondary replica in the same region. Possible values include: 'Enabled', 'Disabled'
* @param readScale If enabled, connections that have application intent set to readonly in their connection string may be routed to a readonly secondary replica. This property is only settable for Premium and Business Critical databases. Possible values include: 'Enabled', 'Disabled'
* @return the next update stage
*/
Update withReadScale(DatabaseReadScale readScale);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,15 @@ public final class DatabaseStatus extends ExpandableStringEnum<DatabaseStatus> {
/** Static value Scaling for DatabaseStatus. */
public static final DatabaseStatus SCALING = fromString("Scaling");

/** Static value OfflineChangingDwPerformanceTiers for DatabaseStatus. */
public static final DatabaseStatus OFFLINE_CHANGING_DW_PERFORMANCE_TIERS = fromString("OfflineChangingDwPerformanceTiers");

/** Static value OnlineChangingDwPerformanceTiers for DatabaseStatus. */
public static final DatabaseStatus ONLINE_CHANGING_DW_PERFORMANCE_TIERS = fromString("OnlineChangingDwPerformanceTiers");

/** Static value Disabled for DatabaseStatus. */
public static final DatabaseStatus DISABLED = fromString("Disabled");

/**
* Creates or finds a DatabaseStatus from its string representation.
* @param name a name to look for
Expand Down
Loading

0 comments on commit 467a089

Please sign in to comment.