google-cloud-gke_connect-gateway 1.1.0 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +27 -28
- data/lib/google/cloud/gke_connect/gateway/version.rb +1 -1
- data/lib/google/cloud/gke_connect/gateway.rb +5 -8
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 94e6625e233bad8a1617ca6e0a72f964194e097250d351b6c497c6dfa0c6af1e
|
4
|
+
data.tar.gz: d5a6b18193b7477ad35e4108c042419272780d9f6673906660c4399e43194432
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fce277e8710f0bcc5efb529d09a57115604191b54eaabc758745722310e2360dffbfd60e7fa33149525c26611a3d0c6ed0ea8a280361ce0da6d44ac8128b5405
|
7
|
+
data.tar.gz: 017130cfc6cb969827f2bcb1c3894a055b122d84794d901c1c84320dded4f294293b1cc1003a1d3d8902ac4a2184babd0345040c277c7f99d38300df68e00352
|
data/README.md
CHANGED
@@ -16,7 +16,7 @@ for this library, google-cloud-gke_connect-gateway, to see the convenience metho
|
|
16
16
|
constructing client objects. Reference documentation for the client objects
|
17
17
|
themselves can be found in the client library documentation for the versioned
|
18
18
|
client gems:
|
19
|
-
[google-cloud-gke_connect-gateway-
|
19
|
+
[google-cloud-gke_connect-gateway-v1](https://cloud.google.com/ruby/docs/reference/google-cloud-gke_connect-gateway-v1/latest).
|
20
20
|
|
21
21
|
See also the [Product Documentation](https://cloud.google.com/anthos/multicluster-management/gateway/)
|
22
22
|
for more usage information.
|
@@ -34,31 +34,30 @@ In order to use this library, you first need to go through the following steps:
|
|
34
34
|
1. [Enable the API.](https://console.cloud.google.com/apis/library/connectgateway.googleapis.com)
|
35
35
|
1. {file:AUTHENTICATION.md Set up authentication.}
|
36
36
|
|
37
|
-
##
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
```
|
37
|
+
## Debug Logging
|
38
|
+
|
39
|
+
This library comes with opt-in Debug Logging that can help you troubleshoot
|
40
|
+
your application's integration with the API. When logging is activated, key
|
41
|
+
events such as requests and responses, along with data payloads and metadata
|
42
|
+
such as headers and client configuration, are logged to the standard error
|
43
|
+
stream.
|
44
|
+
|
45
|
+
**WARNING:** Client Library Debug Logging includes your data payloads in
|
46
|
+
plaintext, which could include sensitive data such as PII for yourself or your
|
47
|
+
customers, private keys, or other security data that could be compromising if
|
48
|
+
leaked. Always practice good data hygiene with your application logs, and follow
|
49
|
+
the principle of least access. Google also recommends that Client Library Debug
|
50
|
+
Logging be enabled only temporarily during active debugging, and not used
|
51
|
+
permanently in production.
|
52
|
+
|
53
|
+
To enable logging, set the environment variable `GOOGLE_SDK_RUBY_LOGGING_GEMS`
|
54
|
+
to the value `all`. Alternatively, you can set the value to a comma-delimited
|
55
|
+
list of client library gem names. This will select the default logging behavior,
|
56
|
+
which writes logs to the standard error stream. On a local workstation, this may
|
57
|
+
result in logs appearing on the console. When running on a Google Cloud hosting
|
58
|
+
service such as [Google Cloud Run](https://cloud.google.com/run), this generally
|
59
|
+
results in logs appearing alongside your application logs in the
|
60
|
+
[Google Cloud Logging](https://cloud.google.com/logging/) service.
|
62
61
|
|
63
62
|
## Supported Ruby Versions
|
64
63
|
|
@@ -76,7 +75,7 @@ support schedule.
|
|
76
75
|
Most modern Ruby client libraries for Google APIs come in two flavors: the main
|
77
76
|
client library with a name such as `google-cloud-gke_connect-gateway`,
|
78
77
|
and lower-level _versioned_ client libraries with names such as
|
79
|
-
`google-cloud-gke_connect-gateway-
|
78
|
+
`google-cloud-gke_connect-gateway-v1`.
|
80
79
|
_In most cases, you should install the main client._
|
81
80
|
|
82
81
|
### What's the difference between the main client and a versioned client?
|
@@ -114,7 +113,7 @@ You can use a versioned client if you are content with a possibly lower-level
|
|
114
113
|
class interface, you explicitly want to avoid features provided by the main
|
115
114
|
client, or you want to access a specific service version not be covered by the
|
116
115
|
main client. You can identify versioned client gems because the service version
|
117
|
-
is part of the name, e.g. `google-cloud-gke_connect-gateway-
|
116
|
+
is part of the name, e.g. `google-cloud-gke_connect-gateway-v1`.
|
118
117
|
|
119
118
|
### What about the google-apis-<name> clients?
|
120
119
|
|
@@ -34,7 +34,6 @@ require "google/cloud/config"
|
|
34
34
|
config.add_field! :scope, nil, match: [::Array, ::String]
|
35
35
|
config.add_field! :lib_name, nil, match: ::String
|
36
36
|
config.add_field! :lib_version, nil, match: ::String
|
37
|
-
config.add_field! :interceptors, nil, match: ::Array
|
38
37
|
config.add_field! :timeout, nil, match: ::Numeric
|
39
38
|
config.add_field! :metadata, nil, match: ::Hash
|
40
39
|
config.add_field! :retry_policy, nil, match: [::Hash, ::Proc]
|
@@ -50,8 +49,8 @@ module Google
|
|
50
49
|
# Create a new client object for GatewayControl.
|
51
50
|
#
|
52
51
|
# By default, this returns an instance of
|
53
|
-
# [Google::Cloud::GkeConnect::Gateway::
|
54
|
-
# for a
|
52
|
+
# [Google::Cloud::GkeConnect::Gateway::V1::GatewayControl::Rest::Client](https://cloud.google.com/ruby/docs/reference/google-cloud-gke_connect-gateway-v1/latest/Google-Cloud-GkeConnect-Gateway-V1-GatewayControl-Rest-Client)
|
53
|
+
# for a REST client for version V1 of the API.
|
55
54
|
# However, you can specify a different API version by passing it in the
|
56
55
|
# `version` parameter. If the GatewayControl service is
|
57
56
|
# supported by that API version, and the corresponding gem is available, the
|
@@ -62,10 +61,10 @@ module Google
|
|
62
61
|
# GatewayControl is the control plane API for Connect Gateway.
|
63
62
|
#
|
64
63
|
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
65
|
-
# Defaults to `:
|
64
|
+
# Defaults to `:v1`.
|
66
65
|
# @return [::Object] A client object for the specified version.
|
67
66
|
#
|
68
|
-
def self.gateway_control version: :
|
67
|
+
def self.gateway_control version: :v1, &block
|
69
68
|
require "google/cloud/gke_connect/gateway/#{version.to_s.downcase}"
|
70
69
|
|
71
70
|
package_name = Google::Cloud::GkeConnect::Gateway
|
@@ -73,7 +72,7 @@ module Google
|
|
73
72
|
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
74
73
|
.first
|
75
74
|
service_module = Google::Cloud::GkeConnect::Gateway.const_get(package_name).const_get(:GatewayControl)
|
76
|
-
service_module.const_get(:Client).new(&block)
|
75
|
+
service_module.const_get(:Rest).const_get(:Client).new(&block)
|
77
76
|
end
|
78
77
|
|
79
78
|
##
|
@@ -88,8 +87,6 @@ module Google
|
|
88
87
|
# The library name as recorded in instrumentation and logging.
|
89
88
|
# * `lib_version` (*type:* `String`) -
|
90
89
|
# The library version as recorded in instrumentation and logging.
|
91
|
-
# * `interceptors` (*type:* `Array<GRPC::ClientInterceptor>`) -
|
92
|
-
# An array of interceptors that are run before calls are executed.
|
93
90
|
# * `timeout` (*type:* `Numeric`) -
|
94
91
|
# Default timeout in seconds.
|
95
92
|
# * `metadata` (*type:* `Hash{Symbol=>String}`) -
|
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:
|
4
|
+
version: 2.0.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-
|
11
|
+
date: 2024-12-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-cloud-core
|
@@ -25,12 +25,12 @@ dependencies:
|
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '1.6'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
|
-
name: google-cloud-gke_connect-gateway-
|
28
|
+
name: google-cloud-gke_connect-gateway-v1
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '0.
|
33
|
+
version: '0.2'
|
34
34
|
- - "<"
|
35
35
|
- !ruby/object:Gem::Version
|
36
36
|
version: 2.a
|
@@ -40,7 +40,7 @@ dependencies:
|
|
40
40
|
requirements:
|
41
41
|
- - ">="
|
42
42
|
- !ruby/object:Gem::Version
|
43
|
-
version: '0.
|
43
|
+
version: '0.2'
|
44
44
|
- - "<"
|
45
45
|
- !ruby/object:Gem::Version
|
46
46
|
version: 2.a
|
@@ -80,7 +80,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
80
80
|
- !ruby/object:Gem::Version
|
81
81
|
version: '0'
|
82
82
|
requirements: []
|
83
|
-
rubygems_version: 3.5.
|
83
|
+
rubygems_version: 3.5.23
|
84
84
|
signing_key:
|
85
85
|
specification_version: 4
|
86
86
|
summary: API Client library for the Connect Gateway API
|