Class WorkspaceGitRepoManagementAsyncClient
java.lang.Object
com.azure.analytics.synapse.artifacts.WorkspaceGitRepoManagementAsyncClient
Initializes a new instance of the asynchronous ArtifactsClient type.
-
Method Summary
Modifier and TypeMethodDescriptiongetGitHubAccessToken
(GitHubAccessTokenRequest gitHubAccessTokenRequest) Get the GitHub access token.getGitHubAccessToken
(GitHubAccessTokenRequest gitHubAccessTokenRequest, String clientRequestId) Get the GitHub access token.getGitHubAccessTokenWithResponse
(GitHubAccessTokenRequest gitHubAccessTokenRequest, String clientRequestId) Get the GitHub access token.
-
Method Details
-
getGitHubAccessTokenWithResponse
public Mono<Response<GitHubAccessTokenResponse>> getGitHubAccessTokenWithResponse(GitHubAccessTokenRequest gitHubAccessTokenRequest, String clientRequestId) Get the GitHub access token.- Parameters:
gitHubAccessTokenRequest
- The gitHubAccessTokenRequest parameter.clientRequestId
- Can provide a guid, which is helpful for debugging and to provide better customer support.- Returns:
- the GitHub access token along with
Response
on successful completion ofMono
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.HttpResponseException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
getGitHubAccessToken
public Mono<GitHubAccessTokenResponse> getGitHubAccessToken(GitHubAccessTokenRequest gitHubAccessTokenRequest, String clientRequestId) Get the GitHub access token.- Parameters:
gitHubAccessTokenRequest
- The gitHubAccessTokenRequest parameter.clientRequestId
- Can provide a guid, which is helpful for debugging and to provide better customer support.- Returns:
- the GitHub access token on successful completion of
Mono
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.HttpResponseException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
getGitHubAccessToken
public Mono<GitHubAccessTokenResponse> getGitHubAccessToken(GitHubAccessTokenRequest gitHubAccessTokenRequest) Get the GitHub access token.- Parameters:
gitHubAccessTokenRequest
- The gitHubAccessTokenRequest parameter.- Returns:
- the GitHub access token on successful completion of
Mono
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.HttpResponseException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-