google-cloud-compute 0.4.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3a59c7a94b6de69c08631a8e1b18b53607b24fa920db48d28eed1417f2522d0e
4
- data.tar.gz: 90c7c5ac3bb9cb32afe652e674625b24449e2f9d8d2dd28a0c3b3467a3c81b5a
3
+ metadata.gz: 487f9b5f44f3b03b2a3663d842c2d1010275724ee4666c8f25119a6c66fa01f3
4
+ data.tar.gz: 3cbb47337f015fe30b19dc0a7b716241e8d366479234833a61c4ea1305dfb00c
5
5
  SHA512:
6
- metadata.gz: 7f110a708dec6538cea1bb0191f08f5427ec280cd44f6e45b5a928603afae6ce4839249d44c557c319edb0b22b1456dd6b533c84b18400b8a6376a9a4cd40c00
7
- data.tar.gz: 8f3db1432111567b36f7e2a6695d3846a95f38103d8f74529c0b7db7552f554660b1c74afd22306bcf1e9d91fe788201920f1a90066e5a337494ff7c94119337
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
@@ -20,7 +20,7 @@
20
20
  module Google
21
21
  module Cloud
22
22
  module Compute
23
- VERSION = "0.4.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.4.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-07-02 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