Skip to content

Commit 113ddfe

Browse files
Google APIscopybara-github
authored andcommitted
feat: add new PSC instance configuration setting and output the PSC DNS name
feat: add new API to execute SQL statements feat: add support for Free Trials feat: add support to schedule maintenance feat: additional field to set tags on a backup or cluster feat: add more observability options on the Instance level feat: add new API to perform a promotion or switchover on secondary instances feat: support for obtaining the public ip addresses of an instance and enabling either inbound or outbound public ip feat: add new API to list the databases in a project and location feat: add optional field to keep extra roles on a user if it already exists docs: various typo fixes, correcting the formatting, and clarifications on the request_id and validate_only fields in API requests and on the page_size when listing the database PiperOrigin-RevId: 688544999
1 parent 60688dc commit 113ddfe

4 files changed

Lines changed: 664 additions & 152 deletions

File tree

google/cloud/alloydb/v1/BUILD.bazel

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,25 +9,30 @@
99
# * extra_protoc_file_parameters
1010
# The complete list of preserved parameters can be found in the source code.
1111

12+
# buildifier: disable=load-on-top
13+
1214
# This is an API workspace, having public visibility by default makes perfect sense.
1315
package(default_visibility = ["//visibility:public"])
1416

1517
##############################################################################
1618
# Common
1719
##############################################################################
18-
load("@rules_proto//proto:defs.bzl", "proto_library")
20+
# buildifier: disable=same-origin-load
1921
load("@com_google_googleapis_imports//:imports.bzl", "proto_library_with_info")
22+
load("@rules_proto//proto:defs.bzl", "proto_library")
2023

2124
proto_library(
2225
name = "alloydb_proto",
2326
srcs = [
27+
"data_model.proto",
2428
"resources.proto",
2529
"service.proto",
2630
],
2731
deps = [
2832
"//google/api:annotations_proto",
2933
"//google/api:client_proto",
3034
"//google/api:field_behavior_proto",
35+
"//google/api:field_info_proto",
3136
"//google/api:resource_proto",
3237
"//google/longrunning:operations_proto",
3338
"//google/rpc:status_proto",
@@ -54,6 +59,7 @@ proto_library_with_info(
5459
##############################################################################
5560
# Java
5661
##############################################################################
62+
# buildifier: disable=same-origin-load
5763
load(
5864
"@com_google_googleapis_imports//:imports.bzl",
5965
"java_gapic_assembly_gradle_pkg",
@@ -120,6 +126,7 @@ java_gapic_assembly_gradle_pkg(
120126
##############################################################################
121127
# Go
122128
##############################################################################
129+
# buildifier: disable=same-origin-load
123130
load(
124131
"@com_google_googleapis_imports//:imports.bzl",
125132
"go_gapic_assembly_pkg",
@@ -177,6 +184,7 @@ go_gapic_assembly_pkg(
177184
##############################################################################
178185
# Python
179186
##############################################################################
187+
# buildifier: disable=same-origin-load
180188
load(
181189
"@com_google_googleapis_imports//:imports.bzl",
182190
"py_gapic_assembly_pkg",
@@ -217,6 +225,7 @@ py_gapic_assembly_pkg(
217225
##############################################################################
218226
# PHP
219227
##############################################################################
228+
# buildifier: disable=same-origin-load
220229
load(
221230
"@com_google_googleapis_imports//:imports.bzl",
222231
"php_gapic_assembly_pkg",
@@ -237,7 +246,9 @@ php_gapic_library(
237246
rest_numeric_enums = True,
238247
service_yaml = "alloydb_v1.yaml",
239248
transport = "grpc+rest",
240-
deps = [":alloydb_php_proto"],
249+
deps = [
250+
":alloydb_php_proto",
251+
],
241252
)
242253

243254
# Open Source Packages
@@ -252,6 +263,7 @@ php_gapic_assembly_pkg(
252263
##############################################################################
253264
# Node.js
254265
##############################################################################
266+
# buildifier: disable=same-origin-load
255267
load(
256268
"@com_google_googleapis_imports//:imports.bzl",
257269
"nodejs_gapic_assembly_pkg",
@@ -282,6 +294,7 @@ nodejs_gapic_assembly_pkg(
282294
##############################################################################
283295
# Ruby
284296
##############################################################################
297+
# buildifier: disable=same-origin-load
285298
load(
286299
"@com_google_googleapis_imports//:imports.bzl",
287300
"ruby_cloud_gapic_library",
@@ -331,6 +344,7 @@ ruby_gapic_assembly_pkg(
331344
##############################################################################
332345
# C#
333346
##############################################################################
347+
# buildifier: disable=same-origin-load
334348
load(
335349
"@com_google_googleapis_imports//:imports.bzl",
336350
"csharp_gapic_assembly_pkg",
@@ -341,6 +355,7 @@ load(
341355

342356
csharp_proto_library(
343357
name = "alloydb_csharp_proto",
358+
extra_opts = [],
344359
deps = [":alloydb_proto"],
345360
)
346361

@@ -357,6 +372,7 @@ csharp_gapic_library(
357372
grpc_service_config = "alloydb_v1_grpc_service_config.json",
358373
rest_numeric_enums = True,
359374
service_yaml = "alloydb_v1.yaml",
375+
transport = "grpc+rest",
360376
deps = [
361377
":alloydb_csharp_grpc",
362378
":alloydb_csharp_proto",
@@ -376,6 +392,7 @@ csharp_gapic_assembly_pkg(
376392
##############################################################################
377393
# C++
378394
##############################################################################
395+
# buildifier: disable=same-origin-load
379396
load(
380397
"@com_google_googleapis_imports//:imports.bzl",
381398
"cc_grpc_library",
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
// Copyright 2024 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.alloydb.v1;
18+
19+
option csharp_namespace = "Google.Cloud.AlloyDb.V1";
20+
option go_package = "cloud.google.com/go/alloydb/apiv1/alloydbpb;alloydbpb";
21+
option java_multiple_files = true;
22+
option java_outer_classname = "DataModelProto";
23+
option java_package = "com.google.cloud.alloydb.v1";
24+
option php_namespace = "Google\\Cloud\\AlloyDb\\V1";
25+
option ruby_package = "Google::Cloud::AlloyDB::V1";
26+
27+
// SqlResult represents the result for the execution of a sql statement.
28+
message SqlResult {
29+
// List of columns included in the result. This also includes the data type
30+
// of the column.
31+
repeated SqlResultColumn columns = 1;
32+
33+
// Rows returned by the SQL statement.
34+
repeated SqlResultRow rows = 2;
35+
}
36+
37+
// Contains the name and datatype of a column in a SQL Result.
38+
message SqlResultColumn {
39+
// Name of the column.
40+
string name = 1;
41+
42+
// Datatype of the column as reported by the postgres driver.
43+
// Common type names are "VARCHAR", "TEXT", "NVARCHAR", "DECIMAL", "BOOL",
44+
// "INT", and "BIGINT".
45+
string type = 2;
46+
}
47+
48+
// A single row from a sql result.
49+
message SqlResultRow {
50+
// List of values in a row of sql result.
51+
repeated SqlResultValue values = 1;
52+
}
53+
54+
// A single value in a row from a sql result.
55+
message SqlResultValue {
56+
// The cell value represented in string format.
57+
// Timestamps are converted to string using RFC3339Nano format.
58+
optional string value = 1;
59+
60+
// Set to true if cell value is null.
61+
optional bool null_value = 2;
62+
}

0 commit comments

Comments
 (0)