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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5bc6c5088c59d4102ce3a482872179d21ee081ea294b000edee430ebfeeaefbb
4
- data.tar.gz: d89f05e8062f72e26679b27ccd21733f390225da24b4e4e9a84e01909630d7e2
3
+ metadata.gz: 5b7bfa483cf33445c154716d4fa474dab64dd5b0e0e3f3197b49b59df329a642
4
+ data.tar.gz: 1344fa6db19de4cad7892b1a15e98caaddae7087ef7101db4c0581cab311f408
5
5
  SHA512:
6
- metadata.gz: ba15f09015d0ad77ddb3f94dd71102e07a3743cc4965cebce3dc6ba149118fc23428ed0a3a2a8a28e38bb33c1fae9b8407a9ea1f05eafac1afaf43a99a806712
7
- data.tar.gz: c58341fafa73bf9f3c87d6390c680335414a80ba15da716af96aa97e586c9a272167a7e67d0196e8c541f8b59e554e25a63a38bc11150288cc02957d63b30b97
6
+ metadata.gz: 8b2e2f2402647cc3833a9bae440de8c70444135b963ab9acb98e27e8987918bd0f9c6c53c1ed5f0e48e245f57e69c43db64a8fe5c0aa929a7a593564c4a61f52
7
+ data.tar.gz: 15ab1bb3f0fb5990f5c00478cf8afe3dbeb4542ce108e03e38cb3226ccb59d1984f167ef331a2f8c0057b8da592ac219c54046d02786bdaa32aec2bdecdfc32e
@@ -20,7 +20,7 @@
20
20
  module Google
21
21
  module Cloud
22
22
  module Compute
23
- VERSION = "1.1.0"
23
+ VERSION = "1.2.0"
24
24
  end
25
25
  end
26
26
  end
@@ -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.1.0
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-03-23 00:00:00.000000000 Z
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.1'
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.1'
26
+ version: '2.3'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: google-cloud-core
29
29
  requirement: !ruby/object:Gem::Requirement