Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,30 @@ public class PerformanceTierServiceLevelObjectives {
@JsonProperty(value = "hardwareGeneration")
private String hardwareGeneration;

/**
* Maximum Backup retention in days for the performance tier edition.
*/
@JsonProperty(value = "maxBackupRetentionDays")
private Integer maxBackupRetentionDays;

/**
* Minimum Backup retention in days for the performance tier edition.
*/
@JsonProperty(value = "minBackupRetentionDays")
private Integer minBackupRetentionDays;

/**
* Max storage allowed for a server.
*/
@JsonProperty(value = "maxStorageMB")
private Integer maxStorageMB;

/**
* Max storage allowed for a server.
*/
@JsonProperty(value = "minStorageMB")
private Integer minStorageMB;

/**
* Get the id value.
*
Expand Down Expand Up @@ -118,4 +142,84 @@ public PerformanceTierServiceLevelObjectives withHardwareGeneration(String hardw
return this;
}

/**
* Get the maxBackupRetentionDays value.
*
* @return the maxBackupRetentionDays value
*/
public Integer maxBackupRetentionDays() {
return this.maxBackupRetentionDays;
}

/**
* Set the maxBackupRetentionDays value.
*
* @param maxBackupRetentionDays the maxBackupRetentionDays value to set
* @return the PerformanceTierServiceLevelObjectives object itself.
*/
public PerformanceTierServiceLevelObjectives withMaxBackupRetentionDays(Integer maxBackupRetentionDays) {
this.maxBackupRetentionDays = maxBackupRetentionDays;
return this;
}

/**
* Get the minBackupRetentionDays value.
*
* @return the minBackupRetentionDays value
*/
public Integer minBackupRetentionDays() {
return this.minBackupRetentionDays;
}

/**
* Set the minBackupRetentionDays value.
*
* @param minBackupRetentionDays the minBackupRetentionDays value to set
* @return the PerformanceTierServiceLevelObjectives object itself.
*/
public PerformanceTierServiceLevelObjectives withMinBackupRetentionDays(Integer minBackupRetentionDays) {
this.minBackupRetentionDays = minBackupRetentionDays;
return this;
}

/**
* Get the maxStorageMB value.
*
* @return the maxStorageMB value
*/
public Integer maxStorageMB() {
return this.maxStorageMB;
}

/**
* Set the maxStorageMB value.
*
* @param maxStorageMB the maxStorageMB value to set
* @return the PerformanceTierServiceLevelObjectives object itself.
*/
public PerformanceTierServiceLevelObjectives withMaxStorageMB(Integer maxStorageMB) {
this.maxStorageMB = maxStorageMB;
return this;
}

/**
* Get the minStorageMB value.
*
* @return the minStorageMB value
*/
public Integer minStorageMB() {
return this.minStorageMB;
}

/**
* Set the minStorageMB value.
*
* @param minStorageMB the minStorageMB value to set
* @return the PerformanceTierServiceLevelObjectives object itself.
*/
public PerformanceTierServiceLevelObjectives withMinStorageMB(Integer minStorageMB) {
this.minStorageMB = minStorageMB;
return this;
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@
@JsonTypeName("ServerPropertiesForCreate")
@JsonSubTypes({
@JsonSubTypes.Type(name = "Default", value = ServerPropertiesForDefaultCreate.class),
@JsonSubTypes.Type(name = "PointInTimeRestore", value = ServerPropertiesForRestore.class)
@JsonSubTypes.Type(name = "PointInTimeRestore", value = ServerPropertiesForRestore.class),
@JsonSubTypes.Type(name = "GeoRestore", value = ServerPropertiesForGeoRestore.class)
})
public class ServerPropertiesForCreate {
/**
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
/**
* 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.postgresql;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
import com.fasterxml.jackson.annotation.JsonTypeName;

/**
* The properties used to create a new server by restoring to a different
* region from a geo replicated backup.
*/
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "createMode")
@JsonTypeName("GeoRestore")
public class ServerPropertiesForGeoRestore extends ServerPropertiesForCreate {
/**
* The source server id to restore from.
*/
@JsonProperty(value = "sourceServerId", required = true)
private String sourceServerId;

/**
* Get the sourceServerId value.
*
* @return the sourceServerId value
*/
public String sourceServerId() {
return this.sourceServerId;
}

/**
* Set the sourceServerId value.
*
* @param sourceServerId the sourceServerId value to set
* @return the ServerPropertiesForGeoRestore object itself.
*/
public ServerPropertiesForGeoRestore withSourceServerId(String sourceServerId) {
this.sourceServerId = sourceServerId;
return this;
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
import com.fasterxml.jackson.annotation.JsonTypeName;

/**
* The properties to a new server by restoring from a backup.
* The properties used to create a new server by restoring from a backup.
*/
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "createMode")
@JsonTypeName("PointInTimeRestore")
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
/**
* 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.postgresql;

import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;

/**
* Defines values for ServerSecurityAlertPolicyState.
*/
public enum ServerSecurityAlertPolicyState {
/** Enum value Enabled. */
ENABLED("Enabled"),

/** Enum value Disabled. */
DISABLED("Disabled");

/** The actual serialized value for a ServerSecurityAlertPolicyState instance. */
private String value;

ServerSecurityAlertPolicyState(String value) {
this.value = value;
}

/**
* Parses a serialized value to a ServerSecurityAlertPolicyState instance.
*
* @param value the serialized value to parse.
* @return the parsed ServerSecurityAlertPolicyState object, or null if unable to parse.
*/
@JsonCreator
public static ServerSecurityAlertPolicyState fromString(String value) {
ServerSecurityAlertPolicyState[] items = ServerSecurityAlertPolicyState.values();
for (ServerSecurityAlertPolicyState item : items) {
if (item.toString().equalsIgnoreCase(value)) {
return item;
}
}
return null;
}

@JsonValue
@Override
public String toString() {
return this.value;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,6 @@
*/
@JsonFlatten
public class LogFileInner extends ProxyResource {
/**
* Log file name.
*/
@JsonProperty(value = "properties.name")
private String logFileName;

/**
* Size of the log file.
*/
Expand Down Expand Up @@ -54,26 +48,6 @@ public class LogFileInner extends ProxyResource {
@JsonProperty(value = "properties.url")
private String url;

/**
* Get the logFileName value.
*
* @return the logFileName value
*/
public String logFileName() {
return this.logFileName;
}

/**
* Set the logFileName value.
*
* @param logFileName the logFileName value to set
* @return the LogFileInner object itself.
*/
public LogFileInner withLogFileName(String logFileName) {
this.logFileName = logFileName;
return this;
}

/**
* Get the sizeInKB value.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,30 +22,6 @@ public class PerformanceTierPropertiesInner {
@JsonProperty(value = "id")
private String id;

/**
* Maximum Backup retention in days for the performance tier edition.
*/
@JsonProperty(value = "maxBackupRetentionDays")
private Integer maxBackupRetentionDays;

/**
* Minimum Backup retention in days for the performance tier edition.
*/
@JsonProperty(value = "minBackupRetentionDays")
private Integer minBackupRetentionDays;

/**
* Max storage allowed for a server.
*/
@JsonProperty(value = "maxStorageMB")
private Integer maxStorageMB;

/**
* Max storage allowed for a server.
*/
@JsonProperty(value = "minStorageMB")
private Integer minStorageMB;

/**
* Service level objectives associated with the performance tier.
*/
Expand All @@ -72,86 +48,6 @@ public PerformanceTierPropertiesInner withId(String id) {
return this;
}

/**
* Get the maxBackupRetentionDays value.
*
* @return the maxBackupRetentionDays value
*/
public Integer maxBackupRetentionDays() {
return this.maxBackupRetentionDays;
}

/**
* Set the maxBackupRetentionDays value.
*
* @param maxBackupRetentionDays the maxBackupRetentionDays value to set
* @return the PerformanceTierPropertiesInner object itself.
*/
public PerformanceTierPropertiesInner withMaxBackupRetentionDays(Integer maxBackupRetentionDays) {
this.maxBackupRetentionDays = maxBackupRetentionDays;
return this;
}

/**
* Get the minBackupRetentionDays value.
*
* @return the minBackupRetentionDays value
*/
public Integer minBackupRetentionDays() {
return this.minBackupRetentionDays;
}

/**
* Set the minBackupRetentionDays value.
*
* @param minBackupRetentionDays the minBackupRetentionDays value to set
* @return the PerformanceTierPropertiesInner object itself.
*/
public PerformanceTierPropertiesInner withMinBackupRetentionDays(Integer minBackupRetentionDays) {
this.minBackupRetentionDays = minBackupRetentionDays;
return this;
}

/**
* Get the maxStorageMB value.
*
* @return the maxStorageMB value
*/
public Integer maxStorageMB() {
return this.maxStorageMB;
}

/**
* Set the maxStorageMB value.
*
* @param maxStorageMB the maxStorageMB value to set
* @return the PerformanceTierPropertiesInner object itself.
*/
public PerformanceTierPropertiesInner withMaxStorageMB(Integer maxStorageMB) {
this.maxStorageMB = maxStorageMB;
return this;
}

/**
* Get the minStorageMB value.
*
* @return the minStorageMB value
*/
public Integer minStorageMB() {
return this.minStorageMB;
}

/**
* Set the minStorageMB value.
*
* @param minStorageMB the minStorageMB value to set
* @return the PerformanceTierPropertiesInner object itself.
*/
public PerformanceTierPropertiesInner withMinStorageMB(Integer minStorageMB) {
this.minStorageMB = minStorageMB;
return this;
}

/**
* Get the serviceLevelObjectives value.
*
Expand Down
Loading