google-cloud-compute 1.16.0 → 1.18.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: 228df5d4d5db06e30c713a96004ce59b592a15b335414e0559c68e203ab8a7c7
4
- data.tar.gz: 2471e5bf287d0393a021e1b1433561933e3639705cc35c4570ddace5d7f3c7dd
3
+ metadata.gz: b79069bb920d326626183541c808f7ae0593441601242ad72d3ddc9386aa5cbc
4
+ data.tar.gz: a530f141a731f2c6e53c77490b75b6de40c4ea57e511729e725e456171a4b252
5
5
  SHA512:
6
- metadata.gz: 376614f257109addcc954dae4fdad63c340b368f04b2a90e8a9b54e38a4c95acd59bbe25903799f8e789c59fbca4c1d64fa6aa6add9c8fcf95c4adc1241f3af4
7
- data.tar.gz: 17ba53ffccfe4ee76bb3585b8c5895c40c4b86853ba8351505f6147862e2e146d1fa6eb93d34be38de4ca5d7ed57284f562b2e1f010696b28029313d1ea7cd1d
6
+ metadata.gz: 4ac1b39a2d0dc03f00c8c6cf0cc796b114f4426d8a611fb433aef5fcdd009b2262af79c79509d61a1034a0d722c515b164e15819bb4979441957e0a1b4890d7c
7
+ data.tar.gz: 03b426d26a6eded4b5fcc2642321a8430aca23f3bfd6c091c165d00bfd29174934a0579a77fe6d7031d461f1ab70198f2602791af5c4b8b407f747474582fc06
@@ -20,7 +20,7 @@
20
20
  module Google
21
21
  module Cloud
22
22
  module Compute
23
- VERSION = "1.16.0"
23
+ VERSION = "1.18.0"
24
24
  end
25
25
  end
26
26
  end
@@ -1306,6 +1306,69 @@ module Google
1306
1306
  false
1307
1307
  end
1308
1308
 
1309
+ ##
1310
+ # Create a new client object for GlobalVmExtensionPolicies.
1311
+ #
1312
+ # By default, this returns an instance of
1313
+ # [Google::Cloud::Compute::V1::GlobalVmExtensionPolicies::Rest::Client](https://cloud.google.com/ruby/docs/reference/google-cloud-compute-v1/latest/Google-Cloud-Compute-V1-GlobalVmExtensionPolicies-Rest-Client)
1314
+ # for a REST client for version V1 of the API.
1315
+ # However, you can specify a different API version by passing it in the
1316
+ # `version` parameter. If the GlobalVmExtensionPolicies service is
1317
+ # supported by that API version, and the corresponding gem is available, the
1318
+ # appropriate versioned client will be returned.
1319
+ #
1320
+ # Raises an exception if the currently installed versioned client gem for the
1321
+ # given API version does not support the GlobalVmExtensionPolicies service.
1322
+ # You can determine whether the method will succeed by calling
1323
+ # {Google::Cloud::Compute.global_vm_extension_policies_available?}.
1324
+ #
1325
+ # ## About GlobalVmExtensionPolicies
1326
+ #
1327
+ # The GlobalVmExtensionPolicies API.
1328
+ #
1329
+ # @param version [::String, ::Symbol] The API version to connect to. Optional.
1330
+ # Defaults to `:v1`.
1331
+ # @return [::Object] A client object for the specified version.
1332
+ #
1333
+ def self.global_vm_extension_policies version: :v1, &block
1334
+ require "google/cloud/compute/#{version.to_s.downcase}"
1335
+
1336
+ package_name = Google::Cloud::Compute
1337
+ .constants
1338
+ .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
1339
+ .first
1340
+ service_module = Google::Cloud::Compute.const_get(package_name).const_get(:GlobalVmExtensionPolicies)
1341
+ service_module.const_get(:Rest).const_get(:Client).new(&block)
1342
+ end
1343
+
1344
+ ##
1345
+ # Determines whether the GlobalVmExtensionPolicies service is supported by the current client.
1346
+ # If true, you can retrieve a client object by calling {Google::Cloud::Compute.global_vm_extension_policies}.
1347
+ # If false, that method will raise an exception. This could happen if the given
1348
+ # API version does not exist or does not support the GlobalVmExtensionPolicies service,
1349
+ # or if the versioned client gem needs an update to support the GlobalVmExtensionPolicies service.
1350
+ #
1351
+ # @param version [::String, ::Symbol] The API version to connect to. Optional.
1352
+ # Defaults to `:v1`.
1353
+ # @return [boolean] Whether the service is available.
1354
+ #
1355
+ def self.global_vm_extension_policies_available? version: :v1
1356
+ require "google/cloud/compute/#{version.to_s.downcase}"
1357
+ package_name = Google::Cloud::Compute
1358
+ .constants
1359
+ .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
1360
+ .first
1361
+ return false unless package_name
1362
+ service_module = Google::Cloud::Compute.const_get package_name
1363
+ return false unless service_module.const_defined? :GlobalVmExtensionPolicies
1364
+ service_module = service_module.const_get :GlobalVmExtensionPolicies
1365
+ return false unless service_module.const_defined? :Rest
1366
+ service_module = service_module.const_get :Rest
1367
+ service_module.const_defined? :Client
1368
+ rescue ::LoadError
1369
+ false
1370
+ end
1371
+
1309
1372
  ##
