Class HttpJsonOrgPolicyStub
java.lang.Object
com.google.cloud.orgpolicy.v2.stub.OrgPolicyStub
com.google.cloud.orgpolicy.v2.stub.HttpJsonOrgPolicyStub
- All Implemented Interfaces:
BackgroundResource,AutoCloseable
REST stub implementation for the OrgPolicy service API.
This class is for advanced usage and reflects the underlying API directly.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedHttpJsonOrgPolicyStub(OrgPolicyStubSettings settings, ClientContext clientContext) Constructs an instance of HttpJsonOrgPolicyStub, using the given settings.protectedHttpJsonOrgPolicyStub(OrgPolicyStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) Constructs an instance of HttpJsonOrgPolicyStub, using the given settings. -
Method Summary
Modifier and TypeMethodDescriptionbooleanawaitTermination(long duration, TimeUnit unit) final voidclose()static final HttpJsonOrgPolicyStubcreate(ClientContext clientContext) static final HttpJsonOrgPolicyStubcreate(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) static final HttpJsonOrgPolicyStubcreate(OrgPolicyStubSettings settings) UnaryCallable<DeleteCustomConstraintRequest,com.google.protobuf.Empty> UnaryCallable<DeletePolicyRequest,com.google.protobuf.Empty> static List<ApiMethodDescriptor>booleanbooleanvoidshutdown()void
-
Constructor Details
-
HttpJsonOrgPolicyStub
protected HttpJsonOrgPolicyStub(OrgPolicyStubSettings settings, ClientContext clientContext) throws IOException 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.- Throws:
IOException
-
HttpJsonOrgPolicyStub
protected HttpJsonOrgPolicyStub(OrgPolicyStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException 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.- Throws:
IOException
-
-
Method Details
-
create
- Throws:
IOException
-
create
- Throws:
IOException
-
create
public static final HttpJsonOrgPolicyStub create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException - Throws:
IOException
-
getMethodDescriptors
-
listConstraintsCallable
- Overrides:
listConstraintsCallablein classOrgPolicyStub
-
listConstraintsPagedCallable
public UnaryCallable<ListConstraintsRequest,OrgPolicyClient.ListConstraintsPagedResponse> listConstraintsPagedCallable()- Overrides:
listConstraintsPagedCallablein classOrgPolicyStub
-
listPoliciesCallable
- Overrides:
listPoliciesCallablein classOrgPolicyStub
-
listPoliciesPagedCallable
public UnaryCallable<ListPoliciesRequest,OrgPolicyClient.ListPoliciesPagedResponse> listPoliciesPagedCallable()- Overrides:
listPoliciesPagedCallablein classOrgPolicyStub
-
getPolicyCallable
- Overrides:
getPolicyCallablein classOrgPolicyStub
-
getEffectivePolicyCallable
- Overrides:
getEffectivePolicyCallablein classOrgPolicyStub
-
createPolicyCallable
- Overrides:
createPolicyCallablein classOrgPolicyStub
-
updatePolicyCallable
- Overrides:
updatePolicyCallablein classOrgPolicyStub
-
deletePolicyCallable
- Overrides:
deletePolicyCallablein classOrgPolicyStub
-
createCustomConstraintCallable
public UnaryCallable<CreateCustomConstraintRequest,CustomConstraint> createCustomConstraintCallable()- Overrides:
createCustomConstraintCallablein classOrgPolicyStub
-
updateCustomConstraintCallable
public UnaryCallable<UpdateCustomConstraintRequest,CustomConstraint> updateCustomConstraintCallable()- Overrides:
updateCustomConstraintCallablein classOrgPolicyStub
-
getCustomConstraintCallable
- Overrides:
getCustomConstraintCallablein classOrgPolicyStub
-
listCustomConstraintsCallable
public UnaryCallable<ListCustomConstraintsRequest,ListCustomConstraintsResponse> listCustomConstraintsCallable()- Overrides:
listCustomConstraintsCallablein classOrgPolicyStub
-
listCustomConstraintsPagedCallable
public UnaryCallable<ListCustomConstraintsRequest,OrgPolicyClient.ListCustomConstraintsPagedResponse> listCustomConstraintsPagedCallable()- Overrides:
listCustomConstraintsPagedCallablein classOrgPolicyStub
-
deleteCustomConstraintCallable
public UnaryCallable<DeleteCustomConstraintRequest,com.google.protobuf.Empty> deleteCustomConstraintCallable()- Overrides:
deleteCustomConstraintCallablein classOrgPolicyStub
-
close
public final void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein classOrgPolicyStub
-
shutdown
public void shutdown() -
isShutdown
public boolean isShutdown() -
isTerminated
public boolean isTerminated() -
shutdownNow
public void shutdownNow() -
awaitTermination
- Throws:
InterruptedException
-