lib/profiles/common/default.rb in azure_mgmt_batch-0.15.0 vs lib/profiles/common/default.rb in azure_mgmt_batch-0.15.1

- old
+ new

@@ -1,11 +1,10 @@ # 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::ARM - # Default configuration options for {Azure::ARM.Client} +module Azure::Common module Default class << self # # Default Azure Tenant Id. # @return [String] Azure Tenant Id. @@ -37,20 +36,10 @@ def subscription_id ENV['AZURE_SUBSCRIPTION_ID'] end # - # Default Azure credentials to authorize HTTP requests made by the service client. - # @return [MsRest::ServiceClientCredentials] Azure credentials to authorize HTTP requests made by the service client. - # - def credentials - MsRest::TokenCredentials.new( - MsRestAzure::ApplicationTokenProvider.new( - self.tenant_id, self.client_id, self.client_secret, self.active_directory_settings)) - end - - # # Default Azure Active Directory Service Settings. # @return [MsRestAzure::ActiveDirectoryServiceSettings] Azure Active Directory Service Settings. # def active_directory_settings MsRestAzure::ActiveDirectoryServiceSettings.get_azure_settings @@ -59,10 +48,10 @@ # # Configuration options. # @return [Hash] Configuration options. # def options - Hash[Azure::ARM::Configurable.keys.map{|key| [key, send(key)]}] + Hash[Azure::Common::Configurable.keys.map { |key| [key, send(key)]}] end end end end