google-cloud-network_connectivity 1.2.1 → 1.3.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 +3 -3
- data/lib/google/cloud/network_connectivity/version.rb +1 -1
- data/lib/google/cloud/network_connectivity.rb +32 -1
- 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.
|
@@ -39,7 +39,7 @@ In order to use this library, you first need to go through the following steps:
|
|
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
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://
|
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,7 +48,7 @@ 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://
|
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
52
|
# for a gRPC client for version V1 of the API.
|
53
53
|
# However, you can specify a different API version by passing it in the
|
54
54
|
# `version` parameter. If the HubService service is
|
@@ -76,6 +76,37 @@ module Google
|
|
76
76
|
service_module.const_get(:Client).new(&block)
|
77
77
|
end
|
78
78
|
|
79
|
+
##
|
80
|
+
# Create a new client object for PolicyBasedRoutingService.
|
81
|
+
#
|
82
|
+
# By default, this returns an instance of
|
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
|
+
# `version` parameter. If the PolicyBasedRoutingService service is
|
87
|
+
# supported by that API version, and the corresponding gem is available, the
|
88
|
+
# appropriate versioned client will be returned.
|
89
|
+
#
|
90
|
+
# ## About PolicyBasedRoutingService
|
91
|
+
#
|
92
|
+
# Policy-Based Routing allows GCP customers to specify flexibile routing
|
93
|
+
# policies for Layer 4 traffic traversing through the connected service.
|
94
|
+
#
|
95
|
+
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
96
|
+
# Defaults to `:v1`.
|
97
|
+
# @return [::Object] A client object for the specified version.
|
98
|
+
#
|
99
|
+
def self.policy_based_routing_service version: :v1, &block
|
100
|
+
require "google/cloud/network_connectivity/#{version.to_s.downcase}"
|
101
|
+
|
102
|
+
package_name = Google::Cloud::NetworkConnectivity
|
103
|
+
.constants
|
104
|
+
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
105
|
+
.first
|
106
|
+
service_module = Google::Cloud::NetworkConnectivity.const_get(package_name).const_get(:PolicyBasedRoutingService)
|
107
|
+
service_module.const_get(:Client).new(&block)
|
108
|
+
end
|
109
|
+
|
79
110
|
##
|
80
111
|
# Configure the google-cloud-network_connectivity library.
|
81
112
|
#
|
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: 2023-
|
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.4.
|
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
|