google-cloud-network_connectivity 0.2.2 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/AUTHENTICATION.md +1 -1
- data/README.md +3 -2
- data/lib/google/cloud/network_connectivity.rb +7 -8
- data/lib/google/cloud/network_connectivity/version.rb +1 -1
- metadata +22 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 264bf4a0c02195576796fb233e406d1f588c82e4edcd4bc9c56fe6f3243de4c8
|
4
|
+
data.tar.gz: 45d492227fcdf1aebd2f23f2ba3e033515ab807777f2ad0b76d8d09b5559ac4b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e0b426068b980dbf43d40d5d29fbd455944c1127e3206221915d6c53961e52e2e00d613a3221c6509be7622d4d7e2a3e25f3f8ab51d29a43d9bcdd2cc6d0eeed
|
7
|
+
data.tar.gz: 6a4e186364c6c24ef12d4ab0bfccf65b431e8f36d4b53dcceb568ebdb4ef6d778fd0a9748d6a1d6d2d09bd7a1f3fc35f3059bf1d0bce5ca278a6fe361c7c9045
|
data/AUTHENTICATION.md
CHANGED
@@ -64,7 +64,7 @@ containers where writing files is difficult or not encouraged.
|
|
64
64
|
|
65
65
|
The environment variables that google-cloud-network_connectivity
|
66
66
|
checks for credentials are configured on the service Credentials class (such as
|
67
|
-
`::Google::Cloud::NetworkConnectivity::
|
67
|
+
`::Google::Cloud::NetworkConnectivity::V1::HubService::Credentials`):
|
68
68
|
|
69
69
|
* `NETWORK_CONNECTIVITY_CREDENTIALS` - Path to JSON file, or JSON contents
|
70
70
|
* `NETWORK_CONNECTIVITY_KEYFILE` - Path to JSON file, or JSON contents
|
data/README.md
CHANGED
@@ -16,6 +16,7 @@ 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://googleapis.dev/ruby/google-cloud-network_connectivity-v1/latest),
|
19
20
|
[google-cloud-network_connectivity-v1alpha1](https://googleapis.dev/ruby/google-cloud-network_connectivity-v1alpha1/latest).
|
20
21
|
|
21
22
|
See also the [Product Documentation](https://cloud.google.com/network-connectivity/docs)
|
@@ -76,7 +77,7 @@ about the Ruby support schedule.
|
|
76
77
|
Most modern Ruby client libraries for Google APIs come in two flavors: the main
|
77
78
|
client library with a name such as `google-cloud-network_connectivity`,
|
78
79
|
and lower-level _versioned_ client libraries with names such as
|
79
|
-
`google-cloud-network_connectivity-
|
80
|
+
`google-cloud-network_connectivity-v1`.
|
80
81
|
_In most cases, you should install the main client._
|
81
82
|
|
82
83
|
### What's the difference between the main client and a versioned client?
|
@@ -114,7 +115,7 @@ You can use a versioned client if you are content with a possibly lower-level
|
|
114
115
|
class interface, you explicitly want to avoid features provided by the main
|
115
116
|
client, or you want to access a specific service version not be covered by the
|
116
117
|
main client. You can identify versioned client gems because the service version
|
117
|
-
is part of the name, e.g. `google-cloud-network_connectivity-
|
118
|
+
is part of the name, e.g. `google-cloud-network_connectivity-v1`.
|
118
119
|
|
119
120
|
### What about the google-apis-<name> clients?
|
120
121
|
|
@@ -48,8 +48,8 @@ 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::
|
52
|
-
# for version
|
51
|
+
# [Google::Cloud::NetworkConnectivity::V1::HubService::Client](https://googleapis.dev/ruby/google-cloud-network_connectivity-v1/latest/Google/Cloud/NetworkConnectivity/V1/HubService/Client.html)
|
52
|
+
# for version V1 of the API.
|
53
53
|
# However, you can specify 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
|
@@ -57,16 +57,15 @@ module Google
|
|
57
57
|
#
|
58
58
|
# ## About HubService
|
59
59
|
#
|
60
|
-
# Network Connectivity Center is a hub-and-spoke abstraction for
|
61
|
-
#
|
62
|
-
#
|
63
|
-
# model.
|
60
|
+
# Network Connectivity Center is a hub-and-spoke abstraction for network
|
61
|
+
# connectivity management in Google Cloud. It reduces operational complexity
|
62
|
+
# through a simple, centralized connectivity management model.
|
64
63
|
#
|
65
64
|
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
66
|
-
# Defaults to `:
|
65
|
+
# Defaults to `:v1`.
|
67
66
|
# @return [HubService::Client] A client object for the specified version.
|
68
67
|
#
|
69
|
-
def self.hub_service version: :
|
68
|
+
def self.hub_service version: :v1, &block
|
70
69
|
require "google/cloud/network_connectivity/#{version.to_s.downcase}"
|
71
70
|
|
72
71
|
package_name = Google::Cloud::NetworkConnectivity
|
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: 0.
|
4
|
+
version: 1.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: 2021-
|
11
|
+
date: 2021-08-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-cloud-core
|
@@ -24,6 +24,26 @@ dependencies:
|
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '1.6'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: google-cloud-network_connectivity-v1
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0.0'
|
34
|
+
- - "<"
|
35
|
+
- !ruby/object:Gem::Version
|
36
|
+
version: 2.a
|
37
|
+
type: :runtime
|
38
|
+
prerelease: false
|
39
|
+
version_requirements: !ruby/object:Gem::Requirement
|
40
|
+
requirements:
|
41
|
+
- - ">="
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
version: '0.0'
|
44
|
+
- - "<"
|
45
|
+
- !ruby/object:Gem::Version
|
46
|
+
version: 2.a
|
27
47
|
- !ruby/object:Gem::Dependency
|
28
48
|
name: google-cloud-network_connectivity-v1alpha1
|
29
49
|
requirement: !ruby/object:Gem::Requirement
|