google-cloud-network_connectivity 1.1.0 → 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: 1e55c91462315a35f40b98b83889c97b88762bc32430ab3a99449656ec989e3e
4
- data.tar.gz: bae81a37594ea02ee88af50d50d099cc8d0833ed10a26f9a547b4e7d7f5531ec
3
+ metadata.gz: 31f99c86e7067bf3323c1fb5cfef9e9a7525778b1a91da09a828db075a676391
4
+ data.tar.gz: 72b3427abb727061ee234902fb395031d723fe88863036b8069854235c4f30da
5
5
  SHA512:
6
- metadata.gz: 8d054562657e159f69fa47d76597022e620070b381c681688fd31def64095e9e0d0ff9b420026b279dce21374885269a83c921648c5363df9b0f6cfbf2cafdfe
7
- data.tar.gz: 2c5d126cc5c04bfd612530ffac864cd25fd84770ca5555ca695cab113a925baa33cf7780801615b3de2f5ad96d2f775acf34b24dbae0f7a9c847e902c7be396e
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
@@ -20,7 +20,7 @@
20
20
  module Google
21
21
  module Cloud
22
22
  module NetworkConnectivity
23
- VERSION = "1.1.0"
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.1.0
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-07-05 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