google-cloud-compute 1.14.0 → 1.15.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 +126 -0
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 32f8e016138be6f456ec5ef348abf73f69896b39815c700570a73726fca2afba
|
|
4
|
+
data.tar.gz: d095a5dcfffff5d43014bcbc6191e65ded31eb9a4c23f04b25f130763348b9e5
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6a499757560641c93f77925892111316752341c9f4f9e51a94538705e3839aba9aa5a4abe5899938ac7394d3786d768c02cfd00bf20acb283dc517c83e93da81
|
|
7
|
+
data.tar.gz: c362b33c9af1864d5ad614e012b550dc344357b9f2ed3f48da49d0414292b7e2d06fb56f82c0dfc11ea1d88d41a9d14df7e8c83dcd9651c018b7c59afb1b75c8
|
data/lib/google/cloud/compute.rb
CHANGED
|
@@ -3826,6 +3826,69 @@ module Google
|
|
|
3826
3826
|
false
|
|
3827
3827
|
end
|
|
3828
3828
|
|
|
3829
|
+
##
|
|
3830
|
+
# Create a new client object for RegionHealthAggregationPolicies.
|
|
3831
|
+
#
|
|
3832
|
+
# By default, this returns an instance of
|
|
3833
|
+
# [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)
|
|
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 RegionHealthAggregationPolicies 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 RegionHealthAggregationPolicies service.
|
|
3842
|
+
# You can determine whether the method will succeed by calling
|
|
3843
|
+
# {Google::Cloud::Compute.region_health_aggregation_policies_available?}.
|
|
3844
|
+
#
|
|
3845
|
+
# ## About RegionHealthAggregationPolicies
|
|
3846
|
+
#
|
|
3847
|
+
# The RegionHealthAggregationPolicies 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_health_aggregation_policies 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(:RegionHealthAggregationPolicies)
|
|
3861
|
+
service_module.const_get(:Rest).const_get(:Client).new(&block)
|
|
3862
|
+
end
|
|
3863
|
+
|
|
3864
|
+
##
|
|
3865
|
+
# Determines whether the RegionHealthAggregationPolicies service is supported by the current client.
|
|
3866
|
+
# If true, you can retrieve a client object by calling {Google::Cloud::Compute.region_health_aggregation_policies}.
|
|
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 RegionHealthAggregationPolicies service,
|
|
3869
|
+
# or if the versioned client gem needs an update to support the RegionHealthAggregationPolicies 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_health_aggregation_policies_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? :RegionHealthAggregationPolicies
|
|
3884
|
+
service_module = service_module.const_get :RegionHealthAggregationPolicies
|
|
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
|
+
|
|
3829
3892
|
##
|
|
3830
3893
|
# Create a new client object for RegionHealthCheckServices.
|
|
3831
3894
|
#
|
|
@@ -5149,6 +5212,69 @@ module Google
|
|
|
5149
5212
|
false
|
|
5150
5213
|
end
|
|
5151
5214
|
|
|
5215
|
+
##
|
|
5216
|
+
# Create a new client object for ReservationSlots.
|
|
5217
|
+
#
|
|
5218
|
+
# By default, this returns an instance of
|
|
5219
|
+
# [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)
|
|
5220
|
+
# for a REST client for version V1 of the API.
|
|
5221
|
+
# However, you can specify a different API version by passing it in the
|
|
5222
|
+
# `version` parameter. If the ReservationSlots service is
|
|
5223
|
+
# supported by that API version, and the corresponding gem is available, the
|
|
5224
|
+
# appropriate versioned client will be returned.
|
|
5225
|
+
#
|
|
5226
|
+
# Raises an exception if the currently installed versioned client gem for the
|
|
5227
|
+
# given API version does not support the ReservationSlots service.
|
|
5228
|
+
# You can determine whether the method will succeed by calling
|
|
5229
|
+
# {Google::Cloud::Compute.reservation_slots_available?}.
|
|
5230
|
+
#
|
|
5231
|
+
# ## About ReservationSlots
|
|
5232
|
+
#
|
|
5233
|
+
# The ReservationSlots API.
|
|
5234
|
+
#
|
|
5235
|
+
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
|
5236
|
+
# Defaults to `:v1`.
|
|
5237
|
+
# @return [::Object] A client object for the specified version.
|
|
5238
|
+
#
|
|
5239
|
+
def self.reservation_slots version: :v1, &block
|
|
5240
|
+
require "google/cloud/compute/#{version.to_s.downcase}"
|
|
5241
|
+
|
|
5242
|
+
package_name = Google::Cloud::Compute
|
|
5243
|
+
.constants
|
|
5244
|
+
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
|
5245
|
+
.first
|
|
5246
|
+
service_module = Google::Cloud::Compute.const_get(package_name).const_get(:ReservationSlots)
|
|
5247
|
+
service_module.const_get(:Rest).const_get(:Client).new(&block)
|
|
5248
|
+
end
|
|
5249
|
+
|
|
5250
|
+
##
|
|
5251
|
+
# Determines whether the ReservationSlots service is supported by the current client.
|
|
5252
|
+
# If true, you can retrieve a client object by calling {Google::Cloud::Compute.reservation_slots}.
|
|
5253
|
+
# If false, that method will raise an exception. This could happen if the given
|
|
5254
|
+
# API version does not exist or does not support the ReservationSlots service,
|
|
5255
|
+
# or if the versioned client gem needs an update to support the ReservationSlots service.
|
|
5256
|
+
#
|
|
5257
|
+
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
|
5258
|
+
# Defaults to `:v1`.
|
|
5259
|
+
# @return [boolean] Whether the service is available.
|
|
5260
|
+
#
|
|
5261
|
+
def self.reservation_slots_available? version: :v1
|
|
5262
|
+
require "google/cloud/compute/#{version.to_s.downcase}"
|
|
5263
|
+
package_name = Google::Cloud::Compute
|
|
5264
|
+
.constants
|
|
5265
|
+
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
|
5266
|
+
.first
|
|
5267
|
+
return false unless package_name
|
|
5268
|
+
service_module = Google::Cloud::Compute.const_get package_name
|
|
5269
|
+
return false unless service_module.const_defined? :ReservationSlots
|
|
5270
|
+
service_module = service_module.const_get :ReservationSlots
|
|
5271
|
+
return false unless service_module.const_defined? :Rest
|
|
5272
|
+
service_module = service_module.const_get :Rest
|
|
5273
|
+
service_module.const_defined? :Client
|
|
5274
|
+
rescue ::LoadError
|
|
5275
|
+
false
|
|
5276
|
+
end
|
|
5277
|
+
|
|
5152
5278
|
##
|
|
5153
5279
|
# Create a new client object for ReservationSubBlocks.
|
|
5154
5280
|
#
|