Class HttpJsonEnvironmentsStub
- java.lang.Object
-
- com.google.cloud.orchestration.airflow.service.v1beta1.stub.EnvironmentsStub
-
- com.google.cloud.orchestration.airflow.service.v1beta1.stub.HttpJsonEnvironmentsStub
-
- All Implemented Interfaces:
com.google.api.gax.core.BackgroundResource
,AutoCloseable
@BetaApi @Generated("by gapic-generator-java") public class HttpJsonEnvironmentsStub extends EnvironmentsStub
REST stub implementation for the Environments service API.This class is for advanced usage and reflects the underlying API directly.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
HttpJsonEnvironmentsStub(EnvironmentsStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext)
Constructs an instance of HttpJsonEnvironmentsStub, using the given settings.protected
HttpJsonEnvironmentsStub(EnvironmentsStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory)
Constructs an instance of HttpJsonEnvironmentsStub, using the given settings.
-
Method Summary
-
Methods inherited from class com.google.cloud.orchestration.airflow.service.v1beta1.stub.EnvironmentsStub
getOperationsStub
-
-
-
-
Constructor Detail
-
HttpJsonEnvironmentsStub
protected HttpJsonEnvironmentsStub(EnvironmentsStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext) throws IOException
Constructs an instance of HttpJsonEnvironmentsStub, using the given settings. This is protected so that it is easy to make a subclass, but otherwise, the static factory methods should be preferred.- Throws:
IOException
-
HttpJsonEnvironmentsStub
protected HttpJsonEnvironmentsStub(EnvironmentsStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory) throws IOException
Constructs an instance of HttpJsonEnvironmentsStub, using the given settings. This is protected so that it is easy to make a subclass, but otherwise, the static factory methods should be preferred.- Throws:
IOException
-
-
Method Detail
-
create
public static final HttpJsonEnvironmentsStub create(EnvironmentsStubSettings settings) throws IOException
- Throws:
IOException
-
create
public static final HttpJsonEnvironmentsStub create(com.google.api.gax.rpc.ClientContext clientContext) throws IOException
- Throws:
IOException
-
create
public static final HttpJsonEnvironmentsStub create(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory) throws IOException
- Throws:
IOException
-
getMethodDescriptors
@InternalApi public static List<com.google.api.gax.httpjson.ApiMethodDescriptor> getMethodDescriptors()
-
getHttpJsonOperationsStub
public com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStub getHttpJsonOperationsStub()
- Overrides:
getHttpJsonOperationsStub
in classEnvironmentsStub
-
createEnvironmentCallable
public com.google.api.gax.rpc.UnaryCallable<CreateEnvironmentRequest,com.google.longrunning.Operation> createEnvironmentCallable()
- Overrides:
createEnvironmentCallable
in classEnvironmentsStub
-
createEnvironmentOperationCallable
public com.google.api.gax.rpc.OperationCallable<CreateEnvironmentRequest,Environment,OperationMetadata> createEnvironmentOperationCallable()
- Overrides:
createEnvironmentOperationCallable
in classEnvironmentsStub
-
getEnvironmentCallable
public com.google.api.gax.rpc.UnaryCallable<GetEnvironmentRequest,Environment> getEnvironmentCallable()
- Overrides:
getEnvironmentCallable
in classEnvironmentsStub
-
listEnvironmentsCallable
public com.google.api.gax.rpc.UnaryCallable<ListEnvironmentsRequest,ListEnvironmentsResponse> listEnvironmentsCallable()
- Overrides:
listEnvironmentsCallable
in classEnvironmentsStub
-
listEnvironmentsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListEnvironmentsRequest,EnvironmentsClient.ListEnvironmentsPagedResponse> listEnvironmentsPagedCallable()
- Overrides:
listEnvironmentsPagedCallable
in classEnvironmentsStub
-
updateEnvironmentCallable
public com.google.api.gax.rpc.UnaryCallable<UpdateEnvironmentRequest,com.google.longrunning.Operation> updateEnvironmentCallable()
- Overrides:
updateEnvironmentCallable
in classEnvironmentsStub
-
updateEnvironmentOperationCallable
public com.google.api.gax.rpc.OperationCallable<UpdateEnvironmentRequest,Environment,OperationMetadata> updateEnvironmentOperationCallable()
- Overrides:
updateEnvironmentOperationCallable
in classEnvironmentsStub
-
deleteEnvironmentCallable
public com.google.api.gax.rpc.UnaryCallable<DeleteEnvironmentRequest,com.google.longrunning.Operation> deleteEnvironmentCallable()
- Overrides:
deleteEnvironmentCallable
in classEnvironmentsStub
-
deleteEnvironmentOperationCallable
public com.google.api.gax.rpc.OperationCallable<DeleteEnvironmentRequest,com.google.protobuf.Empty,OperationMetadata> deleteEnvironmentOperationCallable()
- Overrides:
deleteEnvironmentOperationCallable
in classEnvironmentsStub
-
restartWebServerCallable
public com.google.api.gax.rpc.UnaryCallable<RestartWebServerRequest,com.google.longrunning.Operation> restartWebServerCallable()
- Overrides:
restartWebServerCallable
in classEnvironmentsStub
-
restartWebServerOperationCallable
public com.google.api.gax.rpc.OperationCallable<RestartWebServerRequest,Environment,OperationMetadata> restartWebServerOperationCallable()
- Overrides:
restartWebServerOperationCallable
in classEnvironmentsStub
-
checkUpgradeCallable
public com.google.api.gax.rpc.UnaryCallable<CheckUpgradeRequest,com.google.longrunning.Operation> checkUpgradeCallable()
- Overrides:
checkUpgradeCallable
in classEnvironmentsStub
-
checkUpgradeOperationCallable
public com.google.api.gax.rpc.OperationCallable<CheckUpgradeRequest,CheckUpgradeResponse,OperationMetadata> checkUpgradeOperationCallable()
- Overrides:
checkUpgradeOperationCallable
in classEnvironmentsStub
-
executeAirflowCommandCallable
public com.google.api.gax.rpc.UnaryCallable<ExecuteAirflowCommandRequest,ExecuteAirflowCommandResponse> executeAirflowCommandCallable()
- Overrides:
executeAirflowCommandCallable
in classEnvironmentsStub
-
stopAirflowCommandCallable
public com.google.api.gax.rpc.UnaryCallable<StopAirflowCommandRequest,StopAirflowCommandResponse> stopAirflowCommandCallable()
- Overrides:
stopAirflowCommandCallable
in classEnvironmentsStub
-
pollAirflowCommandCallable
public com.google.api.gax.rpc.UnaryCallable<PollAirflowCommandRequest,PollAirflowCommandResponse> pollAirflowCommandCallable()
- Overrides:
pollAirflowCommandCallable
in classEnvironmentsStub
-
saveSnapshotCallable
public com.google.api.gax.rpc.UnaryCallable<SaveSnapshotRequest,com.google.longrunning.Operation> saveSnapshotCallable()
- Overrides:
saveSnapshotCallable
in classEnvironmentsStub
-
saveSnapshotOperationCallable
public com.google.api.gax.rpc.OperationCallable<SaveSnapshotRequest,SaveSnapshotResponse,OperationMetadata> saveSnapshotOperationCallable()
- Overrides:
saveSnapshotOperationCallable
in classEnvironmentsStub
-
loadSnapshotCallable
public com.google.api.gax.rpc.UnaryCallable<LoadSnapshotRequest,com.google.longrunning.Operation> loadSnapshotCallable()
- Overrides:
loadSnapshotCallable
in classEnvironmentsStub
-
loadSnapshotOperationCallable
public com.google.api.gax.rpc.OperationCallable<LoadSnapshotRequest,LoadSnapshotResponse,OperationMetadata> loadSnapshotOperationCallable()
- Overrides:
loadSnapshotOperationCallable
in classEnvironmentsStub
-
databaseFailoverCallable
public com.google.api.gax.rpc.UnaryCallable<DatabaseFailoverRequest,com.google.longrunning.Operation> databaseFailoverCallable()
- Overrides:
databaseFailoverCallable
in classEnvironmentsStub
-
databaseFailoverOperationCallable
public com.google.api.gax.rpc.OperationCallable<DatabaseFailoverRequest,DatabaseFailoverResponse,OperationMetadata> databaseFailoverOperationCallable()
- Overrides:
databaseFailoverOperationCallable
in classEnvironmentsStub
-
fetchDatabasePropertiesCallable
public com.google.api.gax.rpc.UnaryCallable<FetchDatabasePropertiesRequest,FetchDatabasePropertiesResponse> fetchDatabasePropertiesCallable()
- Overrides:
fetchDatabasePropertiesCallable
in classEnvironmentsStub
-
close
public final void close()
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in classEnvironmentsStub
-
shutdown
public void shutdown()
-
isShutdown
public boolean isShutdown()
-
isTerminated
public boolean isTerminated()
-
shutdownNow
public void shutdownNow()
-
awaitTermination
public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException
- Throws:
InterruptedException
-
-