Class WorkspaceGitRepoManagementClient
- java.lang.Object
-
- com.azure.analytics.synapse.artifacts.WorkspaceGitRepoManagementClient
-
public final class WorkspaceGitRepoManagementClient extends Object
Initializes a new instance of the synchronous ArtifactsClient type.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GitHubAccessTokenResponse
getGitHubAccessToken(GitHubAccessTokenRequest gitHubAccessTokenRequest)
Get the GitHub access token.GitHubAccessTokenResponse
getGitHubAccessToken(GitHubAccessTokenRequest gitHubAccessTokenRequest, String clientRequestId)
Get the GitHub access token.com.azure.core.http.rest.Response<GitHubAccessTokenResponse>
getGitHubAccessTokenWithResponse(GitHubAccessTokenRequest gitHubAccessTokenRequest, String clientRequestId, com.azure.core.util.Context context)
Get the GitHub access token.
-
-
-
Method Detail
-
getGitHubAccessToken
public 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.
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.exception.HttpResponseException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
getGitHubAccessToken
public GitHubAccessTokenResponse getGitHubAccessToken(GitHubAccessTokenRequest gitHubAccessTokenRequest)
Get the GitHub access token.- Parameters:
gitHubAccessTokenRequest
- The gitHubAccessTokenRequest parameter.- Returns:
- the GitHub access token.
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.exception.HttpResponseException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
getGitHubAccessTokenWithResponse
public com.azure.core.http.rest.Response<GitHubAccessTokenResponse> getGitHubAccessTokenWithResponse(GitHubAccessTokenRequest gitHubAccessTokenRequest, String clientRequestId, com.azure.core.util.Context context)
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.context
- The context to associate with this operation.- Returns:
- the GitHub access token along with
Response
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.exception.HttpResponseException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
-