Skip to content

Commit

Permalink
Generated from 87e0684ac67bc015bf82c1f1227093265c2e1233 (#155)
Browse files Browse the repository at this point in the history
added older examples
  • Loading branch information
AutorestCI authored May 17, 2018
1 parent 156bf3f commit ee9ee11
Show file tree
Hide file tree
Showing 24 changed files with 1,753 additions and 130 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
/**
* 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;

/**
* The configuration parameters used for performing automatic OS upgrade.
*/
public class AutoOSUpgradePolicy {
/**
* Whether OS image rollback feature should be disabled. Default value is
* false.
*/
@JsonProperty(value = "disableAutoRollback")
private Boolean disableAutoRollback;

/**
* Get the disableAutoRollback value.
*
* @return the disableAutoRollback value
*/
public Boolean disableAutoRollback() {
return this.disableAutoRollback;
}

/**
* Set the disableAutoRollback value.
*
* @param disableAutoRollback the disableAutoRollback value to set
* @return the AutoOSUpgradePolicy object itself.
*/
public AutoOSUpgradePolicy withDisableAutoRollback(Boolean disableAutoRollback) {
this.disableAutoRollback = disableAutoRollback;
return this;
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,141 @@
/**
* 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 java.util.List;
import com.microsoft.azure.SubResource;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.microsoft.rest.serializer.JsonFlatten;

/**
* Specifies information about the availability set that the virtual machine
* should be assigned to. Only tags may be updated.
*/
@JsonFlatten
public class AvailabilitySetUpdate extends UpdateResource {
/**
* Update Domain count.
*/
@JsonProperty(value = "properties.platformUpdateDomainCount")
private Integer platformUpdateDomainCount;

/**
* Fault Domain count.
*/
@JsonProperty(value = "properties.platformFaultDomainCount")
private Integer platformFaultDomainCount;

/**
* A list of references to all virtual machines in the availability set.
*/
@JsonProperty(value = "properties.virtualMachines")
private List<SubResource> virtualMachines;

/**
* The resource status information.
*/
@JsonProperty(value = "properties.statuses", access = JsonProperty.Access.WRITE_ONLY)
private List<InstanceViewStatus> statuses;

/**
* Sku of the availability set.
*/
@JsonProperty(value = "sku")
private Sku sku;

/**
* Get the platformUpdateDomainCount value.
*
* @return the platformUpdateDomainCount value
*/
public Integer platformUpdateDomainCount() {
return this.platformUpdateDomainCount;
}

/**
* Set the platformUpdateDomainCount value.
*
* @param platformUpdateDomainCount the platformUpdateDomainCount value to set
* @return the AvailabilitySetUpdate object itself.
*/
public AvailabilitySetUpdate withPlatformUpdateDomainCount(Integer platformUpdateDomainCount) {
this.platformUpdateDomainCount = platformUpdateDomainCount;
return this;
}

/**
* Get the platformFaultDomainCount value.
*
* @return the platformFaultDomainCount value
*/
public Integer platformFaultDomainCount() {
return this.platformFaultDomainCount;
}

/**
* Set the platformFaultDomainCount value.
*
* @param platformFaultDomainCount the platformFaultDomainCount value to set
* @return the AvailabilitySetUpdate object itself.
*/
public AvailabilitySetUpdate withPlatformFaultDomainCount(Integer platformFaultDomainCount) {
this.platformFaultDomainCount = platformFaultDomainCount;
return this;
}

/**
* Get the virtualMachines value.
*
* @return the virtualMachines value
*/
public List<SubResource> virtualMachines() {
return this.virtualMachines;
}

/**
* Set the virtualMachines value.
*
* @param virtualMachines the virtualMachines value to set
* @return the AvailabilitySetUpdate object itself.
*/
public AvailabilitySetUpdate withVirtualMachines(List<SubResource> virtualMachines) {
this.virtualMachines = virtualMachines;
return this;
}

/**
* Get the statuses value.
*
* @return the statuses value
*/
public List<InstanceViewStatus> statuses() {
return this.statuses;
}

/**
* Get the sku value.
*
* @return the sku value
*/
public Sku sku() {
return this.sku;
}

/**
* Set the sku value.
*
* @param sku the sku value to set
* @return the AvailabilitySetUpdate object itself.
*/
public AvailabilitySetUpdate withSku(Sku sku) {
this.sku = sku;
return this;
}

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

/**
* Disk update resource.
*/
@JsonFlatten
public class DiskUpdate extends ResourceUpdate {
/**
* the Operating System type. Possible values include: 'Windows', 'Linux'.
*/
@JsonProperty(value = "properties.osType")
private OperatingSystemTypes osType;

/**
* If creationData.createOption is Empty, this field is mandatory and it
* indicates the size of the VHD to create. If this field is present for
* updates or creation with other options, it indicates a resize. Resizes
* are only allowed if the disk is not attached to a running VM, and can
* only increase the disk's size.
*/
@JsonProperty(value = "properties.diskSizeGB")
private Integer diskSizeGB;

/**
* Encryption settings for disk or snapshot.
*/
@JsonProperty(value = "properties.encryptionSettings")
private EncryptionSettings encryptionSettings;

/**
* Get the osType value.
*
* @return the osType value
*/
public OperatingSystemTypes osType() {
return this.osType;
}

/**
* Set the osType value.
*
* @param osType the osType value to set
* @return the DiskUpdate object itself.
*/
public DiskUpdate withOsType(OperatingSystemTypes osType) {
this.osType = osType;
return this;
}

/**
* Get the diskSizeGB value.
*
* @return the diskSizeGB value
*/
public Integer diskSizeGB() {
return this.diskSizeGB;
}

/**
* Set the diskSizeGB value.
*
* @param diskSizeGB the diskSizeGB value to set
* @return the DiskUpdate object itself.
*/
public DiskUpdate withDiskSizeGB(Integer diskSizeGB) {
this.diskSizeGB = diskSizeGB;
return this;
}

/**
* Get the encryptionSettings value.
*
* @return the encryptionSettings value
*/
public EncryptionSettings encryptionSettings() {
return this.encryptionSettings;
}

/**
* Set the encryptionSettings value.
*
* @param encryptionSettings the encryptionSettings value to set
* @return the DiskUpdate object itself.
*/
public DiskUpdate withEncryptionSettings(EncryptionSettings encryptionSettings) {
this.encryptionSettings = encryptionSettings;
return this;
}

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

/**
* Data used for requesting a SAS.
*/
public class GrantAccessData {
/**
* Possible values include: 'None', 'Read'.
*/
@JsonProperty(value = "access", required = true)
private AccessLevel access;

/**
* Time duration in seconds until the SAS access expires.
*/
@JsonProperty(value = "durationInSeconds", required = true)
private int durationInSeconds;

/**
* Get the access value.
*
* @return the access value
*/
public AccessLevel access() {
return this.access;
}

/**
* Set the access value.
*
* @param access the access value to set
* @return the GrantAccessData object itself.
*/
public GrantAccessData withAccess(AccessLevel access) {
this.access = access;
return this;
}

/**
* Get the durationInSeconds value.
*
* @return the durationInSeconds value
*/
public int durationInSeconds() {
return this.durationInSeconds;
}

/**
* Set the durationInSeconds value.
*
* @param durationInSeconds the durationInSeconds value to set
* @return the GrantAccessData object itself.
*/
public GrantAccessData withDurationInSeconds(int durationInSeconds) {
this.durationInSeconds = durationInSeconds;
return this;
}

}
Loading

0 comments on commit ee9ee11

Please sign in to comment.