Skip to content

Commit 84023ad

Browse files
author
SDKAuto
committed
CodeGen from PR 11880 in Azure/azure-rest-api-specs
Merge cd6b8e22f4cc45c247eacb631c012f75cd4b47e8 into 61ab5c845163e77cbdf2acecd5fc305307899a1c
1 parent 33362b5 commit 84023ad

34 files changed

+1627
-285
lines changed

sdk/sql/mgmt-v2017_10_01_preview/pom.xml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
<parent>
1212
<groupId>com.microsoft.azure</groupId>
1313
<artifactId>azure-arm-parent</artifactId>
14-
<version>1.2.0</version>
15-
<relativePath>../../parents/azure-arm-parent</relativePath>
14+
<version>1.1.0</version>
15+
<relativePath>../../../pom.management.xml</relativePath>
1616
</parent>
1717
<artifactId>azure-mgmt-sql</artifactId>
1818
<version>1.0.0-beta</version>
@@ -71,6 +71,8 @@
7171
<artifactId>azure-arm-client-runtime</artifactId>
7272
<type>test-jar</type>
7373
<scope>test</scope>
74+
<!--Below version for test jar needs to be removed, this will be done as part of v1-runtime 1.6.7-->
75+
<version>1.6.5</version>
7476
</dependency>
7577
</dependencies>
7678
<build>

sdk/sql/mgmt-v2017_10_01_preview/src/main/java/com/microsoft/azure/management/sql/v2017_10_01_preview/Database.java

