Skip to content

Commit b0a8651

Browse files
Google APIscopybara-github
authored andcommitted
fix!: revert bad publishing
This RPC is not supposed to be published at this moment because Java generator cannot support this path template. It will be re-published when the generator is fixed. PiperOrigin-RevId: 423936238
1 parent b0c104f commit b0a8651

5 files changed

Lines changed: 244 additions & 101 deletions

File tree

google/container/v1/BUILD.bazel

Lines changed: 25 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,13 @@
11
# 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.
211

312
# This is an API workspace, having public visibility by default makes perfect sense.
413
package(default_visibility = ["//visibility:public"])
@@ -18,8 +27,12 @@ proto_library(
1827
"//google/api:annotations_proto",
1928
"//google/api:client_proto",
2029
"//google/api:field_behavior_proto",
30+
"//google/api:resource_proto",
31+
"//google/rpc:code_proto",
32+
"//google/rpc:status_proto",
2133
"@com_google_protobuf//:empty_proto",
2234
"@com_google_protobuf//:timestamp_proto",
35+
"@com_google_protobuf//:wrappers_proto",
2336
],
2437
)
2538

@@ -59,11 +72,13 @@ java_gapic_library(
5972
srcs = [":container_proto_with_info"],
6073
gapic_yaml = "container_gapic.yaml",
6174
grpc_service_config = "container_grpc_service_config.json",
75+
service_yaml = "container_v1.yaml",
6276
test_deps = [
6377
":container_java_grpc",
6478
],
6579
deps = [
6680
":container_java_proto",
81+
"//google/api:api_java_proto",
6782
],
6883
)
6984

@@ -104,6 +119,8 @@ go_proto_library(
104119
protos = [":container_proto"],
105120
deps = [
106121
"//google/api:annotations_go_proto",
122+
"//google/rpc:code_go_proto",
123+
"//google/rpc:status_go_proto",
107124
],
108125
)
109126

