google-cloud-network_connectivity 1.2.0 → 1.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +4 -4
- data/lib/google/cloud/network_connectivity/version.rb +1 -1
- data/lib/google/cloud/network_connectivity.rb +13 -13
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 468e58677e3f726b991696067e9f22f9e30610de5c0ccae036b7c418c368a7da
|
4
|
+
data.tar.gz: 694174f4c91b6401d29be96b2990606915f775d50038141c20c0c3c488efe635
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7bbaffaa93cac2f18cb59126a08195701eca13b4b2e27ba4e3b43b9fd0fa2c2a3c8e93ce65d29d352dd4baf73cad680f8fedb1410bd7cd19254d16c03020098c
|
7
|
+
data.tar.gz: 8c50bd03889d12ad3822c391d8c4fa38bf1712c87c260d4ea3e824928cc4aac35d2f866ab5d5c362806e87ea5e4977c8bf80ee4a7ec6433b7d360dbc19a34863
|
data/README.md
CHANGED
@@ -16,8 +16,8 @@ for this library, google-cloud-network_connectivity, to see the convenience meth
|
|
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-network_connectivity-v1](https://
|
20
|
-
[google-cloud-network_connectivity-v1alpha1](https://
|
19
|
+
[google-cloud-network_connectivity-v1](https://cloud.google.com/ruby/docs/reference/google-cloud-network_connectivity-v1/latest),
|
20
|
+
[google-cloud-network_connectivity-v1alpha1](https://cloud.google.com/ruby/docs/reference/google-cloud-network_connectivity-v1alpha1/latest).
|
21
21
|
|
22
22
|
See also the [Product Documentation](https://cloud.google.com/network-connectivity/docs)
|
23
23
|
for more usage information.
|
@@ -38,8 +38,8 @@ In order to use this library, you first need to go through the following steps:
|
|
38
38
|
## Enabling Logging
|
39
39
|
|
40
40
|
To enable logging for this library, set the logger for the underlying [gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library.
|
41
|
-
The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/
|
42
|
-
or a [`Google::Cloud::Logging::Logger`](https://
|
41
|
+
The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/current/stdlibs/logger/Logger.html) as shown below,
|
42
|
+
or a [`Google::Cloud::Logging::Logger`](https://cloud.google.com/ruby/docs/reference/google-cloud-logging/latest)
|
43
43
|
that will write logs to [Cloud Logging](https://cloud.google.com/logging/). See [grpc/logconfig.rb](https://github.com/grpc/grpc/blob/master/src/ruby/lib/grpc/logconfig.rb)
|
44
44
|
and the gRPC [spec_helper.rb](https://github.com/grpc/grpc/blob/master/src/ruby/spec/spec_helper.rb) for additional information.
|
45
45
|
|
@@ -48,9 +48,9 @@ module Google
|
|
48
48
|
# Create a new client object for HubService.
|
49
49
|
#
|
50
50
|
# By default, this returns an instance of
|
51
|
-
# [Google::Cloud::NetworkConnectivity::V1::HubService::Client](https://
|
52
|
-
# for version V1 of the API.
|
53
|
-
# However, you can specify
|
51
|
+
# [Google::Cloud::NetworkConnectivity::V1::HubService::Client](https://cloud.google.com/ruby/docs/reference/google-cloud-network_connectivity-v1/latest/Google-Cloud-NetworkConnectivity-V1-HubService-Client)
|
52
|
+
# for a gRPC client for version V1 of the API.
|
53
|
+
# However, you can specify a different API version by passing it in the
|
54
54
|
# `version` parameter. If the HubService service is
|
55
55
|
# supported by that API version, and the corresponding gem is available, the
|
56
56
|
# appropriate versioned client will be returned.
|
@@ -63,7 +63,7 @@ module Google
|
|
63
63
|
#
|
64
64
|
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
65
65
|
# Defaults to `:v1`.
|
66
|
-
# @return [
|
66
|
+
# @return [::Object] A client object for the specified version.
|
67
67
|
#
|
68
68
|
def self.hub_service version: :v1, &block
|
69
69
|
require "google/cloud/network_connectivity/#{version.to_s.downcase}"
|
@@ -72,17 +72,17 @@ module Google
|
|
72
72
|
.constants
|
73
73
|
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
74
74
|
.first
|
75
|
-
|
76
|
-
|
75
|
+
service_module = Google::Cloud::NetworkConnectivity.const_get(package_name).const_get(:HubService)
|
76
|
+
service_module.const_get(:Client).new(&block)
|
77
77
|
end
|
78
78
|
|
79
79
|
##
|
80
80
|
# Create a new client object for PolicyBasedRoutingService.
|
81
81
|
#
|
82
82
|
# By default, this returns an instance of
|
83
|
-
# [Google::Cloud::NetworkConnectivity::V1::PolicyBasedRoutingService::Client](https://
|
84
|
-
# for version V1 of the API.
|
85
|
-
# However, you can specify
|
83
|
+
# [Google::Cloud::NetworkConnectivity::V1::PolicyBasedRoutingService::Client](https://cloud.google.com/ruby/docs/reference/google-cloud-network_connectivity-v1/latest/Google-Cloud-NetworkConnectivity-V1-PolicyBasedRoutingService-Client)
|
84
|
+
# for a gRPC client for version V1 of the API.
|
85
|
+
# However, you can specify a different API version by passing it in the
|
86
86
|
# `version` parameter. If the PolicyBasedRoutingService service is
|
87
87
|
# supported by that API version, and the corresponding gem is available, the
|
88
88
|
# appropriate versioned client will be returned.
|
@@ -94,7 +94,7 @@ module Google
|
|
94
94
|
#
|
95
95
|
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
96
96
|
# Defaults to `:v1`.
|
97
|
-
# @return [
|
97
|
+
# @return [::Object] A client object for the specified version.
|
98
98
|
#
|
99
99
|
def self.policy_based_routing_service version: :v1, &block
|
100
100
|
require "google/cloud/network_connectivity/#{version.to_s.downcase}"
|
@@ -103,8 +103,8 @@ module Google
|
|
103
103
|
.constants
|
104
104
|
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
105
105
|
.first
|
106
|
-
|
107
|
-
|
106
|
+
service_module = Google::Cloud::NetworkConnectivity.const_get(package_name).const_get(:PolicyBasedRoutingService)
|
107
|
+
service_module.const_get(:Client).new(&block)
|
108
108
|
end
|
109
109
|
|
110
110
|
##
|
@@ -124,7 +124,7 @@ module Google
|
|
124
124
|
# * `timeout` (*type:* `Numeric`) -
|
125
125
|
# Default timeout in seconds.
|
126
126
|
# * `metadata` (*type:* `Hash{Symbol=>String}`) -
|
127
|
-
# Additional
|
127
|
+
# Additional headers to be sent with the call.
|
128
128
|
# * `retry_policy` (*type:* `Hash`) -
|
129
129
|
# The retry policy. The value is a hash with the following keys:
|
130
130
|
# * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-network_connectivity
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.3.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:
|
11
|
+
date: 2023-09-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-cloud-core
|
@@ -30,7 +30,7 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '0.
|
33
|
+
version: '0.7'
|
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.7'
|
44
44
|
- - "<"
|
45
45
|
- !ruby/object:Gem::Version
|
46
46
|
version: 2.a
|
@@ -210,7 +210,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
210
210
|
- !ruby/object:Gem::Version
|
211
211
|
version: '0'
|
212
212
|
requirements: []
|
213
|
-
rubygems_version: 3.
|
213
|
+
rubygems_version: 3.4.19
|
214
214
|
signing_key:
|
215
215
|
specification_version: 4
|
216
216
|
summary: API Client library for the Network Connectivity API
|