Sha256: b7763f50e272027ceda2b9158bfcf42fb38dfdb5ca544e8c2264af8b5ed87fa4

Contents?: true

Size: 1.02 KB

Versions: 22

Compression:

Stored size: 1.02 KB

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 'Get the Instance...'
  puts '----------------------'
  connection.instances.get(instance.instance)

  puts 'List all Instances...'
  puts '---------------------'
  connection.instances.all

  puts 'Update the Instance...'
  puts '----------------------'
  instance.activation_policy = 'ALWAYS'
  instance.update
  instance.wait_for { ready? }

  puts 'Reset the Instance SSL configuration...'
  puts '---------------------------------------'
  instance.reset_ssl_config

  puts 'Restart the Instance...'
  puts '-----------------------'
  instance.restart

  puts 'Set the Instance root password...'
  puts '---------------------------------'
  instance.set_root_password(Fog::Mock.random_letters_and_numbers(8))

  puts 'Delete the Instance...'
  puts '----------------------'
  instance.destroy
end

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/sql/instances.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.4.0/gems/fog-google-0.1.0/examples/sql/instances.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.3.0/gems/fog-google-0.1.0/examples/sql/instances.rb
fog-google-0.1.3 examples/sql/instances.rb
fog-google-0.1.2 examples/sql/instances.rb
fog-google-0.1.1 examples/sql/instances.rb
fog-google-0.1.0 examples/sql/instances.rb
fog-google-0.0.9 examples/sql/instances.rb
vagrant-cloudstack-1.2.0 vendor/bundle/gems/fog-google-0.0.7/examples/sql/instances.rb
fog-google-0.0.7 examples/sql/instances.rb
fog-google-0.0.6 examples/sql/instances.rb
fog-google-0.0.5 examples/sql/instances.rb
fog-google-0.0.4 examples/sql/instances.rb
fog-google-0.0.3 examples/sql/instances.rb
fog-google-0.0.2 examples/sql/instances.rb
fog-1.29.0 lib/fog/google/examples/sql/instances.rb
fog-1.28.0 lib/fog/google/examples/sql/instances.rb
fog-1.27.0 lib/fog/google/examples/sql/instances.rb
fog-1.26.0 lib/fog/google/examples/sql/instances.rb
fog-1.25.0 lib/fog/google/examples/sql/instances.rb