google-cloud-compute 1.16.0 → 1.17.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: 37f7b4f55ec42bff9069bd6ebc1989bf6f79bfecf589cb4b5e6717ec786b5383
4
+ data.tar.gz: 893b2c7092136844783de46a1efdd1ec329884c09fd7d86d6604cafae85a7fa4
5
5
  SHA512:
6
- metadata.gz: 376614f257109addcc954dae4fdad63c340b368f04b2a90e8a9b54e38a4c95acd59bbe25903799f8e789c59fbca4c1d64fa6aa6add9c8fcf95c4adc1241f3af4
7
- data.tar.gz: 17ba53ffccfe4ee76bb3585b8c5895c40c4b86853ba8351505f6147862e2e146d1fa6eb93d34be38de4ca5d7ed57284f562b2e1f010696b28029313d1ea7cd1d
6
+ metadata.gz: 8c784cfac5059ad694f6e4bdde861da3433d6fb33f6192f165a7d7b69847a33886ab8dd8afd5d6732574dfed93df6f5962da9ceb6f4afd3b810c12bd32fa48d2
7
+ data.tar.gz: ee5af3cd99fef7d8dafb8cc63f6d084014bd8fe4e4ae44e28aa12767c11aaffa514613862505fadc5b9e444a095b68f3b2181251a8fd4ca23a78aa6326352574
@@ -20,7 +20,7 @@
20
20
  module Google
21
21
  module Cloud
22
22
  module Compute
23
- VERSION = "1.16.0"
23
+ VERSION = "1.17.0"
24
24
  end
25
25
  end
26
26
  end
@@ -1873,6 +1873,69 @@ module Google
1873
1873
  false
1874
1874
  end
1875
1875
 
1876
+ ##
1877
+ # Create a new client object for InstantSnapshotGroups.
1878
+ #
1879
+ # By default, this returns an instance of
1880
+ # [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)
1881
+ # for a REST client for version V1 of the API.
1882
+ # However, you can specify a different API version by passing it in the
1883
+ # `version` parameter. If the InstantSnapshotGroups service is
1884
+ # supported by that API version, and the corresponding gem is available, the
1885
+ # appropriate versioned client will be returned.
1886
+ #
1887
+ # Raises an exception if the currently installed versioned client gem for the
1888
+ # given API version does not support the InstantSnapshotGroups service.
1889
+ # You can determine whether the method will succeed by calling
1890
+ # {Google::Cloud::Compute.instant_snapshot_groups_available?}.
1891
+ #
1892
+ # ## About InstantSnapshotGroups
1893
+ #
1894
+ # The InstantSnapshotGroups API.
1895
+ #
1896
+ # @param version [::String, ::Symbol] The API version to connect to. Optional.
1897
+ # Defaults to `:v1`.
1898
+ # @return [::Object] A client object for the specified version.
1899
+ #
1900
+ def self.instant_snapshot_groups version: :v1, &block
1901
+ require "google/cloud/compute/#{version.to_s.downcase}"
1902
+
1903
+ package_name = Google::Cloud::Compute
1904
+ .constants
1905
+ .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
1906
+ .first
1907
+ service_module = Google::Cloud::Compute.const_get(package_name).const_get(:InstantSnapshotGroups)
1908
+ service_module.const_get(:Rest).const_get(:Client).new(&block)
1909
+ end
1910
+
1911
+ ##
1912
+ # Determines whether the InstantSnapshotGroups service is supported by the current client.
1913
+ # If true, you can retrieve a client object by calling {Google::Cloud::Compute.instant_snapshot_groups}.
1914
+ # If false, that method will raise an exception. This could happen if the given
1915
+ # API version does not exist or does not support the InstantSnapshotGroups service,
1916
+ # or if the versioned client gem needs an update to support the InstantSnapshotGroups service.
1917
+ #
1918
+ # @param version [::String, ::Symbol] The API version to connect to. Optional.
1919
+ # Defaults to `:v1`.
1920
+ # @return [boolean] Whether the service is available.
1921
+ #
1922
+ def self.instant_snapshot_groups_available? version: :v1
1923
+ require "google/cloud/compute/#{version.to_s.downcase}"
1924
+ package_name = Google::Cloud::Compute
1925
+ .constants
1926
+ .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
1927
+ .first
1928
+ return false unless package_name
1929
+ service_module = Google::Cloud::Compute.const_get package_name
1930
+ return false unless service_module.const_defined? :InstantSnapshotGroups
1931
+ service_module = service_module.const_get :InstantSnapshotGroups
1932
+ return false unless service_module.const_defined? :Rest
1933
+ service_module = service_module.const_get :Rest
1934
+ service_module.const_defined? :Client
1935
+ rescue ::LoadError
1936
+ false
1937
+ end
1938
+
1876
1939
  ##
