Skip to content

Commit 1df1c4f

Browse files
Google APIscopybara-github
authored andcommitted
feat: add Network Connectivity Center APIs related to VPC spokes
PiperOrigin-RevId: 569346113
1 parent 14eca8b commit 1df1c4f

5 files changed

Lines changed: 988 additions & 147 deletions

File tree

google/cloud/networkconnectivity/v1/BUILD.bazel

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

12-
load(
13-
"@com_google_googleapis_imports//:imports.bzl",
14-
"cc_grpc_library",
15-
"cc_proto_library",
16-
"csharp_gapic_assembly_pkg",
17-
"csharp_gapic_library",
18-
"csharp_grpc_library",
19-
"csharp_proto_library",
20-
"go_gapic_assembly_pkg",
21-
"go_gapic_library",
22-
"go_proto_library",
23-
"java_gapic_assembly_gradle_pkg",
24-
"java_gapic_library",
25-
"java_gapic_test",
26-
"java_grpc_library",
27-
"java_proto_library",
28-
"nodejs_gapic_assembly_pkg",
29-
"nodejs_gapic_library",
30-
"php_gapic_assembly_pkg",
31-
"php_gapic_library",
32-
"php_proto_library",
33-
"proto_library_with_info",
34-
"py_gapic_assembly_pkg",
35-
"py_gapic_library",
36-
"py_test",
37-
"ruby_cloud_gapic_library",
38-
"ruby_gapic_assembly_pkg",
39-
"ruby_grpc_library",
40-
"ruby_proto_library",
41-
)
12+
# This is an API workspace, having public visibility by default makes perfect sense.
13+
package(default_visibility = ["//visibility:public"])
4214

4315
##############################################################################
4416
# Common
4517
##############################################################################
4618
load("@rules_proto//proto:defs.bzl", "proto_library")
47-
48-
# This is an API workspace, having public visibility by default makes perfect sense.
49-
package(default_visibility = ["//visibility:public"])
19+
load("@com_google_googleapis_imports//:imports.bzl", "proto_library_with_info")
5020

