public final Deployment rollbackDeployment(String name, String revisionId) {
    RollbackDeploymentRequest request =
        RollbackDeploymentRequest.newBuilder().setName(name).setRevisionId(revisionId).build();
    return rollbackDeployment(request);
  }
Rollback the active deployment to the given past approved deployment revision.

<p>Sample code:

<pre>{@code
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (TelcoAutomationClient telcoAutomationClient = TelcoAutomationClient.create()) {
  String name =
      DeploymentName.of("[PROJECT]", "[LOCATION]", "[ORCHESTRATION_CLUSTER]", "[DEPLOYMENT]")
          .toString();
  String revisionId = "revisionId-1507445162";
  Deployment response = telcoAutomationClient.rollbackDeployment(name, revisionId);
}
}</pre>

@param name Required. Name of the deployment.
@param revisionId Required. The revision id of deployment to roll back to.
@throws com.google.api.gax.rpc.ApiException if the remote call fails
java-telcoautomation/google-cloud-telcoautomation/src/main/java/com/google/cloud/telcoautomation/v1alpha1/TelcoAutomationClient.java