Skip to content

Commit

Permalink
[AutoPR compute/resource-manager] added missing Swagger (#342)
Browse files Browse the repository at this point in the history
* Generated from 5ef2236c820e75f579c7310ac82937a79d96878f

removed readOnly patchOnly property

* Generated from 5ef2236c820e75f579c7310ac82937a79d96878f

removed readOnly patchOnly property
  • Loading branch information
AutorestCI authored Mar 20, 2018
1 parent a9c21b3 commit 395dcc9
Show file tree
Hide file tree
Showing 24 changed files with 1,471 additions and 1,232 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,34 +8,46 @@

package com.microsoft.azure.management.compute;

import java.util.Collection;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.microsoft.rest.ExpandableStringEnum;
import com.fasterxml.jackson.annotation.JsonValue;

/**
* Defines values for AccessLevel.
*/
public final class AccessLevel extends ExpandableStringEnum<AccessLevel> {
/** Static value None for AccessLevel. */
public static final AccessLevel NONE = fromString("None");
public enum AccessLevel {
/** Enum value None. */
NONE("None"),

/** Static value Read for AccessLevel. */
public static final AccessLevel READ = fromString("Read");
/** Enum value Read. */
READ("Read");

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

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

/**
* Creates or finds a AccessLevel from its string representation.
* @param name a name to look for
* @return the corresponding AccessLevel
* Parses a serialized value to a AccessLevel instance.
*
* @param value the serialized value to parse.
* @return the parsed AccessLevel object, or null if unable to parse.
*/
@JsonCreator
public static AccessLevel fromString(String name) {
return fromString(name, AccessLevel.class);
public static AccessLevel fromString(String value) {
AccessLevel[] items = AccessLevel.values();
for (AccessLevel item : items) {
if (item.toString().equalsIgnoreCase(value)) {
return item;
}
}
return null;
}

/**
* @return known AccessLevel values
*/
public static Collection<AccessLevel> values() {
return values(AccessLevel.class);
@JsonValue
@Override
public String toString() {
return this.value;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@
public class CreationData {
/**
* This enumerates the possible sources of a disk's creation. Possible
* values include: 'Empty', 'Attach', 'FromImage', 'Import', 'Copy',
* 'Restore'.
* values include: 'Empty', 'Attach', 'FromImage', 'Import', 'Copy'.
*/
@JsonProperty(value = "createOption", required = true)
private DiskCreateOption createOption;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,46 +8,55 @@

package com.microsoft.azure.management.compute;

import java.util.Collection;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.microsoft.rest.ExpandableStringEnum;
import com.fasterxml.jackson.annotation.JsonValue;

/**
* Defines values for DiskCreateOption.
*/
public final class DiskCreateOption extends ExpandableStringEnum<DiskCreateOption> {
/** Static value Empty for DiskCreateOption. */
public static final DiskCreateOption EMPTY = fromString("Empty");
public enum DiskCreateOption {
/** Enum value Empty. */
EMPTY("Empty"),

/** Static value Attach for DiskCreateOption. */
public static final DiskCreateOption ATTACH = fromString("Attach");
/** Enum value Attach. */
ATTACH("Attach"),

/** Static value FromImage for DiskCreateOption. */
public static final DiskCreateOption FROM_IMAGE = fromString("FromImage");
/** Enum value FromImage. */
FROM_IMAGE("FromImage"),

/** Static value Import for DiskCreateOption. */
public static final DiskCreateOption IMPORT = fromString("Import");
/** Enum value Import. */
IMPORT("Import"),

/** Static value Copy for DiskCreateOption. */
public static final DiskCreateOption COPY = fromString("Copy");
/** Enum value Copy. */
COPY("Copy");

/** Static value Restore for DiskCreateOption. */
public static final DiskCreateOption RESTORE = fromString("Restore");
/** The actual serialized value for a DiskCreateOption instance. */
private String value;

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

/**
* Creates or finds a DiskCreateOption from its string representation.
* @param name a name to look for
* @return the corresponding DiskCreateOption
* Parses a serialized value to a DiskCreateOption instance.
*
* @param value the serialized value to parse.
* @return the parsed DiskCreateOption object, or null if unable to parse.
*/
@JsonCreator
public static DiskCreateOption fromString(String name) {
return fromString(name, DiskCreateOption.class);
public static DiskCreateOption fromString(String value) {
DiskCreateOption[] items = DiskCreateOption.values();
for (DiskCreateOption item : items) {
if (item.toString().equalsIgnoreCase(value)) {
return item;
}
}
return null;
}

/**
* @return known DiskCreateOption values
*/
public static Collection<DiskCreateOption> values() {
return values(DiskCreateOption.class);
@JsonValue
@Override
public String toString() {
return this.value;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,37 +8,49 @@

package com.microsoft.azure.management.compute;

import java.util.Collection;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.microsoft.rest.ExpandableStringEnum;
import com.fasterxml.jackson.annotation.JsonValue;

/**
* Defines values for DiskCreateOptionTypes.
*/
public final class DiskCreateOptionTypes extends ExpandableStringEnum<DiskCreateOptionTypes> {
/** Static value FromImage for DiskCreateOptionTypes. */
public static final DiskCreateOptionTypes FROM_IMAGE = fromString("FromImage");
public enum DiskCreateOptionTypes {
/** Enum value FromImage. */
FROM_IMAGE("FromImage"),

/** Static value Empty for DiskCreateOptionTypes. */
public static final DiskCreateOptionTypes EMPTY = fromString("Empty");
/** Enum value Empty. */
EMPTY("Empty"),

/** Static value Attach for DiskCreateOptionTypes. */
public static final DiskCreateOptionTypes ATTACH = fromString("Attach");
/** Enum value Attach. */
ATTACH("Attach");

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

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

/**
* Creates or finds a DiskCreateOptionTypes from its string representation.
* @param name a name to look for
* @return the corresponding DiskCreateOptionTypes
* Parses a serialized value to a DiskCreateOptionTypes instance.
*
* @param value the serialized value to parse.
* @return the parsed DiskCreateOptionTypes object, or null if unable to parse.
*/
@JsonCreator
public static DiskCreateOptionTypes fromString(String name) {
return fromString(name, DiskCreateOptionTypes.class);
public static DiskCreateOptionTypes fromString(String value) {
DiskCreateOptionTypes[] items = DiskCreateOptionTypes.values();
for (DiskCreateOptionTypes item : items) {
if (item.toString().equalsIgnoreCase(value)) {
return item;
}
}
return null;
}

/**
* @return known DiskCreateOptionTypes values
*/
public static Collection<DiskCreateOptionTypes> values() {
return values(DiskCreateOptionTypes.class);
@JsonValue
@Override
public String toString() {
return this.value;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
import com.fasterxml.jackson.annotation.JsonProperty;

/**
* The disks sku name. Can be Standard_LRS or Premium_LRS.
* The disks and snapshots sku name. Can be Standard_LRS or Premium_LRS.
*/
public class DiskSku {
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,14 @@ public class HardwareProfile {
* &lt;br&gt;&lt;br&gt; The available VM sizes depend on region and
* availability set. For a list of available sizes use these APIs:
* &lt;br&gt;&lt;br&gt; [List all available virtual machine sizes in an
* availability set](virtualmachines-list-sizes-availability-set.md)
* availability
* set](https://docs.microsoft.com/rest/api/compute/availabilitysets/listavailablesizes)
* &lt;br&gt;&lt;br&gt; [List all available virtual machine sizes in a
* region](virtualmachines-list-sizes-region.md) &lt;br&gt;&lt;br&gt; [List
* all available virtual machine sizes for
* resizing](virtualmachines-list-sizes-for-resizing.md). Possible values
* include: 'Basic_A0', 'Basic_A1', 'Basic_A2', 'Basic_A3', 'Basic_A4',
* 'Standard_A0', 'Standard_A1', 'Standard_A2', 'Standard_A3',
* region](https://docs.microsoft.com/rest/api/compute/virtualmachinesizes/list)
* &lt;br&gt;&lt;br&gt; [List all available virtual machine sizes for
* resizing](https://docs.microsoft.com/rest/api/compute/virtualmachines/listavailablesizes).
* Possible values include: 'Basic_A0', 'Basic_A1', 'Basic_A2', 'Basic_A3',
* 'Basic_A4', 'Standard_A0', 'Standard_A1', 'Standard_A2', 'Standard_A3',
* 'Standard_A4', 'Standard_A5', 'Standard_A6', 'Standard_A7',
* 'Standard_A8', 'Standard_A9', 'Standard_A10', 'Standard_A11',
* 'Standard_A1_v2', 'Standard_A2_v2', 'Standard_A4_v2', 'Standard_A8_v2',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public class ImageStorageProfile {
* see [About disks and VHDs for Azure virtual
* machines](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-about-disks-vhds?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json).
*/
@JsonProperty(value = "osDisk")
@JsonProperty(value = "osDisk", required = true)
private ImageOSDisk osDisk;

/**
Expand All @@ -33,14 +33,6 @@ public class ImageStorageProfile {
@JsonProperty(value = "dataDisks")
private List<ImageDataDisk> dataDisks;

/**
* Specifies whether an image is zone resilient or not. Default is false.
* Zone resilient images can be created only in regions that provide Zone
* Redundant Storage (ZRS).
*/
@JsonProperty(value = "zoneResilient")
private Boolean zoneResilient;

/**
* Get the osDisk value.
*
Expand Down Expand Up @@ -81,24 +73,4 @@ public ImageStorageProfile withDataDisks(List<ImageDataDisk> dataDisks) {
return this;
}

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

/**
* Set the zoneResilient value.
*
* @param zoneResilient the zoneResilient value to set
* @return the ImageStorageProfile object itself.
*/
public ImageStorageProfile withZoneResilient(Boolean zoneResilient) {
this.zoneResilient = zoneResilient;
return this;
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -8,34 +8,46 @@

package com.microsoft.azure.management.compute;

import java.util.Collection;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.microsoft.rest.ExpandableStringEnum;
import com.fasterxml.jackson.annotation.JsonValue;

/**
* Defines values for StorageAccountTypes.
*/
public final class StorageAccountTypes extends ExpandableStringEnum<StorageAccountTypes> {
/** Static value Standard_LRS for StorageAccountTypes. */
public static final StorageAccountTypes STANDARD_LRS = fromString("Standard_LRS");
public enum StorageAccountTypes {
/** Enum value Standard_LRS. */
STANDARD_LRS("Standard_LRS"),

/** Static value Premium_LRS for StorageAccountTypes. */
public static final StorageAccountTypes PREMIUM_LRS = fromString("Premium_LRS");
/** Enum value Premium_LRS. */
PREMIUM_LRS("Premium_LRS");

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

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

/**
* Creates or finds a StorageAccountTypes from its string representation.
* @param name a name to look for
* @return the corresponding StorageAccountTypes
* Parses a serialized value to a StorageAccountTypes instance.
*
* @param value the serialized value to parse.
* @return the parsed StorageAccountTypes object, or null if unable to parse.
*/
@JsonCreator
public static StorageAccountTypes fromString(String name) {
return fromString(name, StorageAccountTypes.class);
public static StorageAccountTypes fromString(String value) {
StorageAccountTypes[] items = StorageAccountTypes.values();
for (StorageAccountTypes item : items) {
if (item.toString().equalsIgnoreCase(value)) {
return item;
}
}
return null;
}

/**
* @return known StorageAccountTypes values
*/
public static Collection<StorageAccountTypes> values() {
return values(StorageAccountTypes.class);
@JsonValue
@Override
public String toString() {
return this.value;
}
}
Loading

0 comments on commit 395dcc9

Please sign in to comment.