1310
1373
  # Create a new client object for HealthChecks.
1311
1374
  #
@@ -1873,6 +1936,69 @@ module Google
1873
1936
  false
1874
1937
  end
1875
1938
 
1939
+ ##
1940
+ # Create a new client object for InstantSnapshotGroups.
1941
+ #
1942
+ # By default, this returns an instance of
1943
+ # [Google::Cloud::Compute::V1::InstantSnapshotGroups::Rest::Client](https://cloud.google.com/ruby/docs/reference/google-cloud-compute-v1/latest/Google-Cloud-Compute-V1-InstantSnapshotGroups-Rest-Client)
1944
+ # for a REST client for version V1 of the API.
1945
+ # However, you can specify a different API version by passing it in the
1946
+ # `version` parameter. If the InstantSnapshotGroups service is
1947
+ # supported by that API version, and the corresponding gem is available, the
1948
+ # appropriate versioned client will be returned.
1949
+ #
1950
+ # Raises an exception if the currently installed versioned client gem for the
1951
+ # given API version does not support the InstantSnapshotGroups service.
1952
+ # You can determine whether the method will succeed by calling
1953
+ # {Google::Cloud::Compute.instant_snapshot_groups_available?}.
1954
+ #
1955
+ # ## About InstantSnapshotGroups
1956
+ #
1957
+ # The InstantSnapshotGroups API.
1958
+ #
1959
+ # @param version [::String, ::Symbol] The API version to connect to. Optional.
1960
+ # Defaults to `:v1`.
1961
+ # @return [::Object] A client object for the specified version.
1962
+ #
1963
+ def self.instant_snapshot_groups version: :v1, &block
1964
+ require "google/cloud/compute/#{version.to_s.downcase}"
1965
+
1966
+ package_name = Google::Cloud::Compute
1967
+ .constants
1968
+ .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
1969
+ .first
1970
+ service_module = Google::Cloud::Compute.const_get(package_name).const_get(:InstantSnapshotGroups)
1971
+ service_module.const_get(:Rest).const_get(:Client).new(&block)
1972
+ end
1973
+
1974
+ ##
1975
+ # Determines whether the InstantSnapshotGroups service is supported by the current client.
1976
+ # If true, you can retrieve a client object by calling {Google::Cloud::Compute.instant_snapshot_groups}.
1977
+ # If false, that method will raise an exception. This could happen if the given
1978
+ # API version does not exist or does not support the InstantSnapshotGroups service,
1979
+ # or if the versioned client gem needs an update to support the InstantSnapshotGroups service.
1980
+ #
1981
+ # @param version [::String, ::Symbol] The API version to connect to. Optional.
1982
+ # Defaults to `:v1`.
1983
+ # @return [boolean] Whether the service is available.
1984
+ #
1985
+ def self.instant_snapshot_groups_available? version: :v1
1986
+ require "google/cloud/compute/#{version.to_s.downcase}"
1987
+ package_name = Google::Cloud::Compute
1988
+ .constants
1989
+ .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
1990
+ .first
1991
+ return false unless package_name
1992
+ service_module = Google::Cloud::Compute.const_get package_name
1993
+ return false unless service_module.const_defined? :InstantSnapshotGroups
1994
+ service_module = service_module.const_get :InstantSnapshotGroups
1995
+ return false unless service_module.const_defined? :Rest
1996
+ service_module = service_module.const_get :Rest
1997
+ service_module.const_defined? :Client
1998
+ rescue ::LoadError
1999
+ false
2000
+ end
2001
+
1876
2002
  ##
1877
2003
  # Create a new client object for InstantSnapshots.
1878
2004
  #
@@ -3574,6 +3700,69 @@ module Google
3574
3700
  false
3575
3701
  end
3576
3702
 
