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
Expand Up @@ -21,7 +21,7 @@ public class ContainerServiceVMDiagnostics {
private boolean enabled;

/**
* The URI of the storage account where diagnostics are stored.
* The storageUri property.
*/
@JsonProperty(value = "storageUri", access = JsonProperty.Access.WRITE_ONLY)
private String storageUri;
Expand Down
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 @@ -157,7 +157,7 @@ public Observable<ServiceResponse<AvailabilitySetInner>> createOrUpdateWithServi
throw new IllegalArgumentException("Parameter parameters is required and cannot be null.");
}
Validator.validate(parameters);
final String apiVersion = "2017-12-01";
final String apiVersion = "2017-12-01-alphadummy";
return service.createOrUpdate(resourceGroupName, availabilitySetName, this.client.subscriptionId(), parameters, apiVersion, this.client.acceptLanguage(), this.client.userAgent())
.flatMap(new Func1<Response<ResponseBody>, Observable<ServiceResponse<AvailabilitySetInner>>>() {
@Override
Expand Down Expand Up @@ -249,7 +249,7 @@ public Observable<ServiceResponse<AvailabilitySetInner>> updateWithServiceRespon
throw new IllegalArgumentException("Parameter parameters is required and cannot be null.");
}
Validator.validate(parameters);
final String apiVersion = "2017-12-01";
final String apiVersion = "2017-12-01-alphadummy";
return service.update(resourceGroupName, availabilitySetName, this.client.subscriptionId(), parameters, apiVersion, this.client.acceptLanguage(), this.client.userAgent())
.flatMap(new Func1<Response<ResponseBody>, Observable<ServiceResponse<AvailabilitySetInner>>>() {
@Override
Expand Down Expand Up @@ -333,7 +333,7 @@ public Observable<ServiceResponse<OperationStatusResponseInner>> deleteWithServi
if (this.client.subscriptionId() == null) {
throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null.");
}
final String apiVersion = "2017-12-01";
final String apiVersion = "2017-12-01-alphadummy";
return service.delete(resourceGroupName, availabilitySetName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent())
.flatMap(new Func1<Response<ResponseBody>, Observable<ServiceResponse<OperationStatusResponseInner>>>() {
@Override
Expand Down Expand Up @@ -418,7 +418,7 @@ public Observable<ServiceResponse<AvailabilitySetInner>> getByResourceGroupWithS
if (this.client.subscriptionId() == null) {
throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null.");
}
final String apiVersion = "2017-12-01";
final String apiVersion = "2017-12-01-alphadummy";
return service.getByResourceGroup(resourceGroupName, availabilitySetName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent())
.flatMap(new Func1<Response<ResponseBody>, Observable<ServiceResponse<AvailabilitySetInner>>>() {
@Override
Expand Down Expand Up @@ -499,7 +499,7 @@ public Observable<ServiceResponse<List<AvailabilitySetInner>>> listByResourceGro
if (this.client.subscriptionId() == null) {
throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null.");
}
final String apiVersion = "2017-12-01";
final String apiVersion = "2017-12-01-alphadummy";
return service.listByResourceGroup(resourceGroupName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent())
.flatMap(new Func1<Response<ResponseBody>, Observable<ServiceResponse<List<AvailabilitySetInner>>>>() {
@Override
Expand Down Expand Up @@ -584,7 +584,7 @@ public Observable<ServiceResponse<List<VirtualMachineSizeInner>>> listAvailableS
if (this.client.subscriptionId() == null) {
throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null.");
}
final String apiVersion = "2017-12-01";
final String apiVersion = "2017-12-01-alphadummy";
return service.listAvailableSizes(resourceGroupName, availabilitySetName, this.client.subscriptionId(), apiVersion, this.client.acceptLanguage(), this.client.userAgent())
.flatMap(new Func1<Response<ResponseBody>, Observable<ServiceResponse<List<VirtualMachineSizeInner>>>>() {
@Override
Expand Down
Loading