Class HttpJsonVpnGatewaysStub (1.32.0)

public class HttpJsonVpnGatewaysStub extends VpnGatewaysStub

REST stub implementation for the VpnGateways service API.

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

Inheritance

java.lang.Object > VpnGatewaysStub > HttpJsonVpnGatewaysStub

Static Methods

create(ClientContext clientContext)

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

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

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

create(VpnGatewaysStubSettings settings)

public static final HttpJsonVpnGatewaysStub create(VpnGatewaysStubSettings settings)
Parameter
NameDescription
settingsVpnGatewaysStubSettings
Returns
TypeDescription
HttpJsonVpnGatewaysStub
Exceptions
TypeDescription
IOException

getMethodDescriptors()

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

Constructors

HttpJsonVpnGatewaysStub(VpnGatewaysStubSettings settings, ClientContext clientContext)

protected HttpJsonVpnGatewaysStub(VpnGatewaysStubSettings settings, ClientContext clientContext)

Constructs an instance of HttpJsonVpnGatewaysStub, 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
settingsVpnGatewaysStubSettings
clientContextClientContext

HttpJsonVpnGatewaysStub(VpnGatewaysStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

protected HttpJsonVpnGatewaysStub(VpnGatewaysStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

Constructs an instance of HttpJsonVpnGatewaysStub, 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
settingsVpnGatewaysStubSettings
clientContextClientContext
callableFactoryHttpJsonStubCallableFactory

Methods

aggregatedListCallable()

public UnaryCallable<AggregatedListVpnGatewaysRequest,VpnGatewayAggregatedList> aggregatedListCallable()
Returns
TypeDescription
UnaryCallable<AggregatedListVpnGatewaysRequest,VpnGatewayAggregatedList>
Overrides

aggregatedListPagedCallable()

public UnaryCallable<AggregatedListVpnGatewaysRequest,VpnGatewaysClient.AggregatedListPagedResponse> aggregatedListPagedCallable()
Returns
TypeDescription
UnaryCallable<AggregatedListVpnGatewaysRequest,AggregatedListPagedResponse>
Overrides

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<DeleteVpnGatewayRequest,Operation> deleteCallable()
Returns
TypeDescription
UnaryCallable<DeleteVpnGatewayRequest,Operation>
Overrides

deleteOperationCallable()

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

getCallable()

public UnaryCallable<GetVpnGatewayRequest,VpnGateway> getCallable()
Returns
TypeDescription
UnaryCallable<GetVpnGatewayRequest,VpnGateway>
Overrides

getStatusCallable()

public UnaryCallable<GetStatusVpnGatewayRequest,VpnGatewaysGetStatusResponse> getStatusCallable()
Returns
TypeDescription
UnaryCallable<GetStatusVpnGatewayRequest,VpnGatewaysGetStatusResponse>
Overrides

insertCallable()

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

insertOperationCallable()

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

isShutdown()

public boolean isShutdown()
Returns
TypeDescription
boolean

isTerminated()

public boolean isTerminated()
Returns
TypeDescription
boolean

listCallable()

public UnaryCallable<ListVpnGatewaysRequest,VpnGatewayList> listCallable()
Returns
TypeDescription
UnaryCallable<ListVpnGatewaysRequest,VpnGatewayList>
Overrides

listPagedCallable()

public UnaryCallable<ListVpnGatewaysRequest,VpnGatewaysClient.ListPagedResponse> listPagedCallable()
Returns
TypeDescription
UnaryCallable<ListVpnGatewaysRequest,ListPagedResponse>
Overrides

setLabelsCallable()

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

setLabelsOperationCallable()

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

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

testIamPermissionsCallable()

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