@Generated("by gapic-generator-java")
Package com.google.cloud.kms.inventory.v1
A client to KMS Inventory API
The interfaces provided are listed below, along with usage samples.
======================= KeyDashboardServiceClient =======================
Service Description: Provides a cross-region view of all Cloud KMS keys in a given Cloud project.
Sample for KeyDashboardServiceClient:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (KeyDashboardServiceClient keyDashboardServiceClient = KeyDashboardServiceClient.create()) {
ProjectName parent = ProjectName.of("[PROJECT]");
for (CryptoKey element : keyDashboardServiceClient.listCryptoKeys(parent).iterateAll()) {
// doThingsWith(element);
}
}
======================= KeyTrackingServiceClient =======================
Service Description: Returns information about the resources in an org that are protected by a given Cloud KMS key via CMEK.
Sample for KeyTrackingServiceClient:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (KeyTrackingServiceClient keyTrackingServiceClient = KeyTrackingServiceClient.create()) {
ProtectedResourcesSummaryName name =
ProtectedResourcesSummaryName.ofProjectLocationKeyRingCryptoKeyName(
"[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]");
ProtectedResourcesSummary response =
keyTrackingServiceClient.getProtectedResourcesSummary(name);
}
-
Interface Summary Interface Description GetProtectedResourcesSummaryRequestOrBuilder KeyDashboardServiceGrpc.AsyncService Provides a cross-region view of all Cloud KMS keys in a given Cloud project.KeyTrackingServiceGrpc.AsyncService Returns information about the resources in an org that are protected by a given Cloud KMS key via CMEK.ListCryptoKeysRequestOrBuilder ListCryptoKeysResponseOrBuilder ProtectedResourceOrBuilder ProtectedResourcesSummaryOrBuilder SearchProtectedResourcesRequestOrBuilder SearchProtectedResourcesResponseOrBuilder -
Class Summary Class Description GetProtectedResourcesSummaryRequest Request message for [KeyTrackingService.GetProtectedResourcesSummary][google.cloud.kms.inventory.v1.KeyTrackingService.GetProtectedResourcesSummary].GetProtectedResourcesSummaryRequest.Builder Request message for [KeyTrackingService.GetProtectedResourcesSummary][google.cloud.kms.inventory.v1.KeyTrackingService.GetProtectedResourcesSummary].KeyDashboardServiceClient Service Description: Provides a cross-region view of all Cloud KMS keys in a given Cloud project.KeyDashboardServiceClient.ListCryptoKeysFixedSizeCollection KeyDashboardServiceClient.ListCryptoKeysPage KeyDashboardServiceClient.ListCryptoKeysPagedResponse KeyDashboardServiceGrpc Provides a cross-region view of all Cloud KMS keys in a given Cloud project.KeyDashboardServiceGrpc.KeyDashboardServiceBlockingStub A stub to allow clients to do synchronous rpc calls to service KeyDashboardService.KeyDashboardServiceGrpc.KeyDashboardServiceFutureStub A stub to allow clients to do ListenableFuture-style rpc calls to service KeyDashboardService.KeyDashboardServiceGrpc.KeyDashboardServiceImplBase Base class for the server implementation of the service KeyDashboardService.KeyDashboardServiceGrpc.KeyDashboardServiceStub A stub to allow clients to do asynchronous rpc calls to service KeyDashboardService.KeyDashboardServiceProto KeyDashboardServiceSettings Settings class to configure an instance ofKeyDashboardServiceClient
.KeyDashboardServiceSettings.Builder Builder for KeyDashboardServiceSettings.KeyTrackingServiceClient Service Description: Returns information about the resources in an org that are protected by a given Cloud KMS key via CMEK.KeyTrackingServiceClient.SearchProtectedResourcesFixedSizeCollection KeyTrackingServiceClient.SearchProtectedResourcesPage KeyTrackingServiceClient.SearchProtectedResourcesPagedResponse KeyTrackingServiceGrpc Returns information about the resources in an org that are protected by a given Cloud KMS key via CMEK.KeyTrackingServiceGrpc.KeyTrackingServiceBlockingStub A stub to allow clients to do synchronous rpc calls to service KeyTrackingService.KeyTrackingServiceGrpc.KeyTrackingServiceFutureStub A stub to allow clients to do ListenableFuture-style rpc calls to service KeyTrackingService.KeyTrackingServiceGrpc.KeyTrackingServiceImplBase Base class for the server implementation of the service KeyTrackingService.KeyTrackingServiceGrpc.KeyTrackingServiceStub A stub to allow clients to do asynchronous rpc calls to service KeyTrackingService.KeyTrackingServiceProto KeyTrackingServiceSettings Settings class to configure an instance ofKeyTrackingServiceClient
.KeyTrackingServiceSettings.Builder Builder for KeyTrackingServiceSettings.ListCryptoKeysRequest Request message for [KeyDashboardService.ListCryptoKeys][google.cloud.kms.inventory.v1.KeyDashboardService.ListCryptoKeys].ListCryptoKeysRequest.Builder Request message for [KeyDashboardService.ListCryptoKeys][google.cloud.kms.inventory.v1.KeyDashboardService.ListCryptoKeys].ListCryptoKeysResponse Response message for [KeyDashboardService.ListCryptoKeys][google.cloud.kms.inventory.v1.KeyDashboardService.ListCryptoKeys].ListCryptoKeysResponse.Builder Response message for [KeyDashboardService.ListCryptoKeys][google.cloud.kms.inventory.v1.KeyDashboardService.ListCryptoKeys].OrganizationName OrganizationName.Builder Builder for organizations/{organization}.ProjectName ProjectName.Builder Builder for projects/{project}.ProtectedResource Metadata about a resource protected by a Cloud KMS key.ProtectedResource.Builder Metadata about a resource protected by a Cloud KMS key.ProtectedResourcesSummary Aggregate information about the resources protected by a Cloud KMS key in the same Cloud organization as the key.ProtectedResourcesSummary.Builder Aggregate information about the resources protected by a Cloud KMS key in the same Cloud organization as the key.ProtectedResourcesSummaryName ProtectedResourcesSummaryName.Builder Builder for projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/protectedResourcesSummary.ProtectedResourcesSummaryName.ProjectLocationKeyRingCryptoKeyCryptoKeyVersionBuilder Builder for projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}/protectedResourcesSummary.SearchProtectedResourcesRequest Request message for [KeyTrackingService.SearchProtectedResources][google.cloud.kms.inventory.v1.KeyTrackingService.SearchProtectedResources].SearchProtectedResourcesRequest.Builder Request message for [KeyTrackingService.SearchProtectedResources][google.cloud.kms.inventory.v1.KeyTrackingService.SearchProtectedResources].SearchProtectedResourcesResponse Response message for [KeyTrackingService.SearchProtectedResources][google.cloud.kms.inventory.v1.KeyTrackingService.SearchProtectedResources].SearchProtectedResourcesResponse.Builder Response message for [KeyTrackingService.SearchProtectedResources][google.cloud.kms.inventory.v1.KeyTrackingService.SearchProtectedResources].