Skip to content
Open
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
4 changes: 2 additions & 2 deletions sdk/compute/mgmt-v2020_06_01/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
<parent>
<groupId>com.microsoft.azure</groupId>
<artifactId>azure-arm-parent</artifactId>
<version>1.3.2</version>
<relativePath>../../parents/azure-arm-parent/pom.xml</relativePath>
<version>1.1.0</version>
<relativePath>../../../pom.management.xml</relativePath>
</parent>
<artifactId>azure-mgmt-compute</artifactId>
<version>1.0.0-beta</version>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
/**
* 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.v2020_06_01;

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

/**
* Defines values for ExecutionState.
*/
public final class ExecutionState extends ExpandableStringEnum<ExecutionState> {
/** Static value Unknown for ExecutionState. */
public static final ExecutionState UNKNOWN = fromString("Unknown");

/** Static value Pending for ExecutionState. */
public static final ExecutionState PENDING = fromString("Pending");

/** Static value Running for ExecutionState. */
public static final ExecutionState RUNNING = fromString("Running");

/** Static value Failed for ExecutionState. */
public static final ExecutionState FAILED = fromString("Failed");

/** Static value Succeeded for ExecutionState. */
public static final ExecutionState SUCCEEDED = fromString("Succeeded");

/** Static value TimedOut for ExecutionState. */
public static final ExecutionState TIMED_OUT = fromString("TimedOut");

/** Static value Canceled for ExecutionState. */
public static final ExecutionState CANCELED = fromString("Canceled");

/**
* Creates or finds a ExecutionState from its string representation.
* @param name a name to look for
* @return the corresponding ExecutionState
*/
@JsonCreator
public static ExecutionState fromString(String name) {
return fromString(name, ExecutionState.class);
}

/**
* @return known ExecutionState values
*/
public static Collection<ExecutionState> values() {
return values(ExecutionState.class);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
/**
* 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.v2020_06_01;

import com.fasterxml.jackson.annotation.JsonProperty;

/**
* ExtendedLocation complex type.
*/
public class ExtendedLocation {
/**
* The name of the extended location.
*/
@JsonProperty(value = "name", required = true)
private String name;

/**
* The type of the extended location.
*/
@JsonProperty(value = "type", required = true)
private String type;

/**
* Creates an instance of ExtendedLocation class.
* @param name the name of the extended location.
*/
public ExtendedLocation() {
type = "EdgeZone";
}

/**
* Get the name of the extended location.
*
* @return the name value
*/
public String name() {
return this.name;
}

/**
* Set the name of the extended location.
*
* @param name the name value to set
* @return the ExtendedLocation object itself.
*/
public ExtendedLocation withName(String name) {
this.name = name;
return this;
}

/**
* Get the type of the extended location.
*
* @return the type value
*/
public String type() {
return this.type;
}

/**
* Set the type of the extended location.
*
* @param type the type value to set
* @return the ExtendedLocation object itself.
*/
public ExtendedLocation withType(String type) {
this.type = type;
return this;
}

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

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

/**
* Defines values for ExtendedLocationTypes.
*/
public final class ExtendedLocationTypes extends ExpandableStringEnum<ExtendedLocationTypes> {
/** Static value EdgeZone for ExtendedLocationTypes. */
public static final ExtendedLocationTypes EDGE_ZONE = fromString("EdgeZone");

/**
* Creates or finds a ExtendedLocationTypes from its string representation.
* @param name a name to look for
* @return the corresponding ExtendedLocationTypes
*/
@JsonCreator
public static ExtendedLocationTypes fromString(String name) {
return fromString(name, ExtendedLocationTypes.class);
}

/**
* @return known ExtendedLocationTypes values
*/
public static Collection<ExtendedLocationTypes> values() {
return values(ExtendedLocationTypes.class);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@
* Type representing Image.
*/
public interface Image extends HasInner<ImageInner>, Resource, GroupableResourceCore<ComputeManager, ImageInner>, HasResourceGroup, Refreshable<Image>, Updatable<Image.Update>, HasManager<ComputeManager> {
/**
* @return the extendedLocation value.
*/
ExtendedLocation extendedLocation();

/**
* @return the hyperVGeneration value.
*/
Expand Down Expand Up @@ -67,6 +72,18 @@ interface Blank extends GroupableResourceCore.DefinitionWithRegion<WithGroup> {
interface WithGroup extends GroupableResourceCore.DefinitionStages.WithGroup<WithCreate> {
}

/**
* The stage of the image definition allowing to specify ExtendedLocation.
*/
interface WithExtendedLocation {
/**
* Specifies extendedLocation.
* @param extendedLocation The extended location of the Image
* @return the next definition stage
*/
WithCreate withExtendedLocation(ExtendedLocation extendedLocation);
}

/**
* The stage of the image definition allowing to specify HyperVGeneration.
*/
Expand Down Expand Up @@ -108,7 +125,7 @@ interface WithStorageProfile {
* the resource to be created (via {@link WithCreate#create()}), but also allows
* for any other optional settings to be specified.
*/
interface WithCreate extends Creatable<Image>, Resource.DefinitionWithTags<WithCreate>, DefinitionStages.WithHyperVGeneration, DefinitionStages.WithSourceVirtualMachine, DefinitionStages.WithStorageProfile {
interface WithCreate extends Creatable<Image>, Resource.DefinitionWithTags<WithCreate>, DefinitionStages.WithExtendedLocation, DefinitionStages.WithHyperVGeneration, DefinitionStages.WithSourceVirtualMachine, DefinitionStages.WithStorageProfile {
}
}
/**
Expand Down
Loading