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] mysql/resource-manager #246

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
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
@@ -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,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.mysql;

import com.fasterxml.jackson.annotation.JsonProperty;

/**
* Request from client to check resource name availability.
*/
public class NameAvailabilityRequest {
/**
* Resource name to verify.
*/
@JsonProperty(value = "name", required = true)
private String name;

/**
* Resource type used for verification.
*/
@JsonProperty(value = "type")
private String type;

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

/**
* Set resource name to verify.
*
* @param name the name value to set
* @return the NameAvailabilityRequest object itself.
*/
public NameAvailabilityRequest withName(String name) {
this.name = name;
return this;
}

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

/**
* Set resource type used for verification.
*
* @param type the type value to set
* @return the NameAvailabilityRequest object itself.
*/
public NameAvailabilityRequest withType(String type) {
this.type = type;
return this;
}

}
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 operation resource provider name.
*
* @return the provider value
*/
public String provider() {
return this.provider;
}

/**
* Get resource on which the operation is performed.
*
* @return the resource value
*/
public String resource() {
return this.resource;
}

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

/**
* Get operation description.
*
* @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