Class: Fog::Compute::Azure::StorageAccount

Inherits:
Model
  • Object
show all
Defined in:
lib/fog/azure/models/compute/storage_account.rb

Instance Method Summary collapse

Instance Method Details

#destroyObject



63
64
65
66
# File 'lib/fog/azure/models/compute/storage_account.rb', line 63

def destroy
  requires :name
  service.(name)
end

#saveObject



47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# File 'lib/fog/azure/models/compute/storage_account.rb', line 47

def save
  requires :name
  requires_one :location, :affinity_group

  options = {
    :label => label,
    :location => location,
    :description => description,
    :affinity_group_name => affinity_group,
    :geo_replication_enabled => geo_replication_enabled,
    :extended_properties => extended_properties,
  }

  service.(name, options)
end