Class OrgPolicyGrpc (2.35.0)

public final class OrgPolicyGrpc

An interface for managing organization policies. The Organization Policy Service provides a simple mechanism for organizations to restrict the allowed configurations across their entire resource hierarchy. You can use a policy to configure restrictions on resources. For example, you can enforce a policy that restricts which Google Cloud APIs can be activated in a certain part of your resource hierarchy, or prevents serial port access to VM instances in a particular folder. Policies are inherited down through the resource hierarchy. A policy applied to a parent resource automatically applies to all its child resources unless overridden with a policy lower in the hierarchy. A constraint defines an aspect of a resource's configuration that can be controlled by an organization's policy administrator. Policies are a collection of constraints that defines their allowable configuration on a particular resource and its child resources.

Inheritance

java.lang.Object > OrgPolicyGrpc

Static Fields

SERVICE_NAME

public static final String SERVICE_NAME
Field Value
TypeDescription
String

Static Methods

bindService(OrgPolicyGrpc.AsyncService service)

public static final ServerServiceDefinition bindService(OrgPolicyGrpc.AsyncService service)
Parameter
NameDescription
serviceOrgPolicyGrpc.AsyncService
Returns
TypeDescription
io.grpc.ServerServiceDefinition

getCreateCustomConstraintMethod()

public static MethodDescriptor<CreateCustomConstraintRequest,CustomConstraint> getCreateCustomConstraintMethod()
Returns
TypeDescription
io.grpc.MethodDescriptor<CreateCustomConstraintRequest,CustomConstraint>

getCreatePolicyMethod()

public static MethodDescriptor<CreatePolicyRequest,Policy> getCreatePolicyMethod()
Returns
TypeDescription
io.grpc.MethodDescriptor<CreatePolicyRequest,Policy>

getDeleteCustomConstraintMethod()

public static MethodDescriptor<DeleteCustomConstraintRequest,Empty> getDeleteCustomConstraintMethod()
Returns
TypeDescription
io.grpc.MethodDescriptor<DeleteCustomConstraintRequest,Empty>

getDeletePolicyMethod()

public static MethodDescriptor<DeletePolicyRequest,Empty> getDeletePolicyMethod()
Returns
TypeDescription
io.grpc.MethodDescriptor<DeletePolicyRequest,Empty>

getGetCustomConstraintMethod()

public static MethodDescriptor<GetCustomConstraintRequest,CustomConstraint> getGetCustomConstraintMethod()
Returns
TypeDescription
io.grpc.MethodDescriptor<GetCustomConstraintRequest,CustomConstraint>

getGetEffectivePolicyMethod()

public static MethodDescriptor<GetEffectivePolicyRequest,Policy> getGetEffectivePolicyMethod()
Returns
TypeDescription
io.grpc.MethodDescriptor<GetEffectivePolicyRequest,Policy>

getGetPolicyMethod()

public static MethodDescriptor<GetPolicyRequest,Policy> getGetPolicyMethod()
Returns
TypeDescription
io.grpc.MethodDescriptor<GetPolicyRequest,Policy>

getListConstraintsMethod()

public static MethodDescriptor<ListConstraintsRequest,ListConstraintsResponse> getListConstraintsMethod()
Returns
TypeDescription
io.grpc.MethodDescriptor<ListConstraintsRequest,ListConstraintsResponse>

getListCustomConstraintsMethod()

public static MethodDescriptor<ListCustomConstraintsRequest,ListCustomConstraintsResponse> getListCustomConstraintsMethod()
Returns
TypeDescription
io.grpc.MethodDescriptor<ListCustomConstraintsRequest,ListCustomConstraintsResponse>

getListPoliciesMethod()

public static MethodDescriptor<ListPoliciesRequest,ListPoliciesResponse> getListPoliciesMethod()
Returns
TypeDescription
io.grpc.MethodDescriptor<ListPoliciesRequest,ListPoliciesResponse>

getServiceDescriptor()

public static ServiceDescriptor getServiceDescriptor()
Returns
TypeDescription
io.grpc.ServiceDescriptor

getUpdateCustomConstraintMethod()

public static MethodDescriptor<UpdateCustomConstraintRequest,CustomConstraint> getUpdateCustomConstraintMethod()
Returns
TypeDescription
io.grpc.MethodDescriptor<UpdateCustomConstraintRequest,CustomConstraint>

getUpdatePolicyMethod()

public static MethodDescriptor<UpdatePolicyRequest,Policy> getUpdatePolicyMethod()
Returns
TypeDescription
io.grpc.MethodDescriptor<UpdatePolicyRequest,Policy>

newBlockingStub(Channel channel)

public static OrgPolicyGrpc.OrgPolicyBlockingStub newBlockingStub(Channel channel)

Creates a new blocking-style stub that supports unary and streaming output calls on the service

Parameter
NameDescription
channelio.grpc.Channel
Returns
TypeDescription
OrgPolicyGrpc.OrgPolicyBlockingStub

newFutureStub(Channel channel)

public static OrgPolicyGrpc.OrgPolicyFutureStub newFutureStub(Channel channel)

Creates a new ListenableFuture-style stub that supports unary calls on the service

Parameter
NameDescription
channelio.grpc.Channel
Returns
TypeDescription
OrgPolicyGrpc.OrgPolicyFutureStub

newStub(Channel channel)

public static OrgPolicyGrpc.OrgPolicyStub newStub(Channel channel)

Creates a new async stub that supports all call types for the service

Parameter
NameDescription
channelio.grpc.Channel
Returns
TypeDescription
OrgPolicyGrpc.OrgPolicyStub