1 /* 2 * Copyright 2022 Google LLC 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * https://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17 /** 18 * A client to Cloud Key Management Service (KMS) API 19 * 20 * <p>The interfaces provided are listed below, along with usage samples. 21 * 22 * <p>======================= EkmServiceClient ======================= 23 * 24 * <p>Service Description: Google Cloud Key Management EKM Service 25 * 26 * <p>Manages external cryptographic keys and operations using those keys. Implements a REST model 27 * with the following objects: 28 * 29 * <ul> 30 * <li>[EkmConnection][google.cloud.kms.v1.EkmConnection] 31 * </ul> 32 * 33 * <p>Sample for EkmServiceClient: 34 * 35 * <pre>{@code 36 * // This snippet has been automatically generated and should be regarded as a code template only. 37 * // It will require modifications to work: 38 * // - It may require correct/in-range values for request initialization. 39 * // - It may require specifying regional endpoints when creating the service client as shown in 40 * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library 41 * try (EkmServiceClient ekmServiceClient = EkmServiceClient.create()) { 42 * EkmConnectionName name = EkmConnectionName.of("[PROJECT]", "[LOCATION]", "[EKM_CONNECTION]"); 43 * EkmConnection response = ekmServiceClient.getEkmConnection(name); 44 * } 45 * }</pre> 46 * 47 * <p>======================= KeyManagementServiceClient ======================= 48 * 49 * <p>Service Description: Google Cloud Key Management Service 50 * 51 * <p>Manages cryptographic keys and operations using those keys. Implements a REST model with the 52 * following objects: 53 * 54 * <ul> 55 * <li>[KeyRing][google.cloud.kms.v1.KeyRing] 56 * <li>[CryptoKey][google.cloud.kms.v1.CryptoKey] 57 * <li>[CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] 58 * <li>[ImportJob][google.cloud.kms.v1.ImportJob] 59 * </ul> 60 * 61 * <p>If you are using manual gRPC libraries, see [Using gRPC with Cloud 62 * KMS](https://cloud.google.com/kms/docs/grpc). 63 * 64 * <p>Sample for KeyManagementServiceClient: 65 * 66 * <pre>{@code 67 * // This snippet has been automatically generated and should be regarded as a code template only. 68 * // It will require modifications to work: 69 * // - It may require correct/in-range values for request initialization. 70 * // - It may require specifying regional endpoints when creating the service client as shown in 71 * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library 72 * try (KeyManagementServiceClient keyManagementServiceClient = 73 * KeyManagementServiceClient.create()) { 74 * KeyRingName name = KeyRingName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]"); 75 * KeyRing response = keyManagementServiceClient.getKeyRing(name); 76 * } 77 * }</pre> 78 */ 79 @Generated("by gapic-generator-java") 80 package com.google.cloud.kms.v1; 81 82 import javax.annotation.Generated; 83