# encoding: utf-8 # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. module Azure::Common module Default class << self # # Default Azure Tenant Id. # @return [String] Azure Tenant Id. # def tenant_id ENV['AZURE_TENANT_ID'] end # # Default Azure Client Id. # @return [String] Azure Client Id. # def client_id ENV['AZURE_CLIENT_ID'] end # # Default Azure Client Secret. # @return [String] Azure Client Secret. # def client_secret ENV['AZURE_CLIENT_SECRET'] end # # Default Azure Subscription Id. # @return [String] Azure Subscription Id. # def subscription_id ENV['AZURE_SUBSCRIPTION_ID'] end # # Default Azure Active Directory Service Settings. # @return [MsRestAzure::ActiveDirectoryServiceSettings] Azure Active Directory Service Settings. # def active_directory_settings MsRestAzure::ActiveDirectoryServiceSettings.get_azure_settings end # # Configuration options. # @return [Hash] Configuration options. # def options Hash[Azure::Common::Configurable.keys.map { |key| [key, send(key)]}] end end end end