Skip to content

Commit 6d27f5b

Browse files
Google APIscopybara-github
authored andcommitted
feat: Add files for Network Connectivity v1 API.
PiperOrigin-RevId: 387381480
1 parent 39e6bd2 commit 6d27f5b

6 files changed

Lines changed: 1249 additions & 4 deletions

File tree

Lines changed: 340 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,340 @@
1+
# This file was automatically generated by BuildFileGenerator
2+
# https://github.com/googleapis/rules_gapic/tree/master/bazel
3+
4+
# Most of the manual changes to this file will be overwritten.
5+
# It's **only** allowed to change the following rule attribute values:
6+
# - names of *_gapic_assembly_* rules
7+
# - certain parameters of *_gapic_library rules, including but not limited to:
8+
# * extra_protoc_parameters
9+
# * extra_protoc_file_parameters
10+
# The complete list of preserved parameters can be found in the source code.
11+
12+
# This is an API workspace, having public visibility by default makes perfect sense.
13+
package(default_visibility = ["//visibility:public"])
14+
15+
##############################################################################
16+
# Common
17+
##############################################################################
18+
load("@rules_proto//proto:defs.bzl", "proto_library")
19+
load("@com_google_googleapis_imports//:imports.bzl", "proto_library_with_info")
20+
21+
proto_library(
22+
name = "networkconnectivity_proto",
23+
srcs = [
24+
"common.proto",
25+
"hub.proto",
26+
],
27+
deps = [
28+
"//google/api:annotations_proto",
29+
"//google/api:client_proto",
30+
"//google/api:field_behavior_proto",
31+
"//google/api:resource_proto",
32+
"//google/longrunning:operations_proto",
33+
"@com_google_protobuf//:field_mask_proto",
34+
"@com_google_protobuf//:timestamp_proto",
35+
],
36+
)
37+
38+
proto_library_with_info(
39+
name = "networkconnectivity_proto_with_info",
40+
deps = [
41+
":networkconnectivity_proto",
42+
"//google/cloud:common_resources_proto",
43+
],
44+
)
45+
46+
##############################################################################
47+
# Java
48+
##############################################################################
49+
load(
50+
"@com_google_googleapis_imports//:imports.bzl",
51+
"java_gapic_assembly_gradle_pkg",
52+
"java_gapic_library",
53+
"java_gapic_test",
54+
"java_grpc_library",
55+
"java_proto_library",
56+
)
57+
58+
java_proto_library(
59+
name = "networkconnectivity_java_proto",
60+
deps = [":networkconnectivity_proto"],
61+
)
62+
63+
java_grpc_library(
64+
name = "networkconnectivity_java_grpc",
65+
srcs = [":networkconnectivity_proto"],
66+
deps = [":networkconnectivity_java_proto"],
67+
)
68+
69+
java_gapic_library(
70+
name = "networkconnectivity_java_gapic",
71+
srcs = [":networkconnectivity_proto_with_info"],
72+
grpc_service_config = "networkconnectivity_v1_grpc_service_config.json",
73+
test_deps = [
74+
":networkconnectivity_java_grpc",
75+
],
76+
deps = [
77+
":networkconnectivity_java_proto",
78+
],
79+
)
80+
81+
java_gapic_test(
82+
name = "networkconnectivity_java_gapic_test_suite",
83+
test_classes = [
84+
"com.google.cloud.networkconnectivity.v1.HubServiceClientTest",
85+
],
86+
runtime_deps = [":networkconnectivity_java_gapic_test"],
87+
)
88+
89+
# Open Source Packages
90+
java_gapic_assembly_gradle_pkg(
91+
name = "google-cloud-networkconnectivity-v1-java",
92+
deps = [
93+
":networkconnectivity_java_gapic",
94+
":networkconnectivity_java_grpc",
95+
":networkconnectivity_java_proto",
96+
":networkconnectivity_proto",
97+
],
98+
)
99+
100+
##############################################################################
101+
# Go
102+
##############################################################################
103+
load(
104+
"@com_google_googleapis_imports//:imports.bzl",
105+
"go_gapic_assembly_pkg",
106+
"go_gapic_library",
107+
"go_proto_library",
108+
"go_test",
109+
)
110+
111+
go_proto_library(
112+
name = "networkconnectivity_go_proto",
113+
compilers = ["@io_bazel_rules_go//proto:go_grpc"],
114+
importpath = "google.golang.org/genproto/googleapis/cloud/networkconnectivity/v1",
115+
protos = [":networkconnectivity_proto"],
116+
deps = [
117+
"//google/api:annotations_go_proto",
118+
"//google/longrunning:longrunning_go_proto",
119+
],
120+
)
121+
122+
go_gapic_library(
123+
name = "networkconnectivity_go_gapic",
124+
srcs = [":networkconnectivity_proto_with_info"],
125+
grpc_service_config = "networkconnectivity_v1_grpc_service_config.json",
126+
importpath = "cloud.google.com/go/networkconnectivity/apiv1;networkconnectivity",
127+
service_yaml = "networkconnectivity_v1.yaml",
128+
metadata = True,
129+
deps = [
130+
":networkconnectivity_go_proto",
131+
"//google/longrunning:longrunning_go_proto",
132+
"@com_google_cloud_go//longrunning/autogen:go_default_library",
133+
"@com_google_cloud_go//longrunning:go_default_library",
134+
],
135+
)
136+
137+
go_test(
138+
name = "networkconnectivity_go_gapic_test",
139+
srcs = [":networkconnectivity_go_gapic_srcjar_test"],
140+
embed = [":networkconnectivity_go_gapic"],
141+
importpath = "cloud.google.com/go/networkconnectivity/apiv1",
142+
)
143+
144+
# Open Source Packages
145+
go_gapic_assembly_pkg(
146+
name = "gapi-cloud-networkconnectivity-v1-go",
147+
deps = [
148+
":networkconnectivity_go_gapic",
149+
":networkconnectivity_go_gapic_srcjar-test.srcjar",
150+
":networkconnectivity_go_gapic_srcjar-metadata.srcjar",
151+
":networkconnectivity_go_proto",
152+
],
153+
)
154+
155+
##############################################################################
156+
# Python
157+
##############################################################################
158+
load(
159+
"@com_google_googleapis_imports//:imports.bzl",
160+
"py_gapic_assembly_pkg",
161+
"py_gapic_library",
162+
)
163+
164+
py_gapic_library(
165+
name = "networkconnectivity_py_gapic",
166+
srcs = [":networkconnectivity_proto"],
167+
grpc_service_config = "networkconnectivity_v1_grpc_service_config.json",
168+
)
169+
170+
# Open Source Packages
171+
py_gapic_assembly_pkg(
172+
name = "networkconnectivity-v1-py",
173+
deps = [
174+
":networkconnectivity_py_gapic",
175+
],
176+
)
177+
178+
##############################################################################
179+
# PHP
180+
##############################################################################
181+
load(
182+
"@com_google_googleapis_imports//:imports.bzl",
183+
"php_gapic_assembly_pkg",
184+
"php_gapic_library",
185+
"php_grpc_library",
186+
"php_proto_library",
187+
)
188+
189+
php_proto_library(
190+
name = "networkconnectivity_php_proto",
191+
deps = [":networkconnectivity_proto"],
192+
)
193+
194+
php_grpc_library(
195+
name = "networkconnectivity_php_grpc",
196+
srcs = [":networkconnectivity_proto"],
197+
deps = [":networkconnectivity_php_proto"],
198+
)
199+
200+
php_gapic_library(
201+
name = "networkconnectivity_php_gapic",
202+
srcs = [":networkconnectivity_proto_with_info"],
203+
grpc_service_config = "networkconnectivity_v1_grpc_service_config.json",
204+
service_yaml = "networkconnectivity_v1.yaml",
205+
deps = [
206+
":networkconnectivity_php_grpc",
207+
":networkconnectivity_php_proto",
208+
],
209+
)
210+
211+
# Open Source Packages
212+
php_gapic_assembly_pkg(
213+
name = "google-cloud-networkconnectivity-v1-php",
214+
deps = [
215+
":networkconnectivity_php_gapic",
216+
":networkconnectivity_php_grpc",
217+
":networkconnectivity_php_proto",
218+
],
219+
)
220+
221+
##############################################################################
222+
# Node.js
223+
##############################################################################
224+
load(
225+
"@com_google_googleapis_imports//:imports.bzl",
226+
"nodejs_gapic_assembly_pkg",
227+
"nodejs_gapic_library",
228+
)
229+
230+
nodejs_gapic_library(
231+
name = "networkconnectivity_nodejs_gapic",
232+
package_name = "@google-cloud/networkconnectivity",
233+
src = ":networkconnectivity_proto_with_info",
234+
extra_protoc_parameters = ["metadata"],
235+
grpc_service_config = "networkconnectivity_v1_grpc_service_config.json",
236+
package = "google.cloud.networkconnectivity.v1",
237+
service_yaml = "networkconnectivity_v1.yaml",
238+
deps = [],
239+
)
240+
241+
nodejs_gapic_assembly_pkg(
242+
name = "networkconnectivity-v1-nodejs",
243+
deps = [
244+
":networkconnectivity_nodejs_gapic",
245+
":networkconnectivity_proto",
246+
],
247+
)
248+
249+
##############################################################################
250+
# Ruby
251+
##############################################################################
252+
load(
253+
"@com_google_googleapis_imports//:imports.bzl",
254+
"ruby_gapic_assembly_pkg",
255+
"ruby_cloud_gapic_library",
256+
"ruby_grpc_library",
257+
"ruby_proto_library",
258+
)
259+
260+
ruby_proto_library(
261+
name = "networkconnectivity_ruby_proto",
262+
deps = [":networkconnectivity_proto"],
263+
)
264+
265+
ruby_grpc_library(
266+
name = "networkconnectivity_ruby_grpc",
267+
srcs = [":networkconnectivity_proto"],
268+
deps = [":networkconnectivity_ruby_proto"],
269+
)
270+
271+
ruby_cloud_gapic_library(
272+
name = "networkconnectivity_ruby_gapic",
273+
srcs = [":networkconnectivity_proto_with_info"],
274+
extra_protoc_parameters = [
275+
"ruby-cloud-gem-name=google-cloud-networkconnectivity-v1",
276+
],
277+
grpc_service_config = "networkconnectivity_v1_grpc_service_config.json",
278+
deps = [
279+
":networkconnectivity_ruby_grpc",
280+
":networkconnectivity_ruby_proto",
281+
],
282+
)
283+
284+
# Open Source Packages
285+
ruby_gapic_assembly_pkg(
286+
name = "google-cloud-networkconnectivity-v1-ruby",
287+
deps = [
288+
":networkconnectivity_ruby_gapic",
289+
":networkconnectivity_ruby_grpc",
290+
":networkconnectivity_ruby_proto",
291+
],
292+
)
293+
294+
##############################################################################
295+
# C#
296+
##############################################################################
297+
load(
298+
"@com_google_googleapis_imports//:imports.bzl",
299+
"csharp_gapic_assembly_pkg",
300+
"csharp_gapic_library",
301+
"csharp_grpc_library",
302+
"csharp_proto_library",
303+
)
304+
305+
csharp_proto_library(
306+
name = "networkconnectivity_csharp_proto",
307+
deps = [":networkconnectivity_proto"],
308+
)
309+
310+
csharp_grpc_library(
311+
name = "networkconnectivity_csharp_grpc",
312+
srcs = [":networkconnectivity_proto"],
313+
deps = [":networkconnectivity_csharp_proto"],
314+
)
315+
316+
csharp_gapic_library(
317+
name = "networkconnectivity_csharp_gapic",
318+
srcs = [":networkconnectivity_proto_with_info"],
319+
common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json",
320+
grpc_service_config = "networkconnectivity_v1_grpc_service_config.json",
321+
deps = [
322+
":networkconnectivity_csharp_grpc",
323+
":networkconnectivity_csharp_proto",
324+
],
325+
)
326+
327+
# Open Source Packages
328+
csharp_gapic_assembly_pkg(
329+
name = "google-cloud-networkconnectivity-v1-csharp",
330+
deps = [
331+
":networkconnectivity_csharp_gapic",
332+
":networkconnectivity_csharp_grpc",
333+
":networkconnectivity_csharp_proto",
334+
],
335+
)
336+
337+
##############################################################################
338+
# C++
339+
##############################################################################
340+
# Put your C++ rules here
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
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.networkconnectivity.v1;
18+
19+
import "google/api/field_behavior.proto";
20+
import "google/protobuf/timestamp.proto";
21+
import "google/api/annotations.proto";
22+
23+
option csharp_namespace = "Google.Cloud.NetworkConnectivity.V1";
24+
option go_package = "google.golang.org/genproto/googleapis/cloud/networkconnectivity/v1;networkconnectivity";
25+
option java_multiple_files = true;
26+
option java_outer_classname = "CommonProto";
27+
option java_package = "com.google.cloud.networkconnectivity.v1";
28+
option php_namespace = "Google\\Cloud\\NetworkConnectivity\\V1";
29+
option ruby_package = "Google::Cloud::NetworkConnectivity::V1";
30+
31+
// Represents the metadata of the long-running operation.
32+
message OperationMetadata {
33+
// Output only. The time the operation was created.
34+
google.protobuf.Timestamp create_time = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
35+
36+
// Output only. The time the operation finished running.
37+
google.protobuf.Timestamp end_time = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
38+
39+
// Output only. Server-defined resource path for the target of the operation.
40+
string target = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
41+
42+
// Output only. Name of the verb executed by the operation.
43+
string verb = 4 [(google.api.field_behavior) = OUTPUT_ONLY];
44+
45+
// Output only. Human-readable status of the operation, if any.
46+
string status_message = 5 [(google.api.field_behavior) = OUTPUT_ONLY];
47+
48+
// Output only. Identifies whether the user has requested cancellation
49+
// of the operation. Operations that have successfully been cancelled
50+
// have [Operation.error][] value with a [google.rpc.Status.code][google.rpc.Status.code] of 1,
51+
// corresponding to `Code.CANCELLED`.
52+
bool requested_cancellation = 6 [(google.api.field_behavior) = OUTPUT_ONLY];
53+
54+
// Output only. API version used to start the operation.
55+
string api_version = 7 [(google.api.field_behavior) = OUTPUT_ONLY];
56+
}

0 commit comments

Comments
 (0)