3703
+ ##
3704
+ # Create a new client object for RegionBackendBuckets.
3705
+ #
3706
+ # By default, this returns an instance of
3707
+ # [Google::Cloud::Compute::V1::RegionBackendBuckets::Rest::Client](https://cloud.google.com/ruby/docs/reference/google-cloud-compute-v1/latest/Google-Cloud-Compute-V1-RegionBackendBuckets-Rest-Client)
3708
+ # for a REST client for version V1 of the API.
3709
+ # However, you can specify a different API version by passing it in the
3710
+ # `version` parameter. If the RegionBackendBuckets service is
3711
+ # supported by that API version, and the corresponding gem is available, the
3712
+ # appropriate versioned client will be returned.
3713
+ #
3714
+ # Raises an exception if the currently installed versioned client gem for the
3715
+ # given API version does not support the RegionBackendBuckets service.
3716
+ # You can determine whether the method will succeed by calling
3717
+ # {Google::Cloud::Compute.region_backend_buckets_available?}.
3718
+ #
3719
+ # ## About RegionBackendBuckets
3720
+ #
3721
+ # The RegionBackendBuckets API.
3722
+ #
3723
+ # @param version [::String, ::Symbol] The API version to connect to. Optional.
3724
+ # Defaults to `:v1`.
3725
+ # @return [::Object] A client object for the specified version.
3726
+ #
3727
+ def self.region_backend_buckets version: :v1, &block
3728
+ require "google/cloud/compute/#{version.to_s.downcase}"
3729
+
3730
+ package_name = Google::Cloud::Compute
3731
+ .constants
3732
+ .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
3733
+ .first
3734
+ service_module = Google::Cloud::Compute.const_get(package_name).const_get(:RegionBackendBuckets)
3735
+ service_module.const_get(:Rest).const_get(:Client).new(&block)
3736
+ end
3737
+
3738
+ ##
3739
+ # Determines whether the RegionBackendBuckets service is supported by the current client.
3740
+ # If true, you can retrieve a client object by calling {Google::Cloud::Compute.region_backend_buckets}.
3741
+ # If false, that method will raise an exception. This could happen if the given
3742
+ # API version does not exist or does not support the RegionBackendBuckets service,
3743
+ # or if the versioned client gem needs an update to support the RegionBackendBuckets service.
3744
+ #
3745
+ # @param version [::String, ::Symbol] The API version to connect to. Optional.
3746
+ # Defaults to `:v1`.
3747
+ # @return [boolean] Whether the service is available.
3748
+ #
3749
+ def self.region_backend_buckets_available? version: :v1
3750
+ require "google/cloud/compute/#{version.to_s.downcase}"
3751
+ package_name = Google::Cloud::Compute
3752
+ .constants
3753
+ .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
3754
+ .first
3755
+ return false unless package_name
3756
+ service_module = Google::Cloud::Compute.const_get package_name
3757
+ return false unless service_module.const_defined? :RegionBackendBuckets
3758
+ service_module = service_module.const_get :RegionBackendBuckets
3759
+ return false unless service_module.const_defined? :Rest
3760
+ service_module = service_module.const_get :Rest
3761
+ service_module.const_defined? :Client
3762
+ rescue ::LoadError
3763
+ false
3764
+ end
3765
+
3577
3766
  ##
3578
3767
  # Create a new client object for RegionBackendServices.
3579
3768
  #
@@ -4141,6 +4330,69 @@ module Google
4141
4330
  false
4142
4331
  end
4143
4332
 
