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] Upgrade Compute API version and Fix the response of POST response #169

Merged
merged 1 commit into from
May 21, 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
Expand Up @@ -10,6 +10,7 @@

import java.util.List;
import com.microsoft.azure.SubResource;
import com.microsoft.azure.management.compute.implementation.InstanceViewStatusInner;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.microsoft.rest.serializer.JsonFlatten;

Expand Down Expand Up @@ -41,7 +42,7 @@ public class AvailabilitySetUpdate extends UpdateResource {
* The resource status information.
*/
@JsonProperty(value = "properties.statuses", access = JsonProperty.Access.WRITE_ONLY)
private List<InstanceViewStatus> statuses;
private List<InstanceViewStatusInner> statuses;

/**
* Sku of the availability set.
Expand Down Expand Up @@ -114,7 +115,7 @@ public AvailabilitySetUpdate withVirtualMachines(List<SubResource> virtualMachin
*
* @return the statuses value
*/
public List<InstanceViewStatus> statuses() {
public List<InstanceViewStatusInner> statuses() {
return this.statuses;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,14 +62,14 @@ public class DataDisk {

/**
* Specifies how the virtual machine should be created.&lt;br&gt;&lt;br&gt;
* Possible values are:&lt;br&gt;&lt;br&gt; **Attach** This value is used
* when you are using a specialized disk to create the virtual
* machine.&lt;br&gt;&lt;br&gt; **FromImage** This value is used when you
* are using an image to create the virtual machine. If you are using a
* platform image, you also use the imageReference element described above.
* If you are using a marketplace image, you also use the plan element
* previously described. Possible values include: 'FromImage', 'Empty',
* 'Attach'.
* Possible values are:&lt;br&gt;&lt;br&gt; **Attach** \u2013 This value is
* used when you are using a specialized disk to create the virtual
* machine.&lt;br&gt;&lt;br&gt; **FromImage** \u2013 This value is used
* when you are using an image to create the virtual machine. If you are
* using a platform image, you also use the imageReference element
* described above. If you are using a marketplace image, you also use the
* plan element previously described. Possible values include: 'FromImage',
* 'Empty', 'Attach'.
*/
@JsonProperty(value = "createOption", required = true)
private DiskCreateOptionTypes createOption;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
package com.microsoft.azure.management.compute;

import java.util.List;
import com.microsoft.azure.management.compute.implementation.InstanceViewStatusInner;
import com.fasterxml.jackson.annotation.JsonProperty;

/**
Expand All @@ -32,7 +33,7 @@ public class DiskInstanceView {
* The resource status information.
*/
@JsonProperty(value = "statuses")
private List<InstanceViewStatus> statuses;
private List<InstanceViewStatusInner> statuses;

/**
* Get the name value.
Expand Down Expand Up @@ -79,7 +80,7 @@ public DiskInstanceView withEncryptionSettings(List<DiskEncryptionSettings> encr
*
* @return the statuses value
*/
public List<InstanceViewStatus> statuses() {
public List<InstanceViewStatusInner> statuses() {
return this.statuses;
}

Expand All @@ -89,7 +90,7 @@ public List<InstanceViewStatus> statuses() {
* @param statuses the statuses value to set
* @return the DiskInstanceView object itself.
*/
public DiskInstanceView withStatuses(List<InstanceViewStatus> statuses) {
public DiskInstanceView withStatuses(List<InstanceViewStatusInner> statuses) {
this.statuses = statuses;
return this;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,14 +74,14 @@ public class OSDisk {

/**
* Specifies how the virtual machine should be created.&lt;br&gt;&lt;br&gt;
* Possible values are:&lt;br&gt;&lt;br&gt; **Attach** This value is used
* when you are using a specialized disk to create the virtual
* machine.&lt;br&gt;&lt;br&gt; **FromImage** This value is used when you
* are using an image to create the virtual machine. If you are using a
* platform image, you also use the imageReference element described above.
* If you are using a marketplace image, you also use the plan element
* previously described. Possible values include: 'FromImage', 'Empty',
* 'Attach'.
* Possible values are:&lt;br&gt;&lt;br&gt; **Attach** \u2013 This value is
* used when you are using a specialized disk to create the virtual
* machine.&lt;br&gt;&lt;br&gt; **FromImage** \u2013 This value is used
* when you are using an image to create the virtual machine. If you are
* using a platform image, you also use the imageReference element
* described above. If you are using a marketplace image, you also use the
* plan element previously described. Possible values include: 'FromImage',
* 'Empty', 'Attach'.
*/
@JsonProperty(value = "createOption", required = true)
private DiskCreateOptionTypes createOption;
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
/**
* 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.JsonProperty;
import com.microsoft.rest.serializer.JsonFlatten;

/**
* Run command operation response.
*/
@JsonFlatten
public class RunCommandResult {
/**
* Operation output data (raw JSON).
*/
@JsonProperty(value = "properties.output")
private Object output;

/**
* Get the output value.
*
* @return the output value
*/
public Object output() {
return this.output;
}

/**
* Set the output value.
*
* @param output the output value to set
* @return the RunCommandResult object itself.
*/
public RunCommandResult withOutput(Object output) {
this.output = output;
return this;
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
package com.microsoft.azure.management.compute;

import java.util.List;
import com.microsoft.azure.management.compute.implementation.InstanceViewStatusInner;
import com.fasterxml.jackson.annotation.JsonProperty;

/**
Expand All @@ -31,7 +32,7 @@ public class VirtualMachineAgentInstanceView {
* The resource status information.
*/
@JsonProperty(value = "statuses")
private List<InstanceViewStatus> statuses;
private List<InstanceViewStatusInner> statuses;

/**
* Get the vmAgentVersion value.
Expand Down Expand Up @@ -78,7 +79,7 @@ public VirtualMachineAgentInstanceView withExtensionHandlers(List<VirtualMachine
*
* @return the statuses value
*/
public List<InstanceViewStatus> statuses() {
public List<InstanceViewStatusInner> statuses() {
return this.statuses;
}

Expand All @@ -88,7 +89,7 @@ public List<InstanceViewStatus> statuses() {
* @param statuses the statuses value to set
* @return the VirtualMachineAgentInstanceView object itself.
*/
public VirtualMachineAgentInstanceView withStatuses(List<InstanceViewStatus> statuses) {
public VirtualMachineAgentInstanceView withStatuses(List<InstanceViewStatusInner> statuses) {
this.statuses = statuses;
return this;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

package com.microsoft.azure.management.compute;

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

/**
Expand All @@ -31,7 +32,7 @@ public class VirtualMachineExtensionHandlerInstanceView {
* The extension handler status.
*/
@JsonProperty(value = "status")
private InstanceViewStatus status;
private InstanceViewStatusInner status;

/**
* Get the type value.
Expand Down Expand Up @@ -78,7 +79,7 @@ public VirtualMachineExtensionHandlerInstanceView withTypeHandlerVersion(String
*
* @return the status value
*/
public InstanceViewStatus status() {
public InstanceViewStatusInner status() {
return this.status;
}

Expand All @@ -88,7 +89,7 @@ public InstanceViewStatus status() {
* @param status the status value to set
* @return the VirtualMachineExtensionHandlerInstanceView object itself.
*/
public VirtualMachineExtensionHandlerInstanceView withStatus(InstanceViewStatus status) {
public VirtualMachineExtensionHandlerInstanceView withStatus(InstanceViewStatusInner status) {
this.status = status;
return this;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
package com.microsoft.azure.management.compute;

import java.util.List;
import com.microsoft.azure.management.compute.implementation.InstanceViewStatusInner;
import com.fasterxml.jackson.annotation.JsonProperty;

/**
Expand Down Expand Up @@ -38,13 +39,13 @@ public class VirtualMachineExtensionInstanceView {
* The resource status information.
*/
@JsonProperty(value = "substatuses")
private List<InstanceViewStatus> substatuses;
private List<InstanceViewStatusInner> substatuses;

/**
* The resource status information.
*/
@JsonProperty(value = "statuses")
private List<InstanceViewStatus> statuses;
private List<InstanceViewStatusInner> statuses;

/**
* Get the name value.
Expand Down Expand Up @@ -111,7 +112,7 @@ public VirtualMachineExtensionInstanceView withTypeHandlerVersion(String typeHan
*
* @return the substatuses value
*/
public List<InstanceViewStatus> substatuses() {
public List<InstanceViewStatusInner> substatuses() {
return this.substatuses;
}

Expand All @@ -121,7 +122,7 @@ public List<InstanceViewStatus> substatuses() {
* @param substatuses the substatuses value to set
* @return the VirtualMachineExtensionInstanceView object itself.
*/
public VirtualMachineExtensionInstanceView withSubstatuses(List<InstanceViewStatus> substatuses) {
public VirtualMachineExtensionInstanceView withSubstatuses(List<InstanceViewStatusInner> substatuses) {
this.substatuses = substatuses;
return this;
}
Expand All @@ -131,7 +132,7 @@ public VirtualMachineExtensionInstanceView withSubstatuses(List<InstanceViewStat
*
* @return the statuses value
*/
public List<InstanceViewStatus> statuses() {
public List<InstanceViewStatusInner> statuses() {
return this.statuses;
}

Expand All @@ -141,7 +142,7 @@ public List<InstanceViewStatus> statuses() {
* @param statuses the statuses value to set
* @return the VirtualMachineExtensionInstanceView object itself.
*/
public VirtualMachineExtensionInstanceView withStatuses(List<InstanceViewStatus> statuses) {
public VirtualMachineExtensionInstanceView withStatuses(List<InstanceViewStatusInner> statuses) {
this.statuses = statuses;
return this;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

package com.microsoft.azure.management.compute;

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

/**
Expand All @@ -18,14 +19,14 @@ public class VirtualMachineHealthStatus {
* The health status information for the VM.
*/
@JsonProperty(value = "status", access = JsonProperty.Access.WRITE_ONLY)
private InstanceViewStatus status;
private InstanceViewStatusInner status;

/**
* Get the status value.
*
* @return the status value
*/
public InstanceViewStatus status() {
public InstanceViewStatusInner status() {
return this.status;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ public class VirtualMachineScaleSetOSDisk {
/**
* Specifies how the virtual machines in the scale set should be
* created.&lt;br&gt;&lt;br&gt; The only allowed value is: **FromImage**
* This value is used when you are using an image to create the virtual
* machine. If you are using a platform image, you also use the
* \u2013 This value is used when you are using an image to create the
* virtual machine. If you are using a platform image, you also use the
* imageReference element described above. If you are using a marketplace
* image, you also use the plan element previously described. Possible
* values include: 'FromImage', 'Empty', 'Attach'.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,15 @@
package com.microsoft.azure.management.compute.implementation;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.microsoft.rest.serializer.JsonFlatten;

/**
* A disk access SAS uri.
*/
@JsonFlatten
public class AccessUriInner {
/**
* A SAS uri for accessing a disk.
*/
@JsonProperty(value = "properties.output.accessSAS", access = JsonProperty.Access.WRITE_ONLY)
@JsonProperty(value = "accessSAS", access = JsonProperty.Access.WRITE_ONLY)
private String accessSAS;

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@

import java.util.List;
import com.microsoft.azure.SubResource;
import com.microsoft.azure.management.compute.InstanceViewStatus;
import com.microsoft.azure.management.compute.Sku;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.microsoft.rest.serializer.JsonFlatten;
Expand Down Expand Up @@ -52,7 +51,7 @@ public class AvailabilitySetInner extends Resource {
* The resource status information.
*/
@JsonProperty(value = "properties.statuses", access = JsonProperty.Access.WRITE_ONLY)
private List<InstanceViewStatus> statuses;
private List<InstanceViewStatusInner> statuses;

/**
* Sku of the availability set.
Expand Down Expand Up @@ -125,7 +124,7 @@ public AvailabilitySetInner withVirtualMachines(List<SubResource> virtualMachine
*
* @return the statuses value
*/
public List<InstanceViewStatus> statuses() {
public List<InstanceViewStatusInner> statuses() {
return this.statuses;
}

Expand Down
Loading