Skip to content

Commit 5b1f7cf

Browse files
Google APIscopybara-github
authored andcommitted
feat: Added support for BigQuery connections entries
feat: Added support for BigQuery routines entries feat: Added usage_signal field feat: Added labels field feat: Added ReplaceTaxonomy in Policy Tag Manager Serialization API feat: Added support for public tag templates feat: Added support for rich text tags docs: Documentation improvements PiperOrigin-RevId: 387350333
1 parent 6919bc1 commit 5b1f7cf

15 files changed

Lines changed: 1076 additions & 651 deletions

google/cloud/datacatalog/v1/BUILD.bazel

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ load("@com_google_googleapis_imports//:imports.bzl", "proto_library_with_info")
2121
proto_library(
2222
name = "datacatalog_proto",
2323
srcs = [
24+
"bigquery.proto",
2425
"common.proto",
2526
"data_source.proto",
2627
"datacatalog.proto",
@@ -32,6 +33,7 @@ proto_library(
3233
"table_spec.proto",
3334
"tags.proto",
3435
"timestamps.proto",
36+
"usage.proto",
3537
],
3638
deps = [
3739
"//google/api:annotations_proto",
Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
// Copyright 2021 Google LLC
2+
//
3+
// Licensed under the Apache License, Version 2.0 (the "License");
4+
// you may not use this file except in compliance with the License.
5+
// You may obtain a copy of the License at
6+
//
7+
// http://www.apache.org/licenses/LICENSE-2.0
8+
//
9+
// Unless required by applicable law or agreed to in writing, software
10+
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
// See the License for the specific language governing permissions and
13+
// limitations under the License.
14+
15+
syntax = "proto3";
16+
17+
package google.cloud.datacatalog.v1;
18+
19+
import "google/api/field_behavior.proto";
20+
21+
option cc_enable_arenas = true;
22+
option csharp_namespace = "Google.Cloud.DataCatalog.V1";
23+
option go_package = "google.golang.org/genproto/googleapis/cloud/datacatalog/v1;datacatalog";
24+
option java_multiple_files = true;
25+
option java_outer_classname = "BigQueryProto";
26+
option java_package = "com.google.cloud.datacatalog.v1";
27+
option php_namespace = "Google\\Cloud\\DataCatalog\\V1";
28+
option ruby_package = "Google::Cloud::DataCatalog::V1";
29+
30+
// Specification for the BigQuery connection.
31+
message BigQueryConnectionSpec {
32+
// The type of the BigQuery connection.
33+
enum ConnectionType {
34+
// Unspecified type.
35+
CONNECTION_TYPE_UNSPECIFIED = 0;
36+
37+
// Cloud SQL connection.
38+
CLOUD_SQL = 1;
39+
}
40+
41+
// The type of the BigQuery connection.
42+
ConnectionType connection_type = 1;
43+
44+
oneof connection_spec {
45+
// Specification for the BigQuery connection to a Cloud SQL instance.
46+
CloudSqlBigQueryConnectionSpec cloud_sql = 2;
47+
}
48+
49+
// True if there are credentials attached to the BigQuery connection; false
50+
// otherwise.
51+
bool has_credential = 3;
52+
}
53+
54+
// Specification for the BigQuery connection to a Cloud SQL instance.
55+
message CloudSqlBigQueryConnectionSpec {
56+
// Supported Cloud SQL database types.
57+
enum DatabaseType {
58+
// Unspecified database type.
59+
DATABASE_TYPE_UNSPECIFIED = 0;
60+
61+
// Cloud SQL for PostgreSQL.
62+
POSTGRES = 1;
63+
64+
// Cloud SQL for MySQL.
65+
MYSQL = 2;
66+
}
67+
68+
// Cloud SQL instance ID in the format of `project:location:instance`.
69+
string instance_id = 1;
70+
71+
// Database name.
72+
string database = 2;
73+
74+
// Type of the Cloud SQL database.
75+
DatabaseType type = 3;
76+
}
77+
78+
// Fields specific for BigQuery routines.
79+
message BigQueryRoutineSpec {
80+
// Paths of the imported libraries.
81+
repeated string imported_libraries = 1;
82+
}

google/cloud/datacatalog/v1/common.proto

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,7 @@ option java_package = "com.google.cloud.datacatalog.v1";
2424
option php_namespace = "Google\\Cloud\\DataCatalog\\V1";
2525
option ruby_package = "Google::Cloud::DataCatalog::V1";
2626

27-
// This enum describes all the possible systems that Data Catalog integrates
28-
// with.
27+
// This enum lists all the systems that Data Catalog integrates with.
2928
enum IntegratedSystem {
3029
// Default unknown system.
3130
INTEGRATED_SYSTEM_UNSPECIFIED = 0;

google/cloud/datacatalog/v1/data_source.proto

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ option java_package = "com.google.cloud.datacatalog.v1";
2727
option php_namespace = "Google\\Cloud\\DataCatalog\\V1";
2828
option ruby_package = "Google::Cloud::DataCatalog::V1";
2929

30-
// Describes the physical location of an entry.
30+
// Physical location of an entry.
3131
message DataSource {
32-
// Service name where the data is stored.
32+
// Name of a service that stores the data.
3333
enum Service {
3434
// Default unknown service.
3535
SERVICE_UNSPECIFIED = 0;
@@ -41,10 +41,11 @@ message DataSource {
4141
BIGQUERY = 2;
4242
}
4343

44-
// Service in which the data is physically stored.
44+
// Service that physically stores the data.
4545
Service service = 1;
4646

47-
// Full name of the resource as defined by the service, e.g.
48-
// //bigquery.googleapis.com/projects/{project_id}/locations/{location}/datasets/{dataset_id}/tables/{table_id}
47+
// Full name of a resource as defined by the service. For example:
48+
//
49+
// `//bigquery.googleapis.com/projects/{PROJECT_ID}/locations/{LOCATION}/datasets/{DATASET_ID}/tables/{TABLE_ID}`
4950
string resource = 2;
5051
}

0 commit comments

Comments
 (0)