1877
1940
  # Create a new client object for InstantSnapshots.
1878
1941
  #
@@ -3574,6 +3637,69 @@ module Google
3574
3637
  false
3575
3638
  end
3576
3639
 
3640
+ ##
3641
+ # Create a new client object for RegionBackendBuckets.
3642
+ #
3643
+ # By default, this returns an instance of
3644
+ # [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)
3645
+ # for a REST client for version V1 of the API.
3646
+ # However, you can specify a different API version by passing it in the
3647
+ # `version` parameter. If the RegionBackendBuckets service is
3648
+ # supported by that API version, and the corresponding gem is available, the
3649
+ # appropriate versioned client will be returned.
3650
+ #
3651
+ # Raises an exception if the currently installed versioned client gem for the
3652
+ # given API version does not support the RegionBackendBuckets service.
3653
+ # You can determine whether the method will succeed by calling
3654
+ # {Google::Cloud::Compute.region_backend_buckets_available?}.
3655
+ #
3656
+ # ## About RegionBackendBuckets
3657
+ #
3658
+ # The RegionBackendBuckets API.
3659
+ #
3660
+ # @param version [::String, ::Symbol] The API version to connect to. Optional.
3661
+ # Defaults to `:v1`.
3662
+ # @return [::Object] A client object for the specified version.
3663
+ #
3664
+ def self.region_backend_buckets version: :v1, &block
3665
+ require "google/cloud/compute/#{version.to_s.downcase}"
3666
+
3667
+ package_name = Google::Cloud::Compute
3668
+ .constants
3669
+ .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
3670
+ .first
3671
+ service_module = Google::Cloud::Compute.const_get(package_name).const_get(:RegionBackendBuckets)
3672
+ service_module.const_get(:Rest).const_get(:Client).new(&block)
3673
+ end
3674
+
3675
+ ##
3676
+ # Determines whether the RegionBackendBuckets service is supported by the current client.
3677
+ # If true, you can retrieve a client object by calling {Google::Cloud::Compute.region_backend_buckets}.
3678
+ # If false, that method will raise an exception. This could happen if the given
3679
+ # API version does not exist or does not support the RegionBackendBuckets service,
3680
+ # or if the versioned client gem needs an update to support the RegionBackendBuckets service.
3681
+ #
3682
+ # @param version [::String, ::Symbol] The API version to connect to. Optional.
3683
+ # Defaults to `:v1`.
3684
+ # @return [boolean] Whether the service is available.
3685
+ #
3686
+ def self.region_backend_buckets_available? version: :v1
3687
+ require "google/cloud/compute/#{version.to_s.downcase}"
3688
+ package_name = Google::Cloud::Compute
3689
+ .constants
3690
+ .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
3691
+ .first
3692
+ return false unless package_name
3693
+ service_module = Google::Cloud::Compute.const_get package_name
3694
+ return false unless service_module.const_defined? :RegionBackendBuckets
3695
+ service_module = service_module.const_get :RegionBackendBuckets
3696
+ return false unless service_module.const_defined? :Rest
3697
+ service_module = service_module.const_get :Rest
3698
+ service_module.const_defined? :Client
3699
+ rescue ::LoadError
3700
+ false
3701
+ end
3702
+
3577
3703
  ##
3578
3704
  # Create a new client object for RegionBackendServices.
3579
3705
  #
@@ -4141,6 +4267,69 @@ module Google
4141
4267
  false
4142
4268
  end
4143
4269
 
