module Azure::Storage::Common::Default
Constants
- DEFAULT_HTTPS_PORT
- DEFAULT_HTTP_PORT
- DEFAULT_PARALLEL_OPERATION_THREAD_COUNT
The number of default concurrent requests for parallel operation.
- GB
Constant representing a gigabyte (Non-SI version).
- HTTP
Specifies
HTTP
.- HTTPS
Specifies
HTTPS
.- KB
Constant representing a kilobyte (Non-SI version).
- MB
Constant representing a megabyte (Non-SI version).
- STG_VERSION
Default
REST service (STG) version number. This is used only for SAS generator.- XML_METADATA_MARKER
Marker for atom metadata.
- XML_VALUE_MARKER
Marker for atom value.
Public Class Methods
# File lib/azure/storage/common/default.rb, line 78 def options Hash[Azure::Storage::Common::Configurable.keys.map { |key| [key, send(key)] }] end
# File lib/azure/storage/common/default.rb, line 59 def os host_os = RbConfig::CONFIG["host_os"] case host_os when /mswin|msys|mingw|cygwin|bccwin|wince|emc/ "Windows #{host_os}" when /darwin|mac os/ "MacOS #{host_os}" when /linux/ "Linux #{host_os}" when /solaris|bsd/ "Unix #{host_os}" else "Unknown #{host_os}" end end
A placeholder to map with the Azure::Storage::Common::Configurable.keys
@return nil
# File lib/azure/storage/common/default.rb, line 132 def signer end
Default
storage access key @return [String]
# File lib/azure/storage/common/default.rb, line 84 def storage_access_key ENV["AZURE_STORAGE_ACCESS_KEY"] end
Default
storage account name @return [String]
# File lib/azure/storage/common/default.rb, line 90 def storage_account_name ENV["AZURE_STORAGE_ACCOUNT"] end
Default
storage blob host @return [String]
# File lib/azure/storage/common/default.rb, line 114 def storage_blob_host ENV["AZURE_STORAGE_BLOB_HOST"] end
Default
storage connection string @return [String]
# File lib/azure/storage/common/default.rb, line 96 def storage_connection_string ENV["AZURE_STORAGE_CONNECTION_STRING"] end
Default
storage file host @return [String]
# File lib/azure/storage/common/default.rb, line 126 def storage_file_host ENV["AZURE_STORAGE_FILE_HOST"] end
Default
storage queue host @return [String]
# File lib/azure/storage/common/default.rb, line 120 def storage_queue_host ENV["AZURE_STORAGE_QUEUE_HOST"] end
Default
storage shared access signature token @return [String]
# File lib/azure/storage/common/default.rb, line 102 def storage_sas_token ENV["AZURE_STORAGE_SAS_TOKEN"] end
Default
storage table host @return [String]
# File lib/azure/storage/common/default.rb, line 108 def storage_table_host ENV["AZURE_STORAGE_TABLE_HOST"] end
Private Instance Methods
# File lib/azure/storage/common/default.rb, line 59 def os host_os = RbConfig::CONFIG["host_os"] case host_os when /mswin|msys|mingw|cygwin|bccwin|wince|emc/ "Windows #{host_os}" when /darwin|mac os/ "MacOS #{host_os}" when /linux/ "Linux #{host_os}" when /solaris|bsd/ "Unix #{host_os}" else "Unknown #{host_os}" end end