Skip to content

Commit 68122a0

Browse files
Google APIscopybara-github
authored andcommitted
feat: IntroduceMembership API v1alpha2 proto
PiperOrigin-RevId: 350654259
1 parent 3131ab5 commit 68122a0

4 files changed

Lines changed: 882 additions & 0 deletions

File tree

Lines changed: 175 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,175 @@
1+
# This file was automatically generated by BuildFileGenerator
2+
3+
# This is an API workspace, having public visibility by default makes perfect sense.
4+
package(default_visibility = ["//visibility:public"])
5+
6+
##############################################################################
7+
# Common
8+
##############################################################################
9+
load("@rules_proto//proto:defs.bzl", "proto_library")
10+
11+
proto_library(
12+
name = "gkehub_proto",
13+
srcs = [
14+
"membership.proto",
15+
],
16+
deps = [
17+
"//google/api:annotations_proto",
18+
"//google/api:client_proto",
19+
"//google/api:field_behavior_proto",
20+
"//google/api:resource_proto",
21+
"//google/longrunning:operations_proto",
22+
"@com_google_protobuf//:field_mask_proto",
23+
"@com_google_protobuf//:timestamp_proto",
24+
],
25+
)
26+
27+
##############################################################################
28+
# Java
29+
##############################################################################
30+
load(
31+
"@com_google_googleapis_imports//:imports.bzl",
32+
"java_grpc_library",
33+
"java_proto_library",
34+
)
35+
36+
java_proto_library(
37+
name = "gkehub_java_proto",
38+
deps = [":gkehub_proto"],
39+
)
40+
41+
java_grpc_library(
42+
name = "gkehub_java_grpc",
43+
srcs = [":gkehub_proto"],
44+
deps = [":gkehub_java_proto"],
45+
)
46+
47+
##############################################################################
48+
# Go
49+
##############################################################################
50+
load(
51+
"@com_google_googleapis_imports//:imports.bzl",
52+
"go_proto_library",
53+
)
54+
55+
go_proto_library(
56+
name = "gkehub_go_proto",
57+
compilers = ["@io_bazel_rules_go//proto:go_grpc"],
58+
importpath = "google.golang.org/genproto/googleapis/cloud/gkehub/v1alpha2",
59+
protos = [":gkehub_proto"],
60+
deps = [
61+
"//google/api:annotations_go_proto",
62+
"//google/longrunning:longrunning_go_proto",
63+
],
64+
)
65+
66+
##############################################################################
67+
# Python
68+
##############################################################################
69+
load(
70+
"@com_google_googleapis_imports//:imports.bzl",
71+
"moved_proto_library",
72+
"py_grpc_library",
73+
"py_proto_library",
74+
)
75+
76+
moved_proto_library(
77+
name = "gkehub_moved_proto",
78+
srcs = [":gkehub_proto"],
79+
deps = [
80+
"//google/api:annotations_proto",
81+
"//google/api:client_proto",
82+
"//google/api:field_behavior_proto",
83+
"//google/api:resource_proto",
84+
"//google/longrunning:operations_proto",
85+
"@com_google_protobuf//:field_mask_proto",
86+
"@com_google_protobuf//:timestamp_proto",
87+
],
88+
)
89+
90+
py_proto_library(
91+
name = "gkehub_py_proto",
92+
plugin = "@protoc_docs_plugin//:docs_plugin",
93+
deps = [":gkehub_moved_proto"],
94+
)
95+
96+
py_grpc_library(
97+
name = "gkehub_py_grpc",
98+
srcs = [":gkehub_moved_proto"],
99+
deps = [":gkehub_py_proto"],
100+
)
101+
102+
##############################################################################
103+
# PHP
104+
##############################################################################
105+
load(
106+
"@com_google_googleapis_imports//:imports.bzl",
107+
"php_grpc_library",
108+
"php_proto_library",
109+
)
110+
111+
php_proto_library(
112+
name = "gkehub_php_proto",
113+
deps = [":gkehub_proto"],
114+
)
115+
116+
php_grpc_library(
117+
name = "gkehub_php_grpc",
118+
srcs = [":gkehub_proto"],
119+
deps = [":gkehub_php_proto"],
120+
)
121+
122+
##############################################################################
123+
# Node.js
124+
##############################################################################
125+
load(
126+
"@com_google_googleapis_imports//:imports.bzl",
127+
"nodejs_gapic_assembly_pkg",
128+
"nodejs_gapic_library",
129+
)
130+
131+
132+
##############################################################################
133+
# Ruby
134+
##############################################################################
135+
load(
136+
"@com_google_googleapis_imports//:imports.bzl",
137+
"ruby_grpc_library",
138+
"ruby_proto_library",
139+
)
140+
141+
ruby_proto_library(
142+
name = "gkehub_ruby_proto",
143+
deps = [":gkehub_proto"],
144+
)
145+
146+
ruby_grpc_library(
147+
name = "gkehub_ruby_grpc",
148+
srcs = [":gkehub_proto"],
149+
deps = [":gkehub_ruby_proto"],
150+
)
151+
152+
##############################################################################
153+
# C#
154+
##############################################################################
155+
load(
156+
"@com_google_googleapis_imports//:imports.bzl",
157+
"csharp_grpc_library",
158+
"csharp_proto_library",
159+
)
160+
161+
csharp_proto_library(
162+
name = "gkehub_csharp_proto",
163+
deps = [":gkehub_proto"],
164+
)
165+
166+
csharp_grpc_library(
167+
name = "gkehub_csharp_grpc",
168+
srcs = [":gkehub_proto"],
169+
deps = [":gkehub_csharp_proto"],
170+
)
171+
172+
##############################################################################
173+
# C++
174+
##############################################################################
175+
# Put your C++ code here
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
type: google.api.Service
2+
config_version: 3
3+
name: gkehub.googleapis.com
4+
title: GKE Hub
5+
6+
apis:
7+
- name: google.cloud.gkehub.v1alpha2.GkeHub
8+
9+
types:
10+
- name: google.cloud.gkehub.v1alpha2.OperationMetadata
11+
12+
documentation:
13+
rules:
14+
- selector: google.iam.v1.IAMPolicy.GetIamPolicy
15+
description: |-
16+
Gets the access control policy for a resource. Returns an empty policy
17+
if the resource exists and does not have a policy set.
18+
19+
- selector: google.iam.v1.IAMPolicy.SetIamPolicy
20+
description: |-
21+
Sets the access control policy on the specified resource. Replaces
22+
any existing policy.
23+
24+
Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`
25+
errors.
26+
27+
- selector: google.iam.v1.IAMPolicy.TestIamPermissions
28+
description: |-
29+
Returns permissions that a caller has on the specified resource. If the
30+
resource does not exist, this will return an empty set of
31+
permissions, not a `NOT_FOUND` error.
32+
33+
Note: This operation is designed to be used for building
34+
permission-aware UIs and command-line tools, not for authorization
35+
checking. This operation may "fail open" without warning.
36+
37+
backend:
38+
rules:
39+
- selector: 'google.cloud.gkehub.v1alpha2.GkeHub.*'
40+
deadline: 60.0
41+
- selector: 'google.iam.v1.IAMPolicy.*'
42+
deadline: 60.0
43+
- selector: 'google.longrunning.Operations.*'
44+
deadline: 60.0
45+
- selector: google.longrunning.Operations.GetOperation
46+
deadline: 5.0
47+
48+
authentication:
49+
rules:
50+
- selector: 'google.cloud.gkehub.v1alpha2.GkeHub.*'
51+
oauth:
52+
canonical_scopes: |-
53+
https://www.googleapis.com/auth/cloud-platform
54+
- selector: 'google.iam.v1.IAMPolicy.*'
55+
oauth:
56+
canonical_scopes: |-
57+
https://www.googleapis.com/auth/cloud-platform
58+
- selector: 'google.longrunning.Operations.*'
59+
oauth:
60+
canonical_scopes: |-
61+
https://www.googleapis.com/auth/cloud-platform

0 commit comments

Comments
 (0)