google-cloud-compute 1.19.1 → 1.22.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.
@@ -66,6 +66,8 @@ module Google
66
66
  #
67
67
  # The AcceleratorTypes API.
68
68
  #
69
+ # This client uses AcceleratorTypes version 2026-09-01.
70
+ #
69
71
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
70
72
  # Defaults to `:v1`.
71
73
  # @return [::Object] A client object for the specified version.
@@ -129,6 +131,8 @@ module Google
129
131
  #
130
132
  # The Addresses API.
131
133
  #
134
+ # This client uses Addresses version 2026-09-01.
135
+ #
132
136
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
133
137
  # Defaults to `:v1`.
134
138
  # @return [::Object] A client object for the specified version.
@@ -192,6 +196,8 @@ module Google
192
196
  #
193
197
  # The Advice API.
194
198
  #
199
+ # This client uses Advice version 2026-09-01.
200
+ #
195
201
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
196
202
  # Defaults to `:v1`.
197
203
  # @return [::Object] A client object for the specified version.
@@ -255,6 +261,8 @@ module Google
255
261
  #
256
262
  # The Autoscalers API.
257
263
  #
264
+ # This client uses Autoscalers version 2026-09-01.
265
+ #
258
266
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
259
267
  # Defaults to `:v1`.
260
268
  # @return [::Object] A client object for the specified version.
@@ -318,6 +326,8 @@ module Google
318
326
  #
319
327
  # The BackendBuckets API.
320
328
  #
329
+ # This client uses BackendBuckets version 2026-09-01.
330
+ #
321
331
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
322
332
  # Defaults to `:v1`.
323
333
  # @return [::Object] A client object for the specified version.
@@ -381,6 +391,8 @@ module Google
381
391
  #
382
392
  # The BackendServices API.
383
393
  #
394
+ # This client uses BackendServices version 2026-09-01.
395
+ #
384
396
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
385
397
  # Defaults to `:v1`.
386
398
  # @return [::Object] A client object for the specified version.
@@ -444,6 +456,8 @@ module Google
444
456
  #
445
457
  # The CrossSiteNetworks API.
446
458
  #
459
+ # This client uses CrossSiteNetworks version 2026-09-01.
460
+ #
447
461
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
448
462
  # Defaults to `:v1`.
449
463
  # @return [::Object] A client object for the specified version.
@@ -507,6 +521,8 @@ module Google
507
521
  #
508
522
  # The DiskTypes API.
509
523
  #
524
+ # This client uses DiskTypes version 2026-09-01.
525
+ #
510
526
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
511
527
  # Defaults to `:v1`.
512
528
  # @return [::Object] A client object for the specified version.
@@ -570,6 +586,8 @@ module Google
570
586
  #
571
587
  # The Disks API.
572
588
  #
589
+ # This client uses Disks version 2026-09-01.
590
+ #
573
591
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
574
592
  # Defaults to `:v1`.
575
593
  # @return [::Object] A client object for the specified version.
@@ -633,6 +651,8 @@ module Google
633
651
  #
634
652
  # The ExternalVpnGateways API.
635
653
  #
654
+ # This client uses ExternalVpnGateways version 2026-09-01.
655
+ #
636
656
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
637
657
  # Defaults to `:v1`.
638
658
  # @return [::Object] A client object for the specified version.
@@ -696,6 +716,8 @@ module Google
696
716
  #
697
717
  # The FirewallPolicies API.
698
718
  #
719
+ # This client uses FirewallPolicies version 2026-09-01.
720
+ #
699
721
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
700
722
  # Defaults to `:v1`.
701
723
  # @return [::Object] A client object for the specified version.
@@ -759,6 +781,8 @@ module Google
759
781
  #
760
782
  # The Firewalls API.
761
783
  #
784
+ # This client uses Firewalls version 2026-09-01.
785
+ #
762
786
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
763
787
  # Defaults to `:v1`.
764
788
  # @return [::Object] A client object for the specified version.
@@ -822,6 +846,8 @@ module Google
822
846
  #
823
847
  # The ForwardingRules API.
824
848
  #
849
+ # This client uses ForwardingRules version 2026-09-01.
850
+ #
825
851
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
826
852
  # Defaults to `:v1`.
827
853
  # @return [::Object] A client object for the specified version.
@@ -885,6 +911,8 @@ module Google
885
911
  #
886
912
  # The FutureReservations API.
887
913
  #
914
+ # This client uses FutureReservations version 2026-09-01.
915
+ #
888
916
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
889
917
  # Defaults to `:v1`.
890
918
  # @return [::Object] A client object for the specified version.
@@ -948,6 +976,8 @@ module Google
948
976
  #
949
977
  # The GlobalAddresses API.
950
978
  #
979
+ # This client uses GlobalAddresses version 2026-09-01.
980
+ #
951
981
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
952
982
  # Defaults to `:v1`.
953
983
  # @return [::Object] A client object for the specified version.
@@ -1011,6 +1041,8 @@ module Google
1011
1041
  #
1012
1042
  # The GlobalForwardingRules API.
1013
1043
  #
1044
+ # This client uses GlobalForwardingRules version 2026-09-01.
1045
+ #
1014
1046
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
1015
1047
  # Defaults to `:v1`.
1016
1048
  # @return [::Object] A client object for the specified version.
@@ -1054,6 +1086,71 @@ module Google
1054
1086
  false
1055
1087
  end
1056
1088
 
1089
+ ##
1090
+ # Create a new client object for GlobalFrontendSettingsService.
1091
+ #
1092
+ # By default, this returns an instance of
1093
+ # [Google::Cloud::Compute::V1::GlobalFrontendSettingsService::Rest::Client](https://cloud.google.com/ruby/docs/reference/google-cloud-compute-v1/latest/Google-Cloud-Compute-V1-GlobalFrontendSettingsService-Rest-Client)
1094
+ # for a REST client for version V1 of the API.
1095
+ # However, you can specify a different API version by passing it in the
1096
+ # `version` parameter. If the GlobalFrontendSettingsService service is
1097
+ # supported by that API version, and the corresponding gem is available, the
1098
+ # appropriate versioned client will be returned.
1099
+ #
1100
+ # Raises an exception if the currently installed versioned client gem for the
1101
+ # given API version does not support the GlobalFrontendSettingsService service.
1102
+ # You can determine whether the method will succeed by calling
1103
+ # {Google::Cloud::Compute.global_frontend_settings_service_available?}.
1104
+ #
1105
+ # ## About GlobalFrontendSettingsService
1106
+ #
1107
+ # The GlobalFrontendSettings API.
1108
+ #
1109
+ # This client uses GlobalFrontendSettingsService version 2026-09-01.
1110
+ #
1111
+ # @param version [::String, ::Symbol] The API version to connect to. Optional.
1112
+ # Defaults to `:v1`.
1113
+ # @return [::Object] A client object for the specified version.
1114
+ #
1115
+ def self.global_frontend_settings_service version: :v1, &block
1116
+ require "google/cloud/compute/#{version.to_s.downcase}"
1117
+
1118
+ package_name = Google::Cloud::Compute
1119
+ .constants
1120
+ .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
1121
+ .first
1122
+ service_module = Google::Cloud::Compute.const_get(package_name).const_get(:GlobalFrontendSettingsService)
1123
+ service_module.const_get(:Rest).const_get(:Client).new(&block)
1124
+ end
1125
+
1126
+ ##
1127
+ # Determines whether the GlobalFrontendSettingsService service is supported by the current client.
1128
+ # If true, you can retrieve a client object by calling {Google::Cloud::Compute.global_frontend_settings_service}.
1129
+ # If false, that method will raise an exception. This could happen if the given
1130
+ # API version does not exist or does not support the GlobalFrontendSettingsService service,
1131
+ # or if the versioned client gem needs an update to support the GlobalFrontendSettingsService service.
1132
+ #
1133
+ # @param version [::String, ::Symbol] The API version to connect to. Optional.
1134
+ # Defaults to `:v1`.
1135
+ # @return [boolean] Whether the service is available.
1136
+ #
1137
+ def self.global_frontend_settings_service_available? version: :v1
1138
+ require "google/cloud/compute/#{version.to_s.downcase}"
1139
+ package_name = Google::Cloud::Compute
1140
+ .constants
1141
+ .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
1142
+ .first
1143
+ return false unless package_name
1144
+ service_module = Google::Cloud::Compute.const_get package_name
1145
+ return false unless service_module.const_defined? :GlobalFrontendSettingsService
1146
+ service_module = service_module.const_get :GlobalFrontendSettingsService
1147
+ return false unless service_module.const_defined? :Rest
1148
+ service_module = service_module.const_get :Rest
1149
+ service_module.const_defined? :Client
1150
+ rescue ::LoadError
1151
+ false
1152
+ end
1153
+
1057
1154
  ##
