From a5070a71fb8554263457daea72ef2f93e22de872 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Wed, 5 Feb 2020 09:19:27 -0800 Subject: [PATCH 001/112] samples: add generated samples (#83) --- .../v1beta1/DatacatalogGetEntry.java | 97 +++++++++++++++ .../v1beta1/DatacatalogLookupEntry.java | 84 +++++++++++++ .../DatacatalogLookupEntrySqlResource.java | 81 +++++++++++++ .../v1beta1/DatacatalogSearch.java | 113 ++++++++++++++++++ 4 files changed, 375 insertions(+) create mode 100644 datacatalog/src/main/java/com/google/cloud/examples/datacatalog/v1beta1/DatacatalogGetEntry.java create mode 100644 datacatalog/src/main/java/com/google/cloud/examples/datacatalog/v1beta1/DatacatalogLookupEntry.java create mode 100644 datacatalog/src/main/java/com/google/cloud/examples/datacatalog/v1beta1/DatacatalogLookupEntrySqlResource.java create mode 100644 datacatalog/src/main/java/com/google/cloud/examples/datacatalog/v1beta1/DatacatalogSearch.java diff --git a/datacatalog/src/main/java/com/google/cloud/examples/datacatalog/v1beta1/DatacatalogGetEntry.java b/datacatalog/src/main/java/com/google/cloud/examples/datacatalog/v1beta1/DatacatalogGetEntry.java new file mode 100644 index 00000000000..f8310810cd8 --- /dev/null +++ b/datacatalog/src/main/java/com/google/cloud/examples/datacatalog/v1beta1/DatacatalogGetEntry.java @@ -0,0 +1,97 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// DO NOT EDIT! This is a generated sample ("Request", "datacatalog_get_entry") +// sample-metadata: +// title: +// description: Get Entry +// usage: gradle run -PmainClass=com.google.cloud.examples.datacatalog.v1beta1.DatacatalogGetEntry +// [--args='[--project_id "[Google Cloud Project ID]"] [--location_id "[Google Cloud Location ID]"] +// [--entry_group_id "[Entry Group ID]"] [--entry_id "[Entry ID]"]'] + +package com.google.cloud.examples.datacatalog.v1beta1; + +import com.google.cloud.datacatalog.v1beta1.DataCatalogClient; +import com.google.cloud.datacatalog.v1beta1.Entry; +import com.google.cloud.datacatalog.v1beta1.GetEntryRequest; +import org.apache.commons.cli.CommandLine; +import org.apache.commons.cli.DefaultParser; +import org.apache.commons.cli.Option; +import org.apache.commons.cli.Options; + +public class DatacatalogGetEntry { + // [START datacatalog_get_entry] + /* + * Please include the following imports to run this sample. + * + * import com.google.cloud.datacatalog.v1beta1.DataCatalogClient; + * import com.google.cloud.datacatalog.v1beta1.Entry; + * import com.google.cloud.datacatalog.v1beta1.GetEntryRequest; + */ + + public static void sampleGetEntry() { + // TODO(developer): Replace these variables before running the sample. + String projectId = "[Google Cloud Project ID]"; + String locationId = "[Google Cloud Location ID]"; + String entryGroupId = "[Entry Group ID]"; + String entryId = "[Entry ID]"; + sampleGetEntry(projectId, locationId, entryGroupId, entryId); + } + + /** + * Get Entry + * + * @param projectId Your Google Cloud project ID + * @param locationId Google Cloud region, e.g. us-central1 + * @param entryGroupId ID of the Entry Group, e.g. {@literal @}bigquery, {@literal @}pubsub, + * my_entry_group + * @param entryId ID of the Entry + */ + public static void sampleGetEntry( + String projectId, String locationId, String entryGroupId, String entryId) { + try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { + String formattedName = + DataCatalogClient.formatEntryName(projectId, locationId, entryGroupId, entryId); + GetEntryRequest request = GetEntryRequest.newBuilder().setName(formattedName).build(); + Entry response = dataCatalogClient.getEntry(request); + Entry entry = response; + System.out.printf("Entry name: %s\n", entry.getName()); + System.out.printf("Entry type: %s\n", entry.getType()); + System.out.printf("Linked resource: %s\n", entry.getLinkedResource()); + } catch (Exception exception) { + System.err.println("Failed to create the client due to: " + exception); + } + } + // [END datacatalog_get_entry] + + public static void main(String[] args) throws Exception { + Options options = new Options(); + options.addOption( + Option.builder("").required(false).hasArg(true).longOpt("project_id").build()); + options.addOption( + Option.builder("").required(false).hasArg(true).longOpt("location_id").build()); + options.addOption( + Option.builder("").required(false).hasArg(true).longOpt("entry_group_id").build()); + options.addOption(Option.builder("").required(false).hasArg(true).longOpt("entry_id").build()); + + CommandLine cl = (new DefaultParser()).parse(options, args); + String projectId = cl.getOptionValue("project_id", "[Google Cloud Project ID]"); + String locationId = cl.getOptionValue("location_id", "[Google Cloud Location ID]"); + String entryGroupId = cl.getOptionValue("entry_group_id", "[Entry Group ID]"); + String entryId = cl.getOptionValue("entry_id", "[Entry ID]"); + + sampleGetEntry(projectId, locationId, entryGroupId, entryId); + } +} diff --git a/datacatalog/src/main/java/com/google/cloud/examples/datacatalog/v1beta1/DatacatalogLookupEntry.java b/datacatalog/src/main/java/com/google/cloud/examples/datacatalog/v1beta1/DatacatalogLookupEntry.java new file mode 100644 index 00000000000..e600480745a --- /dev/null +++ b/datacatalog/src/main/java/com/google/cloud/examples/datacatalog/v1beta1/DatacatalogLookupEntry.java @@ -0,0 +1,84 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// DO NOT EDIT! This is a generated sample ("Request", "datacatalog_lookup_entry") +// sample-metadata: +// title: +// description: Lookup Entry +// usage: gradle run +// -PmainClass=com.google.cloud.examples.datacatalog.v1beta1.DatacatalogLookupEntry +// [--args='[--resource_name "[Full Resource Name]"]'] + +package com.google.cloud.examples.datacatalog.v1beta1; + +import com.google.cloud.datacatalog.v1beta1.DataCatalogClient; +import com.google.cloud.datacatalog.v1beta1.Entry; +import com.google.cloud.datacatalog.v1beta1.LookupEntryRequest; +import org.apache.commons.cli.CommandLine; +import org.apache.commons.cli.DefaultParser; +import org.apache.commons.cli.Option; +import org.apache.commons.cli.Options; + +public class DatacatalogLookupEntry { + // [START datacatalog_lookup_entry] + /* + * Please include the following imports to run this sample. + * + * import com.google.cloud.datacatalog.v1beta1.DataCatalogClient; + * import com.google.cloud.datacatalog.v1beta1.Entry; + * import com.google.cloud.datacatalog.v1beta1.LookupEntryRequest; + */ + + public static void sampleLookupEntry() { + // TODO(developer): Replace these variables before running the sample. + String resourceName = "[Full Resource Name]"; + sampleLookupEntry(resourceName); + } + + /** + * Lookup Entry + * + * @param resourceName The full name of the Google Cloud Platform resource the Data Catalog entry + * represents. See: https://cloud.google.com/apis/design/resource_names#full_resource_name + * Examples: + * //bigquery.googleapis.com/projects/bigquery-public-data/datasets/new_york_taxi_trips/tables/taxi_zone_geom + * //pubsub.googleapis.com/projects/pubsub-public-data/topics/taxirides-realtime + */ + public static void sampleLookupEntry(String resourceName) { + try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { + LookupEntryRequest request = + LookupEntryRequest.newBuilder().setLinkedResource(resourceName).build(); + Entry response = dataCatalogClient.lookupEntry(request); + Entry entry = response; + System.out.printf("Entry name: %s\n", entry.getName()); + System.out.printf("Entry type: %s\n", entry.getType()); + System.out.printf("Linked resource: %s\n", entry.getLinkedResource()); + } catch (Exception exception) { + System.err.println("Failed to create the client due to: " + exception); + } + } + // [END datacatalog_lookup_entry] + + public static void main(String[] args) throws Exception { + Options options = new Options(); + options.addOption( + Option.builder("").required(false).hasArg(true).longOpt("resource_name").build()); + + CommandLine cl = (new DefaultParser()).parse(options, args); + String resourceName = cl.getOptionValue("resource_name", "[Full Resource Name]"); + + sampleLookupEntry(resourceName); + } +} diff --git a/datacatalog/src/main/java/com/google/cloud/examples/datacatalog/v1beta1/DatacatalogLookupEntrySqlResource.java b/datacatalog/src/main/java/com/google/cloud/examples/datacatalog/v1beta1/DatacatalogLookupEntrySqlResource.java new file mode 100644 index 00000000000..7c973291e7c --- /dev/null +++ b/datacatalog/src/main/java/com/google/cloud/examples/datacatalog/v1beta1/DatacatalogLookupEntrySqlResource.java @@ -0,0 +1,81 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// DO NOT EDIT! This is a generated sample ("Request", "datacatalog_lookup_entry_sql_resource") +// sample-metadata: +// title: +// description: Lookup Entry using SQL resource +// usage: gradle run +// -PmainClass=com.google.cloud.examples.datacatalog.v1beta1.DatacatalogLookupEntrySqlResource +// [--args='[--sql_name "[SQL Resource Name]"]'] + +package com.google.cloud.examples.datacatalog.v1beta1; + +import com.google.cloud.datacatalog.v1beta1.DataCatalogClient; +import com.google.cloud.datacatalog.v1beta1.Entry; +import com.google.cloud.datacatalog.v1beta1.LookupEntryRequest; +import org.apache.commons.cli.CommandLine; +import org.apache.commons.cli.DefaultParser; +import org.apache.commons.cli.Option; +import org.apache.commons.cli.Options; + +public class DatacatalogLookupEntrySqlResource { + // [START datacatalog_lookup_entry_sql_resource] + /* + * Please include the following imports to run this sample. + * + * import com.google.cloud.datacatalog.v1beta1.DataCatalogClient; + * import com.google.cloud.datacatalog.v1beta1.Entry; + * import com.google.cloud.datacatalog.v1beta1.LookupEntryRequest; + */ + + public static void sampleLookupEntry() { + // TODO(developer): Replace these variables before running the sample. + String sqlName = "[SQL Resource Name]"; + sampleLookupEntry(sqlName); + } + + /** + * Lookup Entry using SQL resource + * + * @param sqlName The SQL name of the Google Cloud Platform resource the Data Catalog entry + * represents. Examples: + * bigquery.table.`bigquery-public-data`.new_york_taxi_trips.taxi_zone_geom + * pubsub.topic.`pubsub-public-data`.`taxirides-realtime` + */ + public static void sampleLookupEntry(String sqlName) { + try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { + LookupEntryRequest request = LookupEntryRequest.newBuilder().setSqlResource(sqlName).build(); + Entry response = dataCatalogClient.lookupEntry(request); + Entry entry = response; + System.out.printf("Entry name: %s\n", entry.getName()); + System.out.printf("Entry type: %s\n", entry.getType()); + System.out.printf("Linked resource: %s\n", entry.getLinkedResource()); + } catch (Exception exception) { + System.err.println("Failed to create the client due to: " + exception); + } + } + // [END datacatalog_lookup_entry_sql_resource] + + public static void main(String[] args) throws Exception { + Options options = new Options(); + options.addOption(Option.builder("").required(false).hasArg(true).longOpt("sql_name").build()); + + CommandLine cl = (new DefaultParser()).parse(options, args); + String sqlName = cl.getOptionValue("sql_name", "[SQL Resource Name]"); + + sampleLookupEntry(sqlName); + } +} diff --git a/datacatalog/src/main/java/com/google/cloud/examples/datacatalog/v1beta1/DatacatalogSearch.java b/datacatalog/src/main/java/com/google/cloud/examples/datacatalog/v1beta1/DatacatalogSearch.java new file mode 100644 index 00000000000..39bf6e7224a --- /dev/null +++ b/datacatalog/src/main/java/com/google/cloud/examples/datacatalog/v1beta1/DatacatalogSearch.java @@ -0,0 +1,113 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// DO NOT EDIT! This is a generated sample ("RequestPaged", "datacatalog_search") +// sample-metadata: +// title: +// description: Search Catalog +// usage: gradle run -PmainClass=com.google.cloud.examples.datacatalog.v1beta1.DatacatalogSearch +// [--args='[--include_project_id "[Google Cloud Project ID]"] [--include_gcp_public_datasets false] +// [--query "[String in search query syntax]"]'] + +package com.google.cloud.examples.datacatalog.v1beta1; + +import com.google.cloud.datacatalog.v1beta1.DataCatalogClient; +import com.google.cloud.datacatalog.v1beta1.SearchCatalogRequest; +import com.google.cloud.datacatalog.v1beta1.SearchCatalogResult; +import java.util.Arrays; +import java.util.List; +import org.apache.commons.cli.CommandLine; +import org.apache.commons.cli.DefaultParser; +import org.apache.commons.cli.Option; +import org.apache.commons.cli.Options; + +public class DatacatalogSearch { + // [START datacatalog_search] + /* + * Please include the following imports to run this sample. + * + * import com.google.cloud.datacatalog.v1beta1.DataCatalogClient; + * import com.google.cloud.datacatalog.v1beta1.SearchCatalogRequest; + * import com.google.cloud.datacatalog.v1beta1.SearchCatalogRequest.Scope; + * import com.google.cloud.datacatalog.v1beta1.SearchCatalogResult; + * import java.util.Arrays; + * import java.util.List; + */ + + public static void sampleSearchCatalog() { + // TODO(developer): Replace these variables before running the sample. + String includeProjectId = "[Google Cloud Project ID]"; + boolean includeGcpPublicDatasets = false; + String query = "[String in search query syntax]"; + sampleSearchCatalog(includeProjectId, includeGcpPublicDatasets, query); + } + + /** + * Search Catalog + * + * @param includeProjectId Your Google Cloud project ID. + * @param includeGcpPublicDatasets If true, include Google Cloud Platform (GCP) public datasets in + * the search results. + * @param query Your query string. See: + * https://cloud.google.com/data-catalog/docs/how-to/search-reference Example: system=bigquery + * type=dataset + */ + public static void sampleSearchCatalog( + String includeProjectId, boolean includeGcpPublicDatasets, String query) { + try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { + List includeProjectIds = Arrays.asList(includeProjectId); + SearchCatalogRequest.Scope scope = + SearchCatalogRequest.Scope.newBuilder() + .addAllIncludeProjectIds(includeProjectIds) + .setIncludeGcpPublicDatasets(includeGcpPublicDatasets) + .build(); + SearchCatalogRequest request = + SearchCatalogRequest.newBuilder().setScope(scope).setQuery(query).build(); + for (SearchCatalogResult responseItem : + dataCatalogClient.searchCatalog(request).iterateAll()) { + System.out.printf("Result type: %s\n", responseItem.getSearchResultType()); + System.out.printf("Result subtype: %s\n", responseItem.getSearchResultSubtype()); + System.out.printf("Relative resource name: %s\n", responseItem.getRelativeResourceName()); + System.out.printf("Linked resource: %s\n\n", responseItem.getLinkedResource()); + } + } catch (Exception exception) { + System.err.println("Failed to create the client due to: " + exception); + } + } + // [END datacatalog_search] + + public static void main(String[] args) throws Exception { + Options options = new Options(); + options.addOption( + Option.builder("").required(false).hasArg(true).longOpt("include_project_id").build()); + options.addOption( + Option.builder("") + .required(false) + .hasArg(true) + .longOpt("include_gcp_public_datasets") + .build()); + options.addOption(Option.builder("").required(false).hasArg(true).longOpt("query").build()); + + CommandLine cl = (new DefaultParser()).parse(options, args); + String includeProjectId = cl.getOptionValue("include_project_id", "[Google Cloud Project ID]"); + boolean includeGcpPublicDatasets = + cl.getOptionValue("include_gcp_public_datasets") != null + ? Boolean.parseBoolean(cl.getOptionValue("include_gcp_public_datasets")) + : false; + String query = cl.getOptionValue("query", "[String in search query syntax]"); + + sampleSearchCatalog(includeProjectId, includeGcpPublicDatasets, query); + } +} From 38a84e4ba054ca8b4c4d69a9db0234a7ee63b8f0 Mon Sep 17 00:00:00 2001 From: Jeff Ching Date: Mon, 24 Feb 2020 13:41:40 -0800 Subject: [PATCH 002/112] samples: move generated samples to generated directory (#101) --- .../examples/datacatalog/v1beta1/DatacatalogGetEntry.java | 4 +--- .../examples/datacatalog/v1beta1/DatacatalogLookupEntry.java | 4 +--- .../v1beta1/DatacatalogLookupEntrySqlResource.java | 4 +--- .../examples/datacatalog/v1beta1/DatacatalogSearch.java | 5 ++--- 4 files changed, 5 insertions(+), 12 deletions(-) rename datacatalog/{ => generated}/src/main/java/com/google/cloud/examples/datacatalog/v1beta1/DatacatalogGetEntry.java (95%) rename datacatalog/{ => generated}/src/main/java/com/google/cloud/examples/datacatalog/v1beta1/DatacatalogLookupEntry.java (95%) rename datacatalog/{ => generated}/src/main/java/com/google/cloud/examples/datacatalog/v1beta1/DatacatalogLookupEntrySqlResource.java (94%) rename datacatalog/{ => generated}/src/main/java/com/google/cloud/examples/datacatalog/v1beta1/DatacatalogSearch.java (95%) diff --git a/datacatalog/src/main/java/com/google/cloud/examples/datacatalog/v1beta1/DatacatalogGetEntry.java b/datacatalog/generated/src/main/java/com/google/cloud/examples/datacatalog/v1beta1/DatacatalogGetEntry.java similarity index 95% rename from datacatalog/src/main/java/com/google/cloud/examples/datacatalog/v1beta1/DatacatalogGetEntry.java rename to datacatalog/generated/src/main/java/com/google/cloud/examples/datacatalog/v1beta1/DatacatalogGetEntry.java index f8310810cd8..c7384ef344f 100644 --- a/datacatalog/src/main/java/com/google/cloud/examples/datacatalog/v1beta1/DatacatalogGetEntry.java +++ b/datacatalog/generated/src/main/java/com/google/cloud/examples/datacatalog/v1beta1/DatacatalogGetEntry.java @@ -17,9 +17,7 @@ // sample-metadata: // title: // description: Get Entry -// usage: gradle run -PmainClass=com.google.cloud.examples.datacatalog.v1beta1.DatacatalogGetEntry -// [--args='[--project_id "[Google Cloud Project ID]"] [--location_id "[Google Cloud Location ID]"] -// [--entry_group_id "[Entry Group ID]"] [--entry_id "[Entry ID]"]'] +// usage: gradle run -PmainClass=com.google.cloud.examples.datacatalog.v1beta1.DatacatalogGetEntry [--args='[--project_id "[Google Cloud Project ID]"] [--location_id "[Google Cloud Location ID]"] [--entry_group_id "[Entry Group ID]"] [--entry_id "[Entry ID]"]'] package com.google.cloud.examples.datacatalog.v1beta1; diff --git a/datacatalog/src/main/java/com/google/cloud/examples/datacatalog/v1beta1/DatacatalogLookupEntry.java b/datacatalog/generated/src/main/java/com/google/cloud/examples/datacatalog/v1beta1/DatacatalogLookupEntry.java similarity index 95% rename from datacatalog/src/main/java/com/google/cloud/examples/datacatalog/v1beta1/DatacatalogLookupEntry.java rename to datacatalog/generated/src/main/java/com/google/cloud/examples/datacatalog/v1beta1/DatacatalogLookupEntry.java index e600480745a..ba336eafdb3 100644 --- a/datacatalog/src/main/java/com/google/cloud/examples/datacatalog/v1beta1/DatacatalogLookupEntry.java +++ b/datacatalog/generated/src/main/java/com/google/cloud/examples/datacatalog/v1beta1/DatacatalogLookupEntry.java @@ -17,9 +17,7 @@ // sample-metadata: // title: // description: Lookup Entry -// usage: gradle run -// -PmainClass=com.google.cloud.examples.datacatalog.v1beta1.DatacatalogLookupEntry -// [--args='[--resource_name "[Full Resource Name]"]'] +// usage: gradle run -PmainClass=com.google.cloud.examples.datacatalog.v1beta1.DatacatalogLookupEntry [--args='[--resource_name "[Full Resource Name]"]'] package com.google.cloud.examples.datacatalog.v1beta1; diff --git a/datacatalog/src/main/java/com/google/cloud/examples/datacatalog/v1beta1/DatacatalogLookupEntrySqlResource.java b/datacatalog/generated/src/main/java/com/google/cloud/examples/datacatalog/v1beta1/DatacatalogLookupEntrySqlResource.java similarity index 94% rename from datacatalog/src/main/java/com/google/cloud/examples/datacatalog/v1beta1/DatacatalogLookupEntrySqlResource.java rename to datacatalog/generated/src/main/java/com/google/cloud/examples/datacatalog/v1beta1/DatacatalogLookupEntrySqlResource.java index 7c973291e7c..9826fc4c7fd 100644 --- a/datacatalog/src/main/java/com/google/cloud/examples/datacatalog/v1beta1/DatacatalogLookupEntrySqlResource.java +++ b/datacatalog/generated/src/main/java/com/google/cloud/examples/datacatalog/v1beta1/DatacatalogLookupEntrySqlResource.java @@ -17,9 +17,7 @@ // sample-metadata: // title: // description: Lookup Entry using SQL resource -// usage: gradle run -// -PmainClass=com.google.cloud.examples.datacatalog.v1beta1.DatacatalogLookupEntrySqlResource -// [--args='[--sql_name "[SQL Resource Name]"]'] +// usage: gradle run -PmainClass=com.google.cloud.examples.datacatalog.v1beta1.DatacatalogLookupEntrySqlResource [--args='[--sql_name "[SQL Resource Name]"]'] package com.google.cloud.examples.datacatalog.v1beta1; diff --git a/datacatalog/src/main/java/com/google/cloud/examples/datacatalog/v1beta1/DatacatalogSearch.java b/datacatalog/generated/src/main/java/com/google/cloud/examples/datacatalog/v1beta1/DatacatalogSearch.java similarity index 95% rename from datacatalog/src/main/java/com/google/cloud/examples/datacatalog/v1beta1/DatacatalogSearch.java rename to datacatalog/generated/src/main/java/com/google/cloud/examples/datacatalog/v1beta1/DatacatalogSearch.java index 39bf6e7224a..1bd5aa5c297 100644 --- a/datacatalog/src/main/java/com/google/cloud/examples/datacatalog/v1beta1/DatacatalogSearch.java +++ b/datacatalog/generated/src/main/java/com/google/cloud/examples/datacatalog/v1beta1/DatacatalogSearch.java @@ -17,14 +17,13 @@ // sample-metadata: // title: // description: Search Catalog -// usage: gradle run -PmainClass=com.google.cloud.examples.datacatalog.v1beta1.DatacatalogSearch -// [--args='[--include_project_id "[Google Cloud Project ID]"] [--include_gcp_public_datasets false] -// [--query "[String in search query syntax]"]'] +// usage: gradle run -PmainClass=com.google.cloud.examples.datacatalog.v1beta1.DatacatalogSearch [--args='[--include_project_id "[Google Cloud Project ID]"] [--include_gcp_public_datasets false] [--query "[String in search query syntax]"]'] package com.google.cloud.examples.datacatalog.v1beta1; import com.google.cloud.datacatalog.v1beta1.DataCatalogClient; import com.google.cloud.datacatalog.v1beta1.SearchCatalogRequest; +import com.google.cloud.datacatalog.v1beta1.SearchCatalogRequest.Scope; import com.google.cloud.datacatalog.v1beta1.SearchCatalogResult; import java.util.Arrays; import java.util.List; From 190e80b154b7a5f0114d278d1d71b20b14b47cfc Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Tue, 17 Mar 2020 16:10:14 -0700 Subject: [PATCH 003/112] samples: scaffold pom.xml files (#114) This PR was generated using Autosynth. :rainbow:
Log from Synthtool ``` 2020-03-17 11:30:05,629 synthtool > Executing /tmpfs/src/git/autosynth/working_repo/synth.py. 2020-03-17 11:30:05,685 synthtool > Ensuring dependencies. 2020-03-17 11:30:05,690 synthtool > Pulling artman image. latest: Pulling from googleapis/artman Digest: sha256:5ef340c8d9334719bc5c6981d95f4a5d2737b0a6a24f2b9a0d430e96fff85c5b Status: Image is up to date for googleapis/artman:latest 2020-03-17 11:30:06,644 synthtool > Cloning googleapis. 2020-03-17 11:30:06,998 synthtool > Running generator for google/cloud/datacatalog/v1beta1/artman_datacatalog_v1beta1.yaml. 2020-03-17 11:30:20,010 synthtool > Generated code into /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java. 2020-03-17 11:30:20,011 synthtool > skipping manifest gen 2020-03-17 11:30:20,013 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/BigQueryDateShardedSpec.java. 2020-03-17 11:30:20,013 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/DeleteTagRequest.java. 2020-03-17 11:30:20,014 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ColumnSchemaOrBuilder.java. 2020-03-17 11:30:20,014 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/CreateTaxonomyRequest.java. 2020-03-17 11:30:20,014 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/DeleteTagTemplateRequest.java. 2020-03-17 11:30:20,015 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/PolicyTagManagerProto.java. 2020-03-17 11:30:20,015 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ListTaxonomiesRequest.java. 2020-03-17 11:30:20,015 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/CreateEntryRequestOrBuilder.java. 2020-03-17 11:30:20,015 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/UpdateTagRequestOrBuilder.java. 2020-03-17 11:30:20,016 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ExportTaxonomiesRequest.java. 2020-03-17 11:30:20,016 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ListTagsRequestOrBuilder.java. 2020-03-17 11:30:20,016 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ListEntriesRequestOrBuilder.java. 2020-03-17 11:30:20,016 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/InlineSourceOrBuilder.java. 2020-03-17 11:30:20,016 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/SystemTimestamps.java. 2020-03-17 11:30:20,017 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/Datacatalog.java. 2020-03-17 11:30:20,017 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/Taxonomy.java. 2020-03-17 11:30:20,017 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/SerializedPolicyTag.java. 2020-03-17 11:30:20,017 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ListPolicyTagsRequestOrBuilder.java. 2020-03-17 11:30:20,018 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/CreateTagRequestOrBuilder.java. 2020-03-17 11:30:20,018 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/LookupEntryRequest.java. 2020-03-17 11:30:20,018 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/TagOrBuilder.java. 2020-03-17 11:30:20,019 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/SearchCatalogResponse.java. 2020-03-17 11:30:20,019 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/DeleteEntryRequestOrBuilder.java. 2020-03-17 11:30:20,019 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/SerializedTaxonomyOrBuilder.java. 2020-03-17 11:30:20,019 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/SerializedPolicyTagOrBuilder.java. 2020-03-17 11:30:20,020 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/EntryGroupOrBuilder.java. 2020-03-17 11:30:20,020 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/SearchCatalogResult.java. 2020-03-17 11:30:20,020 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/TableSourceType.java. 2020-03-17 11:30:20,021 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/Common.java. 2020-03-17 11:30:20,021 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/TagField.java. 2020-03-17 11:30:20,021 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/IntegratedSystem.java. 2020-03-17 11:30:20,022 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/GetEntryRequest.java. 2020-03-17 11:30:20,022 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/TagTemplateField.java. 2020-03-17 11:30:20,022 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/TagTemplate.java. 2020-03-17 11:30:20,022 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/DeleteEntryGroupRequestOrBuilder.java. 2020-03-17 11:30:20,023 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/DeleteEntryGroupRequest.java. 2020-03-17 11:30:20,023 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/CreatePolicyTagRequest.java. 2020-03-17 11:30:20,023 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/GetPolicyTagRequestOrBuilder.java. 2020-03-17 11:30:20,023 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/UpdateTagRequest.java. 2020-03-17 11:30:20,023 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/FieldTypeOrBuilder.java. 2020-03-17 11:30:20,024 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ListEntryGroupsRequest.java. 2020-03-17 11:30:20,024 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ListEntryGroupsResponse.java. 2020-03-17 11:30:20,024 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/TableSpec.java. 2020-03-17 11:30:20,024 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/UpdateEntryRequest.java. 2020-03-17 11:30:20,025 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/CreateTaxonomyRequestOrBuilder.java. 2020-03-17 11:30:20,025 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ExportTaxonomiesRequestOrBuilder.java. 2020-03-17 11:30:20,025 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/GetEntryRequestOrBuilder.java. 2020-03-17 11:30:20,025 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/SearchCatalogResponseOrBuilder.java. 2020-03-17 11:30:20,026 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/PolicyTagOrBuilder.java. 2020-03-17 11:30:20,026 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/TaxonomyOrBuilder.java. 2020-03-17 11:30:20,026 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/UpdateTagTemplateRequest.java. 2020-03-17 11:30:20,026 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/GetTagTemplateRequest.java. 2020-03-17 11:30:20,027 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ListEntriesResponse.java. 2020-03-17 11:30:20,027 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ImportTaxonomiesResponseOrBuilder.java. 2020-03-17 11:30:20,027 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/CreateTagTemplateRequestOrBuilder.java. 2020-03-17 11:30:20,028 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ListPolicyTagsResponseOrBuilder.java. 2020-03-17 11:30:20,028 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ListEntryGroupsResponseOrBuilder.java. 2020-03-17 11:30:20,028 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/CreateTagRequest.java. 2020-03-17 11:30:20,028 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ListTagsRequest.java. 2020-03-17 11:30:20,029 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/PolicyTagManagerSerializationProto.java. 2020-03-17 11:30:20,029 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/PolicyTag.java. 2020-03-17 11:30:20,029 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/GcsFileSpecOrBuilder.java. 2020-03-17 11:30:20,029 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ListTaxonomiesResponse.java. 2020-03-17 11:30:20,030 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ListTagsResponse.java. 2020-03-17 11:30:20,030 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/CreateTagTemplateFieldRequest.java. 2020-03-17 11:30:20,030 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/GetTaxonomyRequestOrBuilder.java. 2020-03-17 11:30:20,030 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ExportTaxonomiesResponse.java. 2020-03-17 11:30:20,031 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/UpdateTagTemplateFieldRequestOrBuilder.java. 2020-03-17 11:30:20,031 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/TableSpecOuterClass.java. 2020-03-17 11:30:20,031 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/DeleteTaxonomyRequestOrBuilder.java. 2020-03-17 11:30:20,031 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/TagTemplateOrBuilder.java. 2020-03-17 11:30:20,032 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/InlineSource.java. 2020-03-17 11:30:20,032 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/BigQueryDateShardedSpecOrBuilder.java. 2020-03-17 11:30:20,032 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/DeleteTagTemplateFieldRequestOrBuilder.java. 2020-03-17 11:30:20,032 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/DeletePolicyTagRequest.java. 2020-03-17 11:30:20,033 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/CreateEntryGroupRequest.java. 2020-03-17 11:30:20,033 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/DeleteEntryRequest.java. 2020-03-17 11:30:20,033 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/Schema.java. 2020-03-17 11:30:20,033 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/TagFieldOrBuilder.java. 2020-03-17 11:30:20,034 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ListTaxonomiesResponseOrBuilder.java. 2020-03-17 11:30:20,034 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/GcsFilesetSpec.java. 2020-03-17 11:30:20,034 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/BigQueryTableSpec.java. 2020-03-17 11:30:20,035 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/SerializedTaxonomy.java. 2020-03-17 11:30:20,035 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ListTagsResponseOrBuilder.java. 2020-03-17 11:30:20,035 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/UpdateTaxonomyRequest.java. 2020-03-17 11:30:20,036 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/UpdateTagTemplateFieldRequest.java. 2020-03-17 11:30:20,036 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/GetEntryGroupRequest.java. 2020-03-17 11:30:20,036 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/GcsFileSpec.java. 2020-03-17 11:30:20,036 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/DeleteTaxonomyRequest.java. 2020-03-17 11:30:20,037 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ListPolicyTagsRequest.java. 2020-03-17 11:30:20,037 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/RenameTagTemplateFieldRequest.java. 2020-03-17 11:30:20,037 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/SearchCatalogResultOrBuilder.java. 2020-03-17 11:30:20,037 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/RenameTagTemplateFieldRequestOrBuilder.java. 2020-03-17 11:30:20,037 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/GetEntryGroupRequestOrBuilder.java. 2020-03-17 11:30:20,038 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ColumnSchema.java. 2020-03-17 11:30:20,038 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/TagTemplateFieldOrBuilder.java. 2020-03-17 11:30:20,038 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/SearchResultType.java. 2020-03-17 11:30:20,038 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/DeleteTagRequestOrBuilder.java. 2020-03-17 11:30:20,039 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/GcsFilesetSpecOuterClass.java. 2020-03-17 11:30:20,039 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/SchemaOuterClass.java. 2020-03-17 11:30:20,039 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ListEntryGroupsRequestOrBuilder.java. 2020-03-17 11:30:20,039 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ImportTaxonomiesResponse.java. 2020-03-17 11:30:20,040 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/Tags.java. 2020-03-17 11:30:20,040 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/CreateEntryGroupRequestOrBuilder.java. 2020-03-17 11:30:20,040 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/DeletePolicyTagRequestOrBuilder.java. 2020-03-17 11:30:20,040 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ListPolicyTagsResponse.java. 2020-03-17 11:30:20,041 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/Search.java. 2020-03-17 11:30:20,041 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/BigQueryTableSpecOrBuilder.java. 2020-03-17 11:30:20,041 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/UpdateEntryGroupRequestOrBuilder.java. 2020-03-17 11:30:20,041 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/DeleteTagTemplateFieldRequest.java. 2020-03-17 11:30:20,042 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/SearchCatalogRequestOrBuilder.java. 2020-03-17 11:30:20,042 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/UpdateTaxonomyRequestOrBuilder.java. 2020-03-17 11:30:20,042 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ExportTaxonomiesResponseOrBuilder.java. 2020-03-17 11:30:20,042 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/Tag.java. 2020-03-17 11:30:20,043 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/EntryGroup.java. 2020-03-17 11:30:20,043 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/SearchCatalogRequest.java. 2020-03-17 11:30:20,043 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/GetTagTemplateRequestOrBuilder.java. 2020-03-17 11:30:20,043 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/GcsFilesetSpecOrBuilder.java. 2020-03-17 11:30:20,044 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/GetPolicyTagRequest.java. 2020-03-17 11:30:20,044 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/EntryType.java. 2020-03-17 11:30:20,044 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ListEntriesRequest.java. 2020-03-17 11:30:20,044 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/UpdatePolicyTagRequestOrBuilder.java. 2020-03-17 11:30:20,045 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/CreateTagTemplateRequest.java. 2020-03-17 11:30:20,045 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ViewSpecOrBuilder.java. 2020-03-17 11:30:20,045 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/CreateTagTemplateFieldRequestOrBuilder.java. 2020-03-17 11:30:20,045 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/Timestamps.java. 2020-03-17 11:30:20,046 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ListEntriesResponseOrBuilder.java. 2020-03-17 11:30:20,046 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ViewSpec.java. 2020-03-17 11:30:20,046 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/LookupEntryRequestOrBuilder.java. 2020-03-17 11:30:20,046 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/DeleteTagTemplateRequestOrBuilder.java. 2020-03-17 11:30:20,047 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/TableSpecOrBuilder.java. 2020-03-17 11:30:20,047 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/UpdateEntryGroupRequest.java. 2020-03-17 11:30:20,047 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ImportTaxonomiesRequestOrBuilder.java. 2020-03-17 11:30:20,047 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/FieldType.java. 2020-03-17 11:30:20,048 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/UpdateTagTemplateRequestOrBuilder.java. 2020-03-17 11:30:20,048 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/SchemaOrBuilder.java. 2020-03-17 11:30:20,048 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ImportTaxonomiesRequest.java. 2020-03-17 11:30:20,048 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/CreatePolicyTagRequestOrBuilder.java. 2020-03-17 11:30:20,049 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/CreateEntryRequest.java. 2020-03-17 11:30:20,049 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/UpdateEntryRequestOrBuilder.java. 2020-03-17 11:30:20,049 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/GetTaxonomyRequest.java. 2020-03-17 11:30:20,049 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/UpdatePolicyTagRequest.java. 2020-03-17 11:30:20,050 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/Entry.java. 2020-03-17 11:30:20,050 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ListTaxonomiesRequestOrBuilder.java. 2020-03-17 11:30:20,050 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/SystemTimestampsOrBuilder.java. 2020-03-17 11:30:20,051 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/EntryOrBuilder.java. 2020-03-17 11:30:20,055 synthtool > Replaced '/\\*\n \\* Copyright \\d{4} Google LLC\n \\*\n \\* Licensed under the Apache License, Version 2.0 \\(the "License"\\); you may not use this file except\n \\* in compliance with the License. You may obtain a copy of the License at\n \\*\n \\* http://www.apache.org/licenses/LICENSE-2.0\n \\*\n \\* Unless required by applicable law or agreed to in writing, software distributed under the License\n \\* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express\n \\* or implied. See the License for the specific language governing permissions and limitations under\n \\* the License.\n \\*/\n' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/EntryName.java. 2020-03-17 11:30:20,055 synthtool > Replaced '/\\*\n \\* Copyright \\d{4} Google LLC\n \\*\n \\* Licensed under the Apache License, Version 2.0 \\(the "License"\\); you may not use this file except\n \\* in compliance with the License. You may obtain a copy of the License at\n \\*\n \\* http://www.apache.org/licenses/LICENSE-2.0\n \\*\n \\* Unless required by applicable law or agreed to in writing, software distributed under the License\n \\* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express\n \\* or implied. See the License for the specific language governing permissions and limitations under\n \\* the License.\n \\*/\n' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/TagName.java. 2020-03-17 11:30:20,056 synthtool > Replaced '/\\*\n \\* Copyright \\d{4} Google LLC\n \\*\n \\* Licensed under the Apache License, Version 2.0 \\(the "License"\\); you may not use this file except\n \\* in compliance with the License. You may obtain a copy of the License at\n \\*\n \\* http://www.apache.org/licenses/LICENSE-2.0\n \\*\n \\* Unless required by applicable law or agreed to in writing, software distributed under the License\n \\* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express\n \\* or implied. See the License for the specific language governing permissions and limitations under\n \\* the License.\n \\*/\n' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/TagTemplateName.java. 2020-03-17 11:30:20,056 synthtool > Replaced '/\\*\n \\* Copyright \\d{4} Google LLC\n \\*\n \\* Licensed under the Apache License, Version 2.0 \\(the "License"\\); you may not use this file except\n \\* in compliance with the License. You may obtain a copy of the License at\n \\*\n \\* http://www.apache.org/licenses/LICENSE-2.0\n \\*\n \\* Unless required by applicable law or agreed to in writing, software distributed under the License\n \\* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express\n \\* or implied. See the License for the specific language governing permissions and limitations under\n \\* the License.\n \\*/\n' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/FieldName.java. 2020-03-17 11:30:20,056 synthtool > Replaced '/\\*\n \\* Copyright \\d{4} Google LLC\n \\*\n \\* Licensed under the Apache License, Version 2.0 \\(the "License"\\); you may not use this file except\n \\* in compliance with the License. You may obtain a copy of the License at\n \\*\n \\* http://www.apache.org/licenses/LICENSE-2.0\n \\*\n \\* Unless required by applicable law or agreed to in writing, software distributed under the License\n \\* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express\n \\* or implied. See the License for the specific language governing permissions and limitations under\n \\* the License.\n \\*/\n' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/LocationName.java. 2020-03-17 11:30:20,056 synthtool > Replaced '/\\*\n \\* Copyright \\d{4} Google LLC\n \\*\n \\* Licensed under the Apache License, Version 2.0 \\(the "License"\\); you may not use this file except\n \\* in compliance with the License. You may obtain a copy of the License at\n \\*\n \\* http://www.apache.org/licenses/LICENSE-2.0\n \\*\n \\* Unless required by applicable law or agreed to in writing, software distributed under the License\n \\* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express\n \\* or implied. See the License for the specific language governing permissions and limitations under\n \\* the License.\n \\*/\n' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/EntryGroupName.java. 2020-03-17 11:30:20,059 synthtool > Replaced '^package (.*);' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/grpc-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/PolicyTagManagerSerializationGrpc.java. 2020-03-17 11:30:20,062 synthtool > Replaced '^package (.*);' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/grpc-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/DataCatalogGrpc.java. 2020-03-17 11:30:20,063 synthtool > Replaced '^package (.*);' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/grpc-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/PolicyTagManagerGrpc.java. 2020-03-17 11:30:20,126 synthtool > No files in sources [PosixPath('/home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/gapic-google-cloud-datacatalog-v1beta1/samples/resources')] were copied. Does the source contain files? 2020-03-17 11:30:20,126 synthtool > No files in sources [PosixPath('/home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/gapic-google-cloud-datacatalog-v1beta1/samples/src/**/*.manifest.yaml')] were copied. Does the source contain files? 2020-03-17 11:30:20,128 synthtool > Running java formatter on 29 files 2020-03-17 11:30:24,560 synthtool > Running java formatter on 3 files 2020-03-17 11:30:27,674 synthtool > Running java formatter on 152 files 2020-03-17 11:30:38,676 synthtool > Running java formatter on 0 files .github/ISSUE_TEMPLATE/bug_report.md .github/ISSUE_TEMPLATE/feature_request.md .github/ISSUE_TEMPLATE/support_request.md .github/PULL_REQUEST_TEMPLATE.md .github/release-please.yml .github/trusted-contribution.yml .kokoro/build.bat .kokoro/build.sh .kokoro/coerce_logs.sh .kokoro/common.cfg .kokoro/continuous/common.cfg .kokoro/continuous/dependencies.cfg .kokoro/continuous/integration.cfg .kokoro/continuous/java11.cfg .kokoro/continuous/java7.cfg .kokoro/continuous/java8-osx.cfg .kokoro/continuous/java8-win.cfg .kokoro/continuous/java8.cfg .kokoro/continuous/lint.cfg .kokoro/continuous/propose_release.cfg .kokoro/continuous/samples.cfg .kokoro/dependencies.sh .kokoro/linkage-monitor.sh .kokoro/nightly/common.cfg .kokoro/nightly/dependencies.cfg .kokoro/nightly/integration.cfg .kokoro/nightly/java11.cfg .kokoro/nightly/java7.cfg .kokoro/nightly/java8-osx.cfg .kokoro/nightly/java8-win.cfg .kokoro/nightly/java8.cfg .kokoro/nightly/lint.cfg .kokoro/nightly/samples.cfg .kokoro/presubmit/clirr.cfg .kokoro/presubmit/common.cfg .kokoro/presubmit/dependencies.cfg .kokoro/presubmit/integration.cfg .kokoro/presubmit/java11.cfg .kokoro/presubmit/java7.cfg .kokoro/presubmit/java8-osx.cfg .kokoro/presubmit/java8-win.cfg .kokoro/presubmit/java8.cfg .kokoro/presubmit/linkage-monitor.cfg .kokoro/presubmit/lint.cfg .kokoro/presubmit/samples.cfg .kokoro/release/bump_snapshot.cfg .kokoro/release/common.cfg .kokoro/release/common.sh .kokoro/release/drop.cfg .kokoro/release/drop.sh .kokoro/release/promote.cfg .kokoro/release/promote.sh .kokoro/release/publish_javadoc.cfg .kokoro/release/publish_javadoc.sh .kokoro/release/snapshot.cfg .kokoro/release/snapshot.sh .kokoro/release/stage.cfg .kokoro/release/stage.sh .kokoro/trampoline.sh CODE_OF_CONDUCT.md CONTRIBUTING.md LICENSE README.md codecov.yaml java.header license-checks.xml renovate.json samples/install-without-bom/pom.xml samples/pom.xml samples/snapshot/pom.xml samples/snippets/pom.xml 2020-03-17 11:30:39,192 synthtool > merge: CODE_OF_CONDUCT.md 2020-03-17 11:30:39,192 synthtool > merge: java.header 2020-03-17 11:30:39,193 synthtool > merge: license-checks.xml 2020-03-17 11:30:39,193 synthtool > merge: LICENSE 2020-03-17 11:30:39,193 synthtool > merge: README.md 2020-03-17 11:30:39,193 synthtool > merge: CONTRIBUTING.md 2020-03-17 11:30:39,194 synthtool > merge: renovate.json 2020-03-17 11:30:39,194 synthtool > merge: codecov.yaml 2020-03-17 11:30:39,195 synthtool > merge: .kokoro/build.sh 2020-03-17 11:30:39,195 synthtool > merge: .kokoro/coerce_logs.sh 2020-03-17 11:30:39,195 synthtool > merge: .kokoro/dependencies.sh 2020-03-17 11:30:39,196 synthtool > merge: .kokoro/linkage-monitor.sh 2020-03-17 11:30:39,196 synthtool > merge: .kokoro/trampoline.sh 2020-03-17 11:30:39,196 synthtool > merge: .kokoro/common.cfg 2020-03-17 11:30:39,196 synthtool > merge: .kokoro/build.bat 2020-03-17 11:30:39,197 synthtool > merge: .kokoro/release/promote.sh 2020-03-17 11:30:39,197 synthtool > merge: .kokoro/release/snapshot.sh 2020-03-17 11:30:39,197 synthtool > merge: .kokoro/release/stage.sh 2020-03-17 11:30:39,197 synthtool > merge: .kokoro/release/bump_snapshot.cfg 2020-03-17 11:30:39,197 synthtool > merge: .kokoro/release/drop.cfg 2020-03-17 11:30:39,198 synthtool > merge: .kokoro/release/snapshot.cfg 2020-03-17 11:30:39,198 synthtool > merge: .kokoro/release/promote.cfg 2020-03-17 11:30:39,198 synthtool > merge: .kokoro/release/publish_javadoc.sh 2020-03-17 11:30:39,198 synthtool > merge: .kokoro/release/common.cfg 2020-03-17 11:30:39,199 synthtool > merge: .kokoro/release/drop.sh 2020-03-17 11:30:39,199 synthtool > merge: .kokoro/release/publish_javadoc.cfg 2020-03-17 11:30:39,199 synthtool > merge: .kokoro/release/stage.cfg 2020-03-17 11:30:39,199 synthtool > merge: .kokoro/release/common.sh 2020-03-17 11:30:39,200 synthtool > merge: .kokoro/nightly/lint.cfg 2020-03-17 11:30:39,200 synthtool > merge: .kokoro/nightly/java11.cfg 2020-03-17 11:30:39,200 synthtool > merge: .kokoro/nightly/samples.cfg 2020-03-17 11:30:39,200 synthtool > merge: .kokoro/nightly/java8.cfg 2020-03-17 11:30:39,200 synthtool > merge: .kokoro/nightly/java7.cfg 2020-03-17 11:30:39,201 synthtool > merge: .kokoro/nightly/common.cfg 2020-03-17 11:30:39,201 synthtool > merge: .kokoro/nightly/dependencies.cfg 2020-03-17 11:30:39,201 synthtool > merge: .kokoro/nightly/java8-osx.cfg 2020-03-17 11:30:39,201 synthtool > merge: .kokoro/nightly/java8-win.cfg 2020-03-17 11:30:39,201 synthtool > merge: .kokoro/nightly/integration.cfg 2020-03-17 11:30:39,202 synthtool > merge: .kokoro/presubmit/lint.cfg 2020-03-17 11:30:39,202 synthtool > merge: .kokoro/presubmit/clirr.cfg 2020-03-17 11:30:39,202 synthtool > merge: .kokoro/presubmit/java11.cfg 2020-03-17 11:30:39,202 synthtool > merge: .kokoro/presubmit/samples.cfg 2020-03-17 11:30:39,203 synthtool > merge: .kokoro/presubmit/linkage-monitor.cfg 2020-03-17 11:30:39,203 synthtool > merge: .kokoro/presubmit/java8.cfg 2020-03-17 11:30:39,203 synthtool > merge: .kokoro/presubmit/java7.cfg 2020-03-17 11:30:39,203 synthtool > merge: .kokoro/presubmit/common.cfg 2020-03-17 11:30:39,204 synthtool > merge: .kokoro/presubmit/dependencies.cfg 2020-03-17 11:30:39,204 synthtool > merge: .kokoro/presubmit/java8-osx.cfg 2020-03-17 11:30:39,204 synthtool > merge: .kokoro/presubmit/java8-win.cfg 2020-03-17 11:30:39,204 synthtool > merge: .kokoro/presubmit/integration.cfg 2020-03-17 11:30:39,204 synthtool > merge: .kokoro/continuous/lint.cfg 2020-03-17 11:30:39,205 synthtool > merge: .kokoro/continuous/java11.cfg 2020-03-17 11:30:39,205 synthtool > merge: .kokoro/continuous/samples.cfg 2020-03-17 11:30:39,205 synthtool > merge: .kokoro/continuous/java8.cfg 2020-03-17 11:30:39,205 synthtool > merge: .kokoro/continuous/java7.cfg 2020-03-17 11:30:39,206 synthtool > merge: .kokoro/continuous/propose_release.cfg 2020-03-17 11:30:39,206 synthtool > merge: .kokoro/continuous/common.cfg 2020-03-17 11:30:39,206 synthtool > merge: .kokoro/continuous/dependencies.cfg 2020-03-17 11:30:39,206 synthtool > merge: .kokoro/continuous/java8-osx.cfg 2020-03-17 11:30:39,206 synthtool > merge: .kokoro/continuous/java8-win.cfg 2020-03-17 11:30:39,207 synthtool > merge: .kokoro/continuous/integration.cfg 2020-03-17 11:30:39,207 synthtool > merge: .github/trusted-contribution.yml 2020-03-17 11:30:39,207 synthtool > merge: .github/release-please.yml 2020-03-17 11:30:39,207 synthtool > merge: .github/PULL_REQUEST_TEMPLATE.md 2020-03-17 11:30:39,208 synthtool > merge: .github/ISSUE_TEMPLATE/feature_request.md 2020-03-17 11:30:39,208 synthtool > merge: .github/ISSUE_TEMPLATE/bug_report.md 2020-03-17 11:30:39,208 synthtool > merge: .github/ISSUE_TEMPLATE/support_request.md 2020-03-17 11:30:39,213 synthtool > Wrote metadata to synth.metadata. ```
--- datacatalog/snippets/pom.xml | 60 ++++++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 datacatalog/snippets/pom.xml diff --git a/datacatalog/snippets/pom.xml b/datacatalog/snippets/pom.xml new file mode 100644 index 00000000000..dff8d265a81 --- /dev/null +++ b/datacatalog/snippets/pom.xml @@ -0,0 +1,60 @@ + + + 4.0.0 + com.google.cloud + datacatalog-snippets + jar + Google Data Catalog Snippets + https://github.com/googleapis/java-datacatalog + + + + com.google.cloud.samples + shared-configuration + 1.0.12 + + + + 1.8 + 1.8 + UTF-8 + + + + + + + + com.google.cloud + libraries-bom + 4.2.0 + pom + import + + + + + + + com.google.cloud + google-cloud-datacatalog + + + + + junit + junit + 4.13 + test + + + com.google.truth + truth + 1.0.1 + test + + + From 3675caf840b9cc445e830ab7412d47eab7563ed4 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 23 Mar 2020 18:22:15 +0100 Subject: [PATCH 004/112] chore(deps): update dependency com.google.cloud:libraries-bom to v4.3.0 (#122) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | minor | `4.2.0` -> `4.3.0` | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#googleapis/java-datacatalog). --- datacatalog/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datacatalog/snippets/pom.xml b/datacatalog/snippets/pom.xml index dff8d265a81..a618672d823 100644 --- a/datacatalog/snippets/pom.xml +++ b/datacatalog/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 4.2.0 + 4.3.0 pom import From a27d6b135288877fcf9b17b028335f529362283d Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 25 Mar 2020 19:56:18 +0100 Subject: [PATCH 005/112] chore(deps): update dependency com.google.cloud.samples:shared-configuration to v1.0.13 (#126) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud.samples:shared-configuration](https://togithub.com/GoogleCloudPlatform/java-repo-tools) | patch | `1.0.12` -> `1.0.13` | --- ### Release Notes
GoogleCloudPlatform/java-repo-tools ### [`v1.0.13`](https://togithub.com/GoogleCloudPlatform/java-repo-tools/releases/v1.0.13) [Compare Source](https://togithub.com/GoogleCloudPlatform/java-repo-tools/compare/v1.0.12...v1.0.13) Fix some issues w/ Checkstyle configuration. We left the option to turn it off out.
--- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#googleapis/java-datacatalog). --- datacatalog/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datacatalog/snippets/pom.xml b/datacatalog/snippets/pom.xml index a618672d823..720649d515b 100644 --- a/datacatalog/snippets/pom.xml +++ b/datacatalog/snippets/pom.xml @@ -14,7 +14,7 @@ com.google.cloud.samples shared-configuration - 1.0.12 + 1.0.13 From 04dd793a4482e3160292e8a9a00215dcad5c7218 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 30 Mar 2020 19:56:28 +0200 Subject: [PATCH 006/112] chore(deps): update dependency com.google.cloud.samples:shared-configuration to v1.0.14 (#132) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud.samples:shared-configuration](https://togithub.com/GoogleCloudPlatform/java-repo-tools) | patch | `1.0.13` -> `1.0.14` | --- ### Release Notes
GoogleCloudPlatform/java-repo-tools ### [`v1.0.14`](https://togithub.com/GoogleCloudPlatform/java-repo-tools/releases/v1.0.14) [Compare Source](https://togithub.com/GoogleCloudPlatform/java-repo-tools/compare/v1.0.13...v1.0.14) - Update CheckStyle to 8.31 - Add SpotBugs
--- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#googleapis/java-datacatalog). --- datacatalog/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datacatalog/snippets/pom.xml b/datacatalog/snippets/pom.xml index 720649d515b..ba9cc37f903 100644 --- a/datacatalog/snippets/pom.xml +++ b/datacatalog/snippets/pom.xml @@ -14,7 +14,7 @@ com.google.cloud.samples shared-configuration - 1.0.13 + 1.0.14 From 08f66967945f9a064bfbd637fa6f15bc31a9269f Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 1 Apr 2020 21:32:20 +0200 Subject: [PATCH 007/112] chore(deps): update dependency com.google.cloud:libraries-bom to v4.4.0 (#137) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | minor | `4.3.0` -> `4.4.0` | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#googleapis/java-datacatalog). --- datacatalog/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datacatalog/snippets/pom.xml b/datacatalog/snippets/pom.xml index ba9cc37f903..9303b8ccc96 100644 --- a/datacatalog/snippets/pom.xml +++ b/datacatalog/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 4.3.0 + 4.4.0 pom import From 73f04d18211f887ccd835662b912ab72fdc44c21 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 6 Apr 2020 17:48:22 +0200 Subject: [PATCH 008/112] chore(deps): update dependency com.google.cloud.samples:shared-configuration to v1.0.15 (#139) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud.samples:shared-configuration](https://togithub.com/GoogleCloudPlatform/java-repo-tools) | patch | `1.0.14` -> `1.0.15` | --- ### Release Notes
GoogleCloudPlatform/java-repo-tools ### [`v1.0.15`](https://togithub.com/GoogleCloudPlatform/java-repo-tools/releases/v1.0.15) [Compare Source](https://togithub.com/GoogleCloudPlatform/java-repo-tools/compare/v1.0.14...v1.0.15) - Move some stuff around (in prep for a change to release process) pom.xml's - Add an exclude filter for SpotBugs. (disable the Java 11 surprise) - Don't fail on SpotBugs issues for now - add PMD reporting - Don't fail on PMD issues for now.
--- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#googleapis/java-datacatalog). --- datacatalog/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datacatalog/snippets/pom.xml b/datacatalog/snippets/pom.xml index 9303b8ccc96..c2f9d7385ef 100644 --- a/datacatalog/snippets/pom.xml +++ b/datacatalog/snippets/pom.xml @@ -14,7 +14,7 @@ com.google.cloud.samples shared-configuration - 1.0.14 + 1.0.15 From 90643a9d8dc40af4b281412c2f48f878cfa1e617 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 6 Apr 2020 20:04:20 +0200 Subject: [PATCH 009/112] chore(deps): update dependency com.google.cloud:libraries-bom to v4.4.1 (#141) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | patch | `4.4.0` -> `4.4.1` | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#googleapis/java-datacatalog). --- datacatalog/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datacatalog/snippets/pom.xml b/datacatalog/snippets/pom.xml index c2f9d7385ef..59d1fd6dc03 100644 --- a/datacatalog/snippets/pom.xml +++ b/datacatalog/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 4.4.0 + 4.4.1 pom import From 924c03d4aed1514d927e2f8e4f76fbc7a77848ed Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 14 Apr 2020 20:02:19 +0200 Subject: [PATCH 010/112] chore(deps): update dependency com.google.cloud:libraries-bom to v5 (#151) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | major | `4.4.1` -> `5.1.0` | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#googleapis/java-datacatalog). --- datacatalog/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datacatalog/snippets/pom.xml b/datacatalog/snippets/pom.xml index 59d1fd6dc03..69e978a8eeb 100644 --- a/datacatalog/snippets/pom.xml +++ b/datacatalog/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 4.4.1 + 5.1.0 pom import From 4d90cf558caf0d6d9b68bf4f230bbfd5cf6edcf9 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 16 Apr 2020 17:50:29 +0200 Subject: [PATCH 011/112] chore(deps): update dependency com.google.cloud.samples:shared-configuration to v1.0.16 (#159) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud.samples:shared-configuration](https://togithub.com/GoogleCloudPlatform/java-repo-tools) | patch | `1.0.15` -> `1.0.16` | --- ### Release Notes
GoogleCloudPlatform/java-repo-tools ### [`v1.0.16`](https://togithub.com/GoogleCloudPlatform/java-repo-tools/releases/v1.0.16) [Compare Source](https://togithub.com/GoogleCloudPlatform/java-repo-tools/compare/v1.0.15...v1.0.16) Add a few SpotBugs exclusions: - `RCN_REDUNDANT_NULLCHECK_WOULD_HAVE_BEEN_A_NPE` - existing - codegen bug - `UPM_UNCALLED_PRIVATE_METHOD` - probably SpotBug issue - `NP_NULL_ON_SOME_PATH_FROM_RETURN_VALUE` - likely SpotBug issue - `CLI_CONSTANT_LIST_INDEX` - style issue particular to our samples - `OBL_UNSATISFIED_OBLIGATION` - issue for SQL clients
--- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#googleapis/java-datacatalog). --- datacatalog/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datacatalog/snippets/pom.xml b/datacatalog/snippets/pom.xml index 69e978a8eeb..8eafc6e0542 100644 --- a/datacatalog/snippets/pom.xml +++ b/datacatalog/snippets/pom.xml @@ -14,7 +14,7 @@ com.google.cloud.samples shared-configuration - 1.0.15 + 1.0.16 From 985bd837c1c9af5ade11b0026df7daa13fca6788 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 17 Apr 2020 09:20:08 +0200 Subject: [PATCH 012/112] chore(deps): update dependency com.google.cloud.samples:shared-configuration to v1.0.17 (#162) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud.samples:shared-configuration](https://togithub.com/GoogleCloudPlatform/java-repo-tools) | patch | `1.0.16` -> `1.0.17` | --- ### Release Notes
GoogleCloudPlatform/java-repo-tools ### [`v1.0.17`](https://togithub.com/GoogleCloudPlatform/java-repo-tools/releases/v1.0.17) [Compare Source](https://togithub.com/GoogleCloudPlatform/java-repo-tools/compare/v1.0.16...v1.0.17) - require -P lint Lets not burden customers with our development rules. - Move Checkstyle, ErrorProne, PMD, and SpotBugs to only run w/ -P lint - Update the Readme - spotbugs-annotations 4.0.2
--- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#googleapis/java-datacatalog). --- datacatalog/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datacatalog/snippets/pom.xml b/datacatalog/snippets/pom.xml index 8eafc6e0542..a055b4e552f 100644 --- a/datacatalog/snippets/pom.xml +++ b/datacatalog/snippets/pom.xml @@ -14,7 +14,7 @@ com.google.cloud.samples shared-configuration - 1.0.16 + 1.0.17 From c16b7d3f28f8130bfb0a5fa5a53b3df29ddc87ec Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 24 Apr 2020 20:36:10 +0200 Subject: [PATCH 013/112] chore(deps): update dependency com.google.cloud:libraries-bom to v5.2.0 (#174) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | minor | `5.1.0` -> `5.2.0` | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#googleapis/java-datacatalog). --- datacatalog/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datacatalog/snippets/pom.xml b/datacatalog/snippets/pom.xml index a055b4e552f..ace801be0ea 100644 --- a/datacatalog/snippets/pom.xml +++ b/datacatalog/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 5.1.0 + 5.2.0 pom import From 709a3fcc859ea042c7d145d6ce13477a3b0f402a Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 29 Apr 2020 01:06:28 +0200 Subject: [PATCH 014/112] chore(deps): update dependency com.google.cloud:libraries-bom to v5.3.0 (#178) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | minor | `5.2.0` -> `5.3.0` | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#googleapis/java-datacatalog). --- datacatalog/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datacatalog/snippets/pom.xml b/datacatalog/snippets/pom.xml index ace801be0ea..4c05eee64ae 100644 --- a/datacatalog/snippets/pom.xml +++ b/datacatalog/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 5.2.0 + 5.3.0 pom import From 78e77a9ac4d4016c31e1e7bd3e101ca33479457b Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 19 May 2020 23:42:24 +0200 Subject: [PATCH 015/112] chore(deps): update dependency com.google.cloud:libraries-bom to v5.4.0 (#188) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | minor | `5.3.0` -> `5.4.0` | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#googleapis/java-datacatalog). --- datacatalog/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datacatalog/snippets/pom.xml b/datacatalog/snippets/pom.xml index 4c05eee64ae..113d0df9420 100644 --- a/datacatalog/snippets/pom.xml +++ b/datacatalog/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 5.3.0 + 5.4.0 pom import From 9033d6a5630d0fc98261f676d9d7f904a09061dd Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 29 May 2020 20:32:33 +0200 Subject: [PATCH 016/112] chore(deps): update dependency com.google.cloud:libraries-bom to v5.5.0 (#194) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | minor | `5.4.0` -> `5.5.0` | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#googleapis/java-datacatalog). --- datacatalog/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datacatalog/snippets/pom.xml b/datacatalog/snippets/pom.xml index 113d0df9420..e60d6b63676 100644 --- a/datacatalog/snippets/pom.xml +++ b/datacatalog/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 5.4.0 + 5.5.0 pom import From 67cabb8f9a375311e887e91f0c3b68c07fac8669 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 10 Jun 2020 22:10:06 +0200 Subject: [PATCH 017/112] chore(deps): update dependency com.google.cloud.samples:shared-configuration to v1.0.18 (#204) --- datacatalog/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datacatalog/snippets/pom.xml b/datacatalog/snippets/pom.xml index e60d6b63676..d9df548dee8 100644 --- a/datacatalog/snippets/pom.xml +++ b/datacatalog/snippets/pom.xml @@ -14,7 +14,7 @@ com.google.cloud.samples shared-configuration - 1.0.17 + 1.0.18 From d2e6a4541a58bfd84373f0172cfe0dbfe4a784d7 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 11 Jun 2020 00:50:42 +0200 Subject: [PATCH 018/112] chore(deps): update dependency com.google.cloud:libraries-bom to v5.7.0 (#203) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | minor | `5.5.0` -> `5.7.0` | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#googleapis/java-datacatalog). --- datacatalog/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datacatalog/snippets/pom.xml b/datacatalog/snippets/pom.xml index d9df548dee8..b4b1d83d536 100644 --- a/datacatalog/snippets/pom.xml +++ b/datacatalog/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 5.5.0 + 5.7.0 pom import From 2c7f58a983c82b173ecbdbeb3f6e99e3eea4dd49 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 17 Jun 2020 01:26:32 +0200 Subject: [PATCH 019/112] chore(deps): update dependency com.google.cloud:libraries-bom to v6 (#221) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | major | `5.7.0` -> `6.0.0` | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#googleapis/java-datacatalog). --- datacatalog/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datacatalog/snippets/pom.xml b/datacatalog/snippets/pom.xml index b4b1d83d536..0a9c244843c 100644 --- a/datacatalog/snippets/pom.xml +++ b/datacatalog/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 5.7.0 + 6.0.0 pom import From fcfd0dda88a9b3f84e47b3063e904c2316a5db02 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 17 Jun 2020 19:40:25 +0200 Subject: [PATCH 020/112] chore(deps): update dependency com.google.cloud:libraries-bom to v7 (#227) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | major | `6.0.0` -> `7.0.0` | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#googleapis/java-datacatalog). --- datacatalog/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datacatalog/snippets/pom.xml b/datacatalog/snippets/pom.xml index 0a9c244843c..034e19deb65 100644 --- a/datacatalog/snippets/pom.xml +++ b/datacatalog/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 6.0.0 + 7.0.0 pom import From 7642784272ad2952c73e6fb4c8a77f9bde685977 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 23 Jun 2020 00:43:04 +0200 Subject: [PATCH 021/112] chore(deps): update dependency com.google.cloud:libraries-bom to v7.0.1 (#233) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | patch | `7.0.0` -> `7.0.1` | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#googleapis/java-datacatalog). --- datacatalog/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datacatalog/snippets/pom.xml b/datacatalog/snippets/pom.xml index 034e19deb65..7654152d4d3 100644 --- a/datacatalog/snippets/pom.xml +++ b/datacatalog/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 7.0.0 + 7.0.1 pom import From fc56392ffe2998b4b674f8d5892353d0356a1e86 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 26 Jun 2020 07:22:53 +0200 Subject: [PATCH 022/112] chore(deps): update dependency com.google.cloud:libraries-bom to v8 (#236) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | major | `7.0.1` -> `8.0.0` | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#googleapis/java-datacatalog). --- datacatalog/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datacatalog/snippets/pom.xml b/datacatalog/snippets/pom.xml index 7654152d4d3..57807ea743b 100644 --- a/datacatalog/snippets/pom.xml +++ b/datacatalog/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 7.0.1 + 8.0.0 pom import From 7cbc55964503764b9549c51ded98de2e0b2c5ff0 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 16 Jul 2020 19:46:25 +0200 Subject: [PATCH 023/112] chore(deps): update dependency com.google.cloud:libraries-bom to v8.1.0 (#245) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | minor | `8.0.0` -> `8.1.0` | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#googleapis/java-datacatalog). --- datacatalog/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datacatalog/snippets/pom.xml b/datacatalog/snippets/pom.xml index 57807ea743b..e3ddc6946c5 100644 --- a/datacatalog/snippets/pom.xml +++ b/datacatalog/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 8.0.0 + 8.1.0 pom import From 23c7054a868ce24e335c1dc77dc4ccb1578f523f Mon Sep 17 00:00:00 2001 From: Ricardo Mendes <50331050+ricardosm-cit@users.noreply.github.com> Date: Tue, 14 May 2019 16:40:00 -0300 Subject: [PATCH 024/112] samples: Add samples for Data Catalog lookupEntry (#1416) --- .../LookupEntryBigQueryDataset.java | 56 +++++++++++++ .../datacatalog/LookupEntryBigQueryTable.java | 61 ++++++++++++++ .../datacatalog/LookupEntryPubSubTopic.java | 56 +++++++++++++ .../example/datacatalog/LookupEntryTests.java | 81 +++++++++++++++++++ 4 files changed, 254 insertions(+) create mode 100644 datacatalog/snippets/src/main/java/com/example/datacatalog/LookupEntryBigQueryDataset.java create mode 100644 datacatalog/snippets/src/main/java/com/example/datacatalog/LookupEntryBigQueryTable.java create mode 100644 datacatalog/snippets/src/main/java/com/example/datacatalog/LookupEntryPubSubTopic.java create mode 100644 datacatalog/snippets/src/test/java/com/example/datacatalog/LookupEntryTests.java diff --git a/datacatalog/snippets/src/main/java/com/example/datacatalog/LookupEntryBigQueryDataset.java b/datacatalog/snippets/src/main/java/com/example/datacatalog/LookupEntryBigQueryDataset.java new file mode 100644 index 00000000000..b81737645fc --- /dev/null +++ b/datacatalog/snippets/src/main/java/com/example/datacatalog/LookupEntryBigQueryDataset.java @@ -0,0 +1,56 @@ +/* + * Copyright 2019 Google Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.example.datacatalog; + +import com.google.cloud.datacatalog.Entry; +import com.google.cloud.datacatalog.LookupEntryRequest; +import com.google.cloud.datacatalog.v1beta1.DataCatalogClient; + +public class LookupEntryBigQueryDataset { + + /** + * Lookup the Data Catalog entry referring to a BigQuery Dataset + * + * @param projectId The project ID to which the Dataset belongs, e.g. 'my-project' + * @param datasetId The dataset ID to which the Catalog Entry refers, e.g. 'my_dataset' + */ + public static void lookupEntry(String projectId, String datasetId) { + // String projectId = "my-project" + // String datasetId = "my_dataset" + + // Get an entry by the resource name from the source Google Cloud Platform service. + String linkedResource = + String.format("//bigquery.googleapis.com/projects/%s/datasets/%s", projectId, datasetId); + LookupEntryRequest request = + LookupEntryRequest.newBuilder().setLinkedResource(linkedResource).build(); + + // Alternatively, lookup by the SQL name of the entry would have the same result: + // String sqlResource = String.format("bigquery.dataset.`%s`.`%s`", projectId, datasetId); + // LookupEntryRequest request = + // LookupEntryRequest.newBuilder().setSqlResource(sqlResource).build(); + + // Initialize client that will be used to send requests. This client only needs to be created + // once, and can be reused for multiple requests. After completing all of your requests, call + // the "close" method on the client to safely clean up any remaining background resources. + try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { + Entry entry = dataCatalogClient.lookupEntry(request); + System.out.printf("Entry name: %s\n", entry.getName()); + } catch (Exception e) { + System.out.print("Error during lookupEntryBigQueryDataset:\n" + e.toString()); + } + } +} diff --git a/datacatalog/snippets/src/main/java/com/example/datacatalog/LookupEntryBigQueryTable.java b/datacatalog/snippets/src/main/java/com/example/datacatalog/LookupEntryBigQueryTable.java new file mode 100644 index 00000000000..bae8e35c361 --- /dev/null +++ b/datacatalog/snippets/src/main/java/com/example/datacatalog/LookupEntryBigQueryTable.java @@ -0,0 +1,61 @@ +/* + * Copyright 2019 Google Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.example.datacatalog; + +import com.google.cloud.datacatalog.Entry; +import com.google.cloud.datacatalog.LookupEntryRequest; +import com.google.cloud.datacatalog.v1beta1.DataCatalogClient; + +public class LookupEntryBigQueryTable { + + /** + * Lookup the Data Catalog entry referring to a BigQuery Table + * + * @param projectId The project ID to which the Dataset belongs, e.g. 'my-project' + * @param datasetId The dataset ID to which the Table belongs, e.g. 'my_dataset' + * @param tableId The table ID to which the Catalog Entry refers, e.g. 'my_table' + */ + public static void lookupEntry(String projectId, String datasetId, String tableId) { + // String projectId = "my-project" + // String datasetId = "my_dataset" + // String tableId = "my_table" + + // Get an entry by the resource name from the source Google Cloud Platform service. + String linkedResource = + String.format( + "//bigquery.googleapis.com/projects/%s/datasets/%s/tables/%s", + projectId, datasetId, tableId); + LookupEntryRequest request = + LookupEntryRequest.newBuilder().setLinkedResource(linkedResource).build(); + + // Alternatively, lookup by the SQL name of the entry would have the same result: + // String sqlResource = String.format("bigquery.table.`%s`.`%s`.`%s`", projectId, datasetId, + // tableId); + // LookupEntryRequest request = + // LookupEntryRequest.newBuilder().setSqlResource(sqlResource).build(); + + // Initialize client that will be used to send requests. This client only needs to be created + // once, and can be reused for multiple requests. After completing all of your requests, call + // the "close" method on the client to safely clean up any remaining background resources. + try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { + Entry entry = dataCatalogClient.lookupEntry(request); + System.out.printf("Entry name: %s\n", entry.getName()); + } catch (Exception e) { + System.out.print("Error during lookupEntryBigQueryTable:\n" + e.toString()); + } + } +} diff --git a/datacatalog/snippets/src/main/java/com/example/datacatalog/LookupEntryPubSubTopic.java b/datacatalog/snippets/src/main/java/com/example/datacatalog/LookupEntryPubSubTopic.java new file mode 100644 index 00000000000..53195fffa9d --- /dev/null +++ b/datacatalog/snippets/src/main/java/com/example/datacatalog/LookupEntryPubSubTopic.java @@ -0,0 +1,56 @@ +/* + * Copyright 2019 Google Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.example.datacatalog; + +import com.google.cloud.datacatalog.Entry; +import com.google.cloud.datacatalog.LookupEntryRequest; +import com.google.cloud.datacatalog.v1beta1.DataCatalogClient; + +public class LookupEntryPubSubTopic { + + /** + * Lookup the Data Catalog entry referring to a BigQuery Dataset + * + * @param projectId The project ID to which the Dataset belongs, e.g. 'my-project' + * @param topicId The topic ID to which the Catalog Entry refers, e.g. 'my-topic' + */ + public static void lookupEntry(String projectId, String topicId) { + // String projectId = "my-project" + // String topicId = "my-topic" + + // Get an entry by the resource name from the source Google Cloud Platform service. + String linkedResource = + String.format("//pubsub.googleapis.com/projects/%s/topics/%s", projectId, topicId); + LookupEntryRequest request = + LookupEntryRequest.newBuilder().setLinkedResource(linkedResource).build(); + + // Alternatively, lookup by the SQL name of the entry would have the same result: + // String sqlResource = String.format("pubsub.topic.`%s`.`%s`", projectId, topicId); + // LookupEntryRequest request = + // LookupEntryRequest.newBuilder().setSqlResource(sqlResource).build(); + + // Initialize client that will be used to send requests. This client only needs to be created + // once, and can be reused for multiple requests. After completing all of your requests, call + // the "close" method on the client to safely clean up any remaining background resources. + try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { + Entry entry = dataCatalogClient.lookupEntry(request); + System.out.printf("Entry name: %s\n", entry.getName()); + } catch (Exception e) { + System.out.print("Error during lookupEntryPubSubTopic:\n" + e.toString()); + } + } +} diff --git a/datacatalog/snippets/src/test/java/com/example/datacatalog/LookupEntryTests.java b/datacatalog/snippets/src/test/java/com/example/datacatalog/LookupEntryTests.java new file mode 100644 index 00000000000..bf254fec42e --- /dev/null +++ b/datacatalog/snippets/src/test/java/com/example/datacatalog/LookupEntryTests.java @@ -0,0 +1,81 @@ +/* + * Copyright 2019 Google Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.example.datacatalog; + +import static com.google.common.truth.Truth.assertThat; + +import java.io.ByteArrayOutputStream; +import java.io.IOException; +import java.io.PrintStream; +import org.junit.After; +import org.junit.Before; +import org.junit.Test; +import org.junit.runner.RunWith; +import org.junit.runners.JUnit4; + +@RunWith(JUnit4.class) +public class LookupEntryTests { + + private static final String BIGQUERY_PROJECT = "bigquery-public-data"; + private static final String BIGQUERY_DATASET = "new_york_taxi_trips"; + private static final String BIGQUERY_TABLE = "taxi_zone_geom"; + + private static final String PUBSUB_PROJECT = "pubsub-public-data"; + private static final String PUBSUB_TOPIC = "taxirides-realtime"; + + private ByteArrayOutputStream bout; + + @Before + public void setUp() { + bout = new ByteArrayOutputStream(); + PrintStream out = new PrintStream(bout); + System.setOut(out); + } + + @After + public void tearDown() throws IOException { + bout.close(); + System.setOut(null); + } + + @Test + public void testLookupEntryBigQueryDataset() { + LookupEntryBigQueryDataset.lookupEntry(BIGQUERY_PROJECT, BIGQUERY_DATASET); + String got = bout.toString(); + assertThat(got) + .containsMatch( + "projects/" + BIGQUERY_PROJECT + "/locations/.+?/entryGroups/@bigquery/entries/.+?$"); + } + + @Test + public void testLookupEntryBigQueryTable() { + LookupEntryBigQueryTable.lookupEntry(BIGQUERY_PROJECT, BIGQUERY_DATASET, BIGQUERY_TABLE); + String got = bout.toString(); + assertThat(got) + .containsMatch( + "projects/" + BIGQUERY_PROJECT + "/locations/.+?/entryGroups/@bigquery/entries/.+?$"); + } + + @Test + public void testLookupPubSubTopic() { + LookupEntryPubSubTopic.lookupEntry(PUBSUB_PROJECT, PUBSUB_TOPIC); + String got = bout.toString(); + assertThat(got) + .containsMatch( + "projects/" + PUBSUB_PROJECT + "/locations/.+?/entryGroups/@pubsub/entries/.+?$"); + } +} From e487b1f45d315cc3dca062d3d7017fc07d2e06c1 Mon Sep 17 00:00:00 2001 From: aman-ebay Date: Wed, 22 May 2019 10:55:49 -0700 Subject: [PATCH 025/112] samples: Update LookupEntryBigQueryDataset.java (#1434) --- .../com/example/datacatalog/LookupEntryBigQueryDataset.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/datacatalog/snippets/src/main/java/com/example/datacatalog/LookupEntryBigQueryDataset.java b/datacatalog/snippets/src/main/java/com/example/datacatalog/LookupEntryBigQueryDataset.java index b81737645fc..4c4ee950d06 100644 --- a/datacatalog/snippets/src/main/java/com/example/datacatalog/LookupEntryBigQueryDataset.java +++ b/datacatalog/snippets/src/main/java/com/example/datacatalog/LookupEntryBigQueryDataset.java @@ -16,6 +16,7 @@ package com.example.datacatalog; +// [START datacatalog_bigquery_lookup_dataset] import com.google.cloud.datacatalog.Entry; import com.google.cloud.datacatalog.LookupEntryRequest; import com.google.cloud.datacatalog.v1beta1.DataCatalogClient; @@ -54,3 +55,4 @@ public static void lookupEntry(String projectId, String datasetId) { } } } +// [END datacatalog_bigquery_lookup_dataset] From 4ac2639b3d5c6a06235770f02d992a24ae6a0324 Mon Sep 17 00:00:00 2001 From: Marcelo Costa Date: Sat, 26 Oct 2019 12:24:28 -0300 Subject: [PATCH 026/112] samples: Add Data Catalog createEntry samples and tests. (#1638) * Add Data Catalog createEntry samples and tests * Change second column name * Code review changes * Change region tag for the correct one * Removed tag from region tag since this sample does not tag the entry * ADD method overload to show parameter values examples * Code review changes * Code review changes * Code review and checkstyle changes * Clean up in a safer order --- .../example/datacatalog/CreateEntryGroup.java | 72 +++++++++++ .../datacatalog/CreateFilesetEntry.java | 118 ++++++++++++++++++ .../example/datacatalog/CreateEntryTests.java | 106 ++++++++++++++++ 3 files changed, 296 insertions(+) create mode 100644 datacatalog/snippets/src/main/java/com/example/datacatalog/CreateEntryGroup.java create mode 100644 datacatalog/snippets/src/main/java/com/example/datacatalog/CreateFilesetEntry.java create mode 100644 datacatalog/snippets/src/test/java/com/example/datacatalog/CreateEntryTests.java diff --git a/datacatalog/snippets/src/main/java/com/example/datacatalog/CreateEntryGroup.java b/datacatalog/snippets/src/main/java/com/example/datacatalog/CreateEntryGroup.java new file mode 100644 index 00000000000..4e1e4e2519b --- /dev/null +++ b/datacatalog/snippets/src/main/java/com/example/datacatalog/CreateEntryGroup.java @@ -0,0 +1,72 @@ +/* + * Copyright 2019 Google Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.example.datacatalog; + +// [START datacatalog_create_entry_group_tag] + +import com.google.api.gax.rpc.AlreadyExistsException; +import com.google.cloud.datacatalog.CreateEntryGroupRequest; +import com.google.cloud.datacatalog.EntryGroup; +import com.google.cloud.datacatalog.LocationName; +import com.google.cloud.datacatalog.v1beta1.DataCatalogClient; +import java.io.IOException; + +public class CreateEntryGroup { + + public static void createEntryGroup() { + // TODO(developer): Replace these variables before running the sample. + String projectId = "my-project-id"; + String entryGroupId = "fileset_entry_group"; + createEntryGroup(projectId, entryGroupId); + } + + // Create Entry Group. + public static void createEntryGroup(String projectId, String entryGroupId) { + // Currently, Data Catalog stores metadata in the us-central1 region. + String location = "us-central1"; + + // Initialize client that will be used to send requests. This client only needs to be created + // once, and can be reused for multiple requests. After completing all of your requests, call + // the "close" method on the client to safely clean up any remaining background resources. + try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { + // Construct the EntryGroup for the EntryGroup request. + EntryGroup entryGroup = + EntryGroup.newBuilder() + .setDisplayName("My Fileset Entry Group") + .setDescription("This Entry Group consists of ....") + .build(); + + // Construct the EntryGroup request to be sent by the client. + CreateEntryGroupRequest entryGroupRequest = + CreateEntryGroupRequest.newBuilder() + .setParent(LocationName.of(projectId, location).toString()) + .setEntryGroupId(entryGroupId) + .setEntryGroup(entryGroup) + .build(); + + // Use the client to send the API request. + EntryGroup entryGroupResponse = dataCatalogClient.createEntryGroup(entryGroupRequest); + System.out.printf("\nEntry Group created with name: %s\n", entryGroupResponse.getName()); + } catch (AlreadyExistsException | IOException e) { + // AlreadyExistsException's are thrown if EntryGroup or Entry already exists. + // IOException's are thrown when unable to create the DataCatalogClient, + // for example an invalid Service Account path. + System.out.println("Error in create entry process:\n" + e.toString()); + } + } +} +// [END datacatalog_create_entry_group_tag] \ No newline at end of file diff --git a/datacatalog/snippets/src/main/java/com/example/datacatalog/CreateFilesetEntry.java b/datacatalog/snippets/src/main/java/com/example/datacatalog/CreateFilesetEntry.java new file mode 100644 index 00000000000..b8c59214005 --- /dev/null +++ b/datacatalog/snippets/src/main/java/com/example/datacatalog/CreateFilesetEntry.java @@ -0,0 +1,118 @@ +/* + * Copyright 2019 Google Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.example.datacatalog; + +// [START datacatalog_create_fileset_tag] + +import com.google.api.gax.rpc.AlreadyExistsException; +import com.google.cloud.datacatalog.ColumnSchema; +import com.google.cloud.datacatalog.CreateEntryRequest; +import com.google.cloud.datacatalog.Entry; +import com.google.cloud.datacatalog.EntryGroupName; +import com.google.cloud.datacatalog.EntryType; +import com.google.cloud.datacatalog.GcsFilesetSpec; +import com.google.cloud.datacatalog.Schema; +import com.google.cloud.datacatalog.v1beta1.DataCatalogClient; +import java.io.IOException; + +public class CreateFilesetEntry { + + public static void createEntry() { + // TODO(developer): Replace these variables before running the sample. + String projectId = "my-project-id"; + String entryGroupId = "fileset_entry_group"; + String entryId = "fileset_entry_id"; + createEntry(projectId, entryGroupId, entryId); + } + + // Create Fileset Entry. + public static void createEntry(String projectId, String entryGroupId, String entryId) { + // Currently, Data Catalog stores metadata in the us-central1 region. + String location = "us-central1"; + + // Initialize client that will be used to send requests. This client only needs to be created + // once, and can be reused for multiple requests. After completing all of your requests, call + // the "close" method on the client to safely clean up any remaining background resources. + try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { + // Construct the Entry for the Entry request. + Entry entry = + Entry.newBuilder() + .setDisplayName("My Fileset") + .setDescription("This fileset consists of ....") + .setGcsFilesetSpec( + GcsFilesetSpec.newBuilder().addFilePatterns("gs://my_bucket/*").build()) + .setSchema( + Schema.newBuilder() + .addColumns( + ColumnSchema.newBuilder() + .setColumn("first_name") + .setDescription("First name") + .setMode("REQUIRED") + .setType("STRING") + .build()) + .addColumns( + ColumnSchema.newBuilder() + .setColumn("last_name") + .setDescription("Last name") + .setMode("REQUIRED") + .setType("STRING") + .build()) + .addColumns( + ColumnSchema.newBuilder() + .setColumn("addresses") + .setDescription("Addresses") + .setMode("REPEATED") + .setType("RECORD") + .addSubcolumns( + ColumnSchema.newBuilder() + .setColumn("city") + .setDescription("City") + .setMode("NULLABLE") + .setType("STRING") + .build()) + .addSubcolumns( + ColumnSchema.newBuilder() + .setColumn("state") + .setDescription("State") + .setMode("NULLABLE") + .setType("STRING") + .build()) + .build()) + .build()) + .setType(EntryType.FILESET) + .build(); + + // Construct the Entry request to be sent by the client. + CreateEntryRequest entryRequest = + CreateEntryRequest.newBuilder() + .setParent(EntryGroupName.of(projectId, location, entryGroupId).toString()) + .setEntryId(entryId) + .setEntry(entry) + .build(); + + // Use the client to send the API request. + Entry entryResponse = dataCatalogClient.createEntry(entryRequest); + System.out.printf("\nEntry created with name: %s\n", entryResponse.getName()); + } catch (AlreadyExistsException | IOException e) { + // AlreadyExistsException's are thrown if EntryGroup or Entry already exists. + // IOException's are thrown when unable to create the DataCatalogClient, + // for example an invalid Service Account path. + System.out.println("Error in create entry process:\n" + e.toString()); + } + } +} +// [END datacatalog_create_fileset_tag] \ No newline at end of file diff --git a/datacatalog/snippets/src/test/java/com/example/datacatalog/CreateEntryTests.java b/datacatalog/snippets/src/test/java/com/example/datacatalog/CreateEntryTests.java new file mode 100644 index 00000000000..2651606c89c --- /dev/null +++ b/datacatalog/snippets/src/test/java/com/example/datacatalog/CreateEntryTests.java @@ -0,0 +1,106 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.example.datacatalog; + +import static org.junit.Assert.assertThat; + +import com.google.cloud.datacatalog.EntryGroupName; +import com.google.cloud.datacatalog.EntryName; +import com.google.cloud.datacatalog.v1beta1.DataCatalogClient; +import java.io.ByteArrayOutputStream; +import java.io.PrintStream; +import java.util.UUID; +import org.hamcrest.CoreMatchers; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Before; +import org.junit.Test; +import org.junit.runner.RunWith; +import org.junit.runners.JUnit4; + +/** Integration (system) tests for {@link CreateFilesetEntry} and {@link CreateEntryGroup}. */ +@RunWith(JUnit4.class) +public class CreateEntryTests { + + private ByteArrayOutputStream bout; + + private static String ENTRY_GROUP_ID_NO_CHILDREN = + "entry_group_no_children_" + UUID.randomUUID().toString().substring(0, 8); + private static String PARENT_ENTRY_GROUP_ID = + "fileset_entry_group_parent_" + UUID.randomUUID().toString().substring(0, 8); + private static String ENTRY_ID = + "fileset_entry_id_" + UUID.randomUUID().toString().substring(0, 8); + private static String LOCATION = "us-central1"; + private static String PROJECT_ID = System.getenv().get("GOOGLE_CLOUD_PROJECT"); + + @Before + public void setUp() { + bout = new ByteArrayOutputStream(); + System.setOut(new PrintStream(bout)); + } + + @After + public void tearDown() { + System.setOut(null); + bout.reset(); + } + + @AfterClass + public static void tearDownClass() { + try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { + dataCatalogClient.deleteEntryGroup( + EntryGroupName.of(PROJECT_ID, LOCATION, ENTRY_GROUP_ID_NO_CHILDREN).toString()); + + dataCatalogClient.deleteEntry( + EntryName.of(PROJECT_ID, LOCATION, PARENT_ENTRY_GROUP_ID, ENTRY_ID).toString()); + dataCatalogClient.deleteEntryGroup( + EntryGroupName.of(PROJECT_ID, LOCATION, PARENT_ENTRY_GROUP_ID).toString()); + } catch (Exception e) { + System.out.println("Error in cleaning up test data:\n" + e.toString()); + } + } + + @Test + public void testCreateFilesetEntry() { + // Must create a Entry Group before creating the entry. + CreateEntryGroup.createEntryGroup(PROJECT_ID, PARENT_ENTRY_GROUP_ID); + CreateFilesetEntry.createEntry(PROJECT_ID, PARENT_ENTRY_GROUP_ID, ENTRY_ID); + + String output = bout.toString(); + + String entryTemplate = + "Entry created with name: projects/%s/locations/us-central1/entryGroups/%s/entries/%s"; + assertThat( + output, + CoreMatchers.containsString( + String.format(entryTemplate, PROJECT_ID, PARENT_ENTRY_GROUP_ID, ENTRY_ID))); + } + + @Test + public void testCreateEntryGroup() { + CreateEntryGroup.createEntryGroup(PROJECT_ID, ENTRY_GROUP_ID_NO_CHILDREN); + + String output = bout.toString(); + + String entryGroupTemplate = + "Entry Group created with name: projects/%s/locations/us-central1/entryGroups/%s"; + assertThat( + output, + CoreMatchers.containsString( + String.format(entryGroupTemplate, PROJECT_ID, ENTRY_GROUP_ID_NO_CHILDREN))); + } +} \ No newline at end of file From 4aa1e9b687ec0267ece6be4fe823511951f7a8a2 Mon Sep 17 00:00:00 2001 From: Marcelo Costa Date: Tue, 10 Dec 2019 19:22:25 -0300 Subject: [PATCH 027/112] samples: Add Data Catalog createEntry quickstart samples and tests. (#1731) * ADD sample for create fileset entry quickstart * RAN google java format * CHANGE exception comment * FIX lint issues * Split quickstart into a new folder * Rename files since class name will appear on samples * Ran java formatter * revert region tags change * remove extra space * change to real bucket name --- .../datacatalog/CreateFilesetEntry.java | 2 +- .../example/datacatalog/CreateEntryTests.java | 74 ++++++++++++------- 2 files changed, 49 insertions(+), 27 deletions(-) diff --git a/datacatalog/snippets/src/main/java/com/example/datacatalog/CreateFilesetEntry.java b/datacatalog/snippets/src/main/java/com/example/datacatalog/CreateFilesetEntry.java index b8c59214005..a7df34604da 100644 --- a/datacatalog/snippets/src/main/java/com/example/datacatalog/CreateFilesetEntry.java +++ b/datacatalog/snippets/src/main/java/com/example/datacatalog/CreateFilesetEntry.java @@ -54,7 +54,7 @@ public static void createEntry(String projectId, String entryGroupId, String ent .setDisplayName("My Fileset") .setDescription("This fileset consists of ....") .setGcsFilesetSpec( - GcsFilesetSpec.newBuilder().addFilePatterns("gs://my_bucket/*").build()) + GcsFilesetSpec.newBuilder().addFilePatterns("gs://cloud-samples-data/*").build()) .setSchema( Schema.newBuilder() .addColumns( diff --git a/datacatalog/snippets/src/test/java/com/example/datacatalog/CreateEntryTests.java b/datacatalog/snippets/src/test/java/com/example/datacatalog/CreateEntryTests.java index 2651606c89c..04a312e9e7b 100644 --- a/datacatalog/snippets/src/test/java/com/example/datacatalog/CreateEntryTests.java +++ b/datacatalog/snippets/src/test/java/com/example/datacatalog/CreateEntryTests.java @@ -17,12 +17,15 @@ package com.example.datacatalog; import static org.junit.Assert.assertThat; +import static org.junit.Assert.fail; import com.google.cloud.datacatalog.EntryGroupName; import com.google.cloud.datacatalog.EntryName; import com.google.cloud.datacatalog.v1beta1.DataCatalogClient; import java.io.ByteArrayOutputStream; import java.io.PrintStream; +import java.util.ArrayList; +import java.util.List; import java.util.UUID; import org.hamcrest.CoreMatchers; import org.junit.After; @@ -38,15 +41,12 @@ public class CreateEntryTests { private ByteArrayOutputStream bout; - private static String ENTRY_GROUP_ID_NO_CHILDREN = - "entry_group_no_children_" + UUID.randomUUID().toString().substring(0, 8); - private static String PARENT_ENTRY_GROUP_ID = - "fileset_entry_group_parent_" + UUID.randomUUID().toString().substring(0, 8); - private static String ENTRY_ID = - "fileset_entry_id_" + UUID.randomUUID().toString().substring(0, 8); private static String LOCATION = "us-central1"; private static String PROJECT_ID = System.getenv().get("GOOGLE_CLOUD_PROJECT"); + private static List entryGroupsPendingDeletion = new ArrayList<>(); + private static List entriesPendingDeletion = new ArrayList<>(); + @Before public void setUp() { bout = new ByteArrayOutputStream(); @@ -62,13 +62,18 @@ public void tearDown() { @AfterClass public static void tearDownClass() { try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - dataCatalogClient.deleteEntryGroup( - EntryGroupName.of(PROJECT_ID, LOCATION, ENTRY_GROUP_ID_NO_CHILDREN).toString()); - - dataCatalogClient.deleteEntry( - EntryName.of(PROJECT_ID, LOCATION, PARENT_ENTRY_GROUP_ID, ENTRY_ID).toString()); - dataCatalogClient.deleteEntryGroup( - EntryGroupName.of(PROJECT_ID, LOCATION, PARENT_ENTRY_GROUP_ID).toString()); + // Must delete Entries before deleting the Entry Group. + if (entriesPendingDeletion.isEmpty() || entryGroupsPendingDeletion.isEmpty()) { + fail("Something went wrong, no entries were generated"); + } + + for (String entryName : entriesPendingDeletion) { + dataCatalogClient.deleteEntry(entryName); + } + + for (String entryGroupName : entryGroupsPendingDeletion) { + dataCatalogClient.deleteEntryGroup(entryGroupName); + } } catch (Exception e) { System.out.println("Error in cleaning up test data:\n" + e.toString()); } @@ -76,31 +81,48 @@ public static void tearDownClass() { @Test public void testCreateFilesetEntry() { + String entryGroupId = "fileset_entry_group_parent_" + getUuid8Chars(); + String entryId = "fileset_entry_id_" + getUuid8Chars(); + // Must create a Entry Group before creating the entry. - CreateEntryGroup.createEntryGroup(PROJECT_ID, PARENT_ENTRY_GROUP_ID); - CreateFilesetEntry.createEntry(PROJECT_ID, PARENT_ENTRY_GROUP_ID, ENTRY_ID); + CreateEntryGroup.createEntryGroup(PROJECT_ID, entryGroupId); + CreateFilesetEntry.createEntry(PROJECT_ID, entryGroupId, entryId); + + // Store names for clean up on teardown + String expectedEntryGroupName = + EntryGroupName.of(PROJECT_ID, LOCATION, entryGroupId).toString(); + entryGroupsPendingDeletion.add(expectedEntryGroupName); + + String expectedEntryName = EntryName.of(PROJECT_ID, LOCATION, entryGroupId, entryId).toString(); + entriesPendingDeletion.add(expectedEntryName); String output = bout.toString(); - String entryTemplate = - "Entry created with name: projects/%s/locations/us-central1/entryGroups/%s/entries/%s"; + String entryTemplate = "Entry created with name: %s"; assertThat( - output, - CoreMatchers.containsString( - String.format(entryTemplate, PROJECT_ID, PARENT_ENTRY_GROUP_ID, ENTRY_ID))); + output, CoreMatchers.containsString(String.format(entryTemplate, expectedEntryName))); } @Test public void testCreateEntryGroup() { - CreateEntryGroup.createEntryGroup(PROJECT_ID, ENTRY_GROUP_ID_NO_CHILDREN); + String entryGroupId = "entry_group_no_children_" + getUuid8Chars(); + + CreateEntryGroup.createEntryGroup(PROJECT_ID, entryGroupId); + + // Store names for clean up on teardown + String expectedEntryGroupName = + EntryGroupName.of(PROJECT_ID, LOCATION, entryGroupId).toString(); + entryGroupsPendingDeletion.add(expectedEntryGroupName); String output = bout.toString(); - String entryGroupTemplate = - "Entry Group created with name: projects/%s/locations/us-central1/entryGroups/%s"; + String entryGroupTemplate = "Entry Group created with name: %s"; assertThat( output, - CoreMatchers.containsString( - String.format(entryGroupTemplate, PROJECT_ID, ENTRY_GROUP_ID_NO_CHILDREN))); + CoreMatchers.containsString(String.format(entryGroupTemplate, expectedEntryGroupName))); + } + + private String getUuid8Chars() { + return UUID.randomUUID().toString().substring(0, 8); } -} \ No newline at end of file +} From 0f563686c38b9c4590d627ebf137f47b29d6c758 Mon Sep 17 00:00:00 2001 From: Marcelo Costa Date: Wed, 26 Feb 2020 15:16:29 -0300 Subject: [PATCH 028/112] samples: FIX breaking changes on library update (#2137) Co-authored-by: Noah Negrey --- .../com/example/datacatalog/CreateEntryGroup.java | 6 +++--- .../example/datacatalog/CreateFilesetEntry.java | 14 +++++++------- .../datacatalog/LookupEntryBigQueryDataset.java | 4 ++-- .../datacatalog/LookupEntryBigQueryTable.java | 4 ++-- .../datacatalog/LookupEntryPubSubTopic.java | 4 ++-- .../com/example/datacatalog/CreateEntryTests.java | 4 ++-- 6 files changed, 18 insertions(+), 18 deletions(-) diff --git a/datacatalog/snippets/src/main/java/com/example/datacatalog/CreateEntryGroup.java b/datacatalog/snippets/src/main/java/com/example/datacatalog/CreateEntryGroup.java index 4e1e4e2519b..35796843076 100644 --- a/datacatalog/snippets/src/main/java/com/example/datacatalog/CreateEntryGroup.java +++ b/datacatalog/snippets/src/main/java/com/example/datacatalog/CreateEntryGroup.java @@ -19,10 +19,10 @@ // [START datacatalog_create_entry_group_tag] import com.google.api.gax.rpc.AlreadyExistsException; -import com.google.cloud.datacatalog.CreateEntryGroupRequest; -import com.google.cloud.datacatalog.EntryGroup; -import com.google.cloud.datacatalog.LocationName; +import com.google.cloud.datacatalog.v1beta1.CreateEntryGroupRequest; import com.google.cloud.datacatalog.v1beta1.DataCatalogClient; +import com.google.cloud.datacatalog.v1beta1.EntryGroup; +import com.google.cloud.datacatalog.v1beta1.LocationName; import java.io.IOException; public class CreateEntryGroup { diff --git a/datacatalog/snippets/src/main/java/com/example/datacatalog/CreateFilesetEntry.java b/datacatalog/snippets/src/main/java/com/example/datacatalog/CreateFilesetEntry.java index a7df34604da..fb28f72b89d 100644 --- a/datacatalog/snippets/src/main/java/com/example/datacatalog/CreateFilesetEntry.java +++ b/datacatalog/snippets/src/main/java/com/example/datacatalog/CreateFilesetEntry.java @@ -19,14 +19,14 @@ // [START datacatalog_create_fileset_tag] import com.google.api.gax.rpc.AlreadyExistsException; -import com.google.cloud.datacatalog.ColumnSchema; -import com.google.cloud.datacatalog.CreateEntryRequest; -import com.google.cloud.datacatalog.Entry; -import com.google.cloud.datacatalog.EntryGroupName; -import com.google.cloud.datacatalog.EntryType; -import com.google.cloud.datacatalog.GcsFilesetSpec; -import com.google.cloud.datacatalog.Schema; +import com.google.cloud.datacatalog.v1beta1.ColumnSchema; +import com.google.cloud.datacatalog.v1beta1.CreateEntryRequest; import com.google.cloud.datacatalog.v1beta1.DataCatalogClient; +import com.google.cloud.datacatalog.v1beta1.Entry; +import com.google.cloud.datacatalog.v1beta1.EntryGroupName; +import com.google.cloud.datacatalog.v1beta1.EntryType; +import com.google.cloud.datacatalog.v1beta1.GcsFilesetSpec; +import com.google.cloud.datacatalog.v1beta1.Schema; import java.io.IOException; public class CreateFilesetEntry { diff --git a/datacatalog/snippets/src/main/java/com/example/datacatalog/LookupEntryBigQueryDataset.java b/datacatalog/snippets/src/main/java/com/example/datacatalog/LookupEntryBigQueryDataset.java index 4c4ee950d06..90c0375d327 100644 --- a/datacatalog/snippets/src/main/java/com/example/datacatalog/LookupEntryBigQueryDataset.java +++ b/datacatalog/snippets/src/main/java/com/example/datacatalog/LookupEntryBigQueryDataset.java @@ -17,9 +17,9 @@ package com.example.datacatalog; // [START datacatalog_bigquery_lookup_dataset] -import com.google.cloud.datacatalog.Entry; -import com.google.cloud.datacatalog.LookupEntryRequest; import com.google.cloud.datacatalog.v1beta1.DataCatalogClient; +import com.google.cloud.datacatalog.v1beta1.Entry; +import com.google.cloud.datacatalog.v1beta1.LookupEntryRequest; public class LookupEntryBigQueryDataset { diff --git a/datacatalog/snippets/src/main/java/com/example/datacatalog/LookupEntryBigQueryTable.java b/datacatalog/snippets/src/main/java/com/example/datacatalog/LookupEntryBigQueryTable.java index bae8e35c361..c84b52cb75e 100644 --- a/datacatalog/snippets/src/main/java/com/example/datacatalog/LookupEntryBigQueryTable.java +++ b/datacatalog/snippets/src/main/java/com/example/datacatalog/LookupEntryBigQueryTable.java @@ -16,9 +16,9 @@ package com.example.datacatalog; -import com.google.cloud.datacatalog.Entry; -import com.google.cloud.datacatalog.LookupEntryRequest; import com.google.cloud.datacatalog.v1beta1.DataCatalogClient; +import com.google.cloud.datacatalog.v1beta1.Entry; +import com.google.cloud.datacatalog.v1beta1.LookupEntryRequest; public class LookupEntryBigQueryTable { diff --git a/datacatalog/snippets/src/main/java/com/example/datacatalog/LookupEntryPubSubTopic.java b/datacatalog/snippets/src/main/java/com/example/datacatalog/LookupEntryPubSubTopic.java index 53195fffa9d..90863a574fd 100644 --- a/datacatalog/snippets/src/main/java/com/example/datacatalog/LookupEntryPubSubTopic.java +++ b/datacatalog/snippets/src/main/java/com/example/datacatalog/LookupEntryPubSubTopic.java @@ -16,9 +16,9 @@ package com.example.datacatalog; -import com.google.cloud.datacatalog.Entry; -import com.google.cloud.datacatalog.LookupEntryRequest; import com.google.cloud.datacatalog.v1beta1.DataCatalogClient; +import com.google.cloud.datacatalog.v1beta1.Entry; +import com.google.cloud.datacatalog.v1beta1.LookupEntryRequest; public class LookupEntryPubSubTopic { diff --git a/datacatalog/snippets/src/test/java/com/example/datacatalog/CreateEntryTests.java b/datacatalog/snippets/src/test/java/com/example/datacatalog/CreateEntryTests.java index 04a312e9e7b..83ff5ad32b9 100644 --- a/datacatalog/snippets/src/test/java/com/example/datacatalog/CreateEntryTests.java +++ b/datacatalog/snippets/src/test/java/com/example/datacatalog/CreateEntryTests.java @@ -19,9 +19,9 @@ import static org.junit.Assert.assertThat; import static org.junit.Assert.fail; -import com.google.cloud.datacatalog.EntryGroupName; -import com.google.cloud.datacatalog.EntryName; import com.google.cloud.datacatalog.v1beta1.DataCatalogClient; +import com.google.cloud.datacatalog.v1beta1.EntryGroupName; +import com.google.cloud.datacatalog.v1beta1.EntryName; import java.io.ByteArrayOutputStream; import java.io.PrintStream; import java.util.ArrayList; From 8ebfe3504d79d45fb9e27eae5564f87cc317e0ac Mon Sep 17 00:00:00 2001 From: Marcelo Costa Date: Thu, 9 Apr 2020 14:28:07 -0300 Subject: [PATCH 029/112] samples: Update Data Catalog samples to client library V1 (#2604) With release of V1 library, we must update the samples to instruct users to use the supported version. - [ x] Tests pass - [ n/a] Appropriate changes to README are included in PR - [ n/a] API's need to be enabled to test (tell us) - [ n/a] Environment Variables need to be set (ask us to set them) --- .../example/datacatalog/CreateEntryGroup.java | 8 ++++---- .../example/datacatalog/CreateFilesetEntry.java | 16 ++++++++-------- .../datacatalog/LookupEntryBigQueryDataset.java | 6 +++--- .../datacatalog/LookupEntryBigQueryTable.java | 6 +++--- .../datacatalog/LookupEntryPubSubTopic.java | 6 +++--- .../example/datacatalog/CreateEntryTests.java | 6 +++--- 6 files changed, 24 insertions(+), 24 deletions(-) diff --git a/datacatalog/snippets/src/main/java/com/example/datacatalog/CreateEntryGroup.java b/datacatalog/snippets/src/main/java/com/example/datacatalog/CreateEntryGroup.java index 35796843076..db833573714 100644 --- a/datacatalog/snippets/src/main/java/com/example/datacatalog/CreateEntryGroup.java +++ b/datacatalog/snippets/src/main/java/com/example/datacatalog/CreateEntryGroup.java @@ -19,10 +19,10 @@ // [START datacatalog_create_entry_group_tag] import com.google.api.gax.rpc.AlreadyExistsException; -import com.google.cloud.datacatalog.v1beta1.CreateEntryGroupRequest; -import com.google.cloud.datacatalog.v1beta1.DataCatalogClient; -import com.google.cloud.datacatalog.v1beta1.EntryGroup; -import com.google.cloud.datacatalog.v1beta1.LocationName; +import com.google.cloud.datacatalog.v1.CreateEntryGroupRequest; +import com.google.cloud.datacatalog.v1.DataCatalogClient; +import com.google.cloud.datacatalog.v1.EntryGroup; +import com.google.cloud.datacatalog.v1.LocationName; import java.io.IOException; public class CreateEntryGroup { diff --git a/datacatalog/snippets/src/main/java/com/example/datacatalog/CreateFilesetEntry.java b/datacatalog/snippets/src/main/java/com/example/datacatalog/CreateFilesetEntry.java index fb28f72b89d..c1ca167a884 100644 --- a/datacatalog/snippets/src/main/java/com/example/datacatalog/CreateFilesetEntry.java +++ b/datacatalog/snippets/src/main/java/com/example/datacatalog/CreateFilesetEntry.java @@ -19,14 +19,14 @@ // [START datacatalog_create_fileset_tag] import com.google.api.gax.rpc.AlreadyExistsException; -import com.google.cloud.datacatalog.v1beta1.ColumnSchema; -import com.google.cloud.datacatalog.v1beta1.CreateEntryRequest; -import com.google.cloud.datacatalog.v1beta1.DataCatalogClient; -import com.google.cloud.datacatalog.v1beta1.Entry; -import com.google.cloud.datacatalog.v1beta1.EntryGroupName; -import com.google.cloud.datacatalog.v1beta1.EntryType; -import com.google.cloud.datacatalog.v1beta1.GcsFilesetSpec; -import com.google.cloud.datacatalog.v1beta1.Schema; +import com.google.cloud.datacatalog.v1.ColumnSchema; +import com.google.cloud.datacatalog.v1.CreateEntryRequest; +import com.google.cloud.datacatalog.v1.DataCatalogClient; +import com.google.cloud.datacatalog.v1.Entry; +import com.google.cloud.datacatalog.v1.EntryGroupName; +import com.google.cloud.datacatalog.v1.EntryType; +import com.google.cloud.datacatalog.v1.GcsFilesetSpec; +import com.google.cloud.datacatalog.v1.Schema; import java.io.IOException; public class CreateFilesetEntry { diff --git a/datacatalog/snippets/src/main/java/com/example/datacatalog/LookupEntryBigQueryDataset.java b/datacatalog/snippets/src/main/java/com/example/datacatalog/LookupEntryBigQueryDataset.java index 90c0375d327..95482148c20 100644 --- a/datacatalog/snippets/src/main/java/com/example/datacatalog/LookupEntryBigQueryDataset.java +++ b/datacatalog/snippets/src/main/java/com/example/datacatalog/LookupEntryBigQueryDataset.java @@ -17,9 +17,9 @@ package com.example.datacatalog; // [START datacatalog_bigquery_lookup_dataset] -import com.google.cloud.datacatalog.v1beta1.DataCatalogClient; -import com.google.cloud.datacatalog.v1beta1.Entry; -import com.google.cloud.datacatalog.v1beta1.LookupEntryRequest; +import com.google.cloud.datacatalog.v1.DataCatalogClient; +import com.google.cloud.datacatalog.v1.Entry; +import com.google.cloud.datacatalog.v1.LookupEntryRequest; public class LookupEntryBigQueryDataset { diff --git a/datacatalog/snippets/src/main/java/com/example/datacatalog/LookupEntryBigQueryTable.java b/datacatalog/snippets/src/main/java/com/example/datacatalog/LookupEntryBigQueryTable.java index c84b52cb75e..0cf8b2ff740 100644 --- a/datacatalog/snippets/src/main/java/com/example/datacatalog/LookupEntryBigQueryTable.java +++ b/datacatalog/snippets/src/main/java/com/example/datacatalog/LookupEntryBigQueryTable.java @@ -16,9 +16,9 @@ package com.example.datacatalog; -import com.google.cloud.datacatalog.v1beta1.DataCatalogClient; -import com.google.cloud.datacatalog.v1beta1.Entry; -import com.google.cloud.datacatalog.v1beta1.LookupEntryRequest; +import com.google.cloud.datacatalog.v1.DataCatalogClient; +import com.google.cloud.datacatalog.v1.Entry; +import com.google.cloud.datacatalog.v1.LookupEntryRequest; public class LookupEntryBigQueryTable { diff --git a/datacatalog/snippets/src/main/java/com/example/datacatalog/LookupEntryPubSubTopic.java b/datacatalog/snippets/src/main/java/com/example/datacatalog/LookupEntryPubSubTopic.java index 90863a574fd..9db4c4c53c4 100644 --- a/datacatalog/snippets/src/main/java/com/example/datacatalog/LookupEntryPubSubTopic.java +++ b/datacatalog/snippets/src/main/java/com/example/datacatalog/LookupEntryPubSubTopic.java @@ -16,9 +16,9 @@ package com.example.datacatalog; -import com.google.cloud.datacatalog.v1beta1.DataCatalogClient; -import com.google.cloud.datacatalog.v1beta1.Entry; -import com.google.cloud.datacatalog.v1beta1.LookupEntryRequest; +import com.google.cloud.datacatalog.v1.DataCatalogClient; +import com.google.cloud.datacatalog.v1.Entry; +import com.google.cloud.datacatalog.v1.LookupEntryRequest; public class LookupEntryPubSubTopic { diff --git a/datacatalog/snippets/src/test/java/com/example/datacatalog/CreateEntryTests.java b/datacatalog/snippets/src/test/java/com/example/datacatalog/CreateEntryTests.java index 83ff5ad32b9..dd8555efe30 100644 --- a/datacatalog/snippets/src/test/java/com/example/datacatalog/CreateEntryTests.java +++ b/datacatalog/snippets/src/test/java/com/example/datacatalog/CreateEntryTests.java @@ -19,9 +19,9 @@ import static org.junit.Assert.assertThat; import static org.junit.Assert.fail; -import com.google.cloud.datacatalog.v1beta1.DataCatalogClient; -import com.google.cloud.datacatalog.v1beta1.EntryGroupName; -import com.google.cloud.datacatalog.v1beta1.EntryName; +import com.google.cloud.datacatalog.v1.DataCatalogClient; +import com.google.cloud.datacatalog.v1.EntryGroupName; +import com.google.cloud.datacatalog.v1.EntryName; import java.io.ByteArrayOutputStream; import java.io.PrintStream; import java.util.ArrayList; From 8d6273d5b9a55d2ad282045fadf826c32007abf5 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 23 Sep 2020 01:40:17 +0200 Subject: [PATCH 030/112] chore(deps): update dependency com.google.cloud:libraries-bom to v10 (#265) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | major | `8.1.0` -> `10.1.0` | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-datacatalog). --- datacatalog/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datacatalog/snippets/pom.xml b/datacatalog/snippets/pom.xml index e3ddc6946c5..9690af17d24 100644 --- a/datacatalog/snippets/pom.xml +++ b/datacatalog/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 8.1.0 + 10.1.0 pom import From f8c8b5989cf7af91a590a79e637e1d49df780432 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 24 Sep 2020 19:46:27 +0200 Subject: [PATCH 031/112] chore(deps): update dependency com.google.cloud:libraries-bom to v11 (#291) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | major | `10.1.0` -> `11.0.0` | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-datacatalog). --- datacatalog/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datacatalog/snippets/pom.xml b/datacatalog/snippets/pom.xml index 9690af17d24..70649e3d56e 100644 --- a/datacatalog/snippets/pom.xml +++ b/datacatalog/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 10.1.0 + 11.0.0 pom import From 1728b14e09037e410e4d3751219d8fa57f655bda Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 2 Oct 2020 18:54:12 +0200 Subject: [PATCH 032/112] chore(deps): update dependency com.google.cloud.samples:shared-configuration to v1.0.21 (#292) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud.samples:shared-configuration](com/google/cloud/samples/shared-configuration) | patch | `1.0.18` -> `1.0.21` | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-datacatalog). --- datacatalog/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datacatalog/snippets/pom.xml b/datacatalog/snippets/pom.xml index 70649e3d56e..679b7d06698 100644 --- a/datacatalog/snippets/pom.xml +++ b/datacatalog/snippets/pom.xml @@ -14,7 +14,7 @@ com.google.cloud.samples shared-configuration - 1.0.18 + 1.0.21 From 3265d8580efae20ee2c5aa98d5bc8a0d5637fa5b Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 6 Oct 2020 22:08:25 +0200 Subject: [PATCH 033/112] chore(deps): update dependency com.google.cloud:libraries-bom to v12 (#297) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | major | `11.0.0` -> `12.0.0` | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-datacatalog). --- datacatalog/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datacatalog/snippets/pom.xml b/datacatalog/snippets/pom.xml index 679b7d06698..b587c8b5ae4 100644 --- a/datacatalog/snippets/pom.xml +++ b/datacatalog/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 11.0.0 + 12.0.0 pom import From 00ddcdf2763187d2aa0dfd1893173c75950d1b93 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 12 Oct 2020 19:00:03 +0200 Subject: [PATCH 034/112] test(deps): update dependency junit:junit to v4.13.1 --- datacatalog/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datacatalog/snippets/pom.xml b/datacatalog/snippets/pom.xml index b587c8b5ae4..ed9a98c6514 100644 --- a/datacatalog/snippets/pom.xml +++ b/datacatalog/snippets/pom.xml @@ -47,7 +47,7 @@ junit junit - 4.13 + 4.13.1 test From b3f2d9ddf5a6f6c958cd39de0be55d75fc3f58ac Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 14 Oct 2020 19:23:25 +0200 Subject: [PATCH 035/112] chore(deps): update dependency com.google.cloud:libraries-bom to v12.1.0 (#308) --- datacatalog/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datacatalog/snippets/pom.xml b/datacatalog/snippets/pom.xml index ed9a98c6514..c6a7cf1d491 100644 --- a/datacatalog/snippets/pom.xml +++ b/datacatalog/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 12.0.0 + 12.1.0 pom import From d50c58003971047b74a074553ba0e87e2ecb629b Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 21 Oct 2020 00:50:59 +0200 Subject: [PATCH 036/112] chore(deps): update dependency com.google.cloud:libraries-bom to v13 (#323) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | major | `12.1.0` -> `13.0.0` | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-datacatalog). --- datacatalog/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datacatalog/snippets/pom.xml b/datacatalog/snippets/pom.xml index c6a7cf1d491..42043ea574f 100644 --- a/datacatalog/snippets/pom.xml +++ b/datacatalog/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 12.1.0 + 13.0.0 pom import From a48f4521ac34d196d1e34038e5422652fb79e624 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 21 Oct 2020 20:30:08 +0200 Subject: [PATCH 037/112] chore(deps): update dependency com.google.cloud:libraries-bom to v13.1.0 (#329) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | minor | `13.0.0` -> `13.1.0` | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-datacatalog). --- datacatalog/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datacatalog/snippets/pom.xml b/datacatalog/snippets/pom.xml index 42043ea574f..e302196d11c 100644 --- a/datacatalog/snippets/pom.xml +++ b/datacatalog/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 13.0.0 + 13.1.0 pom import From c5b79411b42d9ad773e2cc8cd30791cabe90434b Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 22 Oct 2020 21:36:50 +0200 Subject: [PATCH 038/112] test(deps): update dependency com.google.truth:truth to v1.1 (#324) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.truth:truth](com/google/truth/truth) | minor | `1.0.1` -> `1.1` | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-datacatalog). --- datacatalog/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datacatalog/snippets/pom.xml b/datacatalog/snippets/pom.xml index e302196d11c..f9169af0ddf 100644 --- a/datacatalog/snippets/pom.xml +++ b/datacatalog/snippets/pom.xml @@ -53,7 +53,7 @@ com.google.truth truth - 1.0.1 + 1.1 test From 16de339ba7cf4e55564be0c46a07026ca317ac5a Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 23 Oct 2020 19:58:04 +0200 Subject: [PATCH 039/112] chore(deps): update dependency com.google.cloud:libraries-bom to v13.2.0 (#334) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | minor | `13.1.0` -> `13.2.0` | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-datacatalog). --- datacatalog/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datacatalog/snippets/pom.xml b/datacatalog/snippets/pom.xml index f9169af0ddf..792917cc750 100644 --- a/datacatalog/snippets/pom.xml +++ b/datacatalog/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 13.1.0 + 13.2.0 pom import From 0087839d222eeedd0805b18b25fec3f4eb1b1b57 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 27 Oct 2020 01:00:28 +0100 Subject: [PATCH 040/112] chore(deps): update dependency com.google.cloud:libraries-bom to v13.3.0 (#336) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | minor | `13.2.0` -> `13.3.0` | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-datacatalog). --- datacatalog/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datacatalog/snippets/pom.xml b/datacatalog/snippets/pom.xml index 792917cc750..31d3ba3b016 100644 --- a/datacatalog/snippets/pom.xml +++ b/datacatalog/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 13.2.0 + 13.3.0 pom import From 0b0030639a85e64ca255f2b6f1a02ba4a54d8ee6 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Sat, 31 Oct 2020 00:34:30 +0100 Subject: [PATCH 041/112] chore(deps): update dependency com.google.cloud:libraries-bom to v13.4.0 (#341) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | minor | `13.3.0` -> `13.4.0` | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-datacatalog). --- datacatalog/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datacatalog/snippets/pom.xml b/datacatalog/snippets/pom.xml index 31d3ba3b016..4e4906a44ed 100644 --- a/datacatalog/snippets/pom.xml +++ b/datacatalog/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 13.3.0 + 13.4.0 pom import From 6f036319bf974751d35b22c937eadb3c4d30e60c Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 4 Nov 2020 01:28:09 +0100 Subject: [PATCH 042/112] chore(deps): update dependency com.google.cloud:libraries-bom to v14 (#346) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | major | `13.4.0` -> `14.4.1` | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-datacatalog). --- datacatalog/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datacatalog/snippets/pom.xml b/datacatalog/snippets/pom.xml index 4e4906a44ed..98140d561d1 100644 --- a/datacatalog/snippets/pom.xml +++ b/datacatalog/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 13.4.0 + 14.4.1 pom import From 55892e7b4305d58df6128fa8b2b1185149d56a6b Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 6 Nov 2020 00:02:36 +0100 Subject: [PATCH 043/112] chore(deps): update dependency com.google.cloud:libraries-bom to v15 (#349) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | major | `14.4.1` -> `15.0.0` | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-datacatalog). --- datacatalog/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datacatalog/snippets/pom.xml b/datacatalog/snippets/pom.xml index 98140d561d1..3be4c9b68ff 100644 --- a/datacatalog/snippets/pom.xml +++ b/datacatalog/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 14.4.1 + 15.0.0 pom import From 9d10efb5a7aa6d4a5d9ab9707addcc598783f667 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 19 Nov 2020 18:00:28 +0100 Subject: [PATCH 044/112] chore(deps): update dependency com.google.cloud:libraries-bom to v16 (#362) [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | major | `15.0.0` -> `16.1.0` | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-datacatalog). --- datacatalog/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datacatalog/snippets/pom.xml b/datacatalog/snippets/pom.xml index 3be4c9b68ff..f2f058888ad 100644 --- a/datacatalog/snippets/pom.xml +++ b/datacatalog/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 15.0.0 + 16.1.0 pom import From 3c72f3287e8464921aa2ad510381eed002db68e6 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 15 Dec 2020 23:32:29 +0100 Subject: [PATCH 045/112] chore(deps): update dependency com.google.cloud:libraries-bom to v16.2.0 (#388) [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | minor | `16.1.0` -> `16.2.0` | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-datacatalog). --- datacatalog/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datacatalog/snippets/pom.xml b/datacatalog/snippets/pom.xml index f2f058888ad..6066dfa07da 100644 --- a/datacatalog/snippets/pom.xml +++ b/datacatalog/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 16.1.0 + 16.2.0 pom import From d8d3b27c55c964f3c924e175d83eba8950a109b5 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 7 Jan 2021 22:28:21 +0100 Subject: [PATCH 046/112] chore(deps): update dependency com.google.cloud:libraries-bom to v16.2.1 (#395) [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | patch | `16.2.0` -> `16.2.1` | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-datacatalog). --- datacatalog/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datacatalog/snippets/pom.xml b/datacatalog/snippets/pom.xml index 6066dfa07da..48401453dde 100644 --- a/datacatalog/snippets/pom.xml +++ b/datacatalog/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 16.2.0 + 16.2.1 pom import From 45670ab83b37595cfa43ae891b57b8449cfe55c1 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 25 Jan 2021 18:30:09 +0100 Subject: [PATCH 047/112] test(deps): update dependency com.google.truth:truth to v1.1.2 (#406) [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.truth:truth](com/google/truth/truth) | `1.1` -> `1.1.2` | [![age](https://badges.renovateapi.com/packages/maven/com.google.truth:truth/1.1.2/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.truth:truth/1.1.2/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.truth:truth/1.1.2/compatibility-slim/1.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.truth:truth/1.1.2/confidence-slim/1.1)](https://docs.renovatebot.com/merge-confidence/) | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-datacatalog). --- datacatalog/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datacatalog/snippets/pom.xml b/datacatalog/snippets/pom.xml index 48401453dde..9b7880ade96 100644 --- a/datacatalog/snippets/pom.xml +++ b/datacatalog/snippets/pom.xml @@ -53,7 +53,7 @@ com.google.truth truth - 1.1 + 1.1.2 test From 404248385a012d0a5a3d88c89b3d293fe67a78a1 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 9 Feb 2021 00:31:49 +0100 Subject: [PATCH 048/112] chore(deps): update dependency com.google.cloud:libraries-bom to v16.3.0 (#405) --- datacatalog/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datacatalog/snippets/pom.xml b/datacatalog/snippets/pom.xml index 9b7880ade96..558738f2fd4 100644 --- a/datacatalog/snippets/pom.xml +++ b/datacatalog/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 16.2.1 + 16.3.0 pom import From 3238029dfd8c45fd59b9d8435868b2c51c4b44cd Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 10 Feb 2021 17:06:36 +0100 Subject: [PATCH 049/112] chore(deps): update dependency com.google.cloud:libraries-bom to v16.4.0 (#422) [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | `16.3.0` -> `16.4.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/16.4.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/16.4.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/16.4.0/compatibility-slim/16.3.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/16.4.0/confidence-slim/16.3.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-datacatalog). --- datacatalog/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datacatalog/snippets/pom.xml b/datacatalog/snippets/pom.xml index 558738f2fd4..f4186f9218a 100644 --- a/datacatalog/snippets/pom.xml +++ b/datacatalog/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 16.3.0 + 16.4.0 pom import From 2e46c4500d8ce4bc2df2663648a0665276a9bcb4 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 16 Feb 2021 19:04:07 +0100 Subject: [PATCH 050/112] test(deps): update dependency junit:junit to v4.13.2 (#425) [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [junit:junit](http://junit.org) ([source](https://togithub.com/junit-team/junit4)) | `4.13.1` -> `4.13.2` | [![age](https://badges.renovateapi.com/packages/maven/junit:junit/4.13.2/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/junit:junit/4.13.2/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/junit:junit/4.13.2/compatibility-slim/4.13.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/junit:junit/4.13.2/confidence-slim/4.13.1)](https://docs.renovatebot.com/merge-confidence/) | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-datacatalog). --- datacatalog/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datacatalog/snippets/pom.xml b/datacatalog/snippets/pom.xml index f4186f9218a..42ccd70a0b5 100644 --- a/datacatalog/snippets/pom.xml +++ b/datacatalog/snippets/pom.xml @@ -47,7 +47,7 @@ junit junit - 4.13.1 + 4.13.2 test From d391e7d3e7ef72d20c0d0162d516b581a26d5c68 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 24 Feb 2021 20:38:05 +0100 Subject: [PATCH 051/112] chore(deps): update dependency com.google.cloud:libraries-bom to v17 (#435) [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | `16.4.0` -> `17.0.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/17.0.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/17.0.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/17.0.0/compatibility-slim/16.4.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/17.0.0/confidence-slim/16.4.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-datacatalog). --- datacatalog/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datacatalog/snippets/pom.xml b/datacatalog/snippets/pom.xml index 42ccd70a0b5..bfd99e02638 100644 --- a/datacatalog/snippets/pom.xml +++ b/datacatalog/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 16.4.0 + 17.0.0 pom import From b806e04f2ee7584ccfcf5c1e9827bdfe64048dd1 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 25 Feb 2021 16:08:15 +0100 Subject: [PATCH 052/112] chore(deps): update dependency com.google.cloud:libraries-bom to v18 (#438) [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | `17.0.0` -> `18.0.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/18.0.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/18.0.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/18.0.0/compatibility-slim/17.0.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/18.0.0/confidence-slim/17.0.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-datacatalog). --- datacatalog/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datacatalog/snippets/pom.xml b/datacatalog/snippets/pom.xml index bfd99e02638..54e95ec009f 100644 --- a/datacatalog/snippets/pom.xml +++ b/datacatalog/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 17.0.0 + 18.0.0 pom import From 36eaadecd59b2e74f03c365bf5476cf72bcb2dae Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 3 Mar 2021 20:36:46 +0100 Subject: [PATCH 053/112] chore(deps): update dependency com.google.cloud:libraries-bom to v18.1.0 (#449) [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | `18.0.0` -> `18.1.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/18.1.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/18.1.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/18.1.0/compatibility-slim/18.0.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/18.1.0/confidence-slim/18.0.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-datacatalog). --- datacatalog/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datacatalog/snippets/pom.xml b/datacatalog/snippets/pom.xml index 54e95ec009f..f9f3c6bcbc5 100644 --- a/datacatalog/snippets/pom.xml +++ b/datacatalog/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 18.0.0 + 18.1.0 pom import From 714d0f9f8778d827d324d63c2db562f61654be0d Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 4 Mar 2021 20:36:39 +0100 Subject: [PATCH 054/112] chore(deps): update dependency com.google.cloud:libraries-bom to v19 (#452) [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | `18.1.0` -> `19.0.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/19.0.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/19.0.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/19.0.0/compatibility-slim/18.1.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/19.0.0/confidence-slim/18.1.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-datacatalog). --- datacatalog/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datacatalog/snippets/pom.xml b/datacatalog/snippets/pom.xml index f9f3c6bcbc5..1ff89c1cfe2 100644 --- a/datacatalog/snippets/pom.xml +++ b/datacatalog/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 18.1.0 + 19.0.0 pom import From bb63176cd0034c193d93491c4251cadb44e18adb Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 17 Mar 2021 21:08:26 +0100 Subject: [PATCH 055/112] chore(deps): update dependency com.google.cloud:libraries-bom to v19.1.0 (#463) [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | `19.0.0` -> `19.1.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/19.1.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/19.1.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/19.1.0/compatibility-slim/19.0.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/19.1.0/confidence-slim/19.0.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-datacatalog). --- datacatalog/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datacatalog/snippets/pom.xml b/datacatalog/snippets/pom.xml index 1ff89c1cfe2..097fa995688 100644 --- a/datacatalog/snippets/pom.xml +++ b/datacatalog/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 19.0.0 + 19.1.0 pom import From 8db55e9885353dcf6012b37e5bf5da54d84ca2c8 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 29 Mar 2021 15:56:15 +0200 Subject: [PATCH 056/112] chore(deps): update dependency com.google.cloud:libraries-bom to v19.2.1 (#465) [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | `19.1.0` -> `19.2.1` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/19.2.1/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/19.2.1/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/19.2.1/compatibility-slim/19.1.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/19.2.1/confidence-slim/19.1.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-datacatalog). --- datacatalog/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datacatalog/snippets/pom.xml b/datacatalog/snippets/pom.xml index 097fa995688..694c9f8caca 100644 --- a/datacatalog/snippets/pom.xml +++ b/datacatalog/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 19.1.0 + 19.2.1 pom import From 9ac5d2c46906615eaff77e411d9b7d16269692df Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 9 Apr 2021 21:24:14 +0200 Subject: [PATCH 057/112] chore(deps): update dependency com.google.cloud.samples:shared-configuration to v1.0.22 (#476) [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | com.google.cloud.samples:shared-configuration | `1.0.21` -> `1.0.22` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud.samples:shared-configuration/1.0.22/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud.samples:shared-configuration/1.0.22/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud.samples:shared-configuration/1.0.22/compatibility-slim/1.0.21)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud.samples:shared-configuration/1.0.22/confidence-slim/1.0.21)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-datacatalog). --- datacatalog/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datacatalog/snippets/pom.xml b/datacatalog/snippets/pom.xml index 694c9f8caca..076bdd1beb9 100644 --- a/datacatalog/snippets/pom.xml +++ b/datacatalog/snippets/pom.xml @@ -14,7 +14,7 @@ com.google.cloud.samples shared-configuration - 1.0.21 + 1.0.22 From 14815c0be9f9555aac1dacc148ed94073f87df99 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 12 Apr 2021 17:29:11 +0200 Subject: [PATCH 058/112] chore(deps): update dependency com.google.cloud:libraries-bom to v20 (#485) [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | `19.2.1` -> `20.0.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.0.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.0.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.0.0/compatibility-slim/19.2.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.0.0/confidence-slim/19.2.1)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-datacatalog). --- datacatalog/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datacatalog/snippets/pom.xml b/datacatalog/snippets/pom.xml index 076bdd1beb9..5459c985b2c 100644 --- a/datacatalog/snippets/pom.xml +++ b/datacatalog/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 19.2.1 + 20.0.0 pom import From b38b0a821d99cb1c53cce0f29515acd365efb69a Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 19 Apr 2021 16:44:33 +0200 Subject: [PATCH 059/112] chore(deps): update dependency com.google.cloud:libraries-bom to v20.1.0 (#492) [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | `20.0.0` -> `20.1.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.1.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.1.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.1.0/compatibility-slim/20.0.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.1.0/confidence-slim/20.0.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-datacatalog). --- datacatalog/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datacatalog/snippets/pom.xml b/datacatalog/snippets/pom.xml index 5459c985b2c..cb60a493e6b 100644 --- a/datacatalog/snippets/pom.xml +++ b/datacatalog/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 20.0.0 + 20.1.0 pom import From 340375d04a36e6d35b13e66a3122b648bf62d6a6 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 29 Apr 2021 17:38:09 +0200 Subject: [PATCH 060/112] chore(deps): update dependency com.google.cloud:libraries-bom to v20.2.0 (#513) [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | `20.1.0` -> `20.2.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.2.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.2.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.2.0/compatibility-slim/20.1.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.2.0/confidence-slim/20.1.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-datacatalog). --- datacatalog/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datacatalog/snippets/pom.xml b/datacatalog/snippets/pom.xml index cb60a493e6b..c5c00d6627a 100644 --- a/datacatalog/snippets/pom.xml +++ b/datacatalog/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 20.1.0 + 20.2.0 pom import From 7d1a8876f143e432322d59dc0dd35138d4a01295 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 13 May 2021 15:58:14 +0200 Subject: [PATCH 061/112] chore(deps): update dependency com.google.cloud:libraries-bom to v20.3.0 (#520) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | `20.2.0` -> `20.3.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.3.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.3.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.3.0/compatibility-slim/20.2.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.3.0/confidence-slim/20.2.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻️ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-datacatalog). --- datacatalog/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datacatalog/snippets/pom.xml b/datacatalog/snippets/pom.xml index c5c00d6627a..50abf0b35d4 100644 --- a/datacatalog/snippets/pom.xml +++ b/datacatalog/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 20.2.0 + 20.3.0 pom import From 4f95e82e85df9858b0e858c17ae80a605af25021 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 17 May 2021 03:48:10 +0200 Subject: [PATCH 062/112] chore(deps): update dependency com.google.cloud:libraries-bom to v20.4.0 (#529) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | `20.3.0` -> `20.4.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.4.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.4.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.4.0/compatibility-slim/20.3.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.4.0/confidence-slim/20.3.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻️ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-datacatalog). --- datacatalog/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datacatalog/snippets/pom.xml b/datacatalog/snippets/pom.xml index 50abf0b35d4..32743ee216d 100644 --- a/datacatalog/snippets/pom.xml +++ b/datacatalog/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 20.3.0 + 20.4.0 pom import From 03adaf6079fb27ed3d580c4ba95e086d0130b5b2 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 26 May 2021 22:58:21 +0200 Subject: [PATCH 063/112] test(deps): update dependency com.google.truth:truth to v1.1.3 (#539) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | com.google.truth:truth | `1.1.2` -> `1.1.3` | [![age](https://badges.renovateapi.com/packages/maven/com.google.truth:truth/1.1.3/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.truth:truth/1.1.3/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.truth:truth/1.1.3/compatibility-slim/1.1.2)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.truth:truth/1.1.3/confidence-slim/1.1.2)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻️ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-datacatalog). --- datacatalog/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datacatalog/snippets/pom.xml b/datacatalog/snippets/pom.xml index 32743ee216d..f48bafbece4 100644 --- a/datacatalog/snippets/pom.xml +++ b/datacatalog/snippets/pom.xml @@ -53,7 +53,7 @@ com.google.truth truth - 1.1.2 + 1.1.3 test From 693994c7afb4a71482e126f6cbe71232da1ebe50 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 31 May 2021 20:06:17 +0200 Subject: [PATCH 064/112] chore(deps): update dependency com.google.cloud:libraries-bom to v20.5.0 (#538) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | `20.4.0` -> `20.5.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.5.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.5.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.5.0/compatibility-slim/20.4.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.5.0/confidence-slim/20.4.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻️ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-datacatalog). --- datacatalog/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datacatalog/snippets/pom.xml b/datacatalog/snippets/pom.xml index f48bafbece4..05806ecee13 100644 --- a/datacatalog/snippets/pom.xml +++ b/datacatalog/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 20.4.0 + 20.5.0 pom import From 44dc3173df60ce9c0be593568107677c29d7ebca Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 7 Jun 2021 21:02:07 +0200 Subject: [PATCH 065/112] chore(deps): update dependency com.google.cloud:libraries-bom to v20.6.0 (#551) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | `20.5.0` -> `20.6.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.6.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.6.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.6.0/compatibility-slim/20.5.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.6.0/confidence-slim/20.5.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-datacatalog). --- datacatalog/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datacatalog/snippets/pom.xml b/datacatalog/snippets/pom.xml index 05806ecee13..c390b8f2361 100644 --- a/datacatalog/snippets/pom.xml +++ b/datacatalog/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 20.5.0 + 20.6.0 pom import From f67a82ee223e298d7ee5ded71a6e989675337bee Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 8 Jun 2021 00:32:25 +0200 Subject: [PATCH 066/112] chore(deps): update dependency com.google.cloud.samples:shared-configuration to v1.0.23 (#550) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | com.google.cloud.samples:shared-configuration | `1.0.22` -> `1.0.23` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud.samples:shared-configuration/1.0.23/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud.samples:shared-configuration/1.0.23/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud.samples:shared-configuration/1.0.23/compatibility-slim/1.0.22)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud.samples:shared-configuration/1.0.23/confidence-slim/1.0.22)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-datacatalog). --- datacatalog/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datacatalog/snippets/pom.xml b/datacatalog/snippets/pom.xml index c390b8f2361..40d2052b70b 100644 --- a/datacatalog/snippets/pom.xml +++ b/datacatalog/snippets/pom.xml @@ -14,7 +14,7 @@ com.google.cloud.samples shared-configuration - 1.0.22 + 1.0.23 From 93e60c8ea2fcc7e15baca5f4553d05a99b57c032 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 23 Jun 2021 21:08:37 +0200 Subject: [PATCH 067/112] chore(deps): update dependency com.google.cloud:libraries-bom to v20.7.0 (#563) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | `20.6.0` -> `20.7.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.7.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.7.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.7.0/compatibility-slim/20.6.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.7.0/confidence-slim/20.6.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-datacatalog). --- datacatalog/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datacatalog/snippets/pom.xml b/datacatalog/snippets/pom.xml index 40d2052b70b..85baff7ac36 100644 --- a/datacatalog/snippets/pom.xml +++ b/datacatalog/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 20.6.0 + 20.7.0 pom import From 5cba870d67a80a9c59839df4d05ef75489726798 Mon Sep 17 00:00:00 2001 From: Praful Makani Date: Thu, 1 Jul 2021 00:43:34 +0530 Subject: [PATCH 068/112] docs(samples): add Entry, EntryGroup and TagTemplate (#394) * docs(samples): add Entry, EntryGroup and TagTemplate * fix IT * update sample * Update CreateEntryGroupIT.java * Update CreateEntryTests.java Co-authored-by: Stephanie Wang --- datacatalog/snippets/pom.xml | 5 + .../com/example/datacatalog/CreateEntry.java | 57 ++++++++ .../example/datacatalog/CreateEntryGroup.java | 38 ++---- .../datacatalog/CreateFilesetEntry.java | 2 +- .../datacatalog/CreateTagTemplate.java | 68 ++++++++++ .../com/example/datacatalog/DeleteEntry.java | 50 +++++++ .../example/datacatalog/DeleteEntryGroup.java | 49 +++++++ .../datacatalog/DeleteTagTemplate.java | 49 +++++++ .../com/example/datacatalog/GetEntry.java | 48 +++++++ .../example/datacatalog/GetEntryGroup.java | 47 +++++++ .../example/datacatalog/GetTagTemplate.java | 50 +++++++ .../com/example/datacatalog/ListEntries.java | 51 ++++++++ .../example/datacatalog/ListEntryGroups.java | 55 ++++++++ .../com/example/datacatalog/UpdateEntry.java | 57 ++++++++ .../example/datacatalog/UpdateEntryGroup.java | 62 +++++++++ .../datacatalog/UpdateTagTemplate.java | 63 +++++++++ .../datacatalog/CreateEntryGroupIT.java | 84 ++++++++++++ .../example/datacatalog/CreateEntryIT.java | 119 +++++++++++++++++ .../example/datacatalog/CreateEntryTests.java | 11 +- .../datacatalog/CreateTagTemplateIT.java | 100 ++++++++++++++ .../datacatalog/DeleteEntryGroupIT.java | 84 ++++++++++++ .../example/datacatalog/DeleteEntryIT.java | 120 +++++++++++++++++ .../datacatalog/DeleteTagTemplateIT.java | 100 ++++++++++++++ .../example/datacatalog/GetEntryGroupIT.java | 87 +++++++++++++ .../com/example/datacatalog/GetEntryIT.java | 121 +++++++++++++++++ .../example/datacatalog/GetTagTemplateIT.java | 103 +++++++++++++++ .../example/datacatalog/ListEntriesIT.java | 121 +++++++++++++++++ .../datacatalog/ListEntryGroupsIT.java | 87 +++++++++++++ .../datacatalog/UpdateEntryGroupIT.java | 90 +++++++++++++ .../example/datacatalog/UpdateEntryIT.java | 123 ++++++++++++++++++ .../datacatalog/UpdateTagTemplateIT.java | 108 +++++++++++++++ 31 files changed, 2179 insertions(+), 30 deletions(-) create mode 100644 datacatalog/snippets/src/main/java/com/example/datacatalog/CreateEntry.java create mode 100644 datacatalog/snippets/src/main/java/com/example/datacatalog/CreateTagTemplate.java create mode 100644 datacatalog/snippets/src/main/java/com/example/datacatalog/DeleteEntry.java create mode 100644 datacatalog/snippets/src/main/java/com/example/datacatalog/DeleteEntryGroup.java create mode 100644 datacatalog/snippets/src/main/java/com/example/datacatalog/DeleteTagTemplate.java create mode 100644 datacatalog/snippets/src/main/java/com/example/datacatalog/GetEntry.java create mode 100644 datacatalog/snippets/src/main/java/com/example/datacatalog/GetEntryGroup.java create mode 100644 datacatalog/snippets/src/main/java/com/example/datacatalog/GetTagTemplate.java create mode 100644 datacatalog/snippets/src/main/java/com/example/datacatalog/ListEntries.java create mode 100644 datacatalog/snippets/src/main/java/com/example/datacatalog/ListEntryGroups.java create mode 100644 datacatalog/snippets/src/main/java/com/example/datacatalog/UpdateEntry.java create mode 100644 datacatalog/snippets/src/main/java/com/example/datacatalog/UpdateEntryGroup.java create mode 100644 datacatalog/snippets/src/main/java/com/example/datacatalog/UpdateTagTemplate.java create mode 100644 datacatalog/snippets/src/test/java/com/example/datacatalog/CreateEntryGroupIT.java create mode 100644 datacatalog/snippets/src/test/java/com/example/datacatalog/CreateEntryIT.java create mode 100644 datacatalog/snippets/src/test/java/com/example/datacatalog/CreateTagTemplateIT.java create mode 100644 datacatalog/snippets/src/test/java/com/example/datacatalog/DeleteEntryGroupIT.java create mode 100644 datacatalog/snippets/src/test/java/com/example/datacatalog/DeleteEntryIT.java create mode 100644 datacatalog/snippets/src/test/java/com/example/datacatalog/DeleteTagTemplateIT.java create mode 100644 datacatalog/snippets/src/test/java/com/example/datacatalog/GetEntryGroupIT.java create mode 100644 datacatalog/snippets/src/test/java/com/example/datacatalog/GetEntryIT.java create mode 100644 datacatalog/snippets/src/test/java/com/example/datacatalog/GetTagTemplateIT.java create mode 100644 datacatalog/snippets/src/test/java/com/example/datacatalog/ListEntriesIT.java create mode 100644 datacatalog/snippets/src/test/java/com/example/datacatalog/ListEntryGroupsIT.java create mode 100644 datacatalog/snippets/src/test/java/com/example/datacatalog/UpdateEntryGroupIT.java create mode 100644 datacatalog/snippets/src/test/java/com/example/datacatalog/UpdateEntryIT.java create mode 100644 datacatalog/snippets/src/test/java/com/example/datacatalog/UpdateTagTemplateIT.java diff --git a/datacatalog/snippets/pom.xml b/datacatalog/snippets/pom.xml index 85baff7ac36..110949c3bc4 100644 --- a/datacatalog/snippets/pom.xml +++ b/datacatalog/snippets/pom.xml @@ -44,6 +44,11 @@ + + com.google.protobuf + protobuf-java-util + 3.14.0 + junit junit diff --git a/datacatalog/snippets/src/main/java/com/example/datacatalog/CreateEntry.java b/datacatalog/snippets/src/main/java/com/example/datacatalog/CreateEntry.java new file mode 100644 index 00000000000..2cbc7e40a01 --- /dev/null +++ b/datacatalog/snippets/src/main/java/com/example/datacatalog/CreateEntry.java @@ -0,0 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.example.datacatalog; + +// [START data_catalog_create_entry] +import com.google.cloud.datacatalog.v1.CreateEntryRequest; +import com.google.cloud.datacatalog.v1.DataCatalogClient; +import com.google.cloud.datacatalog.v1.Entry; +import com.google.cloud.datacatalog.v1.EntryGroupName; +import java.io.IOException; + +// Sample to create an entry +public class CreateEntry { + + public static void main(String[] args) throws IOException { + // TODO(developer): Replace these variables before running the sample. + String projectId = "MY_PROJECT_ID"; + String location = "MY_LOCATION"; + String entryGroupId = "MY_ENTRY_GROUP_ID"; + String entryId = "MY_ENTRY_ID"; + EntryGroupName entryGroupName = EntryGroupName.of(projectId, location, entryGroupId); + Entry entry = Entry.newBuilder().build(); + createEntry(entryGroupName, entryId, entry); + } + + public static void createEntry(EntryGroupName entryGroupName, String entryId, Entry entry) + throws IOException { + // Initialize client that will be used to send requests. This client only needs to be created + // once, and can be reused for multiple requests. After completing all of your requests, call + // the "close" method on the client to safely clean up any remaining background resources. + try (DataCatalogClient client = DataCatalogClient.create()) { + CreateEntryRequest request = + CreateEntryRequest.newBuilder() + .setParent(entryGroupName.toString()) + .setEntryId(entryId) + .setEntry(entry) + .build(); + client.createEntry(request); + System.out.println("Entry created successfully"); + } + } +} +// [END data_catalog_create_entry] diff --git a/datacatalog/snippets/src/main/java/com/example/datacatalog/CreateEntryGroup.java b/datacatalog/snippets/src/main/java/com/example/datacatalog/CreateEntryGroup.java index db833573714..64133657f8a 100644 --- a/datacatalog/snippets/src/main/java/com/example/datacatalog/CreateEntryGroup.java +++ b/datacatalog/snippets/src/main/java/com/example/datacatalog/CreateEntryGroup.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 Google Inc. + * Copyright 2020 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,41 +16,37 @@ package com.example.datacatalog; -// [START datacatalog_create_entry_group_tag] - -import com.google.api.gax.rpc.AlreadyExistsException; +// [START data_catalog_create_entry_group] import com.google.cloud.datacatalog.v1.CreateEntryGroupRequest; import com.google.cloud.datacatalog.v1.DataCatalogClient; import com.google.cloud.datacatalog.v1.EntryGroup; import com.google.cloud.datacatalog.v1.LocationName; import java.io.IOException; +// Sample to create an entry group public class CreateEntryGroup { - public static void createEntryGroup() { + public static void main(String[] args) throws IOException { // TODO(developer): Replace these variables before running the sample. - String projectId = "my-project-id"; - String entryGroupId = "fileset_entry_group"; - createEntryGroup(projectId, entryGroupId); + String projectId = "MY_PROJECT_ID"; + String location = "us-central1"; + String entryGroupId = "MY_ENTRY_GROUP_ID"; + createEntryGroup(projectId, location, entryGroupId); } // Create Entry Group. - public static void createEntryGroup(String projectId, String entryGroupId) { - // Currently, Data Catalog stores metadata in the us-central1 region. - String location = "us-central1"; - + public static void createEntryGroup(String projectId, String location, String entryGroupId) + throws IOException { // Initialize client that will be used to send requests. This client only needs to be created // once, and can be reused for multiple requests. After completing all of your requests, call // the "close" method on the client to safely clean up any remaining background resources. try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - // Construct the EntryGroup for the EntryGroup request. EntryGroup entryGroup = EntryGroup.newBuilder() - .setDisplayName("My Fileset Entry Group") + .setDisplayName("MY Entry Group") .setDescription("This Entry Group consists of ....") .build(); - // Construct the EntryGroup request to be sent by the client. CreateEntryGroupRequest entryGroupRequest = CreateEntryGroupRequest.newBuilder() .setParent(LocationName.of(projectId, location).toString()) @@ -58,15 +54,9 @@ public static void createEntryGroup(String projectId, String entryGroupId) { .setEntryGroup(entryGroup) .build(); - // Use the client to send the API request. - EntryGroup entryGroupResponse = dataCatalogClient.createEntryGroup(entryGroupRequest); - System.out.printf("\nEntry Group created with name: %s\n", entryGroupResponse.getName()); - } catch (AlreadyExistsException | IOException e) { - // AlreadyExistsException's are thrown if EntryGroup or Entry already exists. - // IOException's are thrown when unable to create the DataCatalogClient, - // for example an invalid Service Account path. - System.out.println("Error in create entry process:\n" + e.toString()); + dataCatalogClient.createEntryGroup(entryGroupRequest); + System.out.println("Entry Group created successfully"); } } } -// [END datacatalog_create_entry_group_tag] \ No newline at end of file +// [END data_catalog_create_entry_group] diff --git a/datacatalog/snippets/src/main/java/com/example/datacatalog/CreateFilesetEntry.java b/datacatalog/snippets/src/main/java/com/example/datacatalog/CreateFilesetEntry.java index c1ca167a884..579c18bd870 100644 --- a/datacatalog/snippets/src/main/java/com/example/datacatalog/CreateFilesetEntry.java +++ b/datacatalog/snippets/src/main/java/com/example/datacatalog/CreateFilesetEntry.java @@ -115,4 +115,4 @@ public static void createEntry(String projectId, String entryGroupId, String ent } } } -// [END datacatalog_create_fileset_tag] \ No newline at end of file +// [END datacatalog_create_fileset_tag] diff --git a/datacatalog/snippets/src/main/java/com/example/datacatalog/CreateTagTemplate.java b/datacatalog/snippets/src/main/java/com/example/datacatalog/CreateTagTemplate.java new file mode 100644 index 00000000000..8528185c8b5 --- /dev/null +++ b/datacatalog/snippets/src/main/java/com/example/datacatalog/CreateTagTemplate.java @@ -0,0 +1,68 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.example.datacatalog; + +// [START data_catalog_create_tag_template] +import com.google.cloud.datacatalog.v1.CreateTagTemplateRequest; +import com.google.cloud.datacatalog.v1.DataCatalogClient; +import com.google.cloud.datacatalog.v1.FieldType; +import com.google.cloud.datacatalog.v1.LocationName; +import com.google.cloud.datacatalog.v1.TagTemplate; +import com.google.cloud.datacatalog.v1.TagTemplateField; +import java.io.IOException; + +// Sample to create tag template +public class CreateTagTemplate { + + public static void main(String[] args) throws IOException { + // TODO(developer): Replace these variables before running the sample. + String projectId = "MY_PROJECT_ID"; + String location = "MY_LOCATION"; + LocationName locationName = LocationName.of(projectId, location); + String tagTemplateId = "MY_TAG_TEMPLATE_ID"; + TagTemplateField sourceField = + TagTemplateField.newBuilder() + .setDisplayName("Your display name") + .setType( + FieldType.newBuilder().setPrimitiveType(FieldType.PrimitiveType.STRING).build()) + .build(); + TagTemplate tagTemplate = + TagTemplate.newBuilder() + .setDisplayName("Your display name") + .putFields("sourceField", sourceField) + .build(); + createTagTemplate(locationName, tagTemplateId, tagTemplate); + } + + public static void createTagTemplate( + LocationName name, String tagTemplateId, TagTemplate template) throws IOException { + // Initialize client that will be used to send requests. This client only needs to be created + // once, and can be reused for multiple requests. After completing all of your requests, call + // the "close" method on the client to safely clean up any remaining background resources. + try (DataCatalogClient client = DataCatalogClient.create()) { + CreateTagTemplateRequest request = + CreateTagTemplateRequest.newBuilder() + .setParent(name.toString()) + .setTagTemplateId(tagTemplateId) + .setTagTemplate(template) + .build(); + client.createTagTemplate(request); + System.out.println("Tag template created successfully"); + } + } +} +// [END data_catalog_create_tag_template] diff --git a/datacatalog/snippets/src/main/java/com/example/datacatalog/DeleteEntry.java b/datacatalog/snippets/src/main/java/com/example/datacatalog/DeleteEntry.java new file mode 100644 index 00000000000..8658f7f9cee --- /dev/null +++ b/datacatalog/snippets/src/main/java/com/example/datacatalog/DeleteEntry.java @@ -0,0 +1,50 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.example.datacatalog; + +// [START data_catalog_delete_entry] +import com.google.cloud.datacatalog.v1.DataCatalogClient; +import com.google.cloud.datacatalog.v1.DeleteEntryRequest; +import com.google.cloud.datacatalog.v1.EntryName; +import java.io.IOException; + +// Sample to delete a entry +public class DeleteEntry { + + public static void main(String[] args) throws IOException { + // TODO(developer): Replace these variables before running the sample. + String projectId = "MY_PROJECT_ID"; + String location = "MY_LOCATION"; + String entryGroupId = "MY_ENTRY_GROUP_ID"; + String entryId = "MY_ENTRY_ID"; + EntryName entryName = EntryName.of(projectId, location, entryGroupId, entryId); + deleteEntry(entryName); + } + + public static void deleteEntry(EntryName entryName) throws IOException { + // Initialize client that will be used to send requests. This client only needs to be created + // once, and can be reused for multiple requests. After completing all of your requests, call + // the "close" method on the client to safely clean up any remaining background resources. + try (DataCatalogClient client = DataCatalogClient.create()) { + DeleteEntryRequest request = + DeleteEntryRequest.newBuilder().setName(entryName.toString()).build(); + client.deleteEntry(request); + System.out.println("Entry deleted successfully"); + } + } +} +// [END data_catalog_delete_entry] diff --git a/datacatalog/snippets/src/main/java/com/example/datacatalog/DeleteEntryGroup.java b/datacatalog/snippets/src/main/java/com/example/datacatalog/DeleteEntryGroup.java new file mode 100644 index 00000000000..07460d3f8ce --- /dev/null +++ b/datacatalog/snippets/src/main/java/com/example/datacatalog/DeleteEntryGroup.java @@ -0,0 +1,49 @@ +/* + * Copyright 2020 Google Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.example.datacatalog; + +// [START data_catalog_delete_entry_group] +import com.google.cloud.datacatalog.v1.DataCatalogClient; +import com.google.cloud.datacatalog.v1.DeleteEntryGroupRequest; +import com.google.cloud.datacatalog.v1.EntryGroupName; +import java.io.IOException; + +// Sample to delete a entry group +public class DeleteEntryGroup { + + public static void main(String[] args) throws IOException { + // TODO(developer): Replace these variables before running the sample. + String projectId = "MY_PROJECT_ID"; + String location = "MY_LOCATION"; + String entryGroupId = "MY_ENTRY_GROUP_ID"; + EntryGroupName entryGroupName = EntryGroupName.of(projectId, location, entryGroupId); + deleteEntryGroup(entryGroupName); + } + + public static void deleteEntryGroup(EntryGroupName entryGroupName) throws IOException { + // Initialize client that will be used to send requests. This client only needs to be created + // once, and can be reused for multiple requests. After completing all of your requests, call + // the "close" method on the client to safely clean up any remaining background resources. + try (DataCatalogClient client = DataCatalogClient.create()) { + DeleteEntryGroupRequest request = + DeleteEntryGroupRequest.newBuilder().setName(entryGroupName.toString()).build(); + client.deleteEntryGroup(request); + System.out.println("Entry group deleted successfully"); + } + } +} +// [END data_catalog_delete_entry_group] diff --git a/datacatalog/snippets/src/main/java/com/example/datacatalog/DeleteTagTemplate.java b/datacatalog/snippets/src/main/java/com/example/datacatalog/DeleteTagTemplate.java new file mode 100644 index 00000000000..fc1a2a04871 --- /dev/null +++ b/datacatalog/snippets/src/main/java/com/example/datacatalog/DeleteTagTemplate.java @@ -0,0 +1,49 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.example.datacatalog; + +// [START data_catalog_delete_tag_template] +import com.google.cloud.datacatalog.v1.DataCatalogClient; +import com.google.cloud.datacatalog.v1.DeleteTagTemplateRequest; +import com.google.cloud.datacatalog.v1.TagTemplateName; +import java.io.IOException; + +// Sample to delete tag template +public class DeleteTagTemplate { + + public static void main(String[] args) throws IOException { + // TODO(developer): Replace these variables before running the sample. + String projectId = "MY_PROJECT_ID"; + String location = "MY_LOCATION"; + String tagTemplateId = "MY_TAG_TEMPLATE_ID"; + TagTemplateName tagTemplate = TagTemplateName.of(projectId, location, tagTemplateId); + deleteTagTemplate(tagTemplate); + } + + public static void deleteTagTemplate(TagTemplateName template) throws IOException { + // Initialize client that will be used to send requests. This client only needs to be created + // once, and can be reused for multiple requests. After completing all of your requests, call + // the "close" method on the client to safely clean up any remaining background resources. + try (DataCatalogClient client = DataCatalogClient.create()) { + DeleteTagTemplateRequest request = + DeleteTagTemplateRequest.newBuilder().setName(template.toString()).setForce(true).build(); + client.deleteTagTemplate(request); + System.out.println("Tag template deleted successfully"); + } + } +} +// [END data_catalog_delete_tag_template] diff --git a/datacatalog/snippets/src/main/java/com/example/datacatalog/GetEntry.java b/datacatalog/snippets/src/main/java/com/example/datacatalog/GetEntry.java new file mode 100644 index 00000000000..572af94e5d5 --- /dev/null +++ b/datacatalog/snippets/src/main/java/com/example/datacatalog/GetEntry.java @@ -0,0 +1,48 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.example.datacatalog; + +// [START data_catalog_get_entry] +import com.google.cloud.datacatalog.v1.DataCatalogClient; +import com.google.cloud.datacatalog.v1.Entry; +import com.google.cloud.datacatalog.v1.EntryName; +import java.io.IOException; + +// Sample to get an entity +public class GetEntry { + + public static void main(String[] args) throws IOException { + // TODO(developer): Replace these variables before running the sample. + String projectId = "MY_PROJECT_ID"; + String location = "MY_LOCATION"; + String entryGroupId = "MY_ENTRY_GROUP_ID"; + String entryId = "MY_ENTRY_ID"; + EntryName entryName = EntryName.of(projectId, location, entryGroupId, entryId); + getEntry(entryName); + } + + public static void getEntry(EntryName entryName) throws IOException { + // Initialize client that will be used to send requests. This client only needs to be created + // once, and can be reused for multiple requests. After completing all of your requests, call + // the "close" method on the client to safely clean up any remaining background resources. + try (DataCatalogClient client = DataCatalogClient.create()) { + Entry entry = client.getEntry(entryName); + System.out.println("Entry retrieved successfully: " + entry.getName()); + } + } +} +// [END data_catalog_get_entry] diff --git a/datacatalog/snippets/src/main/java/com/example/datacatalog/GetEntryGroup.java b/datacatalog/snippets/src/main/java/com/example/datacatalog/GetEntryGroup.java new file mode 100644 index 00000000000..ee73efff8ae --- /dev/null +++ b/datacatalog/snippets/src/main/java/com/example/datacatalog/GetEntryGroup.java @@ -0,0 +1,47 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.example.datacatalog; + +// [START data_catalog_get_entry_group] +import com.google.cloud.datacatalog.v1.DataCatalogClient; +import com.google.cloud.datacatalog.v1.EntryGroup; +import com.google.cloud.datacatalog.v1.EntryGroupName; +import java.io.IOException; + +// Sample to get an entity group +public class GetEntryGroup { + + public static void main(String[] args) throws IOException { + // TODO(developer): Replace these variables before running the sample. + String projectId = "MY_PROJECT_ID"; + String location = "MY_LOCATION"; + String entryGroupId = "MY_ENTRY_GROUP_ID"; + EntryGroupName entryGroupName = EntryGroupName.of(projectId, location, entryGroupId); + getEntryGroup(entryGroupName); + } + + public static void getEntryGroup(EntryGroupName entryGroupName) throws IOException { + // Initialize client that will be used to send requests. This client only needs to be created + // once, and can be reused for multiple requests. After completing all of your requests, call + // the "close" method on the client to safely clean up any remaining background resources. + try (DataCatalogClient client = DataCatalogClient.create()) { + EntryGroup entryGroup = client.getEntryGroup(entryGroupName); + System.out.println("Entry group retrieved successfully: " + entryGroup.getName()); + } + } +} +// [END data_catalog_get_entry_group] diff --git a/datacatalog/snippets/src/main/java/com/example/datacatalog/GetTagTemplate.java b/datacatalog/snippets/src/main/java/com/example/datacatalog/GetTagTemplate.java new file mode 100644 index 00000000000..8d7e76caa46 --- /dev/null +++ b/datacatalog/snippets/src/main/java/com/example/datacatalog/GetTagTemplate.java @@ -0,0 +1,50 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.example.datacatalog; + +// [START data_catalog_get_tag_template] +import com.google.cloud.datacatalog.v1.DataCatalogClient; +import com.google.cloud.datacatalog.v1.GetTagTemplateRequest; +import com.google.cloud.datacatalog.v1.TagTemplate; +import com.google.cloud.datacatalog.v1.TagTemplateName; +import java.io.IOException; + +// Sample to get tag template +public class GetTagTemplate { + + public static void main(String[] args) throws IOException { + // TODO(developer): Replace these variables before running the sample. + String projectId = "MY_PROJECT_ID"; + String location = "MY_LOCATION"; + String tagTemplateId = "MY_TAG_TEMPLATE_ID"; + TagTemplateName tagTemplate = TagTemplateName.of(projectId, location, tagTemplateId); + getTagTemplate(tagTemplate); + } + + public static void getTagTemplate(TagTemplateName template) throws IOException { + // Initialize client that will be used to send requests. This client only needs to be created + // once, and can be reused for multiple requests. After completing all of your requests, call + // the "close" method on the client to safely clean up any remaining background resources. + try (DataCatalogClient client = DataCatalogClient.create()) { + GetTagTemplateRequest request = + GetTagTemplateRequest.newBuilder().setName(template.toString()).build(); + TagTemplate tagTemplate = client.getTagTemplate(request); + System.out.println("Tag template retrieved successfully :" + tagTemplate.getName()); + } + } +} +// [END data_catalog_get_tag_template] diff --git a/datacatalog/snippets/src/main/java/com/example/datacatalog/ListEntries.java b/datacatalog/snippets/src/main/java/com/example/datacatalog/ListEntries.java new file mode 100644 index 00000000000..c635e5917e1 --- /dev/null +++ b/datacatalog/snippets/src/main/java/com/example/datacatalog/ListEntries.java @@ -0,0 +1,51 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.example.datacatalog; + +// [START data_catalog_list_entries] +import com.google.cloud.datacatalog.v1.DataCatalogClient; +import com.google.cloud.datacatalog.v1.EntryGroupName; +import java.io.IOException; + +// Sample to get list of entries +public class ListEntries { + + public static void main(String[] args) throws IOException { + // TODO(developer): Replace these variables before running the sample. + String projectId = "MY_PROJECT_ID"; + String location = "MY_LOCATION"; + String entryGroupId = "MY_ENTRY_GROUP_ID"; + EntryGroupName entryGroupName = EntryGroupName.of(projectId, location, entryGroupId); + listEntries(entryGroupName); + } + + public static void listEntries(EntryGroupName entryGroupName) throws IOException { + // Initialize client that will be used to send requests. This client only needs to be created + // once, and can be reused for multiple requests. After completing all of your requests, call + // the "close" method on the client to safely clean up any remaining background resources. + try (DataCatalogClient client = DataCatalogClient.create()) { + DataCatalogClient.ListEntriesPagedResponse listEntries = client.listEntries(entryGroupName); + listEntries + .iterateAll() + .forEach( + entry -> { + System.out.println("Entry name : " + entry.getName()); + }); + } + } +} +// [END data_catalog_list_entries] diff --git a/datacatalog/snippets/src/main/java/com/example/datacatalog/ListEntryGroups.java b/datacatalog/snippets/src/main/java/com/example/datacatalog/ListEntryGroups.java new file mode 100644 index 00000000000..aa6194e5268 --- /dev/null +++ b/datacatalog/snippets/src/main/java/com/example/datacatalog/ListEntryGroups.java @@ -0,0 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.example.datacatalog; + +// [START data_catalog_list_entry_groups] + +import com.google.cloud.datacatalog.v1.DataCatalogClient; +import com.google.cloud.datacatalog.v1.ListEntryGroupsRequest; +import com.google.cloud.datacatalog.v1.LocationName; +import java.io.IOException; + +// Sample to get list of entry group +public class ListEntryGroups { + + public static void main(String[] args) throws IOException { + // TODO(developer): Replace these variables before running the sample. + String projectId = "MY_PROJECT_ID"; + String location = "MY_LOCATION"; + LocationName name = LocationName.of(projectId, location); + listEntryGroups(name); + } + + public static void listEntryGroups(LocationName name) throws IOException { + // Initialize client that will be used to send requests. This client only needs to be created + // once, and can be reused for multiple requests. After completing all of your requests, call + // the "close" method on the client to safely clean up any remaining background resources. + try (DataCatalogClient client = DataCatalogClient.create()) { + ListEntryGroupsRequest request = + ListEntryGroupsRequest.newBuilder().setParent(name.toString()).build(); + DataCatalogClient.ListEntryGroupsPagedResponse listEntryGroups = + client.listEntryGroups(request); + listEntryGroups + .iterateAll() + .forEach( + entryGroup -> { + System.out.println("Entry group name : " + entryGroup.getName()); + }); + } + } +} +// [END data_catalog_list_entry_groups] diff --git a/datacatalog/snippets/src/main/java/com/example/datacatalog/UpdateEntry.java b/datacatalog/snippets/src/main/java/com/example/datacatalog/UpdateEntry.java new file mode 100644 index 00000000000..ea965215b7f --- /dev/null +++ b/datacatalog/snippets/src/main/java/com/example/datacatalog/UpdateEntry.java @@ -0,0 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.example.datacatalog; + +// [START data_catalog_update_entry] +import com.google.cloud.datacatalog.v1.DataCatalogClient; +import com.google.cloud.datacatalog.v1.Entry; +import com.google.cloud.datacatalog.v1.EntryName; +import com.google.cloud.datacatalog.v1.UpdateEntryRequest; +import com.google.protobuf.FieldMask; +import com.google.protobuf.util.FieldMaskUtil; +import java.io.IOException; + +// Sample to update an entity +public class UpdateEntry { + + public static void main(String[] args) throws IOException { + // TODO(developer): Replace these variables before running the sample. + String projectId = "MY_PROJECT_ID"; + String location = "MY_LOCATION"; + String entryGroupId = "MY_ENTRY_GROUP_ID"; + String entryId = "MY_ENTRY_ID"; + String description = "MY_DESCRIPTION"; + EntryName entryName = EntryName.of(projectId, location, entryGroupId, entryId); + Entry entry = + Entry.newBuilder().setName(entryName.toString()).setDescription(description).build(); + updateEntry(entry); + } + + public static void updateEntry(Entry entry) throws IOException { + // Initialize client that will be used to send requests. This client only needs to be created + // once, and can be reused for multiple requests. After completing all of your requests, call + // the "close" method on the client to safely clean up any remaining background resources. + try (DataCatalogClient client = DataCatalogClient.create()) { + FieldMask fieldMask = FieldMaskUtil.fromString("description"); + UpdateEntryRequest request = + UpdateEntryRequest.newBuilder().setEntry(entry).setUpdateMask(fieldMask).build(); + Entry entryUpdate = client.updateEntry(request); + System.out.println("Entry updated successfully : " + entryUpdate.getDescription()); + } + } +} +// [END data_catalog_update_entry] diff --git a/datacatalog/snippets/src/main/java/com/example/datacatalog/UpdateEntryGroup.java b/datacatalog/snippets/src/main/java/com/example/datacatalog/UpdateEntryGroup.java new file mode 100644 index 00000000000..5c8bf3f3eb9 --- /dev/null +++ b/datacatalog/snippets/src/main/java/com/example/datacatalog/UpdateEntryGroup.java @@ -0,0 +1,62 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.example.datacatalog; + +// [START data_catalog_update_entry_group] +import com.google.cloud.datacatalog.v1.DataCatalogClient; +import com.google.cloud.datacatalog.v1.EntryGroup; +import com.google.cloud.datacatalog.v1.EntryGroupName; +import com.google.cloud.datacatalog.v1.UpdateEntryGroupRequest; +import com.google.protobuf.FieldMask; +import com.google.protobuf.util.FieldMaskUtil; +import java.io.IOException; + +// Sample to update an entity group +public class UpdateEntryGroup { + + public static void main(String[] args) throws IOException { + // TODO(developer): Replace these variables before running the sample. + String projectId = "MY_PROJECT_ID"; + String location = "MY_LOCATION"; + String entryGroupId = "MY_ENTRY_GROUP_ID"; + String description = "MY_DESCRIPTION"; + EntryGroupName entryGroupName = EntryGroupName.of(projectId, location, entryGroupId); + EntryGroup entryGroup = + EntryGroup.newBuilder() + .setName(entryGroupName.toString()) + .setDescription(description) + .build(); + updateEntryGroup(entryGroup); + } + + public static void updateEntryGroup(EntryGroup entryGroup) throws IOException { + // Initialize client that will be used to send requests. This client only needs to be created + // once, and can be reused for multiple requests. After completing all of your requests, call + // the "close" method on the client to safely clean up any remaining background resources. + try (DataCatalogClient client = DataCatalogClient.create()) { + FieldMask fieldMask = FieldMaskUtil.fromString("description"); + UpdateEntryGroupRequest request = + UpdateEntryGroupRequest.newBuilder() + .setEntryGroup(entryGroup) + .setUpdateMask(fieldMask) + .build(); + EntryGroup entryGroupUpdate = client.updateEntryGroup(request); + System.out.println("Entry group updated successfully : " + entryGroupUpdate.getDescription()); + } + } +} +// [END data_catalog_update_entry_group] diff --git a/datacatalog/snippets/src/main/java/com/example/datacatalog/UpdateTagTemplate.java b/datacatalog/snippets/src/main/java/com/example/datacatalog/UpdateTagTemplate.java new file mode 100644 index 00000000000..ebef7ea1df9 --- /dev/null +++ b/datacatalog/snippets/src/main/java/com/example/datacatalog/UpdateTagTemplate.java @@ -0,0 +1,63 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.example.datacatalog; + +// [START data_catalog_update_tag_template] +import com.google.cloud.datacatalog.v1.DataCatalogClient; +import com.google.cloud.datacatalog.v1.TagTemplate; +import com.google.cloud.datacatalog.v1.TagTemplateName; +import com.google.cloud.datacatalog.v1.UpdateTagTemplateRequest; +import com.google.protobuf.FieldMask; +import com.google.protobuf.util.FieldMaskUtil; +import java.io.IOException; + +// Sample to update tag template +public class UpdateTagTemplate { + + public static void main(String[] args) throws IOException { + // TODO(developer): Replace these variables before running the sample. + String projectId = "MY_PROJECT_ID"; + String location = "MY_LOCATION"; + String tagTemplateId = "MY_TAG_TEMPLATE_ID"; + String displayName = "MY_DISPLAY_NAME"; + TagTemplateName tagTemplate = TagTemplateName.of(projectId, location, tagTemplateId); + TagTemplate template = + TagTemplate.newBuilder() + .setName(tagTemplate.toString()) + .setDisplayName(displayName) + .build(); + updateTagTemplate(template); + } + + public static void updateTagTemplate(TagTemplate template) throws IOException { + // Initialize client that will be used to send requests. This client only needs to be created + // once, and can be reused for multiple requests. After completing all of your requests, call + // the "close" method on the client to safely clean up any remaining background resources. + try (DataCatalogClient client = DataCatalogClient.create()) { + FieldMask fieldMask = FieldMaskUtil.fromString("display_name"); + UpdateTagTemplateRequest request = + UpdateTagTemplateRequest.newBuilder() + .setTagTemplate(template) + .setUpdateMask(fieldMask) + .build(); + TagTemplate tagTemplateUpdate = client.updateTagTemplate(request); + System.out.println( + "Tag template updated successfully : " + tagTemplateUpdate.getDisplayName()); + } + } +} +// [END data_catalog_update_tag_template] diff --git a/datacatalog/snippets/src/test/java/com/example/datacatalog/CreateEntryGroupIT.java b/datacatalog/snippets/src/test/java/com/example/datacatalog/CreateEntryGroupIT.java new file mode 100644 index 00000000000..2b55edebb19 --- /dev/null +++ b/datacatalog/snippets/src/test/java/com/example/datacatalog/CreateEntryGroupIT.java @@ -0,0 +1,84 @@ +/* + * Copyright 2020 Google Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.example.datacatalog; + +import static com.google.common.truth.Truth.assertThat; +import static junit.framework.TestCase.assertNotNull; + +import com.google.cloud.datacatalog.v1.EntryGroupName; +import java.io.ByteArrayOutputStream; +import java.io.IOException; +import java.io.PrintStream; +import java.util.UUID; +import java.util.logging.Level; +import java.util.logging.Logger; +import org.junit.After; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +public class CreateEntryGroupIT { + + private static final String ID = UUID.randomUUID().toString().substring(0, 8); + private static final String LOCATION = "us-central1"; + private final Logger log = Logger.getLogger(this.getClass().getName()); + private String entryGroup; + private ByteArrayOutputStream bout; + private PrintStream out; + private PrintStream originalPrintStream; + + private static final String PROJECT_ID = requireEnvVar("GOOGLE_CLOUD_PROJECT"); + + private static String requireEnvVar(String varName) { + String value = System.getenv(varName); + assertNotNull( + "Environment variable " + varName + " is required to perform these tests.", + System.getenv(varName)); + return value; + } + + @BeforeClass + public static void checkRequirements() { + requireEnvVar("GOOGLE_CLOUD_PROJECT"); + } + + @Before + public void setUp() { + entryGroup = "CREATE_ENTRY_GROUP_TEST_" + ID; + bout = new ByteArrayOutputStream(); + out = new PrintStream(bout); + originalPrintStream = System.out; + System.setOut(out); + } + + @After + public void tearDown() throws IOException { + // Clean up + EntryGroupName name = EntryGroupName.of(PROJECT_ID, LOCATION, entryGroup); + DeleteEntryGroup.deleteEntryGroup(name); + // restores print statements in the original method + System.out.flush(); + System.setOut(originalPrintStream); + log.log(Level.INFO, bout.toString()); + } + + @Test + public void testCreateEntryGroup() throws IOException { + CreateEntryGroup.createEntryGroup(PROJECT_ID, LOCATION, entryGroup); + assertThat(bout.toString()).contains("Entry Group created"); + } +} diff --git a/datacatalog/snippets/src/test/java/com/example/datacatalog/CreateEntryIT.java b/datacatalog/snippets/src/test/java/com/example/datacatalog/CreateEntryIT.java new file mode 100644 index 00000000000..9260584e64a --- /dev/null +++ b/datacatalog/snippets/src/test/java/com/example/datacatalog/CreateEntryIT.java @@ -0,0 +1,119 @@ +/* + * Copyright 2020 Google Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.example.datacatalog; + +import static com.google.common.truth.Truth.assertThat; +import static junit.framework.TestCase.assertNotNull; + +import com.google.cloud.datacatalog.v1.ColumnSchema; +import com.google.cloud.datacatalog.v1.Entry; +import com.google.cloud.datacatalog.v1.EntryGroupName; +import com.google.cloud.datacatalog.v1.EntryName; +import com.google.cloud.datacatalog.v1.Schema; +import java.io.ByteArrayOutputStream; +import java.io.IOException; +import java.io.PrintStream; +import java.util.UUID; +import java.util.logging.Level; +import java.util.logging.Logger; +import org.junit.After; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +public class CreateEntryIT { + + private static final String ID = UUID.randomUUID().toString().substring(0, 8); + private static final String LOCATION = "us-central1"; + private final Logger log = Logger.getLogger(this.getClass().getName()); + private String entryId; + private String entryGroupId; + private ByteArrayOutputStream bout; + private PrintStream out; + private PrintStream originalPrintStream; + + private static final String PROJECT_ID = requireEnvVar("GOOGLE_CLOUD_PROJECT"); + + private static String requireEnvVar(String varName) { + String value = System.getenv(varName); + assertNotNull( + "Environment variable " + varName + " is required to perform these tests.", + System.getenv(varName)); + return value; + } + + @BeforeClass + public static void checkRequirements() { + requireEnvVar("GOOGLE_CLOUD_PROJECT"); + } + + @Before + public void setUp() throws IOException { + entryId = "CREATE_ENTRY_TEST_" + ID; + entryGroupId = "CREATE_ENTRY_GROUP_TEST_" + ID; + bout = new ByteArrayOutputStream(); + out = new PrintStream(bout); + originalPrintStream = System.out; + System.setOut(out); + CreateEntryGroup.createEntryGroup(PROJECT_ID, LOCATION, entryGroupId); + } + + @After + public void tearDown() throws IOException { + // Clean up + EntryName entryName = EntryName.of(PROJECT_ID, LOCATION, entryGroupId, entryId); + DeleteEntry.deleteEntry(entryName); + EntryGroupName entryGroupName = EntryGroupName.of(PROJECT_ID, LOCATION, entryGroupId); + DeleteEntryGroup.deleteEntryGroup(entryGroupName); + // restores print statements in the original method + System.out.flush(); + System.setOut(originalPrintStream); + log.log(Level.INFO, bout.toString()); + } + + @Test + public void testCreateEntry() throws IOException { + EntryGroupName entryGroupName = EntryGroupName.of(PROJECT_ID, LOCATION, entryGroupId); + Entry entry = + Entry.newBuilder() + .setUserSpecifiedSystem("onprem_data_system") + .setUserSpecifiedType("onprem_data_asset") + .setDisplayName("My awesome data asset") + .setDescription("This data asset is managed by an external system.") + .setLinkedResource("//my-onprem-server.com/dataAssets/my-awesome-data-asset") + .setSchema( + Schema.newBuilder() + .addColumns( + ColumnSchema.newBuilder() + .setColumn("first_column") + .setDescription("This columns consists of ....") + .setMode("NULLABLE") + .setType("DOUBLE") + .build()) + .addColumns( + ColumnSchema.newBuilder() + .setColumn("second_column") + .setDescription("This columns consists of ....") + .setMode("REQUIRED") + .setType("STRING") + .build()) + .build()) + .build(); + CreateEntry.createEntry(entryGroupName, entryId, entry); + assertThat(bout.toString()).contains("Entry created successfully"); + } +} diff --git a/datacatalog/snippets/src/test/java/com/example/datacatalog/CreateEntryTests.java b/datacatalog/snippets/src/test/java/com/example/datacatalog/CreateEntryTests.java index dd8555efe30..b09cca576c2 100644 --- a/datacatalog/snippets/src/test/java/com/example/datacatalog/CreateEntryTests.java +++ b/datacatalog/snippets/src/test/java/com/example/datacatalog/CreateEntryTests.java @@ -23,6 +23,7 @@ import com.google.cloud.datacatalog.v1.EntryGroupName; import com.google.cloud.datacatalog.v1.EntryName; import java.io.ByteArrayOutputStream; +import java.io.IOException; import java.io.PrintStream; import java.util.ArrayList; import java.util.List; @@ -80,12 +81,12 @@ public static void tearDownClass() { } @Test - public void testCreateFilesetEntry() { + public void testCreateFilesetEntry() throws IOException { String entryGroupId = "fileset_entry_group_parent_" + getUuid8Chars(); String entryId = "fileset_entry_id_" + getUuid8Chars(); // Must create a Entry Group before creating the entry. - CreateEntryGroup.createEntryGroup(PROJECT_ID, entryGroupId); + CreateEntryGroup.createEntryGroup(PROJECT_ID, LOCATION, entryGroupId); CreateFilesetEntry.createEntry(PROJECT_ID, entryGroupId, entryId); // Store names for clean up on teardown @@ -104,10 +105,10 @@ public void testCreateFilesetEntry() { } @Test - public void testCreateEntryGroup() { + public void testCreateEntryGroup() throws IOException { String entryGroupId = "entry_group_no_children_" + getUuid8Chars(); - CreateEntryGroup.createEntryGroup(PROJECT_ID, entryGroupId); + CreateEntryGroup.createEntryGroup(PROJECT_ID, LOCATION, entryGroupId); // Store names for clean up on teardown String expectedEntryGroupName = @@ -116,7 +117,7 @@ public void testCreateEntryGroup() { String output = bout.toString(); - String entryGroupTemplate = "Entry Group created with name: %s"; + String entryGroupTemplate = "Entry Group created successfully"; assertThat( output, CoreMatchers.containsString(String.format(entryGroupTemplate, expectedEntryGroupName))); diff --git a/datacatalog/snippets/src/test/java/com/example/datacatalog/CreateTagTemplateIT.java b/datacatalog/snippets/src/test/java/com/example/datacatalog/CreateTagTemplateIT.java new file mode 100644 index 00000000000..037440d1cfa --- /dev/null +++ b/datacatalog/snippets/src/test/java/com/example/datacatalog/CreateTagTemplateIT.java @@ -0,0 +1,100 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.example.datacatalog; + +import static com.google.common.truth.Truth.assertThat; +import static junit.framework.TestCase.assertNotNull; + +import com.google.cloud.datacatalog.v1.FieldType; +import com.google.cloud.datacatalog.v1.LocationName; +import com.google.cloud.datacatalog.v1.TagTemplate; +import com.google.cloud.datacatalog.v1.TagTemplateField; +import com.google.cloud.datacatalog.v1.TagTemplateName; +import java.io.ByteArrayOutputStream; +import java.io.IOException; +import java.io.PrintStream; +import java.util.UUID; +import java.util.logging.Level; +import java.util.logging.Logger; +import org.junit.After; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +public class CreateTagTemplateIT { + + private static final String ID = UUID.randomUUID().toString().substring(0, 8); + private static final String LOCATION = "us-central1"; + private final Logger log = Logger.getLogger(this.getClass().getName()); + private String tagTemplateId; + private ByteArrayOutputStream bout; + private PrintStream out; + private PrintStream originalPrintStream; + + private static final String PROJECT_ID = requireEnvVar("GOOGLE_CLOUD_PROJECT"); + + private static String requireEnvVar(String varName) { + String value = System.getenv(varName); + assertNotNull( + "Environment variable " + varName + " is required to perform these tests.", + System.getenv(varName)); + return value; + } + + @BeforeClass + public static void checkRequirements() { + requireEnvVar("GOOGLE_CLOUD_PROJECT"); + } + + @Before + public void setUp() throws IOException { + tagTemplateId = "create_tag_template_test_" + ID; + bout = new ByteArrayOutputStream(); + out = new PrintStream(bout); + originalPrintStream = System.out; + System.setOut(out); + } + + @After + public void tearDown() throws IOException { + // Clean up + TagTemplateName name = TagTemplateName.of(PROJECT_ID, LOCATION, tagTemplateId); + DeleteTagTemplate.deleteTagTemplate(name); + // restores print statements in the original method + System.out.flush(); + System.setOut(originalPrintStream); + log.log(Level.INFO, bout.toString()); + } + + @Test + public void testCreateTagTemplate() throws IOException { + LocationName locationName = LocationName.of(PROJECT_ID, LOCATION); + TagTemplateField sourceField = + TagTemplateField.newBuilder() + .setDisplayName("Your display name") + .setType( + FieldType.newBuilder().setPrimitiveType(FieldType.PrimitiveType.STRING).build()) + .build(); + TagTemplate tagTemplate = + TagTemplate.newBuilder() + .setDisplayName("Your display name") + .putFields("sourceField", sourceField) + .build(); + CreateTagTemplate.createTagTemplate(locationName, tagTemplateId, tagTemplate); + assertThat(bout.toString()).contains("Tag template created successfully"); + } +} diff --git a/datacatalog/snippets/src/test/java/com/example/datacatalog/DeleteEntryGroupIT.java b/datacatalog/snippets/src/test/java/com/example/datacatalog/DeleteEntryGroupIT.java new file mode 100644 index 00000000000..6f5fac2ce75 --- /dev/null +++ b/datacatalog/snippets/src/test/java/com/example/datacatalog/DeleteEntryGroupIT.java @@ -0,0 +1,84 @@ +/* + * Copyright 2020 Google Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.example.datacatalog; + +import static com.google.common.truth.Truth.assertThat; +import static junit.framework.TestCase.assertNotNull; + +import com.google.cloud.datacatalog.v1.EntryGroupName; +import java.io.ByteArrayOutputStream; +import java.io.IOException; +import java.io.PrintStream; +import java.util.UUID; +import java.util.logging.Level; +import java.util.logging.Logger; +import org.junit.After; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +public class DeleteEntryGroupIT { + + private static final String ID = UUID.randomUUID().toString().substring(0, 8); + private static final String LOCATION = "us-central1"; + private final Logger log = Logger.getLogger(this.getClass().getName()); + private String entryGroup; + private ByteArrayOutputStream bout; + private PrintStream out; + private PrintStream originalPrintStream; + + private static final String PROJECT_ID = requireEnvVar("GOOGLE_CLOUD_PROJECT"); + + private static String requireEnvVar(String varName) { + String value = System.getenv(varName); + assertNotNull( + "Environment variable " + varName + " is required to perform these tests.", + System.getenv(varName)); + return value; + } + + @BeforeClass + public static void checkRequirements() { + requireEnvVar("GOOGLE_CLOUD_PROJECT"); + } + + @Before + public void setUp() throws IOException { + bout = new ByteArrayOutputStream(); + out = new PrintStream(bout); + originalPrintStream = System.out; + System.setOut(out); + entryGroup = "DELETE_ENTRY_GROUP_TEST_" + ID; + // create temporary entry group + CreateEntryGroup.createEntryGroup(PROJECT_ID, LOCATION, entryGroup); + } + + @After + public void tearDown() { + // restores print statements in the original method + System.out.flush(); + System.setOut(originalPrintStream); + log.log(Level.INFO, bout.toString()); + } + + @Test + public void testDeleteEntryGroup() throws IOException { + EntryGroupName name = EntryGroupName.of(PROJECT_ID, LOCATION, entryGroup); + DeleteEntryGroup.deleteEntryGroup(name); + assertThat(bout.toString()).contains("Entry group deleted successfully"); + } +} diff --git a/datacatalog/snippets/src/test/java/com/example/datacatalog/DeleteEntryIT.java b/datacatalog/snippets/src/test/java/com/example/datacatalog/DeleteEntryIT.java new file mode 100644 index 00000000000..124c298927e --- /dev/null +++ b/datacatalog/snippets/src/test/java/com/example/datacatalog/DeleteEntryIT.java @@ -0,0 +1,120 @@ +/* + * Copyright 2020 Google Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.example.datacatalog; + +import static com.google.common.truth.Truth.assertThat; +import static junit.framework.TestCase.assertNotNull; + +import com.google.cloud.datacatalog.v1.ColumnSchema; +import com.google.cloud.datacatalog.v1.Entry; +import com.google.cloud.datacatalog.v1.EntryGroupName; +import com.google.cloud.datacatalog.v1.EntryName; +import com.google.cloud.datacatalog.v1.Schema; +import java.io.ByteArrayOutputStream; +import java.io.IOException; +import java.io.PrintStream; +import java.util.UUID; +import java.util.logging.Level; +import java.util.logging.Logger; +import org.junit.After; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +public class DeleteEntryIT { + + private static final String ID = UUID.randomUUID().toString().substring(0, 8); + private static final String LOCATION = "us-central1"; + private final Logger log = Logger.getLogger(this.getClass().getName()); + private String entryId; + private String entryGroupId; + private ByteArrayOutputStream bout; + private PrintStream out; + private PrintStream originalPrintStream; + + private static final String PROJECT_ID = requireEnvVar("GOOGLE_CLOUD_PROJECT"); + + private static String requireEnvVar(String varName) { + String value = System.getenv(varName); + assertNotNull( + "Environment variable " + varName + " is required to perform these tests.", + System.getenv(varName)); + return value; + } + + @BeforeClass + public static void checkRequirements() { + requireEnvVar("GOOGLE_CLOUD_PROJECT"); + } + + @Before + public void setUp() throws IOException { + entryId = "DELETE_ENTRY_TEST_" + ID; + entryGroupId = "DELETE_ENTRY_GROUP_TEST_" + ID; + bout = new ByteArrayOutputStream(); + out = new PrintStream(bout); + originalPrintStream = System.out; + System.setOut(out); + // create a temporary entry group and entry + CreateEntryGroup.createEntryGroup(PROJECT_ID, LOCATION, entryGroupId); + EntryGroupName entryGroupName = EntryGroupName.of(PROJECT_ID, LOCATION, entryGroupId); + Entry entry = + Entry.newBuilder() + .setUserSpecifiedSystem("onprem_data_system") + .setUserSpecifiedType("onprem_data_asset") + .setDisplayName("My awesome data asset") + .setDescription("This data asset is managed by an external system.") + .setLinkedResource("//my-onprem-server.com/dataAssets/my-awesome-data-asset") + .setSchema( + Schema.newBuilder() + .addColumns( + ColumnSchema.newBuilder() + .setColumn("first_column") + .setDescription("This columns consists of ....") + .setMode("NULLABLE") + .setType("DOUBLE") + .build()) + .addColumns( + ColumnSchema.newBuilder() + .setColumn("second_column") + .setDescription("This columns consists of ....") + .setMode("REQUIRED") + .setType("STRING") + .build()) + .build()) + .build(); + CreateEntry.createEntry(entryGroupName, entryId, entry); + } + + @After + public void tearDown() throws IOException { + // Clean up + EntryGroupName entryGroupName = EntryGroupName.of(PROJECT_ID, LOCATION, entryGroupId); + DeleteEntryGroup.deleteEntryGroup(entryGroupName); + // restores print statements in the original method + System.out.flush(); + System.setOut(originalPrintStream); + log.log(Level.INFO, bout.toString()); + } + + @Test + public void testDeleteEntry() throws IOException { + EntryName entryName = EntryName.of(PROJECT_ID, LOCATION, entryGroupId, entryId); + DeleteEntry.deleteEntry(entryName); + assertThat(bout.toString()).contains("Entry deleted successfully"); + } +} diff --git a/datacatalog/snippets/src/test/java/com/example/datacatalog/DeleteTagTemplateIT.java b/datacatalog/snippets/src/test/java/com/example/datacatalog/DeleteTagTemplateIT.java new file mode 100644 index 00000000000..d979845fa21 --- /dev/null +++ b/datacatalog/snippets/src/test/java/com/example/datacatalog/DeleteTagTemplateIT.java @@ -0,0 +1,100 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.example.datacatalog; + +import static com.google.common.truth.Truth.assertThat; +import static junit.framework.TestCase.assertNotNull; + +import com.google.cloud.datacatalog.v1.FieldType; +import com.google.cloud.datacatalog.v1.LocationName; +import com.google.cloud.datacatalog.v1.TagTemplate; +import com.google.cloud.datacatalog.v1.TagTemplateField; +import com.google.cloud.datacatalog.v1.TagTemplateName; +import java.io.ByteArrayOutputStream; +import java.io.IOException; +import java.io.PrintStream; +import java.util.UUID; +import java.util.logging.Level; +import java.util.logging.Logger; +import org.junit.After; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +public class DeleteTagTemplateIT { + + private static final String ID = UUID.randomUUID().toString().substring(0, 8); + private static final String LOCATION = "us-central1"; + private final Logger log = Logger.getLogger(this.getClass().getName()); + private String tagTemplateId; + private ByteArrayOutputStream bout; + private PrintStream out; + private PrintStream originalPrintStream; + + private static final String PROJECT_ID = requireEnvVar("GOOGLE_CLOUD_PROJECT"); + + private static String requireEnvVar(String varName) { + String value = System.getenv(varName); + assertNotNull( + "Environment variable " + varName + " is required to perform these tests.", + System.getenv(varName)); + return value; + } + + @BeforeClass + public static void checkRequirements() { + requireEnvVar("GOOGLE_CLOUD_PROJECT"); + } + + @Before + public void setUp() throws IOException { + tagTemplateId = "delete_tag_template_test_" + ID; + bout = new ByteArrayOutputStream(); + out = new PrintStream(bout); + originalPrintStream = System.out; + System.setOut(out); + // create a tempory tag template + LocationName locationName = LocationName.of(PROJECT_ID, LOCATION); + TagTemplateField sourceField = + TagTemplateField.newBuilder() + .setDisplayName("Your display name") + .setType( + FieldType.newBuilder().setPrimitiveType(FieldType.PrimitiveType.STRING).build()) + .build(); + TagTemplate tagTemplate = + TagTemplate.newBuilder() + .setDisplayName("Your display name") + .putFields("sourceField", sourceField) + .build(); + CreateTagTemplate.createTagTemplate(locationName, tagTemplateId, tagTemplate); + } + + @After + public void tearDown() { + // restores print statements in the original method + System.out.flush(); + System.setOut(originalPrintStream); + log.log(Level.INFO, bout.toString()); + } + + @Test + public void testDeleteTagTemplate() throws IOException { + TagTemplateName name = TagTemplateName.of(PROJECT_ID, LOCATION, tagTemplateId); + DeleteTagTemplate.deleteTagTemplate(name); + assertThat(bout.toString()).contains("Tag template deleted successfully"); + } +} diff --git a/datacatalog/snippets/src/test/java/com/example/datacatalog/GetEntryGroupIT.java b/datacatalog/snippets/src/test/java/com/example/datacatalog/GetEntryGroupIT.java new file mode 100644 index 00000000000..0034e00aae3 --- /dev/null +++ b/datacatalog/snippets/src/test/java/com/example/datacatalog/GetEntryGroupIT.java @@ -0,0 +1,87 @@ +/* + * Copyright 2020 Google Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.example.datacatalog; + +import static com.google.common.truth.Truth.assertThat; +import static junit.framework.TestCase.assertNotNull; + +import com.google.cloud.datacatalog.v1.EntryGroupName; +import java.io.ByteArrayOutputStream; +import java.io.IOException; +import java.io.PrintStream; +import java.util.UUID; +import java.util.logging.Level; +import java.util.logging.Logger; +import org.junit.After; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +public class GetEntryGroupIT { + + private static final String ID = UUID.randomUUID().toString().substring(0, 8); + private static final String LOCATION = "us-central1"; + private final Logger log = Logger.getLogger(this.getClass().getName()); + private String entryGroup; + private ByteArrayOutputStream bout; + private PrintStream out; + private PrintStream originalPrintStream; + + private static final String PROJECT_ID = requireEnvVar("GOOGLE_CLOUD_PROJECT"); + + private static String requireEnvVar(String varName) { + String value = System.getenv(varName); + assertNotNull( + "Environment variable " + varName + " is required to perform these tests.", + System.getenv(varName)); + return value; + } + + @BeforeClass + public static void checkRequirements() { + requireEnvVar("GOOGLE_CLOUD_PROJECT"); + } + + @Before + public void setUp() throws IOException { + bout = new ByteArrayOutputStream(); + out = new PrintStream(bout); + originalPrintStream = System.out; + System.setOut(out); + entryGroup = "GET_ENTRY_GROUP_TEST_" + ID; + // create temporary entry group + CreateEntryGroup.createEntryGroup(PROJECT_ID, LOCATION, entryGroup); + } + + @After + public void tearDown() throws IOException { + // clean up + EntryGroupName name = EntryGroupName.of(PROJECT_ID, LOCATION, entryGroup); + DeleteEntryGroup.deleteEntryGroup(name); + // restores print statements in the original method + System.out.flush(); + System.setOut(originalPrintStream); + log.log(Level.INFO, bout.toString()); + } + + @Test + public void testGetEntryGroup() throws IOException { + EntryGroupName name = EntryGroupName.of(PROJECT_ID, LOCATION, entryGroup); + GetEntryGroup.getEntryGroup(name); + assertThat(bout.toString()).contains("Entry group retrieved successfully:"); + } +} diff --git a/datacatalog/snippets/src/test/java/com/example/datacatalog/GetEntryIT.java b/datacatalog/snippets/src/test/java/com/example/datacatalog/GetEntryIT.java new file mode 100644 index 00000000000..7693ade9db2 --- /dev/null +++ b/datacatalog/snippets/src/test/java/com/example/datacatalog/GetEntryIT.java @@ -0,0 +1,121 @@ +/* + * Copyright 2020 Google Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.example.datacatalog; + +import static com.google.common.truth.Truth.assertThat; +import static junit.framework.TestCase.assertNotNull; + +import com.google.cloud.datacatalog.v1.ColumnSchema; +import com.google.cloud.datacatalog.v1.Entry; +import com.google.cloud.datacatalog.v1.EntryGroupName; +import com.google.cloud.datacatalog.v1.EntryName; +import com.google.cloud.datacatalog.v1.Schema; +import java.io.ByteArrayOutputStream; +import java.io.IOException; +import java.io.PrintStream; +import java.util.UUID; +import java.util.logging.Level; +import java.util.logging.Logger; +import org.junit.After; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +public class GetEntryIT { + + private static final String ID = UUID.randomUUID().toString().substring(0, 8); + private static final String LOCATION = "us-central1"; + private final Logger log = Logger.getLogger(this.getClass().getName()); + private String entryId; + private String entryGroupId; + private ByteArrayOutputStream bout; + private PrintStream out; + private PrintStream originalPrintStream; + + private static final String PROJECT_ID = requireEnvVar("GOOGLE_CLOUD_PROJECT"); + + private static String requireEnvVar(String varName) { + String value = System.getenv(varName); + assertNotNull( + "Environment variable " + varName + " is required to perform these tests.", + System.getenv(varName)); + return value; + } + + @BeforeClass + public static void checkRequirements() { + requireEnvVar("GOOGLE_CLOUD_PROJECT"); + } + + @Before + public void setUp() throws IOException { + entryId = "GET_ENTRY_TEST_" + ID; + entryGroupId = "GET_ENTRY_GROUP_TEST_" + ID; + bout = new ByteArrayOutputStream(); + out = new PrintStream(bout); + originalPrintStream = System.out; + System.setOut(out); + CreateEntryGroup.createEntryGroup(PROJECT_ID, LOCATION, entryGroupId); + EntryGroupName entryGroupName = EntryGroupName.of(PROJECT_ID, LOCATION, entryGroupId); + Entry entry = + Entry.newBuilder() + .setUserSpecifiedSystem("onprem_data_system") + .setUserSpecifiedType("onprem_data_asset") + .setDisplayName("My awesome data asset") + .setDescription("This data asset is managed by an external system.") + .setLinkedResource("//my-onprem-server.com/dataAssets/my-awesome-data-asset") + .setSchema( + Schema.newBuilder() + .addColumns( + ColumnSchema.newBuilder() + .setColumn("first_column") + .setDescription("This columns consists of ....") + .setMode("NULLABLE") + .setType("DOUBLE") + .build()) + .addColumns( + ColumnSchema.newBuilder() + .setColumn("second_column") + .setDescription("This columns consists of ....") + .setMode("REQUIRED") + .setType("STRING") + .build()) + .build()) + .build(); + CreateEntry.createEntry(entryGroupName, entryId, entry); + } + + @After + public void tearDown() throws IOException { + // Clean up + EntryName entryName = EntryName.of(PROJECT_ID, LOCATION, entryGroupId, entryId); + DeleteEntry.deleteEntry(entryName); + EntryGroupName entryGroupName = EntryGroupName.of(PROJECT_ID, LOCATION, entryGroupId); + DeleteEntryGroup.deleteEntryGroup(entryGroupName); + // restores print statements in the original method + System.out.flush(); + System.setOut(originalPrintStream); + log.log(Level.INFO, bout.toString()); + } + + @Test + public void testGetEntry() throws IOException { + EntryName entryName = EntryName.of(PROJECT_ID, LOCATION, entryGroupId, entryId); + GetEntry.getEntry(entryName); + assertThat(bout.toString()).contains("Entry retrieved successfully:"); + } +} diff --git a/datacatalog/snippets/src/test/java/com/example/datacatalog/GetTagTemplateIT.java b/datacatalog/snippets/src/test/java/com/example/datacatalog/GetTagTemplateIT.java new file mode 100644 index 00000000000..374b896f255 --- /dev/null +++ b/datacatalog/snippets/src/test/java/com/example/datacatalog/GetTagTemplateIT.java @@ -0,0 +1,103 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.example.datacatalog; + +import static com.google.common.truth.Truth.assertThat; +import static junit.framework.TestCase.assertNotNull; + +import com.google.cloud.datacatalog.v1.FieldType; +import com.google.cloud.datacatalog.v1.LocationName; +import com.google.cloud.datacatalog.v1.TagTemplate; +import com.google.cloud.datacatalog.v1.TagTemplateField; +import com.google.cloud.datacatalog.v1.TagTemplateName; +import java.io.ByteArrayOutputStream; +import java.io.IOException; +import java.io.PrintStream; +import java.util.UUID; +import java.util.logging.Level; +import java.util.logging.Logger; +import org.junit.After; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +public class GetTagTemplateIT { + + private static final String ID = UUID.randomUUID().toString().substring(0, 8); + private static final String LOCATION = "us-central1"; + private final Logger log = Logger.getLogger(this.getClass().getName()); + private String tagTemplateId; + private ByteArrayOutputStream bout; + private PrintStream out; + private PrintStream originalPrintStream; + + private static final String PROJECT_ID = requireEnvVar("GOOGLE_CLOUD_PROJECT"); + + private static String requireEnvVar(String varName) { + String value = System.getenv(varName); + assertNotNull( + "Environment variable " + varName + " is required to perform these tests.", + System.getenv(varName)); + return value; + } + + @BeforeClass + public static void checkRequirements() { + requireEnvVar("GOOGLE_CLOUD_PROJECT"); + } + + @Before + public void setUp() throws IOException { + tagTemplateId = "get_tag_template_test_" + ID; + bout = new ByteArrayOutputStream(); + out = new PrintStream(bout); + originalPrintStream = System.out; + System.setOut(out); + // create a tempory tag template + LocationName locationName = LocationName.of(PROJECT_ID, LOCATION); + TagTemplateField sourceField = + TagTemplateField.newBuilder() + .setDisplayName("Your display name") + .setType( + FieldType.newBuilder().setPrimitiveType(FieldType.PrimitiveType.STRING).build()) + .build(); + TagTemplate tagTemplate = + TagTemplate.newBuilder() + .setDisplayName("Your display name") + .putFields("sourceField", sourceField) + .build(); + CreateTagTemplate.createTagTemplate(locationName, tagTemplateId, tagTemplate); + } + + @After + public void tearDown() throws IOException { + // clean up + TagTemplateName name = TagTemplateName.of(PROJECT_ID, LOCATION, tagTemplateId); + DeleteTagTemplate.deleteTagTemplate(name); + // restores print statements in the original method + System.out.flush(); + System.setOut(originalPrintStream); + log.log(Level.INFO, bout.toString()); + } + + @Test + public void testGetTagTemplate() throws IOException { + TagTemplateName name = TagTemplateName.of(PROJECT_ID, LOCATION, tagTemplateId); + GetTagTemplate.getTagTemplate(name); + assertThat(bout.toString()).contains("Tag template retrieved successfully"); + } +} diff --git a/datacatalog/snippets/src/test/java/com/example/datacatalog/ListEntriesIT.java b/datacatalog/snippets/src/test/java/com/example/datacatalog/ListEntriesIT.java new file mode 100644 index 00000000000..1e85fee2131 --- /dev/null +++ b/datacatalog/snippets/src/test/java/com/example/datacatalog/ListEntriesIT.java @@ -0,0 +1,121 @@ +/* + * Copyright 2020 Google Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.example.datacatalog; + +import static com.google.common.truth.Truth.assertThat; +import static junit.framework.TestCase.assertNotNull; + +import com.google.cloud.datacatalog.v1.ColumnSchema; +import com.google.cloud.datacatalog.v1.Entry; +import com.google.cloud.datacatalog.v1.EntryGroupName; +import com.google.cloud.datacatalog.v1.EntryName; +import com.google.cloud.datacatalog.v1.Schema; +import java.io.ByteArrayOutputStream; +import java.io.IOException; +import java.io.PrintStream; +import java.util.UUID; +import java.util.logging.Level; +import java.util.logging.Logger; +import org.junit.After; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +public class ListEntriesIT { + + private static final String ID = UUID.randomUUID().toString().substring(0, 8); + private static final String LOCATION = "us-central1"; + private final Logger log = Logger.getLogger(this.getClass().getName()); + private String entryId; + private String entryGroupId; + private ByteArrayOutputStream bout; + private PrintStream out; + private PrintStream originalPrintStream; + + private static final String PROJECT_ID = requireEnvVar("GOOGLE_CLOUD_PROJECT"); + + private static String requireEnvVar(String varName) { + String value = System.getenv(varName); + assertNotNull( + "Environment variable " + varName + " is required to perform these tests.", + System.getenv(varName)); + return value; + } + + @BeforeClass + public static void checkRequirements() { + requireEnvVar("GOOGLE_CLOUD_PROJECT"); + } + + @Before + public void setUp() throws IOException { + entryId = "LIST_ENTRIES_TEST_" + ID; + entryGroupId = "LIST_ENTRIES_GROUP_TEST_" + ID; + bout = new ByteArrayOutputStream(); + out = new PrintStream(bout); + originalPrintStream = System.out; + System.setOut(out); + CreateEntryGroup.createEntryGroup(PROJECT_ID, LOCATION, entryGroupId); + EntryGroupName entryGroupName = EntryGroupName.of(PROJECT_ID, LOCATION, entryGroupId); + Entry entry = + Entry.newBuilder() + .setUserSpecifiedSystem("onprem_data_system") + .setUserSpecifiedType("onprem_data_asset") + .setDisplayName("My awesome data asset") + .setDescription("This data asset is managed by an external system.") + .setLinkedResource("//my-onprem-server.com/dataAssets/my-awesome-data-asset") + .setSchema( + Schema.newBuilder() + .addColumns( + ColumnSchema.newBuilder() + .setColumn("first_column") + .setDescription("This columns consists of ....") + .setMode("NULLABLE") + .setType("DOUBLE") + .build()) + .addColumns( + ColumnSchema.newBuilder() + .setColumn("second_column") + .setDescription("This columns consists of ....") + .setMode("REQUIRED") + .setType("STRING") + .build()) + .build()) + .build(); + CreateEntry.createEntry(entryGroupName, entryId, entry); + } + + @After + public void tearDown() throws IOException { + // Clean up + EntryName entryName = EntryName.of(PROJECT_ID, LOCATION, entryGroupId, entryId); + DeleteEntry.deleteEntry(entryName); + EntryGroupName entryGroupName = EntryGroupName.of(PROJECT_ID, LOCATION, entryGroupId); + DeleteEntryGroup.deleteEntryGroup(entryGroupName); + // restores print statements in the original method + System.out.flush(); + System.setOut(originalPrintStream); + log.log(Level.INFO, bout.toString()); + } + + @Test + public void testListEntries() throws IOException { + EntryGroupName entryGroupName = EntryGroupName.of(PROJECT_ID, LOCATION, entryGroupId); + ListEntries.listEntries(entryGroupName); + assertThat(bout.toString()).contains("Entry name :"); + } +} diff --git a/datacatalog/snippets/src/test/java/com/example/datacatalog/ListEntryGroupsIT.java b/datacatalog/snippets/src/test/java/com/example/datacatalog/ListEntryGroupsIT.java new file mode 100644 index 00000000000..9426878a4aa --- /dev/null +++ b/datacatalog/snippets/src/test/java/com/example/datacatalog/ListEntryGroupsIT.java @@ -0,0 +1,87 @@ +/* + * Copyright 2020 Google Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.example.datacatalog; + +import static com.google.common.truth.Truth.assertThat; +import static junit.framework.TestCase.assertNotNull; + +import com.google.cloud.datacatalog.v1.EntryGroupName; +import com.google.cloud.datacatalog.v1.LocationName; +import java.io.ByteArrayOutputStream; +import java.io.IOException; +import java.io.PrintStream; +import java.util.UUID; +import java.util.logging.Level; +import java.util.logging.Logger; +import org.junit.After; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +public class ListEntryGroupsIT { + + private static final String ID = UUID.randomUUID().toString().substring(0, 8); + private static final String LOCATION = "us-central1"; + private final Logger log = Logger.getLogger(this.getClass().getName()); + private String entryGroup; + private ByteArrayOutputStream bout; + private PrintStream out; + private PrintStream originalPrintStream; + + private static final String PROJECT_ID = requireEnvVar("GOOGLE_CLOUD_PROJECT"); + + private static String requireEnvVar(String varName) { + String value = System.getenv(varName); + assertNotNull( + "Environment variable " + varName + " is required to perform these tests.", + System.getenv(varName)); + return value; + } + + @BeforeClass + public static void checkRequirements() { + requireEnvVar("GOOGLE_CLOUD_PROJECT"); + } + + @Before + public void setUp() throws IOException { + bout = new ByteArrayOutputStream(); + out = new PrintStream(bout); + originalPrintStream = System.out; + System.setOut(out); + entryGroup = "LIST_ENTRY_GROUPS_TEST_" + ID; + // create temporary entry group + CreateEntryGroup.createEntryGroup(PROJECT_ID, LOCATION, entryGroup); + } + + @After + public void tearDown() throws IOException { + // clean up + EntryGroupName name = EntryGroupName.of(PROJECT_ID, LOCATION, entryGroup); + DeleteEntryGroup.deleteEntryGroup(name); + // restores print statements in the original method + System.out.flush(); + System.setOut(originalPrintStream); + log.log(Level.INFO, bout.toString()); + } + + @Test + public void testListEntryGroups() throws IOException { + ListEntryGroups.listEntryGroups(LocationName.of(PROJECT_ID, LOCATION)); + assertThat(bout.toString()).contains("Entry group name :"); + } +} diff --git a/datacatalog/snippets/src/test/java/com/example/datacatalog/UpdateEntryGroupIT.java b/datacatalog/snippets/src/test/java/com/example/datacatalog/UpdateEntryGroupIT.java new file mode 100644 index 00000000000..aac12d51017 --- /dev/null +++ b/datacatalog/snippets/src/test/java/com/example/datacatalog/UpdateEntryGroupIT.java @@ -0,0 +1,90 @@ +/* + * Copyright 2020 Google Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.example.datacatalog; + +import static com.google.common.truth.Truth.assertThat; +import static junit.framework.TestCase.assertNotNull; + +import com.google.cloud.datacatalog.v1.EntryGroup; +import com.google.cloud.datacatalog.v1.EntryGroupName; +import java.io.ByteArrayOutputStream; +import java.io.IOException; +import java.io.PrintStream; +import java.util.UUID; +import java.util.logging.Level; +import java.util.logging.Logger; +import org.junit.After; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +public class UpdateEntryGroupIT { + + private static final String ID = UUID.randomUUID().toString().substring(0, 8); + private static final String LOCATION = "us-central1"; + private final Logger log = Logger.getLogger(this.getClass().getName()); + private String entryGroup; + private ByteArrayOutputStream bout; + private PrintStream out; + private PrintStream originalPrintStream; + + private static final String PROJECT_ID = requireEnvVar("GOOGLE_CLOUD_PROJECT"); + + private static String requireEnvVar(String varName) { + String value = System.getenv(varName); + assertNotNull( + "Environment variable " + varName + " is required to perform these tests.", + System.getenv(varName)); + return value; + } + + @BeforeClass + public static void checkRequirements() { + requireEnvVar("GOOGLE_CLOUD_PROJECT"); + } + + @Before + public void setUp() throws IOException { + bout = new ByteArrayOutputStream(); + out = new PrintStream(bout); + originalPrintStream = System.out; + System.setOut(out); + entryGroup = "UPDATE_ENTRY_GROUP_TEST_" + ID; + // create temporary entry group + CreateEntryGroup.createEntryGroup(PROJECT_ID, LOCATION, entryGroup); + } + + @After + public void tearDown() throws IOException { + // clean up + EntryGroupName name = EntryGroupName.of(PROJECT_ID, LOCATION, entryGroup); + DeleteEntryGroup.deleteEntryGroup(name); + // restores print statements in the original method + System.out.flush(); + System.setOut(originalPrintStream); + log.log(Level.INFO, bout.toString()); + } + + @Test + public void testUpdateEntryGroup() throws IOException { + EntryGroupName name = EntryGroupName.of(PROJECT_ID, LOCATION, entryGroup); + EntryGroup entryGroup = + EntryGroup.newBuilder().setName(name.toString()).setDescription("test-description").build(); + UpdateEntryGroup.updateEntryGroup(entryGroup); + assertThat(bout.toString()).contains("Entry group updated successfully :"); + } +} diff --git a/datacatalog/snippets/src/test/java/com/example/datacatalog/UpdateEntryIT.java b/datacatalog/snippets/src/test/java/com/example/datacatalog/UpdateEntryIT.java new file mode 100644 index 00000000000..cc289bb219b --- /dev/null +++ b/datacatalog/snippets/src/test/java/com/example/datacatalog/UpdateEntryIT.java @@ -0,0 +1,123 @@ +/* + * Copyright 2020 Google Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.example.datacatalog; + +import static com.google.common.truth.Truth.assertThat; +import static junit.framework.TestCase.assertNotNull; + +import com.google.cloud.datacatalog.v1.ColumnSchema; +import com.google.cloud.datacatalog.v1.Entry; +import com.google.cloud.datacatalog.v1.EntryGroupName; +import com.google.cloud.datacatalog.v1.EntryName; +import com.google.cloud.datacatalog.v1.Schema; +import java.io.ByteArrayOutputStream; +import java.io.IOException; +import java.io.PrintStream; +import java.util.UUID; +import java.util.logging.Level; +import java.util.logging.Logger; +import org.junit.After; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +public class UpdateEntryIT { + + private static final String ID = UUID.randomUUID().toString().substring(0, 8); + private static final String LOCATION = "us-central1"; + private final Logger log = Logger.getLogger(this.getClass().getName()); + private String entryId; + private String entryGroupId; + private ByteArrayOutputStream bout; + private PrintStream out; + private PrintStream originalPrintStream; + + private static final String PROJECT_ID = requireEnvVar("GOOGLE_CLOUD_PROJECT"); + + private static String requireEnvVar(String varName) { + String value = System.getenv(varName); + assertNotNull( + "Environment variable " + varName + " is required to perform these tests.", + System.getenv(varName)); + return value; + } + + @BeforeClass + public static void checkRequirements() { + requireEnvVar("GOOGLE_CLOUD_PROJECT"); + } + + @Before + public void setUp() throws IOException { + entryId = "UPDATE_ENTRY_TEST_" + ID; + entryGroupId = "UPDATE_ENTRY_GROUP_TEST_" + ID; + bout = new ByteArrayOutputStream(); + out = new PrintStream(bout); + originalPrintStream = System.out; + System.setOut(out); + CreateEntryGroup.createEntryGroup(PROJECT_ID, LOCATION, entryGroupId); + EntryGroupName entryGroupName = EntryGroupName.of(PROJECT_ID, LOCATION, entryGroupId); + Entry entry = + Entry.newBuilder() + .setUserSpecifiedSystem("onprem_data_system") + .setUserSpecifiedType("onprem_data_asset") + .setDisplayName("My awesome data asset") + .setDescription("This data asset is managed by an external system.") + .setLinkedResource("//my-onprem-server.com/dataAssets/my-awesome-data-asset") + .setSchema( + Schema.newBuilder() + .addColumns( + ColumnSchema.newBuilder() + .setColumn("first_column") + .setDescription("This columns consists of ....") + .setMode("NULLABLE") + .setType("DOUBLE") + .build()) + .addColumns( + ColumnSchema.newBuilder() + .setColumn("second_column") + .setDescription("This columns consists of ....") + .setMode("REQUIRED") + .setType("STRING") + .build()) + .build()) + .build(); + CreateEntry.createEntry(entryGroupName, entryId, entry); + } + + @After + public void tearDown() throws IOException { + // Clean up + EntryName entryName = EntryName.of(PROJECT_ID, LOCATION, entryGroupId, entryId); + DeleteEntry.deleteEntry(entryName); + EntryGroupName entryGroupName = EntryGroupName.of(PROJECT_ID, LOCATION, entryGroupId); + DeleteEntryGroup.deleteEntryGroup(entryGroupName); + // restores print statements in the original method + System.out.flush(); + System.setOut(originalPrintStream); + log.log(Level.INFO, bout.toString()); + } + + @Test + public void testUpdateEntry() throws IOException { + EntryName entryName = EntryName.of(PROJECT_ID, LOCATION, entryGroupId, entryId); + Entry entry = + Entry.newBuilder().setName(entryName.toString()).setDescription("test_description").build(); + UpdateEntry.updateEntry(entry); + assertThat(bout.toString()).contains("Entry updated successfully :"); + } +} diff --git a/datacatalog/snippets/src/test/java/com/example/datacatalog/UpdateTagTemplateIT.java b/datacatalog/snippets/src/test/java/com/example/datacatalog/UpdateTagTemplateIT.java new file mode 100644 index 00000000000..5f351ac1673 --- /dev/null +++ b/datacatalog/snippets/src/test/java/com/example/datacatalog/UpdateTagTemplateIT.java @@ -0,0 +1,108 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.example.datacatalog; + +import static com.google.common.truth.Truth.assertThat; +import static junit.framework.TestCase.assertNotNull; + +import com.google.cloud.datacatalog.v1.FieldType; +import com.google.cloud.datacatalog.v1.LocationName; +import com.google.cloud.datacatalog.v1.TagTemplate; +import com.google.cloud.datacatalog.v1.TagTemplateField; +import com.google.cloud.datacatalog.v1.TagTemplateName; +import java.io.ByteArrayOutputStream; +import java.io.IOException; +import java.io.PrintStream; +import java.util.UUID; +import java.util.logging.Level; +import java.util.logging.Logger; +import org.junit.After; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +public class UpdateTagTemplateIT { + + private static final String ID = UUID.randomUUID().toString().substring(0, 8); + private static final String LOCATION = "us-central1"; + private final Logger log = Logger.getLogger(this.getClass().getName()); + private String tagTemplateId; + private ByteArrayOutputStream bout; + private PrintStream out; + private PrintStream originalPrintStream; + + private static final String PROJECT_ID = requireEnvVar("GOOGLE_CLOUD_PROJECT"); + + private static String requireEnvVar(String varName) { + String value = System.getenv(varName); + assertNotNull( + "Environment variable " + varName + " is required to perform these tests.", + System.getenv(varName)); + return value; + } + + @BeforeClass + public static void checkRequirements() { + requireEnvVar("GOOGLE_CLOUD_PROJECT"); + } + + @Before + public void setUp() throws IOException { + tagTemplateId = "update_tag_template_test_" + ID; + bout = new ByteArrayOutputStream(); + out = new PrintStream(bout); + originalPrintStream = System.out; + System.setOut(out); + // create a tempory tag template + LocationName locationName = LocationName.of(PROJECT_ID, LOCATION); + TagTemplateField sourceField = + TagTemplateField.newBuilder() + .setDisplayName("Your display name") + .setType( + FieldType.newBuilder().setPrimitiveType(FieldType.PrimitiveType.STRING).build()) + .build(); + TagTemplate tagTemplate = + TagTemplate.newBuilder() + .setDisplayName("Your display name") + .putFields("sourceField", sourceField) + .build(); + CreateTagTemplate.createTagTemplate(locationName, tagTemplateId, tagTemplate); + } + + @After + public void tearDown() throws IOException { + // clean up + TagTemplateName name = TagTemplateName.of(PROJECT_ID, LOCATION, tagTemplateId); + DeleteTagTemplate.deleteTagTemplate(name); + // restores print statements in the original method + System.out.flush(); + System.setOut(originalPrintStream); + log.log(Level.INFO, bout.toString()); + } + + @Test + public void testUpdateTagTemplate() throws IOException { + TagTemplateName name = TagTemplateName.of(PROJECT_ID, LOCATION, tagTemplateId); + TagTemplate template = + TagTemplate.newBuilder() + .setName(name.toString()) + .setDisplayName("test_display_name") + .build(); + UpdateTagTemplate.updateTagTemplate(template); + assertThat(bout.toString()).contains("Tag template updated successfully :"); + } +} From fca7a8073c6ba7c9db420cc3cdcf78a4c8fadc5d Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 5 Jul 2021 21:58:17 +0200 Subject: [PATCH 069/112] deps: update dependency com.google.protobuf:protobuf-java-util to v3.17.3 (#568) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.protobuf:protobuf-java-util](https://developers.google.com/protocol-buffers/) ([source](https://togithub.com/protocolbuffers/protobuf)) | `3.14.0` -> `3.17.3` | [![age](https://badges.renovateapi.com/packages/maven/com.google.protobuf:protobuf-java-util/3.17.3/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.protobuf:protobuf-java-util/3.17.3/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.protobuf:protobuf-java-util/3.17.3/compatibility-slim/3.14.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.protobuf:protobuf-java-util/3.17.3/confidence-slim/3.14.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
protocolbuffers/protobuf ### [`v3.17.3`](https://togithub.com/protocolbuffers/protobuf/releases/v3.17.3) [Compare Source](https://togithub.com/protocolbuffers/protobuf/compare/v3.17.2...v3.17.3) **C++** - Introduce FieldAccessListener. - Stop emitting boilerplate {Copy/Merge}From in each ProtoBuf class - Fixed some uninitialized variable warnings in generated_message_reflection.cc. **Kotlin** - Fix duplicate proto files error ([#​8699](https://togithub.com/protocolbuffers/protobuf/issues/8699)) **Java** - Fixed parser to check that we are at a proper limit when a sub-message has finished parsing. **General** - Support M1 ([#​8557](https://togithub.com/protocolbuffers/protobuf/issues/8557)) ### [`v3.17.2`](https://togithub.com/protocolbuffers/protobuf/releases/v3.17.2) [Compare Source](https://togithub.com/protocolbuffers/protobuf/compare/v3.17.1...v3.17.2) ****Kotlin**** - Fix duplicate class error ([#​8653](https://togithub.com/protocolbuffers/protobuf/issues/8653)) ****PHP**** - Fixed SEGV in sub-message getters for well-known types when message is unset ([#​8670](https://togithub.com/protocolbuffers/protobuf/issues/8670)) ### [`v3.17.1`](https://togithub.com/protocolbuffers/protobuf/releases/v3.17.1) [Compare Source](https://togithub.com/protocolbuffers/protobuf/compare/v3.17.0...v3.17.1) ### PHP - Fixed PHP memory leaks and arginfo errors. ([#​8614](https://togithub.com/protocolbuffers/protobuf/issues/8614)) - Fixed JSON parser to allow multiple values from the same oneof as long as all but one are null. ### Ruby - Fixed memory bug: properly root repeated/map field when assigning. ([#​8639](https://togithub.com/protocolbuffers/protobuf/issues/8639)) - Fixed JSON parser to allow multiple values from the same oneof as long as all but one are null. ### [`v3.17.0`](https://togithub.com/protocolbuffers/protobuf/releases/v3.17.0) [Compare Source](https://togithub.com/protocolbuffers/protobuf/compare/v3.16.0...v3.17.0) ### Protocol Compiler - Fix the generated source information for reserved values in Enums. ### C++ - Fix -Wunused-parameter in map\ fields (fixes [#​8494](https://togithub.com/protocolbuffers/protobuf/issues/8494)) ([#​8500](https://togithub.com/protocolbuffers/protobuf/issues/8500)) - Use byteswap.h when building against musl libc ([#​8503](https://togithub.com/protocolbuffers/protobuf/issues/8503)) - Fix -Wundefined-inline error when using SharedCtor() or SharedDtor() ([#​8532](https://togithub.com/protocolbuffers/protobuf/issues/8532)) - Fix bug where `Descriptor::DebugString()` printed proto3 synthetic oneofs. - Provide stable versions of `SortAndUnique()`. - Make sure to cache proto3 optional message fields when they are cleared. - Expose UnsafeArena methods to Reflection. - Use std::string::empty() rather than std::string::size() > 0. ### Kotlin - Introduce support for Kotlin protos ([#​8272](https://togithub.com/protocolbuffers/protobuf/issues/8272)) - Restrict extension setter and getter operators to non-nullable T. ### Java - updating GSON and Guava to more recent versions ([#​8524](https://togithub.com/protocolbuffers/protobuf/issues/8524)) - Reduce the time spent evaluating isExtensionNumber by storing the extension ranges in a TreeMap for faster queries. This is particularly relevant for protos which define a large number of extension ranges, for example when each tag is defined as an extension. - Fix java bytecode estimation logic for optional fields. - Optimize Descriptor.isExtensionNumber. ### Python - Add MethodDescriptor.CopyToProto() ([#​8327](https://togithub.com/protocolbuffers/protobuf/issues/8327)) - Remove unused python_protobuf.{cc,h} ([#​8513](https://togithub.com/protocolbuffers/protobuf/issues/8513)) - Start publishing python aarch64 manylinux wheels normally ([#​8530](https://togithub.com/protocolbuffers/protobuf/issues/8530)) - Fix constness issue detected by MSVC standard conforming mode ([#​8568](https://togithub.com/protocolbuffers/protobuf/issues/8568)) - Make JSON parsing match C++ and Java when multiple fields from the same oneof are present and all but one is null. ### Ruby - Add support for proto3 json_name in compiler and field definitions ([#​8356](https://togithub.com/protocolbuffers/protobuf/issues/8356)) - Fixed memory leak of Ruby arena objects. ([#​8461](https://togithub.com/protocolbuffers/protobuf/issues/8461)) - Fix source gem compilation ([#​8471](https://togithub.com/protocolbuffers/protobuf/issues/8471)) - Fix various exceptions in Ruby on 64-bit Windows ([#​8563](https://togithub.com/protocolbuffers/protobuf/issues/8563)) - Fix crash when calculating Message hash values on 64-bit Windows ([#​8565](https://togithub.com/protocolbuffers/protobuf/issues/8565)) ### Conformance Tests - Added a conformance test for the case of multiple fields from the same oneof. ### Other - Use a newer version of rules_proto, with the new rule `proto_descriptor_set` ([#​8469](https://togithub.com/protocolbuffers/protobuf/issues/8469)) ### [`v3.16.0`](https://togithub.com/protocolbuffers/protobuf/releases/v3.16.0) [Compare Source](https://togithub.com/protocolbuffers/protobuf/compare/v3.15.8...v3.16.0) ##### C++ - Fix compiler warnings issue found in conformance_test_runner [#​8189](https://togithub.com/protocolbuffers/protobuf/issues/8189) ([#​8190](https://togithub.com/protocolbuffers/protobuf/issues/8190)) - Fix MinGW-w64 build issues. ([#​8286](https://togithub.com/protocolbuffers/protobuf/issues/8286)) - \[Protoc] C++ Resolved an issue where NO_DESTROY and CONSTINIT are in incorrect order ([#​8296](https://togithub.com/protocolbuffers/protobuf/issues/8296)) - Fix PROTOBUF_CONSTINIT macro redefinition ([#​8323](https://togithub.com/protocolbuffers/protobuf/issues/8323)) - Delete StringPiecePod ([#​8353](https://togithub.com/protocolbuffers/protobuf/issues/8353)) - Fix gcc error: comparison of unsigned expression in '>= 0' is always … ([#​8309](https://togithub.com/protocolbuffers/protobuf/issues/8309)) - Fix cmake install on iOS ([#​8301](https://togithub.com/protocolbuffers/protobuf/issues/8301)) - Create a CMake option to control whether or not RTTI is enabled ([#​8347](https://togithub.com/protocolbuffers/protobuf/issues/8347)) - Fix endian.h location on FreeBSD ([#​8351](https://togithub.com/protocolbuffers/protobuf/issues/8351)) - Refactor util::Status ([#​8354](https://togithub.com/protocolbuffers/protobuf/issues/8354)) - Make util::Status more similar to absl::Status ([#​8405](https://togithub.com/protocolbuffers/protobuf/issues/8405)) - Fix -Wsuggest-destructor-override for generated C++ proto classes. ([#​8408](https://togithub.com/protocolbuffers/protobuf/issues/8408)) - Refactor StatusOr and StringPiece ([#​8406](https://togithub.com/protocolbuffers/protobuf/issues/8406)) - Refactor uint128 ([#​8416](https://togithub.com/protocolbuffers/protobuf/issues/8416)) - The ::pb namespace is no longer exposed due to conflicts. - Allow MessageDifferencer::TreatAsSet() (and friends) to override previous calls instead of crashing. - Reduce the size of generated proto headers for protos with `string` or `bytes` fields. - Move arena() operation on uncommon path to out-of-line routine - For iterator-pair function parameter types, take both iterators by value. - Code-space savings and perhaps some modest performance improvements in RepeatedPtrField. - Eliminate nullptr check from every tag parse. - Remove unused \_$name$*cached_byte_size* fields. - Serialize extension ranges together when not broken by a proto field in the middle. - Do out-of-line allocation and deallocation of string object in ArenaString. - Streamline ParseContext::ParseMessage to avoid code bloat and improve performance. - New member functions RepeatedField::Assign, RepeatedPtrField::{Add, Assign}. - Fix undefined behavior warning due to innocuous uninitialization of value on an error path. - Avoid expensive inlined code space for encoding message length for messages > \= 128 bytes and instead do a procedure call to a shared out-of-line routine. - util::DefaultFieldComparator will be final in a future version of protobuf. Subclasses should inherit from SimpleFieldComparator instead. ##### C\# - Add .NET 5 target and improve WriteString performance with SIMD ([#​8147](https://togithub.com/protocolbuffers/protobuf/issues/8147)) ##### Java - deps: update JUnit and Truth ([#​8319](https://togithub.com/protocolbuffers/protobuf/issues/8319)) - Detect invalid overflow of byteLimit and return InvalidProtocolBufferException as documented. - Exceptions thrown while reading from an InputStream in parseFrom are now included as causes. - Support potentially more efficient proto parsing from RopeByteStrings. - Clarify runtime of ByteString.Output.toStringBuffer(). - Added UnsafeByteOperations to protobuf-lite ([#​8426](https://togithub.com/protocolbuffers/protobuf/issues/8426)) ##### JavaScript - Make Any.pack() chainable. ##### Python - Fix some constness / char literal issues being found by MSVC standard conforming mode ([#​8344](https://togithub.com/protocolbuffers/protobuf/issues/8344)) - Switch on "new" buffer API ([#​8339](https://togithub.com/protocolbuffers/protobuf/issues/8339)) - Enable crosscompiling aarch64 python wheels under dockcross manylinux docker image ([#​8280](https://togithub.com/protocolbuffers/protobuf/issues/8280)) - Fixed a bug in text format where a trailing colon was printed for repeated field. - When TextFormat encounters a duplicate message map key, replace the current one instead of merging. ##### Objective-C - Move the class map to a CFDictionary. ([#​8328](https://togithub.com/protocolbuffers/protobuf/issues/8328)) ##### PHP - read_property() handler is not supposed to return NULL ([#​8362](https://togithub.com/protocolbuffers/protobuf/issues/8362)) - Changed parameter type from long to integer ([#​7613](https://togithub.com/protocolbuffers/protobuf/issues/7613)) - fix: README supported PHP version for C extension ([#​8236](https://togithub.com/protocolbuffers/protobuf/issues/8236)) ##### Ruby - Fixed quadratic memory usage when appending to arrays. ([#​8364](https://togithub.com/protocolbuffers/protobuf/issues/8364)) - Fixed memory leak of Ruby arena objects. ([#​8461](https://togithub.com/protocolbuffers/protobuf/issues/8461)) - Add support for proto3 json_name in compiler and field definitions. ([#​8356](https://togithub.com/protocolbuffers/protobuf/issues/8356)) ##### Other - Some doc on AOT compilation and protobuf ([#​8294](https://togithub.com/protocolbuffers/protobuf/issues/8294)) - \[CMake] Ability to pass options to protoc executable from cmake ([#​8374](https://togithub.com/protocolbuffers/protobuf/issues/8374)) - Add --fatal_warnings flag to treat warnings as errors ([#​8131](https://togithub.com/protocolbuffers/protobuf/issues/8131)) - \[bazel] Remove deprecated way to depend on googletest ([#​8396](https://togithub.com/protocolbuffers/protobuf/issues/8396)) - add error returns missing from protoc to prevent it from exiting with… ([#​8409](https://togithub.com/protocolbuffers/protobuf/issues/8409)) ### [`v3.15.8`](https://togithub.com/protocolbuffers/protobuf/releases/v3.15.8) [Compare Source](https://togithub.com/protocolbuffers/protobuf/compare/v3.15.7...v3.15.8) ### Ruby - Fixed memory leak of Ruby arena objects ([#​8461](https://togithub.com/protocolbuffers/protobuf/issues/8461)) ### [`v3.15.7`](https://togithub.com/protocolbuffers/protobuf/releases/v3.15.7) [Compare Source](https://togithub.com/protocolbuffers/protobuf/compare/v3.15.6...v3.15.7) ##### C++ - Remove the ::pb namespace (alias) ([#​8423](https://togithub.com/protocolbuffers/protobuf/issues/8423)) ##### Ruby - Fix unbounded memory growth for Ruby <2.7 ([#​8429](https://togithub.com/protocolbuffers/protobuf/issues/8429)) - Fixed message equality in cases where the message type is different ([#​8434](https://togithub.com/protocolbuffers/protobuf/issues/8434)) ### [`v3.15.6`](https://togithub.com/protocolbuffers/protobuf/releases/v3.15.6) [Compare Source](https://togithub.com/protocolbuffers/protobuf/compare/v3.15.5...v3.15.6) ### Ruby - Fixed bug in string comparison logic ([#​8386](https://togithub.com/protocolbuffers/protobuf/issues/8386)) ### [`v3.15.5`](https://togithub.com/protocolbuffers/protobuf/releases/v3.15.5) [Compare Source](https://togithub.com/protocolbuffers/protobuf/compare/v3.15.4...v3.15.5) ##### Ruby - Fixed quadratic memory use in array append ([#​8379](https://togithub.com/protocolbuffers/protobuf/issues/8379)) ##### PHP - Fixed quadratic memory use in array append ([#​8379](https://togithub.com/protocolbuffers/protobuf/issues/8379)) ##### C++ - Do not disable RTTI by default in the CMake build ([#​8377](https://togithub.com/protocolbuffers/protobuf/issues/8377)) ### [`v3.15.4`](https://togithub.com/protocolbuffers/protobuf/releases/v3.15.4) [Compare Source](https://togithub.com/protocolbuffers/protobuf/compare/v3.15.3...v3.15.4) ### Ruby - Fixed SEGV when users pass nil messages ([#​8363](https://togithub.com/protocolbuffers/protobuf/issues/8363)) - Fixed quadratic memory usage when appending to arrays ([#​8364](https://togithub.com/protocolbuffers/protobuf/issues/8364)) ### C++ - Create a CMake option to control whether or not RTTI is enabled ([#​8361](https://togithub.com/protocolbuffers/protobuf/issues/8361)) ### PHP - read_property() handler is not supposed to return NULL ([#​8362](https://togithub.com/protocolbuffers/protobuf/issues/8362)) ### [`v3.15.3`](https://togithub.com/protocolbuffers/protobuf/releases/v3.15.3) [Compare Source](https://togithub.com/protocolbuffers/protobuf/compare/v3.15.2...v3.15.3) ##### Ruby - Ruby <2.7 now uses WeakMap too, which prevents memory leaks. ([#​8341](https://togithub.com/protocolbuffers/protobuf/issues/8341)) ### [`v3.15.2`](https://togithub.com/protocolbuffers/protobuf/releases/v3.15.2) [Compare Source](https://togithub.com/protocolbuffers/protobuf/compare/v3.15.1...v3.15.2) ### Ruby - Fix for FieldDescriptor.get(msg) ([#​8330](https://togithub.com/protocolbuffers/protobuf/issues/8330)) ### C++ - Fix PROTOBUF_CONSTINIT macro redefinition ([#​8323](https://togithub.com/protocolbuffers/protobuf/issues/8323)) ### [`v3.15.1`](https://togithub.com/protocolbuffers/protobuf/releases/v3.15.1) [Compare Source](https://togithub.com/protocolbuffers/protobuf/compare/v3.15.0...v3.15.1) ##### Ruby - Bugfix for Message.\[] for repeated or map fields ([#​8313](https://togithub.com/protocolbuffers/protobuf/issues/8313)) - Fix for truncating behavior when converting Float to Duration ([#​8320](https://togithub.com/protocolbuffers/protobuf/issues/8320)) ##### C++ - Small fixes for MinGW and for C++20 with GCC ([#​8318](https://togithub.com/protocolbuffers/protobuf/issues/8318)) ### [`v3.15.0`](https://togithub.com/protocolbuffers/protobuf/releases/v3.15.0) [Compare Source](https://togithub.com/protocolbuffers/protobuf/compare/v3.14.0...v3.15.0) ### Protocol Compiler - Optional fields for proto3 are enabled by default, and no longer require the --experimental_allow_proto3\_optional flag. ### C++ - MessageDifferencer: fixed bug when using custom ignore with multiple unknown fields - Use init_seg in MSVC to push initialization to an earlier phase. - Runtime no longer triggers -Wsign-compare warnings. - Fixed -Wtautological-constant-out-of-range-compare warning. - DynamicCastToGenerated works for nullptr input for even if RTTI is disabled - Arena is refactored and optimized. - Clarified/specified that the exact value of Arena::SpaceAllocated() is an implementation detail users must not rely on. It should not be used in unit tests. - Change the signature of Any::PackFrom() to return false on error. - Add fast reflection getter API for strings. - Constant initialize the global message instances - Avoid potential for missed wakeup in UnknownFieldSet - Now Proto3 Oneof fields have "has" methods for checking their presence in C++. - Bugfix for NVCC - Return early in \_InternalSerialize for empty maps. - Adding functionality for outputting map key values in proto path logging output (does not affect comparison logic) and stop printing 'value' in the path. The modified print functionality is in the MessageDifferencer::StreamReporter. - Fixed https://github.com/protocolbuffers/protobuf/issues/8129 - Ensure that null char symbol, package and file names do not result in a crash. - Constant initialize the global message instances - Pretty print 'max' instead of numeric values in reserved ranges. - Removed remaining instances of std::is_pod, which is deprecated in C++20. - Changes to reduce code size for unknown field handling by making uncommon cases out of line. - Fix std::is_pod deprecated in C++20 ([#​7180](https://togithub.com/protocolbuffers/protobuf/issues/7180)) - Fix some -Wunused-parameter warnings ([#​8053](https://togithub.com/protocolbuffers/protobuf/issues/8053)) - Fix detecting file as directory on zOS issue [#​8051](https://togithub.com/protocolbuffers/protobuf/issues/8051) ([#​8052](https://togithub.com/protocolbuffers/protobuf/issues/8052)) - Don't include sys/param.h for \_BYTE_ORDER ([#​8106](https://togithub.com/protocolbuffers/protobuf/issues/8106)) - remove CMAKE_THREAD_LIBS_INIT from pkgconfig CFLAGS ([#​8154](https://togithub.com/protocolbuffers/protobuf/issues/8154)) - Fix TextFormatMapTest.DynamicMessage [issue#​5136](https://togithub.com/issue/protobuf/issues/5136) ([#​8159](https://togithub.com/protocolbuffers/protobuf/issues/8159)) - Fix for compiler warning [issue#​8145](https://togithub.com/issue/protobuf/issues/8145) ([#​8160](https://togithub.com/protocolbuffers/protobuf/issues/8160)) - fix: support deprecated enums for GCC < 6 ([#​8164](https://togithub.com/protocolbuffers/protobuf/issues/8164)) - Fix some warning when compiling with Visual Studio 2019 on x64 target ([#​8125](https://togithub.com/protocolbuffers/protobuf/issues/8125)) ### Python - Provided an override for the reverse() method that will reverse the internal collection directly instead of using the other methods of the BaseContainer. - MessageFactory.CreateProtoype can be overridden to customize class creation. - Fix PyUnknownFields memory leak ([#​7928](https://togithub.com/protocolbuffers/protobuf/issues/7928)) - Add macOS big sur compatibility ([#​8126](https://togithub.com/protocolbuffers/protobuf/issues/8126)) ### JavaScript - Generate `getDescriptor` methods with `*` as their `this` type. - Enforce `let/const` for generated messages. - js/binary/utils.js: Fix jspb.utils.joinUnsignedDecimalString to work with negative bitsLow and low but non-zero bitsHigh parameter. ([#​8170](https://togithub.com/protocolbuffers/protobuf/issues/8170)) ### PHP - Added support for PHP 8. ([#​8105](https://togithub.com/protocolbuffers/protobuf/issues/8105)) - unregister INI entries and fix invalid read on shutdown ([#​8042](https://togithub.com/protocolbuffers/protobuf/issues/8042)) - Fix PhpDoc comments for message accessors to include "|null". ([#​8136](https://togithub.com/protocolbuffers/protobuf/issues/8136)) - fix: convert native PHP floats to single precision ([#​8187](https://togithub.com/protocolbuffers/protobuf/issues/8187)) - Fixed PHP to support field numbers >=2\*\*28. ([#​8235](https://togithub.com/protocolbuffers/protobuf/issues/8235)) - feat: add support for deprecated fields to PHP compiler ([#​8223](https://togithub.com/protocolbuffers/protobuf/issues/8223)) - Protect against stack overflow if the user derives from Message. ([#​8248](https://togithub.com/protocolbuffers/protobuf/issues/8248)) - Fixed clone for Message, RepeatedField, and MapField. ([#​8245](https://togithub.com/protocolbuffers/protobuf/issues/8245)) - Updated upb to allow nonzero offset minutes in JSON timestamps. ([#​8258](https://togithub.com/protocolbuffers/protobuf/issues/8258)) ### Ruby - Added support for Ruby 3. ([#​8184](https://togithub.com/protocolbuffers/protobuf/issues/8184)) - Rewrote the data storage layer to be based on upb_msg objects from the upb library. This should lead to much better parsing performance, particularly for large messages. ([#​8184](https://togithub.com/protocolbuffers/protobuf/issues/8184)). - Fill out JRuby support ([#​7923](https://togithub.com/protocolbuffers/protobuf/issues/7923)) - \[Ruby] Fix: (SIGSEGV) gRPC-Ruby issue on Windows. memory alloc infinite recursion/run out of memory ([#​8195](https://togithub.com/protocolbuffers/protobuf/issues/8195)) - Fix jruby support to handle messages nested more than 1 level deep ([#​8194](https://togithub.com/protocolbuffers/protobuf/issues/8194)) ### Java - Avoid possible UnsupportedOperationException when using CodedInputSteam with a direct ByteBuffer. - Make Durations.comparator() and Timestamps.comparator() Serializable. - Add more detailed error information for dynamic message field type validation failure - Removed declarations of functions declared in java_names.h from java_helpers.h. - Now Proto3 Oneof fields have "has" methods for checking their presence in Java. - Annotates Java proto generated \*\_FIELD_NUMBER constants. - Add -assumevalues to remove JvmMemoryAccessor on Android. ### C\# - Fix parsing negative Int32Value that crosses segment boundary ([#​8035](https://togithub.com/protocolbuffers/protobuf/issues/8035)) - Change ByteString to use memory and support unsafe create without copy ([#​7645](https://togithub.com/protocolbuffers/protobuf/issues/7645)) - Optimize MapField serialization by removing MessageAdapter ([#​8143](https://togithub.com/protocolbuffers/protobuf/issues/8143)) - Allow FileDescriptors to be parsed with extension registries ([#​8220](https://togithub.com/protocolbuffers/protobuf/issues/8220)) - Optimize writing small strings ([#​8149](https://togithub.com/protocolbuffers/protobuf/issues/8149))
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-datacatalog). --- datacatalog/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datacatalog/snippets/pom.xml b/datacatalog/snippets/pom.xml index 110949c3bc4..9d57aa00dbb 100644 --- a/datacatalog/snippets/pom.xml +++ b/datacatalog/snippets/pom.xml @@ -47,7 +47,7 @@ com.google.protobuf protobuf-java-util - 3.14.0 + 3.17.3 junit From 85fa8abb816e4fb1f93e6c94d4bcc046c83acb48 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 9 Jul 2021 16:40:22 +0200 Subject: [PATCH 070/112] chore(deps): update dependency com.google.cloud:libraries-bom to v20.8.0 (#575) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | `20.7.0` -> `20.8.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.8.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.8.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.8.0/compatibility-slim/20.7.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.8.0/confidence-slim/20.7.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-datacatalog). --- datacatalog/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datacatalog/snippets/pom.xml b/datacatalog/snippets/pom.xml index 9d57aa00dbb..abb26e29bd7 100644 --- a/datacatalog/snippets/pom.xml +++ b/datacatalog/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 20.7.0 + 20.8.0 pom import From e19017e695ac0d60e9422e2772e4b5bd1c1a01eb Mon Sep 17 00:00:00 2001 From: Praful Makani Date: Fri, 16 Jul 2021 01:03:59 +0530 Subject: [PATCH 071/112] docs(samples): adds samples from documentation with correct region tags (#392) * docs(samples): adds samples from documentation with correct region tags * docs(samples): modified samples and add ITs * Fix IT failure * Fix IT * Update CreateEntryTests.java * Update Quickstart.java * Update Quickstart.java * Update Quickstart.java * Update Quickstart.java * Update Quickstart.java Co-authored-by: steffnay Co-authored-by: Stephanie Wang --- .../datacatalog/CreateCustomEntry.java | 109 ++++++++++++ .../datacatalog/CreateFilesetEntry.java | 23 +-- .../datacatalog/GrantTagTemplateUserRole.java | 78 +++++++++ .../com/example/datacatalog/Quickstart.java | 158 ++++++++++++++++++ .../com/example/datacatalog/SearchAssets.java | 60 +++++++ .../datacatalog/CreateCustomEntryIT.java | 98 +++++++++++ .../datacatalog/CreateEntryGroupIT.java | 10 +- .../example/datacatalog/CreateEntryTests.java | 4 +- .../datacatalog/CreateFilesetEntryIT.java | 99 +++++++++++ .../GrantTagTemplateUserRoleIT.java | 117 +++++++++++++ .../com/example/datacatalog/QuickstartIT.java | 91 ++++++++++ .../example/datacatalog/SearchAssetsIT.java | 75 +++++++++ 12 files changed, 904 insertions(+), 18 deletions(-) create mode 100644 datacatalog/snippets/src/main/java/com/example/datacatalog/CreateCustomEntry.java create mode 100644 datacatalog/snippets/src/main/java/com/example/datacatalog/GrantTagTemplateUserRole.java create mode 100644 datacatalog/snippets/src/main/java/com/example/datacatalog/Quickstart.java create mode 100644 datacatalog/snippets/src/main/java/com/example/datacatalog/SearchAssets.java create mode 100644 datacatalog/snippets/src/test/java/com/example/datacatalog/CreateCustomEntryIT.java create mode 100644 datacatalog/snippets/src/test/java/com/example/datacatalog/CreateFilesetEntryIT.java create mode 100644 datacatalog/snippets/src/test/java/com/example/datacatalog/GrantTagTemplateUserRoleIT.java create mode 100644 datacatalog/snippets/src/test/java/com/example/datacatalog/QuickstartIT.java create mode 100644 datacatalog/snippets/src/test/java/com/example/datacatalog/SearchAssetsIT.java diff --git a/datacatalog/snippets/src/main/java/com/example/datacatalog/CreateCustomEntry.java b/datacatalog/snippets/src/main/java/com/example/datacatalog/CreateCustomEntry.java new file mode 100644 index 00000000000..57a57c91b54 --- /dev/null +++ b/datacatalog/snippets/src/main/java/com/example/datacatalog/CreateCustomEntry.java @@ -0,0 +1,109 @@ +/* + * Copyright 2020 Google Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.example.datacatalog; + +// [START data_catalog_create_custom_entry] +import com.google.cloud.datacatalog.v1.ColumnSchema; +import com.google.cloud.datacatalog.v1.CreateEntryGroupRequest; +import com.google.cloud.datacatalog.v1.CreateEntryRequest; +import com.google.cloud.datacatalog.v1.DataCatalogClient; +import com.google.cloud.datacatalog.v1.Entry; +import com.google.cloud.datacatalog.v1.EntryGroup; +import com.google.cloud.datacatalog.v1.LocationName; +import com.google.cloud.datacatalog.v1.Schema; +import java.io.IOException; + +// Sample to create custom entry +public class CreateCustomEntry { + + public static void main(String[] args) throws IOException { + // TODO(developer): Replace these variables before running the sample. + String projectId = "my-project"; + String entryGroupId = "onprem_entry_group"; + String entryId = "onprem_entry_id"; + createCustomEntry(projectId, entryGroupId, entryId); + } + + public static void createCustomEntry(String projectId, String entryGroupId, String entryId) + throws IOException { + // Currently, Data Catalog stores metadata in the us-central1 region. + String location = "us-central1"; + + // Initialize client that will be used to send requests. This client only needs to be created + // once, and can be reused for multiple requests. After completing all of your requests, call + // the "close" method on the client to safely clean up any remaining background resources. + try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { + // Construct the EntryGroup for the EntryGroup request. + EntryGroup entryGroup = + EntryGroup.newBuilder() + .setDisplayName("My awesome Entry Group") + .setDescription("This Entry Group represents an external system") + .build(); + + // Construct the EntryGroup request to be sent by the client. + CreateEntryGroupRequest entryGroupRequest = + CreateEntryGroupRequest.newBuilder() + .setParent(LocationName.of(projectId, location).toString()) + .setEntryGroupId(entryGroupId) + .setEntryGroup(entryGroup) + .build(); + + // Use the client to send the API request. + EntryGroup createdEntryGroup = dataCatalogClient.createEntryGroup(entryGroupRequest); + + // Construct the Entry for the Entry request. + Entry entry = + Entry.newBuilder() + .setUserSpecifiedSystem("onprem_data_system") + .setUserSpecifiedType("onprem_data_asset") + .setDisplayName("My awesome data asset") + .setDescription("This data asset is managed by an external system.") + .setLinkedResource("//my-onprem-server.com/dataAssets/my-awesome-data-asset") + .setSchema( + Schema.newBuilder() + .addColumns( + ColumnSchema.newBuilder() + .setColumn("first_column") + .setDescription("This columns consists of ....") + .setMode("NULLABLE") + .setType("DOUBLE") + .build()) + .addColumns( + ColumnSchema.newBuilder() + .setColumn("second_column") + .setDescription("This columns consists of ....") + .setMode("REQUIRED") + .setType("STRING") + .build()) + .build()) + .build(); + + // Construct the Entry request to be sent by the client. + CreateEntryRequest entryRequest = + CreateEntryRequest.newBuilder() + .setParent(createdEntryGroup.getName()) + .setEntryId(entryId) + .setEntry(entry) + .build(); + + // Use the client to send the API request. + Entry createdEntry = dataCatalogClient.createEntry(entryRequest); + System.out.printf("Custom entry created with name: %s", createdEntry.getName()); + } + } +} +// [END data_catalog_create_custom_entry] diff --git a/datacatalog/snippets/src/main/java/com/example/datacatalog/CreateFilesetEntry.java b/datacatalog/snippets/src/main/java/com/example/datacatalog/CreateFilesetEntry.java index 579c18bd870..c6e157711bb 100644 --- a/datacatalog/snippets/src/main/java/com/example/datacatalog/CreateFilesetEntry.java +++ b/datacatalog/snippets/src/main/java/com/example/datacatalog/CreateFilesetEntry.java @@ -16,9 +16,7 @@ package com.example.datacatalog; -// [START datacatalog_create_fileset_tag] - -import com.google.api.gax.rpc.AlreadyExistsException; +// [START data_catalog_create_fileset] import com.google.cloud.datacatalog.v1.ColumnSchema; import com.google.cloud.datacatalog.v1.CreateEntryRequest; import com.google.cloud.datacatalog.v1.DataCatalogClient; @@ -29,18 +27,20 @@ import com.google.cloud.datacatalog.v1.Schema; import java.io.IOException; +// Sample to create file set entry public class CreateFilesetEntry { - public static void createEntry() { + public static void main(String[] args) throws IOException { // TODO(developer): Replace these variables before running the sample. String projectId = "my-project-id"; String entryGroupId = "fileset_entry_group"; String entryId = "fileset_entry_id"; - createEntry(projectId, entryGroupId, entryId); + createFilesetEntry(projectId, entryGroupId, entryId); } // Create Fileset Entry. - public static void createEntry(String projectId, String entryGroupId, String entryId) { + public static void createFilesetEntry(String projectId, String entryGroupId, String entryId) + throws IOException { // Currently, Data Catalog stores metadata in the us-central1 region. String location = "us-central1"; @@ -105,14 +105,9 @@ public static void createEntry(String projectId, String entryGroupId, String ent .build(); // Use the client to send the API request. - Entry entryResponse = dataCatalogClient.createEntry(entryRequest); - System.out.printf("\nEntry created with name: %s\n", entryResponse.getName()); - } catch (AlreadyExistsException | IOException e) { - // AlreadyExistsException's are thrown if EntryGroup or Entry already exists. - // IOException's are thrown when unable to create the DataCatalogClient, - // for example an invalid Service Account path. - System.out.println("Error in create entry process:\n" + e.toString()); + Entry entryCreated = dataCatalogClient.createEntry(entryRequest); + System.out.printf("Entry created with name: %s", entryCreated.getName()); } } } -// [END datacatalog_create_fileset_tag] +// [END data_catalog_create_fileset] diff --git a/datacatalog/snippets/src/main/java/com/example/datacatalog/GrantTagTemplateUserRole.java b/datacatalog/snippets/src/main/java/com/example/datacatalog/GrantTagTemplateUserRole.java new file mode 100644 index 00000000000..72af7d79bb7 --- /dev/null +++ b/datacatalog/snippets/src/main/java/com/example/datacatalog/GrantTagTemplateUserRole.java @@ -0,0 +1,78 @@ +/* + * Copyright 2020 Google Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.example.datacatalog; + +// [START data_catalog_grant_tag_template_user_role] +import com.google.cloud.datacatalog.v1.DataCatalogClient; +import com.google.cloud.datacatalog.v1.TagTemplateName; +import com.google.iam.v1.Binding; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import java.io.IOException; + +// Sample to grant tag access on template +public class GrantTagTemplateUserRole { + + public static void main(String[] args) throws IOException { + // TODO(developer): Replace these variables before running the sample. + String projectId = "my-project"; + String tagTemplateId = "my_tag_template"; + grantTagTemplateUserRole(projectId, tagTemplateId); + } + + public static void grantTagTemplateUserRole(String projectId, String templateId) + throws IOException { + // Currently, Data Catalog stores metadata in the us-central1 region. + String location = "us-central1"; + + // Format the Template name. + String templateName = + TagTemplateName.newBuilder() + .setProject(projectId) + .setLocation(location) + .setTagTemplate(templateId) + .build() + .toString(); + + // Initialize client that will be used to send requests. This client only needs to be created + // once, and can be reused for multiple requests. After completing all of your requests, call + // the "close" method on the client to safely clean up any remaining background resources. + try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { + + // Create a Binding to add the Tag Template User role and member to the policy. + Binding binding = + Binding.newBuilder() + .setRole("roles/datacatalog.tagTemplateUser") + .addMembers("group:example-analyst-group@google.com") + .build(); + + // Create a Policy object to update Template's IAM policy by adding the new binding. + Policy policyUpdate = Policy.newBuilder().addBindings(binding).build(); + + SetIamPolicyRequest request = + SetIamPolicyRequest.newBuilder() + .setPolicy(policyUpdate) + .setResource(templateName) + .build(); + + // Update Template's policy. + dataCatalogClient.setIamPolicy(request); + System.out.println("Role successfully granted"); + } + } +} +// [END data_catalog_grant_tag_template_user_role] diff --git a/datacatalog/snippets/src/main/java/com/example/datacatalog/Quickstart.java b/datacatalog/snippets/src/main/java/com/example/datacatalog/Quickstart.java new file mode 100644 index 00000000000..fcd8ff4854f --- /dev/null +++ b/datacatalog/snippets/src/main/java/com/example/datacatalog/Quickstart.java @@ -0,0 +1,158 @@ +/* + * Copyright 2020 Google Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.example.datacatalog; + +// [START data_catalog_quickstart] +import com.google.cloud.datacatalog.v1.CreateTagRequest; +import com.google.cloud.datacatalog.v1.CreateTagTemplateRequest; +import com.google.cloud.datacatalog.v1.DataCatalogClient; +import com.google.cloud.datacatalog.v1.Entry; +import com.google.cloud.datacatalog.v1.FieldType; +import com.google.cloud.datacatalog.v1.FieldType.EnumType; +import com.google.cloud.datacatalog.v1.FieldType.EnumType.EnumValue; +import com.google.cloud.datacatalog.v1.FieldType.PrimitiveType; +import com.google.cloud.datacatalog.v1.LocationName; +import com.google.cloud.datacatalog.v1.LookupEntryRequest; +import com.google.cloud.datacatalog.v1.Tag; +import com.google.cloud.datacatalog.v1.TagField; +import com.google.cloud.datacatalog.v1.TagTemplate; +import com.google.cloud.datacatalog.v1.TagTemplateField; +import java.io.IOException; + +public class Quickstart { + + public static void main(String[] args) throws IOException { + // TODO(developer): Replace these variables before running the sample. + String projectId = "my-project"; + String tagTemplateId = "my_tag_template"; + createTags(projectId, tagTemplateId); + } + + public static void createTags(String projectId, String tagTemplateId) throws IOException { + // Currently, Data Catalog stores metadata in the us-central1 region. + String location = "us-central1"; + + // Initialize client that will be used to send requests. This client only needs to be created + // once, and can be reused for multiple requests. After completing all of your requests, call + // the "close" method on the client to safely clean up any remaining background resources. + try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { + + // ------------------------------- + // Create a Tag Template. + // ------------------------------- + TagTemplateField sourceField = + TagTemplateField.newBuilder() + .setDisplayName("Source of data asset") + .setType(FieldType.newBuilder().setPrimitiveType(PrimitiveType.STRING).build()) + .build(); + + TagTemplateField numRowsField = + TagTemplateField.newBuilder() + .setDisplayName("Number of rows in data asset") + .setType(FieldType.newBuilder().setPrimitiveType(PrimitiveType.DOUBLE).build()) + .build(); + + TagTemplateField hasPiiField = + TagTemplateField.newBuilder() + .setDisplayName("Has PII") + .setType(FieldType.newBuilder().setPrimitiveType(PrimitiveType.BOOL).build()) + .build(); + + TagTemplateField piiTypeField = + TagTemplateField.newBuilder() + .setDisplayName("PII type") + .setType( + FieldType.newBuilder() + .setEnumType( + EnumType.newBuilder() + .addAllowedValues( + EnumValue.newBuilder().setDisplayName("EMAIL").build()) + .addAllowedValues( + EnumValue.newBuilder() + .setDisplayName("SOCIAL SECURITY NUMBER") + .build()) + .addAllowedValues( + EnumValue.newBuilder().setDisplayName("NONE").build()) + .build()) + .build()) + .build(); + + TagTemplate tagTemplate = + TagTemplate.newBuilder() + .setDisplayName("Demo Tag Template") + .putFields("source", sourceField) + .putFields("num_rows", numRowsField) + .putFields("has_pii", hasPiiField) + .putFields("pii_type", piiTypeField) + .build(); + + CreateTagTemplateRequest createTagTemplateRequest = + CreateTagTemplateRequest.newBuilder() + .setParent( + LocationName.newBuilder() + .setProject(projectId) + .setLocation(location) + .build() + .toString()) + .setTagTemplateId(tagTemplateId) + .setTagTemplate(tagTemplate) + .build(); + + // Create the Tag Template. + tagTemplate = dataCatalogClient.createTagTemplate(createTagTemplateRequest); + + // ------------------------------- + // Lookup Data Catalog's Entry referring to the table. + // ------------------------------- + String linkedResource = + String.format( + "//bigquery.googleapis.com/projects/%s/datasets/test_dataset/tables/test_table", + projectId); + LookupEntryRequest lookupEntryRequest = + LookupEntryRequest.newBuilder().setLinkedResource(linkedResource).build(); + Entry tableEntry = dataCatalogClient.lookupEntry(lookupEntryRequest); + + // ------------------------------- + // Attach a Tag to the table. + // ------------------------------- + TagField sourceValue = + TagField.newBuilder().setStringValue("Copied from tlc_yellow_trips_2017").build(); + TagField numRowsValue = TagField.newBuilder().setDoubleValue(113496874).build(); + TagField hasPiiValue = TagField.newBuilder().setBoolValue(false).build(); + TagField piiTypeValue = + TagField.newBuilder() + .setEnumValue(TagField.EnumValue.newBuilder().setDisplayName("NONE").build()) + .build(); + + Tag tag = + Tag.newBuilder() + .setTemplate(tagTemplate.getName()) + .putFields("source", sourceValue) + .putFields("num_rows", numRowsValue) + .putFields("has_pii", hasPiiValue) + .putFields("pii_type", piiTypeValue) + .build(); + + CreateTagRequest createTagRequest = + CreateTagRequest.newBuilder().setParent(tableEntry.getName()).setTag(tag).build(); + + dataCatalogClient.createTag(createTagRequest); + System.out.printf("Tag created successfully"); + } + } +} +// [END data_catalog_quickstart] diff --git a/datacatalog/snippets/src/main/java/com/example/datacatalog/SearchAssets.java b/datacatalog/snippets/src/main/java/com/example/datacatalog/SearchAssets.java new file mode 100644 index 00000000000..98d8d247d2f --- /dev/null +++ b/datacatalog/snippets/src/main/java/com/example/datacatalog/SearchAssets.java @@ -0,0 +1,60 @@ +/* + * Copyright 2020 Google Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.example.datacatalog; + +// [START data_catalog_search_assets] +import com.google.cloud.datacatalog.v1.DataCatalogClient; +import com.google.cloud.datacatalog.v1.DataCatalogClient.SearchCatalogPagedResponse; +import com.google.cloud.datacatalog.v1.SearchCatalogRequest; +import com.google.cloud.datacatalog.v1.SearchCatalogRequest.Scope; +import com.google.cloud.datacatalog.v1.SearchCatalogResult; +import java.io.IOException; + +// Sample to search catalog +public class SearchAssets { + + public static void main(String[] args) throws IOException { + // TODO(developer): Replace these variables before running the sample. + String projectId = "my-project-id"; + String query = "type=dataset"; + searchCatalog(projectId, query); + } + + public static void searchCatalog(String projectId, String query) throws IOException { + // Create a scope object setting search boundaries to the given organization. + // Scope scope = Scope.newBuilder().addIncludeOrgIds(orgId).build(); + + // Alternatively, search using project scopes. + Scope scope = Scope.newBuilder().addIncludeProjectIds(projectId).build(); + + // Initialize client that will be used to send requests. This client only needs to be created + // once, and can be reused for multiple requests. After completing all of your requests, call + // the "close" method on the client to safely clean up any remaining background resources. + try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { + // Search the catalog. + SearchCatalogRequest searchCatalogRequest = + SearchCatalogRequest.newBuilder().setScope(scope).setQuery(query).build(); + SearchCatalogPagedResponse response = dataCatalogClient.searchCatalog(searchCatalogRequest); + + System.out.println("Search results:"); + for (SearchCatalogResult result : response.iterateAll()) { + System.out.println(result); + } + } + } +} +// [END data_catalog_search_assets] diff --git a/datacatalog/snippets/src/test/java/com/example/datacatalog/CreateCustomEntryIT.java b/datacatalog/snippets/src/test/java/com/example/datacatalog/CreateCustomEntryIT.java new file mode 100644 index 00000000000..5a81d7e540e --- /dev/null +++ b/datacatalog/snippets/src/test/java/com/example/datacatalog/CreateCustomEntryIT.java @@ -0,0 +1,98 @@ +/* + * Copyright 2020 Google Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.example.datacatalog; + +import static com.google.common.truth.Truth.assertThat; +import static junit.framework.TestCase.assertNotNull; + +import com.google.cloud.datacatalog.v1.DataCatalogClient; +import com.google.cloud.datacatalog.v1.DeleteEntryGroupRequest; +import com.google.cloud.datacatalog.v1.DeleteEntryRequest; +import com.google.cloud.datacatalog.v1.EntryGroupName; +import com.google.cloud.datacatalog.v1.EntryName; +import java.io.ByteArrayOutputStream; +import java.io.IOException; +import java.io.PrintStream; +import java.util.UUID; +import java.util.logging.Level; +import java.util.logging.Logger; +import org.junit.After; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +public class CreateCustomEntryIT { + + private static final String ID = UUID.randomUUID().toString().substring(0, 8); + private static final String LOCATION = "us-central1"; + private final Logger log = Logger.getLogger(this.getClass().getName()); + private String entry; + private String entryGroup; + private ByteArrayOutputStream bout; + private PrintStream out; + private PrintStream originalPrintStream; + + private static final String PROJECT_ID = requireEnvVar("GOOGLE_CLOUD_PROJECT"); + + private static String requireEnvVar(String varName) { + String value = System.getenv(varName); + assertNotNull( + "Environment variable " + varName + " is required to perform these tests.", + System.getenv(varName)); + return value; + } + + @BeforeClass + public static void checkRequirements() { + requireEnvVar("GOOGLE_CLOUD_PROJECT"); + } + + @Before + public void setUp() { + entry = "CREATE_CUSTOM_ENTRY_TEST_" + ID; + entryGroup = "CREATE_CUSTOME_ENTRY_GROUP_TEST_" + ID; + bout = new ByteArrayOutputStream(); + out = new PrintStream(bout); + originalPrintStream = System.out; + System.setOut(out); + } + + @After + public void tearDown() throws IOException { + // Clean up + try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { + EntryName entryName = EntryName.of(PROJECT_ID, LOCATION, entryGroup, entry); + DeleteEntryRequest entryRequest = + DeleteEntryRequest.newBuilder().setName(entryName.toString()).build(); + dataCatalogClient.deleteEntry(entryRequest); + EntryGroupName name = EntryGroupName.of(PROJECT_ID, LOCATION, entryGroup); + DeleteEntryGroupRequest request = + DeleteEntryGroupRequest.newBuilder().setName(name.toString()).build(); + dataCatalogClient.deleteEntryGroup(request); + } + // restores print statements in the original method + System.out.flush(); + System.setOut(originalPrintStream); + log.log(Level.INFO, bout.toString()); + } + + @Test + public void testCreateCustomEntry() throws IOException { + CreateCustomEntry.createCustomEntry(PROJECT_ID, entryGroup, entry); + assertThat(bout.toString()).contains("Custom entry created with name:"); + } +} diff --git a/datacatalog/snippets/src/test/java/com/example/datacatalog/CreateEntryGroupIT.java b/datacatalog/snippets/src/test/java/com/example/datacatalog/CreateEntryGroupIT.java index 2b55edebb19..af023f3f8ed 100644 --- a/datacatalog/snippets/src/test/java/com/example/datacatalog/CreateEntryGroupIT.java +++ b/datacatalog/snippets/src/test/java/com/example/datacatalog/CreateEntryGroupIT.java @@ -19,6 +19,8 @@ import static com.google.common.truth.Truth.assertThat; import static junit.framework.TestCase.assertNotNull; +import com.google.cloud.datacatalog.v1.DataCatalogClient; +import com.google.cloud.datacatalog.v1.DeleteEntryGroupRequest; import com.google.cloud.datacatalog.v1.EntryGroupName; import java.io.ByteArrayOutputStream; import java.io.IOException; @@ -68,8 +70,12 @@ public void setUp() { @After public void tearDown() throws IOException { // Clean up - EntryGroupName name = EntryGroupName.of(PROJECT_ID, LOCATION, entryGroup); - DeleteEntryGroup.deleteEntryGroup(name); + try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { + EntryGroupName name = EntryGroupName.of(PROJECT_ID, LOCATION, entryGroup); + DeleteEntryGroupRequest request = + DeleteEntryGroupRequest.newBuilder().setName(name.toString()).build(); + dataCatalogClient.deleteEntryGroup(request); + } // restores print statements in the original method System.out.flush(); System.setOut(originalPrintStream); diff --git a/datacatalog/snippets/src/test/java/com/example/datacatalog/CreateEntryTests.java b/datacatalog/snippets/src/test/java/com/example/datacatalog/CreateEntryTests.java index b09cca576c2..ede7e254c82 100644 --- a/datacatalog/snippets/src/test/java/com/example/datacatalog/CreateEntryTests.java +++ b/datacatalog/snippets/src/test/java/com/example/datacatalog/CreateEntryTests.java @@ -16,7 +16,7 @@ package com.example.datacatalog; -import static org.junit.Assert.assertThat; +import static org.hamcrest.MatcherAssert.assertThat; import static org.junit.Assert.fail; import com.google.cloud.datacatalog.v1.DataCatalogClient; @@ -87,7 +87,7 @@ public void testCreateFilesetEntry() throws IOException { // Must create a Entry Group before creating the entry. CreateEntryGroup.createEntryGroup(PROJECT_ID, LOCATION, entryGroupId); - CreateFilesetEntry.createEntry(PROJECT_ID, entryGroupId, entryId); + CreateFilesetEntry.createFilesetEntry(PROJECT_ID, entryGroupId, entryId); // Store names for clean up on teardown String expectedEntryGroupName = diff --git a/datacatalog/snippets/src/test/java/com/example/datacatalog/CreateFilesetEntryIT.java b/datacatalog/snippets/src/test/java/com/example/datacatalog/CreateFilesetEntryIT.java new file mode 100644 index 00000000000..2b8147f67cb --- /dev/null +++ b/datacatalog/snippets/src/test/java/com/example/datacatalog/CreateFilesetEntryIT.java @@ -0,0 +1,99 @@ +/* + * Copyright 2020 Google Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.example.datacatalog; + +import static com.google.common.truth.Truth.assertThat; +import static junit.framework.TestCase.assertNotNull; + +import com.google.cloud.datacatalog.v1.DataCatalogClient; +import com.google.cloud.datacatalog.v1.DeleteEntryGroupRequest; +import com.google.cloud.datacatalog.v1.DeleteEntryRequest; +import com.google.cloud.datacatalog.v1.EntryGroupName; +import com.google.cloud.datacatalog.v1.EntryName; +import java.io.ByteArrayOutputStream; +import java.io.IOException; +import java.io.PrintStream; +import java.util.UUID; +import java.util.logging.Level; +import java.util.logging.Logger; +import org.junit.After; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +public class CreateFilesetEntryIT { + + private static final String ID = UUID.randomUUID().toString().substring(0, 8); + private static final String LOCATION = "us-central1"; + private final Logger log = Logger.getLogger(this.getClass().getName()); + private String entryGroup; + private String entry; + private ByteArrayOutputStream bout; + private PrintStream out; + private PrintStream originalPrintStream; + + private static final String PROJECT_ID = requireEnvVar("GOOGLE_CLOUD_PROJECT"); + + private static String requireEnvVar(String varName) { + String value = System.getenv(varName); + assertNotNull( + "Environment variable " + varName + " is required to perform these tests.", + System.getenv(varName)); + return value; + } + + @BeforeClass + public static void checkRequirements() { + requireEnvVar("GOOGLE_CLOUD_PROJECT"); + } + + @Before + public void setUp() throws IOException { + entryGroup = "CREATE_ENTRY_GROUP_TEST_" + ID; + entry = "CREATE_ENTRY_TEST_" + ID; + bout = new ByteArrayOutputStream(); + out = new PrintStream(bout); + originalPrintStream = System.out; + System.setOut(out); + CreateEntryGroup.createEntryGroup(PROJECT_ID, LOCATION, entryGroup); + } + + @After + public void tearDown() throws IOException { + // Clean up + try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { + EntryName entryName = EntryName.of(PROJECT_ID, LOCATION, entryGroup, entry); + DeleteEntryRequest entryRequest = + DeleteEntryRequest.newBuilder().setName(entryName.toString()).build(); + dataCatalogClient.deleteEntry(entryRequest); + EntryGroupName name = EntryGroupName.of(PROJECT_ID, LOCATION, entryGroup); + DeleteEntryGroupRequest request = + DeleteEntryGroupRequest.newBuilder().setName(name.toString()).build(); + dataCatalogClient.deleteEntryGroup(request); + } + // restores print statements in the original method + System.out.flush(); + System.setOut(originalPrintStream); + log.log(Level.INFO, bout.toString()); + } + + @Test + public void testCreateFilesetEntry() throws IOException { + CreateFilesetEntry.createFilesetEntry(PROJECT_ID, entryGroup, entry); + assertThat(bout.toString()).contains("Entry created with name:"); + } +} diff --git a/datacatalog/snippets/src/test/java/com/example/datacatalog/GrantTagTemplateUserRoleIT.java b/datacatalog/snippets/src/test/java/com/example/datacatalog/GrantTagTemplateUserRoleIT.java new file mode 100644 index 00000000000..0837ab16fb6 --- /dev/null +++ b/datacatalog/snippets/src/test/java/com/example/datacatalog/GrantTagTemplateUserRoleIT.java @@ -0,0 +1,117 @@ +/* + * Copyright 2020 Google Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.example.datacatalog; + +import static com.google.common.truth.Truth.assertThat; +import static junit.framework.TestCase.assertNotNull; + +import com.google.cloud.datacatalog.v1.CreateTagTemplateRequest; +import com.google.cloud.datacatalog.v1.DataCatalogClient; +import com.google.cloud.datacatalog.v1.DeleteTagTemplateRequest; +import com.google.cloud.datacatalog.v1.FieldType; +import com.google.cloud.datacatalog.v1.LocationName; +import com.google.cloud.datacatalog.v1.TagTemplate; +import com.google.cloud.datacatalog.v1.TagTemplateField; +import com.google.cloud.datacatalog.v1.TagTemplateName; +import java.io.ByteArrayOutputStream; +import java.io.IOException; +import java.io.PrintStream; +import java.util.UUID; +import java.util.logging.Level; +import java.util.logging.Logger; +import org.junit.After; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +public class GrantTagTemplateUserRoleIT { + + private static final String ID = UUID.randomUUID().toString().substring(0, 8); + private static final String LOCATION = "us-central1"; + private final Logger log = Logger.getLogger(this.getClass().getName()); + private String tagTemplateId; + private ByteArrayOutputStream bout; + private PrintStream out; + private PrintStream originalPrintStream; + + private static final String PROJECT_ID = requireEnvVar("GOOGLE_CLOUD_PROJECT"); + + private static String requireEnvVar(String varName) { + String value = System.getenv(varName); + assertNotNull( + "Environment variable " + varName + " is required to perform these tests.", + System.getenv(varName)); + return value; + } + + @BeforeClass + public static void checkRequirements() { + requireEnvVar("GOOGLE_CLOUD_PROJECT"); + } + + @Before + public void setUp() throws IOException { + tagTemplateId = "create_tag_template_id_test_" + ID; + bout = new ByteArrayOutputStream(); + out = new PrintStream(bout); + originalPrintStream = System.out; + System.setOut(out); + try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { + LocationName parent = LocationName.of(PROJECT_ID, LOCATION); + TagTemplateField sourceField = + TagTemplateField.newBuilder() + .setDisplayName("Source of data asset") + .setType( + FieldType.newBuilder().setPrimitiveType(FieldType.PrimitiveType.STRING).build()) + .build(); + TagTemplate tagTemplate = + TagTemplate.newBuilder() + .setDisplayName("Demo Tag Template") + .putFields("source", sourceField) + .build(); + CreateTagTemplateRequest request = + CreateTagTemplateRequest.newBuilder() + .setParent(parent.toString()) + .setTagTemplateId(tagTemplateId) + .setTagTemplate(tagTemplate) + .build(); + dataCatalogClient.createTagTemplate(request); + } + } + + @After + public void tearDown() throws IOException { + // Clean up + try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { + TagTemplateName name = TagTemplateName.of(PROJECT_ID, LOCATION, tagTemplateId); + boolean force = true; + DeleteTagTemplateRequest request = + DeleteTagTemplateRequest.newBuilder().setName(name.toString()).setForce(force).build(); + dataCatalogClient.deleteTagTemplate(request); + } + // restores print statements in the original method + System.out.flush(); + System.setOut(originalPrintStream); + log.log(Level.INFO, bout.toString()); + } + + @Test + public void testGrantTagTemplateUserRole() throws IOException { + GrantTagTemplateUserRole.grantTagTemplateUserRole(PROJECT_ID, tagTemplateId); + assertThat(bout.toString()).contains("Role successfully granted"); + } +} diff --git a/datacatalog/snippets/src/test/java/com/example/datacatalog/QuickstartIT.java b/datacatalog/snippets/src/test/java/com/example/datacatalog/QuickstartIT.java new file mode 100644 index 00000000000..e48d3e41077 --- /dev/null +++ b/datacatalog/snippets/src/test/java/com/example/datacatalog/QuickstartIT.java @@ -0,0 +1,91 @@ +/* + * Copyright 2020 Google Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.example.datacatalog; + +import static com.google.common.truth.Truth.assertThat; +import static junit.framework.TestCase.assertNotNull; + +import com.google.cloud.datacatalog.v1.DataCatalogClient; +import com.google.cloud.datacatalog.v1.DeleteTagTemplateRequest; +import com.google.cloud.datacatalog.v1.TagTemplateName; +import java.io.ByteArrayOutputStream; +import java.io.IOException; +import java.io.PrintStream; +import java.util.UUID; +import java.util.logging.Level; +import java.util.logging.Logger; +import org.junit.After; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +public class QuickstartIT { + + private static final String ID = UUID.randomUUID().toString().substring(0, 8); + private static final String LOCATION = "us-central1"; + private final Logger log = Logger.getLogger(this.getClass().getName()); + private String tagTemplateId; + private ByteArrayOutputStream bout; + private PrintStream out; + private PrintStream originalPrintStream; + + private static final String PROJECT_ID = requireEnvVar("GOOGLE_CLOUD_PROJECT"); + + private static String requireEnvVar(String varName) { + String value = System.getenv(varName); + assertNotNull( + "Environment variable " + varName + " is required to perform these tests.", + System.getenv(varName)); + return value; + } + + @BeforeClass + public static void checkRequirements() { + requireEnvVar("GOOGLE_CLOUD_PROJECT"); + } + + @Before + public void setUp() { + tagTemplateId = "quickstart_tag_template_id_test_" + ID; + bout = new ByteArrayOutputStream(); + out = new PrintStream(bout); + originalPrintStream = System.out; + System.setOut(out); + } + + @After + public void tearDown() throws IOException { + // Clean up + try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { + TagTemplateName name = TagTemplateName.of(PROJECT_ID, LOCATION, tagTemplateId); + boolean force = true; + DeleteTagTemplateRequest request = + DeleteTagTemplateRequest.newBuilder().setName(name.toString()).setForce(force).build(); + dataCatalogClient.deleteTagTemplate(request); + } + // restores print statements in the original method + System.out.flush(); + System.setOut(originalPrintStream); + log.log(Level.INFO, bout.toString()); + } + + @Test + public void testQuickstart() throws IOException { + Quickstart.createTags(PROJECT_ID, tagTemplateId); + assertThat(bout.toString()).contains("Tag created successfully"); + } +} diff --git a/datacatalog/snippets/src/test/java/com/example/datacatalog/SearchAssetsIT.java b/datacatalog/snippets/src/test/java/com/example/datacatalog/SearchAssetsIT.java new file mode 100644 index 00000000000..d0090243fdd --- /dev/null +++ b/datacatalog/snippets/src/test/java/com/example/datacatalog/SearchAssetsIT.java @@ -0,0 +1,75 @@ +/* + * Copyright 2020 Google Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.example.datacatalog; + +import static com.google.common.truth.Truth.assertThat; +import static junit.framework.TestCase.assertNotNull; + +import java.io.ByteArrayOutputStream; +import java.io.IOException; +import java.io.PrintStream; +import java.util.logging.Level; +import java.util.logging.Logger; +import org.junit.After; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +public class SearchAssetsIT { + + private final Logger log = Logger.getLogger(this.getClass().getName()); + private ByteArrayOutputStream bout; + private PrintStream out; + private PrintStream originalPrintStream; + + private static final String PROJECT_ID = requireEnvVar("GOOGLE_CLOUD_PROJECT"); + + private static String requireEnvVar(String varName) { + String value = System.getenv(varName); + assertNotNull( + "Environment variable " + varName + " is required to perform these tests.", + System.getenv(varName)); + return value; + } + + @BeforeClass + public static void checkRequirements() { + requireEnvVar("GOOGLE_CLOUD_PROJECT"); + } + + @Before + public void setUp() { + bout = new ByteArrayOutputStream(); + out = new PrintStream(bout); + originalPrintStream = System.out; + System.setOut(out); + } + + @After + public void tearDown() { + // restores print statements in the original method + System.out.flush(); + System.setOut(originalPrintStream); + log.log(Level.INFO, bout.toString()); + } + + @Test + public void testSearchAssets() throws IOException { + SearchAssets.searchCatalog(PROJECT_ID, "type=dataset"); + assertThat(bout.toString()).contains("Search results:"); + } +} From 779b043cb822be7910ebc0ac03f4c8e643c3dbf1 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 26 Jul 2021 18:03:35 +0200 Subject: [PATCH 072/112] chore(deps): update dependency com.google.cloud:libraries-bom to v20.9.0 (#582) --- datacatalog/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datacatalog/snippets/pom.xml b/datacatalog/snippets/pom.xml index abb26e29bd7..810134e7986 100644 --- a/datacatalog/snippets/pom.xml +++ b/datacatalog/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 20.8.0 + 20.9.0 pom import From b2bd113520c78e91ee1ec31e7c5e44820abd21ef Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 19 Aug 2021 19:15:34 +0200 Subject: [PATCH 073/112] chore(deps): update dependency com.google.cloud:libraries-bom to v21 (#610) --- datacatalog/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datacatalog/snippets/pom.xml b/datacatalog/snippets/pom.xml index 810134e7986..e46c4de1b1e 100644 --- a/datacatalog/snippets/pom.xml +++ b/datacatalog/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 20.9.0 + 21.0.0 pom import From 91b852f11eaa4c79b91753d9eb758e706952566d Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 27 Aug 2021 17:02:23 +0200 Subject: [PATCH 074/112] chore(deps): update dependency com.google.cloud:libraries-bom to v22 (#623) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | `21.0.0` -> `22.0.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/22.0.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/22.0.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/22.0.0/compatibility-slim/21.0.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/22.0.0/confidence-slim/21.0.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-datacatalog). --- datacatalog/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datacatalog/snippets/pom.xml b/datacatalog/snippets/pom.xml index e46c4de1b1e..6708aa20d6c 100644 --- a/datacatalog/snippets/pom.xml +++ b/datacatalog/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 21.0.0 + 22.0.0 pom import From 2050444130585d43787c0dfb1786f0b8f5d8324c Mon Sep 17 00:00:00 2001 From: Neenu Shaji Date: Sun, 5 Sep 2021 14:04:29 -0400 Subject: [PATCH 075/112] chore: migrate to owlbot (#557) --- .../v1beta1/DatacatalogGetEntry.java | 95 --------------- .../v1beta1/DatacatalogLookupEntry.java | 82 ------------- .../DatacatalogLookupEntrySqlResource.java | 79 ------------ .../v1beta1/DatacatalogSearch.java | 112 ------------------ 4 files changed, 368 deletions(-) delete mode 100644 datacatalog/generated/src/main/java/com/google/cloud/examples/datacatalog/v1beta1/DatacatalogGetEntry.java delete mode 100644 datacatalog/generated/src/main/java/com/google/cloud/examples/datacatalog/v1beta1/DatacatalogLookupEntry.java delete mode 100644 datacatalog/generated/src/main/java/com/google/cloud/examples/datacatalog/v1beta1/DatacatalogLookupEntrySqlResource.java delete mode 100644 datacatalog/generated/src/main/java/com/google/cloud/examples/datacatalog/v1beta1/DatacatalogSearch.java diff --git a/datacatalog/generated/src/main/java/com/google/cloud/examples/datacatalog/v1beta1/DatacatalogGetEntry.java b/datacatalog/generated/src/main/java/com/google/cloud/examples/datacatalog/v1beta1/DatacatalogGetEntry.java deleted file mode 100644 index c7384ef344f..00000000000 --- a/datacatalog/generated/src/main/java/com/google/cloud/examples/datacatalog/v1beta1/DatacatalogGetEntry.java +++ /dev/null @@ -1,95 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// DO NOT EDIT! This is a generated sample ("Request", "datacatalog_get_entry") -// sample-metadata: -// title: -// description: Get Entry -// usage: gradle run -PmainClass=com.google.cloud.examples.datacatalog.v1beta1.DatacatalogGetEntry [--args='[--project_id "[Google Cloud Project ID]"] [--location_id "[Google Cloud Location ID]"] [--entry_group_id "[Entry Group ID]"] [--entry_id "[Entry ID]"]'] - -package com.google.cloud.examples.datacatalog.v1beta1; - -import com.google.cloud.datacatalog.v1beta1.DataCatalogClient; -import com.google.cloud.datacatalog.v1beta1.Entry; -import com.google.cloud.datacatalog.v1beta1.GetEntryRequest; -import org.apache.commons.cli.CommandLine; -import org.apache.commons.cli.DefaultParser; -import org.apache.commons.cli.Option; -import org.apache.commons.cli.Options; - -public class DatacatalogGetEntry { - // [START datacatalog_get_entry] - /* - * Please include the following imports to run this sample. - * - * import com.google.cloud.datacatalog.v1beta1.DataCatalogClient; - * import com.google.cloud.datacatalog.v1beta1.Entry; - * import com.google.cloud.datacatalog.v1beta1.GetEntryRequest; - */ - - public static void sampleGetEntry() { - // TODO(developer): Replace these variables before running the sample. - String projectId = "[Google Cloud Project ID]"; - String locationId = "[Google Cloud Location ID]"; - String entryGroupId = "[Entry Group ID]"; - String entryId = "[Entry ID]"; - sampleGetEntry(projectId, locationId, entryGroupId, entryId); - } - - /** - * Get Entry - * - * @param projectId Your Google Cloud project ID - * @param locationId Google Cloud region, e.g. us-central1 - * @param entryGroupId ID of the Entry Group, e.g. {@literal @}bigquery, {@literal @}pubsub, - * my_entry_group - * @param entryId ID of the Entry - */ - public static void sampleGetEntry( - String projectId, String locationId, String entryGroupId, String entryId) { - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - String formattedName = - DataCatalogClient.formatEntryName(projectId, locationId, entryGroupId, entryId); - GetEntryRequest request = GetEntryRequest.newBuilder().setName(formattedName).build(); - Entry response = dataCatalogClient.getEntry(request); - Entry entry = response; - System.out.printf("Entry name: %s\n", entry.getName()); - System.out.printf("Entry type: %s\n", entry.getType()); - System.out.printf("Linked resource: %s\n", entry.getLinkedResource()); - } catch (Exception exception) { - System.err.println("Failed to create the client due to: " + exception); - } - } - // [END datacatalog_get_entry] - - public static void main(String[] args) throws Exception { - Options options = new Options(); - options.addOption( - Option.builder("").required(false).hasArg(true).longOpt("project_id").build()); - options.addOption( - Option.builder("").required(false).hasArg(true).longOpt("location_id").build()); - options.addOption( - Option.builder("").required(false).hasArg(true).longOpt("entry_group_id").build()); - options.addOption(Option.builder("").required(false).hasArg(true).longOpt("entry_id").build()); - - CommandLine cl = (new DefaultParser()).parse(options, args); - String projectId = cl.getOptionValue("project_id", "[Google Cloud Project ID]"); - String locationId = cl.getOptionValue("location_id", "[Google Cloud Location ID]"); - String entryGroupId = cl.getOptionValue("entry_group_id", "[Entry Group ID]"); - String entryId = cl.getOptionValue("entry_id", "[Entry ID]"); - - sampleGetEntry(projectId, locationId, entryGroupId, entryId); - } -} diff --git a/datacatalog/generated/src/main/java/com/google/cloud/examples/datacatalog/v1beta1/DatacatalogLookupEntry.java b/datacatalog/generated/src/main/java/com/google/cloud/examples/datacatalog/v1beta1/DatacatalogLookupEntry.java deleted file mode 100644 index ba336eafdb3..00000000000 --- a/datacatalog/generated/src/main/java/com/google/cloud/examples/datacatalog/v1beta1/DatacatalogLookupEntry.java +++ /dev/null @@ -1,82 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// DO NOT EDIT! This is a generated sample ("Request", "datacatalog_lookup_entry") -// sample-metadata: -// title: -// description: Lookup Entry -// usage: gradle run -PmainClass=com.google.cloud.examples.datacatalog.v1beta1.DatacatalogLookupEntry [--args='[--resource_name "[Full Resource Name]"]'] - -package com.google.cloud.examples.datacatalog.v1beta1; - -import com.google.cloud.datacatalog.v1beta1.DataCatalogClient; -import com.google.cloud.datacatalog.v1beta1.Entry; -import com.google.cloud.datacatalog.v1beta1.LookupEntryRequest; -import org.apache.commons.cli.CommandLine; -import org.apache.commons.cli.DefaultParser; -import org.apache.commons.cli.Option; -import org.apache.commons.cli.Options; - -public class DatacatalogLookupEntry { - // [START datacatalog_lookup_entry] - /* - * Please include the following imports to run this sample. - * - * import com.google.cloud.datacatalog.v1beta1.DataCatalogClient; - * import com.google.cloud.datacatalog.v1beta1.Entry; - * import com.google.cloud.datacatalog.v1beta1.LookupEntryRequest; - */ - - public static void sampleLookupEntry() { - // TODO(developer): Replace these variables before running the sample. - String resourceName = "[Full Resource Name]"; - sampleLookupEntry(resourceName); - } - - /** - * Lookup Entry - * - * @param resourceName The full name of the Google Cloud Platform resource the Data Catalog entry - * represents. See: https://cloud.google.com/apis/design/resource_names#full_resource_name - * Examples: - * //bigquery.googleapis.com/projects/bigquery-public-data/datasets/new_york_taxi_trips/tables/taxi_zone_geom - * //pubsub.googleapis.com/projects/pubsub-public-data/topics/taxirides-realtime - */ - public static void sampleLookupEntry(String resourceName) { - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - LookupEntryRequest request = - LookupEntryRequest.newBuilder().setLinkedResource(resourceName).build(); - Entry response = dataCatalogClient.lookupEntry(request); - Entry entry = response; - System.out.printf("Entry name: %s\n", entry.getName()); - System.out.printf("Entry type: %s\n", entry.getType()); - System.out.printf("Linked resource: %s\n", entry.getLinkedResource()); - } catch (Exception exception) { - System.err.println("Failed to create the client due to: " + exception); - } - } - // [END datacatalog_lookup_entry] - - public static void main(String[] args) throws Exception { - Options options = new Options(); - options.addOption( - Option.builder("").required(false).hasArg(true).longOpt("resource_name").build()); - - CommandLine cl = (new DefaultParser()).parse(options, args); - String resourceName = cl.getOptionValue("resource_name", "[Full Resource Name]"); - - sampleLookupEntry(resourceName); - } -} diff --git a/datacatalog/generated/src/main/java/com/google/cloud/examples/datacatalog/v1beta1/DatacatalogLookupEntrySqlResource.java b/datacatalog/generated/src/main/java/com/google/cloud/examples/datacatalog/v1beta1/DatacatalogLookupEntrySqlResource.java deleted file mode 100644 index 9826fc4c7fd..00000000000 --- a/datacatalog/generated/src/main/java/com/google/cloud/examples/datacatalog/v1beta1/DatacatalogLookupEntrySqlResource.java +++ /dev/null @@ -1,79 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// DO NOT EDIT! This is a generated sample ("Request", "datacatalog_lookup_entry_sql_resource") -// sample-metadata: -// title: -// description: Lookup Entry using SQL resource -// usage: gradle run -PmainClass=com.google.cloud.examples.datacatalog.v1beta1.DatacatalogLookupEntrySqlResource [--args='[--sql_name "[SQL Resource Name]"]'] - -package com.google.cloud.examples.datacatalog.v1beta1; - -import com.google.cloud.datacatalog.v1beta1.DataCatalogClient; -import com.google.cloud.datacatalog.v1beta1.Entry; -import com.google.cloud.datacatalog.v1beta1.LookupEntryRequest; -import org.apache.commons.cli.CommandLine; -import org.apache.commons.cli.DefaultParser; -import org.apache.commons.cli.Option; -import org.apache.commons.cli.Options; - -public class DatacatalogLookupEntrySqlResource { - // [START datacatalog_lookup_entry_sql_resource] - /* - * Please include the following imports to run this sample. - * - * import com.google.cloud.datacatalog.v1beta1.DataCatalogClient; - * import com.google.cloud.datacatalog.v1beta1.Entry; - * import com.google.cloud.datacatalog.v1beta1.LookupEntryRequest; - */ - - public static void sampleLookupEntry() { - // TODO(developer): Replace these variables before running the sample. - String sqlName = "[SQL Resource Name]"; - sampleLookupEntry(sqlName); - } - - /** - * Lookup Entry using SQL resource - * - * @param sqlName The SQL name of the Google Cloud Platform resource the Data Catalog entry - * represents. Examples: - * bigquery.table.`bigquery-public-data`.new_york_taxi_trips.taxi_zone_geom - * pubsub.topic.`pubsub-public-data`.`taxirides-realtime` - */ - public static void sampleLookupEntry(String sqlName) { - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - LookupEntryRequest request = LookupEntryRequest.newBuilder().setSqlResource(sqlName).build(); - Entry response = dataCatalogClient.lookupEntry(request); - Entry entry = response; - System.out.printf("Entry name: %s\n", entry.getName()); - System.out.printf("Entry type: %s\n", entry.getType()); - System.out.printf("Linked resource: %s\n", entry.getLinkedResource()); - } catch (Exception exception) { - System.err.println("Failed to create the client due to: " + exception); - } - } - // [END datacatalog_lookup_entry_sql_resource] - - public static void main(String[] args) throws Exception { - Options options = new Options(); - options.addOption(Option.builder("").required(false).hasArg(true).longOpt("sql_name").build()); - - CommandLine cl = (new DefaultParser()).parse(options, args); - String sqlName = cl.getOptionValue("sql_name", "[SQL Resource Name]"); - - sampleLookupEntry(sqlName); - } -} diff --git a/datacatalog/generated/src/main/java/com/google/cloud/examples/datacatalog/v1beta1/DatacatalogSearch.java b/datacatalog/generated/src/main/java/com/google/cloud/examples/datacatalog/v1beta1/DatacatalogSearch.java deleted file mode 100644 index 1bd5aa5c297..00000000000 --- a/datacatalog/generated/src/main/java/com/google/cloud/examples/datacatalog/v1beta1/DatacatalogSearch.java +++ /dev/null @@ -1,112 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// DO NOT EDIT! This is a generated sample ("RequestPaged", "datacatalog_search") -// sample-metadata: -// title: -// description: Search Catalog -// usage: gradle run -PmainClass=com.google.cloud.examples.datacatalog.v1beta1.DatacatalogSearch [--args='[--include_project_id "[Google Cloud Project ID]"] [--include_gcp_public_datasets false] [--query "[String in search query syntax]"]'] - -package com.google.cloud.examples.datacatalog.v1beta1; - -import com.google.cloud.datacatalog.v1beta1.DataCatalogClient; -import com.google.cloud.datacatalog.v1beta1.SearchCatalogRequest; -import com.google.cloud.datacatalog.v1beta1.SearchCatalogRequest.Scope; -import com.google.cloud.datacatalog.v1beta1.SearchCatalogResult; -import java.util.Arrays; -import java.util.List; -import org.apache.commons.cli.CommandLine; -import org.apache.commons.cli.DefaultParser; -import org.apache.commons.cli.Option; -import org.apache.commons.cli.Options; - -public class DatacatalogSearch { - // [START datacatalog_search] - /* - * Please include the following imports to run this sample. - * - * import com.google.cloud.datacatalog.v1beta1.DataCatalogClient; - * import com.google.cloud.datacatalog.v1beta1.SearchCatalogRequest; - * import com.google.cloud.datacatalog.v1beta1.SearchCatalogRequest.Scope; - * import com.google.cloud.datacatalog.v1beta1.SearchCatalogResult; - * import java.util.Arrays; - * import java.util.List; - */ - - public static void sampleSearchCatalog() { - // TODO(developer): Replace these variables before running the sample. - String includeProjectId = "[Google Cloud Project ID]"; - boolean includeGcpPublicDatasets = false; - String query = "[String in search query syntax]"; - sampleSearchCatalog(includeProjectId, includeGcpPublicDatasets, query); - } - - /** - * Search Catalog - * - * @param includeProjectId Your Google Cloud project ID. - * @param includeGcpPublicDatasets If true, include Google Cloud Platform (GCP) public datasets in - * the search results. - * @param query Your query string. See: - * https://cloud.google.com/data-catalog/docs/how-to/search-reference Example: system=bigquery - * type=dataset - */ - public static void sampleSearchCatalog( - String includeProjectId, boolean includeGcpPublicDatasets, String query) { - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - List includeProjectIds = Arrays.asList(includeProjectId); - SearchCatalogRequest.Scope scope = - SearchCatalogRequest.Scope.newBuilder() - .addAllIncludeProjectIds(includeProjectIds) - .setIncludeGcpPublicDatasets(includeGcpPublicDatasets) - .build(); - SearchCatalogRequest request = - SearchCatalogRequest.newBuilder().setScope(scope).setQuery(query).build(); - for (SearchCatalogResult responseItem : - dataCatalogClient.searchCatalog(request).iterateAll()) { - System.out.printf("Result type: %s\n", responseItem.getSearchResultType()); - System.out.printf("Result subtype: %s\n", responseItem.getSearchResultSubtype()); - System.out.printf("Relative resource name: %s\n", responseItem.getRelativeResourceName()); - System.out.printf("Linked resource: %s\n\n", responseItem.getLinkedResource()); - } - } catch (Exception exception) { - System.err.println("Failed to create the client due to: " + exception); - } - } - // [END datacatalog_search] - - public static void main(String[] args) throws Exception { - Options options = new Options(); - options.addOption( - Option.builder("").required(false).hasArg(true).longOpt("include_project_id").build()); - options.addOption( - Option.builder("") - .required(false) - .hasArg(true) - .longOpt("include_gcp_public_datasets") - .build()); - options.addOption(Option.builder("").required(false).hasArg(true).longOpt("query").build()); - - CommandLine cl = (new DefaultParser()).parse(options, args); - String includeProjectId = cl.getOptionValue("include_project_id", "[Google Cloud Project ID]"); - boolean includeGcpPublicDatasets = - cl.getOptionValue("include_gcp_public_datasets") != null - ? Boolean.parseBoolean(cl.getOptionValue("include_gcp_public_datasets")) - : false; - String query = cl.getOptionValue("query", "[String in search query syntax]"); - - sampleSearchCatalog(includeProjectId, includeGcpPublicDatasets, query); - } -} From 275d875ab9d47df0af2961230322ea8c3ffcc1ac Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 13 Sep 2021 20:33:21 +0200 Subject: [PATCH 076/112] chore(deps): update dependency com.google.cloud:libraries-bom to v23 (#636) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | `22.0.0` -> `23.0.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/23.0.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/23.0.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/23.0.0/compatibility-slim/22.0.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/23.0.0/confidence-slim/22.0.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-datacatalog). --- datacatalog/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datacatalog/snippets/pom.xml b/datacatalog/snippets/pom.xml index 6708aa20d6c..757b815b856 100644 --- a/datacatalog/snippets/pom.xml +++ b/datacatalog/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 22.0.0 + 23.0.0 pom import From 30c6f64928af3a24a7b039f840d00b03443e8c5b Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 15 Sep 2021 23:56:42 +0200 Subject: [PATCH 077/112] deps: update dependency com.google.protobuf:protobuf-java-util to v3.18.0 (#649) --- datacatalog/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datacatalog/snippets/pom.xml b/datacatalog/snippets/pom.xml index 757b815b856..243ff0bb99f 100644 --- a/datacatalog/snippets/pom.xml +++ b/datacatalog/snippets/pom.xml @@ -47,7 +47,7 @@ com.google.protobuf protobuf-java-util - 3.17.3 + 3.18.0 junit From fcf44dbc0a53b9d3e045a95106301d3a08d7e9c3 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 1 Oct 2021 16:20:27 +0200 Subject: [PATCH 078/112] chore(deps): update dependency com.google.cloud:libraries-bom to v23.1.0 (#663) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | `23.0.0` -> `23.1.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/23.1.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/23.1.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/23.1.0/compatibility-slim/23.0.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/23.1.0/confidence-slim/23.0.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-datacatalog). --- datacatalog/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datacatalog/snippets/pom.xml b/datacatalog/snippets/pom.xml index 243ff0bb99f..488e9ececbf 100644 --- a/datacatalog/snippets/pom.xml +++ b/datacatalog/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 23.0.0 + 23.1.0 pom import From b8ff85209b24757e93389f756e267c59d9df8bd3 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 6 Oct 2021 03:21:36 +0200 Subject: [PATCH 079/112] deps: update dependency com.google.protobuf:protobuf-java-util to v3.18.1 (#664) --- datacatalog/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datacatalog/snippets/pom.xml b/datacatalog/snippets/pom.xml index 488e9ececbf..6fa867e4654 100644 --- a/datacatalog/snippets/pom.xml +++ b/datacatalog/snippets/pom.xml @@ -47,7 +47,7 @@ com.google.protobuf protobuf-java-util - 3.18.0 + 3.18.1 junit From 0e08754cb153e3b8a03f6b5a4f32e7d813339b22 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 27 Oct 2021 18:20:37 +0200 Subject: [PATCH 080/112] chore(deps): update dependency com.google.cloud:libraries-bom to v24 (#680) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | `23.1.0` -> `24.0.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/24.0.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/24.0.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/24.0.0/compatibility-slim/23.1.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/24.0.0/confidence-slim/23.1.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-datacatalog). --- datacatalog/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datacatalog/snippets/pom.xml b/datacatalog/snippets/pom.xml index 6fa867e4654..3d1d620c9a7 100644 --- a/datacatalog/snippets/pom.xml +++ b/datacatalog/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 23.1.0 + 24.0.0 pom import From 3b80e2bc8c2a9b9248c56a6d6660662f782f1c05 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 11 Nov 2021 01:26:18 +0100 Subject: [PATCH 081/112] deps: update dependency com.google.protobuf:protobuf-java-util to v3.19.1 (#676) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.protobuf:protobuf-java-util](https://developers.google.com/protocol-buffers/) ([source](https://togithub.com/protocolbuffers/protobuf)) | `3.18.1` -> `3.19.1` | [![age](https://badges.renovateapi.com/packages/maven/com.google.protobuf:protobuf-java-util/3.19.1/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.protobuf:protobuf-java-util/3.19.1/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.protobuf:protobuf-java-util/3.19.1/compatibility-slim/3.18.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.protobuf:protobuf-java-util/3.19.1/confidence-slim/3.18.1)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
protocolbuffers/protobuf ### [`v3.19.1`](https://togithub.com/protocolbuffers/protobuf/releases/v3.19.1) [Compare Source](https://togithub.com/protocolbuffers/protobuf/compare/v3.19.0...v3.19.1) ### Bazel - Ensure that release archives contain everything needed for Bazel ([#​9131](https://togithub.com/protocolbuffers/protobuf/issues/9131)) - Align dependency handling with Bazel best practices ([#​9165](https://togithub.com/protocolbuffers/protobuf/issues/9165)) ### JavaScript - Fix `ReferenceError: window is not defined` when getting the global object ([#​9156](https://togithub.com/protocolbuffers/protobuf/issues/9156)) ### Ruby - Fix memory leak in MessageClass.encode ([#​9150](https://togithub.com/protocolbuffers/protobuf/issues/9150)) ### [`v3.19.0`](https://togithub.com/protocolbuffers/protobuf/releases/v3.19.0) [Compare Source](https://togithub.com/protocolbuffers/protobuf/compare/v3.18.1...v3.19.0) ### C++ - Make proto2::Message::DiscardUnknownFields() non-virtual - Separate RepeatedPtrField into its own header file - For default floating point values of 0, consider all bits significant - cmake: support `MSVC_RUNTIME_LIBRARY` property ([#​8851](https://togithub.com/protocolbuffers/protobuf/issues/8851)) - Fix shadowing warnings ([#​8926](https://togithub.com/protocolbuffers/protobuf/issues/8926)) - Fix for issue [#​8484](https://togithub.com/protocolbuffers/protobuf/issues/8484), constant initialization doesn't compile in msvc clang-cl environment ([#​8993](https://togithub.com/protocolbuffers/protobuf/issues/8993)) - Fix build on AIX and SunOS ([#​8373](https://togithub.com/protocolbuffers/protobuf/issues/8373)) ([#​9065](https://togithub.com/protocolbuffers/protobuf/issues/9065)) - Add Android stlport and default toolchains to BUILD. ([#​8290](https://togithub.com/protocolbuffers/protobuf/issues/8290)) ### Java - For default floating point values of 0, consider all bits significant - Annotate `//java/com/google/protobuf/util/...` with nullness annotations - Use ArrayList copy constructor ([#​7853](https://togithub.com/protocolbuffers/protobuf/issues/7853)) ### Kotlin - Switch Kotlin proto DSLs to be implemented with inline value classes - Fixing inlining and deprecation for repeated string fields ([#​9120](https://togithub.com/protocolbuffers/protobuf/issues/9120)) ### Python - Proto2 DecodeError now includes message name in error message - Make MessageToDict convert map keys to strings ([#​8122](https://togithub.com/protocolbuffers/protobuf/issues/8122)) - Add python-requires in setup.py ([#​8989](https://togithub.com/protocolbuffers/protobuf/issues/8989)) - Add python 3.10 ([#​9034](https://togithub.com/protocolbuffers/protobuf/issues/9034)) ### JavaScript - Skip exports if not available by CommonJS ([#​8856](https://togithub.com/protocolbuffers/protobuf/issues/8856)) - JS: Comply with CSP no-unsafe-eval. ([#​8864](https://togithub.com/protocolbuffers/protobuf/issues/8864)) ### PHP - Added "object" as a reserved name for PHP ([#​8962](https://togithub.com/protocolbuffers/protobuf/issues/8962)) ### Ruby - Override Map.clone to use Map's dup method ([#​7938](https://togithub.com/protocolbuffers/protobuf/issues/7938)) - Ruby: build extensions for arm64-darwin ([#​8232](https://togithub.com/protocolbuffers/protobuf/issues/8232)) - Add class method Timestamp.from_time to ruby well known types ([#​8562](https://togithub.com/protocolbuffers/protobuf/issues/8562)) - Adopt pure ruby DSL implementation for JRuby ([#​9047](https://togithub.com/protocolbuffers/protobuf/issues/9047)) - Add size to Map class ([#​8068](https://togithub.com/protocolbuffers/protobuf/issues/8068)) - Fix for descriptor_pb.rb: google/protobuf should be required first ([#​9121](https://togithub.com/protocolbuffers/protobuf/issues/9121)) ### C\# - Correctly set ExtensionRegistry when parsing with MessageParser, but using an already existing CodedInputStream ([#​7246](https://togithub.com/protocolbuffers/protobuf/issues/7246)) - \[C#] Make FieldDescriptor propertyName public ([#​7642](https://togithub.com/protocolbuffers/protobuf/issues/7642))
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-datacatalog). --- datacatalog/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datacatalog/snippets/pom.xml b/datacatalog/snippets/pom.xml index 3d1d620c9a7..2b688c9b11e 100644 --- a/datacatalog/snippets/pom.xml +++ b/datacatalog/snippets/pom.xml @@ -47,7 +47,7 @@ com.google.protobuf protobuf-java-util - 3.18.1 + 3.19.1 junit From a10e12e86b3e8f0f7067baa9b03000ee8b5b7ebb Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 7 Dec 2021 00:16:29 +0100 Subject: [PATCH 082/112] chore(deps): update dependency com.google.cloud.samples:shared-configuration to v1.2.0 (#697) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud.samples:shared-configuration](https://togithub.com/GoogleCloudPlatform/java-repo-tools) | `1.0.23` -> `1.2.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud.samples:shared-configuration/1.2.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud.samples:shared-configuration/1.2.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud.samples:shared-configuration/1.2.0/compatibility-slim/1.0.23)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud.samples:shared-configuration/1.2.0/confidence-slim/1.0.23)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
GoogleCloudPlatform/java-repo-tools ### [`v1.2.0`](https://togithub.com/GoogleCloudPlatform/java-repo-tools/compare/v1.0.24...v1.2.0) [Compare Source](https://togithub.com/GoogleCloudPlatform/java-repo-tools/compare/v1.0.24...v1.2.0) ### [`v1.0.24`](https://togithub.com/GoogleCloudPlatform/java-repo-tools/compare/v1.0.23...v1.0.24) [Compare Source](https://togithub.com/GoogleCloudPlatform/java-repo-tools/compare/v1.0.23...v1.0.24)
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-datacatalog). --- datacatalog/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datacatalog/snippets/pom.xml b/datacatalog/snippets/pom.xml index 2b688c9b11e..1cc558fc526 100644 --- a/datacatalog/snippets/pom.xml +++ b/datacatalog/snippets/pom.xml @@ -14,7 +14,7 @@ com.google.cloud.samples shared-configuration - 1.0.23 + 1.2.0 From e31f13536359bc0a37d4a9b4929e609587f44193 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 9 Dec 2021 00:10:23 +0100 Subject: [PATCH 083/112] chore(deps): update dependency com.google.cloud:libraries-bom to v24.1.0 (#712) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | `24.0.0` -> `24.1.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/24.1.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/24.1.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/24.1.0/compatibility-slim/24.0.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/24.1.0/confidence-slim/24.0.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-datacatalog). --- datacatalog/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datacatalog/snippets/pom.xml b/datacatalog/snippets/pom.xml index 1cc558fc526..5f36f5e0435 100644 --- a/datacatalog/snippets/pom.xml +++ b/datacatalog/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 24.0.0 + 24.1.0 pom import From 43b446c57f672d38571a6bf9605403342b007282 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 28 Dec 2021 22:08:13 +0100 Subject: [PATCH 084/112] chore(deps): update dependency com.google.cloud:libraries-bom to v24.1.1 (#713) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | `24.1.0` -> `24.1.1` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/24.1.1/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/24.1.1/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/24.1.1/compatibility-slim/24.1.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/24.1.1/confidence-slim/24.1.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-datacatalog). --- datacatalog/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datacatalog/snippets/pom.xml b/datacatalog/snippets/pom.xml index 5f36f5e0435..df55ad9cb8e 100644 --- a/datacatalog/snippets/pom.xml +++ b/datacatalog/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 24.1.0 + 24.1.1 pom import From 4b23f98e7249a5a4bbf40ed9d4af7ba405c40a13 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 7 Jan 2022 16:48:27 +0100 Subject: [PATCH 085/112] chore(deps): update dependency com.google.cloud:libraries-bom to v24.1.2 (#719) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | `24.1.1` -> `24.1.2` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/24.1.2/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/24.1.2/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/24.1.2/compatibility-slim/24.1.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/24.1.2/confidence-slim/24.1.1)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-datacatalog). --- datacatalog/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datacatalog/snippets/pom.xml b/datacatalog/snippets/pom.xml index df55ad9cb8e..9e90c84c862 100644 --- a/datacatalog/snippets/pom.xml +++ b/datacatalog/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 24.1.1 + 24.1.2 pom import From 95fc6cd5f32a6364d06ac663b8059cb9f71891ef Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 7 Jan 2022 19:19:36 +0100 Subject: [PATCH 086/112] deps: update dependency com.google.protobuf:protobuf-java-util to v3.19.2 (#718) --- datacatalog/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datacatalog/snippets/pom.xml b/datacatalog/snippets/pom.xml index 9e90c84c862..87c533fd52f 100644 --- a/datacatalog/snippets/pom.xml +++ b/datacatalog/snippets/pom.xml @@ -47,7 +47,7 @@ com.google.protobuf protobuf-java-util - 3.19.1 + 3.19.2 junit From 6512550a9b619e81e0c664c226b47f8200648b44 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 18 Jan 2022 19:58:22 +0100 Subject: [PATCH 087/112] chore(deps): update dependency com.google.cloud:libraries-bom to v24.2.0 (#728) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | `24.1.2` -> `24.2.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/24.2.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/24.2.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/24.2.0/compatibility-slim/24.1.2)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/24.2.0/confidence-slim/24.1.2)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-datacatalog). --- datacatalog/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datacatalog/snippets/pom.xml b/datacatalog/snippets/pom.xml index 87c533fd52f..a2f29a1ffda 100644 --- a/datacatalog/snippets/pom.xml +++ b/datacatalog/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 24.1.2 + 24.2.0 pom import From a2804636643b51583fa4b2d632774caf7fef90bc Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 20 Jan 2022 02:34:56 +0100 Subject: [PATCH 088/112] deps: update dependency com.google.protobuf:protobuf-java-util to v3.19.3 (#729) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * deps: update dependency com.google.protobuf:protobuf-java-util to v3.19.3 * 🦉 Updates from OwlBot See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot --- datacatalog/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datacatalog/snippets/pom.xml b/datacatalog/snippets/pom.xml index a2f29a1ffda..0b8d433457e 100644 --- a/datacatalog/snippets/pom.xml +++ b/datacatalog/snippets/pom.xml @@ -47,7 +47,7 @@ com.google.protobuf protobuf-java-util - 3.19.2 + 3.19.3 junit From 91a0b7e67efea608aa4e22eea987152d55f1e9a5 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 8 Feb 2022 23:00:55 +0100 Subject: [PATCH 089/112] chore(deps): update dependency com.google.cloud:libraries-bom to v24.3.0 (#747) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://cloud.google.com/java/docs/bom) ([source](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java)) | `24.2.0` -> `24.3.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/24.3.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/24.3.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/24.3.0/compatibility-slim/24.2.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/24.3.0/confidence-slim/24.2.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-datacatalog). --- datacatalog/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datacatalog/snippets/pom.xml b/datacatalog/snippets/pom.xml index 0b8d433457e..71bbb1a5511 100644 --- a/datacatalog/snippets/pom.xml +++ b/datacatalog/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 24.2.0 + 24.3.0 pom import From 41871e801e3bba3af148b3eb9b0bfb03b15bd314 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 17 Feb 2022 19:39:36 +0100 Subject: [PATCH 090/112] deps: update dependency com.google.protobuf:protobuf-java-util to v3.19.4 (#737) --- datacatalog/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datacatalog/snippets/pom.xml b/datacatalog/snippets/pom.xml index 71bbb1a5511..ccb016429fe 100644 --- a/datacatalog/snippets/pom.xml +++ b/datacatalog/snippets/pom.xml @@ -47,7 +47,7 @@ com.google.protobuf protobuf-java-util - 3.19.3 + 3.19.4 junit From 4e10b71278c9f98db73d28c5161c8a1b184386fa Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 3 Mar 2022 02:56:25 +0100 Subject: [PATCH 091/112] chore(deps): update dependency com.google.cloud:libraries-bom to v24.4.0 (#761) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://cloud.google.com/java/docs/bom) ([source](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java)) | `24.3.0` -> `24.4.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/24.4.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/24.4.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/24.4.0/compatibility-slim/24.3.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/24.4.0/confidence-slim/24.3.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-datacatalog). --- datacatalog/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datacatalog/snippets/pom.xml b/datacatalog/snippets/pom.xml index ccb016429fe..b7251e87f96 100644 --- a/datacatalog/snippets/pom.xml +++ b/datacatalog/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 24.3.0 + 24.4.0 pom import From 19d6152dfda03020e02b616d10366ea139786dd6 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 14 Mar 2022 20:04:22 +0100 Subject: [PATCH 092/112] chore(deps): update dependency com.google.cloud:libraries-bom to v25 (#767) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://cloud.google.com/java/docs/bom) ([source](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java)) | `24.4.0` -> `25.0.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/25.0.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/25.0.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/25.0.0/compatibility-slim/24.4.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/25.0.0/confidence-slim/24.4.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-datacatalog). --- datacatalog/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datacatalog/snippets/pom.xml b/datacatalog/snippets/pom.xml index b7251e87f96..3ccdc185219 100644 --- a/datacatalog/snippets/pom.xml +++ b/datacatalog/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 24.4.0 + 25.0.0 pom import From f9269845e918d3772fccd0abfc072c93c25050df Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 1 Apr 2022 18:34:32 +0200 Subject: [PATCH 093/112] chore(deps): update dependency com.google.cloud:libraries-bom to v25.1.0 (#776) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://cloud.google.com/java/docs/bom) ([source](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java)) | `25.0.0` -> `25.1.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/25.1.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/25.1.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/25.1.0/compatibility-slim/25.0.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/25.1.0/confidence-slim/25.0.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-datacatalog). --- datacatalog/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datacatalog/snippets/pom.xml b/datacatalog/snippets/pom.xml index 3ccdc185219..31383dddf11 100644 --- a/datacatalog/snippets/pom.xml +++ b/datacatalog/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 25.0.0 + 25.1.0 pom import From c5f772e9c5cfc63ff393ffe60d7fd5fef3ba92fe Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 7 Apr 2022 18:12:27 +0200 Subject: [PATCH 094/112] deps: update dependency com.google.protobuf:protobuf-java-util to v3.20.0 (#777) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.protobuf:protobuf-java-util](https://developers.google.com/protocol-buffers/) ([source](https://togithub.com/protocolbuffers/protobuf)) | `3.19.4` -> `3.20.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.protobuf:protobuf-java-util/3.20.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.protobuf:protobuf-java-util/3.20.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.protobuf:protobuf-java-util/3.20.0/compatibility-slim/3.19.4)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.protobuf:protobuf-java-util/3.20.0/confidence-slim/3.19.4)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
protocolbuffers/protobuf ### [`v3.20.0`](https://togithub.com/protocolbuffers/protobuf/releases/v3.20.0) [Compare Source](https://togithub.com/protocolbuffers/protobuf/compare/v3.19.4...v3.20.0) 2022-03-25 version 3.20.0 (C++/Java/Python/PHP/Objective-C/C#/Ruby/JavaScript) ### C++ - Add option to use external GTest in CMake ([#​8736](https://togithub.com/protocolbuffers/protobuf/issues/8736)) - cmake: Set correct sonames for libprotobuf-lite.so and libprotoc.so ([#​8635](https://togithub.com/protocolbuffers/protobuf/issues/8635)) ([#​9529](https://togithub.com/protocolbuffers/protobuf/issues/9529)) ### Java - Revert "Standardize on Array copyOf" ([#​9400](https://togithub.com/protocolbuffers/protobuf/issues/9400)) - Resolve more java field accessor name conflicts ([#​8198](https://togithub.com/protocolbuffers/protobuf/issues/8198)) ### Python - Pin multibuild scripts to get manylinux1 wheels back ([#​9216](https://togithub.com/protocolbuffers/protobuf/issues/9216)) - Dropped support for Python < 3.7 ([#​9480](https://togithub.com/protocolbuffers/protobuf/issues/9480)) ### PHP - fix: \[PHP] add missing reserved classnames ([#​9458](https://togithub.com/protocolbuffers/protobuf/issues/9458)) ### Ruby - Dropped Ruby 2.3 and 2.4 support for CI and releases. ([#​9311](https://togithub.com/protocolbuffers/protobuf/issues/9311)) - \[Ruby] Message.decode/encode: Add max_recursion_depth option ([#​9218](https://togithub.com/protocolbuffers/protobuf/issues/9218)) - Ruby: rename max_recursion_depth to recursion_limit ([#​9486](https://togithub.com/protocolbuffers/protobuf/issues/9486)) - Fix conversion of singleton classes in Ruby ([#​9342](https://togithub.com/protocolbuffers/protobuf/issues/9342)) - Suppress warning for intentional circular require ([#​9556](https://togithub.com/protocolbuffers/protobuf/issues/9556)) - \[Ruby] allow encode json options to be an object that responds to to_hash ([#​9513](https://togithub.com/protocolbuffers/protobuf/issues/9513)) ### Other - \[C#] Fix trim warnings ([#​9182](https://togithub.com/protocolbuffers/protobuf/issues/9182)) - Add protoc-gen-go-svc to options.md ([#​9280](https://togithub.com/protocolbuffers/protobuf/issues/9280)) - Fixes NullReferenceException when accessing FieldDescriptor.IsPacked ([#​9430](https://togithub.com/protocolbuffers/protobuf/issues/9430)) - Add ToProto() method to all C# descriptor classes ([#​9426](https://togithub.com/protocolbuffers/protobuf/issues/9426)) - Add cmake option `protobuf_INSTALL` to not install files ([#​7123](https://togithub.com/protocolbuffers/protobuf/issues/7123)) - \[CMake] Allow custom plugin options e.g. to generate mocks ([#​9105](https://togithub.com/protocolbuffers/protobuf/issues/9105)) - Add an option to preserve proto names in JsonFormatter ([#​6307](https://togithub.com/protocolbuffers/protobuf/issues/6307)) - Add test scope to kotlin-test for protobuf-kotlin-lite ([#​9518](https://togithub.com/protocolbuffers/protobuf/issues/9518)) - Add prefix_to_proto_package_mappings_path ObjC option. ([#​9498](https://togithub.com/protocolbuffers/protobuf/issues/9498)) - \[ObjC] Rename `proto_package_to_prefix_mappings_path` to `package_to_prefix_mappings_path`. ([#​9552](https://togithub.com/protocolbuffers/protobuf/issues/9552)) - cmake: Use linker version scripts ([#​9545](https://togithub.com/protocolbuffers/protobuf/issues/9545)) - Add a generation option to control use of forward declarations in headers. ([#​9568](https://togithub.com/protocolbuffers/protobuf/issues/9568)) - \[C#] fix parse failure for extensions with large field numbers ([#​9591](https://togithub.com/protocolbuffers/protobuf/issues/9591))
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-datacatalog). --- datacatalog/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datacatalog/snippets/pom.xml b/datacatalog/snippets/pom.xml index 31383dddf11..c765fe76712 100644 --- a/datacatalog/snippets/pom.xml +++ b/datacatalog/snippets/pom.xml @@ -47,7 +47,7 @@ com.google.protobuf protobuf-java-util - 3.19.4 + 3.20.0 junit From fad5fc937e1806128bf57391284e4fe0e2e491f9 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 22 Apr 2022 16:12:35 +0200 Subject: [PATCH 095/112] deps: update dependency com.google.protobuf:protobuf-java-util to v3.20.1 (#791) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.protobuf:protobuf-java-util](https://developers.google.com/protocol-buffers/) ([source](https://togithub.com/protocolbuffers/protobuf)) | `3.20.0` -> `3.20.1` | [![age](https://badges.renovateapi.com/packages/maven/com.google.protobuf:protobuf-java-util/3.20.1/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.protobuf:protobuf-java-util/3.20.1/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.protobuf:protobuf-java-util/3.20.1/compatibility-slim/3.20.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.protobuf:protobuf-java-util/3.20.1/confidence-slim/3.20.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
protocolbuffers/protobuf ### [`v3.20.1`](https://togithub.com/protocolbuffers/protobuf/releases/v3.20.1) [Compare Source](https://togithub.com/protocolbuffers/protobuf/compare/v3.20.0...v3.20.1) ##### PHP - Fix building packaged PHP extension ([#​9727](https://togithub.com/protocolbuffers/protobuf/issues/9727)) - Fixed composer.json to only advertise compatibility with PHP 7.0+. ([#​9819](https://togithub.com/protocolbuffers/protobuf/issues/9819)) ##### Ruby - Disable the aarch64 build on macOS until it can be fixed. ([#​9816](https://togithub.com/protocolbuffers/protobuf/issues/9816)) ##### Other - Fix versioning issues in 3.20.0
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-datacatalog). --- datacatalog/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datacatalog/snippets/pom.xml b/datacatalog/snippets/pom.xml index c765fe76712..4e2e6a2c935 100644 --- a/datacatalog/snippets/pom.xml +++ b/datacatalog/snippets/pom.xml @@ -47,7 +47,7 @@ com.google.protobuf protobuf-java-util - 3.20.0 + 3.20.1 junit From d9ab73d4d6b64ebc0dfa7c6f64a42244e745c9f6 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 27 Apr 2022 17:34:32 +0200 Subject: [PATCH 096/112] chore(deps): update dependency com.google.cloud:libraries-bom to v25.2.0 (#792) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://cloud.google.com/java/docs/bom) ([source](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java)) | `25.1.0` -> `25.2.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/25.2.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/25.2.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/25.2.0/compatibility-slim/25.1.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/25.2.0/confidence-slim/25.1.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-datacatalog). --- datacatalog/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datacatalog/snippets/pom.xml b/datacatalog/snippets/pom.xml index 4e2e6a2c935..8a5df3a9b8a 100644 --- a/datacatalog/snippets/pom.xml +++ b/datacatalog/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 25.1.0 + 25.2.0 pom import From 3b2f6cd98f110997b84993a07ed03c47d99f3f34 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 16 May 2022 19:36:16 +0200 Subject: [PATCH 097/112] chore(deps): update dependency com.google.cloud:libraries-bom to v25.3.0 (#796) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://cloud.google.com/java/docs/bom) ([source](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java)) | `25.2.0` -> `25.3.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/25.3.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/25.3.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/25.3.0/compatibility-slim/25.2.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/25.3.0/confidence-slim/25.2.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. ⚠ **Warning**: custom changes will be lost. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-datacatalog). --- datacatalog/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datacatalog/snippets/pom.xml b/datacatalog/snippets/pom.xml index 8a5df3a9b8a..0062082fbd5 100644 --- a/datacatalog/snippets/pom.xml +++ b/datacatalog/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 25.2.0 + 25.3.0 pom import From 149534dbff8b8a9a8281085e95acd5814745cee8 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 26 May 2022 16:36:15 +0200 Subject: [PATCH 098/112] deps: update dependency com.google.protobuf:protobuf-java-util to v3.21.0 (#804) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.protobuf:protobuf-java-util](https://developers.google.com/protocol-buffers/) ([source](https://togithub.com/protocolbuffers/protobuf)) | `3.20.1` -> `3.21.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.protobuf:protobuf-java-util/3.21.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.protobuf:protobuf-java-util/3.21.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.protobuf:protobuf-java-util/3.21.0/compatibility-slim/3.20.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.protobuf:protobuf-java-util/3.21.0/confidence-slim/3.20.1)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
protocolbuffers/protobuf ### [`v3.21.0`](https://togithub.com/protocolbuffers/protobuf/compare/v3.20.1...v3.21.0) [Compare Source](https://togithub.com/protocolbuffers/protobuf/compare/v3.20.1...v3.21.0)
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-datacatalog). --- datacatalog/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datacatalog/snippets/pom.xml b/datacatalog/snippets/pom.xml index 0062082fbd5..e052c127b6f 100644 --- a/datacatalog/snippets/pom.xml +++ b/datacatalog/snippets/pom.xml @@ -47,7 +47,7 @@ com.google.protobuf protobuf-java-util - 3.20.1 + 3.21.0 junit From 2866f8916b8f5a85cd1316bdf8543cf689cc882b Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 6 Jun 2022 19:10:11 +0200 Subject: [PATCH 099/112] deps: update dependency com.google.protobuf:protobuf-java-util to v3.21.1 (#808) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.protobuf:protobuf-java-util](https://developers.google.com/protocol-buffers/) ([source](https://togithub.com/protocolbuffers/protobuf)) | `3.21.0` -> `3.21.1` | [![age](https://badges.renovateapi.com/packages/maven/com.google.protobuf:protobuf-java-util/3.21.1/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.protobuf:protobuf-java-util/3.21.1/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.protobuf:protobuf-java-util/3.21.1/compatibility-slim/3.21.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.protobuf:protobuf-java-util/3.21.1/confidence-slim/3.21.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
protocolbuffers/protobuf ### [`v3.21.1`](https://togithub.com/protocolbuffers/protobuf/compare/v3.21.0...v3.21.1) [Compare Source](https://togithub.com/protocolbuffers/protobuf/compare/v3.21.0...v3.21.1)
--- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-datacatalog). --- datacatalog/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datacatalog/snippets/pom.xml b/datacatalog/snippets/pom.xml index e052c127b6f..09d53bbaeca 100644 --- a/datacatalog/snippets/pom.xml +++ b/datacatalog/snippets/pom.xml @@ -47,7 +47,7 @@ com.google.protobuf protobuf-java-util - 3.21.0 + 3.21.1 junit From a57d155b1646bf4753b8d23a28c8276bd18b5c5a Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 6 Jun 2022 19:18:20 +0200 Subject: [PATCH 100/112] chore(deps): update dependency com.google.cloud:libraries-bom to v25.4.0 (#809) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://cloud.google.com/java/docs/bom) ([source](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java)) | `25.3.0` -> `25.4.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/25.4.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/25.4.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/25.4.0/compatibility-slim/25.3.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/25.4.0/confidence-slim/25.3.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. ⚠ **Warning**: custom changes will be lost. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-datacatalog). --- datacatalog/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datacatalog/snippets/pom.xml b/datacatalog/snippets/pom.xml index 09d53bbaeca..b7d17860320 100644 --- a/datacatalog/snippets/pom.xml +++ b/datacatalog/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 25.3.0 + 25.4.0 pom import From 3fd3524bc75743c9c5b4039ceda9b72157128554 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 27 Jun 2022 21:06:20 +0200 Subject: [PATCH 101/112] deps: update dependency com.google.protobuf:protobuf-java-util to v3.21.2 (#821) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.protobuf:protobuf-java-util](https://developers.google.com/protocol-buffers/) ([source](https://togithub.com/protocolbuffers/protobuf)) | `3.21.1` -> `3.21.2` | [![age](https://badges.renovateapi.com/packages/maven/com.google.protobuf:protobuf-java-util/3.21.2/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.protobuf:protobuf-java-util/3.21.2/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.protobuf:protobuf-java-util/3.21.2/compatibility-slim/3.21.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.protobuf:protobuf-java-util/3.21.2/confidence-slim/3.21.1)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about these updates again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. ⚠ **Warning**: custom changes will be lost. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-datacatalog). --- datacatalog/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datacatalog/snippets/pom.xml b/datacatalog/snippets/pom.xml index b7d17860320..60e7104918f 100644 --- a/datacatalog/snippets/pom.xml +++ b/datacatalog/snippets/pom.xml @@ -47,7 +47,7 @@ com.google.protobuf protobuf-java-util - 3.21.1 + 3.21.2 junit From cce14c5d89ad245431d4af0ee09bf6620d91d472 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 13 Jul 2022 21:10:29 +0200 Subject: [PATCH 102/112] chore(deps): update dependency com.google.cloud:libraries-bom to v26 (#832) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(deps): update dependency com.google.cloud:libraries-bom to v26 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot --- datacatalog/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datacatalog/snippets/pom.xml b/datacatalog/snippets/pom.xml index 60e7104918f..f135b11fd50 100644 --- a/datacatalog/snippets/pom.xml +++ b/datacatalog/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 25.4.0 + 26.0.0 pom import From 0a0dc88e2473bfc557e7877fdb164e69319021be Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 1 Aug 2022 23:00:35 +0200 Subject: [PATCH 103/112] deps: update dependency com.google.protobuf:protobuf-java-util to v3.21.4 (#842) --- datacatalog/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datacatalog/snippets/pom.xml b/datacatalog/snippets/pom.xml index f135b11fd50..a0c01586bae 100644 --- a/datacatalog/snippets/pom.xml +++ b/datacatalog/snippets/pom.xml @@ -47,7 +47,7 @@ com.google.protobuf protobuf-java-util - 3.21.2 + 3.21.4 junit From 58a2d467571cfff24687418bdee69410359f9bfc Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 16 Aug 2022 18:16:15 +0200 Subject: [PATCH 104/112] deps: update dependency com.google.protobuf:protobuf-java-util to v3.21.5 (#845) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.protobuf:protobuf-java-util](https://developers.google.com/protocol-buffers/) ([source](https://togithub.com/protocolbuffers/protobuf)) | `3.21.4` -> `3.21.5` | [![age](https://badges.renovateapi.com/packages/maven/com.google.protobuf:protobuf-java-util/3.21.5/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.protobuf:protobuf-java-util/3.21.5/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.protobuf:protobuf-java-util/3.21.5/compatibility-slim/3.21.4)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.protobuf:protobuf-java-util/3.21.5/confidence-slim/3.21.4)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
protocolbuffers/protobuf ### [`v3.21.5`](https://togithub.com/protocolbuffers/protobuf/compare/v3.21.4...v3.21.5) [Compare Source](https://togithub.com/protocolbuffers/protobuf/compare/v3.21.4...v3.21.5)
--- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-datacatalog). --- datacatalog/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datacatalog/snippets/pom.xml b/datacatalog/snippets/pom.xml index a0c01586bae..14d08a37b50 100644 --- a/datacatalog/snippets/pom.xml +++ b/datacatalog/snippets/pom.xml @@ -47,7 +47,7 @@ com.google.protobuf protobuf-java-util - 3.21.4 + 3.21.5 junit From 09291089a9e76d2098f9ad85662f16e827dba8f0 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 16 Aug 2022 19:42:19 +0200 Subject: [PATCH 105/112] chore(deps): update dependency com.google.cloud:libraries-bom to v26.1.0 (#849) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://cloud.google.com/java/docs/bom) ([source](https://togithub.com/googleapis/java-cloud-bom)) | `26.0.0` -> `26.1.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/26.1.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/26.1.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/26.1.0/compatibility-slim/26.0.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/26.1.0/confidence-slim/26.0.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. ⚠ **Warning**: custom changes will be lost. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-datacatalog). --- datacatalog/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datacatalog/snippets/pom.xml b/datacatalog/snippets/pom.xml index 14d08a37b50..d956fabda37 100644 --- a/datacatalog/snippets/pom.xml +++ b/datacatalog/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 26.0.0 + 26.1.0 pom import From 3259f1d5ebe6aab8874ed0cc1a95945954092487 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 31 Aug 2022 22:42:13 +0200 Subject: [PATCH 106/112] chore(deps): update dependency com.google.cloud:libraries-bom to v26.1.1 (#854) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://cloud.google.com/java/docs/bom) ([source](https://togithub.com/googleapis/java-cloud-bom)) | `26.1.0` -> `26.1.1` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/26.1.1/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/26.1.1/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/26.1.1/compatibility-slim/26.1.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/26.1.1/confidence-slim/26.1.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. ⚠ **Warning**: custom changes will be lost. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-datacatalog). --- datacatalog/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datacatalog/snippets/pom.xml b/datacatalog/snippets/pom.xml index d956fabda37..00cd0c314cb 100644 --- a/datacatalog/snippets/pom.xml +++ b/datacatalog/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 26.1.0 + 26.1.1 pom import From 8a017e38704689e1ea45d9f2f0a7695c374f1954 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 20 Sep 2022 16:02:15 +0200 Subject: [PATCH 107/112] deps: update dependency com.google.protobuf:protobuf-java-util to v3.21.6 (#860) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.protobuf:protobuf-java-util](https://developers.google.com/protocol-buffers/) ([source](https://togithub.com/protocolbuffers/protobuf)) | `3.21.5` -> `3.21.6` | [![age](https://badges.renovateapi.com/packages/maven/com.google.protobuf:protobuf-java-util/3.21.6/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.protobuf:protobuf-java-util/3.21.6/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.protobuf:protobuf-java-util/3.21.6/compatibility-slim/3.21.5)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.protobuf:protobuf-java-util/3.21.6/confidence-slim/3.21.5)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
protocolbuffers/protobuf ### [`v3.21.6`](https://togithub.com/protocolbuffers/protobuf/compare/v3.21.5...v3.21.6) [Compare Source](https://togithub.com/protocolbuffers/protobuf/compare/v3.21.5...v3.21.6)
--- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-datacatalog). --- datacatalog/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datacatalog/snippets/pom.xml b/datacatalog/snippets/pom.xml index 00cd0c314cb..ee6e30c87e3 100644 --- a/datacatalog/snippets/pom.xml +++ b/datacatalog/snippets/pom.xml @@ -47,7 +47,7 @@ com.google.protobuf protobuf-java-util - 3.21.5 + 3.21.6 junit From 22aa5cbcb86099da386179ce8e9e2110b5955522 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 20 Sep 2022 17:32:21 +0200 Subject: [PATCH 108/112] chore(deps): update dependency com.google.cloud:libraries-bom to v26.1.2 (#865) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://cloud.google.com/java/docs/bom) ([source](https://togithub.com/googleapis/java-cloud-bom)) | `26.1.1` -> `26.1.2` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/26.1.2/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/26.1.2/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/26.1.2/compatibility-slim/26.1.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/26.1.2/confidence-slim/26.1.1)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. ⚠ **Warning**: custom changes will be lost. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-datacatalog). --- datacatalog/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datacatalog/snippets/pom.xml b/datacatalog/snippets/pom.xml index ee6e30c87e3..ba8728dcaae 100644 --- a/datacatalog/snippets/pom.xml +++ b/datacatalog/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 26.1.1 + 26.1.2 pom import From 4506d427e530b6a993cef10f60020c16f1828d11 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 30 Sep 2022 23:56:42 +0200 Subject: [PATCH 109/112] deps: update dependency com.google.protobuf:protobuf-java-util to v3.21.7 (#891) --- datacatalog/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datacatalog/snippets/pom.xml b/datacatalog/snippets/pom.xml index ba8728dcaae..6fb86fb866e 100644 --- a/datacatalog/snippets/pom.xml +++ b/datacatalog/snippets/pom.xml @@ -47,7 +47,7 @@ com.google.protobuf protobuf-java-util - 3.21.6 + 3.21.7 junit From ffae81e3ec0bbc686133c337adb4f877aa859ca3 Mon Sep 17 00:00:00 2001 From: Charlie Yu Date: Fri, 11 Nov 2022 15:43:52 -0500 Subject: [PATCH 110/112] Update pom.xml --- datacatalog/snippets/pom.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/datacatalog/snippets/pom.xml b/datacatalog/snippets/pom.xml index 6fb86fb866e..982164a5da3 100644 --- a/datacatalog/snippets/pom.xml +++ b/datacatalog/snippets/pom.xml @@ -1,11 +1,11 @@ 4.0.0 - com.google.cloud + com.example.datacatalog datacatalog-snippets jar Google Data Catalog Snippets - https://github.com/googleapis/java-datacatalog + https://github.com/GoogleCloudPlatform/java-docs-samples/tree/main/datacatalog From 36d2b96d7195bf1e245828ce168950ce881d3dd1 Mon Sep 17 00:00:00 2001 From: Charlie Yu Date: Wed, 16 Nov 2022 13:57:54 -0500 Subject: [PATCH 112/112] temporarily removing test files for quota --- .../example/datacatalog/DeleteEntryIT.java | 120 ----------------- .../datacatalog/DeleteTagTemplateIT.java | 100 -------------- .../example/datacatalog/GetEntryGroupIT.java | 87 ------------- .../com/example/datacatalog/GetEntryIT.java | 121 ----------------- .../example/datacatalog/GetTagTemplateIT.java | 103 --------------- .../GrantTagTemplateUserRoleIT.java | 117 ----------------- .../example/datacatalog/ListEntriesIT.java | 121 ----------------- .../datacatalog/ListEntryGroupsIT.java | 87 ------------- .../example/datacatalog/LookupEntryTests.java | 81 ------------ .../com/example/datacatalog/QuickstartIT.java | 91 ------------- .../example/datacatalog/SearchAssetsIT.java | 75 ----------- .../datacatalog/UpdateEntryGroupIT.java | 90 ------------- .../example/datacatalog/UpdateEntryIT.java | 123 ------------------ .../datacatalog/UpdateTagTemplateIT.java | 108 --------------- 14 files changed, 1424 deletions(-) delete mode 100644 datacatalog/snippets/src/test/java/com/example/datacatalog/DeleteEntryIT.java delete mode 100644 datacatalog/snippets/src/test/java/com/example/datacatalog/DeleteTagTemplateIT.java delete mode 100644 datacatalog/snippets/src/test/java/com/example/datacatalog/GetEntryGroupIT.java delete mode 100644 datacatalog/snippets/src/test/java/com/example/datacatalog/GetEntryIT.java delete mode 100644 datacatalog/snippets/src/test/java/com/example/datacatalog/GetTagTemplateIT.java delete mode 100644 datacatalog/snippets/src/test/java/com/example/datacatalog/GrantTagTemplateUserRoleIT.java delete mode 100644 datacatalog/snippets/src/test/java/com/example/datacatalog/ListEntriesIT.java delete mode 100644 datacatalog/snippets/src/test/java/com/example/datacatalog/ListEntryGroupsIT.java delete mode 100644 datacatalog/snippets/src/test/java/com/example/datacatalog/LookupEntryTests.java delete mode 100644 datacatalog/snippets/src/test/java/com/example/datacatalog/QuickstartIT.java delete mode 100644 datacatalog/snippets/src/test/java/com/example/datacatalog/SearchAssetsIT.java delete mode 100644 datacatalog/snippets/src/test/java/com/example/datacatalog/UpdateEntryGroupIT.java delete mode 100644 datacatalog/snippets/src/test/java/com/example/datacatalog/UpdateEntryIT.java delete mode 100644 datacatalog/snippets/src/test/java/com/example/datacatalog/UpdateTagTemplateIT.java diff --git a/datacatalog/snippets/src/test/java/com/example/datacatalog/DeleteEntryIT.java b/datacatalog/snippets/src/test/java/com/example/datacatalog/DeleteEntryIT.java deleted file mode 100644 index 124c298927e..00000000000 --- a/datacatalog/snippets/src/test/java/com/example/datacatalog/DeleteEntryIT.java +++ /dev/null @@ -1,120 +0,0 @@ -/* - * Copyright 2020 Google Inc. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.example.datacatalog; - -import static com.google.common.truth.Truth.assertThat; -import static junit.framework.TestCase.assertNotNull; - -import com.google.cloud.datacatalog.v1.ColumnSchema; -import com.google.cloud.datacatalog.v1.Entry; -import com.google.cloud.datacatalog.v1.EntryGroupName; -import com.google.cloud.datacatalog.v1.EntryName; -import com.google.cloud.datacatalog.v1.Schema; -import java.io.ByteArrayOutputStream; -import java.io.IOException; -import java.io.PrintStream; -import java.util.UUID; -import java.util.logging.Level; -import java.util.logging.Logger; -import org.junit.After; -import org.junit.Before; -import org.junit.BeforeClass; -import org.junit.Test; - -public class DeleteEntryIT { - - private static final String ID = UUID.randomUUID().toString().substring(0, 8); - private static final String LOCATION = "us-central1"; - private final Logger log = Logger.getLogger(this.getClass().getName()); - private String entryId; - private String entryGroupId; - private ByteArrayOutputStream bout; - private PrintStream out; - private PrintStream originalPrintStream; - - private static final String PROJECT_ID = requireEnvVar("GOOGLE_CLOUD_PROJECT"); - - private static String requireEnvVar(String varName) { - String value = System.getenv(varName); - assertNotNull( - "Environment variable " + varName + " is required to perform these tests.", - System.getenv(varName)); - return value; - } - - @BeforeClass - public static void checkRequirements() { - requireEnvVar("GOOGLE_CLOUD_PROJECT"); - } - - @Before - public void setUp() throws IOException { - entryId = "DELETE_ENTRY_TEST_" + ID; - entryGroupId = "DELETE_ENTRY_GROUP_TEST_" + ID; - bout = new ByteArrayOutputStream(); - out = new PrintStream(bout); - originalPrintStream = System.out; - System.setOut(out); - // create a temporary entry group and entry - CreateEntryGroup.createEntryGroup(PROJECT_ID, LOCATION, entryGroupId); - EntryGroupName entryGroupName = EntryGroupName.of(PROJECT_ID, LOCATION, entryGroupId); - Entry entry = - Entry.newBuilder() - .setUserSpecifiedSystem("onprem_data_system") - .setUserSpecifiedType("onprem_data_asset") - .setDisplayName("My awesome data asset") - .setDescription("This data asset is managed by an external system.") - .setLinkedResource("//my-onprem-server.com/dataAssets/my-awesome-data-asset") - .setSchema( - Schema.newBuilder() - .addColumns( - ColumnSchema.newBuilder() - .setColumn("first_column") - .setDescription("This columns consists of ....") - .setMode("NULLABLE") - .setType("DOUBLE") - .build()) - .addColumns( - ColumnSchema.newBuilder() - .setColumn("second_column") - .setDescription("This columns consists of ....") - .setMode("REQUIRED") - .setType("STRING") - .build()) - .build()) - .build(); - CreateEntry.createEntry(entryGroupName, entryId, entry); - } - - @After - public void tearDown() throws IOException { - // Clean up - EntryGroupName entryGroupName = EntryGroupName.of(PROJECT_ID, LOCATION, entryGroupId); - DeleteEntryGroup.deleteEntryGroup(entryGroupName); - // restores print statements in the original method - System.out.flush(); - System.setOut(originalPrintStream); - log.log(Level.INFO, bout.toString()); - } - - @Test - public void testDeleteEntry() throws IOException { - EntryName entryName = EntryName.of(PROJECT_ID, LOCATION, entryGroupId, entryId); - DeleteEntry.deleteEntry(entryName); - assertThat(bout.toString()).contains("Entry deleted successfully"); - } -} diff --git a/datacatalog/snippets/src/test/java/com/example/datacatalog/DeleteTagTemplateIT.java b/datacatalog/snippets/src/test/java/com/example/datacatalog/DeleteTagTemplateIT.java deleted file mode 100644 index d979845fa21..00000000000 --- a/datacatalog/snippets/src/test/java/com/example/datacatalog/DeleteTagTemplateIT.java +++ /dev/null @@ -1,100 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.example.datacatalog; - -import static com.google.common.truth.Truth.assertThat; -import static junit.framework.TestCase.assertNotNull; - -import com.google.cloud.datacatalog.v1.FieldType; -import com.google.cloud.datacatalog.v1.LocationName; -import com.google.cloud.datacatalog.v1.TagTemplate; -import com.google.cloud.datacatalog.v1.TagTemplateField; -import com.google.cloud.datacatalog.v1.TagTemplateName; -import java.io.ByteArrayOutputStream; -import java.io.IOException; -import java.io.PrintStream; -import java.util.UUID; -import java.util.logging.Level; -import java.util.logging.Logger; -import org.junit.After; -import org.junit.Before; -import org.junit.BeforeClass; -import org.junit.Test; - -public class DeleteTagTemplateIT { - - private static final String ID = UUID.randomUUID().toString().substring(0, 8); - private static final String LOCATION = "us-central1"; - private final Logger log = Logger.getLogger(this.getClass().getName()); - private String tagTemplateId; - private ByteArrayOutputStream bout; - private PrintStream out; - private PrintStream originalPrintStream; - - private static final String PROJECT_ID = requireEnvVar("GOOGLE_CLOUD_PROJECT"); - - private static String requireEnvVar(String varName) { - String value = System.getenv(varName); - assertNotNull( - "Environment variable " + varName + " is required to perform these tests.", - System.getenv(varName)); - return value; - } - - @BeforeClass - public static void checkRequirements() { - requireEnvVar("GOOGLE_CLOUD_PROJECT"); - } - - @Before - public void setUp() throws IOException { - tagTemplateId = "delete_tag_template_test_" + ID; - bout = new ByteArrayOutputStream(); - out = new PrintStream(bout); - originalPrintStream = System.out; - System.setOut(out); - // create a tempory tag template - LocationName locationName = LocationName.of(PROJECT_ID, LOCATION); - TagTemplateField sourceField = - TagTemplateField.newBuilder() - .setDisplayName("Your display name") - .setType( - FieldType.newBuilder().setPrimitiveType(FieldType.PrimitiveType.STRING).build()) - .build(); - TagTemplate tagTemplate = - TagTemplate.newBuilder() - .setDisplayName("Your display name") - .putFields("sourceField", sourceField) - .build(); - CreateTagTemplate.createTagTemplate(locationName, tagTemplateId, tagTemplate); - } - - @After - public void tearDown() { - // restores print statements in the original method - System.out.flush(); - System.setOut(originalPrintStream); - log.log(Level.INFO, bout.toString()); - } - - @Test - public void testDeleteTagTemplate() throws IOException { - TagTemplateName name = TagTemplateName.of(PROJECT_ID, LOCATION, tagTemplateId); - DeleteTagTemplate.deleteTagTemplate(name); - assertThat(bout.toString()).contains("Tag template deleted successfully"); - } -} diff --git a/datacatalog/snippets/src/test/java/com/example/datacatalog/GetEntryGroupIT.java b/datacatalog/snippets/src/test/java/com/example/datacatalog/GetEntryGroupIT.java deleted file mode 100644 index 0034e00aae3..00000000000 --- a/datacatalog/snippets/src/test/java/com/example/datacatalog/GetEntryGroupIT.java +++ /dev/null @@ -1,87 +0,0 @@ -/* - * Copyright 2020 Google Inc. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.example.datacatalog; - -import static com.google.common.truth.Truth.assertThat; -import static junit.framework.TestCase.assertNotNull; - -import com.google.cloud.datacatalog.v1.EntryGroupName; -import java.io.ByteArrayOutputStream; -import java.io.IOException; -import java.io.PrintStream; -import java.util.UUID; -import java.util.logging.Level; -import java.util.logging.Logger; -import org.junit.After; -import org.junit.Before; -import org.junit.BeforeClass; -import org.junit.Test; - -public class GetEntryGroupIT { - - private static final String ID = UUID.randomUUID().toString().substring(0, 8); - private static final String LOCATION = "us-central1"; - private final Logger log = Logger.getLogger(this.getClass().getName()); - private String entryGroup; - private ByteArrayOutputStream bout; - private PrintStream out; - private PrintStream originalPrintStream; - - private static final String PROJECT_ID = requireEnvVar("GOOGLE_CLOUD_PROJECT"); - - private static String requireEnvVar(String varName) { - String value = System.getenv(varName); - assertNotNull( - "Environment variable " + varName + " is required to perform these tests.", - System.getenv(varName)); - return value; - } - - @BeforeClass - public static void checkRequirements() { - requireEnvVar("GOOGLE_CLOUD_PROJECT"); - } - - @Before - public void setUp() throws IOException { - bout = new ByteArrayOutputStream(); - out = new PrintStream(bout); - originalPrintStream = System.out; - System.setOut(out); - entryGroup = "GET_ENTRY_GROUP_TEST_" + ID; - // create temporary entry group - CreateEntryGroup.createEntryGroup(PROJECT_ID, LOCATION, entryGroup); - } - - @After - public void tearDown() throws IOException { - // clean up - EntryGroupName name = EntryGroupName.of(PROJECT_ID, LOCATION, entryGroup); - DeleteEntryGroup.deleteEntryGroup(name); - // restores print statements in the original method - System.out.flush(); - System.setOut(originalPrintStream); - log.log(Level.INFO, bout.toString()); - } - - @Test - public void testGetEntryGroup() throws IOException { - EntryGroupName name = EntryGroupName.of(PROJECT_ID, LOCATION, entryGroup); - GetEntryGroup.getEntryGroup(name); - assertThat(bout.toString()).contains("Entry group retrieved successfully:"); - } -} diff --git a/datacatalog/snippets/src/test/java/com/example/datacatalog/GetEntryIT.java b/datacatalog/snippets/src/test/java/com/example/datacatalog/GetEntryIT.java deleted file mode 100644 index 7693ade9db2..00000000000 --- a/datacatalog/snippets/src/test/java/com/example/datacatalog/GetEntryIT.java +++ /dev/null @@ -1,121 +0,0 @@ -/* - * Copyright 2020 Google Inc. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.example.datacatalog; - -import static com.google.common.truth.Truth.assertThat; -import static junit.framework.TestCase.assertNotNull; - -import com.google.cloud.datacatalog.v1.ColumnSchema; -import com.google.cloud.datacatalog.v1.Entry; -import com.google.cloud.datacatalog.v1.EntryGroupName; -import com.google.cloud.datacatalog.v1.EntryName; -import com.google.cloud.datacatalog.v1.Schema; -import java.io.ByteArrayOutputStream; -import java.io.IOException; -import java.io.PrintStream; -import java.util.UUID; -import java.util.logging.Level; -import java.util.logging.Logger; -import org.junit.After; -import org.junit.Before; -import org.junit.BeforeClass; -import org.junit.Test; - -public class GetEntryIT { - - private static final String ID = UUID.randomUUID().toString().substring(0, 8); - private static final String LOCATION = "us-central1"; - private final Logger log = Logger.getLogger(this.getClass().getName()); - private String entryId; - private String entryGroupId; - private ByteArrayOutputStream bout; - private PrintStream out; - private PrintStream originalPrintStream; - - private static final String PROJECT_ID = requireEnvVar("GOOGLE_CLOUD_PROJECT"); - - private static String requireEnvVar(String varName) { - String value = System.getenv(varName); - assertNotNull( - "Environment variable " + varName + " is required to perform these tests.", - System.getenv(varName)); - return value; - } - - @BeforeClass - public static void checkRequirements() { - requireEnvVar("GOOGLE_CLOUD_PROJECT"); - } - - @Before - public void setUp() throws IOException { - entryId = "GET_ENTRY_TEST_" + ID; - entryGroupId = "GET_ENTRY_GROUP_TEST_" + ID; - bout = new ByteArrayOutputStream(); - out = new PrintStream(bout); - originalPrintStream = System.out; - System.setOut(out); - CreateEntryGroup.createEntryGroup(PROJECT_ID, LOCATION, entryGroupId); - EntryGroupName entryGroupName = EntryGroupName.of(PROJECT_ID, LOCATION, entryGroupId); - Entry entry = - Entry.newBuilder() - .setUserSpecifiedSystem("onprem_data_system") - .setUserSpecifiedType("onprem_data_asset") - .setDisplayName("My awesome data asset") - .setDescription("This data asset is managed by an external system.") - .setLinkedResource("//my-onprem-server.com/dataAssets/my-awesome-data-asset") - .setSchema( - Schema.newBuilder() - .addColumns( - ColumnSchema.newBuilder() - .setColumn("first_column") - .setDescription("This columns consists of ....") - .setMode("NULLABLE") - .setType("DOUBLE") - .build()) - .addColumns( - ColumnSchema.newBuilder() - .setColumn("second_column") - .setDescription("This columns consists of ....") - .setMode("REQUIRED") - .setType("STRING") - .build()) - .build()) - .build(); - CreateEntry.createEntry(entryGroupName, entryId, entry); - } - - @After - public void tearDown() throws IOException { - // Clean up - EntryName entryName = EntryName.of(PROJECT_ID, LOCATION, entryGroupId, entryId); - DeleteEntry.deleteEntry(entryName); - EntryGroupName entryGroupName = EntryGroupName.of(PROJECT_ID, LOCATION, entryGroupId); - DeleteEntryGroup.deleteEntryGroup(entryGroupName); - // restores print statements in the original method - System.out.flush(); - System.setOut(originalPrintStream); - log.log(Level.INFO, bout.toString()); - } - - @Test - public void testGetEntry() throws IOException { - EntryName entryName = EntryName.of(PROJECT_ID, LOCATION, entryGroupId, entryId); - GetEntry.getEntry(entryName); - assertThat(bout.toString()).contains("Entry retrieved successfully:"); - } -} diff --git a/datacatalog/snippets/src/test/java/com/example/datacatalog/GetTagTemplateIT.java b/datacatalog/snippets/src/test/java/com/example/datacatalog/GetTagTemplateIT.java deleted file mode 100644 index 374b896f255..00000000000 --- a/datacatalog/snippets/src/test/java/com/example/datacatalog/GetTagTemplateIT.java +++ /dev/null @@ -1,103 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.example.datacatalog; - -import static com.google.common.truth.Truth.assertThat; -import static junit.framework.TestCase.assertNotNull; - -import com.google.cloud.datacatalog.v1.FieldType; -import com.google.cloud.datacatalog.v1.LocationName; -import com.google.cloud.datacatalog.v1.TagTemplate; -import com.google.cloud.datacatalog.v1.TagTemplateField; -import com.google.cloud.datacatalog.v1.TagTemplateName; -import java.io.ByteArrayOutputStream; -import java.io.IOException; -import java.io.PrintStream; -import java.util.UUID; -import java.util.logging.Level; -import java.util.logging.Logger; -import org.junit.After; -import org.junit.Before; -import org.junit.BeforeClass; -import org.junit.Test; - -public class GetTagTemplateIT { - - private static final String ID = UUID.randomUUID().toString().substring(0, 8); - private static final String LOCATION = "us-central1"; - private final Logger log = Logger.getLogger(this.getClass().getName()); - private String tagTemplateId; - private ByteArrayOutputStream bout; - private PrintStream out; - private PrintStream originalPrintStream; - - private static final String PROJECT_ID = requireEnvVar("GOOGLE_CLOUD_PROJECT"); - - private static String requireEnvVar(String varName) { - String value = System.getenv(varName); - assertNotNull( - "Environment variable " + varName + " is required to perform these tests.", - System.getenv(varName)); - return value; - } - - @BeforeClass - public static void checkRequirements() { - requireEnvVar("GOOGLE_CLOUD_PROJECT"); - } - - @Before - public void setUp() throws IOException { - tagTemplateId = "get_tag_template_test_" + ID; - bout = new ByteArrayOutputStream(); - out = new PrintStream(bout); - originalPrintStream = System.out; - System.setOut(out); - // create a tempory tag template - LocationName locationName = LocationName.of(PROJECT_ID, LOCATION); - TagTemplateField sourceField = - TagTemplateField.newBuilder() - .setDisplayName("Your display name") - .setType( - FieldType.newBuilder().setPrimitiveType(FieldType.PrimitiveType.STRING).build()) - .build(); - TagTemplate tagTemplate = - TagTemplate.newBuilder() - .setDisplayName("Your display name") - .putFields("sourceField", sourceField) - .build(); - CreateTagTemplate.createTagTemplate(locationName, tagTemplateId, tagTemplate); - } - - @After - public void tearDown() throws IOException { - // clean up - TagTemplateName name = TagTemplateName.of(PROJECT_ID, LOCATION, tagTemplateId); - DeleteTagTemplate.deleteTagTemplate(name); - // restores print statements in the original method - System.out.flush(); - System.setOut(originalPrintStream); - log.log(Level.INFO, bout.toString()); - } - - @Test - public void testGetTagTemplate() throws IOException { - TagTemplateName name = TagTemplateName.of(PROJECT_ID, LOCATION, tagTemplateId); - GetTagTemplate.getTagTemplate(name); - assertThat(bout.toString()).contains("Tag template retrieved successfully"); - } -} diff --git a/datacatalog/snippets/src/test/java/com/example/datacatalog/GrantTagTemplateUserRoleIT.java b/datacatalog/snippets/src/test/java/com/example/datacatalog/GrantTagTemplateUserRoleIT.java deleted file mode 100644 index 0837ab16fb6..00000000000 --- a/datacatalog/snippets/src/test/java/com/example/datacatalog/GrantTagTemplateUserRoleIT.java +++ /dev/null @@ -1,117 +0,0 @@ -/* - * Copyright 2020 Google Inc. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.example.datacatalog; - -import static com.google.common.truth.Truth.assertThat; -import static junit.framework.TestCase.assertNotNull; - -import com.google.cloud.datacatalog.v1.CreateTagTemplateRequest; -import com.google.cloud.datacatalog.v1.DataCatalogClient; -import com.google.cloud.datacatalog.v1.DeleteTagTemplateRequest; -import com.google.cloud.datacatalog.v1.FieldType; -import com.google.cloud.datacatalog.v1.LocationName; -import com.google.cloud.datacatalog.v1.TagTemplate; -import com.google.cloud.datacatalog.v1.TagTemplateField; -import com.google.cloud.datacatalog.v1.TagTemplateName; -import java.io.ByteArrayOutputStream; -import java.io.IOException; -import java.io.PrintStream; -import java.util.UUID; -import java.util.logging.Level; -import java.util.logging.Logger; -import org.junit.After; -import org.junit.Before; -import org.junit.BeforeClass; -import org.junit.Test; - -public class GrantTagTemplateUserRoleIT { - - private static final String ID = UUID.randomUUID().toString().substring(0, 8); - private static final String LOCATION = "us-central1"; - private final Logger log = Logger.getLogger(this.getClass().getName()); - private String tagTemplateId; - private ByteArrayOutputStream bout; - private PrintStream out; - private PrintStream originalPrintStream; - - private static final String PROJECT_ID = requireEnvVar("GOOGLE_CLOUD_PROJECT"); - - private static String requireEnvVar(String varName) { - String value = System.getenv(varName); - assertNotNull( - "Environment variable " + varName + " is required to perform these tests.", - System.getenv(varName)); - return value; - } - - @BeforeClass - public static void checkRequirements() { - requireEnvVar("GOOGLE_CLOUD_PROJECT"); - } - - @Before - public void setUp() throws IOException { - tagTemplateId = "create_tag_template_id_test_" + ID; - bout = new ByteArrayOutputStream(); - out = new PrintStream(bout); - originalPrintStream = System.out; - System.setOut(out); - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - LocationName parent = LocationName.of(PROJECT_ID, LOCATION); - TagTemplateField sourceField = - TagTemplateField.newBuilder() - .setDisplayName("Source of data asset") - .setType( - FieldType.newBuilder().setPrimitiveType(FieldType.PrimitiveType.STRING).build()) - .build(); - TagTemplate tagTemplate = - TagTemplate.newBuilder() - .setDisplayName("Demo Tag Template") - .putFields("source", sourceField) - .build(); - CreateTagTemplateRequest request = - CreateTagTemplateRequest.newBuilder() - .setParent(parent.toString()) - .setTagTemplateId(tagTemplateId) - .setTagTemplate(tagTemplate) - .build(); - dataCatalogClient.createTagTemplate(request); - } - } - - @After - public void tearDown() throws IOException { - // Clean up - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - TagTemplateName name = TagTemplateName.of(PROJECT_ID, LOCATION, tagTemplateId); - boolean force = true; - DeleteTagTemplateRequest request = - DeleteTagTemplateRequest.newBuilder().setName(name.toString()).setForce(force).build(); - dataCatalogClient.deleteTagTemplate(request); - } - // restores print statements in the original method - System.out.flush(); - System.setOut(originalPrintStream); - log.log(Level.INFO, bout.toString()); - } - - @Test - public void testGrantTagTemplateUserRole() throws IOException { - GrantTagTemplateUserRole.grantTagTemplateUserRole(PROJECT_ID, tagTemplateId); - assertThat(bout.toString()).contains("Role successfully granted"); - } -} diff --git a/datacatalog/snippets/src/test/java/com/example/datacatalog/ListEntriesIT.java b/datacatalog/snippets/src/test/java/com/example/datacatalog/ListEntriesIT.java deleted file mode 100644 index 1e85fee2131..00000000000 --- a/datacatalog/snippets/src/test/java/com/example/datacatalog/ListEntriesIT.java +++ /dev/null @@ -1,121 +0,0 @@ -/* - * Copyright 2020 Google Inc. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.example.datacatalog; - -import static com.google.common.truth.Truth.assertThat; -import static junit.framework.TestCase.assertNotNull; - -import com.google.cloud.datacatalog.v1.ColumnSchema; -import com.google.cloud.datacatalog.v1.Entry; -import com.google.cloud.datacatalog.v1.EntryGroupName; -import com.google.cloud.datacatalog.v1.EntryName; -import com.google.cloud.datacatalog.v1.Schema; -import java.io.ByteArrayOutputStream; -import java.io.IOException; -import java.io.PrintStream; -import java.util.UUID; -import java.util.logging.Level; -import java.util.logging.Logger; -import org.junit.After; -import org.junit.Before; -import org.junit.BeforeClass; -import org.junit.Test; - -public class ListEntriesIT { - - private static final String ID = UUID.randomUUID().toString().substring(0, 8); - private static final String LOCATION = "us-central1"; - private final Logger log = Logger.getLogger(this.getClass().getName()); - private String entryId; - private String entryGroupId; - private ByteArrayOutputStream bout; - private PrintStream out; - private PrintStream originalPrintStream; - - private static final String PROJECT_ID = requireEnvVar("GOOGLE_CLOUD_PROJECT"); - - private static String requireEnvVar(String varName) { - String value = System.getenv(varName); - assertNotNull( - "Environment variable " + varName + " is required to perform these tests.", - System.getenv(varName)); - return value; - } - - @BeforeClass - public static void checkRequirements() { - requireEnvVar("GOOGLE_CLOUD_PROJECT"); - } - - @Before - public void setUp() throws IOException { - entryId = "LIST_ENTRIES_TEST_" + ID; - entryGroupId = "LIST_ENTRIES_GROUP_TEST_" + ID; - bout = new ByteArrayOutputStream(); - out = new PrintStream(bout); - originalPrintStream = System.out; - System.setOut(out); - CreateEntryGroup.createEntryGroup(PROJECT_ID, LOCATION, entryGroupId); - EntryGroupName entryGroupName = EntryGroupName.of(PROJECT_ID, LOCATION, entryGroupId); - Entry entry = - Entry.newBuilder() - .setUserSpecifiedSystem("onprem_data_system") - .setUserSpecifiedType("onprem_data_asset") - .setDisplayName("My awesome data asset") - .setDescription("This data asset is managed by an external system.") - .setLinkedResource("//my-onprem-server.com/dataAssets/my-awesome-data-asset") - .setSchema( - Schema.newBuilder() - .addColumns( - ColumnSchema.newBuilder() - .setColumn("first_column") - .setDescription("This columns consists of ....") - .setMode("NULLABLE") - .setType("DOUBLE") - .build()) - .addColumns( - ColumnSchema.newBuilder() - .setColumn("second_column") - .setDescription("This columns consists of ....") - .setMode("REQUIRED") - .setType("STRING") - .build()) - .build()) - .build(); - CreateEntry.createEntry(entryGroupName, entryId, entry); - } - - @After - public void tearDown() throws IOException { - // Clean up - EntryName entryName = EntryName.of(PROJECT_ID, LOCATION, entryGroupId, entryId); - DeleteEntry.deleteEntry(entryName); - EntryGroupName entryGroupName = EntryGroupName.of(PROJECT_ID, LOCATION, entryGroupId); - DeleteEntryGroup.deleteEntryGroup(entryGroupName); - // restores print statements in the original method - System.out.flush(); - System.setOut(originalPrintStream); - log.log(Level.INFO, bout.toString()); - } - - @Test - public void testListEntries() throws IOException { - EntryGroupName entryGroupName = EntryGroupName.of(PROJECT_ID, LOCATION, entryGroupId); - ListEntries.listEntries(entryGroupName); - assertThat(bout.toString()).contains("Entry name :"); - } -} diff --git a/datacatalog/snippets/src/test/java/com/example/datacatalog/ListEntryGroupsIT.java b/datacatalog/snippets/src/test/java/com/example/datacatalog/ListEntryGroupsIT.java deleted file mode 100644 index 9426878a4aa..00000000000 --- a/datacatalog/snippets/src/test/java/com/example/datacatalog/ListEntryGroupsIT.java +++ /dev/null @@ -1,87 +0,0 @@ -/* - * Copyright 2020 Google Inc. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.example.datacatalog; - -import static com.google.common.truth.Truth.assertThat; -import static junit.framework.TestCase.assertNotNull; - -import com.google.cloud.datacatalog.v1.EntryGroupName; -import com.google.cloud.datacatalog.v1.LocationName; -import java.io.ByteArrayOutputStream; -import java.io.IOException; -import java.io.PrintStream; -import java.util.UUID; -import java.util.logging.Level; -import java.util.logging.Logger; -import org.junit.After; -import org.junit.Before; -import org.junit.BeforeClass; -import org.junit.Test; - -public class ListEntryGroupsIT { - - private static final String ID = UUID.randomUUID().toString().substring(0, 8); - private static final String LOCATION = "us-central1"; - private final Logger log = Logger.getLogger(this.getClass().getName()); - private String entryGroup; - private ByteArrayOutputStream bout; - private PrintStream out; - private PrintStream originalPrintStream; - - private static final String PROJECT_ID = requireEnvVar("GOOGLE_CLOUD_PROJECT"); - - private static String requireEnvVar(String varName) { - String value = System.getenv(varName); - assertNotNull( - "Environment variable " + varName + " is required to perform these tests.", - System.getenv(varName)); - return value; - } - - @BeforeClass - public static void checkRequirements() { - requireEnvVar("GOOGLE_CLOUD_PROJECT"); - } - - @Before - public void setUp() throws IOException { - bout = new ByteArrayOutputStream(); - out = new PrintStream(bout); - originalPrintStream = System.out; - System.setOut(out); - entryGroup = "LIST_ENTRY_GROUPS_TEST_" + ID; - // create temporary entry group - CreateEntryGroup.createEntryGroup(PROJECT_ID, LOCATION, entryGroup); - } - - @After - public void tearDown() throws IOException { - // clean up - EntryGroupName name = EntryGroupName.of(PROJECT_ID, LOCATION, entryGroup); - DeleteEntryGroup.deleteEntryGroup(name); - // restores print statements in the original method - System.out.flush(); - System.setOut(originalPrintStream); - log.log(Level.INFO, bout.toString()); - } - - @Test - public void testListEntryGroups() throws IOException { - ListEntryGroups.listEntryGroups(LocationName.of(PROJECT_ID, LOCATION)); - assertThat(bout.toString()).contains("Entry group name :"); - } -} diff --git a/datacatalog/snippets/src/test/java/com/example/datacatalog/LookupEntryTests.java b/datacatalog/snippets/src/test/java/com/example/datacatalog/LookupEntryTests.java deleted file mode 100644 index bf254fec42e..00000000000 --- a/datacatalog/snippets/src/test/java/com/example/datacatalog/LookupEntryTests.java +++ /dev/null @@ -1,81 +0,0 @@ -/* - * Copyright 2019 Google Inc. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.example.datacatalog; - -import static com.google.common.truth.Truth.assertThat; - -import java.io.ByteArrayOutputStream; -import java.io.IOException; -import java.io.PrintStream; -import org.junit.After; -import org.junit.Before; -import org.junit.Test; -import org.junit.runner.RunWith; -import org.junit.runners.JUnit4; - -@RunWith(JUnit4.class) -public class LookupEntryTests { - - private static final String BIGQUERY_PROJECT = "bigquery-public-data"; - private static final String BIGQUERY_DATASET = "new_york_taxi_trips"; - private static final String BIGQUERY_TABLE = "taxi_zone_geom"; - - private static final String PUBSUB_PROJECT = "pubsub-public-data"; - private static final String PUBSUB_TOPIC = "taxirides-realtime"; - - private ByteArrayOutputStream bout; - - @Before - public void setUp() { - bout = new ByteArrayOutputStream(); - PrintStream out = new PrintStream(bout); - System.setOut(out); - } - - @After - public void tearDown() throws IOException { - bout.close(); - System.setOut(null); - } - - @Test - public void testLookupEntryBigQueryDataset() { - LookupEntryBigQueryDataset.lookupEntry(BIGQUERY_PROJECT, BIGQUERY_DATASET); - String got = bout.toString(); - assertThat(got) - .containsMatch( - "projects/" + BIGQUERY_PROJECT + "/locations/.+?/entryGroups/@bigquery/entries/.+?$"); - } - - @Test - public void testLookupEntryBigQueryTable() { - LookupEntryBigQueryTable.lookupEntry(BIGQUERY_PROJECT, BIGQUERY_DATASET, BIGQUERY_TABLE); - String got = bout.toString(); - assertThat(got) - .containsMatch( - "projects/" + BIGQUERY_PROJECT + "/locations/.+?/entryGroups/@bigquery/entries/.+?$"); - } - - @Test - public void testLookupPubSubTopic() { - LookupEntryPubSubTopic.lookupEntry(PUBSUB_PROJECT, PUBSUB_TOPIC); - String got = bout.toString(); - assertThat(got) - .containsMatch( - "projects/" + PUBSUB_PROJECT + "/locations/.+?/entryGroups/@pubsub/entries/.+?$"); - } -} diff --git a/datacatalog/snippets/src/test/java/com/example/datacatalog/QuickstartIT.java b/datacatalog/snippets/src/test/java/com/example/datacatalog/QuickstartIT.java deleted file mode 100644 index e48d3e41077..00000000000 --- a/datacatalog/snippets/src/test/java/com/example/datacatalog/QuickstartIT.java +++ /dev/null @@ -1,91 +0,0 @@ -/* - * Copyright 2020 Google Inc. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.example.datacatalog; - -import static com.google.common.truth.Truth.assertThat; -import static junit.framework.TestCase.assertNotNull; - -import com.google.cloud.datacatalog.v1.DataCatalogClient; -import com.google.cloud.datacatalog.v1.DeleteTagTemplateRequest; -import com.google.cloud.datacatalog.v1.TagTemplateName; -import java.io.ByteArrayOutputStream; -import java.io.IOException; -import java.io.PrintStream; -import java.util.UUID; -import java.util.logging.Level; -import java.util.logging.Logger; -import org.junit.After; -import org.junit.Before; -import org.junit.BeforeClass; -import org.junit.Test; - -public class QuickstartIT { - - private static final String ID = UUID.randomUUID().toString().substring(0, 8); - private static final String LOCATION = "us-central1"; - private final Logger log = Logger.getLogger(this.getClass().getName()); - private String tagTemplateId; - private ByteArrayOutputStream bout; - private PrintStream out; - private PrintStream originalPrintStream; - - private static final String PROJECT_ID = requireEnvVar("GOOGLE_CLOUD_PROJECT"); - - private static String requireEnvVar(String varName) { - String value = System.getenv(varName); - assertNotNull( - "Environment variable " + varName + " is required to perform these tests.", - System.getenv(varName)); - return value; - } - - @BeforeClass - public static void checkRequirements() { - requireEnvVar("GOOGLE_CLOUD_PROJECT"); - } - - @Before - public void setUp() { - tagTemplateId = "quickstart_tag_template_id_test_" + ID; - bout = new ByteArrayOutputStream(); - out = new PrintStream(bout); - originalPrintStream = System.out; - System.setOut(out); - } - - @After - public void tearDown() throws IOException { - // Clean up - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - TagTemplateName name = TagTemplateName.of(PROJECT_ID, LOCATION, tagTemplateId); - boolean force = true; - DeleteTagTemplateRequest request = - DeleteTagTemplateRequest.newBuilder().setName(name.toString()).setForce(force).build(); - dataCatalogClient.deleteTagTemplate(request); - } - // restores print statements in the original method - System.out.flush(); - System.setOut(originalPrintStream); - log.log(Level.INFO, bout.toString()); - } - - @Test - public void testQuickstart() throws IOException { - Quickstart.createTags(PROJECT_ID, tagTemplateId); - assertThat(bout.toString()).contains("Tag created successfully"); - } -} diff --git a/datacatalog/snippets/src/test/java/com/example/datacatalog/SearchAssetsIT.java b/datacatalog/snippets/src/test/java/com/example/datacatalog/SearchAssetsIT.java deleted file mode 100644 index d0090243fdd..00000000000 --- a/datacatalog/snippets/src/test/java/com/example/datacatalog/SearchAssetsIT.java +++ /dev/null @@ -1,75 +0,0 @@ -/* - * Copyright 2020 Google Inc. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.example.datacatalog; - -import static com.google.common.truth.Truth.assertThat; -import static junit.framework.TestCase.assertNotNull; - -import java.io.ByteArrayOutputStream; -import java.io.IOException; -import java.io.PrintStream; -import java.util.logging.Level; -import java.util.logging.Logger; -import org.junit.After; -import org.junit.Before; -import org.junit.BeforeClass; -import org.junit.Test; - -public class SearchAssetsIT { - - private final Logger log = Logger.getLogger(this.getClass().getName()); - private ByteArrayOutputStream bout; - private PrintStream out; - private PrintStream originalPrintStream; - - private static final String PROJECT_ID = requireEnvVar("GOOGLE_CLOUD_PROJECT"); - - private static String requireEnvVar(String varName) { - String value = System.getenv(varName); - assertNotNull( - "Environment variable " + varName + " is required to perform these tests.", - System.getenv(varName)); - return value; - } - - @BeforeClass - public static void checkRequirements() { - requireEnvVar("GOOGLE_CLOUD_PROJECT"); - } - - @Before - public void setUp() { - bout = new ByteArrayOutputStream(); - out = new PrintStream(bout); - originalPrintStream = System.out; - System.setOut(out); - } - - @After - public void tearDown() { - // restores print statements in the original method - System.out.flush(); - System.setOut(originalPrintStream); - log.log(Level.INFO, bout.toString()); - } - - @Test - public void testSearchAssets() throws IOException { - SearchAssets.searchCatalog(PROJECT_ID, "type=dataset"); - assertThat(bout.toString()).contains("Search results:"); - } -} diff --git a/datacatalog/snippets/src/test/java/com/example/datacatalog/UpdateEntryGroupIT.java b/datacatalog/snippets/src/test/java/com/example/datacatalog/UpdateEntryGroupIT.java deleted file mode 100644 index aac12d51017..00000000000 --- a/datacatalog/snippets/src/test/java/com/example/datacatalog/UpdateEntryGroupIT.java +++ /dev/null @@ -1,90 +0,0 @@ -/* - * Copyright 2020 Google Inc. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.example.datacatalog; - -import static com.google.common.truth.Truth.assertThat; -import static junit.framework.TestCase.assertNotNull; - -import com.google.cloud.datacatalog.v1.EntryGroup; -import com.google.cloud.datacatalog.v1.EntryGroupName; -import java.io.ByteArrayOutputStream; -import java.io.IOException; -import java.io.PrintStream; -import java.util.UUID; -import java.util.logging.Level; -import java.util.logging.Logger; -import org.junit.After; -import org.junit.Before; -import org.junit.BeforeClass; -import org.junit.Test; - -public class UpdateEntryGroupIT { - - private static final String ID = UUID.randomUUID().toString().substring(0, 8); - private static final String LOCATION = "us-central1"; - private final Logger log = Logger.getLogger(this.getClass().getName()); - private String entryGroup; - private ByteArrayOutputStream bout; - private PrintStream out; - private PrintStream originalPrintStream; - - private static final String PROJECT_ID = requireEnvVar("GOOGLE_CLOUD_PROJECT"); - - private static String requireEnvVar(String varName) { - String value = System.getenv(varName); - assertNotNull( - "Environment variable " + varName + " is required to perform these tests.", - System.getenv(varName)); - return value; - } - - @BeforeClass - public static void checkRequirements() { - requireEnvVar("GOOGLE_CLOUD_PROJECT"); - } - - @Before - public void setUp() throws IOException { - bout = new ByteArrayOutputStream(); - out = new PrintStream(bout); - originalPrintStream = System.out; - System.setOut(out); - entryGroup = "UPDATE_ENTRY_GROUP_TEST_" + ID; - // create temporary entry group - CreateEntryGroup.createEntryGroup(PROJECT_ID, LOCATION, entryGroup); - } - - @After - public void tearDown() throws IOException { - // clean up - EntryGroupName name = EntryGroupName.of(PROJECT_ID, LOCATION, entryGroup); - DeleteEntryGroup.deleteEntryGroup(name); - // restores print statements in the original method - System.out.flush(); - System.setOut(originalPrintStream); - log.log(Level.INFO, bout.toString()); - } - - @Test - public void testUpdateEntryGroup() throws IOException { - EntryGroupName name = EntryGroupName.of(PROJECT_ID, LOCATION, entryGroup); - EntryGroup entryGroup = - EntryGroup.newBuilder().setName(name.toString()).setDescription("test-description").build(); - UpdateEntryGroup.updateEntryGroup(entryGroup); - assertThat(bout.toString()).contains("Entry group updated successfully :"); - } -} diff --git a/datacatalog/snippets/src/test/java/com/example/datacatalog/UpdateEntryIT.java b/datacatalog/snippets/src/test/java/com/example/datacatalog/UpdateEntryIT.java deleted file mode 100644 index cc289bb219b..00000000000 --- a/datacatalog/snippets/src/test/java/com/example/datacatalog/UpdateEntryIT.java +++ /dev/null @@ -1,123 +0,0 @@ -/* - * Copyright 2020 Google Inc. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.example.datacatalog; - -import static com.google.common.truth.Truth.assertThat; -import static junit.framework.TestCase.assertNotNull; - -import com.google.cloud.datacatalog.v1.ColumnSchema; -import com.google.cloud.datacatalog.v1.Entry; -import com.google.cloud.datacatalog.v1.EntryGroupName; -import com.google.cloud.datacatalog.v1.EntryName; -import com.google.cloud.datacatalog.v1.Schema; -import java.io.ByteArrayOutputStream; -import java.io.IOException; -import java.io.PrintStream; -import java.util.UUID; -import java.util.logging.Level; -import java.util.logging.Logger; -import org.junit.After; -import org.junit.Before; -import org.junit.BeforeClass; -import org.junit.Test; - -public class UpdateEntryIT { - - private static final String ID = UUID.randomUUID().toString().substring(0, 8); - private static final String LOCATION = "us-central1"; - private final Logger log = Logger.getLogger(this.getClass().getName()); - private String entryId; - private String entryGroupId; - private ByteArrayOutputStream bout; - private PrintStream out; - private PrintStream originalPrintStream; - - private static final String PROJECT_ID = requireEnvVar("GOOGLE_CLOUD_PROJECT"); - - private static String requireEnvVar(String varName) { - String value = System.getenv(varName); - assertNotNull( - "Environment variable " + varName + " is required to perform these tests.", - System.getenv(varName)); - return value; - } - - @BeforeClass - public static void checkRequirements() { - requireEnvVar("GOOGLE_CLOUD_PROJECT"); - } - - @Before - public void setUp() throws IOException { - entryId = "UPDATE_ENTRY_TEST_" + ID; - entryGroupId = "UPDATE_ENTRY_GROUP_TEST_" + ID; - bout = new ByteArrayOutputStream(); - out = new PrintStream(bout); - originalPrintStream = System.out; - System.setOut(out); - CreateEntryGroup.createEntryGroup(PROJECT_ID, LOCATION, entryGroupId); - EntryGroupName entryGroupName = EntryGroupName.of(PROJECT_ID, LOCATION, entryGroupId); - Entry entry = - Entry.newBuilder() - .setUserSpecifiedSystem("onprem_data_system") - .setUserSpecifiedType("onprem_data_asset") - .setDisplayName("My awesome data asset") - .setDescription("This data asset is managed by an external system.") - .setLinkedResource("//my-onprem-server.com/dataAssets/my-awesome-data-asset") - .setSchema( - Schema.newBuilder() - .addColumns( - ColumnSchema.newBuilder() - .setColumn("first_column") - .setDescription("This columns consists of ....") - .setMode("NULLABLE") - .setType("DOUBLE") - .build()) - .addColumns( - ColumnSchema.newBuilder() - .setColumn("second_column") - .setDescription("This columns consists of ....") - .setMode("REQUIRED") - .setType("STRING") - .build()) - .build()) - .build(); - CreateEntry.createEntry(entryGroupName, entryId, entry); - } - - @After - public void tearDown() throws IOException { - // Clean up - EntryName entryName = EntryName.of(PROJECT_ID, LOCATION, entryGroupId, entryId); - DeleteEntry.deleteEntry(entryName); - EntryGroupName entryGroupName = EntryGroupName.of(PROJECT_ID, LOCATION, entryGroupId); - DeleteEntryGroup.deleteEntryGroup(entryGroupName); - // restores print statements in the original method - System.out.flush(); - System.setOut(originalPrintStream); - log.log(Level.INFO, bout.toString()); - } - - @Test - public void testUpdateEntry() throws IOException { - EntryName entryName = EntryName.of(PROJECT_ID, LOCATION, entryGroupId, entryId); - Entry entry = - Entry.newBuilder().setName(entryName.toString()).setDescription("test_description").build(); - UpdateEntry.updateEntry(entry); - assertThat(bout.toString()).contains("Entry updated successfully :"); - } -} diff --git a/datacatalog/snippets/src/test/java/com/example/datacatalog/UpdateTagTemplateIT.java b/datacatalog/snippets/src/test/java/com/example/datacatalog/UpdateTagTemplateIT.java deleted file mode 100644 index 5f351ac1673..00000000000 --- a/datacatalog/snippets/src/test/java/com/example/datacatalog/UpdateTagTemplateIT.java +++ /dev/null @@ -1,108 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.example.datacatalog; - -import static com.google.common.truth.Truth.assertThat; -import static junit.framework.TestCase.assertNotNull; - -import com.google.cloud.datacatalog.v1.FieldType; -import com.google.cloud.datacatalog.v1.LocationName; -import com.google.cloud.datacatalog.v1.TagTemplate; -import com.google.cloud.datacatalog.v1.TagTemplateField; -import com.google.cloud.datacatalog.v1.TagTemplateName; -import java.io.ByteArrayOutputStream; -import java.io.IOException; -import java.io.PrintStream; -import java.util.UUID; -import java.util.logging.Level; -import java.util.logging.Logger; -import org.junit.After; -import org.junit.Before; -import org.junit.BeforeClass; -import org.junit.Test; - -public class UpdateTagTemplateIT { - - private static final String ID = UUID.randomUUID().toString().substring(0, 8); - private static final String LOCATION = "us-central1"; - private final Logger log = Logger.getLogger(this.getClass().getName()); - private String tagTemplateId; - private ByteArrayOutputStream bout; - private PrintStream out; - private PrintStream originalPrintStream; - - private static final String PROJECT_ID = requireEnvVar("GOOGLE_CLOUD_PROJECT"); - - private static String requireEnvVar(String varName) { - String value = System.getenv(varName); - assertNotNull( - "Environment variable " + varName + " is required to perform these tests.", - System.getenv(varName)); - return value; - } - - @BeforeClass - public static void checkRequirements() { - requireEnvVar("GOOGLE_CLOUD_PROJECT"); - } - - @Before - public void setUp() throws IOException { - tagTemplateId = "update_tag_template_test_" + ID; - bout = new ByteArrayOutputStream(); - out = new PrintStream(bout); - originalPrintStream = System.out; - System.setOut(out); - // create a tempory tag template - LocationName locationName = LocationName.of(PROJECT_ID, LOCATION); - TagTemplateField sourceField = - TagTemplateField.newBuilder() - .setDisplayName("Your display name") - .setType( - FieldType.newBuilder().setPrimitiveType(FieldType.PrimitiveType.STRING).build()) - .build(); - TagTemplate tagTemplate = - TagTemplate.newBuilder() - .setDisplayName("Your display name") - .putFields("sourceField", sourceField) - .build(); - CreateTagTemplate.createTagTemplate(locationName, tagTemplateId, tagTemplate); - } - - @After - public void tearDown() throws IOException { - // clean up - TagTemplateName name = TagTemplateName.of(PROJECT_ID, LOCATION, tagTemplateId); - DeleteTagTemplate.deleteTagTemplate(name); - // restores print statements in the original method - System.out.flush(); - System.setOut(originalPrintStream); - log.log(Level.INFO, bout.toString()); - } - - @Test - public void testUpdateTagTemplate() throws IOException { - TagTemplateName name = TagTemplateName.of(PROJECT_ID, LOCATION, tagTemplateId); - TagTemplate template = - TagTemplate.newBuilder() - .setName(name.toString()) - .setDisplayName("test_display_name") - .build(); - UpdateTagTemplate.updateTagTemplate(template); - assertThat(bout.toString()).contains("Tag template updated successfully :"); - } -}