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] Fix minor typos in compute. #74

Merged
merged 1 commit into from
Apr 16, 2018
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,94 @@
/**
* 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.microsoft.azure.management.compute.implementation.ImageReferenceInner;
import com.fasterxml.jackson.annotation.JsonProperty;

/**
* Describes each OS upgrade on the Virtual Machine Scale Set.
*/
public class UpgradeOperationHistoricalStatusInfoProperties {
/**
* Information about the overall status of the upgrade operation.
*/
@JsonProperty(value = "runningStatus", access = JsonProperty.Access.WRITE_ONLY)
private UpgradeOperationHistoryStatus runningStatus;

/**
* Counts of the VM's in each state.
*/
@JsonProperty(value = "progress", access = JsonProperty.Access.WRITE_ONLY)
private RollingUpgradeProgressInfo progress;

/**
* Error Details for this upgrade if there are any.
*/
@JsonProperty(value = "error", access = JsonProperty.Access.WRITE_ONLY)
private ApiError error;

/**
* Invoker of the Upgrade Operation. Possible values include: 'Unknown',
* 'User', 'Platform'.
*/
@JsonProperty(value = "startedBy", access = JsonProperty.Access.WRITE_ONLY)
private UpgradeOperationInvoker startedBy;

/**
* Image Reference details.
*/
@JsonProperty(value = "targetImageReference", access = JsonProperty.Access.WRITE_ONLY)
private ImageReferenceInner targetImageReference;

/**
* Get the runningStatus value.
*
* @return the runningStatus value
*/
public UpgradeOperationHistoryStatus runningStatus() {
return this.runningStatus;
}

/**
* Get the progress value.
*
* @return the progress value
*/
public RollingUpgradeProgressInfo progress() {
return this.progress;
}

/**
* Get the error value.
*
* @return the error value
*/
public ApiError error() {
return this.error;
}

/**
* Get the startedBy value.
*
* @return the startedBy value
*/
public UpgradeOperationInvoker startedBy() {
return this.startedBy;
}

/**
* Get the targetImageReference value.
*
* @return the targetImageReference value
*/
public ImageReferenceInner targetImageReference() {
return this.targetImageReference;
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
/**
* 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 org.joda.time.DateTime;
import com.fasterxml.jackson.annotation.JsonProperty;

/**
* Information about the current running state of the overall upgrade.
*/
public class UpgradeOperationHistoryStatus {
/**
* Code indicating the current status of the upgrade. Possible values
* include: 'RollingForward', 'Cancelled', 'Completed', 'Faulted'.
*/
@JsonProperty(value = "code", access = JsonProperty.Access.WRITE_ONLY)
private UpgradeState code;

/**
* Start time of the upgrade.
*/
@JsonProperty(value = "startTime", access = JsonProperty.Access.WRITE_ONLY)
private DateTime startTime;

/**
* End time of the upgrade.
*/
@JsonProperty(value = "endTime", access = JsonProperty.Access.WRITE_ONLY)
private DateTime endTime;

/**
* Get the code value.
*
* @return the code value
*/
public UpgradeState code() {
return this.code;
}

/**
* Get the startTime value.
*
* @return the startTime value
*/
public DateTime startTime() {
return this.startTime;
}

/**
* Get the endTime value.
*
* @return the endTime value
*/
public DateTime endTime() {
return this.endTime;
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
/**
* 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 UpgradeOperationInvoker.
*/
public enum UpgradeOperationInvoker {
/** Enum value Unknown. */
UNKNOWN("Unknown"),

/** Enum value User. */
USER("User"),

/** Enum value Platform. */
PLATFORM("Platform");

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

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

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

/** Enum value Cancelled. */
CANCELLED("Cancelled"),

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

/** Enum value Faulted. */
FAULTED("Faulted");

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

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

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

/**
* Specifies the eviction policy for virtual machines in the low priority
* Specifies the eviction policy for virtual machines in a low priority
* scale set. <br><br>Minimum api-version: 2017-10-30-preview.
* Possible values include: 'Deallocate', 'Delete'.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,7 @@

/**
* Specifies information about the availability set that the virtual machine
* should be assigned to. Virtual machines specified in the same availability
* set are allocated to different nodes to maximize availability. For more
* information about availability sets, see [Manage the availability of virtual
* machines](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-manage-availability?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json).
* <br><br> For more information on Azure planned maintainance, see
* [Planned maintenance for virtual machines in
* Azure](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-planned-maintenance?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json)
* <br><br> Currently, a VM can only be added to availability set
* at creation time. An existing VM cannot be added to an availability set.
* should be assigned to. Only tags may be updated.
*/
@JsonFlatten
public class AvailabilitySetUpdateInner extends UpdateResource {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,7 @@
import com.microsoft.azure.management.compute.UpdateResource;

/**
* The source user image virtual hard disk. The virtual hard disk will be
* copied before being attached to the virtual machine. If SourceImage is
* provided, the destination virtual hard drive must not exist.
* The source user image virtual hard disk. Only tags may be updated.
*/
@JsonFlatten
public class ImageUpdateInner extends UpdateResource {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
/**
* 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.implementation;

import com.microsoft.azure.management.compute.UpgradeOperationHistoricalStatusInfoProperties;
import com.fasterxml.jackson.annotation.JsonProperty;

/**
* Virtual Machine Scale Set OS Upgrade History operation response.
*/
public class UpgradeOperationHistoricalStatusInfoInner {
/**
* Information about the properties of the upgrade operation.
*/
@JsonProperty(value = "properties", access = JsonProperty.Access.WRITE_ONLY)
private UpgradeOperationHistoricalStatusInfoProperties properties;

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

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

/**
* Get the properties value.
*
* @return the properties value
*/
public UpgradeOperationHistoricalStatusInfoProperties properties() {
return this.properties;
}

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

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

}
Loading