google-cloud-gke_connect-gateway 1.0.0 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/AUTHENTICATION.md +3 -3
- data/lib/google/cloud/gke_connect/gateway/version.rb +1 -1
- data/lib/google/cloud/gke_connect/gateway.rb +7 -11
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2dc7fa6f11328119ad1f01bcdbae77d749575c95ddc98a9e1956836e15f0c481
|
4
|
+
data.tar.gz: 88a5ac151595839a6671e7adc39dd936d2938d642820aa12741d310f17212328
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: df4709afe7a639e205d7633d5fcb332f71caf20019474300a05a663511a2e9bb051d7e24a54a15b6f0ec7cefd4ba53045bf2c2367fca1991a2ac6a8ac898a108
|
7
|
+
data.tar.gz: d996382ff1edd8fed089185107f9ed0669b1ca1f046a9ef42aad0f0207d791c543a9c8bbfab324d0481c5451a2c4b28a180e59e354726ac3d38e062217c04d35
|
data/AUTHENTICATION.md
CHANGED
@@ -56,7 +56,7 @@ To configure a credentials file for an individual client initialization:
|
|
56
56
|
```ruby
|
57
57
|
require "google/cloud/gke_connect/gateway"
|
58
58
|
|
59
|
-
client = Google::Cloud::GkeConnect::Gateway.
|
59
|
+
client = Google::Cloud::GkeConnect::Gateway.gateway_control do |config|
|
60
60
|
config.credentials = "path/to/credentialfile.json"
|
61
61
|
end
|
62
62
|
```
|
@@ -70,7 +70,7 @@ Google::Cloud::GkeConnect::Gateway.configure do |config|
|
|
70
70
|
config.credentials = "path/to/credentialfile.json"
|
71
71
|
end
|
72
72
|
|
73
|
-
client = Google::Cloud::GkeConnect::Gateway.
|
73
|
+
client = Google::Cloud::GkeConnect::Gateway.gateway_control
|
74
74
|
```
|
75
75
|
|
76
76
|
### Environment Variables
|
@@ -100,7 +100,7 @@ require "google/cloud/gke_connect/gateway"
|
|
100
100
|
|
101
101
|
ENV["GOOGLE_APPLICATION_CREDENTIALS"] = "path/to/credentialfile.json"
|
102
102
|
|
103
|
-
client = Google::Cloud::GkeConnect::Gateway.
|
103
|
+
client = Google::Cloud::GkeConnect::Gateway.gateway_control
|
104
104
|
```
|
105
105
|
|
106
106
|
### Local ADC file
|
@@ -47,36 +47,32 @@ module Google
|
|
47
47
|
module GkeConnect
|
48
48
|
module Gateway
|
49
49
|
##
|
50
|
-
# Create a new client object for
|
50
|
+
# Create a new client object for GatewayControl.
|
51
51
|
#
|
52
52
|
# By default, this returns an instance of
|
53
|
-
# [Google::Cloud::GkeConnect::Gateway::V1beta1::
|
53
|
+
# [Google::Cloud::GkeConnect::Gateway::V1beta1::GatewayControl::Client](https://cloud.google.com/ruby/docs/reference/google-cloud-gke_connect-gateway-v1beta1/latest/Google-Cloud-GkeConnect-Gateway-V1beta1-GatewayControl-Client)
|
54
54
|
# for a gRPC client for version V1beta1 of the API.
|
55
55
|
# However, you can specify a different API version by passing it in the
|
56
|
-
# `version` parameter. If the
|
56
|
+
# `version` parameter. If the GatewayControl service is
|
57
57
|
# supported by that API version, and the corresponding gem is available, the
|
58
58
|
# appropriate versioned client will be returned.
|
59
59
|
#
|
60
|
-
# ## About
|
60
|
+
# ## About GatewayControl
|
61
61
|
#
|
62
|
-
#
|
63
|
-
# proxy between end users and registered Kubernetes clusters. Each RPC in this
|
64
|
-
# service matches with an HTTP verb. End user will initiate kubectl commands
|
65
|
-
# against the Gateway service, and Gateway service will forward user requests
|
66
|
-
# to clusters.
|
62
|
+
# GatewayControl is the control plane API for Connect Gateway.
|
67
63
|
#
|
68
64
|
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
69
65
|
# Defaults to `:v1beta1`.
|
70
66
|
# @return [::Object] A client object for the specified version.
|
71
67
|
#
|
72
|
-
def self.
|
68
|
+
def self.gateway_control version: :v1beta1, &block
|
73
69
|
require "google/cloud/gke_connect/gateway/#{version.to_s.downcase}"
|
74
70
|
|
75
71
|
package_name = Google::Cloud::GkeConnect::Gateway
|
76
72
|
.constants
|
77
73
|
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
78
74
|
.first
|
79
|
-
service_module = Google::Cloud::GkeConnect::Gateway.const_get(package_name).const_get(:
|
75
|
+
service_module = Google::Cloud::GkeConnect::Gateway.const_get(package_name).const_get(:GatewayControl)
|
80
76
|
service_module.const_get(:Client).new(&block)
|
81
77
|
end
|
82
78
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-gke_connect-gateway
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-08-
|
11
|
+
date: 2024-08-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-cloud-core
|