module Azure::Storage::Common::Default

Constants

DEFAULT_HTTPS_PORT

Default HTTPS port.

DEFAULT_HTTP_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

options() click to toggle source
# File lib/azure/storage/common/default.rb, line 78
def options
  Hash[Azure::Storage::Common::Configurable.keys.map { |key| [key, send(key)] }]
end
os() click to toggle source
# 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
signer() click to toggle source

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
storage_access_key() click to toggle source

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
storage_account_name() click to toggle source

Default storage account name @return [String]

# File lib/azure/storage/common/default.rb, line 90
def storage_account_name
  ENV["AZURE_STORAGE_ACCOUNT"]
end
storage_blob_host() click to toggle source

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
storage_connection_string() click to toggle source

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
storage_file_host() click to toggle source

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
storage_queue_host() click to toggle source

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
storage_sas_token() click to toggle source

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
storage_table_host() click to toggle source

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

os() click to toggle source
# 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