- 2.54.0 (latest)
- 2.53.0
- 2.52.0
- 2.50.0
- 2.49.0
- 2.48.0
- 2.47.0
- 2.46.0
- 2.45.0
- 2.44.0
- 2.43.0
- 2.42.0
- 2.41.0
- 2.40.0
- 2.38.0
- 2.37.0
- 2.36.0
- 2.35.0
- 2.34.0
- 2.33.0
- 2.32.0
- 2.31.0
- 2.30.0
- 2.29.0
- 2.28.0
- 2.25.0
- 2.24.0
- 2.23.0
- 2.22.0
- 2.21.0
- 2.20.0
- 2.19.0
- 2.18.0
- 2.17.0
- 2.16.0
- 2.15.0
- 2.14.0
- 2.13.0
- 2.12.0
- 2.11.0
- 2.10.0
- 2.9.0
- 2.8.0
- 2.7.0
- 2.6.0
- 2.5.0
- 2.4.10
- 2.3.1
- 2.2.4
- 2.1.12
public static final class AccessApprovalGrpc.AccessApprovalStub extends AbstractAsyncStub<AccessApprovalGrpc.AccessApprovalStub>
A stub to allow clients to do asynchronous rpc calls to service AccessApproval.
This API allows a customer to manage accesses to cloud resources by Google personnel. It defines the following resource model:
- The API has a collection of
ApprovalRequest
resources, named
approvalRequests/{approval_request}
- The API has top-level settings per Project/Folder/Organization, named
accessApprovalSettings
The service also periodically emails a list of recipients, defined at the Project/Folder/Organization level in the accessApprovalSettings, when there is a pending ApprovalRequest for them to act on. The ApprovalRequests can also optionally be published to a Pub/Sub topic owned by the customer (contact support if you would like to enable Pub/Sub notifications). ApprovalRequests can be approved or dismissed. Google personnel can only access the indicated resource or resources if the request is approved (subject to some exclusions: https://cloud.google.com/access-approval/docs/overview#exclusions). Note: Using Access Approval functionality will mean that Google may not be able to meet the SLAs for your chosen products, as any support response times may be dramatically increased. As such the SLAs do not apply to any service disruption to the extent impacted by Customer's use of Access Approval. Do not enable Access Approval for projects where you may require high service availability and rapid response by Google Cloud Support. After a request is approved or dismissed, no further action may be taken on it. Requests with the requested_expiration in the past or with no activity for 14 days are considered dismissed. When an approval expires, the request is considered dismissed. If a request is not approved or dismissed, we call it pending.
Inheritance
java.lang.Object > io.grpc.stub.AbstractStub > io.grpc.stub.AbstractAsyncStub > AccessApprovalGrpc.AccessApprovalStubMethods
approveApprovalRequest(ApproveApprovalRequestMessage request, StreamObserver<ApprovalRequest> responseObserver)
public void approveApprovalRequest(ApproveApprovalRequestMessage request, StreamObserver<ApprovalRequest> responseObserver)
Approves a request and returns the updated ApprovalRequest. Returns NOT_FOUND if the request does not exist. Returns FAILED_PRECONDITION if the request exists but is not in a pending state.
Parameters | |
---|---|
Name | Description |
request |
ApproveApprovalRequestMessage |
responseObserver |
io.grpc.stub.StreamObserver<ApprovalRequest> |
build(Channel channel, CallOptions callOptions)
protected AccessApprovalGrpc.AccessApprovalStub build(Channel channel, CallOptions callOptions)
Parameters | |
---|---|
Name | Description |
channel |
io.grpc.Channel |
callOptions |
io.grpc.CallOptions |
Returns | |
---|---|
Type | Description |
AccessApprovalGrpc.AccessApprovalStub |
deleteAccessApprovalSettings(DeleteAccessApprovalSettingsMessage request, StreamObserver<Empty> responseObserver)
public void deleteAccessApprovalSettings(DeleteAccessApprovalSettingsMessage request, StreamObserver<Empty> responseObserver)
Deletes the settings associated with a project, folder, or organization. This will have the effect of disabling Access Approval for the project, folder, or organization, but only if all ancestors also have Access Approval disabled. If Access Approval is enabled at a higher level of the hierarchy, then Access Approval will still be enabled at this level as the settings are inherited.
Parameters | |
---|---|
Name | Description |
request |
DeleteAccessApprovalSettingsMessage |
responseObserver |
io.grpc.stub.StreamObserver<Empty> |
dismissApprovalRequest(DismissApprovalRequestMessage request, StreamObserver<ApprovalRequest> responseObserver)
public void dismissApprovalRequest(DismissApprovalRequestMessage request, StreamObserver<ApprovalRequest> responseObserver)
Dismisses a request. Returns the updated ApprovalRequest. NOTE: This does not deny access to the resource if another request has been made and approved. It is equivalent in effect to ignoring the request altogether. Returns NOT_FOUND if the request does not exist. Returns FAILED_PRECONDITION if the request exists but is not in a pending state.
Parameters | |
---|---|
Name | Description |
request |
DismissApprovalRequestMessage |
responseObserver |
io.grpc.stub.StreamObserver<ApprovalRequest> |
getAccessApprovalServiceAccount(GetAccessApprovalServiceAccountMessage request, StreamObserver<AccessApprovalServiceAccount> responseObserver)
public void getAccessApprovalServiceAccount(GetAccessApprovalServiceAccountMessage request, StreamObserver<AccessApprovalServiceAccount> responseObserver)
Retrieves the service account that is used by Access Approval to access KMS keys for signing approved approval requests.
Parameters | |
---|---|
Name | Description |
request |
GetAccessApprovalServiceAccountMessage |
responseObserver |
io.grpc.stub.StreamObserver<AccessApprovalServiceAccount> |
getAccessApprovalSettings(GetAccessApprovalSettingsMessage request, StreamObserver<AccessApprovalSettings> responseObserver)
public void getAccessApprovalSettings(GetAccessApprovalSettingsMessage request, StreamObserver<AccessApprovalSettings> responseObserver)
Gets the settings associated with a project, folder, or organization.
Parameters | |
---|---|
Name | Description |
request |
GetAccessApprovalSettingsMessage |
responseObserver |
io.grpc.stub.StreamObserver<AccessApprovalSettings> |
getApprovalRequest(GetApprovalRequestMessage request, StreamObserver<ApprovalRequest> responseObserver)
public void getApprovalRequest(GetApprovalRequestMessage request, StreamObserver<ApprovalRequest> responseObserver)
Gets an approval request. Returns NOT_FOUND if the request does not exist.
Parameters | |
---|---|
Name | Description |
request |
GetApprovalRequestMessage |
responseObserver |
io.grpc.stub.StreamObserver<ApprovalRequest> |
invalidateApprovalRequest(InvalidateApprovalRequestMessage request, StreamObserver<ApprovalRequest> responseObserver)
public void invalidateApprovalRequest(InvalidateApprovalRequestMessage request, StreamObserver<ApprovalRequest> responseObserver)
Invalidates an existing ApprovalRequest. Returns the updated ApprovalRequest. NOTE: This does not deny access to the resource if another request has been made and approved. It only invalidates a single approval. Returns FAILED_PRECONDITION if the request exists but is not in an approved state.
Parameters | |
---|---|
Name | Description |
request |
InvalidateApprovalRequestMessage |
responseObserver |
io.grpc.stub.StreamObserver<ApprovalRequest> |
listApprovalRequests(ListApprovalRequestsMessage request, StreamObserver<ListApprovalRequestsResponse> responseObserver)
public void listApprovalRequests(ListApprovalRequestsMessage request, StreamObserver<ListApprovalRequestsResponse> responseObserver)
Lists approval requests associated with a project, folder, or organization. Approval requests can be filtered by state (pending, active, dismissed). The order is reverse chronological.
Parameters | |
---|---|
Name | Description |
request |
ListApprovalRequestsMessage |
responseObserver |
io.grpc.stub.StreamObserver<ListApprovalRequestsResponse> |
updateAccessApprovalSettings(UpdateAccessApprovalSettingsMessage request, StreamObserver<AccessApprovalSettings> responseObserver)
public void updateAccessApprovalSettings(UpdateAccessApprovalSettingsMessage request, StreamObserver<AccessApprovalSettings> responseObserver)
Updates the settings associated with a project, folder, or organization. Settings to update are determined by the value of field_mask.
Parameters | |
---|---|
Name | Description |
request |
UpdateAccessApprovalSettingsMessage |
responseObserver |
io.grpc.stub.StreamObserver<AccessApprovalSettings> |