4333
+ ##
4334
+ # Create a new client object for RegionInstanceGroupManagerResizeRequests.
4335
+ #
4336
+ # By default, this returns an instance of
4337
+ # [Google::Cloud::Compute::V1::RegionInstanceGroupManagerResizeRequests::Rest::Client](https://cloud.google.com/ruby/docs/reference/google-cloud-compute-v1/latest/Google-Cloud-Compute-V1-RegionInstanceGroupManagerResizeRequests-Rest-Client)
4338
+ # for a REST client for version V1 of the API.
4339
+ # However, you can specify a different API version by passing it in the
4340
+ # `version` parameter. If the RegionInstanceGroupManagerResizeRequests service is
4341
+ # supported by that API version, and the corresponding gem is available, the
4342
+ # appropriate versioned client will be returned.
4343
+ #
4344
+ # Raises an exception if the currently installed versioned client gem for the
4345
+ # given API version does not support the RegionInstanceGroupManagerResizeRequests service.
4346
+ # You can determine whether the method will succeed by calling
4347
+ # {Google::Cloud::Compute.region_instance_group_manager_resize_requests_available?}.
4348
+ #
4349
+ # ## About RegionInstanceGroupManagerResizeRequests
4350
+ #
4351
+ # The RegionInstanceGroupManagerResizeRequests API.
4352
+ #
4353
+ # @param version [::String, ::Symbol] The API version to connect to. Optional.
4354
+ # Defaults to `:v1`.
4355
+ # @return [::Object] A client object for the specified version.
4356
+ #
4357
+ def self.region_instance_group_manager_resize_requests version: :v1, &block
4358
+ require "google/cloud/compute/#{version.to_s.downcase}"
4359
+
4360
+ package_name = Google::Cloud::Compute
4361
+ .constants
4362
+ .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
4363
+ .first
4364
+ service_module = Google::Cloud::Compute.const_get(package_name).const_get(:RegionInstanceGroupManagerResizeRequests)
4365
+ service_module.const_get(:Rest).const_get(:Client).new(&block)
4366
+ end
4367
+
4368
+ ##
4369
+ # Determines whether the RegionInstanceGroupManagerResizeRequests service is supported by the current client.
4370
+ # If true, you can retrieve a client object by calling {Google::Cloud::Compute.region_instance_group_manager_resize_requests}.
4371
+ # If false, that method will raise an exception. This could happen if the given
4372
+ # API version does not exist or does not support the RegionInstanceGroupManagerResizeRequests service,
4373
+ # or if the versioned client gem needs an update to support the RegionInstanceGroupManagerResizeRequests service.
4374
+ #
4375
+ # @param version [::String, ::Symbol] The API version to connect to. Optional.
4376
+ # Defaults to `:v1`.
4377
+ # @return [boolean] Whether the service is available.
4378
+ #
4379
+ def self.region_instance_group_manager_resize_requests_available? version: :v1
4380
+ require "google/cloud/compute/#{version.to_s.downcase}"
4381
+ package_name = Google::Cloud::Compute
4382
+ .constants
4383
+ .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
4384
+ .first
4385
+ return false unless package_name
4386
+ service_module = Google::Cloud::Compute.const_get package_name
4387
+ return false unless service_module.const_defined? :RegionInstanceGroupManagerResizeRequests
4388
+ service_module = service_module.const_get :RegionInstanceGroupManagerResizeRequests
4389
+ return false unless service_module.const_defined? :Rest
4390
+ service_module = service_module.const_get :Rest
4391
+ service_module.const_defined? :Client
4392
+ rescue ::LoadError
4393
+ false
4394
+ end
4395
+
4144
4396
  ##
4145
4397
  # Create a new client object for RegionInstanceGroupManagers.
4146
4398
  #
@@ -4393,6 +4645,69 @@ module Google
4393
4645
  false
4394
4646
  end
4395
4647
 
4648
+ ##
4649
+ # Create a new client object for RegionInstantSnapshotGroups.
4650
+ #
4651
+ # By default, this returns an instance of
4652
+ # [Google::Cloud::Compute::V1::RegionInstantSnapshotGroups::Rest::Client](https://cloud.google.com/ruby/docs/reference/google-cloud-compute-v1/latest/Google-Cloud-Compute-V1-RegionInstantSnapshotGroups-Rest-Client)
4653
+ # for a REST client for version V1 of the API.
4654
+ # However, you can specify a different API version by passing it in the
4655
+ # `version` parameter. If the RegionInstantSnapshotGroups service is
4656
+ # supported by that API version, and the corresponding gem is available, the
4657
+ # appropriate versioned client will be returned.
4658
+ #
4659
+ # Raises an exception if the currently installed versioned client gem for the
4660
+ # given API version does not support the RegionInstantSnapshotGroups service.
4661
+ # You can determine whether the method will succeed by calling
4662
+ # {Google::Cloud::Compute.region_instant_snapshot_groups_available?}.
4663
+ #
4664
+ # ## About RegionInstantSnapshotGroups
4665
+ #
4666
+ # The RegionInstantSnapshotGroups API.
4667
+ #
4668
+ # @param version [::String, ::Symbol] The API version to connect to. Optional.
4669
+ # Defaults to `:v1`.
4670
+ # @return [::Object] A client object for the specified version.
4671
+ #
4672
+ def self.region_instant_snapshot_groups version: :v1, &block
4673
+ require "google/cloud/compute/#{version.to_s.downcase}"
4674
+
4675
+ package_name = Google::Cloud::Compute
4676
+ .constants
4677
+ .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
4678
+ .first
4679
+ service_module = Google::Cloud::Compute.const_get(package_name).const_get(:RegionInstantSnapshotGroups)
4680
+ service_module.const_get(:Rest).const_get(:Client).new(&block)
4681
+ end
4682
+
4683
+ ##
4684
+ # Determines whether the RegionInstantSnapshotGroups service is supported by the current client.
4685
+ # If true, you can retrieve a client object by calling {Google::Cloud::Compute.region_instant_snapshot_groups}.
4686
+ # If false, that method will raise an exception. This could happen if the given
4687
+ # API version does not exist or does not support the RegionInstantSnapshotGroups service,
4688
+ # or if the versioned client gem needs an update to support the RegionInstantSnapshotGroups service.
4689
+ #
4690
+ # @param version [::String, ::Symbol] The API version to connect to. Optional.
4691
+ # Defaults to `:v1`.
4692
+ # @return [boolean] Whether the service is available.
4693
+ #
4694
+ def self.region_instant_snapshot_groups_available? version: :v1
4695
+ require "google/cloud/compute/#{version.to_s.downcase}"
4696
+ package_name = Google::Cloud::Compute
4697
+ .constants
4698
+ .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
4699
+ .first
4700
+ return false unless package_name
4701
+ service_module = Google::Cloud::Compute.const_get package_name
4702
+ return false unless service_module.const_defined? :RegionInstantSnapshotGroups
4703
+ service_module = service_module.const_get :RegionInstantSnapshotGroups
4704
+ return false unless service_module.const_defined? :Rest
4705
+ service_module = service_module.const_get :Rest
4706
+ service_module.const_defined? :Client
4707
+ rescue ::LoadError
4708
+ false
4709
+ end
4710
+
4396
4711
  ##
