Sha256: 4a1f21e2f43175d72dff225a5bb23ac1f142f8dda741699dd475a62f18a2e0be

Contents?: true

Size: 811 Bytes

Versions: 20

Compression:

Stored size: 811 Bytes

Contents

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

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

          @compute.add_target_pool_health_check(
            @project,
            region.split("/")[-1],
            target_pool,
            ::Google::Apis::ComputeV1::AddTargetPoolsHealthCheckRequest.new(
              :health_checks => check_list
            )
          )
        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/add_target_pool_health_checks.rb
fog-google-1.9.0 lib/fog/compute/google/requests/add_target_pool_health_checks.rb
fog-google-1.8.2 lib/fog/compute/google/requests/add_target_pool_health_checks.rb
fog-google-1.8.1 lib/fog/compute/google/requests/add_target_pool_health_checks.rb
fog-google-1.8.0 lib/fog/compute/google/requests/add_target_pool_health_checks.rb
fog-google-1.7.1 lib/fog/compute/google/requests/add_target_pool_health_checks.rb
fog-google-1.7.0 lib/fog/compute/google/requests/add_target_pool_health_checks.rb
fog-google-1.6.0 lib/fog/compute/google/requests/add_target_pool_health_checks.rb
fog-google-1.5.0 lib/fog/compute/google/requests/add_target_pool_health_checks.rb
fog-google-1.4.0 lib/fog/compute/google/requests/add_target_pool_health_checks.rb
fog-google-1.3.3 lib/fog/compute/google/requests/add_target_pool_health_checks.rb
fog-google-1.3.2 lib/fog/compute/google/requests/add_target_pool_health_checks.rb
fog-google-1.3.1 lib/fog/compute/google/requests/add_target_pool_health_checks.rb
fog-google-1.3.0 lib/fog/compute/google/requests/add_target_pool_health_checks.rb
fog-google-1.2.2 lib/fog/compute/google/requests/add_target_pool_health_checks.rb
fog-google-1.2.1 lib/fog/compute/google/requests/add_target_pool_health_checks.rb
fog-google-1.2.0 lib/fog/compute/google/requests/add_target_pool_health_checks.rb
fog-google-1.1.0 lib/fog/compute/google/requests/add_target_pool_health_checks.rb
fog-google-1.0.1 lib/fog/compute/google/requests/add_target_pool_health_checks.rb
fog-google-1.0.0 lib/fog/compute/google/requests/add_target_pool_health_checks.rb