google-cloud-compute 1.5.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/README.md +1 -1
- data/lib/google/cloud/compute/version.rb +1 -1
- data/lib/google/cloud/compute.rb +60 -0
- metadata +6 -118
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/README.md
CHANGED
@@ -36,7 +36,7 @@ In order to use this library, you first need to go through the following steps:
|
|
36
36
|
|
37
37
|
## Supported Ruby Versions
|
38
38
|
|
39
|
-
This library is supported on Ruby 2.
|
39
|
+
This library is supported on Ruby 2.7+.
|
40
40
|
|
41
41
|
Google provides official support for Ruby versions that are actively supported
|
42
42
|
by Ruby Core—that is, Ruby versions that are either in normal maintenance or
|
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
|
@@ -38,118 +38,6 @@ dependencies:
|
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '1.6'
|
41
|
-
- !ruby/object:Gem::Dependency
|
42
|
-
name: google-style
|
43
|
-
requirement: !ruby/object:Gem::Requirement
|
44
|
-
requirements:
|
45
|
-
- - "~>"
|
46
|
-
- !ruby/object:Gem::Version
|
47
|
-
version: 1.26.1
|
48
|
-
type: :development
|
49
|
-
prerelease: false
|
50
|
-
version_requirements: !ruby/object:Gem::Requirement
|
51
|
-
requirements:
|
52
|
-
- - "~>"
|
53
|
-
- !ruby/object:Gem::Version
|
54
|
-
version: 1.26.1
|
55
|
-
- !ruby/object:Gem::Dependency
|
56
|
-
name: minitest
|
57
|
-
requirement: !ruby/object:Gem::Requirement
|
58
|
-
requirements:
|
59
|
-
- - "~>"
|
60
|
-
- !ruby/object:Gem::Version
|
61
|
-
version: '5.16'
|
62
|
-
type: :development
|
63
|
-
prerelease: false
|
64
|
-
version_requirements: !ruby/object:Gem::Requirement
|
65
|
-
requirements:
|
66
|
-
- - "~>"
|
67
|
-
- !ruby/object:Gem::Version
|
68
|
-
version: '5.16'
|
69
|
-
- !ruby/object:Gem::Dependency
|
70
|
-
name: minitest-focus
|
71
|
-
requirement: !ruby/object:Gem::Requirement
|
72
|
-
requirements:
|
73
|
-
- - "~>"
|
74
|
-
- !ruby/object:Gem::Version
|
75
|
-
version: '1.1'
|
76
|
-
type: :development
|
77
|
-
prerelease: false
|
78
|
-
version_requirements: !ruby/object:Gem::Requirement
|
79
|
-
requirements:
|
80
|
-
- - "~>"
|
81
|
-
- !ruby/object:Gem::Version
|
82
|
-
version: '1.1'
|
83
|
-
- !ruby/object:Gem::Dependency
|
84
|
-
name: minitest-rg
|
85
|
-
requirement: !ruby/object:Gem::Requirement
|
86
|
-
requirements:
|
87
|
-
- - "~>"
|
88
|
-
- !ruby/object:Gem::Version
|
89
|
-
version: '5.2'
|
90
|
-
type: :development
|
91
|
-
prerelease: false
|
92
|
-
version_requirements: !ruby/object:Gem::Requirement
|
93
|
-
requirements:
|
94
|
-
- - "~>"
|
95
|
-
- !ruby/object:Gem::Version
|
96
|
-
version: '5.2'
|
97
|
-
- !ruby/object:Gem::Dependency
|
98
|
-
name: rake
|
99
|
-
requirement: !ruby/object:Gem::Requirement
|
100
|
-
requirements:
|
101
|
-
- - ">="
|
102
|
-
- !ruby/object:Gem::Version
|
103
|
-
version: '13.0'
|
104
|
-
type: :development
|
105
|
-
prerelease: false
|
106
|
-
version_requirements: !ruby/object:Gem::Requirement
|
107
|
-
requirements:
|
108
|
-
- - ">="
|
109
|
-
- !ruby/object:Gem::Version
|
110
|
-
version: '13.0'
|
111
|
-
- !ruby/object:Gem::Dependency
|
112
|
-
name: redcarpet
|
113
|
-
requirement: !ruby/object:Gem::Requirement
|
114
|
-
requirements:
|
115
|
-
- - "~>"
|
116
|
-
- !ruby/object:Gem::Version
|
117
|
-
version: '3.0'
|
118
|
-
type: :development
|
119
|
-
prerelease: false
|
120
|
-
version_requirements: !ruby/object:Gem::Requirement
|
121
|
-
requirements:
|
122
|
-
- - "~>"
|
123
|
-
- !ruby/object:Gem::Version
|
124
|
-
version: '3.0'
|
125
|
-
- !ruby/object:Gem::Dependency
|
126
|
-
name: simplecov
|
127
|
-
requirement: !ruby/object:Gem::Requirement
|
128
|
-
requirements:
|
129
|
-
- - "~>"
|
130
|
-
- !ruby/object:Gem::Version
|
131
|
-
version: '0.9'
|
132
|
-
type: :development
|
133
|
-
prerelease: false
|
134
|
-
version_requirements: !ruby/object:Gem::Requirement
|
135
|
-
requirements:
|
136
|
-
- - "~>"
|
137
|
-
- !ruby/object:Gem::Version
|
138
|
-
version: '0.9'
|
139
|
-
- !ruby/object:Gem::Dependency
|
140
|
-
name: yard
|
141
|
-
requirement: !ruby/object:Gem::Requirement
|
142
|
-
requirements:
|
143
|
-
- - "~>"
|
144
|
-
- !ruby/object:Gem::Version
|
145
|
-
version: '0.9'
|
146
|
-
type: :development
|
147
|
-
prerelease: false
|
148
|
-
version_requirements: !ruby/object:Gem::Requirement
|
149
|
-
requirements:
|
150
|
-
- - "~>"
|
151
|
-
- !ruby/object:Gem::Version
|
152
|
-
version: '0.9'
|
153
41
|
description: google-cloud-compute is the official client library for the Google Cloud
|
154
42
|
Compute API.
|
155
43
|
email: googleapis-packages@google.com
|
@@ -176,14 +64,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
176
64
|
requirements:
|
177
65
|
- - ">="
|
178
66
|
- !ruby/object:Gem::Version
|
179
|
-
version: '2.
|
67
|
+
version: '2.7'
|
180
68
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
181
69
|
requirements:
|
182
70
|
- - ">="
|
183
71
|
- !ruby/object:Gem::Version
|
184
72
|
version: '0'
|
185
73
|
requirements: []
|
186
|
-
rubygems_version: 3.5.
|
74
|
+
rubygems_version: 3.5.6
|
187
75
|
signing_key:
|
188
76
|
specification_version: 4
|
189
77
|
summary: API Client library for the Google Cloud Compute API
|