4397
4712
  # Create a new client object for RegionInstantSnapshots.
4398
4713
  #
@@ -4771,6 +5086,132 @@ module Google
4771
5086
  false
4772
5087
  end
4773
5088
 
5089
+ ##
5090
+ # Create a new client object for RegionSnapshotSettings.
5091
+ #
5092
+ # By default, this returns an instance of
5093
+ # [Google::Cloud::Compute::V1::RegionSnapshotSettings::Rest::Client](https://cloud.google.com/ruby/docs/reference/google-cloud-compute-v1/latest/Google-Cloud-Compute-V1-RegionSnapshotSettings-Rest-Client)
5094
+ # for a REST client for version V1 of the API.
5095
+ # However, you can specify a different API version by passing it in the
5096
+ # `version` parameter. If the RegionSnapshotSettings service is
5097
+ # supported by that API version, and the corresponding gem is available, the
5098
+ # appropriate versioned client will be returned.
5099
+ #
5100
+ # Raises an exception if the currently installed versioned client gem for the
5101
+ # given API version does not support the RegionSnapshotSettings service.
5102
+ # You can determine whether the method will succeed by calling
5103
+ # {Google::Cloud::Compute.region_snapshot_settings_available?}.
5104
+ #
5105
+ # ## About RegionSnapshotSettings
5106
+ #
5107
+ # The RegionSnapshotSettings API.
5108
+ #
5109
+ # @param version [::String, ::Symbol] The API version to connect to. Optional.
5110
+ # Defaults to `:v1`.
5111
+ # @return [::Object] A client object for the specified version.
5112
+ #
5113
+ def self.region_snapshot_settings version: :v1, &block
5114
+ require "google/cloud/compute/#{version.to_s.downcase}"
5115
+
5116
+ package_name = Google::Cloud::Compute
5117
+ .constants
5118
+ .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
5119
+ .first
5120
+ service_module = Google::Cloud::Compute.const_get(package_name).const_get(:RegionSnapshotSettings)
5121
+ service_module.const_get(:Rest).const_get(:Client).new(&block)
5122
+ end
5123
+
5124
+ ##
5125
+ # Determines whether the RegionSnapshotSettings service is supported by the current client.
5126
+ # If true, you can retrieve a client object by calling {Google::Cloud::Compute.region_snapshot_settings}.
5127
+ # If false, that method will raise an exception. This could happen if the given
5128
+ # API version does not exist or does not support the RegionSnapshotSettings service,
5129
+ # or if the versioned client gem needs an update to support the RegionSnapshotSettings service.
5130
+ #
5131
+ # @param version [::String, ::Symbol] The API version to connect to. Optional.
5132
+ # Defaults to `:v1`.
5133
+ # @return [boolean] Whether the service is available.
5134
+ #
5135
+ def self.region_snapshot_settings_available? version: :v1
5136
+ require "google/cloud/compute/#{version.to_s.downcase}"
5137
+ package_name = Google::Cloud::Compute
5138
+ .constants
5139
+ .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
5140
+ .first
5141
+ return false unless package_name
5142
+ service_module = Google::Cloud::Compute.const_get package_name
5143
+ return false unless service_module.const_defined? :RegionSnapshotSettings
5144
+ service_module = service_module.const_get :RegionSnapshotSettings
5145
+ return false unless service_module.const_defined? :Rest
5146
+ service_module = service_module.const_get :Rest
5147
+ service_module.const_defined? :Client
5148
+ rescue ::LoadError
5149
+ false
5150
+ end
5151
+
5152
+ ##
5153
+ # Create a new client object for RegionSnapshots.
5154
+ #
5155
+ # By default, this returns an instance of
5156
+ # [Google::Cloud::Compute::V1::RegionSnapshots::Rest::Client](https://cloud.google.com/ruby/docs/reference/google-cloud-compute-v1/latest/Google-Cloud-Compute-V1-RegionSnapshots-Rest-Client)
5157
+ # for a REST client for version V1 of the API.
5158
+ # However, you can specify a different API version by passing it in the
5159
+ # `version` parameter. If the RegionSnapshots service is
5160
+ # supported by that API version, and the corresponding gem is available, the
5161
+ # appropriate versioned client will be returned.
5162
+ #
5163
+ # Raises an exception if the currently installed versioned client gem for the
5164
+ # given API version does not support the RegionSnapshots service.
5165
+ # You can determine whether the method will succeed by calling
5166
+ # {Google::Cloud::Compute.region_snapshots_available?}.
5167
+ #
5168
+ # ## About RegionSnapshots
5169
+ #
5170
+ # The RegionSnapshots API.
5171
+ #
5172
+ # @param version [::String, ::Symbol] The API version to connect to. Optional.
5173
+ # Defaults to `:v1`.
5174
+ # @return [::Object] A client object for the specified version.
5175
+ #
5176
+ def self.region_snapshots version: :v1, &block
5177
+ require "google/cloud/compute/#{version.to_s.downcase}"
5178
+
5179
+ package_name = Google::Cloud::Compute
5180
+ .constants
5181
+ .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
5182
+ .first
5183
+ service_module = Google::Cloud::Compute.const_get(package_name).const_get(:RegionSnapshots)
5184
+ service_module.const_get(:Rest).const_get(:Client).new(&block)
5185
+ end
5186
+
5187
+ ##
5188
+ # Determines whether the RegionSnapshots service is supported by the current client.
5189
+ # If true, you can retrieve a client object by calling {Google::Cloud::Compute.region_snapshots}.
5190
+ # If false, that method will raise an exception. This could happen if the given
5191
+ # API version does not exist or does not support the RegionSnapshots service,
5192
+ # or if the versioned client gem needs an update to support the RegionSnapshots service.
5193
+ #
5194
+ # @param version [::String, ::Symbol] The API version to connect to. Optional.
5195
+ # Defaults to `:v1`.
5196
+ # @return [boolean] Whether the service is available.
5197
+ #
5198
+ def self.region_snapshots_available? version: :v1
5199
+ require "google/cloud/compute/#{version.to_s.downcase}"
5200
+ package_name = Google::Cloud::Compute
5201
+ .constants
5202
+ .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
5203
+ .first
5204
+ return false unless package_name
5205
+ service_module = Google::Cloud::Compute.const_get package_name
5206
+ return false unless service_module.const_defined? :RegionSnapshots
5207
+ service_module = service_module.const_get :RegionSnapshots
5208
+ return false unless service_module.const_defined? :Rest
5209
+ service_module = service_module.const_get :Rest
5210
+ service_module.const_defined? :Client
5211
+ rescue ::LoadError
5212
+ false
5213
+ end
5214
+
4774
5215
  ##