@@ -112,6 +129,7 @@ go_gapic_library(
112129
srcs = [":container_proto_with_info"],
113130
grpc_service_config = "container_grpc_service_config.json",
114131
importpath = "cloud.google.com/go/container/apiv1;container",
132+
metadata = True,
115133
service_yaml = "container_v1.yaml",
116134
deps = [
117135
":container_go_proto",
@@ -130,6 +148,7 @@ go_gapic_assembly_pkg(
130148
name = "gapi-cloud-container-v1-go",
131149
deps = [
132150
":container_go_gapic",
151+
":container_go_gapic_srcjar-metadata.srcjar",
133152
":container_go_gapic_srcjar-test.srcjar",
134153
":container_go_proto",
135154
],
@@ -149,11 +168,12 @@ py_gapic_library(
149168
srcs = [":container_proto"],
150169
grpc_service_config = "container_grpc_service_config.json",
151170
opt_args = [
152-
"warehouse-package-name=google-cloud-container",
153171
"python-gapic-namespace=google.cloud",
172+
"warehouse-package-name=google-cloud-container",
154173
],
155174
)
156175

176+
# Open Source Packages
157177
py_gapic_assembly_pkg(
158178
name = "container-v1-py",
159179
deps = [
@@ -187,6 +207,7 @@ php_gapic_library(
187207
name = "container_php_gapic",
188208
srcs = [":container_proto_with_info"],
189209
grpc_service_config = "container_grpc_service_config.json",
210+
service_yaml = "container_v1.yaml",
190211
deps = [
191212
":container_php_grpc",
192213
":container_php_proto",
@@ -257,11 +278,11 @@ ruby_cloud_gapic_library(
257278
name = "container_ruby_gapic",
258279
srcs = [":container_proto_with_info"],
259280
extra_protoc_parameters = [
260-
"ruby-cloud-gem-name=google-cloud-container-v1",
261-
"ruby-cloud-env-prefix=CONTAINER",
262-
"ruby-cloud-product-url=https://cloud.google.com/kubernetes-engine",
263281
"ruby-cloud-api-id=container.googleapis.com",
264282
"ruby-cloud-api-shortname=container",
283+
"ruby-cloud-env-prefix=CONTAINER",
284+
"ruby-cloud-gem-name=google-cloud-container-v1",
285+
"ruby-cloud-product-url=https://cloud.google.com/kubernetes-engine",
265286
],
266287
grpc_service_config = "container_grpc_service_config.json",
267288
ruby_cloud_description = "Builds and manages container-based applications, powered by the open source Kubernetes technology.",

google/container/v1/cluster_service.proto

Lines changed: 4 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@ option java_outer_classname = "ClusterServiceProto";
3333
option java_package = "com.google.container.v1";
3434
option php_namespace = "Google\\Cloud\\Container\\V1";
3535
option ruby_package = "Google::Cloud::Container::V1";
36+
option (google.api.resource_definition) = {
37+
type: "pubsub.googleapis.com/Topic"
38+
pattern: "projects/{project}/topics/{topic}"
39+
};
3640

3741
// Google Kubernetes Engine Cluster Manager v1
3842
service ClusterManager {
@@ -286,19 +290,6 @@ service ClusterManager {
286290
option (google.api.method_signature) = "name";
287291
}
288292

289-
// Gets the OIDC discovery document for the cluster.
290-
// See the
291-
// [OpenID Connect Discovery 1.0
292-
// specification](https://openid.net/specs/openid-connect-discovery-1_0.html)
293-
// for details.
294-
// This API is not yet intended for general use, and is not available for all
295-
// clusters.
296-
rpc GetOpenIDConfig(GetOpenIDConfigRequest) returns (GetOpenIDConfigResponse) {
297-
option (google.api.http) = {
298-
get: "/v1/{parent=projects/*/locations/*/clusters/*}/.well-known/openid-configuration"
299-
};
300-
}
301-
302293
// Gets the public component of the cluster signing keys in
303294
// JSON Web Key format.
304295
// This API is not yet intended for general use, and is not available for all
@@ -3393,39 +3384,6 @@ message ServiceExternalIPsConfig {
33933384
bool enabled = 1;
33943385
}
33953386

3396-
// GetOpenIDConfigRequest gets the OIDC discovery document for the
3397-
// cluster. See the OpenID Connect Discovery 1.0 specification for details.
3398-
message GetOpenIDConfigRequest {
3399-
// The cluster (project, location, cluster id) to get the discovery document
3400-
// for. Specified in the format `projects/*/locations/*/clusters/*`.
3401-
string parent = 1;
3402-
}
3403-
3404-
// GetOpenIDConfigResponse is an OIDC discovery document for the cluster.
3405-
// See the OpenID Connect Discovery 1.0 specification for details.
3406-
message GetOpenIDConfigResponse {
3407-
// OIDC Issuer.
3408-
string issuer = 1;
3409-
3410-
// JSON Web Key uri.
3411-
string jwks_uri = 2;
3412-
3413-
// Supported response types.
3414-
repeated string response_types_supported = 3;
3415-
3416-
// Supported subject types.
3417-
repeated string subject_types_supported = 4;
3418-
3419-
// supported ID Token signing Algorithms.
3420-
repeated string id_token_signing_alg_values_supported = 5;
3421-
3422-
// Supported claims.
3423-
repeated string claims_supported = 6;
3424-
3425-
// Supported grant types.
3426-
repeated string grant_types = 7;
3427-
}
3428-
34293387
// GetJSONWebKeysRequest gets the public component of the keys used by the
34303388
// cluster to sign token requests. This will be the jwks_uri for the discover
34313389
// document returned by getOpenIDConfig. See the OpenID Connect
Lines changed: 178 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,178 @@
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 = "container_proto",
13+
srcs = [
14+
"cluster_service.proto",
15+
],
16+
deps = [
17+
"//google/api:annotations_proto",
18+
"@com_google_protobuf//:empty_proto",
19+
],
20+
)
21+
22+
##############################################################################
23+
# Java
24+
##############################################################################
25+
load(
26+
"@com_google_googleapis_imports//:imports.bzl",
27+
"java_grpc_library",
28+
"java_proto_library",
29+
)
30+
31+
java_proto_library(
32+
name = "container_java_proto",
33+
deps = [":container_proto"],
34+
)
35+
36+
java_grpc_library(
37+
name = "container_java_grpc",
38+
srcs = [":container_proto"],
39+
deps = [":container_java_proto"],
40+
)
41+
42+
##############################################################################
43+
# Go
44+
##############################################################################
45+
load(
46+
"@com_google_googleapis_imports//:imports.bzl",
47+
"go_proto_library",
48+
)
49+
50+
go_proto_library(
51+
name = "container_go_proto",
52+
compilers = ["@io_bazel_rules_go//proto:go_grpc"],
53+
importpath = "google.golang.org/genproto/googleapis/container/v1alpha1",
54+
protos = [":container_proto"],
55+
deps = [
56+
"//google/api:annotations_go_proto",
57+
],
58+
)
59+
60+
##############################################################################
61+
# Python
62+
##############################################################################
63+
load(
64+
"@com_google_googleapis_imports//:imports.bzl",
65+
"moved_proto_library",
66+
"py_grpc_library",
67+
"py_proto_library",
68+
)
69+
70+
moved_proto_library(
71+
name = "container_moved_proto",
72+
srcs = [":container_proto"],
73+
deps = [
74+
"//google/api:annotations_proto",
75+
"@com_google_protobuf//:empty_proto",
76+
],
77+
)
78+
79+
py_proto_library(
80+
name = "container_py_proto",
81+
deps = [":container_moved_proto"],
82+
)
83+
84+
py_grpc_library(
85+
name = "container_py_grpc",
86+
srcs = [":container_moved_proto"],
87+
deps = [":container_py_proto"],
88+
)
89+
90+
##############################################################################
91+
# PHP
92+
##############################################################################
93+
load(
94+
"@com_google_googleapis_imports//:imports.bzl",
95+
"php_grpc_library",
96+
"php_proto_library",
97+
)
98+
99+
php_proto_library(
100+
name = "container_php_proto",
101+
deps = [":container_proto"],
102+
)
103+
104+
php_grpc_library(
105+
name = "container_php_grpc",
106+
srcs = [":container_proto"],
107+
deps = [":container_php_proto"],
108+
)
109+
110+
##############################################################################
111+
# Node.js
112+
##############################################################################
113+
load(
114+
"@com_google_googleapis_imports//:imports.bzl",
115+
"nodejs_gapic_assembly_pkg",
116+
"nodejs_gapic_library",
117+
)
118+
119+
##############################################################################
120+
# Ruby
121+
##############################################################################
122+
load(
123+
"@com_google_googleapis_imports//:imports.bzl",
124+
"ruby_grpc_library",
125+
"ruby_proto_library",
126+
)
127+
128+
ruby_proto_library(
129+
name = "container_ruby_proto",
130+
deps = [":container_proto"],
131+
)
132+
133+
ruby_grpc_library(
134+
name = "container_ruby_grpc",
135+
srcs = [":container_proto"],
136+
deps = [":container_ruby_proto"],
137+
)
138+
139+
##############################################################################
140+
# C#
141+
##############################################################################
142+
load(
143+
"@com_google_googleapis_imports//:imports.bzl",
144+
"csharp_grpc_library",
145+
"csharp_proto_library",
146+
)
147+
148+
csharp_proto_library(
149+
name = "container_csharp_proto",
150+
deps = [":container_proto"],
151+
)
152+
153+
csharp_grpc_library(
154+
name = "container_csharp_grpc",
155+
srcs = [":container_proto"],
156+
deps = [":container_csharp_proto"],
157+
)
158+
159+
##############################################################################
160+
# C++
161+
##############################################################################
162+
load(
163+
"@com_google_googleapis_imports//:imports.bzl",
164+
"cc_grpc_library",
165+
"cc_proto_library",
166+
)
167+
168+
cc_proto_library(
169+
name = "container_cc_proto",
170+
deps = [":container_proto"],
171+
)
172+
173+
cc_grpc_library(
174+
name = "container_cc_grpc",
175+
srcs = [":container_proto"],
176+
grpc_only = True,
177+
deps = [":container_cc_proto"],
178+
)

0 commit comments

Comments
 (0)