Class DevopsAsyncClient
- java.lang.Object
-
- com.oracle.bmc.http.internal.BaseAsyncClient
-
- com.oracle.bmc.devops.DevopsAsyncClient
-
- All Implemented Interfaces:
DevopsAsync
,AutoCloseable
@Generated(value="OracleSDKGenerator", comments="API Version: 20210630") public class DevopsAsyncClient extends BaseAsyncClient implements DevopsAsync
Async client implementation for Devops service.
There are two ways to use async client: 1. Use AsyncHandler: using AsyncHandler, if the response to the call is anInputStream
, like getObject Api in object storage service, developers need to process the stream in AsyncHandler, and not anywhere else, because the stream will be closed right after the AsyncHandler is invoked.
2. Use Java Future: using Java Future, developers need to close the stream after they are done with the Java Future.
Accessing the result should be done in a mutually exclusive manner, either through the Future or the AsyncHandler, but not both. If the Future is used, the caller should pass in null as the AsyncHandler. If the AsyncHandler is used, it is still safe to use the Future to determine whether or not the request was completed via Future.isDone/isCancelled.
Please refer to https://github.com/oracle/oci-java-sdk/blob/master/bmc-examples/src/main/java/ResteasyClientWithObjectStorageExample.java
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DevopsAsyncClient.Builder
Builder class for this client.
-
Field Summary
Fields Modifier and Type Field Description String
clientCommonLibraryVersion
Compatible SDK version, provided by the codegen.Optional<String>
minimumClientCommonLibraryVersionFromClient
Minimum compatible SDK version, maybe provided by the codegen.static Service
SERVICE
Service instance for Devops.
-
Constructor Summary
Constructors Constructor Description DevopsAsyncClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory)
Deprecated.Use thebuilder
instead.DevopsAsyncClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory, List<ClientConfigurator> additionalClientConfigurators)
Deprecated.Use thebuilder
instead.DevopsAsyncClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory, List<ClientConfigurator> additionalClientConfigurators, String endpoint)
Deprecated.Use thebuilder
instead.DevopsAsyncClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory, Map<SigningStrategy,RequestSignerFactory> signingStrategyRequestSignerFactories, List<ClientConfigurator> additionalClientConfigurators, String endpoint)
Deprecated.Use thebuilder
instead.DevopsAsyncClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider)
Deprecated.Use thebuilder
instead.DevopsAsyncClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration)
Deprecated.Use thebuilder
instead.DevopsAsyncClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator)
Deprecated.Use thebuilder
instead.
-
Method Summary
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.lang.AutoCloseable
close
-
Methods inherited from interface com.oracle.bmc.devops.DevopsAsync
getEndpoint, refreshClient, setEndpoint, useRealmSpecificEndpointTemplate
-
-
-
-
Constructor Detail
-
DevopsAsyncClient
@Deprecated public DevopsAsyncClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider)
Deprecated.Use thebuilder
instead.Create a new client instance.- Parameters:
authenticationDetailsProvider
- The authentication details (seeDevopsAsyncClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider)
)
-
DevopsAsyncClient
@Deprecated public DevopsAsyncClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration)
Deprecated.Use thebuilder
instead.Create a new client instance.- Parameters:
authenticationDetailsProvider
- The authentication details (seeDevopsAsyncClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider)
)configuration
-ClientBuilderBase.configuration
-
DevopsAsyncClient
@Deprecated public DevopsAsyncClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator)
Deprecated.Use thebuilder
instead.Create a new client instance.- Parameters:
authenticationDetailsProvider
- The authentication details (seeDevopsAsyncClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider)
)configuration
-ClientBuilderBase.configuration
clientConfigurator
-ClientBuilderBase.clientConfigurator(com.oracle.bmc.http.ClientConfigurator)
-
DevopsAsyncClient
@Deprecated public DevopsAsyncClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory)
Deprecated.Use thebuilder
instead.Create a new client instance.- Parameters:
authenticationDetailsProvider
- The authentication details (seeDevopsAsyncClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider)
)configuration
-ClientBuilderBase.configuration
clientConfigurator
-ClientBuilderBase.clientConfigurator(com.oracle.bmc.http.ClientConfigurator)
defaultRequestSignerFactory
-ClientBuilderBase.requestSignerFactory
-
DevopsAsyncClient
@Deprecated public DevopsAsyncClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory, List<ClientConfigurator> additionalClientConfigurators)
Deprecated.Use thebuilder
instead.Create a new client instance.- Parameters:
authenticationDetailsProvider
- The authentication details (seeDevopsAsyncClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider)
)configuration
-ClientBuilderBase.configuration
clientConfigurator
-ClientBuilderBase.clientConfigurator(com.oracle.bmc.http.ClientConfigurator)
defaultRequestSignerFactory
-ClientBuilderBase.requestSignerFactory
additionalClientConfigurators
-ClientBuilderBase.additionalClientConfigurators
-
DevopsAsyncClient
@Deprecated public DevopsAsyncClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory, List<ClientConfigurator> additionalClientConfigurators, String endpoint)
Deprecated.Use thebuilder
instead.Create a new client instance.- Parameters:
authenticationDetailsProvider
- The authentication details (seeDevopsAsyncClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider)
)configuration
-ClientBuilderBase.configuration
clientConfigurator
-ClientBuilderBase.clientConfigurator(com.oracle.bmc.http.ClientConfigurator)
defaultRequestSignerFactory
-ClientBuilderBase.requestSignerFactory
additionalClientConfigurators
-ClientBuilderBase.additionalClientConfigurators
endpoint
-ClientBuilderBase.endpoint(java.lang.String)
-
DevopsAsyncClient
@Deprecated public DevopsAsyncClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory, Map<SigningStrategy,RequestSignerFactory> signingStrategyRequestSignerFactories, List<ClientConfigurator> additionalClientConfigurators, String endpoint)
Deprecated.Use thebuilder
instead.Create a new client instance.- Parameters:
authenticationDetailsProvider
- The authentication details (seeDevopsAsyncClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider)
)configuration
-ClientBuilderBase.configuration
clientConfigurator
-ClientBuilderBase.clientConfigurator(com.oracle.bmc.http.ClientConfigurator)
defaultRequestSignerFactory
-ClientBuilderBase.requestSignerFactory
additionalClientConfigurators
-ClientBuilderBase.additionalClientConfigurators
endpoint
-ClientBuilderBase.endpoint(java.lang.String)
signingStrategyRequestSignerFactories
-ClientBuilderBase.signingStrategyRequestSignerFactories
-
-
Method Detail
-
builder
public static DevopsAsyncClient.Builder builder()
Create a builder for this client.- Returns:
- builder
-
setRegion
public void setRegion(Region region)
Description copied from interface:DevopsAsync
Sets the region to call (ex, Region.US_PHOENIX_1).Note, this will call
setEndpoint
after resolving the endpoint. If the service is not available in this region, however, an IllegalArgumentException will be raised.- Specified by:
setRegion
in interfaceDevopsAsync
- Parameters:
region
- The region of the service.
-
setRegion
public void setRegion(String regionId)
Description copied from interface:DevopsAsync
Sets the region to call (ex, ‘us-phoenix-1’).Note, this will first try to map the region ID to a known Region and call
setRegion
.If no known Region could be determined, it will create an endpoint based on the default endpoint format (
Region.formatDefaultRegionEndpoint(Service, String)
and then callsetEndpoint
.- Specified by:
setRegion
in interfaceDevopsAsync
- Parameters:
regionId
- The public region ID.
-
approveDeployment
public Future<ApproveDeploymentResponse> approveDeployment(ApproveDeploymentRequest request, AsyncHandler<ApproveDeploymentRequest,ApproveDeploymentResponse> handler)
Description copied from interface:DevopsAsync
Submit stage approval.- Specified by:
approveDeployment
in interfaceDevopsAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
cancelBuildRun
public Future<CancelBuildRunResponse> cancelBuildRun(CancelBuildRunRequest request, AsyncHandler<CancelBuildRunRequest,CancelBuildRunResponse> handler)
Description copied from interface:DevopsAsync
Cancels the build run based on the build run ID provided in the request.- Specified by:
cancelBuildRun
in interfaceDevopsAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
cancelDeployment
public Future<CancelDeploymentResponse> cancelDeployment(CancelDeploymentRequest request, AsyncHandler<CancelDeploymentRequest,CancelDeploymentResponse> handler)
Description copied from interface:DevopsAsync
Cancels a deployment resource by identifier.- Specified by:
cancelDeployment
in interfaceDevopsAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
cancelScheduledCascadingProjectDeletion
public Future<CancelScheduledCascadingProjectDeletionResponse> cancelScheduledCascadingProjectDeletion(CancelScheduledCascadingProjectDeletionRequest request, AsyncHandler<CancelScheduledCascadingProjectDeletionRequest,CancelScheduledCascadingProjectDeletionResponse> handler)
Description copied from interface:DevopsAsync
Cascading operation that restores Project and child resources from a DELETING state to an active state- Specified by:
cancelScheduledCascadingProjectDeletion
in interfaceDevopsAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
changeProjectCompartment
public Future<ChangeProjectCompartmentResponse> changeProjectCompartment(ChangeProjectCompartmentRequest request, AsyncHandler<ChangeProjectCompartmentRequest,ChangeProjectCompartmentResponse> handler)
Description copied from interface:DevopsAsync
Moves a project resource from one compartment OCID to another.- Specified by:
changeProjectCompartment
in interfaceDevopsAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
createBuildPipeline
public Future<CreateBuildPipelineResponse> createBuildPipeline(CreateBuildPipelineRequest request, AsyncHandler<CreateBuildPipelineRequest,CreateBuildPipelineResponse> handler)
Description copied from interface:DevopsAsync
Creates a new build pipeline.- Specified by:
createBuildPipeline
in interfaceDevopsAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
createBuildPipelineStage
public Future<CreateBuildPipelineStageResponse> createBuildPipelineStage(CreateBuildPipelineStageRequest request, AsyncHandler<CreateBuildPipelineStageRequest,CreateBuildPipelineStageResponse> handler)
Description copied from interface:DevopsAsync
Creates a new stage.- Specified by:
createBuildPipelineStage
in interfaceDevopsAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
createBuildRun
public Future<CreateBuildRunResponse> createBuildRun(CreateBuildRunRequest request, AsyncHandler<CreateBuildRunRequest,CreateBuildRunResponse> handler)
Description copied from interface:DevopsAsync
Starts a build pipeline run for a predefined build pipeline.Please ensure the completion of any work request for creation/updation of Build Pipeline before starting a Build Run.
- Specified by:
createBuildRun
in interfaceDevopsAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
createConnection
public Future<CreateConnectionResponse> createConnection(CreateConnectionRequest request, AsyncHandler<CreateConnectionRequest,CreateConnectionResponse> handler)
Description copied from interface:DevopsAsync
Creates a new connection.- Specified by:
createConnection
in interfaceDevopsAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
createDeployArtifact
public Future<CreateDeployArtifactResponse> createDeployArtifact(CreateDeployArtifactRequest request, AsyncHandler<CreateDeployArtifactRequest,CreateDeployArtifactResponse> handler)
Description copied from interface:DevopsAsync
Creates a new deployment artifact.- Specified by:
createDeployArtifact
in interfaceDevopsAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
createDeployEnvironment
public Future<CreateDeployEnvironmentResponse> createDeployEnvironment(CreateDeployEnvironmentRequest request, AsyncHandler<CreateDeployEnvironmentRequest,CreateDeployEnvironmentResponse> handler)
Description copied from interface:DevopsAsync
Creates a new deployment environment.- Specified by:
createDeployEnvironment
in interfaceDevopsAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
createDeployPipeline
public Future<CreateDeployPipelineResponse> createDeployPipeline(CreateDeployPipelineRequest request, AsyncHandler<CreateDeployPipelineRequest,CreateDeployPipelineResponse> handler)
Description copied from interface:DevopsAsync
Creates a new deployment pipeline.- Specified by:
createDeployPipeline
in interfaceDevopsAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
createDeployStage
public Future<CreateDeployStageResponse> createDeployStage(CreateDeployStageRequest request, AsyncHandler<CreateDeployStageRequest,CreateDeployStageResponse> handler)
Description copied from interface:DevopsAsync
Creates a new deployment stage.- Specified by:
createDeployStage
in interfaceDevopsAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
createDeployment
public Future<CreateDeploymentResponse> createDeployment(CreateDeploymentRequest request, AsyncHandler<CreateDeploymentRequest,CreateDeploymentResponse> handler)
Description copied from interface:DevopsAsync
Creates a new deployment.- Specified by:
createDeployment
in interfaceDevopsAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
createOrUpdateGitRef
public Future<CreateOrUpdateGitRefResponse> createOrUpdateGitRef(CreateOrUpdateGitRefRequest request, AsyncHandler<CreateOrUpdateGitRefRequest,CreateOrUpdateGitRefResponse> handler)
Description copied from interface:DevopsAsync
Creates a new reference or updates an existing one.- Specified by:
createOrUpdateGitRef
in interfaceDevopsAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
createOrUpdateProtectedBranch
public Future<CreateOrUpdateProtectedBranchResponse> createOrUpdateProtectedBranch(CreateOrUpdateProtectedBranchRequest request, AsyncHandler<CreateOrUpdateProtectedBranchRequest,CreateOrUpdateProtectedBranchResponse> handler)
Description copied from interface:DevopsAsync
Creates a restriction on a branch that prevents certain actions on it.- Specified by:
createOrUpdateProtectedBranch
in interfaceDevopsAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
createProject
public Future<CreateProjectResponse> createProject(CreateProjectRequest request, AsyncHandler<CreateProjectRequest,CreateProjectResponse> handler)
Description copied from interface:DevopsAsync
Creates a new project.- Specified by:
createProject
in interfaceDevopsAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
createPullRequest
public Future<CreatePullRequestResponse> createPullRequest(CreatePullRequestRequest request, AsyncHandler<CreatePullRequestRequest,CreatePullRequestResponse> handler)
Description copied from interface:DevopsAsync
Creates a new PullRequest.- Specified by:
createPullRequest
in interfaceDevopsAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
createPullRequestAttachment
public Future<CreatePullRequestAttachmentResponse> createPullRequestAttachment(CreatePullRequestAttachmentRequest request, AsyncHandler<CreatePullRequestAttachmentRequest,CreatePullRequestAttachmentResponse> handler)
Description copied from interface:DevopsAsync
Creates PullRequest attachment- Specified by:
createPullRequestAttachment
in interfaceDevopsAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
createPullRequestComment
public Future<CreatePullRequestCommentResponse> createPullRequestComment(CreatePullRequestCommentRequest request, AsyncHandler<CreatePullRequestCommentRequest,CreatePullRequestCommentResponse> handler)
Description copied from interface:DevopsAsync
Creates a new PullRequest comment.- Specified by:
createPullRequestComment
in interfaceDevopsAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
createRepository
public Future<CreateRepositoryResponse> createRepository(CreateRepositoryRequest request, AsyncHandler<CreateRepositoryRequest,CreateRepositoryResponse> handler)
Description copied from interface:DevopsAsync
Creates a new repository.- Specified by:
createRepository
in interfaceDevopsAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
createTrigger
public Future<CreateTriggerResponse> createTrigger(CreateTriggerRequest request, AsyncHandler<CreateTriggerRequest,CreateTriggerResponse> handler)
Description copied from interface:DevopsAsync
Creates a new trigger.- Specified by:
createTrigger
in interfaceDevopsAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
declinePullRequest
public Future<DeclinePullRequestResponse> declinePullRequest(DeclinePullRequestRequest request, AsyncHandler<DeclinePullRequestRequest,DeclinePullRequestResponse> handler)
Description copied from interface:DevopsAsync
Decline a PullRequest- Specified by:
declinePullRequest
in interfaceDevopsAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
deleteBuildPipeline
public Future<DeleteBuildPipelineResponse> deleteBuildPipeline(DeleteBuildPipelineRequest request, AsyncHandler<DeleteBuildPipelineRequest,DeleteBuildPipelineResponse> handler)
Description copied from interface:DevopsAsync
Deletes a build pipeline resource by identifier.- Specified by:
deleteBuildPipeline
in interfaceDevopsAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
deleteBuildPipelineStage
public Future<DeleteBuildPipelineStageResponse> deleteBuildPipelineStage(DeleteBuildPipelineStageRequest request, AsyncHandler<DeleteBuildPipelineStageRequest,DeleteBuildPipelineStageResponse> handler)
Description copied from interface:DevopsAsync
Deletes a stage based on the stage ID provided in the request.- Specified by:
deleteBuildPipelineStage
in interfaceDevopsAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
deleteConnection
public Future<DeleteConnectionResponse> deleteConnection(DeleteConnectionRequest request, AsyncHandler<DeleteConnectionRequest,DeleteConnectionResponse> handler)
Description copied from interface:DevopsAsync
Deletes a connection resource by identifier.- Specified by:
deleteConnection
in interfaceDevopsAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
deleteDeployArtifact
public Future<DeleteDeployArtifactResponse> deleteDeployArtifact(DeleteDeployArtifactRequest request, AsyncHandler<DeleteDeployArtifactRequest,DeleteDeployArtifactResponse> handler)
Description copied from interface:DevopsAsync
Deletes a deployment artifact resource by identifier.- Specified by:
deleteDeployArtifact
in interfaceDevopsAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
deleteDeployEnvironment
public Future<DeleteDeployEnvironmentResponse> deleteDeployEnvironment(DeleteDeployEnvironmentRequest request, AsyncHandler<DeleteDeployEnvironmentRequest,DeleteDeployEnvironmentResponse> handler)
Description copied from interface:DevopsAsync
Deletes a deployment environment resource by identifier.- Specified by:
deleteDeployEnvironment
in interfaceDevopsAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
deleteDeployPipeline
public Future<DeleteDeployPipelineResponse> deleteDeployPipeline(DeleteDeployPipelineRequest request, AsyncHandler<DeleteDeployPipelineRequest,DeleteDeployPipelineResponse> handler)
Description copied from interface:DevopsAsync
Deletes a deployment pipeline resource by identifier.- Specified by:
deleteDeployPipeline
in interfaceDevopsAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
deleteDeployStage
public Future<DeleteDeployStageResponse> deleteDeployStage(DeleteDeployStageRequest request, AsyncHandler<DeleteDeployStageRequest,DeleteDeployStageResponse> handler)
Description copied from interface:DevopsAsync
Deletes a deployment stage resource by identifier.- Specified by:
deleteDeployStage
in interfaceDevopsAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
deleteGitRef
public Future<DeleteGitRefResponse> deleteGitRef(DeleteGitRefRequest request, AsyncHandler<DeleteGitRefRequest,DeleteGitRefResponse> handler)
Description copied from interface:DevopsAsync
Deletes a Repository’s Ref by its name.Returns an error if the name is ambiguous. Can be disambiguated by using full names like "heads/
" or "tags/ ". - Specified by:
deleteGitRef
in interfaceDevopsAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
deleteProject
public Future<DeleteProjectResponse> deleteProject(DeleteProjectRequest request, AsyncHandler<DeleteProjectRequest,DeleteProjectResponse> handler)
Description copied from interface:DevopsAsync
Deletes a project resource by identifier- Specified by:
deleteProject
in interfaceDevopsAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
deleteProjectRepositorySettings
public Future<DeleteProjectRepositorySettingsResponse> deleteProjectRepositorySettings(DeleteProjectRepositorySettingsRequest request, AsyncHandler<DeleteProjectRepositorySettingsRequest,DeleteProjectRepositorySettingsResponse> handler)
Description copied from interface:DevopsAsync
Removes the custom repository settings configured for a project.- Specified by:
deleteProjectRepositorySettings
in interfaceDevopsAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
deleteProtectedBranch
public Future<DeleteProtectedBranchResponse> deleteProtectedBranch(DeleteProtectedBranchRequest request, AsyncHandler<DeleteProtectedBranchRequest,DeleteProtectedBranchResponse> handler)
Description copied from interface:DevopsAsync
Removes the protection from a branch- Specified by:
deleteProtectedBranch
in interfaceDevopsAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
deletePullRequest
public Future<DeletePullRequestResponse> deletePullRequest(DeletePullRequestRequest request, AsyncHandler<DeletePullRequestRequest,DeletePullRequestResponse> handler)
Description copied from interface:DevopsAsync
Deletes a PullRequest resource by identifier- Specified by:
deletePullRequest
in interfaceDevopsAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
deletePullRequestAttachment
public Future<DeletePullRequestAttachmentResponse> deletePullRequestAttachment(DeletePullRequestAttachmentRequest request, AsyncHandler<DeletePullRequestAttachmentRequest,DeletePullRequestAttachmentResponse> handler)
Description copied from interface:DevopsAsync
Deletes a PullRequest attachment metadata by identifier- Specified by:
deletePullRequestAttachment
in interfaceDevopsAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
deletePullRequestComment
public Future<DeletePullRequestCommentResponse> deletePullRequestComment(DeletePullRequestCommentRequest request, AsyncHandler<DeletePullRequestCommentRequest,DeletePullRequestCommentResponse> handler)
Description copied from interface:DevopsAsync
Deletes a PullRequest comment by identifier- Specified by:
deletePullRequestComment
in interfaceDevopsAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
deleteRef
public Future<DeleteRefResponse> deleteRef(DeleteRefRequest request, AsyncHandler<DeleteRefRequest,DeleteRefResponse> handler)
Description copied from interface:DevopsAsync
Deletes a Repository’s Ref by its name.Returns an error if the name is ambiguous. Can be disambiguated by using full names like "heads/
" or "tags/ ". This API will be deprecated on Wed, 12 June 2024 01:00:00 GMT as it does not get recognized when refName has ‘/’. This will be replaced by "/repositories/{repositoryId}/actions/deleteGitRef". - Specified by:
deleteRef
in interfaceDevopsAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
deleteRepository
public Future<DeleteRepositoryResponse> deleteRepository(DeleteRepositoryRequest request, AsyncHandler<DeleteRepositoryRequest,DeleteRepositoryResponse> handler)
Description copied from interface:DevopsAsync
Deletes a repository resource by identifier.- Specified by:
deleteRepository
in interfaceDevopsAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
deleteRepositorySettings
public Future<DeleteRepositorySettingsResponse> deleteRepositorySettings(DeleteRepositorySettingsRequest request, AsyncHandler<DeleteRepositorySettingsRequest,DeleteRepositorySettingsResponse> handler)
Description copied from interface:DevopsAsync
Removes the custom settings configured for a repository- Specified by:
deleteRepositorySettings
in interfaceDevopsAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
deleteTrigger
public Future<DeleteTriggerResponse> deleteTrigger(DeleteTriggerRequest request, AsyncHandler<DeleteTriggerRequest,DeleteTriggerResponse> handler)
Description copied from interface:DevopsAsync
Deletes a trigger resource by identifier.- Specified by:
deleteTrigger
in interfaceDevopsAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
getBuildPipeline
public Future<GetBuildPipelineResponse> getBuildPipeline(GetBuildPipelineRequest request, AsyncHandler<GetBuildPipelineRequest,GetBuildPipelineResponse> handler)
Description copied from interface:DevopsAsync
Retrieves a build pipeline by identifier.- Specified by:
getBuildPipeline
in interfaceDevopsAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
getBuildPipelineStage
public Future<GetBuildPipelineStageResponse> getBuildPipelineStage(GetBuildPipelineStageRequest request, AsyncHandler<GetBuildPipelineStageRequest,GetBuildPipelineStageResponse> handler)
Description copied from interface:DevopsAsync
Retrieves a stage based on the stage ID provided in the request.- Specified by:
getBuildPipelineStage
in interfaceDevopsAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
getBuildRun
public Future<GetBuildRunResponse> getBuildRun(GetBuildRunRequest request, AsyncHandler<GetBuildRunRequest,GetBuildRunResponse> handler)
Description copied from interface:DevopsAsync
Returns the details of a build run for a given build run ID.- Specified by:
getBuildRun
in interfaceDevopsAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
getCommit
public Future<GetCommitResponse> getCommit(GetCommitRequest request, AsyncHandler<GetCommitRequest,GetCommitResponse> handler)
Description copied from interface:DevopsAsync
Retrieves a repository’s commit by commit ID.- Specified by:
getCommit
in interfaceDevopsAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
getCommitDiff
public Future<GetCommitDiffResponse> getCommitDiff(GetCommitDiffRequest request, AsyncHandler<GetCommitDiffRequest,GetCommitDiffResponse> handler)
Description copied from interface:DevopsAsync
Compares two revisions for their differences.Supports comparison between two references or commits.
- Specified by:
getCommitDiff
in interfaceDevopsAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
getConnection
public Future<GetConnectionResponse> getConnection(GetConnectionRequest request, AsyncHandler<GetConnectionRequest,GetConnectionResponse> handler)
Description copied from interface:DevopsAsync
Retrieves a connection by identifier.- Specified by:
getConnection
in interfaceDevopsAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
getDeployArtifact
public Future<GetDeployArtifactResponse> getDeployArtifact(GetDeployArtifactRequest request, AsyncHandler<GetDeployArtifactRequest,GetDeployArtifactResponse> handler)
Description copied from interface:DevopsAsync
Retrieves a deployment artifact by identifier.- Specified by:
getDeployArtifact
in interfaceDevopsAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
getDeployEnvironment
public Future<GetDeployEnvironmentResponse> getDeployEnvironment(GetDeployEnvironmentRequest request, AsyncHandler<GetDeployEnvironmentRequest,GetDeployEnvironmentResponse> handler)
Description copied from interface:DevopsAsync
Retrieves a deployment environment by identifier.- Specified by:
getDeployEnvironment
in interfaceDevopsAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
getDeployPipeline
public Future<GetDeployPipelineResponse> getDeployPipeline(GetDeployPipelineRequest request, AsyncHandler<GetDeployPipelineRequest,GetDeployPipelineResponse> handler)
Description copied from interface:DevopsAsync
Retrieves a deployment pipeline by identifier.- Specified by:
getDeployPipeline
in interfaceDevopsAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
getDeployStage
public Future<GetDeployStageResponse> getDeployStage(GetDeployStageRequest request, AsyncHandler<GetDeployStageRequest,GetDeployStageResponse> handler)
Description copied from interface:DevopsAsync
Retrieves a deployment stage by identifier.- Specified by:
getDeployStage
in interfaceDevopsAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
getDeployment
public Future<GetDeploymentResponse> getDeployment(GetDeploymentRequest request, AsyncHandler<GetDeploymentRequest,GetDeploymentResponse> handler)
Description copied from interface:DevopsAsync
Retrieves a deployment by identifier.- Specified by:
getDeployment
in interfaceDevopsAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
getFileDiff
public Future<GetFileDiffResponse> getFileDiff(GetFileDiffRequest request, AsyncHandler<GetFileDiffRequest,GetFileDiffResponse> handler)
Description copied from interface:DevopsAsync
Gets the line-by-line difference between file on different commits.This API will be deprecated on Wed, 29 Mar 2023 01:00:00 GMT as it does not get recognized when filePath has ‘/’. This will be replaced by "/repositories/{repositoryId}/file/diffs"
- Specified by:
getFileDiff
in interfaceDevopsAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
getMirrorRecord
public Future<GetMirrorRecordResponse> getMirrorRecord(GetMirrorRecordRequest request, AsyncHandler<GetMirrorRecordRequest,GetMirrorRecordResponse> handler)
Description copied from interface:DevopsAsync
Returns either current mirror record or last successful mirror record for a specific mirror repository.- Specified by:
getMirrorRecord
in interfaceDevopsAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
getObject
public Future<GetObjectResponse> getObject(GetObjectRequest request, AsyncHandler<GetObjectRequest,GetObjectResponse> handler)
Description copied from interface:DevopsAsync
Retrieves blob of specific branch name/commit ID and file path.- Specified by:
getObject
in interfaceDevopsAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
getObjectContent
public Future<GetObjectContentResponse> getObjectContent(GetObjectContentRequest request, AsyncHandler<GetObjectContentRequest,GetObjectContentResponse> handler)
Description copied from interface:DevopsAsync
Retrieve contents of a specified object.- Specified by:
getObjectContent
in interfaceDevopsAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
getProject
public Future<GetProjectResponse> getProject(GetProjectRequest request, AsyncHandler<GetProjectRequest,GetProjectResponse> handler)
Description copied from interface:DevopsAsync
Retrieves a project by identifier.- Specified by:
getProject
in interfaceDevopsAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
getProjectNotificationPreference
public Future<GetProjectNotificationPreferenceResponse> getProjectNotificationPreference(GetProjectNotificationPreferenceRequest request, AsyncHandler<GetProjectNotificationPreferenceRequest,GetProjectNotificationPreferenceResponse> handler)
Description copied from interface:DevopsAsync
Get the project notification preference for the user passed as path param- Specified by:
getProjectNotificationPreference
in interfaceDevopsAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
getProjectRepositorySettings
public Future<GetProjectRepositorySettingsResponse> getProjectRepositorySettings(GetProjectRepositorySettingsRequest request, AsyncHandler<GetProjectRepositorySettingsRequest,GetProjectRepositorySettingsResponse> handler)
Description copied from interface:DevopsAsync
Retrieves a project’s repository settings details.- Specified by:
getProjectRepositorySettings
in interfaceDevopsAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
getPullRequest
public Future<GetPullRequestResponse> getPullRequest(GetPullRequestRequest request, AsyncHandler<GetPullRequestRequest,GetPullRequestResponse> handler)
Description copied from interface:DevopsAsync
Gets a PullRequest by identifier- Specified by:
getPullRequest
in interfaceDevopsAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
getPullRequestAttachment
public Future<GetPullRequestAttachmentResponse> getPullRequestAttachment(GetPullRequestAttachmentRequest request, AsyncHandler<GetPullRequestAttachmentRequest,GetPullRequestAttachmentResponse> handler)
Description copied from interface:DevopsAsync
Get PullRequest attachment metadata by identifier- Specified by:
getPullRequestAttachment
in interfaceDevopsAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
getPullRequestAttachmentContent
public Future<GetPullRequestAttachmentContentResponse> getPullRequestAttachmentContent(GetPullRequestAttachmentContentRequest request, AsyncHandler<GetPullRequestAttachmentContentRequest,GetPullRequestAttachmentContentResponse> handler)
Description copied from interface:DevopsAsync
Gets the content of the attachment.- Specified by:
getPullRequestAttachmentContent
in interfaceDevopsAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
getPullRequestChangeSummaryMetrics
public Future<GetPullRequestChangeSummaryMetricsResponse> getPullRequestChangeSummaryMetrics(GetPullRequestChangeSummaryMetricsRequest request, AsyncHandler<GetPullRequestChangeSummaryMetricsRequest,GetPullRequestChangeSummaryMetricsResponse> handler)
Description copied from interface:DevopsAsync
Get pull request diff summary metric- Specified by:
getPullRequestChangeSummaryMetrics
in interfaceDevopsAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
getPullRequestComment
public Future<GetPullRequestCommentResponse> getPullRequestComment(GetPullRequestCommentRequest request, AsyncHandler<GetPullRequestCommentRequest,GetPullRequestCommentResponse> handler)
Description copied from interface:DevopsAsync
Get PullRequest comment by identifier- Specified by:
getPullRequestComment
in interfaceDevopsAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
getPullRequestNotificationPreference
public Future<GetPullRequestNotificationPreferenceResponse> getPullRequestNotificationPreference(GetPullRequestNotificationPreferenceRequest request, AsyncHandler<GetPullRequestNotificationPreferenceRequest,GetPullRequestNotificationPreferenceResponse> handler)
Description copied from interface:DevopsAsync
Get the pull request notification preference for the user passed as path param- Specified by:
getPullRequestNotificationPreference
in interfaceDevopsAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
getRef
public Future<GetRefResponse> getRef(GetRefRequest request, AsyncHandler<GetRefRequest,GetRefResponse> handler)
Description copied from interface:DevopsAsync
This API will be deprecated on Wed, 12 June 2024 01:00:00 GMT as it does not get recognized when refName has ‘/’.This will be replaced by "/repositories/{repositoryId}/refs". Retrieves a repository’s reference by its name with preference for branches over tags if the name is ambiguous. This can be disambiguated by using full names like "heads/
" or "tags/ ". - Specified by:
getRef
in interfaceDevopsAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
getRepoFileDiff
public Future<GetRepoFileDiffResponse> getRepoFileDiff(GetRepoFileDiffRequest request, AsyncHandler<GetRepoFileDiffRequest,GetRepoFileDiffResponse> handler)
Description copied from interface:DevopsAsync
Gets the line-by-line difference between file on different commits.- Specified by:
getRepoFileDiff
in interfaceDevopsAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
getRepoFileLines
public Future<GetRepoFileLinesResponse> getRepoFileLines(GetRepoFileLinesRequest request, AsyncHandler<GetRepoFileLinesRequest,GetRepoFileLinesResponse> handler)
Description copied from interface:DevopsAsync
Retrieve lines of a specified file.Supports starting line number and limit.
- Specified by:
getRepoFileLines
in interfaceDevopsAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
getRepository
public Future<GetRepositoryResponse> getRepository(GetRepositoryRequest request, AsyncHandler<GetRepositoryRequest,GetRepositoryResponse> handler)
Description copied from interface:DevopsAsync
Retrieves a repository by identifier.- Specified by:
getRepository
in interfaceDevopsAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
getRepositoryArchiveContent
public Future<GetRepositoryArchiveContentResponse> getRepositoryArchiveContent(GetRepositoryArchiveContentRequest request, AsyncHandler<GetRepositoryArchiveContentRequest,GetRepositoryArchiveContentResponse> handler)
Description copied from interface:DevopsAsync
Returns the archived repository information.- Specified by:
getRepositoryArchiveContent
in interfaceDevopsAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
getRepositoryFileLines
public Future<GetRepositoryFileLinesResponse> getRepositoryFileLines(GetRepositoryFileLinesRequest request, AsyncHandler<GetRepositoryFileLinesRequest,GetRepositoryFileLinesResponse> handler)
Description copied from interface:DevopsAsync
Retrieve lines of a specified file.Supports starting line number and limit. This API will be deprecated on Wed, 29 Mar 2023 01:00:00 GMT as it does not get recognized when filePath has ‘/’. This will be replaced by "/repositories/{repositoryId}/file/lines"
- Specified by:
getRepositoryFileLines
in interfaceDevopsAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
getRepositoryNotificationPreference
public Future<GetRepositoryNotificationPreferenceResponse> getRepositoryNotificationPreference(GetRepositoryNotificationPreferenceRequest request, AsyncHandler<GetRepositoryNotificationPreferenceRequest,GetRepositoryNotificationPreferenceResponse> handler)
Description copied from interface:DevopsAsync
Get the repository notification preference for the user passed as path param- Specified by:
getRepositoryNotificationPreference
in interfaceDevopsAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
getRepositorySettings
public Future<GetRepositorySettingsResponse> getRepositorySettings(GetRepositorySettingsRequest request, AsyncHandler<GetRepositorySettingsRequest,GetRepositorySettingsResponse> handler)
Description copied from interface:DevopsAsync
Retrieves a repository’s settings details.- Specified by:
getRepositorySettings
in interfaceDevopsAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
getTrigger
public Future<GetTriggerResponse> getTrigger(GetTriggerRequest request, AsyncHandler<GetTriggerRequest,GetTriggerResponse> handler)
Description copied from interface:DevopsAsync
Retrieves a trigger by identifier.- Specified by:
getTrigger
in interfaceDevopsAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
getWorkRequest
public Future<GetWorkRequestResponse> getWorkRequest(GetWorkRequestRequest request, AsyncHandler<GetWorkRequestRequest,GetWorkRequestResponse> handler)
Description copied from interface:DevopsAsync
Retrieves the status of the work request with the given ID.- Specified by:
getWorkRequest
in interfaceDevopsAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
likePullRequestComment
public Future<LikePullRequestCommentResponse> likePullRequestComment(LikePullRequestCommentRequest request, AsyncHandler<LikePullRequestCommentRequest,LikePullRequestCommentResponse> handler)
Description copied from interface:DevopsAsync
Like a PullRequest comment- Specified by:
likePullRequestComment
in interfaceDevopsAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
listAuthors
public Future<ListAuthorsResponse> listAuthors(ListAuthorsRequest request, AsyncHandler<ListAuthorsRequest,ListAuthorsResponse> handler)
Description copied from interface:DevopsAsync
Retrieve a list of all the authors.- Specified by:
listAuthors
in interfaceDevopsAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
listBuildPipelineStages
public Future<ListBuildPipelineStagesResponse> listBuildPipelineStages(ListBuildPipelineStagesRequest request, AsyncHandler<ListBuildPipelineStagesRequest,ListBuildPipelineStagesResponse> handler)
Description copied from interface:DevopsAsync
Returns a list of all stages in a compartment or build pipeline.- Specified by:
listBuildPipelineStages
in interfaceDevopsAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
listBuildPipelines
public Future<ListBuildPipelinesResponse> listBuildPipelines(ListBuildPipelinesRequest request, AsyncHandler<ListBuildPipelinesRequest,ListBuildPipelinesResponse> handler)
Description copied from interface:DevopsAsync
Returns a list of build pipelines.- Specified by:
listBuildPipelines
in interfaceDevopsAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
listBuildRunSnapshots
public Future<ListBuildRunSnapshotsResponse> listBuildRunSnapshots(ListBuildRunSnapshotsRequest request, AsyncHandler<ListBuildRunSnapshotsRequest,ListBuildRunSnapshotsResponse> handler)
Description copied from interface:DevopsAsync
Returns a list of build run snapshots for a given commit or the latest commit on a pull request if no commit is provided.- Specified by:
listBuildRunSnapshots
in interfaceDevopsAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
listBuildRuns
public Future<ListBuildRunsResponse> listBuildRuns(ListBuildRunsRequest request, AsyncHandler<ListBuildRunsRequest,ListBuildRunsResponse> handler)
Description copied from interface:DevopsAsync
Returns a list of build run summary.- Specified by:
listBuildRuns
in interfaceDevopsAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
listCommitDiffs
public Future<ListCommitDiffsResponse> listCommitDiffs(ListCommitDiffsRequest request, AsyncHandler<ListCommitDiffsRequest,ListCommitDiffsResponse> handler)
Description copied from interface:DevopsAsync
Compares two revisions and lists the differences.Supports comparison between two references or commits.
- Specified by:
listCommitDiffs
in interfaceDevopsAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
listCommits
public Future<ListCommitsResponse> listCommits(ListCommitsRequest request, AsyncHandler<ListCommitsRequest,ListCommitsResponse> handler)
Description copied from interface:DevopsAsync
Returns a list of commits.- Specified by:
listCommits
in interfaceDevopsAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
listConnections
public Future<ListConnectionsResponse> listConnections(ListConnectionsRequest request, AsyncHandler<ListConnectionsRequest,ListConnectionsResponse> handler)
Description copied from interface:DevopsAsync
Returns a list of connections.- Specified by:
listConnections
in interfaceDevopsAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
listDeployArtifacts
public Future<ListDeployArtifactsResponse> listDeployArtifacts(ListDeployArtifactsRequest request, AsyncHandler<ListDeployArtifactsRequest,ListDeployArtifactsResponse> handler)
Description copied from interface:DevopsAsync
Returns a list of deployment artifacts.- Specified by:
listDeployArtifacts
in interfaceDevopsAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
listDeployEnvironments
public Future<ListDeployEnvironmentsResponse> listDeployEnvironments(ListDeployEnvironmentsRequest request, AsyncHandler<ListDeployEnvironmentsRequest,ListDeployEnvironmentsResponse> handler)
Description copied from interface:DevopsAsync
Returns a list of deployment environments.- Specified by:
listDeployEnvironments
in interfaceDevopsAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
listDeployPipelines
public Future<ListDeployPipelinesResponse> listDeployPipelines(ListDeployPipelinesRequest request, AsyncHandler<ListDeployPipelinesRequest,ListDeployPipelinesResponse> handler)
Description copied from interface:DevopsAsync
Returns a list of deployment pipelines.- Specified by:
listDeployPipelines
in interfaceDevopsAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
listDeployStages
public Future<ListDeployStagesResponse> listDeployStages(ListDeployStagesRequest request, AsyncHandler<ListDeployStagesRequest,ListDeployStagesResponse> handler)
Description copied from interface:DevopsAsync
Retrieves a list of deployment stages.- Specified by:
listDeployStages
in interfaceDevopsAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
listDeployments
public Future<ListDeploymentsResponse> listDeployments(ListDeploymentsRequest request, AsyncHandler<ListDeploymentsRequest,ListDeploymentsResponse> handler)
Description copied from interface:DevopsAsync
Returns a list of deployments.- Specified by:
listDeployments
in interfaceDevopsAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
listForkSyncStatuses
public Future<ListForkSyncStatusesResponse> listForkSyncStatuses(ListForkSyncStatusesRequest request, AsyncHandler<ListForkSyncStatusesRequest,ListForkSyncStatusesResponse> handler)
Description copied from interface:DevopsAsync
LIST operation that returns a collection of fork sync status objects.- Specified by:
listForkSyncStatuses
in interfaceDevopsAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
listMirrorRecords
public Future<ListMirrorRecordsResponse> listMirrorRecords(ListMirrorRecordsRequest request, AsyncHandler<ListMirrorRecordsRequest,ListMirrorRecordsResponse> handler)
Description copied from interface:DevopsAsync
Returns a list of mirror entry in history within 30 days.- Specified by:
listMirrorRecords
in interfaceDevopsAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
listPaths
public Future<ListPathsResponse> listPaths(ListPathsRequest request, AsyncHandler<ListPathsRequest,ListPathsResponse> handler)
Description copied from interface:DevopsAsync
Retrieves a list of files and directories in a repository.- Specified by:
listPaths
in interfaceDevopsAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
listProjectCommitAnalyticsAuthors
public Future<ListProjectCommitAnalyticsAuthorsResponse> listProjectCommitAnalyticsAuthors(ListProjectCommitAnalyticsAuthorsRequest request, AsyncHandler<ListProjectCommitAnalyticsAuthorsRequest,ListProjectCommitAnalyticsAuthorsResponse> handler)
Description copied from interface:DevopsAsync
Retrieve a list of all the Commit Analytics authors.- Specified by:
listProjectCommitAnalyticsAuthors
in interfaceDevopsAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
listProjects
public Future<ListProjectsResponse> listProjects(ListProjectsRequest request, AsyncHandler<ListProjectsRequest,ListProjectsResponse> handler)
Description copied from interface:DevopsAsync
Returns a list of projects.- Specified by:
listProjects
in interfaceDevopsAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
listProtectedBranches
public Future<ListProtectedBranchesResponse> listProtectedBranches(ListProtectedBranchesRequest request, AsyncHandler<ListProtectedBranchesRequest,ListProtectedBranchesResponse> handler)
Description copied from interface:DevopsAsync
Returns a list of Protected Branches.- Specified by:
listProtectedBranches
in interfaceDevopsAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
listPullRequestActivities
public Future<ListPullRequestActivitiesResponse> listPullRequestActivities(ListPullRequestActivitiesRequest request, AsyncHandler<ListPullRequestActivitiesRequest,ListPullRequestActivitiesResponse> handler)
Description copied from interface:DevopsAsync
List actions that have been taken on a pull request- Specified by:
listPullRequestActivities
in interfaceDevopsAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
listPullRequestAttachments
public Future<ListPullRequestAttachmentsResponse> listPullRequestAttachments(ListPullRequestAttachmentsRequest request, AsyncHandler<ListPullRequestAttachmentsRequest,ListPullRequestAttachmentsResponse> handler)
Description copied from interface:DevopsAsync
List PullRequest level attachments by identifier- Specified by:
listPullRequestAttachments
in interfaceDevopsAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
listPullRequestAuthors
public Future<ListPullRequestAuthorsResponse> listPullRequestAuthors(ListPullRequestAuthorsRequest request, AsyncHandler<ListPullRequestAuthorsRequest,ListPullRequestAuthorsResponse> handler)
Description copied from interface:DevopsAsync
Retrieve a list of all the PR authors.- Specified by:
listPullRequestAuthors
in interfaceDevopsAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
listPullRequestComments
public Future<ListPullRequestCommentsResponse> listPullRequestComments(ListPullRequestCommentsRequest request, AsyncHandler<ListPullRequestCommentsRequest,ListPullRequestCommentsResponse> handler)
Description copied from interface:DevopsAsync
List PullRequest level comments by identifier- Specified by:
listPullRequestComments
in interfaceDevopsAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
listPullRequestCommits
public Future<ListPullRequestCommitsResponse> listPullRequestCommits(ListPullRequestCommitsRequest request, AsyncHandler<ListPullRequestCommitsRequest,ListPullRequestCommitsResponse> handler)
Description copied from interface:DevopsAsync
List pull request commits- Specified by:
listPullRequestCommits
in interfaceDevopsAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
listPullRequestFileChanges
public Future<ListPullRequestFileChangesResponse> listPullRequestFileChanges(ListPullRequestFileChangesRequest request, AsyncHandler<ListPullRequestFileChangesRequest,ListPullRequestFileChangesResponse> handler)
Description copied from interface:DevopsAsync
List pull request file changes- Specified by:
listPullRequestFileChanges
in interfaceDevopsAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
listPullRequests
public Future<ListPullRequestsResponse> listPullRequests(ListPullRequestsRequest request, AsyncHandler<ListPullRequestsRequest,ListPullRequestsResponse> handler)
Description copied from interface:DevopsAsync
Returns a list of PullRequests.- Specified by:
listPullRequests
in interfaceDevopsAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
listRefs
public Future<ListRefsResponse> listRefs(ListRefsRequest request, AsyncHandler<ListRefsRequest,ListRefsResponse> handler)
Description copied from interface:DevopsAsync
Returns a list of references.- Specified by:
listRefs
in interfaceDevopsAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
listRepositories
public Future<ListRepositoriesResponse> listRepositories(ListRepositoriesRequest request, AsyncHandler<ListRepositoriesRequest,ListRepositoriesResponse> handler)
Description copied from interface:DevopsAsync
Returns a list of repositories given a compartment ID or a project ID.- Specified by:
listRepositories
in interfaceDevopsAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
listRepositoryCommitAnalyticsAuthors
public Future<ListRepositoryCommitAnalyticsAuthorsResponse> listRepositoryCommitAnalyticsAuthors(ListRepositoryCommitAnalyticsAuthorsRequest request, AsyncHandler<ListRepositoryCommitAnalyticsAuthorsRequest,ListRepositoryCommitAnalyticsAuthorsResponse> handler)
Description copied from interface:DevopsAsync
Retrieve a list of all the Commit Analytics authors.- Specified by:
listRepositoryCommitAnalyticsAuthors
in interfaceDevopsAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
listTriggers
public Future<ListTriggersResponse> listTriggers(ListTriggersRequest request, AsyncHandler<ListTriggersRequest,ListTriggersResponse> handler)
Description copied from interface:DevopsAsync
Returns a list of triggers.- Specified by:
listTriggers
in interfaceDevopsAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
listWorkRequestErrors
public Future<ListWorkRequestErrorsResponse> listWorkRequestErrors(ListWorkRequestErrorsRequest request, AsyncHandler<ListWorkRequestErrorsRequest,ListWorkRequestErrorsResponse> handler)
Description copied from interface:DevopsAsync
Returns a list of errors for a given work request.- Specified by:
listWorkRequestErrors
in interfaceDevopsAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
listWorkRequestLogs
public Future<ListWorkRequestLogsResponse> listWorkRequestLogs(ListWorkRequestLogsRequest request, AsyncHandler<ListWorkRequestLogsRequest,ListWorkRequestLogsResponse> handler)
Description copied from interface:DevopsAsync
Returns a list of logs for a given work request.- Specified by:
listWorkRequestLogs
in interfaceDevopsAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
listWorkRequests
public Future<ListWorkRequestsResponse> listWorkRequests(ListWorkRequestsRequest request, AsyncHandler<ListWorkRequestsRequest,ListWorkRequestsResponse> handler)
Description copied from interface:DevopsAsync
Lists the work requests in a compartment.- Specified by:
listWorkRequests
in interfaceDevopsAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
mergePullRequest
public Future<MergePullRequestResponse> mergePullRequest(MergePullRequestRequest request, AsyncHandler<MergePullRequestRequest,MergePullRequestResponse> handler)
Description copied from interface:DevopsAsync
Merge the PullRequest- Specified by:
mergePullRequest
in interfaceDevopsAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
mirrorRepository
public Future<MirrorRepositoryResponse> mirrorRepository(MirrorRepositoryRequest request, AsyncHandler<MirrorRepositoryRequest,MirrorRepositoryResponse> handler)
Description copied from interface:DevopsAsync
Synchronize a mirrored repository to the latest version from external providers.- Specified by:
mirrorRepository
in interfaceDevopsAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
patchPullRequest
public Future<PatchPullRequestResponse> patchPullRequest(PatchPullRequestRequest request, AsyncHandler<PatchPullRequestRequest,PatchPullRequestResponse> handler)
Description copied from interface:DevopsAsync
Updates the reviewer list of a pull request- Specified by:
patchPullRequest
in interfaceDevopsAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
putRepositoryRef
public Future<PutRepositoryRefResponse> putRepositoryRef(PutRepositoryRefRequest request, AsyncHandler<PutRepositoryRefRequest,PutRepositoryRefResponse> handler)
Description copied from interface:DevopsAsync
Creates a new reference or updates an existing one.This API will be deprecated on Wed, 12 June 2024 01:00:00 GMT as it does not get recognized when refName has ‘/’. This will be replaced by "/repositories/{repositoryId}/actions/createOrUpdateGitRef".
- Specified by:
putRepositoryRef
in interfaceDevopsAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
reopenPullRequest
public Future<ReopenPullRequestResponse> reopenPullRequest(ReopenPullRequestRequest request, AsyncHandler<ReopenPullRequestRequest,ReopenPullRequestResponse> handler)
Description copied from interface:DevopsAsync
Reopen a PullRequest- Specified by:
reopenPullRequest
in interfaceDevopsAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
reviewPullRequest
public Future<ReviewPullRequestResponse> reviewPullRequest(ReviewPullRequestRequest request, AsyncHandler<ReviewPullRequestRequest,ReviewPullRequestResponse> handler)
Description copied from interface:DevopsAsync
Review a PullRequest- Specified by:
reviewPullRequest
in interfaceDevopsAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
scheduleCascadingProjectDeletion
public Future<ScheduleCascadingProjectDeletionResponse> scheduleCascadingProjectDeletion(ScheduleCascadingProjectDeletionRequest request, AsyncHandler<ScheduleCascadingProjectDeletionRequest,ScheduleCascadingProjectDeletionResponse> handler)
Description copied from interface:DevopsAsync
Cascading operation that marks Project and child DevOps resources in a DELETING state for a retention period- Specified by:
scheduleCascadingProjectDeletion
in interfaceDevopsAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
summarizeProjectRepositoryAnalytics
public Future<SummarizeProjectRepositoryAnalyticsResponse> summarizeProjectRepositoryAnalytics(SummarizeProjectRepositoryAnalyticsRequest request, AsyncHandler<SummarizeProjectRepositoryAnalyticsRequest,SummarizeProjectRepositoryAnalyticsResponse> handler)
Description copied from interface:DevopsAsync
Retrieves repository analytics for a given project.- Specified by:
summarizeProjectRepositoryAnalytics
in interfaceDevopsAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
summarizeRepositoryAnalytics
public Future<SummarizeRepositoryAnalyticsResponse> summarizeRepositoryAnalytics(SummarizeRepositoryAnalyticsRequest request, AsyncHandler<SummarizeRepositoryAnalyticsRequest,SummarizeRepositoryAnalyticsResponse> handler)
Description copied from interface:DevopsAsync
Retrieves repository analytics for a given repository.- Specified by:
summarizeRepositoryAnalytics
in interfaceDevopsAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
syncRepository
public Future<SyncRepositoryResponse> syncRepository(SyncRepositoryRequest request, AsyncHandler<SyncRepositoryRequest,SyncRepositoryResponse> handler)
Description copied from interface:DevopsAsync
Synchronize a forked repository to the latest version- Specified by:
syncRepository
in interfaceDevopsAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
unlikePullRequestComment
public Future<UnlikePullRequestCommentResponse> unlikePullRequestComment(UnlikePullRequestCommentRequest request, AsyncHandler<UnlikePullRequestCommentRequest,UnlikePullRequestCommentResponse> handler)
Description copied from interface:DevopsAsync
Unlike a PullRequest comment- Specified by:
unlikePullRequestComment
in interfaceDevopsAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
unsubscribePullRequest
public Future<UnsubscribePullRequestResponse> unsubscribePullRequest(UnsubscribePullRequestRequest request, AsyncHandler<UnsubscribePullRequestRequest,UnsubscribePullRequestResponse> handler)
Description copied from interface:DevopsAsync
unsubscribe the PullRequest- Specified by:
unsubscribePullRequest
in interfaceDevopsAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
updateBuildPipeline
public Future<UpdateBuildPipelineResponse> updateBuildPipeline(UpdateBuildPipelineRequest request, AsyncHandler<UpdateBuildPipelineRequest,UpdateBuildPipelineResponse> handler)
Description copied from interface:DevopsAsync
Updates the build pipeline.- Specified by:
updateBuildPipeline
in interfaceDevopsAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
updateBuildPipelineStage
public Future<UpdateBuildPipelineStageResponse> updateBuildPipelineStage(UpdateBuildPipelineStageRequest request, AsyncHandler<UpdateBuildPipelineStageRequest,UpdateBuildPipelineStageResponse> handler)
Description copied from interface:DevopsAsync
Updates the stage based on the stage ID provided in the request.- Specified by:
updateBuildPipelineStage
in interfaceDevopsAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
updateBuildRun
public Future<UpdateBuildRunResponse> updateBuildRun(UpdateBuildRunRequest request, AsyncHandler<UpdateBuildRunRequest,UpdateBuildRunResponse> handler)
Description copied from interface:DevopsAsync
Updates the build run.- Specified by:
updateBuildRun
in interfaceDevopsAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
updateConnection
public Future<UpdateConnectionResponse> updateConnection(UpdateConnectionRequest request, AsyncHandler<UpdateConnectionRequest,UpdateConnectionResponse> handler)
Description copied from interface:DevopsAsync
Updates the connection.- Specified by:
updateConnection
in interfaceDevopsAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
updateDeployArtifact
public Future<UpdateDeployArtifactResponse> updateDeployArtifact(UpdateDeployArtifactRequest request, AsyncHandler<UpdateDeployArtifactRequest,UpdateDeployArtifactResponse> handler)
Description copied from interface:DevopsAsync
Updates the deployment artifact.- Specified by:
updateDeployArtifact
in interfaceDevopsAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
updateDeployEnvironment
public Future<UpdateDeployEnvironmentResponse> updateDeployEnvironment(UpdateDeployEnvironmentRequest request, AsyncHandler<UpdateDeployEnvironmentRequest,UpdateDeployEnvironmentResponse> handler)
Description copied from interface:DevopsAsync
Updates the deployment environment.- Specified by:
updateDeployEnvironment
in interfaceDevopsAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
updateDeployPipeline
public Future<UpdateDeployPipelineResponse> updateDeployPipeline(UpdateDeployPipelineRequest request, AsyncHandler<UpdateDeployPipelineRequest,UpdateDeployPipelineResponse> handler)
Description copied from interface:DevopsAsync
Updates the deployment pipeline.- Specified by:
updateDeployPipeline
in interfaceDevopsAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
updateDeployStage
public Future<UpdateDeployStageResponse> updateDeployStage(UpdateDeployStageRequest request, AsyncHandler<UpdateDeployStageRequest,UpdateDeployStageResponse> handler)
Description copied from interface:DevopsAsync
Updates the deployment stage.- Specified by:
updateDeployStage
in interfaceDevopsAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
updateDeployment
public Future<UpdateDeploymentResponse> updateDeployment(UpdateDeploymentRequest request, AsyncHandler<UpdateDeploymentRequest,UpdateDeploymentResponse> handler)
Description copied from interface:DevopsAsync
Updates the deployment.- Specified by:
updateDeployment
in interfaceDevopsAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
updateProject
public Future<UpdateProjectResponse> updateProject(UpdateProjectRequest request, AsyncHandler<UpdateProjectRequest,UpdateProjectResponse> handler)
Description copied from interface:DevopsAsync
Updates the project.- Specified by:
updateProject
in interfaceDevopsAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
updateProjectNotificationPreference
public Future<UpdateProjectNotificationPreferenceResponse> updateProjectNotificationPreference(UpdateProjectNotificationPreferenceRequest request, AsyncHandler<UpdateProjectNotificationPreferenceRequest,UpdateProjectNotificationPreferenceResponse> handler)
Description copied from interface:DevopsAsync
Update the project notification preference for the user passed as path param- Specified by:
updateProjectNotificationPreference
in interfaceDevopsAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
updateProjectRepositorySettings
public Future<UpdateProjectRepositorySettingsResponse> updateProjectRepositorySettings(UpdateProjectRepositorySettingsRequest request, AsyncHandler<UpdateProjectRepositorySettingsRequest,UpdateProjectRepositorySettingsResponse> handler)
Description copied from interface:DevopsAsync
Updates the repository settings for a project.- Specified by:
updateProjectRepositorySettings
in interfaceDevopsAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
updatePullRequest
public Future<UpdatePullRequestResponse> updatePullRequest(UpdatePullRequestRequest request, AsyncHandler<UpdatePullRequestRequest,UpdatePullRequestResponse> handler)
Description copied from interface:DevopsAsync
Updates the PullRequest- Specified by:
updatePullRequest
in interfaceDevopsAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
updatePullRequestComment
public Future<UpdatePullRequestCommentResponse> updatePullRequestComment(UpdatePullRequestCommentRequest request, AsyncHandler<UpdatePullRequestCommentRequest,UpdatePullRequestCommentResponse> handler)
Description copied from interface:DevopsAsync
Updates the PullRequest comment- Specified by:
updatePullRequestComment
in interfaceDevopsAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
updatePullRequestNotificationPreference
public Future<UpdatePullRequestNotificationPreferenceResponse> updatePullRequestNotificationPreference(UpdatePullRequestNotificationPreferenceRequest request, AsyncHandler<UpdatePullRequestNotificationPreferenceRequest,UpdatePullRequestNotificationPreferenceResponse> handler)
Description copied from interface:DevopsAsync
Update the pull request notification preference for the user passed as path param- Specified by:
updatePullRequestNotificationPreference
in interfaceDevopsAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
updateRepository
public Future<UpdateRepositoryResponse> updateRepository(UpdateRepositoryRequest request, AsyncHandler<UpdateRepositoryRequest,UpdateRepositoryResponse> handler)
Description copied from interface:DevopsAsync
Updates the repository.- Specified by:
updateRepository
in interfaceDevopsAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
updateRepositoryNotificationPreference
public Future<UpdateRepositoryNotificationPreferenceResponse> updateRepositoryNotificationPreference(UpdateRepositoryNotificationPreferenceRequest request, AsyncHandler<UpdateRepositoryNotificationPreferenceRequest,UpdateRepositoryNotificationPreferenceResponse> handler)
Description copied from interface:DevopsAsync
Update the repository notification preference for the user passed as path param- Specified by:
updateRepositoryNotificationPreference
in interfaceDevopsAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
updateRepositorySettings
public Future<UpdateRepositorySettingsResponse> updateRepositorySettings(UpdateRepositorySettingsRequest request, AsyncHandler<UpdateRepositorySettingsRequest,UpdateRepositorySettingsResponse> handler)
Description copied from interface:DevopsAsync
Updates the settings for a repository.- Specified by:
updateRepositorySettings
in interfaceDevopsAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
updateTrigger
public Future<UpdateTriggerResponse> updateTrigger(UpdateTriggerRequest request, AsyncHandler<UpdateTriggerRequest,UpdateTriggerResponse> handler)
Description copied from interface:DevopsAsync
Updates the trigger.- Specified by:
updateTrigger
in interfaceDevopsAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
validateConnection
public Future<ValidateConnectionResponse> validateConnection(ValidateConnectionRequest request, AsyncHandler<ValidateConnectionRequest,ValidateConnectionResponse> handler)
Description copied from interface:DevopsAsync
Return whether the credentials of the connection are valid.- Specified by:
validateConnection
in interfaceDevopsAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
getDefaultConfigurator
protected ClientConfigurator getDefaultConfigurator()
-
useRealmSpecificEndpointTemplate
public void useRealmSpecificEndpointTemplate(boolean useOfRealmSpecificEndpointTemplateEnabled)
This method should be used to enable or disable the use of realm-specific endpoint template.The default value is null. To enable the use of endpoint template defined for the realm in use, set the flag to true To disable the use of endpoint template defined for the realm in use, set the flag to false
- Parameters:
useOfRealmSpecificEndpointTemplateEnabled
- This flag can be set to true or false to enable or disable the use of realm-specific endpoint template respectively
-
populateServiceParametersInEndpoint
public final void populateServiceParametersInEndpoint(String endpoint, Map<String,Object> requiredParametersMap)
Populate the parameters in the endpoint with its corresponding value and update the base endpoint.The value will be populated iff the parameter in endpoint is a required request path parameter or a required request query parameter. If not, the parameter in the endpoint will be ignored and left blank.
- Parameters:
endpoint
- The endpoint template in userequiredParametersMap
- Map of parameter name as key and value set in request path or query parameter as value
-
updateBaseEndpoint
public final void updateBaseEndpoint(String endpoint)
This method should be used for parameterized endpoint templates only.This does not include {region} and {secondLevelDomain} parameters.
- Parameters:
endpoint
- The updated endpoint to use
-
setEndpoint
public final void setEndpoint(String endpoint)
-
getEndpoint
public final String getEndpoint()
-
refreshClient
public final void refreshClient()
Rebuild the backingHttpClient
.This will call
ClientConfigurator
s again, and can be used to e.g. refresh the SSL certificate.
-
close
public final void close()
- Specified by:
close
in interfaceAutoCloseable
-
getClientCommonLibraryVersion
public String getClientCommonLibraryVersion()
-
getMinimumClientCommonLibraryVersionFromClient
public Optional<String> getMinimumClientCommonLibraryVersionFromClient()
-
clientCall
protected <REQ extends BmcRequest<?>,RESP extends BmcResponse,RESP_BUILDER extends BmcResponse.Builder<RESP>> ClientCall<REQ,RESP,RESP_BUILDER> clientCall(REQ request, Supplier<RESP_BUILDER> responseBuilder)
-
-