lib/fog/azurerm/models/storage/storage_accounts.rb in gitlab-fog-azure-rm-1.8.0 vs lib/fog/azurerm/models/storage/storage_accounts.rb in gitlab-fog-azure-rm-1.9.0
- old
+ new
@@ -1,12 +1,12 @@
module Fog
- module Storage
- class AzureRM
+ module AzureRM
+ class Storage
# This class is giving implementation of all/list, get and
# check name availability for storage account.
class StorageAccounts < Fog::Collection
- model Fog::Storage::AzureRM::StorageAccount
+ model Fog::AzureRM::Storage::StorageAccount
attribute :resource_group
def all
accounts = []
if !resource_group.nil?
@@ -14,18 +14,18 @@
hash_of_storage_accounts = service.list_storage_account_for_rg(resource_group)
else
hash_of_storage_accounts = service.list_storage_accounts
end
hash_of_storage_accounts.each do |account|
- accounts << Fog::Storage::AzureRM::StorageAccount.parse(account)
+ accounts << Fog::AzureRM::Storage::StorageAccount.parse(account)
end
load(accounts)
end
def get(resource_group_name, storage_account_name)
storage_account = service.get_storage_account(resource_group_name, storage_account_name)
- storage_account_fog = Fog::Storage::AzureRM::StorageAccount.new(service: service)
- storage_account_fog.merge_attributes(Fog::Storage::AzureRM::StorageAccount.parse(storage_account))
+ storage_account_fog = Fog::AzureRM::Storage::StorageAccount.new(service: service)
+ storage_account_fog.merge_attributes(Fog::AzureRM::Storage::StorageAccount.parse(storage_account))
end
def check_name_availability(name, type = 'Microsoft.Storage/storageAccounts')
service.check_storage_account_name_availability(name, type)
end