1058
1155
  # Create a new client object for GlobalNetworkEndpointGroups.
1059
1156
  #
@@ -1074,6 +1171,8 @@ module Google
1074
1171
  #
1075
1172
  # The GlobalNetworkEndpointGroups API.
1076
1173
  #
1174
+ # This client uses GlobalNetworkEndpointGroups version 2026-09-01.
1175
+ #
1077
1176
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
1078
1177
  # Defaults to `:v1`.
1079
1178
  # @return [::Object] A client object for the specified version.
@@ -1137,6 +1236,8 @@ module Google
1137
1236
  #
1138
1237
  # The GlobalOperations API.
1139
1238
  #
1239
+ # This client uses GlobalOperations version 2026-09-01.
1240
+ #
1140
1241
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
1141
1242
  # Defaults to `:v1`.
1142
1243
  # @return [::Object] A client object for the specified version.
@@ -1200,6 +1301,8 @@ module Google
1200
1301
  #
1201
1302
  # The GlobalOrganizationOperations API.
1202
1303
  #
1304
+ # This client uses GlobalOrganizationOperations version 2026-09-01.
1305
+ #
1203
1306
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
1204
1307
  # Defaults to `:v1`.
1205
1308
  # @return [::Object] A client object for the specified version.
@@ -1263,6 +1366,8 @@ module Google
1263
1366
  #
1264
1367
  # The GlobalPublicDelegatedPrefixes API.
1265
1368
  #
1369
+ # This client uses GlobalPublicDelegatedPrefixes version 2026-09-01.
1370
+ #
1266
1371
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
1267
1372
  # Defaults to `:v1`.
1268
1373
  # @return [::Object] A client object for the specified version.
@@ -1326,6 +1431,8 @@ module Google
1326
1431
  #
1327
1432
  # The GlobalVmExtensionPolicies API.
1328
1433
  #
1434
+ # This client uses GlobalVmExtensionPolicies version 2026-09-01.
1435
+ #
1329
1436
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
1330
1437
  # Defaults to `:v1`.
1331
1438
  # @return [::Object] A client object for the specified version.
@@ -1389,6 +1496,8 @@ module Google
1389
1496
  #
1390
1497
  # The HealthChecks API.
1391
1498
  #
1499
+ # This client uses HealthChecks version 2026-09-01.
1500
+ #
1392
1501
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
1393
1502
  # Defaults to `:v1`.
1394
1503
  # @return [::Object] A client object for the specified version.
@@ -1432,6 +1541,71 @@ module Google
1432
1541
  false
1433
1542
  end
1434
1543
 
1544
+ ##
1545
+ # Create a new client object for Hosts.
1546
+ #
1547
+ # By default, this returns an instance of
1548
+ # [Google::Cloud::Compute::V1::Hosts::Rest::Client](https://cloud.google.com/ruby/docs/reference/google-cloud-compute-v1/latest/Google-Cloud-Compute-V1-Hosts-Rest-Client)
1549
+ # for a REST client for version V1 of the API.
1550
+ # However, you can specify a different API version by passing it in the
1551
+ # `version` parameter. If the Hosts service is
1552
+ # supported by that API version, and the corresponding gem is available, the
1553
+ # appropriate versioned client will be returned.
1554
+ #
1555
+ # Raises an exception if the currently installed versioned client gem for the
1556
+ # given API version does not support the Hosts service.
1557
+ # You can determine whether the method will succeed by calling
1558
+ # {Google::Cloud::Compute.hosts_available?}.
1559
+ #
1560
+ # ## About Hosts
1561
+ #
1562
+ # The Hosts API.
1563
+ #
1564
+ # This client uses Hosts version 2026-09-01.
1565
+ #
1566
+ # @param version [::String, ::Symbol] The API version to connect to. Optional.
1567
+ # Defaults to `:v1`.
1568
+ # @return [::Object] A client object for the specified version.
1569
+ #
1570
+ def self.hosts version: :v1, &block
1571
+ require "google/cloud/compute/#{version.to_s.downcase}"
1572
+
1573
+ package_name = Google::Cloud::Compute
1574
+ .constants
1575
+ .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
1576
+ .first
1577
+ service_module = Google::Cloud::Compute.const_get(package_name).const_get(:Hosts)
1578
+ service_module.const_get(:Rest).const_get(:Client).new(&block)
1579
+ end
1580
+
1581
+ ##
1582
+ # Determines whether the Hosts service is supported by the current client.
1583
+ # If true, you can retrieve a client object by calling {Google::Cloud::Compute.hosts}.
1584
+ # If false, that method will raise an exception. This could happen if the given
1585
+ # API version does not exist or does not support the Hosts service,
1586
+ # or if the versioned client gem needs an update to support the Hosts service.
1587
+ #
1588
+ # @param version [::String, ::Symbol] The API version to connect to. Optional.
1589
+ # Defaults to `:v1`.
1590
+ # @return [boolean] Whether the service is available.
1591
+ #
1592
+ def self.hosts_available? version: :v1
1593
+ require "google/cloud/compute/#{version.to_s.downcase}"
1594
+ package_name = Google::Cloud::Compute
1595
+ .constants
1596
+ .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
1597
+ .first
1598
+ return false unless package_name
1599
+ service_module = Google::Cloud::Compute.const_get package_name
1600
+ return false unless service_module.const_defined? :Hosts
1601
+ service_module = service_module.const_get :Hosts
1602
+ return false unless service_module.const_defined? :Rest
1603
+ service_module = service_module.const_get :Rest
1604
+ service_module.const_defined? :Client
1605
+ rescue ::LoadError
1606
+ false
1607
+ end
1608
+
1435
1609
  ##
1436
1610
  # Create a new client object for ImageFamilyViews.
1437
1611
  #
@@ -1452,6 +1626,8 @@ module Google
1452
1626
  #
1453
1627
  # The ImageFamilyViews API.
1454
1628
  #
1629
+ # This client uses ImageFamilyViews version 2026-09-01.
1630
+ #
1455
1631
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
1456
1632
  # Defaults to `:v1`.
1457
1633
  # @return [::Object] A client object for the specified version.
@@ -1495,6 +1671,71 @@ module Google
1495
1671
  false
1496
1672
  end
1497
1673
 
