Skip to content

Commit c03e3a5

Browse files
feat: [gkeconnect] removed the nonfunctional GatewayService and replaced it with the GatewayControl service (#5632)
* feat: removed the nonfunctional GatewayService and replaced it with the GatewayControl service BREAKING CHANGE: existing client libraries are being regenerated to remove unused functionality and introduce new features. PiperOrigin-RevId: 665485495 Source-Link: googleapis/googleapis@5e76753 Source-Link: googleapis/googleapis-gen@565ebdf Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWdrZWNvbm5lY3QtZ2F0ZXdheS8uT3dsQm90LnlhbWwiLCJoIjoiNTY1ZWJkZjhiMzNjZWVhYWVkOTcyZTBkOWZiZTRhYTA2M2U1MjkyZSJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * feat!: removed the nonfunctional GatewayService and replaced it with the GatewayControl service BREAKING CHANGE: existing client libraries are being regenerated to remove unused functionality and introduce new features. PiperOrigin-RevId: 665564055 Source-Link: googleapis/googleapis@71434fd Source-Link: googleapis/googleapis-gen@3fcf6a6 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWdrZWNvbm5lY3QtZ2F0ZXdheS8uT3dsQm90LnlhbWwiLCJoIjoiM2ZjZjZhNjk0M2E5MzBjYmE5MDkwZjhiODhhNmNhZjcxYzhmYjY5NCJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * removing test for deprecated service * update quickstart to use new service * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com> Co-authored-by: Sofia Leon <[email protected]> Co-authored-by: sofisl <[email protected]>
1 parent b03f419 commit c03e3a5

29 files changed

Lines changed: 4571 additions & 876 deletions

packages/google-cloud-gkeconnect-gateway/README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,10 @@ npm install @google-cloud/gke-connect-gateway
5959
```javascript
6060
// Imports the Google Cloud client library
6161

62-
const {GatewayServiceClient} = require('@google-cloud/gke-connect-gateway');
62+
const {GatewayControlClient} = require('@google-cloud/gke-connect-gateway');
6363

6464
// Creates a client
65-
new GatewayServiceClient();
65+
new GatewayControlClient();
6666

6767
```
6868

@@ -74,6 +74,8 @@ Samples are in the [`samples/`](https://github.com/googleapis/google-cloud-node/
7474

7575
| Sample | Source Code | Try it |
7676
| --------------------------- | --------------------------------- | ------ |
77+
| Gateway_control.generate_credentials | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-gkeconnect-gateway/samples/generated/v1/gateway_control.generate_credentials.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-gkeconnect-gateway/samples/generated/v1/gateway_control.generate_credentials.js,packages/google-cloud-gkeconnect-gateway/samples/README.md) |
78+
| Gateway_control.generate_credentials | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-gkeconnect-gateway/samples/generated/v1beta1/gateway_control.generate_credentials.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-gkeconnect-gateway/samples/generated/v1beta1/gateway_control.generate_credentials.js,packages/google-cloud-gkeconnect-gateway/samples/README.md) |
7779
| Gateway_service.delete_resource | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-gkeconnect-gateway/samples/generated/v1beta1/gateway_service.delete_resource.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-gkeconnect-gateway/samples/generated/v1beta1/gateway_service.delete_resource.js,packages/google-cloud-gkeconnect-gateway/samples/README.md) |
7880
| Gateway_service.get_resource | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-gkeconnect-gateway/samples/generated/v1beta1/gateway_service.get_resource.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-gkeconnect-gateway/samples/generated/v1beta1/gateway_service.get_resource.js,packages/google-cloud-gkeconnect-gateway/samples/README.md) |
7981
| Gateway_service.patch_resource | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-gkeconnect-gateway/samples/generated/v1beta1/gateway_service.patch_resource.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-gkeconnect-gateway/samples/generated/v1beta1/gateway_service.patch_resource.js,packages/google-cloud-gkeconnect-gateway/samples/README.md) |
Lines changed: 95 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,95 @@
1+
// Copyright 2024 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/field_behavior.proto";
22+
23+
option csharp_namespace = "Google.Cloud.GkeConnect.Gateway.V1";
24+
option go_package = "cloud.google.com/go/gkeconnect/gateway/apiv1/gatewaypb;gatewaypb";
25+
option java_multiple_files = true;
26+
option java_outer_classname = "ControlProto";
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+
// GatewayControl is the control plane API for Connect Gateway.
32+
service GatewayControl {
33+
option (google.api.default_host) = "connectgateway.googleapis.com";
34+
option (google.api.oauth_scopes) =
35+
"https://www.googleapis.com/auth/cloud-platform";
36+
37+
// GenerateCredentials provides connection information that allows a user to
38+
// access the specified membership using Connect Gateway.
39+
rpc GenerateCredentials(GenerateCredentialsRequest)
40+
returns (GenerateCredentialsResponse) {
41+
option (google.api.http) = {
42+
get: "/v1/{name=projects/*/locations/*/memberships/*}:generateCredentials"
43+
};
44+
}
45+
}
46+
47+
// A request for connection information for a particular membership.
48+
message GenerateCredentialsRequest {
49+
// Operating systems requiring specialized kubeconfigs.
50+
enum OperatingSystem {
51+
// Generates a kubeconfig that works for all operating systems not defined
52+
// below.
53+
OPERATING_SYSTEM_UNSPECIFIED = 0;
54+
55+
// Generates a kubeconfig that is specifically designed to work with
56+
// Windows.
57+
OPERATING_SYSTEM_WINDOWS = 1;
58+
}
59+
60+
// Required. The Fleet membership resource.
61+
string name = 1 [(google.api.field_behavior) = REQUIRED];
62+
63+
// Optional. Whether to force the use of Connect Agent-based transport.
64+
//
65+
// This will return a configuration that uses Connect Agent as the underlying
66+
// transport mechanism for cluster types that would otherwise have used a
67+
// different transport. Requires that Connect Agent be installed on the
68+
// cluster. Setting this field to false is equivalent to not setting it.
69+
bool force_use_agent = 2 [(google.api.field_behavior) = OPTIONAL];
70+
71+
// Optional. The Connect Gateway version to be used in the resulting
72+
// configuration.
73+
//
74+
// Leave this field blank to let the server choose the version (recommended).
75+
string version = 3 [(google.api.field_behavior) = OPTIONAL];
76+
77+
// Optional. The namespace to use in the kubeconfig context.
78+
//
79+
// If this field is specified, the server will set the `namespace` field in
80+
// kubeconfig context. If not specified, the `namespace` field is omitted.
81+
string kubernetes_namespace = 4 [(google.api.field_behavior) = OPTIONAL];
82+
83+
// Optional. The operating system where the kubeconfig will be used.
84+
OperatingSystem operating_system = 5 [(google.api.field_behavior) = OPTIONAL];
85+
}
86+
87+
// Connection information for a particular membership.
88+
message GenerateCredentialsResponse {
89+
// A full YAML kubeconfig in serialized format.
90+
bytes kubeconfig = 1;
91+
92+
// The generated URI of the cluster as accessed through the Connect Gateway
93+
// API.
94+
string endpoint = 2;
95+
}
Lines changed: 95 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,95 @@
1+
// Copyright 2024 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/field_behavior.proto";
22+
23+
option csharp_namespace = "Google.Cloud.GkeConnect.Gateway.V1Beta1";
24+
option go_package = "cloud.google.com/go/gkeconnect/gateway/apiv1beta1/gatewaypb;gatewaypb";
25+
option java_multiple_files = true;
26+
option java_outer_classname = "ControlProto";
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+
// GatewayControl is the control plane API for Connect Gateway.
32+
service GatewayControl {
33+
option (google.api.default_host) = "connectgateway.googleapis.com";
34+
option (google.api.oauth_scopes) =
35+
"https://www.googleapis.com/auth/cloud-platform";
36+
37+
// GenerateCredentials provides connection information that allows a user to
38+
// access the specified membership using Connect Gateway.
39+
rpc GenerateCredentials(GenerateCredentialsRequest)
40+
returns (GenerateCredentialsResponse) {
41+
option (google.api.http) = {
42+
get: "/v1beta1/{name=projects/*/locations/*/memberships/*}:generateCredentials"
43+
};
44+
}
45+
}
46+
47+
// A request for connection information for a particular membership.
48+
message GenerateCredentialsRequest {
49+
// Operating systems requiring specialized kubeconfigs.
50+
enum OperatingSystem {
51+
// Generates a kubeconfig that works for all operating systems not defined
52+
// below.
53+
OPERATING_SYSTEM_UNSPECIFIED = 0;
54+
55+
// Generates a kubeconfig that is specifically designed to work with
56+
// Windows.
57+
OPERATING_SYSTEM_WINDOWS = 1;
58+
}
59+
60+
// Required. The Fleet membership resource.
61+
string name = 1 [(google.api.field_behavior) = REQUIRED];
62+
63+
// Optional. Whether to force the use of Connect Agent-based transport.
64+
//
65+
// This will return a configuration that uses Connect Agent as the underlying
66+
// transport mechanism for cluster types that would otherwise have used a
67+
// different transport. Requires that Connect Agent be installed on the
68+
// cluster. Setting this field to false is equivalent to not setting it.
69+
bool force_use_agent = 2 [(google.api.field_behavior) = OPTIONAL];
70+
71+
// Optional. The Connect Gateway version to be used in the resulting
72+
// configuration.
73+
//
74+
// Leave this field blank to let the server choose the version (recommended).
75+
string version = 3 [(google.api.field_behavior) = OPTIONAL];
76+
77+
// Optional. The namespace to use in the kubeconfig context.
78+
//
79+
// If this field is specified, the server will set the `namespace` field in
80+
// kubeconfig context. If not specified, the `namespace` field is omitted.
81+
string kubernetes_namespace = 4 [(google.api.field_behavior) = OPTIONAL];
82+
83+
// Optional. The operating system where the kubeconfig will be used.
84+
OperatingSystem operating_system = 5 [(google.api.field_behavior) = OPTIONAL];
85+
}
86+
87+
// Connection information for a particular membership.
88+
message GenerateCredentialsResponse {
89+
// A full YAML kubeconfig in serialized format.
90+
bytes kubeconfig = 1;
91+
92+
// The generated URI of the cluster as accessed through the Connect Gateway
93+
// API.
94+
string endpoint = 2;
95+
}

0 commit comments

Comments
 (0)