Skip to content

Commit cc003a4

Browse files
Google APIscopybara-github
authored andcommitted
fix!: Mark a couple networkconnectivity API fields as required, to match implemented behavior
PiperOrigin-RevId: 408969147
1 parent 895ad28 commit cc003a4

2 files changed

Lines changed: 16 additions & 13 deletions

File tree

google/cloud/networkconnectivity/v1/BUILD.bazel

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,12 +69,15 @@ java_grpc_library(
6969
java_gapic_library(
7070
name = "networkconnectivity_java_gapic",
7171
srcs = [":networkconnectivity_proto_with_info"],
72+
gapic_yaml = None,
7273
grpc_service_config = "networkconnectivity_v1_grpc_service_config.json",
74+
service_yaml = "networkconnectivity_v1.yaml",
7375
test_deps = [
7476
":networkconnectivity_java_grpc",
7577
],
7678
deps = [
7779
":networkconnectivity_java_proto",
80+
"//google/api:api_java_proto",
7881
],
7982
)
8083

@@ -124,13 +127,13 @@ go_gapic_library(
124127
srcs = [":networkconnectivity_proto_with_info"],
125128
grpc_service_config = "networkconnectivity_v1_grpc_service_config.json",
126129
importpath = "cloud.google.com/go/networkconnectivity/apiv1;networkconnectivity",
127-
service_yaml = "networkconnectivity_v1.yaml",
128130
metadata = True,
131+
service_yaml = "networkconnectivity_v1.yaml",
129132
deps = [
130133
":networkconnectivity_go_proto",
131134
"//google/longrunning:longrunning_go_proto",
132-
"@com_google_cloud_go//longrunning/autogen:go_default_library",
133135
"@com_google_cloud_go//longrunning:go_default_library",
136+
"@com_google_cloud_go//longrunning/autogen:go_default_library",
134137
],
135138
)
136139

@@ -146,8 +149,8 @@ go_gapic_assembly_pkg(
146149
name = "gapi-cloud-networkconnectivity-v1-go",
147150
deps = [
148151
":networkconnectivity_go_gapic",
149-
":networkconnectivity_go_gapic_srcjar-test.srcjar",
150152
":networkconnectivity_go_gapic_srcjar-metadata.srcjar",
153+
":networkconnectivity_go_gapic_srcjar-test.srcjar",
151154
":networkconnectivity_go_proto",
152155
],
153156
)
@@ -251,8 +254,8 @@ nodejs_gapic_assembly_pkg(
251254
##############################################################################
252255
load(
253256
"@com_google_googleapis_imports//:imports.bzl",
254-
"ruby_gapic_assembly_pkg",
255257
"ruby_cloud_gapic_library",
258+
"ruby_gapic_assembly_pkg",
256259
"ruby_grpc_library",
257260
"ruby_proto_library",
258261
)

google/cloud/networkconnectivity/v1/hub.proto

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -164,8 +164,8 @@ service HubService {
164164
}
165165
}
166166

167-
// A hub is essentially a collection of spokes. A single hub can contain spokes
168-
// from multiple regions. However, all of a hub's spokes must be associated with
167+
// A hub is a collection of spokes. A single hub can contain spokes from
168+
// multiple regions. However, all of a hub's spokes must be associated with
169169
// resources that reside in the same VPC network.
170170
message Hub {
171171
option (google.api.resource) = {
@@ -225,10 +225,10 @@ enum State {
225225
DELETING = 3;
226226
}
227227

228-
// RoutingsVPC contains information about a VPC network that is associated with
228+
// RoutingVPC contains information about the VPC network that is associated with
229229
// a hub's spokes.
230230
message RoutingVPC {
231-
// The URI of a VPC network.
231+
// The URI of the VPC network.
232232
string uri = 1 [(google.api.resource_reference) = {
233233
type: "compute.googleapis.com/Network"
234234
}];
@@ -268,7 +268,7 @@ message Spoke {
268268
// An optional description of the spoke.
269269
string description = 5;
270270

271-
// Immutable. The URI of the hub that this spoke is attached to.
271+
// Immutable. The name of the hub that this spoke is attached to.
272272
string hub = 6 [
273273
(google.api.field_behavior) = IMMUTABLE,
274274
(google.api.resource_reference) = {
@@ -351,8 +351,8 @@ message CreateHubRequest {
351351
}
352352
];
353353

354-
// Optional. A unique identifier for the hub.
355-
string hub_id = 2 [(google.api.field_behavior) = OPTIONAL];
354+
// Required. A unique identifier for the hub.
355+
string hub_id = 2 [(google.api.field_behavior) = REQUIRED];
356356

357357
// Required. The initial values for a new hub.
358358
Hub hub = 3 [(google.api.field_behavior) = REQUIRED];
@@ -487,8 +487,8 @@ message CreateSpokeRequest {
487487
}
488488
];
489489

490-
// Optional. Unique id for the spoke to create.
491-
string spoke_id = 2 [(google.api.field_behavior) = OPTIONAL];
490+
// Required. Unique id for the spoke to create.
491+
string spoke_id = 2 [(google.api.field_behavior) = REQUIRED];
492492

493493
// Required. The initial values for a new spoke.
494494
Spoke spoke = 3 [(google.api.field_behavior) = REQUIRED];

0 commit comments

Comments
 (0)