Class HttpJsonExternalVpnGatewaysStub (1.61.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
Name Description
clientContext ClientContext
Returns
Type Description
HttpJsonExternalVpnGatewaysStub
Exceptions
Type Description
IOException

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

public static final HttpJsonExternalVpnGatewaysStub create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)
Parameters
Name Description
clientContext ClientContext
callableFactory HttpJsonStubCallableFactory
Returns
Type Description
HttpJsonExternalVpnGatewaysStub
Exceptions
Type Description
IOException

create(ExternalVpnGatewaysStubSettings settings)

public static final HttpJsonExternalVpnGatewaysStub create(ExternalVpnGatewaysStubSettings settings)
Parameter
Name Description
settings ExternalVpnGatewaysStubSettings
Returns
Type Description
HttpJsonExternalVpnGatewaysStub
Exceptions
Type Description
IOException

getMethodDescriptors()

public static List<ApiMethodDescriptor> getMethodDescriptors()
Returns
Type Description
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
Name Description
settings ExternalVpnGatewaysStubSettings
clientContext ClientContext

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
Name Description
settings ExternalVpnGatewaysStubSettings
clientContext ClientContext
callableFactory HttpJsonStubCallableFactory

Methods

awaitTermination(long duration, TimeUnit unit)

public boolean awaitTermination(long duration, TimeUnit unit)
Parameters
Name Description
duration long
unit TimeUnit
Returns
Type Description
boolean
Exceptions
Type Description
InterruptedException

close()

public final void close()
Overrides

deleteCallable()

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

deleteOperationCallable()

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

getCallable()

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

insertCallable()

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

insertOperationCallable()

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

isShutdown()

public boolean isShutdown()
Returns
Type Description
boolean

isTerminated()

public boolean isTerminated()
Returns
Type Description
boolean

listCallable()

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

listPagedCallable()

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

setLabelsCallable()

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

setLabelsOperationCallable()

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

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

testIamPermissionsCallable()

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