lib/fog/azurerm/storage.rb in fog-azure-rm-0.1.2 vs lib/fog/azurerm/storage.rb in fog-azure-rm-0.2.0

- old
+ new

@@ -22,10 +22,11 @@ request :delete_storage_account request :get_storage_account request :list_storage_account_for_rg request :check_storage_account_name_availability request :get_storage_access_keys + request :check_storage_account_exists # Azure Storage Disk requests request :delete_disk request :create_disk # Azure Storage Container requests request :create_container @@ -36,10 +37,11 @@ request :put_container_metadata request :get_container_properties request :get_container_acl request :put_container_acl request :get_container_url + request :check_container_exists # Azure Storage Blob requests request :list_blobs request :put_blob_metadata request :put_blob_properties request :get_blob_properties @@ -123,12 +125,14 @@ @client_secret = options[:client_secret] @subscription_id = options[:subscription_id] @environment = options[:environment] credentials = Fog::Credentials::AzureRM.get_credentials(@tenant_id, @client_id, @client_secret, @environment) + telemetry = "fog-azure-rm/#{Fog::AzureRM::VERSION}" unless credentials.nil? @storage_mgmt_client = ::Azure::ARM::Storage::StorageManagementClient.new(credentials, resource_manager_endpoint_url(@environment)) @storage_mgmt_client.subscription_id = @subscription_id + @storage_mgmt_client.add_user_agent_information(telemetry) end return unless @azure_storage_account_name != options[:azure_storage_account_name] || @azure_storage_access_key != options[:azure_storage_access_key]