Sha256: bd70e8f6cac0bed1438430e048c806afd43980c3f8c1d3e91e429214bd7d00bd

Contents?: true

Size: 582 Bytes

Versions: 14

Compression:

Stored size: 582 Bytes

Contents

def test
  connection = Fog::Google::SQL.new

  puts "Create a Instance..."
  puts "--------------------"
  instance = connection.instances.create(:instance => Fog::Mock.random_letters(16), :tier => "D1")
  instance.wait_for { ready? }

  puts "Delete the Instance..."
  puts "----------------------"
  operation = instance.destroy

  puts "Get the Operation..."
  puts "--------------------"
  connection.operations.get(instance.identity, operation.identity)

  puts "Listing all Operations..."
  puts "-------------------------"
  connection.operations.all(instance.identity)
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
fog-google-0.6.0 examples/sql/operations.rb
fog-google-0.5.5 examples/sql/operations.rb
fog-google-0.5.4 examples/sql/operations.rb
fog-google-0.5.3 examples/sql/operations.rb
fog-google-0.5.2 examples/sql/operations.rb
fog-google-0.5.1 examples/sql/operations.rb
fog-google-0.5.0 examples/sql/operations.rb
fog-google-0.4.2 examples/sql/operations.rb
fog-google-0.4.1 examples/sql/operations.rb
fog-google-0.4.0 examples/sql/operations.rb
fog-google-0.3.2 examples/sql/operations.rb
fog-google-0.3.1 examples/sql/operations.rb
fog-google-0.3.0 examples/sql/operations.rb
fog-google-0.2.0 examples/sql/operations.rb