5121
proto_library(
5222
name = "networkconnectivity_proto",
@@ -72,9 +42,23 @@ proto_library_with_info(
7242
deps = [
7343
":networkconnectivity_proto",
7444
"//google/cloud:common_resources_proto",
45+
"//google/cloud/location:location_proto",
46+
"//google/iam/v1:iam_policy_proto",
7547
],
7648
)
7749

50+
##############################################################################
51+
# Java
52+
##############################################################################
53+
load(
54+
"@com_google_googleapis_imports//:imports.bzl",
55+
"java_gapic_assembly_gradle_pkg",
56+
"java_gapic_library",
57+
"java_gapic_test",
58+
"java_grpc_library",
59+
"java_proto_library",
60+
)
61+
7862
java_proto_library(
7963
name = "networkconnectivity_java_proto",
8064
deps = [":networkconnectivity_proto"],
@@ -94,9 +78,9 @@ java_gapic_library(
9478
rest_numeric_enums = True,
9579
service_yaml = "networkconnectivity_v1.yaml",
9680
test_deps = [
97-
":networkconnectivity_java_grpc",
9881
"//google/cloud/location:location_java_grpc",
9982
"//google/iam/v1:iam_java_grpc",
83+
":networkconnectivity_java_grpc",
10084
],
10185
transport = "grpc",
10286
deps = [
@@ -129,6 +113,16 @@ java_gapic_assembly_gradle_pkg(
129113
],
130114
)
131115

116+
##############################################################################
117+
# Go
118+
##############################################################################
119+
load(
120+
"@com_google_googleapis_imports//:imports.bzl",
121+
"go_gapic_assembly_pkg",
122+
"go_gapic_library",
123+
"go_proto_library",
124+
)
125+
132126
go_proto_library(
133127
name = "networkconnectivity_go_proto",
134128
compilers = ["@io_bazel_rules_go//proto:go_grpc"],
@@ -137,8 +131,6 @@ go_proto_library(
137131
deps = [
138132
"//google/api:annotations_go_proto",
139133
"//google/longrunning:longrunning_go_proto",
140-
"//google/rpc:errdetails_go_proto",
141-
"//google/rpc:status_go_proto",
142134
],
143135
)
144136

@@ -174,6 +166,16 @@ go_gapic_assembly_pkg(
174166
],
175167
)
176168

169+
##############################################################################
170+
# Python
171+
##############################################################################
172+
load(
173+
"@com_google_googleapis_imports//:imports.bzl",
174+
"py_gapic_assembly_pkg",
175+
"py_gapic_library",
176+
"py_test",
177+
)
178+
177179
py_gapic_library(
178180
name = "networkconnectivity_py_gapic",
179181
srcs = [":networkconnectivity_proto"],
@@ -205,6 +207,16 @@ py_gapic_assembly_pkg(
205207
],
206208
)
207209

210+
##############################################################################
211+
# PHP
212+
##############################################################################
213+
load(
214+
"@com_google_googleapis_imports//:imports.bzl",
215+
"php_gapic_assembly_pkg",
216+
"php_gapic_library",
217+
"php_proto_library",
218+
)
219+
208220
php_proto_library(
209221
name = "networkconnectivity_php_proto",
210222
deps = [":networkconnectivity_proto"],
@@ -232,6 +244,15 @@ php_gapic_assembly_pkg(
232244
],
233245
)
234246

247+
##############################################################################
248+
# Node.js
249+
##############################################################################
250+
load(
251+
"@com_google_googleapis_imports//:imports.bzl",
252+
"nodejs_gapic_assembly_pkg",
253+
"nodejs_gapic_library",
254+
)
255+
235256
nodejs_gapic_library(
236257
name = "networkconnectivity_nodejs_gapic",
237258
package_name = "@google-cloud/network-connectivity",
@@ -253,6 +274,17 @@ nodejs_gapic_assembly_pkg(
253274
],
254275
)
255276

277+
##############################################################################
278+
# Ruby
279+
##############################################################################
280+
load(
281+
"@com_google_googleapis_imports//:imports.bzl",
282+
"ruby_cloud_gapic_library",
283+
"ruby_gapic_assembly_pkg",
284+
"ruby_grpc_library",
285+
"ruby_proto_library",
286+
)
287+
256288
ruby_proto_library(
257289
name = "networkconnectivity_ruby_proto",
258290
deps = [":networkconnectivity_proto"],
@@ -296,9 +328,19 @@ ruby_gapic_assembly_pkg(
296328
],
297329
)
298330

331+
##############################################################################
332+
# C#
333+
##############################################################################
334+
load(
335+
"@com_google_googleapis_imports//:imports.bzl",
336+
"csharp_gapic_assembly_pkg",
337+
"csharp_gapic_library",
338+
"csharp_grpc_library",
339+
"csharp_proto_library",
340+
)
341+
299342
csharp_proto_library(
300343
name = "networkconnectivity_csharp_proto",
301-
extra_opts = [],
302344
deps = [":networkconnectivity_proto"],
303345
)
304346

@@ -332,6 +374,15 @@ csharp_gapic_assembly_pkg(
332374
],
333375
)
334376

377+
##############################################################################
378+
# C++
379+
##############################################################################
380+
load(
381+
"@com_google_googleapis_imports//:imports.bzl",
382+
"cc_grpc_library",
383+
"cc_proto_library",
384+
)
385+
335386
cc_proto_library(
336387
name = "networkconnectivity_cc_proto",
337388
deps = [":networkconnectivity_proto"],

google/cloud/networkconnectivity/v1/common.proto

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2022 Google LLC
1+
// Copyright 2023 Google LLC
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.
@@ -39,10 +39,12 @@ option (google.api.resource_definition) = {
3939
// Represents the metadata of the long-running operation.
4040
message OperationMetadata {
4141
// Output only. The time the operation was created.
42-
google.protobuf.Timestamp create_time = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
42+
google.protobuf.Timestamp create_time = 1
43+
[(google.api.field_behavior) = OUTPUT_ONLY];
4344

4445
// Output only. The time the operation finished running.
45-
google.protobuf.Timestamp end_time = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
46+
google.protobuf.Timestamp end_time = 2
47+
[(google.api.field_behavior) = OUTPUT_ONLY];
4648

4749
// Output only. Server-defined resource path for the target of the operation.
4850
string target = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
@@ -55,8 +57,9 @@ message OperationMetadata {
5557

5658
// Output only. Identifies whether the user has requested cancellation
5759
// of the operation. Operations that have been cancelled successfully
58-
// have [Operation.error][] value with a [google.rpc.Status.code][google.rpc.Status.code] of 1,
59-
// corresponding to `Code.CANCELLED`.
60+
// have [Operation.error][] value with a
61+
// [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to
62+
// `Code.CANCELLED`.
6063
bool requested_cancellation = 6 [(google.api.field_behavior) = OUTPUT_ONLY];
6164

6265
// Output only. API version used to start the operation.

0 commit comments

Comments
 (0)