Class HttpJsonExternalVpnGatewaysStub (1.51.0)

public class HttpJsonExternalVpnGatewaysStub extends ExternalVpnGatewaysStub

REST stub implementation for the ExternalVpnGateways service API.

This class is for advanced usage and reflects the underlying API directly.

Inheritance

java.lang.Object > ExternalVpnGatewaysStub > HttpJsonExternalVpnGatewaysStub

Static Methods

create(ClientContext clientContext)

public static final HttpJsonExternalVpnGatewaysStub create(ClientContext clientContext)
Parameter
NameDescription
clientContextClientContext
Returns
TypeDescription
HttpJsonExternalVpnGatewaysStub
Exceptions
TypeDescription
IOException

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

public static final HttpJsonExternalVpnGatewaysStub create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)
Parameters
NameDescription
clientContextClientContext
callableFactoryHttpJsonStubCallableFactory
Returns
TypeDescription
HttpJsonExternalVpnGatewaysStub
Exceptions
TypeDescription
IOException

create(ExternalVpnGatewaysStubSettings settings)

public static final HttpJsonExternalVpnGatewaysStub create(ExternalVpnGatewaysStubSettings settings)
Parameter
NameDescription
settingsExternalVpnGatewaysStubSettings
Returns
TypeDescription
HttpJsonExternalVpnGatewaysStub
Exceptions
TypeDescription
IOException

getMethodDescriptors()

public static List<ApiMethodDescriptor> getMethodDescriptors()
Returns
TypeDescription
List<ApiMethodDescriptor>

Constructors

HttpJsonExternalVpnGatewaysStub(ExternalVpnGatewaysStubSettings settings, ClientContext clientContext)

protected HttpJsonExternalVpnGatewaysStub(ExternalVpnGatewaysStubSettings settings, ClientContext clientContext)

Constructs an instance of HttpJsonExternalVpnGatewaysStub, 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.

Parameters
NameDescription
settingsExternalVpnGatewaysStubSettings
clientContextClientContext

HttpJsonExternalVpnGatewaysStub(ExternalVpnGatewaysStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

protected HttpJsonExternalVpnGatewaysStub(ExternalVpnGatewaysStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

Constructs an instance of HttpJsonExternalVpnGatewaysStub, 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.

Parameters
NameDescription
settingsExternalVpnGatewaysStubSettings
clientContextClientContext
callableFactoryHttpJsonStubCallableFactory

Methods

awaitTermination(long duration, TimeUnit unit)

public boolean awaitTermination(long duration, TimeUnit unit)
Parameters
NameDescription
durationlong
unitTimeUnit
Returns
TypeDescription
boolean
Exceptions
TypeDescription
InterruptedException

close()

public final void close()
Overrides

deleteCallable()

public UnaryCallable<DeleteExternalVpnGatewayRequest,Operation> deleteCallable()
Returns
TypeDescription
UnaryCallable<DeleteExternalVpnGatewayRequest,Operation>
Overrides

deleteOperationCallable()

public OperationCallable<DeleteExternalVpnGatewayRequest,Operation,Operation> deleteOperationCallable()
Returns
TypeDescription
OperationCallable<DeleteExternalVpnGatewayRequest,Operation,Operation>
Overrides

getCallable()

public UnaryCallable<GetExternalVpnGatewayRequest,ExternalVpnGateway> getCallable()
Returns
TypeDescription
UnaryCallable<GetExternalVpnGatewayRequest,ExternalVpnGateway>
Overrides

insertCallable()

public UnaryCallable<InsertExternalVpnGatewayRequest,Operation> insertCallable()
Returns
TypeDescription
UnaryCallable<InsertExternalVpnGatewayRequest,Operation>
Overrides

insertOperationCallable()

public OperationCallable<InsertExternalVpnGatewayRequest,Operation,Operation> insertOperationCallable()
Returns
TypeDescription
OperationCallable<InsertExternalVpnGatewayRequest,Operation,Operation>
Overrides

isShutdown()

public boolean isShutdown()
Returns
TypeDescription
boolean

isTerminated()

public boolean isTerminated()
Returns
TypeDescription
boolean

listCallable()

public UnaryCallable<ListExternalVpnGatewaysRequest,ExternalVpnGatewayList> listCallable()
Returns
TypeDescription
UnaryCallable<ListExternalVpnGatewaysRequest,ExternalVpnGatewayList>
Overrides

listPagedCallable()

public UnaryCallable<ListExternalVpnGatewaysRequest,ExternalVpnGatewaysClient.ListPagedResponse> listPagedCallable()
Returns
TypeDescription
UnaryCallable<ListExternalVpnGatewaysRequest,ListPagedResponse>
Overrides

setLabelsCallable()

public UnaryCallable<SetLabelsExternalVpnGatewayRequest,Operation> setLabelsCallable()
Returns
TypeDescription
UnaryCallable<SetLabelsExternalVpnGatewayRequest,Operation>
Overrides

setLabelsOperationCallable()

public OperationCallable<SetLabelsExternalVpnGatewayRequest,Operation,Operation> setLabelsOperationCallable()
Returns
TypeDescription
OperationCallable<SetLabelsExternalVpnGatewayRequest,Operation,Operation>
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

testIamPermissionsCallable()

public UnaryCallable<TestIamPermissionsExternalVpnGatewayRequest,TestPermissionsResponse> testIamPermissionsCallable()
Returns
TypeDescription
UnaryCallable<TestIamPermissionsExternalVpnGatewayRequest,TestPermissionsResponse>
Overrides