Skip to content

Commit 2e15056

Browse files
Google APIscopybara-github
authored andcommitted
feat: connectgateway public protos
Committer: @miraleung PiperOrigin-RevId: 377054275
1 parent 46f4f70 commit 2e15056

10 files changed

Lines changed: 245 additions & 0 deletions
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
exports_files(glob(["*.yaml"]))
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
type: google.api.Service
2+
config_version: 3
3+
name: connectgateway.googleapis.com
4+
title: Connect Gateway API
5+
6+
apis:
7+
- name: google.cloud.gkeconnect.gateway.v1.GatewayService
8+
9+
documentation:
10+
summary: |-
11+
The Connect Gateway service allows connectivity from external parties to
12+
connected Kubernetes clusters.
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"methodConfig": [{
3+
"name": [
4+
{ "service": "google.cloud/gkeconnect.gateway.v1main.GatewayService" }
5+
],
6+
"timeout": "60s",
7+
"retryPolicy": {
8+
"maxAttempts": 5,
9+
"initialBackoff": "1s",
10+
"maxBackoff": "10s",
11+
"backoffMultiplier": 1.3,
12+
"retryableStatusCodes": ["UNAVAILABLE"]
13+
}
14+
}]
15+
}
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
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.gkeconnect.gateway.v1;
18+
19+
import "google/api/annotations.proto";
20+
import "google/api/client.proto";
21+
import "google/api/httpbody.proto";
22+
23+
option csharp_namespace = "Google.Cloud.GkeConnect.Gateway.V1";
24+
option go_package = "google.golang.org/genproto/googleapis/cloud/gkeconnect/gateway/v1;gateway";
25+
option java_multiple_files = true;
26+
option java_outer_classname = "GatewayProto";
27+
option java_package = "com.google.cloud.gkeconnect.gateway.v1";
28+
option php_namespace = "Google\\Cloud\\GkeConnect\\Gateway\\V1";
29+
option ruby_package = "Google::Cloud::GkeConnect::Gateway::V1";
30+
31+
// Gateway service is a public API which works as a Kubernetes resource model
32+
// proxy between end users and registered Kubernetes clusters. Each RPC in this
33+
// service matches with an HTTP verb. End user will initiate kubectl commands
34+
// against the Gateway service, and Gateway service will forward user requests
35+
// to clusters.
36+
service GatewayService {
37+
option (google.api.default_host) = "connectgateway.googleapis.com";
38+
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
type: google.api.Service
2+
config_version: 3
3+
name: connectgateway.googleapis.com
4+
title: Connect Gateway API
5+
6+
apis:
7+
- name: google.cloud.gkeconnect.gateway.v1alpha1.GatewayService
8+
9+
documentation:
10+
summary: |-
11+
The Connect Gateway service allows connectivity from external parties to
12+
connected Kubernetes clusters.
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"methodConfig": [{
3+
"name": [
4+
{ "service": "google.cloud/gkeconnect.gateway.v1main.GatewayService" }
5+
],
6+
"timeout": "60s",
7+
"retryPolicy": {
8+
"maxAttempts": 5,
9+
"initialBackoff": "1s",
10+
"maxBackoff": "10s",
11+
"backoffMultiplier": 1.3,
12+
"retryableStatusCodes": ["UNAVAILABLE"]
13+
}
14+
}]
15+
}
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
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.gkeconnect.gateway.v1alpha1;
18+
19+
import "google/api/annotations.proto";
20+
import "google/api/client.proto";
21+
import "google/api/httpbody.proto";
22+
23+
option csharp_namespace = "Google.Cloud.GkeConnect.Gateway.V1Alpha1";
24+
option go_package = "google.golang.org/genproto/googleapis/cloud/gkeconnect/gateway/v1alpha1;gateway";
25+
option java_multiple_files = true;
26+
option java_outer_classname = "GatewayProto";
27+
option java_package = "com.google.cloud.gkeconnect.gateway.v1alpha1";
28+
option php_namespace = "Google\\Cloud\\GkeConnect\\Gateway\\V1alpha1";
29+
option ruby_package = "Google::Cloud::GkeConnect::Gateway::V1alpha1";
30+
31+
// Gateway service is a public API which works as a Kubernetes resource model
32+
// proxy between end users and registered Kubernetes clusters. Each RPC in this
33+
// service matches with an HTTP verb. End user will initiate kubectl commands
34+
// against the Gateway service, and Gateway service will forward user requests
35+
// to clusters.
36+
service GatewayService {
37+
option (google.api.default_host) = "connectgateway.googleapis.com";
38+
}
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
type: google.api.Service
2+
config_version: 3
3+
name: connectgateway.googleapis.com
4+
title: Connect Gateway API
5+
6+
apis:
7+
- name: google.cloud.gkeconnect.gateway.v1beta1.GatewayService
8+
9+
documentation:
10+
summary: |-
11+
The Connect Gateway service allows connectivity from external parties to
12+
connected Kubernetes clusters.
13+
14+
backend:
15+
rules:
16+
- selector: 'google.cloud.gkeconnect.gateway.v1beta1.GatewayService.*'
17+
deadline: 300.0
18+
19+
authentication:
20+
rules:
21+
- selector: 'google.cloud.gkeconnect.gateway.v1beta1.GatewayService.*'
22+
oauth:
23+
canonical_scopes: |-
24+
https://www.googleapis.com/auth/cloud-platform
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"methodConfig": [{
3+
"name": [
4+
{ "service": "google.cloud/gkeconnect.gateway.v1main.GatewayService" }
5+
],
6+
"timeout": "60s",
7+
"retryPolicy": {
8+
"maxAttempts": 5,
9+
"initialBackoff": "1s",
10+
"maxBackoff": "10s",
11+
"backoffMultiplier": 1.3,
12+
"retryableStatusCodes": ["UNAVAILABLE"]
13+
}
14+
}]
15+
}
Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
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.gkeconnect.gateway.v1beta1;
18+
19+
import "google/api/annotations.proto";
20+
import "google/api/client.proto";
21+
import "google/api/httpbody.proto";
22+
23+
option csharp_namespace = "Google.Cloud.Gkeconnect.Gateway.V1Beta1";
24+
option go_package = "google.golang.org/genproto/googleapis/cloud/gkeconnect/gateway/v1beta1;gateway";
25+
option java_multiple_files = true;
26+
option java_outer_classname = "GatewayProto";
27+
option java_package = "com.google.cloud.gkeconnect.gateway.v1beta1";
28+
option php_namespace = "Google\\Cloud\\Gkeconnect\\Gateway\\V1beta1";
29+
option ruby_package = "Google::Cloud::Gkeconnect::Gateway::V1beta1";
30+
31+
// Gateway service is a public API which works as a Kubernetes resource model
32+
// proxy between end users and registered Kubernetes clusters. Each RPC in this
33+
// service matches with an HTTP verb. End user will initiate kubectl commands
34+
// against the Gateway service, and Gateway service will forward user requests
35+
// to clusters.
36+
service GatewayService {
37+
option (google.api.default_host) = "connectgateway.googleapis.com";
38+
option (google.api.oauth_scopes) =
39+
"https://www.googleapis.com/auth/cloud-platform";
40+
41+
// GetResource performs an HTTP GET request on the Kubernetes API Server.
42+
rpc GetResource(google.api.HttpBody) returns (google.api.HttpBody) {
43+
option (google.api.http) = {
44+
get: "/v1beta1/**"
45+
};
46+
}
47+
48+
// PostResource performs an HTTP POST on the Kubernetes API Server.
49+
rpc PostResource(google.api.HttpBody) returns (google.api.HttpBody) {
50+
option (google.api.http) = {
51+
post: "/v1beta1/**"
52+
};
53+
}
54+
55+
// DeleteResource performs an HTTP DELETE on the Kubernetes API Server.
56+
rpc DeleteResource(google.api.HttpBody) returns (google.api.HttpBody) {
57+
option (google.api.http) = {
58+
delete: "/v1beta1/**"
59+
};
60+
}
61+
62+
// PutResource performs an HTTP PUT on the Kubernetes API Server.
63+
rpc PutResource(google.api.HttpBody) returns (google.api.HttpBody) {
64+
option (google.api.http) = {
65+
put: "/v1beta1/**"
66+
};
67+
}
68+
69+
// PatchResource performs an HTTP PATCH on the Kubernetes API Server.
70+
rpc PatchResource(google.api.HttpBody) returns (google.api.HttpBody) {
71+
option (google.api.http) = {
72+
patch: "/v1beta1/**"
73+
};
74+
}
75+
}

0 commit comments

Comments
 (0)