google-cloud-compute 0.3.0 → 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a6867a36a7aec2b0a7e66857dbf64f4bcb88d6c22f032af0bf7d4b52cf7348f0
4
- data.tar.gz: 0ff99c82a9091116e25f252eea0fa1b3375ee2eff846cff02f95373995393c7f
3
+ metadata.gz: 487f9b5f44f3b03b2a3663d842c2d1010275724ee4666c8f25119a6c66fa01f3
4
+ data.tar.gz: 3cbb47337f015fe30b19dc0a7b716241e8d366479234833a61c4ea1305dfb00c
5
5
  SHA512:
6
- metadata.gz: c7d0dd6d6fcd3a8795033722984ab614a3a332f72152cb7824ad54a71b331fe616496c1621b5650068cc4c97d3a77901cbf1f9c95720f1730e2682aeb9186158
7
- data.tar.gz: 89a1341c648287fd261d444933b35a965a09e7219188a5a301c0f37f01550b41768bff714a6d65d375a87d907dcd89538cf12a81a663a6a6074abf619c422550
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.5+.
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. Currently, this means Ruby 2.5
44
- and later. Older versions of Ruby _may_ still work, but are unsupported and not
45
- recommended. See https://www.ruby-lang.org/en/downloads/branches/ for details
46
- about the Ruby support schedule.
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
 
@@ -20,7 +20,7 @@
20
20
  module Google
21
21
  module Cloud
22
22
  module Compute
23
- VERSION = "0.3.0"
23
+ VERSION = "0.5.0"
24
24
  end
25
25
  end
26
26
  end
@@ -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.3.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-04-19 00:00:00.000000000 Z
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.3'
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.3'
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.25.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.25.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.14'
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.14'
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: '12.0'
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: '12.0'
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.5'
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.5
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