class MsRestAzure::AzureEnvironments::AzureEnvironment
An instance of this class describes an environment in Azure
Attributes
@return [String] the Active Directory login endpoint
@return [String] the Active Directory resource ID
@return [String] the Active Directory resource ID
@return [String] the resource ID to obtain AD tokens for
@return [String] the data lake analytics job and catalog service dns suffix
@return [String] the data lake store filesystem service dns suffix
@return [String] the template gallery endpoint
@return [String] the KeyVault service dns suffix
@return [String] the management service endpoint
@return [String] the Environment name
@return [String] the management portal URL
@return [String] the publish settings file URL
@return [String] the resource management endpoint
@return [String] the sql server management endpoint for mobile commands
@return [String] the dns suffix for sql servers
@return [String] the endpoint suffix for storage accounts
Public Class Methods
# File lib/ms_rest_azure/azure_environment.rb, line 62 def initialize(options) required_properties = [:name, :portal_url, :management_endpoint_url, :resource_manager_endpoint_url, :active_directory_endpoint_url, :active_directory_resource_id] required_supplied_properties = required_properties & options.keys if required_supplied_properties.nil? || required_supplied_properties.empty? || (required_supplied_properties & required_properties) != required_properties raise ArgumentError.new("#{required_properties.to_s} are the required properties but provided properties are #{options.to_s}") end required_supplied_properties.each do |prop| if options[prop].nil? || !options[prop].is_a?(String) || options[prop].empty? raise ArgumentError.new("Value of the '#{prop}' property must be of type String and non empty.") end end # Setting default to true @validate_authority = true options.each do |k, v| instance_variable_set("@#{k}", v) unless v.nil? end end