1674
+ ##
1675
+ # Create a new client object for ImageViews.
1676
+ #
1677
+ # By default, this returns an instance of
1678
+ # [Google::Cloud::Compute::V1::ImageViews::Rest::Client](https://cloud.google.com/ruby/docs/reference/google-cloud-compute-v1/latest/Google-Cloud-Compute-V1-ImageViews-Rest-Client)
1679
+ # for a REST client for version V1 of the API.
1680
+ # However, you can specify a different API version by passing it in the
1681
+ # `version` parameter. If the ImageViews service is
1682
+ # supported by that API version, and the corresponding gem is available, the
1683
+ # appropriate versioned client will be returned.
1684
+ #
1685
+ # Raises an exception if the currently installed versioned client gem for the
1686
+ # given API version does not support the ImageViews service.
1687
+ # You can determine whether the method will succeed by calling
1688
+ # {Google::Cloud::Compute.image_views_available?}.
1689
+ #
1690
+ # ## About ImageViews
1691
+ #
1692
+ # The ImageViews API.
1693
+ #
1694
+ # This client uses ImageViews version 2026-09-01.
1695
+ #
1696
+ # @param version [::String, ::Symbol] The API version to connect to. Optional.
1697
+ # Defaults to `:v1`.
1698
+ # @return [::Object] A client object for the specified version.
1699
+ #
1700
+ def self.image_views version: :v1, &block
1701
+ require "google/cloud/compute/#{version.to_s.downcase}"
1702
+
1703
+ package_name = Google::Cloud::Compute
1704
+ .constants
1705
+ .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
1706
+ .first
1707
+ service_module = Google::Cloud::Compute.const_get(package_name).const_get(:ImageViews)
1708
+ service_module.const_get(:Rest).const_get(:Client).new(&block)
1709
+ end
1710
+
1711
+ ##
1712
+ # Determines whether the ImageViews service is supported by the current client.
1713
+ # If true, you can retrieve a client object by calling {Google::Cloud::Compute.image_views}.
1714
+ # If false, that method will raise an exception. This could happen if the given
1715
+ # API version does not exist or does not support the ImageViews service,
1716
+ # or if the versioned client gem needs an update to support the ImageViews service.
1717
+ #
1718
+ # @param version [::String, ::Symbol] The API version to connect to. Optional.
1719
+ # Defaults to `:v1`.
1720
+ # @return [boolean] Whether the service is available.
1721
+ #
1722
+ def self.image_views_available? version: :v1
1723
+ require "google/cloud/compute/#{version.to_s.downcase}"
1724
+ package_name = Google::Cloud::Compute
1725
+ .constants
1726
+ .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
1727
+ .first
1728
+ return false unless package_name
1729
+ service_module = Google::Cloud::Compute.const_get package_name
1730
+ return false unless service_module.const_defined? :ImageViews
1731
+ service_module = service_module.const_get :ImageViews
1732
+ return false unless service_module.const_defined? :Rest
1733
+ service_module = service_module.const_get :Rest
1734
+ service_module.const_defined? :Client
1735
+ rescue ::LoadError
1736
+ false
1737
+ end
1738
+
1498
1739
  ##
1499
1740
  # Create a new client object for Images.
1500
1741
  #
@@ -1515,6 +1756,8 @@ module Google
1515
1756
  #
1516
1757
  # The Images API.
1517
1758
  #
1759
+ # This client uses Images version 2026-09-01.
1760
+ #
1518
1761
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
1519
1762
  # Defaults to `:v1`.
1520
1763
  # @return [::Object] A client object for the specified version.
@@ -1578,6 +1821,8 @@ module Google
1578
1821
  #
1579
1822
  # The InstanceGroupManagerResizeRequests API.
1580
1823
  #
1824
+ # This client uses InstanceGroupManagerResizeRequests version 2026-09-01.
1825
+ #
1581
1826
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
1582
1827
  # Defaults to `:v1`.
1583
1828
  # @return [::Object] A client object for the specified version.
@@ -1641,6 +1886,8 @@ module Google
1641
1886
  #
1642
1887
  # The InstanceGroupManagers API.
1643
1888
  #
1889
+ # This client uses InstanceGroupManagers version 2026-09-01.
1890
+ #
1644
1891
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
1645
1892
  # Defaults to `:v1`.
1646
1893
  # @return [::Object] A client object for the specified version.
@@ -1704,6 +1951,8 @@ module Google
1704
1951
  #
1705
1952
  # The InstanceGroups API.
1706
1953
  #
1954
+ # This client uses InstanceGroups version 2026-09-01.
1955
+ #
1707
1956
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
1708
1957
  # Defaults to `:v1`.
1709
1958
  # @return [::Object] A client object for the specified version.
@@ -1767,6 +2016,8 @@ module Google
1767
2016
  #
1768
2017
  # The InstanceSettings API.
1769
2018
  #
2019
+ # This client uses InstanceSettingsService version 2026-09-01.
2020
+ #
1770
2021
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
1771
2022
  # Defaults to `:v1`.
1772
2023
  # @return [::Object] A client object for the specified version.
@@ -1830,6 +2081,8 @@ module Google
1830
2081
  #
1831
2082
  # The InstanceTemplates API.
1832
2083
  #
2084
+ # This client uses InstanceTemplates version 2026-09-01.
2085
+ #
1833
2086
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
1834
2087
  # Defaults to `:v1`.
1835
2088
  # @return [::Object] A client object for the specified version.
@@ -1893,6 +2146,8 @@ module Google
1893
2146
  #
1894
2147
  # The Instances API.
1895
2148
  #
2149
+ # This client uses Instances version 2026-09-01.
2150
+ #
1896
2151
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
1897
2152
  # Defaults to `:v1`.
1898
2153
  # @return [::Object] A client object for the specified version.
@@ -1956,6 +2211,8 @@ module Google
1956
2211
  #
1957
2212
  # The InstantSnapshotGroups API.
1958
2213
  #
2214
+ # This client uses InstantSnapshotGroups version 2026-09-01.
2215
+ #
1959
2216
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
1960
2217
  # Defaults to `:v1`.
1961
2218
  # @return [::Object] A client object for the specified version.
@@ -2019,6 +2276,8 @@ module Google
2019
2276
  #
2020
2277
  # The InstantSnapshots API.
2021
2278
  #
2279
+ # This client uses InstantSnapshots version 2026-09-01.
2280
+ #
2022
2281
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
2023
2282
  # Defaults to `:v1`.
2024
2283
  # @return [::Object] A client object for the specified version.
@@ -2082,6 +2341,8 @@ module Google
2082
2341
  #
2083
2342
  # The InterconnectAttachmentGroups API.
2084
2343
  #
2344
+ # This client uses InterconnectAttachmentGroups version 2026-09-01.
2345
+ #
2085
2346
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
2086
2347
  # Defaults to `:v1`.
2087
2348
  # @return [::Object] A client object for the specified version.
@@ -2145,6 +2406,8 @@ module Google
2145
2406
  #
2146
2407
  # The InterconnectAttachments API.
2147
2408
  #
2409
+ # This client uses InterconnectAttachments version 2026-09-01.
2410
+ #
2148
2411
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
2149
2412
  # Defaults to `:v1`.
2150
2413
  # @return [::Object] A client object for the specified version.
@@ -2208,6 +2471,8 @@ module Google
2208
2471
  #
2209
2472
  # The InterconnectGroups API.
2210
2473
  #
2474
+ # This client uses InterconnectGroups version 2026-09-01.
2475
+ #
2211
2476
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
2212
2477
  # Defaults to `:v1`.
2213
2478
  # @return [::Object] A client object for the specified version.
@@ -2271,6 +2536,8 @@ module Google
2271
2536
  #
2272
2537
  # The InterconnectLocations API.
2273
2538
  #
2539
+ # This client uses InterconnectLocations version 2026-09-01.
2540
+ #
2274
2541
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
2275
2542
  # Defaults to `:v1`.
2276
2543
  # @return [::Object] A client object for the specified version.
@@ -2334,6 +2601,8 @@ module Google
2334
2601
  #
2335
2602
  # The InterconnectRemoteLocations API.
2336
2603
  #
2604
+ # This client uses InterconnectRemoteLocations version 2026-09-01.
2605
+ #
2337
2606
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
2338
2607
  # Defaults to `:v1`.
2339
2608
  # @return [::Object] A client object for the specified version.
@@ -2397,6 +2666,8 @@ module Google
2397
2666
  #
2398
2667
  # The Interconnects API.
2399
2668
  #
2669
+ # This client uses Interconnects version 2026-09-01.
2670
+ #
2400
2671
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
2401
2672
  # Defaults to `:v1`.
2402
2673
  # @return [::Object] A client object for the specified version.
@@ -2460,6 +2731,8 @@ module Google
2460
2731
  #
2461
2732
  # The LicenseCodes API.
2462
2733
  #
2734
+ # This client uses LicenseCodes version 2026-09-01.
2735
+ #
2463
2736
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
2464
2737
  # Defaults to `:v1`.
2465
2738
  # @return [::Object] A client object for the specified version.
@@ -2523,6 +2796,8 @@ module Google
2523
2796
  #
2524
2797
  # The Licenses API.
2525
2798
  #
2799
+ # This client uses Licenses version 2026-09-01.
2800
+ #
2526
2801
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
2527
2802
  # Defaults to `:v1`.
2528
2803
  # @return [::Object] A client object for the specified version.
@@ -2586,6 +2861,8 @@ module Google
2586
2861
  #
2587
2862
  # The MachineImages API.