Lines changed: 111 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,11 @@
2525
* Type representing Database.
2626
*/
2727
public interface Database extends HasInner<DatabaseInner>, Indexable, Refreshable<Database>, Updatable<Database.Update>, HasManager<SqlManager> {
28+
/**
29+
* @return the autoPauseDelay value.
30+
*/
31+
Integer autoPauseDelay();
32+
2833
/**
2934
* @return the catalogCollation value.
3035
*/
@@ -120,11 +125,26 @@ public interface Database extends HasInner<DatabaseInner>, Indexable, Refreshabl
120125
*/
121126
Long maxSizeBytes();
122127

128+
/**
129+
* @return the minCapacity value.
130+
*/
131+
Double minCapacity();
132+
123133
/**
124134
* @return the name value.
125135
*/
126136
String name();
127137

138+
/**
139+
* @return the pausedDate value.
140+
*/
141+
DateTime pausedDate();
142+
143+
/**
144+
* @return the readReplicaCount value.
145+
*/
146+
Integer readReplicaCount();
147+
128148
/**
129149
* @return the readScale value.
130150
*/
@@ -155,6 +175,11 @@ public interface Database extends HasInner<DatabaseInner>, Indexable, Refreshabl
155175
*/
156176
DateTime restorePointInTime();
157177

178+
/**
179+
* @return the resumedDate value.
180+
*/
181+
DateTime resumedDate();
182+
158183
/**
159184
* @return the sampleName value.
160185
*/
@@ -236,6 +261,18 @@ interface WithLocation {
236261
WithCreate withLocation(String location);
237262
}
238263

264+
/**
265+
* The stage of the database definition allowing to specify AutoPauseDelay.
266+
*/
267+
interface WithAutoPauseDelay {
268+
/**
269+
* Specifies autoPauseDelay.
270+
* @param autoPauseDelay Time in minutes after which database is automatically paused. A value of -1 means that automatic pause is disabled
271+
* @return the next definition stage
272+
*/
273+
WithCreate withAutoPauseDelay(Integer autoPauseDelay);
274+
}
275+
239276
/**
240277
* The stage of the database definition allowing to specify CatalogCollation.
241278
*/
@@ -298,7 +335,7 @@ interface WithElasticPoolId {
298335
interface WithLicenseType {
299336
/**
300337
* Specifies licenseType.
301-
* @param licenseType The license type to apply for this database. Possible values include: 'LicenseIncluded', 'BasePrice'
338+
* @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'
302339
* @return the next definition stage
303340
*/
304341
WithCreate withLicenseType(DatabaseLicenseType licenseType);
@@ -328,13 +365,37 @@ interface WithMaxSizeBytes {
328365
WithCreate withMaxSizeBytes(Long maxSizeBytes);
329366
}
330367

368+
/**
369+
* The stage of the database definition allowing to specify MinCapacity.
370+
*/
371+
interface WithMinCapacity {
372+
/**
373+
* Specifies minCapacity.
374+
* @param minCapacity Minimal capacity that database will always have allocated, if not paused
375+
* @return the next definition stage
376+
*/
377+
WithCreate withMinCapacity(Double minCapacity);
378+
}
379+
380+
/**
381+
* The stage of the database definition allowing to specify ReadReplicaCount.
382+
*/
383+
interface WithReadReplicaCount {
384+
/**
385+
* Specifies readReplicaCount.
386+
* @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
387+
* @return the next definition stage
388+
*/
389+
WithCreate withReadReplicaCount(Integer readReplicaCount);
390+
}
391+
331392
/**
332393
* The stage of the database definition allowing to specify ReadScale.
333394
*/
334395
interface WithReadScale {
335396
/**
336397
* Specifies readScale.
337-
* @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'
398+
* @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'
338399
* @return the next definition stage
339400
*/
340401
WithCreate withReadScale(DatabaseReadScale readScale);
@@ -406,7 +467,14 @@ interface WithSampleName {
406467
interface WithSku {
407468
/**
408469
* Specifies sku.
409-
* @param sku The name and tier of the SKU
470+
* @param sku The database SKU.
471+
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:
472+
```azurecli
473+
az sql db list-editions -l &lt;location&gt; -o table
474+
````
475+
```powershell
476+
Get-AzSqlServerServiceObjective -Location &lt;location&gt;
477+
````
410478
* @return the next definition stage
411479
*/
412480
WithCreate withSku(Sku sku);
@@ -465,19 +533,31 @@ interface WithZoneRedundant {
465533
* the resource to be created (via {@link WithCreate#create()}), but also allows
466534
* for any other optional settings to be specified.
467535
*/
468-
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 {
536+
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 {
469537
}
470538
}
471539
/**
472540
* The template for a Database update operation, containing all the settings that can be modified.
473541
*/
474-
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 {
542+
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 {
475543
}
476544

477545
/**
478546
* Grouping of Database update stages.
479547
*/
480548
interface UpdateStages {
549+
/**
550+
* The stage of the database update allowing to specify AutoPauseDelay.
551+
*/
552+
interface WithAutoPauseDelay {
553+
/**
554+
* Specifies autoPauseDelay.
555+
* @param autoPauseDelay Time in minutes after which database is automatically paused. A value of -1 means that automatic pause is disabled
556+
* @return the next update stage
557+
*/
558+
Update withAutoPauseDelay(Integer autoPauseDelay);
559+
}
560+
481561
/**
482562
* The stage of the database update allowing to specify CatalogCollation.
483563
*/
@@ -540,7 +620,7 @@ interface WithElasticPoolId {
540620
interface WithLicenseType {
541621
/**
542622
* Specifies licenseType.
543-
* @param licenseType The license type to apply for this database. Possible values include: 'LicenseIncluded', 'BasePrice'
623+
* @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'
544624
* @return the next update stage
545625
*/
546626
Update withLicenseType(DatabaseLicenseType licenseType);
@@ -570,13 +650,37 @@ interface WithMaxSizeBytes {
570650
Update withMaxSizeBytes(Long maxSizeBytes);
571651
}
572652

653+
/**
654+
* The stage of the database update allowing to specify MinCapacity.
655+
*/
656+
interface WithMinCapacity {
657+
/**
658+
* Specifies minCapacity.
659+
* @param minCapacity Minimal capacity that database will always have allocated, if not paused
660+
* @return the next update stage
661+
*/
662+
Update withMinCapacity(Double minCapacity);
663+
}
664+
665+
/**
666+
* The stage of the database update allowing to specify ReadReplicaCount.
667+
*/
668+
interface WithReadReplicaCount {
669+
/**
670+
* Specifies readReplicaCount.
671+
* @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
672+
* @return the next update stage
673+
*/
674+
Update withReadReplicaCount(Integer readReplicaCount);
675+
}
676+
573677
/**
574678
* The stage of the database update allowing to specify ReadScale.
575679
*/
576680
interface WithReadScale {
577681
/**
578682
* Specifies readScale.
579-
* @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'
683+
* @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'
580684
* @return the next update stage
581685
*/
582686
Update withReadScale(DatabaseReadScale readScale);

sdk/sql/mgmt-v2017_10_01_preview/src/main/java/com/microsoft/azure/management/sql/v2017_10_01_preview/DatabaseStatus.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,15 @@ public final class DatabaseStatus extends ExpandableStringEnum<DatabaseStatus> {
7070
/** Static value Scaling for DatabaseStatus. */
7171
public static final DatabaseStatus SCALING = fromString("Scaling");
7272

73+
/** Static value OfflineChangingDwPerformanceTiers for DatabaseStatus. */
74+
public static final DatabaseStatus OFFLINE_CHANGING_DW_PERFORMANCE_TIERS = fromString("OfflineChangingDwPerformanceTiers");
75+
76+
/** Static value OnlineChangingDwPerformanceTiers for DatabaseStatus. */
77+
public static final DatabaseStatus ONLINE_CHANGING_DW_PERFORMANCE_TIERS = fromString("OnlineChangingDwPerformanceTiers");
78+
79+
/** Static value Disabled for DatabaseStatus. */
80+
public static final DatabaseStatus DISABLED = fromString("Disabled");
81+
7382
/**
7483
* Creates or finds a DatabaseStatus from its string representation.
7584
* @param name a name to look for

0 commit comments

Comments
 (0)