Skip to content

Commit 06f21c4

Browse files
Google APIscopybara-github
authored andcommitted
feat: add EdgeCluster as a new membershipEndpoint type
feat: add ApplianceCluster as a new membershipEndpoint type feat: add c++ rules in BUILD file doc: add API annotations doc: minor changes on code and doc format PiperOrigin-RevId: 451205950
1 parent b0c0dab commit 06f21c4

3 files changed

Lines changed: 202 additions & 143 deletions

File tree

google/cloud/gkehub/v1beta1/BUILD.bazel

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ proto_library_with_info(
4040
deps = [
4141
":gkehub_proto",
4242
"//google/cloud:common_resources_proto",
43+
"//google/cloud/location:location_proto",
44+
"//google/iam/v1:iam_policy_proto",
4345
],
4446
)
4547

@@ -75,12 +77,14 @@ java_gapic_library(
7577
test_deps = [
7678
":gkehub_java_grpc",
7779
"//google/cloud/location:location_java_grpc",
80+
"//google/iam/v1:iam_java_grpc",
7881
],
7982
deps = [
8083
":gkehub_java_proto",
8184
"//google/api:api_java_proto",
8285
"//google/cloud/location:location_java_grpc",
8386
"//google/cloud/location:location_java_proto",
87+
"//google/iam/v1:iam_java_proto",
8488
],
8589
)
8690

@@ -138,6 +142,8 @@ go_gapic_library(
138142
service_yaml = "gkehub_v1beta1.yaml",
139143
deps = [
140144
":gkehub_go_proto",
145+
"//google/cloud/location:location_go_proto",
146+
"//google/iam/v1:iam_go_proto",
141147
"//google/longrunning:longrunning_go_proto",
142148
"@com_google_cloud_go//longrunning:go_default_library",
143149
"@com_google_cloud_go//longrunning/autogen:go_default_library",
@@ -176,6 +182,7 @@ py_gapic_library(
176182
srcs = [":gkehub_proto"],
177183
grpc_service_config = "membership_grpc_service_config.json",
178184
opt_args = ["warehouse-package-name=google-cloud-gke-hub"],
185+
service_yaml = "gkehub_v1beta1.yaml",
179186
)
180187

181188
# Open Source Packages
@@ -355,4 +362,20 @@ csharp_gapic_assembly_pkg(
355362
##############################################################################
356363
# C++
357364
##############################################################################
358-
# Put your C++ rules here
365+
load(
366+
"@com_google_googleapis_imports//:imports.bzl",
367+
"cc_grpc_library",
368+
"cc_proto_library",
369+
)
370+
371+
cc_proto_library(
372+
name = "gkehub_cc_proto",
373+
deps = [":gkehub_proto"],
374+
)
375+
376+
cc_grpc_library(
377+
name = "gkehub_cc_grpc",
378+
srcs = [":gkehub_proto"],
379+
grpc_only = True,
380+
deps = [":gkehub_cc_proto"],
381+
)

google/cloud/gkehub/v1beta1/gkehub_v1beta1.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ title: GKE Hub API
55

66
apis:
77
- name: google.cloud.gkehub.v1beta1.GkeHubMembershipService
8+
- name: google.cloud.location.Locations
9+
- name: google.iam.v1.IAMPolicy
10+
- name: google.longrunning.Operations
811

912
types:
1013
- name: google.cloud.gkehub.v1beta1.OperationMetadata

0 commit comments

Comments
 (0)