4775
5216
  # Create a new client object for RegionSslCertificates.
4776
5217
  #
@@ -5590,6 +6031,132 @@ module Google
5590
6031
  false
5591
6032
  end
5592
6033
 
6034
+ ##
6035
+ # Create a new client object for RolloutPlans.
6036
+ #
6037
+ # By default, this returns an instance of
6038
+ # [Google::Cloud::Compute::V1::RolloutPlans::Rest::Client](https://cloud.google.com/ruby/docs/reference/google-cloud-compute-v1/latest/Google-Cloud-Compute-V1-RolloutPlans-Rest-Client)
6039
+ # for a REST client for version V1 of the API.
6040
+ # However, you can specify a different API version by passing it in the
6041
+ # `version` parameter. If the RolloutPlans service is
6042
+ # supported by that API version, and the corresponding gem is available, the
6043
+ # appropriate versioned client will be returned.
6044
+ #
6045
+ # Raises an exception if the currently installed versioned client gem for the
6046
+ # given API version does not support the RolloutPlans service.
6047
+ # You can determine whether the method will succeed by calling
6048
+ # {Google::Cloud::Compute.rollout_plans_available?}.
6049
+ #
6050
+ # ## About RolloutPlans
6051
+ #
6052
+ # The RolloutPlans API.
6053
+ #
6054
+ # @param version [::String, ::Symbol] The API version to connect to. Optional.
6055
+ # Defaults to `:v1`.
6056
+ # @return [::Object] A client object for the specified version.
6057
+ #
6058
+ def self.rollout_plans version: :v1, &block
6059
+ require "google/cloud/compute/#{version.to_s.downcase}"
6060
+
6061
+ package_name = Google::Cloud::Compute
6062
+ .constants
6063
+ .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
6064
+ .first
6065
+ service_module = Google::Cloud::Compute.const_get(package_name).const_get(:RolloutPlans)
6066
+ service_module.const_get(:Rest).const_get(:Client).new(&block)
6067
+ end
6068
+
6069
+ ##
6070
+ # Determines whether the RolloutPlans service is supported by the current client.
6071
+ # If true, you can retrieve a client object by calling {Google::Cloud::Compute.rollout_plans}.
6072
+ # If false, that method will raise an exception. This could happen if the given
6073
+ # API version does not exist or does not support the RolloutPlans service,
6074
+ # or if the versioned client gem needs an update to support the RolloutPlans service.
6075
+ #
6076
+ # @param version [::String, ::Symbol] The API version to connect to. Optional.
6077
+ # Defaults to `:v1`.
6078
+ # @return [boolean] Whether the service is available.
6079
+ #
6080
+ def self.rollout_plans_available? version: :v1
6081
+ require "google/cloud/compute/#{version.to_s.downcase}"
6082
+ package_name = Google::Cloud::Compute
6083
+ .constants
6084
+ .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
6085
+ .first
6086
+ return false unless package_name
6087
+ service_module = Google::Cloud::Compute.const_get package_name
6088
+ return false unless service_module.const_defined? :RolloutPlans
6089
+ service_module = service_module.const_get :RolloutPlans
6090
+ return false unless service_module.const_defined? :Rest
6091
+ service_module = service_module.const_get :Rest
6092
+ service_module.const_defined? :Client
6093
+ rescue ::LoadError
6094
+ false
6095
+ end
6096
+
6097
+ ##
6098
+ # Create a new client object for Rollouts.
6099
+ #
6100
+ # By default, this returns an instance of
6101
+ # [Google::Cloud::Compute::V1::Rollouts::Rest::Client](https://cloud.google.com/ruby/docs/reference/google-cloud-compute-v1/latest/Google-Cloud-Compute-V1-Rollouts-Rest-Client)
6102
+ # for a REST client for version V1 of the API.
6103
+ # However, you can specify a different API version by passing it in the
6104
+ # `version` parameter. If the Rollouts service is
6105
+ # supported by that API version, and the corresponding gem is available, the
6106
+ # appropriate versioned client will be returned.
6107
+ #
6108
+ # Raises an exception if the currently installed versioned client gem for the
6109
+ # given API version does not support the Rollouts service.
6110
+ # You can determine whether the method will succeed by calling
6111
+ # {Google::Cloud::Compute.rollouts_available?}.
6112
+ #
6113
+ # ## About Rollouts
6114
+ #
6115
+ # The Rollouts API.
6116
+ #
6117
+ # @param version [::String, ::Symbol] The API version to connect to. Optional.
6118
+ # Defaults to `:v1`.
6119
+ # @return [::Object] A client object for the specified version.
6120
+ #
6121
+ def self.rollouts version: :v1, &block
6122
+ require "google/cloud/compute/#{version.to_s.downcase}"
6123
+
6124
+ package_name = Google::Cloud::Compute
6125
+ .constants
6126
+ .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
6127
+ .first
6128
+ service_module = Google::Cloud::Compute.const_get(package_name).const_get(:Rollouts)
6129
+ service_module.const_get(:Rest).const_get(:Client).new(&block)
6130
+ end
6131
+
6132
+ ##
6133
+ # Determines whether the Rollouts service is supported by the current client.
6134
+ # If true, you can retrieve a client object by calling {Google::Cloud::Compute.rollouts}.
6135
+ # If false, that method will raise an exception. This could happen if the given
6136
+ # API version does not exist or does not support the Rollouts service,
6137
+ # or if the versioned client gem needs an update to support the Rollouts service.
6138
+ #
6139
+ # @param version [::String, ::Symbol] The API version to connect to. Optional.
6140
+ # Defaults to `:v1`.
6141
+ # @return [boolean] Whether the service is available.
6142
+ #
6143
+ def self.rollouts_available? version: :v1
6144
+ require "google/cloud/compute/#{version.to_s.downcase}"
6145
+ package_name = Google::Cloud::Compute
6146
+ .constants
6147
+ .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
6148
+ .first
6149
+ return false unless package_name
6150
+ service_module = Google::Cloud::Compute.const_get package_name
6151
+ return false unless service_module.const_defined? :Rollouts
6152
+ service_module = service_module.const_get :Rollouts
6153
+ return false unless service_module.const_defined? :Rest
6154
+ service_module = service_module.const_get :Rest
6155
+ service_module.const_defined? :Client
6156
+ rescue ::LoadError
6157
+ false
6158
+ end
6159
+
5593
6160
  ##
