Skip to content
This repository has been archived by the owner on Jul 20, 2023. It is now read-only.

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 p... #277

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
82 changes: 82 additions & 0 deletions protos/google/cloud/datacatalog/v1/bigquery.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
// Copyright 2021 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.

syntax = "proto3";

package google.cloud.datacatalog.v1;

import "google/api/field_behavior.proto";

option cc_enable_arenas = true;
option csharp_namespace = "Google.Cloud.DataCatalog.V1";
option go_package = "google.golang.org/genproto/googleapis/cloud/datacatalog/v1;datacatalog";
option java_multiple_files = true;
option java_outer_classname = "BigQueryProto";
option java_package = "com.google.cloud.datacatalog.v1";
option php_namespace = "Google\\Cloud\\DataCatalog\\V1";
option ruby_package = "Google::Cloud::DataCatalog::V1";

// Specification for the BigQuery connection.
message BigQueryConnectionSpec {
// The type of the BigQuery connection.
enum ConnectionType {
// Unspecified type.
CONNECTION_TYPE_UNSPECIFIED = 0;

// Cloud SQL connection.
CLOUD_SQL = 1;
}

// The type of the BigQuery connection.
ConnectionType connection_type = 1;

oneof connection_spec {
// Specification for the BigQuery connection to a Cloud SQL instance.
CloudSqlBigQueryConnectionSpec cloud_sql = 2;
}

// True if there are credentials attached to the BigQuery connection; false
// otherwise.
bool has_credential = 3;
}

// Specification for the BigQuery connection to a Cloud SQL instance.
message CloudSqlBigQueryConnectionSpec {
// Supported Cloud SQL database types.
enum DatabaseType {
// Unspecified database type.
DATABASE_TYPE_UNSPECIFIED = 0;

// Cloud SQL for PostgreSQL.
POSTGRES = 1;

// Cloud SQL for MySQL.
MYSQL = 2;
}

// Cloud SQL instance ID in the format of `project:location:instance`.
string instance_id = 1;

// Database name.
string database = 2;

// Type of the Cloud SQL database.
DatabaseType type = 3;
}

// Fields specific for BigQuery routines.
message BigQueryRoutineSpec {
// Paths of the imported libraries.
repeated string imported_libraries = 1;
}
3 changes: 1 addition & 2 deletions protos/google/cloud/datacatalog/v1/common.proto
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@ option java_package = "com.google.cloud.datacatalog.v1";
option php_namespace = "Google\\Cloud\\DataCatalog\\V1";
option ruby_package = "Google::Cloud::DataCatalog::V1";

// This enum describes all the possible systems that Data Catalog integrates
// with.
// This enum lists all the systems that Data Catalog integrates with.
enum IntegratedSystem {
// Default unknown system.
INTEGRATED_SYSTEM_UNSPECIFIED = 0;
Expand Down
11 changes: 6 additions & 5 deletions protos/google/cloud/datacatalog/v1/data_source.proto
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ option java_package = "com.google.cloud.datacatalog.v1";
option php_namespace = "Google\\Cloud\\DataCatalog\\V1";
option ruby_package = "Google::Cloud::DataCatalog::V1";

// Describes the physical location of an entry.
// Physical location of an entry.
message DataSource {
// Service name where the data is stored.
// Name of a service that stores the data.
enum Service {
// Default unknown service.
SERVICE_UNSPECIFIED = 0;
Expand All @@ -41,10 +41,11 @@ message DataSource {
BIGQUERY = 2;
}

// Service in which the data is physically stored.
// Service that physically stores the data.
Service service = 1;

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