2588
2863
  #
2864
+ # This client uses MachineImages version 2026-09-01.
2865
+ #
2589
2866
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
2590
2867
  # Defaults to `:v1`.
2591
2868
  # @return [::Object] A client object for the specified version.
@@ -2649,6 +2926,8 @@ module Google
2649
2926
  #
2650
2927
  # The MachineTypes API.
2651
2928
  #
2929
+ # This client uses MachineTypes version 2026-09-01.
2930
+ #
2652
2931
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
2653
2932
  # Defaults to `:v1`.
2654
2933
  # @return [::Object] A client object for the specified version.
@@ -2692,6 +2971,71 @@ module Google
2692
2971
  false
2693
2972
  end
2694
2973
 
2974
+ ##
2975
+ # Create a new client object for ManagedRulesets.
2976
+ #
2977
+ # By default, this returns an instance of
2978
+ # [Google::Cloud::Compute::V1::ManagedRulesets::Rest::Client](https://cloud.google.com/ruby/docs/reference/google-cloud-compute-v1/latest/Google-Cloud-Compute-V1-ManagedRulesets-Rest-Client)
2979
+ # for a REST client for version V1 of the API.
2980
+ # However, you can specify a different API version by passing it in the
2981
+ # `version` parameter. If the ManagedRulesets service is
2982
+ # supported by that API version, and the corresponding gem is available, the
2983
+ # appropriate versioned client will be returned.
2984
+ #
2985
+ # Raises an exception if the currently installed versioned client gem for the
2986
+ # given API version does not support the ManagedRulesets service.
2987
+ # You can determine whether the method will succeed by calling
2988
+ # {Google::Cloud::Compute.managed_rulesets_available?}.
2989
+ #
2990
+ # ## About ManagedRulesets
2991
+ #
2992
+ # The ManagedRulesets API.
2993
+ #
2994
+ # This client uses ManagedRulesets version 2026-09-01.
2995
+ #
2996
+ # @param version [::String, ::Symbol] The API version to connect to. Optional.
2997
+ # Defaults to `:v1`.
2998
+ # @return [::Object] A client object for the specified version.
2999
+ #
3000
+ def self.managed_rulesets version: :v1, &block
3001
+ require "google/cloud/compute/#{version.to_s.downcase}"
3002
+
3003
+ package_name = Google::Cloud::Compute
3004
+ .constants
3005
+ .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
3006
+ .first
3007
+ service_module = Google::Cloud::Compute.const_get(package_name).const_get(:ManagedRulesets)
3008
+ service_module.const_get(:Rest).const_get(:Client).new(&block)
3009
+ end
3010
+
3011
+ ##
3012
+ # Determines whether the ManagedRulesets service is supported by the current client.
3013
+ # If true, you can retrieve a client object by calling {Google::Cloud::Compute.managed_rulesets}.
3014
+ # If false, that method will raise an exception. This could happen if the given
3015
+ # API version does not exist or does not support the ManagedRulesets service,
3016
+ # or if the versioned client gem needs an update to support the ManagedRulesets service.
3017
+ #
3018
+ # @param version [::String, ::Symbol] The API version to connect to. Optional.
3019
+ # Defaults to `:v1`.
3020
+ # @return [boolean] Whether the service is available.
3021
+ #
3022
+ def self.managed_rulesets_available? version: :v1
3023
+ require "google/cloud/compute/#{version.to_s.downcase}"
3024
+ package_name = Google::Cloud::Compute
3025
+ .constants
3026
+ .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
3027
+ .first
3028
+ return false unless package_name
3029
+ service_module = Google::Cloud::Compute.const_get package_name
3030
+ return false unless service_module.const_defined? :ManagedRulesets
3031
+ service_module = service_module.const_get :ManagedRulesets
3032
+ return false unless service_module.const_defined? :Rest
3033
+ service_module = service_module.const_get :Rest
3034
+ service_module.const_defined? :Client
3035
+ rescue ::LoadError
3036
+ false
3037
+ end
3038
+
2695
3039
  ##
2696
3040
  # Create a new client object for NetworkAttachments.
2697
3041
  #
@@ -2712,6 +3056,8 @@ module Google
2712
3056
  #
2713
3057
  # The NetworkAttachments API.
2714
3058
  #
3059
+ # This client uses NetworkAttachments version 2026-09-01.
3060
+ #
2715
3061
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
2716
3062
  # Defaults to `:v1`.
2717
3063
  # @return [::Object] A client object for the specified version.
@@ -2775,6 +3121,8 @@ module Google
2775
3121
  #
2776
3122
  # The NetworkEdgeSecurityServices API.
2777
3123
  #
3124
+ # This client uses NetworkEdgeSecurityServices version 2026-09-01.
3125
+ #
2778
3126
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
2779
3127
  # Defaults to `:v1`.
2780
3128
  # @return [::Object] A client object for the specified version.
@@ -2838,6 +3186,8 @@ module Google
2838
3186
  #
2839
3187
  # The NetworkEndpointGroups API.
2840
3188
  #
3189
+ # This client uses NetworkEndpointGroups version 2026-09-01.
3190
+ #
2841
3191
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
2842
3192
  # Defaults to `:v1`.
2843
3193
  # @return [::Object] A client object for the specified version.
@@ -2901,6 +3251,8 @@ module Google
2901
3251
  #
2902
3252
  # The NetworkFirewallPolicies API.
2903
3253
  #
3254
+ # This client uses NetworkFirewallPolicies version 2026-09-01.
3255
+ #
2904
3256
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
2905
3257
  # Defaults to `:v1`.
2906
3258
  # @return [::Object] A client object for the specified version.
@@ -2964,6 +3316,8 @@ module Google
2964
3316
  #
2965
3317
  # The NetworkProfiles API.
2966
3318
  #
3319
+ # This client uses NetworkProfiles version 2026-09-01.
3320
+ #
2967
3321
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
2968
3322
  # Defaults to `:v1`.
2969
3323
  # @return [::Object] A client object for the specified version.
@@ -3027,6 +3381,8 @@ module Google
3027
3381
  #
3028
3382
  # The Networks API.
3029
3383
  #
3384
+ # This client uses Networks version 2026-09-01.
3385
+ #
3030
3386
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
3031
3387
  # Defaults to `:v1`.
3032
3388
  # @return [::Object] A client object for the specified version.
@@ -3090,6 +3446,8 @@ module Google
3090
3446
  #
3091
3447
  # The NodeGroups API.
3092
3448
  #
3449
+ # This client uses NodeGroups version 2026-09-01.
3450
+ #
3093
3451
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
3094
3452
  # Defaults to `:v1`.
3095
3453
  # @return [::Object] A client object for the specified version.
@@ -3153,6 +3511,8 @@ module Google
3153
3511
  #
3154
3512
  # The NodeTemplates API.
3155
3513
  #
3514
+ # This client uses NodeTemplates version 2026-09-01.
3515
+ #
3156
3516
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
3157
3517
  # Defaults to `:v1`.
3158
3518
  # @return [::Object] A client object for the specified version.
@@ -3216,6 +3576,8 @@ module Google
3216
3576
  #
3217
3577
  # The NodeTypes API.
3218
3578
  #
3579
+ # This client uses NodeTypes version 2026-09-01.
3580
+ #
3219
3581
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
3220
3582
  # Defaults to `:v1`.
3221
3583
  # @return [::Object] A client object for the specified version.
@@ -3279,6 +3641,8 @@ module Google
3279
3641
  #
3280
3642
  # The OrganizationSecurityPolicies API.
3281
3643
  #
3644
+ # This client uses OrganizationSecurityPolicies version 2026-09-01.
3645
+ #
3282
3646
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
3283
3647
  # Defaults to `:v1`.
3284
3648
  # @return [::Object] A client object for the specified version.
@@ -3342,6 +3706,8 @@ module Google
3342
3706
  #
3343
3707
  # The PacketMirrorings API.
3344
3708
  #
3709
+ # This client uses PacketMirrorings version 2026-09-01.
3710
+ #
3345
3711
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
3346
3712
  # Defaults to `:v1`.
3347
3713
  # @return [::Object] A client object for the specified version.
