• 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 Google Cloud Data Catalog API
19  *
20  * <p>The interfaces provided are listed below, along with usage samples.
21  *
22  * <p>======================= DataCatalogClient =======================
23  *
24  * <p>Service Description: Data Catalog API service allows you to discover, understand, and manage
25  * your data.
26  *
27  * <p>Sample for DataCatalogClient:
28  *
29  * <pre>{@code
30  * // This snippet has been automatically generated and should be regarded as a code template only.
31  * // It will require modifications to work:
32  * // - It may require correct/in-range values for request initialization.
33  * // - It may require specifying regional endpoints when creating the service client as shown in
34  * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
35  * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
36  *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
37  *   String entryGroupId = "entryGroupId1228924712";
38  *   EntryGroup entryGroup = EntryGroup.newBuilder().build();
39  *   EntryGroup response = dataCatalogClient.createEntryGroup(parent, entryGroupId, entryGroup);
40  * }
41  * }</pre>
42  *
43  * <p>======================= PolicyTagManagerClient =======================
44  *
45  * <p>Service Description: Policy Tag Manager API service allows you to manage your policy tags and
46  * taxonomies.
47  *
48  * <p>Policy tags are used to tag BigQuery columns and apply additional access control policies. A
49  * taxonomy is a hierarchical grouping of policy tags that classify data along a common axis.
50  *
51  * <p>Sample for PolicyTagManagerClient:
52  *
53  * <pre>{@code
54  * // This snippet has been automatically generated and should be regarded as a code template only.
55  * // It will require modifications to work:
56  * // - It may require correct/in-range values for request initialization.
57  * // - It may require specifying regional endpoints when creating the service client as shown in
58  * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
59  * try (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) {
60  *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
61  *   Taxonomy taxonomy = Taxonomy.newBuilder().build();
62  *   Taxonomy response = policyTagManagerClient.createTaxonomy(parent, taxonomy);
63  * }
64  * }</pre>
65  *
66  * <p>======================= PolicyTagManagerSerializationClient =======================
67  *
68  * <p>Service Description: Policy Tag Manager Serialization API service allows you to manipulate
69  * your policy tags and taxonomies in a serialized format.
70  *
71  * <p>Taxonomy is a hierarchical group of policy tags.
72  *
73  * <p>Sample for PolicyTagManagerSerializationClient:
74  *
75  * <pre>{@code
76  * // This snippet has been automatically generated and should be regarded as a code template only.
77  * // It will require modifications to work:
78  * // - It may require correct/in-range values for request initialization.
79  * // - It may require specifying regional endpoints when creating the service client as shown in
80  * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
81  * try (PolicyTagManagerSerializationClient policyTagManagerSerializationClient =
82  *     PolicyTagManagerSerializationClient.create()) {
83  *   ReplaceTaxonomyRequest request =
84  *       ReplaceTaxonomyRequest.newBuilder()
85  *           .setName(TaxonomyName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]").toString())
86  *           .setSerializedTaxonomy(SerializedTaxonomy.newBuilder().build())
87  *           .build();
88  *   Taxonomy response = policyTagManagerSerializationClient.replaceTaxonomy(request);
89  * }
90  * }</pre>
91  */
92 @Generated("by gapic-generator-java")
93 package com.google.cloud.datacatalog.v1;
94 
95 import javax.annotation.Generated;
96