Sha256: 4b2089d0bdf70721804e2aef99b7ca30734754bd0e9576b56a690c0fc800d74f

Contents?: true

Size: 1.37 KB

Versions: 15

Compression:

Stored size: 1.37 KB

Contents

# 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 MsRestAzure::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[MsRestAzure::Common::Configurable.keys.map { |key| [key, send(key)]}]
      end
    end
  end
end

Version data entries

15 entries across 15 versions & 2 rubygems

Version Path
ms_rest_azure2-0.12.1 lib/ms_rest_azure/common/default.rb
ms_rest_azure2-0.12.0 lib/ms_rest_azure/common/default.rb
ms_rest_azure-0.12.0 lib/ms_rest_azure/common/default.rb
ms_rest_azure-0.11.2 lib/ms_rest_azure/common/default.rb
ms_rest_azure-0.11.1 lib/ms_rest_azure/common/default.rb
ms_rest_azure-0.11.0 lib/ms_rest_azure/common/default.rb
ms_rest_azure-0.10.8 lib/ms_rest_azure/common/default.rb
ms_rest_azure-0.10.7 lib/ms_rest_azure/common/default.rb
ms_rest_azure-0.10.6 lib/ms_rest_azure/common/default.rb
ms_rest_azure-0.10.5 lib/ms_rest_azure/common/default.rb
ms_rest_azure-0.10.4 lib/ms_rest_azure/common/default.rb
ms_rest_azure-0.10.3 lib/ms_rest_azure/common/default.rb
ms_rest_azure-0.10.2 lib/ms_rest_azure/common/default.rb
ms_rest_azure-0.10.1 lib/ms_rest_azure/common/default.rb
ms_rest_azure-0.10.0 lib/ms_rest_azure/common/default.rb