@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 an InputStream
, 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
Modifier and Type | Class and Description |
---|---|
static class |
DevopsAsyncClient.Builder
Builder class for this client.
|
Modifier and Type | Field and 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 and Description |
---|
DevopsAsyncClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider,
ClientConfiguration configuration,
ClientConfigurator clientConfigurator,
RequestSignerFactory defaultRequestSignerFactory)
Deprecated.
Use the
builder instead. |
DevopsAsyncClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider,
ClientConfiguration configuration,
ClientConfigurator clientConfigurator,
RequestSignerFactory defaultRequestSignerFactory,
List<ClientConfigurator> additionalClientConfigurators)
Deprecated.
Use the
builder instead. |
DevopsAsyncClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider,
ClientConfiguration configuration,
ClientConfigurator clientConfigurator,
RequestSignerFactory defaultRequestSignerFactory,
List<ClientConfigurator> additionalClientConfigurators,
String endpoint)
Deprecated.
Use the
builder instead. |
DevopsAsyncClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider,
ClientConfiguration configuration,
ClientConfigurator clientConfigurator,
RequestSignerFactory defaultRequestSignerFactory,
Map<SigningStrategy,RequestSignerFactory> signingStrategyRequestSignerFactories,
List<ClientConfigurator> additionalClientConfigurators,
String endpoint)
Deprecated.
Use the
builder instead. |
DevopsAsyncClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider)
Deprecated.
Use the
builder instead. |
DevopsAsyncClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider,
ClientConfiguration configuration)
Deprecated.
Use the
builder instead. |
DevopsAsyncClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider,
ClientConfiguration configuration,
ClientConfigurator clientConfigurator)
Deprecated.
Use the
builder instead. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getEndpoint, refreshClient, setEndpoint, useRealmSpecificEndpointTemplate
close
public static final Service SERVICE
Service instance for Devops.
public final String clientCommonLibraryVersion
@Deprecated public DevopsAsyncClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider)
builder
instead.Create a new client instance.
authenticationDetailsProvider
- The authentication details (see DevopsAsyncClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider)
)@Deprecated public DevopsAsyncClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration)
builder
instead.Create a new client instance.
authenticationDetailsProvider
- The authentication details (see DevopsAsyncClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider)
)configuration
- ClientBuilderBase.configuration
@Deprecated public DevopsAsyncClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator)
builder
instead.Create a new client instance.
authenticationDetailsProvider
- The authentication details (see DevopsAsyncClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider)
)configuration
- ClientBuilderBase.configuration
clientConfigurator
- ClientBuilderBase.clientConfigurator(com.oracle.bmc.http.ClientConfigurator)
@Deprecated public DevopsAsyncClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory)
builder
instead.Create a new client instance.
authenticationDetailsProvider
- The authentication details (see DevopsAsyncClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider)
)configuration
- ClientBuilderBase.configuration
clientConfigurator
- ClientBuilderBase.clientConfigurator(com.oracle.bmc.http.ClientConfigurator)
defaultRequestSignerFactory
- ClientBuilderBase.requestSignerFactory
@Deprecated public DevopsAsyncClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory, List<ClientConfigurator> additionalClientConfigurators)
builder
instead.Create a new client instance.
authenticationDetailsProvider
- The authentication details (see DevopsAsyncClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider)
)configuration
- ClientBuilderBase.configuration
clientConfigurator
- ClientBuilderBase.clientConfigurator(com.oracle.bmc.http.ClientConfigurator)
defaultRequestSignerFactory
- ClientBuilderBase.requestSignerFactory
additionalClientConfigurators
- ClientBuilderBase.additionalClientConfigurators
@Deprecated public DevopsAsyncClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory, List<ClientConfigurator> additionalClientConfigurators, String endpoint)
builder
instead.Create a new client instance.
authenticationDetailsProvider
- The authentication details (see DevopsAsyncClient.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)
@Deprecated public DevopsAsyncClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory, Map<SigningStrategy,RequestSignerFactory> signingStrategyRequestSignerFactories, List<ClientConfigurator> additionalClientConfigurators, String endpoint)
builder
instead.Create a new client instance.
authenticationDetailsProvider
- The authentication details (see DevopsAsyncClient.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
public static DevopsAsyncClient.Builder builder()
Create a builder for this client.
public void setRegion(Region region)
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.
setRegion
in interface DevopsAsync
region
- The region of the service.public void setRegion(String regionId)
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 call setEndpoint
.
setRegion
in interface DevopsAsync
regionId
- The public region ID.public Future<ApproveDeploymentResponse> approveDeployment(ApproveDeploymentRequest request, AsyncHandler<ApproveDeploymentRequest,ApproveDeploymentResponse> handler)
DevopsAsync
Submit stage approval.
approveDeployment
in interface DevopsAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<CancelBuildRunResponse> cancelBuildRun(CancelBuildRunRequest request, AsyncHandler<CancelBuildRunRequest,CancelBuildRunResponse> handler)
DevopsAsync
Cancels the build run based on the build run ID provided in the request.
cancelBuildRun
in interface DevopsAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<CancelDeploymentResponse> cancelDeployment(CancelDeploymentRequest request, AsyncHandler<CancelDeploymentRequest,CancelDeploymentResponse> handler)
DevopsAsync
Cancels a deployment resource by identifier.
cancelDeployment
in interface DevopsAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<CancelScheduledCascadingProjectDeletionResponse> cancelScheduledCascadingProjectDeletion(CancelScheduledCascadingProjectDeletionRequest request, AsyncHandler<CancelScheduledCascadingProjectDeletionRequest,CancelScheduledCascadingProjectDeletionResponse> handler)
DevopsAsync
Cascading operation that restores Project and child resources from a DELETING state to an active state
cancelScheduledCascadingProjectDeletion
in interface DevopsAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<ChangeProjectCompartmentResponse> changeProjectCompartment(ChangeProjectCompartmentRequest request, AsyncHandler<ChangeProjectCompartmentRequest,ChangeProjectCompartmentResponse> handler)
DevopsAsync
Moves a project resource from one compartment OCID to another.
changeProjectCompartment
in interface DevopsAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<CreateBuildPipelineResponse> createBuildPipeline(CreateBuildPipelineRequest request, AsyncHandler<CreateBuildPipelineRequest,CreateBuildPipelineResponse> handler)
DevopsAsync
Creates a new build pipeline.
createBuildPipeline
in interface DevopsAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<CreateBuildPipelineStageResponse> createBuildPipelineStage(CreateBuildPipelineStageRequest request, AsyncHandler<CreateBuildPipelineStageRequest,CreateBuildPipelineStageResponse> handler)
DevopsAsync
Creates a new stage.
createBuildPipelineStage
in interface DevopsAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<CreateBuildRunResponse> createBuildRun(CreateBuildRunRequest request, AsyncHandler<CreateBuildRunRequest,CreateBuildRunResponse> handler)
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.
createBuildRun
in interface DevopsAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<CreateConnectionResponse> createConnection(CreateConnectionRequest request, AsyncHandler<CreateConnectionRequest,CreateConnectionResponse> handler)
DevopsAsync
Creates a new connection.
createConnection
in interface DevopsAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<CreateDeployArtifactResponse> createDeployArtifact(CreateDeployArtifactRequest request, AsyncHandler<CreateDeployArtifactRequest,CreateDeployArtifactResponse> handler)
DevopsAsync
Creates a new deployment artifact.
createDeployArtifact
in interface DevopsAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<CreateDeployEnvironmentResponse> createDeployEnvironment(CreateDeployEnvironmentRequest request, AsyncHandler<CreateDeployEnvironmentRequest,CreateDeployEnvironmentResponse> handler)
DevopsAsync
Creates a new deployment environment.
createDeployEnvironment
in interface DevopsAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<CreateDeployPipelineResponse> createDeployPipeline(CreateDeployPipelineRequest request, AsyncHandler<CreateDeployPipelineRequest,CreateDeployPipelineResponse> handler)
DevopsAsync
Creates a new deployment pipeline.
createDeployPipeline
in interface DevopsAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<CreateDeployStageResponse> createDeployStage(CreateDeployStageRequest request, AsyncHandler<CreateDeployStageRequest,CreateDeployStageResponse> handler)
DevopsAsync
Creates a new deployment stage.
createDeployStage
in interface DevopsAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<CreateDeploymentResponse> createDeployment(CreateDeploymentRequest request, AsyncHandler<CreateDeploymentRequest,CreateDeploymentResponse> handler)
DevopsAsync
Creates a new deployment.
createDeployment
in interface DevopsAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<CreateOrUpdateGitRefResponse> createOrUpdateGitRef(CreateOrUpdateGitRefRequest request, AsyncHandler<CreateOrUpdateGitRefRequest,CreateOrUpdateGitRefResponse> handler)
DevopsAsync
Creates a new reference or updates an existing one.
createOrUpdateGitRef
in interface DevopsAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<CreateOrUpdateProtectedBranchResponse> createOrUpdateProtectedBranch(CreateOrUpdateProtectedBranchRequest request, AsyncHandler<CreateOrUpdateProtectedBranchRequest,CreateOrUpdateProtectedBranchResponse> handler)
DevopsAsync
Creates a restriction on a branch that prevents certain actions on it.
createOrUpdateProtectedBranch
in interface DevopsAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<CreateProjectResponse> createProject(CreateProjectRequest request, AsyncHandler<CreateProjectRequest,CreateProjectResponse> handler)
DevopsAsync
Creates a new project.
createProject
in interface DevopsAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<CreatePullRequestResponse> createPullRequest(CreatePullRequestRequest request, AsyncHandler<CreatePullRequestRequest,CreatePullRequestResponse> handler)
DevopsAsync
Creates a new PullRequest.
createPullRequest
in interface DevopsAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<CreatePullRequestAttachmentResponse> createPullRequestAttachment(CreatePullRequestAttachmentRequest request, AsyncHandler<CreatePullRequestAttachmentRequest,CreatePullRequestAttachmentResponse> handler)
DevopsAsync
Creates PullRequest attachment
createPullRequestAttachment
in interface DevopsAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<CreatePullRequestCommentResponse> createPullRequestComment(CreatePullRequestCommentRequest request, AsyncHandler<CreatePullRequestCommentRequest,CreatePullRequestCommentResponse> handler)
DevopsAsync
Creates a new PullRequest comment.
createPullRequestComment
in interface DevopsAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<CreateRepositoryResponse> createRepository(CreateRepositoryRequest request, AsyncHandler<CreateRepositoryRequest,CreateRepositoryResponse> handler)
DevopsAsync
Creates a new repository.
createRepository
in interface DevopsAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<CreateTriggerResponse> createTrigger(CreateTriggerRequest request, AsyncHandler<CreateTriggerRequest,CreateTriggerResponse> handler)
DevopsAsync
Creates a new trigger.
createTrigger
in interface DevopsAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<DeclinePullRequestResponse> declinePullRequest(DeclinePullRequestRequest request, AsyncHandler<DeclinePullRequestRequest,DeclinePullRequestResponse> handler)
DevopsAsync
Decline a PullRequest
declinePullRequest
in interface DevopsAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<DeleteBuildPipelineResponse> deleteBuildPipeline(DeleteBuildPipelineRequest request, AsyncHandler<DeleteBuildPipelineRequest,DeleteBuildPipelineResponse> handler)
DevopsAsync
Deletes a build pipeline resource by identifier.
deleteBuildPipeline
in interface DevopsAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<DeleteBuildPipelineStageResponse> deleteBuildPipelineStage(DeleteBuildPipelineStageRequest request, AsyncHandler<DeleteBuildPipelineStageRequest,DeleteBuildPipelineStageResponse> handler)
DevopsAsync
Deletes a stage based on the stage ID provided in the request.
deleteBuildPipelineStage
in interface DevopsAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<DeleteConnectionResponse> deleteConnection(DeleteConnectionRequest request, AsyncHandler<DeleteConnectionRequest,DeleteConnectionResponse> handler)
DevopsAsync
Deletes a connection resource by identifier.
deleteConnection
in interface DevopsAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<DeleteDeployArtifactResponse> deleteDeployArtifact(DeleteDeployArtifactRequest request, AsyncHandler<DeleteDeployArtifactRequest,DeleteDeployArtifactResponse> handler)
DevopsAsync
Deletes a deployment artifact resource by identifier.
deleteDeployArtifact
in interface DevopsAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<DeleteDeployEnvironmentResponse> deleteDeployEnvironment(DeleteDeployEnvironmentRequest request, AsyncHandler<DeleteDeployEnvironmentRequest,DeleteDeployEnvironmentResponse> handler)
DevopsAsync
Deletes a deployment environment resource by identifier.
deleteDeployEnvironment
in interface DevopsAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<DeleteDeployPipelineResponse> deleteDeployPipeline(DeleteDeployPipelineRequest request, AsyncHandler<DeleteDeployPipelineRequest,DeleteDeployPipelineResponse> handler)
DevopsAsync
Deletes a deployment pipeline resource by identifier.
deleteDeployPipeline
in interface DevopsAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<DeleteDeployStageResponse> deleteDeployStage(DeleteDeployStageRequest request, AsyncHandler<DeleteDeployStageRequest,DeleteDeployStageResponse> handler)
DevopsAsync
Deletes a deployment stage resource by identifier.
deleteDeployStage
in interface DevopsAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<DeleteGitRefResponse> deleteGitRef(DeleteGitRefRequest request, AsyncHandler<DeleteGitRefRequest,DeleteGitRefResponse> handler)
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/
deleteGitRef
in interface DevopsAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<DeleteProjectResponse> deleteProject(DeleteProjectRequest request, AsyncHandler<DeleteProjectRequest,DeleteProjectResponse> handler)
DevopsAsync
Deletes a project resource by identifier
deleteProject
in interface DevopsAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<DeleteProjectRepositorySettingsResponse> deleteProjectRepositorySettings(DeleteProjectRepositorySettingsRequest request, AsyncHandler<DeleteProjectRepositorySettingsRequest,DeleteProjectRepositorySettingsResponse> handler)
DevopsAsync
Removes the custom repository settings configured for a project.
deleteProjectRepositorySettings
in interface DevopsAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<DeleteProtectedBranchResponse> deleteProtectedBranch(DeleteProtectedBranchRequest request, AsyncHandler<DeleteProtectedBranchRequest,DeleteProtectedBranchResponse> handler)
DevopsAsync
Removes the protection from a branch
deleteProtectedBranch
in interface DevopsAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<DeletePullRequestResponse> deletePullRequest(DeletePullRequestRequest request, AsyncHandler<DeletePullRequestRequest,DeletePullRequestResponse> handler)
DevopsAsync
Deletes a PullRequest resource by identifier
deletePullRequest
in interface DevopsAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<DeletePullRequestAttachmentResponse> deletePullRequestAttachment(DeletePullRequestAttachmentRequest request, AsyncHandler<DeletePullRequestAttachmentRequest,DeletePullRequestAttachmentResponse> handler)
DevopsAsync
Deletes a PullRequest attachment metadata by identifier
deletePullRequestAttachment
in interface DevopsAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<DeletePullRequestCommentResponse> deletePullRequestComment(DeletePullRequestCommentRequest request, AsyncHandler<DeletePullRequestCommentRequest,DeletePullRequestCommentResponse> handler)
DevopsAsync
Deletes a PullRequest comment by identifier
deletePullRequestComment
in interface DevopsAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<DeleteRefResponse> deleteRef(DeleteRefRequest request, AsyncHandler<DeleteRefRequest,DeleteRefResponse> handler)
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/
deleteRef
in interface DevopsAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<DeleteRepositoryResponse> deleteRepository(DeleteRepositoryRequest request, AsyncHandler<DeleteRepositoryRequest,DeleteRepositoryResponse> handler)
DevopsAsync
Deletes a repository resource by identifier.
deleteRepository
in interface DevopsAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<DeleteRepositorySettingsResponse> deleteRepositorySettings(DeleteRepositorySettingsRequest request, AsyncHandler<DeleteRepositorySettingsRequest,DeleteRepositorySettingsResponse> handler)
DevopsAsync
Removes the custom settings configured for a repository
deleteRepositorySettings
in interface DevopsAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<DeleteTriggerResponse> deleteTrigger(DeleteTriggerRequest request, AsyncHandler<DeleteTriggerRequest,DeleteTriggerResponse> handler)
DevopsAsync
Deletes a trigger resource by identifier.
deleteTrigger
in interface DevopsAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<GetBuildPipelineResponse> getBuildPipeline(GetBuildPipelineRequest request, AsyncHandler<GetBuildPipelineRequest,GetBuildPipelineResponse> handler)
DevopsAsync
Retrieves a build pipeline by identifier.
getBuildPipeline
in interface DevopsAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<GetBuildPipelineStageResponse> getBuildPipelineStage(GetBuildPipelineStageRequest request, AsyncHandler<GetBuildPipelineStageRequest,GetBuildPipelineStageResponse> handler)
DevopsAsync
Retrieves a stage based on the stage ID provided in the request.
getBuildPipelineStage
in interface DevopsAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<GetBuildRunResponse> getBuildRun(GetBuildRunRequest request, AsyncHandler<GetBuildRunRequest,GetBuildRunResponse> handler)
DevopsAsync
Returns the details of a build run for a given build run ID.
getBuildRun
in interface DevopsAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<GetCommitResponse> getCommit(GetCommitRequest request, AsyncHandler<GetCommitRequest,GetCommitResponse> handler)
DevopsAsync
Retrieves a repository’s commit by commit ID.
getCommit
in interface DevopsAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<GetCommitDiffResponse> getCommitDiff(GetCommitDiffRequest request, AsyncHandler<GetCommitDiffRequest,GetCommitDiffResponse> handler)
DevopsAsync
Compares two revisions for their differences. Supports comparison between two references or commits.
getCommitDiff
in interface DevopsAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<GetConnectionResponse> getConnection(GetConnectionRequest request, AsyncHandler<GetConnectionRequest,GetConnectionResponse> handler)
DevopsAsync
Retrieves a connection by identifier.
getConnection
in interface DevopsAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<GetDeployArtifactResponse> getDeployArtifact(GetDeployArtifactRequest request, AsyncHandler<GetDeployArtifactRequest,GetDeployArtifactResponse> handler)
DevopsAsync
Retrieves a deployment artifact by identifier.
getDeployArtifact
in interface DevopsAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<GetDeployEnvironmentResponse> getDeployEnvironment(GetDeployEnvironmentRequest request, AsyncHandler<GetDeployEnvironmentRequest,GetDeployEnvironmentResponse> handler)
DevopsAsync
Retrieves a deployment environment by identifier.
getDeployEnvironment
in interface DevopsAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<GetDeployPipelineResponse> getDeployPipeline(GetDeployPipelineRequest request, AsyncHandler<GetDeployPipelineRequest,GetDeployPipelineResponse> handler)
DevopsAsync
Retrieves a deployment pipeline by identifier.
getDeployPipeline
in interface DevopsAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<GetDeployStageResponse> getDeployStage(GetDeployStageRequest request, AsyncHandler<GetDeployStageRequest,GetDeployStageResponse> handler)
DevopsAsync
Retrieves a deployment stage by identifier.
getDeployStage
in interface DevopsAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<GetDeploymentResponse> getDeployment(GetDeploymentRequest request, AsyncHandler<GetDeploymentRequest,GetDeploymentResponse> handler)
DevopsAsync
Retrieves a deployment by identifier.
getDeployment
in interface DevopsAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<GetFileDiffResponse> getFileDiff(GetFileDiffRequest request, AsyncHandler<GetFileDiffRequest,GetFileDiffResponse> handler)
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"
getFileDiff
in interface DevopsAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<GetMirrorRecordResponse> getMirrorRecord(GetMirrorRecordRequest request, AsyncHandler<GetMirrorRecordRequest,GetMirrorRecordResponse> handler)
DevopsAsync
Returns either current mirror record or last successful mirror record for a specific mirror repository.
getMirrorRecord
in interface DevopsAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<GetObjectResponse> getObject(GetObjectRequest request, AsyncHandler<GetObjectRequest,GetObjectResponse> handler)
DevopsAsync
Retrieves blob of specific branch name/commit ID and file path.
getObject
in interface DevopsAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<GetObjectContentResponse> getObjectContent(GetObjectContentRequest request, AsyncHandler<GetObjectContentRequest,GetObjectContentResponse> handler)
DevopsAsync
Retrieve contents of a specified object.
getObjectContent
in interface DevopsAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<GetProjectResponse> getProject(GetProjectRequest request, AsyncHandler<GetProjectRequest,GetProjectResponse> handler)
DevopsAsync
Retrieves a project by identifier.
getProject
in interface DevopsAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<GetProjectNotificationPreferenceResponse> getProjectNotificationPreference(GetProjectNotificationPreferenceRequest request, AsyncHandler<GetProjectNotificationPreferenceRequest,GetProjectNotificationPreferenceResponse> handler)
DevopsAsync
Get the project notification preference for the user passed as path param
getProjectNotificationPreference
in interface DevopsAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<GetProjectRepositorySettingsResponse> getProjectRepositorySettings(GetProjectRepositorySettingsRequest request, AsyncHandler<GetProjectRepositorySettingsRequest,GetProjectRepositorySettingsResponse> handler)
DevopsAsync
Retrieves a project’s repository settings details.
getProjectRepositorySettings
in interface DevopsAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<GetPullRequestResponse> getPullRequest(GetPullRequestRequest request, AsyncHandler<GetPullRequestRequest,GetPullRequestResponse> handler)
DevopsAsync
Gets a PullRequest by identifier
getPullRequest
in interface DevopsAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<GetPullRequestAttachmentResponse> getPullRequestAttachment(GetPullRequestAttachmentRequest request, AsyncHandler<GetPullRequestAttachmentRequest,GetPullRequestAttachmentResponse> handler)
DevopsAsync
Get PullRequest attachment metadata by identifier
getPullRequestAttachment
in interface DevopsAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<GetPullRequestAttachmentContentResponse> getPullRequestAttachmentContent(GetPullRequestAttachmentContentRequest request, AsyncHandler<GetPullRequestAttachmentContentRequest,GetPullRequestAttachmentContentResponse> handler)
DevopsAsync
Gets the content of the attachment.
getPullRequestAttachmentContent
in interface DevopsAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<GetPullRequestChangeSummaryMetricsResponse> getPullRequestChangeSummaryMetrics(GetPullRequestChangeSummaryMetricsRequest request, AsyncHandler<GetPullRequestChangeSummaryMetricsRequest,GetPullRequestChangeSummaryMetricsResponse> handler)
DevopsAsync
Get pull request diff summary metric
getPullRequestChangeSummaryMetrics
in interface DevopsAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<GetPullRequestCommentResponse> getPullRequestComment(GetPullRequestCommentRequest request, AsyncHandler<GetPullRequestCommentRequest,GetPullRequestCommentResponse> handler)
DevopsAsync
Get PullRequest comment by identifier
getPullRequestComment
in interface DevopsAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<GetPullRequestNotificationPreferenceResponse> getPullRequestNotificationPreference(GetPullRequestNotificationPreferenceRequest request, AsyncHandler<GetPullRequestNotificationPreferenceRequest,GetPullRequestNotificationPreferenceResponse> handler)
DevopsAsync
Get the pull request notification preference for the user passed as path param
getPullRequestNotificationPreference
in interface DevopsAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<GetRefResponse> getRef(GetRefRequest request, AsyncHandler<GetRefRequest,GetRefResponse> handler)
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/
getRef
in interface DevopsAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<GetRepoFileDiffResponse> getRepoFileDiff(GetRepoFileDiffRequest request, AsyncHandler<GetRepoFileDiffRequest,GetRepoFileDiffResponse> handler)
DevopsAsync
Gets the line-by-line difference between file on different commits.
getRepoFileDiff
in interface DevopsAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<GetRepoFileLinesResponse> getRepoFileLines(GetRepoFileLinesRequest request, AsyncHandler<GetRepoFileLinesRequest,GetRepoFileLinesResponse> handler)
DevopsAsync
Retrieve lines of a specified file. Supports starting line number and limit.
getRepoFileLines
in interface DevopsAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<GetRepositoryResponse> getRepository(GetRepositoryRequest request, AsyncHandler<GetRepositoryRequest,GetRepositoryResponse> handler)
DevopsAsync
Retrieves a repository by identifier.
getRepository
in interface DevopsAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<GetRepositoryArchiveContentResponse> getRepositoryArchiveContent(GetRepositoryArchiveContentRequest request, AsyncHandler<GetRepositoryArchiveContentRequest,GetRepositoryArchiveContentResponse> handler)
DevopsAsync
Returns the archived repository information.
getRepositoryArchiveContent
in interface DevopsAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<GetRepositoryFileLinesResponse> getRepositoryFileLines(GetRepositoryFileLinesRequest request, AsyncHandler<GetRepositoryFileLinesRequest,GetRepositoryFileLinesResponse> handler)
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"
getRepositoryFileLines
in interface DevopsAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<GetRepositoryNotificationPreferenceResponse> getRepositoryNotificationPreference(GetRepositoryNotificationPreferenceRequest request, AsyncHandler<GetRepositoryNotificationPreferenceRequest,GetRepositoryNotificationPreferenceResponse> handler)
DevopsAsync
Get the repository notification preference for the user passed as path param
getRepositoryNotificationPreference
in interface DevopsAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<GetRepositorySettingsResponse> getRepositorySettings(GetRepositorySettingsRequest request, AsyncHandler<GetRepositorySettingsRequest,GetRepositorySettingsResponse> handler)
DevopsAsync
Retrieves a repository’s settings details.
getRepositorySettings
in interface DevopsAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<GetTriggerResponse> getTrigger(GetTriggerRequest request, AsyncHandler<GetTriggerRequest,GetTriggerResponse> handler)
DevopsAsync
Retrieves a trigger by identifier.
getTrigger
in interface DevopsAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<GetWorkRequestResponse> getWorkRequest(GetWorkRequestRequest request, AsyncHandler<GetWorkRequestRequest,GetWorkRequestResponse> handler)
DevopsAsync
Retrieves the status of the work request with the given ID.
getWorkRequest
in interface DevopsAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<LikePullRequestCommentResponse> likePullRequestComment(LikePullRequestCommentRequest request, AsyncHandler<LikePullRequestCommentRequest,LikePullRequestCommentResponse> handler)
DevopsAsync
Like a PullRequest comment
likePullRequestComment
in interface DevopsAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<ListAuthorsResponse> listAuthors(ListAuthorsRequest request, AsyncHandler<ListAuthorsRequest,ListAuthorsResponse> handler)
DevopsAsync
Retrieve a list of all the authors.
listAuthors
in interface DevopsAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<ListBuildPipelineStagesResponse> listBuildPipelineStages(ListBuildPipelineStagesRequest request, AsyncHandler<ListBuildPipelineStagesRequest,ListBuildPipelineStagesResponse> handler)
DevopsAsync
Returns a list of all stages in a compartment or build pipeline.
listBuildPipelineStages
in interface DevopsAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<ListBuildPipelinesResponse> listBuildPipelines(ListBuildPipelinesRequest request, AsyncHandler<ListBuildPipelinesRequest,ListBuildPipelinesResponse> handler)
DevopsAsync
Returns a list of build pipelines.
listBuildPipelines
in interface DevopsAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<ListBuildRunSnapshotsResponse> listBuildRunSnapshots(ListBuildRunSnapshotsRequest request, AsyncHandler<ListBuildRunSnapshotsRequest,ListBuildRunSnapshotsResponse> handler)
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.
listBuildRunSnapshots
in interface DevopsAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<ListBuildRunsResponse> listBuildRuns(ListBuildRunsRequest request, AsyncHandler<ListBuildRunsRequest,ListBuildRunsResponse> handler)
DevopsAsync
Returns a list of build run summary.
listBuildRuns
in interface DevopsAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<ListCommitDiffsResponse> listCommitDiffs(ListCommitDiffsRequest request, AsyncHandler<ListCommitDiffsRequest,ListCommitDiffsResponse> handler)
DevopsAsync
Compares two revisions and lists the differences. Supports comparison between two references or commits.
listCommitDiffs
in interface DevopsAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<ListCommitsResponse> listCommits(ListCommitsRequest request, AsyncHandler<ListCommitsRequest,ListCommitsResponse> handler)
DevopsAsync
Returns a list of commits.
listCommits
in interface DevopsAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<ListConnectionsResponse> listConnections(ListConnectionsRequest request, AsyncHandler<ListConnectionsRequest,ListConnectionsResponse> handler)
DevopsAsync
Returns a list of connections.
listConnections
in interface DevopsAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<ListDeployArtifactsResponse> listDeployArtifacts(ListDeployArtifactsRequest request, AsyncHandler<ListDeployArtifactsRequest,ListDeployArtifactsResponse> handler)
DevopsAsync
Returns a list of deployment artifacts.
listDeployArtifacts
in interface DevopsAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<ListDeployEnvironmentsResponse> listDeployEnvironments(ListDeployEnvironmentsRequest request, AsyncHandler<ListDeployEnvironmentsRequest,ListDeployEnvironmentsResponse> handler)
DevopsAsync
Returns a list of deployment environments.
listDeployEnvironments
in interface DevopsAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<ListDeployPipelinesResponse> listDeployPipelines(ListDeployPipelinesRequest request, AsyncHandler<ListDeployPipelinesRequest,ListDeployPipelinesResponse> handler)
DevopsAsync
Returns a list of deployment pipelines.
listDeployPipelines
in interface DevopsAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<ListDeployStagesResponse> listDeployStages(ListDeployStagesRequest request, AsyncHandler<ListDeployStagesRequest,ListDeployStagesResponse> handler)
DevopsAsync
Retrieves a list of deployment stages.
listDeployStages
in interface DevopsAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<ListDeploymentsResponse> listDeployments(ListDeploymentsRequest request, AsyncHandler<ListDeploymentsRequest,ListDeploymentsResponse> handler)
DevopsAsync
Returns a list of deployments.
listDeployments
in interface DevopsAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<ListForkSyncStatusesResponse> listForkSyncStatuses(ListForkSyncStatusesRequest request, AsyncHandler<ListForkSyncStatusesRequest,ListForkSyncStatusesResponse> handler)
DevopsAsync
LIST operation that returns a collection of fork sync status objects.
listForkSyncStatuses
in interface DevopsAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<ListMirrorRecordsResponse> listMirrorRecords(ListMirrorRecordsRequest request, AsyncHandler<ListMirrorRecordsRequest,ListMirrorRecordsResponse> handler)
DevopsAsync
Returns a list of mirror entry in history within 30 days.
listMirrorRecords
in interface DevopsAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<ListPathsResponse> listPaths(ListPathsRequest request, AsyncHandler<ListPathsRequest,ListPathsResponse> handler)
DevopsAsync
Retrieves a list of files and directories in a repository.
listPaths
in interface DevopsAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<ListProjectCommitAnalyticsAuthorsResponse> listProjectCommitAnalyticsAuthors(ListProjectCommitAnalyticsAuthorsRequest request, AsyncHandler<ListProjectCommitAnalyticsAuthorsRequest,ListProjectCommitAnalyticsAuthorsResponse> handler)
DevopsAsync
Retrieve a list of all the Commit Analytics authors.
listProjectCommitAnalyticsAuthors
in interface DevopsAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<ListProjectsResponse> listProjects(ListProjectsRequest request, AsyncHandler<ListProjectsRequest,ListProjectsResponse> handler)
DevopsAsync
Returns a list of projects.
listProjects
in interface DevopsAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<ListProtectedBranchesResponse> listProtectedBranches(ListProtectedBranchesRequest request, AsyncHandler<ListProtectedBranchesRequest,ListProtectedBranchesResponse> handler)
DevopsAsync
Returns a list of Protected Branches.
listProtectedBranches
in interface DevopsAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<ListPullRequestActivitiesResponse> listPullRequestActivities(ListPullRequestActivitiesRequest request, AsyncHandler<ListPullRequestActivitiesRequest,ListPullRequestActivitiesResponse> handler)
DevopsAsync
List actions that have been taken on a pull request
listPullRequestActivities
in interface DevopsAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<ListPullRequestAttachmentsResponse> listPullRequestAttachments(ListPullRequestAttachmentsRequest request, AsyncHandler<ListPullRequestAttachmentsRequest,ListPullRequestAttachmentsResponse> handler)
DevopsAsync
List PullRequest level attachments by identifier
listPullRequestAttachments
in interface DevopsAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<ListPullRequestAuthorsResponse> listPullRequestAuthors(ListPullRequestAuthorsRequest request, AsyncHandler<ListPullRequestAuthorsRequest,ListPullRequestAuthorsResponse> handler)
DevopsAsync
Retrieve a list of all the PR authors.
listPullRequestAuthors
in interface DevopsAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<ListPullRequestCommentsResponse> listPullRequestComments(ListPullRequestCommentsRequest request, AsyncHandler<ListPullRequestCommentsRequest,ListPullRequestCommentsResponse> handler)
DevopsAsync
List PullRequest level comments by identifier
listPullRequestComments
in interface DevopsAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<ListPullRequestCommitsResponse> listPullRequestCommits(ListPullRequestCommitsRequest request, AsyncHandler<ListPullRequestCommitsRequest,ListPullRequestCommitsResponse> handler)
DevopsAsync
List pull request commits
listPullRequestCommits
in interface DevopsAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<ListPullRequestFileChangesResponse> listPullRequestFileChanges(ListPullRequestFileChangesRequest request, AsyncHandler<ListPullRequestFileChangesRequest,ListPullRequestFileChangesResponse> handler)
DevopsAsync
List pull request file changes
listPullRequestFileChanges
in interface DevopsAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<ListPullRequestsResponse> listPullRequests(ListPullRequestsRequest request, AsyncHandler<ListPullRequestsRequest,ListPullRequestsResponse> handler)
DevopsAsync
Returns a list of PullRequests.
listPullRequests
in interface DevopsAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<ListRefsResponse> listRefs(ListRefsRequest request, AsyncHandler<ListRefsRequest,ListRefsResponse> handler)
DevopsAsync
Returns a list of references.
listRefs
in interface DevopsAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<ListRepositoriesResponse> listRepositories(ListRepositoriesRequest request, AsyncHandler<ListRepositoriesRequest,ListRepositoriesResponse> handler)
DevopsAsync
Returns a list of repositories given a compartment ID or a project ID.
listRepositories
in interface DevopsAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<ListRepositoryCommitAnalyticsAuthorsResponse> listRepositoryCommitAnalyticsAuthors(ListRepositoryCommitAnalyticsAuthorsRequest request, AsyncHandler<ListRepositoryCommitAnalyticsAuthorsRequest,ListRepositoryCommitAnalyticsAuthorsResponse> handler)
DevopsAsync
Retrieve a list of all the Commit Analytics authors.
listRepositoryCommitAnalyticsAuthors
in interface DevopsAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<ListTriggersResponse> listTriggers(ListTriggersRequest request, AsyncHandler<ListTriggersRequest,ListTriggersResponse> handler)
DevopsAsync
Returns a list of triggers.
listTriggers
in interface DevopsAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<ListWorkRequestErrorsResponse> listWorkRequestErrors(ListWorkRequestErrorsRequest request, AsyncHandler<ListWorkRequestErrorsRequest,ListWorkRequestErrorsResponse> handler)
DevopsAsync
Returns a list of errors for a given work request.
listWorkRequestErrors
in interface DevopsAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<ListWorkRequestLogsResponse> listWorkRequestLogs(ListWorkRequestLogsRequest request, AsyncHandler<ListWorkRequestLogsRequest,ListWorkRequestLogsResponse> handler)
DevopsAsync
Returns a list of logs for a given work request.
listWorkRequestLogs
in interface DevopsAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<ListWorkRequestsResponse> listWorkRequests(ListWorkRequestsRequest request, AsyncHandler<ListWorkRequestsRequest,ListWorkRequestsResponse> handler)
DevopsAsync
Lists the work requests in a compartment.
listWorkRequests
in interface DevopsAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<MergePullRequestResponse> mergePullRequest(MergePullRequestRequest request, AsyncHandler<MergePullRequestRequest,MergePullRequestResponse> handler)
DevopsAsync
Merge the PullRequest
mergePullRequest
in interface DevopsAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<MirrorRepositoryResponse> mirrorRepository(MirrorRepositoryRequest request, AsyncHandler<MirrorRepositoryRequest,MirrorRepositoryResponse> handler)
DevopsAsync
Synchronize a mirrored repository to the latest version from external providers.
mirrorRepository
in interface DevopsAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<PatchPullRequestResponse> patchPullRequest(PatchPullRequestRequest request, AsyncHandler<PatchPullRequestRequest,PatchPullRequestResponse> handler)
DevopsAsync
Updates the reviewer list of a pull request
patchPullRequest
in interface DevopsAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<PutRepositoryRefResponse> putRepositoryRef(PutRepositoryRefRequest request, AsyncHandler<PutRepositoryRefRequest,PutRepositoryRefResponse> handler)
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".
putRepositoryRef
in interface DevopsAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<ReopenPullRequestResponse> reopenPullRequest(ReopenPullRequestRequest request, AsyncHandler<ReopenPullRequestRequest,ReopenPullRequestResponse> handler)
DevopsAsync
Reopen a PullRequest
reopenPullRequest
in interface DevopsAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<ReviewPullRequestResponse> reviewPullRequest(ReviewPullRequestRequest request, AsyncHandler<ReviewPullRequestRequest,ReviewPullRequestResponse> handler)
DevopsAsync
Review a PullRequest
reviewPullRequest
in interface DevopsAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<ScheduleCascadingProjectDeletionResponse> scheduleCascadingProjectDeletion(ScheduleCascadingProjectDeletionRequest request, AsyncHandler<ScheduleCascadingProjectDeletionRequest,ScheduleCascadingProjectDeletionResponse> handler)
DevopsAsync
Cascading operation that marks Project and child DevOps resources in a DELETING state for a retention period
scheduleCascadingProjectDeletion
in interface DevopsAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<SummarizeProjectRepositoryAnalyticsResponse> summarizeProjectRepositoryAnalytics(SummarizeProjectRepositoryAnalyticsRequest request, AsyncHandler<SummarizeProjectRepositoryAnalyticsRequest,SummarizeProjectRepositoryAnalyticsResponse> handler)
DevopsAsync
Retrieves repository analytics for a given project.
summarizeProjectRepositoryAnalytics
in interface DevopsAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<SummarizeRepositoryAnalyticsResponse> summarizeRepositoryAnalytics(SummarizeRepositoryAnalyticsRequest request, AsyncHandler<SummarizeRepositoryAnalyticsRequest,SummarizeRepositoryAnalyticsResponse> handler)
DevopsAsync
Retrieves repository analytics for a given repository.
summarizeRepositoryAnalytics
in interface DevopsAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<SyncRepositoryResponse> syncRepository(SyncRepositoryRequest request, AsyncHandler<SyncRepositoryRequest,SyncRepositoryResponse> handler)
DevopsAsync
Synchronize a forked repository to the latest version
syncRepository
in interface DevopsAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<UnlikePullRequestCommentResponse> unlikePullRequestComment(UnlikePullRequestCommentRequest request, AsyncHandler<UnlikePullRequestCommentRequest,UnlikePullRequestCommentResponse> handler)
DevopsAsync
Unlike a PullRequest comment
unlikePullRequestComment
in interface DevopsAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<UnsubscribePullRequestResponse> unsubscribePullRequest(UnsubscribePullRequestRequest request, AsyncHandler<UnsubscribePullRequestRequest,UnsubscribePullRequestResponse> handler)
DevopsAsync
unsubscribe the PullRequest
unsubscribePullRequest
in interface DevopsAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<UpdateBuildPipelineResponse> updateBuildPipeline(UpdateBuildPipelineRequest request, AsyncHandler<UpdateBuildPipelineRequest,UpdateBuildPipelineResponse> handler)
DevopsAsync
Updates the build pipeline.
updateBuildPipeline
in interface DevopsAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<UpdateBuildPipelineStageResponse> updateBuildPipelineStage(UpdateBuildPipelineStageRequest request, AsyncHandler<UpdateBuildPipelineStageRequest,UpdateBuildPipelineStageResponse> handler)
DevopsAsync
Updates the stage based on the stage ID provided in the request.
updateBuildPipelineStage
in interface DevopsAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<UpdateBuildRunResponse> updateBuildRun(UpdateBuildRunRequest request, AsyncHandler<UpdateBuildRunRequest,UpdateBuildRunResponse> handler)
DevopsAsync
Updates the build run.
updateBuildRun
in interface DevopsAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<UpdateConnectionResponse> updateConnection(UpdateConnectionRequest request, AsyncHandler<UpdateConnectionRequest,UpdateConnectionResponse> handler)
DevopsAsync
Updates the connection.
updateConnection
in interface DevopsAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<UpdateDeployArtifactResponse> updateDeployArtifact(UpdateDeployArtifactRequest request, AsyncHandler<UpdateDeployArtifactRequest,UpdateDeployArtifactResponse> handler)
DevopsAsync
Updates the deployment artifact.
updateDeployArtifact
in interface DevopsAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<UpdateDeployEnvironmentResponse> updateDeployEnvironment(UpdateDeployEnvironmentRequest request, AsyncHandler<UpdateDeployEnvironmentRequest,UpdateDeployEnvironmentResponse> handler)
DevopsAsync
Updates the deployment environment.
updateDeployEnvironment
in interface DevopsAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<UpdateDeployPipelineResponse> updateDeployPipeline(UpdateDeployPipelineRequest request, AsyncHandler<UpdateDeployPipelineRequest,UpdateDeployPipelineResponse> handler)
DevopsAsync
Updates the deployment pipeline.
updateDeployPipeline
in interface DevopsAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<UpdateDeployStageResponse> updateDeployStage(UpdateDeployStageRequest request, AsyncHandler<UpdateDeployStageRequest,UpdateDeployStageResponse> handler)
DevopsAsync
Updates the deployment stage.
updateDeployStage
in interface DevopsAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<UpdateDeploymentResponse> updateDeployment(UpdateDeploymentRequest request, AsyncHandler<UpdateDeploymentRequest,UpdateDeploymentResponse> handler)
DevopsAsync
Updates the deployment.
updateDeployment
in interface DevopsAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<UpdateProjectResponse> updateProject(UpdateProjectRequest request, AsyncHandler<UpdateProjectRequest,UpdateProjectResponse> handler)
DevopsAsync
Updates the project.
updateProject
in interface DevopsAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<UpdateProjectNotificationPreferenceResponse> updateProjectNotificationPreference(UpdateProjectNotificationPreferenceRequest request, AsyncHandler<UpdateProjectNotificationPreferenceRequest,UpdateProjectNotificationPreferenceResponse> handler)
DevopsAsync
Update the project notification preference for the user passed as path param
updateProjectNotificationPreference
in interface DevopsAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<UpdateProjectRepositorySettingsResponse> updateProjectRepositorySettings(UpdateProjectRepositorySettingsRequest request, AsyncHandler<UpdateProjectRepositorySettingsRequest,UpdateProjectRepositorySettingsResponse> handler)
DevopsAsync
Updates the repository settings for a project.
updateProjectRepositorySettings
in interface DevopsAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<UpdatePullRequestResponse> updatePullRequest(UpdatePullRequestRequest request, AsyncHandler<UpdatePullRequestRequest,UpdatePullRequestResponse> handler)
DevopsAsync
Updates the PullRequest
updatePullRequest
in interface DevopsAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<UpdatePullRequestCommentResponse> updatePullRequestComment(UpdatePullRequestCommentRequest request, AsyncHandler<UpdatePullRequestCommentRequest,UpdatePullRequestCommentResponse> handler)
DevopsAsync
Updates the PullRequest comment
updatePullRequestComment
in interface DevopsAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<UpdatePullRequestNotificationPreferenceResponse> updatePullRequestNotificationPreference(UpdatePullRequestNotificationPreferenceRequest request, AsyncHandler<UpdatePullRequestNotificationPreferenceRequest,UpdatePullRequestNotificationPreferenceResponse> handler)
DevopsAsync
Update the pull request notification preference for the user passed as path param
updatePullRequestNotificationPreference
in interface DevopsAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<UpdateRepositoryResponse> updateRepository(UpdateRepositoryRequest request, AsyncHandler<UpdateRepositoryRequest,UpdateRepositoryResponse> handler)
DevopsAsync
Updates the repository.
updateRepository
in interface DevopsAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<UpdateRepositoryNotificationPreferenceResponse> updateRepositoryNotificationPreference(UpdateRepositoryNotificationPreferenceRequest request, AsyncHandler<UpdateRepositoryNotificationPreferenceRequest,UpdateRepositoryNotificationPreferenceResponse> handler)
DevopsAsync
Update the repository notification preference for the user passed as path param
updateRepositoryNotificationPreference
in interface DevopsAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<UpdateRepositorySettingsResponse> updateRepositorySettings(UpdateRepositorySettingsRequest request, AsyncHandler<UpdateRepositorySettingsRequest,UpdateRepositorySettingsResponse> handler)
DevopsAsync
Updates the settings for a repository.
updateRepositorySettings
in interface DevopsAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<UpdateTriggerResponse> updateTrigger(UpdateTriggerRequest request, AsyncHandler<UpdateTriggerRequest,UpdateTriggerResponse> handler)
DevopsAsync
Updates the trigger.
updateTrigger
in interface DevopsAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<ValidateConnectionResponse> validateConnection(ValidateConnectionRequest request, AsyncHandler<ValidateConnectionRequest,ValidateConnectionResponse> handler)
DevopsAsync
Return whether the credentials of the connection are valid.
validateConnection
in interface DevopsAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.protected ClientConfigurator getDefaultConfigurator()
public void useRealmSpecificEndpointTemplate(boolean useOfRealmSpecificEndpointTemplateEnabled)
useOfRealmSpecificEndpointTemplateEnabled
- This flag can be set to true or false to
enable or disable the use of realm-specific endpoint template respectivelypublic final void populateServiceParametersInEndpoint(String endpoint, Map<String,Object> requiredParametersMap)
endpoint
- The endpoint template in userequiredParametersMap
- Map of parameter name as key and value set in request path or
query parameter as valuepublic final void updateBaseEndpoint(String endpoint)
endpoint
- The updated endpoint to usepublic final void setEndpoint(String endpoint)
public final String getEndpoint()
public final void refreshClient()
HttpClient
. This will call ClientConfigurator
s again, and
can be used to e.g. refresh the SSL certificate.public final void close()
close
in interface AutoCloseable
public String getClientCommonLibraryVersion()
public Optional<String> getMinimumClientCommonLibraryVersionFromClient()
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)
Copyright © 2016–2024. All rights reserved.