Package org.azd.git.forks
Class ForksRequestBuilder
java.lang.Object
org.azd.abstractions.BaseRequestBuilder
org.azd.git.forks.ForksRequestBuilder
Provides functionality to build requests for managing Git Forks Api.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic 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
ConstructorDescriptionForksRequestBuilder
(String organizationUrl, AccessTokenCredential accessTokenCredential) Instantiates a new RequestBuilder instance and sets the default values. -
Method Summary
Modifier and TypeMethodDescriptioncreate
(GitForkSyncRequestParameters forkSyncRequestParameters, String repositoryNameOrId) Request that another repository's refs be fetched into this one.create
(GitForkSyncRequestParameters forkSyncRequestParameters, String repositoryNameOrId, Consumer<ForksRequestBuilder.RequestConfiguration> requestConfiguration) Request that another repository's refs be fetched into this one.createAsync
(GitForkSyncRequestParameters forkSyncRequestParameters, String repositoryNameOrId) Request that another repository's refs be fetched into this one.createAsync
(GitForkSyncRequestParameters forkSyncRequestParameters, String repositoryNameOrId, Consumer<ForksRequestBuilder.RequestConfiguration> requestConfiguration) Request that another repository's refs be fetched into this one.Retrieve all requested fork sync operations on this repository.Retrieve all requested fork sync operations on this repository.get
(String repositoryNameOrId, int forkSyncOperationId, Consumer<ForksRequestBuilder.RequestConfiguration> requestConfiguration) Retrieve all requested fork sync operations on this repository.get
(String repositoryNameOrId, Consumer<ForksRequestBuilder.RequestConfiguration> requestConfiguration) Retrieve all requested fork sync operations on this repository.Retrieve all requested fork sync operations on this repository.Retrieve all requested fork sync operations on this repository.getAsync
(String repositoryNameOrId, int forkSyncOperationId, Consumer<ForksRequestBuilder.RequestConfiguration> requestConfiguration) Retrieve all requested fork sync operations on this repository.getAsync
(String repositoryNameOrId, Consumer<ForksRequestBuilder.RequestConfiguration> requestConfiguration) Retrieve all requested fork sync operations on this repository.Retrieve all requested fork sync operations on this repository.list
(String repositoryNameOrId, String collectionId, Consumer<ForksRequestBuilder.RequestConfiguration> requestConfiguration) Retrieve all requested fork sync operations on this repository.Retrieve all requested fork sync operations on this repository.listAsync
(String repositoryNameOrId, String collectionId, Consumer<ForksRequestBuilder.RequestConfiguration> requestConfiguration) Retrieve all requested fork sync operations on this repository.Methods inherited from class org.azd.abstractions.BaseRequestBuilder
builder
-
Constructor Details
-
ForksRequestBuilder
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<GitForkSyncRequest> createAsync(GitForkSyncRequestParameters forkSyncRequestParameters, String repositoryNameOrId) throws AzDException Request that another repository's refs be fetched into this one. It syncs two existing forks. To create a fork, please see the invalid input: '&tabs'=HTTP">repositories endpoint.- Parameters:
forkSyncRequestParameters
- Represents the request body to create fork sync.repositoryNameOrId
- Name of Id of the repository.- Returns:
- Git fork sync request object.
GitForkSyncRequest
- Throws:
AzDException
- Default Api exception handler.
-
createAsync
public CompletableFuture<GitForkSyncRequest> createAsync(GitForkSyncRequestParameters forkSyncRequestParameters, String repositoryNameOrId, Consumer<ForksRequestBuilder.RequestConfiguration> requestConfiguration) throws AzDException Request that another repository's refs be fetched into this one. It syncs two existing forks. To create a fork, please see the invalid input: '&tabs'=HTTP">repositories endpoint.- Parameters:
forkSyncRequestParameters
- Represents the request body to create fork sync.repositoryNameOrId
- Name of Id of the repository.requestConfiguration
- Request configuration that represents the query parameters.- Returns:
- Git fork sync request object.
GitForkSyncRequest
- Throws:
AzDException
- Default Api exception handler.
-
getAsync
public CompletableFuture<GitForkSyncRequests> getAsync(String repositoryNameOrId) throws AzDException Retrieve all requested fork sync operations on this repository.- Parameters:
repositoryNameOrId
- Name of Id of the repository.- Returns:
- Git fork sync requests object.
GitForkSyncRequests
- Throws:
AzDException
- Default Api exception handler.
-
getAsync
public CompletableFuture<GitForkSyncRequests> getAsync(String repositoryNameOrId, Consumer<ForksRequestBuilder.RequestConfiguration> requestConfiguration) throws AzDException Retrieve all requested fork sync operations on this repository.- Parameters:
repositoryNameOrId
- Name of Id of the repository.requestConfiguration
- Request configuration that represents the query parameters.- Returns:
- Git fork sync requests object.
GitForkSyncRequests
- Throws:
AzDException
- Default Api exception handler.
-
getAsync
public CompletableFuture<GitForkSyncRequest> getAsync(String repositoryNameOrId, int forkSyncOperationId) throws AzDException Retrieve all requested fork sync operations on this repository.- Parameters:
repositoryNameOrId
- Name of Id of the repository.forkSyncOperationId
- OperationId of the sync request.- Returns:
- Git fork sync request object.
GitForkSyncRequest
- Throws:
AzDException
- Default Api exception handler.
-
getAsync
public CompletableFuture<GitForkSyncRequest> getAsync(String repositoryNameOrId, int forkSyncOperationId, Consumer<ForksRequestBuilder.RequestConfiguration> requestConfiguration) throws AzDException Retrieve all requested fork sync operations on this repository.- Parameters:
repositoryNameOrId
- Name of Id of the repository.forkSyncOperationId
- OperationId of the sync request.requestConfiguration
- Request configuration that represents the query parameters.- Returns:
- Git fork sync request object.
GitForkSyncRequest
- Throws:
AzDException
- Default Api exception handler.
-
listAsync
public CompletableFuture<GitRepositoryRefs> listAsync(String repositoryNameOrId, String collectionId) throws AzDException Retrieve all requested fork sync operations on this repository.- Parameters:
repositoryNameOrId
- Name of Id of the repository.collectionId
- Team project collection ID.- Returns:
- Git repository reference object.
GitRepositoryRefs
- Throws:
AzDException
- Default Api exception handler.
-
listAsync
public CompletableFuture<GitRepositoryRefs> listAsync(String repositoryNameOrId, String collectionId, Consumer<ForksRequestBuilder.RequestConfiguration> requestConfiguration) throws AzDException Retrieve all requested fork sync operations on this repository.- Parameters:
repositoryNameOrId
- Name of Id of the repository.collectionId
- Team project collection ID.requestConfiguration
- Request configuration that represents the query parameters.- Returns:
- Git repository reference object.
GitRepositoryRefs
- Throws:
AzDException
- Default Api exception handler.
-
create
public GitForkSyncRequest create(GitForkSyncRequestParameters forkSyncRequestParameters, String repositoryNameOrId) throws AzDException Request that another repository's refs be fetched into this one. It syncs two existing forks. To create a fork, please see the invalid input: '&tabs'=HTTP">repositories endpoint.- Parameters:
forkSyncRequestParameters
- Represents the request body to create fork sync.repositoryNameOrId
- Name of Id of the repository.- Returns:
- Git fork sync request object.
GitForkSyncRequest
- Throws:
AzDException
- Default Api exception handler.
-
create
public GitForkSyncRequest create(GitForkSyncRequestParameters forkSyncRequestParameters, String repositoryNameOrId, Consumer<ForksRequestBuilder.RequestConfiguration> requestConfiguration) throws AzDException Request that another repository's refs be fetched into this one. It syncs two existing forks. To create a fork, please see the invalid input: '&tabs'=HTTP">repositories endpoint.- Parameters:
forkSyncRequestParameters
- Represents the request body to create fork sync.repositoryNameOrId
- Name of Id of the repository.requestConfiguration
- Request configuration that represents the query parameters.- Returns:
- Git fork sync request object.
GitForkSyncRequest
- Throws:
AzDException
- Default Api exception handler.
-
get
Retrieve all requested fork sync operations on this repository.- Parameters:
repositoryNameOrId
- Name of Id of the repository.- Returns:
- Git fork sync requests object.
GitForkSyncRequests
- Throws:
AzDException
- Default Api exception handler.
-
get
public GitForkSyncRequests get(String repositoryNameOrId, Consumer<ForksRequestBuilder.RequestConfiguration> requestConfiguration) throws AzDException Retrieve all requested fork sync operations on this repository.- Parameters:
repositoryNameOrId
- Name of Id of the repository.requestConfiguration
- Request configuration that represents the query parameters.- Returns:
- Git fork sync requests object.
GitForkSyncRequests
- Throws:
AzDException
- Default Api exception handler.
-
get
public GitForkSyncRequest get(String repositoryNameOrId, int forkSyncOperationId) throws AzDException Retrieve all requested fork sync operations on this repository.- Parameters:
repositoryNameOrId
- Name of Id of the repository.forkSyncOperationId
- OperationId of the sync request.- Returns:
- Git fork sync request object.
GitForkSyncRequest
- Throws:
AzDException
- Default Api exception handler.
-
get
public GitForkSyncRequest get(String repositoryNameOrId, int forkSyncOperationId, Consumer<ForksRequestBuilder.RequestConfiguration> requestConfiguration) throws AzDException Retrieve all requested fork sync operations on this repository.- Parameters:
repositoryNameOrId
- Name of Id of the repository.forkSyncOperationId
- OperationId of the sync request.requestConfiguration
- Request configuration that represents the query parameters.- Returns:
- Git fork sync request object.
GitForkSyncRequest
- Throws:
AzDException
- Default Api exception handler.
-
list
Retrieve all requested fork sync operations on this repository.- Parameters:
repositoryNameOrId
- Name of Id of the repository.collectionId
- Team project collection ID.- Returns:
- Git repository reference object.
GitRepositoryRefs
- Throws:
AzDException
- Default Api exception handler.
-
list
public GitRepositoryRefs list(String repositoryNameOrId, String collectionId, Consumer<ForksRequestBuilder.RequestConfiguration> requestConfiguration) throws AzDException Retrieve all requested fork sync operations on this repository.- Parameters:
repositoryNameOrId
- Name of Id of the repository.collectionId
- Team project collection ID.requestConfiguration
- Request configuration that represents the query parameters.- Returns:
- Git repository reference object.
GitRepositoryRefs
- Throws:
AzDException
- Default Api exception handler.
-