google-cloud-compute 1.4.0 → 1.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: 0d5a74a8bcf755f88f89cccf8083ee1f51e14f4280b8690dc7d8db446a27fc63
4
- data.tar.gz: 1219006fb9270e52e25f75bc3051846ea9021216d89aabc6980b7be17ecf6ed3
3
+ metadata.gz: 40c02e8648d03b8db95d885b463053324046b36cb43257629a17be0f5180e0ce
4
+ data.tar.gz: 878304b0c9fd22e558c375fad0b9cd2c7728491edc84ad14e48caf2542a540a1
5
5
  SHA512:
6
- metadata.gz: 5f8a04faefe068786b6d8be3cd42275a9070cfc169f4314132f6e26e22a026b3bf83e8c70877195a3d7c28d2cf411d112984217402f4dfbd80c83b9522c20963
7
- data.tar.gz: d78caff6a6972c5321c1c488bc9718a4802307c4418531b0bf902717251ddf4431abc0365c69b52cbd94e2d4e7ed4254bd0d73ea4b7a9d55c3520e0280c55a29
6
+ metadata.gz: e488fb204684c9f3f08a388a60581bc047ec58cdfe60ffd4295c803504620725523107196e54dbb471b49664ef3440217ffa07b5a7a89154fc30997abbb5f19f
7
+ data.tar.gz: 6800c080e472283b18d9075254d3d2ef3c059b6066ab78460187daffef1bf1b5718fa4cf30215e44de7aef7bd8906dfbb13aaa18d77bf97080e6c1cacbe99735
@@ -20,7 +20,7 @@
20
20
  module Google
21
21
  module Cloud
22
22
  module Compute
23
- VERSION = "1.4.0"
23
+ VERSION = "1.5.0"
24
24
  end
25
25
  end
26
26
  end
@@ -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.0
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-01-15 00:00:00.000000000 Z
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