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

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

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

create(ResourcePoliciesStubSettings settings)

public static final HttpJsonResourcePoliciesStub create(ResourcePoliciesStubSettings settings)
Parameter
Name Description
settings ResourcePoliciesStubSettings
Returns
Type Description
HttpJsonResourcePoliciesStub
Exceptions
Type Description
IOException

getMethodDescriptors()

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

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

Methods

aggregatedListCallable()

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

aggregatedListPagedCallable()

public UnaryCallable<AggregatedListResourcePoliciesRequest,ResourcePoliciesClient.AggregatedListPagedResponse> aggregatedListPagedCallable()
Returns
Type Description
UnaryCallable<AggregatedListResourcePoliciesRequest,AggregatedListPagedResponse>
Overrides

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<DeleteResourcePolicyRequest,Operation> deleteCallable()
Returns
Type Description
UnaryCallable<DeleteResourcePolicyRequest,Operation>
Overrides

deleteOperationCallable()

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

getCallable()

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

getIamPolicyCallable()

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

insertCallable()

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

insertOperationCallable()

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

isShutdown()

public boolean isShutdown()
Returns
Type Description
boolean

isTerminated()

public boolean isTerminated()
Returns
Type Description
boolean

listCallable()

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

listPagedCallable()

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

patchCallable()

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

patchOperationCallable()

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

setIamPolicyCallable()

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

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

testIamPermissionsCallable()

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