-
Notifications
You must be signed in to change notification settings - Fork 2.1k
mgmt appservice, upgrade api-version 2022-03 #29796
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 1 commit
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
ba78248
codegen
XiaofeiCao 4361e38
session records
XiaofeiCao 72bd03b
credcheck
bsndxz 635019d
use helloworld as oneDeploy artifact
bsndxz 5d60be5
changelog
bsndxz 7a4b30c
revapi.skip=true
bsndxz 5878e96
changelog
XiaofeiCao 91c2c38
related session records
XiaofeiCao 1571465
remove `Inner` of CsmDeploymentStatusInner
XiaofeiCao 902abf1
add protect test
XiaofeiCao 56622d1
supports getDeploymentStatus
XiaofeiCao 112c119
checkstyle and spotbugs
XiaofeiCao 0434a8d
change getDeploymentStatus to async implementation
XiaofeiCao 686fa22
remove unnecessary null check
XiaofeiCao 0d836ce
nit, change test to use sync version deploymentStatus
XiaofeiCao 27222e0
change getDeploymentStatus return type and implementation
XiaofeiCao ec66324
remove getDeployStatus polling
XiaofeiCao 3a44d4a
fix getDeploymentStatus for DeploymentSlot
XiaofeiCao 157ef43
add status code to
XiaofeiCao a9f684b
Merge branch 'Azure:main' into mgmt_appservice_2022_03
XiaofeiCao 420ce12
session-records
XiaofeiCao 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
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
63 changes: 63 additions & 0 deletions
63
...src/main/java/com/azure/resourcemanager/appservice/implementation/HttpFluxBBResponse.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,63 @@ | ||
| // Copyright (c) Microsoft Corporation. All rights reserved. | ||
| // Licensed under the MIT License. | ||
|
|
||
| package com.azure.resourcemanager.appservice.implementation; | ||
|
|
||
| import com.azure.core.http.HttpHeaders; | ||
| import com.azure.core.http.HttpResponse; | ||
| import com.azure.core.http.rest.Response; | ||
| import com.azure.core.util.FluxUtil; | ||
| import reactor.core.publisher.Flux; | ||
| import reactor.core.publisher.Mono; | ||
|
|
||
| import java.nio.ByteBuffer; | ||
| import java.nio.charset.Charset; | ||
|
|
||
| /** HttpResponse wrapper for {@link com.azure.core.http.rest.Response} with FluxBB body. */ | ||
| public class HttpFluxBBResponse extends HttpResponse { | ||
| private final int statusCode; | ||
| private final HttpHeaders httpHeaders; | ||
| private final Response<Flux<ByteBuffer>> originResponse; | ||
|
|
||
| HttpFluxBBResponse(Response<Flux<ByteBuffer>> originResponse) { | ||
| super(null); | ||
| this.statusCode = originResponse.getStatusCode(); | ||
| this.httpHeaders = originResponse.getHeaders(); | ||
| this.originResponse = originResponse; | ||
| } | ||
|
|
||
| @Override | ||
| public int getStatusCode() { | ||
| return statusCode; | ||
| } | ||
|
|
||
| @Override | ||
| public String getHeaderValue(String s) { | ||
| return httpHeaders.getValue(s); | ||
| } | ||
|
|
||
| @Override | ||
| public HttpHeaders getHeaders() { | ||
| return httpHeaders; | ||
| } | ||
|
|
||
| @Override | ||
| public Flux<ByteBuffer> getBody() { | ||
| return originResponse.getValue(); | ||
| } | ||
|
|
||
| @Override | ||
| public Mono<byte[]> getBodyAsByteArray() { | ||
| return FluxUtil.collectBytesInByteBufferStream(originResponse.getValue()); | ||
| } | ||
|
|
||
| @Override | ||
| public Mono<String> getBodyAsString() { | ||
| return getBodyAsByteArray().map(String::new); | ||
| } | ||
|
|
||
| @Override | ||
| public Mono<String> getBodyAsString(Charset charset) { | ||
| return getBodyAsByteArray().map(bytes -> new String(bytes, charset)); | ||
| } | ||
| } |
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
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
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
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.
Uh oh!
There was an error while loading. Please reload this page.