google-cloud-compute 0.3.0 → 0.5.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/AUTHENTICATION.md +1 -1
- data/README.md +5 -5
- data/lib/google/cloud/compute/version.rb +1 -1
- data/lib/google/cloud/compute.rb +60 -0
- metadata +12 -12
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 487f9b5f44f3b03b2a3663d842c2d1010275724ee4666c8f25119a6c66fa01f3
|
4
|
+
data.tar.gz: 3cbb47337f015fe30b19dc0a7b716241e8d366479234833a61c4ea1305dfb00c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0d77b9b623869b37a7470de05348c041d72884089aad411fae7c5350d1898066cdf94f80da5e73a7f3e7d38518bf39cda81d4e3b742cb317f3b93ee1d591fc92
|
7
|
+
data.tar.gz: a5e442875e80c562ebd8311830f898e06808e4e843fe921e3670f4a0492f92631311412ec5504f5d0400b2db03793961e00e8409ee0632f2f8099561f2999eb2
|
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
@@ -36,14 +36,14 @@ In order to use this library, you first need to go through the following steps:
|
|
36
36
|
|
37
37
|
## Supported Ruby Versions
|
38
38
|
|
39
|
-
This library is supported on Ruby 2.
|
39
|
+
This library is supported on Ruby 2.6+.
|
40
40
|
|
41
41
|
Google provides official support for Ruby versions that are actively supported
|
42
42
|
by Ruby Core—that is, Ruby versions that are either in normal maintenance or
|
43
|
-
in security maintenance, and not end of life.
|
44
|
-
|
45
|
-
|
46
|
-
|
43
|
+
in security maintenance, and not end of life. Older versions of Ruby _may_
|
44
|
+
still work, but are unsupported and not recommended. See
|
45
|
+
https://www.ruby-lang.org/en/downloads/branches/ for details about the Ruby
|
46
|
+
support schedule.
|
47
47
|
|
48
48
|
## Which client should I use?
|
49
49
|
|
data/lib/google/cloud/compute.rb
CHANGED
@@ -1783,6 +1783,36 @@ module Google
|
|
1783
1783
|
package_module.const_get(:RegionSslCertificates).const_get(:Rest).const_get(:Client).new(&block)
|
1784
1784
|
end
|
1785
1785
|
|
1786
|
+
##
|
1787
|
+
# Create a new client object for RegionSslPolicies.
|
1788
|
+
#
|
1789
|
+
# By default, this returns an instance of
|
1790
|
+
# [Google::Cloud::Compute::V1::RegionSslPolicies::Rest::Client](https://googleapis.dev/ruby/google-cloud-compute-v1/latest/Google/Cloud/Compute/V1/RegionSslPolicies/Rest/Client.html)
|
1791
|
+
# for version V1 of the API.
|
1792
|
+
# However, you can specify specify a different API version by passing it in the
|
1793
|
+
# `version` parameter. If the RegionSslPolicies service is
|
1794
|
+
# supported by that API version, and the corresponding gem is available, the
|
1795
|
+
# appropriate versioned client will be returned.
|
1796
|
+
#
|
1797
|
+
# ## About RegionSslPolicies
|
1798
|
+
#
|
1799
|
+
# The RegionSslPolicies API.
|
1800
|
+
#
|
1801
|
+
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
1802
|
+
# Defaults to `:v1`.
|
1803
|
+
# @return [RegionSslPolicies::Rest::Client] A client object for the specified version.
|
1804
|
+
#
|
1805
|
+
def self.region_ssl_policies version: :v1, &block
|
1806
|
+
require "google/cloud/compute/#{version.to_s.downcase}"
|
1807
|
+
|
1808
|
+
package_name = Google::Cloud::Compute
|
1809
|
+
.constants
|
1810
|
+
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
1811
|
+
.first
|
1812
|
+
package_module = Google::Cloud::Compute.const_get package_name
|
1813
|
+
package_module.const_get(:RegionSslPolicies).const_get(:Rest).const_get(:Client).new(&block)
|
1814
|
+
end
|
1815
|
+
|
1786
1816
|
##
|
1787
1817
|
# Create a new client object for RegionTargetHttpProxies.
|
1788
1818
|
#
|
@@ -1843,6 +1873,36 @@ module Google
|
|
1843
1873
|
package_module.const_get(:RegionTargetHttpsProxies).const_get(:Rest).const_get(:Client).new(&block)
|
1844
1874
|
end
|
1845
1875
|
|
1876
|
+
##
|
1877
|
+
# Create a new client object for RegionTargetTcpProxies.
|
1878
|
+
#
|
1879
|
+
# By default, this returns an instance of
|
1880
|
+
# [Google::Cloud::Compute::V1::RegionTargetTcpProxies::Rest::Client](https://googleapis.dev/ruby/google-cloud-compute-v1/latest/Google/Cloud/Compute/V1/RegionTargetTcpProxies/Rest/Client.html)
|
1881
|
+
# for version V1 of the API.
|
1882
|
+
# However, you can specify specify a different API version by passing it in the
|
1883
|
+
# `version` parameter. If the RegionTargetTcpProxies service is
|
1884
|
+
# supported by that API version, and the corresponding gem is available, the
|
1885
|
+
# appropriate versioned client will be returned.
|
1886
|
+
#
|
1887
|
+
# ## About RegionTargetTcpProxies
|
1888
|
+
#
|
1889
|
+
# The RegionTargetTcpProxies API.
|
1890
|
+
#
|
1891
|
+
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
1892
|
+
# Defaults to `:v1`.
|
1893
|
+
# @return [RegionTargetTcpProxies::Rest::Client] A client object for the specified version.
|
1894
|
+
#
|
1895
|
+
def self.region_target_tcp_proxies version: :v1, &block
|
1896
|
+
require "google/cloud/compute/#{version.to_s.downcase}"
|
1897
|
+
|
1898
|
+
package_name = Google::Cloud::Compute
|
1899
|
+
.constants
|
1900
|
+
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
1901
|
+
.first
|
1902
|
+
package_module = Google::Cloud::Compute.const_get package_name
|
1903
|
+
package_module.const_get(:RegionTargetTcpProxies).const_get(:Rest).const_get(:Client).new(&block)
|
1904
|
+
end
|
1905
|
+
|
1846
1906
|
##
|
1847
1907
|
# Create a new client object for RegionUrlMaps.
|
1848
1908
|
#
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-compute
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.5.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-
|
11
|
+
date: 2022-09-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-cloud-compute-v1
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '1.
|
19
|
+
version: '1.7'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '1.
|
26
|
+
version: '1.7'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: google-cloud-core
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -44,28 +44,28 @@ dependencies:
|
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: 1.
|
47
|
+
version: 1.26.1
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: 1.
|
54
|
+
version: 1.26.1
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: minitest
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
59
|
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: '5.
|
61
|
+
version: '5.16'
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: '5.
|
68
|
+
version: '5.16'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: minitest-focus
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
@@ -100,14 +100,14 @@ dependencies:
|
|
100
100
|
requirements:
|
101
101
|
- - ">="
|
102
102
|
- !ruby/object:Gem::Version
|
103
|
-
version: '
|
103
|
+
version: '13.0'
|
104
104
|
type: :development
|
105
105
|
prerelease: false
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
107
107
|
requirements:
|
108
108
|
- - ">="
|
109
109
|
- !ruby/object:Gem::Version
|
110
|
-
version: '
|
110
|
+
version: '13.0'
|
111
111
|
- !ruby/object:Gem::Dependency
|
112
112
|
name: redcarpet
|
113
113
|
requirement: !ruby/object:Gem::Requirement
|
@@ -176,14 +176,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
176
176
|
requirements:
|
177
177
|
- - ">="
|
178
178
|
- !ruby/object:Gem::Version
|
179
|
-
version: '2.
|
179
|
+
version: '2.6'
|
180
180
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
181
181
|
requirements:
|
182
182
|
- - ">="
|
183
183
|
- !ruby/object:Gem::Version
|
184
184
|
version: '0'
|
185
185
|
requirements: []
|
186
|
-
rubygems_version: 3.3.
|
186
|
+
rubygems_version: 3.3.14
|
187
187
|
signing_key:
|
188
188
|
specification_version: 4
|
189
189
|
summary: API Client library for the Google Cloud Compute API
|