@@ -3405,6 +3771,8 @@ module Google
3405
3771
  #
3406
3772
  # The PreviewFeatures API.
3407
3773
  #
3774
+ # This client uses PreviewFeatures version 2026-09-01.
3775
+ #
3408
3776
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
3409
3777
  # Defaults to `:v1`.
3410
3778
  # @return [::Object] A client object for the specified version.
@@ -3448,6 +3816,71 @@ module Google
3448
3816
  false
3449
3817
  end
3450
3818
 
3819
+ ##
3820
+ # Create a new client object for ProjectViews.
3821
+ #
3822
+ # By default, this returns an instance of
3823
+ # [Google::Cloud::Compute::V1::ProjectViews::Rest::Client](https://cloud.google.com/ruby/docs/reference/google-cloud-compute-v1/latest/Google-Cloud-Compute-V1-ProjectViews-Rest-Client)
3824
+ # for a REST client for version V1 of the API.
3825
+ # However, you can specify a different API version by passing it in the
3826
+ # `version` parameter. If the ProjectViews service is
3827
+ # supported by that API version, and the corresponding gem is available, the
3828
+ # appropriate versioned client will be returned.
3829
+ #
3830
+ # Raises an exception if the currently installed versioned client gem for the
3831
+ # given API version does not support the ProjectViews service.
3832
+ # You can determine whether the method will succeed by calling
3833
+ # {Google::Cloud::Compute.project_views_available?}.
3834
+ #
3835
+ # ## About ProjectViews
3836
+ #
3837
+ # The ProjectViews API.
3838
+ #
3839
+ # This client uses ProjectViews version 2026-09-01.
3840
+ #
3841
+ # @param version [::String, ::Symbol] The API version to connect to. Optional.
3842
+ # Defaults to `:v1`.
3843
+ # @return [::Object] A client object for the specified version.
3844
+ #
3845
+ def self.project_views version: :v1, &block
3846
+ require "google/cloud/compute/#{version.to_s.downcase}"
3847
+
3848
+ package_name = Google::Cloud::Compute
3849
+ .constants
3850
+ .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
3851
+ .first
3852
+ service_module = Google::Cloud::Compute.const_get(package_name).const_get(:ProjectViews)
3853
+ service_module.const_get(:Rest).const_get(:Client).new(&block)
3854
+ end
3855
+
3856
+ ##
3857
+ # Determines whether the ProjectViews service is supported by the current client.
3858
+ # If true, you can retrieve a client object by calling {Google::Cloud::Compute.project_views}.
3859
+ # If false, that method will raise an exception. This could happen if the given
3860
+ # API version does not exist or does not support the ProjectViews service,
3861
+ # or if the versioned client gem needs an update to support the ProjectViews service.
3862
+ #
3863
+ # @param version [::String, ::Symbol] The API version to connect to. Optional.
3864
+ # Defaults to `:v1`.
3865
+ # @return [boolean] Whether the service is available.
3866
+ #
3867
+ def self.project_views_available? version: :v1
3868
+ require "google/cloud/compute/#{version.to_s.downcase}"
3869
+ package_name = Google::Cloud::Compute
3870
+ .constants
3871
+ .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
3872
+ .first
3873
+ return false unless package_name
3874
+ service_module = Google::Cloud::Compute.const_get package_name
3875
+ return false unless service_module.const_defined? :ProjectViews
3876
+ service_module = service_module.const_get :ProjectViews
3877
+ return false unless service_module.const_defined? :Rest
3878
+ service_module = service_module.const_get :Rest
3879
+ service_module.const_defined? :Client
3880
+ rescue ::LoadError
3881
+ false
3882
+ end
3883
+
3451
3884
  ##
3452
3885
  # Create a new client object for Projects.
3453
3886
  #
@@ -3468,6 +3901,8 @@ module Google
3468
3901
  #
3469
3902
  # The Projects API.
3470
3903
  #
3904
+ # This client uses Projects version 2026-09-01.
3905
+ #
3471
3906
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
3472
3907
  # Defaults to `:v1`.
3473
3908
  # @return [::Object] A client object for the specified version.
@@ -3531,6 +3966,8 @@ module Google
3531
3966
  #
3532
3967
  # The PublicAdvertisedPrefixes API.
3533
3968
  #
3969
+ # This client uses PublicAdvertisedPrefixes version 2026-09-01.
3970
+ #
3534
3971
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
3535
3972
  # Defaults to `:v1`.
3536
3973
  # @return [::Object] A client object for the specified version.
@@ -3594,6 +4031,8 @@ module Google
3594
4031
  #
3595
4032
  # The PublicDelegatedPrefixes API.
3596
4033
  #
4034
+ # This client uses PublicDelegatedPrefixes version 2026-09-01.
4035
+ #
3597
4036
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
3598
4037
  # Defaults to `:v1`.
3599
4038
  # @return [::Object] A client object for the specified version.
@@ -3657,6 +4096,8 @@ module Google
3657
4096
  #
3658
4097
  # The RegionAutoscalers API.
3659
4098
  #
4099
+ # This client uses RegionAutoscalers version 2026-09-01.
4100
+ #
3660
4101
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
3661
4102
  # Defaults to `:v1`.
3662
4103
  # @return [::Object] A client object for the specified version.
@@ -3720,6 +4161,8 @@ module Google
3720
4161
  #
3721
4162
  # The RegionBackendBuckets API.
3722
4163
  #
4164
+ # This client uses RegionBackendBuckets version 2026-09-01.
4165
+ #
3723
4166
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
3724
4167
  # Defaults to `:v1`.
3725
4168
  # @return [::Object] A client object for the specified version.
@@ -3783,6 +4226,8 @@ module Google
3783
4226
  #
3784
4227
  # The RegionBackendServices API.
3785
4228
  #
4229
+ # This client uses RegionBackendServices version 2026-09-01.
4230
+ #
3786
4231
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
3787
4232
  # Defaults to `:v1`.
3788
4233
  # @return [::Object] A client object for the specified version.
@@ -3846,6 +4291,8 @@ module Google
3846
4291
  #
3847
4292
  # The RegionCommitments API.
3848
4293
  #
4294
+ # This client uses RegionCommitments version 2026-09-01.
4295
+ #
3849
4296
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
3850
4297
  # Defaults to `:v1`.
3851
4298
  # @return [::Object] A client object for the specified version.
@@ -3909,6 +4356,8 @@ module Google
3909
4356
  #
3910
4357
  # The RegionCompositeHealthChecks API.
3911
4358
  #
4359
+ # This client uses RegionCompositeHealthChecks version 2026-09-01.
4360
+ #
3912
4361
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
3913
4362
  # Defaults to `:v1`.
3914
4363
  # @return [::Object] A client object for the specified version.
@@ -3972,6 +4421,8 @@ module Google
3972
4421
  #
3973
4422
  # The RegionDiskTypes API.
3974
4423
  #
4424
+ # This client uses RegionDiskTypes version 2026-09-01.
4425
+ #
3975
4426
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
3976
4427
  # Defaults to `:v1`.
3977
4428
  # @return [::Object] A client object for the specified version.
@@ -4035,6 +4486,8 @@ module Google
4035
4486
  #
4036
4487
  # The RegionDisks API.
4037
4488
  #
4489
+ # This client uses RegionDisks version 2026-09-01.
4490
+ #
4038
4491
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
4039
4492
  # Defaults to `:v1`.
4040
4493
  # @return [::Object] A client object for the specified version.
@@ -4098,6 +4551,8 @@ module Google
4098
4551
  #
4099
4552
  # The RegionHealthAggregationPolicies API.
4100
4553
  #
4554
+ # This client uses RegionHealthAggregationPolicies version 2026-09-01.
4555
+ #
4101
4556
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
4102
4557
  # Defaults to `:v1`.
4103
4558
  # @return [::Object] A client object for the specified version.
@@ -4161,6 +4616,8 @@ module Google
4161
4616
  #
4162
4617
  # The RegionHealthCheckServices API.
4163
4618
  #
4619
+ # This client uses RegionHealthCheckServices version 2026-09-01.
4620
+ #
4164
4621
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
4165
4622
  # Defaults to `:v1`.
4166
4623
  # @return [::Object] A client object for the specified version.
