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] added suppressions #12

Merged
merged 1 commit into from
Mar 26, 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 @@ -8,46 +8,34 @@

package com.microsoft.azure.management.compute;

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

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

/** Enum value Read. */
READ("Read");

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

AccessLevel(String value) {
this.value = value;
}
/** Static value Read for AccessLevel. */
public static final AccessLevel READ = fromString("Read");

/**
* 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.
* Creates or finds a AccessLevel from its string representation.
* @param name a name to look for
* @return the corresponding AccessLevel
*/
@JsonCreator
public static AccessLevel fromString(String value) {
AccessLevel[] items = AccessLevel.values();
for (AccessLevel item : items) {
if (item.toString().equalsIgnoreCase(value)) {
return item;
}
}
return null;
public static AccessLevel fromString(String name) {
return fromString(name, AccessLevel.class);
}

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

package com.microsoft.azure.management.compute;

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

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

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

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

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

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

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

DiskCreateOption(String value) {
this.value = value;
}
/** Static value Restore for DiskCreateOption. */
public static final DiskCreateOption RESTORE = fromString("Restore");

/**
* 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.
* Creates or finds a DiskCreateOption from its string representation.
* @param name a name to look for
* @return the corresponding DiskCreateOption
*/
@JsonCreator
public static DiskCreateOption fromString(String value) {
DiskCreateOption[] items = DiskCreateOption.values();
for (DiskCreateOption item : items) {
if (item.toString().equalsIgnoreCase(value)) {
return item;
}
}
return null;
public static DiskCreateOption fromString(String name) {
return fromString(name, DiskCreateOption.class);
}

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

package com.microsoft.azure.management.compute;

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

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

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

/** Enum value Attach. */
ATTACH("Attach");

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

DiskCreateOptionTypes(String value) {
this.value = value;
}
/** Static value Attach for DiskCreateOptionTypes. */
public static final DiskCreateOptionTypes ATTACH = fromString("Attach");

/**
* 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.
* Creates or finds a DiskCreateOptionTypes from its string representation.
* @param name a name to look for
* @return the corresponding DiskCreateOptionTypes
*/
@JsonCreator
public static DiskCreateOptionTypes fromString(String value) {
DiskCreateOptionTypes[] items = DiskCreateOptionTypes.values();
for (DiskCreateOptionTypes item : items) {
if (item.toString().equalsIgnoreCase(value)) {
return item;
}
}
return null;
public static DiskCreateOptionTypes fromString(String name) {
return fromString(name, DiskCreateOptionTypes.class);
}

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

/**
* The disks and snapshots sku name. Can be Standard_LRS or Premium_LRS.
* The disks 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,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", required = true)
@JsonProperty(value = "osDisk")
private ImageOSDisk osDisk;

/**
Expand All @@ -33,6 +33,14 @@ 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 @@ -73,4 +81,24 @@ 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,46 +8,34 @@

package com.microsoft.azure.management.compute;

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

/**
* Defines values for StorageAccountTypes.
*/
public enum StorageAccountTypes {
/** Enum value Standard_LRS. */
STANDARD_LRS("Standard_LRS"),
public final class StorageAccountTypes extends ExpandableStringEnum<StorageAccountTypes> {
/** Static value Standard_LRS for StorageAccountTypes. */
public static final StorageAccountTypes STANDARD_LRS = fromString("Standard_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;
}
/** Static value Premium_LRS for StorageAccountTypes. */
public static final StorageAccountTypes PREMIUM_LRS = fromString("Premium_LRS");

/**
* 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.
* Creates or finds a StorageAccountTypes from its string representation.
* @param name a name to look for
* @return the corresponding StorageAccountTypes
*/
@JsonCreator
public static StorageAccountTypes fromString(String value) {
StorageAccountTypes[] items = StorageAccountTypes.values();
for (StorageAccountTypes item : items) {
if (item.toString().equalsIgnoreCase(value)) {
return item;
}
}
return null;
public static StorageAccountTypes fromString(String name) {
return fromString(name, StorageAccountTypes.class);
}

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