google-cloud-compute 1.15.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 +4 -4
- data/lib/google/cloud/compute/version.rb +1 -1
- data/lib/google/cloud/compute.rb +567 -0
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 37f7b4f55ec42bff9069bd6ebc1989bf6f79bfecf589cb4b5e6717ec786b5383
|
|
4
|
+
data.tar.gz: 893b2c7092136844783de46a1efdd1ec329884c09fd7d86d6604cafae85a7fa4
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8c784cfac5059ad694f6e4bdde861da3433d6fb33f6192f165a7d7b69847a33886ab8dd8afd5d6732574dfed93df6f5962da9ceb6f4afd3b810c12bd32fa48d2
|
|
7
|
+
data.tar.gz: ee5af3cd99fef7d8dafb8cc63f6d084014bd8fe4e4ae44e28aa12767c11aaffa514613862505fadc5b9e444a095b68f3b2181251a8fd4ca23a78aa6326352574
|
data/lib/google/cloud/compute.rb
CHANGED
|
@@ -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
|
#
|
|
@@ -3700,6 +3826,69 @@ module Google
|
|
|
3700
3826
|
false
|
|
3701
3827
|
end
|
|
3702
3828
|
|
|
3829
|
+
##
|
|
3830
|
+
# Create a new client object for RegionCompositeHealthChecks.
|
|
3831
|
+
#
|
|
3832
|
+
# By default, this returns an instance of
|
|
3833
|
+
# [Google::Cloud::Compute::V1::RegionCompositeHealthChecks::Rest::Client](https://cloud.google.com/ruby/docs/reference/google-cloud-compute-v1/latest/Google-Cloud-Compute-V1-RegionCompositeHealthChecks-Rest-Client)
|
|
3834
|
+
# for a REST client for version V1 of the API.
|
|
3835
|
+
# However, you can specify a different API version by passing it in the
|
|
3836
|
+
# `version` parameter. If the RegionCompositeHealthChecks service is
|
|
3837
|
+
# supported by that API version, and the corresponding gem is available, the
|
|
3838
|
+
# appropriate versioned client will be returned.
|
|
3839
|
+
#
|
|
3840
|
+
# Raises an exception if the currently installed versioned client gem for the
|
|
3841
|
+
# given API version does not support the RegionCompositeHealthChecks service.
|
|
3842
|
+
# You can determine whether the method will succeed by calling
|
|
3843
|
+
# {Google::Cloud::Compute.region_composite_health_checks_available?}.
|
|
3844
|
+
#
|
|
3845
|
+
# ## About RegionCompositeHealthChecks
|
|
3846
|
+
#
|
|
3847
|
+
# The RegionCompositeHealthChecks API.
|
|
3848
|
+
#
|
|
3849
|
+
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
|
3850
|
+
# Defaults to `:v1`.
|
|
3851
|
+
# @return [::Object] A client object for the specified version.
|
|
3852
|
+
#
|
|
3853
|
+
def self.region_composite_health_checks version: :v1, &block
|
|
3854
|
+
require "google/cloud/compute/#{version.to_s.downcase}"
|
|
3855
|
+
|
|
3856
|
+
package_name = Google::Cloud::Compute
|
|
3857
|
+
.constants
|
|
3858
|
+
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
|
3859
|
+
.first
|
|
3860
|
+
service_module = Google::Cloud::Compute.const_get(package_name).const_get(:RegionCompositeHealthChecks)
|
|
3861
|
+
service_module.const_get(:Rest).const_get(:Client).new(&block)
|
|
3862
|
+
end
|
|
3863
|
+
|
|
3864
|
+
##
|
|
3865
|
+
# Determines whether the RegionCompositeHealthChecks service is supported by the current client.
|
|
3866
|
+
# If true, you can retrieve a client object by calling {Google::Cloud::Compute.region_composite_health_checks}.
|
|
3867
|
+
# If false, that method will raise an exception. This could happen if the given
|
|
3868
|
+
# API version does not exist or does not support the RegionCompositeHealthChecks service,
|
|
3869
|
+
# or if the versioned client gem needs an update to support the RegionCompositeHealthChecks service.
|
|
3870
|
+
#
|
|
3871
|
+
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
|
3872
|
+
# Defaults to `:v1`.
|
|
3873
|
+
# @return [boolean] Whether the service is available.
|
|
3874
|
+
#
|
|
3875
|
+
def self.region_composite_health_checks_available? version: :v1
|
|
3876
|
+
require "google/cloud/compute/#{version.to_s.downcase}"
|
|
3877
|
+
package_name = Google::Cloud::Compute
|
|
3878
|
+
.constants
|
|
3879
|
+
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
|
3880
|
+
.first
|
|
3881
|
+
return false unless package_name
|
|
3882
|
+
service_module = Google::Cloud::Compute.const_get package_name
|
|
3883
|
+
return false unless service_module.const_defined? :RegionCompositeHealthChecks
|
|
3884
|
+
service_module = service_module.const_get :RegionCompositeHealthChecks
|
|
3885
|
+
return false unless service_module.const_defined? :Rest
|
|
3886
|
+
service_module = service_module.const_get :Rest
|
|
3887
|
+
service_module.const_defined? :Client
|
|
3888
|
+
rescue ::LoadError
|
|
3889
|
+
false
|
|
3890
|
+
end
|
|
3891
|
+
|
|
3703
3892
|
##
|
|
3704
3893
|
# Create a new client object for RegionDiskTypes.
|
|
3705
3894
|
#
|
|
@@ -4015,6 +4204,132 @@ module Google
|
|
|
4015
4204
|
false
|
|
4016
4205
|
end
|
|
4017
4206
|
|
|
4207
|
+
##
|
|
4208
|
+
# Create a new client object for RegionHealthSources.
|
|
4209
|
+
#
|
|
4210
|
+
# By default, this returns an instance of
|
|
4211
|
+
# [Google::Cloud::Compute::V1::RegionHealthSources::Rest::Client](https://cloud.google.com/ruby/docs/reference/google-cloud-compute-v1/latest/Google-Cloud-Compute-V1-RegionHealthSources-Rest-Client)
|
|
4212
|
+
# for a REST client for version V1 of the API.
|
|
4213
|
+
# However, you can specify a different API version by passing it in the
|
|
4214
|
+
# `version` parameter. If the RegionHealthSources service is
|
|
4215
|
+
# supported by that API version, and the corresponding gem is available, the
|
|
4216
|
+
# appropriate versioned client will be returned.
|
|
4217
|
+
#
|
|
4218
|
+
# Raises an exception if the currently installed versioned client gem for the
|
|
4219
|
+
# given API version does not support the RegionHealthSources service.
|
|
4220
|
+
# You can determine whether the method will succeed by calling
|
|
4221
|
+
# {Google::Cloud::Compute.region_health_sources_available?}.
|
|
4222
|
+
#
|
|
4223
|
+
# ## About RegionHealthSources
|
|
4224
|
+
#
|
|
4225
|
+
# The RegionHealthSources API.
|
|
4226
|
+
#
|
|
4227
|
+
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
|
4228
|
+
# Defaults to `:v1`.
|
|
4229
|
+
# @return [::Object] A client object for the specified version.
|
|
4230
|
+
#
|
|
4231
|
+
def self.region_health_sources version: :v1, &block
|
|
4232
|
+
require "google/cloud/compute/#{version.to_s.downcase}"
|
|
4233
|
+
|
|
4234
|
+
package_name = Google::Cloud::Compute
|
|
4235
|
+
.constants
|
|
4236
|
+
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
|
4237
|
+
.first
|
|
4238
|
+
service_module = Google::Cloud::Compute.const_get(package_name).const_get(:RegionHealthSources)
|
|
4239
|
+
service_module.const_get(:Rest).const_get(:Client).new(&block)
|
|
4240
|
+
end
|
|
4241
|
+
|
|
4242
|
+
##
|
|
4243
|
+
# Determines whether the RegionHealthSources service is supported by the current client.
|
|
4244
|
+
# If true, you can retrieve a client object by calling {Google::Cloud::Compute.region_health_sources}.
|
|
4245
|
+
# If false, that method will raise an exception. This could happen if the given
|
|
4246
|
+
# API version does not exist or does not support the RegionHealthSources service,
|
|
4247
|
+
# or if the versioned client gem needs an update to support the RegionHealthSources service.
|
|
4248
|
+
#
|
|
4249
|
+
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
|
4250
|
+
# Defaults to `:v1`.
|
|
4251
|
+
# @return [boolean] Whether the service is available.
|
|
4252
|
+
#
|
|
4253
|
+
def self.region_health_sources_available? version: :v1
|
|
4254
|
+
require "google/cloud/compute/#{version.to_s.downcase}"
|
|
4255
|
+
package_name = Google::Cloud::Compute
|
|
4256
|
+
.constants
|
|
4257
|
+
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
|
4258
|
+
.first
|
|
4259
|
+
return false unless package_name
|
|
4260
|
+
service_module = Google::Cloud::Compute.const_get package_name
|
|
4261
|
+
return false unless service_module.const_defined? :RegionHealthSources
|
|
4262
|
+
service_module = service_module.const_get :RegionHealthSources
|
|
4263
|
+
return false unless service_module.const_defined? :Rest
|
|
4264
|
+
service_module = service_module.const_get :Rest
|
|
4265
|
+
service_module.const_defined? :Client
|
|
4266
|
+
rescue ::LoadError
|
|
4267
|
+
false
|
|
4268
|
+
end
|
|
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
|
+
|
|
4018
4333
|
##
|
|
4019
4334
|
# Create a new client object for RegionInstanceGroupManagers.
|
|
4020
4335
|
#
|
|
@@ -4267,6 +4582,69 @@ module Google
|
|
|
4267
4582
|
false
|
|
4268
4583
|
end
|
|
4269
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
|
+
|
|
4270
4648
|
##
|
|
4271
4649
|
# Create a new client object for RegionInstantSnapshots.
|
|
4272
4650
|
#
|
|
@@ -4645,6 +5023,132 @@ module Google
|
|
|
4645
5023
|
false
|
|
4646
5024
|
end
|
|
4647
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
|
+
|
|
4648
5152
|
##
|
|
4649
5153
|
# Create a new client object for RegionSslCertificates.
|
|
4650
5154
|
#
|
|
@@ -6976,6 +7480,69 @@ module Google
|
|
|
6976
7480
|
false
|
|
6977
7481
|
end
|
|
6978
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
|
+
|
|
6979
7546
|
##
|
|
6980
7547
|
# Create a new client object for Zones.
|
|
6981
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.
|
|
4
|
+
version: 1.17.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Google LLC
|
|
@@ -62,7 +62,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
62
62
|
requirements:
|
|
63
63
|
- - ">="
|
|
64
64
|
- !ruby/object:Gem::Version
|
|
65
|
-
version: '3.
|
|
65
|
+
version: '3.2'
|
|
66
66
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
67
67
|
requirements:
|
|
68
68
|
- - ">="
|