5594
6161
  # Create a new client object for Routers.
5595
6162
  #
@@ -7102,6 +7669,69 @@ module Google
7102
7669
  false
7103
7670
  end
7104
7671
 
7672
+ ##
7673
+ # Create a new client object for ZoneVmExtensionPolicies.
7674
+ #
7675
+ # By default, this returns an instance of
7676
+ # [Google::Cloud::Compute::V1::ZoneVmExtensionPolicies::Rest::Client](https://cloud.google.com/ruby/docs/reference/google-cloud-compute-v1/latest/Google-Cloud-Compute-V1-ZoneVmExtensionPolicies-Rest-Client)
7677
+ # for a REST client for version V1 of the API.
7678
+ # However, you can specify a different API version by passing it in the
7679
+ # `version` parameter. If the ZoneVmExtensionPolicies service is
7680
+ # supported by that API version, and the corresponding gem is available, the
7681
+ # appropriate versioned client will be returned.
7682
+ #
7683
+ # Raises an exception if the currently installed versioned client gem for the
7684
+ # given API version does not support the ZoneVmExtensionPolicies service.
7685
+ # You can determine whether the method will succeed by calling
7686
+ # {Google::Cloud::Compute.zone_vm_extension_policies_available?}.
7687
+ #
7688
+ # ## About ZoneVmExtensionPolicies
7689
+ #
7690
+ # The ZoneVmExtensionPolicies API.
7691
+ #
7692
+ # @param version [::String, ::Symbol] The API version to connect to. Optional.
7693
+ # Defaults to `:v1`.
7694
+ # @return [::Object] A client object for the specified version.
7695
+ #
7696
+ def self.zone_vm_extension_policies version: :v1, &block
7697
+ require "google/cloud/compute/#{version.to_s.downcase}"
7698
+
7699
+ package_name = Google::Cloud::Compute
7700
+ .constants
7701
+ .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
7702
+ .first
7703
+ service_module = Google::Cloud::Compute.const_get(package_name).const_get(:ZoneVmExtensionPolicies)
7704
+ service_module.const_get(:Rest).const_get(:Client).new(&block)
7705
+ end
7706
+
7707
+ ##
7708
+ # Determines whether the ZoneVmExtensionPolicies service is supported by the current client.
7709
+ # If true, you can retrieve a client object by calling {Google::Cloud::Compute.zone_vm_extension_policies}.
7710
+ # If false, that method will raise an exception. This could happen if the given
7711
+ # API version does not exist or does not support the ZoneVmExtensionPolicies service,
7712
+ # or if the versioned client gem needs an update to support the ZoneVmExtensionPolicies service.
7713
+ #
7714
+ # @param version [::String, ::Symbol] The API version to connect to. Optional.
7715
+ # Defaults to `:v1`.
7716
+ # @return [boolean] Whether the service is available.
7717
+ #
7718
+ def self.zone_vm_extension_policies_available? version: :v1
7719
+ require "google/cloud/compute/#{version.to_s.downcase}"
7720
+ package_name = Google::Cloud::Compute
7721
+ .constants
7722
+ .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
7723
+ .first
7724
+ return false unless package_name
7725
+ service_module = Google::Cloud::Compute.const_get package_name
7726
+ return false unless service_module.const_defined? :ZoneVmExtensionPolicies
7727
+ service_module = service_module.const_get :ZoneVmExtensionPolicies
7728
+ return false unless service_module.const_defined? :Rest
7729
+ service_module = service_module.const_get :Rest
7730
+ service_module.const_defined? :Client
7731
+ rescue ::LoadError
7732
+ false
7733
+ end
7734
+
7105
7735
  ##
7106
7736
  # Create a new client object for Zones.
7107
7737
  #
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.16.0
4
+ version: 1.18.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC