google-cloud-network_connectivity 1.0.1 → 1.2.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '06888435b8ce16e1f3954adfed4db59f1cdf695d691c1104d14debef31ae2cd8'
4
- data.tar.gz: eade2fb672912ca29f2235c6f77ea126d96a497bf7d42299055c5892e8de7602
3
+ metadata.gz: 31f99c86e7067bf3323c1fb5cfef9e9a7525778b1a91da09a828db075a676391
4
+ data.tar.gz: 72b3427abb727061ee234902fb395031d723fe88863036b8069854235c4f30da
5
5
  SHA512:
6
- metadata.gz: 6c63fd17587666676b2d399c266f198a0a11736777ec98c7fc5af562d221c4fd65608795629521317bd7bbfd3d5b08d454a733cef24ed44b817b5828475161c1
7
- data.tar.gz: 1aea60ed564b8480ecad2432950c33221437e67be0cfae1df0d0aefca03e8cd0cf28c41b41809d4f879b588cd79c015d2e4c2cc1230dbbfc66cfc43619e21648
6
+ metadata.gz: 212052e2c7aeb412e091607534e8e71564515f4092e746209d510c54d6a5b4d8b5b5cdfd4113d552e9b45674136d232ca8eb7f6658c027af68de040d994a67ef
7
+ data.tar.gz: 54652abb77cdcef746572363b8888959e8988c8d792300c33756a0603723d9d752094004225b04793c643afd5b04f1ac3e9c1d4ff0b0e1ede09d1d529ef6ea0e
data/AUTHENTICATION.md CHANGED
@@ -114,7 +114,7 @@ credentials are discovered.
114
114
  To configure your system for this, simply:
115
115
 