4270
+ ##
4271
+ # Create a new client object for RegionInstanceGroupManagerResizeRequests.
4272
+ #
4273
+ # By default, this returns an instance of
4274
+ # [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)
4275
+ # for a REST client for version V1 of the API.
4276
+ # However, you can specify a different API version by passing it in the
4277
+ # `version` parameter. If the RegionInstanceGroupManagerResizeRequests service is
4278
+ # supported by that API version, and the corresponding gem is available, the
4279
+ # appropriate versioned client will be returned.
4280
+ #
4281
+ # Raises an exception if the currently installed versioned client gem for the
4282
+ # given API version does not support the RegionInstanceGroupManagerResizeRequests service.
4283
+ # You can determine whether the method will succeed by calling
4284
+ # {Google::Cloud::Compute.region_instance_group_manager_resize_requests_available?}.
4285
+ #
4286
+ # ## About RegionInstanceGroupManagerResizeRequests
4287
+ #
4288
+ # The RegionInstanceGroupManagerResizeRequests API.
4289
+ #
4290
+ # @param version [::String, ::Symbol] The API version to connect to. Optional.
4291
+ # Defaults to `:v1`.
4292
+ # @return [::Object] A client object for the specified version.
4293
+ #
4294
+ def self.region_instance_group_manager_resize_requests version: :v1, &block
4295
+ require "google/cloud/compute/#{version.to_s.downcase}"
4296
+
4297
+ package_name = Google::Cloud::Compute
4298
+ .constants
4299
+ .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
4300
+ .first
4301
+ service_module = Google::Cloud::Compute.const_get(package_name).const_get(:RegionInstanceGroupManagerResizeRequests)
4302
+ service_module.const_get(:Rest).const_get(:Client).new(&block)
4303
+ end
4304
+
4305
+ ##
4306
+ # Determines whether the RegionInstanceGroupManagerResizeRequests service is supported by the current client.
4307
+ # If true, you can retrieve a client object by calling {Google::Cloud::Compute.region_instance_group_manager_resize_requests}.
4308
+ # If false, that method will raise an exception. This could happen if the given
4309
+ # API version does not exist or does not support the RegionInstanceGroupManagerResizeRequests service,
4310
+ # or if the versioned client gem needs an update to support the RegionInstanceGroupManagerResizeRequests service.
4311
+ #
4312
+ # @param version [::String, ::Symbol] The API version to connect to. Optional.
4313
+ # Defaults to `:v1`.
4314
+ # @return [boolean] Whether the service is available.
4315
+ #
4316
+ def self.region_instance_group_manager_resize_requests_available? version: :v1
4317
+ require "google/cloud/compute/#{version.to_s.downcase}"
4318
+ package_name = Google::Cloud::Compute
4319
+ .constants
4320
+ .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
4321
+ .first
4322
+ return false unless package_name
4323
+ service_module = Google::Cloud::Compute.const_get package_name
4324
+ return false unless service_module.const_defined? :RegionInstanceGroupManagerResizeRequests
4325
+ service_module = service_module.const_get :RegionInstanceGroupManagerResizeRequests
4326
+ return false unless service_module.const_defined? :Rest
4327
+ service_module = service_module.const_get :Rest
4328
+ service_module.const_defined? :Client
4329
+ rescue ::LoadError
4330
+ false
4331
+ end
4332
+
4144
4333
  ##
4145
4334
  # Create a new client object for RegionInstanceGroupManagers.
4146
4335
  #
@@ -4393,6 +4582,69 @@ module Google
4393
4582
  false
4394
4583
  end
4395
4584
 
4585
+ ##
4586
+ # Create a new client object for RegionInstantSnapshotGroups.
4587
+ #
4588
+ # By default, this returns an instance of
4589
+ # [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)
4590
+ # for a REST client for version V1 of the API.
4591
+ # However, you can specify a different API version by passing it in the
4592
+ # `version` parameter. If the RegionInstantSnapshotGroups service is
4593
+ # supported by that API version, and the corresponding gem is available, the
4594
+ # appropriate versioned client will be returned.
4595
+ #
4596
+ # Raises an exception if the currently installed versioned client gem for the
4597
+ # given API version does not support the RegionInstantSnapshotGroups service.
4598
+ # You can determine whether the method will succeed by calling
4599
+ # {Google::Cloud::Compute.region_instant_snapshot_groups_available?}.
4600
+ #
4601
+ # ## About RegionInstantSnapshotGroups
4602
+ #
4603
+ # The RegionInstantSnapshotGroups API.
4604
+ #
4605
+ # @param version [::String, ::Symbol] The API version to connect to. Optional.
4606
+ # Defaults to `:v1`.
4607
+ # @return [::Object] A client object for the specified version.
4608
+ #
4609
+ def self.region_instant_snapshot_groups version: :v1, &block
4610
+ require "google/cloud/compute/#{version.to_s.downcase}"
4611
+
4612
+ package_name = Google::Cloud::Compute
4613
+ .constants
4614
+ .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
4615
+ .first
4616
+ service_module = Google::Cloud::Compute.const_get(package_name).const_get(:RegionInstantSnapshotGroups)
4617
+ service_module.const_get(:Rest).const_get(:Client).new(&block)
4618
+ end
4619
+
4620
+ ##
4621
+ # Determines whether the RegionInstantSnapshotGroups service is supported by the current client.
4622
+ # If true, you can retrieve a client object by calling {Google::Cloud::Compute.region_instant_snapshot_groups}.
4623
+ # If false, that method will raise an exception. This could happen if the given
4624
+ # API version does not exist or does not support the RegionInstantSnapshotGroups service,
4625
+ # or if the versioned client gem needs an update to support the RegionInstantSnapshotGroups service.
4626
+ #
4627
+ # @param version [::String, ::Symbol] The API version to connect to. Optional.
4628
+ # Defaults to `:v1`.
4629
+ # @return [boolean] Whether the service is available.
4630
+ #
4631
+ def self.region_instant_snapshot_groups_available? version: :v1
4632
+ require "google/cloud/compute/#{version.to_s.downcase}"
4633
+ package_name = Google::Cloud::Compute
4634
+ .constants
4635
+ .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
4636
+ .first
4637
+ return false unless package_name
4638
+ service_module = Google::Cloud::Compute.const_get package_name
4639
+ return false unless service_module.const_defined? :RegionInstantSnapshotGroups
4640
+ service_module = service_module.const_get :RegionInstantSnapshotGroups
4641
+ return false unless service_module.const_defined? :Rest
4642
+ service_module = service_module.const_get :Rest
4643
+ service_module.const_defined? :Client
4644
+ rescue ::LoadError
4645
+ false
4646
+ end
4647
+
4396
4648
  ##
