-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Virtual machine extensions #1045
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
Merged
Merged
Changes from all commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
6321e90
Virtual machine extensions
anuchandy d742be8
Simplifying the error handling in stream
anuchandy 02b6e02
Merge branch 'master' of github.com:Azure/azure-sdk-for-java into ext…
anuchandy 166dbdb
applyAsync is now must for CreatableUpdatable types
anuchandy 0c04778
Adding ExternalChildResourcesImpl and relaxing bounding constraints o…
anuchandy 5379717
allow inprogress operations to finish, aggregate any exceptions and r…
anuchandy 8450f8e
use do* methods to perform actions that has side effects
anuchandy 8c4ae82
Using explict methods for create and update (instead of set that was …
anuchandy b6278d3
adding unit tests for externalChildResource commit actions
anuchandy 2cee3b9
attach -> parent
anuchandy d1ce9b5
using extension::commitAsync after vm create, adding unit test for re…
anuchandy cb5d69f
Merge branch 'master' of github.com:Azure/azure-sdk-for-java into ext…
anuchandy d9ab47a
Merge branch 'applyAsyncFix' of github.com:anuchandy/azure-sdk-for-ja…
anuchandy cc0b48f
unit test for vmaccess extension
anuchandy 5526a48
Enabling extension update as part of vm update
anuchandy fdf9d2b
sample showing crud on virtual machine extensions
anuchandy c793153
Adding sample for virtual machine extension images
anuchandy 92ca539
synching with upstream
anuchandy 1c2b385
Removing duplicate methods
anuchandy 51af9ad
Updating sample to showcase updateExtension
anuchandy 123f6f0
updating vm extension sample scenarios
anuchandy 2cea55c
Some comments update and minor changes
anuchandy File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 hidden or 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 hidden or 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 hidden or 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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess it's okay to keep this in compute for now
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok.. its used only in compute, can be moved to resource once we identify similar pattern in other packages.