Package com.google.cloud.shell.v1.stub
Class HttpJsonCloudShellServiceStub
java.lang.Object
com.google.cloud.shell.v1.stub.CloudShellServiceStub
com.google.cloud.shell.v1.stub.HttpJsonCloudShellServiceStub
- All Implemented Interfaces:
BackgroundResource,AutoCloseable
@Generated("by gapic-generator-java")
public class HttpJsonCloudShellServiceStub
extends CloudShellServiceStub
REST stub implementation for the CloudShellService service API.
This class is for advanced usage and reflects the underlying API directly.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedHttpJsonCloudShellServiceStub(CloudShellServiceStubSettings settings, ClientContext clientContext) Constructs an instance of HttpJsonCloudShellServiceStub, using the given settings.protectedHttpJsonCloudShellServiceStub(CloudShellServiceStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) Constructs an instance of HttpJsonCloudShellServiceStub, using the given settings. -
Method Summary
Modifier and TypeMethodDescriptionOperationCallable<AuthorizeEnvironmentRequest,AuthorizeEnvironmentResponse, AuthorizeEnvironmentMetadata> booleanawaitTermination(long duration, TimeUnit unit) final voidclose()static final HttpJsonCloudShellServiceStubcreate(ClientContext clientContext) static final HttpJsonCloudShellServiceStubcreate(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) static final HttpJsonCloudShellServiceStubcreate(CloudShellServiceStubSettings settings) static List<ApiMethodDescriptor>booleanbooleanvoidshutdown()voidMethods inherited from class com.google.cloud.shell.v1.stub.CloudShellServiceStub
getOperationsStub
-
Constructor Details
-
HttpJsonCloudShellServiceStub
protected HttpJsonCloudShellServiceStub(CloudShellServiceStubSettings settings, ClientContext clientContext) throws IOException Constructs an instance of HttpJsonCloudShellServiceStub, 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
-
HttpJsonCloudShellServiceStub
protected HttpJsonCloudShellServiceStub(CloudShellServiceStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException Constructs an instance of HttpJsonCloudShellServiceStub, 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 Details
-
create
public static final HttpJsonCloudShellServiceStub create(CloudShellServiceStubSettings settings) throws IOException - Throws:
IOException
-
create
public static final HttpJsonCloudShellServiceStub create(ClientContext clientContext) throws IOException - Throws:
IOException
-
create
public static final HttpJsonCloudShellServiceStub create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException - Throws:
IOException
-
getMethodDescriptors
-
getHttpJsonOperationsStub
- Overrides:
getHttpJsonOperationsStubin classCloudShellServiceStub
-
getEnvironmentCallable
- Overrides:
getEnvironmentCallablein classCloudShellServiceStub
-
startEnvironmentCallable
- Overrides:
startEnvironmentCallablein classCloudShellServiceStub
-
startEnvironmentOperationCallable
public OperationCallable<StartEnvironmentRequest,StartEnvironmentResponse, startEnvironmentOperationCallable()StartEnvironmentMetadata> - Overrides:
startEnvironmentOperationCallablein classCloudShellServiceStub
-
authorizeEnvironmentCallable
- Overrides:
authorizeEnvironmentCallablein classCloudShellServiceStub
-
authorizeEnvironmentOperationCallable
public OperationCallable<AuthorizeEnvironmentRequest,AuthorizeEnvironmentResponse, authorizeEnvironmentOperationCallable()AuthorizeEnvironmentMetadata> - Overrides:
authorizeEnvironmentOperationCallablein classCloudShellServiceStub
-
addPublicKeyCallable
- Overrides:
addPublicKeyCallablein classCloudShellServiceStub
-
addPublicKeyOperationCallable
public OperationCallable<AddPublicKeyRequest,AddPublicKeyResponse, addPublicKeyOperationCallable()AddPublicKeyMetadata> - Overrides:
addPublicKeyOperationCallablein classCloudShellServiceStub
-
removePublicKeyCallable
- Overrides:
removePublicKeyCallablein classCloudShellServiceStub
-
removePublicKeyOperationCallable
public OperationCallable<RemovePublicKeyRequest,RemovePublicKeyResponse, removePublicKeyOperationCallable()RemovePublicKeyMetadata> - Overrides:
removePublicKeyOperationCallablein classCloudShellServiceStub
-
close
public final void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein classCloudShellServiceStub
-
shutdown
public void shutdown() -
isShutdown
public boolean isShutdown() -
isTerminated
public boolean isTerminated() -
shutdownNow
public void shutdownNow() -
awaitTermination
- Throws:
InterruptedException
-