lib/fog/azurerm/models/storage/storage_account.rb in fog-azure-rm-temp-0.0.4 vs lib/fog/azurerm/models/storage/storage_account.rb in fog-azure-rm-temp-0.0.5
- old
+ new
@@ -9,20 +9,22 @@
attribute :location
attribute :resource_group
attribute :sku_name
attribute :replication
attribute :encryption
+ attribute :tags
def self.parse(storage_account)
hash = {}
hash['id'] = storage_account.id
hash['name'] = storage_account.name
hash['location'] = storage_account.location
hash['resource_group'] = get_resource_group_from_id(storage_account.id)
hash['sku_name'] = storage_account.sku.name.split('_').first
hash['replication'] = storage_account.sku.name.split('_').last
hash['encryption'] = storage_account.encryption.services.blob.enabled unless storage_account.encryption.nil?
+ hash['tags'] = storage_account.tags
hash
end
def save
requires :name
@@ -41,10 +43,11 @@
resource_group: resource_group,
name: name,
sku_name: sku_name,
location: location,
replication: replication,
- encryption: encryption
+ encryption: encryption,
+ tags: tags
}
end
def update(storage_account_params)
validate_input(storage_account_params)