Skip to content
Closed
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.mysql;

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.mysql;

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.mysql;

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.mysql;

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