-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1045 from anuchandy/extensions-observable
Virtual machine extensions
- Loading branch information
Showing
41 changed files
with
3,119 additions
and
76 deletions.
There are no files selected for viewing
46 changes: 46 additions & 0 deletions
46
azure-mgmt-compute/src/main/java/com/microsoft/azure/management/compute/ComputeRoles.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,46 @@ | ||
package com.microsoft.azure.management.compute; | ||
|
||
|
||
import com.fasterxml.jackson.annotation.JsonCreator; | ||
import com.fasterxml.jackson.annotation.JsonValue; | ||
|
||
/** | ||
* Defines values for ComputeRoles. | ||
*/ | ||
public enum ComputeRoles { | ||
/** Enum value PaaS. */ | ||
PAAS("PaaS"), | ||
|
||
/** Enum value IaaS. */ | ||
IAAS("IaaS"); | ||
|
||
/** The actual serialized value for a ComputeRoles instance. */ | ||
private String value; | ||
|
||
ComputeRoles(String value) { | ||
this.value = value; | ||
} | ||
|
||
/** | ||
* Parses a serialized value to a ComputeRoles instance. | ||
* | ||
* @param value the serialized value to parse. | ||
* @return the parsed ComputeRoles object, or null if unable to parse. | ||
*/ | ||
@JsonCreator | ||
public static ComputeRoles fromString(String value) { | ||
ComputeRoles[] items = ComputeRoles.values(); | ||
for (ComputeRoles item : items) { | ||
if (item.toString().equalsIgnoreCase(value)) { | ||
return item; | ||
} | ||
} | ||
return null; | ||
} | ||
|
||
@JsonValue | ||
@Override | ||
public String toString() { | ||
return this.value; | ||
} | ||
} |
16 changes: 16 additions & 0 deletions
16
...t-compute/src/main/java/com/microsoft/azure/management/compute/ExternalChildResource.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,16 @@ | ||
package com.microsoft.azure.management.compute; | ||
|
||
import com.microsoft.azure.management.resources.fluentcore.arm.models.ChildResource; | ||
import com.microsoft.azure.management.resources.fluentcore.model.Refreshable; | ||
|
||
/** | ||
* Represents an external child resource. | ||
* | ||
* @param <T> fluent type of the external child resource | ||
*/ | ||
public interface ExternalChildResource<T> extends ChildResource, Refreshable<T> { | ||
/** | ||
* @return the id of the external child resource | ||
*/ | ||
String id(); | ||
} |
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
Oops, something went wrong.