Class EnvironmentsGrpc.EnvironmentsFutureStub
- java.lang.Object
-
- io.grpc.stub.AbstractStub<S>
-
- io.grpc.stub.AbstractFutureStub<EnvironmentsGrpc.EnvironmentsFutureStub>
-
- com.google.cloud.orchestration.airflow.service.v1.EnvironmentsGrpc.EnvironmentsFutureStub
-
- Enclosing class:
- EnvironmentsGrpc
public static final class EnvironmentsGrpc.EnvironmentsFutureStub extends io.grpc.stub.AbstractFutureStub<EnvironmentsGrpc.EnvironmentsFutureStub>
A stub to allow clients to do ListenableFuture-style rpc calls to service Environments.Managed Apache Airflow Environments.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected EnvironmentsGrpc.EnvironmentsFutureStub
build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
com.google.common.util.concurrent.ListenableFuture<com.google.longrunning.Operation>
createEnvironment(CreateEnvironmentRequest request)
Create a new environment.com.google.common.util.concurrent.ListenableFuture<com.google.longrunning.Operation>
databaseFailover(DatabaseFailoverRequest request)
Triggers database failover (only for highly resilient environments).com.google.common.util.concurrent.ListenableFuture<com.google.longrunning.Operation>
deleteEnvironment(DeleteEnvironmentRequest request)
Delete an environment.com.google.common.util.concurrent.ListenableFuture<ExecuteAirflowCommandResponse>
executeAirflowCommand(ExecuteAirflowCommandRequest request)
Executes Airflow CLI command.com.google.common.util.concurrent.ListenableFuture<FetchDatabasePropertiesResponse>
fetchDatabaseProperties(FetchDatabasePropertiesRequest request)
Fetches database properties.com.google.common.util.concurrent.ListenableFuture<Environment>
getEnvironment(GetEnvironmentRequest request)
Get an existing environment.com.google.common.util.concurrent.ListenableFuture<ListEnvironmentsResponse>
listEnvironments(ListEnvironmentsRequest request)
List environments.com.google.common.util.concurrent.ListenableFuture<com.google.longrunning.Operation>
loadSnapshot(LoadSnapshotRequest request)
Loads a snapshot of a Cloud Composer environment.com.google.common.util.concurrent.ListenableFuture<PollAirflowCommandResponse>
pollAirflowCommand(PollAirflowCommandRequest request)
Polls Airflow CLI command execution and fetches logs.com.google.common.util.concurrent.ListenableFuture<com.google.longrunning.Operation>
saveSnapshot(SaveSnapshotRequest request)
Creates a snapshots of a Cloud Composer environment.com.google.common.util.concurrent.ListenableFuture<StopAirflowCommandResponse>
stopAirflowCommand(StopAirflowCommandRequest request)
Stops Airflow CLI command execution.com.google.common.util.concurrent.ListenableFuture<com.google.longrunning.Operation>
updateEnvironment(UpdateEnvironmentRequest request)
Update an environment.
-
-
-
Method Detail
-
build
protected EnvironmentsGrpc.EnvironmentsFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
- Specified by:
build
in classio.grpc.stub.AbstractStub<EnvironmentsGrpc.EnvironmentsFutureStub>
-
createEnvironment
public com.google.common.util.concurrent.ListenableFuture<com.google.longrunning.Operation> createEnvironment(CreateEnvironmentRequest request)
Create a new environment.
-
getEnvironment
public com.google.common.util.concurrent.ListenableFuture<Environment> getEnvironment(GetEnvironmentRequest request)
Get an existing environment.
-
listEnvironments
public com.google.common.util.concurrent.ListenableFuture<ListEnvironmentsResponse> listEnvironments(ListEnvironmentsRequest request)
List environments.
-
updateEnvironment
public com.google.common.util.concurrent.ListenableFuture<com.google.longrunning.Operation> updateEnvironment(UpdateEnvironmentRequest request)
Update an environment.
-
deleteEnvironment
public com.google.common.util.concurrent.ListenableFuture<com.google.longrunning.Operation> deleteEnvironment(DeleteEnvironmentRequest request)
Delete an environment.
-
executeAirflowCommand
public com.google.common.util.concurrent.ListenableFuture<ExecuteAirflowCommandResponse> executeAirflowCommand(ExecuteAirflowCommandRequest request)
Executes Airflow CLI command.
-
stopAirflowCommand
public com.google.common.util.concurrent.ListenableFuture<StopAirflowCommandResponse> stopAirflowCommand(StopAirflowCommandRequest request)
Stops Airflow CLI command execution.
-
pollAirflowCommand
public com.google.common.util.concurrent.ListenableFuture<PollAirflowCommandResponse> pollAirflowCommand(PollAirflowCommandRequest request)
Polls Airflow CLI command execution and fetches logs.
-
saveSnapshot
public com.google.common.util.concurrent.ListenableFuture<com.google.longrunning.Operation> saveSnapshot(SaveSnapshotRequest request)
Creates a snapshots of a Cloud Composer environment. As a result of this operation, snapshot of environment's state is stored in a location specified in the SaveSnapshotRequest.
-
loadSnapshot
public com.google.common.util.concurrent.ListenableFuture<com.google.longrunning.Operation> loadSnapshot(LoadSnapshotRequest request)
Loads a snapshot of a Cloud Composer environment. As a result of this operation, a snapshot of environment's specified in LoadSnapshotRequest is loaded into the environment.
-
databaseFailover
public com.google.common.util.concurrent.ListenableFuture<com.google.longrunning.Operation> databaseFailover(DatabaseFailoverRequest request)
Triggers database failover (only for highly resilient environments).
-
fetchDatabaseProperties
public com.google.common.util.concurrent.ListenableFuture<FetchDatabasePropertiesResponse> fetchDatabaseProperties(FetchDatabasePropertiesRequest request)
Fetches database properties.
-
-