Class PrivilegedAccessManagerGrpc.PrivilegedAccessManagerStub
java.lang.Object
io.grpc.stub.AbstractStub<S>
io.grpc.stub.AbstractAsyncStub<PrivilegedAccessManagerGrpc.PrivilegedAccessManagerStub>
com.google.cloud.privilegedaccessmanager.v1.PrivilegedAccessManagerGrpc.PrivilegedAccessManagerStub
- Enclosing class:
- PrivilegedAccessManagerGrpc
public static final class PrivilegedAccessManagerGrpc.PrivilegedAccessManagerStub
extends io.grpc.stub.AbstractAsyncStub<PrivilegedAccessManagerGrpc.PrivilegedAccessManagerStub>
A stub to allow clients to do asynchronous rpc calls to service PrivilegedAccessManager.
This API allows customers to manage temporary, request based privileged
access to their resources.
It defines the following resource model:
* A collection of `Entitlement` resources. An entitlement allows configuring
(among other things):
* Some kind of privileged access that users can request.
* A set of users called _requesters_ who can request this access.
* A maximum duration for which the access can be requested.
* An optional approval workflow which must be satisfied before access is
granted.
* A collection of `Grant` resources. A grant is a request by a requester to
get the privileged access specified in an entitlement for some duration.
After the approval workflow as specified in the entitlement is satisfied,
the specified access is given to the requester. The access is automatically
taken back after the requested duration is over.
-
Nested Class Summary
Nested classes/interfaces inherited from class io.grpc.stub.AbstractStub
io.grpc.stub.AbstractStub.StubFactory<T extends io.grpc.stub.AbstractStub<T>> -
Method Summary
Modifier and TypeMethodDescriptionvoidapproveGrant(ApproveGrantRequest request, io.grpc.stub.StreamObserver<Grant> responseObserver) `ApproveGrant` is used to approve a grant.build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) voidcheckOnboardingStatus(CheckOnboardingStatusRequest request, io.grpc.stub.StreamObserver<CheckOnboardingStatusResponse> responseObserver) `CheckOnboardingStatus` reports the onboarding status for a project/folder/organization.voidcreateEntitlement(CreateEntitlementRequest request, io.grpc.stub.StreamObserver<Operation> responseObserver) Creates a new entitlement in a given project/folder/organization and location.voidcreateGrant(CreateGrantRequest request, io.grpc.stub.StreamObserver<Grant> responseObserver) Creates a new grant in a given project/folder/organization and location.voiddeleteEntitlement(DeleteEntitlementRequest request, io.grpc.stub.StreamObserver<Operation> responseObserver) Deletes a single entitlement.voiddenyGrant(DenyGrantRequest request, io.grpc.stub.StreamObserver<Grant> responseObserver) `DenyGrant` is used to deny a grant.voidgetEntitlement(GetEntitlementRequest request, io.grpc.stub.StreamObserver<Entitlement> responseObserver) Gets details of a single entitlement.voidgetGrant(GetGrantRequest request, io.grpc.stub.StreamObserver<Grant> responseObserver) Get details of a single grant.voidlistEntitlements(ListEntitlementsRequest request, io.grpc.stub.StreamObserver<ListEntitlementsResponse> responseObserver) Lists entitlements in a given project/folder/organization and location.voidlistGrants(ListGrantsRequest request, io.grpc.stub.StreamObserver<ListGrantsResponse> responseObserver) Lists grants for a given entitlement.voidrevokeGrant(RevokeGrantRequest request, io.grpc.stub.StreamObserver<Operation> responseObserver) `RevokeGrant` is used to immediately revoke access for a grant.voidsearchEntitlements(SearchEntitlementsRequest request, io.grpc.stub.StreamObserver<SearchEntitlementsResponse> responseObserver) `SearchEntitlements` returns entitlements on which the caller has the specified access.voidsearchGrants(SearchGrantsRequest request, io.grpc.stub.StreamObserver<SearchGrantsResponse> responseObserver) `SearchGrants` returns grants that are related to the calling user in the specified way.voidupdateEntitlement(UpdateEntitlementRequest request, io.grpc.stub.StreamObserver<Operation> responseObserver) Updates the entitlement specified in the request.Methods inherited from class io.grpc.stub.AbstractAsyncStub
newStub, newStubMethods inherited from class io.grpc.stub.AbstractStub
getCallOptions, getChannel, withCallCredentials, withChannel, withCompression, withDeadline, withDeadlineAfter, withDeadlineAfter, withExecutor, withInterceptors, withMaxInboundMessageSize, withMaxOutboundMessageSize, withOnReadyThreshold, withOption, withWaitForReady
-
Method Details
-
build
protected PrivilegedAccessManagerGrpc.PrivilegedAccessManagerStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) - Specified by:
buildin classio.grpc.stub.AbstractStub<PrivilegedAccessManagerGrpc.PrivilegedAccessManagerStub>
-
checkOnboardingStatus
public void checkOnboardingStatus(CheckOnboardingStatusRequest request, io.grpc.stub.StreamObserver<CheckOnboardingStatusResponse> responseObserver) `CheckOnboardingStatus` reports the onboarding status for a project/folder/organization. Any findings reported by this API need to be fixed before PAM can be used on the resource.
-
listEntitlements
public void listEntitlements(ListEntitlementsRequest request, io.grpc.stub.StreamObserver<ListEntitlementsResponse> responseObserver) Lists entitlements in a given project/folder/organization and location.
-
searchEntitlements
public void searchEntitlements(SearchEntitlementsRequest request, io.grpc.stub.StreamObserver<SearchEntitlementsResponse> responseObserver) `SearchEntitlements` returns entitlements on which the caller has the specified access.
-
getEntitlement
public void getEntitlement(GetEntitlementRequest request, io.grpc.stub.StreamObserver<Entitlement> responseObserver) Gets details of a single entitlement.
-
createEntitlement
public void createEntitlement(CreateEntitlementRequest request, io.grpc.stub.StreamObserver<Operation> responseObserver) Creates a new entitlement in a given project/folder/organization and location.
-
deleteEntitlement
public void deleteEntitlement(DeleteEntitlementRequest request, io.grpc.stub.StreamObserver<Operation> responseObserver) Deletes a single entitlement. This method can only be called when there are no in-progress (`ACTIVE`/`ACTIVATING`/`REVOKING`) grants under the entitlement.
-
updateEntitlement
public void updateEntitlement(UpdateEntitlementRequest request, io.grpc.stub.StreamObserver<Operation> responseObserver) Updates the entitlement specified in the request. Updated fields in the entitlement need to be specified in an update mask. The changes made to an entitlement are applicable only on future grants of the entitlement. However, if new approvers are added or existing approvers are removed from the approval workflow, the changes are effective on existing grants. The following fields are not supported for updates: * All immutable fields * Entitlement name * Resource name * Resource type * Adding an approval workflow in an entitlement which previously had no approval workflow. * Deleting the approval workflow from an entitlement. * Adding or deleting a step in the approval workflow (only one step is supported) Note that updates are allowed on the list of approvers in an approval workflow step. -
listGrants
public void listGrants(ListGrantsRequest request, io.grpc.stub.StreamObserver<ListGrantsResponse> responseObserver) Lists grants for a given entitlement.
-
searchGrants
public void searchGrants(SearchGrantsRequest request, io.grpc.stub.StreamObserver<SearchGrantsResponse> responseObserver) `SearchGrants` returns grants that are related to the calling user in the specified way.
-
getGrant
Get details of a single grant.
-
createGrant
public void createGrant(CreateGrantRequest request, io.grpc.stub.StreamObserver<Grant> responseObserver) Creates a new grant in a given project/folder/organization and location.
-
approveGrant
public void approveGrant(ApproveGrantRequest request, io.grpc.stub.StreamObserver<Grant> responseObserver) `ApproveGrant` is used to approve a grant. This method can only be called on a grant when it's in the `APPROVAL_AWAITED` state. This operation can't be undone.
-
denyGrant
public void denyGrant(DenyGrantRequest request, io.grpc.stub.StreamObserver<Grant> responseObserver) `DenyGrant` is used to deny a grant. This method can only be called on a grant when it's in the `APPROVAL_AWAITED` state. This operation can't be undone.
-
revokeGrant
public void revokeGrant(RevokeGrantRequest request, io.grpc.stub.StreamObserver<Operation> responseObserver) `RevokeGrant` is used to immediately revoke access for a grant. This method can be called when the grant is in a non-terminal state.
-