lib/kitchen/driver/credentials.rb
def ad_settings_for_azure_environment(azure_environment)
        case azure_environment.downcase
        when "azureusgovernment"
          ::MsRestAzure::ActiveDirectoryServiceSettings.get_azure_us_government_settings
        when "azurechina"
          ::MsRestAzure::ActiveDirectoryServiceSettings.get_azure_china_settings
        when "azuregermancloud"
          ::MsRestAzure::ActiveDirectoryServiceSettings.get_azure_german_settings
        when "azure"
          ::MsRestAzure::ActiveDirectoryServiceSettings.get_azure_settings
        end
      end
#
# Retrieves a [MsRestAzure::ActiveDirectoryServiceSettings] object representing the AD settings for the given cloud.
# @param azure_environment [String] The Azure environment to retrieve settings for.
#
# @return [MsRestAzure::ActiveDirectoryServiceSettings] Settings to be used for subsequent requests
#
Retrieves a [MsRestAzure::ActiveDirectoryServiceSettings] object representing the AD settings for the given cloud.
Retrieves a [ MsRestAzure :: ActiveDirectoryServiceSettings ] object representing the AD settings for the given cloud .
def ad_settings_for_azure_environment(azure_environment)
        case azure_environment.downcase
        when "azureusgovernment"
          ::MsRestAzure::ActiveDirectoryServiceSettings.get_azure_us_government_settings
        when "azurechina"
          ::MsRestAzure::ActiveDirectoryServiceSettings.get_azure_china_settings
        when "azuregermancloud"
          ::MsRestAzure::ActiveDirectoryServiceSettings.get_azure_german_settings
        when "azure"
          ::MsRestAzure::ActiveDirectoryServiceSettings.get_azure_settings
        end
      end
def ad_settings_for_azure_environment ( azure_environment ) case azure_environment . downcase when "azureusgovernment" :: MsRestAzure :: ActiveDirectoryServiceSettings . get_azure_us_government_settings when "azurechina" :: MsRestAzure :: ActiveDirectoryServiceSettings . get_azure_china_settings when "azuregermancloud" :: MsRestAzure :: ActiveDirectoryServiceSettings . get_azure_german_settings when "azure" :: MsRestAzure :: ActiveDirectoryServiceSettings . get_azure_settings end end
Retrieves a [MsRestAzure::ActiveDirectoryServiceSettings] object representing the AD settings for the given cloud.
Retrieves a [ MsRestAzure :: ActiveDirectoryServiceSettings ] object representing the AD settings for the given cloud .
Settings to be used for subsequent requests
Settings to be used for subsequent requests
MsRestAzure::ActiveDirectoryServiceSettings
azure_environment
The Azure environment to retrieve settings for.
The Azure environment to retrieve settings for .