google-cloud-compute 1.11.1 → 1.11.2

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: 2ccdeed4c48cad03fbf16f24fa98f9bad3d51e8651482480f607613f20e3c914
4
- data.tar.gz: 219108a9046d8bff83455ad647129846d9a5e14959feba65ec934ed5654f91a5
3
+ metadata.gz: 75f33517b93f854a5e30d7bc82e3263ff48a23499bffa8a63d824ea20d9cbead
4
+ data.tar.gz: 8c260fb644f32c22f7bd714bfb4887c1fd7feb98b38b0db5b03f7f718167f3c3
5
5
  SHA512:
6
- metadata.gz: f189ea882eac5d44e9bf2f41b8176ac2712e1070b82819ba730768a1b4f2dbdf233b33c37c4de4c250d7ac76aca61c9c5d75a3355cf0a1f3090f746ffc999a48
7
- data.tar.gz: 942b941f71f1ad7c252185a2dd1bf77a9a232400df555c047102d6afa993fe152bac4c36b5e90ba4f03d8c69b9f5f116f70749037998beb506cd91840f5990e3
6
+ metadata.gz: 5a884d08253ede2bfa16a1140a582f0c3e87e814807dcb29a7be980016148169df4862648265cf7f1b7bfd217dcf156ee0a6eae79db6936f7b0dd382cb764ffb
7
+ data.tar.gz: d9234dad9fe0cb7f9ef2e849d864cf82090e3a1896b0200fd9fbd42f0b8776ea4fbeb7175d969bdf453cda9d13648e54fef62dd466f1556b5916df67a1260bb6
data/README.md CHANGED
@@ -34,6 +34,14 @@ In order to use this library, you first need to go through the following steps:
34
34
  1. [Enable the API.](https://console.cloud.google.com/apis/library/compute.googleapis.com)
35
35
  1. {file:AUTHENTICATION.md Set up authentication.}
36
36
 
37
+ ```ruby
38
+ require "google/cloud/compute"
39
+
40
+ client = Google::Cloud::Compute.accelerator_types
41
+ request = ::Google::Cloud::Compute::V1::AggregatedListAcceleratorTypesRequest.new # (request fields as keyword arguments...)
42
+ response = client.aggregated_list request
43
+ ```
44
+
37
45
  ## Debug Logging
38
46
 
39
47
  This library comes with opt-in Debug Logging that can help you troubleshoot
@@ -20,7 +20,7 @@
20
20
  module Google
21
21
  module Cloud
22
22
  module Compute
23
- VERSION = "1.11.1"
23
+ VERSION = "1.11.2"
24
24
  end
25
25
  end
26
26
  end
@@ -1747,6 +1747,69 @@ module Google
1747
1747
  false
1748
1748
  end
1749
1749
 
1750
+ ##
1751
+ # Create a new client object for InterconnectAttachmentGroups.
1752
+ #
1753
+ # By default, this returns an instance of
1754
+ # [Google::Cloud::Compute::V1::InterconnectAttachmentGroups::Rest::Client](https://cloud.google.com/ruby/docs/reference/google-cloud-compute-v1/latest/Google-Cloud-Compute-V1-InterconnectAttachmentGroups-Rest-Client)
1755
+ # for a REST client for version V1 of the API.
1756
+ # However, you can specify a different API version by passing it in the
1757
+ # `version` parameter. If the InterconnectAttachmentGroups service is
1758
+ # supported by that API version, and the corresponding gem is available, the
1759
+ # appropriate versioned client will be returned.
1760
+ #
1761
+ # Raises an exception if the currently installed versioned client gem for the
1762
+ # given API version does not support the InterconnectAttachmentGroups service.
1763
+ # You can determine whether the method will succeed by calling
1764
+ # {Google::Cloud::Compute.interconnect_attachment_groups_available?}.
1765
+ #
1766
+ # ## About InterconnectAttachmentGroups
1767
+ #
1768
+ # The InterconnectAttachmentGroups API.
1769
+ #
1770
+ # @param version [::String, ::Symbol] The API version to connect to. Optional.
1771
+ # Defaults to `:v1`.
1772
+ # @return [::Object] A client object for the specified version.
1773
+ #
1774
+ def self.interconnect_attachment_groups version: :v1, &block
1775
+ require "google/cloud/compute/#{version.to_s.downcase}"
1776
+
1777
+ package_name = Google::Cloud::Compute
1778
+ .constants
1779
+ .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
1780
+ .first
1781
+ service_module = Google::Cloud::Compute.const_get(package_name).const_get(:InterconnectAttachmentGroups)
1782
+ service_module.const_get(:Rest).const_get(:Client).new(&block)
1783
+ end
1784
+
1785
+ ##
1786
+ # Determines whether the InterconnectAttachmentGroups service is supported by the current client.
1787
+ # If true, you can retrieve a client object by calling {Google::Cloud::Compute.interconnect_attachment_groups}.
1788
+ # If false, that method will raise an exception. This could happen if the given
1789
+ # API version does not exist or does not support the InterconnectAttachmentGroups service,
1790
+ # or if the versioned client gem needs an update to support the InterconnectAttachmentGroups service.
1791
+ #
1792
+ # @param version [::String, ::Symbol] The API version to connect to. Optional.
1793
+ # Defaults to `:v1`.
1794
+ # @return [boolean] Whether the service is available.
1795
+ #
1796
+ def self.interconnect_attachment_groups_available? version: :v1
1797
+ require "google/cloud/compute/#{version.to_s.downcase}"
1798
+ package_name = Google::Cloud::Compute
1799
+ .constants
1800
+ .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
1801
+ .first
1802
+ return false unless package_name
1803
+ service_module = Google::Cloud::Compute.const_get package_name
1804
+ return false unless service_module.const_defined? :InterconnectAttachmentGroups
1805
+ service_module = service_module.const_get :InterconnectAttachmentGroups
1806
+ return false unless service_module.const_defined? :Rest
1807
+ service_module = service_module.const_get :Rest
1808
+ service_module.const_defined? :Client
1809
+ rescue ::LoadError
1810
+ false
1811
+ end
1812
+
1750
1813
  ##
1751
1814
  # Create a new client object for InterconnectAttachments.
1752
1815
  #
@@ -1810,6 +1873,69 @@ module Google
1810
1873
  false
1811
1874
  end
1812
1875
 
1876
+ ##
1877
+ # Create a new client object for InterconnectGroups.
1878
+ #
1879
+ # By default, this returns an instance of
1880
+ # [Google::Cloud::Compute::V1::InterconnectGroups::Rest::Client](https://cloud.google.com/ruby/docs/reference/google-cloud-compute-v1/latest/Google-Cloud-Compute-V1-InterconnectGroups-Rest-Client)
1881
+ # for a REST client for version V1 of the API.
1882
+ # However, you can specify a different API version by passing it in the
1883
+ # `version` parameter. If the InterconnectGroups service is
1884
+ # supported by that API version, and the corresponding gem is available, the
1885
+ # appropriate versioned client will be returned.
1886
+ #
1887
+ # Raises an exception if the currently installed versioned client gem for the
1888
+ # given API version does not support the InterconnectGroups service.
1889
+ # You can determine whether the method will succeed by calling
1890
+ # {Google::Cloud::Compute.interconnect_groups_available?}.
1891
+ #
1892
+ # ## About InterconnectGroups
1893
+ #
1894
+ # The InterconnectGroups API.
1895
+ #
1896
+ # @param version [::String, ::Symbol] The API version to connect to. Optional.
1897
+ # Defaults to `:v1`.
1898
+ # @return [::Object] A client object for the specified version.
1899
+ #
1900
+ def self.interconnect_groups version: :v1, &block
1901
+ require "google/cloud/compute/#{version.to_s.downcase}"
1902
+
1903
+ package_name = Google::Cloud::Compute
1904
+ .constants
1905
+ .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
1906
+ .first
1907
+ service_module = Google::Cloud::Compute.const_get(package_name).const_get(:InterconnectGroups)
1908
+ service_module.const_get(:Rest).const_get(:Client).new(&block)
1909
+ end
1910
+
1911
+ ##
1912
+ # Determines whether the InterconnectGroups service is supported by the current client.
1913
+ # If true, you can retrieve a client object by calling {Google::Cloud::Compute.interconnect_groups}.
1914
+ # If false, that method will raise an exception. This could happen if the given
1915
+ # API version does not exist or does not support the InterconnectGroups service,
1916
+ # or if the versioned client gem needs an update to support the InterconnectGroups service.
1917
+ #
1918
+ # @param version [::String, ::Symbol] The API version to connect to. Optional.
1919
+ # Defaults to `:v1`.
1920
+ # @return [boolean] Whether the service is available.
1921
+ #
1922
+ def self.interconnect_groups_available? version: :v1
1923
+ require "google/cloud/compute/#{version.to_s.downcase}"
1924
+ package_name = Google::Cloud::Compute
1925
+ .constants
1926
+ .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
1927
+ .first
1928
+ return false unless package_name
1929
+ service_module = Google::Cloud::Compute.const_get package_name
1930
+ return false unless service_module.const_defined? :InterconnectGroups
1931
+ service_module = service_module.const_get :InterconnectGroups
1932
+ return false unless service_module.const_defined? :Rest
1933
+ service_module = service_module.const_get :Rest
1934
+ service_module.const_defined? :Client
1935
+ rescue ::LoadError
1936
+ false
1937
+ end
1938
+
1813
1939
  ##
1814
1940
  # Create a new client object for InterconnectLocations.
1815
1941
  #
@@ -4708,6 +4834,69 @@ module Google
4708
4834
  false
4709
4835
  end
4710
4836
 
4837
+ ##
4838
+ # Create a new client object for ReservationSubBlocks.
4839
+ #
4840
+ # By default, this returns an instance of
4841
+ # [Google::Cloud::Compute::V1::ReservationSubBlocks::Rest::Client](https://cloud.google.com/ruby/docs/reference/google-cloud-compute-v1/latest/Google-Cloud-Compute-V1-ReservationSubBlocks-Rest-Client)
4842
+ # for a REST client for version V1 of the API.
4843
+ # However, you can specify a different API version by passing it in the
4844
+ # `version` parameter. If the ReservationSubBlocks service is
4845
+ # supported by that API version, and the corresponding gem is available, the
4846
+ # appropriate versioned client will be returned.
4847
+ #
4848
+ # Raises an exception if the currently installed versioned client gem for the
4849
+ # given API version does not support the ReservationSubBlocks service.
4850
+ # You can determine whether the method will succeed by calling
4851
+ # {Google::Cloud::Compute.reservation_sub_blocks_available?}.
4852
+ #
4853
+ # ## About ReservationSubBlocks
4854
+ #
4855
+ # The ReservationSubBlocks API.
4856
+ #
4857
+ # @param version [::String, ::Symbol] The API version to connect to. Optional.
4858
+ # Defaults to `:v1`.
4859
+ # @return [::Object] A client object for the specified version.
4860
+ #
4861
+ def self.reservation_sub_blocks version: :v1, &block
4862
+ require "google/cloud/compute/#{version.to_s.downcase}"
4863
+
4864
+ package_name = Google::Cloud::Compute
4865
+ .constants
4866
+ .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
4867
+ .first
4868
+ service_module = Google::Cloud::Compute.const_get(package_name).const_get(:ReservationSubBlocks)
4869
+ service_module.const_get(:Rest).const_get(:Client).new(&block)
4870
+ end
4871
+
4872
+ ##
4873
+ # Determines whether the ReservationSubBlocks service is supported by the current client.
4874
+ # If true, you can retrieve a client object by calling {Google::Cloud::Compute.reservation_sub_blocks}.
4875
+ # If false, that method will raise an exception. This could happen if the given
4876
+ # API version does not exist or does not support the ReservationSubBlocks service,
4877
+ # or if the versioned client gem needs an update to support the ReservationSubBlocks service.
4878
+ #
4879
+ # @param version [::String, ::Symbol] The API version to connect to. Optional.
4880
+ # Defaults to `:v1`.
4881
+ # @return [boolean] Whether the service is available.
4882
+ #
4883
+ def self.reservation_sub_blocks_available? version: :v1
4884
+ require "google/cloud/compute/#{version.to_s.downcase}"
4885
+ package_name = Google::Cloud::Compute
4886
+ .constants
4887
+ .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
4888
+ .first
4889
+ return false unless package_name
4890
+ service_module = Google::Cloud::Compute.const_get package_name
4891
+ return false unless service_module.const_defined? :ReservationSubBlocks
4892
+ service_module = service_module.const_get :ReservationSubBlocks
4893
+ return false unless service_module.const_defined? :Rest
4894
+ service_module = service_module.const_get :Rest
4895
+ service_module.const_defined? :Client
4896
+ rescue ::LoadError
4897
+ false
4898
+ end
4899
+
4711
4900
  ##
4712
4901
  # Create a new client object for Reservations.
4713
4902
  #
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-compute
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.11.1
4
+ version: 1.11.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
@@ -69,7 +69,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
69
69
  - !ruby/object:Gem::Version
70
70
  version: '0'
71
71
  requirements: []
72
- rubygems_version: 3.6.8
72
+ rubygems_version: 3.6.9
73
73
  specification_version: 4
74
74
  summary: API Client library for the Google Cloud Compute API
75
75
  test_files: []