Class EnvironmentsGrpc.EnvironmentsBlockingStub (1.29.0)

public static final class EnvironmentsGrpc.EnvironmentsBlockingStub extends AbstractBlockingStub<EnvironmentsGrpc.EnvironmentsBlockingStub>

A stub to allow clients to do synchronous rpc calls to service Environments.

Managed Apache Airflow Environments.

Inheritance

java.lang.Object > io.grpc.stub.AbstractStub > io.grpc.stub.AbstractBlockingStub > EnvironmentsGrpc.EnvironmentsBlockingStub

Methods

build(Channel channel, CallOptions callOptions)

protected EnvironmentsGrpc.EnvironmentsBlockingStub build(Channel channel, CallOptions callOptions)
Parameters
NameDescription
channelio.grpc.Channel
callOptionsio.grpc.CallOptions
Returns
TypeDescription
EnvironmentsGrpc.EnvironmentsBlockingStub
Overrides
io.grpc.stub.AbstractStub.build(io.grpc.Channel,io.grpc.CallOptions)

createEnvironment(CreateEnvironmentRequest request)

public Operation createEnvironment(CreateEnvironmentRequest request)

Create a new environment.

Parameter
NameDescription
requestCreateEnvironmentRequest
Returns
TypeDescription
Operation

databaseFailover(DatabaseFailoverRequest request)

public Operation databaseFailover(DatabaseFailoverRequest request)

Triggers database failover (only for highly resilient environments).

Parameter
NameDescription
requestDatabaseFailoverRequest
Returns
TypeDescription
Operation

deleteEnvironment(DeleteEnvironmentRequest request)

public Operation deleteEnvironment(DeleteEnvironmentRequest request)

Delete an environment.

Parameter
NameDescription
requestDeleteEnvironmentRequest
Returns
TypeDescription
Operation

executeAirflowCommand(ExecuteAirflowCommandRequest request)

public ExecuteAirflowCommandResponse executeAirflowCommand(ExecuteAirflowCommandRequest request)

Executes Airflow CLI command.

Parameter
NameDescription
requestExecuteAirflowCommandRequest
Returns
TypeDescription
ExecuteAirflowCommandResponse

fetchDatabaseProperties(FetchDatabasePropertiesRequest request)

public FetchDatabasePropertiesResponse fetchDatabaseProperties(FetchDatabasePropertiesRequest request)

Fetches database properties.

Parameter
NameDescription
requestFetchDatabasePropertiesRequest
Returns
TypeDescription
FetchDatabasePropertiesResponse

getEnvironment(GetEnvironmentRequest request)

public Environment getEnvironment(GetEnvironmentRequest request)

Get an existing environment.

Parameter
NameDescription
requestGetEnvironmentRequest
Returns
TypeDescription
Environment

listEnvironments(ListEnvironmentsRequest request)

public ListEnvironmentsResponse listEnvironments(ListEnvironmentsRequest request)

List environments.

Parameter
NameDescription
requestListEnvironmentsRequest
Returns
TypeDescription
ListEnvironmentsResponse

loadSnapshot(LoadSnapshotRequest request)

public 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.

Parameter
NameDescription
requestLoadSnapshotRequest
Returns
TypeDescription
Operation

pollAirflowCommand(PollAirflowCommandRequest request)

public PollAirflowCommandResponse pollAirflowCommand(PollAirflowCommandRequest request)

Polls Airflow CLI command execution and fetches logs.

Parameter
NameDescription
requestPollAirflowCommandRequest
Returns
TypeDescription
PollAirflowCommandResponse

saveSnapshot(SaveSnapshotRequest request)

public 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.

Parameter
NameDescription
requestSaveSnapshotRequest
Returns
TypeDescription
Operation

stopAirflowCommand(StopAirflowCommandRequest request)

public StopAirflowCommandResponse stopAirflowCommand(StopAirflowCommandRequest request)

Stops Airflow CLI command execution.

Parameter
NameDescription
requestStopAirflowCommandRequest
Returns
TypeDescription
StopAirflowCommandResponse

updateEnvironment(UpdateEnvironmentRequest request)

public Operation updateEnvironment(UpdateEnvironmentRequest request)

Update an environment.

Parameter
NameDescription
requestUpdateEnvironmentRequest
Returns
TypeDescription
Operation