google-cloud-compute 1.1.0 → 1.2.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 +30 -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: 5b7bfa483cf33445c154716d4fa474dab64dd5b0e0e3f3197b49b59df329a642
|
4
|
+
data.tar.gz: 1344fa6db19de4cad7892b1a15e98caaddae7087ef7101db4c0581cab311f408
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8b2e2f2402647cc3833a9bae440de8c70444135b963ab9acb98e27e8987918bd0f9c6c53c1ed5f0e48e245f57e69c43db64a8fe5c0aa929a7a593564c4a61f52
|
7
|
+
data.tar.gz: 15ab1bb3f0fb5990f5c00478cf8afe3dbeb4542ce108e03e38cb3226ccb59d1984f167ef331a2f8c0057b8da592ac219c54046d02786bdaa32aec2bdecdfc32e
|
data/lib/google/cloud/compute.rb
CHANGED
@@ -825,6 +825,36 @@ module Google
|
|
825
825
|
service_module.const_get(:Rest).const_get(:Client).new(&block)
|
826
826
|
end
|
827
827
|
|
828
|
+
##
|
829
|
+
# Create a new client object for InterconnectRemoteLocations.
|
830
|
+
#
|
831
|
+
# By default, this returns an instance of
|
832
|
+
# [Google::Cloud::Compute::V1::InterconnectRemoteLocations::Rest::Client](https://cloud.google.com/ruby/docs/reference/google-cloud-compute-v1/latest/Google-Cloud-Compute-V1-InterconnectRemoteLocations-Rest-Client)
|
833
|
+
# for a REST client for version V1 of the API.
|
834
|
+
# However, you can specify a different API version by passing it in the
|
835
|
+
# `version` parameter. If the InterconnectRemoteLocations service is
|
836
|
+
# supported by that API version, and the corresponding gem is available, the
|
837
|
+
# appropriate versioned client will be returned.
|
838
|
+
#
|
839
|
+
# ## About InterconnectRemoteLocations
|
840
|
+
#
|
841
|
+
# The InterconnectRemoteLocations API.
|
842
|
+
#
|
843
|
+
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
844
|
+
# Defaults to `:v1`.
|
845
|
+
# @return [::Object] A client object for the specified version.
|
846
|
+
#
|
847
|
+
def self.interconnect_remote_locations version: :v1, &block
|
848
|
+
require "google/cloud/compute/#{version.to_s.downcase}"
|
849
|
+
|
850
|
+
package_name = Google::Cloud::Compute
|
851
|
+
.constants
|
852
|
+
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
853
|
+
.first
|
854
|
+
service_module = Google::Cloud::Compute.const_get(package_name).const_get(:InterconnectRemoteLocations)
|
855
|
+
service_module.const_get(:Rest).const_get(:Client).new(&block)
|
856
|
+
end
|
857
|
+
|
828
858
|
##
|
829
859
|
# Create a new client object for Interconnects.
|
830
860
|
#
|
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.2.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-07-11 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.3'
|
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.3'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: google-cloud-core
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|