• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 Secret Manager API
19  *
20  * <p>The interfaces provided are listed below, along with usage samples.
21  *
22  * <p>======================= SecretManagerServiceClient =======================
23  *
24  * <p>Service Description: Secret Manager Service
25  *
26  * <p>Manages secrets and operations using those secrets. Implements a REST model with the following
27  * objects:
28  *
29  * <ul>
30  *   <li>[Secret][google.cloud.secretmanager.v1.Secret]
31  *   <li>[SecretVersion][google.cloud.secretmanager.v1.SecretVersion]
32  * </ul>
33  *
34  * <p>Sample for SecretManagerServiceClient:
35  *
36  * <pre>{@code
37  * // This snippet has been automatically generated and should be regarded as a code template only.
38  * // It will require modifications to work:
39  * // - It may require correct/in-range values for request initialization.
40  * // - It may require specifying regional endpoints when creating the service client as shown in
41  * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
42  * try (SecretManagerServiceClient secretManagerServiceClient =
43  *     SecretManagerServiceClient.create()) {
44  *   ProjectName parent = ProjectName.of("[PROJECT]");
45  *   String secretId = "secretId945974251";
46  *   Secret secret = Secret.newBuilder().build();
47  *   Secret response = secretManagerServiceClient.createSecret(parent, secretId, secret);
48  * }
49  * }</pre>
50  */
51 @Generated("by gapic-generator-java")
52 package com.google.cloud.secretmanager.v1;
53 
54 import javax.annotation.Generated;
55