google-cloud-compute 1.15.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 +126 -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
|
#
|
|
@@ -4015,6 +4078,69 @@ module Google
|
|
|
4015
4078
|
false
|
|
4016
4079
|
end
|
|
4017
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
|
+
|
|
4018
4144
|
##
|
|
4019
4145
|
# Create a new client object for RegionInstanceGroupManagers.
|
|
4020
4146
|
#
|
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
|
- - ">="
|