google-cloud-compute 1.14.0 → 1.16.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 +252 -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: 228df5d4d5db06e30c713a96004ce59b592a15b335414e0559c68e203ab8a7c7
|
|
4
|
+
data.tar.gz: 2471e5bf287d0393a021e1b1433561933e3639705cc35c4570ddace5d7f3c7dd
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 376614f257109addcc954dae4fdad63c340b368f04b2a90e8a9b54e38a4c95acd59bbe25903799f8e789c59fbca4c1d64fa6aa6add9c8fcf95c4adc1241f3af4
|
|
7
|
+
data.tar.gz: 17ba53ffccfe4ee76bb3585b8c5895c40c4b86853ba8351505f6147862e2e146d1fa6eb93d34be38de4ca5d7ed57284f562b2e1f010696b28029313d1ea7cd1d
|
data/lib/google/cloud/compute.rb
CHANGED
|
@@ -3700,6 +3700,69 @@ module Google
|
|
|
3700
3700
|
false
|
|
3701
3701
|
end
|
|
3702
3702
|
|
|
3703
|
+
##
|
|
3704
|
+
# Create a new client object for RegionCompositeHealthChecks.
|
|
3705
|
+
#
|
|
3706
|
+
# By default, this returns an instance of
|
|
3707
|
+
# [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)
|
|
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 RegionCompositeHealthChecks 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 RegionCompositeHealthChecks service.
|
|
3716
|
+
# You can determine whether the method will succeed by calling
|
|
3717
|
+
# {Google::Cloud::Compute.region_composite_health_checks_available?}.
|
|
3718
|
+
#
|
|
3719
|
+
# ## About RegionCompositeHealthChecks
|
|
3720
|
+
#
|
|
3721
|
+
# The RegionCompositeHealthChecks 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_composite_health_checks 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(:RegionCompositeHealthChecks)
|
|
3735
|
+
service_module.const_get(:Rest).const_get(:Client).new(&block)
|
|
3736
|
+
end
|
|
3737
|
+
|
|
3738
|
+
##
|
|
3739
|
+
# Determines whether the RegionCompositeHealthChecks service is supported by the current client.
|
|
3740
|
+
# If true, you can retrieve a client object by calling {Google::Cloud::Compute.region_composite_health_checks}.
|
|
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 RegionCompositeHealthChecks service,
|
|
3743
|
+
# or if the versioned client gem needs an update to support the RegionCompositeHealthChecks 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_composite_health_checks_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? :RegionCompositeHealthChecks
|
|
3758
|
+
service_module = service_module.const_get :RegionCompositeHealthChecks
|
|
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
|
+
|
|
3703
3766
|
##
|
|
3704
3767
|
# Create a new client object for RegionDiskTypes.
|
|
3705
3768
|
#
|
|
@@ -3826,6 +3889,69 @@ module Google
|
|
|
3826
3889
|
false
|
|
3827
3890
|
end
|
|
3828
3891
|
|
|
3892
|
+
##
|
|
3893
|
+
# Create a new client object for RegionHealthAggregationPolicies.
|
|
3894
|
+
#
|
|
3895
|
+
# By default, this returns an instance of
|
|
3896
|
+
# [Google::Cloud::Compute::V1::RegionHealthAggregationPolicies::Rest::Client](https://cloud.google.com/ruby/docs/reference/google-cloud-compute-v1/latest/Google-Cloud-Compute-V1-RegionHealthAggregationPolicies-Rest-Client)
|
|
3897
|
+
# for a REST client for version V1 of the API.
|
|
3898
|
+
# However, you can specify a different API version by passing it in the
|
|
3899
|
+
# `version` parameter. If the RegionHealthAggregationPolicies service is
|
|
3900
|
+
# supported by that API version, and the corresponding gem is available, the
|
|
3901
|
+
# appropriate versioned client will be returned.
|
|
3902
|
+
#
|
|
3903
|
+
# Raises an exception if the currently installed versioned client gem for the
|
|
3904
|
+
# given API version does not support the RegionHealthAggregationPolicies service.
|
|
3905
|
+
# You can determine whether the method will succeed by calling
|
|
3906
|
+
# {Google::Cloud::Compute.region_health_aggregation_policies_available?}.
|
|
3907
|
+
#
|
|
3908
|
+
# ## About RegionHealthAggregationPolicies
|
|
3909
|
+
#
|
|
3910
|
+
# The RegionHealthAggregationPolicies API.
|
|
3911
|
+
#
|
|
3912
|
+
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
|
3913
|
+
# Defaults to `:v1`.
|
|
3914
|
+
# @return [::Object] A client object for the specified version.
|
|
3915
|
+
#
|
|
3916
|
+
def self.region_health_aggregation_policies version: :v1, &block
|
|
3917
|
+
require "google/cloud/compute/#{version.to_s.downcase}"
|
|
3918
|
+
|
|
3919
|
+
package_name = Google::Cloud::Compute
|
|
3920
|
+
.constants
|
|
3921
|
+
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
|
3922
|
+
.first
|
|
3923
|
+
service_module = Google::Cloud::Compute.const_get(package_name).const_get(:RegionHealthAggregationPolicies)
|
|
3924
|
+
service_module.const_get(:Rest).const_get(:Client).new(&block)
|
|
3925
|
+
end
|
|
3926
|
+
|
|
3927
|
+
##
|
|
3928
|
+
# Determines whether the RegionHealthAggregationPolicies service is supported by the current client.
|
|
3929
|
+
# If true, you can retrieve a client object by calling {Google::Cloud::Compute.region_health_aggregation_policies}.
|
|
3930
|
+
# If false, that method will raise an exception. This could happen if the given
|
|
3931
|
+
# API version does not exist or does not support the RegionHealthAggregationPolicies service,
|
|
3932
|
+
# or if the versioned client gem needs an update to support the RegionHealthAggregationPolicies service.
|
|
3933
|
+
#
|
|
3934
|
+
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
|
3935
|
+
# Defaults to `:v1`.
|
|
3936
|
+
# @return [boolean] Whether the service is available.
|
|
3937
|
+
#
|
|
3938
|
+
def self.region_health_aggregation_policies_available? version: :v1
|
|
3939
|
+
require "google/cloud/compute/#{version.to_s.downcase}"
|
|
3940
|
+
package_name = Google::Cloud::Compute
|
|
3941
|
+
.constants
|
|
3942
|
+
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
|
3943
|
+
.first
|
|
3944
|
+
return false unless package_name
|
|
3945
|
+
service_module = Google::Cloud::Compute.const_get package_name
|
|
3946
|
+
return false unless service_module.const_defined? :RegionHealthAggregationPolicies
|
|
3947
|
+
service_module = service_module.const_get :RegionHealthAggregationPolicies
|
|
3948
|
+
return false unless service_module.const_defined? :Rest
|
|
3949
|
+
service_module = service_module.const_get :Rest
|
|
3950
|
+
service_module.const_defined? :Client
|
|
3951
|
+
rescue ::LoadError
|
|
3952
|
+
false
|
|
3953
|
+
end
|
|
3954
|
+
|
|
3829
3955
|
##
|
|
3830
3956
|
# Create a new client object for RegionHealthCheckServices.
|
|
3831
3957
|
#
|
|
@@ -3952,6 +4078,69 @@ module Google
|
|
|
3952
4078
|
false
|
|
3953
4079
|
end
|
|
3954
4080
|
|
|
4081
|
+
##
|
|
4082
|
+
# Create a new client object for RegionHealthSources.
|
|
4083
|
+
#
|
|
4084
|
+
# By default, this returns an instance of
|
|
4085
|
+
# [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)
|
|
4086
|
+
# for a REST client for version V1 of the API.
|
|
4087
|
+
# However, you can specify a different API version by passing it in the
|
|
4088
|
+
# `version` parameter. If the RegionHealthSources service is
|
|
4089
|
+
# supported by that API version, and the corresponding gem is available, the
|
|
4090
|
+
# appropriate versioned client will be returned.
|
|
4091
|
+
#
|
|
4092
|
+
# Raises an exception if the currently installed versioned client gem for the
|
|
4093
|
+
# given API version does not support the RegionHealthSources service.
|
|
4094
|
+
# You can determine whether the method will succeed by calling
|
|
4095
|
+
# {Google::Cloud::Compute.region_health_sources_available?}.
|
|
4096
|
+
#
|
|
4097
|
+
# ## About RegionHealthSources
|
|
4098
|
+
#
|
|
4099
|
+
# The RegionHealthSources API.
|
|
4100
|
+
#
|
|
4101
|
+
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
|
4102
|
+
# Defaults to `:v1`.
|
|
4103
|
+
# @return [::Object] A client object for the specified version.
|
|
4104
|
+
#
|
|
4105
|
+
def self.region_health_sources version: :v1, &block
|
|
4106
|
+
require "google/cloud/compute/#{version.to_s.downcase}"
|
|
4107
|
+
|
|
4108
|
+
package_name = Google::Cloud::Compute
|
|
4109
|
+
.constants
|
|
4110
|
+
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
|
4111
|
+
.first
|
|
4112
|
+
service_module = Google::Cloud::Compute.const_get(package_name).const_get(:RegionHealthSources)
|
|
4113
|
+
service_module.const_get(:Rest).const_get(:Client).new(&block)
|
|
4114
|
+
end
|
|
4115
|
+
|
|
4116
|
+
##
|
|
4117
|
+
# Determines whether the RegionHealthSources service is supported by the current client.
|
|
4118
|
+
# If true, you can retrieve a client object by calling {Google::Cloud::Compute.region_health_sources}.
|
|
4119
|
+
# If false, that method will raise an exception. This could happen if the given
|
|
4120
|
+
# API version does not exist or does not support the RegionHealthSources service,
|
|
4121
|
+
# or if the versioned client gem needs an update to support the RegionHealthSources service.
|
|
4122
|
+
#
|
|
4123
|
+
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
|
4124
|
+
# Defaults to `:v1`.
|
|
4125
|
+
# @return [boolean] Whether the service is available.
|
|
4126
|
+
#
|
|
4127
|
+
def self.region_health_sources_available? version: :v1
|
|
4128
|
+
require "google/cloud/compute/#{version.to_s.downcase}"
|
|
4129
|
+
package_name = Google::Cloud::Compute
|
|
4130
|
+
.constants
|
|
4131
|
+
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
|
4132
|
+
.first
|
|
4133
|
+
return false unless package_name
|
|
4134
|
+
service_module = Google::Cloud::Compute.const_get package_name
|
|
4135
|
+
return false unless service_module.const_defined? :RegionHealthSources
|
|
4136
|
+
service_module = service_module.const_get :RegionHealthSources
|
|
4137
|
+
return false unless service_module.const_defined? :Rest
|
|
4138
|
+
service_module = service_module.const_get :Rest
|
|
4139
|
+
service_module.const_defined? :Client
|
|
4140
|
+
rescue ::LoadError
|
|
4141
|
+
false
|
|
4142
|
+
end
|
|
4143
|
+
|
|
3955
4144
|
##
|
|
3956
4145
|
# Create a new client object for RegionInstanceGroupManagers.
|
|
3957
4146
|
#
|
|
@@ -5149,6 +5338,69 @@ module Google
|
|
|
5149
5338
|
false
|
|
5150
5339
|
end
|
|
5151
5340
|
|
|
5341
|
+
##
|
|
5342
|
+
# Create a new client object for ReservationSlots.
|
|
5343
|
+
#
|
|
5344
|
+
# By default, this returns an instance of
|
|
5345
|
+
# [Google::Cloud::Compute::V1::ReservationSlots::Rest::Client](https://cloud.google.com/ruby/docs/reference/google-cloud-compute-v1/latest/Google-Cloud-Compute-V1-ReservationSlots-Rest-Client)
|
|
5346
|
+
# for a REST client for version V1 of the API.
|
|
5347
|
+
# However, you can specify a different API version by passing it in the
|
|
5348
|
+
# `version` parameter. If the ReservationSlots service is
|
|
5349
|
+
# supported by that API version, and the corresponding gem is available, the
|
|
5350
|
+
# appropriate versioned client will be returned.
|
|
5351
|
+
#
|
|
5352
|
+
# Raises an exception if the currently installed versioned client gem for the
|
|
5353
|
+
# given API version does not support the ReservationSlots service.
|
|
5354
|
+
# You can determine whether the method will succeed by calling
|
|
5355
|
+
# {Google::Cloud::Compute.reservation_slots_available?}.
|
|
5356
|
+
#
|
|
5357
|
+
# ## About ReservationSlots
|
|
5358
|
+
#
|
|
5359
|
+
# The ReservationSlots API.
|
|
5360
|
+
#
|
|
5361
|
+
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
|
5362
|
+
# Defaults to `:v1`.
|
|
5363
|
+
# @return [::Object] A client object for the specified version.
|
|
5364
|
+
#
|
|
5365
|
+
def self.reservation_slots version: :v1, &block
|
|
5366
|
+
require "google/cloud/compute/#{version.to_s.downcase}"
|
|
5367
|
+
|
|
5368
|
+
package_name = Google::Cloud::Compute
|
|
5369
|
+
.constants
|
|
5370
|
+
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
|
5371
|
+
.first
|
|
5372
|
+
service_module = Google::Cloud::Compute.const_get(package_name).const_get(:ReservationSlots)
|
|
5373
|
+
service_module.const_get(:Rest).const_get(:Client).new(&block)
|
|
5374
|
+
end
|
|
5375
|
+
|
|
5376
|
+
##
|
|
5377
|
+
# Determines whether the ReservationSlots service is supported by the current client.
|
|
5378
|
+
# If true, you can retrieve a client object by calling {Google::Cloud::Compute.reservation_slots}.
|
|
5379
|
+
# If false, that method will raise an exception. This could happen if the given
|
|
5380
|
+
# API version does not exist or does not support the ReservationSlots service,
|
|
5381
|
+
# or if the versioned client gem needs an update to support the ReservationSlots service.
|
|
5382
|
+
#
|
|
5383
|
+
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
|
5384
|
+
# Defaults to `:v1`.
|
|
5385
|
+
# @return [boolean] Whether the service is available.
|
|
5386
|
+
#
|
|
5387
|
+
def self.reservation_slots_available? version: :v1
|
|
5388
|
+
require "google/cloud/compute/#{version.to_s.downcase}"
|
|
5389
|
+
package_name = Google::Cloud::Compute
|
|
5390
|
+
.constants
|
|
5391
|
+
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
|
5392
|
+
.first
|
|
5393
|
+
return false unless package_name
|
|
5394
|
+
service_module = Google::Cloud::Compute.const_get package_name
|
|
5395
|
+
return false unless service_module.const_defined? :ReservationSlots
|
|
5396
|
+
service_module = service_module.const_get :ReservationSlots
|
|
5397
|
+
return false unless service_module.const_defined? :Rest
|
|
5398
|
+
service_module = service_module.const_get :Rest
|
|
5399
|
+
service_module.const_defined? :Client
|
|
5400
|
+
rescue ::LoadError
|
|
5401
|
+
false
|
|
5402
|
+
end
|
|
5403
|
+
|
|
5152
5404
|
##
|
|
5153
5405
|
# Create a new client object for ReservationSubBlocks.
|
|
5154
5406
|
#
|
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.16.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
|
- - ">="
|