Package com.google.cloud.compute.v1.stub
Class HttpJsonReservationsStub
- java.lang.Object
-
- com.google.cloud.compute.v1.stub.ReservationsStub
-
- com.google.cloud.compute.v1.stub.HttpJsonReservationsStub
-
- All Implemented Interfaces:
com.google.api.gax.core.BackgroundResource
,AutoCloseable
@Generated("by gapic-generator-java") @BetaApi public class HttpJsonReservationsStub extends ReservationsStub
REST stub implementation for the Reservations service API.This class is for advanced usage and reflects the underlying API directly.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
HttpJsonReservationsStub(ReservationsStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext)
Constructs an instance of HttpJsonReservationsStub, using the given settings.protected
HttpJsonReservationsStub(ReservationsStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory)
Constructs an instance of HttpJsonReservationsStub, using the given settings.
-
Method Summary
-
-
-
Constructor Detail
-
HttpJsonReservationsStub
protected HttpJsonReservationsStub(ReservationsStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext) throws IOException
Constructs an instance of HttpJsonReservationsStub, 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
-
HttpJsonReservationsStub
protected HttpJsonReservationsStub(ReservationsStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory) throws IOException
Constructs an instance of HttpJsonReservationsStub, 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 HttpJsonReservationsStub create(ReservationsStubSettings settings) throws IOException
- Throws:
IOException
-
create
public static final HttpJsonReservationsStub create(com.google.api.gax.rpc.ClientContext clientContext) throws IOException
- Throws:
IOException
-
create
public static final HttpJsonReservationsStub 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()
-
aggregatedListCallable
public com.google.api.gax.rpc.UnaryCallable<AggregatedListReservationsRequest,ReservationAggregatedList> aggregatedListCallable()
- Overrides:
aggregatedListCallable
in classReservationsStub
-
aggregatedListPagedCallable
public com.google.api.gax.rpc.UnaryCallable<AggregatedListReservationsRequest,ReservationsClient.AggregatedListPagedResponse> aggregatedListPagedCallable()
- Overrides:
aggregatedListPagedCallable
in classReservationsStub
-
deleteCallable
public com.google.api.gax.rpc.UnaryCallable<DeleteReservationRequest,Operation> deleteCallable()
- Overrides:
deleteCallable
in classReservationsStub
-
deleteOperationCallable
public com.google.api.gax.rpc.OperationCallable<DeleteReservationRequest,Operation,Operation> deleteOperationCallable()
- Overrides:
deleteOperationCallable
in classReservationsStub
-
getCallable
public com.google.api.gax.rpc.UnaryCallable<GetReservationRequest,Reservation> getCallable()
- Overrides:
getCallable
in classReservationsStub
-
getIamPolicyCallable
public com.google.api.gax.rpc.UnaryCallable<GetIamPolicyReservationRequest,Policy> getIamPolicyCallable()
- Overrides:
getIamPolicyCallable
in classReservationsStub
-
insertCallable
public com.google.api.gax.rpc.UnaryCallable<InsertReservationRequest,Operation> insertCallable()
- Overrides:
insertCallable
in classReservationsStub
-
insertOperationCallable
public com.google.api.gax.rpc.OperationCallable<InsertReservationRequest,Operation,Operation> insertOperationCallable()
- Overrides:
insertOperationCallable
in classReservationsStub
-
listCallable
public com.google.api.gax.rpc.UnaryCallable<ListReservationsRequest,ReservationList> listCallable()
- Overrides:
listCallable
in classReservationsStub
-
listPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListReservationsRequest,ReservationsClient.ListPagedResponse> listPagedCallable()
- Overrides:
listPagedCallable
in classReservationsStub
-
resizeCallable
public com.google.api.gax.rpc.UnaryCallable<ResizeReservationRequest,Operation> resizeCallable()
- Overrides:
resizeCallable
in classReservationsStub
-
resizeOperationCallable
public com.google.api.gax.rpc.OperationCallable<ResizeReservationRequest,Operation,Operation> resizeOperationCallable()
- Overrides:
resizeOperationCallable
in classReservationsStub
-
setIamPolicyCallable
public com.google.api.gax.rpc.UnaryCallable<SetIamPolicyReservationRequest,Policy> setIamPolicyCallable()
- Overrides:
setIamPolicyCallable
in classReservationsStub
-
testIamPermissionsCallable
public com.google.api.gax.rpc.UnaryCallable<TestIamPermissionsReservationRequest,TestPermissionsResponse> testIamPermissionsCallable()
- Overrides:
testIamPermissionsCallable
in classReservationsStub
-
updateCallable
public com.google.api.gax.rpc.UnaryCallable<UpdateReservationRequest,Operation> updateCallable()
- Overrides:
updateCallable
in classReservationsStub
-
updateOperationCallable
public com.google.api.gax.rpc.OperationCallable<UpdateReservationRequest,Operation,Operation> updateOperationCallable()
- Overrides:
updateOperationCallable
in classReservationsStub
-
close
public final void close()
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in classReservationsStub
-
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
-
-