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

Commit

Permalink
feat: Added support for BigQuery connections entries feat: Added supp…
Browse files Browse the repository at this point in the history
…ort 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)

* 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

Source-Link: googleapis/googleapis@5b1f7cf

Source-Link: googleapis/googleapis-gen@171a5d0

* 🦉 Updates from OwlBot

See https://github.com/googleapis/repo-automation-bots/blob/master/packages/owl-bot/README.md

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
Co-authored-by: Jeffrey Rennie <rennie@google.com>
  • Loading branch information
3 people committed Aug 5, 2021
1 parent b128fc1 commit 328cc11
Show file tree
Hide file tree
Showing 25 changed files with 13,398 additions and 8,806 deletions.
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

0 comments on commit 328cc11

Please sign in to comment.