Class OrgPolicyGrpc (2.53.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
Type Description
String

Static Methods

bindService(OrgPolicyGrpc.AsyncService service)

public static final ServerServiceDefinition bindService(OrgPolicyGrpc.AsyncService service)
Parameter
Name Description
service OrgPolicyGrpc.AsyncService
Returns
Type Description
io.grpc.ServerServiceDefinition

getCreateCustomConstraintMethod()

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

getCreatePolicyMethod()

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

getDeleteCustomConstraintMethod()

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

getDeletePolicyMethod()

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

getGetCustomConstraintMethod()

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

getGetEffectivePolicyMethod()

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

getGetPolicyMethod()

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

getListConstraintsMethod()

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

getListCustomConstraintsMethod()

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

getListPoliciesMethod()

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

getServiceDescriptor()

public static ServiceDescriptor getServiceDescriptor()
Returns
Type Description
io.grpc.ServiceDescriptor

getUpdateCustomConstraintMethod()

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

getUpdatePolicyMethod()

public static MethodDescriptor<UpdatePolicyRequest,Policy> getUpdatePolicyMethod()
Returns
Type Description
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
Name Description
channel io.grpc.Channel
Returns
Type Description
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
Name Description
channel io.grpc.Channel
Returns
Type Description
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
Name Description
channel io.grpc.Channel
Returns
Type Description
OrgPolicyGrpc.OrgPolicyStub