Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AutoPR postgresql/resource-manager] correct tier enum for postgres #278

Merged
Merged
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
@@ -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.postgresql;

import java.util.Collection;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.microsoft.rest.ExpandableStringEnum;

/**
* Defines values for GeoRedundantBackup.
*/
public final class GeoRedundantBackup extends ExpandableStringEnum<GeoRedundantBackup> {
/** Static value Enabled for GeoRedundantBackup. */
public static final GeoRedundantBackup ENABLED = fromString("Enabled");

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

/**
* Creates or finds a GeoRedundantBackup from its string representation.
* @param name a name to look for
* @return the corresponding GeoRedundantBackup
*/
@JsonCreator
public static GeoRedundantBackup fromString(String name) {
return fromString(name, GeoRedundantBackup.class);
}

/**
* @return known GeoRedundantBackup values
*/
public static Collection<GeoRedundantBackup> values() {
return values(GeoRedundantBackup.class);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
/**
* 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 java.util.Map;
import com.fasterxml.jackson.annotation.JsonProperty;

/**
* REST API operation definition.
*/
public class Operation {
/**
* The name of the operation being performed on this particular object.
*/
@JsonProperty(value = "name", access = JsonProperty.Access.WRITE_ONLY)
private String name;

/**
* The localized display information for this particular operation or
* action.
*/
@JsonProperty(value = "display", access = JsonProperty.Access.WRITE_ONLY)
private OperationDisplay display;

/**
* The intended executor of the operation. Possible values include:
* 'NotSpecified', 'user', 'system'.
*/
@JsonProperty(value = "origin", access = JsonProperty.Access.WRITE_ONLY)
private OperationOrigin origin;

/**
* Additional descriptions for the operation.
*/
@JsonProperty(value = "properties", access = JsonProperty.Access.WRITE_ONLY)
private Map<String, Object> properties;

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

/**
* Get the display value.
*
* @return the display value
*/
public OperationDisplay display() {
return this.display;
}

/**
* Get the origin value.
*
* @return the origin value
*/
public OperationOrigin origin() {
return this.origin;
}

/**
* Get the properties value.
*
* @return the properties value
*/
public Map<String, Object> properties() {
return this.properties;
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
/**
* 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;

/**
* Display metadata associated with the operation.
*/
public class OperationDisplay {
/**
* Operation resource provider name.
*/
@JsonProperty(value = "provider", access = JsonProperty.Access.WRITE_ONLY)
private String provider;

/**
* Resource on which the operation is performed.
*/
@JsonProperty(value = "resource", access = JsonProperty.Access.WRITE_ONLY)
private String resource;

/**
* Localized friendly name for the operation.
*/
@JsonProperty(value = "operation", access = JsonProperty.Access.WRITE_ONLY)
private String operation;

/**
* Operation description.
*/
@JsonProperty(value = "description", access = JsonProperty.Access.WRITE_ONLY)
private String description;

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

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

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

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

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

import java.util.Collection;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.microsoft.rest.ExpandableStringEnum;

/**
* Defines values for OperationOrigin.
*/
public final class OperationOrigin extends ExpandableStringEnum<OperationOrigin> {
/** Static value NotSpecified for OperationOrigin. */
public static final OperationOrigin NOT_SPECIFIED = fromString("NotSpecified");

/** Static value user for OperationOrigin. */
public static final OperationOrigin USER = fromString("user");

/** Static value system for OperationOrigin. */
public static final OperationOrigin SYSTEM = fromString("system");

/**
* Creates or finds a OperationOrigin from its string representation.
* @param name a name to look for
* @return the corresponding OperationOrigin
*/
@JsonCreator
public static OperationOrigin fromString(String name) {
return fromString(name, OperationOrigin.class);
}

/**
* @return known OperationOrigin values
*/
public static Collection<OperationOrigin> values() {
return values(OperationOrigin.class);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,121 @@
/**
* 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;

/**
* Service level objectives for performance tier.
*/
public class PerformanceTierServiceLevelObjectives {
/**
* ID for the service level objective.
*/
@JsonProperty(value = "id")
private String id;

/**
* Edition of the performance tier.
*/
@JsonProperty(value = "edition")
private String edition;

/**
* vCore associated with the service level objective.
*/
@JsonProperty(value = "vCore")
private Integer vCore;

/**
* Hardware generation associated with the service level objective.
*/
@JsonProperty(value = "hardwareGeneration")
private String hardwareGeneration;

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

/**
* Set the id value.
*
* @param id the id value to set
* @return the PerformanceTierServiceLevelObjectives object itself.
*/
public PerformanceTierServiceLevelObjectives withId(String id) {
this.id = id;
return this;
}

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

/**
* Set the edition value.
*
* @param edition the edition value to set
* @return the PerformanceTierServiceLevelObjectives object itself.
*/
public PerformanceTierServiceLevelObjectives withEdition(String edition) {
this.edition = edition;
return this;
}

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

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

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

/**
* Set the hardwareGeneration value.
*
* @param hardwareGeneration the hardwareGeneration value to set
* @return the PerformanceTierServiceLevelObjectives object itself.
*/
public PerformanceTierServiceLevelObjectives withHardwareGeneration(String hardwareGeneration) {
this.hardwareGeneration = hardwareGeneration;
return this;
}

}
Loading