4397
4649
  # Create a new client object for RegionInstantSnapshots.
4398
4650
  #
@@ -4771,6 +5023,132 @@ module Google
4771
5023
  false
4772
5024
  end
4773
5025
 
5026
+ ##
5027
+ # Create a new client object for RegionSnapshotSettings.
5028
+ #
5029
+ # By default, this returns an instance of
5030
+ # [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)
5031
+ # for a REST client for version V1 of the API.
5032
+ # However, you can specify a different API version by passing it in the
5033
+ # `version` parameter. If the RegionSnapshotSettings service is
5034
+ # supported by that API version, and the corresponding gem is available, the
5035
+ # appropriate versioned client will be returned.
5036
+ #
5037
+ # Raises an exception if the currently installed versioned client gem for the
5038
+ # given API version does not support the RegionSnapshotSettings service.
5039
+ # You can determine whether the method will succeed by calling
5040
+ # {Google::Cloud::Compute.region_snapshot_settings_available?}.
5041
+ #
5042
+ # ## About RegionSnapshotSettings
5043
+ #
5044
+ # The RegionSnapshotSettings API.
5045
+ #
5046
+ # @param version [::String, ::Symbol] The API version to connect to. Optional.
5047
+ # Defaults to `:v1`.
5048
+ # @return [::Object] A client object for the specified version.
5049
+ #
5050
+ def self.region_snapshot_settings version: :v1, &block
5051
+ require "google/cloud/compute/#{version.to_s.downcase}"
5052
+
5053
+ package_name = Google::Cloud::Compute
5054
+ .constants
5055
+ .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
5056
+ .first
5057
+ service_module = Google::Cloud::Compute.const_get(package_name).const_get(:RegionSnapshotSettings)
5058
+ service_module.const_get(:Rest).const_get(:Client).new(&block)
5059
+ end
5060
+
5061
+ ##
5062
+ # Determines whether the RegionSnapshotSettings service is supported by the current client.
5063
+ # If true, you can retrieve a client object by calling {Google::Cloud::Compute.region_snapshot_settings}.
5064
+ # If false, that method will raise an exception. This could happen if the given
5065
+ # API version does not exist or does not support the RegionSnapshotSettings service,
5066
+ # or if the versioned client gem needs an update to support the RegionSnapshotSettings service.
5067
+ #
5068
+ # @param version [::String, ::Symbol] The API version to connect to. Optional.
5069
+ # Defaults to `:v1`.
5070
+ # @return [boolean] Whether the service is available.
5071
+ #
5072
+ def self.region_snapshot_settings_available? version: :v1
5073
+ require "google/cloud/compute/#{version.to_s.downcase}"
5074
+ package_name = Google::Cloud::Compute
5075
+ .constants
5076
+ .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
5077
+ .first
5078
+ return false unless package_name
5079
+ service_module = Google::Cloud::Compute.const_get package_name
5080
+ return false unless service_module.const_defined? :RegionSnapshotSettings
5081
+ service_module = service_module.const_get :RegionSnapshotSettings
5082
+ return false unless service_module.const_defined? :Rest
5083
+ service_module = service_module.const_get :Rest
5084
+ service_module.const_defined? :Client
5085
+ rescue ::LoadError
5086
+ false
5087
+ end
5088
+
5089
+ ##
5090
+ # Create a new client object for RegionSnapshots.
5091
+ #
5092
+ # By default, this returns an instance of
5093
+ # [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)
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 RegionSnapshots 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 RegionSnapshots service.
5102
+ # You can determine whether the method will succeed by calling
5103
+ # {Google::Cloud::Compute.region_snapshots_available?}.
5104
+ #
5105
+ # ## About RegionSnapshots
5106
+ #
5107
+ # The RegionSnapshots 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_snapshots 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(:RegionSnapshots)
5121
+ service_module.const_get(:Rest).const_get(:Client).new(&block)
5122
+ end
5123
+
5124
+ ##
5125
+ # Determines whether the RegionSnapshots service is supported by the current client.
5126
+ # If true, you can retrieve a client object by calling {Google::Cloud::Compute.region_snapshots}.
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 RegionSnapshots service,
5129
+ # or if the versioned client gem needs an update to support the RegionSnapshots 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_snapshots_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? :RegionSnapshots
5144
+ service_module = service_module.const_get :RegionSnapshots
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
+
4774
5152
  ##