@@ -4224,6 +4681,8 @@ module Google
4224
4681
  #
4225
4682
  # The RegionHealthChecks API.
4226
4683
  #
4684
+ # This client uses RegionHealthChecks version 2026-09-01.
4685
+ #
4227
4686
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
4228
4687
  # Defaults to `:v1`.
4229
4688
  # @return [::Object] A client object for the specified version.
@@ -4287,6 +4746,8 @@ module Google
4287
4746
  #
4288
4747
  # The RegionHealthSources API.
4289
4748
  #
4749
+ # This client uses RegionHealthSources version 2026-09-01.
4750
+ #
4290
4751
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
4291
4752
  # Defaults to `:v1`.
4292
4753
  # @return [::Object] A client object for the specified version.
@@ -4350,6 +4811,8 @@ module Google
4350
4811
  #
4351
4812
  # The RegionInstanceGroupManagerResizeRequests API.
4352
4813
  #
4814
+ # This client uses RegionInstanceGroupManagerResizeRequests version 2026-09-01.
4815
+ #
4353
4816
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
4354
4817
  # Defaults to `:v1`.
4355
4818
  # @return [::Object] A client object for the specified version.
@@ -4413,6 +4876,8 @@ module Google
4413
4876
  #
4414
4877
  # The RegionInstanceGroupManagers API.
4415
4878
  #
4879
+ # This client uses RegionInstanceGroupManagers version 2026-09-01.
4880
+ #
4416
4881
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
4417
4882
  # Defaults to `:v1`.
4418
4883
  # @return [::Object] A client object for the specified version.
@@ -4476,6 +4941,8 @@ module Google
4476
4941
  #
4477
4942
  # The RegionInstanceGroups API.
4478
4943
  #
4944
+ # This client uses RegionInstanceGroups version 2026-09-01.
4945
+ #
4479
4946
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
4480
4947
  # Defaults to `:v1`.
4481
4948
  # @return [::Object] A client object for the specified version.
@@ -4539,6 +5006,8 @@ module Google
4539
5006
  #
4540
5007
  # The RegionInstanceTemplates API.
4541
5008
  #
5009
+ # This client uses RegionInstanceTemplates version 2026-09-01.
5010
+ #
4542
5011
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
4543
5012
  # Defaults to `:v1`.
4544
5013
  # @return [::Object] A client object for the specified version.
@@ -4602,6 +5071,8 @@ module Google
4602
5071
  #
4603
5072
  # The RegionInstances API.
4604
5073
  #
5074
+ # This client uses RegionInstances version 2026-09-01.
5075
+ #
4605
5076
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
4606
5077
  # Defaults to `:v1`.
4607
5078
  # @return [::Object] A client object for the specified version.
@@ -4665,6 +5136,8 @@ module Google
4665
5136
  #
4666
5137
  # The RegionInstantSnapshotGroups API.
4667
5138
  #
5139
+ # This client uses RegionInstantSnapshotGroups version 2026-09-01.
5140
+ #
4668
5141
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
4669
5142
  # Defaults to `:v1`.
4670
5143
  # @return [::Object] A client object for the specified version.
@@ -4728,6 +5201,8 @@ module Google
4728
5201
  #
4729
5202
  # The RegionInstantSnapshots API.
4730
5203
  #
5204
+ # This client uses RegionInstantSnapshots version 2026-09-01.
5205
+ #
4731
5206
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
4732
5207
  # Defaults to `:v1`.
4733
5208
  # @return [::Object] A client object for the specified version.
@@ -4791,6 +5266,8 @@ module Google
4791
5266
  #
4792
5267
  # The RegionNetworkEndpointGroups API.
4793
5268
  #
5269
+ # This client uses RegionNetworkEndpointGroups version 2026-09-01.
5270
+ #
4794
5271
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
4795
5272
  # Defaults to `:v1`.
4796
5273
  # @return [::Object] A client object for the specified version.
@@ -4854,6 +5331,8 @@ module Google
4854
5331
  #
4855
5332
  # The RegionNetworkFirewallPolicies API.
4856
5333
  #
5334
+ # This client uses RegionNetworkFirewallPolicies version 2026-09-01.
5335
+ #
4857
5336
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
4858
5337
  # Defaults to `:v1`.
4859
5338
  # @return [::Object] A client object for the specified version.
@@ -4917,6 +5396,8 @@ module Google
4917
5396
  #
4918
5397
  # The RegionNotificationEndpoints API.
4919
5398
  #
5399
+ # This client uses RegionNotificationEndpoints version 2026-09-01.
5400
+ #
4920
5401
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
4921
5402
  # Defaults to `:v1`.
4922
5403
  # @return [::Object] A client object for the specified version.
@@ -4980,6 +5461,8 @@ module Google
4980
5461
  #
4981
5462
  # The RegionOperations API.
4982
5463
  #
5464
+ # This client uses RegionOperations version 2026-09-01.
5465
+ #
4983
5466
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
4984
5467
  # Defaults to `:v1`.
4985
5468
  # @return [::Object] A client object for the specified version.
@@ -5043,6 +5526,8 @@ module Google
5043
5526
  #
5044
5527
  # The RegionSecurityPolicies API.
5045
5528
  #
5529
+ # This client uses RegionSecurityPolicies version 2026-09-01.
5530
+ #
5046
5531
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
5047
5532
  # Defaults to `:v1`.
5048
5533
  # @return [::Object] A client object for the specified version.
@@ -5106,6 +5591,8 @@ module Google
5106
5591
  #
5107
5592
  # The RegionSnapshotSettings API.
5108
5593
  #
5594
+ # This client uses RegionSnapshotSettings version 2026-09-01.
5595
+ #
5109
5596
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
5110
5597
  # Defaults to `:v1`.
5111
5598
  # @return [::Object] A client object for the specified version.
@@ -5169,6 +5656,8 @@ module Google
5169
5656
  #
5170
5657
  # The RegionSnapshots API.
5171
5658
  #
5659
+ # This client uses RegionSnapshots version 2026-09-01.
5660
+ #
5172
5661
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
5173
5662
  # Defaults to `:v1`.
5174
5663
  # @return [::Object] A client object for the specified version.
@@ -5232,6 +5721,8 @@ module Google
5232
5721
  #
5233
5722
  # The RegionSslCertificates API.
5234
5723
  #
5724
+ # This client uses RegionSslCertificates version 2026-09-01.
5725
+ #
5235
5726
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
5236
5727
  # Defaults to `:v1`.
5237
5728
  # @return [::Object] A client object for the specified version.
@@ -5295,6 +5786,8 @@ module Google
5295
5786
  #
5296
5787
  # The RegionSslPolicies API.
5297
5788
  #
5789
+ # This client uses RegionSslPolicies version 2026-09-01.
5790
+ #
5298
5791
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
5299
5792
  # Defaults to `:v1`.
5300
5793
  # @return [::Object] A client object for the specified version.
@@ -5358,6 +5851,8 @@ module Google
5358
5851
  #
5359
5852
  # The RegionTargetHttpProxies API.
5360
5853
  #
5854
+ # This client uses RegionTargetHttpProxies version 2026-09-01.
5855
+ #
5361
5856
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
5362
5857
  # Defaults to `:v1`.
5363
5858
  # @return [::Object] A client object for the specified version.
@@ -5421,6 +5916,8 @@ module Google
5421
5916
  #
5422
5917
  # The RegionTargetHttpsProxies API.
5423
5918
  #
5919
+ # This client uses RegionTargetHttpsProxies version 2026-09-01.
5920
+ #
5424
5921
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
5425
5922
  # Defaults to `:v1`.
5426
5923
  # @return [::Object] A client object for the specified version.
@@ -5484,6 +5981,8 @@ module Google
5484
5981
  #
5485
5982
  # The RegionTargetTcpProxies API.
5486
5983
  #
5984
+ # This client uses RegionTargetTcpProxies version 2026-09-01.
5985
+ #
5487
5986
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
5488
5987
  # Defaults to `:v1`.
5489
5988
  # @return [::Object] A client object for the specified version.
@@ -5547,6 +6046,8 @@ module Google
5547
6046
  #
5548
6047
  # The RegionUrlMaps API.
5549
6048
  #
6049
+ # This client uses RegionUrlMaps version 2026-09-01.
6050
+ #
5550
6051
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
5551
6052
  # Defaults to `:v1`.
5552
6053
  # @return [::Object] A client object for the specified version.
@@ -5610,6 +6111,8 @@ module Google
5610
6111
  #
5611
6112
  # The RegionZones API.
5612
6113
  #
6114
+ # This client uses RegionZones version 2026-09-01.
6115
+ #
5613
6116
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
5614
6117
  # Defaults to `:v1`.
5615
6118
  # @return [::Object] A client object for the specified version.
@@ -5673,6 +6176,8 @@ module Google
5673
6176
  #
5674
6177
  # The Regions API.
5675
6178
  #
6179
+ # This client uses Regions version 2026-09-01.
6180
+ #
5676
6181
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
5677
6182
  # Defaults to `:v1`.
5678
6183
  # @return [::Object] A client object for the specified version.
@@ -5716,6 +6221,71 @@ module Google
5716
6221
  false
5717
6222
  end
5718
6223
 
6224
+ ##
6225
+ # Create a new client object for ReliabilityRisks.
6226
+ #
6227
+ # By default, this returns an instance of
6228
+ # [Google::Cloud::Compute::V1::ReliabilityRisks::Rest::Client](https://cloud.google.com/ruby/docs/reference/google-cloud-compute-v1/latest/Google-Cloud-Compute-V1-ReliabilityRisks-Rest-Client)
6229
+ # for a REST client for version V1 of the API.
6230
+ # However, you can specify a different API version by passing it in the
6231
+ # `version` parameter. If the ReliabilityRisks service is
6232
+ # supported by that API version, and the corresponding gem is available, the
6233
+ # appropriate versioned client will be returned.
6234
+ #
6235
+ # Raises an exception if the currently installed versioned client gem for the
6236
+ # given API version does not support the ReliabilityRisks service.
6237
+ # You can determine whether the method will succeed by calling
6238
+ # {Google::Cloud::Compute.reliability_risks_available?}.
6239
+ #
6240
+ # ## About ReliabilityRisks
6241
+ #
6242
+ # The ReliabilityRisks API.
6243
+ #
6244
+ # This client uses ReliabilityRisks version 2026-09-01.
6245
+ #
6246
+ # @param version [::String, ::Symbol] The API version to connect to. Optional.
6247
+ # Defaults to `:v1`.
6248
+ # @return [::Object] A client object for the specified version.
6249
+ #
6250
+ def self.reliability_risks version: :v1, &block
6251
+ require "google/cloud/compute/#{version.to_s.downcase}"
6252
+
6253
+ package_name = Google::Cloud::Compute
6254
+ .constants
6255
+ .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
6256
+ .first
6257
+ service_module = Google::Cloud::Compute.const_get(package_name).const_get(:ReliabilityRisks)
6258
+ service_module.const_get(:Rest).const_get(:Client).new(&block)
6259
+ end
6260
+
6261
+ ##
6262
+ # Determines whether the ReliabilityRisks service is supported by the current client.
6263
+ # If true, you can retrieve a client object by calling {Google::Cloud::Compute.reliability_risks}.
6264
+ # If false, that method will raise an exception. This could happen if the given
6265
+ # API version does not exist or does not support the ReliabilityRisks service,
6266
+ # or if the versioned client gem needs an update to support the ReliabilityRisks service.
6267
+ #
6268
+ # @param version [::String, ::Symbol] The API version to connect to. Optional.
6269
+ # Defaults to `:v1`.
6270
+ # @return [boolean] Whether the service is available.
6271
+ #
6272
+ def self.reliability_risks_available? version: :v1
6273
+ require "google/cloud/compute/#{version.to_s.downcase}"
6274
+ package_name = Google::Cloud::Compute
6275
+ .constants
6276
+ .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
6277
+ .first
6278
+ return false unless package_name
6279
+ service_module = Google::Cloud::Compute.const_get package_name
6280
+ return false unless service_module.const_defined? :ReliabilityRisks
6281
+ service_module = service_module.const_get :ReliabilityRisks
6282
+ return false unless service_module.const_defined? :Rest
6283
+ service_module = service_module.const_get :Rest
6284
+ service_module.const_defined? :Client
6285
+ rescue ::LoadError
6286
+ false
6287
+ end
6288
+
5719
6289
  ##
5720
6290
  # Create a new client object for ReservationBlocks.
5721
6291
  #
@@ -5736,6 +6306,8 @@ module Google
5736
6306
  #
5737
6307
  # The ReservationBlocks API.
5738
6308
  #
6309
+ # This client uses ReservationBlocks version 2026-09-01.
6310
+ #
5739
6311
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
5740
6312
  # Defaults to `:v1`.
5741
6313
  # @return [::Object] A client object for the specified version.
@@ -5799,6 +6371,8 @@ module Google
5799
6371
  #
5800
6372
  # The ReservationSlots API.
5801
6373
  #
6374
+ # This client uses ReservationSlots version 2026-09-01.
6375
+ #
5802
6376
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
5803
6377
  # Defaults to `:v1`.
5804
6378
  # @return [::Object] A client object for the specified version.
@@ -5862,6 +6436,8 @@ module Google
5862
6436
  #
5863
6437
  # The ReservationSubBlocks API.
5864
6438
  #
6439
+ # This client uses ReservationSubBlocks version 2026-09-01.
6440
+ #
5865
6441
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
5866
6442
  # Defaults to `:v1`.
5867
6443
  # @return [::Object] A client object for the specified version.
@@ -5925,6 +6501,8 @@ module Google
5925
6501
  #
5926
6502
  # The Reservations API.
5927
6503
  #
6504
+ # This client uses Reservations version 2026-09-01.
6505
+ #
5928
6506
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
5929
6507
  # Defaults to `:v1`.
5930
6508
  # @return [::Object] A client object for the specified version.
@@ -5988,6 +6566,8 @@ module Google
5988
6566
  #
5989
6567
  # The ResourcePolicies API.
5990
6568
  #
6569
+ # This client uses ResourcePolicies version 2026-09-01.
6570
+ #
5991
6571
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
5992
6572
  # Defaults to `:v1`.
5993
6573
  # @return [::Object] A client object for the specified version.
@@ -6051,6 +6631,8 @@ module Google
6051
6631
  #
6052
6632
  # The RolloutPlans API.
6053
6633
  #
6634
+ # This client uses RolloutPlans version 2026-09-01.
6635
+ #
6054
6636
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
6055
6637
  # Defaults to `:v1`.
6056
6638
  # @return [::Object] A client object for the specified version.
@@ -6114,6 +6696,8 @@ module Google
6114
6696
  #
6115
6697
  # The Rollouts API.
6116
6698
  #
6699
+ # This client uses Rollouts version 2026-09-01.
6700
+ #
6117
6701
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
6118
6702
  # Defaults to `:v1`.
6119
6703
  # @return [::Object] A client object for the specified version.
@@ -6177,6 +6761,8 @@ module Google
6177
6761
  #
6178
6762
  # The Routers API.
6179
6763
  #
6764
+ # This client uses Routers version 2026-09-01.
6765
+ #
6180
6766
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
6181
6767
  # Defaults to `:v1`.
6182
6768
  # @return [::Object] A client object for the specified version.
@@ -6240,6 +6826,8 @@ module Google
6240
6826
  #
6241
6827
  # The Routes API.
6242
6828
  #
6829
+ # This client uses Routes version 2026-09-01.
6830
+ #
6243
6831
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
6244
6832
  # Defaults to `:v1`.
6245
6833
  # @return [::Object] A client object for the specified version.
@@ -6303,6 +6891,8 @@ module Google
6303
6891
  #
6304
6892
  # The SecurityPolicies API.
6305
6893
  #
6894
+ # This client uses SecurityPolicies version 2026-09-01.
6895
+ #
6306
6896
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
6307
6897
  # Defaults to `:v1`.
6308
6898
  # @return [::Object] A client object for the specified version.
@@ -6366,6 +6956,8 @@ module Google
6366
6956
  #
6367
6957
  # The ServiceAttachments API.
6368
6958
  #
6959
+ # This client uses ServiceAttachments version 2026-09-01.
6960
+ #
6369
6961
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
6370
6962
  # Defaults to `:v1`.
6371
6963
  # @return [::Object] A client object for the specified version.
@@ -6429,6 +7021,8 @@ module Google
6429
7021
  #
6430
7022
  # The SnapshotSettings API.
6431
7023
  #
7024
+ # This client uses SnapshotSettingsService version 2026-09-01.
7025
+ #
6432
7026
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
6433
7027
  # Defaults to `:v1`.
6434
7028
  # @return [::Object] A client object for the specified version.
@@ -6492,6 +7086,8 @@ module Google
6492
7086
  #
6493
7087
  # The Snapshots API.
6494
7088
  #
7089
+ # This client uses Snapshots version 2026-09-01.
7090
+ #
6495
7091
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
6496
7092
  # Defaults to `:v1`.
6497
7093
  # @return [::Object] A client object for the specified version.
@@ -6555,6 +7151,8 @@ module Google
6555
7151
  #
6556
7152
  # The SslCertificates API.
6557
7153
  #
7154
+ # This client uses SslCertificates version 2026-09-01.
7155
+ #
6558
7156
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
6559
7157
  # Defaults to `:v1`.
6560
7158
  # @return [::Object] A client object for the specified version.
@@ -6618,6 +7216,8 @@ module Google
6618
7216
  #
6619
7217
  # The SslPolicies API.
6620
7218
  #
7219
+ # This client uses SslPolicies version 2026-09-01.
7220
+ #
6621
7221
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
6622
7222
  # Defaults to `:v1`.
6623
7223
  # @return [::Object] A client object for the specified version.
@@ -6681,6 +7281,8 @@ module Google
6681
7281
  #
6682
7282
  # The StoragePoolTypes API.
6683
7283
  #
7284
+ # This client uses StoragePoolTypes version 2026-09-01.
7285
+ #
6684
7286
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
6685
7287
  # Defaults to `:v1`.
6686
7288
  # @return [::Object] A client object for the specified version.
@@ -6744,6 +7346,8 @@ module Google
6744
7346
  #
6745
7347
  # The StoragePools API.
6746
7348
  #
7349
+ # This client uses StoragePools version 2026-09-01.
7350
+ #
6747
7351
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
6748
7352
  # Defaults to `:v1`.
6749
7353
  # @return [::Object] A client object for the specified version.
@@ -6807,6 +7411,8 @@ module Google
6807
7411
  #
6808
7412
  # The Subnetworks API.
6809
7413
  #
7414
+ # This client uses Subnetworks version 2026-09-01.
7415
+ #
6810
7416
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
6811
7417
  # Defaults to `:v1`.
6812
7418
  # @return [::Object] A client object for the specified version.
@@ -6870,6 +7476,8 @@ module Google
6870
7476
  #
6871
7477
  # The TargetGrpcProxies API.
6872
7478
  #
7479
+ # This client uses TargetGrpcProxies version 2026-09-01.
7480
+ #
6873
7481
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
6874
7482
  # Defaults to `:v1`.
6875
7483
  # @return [::Object] A client object for the specified version.
@@ -6933,6 +7541,8 @@ module Google
6933
7541
  #
6934
7542
  # The TargetHttpProxies API.
6935
7543
  #
7544
+ # This client uses TargetHttpProxies version 2026-09-01.
7545
+ #
6936
7546
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
6937
7547
  # Defaults to `:v1`.
6938
7548
  # @return [::Object] A client object for the specified version.
@@ -6996,6 +7606,8 @@ module Google
6996
7606
  #
6997
7607
  # The TargetHttpsProxies API.
6998
7608
  #
7609
+ # This client uses TargetHttpsProxies version 2026-09-01.
7610
+ #
6999
7611
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
7000
7612
  # Defaults to `:v1`.
7001
7613
  # @return [::Object] A client object for the specified version.
@@ -7059,6 +7671,8 @@ module Google
7059
7671
  #
7060
7672
  # The TargetInstances API.
7061
7673
  #
7674
+ # This client uses TargetInstances version 2026-09-01.
7675
+ #
7062
7676
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
7063
7677
  # Defaults to `:v1`.
7064
7678
  # @return [::Object] A client object for the specified version.
@@ -7122,6 +7736,8 @@ module Google
7122
7736
  #
7123
7737
  # The TargetPools API.
7124
7738
  #
7739
+ # This client uses TargetPools version 2026-09-01.
7740
+ #
7125
7741
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
7126
7742
  # Defaults to `:v1`.
7127
7743
  # @return [::Object] A client object for the specified version.
@@ -7185,6 +7801,8 @@ module Google
7185
7801
  #
7186
7802
  # The TargetSslProxies API.
7187
7803
  #
7804
+ # This client uses TargetSslProxies version 2026-09-01.
7805
+ #
7188
7806
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
7189
7807
  # Defaults to `:v1`.
7190
7808
  # @return [::Object] A client object for the specified version.
@@ -7248,6 +7866,8 @@ module Google
7248
7866
  #
7249
7867
  # The TargetTcpProxies API.
7250
7868
  #
7869
+ # This client uses TargetTcpProxies version 2026-09-01.
7870
+ #
7251
7871
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
7252
7872
  # Defaults to `:v1`.
7253
7873
  # @return [::Object] A client object for the specified version.
@@ -7311,6 +7931,8 @@ module Google
7311
7931
  #
7312
7932
  # The TargetVpnGateways API.
7313
7933
  #
7934
+ # This client uses TargetVpnGateways version 2026-09-01.
7935
+ #
7314
7936
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
7315
7937
  # Defaults to `:v1`.
7316
7938
  # @return [::Object] A client object for the specified version.
@@ -7374,6 +7996,8 @@ module Google
7374
7996
  #
7375
7997
  # The UrlMaps API.
7376
7998
  #
7999
+ # This client uses UrlMaps version 2026-09-01.
8000
+ #
7377
8001
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
7378
8002
  # Defaults to `:v1`.
7379
8003
  # @return [::Object] A client object for the specified version.
@@ -7437,6 +8061,8 @@ module Google
7437
8061
  #
7438
8062
  # The VpnGateways API.
7439
8063
  #
8064
+ # This client uses VpnGateways version 2026-09-01.
8065
+ #
7440
8066
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
7441
8067
  # Defaults to `:v1`.
7442
8068
  # @return [::Object] A client object for the specified version.
@@ -7500,6 +8126,8 @@ module Google
7500
8126
  #
7501
8127
  # The VpnTunnels API.
7502
8128
  #
8129
+ # This client uses VpnTunnels version 2026-09-01.
8130
+ #
7503
8131
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
7504
8132
  # Defaults to `:v1`.
7505
8133
  # @return [::Object] A client object for the specified version.
@@ -7563,6 +8191,8 @@ module Google
7563
8191
  #
7564
8192
  # The WireGroups API.
7565
8193
  #
8194
+ # This client uses WireGroups version 2026-09-01.
8195
+ #
7566
8196
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
7567
8197
  # Defaults to `:v1`.
7568
8198
  # @return [::Object] A client object for the specified version.
@@ -7626,6 +8256,8 @@ module Google
7626
8256
  #
7627
8257
  # The ZoneOperations API.
7628
8258
  #
8259
+ # This client uses ZoneOperations version 2026-09-01.
8260
+ #
7629
8261
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
7630
8262
  # Defaults to `:v1`.
7631
8263
  # @return [::Object] A client object for the specified version.
@@ -7689,6 +8321,8 @@ module Google
7689
8321
  #
7690
8322
  # The ZoneVmExtensionPolicies API.
7691
8323
  #
8324
+ # This client uses ZoneVmExtensionPolicies version 2026-09-01.
8325
+ #
7692
8326
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
7693
8327
  # Defaults to `:v1`.
7694
8328
  # @return [::Object] A client object for the specified version.
@@ -7752,6 +8386,8 @@ module Google
7752
8386
  #
7753
8387
  # The Zones API.
7754
8388
  #
8389
+ # This client uses Zones version 2026-09-01.
8390
+ #
7755
8391
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
7756
8392
  # Defaults to `:v1`.
7757
8393
  # @return [::Object] A client object for the specified version.