google-cloud-compute 1.4.0 → 1.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/lib/google/cloud/compute/version.rb +1 -1
- data/lib/google/cloud/compute.rb +30 -0
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 40c02e8648d03b8db95d885b463053324046b36cb43257629a17be0f5180e0ce
|
|
4
|
+
data.tar.gz: 878304b0c9fd22e558c375fad0b9cd2c7728491edc84ad14e48caf2542a540a1
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e488fb204684c9f3f08a388a60581bc047ec58cdfe60ffd4295c803504620725523107196e54dbb471b49664ef3440217ffa07b5a7a89154fc30997abbb5f19f
|
|
7
|
+
data.tar.gz: 6800c080e472283b18d9075254d3d2ef3c059b6066ab78460187daffef1bf1b5718fa4cf30215e44de7aef7bd8906dfbb13aaa18d77bf97080e6c1cacbe99735
|
data/lib/google/cloud/compute.rb
CHANGED
|
@@ -2026,6 +2026,36 @@ module Google
|
|
|
2026
2026
|
service_module.const_get(:Rest).const_get(:Client).new(&block)
|
|
2027
2027
|
end
|
|
2028
2028
|
|
|
2029
|
+
##
|
|
2030
|
+
# Create a new client object for RegionZones.
|
|
2031
|
+
#
|
|
2032
|
+
# By default, this returns an instance of
|
|
2033
|
+
# [Google::Cloud::Compute::V1::RegionZones::Rest::Client](https://cloud.google.com/ruby/docs/reference/google-cloud-compute-v1/latest/Google-Cloud-Compute-V1-RegionZones-Rest-Client)
|
|
2034
|
+
# for a REST client for version V1 of the API.
|
|
2035
|
+
# However, you can specify a different API version by passing it in the
|
|
2036
|
+
# `version` parameter. If the RegionZones service is
|
|
2037
|
+
# supported by that API version, and the corresponding gem is available, the
|
|
2038
|
+
# appropriate versioned client will be returned.
|
|
2039
|
+
#
|
|
2040
|
+
# ## About RegionZones
|
|
2041
|
+
#
|
|
2042
|
+
# The RegionZones API.
|
|
2043
|
+
#
|
|
2044
|
+
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
|
2045
|
+
# Defaults to `:v1`.
|
|
2046
|
+
# @return [::Object] A client object for the specified version.
|
|
2047
|
+
#
|
|
2048
|
+
def self.region_zones version: :v1, &block
|
|
2049
|
+
require "google/cloud/compute/#{version.to_s.downcase}"
|
|
2050
|
+
|
|
2051
|
+
package_name = Google::Cloud::Compute
|
|
2052
|
+
.constants
|
|
2053
|
+
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
|
2054
|
+
.first
|
|
2055
|
+
service_module = Google::Cloud::Compute.const_get(package_name).const_get(:RegionZones)
|
|
2056
|
+
service_module.const_get(:Rest).const_get(:Client).new(&block)
|
|
2057
|
+
end
|
|
2058
|
+
|
|
2029
2059
|
##
|
|
2030
2060
|
# Create a new client object for Regions.
|
|
2031
2061
|
#
|
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: 1.
|
|
4
|
+
version: 1.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: 2024-
|
|
11
|
+
date: 2024-02-08 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: google-cloud-compute-v1
|