Module: Azure::Default
- Defined in:
- lib/azure/default.rb
Overview
Default configuration options for Client
Constant Summary collapse
- SERVICE_MANAGEMENT_ENDPOINT =
Default API endpoint
'https://management.core.windows.net'.freeze
- USER_AGENT =
Default User Agent header string
"Azure-SDK-For-Ruby/#{Azure::Version}".freeze
Class Method Summary collapse
-
.ca_file ⇒ String
Default Certificate Authority bundle to be used for https.
-
.management_certificate ⇒ String
Default management certificate to use for management activeities.
-
.management_endpoint ⇒ String
Default Azure management endpoint.
-
.options ⇒ Hash
Configuration options.
-
.sb_access_key ⇒ String
Default service bus access key.
-
.sb_issuer ⇒ String
Default service bus issuer.
-
.sb_namespace ⇒ String
Default service bus namespace.
-
.sb_sas_key ⇒ String
Default service bus Shared Access Policy key.
-
.sb_sas_key_name ⇒ String
Default service bus Shared Access Policy key name.
-
.sql_database_management_endpoint ⇒ String
Default SQL database management endpoint.
-
.storage_access_key ⇒ String
Default storage access key.
-
.storage_account_name ⇒ String
Default storage account name.
-
.storage_blob_host ⇒ String
Default storage blob host.
-
.storage_queue_host ⇒ String
Default storage queue host.
-
.storage_table_host ⇒ String
Default storage table host.
-
.subscription_id ⇒ String
Default subscription to use for management activities.
Class Method Details
.ca_file ⇒ String
Default Certificate Authority bundle to be used for https
120 121 122 |
# File 'lib/azure/default.rb', line 120 def ca_file ENV['SSL_CERT_FILE'] end |
.management_certificate ⇒ String
Default management certificate to use for management activeities
96 97 98 |
# File 'lib/azure/default.rb', line 96 def management_certificate ENV['AZURE_MANAGEMENT_CERTIFICATE'] end |
.management_endpoint ⇒ String
Default Azure management endpoint
108 109 110 |
# File 'lib/azure/default.rb', line 108 def management_endpoint ENV['AZURE_MANAGEMENT_ENDPOINT'] || (SERVICE_MANAGEMENT_ENDPOINT + '/') end |
.options ⇒ Hash
Configuration options
30 31 32 |
# File 'lib/azure/default.rb', line 30 def Hash[Azure::Configurable.keys.map{|key| [key, send(key)]}] end |
.sb_access_key ⇒ String
Default service bus access key
72 73 74 |
# File 'lib/azure/default.rb', line 72 def sb_access_key ENV['AZURE_SERVICEBUS_ACCESS_KEY'] end |
.sb_issuer ⇒ String
Default service bus issuer
90 91 92 |
# File 'lib/azure/default.rb', line 90 def sb_issuer ENV['AZURE_SERVICEBUS_ISSUER'] || 'owner' end |
.sb_namespace ⇒ String
Default service bus namespace
66 67 68 |
# File 'lib/azure/default.rb', line 66 def sb_namespace ENV['AZURE_SERVICEBUS_NAMESPACE'] end |
.sb_sas_key ⇒ String
Default service bus Shared Access Policy key
78 79 80 |
# File 'lib/azure/default.rb', line 78 def sb_sas_key ENV['AZURE_SERVICEBUS_SAS_KEY'] end |
.sb_sas_key_name ⇒ String
Default service bus Shared Access Policy key name
84 85 86 |
# File 'lib/azure/default.rb', line 84 def sb_sas_key_name ENV['AZURE_SERVICEBUS_SAS_KEY_NAME'] end |
.sql_database_management_endpoint ⇒ String
Default SQL database management endpoint
114 115 116 |
# File 'lib/azure/default.rb', line 114 def sql_database_management_endpoint ENV['AZURE_SQL_DATABASE_MANAGEMENT_ENDPOINT'] || "#{SERVICE_MANAGEMENT_ENDPOINT}:8443/" end |
.storage_access_key ⇒ String
Default storage access key
36 37 38 |
# File 'lib/azure/default.rb', line 36 def storage_access_key ENV['AZURE_STORAGE_ACCESS_KEY'] end |
.storage_account_name ⇒ String
Default storage account name
42 43 44 |
# File 'lib/azure/default.rb', line 42 def storage_account_name ENV['AZURE_STORAGE_ACCOUNT'] end |
.storage_blob_host ⇒ String
Default storage blob host
54 55 56 |
# File 'lib/azure/default.rb', line 54 def storage_blob_host ENV['AZURE_STORAGE_BLOB_HOST'] end |
.storage_queue_host ⇒ String
Default storage queue host
60 61 62 |
# File 'lib/azure/default.rb', line 60 def storage_queue_host ENV['AZURE_STORAGE_QUEUE_HOST'] end |
.storage_table_host ⇒ String
Default storage table host
48 49 50 |
# File 'lib/azure/default.rb', line 48 def storage_table_host ENV['AZURE_STORAGE_TABLE_HOST'] end |
.subscription_id ⇒ String
Default subscription to use for management activities
102 103 104 |
# File 'lib/azure/default.rb', line 102 def subscription_id ENV['AZURE_SUBSCRIPTION_ID'] end |