Class HttpJsonResourcePoliciesStub (1.45.0)

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.

Inheritance

java.lang.Object > ResourcePoliciesStub > HttpJsonResourcePoliciesStub

Static Methods

create(ClientContext clientContext)

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

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

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

create(ResourcePoliciesStubSettings settings)

public static final HttpJsonResourcePoliciesStub create(ResourcePoliciesStubSettings settings)
Parameter
NameDescription
settingsResourcePoliciesStubSettings
Returns
TypeDescription
HttpJsonResourcePoliciesStub
Exceptions
TypeDescription
IOException

getMethodDescriptors()

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

Constructors

HttpJsonResourcePoliciesStub(ResourcePoliciesStubSettings settings, ClientContext clientContext)

protected HttpJsonResourcePoliciesStub(ResourcePoliciesStubSettings settings, ClientContext clientContext)

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.

Parameters
NameDescription
settingsResourcePoliciesStubSettings
clientContextClientContext

HttpJsonResourcePoliciesStub(ResourcePoliciesStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

protected HttpJsonResourcePoliciesStub(ResourcePoliciesStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

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.

Parameters
NameDescription
settingsResourcePoliciesStubSettings
clientContextClientContext
callableFactoryHttpJsonStubCallableFactory

Methods

aggregatedListCallable()

public UnaryCallable<AggregatedListResourcePoliciesRequest,ResourcePolicyAggregatedList> aggregatedListCallable()
Returns
TypeDescription
UnaryCallable<AggregatedListResourcePoliciesRequest,ResourcePolicyAggregatedList>
Overrides

aggregatedListPagedCallable()

public UnaryCallable<AggregatedListResourcePoliciesRequest,ResourcePoliciesClient.AggregatedListPagedResponse> aggregatedListPagedCallable()
Returns
TypeDescription
UnaryCallable<AggregatedListResourcePoliciesRequest,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<DeleteResourcePolicyRequest,Operation> deleteCallable()
Returns
TypeDescription
UnaryCallable<DeleteResourcePolicyRequest,Operation>
Overrides

deleteOperationCallable()

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

getCallable()

public UnaryCallable<GetResourcePolicyRequest,ResourcePolicy> getCallable()
Returns
TypeDescription
UnaryCallable<GetResourcePolicyRequest,ResourcePolicy>
Overrides

getIamPolicyCallable()

public UnaryCallable<GetIamPolicyResourcePolicyRequest,Policy> getIamPolicyCallable()
Returns
TypeDescription
UnaryCallable<GetIamPolicyResourcePolicyRequest,Policy>
Overrides

insertCallable()

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

insertOperationCallable()

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

isShutdown()

public boolean isShutdown()
Returns
TypeDescription
boolean

isTerminated()

public boolean isTerminated()
Returns
TypeDescription
boolean

listCallable()

public UnaryCallable<ListResourcePoliciesRequest,ResourcePolicyList> listCallable()
Returns
TypeDescription
UnaryCallable<ListResourcePoliciesRequest,ResourcePolicyList>
Overrides

listPagedCallable()

public UnaryCallable<ListResourcePoliciesRequest,ResourcePoliciesClient.ListPagedResponse> listPagedCallable()
Returns
TypeDescription
UnaryCallable<ListResourcePoliciesRequest,ListPagedResponse>
Overrides

patchCallable()

public UnaryCallable<PatchResourcePolicyRequest,Operation> patchCallable()
Returns
TypeDescription
UnaryCallable<PatchResourcePolicyRequest,Operation>
Overrides

patchOperationCallable()

public OperationCallable<PatchResourcePolicyRequest,Operation,Operation> patchOperationCallable()
Returns
TypeDescription
OperationCallable<PatchResourcePolicyRequest,Operation,Operation>
Overrides

setIamPolicyCallable()

public UnaryCallable<SetIamPolicyResourcePolicyRequest,Policy> setIamPolicyCallable()
Returns
TypeDescription
UnaryCallable<SetIamPolicyResourcePolicyRequest,Policy>
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

testIamPermissionsCallable()

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