Package org.azd.git.pushes
Class PushesRequestBuilder
java.lang.Object
org.azd.abstractions.BaseRequestBuilder
org.azd.git.pushes.PushesRequestBuilder
Provides functionality to build requests for managing Git Pushes Api.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classRepresents the query parameters.static classRepresents the query parameters.static classRequest configuration object for the query parameters.static classRequest 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
ConstructorsConstructorDescriptionPushesRequestBuilder(String organizationUrl, AccessTokenCredential accessTokenCredential) Instantiates a new RequestBuilder instance and sets the default values. -
Method Summary
Modifier and TypeMethodDescriptionPush changes to the repository.createAsync(GitPush gitPush, String repositoryId) Push changes to the repository.Retrieves a particular push.get(String repositoryId, int pushId, Consumer<PushesRequestBuilder.RequestConfiguration> requestConfiguration) Retrieves a particular push.Retrieves a particular push.getAsync(String repositoryId, int pushId, Consumer<PushesRequestBuilder.RequestConfiguration> requestConfiguration) Retrieves a particular push.Retrieves pushes associated with the specified repository.list(String repositoryId, Consumer<PushesRequestBuilder.ListRequestConfiguration> requestConfiguration) Retrieves pushes associated with the specified repository.Retrieves pushes associated with the specified repository.listAsync(String repositoryId, Consumer<PushesRequestBuilder.ListRequestConfiguration> requestConfiguration) Retrieves pushes associated with the specified repository.Methods inherited from class org.azd.abstractions.BaseRequestBuilder
builder
-
Constructor Details
-
PushesRequestBuilder
Instantiates a new RequestBuilder instance and sets the default values.- Parameters:
organizationUrl- Represents organization location request url.accessTokenCredential- Access token credential object.
-
-
Method Details
-
createAsync
public CompletableFuture<GitPush> createAsync(GitPush gitPush, String repositoryId) throws AzDException Push changes to the repository.- Parameters:
repositoryId- The name or ID of the repository.- Returns:
- GitPush Object
GitPush - Throws:
AzDException- Default Api Exception handler.
-
getAsync
Retrieves a particular push.- Parameters:
repositoryId- The name or ID of the repository.pushId- ID of the push.- Returns:
- GitPush Object
GitPush - Throws:
AzDException- Default Api Exception handler.
-
getAsync
public CompletableFuture<GitPush> getAsync(String repositoryId, int pushId, Consumer<PushesRequestBuilder.RequestConfiguration> requestConfiguration) throws AzDException Retrieves a particular push.- Parameters:
repositoryId- The name or ID of the repository.pushId- ID of the push.requestConfiguration- Request configuration that represents the query parameters.- Returns:
- GitPush Object
GitPush - Throws:
AzDException- Default Api Exception handler.
-
listAsync
Retrieves pushes associated with the specified repository.- Parameters:
repositoryId- The name or ID of the repository.- Returns:
- Collection of GitPush Object
GitPushes - Throws:
AzDException- Default Api Exception handler.
-
listAsync
public CompletableFuture<GitPushes> listAsync(String repositoryId, Consumer<PushesRequestBuilder.ListRequestConfiguration> requestConfiguration) throws AzDException Retrieves pushes associated with the specified repository.- Parameters:
repositoryId- The name or ID of the repository.requestConfiguration- Request configuration that represents the query parameters.- Returns:
- Collection of GitPush Object
GitPushes - Throws:
AzDException- Default Api Exception handler.
-
create
Push changes to the repository.- Parameters:
repositoryId- The name or ID of the repository.- Returns:
- GitPush Object
GitPush - Throws:
AzDException- Default Api Exception handler.
-
get
Retrieves a particular push.- Parameters:
repositoryId- The name or ID of the repository.pushId- ID of the push.- Returns:
- GitPush Object
GitPush - Throws:
AzDException- Default Api Exception handler.
-
get
public GitPush get(String repositoryId, int pushId, Consumer<PushesRequestBuilder.RequestConfiguration> requestConfiguration) throws AzDException Retrieves a particular push.- Parameters:
repositoryId- The name or ID of the repository.pushId- ID of the push.requestConfiguration- Request configuration that represents the query parameters.- Returns:
- GitPush Object
GitPush - Throws:
AzDException- Default Api Exception handler.
-
list
Retrieves pushes associated with the specified repository.- Parameters:
repositoryId- The name or ID of the repository.- Returns:
- Collection of GitPush Object
GitPushes - Throws:
AzDException- Default Api Exception handler.
-
list
public GitPushes list(String repositoryId, Consumer<PushesRequestBuilder.ListRequestConfiguration> requestConfiguration) throws AzDException Retrieves pushes associated with the specified repository.- Parameters:
repositoryId- The name or ID of the repository.requestConfiguration- Request configuration that represents the query parameters.- Returns:
- Collection of GitPush Object
GitPushes - Throws:
AzDException- Default Api Exception handler.
-