public static final class AccessContextManagerGrpc.AccessContextManagerStub extends AbstractAsyncStub<AccessContextManagerGrpc.AccessContextManagerStub>
API for setting [Access Levels]
[google.identity.accesscontextmanager.v1.AccessLevel] and [Service
Perimeters] [google.identity.accesscontextmanager.v1.ServicePerimeter]
for Google Cloud Projects. Each organization has one [AccessPolicy]
[google.identity.accesscontextmanager.v1.AccessPolicy] containing the
[Access Levels] [google.identity.accesscontextmanager.v1.AccessLevel]
and [Service Perimeters]
[google.identity.accesscontextmanager.v1.ServicePerimeter]. This
[AccessPolicy] [google.identity.accesscontextmanager.v1.AccessPolicy] is
applicable to all resources in the organization.
AccessPolicies
Inheritance
java.lang.Object >
io.grpc.stub.AbstractStub >
io.grpc.stub.AbstractAsyncStub >
AccessContextManagerGrpc.AccessContextManagerStub
Inherited Members
io.grpc.stub.AbstractAsyncStub.<T>newStub(io.grpc.stub.AbstractStub.StubFactory<T>,io.grpc.Channel)
io.grpc.stub.AbstractAsyncStub.<T>newStub(io.grpc.stub.AbstractStub.StubFactory<T>,io.grpc.Channel,io.grpc.CallOptions)
io.grpc.stub.AbstractStub.<T>withOption(io.grpc.CallOptions.Key<T>,T)
io.grpc.stub.AbstractStub.build(io.grpc.Channel,io.grpc.CallOptions)
io.grpc.stub.AbstractStub.getCallOptions()
io.grpc.stub.AbstractStub.getChannel()
io.grpc.stub.AbstractStub.withCallCredentials(io.grpc.CallCredentials)
io.grpc.stub.AbstractStub.withChannel(io.grpc.Channel)
io.grpc.stub.AbstractStub.withCompression(java.lang.String)
io.grpc.stub.AbstractStub.withDeadline(io.grpc.Deadline)
io.grpc.stub.AbstractStub.withDeadlineAfter(long,java.util.concurrent.TimeUnit)
io.grpc.stub.AbstractStub.withExecutor(java.util.concurrent.Executor)
io.grpc.stub.AbstractStub.withInterceptors(io.grpc.ClientInterceptor...)
io.grpc.stub.AbstractStub.withMaxInboundMessageSize(int)
io.grpc.stub.AbstractStub.withMaxOutboundMessageSize(int)
io.grpc.stub.AbstractStub.withWaitForReady()
Methods
build(Channel channel, CallOptions callOptions)
protected AccessContextManagerGrpc.AccessContextManagerStub build(Channel channel, CallOptions callOptions)
Parameters
Name | Description |
channel | io.grpc.Channel
|
callOptions | io.grpc.CallOptions
|
Returns
Overrides
io.grpc.stub.AbstractStub.build(io.grpc.Channel,io.grpc.CallOptions)
commitServicePerimeters(CommitServicePerimetersRequest request, StreamObserver<Operation> responseObserver)
public void commitServicePerimeters(CommitServicePerimetersRequest request, StreamObserver<Operation> responseObserver)
Commit the dry-run spec for all the [Service Perimeters]
[google.identity.accesscontextmanager.v1.ServicePerimeter] in an
Access Policy.
A commit operation on a Service Perimeter involves copying its spec
field
to that Service Perimeter's status
field. Only [Service Perimeters]
[google.identity.accesscontextmanager.v1.ServicePerimeter] with
use_explicit_dry_run_spec
field set to true are affected by a commit
operation. The longrunning operation from this RPC will have a successful
status once the dry-run specs for all the [Service Perimeters]
[google.identity.accesscontextmanager.v1.ServicePerimeter] have been
committed. If a commit fails, it will cause the longrunning operation to
return an error response and the entire commit operation will be cancelled.
When successful, Operation.response field will contain
CommitServicePerimetersResponse. The dry_run
and the spec
fields will
be cleared after a successful commit operation.
Parameters
createAccessLevel(CreateAccessLevelRequest request, StreamObserver<Operation> responseObserver)
public void createAccessLevel(CreateAccessLevelRequest request, StreamObserver<Operation> responseObserver)
Create an [Access Level]
[google.identity.accesscontextmanager.v1.AccessLevel]. The longrunning
operation from this RPC will have a successful status once the [Access
Level] [google.identity.accesscontextmanager.v1.AccessLevel] has
propagated to long-lasting storage. [Access Levels]
[google.identity.accesscontextmanager.v1.AccessLevel] containing
errors will result in an error response for the first error encountered.
Parameters
createAccessPolicy(AccessPolicy request, StreamObserver<Operation> responseObserver)
public void createAccessPolicy(AccessPolicy request, StreamObserver<Operation> responseObserver)
Create an AccessPolicy
. Fails if this organization already has a
AccessPolicy
. The longrunning Operation will have a successful status
once the AccessPolicy
has propagated to long-lasting storage.
Syntactic and basic semantic errors will be returned in metadata
as a
BadRequest proto.
Parameters
createGcpUserAccessBinding(CreateGcpUserAccessBindingRequest request, StreamObserver<Operation> responseObserver)
public void createGcpUserAccessBinding(CreateGcpUserAccessBindingRequest request, StreamObserver<Operation> responseObserver)
Creates a [GcpUserAccessBinding]
[google.identity.accesscontextmanager.v1.GcpUserAccessBinding]. If the
client specifies a [name]
[google.identity.accesscontextmanager.v1.GcpUserAccessBinding.name],
the server will ignore it. Fails if a resource already exists with the same
[group_key]
[google.identity.accesscontextmanager.v1.GcpUserAccessBinding.group_key].
Completion of this long-running operation does not necessarily signify that
the new binding is deployed onto all affected users, which may take more
time.
Parameters
createServicePerimeter(CreateServicePerimeterRequest request, StreamObserver<Operation> responseObserver)
public void createServicePerimeter(CreateServicePerimeterRequest request, StreamObserver<Operation> responseObserver)
Create a [Service Perimeter]
[google.identity.accesscontextmanager.v1.ServicePerimeter]. The
longrunning operation from this RPC will have a successful status once the
[Service Perimeter]
[google.identity.accesscontextmanager.v1.ServicePerimeter] has
propagated to long-lasting storage. [Service Perimeters]
[google.identity.accesscontextmanager.v1.ServicePerimeter] containing
errors will result in an error response for the first error encountered.
Parameters
deleteAccessLevel(DeleteAccessLevelRequest request, StreamObserver<Operation> responseObserver)
public void deleteAccessLevel(DeleteAccessLevelRequest request, StreamObserver<Operation> responseObserver)
Delete an [Access Level]
[google.identity.accesscontextmanager.v1.AccessLevel] by resource
name. The longrunning operation from this RPC will have a successful status
once the [Access Level]
[google.identity.accesscontextmanager.v1.AccessLevel] has been removed
from long-lasting storage.
Parameters
deleteAccessPolicy(DeleteAccessPolicyRequest request, StreamObserver<Operation> responseObserver)
public void deleteAccessPolicy(DeleteAccessPolicyRequest request, StreamObserver<Operation> responseObserver)
Delete an [AccessPolicy]
[google.identity.accesscontextmanager.v1.AccessPolicy] by resource
name. The longrunning Operation will have a successful status once the
[AccessPolicy] [google.identity.accesscontextmanager.v1.AccessPolicy]
has been removed from long-lasting storage.
Parameters
deleteGcpUserAccessBinding(DeleteGcpUserAccessBindingRequest request, StreamObserver<Operation> responseObserver)
public void deleteGcpUserAccessBinding(DeleteGcpUserAccessBindingRequest request, StreamObserver<Operation> responseObserver)
Deletes a [GcpUserAccessBinding]
[google.identity.accesscontextmanager.v1.GcpUserAccessBinding].
Completion of this long-running operation does not necessarily signify that
the binding deletion is deployed onto all affected users, which may take
more time.
Parameters
deleteServicePerimeter(DeleteServicePerimeterRequest request, StreamObserver<Operation> responseObserver)
public void deleteServicePerimeter(DeleteServicePerimeterRequest request, StreamObserver<Operation> responseObserver)
Delete a [Service Perimeter]
[google.identity.accesscontextmanager.v1.ServicePerimeter] by resource
name. The longrunning operation from this RPC will have a successful status
once the [Service Perimeter]
[google.identity.accesscontextmanager.v1.ServicePerimeter] has been
removed from long-lasting storage.
Parameters
getAccessLevel(GetAccessLevelRequest request, StreamObserver<AccessLevel> responseObserver)
public void getAccessLevel(GetAccessLevelRequest request, StreamObserver<AccessLevel> responseObserver)
Get an [Access Level]
[google.identity.accesscontextmanager.v1.AccessLevel] by resource
name.
Parameters
getAccessPolicy(GetAccessPolicyRequest request, StreamObserver<AccessPolicy> responseObserver)
public void getAccessPolicy(GetAccessPolicyRequest request, StreamObserver<AccessPolicy> responseObserver)
Get an [AccessPolicy]
[google.identity.accesscontextmanager.v1.AccessPolicy] by name.
Parameters
getGcpUserAccessBinding(GetGcpUserAccessBindingRequest request, StreamObserver<GcpUserAccessBinding> responseObserver)
public void getGcpUserAccessBinding(GetGcpUserAccessBindingRequest request, StreamObserver<GcpUserAccessBinding> responseObserver)
Gets the [GcpUserAccessBinding]
[google.identity.accesscontextmanager.v1.GcpUserAccessBinding] with
the given name.
Parameters
getServicePerimeter(GetServicePerimeterRequest request, StreamObserver<ServicePerimeter> responseObserver)
public void getServicePerimeter(GetServicePerimeterRequest request, StreamObserver<ServicePerimeter> responseObserver)
Get a [Service Perimeter]
[google.identity.accesscontextmanager.v1.ServicePerimeter] by resource
name.
Parameters
listAccessLevels(ListAccessLevelsRequest request, StreamObserver<ListAccessLevelsResponse> responseObserver)
public void listAccessLevels(ListAccessLevelsRequest request, StreamObserver<ListAccessLevelsResponse> responseObserver)
List all [Access Levels]
[google.identity.accesscontextmanager.v1.AccessLevel] for an access
policy.
Parameters
listAccessPolicies(ListAccessPoliciesRequest request, StreamObserver<ListAccessPoliciesResponse> responseObserver)
public void listAccessPolicies(ListAccessPoliciesRequest request, StreamObserver<ListAccessPoliciesResponse> responseObserver)
List all [AccessPolicies]
[google.identity.accesscontextmanager.v1.AccessPolicy] under a
container.
Parameters
listGcpUserAccessBindings(ListGcpUserAccessBindingsRequest request, StreamObserver<ListGcpUserAccessBindingsResponse> responseObserver)
public void listGcpUserAccessBindings(ListGcpUserAccessBindingsRequest request, StreamObserver<ListGcpUserAccessBindingsResponse> responseObserver)
Lists all [GcpUserAccessBindings]
[google.identity.accesscontextmanager.v1.GcpUserAccessBinding] for a
Google Cloud organization.
Parameters
listServicePerimeters(ListServicePerimetersRequest request, StreamObserver<ListServicePerimetersResponse> responseObserver)
public void listServicePerimeters(ListServicePerimetersRequest request, StreamObserver<ListServicePerimetersResponse> responseObserver)
List all [Service Perimeters]
[google.identity.accesscontextmanager.v1.ServicePerimeter] for an
access policy.
Parameters
replaceAccessLevels(ReplaceAccessLevelsRequest request, StreamObserver<Operation> responseObserver)
public void replaceAccessLevels(ReplaceAccessLevelsRequest request, StreamObserver<Operation> responseObserver)
Replace all existing [Access Levels]
[google.identity.accesscontextmanager.v1.AccessLevel] in an [Access
Policy] [google.identity.accesscontextmanager.v1.AccessPolicy] with
the [Access Levels]
[google.identity.accesscontextmanager.v1.AccessLevel] provided. This
is done atomically. The longrunning operation from this RPC will have a
successful status once all replacements have propagated to long-lasting
storage. Replacements containing errors will result in an error response
for the first error encountered. Replacement will be cancelled on error,
existing [Access Levels]
[google.identity.accesscontextmanager.v1.AccessLevel] will not be
affected. Operation.response field will contain
ReplaceAccessLevelsResponse. Removing [Access Levels]
[google.identity.accesscontextmanager.v1.AccessLevel] contained in existing
[Service Perimeters]
[google.identity.accesscontextmanager.v1.ServicePerimeter] will result in
error.
Parameters
replaceServicePerimeters(ReplaceServicePerimetersRequest request, StreamObserver<Operation> responseObserver)
public void replaceServicePerimeters(ReplaceServicePerimetersRequest request, StreamObserver<Operation> responseObserver)
Replace all existing [Service Perimeters]
[google.identity.accesscontextmanager.v1.ServicePerimeter] in an
[Access Policy] [google.identity.accesscontextmanager.v1.AccessPolicy]
with the [Service Perimeters]
[google.identity.accesscontextmanager.v1.ServicePerimeter] provided.
This is done atomically. The longrunning operation from this
RPC will have a successful status once all replacements have propagated to
long-lasting storage. Replacements containing errors will result in an
error response for the first error encountered. Replacement will be
cancelled on error, existing [Service Perimeters]
[google.identity.accesscontextmanager.v1.ServicePerimeter] will not be
affected. Operation.response field will contain
ReplaceServicePerimetersResponse.
Parameters
updateAccessLevel(UpdateAccessLevelRequest request, StreamObserver<Operation> responseObserver)
public void updateAccessLevel(UpdateAccessLevelRequest request, StreamObserver<Operation> responseObserver)
Update an [Access Level]
[google.identity.accesscontextmanager.v1.AccessLevel]. The longrunning
operation from this RPC will have a successful status once the changes to
the [Access Level]
[google.identity.accesscontextmanager.v1.AccessLevel] have propagated
to long-lasting storage. [Access Levels]
[google.identity.accesscontextmanager.v1.AccessLevel] containing
errors will result in an error response for the first error encountered.
Parameters
updateAccessPolicy(UpdateAccessPolicyRequest request, StreamObserver<Operation> responseObserver)
public void updateAccessPolicy(UpdateAccessPolicyRequest request, StreamObserver<Operation> responseObserver)
Update an [AccessPolicy]
[google.identity.accesscontextmanager.v1.AccessPolicy]. The
longrunning Operation from this RPC will have a successful status once the
changes to the [AccessPolicy]
[google.identity.accesscontextmanager.v1.AccessPolicy] have propagated
to long-lasting storage. Syntactic and basic semantic errors will be
returned in metadata
as a BadRequest proto.
Parameters
updateGcpUserAccessBinding(UpdateGcpUserAccessBindingRequest request, StreamObserver<Operation> responseObserver)
public void updateGcpUserAccessBinding(UpdateGcpUserAccessBindingRequest request, StreamObserver<Operation> responseObserver)
Updates a [GcpUserAccessBinding]
[google.identity.accesscontextmanager.v1.GcpUserAccessBinding].
Completion of this long-running operation does not necessarily signify that
the changed binding is deployed onto all affected users, which may take
more time.
Parameters
updateServicePerimeter(UpdateServicePerimeterRequest request, StreamObserver<Operation> responseObserver)
public void updateServicePerimeter(UpdateServicePerimeterRequest request, StreamObserver<Operation> responseObserver)
Update a [Service Perimeter]
[google.identity.accesscontextmanager.v1.ServicePerimeter]. The
longrunning operation from this RPC will have a successful status once the
changes to the [Service Perimeter]
[google.identity.accesscontextmanager.v1.ServicePerimeter] have
propagated to long-lasting storage. [Service Perimeter]
[google.identity.accesscontextmanager.v1.ServicePerimeter] containing
errors will result in an error response for the first error encountered.
Parameters