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 +4 -4
- data/lib/google/cloud/compute/version.rb +1 -1
- data/lib/google/cloud/compute.rb +30 -0
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2ce118bd0dc44519c446a60e6af1490c87aa2bef2f3e19c3decc08bc7e3c273b
|
4
|
+
data.tar.gz: b90b563252074bd3d7a3540c5b5a52d52d17d9b3033882233877a238abdbdf8d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4addb1679124d58f9366d1c2c9baf3bf0f30d8941edacd1dfe03befe373251c1ebe42a3e8615476f36b7d69618058669a54440d1ccc10fc92f767bd92a662c0a
|
7
|
+
data.tar.gz: 239dbfceeb27d4a3335c101a281f422812281b54c0734d5c09d9f59471eca18447b890470e5c13759a5b9d0eed81af86908764b414cde60d5a133488393817c8
|
data/lib/google/cloud/compute.rb
CHANGED
@@ -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.
|
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-
|
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.
|
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.
|
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.
|
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
|