116
116
  1. [Download and install the Cloud SDK](https://cloud.google.com/sdk)
117
- 2. Authenticate using OAuth 2.0 `$ gcloud auth login`
117
+ 2. Authenticate using OAuth 2.0 `$ gcloud auth application-default login`
118
118
  3. Write code as if already authenticated.
119
119
 
120
120
  **NOTE:** This is _not_ recommended for running in production. The Cloud SDK
data/README.md CHANGED
@@ -11,7 +11,7 @@ verisoned gems in as dependencies, and provides high-level methods for
11
11
  constructing clients. More information on versioned clients can be found below
12
12
  in the section titled *Which client should I use?*.
13
13
 
14
- View the [Client Library Documentation](https://googleapis.dev/ruby/google-cloud-network_connectivity/latest)
14
+ View the [Client Library Documentation](https://cloud.google.com/ruby/docs/reference/google-cloud-network_connectivity/latest)
15
15
  for this library, google-cloud-network_connectivity, to see the convenience methods for
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
@@ -63,14 +63,14 @@ end
63
63
 
64
64
  ## Supported Ruby Versions
65
65
 
66
- This library is supported on Ruby 2.5+.
66
+ This library is supported on Ruby 2.6+.
67
67
 
68
68
  Google provides official support for Ruby versions that are actively supported
69
69
  by Ruby Core—that is, Ruby versions that are either in normal maintenance or
70
- in security maintenance, and not end of life. Currently, this means Ruby 2.5
71
- and later. Older versions of Ruby _may_ still work, but are unsupported and not
72
- recommended. See https://www.ruby-lang.org/en/downloads/branches/ for details
73
- about the Ruby support schedule.
70
+ in security maintenance, and not end of life. Older versions of Ruby _may_
71
+ still work, but are unsupported and not recommended. See
72
+ https://www.ruby-lang.org/en/downloads/branches/ for details about the Ruby
73
+ support schedule.
74
74
 
75
75
  ## Which client should I use?
76
76
 
@@ -20,7 +20,7 @@
20
20
  module Google
21
21
  module Cloud
22
22
  module NetworkConnectivity
23
- VERSION = "1.0.1"
23
+ VERSION = "1.2.0"
24
24
  end
25
25
  end
26
26
  end
@@ -76,6 +76,37 @@ module Google
76
76
  package_module.const_get(:HubService).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://googleapis.dev/ruby/google-cloud-network_connectivity-v1/latest/Google/Cloud/NetworkConnectivity/V1/PolicyBasedRoutingService/Client.html)
84
+ # for version V1 of the API.
85
+ # However, you can specify 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 [PolicyBasedRoutingService::Client] 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
+ package_module = Google::Cloud::NetworkConnectivity.const_get package_name
107
+ package_module.const_get(:PolicyBasedRoutingService).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.0.1
4
+ version: 1.2.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: 2022-01-11 00:00:00.000000000 Z
11
+ date: 2022-11-11 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.0'
33
+ version: '0.4'
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.0'
43
+ version: '0.4'
44
44
  - - "<"
45
45
  - !ruby/object:Gem::Version
46
46
  version: 2.a
@@ -50,7 +50,7 @@ dependencies:
50
50
  requirements:
51
51
  - - ">="
52
52
  - !ruby/object:Gem::Version
53
- version: '0.0'
53
+ version: '0.5'
54
54
  - - "<"
55
55
  - !ruby/object:Gem::Version
56
56
  version: 2.a
@@ -60,7 +60,7 @@ dependencies:
60
60
  requirements:
61
61
  - - ">="
62
62
  - !ruby/object:Gem::Version
63
- version: '0.0'
63
+ version: '0.5'
64
64
  - - "<"
65
65
  - !ruby/object:Gem::Version
66
66
  version: 2.a
@@ -70,28 +70,28 @@ dependencies:
70
70
  requirements:
71
71
  - - "~>"
72
72
  - !ruby/object:Gem::Version
73
- version: 1.25.1
73
+ version: 1.26.1
74
74
  type: :development
75
75
  prerelease: false
76
76
  version_requirements: !ruby/object:Gem::Requirement
77
77
  requirements:
78
78
  - - "~>"
79
79
  - !ruby/object:Gem::Version
80
- version: 1.25.1
80
+ version: 1.26.1
81
81
  - !ruby/object:Gem::Dependency
82
82
  name: minitest
83
83
  requirement: !ruby/object:Gem::Requirement
84
84
  requirements:
85
85
  - - "~>"
86
86
  - !ruby/object:Gem::Version
87
- version: '5.14'
87
+ version: '5.16'
88
88
  type: :development
89
89
  prerelease: false
90
90
  version_requirements: !ruby/object:Gem::Requirement
91
91
  requirements:
92
92
  - - "~>"
93
93
  - !ruby/object:Gem::Version
94
- version: '5.14'
94
+ version: '5.16'
95
95
  - !ruby/object:Gem::Dependency
96
96
  name: minitest-focus
97
97
  requirement: !ruby/object:Gem::Requirement
@@ -126,14 +126,14 @@ dependencies:
126
126
  requirements:
127
127
  - - ">="
128
128
  - !ruby/object:Gem::Version
129
- version: '12.0'
129
+ version: '13.0'
130
130
  type: :development
131
131
  prerelease: false
132
132
  version_requirements: !ruby/object:Gem::Requirement
133
133
  requirements:
134
134
  - - ">="
135
135
  - !ruby/object:Gem::Version
136
- version: '12.0'
136
+ version: '13.0'
137
137
  - !ruby/object:Gem::Dependency
138
138
  name: redcarpet
139
139
  requirement: !ruby/object:Gem::Requirement
@@ -203,14 +203,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
203
203
  requirements:
204
204
  - - ">="
205
205
  - !ruby/object:Gem::Version
206
- version: '2.5'
206
+ version: '2.6'
207
207
  required_rubygems_version: !ruby/object:Gem::Requirement
208
208
  requirements:
209
209
  - - ">="
210
210
  - !ruby/object:Gem::Version
211
211
  version: '0'
212
212
  requirements: []
213
- rubygems_version: 3.3.4
213
+ rubygems_version: 3.3.14
214
214
  signing_key:
215
215
  specification_version: 4
216
216
  summary: API Client library for the Network Connectivity API