Package com.google.cloud.compute.v1.stub
Class HttpJsonResourcePoliciesStub
- java.lang.Object
-
- com.google.cloud.compute.v1.stub.ResourcePoliciesStub
-
- com.google.cloud.compute.v1.stub.HttpJsonResourcePoliciesStub
-
- All Implemented Interfaces:
com.google.api.gax.core.BackgroundResource,AutoCloseable
@Generated("by gapic-generator-java") @BetaApi public class HttpJsonResourcePoliciesStub extends ResourcePoliciesStub
REST stub implementation for the ResourcePolicies service API.This class is for advanced usage and reflects the underlying API directly.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedHttpJsonResourcePoliciesStub(ResourcePoliciesStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext)Constructs an instance of HttpJsonResourcePoliciesStub, using the given settings.protectedHttpJsonResourcePoliciesStub(ResourcePoliciesStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory)Constructs an instance of HttpJsonResourcePoliciesStub, using the given settings.
-
Method Summary
-
-
-
Constructor Detail
-
HttpJsonResourcePoliciesStub
protected HttpJsonResourcePoliciesStub(ResourcePoliciesStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext) throws IOException
Constructs an instance of HttpJsonResourcePoliciesStub, 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
-
HttpJsonResourcePoliciesStub
protected HttpJsonResourcePoliciesStub(ResourcePoliciesStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory) throws IOException
Constructs an instance of HttpJsonResourcePoliciesStub, 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 HttpJsonResourcePoliciesStub create(ResourcePoliciesStubSettings settings) throws IOException
- Throws:
IOException
-
create
public static final HttpJsonResourcePoliciesStub create(com.google.api.gax.rpc.ClientContext clientContext) throws IOException
- Throws:
IOException
-
create
public static final HttpJsonResourcePoliciesStub 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<AggregatedListResourcePoliciesRequest,ResourcePolicyAggregatedList> aggregatedListCallable()
- Overrides:
aggregatedListCallablein classResourcePoliciesStub
-
aggregatedListPagedCallable
public com.google.api.gax.rpc.UnaryCallable<AggregatedListResourcePoliciesRequest,ResourcePoliciesClient.AggregatedListPagedResponse> aggregatedListPagedCallable()
- Overrides:
aggregatedListPagedCallablein classResourcePoliciesStub
-
deleteCallable
public com.google.api.gax.rpc.UnaryCallable<DeleteResourcePolicyRequest,Operation> deleteCallable()
- Overrides:
deleteCallablein classResourcePoliciesStub
-
deleteOperationCallable
public com.google.api.gax.rpc.OperationCallable<DeleteResourcePolicyRequest,Operation,Operation> deleteOperationCallable()
- Overrides:
deleteOperationCallablein classResourcePoliciesStub
-
getCallable
public com.google.api.gax.rpc.UnaryCallable<GetResourcePolicyRequest,ResourcePolicy> getCallable()
- Overrides:
getCallablein classResourcePoliciesStub
-
getIamPolicyCallable
public com.google.api.gax.rpc.UnaryCallable<GetIamPolicyResourcePolicyRequest,Policy> getIamPolicyCallable()
- Overrides:
getIamPolicyCallablein classResourcePoliciesStub
-
insertCallable
public com.google.api.gax.rpc.UnaryCallable<InsertResourcePolicyRequest,Operation> insertCallable()
- Overrides:
insertCallablein classResourcePoliciesStub
-
insertOperationCallable
public com.google.api.gax.rpc.OperationCallable<InsertResourcePolicyRequest,Operation,Operation> insertOperationCallable()
- Overrides:
insertOperationCallablein classResourcePoliciesStub
-
listCallable
public com.google.api.gax.rpc.UnaryCallable<ListResourcePoliciesRequest,ResourcePolicyList> listCallable()
- Overrides:
listCallablein classResourcePoliciesStub
-
listPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListResourcePoliciesRequest,ResourcePoliciesClient.ListPagedResponse> listPagedCallable()
- Overrides:
listPagedCallablein classResourcePoliciesStub
-
patchCallable
public com.google.api.gax.rpc.UnaryCallable<PatchResourcePolicyRequest,Operation> patchCallable()
- Overrides:
patchCallablein classResourcePoliciesStub
-
patchOperationCallable
public com.google.api.gax.rpc.OperationCallable<PatchResourcePolicyRequest,Operation,Operation> patchOperationCallable()
- Overrides:
patchOperationCallablein classResourcePoliciesStub
-
setIamPolicyCallable
public com.google.api.gax.rpc.UnaryCallable<SetIamPolicyResourcePolicyRequest,Policy> setIamPolicyCallable()
- Overrides:
setIamPolicyCallablein classResourcePoliciesStub
-
testIamPermissionsCallable
public com.google.api.gax.rpc.UnaryCallable<TestIamPermissionsResourcePolicyRequest,TestPermissionsResponse> testIamPermissionsCallable()
- Overrides:
testIamPermissionsCallablein classResourcePoliciesStub
-
close
public final void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein classResourcePoliciesStub
-
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
-
-