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] compute/resource-manager #2

Open
wants to merge 15 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
15 commits
Select commit Hold shift + click to select a range
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 @@ -8,46 +8,34 @@

package com.microsoft.azure.management.compute;

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

/**
* Defines values for AccessLevel.
*/
public enum AccessLevel {
/** Enum value None. */
NONE("None"),
public final class AccessLevel extends ExpandableStringEnum<AccessLevel> {
/** Static value None for AccessLevel. */
public static final AccessLevel NONE = fromString("None");

/** Enum value Read. */
READ("Read");

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

AccessLevel(String value) {
this.value = value;
}
/** Static value Read for AccessLevel. */
public static final AccessLevel READ = fromString("Read");

/**
* Parses a serialized value to a AccessLevel instance.
*
* @param value the serialized value to parse.
* @return the parsed AccessLevel object, or null if unable to parse.
* Creates or finds a AccessLevel from its string representation.
* @param name a name to look for
* @return the corresponding AccessLevel
*/
@JsonCreator
public static AccessLevel fromString(String value) {
AccessLevel[] items = AccessLevel.values();
for (AccessLevel item : items) {
if (item.toString().equalsIgnoreCase(value)) {
return item;
}
}
return null;
public static AccessLevel fromString(String name) {
return fromString(name, AccessLevel.class);
}

@JsonValue
@Override
public String toString() {
return this.value;
/**
* @return known AccessLevel values
*/
public static Collection<AccessLevel> values() {
return values(AccessLevel.class);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public class AdditionalUnattendContent {
private String content;

/**
* Get the passName value.
* Get the pass name. Currently, the only allowable value is OobeSystem. Possible values include: 'OobeSystem'.
*
* @return the passName value
*/
Expand All @@ -58,7 +58,7 @@ public PassNames passName() {
}

/**
* Set the passName value.
* Set the pass name. Currently, the only allowable value is OobeSystem. Possible values include: 'OobeSystem'.
*
* @param passName the passName value to set
* @return the AdditionalUnattendContent object itself.
Expand All @@ -69,7 +69,7 @@ public AdditionalUnattendContent withPassName(PassNames passName) {
}

/**
* Get the componentName value.
* Get the component name. Currently, the only allowable value is Microsoft-Windows-Shell-Setup. Possible values include: 'Microsoft-Windows-Shell-Setup'.
*
* @return the componentName value
*/
Expand All @@ -78,7 +78,7 @@ public ComponentNames componentName() {
}

/**
* Set the componentName value.
* Set the component name. Currently, the only allowable value is Microsoft-Windows-Shell-Setup. Possible values include: 'Microsoft-Windows-Shell-Setup'.
*
* @param componentName the componentName value to set
* @return the AdditionalUnattendContent object itself.
Expand All @@ -89,7 +89,7 @@ public AdditionalUnattendContent withComponentName(ComponentNames componentName)
}

/**
* Get the settingName value.
* Get specifies the name of the setting to which the content applies. Possible values are: FirstLogonCommands and AutoLogon. Possible values include: 'AutoLogon', 'FirstLogonCommands'.
*
* @return the settingName value
*/
Expand All @@ -98,7 +98,7 @@ public SettingNames settingName() {
}

/**
* Set the settingName value.
* Set specifies the name of the setting to which the content applies. Possible values are: FirstLogonCommands and AutoLogon. Possible values include: 'AutoLogon', 'FirstLogonCommands'.
*
* @param settingName the settingName value to set
* @return the AdditionalUnattendContent object itself.
Expand All @@ -109,7 +109,7 @@ public AdditionalUnattendContent withSettingName(SettingNames settingName) {
}

/**
* Get the content value.
* Get specifies the XML formatted content that is added to the unattend.xml file for the specified path and component. The XML must be less than 4KB and must include the root element for the setting or feature that is being inserted.
*
* @return the content value
*/
Expand All @@ -118,7 +118,7 @@ public String content() {
}

/**
* Set the content value.
* Set specifies the XML formatted content that is added to the unattend.xml file for the specified path and component. The XML must be less than 4KB and must include the root element for the setting or feature that is being inserted.
*
* @param content the content value to set
* @return the AdditionalUnattendContent object itself.
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
/**
* 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.compute;

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

/**
* Defines values for AggregatedReplicationState.
*/
public enum AggregatedReplicationState {
/** Enum value Unknown. */
UNKNOWN("Unknown"),

/** Enum value InProgress. */
IN_PROGRESS("InProgress"),

/** Enum value Completed. */
COMPLETED("Completed"),

/** Enum value Failed. */
FAILED("Failed");

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

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

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

/**
* Get the id value.
* Get the ARM resource id in the form of /subscriptions/{SubcriptionId}/resourceGroups/{ResourceGroupName}/...
*
* @return the id value
*/
Expand All @@ -31,7 +31,7 @@ public String id() {
}

/**
* Set the id value.
* Set the ARM resource id in the form of /subscriptions/{SubcriptionId}/resourceGroups/{ResourceGroupName}/...
*
* @param id the id value to set
* @return the ApiEntityReference object itself.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public class ApiError {
private String message;

/**
* Get the details value.
* Get the Api error details.
*
* @return the details value
*/
Expand All @@ -55,7 +55,7 @@ public List<ApiErrorBase> details() {
}

/**
* Set the details value.
* Set the Api error details.
*
* @param details the details value to set
* @return the ApiError object itself.
Expand All @@ -66,7 +66,7 @@ public ApiError withDetails(List<ApiErrorBase> details) {
}

/**
* Get the innererror value.
* Get the Api inner error.
*
* @return the innererror value
*/
Expand All @@ -75,7 +75,7 @@ public InnerError innererror() {
}

/**
* Set the innererror value.
* Set the Api inner error.
*
* @param innererror the innererror value to set
* @return the ApiError object itself.
Expand All @@ -86,7 +86,7 @@ public ApiError withInnererror(InnerError innererror) {
}

/**
* Get the code value.
* Get the error code.
*
* @return the code value
*/
Expand All @@ -95,7 +95,7 @@ public String code() {
}

/**
* Set the code value.
* Set the error code.
*
* @param code the code value to set
* @return the ApiError object itself.
Expand All @@ -106,7 +106,7 @@ public ApiError withCode(String code) {
}

/**
* Get the target value.
* Get the target of the particular error.
*
* @return the target value
*/
Expand All @@ -115,7 +115,7 @@ public String target() {
}

/**
* Set the target value.
* Set the target of the particular error.
*
* @param target the target value to set
* @return the ApiError object itself.
Expand All @@ -126,7 +126,7 @@ public ApiError withTarget(String target) {
}

/**
* Get the message value.
* Get the error message.
*
* @return the message value
*/
Expand All @@ -135,7 +135,7 @@ public String message() {
}

/**
* Set the message value.
* Set the error message.
*
* @param message the message value to set
* @return the ApiError object itself.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public class ApiErrorBase {
private String message;

/**
* Get the code value.
* Get the error code.
*
* @return the code value
*/
Expand All @@ -42,7 +42,7 @@ public String code() {
}

/**
* Set the code value.
* Set the error code.
*
* @param code the code value to set
* @return the ApiErrorBase object itself.
Expand All @@ -53,7 +53,7 @@ public ApiErrorBase withCode(String code) {
}

/**
* Get the target value.
* Get the target of the particular error.
*
* @return the target value
*/
Expand All @@ -62,7 +62,7 @@ public String target() {
}

/**
* Set the target value.
* Set the target of the particular error.
*
* @param target the target value to set
* @return the ApiErrorBase object itself.
Expand All @@ -73,7 +73,7 @@ public ApiErrorBase withTarget(String target) {
}

/**
* Get the message value.
* Get the error message.
*
* @return the message value
*/
Expand All @@ -82,7 +82,7 @@ public String message() {
}

/**
* Set the message value.
* Set the error message.
*
* @param message the message value to set
* @return the ApiErrorBase object itself.
Expand Down
Loading