forked from Azure/azure-libraries-for-java
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Generated from 87e0684ac67bc015bf82c1f1227093265c2e1233 (#155)
added older examples
- Loading branch information
1 parent
156bf3f
commit ee9ee11
Showing
24 changed files
with
1,753 additions
and
130 deletions.
There are no files selected for viewing
44 changes: 44 additions & 0 deletions
44
...gmt-compute/src/main/java/com/microsoft/azure/management/compute/AutoOSUpgradePolicy.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} | ||
|
||
} |
141 changes: 141 additions & 0 deletions
141
...t-compute/src/main/java/com/microsoft/azure/management/compute/AvailabilitySetUpdate.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} | ||
|
||
} |
101 changes: 101 additions & 0 deletions
101
azure-mgmt-compute/src/main/java/com/microsoft/azure/management/compute/DiskUpdate.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} | ||
|
||
} |
69 changes: 69 additions & 0 deletions
69
azure-mgmt-compute/src/main/java/com/microsoft/azure/management/compute/GrantAccessData.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} | ||
|
||
} |
Oops, something went wrong.