Skip to content

Commit

Permalink
Generated from d08c7f54a125819caaa8c5f553206d1adbae60f9 (#86)
Browse files Browse the repository at this point in the history
updating version so .net files will generate
  • Loading branch information
AutorestCI authored Apr 18, 2018
1 parent 3734cd0 commit f55079e
Show file tree
Hide file tree
Showing 17 changed files with 5,142 additions and 0 deletions.
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;
}

}
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;
}

}
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;
}

}
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);
}
}
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);
}
}
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);
}
}
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;
}

}
Loading

0 comments on commit f55079e

Please sign in to comment.