forked from Azure/azure-libraries-for-java
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Generated from d08c7f54a125819caaa8c5f553206d1adbae60f9 (#86)
updating version so .net files will generate
- Loading branch information
1 parent
3734cd0
commit f55079e
Showing
17 changed files
with
5,142 additions
and
0 deletions.
There are no files selected for viewing
44 changes: 44 additions & 0 deletions
44
...l/src/main/java/com/microsoft/azure/management/sql/CompleteDatabaseRestoreDefinition.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
/** | ||
* 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. | ||
*/ | ||
|
||
package com.microsoft.azure.management.sql; | ||
|
||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
|
||
/** | ||
* Contains the information necessary to perform a complete database restore | ||
* operation. | ||
*/ | ||
public class CompleteDatabaseRestoreDefinition { | ||
/** | ||
* The last backup name to apply. | ||
*/ | ||
@JsonProperty(value = "lastBackupName", required = true) | ||
private String lastBackupName; | ||
|
||
/** | ||
* Get the lastBackupName value. | ||
* | ||
* @return the lastBackupName value | ||
*/ | ||
public String lastBackupName() { | ||
return this.lastBackupName; | ||
} | ||
|
||
/** | ||
* Set the lastBackupName value. | ||
* | ||
* @param lastBackupName the lastBackupName value to set | ||
* @return the CompleteDatabaseRestoreDefinition object itself. | ||
*/ | ||
public CompleteDatabaseRestoreDefinition withLastBackupName(String lastBackupName) { | ||
this.lastBackupName = lastBackupName; | ||
return this; | ||
} | ||
|
||
} |
44 changes: 44 additions & 0 deletions
44
...c/main/java/com/microsoft/azure/management/sql/InstanceFailoverGroupReadOnlyEndpoint.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
/** | ||
* 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. | ||
*/ | ||
|
||
package com.microsoft.azure.management.sql; | ||
|
||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
|
||
/** | ||
* Read-only endpoint of the failover group instance. | ||
*/ | ||
public class InstanceFailoverGroupReadOnlyEndpoint { | ||
/** | ||
* Failover policy of the read-only endpoint for the failover group. | ||
* Possible values include: 'Disabled', 'Enabled'. | ||
*/ | ||
@JsonProperty(value = "failoverPolicy") | ||
private ReadOnlyEndpointFailoverPolicy failoverPolicy; | ||
|
||
/** | ||
* Get the failoverPolicy value. | ||
* | ||
* @return the failoverPolicy value | ||
*/ | ||
public ReadOnlyEndpointFailoverPolicy failoverPolicy() { | ||
return this.failoverPolicy; | ||
} | ||
|
||
/** | ||
* Set the failoverPolicy value. | ||
* | ||
* @param failoverPolicy the failoverPolicy value to set | ||
* @return the InstanceFailoverGroupReadOnlyEndpoint object itself. | ||
*/ | ||
public InstanceFailoverGroupReadOnlyEndpoint withFailoverPolicy(ReadOnlyEndpointFailoverPolicy failoverPolicy) { | ||
this.failoverPolicy = failoverPolicy; | ||
return this; | ||
} | ||
|
||
} |
73 changes: 73 additions & 0 deletions
73
.../main/java/com/microsoft/azure/management/sql/InstanceFailoverGroupReadWriteEndpoint.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
/** | ||
* 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. | ||
*/ | ||
|
||
package com.microsoft.azure.management.sql; | ||
|
||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
|
||
/** | ||
* Read-write endpoint of the failover group instance. | ||
*/ | ||
public class InstanceFailoverGroupReadWriteEndpoint { | ||
/** | ||
* Failover policy of the read-write endpoint for the failover group. If | ||
* failoverPolicy is Automatic then failoverWithDataLossGracePeriodMinutes | ||
* is required. Possible values include: 'Manual', 'Automatic'. | ||
*/ | ||
@JsonProperty(value = "failoverPolicy", required = true) | ||
private ReadWriteEndpointFailoverPolicy failoverPolicy; | ||
|
||
/** | ||
* Grace period before failover with data loss is attempted for the | ||
* read-write endpoint. If failoverPolicy is Automatic then | ||
* failoverWithDataLossGracePeriodMinutes is required. | ||
*/ | ||
@JsonProperty(value = "failoverWithDataLossGracePeriodMinutes") | ||
private Integer failoverWithDataLossGracePeriodMinutes; | ||
|
||
/** | ||
* Get the failoverPolicy value. | ||
* | ||
* @return the failoverPolicy value | ||
*/ | ||
public ReadWriteEndpointFailoverPolicy failoverPolicy() { | ||
return this.failoverPolicy; | ||
} | ||
|
||
/** | ||
* Set the failoverPolicy value. | ||
* | ||
* @param failoverPolicy the failoverPolicy value to set | ||
* @return the InstanceFailoverGroupReadWriteEndpoint object itself. | ||
*/ | ||
public InstanceFailoverGroupReadWriteEndpoint withFailoverPolicy(ReadWriteEndpointFailoverPolicy failoverPolicy) { | ||
this.failoverPolicy = failoverPolicy; | ||
return this; | ||
} | ||
|
||
/** | ||
* Get the failoverWithDataLossGracePeriodMinutes value. | ||
* | ||
* @return the failoverWithDataLossGracePeriodMinutes value | ||
*/ | ||
public Integer failoverWithDataLossGracePeriodMinutes() { | ||
return this.failoverWithDataLossGracePeriodMinutes; | ||
} | ||
|
||
/** | ||
* Set the failoverWithDataLossGracePeriodMinutes value. | ||
* | ||
* @param failoverWithDataLossGracePeriodMinutes the failoverWithDataLossGracePeriodMinutes value to set | ||
* @return the InstanceFailoverGroupReadWriteEndpoint object itself. | ||
*/ | ||
public InstanceFailoverGroupReadWriteEndpoint withFailoverWithDataLossGracePeriodMinutes(Integer failoverWithDataLossGracePeriodMinutes) { | ||
this.failoverWithDataLossGracePeriodMinutes = failoverWithDataLossGracePeriodMinutes; | ||
return this; | ||
} | ||
|
||
} |
41 changes: 41 additions & 0 deletions
41
...rc/main/java/com/microsoft/azure/management/sql/InstanceFailoverGroupReplicationRole.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
/** | ||
* 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. | ||
*/ | ||
|
||
package com.microsoft.azure.management.sql; | ||
|
||
import java.util.Collection; | ||
import com.fasterxml.jackson.annotation.JsonCreator; | ||
import com.microsoft.rest.ExpandableStringEnum; | ||
|
||
/** | ||
* Defines values for InstanceFailoverGroupReplicationRole. | ||
*/ | ||
public final class InstanceFailoverGroupReplicationRole extends ExpandableStringEnum<InstanceFailoverGroupReplicationRole> { | ||
/** Static value Primary for InstanceFailoverGroupReplicationRole. */ | ||
public static final InstanceFailoverGroupReplicationRole PRIMARY = fromString("Primary"); | ||
|
||
/** Static value Secondary for InstanceFailoverGroupReplicationRole. */ | ||
public static final InstanceFailoverGroupReplicationRole SECONDARY = fromString("Secondary"); | ||
|
||
/** | ||
* Creates or finds a InstanceFailoverGroupReplicationRole from its string representation. | ||
* @param name a name to look for | ||
* @return the corresponding InstanceFailoverGroupReplicationRole | ||
*/ | ||
@JsonCreator | ||
public static InstanceFailoverGroupReplicationRole fromString(String name) { | ||
return fromString(name, InstanceFailoverGroupReplicationRole.class); | ||
} | ||
|
||
/** | ||
* @return known InstanceFailoverGroupReplicationRole values | ||
*/ | ||
public static Collection<InstanceFailoverGroupReplicationRole> values() { | ||
return values(InstanceFailoverGroupReplicationRole.class); | ||
} | ||
} |
44 changes: 44 additions & 0 deletions
44
...-mgmt-sql/src/main/java/com/microsoft/azure/management/sql/ManagedDatabaseCreateMode.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
/** | ||
* 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. | ||
*/ | ||
|
||
package com.microsoft.azure.management.sql; | ||
|
||
import java.util.Collection; | ||
import com.fasterxml.jackson.annotation.JsonCreator; | ||
import com.microsoft.rest.ExpandableStringEnum; | ||
|
||
/** | ||
* Defines values for ManagedDatabaseCreateMode. | ||
*/ | ||
public final class ManagedDatabaseCreateMode extends ExpandableStringEnum<ManagedDatabaseCreateMode> { | ||
/** Static value Default for ManagedDatabaseCreateMode. */ | ||
public static final ManagedDatabaseCreateMode DEFAULT = fromString("Default"); | ||
|
||
/** Static value RestoreExternalBackup for ManagedDatabaseCreateMode. */ | ||
public static final ManagedDatabaseCreateMode RESTORE_EXTERNAL_BACKUP = fromString("RestoreExternalBackup"); | ||
|
||
/** Static value PointInTimeRestore for ManagedDatabaseCreateMode. */ | ||
public static final ManagedDatabaseCreateMode POINT_IN_TIME_RESTORE = fromString("PointInTimeRestore"); | ||
|
||
/** | ||
* Creates or finds a ManagedDatabaseCreateMode from its string representation. | ||
* @param name a name to look for | ||
* @return the corresponding ManagedDatabaseCreateMode | ||
*/ | ||
@JsonCreator | ||
public static ManagedDatabaseCreateMode fromString(String name) { | ||
return fromString(name, ManagedDatabaseCreateMode.class); | ||
} | ||
|
||
/** | ||
* @return known ManagedDatabaseCreateMode values | ||
*/ | ||
public static Collection<ManagedDatabaseCreateMode> values() { | ||
return values(ManagedDatabaseCreateMode.class); | ||
} | ||
} |
50 changes: 50 additions & 0 deletions
50
azure-mgmt-sql/src/main/java/com/microsoft/azure/management/sql/ManagedDatabaseStatus.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
/** | ||
* 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. | ||
*/ | ||
|
||
package com.microsoft.azure.management.sql; | ||
|
||
import java.util.Collection; | ||
import com.fasterxml.jackson.annotation.JsonCreator; | ||
import com.microsoft.rest.ExpandableStringEnum; | ||
|
||
/** | ||
* Defines values for ManagedDatabaseStatus. | ||
*/ | ||
public final class ManagedDatabaseStatus extends ExpandableStringEnum<ManagedDatabaseStatus> { | ||
/** Static value Online for ManagedDatabaseStatus. */ | ||
public static final ManagedDatabaseStatus ONLINE = fromString("Online"); | ||
|
||
/** Static value Offline for ManagedDatabaseStatus. */ | ||
public static final ManagedDatabaseStatus OFFLINE = fromString("Offline"); | ||
|
||
/** Static value Shutdown for ManagedDatabaseStatus. */ | ||
public static final ManagedDatabaseStatus SHUTDOWN = fromString("Shutdown"); | ||
|
||
/** Static value Creating for ManagedDatabaseStatus. */ | ||
public static final ManagedDatabaseStatus CREATING = fromString("Creating"); | ||
|
||
/** Static value Inaccessible for ManagedDatabaseStatus. */ | ||
public static final ManagedDatabaseStatus INACCESSIBLE = fromString("Inaccessible"); | ||
|
||
/** | ||
* Creates or finds a ManagedDatabaseStatus from its string representation. | ||
* @param name a name to look for | ||
* @return the corresponding ManagedDatabaseStatus | ||
*/ | ||
@JsonCreator | ||
public static ManagedDatabaseStatus fromString(String name) { | ||
return fromString(name, ManagedDatabaseStatus.class); | ||
} | ||
|
||
/** | ||
* @return known ManagedDatabaseStatus values | ||
*/ | ||
public static Collection<ManagedDatabaseStatus> values() { | ||
return values(ManagedDatabaseStatus.class); | ||
} | ||
} |
69 changes: 69 additions & 0 deletions
69
azure-mgmt-sql/src/main/java/com/microsoft/azure/management/sql/ManagedInstancePairInfo.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
/** | ||
* 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. | ||
*/ | ||
|
||
package com.microsoft.azure.management.sql; | ||
|
||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
|
||
/** | ||
* Pairs of Managed Instances in the failover group. | ||
*/ | ||
public class ManagedInstancePairInfo { | ||
/** | ||
* Id of Primary Managed Instance in pair. | ||
*/ | ||
@JsonProperty(value = "primaryManagedInstanceId") | ||
private String primaryManagedInstanceId; | ||
|
||
/** | ||
* Id of Partner Managed Instance in pair. | ||
*/ | ||
@JsonProperty(value = "partnerManagedInstanceId") | ||
private String partnerManagedInstanceId; | ||
|
||
/** | ||
* Get the primaryManagedInstanceId value. | ||
* | ||
* @return the primaryManagedInstanceId value | ||
*/ | ||
public String primaryManagedInstanceId() { | ||
return this.primaryManagedInstanceId; | ||
} | ||
|
||
/** | ||
* Set the primaryManagedInstanceId value. | ||
* | ||
* @param primaryManagedInstanceId the primaryManagedInstanceId value to set | ||
* @return the ManagedInstancePairInfo object itself. | ||
*/ | ||
public ManagedInstancePairInfo withPrimaryManagedInstanceId(String primaryManagedInstanceId) { | ||
this.primaryManagedInstanceId = primaryManagedInstanceId; | ||
return this; | ||
} | ||
|
||
/** | ||
* Get the partnerManagedInstanceId value. | ||
* | ||
* @return the partnerManagedInstanceId value | ||
*/ | ||
public String partnerManagedInstanceId() { | ||
return this.partnerManagedInstanceId; | ||
} | ||
|
||
/** | ||
* Set the partnerManagedInstanceId value. | ||
* | ||
* @param partnerManagedInstanceId the partnerManagedInstanceId value to set | ||
* @return the ManagedInstancePairInfo object itself. | ||
*/ | ||
public ManagedInstancePairInfo withPartnerManagedInstanceId(String partnerManagedInstanceId) { | ||
this.partnerManagedInstanceId = partnerManagedInstanceId; | ||
return this; | ||
} | ||
|
||
} |
Oops, something went wrong.