lib/fog/azurerm/models/storage/directories.rb in gitlab-fog-azure-rm-1.8.0 vs lib/fog/azurerm/models/storage/directories.rb in gitlab-fog-azure-rm-1.9.0

- old
+ new

@@ -1,17 +1,17 @@ module Fog - module Storage - class AzureRM + module AzureRM + class Storage # This class is giving implementation of listing containers. class Directories < Fog::Collection include Fog::AzureRM::Utilities::General - model Fog::Storage::AzureRM::Directory + model Fog::AzureRM::Storage::Directory # List all directories(containers) in the storage account. # - # @return [Fog::Storage::AzureRM::Directories] + # @return [Fog::AzureRM::Storage::Directories] # def all containers = service.list_containers data = [] containers.each do |container| @@ -33,11 +33,11 @@ # as a placeholder for all files whose names begin with the same substring up to the appearance # of the delimiter character. The delimiter may be a single character or a string. # @option options [String] marker Sets the identifier that specifies the portion of the list to be returned. # @option options [String] prefix Sets filters the results to return only files whose name begins with the specified prefix. # - # @return [Fog::Storage::AzureRM::Directory] A directory. Return nil if the directory does not exist. + # @return [Fog::AzureRM::Storage::Directory] A directory. Return nil if the directory does not exist. # def get(identity, options = {}) remap_attributes(options, max_keys: :max_results) container = service.get_container_properties(identity) @@ -62,10 +62,10 @@ return nil if error.message == 'NotFound' raise error end def delete_temporary_container(storage_account_name, access_key, container_name) - storage_data = Fog::Storage::AzureRM.new(azure_storage_account_name: storage_account_name, azure_storage_access_key: access_key) + storage_data = Fog::AzureRM::Storage.new(azure_storage_account_name: storage_account_name, azure_storage_access_key: access_key) storage_data.delete_container(container_name) end def check_container_exists(name) service.check_container_exists(name)