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

Class Method Details

.ca_fileString

Default Certificate Authority bundle to be used for https

Returns:

  • (String)


120
121
122
# File 'lib/azure/default.rb', line 120

def ca_file
  ENV['SSL_CERT_FILE']
end

.management_certificateString

Default management certificate to use for management activeities

Returns:

  • (String)


96
97
98
# File 'lib/azure/default.rb', line 96

def management_certificate
  ENV['AZURE_MANAGEMENT_CERTIFICATE']
end

.management_endpointString

Default Azure management endpoint

Returns:

  • (String)


108
109
110
# File 'lib/azure/default.rb', line 108

def management_endpoint
  ENV['AZURE_MANAGEMENT_ENDPOINT'] || (SERVICE_MANAGEMENT_ENDPOINT + '/')
end

.optionsHash

Configuration options

Returns:

  • (Hash)


30
31
32
# File 'lib/azure/default.rb', line 30

def options
  Hash[Azure::Configurable.keys.map{|key| [key, send(key)]}]
end

.sb_access_keyString

Default service bus access key

Returns:

  • (String)


72
73
74
# File 'lib/azure/default.rb', line 72

def sb_access_key
  ENV['AZURE_SERVICEBUS_ACCESS_KEY']
end

.sb_issuerString

Default service bus issuer

Returns:

  • (String)


90
91
92
# File 'lib/azure/default.rb', line 90

def sb_issuer
  ENV['AZURE_SERVICEBUS_ISSUER'] || 'owner'
end

.sb_namespaceString

Default service bus namespace

Returns:

  • (String)


66
67
68
# File 'lib/azure/default.rb', line 66

def sb_namespace
  ENV['AZURE_SERVICEBUS_NAMESPACE']
end

.sb_sas_keyString

Default service bus Shared Access Policy key

Returns:

  • (String)


78
79
80
# File 'lib/azure/default.rb', line 78

def sb_sas_key
  ENV['AZURE_SERVICEBUS_SAS_KEY']
end

.sb_sas_key_nameString

Default service bus Shared Access Policy key name

Returns:

  • (String)


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_endpointString

Default SQL database management endpoint

Returns:

  • (String)


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_keyString

Default storage access key

Returns:

  • (String)


36
37
38
# File 'lib/azure/default.rb', line 36

def storage_access_key
  ENV['AZURE_STORAGE_ACCESS_KEY']
end

.storage_account_nameString

Default storage account name

Returns:

  • (String)


42
43
44
# File 'lib/azure/default.rb', line 42

def 
  ENV['AZURE_STORAGE_ACCOUNT']
end

.storage_blob_hostString

Default storage blob host

Returns:

  • (String)


54
55
56
# File 'lib/azure/default.rb', line 54

def storage_blob_host
  ENV['AZURE_STORAGE_BLOB_HOST']
end

.storage_queue_hostString

Default storage queue host

Returns:

  • (String)


60
61
62
# File 'lib/azure/default.rb', line 60

def storage_queue_host
  ENV['AZURE_STORAGE_QUEUE_HOST']
end

.storage_table_hostString

Default storage table host

Returns:

  • (String)


48
49
50
# File 'lib/azure/default.rb', line 48

def storage_table_host
  ENV['AZURE_STORAGE_TABLE_HOST']
end

.subscription_idString

Default subscription to use for management activities

Returns:

  • (String)


102
103
104
# File 'lib/azure/default.rb', line 102

def subscription_id
  ENV['AZURE_SUBSCRIPTION_ID']
end