google-cloud-compute 1.6.0 → 1.7.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 +60 -0
- metadata +4 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3885705e391d3458bc67515909041cc33030132ff61629a5ca6a5abc12bc4671
|
|
4
|
+
data.tar.gz: 2e6e74cfe92cea0edb071f5fbd7a67d45d6a41760c5670c976c58badadae45c0
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 49b036b452c803e65a07dbbca65b7e777f2b4126a13ad6a926a2c1ee6e446d4f8759fbb30a25aeaeed9c4a5879422029ed5acd7cb1b5721a1bc639f15c74e070
|
|
7
|
+
data.tar.gz: 9643d7afc3c306172837639bfe99f72870e32d83ded9dc985718d5d7dab3df1cf34b9636596097bf4939319a2df314acdeca861ee08540f63bd347b4bcbfb7dd
|
data/lib/google/cloud/compute.rb
CHANGED
|
@@ -766,6 +766,36 @@ module Google
|
|
|
766
766
|
service_module.const_get(:Rest).const_get(:Client).new(&block)
|
|
767
767
|
end
|
|
768
768
|
|
|
769
|
+
##
|
|
770
|
+
# Create a new client object for InstantSnapshots.
|
|
771
|
+
#
|
|
772
|
+
# By default, this returns an instance of
|
|
773
|
+
# [Google::Cloud::Compute::V1::InstantSnapshots::Rest::Client](https://cloud.google.com/ruby/docs/reference/google-cloud-compute-v1/latest/Google-Cloud-Compute-V1-InstantSnapshots-Rest-Client)
|
|
774
|
+
# for a REST client for version V1 of the API.
|
|
775
|
+
# However, you can specify a different API version by passing it in the
|
|
776
|
+
# `version` parameter. If the InstantSnapshots service is
|
|
777
|
+
# supported by that API version, and the corresponding gem is available, the
|
|
778
|
+
# appropriate versioned client will be returned.
|
|
779
|
+
#
|
|
780
|
+
# ## About InstantSnapshots
|
|
781
|
+
#
|
|
782
|
+
# The InstantSnapshots API.
|
|
783
|
+
#
|
|
784
|
+
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
|
785
|
+
# Defaults to `:v1`.
|
|
786
|
+
# @return [::Object] A client object for the specified version.
|
|
787
|
+
#
|
|
788
|
+
def self.instant_snapshots version: :v1, &block
|
|
789
|
+
require "google/cloud/compute/#{version.to_s.downcase}"
|
|
790
|
+
|
|
791
|
+
package_name = Google::Cloud::Compute
|
|
792
|
+
.constants
|
|
793
|
+
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
|
794
|
+
.first
|
|
795
|
+
service_module = Google::Cloud::Compute.const_get(package_name).const_get(:InstantSnapshots)
|
|
796
|
+
service_module.const_get(:Rest).const_get(:Client).new(&block)
|
|
797
|
+
end
|
|
798
|
+
|
|
769
799
|
##
|
|
770
800
|
# Create a new client object for InterconnectAttachments.
|
|
771
801
|
#
|
|
@@ -1696,6 +1726,36 @@ module Google
|
|
|
1696
1726
|
service_module.const_get(:Rest).const_get(:Client).new(&block)
|
|
1697
1727
|
end
|
|
1698
1728
|
|
|
1729
|
+
##
|
|
1730
|
+
# Create a new client object for RegionInstantSnapshots.
|
|
1731
|
+
#
|
|
1732
|
+
# By default, this returns an instance of
|
|
1733
|
+
# [Google::Cloud::Compute::V1::RegionInstantSnapshots::Rest::Client](https://cloud.google.com/ruby/docs/reference/google-cloud-compute-v1/latest/Google-Cloud-Compute-V1-RegionInstantSnapshots-Rest-Client)
|
|
1734
|
+
# for a REST client for version V1 of the API.
|
|
1735
|
+
# However, you can specify a different API version by passing it in the
|
|
1736
|
+
# `version` parameter. If the RegionInstantSnapshots service is
|
|
1737
|
+
# supported by that API version, and the corresponding gem is available, the
|
|
1738
|
+
# appropriate versioned client will be returned.
|
|
1739
|
+
#
|
|
1740
|
+
# ## About RegionInstantSnapshots
|
|
1741
|
+
#
|
|
1742
|
+
# The RegionInstantSnapshots API.
|
|
1743
|
+
#
|
|
1744
|
+
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
|
1745
|
+
# Defaults to `:v1`.
|
|
1746
|
+
# @return [::Object] A client object for the specified version.
|
|
1747
|
+
#
|
|
1748
|
+
def self.region_instant_snapshots version: :v1, &block
|
|
1749
|
+
require "google/cloud/compute/#{version.to_s.downcase}"
|
|
1750
|
+
|
|
1751
|
+
package_name = Google::Cloud::Compute
|
|
1752
|
+
.constants
|
|
1753
|
+
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
|
1754
|
+
.first
|
|
1755
|
+
service_module = Google::Cloud::Compute.const_get(package_name).const_get(:RegionInstantSnapshots)
|
|
1756
|
+
service_module.const_get(:Rest).const_get(:Client).new(&block)
|
|
1757
|
+
end
|
|
1758
|
+
|
|
1699
1759
|
##
|
|
1700
1760
|
# Create a new client object for RegionNetworkEndpointGroups.
|
|
1701
1761
|
#
|
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.7.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-03-06 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.10'
|
|
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.10'
|
|
27
27
|
- !ruby/object:Gem::Dependency
|
|
28
28
|
name: google-cloud-core
|
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|