google-cloud-compute 1.2.0 → 1.3.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: 5b7bfa483cf33445c154716d4fa474dab64dd5b0e0e3f3197b49b59df329a642
4
- data.tar.gz: 1344fa6db19de4cad7892b1a15e98caaddae7087ef7101db4c0581cab311f408
3
+ metadata.gz: 2ce118bd0dc44519c446a60e6af1490c87aa2bef2f3e19c3decc08bc7e3c273b
4
+ data.tar.gz: b90b563252074bd3d7a3540c5b5a52d52d17d9b3033882233877a238abdbdf8d
5
5
  SHA512:
6
- metadata.gz: 8b2e2f2402647cc3833a9bae440de8c70444135b963ab9acb98e27e8987918bd0f9c6c53c1ed5f0e48e245f57e69c43db64a8fe5c0aa929a7a593564c4a61f52
7
- data.tar.gz: 15ab1bb3f0fb5990f5c00478cf8afe3dbeb4542ce108e03e38cb3226ccb59d1984f167ef331a2f8c0057b8da592ac219c54046d02786bdaa32aec2bdecdfc32e
6
+ metadata.gz: 4addb1679124d58f9366d1c2c9baf3bf0f30d8941edacd1dfe03befe373251c1ebe42a3e8615476f36b7d69618058669a54440d1ccc10fc92f767bd92a662c0a
7
+ data.tar.gz: 239dbfceeb27d4a3335c101a281f422812281b54c0734d5c09d9f59471eca18447b890470e5c13759a5b9d0eed81af86908764b414cde60d5a133488393817c8
@@ -20,7 +20,7 @@
20
20
  module Google
21
21
  module Cloud
22
22
  module Compute
23
- VERSION = "1.2.0"
23
+ VERSION = "1.3.0"
24
24
  end
25
25
  end
26
26
  end
@@ -2235,6 +2235,36 @@ module Google
2235
2235
  service_module.const_get(:Rest).const_get(:Client).new(&block)
2236
2236
  end
2237
2237
 
2238
+ ##
2239
+ # Create a new client object for SnapshotSettingsService.
2240
+ #
2241
+ # By default, this returns an instance of
2242
+ # [Google::Cloud::Compute::V1::SnapshotSettingsService::Rest::Client](https://cloud.google.com/ruby/docs/reference/google-cloud-compute-v1/latest/Google-Cloud-Compute-V1-SnapshotSettingsService-Rest-Client)
2243
+ # for a REST client for version V1 of the API.
2244
+ # However, you can specify a different API version by passing it in the
2245
+ # `version` parameter. If the SnapshotSettingsService service is
2246
+ # supported by that API version, and the corresponding gem is available, the
2247
+ # appropriate versioned client will be returned.
2248
+ #
2249
+ # ## About SnapshotSettingsService
2250
+ #
2251
+ # The SnapshotSettings API.
2252
+ #
2253
+ # @param version [::String, ::Symbol] The API version to connect to. Optional.
2254
+ # Defaults to `:v1`.
2255
+ # @return [::Object] A client object for the specified version.
2256
+ #
2257
+ def self.snapshot_settings_service version: :v1, &block
2258
+ require "google/cloud/compute/#{version.to_s.downcase}"
2259
+
2260
+ package_name = Google::Cloud::Compute
2261
+ .constants
2262
+ .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
2263
+ .first
2264
+ service_module = Google::Cloud::Compute.const_get(package_name).const_get(:SnapshotSettingsService)
2265
+ service_module.const_get(:Rest).const_get(:Client).new(&block)
2266
+ end
2267
+
2238
2268
  ##
2239
2269
  # Create a new client object for Snapshots.
2240
2270
  #
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.2.0
4
+ version: 1.3.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: 2023-07-11 00:00:00.000000000 Z
11
+ date: 2023-12-13 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: '2.3'
19
+ version: '2.6'
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: '2.3'
26
+ version: '2.6'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: google-cloud-core
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -183,7 +183,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
183
183
  - !ruby/object:Gem::Version
184
184
  version: '0'
185
185
  requirements: []
186
- rubygems_version: 3.4.2
186
+ rubygems_version: 3.4.19
187
187
  signing_key:
188
188
  specification_version: 4
189
189
  summary: API Client library for the Google Cloud Compute API