Sha256: 5799ca0fffccbe2e68cbdbe2aee1a8f7620293d7492629e8daf1bdc9bdbd113a

Contents?: true

Size: 787 Bytes

Versions: 20

Compression:

Stored size: 787 Bytes

Contents

module Fog
  module Compute
    class Google
      class Mock
        def remove_target_pool_health_checks(_target_pool, _region, _health_checks)
          Fog::Mock.not_implemented
        end
      end

      class Real
        def remove_target_pool_health_checks(target_pool, region, health_checks)
          health_check_lst = health_checks.map do |hc|
            ::Google::Apis::ComputeV1::HealthCheckReference.new(:health_check => hc)
          end

          @compute.remove_target_pool_health_check(
            @project,
            region.split("/")[-1],
            target_pool,
            ::Google::Apis::ComputeV1::RemoveTargetPoolsHealthCheckRequest.new(
              :health_checks => health_check_lst
            )
          )
        end
      end
    end
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
fog-google-1.9.1 lib/fog/compute/google/requests/remove_target_pool_health_checks.rb
fog-google-1.9.0 lib/fog/compute/google/requests/remove_target_pool_health_checks.rb
fog-google-1.8.2 lib/fog/compute/google/requests/remove_target_pool_health_checks.rb
fog-google-1.8.1 lib/fog/compute/google/requests/remove_target_pool_health_checks.rb
fog-google-1.8.0 lib/fog/compute/google/requests/remove_target_pool_health_checks.rb
fog-google-1.7.1 lib/fog/compute/google/requests/remove_target_pool_health_checks.rb
fog-google-1.7.0 lib/fog/compute/google/requests/remove_target_pool_health_checks.rb
fog-google-1.6.0 lib/fog/compute/google/requests/remove_target_pool_health_checks.rb
fog-google-1.5.0 lib/fog/compute/google/requests/remove_target_pool_health_checks.rb
fog-google-1.4.0 lib/fog/compute/google/requests/remove_target_pool_health_checks.rb
fog-google-1.3.3 lib/fog/compute/google/requests/remove_target_pool_health_checks.rb
fog-google-1.3.2 lib/fog/compute/google/requests/remove_target_pool_health_checks.rb
fog-google-1.3.1 lib/fog/compute/google/requests/remove_target_pool_health_checks.rb
fog-google-1.3.0 lib/fog/compute/google/requests/remove_target_pool_health_checks.rb
fog-google-1.2.2 lib/fog/compute/google/requests/remove_target_pool_health_checks.rb
fog-google-1.2.1 lib/fog/compute/google/requests/remove_target_pool_health_checks.rb
fog-google-1.2.0 lib/fog/compute/google/requests/remove_target_pool_health_checks.rb
fog-google-1.1.0 lib/fog/compute/google/requests/remove_target_pool_health_checks.rb
fog-google-1.0.1 lib/fog/compute/google/requests/remove_target_pool_health_checks.rb
fog-google-1.0.0 lib/fog/compute/google/requests/remove_target_pool_health_checks.rb