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] redis/resource-manager #122

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,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.redis;

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

/**
* Defines values for DefaultName.
*/
public enum DefaultName {
/** Enum value Microsoft.Cache/redis. */
MICROSOFT_CACHEREDIS("Microsoft.Cache/redis");

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

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

/**
* Parses a serialized value to a DefaultName instance.
*
* @param value the serialized value to parse.
* @return the parsed DefaultName object, or null if unable to parse.
*/
@JsonCreator
public static DefaultName fromString(String value) {
DefaultName[] items = DefaultName.values();
for (DefaultName 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
@@ -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.redis;

import com.fasterxml.jackson.annotation.JsonProperty;

/**
* The object that describes the operation.
*/
public class OperationDisplay {
/**
* Friendly name of the resource provider.
*/
@JsonProperty(value = "provider")
private String provider;

/**
* Operation type: read, write, delete, listKeys/action, etc.
*/
@JsonProperty(value = "operation")
private String operation;

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

/**
* Friendly name of the operation.
*/
@JsonProperty(value = "description")
private String description;

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

/**
* Set the provider value.
*
* @param provider the provider value to set
* @return the OperationDisplay object itself.
*/
public OperationDisplay withProvider(String provider) {
this.provider = provider;
return this;
}

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

/**
* Set the operation value.
*
* @param operation the operation value to set
* @return the OperationDisplay object itself.
*/
public OperationDisplay withOperation(String operation) {
this.operation = operation;
return this;
}

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

/**
* Set the resource value.
*
* @param resource the resource value to set
* @return the OperationDisplay object itself.
*/
public OperationDisplay withResource(String resource) {
this.resource = resource;
return this;
}

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

/**
* Set the description value.
*
* @param description the description value to set
* @return the OperationDisplay object itself.
*/
public OperationDisplay withDescription(String description) {
this.description = description;
return this;
}

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

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

/**
* Defines values for ProvisioningState.
*/
public final class ProvisioningState extends ExpandableStringEnum<ProvisioningState> {
/** Static value Creating for ProvisioningState. */
public static final ProvisioningState CREATING = fromString("Creating");

/** Static value Deleting for ProvisioningState. */
public static final ProvisioningState DELETING = fromString("Deleting");

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

/** Static value Failed for ProvisioningState. */
public static final ProvisioningState FAILED = fromString("Failed");

/** Static value Linking for ProvisioningState. */
public static final ProvisioningState LINKING = fromString("Linking");

/** Static value Provisioning for ProvisioningState. */
public static final ProvisioningState PROVISIONING = fromString("Provisioning");

/** Static value RecoveringScaleFailure for ProvisioningState. */
public static final ProvisioningState RECOVERING_SCALE_FAILURE = fromString("RecoveringScaleFailure");

/** Static value Scaling for ProvisioningState. */
public static final ProvisioningState SCALING = fromString("Scaling");

/** Static value Succeeded for ProvisioningState. */
public static final ProvisioningState SUCCEEDED = fromString("Succeeded");

/** Static value Unlinking for ProvisioningState. */
public static final ProvisioningState UNLINKING = fromString("Unlinking");

/** Static value Unprovisioning for ProvisioningState. */
public static final ProvisioningState UNPROVISIONING = fromString("Unprovisioning");

/** Static value Updating for ProvisioningState. */
public static final ProvisioningState UPDATING = fromString("Updating");

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

/**
* @return known ProvisioningState values
*/
public static Collection<ProvisioningState> values() {
return values(ProvisioningState.class);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,55 +8,37 @@

package com.microsoft.azure.management.redis;

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

/**
* Defines values for RebootType.
*/
public final class RebootType {
public final class RebootType extends ExpandableStringEnum<RebootType> {
/** Static value PrimaryNode for RebootType. */
public static final RebootType PRIMARY_NODE = new RebootType("PrimaryNode");
public static final RebootType PRIMARY_NODE = fromString("PrimaryNode");

/** Static value SecondaryNode for RebootType. */
public static final RebootType SECONDARY_NODE = new RebootType("SecondaryNode");
public static final RebootType SECONDARY_NODE = fromString("SecondaryNode");

/** Static value AllNodes for RebootType. */
public static final RebootType ALL_NODES = new RebootType("AllNodes");

private String value;
public static final RebootType ALL_NODES = fromString("AllNodes");

/**
* Creates a custom value for RebootType.
* @param value the custom value
* Creates or finds a RebootType from its string representation.
* @param name a name to look for
* @return the corresponding RebootType
*/
public RebootType(String value) {
this.value = value;
}

@JsonValue
@Override
public String toString() {
return value;
@JsonCreator
public static RebootType fromString(String name) {
return fromString(name, RebootType.class);
}

@Override
public int hashCode() {
return value.hashCode();
}

@Override
public boolean equals(Object obj) {
if (!(obj instanceof RebootType)) {
return false;
}
if (obj == this) {
return true;
}
RebootType rhs = (RebootType) obj;
if (value == null) {
return rhs.value == null;
} else {
return value.equals(rhs.value);
}
/**
* @return known RebootType values
*/
public static Collection<RebootType> values() {
return values(RebootType.class);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
/**
* 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.redis;

import com.fasterxml.jackson.annotation.JsonProperty;

/**
* Linked server Id.
*/
public class RedisLinkedServer {
/**
* Linked server Id.
*/
@JsonProperty(value = "id", access = JsonProperty.Access.WRITE_ONLY)
private String id;

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

}
Loading