Class: Fog::Compute::Azure::Databases

Inherits:
Fog::Collection
  • Object
show all
Defined in:
lib/fog/azure/models/compute/databases.rb

Instance Method Summary collapse

Instance Method Details

#allObject



31
32
33
34
35
36
37
38
39
40
41
# File 'lib/fog/azure/models/compute/databases.rb', line 31

def all()
  databases = []
  service.list_databases.each do ||
    hash = {}
    .instance_variables.each do |var|
      hash[var.to_s.delete("@")] = .instance_variable_get(var)
    end
    databases << hash
  end
  load(databases)
end

#create(login, password, location) ⇒ Object



43
44
45
# File 'lib/fog/azure/models/compute/databases.rb', line 43

def create(, password, location)
  service.create_database_server(, password, location)
end