-
Notifications
You must be signed in to change notification settings - Fork 98
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
support deployment status on web app #1339
Closed
Closed
Changes from 6 commits
Commits
Show all changes
32 commits
Select commit
Hold shift + click to select a range
e4b9cb7
init impl for deployment status
weidongxu-microsoft 295f4d7
rename method to zipDeployWithResponse
weidongxu-microsoft edacd4a
add BuildStatus enum
weidongxu-microsoft 39811e3
update
weidongxu-microsoft a98b88f
complete the interface
weidongxu-microsoft 5da6d39
move test code
weidongxu-microsoft efc8467
add ignore
weidongxu-microsoft 049765a
Merge branch 'master' into appservice-deployment-status
weidongxu-microsoft 3f84f38
rename method to pushZipDeploy
weidongxu-microsoft 4c88320
Merge branch 'master' into appservice-deployment-status
weidongxu-microsoft 6c8f19b
add 202 to OK response for deploymentStatus
weidongxu-microsoft 383687a
correct json property
weidongxu-microsoft 0177bb8
nit
weidongxu-microsoft de77c10
rename
weidongxu-microsoft e70fede
nit
weidongxu-microsoft 6cd0e16
loop on 10 sec wait until depolyment status available
weidongxu-microsoft 095a820
Merge branch 'master' into appservice-deployment-status
weidongxu-microsoft 98d6c33
push deploy for onedeploy
weidongxu-microsoft 40b5934
change sample to use onedeploy
weidongxu-microsoft 97e334f
update sample
weidongxu-microsoft a4e799a
Merge branch 'master' into appservice-deployment-status
weidongxu-microsoft d5a89b4
Merge branch 'master' into appservice-deployment-status
weidongxu-microsoft 6e658df
Merge branch 'master' into appservice-deployment-status
weidongxu-microsoft 7503db6
Merge branch 'master' into appservice-deployment-status
weidongxu-microsoft 8483cc7
add trackDeploymentProgress
weidongxu-microsoft d5b811d
add trackDeploymentProgress
weidongxu-microsoft 1d8b879
Merge branch 'master' into appservice-deployment-status
weidongxu-microsoft 5fb2194
Merge branch 'appservice-deployment-status' of https://github.com/Azu…
weidongxu-microsoft 81b1eac
correct interface
weidongxu-microsoft 7845058
option for trackDeploymentProgress (#1395)
weidongxu-microsoft 63612a6
Merge branch 'master' into appservice-deployment-status
weidongxu-microsoft 8d601e4
update api-version and test
weidongxu-microsoft 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
22 changes: 22 additions & 0 deletions
22
...ervice/src/main/java/com/microsoft/azure/management/appservice/AsyncDeploymentResult.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,22 @@ | ||
/** | ||
* Copyright (c) Microsoft Corporation. All rights reserved. | ||
* Licensed under the MIT License. See License.txt in the project root for | ||
* license information. | ||
*/ | ||
package com.microsoft.azure.management.appservice; | ||
|
||
/** | ||
* Result of async deployment. | ||
*/ | ||
public class AsyncDeploymentResult { | ||
|
||
private final String deploymentId; | ||
|
||
public AsyncDeploymentResult(String deploymentId) { | ||
this.deploymentId = deploymentId; | ||
} | ||
|
||
public String getDeploymentId() { | ||
return deploymentId; | ||
} | ||
} |
62 changes: 62 additions & 0 deletions
62
...-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/BuildStatus.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,62 @@ | ||
/** | ||
* Copyright (c) Microsoft Corporation. All rights reserved. | ||
* Licensed under the MIT License. See License.txt in the project root for | ||
* license information. | ||
*/ | ||
|
||
package com.microsoft.azure.management.appservice; | ||
|
||
import com.fasterxml.jackson.annotation.JsonCreator; | ||
import com.microsoft.azure.management.resources.fluentcore.arm.ExpandableStringEnum; | ||
|
||
import java.util.Collection; | ||
|
||
public final class BuildStatus extends ExpandableStringEnum<BuildStatus> { | ||
|
||
/** Enum value RuntimeFailed. */ | ||
public static final BuildStatus RUNTIME_FAILED = fromString("RuntimeFailed"); | ||
|
||
/** Enum value BuildAborted. */ | ||
public static final BuildStatus BUILD_ABORTED = fromString("BuildAborted"); | ||
|
||
/** Enum value BuildFailed. */ | ||
public static final BuildStatus BUILD_FAILED = fromString("BuildFailed"); | ||
|
||
/** Enum value BuildRequestReceived. */ | ||
public static final BuildStatus BUILD_REQUEST_RECEIVED = fromString("BuildRequestReceived"); | ||
|
||
/** Enum value BuildPending. */ | ||
public static final BuildStatus BUILD_PENDING = fromString("BuildPending"); | ||
|
||
/** Enum value BuildInProgress. */ | ||
public static final BuildStatus BUILD_IN_PROGRESS = fromString("BuildInProgress"); | ||
|
||
/** Enum value BuildSuccessful. */ | ||
public static final BuildStatus BUILD_SUCCESSFUL = fromString("BuildSuccessful"); | ||
|
||
/** Enum value PostBuildRestartRequired. */ | ||
public static final BuildStatus POST_BUILD_RESTART_REQUIRED = fromString("PostBuildRestartRequired"); | ||
|
||
/** Enum value RuntimeStarting. */ | ||
public static final BuildStatus RUNTIME_STARTING = fromString("RuntimeStarting"); | ||
|
||
/** Enum value RuntimeSuccessful. */ | ||
public static final BuildStatus RUNTIME_SUCCESSFUL = fromString("RuntimeSuccessful"); | ||
|
||
/** | ||
* Creates or finds a BuildStatus from its string representation. | ||
* @param name a name to look for | ||
* @return the corresponding BuildStatus | ||
*/ | ||
@JsonCreator | ||
public static BuildStatus fromString(String name) { | ||
return fromString(name, BuildStatus.class); | ||
} | ||
|
||
/** | ||
* @return known SecurityRuleDirection values | ||
*/ | ||
public static Collection<BuildStatus> values() { | ||
return values(BuildStatus.class); | ||
} | ||
} |
49 changes: 49 additions & 0 deletions
49
...-appservice/src/main/java/com/microsoft/azure/management/appservice/DeploymentStatus.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,49 @@ | ||
/** | ||
* Copyright (c) Microsoft Corporation. All rights reserved. | ||
* Licensed under the MIT License. See License.txt in the project root for | ||
* license information. | ||
*/ | ||
package com.microsoft.azure.management.appservice; | ||
|
||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
import com.microsoft.azure.ProxyResource; | ||
import com.microsoft.rest.serializer.JsonFlatten; | ||
|
||
@JsonFlatten | ||
public class DeploymentStatus extends ProxyResource { | ||
|
||
@JsonProperty(value = "properties.id") | ||
private BuildStatus deploymentId; | ||
|
||
@JsonProperty(value = "properties.buildStatus") | ||
private BuildStatus buildStatus; | ||
|
||
@JsonProperty(value = "properties.numberOfInstancesInProgress") | ||
int numberOfInstancesInProgress; | ||
|
||
@JsonProperty(value = "properties.numberOfInstancesSuccessful") | ||
int numberOfInstancesSuccessful; | ||
|
||
@JsonProperty(value = "properties.numberOfInstancesFailed") | ||
int numberOfInstancesFailed; | ||
|
||
public BuildStatus deploymentId() { | ||
return deploymentId; | ||
} | ||
|
||
public BuildStatus buildStatus() { | ||
return buildStatus; | ||
} | ||
|
||
public int numberOfInstancesInProgress() { | ||
return numberOfInstancesInProgress; | ||
} | ||
|
||
public int numberOfInstancesSuccessful() { | ||
return numberOfInstancesSuccessful; | ||
} | ||
|
||
public int numberOfInstancesFailed() { | ||
return numberOfInstancesFailed; | ||
} | ||
} |
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
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.
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.
Response class for
deploymentStatus
. Note this will get changed after swagger updated by service.