Class KeyTrackingServiceGrpc.KeyTrackingServiceBlockingV2Stub (0.76.0)

public static final class KeyTrackingServiceGrpc.KeyTrackingServiceBlockingV2Stub extends AbstractBlockingStub<KeyTrackingServiceGrpc.KeyTrackingServiceBlockingV2Stub>

A stub to allow clients to do synchronous rpc calls to service KeyTrackingService.

Returns information about the resources in an org that are protected by a given Cloud KMS key via CMEK.

Inheritance

java.lang.Object > io.grpc.stub.AbstractStub > io.grpc.stub.AbstractBlockingStub > KeyTrackingServiceGrpc.KeyTrackingServiceBlockingV2Stub

Methods

build(Channel channel, CallOptions callOptions)

protected KeyTrackingServiceGrpc.KeyTrackingServiceBlockingV2Stub build(Channel channel, CallOptions callOptions)
Parameters
Name Description
channel io.grpc.Channel
callOptions io.grpc.CallOptions
Returns
Type Description
KeyTrackingServiceGrpc.KeyTrackingServiceBlockingV2Stub
Overrides
io.grpc.stub.AbstractStub.build(io.grpc.Channel,io.grpc.CallOptions)

getProtectedResourcesSummary(GetProtectedResourcesSummaryRequest request)

public ProtectedResourcesSummary getProtectedResourcesSummary(GetProtectedResourcesSummaryRequest request)

Returns aggregate information about the resources protected by the given Cloud KMS CryptoKey. By default, summary of resources within the same Cloud organization as the key will be returned, which requires the KMS organization service account to be configured(refer https://docs.cloud.google.com/kms/docs/view-key-usage#required-roles). If the KMS organization service account is not configured or key's project is not part of an organization, set fallback_scope to FALLBACK_SCOPE_PROJECT to retrieve a summary of protected resources within the key's project.

Parameter
Name Description
request GetProtectedResourcesSummaryRequest
Returns
Type Description
ProtectedResourcesSummary
Exceptions
Type Description
io.grpc.StatusException

searchProtectedResources(SearchProtectedResourcesRequest request)

public SearchProtectedResourcesResponse searchProtectedResources(SearchProtectedResourcesRequest request)

Returns metadata about the resources protected by the given Cloud KMS CryptoKey in the given Cloud organization/project.

Parameter
Name Description
request SearchProtectedResourcesRequest
Returns
Type Description
SearchProtectedResourcesResponse
Exceptions
Type Description
io.grpc.StatusException