Sha256: 785a30b3ccc21580ceed6c75aa9338002f64c2c89e5071b3b62693f5b653b76c

Contents?: true

Size: 572 Bytes

Versions: 22

Compression:

Stored size: 572 Bytes

Contents

require 'rubygems'
require 'fog'

def test
  connection = Fog::Compute.new({:provider => "google"})
  health = connection.http_health_checks.create({
    :name => 'test-checks'
  })
  health.wait_for { health.ready? }
  backend= connection.backend_services.create({
    :name => 'backend-test',
    :health_checks => [health.self_link],
    :port => 8080,
    :timeout_sec => 40,
    :backends => [{'group' => 'resource_view self_link'}]
  })
  puts connection.backend_services.all
  backend= connection.backend_services.get('backend-test')
  backend.get_health
end

test

Version data entries

22 entries across 20 versions & 5 rubygems

Version Path
vagrant-packet-0.1.1 vendor/bundle/ruby/2.5.0/gems/fog-google-0.1.0/examples/backend_services.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.4.0/gems/fog-google-0.1.0/examples/backend_services.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.3.0/gems/fog-google-0.1.0/examples/backend_services.rb
fog-google-0.1.3 examples/backend_services.rb
fog-google-0.1.2 examples/backend_services.rb
fog-google-0.1.1 examples/backend_services.rb
fog-google-0.1.0 examples/backend_services.rb
fog-google-0.0.9 examples/backend_services.rb
vagrant-cloudstack-1.2.0 vendor/bundle/gems/fog-google-0.0.7/examples/backend_services.rb
fog-google-0.0.7 examples/backend_services.rb
fog-google-0.0.6 examples/backend_services.rb
fog-google-0.0.5 examples/backend_services.rb
fog-google-0.0.4 examples/backend_services.rb
fog-google-0.0.3 examples/backend_services.rb
fog-google-0.0.2 examples/backend_services.rb
fog-1.29.0 lib/fog/google/examples/backend_services.rb
fog-1.28.0 lib/fog/google/examples/backend_services.rb
fog-1.27.0 lib/fog/google/examples/backend_services.rb
fog-1.26.0 lib/fog/google/examples/backend_services.rb
fog-1.25.0 lib/fog/google/examples/backend_services.rb