Class HttpJsonOrgPolicyStub (2.13.0)

public class HttpJsonOrgPolicyStub extends OrgPolicyStub

REST stub implementation for the OrgPolicy service API.

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

Inheritance

java.lang.Object > OrgPolicyStub > HttpJsonOrgPolicyStub

Static Methods

create(ClientContext clientContext)

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

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

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

create(OrgPolicyStubSettings settings)

public static final HttpJsonOrgPolicyStub create(OrgPolicyStubSettings settings)
Parameter
NameDescription
settingsOrgPolicyStubSettings
Returns
TypeDescription
HttpJsonOrgPolicyStub
Exceptions
TypeDescription
IOException

getMethodDescriptors()

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

Constructors

HttpJsonOrgPolicyStub(OrgPolicyStubSettings settings, ClientContext clientContext)

protected HttpJsonOrgPolicyStub(OrgPolicyStubSettings settings, ClientContext clientContext)

Constructs an instance of HttpJsonOrgPolicyStub, 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
settingsOrgPolicyStubSettings
clientContextClientContext

HttpJsonOrgPolicyStub(OrgPolicyStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

protected HttpJsonOrgPolicyStub(OrgPolicyStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

Constructs an instance of HttpJsonOrgPolicyStub, 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
settingsOrgPolicyStubSettings
clientContextClientContext
callableFactoryHttpJsonStubCallableFactory

Methods

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

createPolicyCallable()

public UnaryCallable<CreatePolicyRequest,Policy> createPolicyCallable()
Returns
TypeDescription
UnaryCallable<CreatePolicyRequest,Policy>
Overrides

deletePolicyCallable()

public UnaryCallable<DeletePolicyRequest,Empty> deletePolicyCallable()
Returns
TypeDescription
UnaryCallable<DeletePolicyRequest,Empty>
Overrides

getEffectivePolicyCallable()

public UnaryCallable<GetEffectivePolicyRequest,Policy> getEffectivePolicyCallable()
Returns
TypeDescription
UnaryCallable<GetEffectivePolicyRequest,Policy>
Overrides

getPolicyCallable()

public UnaryCallable<GetPolicyRequest,Policy> getPolicyCallable()
Returns
TypeDescription
UnaryCallable<GetPolicyRequest,Policy>
Overrides

isShutdown()

public boolean isShutdown()
Returns
TypeDescription
boolean

isTerminated()

public boolean isTerminated()
Returns
TypeDescription
boolean

listConstraintsCallable()

public UnaryCallable<ListConstraintsRequest,ListConstraintsResponse> listConstraintsCallable()
Returns
TypeDescription
UnaryCallable<ListConstraintsRequest,ListConstraintsResponse>
Overrides

listConstraintsPagedCallable()

public UnaryCallable<ListConstraintsRequest,OrgPolicyClient.ListConstraintsPagedResponse> listConstraintsPagedCallable()
Returns
TypeDescription
UnaryCallable<ListConstraintsRequest,ListConstraintsPagedResponse>
Overrides

listPoliciesCallable()

public UnaryCallable<ListPoliciesRequest,ListPoliciesResponse> listPoliciesCallable()
Returns
TypeDescription
UnaryCallable<ListPoliciesRequest,ListPoliciesResponse>
Overrides

listPoliciesPagedCallable()

public UnaryCallable<ListPoliciesRequest,OrgPolicyClient.ListPoliciesPagedResponse> listPoliciesPagedCallable()
Returns
TypeDescription
UnaryCallable<ListPoliciesRequest,ListPoliciesPagedResponse>
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

updatePolicyCallable()

public UnaryCallable<UpdatePolicyRequest,Policy> updatePolicyCallable()
Returns
TypeDescription
UnaryCallable<UpdatePolicyRequest,Policy>
Overrides