Package org.azd.git.commits
Class CommitsRequestBuilder
java.lang.Object
org.azd.abstractions.BaseRequestBuilder
org.azd.git.commits.CommitsRequestBuilder
Request builder to manage Git commits Api.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Represents the query parameters.static class
Request configuration object for the query parameters.static class
Represents the query parameters.static class
Request configuration object for the query parameters.static class
Request configuration object for the query parameters.static class
Represents the query parameters.static class
Represents the query parameters.static class
Request configuration object for the query parameters.Nested classes/interfaces inherited from class org.azd.abstractions.BaseRequestBuilder
BaseRequestBuilder.ProjectExcludeParameter
-
Field Summary
Fields inherited from class org.azd.abstractions.BaseRequestBuilder
accessTokenCredential, apiVersion, area, locationId, organizationUrl, serializer
-
Constructor Summary
ConstructorDescriptionCommitsRequestBuilder
(String organizationUrl, AccessTokenCredential accessTokenCredential) Instantiates a new RequestBuilder instance and sets the default values. -
Method Summary
Modifier and TypeMethodDescriptionRetrieve a particular commit.Retrieve a particular commit.Retrieve a particular commit.Retrieve a particular commit.getChanges
(String repositoryId, String commitId) Retrieve changes for a particular commit.getChanges
(String repositoryId, String commitId, Consumer<CommitsRequestBuilder.RequestConfiguration> requestConfiguration) Retrieve changes for a particular commit.getChangesAsync
(String repositoryId, String commitId) Retrieve changes for a particular commit.getChangesAsync
(String repositoryId, String commitId, Consumer<CommitsRequestBuilder.RequestConfiguration> requestConfiguration) Retrieve changes for a particular commit.Retrieve git commits for a project.list
(String repositoryId, Consumer<CommitsRequestBuilder.CommitsRequestConfiguration> requestConfiguration) Retrieve git commits for a project.Retrieve git commits for a project.listAsync
(String repositoryId, Consumer<CommitsRequestBuilder.CommitsRequestConfiguration> requestConfiguration) Retrieve git commits for a project.listBatch
(String repositoryId, GitCommitsBatch gitCommitsBatch) Retrieve git commits for a project matching the search criteria.listBatch
(String repositoryId, GitCommitsBatch gitCommitsBatch, Consumer<CommitsRequestBuilder.CommitsBatchRequestConfiguration> requestConfiguration) Retrieve git commits for a project matching the search criteria.listBatchAsync
(String repositoryId, GitCommitsBatch gitCommitsBatch) Retrieve git commits for a project matching the search criteria.listBatchAsync
(String repositoryId, GitCommitsBatch gitCommitsBatch, Consumer<CommitsRequestBuilder.CommitsBatchRequestConfiguration> requestConfiguration) Retrieve git commits for a project matching the search criteria.listPush
(String repositoryId, Consumer<CommitsRequestBuilder.CommitsPushRequestConfiguration> requestConfiguration) Retrieve a list of commits associated with a particular push.listPushAsync
(String repositoryId, Consumer<CommitsRequestBuilder.CommitsPushRequestConfiguration> requestConfiguration) Retrieve a list of commits associated with a particular push.Methods inherited from class org.azd.abstractions.BaseRequestBuilder
builder
-
Constructor Details
-
CommitsRequestBuilder
Instantiates a new RequestBuilder instance and sets the default values.- Parameters:
organizationUrl
- Represents organization location request url.accessTokenCredential
- Access token credential object.
-
-
Method Details
-
getAsync
public CompletableFuture<GitCommit> getAsync(String repositoryId, String commitId) throws AzDException Retrieve a particular commit.- Parameters:
repositoryId
- Name or id of the repository.commitId
- The id of the commit.- Returns:
- Git commit object
GitCommit
- Throws:
AzDException
- Default Api Exception handler.
-
getAsync
public CompletableFuture<GitCommit> getAsync(String repositoryId, String commitId, int changeCount) throws AzDException Retrieve a particular commit.- Parameters:
repositoryId
- id of the repository.commitId
- The id of the commit.changeCount
- The number of changes to include in the result.- Returns:
- Git commit object
GitCommit
- Throws:
AzDException
- Default Api Exception handler.
-
getChangesAsync
public CompletableFuture<GitCommitChanges> getChangesAsync(String repositoryId, String commitId) throws AzDException Retrieve changes for a particular commit.- Parameters:
repositoryId
- Name or id of the repository.commitId
- The id of the commit.- Returns:
- Git commit changes object
GitCommitChanges
- Throws:
AzDException
- Default Api Exception handler.
-
getChangesAsync
public CompletableFuture<GitCommitChanges> getChangesAsync(String repositoryId, String commitId, Consumer<CommitsRequestBuilder.RequestConfiguration> requestConfiguration) throws AzDException Retrieve changes for a particular commit.- Parameters:
repositoryId
- Name or id of the repository.commitId
- The id of the commit.requestConfiguration
- Consumer of request configuration. This represents the query parameter for the request.- Returns:
- Git commit changes object
GitCommitChanges
- Throws:
AzDException
- Default Api Exception handler.
-
listAsync
Retrieve git commits for a project.- Parameters:
repositoryId
- id of the repository.- Returns:
- Array Git commit object
GitCommits
- Throws:
AzDException
- Default Api Exception handler.
-
listAsync
public CompletableFuture<GitCommits> listAsync(String repositoryId, Consumer<CommitsRequestBuilder.CommitsRequestConfiguration> requestConfiguration) throws AzDException Retrieve git commits for a project.- Parameters:
repositoryId
- id of the repository.requestConfiguration
- Consumer of request configuration. This represents the query parameter for the request.- Returns:
- Array Git commit object
GitCommits
- Throws:
AzDException
- Default Api Exception handler.
-
listBatchAsync
public CompletableFuture<GitCommitRefs> listBatchAsync(String repositoryId, GitCommitsBatch gitCommitsBatch) throws AzDException Retrieve git commits for a project matching the search criteria.- Parameters:
repositoryId
- The name or ID of the repository.gitCommitsBatch
- request bodyGitCommitsBatch
.- Returns:
- GitCommitRefs object
GitCommitRefs
. - Throws:
AzDException
- Default Api exception handler.
-
listBatchAsync
public CompletableFuture<GitCommitRefs> listBatchAsync(String repositoryId, GitCommitsBatch gitCommitsBatch, Consumer<CommitsRequestBuilder.CommitsBatchRequestConfiguration> requestConfiguration) throws AzDException Retrieve git commits for a project matching the search criteria.- Parameters:
repositoryId
- The name or ID of the repository.gitCommitsBatch
- request bodyGitCommitsBatch
.requestConfiguration
- Consumer of request configuration. This represents the query parameter for the request.- Returns:
- GitCommitRefs object
GitCommitRefs
. - Throws:
AzDException
- Default Api exception handler.
-
listPushAsync
public CompletableFuture<GitCommitRefs> listPushAsync(String repositoryId, Consumer<CommitsRequestBuilder.CommitsPushRequestConfiguration> requestConfiguration) throws AzDException Retrieve a list of commits associated with a particular push. Push id is mandatory.- Parameters:
repositoryId
- id of the repository.requestConfiguration
- Consumer of request configuration. This represents the query parameter for the request.- Returns:
- Array Git commit object
GitCommits
- Throws:
AzDException
- Default Api Exception handler.
-
get
Retrieve a particular commit.- Parameters:
repositoryId
- Name or id of the repository.commitId
- The id of the commit.- Returns:
- Git commit object
GitCommit
- Throws:
AzDException
- Default Api Exception handler.
-
get
Retrieve a particular commit.- Parameters:
repositoryId
- id of the repository.commitId
- The id of the commit.changeCount
- The number of changes to include in the result.- Returns:
- Git commit object
GitCommit
- Throws:
AzDException
- Default Api Exception handler.
-
getChanges
Retrieve changes for a particular commit.- Parameters:
repositoryId
- Name or id of the repository.commitId
- The id of the commit.- Returns:
- Git commit changes object
GitCommitChanges
- Throws:
AzDException
- Default Api Exception handler.
-
getChanges
public GitCommitChanges getChanges(String repositoryId, String commitId, Consumer<CommitsRequestBuilder.RequestConfiguration> requestConfiguration) throws AzDException Retrieve changes for a particular commit.- Parameters:
repositoryId
- Name or id of the repository.commitId
- The id of the commit.requestConfiguration
- Consumer of request configuration. This represents the query parameter for the request.- Returns:
- Git commit changes object
GitCommitChanges
- Throws:
AzDException
- Default Api Exception handler.
-
list
Retrieve git commits for a project.- Parameters:
repositoryId
- id of the repository.- Returns:
- Array Git commit object
GitCommits
- Throws:
AzDException
- Default Api Exception handler.
-
list
public GitCommits list(String repositoryId, Consumer<CommitsRequestBuilder.CommitsRequestConfiguration> requestConfiguration) throws AzDException Retrieve git commits for a project.- Parameters:
repositoryId
- id of the repository.requestConfiguration
- Consumer of request configuration. This represents the query parameter for the request.- Returns:
- Array Git commit object
GitCommits
- Throws:
AzDException
- Default Api Exception handler.
-
listBatch
public GitCommitRefs listBatch(String repositoryId, GitCommitsBatch gitCommitsBatch) throws AzDException Retrieve git commits for a project matching the search criteria.- Parameters:
repositoryId
- The name or ID of the repository.gitCommitsBatch
- request bodyGitCommitsBatch
.- Returns:
- GitCommitRefs object
GitCommitRefs
. - Throws:
AzDException
- Default Api exception handler.
-
listBatch
public GitCommitRefs listBatch(String repositoryId, GitCommitsBatch gitCommitsBatch, Consumer<CommitsRequestBuilder.CommitsBatchRequestConfiguration> requestConfiguration) throws AzDException Retrieve git commits for a project matching the search criteria.- Parameters:
repositoryId
- The name or ID of the repository.gitCommitsBatch
- request bodyGitCommitsBatch
.requestConfiguration
- Consumer of request configuration. This represents the query parameter for the request.- Returns:
- GitCommitRefs object
GitCommitRefs
. - Throws:
AzDException
- Default Api exception handler.
-
listPush
public GitCommitRefs listPush(String repositoryId, Consumer<CommitsRequestBuilder.CommitsPushRequestConfiguration> requestConfiguration) throws AzDException Retrieve a list of commits associated with a particular push. Push id is mandatory.- Parameters:
repositoryId
- id of the repository.requestConfiguration
- Consumer of request configuration. This represents the query parameter for the request.- Returns:
- Array Git commit object
GitCommits
- Throws:
AzDException
- Default Api Exception handler.
-