[BindServiceMethod(typeof(Environments), "BindService")]
public abstract class Environments.EnvironmentsBaseReference documentation and code samples for the Cloud Composer v1 API class Environments.EnvironmentsBase.
Base class for server-side implementations of Environments
Namespace
Google.Cloud.Orchestration.Airflow.Service.V1Assembly
Google.Cloud.Orchestration.Airflow.Service.V1.dll
Methods
CreateEnvironment(CreateEnvironmentRequest, ServerCallContext)
public virtual Task<Operation> CreateEnvironment(CreateEnvironmentRequest request, ServerCallContext context)Create a new environment.
| Parameters | |
|---|---|
| Name | Description |
request |
CreateEnvironmentRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
TaskOperation |
The response to send back to the client (wrapped by a task). |
DatabaseFailover(DatabaseFailoverRequest, ServerCallContext)
public virtual Task<Operation> DatabaseFailover(DatabaseFailoverRequest request, ServerCallContext context)Triggers database failover (only for highly resilient environments).
| Parameters | |
|---|---|
| Name | Description |
request |
DatabaseFailoverRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
TaskOperation |
The response to send back to the client (wrapped by a task). |
DeleteEnvironment(DeleteEnvironmentRequest, ServerCallContext)
public virtual Task<Operation> DeleteEnvironment(DeleteEnvironmentRequest request, ServerCallContext context)Delete an environment.
| Parameters | |
|---|---|
| Name | Description |
request |
DeleteEnvironmentRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
TaskOperation |
The response to send back to the client (wrapped by a task). |
ExecuteAirflowCommand(ExecuteAirflowCommandRequest, ServerCallContext)
public virtual Task<ExecuteAirflowCommandResponse> ExecuteAirflowCommand(ExecuteAirflowCommandRequest request, ServerCallContext context)Executes Airflow CLI command.
| Parameters | |
|---|---|
| Name | Description |
request |
ExecuteAirflowCommandRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
TaskExecuteAirflowCommandResponse |
The response to send back to the client (wrapped by a task). |
FetchDatabaseProperties(FetchDatabasePropertiesRequest, ServerCallContext)
public virtual Task<FetchDatabasePropertiesResponse> FetchDatabaseProperties(FetchDatabasePropertiesRequest request, ServerCallContext context)Fetches database properties.
| Parameters | |
|---|---|
| Name | Description |
request |
FetchDatabasePropertiesRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
TaskFetchDatabasePropertiesResponse |
The response to send back to the client (wrapped by a task). |
GetEnvironment(GetEnvironmentRequest, ServerCallContext)
public virtual Task<Environment> GetEnvironment(GetEnvironmentRequest request, ServerCallContext context)Get an existing environment.
| Parameters | |
|---|---|
| Name | Description |
request |
GetEnvironmentRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
TaskEnvironment |
The response to send back to the client (wrapped by a task). |
ListEnvironments(ListEnvironmentsRequest, ServerCallContext)
public virtual Task<ListEnvironmentsResponse> ListEnvironments(ListEnvironmentsRequest request, ServerCallContext context)List environments.
| Parameters | |
|---|---|
| Name | Description |
request |
ListEnvironmentsRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
TaskListEnvironmentsResponse |
The response to send back to the client (wrapped by a task). |
LoadSnapshot(LoadSnapshotRequest, ServerCallContext)
public virtual Task<Operation> LoadSnapshot(LoadSnapshotRequest request, ServerCallContext context)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.
| Parameters | |
|---|---|
| Name | Description |
request |
LoadSnapshotRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
TaskOperation |
The response to send back to the client (wrapped by a task). |
PollAirflowCommand(PollAirflowCommandRequest, ServerCallContext)
public virtual Task<PollAirflowCommandResponse> PollAirflowCommand(PollAirflowCommandRequest request, ServerCallContext context)Polls Airflow CLI command execution and fetches logs.
| Parameters | |
|---|---|
| Name | Description |
request |
PollAirflowCommandRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
TaskPollAirflowCommandResponse |
The response to send back to the client (wrapped by a task). |
SaveSnapshot(SaveSnapshotRequest, ServerCallContext)
public virtual Task<Operation> SaveSnapshot(SaveSnapshotRequest request, ServerCallContext context)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.
| Parameters | |
|---|---|
| Name | Description |
request |
SaveSnapshotRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
TaskOperation |
The response to send back to the client (wrapped by a task). |
StopAirflowCommand(StopAirflowCommandRequest, ServerCallContext)
public virtual Task<StopAirflowCommandResponse> StopAirflowCommand(StopAirflowCommandRequest request, ServerCallContext context)Stops Airflow CLI command execution.
| Parameters | |
|---|---|
| Name | Description |
request |
StopAirflowCommandRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
TaskStopAirflowCommandResponse |
The response to send back to the client (wrapped by a task). |
UpdateEnvironment(UpdateEnvironmentRequest, ServerCallContext)
public virtual Task<Operation> UpdateEnvironment(UpdateEnvironmentRequest request, ServerCallContext context)Update an environment.
| Parameters | |
|---|---|
| Name | Description |
request |
UpdateEnvironmentRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
TaskOperation |
The response to send back to the client (wrapped by a task). |