4775
5153
  # Create a new client object for RegionSslCertificates.
4776
5154
  #
@@ -7102,6 +7480,69 @@ module Google
7102
7480
  false
7103
7481
  end
7104
7482
 
7483
+ ##
7484
+ # Create a new client object for ZoneVmExtensionPolicies.
7485
+ #
7486
+ # By default, this returns an instance of
7487
+ # [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)
7488
+ # for a REST client for version V1 of the API.
7489
+ # However, you can specify a different API version by passing it in the
7490
+ # `version` parameter. If the ZoneVmExtensionPolicies service is
7491
+ # supported by that API version, and the corresponding gem is available, the
7492
+ # appropriate versioned client will be returned.
7493
+ #
7494
+ # Raises an exception if the currently installed versioned client gem for the
7495
+ # given API version does not support the ZoneVmExtensionPolicies service.
7496
+ # You can determine whether the method will succeed by calling
7497
+ # {Google::Cloud::Compute.zone_vm_extension_policies_available?}.
7498
+ #
7499
+ # ## About ZoneVmExtensionPolicies
7500
+ #
7501
+ # The ZoneVmExtensionPolicies API.
7502
+ #
7503
+ # @param version [::String, ::Symbol] The API version to connect to. Optional.
7504
+ # Defaults to `:v1`.
7505
+ # @return [::Object] A client object for the specified version.
7506
+ #
7507
+ def self.zone_vm_extension_policies version: :v1, &block
7508
+ require "google/cloud/compute/#{version.to_s.downcase}"
7509
+
7510
+ package_name = Google::Cloud::Compute
7511
+ .constants
7512
+ .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
7513
+ .first
7514
+ service_module = Google::Cloud::Compute.const_get(package_name).const_get(:ZoneVmExtensionPolicies)
7515
+ service_module.const_get(:Rest).const_get(:Client).new(&block)
7516
+ end
7517
+
7518
+ ##
7519
+ # Determines whether the ZoneVmExtensionPolicies service is supported by the current client.
7520
+ # If true, you can retrieve a client object by calling {Google::Cloud::Compute.zone_vm_extension_policies}.
7521
+ # If false, that method will raise an exception. This could happen if the given
7522
+ # API version does not exist or does not support the ZoneVmExtensionPolicies service,
7523
+ # or if the versioned client gem needs an update to support the ZoneVmExtensionPolicies service.
7524
+ #
7525
+ # @param version [::String, ::Symbol] The API version to connect to. Optional.
7526
+ # Defaults to `:v1`.
7527
+ # @return [boolean] Whether the service is available.
7528
+ #
7529
+ def self.zone_vm_extension_policies_available? version: :v1
7530
+ require "google/cloud/compute/#{version.to_s.downcase}"
7531
+ package_name = Google::Cloud::Compute
7532
+ .constants
7533
+ .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
7534
+ .first
7535
+ return false unless package_name
7536
+ service_module = Google::Cloud::Compute.const_get package_name
7537
+ return false unless service_module.const_defined? :ZoneVmExtensionPolicies
7538
+ service_module = service_module.const_get :ZoneVmExtensionPolicies
7539
+ return false unless service_module.const_defined? :Rest
7540
+ service_module = service_module.const_get :Rest
7541
+ service_module.const_defined? :Client
7542
+ rescue ::LoadError
7543
+ false
7544
+ end
7545
+
7105
7546
  ##
7106
7547
  # Create a new client object for Zones.
7107
7548
  #
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.17.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC